En la misma pantalla convivían dos lenguajes: emojis a color (🌙 📊 🧠 ✍️ 📄 🌐 🔁) y símbolos tipográficos monocromos (✎ ✕ ← ↻ ⚠ ⬇ ✓). Eso se lee como descuido, y encima los emojis los dibuja el sistema operativo — el mismo panel se ve distinto en Mac, en Windows y en Android, sin que podamos hacer nada. Ahora hay un set propio de iconos SVG de trazo: mismo grosor de línea, misma caja, y heredan currentColor, así que toman el color del texto que los rodea y funcionan igual en tema claro y oscuro. Al lado uno de otro tienen el mismo peso visual, que es lo que hacía falta. El emoji suelto de la pantalla de inicio pasa a ser Umi, que ya es el personaje del producto. Un detalle de implementación que costó dos intentos: los iconos NO pueden declararse como cadenas de HTML para v-html. Dentro de un <svg>, v-html parsea como HTML y los <path> quedan sin el namespace de SVG: aparecen en el DOM pero no dibujan nada, así que la primera versión se veía perfecta en el código y en blanco en pantalla. Van declarados como pares [etiqueta, atributos] para que Vue los cree con el namespace correcto. Y AgenteDetail usaba cinco iconos sin importar el componente. Verificado ahora sobre todos los archivos: cada componente usado está importado donde se usa. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
27 lines
168 KiB
JavaScript
27 lines
168 KiB
JavaScript
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/**
|
|
* @vue/shared v3.5.41
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function io(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const _e={},un=[],At=()=>{},Ar=()=>!1,ms=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),hs=e=>e.startsWith("onUpdate:"),Fe=Object.assign,lo=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ol=Object.prototype.hasOwnProperty,be=(e,t)=>ol.call(e,t),X=Array.isArray,cn=e=>Hn(e)==="[object Map]",_n=e=>Hn(e)==="[object Set]",Io=e=>Hn(e)==="[object Date]",re=e=>typeof e=="function",$e=e=>typeof e=="string",mt=e=>typeof e=="symbol",ye=e=>e!==null&&typeof e=="object",Er=e=>(ye(e)||re(e))&&re(e.then)&&re(e.catch),Sr=Object.prototype.toString,Hn=e=>Sr.call(e),rl=e=>Hn(e).slice(8,-1),Ir=e=>Hn(e)==="[object Object]",ao=e=>$e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$n=io(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),vs=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},il=/-\w/g,et=vs(e=>e.replace(il,t=>t.slice(1).toUpperCase())),ll=/\B([A-Z])/g,on=vs(e=>e.replace(ll,"-$1").toLowerCase()),gs=vs(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ps=vs(e=>e?`on${gs(e)}`:""),kt=(e,t)=>!Object.is(e,t),ts=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},$r=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},bs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let $o;const xs=()=>$o||($o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function sn(e){if(X(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=$e(s)?dl(s):sn(s);if(o)for(const r in o)t[r]=o[r]}return t}else if($e(e)||ye(e))return e}const al=/;(?![^(]*\))/g,ul=/:([^]+)/,cl=/\/\*[^]*?\*\//g;function dl(e){const t={};return e.replace(cl,"").split(al).forEach(n=>{if(n){const s=n.split(ul);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ee(e){let t="";if($e(e))t=e;else if(X(e))for(let n=0;n<e.length;n++){const s=Ee(e[n]);s&&(t+=s+" ")}else if(ye(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const fl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",pl=io(fl);function Rr(e){return!!e||e===""}function ml(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=zt(e[s],t[s]);return n}function zt(e,t){if(e===t)return!0;let n=Io(e),s=Io(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=mt(e),s=mt(t),n||s)return e===t;if(n=X(e),s=X(t),n||s)return n&&s?ml(e,t):!1;if(n=ye(e),s=ye(t),n||s){if(!n||!s)return!1;const o=Object.keys(e).length,r=Object.keys(t).length;if(o!==r)return!1;for(const i in e){const a=e.hasOwnProperty(i),u=t.hasOwnProperty(i);if(a&&!u||!a&&u||!zt(e[i],t[i]))return!1}}return String(e)===String(t)}function uo(e,t){return e.findIndex(n=>zt(n,t))}const Pr=e=>!!(e&&e.__v_isRef===!0),R=e=>$e(e)?e:e==null?"":X(e)||ye(e)&&(e.toString===Sr||!re(e.toString))?Pr(e)?R(e.value):JSON.stringify(e,Or,2):String(e),Or=(e,t)=>Pr(t)?Or(e,t.value):cn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],r)=>(n[Os(s,r)+" =>"]=o,n),{})}:_n(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Os(n))}:mt(t)?Os(t):ye(t)&&!X(t)&&!Ir(t)?String(t):t,Os=(e,t="")=>{var n;return mt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
|
* @vue/reactivity v3.5.41
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let Ue;class hl{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Ue&&(Ue.active?(this.parent=Ue,this.index=(Ue.scopes||(Ue.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const o=this.scopes.slice();for(t=0,n=o.length;t<n;t++)o[t].resume()}const s=this.effects.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}}run(t){if(this._active){const n=Ue;try{return Ue=this,t()}finally{Ue=n}}}on(){++this._on===1&&(this.prevScope=Ue,Ue=this)}off(){if(this._on>0&&--this._on===0){if(Ue===this)Ue=this.prevScope;else{let t=Ue;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const o=this.scopes.slice();for(n=0,s=o.length;n<s;n++)o[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 vl(){return Ue}let we;const Ts=new WeakSet;class Tr{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,Ue&&(Ue.active?Ue.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ts.has(this)&&(Ts.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Dr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Ro(this),Nr(this);const t=we,n=ft;we=this,ft=!0;try{return this.fn()}finally{Vr(this),we=t,ft=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)po(t);this.deps=this.depsTail=void 0,Ro(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ts.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ks(this)&&this.run()}get dirty(){return Ks(this)}}let Mr=0,Rn,Pn;function Dr(e,t=!1){if(e.flags|=8,t){e.next=Pn,Pn=e;return}e.next=Rn,Rn=e}function co(){Mr++}function fo(){if(--Mr>0)return;if(Pn){let t=Pn;for(Pn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Rn;){let t=Rn;for(Rn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function Nr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Vr(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),po(s),gl(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function Ks(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(jr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function jr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Dn)||(e.globalVersion=Dn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ks(e))))return;e.flags|=2;const t=e.dep,n=we,s=ft;we=e,ft=!0;try{Nr(e);const o=e.fn(e._value);(t.version===0||kt(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{we=n,ft=s,Vr(e),e.flags&=-3}}function po(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)po(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function gl(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ft=!0;const Ur=[];function Ut(){Ur.push(ft),ft=!1}function Lt(){const e=Ur.pop();ft=e===void 0?!0:e}function Ro(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=we;we=void 0;try{t()}finally{we=n}}}let Dn=0;class bl{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 mo{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(!we||!ft||we===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==we)n=this.activeLink=new bl(we,this),we.deps?(n.prevDep=we.depsTail,we.depsTail.nextDep=n,we.depsTail=n):we.deps=we.depsTail=n,Lr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=we.depsTail,n.nextDep=void 0,we.depsTail.nextDep=n,we.depsTail=n,we.deps===n&&(we.deps=s)}return n}trigger(t){this.version++,Dn++,this.notify(t)}notify(t){co();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{fo()}}}function Lr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Lr(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ws=new WeakMap,tn=Symbol(""),zs=Symbol(""),Nn=Symbol("");function Be(e,t,n){if(ft&&we){let s=Ws.get(e);s||Ws.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new mo),o.map=s,o.key=n),o.track()}}function Mt(e,t,n,s,o,r){const i=Ws.get(e);if(!i){Dn++;return}const a=u=>{u&&u.trigger()};if(co(),t==="clear")i.forEach(a);else{const u=X(e),d=u&&ao(n);if(u&&n==="length"){const c=Number(s);i.forEach((p,h)=>{(h==="length"||h===Nn||!mt(h)&&h>=c)&&a(p)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),d&&a(i.get(Nn)),t){case"add":u?d&&a(i.get("length")):(a(i.get(tn)),cn(e)&&a(i.get(zs)));break;case"delete":u||(a(i.get(tn)),cn(e)&&a(i.get(zs)));break;case"set":cn(e)&&a(i.get(tn));break}}fo()}function rn(e){const t=ge(e);return t===e?t:(Be(t,"iterate",Nn),ut(e)?t:t.map(ht))}function ys(e){return Be(e=ge(e),"iterate",Nn),e}function wt(e,t){return Ft(e)?hn(nn(e)?ht(t):t):ht(t)}const xl={__proto__:null,[Symbol.iterator](){return Ms(this,Symbol.iterator,e=>wt(this,e))},concat(...e){return rn(this).concat(...e.map(t=>X(t)?rn(t):t))},entries(){return Ms(this,"entries",e=>(e[1]=wt(this,e[1]),e))},every(e,t){return It(this,"every",e,t,void 0,arguments)},filter(e,t){return It(this,"filter",e,t,n=>n.map(s=>wt(this,s)),arguments)},find(e,t){return It(this,"find",e,t,n=>wt(this,n),arguments)},findIndex(e,t){return It(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return It(this,"findLast",e,t,n=>wt(this,n),arguments)},findLastIndex(e,t){return It(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return It(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ds(this,"includes",e)},indexOf(...e){return Ds(this,"indexOf",e)},join(e){return rn(this).join(e)},lastIndexOf(...e){return Ds(this,"lastIndexOf",e)},map(e,t){return It(this,"map",e,t,void 0,arguments)},pop(){return Cn(this,"pop")},push(...e){return Cn(this,"push",e)},reduce(e,...t){return Po(this,"reduce",e,t)},reduceRight(e,...t){return Po(this,"reduceRight",e,t)},shift(){return Cn(this,"shift")},some(e,t){return It(this,"some",e,t,void 0,arguments)},splice(...e){return Cn(this,"splice",e)},toReversed(){return rn(this).toReversed()},toSorted(e){return rn(this).toSorted(e)},toSpliced(...e){return rn(this).toSpliced(...e)},unshift(...e){return Cn(this,"unshift",e)},values(){return Ms(this,"values",e=>wt(this,e))}};function Ms(e,t,n){const s=ys(e),o=s[t]();return s!==e&&!ut(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const yl=Array.prototype;function It(e,t,n,s,o,r){const i=ys(e),a=i!==e&&!ut(e),u=i[t];if(u!==yl[t]){const p=u.apply(e,r);return a?ht(p):p}let d=n;i!==e&&(a?d=function(p,h){return n.call(this,wt(e,p),h,e)}:n.length>2&&(d=function(p,h){return n.call(this,p,h,e)}));const c=u.call(i,d,s);return a&&o?o(c):c}function Po(e,t,n,s){const o=ys(e),r=o!==e&&!ut(e);let i=n,a=!1;o!==e&&(r?(a=s.length===0,i=function(d,c,p){return a&&(a=!1,d=wt(e,d)),n.call(this,d,wt(e,c),p,e)}):n.length>3&&(i=function(d,c,p){return n.call(this,d,c,p,e)}));const u=o[t](i,...s);return a?wt(e,u):u}function Ds(e,t,n){const s=ge(e);Be(s,"iterate",Nn);const o=s[t](...n);return(o===-1||o===!1)&&go(n[0])?(n[0]=ge(n[0]),s[t](...n)):o}function Cn(e,t,n=[]){Ut(),co();const s=ge(e)[t].apply(e,n);return fo(),Lt(),s}const _l=io("__proto__,__v_isRef,__isVue"),Fr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(mt));function wl(e){mt(e)||(e=String(e));const t=ge(this);return Be(t,"has",e),t.hasOwnProperty(e)}class qr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return s===(o?r?Ol:Kr:r?Gr:Br).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=X(t);if(!o){let u;if(i&&(u=xl[n]))return u;if(n==="hasOwnProperty")return wl}const a=Reflect.get(t,n,Ke(t)?t:s);if((mt(n)?Fr.has(n):_l(n))||(o||Be(t,"get",n),r))return a;if(Ke(a)){const u=i&&ao(n)?a:a.value;return o&&ye(u)?Qs(u):u}return ye(a)?o?Qs(a):_s(a):a}}class Hr extends qr{constructor(t=!1){super(!1,t)}set(t,n,s,o){let r=t[n];const i=X(t)&&ao(n);if(!this._isShallow){const d=Ft(r);if(!ut(s)&&!Ft(s)&&(r=ge(r),s=ge(s)),!i&&Ke(r)&&!Ke(s))return d||(r.value=s),!0}const a=i?Number(n)<t.length:be(t,n),u=Reflect.set(t,n,s,Ke(t)?t:o);return t===ge(o)&&u&&(a?kt(s,r)&&Mt(t,"set",n,s):Mt(t,"add",n,s)),u}deleteProperty(t,n){const s=be(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&Mt(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!mt(n)||!Fr.has(n))&&Be(t,"has",n),s}ownKeys(t){return Be(t,"iterate",X(t)?"length":tn),Reflect.ownKeys(t)}}class Cl extends qr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const kl=new Hr,Al=new Cl,El=new Hr(!0);const Js=e=>e,Jn=e=>Reflect.getPrototypeOf(e);function Sl(e,t,n){return function(...s){const o=this.__v_raw,r=ge(o),i=cn(r),a=e==="entries"||e===Symbol.iterator&&i,u=e==="keys"&&i,d=o[e](...s),c=n?Js:t?hn:ht;return!t&&Be(r,"iterate",u?zs:tn),Fe(Object.create(d),{next(){const{value:p,done:h}=d.next();return h?{value:p,done:h}:{value:a?[c(p[0]),c(p[1])]:c(p),done:h}}})}}function Qn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Il(e,t){const n={get(o){const r=this.__v_raw,i=ge(r),a=ge(o);e||(kt(o,a)&&Be(i,"get",o),Be(i,"get",a));const{has:u}=Jn(i),d=t?Js:e?hn:ht;if(u.call(i,o))return d(r.get(o));if(u.call(i,a))return d(r.get(a));r!==i&&r.get(o)},get size(){const o=this.__v_raw;return!e&&Be(ge(o),"iterate",tn),o.size},has(o){const r=this.__v_raw,i=ge(r),a=ge(o);return e||(kt(o,a)&&Be(i,"has",o),Be(i,"has",a)),o===a?r.has(o):r.has(o)||r.has(a)},forEach(o,r){const i=this,a=i.__v_raw,u=ge(a),d=t?Js:e?hn:ht;return!e&&Be(u,"iterate",tn),a.forEach((c,p)=>o.call(r,d(c),d(p),i))}};return Fe(n,e?{add:Qn("add"),set:Qn("set"),delete:Qn("delete"),clear:Qn("clear")}:{add(o){const r=ge(this),i=Jn(r),a=ge(o),u=!t&&!ut(o)&&!Ft(o)?a:o;return i.has.call(r,u)||kt(o,u)&&i.has.call(r,o)||kt(a,u)&&i.has.call(r,a)||(r.add(u),Mt(r,"add",u,u)),this},set(o,r){!t&&!ut(r)&&!Ft(r)&&(r=ge(r));const i=ge(this),{has:a,get:u}=Jn(i);let d=a.call(i,o);d||(o=ge(o),d=a.call(i,o));const c=u.call(i,o);return i.set(o,r),d?kt(r,c)&&Mt(i,"set",o,r):Mt(i,"add",o,r),this},delete(o){const r=ge(this),{has:i,get:a}=Jn(r);let u=i.call(r,o);u||(o=ge(o),u=i.call(r,o)),a&&a.call(r,o);const d=r.delete(o);return u&&Mt(r,"delete",o,void 0),d},clear(){const o=ge(this),r=o.size!==0,i=o.clear();return r&&Mt(o,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=Sl(o,e,t)}),n}function ho(e,t){const n=Il(e,t);return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(be(n,o)&&o in s?n:s,o,r)}const $l={get:ho(!1,!1)},Rl={get:ho(!1,!0)},Pl={get:ho(!0,!1)};const Br=new WeakMap,Gr=new WeakMap,Kr=new WeakMap,Ol=new WeakMap;function Tl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _s(e){return Ft(e)?e:vo(e,!1,kl,$l,Br)}function Wr(e){return vo(e,!1,El,Rl,Gr)}function Qs(e){return vo(e,!0,Al,Pl,Kr)}function vo(e,t,n,s,o){if(!ye(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=o.get(e);if(r)return r;const i=Tl(rl(e));if(i===0)return e;const a=new Proxy(e,i===2?s:n);return o.set(e,a),a}function nn(e){return Ft(e)?nn(e.__v_raw):!!(e&&e.__v_isReactive)}function Ft(e){return!!(e&&e.__v_isReadonly)}function ut(e){return!!(e&&e.__v_isShallow)}function go(e){return e?!!e.__v_raw:!1}function ge(e){const t=e&&e.__v_raw;return t?ge(t):e}function Ml(e){return!be(e,"__v_skip")&&Object.isExtensible(e)&&$r(e,"__v_skip",!0),e}const ht=e=>ye(e)?_s(e):e,hn=e=>ye(e)?Qs(e):e;function Ke(e){return e?e.__v_isRef===!0:!1}function G(e){return zr(e,!1)}function Dl(e){return zr(e,!0)}function zr(e,t){return Ke(e)?e:new Nl(e,t)}class Nl{constructor(t,n){this.dep=new mo,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ge(t),this._value=n?t:ht(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||ut(t)||Ft(t);t=s?t:ge(t),kt(t,n)&&(this._rawValue=t,this._value=s?t:ht(t),this.dep.trigger())}}function je(e){return Ke(e)?e.value:e}const Vl={get:(e,t,n)=>t==="__v_raw"?e:je(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return Ke(o)&&!Ke(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Jr(e){return nn(e)?e:new Proxy(e,Vl)}class jl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new mo(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Dn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&we!==this)return Dr(this,!0),!0}get value(){const t=this.dep.track();return jr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Ul(e,t,n=!1){let s,o;return re(e)?s=e:(s=e.get,o=e.set),new jl(s,o,n)}const Yn={},rs=new WeakMap;let Xt;function Ll(e,t=!1,n=Xt){if(n){let s=rs.get(n);s||rs.set(n,s=[]),s.push(e)}}function Fl(e,t,n=_e){const{immediate:s,deep:o,once:r,scheduler:i,augmentJob:a,call:u}=n,d=k=>o?k:ut(k)||o===!1||o===0?Dt(k,1):Dt(k);let c,p,h,y,D=!1,P=!1;if(Ke(e)?(p=()=>e.value,D=ut(e)):nn(e)?(p=()=>d(e),D=!0):X(e)?(P=!0,D=e.some(k=>nn(k)||ut(k)),p=()=>e.map(k=>{if(Ke(k))return k.value;if(nn(k))return d(k);if(re(k))return u?u(k,2):k()})):re(e)?t?p=u?()=>u(e,2):e:p=()=>{if(h){Ut();try{h()}finally{Lt()}}const k=Xt;Xt=c;try{return u?u(e,3,[y]):e(y)}finally{Xt=k}}:p=At,t&&o){const k=p,b=o===!0?1/0:o;p=()=>Dt(k(),b)}const K=vl(),q=()=>{c.stop(),K&&K.active&&lo(K.effects,c)};if(r&&t){const k=t;t=(...b)=>{const O=k(...b);return q(),O}}let T=P?new Array(e.length).fill(Yn):Yn;const V=k=>{if(!(!(c.flags&1)||!c.dirty&&!k))if(t){const b=c.run();if(k||o||D||(P?b.some((O,j)=>kt(O,T[j])):kt(b,T))){h&&h();const O=Xt;Xt=c;try{const j=[b,T===Yn?void 0:P&&T[0]===Yn?[]:T,y];T=b,u?u(t,3,j):t(...j)}finally{Xt=O}}}else c.run()};return a&&a(V),c=new Tr(p),c.scheduler=i?()=>i(V,!1):V,y=k=>Ll(k,!1,c),h=c.onStop=()=>{const k=rs.get(c);if(k){if(u)u(k,4);else for(const b of k)b();rs.delete(c)}},t?s?V(!0):T=c.run():i?i(V.bind(null,!0),!0):c.run(),q.pause=c.pause.bind(c),q.resume=c.resume.bind(c),q.stop=q,q}function Dt(e,t=1/0,n){if(t<=0||!ye(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ke(e))Dt(e.value,t,n);else if(X(e))for(let s=0;s<e.length;s++)Dt(e[s],t,n);else if(_n(e)||cn(e))e.forEach(s=>{Dt(s,t,n)});else if(Ir(e)){for(const s in e)Dt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Dt(e[s],t,n)}return e}/**
|
|
* @vue/runtime-core v3.5.41
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/function Bn(e,t,n,s){try{return s?e(...s):e()}catch(o){ws(o,t,n)}}function vt(e,t,n,s){if(re(e)){const o=Bn(e,t,n,s);return o&&Er(o)&&o.catch(r=>{ws(r,t,n)}),o}if(X(e)){const o=[];for(let r=0;r<e.length;r++)o.push(vt(e[r],t,n,s));return o}}function ws(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:r,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||_e;if(t){let a=t.parent;const u=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const c=a.ec;if(c){for(let p=0;p<c.length;p++)if(c[p](e,u,d)===!1)return}a=a.parent}if(r){Ut(),Bn(r,null,10,[e,u,d]),Lt();return}}ql(e,n,o,s,i)}function ql(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const Ye=[];let _t=-1;const dn=[];let Kt=null,ln=0;const Qr=Promise.resolve();let is=null;function bo(e){const t=is||Qr;return e?t.then(this?e.bind(this):e):t}function Hl(e){let t=_t+1,n=Ye.length;for(;t<n;){const s=t+n>>>1,o=Ye[s],r=Vn(o);r<e||r===e&&o.flags&2?t=s+1:n=s}return t}function xo(e){if(!(e.flags&1)){const t=Vn(e),n=Ye[Ye.length-1];!n||!(e.flags&2)&&t>=Vn(n)?Ye.push(e):Ye.splice(Hl(t),0,e),e.flags|=1,Yr()}}function Yr(){is||(is=Qr.then(Xr))}function Bl(e){if(!X(e))Kt&&e.id===-1?Kt.splice(ln+1,0,e):e.flags&1||(dn.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)dn.push(e[t]);Yr()}function Oo(e,t,n=_t+1){for(;n<Ye.length;n++){const s=Ye[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ye.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Zr(e){if(dn.length){const t=[...new Set(dn)].sort((n,s)=>Vn(n)-Vn(s));if(dn.length=0,Kt){for(let n=0;n<t.length;n++)Kt.push(t[n]);return}for(Kt=t,ln=0;ln<Kt.length;ln++){const n=Kt[ln];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Kt=null,ln=0}}const Vn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Xr(e){try{for(_t=0;_t<Ye.length;_t++){const t=Ye[_t];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Bn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;_t<Ye.length;_t++){const t=Ye[_t];t&&(t.flags&=-2)}_t=-1,Ye.length=0,Zr(),is=null,(Ye.length||dn.length)&&Xr()}}let Le=null,ei=null;function ls(e){const t=Le;return Le=e,ei=e&&e.type.__scopeId||null,t}function dt(e,t=Le,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&cs(-1);const r=ls(t),i=jt.length;let a;try{a=e(...o)}finally{for(let u=jt.length;u>i;u--)ko();ls(r),s._d&&cs(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function ne(e,t){if(Le===null)return e;const n=Is(Le),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[r,i,a,u=_e]=t[o];r&&(re(r)&&(r={mounted:r,updated:r}),r.deep&&Dt(i),s.push({dir:r,instance:n,value:i,oldValue:void 0,arg:a,modifiers:u}))}return e}function Yt(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i<o.length;i++){const a=o[i];r&&(a.oldValue=r[i].value);let u=a.dir[s];u&&(Ut(),vt(u,n,8,[e.el,a,e,t]),Lt())}}function ns(e,t){if(Ge){let n=Ge.provides;const s=Ge.parent&&Ge.parent.provides;s===n&&(n=Ge.provides=Object.create(s)),n[e]=t}}function pt(e,t,n=!1){const s=Ua();if(s||pn){let o=pn?pn._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&re(t)?t.call(s&&s.proxy):t}}const Gl=Symbol.for("v-scx"),Kl=()=>pt(Gl);function Vt(e,t,n){return ti(e,t,n)}function ti(e,t,n=_e){const{immediate:s,deep:o,flush:r,once:i}=n,a=Fe({},n),u=t&&s||!t&&r!=="post";let d;if(Fn){if(r==="sync"){const y=Kl();d=y.__watcherHandles||(y.__watcherHandles=[])}else if(!u){const y=()=>{};return y.stop=At,y.resume=At,y.pause=At,y}}const c=Ge;a.call=(y,D,P)=>vt(y,c,D,P);let p=!1;r==="post"?a.scheduler=y=>{nt(y,c&&c.suspense)}:r!=="sync"&&(p=!0,a.scheduler=(y,D)=>{D?y():xo(y)}),a.augmentJob=y=>{t&&(y.flags|=4),p&&(y.flags|=2,c&&(y.id=c.uid,y.i=c))};const h=Fl(e,t,a);return Fn&&(d?d.push(h):u&&h()),h}function Wl(e,t,n){const s=this.proxy,o=$e(e)?e.includes(".")?ni(s,e):()=>s[e]:e.bind(s,s);let r;re(t)?r=t:(r=t.handler,n=t);const i=Gn(this),a=ti(o,r.bind(s),n);return i(),a}function ni(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}const zl=Symbol("_vte"),Cs=e=>e.__isTeleport,Ns=Symbol("_leaveCb");function Jl(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Et){t=n;break}}return t}function si(e){if(!_o(e))return Cs(e.type)&&e.children?Jl(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&&re(n.default))return n.default()}}function yo(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;yo(Cs(n.type)&&si(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function oi(e,t){return re(e)?Fe({name:e.name},t,{setup:e}):e}function ri(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function To(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const as=new WeakMap;function On(e,t,n,s,o=!1){if(X(e)){e.forEach((P,K)=>On(P,t&&(X(t)?t[K]:t),n,s,o));return}if(fn(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&On(e,t,n,s.component.subTree);return}const r=s.shapeFlag&4?Is(s.component):s.el,i=o?null:r,{i:a,r:u}=e,d=t&&t.r,c=a.refs===_e?a.refs={}:a.refs,p=a.setupState,h=ge(p),y=p===_e?Ar:P=>To(c,P)?!1:be(h,P),D=(P,K)=>!(K&&To(c,K));if(d!=null&&d!==u){if(Mo(t),$e(d))c[d]=null,y(d)&&(p[d]=null);else if(Ke(d)){const P=t;D(d,P.k)&&(d.value=null),P.k&&(c[P.k]=null)}}if(re(u))Bn(u,a,12,[i,c]);else{const P=$e(u),K=Ke(u);if(P||K){const q=()=>{if(e.f){const T=P?y(u)?p[u]:c[u]:D()||!e.k?u.value:c[e.k];if(o)X(T)&&lo(T,r);else if(X(T))T.includes(r)||T.push(r);else if(P)c[u]=[r],y(u)&&(p[u]=c[u]);else{const V=[r];D(u,e.k)&&(u.value=V),e.k&&(c[e.k]=V)}}else P?(c[u]=i,y(u)&&(p[u]=i)):K&&(D(u,e.k)&&(u.value=i),e.k&&(c[e.k]=i))};if(i){const T=()=>{q(),as.delete(e)};T.id=-1,as.set(e,T),nt(T,n)}else Mo(e),q()}}}function Mo(e){const t=as.get(e);t&&(t.flags|=8,as.delete(e))}xs().requestIdleCallback;xs().cancelIdleCallback;const fn=e=>!!e.type.__asyncLoader,_o=e=>e.type.__isKeepAlive;function Ql(e,t){ii(e,"a",t)}function Yl(e,t){ii(e,"da",t)}function ii(e,t,n=Ge){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(ks(t,s,n),n){let o=n.parent;for(;o&&o.parent;)_o(o.parent.vnode)&&Zl(s,t,n,o),o=o.parent}}function Zl(e,t,n,s){const o=ks(t,e,s,!0);ai(()=>{lo(s[t],o)},n)}function ks(e,t,n=Ge,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Ut();const a=Gn(n),u=vt(t,n,e,i);return a(),Lt(),u});return s?o.unshift(r):o.push(r),r}}const qt=e=>(t,n=Ge)=>{(!Fn||e==="sp")&&ks(e,(...s)=>t(...s),n)},Xl=qt("bm"),As=qt("m"),ea=qt("bu"),ta=qt("u"),li=qt("bum"),ai=qt("um"),na=qt("sp"),sa=qt("rtg"),oa=qt("rtc");function ra(e,t=Ge){ks("ec",e,t)}const ui="components";function wn(e,t){return di(ui,e,!0,t)||e}const ci=Symbol.for("v-ndc");function ia(e){return $e(e)?di(ui,e,!1)||e:e||ci}function di(e,t,n=!0,s=!1){const o=Le||Ge;if(o){const r=o.type;{const a=Ba(r,!1);if(a&&(a===t||a===et(t)||a===gs(et(t))))return r}const i=Do(o[e]||r[e],t)||Do(o.appContext[e],t);return!i&&s?r:i}}function Do(e,t){return e&&(e[t]||e[et(t)]||e[gs(et(t))])}function Ie(e,t,n,s){let o;const r=n,i=X(e);if(i||$e(e)){const a=i&&nn(e);let u=!1,d=!1;a&&(u=!ut(e),d=Ft(e),e=ys(e)),o=new Array(e.length);for(let c=0,p=e.length;c<p;c++)o[c]=t(u?d?hn(ht(e[c])):ht(e[c]):e[c],c,void 0,r)}else if(typeof e=="number"){o=new Array(e);for(let a=0;a<e;a++)o[a]=t(a+1,a,void 0,r)}else if(ye(e))if(e[Symbol.iterator])o=Array.from(e,(a,u)=>t(a,u,void 0,r));else{const a=Object.keys(e);o=new Array(a.length);for(let u=0,d=a.length;u<d;u++){const c=a[u];o[u]=t(e[c],c,u,r)}}else o=[];return o}function la(e,t,n,s,o,r){if(n==null&&(n={}),Le.ce||Le.parent&&fn(Le.parent)&&Le.parent.ce){const d=n,c=Object.keys(d).length>0;return _(),He(le,null,[ie("slot",d,s)],c?-2:64)}let i=e[t];i&&i._c&&(i._d=!1);const a=jt.length;_();let u;try{const d=i&&fi(i(n)),c=n.key||r||d&&d.key;u=He(le,{key:(c&&!mt(c)?c:`_${t}`)+(!d&&s?"_fb":"")},d||(s?s():[]),d&&e._===1?64:-2)}catch(d){for(let c=jt.length;c>a;c--)ko();throw d}finally{i&&i._c&&(i._d=!0)}return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),u}function fi(e){return e.some(t=>Un(t)?!(t.type===Et||t.type===le&&!fi(t.children)):!0)?e:null}const Ys=e=>e?Mi(e)?Is(e):Ys(e.parent):null,Tn=Fe(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=>Ys(e.parent),$root:e=>Ys(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>mi(e),$forceUpdate:e=>e.f||(e.f=()=>{xo(e.update)}),$nextTick:e=>e.n||(e.n=bo.bind(e.proxy)),$watch:e=>Wl.bind(e)}),Vs=(e,t)=>e!==_e&&!e.__isScriptSetup&&be(e,t),aa={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:a,appContext:u}=e;if(t[0]!=="$"){const h=i[t];if(h!==void 0)switch(h){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Vs(s,t))return i[t]=1,s[t];if(o!==_e&&be(o,t))return i[t]=2,o[t];if(be(r,t))return i[t]=3,r[t];if(n!==_e&&be(n,t))return i[t]=4,n[t];Zs&&(i[t]=0)}}const d=Tn[t];let c,p;if(d)return t==="$attrs"&&Be(e.attrs,"get",""),d(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==_e&&be(n,t))return i[t]=4,n[t];if(p=u.config.globalProperties,be(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return Vs(o,t)?(o[t]=n,!0):s!==_e&&be(s,t)?(s[t]=n,!0):be(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,props:r,type:i}},a){let u;return!!(n[a]||e!==_e&&a[0]!=="$"&&be(e,a)||Vs(t,a)||be(r,a)||be(s,a)||be(Tn,a)||be(o.config.globalProperties,a)||(u=i.__cssModules)&&u[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:be(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function No(e){return X(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Zs=!0;function ua(e){const t=mi(e),n=e.proxy,s=e.ctx;Zs=!1,t.beforeCreate&&Vo(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:a,provide:u,inject:d,created:c,beforeMount:p,mounted:h,beforeUpdate:y,updated:D,activated:P,deactivated:K,beforeDestroy:q,beforeUnmount:T,destroyed:V,unmounted:k,render:b,renderTracked:O,renderTriggered:j,errorCaptured:U,serverPrefetch:ke,expose:ee,inheritAttrs:L,components:Me,directives:z,filters:tt}=t;if(d&&ca(d,s,null),i)for(const pe in i){const de=i[pe];re(de)&&(s[pe]=de.bind(n))}if(o){const pe=o.call(n,n);ye(pe)&&(e.data=_s(pe))}if(Zs=!0,r)for(const pe in r){const de=r[pe],ct=re(de)?de.bind(n,n):re(de.get)?de.get.bind(n,n):At,bt=!re(de)&&re(de.set)?de.set.bind(n):At,We=Ce({get:ct,set:bt});Object.defineProperty(s,pe,{enumerable:!0,configurable:!0,get:()=>We.value,set:Te=>We.value=Te})}if(a)for(const pe in a)pi(a[pe],s,n,pe);if(u){const pe=re(u)?u.call(n):u;Reflect.ownKeys(pe).forEach(de=>{ns(de,pe[de])})}c&&Vo(c,e,"c");function Se(pe,de){X(de)?de.forEach(ct=>pe(ct.bind(n))):de&&pe(de.bind(n))}if(Se(Xl,p),Se(As,h),Se(ea,y),Se(ta,D),Se(Ql,P),Se(Yl,K),Se(ra,U),Se(oa,O),Se(sa,j),Se(li,T),Se(ai,k),Se(na,ke),X(ee))if(ee.length){const pe=e.exposed||(e.exposed={});ee.forEach(de=>{Object.defineProperty(pe,de,{get:()=>n[de],set:ct=>n[de]=ct,enumerable:!0})})}else e.exposed||(e.exposed={});b&&e.render===At&&(e.render=b),L!=null&&(e.inheritAttrs=L),Me&&(e.components=Me),z&&(e.directives=z),ke&&ri(e)}function ca(e,t,n=At){X(e)&&(e=Xs(e));for(const s in e){const o=e[s];let r;ye(o)?"default"in o?r=pt(o.from||s,o.default,!0):r=pt(o.from||s):r=pt(o),Ke(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Vo(e,t,n){vt(X(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function pi(e,t,n,s){let o=s.includes(".")?ni(n,s):()=>n[s];if($e(e)){const r=t[e];re(r)&&Vt(o,r)}else if(re(e))Vt(o,e.bind(n));else if(ye(e))if(X(e))e.forEach(r=>pi(r,t,n,s));else{const r=re(e.handler)?e.handler.bind(n):t[e.handler];re(r)&&Vt(o,r,e)}}function mi(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,a=r.get(t);let u;return a?u=a:!o.length&&!n&&!s?u=t:(u={},o.length&&o.forEach(d=>us(u,d,i,!0)),us(u,t,i)),ye(t)&&r.set(t,u),u}function us(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&us(e,r,n,!0),o&&o.forEach(i=>us(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=da[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const da={data:jo,props:Uo,emits:Uo,methods:En,computed:En,beforeCreate:Je,created:Je,beforeMount:Je,mounted:Je,beforeUpdate:Je,updated:Je,beforeDestroy:Je,beforeUnmount:Je,destroyed:Je,unmounted:Je,activated:Je,deactivated:Je,errorCaptured:Je,serverPrefetch:Je,components:En,directives:En,watch:pa,provide:jo,inject:fa};function jo(e,t){return t?e?function(){return Fe(re(e)?e.call(this,this):e,re(t)?t.call(this,this):t)}:t:e}function fa(e,t){return En(Xs(e),Xs(t))}function Xs(e){if(X(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Je(e,t){return e?[...new Set([].concat(e,t))]:t}function En(e,t){return e?Fe(Object.create(null),e,t):t}function Uo(e,t){return e?X(e)&&X(t)?[...new Set([...e,...t])]:Fe(Object.create(null),No(e),No(t??{})):t}function pa(e,t){if(!e)return t;if(!t)return e;const n=Fe(Object.create(null),e);for(const s in t)n[s]=Je(e[s],t[s]);return n}function hi(){return{app:null,config:{isNativeTag:Ar,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 ma=0;function ha(e,t){return function(s,o=null){re(s)||(s=Fe({},s)),o!=null&&!ye(o)&&(o=null);const r=hi(),i=new WeakSet,a=[];let u=!1;const d=r.app={_uid:ma++,_component:s,_props:o,_container:null,_context:r,_instance:null,version:Ka,get config(){return r.config},set config(c){},use(c,...p){return i.has(c)||(c&&re(c.install)?(i.add(c),c.install(d,...p)):re(c)&&(i.add(c),c(d,...p))),d},mixin(c){return r.mixins.includes(c)||r.mixins.push(c),d},component(c,p){return p?(r.components[c]=p,d):r.components[c]},directive(c,p){return p?(r.directives[c]=p,d):r.directives[c]},mount(c,p,h){if(!u){const y=d._ceVNode||ie(s,o);return y.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),e(y,c,h),u=!0,d._container=c,c.__vue_app__=d,Is(y.component)}},onUnmount(c){a.push(c)},unmount(){u&&(vt(a,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(c,p){return r.provides[c]=p,d},runWithContext(c){const p=pn;pn=d;try{return c()}finally{pn=p}}};return d}}let pn=null;const va=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${et(t)}Modifiers`]||e[`${on(t)}Modifiers`];function ga(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||_e;let o=n;const r=t.startsWith("update:"),i=r&&va(s,t.slice(7));i&&(i.trim&&(o=n.map(c=>$e(c)?c.trim():c)),i.number&&(o=n.map(bs)));let a,u=s[a=Ps(t)]||s[a=Ps(et(t))];!u&&r&&(u=s[a=Ps(on(t))]),u&&vt(u,e,6,o);const d=s[a+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,vt(d,e,6,o)}}const ba=new WeakMap;function vi(e,t,n=!1){const s=n?ba:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},a=!1;if(!re(e)){const u=d=>{const c=vi(d,t,!0);c&&(a=!0,Fe(i,c))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!r&&!a?(ye(e)&&s.set(e,null),null):(X(r)?r.forEach(u=>i[u]=null):Fe(i,r),ye(e)&&s.set(e,i),i)}function Es(e,t){return!e||!ms(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),be(e,t[0].toLowerCase()+t.slice(1))||be(e,on(t))||be(e,t))}function Lo(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[r],slots:i,attrs:a,emit:u,render:d,renderCache:c,props:p,data:h,setupState:y,ctx:D,inheritAttrs:P}=e,K=ls(e);let q,T;try{if(n.shapeFlag&4){const k=o||s,b=k;q=Ct(d.call(b,k,c,p,y,h,D)),T=a}else{const k=t;q=Ct(k.length>1?k(p,{attrs:a,slots:i,emit:u}):k(p,null)),T=t.props?a:xa(a)}}catch(k){jt.length=0,ws(k,e,1),q=ie(Et)}let V=q;if(T&&P!==!1){const k=Object.keys(T),{shapeFlag:b}=V;k.length&&b&7&&(r&&k.some(hs)&&(T=ya(T,r)),V=vn(V,T,!1,!0))}if(n.dirs&&(V=vn(V,null,!1,!0),V.dirs=V.dirs?V.dirs.concat(n.dirs):n.dirs),n.transition){const k=Cs(V.type)&&si(V)||V;yo(k,n.transition)}return q=V,ls(K),q}const xa=e=>{let t;for(const n in e)(n==="class"||n==="style"||ms(n))&&((t||(t={}))[n]=e[n]);return t},ya=(e,t)=>{const n={};for(const s in e)(!hs(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function _a(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:a,patchFlag:u}=t,d=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return s?Fo(s,i,d):!!i;if(u&8){const c=t.dynamicProps;for(let p=0;p<c.length;p++){const h=c[p];if(gi(i,s,h)&&!Es(d,h))return!0}}}else return(o||a)&&(!a||!a.$stable)?!0:s===i?!1:s?i?Fo(s,i,d):!0:!!i;return!1}function Fo(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const r=s[o];if(gi(t,e,r)&&!Es(n,r))return!0}return!1}function gi(e,t,n){const s=e[n],o=t[n];return n==="style"&&ye(s)&&ye(o)?!zt(s,o):s!==o}function wa({vnode:e,parent:t,suspense:n},s){for(;t;){const o=t.subTree;if(o.suspense&&o.suspense.activeBranch===e&&(o.suspense.vnode.el=o.el=s,e=o),o===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const bi={},xi=()=>Object.create(bi),yi=e=>Object.getPrototypeOf(e)===bi;function Ca(e,t,n,s=!1){const o={},r=xi();e.propsDefaults=Object.create(null),_i(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Wr(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function ka(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,a=ge(o),[u]=e.propsOptions;let d=!1;if((s||i>0)&&!(i&16)){if(i&8){const c=e.vnode.dynamicProps;for(let p=0;p<c.length;p++){let h=c[p];if(Es(e.emitsOptions,h))continue;const y=t[h];if(u)if(be(r,h))y!==r[h]&&(r[h]=y,d=!0);else{const D=et(h);o[D]=eo(u,a,D,y,e,!1)}else y!==r[h]&&(r[h]=y,d=!0)}}}else{_i(e,t,o,r)&&(d=!0);let c;for(const p in a)(!t||!be(t,p)&&((c=on(p))===p||!be(t,c)))&&(u?n&&(n[p]!==void 0||n[c]!==void 0)&&(o[p]=eo(u,a,p,void 0,e,!0)):delete o[p]);if(r!==a)for(const p in r)(!t||!be(t,p))&&(delete r[p],d=!0)}d&&Mt(e.attrs,"set","")}function _i(e,t,n,s){const[o,r]=e.propsOptions;let i=!1,a;if(t)for(let u in t){if($n(u))continue;const d=t[u];let c;o&&be(o,c=et(u))?!r||!r.includes(c)?n[c]=d:(a||(a={}))[c]=d:Es(e.emitsOptions,u)||(!(u in s)||d!==s[u])&&(s[u]=d,i=!0)}if(r){const u=ge(n),d=a||_e;for(let c=0;c<r.length;c++){const p=r[c];n[p]=eo(o,u,p,d[p],e,!be(d,p))}}return i}function eo(e,t,n,s,o,r){const i=e[n];if(i!=null){const a=be(i,"default");if(a&&s===void 0){const u=i.default;if(i.type!==Function&&!i.skipFactory&&re(u)){const{propsDefaults:d}=o;if(n in d)s=d[n];else{const c=Gn(o);s=d[n]=u.call(null,t),c()}}else s=u;o.ce&&o.ce._setProp(n,s)}i[0]&&(r&&!a?s=!1:i[1]&&(s===""||s===on(n))&&(s=!0))}return s}const Aa=new WeakMap;function wi(e,t,n=!1){const s=n?Aa:t.propsCache,o=s.get(e);if(o)return o;const r=e.props,i={},a=[];let u=!1;if(!re(e)){const c=p=>{u=!0;const[h,y]=wi(p,t,!0);Fe(i,h),y&&a.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!r&&!u)return ye(e)&&s.set(e,un),un;if(X(r))for(let c=0;c<r.length;c++){const p=et(r[c]);qo(p)&&(i[p]=_e)}else if(r)for(const c in r){const p=et(c);if(qo(p)){const h=r[c],y=i[p]=X(h)||re(h)?{type:h}:Fe({},h),D=y.type;let P=!1,K=!0;if(X(D))for(let q=0;q<D.length;++q){const T=D[q],V=re(T)&&T.name;if(V==="Boolean"){P=!0;break}else V==="String"&&(K=!1)}else P=re(D)&&D.name==="Boolean";y[0]=P,y[1]=K,(P||be(y,"default"))&&a.push(p)}}const d=[i,a];return ye(e)&&s.set(e,d),d}function qo(e){return e[0]!=="$"&&!$n(e)}const wo=e=>e==="_"||e==="_ctx"||e==="$stable",Co=e=>X(e)?e.map(Ct):[Ct(e)],Ea=(e,t,n)=>{if(t._n)return t;const s=dt((...o)=>Co(t(...o)),n);return s._c=!1,s},Ci=(e,t,n)=>{const s=e._ctx;for(const o in e){if(wo(o))continue;const r=e[o];if(re(r))t[o]=Ea(o,r,s);else if(r!=null){const i=Co(r);t[o]=()=>i}}},ki=(e,t)=>{const n=Co(t);e.slots.default=()=>n},Ai=(e,t,n)=>{for(const s in t)(n||!wo(s))&&(e[s]=t[s])},Sa=(e,t,n)=>{const s=e.slots=xi();if(e.vnode.shapeFlag&32){const o=t._;o?(Ai(s,t,n),n&&$r(s,"_",o,!0)):Ci(t,s)}else t&&ki(e,t)},Ia=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=_e;if(s.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:Ai(o,t,n):(r=!t.$stable,Ci(t,o)),i=t}else t&&(ki(e,t),i={default:1});if(r)for(const a in o)!wo(a)&&i[a]==null&&delete o[a]},nt=Ta;function $a(e){return Ra(e)}function Ra(e,t){const n=xs();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:a,createComment:u,setText:d,setElementText:c,parentNode:p,nextSibling:h,setScopeId:y=At,insertStaticContent:D}=e,P=(f,m,g,w=null,S=null,A=null,F=void 0,N=null,M=!!m.dynamicChildren)=>{if(f===m)return;f&&!kn(f,m)&&(w=E(f),Te(f,S,A,!0),f=null),m.patchFlag===-2&&(M=!1,m.dynamicChildren=null);const{type:$,ref:Z,shapeFlag:B}=m;switch($){case Ss:K(f,m,g,w);break;case Et:q(f,m,g,w);break;case ss:f==null&&T(m,g,w,F);break;case le:Me(f,m,g,w,S,A,F,N,M);break;default:B&1?b(f,m,g,w,S,A,F,N,M):B&6?z(f,m,g,w,S,A,F,N,M):(B&64||B&128)&&$.process(f,m,g,w,S,A,F,N,M,Y)}Z!=null&&S?On(Z,f&&f.ref,A,m||f,!m):Z==null&&f&&f.ref!=null&&On(f.ref,null,A,f,!0)},K=(f,m,g,w)=>{if(f==null)s(m.el=a(m.children),g,w);else{const S=m.el=f.el;m.children!==f.children&&d(S,m.children)}},q=(f,m,g,w)=>{f==null?s(m.el=u(m.children||""),g,w):m.el=f.el},T=(f,m,g,w)=>{[f.el,f.anchor]=D(f.children,m,g,w,f.el,f.anchor)},V=({el:f,anchor:m},g,w)=>{let S;for(;f&&f!==m;)S=h(f),s(f,g,w),f=S;s(m,g,w)},k=({el:f,anchor:m})=>{let g;for(;f&&f!==m;)g=h(f),o(f),f=g;o(m)},b=(f,m,g,w,S,A,F,N,M)=>{if(m.type==="svg"?F="svg":m.type==="math"&&(F="mathml"),f==null)O(m,g,w,S,A,F,N,M);else{const $=f.el&&f.el._isVueCE?f.el:null;try{$&&$._beginPatch(),ke(f,m,S,A,F,N,M)}finally{$&&$._endPatch()}}},O=(f,m,g,w,S,A,F,N)=>{let M,$;const{props:Z,shapeFlag:B,transition:Q,dirs:te}=f;if(M=f.el=i(f.type,A,Z&&Z.is,Z),B&8?c(M,f.children):B&16&&U(f.children,M,null,w,S,js(f,A),F,N),te&&Yt(f,null,w,"created"),j(M,f,f.scopeId,F,w),Z){for(const xe in Z)xe!=="value"&&!$n(xe)&&r(M,xe,null,Z[xe],A,w);"value"in Z&&r(M,"value",null,Z.value,A),($=Z.onVnodeBeforeMount)&&yt($,w,f)}te&&Yt(f,null,w,"beforeMount");const fe=Pa(S,Q);fe&&Q.beforeEnter(M),s(M,m,g),(($=Z&&Z.onVnodeMounted)||fe||te)&&nt(()=>{try{$&&yt($,w,f),fe&&Q.enter(M),te&&Yt(f,null,w,"mounted")}finally{}},S)},j=(f,m,g,w,S)=>{if(g&&y(f,g),w)for(let A=0;A<w.length;A++)y(f,w[A]);if(S){let A=S.subTree;if(m===A||$i(A.type)&&(A.ssContent===m||A.ssFallback===m)){const F=S.vnode;j(f,F,F.scopeId,F.slotScopeIds,S.parent)}}},U=(f,m,g,w,S,A,F,N,M=0)=>{for(let $=M;$<f.length;$++){const Z=f[$]=N?Ot(f[$]):Ct(f[$]);P(null,Z,m,g,w,S,A,F,N)}},ke=(f,m,g,w,S,A,F)=>{const N=m.el=f.el;let{patchFlag:M,dynamicChildren:$,dirs:Z}=m;M|=f.patchFlag&16;const B=f.props||_e,Q=m.props||_e;let te;if(g&&Zt(g,!1),(te=Q.onVnodeBeforeUpdate)&&yt(te,g,m,f),Z&&Yt(m,f,g,"beforeUpdate"),g&&Zt(g,!0),$&&(!f.dynamicChildren||f.dynamicChildren.length!==$.length)&&(M=0,F=!1,$=null),(B.innerHTML&&Q.innerHTML==null||B.textContent&&Q.textContent==null)&&c(N,""),$?ee(f.dynamicChildren,$,N,g,w,js(m,S),A):F||de(f,m,N,null,g,w,js(m,S),A,!1),M>0){if(M&16)L(N,B,Q,g,S);else if(M&2&&B.class!==Q.class&&r(N,"class",null,Q.class,S),M&4&&r(N,"style",B.style,Q.style,S),M&8){const fe=m.dynamicProps;for(let xe=0;xe<fe.length;xe++){const he=fe[xe],Re=B[he],Pe=Q[he];(Pe!==Re||he==="value")&&r(N,he,Re,Pe,S,g)}}M&1&&f.children!==m.children&&c(N,m.children)}else!F&&$==null&&L(N,B,Q,g,S);((te=Q.onVnodeUpdated)||Z)&&nt(()=>{te&&yt(te,g,m,f),Z&&Yt(m,f,g,"updated")},w)},ee=(f,m,g,w,S,A,F)=>{for(let N=0;N<m.length;N++){const M=f[N],$=m[N],Z=M.el&&(M.type===le||!kn(M,$)||M.shapeFlag&198)?p(M.el):g;P(M,$,Z,null,w,S,A,F,!0)}},L=(f,m,g,w,S)=>{if(m!==g){if(m!==_e)for(const A in m)!$n(A)&&!(A in g)&&r(f,A,m[A],null,S,w);for(const A in g){if($n(A))continue;const F=g[A],N=m[A];F!==N&&A!=="value"&&r(f,A,N,F,S,w)}"value"in g&&r(f,"value",m.value,g.value,S)}},Me=(f,m,g,w,S,A,F,N,M)=>{const $=m.el=f?f.el:a(""),Z=m.anchor=f?f.anchor:a("");let{patchFlag:B,dynamicChildren:Q,slotScopeIds:te}=m;te&&(N=N?N.concat(te):te),f==null?(s($,g,w),s(Z,g,w),U(m.children||[],g,Z,S,A,F,N,M)):B>0&&B&64&&Q&&f.dynamicChildren&&f.dynamicChildren.length===Q.length?(ee(f.dynamicChildren,Q,g,S,A,F,N),(m.key!=null||S&&m===S.subTree)&&Ei(f,m,!0)):de(f,m,g,Z,S,A,F,N,M)},z=(f,m,g,w,S,A,F,N,M)=>{m.slotScopeIds=N,f==null?m.shapeFlag&512?S.ctx.activate(m,g,w,F,M):tt(m,g,w,S,A,F,M):Ht(f,m,M)},tt=(f,m,g,w,S,A,F)=>{const N=f.component=ja(f,w,S);if(_o(f)&&(N.ctx.renderer=Y),La(N,!1,F),N.asyncDep){if(S&&S.registerDep(N,Se,F),!f.el){const M=N.subTree=ie(Et);q(null,M,m,g),f.placeholder=M.el}}else Se(N,f,m,g,S,A,F)},Ht=(f,m,g)=>{const w=m.component=f.component;if(_a(f,m,g))if(w.asyncDep&&!w.asyncResolved){pe(w,m,g);return}else w.next=m,w.update();else m.el=f.el,w.vnode=m},Se=(f,m,g,w,S,A,F)=>{const N=()=>{if(f.isMounted){let{next:B,bu:Q,u:te,parent:fe,vnode:xe}=f;{const rt=Si(f);if(rt){B&&(B.el=xe.el,pe(f,B,F)),rt.asyncDep.then(()=>{nt(()=>{f.isUnmounted||$()},S)});return}}let he=B,Re;Zt(f,!1),B?(B.el=xe.el,pe(f,B,F)):B=xe,Q&&ts(Q),(Re=B.props&&B.props.onVnodeBeforeUpdate)&&yt(Re,fe,B,xe),Zt(f,!0);const Pe=Lo(f),ot=f.subTree;f.subTree=Pe,P(ot,Pe,p(ot.el),E(ot),f,S,A),B.el=Pe.el,he===null&&wa(f,Pe.el),te&&nt(te,S),(Re=B.props&&B.props.onVnodeUpdated)&&nt(()=>yt(Re,fe,B,xe),S)}else{let B;const{el:Q,props:te}=m,{bm:fe,m:xe,parent:he,root:Re,type:Pe}=f,ot=fn(m);Zt(f,!1),fe&&ts(fe),!ot&&(B=te&&te.onVnodeBeforeMount)&&yt(B,he,m),Zt(f,!0);{Re.ce&&Re.ce._hasShadowRoot()&&Re.ce._injectChildStyle(Pe,f.parent?f.parent.type:void 0);const rt=f.subTree=Lo(f);P(null,rt,g,w,f,S,A),m.el=rt.el}if(xe&&nt(xe,S),!ot&&(B=te&&te.onVnodeMounted)){const rt=m;nt(()=>yt(B,he,rt),S)}(m.shapeFlag&256||he&&fn(he.vnode)&&he.vnode.shapeFlag&256)&&f.a&&nt(f.a,S),f.isMounted=!0,m=g=w=null}};f.scope.on();const M=f.effect=new Tr(N);f.scope.off();const $=f.update=M.run.bind(M),Z=f.job=M.runIfDirty.bind(M);Z.i=f,Z.id=f.uid,M.scheduler=()=>xo(Z),Zt(f,!0),$()},pe=(f,m,g)=>{m.component=f;const w=f.vnode.props;f.vnode=m,f.next=null,ka(f,m.props,w,g),Ia(f,m.children,g),Ut(),Oo(f),Lt()},de=(f,m,g,w,S,A,F,N,M=!1)=>{const $=f&&f.children,Z=f?f.shapeFlag:0,B=m.children,{patchFlag:Q,shapeFlag:te}=m;if(Q>0){if(Q&128){bt($,B,g,w,S,A,F,N,M);return}else if(Q&256){ct($,B,g,w,S,A,F,N,M);return}}te&8?(Z&16&&qe($,S,A),B!==$&&c(g,B)):Z&16?te&16?bt($,B,g,w,S,A,F,N,M):qe($,S,A,!0):(Z&8&&c(g,""),te&16&&U(B,g,w,S,A,F,N,M))},ct=(f,m,g,w,S,A,F,N,M)=>{f=f||un,m=m||un;const $=f.length,Z=m.length,B=Math.min($,Z);let Q;for(Q=0;Q<B;Q++){const te=m[Q]=M?Ot(m[Q]):Ct(m[Q]);P(f[Q],te,g,null,S,A,F,N,M)}$>Z?qe(f,S,A,!0,!1,B):U(m,g,w,S,A,F,N,M,B)},bt=(f,m,g,w,S,A,F,N,M)=>{let $=0;const Z=m.length;let B=f.length-1,Q=Z-1;for(;$<=B&&$<=Q;){const te=f[$],fe=m[$]=M?Ot(m[$]):Ct(m[$]);if(kn(te,fe))P(te,fe,g,null,S,A,F,N,M);else break;$++}for(;$<=B&&$<=Q;){const te=f[B],fe=m[Q]=M?Ot(m[Q]):Ct(m[Q]);if(kn(te,fe))P(te,fe,g,null,S,A,F,N,M);else break;B--,Q--}if($>B){if($<=Q){const te=Q+1,fe=te<Z?m[te].el:w;for(;$<=Q;)P(null,m[$]=M?Ot(m[$]):Ct(m[$]),g,fe,S,A,F,N,M),$++}}else if($>Q)for(;$<=B;)Te(f[$],S,A,!0),$++;else{const te=$,fe=$,xe=new Map;for($=fe;$<=Q;$++){const De=m[$]=M?Ot(m[$]):Ct(m[$]);De.key!=null&&xe.set(De.key,$)}let he,Re=0;const Pe=Q-fe+1;let ot=!1,rt=0;const Qt=new Array(Pe);for($=0;$<Pe;$++)Qt[$]=0;for($=te;$<=B;$++){const De=f[$];if(Re>=Pe){Te(De,S,A,!0);continue}let ze;if(De.key!=null)ze=xe.get(De.key);else for(he=fe;he<=Q;he++)if(Qt[he-fe]===0&&kn(De,m[he])){ze=he;break}ze===void 0?Te(De,S,A,!0):(Qt[ze-fe]=$+1,ze>=rt?rt=ze:ot=!0,P(De,m[ze],g,null,S,A,F,N,M),Re++)}const Kn=ot?Oa(Qt):un;for(he=Kn.length-1,$=Pe-1;$>=0;$--){const De=fe+$,ze=m[De],Bt=m[De+1],Wn=De+1<Z?Bt.el||Ii(Bt):w;Qt[$]===0?P(null,ze,g,Wn,S,A,F,N,M):ot&&(he<0||$!==Kn[he]?We(ze,g,Wn,2):he--)}}},We=(f,m,g,w,S=null)=>{const{el:A,type:F,transition:N,children:M,shapeFlag:$}=f;if($&6){We(f.component.subTree,m,g,w);return}if($&128){f.suspense.move(m,g,w);return}if($&64){F.move(f,m,g,Y);return}if(F===le){s(A,m,g);for(let B=0;B<M.length;B++)We(M[B],m,g,w);s(f.anchor,m,g);return}if(F===ss){V(f,m,g);return}if(w!==2&&$&1&&N)if(w===0)N.persisted&&!A[Ns]?s(A,m,g):(N.beforeEnter(A),s(A,m,g),nt(()=>N.enter(A),S));else{const{leave:B,delayLeave:Q,afterLeave:te}=N,fe=()=>{f.ctx.isUnmounted?o(A):s(A,m,g)},xe=()=>{const he=A._isLeaving||!!A[Ns];A._isLeaving&&A[Ns](!0),N.persisted&&!he?fe():B(A,()=>{fe(),te&&te()})};Q?Q(A,fe,xe):xe()}else s(A,m,g)},Te=(f,m,g,w=!1,S=!1)=>{const{type:A,props:F,ref:N,children:M,dynamicChildren:$,shapeFlag:Z,patchFlag:B,dirs:Q,cacheIndex:te,memo:fe}=f;if(B===-2&&(S=!1),N!=null&&(Ut(),On(N,null,g,f,!0),Lt()),te!=null&&(m.renderCache[te]=void 0),Z&256){m.ctx.deactivate(f);return}const xe=Z&1&&Q,he=!fn(f);let Re;if(he&&(Re=F&&F.onVnodeBeforeUnmount)&&yt(Re,m,f),Z&6)xt(f.component,g,w);else{if(Z&128){f.suspense.unmount(g,w);return}xe&&Yt(f,null,m,"beforeUnmount"),Z&64?f.type.remove(f,m,g,Y,w):$&&!$.hasOnce&&(A!==le||B>0&&B&64)?qe($,m,g,!1,!0):(A===le&&B&384||!S&&Z&16)&&qe(M,m,g),w&&st(f)}const Pe=fe!=null&&te==null;(he&&(Re=F&&F.onVnodeUnmounted)||xe||Pe)&&nt(()=>{Re&&yt(Re,m,f),xe&&Yt(f,null,m,"unmounted"),Pe&&(f.el=null)},g)},st=f=>{const{type:m,el:g,anchor:w,transition:S}=f;if(m===le){ue(g,w);return}if(m===ss){k(f);return}const A=()=>{o(g),S&&!S.persisted&&S.afterLeave&&S.afterLeave()};if(f.shapeFlag&1&&S&&!S.persisted){const{leave:F,delayLeave:N}=S,M=()=>F(g,A);N?N(f.el,A,M):M()}else A()},ue=(f,m)=>{let g;for(;f!==m;)g=h(f),o(f),f=g;o(m)},xt=(f,m,g)=>{const{bum:w,scope:S,job:A,subTree:F,um:N,m:M,a:$}=f;Ho(M),Ho($),w&&ts(w),S.stop(),A&&(A.flags|=8,Te(F,f,m,g)),N&&nt(N,m),nt(()=>{f.isUnmounted=!0},m)},qe=(f,m,g,w=!1,S=!1,A=0)=>{for(let F=A;F<f.length;F++)Te(f[F],m,g,w,S)},E=f=>{if(f.shapeFlag&6)return E(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const m=h(f.anchor||f.el),g=m&&m[zl];return g?h(g):m};let W=!1;const H=(f,m,g)=>{let w;f==null?m._vnode&&(Te(m._vnode,null,null,!0),w=m._vnode.component):P(m._vnode||null,f,m,null,null,null,g),m._vnode=f,W||(W=!0,Oo(w),Zr(),W=!1)},Y={p:P,um:Te,m:We,r:st,mt:tt,mc:U,pc:de,pbc:ee,n:E,o:e};return{render:H,hydrate:void 0,createApp:ha(H)}}function js({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 Zt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Pa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ei(e,t,n=!1){const s=e.children,o=t.children;if(X(s)&&X(o))for(let r=0;r<s.length;r++){const i=s[r];let a=o[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=o[r]=Ot(o[r]),a.el=i.el),!n&&a.patchFlag!==-2&&Ei(i,a)),a.type===Ss&&(a.patchFlag===-1&&(a=o[r]=Ot(a)),a.el=i.el),a.type===Et&&!a.el&&(a.el=i.el)}}function Oa(e){const t=e.slice(),n=[0];let s,o,r,i,a;const u=e.length;for(s=0;s<u;s++){const d=e[s];if(d!==0){if(o=n[n.length-1],e[o]<d){t[s]=o,n.push(s);continue}for(r=0,i=n.length-1;r<i;)a=r+i>>1,e[n[a]]<d?r=a+1:i=a;d<e[n[r]]&&(r>0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}function Si(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Si(t)}function Ho(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ii(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ii(t.subTree):null}const $i=e=>e.__isSuspense;function Ta(e,t){t&&t.pendingBranch?X(e)?t.effects.push(...e):t.effects.push(e):Bl(e)}const le=Symbol.for("v-fgt"),Ss=Symbol.for("v-txt"),Et=Symbol.for("v-cmt"),ss=Symbol.for("v-stc"),jt=[];let lt=null;function _(e=!1){jt.push(lt=e?null:[])}function ko(){jt.pop(),lt=jt[jt.length-1]||null}let jn=1;function cs(e,t=!1){jn+=e,e<0&<&&t&&(lt.hasOnce=!0)}function Ri(e){return e.dynamicChildren=jn>0?lt||un:null,ko(),jn>0&<&<.push(e),e}function C(e,t,n,s,o,r){return Ri(l(e,t,n,s,o,r,!0))}function He(e,t,n,s,o){return Ri(ie(e,t,n,s,o,!0))}function Un(e){return e?e.__v_isVNode===!0:!1}function kn(e,t){return e.type===t.type&&e.key===t.key}const Pi=({key:e})=>e??null,os=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?$e(e)||Ke(e)||re(e)?{i:Le,r:e,k:t,f:!!n}:e:null);function l(e,t=null,n=null,s=0,o=null,r=e===le?0:1,i=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Pi(t),ref:t&&os(t),scopeId:ei,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:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Le};return a?(ds(u,n),r&128&&e.normalize(u)):n&&(u.shapeFlag|=$e(n)?8:16),jn>0&&!i&<&&(u.patchFlag>0||r&6)&&u.patchFlag!==32&<.push(u),u}const ie=Ma;function Ma(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===ci)&&(e=Et),Un(e)){const a=vn(e,t,!0);return n&&ds(a,n),jn>0&&!r&<&&(a.shapeFlag&6?lt[lt.indexOf(e)]=a:lt.push(a)),a.patchFlag=-2,a}if(Ga(e)&&(e=e.__vccOpts),t){t=Da(t);let{class:a,style:u}=t;a&&!$e(a)&&(t.class=Ee(a)),ye(u)&&(go(u)&&!X(u)&&(u=Fe({},u)),t.style=sn(u))}const i=$e(e)?1:$i(e)?128:Cs(e)?64:ye(e)?4:re(e)?2:0;return l(e,t,n,s,o,i,r,!0)}function Da(e){return e?go(e)||yi(e)?Fe({},e):e:null}function vn(e,t,n=!1,s=!1){const{props:o,ref:r,patchFlag:i,children:a,transition:u}=e,d=t?Ti(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Pi(d),ref:t&&t.ref?n&&r?X(r)?r.concat(os(t)):[r,os(t)]:os(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==le?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vn(e.ssContent),ssFallback:e.ssFallback&&vn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&s&&yo(c,u.clone(c)),c}function ae(e=" ",t=0){return ie(Ss,null,e,t)}function Oi(e,t){const n=ie(ss,null,e);return n.staticCount=t,n}function J(e="",t=!1){return t?(_(),He(Et,null,e)):ie(Et,null,e)}function Ct(e){return e==null||typeof e=="boolean"?ie(Et):X(e)?ie(le,null,e.slice()):Un(e)?Ot(e):ie(Ss,null,String(e))}function Ot(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:vn(e)}function ds(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(X(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),ds(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!yi(t)?t._ctx=Le:o===3&&Le&&(Le.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(re(t)){if(s&65){ds(e,{default:t});return}t={default:t,_ctx:Le},n=32}else t=String(t),s&64?(n=16,t=[ae(t)]):n=8;e.children=t,e.shapeFlag|=n}function Ti(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=Ee([t.class,s.class]));else if(o==="style")t.style=sn([t.style,s.style]);else if(ms(o)){const r=t[o],i=s[o];i&&r!==i&&!(X(r)&&r.includes(i))?t[o]=r?[].concat(r,i):i:i==null&&r==null&&!hs(o)&&(t[o]=i)}else o!==""&&(t[o]=s[o])}return t}function yt(e,t,n,s=null){vt(e,t,7,[n,s])}const Na=hi();let Va=0;function ja(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Na,r={uid:Va++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new hl(!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:wi(s,o),emitsOptions:vi(s,o),emit:null,emitted:null,propsDefaults:_e,inheritAttrs:s.inheritAttrs,ctx:_e,data:_e,props:_e,attrs:_e,slots:_e,refs:_e,setupState:_e,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 r.ctx={_:r},r.root=t?t.root:r,r.emit=ga.bind(null,r),e.ce&&e.ce(r),r}let Ge=null;const Ua=()=>Ge||Le;let fs,Ln;{const e=xs(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),r=>{o.length>1?o.forEach(i=>i(r)):o[0](r)}};fs=t("__VUE_INSTANCE_SETTERS__",n=>Ge=n),Ln=t("__VUE_SSR_SETTERS__",n=>Fn=n)}const Gn=e=>{const t=Ge;return fs(e),e.scope.on(),()=>{e.scope.off(),fs(t)}},Bo=()=>{Ge&&Ge.scope.off(),fs(null)};function Mi(e){return e.vnode.shapeFlag&4}let Fn=!1;function La(e,t=!1,n=!1){t&&Ln(t);const{props:s,children:o}=e.vnode,r=Mi(e);Ca(e,s,r,t),Sa(e,o,n||t);const i=r?Fa(e,t):void 0;return t&&Ln(!1),i}function Fa(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,aa);const{setup:s}=n;if(s){Ut();const o=e.setupContext=s.length>1?Ha(e):null,r=Gn(e),i=Bn(s,e,0,[e.props,o]),a=Er(i);if(Lt(),r(),(a||e.sp)&&!fn(e)&&ri(e),a){if(i.then(Bo,Bo),t)return i.then(u=>{Ln(!0);try{Go(e,u,t)}finally{Ln(!1)}}).catch(u=>{ws(u,e,0)});e.asyncDep=i}else Go(e,i)}else Di(e)}function Go(e,t,n){re(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ye(t)&&(e.setupState=Jr(t)),Di(e)}function Di(e,t,n){const s=e.type;e.render||(e.render=s.render||At);{const o=Gn(e);Ut();try{ua(e)}finally{Lt(),o()}}}const qa={get(e,t){return Be(e,"get",""),e[t]}};function Ha(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,qa),slots:e.slots,emit:e.emit,expose:t}}function Is(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Jr(Ml(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Tn)return Tn[n](e)},has(t,n){return n in t||n in Tn}})):e.proxy}function Ba(e,t=!0){return re(e)?e.displayName||e.name:e.name||t&&e.__name}function Ga(e){return re(e)&&"__vccOpts"in e}const Ce=(e,t)=>Ul(e,t,Fn);function Ni(e,t,n){try{cs(-1);const s=arguments.length;return s===2?ye(t)&&!X(t)?Un(t)?ie(e,null,[t]):ie(e,t):ie(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Un(n)&&(n=[n]),ie(e,t,n))}finally{cs(1)}}const Ka="3.5.41";/**
|
|
* @vue/runtime-dom v3.5.41
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
* @license MIT
|
|
**/let to;const Ko=typeof window<"u"&&window.trustedTypes;if(Ko)try{to=Ko.createPolicy("vue",{createHTML:e=>e})}catch{}const Vi=to?e=>to.createHTML(e):e=>e,Wa="http://www.w3.org/2000/svg",za="http://www.w3.org/1998/Math/MathML",Rt=typeof document<"u"?document:null,Wo=Rt&&Rt.createElement("template"),Ja={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?Rt.createElementNS(Wa,e):t==="mathml"?Rt.createElementNS(za,e):n?Rt.createElement(e,{is:n}):Rt.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>Rt.createTextNode(e),createComment:e=>Rt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Rt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{Wo.innerHTML=Vi(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const a=Wo.content;if(s==="svg"||s==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Qa=Symbol("_vtc");function Ya(e,t,n){const s=e[Qa];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const zo=Symbol("_vod"),Za=Symbol("_vsh"),Xa=Symbol(""),eu=/(?:^|;)\s*display\s*:/;function tu(e,t,n){const s=e.style,o=$e(n);let r=!1;if(n&&!o){if(t)if($e(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&Sn(s,a,"")}else for(const i in t)n[i]==null&&Sn(s,i,"");for(const i in n){i==="display"&&(r=!0);const a=n[i];a!=null?su(e,i,!$e(t)&&t?t[i]:void 0,a)||Sn(s,i,a):Sn(s,i,"")}}else if(o){if(t!==n){const i=s[Xa];i&&(n+=";"+i),s.cssText=n,r=eu.test(n)}}else t&&e.removeAttribute("style");zo in e&&(e[zo]=r?s.display:"",e[Za]&&(s.display="none"))}const Jo=/\s*!important$/;function Sn(e,t,n){if(X(n))n.forEach(s=>Sn(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=nu(e,t);Jo.test(n)?e.setProperty(on(s),n.replace(Jo,""),"important"):e[s]=n}}const Qo=["Webkit","Moz","ms"],Us={};function nu(e,t){const n=Us[t];if(n)return n;let s=et(t);if(s!=="filter"&&s in e)return Us[t]=s;s=gs(s);for(let o=0;o<Qo.length;o++){const r=Qo[o]+s;if(r in e)return Us[t]=r}return t}function su(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&$e(s)&&n===s}const Yo="http://www.w3.org/1999/xlink";function Zo(e,t,n,s,o,r=pl(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Yo,t.slice(6,t.length)):e.setAttributeNS(Yo,t,n):n==null||r&&!Rr(n)?e.removeAttribute(t):e.setAttribute(t,r?"":mt(n)?String(n):n)}function Xo(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?Vi(n):n);return}const r=e.tagName;if(t==="value"&&r!=="PROGRESS"&&!r.includes("-")){const a=r==="OPTION"?e.getAttribute("value")||"":e.value,u=n==null?e.type==="checkbox"?"on":"":String(n);(a!==u||!("_value"in e))&&(e.value=u),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Rr(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(o||t)}function Nt(e,t,n,s){e.addEventListener(t,n,s)}function ou(e,t,n,s){e.removeEventListener(t,n,s)}const er=Symbol("_vei");function ru(e,t,n,s,o=null){const r=e[er]||(e[er]={}),i=r[t];if(s&&i)i.value=s;else{const[a,u]=au(t);if(s){const d=r[t]=du(s,o);Nt(e,a,d,u)}else i&&(ou(e,a,i,u),r[t]=void 0)}}const iu=/(Once|Passive|Capture)$/,lu=/^on:?(?:Once|Passive|Capture)$/;function au(e){let t,n;for(;(n=e.match(iu))&&!lu.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):on(e.slice(2)),t]}let Ls=0;const uu=Promise.resolve(),cu=()=>Ls||(uu.then(()=>Ls=0),Ls=Date.now());function du(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const o=n.value;if(X(o)){const r=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{r.call(s),s._stopped=!0};const i=o.slice(),a=[s];for(let u=0;u<i.length&&!s._stopped;u++){const d=i[u];d&&vt(d,t,5,a)}}else vt(o,t,5,[s])};return n.value=e,n.attached=cu(),n}const tr=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,fu=(e,t,n,s,o,r)=>{const i=o==="svg";t==="class"?Ya(e,s,i):t==="style"?tu(e,n,s):ms(t)?hs(t)||ru(e,t,n,s,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pu(e,t,s,i))?(Xo(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Zo(e,t,s,i,r,t!=="value")):e._isVueCE&&(mu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!$e(s)))?Xo(e,et(t),s,r,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Zo(e,t,s,i))};function pu(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&tr(t)&&re(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 tr(t)&&$e(n)?!1:t in e}function mu(e,t){const n=e._def.props;if(!n)return!1;const s=et(t);return Array.isArray(n)?n.some(o=>et(o)===s):Object.keys(n).some(o=>et(o)===s)}const Jt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return X(t)?n=>ts(t,n):t};function hu(e){e.target.composing=!0}function nr(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const at=Symbol("_assign"),Zn=Symbol("_initialValue");function Fs(e,t,n){return t&&(e=e.trim()),n&&(e=bs(e)),e}const me={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e.parentNode&&(e.type==="text"?e[Zn]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Zn]=e.defaultValue.replace(/\r\n?/g,`
|
|
`))),e[at]=Jt(o);const r=s||o.props&&o.props.type==="number";Nt(e,t?"change":"input",i=>{i.target.composing||e[at](Fs(e.value,n,r))}),(n||r)&&Nt(e,"change",()=>{e.value=Fs(e.value,n,r)}),t||(Nt(e,"compositionstart",hu),Nt(e,"compositionend",nr),Nt(e,"change",nr))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const o=t??"",r=e[Zn];delete e[Zn],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[at](Fs(e.value,n,s)):e.value=o},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:r}},i){if(e[at]=Jt(i),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?bs(e.value):e.value,u=t??"";if(a===u)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(s&&t===n||o&&e.value.trim()===u)||(e.value=u)}},Pt={deep:!0,created(e,t,n){e[at]=Jt(n),Nt(e,"change",()=>{const s=e._modelValue,o=bn(e),r=e.checked,i=e[at];if(X(s)){const a=uo(s,o),u=a!==-1;if(r&&!u)i(s.concat(o));else if(!r&&u){const d=[...s];d.splice(a,1),i(d)}}else if(_n(s)){const a=new Set(s);r?a.add(o):a.delete(o),i(a)}else i(ji(e,r))})},mounted:sr,beforeUpdate(e,t,n){e[at]=Jt(n),sr(e,t,n)}};function sr(e,{value:t,oldValue:n},s){e._modelValue=t;let o;if(X(t))o=uo(t,s.props.value)>-1;else if(_n(t))o=t.has(s.props.value);else{if(t===n)return;o=zt(t,ji(e,!0))}e.checked!==o&&(e.checked=o)}const vu={created(e,{value:t},n){e.checked=zt(t,n.props.value),e[at]=Jt(n),Nt(e,"change",()=>{e[at](bn(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[at]=Jt(s),t!==n&&(e.checked=zt(t,s.props.value))}},gn={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,Nt(e,"change",()=>{const o=Array.prototype.filter.call(e.options,r=>r.selected).map(r=>n?bs(bn(r)):bn(r));e[at](e.multiple?_n(e._modelValue)?new Set(o):o:o[0]),e._assigning=!0,bo(()=>{e._assigning=!1})}),e[at]=Jt(s)},mounted(e,{value:t}){or(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[at]=Jt(n)},updated(e,{value:t}){e._assigning||or(e,t)}};function or(e,t){const n=e.multiple,s=X(t);if(!(n&&!s&&!_n(t))){for(let o=0,r=e.options.length;o<r;o++){const i=e.options[o],a=bn(i);if(n)if(s){const u=typeof a;u==="string"||u==="number"?i.selected=t.some(d=>String(d)===String(a)):i.selected=uo(t,a)>-1}else i.selected=t.has(a);else if(zt(bn(i),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function bn(e){return"_value"in e?e._value:e.value}function ji(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const gu=["ctrl","shift","alt","meta"],bu={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)=>gu.some(n=>e[`${n}Key`]&&!t.includes(n))},Ve=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((o,...r)=>{for(let i=0;i<t.length;i++){const a=bu[t[i]];if(a&&a(o,t))return}return e(o,...r)}))},xu=Fe({patchProp:fu},Ja);let rr;function yu(){return rr||(rr=$a(xu))}const _u=((...e)=>{const t=yu().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=Cu(s);if(!o)return;const r=t._component;!re(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const i=n(o,!1,wu(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t});function wu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Cu(e){return $e(e)?document.querySelector(e):e}const ku=["width","height"],Ze={__name:"UiIcono",props:{nombre:{type:String,required:!0},tam:{type:[Number,String],default:16}},setup(e){const t={luna:[["path",{d:"M20 14.5A8.5 8.5 0 0 1 9.5 4a8.5 8.5 0 1 0 10.5 10.5Z"}]],sol:[["circle",{cx:12,cy:12,r:4}],["path",{d:"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"}]],lapiz:[["path",{d:"M12 20h9"}],["path",{d:"M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z"}]],cerrar:[["path",{d:"M18 6 6 18M6 6l12 12"}]],atras:[["path",{d:"M19 12H5M12 19l-7-7 7-7"}]],grafico:[["path",{d:"M3 3v18h18"}],["path",{d:"M7 15v3M12 10v8M17 6v12"}]],cerebro:[["path",{d:"M9.5 3A2.5 2.5 0 0 0 7 5.5v.2A2.7 2.7 0 0 0 5 8.3c0 .8.3 1.5.9 2A2.8 2.8 0 0 0 5 12.5c0 1 .5 1.9 1.3 2.4-.2.4-.3.8-.3 1.2A2.9 2.9 0 0 0 9 19a2.5 2.5 0 0 0 3 2V3.8A2.5 2.5 0 0 0 9.5 3Z"}],["path",{d:"M14.5 3A2.5 2.5 0 0 1 17 5.5v.2a2.7 2.7 0 0 1 2 2.6c0 .8-.3 1.5-.9 2A2.8 2.8 0 0 1 19 12.5c0 1-.5 1.9-1.3 2.4.2.4.3.8.3 1.2A2.9 2.9 0 0 1 15 19a2.5 2.5 0 0 1-3 2"}]],imagen:[["rect",{x:3,y:3,width:18,height:18,rx:2}],["circle",{cx:8.5,cy:8.5,r:1.5}],["path",{d:"m21 15-5-5L5 21"}]],microfono:[["rect",{x:9,y:2,width:6,height:12,rx:3}],["path",{d:"M5 10a7 7 0 0 0 14 0M12 17v5"}]],escribir:[["path",{d:"M3 21h18"}],["path",{d:"M5 17 17.5 4.5a2.1 2.1 0 0 1 3 3L8 20l-4 1Z"}]],archivo:[["path",{d:"M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z"}],["path",{d:"M14 2v5h5"}]],sitio:[["circle",{cx:12,cy:12,r:9}],["path",{d:"M3 12h18M12 3a15 15 0 0 1 0 18 15 15 0 0 1 0-18Z"}]],refrescar:[["path",{d:"M21 12a9 9 0 1 1-3-6.7"}],["path",{d:"M21 4v5h-5"}]],descargar:[["path",{d:"M12 3v12"}],["path",{d:"m7 11 5 5 5-5"}],["path",{d:"M4 21h16"}]],alerta:[["path",{d:"M12 9v4M12 17h.01"}],["path",{d:"M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z"}]],ok:[["path",{d:"M20 6 9 17l-5-5"}]],copiar:[["rect",{x:9,y:9,width:12,height:12,rx:2}],["path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"}]],mensaje:[["path",{d:"M21 11.5a8.4 8.4 0 0 1-9 8.4 8.5 8.5 0 0 1-3.9-.9L3 21l1.9-5.1A8.4 8.4 0 0 1 4 11.5a8.5 8.5 0 0 1 8.5-8.5A8.4 8.4 0 0 1 21 11.5Z"}]],auto:[["path",{d:"M17 2.1 21 6l-4 3.9"}],["path",{d:"M3 11V9a4 4 0 0 1 4-4h14"}],["path",{d:"M7 21.9 3 18l4-3.9"}],["path",{d:"M21 13v2a4 4 0 0 1-4 4H3"}]]};return(n,s)=>(_(),C("svg",{width:e.tam,height:e.tam,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.75","stroke-linecap":"round","stroke-linejoin":"round",class:"inline-block shrink-0 align-[-0.15em]","aria-hidden":"true"},[(_(!0),C(le,null,Ie(t[e.nombre]||[],(o,r)=>(_(),He(ia(o[0]),Ti({key:r},{ref_for:!0},o[1]),null,16))),128))],8,ku))}};/*!
|
|
* vue-router v4.6.4
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const an=typeof document<"u";function Ui(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Au(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Ui(e.default)}const ve=Object.assign;function qs(e,t){const n={};for(const s in t){const o=t[s];n[s]=gt(o)?o.map(e):e(o)}return n}const Mn=()=>{},gt=Array.isArray;function ir(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const Li=/#/g,Eu=/&/g,Su=/\//g,Iu=/=/g,$u=/\?/g,Fi=/\+/g,Ru=/%5B/g,Pu=/%5D/g,qi=/%5E/g,Ou=/%60/g,Hi=/%7B/g,Tu=/%7C/g,Bi=/%7D/g,Mu=/%20/g;function Ao(e){return e==null?"":encodeURI(""+e).replace(Tu,"|").replace(Ru,"[").replace(Pu,"]")}function Du(e){return Ao(e).replace(Hi,"{").replace(Bi,"}").replace(qi,"^")}function no(e){return Ao(e).replace(Fi,"%2B").replace(Mu,"+").replace(Li,"%23").replace(Eu,"%26").replace(Ou,"`").replace(Hi,"{").replace(Bi,"}").replace(qi,"^")}function Nu(e){return no(e).replace(Iu,"%3D")}function Vu(e){return Ao(e).replace(Li,"%23").replace($u,"%3F")}function ju(e){return Vu(e).replace(Su,"%2F")}function qn(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Uu=/\/$/,Lu=e=>e.replace(Uu,"");function Hs(e,t,n="/"){let s,o={},r="",i="";const a=t.indexOf("#");let u=t.indexOf("?");return u=a>=0&&u>a?-1:u,u>=0&&(s=t.slice(0,u),r=t.slice(u,a>0?a:t.length),o=e(r.slice(1))),a>=0&&(s=s||t.slice(0,a),i=t.slice(a,t.length)),s=Bu(s??t,n),{fullPath:s+r+i,path:s,query:o,hash:qn(i)}}function Fu(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function lr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function qu(e,t,n){const s=t.matched.length-1,o=n.matched.length-1;return s>-1&&s===o&&xn(t.matched[s],n.matched[o])&&Gi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function xn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Gi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Hu(e[n],t[n]))return!1;return!0}function Hu(e,t){return gt(e)?ar(e,t):gt(t)?ar(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function ar(e,t){return gt(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Bu(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),o=s[s.length-1];(o===".."||o===".")&&s.push("");let r=n.length-1,i,a;for(i=0;i<s.length;i++)if(a=s[i],a!==".")if(a==="..")r>1&&r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(i).join("/")}const Gt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let so=(function(e){return e.pop="pop",e.push="push",e})({}),Bs=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Gu(e){if(!e)if(an){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Lu(e)}const Ku=/^[^#]+#/;function Wu(e,t){return e.replace(Ku,"#")+t}function zu(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const $s=()=>({left:window.scrollX,top:window.scrollY});function Ju(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=zu(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function ur(e,t){return(history.state?history.state.position-t:-1)+e}const oo=new Map;function Qu(e,t){oo.set(e,t)}function Yu(e){const t=oo.get(e);return oo.delete(e),t}function Zu(e){return typeof e=="string"||e&&typeof e=="object"}function Ki(e){return typeof e=="string"||typeof e=="symbol"}let Oe=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Wi=Symbol("");Oe.MATCHER_NOT_FOUND+"",Oe.NAVIGATION_GUARD_REDIRECT+"",Oe.NAVIGATION_ABORTED+"",Oe.NAVIGATION_CANCELLED+"",Oe.NAVIGATION_DUPLICATED+"";function yn(e,t){return ve(new Error,{type:e,[Wi]:!0},t)}function $t(e,t){return e instanceof Error&&Wi in e&&(t==null||!!(e.type&t))}const Xu=["params","query","hash"];function ec(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Xu)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function tc(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const o=n[s].replace(Fi," "),r=o.indexOf("="),i=qn(r<0?o:o.slice(0,r)),a=r<0?null:qn(o.slice(r+1));if(i in t){let u=t[i];gt(u)||(u=t[i]=[u]),u.push(a)}else t[i]=a}return t}function cr(e){let t="";for(let n in e){const s=e[n];if(n=Nu(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(gt(s)?s.map(o=>o&&no(o)):[s&&no(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function nc(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=gt(s)?s.map(o=>o==null?null:""+o):s==null?s:""+s)}return t}const sc=Symbol(""),dr=Symbol(""),Rs=Symbol(""),Eo=Symbol(""),ro=Symbol("");function An(){let e=[];function t(s){return e.push(s),()=>{const o=e.indexOf(s);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Wt(e,t,n,s,o,r=i=>i()){const i=s&&(s.enterCallbacks[o]=s.enterCallbacks[o]||[]);return()=>new Promise((a,u)=>{const d=h=>{h===!1?u(yn(Oe.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?u(h):Zu(h)?u(yn(Oe.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(i&&s.enterCallbacks[o]===i&&typeof h=="function"&&i.push(h),a())},c=r(()=>e.call(s&&s.instances[o],t,n,d));let p=Promise.resolve(c);e.length<3&&(p=p.then(d)),p.catch(h=>u(h))})}function Gs(e,t,n,s,o=r=>r()){const r=[];for(const i of e)for(const a in i.components){let u=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(Ui(u)){const d=(u.__vccOpts||u)[t];d&&r.push(Wt(d,n,s,i,a,o))}else{let d=u();r.push(()=>d.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const p=Au(c)?c.default:c;i.mods[a]=c,i.components[a]=p;const h=(p.__vccOpts||p)[t];return h&&Wt(h,n,s,i,a,o)()}))}}return r}function oc(e,t){const n=[],s=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let i=0;i<r;i++){const a=t.matched[i];a&&(e.matched.find(d=>xn(d,a))?s.push(a):n.push(a));const u=e.matched[i];u&&(t.matched.find(d=>xn(d,u))||o.push(u))}return[n,s,o]}/*!
|
|
* vue-router v4.6.4
|
|
* (c) 2025 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/let rc=()=>location.protocol+"//"+location.host;function zi(e,t){const{pathname:n,search:s,hash:o}=t,r=e.indexOf("#");if(r>-1){let i=o.includes(e.slice(r))?e.slice(r).length:1,a=o.slice(i);return a[0]!=="/"&&(a="/"+a),lr(a,"")}return lr(n,e)+s+o}function ic(e,t,n,s){let o=[],r=[],i=null;const a=({state:h})=>{const y=zi(e,location),D=n.value,P=t.value;let K=0;if(h){if(n.value=y,t.value=h,i&&i===D){i=null;return}K=P?h.position-P.position:0}else s(y);o.forEach(q=>{q(n.value,D,{delta:K,type:so.pop,direction:K?K>0?Bs.forward:Bs.back:Bs.unknown})})};function u(){i=n.value}function d(h){o.push(h);const y=()=>{const D=o.indexOf(h);D>-1&&o.splice(D,1)};return r.push(y),y}function c(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(ve({},h.state,{scroll:$s()}),"")}}function p(){for(const h of r)h();r=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:u,listen:d,destroy:p}}function fr(e,t,n,s=!1,o=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:o?$s():null}}function lc(e){const{history:t,location:n}=window,s={value:zi(e,n)},o={value:t.state};o.value||r(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(u,d,c){const p=e.indexOf("#"),h=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+u:rc()+e+u;try{t[c?"replaceState":"pushState"](d,"",h),o.value=d}catch(y){console.error(y),n[c?"replace":"assign"](h)}}function i(u,d){r(u,ve({},t.state,fr(o.value.back,u,o.value.forward,!0),d,{position:o.value.position}),!0),s.value=u}function a(u,d){const c=ve({},o.value,t.state,{forward:u,scroll:$s()});r(c.current,c,!0),r(u,ve({},fr(s.value,u,null),{position:c.position+1},d),!1),s.value=u}return{location:s,state:o,push:a,replace:i}}function ac(e){e=Gu(e);const t=lc(e),n=ic(e,t.state,t.location,t.replace);function s(r,i=!0){i||n.pauseListeners(),history.go(r)}const o=ve({location:"",base:e,go:s,createHref:Wu.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let en=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var Ne=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Ne||{});const uc={type:en.Static,value:""},cc=/[a-zA-Z0-9_]/;function dc(e){if(!e)return[[]];if(e==="/")return[[uc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(y){throw new Error(`ERR (${n})/"${d}": ${y}`)}let n=Ne.Static,s=n;const o=[];let r;function i(){r&&o.push(r),r=[]}let a=0,u,d="",c="";function p(){d&&(n===Ne.Static?r.push({type:en.Static,value:d}):n===Ne.Param||n===Ne.ParamRegExp||n===Ne.ParamRegExpEnd?(r.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),r.push({type:en.Param,value:d,regexp:c,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),d="")}function h(){d+=u}for(;a<e.length;){if(u=e[a++],u==="\\"&&n!==Ne.ParamRegExp){s=n,n=Ne.EscapeNext;continue}switch(n){case Ne.Static:u==="/"?(d&&p(),i()):u===":"?(p(),n=Ne.Param):h();break;case Ne.EscapeNext:h(),n=s;break;case Ne.Param:u==="("?n=Ne.ParamRegExp:cc.test(u)?h():(p(),n=Ne.Static,u!=="*"&&u!=="?"&&u!=="+"&&a--);break;case Ne.ParamRegExp:u===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+u:n=Ne.ParamRegExpEnd:c+=u;break;case Ne.ParamRegExpEnd:p(),n=Ne.Static,u!=="*"&&u!=="?"&&u!=="+"&&a--,c="";break;default:t("Unknown state");break}}return n===Ne.ParamRegExp&&t(`Unfinished custom RegExp for param "${d}"`),p(),i(),o}const pr="[^/]+?",fc={sensitive:!1,strict:!1,start:!0,end:!0};var Qe=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Qe||{});const pc=/[.+*?^${}()[\]/\\]/g;function mc(e,t){const n=ve({},fc,t),s=[];let o=n.start?"^":"";const r=[];for(const d of e){const c=d.length?[]:[Qe.Root];n.strict&&!d.length&&(o+="/");for(let p=0;p<d.length;p++){const h=d[p];let y=Qe.Segment+(n.sensitive?Qe.BonusCaseSensitive:0);if(h.type===en.Static)p||(o+="/"),o+=h.value.replace(pc,"\\$&"),y+=Qe.Static;else if(h.type===en.Param){const{value:D,repeatable:P,optional:K,regexp:q}=h;r.push({name:D,repeatable:P,optional:K});const T=q||pr;if(T!==pr){y+=Qe.BonusCustomRegExp;try{`${T}`}catch(k){throw new Error(`Invalid custom RegExp for param "${D}" (${T}): `+k.message)}}let V=P?`((?:${T})(?:/(?:${T}))*)`:`(${T})`;p||(V=K&&d.length<2?`(?:/${V})`:"/"+V),K&&(V+="?"),o+=V,y+=Qe.Dynamic,K&&(y+=Qe.BonusOptional),P&&(y+=Qe.BonusRepeatable),T===".*"&&(y+=Qe.BonusWildcard)}c.push(y)}s.push(c)}if(n.strict&&n.end){const d=s.length-1;s[d][s[d].length-1]+=Qe.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const i=new RegExp(o,n.sensitive?"":"i");function a(d){const c=d.match(i),p={};if(!c)return null;for(let h=1;h<c.length;h++){const y=c[h]||"",D=r[h-1];p[D.name]=y&&D.repeatable?y.split("/"):y}return p}function u(d){let c="",p=!1;for(const h of e){(!p||!c.endsWith("/"))&&(c+="/"),p=!1;for(const y of h)if(y.type===en.Static)c+=y.value;else if(y.type===en.Param){const{value:D,repeatable:P,optional:K}=y,q=D in d?d[D]:"";if(gt(q)&&!P)throw new Error(`Provided param "${D}" is an array but it is not repeatable (* or + modifiers)`);const T=gt(q)?q.join("/"):q;if(!T)if(K)h.length<2&&(c.endsWith("/")?c=c.slice(0,-1):p=!0);else throw new Error(`Missing required param "${D}"`);c+=T}}return c||"/"}return{re:i,score:s,keys:r,parse:a,stringify:u}}function hc(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===Qe.Static+Qe.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Qe.Static+Qe.Segment?1:-1:0}function Ji(e,t){let n=0;const s=e.score,o=t.score;for(;n<s.length&&n<o.length;){const r=hc(s[n],o[n]);if(r)return r;n++}if(Math.abs(o.length-s.length)===1){if(mr(s))return 1;if(mr(o))return-1}return o.length-s.length}function mr(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const vc={strict:!1,end:!0,sensitive:!1};function gc(e,t,n){const s=mc(dc(e.path),n),o=ve(s,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function bc(e,t){const n=[],s=new Map;t=ir(vc,t);function o(p){return s.get(p)}function r(p,h,y){const D=!y,P=vr(p);P.aliasOf=y&&y.record;const K=ir(t,p),q=[P];if("alias"in p){const k=typeof p.alias=="string"?[p.alias]:p.alias;for(const b of k)q.push(vr(ve({},P,{components:y?y.record.components:P.components,path:b,aliasOf:y?y.record:P})))}let T,V;for(const k of q){const{path:b}=k;if(h&&b[0]!=="/"){const O=h.record.path,j=O[O.length-1]==="/"?"":"/";k.path=h.record.path+(b&&j+b)}if(T=gc(k,h,K),y?y.alias.push(T):(V=V||T,V!==T&&V.alias.push(T),D&&p.name&&!gr(T)&&i(p.name)),Qi(T)&&u(T),P.children){const O=P.children;for(let j=0;j<O.length;j++)r(O[j],T,y&&y.children[j])}y=y||T}return V?()=>{i(V)}:Mn}function i(p){if(Ki(p)){const h=s.get(p);h&&(s.delete(p),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(p);h>-1&&(n.splice(h,1),p.record.name&&s.delete(p.record.name),p.children.forEach(i),p.alias.forEach(i))}}function a(){return n}function u(p){const h=_c(p,n);n.splice(h,0,p),p.record.name&&!gr(p)&&s.set(p.record.name,p)}function d(p,h){let y,D={},P,K;if("name"in p&&p.name){if(y=s.get(p.name),!y)throw yn(Oe.MATCHER_NOT_FOUND,{location:p});K=y.record.name,D=ve(hr(h.params,y.keys.filter(V=>!V.optional).concat(y.parent?y.parent.keys.filter(V=>V.optional):[]).map(V=>V.name)),p.params&&hr(p.params,y.keys.map(V=>V.name))),P=y.stringify(D)}else if(p.path!=null)P=p.path,y=n.find(V=>V.re.test(P)),y&&(D=y.parse(P),K=y.record.name);else{if(y=h.name?s.get(h.name):n.find(V=>V.re.test(h.path)),!y)throw yn(Oe.MATCHER_NOT_FOUND,{location:p,currentLocation:h});K=y.record.name,D=ve({},h.params,p.params),P=y.stringify(D)}const q=[];let T=y;for(;T;)q.unshift(T.record),T=T.parent;return{name:K,path:P,params:D,matched:q,meta:yc(q)}}e.forEach(p=>r(p));function c(){n.length=0,s.clear()}return{addRoute:r,resolve:d,removeRoute:i,clearRoutes:c,getRoutes:a,getRecordMatcher:o}}function hr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function vr(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:xc(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function xc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function gr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yc(e){return e.reduce((t,n)=>ve(t,n.meta),{})}function _c(e,t){let n=0,s=t.length;for(;n!==s;){const r=n+s>>1;Ji(e,t[r])<0?s=r:n=r+1}const o=wc(e);return o&&(s=t.lastIndexOf(o,s-1)),s}function wc(e){let t=e;for(;t=t.parent;)if(Qi(t)&&Ji(e,t)===0)return t}function Qi({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function br(e){const t=pt(Rs),n=pt(Eo),s=Ce(()=>{const u=je(e.to);return t.resolve(u)}),o=Ce(()=>{const{matched:u}=s.value,{length:d}=u,c=u[d-1],p=n.matched;if(!c||!p.length)return-1;const h=p.findIndex(xn.bind(null,c));if(h>-1)return h;const y=xr(u[d-2]);return d>1&&xr(c)===y&&p[p.length-1].path!==y?p.findIndex(xn.bind(null,u[d-2])):h}),r=Ce(()=>o.value>-1&&Sc(n.params,s.value.params)),i=Ce(()=>o.value>-1&&o.value===n.matched.length-1&&Gi(n.params,s.value.params));function a(u={}){if(Ec(u)){const d=t[je(e.replace)?"replace":"push"](je(e.to)).catch(Mn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:s,href:Ce(()=>s.value.href),isActive:r,isExactActive:i,navigate:a}}function Cc(e){return e.length===1?e[0]:e}const kc=oi({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:br,setup(e,{slots:t}){const n=_s(br(e)),{options:s}=pt(Rs),o=Ce(()=>({[yr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[yr(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&Cc(t.default(n));return e.custom?r:Ni("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),Ac=kc;function Ec(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Sc(e,t){for(const n in t){const s=t[n],o=e[n];if(typeof s=="string"){if(s!==o)return!1}else if(!gt(o)||o.length!==s.length||s.some((r,i)=>r.valueOf()!==o[i].valueOf()))return!1}return!0}function xr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const yr=(e,t,n)=>e??t??n,Ic=oi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=pt(ro),o=Ce(()=>e.route||s.value),r=pt(dr,0),i=Ce(()=>{let d=je(r);const{matched:c}=o.value;let p;for(;(p=c[d])&&!p.components;)d++;return d}),a=Ce(()=>o.value.matched[i.value]);ns(dr,Ce(()=>i.value+1)),ns(sc,a),ns(ro,o);const u=G();return Vt(()=>[u.value,a.value,e.name],([d,c,p],[h,y,D])=>{c&&(c.instances[p]=d,y&&y!==c&&d&&d===h&&(c.leaveGuards.size||(c.leaveGuards=y.leaveGuards),c.updateGuards.size||(c.updateGuards=y.updateGuards))),d&&c&&(!y||!xn(c,y)||!h)&&(c.enterCallbacks[p]||[]).forEach(P=>P(d))},{flush:"post"}),()=>{const d=o.value,c=e.name,p=a.value,h=p&&p.components[c];if(!h)return _r(n.default,{Component:h,route:d});const y=p.props[c],D=y?y===!0?d.params:typeof y=="function"?y(d):y:null,K=Ni(h,ve({},D,t,{onVnodeUnmounted:q=>{q.component.isUnmounted&&(p.instances[c]=null)},ref:u}));return _r(n.default,{Component:K,route:d})||K}}});function _r(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const $c=Ic;function Rc(e){const t=bc(e.routes,e),n=e.parseQuery||tc,s=e.stringifyQuery||cr,o=e.history,r=An(),i=An(),a=An(),u=Dl(Gt);let d=Gt;an&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=qs.bind(null,E=>""+E),p=qs.bind(null,ju),h=qs.bind(null,qn);function y(E,W){let H,Y;return Ki(E)?(H=t.getRecordMatcher(E),Y=W):Y=E,t.addRoute(Y,H)}function D(E){const W=t.getRecordMatcher(E);W&&t.removeRoute(W)}function P(){return t.getRoutes().map(E=>E.record)}function K(E){return!!t.getRecordMatcher(E)}function q(E,W){if(W=ve({},W||u.value),typeof E=="string"){const g=Hs(n,E,W.path),w=t.resolve({path:g.path},W),S=o.createHref(g.fullPath);return ve(g,w,{params:h(w.params),hash:qn(g.hash),redirectedFrom:void 0,href:S})}let H;if(E.path!=null)H=ve({},E,{path:Hs(n,E.path,W.path).path});else{const g=ve({},E.params);for(const w in g)g[w]==null&&delete g[w];H=ve({},E,{params:p(g)}),W.params=p(W.params)}const Y=t.resolve(H,W),ce=E.hash||"";Y.params=c(h(Y.params));const f=Fu(s,ve({},E,{hash:Du(ce),path:Y.path})),m=o.createHref(f);return ve({fullPath:f,hash:ce,query:s===cr?nc(E.query):E.query||{}},Y,{redirectedFrom:void 0,href:m})}function T(E){return typeof E=="string"?Hs(n,E,u.value.path):ve({},E)}function V(E,W){if(d!==E)return yn(Oe.NAVIGATION_CANCELLED,{from:W,to:E})}function k(E){return j(E)}function b(E){return k(ve(T(E),{replace:!0}))}function O(E,W){const H=E.matched[E.matched.length-1];if(H&&H.redirect){const{redirect:Y}=H;let ce=typeof Y=="function"?Y(E,W):Y;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=T(ce):{path:ce},ce.params={}),ve({query:E.query,hash:E.hash,params:ce.path!=null?{}:E.params},ce)}}function j(E,W){const H=d=q(E),Y=u.value,ce=E.state,f=E.force,m=E.replace===!0,g=O(H,Y);if(g)return j(ve(T(g),{state:typeof g=="object"?ve({},ce,g.state):ce,force:f,replace:m}),W||H);const w=H;w.redirectedFrom=W;let S;return!f&&qu(s,Y,H)&&(S=yn(Oe.NAVIGATION_DUPLICATED,{to:w,from:Y}),We(Y,Y,!0,!1)),(S?Promise.resolve(S):ee(w,Y)).catch(A=>$t(A)?$t(A,Oe.NAVIGATION_GUARD_REDIRECT)?A:bt(A):de(A,w,Y)).then(A=>{if(A){if($t(A,Oe.NAVIGATION_GUARD_REDIRECT))return j(ve({replace:m},T(A.to),{state:typeof A.to=="object"?ve({},ce,A.to.state):ce,force:f}),W||w)}else A=Me(w,Y,!0,m,ce);return L(w,Y,A),A})}function U(E,W){const H=V(E,W);return H?Promise.reject(H):Promise.resolve()}function ke(E){const W=ue.values().next().value;return W&&typeof W.runWithContext=="function"?W.runWithContext(E):E()}function ee(E,W){let H;const[Y,ce,f]=oc(E,W);H=Gs(Y.reverse(),"beforeRouteLeave",E,W);for(const g of Y)g.leaveGuards.forEach(w=>{H.push(Wt(w,E,W))});const m=U.bind(null,E,W);return H.push(m),qe(H).then(()=>{H=[];for(const g of r.list())H.push(Wt(g,E,W));return H.push(m),qe(H)}).then(()=>{H=Gs(ce,"beforeRouteUpdate",E,W);for(const g of ce)g.updateGuards.forEach(w=>{H.push(Wt(w,E,W))});return H.push(m),qe(H)}).then(()=>{H=[];for(const g of f)if(g.beforeEnter)if(gt(g.beforeEnter))for(const w of g.beforeEnter)H.push(Wt(w,E,W));else H.push(Wt(g.beforeEnter,E,W));return H.push(m),qe(H)}).then(()=>(E.matched.forEach(g=>g.enterCallbacks={}),H=Gs(f,"beforeRouteEnter",E,W,ke),H.push(m),qe(H))).then(()=>{H=[];for(const g of i.list())H.push(Wt(g,E,W));return H.push(m),qe(H)}).catch(g=>$t(g,Oe.NAVIGATION_CANCELLED)?g:Promise.reject(g))}function L(E,W,H){a.list().forEach(Y=>ke(()=>Y(E,W,H)))}function Me(E,W,H,Y,ce){const f=V(E,W);if(f)return f;const m=W===Gt,g=an?history.state:{};H&&(Y||m?o.replace(E.fullPath,ve({scroll:m&&g&&g.scroll},ce)):o.push(E.fullPath,ce)),u.value=E,We(E,W,H,m),bt()}let z;function tt(){z||(z=o.listen((E,W,H)=>{if(!xt.listening)return;const Y=q(E),ce=O(Y,xt.currentRoute.value);if(ce){j(ve(ce,{replace:!0,force:!0}),Y).catch(Mn);return}d=Y;const f=u.value;an&&Qu(ur(f.fullPath,H.delta),$s()),ee(Y,f).catch(m=>$t(m,Oe.NAVIGATION_ABORTED|Oe.NAVIGATION_CANCELLED)?m:$t(m,Oe.NAVIGATION_GUARD_REDIRECT)?(j(ve(T(m.to),{force:!0}),Y).then(g=>{$t(g,Oe.NAVIGATION_ABORTED|Oe.NAVIGATION_DUPLICATED)&&!H.delta&&H.type===so.pop&&o.go(-1,!1)}).catch(Mn),Promise.reject()):(H.delta&&o.go(-H.delta,!1),de(m,Y,f))).then(m=>{m=m||Me(Y,f,!1),m&&(H.delta&&!$t(m,Oe.NAVIGATION_CANCELLED)?o.go(-H.delta,!1):H.type===so.pop&&$t(m,Oe.NAVIGATION_ABORTED|Oe.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),L(Y,f,m)}).catch(Mn)}))}let Ht=An(),Se=An(),pe;function de(E,W,H){bt(E);const Y=Se.list();return Y.length?Y.forEach(ce=>ce(E,W,H)):console.error(E),Promise.reject(E)}function ct(){return pe&&u.value!==Gt?Promise.resolve():new Promise((E,W)=>{Ht.add([E,W])})}function bt(E){return pe||(pe=!E,tt(),Ht.list().forEach(([W,H])=>E?H(E):W()),Ht.reset()),E}function We(E,W,H,Y){const{scrollBehavior:ce}=e;if(!an||!ce)return Promise.resolve();const f=!H&&Yu(ur(E.fullPath,0))||(Y||!H)&&history.state&&history.state.scroll||null;return bo().then(()=>ce(E,W,f)).then(m=>m&&Ju(m)).catch(m=>de(m,E,W))}const Te=E=>o.go(E);let st;const ue=new Set,xt={currentRoute:u,listening:!0,addRoute:y,removeRoute:D,clearRoutes:t.clearRoutes,hasRoute:K,getRoutes:P,resolve:q,options:e,push:k,replace:b,go:Te,back:()=>Te(-1),forward:()=>Te(1),beforeEach:r.add,beforeResolve:i.add,afterEach:a.add,onError:Se.add,isReady:ct,install(E){E.component("RouterLink",Ac),E.component("RouterView",$c),E.config.globalProperties.$router=xt,Object.defineProperty(E.config.globalProperties,"$route",{enumerable:!0,get:()=>je(u)}),an&&!st&&u.value===Gt&&(st=!0,k(o.location).catch(Y=>{}));const W={};for(const Y in Gt)Object.defineProperty(W,Y,{get:()=>u.value[Y],enumerable:!0});E.provide(Rs,xt),E.provide(Eo,Wr(W)),E.provide(ro,u);const H=E.unmount;ue.add(E),E.unmount=function(){ue.delete(E),ue.size<1&&(d=Gt,z&&z(),z=null,u.value=Gt,st=!1,pe=!1),H()}}};function qe(E){return E.reduce((W,H)=>W.then(()=>ke(H)),Promise.resolve())}return xt}function So(){return pt(Rs)}function Yi(e){return pt(Eo)}const Xn=window.location.pathname.startsWith("/portal/"),Xe={esPortal:Xn,baseRuta:Xn?"/portal/studio/":"/studio/",apiBase:Xn?"/portal":"/app",urlLogin:Xn?"/portal/login":"/login"};function se(e){return Xe.apiBase+e}async function es(e,t={}){const n=await fetch(e,{...t,headers:{"Content-Type":"application/json",...t.headers}}),s=n.headers.get("content-type")||"";if(n.redirected||!s.includes("application/json"))throw window.location.href=Xe.urlLogin,new Error("Sesión expirada");const o=await n.json();if(!n.ok){const r=typeof(o==null?void 0:o.error)=="string"?o.error:o==null?void 0:o.message;throw new Error(r||"Error de servidor")}return o}const oe={get:e=>es(e),post:(e,t)=>es(e,{method:"POST",body:JSON.stringify(t)}),put:(e,t)=>es(e,{method:"PUT",body:JSON.stringify(t)}),del:e=>es(e,{method:"DELETE"})},In=G(!1),Pc={class:"h-14 px-4 flex items-center gap-2 border-b border-borde"},Oc={key:0,class:"px-3 pt-3"},Tc={key:1,class:"px-3 pt-2 text-xs text-red-600 dark:text-red-400"},Mc={class:"flex-1 overflow-y-auto px-2 py-3 space-y-0.5"},Dc={key:0,class:"px-2 text-xs text-tenue"},Nc={key:1,class:"px-2 text-xs text-tenue"},Vc={class:"truncate"},jc={class:"flex items-center gap-1 mt-0.5"},Uc={class:"text-[11px] text-tenue"},Lc={key:0,class:"flex opacity-0 group-hover:opacity-100 transition-opacity pr-1.5 gap-0.5"},Fc=["onClick"],qc=["onClick"],Hc={class:"card w-full max-w-lg p-6 animate-escalar shadow-2xl"},Bc={class:"font-semibold text-texto mb-4"},Gc={key:0,class:"grid grid-cols-2 gap-3"},Kc=["value"],Wc={class:"text-[11px] text-tenue mt-1"},zc=["value"],Jc={class:"text-[11px] text-tenue mt-1"},Qc={class:"flex items-center gap-2 text-sm text-texto"},Yc={class:"flex justify-end gap-2 pt-2"},Zc={__name:"Sidebar",setup(e,{expose:t}){const n=Yi(),s=So(),o=G([]),r=G([]),i=G([]),a=G(!0),u=G(""),d=G(!1),c=G(null),p=G(y()),h=Ce(()=>n.params.tenantId||n.params.id);Vt(()=>n.fullPath,()=>{In.value=!1});function y(){return{nombre:"",dominios_permitidos:"",activo:!0,cliente_id:null,plan_id:null}}async function D(){a.value=!0,u.value="";try{const b=await oe.get(se("/umind/tenants"));o.value=b.items||[]}catch(b){u.value=b.message}finally{a.value=!1}}function P(b){return Array.isArray(b)?b:(b==null?void 0:b.items)||(b==null?void 0:b.registros)||[]}async function K(){if(Xe.esPortal)return;const[b,O]=await Promise.allSettled([oe.get("/app/api/clientes/select"),oe.get("/app/umind-planes/list")]);r.value=b.status==="fulfilled"?P(b.value):[],i.value=O.status==="fulfilled"?P(O.value):[];const j=[];b.status==="rejected"&&j.push("clientes"),O.status==="rejected"&&j.push("planes"),j.length&&(u.value=`No se pudo cargar la lista de ${j.join(" ni ")}.`)}function q(){c.value=null,p.value=y(),d.value=!0}function T(b){c.value=b,p.value={nombre:b.nombre,dominios_permitidos:b.dominios_permitidos,activo:b.activo,cliente_id:b.cliente_id??null,plan_id:b.plan_id??null},d.value=!0}async function V(){const b={...p.value,dominios_permitidos:p.value.dominios_permitidos.split(",").map(O=>O.trim()).filter(Boolean)};try{if(c.value)await oe.put(se(`/umind/tenants/${c.value.ID}`),b),d.value=!1,await D();else{const O=await oe.post(se("/umind/tenants"),b);d.value=!1,await D(),s.push(`/tenants/${O.id}`)}}catch(O){u.value=O.message}}async function k(b){confirm(`¿Eliminar el espacio "${b.nombre}"? Esto borra también sus agentes. No se puede deshacer.`)&&(await oe.del(se(`/umind/tenants/${b.ID}`)),h.value===String(b.ID)&&s.push("/"),await D())}return t({recargar:D}),As(()=>{D(),K()}),(b,O)=>{const j=wn("router-link");return _(),C(le,null,[je(In)?(_(),C("div",{key:0,class:"fixed inset-0 bg-black/50 z-30 md:hidden",onClick:O[0]||(O[0]=U=>In.value=!1)})):J("",!0),l("aside",{class:Ee(["w-64 shrink-0 flex flex-col border-r border-borde bg-superficie fixed inset-y-0 left-0 z-40 transition-transform duration-200 md:static md:h-screen md:sticky md:top-0 md:translate-x-0",je(In)?"translate-x-0":"-translate-x-full"])},[l("div",Pc,[ie(j,{to:"/",class:"flex items-center gap-2 text-base font-semibold text-texto"},{default:dt(()=>[...O[8]||(O[8]=[l("svg",{viewBox:"0 0 96 96",class:"w-6 h-6 shrink-0","aria-hidden":"true"},[l("rect",{width:"96",height:"96",rx:"22",fill:"#8eb02f"}),l("path",{d:"M32,42 V58 A14,14 0 0 0 60,58 V42",fill:"none",stroke:"#fff","stroke-width":"10","stroke-linecap":"round","stroke-linejoin":"round"}),l("path",{d:"M60,58 V64",fill:"none",stroke:"#fff","stroke-width":"10","stroke-linecap":"round"}),l("circle",{cx:"60",cy:"28",r:"7",fill:"#fff"})],-1),l("span",null,[ae("uMind "),l("span",{class:"text-brand"},"Studio")],-1)])]),_:1})]),je(Xe).esPortal?J("",!0):(_(),C("div",Oc,[l("button",{class:"btn-primary w-full",onClick:q}," + Nuevo espacio ")])),u.value?(_(),C("p",Tc,R(u.value),1)):J("",!0),l("nav",Mc,[a.value?(_(),C("p",Dc,"Cargando...")):o.value.length===0?(_(),C("p",Nc,R(je(Xe).esPortal?"Todavía no tenés ningún espacio asignado. Escribinos y lo activamos.":"Sin espacios todavía."),1)):J("",!0),(_(!0),C(le,null,Ie(o.value,U=>(_(),C("div",{key:U.ID,class:Ee(["group flex items-center rounded-lg transition-colors",h.value===String(U.ID)?"bg-brand/10":"hover:bg-elevado"])},[ie(j,{to:`/tenants/${U.ID}`,class:Ee(["flex-1 min-w-0 px-2.5 py-2 text-sm",h.value===String(U.ID)?"text-brand font-medium":"text-texto"])},{default:dt(()=>[l("div",Vc,R(U.nombre),1),l("div",jc,[l("span",{class:Ee(["w-1.5 h-1.5 rounded-full",U.activo?"bg-green-500":"bg-tenue/40"])},null,2),l("span",Uc,R(U.activo?"activo":"inactivo"),1)])]),_:2},1032,["to","class"]),je(Xe).esPortal?J("",!0):(_(),C("div",Lc,[l("button",{class:"p-1 text-tenue hover:text-texto",title:"Editar",onClick:ke=>T(U)},[ie(Ze,{nombre:"lapiz",tam:14})],8,Fc),l("button",{class:"p-1 text-tenue hover:text-red-600",title:"Eliminar",onClick:ke=>k(U)},[ie(Ze,{nombre:"cerrar",tam:14})],8,qc)]))],2))),128))])],2),d.value?(_(),C("div",{key:1,class:"fixed inset-0 bg-black/40 flex items-center justify-center p-4 z-50",onClick:O[7]||(O[7]=Ve(U=>d.value=!1,["self"]))},[l("div",Hc,[l("h2",Bc,R(c.value?"Editar espacio":"Nuevo espacio"),1),O[17]||(O[17]=l("p",{class:"text-xs text-tenue mb-3"}," Un espacio es el negocio o sitio dueño de los dominios permitidos. La config de IA, tono y demás se configuran por agente, dentro del tenant. ",-1)),l("form",{class:"space-y-3",onSubmit:Ve(V,["prevent"])},[l("div",null,[O[9]||(O[9]=l("label",{class:"label"},"Nombre",-1)),ne(l("input",{"onUpdate:modelValue":O[1]||(O[1]=U=>p.value.nombre=U),required:"",class:"input"},null,512),[[me,p.value.nombre]])]),l("div",null,[O[10]||(O[10]=l("label",{class:"label"},"Dominios permitidos (separados por coma)",-1)),ne(l("input",{"onUpdate:modelValue":O[2]||(O[2]=U=>p.value.dominios_permitidos=U),placeholder:"ejemplo.com, www.ejemplo.com",required:"",class:"input"},null,512),[[me,p.value.dominios_permitidos]])]),je(Xe).esPortal?J("",!0):(_(),C("div",Gc,[l("div",null,[O[12]||(O[12]=l("label",{class:"label"},"Cliente",-1)),ne(l("select",{"onUpdate:modelValue":O[3]||(O[3]=U=>p.value.cliente_id=U),class:"input"},[O[11]||(O[11]=l("option",{value:null},"— sin asignar —",-1)),(_(!0),C(le,null,Ie(r.value,U=>(_(),C("option",{key:U.ID,value:U.ID},R(U.nombre),9,Kc))),128))],512),[[gn,p.value.cliente_id]]),l("p",Wc,R(r.value.length?"Define quién ve este espacio desde el portal.":"No hay clientes activos — creá uno en Clientes."),1)]),l("div",null,[O[14]||(O[14]=l("label",{class:"label"},"Plan",-1)),ne(l("select",{"onUpdate:modelValue":O[4]||(O[4]=U=>p.value.plan_id=U),class:"input"},[O[13]||(O[13]=l("option",{value:null},"— sin plan —",-1)),(_(!0),C(le,null,Ie(i.value,U=>(_(),C("option",{key:U.ID,value:U.ID},R(U.nombre)+" ("+R(U.max_agentes===0?"∞":U.max_agentes)+" agentes) ",9,zc))),128))],512),[[gn,p.value.plan_id]]),l("p",Jc,R(i.value.length?"Límite de agentes y precios de consumo.":"No hay planes — creá uno en uMind Planes."),1)])])),l("label",Qc,[ne(l("input",{"onUpdate:modelValue":O[5]||(O[5]=U=>p.value.activo=U),type:"checkbox"},null,512),[[Pt,p.value.activo]]),O[15]||(O[15]=ae(" Activo ",-1))]),l("div",Yc,[l("button",{type:"button",class:"btn-ghost",onClick:O[6]||(O[6]=U=>d.value=!1)}," Cancelar "),O[16]||(O[16]=l("button",{type:"submit",class:"btn-primary"}," Guardar ",-1))])],32)])])):J("",!0)],64)}}},Zi="umind-tema";function Xc(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"oscuro":"claro"}const mn=G(localStorage.getItem(Zi)||Xc());function Xi(){document.documentElement.classList.toggle("dark",mn.value==="oscuro")}function wr(){mn.value=mn.value==="oscuro"?"claro":"oscuro",localStorage.setItem(Zi,mn.value),Xi()}Xi();const Cr="umind_despertar_visto",kr=1250,ed={__name:"DespertarUmind",setup(e){const t=G(null),n=G(!1);let s=null,o=null;function r(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}return As(()=>{r()||sessionStorage.getItem(Cr)||(sessionStorage.setItem(Cr,"1"),n.value=!0,o=setTimeout(()=>n.value=!1,kr),requestAnimationFrame(()=>{const i=t.value;if(!i)return;const a=i.getContext("2d"),u=Math.min(window.devicePixelRatio||1,2),d=window.innerWidth,c=window.innerHeight;i.width=Math.round(d*u),i.height=Math.round(c*u),a.setTransform(u,0,0,u,0,0);const p=d<640?22:46,h=Array.from({length:p},()=>({x:Math.random()*d,y:Math.random()*c,r:1+Math.random()*1.6,demora:Math.random()*.45})),y=performance.now(),D=P=>{const K=Math.min(1,(P-y)/kr);a.clearRect(0,0,d,c);const q=K<.75?1:1-(K-.75)/.25;for(let T=0;T<h.length;T++){const V=h[T],k=Math.max(0,Math.min(1,(K-V.demora)/.4));if(!(k<=0)){for(let b=T+1;b<h.length;b++){const O=h[b],j=V.x-O.x,U=V.y-O.y,ke=Math.sqrt(j*j+U*U);ke>170||(a.strokeStyle=`rgba(142, 176, 47, ${.16*(1-ke/170)*k*q})`,a.lineWidth=1,a.beginPath(),a.moveTo(V.x,V.y),a.lineTo(O.x,O.y),a.stroke())}a.beginPath(),a.arc(V.x,V.y,V.r*k,0,Math.PI*2),a.fillStyle=`rgba(142, 176, 47, ${.5*k*q})`,a.fill()}}K<1&&(s=requestAnimationFrame(D))};s=requestAnimationFrame(D)}))}),li(()=>{s&&cancelAnimationFrame(s),o&&clearTimeout(o)}),(i,a)=>n.value?(_(),C("canvas",{key:0,ref_key:"lienzo",ref:t,class:"fixed inset-0 w-full h-full pointer-events-none z-50","aria-hidden":"true"},null,512)):J("",!0)}},td={class:"min-h-screen flex"},nd={class:"flex-1 min-w-0 flex flex-col"},sd={class:"h-14 shrink-0 flex items-center gap-1 px-4 sm:px-6 border-b border-borde"},od=["title"],rd={class:"flex-1 max-w-5xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6 sm:py-8 animate-aparecer"},id={__name:"App",setup(e){return(t,n)=>{const s=wn("router-view");return _(),C("div",td,[ie(ed),ie(Zc),l("main",nd,[l("header",sd,[l("button",{class:"btn-ghost !px-2 !py-1.5 md:hidden","aria-label":"Abrir menú",onClick:n[0]||(n[0]=o=>In.value=!0)},[...n[2]||(n[2]=[l("svg",{class:"w-5 h-5",fill:"none",stroke:"currentColor","stroke-width":"2",viewBox:"0 0 24 24"},[l("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4 6h16M4 12h16M4 18h16"})],-1)])]),n[3]||(n[3]=l("span",{class:"flex-1"},null,-1)),l("button",{class:"btn-ghost !px-2.5 !py-1.5",title:je(mn)==="oscuro"?"Cambiar a claro":"Cambiar a oscuro",onClick:n[1]||(n[1]=(...o)=>je(wr)&&je(wr)(...o))},[ie(Ze,{nombre:je(mn)==="oscuro"?"sol":"luna",tam:17},null,8,["nombre"])],8,od)]),l("div",rd,[ie(s)])])])}}},ld=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},ad=["width","height","aria-label"],ud=["fill"],cd=["stroke"],dd=["cy"],fd=["cy"],pd=["cy"],md=["cy"],hd={key:1,d:"M41,66 h12 M67,66 h12",class:"umi-linea","stroke-width":"5","stroke-linecap":"round",fill:"none"},vd={key:4,d:"M50,78 q10,8 20,0",class:"umi-linea","stroke-width":"4",fill:"none","stroke-linecap":"round"},gd={__name:"UiMascota",props:{estado:{type:String,default:"normal"},tam:{type:[Number,String],default:72}},setup(e){return(t,n)=>(_(),C("svg",{width:e.tam,height:e.tam,viewBox:"0 0 120 120",class:"shrink-0",role:"img","aria-label":`Umi, la mascota de uMind (${e.estado})`},[l("circle",{cx:"60",cy:"26",r:"6",fill:e.estado==="alerta"?"#dc2626":"currentColor",class:Ee(e.estado==="pensando"?"umi-late":"")},null,10,ud),l("line",{x1:"60",y1:"32",x2:"60",y2:"44",stroke:e.estado==="alerta"?"#dc2626":"currentColor","stroke-width":"4","stroke-linecap":"round"},null,8,cd),n[7]||(n[7]=l("path",{d:"M30,46 V76 A30,30 0 0 0 90,76 V46 Z",fill:"currentColor"},null,-1)),e.estado==="normal"||e.estado==="contenta"||e.estado==="alerta"?(_(),C(le,{key:0},[l("circle",{cx:"47",cy:e.estado==="contenta"?64:66,r:"6",class:"umi-ojo"},null,8,dd),l("circle",{cx:"73",cy:e.estado==="contenta"?64:66,r:"6",class:"umi-ojo"},null,8,fd),l("circle",{cx:"48",cy:e.estado==="contenta"?65:67,r:"3",class:"umi-pupila"},null,8,pd),l("circle",{cx:"74",cy:e.estado==="contenta"?65:67,r:"3",class:"umi-pupila"},null,8,md)],64)):e.estado==="durmiendo"?(_(),C("path",hd)):e.estado==="pensando"?(_(),C(le,{key:2},[n[0]||(n[0]=l("circle",{cx:"45",cy:"66",r:"4.5",class:"umi-ojo umi-p1"},null,-1)),n[1]||(n[1]=l("circle",{cx:"60",cy:"66",r:"4.5",class:"umi-ojo umi-p2"},null,-1)),n[2]||(n[2]=l("circle",{cx:"75",cy:"66",r:"4.5",class:"umi-ojo umi-p3"},null,-1))],64)):e.estado==="buscando"?(_(),C(le,{key:3},[n[3]||(n[3]=l("circle",{cx:"47",cy:"66",r:"6",class:"umi-ojo"},null,-1)),n[4]||(n[4]=l("circle",{cx:"73",cy:"66",r:"6",class:"umi-ojo"},null,-1)),n[5]||(n[5]=l("circle",{cx:"50",cy:"66",r:"3",class:"umi-pupila"},null,-1)),n[6]||(n[6]=l("circle",{cx:"76",cy:"66",r:"3",class:"umi-pupila"},null,-1))],64)):J("",!0),e.estado==="contenta"?(_(),C("path",vd)):J("",!0)],8,ad))}},ps=ld(gd,[["__scopeId","data-v-551897a0"]]),bd={key:0,class:"flex flex-col items-center justify-center py-24 text-sm text-tenue"},xd={key:1,class:"max-w-md mx-auto text-center py-20"},yd={key:2,class:"flex flex-col items-center justify-center text-center py-24"},_d={class:"text-lg font-medium text-texto"},wd={class:"text-sm text-tenue mt-1"},Cd={__name:"Home",setup(e){const t=So(),n=G(Xe.esPortal),s=G(!1);async function o(){if(Xe.esPortal)try{const i=(await oe.get(se("/umind/tenants"))).items||[];if(i.length===0){s.value=!0;return}if(i.length!==1)return;const a=i[0].ID,d=(await oe.get(se(`/umind/agentes?tenant_id=${a}`))).items||[];if(d.length===1){t.replace(`/tenants/${a}/agentes/${d[0].ID}`);return}t.replace(`/tenants/${a}`)}catch{}finally{n.value=!1}}return As(o),(r,i)=>n.value?(_(),C("div",bd," Abriendo tu asistente… ")):s.value?(_(),C("div",xd,[ie(ps,{estado:"durmiendo",tam:80,class:"mx-auto mb-4 text-brand"}),i[0]||(i[0]=Oi('<h1 class="text-lg font-medium text-texto">Todavía no tenés un asistente activo</h1><p class="text-sm text-tenue mt-2"> uMind contesta por vos en WhatsApp y en tu sitio, con la información de tu negocio. Entiende las notas de voz y lee las fotos y archivos que te mandan tus clientes. </p><a class="btn-primary inline-block mt-5" href="mailto:soporte@u-site.app?subject=Quiero%20activar%20uMind">Quiero activarlo</a><p class="text-xs text-tenue mt-4"><a href="/portal/dashboard" class="underline">Volver al portal</a></p>',4))])):(_(),C("div",yd,[ie(ps,{estado:"normal",tam:64,class:"mx-auto mb-4 text-brand"}),l("h1",_d,R(je(Xe).esPortal?"Elegí tu espacio de la izquierda":"Elegí un espacio de la izquierda"),1),l("p",wd,R(je(Xe).esPortal?"Adentro vas a poder crear y configurar tus agentes.":"o creá uno nuevo para empezar a configurar su agente."),1)]))}},kd={class:"flex flex-col items-center justify-center text-center py-12 px-6"},Ad={key:0,class:"text-3xl mb-3 opacity-70"},Ed={class:"text-sm font-medium text-texto"},Sd={key:2,class:"text-xs text-tenue mt-1.5 max-w-sm leading-relaxed"},Id={key:3,class:"mt-4"},Tt={__name:"UiEmptyState",props:{estado:{type:String,default:"durmiendo"},titulo:String,detalle:String,icono:{type:String,default:""}},setup(e){return(t,n)=>(_(),C("div",kd,[e.icono?(_(),C("div",Ad,R(e.icono),1)):(_(),He(ps,{key:1,estado:e.estado,tam:64,class:"mb-3 text-brand"},null,8,["estado"])),l("p",Ed,R(e.titulo),1),e.detalle?(_(),C("p",Sd,R(e.detalle),1)):J("",!0),t.$slots.default?(_(),C("div",Id,[la(t.$slots,"default")])):J("",!0)]))}},$d={key:0,class:"mb-6"},Rd={class:"flex items-start justify-between gap-4"},Pd={class:"text-xl font-semibold text-texto"},Od={class:"text-xs text-tenue mt-1"},Td={key:1,class:"text-sm text-red-600 dark:text-red-400 mb-4"},Md={class:"flex items-center justify-between mb-4"},Dd={class:"flex items-center gap-2"},Nd={key:0,class:"badge-alerta"},Vd={key:1,class:"badge-neutro"},jd=["disabled"],Ud={key:2,class:"text-xs text-tenue -mt-2 mb-4"},Ld={key:3,class:"text-xs text-tenue -mt-2 mb-4"},Fd={key:4,class:"grid gap-3 sm:grid-cols-2"},qd=["disabled"],Hd={key:6,class:"grid gap-3 sm:grid-cols-2"},Bd={class:"flex items-start gap-3"},Gd={class:"min-w-0 flex-1"},Kd={class:"flex items-center gap-2"},Wd={class:"font-medium text-texto truncate"},zd={class:"text-xs text-tenue mt-0.5 truncate"},Jd={class:"flex gap-0.5 opacity-0 group-hover:opacity-100 transition-opacity shrink-0"},Qd=["onClick"],Yd=["onClick"],Zd=["onClick"],Xd={class:"flex items-center gap-4 mt-3.5 pt-3 border-t border-borde text-xs text-tenue"},ef={class:"tabular-nums"},tf={class:"text-texto font-medium"},nf={class:"tabular-nums"},sf={class:"text-texto font-medium"},of={class:"tabular-nums"},rf={class:"text-texto font-medium"},lf={class:"bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-xl p-6 w-full max-w-lg max-h-[calc(100vh-2rem)] overflow-y-auto"},af={class:"font-semibold text-gray-800 dark:text-gray-100 mb-4"},uf={key:0},cf={class:"grid gap-1.5"},df=["value"],ff={class:"min-w-0"},pf={class:"block text-sm text-texto"},mf={class:"block text-xs text-tenue"},hf={key:0,class:"block text-xs text-tenue mt-0.5"},vf=["value"],gf={class:"flex items-center gap-2"},bf={class:"flex items-center gap-2 text-sm text-gray-600 dark:text-gray-300"},xf={class:"flex justify-end gap-2 pt-2"},yf={type:"submit",class:"bg-brand hover:bg-brand-dark text-white text-sm font-medium px-4 py-2 rounded-lg"},_f={__name:"TenantAgentes",props:{id:{type:String,required:!0}},setup(e){const t=e,n=Ce(()=>Number(t.id)),s=So(),o=G(null),r=G([]),i=G([]),a=G(""),u=G(!1),d=G(null),c=G(T()),p=G(null),h=G({}),y=G(!0);function D(ee){const L=h.value[ee.ID]||{};return ee.activo?L.documentos>0?{tipo:"ok",texto:"listo"}:{tipo:"alerta",texto:"sin conocimiento"}:{tipo:"neutro",texto:"inactivo"}}function P(ee){const L=h.value[ee.ID]||{};return{documentos:L.documentos||0,canales:L.canales||0,conversaciones:L.conversaciones_7d||0}}function K(ee){return String(ee||"?").trim().split(/\s+/).slice(0,2).map(L=>L[0]).join("").toUpperCase()}const q=Ce(()=>{if(!p.value)return{sinPlan:!0};const ee=p.value.max_agentes||0;return{sinPlan:!1,nombre:p.value.nombre,ilimitado:ee<=0,max:ee,usados:r.value.length,lleno:ee>0&&r.value.length>=ee}});function T(){return{nombre:"",ai_config_id:null,tono:"",mensaje_bienvenida:"",color:"#8eb02f",activo:!0,plantilla_rubro:""}}const V=G([]);async function k(){a.value="",y.value=!0;try{const[ee,L,Me,z]=await Promise.all([oe.get(se("/umind/tenants")),oe.get(se(`/umind/agentes?tenant_id=${t.id}`)),oe.get(se("/umind/ai-configs")),oe.get(se("/umind/plantillas-rubro"))]);o.value=(ee.items||[]).find(tt=>String(tt.ID)===t.id)||null,r.value=L.items||[],p.value=L.plan||null,h.value=L.resumen||{},i.value=Me.items||[],V.value=z.items||[]}catch(ee){a.value=ee.message}finally{y.value=!1}}async function b(ee){const L=prompt(`Nombre de la copia de "${ee.nombre}":`,`${ee.nombre} (copia)`);if(L!==null){a.value="";try{const Me=await oe.post(se(`/umind/agentes/${ee.ID}/duplicar`),{tenant_id:Number(n.value),nombre:L.trim()});await k(),Me.aviso&&alert(Me.aviso)}catch(Me){a.value=Me.message}}}function O(){d.value=null,c.value=T(),u.value=!0}function j(ee){d.value=ee,c.value={nombre:ee.nombre,ai_config_id:ee.ai_config_id,tono:ee.tono,mensaje_bienvenida:ee.mensaje_bienvenida,color:ee.color||"#8eb02f",activo:ee.activo},u.value=!0}async function U(){try{if(d.value)await oe.put(se(`/umind/agentes/${d.value.ID}`),{tenant_id:n.value,...c.value}),u.value=!1,await k();else{const ee=await oe.post(se("/umind/agentes"),{tenant_id:n.value,...c.value});u.value=!1,s.push(`/tenants/${n.value}/agentes/${ee.id}`)}}catch(ee){a.value=ee.message}}async function ke(ee){confirm(`¿Eliminar el agente "${ee.nombre}"? Esto no se puede deshacer.`)&&(await oe.del(se(`/umind/agentes/${ee.ID}`)),await k())}return Vt(()=>t.id,k,{immediate:!0}),(ee,L)=>{const Me=wn("router-link");return _(),C("div",null,[o.value?(_(),C("div",$d,[l("div",Rd,[l("div",null,[l("h1",Pd,R(o.value.nombre),1),l("p",Od,R(o.value.dominios_permitidos||"sin dominios configurados"),1)]),ie(Me,{to:`/tenants/${n.value??e.id}/ia`,class:"btn-ghost"},{default:dt(()=>[...L[10]||(L[10]=[ae("Tu IA",-1)])]),_:1},8,["to"]),ie(Me,{to:`/tenants/${n.value??e.id}/uso`,class:"btn-ghost inline-flex items-center gap-1.5"},{default:dt(()=>[ie(Ze,{nombre:"grafico"}),L[11]||(L[11]=ae(" Consumo",-1))]),_:1},8,["to"])])])):J("",!0),a.value?(_(),C("p",Td,R(a.value),1)):J("",!0),l("div",Md,[l("div",Dd,[L[12]||(L[12]=l("h2",{class:"text-sm font-medium text-tenue"},"Agentes",-1)),q.value.sinPlan?(_(),C("span",Nd,"sin plan · sin límite")):q.value.ilimitado?(_(),C("span",Vd,R(q.value.nombre)+" · ilimitado",1)):(_(),C("span",{key:2,class:Ee(q.value.lleno?"badge-alerta":"badge-neutro")},R(q.value.nombre)+" · "+R(q.value.usados)+" de "+R(q.value.max),3))]),l("button",{class:"btn-primary",disabled:q.value.lleno,onClick:O},"+ Nuevo agente",8,jd)]),q.value.sinPlan&&!je(Xe).esPortal?(_(),C("p",Ud," Este espacio no tiene plan asignado, así que no se le aplica ningún límite de agentes. Asignale uno desde el lápiz del espacio, en la barra izquierda. ")):q.value.lleno?(_(),C("p",Ld," Alcanzaste el máximo de agentes de tu plan. ")):J("",!0),y.value?(_(),C("div",Fd,[(_(),C(le,null,Ie(2,z=>l("div",{key:z,class:"card p-4 animate-pulse"},[...L[13]||(L[13]=[Oi('<div class="flex items-center gap-3"><div class="w-10 h-10 rounded-xl bg-elevado"></div><div class="flex-1"><div class="h-3.5 w-28 rounded bg-elevado"></div><div class="h-2.5 w-16 rounded bg-elevado mt-2"></div></div></div><div class="h-2.5 w-full rounded bg-elevado mt-4"></div>',2)])])),64))])):r.value.length===0?(_(),He(Tt,{key:5,class:"card",estado:"durmiendo",titulo:"Todavía no hay agentes",detalle:"Creá el primero y cargale su base de conocimiento para que empiece a responder."},{default:dt(()=>[l("button",{class:"btn-primary",disabled:q.value.lleno,onClick:O},"+ Crear el primer agente",8,qd)]),_:1})):(_(),C("div",Hd,[(_(!0),C(le,null,Ie(r.value,z=>(_(),He(Me,{key:z.ID,to:`/tenants/${n.value}/agentes/${z.ID}`,class:"card p-4 relative group hover:shadow-lg hover:-translate-y-0.5 transition-all overflow-hidden"},{default:dt(()=>[l("span",{class:"absolute inset-x-0 top-0 h-1",style:sn({background:z.color||"#8eb02f"})},null,4),l("div",Bd,[l("span",{class:"w-10 h-10 rounded-xl flex items-center justify-center text-white text-sm font-semibold shrink-0",style:sn({background:z.color||"#8eb02f",opacity:z.activo?1:.4})},R(K(z.nombre)),5),l("div",Gd,[l("div",Kd,[l("span",Wd,R(z.nombre),1),l("span",{class:Ee(`badge-${D(z).tipo}`)},R(D(z).texto),3)]),l("p",zd,R(z.tono||"sin tono definido"),1)]),l("div",Jd,[l("button",{class:"p-1 text-tenue hover:text-texto",title:"Editar",onClick:Ve(tt=>j(z),["prevent","stop"])},[ie(Ze,{nombre:"lapiz",tam:14})],8,Qd),l("button",{class:"p-1 text-tenue hover:text-texto",title:"Duplicar: copia el conocimiento y las herramientas a un agente nuevo",onClick:Ve(tt=>b(z),["prevent","stop"])},[ie(Ze,{nombre:"copiar",tam:14})],8,Yd),l("button",{class:"p-1 text-tenue hover:text-red-600",title:"Eliminar",onClick:Ve(tt=>ke(z),["prevent","stop"])},[ie(Ze,{nombre:"cerrar",tam:14})],8,Zd)])]),l("div",Xd,[l("span",ef,[l("b",tf,R(P(z).conversaciones),1),L[14]||(L[14]=ae(" conversaciones · 7d",-1))]),l("span",nf,[l("b",sf,R(P(z).documentos),1),L[15]||(L[15]=ae(" fuentes",-1))]),l("span",of,[l("b",rf,R(P(z).canales),1),L[16]||(L[16]=ae(" canales",-1))])])]),_:2},1032,["to"]))),128))])),u.value?(_(),C("div",{key:7,class:"fixed inset-0 bg-black/40 flex items-center justify-center p-4 z-50",onClick:L[9]||(L[9]=Ve(z=>u.value=!1,["self"]))},[l("div",lf,[l("h2",af,R(d.value?"Editar agente":"Nuevo agente"),1),l("form",{class:"space-y-3",onSubmit:Ve(U,["prevent"])},[l("div",null,[L[17]||(L[17]=l("label",{class:"label"},"Nombre",-1)),ne(l("input",{"onUpdate:modelValue":L[0]||(L[0]=z=>c.value.nombre=z),required:"",placeholder:"ej: Ventas, Soporte",class:"input"},null,512),[[me,c.value.nombre]])]),!d.value&&V.value.length?(_(),C("div",uf,[L[18]||(L[18]=l("label",{class:"label"},"Arrancar con",-1)),l("div",cf,[(_(!0),C(le,null,Ie([{clave:"",nombre:"Agente en blanco",descripcion:"Sin conocimiento cargado. Lo escribís vos desde cero."},...V.value],z=>(_(),C("label",{key:z.clave,class:Ee(["flex gap-2.5 p-2.5 rounded-lg border cursor-pointer transition-colors",c.value.plantilla_rubro===z.clave?"border-brand bg-brand/5":"border-borde hover:border-brand/40"])},[ne(l("input",{"onUpdate:modelValue":L[1]||(L[1]=tt=>c.value.plantilla_rubro=tt),type:"radio",value:z.clave,class:"mt-1 text-brand focus:ring-brand"},null,8,df),[[vu,c.value.plantilla_rubro]]),l("span",ff,[l("span",pf,R(z.nombre),1),l("span",mf,R(z.descripcion),1),z.notas?(_(),C("span",hf,R(z.notas)+" notas listas para editar · "+R(z.resumen),1)):J("",!0)])],2))),128))]),L[19]||(L[19]=l("p",{class:"text-xs text-tenue mt-1.5"}," Las notas vienen con ejemplos entre corchetes — abrilas y reemplazalas por tus datos reales. ",-1))])):J("",!0),l("div",null,[L[21]||(L[21]=l("label",{class:"label"},"Config de IA",-1)),ne(l("select",{"onUpdate:modelValue":L[2]||(L[2]=z=>c.value.ai_config_id=z),class:"input"},[L[20]||(L[20]=l("option",{value:null},"— sin asignar —",-1)),(_(!0),C(le,null,Ie(i.value,z=>(_(),C("option",{key:z.ID,value:z.ID},R(z.nombre)+" ("+R(z.provider)+")",9,vf))),128))],512),[[gn,c.value.ai_config_id]])]),l("div",null,[L[22]||(L[22]=l("label",{class:"label"},"Tono / personalidad",-1)),ne(l("textarea",{"onUpdate:modelValue":L[3]||(L[3]=z=>c.value.tono=z),rows:"2",class:"input"},null,512),[[me,c.value.tono]])]),l("div",null,[L[23]||(L[23]=l("label",{class:"label"},"Mensaje de bienvenida",-1)),ne(l("input",{"onUpdate:modelValue":L[4]||(L[4]=z=>c.value.mensaje_bienvenida=z),class:"input"},null,512),[[me,c.value.mensaje_bienvenida]])]),l("div",null,[L[24]||(L[24]=l("label",{class:"label"},"Color del widget",-1)),l("div",gf,[ne(l("input",{"onUpdate:modelValue":L[5]||(L[5]=z=>c.value.color=z),type:"color",class:"w-10 h-9 border border-gray-300 dark:border-gray-700 rounded cursor-pointer bg-white dark:bg-gray-800"},null,512),[[me,c.value.color]]),ne(l("input",{"onUpdate:modelValue":L[6]||(L[6]=z=>c.value.color=z),type:"text",pattern:"#[0-9a-fA-F]{6}",class:"flex-1 border border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-100 rounded-lg px-3 py-2 text-sm font-mono"},null,512),[[me,c.value.color]])])]),l("label",bf,[ne(l("input",{"onUpdate:modelValue":L[7]||(L[7]=z=>c.value.activo=z),type:"checkbox"},null,512),[[Pt,c.value.activo]]),L[25]||(L[25]=ae(" Activo ",-1))]),l("div",xf,[l("button",{type:"button",class:"px-4 py-2 text-sm text-gray-500 dark:text-gray-400",onClick:L[8]||(L[8]=z=>u.value=!1)},"Cancelar"),l("button",yf,R(d.value?"Guardar":"Crear"),1)])],32)])])):J("",!0)])}}},wf={key:0,class:"mb-6 mt-1 flex items-start justify-between gap-4"},Cf={class:"min-w-0"},kf={class:"text-xl font-semibold text-texto"},Af={class:"text-xs text-tenue mt-1"},Ef={class:"bg-elevado px-1.5 py-0.5 rounded"},Sf=["href"],If={key:1,class:"text-sm text-red-600 dark:text-red-400 mb-4"},$f={class:"flex gap-1.5 mb-6 overflow-x-auto sin-barra pb-1"},Rf=["onClick"],Pf={key:2},Of={class:"card p-4 mb-4"},Tf={class:"flex gap-1 mb-3"},Mf=["onClick"],Df={class:"flex items-center justify-between"},Nf=["disabled"],Vf={class:"flex items-center justify-between"},jf=["disabled"],Uf={class:"flex gap-2"},Lf={class:"flex items-center justify-between"},Ff={class:"flex items-center gap-2 text-xs text-tenue cursor-pointer"},qf=["disabled"],Hf={class:"card divide-y divide-borde"},Bf={class:"text-sm text-texto"},Gf={class:"text-xs text-tenue mt-0.5"},Kf={key:0,class:"latido"},Wf={key:0},zf={key:1},Jf={key:3},Qf={key:4,class:"text-red-600 dark:text-red-400"},Yf={class:"flex items-center gap-3 shrink-0"},Zf=["title","onClick"],Xf=["onClick"],ep=["disabled","title","onClick"],tp=["onClick"],np={class:"card w-full max-w-2xl p-6 max-h-[calc(100vh-2rem)] overflow-y-auto"},sp={class:"flex justify-end gap-2 pt-1"},op=["disabled"],rp={key:3},ip={class:"card divide-y divide-borde"},lp={class:"text-sm text-texto font-mono"},ap={class:"label mt-0.5"},up={class:"text-xs text-tenue mt-0.5"},cp={key:0,class:"ml-1 text-green-600 dark:text-green-400"},dp={key:1,class:"ml-1 text-gray-400"},fp={class:"flex gap-3 text-sm shrink-0"},pp=["onClick"],mp=["onClick"],hp={class:"card p-6 w-full max-w-xl max-h-[85vh] overflow-y-auto"},vp={class:"font-semibold text-texto mb-4"},gp={class:"border border-borde rounded-lg p-3 space-y-2"},bp=["onUpdate:modelValue"],xp=["onUpdate:modelValue"],yp=["onUpdate:modelValue"],_p={class:"label flex items-center gap-1"},wp=["onUpdate:modelValue"],Cp=["onClick"],kp={key:0,class:"text-xs text-gray-400"},Ap={class:"border border-borde rounded-lg p-3 space-y-2"},Ep={class:"flex items-center gap-2 label"},Sp={class:"flex items-center gap-2 text-sm text-texto"},Ip={class:"flex justify-end gap-2 pt-2"},$p={key:4},Rp={class:"card p-4 mb-4"},Pp={class:"flex items-center justify-between mb-2"},Op={class:"bg-elevado border border-borde rounded-lg p-2.5 text-xs text-texto overflow-x-auto"},Tp={class:"card divide-y divide-borde"},Mp={class:"flex items-center justify-between"},Dp={class:"font-medium text-texto capitalize"},Np={class:"flex gap-3 text-sm"},Vp=["onClick"],jp=["onClick"],Up={class:"flex gap-4 mt-2 text-xs"},Lp={class:"flex items-center gap-1.5 text-texto cursor-pointer"},Fp=["checked","onChange"],qp={class:"flex items-center gap-1.5 text-texto cursor-pointer"},Hp=["checked","onChange"],Bp={class:"flex items-center gap-1.5 text-texto cursor-pointer"},Gp=["checked","onChange"],Kp={class:"label mt-1 break-all"},Wp={class:"bg-elevado px-1 rounded"},zp={key:0,class:"text-xs text-tenue mt-1"},Jp={key:1,class:"text-xs text-red-600 dark:text-red-400 mt-1"},Qp={class:"card p-6 w-full max-w-md"},Yp={key:0},Zp={class:"flex flex-col gap-2 pt-1"},Xp={class:"flex items-center gap-2 text-sm text-texto cursor-pointer"},em={class:"flex items-center gap-2 text-sm text-texto cursor-pointer"},tm={class:"flex items-center gap-2 text-sm text-texto cursor-pointer"},nm={class:"flex justify-end gap-2 pt-2"},sm={key:5},om={class:"flex gap-2 mb-4"},rm={class:"card divide-y divide-borde"},im={class:"font-medium text-texto capitalize"},lm={class:"ml-2 text-sm text-tenue"},am=["onClick"],um={key:6,class:"card p-4 flex flex-col h-[28rem]"},cm={class:"flex-1 overflow-y-auto space-y-2 mb-3"},dm={key:0,class:"text-sm text-tenue"},fm={key:1,class:"flex items-center gap-2"},pm=["disabled"],mm={key:7,class:"grid grid-cols-3 gap-4"},hm={class:"col-span-1 card divide-y divide-borde max-h-[28rem] overflow-y-auto"},vm=["onClick"],gm={class:"text-texto truncate"},bm={class:"text-xs text-tenue mt-0.5"},xm={class:"col-span-2 card p-4 max-h-[28rem] overflow-y-auto space-y-2"},ym={key:0,class:"text-sm text-tenue"},_m={key:8},wm={class:"card divide-y divide-borde max-h-[32rem] overflow-y-auto"},Cm={class:"cursor-pointer flex items-center gap-2 text-sm"},km={class:"text-tenue text-xs shrink-0"},Am={class:"text-texto truncate"},Em={class:"text-tenue text-xs ml-auto shrink-0"},Sm={key:0,class:"mt-2 bg-elevado border border-borde rounded-lg p-2 text-xs text-gray-600 dark:text-gray-400 overflow-x-auto whitespace-pre-wrap"},Im={__name:"AgenteDetail",props:{tenantId:{type:String,required:!0},agenteId:{type:String,required:!0}},setup(e){const t=e,n=Ce(()=>Number(t.agenteId)),s=Yi(),o=G(null),r=G(""),i=G(typeof s.query.tab=="string"?s.query.tab:Xe.esPortal?"conversaciones":"conocimiento"),a=G([]),u=G(""),d=G(30),c=G(!1);async function p(){const I=await oe.get(se(`/umind/agentes?tenant_id=${t.tenantId}`));o.value=(I.items||[]).find(v=>String(v.ID)===t.agenteId)||null}async function h(){const I=await oe.get(se(`/umind/documentos?agente_id=${t.agenteId}`));a.value=I.items||[]}const y=G("texto"),D=G(!0),P=G(""),K=G(""),q=G(null);async function T(){if(u.value.trim()){c.value=!0,r.value="";try{await oe.post(se("/umind/documentos"),{agente_id:n.value,url:u.value.trim(),max_paginas:Number(d.value)||30,auto_actualizar:D.value}),u.value="",await h()}catch(I){r.value=I.message}finally{c.value=!1}}}async function V(){if(K.value.trim()){c.value=!0,r.value="";try{await oe.post(se("/umind/documentos/texto"),{agente_id:n.value,titulo:P.value.trim(),contenido:K.value}),P.value="",K.value="",await h()}catch(I){r.value=I.message}finally{c.value=!1}}}async function k(){var v,St;const I=(St=(v=q.value)==null?void 0:v.files)==null?void 0:St[0];if(I){c.value=!0,r.value="";try{const x=new FormData;x.append("agente_id",String(n.value)),x.append("archivo",I);const Ae=await fetch(se("/umind/documentos/archivo"),{method:"POST",body:x}),it=await Ae.json();if(!Ae.ok)throw new Error(it.error||"No se pudo subir");q.value.value="",await h()}catch(x){r.value=x.message}finally{c.value=!1}}}const b=G(null),O=G({titulo:"",contenido:""}),j=G(!1);function U(I){b.value=I,O.value={titulo:I.origen,contenido:I.contenido||""}}async function ke(){if(b.value){j.value=!0,r.value="";try{await oe.put(se(`/umind/documentos/${b.value.ID}`),{titulo:O.value.titulo,contenido:O.value.contenido}),b.value=null,await h()}catch(I){r.value=I.message}finally{j.value=!1}}}async function ee(I){r.value="";try{await oe.post(se(`/umind/documentos/${I.ID}/reprocesar`),{}),await h()}catch(v){r.value=v.message}}async function L(I){try{await oe.put(se(`/umind/documentos/${I.ID}`),{auto_actualizar:!I.auto_actualizar}),await h()}catch(v){r.value=v.message}}function Me(I){if(!I)return"sin procesar";const v=Math.floor((Date.now()-new Date(I))/864e5);if(v<=0)return"hoy";if(v===1)return"ayer";if(v<30)return`hace ${v} días`;const St=Math.floor(v/30);return St===1?"hace un mes":`hace ${St} meses`}function z(I){return I.procesado_at?Date.now()-new Date(I.procesado_at)>60*864e5:!1}async function tt(I){confirm("¿Eliminar esta fuente y sus fragmentos indexados?")&&(await oe.del(se(`/umind/documentos/${I}`)),await h())}const Ht=Ce(()=>I=>({listo:"badge-ok",procesando:"badge-alerta",pendiente:"badge-neutro",error:"badge-error"})[I]||"badge-neutro"),Se=G([]),pe=G([]),de=G(null);async function ct(){const I=await oe.get(se(`/umind/sesiones?agente_id=${t.agenteId}`));Se.value=I.items||[]}async function bt(I){de.value=I;const v=await oe.get(se(`/umind/historial?agente_id=${t.agenteId}&session_id=${I}`));pe.value=v.items||[]}const We=G([]),Te=G(!1),st=G(null),ue=G(xt());function xt(){return{nombre:"",descripcion:"",url:"",auth_header_nombre:"",auth_header_valor:"",tocarAuth:!1,parametros:[],activa:!0}}async function qe(){const I=await oe.get(se(`/umind/tools?agente_id=${t.agenteId}`));We.value=I.items||[]}function E(){st.value=null,ue.value=xt(),Te.value=!0}function W(I){st.value=I;let v=[];try{v=JSON.parse(I.parametros_json||"[]")||[]}catch{v=[]}ue.value={nombre:I.nombre,descripcion:I.descripcion,url:I.url,auth_header_nombre:I.auth_header_nombre,auth_header_valor:"",tocarAuth:!1,parametros:v,activa:I.activa},Te.value=!0}function H(){ue.value.parametros.push({nombre:"",tipo:"string",descripcion:"",requerido:!1})}function Y(I){ue.value.parametros.splice(I,1)}async function ce(){const I={agente_id:n.value,nombre:ue.value.nombre.trim(),descripcion:ue.value.descripcion,url:ue.value.url.trim(),auth_header_nombre:ue.value.auth_header_nombre,parametros:ue.value.parametros,activa:ue.value.activa};ue.value.tocarAuth&&(I.auth_header_valor=ue.value.auth_header_valor);try{st.value?await oe.put(se(`/umind/tools/${st.value.ID}`),I):await oe.post(se("/umind/tools"),I),Te.value=!1,await qe()}catch(v){r.value=v.message}}async function f(I){confirm(`¿Eliminar la herramienta "${I.nombre}"?`)&&(await oe.del(se(`/umind/tools/${I.ID}`)),await qe())}const m=G([]),g=G(!1),w=G(M()),S=G(!1),A=Ce(()=>{const I=new Date,v=new Date(I.getFullYear(),I.getMonth(),1).toISOString().slice(0,10),St=I.toISOString().slice(0,10);return se(`/umind/reporte.xlsx?agente_id=${t.agenteId}&desde=${v}&hasta=${St}`)}),F=Ce(()=>{var v;const I=((v=o.value)==null?void 0:v.site_key)||"TU_SITE_KEY";return`<script src="${window.location.origin}/widget/umind.js" data-site="${I}" defer><\/script>`});async function N(){try{await navigator.clipboard.writeText(F.value),S.value=!0,setTimeout(()=>S.value=!1,2e3)}catch{r.value="No se pudo copiar automáticamente — seleccioná el texto y copialo a mano."}}function M(){return{tipo:"telegram",bot_token:"",phone_number_id:"",access_token:"",app_secret:"",verify_token:"",usar_whisper_audio:!1,usar_ocr_imagenes:!1,usar_archivos_docs:!1}}async function $(){const I=await oe.get(se(`/umind/canales?agente_id=${t.agenteId}`));m.value=I.items||[]}function Z(){w.value=M(),g.value=!0}async function B(){const I=w.value.tipo==="telegram"?{bot_token:w.value.bot_token}:{phone_number_id:w.value.phone_number_id,access_token:w.value.access_token,app_secret:w.value.app_secret,verify_token:w.value.verify_token};try{await oe.post(se("/umind/canales"),{agente_id:n.value,tipo:w.value.tipo,credenciales:I,activo:!0,usar_whisper_audio:w.value.usar_whisper_audio,usar_ocr_imagenes:w.value.usar_ocr_imagenes,usar_archivos_docs:w.value.usar_archivos_docs}),g.value=!1,await $()}catch(v){r.value=v.message}}async function Q(I,v){await oe.put(se(`/umind/canales/${I.ID}`),{activo:I.activo,credenciales:{},usar_whisper_audio:I.usar_whisper_audio,usar_ocr_imagenes:I.usar_ocr_imagenes,usar_archivos_docs:I.usar_archivos_docs,...v}),await $()}const te=I=>Q(I,{activo:!I.activo}),fe=I=>Q(I,{usar_whisper_audio:!I.usar_whisper_audio}),xe=I=>Q(I,{usar_ocr_imagenes:!I.usar_ocr_imagenes}),he=I=>Q(I,{usar_archivos_docs:!I.usar_archivos_docs});async function Re(I){confirm(`¿Eliminar el canal ${I.tipo}?`)&&(await oe.del(se(`/umind/canales/${I.ID}`)),await $())}const Pe=G([]);async function ot(){const I=await oe.get(se(`/umind/conexiones?agente_id=${t.agenteId}`));Pe.value=I.items||[]}function rt(I){window.location.href=se(`/umind/conexiones/conectar?agente_id=${n.value}&proveedor=${I}`)}async function Qt(I){confirm(`¿Desconectar la cuenta ${I.email||I.proveedor}?`)&&(await oe.del(se(`/umind/conexiones/${I.ID}`)),await ot())}const Kn=`staff-preview-${Math.random().toString(36).slice(2)}`,De=G([]),ze=G(""),Bt=G(!1);async function Wn(){const I=ze.value.trim();if(!(!I||Bt.value)){ze.value="",De.value.push({role:"user",content:I}),Bt.value=!0;try{const v=await oe.post(se("/umind/chat"),{agente_id:n.value,session_id:Kn,mensaje:I});De.value.push({role:"assistant",content:v.respuesta})}catch(v){De.value.push({role:"assistant",content:`⚠ ${v.message}`})}finally{Bt.value=!1}}}const el=Ce(()=>Xe.esPortal?[["conversaciones","Conversaciones"],["chat","Probar"],["conocimiento","Base de conocimiento"],["herramientas","Herramientas"],["canales","Canales"],["conexiones","Conexiones"],["auditoria","Auditoría"]]:[["conocimiento","Base de conocimiento"],["herramientas","Herramientas"],["canales","Canales"],["conexiones","Conexiones"],["chat","Chat de prueba"],["conversaciones","Conversaciones"],["auditoria","Auditoría"]]),zn=G([]);async function tl(){const I=await oe.get(se(`/umind/eventos?agente_id=${t.agenteId}`));zn.value=I.items||[]}const nl=Ce(()=>I=>({error:"badge-error",warn:"badge-alerta"})[I]||"badge-neutro");function sl(I){try{return new Date(I).toLocaleString()}catch{return I}}return Vt(()=>[t.tenantId,t.agenteId],async()=>{r.value="",o.value=null,a.value=[],Se.value=[],pe.value=[],de.value=null,We.value=[],m.value=[],Pe.value=[],zn.value=[];try{await Promise.all([p(),h(),ct(),qe(),$(),ot(),tl()])}catch(I){r.value=I.message}},{immediate:!0}),(I,v)=>{const St=wn("router-link");return _(),C("div",null,[ie(St,{to:`/tenants/${e.tenantId}`,class:"label hover:text-brand"},{default:dt(()=>[...v[32]||(v[32]=[ae("← Agentes",-1)])]),_:1},8,["to"]),o.value?(_(),C("div",wf,[l("div",Cf,[l("h1",kf,R(o.value.nombre),1),l("p",Af,[v[33]||(v[33]=ae(" site_key: ",-1)),l("code",Ef,R(o.value.site_key),1)])]),l("a",{href:A.value,class:"btn-ghost shrink-0",title:"Conversaciones y consumo del mes en Excel"},[ie(Ze,{nombre:"descargar",tam:15}),v[34]||(v[34]=ae(" Reporte del mes ",-1))],8,Sf)])):J("",!0),r.value?(_(),C("p",If,R(r.value),1)):J("",!0),l("div",$f,[(_(!0),C(le,null,Ie(el.value,([x,Ae])=>(_(),C("button",{key:x,class:Ee(["px-3 py-1.5 rounded-full text-sm whitespace-nowrap transition-colors",i.value===x?"bg-brand text-white font-medium":"bg-white dark:bg-gray-900 text-gray-600 dark:text-gray-400 border border-borde hover:border-brand/50"]),onClick:it=>i.value=x},R(Ae),11,Rf))),128))]),i.value==="conocimiento"?(_(),C("div",Pf,[l("div",Of,[l("div",Tf,[(_(),C(le,null,Ie([["texto","escribir","Escribir"],["archivo","archivo","Subir archivo"],["url","sitio","Sitio web"]],([x,Ae,it])=>l("button",{key:x,class:Ee(["px-3 py-1.5 rounded-lg text-sm inline-flex items-center gap-1.5",y.value===x?"bg-brand text-white font-medium":"text-tenue hover:text-texto"]),onClick:Mh=>y.value=x},[ie(Ze,{nombre:Ae,tam:15},null,8,["nombre"]),ae(" "+R(it),1)],10,Mf)),64))]),y.value==="texto"?(_(),C("form",{key:0,class:"space-y-2",onSubmit:Ve(V,["prevent"])},[ne(l("input",{"onUpdate:modelValue":v[0]||(v[0]=x=>P.value=x),placeholder:"Título (ej: Horarios y zonas de entrega)",class:"input"},null,512),[[me,P.value]]),ne(l("textarea",{"onUpdate:modelValue":v[1]||(v[1]=x=>K.value=x),rows:"5",required:"",placeholder:"Atendemos de lunes a viernes de 9 a 18. No hacemos envíos fuera de la ciudad. La garantía es de 6 meses y cubre…",class:"input font-normal"},null,512),[[me,K.value]]),l("div",Df,[v[35]||(v[35]=l("p",{class:"text-xs text-tenue"},"Lo que te preguntan todos los días y no está en tu web.",-1)),l("button",{type:"submit",disabled:c.value,class:"btn-primary disabled:opacity-50"},R(c.value?"Guardando…":"Guardar"),9,Nf)])],32)):y.value==="archivo"?(_(),C("form",{key:1,class:"space-y-2",onSubmit:Ve(k,["prevent"])},[l("input",{ref_key:"archivoRef",ref:q,type:"file",accept:".pdf,.docx,.txt,.md,.csv,.html,image/*",class:"text-sm text-texto"},null,512),l("div",Vf,[v[36]||(v[36]=l("p",{class:"text-xs text-tenue"},"PDF, Word, texto o una foto. Ej: tu lista de precios.",-1)),l("button",{type:"submit",disabled:c.value,class:"btn-primary disabled:opacity-50"},R(c.value?"Leyendo…":"Subir"),9,jf)])],32)):(_(),C("form",{key:2,class:"space-y-2",onSubmit:Ve(T,["prevent"])},[l("div",Uf,[ne(l("input",{"onUpdate:modelValue":v[2]||(v[2]=x=>u.value=x),type:"url",placeholder:"https://ejemplo.com",required:"",class:"input flex-1"},null,512),[[me,u.value]]),ne(l("input",{"onUpdate:modelValue":v[3]||(v[3]=x=>d.value=x),type:"number",min:"1",max:"200",class:"input w-24",title:"Máximo de páginas a leer"},null,512),[[me,d.value]])]),l("div",Lf,[l("label",Ff,[ne(l("input",{"onUpdate:modelValue":v[4]||(v[4]=x=>D.value=x),type:"checkbox",class:"rounded border-borde text-brand focus:ring-brand"},null,512),[[Pt,D.value]]),v[37]||(v[37]=ae(" Releer el sitio cada semana ",-1))]),l("button",{type:"submit",disabled:c.value,class:"btn-primary disabled:opacity-50"},R(c.value?"Leyendo…":"Leer sitio"),9,qf)])],32))]),l("div",Hf,[a.value.length===0?(_(),He(Tt,{key:0,estado:"buscando",titulo:"Todavía no sabe nada de tu negocio",detalle:"Sin información cargada va a contestar que no sabe. Empezá por escribir tus horarios y lo que te preguntan todos los días — es lo más rápido y lo que más se nota."})):J("",!0),(_(!0),C(le,null,Ie(a.value,x=>(_(),C("div",{key:x.ID,class:"p-4 flex items-center justify-between"},[l("div",null,[l("div",Bf,R(x.origen),1),l("div",Gf,[l("span",{class:Ee(["px-1.5 py-0.5 rounded inline-flex items-center gap-1",Ht.value(x.estado)])},[x.estado==="procesando"?(_(),C("span",Kf)):J("",!0),ae(" "+R(x.estado),1)],2),x.tipo?(_(),C("span",Wf," · "+R({url:"sitio",archivo:"archivo",texto:"nota"}[x.tipo]||x.tipo),1)):J("",!0),x.total_chunks?(_(),C("span",zf," · "+R(x.total_chunks)+" fragmentos",1)):J("",!0),x.procesado_at?(_(),C("span",{key:2,class:Ee(z(x)?"text-amber-600 dark:text-amber-400 font-medium":"")}," · leído "+R(Me(x.procesado_at)),3)):J("",!0),x.auto_actualizar?(_(),C("span",Jf," · se actualiza sola")):J("",!0),x.error?(_(),C("span",Qf," · "+R(x.error),1)):J("",!0)])]),l("div",Yf,[x.tipo==="url"?(_(),C("button",{key:0,class:"text-xs text-tenue hover:text-texto",title:x.auto_actualizar?"Dejar de releer sola":"Releer el sitio cada semana",onClick:Ae=>L(x)},[ie(Ze,{nombre:x.auto_actualizar?"auto":"refrescar",tam:13,class:"mr-1"},null,8,["nombre"]),ae(R(x.auto_actualizar?"auto":"manual"),1)],8,Zf)):J("",!0),x.tipo==="texto"||x.tipo==="archivo"?(_(),C("button",{key:1,class:"text-sm text-brand hover:underline",onClick:Ae=>U(x)},"Editar",8,Xf)):J("",!0),l("button",{class:"text-sm text-tenue hover:text-texto disabled:opacity-40",disabled:x.estado==="procesando",title:x.tipo==="url"?"Volver a leer el sitio":"Rehacer los fragmentos",onClick:Ae=>ee(x)},"Actualizar",8,ep),l("button",{class:"text-red-500 hover:text-red-700 text-sm",onClick:Ae=>tt(x.ID)},"Eliminar",8,tp)])]))),128))]),b.value?(_(),C("div",{key:0,class:"fixed inset-0 bg-black/40 flex items-center justify-center p-4 z-50",onClick:v[8]||(v[8]=Ve(x=>b.value=null,["self"]))},[l("div",np,[v[41]||(v[41]=l("h2",{class:"font-semibold text-texto mb-1"},"Editar fuente",-1)),v[42]||(v[42]=l("p",{class:"text-xs text-tenue mb-4"}," Al guardar se vuelve a leer y el agente empieza a contestar con esto. ",-1)),l("form",{class:"space-y-3",onSubmit:Ve(ke,["prevent"])},[l("div",null,[v[38]||(v[38]=l("label",{class:"label"},"Título",-1)),ne(l("input",{"onUpdate:modelValue":v[5]||(v[5]=x=>O.value.titulo=x),required:"",class:"input"},null,512),[[me,O.value.titulo]])]),l("div",null,[v[39]||(v[39]=l("label",{class:"label"},"Contenido",-1)),ne(l("textarea",{"onUpdate:modelValue":v[6]||(v[6]=x=>O.value.contenido=x),rows:"16",required:"",class:"input font-normal leading-relaxed"},null,512),[[me,O.value.contenido]]),v[40]||(v[40]=l("p",{class:"text-xs text-tenue mt-1.5"}," Si viene de una plantilla, reemplazá lo que está [entre corchetes] por tus datos. Lo que quede sin reemplazar el agente lo va a leer tal cual. ",-1))]),l("div",sp,[l("button",{type:"button",class:"btn-ghost",onClick:v[7]||(v[7]=x=>b.value=null)},"Cancelar"),l("button",{type:"submit",class:"btn-primary",disabled:j.value},R(j.value?"Guardando…":"Guardar y volver a leer"),9,op)])],32)])])):J("",!0)])):i.value==="herramientas"?(_(),C("div",rp,[l("div",{class:"flex justify-between items-center mb-4"},[v[43]||(v[43]=l("p",{class:"label"},"Máximo 10 herramientas activas por agente.",-1)),l("button",{class:"btn-primary",onClick:E}," + Nueva herramienta ")]),l("div",ip,[We.value.length===0?(_(),He(Tt,{key:0,titulo:"Sin herramientas conectadas",detalle:"Las herramientas le dejan consultar tus sistemas mientras conversa: stock, estado de un pedido, disponibilidad de turnos. Sin ninguna, responde solo con lo que tiene cargado."})):J("",!0),(_(!0),C(le,null,Ie(We.value,x=>(_(),C("div",{key:x.ID,class:"p-4 flex items-center justify-between"},[l("div",null,[l("div",lp,R(x.nombre),1),l("div",ap,R(x.descripcion),1),l("div",up,[ae(R(x.url)+" ",1),x.auth_configurado?(_(),C("span",cp,"· auth configurada")):J("",!0),x.activa?J("",!0):(_(),C("span",dp,"· inactiva"))])]),l("div",fp,[l("button",{class:"text-tenue hover:text-gray-800 dark:hover:text-gray-100",onClick:Ae=>W(x)},"Editar",8,pp),l("button",{class:"text-red-500 hover:text-red-700",onClick:Ae=>f(x)},"Eliminar",8,mp)])]))),128))]),Te.value?(_(),C("div",{key:0,class:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center p-4 z-50",onClick:v[17]||(v[17]=Ve(x=>Te.value=!1,["self"]))},[l("div",hp,[l("h2",vp,R(st.value?"Editar herramienta":"Nueva herramienta"),1),l("form",{class:"space-y-3",onSubmit:Ve(ce,["prevent"])},[l("div",null,[v[44]||(v[44]=l("label",{class:"label"},"Nombre (identificador, ej: consultar_stock)",-1)),ne(l("input",{"onUpdate:modelValue":v[9]||(v[9]=x=>ue.value.nombre=x),required:"",pattern:"[a-z][a-z0-9_]{2,63}",class:"input font-mono"},null,512),[[me,ue.value.nombre]])]),l("div",null,[v[45]||(v[45]=l("label",{class:"label"},"Descripción (esto lo lee el modelo para decidir cuándo usarla)",-1)),ne(l("textarea",{"onUpdate:modelValue":v[10]||(v[10]=x=>ue.value.descripcion=x),rows:"2",required:"",class:"input"},null,512),[[me,ue.value.descripcion]])]),l("div",null,[v[46]||(v[46]=l("label",{class:"label"},"URL del webhook (https)",-1)),ne(l("input",{"onUpdate:modelValue":v[11]||(v[11]=x=>ue.value.url=x),type:"url",required:"",placeholder:"https://...",class:"input"},null,512),[[me,ue.value.url]])]),l("div",gp,[l("div",{class:"flex items-center justify-between"},[v[47]||(v[47]=l("label",{class:"label"},"Parámetros que completa el modelo",-1)),l("button",{type:"button",class:"text-xs text-brand",onClick:H},"+ agregar")]),(_(!0),C(le,null,Ie(ue.value.parametros,(x,Ae)=>(_(),C("div",{key:Ae,class:"flex gap-2 items-center"},[ne(l("input",{"onUpdate:modelValue":it=>x.nombre=it,placeholder:"nombre",class:"flex-1 border border-borde bg-white dark:bg-gray-800 text-texto rounded px-2 py-1 text-xs font-mono"},null,8,bp),[[me,x.nombre]]),ne(l("select",{"onUpdate:modelValue":it=>x.tipo=it,class:"border border-borde bg-white dark:bg-gray-800 text-texto rounded px-2 py-1 text-xs"},[...v[48]||(v[48]=[l("option",{value:"string"},"string",-1),l("option",{value:"number"},"number",-1),l("option",{value:"boolean"},"boolean",-1)])],8,xp),[[gn,x.tipo]]),ne(l("input",{"onUpdate:modelValue":it=>x.descripcion=it,placeholder:"descripción",class:"flex-1 border border-borde bg-white dark:bg-gray-800 text-texto rounded px-2 py-1 text-xs"},null,8,yp),[[me,x.descripcion]]),l("label",_p,[ne(l("input",{"onUpdate:modelValue":it=>x.requerido=it,type:"checkbox"},null,8,wp),[[Pt,x.requerido]]),v[49]||(v[49]=ae(" req. ",-1))]),l("button",{type:"button",class:"text-red-400 text-xs",onClick:it=>Y(Ae)},[ie(Ze,{nombre:"cerrar",tam:13})],8,Cp)]))),128)),ue.value.parametros.length===0?(_(),C("p",kp,"Sin parámetros.")):J("",!0)]),l("div",Ap,[v[50]||(v[50]=l("label",{class:"label"},"Autenticación saliente (opcional)",-1)),ne(l("input",{"onUpdate:modelValue":v[12]||(v[12]=x=>ue.value.auth_header_nombre=x),placeholder:"Nombre del header, ej: Authorization",class:"input"},null,512),[[me,ue.value.auth_header_nombre]]),l("label",Ep,[ne(l("input",{"onUpdate:modelValue":v[13]||(v[13]=x=>ue.value.tocarAuth=x),type:"checkbox"},null,512),[[Pt,ue.value.tocarAuth]]),ae(" "+R(st.value?"Cambiar el valor del secreto":"Configurar valor"),1)]),ue.value.tocarAuth?ne((_(),C("input",{key:0,"onUpdate:modelValue":v[14]||(v[14]=x=>ue.value.auth_header_valor=x),type:"password",placeholder:"Valor del header (ej: Bearer xxxx)",class:"input"},null,512)),[[me,ue.value.auth_header_valor]]):J("",!0)]),l("label",Sp,[ne(l("input",{"onUpdate:modelValue":v[15]||(v[15]=x=>ue.value.activa=x),type:"checkbox"},null,512),[[Pt,ue.value.activa]]),v[51]||(v[51]=ae(" Activa ",-1))]),l("div",Ip,[l("button",{type:"button",class:"btn-ghost",onClick:v[16]||(v[16]=x=>Te.value=!1)},"Cancelar"),v[52]||(v[52]=l("button",{type:"submit",class:"btn-primary"},"Guardar",-1))])],32)])])):J("",!0)])):i.value==="canales"?(_(),C("div",$p,[l("div",Rp,[l("div",Pp,[v[53]||(v[53]=l("div",null,[l("span",{class:"font-medium text-texto"},"Web (widget)"),l("span",{class:"ml-2 px-1.5 py-0.5 rounded text-xs badge-ok"}," siempre activo ")],-1)),l("button",{class:Ee(["text-sm font-medium px-3 py-1.5 rounded-lg transition-colors",S.value?"bg-green-600 text-white":"bg-brand hover:bg-brand-dark text-white"]),onClick:N},[S.value?(_(),He(Ze,{key:0,nombre:"ok",tam:14})):J("",!0),ae(" "+R(S.value?"Copiado":"Copiar código"),1)],2)]),v[54]||(v[54]=l("p",{class:"label mb-2"},[ae(" Pegá esto antes de "),l("code",{class:"bg-elevado px-1 rounded"},"</body>"),ae(" en las páginas de tu sitio. ")],-1)),l("pre",Op,[l("code",null,R(F.value),1)])]),l("div",{class:"flex justify-end mb-4"},[l("button",{class:"btn-primary",onClick:Z}," + Nuevo canal ")]),l("div",Tp,[m.value.length===0?(_(),He(Tt,{key:0,titulo:"No está atendiendo en ningún lado",detalle:"Conectá WhatsApp o Telegram para que empiece a responderle a tus clientes. El widget de tu web funciona aparte, con la clave de sitio de arriba."})):J("",!0),(_(!0),C(le,null,Ie(m.value,x=>(_(),C("div",{key:x.ID,class:"p-4"},[l("div",Mp,[l("div",null,[l("span",Dp,R(x.tipo),1),l("span",{class:Ee(["ml-2 px-1.5 py-0.5 rounded text-xs",x.activo?"badge-ok":"badge-neutro"])},R(x.activo?"activo":"inactivo"),3)]),l("div",Np,[l("button",{class:"text-tenue hover:text-gray-800 dark:hover:text-gray-100",onClick:Ae=>te(x)},R(x.activo?"Desactivar":"Activar"),9,Vp),l("button",{class:"text-red-500 hover:text-red-700",onClick:Ae=>Re(x)},"Eliminar",8,jp)])]),l("div",Up,[l("label",Lp,[l("input",{type:"checkbox",checked:x.usar_whisper_audio,onChange:Ae=>fe(x),class:"rounded border-borde text-brand focus:ring-brand"},null,40,Fp),v[55]||(v[55]=ae(" Transcribir audios (Whisper) ",-1))]),l("label",qp,[l("input",{type:"checkbox",checked:x.usar_ocr_imagenes,onChange:Ae=>xe(x),class:"rounded border-borde text-brand focus:ring-brand"},null,40,Hp),v[56]||(v[56]=ae(" Leer texto de imágenes (OCR) ",-1))]),l("label",Bp,[l("input",{type:"checkbox",checked:x.usar_archivos_docs,onChange:Ae=>he(x),class:"rounded border-borde text-brand focus:ring-brand"},null,40,Gp),v[57]||(v[57]=ae(" Leer archivos adjuntos (PDF, Word, texto) ",-1))])]),l("p",Kp,[v[58]||(v[58]=ae(" Webhook: ",-1)),l("code",Wp,R(x.webhook_url),1)]),x.tipo==="whatsapp"?(_(),C("p",zp,' Registrá esta URL como "Callback URL" en Meta for Developers → WhatsApp → Configuration, con el mismo verify_token que pusiste acá. ')):J("",!0),x.ultimo_error?(_(),C("p",Jp,R(x.ultimo_error),1)):J("",!0)]))),128))]),g.value?(_(),C("div",{key:0,class:"fixed inset-0 bg-black/50 backdrop-blur-sm flex items-center justify-center p-4 z-50",onClick:v[28]||(v[28]=Ve(x=>g.value=!1,["self"]))},[l("div",Qp,[v[70]||(v[70]=l("h2",{class:"font-semibold text-texto mb-4"},"Nuevo canal",-1)),l("form",{class:"space-y-3",onSubmit:Ve(B,["prevent"])},[l("div",null,[v[60]||(v[60]=l("label",{class:"label"},"Tipo",-1)),ne(l("select",{"onUpdate:modelValue":v[18]||(v[18]=x=>w.value.tipo=x),class:"input"},[...v[59]||(v[59]=[l("option",{value:"telegram"},"Telegram",-1),l("option",{value:"whatsapp"},"WhatsApp Business",-1)])],512),[[gn,w.value.tipo]])]),w.value.tipo==="telegram"?(_(),C("div",Yp,[v[61]||(v[61]=l("label",{class:"label"},"Bot token (de @BotFather)",-1)),ne(l("input",{"onUpdate:modelValue":v[19]||(v[19]=x=>w.value.bot_token=x),type:"password",required:"",class:"input"},null,512),[[me,w.value.bot_token]])])):(_(),C(le,{key:1},[l("div",null,[v[62]||(v[62]=l("label",{class:"label"},"Phone Number ID",-1)),ne(l("input",{"onUpdate:modelValue":v[20]||(v[20]=x=>w.value.phone_number_id=x),required:"",class:"input"},null,512),[[me,w.value.phone_number_id]])]),l("div",null,[v[63]||(v[63]=l("label",{class:"label"},"Access Token",-1)),ne(l("input",{"onUpdate:modelValue":v[21]||(v[21]=x=>w.value.access_token=x),type:"password",required:"",class:"input"},null,512),[[me,w.value.access_token]])]),l("div",null,[v[64]||(v[64]=l("label",{class:"label"},"App Secret",-1)),ne(l("input",{"onUpdate:modelValue":v[22]||(v[22]=x=>w.value.app_secret=x),type:"password",required:"",class:"input"},null,512),[[me,w.value.app_secret]])]),l("div",null,[v[65]||(v[65]=l("label",{class:"label"},"Verify Token (lo inventás vos, lo vas a usar en Meta)",-1)),ne(l("input",{"onUpdate:modelValue":v[23]||(v[23]=x=>w.value.verify_token=x),required:"",class:"input"},null,512),[[me,w.value.verify_token]])])],64)),l("div",Zp,[l("label",Xp,[ne(l("input",{type:"checkbox","onUpdate:modelValue":v[24]||(v[24]=x=>w.value.usar_whisper_audio=x),class:"rounded border-borde text-brand focus:ring-brand"},null,512),[[Pt,w.value.usar_whisper_audio]]),v[66]||(v[66]=ae(" Transcribir audios con Whisper ",-1))]),l("label",em,[ne(l("input",{type:"checkbox","onUpdate:modelValue":v[25]||(v[25]=x=>w.value.usar_ocr_imagenes=x),class:"rounded border-borde text-brand focus:ring-brand"},null,512),[[Pt,w.value.usar_ocr_imagenes]]),v[67]||(v[67]=ae(" Leer texto de imágenes con OCR ",-1))]),l("label",tm,[ne(l("input",{type:"checkbox","onUpdate:modelValue":v[26]||(v[26]=x=>w.value.usar_archivos_docs=x),class:"rounded border-borde text-brand focus:ring-brand"},null,512),[[Pt,w.value.usar_archivos_docs]]),v[68]||(v[68]=ae(" Leer archivos adjuntos (PDF, Word, texto) ",-1))])]),l("div",nm,[l("button",{type:"button",class:"btn-ghost",onClick:v[27]||(v[27]=x=>g.value=!1)},"Cancelar"),v[69]||(v[69]=l("button",{type:"submit",class:"btn-primary"},"Guardar",-1))])],32)])])):J("",!0)])):i.value==="conexiones"?(_(),C("div",sm,[v[71]||(v[71]=l("p",{class:"label mb-4"}," Conectá una cuenta de correo para que este agente pueda enviar y leer correo en su nombre. Se soporta una cuenta activa a la vez. ",-1)),l("div",om,[l("button",{class:"border border-borde hover:border-brand text-sm font-medium px-4 py-2 rounded-lg text-gray-700 dark:text-gray-200 transition-colors",onClick:v[29]||(v[29]=x=>rt("google"))}," Conectar Google "),l("button",{class:"border border-borde hover:border-brand text-sm font-medium px-4 py-2 rounded-lg text-gray-700 dark:text-gray-200 transition-colors",onClick:v[30]||(v[30]=x=>rt("microsoft"))}," Conectar Outlook ")]),l("div",rm,[Pe.value.length===0?(_(),He(Tt,{key:0,titulo:"Sin cuentas conectadas",detalle:"Conectando una cuenta de correo, el agente puede leer y responder mensajes con tu dirección."})):J("",!0),(_(!0),C(le,null,Ie(Pe.value,x=>(_(),C("div",{key:x.ID,class:"p-4 flex items-center justify-between"},[l("div",null,[l("span",im,R(x.proveedor),1),l("span",lm,R(x.email),1),l("span",{class:Ee(["ml-2 px-1.5 py-0.5 rounded text-xs",x.activo?"badge-ok":"badge-neutro"])},R(x.activo?"activa":"inactiva"),3)]),l("button",{class:"text-red-500 hover:text-red-700 text-sm",onClick:Ae=>Qt(x)},"Desconectar",8,am)]))),128))])])):i.value==="chat"?(_(),C("div",um,[l("div",cm,[De.value.length===0?(_(),C("p",dm," Probá este agente tal cual lo va a ver un visitante — usa la misma config de IA, las mismas herramientas y la misma base de conocimiento. ")):J("",!0),(_(!0),C(le,null,Ie(De.value,(x,Ae)=>(_(),C("div",{key:Ae,class:Ee(["max-w-[80%] px-3 py-2 rounded-lg text-sm whitespace-pre-wrap",x.role==="user"?"bg-brand text-white ml-auto":"bg-elevado text-texto"])},R(x.content),3))),128)),Bt.value?(_(),C("div",fm,[ie(ps,{estado:"pensando",tam:30,class:"text-brand"}),v[72]||(v[72]=l("span",{class:"text-xs text-tenue"},"Pensando…",-1))])):J("",!0)]),l("form",{class:"flex gap-2",onSubmit:Ve(Wn,["prevent"])},[ne(l("input",{"onUpdate:modelValue":v[31]||(v[31]=x=>ze.value=x),placeholder:"Escribí un mensaje de prueba...",class:"flex-1 input"},null,512),[[me,ze.value]]),l("button",{type:"submit",disabled:Bt.value,class:"btn-primary disabled:opacity-50 transition-colors"}," Enviar ",8,pm)],32)])):i.value==="conversaciones"?(_(),C("div",mm,[l("div",hm,[Se.value.length===0?(_(),He(Tt,{key:0,titulo:"Nadie escribió todavía",detalle:"Acá vas a ver todo lo que le preguntan y qué contestó."})):J("",!0),(_(!0),C(le,null,Ie(Se.value,x=>(_(),C("button",{key:x.session_id,class:Ee(["w-full text-left p-3 hover:bg-elevado text-sm",de.value===x.session_id?"bg-gray-50 dark:bg-gray-800":""]),onClick:Ae=>bt(x.session_id)},[l("div",gm,R(x.content),1),l("div",bm,R(x.session_id),1)],10,vm))),128))]),l("div",xm,[de.value?J("",!0):(_(),C("p",ym,"Elegí una conversación de la izquierda.")),(_(!0),C(le,null,Ie(pe.value,x=>(_(),C("div",{key:x.ID,class:Ee(["max-w-[80%] px-3 py-2 rounded-lg text-sm",x.role==="user"?"bg-brand text-white ml-auto":"bg-elevado text-texto"])},R(x.content),3))),128))])])):(_(),C("div",_m,[v[73]||(v[73]=l("p",{class:"label mb-4"}," Errores y eventos técnicos de este agente — fallos al llamar a la IA, a una herramienta, al correo o a los canales. Últimos 100. ",-1)),l("div",wm,[zn.value.length===0?(_(),He(Tt,{key:0,estado:"contenta",titulo:"Ningún problema registrado",detalle:"Acá aparecen los errores: una herramienta que no responde, una fuente que no se pudo leer. Que esté vacío es buena señal."})):J("",!0),(_(!0),C(le,null,Ie(zn.value,x=>(_(),C("details",{key:x.ID,class:"p-3"},[l("summary",Cm,[l("span",{class:Ee(["px-1.5 py-0.5 rounded text-xs shrink-0",nl.value(x.nivel)])},R(x.nivel),3),l("span",km,R(x.origen),1),l("span",Am,R(x.mensaje),1),l("span",Em,R(sl(x.CreatedAt)),1)]),x.detalle?(_(),C("pre",Sm,R(x.detalle),1)):J("",!0)]))),128))])]))])}}},$m={class:"flex items-start justify-between gap-4 mb-6"},Rm={class:"card p-4 mb-4"},Pm={class:"flex flex-wrap items-end gap-3"},Om={class:"flex gap-1 ml-auto"},Tm={key:0,class:"text-sm text-red-600 dark:text-red-400 mb-4"},Mm={key:1,class:"text-sm text-tenue"},Dm={class:"grid gap-3 sm:grid-cols-3 mb-4"},Nm={class:"card p-4"},Vm={class:"text-2xl font-semibold text-texto mt-1 tabular-nums"},jm={class:"card p-4"},Um={class:"text-2xl font-semibold text-texto mt-1 tabular-nums"},Lm={class:"card p-4"},Fm={class:"text-lg font-semibold text-texto mt-1"},qm={key:0,class:"text-[11px] text-tenue mt-0.5"},Hm={key:0,class:"card p-4 mb-4"},Bm={class:"flex items-center justify-between text-sm mb-2"},Gm={class:"text-tenue tabular-nums"},Km={class:"h-2 rounded-full bg-elevado overflow-hidden"},Wm={key:0,class:"text-xs text-amber-600 dark:text-amber-400 mt-2"},zm={class:"card divide-y divide-borde mb-4"},Jm={class:"min-w-0 flex-1"},Qm={class:"text-sm text-texto"},Ym={class:"text-xs text-tenue tabular-nums"},Zm={key:0,class:"text-sm font-medium text-texto tabular-nums"},Xm={key:1,class:"text-xs text-tenue text-right leading-tight"},eh={key:1,class:"card p-4"},th={class:"flex items-end gap-1 h-28"},nh=["title"],sh={class:"flex justify-between text-[11px] text-tenue mt-2"},oh={__name:"Uso",props:{id:{type:String,required:!0}},setup(e){const t=e,n=G(!0),s=G(""),o=G(null),r=new Date,i=G(new Date(r.getFullYear(),r.getMonth(),1).toISOString().slice(0,10)),a=G(r.toISOString().slice(0,10)),u={ia:{nombre:"Inteligencia artificial",icono:"cerebro",color:"#8eb02f"},ocr:{nombre:"Lectura de imágenes",icono:"imagen",color:"#2f7fb0"},whisper:{nombre:"Transcripción de audio",icono:"microfono",color:"#b0752f"}},d=k=>u[k]||{nombre:k,icono:"grafico",color:"#94a3b8"};async function c(){n.value=!0,s.value="";try{o.value=await oe.get(se(`/umind/uso?tenant_id=${t.id}&desde=${i.value}&hasta=${a.value}`))}catch(k){s.value=k.message}finally{n.value=!1}}const p=Ce(()=>{var k,b;return((b=(k=o.value)==null?void 0:k.plan)==null?void 0:b.moneda)||"COP"}),h=Ce(()=>{var k;return((k=o.value)==null?void 0:k.resumen)||[]}),y=Ce(()=>{var k;return((k=o.value)==null?void 0:k.total_periodo)||0}),D=Ce(()=>{var k,b;return((b=(k=o.value)==null?void 0:k.plan)==null?void 0:b.tope_consumo_mensual)||0}),P=Ce(()=>D.value?Math.min(100,y.value/D.value*100):0);function K(k){return`${p.value} ${Number(k||0).toLocaleString("es-CO",{maximumFractionDigits:2})}`}function q(k){return Number(k||0).toLocaleString("es-CO",{maximumFractionDigits:0})}const T=Ce(()=>{var j;const k=new Map;for(const U of((j=o.value)==null?void 0:j.detalle)||[]){const ke=String(U.CreatedAt).slice(0,10);k.set(ke,(k.get(ke)||0)+(U.costo||0))}const b=[...k.entries()].sort((U,ke)=>U[0].localeCompare(ke[0])),O=Math.max(...b.map(U=>U[1]),0);return{dias:b,max:O}});function V(k){const b=new Date,O=new Date;O.setDate(O.getDate()-k),i.value=O.toISOString().slice(0,10),a.value=b.toISOString().slice(0,10),c()}return Vt(()=>t.id,c,{immediate:!0}),(k,b)=>{var j;const O=wn("router-link");return _(),C("div",null,[l("div",$m,[b[6]||(b[6]=l("div",null,[l("h1",{class:"text-xl font-semibold text-texto"},"Consumo"),l("p",{class:"text-sm text-tenue mt-0.5"},"Lo que usaron tus agentes y cuánto cuesta.")],-1)),ie(O,{to:`/tenants/${e.id}`,class:"btn-ghost inline-flex items-center gap-1.5"},{default:dt(()=>[ie(Ze,{nombre:"atras",tam:15}),b[5]||(b[5]=ae(" Agentes",-1))]),_:1},8,["to"])]),l("div",Rm,[l("div",Pm,[l("div",null,[b[7]||(b[7]=l("label",{class:"label"},"Desde",-1)),ne(l("input",{"onUpdate:modelValue":b[0]||(b[0]=U=>i.value=U),type:"date",class:"input !w-auto"},null,512),[[me,i.value]])]),l("div",null,[b[8]||(b[8]=l("label",{class:"label"},"Hasta",-1)),ne(l("input",{"onUpdate:modelValue":b[1]||(b[1]=U=>a.value=U),type:"date",class:"input !w-auto"},null,512),[[me,a.value]])]),l("button",{class:"btn-primary",onClick:c},"Aplicar"),l("div",Om,[l("button",{class:"btn-ghost !px-2.5 !py-1 !text-xs",onClick:b[2]||(b[2]=U=>V(6))},"7 días"),l("button",{class:"btn-ghost !px-2.5 !py-1 !text-xs",onClick:b[3]||(b[3]=U=>V(29))},"30 días"),l("button",{class:"btn-ghost !px-2.5 !py-1 !text-xs",onClick:b[4]||(b[4]=U=>V(89))},"90 días")])])]),s.value?(_(),C("p",Tm,R(s.value),1)):J("",!0),n.value?(_(),C("p",Mm,"Cargando…")):o.value?(_(),C(le,{key:2},[l("div",Dm,[l("div",Nm,[b[9]||(b[9]=l("p",{class:"text-xs text-tenue"},"Consumo del período",-1)),l("p",Vm,R(K(y.value)),1)]),l("div",jm,[b[10]||(b[10]=l("p",{class:"text-xs text-tenue"},"Pendiente de facturar",-1)),l("p",Um,R(K(o.value.pendiente_facturar)),1),b[11]||(b[11]=l("p",{class:"text-[11px] text-tenue mt-0.5"},"Se suma a tu próxima factura.",-1))]),l("div",Lm,[b[12]||(b[12]=l("p",{class:"text-xs text-tenue"},"Plan",-1)),l("p",Fm,R(((j=o.value.plan)==null?void 0:j.nombre)||"Sin plan"),1),o.value.plan?(_(),C("p",qm," Mensualidad "+R(K(o.value.plan.precio_mensual)),1)):J("",!0)])]),D.value?(_(),C("div",Hm,[l("div",Bm,[b[13]||(b[13]=l("span",{class:"text-texto"},"Tope mensual",-1)),l("span",Gm,R(K(y.value))+" / "+R(K(D.value)),1)]),l("div",Km,[l("div",{class:Ee(["h-full rounded-full transition-all duration-500",P.value>=100?"bg-red-500":P.value>=80?"bg-amber-500":"bg-brand"]),style:sn({width:P.value+"%"})},null,6)]),P.value>=100?(_(),C("p",Wm," Superaste el tope de tu plan. El servicio sigue funcionando y el excedente se cobra en el próximo ciclo. ")):J("",!0)])):J("",!0),l("div",zm,[b[15]||(b[15]=l("div",{class:"px-4 py-3"},[l("h2",{class:"text-sm font-medium text-texto"},"Desglose")],-1)),h.value.length===0?(_(),He(Tt,{key:0,estado:"durmiendo",titulo:"Sin consumo en este período",detalle:"Cuando tus agentes respondan mensajes, lean imágenes o transcriban audios, vas a verlo acá."})):J("",!0),(_(!0),C(le,null,Ie(h.value,U=>(_(),C("div",{key:U.tipo,class:"px-4 py-3 flex items-center gap-3"},[ie(Ze,{nombre:d(U.tipo).icono,tam:18,class:"text-tenue"},null,8,["nombre"]),l("div",Jm,[l("p",Qm,R(d(U.tipo).nombre),1),l("p",Ym,R(q(U.cantidad))+" "+R(U.unidad)+" · "+R(q(U.eventos))+" usos ",1)]),U.costo>0?(_(),C("span",Zm,R(K(U.costo)),1)):(_(),C("span",Xm,[...b[14]||(b[14]=[ae(" va por tu",-1),l("br",null,null,-1),ae("cuenta de IA ",-1)])]))]))),128))]),T.value.dias.length?(_(),C("div",eh,[b[16]||(b[16]=l("h2",{class:"text-sm font-medium text-texto mb-3"},"Por día",-1)),l("div",th,[(_(!0),C(le,null,Ie(T.value.dias,([U,ke])=>(_(),C("div",{key:U,class:"flex-1 min-w-[3px] bg-brand/70 hover:bg-brand rounded-t transition-colors",style:sn({height:T.value.max?Math.max(2,ke/T.value.max*100)+"%":"2px"}),title:`${U}: ${K(ke)}`},null,12,nh))),128))]),l("div",sh,[l("span",null,R(T.value.dias[0][0]),1),l("span",null,R(T.value.dias[T.value.dias.length-1][0]),1)])])):J("",!0)],64)):J("",!0)])}}},rh={class:"flex items-start justify-between gap-4 mb-6"},ih={key:0,class:"text-sm text-red-600 dark:text-red-400 mb-4"},lh={key:1,class:"text-sm text-tenue"},ah={key:3,class:"card divide-y divide-borde"},uh={class:"flex items-start justify-between gap-4"},ch={class:"min-w-0"},dh={class:"text-sm text-texto font-medium"},fh={class:"text-xs text-tenue mt-0.5"},ph={class:"font-mono"},mh={class:"flex items-center gap-3 shrink-0 text-sm"},hh=["disabled","onClick"],vh=["onClick"],gh=["onClick"],bh={key:4,class:"text-xs text-tenue mt-3"},xh={class:"card w-full max-w-lg p-6 max-h-[calc(100vh-2rem)] overflow-y-auto"},yh={class:"font-semibold text-texto mb-4"},_h=["value"],wh={key:0,class:"text-xs text-tenue mt-1"},Ch={class:"font-mono"},kh=["placeholder"],Ah={key:0},Eh={class:"label"},Sh={key:0,class:"text-tenue font-normal"},Ih=["required"],$h={key:1},Rh={class:"flex justify-end gap-2 pt-2"},Ph=["disabled"],Oh={__name:"AiPropia",props:{id:{type:String,required:!0}},setup(e){const t=e,n=G([]),s=G(!0),o=G(""),r=G(!1),i=G(null),a=G(!1),u=G(null),d=G({}),c=[{valor:"openai",nombre:"OpenAI",modelo:"gpt-4o-mini",donde:"platform.openai.com/api-keys"},{valor:"anthropic",nombre:"Anthropic (Claude)",modelo:"claude-sonnet-4-20250514",donde:"console.anthropic.com"},{valor:"gemini",nombre:"Google Gemini",modelo:"gemini-2.0-flash",donde:"aistudio.google.com/apikey"},{valor:"groq",nombre:"Groq",modelo:"llama-3.3-70b-versatile",donde:"console.groq.com/keys"},{valor:"deepseek",nombre:"DeepSeek",modelo:"deepseek-chat",donde:"platform.deepseek.com"},{valor:"qwen",nombre:"Qwen (Alibaba)",modelo:"qwen2.5-72b-instruct",donde:"dashscope.console.aliyun.com"},{valor:"ollama",nombre:"Ollama (tu servidor)",modelo:"llama3.1",donde:""}];function p(){return{nombre:"",provider:"openai",api_key:"",base_url:"",model_name:""}}const h=G(p());function y(k){return c.find(b=>b.valor===k)||c[0]}async function D(){s.value=!0,o.value="";try{const k=await oe.get(se(`/umind/ai-propia?tenant_id=${t.id}`));n.value=k.items||[]}catch(k){o.value=k.message}finally{s.value=!1}}Vt(()=>t.id,D,{immediate:!0});function P(){i.value=null,h.value=p(),r.value=!0}function K(k){i.value=k,h.value={nombre:k.nombre,provider:k.provider,api_key:"",base_url:k.base_url||"",model_name:k.model_name||""},r.value=!0}async function q(){a.value=!0,o.value="";try{const k={tenant_id:Number(t.id),...h.value};i.value?await oe.put(se(`/umind/ai-propia/${i.value.ID}`),k):await oe.post(se("/umind/ai-propia"),k),r.value=!1,await D()}catch(k){o.value=k.message}finally{a.value=!1}}async function T(k){u.value=k.ID,d.value={...d.value,[k.ID]:null};try{const b=await oe.post(se(`/umind/ai-propia/${k.ID}/probar`),{});d.value={...d.value,[k.ID]:{ok:!0,texto:b.respuesta}}}catch(b){d.value={...d.value,[k.ID]:{ok:!1,texto:b.message}}}finally{u.value=null}}async function V(k){if(confirm(`¿Eliminar "${k.nombre}"?`)){o.value="";try{await oe.del(se(`/umind/ai-propia/${k.ID}`)),await D()}catch(b){o.value=b.message}}}return(k,b)=>{const O=wn("router-link");return _(),C("div",null,[l("div",rh,[l("div",null,[ie(O,{to:`/tenants/${e.id}`,class:"text-sm text-tenue hover:text-texto inline-flex items-center gap-1.5"},{default:dt(()=>[ie(Ze,{nombre:"atras",tam:14}),b[7]||(b[7]=ae(" Agentes",-1))]),_:1},8,["to"]),b[8]||(b[8]=l("h1",{class:"text-xl font-semibold text-texto mt-1"},"Tu cuenta de IA",-1)),b[9]||(b[9]=l("p",{class:"text-sm text-tenue mt-1 max-w-xl"}," Podés usar tu propia cuenta de OpenAI, Claude o Gemini en vez de la nuestra. El consumo se factura directo con el proveedor y no pasa por tu plan. ",-1))]),l("button",{class:"btn-primary shrink-0",onClick:P},"+ Conectar cuenta")]),o.value?(_(),C("p",ih,R(o.value),1)):J("",!0),s.value?(_(),C("div",lh,"Cargando…")):n.value.length===0?(_(),He(Tt,{key:2,class:"card",titulo:"Estás usando la IA de uMind",detalle:"Funciona sin que hagas nada. Conectá tu propia cuenta solo si querés facturar el consumo por tu lado o usar un modelo puntual."},{default:dt(()=>[l("button",{class:"btn-primary",onClick:P},"Conectar mi cuenta")]),_:1})):(_(),C("div",ah,[(_(!0),C(le,null,Ie(n.value,j=>(_(),C("div",{key:j.ID,class:"p-4"},[l("div",uh,[l("div",ch,[l("div",dh,R(j.nombre),1),l("div",fh,[ae(R(y(j.provider).nombre)+" · "+R(j.model_name)+" · ",1),l("span",ph,R(j.api_key_pista),1)]),d.value[j.ID]?(_(),C("p",{key:0,class:Ee(["text-xs mt-1.5",d.value[j.ID].ok?"text-brand":"text-red-600 dark:text-red-400"])},R(d.value[j.ID].ok?`Responde bien — dijo "${d.value[j.ID].texto}"`:d.value[j.ID].texto),3)):J("",!0)]),l("div",mh,[l("button",{class:"text-brand hover:underline disabled:opacity-40",disabled:u.value===j.ID,onClick:U=>T(j)},R(u.value===j.ID?"Probando…":"Probar"),9,hh),l("button",{class:"text-tenue hover:text-texto",onClick:U=>K(j)},"Editar",8,vh),l("button",{class:"text-red-500 hover:text-red-700",onClick:U=>V(j)},"Eliminar",8,gh)])])]))),128))])),n.value.length?(_(),C("p",bh,[...b[10]||(b[10]=[ae(" Para que un agente la use, elegila en su campo ",-1),l("strong",null,"Config de IA",-1),ae(". ",-1)])])):J("",!0),r.value?(_(),C("div",{key:5,class:"fixed inset-0 bg-black/40 flex items-center justify-center p-4 z-50",onClick:b[6]||(b[6]=Ve(j=>r.value=!1,["self"]))},[l("div",xh,[l("h2",yh,R(i.value?"Editar cuenta de IA":"Conectar tu cuenta de IA"),1),l("form",{class:"space-y-3",onSubmit:Ve(q,["prevent"])},[l("div",null,[b[11]||(b[11]=l("label",{class:"label"},"Nombre",-1)),ne(l("input",{"onUpdate:modelValue":b[0]||(b[0]=j=>h.value.nombre=j),required:"",placeholder:"ej: Mi cuenta de OpenAI",class:"input"},null,512),[[me,h.value.nombre]])]),l("div",null,[b[13]||(b[13]=l("label",{class:"label"},"Proveedor",-1)),ne(l("select",{"onUpdate:modelValue":b[1]||(b[1]=j=>h.value.provider=j),class:"input"},[(_(),C(le,null,Ie(c,j=>l("option",{key:j.valor,value:j.valor},R(j.nombre),9,_h)),64))],512),[[gn,h.value.provider]]),y(h.value.provider).donde?(_(),C("p",wh,[b[12]||(b[12]=ae(" La clave se saca de ",-1)),l("span",Ch,R(y(h.value.provider).donde),1)])):J("",!0)]),l("div",null,[b[14]||(b[14]=l("label",{class:"label"},"Modelo",-1)),ne(l("input",{"onUpdate:modelValue":b[2]||(b[2]=j=>h.value.model_name=j),required:"",placeholder:`ej: ${y(h.value.provider).modelo}`,class:"input font-mono"},null,8,kh),[[me,h.value.model_name]])]),h.value.provider!=="ollama"?(_(),C("div",Ah,[l("label",Eh,[b[15]||(b[15]=ae(" Clave de API ",-1)),i.value?(_(),C("span",Sh,"— dejala vacía para no cambiarla")):J("",!0)]),ne(l("input",{"onUpdate:modelValue":b[3]||(b[3]=j=>h.value.api_key=j),type:"password",autocomplete:"new-password",required:!i.value,placeholder:"sk-...",class:"input font-mono"},null,8,Ih),[[me,h.value.api_key]]),b[16]||(b[16]=l("p",{class:"text-xs text-tenue mt-1"},"Se guarda cifrada y no se vuelve a mostrar.",-1))])):J("",!0),h.value.provider==="ollama"?(_(),C("div",$h,[b[17]||(b[17]=l("label",{class:"label"},"URL de tu servidor",-1)),ne(l("input",{"onUpdate:modelValue":b[4]||(b[4]=j=>h.value.base_url=j),required:"",placeholder:"https://ollama.tudominio.com/v1",class:"input font-mono"},null,512),[[me,h.value.base_url]])])):J("",!0),l("div",Rh,[l("button",{type:"button",class:"btn-ghost",onClick:b[5]||(b[5]=j=>r.value=!1)},"Cancelar"),l("button",{type:"submit",class:"btn-primary",disabled:a.value},R(a.value?"Guardando…":"Guardar"),9,Ph)])],32)])])):J("",!0)])}}},Th=Rc({history:ac(Xe.baseRuta),routes:[{path:"/",name:"home",component:Cd},{path:"/tenants/:id",name:"tenant-agentes",component:_f,props:!0},{path:"/tenants/:id/uso",name:"uso",component:oh,props:!0},{path:"/tenants/:id/ia",name:"ai-propia",component:Oh,props:!0},{path:"/tenants/:tenantId/agentes/:agenteId",name:"agente-detail",component:Im,props:!0}]});_u(id).use(Th).mount("#app");
|