context-lens 0.6.2 → 0.7.2
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/README.md +43 -19
- package/dist/analysis/server.js +2 -2
- package/dist/analysis/server.js.map +1 -1
- package/dist/cli-utils.d.ts.map +1 -1
- package/dist/cli-utils.js +18 -1
- package/dist/cli-utils.js.map +1 -1
- package/dist/cli.js +140 -30
- package/dist/cli.js.map +1 -1
- package/dist/core/security.d.ts.map +1 -1
- package/dist/core/security.js +23 -0
- package/dist/core/security.js.map +1 -1
- package/dist/core/tool-patterns.d.ts +52 -0
- package/dist/core/tool-patterns.d.ts.map +1 -0
- package/dist/core/tool-patterns.js +260 -0
- package/dist/core/tool-patterns.js.map +1 -0
- package/dist/core/waste.d.ts +73 -0
- package/dist/core/waste.d.ts.map +1 -0
- package/dist/core/waste.js +283 -0
- package/dist/core/waste.js.map +1 -0
- package/dist/core.d.ts +4 -0
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +2 -0
- package/dist/core.js.map +1 -1
- package/dist/proxy/prune.d.ts +15 -0
- package/dist/proxy/prune.d.ts.map +1 -0
- package/dist/proxy/prune.js +112 -0
- package/dist/proxy/prune.js.map +1 -0
- package/dist/proxy/server.js +9 -0
- package/dist/proxy/server.js.map +1 -1
- package/dist/schemas.d.ts +4 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +2 -0
- package/dist/schemas.js.map +1 -1
- package/dist/server/api.d.ts.map +1 -1
- package/dist/server/api.js +86 -1
- package/dist/server/api.js.map +1 -1
- package/dist/server/projection.d.ts.map +1 -1
- package/dist/server/projection.js +1 -0
- package/dist/server/projection.js.map +1 -1
- package/dist/server/store.d.ts +4 -0
- package/dist/server/store.d.ts.map +1 -1
- package/dist/server/store.js +73 -4
- package/dist/server/store.js.map +1 -1
- package/dist/types.d.ts +14 -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 +1 -0
- package/package.json +5 -5
- package/ui/dist/assets/index-CZq91bC_.js +52 -0
- package/ui/dist/assets/index-DSyD9xgM.css +1 -0
- package/ui/dist/index.html +2 -2
- package/ui/dist/assets/index-C2HhFk_P.js +0 -52
- package/ui/dist/assets/index-xYrXQJL_.css +0 -1
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/cpp-BRuaLJcg.js","assets/c-BIGW1oBm.js","assets/sql-BLtJtn59.js","assets/ruby-CkRbH_-r.js","assets/graphql-ChdNCCLP.js","assets/typescript-BPQ3VLAy.js","assets/jsx-g9-lgVsj.js","assets/tsx-COt5Ahok.js","assets/shellscript-Yzrsuije.js","assets/yaml-Buea-lGh.js","assets/php-Dhbhpdrm.js","assets/json-Cp-IABpG.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const r of s.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&u(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function u(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();/**
|
|
3
|
-
* @vue/shared v3.5.28
|
|
4
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
|
-
* @license MIT
|
|
6
|
-
**/function dr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const We={},nu=[],Yt=()=>{},Rl=()=>!1,No=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),pr=e=>e.startsWith("onUpdate:"),ot=Object.assign,hr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},i0=Object.prototype.hasOwnProperty,je=(e,t)=>i0.call(e,t),De=Array.isArray,uu=e=>eo(e)==="[object Map]",Ol=e=>eo(e)==="[object Set]",Zr=e=>eo(e)==="[object Date]",Ie=e=>typeof e=="function",Xe=e=>typeof e=="string",Ht=e=>typeof e=="symbol",Ve=e=>e!==null&&typeof e=="object",zl=e=>(Ve(e)||Ie(e))&&Ie(e.then)&&Ie(e.catch),Bl=Object.prototype.toString,eo=e=>Bl.call(e),l0=e=>eo(e).slice(8,-1),Nl=e=>eo(e)==="[object Object]",Ho=e=>Xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,wu=dr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),jo=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},a0=/-\w/g,Mt=jo(e=>e.replace(a0,t=>t.slice(1).toUpperCase())),c0=/\B([A-Z])/g,Rn=jo(e=>e.replace(c0,"-$1").toLowerCase()),qo=jo(e=>e.charAt(0).toUpperCase()+e.slice(1)),fs=jo(e=>e?`on${qo(e)}`:""),An=(e,t)=>!Object.is(e,t),vo=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Hl=(e,t,n,u=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:u,value:n})},mr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},f0=e=>{const t=Xe(e)?Number(e):NaN;return isNaN(t)?e:t};let Jr;const Vo=()=>Jr||(Jr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ae(e){if(De(e)){const t={};for(let n=0;n<e.length;n++){const u=e[n],o=Xe(u)?m0(u):Ae(u);if(o)for(const s in o)t[s]=o[s]}return t}else if(Xe(e)||Ve(e))return e}const d0=/;(?![^(]*\))/g,p0=/:([^]+)/,h0=/\/\*[^]*?\*\//g;function m0(e){const t={};return e.replace(h0,"").split(d0).forEach(n=>{if(n){const u=n.split(p0);u.length>1&&(t[u[0].trim()]=u[1].trim())}}),t}function de(e){let t="";if(Xe(e))t=e;else if(De(e))for(let n=0;n<e.length;n++){const u=de(e[n]);u&&(t+=u+" ")}else if(Ve(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function g0(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Xe(t)&&(e.class=de(t)),n&&(e.style=Ae(n)),e}const v0="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",b0=dr(v0);function jl(e){return!!e||e===""}function _0(e,t){if(e.length!==t.length)return!1;let n=!0;for(let u=0;n&&u<e.length;u++)n=gr(e[u],t[u]);return n}function gr(e,t){if(e===t)return!0;let n=Zr(e),u=Zr(t);if(n||u)return n&&u?e.getTime()===t.getTime():!1;if(n=Ht(e),u=Ht(t),n||u)return e===t;if(n=De(e),u=De(t),n||u)return n&&u?_0(e,t):!1;if(n=Ve(e),u=Ve(t),n||u){if(!n||!u)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const r in e){const i=e.hasOwnProperty(r),l=t.hasOwnProperty(r);if(i&&!l||!i&&l||!gr(e[r],t[r]))return!1}}return String(e)===String(t)}const ql=e=>!!(e&&e.__v_isRef===!0),F=e=>Xe(e)?e:e==null?"":De(e)||Ve(e)&&(e.toString===Bl||!Ie(e.toString))?ql(e)?F(e.value):JSON.stringify(e,Vl,2):String(e),Vl=(e,t)=>ql(t)?Vl(e,t.value):uu(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[u,o],s)=>(n[ds(u,s)+" =>"]=o,n),{})}:Ol(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ds(n))}:Ht(t)?ds(t):Ve(t)&&!De(t)&&!Nl(t)?String(t):t,ds=(e,t="")=>{var n;return Ht(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 dt;class Ul{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=dt,!t&&dt&&(this.index=(dt.scopes||(dt.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=dt;try{return dt=this,t()}finally{dt=n}}}on(){++this._on===1&&(this.prevScope=dt,dt=this)}off(){this._on>0&&--this._on===0&&(dt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,u;for(n=0,u=this.effects.length;n<u;n++)this.effects[n].stop();for(this.effects.length=0,n=0,u=this.cleanups.length;n<u;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,u=this.scopes.length;n<u;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function Wl(e){return new Ul(e)}function Kl(){return dt}function y0(e,t=!1){dt&&dt.cleanups.push(e)}let Ke;const ps=new WeakSet;class Gl{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,dt&&dt.active&&dt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ps.has(this)&&(ps.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Jl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Yr(this),Yl(this);const t=Ke,n=zt;Ke=this,zt=!0;try{return this.fn()}finally{Xl(this),Ke=t,zt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)_r(t);this.deps=this.depsTail=void 0,Yr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ps.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Bs(this)&&this.run()}get dirty(){return Bs(this)}}let Zl=0,Cu,$u;function Jl(e,t=!1){if(e.flags|=8,t){e.next=$u,$u=e;return}e.next=Cu,Cu=e}function vr(){Zl++}function br(){if(--Zl>0)return;if($u){let t=$u;for($u=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Cu;){let t=Cu;for(Cu=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(u){e||(e=u)}t=n}}if(e)throw e}function Yl(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Xl(e){let t,n=e.depsTail,u=n;for(;u;){const o=u.prevDep;u.version===-1?(u===n&&(n=o),_r(u),x0(u)):t=u,u.dep.activeLink=u.prevActiveLink,u.prevActiveLink=void 0,u=o}e.deps=t,e.depsTail=n}function Bs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Ql(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Ql(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Pu)||(e.globalVersion=Pu,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Bs(e))))return;e.flags|=2;const t=e.dep,n=Ke,u=zt;Ke=e,zt=!0;try{Yl(e);const o=e.fn(e._value);(t.version===0||An(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ke=n,zt=u,Xl(e),e.flags&=-3}}function _r(e,t=!1){const{dep:n,prevSub:u,nextSub:o}=e;if(u&&(u.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=u,e.nextSub=void 0),n.subs===e&&(n.subs=u,!u&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)_r(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function x0(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let zt=!0;const ea=[];function mn(){ea.push(zt),zt=!1}function gn(){const e=ea.pop();zt=e===void 0?!0:e}function Yr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ke;Ke=void 0;try{t()}finally{Ke=n}}}let Pu=0;class k0{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 yr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Ke||!zt||Ke===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ke)n=this.activeLink=new k0(Ke,this),Ke.deps?(n.prevDep=Ke.depsTail,Ke.depsTail.nextDep=n,Ke.depsTail=n):Ke.deps=Ke.depsTail=n,ta(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const u=n.nextDep;u.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=u),n.prevDep=Ke.depsTail,n.nextDep=void 0,Ke.depsTail.nextDep=n,Ke.depsTail=n,Ke.deps===n&&(Ke.deps=u)}return n}trigger(t){this.version++,Pu++,this.notify(t)}notify(t){vr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{br()}}}function ta(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let u=t.deps;u;u=u.nextDep)ta(u)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ko=new WeakMap,Gn=Symbol(""),Ns=Symbol(""),Lu=Symbol("");function pt(e,t,n){if(zt&&Ke){let u=ko.get(e);u||ko.set(e,u=new Map);let o=u.get(n);o||(u.set(n,o=new yr),o.map=u,o.key=n),o.track()}}function an(e,t,n,u,o,s){const r=ko.get(e);if(!r){Pu++;return}const i=l=>{l&&l.trigger()};if(vr(),t==="clear")r.forEach(i);else{const l=De(e),a=l&&Ho(n);if(l&&n==="length"){const c=Number(u);r.forEach((d,m)=>{(m==="length"||m===Lu||!Ht(m)&&m>=c)&&i(d)})}else switch((n!==void 0||r.has(void 0))&&i(r.get(n)),a&&i(r.get(Lu)),t){case"add":l?a&&i(r.get("length")):(i(r.get(Gn)),uu(e)&&i(r.get(Ns)));break;case"delete":l||(i(r.get(Gn)),uu(e)&&i(r.get(Ns)));break;case"set":uu(e)&&i(r.get(Gn));break}}br()}function w0(e,t){const n=ko.get(e);return n&&n.get(t)}function Yn(e){const t=Be(e);return t===e?t:(pt(t,"iterate",Lu),$t(e)?t:t.map(jt))}function Uo(e){return pt(e=Be(e),"iterate",Lu),e}function $n(e,t){return vn(e)?lu(pn(e)?jt(t):t):jt(t)}const C0={__proto__:null,[Symbol.iterator](){return hs(this,Symbol.iterator,e=>$n(this,e))},concat(...e){return Yn(this).concat(...e.map(t=>De(t)?Yn(t):t))},entries(){return hs(this,"entries",e=>(e[1]=$n(this,e[1]),e))},every(e,t){return on(this,"every",e,t,void 0,arguments)},filter(e,t){return on(this,"filter",e,t,n=>n.map(u=>$n(this,u)),arguments)},find(e,t){return on(this,"find",e,t,n=>$n(this,n),arguments)},findIndex(e,t){return on(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return on(this,"findLast",e,t,n=>$n(this,n),arguments)},findLastIndex(e,t){return on(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return on(this,"forEach",e,t,void 0,arguments)},includes(...e){return ms(this,"includes",e)},indexOf(...e){return ms(this,"indexOf",e)},join(e){return Yn(this).join(e)},lastIndexOf(...e){return ms(this,"lastIndexOf",e)},map(e,t){return on(this,"map",e,t,void 0,arguments)},pop(){return mu(this,"pop")},push(...e){return mu(this,"push",e)},reduce(e,...t){return Xr(this,"reduce",e,t)},reduceRight(e,...t){return Xr(this,"reduceRight",e,t)},shift(){return mu(this,"shift")},some(e,t){return on(this,"some",e,t,void 0,arguments)},splice(...e){return mu(this,"splice",e)},toReversed(){return Yn(this).toReversed()},toSorted(e){return Yn(this).toSorted(e)},toSpliced(...e){return Yn(this).toSpliced(...e)},unshift(...e){return mu(this,"unshift",e)},values(){return hs(this,"values",e=>$n(this,e))}};function hs(e,t,n){const u=Uo(e),o=u[t]();return u!==e&&!$t(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.done||(s.value=n(s.value)),s}),o}const $0=Array.prototype;function on(e,t,n,u,o,s){const r=Uo(e),i=r!==e&&!$t(e),l=r[t];if(l!==$0[t]){const d=l.apply(e,s);return i?jt(d):d}let a=n;r!==e&&(i?a=function(d,m){return n.call(this,$n(e,d),m,e)}:n.length>2&&(a=function(d,m){return n.call(this,d,m,e)}));const c=l.call(r,a,u);return i&&o?o(c):c}function Xr(e,t,n,u){const o=Uo(e);let s=n;return o!==e&&($t(e)?n.length>3&&(s=function(r,i,l){return n.call(this,r,i,l,e)}):s=function(r,i,l){return n.call(this,r,$n(e,i),l,e)}),o[t](s,...u)}function ms(e,t,n){const u=Be(e);pt(u,"iterate",Lu);const o=u[t](...n);return(o===-1||o===!1)&&Wo(n[0])?(n[0]=Be(n[0]),u[t](...n)):o}function mu(e,t,n=[]){mn(),vr();const u=Be(e)[t].apply(e,n);return br(),gn(),u}const E0=dr("__proto__,__v_isRef,__isVue"),na=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ht));function S0(e){Ht(e)||(e=String(e));const t=Be(this);return pt(t,"has",e),t.hasOwnProperty(e)}class ua{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,u){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return u===(o?s?O0:ia:s?ra:sa).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(u)?t:void 0;const r=De(t);if(!o){let l;if(r&&(l=C0[n]))return l;if(n==="hasOwnProperty")return S0}const i=Reflect.get(t,n,Qe(t)?t:u);if((Ht(n)?na.has(n):E0(n))||(o||pt(t,"get",n),s))return i;if(Qe(i)){const l=r&&Ho(n)?i:i.value;return o&&Ve(l)?js(l):l}return Ve(i)?o?js(i):to(i):i}}class oa extends ua{constructor(t=!1){super(!1,t)}set(t,n,u,o){let s=t[n];const r=De(t)&&Ho(n);if(!this._isShallow){const a=vn(s);if(!$t(u)&&!vn(u)&&(s=Be(s),u=Be(u)),!r&&Qe(s)&&!Qe(u))return a||(s.value=u),!0}const i=r?Number(n)<t.length:je(t,n),l=Reflect.set(t,n,u,Qe(t)?t:o);return t===Be(o)&&(i?An(u,s)&&an(t,"set",n,u):an(t,"add",n,u)),l}deleteProperty(t,n){const u=je(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&u&&an(t,"delete",n,void 0),o}has(t,n){const u=Reflect.has(t,n);return(!Ht(n)||!na.has(n))&&pt(t,"has",n),u}ownKeys(t){return pt(t,"iterate",De(t)?"length":Gn),Reflect.ownKeys(t)}}class T0 extends ua{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const D0=new oa,A0=new T0,F0=new oa(!0);const Hs=e=>e,ao=e=>Reflect.getPrototypeOf(e);function M0(e,t,n){return function(...u){const o=this.__v_raw,s=Be(o),r=uu(s),i=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,a=o[e](...u),c=n?Hs:t?lu:jt;return!t&&pt(s,"iterate",l?Ns:Gn),ot(Object.create(a),{next(){const{value:d,done:m}=a.next();return m?{value:d,done:m}:{value:i?[c(d[0]),c(d[1])]:c(d),done:m}}})}}function co(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function I0(e,t){const n={get(o){const s=this.__v_raw,r=Be(s),i=Be(o);e||(An(o,i)&&pt(r,"get",o),pt(r,"get",i));const{has:l}=ao(r),a=t?Hs:e?lu:jt;if(l.call(r,o))return a(s.get(o));if(l.call(r,i))return a(s.get(i));s!==r&&s.get(o)},get size(){const o=this.__v_raw;return!e&&pt(Be(o),"iterate",Gn),o.size},has(o){const s=this.__v_raw,r=Be(s),i=Be(o);return e||(An(o,i)&&pt(r,"has",o),pt(r,"has",i)),o===i?s.has(o):s.has(o)||s.has(i)},forEach(o,s){const r=this,i=r.__v_raw,l=Be(i),a=t?Hs:e?lu:jt;return!e&&pt(l,"iterate",Gn),i.forEach((c,d)=>o.call(s,a(c),a(d),r))}};return ot(n,e?{add:co("add"),set:co("set"),delete:co("delete"),clear:co("clear")}:{add(o){!t&&!$t(o)&&!vn(o)&&(o=Be(o));const s=Be(this);return ao(s).has.call(s,o)||(s.add(o),an(s,"add",o,o)),this},set(o,s){!t&&!$t(s)&&!vn(s)&&(s=Be(s));const r=Be(this),{has:i,get:l}=ao(r);let a=i.call(r,o);a||(o=Be(o),a=i.call(r,o));const c=l.call(r,o);return r.set(o,s),a?An(s,c)&&an(r,"set",o,s):an(r,"add",o,s),this},delete(o){const s=Be(this),{has:r,get:i}=ao(s);let l=r.call(s,o);l||(o=Be(o),l=r.call(s,o)),i&&i.call(s,o);const a=s.delete(o);return l&&an(s,"delete",o,void 0),a},clear(){const o=Be(this),s=o.size!==0,r=o.clear();return s&&an(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=M0(o,e,t)}),n}function xr(e,t){const n=I0(e,t);return(u,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?u:Reflect.get(je(n,o)&&o in u?n:u,o,s)}const P0={get:xr(!1,!1)},L0={get:xr(!1,!0)},R0={get:xr(!0,!1)};const sa=new WeakMap,ra=new WeakMap,ia=new WeakMap,O0=new WeakMap;function z0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function B0(e){return e.__v_skip||!Object.isExtensible(e)?0:z0(l0(e))}function to(e){return vn(e)?e:kr(e,!1,D0,P0,sa)}function N0(e){return kr(e,!1,F0,L0,ra)}function js(e){return kr(e,!0,A0,R0,ia)}function kr(e,t,n,u,o){if(!Ve(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=B0(e);if(s===0)return e;const r=o.get(e);if(r)return r;const i=new Proxy(e,s===2?u:n);return o.set(e,i),i}function pn(e){return vn(e)?pn(e.__v_raw):!!(e&&e.__v_isReactive)}function vn(e){return!!(e&&e.__v_isReadonly)}function $t(e){return!!(e&&e.__v_isShallow)}function Wo(e){return e?!!e.__v_raw:!1}function Be(e){const t=e&&e.__v_raw;return t?Be(t):e}function wr(e){return!je(e,"__v_skip")&&Object.isExtensible(e)&&Hl(e,"__v_skip",!0),e}const jt=e=>Ve(e)?to(e):e,lu=e=>Ve(e)?js(e):e;function Qe(e){return e?e.__v_isRef===!0:!1}function me(e){return H0(e,!1)}function H0(e,t){return Qe(e)?e:new j0(e,t)}class j0{constructor(t,n){this.dep=new yr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Be(t),this._value=n?t:jt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,u=this.__v_isShallow||$t(t)||vn(t);t=u?t:Be(t),An(t,n)&&(this._rawValue=t,this._value=u?t:jt(t),this.dep.trigger())}}function G(e){return Qe(e)?e.value:e}const q0={get:(e,t,n)=>t==="__v_raw"?e:G(Reflect.get(e,t,n)),set:(e,t,n,u)=>{const o=e[t];return Qe(o)&&!Qe(n)?(o.value=n,!0):Reflect.set(e,t,n,u)}};function la(e){return pn(e)?e:new Proxy(e,q0)}function V0(e){const t=De(e)?new Array(e.length):{};for(const n in e)t[n]=W0(e,n);return t}class U0{constructor(t,n,u){this._object=t,this._key=n,this._defaultValue=u,this.__v_isRef=!0,this._value=void 0,this._raw=Be(t);let o=!0,s=t;if(!De(t)||!Ho(String(n)))do o=!Wo(s)||$t(s);while(o&&(s=s.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=G(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Qe(this._raw[this._key])){const n=this._object[this._key];if(Qe(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return w0(this._raw,this._key)}}function W0(e,t,n){return new U0(e,t,n)}class K0{constructor(t,n,u){this.fn=t,this.setter=n,this._value=void 0,this.dep=new yr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Pu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=u}notify(){if(this.flags|=16,!(this.flags&8)&&Ke!==this)return Jl(this,!0),!0}get value(){const t=this.dep.track();return Ql(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function G0(e,t,n=!1){let u,o;return Ie(e)?u=e:(u=e.get,o=e.set),new K0(u,o,n)}const fo={},wo=new WeakMap;let Un;function Z0(e,t=!1,n=Un){if(n){let u=wo.get(n);u||wo.set(n,u=[]),u.push(e)}}function J0(e,t,n=We){const{immediate:u,deep:o,once:s,scheduler:r,augmentJob:i,call:l}=n,a=$=>o?$:$t($)||o===!1||o===0?cn($,1):cn($);let c,d,m,g,b=!1,w=!1;if(Qe(e)?(d=()=>e.value,b=$t(e)):pn(e)?(d=()=>a(e),b=!0):De(e)?(w=!0,b=e.some($=>pn($)||$t($)),d=()=>e.map($=>{if(Qe($))return $.value;if(pn($))return a($);if(Ie($))return l?l($,2):$()})):Ie(e)?t?d=l?()=>l(e,2):e:d=()=>{if(m){mn();try{m()}finally{gn()}}const $=Un;Un=c;try{return l?l(e,3,[g]):e(g)}finally{Un=$}}:d=Yt,t&&o){const $=d,R=o===!0?1/0:o;d=()=>cn($(),R)}const _=Kl(),C=()=>{c.stop(),_&&_.active&&hr(_.effects,c)};if(s&&t){const $=t;t=(...R)=>{$(...R),C()}}let M=w?new Array(e.length).fill(fo):fo;const I=$=>{if(!(!(c.flags&1)||!c.dirty&&!$))if(t){const R=c.run();if(o||b||(w?R.some((T,oe)=>An(T,M[oe])):An(R,M))){m&&m();const T=Un;Un=c;try{const oe=[R,M===fo?void 0:w&&M[0]===fo?[]:M,g];M=R,l?l(t,3,oe):t(...oe)}finally{Un=T}}}else c.run()};return i&&i(I),c=new Gl(d),c.scheduler=r?()=>r(I,!1):I,g=$=>Z0($,!1,c),m=c.onStop=()=>{const $=wo.get(c);if($){if(l)l($,4);else for(const R of $)R();wo.delete(c)}},t?u?I(!0):M=c.run():r?r(I.bind(null,!0),!0):c.run(),C.pause=c.pause.bind(c),C.resume=c.resume.bind(c),C.stop=C,C}function cn(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--,Qe(e))cn(e.value,t,n);else if(De(e))for(let u=0;u<e.length;u++)cn(e[u],t,n);else if(Ol(e)||uu(e))e.forEach(u=>{cn(u,t,n)});else if(Nl(e)){for(const u in e)cn(e[u],t,n);for(const u of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,u)&&cn(e[u],t,n)}return e}/**
|
|
11
|
-
* @vue/runtime-core v3.5.28
|
|
12
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
13
|
-
* @license MIT
|
|
14
|
-
**/function no(e,t,n,u){try{return u?e(...u):e()}catch(o){Ko(o,t,n)}}function qt(e,t,n,u){if(Ie(e)){const o=no(e,t,n,u);return o&&zl(o)&&o.catch(s=>{Ko(s,t,n)}),o}if(De(e)){const o=[];for(let s=0;s<e.length;s++)o.push(qt(e[s],t,n,u));return o}}function Ko(e,t,n,u=!0){const o=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||We;if(t){let i=t.parent;const l=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const c=i.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,l,a)===!1)return}i=i.parent}if(s){mn(),no(s,null,10,[e,l,a]),gn();return}}Y0(e,n,o,u,r)}function Y0(e,t,n,u=!0,o=!1){if(o)throw e;console.error(e)}const vt=[];let Wt=-1;const ou=[];let En=null,eu=0;const aa=Promise.resolve();let Co=null;function Je(e){const t=Co||aa;return e?t.then(this?e.bind(this):e):t}function X0(e){let t=Wt+1,n=vt.length;for(;t<n;){const u=t+n>>>1,o=vt[u],s=Ru(o);s<e||s===e&&o.flags&2?t=u+1:n=u}return t}function Cr(e){if(!(e.flags&1)){const t=Ru(e),n=vt[vt.length-1];!n||!(e.flags&2)&&t>=Ru(n)?vt.push(e):vt.splice(X0(t),0,e),e.flags|=1,ca()}}function ca(){Co||(Co=aa.then(da))}function Q0(e){De(e)?ou.push(...e):En&&e.id===-1?En.splice(eu+1,0,e):e.flags&1||(ou.push(e),e.flags|=1),ca()}function Qr(e,t,n=Wt+1){for(;n<vt.length;n++){const u=vt[n];if(u&&u.flags&2){if(e&&u.id!==e.uid)continue;vt.splice(n,1),n--,u.flags&4&&(u.flags&=-2),u(),u.flags&4||(u.flags&=-2)}}}function fa(e){if(ou.length){const t=[...new Set(ou)].sort((n,u)=>Ru(n)-Ru(u));if(ou.length=0,En){En.push(...t);return}for(En=t,eu=0;eu<En.length;eu++){const n=En[eu];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}En=null,eu=0}}const Ru=e=>e.id==null?e.flags&2?-1:1/0:e.id;function da(e){try{for(Wt=0;Wt<vt.length;Wt++){const t=vt[Wt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),no(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Wt<vt.length;Wt++){const t=vt[Wt];t&&(t.flags&=-2)}Wt=-1,vt.length=0,fa(),Co=null,(vt.length||ou.length)&&da()}}let ct=null,Go=null;function $o(e){const t=ct;return ct=e,Go=e&&e.type.__scopeId||null,t}function ef(e){Go=e}function tf(){Go=null}const nf=e=>lt;function lt(e,t=ct,n){if(!t||e._n)return e;const u=(...o)=>{u._d&&To(-1);const s=$o(t);let r;try{r=e(...o)}finally{$o(s),u._d&&To(1)}return r};return u._n=!0,u._c=!0,u._d=!0,u}function qe(e,t){if(ct===null)return e;const n=es(ct),u=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[s,r,i,l=We]=t[o];s&&(Ie(s)&&(s={mounted:s,updated:s}),s.deep&&cn(r),u.push({dir:s,instance:n,value:r,oldValue:void 0,arg:i,modifiers:l}))}return e}function Nn(e,t,n,u){const o=e.dirs,s=t&&t.dirs;for(let r=0;r<o.length;r++){const i=o[r];s&&(i.oldValue=s[r].value);let l=i.dir[u];l&&(mn(),qt(l,n,8,[e.el,i,e,t]),gn())}}function xn(e,t){if(mt){let n=mt.provides;const u=mt.parent&&mt.parent.provides;u===n&&(n=mt.provides=Object.create(u)),n[e]=t}}function Lt(e,t,n=!1){const u=oo();if(u||Zn){let o=Zn?Zn._context.provides:u?u.parent==null||u.ce?u.vnode.appContext&&u.vnode.appContext.provides:u.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Ie(t)?t.call(u&&u.proxy):t}}function uf(){return!!(oo()||Zn)}const of=Symbol.for("v-scx"),sf=()=>Lt(of);function rf(e,t){return $r(e,null,t)}function Ze(e,t,n){return $r(e,t,n)}function $r(e,t,n=We){const{immediate:u,deep:o,flush:s,once:r}=n,i=ot({},n),l=t&&u||!t&&s!=="post";let a;if(ju){if(s==="sync"){const g=sf();a=g.__watcherHandles||(g.__watcherHandles=[])}else if(!l){const g=()=>{};return g.stop=Yt,g.resume=Yt,g.pause=Yt,g}}const c=mt;i.call=(g,b,w)=>qt(g,c,b,w);let d=!1;s==="post"?i.scheduler=g=>{_t(g,c&&c.suspense)}:s!=="sync"&&(d=!0,i.scheduler=(g,b)=>{b?g():Cr(g)}),i.augmentJob=g=>{t&&(g.flags|=4),d&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const m=J0(e,t,i);return ju&&(a?a.push(m):l&&m()),m}function lf(e,t,n){const u=this.proxy,o=Xe(e)?e.includes(".")?pa(u,e):()=>u[e]:e.bind(u,u);let s;Ie(t)?s=t:(s=t.handler,n=t);const r=so(this),i=$r(o,s.bind(u),n);return r(),i}function pa(e,t){const n=t.split(".");return()=>{let u=e;for(let o=0;o<n.length&&u;o++)u=u[n[o]];return u}}const af=Symbol("_vte"),ha=e=>e.__isTeleport,Kt=Symbol("_leaveCb"),gu=Symbol("_enterCb");function cf(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return On(()=>{e.isMounted=!0}),Yo(()=>{e.isUnmounting=!0}),e}const Dt=[Function,Array],ma={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Dt,onEnter:Dt,onAfterEnter:Dt,onEnterCancelled:Dt,onBeforeLeave:Dt,onLeave:Dt,onAfterLeave:Dt,onLeaveCancelled:Dt,onBeforeAppear:Dt,onAppear:Dt,onAfterAppear:Dt,onAppearCancelled:Dt},ga=e=>{const t=e.subTree;return t.component?ga(t.component):t},ff={name:"BaseTransition",props:ma,setup(e,{slots:t}){const n=oo(),u=cf();return()=>{const o=t.default&&_a(t.default(),!0);if(!o||!o.length)return;const s=va(o),r=Be(e),{mode:i}=r;if(u.isLeaving)return gs(s);const l=ei(s);if(!l)return gs(s);let a=qs(l,r,u,n,d=>a=d);l.type!==ht&&Ou(l,a);let c=n.subTree&&ei(n.subTree);if(c&&c.type!==ht&&!Kn(c,l)&&ga(n).type!==ht){let d=qs(c,r,u,n);if(Ou(c,d),i==="out-in"&&l.type!==ht)return u.isLeaving=!0,d.afterLeave=()=>{u.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},gs(s);i==="in-out"&&l.type!==ht?d.delayLeave=(m,g,b)=>{const w=ba(u,c);w[String(c.key)]=c,m[Kt]=()=>{g(),m[Kt]=void 0,delete a.delayedLeave,c=void 0},a.delayedLeave=()=>{b(),delete a.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return s}}};function va(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ht){t=n;break}}return t}const df=ff;function ba(e,t){const{leavingVNodes:n}=e;let u=n.get(t.type);return u||(u=Object.create(null),n.set(t.type,u)),u}function qs(e,t,n,u,o){const{appear:s,mode:r,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:m,onLeave:g,onAfterLeave:b,onLeaveCancelled:w,onBeforeAppear:_,onAppear:C,onAfterAppear:M,onAppearCancelled:I}=t,$=String(e.key),R=ba(n,e),T=(J,ee)=>{J&&qt(J,u,9,ee)},oe=(J,ee)=>{const ve=ee[1];T(J,ee),De(J)?J.every(q=>q.length<=1)&&ve():J.length<=1&&ve()},ue={mode:r,persisted:i,beforeEnter(J){let ee=l;if(!n.isMounted)if(s)ee=_||l;else return;J[Kt]&&J[Kt](!0);const ve=R[$];ve&&Kn(e,ve)&&ve.el[Kt]&&ve.el[Kt](),T(ee,[J])},enter(J){let ee=a,ve=c,q=d;if(!n.isMounted)if(s)ee=C||a,ve=M||c,q=I||d;else return;let ce=!1;J[gu]=E=>{ce||(ce=!0,E?T(q,[J]):T(ve,[J]),ue.delayedLeave&&ue.delayedLeave(),J[gu]=void 0)};const te=J[gu].bind(null,!1);ee?oe(ee,[J,te]):te()},leave(J,ee){const ve=String(e.key);if(J[gu]&&J[gu](!0),n.isUnmounting)return ee();T(m,[J]);let q=!1;J[Kt]=te=>{q||(q=!0,ee(),te?T(w,[J]):T(b,[J]),J[Kt]=void 0,R[ve]===e&&delete R[ve])};const ce=J[Kt].bind(null,!1);R[ve]=e,g?oe(g,[J,ce]):ce()},clone(J){const ee=qs(J,t,n,u,o);return o&&o(ee),ee}};return ue}function gs(e){if(Zo(e))return e=In(e),e.children=null,e}function ei(e){if(!Zo(e))return ha(e.type)&&e.children?va(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&&Ie(n.default))return n.default()}}function Ou(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ou(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 _a(e,t=!1,n){let u=[],o=0;for(let s=0;s<e.length;s++){let r=e[s];const i=n==null?r.key:String(n)+String(r.key!=null?r.key:s);r.type===he?(r.patchFlag&128&&o++,u=u.concat(_a(r.children,t,i))):(t||r.type!==ht)&&u.push(i!=null?In(r,{key:i}):r)}if(o>1)for(let s=0;s<u.length;s++)u[s].patchFlag=-2;return u}function tt(e,t){return Ie(e)?ot({name:e.name},t,{setup:e}):e}function ya(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ti(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Eo=new WeakMap;function Eu(e,t,n,u,o=!1){if(De(e)){e.forEach((w,_)=>Eu(w,t&&(De(t)?t[_]:t),n,u,o));return}if(su(u)&&!o){u.shapeFlag&512&&u.type.__asyncResolved&&u.component.subTree.component&&Eu(e,t,n,u.component.subTree);return}const s=u.shapeFlag&4?es(u.component):u.el,r=o?null:s,{i,r:l}=e,a=t&&t.r,c=i.refs===We?i.refs={}:i.refs,d=i.setupState,m=Be(d),g=d===We?Rl:w=>ti(c,w)?!1:je(m,w),b=(w,_)=>!(_&&ti(c,_));if(a!=null&&a!==l){if(ni(t),Xe(a))c[a]=null,g(a)&&(d[a]=null);else if(Qe(a)){const w=t;b(a,w.k)&&(a.value=null),w.k&&(c[w.k]=null)}}if(Ie(l))no(l,i,12,[r,c]);else{const w=Xe(l),_=Qe(l);if(w||_){const C=()=>{if(e.f){const M=w?g(l)?d[l]:c[l]:b()||!e.k?l.value:c[e.k];if(o)De(M)&&hr(M,s);else if(De(M))M.includes(s)||M.push(s);else if(w)c[l]=[s],g(l)&&(d[l]=c[l]);else{const I=[s];b(l,e.k)&&(l.value=I),e.k&&(c[e.k]=I)}}else w?(c[l]=r,g(l)&&(d[l]=r)):_&&(b(l,e.k)&&(l.value=r),e.k&&(c[e.k]=r))};if(r){const M=()=>{C(),Eo.delete(e)};M.id=-1,Eo.set(e,M),_t(M,n)}else ni(e),C()}}}function ni(e){const t=Eo.get(e);t&&(t.flags|=8,Eo.delete(e))}Vo().requestIdleCallback;Vo().cancelIdleCallback;const su=e=>!!e.type.__asyncLoader,Zo=e=>e.type.__isKeepAlive;function pf(e,t){xa(e,"a",t)}function hf(e,t){xa(e,"da",t)}function xa(e,t,n=mt){const u=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Jo(t,u,n),n){let o=n.parent;for(;o&&o.parent;)Zo(o.parent.vnode)&&mf(u,t,n,o),o=o.parent}}function mf(e,t,n,u){const o=Jo(t,e,u,!0);uo(()=>{hr(u[t],o)},n)}function Jo(e,t,n=mt,u=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{mn();const i=so(n),l=qt(t,n,e,r);return i(),gn(),l});return u?o.unshift(s):o.push(s),s}}const _n=e=>(t,n=mt)=>{(!ju||e==="sp")&&Jo(e,(...u)=>t(...u),n)},gf=_n("bm"),On=_n("m"),vf=_n("bu"),bf=_n("u"),Yo=_n("bum"),uo=_n("um"),_f=_n("sp"),yf=_n("rtg"),xf=_n("rtc");function kf(e,t=mt){Jo("ec",e,t)}const Er="components",wf="directives";function zu(e,t){return Sr(Er,e,!0,t)||e}const ka=Symbol.for("v-ndc");function wa(e){return Xe(e)?Sr(Er,e,!1)||e:e||ka}function zn(e){return Sr(wf,e)}function Sr(e,t,n=!0,u=!1){const o=ct||mt;if(o){const s=o.type;if(e===Er){const i=rd(s,!1);if(i&&(i===t||i===Mt(t)||i===qo(Mt(t))))return s}const r=ui(o[e]||s[e],t)||ui(o.appContext[e],t);return!r&&u?s:r}}function ui(e,t){return e&&(e[t]||e[Mt(t)]||e[qo(Mt(t))])}function Se(e,t,n,u){let o;const s=n,r=De(e);if(r||Xe(e)){const i=r&&pn(e);let l=!1,a=!1;i&&(l=!$t(e),a=vn(e),e=Uo(e)),o=new Array(e.length);for(let c=0,d=e.length;c<d;c++)o[c]=t(l?a?lu(jt(e[c])):jt(e[c]):e[c],c,void 0,s)}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,s)}else if(Ve(e))if(e[Symbol.iterator])o=Array.from(e,(i,l)=>t(i,l,void 0,s));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,s)}}else o=[];return o}function Bu(e,t,n={},u,o){if(ct.ce||ct.parent&&su(ct.parent)&&ct.parent.ce){const a=Object.keys(n).length>0;return t!=="default"&&(n.name=t),x(),yt(he,null,[Pe("slot",n,u)],a?-2:64)}let s=e[t];s&&s._c&&(s._d=!1),x();const r=s&&Ca(s(n)),i=n.key||r&&r.key,l=yt(he,{key:(i&&!Ht(i)?i:`_${t}`)+(!r&&u?"_fb":"")},r||[],r&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),s&&s._c&&(s._d=!0),l}function Ca(e){return e.some(t=>Hu(t)?!(t.type===ht||t.type===he&&!Ca(t.children)):!0)?e:null}const Vs=e=>e?Wa(e)?es(e):Vs(e.parent):null,Su=ot(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Vs(e.parent),$root:e=>Vs(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Ea(e),$forceUpdate:e=>e.f||(e.f=()=>{Cr(e.update)}),$nextTick:e=>e.n||(e.n=Je.bind(e.proxy)),$watch:e=>lf.bind(e)}),vs=(e,t)=>e!==We&&!e.__isScriptSetup&&je(e,t),Cf={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:u,data:o,props:s,accessCache:r,type:i,appContext:l}=e;if(t[0]!=="$"){const m=r[t];if(m!==void 0)switch(m){case 1:return u[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(vs(u,t))return r[t]=1,u[t];if(o!==We&&je(o,t))return r[t]=2,o[t];if(je(s,t))return r[t]=3,s[t];if(n!==We&&je(n,t))return r[t]=4,n[t];Us&&(r[t]=0)}}const a=Su[t];let c,d;if(a)return t==="$attrs"&&pt(e.attrs,"get",""),a(e);if((c=i.__cssModules)&&(c=c[t]))return c;if(n!==We&&je(n,t))return r[t]=4,n[t];if(d=l.config.globalProperties,je(d,t))return d[t]},set({_:e},t,n){const{data:u,setupState:o,ctx:s}=e;return vs(o,t)?(o[t]=n,!0):u!==We&&je(u,t)?(u[t]=n,!0):je(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:u,appContext:o,props:s,type:r}},i){let l;return!!(n[i]||e!==We&&i[0]!=="$"&&je(e,i)||vs(t,i)||je(s,i)||je(u,i)||je(Su,i)||je(o.config.globalProperties,i)||(l=r.__cssModules)&&l[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:je(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function $f(){return Ef().slots}function Ef(e){const t=oo();return t.setupContext||(t.setupContext=Ga(t))}function oi(e){return De(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Us=!0;function Sf(e){const t=Ea(e),n=e.proxy,u=e.ctx;Us=!1,t.beforeCreate&&si(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:r,watch:i,provide:l,inject:a,created:c,beforeMount:d,mounted:m,beforeUpdate:g,updated:b,activated:w,deactivated:_,beforeDestroy:C,beforeUnmount:M,destroyed:I,unmounted:$,render:R,renderTracked:T,renderTriggered:oe,errorCaptured:ue,serverPrefetch:J,expose:ee,inheritAttrs:ve,components:q,directives:ce,filters:te}=t;if(a&&Tf(a,u,null),r)for(const ie in r){const W=r[ie];Ie(W)&&(u[ie]=W.bind(n))}if(o){const ie=o.call(n,n);Ve(ie)&&(e.data=to(ie))}if(Us=!0,s)for(const ie in s){const W=s[ie],fe=Ie(W)?W.bind(n,n):Ie(W.get)?W.get.bind(n,n):Yt,ye=!Ie(W)&&Ie(W.set)?W.set.bind(n):Yt,j=L({get:fe,set:ye});Object.defineProperty(u,ie,{enumerable:!0,configurable:!0,get:()=>j.value,set:A=>j.value=A})}if(i)for(const ie in i)$a(i[ie],u,n,ie);if(l){const ie=Ie(l)?l.call(n):l;Reflect.ownKeys(ie).forEach(W=>{xn(W,ie[W])})}c&&si(c,e,"c");function X(ie,W){De(W)?W.forEach(fe=>ie(fe.bind(n))):W&&ie(W.bind(n))}if(X(gf,d),X(On,m),X(vf,g),X(bf,b),X(pf,w),X(hf,_),X(kf,ue),X(xf,T),X(yf,oe),X(Yo,M),X(uo,$),X(_f,J),De(ee))if(ee.length){const ie=e.exposed||(e.exposed={});ee.forEach(W=>{Object.defineProperty(ie,W,{get:()=>n[W],set:fe=>n[W]=fe,enumerable:!0})})}else e.exposed||(e.exposed={});R&&e.render===Yt&&(e.render=R),ve!=null&&(e.inheritAttrs=ve),q&&(e.components=q),ce&&(e.directives=ce),J&&ya(e)}function Tf(e,t,n=Yt){De(e)&&(e=Ws(e));for(const u in e){const o=e[u];let s;Ve(o)?"default"in o?s=Lt(o.from||u,o.default,!0):s=Lt(o.from||u):s=Lt(o),Qe(s)?Object.defineProperty(t,u,{enumerable:!0,configurable:!0,get:()=>s.value,set:r=>s.value=r}):t[u]=s}}function si(e,t,n){qt(De(e)?e.map(u=>u.bind(t.proxy)):e.bind(t.proxy),t,n)}function $a(e,t,n,u){let o=u.includes(".")?pa(n,u):()=>n[u];if(Xe(e)){const s=t[e];Ie(s)&&Ze(o,s)}else if(Ie(e))Ze(o,e.bind(n));else if(Ve(e))if(De(e))e.forEach(s=>$a(s,t,n,u));else{const s=Ie(e.handler)?e.handler.bind(n):t[e.handler];Ie(s)&&Ze(o,s,e)}}function Ea(e){const t=e.type,{mixins:n,extends:u}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:r}}=e.appContext,i=s.get(t);let l;return i?l=i:!o.length&&!n&&!u?l=t:(l={},o.length&&o.forEach(a=>So(l,a,r,!0)),So(l,t,r)),Ve(t)&&s.set(t,l),l}function So(e,t,n,u=!1){const{mixins:o,extends:s}=t;s&&So(e,s,n,!0),o&&o.forEach(r=>So(e,r,n,!0));for(const r in t)if(!(u&&r==="expose")){const i=Df[r]||n&&n[r];e[r]=i?i(e[r],t[r]):t[r]}return e}const Df={data:ri,props:ii,emits:ii,methods:ku,computed:ku,beforeCreate:gt,created:gt,beforeMount:gt,mounted:gt,beforeUpdate:gt,updated:gt,beforeDestroy:gt,beforeUnmount:gt,destroyed:gt,unmounted:gt,activated:gt,deactivated:gt,errorCaptured:gt,serverPrefetch:gt,components:ku,directives:ku,watch:Ff,provide:ri,inject:Af};function ri(e,t){return t?e?function(){return ot(Ie(e)?e.call(this,this):e,Ie(t)?t.call(this,this):t)}:t:e}function Af(e,t){return ku(Ws(e),Ws(t))}function Ws(e){if(De(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function gt(e,t){return e?[...new Set([].concat(e,t))]:t}function ku(e,t){return e?ot(Object.create(null),e,t):t}function ii(e,t){return e?De(e)&&De(t)?[...new Set([...e,...t])]:ot(Object.create(null),oi(e),oi(t??{})):t}function Ff(e,t){if(!e)return t;if(!t)return e;const n=ot(Object.create(null),e);for(const u in t)n[u]=gt(e[u],t[u]);return n}function Sa(){return{app:null,config:{isNativeTag:Rl,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 Mf=0;function If(e,t){return function(u,o=null){Ie(u)||(u=ot({},u)),o!=null&&!Ve(o)&&(o=null);const s=Sa(),r=new WeakSet,i=[];let l=!1;const a=s.app={_uid:Mf++,_component:u,_props:o,_container:null,_context:s,_instance:null,version:ld,get config(){return s.config},set config(c){},use(c,...d){return r.has(c)||(c&&Ie(c.install)?(r.add(c),c.install(a,...d)):Ie(c)&&(r.add(c),c(a,...d))),a},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),a},component(c,d){return d?(s.components[c]=d,a):s.components[c]},directive(c,d){return d?(s.directives[c]=d,a):s.directives[c]},mount(c,d,m){if(!l){const g=a._ceVNode||Pe(u,o);return g.appContext=s,m===!0?m="svg":m===!1&&(m=void 0),e(g,c,m),l=!0,a._container=c,c.__vue_app__=a,es(g.component)}},onUnmount(c){i.push(c)},unmount(){l&&(qt(i,a._instance,16),e(null,a._container),delete a._container.__vue_app__)},provide(c,d){return s.provides[c]=d,a},runWithContext(c){const d=Zn;Zn=a;try{return c()}finally{Zn=d}}};return a}}let Zn=null;const Pf=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Mt(t)}Modifiers`]||e[`${Rn(t)}Modifiers`];function Lf(e,t,...n){if(e.isUnmounted)return;const u=e.vnode.props||We;let o=n;const s=t.startsWith("update:"),r=s&&Pf(u,t.slice(7));r&&(r.trim&&(o=n.map(c=>Xe(c)?c.trim():c)),r.number&&(o=n.map(mr)));let i,l=u[i=fs(t)]||u[i=fs(Mt(t))];!l&&s&&(l=u[i=fs(Rn(t))]),l&&qt(l,e,6,o);const a=u[i+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,qt(a,e,6,o)}}const Rf=new WeakMap;function Ta(e,t,n=!1){const u=n?Rf:t.emitsCache,o=u.get(e);if(o!==void 0)return o;const s=e.emits;let r={},i=!1;if(!Ie(e)){const l=a=>{const c=Ta(a,t,!0);c&&(i=!0,ot(r,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!i?(Ve(e)&&u.set(e,null),null):(De(s)?s.forEach(l=>r[l]=null):ot(r,s),Ve(e)&&u.set(e,r),r)}function Xo(e,t){return!e||!No(t)?!1:(t=t.slice(2).replace(/Once$/,""),je(e,t[0].toLowerCase()+t.slice(1))||je(e,Rn(t))||je(e,t))}function li(e){const{type:t,vnode:n,proxy:u,withProxy:o,propsOptions:[s],slots:r,attrs:i,emit:l,render:a,renderCache:c,props:d,data:m,setupState:g,ctx:b,inheritAttrs:w}=e,_=$o(e);let C,M;try{if(n.shapeFlag&4){const $=o||u,R=$;C=Gt(a.call(R,$,c,d,g,m,b)),M=i}else{const $=t;C=Gt($.length>1?$(d,{attrs:i,slots:r,emit:l}):$(d,null)),M=t.props?i:Of(i)}}catch($){Tu.length=0,Ko($,e,1),C=Pe(ht)}let I=C;if(M&&w!==!1){const $=Object.keys(M),{shapeFlag:R}=I;$.length&&R&7&&(s&&$.some(pr)&&(M=zf(M,s)),I=In(I,M,!1,!0))}return n.dirs&&(I=In(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(n.dirs):n.dirs),n.transition&&Ou(I,n.transition),C=I,$o(_),C}const Of=e=>{let t;for(const n in e)(n==="class"||n==="style"||No(n))&&((t||(t={}))[n]=e[n]);return t},zf=(e,t)=>{const n={};for(const u in e)(!pr(u)||!(u.slice(9)in t))&&(n[u]=e[u]);return n};function Bf(e,t,n){const{props:u,children:o,component:s}=e,{props:r,children:i,patchFlag:l}=t,a=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return u?ai(u,r,a):!!r;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const m=c[d];if(Da(r,u,m)&&!Xo(a,m))return!0}}}else return(o||i)&&(!i||!i.$stable)?!0:u===r?!1:u?r?ai(u,r,a):!0:!!r;return!1}function ai(e,t,n){const u=Object.keys(t);if(u.length!==Object.keys(e).length)return!0;for(let o=0;o<u.length;o++){const s=u[o];if(Da(t,e,s)&&!Xo(n,s))return!0}return!1}function Da(e,t,n){const u=e[n],o=t[n];return n==="style"&&Ve(u)&&Ve(o)?!gr(u,o):u!==o}function Nf({vnode:e,parent:t},n){for(;t;){const u=t.subTree;if(u.suspense&&u.suspense.activeBranch===e&&(u.el=e.el),u===e)(e=t.vnode).el=n,t=t.parent;else break}}const Aa={},Fa=()=>Object.create(Aa),Ma=e=>Object.getPrototypeOf(e)===Aa;function Hf(e,t,n,u=!1){const o={},s=Fa();e.propsDefaults=Object.create(null),Ia(e,t,o,s);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=u?o:N0(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function jf(e,t,n,u){const{props:o,attrs:s,vnode:{patchFlag:r}}=e,i=Be(o),[l]=e.propsOptions;let a=!1;if((u||r>0)&&!(r&16)){if(r&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let m=c[d];if(Xo(e.emitsOptions,m))continue;const g=t[m];if(l)if(je(s,m))g!==s[m]&&(s[m]=g,a=!0);else{const b=Mt(m);o[b]=Ks(l,i,b,g,e,!1)}else g!==s[m]&&(s[m]=g,a=!0)}}}else{Ia(e,t,o,s)&&(a=!0);let c;for(const d in i)(!t||!je(t,d)&&((c=Rn(d))===d||!je(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(o[d]=Ks(l,i,d,void 0,e,!0)):delete o[d]);if(s!==i)for(const d in s)(!t||!je(t,d))&&(delete s[d],a=!0)}a&&an(e.attrs,"set","")}function Ia(e,t,n,u){const[o,s]=e.propsOptions;let r=!1,i;if(t)for(let l in t){if(wu(l))continue;const a=t[l];let c;o&&je(o,c=Mt(l))?!s||!s.includes(c)?n[c]=a:(i||(i={}))[c]=a:Xo(e.emitsOptions,l)||(!(l in u)||a!==u[l])&&(u[l]=a,r=!0)}if(s){const l=Be(n),a=i||We;for(let c=0;c<s.length;c++){const d=s[c];n[d]=Ks(o,l,d,a[d],e,!je(a,d))}}return r}function Ks(e,t,n,u,o,s){const r=e[n];if(r!=null){const i=je(r,"default");if(i&&u===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&Ie(l)){const{propsDefaults:a}=o;if(n in a)u=a[n];else{const c=so(o);u=a[n]=l.call(null,t),c()}}else u=l;o.ce&&o.ce._setProp(n,u)}r[0]&&(s&&!i?u=!1:r[1]&&(u===""||u===Rn(n))&&(u=!0))}return u}const qf=new WeakMap;function Pa(e,t,n=!1){const u=n?qf:t.propsCache,o=u.get(e);if(o)return o;const s=e.props,r={},i=[];let l=!1;if(!Ie(e)){const c=d=>{l=!0;const[m,g]=Pa(d,t,!0);ot(r,m),g&&i.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!s&&!l)return Ve(e)&&u.set(e,nu),nu;if(De(s))for(let c=0;c<s.length;c++){const d=Mt(s[c]);ci(d)&&(r[d]=We)}else if(s)for(const c in s){const d=Mt(c);if(ci(d)){const m=s[c],g=r[d]=De(m)||Ie(m)?{type:m}:ot({},m),b=g.type;let w=!1,_=!0;if(De(b))for(let C=0;C<b.length;++C){const M=b[C],I=Ie(M)&&M.name;if(I==="Boolean"){w=!0;break}else I==="String"&&(_=!1)}else w=Ie(b)&&b.name==="Boolean";g[0]=w,g[1]=_,(w||je(g,"default"))&&i.push(d)}}const a=[r,i];return Ve(e)&&u.set(e,a),a}function ci(e){return e[0]!=="$"&&!wu(e)}const Tr=e=>e==="_"||e==="_ctx"||e==="$stable",Dr=e=>De(e)?e.map(Gt):[Gt(e)],Vf=(e,t,n)=>{if(t._n)return t;const u=lt((...o)=>Dr(t(...o)),n);return u._c=!1,u},La=(e,t,n)=>{const u=e._ctx;for(const o in e){if(Tr(o))continue;const s=e[o];if(Ie(s))t[o]=Vf(o,s,u);else if(s!=null){const r=Dr(s);t[o]=()=>r}}},Ra=(e,t)=>{const n=Dr(t);e.slots.default=()=>n},Oa=(e,t,n)=>{for(const u in t)(n||!Tr(u))&&(e[u]=t[u])},Uf=(e,t,n)=>{const u=e.slots=Fa();if(e.vnode.shapeFlag&32){const o=t._;o?(Oa(u,t,n),n&&Hl(u,"_",o,!0)):La(t,u)}else t&&Ra(e,t)},Wf=(e,t,n)=>{const{vnode:u,slots:o}=e;let s=!0,r=We;if(u.shapeFlag&32){const i=t._;i?n&&i===1?s=!1:Oa(o,t,n):(s=!t.$stable,La(t,o)),r=t}else t&&(Ra(e,t),r={default:1});if(s)for(const i in o)!Tr(i)&&r[i]==null&&delete o[i]},_t=Yf;function Kf(e){return Gf(e)}function Gf(e,t){const n=Vo();n.__VUE__=!0;const{insert:u,remove:o,patchProp:s,createElement:r,createText:i,createComment:l,setText:a,setElementText:c,parentNode:d,nextSibling:m,setScopeId:g=Yt,insertStaticContent:b}=e,w=(y,f,h,v=null,D=null,z=null,se=void 0,K=null,pe=!!f.dynamicChildren)=>{if(y===f)return;y&&!Kn(y,f)&&(v=B(y),A(y,D,z,!0),y=null),f.patchFlag===-2&&(pe=!1,f.dynamicChildren=null);const{type:Q,ref:Ce,shapeFlag:ge}=f;switch(Q){case Qo:_(y,f,h,v);break;case ht:C(y,f,h,v);break;case bo:y==null&&M(f,h,v,se);break;case he:q(y,f,h,v,D,z,se,K,pe);break;default:ge&1?R(y,f,h,v,D,z,se,K,pe):ge&6?ce(y,f,h,v,D,z,se,K,pe):(ge&64||ge&128)&&Q.process(y,f,h,v,D,z,se,K,pe,O)}Ce!=null&&D?Eu(Ce,y&&y.ref,z,f||y,!f):Ce==null&&y&&y.ref!=null&&Eu(y.ref,null,z,y,!0)},_=(y,f,h,v)=>{if(y==null)u(f.el=i(f.children),h,v);else{const D=f.el=y.el;f.children!==y.children&&a(D,f.children)}},C=(y,f,h,v)=>{y==null?u(f.el=l(f.children||""),h,v):f.el=y.el},M=(y,f,h,v)=>{[y.el,y.anchor]=b(y.children,f,h,v,y.el,y.anchor)},I=({el:y,anchor:f},h,v)=>{let D;for(;y&&y!==f;)D=m(y),u(y,h,v),y=D;u(f,h,v)},$=({el:y,anchor:f})=>{let h;for(;y&&y!==f;)h=m(y),o(y),y=h;o(f)},R=(y,f,h,v,D,z,se,K,pe)=>{if(f.type==="svg"?se="svg":f.type==="math"&&(se="mathml"),y==null)T(f,h,v,D,z,se,K,pe);else{const Q=y.el&&y.el._isVueCE?y.el:null;try{Q&&Q._beginPatch(),J(y,f,D,z,se,K,pe)}finally{Q&&Q._endPatch()}}},T=(y,f,h,v,D,z,se,K)=>{let pe,Q;const{props:Ce,shapeFlag:ge,transition:xe,dirs:Te}=y;if(pe=y.el=r(y.type,z,Ce&&Ce.is,Ce),ge&8?c(pe,y.children):ge&16&&ue(y.children,pe,null,v,D,bs(y,z),se,K),Te&&Nn(y,null,v,"created"),oe(pe,y,y.scopeId,se,v),Ce){for(const He in Ce)He!=="value"&&!wu(He)&&s(pe,He,null,Ce[He],z,v);"value"in Ce&&s(pe,"value",null,Ce.value,z),(Q=Ce.onVnodeBeforeMount)&&Ut(Q,v,y)}Te&&Nn(y,null,v,"beforeMount");const Le=Zf(D,xe);Le&&xe.beforeEnter(pe),u(pe,f,h),((Q=Ce&&Ce.onVnodeMounted)||Le||Te)&&_t(()=>{Q&&Ut(Q,v,y),Le&&xe.enter(pe),Te&&Nn(y,null,v,"mounted")},D)},oe=(y,f,h,v,D)=>{if(h&&g(y,h),v)for(let z=0;z<v.length;z++)g(y,v[z]);if(D){let z=D.subTree;if(f===z||Ha(z.type)&&(z.ssContent===f||z.ssFallback===f)){const se=D.vnode;oe(y,se,se.scopeId,se.slotScopeIds,D.parent)}}},ue=(y,f,h,v,D,z,se,K,pe=0)=>{for(let Q=pe;Q<y.length;Q++){const Ce=y[Q]=K?ln(y[Q]):Gt(y[Q]);w(null,Ce,f,h,v,D,z,se,K)}},J=(y,f,h,v,D,z,se)=>{const K=f.el=y.el;let{patchFlag:pe,dynamicChildren:Q,dirs:Ce}=f;pe|=y.patchFlag&16;const ge=y.props||We,xe=f.props||We;let Te;if(h&&Hn(h,!1),(Te=xe.onVnodeBeforeUpdate)&&Ut(Te,h,f,y),Ce&&Nn(f,y,h,"beforeUpdate"),h&&Hn(h,!0),(ge.innerHTML&&xe.innerHTML==null||ge.textContent&&xe.textContent==null)&&c(K,""),Q?ee(y.dynamicChildren,Q,K,h,v,bs(f,D),z):se||W(y,f,K,null,h,v,bs(f,D),z,!1),pe>0){if(pe&16)ve(K,ge,xe,h,D);else if(pe&2&&ge.class!==xe.class&&s(K,"class",null,xe.class,D),pe&4&&s(K,"style",ge.style,xe.style,D),pe&8){const Le=f.dynamicProps;for(let He=0;He<Le.length;He++){const Re=Le[He],nt=ge[Re],st=xe[Re];(st!==nt||Re==="value")&&s(K,Re,nt,st,D,h)}}pe&1&&y.children!==f.children&&c(K,f.children)}else!se&&Q==null&&ve(K,ge,xe,h,D);((Te=xe.onVnodeUpdated)||Ce)&&_t(()=>{Te&&Ut(Te,h,f,y),Ce&&Nn(f,y,h,"updated")},v)},ee=(y,f,h,v,D,z,se)=>{for(let K=0;K<f.length;K++){const pe=y[K],Q=f[K],Ce=pe.el&&(pe.type===he||!Kn(pe,Q)||pe.shapeFlag&198)?d(pe.el):h;w(pe,Q,Ce,null,v,D,z,se,!0)}},ve=(y,f,h,v,D)=>{if(f!==h){if(f!==We)for(const z in f)!wu(z)&&!(z in h)&&s(y,z,f[z],null,D,v);for(const z in h){if(wu(z))continue;const se=h[z],K=f[z];se!==K&&z!=="value"&&s(y,z,K,se,D,v)}"value"in h&&s(y,"value",f.value,h.value,D)}},q=(y,f,h,v,D,z,se,K,pe)=>{const Q=f.el=y?y.el:i(""),Ce=f.anchor=y?y.anchor:i("");let{patchFlag:ge,dynamicChildren:xe,slotScopeIds:Te}=f;Te&&(K=K?K.concat(Te):Te),y==null?(u(Q,h,v),u(Ce,h,v),ue(f.children||[],h,Ce,D,z,se,K,pe)):ge>0&&ge&64&&xe&&y.dynamicChildren&&y.dynamicChildren.length===xe.length?(ee(y.dynamicChildren,xe,h,D,z,se,K),(f.key!=null||D&&f===D.subTree)&&za(y,f,!0)):W(y,f,h,Ce,D,z,se,K,pe)},ce=(y,f,h,v,D,z,se,K,pe)=>{f.slotScopeIds=K,y==null?f.shapeFlag&512?D.ctx.activate(f,h,v,se,pe):te(f,h,v,D,z,se,pe):E(y,f,pe)},te=(y,f,h,v,D,z,se)=>{const K=y.component=nd(y,v,D);if(Zo(y)&&(K.ctx.renderer=O),ud(K,!1,se),K.asyncDep){if(D&&D.registerDep(K,X,se),!y.el){const pe=K.subTree=Pe(ht);C(null,pe,f,h),y.placeholder=pe.el}}else X(K,y,f,h,D,z,se)},E=(y,f,h)=>{const v=f.component=y.component;if(Bf(y,f,h))if(v.asyncDep&&!v.asyncResolved){ie(v,f,h);return}else v.next=f,v.update();else f.el=y.el,v.vnode=f},X=(y,f,h,v,D,z,se)=>{const K=()=>{if(y.isMounted){let{next:ge,bu:xe,u:Te,parent:Le,vnode:He}=y;{const U=Ba(y);if(U){ge&&(ge.el=He.el,ie(y,ge,se)),U.asyncDep.then(()=>{_t(()=>{y.isUnmounted||Q()},D)});return}}let Re=ge,nt;Hn(y,!1),ge?(ge.el=He.el,ie(y,ge,se)):ge=He,xe&&vo(xe),(nt=ge.props&&ge.props.onVnodeBeforeUpdate)&&Ut(nt,Le,ge,He),Hn(y,!0);const st=li(y),bt=y.subTree;y.subTree=st,w(bt,st,d(bt.el),B(bt),y,D,z),ge.el=st.el,Re===null&&Nf(y,st.el),Te&&_t(Te,D),(nt=ge.props&&ge.props.onVnodeUpdated)&&_t(()=>Ut(nt,Le,ge,He),D)}else{let ge;const{el:xe,props:Te}=f,{bm:Le,m:He,parent:Re,root:nt,type:st}=y,bt=su(f);Hn(y,!1),Le&&vo(Le),!bt&&(ge=Te&&Te.onVnodeBeforeMount)&&Ut(ge,Re,f),Hn(y,!0);{nt.ce&&nt.ce._hasShadowRoot()&&nt.ce._injectChildStyle(st);const U=y.subTree=li(y);w(null,U,h,v,y,D,z),f.el=U.el}if(He&&_t(He,D),!bt&&(ge=Te&&Te.onVnodeMounted)){const U=f;_t(()=>Ut(ge,Re,U),D)}(f.shapeFlag&256||Re&&su(Re.vnode)&&Re.vnode.shapeFlag&256)&&y.a&&_t(y.a,D),y.isMounted=!0,f=h=v=null}};y.scope.on();const pe=y.effect=new Gl(K);y.scope.off();const Q=y.update=pe.run.bind(pe),Ce=y.job=pe.runIfDirty.bind(pe);Ce.i=y,Ce.id=y.uid,pe.scheduler=()=>Cr(Ce),Hn(y,!0),Q()},ie=(y,f,h)=>{f.component=y;const v=y.vnode.props;y.vnode=f,y.next=null,jf(y,f.props,v,h),Wf(y,f.children,h),mn(),Qr(y),gn()},W=(y,f,h,v,D,z,se,K,pe=!1)=>{const Q=y&&y.children,Ce=y?y.shapeFlag:0,ge=f.children,{patchFlag:xe,shapeFlag:Te}=f;if(xe>0){if(xe&128){ye(Q,ge,h,v,D,z,se,K,pe);return}else if(xe&256){fe(Q,ge,h,v,D,z,se,K,pe);return}}Te&8?(Ce&16&&S(Q,D,z),ge!==Q&&c(h,ge)):Ce&16?Te&16?ye(Q,ge,h,v,D,z,se,K,pe):S(Q,D,z,!0):(Ce&8&&c(h,""),Te&16&&ue(ge,h,v,D,z,se,K,pe))},fe=(y,f,h,v,D,z,se,K,pe)=>{y=y||nu,f=f||nu;const Q=y.length,Ce=f.length,ge=Math.min(Q,Ce);let xe;for(xe=0;xe<ge;xe++){const Te=f[xe]=pe?ln(f[xe]):Gt(f[xe]);w(y[xe],Te,h,null,D,z,se,K,pe)}Q>Ce?S(y,D,z,!0,!1,ge):ue(f,h,v,D,z,se,K,pe,ge)},ye=(y,f,h,v,D,z,se,K,pe)=>{let Q=0;const Ce=f.length;let ge=y.length-1,xe=Ce-1;for(;Q<=ge&&Q<=xe;){const Te=y[Q],Le=f[Q]=pe?ln(f[Q]):Gt(f[Q]);if(Kn(Te,Le))w(Te,Le,h,null,D,z,se,K,pe);else break;Q++}for(;Q<=ge&&Q<=xe;){const Te=y[ge],Le=f[xe]=pe?ln(f[xe]):Gt(f[xe]);if(Kn(Te,Le))w(Te,Le,h,null,D,z,se,K,pe);else break;ge--,xe--}if(Q>ge){if(Q<=xe){const Te=xe+1,Le=Te<Ce?f[Te].el:v;for(;Q<=xe;)w(null,f[Q]=pe?ln(f[Q]):Gt(f[Q]),h,Le,D,z,se,K,pe),Q++}}else if(Q>xe)for(;Q<=ge;)A(y[Q],D,z,!0),Q++;else{const Te=Q,Le=Q,He=new Map;for(Q=Le;Q<=xe;Q++){const re=f[Q]=pe?ln(f[Q]):Gt(f[Q]);re.key!=null&&He.set(re.key,Q)}let Re,nt=0;const st=xe-Le+1;let bt=!1,U=0;const V=new Array(st);for(Q=0;Q<st;Q++)V[Q]=0;for(Q=Te;Q<=ge;Q++){const re=y[Q];if(nt>=st){A(re,D,z,!0);continue}let ke;if(re.key!=null)ke=He.get(re.key);else for(Re=Le;Re<=xe;Re++)if(V[Re-Le]===0&&Kn(re,f[Re])){ke=Re;break}ke===void 0?A(re,D,z,!0):(V[ke-Le]=Q+1,ke>=U?U=ke:bt=!0,w(re,f[ke],h,null,D,z,se,K,pe),nt++)}const be=bt?Jf(V):nu;for(Re=be.length-1,Q=st-1;Q>=0;Q--){const re=Le+Q,ke=f[re],Fe=f[re+1],Me=re+1<Ce?Fe.el||Na(Fe):v;V[Q]===0?w(null,ke,h,Me,D,z,se,K,pe):bt&&(Re<0||Q!==be[Re]?j(ke,h,Me,2):Re--)}}},j=(y,f,h,v,D=null)=>{const{el:z,type:se,transition:K,children:pe,shapeFlag:Q}=y;if(Q&6){j(y.component.subTree,f,h,v);return}if(Q&128){y.suspense.move(f,h,v);return}if(Q&64){se.move(y,f,h,O);return}if(se===he){u(z,f,h);for(let ge=0;ge<pe.length;ge++)j(pe[ge],f,h,v);u(y.anchor,f,h);return}if(se===bo){I(y,f,h);return}if(v!==2&&Q&1&&K)if(v===0)K.beforeEnter(z),u(z,f,h),_t(()=>K.enter(z),D);else{const{leave:ge,delayLeave:xe,afterLeave:Te}=K,Le=()=>{y.ctx.isUnmounted?o(z):u(z,f,h)},He=()=>{z._isLeaving&&z[Kt](!0),ge(z,()=>{Le(),Te&&Te()})};xe?xe(z,Le,He):He()}else u(z,f,h)},A=(y,f,h,v=!1,D=!1)=>{const{type:z,props:se,ref:K,children:pe,dynamicChildren:Q,shapeFlag:Ce,patchFlag:ge,dirs:xe,cacheIndex:Te}=y;if(ge===-2&&(D=!1),K!=null&&(mn(),Eu(K,null,h,y,!0),gn()),Te!=null&&(f.renderCache[Te]=void 0),Ce&256){f.ctx.deactivate(y);return}const Le=Ce&1&&xe,He=!su(y);let Re;if(He&&(Re=se&&se.onVnodeBeforeUnmount)&&Ut(Re,f,y),Ce&6)le(y.component,h,v);else{if(Ce&128){y.suspense.unmount(h,v);return}Le&&Nn(y,null,f,"beforeUnmount"),Ce&64?y.type.remove(y,f,h,O,v):Q&&!Q.hasOnce&&(z!==he||ge>0&&ge&64)?S(Q,f,h,!1,!0):(z===he&&ge&384||!D&&Ce&16)&&S(pe,f,h),v&&P(y)}(He&&(Re=se&&se.onVnodeUnmounted)||Le)&&_t(()=>{Re&&Ut(Re,f,y),Le&&Nn(y,null,f,"unmounted")},h)},P=y=>{const{type:f,el:h,anchor:v,transition:D}=y;if(f===he){ne(h,v);return}if(f===bo){$(y);return}const z=()=>{o(h),D&&!D.persisted&&D.afterLeave&&D.afterLeave()};if(y.shapeFlag&1&&D&&!D.persisted){const{leave:se,delayLeave:K}=D,pe=()=>se(h,z);K?K(y.el,z,pe):pe()}else z()},ne=(y,f)=>{let h;for(;y!==f;)h=m(y),o(y),y=h;o(f)},le=(y,f,h)=>{const{bum:v,scope:D,job:z,subTree:se,um:K,m:pe,a:Q}=y;fi(pe),fi(Q),v&&vo(v),D.stop(),z&&(z.flags|=8,A(se,y,f,h)),K&&_t(K,f),_t(()=>{y.isUnmounted=!0},f)},S=(y,f,h,v=!1,D=!1,z=0)=>{for(let se=z;se<y.length;se++)A(y[se],f,h,v,D)},B=y=>{if(y.shapeFlag&6)return B(y.component.subTree);if(y.shapeFlag&128)return y.suspense.next();const f=m(y.anchor||y.el),h=f&&f[af];return h?m(h):f};let Z=!1;const Y=(y,f,h)=>{let v;y==null?f._vnode&&(A(f._vnode,null,null,!0),v=f._vnode.component):w(f._vnode||null,y,f,null,null,null,h),f._vnode=y,Z||(Z=!0,Qr(v),fa(),Z=!1)},O={p:w,um:A,m:j,r:P,mt:te,mc:ue,pc:W,pbc:ee,n:B,o:e};return{render:Y,hydrate:void 0,createApp:If(Y)}}function bs({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 Hn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Zf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function za(e,t,n=!1){const u=e.children,o=t.children;if(De(u)&&De(o))for(let s=0;s<u.length;s++){const r=u[s];let i=o[s];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=o[s]=ln(o[s]),i.el=r.el),!n&&i.patchFlag!==-2&&za(r,i)),i.type===Qo&&(i.patchFlag===-1&&(i=o[s]=ln(i)),i.el=r.el),i.type===ht&&!i.el&&(i.el=r.el)}}function Jf(e){const t=e.slice(),n=[0];let u,o,s,r,i;const l=e.length;for(u=0;u<l;u++){const a=e[u];if(a!==0){if(o=n[n.length-1],e[o]<a){t[u]=o,n.push(u);continue}for(s=0,r=n.length-1;s<r;)i=s+r>>1,e[n[i]]<a?s=i+1:r=i;a<e[n[s]]&&(s>0&&(t[u]=n[s-1]),n[s]=u)}}for(s=n.length,r=n[s-1];s-- >0;)n[s]=r,r=t[r];return n}function Ba(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ba(t)}function fi(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Na(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Na(t.subTree):null}const Ha=e=>e.__isSuspense;function Yf(e,t){t&&t.pendingBranch?De(e)?t.effects.push(...e):t.effects.push(e):Q0(e)}const he=Symbol.for("v-fgt"),Qo=Symbol.for("v-txt"),ht=Symbol.for("v-cmt"),bo=Symbol.for("v-stc"),Tu=[];let Ct=null;function x(e=!1){Tu.push(Ct=e?null:[])}function Xf(){Tu.pop(),Ct=Tu[Tu.length-1]||null}let Nu=1;function To(e,t=!1){Nu+=e,e<0&&Ct&&t&&(Ct.hasOnce=!0)}function ja(e){return e.dynamicChildren=Nu>0?Ct||nu:null,Xf(),Nu>0&&Ct&&Ct.push(e),e}function k(e,t,n,u,o,s){return ja(p(e,t,n,u,o,s,!0))}function yt(e,t,n,u,o){return ja(Pe(e,t,n,u,o,!0))}function Hu(e){return e?e.__v_isVNode===!0:!1}function Kn(e,t){return e.type===t.type&&e.key===t.key}const qa=({key:e})=>e??null,_o=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Xe(e)||Qe(e)||Ie(e)?{i:ct,r:e,k:t,f:!!n}:e:null);function p(e,t=null,n=null,u=0,o=null,s=e===he?0:1,r=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qa(t),ref:t&&_o(t),scopeId:Go,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:s,patchFlag:u,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ct};return i?(Ar(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=Xe(n)?8:16),Nu>0&&!r&&Ct&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&Ct.push(l),l}const Pe=Qf;function Qf(e,t=null,n=null,u=0,o=null,s=!1){if((!e||e===ka)&&(e=ht),Hu(e)){const i=In(e,t,!0);return n&&Ar(i,n),Nu>0&&!s&&Ct&&(i.shapeFlag&6?Ct[Ct.indexOf(e)]=i:Ct.push(i)),i.patchFlag=-2,i}if(id(e)&&(e=e.__vccOpts),t){t=Va(t);let{class:i,style:l}=t;i&&!Xe(i)&&(t.class=de(i)),Ve(l)&&(Wo(l)&&!De(l)&&(l=ot({},l)),t.style=Ae(l))}const r=Xe(e)?1:Ha(e)?128:ha(e)?64:Ve(e)?4:Ie(e)?2:0;return p(e,t,n,u,o,r,s,!0)}function Va(e){return e?Wo(e)||Ma(e)?ot({},e):e:null}function In(e,t,n=!1,u=!1){const{props:o,ref:s,patchFlag:r,children:i,transition:l}=e,a=t?Fr(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&qa(a),ref:t&&t.ref?n&&s?De(s)?s.concat(_o(t)):[s,_o(t)]:_o(t):s,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!==he?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&&In(e.ssContent),ssFallback:e.ssFallback&&In(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&u&&Ou(c,l.clone(c)),c}function $e(e=" ",t=0){return Pe(Qo,null,e,t)}function Ua(e,t){const n=Pe(bo,null,e);return n.staticCount=t,n}function ae(e="",t=!1){return t?(x(),yt(ht,null,e)):Pe(ht,null,e)}function Gt(e){return e==null||typeof e=="boolean"?Pe(ht):De(e)?Pe(he,null,e.slice()):Hu(e)?ln(e):Pe(Qo,null,String(e))}function ln(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:In(e)}function Ar(e,t){let n=0;const{shapeFlag:u}=e;if(t==null)t=null;else if(De(t))n=16;else if(typeof t=="object")if(u&65){const o=t.default;o&&(o._c&&(o._d=!1),Ar(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Ma(t)?t._ctx=ct:o===3&&ct&&(ct.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ie(t)?(t={default:t,_ctx:ct},n=32):(t=String(t),u&64?(n=16,t=[$e(t)]):n=8);e.children=t,e.shapeFlag|=n}function Fr(...e){const t={};for(let n=0;n<e.length;n++){const u=e[n];for(const o in u)if(o==="class")t.class!==u.class&&(t.class=de([t.class,u.class]));else if(o==="style")t.style=Ae([t.style,u.style]);else if(No(o)){const s=t[o],r=u[o];r&&s!==r&&!(De(s)&&s.includes(r))&&(t[o]=s?[].concat(s,r):r)}else o!==""&&(t[o]=u[o])}return t}function Ut(e,t,n,u=null){qt(e,t,7,[n,u])}const ed=Sa();let td=0;function nd(e,t,n){const u=e.type,o=(t?t.appContext:e.appContext)||ed,s={uid:td++,vnode:e,type:u,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Ul(!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:Pa(u,o),emitsOptions:Ta(u,o),emit:null,emitted:null,propsDefaults:We,inheritAttrs:u.inheritAttrs,ctx:We,data:We,props:We,attrs:We,slots:We,refs:We,setupState:We,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=Lf.bind(null,s),e.ce&&e.ce(s),s}let mt=null;const oo=()=>mt||ct;let Do,Gs;{const e=Vo(),t=(n,u)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(u),s=>{o.length>1?o.forEach(r=>r(s)):o[0](s)}};Do=t("__VUE_INSTANCE_SETTERS__",n=>mt=n),Gs=t("__VUE_SSR_SETTERS__",n=>ju=n)}const so=e=>{const t=mt;return Do(e),e.scope.on(),()=>{e.scope.off(),Do(t)}},di=()=>{mt&&mt.scope.off(),Do(null)};function Wa(e){return e.vnode.shapeFlag&4}let ju=!1;function ud(e,t=!1,n=!1){t&&Gs(t);const{props:u,children:o}=e.vnode,s=Wa(e);Hf(e,u,s,t),Uf(e,o,n||t);const r=s?od(e,t):void 0;return t&&Gs(!1),r}function od(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Cf);const{setup:u}=n;if(u){mn();const o=e.setupContext=u.length>1?Ga(e):null,s=so(e),r=no(u,e,0,[e.props,o]),i=zl(r);if(gn(),s(),(i||e.sp)&&!su(e)&&ya(e),i){if(r.then(di,di),t)return r.then(l=>{pi(e,l)}).catch(l=>{Ko(l,e,0)});e.asyncDep=r}else pi(e,r)}else Ka(e)}function pi(e,t,n){Ie(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ve(t)&&(e.setupState=la(t)),Ka(e)}function Ka(e,t,n){const u=e.type;e.render||(e.render=u.render||Yt);{const o=so(e);mn();try{Sf(e)}finally{gn(),o()}}}const sd={get(e,t){return pt(e,"get",""),e[t]}};function Ga(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,sd),slots:e.slots,emit:e.emit,expose:t}}function es(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(la(wr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Su)return Su[n](e)},has(t,n){return n in t||n in Su}})):e.proxy}function rd(e,t=!0){return Ie(e)?e.displayName||e.name:e.name||t&&e.__name}function id(e){return Ie(e)&&"__vccOpts"in e}const L=(e,t)=>G0(e,t,ju);function Mr(e,t,n){try{To(-1);const u=arguments.length;return u===2?Ve(t)&&!De(t)?Hu(t)?Pe(e,null,[t]):Pe(e,t):Pe(e,null,t):(u>3?n=Array.prototype.slice.call(arguments,2):u===3&&Hu(n)&&(n=[n]),Pe(e,t,n))}finally{To(1)}}const ld="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 Zs;const hi=typeof window<"u"&&window.trustedTypes;if(hi)try{Zs=hi.createPolicy("vue",{createHTML:e=>e})}catch{}const Za=Zs?e=>Zs.createHTML(e):e=>e,ad="http://www.w3.org/2000/svg",cd="http://www.w3.org/1998/Math/MathML",rn=typeof document<"u"?document:null,mi=rn&&rn.createElement("template"),fd={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,u)=>{const o=t==="svg"?rn.createElementNS(ad,e):t==="mathml"?rn.createElementNS(cd,e):n?rn.createElement(e,{is:n}):rn.createElement(e);return e==="select"&&u&&u.multiple!=null&&o.setAttribute("multiple",u.multiple),o},createText:e=>rn.createTextNode(e),createComment:e=>rn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>rn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,u,o,s){const r=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{mi.innerHTML=Za(u==="svg"?`<svg>${e}</svg>`:u==="mathml"?`<math>${e}</math>`:e);const i=mi.content;if(u==="svg"||u==="mathml"){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}t.insertBefore(i,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},yn="transition",vu="animation",qu=Symbol("_vtc"),Ja={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},dd=ot({},ma,Ja),pd=e=>(e.displayName="Transition",e.props=dd,e),fn=pd((e,{slots:t})=>Mr(df,hd(e),t)),jn=(e,t=[])=>{De(e)?e.forEach(n=>n(...t)):e&&e(...t)},gi=e=>e?De(e)?e.some(t=>t.length>1):e.length>1:!1;function hd(e){const t={};for(const q in e)q in Ja||(t[q]=e[q]);if(e.css===!1)return t;const{name:n="v",type:u,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:l=s,appearActiveClass:a=r,appearToClass:c=i,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,b=md(o),w=b&&b[0],_=b&&b[1],{onBeforeEnter:C,onEnter:M,onEnterCancelled:I,onLeave:$,onLeaveCancelled:R,onBeforeAppear:T=C,onAppear:oe=M,onAppearCancelled:ue=I}=t,J=(q,ce,te,E)=>{q._enterCancelled=E,qn(q,ce?c:i),qn(q,ce?a:r),te&&te()},ee=(q,ce)=>{q._isLeaving=!1,qn(q,d),qn(q,g),qn(q,m),ce&&ce()},ve=q=>(ce,te)=>{const E=q?oe:M,X=()=>J(ce,q,te);jn(E,[ce,X]),vi(()=>{qn(ce,q?l:s),sn(ce,q?c:i),gi(E)||bi(ce,u,w,X)})};return ot(t,{onBeforeEnter(q){jn(C,[q]),sn(q,s),sn(q,r)},onBeforeAppear(q){jn(T,[q]),sn(q,l),sn(q,a)},onEnter:ve(!1),onAppear:ve(!0),onLeave(q,ce){q._isLeaving=!0;const te=()=>ee(q,ce);sn(q,d),q._enterCancelled?(sn(q,m),xi(q)):(xi(q),sn(q,m)),vi(()=>{q._isLeaving&&(qn(q,d),sn(q,g),gi($)||bi(q,u,_,te))}),jn($,[q,te])},onEnterCancelled(q){J(q,!1,void 0,!0),jn(I,[q])},onAppearCancelled(q){J(q,!0,void 0,!0),jn(ue,[q])},onLeaveCancelled(q){ee(q),jn(R,[q])}})}function md(e){if(e==null)return null;if(Ve(e))return[_s(e.enter),_s(e.leave)];{const t=_s(e);return[t,t]}}function _s(e){return f0(e)}function sn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[qu]||(e[qu]=new Set)).add(t)}function qn(e,t){t.split(/\s+/).forEach(u=>u&&e.classList.remove(u));const n=e[qu];n&&(n.delete(t),n.size||(e[qu]=void 0))}function vi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let gd=0;function bi(e,t,n,u){const o=e._endId=++gd,s=()=>{o===e._endId&&u()};if(n!=null)return setTimeout(s,n);const{type:r,timeout:i,propCount:l}=vd(e,t);if(!r)return u();const a=r+"end";let c=0;const d=()=>{e.removeEventListener(a,m),s()},m=g=>{g.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},i+1),e.addEventListener(a,m)}function vd(e,t){const n=window.getComputedStyle(e),u=b=>(n[b]||"").split(", "),o=u(`${yn}Delay`),s=u(`${yn}Duration`),r=_i(o,s),i=u(`${vu}Delay`),l=u(`${vu}Duration`),a=_i(i,l);let c=null,d=0,m=0;t===yn?r>0&&(c=yn,d=r,m=s.length):t===vu?a>0&&(c=vu,d=a,m=l.length):(d=Math.max(r,a),c=d>0?r>a?yn:vu:null,m=c?c===yn?s.length:l.length:0);const g=c===yn&&/\b(?:transform|all)(?:,|$)/.test(u(`${yn}Property`).toString());return{type:c,timeout:d,propCount:m,hasTransform:g}}function _i(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,u)=>yi(n)+yi(e[u])))}function yi(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function xi(e){return(e?e.ownerDocument:document).body.offsetHeight}function bd(e,t,n){const u=e[qu];u&&(t=(t?[t,...u]:[...u]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ao=Symbol("_vod"),Ya=Symbol("_vsh"),_d={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ao]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):bu(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:u}){!t!=!n&&(u?t?(u.beforeEnter(e),bu(e,!0),u.enter(e)):u.leave(e,()=>{bu(e,!1)}):bu(e,t))},beforeUnmount(e,{value:t}){bu(e,t)}};function bu(e,t){e.style.display=t?e[Ao]:"none",e[Ya]=!t}const yd=Symbol(""),xd=/(?:^|;)\s*display\s*:/;function kd(e,t,n){const u=e.style,o=Xe(n);let s=!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&&yo(u,i,"")}else for(const r in t)n[r]==null&&yo(u,r,"");for(const r in n)r==="display"&&(s=!0),yo(u,r,n[r])}else if(o){if(t!==n){const r=u[yd];r&&(n+=";"+r),u.cssText=n,s=xd.test(n)}}else t&&e.removeAttribute("style");Ao in e&&(e[Ao]=s?u.display:"",e[Ya]&&(u.display="none"))}const ki=/\s*!important$/;function yo(e,t,n){if(De(n))n.forEach(u=>yo(e,t,u));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const u=wd(e,t);ki.test(n)?e.setProperty(Rn(u),n.replace(ki,""),"important"):e[u]=n}}const wi=["Webkit","Moz","ms"],ys={};function wd(e,t){const n=ys[t];if(n)return n;let u=Mt(t);if(u!=="filter"&&u in e)return ys[t]=u;u=qo(u);for(let o=0;o<wi.length;o++){const s=wi[o]+u;if(s in e)return ys[t]=s}return t}const Ci="http://www.w3.org/1999/xlink";function $i(e,t,n,u,o,s=b0(t)){u&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ci,t.slice(6,t.length)):e.setAttributeNS(Ci,t,n):n==null||s&&!jl(n)?e.removeAttribute(t):e.setAttribute(t,s?"":Ht(n)?String(n):n)}function Ei(e,t,n,u,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Za(n):n);return}const s=e.tagName;if(t==="value"&&s!=="PROGRESS"&&!s.includes("-")){const i=s==="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=jl(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 tu(e,t,n,u){e.addEventListener(t,n,u)}function Cd(e,t,n,u){e.removeEventListener(t,n,u)}const Si=Symbol("_vei");function $d(e,t,n,u,o=null){const s=e[Si]||(e[Si]={}),r=s[t];if(u&&r)r.value=u;else{const[i,l]=Ed(t);if(u){const a=s[t]=Dd(u,o);tu(e,i,a,l)}else r&&(Cd(e,i,r,l),s[t]=void 0)}}const Ti=/(?:Once|Passive|Capture)$/;function Ed(e){let t;if(Ti.test(e)){t={};let u;for(;u=e.match(Ti);)e=e.slice(0,e.length-u[0].length),t[u[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Rn(e.slice(2)),t]}let xs=0;const Sd=Promise.resolve(),Td=()=>xs||(Sd.then(()=>xs=0),xs=Date.now());function Dd(e,t){const n=u=>{if(!u._vts)u._vts=Date.now();else if(u._vts<=n.attached)return;qt(Ad(u,n.value),t,5,[u])};return n.value=e,n.attached=Td(),n}function Ad(e,t){if(De(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(u=>o=>!o._stopped&&u&&u(o))}else return t}const Di=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Fd=(e,t,n,u,o,s)=>{const r=o==="svg";t==="class"?bd(e,u,r):t==="style"?kd(e,n,u):No(t)?pr(t)||$d(e,t,n,u,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Md(e,t,u,r))?(Ei(e,t,u),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&$i(e,t,u,r,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Xe(u))?Ei(e,Mt(t),u,s,t):(t==="true-value"?e._trueValue=u:t==="false-value"&&(e._falseValue=u),$i(e,t,u,r))};function Md(e,t,n,u){if(u)return!!(t==="innerHTML"||t==="textContent"||t in e&&Di(t)&&Ie(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 Di(t)&&Xe(n)?!1:t in e}const Ai=e=>{const t=e.props["onUpdate:modelValue"]||!1;return De(t)?n=>vo(t,n):t};function Id(e){e.target.composing=!0}function Fi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ks=Symbol("_assign");function Mi(e,t,n){return t&&(e=e.trim()),n&&(e=mr(e)),e}const Pd={created(e,{modifiers:{lazy:t,trim:n,number:u}},o){e[ks]=Ai(o);const s=u||o.props&&o.props.type==="number";tu(e,t?"change":"input",r=>{r.target.composing||e[ks](Mi(e.value,n,s))}),(n||s)&&tu(e,"change",()=>{e.value=Mi(e.value,n,s)}),t||(tu(e,"compositionstart",Id),tu(e,"compositionend",Fi),tu(e,"change",Fi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:u,trim:o,number:s}},r){if(e[ks]=Ai(r),e.composing)return;const i=(s||e.type==="number")&&!/^0\d/.test(e.value)?mr(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(u&&t===n||o&&e.value.trim()===l)||(e.value=l))}},Ld=["ctrl","shift","alt","meta"],Rd={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)=>Ld.some(n=>e[`${n}Key`]&&!t.includes(n))},Ft=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),u=t.join(".");return n[u]||(n[u]=((o,...s)=>{for(let r=0;r<t.length;r++){const i=Rd[t[r]];if(i&&i(o,t))return}return e(o,...s)}))},Od={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Xa=(e,t)=>{const n=e._withKeys||(e._withKeys={}),u=t.join(".");return n[u]||(n[u]=(o=>{if(!("key"in o))return;const s=Rn(o.key);if(t.some(r=>r===s||Od[r]===s))return e(o)}))},zd=ot({patchProp:Fd},fd);let Ii;function Bd(){return Ii||(Ii=Kf(zd))}const Qa=((...e)=>{const t=Bd().createApp(...e),{mount:n}=t;return t.mount=u=>{const o=Hd(u);if(!o)return;const s=t._component;!Ie(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,Nd(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t});function Nd(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Hd(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 ec;const ts=e=>ec=e,tc=Symbol();function Js(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Du;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Du||(Du={}));function jd(){const e=Wl(!0),t=e.run(()=>me({}));let n=[],u=[];const o=wr({install(s){ts(o),o._a=s,s.provide(tc,o),s.config.globalProperties.$pinia=o,u.forEach(r=>n.push(r)),u=[]},use(s){return this._a?n.push(s):u.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const nc=()=>{};function Pi(e,t,n,u=nc){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),u())};return!n&&Kl()&&y0(o),o}function Xn(e,...t){e.slice().forEach(n=>{n(...t)})}const qd=e=>e(),Li=Symbol(),ws=Symbol();function Ys(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,u)=>e.set(u,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const u=t[n],o=e[n];Js(o)&&Js(u)&&e.hasOwnProperty(n)&&!Qe(u)&&!pn(u)?e[n]=Ys(o,u):e[n]=u}return e}const Vd=Symbol();function Ud(e){return!Js(e)||!e.hasOwnProperty(Vd)}const{assign:kn}=Object;function Wd(e){return!!(Qe(e)&&e.effect)}function Kd(e,t,n,u){const{state:o,actions:s,getters:r}=t,i=n.state.value[e];let l;function a(){i||(n.state.value[e]=o?o():{});const c=V0(n.state.value[e]);return kn(c,s,Object.keys(r||{}).reduce((d,m)=>(d[m]=wr(L(()=>{ts(n);const g=n._s.get(e);return r[m].call(g,g)})),d),{}))}return l=uc(e,a,t,n,u,!0),l}function uc(e,t,n={},u,o,s){let r;const i=kn({actions:{}},n),l={deep:!0};let a,c,d=[],m=[],g;const b=u.state.value[e];!s&&!b&&(u.state.value[e]={});let w;function _(ue){let J;a=c=!1,typeof ue=="function"?(ue(u.state.value[e]),J={type:Du.patchFunction,storeId:e,events:g}):(Ys(u.state.value[e],ue),J={type:Du.patchObject,payload:ue,storeId:e,events:g});const ee=w=Symbol();Je().then(()=>{w===ee&&(a=!0)}),c=!0,Xn(d,J,u.state.value[e])}const C=s?function(){const{state:J}=n,ee=J?J():{};this.$patch(ve=>{kn(ve,ee)})}:nc;function M(){r.stop(),d=[],m=[],u._s.delete(e)}const I=(ue,J="")=>{if(Li in ue)return ue[ws]=J,ue;const ee=function(){ts(u);const ve=Array.from(arguments),q=[],ce=[];function te(ie){q.push(ie)}function E(ie){ce.push(ie)}Xn(m,{args:ve,name:ee[ws],store:R,after:te,onError:E});let X;try{X=ue.apply(this&&this.$id===e?this:R,ve)}catch(ie){throw Xn(ce,ie),ie}return X instanceof Promise?X.then(ie=>(Xn(q,ie),ie)).catch(ie=>(Xn(ce,ie),Promise.reject(ie))):(Xn(q,X),X)};return ee[Li]=!0,ee[ws]=J,ee},$={_p:u,$id:e,$onAction:Pi.bind(null,m),$patch:_,$reset:C,$subscribe(ue,J={}){const ee=Pi(d,ue,J.detached,()=>ve()),ve=r.run(()=>Ze(()=>u.state.value[e],q=>{(J.flush==="sync"?c:a)&&ue({storeId:e,type:Du.direct,events:g},q)},kn({},l,J)));return ee},$dispose:M},R=to($);u._s.set(e,R);const oe=(u._a&&u._a.runWithContext||qd)(()=>u._e.run(()=>(r=Wl()).run(()=>t({action:I}))));for(const ue in oe){const J=oe[ue];if(Qe(J)&&!Wd(J)||pn(J))s||(b&&Ud(J)&&(Qe(J)?J.value=b[ue]:Ys(J,b[ue])),u.state.value[e][ue]=J);else if(typeof J=="function"){const ee=I(J,ue);oe[ue]=ee,i.actions[ue]=J}}return kn(R,oe),kn(Be(R),oe),Object.defineProperty(R,"$state",{get:()=>u.state.value[e],set:ue=>{_(J=>{kn(J,ue)})}}),u._p.forEach(ue=>{kn(R,r.run(()=>ue({store:R,app:u._a,pinia:u,options:i})))}),b&&s&&n.hydrate&&n.hydrate(R.$state,b),a=!0,c=!0,R}/*! #__NO_SIDE_EFFECTS__ */function Gd(e,t,n){let u,o;const s=typeof t=="function";u=e,o=s?n:t;function r(i,l){const a=uf();return i=i||(a?Lt(tc,null):null),i&&ts(i),i=ec,i._s.has(u)||(s?uc(u,t,o,i):Kd(u,o,i)),i._s.get(u)}return r.$id=u,r}const Zd=["top","right","bottom","left"],Ri=["start","end"],Oi=Zd.reduce((e,t)=>e.concat(t,t+"-"+Ri[0],t+"-"+Ri[1]),[]),Vu=Math.min,Wn=Math.max,Jd={left:"right",right:"left",bottom:"top",top:"bottom"},Yd={start:"end",end:"start"};function Xs(e,t,n){return Wn(e,Vu(t,n))}function Jn(e,t){return typeof e=="function"?e(t):e}function en(e){return e.split("-")[0]}function Bt(e){return e.split("-")[1]}function oc(e){return e==="x"?"y":"x"}function Ir(e){return e==="y"?"height":"width"}const Xd=new Set(["top","bottom"]);function dn(e){return Xd.has(en(e))?"y":"x"}function Pr(e){return oc(dn(e))}function sc(e,t,n){n===void 0&&(n=!1);const u=Bt(e),o=Pr(e),s=Ir(o);let r=o==="x"?u===(n?"end":"start")?"right":"left":u==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(r=Mo(r)),[r,Mo(r)]}function Qd(e){const t=Mo(e);return[Fo(e),t,Fo(t)]}function Fo(e){return e.replace(/start|end/g,t=>Yd[t])}const zi=["left","right"],Bi=["right","left"],ep=["top","bottom"],tp=["bottom","top"];function np(e,t,n){switch(e){case"top":case"bottom":return n?t?Bi:zi:t?zi:Bi;case"left":case"right":return t?ep:tp;default:return[]}}function up(e,t,n,u){const o=Bt(e);let s=np(en(e),n==="start",u);return o&&(s=s.map(r=>r+"-"+o),t&&(s=s.concat(s.map(Fo)))),s}function Mo(e){return e.replace(/left|right|bottom|top/g,t=>Jd[t])}function op(e){return{top:0,right:0,bottom:0,left:0,...e}}function rc(e){return typeof e!="number"?op(e):{top:e,right:e,bottom:e,left:e}}function Au(e){const{x:t,y:n,width:u,height:o}=e;return{width:u,height:o,top:n,left:t,right:t+u,bottom:n+o,x:t,y:n}}function Ni(e,t,n){let{reference:u,floating:o}=e;const s=dn(t),r=Pr(t),i=Ir(r),l=en(t),a=s==="y",c=u.x+u.width/2-o.width/2,d=u.y+u.height/2-o.height/2,m=u[i]/2-o[i]/2;let g;switch(l){case"top":g={x:c,y:u.y-o.height};break;case"bottom":g={x:c,y:u.y+u.height};break;case"right":g={x:u.x+u.width,y:d};break;case"left":g={x:u.x-o.width,y:d};break;default:g={x:u.x,y:u.y}}switch(Bt(t)){case"start":g[r]-=m*(n&&a?-1:1);break;case"end":g[r]+=m*(n&&a?-1:1);break}return g}async function sp(e,t){var n;t===void 0&&(t={});const{x:u,y:o,platform:s,rects:r,elements:i,strategy:l}=e,{boundary:a="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:m=!1,padding:g=0}=Jn(t,e),b=rc(g),_=i[m?d==="floating"?"reference":"floating":d],C=Au(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(i.floating)),boundary:a,rootBoundary:c,strategy:l})),M=d==="floating"?{x:u,y:o,width:r.floating.width,height:r.floating.height}:r.reference,I=await(s.getOffsetParent==null?void 0:s.getOffsetParent(i.floating)),$=await(s.isElement==null?void 0:s.isElement(I))?await(s.getScale==null?void 0:s.getScale(I))||{x:1,y:1}:{x:1,y:1},R=Au(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:M,offsetParent:I,strategy:l}):M);return{top:(C.top-R.top+b.top)/$.y,bottom:(R.bottom-C.bottom+b.bottom)/$.y,left:(C.left-R.left+b.left)/$.x,right:(R.right-C.right+b.right)/$.x}}const rp=async(e,t,n)=>{const{placement:u="bottom",strategy:o="absolute",middleware:s=[],platform:r}=n,i=s.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:d}=Ni(a,u,l),m=u,g={},b=0;for(let _=0;_<i.length;_++){var w;const{name:C,fn:M}=i[_],{x:I,y:$,data:R,reset:T}=await M({x:c,y:d,initialPlacement:u,placement:m,strategy:o,middlewareData:g,rects:a,platform:{...r,detectOverflow:(w=r.detectOverflow)!=null?w:sp},elements:{reference:e,floating:t}});c=I??c,d=$??d,g={...g,[C]:{...g[C],...R}},T&&b<=50&&(b++,typeof T=="object"&&(T.placement&&(m=T.placement),T.rects&&(a=T.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:o}):T.rects),{x:c,y:d}=Ni(a,m,l)),_=-1)}return{x:c,y:d,placement:m,strategy:o,middlewareData:g}},ip=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:u,placement:o,rects:s,platform:r,elements:i,middlewareData:l}=t,{element:a,padding:c=0}=Jn(e,t)||{};if(a==null)return{};const d=rc(c),m={x:n,y:u},g=Pr(o),b=Ir(g),w=await r.getDimensions(a),_=g==="y",C=_?"top":"left",M=_?"bottom":"right",I=_?"clientHeight":"clientWidth",$=s.reference[b]+s.reference[g]-m[g]-s.floating[b],R=m[g]-s.reference[g],T=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a));let oe=T?T[I]:0;(!oe||!await(r.isElement==null?void 0:r.isElement(T)))&&(oe=i.floating[I]||s.floating[b]);const ue=$/2-R/2,J=oe/2-w[b]/2-1,ee=Vu(d[C],J),ve=Vu(d[M],J),q=ee,ce=oe-w[b]-ve,te=oe/2-w[b]/2+ue,E=Xs(q,te,ce),X=!l.arrow&&Bt(o)!=null&&te!==E&&s.reference[b]/2-(te<q?ee:ve)-w[b]/2<0,ie=X?te<q?te-q:te-ce:0;return{[g]:m[g]+ie,data:{[g]:E,centerOffset:te-E-ie,...X&&{alignmentOffset:ie}},reset:X}}});function lp(e,t,n){return(e?[...n.filter(o=>Bt(o)===e),...n.filter(o=>Bt(o)!==e)]:n.filter(o=>en(o)===o)).filter(o=>e?Bt(o)===e||(t?Fo(o)!==o:!1):!0)}const ap=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,u,o;const{rects:s,middlewareData:r,placement:i,platform:l,elements:a}=t,{crossAxis:c=!1,alignment:d,allowedPlacements:m=Oi,autoAlignment:g=!0,...b}=Jn(e,t),w=d!==void 0||m===Oi?lp(d||null,g,m):m,_=await l.detectOverflow(t,b),C=((n=r.autoPlacement)==null?void 0:n.index)||0,M=w[C];if(M==null)return{};const I=sc(M,s,await(l.isRTL==null?void 0:l.isRTL(a.floating)));if(i!==M)return{reset:{placement:w[0]}};const $=[_[en(M)],_[I[0]],_[I[1]]],R=[...((u=r.autoPlacement)==null?void 0:u.overflows)||[],{placement:M,overflows:$}],T=w[C+1];if(T)return{data:{index:C+1,overflows:R},reset:{placement:T}};const oe=R.map(ee=>{const ve=Bt(ee.placement);return[ee.placement,ve&&c?ee.overflows.slice(0,2).reduce((q,ce)=>q+ce,0):ee.overflows[0],ee.overflows]}).sort((ee,ve)=>ee[1]-ve[1]),J=((o=oe.filter(ee=>ee[2].slice(0,Bt(ee[0])?2:3).every(ve=>ve<=0))[0])==null?void 0:o[0])||oe[0][0];return J!==i?{data:{index:C+1,overflows:R},reset:{placement:J}}:{}}}},cp=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,u;const{placement:o,middlewareData:s,rects:r,initialPlacement:i,platform:l,elements:a}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:w=!0,..._}=Jn(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const C=en(o),M=dn(i),I=en(i)===i,$=await(l.isRTL==null?void 0:l.isRTL(a.floating)),R=m||(I||!w?[Mo(i)]:Qd(i)),T=b!=="none";!m&&T&&R.push(...up(i,w,b,$));const oe=[i,...R],ue=await l.detectOverflow(t,_),J=[];let ee=((u=s.flip)==null?void 0:u.overflows)||[];if(c&&J.push(ue[C]),d){const te=sc(o,r,$);J.push(ue[te[0]],ue[te[1]])}if(ee=[...ee,{placement:o,overflows:J}],!J.every(te=>te<=0)){var ve,q;const te=(((ve=s.flip)==null?void 0:ve.index)||0)+1,E=oe[te];if(E&&(!(d==="alignment"?M!==dn(E):!1)||ee.every(W=>dn(W.placement)===M?W.overflows[0]>0:!0)))return{data:{index:te,overflows:ee},reset:{placement:E}};let X=(q=ee.filter(ie=>ie.overflows[0]<=0).sort((ie,W)=>ie.overflows[1]-W.overflows[1])[0])==null?void 0:q.placement;if(!X)switch(g){case"bestFit":{var ce;const ie=(ce=ee.filter(W=>{if(T){const fe=dn(W.placement);return fe===M||fe==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(fe=>fe>0).reduce((fe,ye)=>fe+ye,0)]).sort((W,fe)=>W[1]-fe[1])[0])==null?void 0:ce[0];ie&&(X=ie);break}case"initialPlacement":X=i;break}if(o!==X)return{reset:{placement:X}}}return{}}}},fp=new Set(["left","top"]);async function dp(e,t){const{placement:n,platform:u,elements:o}=e,s=await(u.isRTL==null?void 0:u.isRTL(o.floating)),r=en(n),i=Bt(n),l=dn(n)==="y",a=fp.has(r)?-1:1,c=s&&l?-1:1,d=Jn(t,e);let{mainAxis:m,crossAxis:g,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof b=="number"&&(g=i==="end"?b*-1:b),l?{x:g*c,y:m*a}:{x:m*a,y:g*c}}const pp=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,u;const{x:o,y:s,placement:r,middlewareData:i}=t,l=await dp(t,e);return r===((n=i.offset)==null?void 0:n.placement)&&(u=i.arrow)!=null&&u.alignmentOffset?{}:{x:o+l.x,y:s+l.y,data:{...l,placement:r}}}}},hp=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:u,placement:o,platform:s}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:l={fn:C=>{let{x:M,y:I}=C;return{x:M,y:I}}},...a}=Jn(e,t),c={x:n,y:u},d=await s.detectOverflow(t,a),m=dn(en(o)),g=oc(m);let b=c[g],w=c[m];if(r){const C=g==="y"?"top":"left",M=g==="y"?"bottom":"right",I=b+d[C],$=b-d[M];b=Xs(I,b,$)}if(i){const C=m==="y"?"top":"left",M=m==="y"?"bottom":"right",I=w+d[C],$=w-d[M];w=Xs(I,w,$)}const _=l.fn({...t,[g]:b,[m]:w});return{..._,data:{x:_.x-n,y:_.y-u,enabled:{[g]:r,[m]:i}}}}}},mp=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,u;const{placement:o,rects:s,platform:r,elements:i}=t,{apply:l=()=>{},...a}=Jn(e,t),c=await r.detectOverflow(t,a),d=en(o),m=Bt(o),g=dn(o)==="y",{width:b,height:w}=s.floating;let _,C;d==="top"||d==="bottom"?(_=d,C=m===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(C=d,_=m==="end"?"top":"bottom");const M=w-c.top-c.bottom,I=b-c.left-c.right,$=Vu(w-c[_],M),R=Vu(b-c[C],I),T=!t.middlewareData.shift;let oe=$,ue=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(ue=I),(u=t.middlewareData.shift)!=null&&u.enabled.y&&(oe=M),T&&!m){const ee=Wn(c.left,0),ve=Wn(c.right,0),q=Wn(c.top,0),ce=Wn(c.bottom,0);g?ue=b-2*(ee!==0||ve!==0?ee+ve:Wn(c.left,c.right)):oe=w-2*(q!==0||ce!==0?q+ce:Wn(c.top,c.bottom))}await l({...t,availableWidth:ue,availableHeight:oe});const J=await r.getDimensions(i.floating);return b!==J.width||w!==J.height?{reset:{rects:!0}}:{}}}};function At(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Xt(e){return At(e).getComputedStyle(e)}const Hi=Math.min,Fu=Math.max,Io=Math.round;function ic(e){const t=Xt(e);let n=parseFloat(t.width),u=parseFloat(t.height);const o=e.offsetWidth,s=e.offsetHeight,r=Io(n)!==o||Io(u)!==s;return r&&(n=o,u=s),{width:n,height:u,fallback:r}}function Pn(e){return ac(e)?(e.nodeName||"").toLowerCase():""}let po;function lc(){if(po)return po;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(po=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),po):navigator.userAgent}function Qt(e){return e instanceof At(e).HTMLElement}function Fn(e){return e instanceof At(e).Element}function ac(e){return e instanceof At(e).Node}function ji(e){return typeof ShadowRoot>"u"?!1:e instanceof At(e).ShadowRoot||e instanceof ShadowRoot}function ns(e){const{overflow:t,overflowX:n,overflowY:u,display:o}=Xt(e);return/auto|scroll|overlay|hidden|clip/.test(t+u+n)&&!["inline","contents"].includes(o)}function gp(e){return["table","td","th"].includes(Pn(e))}function Qs(e){const t=/firefox/i.test(lc()),n=Xt(e),u=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!u&&u!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((o=>n.willChange.includes(o)))||["paint","layout","strict","content"].some((o=>{const s=n.contain;return s!=null&&s.includes(o)}))}function cc(){return!/^((?!chrome|android).)*safari/i.test(lc())}function Lr(e){return["html","body","#document"].includes(Pn(e))}function fc(e){return Fn(e)?e:e.contextElement}const dc={x:1,y:1};function ru(e){const t=fc(e);if(!Qt(t))return dc;const n=t.getBoundingClientRect(),{width:u,height:o,fallback:s}=ic(t);let r=(s?Io(n.width):n.width)/u,i=(s?Io(n.height):n.height)/o;return r&&Number.isFinite(r)||(r=1),i&&Number.isFinite(i)||(i=1),{x:r,y:i}}function Uu(e,t,n,u){var o,s;t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=fc(e);let l=dc;t&&(u?Fn(u)&&(l=ru(u)):l=ru(e));const a=i?At(i):window,c=!cc()&&n;let d=(r.left+(c&&((o=a.visualViewport)==null?void 0:o.offsetLeft)||0))/l.x,m=(r.top+(c&&((s=a.visualViewport)==null?void 0:s.offsetTop)||0))/l.y,g=r.width/l.x,b=r.height/l.y;if(i){const w=At(i),_=u&&Fn(u)?At(u):u;let C=w.frameElement;for(;C&&u&&_!==w;){const M=ru(C),I=C.getBoundingClientRect(),$=getComputedStyle(C);I.x+=(C.clientLeft+parseFloat($.paddingLeft))*M.x,I.y+=(C.clientTop+parseFloat($.paddingTop))*M.y,d*=M.x,m*=M.y,g*=M.x,b*=M.y,d+=I.x,m+=I.y,C=At(C).frameElement}}return{width:g,height:b,top:m,right:d+g,bottom:m+b,left:d,x:d,y:m}}function Mn(e){return((ac(e)?e.ownerDocument:e.document)||window.document).documentElement}function us(e){return Fn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function pc(e){return Uu(Mn(e)).left+us(e).scrollLeft}function Wu(e){if(Pn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ji(e)&&e.host||Mn(e);return ji(t)?t.host:t}function hc(e){const t=Wu(e);return Lr(t)?t.ownerDocument.body:Qt(t)&&ns(t)?t:hc(t)}function Po(e,t){var n;t===void 0&&(t=[]);const u=hc(e),o=u===((n=e.ownerDocument)==null?void 0:n.body),s=At(u);return o?t.concat(s,s.visualViewport||[],ns(u)?u:[]):t.concat(u,Po(u))}function qi(e,t,n){return t==="viewport"?Au((function(u,o){const s=At(u),r=Mn(u),i=s.visualViewport;let l=r.clientWidth,a=r.clientHeight,c=0,d=0;if(i){l=i.width,a=i.height;const m=cc();(m||!m&&o==="fixed")&&(c=i.offsetLeft,d=i.offsetTop)}return{width:l,height:a,x:c,y:d}})(e,n)):Fn(t)?Au((function(u,o){const s=Uu(u,!0,o==="fixed"),r=s.top+u.clientTop,i=s.left+u.clientLeft,l=Qt(u)?ru(u):{x:1,y:1};return{width:u.clientWidth*l.x,height:u.clientHeight*l.y,x:i*l.x,y:r*l.y}})(t,n)):Au((function(u){const o=Mn(u),s=us(u),r=u.ownerDocument.body,i=Fu(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),l=Fu(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-s.scrollLeft+pc(u);const c=-s.scrollTop;return Xt(r).direction==="rtl"&&(a+=Fu(o.clientWidth,r.clientWidth)-i),{width:i,height:l,x:a,y:c}})(Mn(e)))}function Vi(e){return Qt(e)&&Xt(e).position!=="fixed"?e.offsetParent:null}function Ui(e){const t=At(e);let n=Vi(e);for(;n&&gp(n)&&Xt(n).position==="static";)n=Vi(n);return n&&(Pn(n)==="html"||Pn(n)==="body"&&Xt(n).position==="static"&&!Qs(n))?t:n||(function(u){let o=Wu(u);for(;Qt(o)&&!Lr(o);){if(Qs(o))return o;o=Wu(o)}return null})(e)||t}function vp(e,t,n){const u=Qt(t),o=Mn(t),s=Uu(e,!0,n==="fixed",t);let r={scrollLeft:0,scrollTop:0};const i={x:0,y:0};if(u||!u&&n!=="fixed")if((Pn(t)!=="body"||ns(o))&&(r=us(t)),Qt(t)){const l=Uu(t,!0);i.x=l.x+t.clientLeft,i.y=l.y+t.clientTop}else o&&(i.x=pc(o));return{x:s.left+r.scrollLeft-i.x,y:s.top+r.scrollTop-i.y,width:s.width,height:s.height}}const bp={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:u,strategy:o}=e;const s=n==="clippingAncestors"?(function(a,c){const d=c.get(a);if(d)return d;let m=Po(a).filter((_=>Fn(_)&&Pn(_)!=="body")),g=null;const b=Xt(a).position==="fixed";let w=b?Wu(a):a;for(;Fn(w)&&!Lr(w);){const _=Xt(w),C=Qs(w);(b?C||g:C||_.position!=="static"||!g||!["absolute","fixed"].includes(g.position))?g=_:m=m.filter((M=>M!==w)),w=Wu(w)}return c.set(a,m),m})(t,this._c):[].concat(n),r=[...s,u],i=r[0],l=r.reduce(((a,c)=>{const d=qi(t,c,o);return a.top=Fu(d.top,a.top),a.right=Hi(d.right,a.right),a.bottom=Hi(d.bottom,a.bottom),a.left=Fu(d.left,a.left),a}),qi(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:u}=e;const o=Qt(n),s=Mn(n);if(n===s)return t;let r={scrollLeft:0,scrollTop:0},i={x:1,y:1};const l={x:0,y:0};if((o||!o&&u!=="fixed")&&((Pn(n)!=="body"||ns(s))&&(r=us(n)),Qt(n))){const a=Uu(n);i=ru(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:Fn,getDimensions:function(e){return Qt(e)?ic(e):e.getBoundingClientRect()},getOffsetParent:Ui,getDocumentElement:Mn,getScale:ru,async getElementRects(e){let{reference:t,floating:n,strategy:u}=e;const o=this.getOffsetParent||Ui,s=this.getDimensions;return{reference:vp(t,await o(n),u),floating:{x:0,y:0,...await s(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Xt(e).direction==="rtl"},_p=(e,t,n)=>{const u=new Map,o={platform:bp,...n},s={...o.platform,_c:u};return rp(e,t,{...o,platform:s})};function mc(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?mc(e[n],t[n]):e[n]=t[n])}const Nt={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 Ku(e,t){let n=Nt.themes[e]||{},u;do u=n[t],typeof u>"u"?n.$extend?n=Nt.themes[n.$extend]||{}:(n=null,u=Nt[t]):n=null;while(n);return u}function yp(e){const t=[e];let n=Nt.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=Nt.themes[n.$extend]||{}):n=null;while(n);return t.map(u=>`v-popper--theme-${u}`)}function Wi(e){const t=[e];let n=Nt.themes[e]||{};do n.$extend?(t.push(n.$extend),n=Nt.themes[n.$extend]||{}):n=null;while(n);return t}let au=!1;if(typeof window<"u"){au=!1;try{const e=Object.defineProperty({},"passive",{get(){au=!0}});window.addEventListener("test",null,e)}catch{}}let gc=!1;typeof window<"u"&&typeof navigator<"u"&&(gc=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const vc=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Ki={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Gi={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Zi(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Cs(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Rt=[];let Vn=null;const Ji={};function Yi(e){let t=Ji[e];return t||(t=Ji[e]=[]),t}let er=function(){};typeof window<"u"&&(er=window.Element);function Oe(e){return function(t){return Ku(t.theme,e)}}const $s="__floating-vue__popper",bc=()=>tt({name:"VPopper",provide(){return{[$s]:{parentPopper:this}}},inject:{[$s]:{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:Oe("disabled")},positioningDisabled:{type:Boolean,default:Oe("positioningDisabled")},placement:{type:String,default:Oe("placement"),validator:e=>vc.includes(e)},delay:{type:[String,Number,Object],default:Oe("delay")},distance:{type:[Number,String],default:Oe("distance")},skidding:{type:[Number,String],default:Oe("skidding")},triggers:{type:Array,default:Oe("triggers")},showTriggers:{type:[Array,Function],default:Oe("showTriggers")},hideTriggers:{type:[Array,Function],default:Oe("hideTriggers")},popperTriggers:{type:Array,default:Oe("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Oe("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Oe("popperHideTriggers")},container:{type:[String,Object,er,Boolean],default:Oe("container")},boundary:{type:[String,er],default:Oe("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Oe("strategy")},autoHide:{type:[Boolean,Function],default:Oe("autoHide")},handleResize:{type:Boolean,default:Oe("handleResize")},instantMove:{type:Boolean,default:Oe("instantMove")},eagerMount:{type:Boolean,default:Oe("eagerMount")},popperClass:{type:[String,Array,Object],default:Oe("popperClass")},computeTransformOrigin:{type:Boolean,default:Oe("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Oe("autoMinSize")},autoSize:{type:[Boolean,String],default:Oe("autoSize")},autoMaxSize:{type:Boolean,default:Oe("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Oe("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Oe("preventOverflow")},overflowPadding:{type:[Number,String],default:Oe("overflowPadding")},arrowPadding:{type:[Number,String],default:Oe("arrowPadding")},arrowOverflow:{type:Boolean,default:Oe("arrowOverflow")},flip:{type:Boolean,default:Oe("flip")},shift:{type:Boolean,default:Oe("shift")},shiftCrossAxis:{type:Boolean,default:Oe("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Oe("noAutoFocus")},disposeTimeout:{type:Number,default:Oe("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[$s])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var u,o;(u=this.parentPopper)!=null&&u.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(pp({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(ap({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(hp({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(cp({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(ip({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:u,rects:o,middlewareData:s})=>{let r;const{centerOffset:i}=s.arrow;return u.startsWith("top")||u.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 u=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:o,placement:s,middlewareData:r})=>{var i;if((i=r.autoSize)!=null&&i.skip)return{};let l,a;return s.startsWith("top")||s.startsWith("bottom")?l=o.reference.width:a=o.reference.height,this.$_innerNode.style[u==="min"?"minWidth":u==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[u==="min"?"minHeight":u==="max"?"maxHeight":"height"]=a!=null?`${a}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(mp({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:u,availableHeight:o})=>{this.$_innerNode.style.maxWidth=u!=null?`${u}px`:null,this.$_innerNode.style.maxHeight=o!=null?`${o}px`:null}})));const n=await _p(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),Vn&&this.instantMove&&Vn.instantMove&&Vn!==this.parentPopper){Vn.$_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&&(Vn=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 Cs(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Po(this.$_referenceNode),...Po(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),u=n.parentNode.getBoundingClientRect(),o=t.x+t.width/2-(u.left+n.offsetLeft),s=t.y+t.height/2-(u.top+n.offsetTop);this.result.transformOrigin=`${o}px ${s}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<Rt.length;n++)t=Rt[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Rt.push(this),document.body.classList.add("v-popper--some-open");for(const t of Wi(this.theme))Yi(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 Cs(),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,Zi(Rt,this),Rt.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of Wi(this.theme)){const u=Yi(n);Zi(u,this),u.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Vn===this&&(Vn=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 Cs(),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,Ki,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Ki,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,Gi,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Gi,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(u=>u.addEventListener(t,n,au?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,u,o){let s=n;u!=null&&(s=typeof u=="function"?u(s):u),s.forEach(r=>{const i=t[r];i&&this.$_registerEventListeners(e,i,o)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:u,eventType:o,handler:s}=n;!e||e===o?u.forEach(r=>r.removeEventListener(o,s)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const u=n.getAttribute(e);u&&(n.removeAttribute(e),n.setAttribute(t,u))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const u=e[n];u==null?t.removeAttribute(n):t.setAttribute(n,u)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Mu>=e.left&&Mu<=e.right&&Iu>=e.top&&Iu<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Mu-wn,u=Iu-Cn,o=t.left+t.width/2-wn+(t.top+t.height/2)-Cn+t.width+t.height,s=wn+n*o,r=Cn+u*o;return ho(wn,Cn,s,r,t.left,t.top,t.left,t.bottom)||ho(wn,Cn,s,r,t.left,t.top,t.right,t.top)||ho(wn,Cn,s,r,t.right,t.top,t.right,t.bottom)||ho(wn,Cn,s,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(gc){const e=au?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>Xi(t,!0),e),document.addEventListener("touchend",t=>Qi(t,!0),e)}else window.addEventListener("mousedown",e=>Xi(e,!1),!0),window.addEventListener("click",e=>Qi(e,!1),!0);window.addEventListener("resize",kp)}function Xi(e,t){if(Nt.autoHideOnMousedown)_c(e,t);else for(let n=0;n<Rt.length;n++){const u=Rt[n];try{u.mouseDownContains=u.popperNode().contains(e.target)}catch{}}}function Qi(e,t){Nt.autoHideOnMousedown||_c(e,t)}function _c(e,t){const n={};for(let u=Rt.length-1;u>=0;u--){const o=Rt[u];try{const s=o.containsGlobalTarget=o.mouseDownContains||o.popperNode().contains(e.target);o.pendingHide=!1,requestAnimationFrame(()=>{if(o.pendingHide=!1,!n[o.randomId]&&el(o,s,e)){if(o.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&s){let i=o.parentPopper;for(;i;)n[i.randomId]=!0,i=i.parentPopper;return}let r=o.parentPopper;for(;r&&el(r,r.containsGlobalTarget,e);)r.$_handleGlobalClose(e,t),r=r.parentPopper}})}catch{}}}function el(e,t,n){return n.closeAllPopover||n.closePopover&&t||xp(e,n)&&!t}function xp(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function kp(){for(let e=0;e<Rt.length;e++)Rt[e].$_computePosition()}let wn=0,Cn=0,Mu=0,Iu=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{wn=Mu,Cn=Iu,Mu=e.clientX,Iu=e.clientY},au?{passive:!0}:void 0);function ho(e,t,n,u,o,s,r,i){const l=((r-o)*(t-s)-(i-s)*(e-o))/((i-s)*(n-e)-(r-o)*(u-t)),a=((n-e)*(t-s)-(u-t)*(e-o))/((i-s)*(n-e)-(r-o)*(u-t));return l>=0&&l<=1&&a>=0&&a<=1}const wp={extends:bc()},os=(e,t)=>{const n=e.__vccOpts||e;for(const[u,o]of t)n[u]=o;return n};function Cp(e,t,n,u,o,s){return x(),k("div",{ref:"reference",class:de(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Bu(e.$slots,"default",g0(Va(e.slotData)))],2)}const $p=os(wp,[["render",Cp]]);function Ep(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var u=e.indexOf("rv:");return parseInt(e.substring(u+3,e.indexOf(".",u)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let xo;function tr(){tr.init||(tr.init=!0,xo=Ep()!==-1)}var ss={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){tr(),Je(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",xo&&this.$el.appendChild(e),e.data="about:blank",xo||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&&(!xo&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Sp=nf();ef("data-v-b329ee4c");const Tp={class:"resize-observer",tabindex:"-1"};tf();const Dp=Sp((e,t,n,u,o,s)=>(x(),yt("div",Tp)));ss.render=Dp;ss.__scopeId="data-v-b329ee4c";ss.__file="src/components/ResizeObserver.vue";const yc=(e="theme")=>({computed:{themeClass(){return yp(this[e])}}}),Ap=tt({name:"VPopperContent",components:{ResizeObserver:ss},mixins:[yc()],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}}}),Fp=["id","aria-hidden","tabindex","data-popper-placement"],Mp={ref:"inner",class:"v-popper__inner"},Ip=p("div",{class:"v-popper__arrow-outer"},null,-1),Pp=p("div",{class:"v-popper__arrow-inner"},null,-1),Lp=[Ip,Pp];function Rp(e,t,n,u,o,s){const r=zu("ResizeObserver");return x(),k("div",{id:e.popperId,ref:"popover",class:de(["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:Ae(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]=Xa(i=>e.autoHide&&e.$emit("hide"),["esc"]))},[p("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=i=>e.autoHide&&e.$emit("hide"))}),p("div",{class:"v-popper__wrapper",style:Ae(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[p("div",Mp,[e.mounted?(x(),k(he,{key:0},[p("div",null,[Bu(e.$slots,"default")]),e.handleResize?(x(),yt(r,{key:0,onNotify:t[1]||(t[1]=i=>e.$emit("resize",i))})):ae("",!0)],64)):ae("",!0)],512),p("div",{ref:"arrow",class:"v-popper__arrow-container",style:Ae(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Lp,4)],4)],46,Fp)}const xc=os(Ap,[["render",Rp]]),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 nr=function(){};typeof window<"u"&&(nr=window.Element);const Op=tt({name:"VPopperWrapper",components:{Popper:$p,PopperContent:xc},mixins:[kc,yc("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,nr,Boolean],default:void 0},boundary:{type:[String,nr],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 zp(e,t,n,u,o,s){const r=zu("PopperContent"),i=zu("Popper");return x(),yt(i,Fr({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:lt(({popperId:l,isShown:a,shouldMountContent:c,skipTransition:d,autoHide:m,show:g,hide:b,handleResize:w,onResize:_,classes:C,result:M})=>[Bu(e.$slots,"default",{shown:a,show:g,hide:b}),Pe(r,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:a,mounted:c,"skip-transition":d,"auto-hide":m,"handle-resize":w,classes:C,result:M,onHide:b,onResize:_},{default:lt(()=>[Bu(e.$slots,"popper",{shown:a,hide:b})]),_: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 Rr=os(Op,[["render",zp]]),Bp={...Rr,name:"VDropdown",vPopperTheme:"dropdown"},Np={...Rr,name:"VMenu",vPopperTheme:"menu"},Hp={...Rr,name:"VTooltip",vPopperTheme:"tooltip"},jp=tt({name:"VTooltipDirective",components:{Popper:bc(),PopperContent:xc},mixins:[kc],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Ku(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ku(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(u=>this.onResult(t,u)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),qp=["innerHTML"],Vp=["textContent"];function Up(e,t,n,u,o,s){const r=zu("PopperContent"),i=zu("Popper");return x(),yt(i,Fr({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:lt(({popperId:l,isShown:a,shouldMountContent:c,skipTransition:d,autoHide:m,hide:g,handleResize:b,onResize:w,classes:_,result:C})=>[Pe(r,{ref:"popperContent",class:de({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:a,mounted:c,"skip-transition":d,"auto-hide":m,"handle-resize":b,classes:_,result:C,onHide:g,onResize:w},{default:lt(()=>[e.html?(x(),k("div",{key:0,innerHTML:e.finalContent},null,8,qp)):(x(),k("div",{key:1,textContent:F(e.finalContent)},null,8,Vp))]),_: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 Wp=os(jp,[["render",Up]]),wc="v-popper--has-tooltip";function Kp(e,t){let n=e.placement;if(!n&&t)for(const u of vc)t[u]&&(n=u);return n||(n=Ku(e.theme||"tooltip","placement")),n}function Cc(e,t,n){let u;const o=typeof t;return o==="string"?u={content:t}:t&&o==="object"?u=t:u={content:!1},u.placement=Kp(u,n),u.targetNodes=()=>[e],u.referenceNode=()=>e,u}let Es,Gu,Gp=0;function Zp(){if(Es)return;Gu=me([]),Es=Qa({name:"VTooltipDirectiveApp",setup(){return{directives:Gu}},render(){return this.directives.map(t=>Mr(Wp,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Es.mount(e)}function Jp(e,t,n){Zp();const u=me(Cc(e,t,n)),o=me(!1),s={id:Gp++,options:u,shown:o};return Gu.value.push(s),e.classList&&e.classList.add(wc),e.$_popper={options:u,item:s,show(){o.value=!0},hide(){o.value=!1}}}function $c(e){if(e.$_popper){const t=Gu.value.indexOf(e.$_popper.item);t!==-1&&Gu.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(wc)}function tl(e,{value:t,modifiers:n}){const u=Cc(e,t,n);if(!u.content||Ku(u.theme||"tooltip","disabled"))$c(e);else{let o;e.$_popper?(o=e.$_popper,o.options.value=u):o=Jp(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?o.show():o.hide())}}const Yp={beforeMount:tl,updated:tl,beforeUnmount(e){$c(e)}};function nl(e){e.addEventListener("mousedown",Lo),e.addEventListener("click",Lo),e.addEventListener("touchstart",Ec,au?{passive:!0}:!1)}function ul(e){e.removeEventListener("mousedown",Lo),e.removeEventListener("click",Lo),e.removeEventListener("touchstart",Ec),e.removeEventListener("touchend",Sc),e.removeEventListener("touchcancel",Tc)}function Lo(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Ec(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",Sc),t.addEventListener("touchcancel",Tc)}}function Sc(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],u=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-u.screenY)<20&&Math.abs(n.screenX-u.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Tc(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const Xp={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&nl(e)},updated(e,{value:t,oldValue:n,modifiers:u}){e.$_closePopoverModifiers=u,t!==n&&(typeof t>"u"||t?nl(e):ul(e))},beforeUnmount(e){ul(e)}};function Qp(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,mc(Nt,t),e.directive("tooltip",Yp),e.directive("close-popper",Xp),e.component("VTooltip",Hp),e.component("VDropdown",Bp),e.component("VMenu",Np))}const eh={version:"5.2.2",install:Qp,options:Nt},tn="";async function th(){const e=await fetch(`${tn}/api/requests?summary=true`);if(!e.ok)throw new Error(`GET /api/requests?summary=true failed: ${e.status}`);return e.json()}async function nh(e){const t=await fetch(`${tn}/api/conversations/${encodeURIComponent(e)}`);if(!t.ok)throw new Error(`GET /api/conversations/${e} failed: ${t.status}`);return t.json()}async function uh(e){const t=await fetch(`${tn}/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 oh(e){const t=await fetch(`${tn}/api/conversations/${encodeURIComponent(e)}`,{method:"DELETE"});if(!t.ok)throw new Error(`DELETE conversation failed: ${t.status}`)}async function sh(){const e=await fetch(`${tn}/api/reset`,{method:"POST"});if(!e.ok)throw new Error(`POST /api/reset failed: ${e.status}`)}function rh(e,t,n){const u=new URLSearchParams;t&&u.set("conversation",t);const o=u.toString();return`${tn}/api/export/${e}${o?`?${o}`:""}`}async function ih(){const e=await fetch(`${tn}/api/tags`);if(!e.ok)throw new Error(`GET /api/tags failed: ${e.status}`);return e.json()}async function lh(e,t){const n=await fetch(`${tn}/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 ah(e,t){const n=await fetch(`${tn}/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 ch(e,t){const n=await fetch(`${tn}/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}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 fh(e){var t;return((t=ut[e])==null?void 0:t.label)??e}function dh(e,t="#475569"){var n;return((n=ut[e])==null?void 0:n.color)??t}const cu={system:["system_prompt","system_injections"],tools:["tool_definitions","tool_calls"],results:["tool_results"],conversation:["assistant_text","user_text","thinking"],other:["images","cache_markers","other"]},wt={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 Ot(e){const t=e.role||"user",n=e.content||"",u=e.contentBlocks;if(u&&Array.isArray(u)){const o=u.some(i=>i.type==="tool_use"),s=u.some(i=>i.type==="tool_result"),r=u.some(i=>i.type==="thinking");if(s)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 rs(e){const t={};for(const n of e)if(n.contentBlocks)for(const u of n.contentBlocks)u.type==="tool_use"&&u.id&&u.name&&(t[u.id]=u.name);return t}function Ss(e,t={}){const n=e.contentBlocks;if(n&&Array.isArray(n))for(const u of n){if(u.type==="tool_use")return(u.name||"tool")+"("+(u.input?JSON.stringify(u.input).slice(0,60):"")+")";if(u.type==="tool_result"){const s=u.tool_use_id?t[u.tool_use_id]:null,r=typeof u.content=="string"?u.content:JSON.stringify(u.content||""),i=s?s+": ":"";return i+r.slice(0,80-i.length)}const o=u;if(o.type==="thinking")return(o.thinking||o.text||"").slice(0,80);if(u.type==="text"||u.type==="input_text")return(u.text||"").slice(0,80)}return(e.content||"").slice(0,80)}function ph(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 Ts(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 hh=["tool_results","system_injections","tool_calls","thinking","assistant_text","user_text"];function Dc(e){const t=new Map;for(let u=e.length-1;u>=0;u--){const o=e[u],s=Ot(o);t.has(s)||t.set(s,{items:[],tokens:0});const r=t.get(s);r.items.push({msg:o,origIdx:u}),r.tokens+=o.tokens||0}const n=[...hh];for(const u of t.keys())n.includes(u)||n.push(u);return n.filter(u=>t.has(u)).map(u=>({category:u,...t.get(u)}))}function hn(e){if(e.length===0)return[];const t=new Map;for(const o of e){const s=o.agentKey||"_default";t.set(s,(t.get(s)||0)+1)}let n="_default",u=0;for(const[o,s]of t)s>u&&(n=o,u=s);return e.map(o=>({entry:o,isMain:(o.agentKey||"_default")===n}))}const ol="context-lens-density",Tt=Gd("session",()=>{const e=me(0),t=me([]),n=me(new Map),u=me(0),o=me(!1),s=me(null),r=me(null),i=me(!1),l=me([]),a=me(""),c=me(!1),d=me("dashboard"),m=me("overview"),g=me(null),b=me("live"),w=me(null),_=me(""),C=me(""),M=me("comfortable"),I=me(null),$=me(0),R=me(null),T=me(null),oe=me(!1),ue=me(null),J=me(new Set),ee=me(!1),ve=me("main"),q=me("main"),ce=me("absolute"),te=me(new Set),E=me(!0),X=me(!1),ie=me(new Set),W=new Map;function fe(N){const _e=new Set(ie.value);_e.add(N),ie.value=_e;const Ee=W.get(N);Ee&&clearTimeout(Ee),W.set(N,setTimeout(()=>{W.delete(N);const Ue=new Set(ie.value);Ue.delete(N),ie.value=Ue},1500))}const ye=new Map,j=me(null),A=me(0),P=L(()=>t.value.map(N=>{const _e=n.value.get(N.id);return _e||{...N,agents:[],entries:[]}})),ne=L(()=>[]),le=L(()=>{let N=P.value;return _.value&&(N=N.filter(_e=>_e.source===_.value)),C.value&&(N=N.filter(_e=>{const Ee=n.value.get(_e.id);if(Ee&&Ee.entries.length>0)return Ee.entries[0].contextInfo.model.includes(C.value);const Ue=t.value.find(kt=>kt.id===_e.id);return Ue==null?void 0:Ue.latestModel.includes(C.value)})),N}),S=L(()=>{let N=t.value;if(_.value&&(N=N.filter(_e=>_e.source===_.value)),a.value){const _e=a.value.toLowerCase();N=N.filter(Ee=>{var Ue;return(Ue=Ee.tags)==null?void 0:Ue.includes(_e)})}return N}),B=L(()=>{const N=new Set;for(const _e of t.value)_e.source&&N.add(_e.source);return Array.from(N).sort()}),Z=L(()=>{const N=new Set;for(const _e of t.value)_e.latestModel&&N.add(_e.latestModel);return Array.from(N).sort()}),Y=L(()=>g.value?n.value.get(g.value)??null:null),O=L(()=>{const N=Y.value;if(!N||N.entries.length===0)return null;if(b.value==="live"){const Ue=[...hn([...N.entries].reverse())].reverse().find(kt=>kt.isMain);return(Ue==null?void 0:Ue.entry)??N.entries[0]}return N.entries.find(Ee=>Ee.id===w.value)??N.entries[0]}),H=L(()=>{let N=0;for(const _e of t.value)N+=_e.totalCost??0;return N}),y=L(()=>{let N=0;for(const _e of t.value)N+=_e.entryCount;return N+u.value});async function f(){o.value=!0,r.value=null;try{const N=await th();e.value=N.revision,t.value=N.conversations,u.value=N.ungroupedCount;const _e=new Set(N.conversations.map(Ee=>Ee.id));for(const Ee of n.value.keys())_e.has(Ee)||n.value.delete(Ee);!g.value&&N.conversations.length>0&&d.value==="inspector"&&await D(N.conversations[0].id),g.value&&!_e.has(g.value)&&(g.value=null,b.value="live",w.value=null,d.value==="inspector"&&(d.value="dashboard")),g.value&&_e.has(g.value)&&await h(g.value)}catch(N){r.value=N instanceof Error?N.message:String(N)}finally{o.value=!1}}async function h(N){s.value=N;try{const _e=await nh(N),Ee=new Map(n.value);Ee.set(N,_e),n.value=Ee}catch(_e){console.warn(`Failed to load conversation ${N}:`,_e)}finally{s.value=null}}function v(N){if(N.type==="connected"){i.value=!0,N.revision!==e.value&&f();return}N.conversationId&&fe(N.conversationId),f(),N.type==="tags-updated"&&Me(),N.conversationId&&g.value===N.conversationId&&h(N.conversationId)}async function D(N){g.value=N,b.value="live",w.value=null,n.value.has(N)||await h(N)}function z(){b.value="live",w.value=null}function se(N){b.value="pinned",w.value=N}function K(N){d.value=N}function pe(N){m.value=N}function Q(N){_.value=N}function Ce(N){C.value=N}function ge(N,_e=!1){I.value=N,R.value=null,T.value=null,ue.value=null,oe.value=_e,$.value+=1}function xe(N,_e){I.value=N,R.value=_e,T.value=null,ue.value=null,$.value+=1}function Te(N){I.value=null,R.value=null,T.value=N,ue.value=null,$.value+=1}function Le(N){I.value="tool_results",R.value=null,T.value=null,ue.value=N,$.value+=1}function He(N){const _e=new Set(J.value);_e.has(N)?_e.delete(N):_e.add(N),J.value=_e}async function Re(N){const _e=N??J.value;if(_e.size<2)return;J.value=new Set(_e),ee.value=!0,d.value="compare";const Ee=[];for(const Ue of _e)n.value.has(Ue)||Ee.push(h(Ue));await Promise.all(Ee)}function nt(N="dashboard"){ee.value=!1,J.value=new Set,d.value=N}function st(){I.value=null,R.value=null,T.value=null,oe.value=!1,ue.value=null}async function bt(N){if(ye.has(N))return ye.get(N);j.value=N;try{const _e=await uh(N);if(_e&&(ye.set(N,_e),A.value++,ye.size>50)){const Ee=ye.keys().next().value;Ee!==void 0&&ye.delete(Ee)}return _e}catch{return null}finally{j.value=null}}function U(N){return ye.get(N)??null}async function V(N){try{await oh(N),t.value=t.value.filter(_e=>_e.id!==N),n.value.delete(N),g.value===N&&(t.value.length>0?await D(t.value[0].id):(g.value=null,b.value="live",w.value=null))}catch(_e){r.value=_e instanceof Error?_e.message:String(_e)}}async function be(){try{await sh(),t.value=[],n.value=new Map,u.value=0,g.value=null,b.value="live",w.value=null,e.value=0}catch(N){r.value=N instanceof Error?N.message:String(N)}}function re(N){typeof document>"u"||document.documentElement.setAttribute("data-density",N)}function ke(){if(typeof window>"u")return;const N=window.localStorage.getItem(ol);N==="comfortable"||N==="compact"?M.value=N:M.value="comfortable",re(M.value)}function Fe(N){M.value=N,typeof window<"u"&&window.localStorage.setItem(ol,N),re(N)}async function Me(){c.value=!0;try{const N=await ih();l.value=N.tags}catch(N){console.warn("Failed to load tags:",N)}finally{c.value=!1}}function ft(N){a.value=N}function Pt(){a.value=""}async function Bn(N,_e){try{const Ee=await lh(N,_e),Ue=t.value.find(hu=>hu.id===N);Ue&&(Ue.tags=Ee);const kt=n.value.get(N);kt&&(kt.tags=Ee),await Me()}catch(Ee){r.value=Ee instanceof Error?Ee.message:String(Ee)}}async function ze(N,_e){try{const Ee=await ah(N,_e),Ue=t.value.find(hu=>hu.id===N);Ue&&(Ue.tags=Ee);const kt=n.value.get(N);kt&&(kt.tags=Ee),await Me()}catch(Ee){r.value=Ee instanceof Error?Ee.message:String(Ee)}}async function Ye(N,_e){try{const Ee=await ch(N,_e),Ue=t.value.find(hu=>hu.id===N);Ue&&(Ue.tags=Ee);const kt=n.value.get(N);kt&&(kt.tags=Ee),await Me()}catch(Ee){r.value=Ee instanceof Error?Ee.message:String(Ee)}}function et(N){return`tag-color-${N%8}`}return{revision:e,summaries:t,loadedConversations:n,conversations:P,ungrouped:ne,loading:o,loadingSession:s,error:r,connected:i,view:d,inspectorTab:m,selectedSessionId:g,selectionMode:b,selectedEntryId:w,sourceFilter:_,modelFilter:C,density:M,messageFocusCategory:I,messageFocusToken:$,messageFocusTool:R,messageFocusIndex:T,messageFocusOpenDetail:oe,messageFocusFile:ue,messagesMode:ve,timelineMode:q,timelineStackMode:ce,timelineHiddenLegendKeys:te,timelineShowLimitOverlay:E,timelineShowCacheOverlay:X,recentlyUpdated:ie,compareSessionIds:J,compareMode:ee,allTags:l,tagFilter:a,loadingTags:c,filteredConversations:le,filteredSummaries:S,sources:B,models:Z,selectedSession:Y,selectedEntry:O,totalCost:H,totalRequests:y,load:f,loadConversationEntries:h,handleSSEEvent:v,selectSession:D,followLive:z,pinEntry:se,setView:K,setInspectorTab:pe,setSourceFilter:Q,setModelFilter:Ce,focusMessageCategory:ge,focusMessageTool:xe,focusMessageByIndex:Te,focusMessageFile:Le,clearMessageFocus:st,toggleCompareSession:He,enterCompare:Re,exitCompare:nt,loadEntryDetail:bt,getEntryDetail:U,entryDetailLoading:j,entryDetailVersion:A,initializeDensity:ke,setDensity:Fe,deleteSession:V,reset:be,loadTags:Me,setTagFilter:ft,clearTagFilter:Pt,updateSessionTags:Bn,addTagToSession:ze,removeTagFromSession:Ye,getTagColorClass:et}});function mh(e,t){const n=me(!1);let u=null,o=null;function s(){u&&u.close(),u=new EventSource(e),u.onopen=()=>{n.value=!0},u.onmessage=i=>{try{const l=JSON.parse(i.data);t(l)}catch{}},u.onerror=()=>{n.value=!1,u==null||u.close(),u=null,o&&clearTimeout(o),o=setTimeout(s,2e3)}}function r(){o&&(clearTimeout(o),o=null),u&&(u.close(),u=null),n.value=!1}return s(),uo(r),{connected:n,disconnect:r,reconnect:s}}function we(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function Et(e){return e==null?"--":"$"+e.toFixed(2)}function ur(e){return e>=1e3?(e/1e3).toFixed(1)+"s":Math.round(e)+"ms"}function or(e,t=!1){return(t?e:e*100).toFixed(1)+"%"}function bn(e){if(!e)return"?";const t=e.match(/(opus|sonnet|haiku)-(\d+(?:\.\d+)?)/);if(t)return t[1]+"-"+t[2];const n=e.match(/(gpt-4o(?:-mini)?|gpt-4|gpt-3\.5)/);if(n)return n[1];const u=e.match(/(o[134](?:-mini)?)/);if(u)return u[1];const o=e.match(/(gemini-[\d.]+-(?:pro|flash)(?:-\w+)?)/);if(o)return o[1];const s=e.split(/[-_]/);return s.length>2?s.slice(0,3).join("-"):e}function Zu(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":"badge-unknown"}function sr(e){switch(e){case"good":return"#10b981";case"needs-work":return"#f59e0b";case"poor":return"#ef4444";default:return"#64748b"}}const gh={class:"tag-editor"},vh={class:"tag-list"},bh=["onClick"],_h={key:1,class:"input-wrap"},yh={key:0,class:"suggestions"},xh=["onMousedown"],kh=tt({__name:"TagEditor",props:{conversationId:{},tags:{}},setup(e){const t=e,n=Tt(),u=me(!1),o=me(""),s=me(),r=me(-1),i=L(()=>n.allTags.map($=>$.name)),l=L(()=>{const $=new Set(t.tags);return i.value.filter(R=>!$.has(R))}),a=L(()=>{const $=o.value.trim().toLowerCase();return $?l.value.filter(R=>R.includes($)).slice(0,5):l.value.slice(0,5)}),c=L(()=>o.value.trim().toLowerCase()),d=L(()=>!(!c.value||t.tags.includes(c.value)||a.value.includes(c.value))),m=L(()=>u.value&&(a.value.length>0||d.value));Ze(u,$=>{$?(n.loadTags(),Je(()=>{var R;return(R=s.value)==null?void 0:R.focus()})):(o.value="",r.value=-1)});const g=L(()=>a.value.length+(d.value?1:0));function b(){u.value=!0}function w(){u.value=!1}async function _($){const R=$.trim().toLowerCase();if(R){if(t.tags.includes(R)){o.value="";return}await n.addTagToSession(t.conversationId,R),o.value="",r.value=-1}}async function C($){await n.removeTagFromSession(t.conversationId,$)}function M($){$.key==="Enter"?($.preventDefault(),r.value>=0&&r.value<a.value.length?_(a.value[r.value]):o.value.trim()&&_(o.value)):$.key==="Escape"?w():$.key==="ArrowDown"?($.preventDefault(),r.value=Math.min(r.value+1,g.value-1)):$.key==="ArrowUp"?($.preventDefault(),r.value=Math.max(r.value-1,-1)):$.key==="Backspace"&&!o.value&&t.tags.length>0&&C(t.tags[t.tags.length-1])}function I(){setTimeout(()=>{o.value.trim()||w()},150)}return($,R)=>(x(),k("div",gh,[p("div",vh,[(x(!0),k(he,null,Se(e.tags,(T,oe)=>(x(),k("span",{key:T,class:de(["tag-pill",`tag-color-${oe%8}`])},[$e(F(T)+" ",1),p("button",{class:"tag-remove",title:"Remove tag",onClick:Ft(ue=>C(T),["stop"])},[...R[2]||(R[2]=[p("i",{class:"i-carbon-close"},null,-1)])],8,bh)],2))),128)),u.value?(x(),k("div",_h,[qe(p("input",{ref_key:"inputRef",ref:s,"onUpdate:modelValue":R[0]||(R[0]=T=>o.value=T),type:"text",class:"tag-input",placeholder:"tag...",onKeydown:M,onBlur:I},null,544),[[Pd,o.value]]),m.value?(x(),k("div",yh,[(x(!0),k(he,null,Se(a.value,(T,oe)=>(x(),k("div",{key:T,class:de(["suggestion",{selected:oe===r.value}]),onMousedown:Ft(ue=>_(T),["prevent"])},F(T),43,xh))),128)),d.value?(x(),k("div",{key:0,class:de(["suggestion new-tag",{selected:r.value===a.value.length}]),onMousedown:R[1]||(R[1]=Ft(T=>_(o.value),["prevent"]))},' Create "'+F(c.value)+'" ',35)):ae("",!0)])):ae("",!0)])):(x(),k("button",{key:0,class:"add-btn",title:"Add tag",onClick:b},[...R[3]||(R[3]=[p("i",{class:"i-carbon-add"},null,-1)])]))])]))}}),at=(e,t)=>{const n=e.__vccOpts||e;for(const[u,o]of t)n[u]=o;return n},wh=at(kh,[["__scopeId","data-v-09e55ec4"]]),Ch={class:"toolbar"},$h={key:0,class:"session-ctx"},Eh={class:"session-model"},Sh=["title"],Th=["title","aria-label"],Dh={key:0,class:"session-id-toast"},Ah={key:2,class:"toolbar-sep"},Fh={class:"session-stat"},Mh={class:"session-stat cost"},Ih={key:3,class:"session-stat"},Ph=["title"],Lh={key:0,class:"toolbar-tag-overflow"},Rh={key:0,class:"tag-popover"},Oh={class:"compare-label"},zh={class:"toolbar-right"},Bh={class:"toolbar-stat"},Nh={class:"toolbar-stat"},Hh={class:"toolbar-stat cost"},jh={key:1,class:"toolbar-dropdown"},qh={key:2,class:"toolbar-dropdown"},Vh=["disabled"],Uh=tt({__name:"AppToolbar",setup(e){const t=me(!1),n=me();function u(){t.value=!t.value,t.value&&r.loadTags()}function o(){t.value=!1}function s(te){t.value&&n.value&&!n.value.contains(te.target)&&o()}On(()=>document.addEventListener("click",s,!0)),uo(()=>document.removeEventListener("click",s,!0)),Ze(()=>r.selectedSessionId,()=>{t.value=!1});const r=Tt(),i=me(!1),l=me(!1),a=me(!1),c=L(()=>r.view==="inspector"&&!!r.selectedSession),d=L(()=>r.selectedSession),m=L(()=>r.totalRequests>0),g=L(()=>c.value&&!!r.selectedSessionId),b=L(()=>{const te=r.selectedSessionId;return te?r.summaries.find(E=>E.id===te)??null:null});function w(te){if(!te)return"";let E=te;/^\/home\/[^/]+(\/|$)/.test(E)?E=E.replace(/^\/home\/[^/]+/,"~"):/^\/Users\/[^/]+(\/|$)/.test(E)&&(E=E.replace(/^\/Users\/[^/]+/,"~"));const X=E.split("/");return X.length>3?X.slice(-3).join("/"):E}const _=L(()=>r.selectedSessionId??"");function C(te){return String(te).trim().replace(/[^a-zA-Z0-9._-]+/g,"_").replace(/^_+|_+$/g,"").slice(0,80)||"unknown"}function M(te,E){const X=te==="lhar"?"lhar":"lhar.json";return`context-lens-export-${`session-${C(E||"all")}`}-privacy-standard.${X}`}async function I(te,E){const X=await fetch(te);if(!X.ok)throw new Error(`Download failed: ${X.status}`);const ie=await X.blob(),W=URL.createObjectURL(ie);try{const fe=document.createElement("a");fe.href=W,fe.download=E,fe.style.display="none",document.body.appendChild(fe),fe.click(),document.body.removeChild(fe)}finally{URL.revokeObjectURL(W)}}async function $(te,E){const X=E==="session"?r.selectedSessionId??void 0:void 0,ie=rh(te,X),W=M(te,X);try{await I(ie,W)}catch{window.open(ie,"_blank")}i.value=!1}function R(){i.value=!i.value,i.value&&(l.value=!1)}function T(){l.value=!l.value,l.value&&(i.value=!1)}function oe(){confirm("Clear all captured data?")&&r.reset(),l.value=!1}function ue(){const te=r.selectedSessionId;!te||!g.value||(confirm("Remove this session?")&&r.deleteSession(te),l.value=!1)}function J(){r.setView("dashboard")}async function ee(){const te=_.value;if(te){try{await navigator.clipboard.writeText(te),a.value=!0}catch{}setTimeout(()=>{a.value=!1},1400)}}function ve(te){return te.length<=18?te:`${te.slice(0,8)}…${te.slice(-8)}`}function q(te){return a.value?`Copied: ${te}`:`Session ID: ${te} (click to copy)`}function ce(te){(te.key==="Enter"||te.key===" ")&&(te.preventDefault(),ee())}return(te,E)=>(x(),k("header",Ch,[p("a",{class:"toolbar-brand toolbar-brand-btn",href:"#sessions",onClick:Ft(J,["prevent"])},[...E[8]||(E[8]=[Ua('<svg class="logo-mark" width="18" height="18" viewBox="0 0 18 18" aria-hidden="true" data-v-86c030f0><circle cx="9" cy="9" r="7.5" fill="none" stroke="var(--accent-blue)" stroke-width="1" opacity="0.35" data-v-86c030f0></circle><circle cx="9" cy="9" r="4" fill="none" stroke="var(--accent-blue)" stroke-width="1" opacity="0.6" data-v-86c030f0></circle><circle cx="9" cy="9" r="1.5" fill="var(--accent-blue)" data-v-86c030f0></circle></svg><span class="brand-text" data-v-86c030f0>Context Lens</span>',2)])]),Pe(fn,{name:"session-ctx"},{default:lt(()=>{var X,ie,W,fe;return[c.value&&d.value?(x(),k("div",$h,[E[11]||(E[11]=p("span",{class:"toolbar-sep"},null,-1)),p("span",{class:de(["session-badge",G(Zu)(d.value.source)])},F(d.value.source||"?"),3),p("span",Eh,F(G(bn)(((X=b.value)==null?void 0:X.latestModel)??"")),1),d.value.workingDirectory?(x(),k("span",{key:0,class:"session-dir",title:d.value.workingDirectory},F(w(d.value.workingDirectory)),9,Sh)):ae("",!0),E[12]||(E[12]=p("span",{class:"toolbar-sep"},null,-1)),_.value?(x(),k("span",{key:1,class:de(["session-id",{copied:a.value}]),title:q(_.value),role:"button",tabindex:"0","aria-label":q(_.value),onClick:ee,onKeydown:ce},[$e(" SID "+F(ve(_.value))+" ",1),a.value?(x(),k("span",Dh,"Copied")):ae("",!0)],42,Th)):ae("",!0),_.value?(x(),k("span",Ah)):ae("",!0),p("span",Fh,F(((ie=b.value)==null?void 0:ie.entryCount)??d.value.entries.length)+" turns",1),p("span",Mh,F(G(Et)(((W=b.value)==null?void 0:W.totalCost)??0)),1),(fe=b.value)!=null&&fe.healthScore?(x(),k("span",Ih,[E[9]||(E[9]=$e(" Latest health ",-1)),p("span",{class:de(["session-health",{good:b.value.healthScore.rating==="good",warn:b.value.healthScore.rating==="needs-work",bad:b.value.healthScore.rating==="poor"}])},F(b.value.healthScore.overall),3)])):ae("",!0),E[13]||(E[13]=p("span",{class:"toolbar-sep"},null,-1)),_.value?(x(),k("div",{key:4,ref_key:"toolbarTagsEl",ref:n,class:"toolbar-tags",onClick:E[0]||(E[0]=Ft(()=>{},["stop"]))},[p("button",{class:de(["tags-toggle",{active:t.value,tagged:(d.value.tags??[]).length>0}]),title:t.value?"Close tag editor":"Edit tags",onClick:u},[E[10]||(E[10]=p("i",{class:"i-carbon-tag"},null,-1)),(d.value.tags??[]).length===0?(x(),k(he,{key:0},[$e(" Tags ")],64)):(x(),k(he,{key:1},[(x(!0),k(he,null,Se((d.value.tags??[]).slice(0,2),(ye,j)=>(x(),k("span",{key:ye,class:de(["toolbar-tag-pill",`tag-color-${j%8}`])},F(ye),3))),128)),(d.value.tags??[]).length>2?(x(),k("span",Lh," +"+F((d.value.tags??[]).length-2),1)):ae("",!0)],64))],10,Ph),Pe(fn,{name:"tag-popover"},{default:lt(()=>[t.value?(x(),k("div",Rh,[Pe(wh,{"conversation-id":_.value,tags:d.value.tags??[]},null,8,["conversation-id","tags"])])):ae("",!0)]),_:1})],512)):ae("",!0)])):ae("",!0)]}),_:1}),G(r).compareMode?(x(),k(he,{key:0},[E[16]||(E[16]=p("span",{class:"toolbar-sep"},null,-1)),p("span",Oh,[E[14]||(E[14]=p("i",{class:"i-carbon-compare"},null,-1)),$e(" Comparing "+F(G(r).compareSessionIds.size)+" sessions ",1)]),p("button",{class:"compare-exit-btn",onClick:E[1]||(E[1]=X=>G(r).exitCompare())},[...E[15]||(E[15]=[p("i",{class:"i-carbon-close"},null,-1),$e(" Exit ",-1)])])],64)):ae("",!0),p("div",zh,[p("span",{class:de(["connection",{live:G(r).connected}])},[E[17]||(E[17]=p("span",{class:"connection-dot"},null,-1)),$e(" "+F(G(r).connected?"Live":"Offline"),1)],2),c.value?ae("",!0):(x(),k(he,{key:0},[p("span",Bh,F(G(r).conversations.length)+" session"+F(G(r).conversations.length!==1?"s":""),1),p("span",Nh,F(G(r).totalRequests)+" req"+F(G(r).totalRequests!==1?"s":""),1),p("span",Hh,F(G(Et)(G(r).totalCost)),1)],64)),m.value?(x(),k("div",jh,[p("button",{class:"toolbar-control",onClick:R},[...E[18]||(E[18]=[p("i",{class:"i-carbon-download"},null,-1),$e(" Export ",-1)])]),Pe(fn,{name:"dropdown"},{default:lt(()=>[i.value?(x(),k("div",{key:0,class:"dropdown-menu",onMouseleave:E[6]||(E[6]=X=>i.value=!1)},[p("button",{class:"dropdown-item",onClick:E[2]||(E[2]=X=>$("lhar.json","all"))},[...E[19]||(E[19]=[p("i",{class:"i-carbon-document"},null,-1),$e(" All (.lhar.json)",-1)])]),p("button",{class:"dropdown-item",onClick:E[3]||(E[3]=X=>$("lhar","all"))},[...E[20]||(E[20]=[p("i",{class:"i-carbon-document"},null,-1),$e(" All (.lhar)",-1)])]),G(r).selectedSessionId?(x(),k(he,{key:0},[E[23]||(E[23]=p("div",{class:"dropdown-sep"},null,-1)),p("button",{class:"dropdown-item",onClick:E[4]||(E[4]=X=>$("lhar.json","session"))},[...E[21]||(E[21]=[p("i",{class:"i-carbon-document"},null,-1),$e(" Session (.lhar.json)",-1)])]),p("button",{class:"dropdown-item",onClick:E[5]||(E[5]=X=>$("lhar","session"))},[...E[22]||(E[22]=[p("i",{class:"i-carbon-document"},null,-1),$e(" Session (.lhar)",-1)])])],64)):ae("",!0)],32)):ae("",!0)]),_:1})])):ae("",!0),m.value?(x(),k("div",qh,[p("button",{class:"toolbar-control",onClick:T},[...E[24]||(E[24]=[p("i",{class:"i-carbon-overflow-menu-horizontal"},null,-1),$e(" Menu ",-1)])]),Pe(fn,{name:"dropdown"},{default:lt(()=>[l.value?(x(),k("div",{key:0,class:"dropdown-menu",onMouseleave:E[7]||(E[7]=X=>l.value=!1)},[p("button",{class:"dropdown-item dropdown-item--danger",onClick:oe},[...E[25]||(E[25]=[p("i",{class:"i-carbon-trash-can"},null,-1),$e(" Reset all ",-1)])]),p("button",{class:de(["dropdown-item dropdown-item--danger",{"dropdown-item--disabled":!g.value}]),disabled:!g.value,onClick:ue},[...E[26]||(E[26]=[p("i",{class:"i-carbon-subtract-alt"},null,-1),$e(" Remove this session ",-1)])],10,Vh)],32)):ae("",!0)]),_:1})])):ae("",!0)])]))}}),Wh=at(Uh,[["__scopeId","data-v-86c030f0"]]),Kh=["value","placeholder"],Gh=tt({__name:"SearchInput",props:{modelValue:{},placeholder:{default:"Search…"},autoFocus:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,u=t,o=me(!1),s=me();function r(){var l;u("update:modelValue",""),(l=s.value)==null||l.focus()}function i(){var l;n.modelValue?u("update:modelValue",""):(l=s.value)==null||l.blur()}return rf(()=>{var l;n.autoFocus&&((l=s.value)==null||l.focus())}),(l,a)=>(x(),k("div",{class:de(["search-input-root",{focused:o.value,active:e.modelValue.length>0}]),onClick:a[3]||(a[3]=c=>{var d;return(d=s.value)==null?void 0:d.focus()})},[a[5]||(a[5]=p("i",{class:"i-carbon-search search-input-icon"},null,-1)),p("input",{ref_key:"inputRef",ref:s,value:e.modelValue,type:"text",class:"search-input-field",placeholder:e.placeholder,onInput:a[0]||(a[0]=c=>u("update:modelValue",c.target.value)),onFocus:a[1]||(a[1]=c=>o.value=!0),onBlur:a[2]||(a[2]=c=>o.value=!1),onKeydown:Xa(i,["escape"])},null,40,Kh),e.modelValue.length>0?(x(),k("button",{key:0,class:"search-input-clear",tabindex:"-1",title:"Clear",onClick:Ft(r,["stop"])},[...a[4]||(a[4]=[p("i",{class:"i-carbon-close"},null,-1)])])):ae("",!0),a[6]||(a[6]=p("div",{class:"search-input-accent"},null,-1))],2))}}),Zh=at(Gh,[["__scopeId","data-v-70f5ee93"]]),Jh={class:"tag-filter"},Yh={key:0,class:"dropdown-loading"},Xh=["onClick"],Qh={class:"tag-name"},e1={class:"tag-count"},t1={key:2,class:"dropdown-empty"},n1=tt({__name:"TagFilter",setup(e){const t=Tt(),n=me(!1),u=L(()=>t.allTags.length>0),o=L(()=>t.tagFilter),s=L(()=>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)=>(x(),k("div",Jh,[p("button",{class:de(["filter-btn",{active:o.value}]),onClick:l},[$e(F(s.value)+" ",1),p("i",{class:de(["i-carbon-chevron-down dropdown-icon",{open:n.value}])},null,2)],2),Pe(fn,{name:"dropdown"},{default:lt(()=>[n.value?(x(),k("div",{key:0,class:"dropdown-menu",onMouseleave:c[0]||(c[0]=d=>n.value=!1)},[G(t).loadingTags?(x(),k("div",Yh," Loading... ")):u.value?(x(),k(he,{key:1},[p("button",{class:de(["dropdown-item",{active:!o.value}]),onClick:i},[...c[1]||(c[1]=[p("span",{class:"all-label"},"All sessions",-1)])],2),c[2]||(c[2]=p("div",{class:"dropdown-sep"},null,-1)),(x(!0),k(he,null,Se(G(t).allTags,(d,m)=>(x(),k("button",{key:d.name,class:de(["dropdown-item",{active:o.value===d.name}]),onClick:g=>r(d.name)},[p("span",{class:de(["tag-dot",G(t).getTagColorClass(m)])},null,2),p("span",Qh,F(d.name),1),p("span",e1,F(d.count),1)],10,Xh))),128))],64)):(x(),k("div",t1," No tags yet "))],32)):ae("",!0)]),_:1})]))}}),u1=at(n1,[["__scopeId","data-v-8f64535a"]]);function _u(e){return e<=0?0:e>=1?1:e}function o1(e,t){const n=e.healthScore,u=n?_u((100-n.overall)/100):null,o=e.contextLimit?_u(e.latestTotalTokens/e.contextLimit):0,s=u===null?o:_u(u*.7+o*.3),r=t>0?_u(e.totalCost/t):0,i=_u(s*.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 d=`Priority ${Math.round(i*100)} = 0.7×risk(${Math.round(s*100)}) + 0.3×cost(${Math.round(r*100)}).`;return{risk:s,normalizedCost:r,score:i,label:l,toneClass:a,barClass:c,tooltip:d}}function Ac(e,t,n){var g,b;const u=[],o=e.contextInfo,s=e.composition||[],r=s.reduce((w,_)=>w+_.tokens,0),i=rs(o.messages||[]),l=s.find(w=>w.category==="tool_results");if(l&&r>0&&l.pct>25){let w=0,_="";for(const C of o.messages||[])if(Ot(C)==="tool_results"&&C.tokens>w&&(w=C.tokens,C.contentBlocks)){for(const M of C.contentBlocks)if(M.type==="tool_result"&&M.tool_use_id&&i[M.tool_use_id]){_=i[M.tool_use_id];break}}if(w>2e3){const C=Math.round(w/r*100);u.push({severity:"high",title:`Large tool result${_?": "+_:""} (${we(w)} tokens, ${C}% 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:`${we(w)} tok`})}}const a=s.find(w=>w.category==="tool_definitions");if(a&&a.pct>30){const w=new Set;for(const I of t)for(const $ of I.contextInfo.messages||[])if($.contentBlocks)for(const R of $.contentBlocks)R.type==="tool_use"&&R.name&&w.add(R.name);const _=[];if(o.tools)for(const I of o.tools){const $="name"in I?I.name:(g=I.function)==null?void 0:g.name;$&&_.push($)}const C=_.filter(I=>!w.has(I)),M=_.length;if(M>w.size+3){const I=C.slice(0,5).join(", ")+(C.length>5?` +${C.length-5} more`:""),$=Math.round(a.tokens*C.length/M);u.push({severity:"high",title:`${w.size}/${M} tools used, ${C.length} idle`,detail:`Unused: ${I}. Definitions cost ~${we($)} tokens and are re-sent every turn. You may want to remove unused tools to free context.`,impact:`~${we($)} tok`})}}if(l&&l.pct>60){const w=s.find(I=>I.category==="user_text"),_=w?w.pct:0,C=new Map;for(const I of o.messages||[])if(Ot(I)==="tool_results"&&I.contentBlocks){for(const $ of I.contentBlocks)if($.type==="tool_result"&&$.tool_use_id){const R=i[$.tool_use_id]||"unknown";C.set(R,(C.get(R)||0)+(I.tokens||0))}}const M=Array.from(C.entries()).sort((I,$)=>$[1]-I[1]).slice(0,3).map(([I,$])=>`${I} (${we($)})`).join(", ");u.push({severity:"med",title:`Tool results dominate: ${l.pct}% of context`,detail:`Top tools: ${M}. User text is only ${_}%. Large results crowd out conversation history.`,impact:"Structural"})}const c=e.contextLimit>0?Math.round(o.totalTokens/e.contextLimit*100):0;c>80?u.push({severity:"high",title:`Context utilization critical: ${c}%`,detail:`${we(o.totalTokens)} of ${we(e.contextLimit)} tokens. Overflow risk is elevated, and older messages may be dropped or summarized.`,impact:"Critical"}):c>60&&u.push({severity:"med",title:`Context utilization high: ${c}%`,detail:`${we(o.totalTokens)} of ${we(e.contextLimit)} tokens used.`,impact:"Monitor"});const d=t.indexOf(e);if(d>0){let w=-1;for(let _=d-1;_>=0;_--)if((b=n[_])!=null&&b.isMain){w=_;break}if(w>=0){const _=t[w].contextInfo.totalTokens;o.totalTokens<_*.7&&u.push({severity:"med",title:"Compaction detected",detail:`Tokens dropped ${we(_)} → ${we(o.totalTokens)}. Context was summarized or truncated — older details may be lost.`,impact:`-${we(_-o.totalTokens)} tok`})}}const m=s.find(w=>w.category==="system_injections");m&&m.pct>5&&u.push({severity:"med",title:`System injections: ${m.pct}% of context`,detail:`${we(m.tokens)} tokens of system-reminder blocks injected into messages. These are re-sent every turn, reducing space for actual conversation.`,impact:`${we(m.tokens)} tok`});for(const w of e.securityAlerts||[]){const _=w.severity==="high"?"high":w.severity==="medium"?"med":"low",C=w.toolName?`tool result: ${w.toolName}`:`${w.role} message`;u.push({severity:_,title:`⚠ ${w.pattern.replace(/_/g," ")} in ${C} (msg ${w.messageIndex+1})`,detail:w.match,impact:w.severity,messageIndex:w.messageIndex,highlight:w.match})}for(const w of e.outputSecurityAlerts||[]){const _=w.severity==="high"?"high":w.severity==="medium"?"med":"low";u.push({severity:_,title:`⚠ ${w.pattern.replace(/_/g," ")} in response`,detail:w.match,impact:w.severity})}return u}const s1={class:"kpi-row"},r1={class:"kpi-card"},i1={class:"kpi-value"},l1={class:"kpi-card"},a1={class:"kpi-value accent-blue"},c1={class:"kpi-card"},f1={class:"kpi-value"},d1={class:"kpi-card"},p1={class:"kpi-value accent-green"},h1={class:"kpi-card"},m1={class:"kpi-value accent-amber"},g1={class:"kpi-scope"},v1={class:"section-head"},b1={class:"section-count"},_1={class:"filter-group"},y1={key:0,class:"filter-dropdown"},x1=["onClick"],k1={class:"sort-group"},w1={class:"table-wrap"},C1={class:"ledger"},$1={key:0,class:"col-select"},E1=["onClick"],S1={key:0,class:"col-select"},T1={class:"col-priority"},D1={class:"col-source"},A1={key:0,class:"row-tags"},F1=["title"],M1={key:0,class:"row-tag-more"},I1={class:"col-model"},P1={class:"model-text"},L1={class:"col-dir"},R1=["title"],O1={class:"col-turns"},z1={class:"num"},B1={class:"col-context"},N1={class:"col-cost"},H1={class:"num green"},j1={class:"col-health"},q1={class:"health-cell"},V1={key:0,class:"health-tooltip"},U1={class:"health-tooltip-title"},W1={class:"health-audit-name"},K1={class:"col-spark"},G1=["innerHTML"],Z1={class:"col-time"},J1=["title"],Y1={class:"col-arrow"},X1=["href","onClick"],Q1=["colspan"],em={class:"expand-content"},tm={class:"expand-inner"},nm={key:0,class:"expand-loading"},um={key:0,class:"expand-section"},om={class:"expand-section-label"},sm={class:"comp-tape"},rm=["title"],im={key:0,class:"comp-seg-label"},lm={class:"expand-section"},am={class:"finding-text"},cm={key:1,class:"finding"},fm={key:0,class:"compare-bar"},dm={class:"compare-bar-text"},pm={key:0,class:"dashboard-empty"},hm={key:1,class:"dashboard-empty"},mm=tt({__name:"DashboardView",setup(e){const t=Tt(),n=me("recent"),u=me(new Set),o=me(!1),s=me(""),r=me(!1);Ze(()=>t.compareSessionIds.size,f=>{f===0&&r.value&&(r.value=!1)});function i(){r.value=!r.value,r.value||(t.compareSessionIds=new Set)}function l(f){return t.compareSessionIds.has(f)}function a(f){r.value?t.toggleCompareSession(f):B(f)}const c=L(()=>t.compareSessionIds.size),d=me(null),m=L(()=>{const f=new Set;for(const h of t.summaries)h.source&&f.add(h.source);return Array.from(f).sort()});function g(f){return d.value?d.value.has(f):!0}function b(f){if(!d.value){const v=new Set(m.value);v.delete(f),v.size>0&&(d.value=v);return}const h=new Set(d.value);if(h.has(f)){if(h.delete(f),h.size===0)return}else h.add(f);h.size===m.value.length?d.value=null:d.value=h}const w=L(()=>d.value!==null),_=L(()=>d.value?`Source (${d.value.size})`:"Source"),C=L(()=>{let f=t.summaries;d.value&&(f=f.filter(v=>d.value.has(v.source)));const h=s.value.trim().toLowerCase();if(h&&(f=f.filter(v=>[v.id,v.source,v.label,v.workingDirectory??"",v.latestModel].join("\0").toLowerCase().includes(h))),t.tagFilter){const v=t.tagFilter.toLowerCase();f=f.filter(D=>{var z;return(z=D.tags)==null?void 0:z.includes(v)})}return f}),M=L(()=>{let f=0;for(const h of C.value)f=Math.max(f,h.totalCost);return f}),I=L(()=>{const f=new Map;for(const h of C.value)f.set(h.id,o1(h,M.value));return f}),$=L(()=>{const f=[...C.value];return n.value==="priority"?f.sort((h,v)=>{var se,K;const D=((se=I.value.get(h.id))==null?void 0:se.score)??0;return(((K=I.value.get(v.id))==null?void 0:K.score)??0)-D}):n.value==="cost"&&f.sort((h,v)=>v.totalCost-h.totalCost),f}),R=me("today"),T=L(()=>{if(R.value==="all")return C.value;const f=new Date;f.setHours(0,0,0,0);const h=f.getTime();return C.value.filter(v=>new Date(v.latestTimestamp).getTime()>=h)}),oe=L(()=>T.value.length),ue=L(()=>T.value.reduce((f,h)=>f+h.entryCount,0)),J=L(()=>T.value.reduce((f,h)=>f+h.latestTotalTokens,0)),ee=L(()=>T.value.reduce((f,h)=>f+h.totalCost,0)),ve=L(()=>{const f=T.value.filter(v=>{var D;return((D=v.healthScore)==null?void 0:D.overall)!=null});if(f.length===0)return 0;const h=f.reduce((v,D)=>{var z;return v+(((z=D.healthScore)==null?void 0:z.overall)??0)},0);return Math.round(h/f.length)});function q(f){return I.value.get(f)??{score:0,label:"Healthy",toneClass:"priority-healthy",barClass:"prio-healthy",risk:0,normalizedCost:0,tooltip:""}}function ce(f){return f.contextLimit?f.latestTotalTokens/f.contextLimit:0}function te(f){return f>=.8?"util-high":f>=.6?"util-mid":"util-low"}function E(f){var v;const h=(v=f.healthScore)==null?void 0:v.rating;return h==="poor"?"health-bad":h==="needs-work"?"health-warn":"health-good"}function X(f){return f>=90?"health-good":f>=50?"health-warn":"health-bad"}function ie(f){const h=Date.now()-new Date(f).getTime();return h<6e4?"just now":h<36e5?`${Math.floor(h/6e4)}m ago`:h<864e5?`${Math.floor(h/36e5)}h ago`:`${Math.floor(h/864e5)}d ago`}function W(f){const h=new Date(f),v=h.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}),D=h.toLocaleDateString("en-CA");return`${v} on ${D}`}function fe(f){if(!f)return"";let h=f;/^\/home\/[^/]+(\/|$)/.test(h)?h=h.replace(/^\/home\/[^/]+/,"~"):/^\/Users\/[^/]+(\/|$)/.test(h)&&(h=h.replace(/^\/Users\/[^/]+/,"~"));const v=h.split("/");return v.length>2?v.slice(-2).join("/"):h}function ye(f){return f==="prio-critical"?"#ef4444":f==="prio-warning"?"#f59e0b":"#0ea5e9"}function j(f,h){if(f.length===0)return"";const v=72,D=22,z=Math.max(...f);if(z===0)return"";const se=f.map((Q,Ce)=>{const ge=f.length<=1?v/2:Ce/(f.length-1)*v,xe=D-Q/z*(D-4)-2;return`${ge.toFixed(1)},${xe.toFixed(1)}`}),K=se.join(" ")+` ${v},${D} 0,${D}`,pe="sg"+h.replace("#","");return`<svg viewBox="0 0 ${v} ${D}" preserveAspectRatio="none" style="display:block;width:100%;height:100%"><defs><linearGradient id="${pe}" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="${h}" stop-opacity="0.15"/><stop offset="100%" stop-color="${h}" stop-opacity="0.02"/></linearGradient></defs><polygon points="${K}" fill="url(#${pe})"/><polyline points="${se.join(" ")}" fill="none" stroke="${h}" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/><circle cx="${se[se.length-1].split(",")[0]}" cy="${se[se.length-1].split(",")[1]}" r="2" fill="${h}"/></svg>`}function A(f){const h=f.tokenHistory;if(!h||h.length<2)return"";const v=q(f.id);return j(h,ye(v.barClass))}const P=[{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 ne(f){const h=t.loadedConversations.get(f.id);return!h||h.entries.length===0?[]:h.entries[0].composition||[]}function le(f){const h=t.loadedConversations.get(f.id);if(!h||h.entries.length===0)return[];const v=h.entries[0],D=[...h.entries].reverse(),z=hn(D);return Ac(v,D,z)}function S(f){return u.value.has(f)}async function B(f){const h=new Set(u.value);h.has(f)?h.delete(f):(h.add(f),t.loadedConversations.has(f)||await t.loadConversationEntries(f)),u.value=h}function Z(){u.value=new Set}function Y(f){return`#session/${encodeURIComponent(f)}?tab=overview`}function O(f){t.setInspectorTab("overview"),t.selectSession(f),t.setView("inspector")}function H(){o.value=!1}function y(f){f.key==="Escape"&&Z()}return(f,h)=>(x(),k("div",{class:"dashboard",onKeydown:y,tabindex:"-1",onClick:H},[p("div",s1,[p("div",r1,[p("div",i1,F(oe.value),1),h[9]||(h[9]=p("div",{class:"kpi-label"},"Sessions",-1))]),p("div",l1,[p("div",a1,F(ue.value),1),h[10]||(h[10]=p("div",{class:"kpi-label"},"Requests",-1))]),p("div",c1,[p("div",f1,F(G(we)(J.value)),1),h[11]||(h[11]=p("div",{class:"kpi-label"},"Tokens",-1))]),p("div",d1,[p("div",p1,F(G(Et)(ee.value)),1),h[12]||(h[12]=p("div",{class:"kpi-label"},"Cost",-1))]),p("div",h1,[p("div",m1,F(ve.value),1),h[13]||(h[13]=p("div",{class:"kpi-label"},"Avg Health",-1))]),p("div",g1,[p("button",{class:de({active:R.value==="today"}),onClick:h[0]||(h[0]=v=>R.value="today")},"Today",2),p("button",{class:de({active:R.value==="all"}),onClick:h[1]||(h[1]=v=>R.value="all")},"All",2)])]),p("div",v1,[h[17]||(h[17]=p("span",{class:"section-title"},"Sessions",-1)),p("span",b1,F(C.value.length),1),Pe(Zh,{modelValue:s.value,"onUpdate:modelValue":h[2]||(h[2]=v=>s.value=v),placeholder:"Filter by ID, directory, model…"},null,8,["modelValue"]),p("div",_1,[p("button",{class:de(["compare-toggle",{active:r.value}]),onClick:i,title:"Select sessions to compare"},[...h[14]||(h[14]=[p("i",{class:"i-carbon-compare"},null,-1),$e(" Compare ",-1)])],2),m.value.length>1?(x(),k("div",y1,[p("button",{class:de(["filter-btn",{"has-filter":w.value}]),onClick:h[3]||(h[3]=Ft(v=>o.value=!o.value,["stop"]))},[$e(F(_.value)+" ",1),h[15]||(h[15]=p("span",{class:"caret"},null,-1))],2),o.value?(x(),k("div",{key:0,class:"filter-menu",onClick:h[4]||(h[4]=Ft(()=>{},["stop"]))},[(x(!0),k(he,null,Se(m.value,v=>(x(),k("div",{key:v,class:de(["filter-option",{checked:g(v)}]),onClick:D=>b(v)},[h[16]||(h[16]=p("span",{class:"check"},[p("i",{class:"i-carbon-checkmark"})],-1)),p("span",{class:de(["source-badge",G(Zu)(v)])},F(v),3)],10,x1))),128))])):ae("",!0)])):ae("",!0),Pe(u1),p("div",k1,[p("button",{class:de(["sort-btn",{active:n.value==="recent"}]),onClick:h[5]||(h[5]=v=>n.value="recent")},"Recent",2),p("button",{class:de(["sort-btn",{active:n.value==="priority"}]),onClick:h[6]||(h[6]=v=>n.value="priority")},"Priority",2),p("button",{class:de(["sort-btn",{active:n.value==="cost"}]),onClick:h[7]||(h[7]=v=>n.value="cost")},"Cost",2)])])]),p("div",w1,[p("table",C1,[p("thead",null,[p("tr",null,[r.value?(x(),k("th",$1)):ae("",!0),h[18]||(h[18]=p("th",{class:"col-priority"},null,-1)),h[19]||(h[19]=p("th",{class:"col-source"},"Source",-1)),h[20]||(h[20]=p("th",{class:"col-model"},"Model",-1)),h[21]||(h[21]=p("th",{class:"col-dir"},"Directory",-1)),h[22]||(h[22]=p("th",{class:"col-turns"},"Turns",-1)),h[23]||(h[23]=p("th",{class:"col-context sorted"},"Context",-1)),h[24]||(h[24]=p("th",{class:"col-cost"},"Cost",-1)),h[25]||(h[25]=p("th",{class:"col-health"},"Health",-1)),h[26]||(h[26]=p("th",{class:"col-spark"},"Trend",-1)),h[27]||(h[27]=p("th",{class:"col-time"},"Time",-1)),h[28]||(h[28]=p("th",{class:"col-arrow"},null,-1))])]),p("tbody",null,[(x(!0),k(he,null,Se($.value,v=>{var D,z,se;return x(),k(he,{key:v.id},[p("tr",{class:de(["main-row",{expanded:S(v.id),selected:S(v.id)||l(v.id),pulse:G(t).recentlyUpdated.has(v.id)}]),onClick:K=>a(v.id)},[r.value?(x(),k("td",S1,[p("span",{class:de(["compare-check",{checked:l(v.id)}])},[...h[29]||(h[29]=[p("i",{class:"i-carbon-checkmark"},null,-1)])],2)])):ae("",!0),p("td",T1,[p("div",{class:de(["priority-bar",q(v.id).barClass])},null,2)]),p("td",D1,[p("span",{class:de(["source-badge",G(Zu)(v.source)])},F(v.source||"?"),3),(D=v.tags)!=null&&D.length?(x(),k("span",A1,[(x(!0),k(he,null,Se(v.tags.slice(0,2),(K,pe)=>(x(),k("span",{key:K,class:de(["row-tag",G(t).getTagColorClass(pe)]),title:K},F(K),11,F1))),128)),v.tags.length>2?(x(),k("span",M1,"+"+F(v.tags.length-2),1)):ae("",!0)])):ae("",!0)]),p("td",I1,[p("span",P1,F(G(bn)(v.latestModel)),1)]),p("td",L1,[p("span",{class:"dir-text",title:v.workingDirectory??""},F(fe(v.workingDirectory)),9,R1)]),p("td",O1,[p("span",z1,F(v.entryCount),1)]),p("td",B1,[p("span",{class:de(["util-chip",te(ce(v))])},F(Math.round(ce(v)*100))+"% ",3)]),p("td",N1,[p("span",H1,F(G(Et)(v.totalCost)),1)]),p("td",j1,[p("div",q1,[p("span",{class:de(["health-num",E(v)])},F(((z=v.healthScore)==null?void 0:z.overall)??"—"),3),(se=v.healthScore)!=null&&se.audits?(x(),k("div",V1,[p("div",U1,"Health Score: "+F(v.healthScore.overall),1),(x(!0),k(he,null,Se(v.healthScore.audits,K=>(x(),k("div",{key:K.id,class:"health-audit-line"},[p("span",W1,F(K.name),1),p("span",{class:de(["health-audit-score",X(K.score)])},F(K.score),3)]))),128))])):ae("",!0)])]),p("td",K1,[p("div",{class:"inline-spark",innerHTML:A(v)},null,8,G1)]),p("td",Z1,[p("span",{class:"time-text",title:W(v.latestTimestamp)},F(ie(v.latestTimestamp)),9,J1)]),p("td",Y1,[p("a",{class:"inspect-btn",title:"Open in inspector",href:Y(v.id),onClick:Ft(K=>O(v.id),["prevent","stop"])},[...h[30]||(h[30]=[p("i",{class:"i-carbon-arrow-right"},null,-1)])],8,X1)])],10,E1),p("tr",{class:de(["expand-row",{open:S(v.id)}])},[p("td",{colspan:r.value?12:11},[p("div",em,[p("div",tm,[G(t).loadingSession===v.id?(x(),k("div",nm," Loading… ")):(x(),k(he,{key:1},[ne(v).length>0?(x(),k("div",um,[p("div",om," Composition · "+F(G(we)(ne(v).reduce((K,pe)=>K+pe.tokens,0)))+" tokens ",1),p("div",sm,[(x(),k(he,null,Se(P,K=>{var pe,Q,Ce,ge;return qe(p("div",{key:K.key,class:"comp-seg",style:Ae({flex:((pe=ne(v).find(xe=>xe.category===K.key))==null?void 0:pe.tokens)??0,background:K.color}),title:`${K.label}: ${((Q=ne(v).find(xe=>xe.category===K.key))==null?void 0:Q.pct)??0}%`},[(((Ce=ne(v).find(xe=>xe.category===K.key))==null?void 0:Ce.pct)??0)>=12?(x(),k("span",im,F(K.label),1)):ae("",!0)],12,rm),[[_d,(((ge=ne(v).find(xe=>xe.category===K.key))==null?void 0:ge.tokens)??0)>0]])}),64))])])):ae("",!0),p("div",lm,[h[32]||(h[32]=p("div",{class:"expand-section-label"},"Findings",-1)),p("div",{class:de(["expand-findings",{"expand-findings--scroll":le(v).length>5}])},[le(v).length>0?(x(!0),k(he,{key:0},Se(le(v),(K,pe)=>(x(),k("div",{key:pe,class:"finding"},[p("i",{class:de(["finding-icon",[`sev-${K.severity}`,K.severity==="high"?"i-carbon-warning-alt":K.severity==="med"?"i-carbon-information":"i-carbon-checkmark"]])},null,2),p("span",am,[$e(F(K.title)+" ",1),K.impact?(x(),k("span",{key:0,class:de(["finding-impact",`sev-${K.severity}`])},F(K.impact),3)):ae("",!0)])]))),128)):(x(),k("div",cm,[...h[31]||(h[31]=[p("i",{class:"finding-icon sev-low i-carbon-checkmark"},null,-1),p("span",{class:"finding-text muted"},"No issues detected.",-1)])]))],2)])],64))])])],8,Q1)],2)],64)}),128))])])]),Pe(fn,{name:"compare-bar"},{default:lt(()=>[r.value&&c.value>=2?(x(),k("div",fm,[p("span",dm,F(c.value)+" sessions selected",1),p("button",{class:"compare-bar-btn",onClick:h[8]||(h[8]=v=>G(t).enterCompare())},[...h[33]||(h[33]=[p("i",{class:"i-carbon-compare"},null,-1),$e(" Compare ",-1)])])])):ae("",!0)]),_:1}),$.value.length===0&&(s.value||d.value)?(x(),k("div",pm,[...h[34]||(h[34]=[p("div",{class:"empty-title"},"No matching sessions",-1),p("div",{class:"empty-sub"},"Try adjusting your search or filters",-1)])])):G(t).summaries.length===0?(x(),k("div",hm,[...h[35]||(h[35]=[p("div",{class:"empty-title"},"No requests captured",-1),p("div",{class:"empty-sub"},[$e("Point API calls to "),p("code",null,"localhost:4040")],-1)])])):ae("",!0)],32))}}),gm=at(mm,[["__scopeId","data-v-a063358d"]]);function Or(e){var s,r;const t=e.composition||[],n=t.reduce((i,l)=>i+l.tokens,0),u=new Map(t.map(i=>[i.category,i.tokens])),o=[];for(const[i,l]of Object.entries(cu)){let a=0;for(const c of l)a+=u.get(c)??0;a>0&&o.push({key:i,label:((s=wt[i])==null?void 0:s.label)??i,color:((r=wt[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 vm(e,t){const n=Or(e);if(t.size===0)return n;const u=n.filter(s=>!t.has(s.key)),o=u.reduce((s,r)=>s+r.tokens,0);return u.map(s=>({...s,pct:o>0?s.tokens/o*100:0}))}function Ds(e,t){return t.size===0?e.contextInfo.totalTokens:Or(e).filter(u=>!t.has(u.key)).reduce((u,o)=>u+o.tokens,0)}function bm(e,t){const n=t.findIndex(u=>u.entry.id===e);if(n<=0)return null;for(let u=n-1;u>=0;u--)if(t[u].isMain)return t[u].entry;return null}function _m(e,t){const n=t.findIndex(s=>s.entry.id===e);if(n<0)return 0;let u=n;for(let s=n;s>=0;s--)if(t[s].isMain){u=s;break}let o=0;for(let s=u+1;s<t.length&&!t[s].isMain;s++)o++;return o}function ym(e,t){var o,s;const n=new Map,u=1800;for(const r of e){const i=[],l=bm(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:`${we(a)} → ${we(c)} total tokens`});const d=ir(l),m=ir(r.entry),g=d>0&&l.usage?l.usage.cacheReadTokens/d:null,b=m>0&&r.entry.usage?r.entry.usage.cacheReadTokens/m:null;if(g!==null&&b!==null){const C=b-g;if(Math.abs(C)>=.2){const M=Math.round(g*100),I=Math.round(b*100),$=C>0?"warmed up":"invalidated",R=C>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:C>0?"Cache warmed":"Cache invalidated",detail:`${M}% to ${I}% hit rate. Cache ${$}: ${R}.`})}}const w=((o=l.composition.find(C=>C.category==="tool_results"))==null?void 0:o.tokens)??0,_=((s=r.entry.composition.find(C=>C.category==="tool_results"))==null?void 0:s.tokens)??0;_-w>=u&&i.push({type:"tool-jump",label:"Tool jump",detail:`tool results +${we(_-w)}`})}if(r.isMain){const a=_m(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 xm(e){return e.type==="compaction"?"C":e.type==="cache-shift"?e.label==="Cache warmed"?"▲":"▽":e.type==="subagent-burst"?"S":"T"}function km(e,t){if(e.length===1){const u=e[0];return`<span class="tip-label">Turn ${t}: ${u.label}</span><span class="tip-detail">${u.detail}</span>`}const n=e.map(u=>`<span class="tip-label">${u.label}</span><span class="tip-detail">${u.detail}</span>`).join("");return`<span class="tip-label">Turn ${t}</span>${n}`}function Fc(e,t){const n=t.findIndex(T=>T.entry.id===e.id);if(n<0)return null;const u=e.agentKey||"_default";let o=null;for(let T=n-1;T>=0;T--){const oe=t[T].entry;if((oe.agentKey||"_default")===u){o=oe;break}}if(!o)return null;const s=o.composition||[],r=e.composition||[],i=o.contextInfo.totalTokens,a=e.contextInfo.totalTokens-i,c=new Set;for(const T of s)c.add(T.category);for(const T of r)c.add(T.category);const d=[];for(const T of c){const oe=s.find(ce=>ce.category===T),ue=r.find(ce=>ce.category===T),J=oe?oe.tokens:0,ee=ue?ue.tokens:0,ve=ee-J,q=ut[T]||{label:T};d.push({category:T,label:q.label,delta:ve,prevTokens:J,currTokens:ee})}const m=[];for(const T of[...d].sort((oe,ue)=>Math.abs(ue.delta)-Math.abs(oe.delta)))T.delta===0?m.push({type:"same",text:` ${T.label}: ${we(T.currTokens)} (unchanged)`,category:T.category,delta:T.delta}):T.prevTokens===0?m.push({type:"add",text:`+ ${T.label}: ${we(T.currTokens)} (new)`,category:T.category,delta:T.delta}):T.currTokens===0?m.push({type:"remove",text:`- ${T.label}: ${we(T.prevTokens)} (removed)`,category:T.category,delta:T.delta}):T.delta>0?m.push({type:"add",text:`+ ${T.label}: ${we(T.prevTokens)} → ${we(T.currTokens)} (+${we(T.delta)})`,category:T.category,delta:T.delta}):m.push({type:"remove",text:`- ${T.label}: ${we(T.prevTokens)} → ${we(T.currTokens)} (${we(T.delta)})`,category:T.category,delta:T.delta});const g=new Map;for(const[T,oe]of Object.entries(cu))for(const ue of oe)g.set(ue,T);const b=new Map,w=new Map;for(const T of d){const oe=g.get(T.category)??"other";b.set(oe,(b.get(oe)??0)+T.delta);const ue=w.get(oe);(!ue||Math.abs(T.delta)>ue.absDelta)&&w.set(oe,{category:T.category,absDelta:Math.abs(T.delta)})}const _=Array.from(b.entries()).map(([T,oe])=>{var ue,J;return{group:T,label:((ue=wt[T])==null?void 0:ue.label)??T,delta:oe,category:((J=w.get(T))==null?void 0:J.category)??""}}).filter(T=>T.delta!==0).sort((T,oe)=>Math.abs(oe.delta)-Math.abs(T.delta)),C=_.filter(T=>T.delta>0).slice(0,3),M=_.filter(T=>T.delta<0).slice(0,3);let I=0,$=0,R=0;for(const T of t)(T.entry.agentKey||"_default")===u&&R++,T.entry.id===o.id&&(I=R),T.entry.id===e.id&&($=R);return{prevTurnNum:I,currTurnNum:$,delta:a,lines:m,topIncreases:C,topDecreases:M}}function sl(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 As(e,t,n=3){return t===0?n:Math.max(n,Math.round(e/t*100))}function Fs(e,t=4){if(e===0)return[0];const n=e/t,u=Math.pow(10,Math.floor(Math.log10(n))),o=Math.ceil(n/u)*u,s=[];for(let r=0;r<=t;r++){const i=r*o;i<=e*1.1&&s.push(i)}return s}function wm(e){return e>30?Math.ceil(e/15):1}function Cm(e){let t=0;return e.map(n=>(n.isMain&&t++,n.isMain?t:0))}function $m(e,t){return`${t?"":"Sub "}${bn(e.contextInfo.model)}: ${we(e.contextInfo.totalTokens)} / ${Et(e.costUsd)}`}function Em(e,t){const n=Or(e),u=e.contextInfo.totalTokens,o=n.map(s=>`${s.key===t.key?"▸ ":" "}${s.label}: ${we(s.tokens)} (${s.pct.toFixed(1)}%)`);return o.push(` Total: ${we(u)}`),o.join(`
|
|
25
|
-
`)}function rl(e,t){return t==="cost"?Et(e):we(e)}function rr(e){if(!e.usage)return null;const t=ir(e);return t===0?null:e.usage.cacheReadTokens/t}function ir(e){return e.usage?e.usage.inputTokens+e.usage.cacheReadTokens+e.usage.cacheWriteTokens:0}function Mc(e){const t={turnsRemaining:null,growthPerTurn:0,sinceCompaction:0,contextLimit:0,currentTokens:0};if(e.length===0)return t;const n=e.filter(w=>w.isMain).map(w=>w.entry);if(n.length<2)return t;const o=n[n.length-1].contextLimit;if(o<=0)return t;let s=0;for(let w=1;w<n.length;w++){const _=n[w-1].contextInfo.totalTokens,C=n[w].contextInfo.totalTokens;_>0&&C<_*.75&&(s=w)}const r=n.slice(s);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,d=a/c,m=l,g=o-m;let b=null;return d>0&&(b=Math.floor(g/d),b<0&&(b=0)),{turnsRemaining:b,growthPerTurn:d,sinceCompaction:r.length,contextLimit:o,currentTokens:m}}function Sm(e){var l,a;const t=Math.round(e.utilization*100),n=e.healthScore,u=[...e.composition].sort((c,d)=>d.tokens-c.tokens)[0],o=e.topDelta;let s="narrative-neutral",r=`Context is at ${t}% utilization.`;(n==null?void 0:n.rating)==="poor"||t>=85?(s="narrative-advisory",r=`Turn health is elevated risk (${n?n.overall+"/100":t+"% utilization"}).`):(n==null?void 0:n.rating)==="needs-work"||t>=65?(s="narrative-advisory",r=`Turn health shows moderate pressure (${n?n.overall+"/100":t+"% utilization"}).`):n&&(r=`Turn health is stable at ${n.overall}/100.`);const i=[];if(u&&i.push(`${((l=ut[u.category])==null?void 0:l.label)??u.category} is the largest share (${Math.round(u.pct)}%).`),o){const c=((a=ut[o.category])==null?void 0:a.label)??o.category,d=o.delta>0?"grew":"shrank";i.push(`${c} ${d} most vs previous main turn (${we(Math.abs(o.delta))}).`)}return{toneClass:s,headline:r,detail:i.join(" ")}}const Tm={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 Dm(e){const t=Tm[e.name];if(!t)return null;const n=e.input;if(!n||typeof n!="object")return null;for(const u of t.paramKeys){const o=n[u];if(typeof o=="string"&&o.length>0)return{path:Am(o),kind:t.kind}}return null}function Am(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 Ic(e,t){if(!t)return e;const n=t.endsWith("/")?t:t+"/";if(e.startsWith(n))return e.slice(n.length);const u=Fm(e);return u?"~/"+e.slice(u.length):e}function Fm(e){const t=e.match(/^(\/(?:home|Users)\/[^/]+\/)/);return t?t[1]:null}function Mm(e,t){const n=new Map;for(const u of e){if(!u.contentBlocks)continue;const s=u.contentBlocks.filter(r=>r.type==="tool_use").length>0?(u.tokens||0)/u.contentBlocks.length:0;for(const r of u.contentBlocks){if(r.type!=="tool_use")continue;const i=r,l=Dm(i);if(l&&i.id){const a=Ic(l.path,t);n.set(i.id,{path:a,kind:l.kind,tokens:Math.round(s)})}}}return n}function Pc(e,t){const n=new Set,u=new Map;function o(s){let r=u.get(s);return r||(r={path:s,tokens:0,reads:0,writes:0,toolResultTokens:0,toolCallTokens:0},u.set(s,r)),r}for(const s of e){const r=s.contextInfo.messages??[];if(r.length===0)continue;const i=Mm(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(d=>d.type==="tool_result");if(a.length===0)continue;const c=a.length>0?(l.tokens||0)/a.length:0;for(const d of a){if(d.type!=="tool_result")continue;const m=d.tool_use_id,g=i.get(m);if(!g||!n.has(m))continue;const b=o(g.path),w=Math.round(c);b.toolResultTokens+=w,b.tokens+=w}}}return Array.from(u.values()).filter(s=>s.tokens>0).sort((s,r)=>r.tokens-s.tokens)}function zr(e){const t=e.split("/");return t[t.length-1]||e}function il(e){const t=e.lastIndexOf("/");return t<=0?"":e.slice(0,t)}const ll=["#3b82f6","#8b5cf6","#06b6d4","#10b981","#f59e0b","#ef4444","#ec4899","#14b8a6","#6366f1","#84cc16"];function lr(e){return ll[e%ll.length]}function Im(e){var t=0,n=e.children,u=n&&n.length;if(!u)t=1;else for(;--u>=0;)t+=n[u].value;e.value=t}function Pm(){return this.eachAfter(Im)}function Lm(e,t){let n=-1;for(const u of this)e.call(t,u,++n,this);return this}function Rm(e,t){for(var n=this,u=[n],o,s,r=-1;n=u.pop();)if(e.call(t,n,++r,this),o=n.children)for(s=o.length-1;s>=0;--s)u.push(o[s]);return this}function Om(e,t){for(var n=this,u=[n],o=[],s,r,i,l=-1;n=u.pop();)if(o.push(n),s=n.children)for(r=0,i=s.length;r<i;++r)u.push(s[r]);for(;n=o.pop();)e.call(t,n,++l,this);return this}function zm(e,t){let n=-1;for(const u of this)if(e.call(t,u,++n,this))return u}function Bm(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,u=t.children,o=u&&u.length;--o>=0;)n+=u[o].value;t.value=n})}function Nm(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Hm(e){for(var t=this,n=jm(t,e),u=[t];t!==n;)t=t.parent,u.push(t);for(var o=u.length;e!==n;)u.splice(o,0,e),e=e.parent;return u}function jm(e,t){if(e===t)return e;var n=e.ancestors(),u=t.ancestors(),o=null;for(e=n.pop(),t=u.pop();e===t;)o=e,e=n.pop(),t=u.pop();return o}function qm(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Vm(){return Array.from(this)}function Um(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Wm(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*Km(){var e=this,t,n=[e],u,o,s;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,u=e.children)for(o=0,s=u.length;o<s;++o)n.push(u[o]);while(n.length)}function Br(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Jm)):t===void 0&&(t=Zm);for(var n=new Ro(e),u,o=[n],s,r,i,l;u=o.pop();)if((r=t(u.data))&&(l=(r=Array.from(r)).length))for(u.children=r,i=l-1;i>=0;--i)o.push(s=r[i]=new Ro(r[i])),s.parent=u,s.depth=u.depth+1;return n.eachBefore(Xm)}function Gm(){return Br(this).eachBefore(Ym)}function Zm(e){return e.children}function Jm(e){return Array.isArray(e)?e[1]:null}function Ym(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Xm(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Ro(e){this.data=e,this.depth=this.height=0,this.parent=null}Ro.prototype=Br.prototype={constructor:Ro,count:Pm,each:Lm,eachAfter:Om,eachBefore:Rm,find:zm,sum:Bm,sort:Nm,path:Hm,ancestors:qm,descendants:Vm,leaves:Um,links:Wm,copy:Gm,[Symbol.iterator]:Km};function Qm(e){if(typeof e!="function")throw new Error;return e}function yu(){return 0}function xu(e){return function(){return e}}function eg(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 tg(e,t,n,u,o){for(var s=e.children,r,i=-1,l=s.length,a=e.value&&(u-t)/e.value;++i<l;)r=s[i],r.y0=n,r.y1=o,r.x0=t,r.x1=t+=r.value*a}function ng(e,t,n,u,o){for(var s=e.children,r,i=-1,l=s.length,a=e.value&&(o-n)/e.value;++i<l;)r=s[i],r.x0=t,r.x1=u,r.y0=n,r.y1=n+=r.value*a}var ug=(1+Math.sqrt(5))/2;function og(e,t,n,u,o,s){for(var r=[],i=t.children,l,a,c=0,d=0,m=i.length,g,b,w=t.value,_,C,M,I,$,R,T;c<m;){g=o-n,b=s-u;do _=i[d++].value;while(!_&&d<m);for(C=M=_,R=Math.max(b/g,g/b)/(w*e),T=_*_*R,$=Math.max(M/T,T/C);d<m;++d){if(_+=a=i[d].value,a<C&&(C=a),a>M&&(M=a),T=_*_*R,I=Math.max(M/T,T/C),I>$){_-=a;break}$=I}r.push(l={value:_,dice:g<b,children:i.slice(c,d)}),l.dice?tg(l,n,u,o,w?u+=b*_/w:s):ng(l,n,u,w?n+=g*_/w:o,s),w-=_,c=d}return r}const sg=(function e(t){function n(u,o,s,r,i){og(t,u,o,s,r,i)}return n.ratio=function(u){return e((u=+u)>1?u:1)},n})(ug);function rg(){var e=sg,t=!1,n=1,u=1,o=[0],s=yu,r=yu,i=yu,l=yu,a=yu;function c(m){return m.x0=m.y0=0,m.x1=n,m.y1=u,m.eachBefore(d),o=[0],t&&m.eachBefore(eg),m}function d(m){var g=o[m.depth],b=m.x0+g,w=m.y0+g,_=m.x1-g,C=m.y1-g;_<b&&(b=_=(b+_)/2),C<w&&(w=C=(w+C)/2),m.x0=b,m.y0=w,m.x1=_,m.y1=C,m.children&&(g=o[m.depth+1]=s(m)/2,b+=a(m)-g,w+=r(m)-g,_-=i(m)-g,C-=l(m)-g,_<b&&(b=_=(b+_)/2),C<w&&(w=C=(w+C)/2),e(m,b,w,_,C))}return c.round=function(m){return arguments.length?(t=!!m,c):t},c.size=function(m){return arguments.length?(n=+m[0],u=+m[1],c):[n,u]},c.tile=function(m){return arguments.length?(e=Qm(m),c):e},c.padding=function(m){return arguments.length?c.paddingInner(m).paddingOuter(m):c.paddingInner()},c.paddingInner=function(m){return arguments.length?(s=typeof m=="function"?m:xu(+m),c):s},c.paddingOuter=function(m){return arguments.length?c.paddingTop(m).paddingRight(m).paddingBottom(m).paddingLeft(m):c.paddingTop()},c.paddingTop=function(m){return arguments.length?(r=typeof m=="function"?m:xu(+m),c):r},c.paddingRight=function(m){return arguments.length?(i=typeof m=="function"?m:xu(+m),c):i},c.paddingBottom=function(m){return arguments.length?(l=typeof m=="function"?m:xu(+m),c):l},c.paddingLeft=function(m){return arguments.length?(a=typeof m=="function"?m:xu(+m),c):a},c}const ig={key:0,class:"panel panel--hero"},lg={class:"panel-head"},ag={class:"panel-sub"},cg={class:"mode-toggle"},fg={class:"panel-body"},dg={key:0,class:"treemap"},pg=["onClick"],hg={class:"tm-label"},mg={class:"tm-val"},gg={key:1,class:"tm-label-compact"},vg={key:2,class:"tm-pct"},bg={key:1,class:"treemap treemap-simple"},_g=["onClick"],yg={class:"tm-label"},xg={class:"tm-val"},kg={key:2,class:"treemap"},wg=["onClick"],Cg={class:"tm-label"},$g={class:"tm-val"},Eg={key:1,class:"tm-label-compact"},Sg={key:2,class:"tm-pct"},Tg={class:"legend"},Dg={class:"legend-pct"},Ag={key:0,class:"legend-item"},Fg={class:"legend-file-path"},Mg={class:"legend-pct"},Ig={key:0,class:"legend-item"},Pg={class:"legend-pct"},al=5,cl=6,Lg=tt({__name:"CompositionTreemap",props:{entry:{},turnNum:{}},emits:["categoryClick","toolClick","fileClick"],setup(e,{emit:t}){const n=e,u=Tt(),o=t,s=me("detailed"),r=me(null),i=L(()=>{var te;const q=((te=n.entry)==null?void 0:te.composition)||[],ce=[];for(const[E,X]of Object.entries(cu)){let ie=0;for(const W of X){const fe=q.find(ye=>ye.category===W);fe&&(ie+=fe.tokens)}if(ie>0){const W=wt[E];ce.push({key:E,label:W.label,color:W.color,tokens:ie})}}return ce}),l=L(()=>{const q=n.entry;return q?q.composition.filter(ce=>ce.tokens>0).map(ce=>{var te,E;return{key:ce.category,label:((te=ut[ce.category])==null?void 0:te.label)??ce.category,color:((E=ut[ce.category])==null?void 0:E.color)??"#4b5563",tokens:ce.tokens,category:ce.category}}):[]});function a(q){const ce=["#10b981","#34d399","#14b8a6","#2dd4bf","#10b981","#06b6d4","#0ea5e9"];return ce[q%ce.length]}const c=L(()=>{const q=n.entry;if(!q)return[];const ce=q.contextInfo.messages||[],te=rs(ce),E=new Map;for(const X of ce){if(Ot(X)!=="tool_results")continue;const ie=(X.contentBlocks||[]).filter(fe=>fe.type==="tool_result");if(ie.length===0)continue;const W=(X.tokens||0)/ie.length;for(const fe of ie){const ye=fe.tool_use_id||"unknown",j=te[ye]||`tool:${ye.slice(0,8)}`;E.set(j,(E.get(j)||0)+W)}}return Array.from(E.entries()).sort((X,ie)=>ie[1]-X[1]).map(([X,ie],W)=>({key:`tool-${X}-${W}`,label:X,color:a(W),tokens:Math.max(1,Math.round(ie)),category:"tool_results",toolName:X}))}),d=L(()=>r.value==="tool_results"&&c.value.length>0?c.value:l.value),m=L(()=>{const q=u.selectedSession;if(!q||q.entries.length===0)return[];const ce=q.workingDirectory;return Pc(q.entries,ce).map((E,X)=>({key:`file-${E.path}-${X}`,label:zr(E.path),color:lr(X),tokens:E.tokens,category:"files",toolName:E.path}))}),g=L(()=>$(m.value)),b=L(()=>m.value.length>0),w=L(()=>d.value.slice(0,al)),_=L(()=>d.value.slice(al)),C=L(()=>_.value.map(q=>`${q.label}: ${ve(q.tokens)}`).join(`
|
|
26
|
-
`)),M=L(()=>m.value.slice(0,cl)),I=L(()=>m.value.slice(cl).map(q=>`${q.toolName||q.label}: ${ve(q.tokens)}`).join(`
|
|
27
|
-
`));function $(q){if(q.length===0)return[];const ce=q.reduce((X,ie)=>X+ie.tokens,0),te=Br({key:"root",label:"root",color:"#000000",tokens:0,children:q}).sum(X=>X.children&&X.children.length>0?0:Math.max(0,X.tokens||0));return rg().size([100,100]).paddingInner(1).round(!0)(te).leaves().map(X=>{const ie=X.data;return{key:ie.key,label:ie.label,color:ie.color,tokens:ie.tokens,category:ie.category,x:X.x0,y:X.y0,w:X.x1-X.x0,h:X.y1-X.y0,pct:ce>0?ie.tokens/ce*100:0}})}const R=L(()=>$(d.value));function T(q){if(r.value===null&&q.category==="tool_results"&&c.value.length>1){r.value="tool_results";return}if(r.value==="tool_results"&&q.toolName){o("toolClick",q.toolName);return}o("categoryClick",q.category||"tool_results")}function oe(q){const ce=n.entry;if(!ce)return;const te=cu[q]||[];if(te.length===0)return;let E=te[0],X=-1;for(const ie of te){const W=ce.composition.find(ye=>ye.category===ie),fe=(W==null?void 0:W.tokens)??0;fe>X&&(X=fe,E=ie)}o("categoryClick",E)}function ue(q){q.toolName&&o("fileClick",q.toolName)}function J(){r.value=null}const ee=L(()=>{var q;return((q=n.entry)==null?void 0:q.contextInfo.totalTokens)??0});function ve(q){return ee.value===0?"":Math.round(q/ee.value*100)+"%"}return Ze(()=>{var q;return(q=n.entry)==null?void 0:q.id},()=>{r.value=null}),(q,ce)=>{const te=zn("tooltip");return e.entry.composition.length>0?(x(),k("section",ig,[p("div",lg,[ce[3]||(ce[3]=p("span",{class:"panel-title"},"Composition",-1)),p("span",ag,"Turn "+F(e.turnNum)+" · "+F(G(we)(e.entry.composition.reduce((E,X)=>E+X.tokens,0))),1),s.value==="detailed"&&r.value?(x(),k("button",{key:0,class:"treemap-back",onClick:J}," Back to categories ")):ae("",!0),p("div",cg,[p("button",{class:de({on:s.value==="detailed"}),onClick:ce[0]||(ce[0]=E=>s.value="detailed")},"Detail",2),p("button",{class:de({on:s.value==="simple"}),onClick:ce[1]||(ce[1]=E=>s.value="simple")},"Simple",2),b.value?(x(),k("button",{key:0,class:de({on:s.value==="files"}),onClick:ce[2]||(ce[2]=E=>s.value="files")},"Files",2)):ae("",!0)])]),p("div",fg,[s.value==="detailed"?(x(),k("div",dg,[(x(!0),k(he,null,Se(R.value,E=>qe((x(),k("button",{key:E.key,class:"tm-block tm-block-2d",style:Ae({left:E.x+"%",top:E.y+"%",width:E.w+"%",height:E.h+"%",background:E.color}),onClick:X=>T(E)},[E.w>=18&&E.h>=16?(x(),k(he,{key:0},[p("span",hg,F(E.label),1),p("span",mg,F(G(we)(E.tokens)),1)],64)):E.w>=12&&E.h>=12?(x(),k("span",gg,F(E.label.slice(0,8))+F(E.label.length>8?"…":""),1)):E.w>=8&&E.h>=8?(x(),k("span",vg,F(Math.round(E.pct))+"%",1)):ae("",!0)],12,pg)),[[te,`${E.label}: ${E.tokens.toLocaleString()} (${E.pct.toFixed(1)}%)`]])),128))])):s.value==="simple"?(x(),k("div",bg,[(x(!0),k(he,null,Se(i.value,E=>qe((x(),k("div",{key:E.key,class:de(["tm-block tm-block-simple",{"tm-block-narrow":E.tokens/e.entry.composition.reduce((X,ie)=>X+ie.tokens,0)<.15}]),style:Ae({flex:E.tokens,background:E.color}),onClick:X=>oe(E.key)},[p("span",yg,F(E.label),1),p("span",xg,F(G(we)(E.tokens)),1)],14,_g)),[[te,`${E.label}: ${E.tokens.toLocaleString()}`]])),128))])):s.value==="files"?(x(),k("div",kg,[(x(!0),k(he,null,Se(g.value,E=>qe((x(),k("button",{key:E.key,class:"tm-block tm-block-2d",style:Ae({left:E.x+"%",top:E.y+"%",width:E.w+"%",height:E.h+"%",background:E.color}),onClick:X=>ue(E)},[E.w>=18&&E.h>=16?(x(),k(he,{key:0},[p("span",Cg,F(E.label),1),p("span",$g,F(G(we)(E.tokens)),1)],64)):E.w>=12&&E.h>=12?(x(),k("span",Eg,F(E.label.slice(0,8))+F(E.label.length>8?"…":""),1)):E.w>=8&&E.h>=8?(x(),k("span",Sg,F(Math.round(E.pct))+"%",1)):ae("",!0)],12,wg)),[[te,`${E.toolName||E.label}: ${E.tokens.toLocaleString()} (${E.pct.toFixed(1)}%)`]])),128))])):ae("",!0),p("div",Tg,[s.value==="detailed"?(x(),k(he,{key:0},[(x(!0),k(he,null,Se(w.value,E=>(x(),k("span",{key:`legend-${E.key}`,class:"legend-item"},[p("span",{class:"legend-dot",style:Ae({background:E.color})},null,4),$e(" "+F(E.label)+" ",1),p("span",Dg,F(ve(E.tokens)),1)]))),128)),d.value.length>w.value.length?qe((x(),k("span",Ag,[$e(" +"+F(d.value.length-w.value.length)+" more ",1)])),[[te,C.value]]):ae("",!0)],64)):s.value==="files"?(x(),k(he,{key:1},[(x(!0),k(he,null,Se(M.value,E=>(x(),k("span",{key:`legend-file-${E.key}`,class:"legend-item"},[p("span",{class:"legend-dot",style:Ae({background:E.color})},null,4),qe((x(),k("span",Fg,[$e(F(E.label),1)])),[[te,E.toolName||E.label]]),p("span",Mg,F(ve(E.tokens)),1)]))),128)),m.value.length>M.value.length?qe((x(),k("span",Ig,[$e(" +"+F(m.value.length-M.value.length)+" more ",1)])),[[te,I.value]]):ae("",!0)],64)):(x(!0),k(he,{key:2},Se(i.value,E=>(x(),k("span",{key:E.key,class:"legend-item"},[p("span",{class:"legend-dot",style:Ae({background:E.color})},null,4),$e(" "+F(E.label)+" ",1),p("span",Pg,F(ve(E.tokens)),1)]))),128))])])])):ae("",!0)}}}),Rg=at(Lg,[["__scopeId","data-v-ac46df9b"]]),Og={key:0,class:"panel panel--secondary"},zg={class:"panel-head"},Bg={class:"panel-sub"},Ng={class:"panel-body diff-body"},Hg={key:0,class:"diff-tapes"},jg={class:"diff-tape-row"},qg={class:"diff-tape-label"},Vg={class:"diff-tape-track"},Ug={class:"diff-tape-val"},Wg={class:"diff-tape-row"},Kg={class:"diff-tape-label"},Gg={class:"diff-tape-track"},Zg={class:"diff-tape-val"},Jg={key:1,class:"diff-summary-row"},Yg={key:0,class:"diff-summary-group"},Xg={class:"diff-summary-label"},Qg=["onClick"],e2=["onClick"],t2={key:0,class:"diff-summary-group"},n2={class:"diff-summary-label"},u2=["onClick"],o2={key:1,class:"diff-summary-group"},s2={class:"diff-summary-label"},r2=["onClick"],i2={key:2,class:"diff-hidden-wrap"},l2={class:"diff-hidden-note"},a2=["onClick"],c2={key:1,class:"diff-empty"},f2=2e3,d2=tt({__name:"ContextDiffPanel",props:{diffData:{},currentEntry:{default:null},previousEntry:{default:null},showTapes:{type:Boolean,default:!1},hideUnchanged:{type:Boolean,default:!1},summaryMode:{default:"split"},combinedLabel:{default:"Drivers"},growthLabel:{default:"Growth drivers"},shrinkLabel:{default:"Shrink drivers"},deltaTone:{default:"good"},showWhenEmpty:{type:Boolean,default:!1},emptyText:{default:"First turn — no previous context."}},emits:["categoryClick"],setup(e,{emit:t}){const n=e,u=t,o=L(()=>!!n.diffData||n.showWhenEmpty),s=L(()=>{const g=n.diffData;return g?n.hideUnchanged?g.lines.filter(b=>b.type!=="same"):g.lines:[]}),r=L(()=>{const g=n.diffData,b=n.currentEntry;if(!g||!b)return[];const w=new Map(b.composition.map(_=>[_.category,_.tokens]));return g.lines.filter(_=>_.type==="same").map(_=>{var C;return{category:_.category,label:((C=ut[_.category])==null?void 0:C.label)??_.category,tokens:w.get(_.category)??0}}).sort((_,C)=>C.tokens-_.tokens)}),i=L(()=>r.value.length===0?"":r.value.map(g=>`${g.label}: ${we(g.tokens)}`).join(`
|
|
28
|
-
`)),l=L(()=>{const g=n.diffData;if(!g)return"var(--text-dim)";const b=g.delta>=0;return n.deltaTone==="bad"?b?"var(--accent-red)":"var(--accent-green)":b?"var(--accent-green)":"var(--accent-red)"});function a(g){return Math.abs(g)>=f2}function c(g,b){return a(g)?b==="up"?"diff-tone-up":"diff-tone-down":"diff-tone-muted"}function d(g){return g.type==="same"?"diff-tone-muted":g.type==="add"?c(g.delta,"up"):c(g.delta,"down")}function m(g){u("categoryClick",g)}return(g,b)=>{const w=zn("tooltip");return o.value?(x(),k("section",Og,[p("div",zg,[b[0]||(b[0]=p("span",{class:"panel-title"},"Context Diff",-1)),e.diffData?(x(),k(he,{key:0},[p("span",Bg,"Turn "+F(e.diffData.prevTurnNum)+" → "+F(e.diffData.currTurnNum),1),p("span",{class:"diff-delta",style:Ae({color:l.value})},F(e.diffData.delta>=0?"+":"")+F(G(we)(e.diffData.delta)),5)],64)):ae("",!0)]),p("div",Ng,[e.diffData?(x(),k(he,{key:0},[e.showTapes&&e.currentEntry&&e.previousEntry?(x(),k("div",Hg,[p("div",jg,[p("span",qg,"T"+F(e.diffData.prevTurnNum),1),p("div",Vg,[(x(!0),k(he,null,Se(e.previousEntry.composition,_=>{var C;return x(),k("div",{key:"prev-"+_.category,class:"diff-tape-seg",style:Ae({flex:_.tokens,background:((C=G(ut)[_.category])==null?void 0:C.color)??"#475569"})},null,4)}),128))]),p("span",Ug,F(G(we)(e.previousEntry.contextInfo.totalTokens)),1)]),p("div",Wg,[p("span",Kg,"T"+F(e.diffData.currTurnNum),1),p("div",Gg,[(x(!0),k(he,null,Se(e.currentEntry.composition,_=>{var C;return x(),k("div",{key:"curr-"+_.category,class:"diff-tape-seg",style:Ae({flex:_.tokens,background:((C=G(ut)[_.category])==null?void 0:C.color)??"#475569"})},null,4)}),128))]),p("span",Zg,F(G(we)(e.currentEntry.contextInfo.totalTokens)),1)])])):ae("",!0),e.diffData.topIncreases.length>0||e.diffData.topDecreases.length>0?(x(),k("div",Jg,[e.summaryMode==="combined"?(x(),k("div",Yg,[p("span",Xg,F(e.combinedLabel),1),(x(!0),k(he,null,Se(e.diffData.topIncreases,_=>(x(),k("button",{key:"inc-"+_.group,class:de(["diff-summary-chip",c(_.delta,"up")]),onClick:C=>m(_.category)},F(_.label)+" +"+F(G(we)(_.delta)),11,Qg))),128)),(x(!0),k(he,null,Se(e.diffData.topDecreases,_=>(x(),k("button",{key:"dec-"+_.group,class:de(["diff-summary-chip",c(_.delta,"down")]),onClick:C=>m(_.category)},F(_.label)+" "+F(G(we)(_.delta)),11,e2))),128))])):(x(),k(he,{key:1},[e.diffData.topIncreases.length>0?(x(),k("div",t2,[p("span",n2,F(e.growthLabel),1),(x(!0),k(he,null,Se(e.diffData.topIncreases,_=>(x(),k("button",{key:"inc-"+_.group,class:de(["diff-summary-chip",c(_.delta,"up")]),onClick:C=>m(_.category)},F(_.label)+" +"+F(G(we)(_.delta)),11,u2))),128))])):ae("",!0),e.diffData.topDecreases.length>0?(x(),k("div",o2,[p("span",s2,F(e.shrinkLabel),1),(x(!0),k(he,null,Se(e.diffData.topDecreases,_=>(x(),k("button",{key:"dec-"+_.group,class:de(["diff-summary-chip",c(_.delta,"down")]),onClick:C=>m(_.category)},F(_.label)+" "+F(G(we)(_.delta)),11,r2))),128))])):ae("",!0)],64))])):ae("",!0),e.hideUnchanged&&r.value.length>0?(x(),k("div",i2,[qe((x(),k("span",l2,[$e(F(r.value.length)+" unchanged "+F(r.value.length===1?"category":"categories")+" hidden ",1)])),[[w,i.value]])])):ae("",!0),(x(!0),k(he,null,Se(s.value,(_,C)=>(x(),k("button",{key:"line-"+C,class:de(["diff-line",["diff-"+_.type,d(_)]]),onClick:M=>m(_.category)},F(_.text),11,a2))),128))],64)):(x(),k("span",c2,F(e.emptyText),1))])])):ae("",!0)}}}),Lc=at(d2,[["__scopeId","data-v-f23cde3c"]]),p2={key:0,class:"panel panel--primary"},h2={class:"panel-head"},m2={key:0,class:"finding-count"},g2={key:0,class:"audit-row"},v2=["onClick"],b2={class:"rec-content"},_2={class:"rec-title"},y2={class:"rec-detail"},x2=tt({__name:"HealthFindings",props:{entry:{},recommendations:{},auditTooltip:{type:Function}},emits:["recommendationClick"],setup(e,{emit:t}){const n=t;function u(o){o.messageIndex!=null&&n("recommendationClick",o)}return(o,s)=>{const r=zn("tooltip");return e.entry.healthScore||e.recommendations.length>0?(x(),k("section",p2,[p("div",h2,[s[0]||(s[0]=p("span",{class:"panel-title"},"Findings",-1)),e.recommendations.length?(x(),k("span",m2,F(e.recommendations.length),1)):ae("",!0)]),e.entry.healthScore?(x(),k("div",g2,[(x(!0),k(he,null,Se(e.entry.healthScore.audits,i=>qe((x(),k("span",{key:i.id,class:de(["audit-chip",i.score>=90?"audit-good":i.score>=50?"audit-warn":"audit-bad"])},[$e(F(i.name)+" ",1),p("b",null,F(i.score),1)],2)),[[r,e.auditTooltip(i)]])),128))])):ae("",!0),e.recommendations.length>0?(x(),k("div",{key:1,class:de(["panel-body rec-list",{"rec-list--scroll":e.recommendations.length>3}])},[(x(!0),k(he,null,Se(e.recommendations,(i,l)=>(x(),k("div",{key:l,class:de(["rec",{"rec-clickable":i.messageIndex!=null}]),onClick:a=>i.messageIndex!=null&&u(i)},[p("i",{class:de(["rec-icon",[`sev-${i.severity}`,i.severity==="high"?"i-carbon-warning-alt":i.severity==="med"?"i-carbon-information":"i-carbon-checkmark"]])},null,2),p("div",b2,[p("div",_2,F(i.title),1),p("div",y2,F(i.detail),1)]),p("span",{class:de(["rec-impact",`sev-${i.severity}`])},F(i.impact),3)],10,v2))),128))],2)):ae("",!0)])):ae("",!0)}}}),k2=at(x2,[["__scopeId","data-v-f1490cbd"]]),w2={key:0,class:"overview"},C2={class:"narrative-copy"},$2={class:"narrative-title"},E2={class:"narrative-detail"},S2={class:"narrative-actions"},T2={class:"stats-grid"},D2={class:"stat-detail"},A2={key:0,class:"stat-projection"},F2={key:1,class:"stat-projection stat-projection--warn"},M2={key:2,class:"stat-tape"},I2={key:3,class:"util-track"},P2={class:"stat-card"},L2={class:"stat-readout green"},R2={class:"stat-detail"},O2={class:"stat-card"},z2={class:"stat-readout"},B2={key:0,class:"stat-detail"},N2={key:0,class:"stat-card stat-card--health"},H2={class:"health-ring"},j2={width:"48",height:"48",viewBox:"0 0 48 48"},q2=["stroke","stroke-dasharray"],V2=["fill"],U2={key:1,class:"stat-card"},W2={class:"meta-row"},K2={key:0},G2={key:1},Z2={key:2},J2={key:1,class:"panel panel--secondary"},Y2={class:"panel-head"},X2={class:"panel-sub"},Q2={class:"panel-body msg-preview"},ev=["onClick"],tv={class:"msg-group-name"},nv={class:"msg-group-count"},uv={class:"msg-group-tokens"},ov={class:"msg-group-pct"},sv={class:"msg-group-bar"},rv={key:2,class:"panel panel--secondary"},iv={class:"panel-head"},lv={class:"panel-sub"},av={class:"panel-body file-preview"},cv={class:"file-list"},fv=["onClick"],dv={class:"file-path"},pv={class:"file-dir"},hv={class:"file-ops"},mv={key:0,class:"file-op file-op--read"},gv={key:1,class:"file-op file-op--write"},vv={class:"file-tokens"},bv={class:"file-pct"},_v={class:"file-bar"},yv=tt({__name:"OverviewTab",setup(e){const t=Tt(),n=L(()=>t.selectedEntry),u=L(()=>t.selectedSession),o=L(()=>u.value?[...u.value.entries].reverse():[]),s=L(()=>{const A=n.value;return!A||!A.contextLimit?0:A.contextInfo.totalTokens/A.contextLimit}),r=L(()=>{const A=s.value;return A>=.9?"var(--accent-red)":A>=.7?"var(--accent-amber)":"var(--accent-blue)"}),i=L(()=>{const A=n.value;if(!(A!=null&&A.usage))return null;const P=A.usage.inputTokens+A.usage.cacheReadTokens+A.usage.cacheWriteTokens;return P===0?null:A.usage.cacheReadTokens/P}),l=L(()=>hn(o.value)),a=L(()=>Mc(l.value)),c=L(()=>{const A=n.value;if(!A)return 0;const P=l.value,ne=P.findIndex(le=>le.entry.id===A.id);return ne<0?0:P.slice(0,ne+1).reduce((le,S)=>le+(S.isMain?1:0),0)}),d=L(()=>{const A=n.value;if(!A)return[];const P=o.value,ne=l.value;return Ac(A,P,ne)}),m=L(()=>{const A=n.value;if(!A)return null;const P=l.value,ne=P.findIndex(le=>le.entry.id===A.id);if(ne<0)return null;for(let le=ne-1;le>=0;le--)if(P[le].isMain)return P[le].entry;return null}),g=L(()=>{const A=n.value,P=m.value;if(!A||!P)return[];const ne=new Map(P.composition.map(B=>[B.category,B.tokens])),le=new Map(A.composition.map(B=>[B.category,B.tokens])),S=new Set([...ne.keys(),...le.keys()]);return Array.from(S).map(B=>{const Z=ne.get(B)??0,Y=le.get(B)??0;return{category:B,delta:Y-Z}}).filter(B=>B.delta!==0).sort((B,Z)=>Math.abs(Z.delta)-Math.abs(B.delta))}),b=L(()=>{var S;const A=n.value;if(!((S=A==null?void 0:A.composition)!=null&&S.length))return null;const P=A.composition.reduce((B,Z)=>B+Z.tokens,0);if(P===0)return null;const ne={};for(const[B,Z]of Object.entries(cu))for(const Y of Z)ne[Y]=B;const le=new Map;for(const B of A.composition){const Z=ne[B.category]??B.category;le.set(Z,(le.get(Z)||0)+B.tokens)}return[...le.entries()].sort((B,Z)=>Z[1]-B[1]).map(([B,Z])=>{var Y;return{key:B,color:((Y=wt[B])==null?void 0:Y.color)??"#475569",pct:Z/P*100}})}),w=L(()=>{const A=n.value;return!A||l.value.length===0?null:Fc(A,l.value)}),_=L(()=>{var A;return((A=n.value)==null?void 0:A.contextInfo.messages)||[]}),C=L(()=>Dc(_.value)),M=L(()=>C.value.reduce((A,P)=>A+P.tokens,0)),I=L(()=>{var A;return((A=n.value)==null?void 0:A.contextInfo.totalTokens)??0}),$=L(()=>{const A=n.value;return A?Sm({utilization:s.value,healthScore:A.healthScore,composition:A.composition,topDelta:g.value[0]??null}):null});function R(A){t.setInspectorTab(A)}function T(){t.setInspectorTab("messages")}function oe(A,P=!0){T(),t.focusMessageCategory(A,P)}function ue(){T()}function J(A){T(),t.focusMessageTool("tool_results",A)}function ee(A){A.messageIndex!=null&&(T(),t.focusMessageByIndex(A.messageIndex))}function ve(A){if(!(/growth/i.test(A.id)||/growth/i.test(A.name)))return A.description;const ne=A.description||"";if(!/first turn/i.test(ne)||c.value<=1)return ne;const le=n.value,S=m.value;if(!le||!S||!le.contextLimit)return ne;const B=le.contextInfo.totalTokens-S.contextInfo.totalTokens,Z=Math.abs(B),Y=Z/le.contextLimit*100;return`Compared with previous main turn, context ${B>=0?"grew":"shrunk"} by ${we(Z)} (${Y.toFixed(1)}% of limit).`}function q(A){return fh(A)}function ce(A){return dh(A)}function te(A){return I.value>0?Math.round(A/I.value*100):0}function E(A){return I.value>0?`${A/I.value*100}%`:"0%"}const X=L(()=>{const A=u.value;if(!A||A.entries.length===0)return[];const P=A.workingDirectory;return Pc(A.entries,P)}),ie=L(()=>X.value.reduce((A,P)=>A+P.tokens,0));function W(A){return ie.value>0?Math.round(A/ie.value*100):0}function fe(A){return ie.value>0?`${A/ie.value*100}%`:"0%"}function ye(A){T(),t.focusMessageFile(A)}function j(A){ye(A)}return(A,P)=>{var le;const ne=zn("tooltip");return n.value?(x(),k("div",w2,[$.value?(x(),k("section",{key:0,class:de(["health-narrative",$.value.toneClass])},[p("div",C2,[p("div",$2,F($.value.headline),1),p("div",E2,F($.value.detail),1)]),p("div",S2,[p("button",{class:"narrative-action",onClick:P[0]||(P[0]=S=>R("messages"))},[...P[4]||(P[4]=[p("i",{class:"i-carbon-chat"},null,-1),$e(" Review Messages ",-1)])]),p("button",{class:"narrative-action",onClick:P[1]||(P[1]=S=>R("timeline"))},[...P[5]||(P[5]=[p("i",{class:"i-carbon-activity"},null,-1),$e(" View Timeline ",-1)])])])],2)):ae("",!0),p("div",T2,[p("div",{class:"stat-card stat-card--spine",style:Ae({"--spine-color":r.value})},[p("div",{class:"stat-readout",style:Ae({color:r.value})},F(G(or)(s.value)),5),P[7]||(P[7]=p("div",{class:"stat-label"},"Context",-1)),p("div",D2,F(G(we)(n.value.contextInfo.totalTokens))+" / "+F(G(we)(n.value.contextLimit)),1),a.value.turnsRemaining!==null&&a.value.turnsRemaining>0?qe((x(),k("div",A2,[$e(" ~"+F(a.value.turnsRemaining)+" turns left ",1)])),[[ne,`Growing ~${G(we)(Math.round(a.value.growthPerTurn))}/turn over ${a.value.sinceCompaction} turns`]]):a.value.turnsRemaining===0?qe((x(),k("div",F2,[...P[6]||(P[6]=[$e(" At limit ",-1)])])),[[ne,"Context window is at or near the limit"]]):ae("",!0),b.value?(x(),k("div",M2,[(x(!0),k(he,null,Se(b.value,S=>(x(),k("div",{key:S.key,class:"stat-tape-seg",style:Ae({flex:S.pct,background:S.color})},null,4))),128))])):(x(),k("div",I2,[p("div",{class:"util-fill",style:Ae({width:Math.min(s.value*100,100)+"%",background:r.value})},null,4)]))],4),p("div",P2,[p("div",L2,F(G(Et)(n.value.costUsd)),1),P[8]||(P[8]=p("div",{class:"stat-label"},"Turn cost",-1)),p("div",R2,F(G(Et)(((le=u.value)==null?void 0:le.entries.reduce((S,B)=>S+(B.costUsd??0),0))??0))+" session",1)]),p("div",O2,[p("div",z2,F(n.value.usage?G(we)(n.value.usage.outputTokens):"—"),1),P[9]||(P[9]=p("div",{class:"stat-label"},"Output",-1)),n.value.timings?(x(),k("div",B2,F(G(ur)(n.value.timings.total_ms)),1)):ae("",!0)]),n.value.healthScore?(x(),k("div",N2,[p("div",H2,[(x(),k("svg",j2,[P[10]||(P[10]=p("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)),p("circle",{cx:"24",cy:"24",r:"19",fill:"none",stroke:G(sr)(n.value.healthScore.rating),"stroke-width":"3","stroke-dasharray":`${89.5*(n.value.healthScore.overall/100)} ${119.4-89.5*(n.value.healthScore.overall/100)}`,"stroke-linecap":"round",transform:"rotate(135 24 24)",style:{transition:"stroke-dasharray 0.6s ease"}},null,8,q2),p("text",{x:"24",y:"25","text-anchor":"middle","dominant-baseline":"central",fill:G(sr)(n.value.healthScore.rating),"font-family":"var(--font-display)","font-size":"13","font-weight":"700"},F(n.value.healthScore.overall),9,V2)]))]),P[11]||(P[11]=p("div",{class:"stat-label"},"Health",-1))])):(x(),k("div",U2,[...P[12]||(P[12]=[p("div",{class:"stat-readout dim"},"—",-1),p("div",{class:"stat-label"},"Health",-1)])]))]),p("div",W2,[p("span",null,F(n.value.contextInfo.messages.length)+" messages",1),i.value!==null?(x(),k("span",K2," cache "+F(G(or)(i.value))+" hit ("+F(G(we)(n.value.usage.cacheReadTokens))+"r / "+F(G(we)(n.value.usage.cacheWriteTokens))+"w) ",1)):ae("",!0),n.value.stopReason?(x(),k("span",G2,"stop: "+F(n.value.stopReason),1)):ae("",!0),n.value.responseModel&&n.value.responseModel!==n.value.contextInfo.model?(x(),k("span",Z2," model: "+F(n.value.responseModel),1)):ae("",!0)]),Pe(Rg,{entry:n.value,"turn-num":c.value,onCategoryClick:P[2]||(P[2]=S=>oe(S,!1)),onToolClick:J,onFileClick:j},null,8,["entry","turn-num"]),Pe(k2,{entry:n.value,recommendations:d.value,"audit-tooltip":ve,onRecommendationClick:ee},null,8,["entry","recommendations"]),Pe(Lc,{"diff-data":w.value,"current-entry":n.value,"previous-entry":m.value,"show-tapes":!0,"hide-unchanged":!0,"summary-mode":"combined","delta-tone":"bad",onCategoryClick:P[3]||(P[3]=S=>oe(S,!1))},null,8,["diff-data","current-entry","previous-entry"]),C.value.length?(x(),k("section",J2,[p("div",Y2,[P[13]||(P[13]=p("span",{class:"panel-title"},"Messages",-1)),p("span",X2,F(_.value.length)+" messages · "+F(G(we)(M.value)),1)]),p("div",Q2,[(x(!0),k(he,null,Se(C.value,S=>(x(),k("div",{key:S.category,class:"msg-group-row",onClick:B=>oe(S.category,!1)},[p("span",{class:"msg-group-dot",style:Ae({background:ce(S.category)})},null,4),p("span",tv,F(q(S.category)),1),p("span",nv,F(S.items.length),1),p("span",uv,F(G(we)(S.tokens)),1),p("span",ov,F(te(S.tokens))+"%",1),p("div",sv,[p("div",{class:"msg-group-bar-fill",style:Ae({width:E(S.tokens),background:ce(S.category)})},null,4)])],8,ev))),128)),p("button",{class:"msg-view-all",onClick:ue},"View all messages ›")])])):ae("",!0),X.value.length>0?(x(),k("section",rv,[p("div",iv,[P[14]||(P[14]=p("span",{class:"panel-title"},"Files",-1)),p("span",lv,F(X.value.length)+" files · "+F(G(we)(ie.value)),1)]),p("div",av,[p("div",cv,[(x(!0),k(he,null,Se(X.value,(S,B)=>(x(),k("div",{key:S.path,class:"file-row",onClick:Z=>ye(S.path)},[p("span",{class:"file-dot",style:Ae({background:G(lr)(B)})},null,4),qe((x(),k("span",dv,[p("span",pv,F(G(il)(S.path)?G(il)(S.path)+"/":""),1),$e(F(G(zr)(S.path)),1)])),[[ne,S.path]]),p("span",hv,[S.reads>0?qe((x(),k("span",mv,[$e(F(S.reads)+"r",1)])),[[ne,`${S.reads} read${S.reads>1?"s":""}`]]):ae("",!0),S.writes>0?qe((x(),k("span",gv,[$e(F(S.writes)+"w",1)])),[[ne,`${S.writes} write/edit${S.writes>1?"s":""}`]]):ae("",!0)]),p("span",vv,F(G(we)(S.tokens)),1),p("span",bv,F(W(S.tokens))+"%",1),p("div",_v,[p("div",{class:"file-bar-fill",style:Ae({width:fe(S.tokens),background:G(lr)(B)})},null,4)])],8,fv))),128))])])])):ae("",!0)])):ae("",!0)}}}),xv=at(yv,[["__scopeId","data-v-ab5256cd"]]),kv={__name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],setup(e,{emit:t}){const n=t,u=e,o=$f(),s=me([]),r=L(()=>s.value.reduce((S,B)=>(S[~~B.id]=B)&&S,{})),i=L(()=>s.value.length),l=me(null),a=me(!1),c=me({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),d=me({splitter:null,timeoutId:null}),m=L(()=>({[`splitpanes splitpanes--${u.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":c.value.dragging})),g=()=>{document.addEventListener("mousemove",_,{passive:!1}),document.addEventListener("mouseup",C),"ontouchstart"in window&&(document.addEventListener("touchmove",_,{passive:!1}),document.addEventListener("touchend",C))},b=()=>{document.removeEventListener("mousemove",_,{passive:!1}),document.removeEventListener("mouseup",C),"ontouchstart"in window&&(document.removeEventListener("touchmove",_,{passive:!1}),document.removeEventListener("touchend",C))},w=(S,B)=>{const Z=S.target.closest(".splitpanes__splitter");if(Z){const{left:Y,top:O}=Z.getBoundingClientRect(),{clientX:H,clientY:y}="ontouchstart"in window&&S.touches?S.touches[0]:S;c.value.cursorOffset=u.horizontal?y-O:H-Y}g(),c.value.mouseDown=!0,c.value.activeSplitter=B},_=S=>{c.value.mouseDown&&(S.preventDefault(),c.value.dragging=!0,requestAnimationFrame(()=>{oe(R(S)),n("resize",s.value.map(B=>({min:B.min,max:B.max,size:B.size})))}))},C=()=>{c.value.dragging&&n("resized",s.value.map(S=>({min:S.min,max:S.max,size:S.size}))),c.value.mouseDown=!1,setTimeout(()=>{c.value.dragging=!1,b()},100)},M=(S,B)=>{"ontouchstart"in window&&(S.preventDefault(),u.dblClickSplitter&&(d.value.splitter===B?(clearTimeout(d.value.timeoutId),d.value.timeoutId=null,I(S,B),d.value.splitter=null):(d.value.splitter=B,d.value.timeoutId=setTimeout(()=>d.value.splitter=null,500)))),c.value.dragging||n("splitter-click",s.value[B])},I=(S,B)=>{let Z=0;s.value=s.value.map((Y,O)=>(Y.size=O===B?Y.max:Y.min,O!==B&&(Z+=Y.min),Y)),s.value[B].size-=Z,n("pane-maximize",s.value[B]),n("resized",s.value.map(Y=>({min:Y.min,max:Y.max,size:Y.size})))},$=(S,B)=>{n("pane-click",r.value[B])},R=S=>{const B=l.value.getBoundingClientRect(),{clientX:Z,clientY:Y}="ontouchstart"in window&&S.touches?S.touches[0]:S;return{x:Z-(u.horizontal?0:c.value.cursorOffset)-B.left,y:Y-(u.horizontal?c.value.cursorOffset:0)-B.top}},T=S=>{S=S[u.horizontal?"y":"x"];const B=l.value[u.horizontal?"clientHeight":"clientWidth"];return u.rtl&&!u.horizontal&&(S=B-S),S*100/B},oe=S=>{const B=c.value.activeSplitter;let Z={prevPanesSize:J(B),nextPanesSize:ee(B),prevReachedMinPanes:0,nextReachedMinPanes:0};const Y=0+(u.pushOtherPanes?0:Z.prevPanesSize),O=100-(u.pushOtherPanes?0:Z.nextPanesSize),H=Math.max(Math.min(T(S),O),Y);let y=[B,B+1],f=s.value[y[0]]||null,h=s.value[y[1]]||null;const v=f.max<100&&H>=f.max+Z.prevPanesSize,D=h.max<100&&H<=100-(h.max+ee(B+1));if(v||D){v?(f.size=f.max,h.size=Math.max(100-f.max-Z.prevPanesSize-Z.nextPanesSize,0)):(f.size=Math.max(100-h.max-Z.prevPanesSize-ee(B+1),0),h.size=h.max);return}if(u.pushOtherPanes){const z=ue(Z,H);if(!z)return;({sums:Z,panesToResize:y}=z),f=s.value[y[0]]||null,h=s.value[y[1]]||null}f!==null&&(f.size=Math.min(Math.max(H-Z.prevPanesSize-Z.prevReachedMinPanes,f.min),f.max)),h!==null&&(h.size=Math.min(Math.max(100-H-Z.nextPanesSize-Z.nextReachedMinPanes,h.min),h.max))},ue=(S,B)=>{const Z=c.value.activeSplitter,Y=[Z,Z+1];return B<S.prevPanesSize+s.value[Y[0]].min&&(Y[0]=ve(Z).index,S.prevReachedMinPanes=0,Y[0]<Z&&s.value.forEach((O,H)=>{H>Y[0]&&H<=Z&&(O.size=O.min,S.prevReachedMinPanes+=O.min)}),S.prevPanesSize=J(Y[0]),Y[0]===void 0)?(S.prevReachedMinPanes=0,s.value[0].size=s.value[0].min,s.value.forEach((O,H)=>{H>0&&H<=Z&&(O.size=O.min,S.prevReachedMinPanes+=O.min)}),s.value[Y[1]].size=100-S.prevReachedMinPanes-s.value[0].min-S.prevPanesSize-S.nextPanesSize,null):B>100-S.nextPanesSize-s.value[Y[1]].min&&(Y[1]=q(Z).index,S.nextReachedMinPanes=0,Y[1]>Z+1&&s.value.forEach((O,H)=>{H>Z&&H<Y[1]&&(O.size=O.min,S.nextReachedMinPanes+=O.min)}),S.nextPanesSize=ee(Y[1]-1),Y[1]===void 0)?(S.nextReachedMinPanes=0,s.value.forEach((O,H)=>{H<i.value-1&&H>=Z+1&&(O.size=O.min,S.nextReachedMinPanes+=O.min)}),s.value[Y[0]].size=100-S.prevPanesSize-ee(Y[0]-1),null):{sums:S,panesToResize:Y}},J=S=>s.value.reduce((B,Z,Y)=>B+(Y<S?Z.size:0),0),ee=S=>s.value.reduce((B,Z,Y)=>B+(Y>S+1?Z.size:0),0),ve=S=>[...s.value].reverse().find(B=>B.index<S&&B.size>B.min)||{},q=S=>s.value.find(B=>B.index>S+1&&B.size>B.min)||{},ce=()=>{var S;Array.from(((S=l.value)==null?void 0:S.children)||[]).forEach(B=>{const Z=B.classList.contains("splitpanes__pane"),Y=B.classList.contains("splitpanes__splitter");!Z&&!Y&&(B.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},te=(S,B,Z=!1)=>{const Y=S-1,O=document.createElement("div");O.classList.add("splitpanes__splitter"),Z||(O.onmousedown=H=>w(H,Y),typeof window<"u"&&"ontouchstart"in window&&(O.ontouchstart=H=>w(H,Y)),O.onclick=H=>M(H,Y+1)),u.dblClickSplitter&&(O.ondblclick=H=>I(H,Y+1)),B.parentNode.insertBefore(O,B)},E=S=>{S.onmousedown=void 0,S.onclick=void 0,S.ondblclick=void 0,S.remove()},X=()=>{var S;const B=Array.from(((S=l.value)==null?void 0:S.children)||[]);B.forEach(Y=>{Y.className.includes("splitpanes__splitter")&&E(Y)});let Z=0;B.forEach(Y=>{Y.className.includes("splitpanes__pane")&&(!Z&&u.firstSplitter?te(Z,Y,!0):Z&&te(Z,Y),Z++)})},ie=({uid:S,...B})=>{const Z=r.value[S];Object.entries(B).forEach(([Y,O])=>Z[Y]=O)},W=S=>{var B;let Z=-1;Array.from(((B=l.value)==null?void 0:B.children)||[]).some(Y=>(Y.className.includes("splitpanes__pane")&&Z++,Y.isSameNode(S.el))),s.value.splice(Z,0,{...S,index:Z}),s.value.forEach((Y,O)=>Y.index=O),a.value&&Je(()=>{X(),ye({addedPane:s.value[Z]}),n("pane-add",{index:Z,panes:s.value.map(Y=>({min:Y.min,max:Y.max,size:Y.size}))})})},fe=S=>{const B=s.value.findIndex(Y=>Y.id===S),Z=s.value.splice(B,1)[0];s.value.forEach((Y,O)=>Y.index=O),Je(()=>{X(),ye({removedPane:{...Z}}),n("pane-remove",{removed:Z,panes:s.value.map(Y=>({min:Y.min,max:Y.max,size:Y.size}))})})},ye=(S={})=>{!S.addedPane&&!S.removedPane?A():s.value.some(B=>B.givenSize!==null||B.min||B.max<100)?P(S):j(),a.value&&n("resized",s.value.map(B=>({min:B.min,max:B.max,size:B.size})))},j=()=>{const S=100/i.value;let B=0;const Z=[],Y=[];s.value.forEach(O=>{O.size=Math.max(Math.min(S,O.max),O.min),B-=O.size,O.size>=O.max&&Z.push(O.id),O.size<=O.min&&Y.push(O.id)}),B>.1&&ne(B,Z,Y)},A=()=>{let S=100;const B=[],Z=[];let Y=0;s.value.forEach(H=>{S-=H.size,H.givenSize!==null&&Y++,H.size>=H.max&&B.push(H.id),H.size<=H.min&&Z.push(H.id)});let O=100;S>.1&&(s.value.forEach(H=>{H.givenSize===null&&(H.size=Math.max(Math.min(S/(i.value-Y),H.max),H.min)),O-=H.size}),O>.1&&ne(O,B,Z))},P=({addedPane:S,removedPane:B}={})=>{let Z=100/i.value,Y=0;const O=[],H=[];((S==null?void 0:S.givenSize)??null)!==null&&(Z=(100-S.givenSize)/(i.value-1).value),s.value.forEach(y=>{Y-=y.size,y.size>=y.max&&O.push(y.id),y.size<=y.min&&H.push(y.id)}),!(Math.abs(Y)<.1)&&(s.value.forEach(y=>{(S==null?void 0:S.givenSize)!==null&&(S==null?void 0:S.id)===y.id||(y.size=Math.max(Math.min(Z,y.max),y.min)),Y-=y.size,y.size>=y.max&&O.push(y.id),y.size<=y.min&&H.push(y.id)}),Y>.1&&ne(Y,O,H))},ne=(S,B,Z)=>{let Y;S>0?Y=S/(i.value-B.length):Y=S/(i.value-Z.length),s.value.forEach((O,H)=>{if(S>0&&!B.includes(O.id)){const y=Math.max(Math.min(O.size+Y,O.max),O.min),f=y-O.size;S-=f,O.size=y}else if(!Z.includes(O.id)){const y=Math.max(Math.min(O.size+Y,O.max),O.min),f=y-O.size;S-=f,O.size=y}}),Math.abs(S)>.1&&Je(()=>{a.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};Ze(()=>u.firstSplitter,()=>X()),Ze(()=>u.dblClickSplitter,S=>{[...l.value.querySelectorAll(".splitpanes__splitter")].forEach((B,Z)=>{B.ondblclick=S?Y=>I(Y,Z):void 0})}),Yo(()=>a.value=!1),On(()=>{ce(),X(),ye(),n("ready"),a.value=!0});const le=()=>{var S;return Mr("div",{ref:l,class:m.value},(S=o.default)==null?void 0:S.call(o))};return xn("panes",s),xn("indexedPanes",r),xn("horizontal",L(()=>u.horizontal)),xn("requestUpdate",ie),xn("onPaneAdd",W),xn("onPaneRemove",fe),xn("onPaneClick",$),(S,B)=>(x(),yt(wa(le)))}},fl={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const n=e,u=Lt("requestUpdate"),o=Lt("onPaneAdd"),s=Lt("horizontal"),r=Lt("onPaneRemove"),i=Lt("onPaneClick"),l=(t=oo())==null?void 0:t.uid,a=Lt("indexedPanes"),c=L(()=>a.value[l]),d=me(null),m=L(()=>{const _=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(_,b.value),g.value)}),g=L(()=>{const _=parseFloat(n.minSize);return isNaN(_)?0:_}),b=L(()=>{const _=parseFloat(n.maxSize);return isNaN(_)?100:_}),w=L(()=>{var _;return`${s.value?"height":"width"}: ${(_=c.value)==null?void 0:_.size}%`});return On(()=>{o({id:l,el:d.value,min:g.value,max:b.value,givenSize:n.size===void 0?null:m.value,size:m.value})}),Ze(()=>m.value,_=>u({uid:l,size:_})),Ze(()=>g.value,_=>u({uid:l,min:_})),Ze(()=>b.value,_=>u({uid:l,max:_})),Yo(()=>r(l)),(_,C)=>(x(),k("div",{ref_key:"paneEl",ref:d,class:"splitpanes__pane",onClick:C[0]||(C[0]=M=>G(i)(M,_._.uid)),style:Ae(w.value)},[Bu(_.$slots,"default")],4))}};function wv(){const e=to(new Set);function t(r){e.has(r)?e.delete(r):e.add(r)}function n(r){return e.has(r)}function u(r){e.add(r)}function o(r){e.delete(r)}function s(){e.clear()}return{expanded:e,toggle:t,isExpanded:n,expand:u,collapse:o,collapseAll:s}}const Cv="modulepreload",$v=function(e){return"/"+e},dl={},Ne=function(t,n,u){let o=Promise.resolve();if(n&&n.length>0){let r=function(a){return Promise.all(a.map(c=>Promise.resolve(c).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));o=r(n.map(a=>{if(a=$v(a),a in dl)return;dl[a]=!0;const c=a.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${d}`))return;const m=document.createElement("link");if(m.rel=c?"stylesheet":Cv,c||(m.as="script"),m.crossOrigin="",m.href=a,l&&m.setAttribute("nonce",l),document.head.appendChild(m),c)return new Promise((g,b)=>{m.addEventListener("load",g),m.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${a}`)))})}))}function s(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"&&s(i.reason);return t().catch(s)})},pl={};function Ev(e){let t=pl[e];if(t)return t;t=pl[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);t.push(u)}for(let n=0;n<e.length;n++){const u=e.charCodeAt(n);t[u]="%"+("0"+u.toString(16).toUpperCase()).slice(-2)}return t}function fu(e,t){typeof t!="string"&&(t=fu.defaultChars);const n=Ev(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(u){let o="";for(let s=0,r=u.length;s<r;s+=3){const i=parseInt(u.slice(s+1,s+3),16);if(i<128){o+=n[i];continue}if((i&224)===192&&s+3<r){const l=parseInt(u.slice(s+4,s+6),16);if((l&192)===128){const a=i<<6&1984|l&63;a<128?o+="��":o+=String.fromCharCode(a),s+=3;continue}}if((i&240)===224&&s+6<r){const l=parseInt(u.slice(s+4,s+6),16),a=parseInt(u.slice(s+7,s+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),s+=6;continue}}if((i&248)===240&&s+9<r){const l=parseInt(u.slice(s+4,s+6),16),a=parseInt(u.slice(s+7,s+9),16),c=parseInt(u.slice(s+10,s+12),16);if((l&192)===128&&(a&192)===128&&(c&192)===128){let d=i<<18&1835008|l<<12&258048|a<<6&4032|c&63;d<65536||d>1114111?o+="����":(d-=65536,o+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),s+=9;continue}}o+="�"}return o})}fu.defaultChars=";/?:@&=+$,#";fu.componentChars="";const hl={};function Sv(e){let t=hl[e];if(t)return t;t=hl[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);/^[0-9a-z]$/i.test(u)?t.push(u):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function ro(e,t,n){typeof t!="string"&&(n=t,t=ro.defaultChars),typeof n>"u"&&(n=!0);const u=Sv(t);let o="";for(let s=0,r=e.length;s<r;s++){const i=e.charCodeAt(s);if(n&&i===37&&s+2<r&&/^[0-9a-f]{2}$/i.test(e.slice(s+1,s+3))){o+=e.slice(s,s+3),s+=2;continue}if(i<128){o+=u[i];continue}if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&s+1<r){const l=e.charCodeAt(s+1);if(l>=56320&&l<=57343){o+=encodeURIComponent(e[s]+e[s+1]),s++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[s])}return o}ro.defaultChars=";/?:@&=+$,-_.!~*'()#";ro.componentChars="-_.!~*'()";function Nr(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 Oo(){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 Tv=/^([a-z0-9.+-]+:)/i,Dv=/:[0-9]*$/,Av=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Fv=["<",">",'"',"`"," ","\r",`
|
|
29
|
-
`," "],Mv=["{","}","|","\\","^","`"].concat(Fv),Iv=["'"].concat(Mv),ml=["%","/","?",";","#"].concat(Iv),gl=["/","?","#"],Pv=255,vl=/^[+a-z0-9A-Z_-]{0,63}$/,Lv=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,bl={javascript:!0,"javascript:":!0},_l={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Hr(e,t){if(e&&e instanceof Oo)return e;const n=new Oo;return n.parse(e,t),n}Oo.prototype.parse=function(e,t){let n,u,o,s=e;if(s=s.trim(),!t&&e.split("#").length===1){const a=Av.exec(s);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}let r=Tv.exec(s);if(r&&(r=r[0],n=r.toLowerCase(),this.protocol=r,s=s.substr(r.length)),(t||r||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=s.substr(0,2)==="//",o&&!(r&&bl[r])&&(s=s.substr(2),this.slashes=!0)),!bl[r]&&(o||r&&!_l[r])){let a=-1;for(let b=0;b<gl.length;b++)u=s.indexOf(gl[b]),u!==-1&&(a===-1||u<a)&&(a=u);let c,d;a===-1?d=s.lastIndexOf("@"):d=s.lastIndexOf("@",a),d!==-1&&(c=s.slice(0,d),s=s.slice(d+1),this.auth=c),a=-1;for(let b=0;b<ml.length;b++)u=s.indexOf(ml[b]),u!==-1&&(a===-1||u<a)&&(a=u);a===-1&&(a=s.length),s[a-1]===":"&&a--;const m=s.slice(0,a);s=s.slice(a),this.parseHost(m),this.hostname=this.hostname||"";const g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){const b=this.hostname.split(/\./);for(let w=0,_=b.length;w<_;w++){const C=b[w];if(C&&!C.match(vl)){let M="";for(let I=0,$=C.length;I<$;I++)C.charCodeAt(I)>127?M+="x":M+=C[I];if(!M.match(vl)){const I=b.slice(0,w),$=b.slice(w+1),R=C.match(Lv);R&&(I.push(R[1]),$.unshift(R[2])),$.length&&(s=$.join(".")+s),this.hostname=I.join(".");break}}}}this.hostname.length>Pv&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const i=s.indexOf("#");i!==-1&&(this.hash=s.substr(i),s=s.slice(0,i));const l=s.indexOf("?");return l!==-1&&(this.search=s.substr(l),s=s.slice(0,l)),s&&(this.pathname=s),_l[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Oo.prototype.parseHost=function(e){let t=Dv.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 Rv=Object.freeze(Object.defineProperty({__proto__:null,decode:fu,encode:ro,format:Nr,parse:Hr},Symbol.toStringTag,{value:"Module"})),Rc=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Oc=/[\0-\x1F\x7F-\x9F]/,Ov=/[\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]/,jr=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,zc=/[\$\+<->\^`\|~\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]/,Bc=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,zv=Object.freeze(Object.defineProperty({__proto__:null,Any:Rc,Cc:Oc,Cf:Ov,P:jr,S:zc,Z:Bc},Symbol.toStringTag,{value:"Module"})),Bv=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))),Nv=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Ms;const Hv=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]]),jv=(Ms=String.fromCodePoint)!==null&&Ms!==void 0?Ms: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 qv(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Hv.get(e))!==null&&t!==void 0?t:e}var it;(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"})(it||(it={}));const Vv=32;var Dn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Dn||(Dn={}));function ar(e){return e>=it.ZERO&&e<=it.NINE}function Uv(e){return e>=it.UPPER_A&&e<=it.UPPER_F||e>=it.LOWER_A&&e<=it.LOWER_F}function Wv(e){return e>=it.UPPER_A&&e<=it.UPPER_Z||e>=it.LOWER_A&&e<=it.LOWER_Z||ar(e)}function Kv(e){return e===it.EQUALS||Wv(e)}var rt;(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"})(rt||(rt={}));var Tn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Tn||(Tn={}));class Gv{constructor(t,n,u){this.decodeTree=t,this.emitCodePoint=n,this.errors=u,this.state=rt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Tn.Strict}startEntity(t){this.decodeMode=t,this.state=rt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case rt.EntityStart:return t.charCodeAt(n)===it.NUM?(this.state=rt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=rt.NamedEntity,this.stateNamedEntity(t,n));case rt.NumericStart:return this.stateNumericStart(t,n);case rt.NumericDecimal:return this.stateNumericDecimal(t,n);case rt.NumericHex:return this.stateNumericHex(t,n);case rt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Vv)===it.LOWER_X?(this.state=rt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=rt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,u,o){if(n!==u){const s=u-n;this.result=this.result*Math.pow(o,s)+parseInt(t.substr(n,s),o),this.consumed+=s}}stateNumericHex(t,n){const u=n;for(;n<t.length;){const o=t.charCodeAt(n);if(ar(o)||Uv(o))n+=1;else return this.addToNumericResult(t,u,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,u,n,16),-1}stateNumericDecimal(t,n){const u=n;for(;n<t.length;){const o=t.charCodeAt(n);if(ar(o))n+=1;else return this.addToNumericResult(t,u,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,u,n,10),-1}emitNumericEntity(t,n){var u;if(this.consumed<=n)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===it.SEMI)this.consumed+=1;else if(this.decodeMode===Tn.Strict)return 0;return this.emitCodePoint(qv(this.result),this.consumed),this.errors&&(t!==it.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:u}=this;let o=u[this.treeIndex],s=(o&Dn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const r=t.charCodeAt(n);if(this.treeIndex=Zv(u,o,this.treeIndex+Math.max(1,s),r),this.treeIndex<0)return this.result===0||this.decodeMode===Tn.Attribute&&(s===0||Kv(r))?0:this.emitNotTerminatedNamedEntity();if(o=u[this.treeIndex],s=(o&Dn.VALUE_LENGTH)>>14,s!==0){if(r===it.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Tn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:u}=this,o=(u[n]&Dn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,u){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~Dn.VALUE_LENGTH:o[t+1],u),n===3&&this.emitCodePoint(o[t+2],u),u}end(){var t;switch(this.state){case rt.NamedEntity:return this.result!==0&&(this.decodeMode!==Tn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case rt.NumericDecimal:return this.emitNumericEntity(0,2);case rt.NumericHex:return this.emitNumericEntity(0,3);case rt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case rt.EntityStart:return 0}}}function Nc(e){let t="";const n=new Gv(e,u=>t+=jv(u));return function(o,s){let r=0,i=0;for(;(i=o.indexOf("&",i))>=0;){t+=o.slice(r,i),n.startEntity(s);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 Zv(e,t,n,u){const o=(t&Dn.BRANCH_LENGTH)>>7,s=t&Dn.JUMP_TABLE;if(o===0)return s!==0&&u===s?n:-1;if(s){const l=u-s;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<u)r=l+1;else if(a>u)i=l-1;else return e[l+o]}return-1}const Jv=Nc(Bv);Nc(Nv);function Hc(e,t=Tn.Legacy){return Jv(e,t)}function Yv(e){return Object.prototype.toString.call(e)}function qr(e){return Yv(e)==="[object String]"}const Xv=Object.prototype.hasOwnProperty;function Qv(e,t){return Xv.call(e,t)}function is(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(u){e[u]=n[u]})}}),e}function jc(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Vr(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 zo(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 qc=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,eb=/&([a-z#][a-z0-9]{1,31});/gi,tb=new RegExp(qc.source+"|"+eb.source,"gi"),nb=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ub(e,t){if(t.charCodeAt(0)===35&&nb.test(t)){const u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Vr(u)?zo(u):e}const n=Hc(e);return n!==e?n:e}function ob(e){return e.indexOf("\\")<0?e:e.replace(qc,"$1")}function du(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(tb,function(t,n,u){return n||ub(t,u)})}const sb=/[&<>"]/,rb=/[&<>"]/g,ib={"&":"&","<":"<",">":">",'"':"""};function lb(e){return ib[e]}function Ln(e){return sb.test(e)?e.replace(rb,lb):e}const ab=/[.?*+^$[\]\\(){}|-]/g;function cb(e){return e.replace(ab,"\\$&")}function Ge(e){switch(e){case 9:case 32:return!0}return!1}function Ju(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 Yu(e){return jr.test(e)||zc.test(e)}function Xu(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 ls(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const fb={mdurl:Rv,ucmicro:zv},db=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:jc,assign:is,escapeHtml:Ln,escapeRE:cb,fromCodePoint:zo,has:Qv,isMdAsciiPunct:Xu,isPunctChar:Yu,isSpace:Ge,isString:qr,isValidEntityCode:Vr,isWhiteSpace:Ju,lib:fb,normalizeReference:ls,unescapeAll:du,unescapeMd:ob},Symbol.toStringTag,{value:"Module"}));function pb(e,t,n){let u,o,s,r;const i=e.posMax,l=e.pos;for(e.pos=t+1,u=1;e.pos<i;){if(s=e.src.charCodeAt(e.pos),s===93&&(u--,u===0)){o=!0;break}if(r=e.pos,e.md.inline.skipToken(e),s===91){if(r===e.pos-1)u++;else if(n)return e.pos=l,-1}}let a=-1;return o&&(a=e.pos),e.pos=l,a}function hb(e,t,n){let u,o=t;const s={ok:!1,pos:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<n;){if(u=e.charCodeAt(o),u===10||u===60)return s;if(u===62)return s.pos=o+1,s.str=du(e.slice(t+1,o)),s.ok=!0,s;if(u===92&&o+1<n){o+=2;continue}o++}return s}let r=0;for(;o<n&&(u=e.charCodeAt(o),!(u===32||u<32||u===127));){if(u===92&&o+1<n){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(u===40&&(r++,r>32))return s;if(u===41){if(r===0)break;r--}o++}return t===o||r!==0||(s.str=du(e.slice(t,o)),s.pos=o,s.ok=!0),s}function mb(e,t,n,u){let o,s=t;const r={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(u)r.str=u.str,r.marker=u.marker;else{if(s>=n)return r;let i=e.charCodeAt(s);if(i!==34&&i!==39&&i!==40)return r;t++,s++,i===40&&(i=41),r.marker=i}for(;s<n;){if(o=e.charCodeAt(s),o===r.marker)return r.pos=s+1,r.str+=du(e.slice(t,s)),r.ok=!0,r;if(o===40&&r.marker===41)return r;o===92&&s+1<n&&s++,s++}return r.can_continue=!0,r.str+=du(e.slice(t,s)),r}const gb=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:hb,parseLinkLabel:pb,parseLinkTitle:mb},Symbol.toStringTag,{value:"Module"})),nn={};nn.code_inline=function(e,t,n,u,o){const s=e[t];return"<code"+o.renderAttrs(s)+">"+Ln(s.content)+"</code>"};nn.code_block=function(e,t,n,u,o){const s=e[t];return"<pre"+o.renderAttrs(s)+"><code>"+Ln(e[t].content)+`</code></pre>
|
|
30
|
-
`};nn.fence=function(e,t,n,u,o){const s=e[t],r=s.info?du(s.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(s.content,i,l)||Ln(s.content):a=Ln(s.content),a.indexOf("<pre")===0)return a+`
|
|
31
|
-
`;if(r){const c=s.attrIndex("class"),d=s.attrs?s.attrs.slice():[];c<0?d.push(["class",n.langPrefix+i]):(d[c]=d[c].slice(),d[c][1]+=" "+n.langPrefix+i);const m={attrs:d};return`<pre><code${o.renderAttrs(m)}>${a}</code></pre>
|
|
32
|
-
`}return`<pre><code${o.renderAttrs(s)}>${a}</code></pre>
|
|
33
|
-
`};nn.image=function(e,t,n,u,o){const s=e[t];return s.attrs[s.attrIndex("alt")][1]=o.renderInlineAsText(s.children,n,u),o.renderToken(e,t,n)};nn.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
34
|
-
`:`<br>
|
|
35
|
-
`};nn.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
36
|
-
`:`<br>
|
|
37
|
-
`:`
|
|
38
|
-
`};nn.text=function(e,t){return Ln(e[t].content)};nn.html_block=function(e,t){return e[t].content};nn.html_inline=function(e,t){return e[t].content};function pu(){this.rules=is({},nn)}pu.prototype.renderAttrs=function(t){let n,u,o;if(!t.attrs)return"";for(o="",n=0,u=t.attrs.length;n<u;n++)o+=" "+Ln(t.attrs[n][0])+'="'+Ln(t.attrs[n][1])+'"';return o};pu.prototype.renderToken=function(t,n,u){const o=t[n];let s="";if(o.hidden)return"";o.block&&o.nesting!==-1&&n&&t[n-1].hidden&&(s+=`
|
|
39
|
-
`),s+=(o.nesting===-1?"</":"<")+o.tag,s+=this.renderAttrs(o),o.nesting===0&&u.xhtmlOut&&(s+=" /");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 s+=r?`>
|
|
40
|
-
`:">",s};pu.prototype.renderInline=function(e,t,n){let u="";const o=this.rules;for(let s=0,r=e.length;s<r;s++){const i=e[s].type;typeof o[i]<"u"?u+=o[i](e,s,t,n,this):u+=this.renderToken(e,s,t)}return u};pu.prototype.renderInlineAsText=function(e,t,n){let u="";for(let o=0,s=e.length;o<s;o++)switch(e[o].type){case"text":u+=e[o].content;break;case"image":u+=this.renderInlineAsText(e[o].children,t,n);break;case"html_inline":case"html_block":u+=e[o].content;break;case"softbreak":case"hardbreak":u+=`
|
|
41
|
-
`;break}return u};pu.prototype.render=function(e,t,n){let u="";const o=this.rules;for(let s=0,r=e.length;s<r;s++){const i=e[s].type;i==="inline"?u+=this.renderInline(e[s].children,t,n):typeof o[i]<"u"?u+=o[i](e,s,t,n,this):u+=this.renderToken(e,s,t,n)}return u};function xt(){this.__rules__=[],this.__cache__=null}xt.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};xt.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(u){t.indexOf(u)<0&&t.push(u)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(u){u.enabled&&(n&&u.alt.indexOf(n)<0||e.__cache__[n].push(u.fn))})})};xt.prototype.at=function(e,t,n){const u=this.__find__(e),o=n||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__[u].fn=t,this.__rules__[u].alt=o.alt||[],this.__cache__=null};xt.prototype.before=function(e,t,n,u){const o=this.__find__(e),s=u||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};xt.prototype.after=function(e,t,n,u){const o=this.__find__(e),s=u||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null};xt.prototype.push=function(e,t,n){const u=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:u.alt||[]}),this.__cache__=null};xt.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const o=this.__find__(u);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[o].enabled=!0,n.push(u)},this),this.__cache__=null,n};xt.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};xt.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const o=this.__find__(u);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[o].enabled=!1,n.push(u)},this),this.__cache__=null,n};xt.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Vt(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}Vt.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let u=0,o=n.length;u<o;u++)if(n[u][0]===t)return u;return-1};Vt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Vt.prototype.attrSet=function(t,n){const u=this.attrIndex(t),o=[t,n];u<0?this.attrPush(o):this.attrs[u]=o};Vt.prototype.attrGet=function(t){const n=this.attrIndex(t);let u=null;return n>=0&&(u=this.attrs[n][1]),u};Vt.prototype.attrJoin=function(t,n){const u=this.attrIndex(t);u<0?this.attrPush([t,n]):this.attrs[u][1]=this.attrs[u][1]+" "+n};function Vc(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Vc.prototype.Token=Vt;const vb=/\r\n?|\n/g,bb=/\0/g;function _b(e){let t;t=e.src.replace(vb,`
|
|
42
|
-
`),t=t.replace(bb,"�"),e.src=t}function yb(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 xb(e){const t=e.tokens;for(let n=0,u=t.length;n<u;n++){const o=t[n];o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)}}function kb(e){return/^<a[>\s]/i.test(e)}function wb(e){return/^<\/a\s*>/i.test(e)}function Cb(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,u=t.length;n<u;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let o=t[n].children,s=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"&&(kb(i.content)&&s>0&&s--,wb(i.content)&&s++),!(s>0)&&i.type==="text"&&e.md.linkify.test(i.content)){const l=i.content;let a=e.md.linkify.match(l);const c=[];let d=i.level,m=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 b=a[g].url,w=e.md.normalizeLink(b);if(!e.md.validateLink(w))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 C=a[g].index;if(C>m){const R=new e.Token("text","",0);R.content=l.slice(m,C),R.level=d,c.push(R)}const M=new e.Token("link_open","a",1);M.attrs=[["href",w]],M.level=d++,M.markup="linkify",M.info="auto",c.push(M);const I=new e.Token("text","",0);I.content=_,I.level=d,c.push(I);const $=new e.Token("link_close","a",-1);$.level=--d,$.markup="linkify",$.info="auto",c.push($),m=a[g].lastIndex}if(m<l.length){const g=new e.Token("text","",0);g.content=l.slice(m),g.level=d,c.push(g)}t[n].children=o=jc(o,r,c)}}}}const Uc=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,$b=/\((c|tm|r)\)/i,Eb=/\((c|tm|r)\)/ig,Sb={c:"©",r:"®",tm:"™"};function Tb(e,t){return Sb[t.toLowerCase()]}function Db(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&(u.content=u.content.replace(Eb,Tb)),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function Ab(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&Uc.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function Fb(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&($b.test(e.tokens[t].content)&&Db(e.tokens[t].children),Uc.test(e.tokens[t].content)&&Ab(e.tokens[t].children))}const Mb=/['"]/,yl=/['"]/g,xl="’";function mo(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function Ib(e,t){let n;const u=[];for(let o=0;o<e.length;o++){const s=e[o],r=e[o].level;for(n=u.length-1;n>=0&&!(u[n].level<=r);n--);if(u.length=n+1,s.type!=="text")continue;let i=s.content,l=0,a=i.length;e:for(;l<a;){yl.lastIndex=l;const c=yl.exec(i);if(!c)break;let d=!0,m=!0;l=c.index+1;const g=c[0]==="'";let b=32;if(c.index-1>=0)b=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){b=e[n].content.charCodeAt(e[n].content.length-1);break}let w=32;if(l<a)w=i.charCodeAt(l);else for(n=o+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){w=e[n].content.charCodeAt(0);break}const _=Xu(b)||Yu(String.fromCharCode(b)),C=Xu(w)||Yu(String.fromCharCode(w)),M=Ju(b),I=Ju(w);if(I?d=!1:C&&(M||_||(d=!1)),M?m=!1:_&&(I||C||(m=!1)),w===34&&c[0]==='"'&&b>=48&&b<=57&&(m=d=!1),d&&m&&(d=_,m=C),!d&&!m){g&&(s.content=mo(s.content,c.index,xl));continue}if(m)for(n=u.length-1;n>=0;n--){let $=u[n];if(u[n].level<r)break;if($.single===g&&u[n].level===r){$=u[n];let R,T;g?(R=t.md.options.quotes[2],T=t.md.options.quotes[3]):(R=t.md.options.quotes[0],T=t.md.options.quotes[1]),s.content=mo(s.content,c.index,T),e[$.token].content=mo(e[$.token].content,$.pos,R),l+=T.length-1,$.token===o&&(l+=R.length-1),i=s.content,a=i.length,u.length=n;continue e}}d?u.push({token:o,pos:c.index,single:g,level:r}):m&&g&&(s.content=mo(s.content,c.index,xl))}}}function Pb(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!Mb.test(e.tokens[t].content)||Ib(e.tokens[t].children,e)}function Lb(e){let t,n;const u=e.tokens,o=u.length;for(let s=0;s<o;s++){if(u[s].type!=="inline")continue;const r=u[s].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 Is=[["normalize",_b],["block",yb],["inline",xb],["linkify",Cb],["replacements",Fb],["smartquotes",Pb],["text_join",Lb]];function Ur(){this.ruler=new xt;for(let e=0;e<Is.length;e++)this.ruler.push(Is[e][0],Is[e][1])}Ur.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,u=t.length;n<u;n++)t[n](e)};Ur.prototype.State=Vc;function un(e,t,n,u){this.src=e,this.md=t,this.env=n,this.tokens=u,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let s=0,r=0,i=0,l=0,a=o.length,c=!1;r<a;r++){const d=o.charCodeAt(r);if(!c)if(Ge(d)){i++,d===9?l+=4-l%4:l++;continue}else c=!0;(d===10||r===a-1)&&(d!==10&&r++,this.bMarks.push(s),this.eMarks.push(r),this.tShift.push(i),this.sCount.push(l),this.bsCount.push(0),c=!1,i=0,l=0,s=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}un.prototype.push=function(e,t,n){const u=new Vt(e,t,n);return u.block=!0,n<0&&this.level--,u.level=this.level,n>0&&this.level++,this.tokens.push(u),u};un.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};un.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};un.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const u=this.src.charCodeAt(t);if(!Ge(u))break}return t};un.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!Ge(this.src.charCodeAt(--t)))return t+1;return t};un.prototype.skipChars=function(t,n){for(let u=this.src.length;t<u&&this.src.charCodeAt(t)===n;t++);return t};un.prototype.skipCharsBack=function(t,n,u){if(t<=u)return t;for(;t>u;)if(n!==this.src.charCodeAt(--t))return t+1;return t};un.prototype.getLines=function(t,n,u,o){if(t>=n)return"";const s=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,d;for(i+1<n||o?d=this.eMarks[i]+1:d=this.eMarks[i];c<d&&l<u;){const m=this.src.charCodeAt(c);if(Ge(m))m===9?l+=4-(l+this.bsCount[i])%4:l++;else if(c-a<this.tShift[i])l++;else break;c++}l>u?s[r]=new Array(l-u+1).join(" ")+this.src.slice(c,d):s[r]=this.src.slice(c,d)}return s.join("")};un.prototype.Token=Vt;const Rb=65536;function Ps(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(n,u)}function kl(e){const t=[],n=e.length;let u=0,o=e.charCodeAt(u),s=!1,r=0,i="";for(;u<n;)o===124&&(s?(i+=e.substring(r,u-1),r=u):(t.push(i+e.substring(r,u)),i="",r=u+1)),s=o===92,u++,o=e.charCodeAt(u);return t.push(i+e.substring(r)),t}function Ob(e,t,n,u){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 s=e.bMarks[o]+e.tShift[o];if(s>=e.eMarks[o])return!1;const r=e.src.charCodeAt(s++);if(r!==124&&r!==45&&r!==58||s>=e.eMarks[o])return!1;const i=e.src.charCodeAt(s++);if(i!==124&&i!==45&&i!==58&&!Ge(i)||r===45&&Ge(i))return!1;for(;s<e.eMarks[o];){const $=e.src.charCodeAt(s);if($!==124&&$!==45&&$!==58&&!Ge($))return!1;s++}let l=Ps(e,t+1),a=l.split("|");const c=[];for(let $=0;$<a.length;$++){const R=a[$].trim();if(!R){if($===0||$===a.length-1)continue;return!1}if(!/^:?-+:?$/.test(R))return!1;R.charCodeAt(R.length-1)===58?c.push(R.charCodeAt(0)===58?"center":"right"):R.charCodeAt(0)===58?c.push("left"):c.push("")}if(l=Ps(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;a=kl(l),a.length&&a[0]===""&&a.shift(),a.length&&a[a.length-1]===""&&a.pop();const d=a.length;if(d===0||d!==c.length)return!1;if(u)return!0;const m=e.parentType;e.parentType="table";const g=e.md.block.ruler.getRules("blockquote"),b=e.push("table_open","table",1),w=[t,0];b.map=w;const _=e.push("thead_open","thead",1);_.map=[t,t+1];const C=e.push("tr_open","tr",1);C.map=[t,t+1];for(let $=0;$<a.length;$++){const R=e.push("th_open","th",1);c[$]&&(R.attrs=[["style","text-align:"+c[$]]]);const T=e.push("inline","",0);T.content=a[$].trim(),T.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let M,I=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let $=!1;for(let T=0,oe=g.length;T<oe;T++)if(g[T](e,o,n,!0)){$=!0;break}if($||(l=Ps(e,o).trim(),!l)||e.sCount[o]-e.blkIndent>=4||(a=kl(l),a.length&&a[0]===""&&a.shift(),a.length&&a[a.length-1]===""&&a.pop(),I+=d-a.length,I>Rb))break;if(o===t+2){const T=e.push("tbody_open","tbody",1);T.map=M=[t+2,0]}const R=e.push("tr_open","tr",1);R.map=[o,o+1];for(let T=0;T<d;T++){const oe=e.push("td_open","td",1);c[T]&&(oe.attrs=[["style","text-align:"+c[T]]]);const ue=e.push("inline","",0);ue.content=a[T]?a[T].trim():"",ue.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return M&&(e.push("tbody_close","tbody",-1),M[1]=o),e.push("table_close","table",-1),w[1]=o,e.parentType=m,e.line=o,!0}function zb(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let u=t+1,o=u;for(;u<n;){if(e.isEmpty(u)){u++;continue}if(e.sCount[u]-e.blkIndent>=4){u++,o=u;continue}break}e.line=o;const s=e.push("code_block","code",0);return s.content=e.getLines(t,o,4+e.blkIndent,!1)+`
|
|
43
|
-
`,s.map=[t,e.line],!0}function Bb(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>s)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,s);if(r===96&&c.indexOf(String.fromCharCode(r))>=0)return!1;if(u)return!0;let d=t,m=!1;for(;d++,!(d>=n||(o=i=e.bMarks[d]+e.tShift[d],s=e.eMarks[d],o<s&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(o)===r&&!(e.sCount[d]-e.blkIndent>=4)&&(o=e.skipChars(o,r),!(o-i<l)&&(o=e.skipSpaces(o),!(o<s)))){m=!0;break}l=e.sCount[t],e.line=d+(m?1:0);const g=e.push("fence","code",0);return g.info=c,g.content=e.getLines(t+1,d,l,!0),g.markup=a,g.map=[t,e.line],!0}function Nb(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];const r=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==62)return!1;if(u)return!0;const i=[],l=[],a=[],c=[],d=e.md.block.ruler.getRules("blockquote"),m=e.parentType;e.parentType="blockquote";let g=!1,b;for(b=t;b<n;b++){const I=e.sCount[b]<e.blkIndent;if(o=e.bMarks[b]+e.tShift[b],s=e.eMarks[b],o>=s)break;if(e.src.charCodeAt(o++)===62&&!I){let R=e.sCount[b]+1,T,oe;e.src.charCodeAt(o)===32?(o++,R++,oe=!1,T=!0):e.src.charCodeAt(o)===9?(T=!0,(e.bsCount[b]+R)%4===3?(o++,R++,oe=!1):oe=!0):T=!1;let ue=R;for(i.push(e.bMarks[b]),e.bMarks[b]=o;o<s;){const J=e.src.charCodeAt(o);if(Ge(J))J===9?ue+=4-(ue+e.bsCount[b]+(oe?1:0))%4:ue++;else break;o++}g=o>=s,l.push(e.bsCount[b]),e.bsCount[b]=e.sCount[b]+1+(T?1:0),a.push(e.sCount[b]),e.sCount[b]=ue-R,c.push(e.tShift[b]),e.tShift[b]=o-e.bMarks[b];continue}if(g)break;let $=!1;for(let R=0,T=d.length;R<T;R++)if(d[R](e,b,n,!0)){$=!0;break}if($){e.lineMax=b,e.blkIndent!==0&&(i.push(e.bMarks[b]),l.push(e.bsCount[b]),c.push(e.tShift[b]),a.push(e.sCount[b]),e.sCount[b]-=e.blkIndent);break}i.push(e.bMarks[b]),l.push(e.bsCount[b]),c.push(e.tShift[b]),a.push(e.sCount[b]),e.sCount[b]=-1}const w=e.blkIndent;e.blkIndent=0;const _=e.push("blockquote_open","blockquote",1);_.markup=">";const C=[t,0];_.map=C,e.md.block.tokenize(e,t,b);const M=e.push("blockquote_close","blockquote",-1);M.markup=">",e.lineMax=r,e.parentType=m,C[1]=e.line;for(let I=0;I<c.length;I++)e.bMarks[I+t]=i[I],e.tShift[I+t]=c[I],e.sCount[I+t]=a[I],e.bsCount[I+t]=l[I];return e.blkIndent=w,!0}function Hb(e,t,n,u){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(s++);if(r!==42&&r!==45&&r!==95)return!1;let i=1;for(;s<o;){const a=e.src.charCodeAt(s++);if(a!==r&&!Ge(a))return!1;a===r&&i++}if(i<3)return!1;if(u)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(i+1).join(String.fromCharCode(r)),!0}function wl(e,t){const n=e.eMarks[t];let u=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(u++);if(o!==42&&o!==45&&o!==43)return-1;if(u<n){const s=e.src.charCodeAt(u);if(!Ge(s))return-1}return u}function Cl(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];let o=n;if(o+1>=u)return-1;let s=e.src.charCodeAt(o++);if(s<48||s>57)return-1;for(;;){if(o>=u)return-1;if(s=e.src.charCodeAt(o++),s>=48&&s<=57){if(o-n>=10)return-1;continue}if(s===41||s===46)break;return-1}return o<u&&(s=e.src.charCodeAt(o),!Ge(s))?-1:o}function jb(e,t){const n=e.level+2;for(let u=t+2,o=e.tokens.length-2;u<o;u++)e.tokens[u].level===n&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].hidden=!0,e.tokens[u].hidden=!0,u+=2)}function qb(e,t,n,u){let o,s,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;u&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(c=!0);let d,m,g;if((g=Cl(e,l))>=0){if(d=!0,r=e.bMarks[l]+e.tShift[l],m=Number(e.src.slice(r,g-1)),c&&m!==1)return!1}else if((g=wl(e,l))>=0)d=!1;else return!1;if(c&&e.skipSpaces(g)>=e.eMarks[l])return!1;if(u)return!0;const b=e.src.charCodeAt(g-1),w=e.tokens.length;d?(i=e.push("ordered_list_open","ol",1),m!==1&&(i.attrs=[["start",m]])):i=e.push("bullet_list_open","ul",1);const _=[l,0];i.map=_,i.markup=String.fromCharCode(b);let C=!1;const M=e.md.block.ruler.getRules("list"),I=e.parentType;for(e.parentType="list";l<n;){s=g,o=e.eMarks[l];const $=e.sCount[l]+g-(e.bMarks[l]+e.tShift[l]);let R=$;for(;s<o;){const E=e.src.charCodeAt(s);if(E===9)R+=4-(R+e.bsCount[l])%4;else if(E===32)R++;else break;s++}const T=s;let oe;T>=o?oe=1:oe=R-$,oe>4&&(oe=1);const ue=$+oe;i=e.push("list_item_open","li",1),i.markup=String.fromCharCode(b);const J=[l,0];i.map=J,d&&(i.info=e.src.slice(r,g-1));const ee=e.tight,ve=e.tShift[l],q=e.sCount[l],ce=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=ue,e.tight=!0,e.tShift[l]=T-e.bMarks[l],e.sCount[l]=R,T>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||C)&&(a=!1),C=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ce,e.tShift[l]=ve,e.sCount[l]=q,e.tight=ee,i=e.push("list_item_close","li",-1),i.markup=String.fromCharCode(b),l=e.line,J[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let te=!1;for(let E=0,X=M.length;E<X;E++)if(M[E](e,l,n,!0)){te=!0;break}if(te)break;if(d){if(g=Cl(e,l),g<0)break;r=e.bMarks[l]+e.tShift[l]}else if(g=wl(e,l),g<0)break;if(b!==e.src.charCodeAt(g-1))break}return d?i=e.push("ordered_list_close","ol",-1):i=e.push("bullet_list_close","ul",-1),i.markup=String.fromCharCode(b),_[1]=l,e.line=l,e.parentType=I,a&&jb(e,w),!0}function Vb(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t],r=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==91)return!1;function i(M){const I=e.lineMax;if(M>=I||e.isEmpty(M))return null;let $=!1;if(e.sCount[M]-e.blkIndent>3&&($=!0),e.sCount[M]<0&&($=!0),!$){const oe=e.md.block.ruler.getRules("reference"),ue=e.parentType;e.parentType="reference";let J=!1;for(let ee=0,ve=oe.length;ee<ve;ee++)if(oe[ee](e,M,I,!0)){J=!0;break}if(e.parentType=ue,J)return null}const R=e.bMarks[M]+e.tShift[M],T=e.eMarks[M];return e.src.slice(R,T+1)}let l=e.src.slice(o,s+1);s=l.length;let a=-1;for(o=1;o<s;o++){const M=l.charCodeAt(o);if(M===91)return!1;if(M===93){a=o;break}else if(M===10){const I=i(r);I!==null&&(l+=I,s=l.length,r++)}else if(M===92&&(o++,o<s&&l.charCodeAt(o)===10)){const I=i(r);I!==null&&(l+=I,s=l.length,r++)}}if(a<0||l.charCodeAt(a+1)!==58)return!1;for(o=a+2;o<s;o++){const M=l.charCodeAt(o);if(M===10){const I=i(r);I!==null&&(l+=I,s=l.length,r++)}else if(!Ge(M))break}const c=e.md.helpers.parseLinkDestination(l,o,s);if(!c.ok)return!1;const d=e.md.normalizeLink(c.str);if(!e.md.validateLink(d))return!1;o=c.pos;const m=o,g=r,b=o;for(;o<s;o++){const M=l.charCodeAt(o);if(M===10){const I=i(r);I!==null&&(l+=I,s=l.length,r++)}else if(!Ge(M))break}let w=e.md.helpers.parseLinkTitle(l,o,s);for(;w.can_continue;){const M=i(r);if(M===null)break;l+=M,o=s,s=l.length,r++,w=e.md.helpers.parseLinkTitle(l,o,s,w)}let _;for(o<s&&b!==o&&w.ok?(_=w.str,o=w.pos):(_="",o=m,r=g);o<s;){const M=l.charCodeAt(o);if(!Ge(M))break;o++}if(o<s&&l.charCodeAt(o)!==10&&_)for(_="",o=m,r=g;o<s;){const M=l.charCodeAt(o);if(!Ge(M))break;o++}if(o<s&&l.charCodeAt(o)!==10)return!1;const C=ls(l.slice(1,a));return C?(u||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[C]>"u"&&(e.env.references[C]={title:_,href:d}),e.line=r),!0):!1}const Ub=["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"],Wb="[a-zA-Z_:][a-zA-Z0-9:._-]*",Kb="[^\"'=<>`\\x00-\\x20]+",Gb="'[^']*'",Zb='"[^"]*"',Jb="(?:"+Kb+"|"+Gb+"|"+Zb+")",Yb="(?:\\s+"+Wb+"(?:\\s*=\\s*"+Jb+")?)",Wc="<[A-Za-z][A-Za-z0-9\\-]*"+Yb+"*\\s*\\/?>",Kc="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Xb="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",Qb="<[?][\\s\\S]*?[?]>",e_="<![A-Za-z][^>]*>",t_="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",n_=new RegExp("^(?:"+Wc+"|"+Kc+"|"+Xb+"|"+Qb+"|"+e_+"|"+t_+")"),u_=new RegExp("^(?:"+Wc+"|"+Kc+")"),Qn=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Ub.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(u_.source+"\\s*$"),/^$/,!1]];function o_(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],s=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,s),i=0;for(;i<Qn.length&&!Qn[i][0].test(r);i++);if(i===Qn.length)return!1;if(u)return Qn[i][2];let l=t+1;if(!Qn[i][1].test(r)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(o=e.bMarks[l]+e.tShift[l],s=e.eMarks[l],r=e.src.slice(o,s),Qn[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 s_(e,t,n,u){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let r=e.src.charCodeAt(o);if(r!==35||o>=s)return!1;let i=1;for(r=e.src.charCodeAt(++o);r===35&&o<s&&i<=6;)i++,r=e.src.charCodeAt(++o);if(i>6||o<s&&!Ge(r))return!1;if(u)return!0;s=e.skipSpacesBack(s,o);const l=e.skipCharsBack(s,35,o);l>o&&Ge(e.src.charCodeAt(l-1))&&(s=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,s).trim(),c.map=[t,e.line],c.children=[];const d=e.push("heading_close","h"+String(i),-1);return d.markup="########".slice(0,i),!0}function r_(e,t,n){const u=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let s=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 b=e.eMarks[i];if(g<b&&(r=e.src.charCodeAt(g),(r===45||r===61)&&(g=e.skipChars(g,r),g=e.skipSpaces(g),g>=b))){s=r===61?1:2;break}}if(e.sCount[i]<0)continue;let m=!1;for(let g=0,b=u.length;g<b;g++)if(u[g](e,i,n,!0)){m=!0;break}if(m)break}if(!s)return!1;const l=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i+1;const a=e.push("heading_open","h"+String(s),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 d=e.push("heading_close","h"+String(s),-1);return d.markup=String.fromCharCode(r),e.parentType=o,!0}function i_(e,t,n){const u=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let s=t+1;for(e.parentType="paragraph";s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3||e.sCount[s]<0)continue;let a=!1;for(let c=0,d=u.length;c<d;c++)if(u[c](e,s,n,!0)){a=!0;break}if(a)break}const r=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s;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 go=[["table",Ob,["paragraph","reference"]],["code",zb],["fence",Bb,["paragraph","reference","blockquote","list"]],["blockquote",Nb,["paragraph","reference","blockquote","list"]],["hr",Hb,["paragraph","reference","blockquote","list"]],["list",qb,["paragraph","reference","blockquote"]],["reference",Vb],["html_block",o_,["paragraph","reference","blockquote"]],["heading",s_,["paragraph","reference","blockquote"]],["lheading",r_],["paragraph",i_]];function as(){this.ruler=new xt;for(let e=0;e<go.length;e++)this.ruler.push(go[e][0],go[e][1],{alt:(go[e][2]||[]).slice()})}as.prototype.tokenize=function(e,t,n){const u=this.ruler.getRules(""),o=u.length,s=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>=s){e.line=n;break}const l=e.line;let a=!1;for(let c=0;c<o;c++)if(a=u[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)}};as.prototype.parse=function(e,t,n,u){if(!e)return;const o=new this.State(e,t,n,u);this.tokenize(o,o.line,o.lineMax)};as.prototype.State=un;function io(e,t,n,u){this.src=e,this.env=n,this.md=t,this.tokens=u,this.tokens_meta=Array(u.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}io.prototype.pushPending=function(){const e=new Vt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};io.prototype.push=function(e,t,n){this.pending&&this.pushPending();const u=new Vt(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(o),u};io.prototype.scanDelims=function(e,t){const n=this.posMax,u=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32;let s=e;for(;s<n&&this.src.charCodeAt(s)===u;)s++;const r=s-e,i=s<n?this.src.charCodeAt(s):32,l=Xu(o)||Yu(String.fromCharCode(o)),a=Xu(i)||Yu(String.fromCharCode(i)),c=Ju(o),d=Ju(i),m=!d&&(!a||c||l),g=!c&&(!l||d||a);return{can_open:m&&(t||!g||l),can_close:g&&(t||!m||a),length:r}};io.prototype.Token=Vt;function l_(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 a_(e,t){let n=e.pos;for(;n<e.posMax&&!l_(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const c_=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function f_(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,u=e.posMax;if(n+3>u||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=e.pending.match(c_);if(!o)return!1;const s=o[1],r=e.md.linkify.matchAtStart(e.src.slice(n-s.length));if(!r)return!1;let i=r.url;if(i.length<=s.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,-s.length);const c=e.push("link_open","a",1);c.attrs=[["href",a]],c.markup="linkify",c.info="auto";const d=e.push("text","",0);d.content=e.md.normalizeLinkText(i);const m=e.push("link_close","a",-1);m.markup="linkify",m.info="auto"}return e.pos+=i.length-s.length,!0}function d_(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const u=e.pending.length-1,o=e.posMax;if(!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){let s=u-1;for(;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),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&&Ge(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const Wr=[];for(let e=0;e<256;e++)Wr.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Wr[e.charCodeAt(0)]=1});function p_(e,t){let n=e.pos;const u=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=u))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n<u&&(o=e.src.charCodeAt(n),!!Ge(o));)n++;return e.pos=n,!0}let s=e.src[n];if(o>=55296&&o<=56319&&n+1<u){const i=e.src.charCodeAt(n+1);i>=56320&&i<=57343&&(s+=e.src[n+1],n++)}const r="\\"+s;if(!t){const i=e.push("text_special","",0);o<256&&Wr[o]!==0?i.content=s:i.content=r,i.markup=r,i.info="escape"}return e.pos=n+1,!0}function h_(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const o=n;n++;const s=e.posMax;for(;n<s&&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<s&&e.src.charCodeAt(l)===96;)l++;const c=l-a;if(c===i){if(!t){const d=e.push("code_inline","code",0);d.markup=r,d.content=e.src.slice(n,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[c]=a}return e.backticksScanned=!0,t||(e.pending+=r),e.pos+=i,!0}function m_(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==126)return!1;const o=e.scanDelims(e.pos,!0);let s=o.length;const r=String.fromCharCode(u);if(s<2)return!1;let i;s%2&&(i=e.push("text","",0),i.content=r,s--);for(let l=0;l<s;l+=2)i=e.push("text","",0),i.content=r+r,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0}function $l(e,t){let n;const u=[],o=t.length;for(let s=0;s<o;s++){const r=t[s];if(r.marker!==126||r.end===-1)continue;const i=t[r.end];n=e.tokens[r.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[i.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[i.token-1].type==="text"&&e.tokens[i.token-1].content==="~"&&u.push(i.token-1)}for(;u.length;){const s=u.pop();let r=s+1;for(;r<e.tokens.length&&e.tokens[r].type==="s_close";)r++;r--,s!==r&&(n=e.tokens[r],e.tokens[r]=e.tokens[s],e.tokens[s]=n)}}function g_(e){const t=e.tokens_meta,n=e.tokens_meta.length;$l(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&$l(e,t[u].delimiters)}const Gc={tokenize:m_,postProcess:g_};function v_(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==95&&u!==42)return!1;const o=e.scanDelims(e.pos,u===42);for(let s=0;s<o.length;s++){const r=e.push("text","",0);r.content=String.fromCharCode(u),e.delimiters.push({marker:u,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 El(e,t){const n=t.length;for(let u=n-1;u>=0;u--){const o=t[u];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const s=t[o.end],r=u>0&&t[u-1].end===o.end+1&&t[u-1].marker===o.marker&&t[u-1].token===o.token-1&&t[o.end+1].token===s.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[s.token];a.type=r?"strong_close":"em_close",a.tag=r?"strong":"em",a.nesting=-1,a.markup=r?i+i:i,a.content="",r&&(e.tokens[t[u-1].token].content="",e.tokens[t[o.end+1].token].content="",u--)}}function b_(e){const t=e.tokens_meta,n=e.tokens_meta.length;El(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&El(e,t[u].delimiters)}const Zc={tokenize:v_,postProcess:b_};function __(e,t){let n,u,o,s,r="",i="",l=e.pos,a=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const c=e.pos,d=e.posMax,m=e.pos+1,g=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(g<0)return!1;let b=g+1;if(b<d&&e.src.charCodeAt(b)===40){for(a=!1,b++;b<d&&(n=e.src.charCodeAt(b),!(!Ge(n)&&n!==10));b++);if(b>=d)return!1;if(l=b,o=e.md.helpers.parseLinkDestination(e.src,b,e.posMax),o.ok){for(r=e.md.normalizeLink(o.str),e.md.validateLink(r)?b=o.pos:r="",l=b;b<d&&(n=e.src.charCodeAt(b),!(!Ge(n)&&n!==10));b++);if(o=e.md.helpers.parseLinkTitle(e.src,b,e.posMax),b<d&&l!==b&&o.ok)for(i=o.str,b=o.pos;b<d&&(n=e.src.charCodeAt(b),!(!Ge(n)&&n!==10));b++);}(b>=d||e.src.charCodeAt(b)!==41)&&(a=!0),b++}if(a){if(typeof e.env.references>"u")return!1;if(b<d&&e.src.charCodeAt(b)===91?(l=b+1,b=e.md.helpers.parseLinkLabel(e,b),b>=0?u=e.src.slice(l,b++):b=g+1):b=g+1,u||(u=e.src.slice(m,g)),s=e.env.references[ls(u)],!s)return e.pos=c,!1;r=s.href,i=s.title}if(!t){e.pos=m,e.posMax=g;const w=e.push("link_open","a",1),_=[["href",r]];w.attrs=_,i&&_.push(["title",i]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=b,e.posMax=d,!0}function y_(e,t){let n,u,o,s,r,i,l,a,c="";const d=e.pos,m=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const g=e.pos+2,b=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(b<0)return!1;if(s=b+1,s<m&&e.src.charCodeAt(s)===40){for(s++;s<m&&(n=e.src.charCodeAt(s),!(!Ge(n)&&n!==10));s++);if(s>=m)return!1;for(a=s,i=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),i.ok&&(c=e.md.normalizeLink(i.str),e.md.validateLink(c)?s=i.pos:c=""),a=s;s<m&&(n=e.src.charCodeAt(s),!(!Ge(n)&&n!==10));s++);if(i=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<m&&a!==s&&i.ok)for(l=i.str,s=i.pos;s<m&&(n=e.src.charCodeAt(s),!(!Ge(n)&&n!==10));s++);else l="";if(s>=m||e.src.charCodeAt(s)!==41)return e.pos=d,!1;s++}else{if(typeof e.env.references>"u")return!1;if(s<m&&e.src.charCodeAt(s)===91?(a=s+1,s=e.md.helpers.parseLinkLabel(e,s),s>=0?o=e.src.slice(a,s++):s=b+1):s=b+1,o||(o=e.src.slice(g,b)),r=e.env.references[ls(o)],!r)return e.pos=d,!1;c=r.href,l=r.title}if(!t){u=e.src.slice(g,b);const w=[];e.md.inline.parse(u,e.md,e.env,w);const _=e.push("image","img",0),C=[["src",c],["alt",""]];_.attrs=C,_.children=w,_.content=u,l&&C.push(["title",l])}return e.pos=s,e.posMax=m,!0}const x_=/^([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])?)*)$/,k_=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function w_(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const u=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 s=e.src.slice(u+1,n);if(k_.test(s)){const r=e.md.normalizeLink(s);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(s);const a=e.push("link_close","a",-1);a.markup="autolink",a.info="auto"}return e.pos+=s.length+2,!0}if(x_.test(s)){const r=e.md.normalizeLink("mailto:"+s);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(s);const a=e.push("link_close","a",-1);a.markup="autolink",a.info="auto"}return e.pos+=s.length+2,!0}return!1}function C_(e){return/^<a[>\s]/i.test(e)}function $_(e){return/^<\/a\s*>/i.test(e)}function E_(e){const t=e|32;return t>=97&&t<=122}function S_(e,t){if(!e.md.options.html)return!1;const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==60||u+2>=n)return!1;const o=e.src.charCodeAt(u+1);if(o!==33&&o!==63&&o!==47&&!E_(o))return!1;const s=e.src.slice(u).match(n_);if(!s)return!1;if(!t){const r=e.push("html_inline","",0);r.content=s[0],C_(r.content)&&e.linkLevel++,$_(r.content)&&e.linkLevel--}return e.pos+=s[0].length,!0}const T_=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,D_=/^&([a-z][a-z0-9]{1,31});/i;function A_(e,t){const n=e.pos,u=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=u)return!1;if(e.src.charCodeAt(n+1)===35){const s=e.src.slice(n).match(T_);if(s){if(!t){const r=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),i=e.push("text_special","",0);i.content=Vr(r)?zo(r):zo(65533),i.markup=s[0],i.info="entity"}return e.pos+=s[0].length,!0}}else{const s=e.src.slice(n).match(D_);if(s){const r=Hc(s[0]);if(r!==s[0]){if(!t){const i=e.push("text_special","",0);i.content=r,i.markup=s[0],i.info="entity"}return e.pos+=s[0].length,!0}}}return!1}function Sl(e){const t={},n=e.length;if(!n)return;let u=0,o=-2;const s=[];for(let r=0;r<n;r++){const i=e[r];if(s.push(0),(e[u].marker!==i.marker||o!==i.token-1)&&(u=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=u-s[u]-1,c=a;for(;a>l;a-=s[a]+1){const d=e[a];if(d.marker===i.marker&&d.open&&d.end<0){let m=!1;if((d.close||i.open)&&(d.length+i.length)%3===0&&(d.length%3!==0||i.length%3!==0)&&(m=!0),!m){const g=a>0&&!e[a-1].open?s[a-1]+1:0;s[r]=r-a+g,s[a]=g,i.open=!1,d.end=r,d.close=!1,c=-1,o=-2;break}}}c!==-1&&(t[i.marker][(i.open?3:0)+(i.length||0)%3]=c)}}function F_(e){const t=e.tokens_meta,n=e.tokens_meta.length;Sl(e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Sl(t[u].delimiters)}function M_(e){let t,n,u=0;const o=e.tokens,s=e.tokens.length;for(t=n=0;t<s;t++)o[t].nesting<0&&u--,o[t].level=u,o[t].nesting>0&&u++,o[t].type==="text"&&t+1<s&&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 Ls=[["text",a_],["linkify",f_],["newline",d_],["escape",p_],["backticks",h_],["strikethrough",Gc.tokenize],["emphasis",Zc.tokenize],["link",__],["image",y_],["autolink",w_],["html_inline",S_],["entity",A_]],Rs=[["balance_pairs",F_],["strikethrough",Gc.postProcess],["emphasis",Zc.postProcess],["fragments_join",M_]];function lo(){this.ruler=new xt;for(let e=0;e<Ls.length;e++)this.ruler.push(Ls[e][0],Ls[e][1]);this.ruler2=new xt;for(let e=0;e<Rs.length;e++)this.ruler2.push(Rs[e][0],Rs[e][1])}lo.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),u=n.length,o=e.md.options.maxNesting,s=e.cache;if(typeof s[t]<"u"){e.pos=s[t];return}let r=!1;if(e.level<o){for(let i=0;i<u;i++)if(e.level++,r=n[i](e,!0),e.level--,r){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;r||e.pos++,s[t]=e.pos};lo.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,u=e.posMax,o=e.md.options.maxNesting;for(;e.pos<u;){const s=e.pos;let r=!1;if(e.level<o){for(let i=0;i<n;i++)if(r=t[i](e,!1),r){if(s>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(r){if(e.pos>=u)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};lo.prototype.parse=function(e,t,n,u){const o=new this.State(e,t,n,u);this.tokenize(o);const s=this.ruler2.getRules(""),r=s.length;for(let i=0;i<r;i++)s[i](o)};lo.prototype.State=io;function I_(e){const t={};e=e||{},t.src_Any=Rc.source,t.src_Cc=Oc.source,t.src_Z=Bc.source,t.src_P=jr.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 cr(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(u){e[u]=n[u]})}),e}function cs(e){return Object.prototype.toString.call(e)}function P_(e){return cs(e)==="[object String]"}function L_(e){return cs(e)==="[object Object]"}function R_(e){return cs(e)==="[object RegExp]"}function Tl(e){return cs(e)==="[object Function]"}function O_(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Jc={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function z_(e){return Object.keys(e||{}).reduce(function(t,n){return t||Jc.hasOwnProperty(n)},!1)}const B_={"http:":{validate:function(e,t,n){const u=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(u)?u.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const u=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(u)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:u.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const u=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(u)?u.match(n.re.mailto)[0].length:0}}},N_="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]",H_="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function j_(e){e.__index__=-1,e.__text_cache__=""}function q_(e){return function(t,n){const u=t.slice(n);return e.test(u)?u.match(e)[0].length:0}}function Dl(){return function(e,t){t.normalize(e)}}function Bo(e){const t=e.re=I_(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(N_),n.push(t.src_xn),t.src_tlds=n.join("|");function u(i){return i.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");const o=[];e.__compiled__={};function s(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,L_(l)){R_(l.validate)?a.validate=q_(l.validate):Tl(l.validate)?a.validate=l.validate:s(i,l),Tl(l.normalize)?a.normalize=l.normalize:l.normalize?s(i,l):a.normalize=Dl();return}if(P_(l)){o.push(i);return}s(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:Dl()};const r=Object.keys(e.__compiled__).filter(function(i){return i.length>0&&e.__compiled__[i]}).map(O_).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"),j_(e)}function V_(e,t){const n=e.__index__,u=e.__last_index__,o=e.__text_cache__.slice(n,u);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=u+t,this.raw=o,this.text=o,this.url=o}function fr(e,t){const n=new V_(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function St(e,t){if(!(this instanceof St))return new St(e,t);t||z_(e)&&(t=e,e={}),this.__opts__=cr({},Jc,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=cr({},B_,e),this.__compiled__={},this.__tlds__=H_,this.__tlds_replaced__=!1,this.re={},Bo(this)}St.prototype.add=function(t,n){return this.__schemas__[t]=n,Bo(this),this};St.prototype.set=function(t){return this.__opts__=cr(this.__opts__,t),this};St.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,u,o,s,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(s=this.testSchemaAt(t,n[2],l.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(a=t.search(this.re.host_fuzzy_test),a>=0&&(this.__index__<0||a<this.__index__)&&(u=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(r=u.index+u[1].length,(this.__index__<0||r<this.__index__)&&(this.__schema__="",this.__index__=r,this.__last_index__=u.index+u[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(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};St.prototype.pretest=function(t){return this.re.pretest.test(t)};St.prototype.testSchemaAt=function(t,n,u){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,u,this):0};St.prototype.match=function(t){const n=[];let u=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(fr(this,u)),u=this.__last_index__);let o=u?t.slice(u):t;for(;this.test(o);)n.push(fr(this,u)),o=o.slice(this.__last_index__),u+=this.__last_index__;return n.length?n:null};St.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const u=this.testSchemaAt(t,n[2],n[0].length);return u?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+u,fr(this,0)):null};St.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(u,o,s){return u!==s[o-1]}).reverse(),Bo(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Bo(this),this)};St.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};St.prototype.onCompile=function(){};const iu=2147483647,Zt=36,Kr=1,Qu=26,U_=38,W_=700,Yc=72,Xc=128,Qc="-",K_=/^xn--/,G_=/[^\0-\x7F]/,Z_=/[\x2E\u3002\uFF0E\uFF61]/g,J_={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Os=Zt-Kr,Jt=Math.floor,zs=String.fromCharCode;function Sn(e){throw new RangeError(J_[e])}function Y_(e,t){const n=[];let u=e.length;for(;u--;)n[u]=t(e[u]);return n}function e0(e,t){const n=e.split("@");let u="";n.length>1&&(u=n[0]+"@",e=n[1]),e=e.replace(Z_,".");const o=e.split("."),s=Y_(o,t).join(".");return u+s}function t0(e){const t=[];let n=0;const u=e.length;for(;n<u;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<u){const s=e.charCodeAt(n++);(s&64512)==56320?t.push(((o&1023)<<10)+(s&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}const X_=e=>String.fromCodePoint(...e),Q_=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Zt},Al=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},n0=function(e,t,n){let u=0;for(e=n?Jt(e/W_):e>>1,e+=Jt(e/t);e>Os*Qu>>1;u+=Zt)e=Jt(e/Os);return Jt(u+(Os+1)*e/(e+U_))},u0=function(e){const t=[],n=e.length;let u=0,o=Xc,s=Yc,r=e.lastIndexOf(Qc);r<0&&(r=0);for(let i=0;i<r;++i)e.charCodeAt(i)>=128&&Sn("not-basic"),t.push(e.charCodeAt(i));for(let i=r>0?r+1:0;i<n;){const l=u;for(let c=1,d=Zt;;d+=Zt){i>=n&&Sn("invalid-input");const m=Q_(e.charCodeAt(i++));m>=Zt&&Sn("invalid-input"),m>Jt((iu-u)/c)&&Sn("overflow"),u+=m*c;const g=d<=s?Kr:d>=s+Qu?Qu:d-s;if(m<g)break;const b=Zt-g;c>Jt(iu/b)&&Sn("overflow"),c*=b}const a=t.length+1;s=n0(u-l,a,l==0),Jt(u/a)>iu-o&&Sn("overflow"),o+=Jt(u/a),u%=a,t.splice(u++,0,o)}return String.fromCodePoint(...t)},o0=function(e){const t=[];e=t0(e);const n=e.length;let u=Xc,o=0,s=Yc;for(const l of e)l<128&&t.push(zs(l));const r=t.length;let i=r;for(r&&t.push(Qc);i<n;){let l=iu;for(const c of e)c>=u&&c<l&&(l=c);const a=i+1;l-u>Jt((iu-o)/a)&&Sn("overflow"),o+=(l-u)*a,u=l;for(const c of e)if(c<u&&++o>iu&&Sn("overflow"),c===u){let d=o;for(let m=Zt;;m+=Zt){const g=m<=s?Kr:m>=s+Qu?Qu:m-s;if(d<g)break;const b=d-g,w=Zt-g;t.push(zs(Al(g+b%w,0))),d=Jt(b/w)}t.push(zs(Al(d,0))),s=n0(o,a,i===r),o=0,++i}++o,++u}return t.join("")},e3=function(e){return e0(e,function(t){return K_.test(t)?u0(t.slice(4).toLowerCase()):t})},t3=function(e){return e0(e,function(t){return G_.test(t)?"xn--"+o0(t):t})},s0={version:"2.3.1",ucs2:{decode:t0,encode:X_},decode:u0,encode:o0,toASCII:t3,toUnicode:e3},n3={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},u3={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"]}}},s3={default:n3,zero:u3,commonmark:o3},r3=/^(vbscript|javascript|file|data):/,i3=/^data:image\/(gif|png|jpeg|webp);/;function l3(e){const t=e.trim().toLowerCase();return r3.test(t)?i3.test(t):!0}const r0=["http:","https:","mailto:"];function a3(e){const t=Hr(e,!0);if(t.hostname&&(!t.protocol||r0.indexOf(t.protocol)>=0))try{t.hostname=s0.toASCII(t.hostname)}catch{}return ro(Nr(t))}function c3(e){const t=Hr(e,!0);if(t.hostname&&(!t.protocol||r0.indexOf(t.protocol)>=0))try{t.hostname=s0.toUnicode(t.hostname)}catch{}return fu(Nr(t),fu.defaultChars+"%")}function It(e,t){if(!(this instanceof It))return new It(e,t);t||qr(e)||(t=e||{},e="default"),this.inline=new lo,this.block=new as,this.core=new Ur,this.renderer=new pu,this.linkify=new St,this.validateLink=l3,this.normalizeLink=a3,this.normalizeLinkText=c3,this.utils=db,this.helpers=is({},gb),this.options={},this.configure(e),t&&this.set(t)}It.prototype.set=function(e){return is(this.options,e),this};It.prototype.configure=function(e){const t=this;if(qr(e)){const n=e;if(e=s3[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};It.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 u=e.filter(function(o){return n.indexOf(o)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this};It.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 u=e.filter(function(o){return n.indexOf(o)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this};It.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};It.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};It.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};It.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};It.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const f3={class:"detail-header"},d3={class:"header-top"},p3={class:"nav-btns"},h3=["disabled"],m3=["disabled"],g3={key:0,class:"header-meta"},v3={class:"detail-tabs"},b3={key:0,class:"block-sep"},_3={key:0,class:"params-table"},y3={class:"params-key"},x3={class:"params-val"},k3=["innerHTML"],w3=["innerHTML"],C3=["innerHTML"],$3={class:"raw-header"},E3=["innerHTML"],S3={class:"detail-footer"},T3={class:"meta-key"},D3=["title"],Fl=5e4,Ml=500,A3=2e4,F3=450,M3=tt({__name:"DetailPane",props:{entry:{},messages:{},selectedIndex:{}},emits:["close","navigate"],setup(e,{emit:t}){const n=new It({html:!1,linkify:!0,typographer:!1,breaks:!0}),u=e,o=t,s=me("rendered"),r=me(!1),i=me(null);let l=null,a=null;const c=new Map,d=new Set,m=me(0),g=L(()=>{var f;return((f=u.messages[u.selectedIndex])==null?void 0:f.msg)??null}),b=L(()=>rs(u.entry.contextInfo.messages||[])),w=L(()=>{const f=g.value;if(!f)return"";const h=Ot(f);let D=(ut[h]||{label:h}).label;if(f.contentBlocks)for(const z of f.contentBlocks){if(z.type==="tool_use"){D=`Tool Call — ${z.name||"unknown"}`;break}if(z.type==="tool_result"){const K=z.tool_use_id?b.value[z.tool_use_id]:null;D=`Tool Result${K?" — "+K:""}`;break}if(z.type==="thinking"){D="Thinking";break}}return D}),_=L(()=>{if(!g.value)return"";const f=Ot(g.value);return(ut[f]||{color:"#4b5563"}).color}),C=L(()=>!g.value||!u.entry.contextInfo.totalTokens?"0":((g.value.tokens||0)/u.entry.contextInfo.totalTokens*100).toFixed(1)),M=L(()=>u.selectedIndex>0),I=L(()=>u.selectedIndex<u.messages.length-1);Ze(()=>u.selectedIndex,()=>{s.value="rendered",r.value=!1,Je(()=>{i.value&&(i.value.scrollTop=0)}),Je(()=>{Y()})}),Ze([s,r],()=>{Je(()=>{Y()})}),Ze(g,()=>{Je(()=>{Y()})},{immediate:!0});function $(f){const h=u.selectedIndex+f;h>=0&&h<u.messages.length&&o("navigate",h)}function R(f){f.key==="Escape"&&(o("close"),f.preventDefault()),(f.key==="ArrowUp"||f.key==="k")&&($(-1),f.preventDefault()),(f.key==="ArrowDown"||f.key==="j")&&($(1),f.preventDefault())}const T=me("Copy");async function oe(){if(!g.value)return;const f=s.value==="raw"?JSON.stringify(Ts(g.value),null,2):ph(g.value);await navigator.clipboard.writeText(f),T.value="Copied!",setTimeout(()=>{T.value="Copy"},1500)}function ue(f){if(r.value)return{text:f,truncated:!1};if(f.length>Fl)return{text:f.slice(0,Fl),truncated:!0};const h=f.split(`
|
|
44
|
-
`);return h.length>Ml?{text:h.slice(0,Ml).join(`
|
|
45
|
-
`),truncated:!0}:{text:f,truncated:!1}}function J(f){let h=2166136261;for(let v=0;v<f.length;v++)h^=f.charCodeAt(v),h=Math.imul(h,16777619);return(h>>>0).toString(36)}function ee(f){return f.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ve(f,h,v){let D="",z=0;h.lastIndex=0;let se=h.exec(f);for(;se;){const K=se.index,pe=se[0];D+=ee(f.slice(z,K)),D+=v(pe,K),z=K+pe.length,se=h.exec(f)}return D+=ee(f.slice(z)),D}function q(f){return ve(f,/"(?:\\.|[^"\\])*"(?=\s*:)?|"(?:\\.|[^"\\])*"|\btrue\b|\bfalse\b|\bnull\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,(v,D)=>{if(v.startsWith('"')){const z=f.slice(D+v.length);return`<span class="${/^\s*:/.test(z)?"syn-key":"syn-str"}">${ee(v)}</span>`}return v==="true"||v==="false"?`<span class="syn-bool">${v}</span>`:v==="null"?`<span class="syn-null">${v}</span>`:`<span class="syn-num">${v}</span>`})}function ce(f){return ve(f,/<!--[\s\S]*?-->|<\/?[\w:.-]+(?:\s+[\w:.-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'))?)*\s*\/?>/g,v=>{if(v.startsWith("<!--"))return`<span class="syn-com">${ee(v)}</span>`;const D=/^<(\/?)([\w:.-]+)([\s\S]*?)(\/?)>$/.exec(v);if(!D)return`<span class="syn-tag">${ee(v)}</span>`;const z=D[1]?"/":"",se=D[2],K=D[3]||"",pe=D[4]?"/":"";let Q="";const Ce=/([\w:.-]+)(\s*=\s*)(".*?"|'.*?')/g;let ge=0,xe=Ce.exec(K);for(;xe;)Q+=ee(K.slice(ge,xe.index)),Q+=`<span class="syn-attr">${ee(xe[1])}</span>`,Q+=ee(xe[2]),Q+=`<span class="syn-str">${ee(xe[3])}</span>`,ge=xe.index+xe[0].length,xe=Ce.exec(K);return Q+=ee(K.slice(ge)),`<span class="syn-punc"><${z}</span><span class="syn-tag">${ee(se)}</span>${Q}<span class="syn-punc">${pe}></span>`})}function te(f){return ve(f,/```[\s\S]*?```|`[^`\n]+`|^#{1,6}\s.+$|^\s*[-*+]\s.+$|^\s*\d+\.\s.+$|^>\s.+$|\*\*[^*\n]+\*\*|__[^_\n]+__|\*[^*\n]+\*|_[^_\n]+_|~~[^~\n]+~~|\[[^\]]+\]\([^)]+\)/gm,v=>v.startsWith("```")||v.startsWith("`")?`<span class="syn-code">${ee(v)}</span>`:v.startsWith("#")?`<span class="syn-heading">${ee(v)}</span>`:/^\s*[-*+]\s/.test(v)||/^\s*\d+\.\s/.test(v)?`<span class="syn-list">${ee(v)}</span>`:v.startsWith(">")?`<span class="syn-quote">${ee(v)}</span>`:v.startsWith("[")?`<span class="syn-link">${ee(v)}</span>`:`<span class="syn-em">${ee(v)}</span>`)}function E(f){return ve(f,/\/\/.*$|\/\*[\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,v=>v.startsWith("//")||v.startsWith("/*")?`<span class="syn-com">${ee(v)}</span>`:v.startsWith('"')||v.startsWith("'")||v.startsWith("`")?`<span class="syn-str">${ee(v)}</span>`:/^-?\d/.test(v)?`<span class="syn-num">${v}</span>`:v==="true"||v==="false"?`<span class="syn-bool">${v}</span>`:v==="null"||v==="undefined"?`<span class="syn-null">${v}</span>`:`<span class="syn-keyword">${v}</span>`)}function X(f){const h=f.trim();if(!(h.startsWith("{")||h.startsWith("[")))return!1;try{return JSON.parse(h),!0}catch{return!1}}function ie(f){const h=f.trim();return h.startsWith("<")?/<[\w:.-]+[\s>]/.test(h)&&/<\/[\w:.-]+>/.test(h):!1}function W(f){return/(^#{1,6}\s)|(^\s*[-*+]\s)|(^\s*\d+\.\s)|(```)|(`[^`\n]+`)|(\[[^\]]+\]\([^)]+\))|(^>\s)|(\*\*[^*\n]+\*\*)/m.test(f)}function fe(f){return/[{}();]|(^\s*(const|let|var|function|if|for|while|class|import|export)\s)/m.test(f)}function ye(f,h=!1){return h||X(f)?"json":ie(f)?"xml":W(f)?"markdown":fe(f)?"code":"text"}function j(f){return f==="text"||f==="input_text"||f==="thinking"}function A(f){return n.render(f)}function P(f,h=!1){const v=ye(f,h);return v==="json"?q(f):v==="xml"?ce(f):v==="markdown"?te(f):v==="code"?E(f):ee(f)}function ne(f){return f==="json"?"json":f==="xml"?"xml":f==="markdown"?"markdown":f==="code"?"typescript":null}function le(f,h){return!(h==="text"||f.length>A3||f.split(`
|
|
46
|
-
`).length>F3)}async function S(){if(!l){if(a)return a;a=(async()=>{const{createHighlighterCore:f}=await Ne(async()=>{const{createHighlighterCore:v}=await import("./core-IjjuPsJe.js");return{createHighlighterCore:v}},[]),{createOnigurumaEngine:h}=await Ne(async()=>{const{createOnigurumaEngine:v}=await import("./engine-oniguruma-KVl37NQr.js");return{createOnigurumaEngine:v}},[]);l=await f({engine:h(Ne(()=>import("./wasm-CG6Dc4jp.js"),[])),themes:[Ne(()=>import("./github-dark-DHJKELXO.js"),[])],langs:[Ne(()=>import("./json-Cp-IABpG.js"),[]),Ne(()=>import("./jsonc-Des-eS-w.js"),[]),Ne(()=>import("./yaml-Buea-lGh.js"),[]),Ne(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([0,1])),Ne(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([2,3,4])),Ne(()=>import("./css-DPfMkruS.js"),[]),Ne(()=>import("./markdown-Cvjx9yec.js"),[]),Ne(()=>import("./typescript-BPQ3VLAy.js"),[]),Ne(()=>import("./javascript-wDzz0qaB.js"),[]),Ne(()=>import("./jsx-g9-lgVsj.js"),[]),Ne(()=>import("./tsx-COt5Ahok.js"),[]),Ne(()=>import("./python-B6aJPvgy.js"),[]),Ne(()=>import("./shellscript-Yzrsuije.js"),[]),Ne(()=>import("./sql-BLtJtn59.js"),[]),Ne(()=>import("./diff-D97Zzqfu.js"),[]),Ne(()=>import("./toml-vGWfd6FD.js"),[]),Ne(()=>import("./rust-B1yitclQ.js"),[]),Ne(()=>import("./go-CxLEBnE3.js"),[]),Ne(()=>import("./c-BIGW1oBm.js"),[]),Ne(()=>import("./cpp-BRuaLJcg.js"),__vite__mapDeps([5,6,7])),Ne(()=>import("./java-CylS5w8V.js"),[]),Ne(()=>import("./ruby-CkRbH_-r.js"),__vite__mapDeps([8,2,3,4,0,1,7,9,10,11,12,5,6,13,14])),Ne(()=>import("./php-Dhbhpdrm.js"),__vite__mapDeps([15,2,3,4,0,1,7,16])),Ne(()=>import("./swift-Dg5xB15N.js"),[]),Ne(()=>import("./kotlin-BdnUsdx6.js"),[]),Ne(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([9,3,10,11,12])),Ne(()=>import("./dockerfile-BcOcwvcX.js"),[])]})})(),await a}}async function B(f,h,v){if(!le(f,h)||c.has(v)||d.has(v))return;const D=ne(h);if(D){d.add(v);try{if(await S(),!l)return;const z=l.codeToHtml(f,{lang:D,theme:"github-dark"});c.set(v,z),m.value+=1}catch{}finally{d.delete(v)}}}function Z(f,h=!1){m.value;const v=ye(f,h),D=`${v}:${J(f)}`;if(le(f,v)){const z=c.get(D);if(z)return z;B(f,v,D)}return P(f,h)}function Y(){const f=g.value;if(!f)return;if(s.value==="raw"){const v=JSON.stringify(Ts(f),null,2),D=ue(v).text,z=ye(D,!0);B(D,z,`${z}:${J(D)}`);return}const h=H();for(const v of h){const D=ue(v.content).text,z=ye(D,v.isJson);B(D,z,`${z}:${J(D)}`)}}function O(f){const h=Object.entries(f);if(h.length===0)return null;const v=[];for(const[D,z]of h){if(z==null){v.push([D,"null"]);continue}if(typeof z=="boolean"||typeof z=="number"){v.push([D,String(z)]);continue}if(typeof z=="string"){if(z.length>120||z.includes(`
|
|
47
|
-
`))return null;v.push([D,z]);continue}return null}return v}function H(){const f=g.value;if(!f)return[];const h=f.contentBlocks;return h&&h.length>0?h.map(v=>{if(v.type==="tool_use"){const z=v.input&&typeof v.input=="object"&&!Array.isArray(v.input)?v.input:null,se=z?O(z):null,K=z?JSON.stringify(z,null,2):"{}";return{type:"tool_use",label:`tool_use: ${v.name||"?"}`,labelClass:"lbl-tool-use",content:K,isJson:!0,toolParams:se}}if(v.type==="tool_result"){const z=v.tool_use_id?b.value[v.tool_use_id]:null,se=typeof v.content=="string"?v.content:JSON.stringify(v.content,null,2);return{type:"tool_result",label:`tool_result${z?": "+z:""}`,labelClass:"lbl-tool-result",content:se,isJson:!1}}const D=v;return D.type==="thinking"?{type:"thinking",label:"thinking",labelClass:"lbl-thinking",content:D.thinking||D.text||"",isJson:!1}:v.type==="text"||v.type==="input_text"?{type:v.type,label:v.type,labelClass:"lbl-text",content:v.text||"",isJson:!1}:v.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: ${v.type||"unspecified"}]`,isJson:!1}}):[{type:"text",label:"",labelClass:"",content:f.content||"",isJson:!1}]}const y=L(()=>{const f=g.value;if(!f)return[];const h=[["Role",f.role],["Tokens",we(f.tokens||0)],["% context",C.value+"%"],["Model",u.entry.contextInfo.model||"?"]];if(f.contentBlocks){for(const v of f.contentBlocks)if(v.type==="tool_use"&&(h.push(["tool_use_id",v.id||"?"]),h.push(["tool_name",v.name||"?"])),v.type==="tool_result"&&v.tool_use_id){h.push(["tool_use_id",v.tool_use_id]);const D=b.value[v.tool_use_id];D&&h.push(["tool_name",D])}}return h.push(["Position",`${u.selectedIndex+1} / ${u.messages.length}`]),h});return(f,h)=>{const v=zn("tooltip");return x(),k("div",{class:"detail",tabindex:"0",onKeydown:R},[p("div",f3,[p("div",d3,[p("span",{class:"detail-title",style:Ae({color:_.value})},F(w.value),5),p("div",p3,[qe((x(),k("button",{disabled:!M.value,onClick:h[0]||(h[0]=D=>$(-1))},[...h[6]||(h[6]=[p("i",{class:"i-carbon-chevron-up"},null,-1)])],8,h3)),[[v,"↑ Previous"]]),qe((x(),k("button",{disabled:!I.value,onClick:h[1]||(h[1]=D=>$(1))},[...h[7]||(h[7]=[p("i",{class:"i-carbon-chevron-down"},null,-1)])],8,m3)),[[v,"↓ Next"]])]),qe((x(),k("button",{class:"close-btn",onClick:h[2]||(h[2]=D=>f.$emit("close"))},[...h[8]||(h[8]=[p("i",{class:"i-carbon-close"},null,-1)])])),[[v,"Close (Esc)"]])]),g.value?(x(),k("div",g3,[p("span",null,[p("b",null,F(g.value.role),1)]),p("span",null,F(G(we)(g.value.tokens||0))+" tok",1),p("span",null,F(C.value)+"%",1),p("span",null,F(e.selectedIndex+1)+"/"+F(e.messages.length),1)])):ae("",!0)]),p("div",v3,[p("button",{class:de({on:s.value==="rendered"}),onClick:h[3]||(h[3]=D=>s.value="rendered")},"Rendered",2),p("button",{class:de({on:s.value==="raw"}),onClick:h[4]||(h[4]=D=>s.value="raw")},"Raw",2)]),p("div",{ref_key:"contentEl",ref:i,class:"detail-body"},[s.value==="rendered"&&g.value?(x(!0),k(he,{key:0},Se(H(),(D,z)=>(x(),k(he,{key:z},[z>0?(x(),k("hr",b3)):ae("",!0),D.label?(x(),k("div",{key:1,class:de(["block-label",D.labelClass])},F(D.label),3)):ae("",!0),D.type==="tool_use"?(x(),k(he,{key:2},[D.toolParams?(x(),k("table",_3,[p("tbody",null,[(x(!0),k(he,null,Se(D.toolParams,([se,K])=>(x(),k("tr",{key:se},[p("td",y3,F(se),1),p("td",x3,F(K),1)]))),128))])])):(x(),k("div",{key:1,class:"block-content syntax rich-html kind-json",innerHTML:Z(ue(D.content).text,!0)},null,8,k3))],64)):j(D.type)?(x(),k("div",{key:3,class:"block-content md-rendered",innerHTML:A(ue(D.content).text)},null,8,w3)):(x(),k("div",{key:4,class:de(["block-content syntax rich-html",`kind-${ye(ue(D.content).text,D.isJson)}`]),innerHTML:Z(ue(D.content).text,D.isJson)},null,10,C3)),ue(D.content).truncated?(x(),k("button",{key:5,class:"show-more",onClick:h[5]||(h[5]=se=>r.value=!0)}," Show full content… ")):ae("",!0)],64))),128)):s.value==="raw"&&g.value?(x(),k(he,{key:1},[p("div",$3,[p("button",{class:de(["copy-btn",{copied:T.value==="Copied!"}]),onClick:oe},[h[9]||(h[9]=p("i",{class:"i-carbon-copy"},null,-1)),$e(" "+F(T.value),1)],2)]),p("div",{class:"block-content syntax rich-html kind-json",innerHTML:Z(JSON.stringify(G(Ts)(g.value),null,2),!0)},null,8,E3)],64)):ae("",!0)],512),p("div",S3,[h[10]||(h[10]=p("div",{class:"meta-header"},"Metadata",-1)),(x(!0),k(he,null,Se(y.value,([D,z])=>(x(),k(he,{key:D},[p("span",T3,F(D),1),p("span",{class:"meta-val",title:z},F(z),9,D3)],64))),128))])],32)}}}),I3=at(M3,[["__scopeId","data-v-02c22b5e"]]),P3={class:"msg-toolbar"},L3={class:"message-view-toggle"},R3={key:0,class:"message-view-toggle agent-toggle"},O3={key:0,class:"heavy-strip"},z3={class:"heavy-actions"},B3=["onClick"],N3={class:"heavy-category"},H3={class:"heavy-preview"},j3={class:"heavy-tokens"},q3={key:1,class:"focus-strip"},V3={key:0},U3={key:1},W3=["data-category"],K3=["onClick"],G3={class:"group-name"},Z3={class:"group-stats"},J3={class:"group-bar-track"},Y3=["data-tool-name","onClick"],X3={class:"msg-role"},Q3={class:"msg-preview"},ey={key:0,class:"focus-strip"},ty={class:"focus-file-name"},ny={class:"focus-file-count"},uy={class:"chrono-list"},oy=["onClick"],sy={class:"chrono-gutter subagent-gutter"},ry={class:"chrono-preview subagent-preview"},iy={class:"chrono-tok subagent-model"},ly={class:"chrono-turn-label"},ay={key:2,class:"chrono-future-sep"},cy=["onClick"],fy={class:"chrono-gutter"},dy={class:"chrono-type"},py={class:"chrono-preview"},hy=tt({__name:"MessagesTab",setup(e){const t=Tt(),n=L(()=>t.selectedEntry),u=L(()=>t.selectedSession),{isExpanded:o,toggle:s,expand:r}=wv(),i=me(null),l=me("chrono"),a=me(!1),c=me(0),d=me(null),m=me(1),g=me(null),b=me([]),w=me(0),_=L(()=>rs(M.value)),C=L(()=>{const U=u.value;return!U||U.entries.length<=1?!1:hn([...U.entries].reverse()).some(be=>!be.isMain)}),M=L(()=>{var V;if(!n.value)return[];t.entryDetailVersion;const U=t.getEntryDetail(n.value.id);return(V=U==null?void 0:U.messages)!=null&&V.length?U.messages:n.value.contextInfo.messages||[]}),I=L(()=>!u.value||u.value.entries.length===0?null:u.value.entries[0]),$=L(()=>{var V;if(!I.value)return[];t.entryDetailVersion;const U=t.getEntryDetail(I.value.id);return(V=U==null?void 0:U.messages)!=null&&V.length?U.messages:I.value.contextInfo.messages||[]}),R=L(()=>M.value.length),T=L(()=>t.selectionMode!=="pinned"?!1:$.value.length>R.value),oe=L(()=>{if(!T.value)return M.value.map((V,be)=>({msg:V,origIdx:be,future:!1}));const U=[];for(let V=0;V<M.value.length;V++)U.push({msg:M.value[V],origIdx:V,future:!1});for(let V=M.value.length;V<$.value.length;V++)U.push({msg:$.value[V],origIdx:V,future:!0});return U}),ue=L(()=>{const U=oe.value,V=new Set;U.length>0&&V.add(0);let be=!1;for(let re=0;re<U.length;re++){const ke=U[re].msg.role;ke==="assistant"?be=!0:ke==="user"&&be&&(V.add(re),be=!1)}return V}),J=L(()=>{const U=u.value,V=n.value;if(!U||!V||t.messagesMode!=="all")return new Map;const be=hn([...U.entries].reverse()),re=[],ke=[];let Fe=[];for(const ze of be)ze.isMain?(re.push(ze.entry),re.length>1&&ke.push([...Fe]),Fe=[]):re.length>0&&Fe.push(ze.entry);ke.push([...Fe]);const Me=re.findIndex(ze=>ze.id===V.id);if(Me<0)return new Map;const ft=Array.from(ue.value).sort((ze,Ye)=>ze-Ye),Pt=q.value,Bn=new Map;for(let ze=0;ze<=Me&&ze<ke.length;ze++){const Ye=ke[ze];if(Ye.length===0)continue;const et=ze+1-Pt;et<0||et<ft.length&&Bn.set(ft[et],Ye)}return Bn}),ee=L(()=>{const U=u.value,V=n.value;if(!U||!V)return 1;const be=hn([...U.entries].reverse());let re=0;for(const ke of be)if(ke.isMain&&re++,ke.entry.id===V.id)return re;return 1}),ve=L(()=>{const U=R.value;let V=0;for(const be of ue.value)be<U&&V++;return V}),q=L(()=>Math.max(0,ee.value-ve.value)),ce=L(()=>{const U=new Map;let V=q.value;for(const be of ue.value)V++,U.set(be,V);return U}),te=L(()=>Dc(M.value)),E=L(()=>{if(l.value==="chrono")return ye.value;const U=[];for(const V of te.value)for(const be of V.items)U.push(be);return U}),X=L(()=>g.value!==null),ie=L(()=>X.value?g.value:n.value),W=L(()=>X.value?b.value:E.value),fe=L(()=>X.value?w.value:c.value),ye=L(()=>M.value.map((U,V)=>({msg:U,origIdx:V}))),j=L(()=>{const U=[];let V=0;for(const be of oe.value)be.future||(V+=be.msg.tokens||0),U.push(V);return U}),A=L(()=>{var U;return((U=n.value)==null?void 0:U.contextInfo.totalTokens)??0}),P=L(()=>{const U=[];for(const V of te.value)for(const be of V.items)U.push({origIdx:be.origIdx,category:V.category,preview:Ss(be.msg,_.value)||"(empty)",tokens:be.msg.tokens||0});return U.filter(V=>V.tokens>0).sort((V,be)=>be.tokens-V.tokens).slice(0,3)}),ne=L(()=>t.messageFocusTool),le=L(()=>t.messageFocusCategory),S=L(()=>t.messageFocusFile),B=L(()=>{var re;const U=t.messageFocusCategory;if(!U)return null;const V=new Set(te.value.map(ke=>ke.category));if(V.has(U))return U;const be={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 ke of be[U]||[])if(V.has(ke))return ke;return((re=te.value[0])==null?void 0:re.category)??null}),Z=L(()=>!!le.value&&!!B.value&&le.value!==B.value);function Y(){g.value=null,b.value=[]}function O(U){Y(),c.value=U,h(U),a.value=!0}function H(){a.value=!1,Y()}function y(U){U.key==="Escape"&&a.value&&(H(),U.preventDefault(),U.stopPropagation())}function f(U){var ke;const V=(U.contentBlocks||[])[0];if(!V)return`${U.role}|${U.tokens||0}|${((ke=U.content)==null?void 0:ke.slice(0,160))||""}`;if(V.type==="tool_result"){const Fe=typeof V.content=="string"?V.content:JSON.stringify(V.content||"");return`${U.role}|${U.tokens||0}|tool_result|${V.tool_use_id||""}|${Fe.slice(0,160)}`}if(V.type==="tool_use")return`${U.role}|${U.tokens||0}|tool_use|${V.id||""}|${V.name||""}|${JSON.stringify(V.input||{}).slice(0,120)}`;const be=V,re=String(be.text||be.thinking||"").slice(0,160);return`${U.role}|${U.tokens||0}|${String(be.type||"other")}|${re}`}function h(U){const V=E.value[U];if(!V)return;const be=f(V.msg);d.value=be;let re=0;for(let ke=0;ke<=U;ke++)f(E.value[ke].msg)===be&&(re+=1);m.value=Math.max(1,re)}function v(){const U=d.value;if(!U)return-1;let V=0;for(let be=0;be<E.value.length;be++)if(f(E.value[be].msg)===U&&(V+=1,V===m.value))return be;return-1}function D(U){X.value?w.value=U:(c.value=U,h(U))}function z(U,V){let be=0;for(let re=0;re<te.value.length;re++){if(re===U)return be+V;be+=te.value[re].items.length}return 0}function se(U){const V=E.value.findIndex(be=>be.origIdx===U);if(V>=0){if(l.value==="category"){const be=M.value[U];if(be){const re=Ot(be);r(re)}}O(V)}}function K(U){const V=Ot(U);return(ut[V]||{color:"#4b5563"}).color}function pe(U){const V=Ot(U);return(ut[V]||{label:V}).label}function Q(U){var re;if(!u.value)return;const V=u.value.entries;let be=null;for(let ke=V.length-1;ke>=0;ke--)if((((re=V[ke].contextInfo.messages)==null?void 0:re.length)??0)>U){be=V[ke];break}be||(be=V[0]),t.pinEntry(be.id)}async function Ce(U){var Fe;const V=u.value;if(!V)return;const be=V.entries.find(Me=>Me.id===U);if(!be)return;await t.loadEntryDetail(U),t.entryDetailVersion;const re=t.getEntryDetail(U),ke=(Fe=re==null?void 0:re.messages)!=null&&Fe.length?re.messages:be.contextInfo.messages||[];g.value=be,b.value=ke.map((Me,ft)=>({msg:Me,origIdx:ft})),w.value=0,a.value=!0}function ge(U){if(Ot(U)!=="tool_results")return null;for(const V of U.contentBlocks||[])if(V.type==="tool_result")return V.tool_use_id&&_.value[V.tool_use_id]||null;return null}function xe(U){const V=ne.value;if(!V)return{};const be=ge(U);if(!be)return{"tool-muted":!0};const re=be.trim().toLowerCase(),ke=V.trim().toLowerCase();return{"tool-focused":re===ke,"tool-muted":re!==ke}}async function Te(){const U=B.value,V=t.messageFocusIndex,be=t.messageFocusOpenDetail,re=t.messageFocusTool,ke=t.messageFocusFile;t.clearMessageFocus();const Fe=V;if(Fe!=null){if(l.value==="chrono"){for(let ze=0;ze<4;ze++){await Je(),se(Fe),await Je();const Ye=i.value;if(Ye){const N=Array.from(Ye.querySelectorAll(".chrono-row")).find(_e=>_e.classList.contains("selected"));if(N){N.scrollIntoView({block:"center",behavior:"smooth"});return}}}return}for(let ze=0;ze<4;ze++){await Je();for(const Ye of te.value)if(Ye.items.find(N=>N.origIdx===Fe)){r(Ye.category),await Je(),await Je(),se(Fe),await Je();const N=i.value;if(N){const Ee=Array.from(N.querySelectorAll(".msg-row")).find(Ue=>Ue.classList.contains("selected"));Ee&&Ee.scrollIntoView({block:"center",behavior:"smooth"})}return}}return}if(ke){t.messageFocusFile=ke,l.value="chrono",await Je();const ze=M.value,Ye=new Set;for(const N of ze)if(N.contentBlocks){for(const _e of N.contentBlocks)if(_e.type==="tool_use"){const Ee=_e;nt(Ee)===ke&&Ye.add(Ee.id)}}let et=-1;for(let N=0;N<ze.length;N++){const _e=ze[N];if(_e.contentBlocks){for(const Ee of _e.contentBlocks){if(Ee.type==="tool_result"&&Ye.has(Ee.tool_use_id)){et=N;break}if(Ee.type==="tool_use"&&nt(Ee)===ke&&et<0){et=N;break}}if(et>=0)break}}if(et>=0)for(let N=0;N<4;N++){await Je();const _e=i.value;if(!_e)continue;const Ee=Array.from(_e.querySelectorAll(".chrono-row"));if(Ee[et]){Ee[et].scrollIntoView({block:"center",behavior:"smooth"});return}}return}const Me=U;if(!Me)return;const ft=be;if(ft?l.value="chrono":l.value="category",l.value==="chrono"){for(let ze=0;ze<4;ze++){await Je();const Ye=i.value;if(!Ye)continue;const et=Array.from(Ye.querySelectorAll(".chrono-row"));let N=-1;for(let _e=M.value.length-1;_e>=0;_e--)if(Ot(M.value[_e])===Me){N=_e;break}if(N>=0&&et[N]){et[N].scrollIntoView({block:"center",behavior:"smooth"}),ft&&(await Je(),se(N));return}}return}let Pt=null;for(let ze=0;ze<4;ze++){if(await Je(),Pt=i.value,!Pt)continue;r(Me),await Je();const Ye=Pt.querySelector(`[data-category="${Me}"]`);if(Ye){Ye.scrollIntoView({block:"center",behavior:"smooth"});break}}if(!Pt)return;const Bn=re;if(Bn){const ze=Array.from(Pt.querySelectorAll(".msg-row")),Ye=Bn.trim().toLowerCase(),et=ze.find(N=>(N.getAttribute("data-tool-name")||"").trim().toLowerCase()===Ye);et&&et.scrollIntoView({block:"center",behavior:"smooth"})}}function Le(){t.focusMessageCategory(B.value||t.messageFocusCategory||"tool_results")}function He(){t.clearMessageFocus()}const Re=L(()=>{const U=S.value;if(!U)return new Set;const V=M.value,be=new Set,re=new Set;for(let ke=0;ke<V.length;ke++){const Fe=V[ke];if(Fe.contentBlocks){for(const Me of Fe.contentBlocks)if(Me.type==="tool_use"){const ft=Me;nt(ft)===U&&(re.add(ft.id),be.add(ke))}}}for(let ke=0;ke<V.length;ke++){const Fe=V[ke];if(Fe.contentBlocks)for(const Me of Fe.contentBlocks)Me.type==="tool_result"&&re.has(Me.tool_use_id)&&be.add(ke)}return be});function nt(U){var re;const V=U.input,be=(re=t.selectedSession)==null?void 0:re.workingDirectory;if(V&&typeof V=="object")for(const ke of["file_path","path","filePath"]){const Fe=V[ke];if(typeof Fe=="string"&&Fe.length>0){let Me=Fe.replace(/\/+/g,"/");return Me.startsWith("./")&&(Me=Me.slice(2)),Me.length>1&&Me.endsWith("/")&&(Me=Me.slice(0,-1)),Ic(Me,be)}}return null}function st(U){if(!S.value)return{};const be=Re.value;return{"file-focused":be.has(U),"file-muted":!be.has(U)}}const bt=L(()=>{const U=S.value;return U?zr(U):""});return Ze(()=>t.messageFocusToken,async()=>{await Te()},{immediate:!0}),Ze(()=>t.inspectorTab,async U=>{U==="messages"&&await Te()}),Ze(()=>{var U;return(U=n.value)==null?void 0:U.id},async U=>{U!=null&&await t.loadEntryDetail(U)},{immediate:!0}),Ze(()=>{var U;return(U=I.value)==null?void 0:U.id},async U=>{var V;U!=null&&U!==((V=n.value)==null?void 0:V.id)&&await t.loadEntryDetail(U)},{immediate:!0}),On(async()=>{t.inspectorTab==="messages"&&t.messageFocusCategory&&await Te()}),Ze(E,()=>{if(!a.value||X.value)return;const U=v();if(U>=0&&U!==c.value){c.value=U;return}c.value>=E.value.length&&(c.value=Math.max(0,E.value.length-1),h(c.value))}),(U,V)=>{const be=zn("tooltip");return n.value?(x(),k("div",{key:0,class:"messages-tab",onKeydown:y},[Pe(G(kv),{class:"default-theme","push-other-panes":!1},{default:lt(()=>[Pe(G(fl),{"min-size":25,size:a.value?42:100},{default:lt(()=>[p("div",{ref_key:"msgListEl",ref:i,class:"msg-list"},[p("div",P3,[p("div",L3,[p("button",{class:de({on:l.value==="chrono"}),onClick:V[0]||(V[0]=re=>l.value="chrono")},"Chronological",2),p("button",{class:de({on:l.value==="category"}),onClick:V[1]||(V[1]=re=>l.value="category")},"By Category",2)]),C.value&&l.value==="chrono"?(x(),k("div",R3,[p("button",{class:de({on:G(t).messagesMode==="main"}),onClick:V[2]||(V[2]=re=>G(t).messagesMode="main")},"Main",2),p("button",{class:de({on:G(t).messagesMode==="all"}),onClick:V[3]||(V[3]=re=>G(t).messagesMode="all")},"All",2)])):ae("",!0)]),l.value==="category"?(x(),k(he,{key:0},[P.value.length>0?(x(),k("div",O3,[V[4]||(V[4]=p("div",{class:"heavy-title"},"Top heavy messages",-1)),p("div",z3,[(x(!0),k(he,null,Se(P.value,re=>(x(),k("button",{key:re.origIdx,class:"heavy-action",onClick:ke=>se(re.origIdx)},[p("span",N3,F((G(ut)[re.category]||{label:re.category}).label),1),p("span",H3,F(re.preview),1),p("span",j3,F(G(we)(re.tokens)),1)],8,B3))),128))])])):ae("",!0),ne.value||Z.value?(x(),k("div",q3,[ne.value?(x(),k("span",V3,[V[5]||(V[5]=$e(" Filtered tool: ",-1)),p("b",null,F(ne.value),1)])):ae("",!0),Z.value?(x(),k("span",U3,[V[6]||(V[6]=$e(" Showing ",-1)),p("b",null,F((G(ut)[B.value||""]||{label:B.value}).label),1),V[7]||(V[7]=$e(" for ",-1)),p("b",null,F((G(ut)[le.value||""]||{label:le.value}).label),1),V[8]||(V[8]=$e(". ",-1))])):ae("",!0),ne.value?(x(),k("button",{key:2,class:"focus-clear",onClick:Ft(Le,["stop"])},"Show all")):ae("",!0)])):ae("",!0),(x(!0),k(he,null,Se(te.value,(re,ke)=>(x(),k("div",{key:re.category,class:"msg-group","data-category":re.category},[p("div",{class:"group-head",onClick:Fe=>G(s)(re.category)},[p("i",{class:de(["group-arrow",G(o)(re.category)||B.value===re.category?"i-carbon-chevron-down":"i-carbon-chevron-right"])},null,2),p("span",{class:"group-dot",style:Ae({background:(G(ut)[re.category]||{color:"#4b5563"}).color})},null,4),p("span",G3,F((G(ut)[re.category]||{label:re.category}).label),1),p("span",Z3,[$e(F(re.items.length)+" ",1),V[9]||(V[9]=p("span",{class:"group-sep"},"·",-1)),$e(" "+F(G(we)(re.tokens))+" ",1),V[10]||(V[10]=p("span",{class:"group-sep"},"·",-1)),$e(" "+F(A.value>0?Math.round(re.tokens/A.value*100):0)+"% ",1)]),p("div",J3,[p("div",{class:"group-bar-fill",style:Ae({width:(A.value>0?Math.round(re.tokens/A.value*100):0)+"%",background:(G(ut)[re.category]||{color:"#4b5563"}).color})},null,4)])],8,K3),p("div",{class:de(["group-items",{open:G(o)(re.category)||B.value===re.category}])},[(x(!0),k(he,null,Se(re.items,(Fe,Me)=>{var ft;return x(),k("div",{key:Fe.origIdx,class:de(["msg-row",[xe(Fe.msg),{selected:a.value&&!X.value&&((ft=E.value[c.value])==null?void 0:ft.origIdx)===Fe.origIdx}]]),"data-tool-name":ge(Fe.msg)||"",onClick:Pt=>O(z(ke,Me))},[p("span",X3,F(Fe.msg.role==="user"?"›":Fe.msg.role==="assistant"?"‹":"·"),1),p("span",Q3,F(G(Ss)(Fe.msg,_.value)||"(empty)"),1),p("span",{class:de(["msg-tok",{hot:(Fe.msg.tokens||0)>2e3}])},F(G(we)(Fe.msg.tokens||0)),3)],10,Y3)}),128))],2)],8,W3))),128))],64)):l.value==="chrono"?(x(),k(he,{key:1},[S.value?(x(),k("div",ey,[p("span",null,[V[11]||(V[11]=$e(" Filtered file: ",-1)),qe((x(),k("b",ty,[$e(F(bt.value),1)])),[[be,S.value]]),p("span",ny,"("+F(Re.value.size)+" messages)",1)]),p("button",{class:"focus-clear",onClick:Ft(He,["stop"])},"Show all")])):ae("",!0),p("div",uy,[(x(!0),k(he,null,Se(oe.value,(re,ke)=>{var Fe;return x(),k(he,{key:ke},[J.value.has(ke)?(x(!0),k(he,{key:0},Se(J.value.get(ke),Me=>qe((x(),k("div",{key:"sub-"+Me.id,class:"chrono-subagent-row",onClick:ft=>Ce(Me.id)},[p("span",sy,F(G(we)(Me.contextInfo.totalTokens)),1),V[12]||(V[12]=p("span",{class:"chrono-cat-dot subagent-dot"},null,-1)),V[13]||(V[13]=p("span",{class:"chrono-type subagent-type"},"subagent",-1)),p("span",ry,F(Me.agentLabel),1),p("span",iy,F(G(bn)(Me.contextInfo.model)),1)],8,oy)),[[be,"Click to view subagent context"]])),128)):ae("",!0),ce.value.has(ke)?(x(),k("div",{key:1,class:de(["chrono-turn-marker",{future:re.future}])},[p("span",ly,"Turn "+F(ce.value.get(ke)),1),V[14]||(V[14]=p("span",{class:"chrono-turn-line"},null,-1))],2)):ae("",!0),re.future&&ke===R.value?(x(),k("div",ay,[...V[15]||(V[15]=[p("span",{class:"chrono-future-line"},null,-1),p("span",{class:"chrono-future-label"},"After this turn",-1),p("span",{class:"chrono-future-line"},null,-1)])])):ae("",!0),p("div",{class:de(["chrono-row",[st(re.origIdx),{selected:!re.future&&a.value&&!X.value&&((Fe=E.value[c.value])==null?void 0:Fe.origIdx)===re.origIdx,future:re.future}]]),style:Ae({"--cat-border":K(re.msg)}),onClick:Me=>re.future?Q(re.origIdx):O(re.origIdx)},[qe((x(),k("span",fy,[$e(F(re.future?"":G(we)(j.value[ke])),1)])),[[be,re.future?"Click to jump to this turn":`Cumulative: ${G(we)(j.value[ke])} of ${G(we)(A.value)}`]]),p("span",{class:"chrono-cat-dot",style:Ae({background:K(re.msg)})},null,4),p("span",dy,F(pe(re.msg)),1),p("span",py,F(G(Ss)(re.msg,_.value)||"(empty)"),1),p("span",{class:de(["chrono-tok",{hot:!re.future&&(re.msg.tokens||0)>2e3}])},F(G(we)(re.msg.tokens||0)),3)],14,cy)],64)}),128))])],64)):ae("",!0)],512)]),_:1},8,["size"]),a.value?(x(),yt(G(fl),{key:0,"min-size":25,size:58},{default:lt(()=>[Pe(I3,{entry:ie.value,messages:W.value,"selected-index":fe.value,onClose:H,onNavigate:D},null,8,["entry","messages","selected-index"])]),_:1})):ae("",!0)]),_:1})],32)):ae("",!0)}}}),my=at(hy,[["__scopeId","data-v-c0d2a74a"]]),gy={key:0,class:"timeline-tab"},vy={class:"timeline-scope-controls"},by={class:"scope-toggle"},_y=["onClick"],yy={class:"panel panel--hero"},xy={class:"panel-head"},ky={class:"panel-controls"},wy={class:"mode-toggle"},Cy={class:"panel-body"},$y={class:"chart-container"},Ey={class:"y-axis"},Sy=["onClick"],Ty=["viewBox"],Dy=["points"],Ay=["aria-label"],Fy={class:"chart-legend"},My=["onClick"],Iy={key:0,class:"projection-badge"},Py={key:1,class:"projection-badge projection-badge--warn"},Ly={class:"panel panel--secondary panel--spine panel--cost"},Ry={class:"panel-head"},Oy={class:"panel-sub"},zy={class:"panel-body"},By={class:"chart-container"},Ny={class:"y-axis"},Hy=["onClick"],jy={class:"chart-legend"},qy=tt({__name:"TimelineTab",setup(e){const t=Tt(),n=L({get:()=>t.timelineMode,set:O=>{t.timelineMode=O}}),u=L({get:()=>t.timelineStackMode,set:O=>{t.timelineStackMode=O}}),o=L({get:()=>t.timelineHiddenLegendKeys,set:O=>{t.timelineHiddenLegendKeys=O}}),s=L({get:()=>t.timelineShowLimitOverlay,set:O=>{t.timelineShowLimitOverlay=O}}),r=L({get:()=>t.timelineShowCacheOverlay,set:O=>{t.timelineShowCacheOverlay=O}}),i=me(null),l=me(null),a=L(()=>t.selectedSession),c=L(()=>t.selectedEntry),d=L(()=>a.value?hn([...a.value.entries].reverse()):[]),m=L(()=>n.value==="main"?d.value.filter(O=>O.isMain):d.value),g=L(()=>{let O=0;for(const H of m.value){const y=H.entry.contextInfo.totalTokens;y>O&&(O=y)}return O}),b=L(()=>{let O=0;for(const H of m.value){const y=H.entry.costUsd??0;y>O&&(O=y)}return O}),w=L(()=>m.value.length<=40),_=L(()=>Fs(R.value)),C=L(()=>Cm(m.value)),M=L(()=>ym(m.value,d.value)),I=L(()=>m.value.map((O,H)=>{const y=M.value.get(O.entry.id)||[],f=y[0]||null,h=C.value[H]||H+1,v=f?`Turn ${h}: ${y.map(D=>`${D.label}: ${D.detail}`).join(", ")}`:"";return{entryId:O.entry.id,firstEvent:f,title:f?km(y,h):"",ariaLabel:v}}));function $(O){const H=new Set(o.value);H.has(O)?H.delete(O):H.add(O),o.value=H}const R=L(()=>{if(o.value.size===0)return g.value;let O=0;for(const H of m.value){const y=Ds(H.entry,o.value);y>O&&(O=y)}return O});function T(O){const H=Ds(O.entry,o.value);return As(H,R.value)}function oe(O){return vm(O.entry,o.value)}function ue(O){return As(O.entry.costUsd??0,b.value)}function J(O){t.pinEntry(O.id)}function ee(O){t.setInspectorTab("messages"),t.focusMessageCategory(O)}const ve=L(()=>wm(m.value.length)),q=L(()=>{const O=c.value;if(O&&O.contextLimit>0)return O.contextLimit;const H=m.value;return H.length>0?H[H.length-1].entry.contextLimit:0}),ce=L(()=>{const O=R.value;return s.value?Math.max(O,q.value):O}),te=L(()=>{const O=ce.value,H=q.value;return O===0||H===0?-1:(1-H/O)*100});function E(O){if(u.value==="normalized")return 100;if(!s.value)return T(O);const H=Ds(O.entry,o.value);return As(H,ce.value)}const X=L(()=>Fs(ce.value)),ie=L(()=>Fs(b.value)),W=[0,25,50,75,100],fe=L(()=>{const O=c.value;return O?Fc(O,d.value):null}),ye=L(()=>{const O=new Map;for(const H of m.value){const y=bn(H.entry.contextInfo.model);O.has(y)||O.set(y,sl(H.entry.contextInfo.model,!0))}return Array.from(O.entries()).map(([H,y])=>({name:H,color:y}))}),j=L(()=>Object.entries(wt).map(([O,H])=>({key:O,name:H.label,color:H.color}))),A=L(()=>{const O=m.value;if(O.length===0)return-1;if(n.value!=="all")return O.length-1;for(let H=O.length-1;H>=0;H--)if(O[H].isMain)return H;return-1}),P=L(()=>{const O=m.value,H=A.value;if(H<0)return!1;for(let y=0;y<=H;y++)if(!(n.value==="all"&&!O[y].isMain)&&rr(O[y].entry)!==null)return!0;return!1}),ne=L(()=>{const O=Math.max(0,A.value+1);return O===0?"0 0 1 100":`0 0 ${O} 100`}),le=L(()=>{const O=m.value.length,H=Math.max(0,A.value+1);return O===0||H===0?"0%":`${H/O*100}%`}),S=L(()=>{const O=m.value,H=A.value;if(O.length===0||H<0)return"";const y=[];for(let f=0;f<=H;f++){if(n.value==="all"&&!O[f].isMain)continue;const h=rr(O[f].entry);if(h===null)continue;const v=f+.5,D=(1-h)*100;y.push(`${v.toFixed(3)},${D.toFixed(2)}`)}return y.join(" ")}),B=L(()=>Mc(d.value));function Z(O){O&&(O.scrollLeft=O.scrollWidth)}function Y(){Je(()=>{Z(i.value),Z(l.value)})}return On(()=>{Y()}),Ze(()=>{var O,H;return[((O=a.value)==null?void 0:O.id)??"",n.value,m.value.length,((H=m.value[m.value.length-1])==null?void 0:H.entry.id)??""]},()=>{Y()},{immediate:!0}),(O,H)=>{const y=zn("tooltip");return a.value?(x(),k("div",gy,[p("div",vy,[H[4]||(H[4]=p("span",{class:"scope-label"},"Scope",-1)),p("div",by,[(x(),k(he,null,Se(["main","all"],f=>p("button",{key:"scope-"+f,class:de({on:n.value===f}),onClick:h=>n.value=f},F(f==="all"?"All turns":"Main turns"),11,_y)),64))])]),p("section",yy,[p("div",xy,[H[9]||(H[9]=p("span",{class:"panel-title"},"Token Timeline",-1)),p("div",ky,[P.value?(x(),k("button",{key:0,class:de(["overlay-toggle",{on:r.value}]),onClick:H[0]||(H[0]=f=>r.value=!r.value)},[...H[5]||(H[5]=[p("span",{class:"legend-dot legend-dot--cache"},null,-1),$e(" Cache ",-1)])],2)):ae("",!0),u.value==="absolute"?(x(),k("button",{key:1,class:de(["overlay-toggle",{on:s.value}]),onClick:H[1]||(H[1]=f=>s.value=!s.value)},[...H[6]||(H[6]=[p("span",{class:"legend-dot legend-dot--dashed"},null,-1),$e(" Limit ",-1)])],2)):ae("",!0),p("div",wy,[qe((x(),k("button",{class:de({on:u.value==="absolute"}),onClick:H[2]||(H[2]=f=>u.value="absolute")},[...H[7]||(H[7]=[p("i",{class:"i-carbon-chart-column mode-icon"},null,-1),$e(" Abs ",-1)])],2)),[[y,"Absolute token counts"]]),qe((x(),k("button",{class:de({on:u.value==="normalized"}),onClick:H[3]||(H[3]=f=>u.value="normalized")},[...H[8]||(H[8]=[p("i",{class:"i-carbon-chart-maximum mode-icon"},null,-1),$e(" Pct ",-1)])],2)),[[y,"Normalized to 100% per turn"]])])])]),p("div",Cy,[p("div",$y,[p("div",Ey,[u.value==="normalized"?(x(!0),k(he,{key:0},Se([...W].reverse(),f=>(x(),k("span",{key:"norm-"+f},F(f)+"%",1))),128)):(x(!0),k(he,{key:1},Se([...s.value?X.value:_.value].reverse(),f=>(x(),k("span",{key:f},F(G(rl)(f,"tokens")),1))),128))]),p("div",{ref_key:"tokenChartScrollEl",ref:i,class:"chart-scroll"},[p("div",{class:de(["bars-wrap",{sparse:w.value}])},[p("div",{class:de(["bars",{sparse:w.value}])},[(x(!0),k(he,null,Se(m.value,(f,h)=>{var v;return x(),k("div",{key:f.entry.id,class:de(["bar",{active:((v=c.value)==null?void 0:v.id)===f.entry.id,normalized:u.value==="normalized"}]),style:Ae({height:E(f)+"%"}),onClick:D=>J(f.entry)},[(x(!0),k(he,null,Se(oe(f),D=>qe((x(),k("div",{key:f.entry.id+"-"+D.key,class:"bar-segment",style:Ae({height:D.pct+"%",background:D.color})},null,4)),[[y,G(Em)(f.entry,D)]])),128))],14,Sy)}),128))],2),u.value==="absolute"&&s.value&&te.value>=0?(x(),k("div",{key:0,class:"limit-line",style:Ae({top:te.value+"%"})},null,4)):ae("",!0),r.value&&S.value?(x(),k("svg",{key:1,class:"cache-line-svg",viewBox:ne.value,style:Ae({width:le.value}),preserveAspectRatio:"none"},[p("polyline",{points:S.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,Dy)],12,Ty)):ae("",!0)],2),p("div",{class:de(["events",{sparse:w.value}])},[(x(!0),k(he,null,Se(I.value,f=>(x(),k("div",{key:"evt-"+f.entryId,class:"event-slot"},[f.firstEvent?qe((x(),k("button",{key:0,class:de(["event-marker",`event-marker--${f.firstEvent.type}`]),type:"button","aria-label":f.ariaLabel},[$e(F(G(xm)(f.firstEvent)),1)],10,Ay)),[[y,{content:f.title,html:!0}]]):ae("",!0)]))),128))],2),p("div",{class:de(["labels",{sparse:w.value}])},[(x(!0),k(he,null,Se(C.value,(f,h)=>(x(),k("div",{key:h,class:"label"},F(f&&(ve.value<=1||f%ve.value===0)?f:""),1))),128))],2)],512)]),p("div",Fy,[(x(!0),k(he,null,Se(j.value,f=>(x(),k("button",{key:f.key,class:de(["legend-item legend-item--interactive",{"legend-item--hidden":o.value.has(f.key)}]),onClick:h=>$(f.key)},[p("span",{class:"legend-dot",style:Ae({background:o.value.has(f.key)?"var(--text-ghost)":f.color})},null,4),$e(" "+F(f.name),1)],10,My))),128)),B.value.turnsRemaining!==null&&B.value.turnsRemaining>0?qe((x(),k("span",Iy,[$e(" ~"+F(B.value.turnsRemaining)+" turns remaining ",1)])),[[y,`Growing ~${G(we)(Math.round(B.value.growthPerTurn))}/turn over ${B.value.sinceCompaction} turns since last compaction`]]):B.value.turnsRemaining===0?qe((x(),k("span",Py,[...H[10]||(H[10]=[$e(" At limit ",-1)])])),[[y,"Context window is at or near the limit"]]):ae("",!0)])])]),p("section",Ly,[p("div",Ry,[H[11]||(H[11]=p("span",{class:"panel-title"},"Cost Timeline",-1)),p("span",Oy,"Scope: "+F(n.value==="main"?"Main turns only":"All turns"),1)]),p("div",zy,[p("div",By,[p("div",Ny,[(x(!0),k(he,null,Se([...ie.value].reverse(),f=>(x(),k("span",{key:"cost-"+f},F(G(rl)(f,"cost")),1))),128))]),p("div",{ref_key:"costChartScrollEl",ref:l,class:"chart-scroll"},[p("div",{class:de(["bars-wrap",{sparse:w.value}])},[p("div",{class:de(["bars",{sparse:w.value}])},[(x(!0),k(he,null,Se(m.value,f=>{var h;return qe((x(),k("div",{key:"cost-"+f.entry.id,class:de(["bar",{active:((h=c.value)==null?void 0:h.id)===f.entry.id}]),style:Ae({height:ue(f)+"%"}),onClick:v=>J(f.entry)},[p("div",{class:"bar-cost",style:Ae({background:G(sl)(f.entry.contextInfo.model,f.isMain)})},null,4)],14,Hy)),[[y,G($m)(f.entry,f.isMain)]])}),128))],2)],2),p("div",{class:de(["labels",{sparse:w.value}])},[(x(!0),k(he,null,Se(C.value,(f,h)=>(x(),k("div",{key:"cost-label-"+h,class:"label"},F(f&&(ve.value<=1||f%ve.value===0)?f:""),1))),128))],2)],512)]),p("div",jy,[(x(!0),k(he,null,Se(ye.value,f=>(x(),k("span",{key:f.name,class:"legend-item"},[p("span",{class:"legend-dot",style:Ae({background:f.color})},null,4),$e(" "+F(f.name),1)]))),128))])])]),Pe(Lc,{"diff-data":fe.value,"show-when-empty":!!c.value,onCategoryClick:ee},null,8,["diff-data","show-when-empty"])])):ae("",!0)}}}),Vy=at(qy,[["__scopeId","data-v-3488ea6d"]]),Uy=["aria-label","aria-valuemax","aria-valuenow"],Wy={class:"scrubber-controls"},Ky=["disabled"],Gy={class:"readout-num"},Zy={class:"readout-total"},Jy=["disabled"],Yy={class:"spark-bars"},Xy={class:"tt-row tt-turn"},Qy={class:"tt-row"},e6={class:"tt-row tt-dim"},t6=tt({__name:"TurnScrubber",setup(e){const t=Tt(),n=me(null),u=me(!1),o=me(null),s=L(()=>t.selectedSession),r=L(()=>t.selectedEntry),i=L(()=>s.value?hn([...s.value.entries].reverse()):[]),l=L(()=>i.value.filter(W=>W.isMain)),a=L(()=>l.value.map(W=>W.entry)),c=L(()=>l.value.map(W=>!W.isMain)),d=L(()=>a.value.length),m=L(()=>{const W=r.value;if(!W)return-1;let fe=-1;for(const ye of i.value)if(ye.isMain&&fe++,ye.entry.id===W.id)return fe;return-1}),g=L(()=>{let W=0;for(const fe of a.value)fe.contextInfo.totalTokens>W&&(W=fe.contextInfo.totalTokens);return W}),b=L(()=>{const W=g.value;return W===0?a.value.map(()=>({height:.15,tokens:0,cost:0,model:"",utilization:0})):a.value.map(fe=>({height:Math.max(.08,fe.contextInfo.totalTokens/W),tokens:fe.contextInfo.totalTokens,cost:fe.costUsd??0,model:bn(fe.contextInfo.model),utilization:fe.contextLimit>0?fe.contextInfo.totalTokens/fe.contextLimit:0}))}),w=L(()=>t.selectionMode!=="pinned"||m.value<0?!1:m.value<d.value-1),_=L(()=>w.value?Math.max(0,d.value-1-m.value):0),C=L(()=>w.value?_.value/d.value>=.12:!1),M=L(()=>((m.value+1)/d.value+1)/2*100),I=L(()=>{const W=[];let fe=0,ye=-1;for(const j of i.value)j.isMain?(ye>=0&&W.push(fe),fe=0,ye++):fe++;return ye>=0&&W.push(fe),W}),$=L(()=>{if(o.value===null||o.value<0||o.value>=a.value.length)return null;const W=a.value[o.value],fe=b.value[o.value],ye=I.value[o.value]||0;return{turn:o.value+1,tokens:we(W.contextInfo.totalTokens),cost:Et(W.costUsd),model:fe.model,subs:ye,isSub:c.value[o.value]||!1}});function R(W){ve(W)&&t.pinEntry(a.value[W].id)}function T(){t.followLive()}function oe(){const W=m.value-1;ve(W)&&R(W)}function ue(){const W=m.value+1;ve(W)&&R(W)}function J(){r.value&&t.pinEntry(r.value.id)}function ee(W){const fe=n.value;if(!fe||d.value===0)return-1;const ye=fe.getBoundingClientRect(),A=Math.max(0,Math.min(W.clientX-ye.left,ye.width))/ye.width;return Math.min(Math.floor(A*d.value),d.value-1)}function ve(W){return W>=0&&W<d.value}function q(W){var ye,j;if(d.value===0)return;u.value=!0;const fe=ee(W);ve(fe)&&R(fe),(j=(ye=W.target)==null?void 0:ye.setPointerCapture)==null||j.call(ye,W.pointerId)}function ce(W){const fe=ee(W);o.value=ve(fe)?fe:null,u.value&&ve(fe)&&R(fe)}function te(W){var fe,ye;u.value=!1,(ye=(fe=W.target)==null?void 0:fe.releasePointerCapture)==null||ye.call(fe,W.pointerId)}function E(){o.value=null}function X(W){W.key==="ArrowLeft"||W.key==="ArrowUp"?(W.preventDefault(),oe()):W.key==="ArrowRight"||W.key==="ArrowDown"?(W.preventDefault(),ue()):W.key==="Home"?(W.preventDefault(),R(0)):W.key==="End"?(W.preventDefault(),d.value>0&&R(d.value-1)):W.key==="Escape"&&(W.preventDefault(),T())}function ie(W){return W>=.9?"var(--accent-red)":W>=.7?"var(--accent-amber)":"var(--accent-blue)"}return(W,fe)=>s.value&&r.value&&d.value>=1?(x(),k("div",{key:0,class:"scrubber",role:"slider","aria-label":`Turn scrubber: turn ${m.value+1} of ${d.value}`,"aria-valuemin":1,"aria-valuemax":d.value,"aria-valuenow":m.value+1,tabindex:"0",onKeydown:X},[p("div",Wy,[p("button",{class:"ctrl-btn",disabled:m.value<=0,onClick:oe,title:"Previous turn (←)","aria-label":"Previous turn"},[...fe[0]||(fe[0]=[p("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[p("path",{d:"M7 1L3 5L7 9",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,Ky),p("span",{class:de(["turn-readout",G(t).selectionMode==="live"?"is-live":"is-pinned"])},[fe[1]||(fe[1]=p("span",{class:"readout-dot"},null,-1)),p("span",Gy,F(m.value+1),1),fe[2]||(fe[2]=p("span",{class:"readout-sep"},"/",-1)),p("span",Zy,F(d.value),1)],2),p("button",{class:"ctrl-btn",disabled:m.value<0||m.value>=d.value-1,onClick:ue,title:"Next turn (→)","aria-label":"Next turn"},[...fe[3]||(fe[3]=[p("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[p("path",{d:"M3 1L7 5L3 9",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,Jy)]),p("div",{ref_key:"trackEl",ref:n,class:"scrubber-track",onPointerdown:q,onPointermove:ce,onPointerup:te,onPointerleave:E},[p("div",Yy,[(x(!0),k(he,null,Se(b.value,(ye,j)=>(x(),k("div",{key:j,class:de(["spark-col",{active:j===m.value,hover:j===o.value&&j!==m.value,past:G(t).selectionMode==="pinned"&&j>m.value,"is-sub":c.value[j]}])},[p("div",{class:"spark-bar",style:Ae({height:ye.height*100+"%","--bar-color":ie(ye.utilization)})},null,4),I.value[j]>0?(x(),k("div",{key:0,class:de(["sub-dot",{"sub-burst":I.value[j]>=3}])},null,2)):ae("",!0)],2))),128))]),m.value>=0?(x(),k("div",{key:0,class:de(["playhead",{live:G(t).selectionMode==="live"}]),style:Ae({left:(m.value+.5)/d.value*100+"%"})},[...fe[4]||(fe[4]=[p("div",{class:"playhead-line"},null,-1),p("div",{class:"playhead-head"},null,-1)])],6)):ae("",!0),C.value?(x(),k("div",{key:1,class:"new-turns-badge",style:Ae({left:M.value+"%"}),onClick:Ft(T,["stop"])}," +"+F(_.value)+" new ",5)):ae("",!0),Pe(fn,{name:"tooltip-fade"},{default:lt(()=>[$.value&&o.value!==m.value?(x(),k("div",{key:0,class:"scrub-tooltip",style:Ae({left:Math.min(Math.max((o.value+.5)/d.value*100,8),92)+"%"})},[p("div",Xy,"T"+F($.value.turn)+F($.value.isSub?" (sub)":""),1),p("div",Qy,F($.value.tokens)+" · "+F($.value.cost),1),p("div",e6,F($.value.model)+F($.value.subs>0?` · ${$.value.subs} sub`:""),1)],4)):ae("",!0)]),_:1})],544),G(t).selectionMode==="live"?(x(),k("button",{key:0,class:"action-btn action-pin",onClick:J,title:"Pin current turn to scrub history"},[...fe[5]||(fe[5]=[p("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[p("circle",{cx:"5",cy:"5",r:"3.5",stroke:"currentColor","stroke-width":"1"}),p("circle",{cx:"5",cy:"5",r:"1.5",fill:"currentColor"})],-1),$e(" Pin ",-1)])])):(x(),k("button",{key:1,class:"action-btn action-return",onClick:T,title:"Return to live (Esc)"},[...fe[6]||(fe[6]=[p("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[p("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),$e(" Live ",-1)])]))],40,Uy)):ae("",!0)}}),n6=at(t6,[["__scopeId","data-v-865993b3"]]),u6={class:"tab-bar"},o6=["onClick"],s6={class:"tab-content"},r6=tt({__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"}],u={overview:xv,messages:my,timeline:Vy},o=L(()=>u[t.inspectorTab]);function s(i){i==="messages"&&t.clearMessageFocus(),t.setInspectorTab(i)}function r(i){i.key==="Escape"&&!i.defaultPrevented&&t.setView("dashboard")}return(i,l)=>(x(),k("div",{class:"inspector",onKeydown:r,tabindex:"-1"},[Pe(n6),p("div",u6,[(x(),k(he,null,Se(n,a=>p("button",{key:a.id,class:de(["tab-btn",{active:G(t).inspectorTab===a.id}]),onClick:c=>s(a.id)},[p("i",{class:de(a.icon)},null,2),$e(" "+F(a.label),1)],10,o6)),64))]),p("div",s6,[(x(),yt(wa(o.value),{key:G(t).inspectorTab}))])],32))}}),i6=at(r6,[["__scopeId","data-v-74dad8d1"]]),l6={class:"session-rail","aria-label":"Sessions"},a6={class:"rail-scroll"},c6=["onClick"],f6={class:"tile-meta"},d6={key:0,class:"tile-tags"},p6=["title"],h6={key:0,class:"tile-tag-more"},m6=tt({__name:"SessionRail",setup(e){const t=Tt();function n(l){t.selectSession(l),t.setView("inspector")}function u(){t.setView("dashboard")}function o(l){var w;const a=bn(l.latestModel),c=l.entryCount+(l.entryCount===1?" turn":" turns"),d=Et(l.totalCost),m=l.healthScore?`
|
|
48
|
-
Health ${l.healthScore.overall}/100 (${l.healthScore.rating})`:"",g=l.workingDirectory?`
|
|
49
|
-
${l.workingDirectory}`:"",b=(w=l.tags)!=null&&w.length?`
|
|
50
|
-
Tags: ${l.tags.join(", ")}`:"";return`${l.source} · ${a}
|
|
51
|
-
${c} · ${d}${m}${g}${b}`}function s(l){return l.contextLimit?Math.min(100,Math.round(l.latestTotalTokens/l.contextLimit*100)):0}function r(l){const a=s(l);return a>=80?"high":a>=60?"mid":"low"}const i={delay:{show:50,hide:0},placement:"right"};return(l,a)=>{const c=zn("tooltip");return x(),k("nav",l6,[qe((x(),k("button",{class:"rail-back",onClick:u},[...a[0]||(a[0]=[p("i",{class:"i-carbon-grid grid-icon"},null,-1)])])),[[c,{content:"Dashboard",...i}]]),a[1]||(a[1]=p("span",{class:"rail-label"},"SESSIONS",-1)),p("div",a6,[(x(!0),k(he,null,Se(G(t).filteredSummaries,d=>{var m;return qe((x(),k("button",{key:d.id,class:de(["rail-tile",{active:d.id===G(t).selectedSessionId,pulse:G(t).recentlyUpdated.has(d.id)}]),onClick:g=>n(d.id)},[p("span",{class:de(["tile-source",G(Zu)(d.source)])},F(d.source||"?"),3),p("span",f6,F(d.entryCount)+"t",1),p("span",{class:de(["tile-util",r(d)])},F(s(d))+"%",3),(m=d.tags)!=null&&m.length?(x(),k("span",d6,[(x(!0),k(he,null,Se(d.tags.slice(0,3),(g,b)=>(x(),k("span",{key:g,class:de(["tile-tag-dot",G(t).getTagColorClass(b)]),title:g},null,10,p6))),128)),d.tags.length>3?(x(),k("span",h6,"+")):ae("",!0)])):ae("",!0)],10,c6)),[[c,{content:o(d),...i}]])}),128))])])}}}),g6=at(m6,[["__scopeId","data-v-cdc746c2"]]),v6={class:"compare-view"},b6={class:"compare-header"},_6={class:"compare-title"},y6={class:"compare-count"},x6={class:"legend"},k6={class:"lanes"},w6=["onMouseenter"],C6={class:"lane-header"},$6={class:"lane-identity"},E6={class:"lane-index"},S6={class:"lane-model"},T6={key:0,class:"lane-dir"},D6={class:"lane-metrics"},A6={class:"lm-cell"},F6={class:"lm-value"},M6={key:0,class:"lm-winner"},I6={class:"lm-cell"},P6={class:"lm-value green"},L6={key:0,class:"lm-winner"},R6={class:"lm-cell"},O6={key:0,class:"lm-winner"},z6={class:"lm-cell"},B6={key:1,class:"lm-value ghost"},N6={key:0,class:"lm-cell"},H6={class:"lm-value dim"},j6={key:1,class:"lm-cell"},q6={class:"lm-value dim"},V6={key:0,class:"lm-winner"},U6={class:"lm-cell"},W6={class:"lm-value dim"},K6=["href","onClick"],G6={class:"lane-body"},Z6={class:"turn-track"},J6=["title","href","onMouseenter","onClick"],Y6={class:"turn-num"},X6={key:0,class:"turns-empty"},Q6={key:0,class:"sparkline-col"},ex={class:"sparkline-cell"},tx={class:"sparkline",viewBox:"0 0 100 100",preserveAspectRatio:"none"},nx=["y1","y2"],ux=["d"],ox=["d"],sx={class:"sparkline-val"},rx={class:"sparkline-cell"},ix={class:"sparkline sparkline--cost",viewBox:"0 0 100 100",preserveAspectRatio:"none"},lx=["d"],ax=["d"],cx={class:"sparkline-val"},fx={key:0,class:"comp-row"},dx={class:"comp-tape"},px=["title"],hx={key:0,class:"comp-seg-label"},mx={class:"comp-total"},Il="#ef4444",Pl="#9ca3af",gx=tt({__name:"CompareView",setup(e){const t=Tt(),n=me(null),u=me(null),o=me(null),s=L(()=>{const j=Object.entries(wt).map(([A,P])=>({key:A,label:P.label,color:P.color}));return j.push({key:"error",label:"Error",color:Il}),j.push({key:"stall",label:"Stall",color:Pl}),j});function r(j){const A={};for(const[P,ne]of Object.entries(cu)){A[P]=0;for(const le of ne){const S=j.find(B=>B.category===le);S&&(A[P]+=S.tokens)}}return A}function i(j){const A=r(j);let P="other",ne=0;for(const[le,S]of Object.entries(A))S>ne&&(P=le,ne=S);return P}function l(j){const A=r(j),P=Object.values(A).reduce((ne,le)=>ne+le,0);return P===0?[]:Object.entries(A).filter(([,ne])=>ne>0).sort((ne,le)=>le[1]-ne[1]).map(([ne,le])=>{var S;return{key:ne,color:((S=wt[ne])==null?void 0:S.color)??"#475569",pct:le/P*100}})}function a(j){const A=new Map;for(const le of j){const S=le.agentKey||"_default";A.set(S,(A.get(S)||0)+1)}let P="_default",ne=0;for(const[le,S]of A)S>ne&&(P=le,ne=S);return P}function c(j){const A=a(j.entries);return j.entries.filter(ne=>(ne.agentKey||"_default")===A).sort((ne,le)=>new Date(ne.timestamp).getTime()-new Date(le.timestamp).getTime()).map((ne,le)=>{var O;const S=(ne.httpStatus??200)>=400,B=ne.stopReason==="max_tokens",Z=i(ne.composition);let Y;return S?Y=Il:B?Y=Pl:Y=((O=wt[Z])==null?void 0:O.color)??wt.other.color,{turnNumber:le+1,entry:ne,dominantGroup:Z,color:Y,isError:S,isStall:B,tokens:ne.contextInfo.totalTokens,costUsd:ne.costUsd??0,segments:l(ne.composition)}})}function d(j){if(!j)return"";let A=j;/^\/home\/[^/]+(\/|$)/.test(A)?A=A.replace(/^\/home\/[^/]+/,"~"):/^\/Users\/[^/]+(\/|$)/.test(A)&&(A=A.replace(/^\/Users\/[^/]+/,"~"));const P=A.split("/");return P.length>2?P.slice(-2).join("/"):A}function m(j){for(let A=j.length-1;A>=0;A--){const P=rr(j[A].entry);if(P!==null)return P}return null}const g=L(()=>{const j=[];for(const A of t.compareSessionIds){const P=t.loadedConversations.get(A),ne=t.summaries.find(Q=>Q.id===A);if(!P&&!ne)continue;const le=P?c(P):[],S=P?P.entries.reduce((Q,Ce)=>Q+(Ce.costUsd??0),0):(ne==null?void 0:ne.totalCost)??0,B=P?P.entries.reduce((Q,Ce)=>{var ge;return Q+(((ge=Ce.timings)==null?void 0:ge.total_ms)??0)},0):0,Z=le.length>0?le[le.length-1].entry:null,Y=le.map(Q=>Q.tokens),O=le.map(Q=>Q.costUsd),H=P?(Z==null?void 0:Z.healthScore)??(ne==null?void 0:ne.healthScore):ne==null?void 0:ne.healthScore,y=(Z==null?void 0:Z.contextInfo.totalTokens)??(ne==null?void 0:ne.latestTotalTokens)??0,f=(Z==null?void 0:Z.contextLimit)??(ne==null?void 0:ne.contextLimit)??2e5,h=(ne==null?void 0:ne.latestModel)??(Z==null?void 0:Z.contextInfo.model)??"",v=(ne==null?void 0:ne.source)??(P==null?void 0:P.source)??"",D=(ne==null?void 0:ne.workingDirectory)??(P==null?void 0:P.workingDirectory)??null,z=P?P.entries.reduce((Q,Ce)=>{var ge;return Q+(((ge=Ce.usage)==null?void 0:ge.outputTokens)??0)},0):0,se=Z?l(Z.composition):[],K=m(le),pe=z>0&&S>0?S/z*1e3:null;j.push({id:A,source:v,model:h,directory:d(D),turnCount:le.length,totalCost:S,totalDurationMs:B,finalTokens:y,contextLimit:f,healthRating:(H==null?void 0:H.rating)??"unknown",healthScore:(H==null?void 0:H.overall)??0,turns:le,tokenHistory:Y,costHistory:O,utilization:f>0?y/f:0,outputTokens:z,cacheRate:K,costPerOutputK:pe,finalComposition:se})}return j}),b=L(()=>{let j=0;for(const A of g.value)for(const P of A.turns)P.tokens>j&&(j=P.tokens);return j||1}),w=L(()=>{let j=0;for(const A of g.value)for(const P of A.turns)P.costUsd>j&&(j=P.costUsd);return j||.01}),_=L(()=>{let j=0;for(const A of g.value){j=Math.max(j,A.contextLimit);for(const P of A.tokenHistory)P>j&&(j=P)}return j||1});function C(j){const le=8+j/b.value*24;return Math.round(le)+"px"}function M(j){return j<=0?0:.15+j/w.value*.85}function I(j,A){if(j.length===0)return"";const P=100,ne=100,le=j.length>1?P/(j.length-1):0;return j.map((S,B)=>{const Z=j.length===1?P/2:B*le,Y=ne-S/A*ne;return`${B===0?"M":"L"}${Z.toFixed(1)},${Y.toFixed(1)}`}).join(" ")}function $(j,A){if(j.length===0)return"";const P=100,ne=100,le=j.length>1?P/(j.length-1):0,S=j.map((Y,O)=>{const H=j.length===1?P/2:O*le,y=ne-Y/A*ne;return`${O===0?"M":"L"}${H.toFixed(1)},${y.toFixed(1)}`}).join(" "),B=j.length===1?P/2:(j.length-1)*le,Z=j.length===1?P/2:0;return`${S} L${B.toFixed(1)},${ne} L${Z.toFixed(1)},${ne} Z`}function R(j){const A=_.value;return 100-j/A*100}const T=L(()=>{let j=0;for(const A of g.value)for(const P of A.costHistory)P>j&&(j=P);return j||.01});function oe(j,A){return n.value===null||A===n.value?1:j===u.value?.3:.4}function ue(j){var P;const A=[`Turn ${j.turnNumber}`,`Model: ${bn(j.entry.contextInfo.model)}`,`Context: ${we(j.entry.contextInfo.totalTokens)}`,`Cost: ${Et(j.entry.costUsd)}`,`Dominant: ${((P=wt[j.dominantGroup])==null?void 0:P.label)??j.dominantGroup}`];return j.entry.timings&&A.push(`Duration: ${ur(j.entry.timings.total_ms)}`),j.entry.stopReason&&A.push(`Stop: ${j.entry.stopReason}`),j.isError&&A.push(`HTTP ${j.entry.httpStatus}`),A.join(`
|
|
52
|
-
`)}function J(j,A){return`#session/${encodeURIComponent(j)}?tab=overview&turn=${A}`}function ee(j){return`#session/${encodeURIComponent(j)}?tab=overview`}function ve(j,A){n.value=A,u.value=j}function q(){n.value=null,u.value=null}function ce(j,A,P){j.ctrlKey||j.metaKey||j.button===1||(j.preventDefault(),t.exitCompare("inspector"),t.selectSession(A),t.pinEntry(P.entry.id))}function te(j,A){j.ctrlKey||j.metaKey||j.button===1||(j.preventDefault(),t.exitCompare("inspector"),t.setInspectorTab("overview"),t.selectSession(A))}function E(){t.exitCompare("dashboard")}function X(j){return j>=.8?"util-high":j>=.6?"util-mid":"util-low"}function ie(j){o.value=j}function W(){o.value=null}function fe(j){return j>=.01?"$"+j.toFixed(2)+"/K":"$"+j.toFixed(3)+"/K"}const ye=L(()=>{const j=g.value;if(j.length<2)return null;const A=j.map(H=>H.totalCost),P=j.map(H=>H.finalTokens),ne=j.map(H=>H.turnCount),le=j.map(H=>H.costPerOutputK),S=Math.min(...A),B=Math.min(...P),Z=Math.min(...ne),Y=le.filter(H=>H!==null),O=Y.length>0?Math.min(...Y):null;return j.map(H=>({isCheapest:H.totalCost<=S,isLeanest:H.finalTokens<=B,isFewest:H.turnCount<=Z,isMostEfficient:O!==null&&H.costPerOutputK!==null&&H.costPerOutputK<=O}))});return(j,A)=>(x(),k("div",v6,[p("header",b6,[p("button",{class:"back-btn",onClick:E},[...A[0]||(A[0]=[p("i",{class:"i-carbon-arrow-left"},null,-1),$e(" Dashboard ",-1)])]),p("h1",_6,[A[1]||(A[1]=$e(" Compare ",-1)),p("span",y6,F(g.value.length)+" sessions",1)]),p("div",x6,[(x(!0),k(he,null,Se(s.value,P=>(x(),k("span",{key:P.key,class:"legend-chip"},[p("span",{class:"legend-swatch",style:Ae({background:P.color})},null,4),$e(" "+F(P.label),1)]))),128))])]),p("div",k6,[(x(!0),k(he,null,Se(g.value,(P,ne)=>(x(),k("div",{key:P.id,class:de(["lane",{"lane--focused":o.value===P.id,"lane--dimmed":o.value!==null&&o.value!==P.id}]),onMouseenter:le=>ie(P.id),onMouseleave:W},[p("div",C6,[p("div",$6,[p("div",E6,F(ne+1),1),p("span",{class:de(["source-badge",G(Zu)(P.source)])},F(P.source||"?"),3),p("span",S6,F(G(bn)(P.model)),1),P.directory?(x(),k("span",T6,F(P.directory),1)):ae("",!0)]),p("div",D6,[p("div",A6,[p("span",F6,F(P.turnCount),1),A[2]||(A[2]=p("span",{class:"lm-key"},"turns",-1)),ye.value&&ye.value[ne].isFewest?(x(),k("span",M6)):ae("",!0)]),p("div",I6,[p("span",P6,F(G(Et)(P.totalCost)),1),A[3]||(A[3]=p("span",{class:"lm-key"},"cost",-1)),ye.value&&ye.value[ne].isCheapest?(x(),k("span",L6)):ae("",!0)]),p("div",R6,[p("span",{class:de(["lm-value",X(P.utilization)])},F(Math.round(P.utilization*100))+"% ",3),A[4]||(A[4]=p("span",{class:"lm-key"},"context",-1)),ye.value&&ye.value[ne].isLeanest?(x(),k("span",O6)):ae("",!0)]),p("div",z6,[P.healthRating!=="unknown"?(x(),k("span",{key:0,class:"lm-value lm-health",style:Ae({color:G(sr)(P.healthRating)})},F(P.healthScore),5)):(x(),k("span",B6,"--")),A[5]||(A[5]=p("span",{class:"lm-key"},"health",-1))]),P.cacheRate!==null?(x(),k("div",N6,[p("span",H6,F(G(or)(P.cacheRate)),1),A[6]||(A[6]=p("span",{class:"lm-key"},"cache",-1))])):ae("",!0),P.costPerOutputK!==null?(x(),k("div",j6,[p("span",q6,F(fe(P.costPerOutputK)),1),A[7]||(A[7]=p("span",{class:"lm-key"},"$/out",-1)),ye.value&&ye.value[ne].isMostEfficient?(x(),k("span",V6)):ae("",!0)])):ae("",!0),p("div",U6,[p("span",W6,F(P.totalDurationMs>0?G(ur)(P.totalDurationMs):"--"),1),A[8]||(A[8]=p("span",{class:"lm-key"},"duration",-1))])]),p("a",{class:"inspect-btn",title:"Open in inspector",href:ee(P.id),onClick:le=>te(le,P.id)},[...A[9]||(A[9]=[p("i",{class:"i-carbon-arrow-right"},null,-1)])],8,K6)]),p("div",G6,[p("div",Z6,[(x(!0),k(he,null,Se(P.turns,le=>(x(),k("a",{key:le.turnNumber,class:de(["turn-col",{"turn-col--error":le.isError,"turn-col--stall":le.isStall,"turn-col--crosslit":n.value===le.turnNumber&&u.value!==P.id}]),style:Ae({opacity:oe(P.id,le.turnNumber)}),title:ue(le),href:J(P.id,le.turnNumber),onMouseenter:S=>ve(P.id,le.turnNumber),onMouseleave:q,onClick:S=>ce(S,P.id,le)},[p("div",{class:"turn-bar",style:Ae({height:C(le.tokens)})},[(x(!0),k(he,null,Se(le.segments,S=>(x(),k("div",{key:S.key,class:"turn-seg",style:Ae({flex:S.pct,background:S.color})},null,4))),128))],4),p("div",{class:"cost-dot",style:Ae({opacity:M(le.costUsd)})},null,4),p("span",Y6,F(le.turnNumber),1)],46,J6))),128)),P.turns.length===0?(x(),k("div",X6," Loading... ")):ae("",!0)]),P.tokenHistory.length>1?(x(),k("div",Q6,[p("div",ex,[(x(),k("svg",tx,[p("line",{x1:"0",y1:R(P.contextLimit),x2:"100",y2:R(P.contextLimit),class:"sparkline-limit"},null,8,nx),p("path",{d:$(P.tokenHistory,_.value),class:"sparkline-area"},null,8,ux),p("path",{d:I(P.tokenHistory,_.value),class:"sparkline-line"},null,8,ox)])),p("span",sx,[$e(F(G(we)(P.finalTokens)),1),A[10]||(A[10]=p("span",{class:"sparkline-sep"},"/",-1)),$e(F(G(we)(P.contextLimit)),1)])]),p("div",rx,[(x(),k("svg",ix,[p("path",{d:$(P.costHistory,T.value),class:"sparkline-area sparkline-area--cost"},null,8,lx),p("path",{d:I(P.costHistory,T.value),class:"sparkline-line sparkline-line--cost"},null,8,ax)])),p("span",cx,F(G(Et)(P.totalCost))+" total",1)])])):ae("",!0)]),P.finalComposition.length>0?(x(),k("div",fx,[p("div",dx,[(x(!0),k(he,null,Se(P.finalComposition,le=>{var S,B;return x(),k("div",{key:le.key,class:"comp-seg",style:Ae({flex:le.pct,background:le.color}),title:`${((S=G(wt)[le.key])==null?void 0:S.label)??le.key}: ${Math.round(le.pct)}%`},[le.pct>=18?(x(),k("span",hx,F(((B=G(wt)[le.key])==null?void 0:B.label)??le.key),1)):ae("",!0)],12,px)}),128))]),p("span",mx,F(G(we)(P.finalTokens)),1)])):ae("",!0)],42,w6))),128))])]))}}),vx=at(gx,[["__scopeId","data-v-c274f2d8"]]),bx={},_x={class:"empty"};function yx(e,t){return x(),k("div",_x,[...t[0]||(t[0]=[Ua('<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 xx=at(bx,[["render",yx],["__scopeId","data-v-213dcf0e"]]),kx={class:"app"},wx={class:"app-body"},Cx={key:0,class:"app-loading"},$x={key:0,class:"rail-wrapper"},Ex={class:"main-content"},Sx={key:"inspector",class:"inspector-content"},Tx={key:1,class:"loading-placeholder"},Ll="#sessions",Dx=tt({__name:"App",setup(e){const t=Tt(),n=me(!1),u=me(!1),o=["overview","messages","timeline"];let s=null;const r=me(null),i=L(()=>{const _=t.view,C=r.value;return C===null?"view-instant":C==="dashboard"&&_==="inspector"?"view-slide-forward":C==="inspector"&&_==="dashboard"?"view-slide-back":"view-instant"});Ze(()=>t.view,(_,C)=>{r.value!==null?r.value=C:r.value=_});const{connected:l}=mh("/api/events",_=>{t.handleSSEEvent(_)});Ze(l,_=>{t.connected=_});function a(_){const C=_.match(/^#session\/([^?]+)(?:\?(.*))?$/);if(!C)return{sessionId:null,tab:null,turn:null};const I=decodeURIComponent(C[1]).trim()||null;if(!I)return{sessionId:null,tab:null,turn:null};const $=new URLSearchParams(C[2]??""),R=$.get("tab"),T=R&&o.includes(R)?R:null,oe=$.get("turn"),ue=oe?Number.parseInt(oe,10):NaN,J=Number.isFinite(ue)&&ue>0?ue:null;return{sessionId:I,tab:T,turn:J}}function c(_){return hn([..._.entries].reverse()).filter(C=>C.isMain).map(C=>C.entry)}function d(){if(t.selectionMode!=="pinned")return null;const _=t.selectedSession;if(!_)return null;const C=c(_);if(C.length===0)return null;const M=t.selectedEntryId;if(M==null)return null;const I=C.findIndex(R=>R.id===M);if(I<0)return null;const $=I+1;return $<C.length?$:null}function m(_){const C=_.match(/^#compare\/(.+)$/);return C?C[1].split(",").map(M=>decodeURIComponent(M.trim())).filter(Boolean):null}async function g(){n.value=!0;try{const _=window.location.hash||"",C=m(_);if(C&&C.length>=2){const R=C.filter(T=>t.summaries.some(oe=>oe.id===T));if(R.length>=2){await t.enterCompare(new Set(R));return}}const{sessionId:M,tab:I,turn:$}=a(_);if(M){if(!t.summaries.some(T=>T.id===M)){t.setView("dashboard");return}if(await t.selectSession(M),I&&t.setInspectorTab(I),$!=null&&t.selectedSession){const T=c(t.selectedSession);if(T.length>0){const oe=Math.min(Math.max($,1),T.length);oe<T.length?t.pinEntry(T[oe-1].id):t.followLive()}else t.followLive()}else t.followLive();t.setView("inspector");return}t.setView("dashboard")}finally{n.value=!1}}function b(){if(n.value)return;let _=Ll;if(t.view==="compare"&&t.compareSessionIds.size>=2)_=`#compare/${Array.from(t.compareSessionIds).map(M=>encodeURIComponent(M)).join(",")}`;else if(t.view==="inspector"&&t.selectedSessionId){const C=new URLSearchParams;C.set("tab",t.inspectorTab);const M=d();M!=null&&C.set("turn",String(M));const I=C.toString();_=`#session/${encodeURIComponent(t.selectedSessionId)}${I?`?${I}`:""}`}window.location.hash!==_&&(window.location.hash=_)}function w(){g()}return Ze(()=>{var _;return[t.view,t.selectedSessionId,t.inspectorTab,t.selectionMode,t.selectedEntryId,(_=t.selectedSession)==null?void 0:_.entries.length,t.compareMode,t.compareSessionIds.size]},()=>{b()}),On(async()=>{try{t.initializeDensity(),await t.load(),window.location.hash||(window.location.hash=Ll),await g(),window.addEventListener("hashchange",w),s=setInterval(()=>{document.hidden||t.load()},5e3)}finally{u.value=!0}}),uo(()=>{window.removeEventListener("hashchange",w),s&&(clearInterval(s),s=null)}),(_,C)=>(x(),k("div",kx,[Pe(Wh),p("div",wx,[u.value?(x(),k(he,{key:1},[Pe(fn,{name:"rail-slide"},{default:lt(()=>[G(t).view==="inspector"?(x(),k("div",$x,[Pe(g6)])):ae("",!0)]),_:1}),p("div",Ex,[Pe(fn,{name:i.value},{default:lt(()=>[G(t).view==="dashboard"?(x(),yt(gm,{key:"dashboard"})):G(t).view==="compare"?(x(),yt(vx,{key:"compare"})):G(t).view==="inspector"?(x(),k("div",Sx,[G(t).selectedSession?(x(),yt(i6,{key:0})):(x(),k("div",Tx,[...C[1]||(C[1]=[p("div",{class:"loading-spinner"},null,-1)])]))])):(x(),yt(xx,{key:"empty"}))]),_:1},8,["name"])])],64)):(x(),k("div",Cx,[...C[0]||(C[0]=[p("div",{class:"loading-spinner"},null,-1)])]))])]))}}),Ax=at(Dx,[["__scopeId","data-v-eb13f43c"]]),Gr=Qa(Ax);Gr.use(jd());Gr.use(eh,{themes:{tooltip:{delay:{show:200,hide:0},distance:8,overflowPadding:8}}});Gr.mount("#app");
|