index-CkDrYQjW.js 204 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. (function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return e=>e in t}var t={},n=[],r=()=>{},i=()=>!1,a=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),o=e=>e.startsWith(`onUpdate:`),s=Object.assign,c=(e,t)=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,u=(e,t)=>l.call(e,t),d=Array.isArray,f=e=>x(e)===`[object Map]`,p=e=>x(e)===`[object Set]`,m=e=>x(e)===`[object Date]`,h=e=>typeof e==`function`,g=e=>typeof e==`string`,_=e=>typeof e==`symbol`,v=e=>typeof e==`object`&&!!e,y=e=>(v(e)||h(e))&&h(e.then)&&h(e.catch),b=Object.prototype.toString,x=e=>b.call(e),S=e=>x(e).slice(8,-1),C=e=>x(e)===`[object Object]`,w=e=>g(e)&&e!==`NaN`&&e[0]!==`-`&&``+parseInt(e,10)===e,ee=e(`,key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted`),te=e=>{let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},T=/-\w/g,E=te(e=>e.replace(T,e=>e.slice(1).toUpperCase())),ne=/\B([A-Z])/g,D=te(e=>e.replace(ne,`-$1`).toLowerCase()),re=te(e=>e.charAt(0).toUpperCase()+e.slice(1)),ie=te(e=>e?`on${re(e)}`:``),O=(e,t)=>!Object.is(e,t),ae=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},oe=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},se=e=>{let t=parseFloat(e);return isNaN(t)?e:t},ce,le=()=>ce||=typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{};function ue(e){if(d(e)){let t={};for(let n=0;n<e.length;n++){let r=e[n],i=g(r)?pe(r):ue(r);if(i)for(let e in i)t[e]=i[e]}return t}if(g(e)||v(e))return e}var de=/;(?![^(]*\))/g,fe=/:([^]+)/,k=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function pe(e){let t={};return e.replace(k,e=>e.startsWith(`/*`)?``:e).split(de).forEach(e=>{if(e){let n=e.split(fe);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function A(e){let t=``;if(g(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){let r=A(e[n]);r&&(t+=r+` `)}else if(v(e))for(let n in e)e[n]&&(t+=n+` `);return t.trim()}var me=e(`itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`);function he(e){return!!e||e===``}function ge(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=be(e[i],t[i],n);return r}function _e(e,t,n){if(e.size!==t.size)return!1;let r=Array.from(t),i=new Uint8Array(r.length);for(let t of e){let e=-1;for(let a=0;a<r.length;a++)if(!i[a]&&be(t,r[a],n)){e=a;break}if(e<0)return!1;i[e]=1}return!0}function ve(e,t,n){let r=f(e),i=f(t);if(r||i||(r=p(e),i=p(t),r||i))return r&&i?_e(e,t,n):!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e){let i=e.hasOwnProperty(r),a=t.hasOwnProperty(r);if(i&&!a||!i&&a||!be(e[r],t[r],n))return!1}return String(e)===String(t)}function ye(e,t,n,r){n||=[new Map,new Map];let[i,a]=n;if(i.has(e)||a.has(t))return i.get(e)===t&&a.get(t)===e;i.set(e,t),a.set(t,e);let o=r(e,t,n);return i.delete(e),a.delete(t),o}function be(e,t,n){if(e===t)return!0;let r=m(e),i=m(t);return r||i?r&&i?e.getTime()===t.getTime():!1:(r=_(e),i=_(t),r||i?e===t:(r=d(e),i=d(t),r||i?r&&i?ye(e,t,n,ge):!1:(r=v(e),i=v(t),r||i?!r||!i?!1:ye(e,t,n,ve):String(e)===String(t))))}function j(e,t){return e.findIndex(e=>be(e,t))}var xe=e=>!!(e&&e.__v_isRef===!0),M=e=>g(e)?e:e==null?``:d(e)||v(e)&&(e.toString===b||!h(e.toString))?xe(e)?M(e.value):JSON.stringify(e,Se,2):String(e),Se=(e,t)=>xe(t)?Se(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[t,n],r)=>(e[Ce(t,r)+` =>`]=n,e),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map(e=>Ce(e))}:_(t)?Ce(t):v(t)&&!d(t)&&!C(t)?String(t):t,Ce=(e,t=``)=>_(e)?`Symbol(${e.description??t})`:e,N,we=class{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&N&&(N.active?(this.parent=N,this.index=(N.scopes||(N.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,t;if(this.scopes){let n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}let n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){let t=N;try{return N=this,e()}finally{N=t}}}on(){++this._on===1&&(this.prevScope=N,N=this)}off(){if(this._on>0&&--this._on===0){if(N===this)N=this.prevScope;else{let e=N;for(;e;){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){this._active=!1;let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){let e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){let e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}};function Te(){return N}var P,Ee=new WeakSet,De=class{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,N&&(N.active?N.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Ee.has(this)&&(Ee.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||je(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,We(this),Pe(this);let e=P,t=Be;P=this,Be=!0;try{return this.fn()}finally{Fe(this),P=e,Be=t,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)Re(e);this.deps=this.depsTail=void 0,We(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Ee.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ie(this)&&this.run()}get dirty(){return Ie(this)}},Oe=0,ke,Ae;function je(e,t=!1){e.flags|=8,t?(e.next=Ae,Ae=e):(e.next=ke,ke=e)}function Me(){Oe++}function Ne(){if(--Oe>0)return;if(Ae){let e=Ae;for(Ae=void 0;e;){let t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;ke;){let t=ke;for(ke=void 0;t;){let n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(t){e||=t}t=n}}if(e)throw e}function Pe(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Fe(e){let t,n=e.depsTail,r=n;for(;r;){let e=r.prevDep;r.version===-1?(r===n&&(n=e),Re(r),ze(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function Ie(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Le(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Le(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Ge)||(e.globalVersion=Ge,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ie(e))))return;e.flags|=2;let t=e.dep,n=P,r=Be;P=e,Be=!0;try{Pe(e);let n=e.fn(e._value);(t.version===0||O(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(e){throw t.version++,e}finally{P=n,Be=r,Fe(e),e.flags&=-3}}function Re(e,t=!1){let{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)Re(e,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ze(e){let{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}var Be=!0,Ve=[];function He(){Ve.push(Be),Be=!1}function Ue(){let e=Ve.pop();Be=e===void 0||e}function We(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let e=P;P=void 0;try{t()}finally{P=e}}}var Ge=0,Ke=class{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},qe=class{constructor(e){this.computed=e,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(e){if(!P||!Be||P===this.computed)return;let t=this.activeLink;if(t===void 0||t.sub!==P)t=this.activeLink=new Ke(P,this),P.deps?(t.prevDep=P.depsTail,P.depsTail.nextDep=t,P.depsTail=t):P.deps=P.depsTail=t,Je(t);else if(t.version===-1&&(t.version=this.version,t.nextDep)){let e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=P.depsTail,t.nextDep=void 0,P.depsTail.nextDep=t,P.depsTail=t,P.deps===t&&(P.deps=e)}return t}trigger(e){this.version++,Ge++,this.notify(e)}notify(e){Me();try{for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{Ne()}}};function Je(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)Je(e)}let n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}var Ye=new WeakMap,Xe=Symbol(``),Ze=Symbol(``),Qe=Symbol(``);function $e(e,t,n){if(Be&&P){let t=Ye.get(e);t||Ye.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new qe),r.map=t,r.key=n),r.track()}}function et(e,t,n,r,i,a){let o=Ye.get(e);if(!o){Ge++;return}let s=e=>{e&&e.trigger()};if(Me(),t===`clear`)o.forEach(s);else{let i=d(e),a=i&&w(n);if(i&&n===`length`){let e=Number(r);o.forEach((t,n)=>{(n===`length`||n===Qe||!_(n)&&n>=e)&&s(t)})}else switch((n!==void 0||o.has(void 0))&&s(o.get(n)),a&&s(o.get(Qe)),t){case`add`:i?a&&s(o.get(`length`)):(s(o.get(Xe)),f(e)&&s(o.get(Ze)));break;case`delete`:i||(s(o.get(Xe)),f(e)&&s(o.get(Ze)));break;case`set`:f(e)&&s(o.get(Xe))}}Ne()}function tt(e){let t=I(e);return t===e||($e(t,`iterate`,Qe),Bt(e))?t:zt(e)?Rt(e)?t.map(e=>Wt(Ut(e))):t.map(Wt):t.map(Ut)}function nt(e){return $e(e=I(e),`iterate`,Qe),e}function rt(e,t){return zt(e)?Wt(Rt(e)?Ut(t):t):Ut(t)}var it={__proto__:null,[Symbol.iterator](){return at(this,Symbol.iterator,e=>rt(this,e))},concat(...e){return tt(this).concat(...e.map(e=>d(e)?tt(e):e))},entries(){return at(this,`entries`,e=>(e[1]=rt(this,e[1]),e))},every(e,t){return ct(this,`every`,e,t,void 0,arguments)},filter(e,t){return ct(this,`filter`,e,t,e=>e.map(e=>rt(this,e)),arguments)},find(e,t){return ct(this,`find`,e,t,e=>rt(this,e),arguments)},findIndex(e,t){return ct(this,`findIndex`,e,t,void 0,arguments)},findLast(e,t){return ct(this,`findLast`,e,t,e=>rt(this,e),arguments)},findLastIndex(e,t){return ct(this,`findLastIndex`,e,t,void 0,arguments)},forEach(e,t){return ct(this,`forEach`,e,t,void 0,arguments)},includes(...e){return ut(this,`includes`,e)},indexOf(...e){return ut(this,`indexOf`,e)},join(e){return tt(this).join(e)},lastIndexOf(...e){return ut(this,`lastIndexOf`,e)},map(e,t){return ct(this,`map`,e,t,void 0,arguments)},pop(){return dt(this,`pop`)},push(...e){return dt(this,`push`,e)},reduce(e,...t){return lt(this,`reduce`,e,t)},reduceRight(e,...t){return lt(this,`reduceRight`,e,t)},shift(){return dt(this,`shift`)},some(e,t){return ct(this,`some`,e,t,void 0,arguments)},splice(...e){return dt(this,`splice`,e)},toReversed(){return tt(this).toReversed()},toSorted(e){return tt(this).toSorted(e)},toSpliced(...e){return tt(this).toSpliced(...e)},unshift(...e){return dt(this,`unshift`,e)},values(){return at(this,`values`,e=>rt(this,e))}};function at(e,t,n){let r=nt(e),i=r[t],a=i.call(r);if(r!==e&&!Bt(e)){if(a[Symbol.toStringTag]===`Array Iterator`){let e=Object.create(Object.getPrototypeOf(a));return e.next=()=>ot(a.next(),n),i!==st[t]&&Object.defineProperties(e,{return:{get(){let e=a.return;return typeof e==`function`?e.bind(a):e}},throw:{get(){let e=a.throw;return typeof e==`function`?e.bind(a):e}}}),e}a._next=a.next,a.next=()=>ot(a._next(),n)}return a}function ot(e,t){return e.done||(e.value=t(e.value)),e}var st=Array.prototype;function ct(e,t,n,r,i,a){let o=nt(e),s=o!==e&&!Bt(e),c=o[t];if(c!==st[t]){let t=c.apply(e,a);return s?Ut(t):t}let l=n;o!==e&&(s?l=function(t,r){return n.call(this,rt(e,t),r,e)}:n.length>2&&(l=function(t,r){return n.call(this,t,r,e)}));let u=c.call(o,l,r);return s&&i?i(u):u}function lt(e,t,n,r){let i=nt(e),a=i!==e&&!Bt(e),o=n,s=!1;i!==e&&(a?(s=r.length===0,o=function(t,r,i){return s&&(s=!1,t=rt(e,t)),n.call(this,t,rt(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));let c=i[t](o,...r);return s?rt(e,c):c}function ut(e,t,n){let r=I(e);$e(r,`iterate`,Qe);let i=r[t](...n);return(i===-1||i===!1)&&Vt(n[0])?(n[0]=I(n[0]),r[t](...n)):i}function dt(e,t,n=[]){He(),Me();let r=I(e)[t].apply(e,n);return Ne(),Ue(),r}var F=e(`__proto__,__v_isRef,__isVue`),ft=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!==`arguments`&&e!==`caller`).map(e=>Symbol[e]).filter(_));function pt(e){_(e)||(e=String(e));let t=I(this);return $e(t,`has`,e),t.hasOwnProperty(e)}var mt=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if(t===`__v_skip`)return e.__v_skip;let r=this._isReadonly,i=this._isShallow;if(t===`__v_isReactive`)return!r;if(t===`__v_isReadonly`)return r;if(t===`__v_isShallow`)return i;if(t===`__v_raw`)return n===(r?i?Mt:jt:i?At:kt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;let a=d(e);if(!r){let e;if(a&&(e=it[t]))return e;if(t===`hasOwnProperty`)return pt}let o=Reflect.get(e,t,Gt(e)?e:n);if((_(t)?ft.has(t):F(t))||(r||$e(e,`get`,t),i))return o;if(Gt(o)){let e=a&&w(t)?o:o.value;return r&&v(e)?It(e):e}return v(o)?r?It(o):Pt(o):o}},ht=class extends mt{constructor(e=!1){super(!1,e)}set(e,t,n,r){let i=e[t],a=d(e)&&w(t);if(!this._isShallow){let e=zt(i);if(!Bt(n)&&!zt(n)&&(i=I(i),n=I(n)),!a&&Gt(i)&&!Gt(n))return e||(i.value=n),!0}let o=a?Number(t)<e.length:u(e,t),s=Reflect.set(e,t,n,Gt(e)?e:r);return e===I(r)&&s&&(o?O(n,i)&&et(e,`set`,t,n,i):et(e,`add`,t,n)),s}deleteProperty(e,t){let n=u(e,t),r=e[t],i=Reflect.deleteProperty(e,t);return i&&n&&et(e,`delete`,t,void 0,r),i}has(e,t){let n=Reflect.has(e,t);return(!_(t)||!ft.has(t))&&$e(e,`has`,t),n}ownKeys(e){return $e(e,`iterate`,d(e)?`length`:Xe),Reflect.ownKeys(e)}},gt=class extends mt{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},_t=new ht,vt=new gt,yt=new ht(!0),bt=e=>e,xt=e=>Reflect.getPrototypeOf(e);function St(e,t,n){return function(...r){let i=this.__v_raw,a=I(i),o=f(a),c=e===`entries`||e===Symbol.iterator&&o,l=e===`keys`&&o,u=i[e](...r),d=n?bt:t?Wt:Ut;return!t&&$e(a,`iterate`,l?Ze:Xe),s(Object.create(u),{next(){let{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:c?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function Ct(e){return function(...t){return e===`delete`?!1:e===`clear`?void 0:this}}function wt(e,t){let n={get(n){let r=this.__v_raw,i=I(r),a=I(n);e||(O(n,a)&&$e(i,`get`,n),$e(i,`get`,a));let{has:o}=xt(i),s=t?bt:e?Wt:Ut;if(o.call(i,n))return s(r.get(n));if(o.call(i,a))return s(r.get(a));r!==i&&r.get(n)},get size(){let t=this.__v_raw;return!e&&$e(I(t),`iterate`,Xe),t.size},has(t){let n=this.__v_raw,r=I(n),i=I(t);return e||(O(t,i)&&$e(r,`has`,t),$e(r,`has`,i)),t===i?n.has(t):n.has(t)||n.has(i)},forEach(n,r){let i=this,a=i.__v_raw,o=I(a),s=t?bt:e?Wt:Ut;return!e&&$e(o,`iterate`,Xe),a.forEach((e,t)=>n.call(r,s(e),s(t),i))}};return s(n,e?{add:Ct(`add`),set:Ct(`set`),delete:Ct(`delete`),clear:Ct(`clear`)}:{add(e){let n=I(this),r=xt(n),i=I(e),a=!t&&!Bt(e)&&!zt(e)?i:e;return r.has.call(n,a)||O(e,a)&&r.has.call(n,e)||O(i,a)&&r.has.call(n,i)||(n.add(a),et(n,`add`,a,a)),this},set(e,n){!t&&!Bt(n)&&!zt(n)&&(n=I(n));let r=I(this),{has:i,get:a}=xt(r),o=i.call(r,e);o||=(e=I(e),i.call(r,e));let s=a.call(r,e);return r.set(e,n),o?O(n,s)&&et(r,`set`,e,n,s):et(r,`add`,e,n),this},delete(e){let t=I(this),{has:n,get:r}=xt(t),i=n.call(t,e);i||=(e=I(e),n.call(t,e));let a=r?r.call(t,e):void 0,o=t.delete(e);return i&&et(t,`delete`,e,void 0,a),o},clear(){let e=I(this),t=e.size!==0,n=e.clear();return t&&et(e,`clear`,void 0,void 0,void 0),n}}),[`keys`,`values`,`entries`,Symbol.iterator].forEach(r=>{n[r]=St(r,e,t)}),n}function Tt(e,t){let n=wt(e,t);return(r,i,a)=>i===`__v_isReactive`?!e:i===`__v_isReadonly`?e:i===`__v_isShallow`?t:i===`__v_raw`?r:Reflect.get(u(n,i)&&i in r?n:r,i,a)}var Et={get:Tt(!1,!1)},Dt={get:Tt(!1,!0)},Ot={get:Tt(!0,!1)},kt=new WeakMap,At=new WeakMap,jt=new WeakMap,Mt=new WeakMap;function Nt(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 2;default:return 0}}function Pt(e){return zt(e)?e:Lt(e,!1,_t,Et,kt)}function Ft(e){return Lt(e,!1,yt,Dt,At)}function It(e){return Lt(e,!0,vt,Ot,jt)}function Lt(e,t,n,r,i){if(!v(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let a=i.get(e);if(a)return a;let o=Nt(S(e));if(o===0)return e;let s=new Proxy(e,o===2?r:n);return i.set(e,s),s}function Rt(e){return zt(e)?Rt(e.__v_raw):!!(e&&e.__v_isReactive)}function zt(e){return!!(e&&e.__v_isReadonly)}function Bt(e){return!!(e&&e.__v_isShallow)}function Vt(e){return e?!!e.__v_raw:!1}function I(e){let t=e&&e.__v_raw;return t?I(t):e}function Ht(e){return!u(e,`__v_skip`)&&Object.isExtensible(e)&&oe(e,`__v_skip`,!0),e}var Ut=e=>v(e)?Pt(e):e,Wt=e=>v(e)?It(e):e;function Gt(e){return e?e.__v_isRef===!0:!1}function L(e){return Kt(e,!1)}function Kt(e,t){return Gt(e)?e:new qt(e,t)}var qt=class{constructor(e,t){this.dep=new qe,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=t?e:I(e),this._value=t?e:Ut(e),this.__v_isShallow=t}get value(){return this.dep.track(),this._value}set value(e){let t=this._rawValue,n=this.__v_isShallow||Bt(e)||zt(e);e=n?e:I(e),O(e,t)&&(this._rawValue=e,this._value=n?e:Ut(e),this.dep.trigger())}};function R(e){return Gt(e)?e.value:e}var Jt={get:(e,t,n)=>t===`__v_raw`?e:R(Reflect.get(e,t,n)),set:(e,t,n,r)=>{let i=e[t];return Gt(i)&&!Gt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Yt(e){return Rt(e)?e:new Proxy(e,Jt)}var Xt=class{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new qe(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Ge-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!t,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&P!==this)return je(this,!0),!0}get value(){let e=this.dep.track();return Le(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}};function Zt(e,t,n=!1){let r,i;return h(e)?r=e:(r=e.get,i=e.set),new Xt(r,i,n)}var Qt={},$t=new WeakMap,en=void 0;function tn(e,t=!1,n=en){if(n){let t=$t.get(n);t||$t.set(n,t=[]),t.push(e)}}function nn(e,n,i=t){let{immediate:a,deep:o,once:s,scheduler:l,augmentJob:u,call:f}=i,p=e=>o?e:Bt(e)||o===!1||o===0?rn(e,1):rn(e),m,g,_,v,y=!1,b=!1;if(Gt(e)?(g=()=>e.value,y=Bt(e)):Rt(e)?(g=()=>p(e),y=!0):d(e)?(b=!0,y=e.some(e=>Rt(e)||Bt(e)),g=()=>e.map(e=>{if(Gt(e))return e.value;if(Rt(e))return p(e);if(h(e))return f?f(e,2):e()})):g=h(e)?n?f?()=>f(e,2):e:()=>{if(_){He();try{_()}finally{Ue()}}let t=en;en=m;try{return f?f(e,3,[v]):e(v)}finally{en=t}}:r,n&&o){let e=g,t=o===!0?1/0:o;g=()=>rn(e(),t)}let x=Te(),S=()=>{m.stop(),x&&x.active&&c(x.effects,m)};if(s&&n){let e=n;n=(...t)=>{try{return e(...t)}finally{S()}}}let C=b?Array(e.length).fill(Qt):Qt,w=e=>{if(m.flags&1&&(m.dirty||e)){if(n){let t=m.run();if(e||o||y||(b?t.some((e,t)=>O(e,C[t])):O(t,C))){let e=en;He();try{_&&_(),en=m;let e=[t,C===Qt?void 0:b&&C[0]===Qt?[]:C,v];C=t,f?f(n,3,e):n(...e)}finally{en=e,Ue()}}}else m.run()}};return u&&u(w),m=new De(g),m.scheduler=l?()=>l(w,!1):w,v=e=>tn(e,!1,m),_=m.onStop=()=>{let e=$t.get(m);if(e){if(f)f(e,4);else for(let t of e)t();$t.delete(m)}},n?a?w(!0):C=m.run():l?l(w.bind(null,!0),!0):m.run(),S.pause=m.pause.bind(m),S.resume=m.resume.bind(m),S.stop=S,S}function rn(e,t=1/0,n){if(t<=0||!v(e)||e.__v_skip||(n||=new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Gt(e))rn(e.value,t,n);else if(d(e))for(let r=0;r<e.length;r++)rn(e[r],t,n);else if(p(e)||f(e))e.forEach(e=>{rn(e,t,n)});else if(C(e)){for(let r in e)rn(e[r],t,n);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&rn(e[r],t,n)}return e}function an(e,t,n,r){try{return r?e(...r):e()}catch(e){sn(e,t,n)}}function on(e,t,n,r){if(h(e)){let i=an(e,t,n,r);return i&&y(i)&&i.catch(e=>{sn(e,t,n)}),i}if(d(e)){let i=[];for(let a=0;a<e.length;a++)i.push(on(e[a],t,n,r));return i}}function sn(e,n,r,i=!0){let a=n?n.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=n&&n.appContext.config||t;if(n){let t=n.parent,i=n.proxy,a=`https://vuejs.org/error-reference/#runtime-${r}`;for(;t;){let n=t.ec;if(n){for(let t=0;t<n.length;t++)if(n[t](e,i,a)===!1)return}t=t.parent}if(o){He(),an(o,null,10,[e,i,a]),Ue();return}}cn(e,r,a,i,s)}function cn(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}var ln=[],un=-1,dn=[],fn=null,pn=0,mn=Promise.resolve(),hn=null;function gn(e){let t=hn||mn;return e?t.then(this?e.bind(this):e):t}function _n(e){let t=un+1,n=ln.length;for(;t<n;){let r=t+n>>>1,i=ln[r],a=Tn(i);a<e||a===e&&i.flags&2?t=r+1:n=r}return t}function vn(e){if(!(e.flags&1)){let t=Tn(e),n=ln[ln.length-1];!n||!(e.flags&2)&&t>=Tn(n)?ln.push(e):ln.splice(_n(t),0,e),e.flags|=1,yn()}}function yn(){hn||=mn.then(En)}function bn(e){if(!d(e))fn&&e.id===-1?fn.splice(pn+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]);yn()}function xn(e,t,n,r=un+1){for(;r<ln.length;r++){let n=ln[r];if(n&&n.flags&2){if(e&&n.id!==e.uid||t!==void 0&&!(n.id>=t))continue;ln.splice(r,1),r=e?r-1:un,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Sn(e,t,n=0){if(dn.length){let e=dn,r=0;if(t){e=[];for(let i=0;i<dn.length;i++){let a=dn[i];(a.i===void 0?t.has(a):!a.i||a.i.uid<n)?dn[r++]=a:e.push(a)}}let i=[...new Set(e)].sort((e,t)=>Tn(e)-Tn(t));if(dn.length=r,fn){for(let e=0;e<i.length;e++)fn.push(i[e]);return}for(fn=i,pn=0;pn<fn.length;pn++){let e=fn[pn];e.flags&4&&(e.flags&=-2),e.flags&8||e(),e.flags&=-2}fn=null,pn=0}}var Cn=!1;function wn(e,t){if(Cn){e();return}let n=t===void 0?void 0:new Set(dn);e(),Cn=!0;try{xn(void 0,t),Sn(void 0,n,t)}finally{Cn=!1}}var Tn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function En(e){try{for(un=0;un<ln.length;un++){let e=ln[un];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),an(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;un<ln.length;un++){let e=ln[un];e&&(e.flags&=-2)}un=-1,ln.length=0,Sn(e),hn=null,(ln.length||dn.length)&&En(e)}}var Dn=null,On=null;function kn(e){let t=Dn;return Dn=e,On=e&&e.type.__scopeId||null,t}function An(e,t=Dn,n){if(!t||e._n)return e;let r=(...n)=>{r._d&&ta(-1);let i=kn(t),a=Zi.length,o;try{o=e(...n)}finally{for(let e=Zi.length;e>a;e--)$i();kn(i),r._d&&ta(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function jn(e,n){if(Dn===null)return e;let r=Pa(Dn),i=e.dirs||=[];for(let e=0;e<n.length;e++){let[a,o,s,c=t]=n[e];a&&(h(a)&&(a={mounted:a,updated:a}),a.deep&&rn(o),i.push({dir:a,instance:r,value:o,oldValue:void 0,arg:s,modifiers:c}))}return e}function Mn(e,t,n,r){let i=e.dirs,a=t&&t.dirs;for(let o=0;o<i.length;o++){let s=i[o];a&&(s.oldValue=a[o].value);let c=s.dir[r];c&&(He(),on(c,n,8,[e.el,s,e,t]),Ue())}}function Nn(e,t){if(ba){let n=ba.provides,r=ba.parent&&ba.parent.provides;r===n&&(n=ba.provides=Object.create(r)),n[e]=t}}function Pn(e,t,n=!1){let r=xa();if(r||ri){let i=ri?ri._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&h(t)?t.call(r&&r.proxy):t}}var Fn=Symbol.for(`v-scx`),In=()=>Pn(Fn);function Ln(e,t,n){return Rn(e,t,n)}function Rn(e,n,i=t){let{immediate:a,deep:o,flush:c,once:l}=i,u=s({},i),d=n&&a||!n&&c!==`post`,f;if(Da){if(c===`sync`){let e=In();f=e.__watcherHandles||=[]}else if(!d){let e=()=>{};return e.stop=r,e.resume=r,e.pause=r,e}}let p=ba;u.call=(e,t,n)=>on(e,p,t,n);let m=!1;c===`post`?u.scheduler=e=>{e.i=p,Fi(e,p&&p.suspense)}:c!==`sync`&&(m=!0,u.scheduler=(e,t)=>{t?e():vn(e)}),u.augmentJob=e=>{n&&(e.flags|=4),m&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};let h=nn(e,n,u);return Da&&(f?f.push(h):d&&h()),h}function zn(e,t,n){let r=this.proxy,i=g(e)?e.includes(`.`)?Bn(r,e):()=>r[e]:e.bind(r,r),a;h(t)?a=t:(a=t.handler,n=t);let o=wa(this),s=Rn(i,a.bind(r),n);return o(),s}function Bn(e,t){let n=t.split(`.`);return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}var Vn=new WeakMap,Hn=Symbol(`_vte`),Un=e=>e.__isTeleport,Wn=e=>e&&(e.disabled||e.disabled===``),Gn=e=>e&&(e.defer||e.defer===``),Kn=e=>typeof SVGElement<`u`&&e instanceof SVGElement,qn=e=>typeof MathMLElement==`function`&&e instanceof MathMLElement,Jn=(e,t)=>{let n=e&&e.to;return g(n)?t?t(n):null:n},Yn={name:`Teleport`,__isTeleport:!0,process(e,t,n,r,i,a,o,s,c,l){let{mc:u,pc:d,pbc:f,o:{insert:p,querySelector:m,createText:h,createComment:g,parentNode:_}}=l,v=Wn(t.props),{dynamicChildren:y}=t,b=(e,t,n)=>{e.shapeFlag&16&&u(e.children,t,n,i,a,o,s,c)},x=(e=t)=>{let n=Wn(e.props),r=e.target=Jn(e.props,m),a=er(r,e,h,p);r&&(o!==`svg`&&Kn(r)?o=`svg`:o!==`mathml`&&qn(r)&&(o=`mathml`),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),$n(e,!1)))},S=e=>{let t=()=>{if(Vn.get(e)===t){if(Vn.delete(e),Wn(e.props)){let t=_(e.el)||n;b(e,t,e.anchor),$n(e,!0)}x(e)}};Vn.set(e,t),Fi(t,a)};if(e==null){let e=t.el=h(``),i=t.anchor=h(``);if(p(e,n,r),p(i,n,r),Gn(t.props)||a&&a.pendingBranch){S(t);return}v&&(b(t,n,i),$n(t,!0)),x()}else{t.el=e.el;let r=t.anchor=e.anchor,u=Vn.get(e);if(u){u.flags|=8,Vn.delete(e),S(t);return}t.targetStart=e.targetStart;let p=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=Wn(e.props),_=g?n:p,b=g?r:h;if(o===`svg`||Kn(p)?o=`svg`:(o===`mathml`||qn(p))&&(o=`mathml`),y?(f(e.dynamicChildren,y,_,i,a,o,s),Vi(e,t,!0)):c||d(e,t,_,b,i,a,o,s,!1),v)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Xn(t,n,r,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){let e=Jn(t.props,m);e&&(t.target=e,Xn(t,e,null,l,0))}else g&&Xn(t,p,h,l,1);$n(t,v)}},remove(e,t,n,{um:r,o:{remove:i}},a){let{shapeFlag:o,children:s,anchor:c,targetStart:l,targetAnchor:u,target:d,props:f}=e,p=Wn(f),m=a||!p,h=Vn.get(e);if(h&&(h.flags|=8,Vn.delete(e)),d&&(i(l),i(u)),a&&i(c),!h&&(p||d)&&o&16)for(let e=0;e<s.length;e++){let i=s[e];r(i,t,n,m,!!i.dynamicChildren)}},move:Xn,hydrate:Zn};function Xn(e,t,n,{o:{insert:r},m:i},a=2){a===0&&(e.targetStart&&r(e.targetStart,t,n),r(e.targetAnchor,t,n),n=e.targetAnchor);let{el:o,anchor:s,shapeFlag:c,children:l,props:u}=e,d=a===2;if(d&&r(o,t,n),!Vn.has(e)&&(!d||Wn(u))&&c&16)for(let e=0;e<l.length;e++)i(l[e],t,n,2);d&&r(s,t,n)}function Zn(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:c,insert:l,createText:u}},d){function f(e,n){let r=n;for(;r;){if(r&&r.nodeType===8){if(r.data===`teleport start anchor`)t.targetStart=r;else if(r.data===`teleport anchor`){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}let m=t.target=Jn(t.props,c),h=Wn(t.props);if(m){let c=m._lpa||m.firstChild;t.shapeFlag&16&&(h?(p(e,t),f(m,c),t.targetAnchor||er(m,t,u,l,s(e)===m?e:null)):(t.anchor=o(e),f(m,c),t.targetAnchor||er(m,t,u,l),d(c&&o(c),t,m,n,r,i,a))),$n(t,h)}else h&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}var Qn=Yn;function $n(e,t){let n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute(`data-v-owner`,n.uid),r=r.nextSibling;n.ut()}}function er(e,t,n,r,i=null){let a=t.targetStart=n(``),o=t.targetAnchor=n(``);return a[Hn]=o,e&&(r(a,e,i),r(o,e,i)),o}var tr=Symbol(`_leaveCb`);function nr(e){let t=e[0];if(e.length>1){for(let n of e)if(n.type!==Yi){t=n;break}}return t}function rr(e){if(!fr(e))return Un(e.type)&&e.children?nr(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&h(n.default))return n.default()}}function ir(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let n=e.component.subTree;ir(Un(n.type)&&rr(n)||n,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===B&&d(e.children)){let n=ui(e.children,!1);n&&ir(n,t)}}function ar(e){if(e.component)return ar(e.component.subTree);if(e.type===B){let t=d(e.children)&&ui(e.children,!1);return t?ar(t):void 0}if(e.type!==Yi)return e}function or(e){e.ids=[e.ids[0]+e.ids[2]+++`-`,0,0]}function sr(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}var cr=new WeakMap;function lr(e,n,r,a,o=!1){if(d(e)){e.forEach((e,t)=>lr(e,n&&(d(n)?n[t]:n),r,a,o));return}if(dr(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&lr(e,n,r,a.component.subTree);return}let s=a.shapeFlag&4?Pa(a.component):a.el,l=o?null:s,{i:f,r:p}=e,m=n&&n.r,_=f.refs===t?f.refs={}:f.refs,v=f.setupState,y=I(v),b=v===t?i:e=>!sr(_,e)&&u(y,e),x=(e,t)=>!(t&&sr(_,t));if(m!=null&&m!==p){if(ur(n),g(m))_[m]=null,b(m)&&(v[m]=null);else if(Gt(m)){let e=n;x(m,e.k)&&(m.value=null),e.k&&(_[e.k]=null)}}if(h(p))an(p,f,12,[l,_]);else{let t=g(p),n=Gt(p);if(t||n){let i=()=>{if(e.f){let n=t?b(p)?v[p]:_[p]:x(p)||!e.k?p.value:_[e.k];if(o)d(n)&&c(n,s);else if(d(n))n.includes(s)||n.push(s);else if(t)_[p]=[s],b(p)&&(v[p]=_[p]);else{let t=[s];x(p,e.k)&&(p.value=t),e.k&&(_[e.k]=t)}}else t?(_[p]=l,b(p)&&(v[p]=l)):n&&(x(p,e.k)&&(p.value=l),e.k&&(_[e.k]=l))};if(l){let t=()=>{i(),cr.delete(e)};t.id=-1,cr.set(e,t),Fi(t,r)}else ur(e),i()}}}function ur(e){let t=cr.get(e);t&&(t.flags|=8,cr.delete(e))}le().requestIdleCallback,le().cancelIdleCallback;var dr=e=>!!e.type.__asyncLoader,fr=e=>e.type.__isKeepAlive;function pr(e,t){hr(e,`a`,t)}function mr(e,t){hr(e,`da`,t)}function hr(e,t,n=ba){let r=e.__wdc||=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()};if(_r(t,r,n),n){let e=n.parent;for(;e&&e.parent;)fr(e.parent.vnode)&&gr(r,t,n,e),e=e.parent}}function gr(e,t,n,r){let i=_r(t,e,r,!0);wr(()=>{c(r[t],i)},n)}function _r(e,t,n=ba,r=!1){if(n){let i=n[e]||(n[e]=[]),a=t.__weh||=(...r)=>{He();let i=wa(n),a=on(t,n,e,r);return i(),Ue(),a};return r?i.unshift(a):i.push(a),a}}var vr=e=>(t,n=ba)=>{(!Da||e===`sp`)&&_r(e,(...e)=>t(...e),n)},yr=vr(`bm`),br=vr(`m`),xr=vr(`bu`),Sr=vr(`u`),Cr=vr(`bum`),wr=vr(`um`),Tr=vr(`sp`),Er=vr(`rtg`),Dr=vr(`rtc`);function Or(e,t=ba){_r(`ec`,e,t)}var kr=`components`;function Ar(e,t){return Mr(kr,e,!0,t)||e}var jr=Symbol.for(`v-ndc`);function Mr(e,t,n=!0,r=!1){let i=Dn||ba;if(i){let n=i.type;if(e===kr){let e=Fa(n,!1);if(e&&(e===t||e===E(t)||e===re(E(t))))return n}let a=Nr(i[e]||n[e],t)||Nr(i.appContext[e],t);return!a&&r?n:a}}function Nr(e,t){return e&&(e[t]||e[E(t)]||e[re(E(t))])}function z(e,t,n,r){let i,a=n&&n[r],o=d(e);if(o||g(e)){let n=o&&Rt(e),r=!1,s=!1;n&&(r=!Bt(e),s=zt(e),e=nt(e)),i=Array(e.length);for(let n=0,o=e.length;n<o;n++)i[n]=t(r?s?Wt(Ut(e[n])):Ut(e[n]):e[n],n,void 0,a&&a[n])}else if(typeof e==`number`){if(!Number.isInteger(e)||e<0)i=[];else{i=Array(e);for(let n=0;n<e;n++)i[n]=t(n+1,n,void 0,a&&a[n])}}else if(v(e)){if(e[Symbol.iterator])i=Array.from(e,(e,n)=>t(e,n,void 0,a&&a[n]));else{let n=Object.keys(e);i=Array(n.length);for(let r=0,o=n.length;r<o;r++){let o=n[r];i[r]=t(e[o],o,r,a&&a[r])}}}else i=[];return n&&(n[r]=i),i}var Pr=e=>e?Ea(e)?Pa(e):Pr(e.parent):null,Fr=s(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=>Pr(e.parent),$root:e=>Pr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Wr(e),$forceUpdate:e=>e.f||=()=>{vn(e.update)},$nextTick:e=>e.n||=gn.bind(e.proxy),$watch:e=>zn.bind(e)}),Ir=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),Lr={get({_:e},n){if(n===`__v_skip`)return!0;let{ctx:r,setupState:i,data:a,props:o,accessCache:s,type:c,appContext:l}=e;if(n[0]!==`$`){let e=s[n];if(e!==void 0)switch(e){case 1:return i[n];case 2:return a[n];case 4:return r[n];case 3:return o[n]}else if(Ir(i,n))return s[n]=1,i[n];else if(a!==t&&u(a,n))return s[n]=2,a[n];else if(u(o,n))return s[n]=3,o[n];else if(r!==t&&u(r,n))return s[n]=4,r[n];else zr&&(s[n]=0)}let d=Fr[n],f,p;if(d)return n===`$attrs`&&$e(e.attrs,`get`,``),d(e);if((f=c.__cssModules)&&(f=f[n]))return f;if(r!==t&&u(r,n))return s[n]=4,r[n];if(p=l.config.globalProperties,u(p,n))return p[n]},set({_:e},n,r){let{data:i,setupState:a,ctx:o}=e;return Ir(a,n)?(a[n]=r,!0):i!==t&&u(i,n)?(i[n]=r,!0):u(e.props,n)||n[0]===`$`&&n.slice(1)in e?!1:(o[n]=r,!0)},has({_:{data:e,setupState:n,accessCache:r,ctx:i,appContext:a,props:o,type:s}},c){let l;return!!(r[c]||e!==t&&c[0]!==`$`&&u(e,c)||Ir(n,c)||u(o,c)||u(i,c)||u(Fr,c)||u(a.config.globalProperties,c)||(l=s.__cssModules)&&l[c])},defineProperty(e,t,n){return n.get==null?u(n,`value`)&&this.set(e,t,n.value,null):e._.accessCache[t]=0,Reflect.defineProperty(e,t,n)}};function Rr(e){return d(e)?e.reduce((e,t)=>(e[t]=null,e),{}):e}var zr=!0;function Br(e){let t=Wr(e),n=e.proxy,i=e.ctx;zr=!1,t.beforeCreate&&Hr(t.beforeCreate,e,`bc`);let{data:a,computed:o,methods:s,watch:c,provide:l,inject:u,created:f,beforeMount:p,mounted:m,beforeUpdate:g,updated:_,activated:y,deactivated:b,beforeDestroy:x,beforeUnmount:S,destroyed:C,unmounted:w,render:ee,renderTracked:te,renderTriggered:T,errorCaptured:E,serverPrefetch:ne,expose:D,inheritAttrs:re,components:ie,directives:O,filters:ae}=t;if(u&&Vr(u,i,null),s)for(let e in s){let t=s[e];h(t)&&(i[e]=t.bind(n))}if(a){let t=a.call(n,n);v(t)&&(e.data=Pt(t))}if(zr=!0,o)for(let e in o){let t=o[e],a=q({get:h(t)?t.bind(n,n):h(t.get)?t.get.bind(n,n):r,set:!h(t)&&h(t.set)?t.set.bind(n):r});Object.defineProperty(i,e,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(c)for(let e in c)Ur(c[e],i,n,e);if(l){let e=h(l)?l.call(n):l;Reflect.ownKeys(e).forEach(t=>{Nn(t,e[t])})}f&&Hr(f,e,`c`);function oe(e,t){d(t)?t.forEach(t=>e(t.bind(n))):t&&e(t.bind(n))}if(oe(yr,p),oe(br,m),oe(xr,g),oe(Sr,_),oe(pr,y),oe(mr,b),oe(Or,E),oe(Dr,te),oe(Er,T),oe(Cr,S),oe(wr,w),oe(Tr,ne),d(D)){if(D.length){let t=e.exposed||={};D.forEach(e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})})}else e.exposed||={}}ee&&e.render===r&&(e.render=ee),re!=null&&(e.inheritAttrs=re),ie&&(e.components=ie),O&&(e.directives=O),ne&&or(e)}function Vr(e,t,n=r){d(e)&&(e=Yr(e));for(let n in e){let r=e[n],i;i=v(r)?`default`in r?Pn(r.from||n,r.default,!0):Pn(r.from||n):Pn(r),Gt(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}function Hr(e,t,n){on(d(e)?e.map(e=>e.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ur(e,t,n,r){let i=r.includes(`.`)?Bn(n,r):()=>n[r];if(g(e)){let n=t[e];h(n)&&Ln(i,n)}else if(h(e))Ln(i,e.bind(n));else if(v(e)){if(d(e))e.forEach(e=>Ur(e,t,n,r));else{let r=h(e.handler)?e.handler.bind(n):t[e.handler];h(r)&&Ln(i,r,e)}}}function Wr(e){let t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t),c;return s?c=s:!i.length&&!n&&!r?c=t:(c={},i.length&&i.forEach(e=>Gr(c,e,o,!0)),Gr(c,t,o)),v(t)&&a.set(t,c),c}function Gr(e,t,n,r=!1){let{mixins:i,extends:a}=t;a&&Gr(e,a,n,!0),i&&i.forEach(t=>Gr(e,t,n,!0));for(let i in t)if(!(r&&i===`expose`)){let r=Kr[i]||n&&n[i];e[i]=r?r(e[i],t[i]):t[i]}return e}var Kr={data:qr,props:Qr,emits:Qr,methods:Zr,computed:Zr,beforeCreate:Xr,created:Xr,beforeMount:Xr,mounted:Xr,beforeUpdate:Xr,updated:Xr,beforeDestroy:Xr,beforeUnmount:Xr,destroyed:Xr,unmounted:Xr,activated:Xr,deactivated:Xr,errorCaptured:Xr,serverPrefetch:Xr,components:Zr,directives:Zr,watch:$r,provide:qr,inject:Jr};function qr(e,t){return t?e?function(){return s(h(e)?e.call(this,this):e,h(t)?t.call(this,this):t)}:t:e}function Jr(e,t){return Zr(Yr(e),Yr(t))}function Yr(e){if(d(e)){let t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Xr(e,t){return e?[...new Set([].concat(e,t))]:t}function Zr(e,t){return e?s(Object.create(null),e,t):t}function Qr(e,t){return e?d(e)&&d(t)?[...new Set([...e,...t])]:s(Object.create(null),Rr(e),Rr(t??{})):t}function $r(e,t){if(!e)return t;if(!t)return e;let n=s(Object.create(null),e);for(let r in t)n[r]=Xr(e[r],t[r]);return n}function ei(){return{app:null,config:{isNativeTag:i,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}}var ti=0;function ni(e,t){return function(n,r=null){h(n)||(n=s({},n)),r!=null&&!v(r)&&(r=null);let i=ei(),a=new WeakSet,o=[],c=!1,l=i.app={_uid:ti++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:La,get config(){return i.config},set config(e){},use(e,...t){return a.has(e)||(e&&h(e.install)?(a.add(e),e.install(l,...t)):h(e)&&(a.add(e),e(l,...t))),l},mixin(e){return i.mixins.includes(e)||i.mixins.push(e),l},component(e,t){return t?(i.components[e]=t,l):i.components[e]},directive(e,t){return t?(i.directives[e]=t,l):i.directives[e]},mount(a,o,s){if(!c){let u=l._ceVNode||W(n,r);return u.appContext=i,s===!0?s=`svg`:s===!1&&(s=void 0),o&&t?t(u,a):e(u,a,s),c=!0,l._container=a,a.__vue_app__=l,Pa(u.component)}},onUnmount(e){o.push(e)},unmount(){c&&(on(o,l._instance,16),e(null,l._container),delete l._container.__vue_app__)},provide(e,t){return i.provides[e]=t,l},runWithContext(e){let t=ri;ri=l;try{return e()}finally{ri=t}}};return l}}var ri=null,ii=(e,t)=>t===`modelValue`||t===`model-value`?e.modelModifiers:e[`${t}Modifiers`]||e[`${E(t)}Modifiers`]||e[`${D(t)}Modifiers`];function ai(e,n,...r){if(e.isUnmounted)return;let i=e.vnode.props||t,a=r,o=n.startsWith(`update:`),s=o&&ii(i,n.slice(7));s&&(s.trim&&(a=r.map(e=>g(e)?e.trim():e)),s.number&&(a=a.map(se)));let c,l=i[c=ie(n)]||i[c=ie(E(n))];!l&&o&&(l=i[c=ie(D(n))]),l&&on(l,e,6,a);let u=i[c+`Once`];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[c])return;e.emitted[c]=!0,on(u,e,6,a)}}var oi=new WeakMap;function si(e,t,n=!1){let r=n?oi:t.emitsCache,i=r.get(e);if(i!==void 0)return i;let a=e.emits,o={},c=!1;if(!h(e)){let r=e=>{let n=si(e,t,!0);n&&(c=!0,s(o,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return!a&&!c?(v(e)&&r.set(e,null),null):(d(a)?a.forEach(e=>o[e]=null):s(o,a),v(e)&&r.set(e,o),o)}function ci(e,t){return!e||!a(t)?!1:(t=t.slice(2),t=t===`Once`?t:t.replace(/Once$/,``),u(e,t[0].toLowerCase()+t.slice(1))||u(e,D(t))||u(e,t))}function li(e){let{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[a],slots:s,attrs:c,emit:l,render:u,renderCache:d,props:f,data:p,setupState:m,ctx:h,inheritAttrs:g}=e,_=kn(e),v,y;try{if(n.shapeFlag&4){let e=i||r,t=e;v=da(u.call(t,e,d,f,m,p,h)),y=c}else{let e=t;v=da(e.length>1?e(f,{attrs:c,slots:s,emit:l}):e(f,null)),y=t.props?c:di(c)}}catch(t){Zi.length=0,sn(t,e,1),v=W(Yi)}let b=v;if(y&&g!==!1){let e=Object.keys(y),{shapeFlag:t}=b;e.length&&t&7&&(a&&e.some(o)&&(y=fi(y,a)),b=ua(b,y,!1,!0))}return n.dirs&&(b=ua(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&ir(Un(b.type)&&rr(b)||b,n.transition),v=b,kn(_),v}function ui(e,t=!0){let n;for(let t=0;t<e.length;t++){let r=e[t];if(ia(r)){if(r.type!==Yi||r.children===`v-if`){if(n)return;n=r}}else return}return n}var di=e=>{let t;for(let n in e)(n===`class`||n===`style`||a(n))&&((t||={})[n]=e[n]);return t},fi=(e,t)=>{let n={};for(let r in e)(!o(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function pi(e,t,n){let{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:c}=t,l=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?mi(r,o,l):!!o;if(c&8){let e=t.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t];if(hi(o,r,n)&&!ci(l,n))return!0}}}else return(i||s)&&(!s||!s.$stable)?!0:r===o?!1:r?!o||mi(r,o,l):!!o;return!1}function mi(e,t,n){let r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){let a=r[i];if(!u(e,a)||hi(t,e,a)&&!ci(n,a))return!0}return!1}function hi(e,t,n){let r=e[n],i=t[n];return n===`style`&&v(r)&&v(i)?!be(r,i):r!==i}function gi({vnode:e,parent:t,suspense:n},r){for(;t;){let n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n===e)(e=t.vnode).el=r,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=r)}var _i={},vi=()=>Object.create(_i),yi=e=>Object.getPrototypeOf(e)===_i;function bi(e,t,n,r=!1){let i={},a=vi();e.propsDefaults=Object.create(null),Si(e,t,i,a);for(let t in e.propsOptions[0])t in i||(i[t]=void 0);e.props=n?r?i:Ft(i):e.type.props?i:a,e.attrs=a}function xi(e,t,n,r){let{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=I(i),[c]=e.propsOptions,l=!1;if((r||o>0)&&!(o&16)){if(o&8){let n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let o=n[r];if(ci(e.emitsOptions,o))continue;let d=t[o];if(c){if(u(a,o))d!==a[o]&&(a[o]=d,l=!0);else{let t=E(o);i[t]=Ci(c,s,t,d,e,!1)}}else d!==a[o]&&(a[o]=d,l=!0)}}}else{Si(e,t,i,a)&&(l=!0);let r;for(let a in s)(!t||!u(t,a)&&((r=D(a))===a||!u(t,r)))&&(c?n&&(n[a]!==void 0||n[r]!==void 0)&&(i[a]=Ci(c,s,a,void 0,e,!0)):delete i[a]);if(a!==s)for(let e in a)(!t||!u(t,e))&&(delete a[e],l=!0)}l&&et(e.attrs,`set`,``)}function Si(e,n,r,i){let[a,o]=e.propsOptions,s=!1,c;if(n)for(let t in n){if(ee(t))continue;let l=n[t],d;a&&u(a,d=E(t))?!o||!o.includes(d)?r[d]=l:(c||={})[d]=l:ci(e.emitsOptions,t)||(!(t in i)||l!==i[t])&&(i[t]=l,s=!0)}if(o){let n=I(r),i=c||t;for(let t=0;t<o.length;t++){let s=o[t];r[s]=Ci(a,n,s,i[s],e,!u(i,s))}}return s}function Ci(e,t,n,r,i,a){let o=e[n];if(o!=null){let e=u(o,`default`);if(e&&r===void 0){let e=o.default;if(o.type!==Function&&!o.skipFactory&&h(e)){let{propsDefaults:a}=i;if(n in a)r=a[n];else{let o=wa(i);r=a[n]=e.call(null,t),o()}}else r=e;i.ce&&i.ce._setProp(n,r)}o[0]&&(a&&!e?r=!1:o[1]&&(r===``||r===D(n))&&(r=!0))}return r}var wi=new WeakMap;function Ti(e,r,i=!1){let a=i?wi:r.propsCache,o=a.get(e);if(o)return o;let c=e.props,l={},f=[],p=!1;if(!h(e)){let t=e=>{p=!0;let[t,n]=Ti(e,r,!0);s(l,t),n&&f.push(...n)};!i&&r.mixins.length&&r.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!c&&!p)return v(e)&&a.set(e,n),n;if(d(c))for(let e=0;e<c.length;e++){let n=E(c[e]);Ei(n)&&(l[n]=t)}else if(c)for(let e in c){let t=E(e);if(Ei(t)){let n=c[e],r=l[t]=d(n)||h(n)?{type:n}:s({},n),i=r.type,a=!1,o=!0;if(d(i))for(let e=0;e<i.length;++e){let t=i[e],n=h(t)&&t.name;if(n===`Boolean`){a=!0;break}n===`String`&&(o=!1)}else a=h(i)&&i.name===`Boolean`;r[0]=a,r[1]=o,(a||u(r,`default`))&&f.push(t)}}let m=[l,f];return v(e)&&a.set(e,m),m}function Ei(e){return e[0]!==`$`&&!ee(e)}var Di=e=>e===`_`||e===`_ctx`||e===`$stable`,Oi=e=>d(e)?e.map(da):[da(e)],ki=(e,t,n)=>{if(t._n)return t;let r=An((...e)=>Oi(t(...e)),n);return r._c=!1,r},Ai=(e,t,n)=>{let r=e._ctx;for(let n in e){if(Di(n))continue;let i=e[n];if(h(i))t[n]=ki(n,i,r);else if(i!=null){let e=Oi(i);t[n]=()=>e}}},ji=(e,t)=>{let n=Oi(t);e.slots.default=()=>n},Mi=(e,t,n)=>{for(let r in t)(n||!Di(r))&&(e[r]=t[r])},Ni=(e,t,n)=>{let r=e.slots=vi();if(e.vnode.shapeFlag&32){let e=t._;e?(Mi(r,t,n),n&&oe(r,`_`,e,!0)):Ai(t,r)}else t&&ji(e,t)},Pi=(e,n,r)=>{let{vnode:i,slots:a}=e,o=!0,s=t;if(i.shapeFlag&32){let e=n._;e?r&&e===1?o=!1:Mi(a,n,r):(o=!n.$stable,Ai(n,a)),s=n}else n&&(ji(e,n),s={default:1});if(o)for(let e in a)!Di(e)&&s[e]==null&&delete a[e]},Fi=qi;function Ii(e){return Li(e)}function Li(e,i){let a=le();a.__VUE__=!0;let{insert:o,remove:s,patchProp:c,createElement:l,createText:u,createComment:d,setText:f,setElementText:p,parentNode:m,nextSibling:h,setScopeId:g=r,insertStaticContent:_}=e,v=(e,t,r,i=null,a=null,o=null,s=void 0,c=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!aa(e,t)&&(i=ve(e),A(e,a,o,!0),e=null),t.patchFlag===-2&&(l=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===n&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);let{type:u,ref:d,shapeFlag:f}=t;switch(u){case Ji:y(e,t,r,i);break;case Yi:b(e,t,r,i);break;case Xi:e??x(t,r,i,s);break;case B:ie(e,t,r,i,a,o,s,c,l);break;default:f&1?w(e,t,r,i,a,o,s,c,l):f&6?O(e,t,r,i,a,o,s,c,l):(f&64||f&128)&&u.process(e,t,r,i,a,o,s,c,l,be)}d!=null&&a?lr(d,e&&e.ref,o,t||e,!t):d==null&&e&&e.ref!=null&&lr(e.ref,null,o,e,!0)},y=(e,t,n,r)=>{if(e==null)o(t.el=u(t.children),n,r);else{let n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},b=(e,t,n,r)=>{e==null?o(t.el=d(t.children||``),n,r):t.el=e.el},x=(e,t,n,r)=>{[e.el,e.anchor]=_(e.children,t,n,r,e.el,e.anchor)},S=({el:e,anchor:t},n,r)=>{let i;for(;e&&e!==t;)i=h(e),o(e,n,r),e=i;o(t,n,r)},C=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),s(e),e=n;s(t)},w=(e,t,n,r,i,a,o,s,c)=>{if(t.type===`svg`?o=`svg`:t.type===`math`&&(o=`mathml`),e==null)te(t,n,r,i,a,o,s,c);else{let n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),ne(e,t,i,a,o,s,c)}finally{n&&n._endPatch()}}},te=(e,t,n,r,i,a,s,u)=>{let d,f,{props:m,shapeFlag:h,transition:g,dirs:_}=e;if(d=e.el=l(e.type,a,m&&m.is,m),h&8?p(d,e.children):h&16&&E(e.children,d,null,r,i,Ri(e,a),s,u),_&&Mn(e,null,r,`created`),T(d,e,e.scopeId,s,r),m){for(let e in m)e!==`value`&&!ee(e)&&c(d,e,null,m[e],a,r);`value`in m&&c(d,`value`,null,m.value,a),(f=m.onVnodeBeforeMount)&&ha(f,r,e)}_&&Mn(e,null,r,`beforeMount`);let v=Bi(i,g);v&&g.beforeEnter(d),o(d,t,n),((f=m&&m.onVnodeMounted)||v||_)&&Fi(()=>{try{f&&ha(f,r,e),v&&g.enter(d),_&&Mn(e,null,r,`mounted`)}finally{}},i)},T=(e,t,n,r,i)=>{if(n&&g(e,n),r)for(let t=0;t<r.length;t++)g(e,r[t]);if(i){let n=i.subTree;if(t===n||Ki(n.type)&&(n.ssContent===t||n.ssFallback===t)){let t=i.vnode;T(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},E=(e,t,n,r,i,a,o,s,c=0)=>{for(let l=c;l<e.length;l++){let c=e[l]=s?fa(e[l]):da(e[l]);v(null,c,t,n,r,i,a,o,s)}},ne=(e,n,r,i,a,o,s)=>{let l=n.el=e.el,{patchFlag:u,dynamicChildren:d,dirs:f}=n;u|=e.patchFlag&16;let m=e.props||t,h=n.props||t,g;if(r&&zi(r,!1),(g=h.onVnodeBeforeUpdate)&&ha(g,r,n,e),f&&Mn(n,e,r,`beforeUpdate`),r&&zi(r,!0),d&&(!e.dynamicChildren||e.dynamicChildren.length!==d.length)&&(u=0,s=!1,d=null),(m.innerHTML&&h.innerHTML==null||m.textContent&&h.textContent==null)&&p(l,``),d?D(e.dynamicChildren,d,l,r,i,Ri(n,a),o):s||de(e,n,l,null,r,i,Ri(n,a),o,!1),u>0){if(u&16)re(l,m,h,r,a);else if(u&2&&m.class!==h.class&&c(l,`class`,null,h.class,a),u&4&&c(l,`style`,m.style,h.style,a),u&8){let e=n.dynamicProps;for(let t=0;t<e.length;t++){let n=e[t],i=m[n],o=h[n];(o!==i||n===`value`)&&c(l,n,i,o,a,r)}}u&1&&e.children!==n.children&&p(l,n.children)}else!s&&d==null&&re(l,m,h,r,a);((g=h.onVnodeUpdated)||f)&&Fi(()=>{g&&ha(g,r,n,e),f&&Mn(n,e,r,`updated`)},i)},D=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){let c=e[s],l=t[s],u=c.el||Gi(c),d=u&&(c.type===B||!aa(c,l)||c.shapeFlag&198)?m(u):n;v(c,l,d,null,r,i,a,o,!0)}},re=(e,n,r,i,a)=>{if(n!==r){if(n!==t)for(let t in n)!ee(t)&&!(t in r)&&c(e,t,n[t],null,a,i);for(let t in r){if(ee(t))continue;let o=r[t],s=n[t];o!==s&&t!==`value`&&c(e,t,s,o,a,i)}`value`in r&&c(e,`value`,n.value,r.value,a)}},ie=(e,t,n,r,i,a,s,c,l)=>{let d=t.el=e?e.el:u(``),f=t.anchor=e?e.anchor:u(``),{patchFlag:p,dynamicChildren:m,slotScopeIds:h}=t;h&&(c=c?c.concat(h):h),e==null?(o(d,n,r),o(f,n,r),E(t.children||[],n,f,i,a,s,c,l)):p>0&&p&64&&m&&e.dynamicChildren&&e.dynamicChildren.length===m.length?(D(e.dynamicChildren,m,n,i,a,s,c),(t.key!=null||i&&t===i.subTree)&&Vi(e,t,!0)):de(e,t,n,f,i,a,s,c,l)},O=(e,t,n,r,i,a,o,s,c)=>{t.slotScopeIds=s,e==null?t.shapeFlag&512?i.ctx.activate(t,n,r,o,c):oe(t,n,r,i,a,o,c):se(e,t,c)},oe=(e,t,n,r,i,a,o)=>{let s=e.component=ya(e,r,i);if(fr(e)&&(s.ctx.renderer=be),Oa(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,ce,o,a),!e.el){let r=s.subTree=W(Yi);b(null,r,t,n),e.placeholder=r.el}}else ce(s,e,t,n,i,a,o)},se=(e,t,n)=>{let r=t.component=e.component;if(pi(e,t,n)){if(r.asyncDep&&!r.asyncResolved){t.el=e.el,t.placeholder=e.placeholder,ue(r,t,n);return}r.next=t,r.update()}else t.el=e.el,t.placeholder=e.placeholder,r.vnode=t},ce=(e,t,n,r,i,a,o)=>{let s=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:s,vnode:c}=e;{let n=Ui(e);if(n){t&&(t.el=c.el,ue(e,t,o)),n.asyncDep.then(()=>{Fi(()=>{e.isUnmounted||l()},i)});return}}let u=t,d;zi(e,!1),t?(t.el=c.el,ue(e,t,o)):t=c,n&&ae(n),(d=t.props&&t.props.onVnodeBeforeUpdate)&&ha(d,s,t,c),zi(e,!0);let f=li(e),p=e.subTree;e.subTree=f,v(p,f,m(p.el),ve(p),e,i,a),t.el=f.el,u===null&&gi(e,f.el),r&&Fi(r,i),(d=t.props&&t.props.onVnodeUpdated)&&Fi(()=>ha(d,s,t,c),i)}else{let o,{el:s,props:c}=t,{bm:l,m:u,parent:d,root:f,type:p}=e,m=dr(t);if(zi(e,!1),l&&ae(l),!m&&(o=c&&c.onVnodeBeforeMount)&&ha(o,d,t),zi(e,!0),s&&xe){let t=()=>{e.subTree=li(e),xe(s,e.subTree,e,i,null)};m&&p.__asyncHydrate?p.__asyncHydrate(s,e,t):t()}else{f.ce&&f.ce._hasShadowRoot()&&f.ce._injectChildStyle(p,e.parent?e.parent.type:void 0);let o=e.subTree=li(e);v(null,o,n,r,e,i,a),t.el=o.el}if(u&&Fi(u,i),!m&&(o=c&&c.onVnodeMounted)){let e=t;Fi(()=>ha(o,d,e),i)}(t.shapeFlag&256||d&&dr(d.vnode)&&d.vnode.shapeFlag&256)&&e.a&&Fi(e.a,i),e.isMounted=!0,t=n=r=null}};e.scope.on();let c=e.effect=new De(s);e.scope.off();let l=e.update=c.run.bind(c),u=e.job=c.runIfDirty.bind(c);u.i=e,u.id=e.uid,c.scheduler=()=>vn(u),zi(e,!0),l()},ue=(e,t,n)=>{t.component=e;let r=e.vnode.props;e.vnode=t,e.next=null,xi(e,t.props,r,n),Pi(e,t.children,n),He(),xn(e),Ue()},de=(e,t,n,r,i,a,o,s,c=!1)=>{let l=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:f,shapeFlag:m}=t;if(f>0){if(f&128){k(l,d,n,r,i,a,o,s,c);return}if(f&256){fe(l,d,n,r,i,a,o,s,c);return}}m&8?(u&16&&_e(l,i,a),d!==l&&p(n,d)):u&16?m&16?k(l,d,n,r,i,a,o,s,c):_e(l,i,a,!0):(u&8&&p(n,``),m&16&&E(d,n,r,i,a,o,s,c))},fe=(e,t,r,i,a,o,s,c,l)=>{e||=n,t||=n;let u=e.length,d=t.length,f=Math.min(u,d),p=0;for(;p<f;p++){let n=t[p]=l?fa(t[p]):da(t[p]);v(e[p],n,r,null,a,o,s,c,l)}u>d?_e(e,a,o,!0,!1,f):E(t,r,i,a,o,s,c,l,f)},k=(e,t,r,i,a,o,s,c,l)=>{let u=0,d=t.length,f=e.length-1,p=d-1;for(;u<=f&&u<=p;){let n=e[u],i=t[u]=l?fa(t[u]):da(t[u]);if(aa(n,i))v(n,i,r,null,a,o,s,c,l);else break;u++}for(;u<=f&&u<=p;){let n=e[f],i=t[p]=l?fa(t[p]):da(t[p]);if(aa(n,i))v(n,i,r,null,a,o,s,c,l);else break;f--,p--}if(u>f){if(u<=p){let e=p+1,n=e<d?t[e].el:i;for(;u<=p;)v(null,t[u]=l?fa(t[u]):da(t[u]),r,n,a,o,s,c,l),u++}}else if(u>p)for(;u<=f;)A(e[u],a,o,!0),u++;else{let m=u,h=u,g=new Map;for(u=h;u<=p;u++){let e=t[u]=l?fa(t[u]):da(t[u]);e.key!=null&&g.set(e.key,u)}let _,y=0,b=p-h+1,x=!1,S=0,C=Array(b);for(u=0;u<b;u++)C[u]=0;for(u=m;u<=f;u++){let n=e[u];if(y>=b){A(n,a,o,!0);continue}let i;if(n.key!=null)i=g.get(n.key);else for(_=h;_<=p;_++)if(C[_-h]===0&&aa(n,t[_])){i=_;break}i===void 0?A(n,a,o,!0):(C[i-h]=u+1,i>=S?S=i:x=!0,v(n,t[i],r,null,a,o,s,c,l),y++)}let w=x?Hi(C):n;for(_=w.length-1,u=b-1;u>=0;u--){let e=h+u,n=t[e],f=t[e+1],p=e+1<d?f.el||Gi(f):i;C[u]===0?v(null,n,r,p,a,o,s,c,l):x&&(_<0||u!==w[_]?pe(n,r,p,2):_--)}}},pe=(e,t,n,r,i=null)=>{let{el:a,type:c,transition:l,children:u,shapeFlag:d}=e;if(d&6)pe(e.component.subTree,t,n,r);else if(d&128)e.suspense.move(t,n,r);else if(d&64)c.move(e,t,n,be);else if(c===B){o(a,t,n);for(let e=0;e<u.length;e++)pe(u[e],t,n,r);o(e.anchor,t,n)}else if(c===Xi)S(e,t,n);else if(r!==2&&d&1&&l){if(r===0)l.persisted&&!a[tr]?o(a,t,n):(l.beforeEnter(a),o(a,t,n),Fi(()=>l.enter(a),i));else{let{leave:r,delayLeave:i,afterLeave:c}=l,u=()=>{e.ctx.isUnmounted?s(a):o(a,t,n)},d=()=>{let e=a._isLeaving||!!a[tr];a._isLeaving&&a[tr](!0),l.persisted&&!e?u():r(a,()=>{u(),c&&c()})};i?i(a,u,d):d()}}else o(a,t,n)},A=(e,t,n,r=!1,i=!1)=>{let{type:a,props:o,ref:s,children:c,dynamicChildren:l,shapeFlag:u,patchFlag:d,dirs:f,cacheIndex:p,memo:m}=e;if((d===-2||l&&l.hasOnce)&&(i=!1),s!=null&&(He(),lr(s,null,n,e,!0),Ue()),p!=null&&(!e.ctx||e.ctx===t)&&(t.renderCache[p]=void 0),u&256){t.ctx.deactivate(e);return}let h=u&1&&f,g=!dr(e),_;if(g&&(_=o&&o.onVnodeBeforeUnmount)&&ha(_,t,e),u&6)ge(e.component,n,r);else{if(u&128){e.suspense.unmount(n,r);return}h&&Mn(e,null,t,`beforeUnmount`),u&64?e.type.remove(e,t,n,be,r):l&&!l.hasOnce&&(a!==B||d>0&&d&64)?_e(l,t,n,!1,!0):(a===B&&d&384||!i&&u&16)&&_e(c,t,n),r&&me(e)}let v=m!=null&&p==null;(g&&(_=o&&o.onVnodeUnmounted)||h||v)&&Fi(()=>{_&&ha(_,t,e),h&&Mn(e,null,t,`unmounted`),v&&(e.el=null)},n)},me=e=>{let{type:t,el:n,anchor:r,transition:i}=e,a=t===B;if(a&&!i){he(n,r);return}if(t===Xi){C(e),i&&!i.persisted&&i.afterLeave&&i.afterLeave();return}let o=a?ar(e):e,c=()=>{a?m(n)&&he(n,r):s(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(o&&o.shapeFlag&1&&i&&!i.persisted){let{leave:e,delayLeave:t}=i,n=o.el,r=()=>e(n,c);t?t(n,c,r):r()}else c()},he=(e,t)=>{let n;for(;e!==t;)n=h(e),s(e),e=n;s(t)},ge=(e,t,n)=>{let{bum:r,scope:i,job:a,subTree:o,um:s,m:c,a:l}=e;Wi(c),Wi(l),r&&ae(r),i.stop(),a?(a.flags|=8,A(o,e,t,n)):e.vnode.el&&o&&(o.transition=e.vnode.transition,A(o,e,t,n)),s&&Fi(s,t),Fi(()=>{e.isUnmounted=!0},t)},_e=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)A(e[o],t,n,r,i)},ve=e=>{if(e.shapeFlag&6)return ve(e.component.subTree);if(e.shapeFlag&128)return e.suspense.next();let t=h(e.anchor||e.el),n=t&&t[Hn];return n?h(n):t},ye=(e,t,n)=>{wn(()=>{e==null?t._vnode&&A(t._vnode,null,null,!0):v(t._vnode||null,e,t,null,null,null,n),t._vnode=e},e&&t._vnode?void 0:e&&e.component?e.component.uid:va())},be={p:v,um:A,m:pe,r:me,mt:oe,mc:E,pc:de,pbc:D,n:ve,o:e},j,xe;return i&&([j,xe]=i(be)),{render:ye,hydrate:j,createApp:ni(ye,j)}}function Ri({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 zi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Bi(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vi(e,t,n=!1){let r=e.children,i=t.children;if(d(r)&&d(i))for(let e=0;e<r.length;e++){let t=r[e],a=i[e];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[e]=fa(i[e]),a.el=t.el),!n&&a.patchFlag!==-2&&Vi(t,a)),a.type===Ji&&(a.patchFlag===-1&&(a=i[e]=fa(a)),a.el=t.el),a.type===Yi&&!a.el&&(a.el=t.el)}}function Hi(e){let t=e.slice(),n=[0],r,i,a,o,s,c=e.length;for(r=0;r<c;r++){let c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(a=0,o=n.length-1;a<o;)s=a+o>>1,e[n[s]]<c?a=s+1:o=s;c<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,o=n[a-1];a-->0;)n[a]=o,o=t[o];return n}function Ui(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ui(t)}function Wi(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Gi(e){if(e.placeholder)return e.placeholder;let t=e.component;return t?Gi(t.subTree):null}var Ki=e=>e.__isSuspense;function qi(e,t){t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):bn(e)}var B=Symbol.for(`v-fgt`),Ji=Symbol.for(`v-txt`),Yi=Symbol.for(`v-cmt`),Xi=Symbol.for(`v-stc`),Zi=[],Qi=null;function V(e=!1){Zi.push(Qi=e?null:[])}function $i(){Zi.pop(),Qi=Zi[Zi.length-1]||null}var ea=1;function ta(e,t=!1){ea+=e,e<0&&Qi&&t&&(Qi.hasOnce=!0)}function na(e){return e.dynamicChildren=ea>0?Qi||n:null,$i(),ea>0&&Qi&&Qi.push(e),e}function H(e,t,n,r,i,a){return na(U(e,t,n,r,i,a,!0))}function ra(e,t,n,r,i){return na(W(e,t,n,r,i,!0))}function ia(e){return e?e.__v_isVNode===!0:!1}function aa(e,t){return e.type===t.type&&e.key===t.key}var oa=({key:e})=>e??null,sa=({ref:e,ref_key:t,ref_for:n})=>(typeof e==`number`&&(e=``+e),e==null?null:g(e)||Gt(e)||h(e)?{i:Dn,r:e,k:t,f:!!n}:e);function U(e,t=null,n=null,r=0,i=null,a=e===B?0:1,o=!1,s=!1){let c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&oa(t),ref:t&&sa(t),scopeId:On,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:a,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Dn};return s?(pa(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=g(n)?8:16),ea>0&&!o&&Qi&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&Qi.push(c),c}var W=ca;function ca(e,t=null,n=null,r=0,i=null,a=!1){if((!e||e===jr)&&(e=Yi),ia(e)){let r=ua(e,t,!0);return n&&pa(r,n),ea>0&&!a&&Qi&&(r.shapeFlag&6?Qi[Qi.indexOf(e)]=r:Qi.push(r)),r.patchFlag=-2,r}if(Ia(e)&&(e=e.__vccOpts),t){t=la(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=A(e)),v(n)&&(Vt(n)&&!d(n)&&(n=s({},n)),t.style=ue(n))}let o=g(e)?1:Ki(e)?128:Un(e)?64:v(e)?4:h(e)?2:0;return U(e,t,n,r,i,o,a,!0)}function la(e){return e?Vt(e)||yi(e)?s({},e):e:null}function ua(e,t,n=!1,r=!1){let{props:i,ref:a,patchFlag:o,children:s,transition:c}=e,l=t?ma(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&oa(l),ref:t&&t.ref?n&&a?d(a)?a.concat(sa(t)):[a,sa(t)]:sa(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==B?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ua(e.ssContent),ssFallback:e.ssFallback&&ua(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&r&&ir(u,c.clone(u)),u}function G(e=` `,t=0){return W(Ji,null,e,t)}function K(e=``,t=!1){return t?(V(),ra(Yi,null,e)):W(Yi,null,e)}function da(e){return e==null||typeof e==`boolean`?W(Yi):d(e)?W(B,null,e.slice()):ia(e)?fa(e):W(Ji,null,String(e))}function fa(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ua(e)}function pa(e,t){let n=0,{shapeFlag:r}=e;if(t==null)t=null;else if(d(t))n=16;else if(typeof t==`object`){if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),pa(e,n()),n._c&&(n._d=!0));return}{n=32;let r=t._;!r&&!yi(t)?t._ctx=Dn:r===3&&Dn&&(Dn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}}else if(h(t)){if(r&65){pa(e,{default:t});return}t={default:t,_ctx:Dn},n=32}else t=String(t),r&64?(n=16,t=[G(t)]):n=8;e.children=t,e.shapeFlag|=n}function ma(...e){let t={};for(let n=0;n<e.length;n++){let r=e[n];for(let e in r)if(e===`class`)t.class!==r.class&&(t.class=A([t.class,r.class]));else if(e===`style`)t.style=ue([t.style,r.style]);else if(a(e)){let n=t[e],i=r[e];i&&n!==i&&!(d(n)&&n.includes(i))?t[e]=n?[].concat(n,i):i:i==null&&n==null&&!o(e)&&(t[e]=i)}else e!==``&&(t[e]=r[e])}return t}function ha(e,t,n,r=null){on(e,t,7,[n,r])}var ga=ei(),_a=0;function va(){return _a}function ya(e,n,r){let i=e.type,a=(n?n.appContext:e.appContext)||ga,o={uid:_a++,vnode:e,type:i,parent:n,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new we(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(a.provides),ids:n?n.ids:[``,0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ti(i,a),emitsOptions:si(i,a),emit:null,emitted:null,propsDefaults:t,inheritAttrs:i.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,suspense:r,suspenseId:r?r.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=n?n.root:o,o.emit=ai.bind(null,o),e.ce&&e.ce(o),o}var ba=null,xa=()=>ba||Dn,Sa,Ca;{let e=le(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach(t=>t(e)):r[0](e)}};Sa=t(`__VUE_INSTANCE_SETTERS__`,e=>ba=e),Ca=t(`__VUE_SSR_SETTERS__`,e=>Da=e)}var wa=e=>{let t=ba;return Sa(e),e.scope.on(),()=>{e.scope.off(),Sa(t)}},Ta=()=>{ba&&ba.scope.off(),Sa(null)};function Ea(e){return e.vnode.shapeFlag&4}var Da=!1;function Oa(e,t=!1,n=!1){t&&Ca(t);let{props:r,children:i}=e.vnode,a=Ea(e);bi(e,r,a,t),Ni(e,i,n||t);let o=a?ka(e,t):void 0;return t&&Ca(!1),o}function ka(e,t){let n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Lr);let{setup:r}=n;if(r){He();let n=e.setupContext=r.length>1?Na(e):null,i=wa(e),a=an(r,e,0,[e.props,n]),o=y(a);if(Ue(),i(),(o||e.sp)&&!dr(e)&&or(e),o){if(a.then(Ta,Ta),t)return a.then(n=>{Ca(!0);try{Aa(e,n,t)}finally{Ca(!1)}}).catch(t=>{sn(t,e,0)});e.asyncDep=a}else Aa(e,a,t)}else ja(e,t)}function Aa(e,t,n){h(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=Yt(t)),ja(e,n)}function ja(e,t,n){let i=e.type;e.render||=i.render||r;{let t=wa(e);He();try{Br(e)}finally{Ue(),t()}}}var Ma={get(e,t){return $e(e,`get`,``),e[t]}};function Na(e){return{attrs:new Proxy(e.attrs,Ma),slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function Pa(e){return e.exposed?e.exposeProxy||=new Proxy(Yt(Ht(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Fr)return Fr[n](e)},has(e,t){return t in e||t in Fr}}):e.proxy}function Fa(e,t=!0){return h(e)?e.displayName||e.name:e.name||t&&e.__name}function Ia(e){return h(e)&&`__vccOpts`in e}var q=(e,t)=>Zt(e,t,Da),La=`3.5.44`,Ra=void 0,za=typeof window<`u`&&window.trustedTypes;if(za)try{Ra=za.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Ba=Ra?e=>Ra.createHTML(e):e=>e,Va=`http://www.w3.org/2000/svg`,Ha=`http://www.w3.org/1998/Math/MathML`,Ua=typeof document<`u`?document:null,Wa=Ua&&Ua.createElement(`template`),Ga={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?Ua.createElementNS(Va,e):t===`mathml`?Ua.createElementNS(Ha,e):n?Ua.createElement(e,{is:n}):Ua.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>Ua.createTextNode(e),createComment:e=>Ua.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ua.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{Wa.innerHTML=Ba(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Wa.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ka=Symbol(`_vtc`);function qa(e,t,n){let r=e[Ka];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Ja=Symbol(`_vod`),Ya=Symbol(`_vsh`),Xa={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Ja]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Za(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Za(e,!0),r.enter(e)):r.leave(e,()=>{Za(e,!1)}):Za(e,t))},beforeUnmount(e,{value:t}){Za(e,t)}};function Za(e,t){e.style.display=t?e[Ja]:`none`,e[Ya]=!t}var Qa=Symbol(``),$a=/(?:^|;)\s*display\s*:/;function eo(e,t,n){let r=e.style,i=g(n),a=!1;if(n&&!i){if(t){if(g(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??no(r,t,``)}else for(let e in t)n[e]??no(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?no(r,i,``):oo(e,i,!g(t)&&t?t[i]:void 0,o)||no(r,i,o)}}else if(i){if(t!==n){let e=r[Qa];e&&(n+=`;`+e),r.cssText=n,a=$a.test(n)}}else t&&e.removeAttribute(`style`);Ja in e&&((!i||t!==n)&&(e[Ja]=a?r.display:``),e[Ya]&&(r.display=`none`))}var to=/\s*!important$/;function no(e,t,n){if(d(n))n.forEach(n=>no(e,t,n));else if(n??=``,t.startsWith(`--`))to.test(n)?e.setProperty(t,n.replace(to,``),`important`):e.setProperty(t,n);else{let r=ao(e,t);to.test(n)?e.setProperty(D(r),n.replace(to,``),`important`):e[r]=n}}var ro=[`Webkit`,`Moz`,`ms`],io={};function ao(e,t){let n=io[t];if(n)return n;let r=E(t);if(r!==`filter`&&r in e)return io[t]=r;r=re(r);for(let n=0;n<ro.length;n++){let i=ro[n]+r;if(i in e)return io[t]=i}return t}function oo(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&g(r)&&n===r}var so=`http://www.w3.org/1999/xlink`;function co(e,t,n,r,i,a=me(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(so,t.slice(6,t.length)):e.setAttributeNS(so,t,n):n==null||a&&!he(n)?e.removeAttribute(t):e.setAttribute(t,a?``:_(n)?String(n):n)}function lo(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Ba(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);(r!==i||!(`_value`in e))&&(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=he(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function uo(e,t,n,r){e.addEventListener(t,n,r)}function fo(e,t,n,r){e.removeEventListener(t,n,r)}var po=Symbol(`_vei`);function mo(e,t,n,r,i=null){let a=e[po]||(e[po]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=_o(t);r?uo(e,n,a[t]=xo(r,i),s):o&&(fo(e,n,o,s),a[t]=void 0)}}var ho=/(Once|Passive|Capture)$/,go=/^on:?(?:Once|Passive|Capture)$/;function _o(e){let t,n;for(;(n=e.match(ho))&&!go.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):D(e.slice(2)),t]}var vo=0,yo=Promise.resolve(),bo=()=>vo||=(yo.then(()=>vo=0),Date.now());function xo(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(d(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&on(e,t,5,a)}}else on(r,t,5,[e])};return n.value=e,n.attached=bo(),n}var So=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Co=(e,t,n,r,i,s)=>{let c=i===`svg`;t===`class`?qa(e,r,c):t===`style`?eo(e,n,r):a(t)?o(t)||mo(e,t,n,r,s):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):wo(e,t,r,c))?(lo(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&co(e,t,r,c,s,t!==`value`)):e._isVueCE&&(To(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!g(r)))?lo(e,E(t),r,s,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),co(e,t,r,c))};function wo(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&So(t)&&h(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`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return So(t)&&g(n)?!1:t in e}function To(e,t){let n=e._def.props;if(!n)return!1;let r=E(t);return Array.isArray(n)?n.some(e=>E(e)===r):Object.keys(n).some(e=>E(e)===r)}var Eo=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return d(t)?e=>ae(t,e):t};function Do(e){e.target.composing=!0}function Oo(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var ko=Symbol(`_assign`),Ao=Symbol(`_initialValue`);function jo(e,t,n){return t&&(e=e.trim()),n&&(e=se(e)),e}var Mo={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[Ao]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[Ao]=e.defaultValue.replace(/\r\n?/g,`
  2. `))),e[ko]=Eo(i);let a=r||i.props&&i.props.type===`number`;uo(e,t?`change`:`input`,t=>{t.target.composing||e[ko](jo(e.value,n,a))}),(n||a)&&uo(e,`change`,()=>{e.value=jo(e.value,n,a)}),t||(uo(e,`compositionstart`,Do),uo(e,`compositionend`,Oo),uo(e,`change`,Oo))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[Ao];delete e[Ao],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[ko](jo(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[ko]=Eo(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?se(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},No={deep:!0,created(e,t,n){e[ko]=Eo(n),uo(e,`change`,()=>{let t=e._modelValue,n=zo(e),r=e.checked,i=e[ko];if(d(t)){let e=j(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(p(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Bo(e,r))})},mounted:Po,beforeUpdate(e,t,n){e[ko]=Eo(n),Po(e,t,n)}};function Po(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(d(t))i=j(t,r.props.value)>-1;else if(p(t))i=t.has(r.props.value);else{if(t===n)return;i=be(t,Bo(e,!0))}e.checked!==i&&(e.checked=i)}var Fo={created(e,{value:t},n){e.checked=be(t,n.props.value),e[ko]=Eo(n),uo(e,`change`,()=>{e[ko](zo(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[ko]=Eo(r),t!==n&&(e.checked=be(t,r.props.value))}},Io={deep:!0,created(e,{value:t,modifiers:{number:n}},r){e._modelValue=t,uo(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?se(zo(e)):zo(e)),r=e.multiple,i=r?p(e._modelValue)?new Set(t):t:t[0],a=e._pendingValue=[r,r?d(i)?t.slice():t:i];try{e[ko](i)}finally{gn(()=>{e._pendingValue===a&&(e._pendingValue=void 0)})}}),e[ko]=Eo(r)},mounted(e,{value:t}){Ro(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[ko]=Eo(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Lo(t,n[1],n[0]))&&Ro(e,t)}};function Lo(e,t,n){if(!n||d(e))return be(e,t);if(p(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function Ro(e,t){let n=e.multiple,r=d(t);if(!n||r||p(t)){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=zo(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):j(t,o)>-1}else a.selected=t.has(o)}else if(be(zo(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function zo(e){return`_value`in e?e._value:e.value}function Bo(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Vo=[`ctrl`,`shift`,`alt`,`meta`],Ho={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)=>Vo.some(n=>e[`${n}Key`]&&!t.includes(n))},Uo=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Ho[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},Wo={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},Go=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=D(n.key);if(t.some(e=>e===r||Wo[e]===r))return e(n)}))},Ko=s({patchProp:Co},Ga),qo;function Jo(){return qo||=Ii(Ko)}var Yo=((...e)=>{let t=Jo().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Zo(e);if(!r)return;let i=t._component;!h(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Xo(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function Xo(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Zo(e){return g(e)?document.querySelector(e):e}var Qo=`default`;function $o(e,t=`请求失败`){let n=e?.detail??e;return typeof n==`string`?n:Array.isArray(n)?n.map(e=>`${(e.loc||[]).join(`.`)}:${e.msg}`).join(`;`):n?.message||t}async function es(e,t={}){let n=await fetch(e,t);if(!n.ok){let e;try{e=await n.json()}catch{e=null}throw Error($o(e,`请求失败(${n.status})`))}return n.status===204?null:n.json()}var ts=e=>({method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e)});function ns(e,t=`研判结果.json`){let n=URL.createObjectURL(new Blob([JSON.stringify(e,null,2)],{type:`application/json;charset=utf-8`})),r=document.createElement(`a`);r.href=n,r.download=t,r.click(),setTimeout(()=>URL.revokeObjectURL(n),1e3)}var rs=e=>e>=1048576?`${(e/1024/1024).toFixed(1)} MB`:`${Math.max(1,Math.round(e/1024))} KB`,is=e=>`${e}${e.includes(`?`)?`&`:`?`}user_name=${encodeURIComponent(Qo)}`;async function as(e,t){if(!e.body)throw Error(`服务没有返回可读取的数据流`);let n=e.body.getReader(),r=new TextDecoder,i=``,a=[],o=()=>{if(a.length){let e=a.join(`
  3. `);a=[],e!==`[DONE]`&&t(JSON.parse(e))}},s=e=>{e?e.startsWith(`data:`)&&a.push(e.slice(5).replace(/^ /,``)):o()};try{for(;;){let{value:e,done:t}=await n.read();i+=t?r.decode():r.decode(e,{stream:!0});let a;for(;(a=i.indexOf(`
  4. `))!==-1;)s(i.slice(0,a).replace(/\r$/,``)),i=i.slice(a+1);if(t)break}i&&s(i.replace(/\r$/,``)),o()}finally{n.releaseLock()}}var J=Pt({sessions:[],agents:[],messages:[],sessionId:null,agentName:`main`,mode:`full`,title:`新对话`,input:``,attachment:null,streaming:!1,loading:!1,status:`正在连接`,statusKind:`busy`,model:``}),os,ss=q(()=>J.messages.some(e=>e.segments?.some(e=>e.type===`interrupt`&&!e.resolved))),cs=q(()=>J.streaming||J.loading),ls=(e,t=`ready`)=>{J.status=e,J.statusKind=t},us=()=>{let e=Pt({id:crypto.randomUUID(),role:`assistant`,segments:[]});return J.messages.push(e),e},ds=(e,t,n=``,r=``)=>e.segments.push({type:`card`,title:t,content:n,kind:r});function fs(e,t){let n=t.segments;switch(e.type){case`token`:{let t=n.at(-1);t?.type!==`text`&&(t=Pt({type:`text`,content:``}),n.push(t)),t.content+=e.content||``;break}case`agent_start`:ls(`${e.cn_agent||e.agent} 已启动`,`busy`);break;case`thinking`:ls(e.message||`分析中`,`busy`);break;case`thinking_token`:{let t=n.find(e=>e.type===`thinking`);t||(t=Pt({type:`thinking`,content:``}),n.push(t)),t.content+=e.content||``;break}case`executing`:ls(e.message||`正在执行工具`,`busy`);break;case`tool_call`:n.push({type:`tool`,id:e.tool_call_id||e.tool,title:e.tool===`MainFanResult`?`整理研判报告`:e.cn_tool||e.tool,args:e.args,kind:`pending`,result:null});break;case`tool_result`:{let t=e.tool_call_id||e.tool,r=[...n].reverse().find(e=>e.type===`tool`&&e.id===t);r?(r.result=e.content,r.kind=e.error?`error`:`done`):n.push({type:`tool`,title:e.cn_tool||e.tool,result:e.content,kind:e.error?`error`:`done`});break}case`updated_todo_list`:{let t=n.find(e=>e.type===`todos`);t?t.items=e.todos||[]:n.push({type:`todos`,items:e.todos||[]});break}case`citations`:n.push({type:`citations`,items:e.items||[],modelOnly:e.model_only});break;case`interrupt`:n.push({type:`interrupt`,event:e,answers:(e.ask_user?.questions||[]).map(()=>``),resolved:!1,busy:!1}),ls(`等待你的确认`,`busy`);break;case`agent_error`:case`error`:t.failed=!0,ds(t,`执行失败`,e.message||e.code||`未知错误`,`error`),ls(`执行失败`,`error`);break;case`done`:e.usage&&n.push({type:`usage`,usage:e.usage})}}async function ps(){try{J.sessions=(await es(`/api/sessions?user_name=default`)).items||[]}catch(e){ls(e.message,`error`)}}async function ms(e,t,n){let r=us();os=new AbortController,J.streaming=!0,ls(`正在连接`,`busy`);try{let i=await fetch(e,{method:`POST`,body:t instanceof FormData?t:JSON.stringify(t),headers:t instanceof FormData?{}:{"Content-Type":`application/json`},signal:os.signal});if(!i.ok){let e;try{e=await i.json()}catch{e=null}throw Error($o(e,`请求失败(${i.status})`))}J.sessionId=i.headers.get(`X-Session-Id`)||J.sessionId,J.agentName=i.headers.get(`X-Agent-Name`)||J.agentName,n?.(),await as(i,e=>fs(e,r)),r.failed||ls(ss.value?`等待你的确认`:`回复已完成`,ss.value?`busy`:`ready`)}catch(e){e.name===`AbortError`?(ds(r,`已停止生成`),ls(`已停止`)):(ds(r,`请求未完成`,e.message,`error`),ls(e.message,`error`))}finally{J.streaming=!1,os=null,await ps()}}async function hs(){let e=J.input.trim();if(!e||cs.value||ss.value)return;let t=new FormData;t.append(`message`,e),t.append(`request_id`,crypto.randomUUID()),t.append(`mode`,J.mode),t.append(`user_name`,Qo),t.append(`agent_name`,J.agentName),J.sessionId&&t.append(`session_id`,J.sessionId),J.attachment&&t.append(`file`,J.attachment),J.messages.push({id:crypto.randomUUID(),role:`user`,content:e,filename:J.attachment?.name}),J.sessionId||(J.title=e.slice(0,30)),J.input=``,J.attachment=null,await ms(`/api/chat`,t)}async function gs(e,t){if(cs.value||e.resolved||e.busy)return;e.busy=!0;let n=e.event;try{await ms(`/api/chat/resume`,{session_id:J.sessionId,thread_id:J.sessionId,user_name:Qo,interrupt_token:n.tool_approval?.interrupt_token||n.interrupt_token,...t},()=>{e.resolved=!0})}finally{e.busy=!1}}async function _s(e){if(!cs.value){J.loading=!0,ls(`正在加载对话`,`busy`);try{let t=await es(`/api/chat/history/${e.id}?user_name=${Qo}&limit=500`);J.sessionId=e.id,J.title=e.title||`未命名对话`,J.agentName=t.agent_name||`main`,J.mode=e.mode===`plan`?`plan`:`full`,J.input=``,J.attachment=null,J.messages=(t.items||[]).filter(e=>[`user`,`assistant`].includes(e.msg_role)).map(e=>({id:e.id,role:e.msg_role,content:e.content,segments:e.msg_role===`assistant`?[{type:`text`,content:e.content||``},...e.citations?.length?[{type:`citations`,items:e.citations}]:[]]:void 0}));let n=await es(`/api/chat/interrupt?session_id=${e.id}&user_name=${Qo}`);for(let e of n?.interrupts||[])fs(e,us());ls(ss.value?`等待你的确认`:`对话已加载`,ss.value?`busy`:`ready`)}catch(e){ls(e.message,`error`)}finally{J.loading=!1}}}function vs(){cs.value||(J.sessionId=null,J.title=`新对话`,J.messages=[],J.input=``,J.attachment=null,ls(`服务已就绪`))}async function ys(){await ps();try{let[e,t]=await Promise.all([es(`/api/model`),es(`/api/business-agents`)]);J.model=e.model||``,J.agents=t.items||[],ls(`服务已就绪`)}catch(e){ls(e.message,`error`)}}var bs=()=>({state:J,pending:ss,busy:cs,send:hs,resume:gs,openSession:_s,newChat:vs,initialize:ys,refreshSessions:ps,stop:()=>os?.abort()}),xs=[`width`,`height`],Ss=[`d`],Y={__name:`Icon`,props:{name:String,size:{type:[Number,String],default:20}},setup(e){let t={grid:`M3 3h7v7H3z M14 3h7v7h-7z M3 14h7v7H3z M14 14h7v7h-7z`,chat:`M21 11.5a9 9 0 0 1-9 9H4l-3 2v-11a10 10 0 0 1 20 0Z M7 9h9 M7 13h6`,flask:`M9 3h6 M10 3v6L4 19a1.4 1.4 0 0 0 1.2 2h13.6A1.4 1.4 0 0 0 20 19L14 9V3 M7 15h10`,plus:`M12 5v14 M5 12h14`,arrow:`M12 19V5 M6 11l6-6 6 6`,upload:`M12 16V3 M7 8l5-5 5 5 M4 15v6h16v-6`,file:`M14 3H5v18h14V8l-5-5Z M14 3v6h5 M8 13h8 M8 17h5`,refresh:`M20 7a9 9 0 1 0 1 8 M20 3v5h-5`,close:`M6 6l12 12 M6 18L18 6`,menu:`M4 6h16 M4 12h16 M4 18h16`,play:`M8 4l13 8-13 8V4Z`,stop:`M6 6h12v12H6z`,check:`M5 12l4 4L19 6`,chevron:`M9 5l7 7-7 7`,download:`M12 3v13 M7 11l5 5 5-5 M4 17v4h16v-4`,copy:`M8 8h12v13H8z M16 8V3H3v13h5`,code:`M8 6l-6 6 6 6 M16 6l6 6-6 6 M14 3l-4 18`,table:`M3 4h18v16H3z M3 9h18 M9 9v11 M15 9v11`,clock:`M12 8v5l4 2 M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z`,layers:`M12 3l10 5-10 5L2 8l10-5Z M2 12l10 5 10-5 M2 16l10 5 10-5`,eye:`M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12Z M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z`,attach:`M9 17l8-8a3 3 0 0 0-4-4L4 14a5 5 0 0 0 7 7l9-9`};return(n,r)=>(V(),H(`svg`,{width:e.size,height:e.size,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.7`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"aria-hidden":`true`},[U(`path`,{d:t[e.name]||t.grid},null,8,Ss)],8,xs))}};function Cs(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ws=Cs();function Ts(e){ws=e}var Es={exec:()=>null};function Ds(e){let t=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=t[r];return i||(i=e(r),t[r]=i),i}}function X(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(ks.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var Os=((e=``)=>{try{return!!RegExp(`(?<=1)(?<!1)`+e)}catch{return!1}})(),ks={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/,numericCharacterReferenceOrAmpersand:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Ds(e=>RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Ds(e=>RegExp(`^ {0,${e}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:Ds(e=>RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:Ds(e=>RegExp(`^ {0,${e}}#`)),htmlBeginRegex:Ds(e=>RegExp(`^ {0,${e}}(?:</?(?:${Ws})(?: +|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`,`i`)),blockquoteBeginRegex:Ds(e=>RegExp(`^ {0,${e}}>`))},As=/^(?:[ \t]*(?:\n|$))+/,js=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ms=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ns=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ps=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Fs=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Is=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ls=X(Is).replace(/bull/g,Fs).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Rs=X(Is).replace(/bull/g,Fs).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),zs=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Bs=/^[^\n]+/,Vs=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Hs=X(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,Vs).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Us=X(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Fs).getRegex(),Ws=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,Gs=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Ks=X(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,Gs).replace(`tag`,Ws).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),qs=e=>X(zs).replace(`hr`,Ns).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,e).replace(`html`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,Ws).getRegex(),Js=qs(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Ys=qs(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Xs={blockquote:X(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,Ys).getRegex(),code:js,def:Hs,fences:Ms,heading:Ps,hr:Ns,html:Ks,lheading:Ls,list:Us,newline:As,paragraph:Js,table:Es,text:Bs},Zs=X(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,Ns).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]`).replace(`html`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,Ws).getRegex(),Qs={...Xs,lheading:Rs,table:Zs,paragraph:X(zs).replace(`hr`,Ns).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Zs).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace(`list`,` {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]`).replace(`html`,` {0,3}(?:</?(?:tag)(?: +|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`).replace(`tag`,Ws).getRegex()},$s={...Xs,html:X(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,Gs).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Es,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:X(zs).replace(`hr`,Ns).replace(`heading`,` *#{1,6} *[^
  5. ]`).replace(`lheading`,Ls).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},ec=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,tc=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,nc=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,rc=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ic=/[\p{P}\p{S}]/u,ac=/[\s\p{P}\p{S}]/u,oc=/[^\s\p{P}\p{S}]/u,sc=X(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,ac).getRegex(),cc=/[\p{Pi}\p{Ps}"']/u,lc=/(?!~)[\p{P}\p{S}]/u,uc=/(?!~)[\s\p{P}\p{S}]/u,dc=/(?:[^\s\p{P}\p{S}]|~)/u,fc=X(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,Os?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),pc=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,mc=X(pc,`u`).replace(/punct/g,ic).getRegex(),hc=X(pc,`u`).replace(/punct/g,lc).getRegex(),gc=X(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,`u`).replace(/openQuote/g,cc).replace(/punct/g,ic).getRegex(),_c=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,vc=X(_c,`gu`).replace(/notPunctSpace/g,oc).replace(/punctSpace/g,ac).replace(/punct/g,ic).getRegex(),yc=X(_c,`gu`).replace(/notPunctSpace/g,dc).replace(/punctSpace/g,uc).replace(/punct/g,lc).getRegex(),bc=X(`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,oc).replace(/punctSpace/g,ac).replace(/punct/g,ic).getRegex(),xc=X(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,oc).replace(/punctSpace/g,ac).replace(/punct/g,ic).getRegex(),Sc=X(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,oc).replace(/punctSpace/g,ac).replace(/punct/g,ic).getRegex(),Cc=X(/^~~?(?:((?!~)punct)|[^\s~])/,`u`).replace(/punct/g,ic).getRegex(),wc=X(`^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)`,`gu`).replace(/notPunctSpace/g,oc).replace(/punctSpace/g,ac).replace(/punct/g,ic).getRegex(),Tc=X(/\\(punct)/,`gu`).replace(/punct/g,ic).getRegex(),Ec=X(/(`+)(?:[^`]|[^`][\s\S]*?[^`])\1(?!`)|`+|\\(punct)/,`gu`).replace(/punct/g,ic).getRegex(),Dc=X(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(`scheme`,/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace(`email`,/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Oc=X(Gs).replace(`(?:-->|$)`,`-->`).getRegex(),kc=X(`^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>`).replace(`comment`,Oc).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Ac=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,jc=X(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace(`brackets`,Ac).getRegex(),Mc=X(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace(`label`,jc).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Nc=X(/^!?\[(label)\]\[(ref)\]/).replace(`label`,jc).replace(`ref`,Vs).getRegex(),Pc=X(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Vs).getRegex(),Fc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,Ic=X(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace(`brackets`,Ac).getRegex(),Lc=X(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,X(/^!?\[(label)\]\[(ref)\]/).replace(`label`,Ic).replace(`ref`,Fc).getRegex()).replace(`nolink`,X(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,Fc).getRegex()).getRegex(),Rc=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,zc=X(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),Bc={_backpedal:Es,anyPunctuation:Tc,anyPunctuationOutsideCode:Ec,autolink:Dc,blockSkip:fc,br:nc,code:tc,del:Es,delLDelim:Es,delRDelim:Es,emStrongLDelim:mc,emStrongRDelimAst:vc,emStrongRDelimUnd:xc,escape:ec,link:Mc,nolink:Pc,punctuation:sc,reflink:Nc,reflinkSearch:Lc,tag:kc,text:rc,url:Es},Vc={...Bc,emStrongLDelim:gc,emStrongRDelimAst:bc,emStrongRDelimUnd:Sc,link:X(/^!?\[(label)\]\((.*?)\)/).replace(`label`,jc).getRegex(),reflink:X(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,jc).getRegex()},Hc={...Bc,emStrongRDelimAst:yc,emStrongLDelim:hc,delLDelim:Cc,delRDelim:wc,url:X(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`emailProtocol`,zc).replace(`protocol`,Rc).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:X(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace(`protocol`,Rc).replace(/emailProtocol/g,/(?:mailto|xmpp):/).getRegex()},Uc={...Hc,br:X(nc).replace(`{2,}`,`*`).getRegex(),text:X(Hc.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},Wc={normal:Xs,gfm:Qs,pedantic:$s},Gc={normal:Bc,gfm:Hc,breaks:Uc,pedantic:Vc},Kc={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},qc=e=>Kc[e];function Jc(e,t){if(t){if(ks.escapeTest.test(e))return e.replace(ks.escapeReplace,qc)}else if(ks.escapeTestNoEncode.test(e))return e.replace(ks.escapeReplaceNoEncode,qc);return e}function Yc(e){return ks.numericCharacterReference.test(e)?e.replace(ks.numericCharacterReferenceOrAmpersand,(e,t,n)=>{if(t===void 0&&n===void 0)return`&amp;`;let r=t===void 0?Number.parseInt(n,16):Number.parseInt(t,10);return r===0||r>1114111||r>=55296&&r<=57343?`�`:r===38?`&amp;`:String.fromCodePoint(r)}):e}function Xc(e){try{e=encodeURI(e).replace(ks.percentDecode,`%`)}catch{return null}return e}function Zc(e,t){let n=e.replace(ks.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(ks.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(ks.slashPipe,`|`);return n}function Qc(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function $c(e){let t=e.split(`
  6. `),n=t.length-1;for(;n>=0&&ks.blankLine.test(t[n]);)n--;return t.length-n<=2?e:t.slice(0,n+1).join(`
  7. `)}function el(e){return e.trim().toLowerCase().toUpperCase().toLowerCase()}function tl(e,t){if(e.indexOf(t[0])===-1&&e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function nl(e,t=0){let n=t,r=``;for(let t of e)if(t===` `){let e=4-n%4;r+=` `.repeat(e),n+=e}else r+=t,n++;return r}function rl(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`),c=e[0].charAt(0)===`!`,l=r.state.inLink,u=r.state.linkEmitted,d=r.state.inRawBlock;r.state.inLink=!0,r.state.linkEmitted=!1;let f=r.inlineTokens(s),p=r.state.linkEmitted;if(r.state.linkEmitted=u,r.state.inLink=l,!c){if(p){r.state.inRawBlock=d;return}r.state.linkEmitted=!0}return{type:c?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:f}}function il(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
  8. `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return e.slice(Math.min(r.length,i.length))}).join(`
  9. `)}function al(e,t,n,r){if(!t.includes(`<`))return!1;for(let i=0;i<t.length;i++){if(t[i]===`\\`){i++;continue}if(t[i]==="`"){let e=r.inline.code.exec(t.slice(i));if(e){i+=e[0].length-1;continue}}if(t[i]!==`<`)continue;let a=e.slice(n+i),o=r.inline.tag.exec(a)||r.inline.autolink.exec(a);if(o){if(o[0].length>t.length-i)return!0;i+=o[0].length-1}}return!1}var ol=class{options;rules;lexer;constructor(e){this.options=e||ws}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:$c(t[0]);return{type:`code`,raw:e,codeBlockStyle:`indented`,text:e.replace(this.rules.other.codeRemoveIndent,``)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=il(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=Qc(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceTabChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:Qc(t[0],`
  10. `),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:Qc(t[0],`
  11. `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=Qc(t[0],`
  12. `).split(`
  13. `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o=0;for(;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
  14. `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
  15. $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
  16. ${s}`:s,r=r?`${r}
  17. ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`||u?.type===`heading`||u?.type===`hr`||u?.type===`html`)break;if(u?.type===`blockquote`){let t=u,a=e.join(`
  18. `),o=t.raw+`
  19. `+a.replace(this.rules.other.blockquoteSetextReplace2,``),s=this.blockquote(o);i[i.length-1]=s;let c=o.substring(s.raw.length).replace(/^\n/,``),l=c?c.split(`
  20. `).length:0,d=l?e.slice(0,-l):e;d.length>0&&(n=`${n}
  21. ${d.join(`
  22. `)}`),r=r.substring(0,r.length-t.text.length)+s.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
  23. `+e.join(`
  24. `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
  25. `)}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=e,r=()=>n.length-e.length,i=t[1].trim(),a=i.length>1,o={type:`list`,raw:``,ordered:a,start:a?+i.slice(0,-1):``,loose:!1,items:[]};i=a?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=a?i:`[*+-]`);let s=this.rules.other.listItemRegex(i),c=!1;for(;e;){let i=!1,a=``;if(!(t=s.exec(e))||this.rules.block.hr.test(e))break;let l=r();e=e.substring(t[0].length);let u=t[2].split(`
  26. `,1)[0],d=t[1].length,f=this.options.pedantic?nl(u,d):u.replace(this.rules.other.leadingSpaceTab,e=>nl(e,d)),p=e.split(`
  27. `,1)[0],m=!f.trim(),h=0;if(this.options.pedantic?(h=2,a=f.trimStart()):m?h=d+1:(h=f.search(this.rules.other.nonSpaceChar),h=h>4?1:h,a=f.slice(h),h+=d),m&&this.rules.other.blankLine.test(p)&&(e=e.substring(p.length+1),i=!0),!i){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),r=this.rules.other.fencesBeginRegex(h),i=this.rules.other.headingBeginRegex(h),o=this.rules.other.htmlBeginRegex(h),s=this.rules.other.blockquoteBeginRegex(h);for(;e;){let c=e.split(`
  28. `,1)[0],l;if(p=c,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting,` `),l=p):l=p.replace(this.rules.other.leadingSpaceTab,e=>nl(e)),r.test(p)||i.test(p)||o.test(p)||s.test(p)||t.test(p)||n.test(p))break;if(l.search(this.rules.other.nonSpaceChar)>=h||!p.trim())a+=`
  29. `+l.slice(h);else{if(m||f.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||r.test(f)||i.test(f)||n.test(f))break;a+=`
  30. `+p}m=!p.trim(),e=e.substring(c.length+1),f=l.slice(h)}}let g=n.slice(l,r());o.loose||(c?o.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(c=!0)),o.items.push({type:`list_item`,raw:g,task:!!this.options.gfm&&this.rules.other.listIsTask.test(a),loose:!1,text:a,tokens:[]})}let l=o.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;o.raw=n.slice(0,r()).trimEnd();for(let e of o.items)if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),!o.loose){let t=e.tokens.filter(e=>e.type===`space`);o.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}for(let e of o.items){let t=e.tokens[0];if(e.task&&(t?.type===`text`||t?.type===`paragraph`)){e.text=e.text.replace(this.rules.other.listReplaceTask,``),t.raw=t.raw.replace(this.rules.other.listReplaceTask,``),t.text=t.text.replace(this.rules.other.listReplaceTask,``);for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,``);break}let n=this.rules.other.listTaskCheckbox.exec(e.raw);if(n){let t={type:`checkbox`,raw:n[0]+` `,checked:n[0]!==`[ ]`};e.checked=t.checked,o.loose?e.tokens[0]&&[`paragraph`,`text`].includes(e.tokens[0].type)&&`tokens`in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:`paragraph`,raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}else e.task&&=!1}if(o.loose)for(let e of o.items){e.loose=!0;for(let t of e.tokens)t.type===`text`&&(t.type=`paragraph`)}return o}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=$c(t[0]);return{type:`html`,block:!0,raw:e,pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){if(!this.rules.other.startAngleBracket.test(t[2])&&tl(t[2],`()`)!==-1)return;let e=el(t[1]).replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:Qc(t[0],`
  31. `),href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Zc(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
  32. `):[],a={type:`table`,raw:Qc(t[0],`
  33. `),header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Zc(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:`heading`,raw:Qc(t[0],`
  34. `),depth:t[2].charAt(0)===`=`?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
  35. `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){if(this.lexer.state.linkParenPossible===!1)return;let t=this.rules.inline.link.exec(e);if(t){let n=t[0].charAt(0)===`!`?2:1;if(!this.options.pedantic&&al(e,t[1],n,this.rules))return;let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let e=Qc(r.slice(0,-1),`\\`);if((r.length-e.length)%2==0)return}else{let e=tl(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let i=t[2],a=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(i);e&&(i=e[1],a=e[3])}else a=t[3]?t[3].slice(1,-1):``;return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(i=this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i.slice(1):i.slice(1,-1)),rl(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,`$1`),title:a&&a.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=n[0].charAt(0)===`!`?2:1;if(!this.options.pedantic&&al(e,n[1],r,this.rules))return;let i=t[el((n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `))];if(!i){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return rl(n,i,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let i=[...r[0]].length-1,a,o,s=i,c=0,l=r[0][0],u=n===l,d=l===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+i);(r=d.exec(t))!==null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(o=[...a].length,r[3]||r[4]){s+=o;continue}if(r[5]||r[6]){if(i%3&&!((i+o)%3)){c+=o;continue}if(u)break}if(s-=o,s>0)continue;o=Math.min(o,o+s+c);let t=[...r[0]][0].length,n=e.slice(0,i+r.index+t+o);if(Math.min(i,o)%2){let e=n.slice(1,-1);return{type:`em`,raw:n,text:e,tokens:this.lexer.inlineTokens(e)}}let l=n.slice(2,-2);return{type:`strong`,raw:n,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e,t,n=``){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=this.rules.inline.delRDelim;for(s.lastIndex=0,t=t.slice(-1*e.length+n);(r=s.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(a=[...i].length,a!==n))continue;if(r[3]||r[4]){o+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o);let t=[...r[0]][0].length,s=e.slice(0,n+r.index+t+a),c=s.slice(n,-n);return{type:`del`,raw:s,text:c,tokens:this.lexer.inlineTokens(c)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,autolink:!0,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:e?t[0]:Yc(t[0]),escaped:e}}}},sl=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ws,this.options.tokenizer=this.options.tokenizer||new ol,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,linkParenPossible:!0,top:!0};let t={other:ks,block:Wc.normal,inline:Gc.normal};this.options.pedantic?(t.block=Wc.pedantic,t.inline=Gc.pedantic):this.options.gfm&&(t.block=Wc.gfm,t.inline=this.options.breaks?Gc.breaks:Gc.gfm),this.tokenizer.rules=t}static get rules(){return{block:Wc,inline:Gc}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(ks.carriageReturn,`
  36. `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(ks.tabCharGlobal,` `).replace(ks.spaceLine,``));let r=1/0;for(;e;){if(e.length<r)r=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let i;if(this.options.extensions?.block?.some(n=>(i=n.call({lexer:this},e,t))?(e=e.substring(i.raw.length),t.push(i),!0):!1))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let n=t.at(-1);i.raw.length===1&&n!==void 0?n.raw+=`
  37. `:t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
  38. `)?``:`
  39. `)+i.raw,n.text+=`
  40. `+i.text,this.inlineQueue.at(-1).src=n.text):t.push(i);continue}if((i=this.tokenizer.fences(e))||(i=this.tokenizer.heading(e))||(i=this.tokenizer.hr(e))||(i=this.tokenizer.blockquote(e))||(i=this.tokenizer.list(e))||(i=this.tokenizer.html(e))){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
  41. `)?``:`
  42. `)+i.raw,n.text+=`
  43. `+i.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if((i=this.tokenizer.table(e))||(i=this.tokenizer.lheading(e))){e=e.substring(i.raw.length),t.push(i);continue}let a=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(a=e.substring(0,t+1))}if(this.state.top&&(i=this.tokenizer.paragraph(a))){let r=t.at(-1);n&&r?.type===`paragraph`?(r.raw+=(r.raw.endsWith(`
  44. `)?``:`
  45. `)+i.raw,r.text+=`
  46. `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i),n=a.length!==e.length,e=e.substring(i.raw.length)}else if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
  47. `)?``:`
  48. `)+i.raw,n.text+=`
  49. `+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i)}else if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}linkInText(e){if(!e.includes(`[`))return!1;let t=this.tokenizer.rules.inline.link;for(let n of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(t.test(n[0])&&e.charAt(n.index-1)!==`!`)return!0;for(let t of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let e=t[0],n=e.lastIndexOf(`[`);if(e.charAt(0)!==`!`&&Object.hasOwn(this.tokens.links,el(e.slice(n+1,-1)))&&!(n>1&&this.linkInText(e.slice(1,n-1))))return!0}return!1}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let n=this.state.linkParenPossible;this.state.linkParenPossible=n&&e.includes(`)`);try{return this.#e(e,t)}finally{this.state.linkParenPossible=n}}#e(e,t){let n=e;if(this.tokens.links&&e.includes(`[`)){let e=this.tokenizer.rules.inline.reflinkSearch,t=n=>{let r=n.lastIndexOf(`[`);if(!Object.hasOwn(this.tokens.links,el(n.slice(r+1,-1))))return n;if(r>1&&n.charAt(0)!==`!`){let i=n.slice(1,r-1);if(this.linkInText(i))return`[`+i.replace(e,t)+`][`+`a`.repeat(n.length-r-2)+`]`}return`[`+`a`.repeat(n.length-2)+`]`};n=n.replace(e,t)}n=n.replace(this.tokenizer.rules.inline.anyPunctuationOutsideCode,(e,t,n)=>n?`+`.repeat(e.length):t?t+e.slice(t.length,-t.length).replace(/`/g,`+`)+t:e),n=n.replace(this.tokenizer.rules.inline.blockSkip,(e,t,n)=>{let r=n?n.length:0;return e.slice(0,r)+`[`+`a`.repeat(e.length-r-2)+`]`}),n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let r=!1,i=``,a=1/0;for(;e;){if(e.length<a)a=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}r||(i=``),r=!1;let o;if(this.options.extensions?.inline?.some(n=>(o=n.call({lexer:this},e,t))?(e=e.substring(o.raw.length),t.push(o),!0):!1))continue;if((o=this.tokenizer.escape(e))||(o=this.tokenizer.tag(e))||(o=this.tokenizer.link(e))){e=e.substring(o.raw.length),t.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let n=t.at(-1);o.type===`text`&&n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o);continue}if((o=this.tokenizer.emStrong(e,n,i))||(o=this.tokenizer.codespan(e))||(o=this.tokenizer.br(e))||(o=this.tokenizer.del(e,n,i))||(o=this.tokenizer.autolink(e))||!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),t.push(o);continue}let s=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(s=e.substring(0,t+1))}if(o=this.tokenizer.inlineText(s)){e=e.substring(o.raw.length),o.raw.slice(-1)!==`_`&&(i=o.raw.slice(-1)),r=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=o.raw,n.text+=o.text):t.push(o)}else if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t=`Infinite loop on byte: `+e;if(this.options.silent)console.error(t);else throw Error(t)}},cl=class{options;parser;constructor(e){this.options=e||ws}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(ks.notSpaceStart)?.[0],i=e?e.replace(ks.endingNewline,``)+`
  50. `:``;return r?`<pre><code class="language-`+Jc(r)+`">`+(n?i:Jc(i,!0))+`</code></pre>
  51. `:`<pre><code>`+(n?i:Jc(i,!0))+`</code></pre>
  52. `}blockquote({tokens:e}){return`<blockquote>
  53. ${this.parser.parse(e)}</blockquote>
  54. `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
  55. `}hr(e){return`<hr>
  56. `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
  57. `+r+`</`+i+`>
  58. `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
  59. `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox"> `}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
  60. `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
  61. <thead>
  62. `+t+`</thead>
  63. `+r+`</table>
  64. `}tablerow({text:e}){return`<tr>
  65. ${e}</tr>
  66. `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
  67. `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Jc(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,text:n,tokens:r,autolink:i}){let a=i?Jc(n,!0):this.parser.parseInline(r),o=Xc(e);if(o===null)return a;e=Jc(o,i);let s=`<a href="`+e+`"`;return t&&(s+=` title="`+Jc(t)+`"`),s+=`>`+a+`</a>`,s}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=Xc(e);if(i===null)return Jc(n);e=i;let a=`<img src="${Jc(e)}" alt="${Jc(n)}"`;return t&&(a+=` title="${Jc(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:Jc(e.text)}},ll=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}checkbox({raw:e}){return e}},ul=class e{options;renderer;textRenderer;constructor(e){this.options=e||ws,this.options.renderer=this.options.renderer||new cl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ll}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){this.renderer.parser=this;let t=``;for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=r,n=this.options.extensions.renderers[e.type].call({parser:this},e);if(n!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`checkbox`,`html`,`def`,`paragraph`,`text`].includes(e.type)){t+=n||``;continue}}let i=r;switch(i.type){case`space`:t+=this.renderer.space(i);break;case`hr`:t+=this.renderer.hr(i);break;case`heading`:t+=this.renderer.heading(i);break;case`code`:t+=this.renderer.code(i);break;case`table`:t+=this.renderer.table(i);break;case`blockquote`:t+=this.renderer.blockquote(i);break;case`list`:t+=this.renderer.list(i);break;case`checkbox`:t+=this.renderer.checkbox(i);break;case`html`:t+=this.renderer.html(i);break;case`def`:t+=this.renderer.def(i);break;case`paragraph`:t+=this.renderer.paragraph(i);break;case`text`:t+=this.renderer.text(i);break;default:{let e=`Token with "`+i.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`checkbox`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`checkbox`:n+=t.checkbox(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},dl=class{options;block;constructor(e){this.options=e||ws}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?sl.lex:sl.lexInline}provideParser(e=this.block){return e?ul.parse:ul.parseInline}};function fl(e,t){if(Array.isArray(t))for(let n=0;n<t.length;n++)e.push(t[n]);else e.push(t)}var pl=new class{defaults=Cs();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ul;Renderer=cl;TextRenderer=ll;Lexer=sl;Tokenizer=ol;Hooks=dl;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(fl(n,t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)fl(n,this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)fl(n,this.walkTokens(e.tokens,t));break}case`list`:{let e=r;fl(n,this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);fl(n,this.walkTokens(i,t))}):e.tokens&&fl(n,this.walkTokens(e.tokens,t))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new cl(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new ol(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new dl;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=dl.passThroughHooks.has(n)?e=>{if(this.defaults.async&&dl.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&fl(n,t.call(this,e)),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return sl.lex(e,t??this.defaults)}parser(e,t){return ul.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer(e):e?sl.lex:sl.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser(e):e?ul.parse:ul.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer(e):e?sl.lex:sl.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser(e):e?ul.parse:ul.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
  68. Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+Jc(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function Z(e,t){return pl.parse(e,t)}Z.options=Z.setOptions=function(e){return pl.setOptions(e),Z.defaults=pl.defaults,Ts(Z.defaults),Z},Z.getDefaults=Cs,Z.defaults=ws;function ml(...e){return pl.use(...e),Z.defaults=pl.defaults,Ts(Z.defaults),Z}Z.use=ml,Z.walkTokens=function(e,t){return pl.walkTokens(e,t)},Z.parseInline=pl.parseInline,Z.Parser=ul,Z.parser=ul.parse,Z.Renderer=cl,Z.TextRenderer=ll,Z.Lexer=sl,Z.lexer=sl.lex,Z.Tokenizer=ol,Z.Hooks=dl,Z.parse=Z,Z.options,Z.setOptions,Z.walkTokens,Z.parseInline,ul.parse,sl.lex;function hl(e,t){this.v=e,this.k=t}function gl(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _l(e){if(Array.isArray(e))return e}function vl(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function yl(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
  69. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bl(e,t){return _l(e)||vl(e,t)||xl(e,t)||yl()}function xl(e,t){if(e){if(typeof e==`string`)return gl(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gl(e,t):void 0}}function Sl(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,s=o instanceof hl;Promise.resolve(s?o.v:o).then(function(n){if(s){var c=t===`return`&&o.k?t:`next`;if(!o.k||n.done)return r(c,n);n=e[c](n).value}i(!!a.done,n)},function(e){r(`throw`,e)})}catch(e){i(2,e)}}function i(e,i){e===2?t.reject(i):t.resolve({value:i,done:e}),(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(a,o){var s={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,r(e,i))})},typeof e.return!=`function`&&(this.return=void 0)}Sl.prototype[typeof Symbol==`function`&&Symbol.asyncIterator||`@@asyncIterator`]=function(){return this},Sl.prototype.next=function(e){return this._invoke(`next`,e)},Sl.prototype.throw=function(e){return this._invoke(`throw`,e)},Sl.prototype.return=function(e){return this._invoke(`return`,e)};var Cl=Object.entries,wl=Object.setPrototypeOf,Tl=Object.isFrozen,El=Object.getPrototypeOf,Dl=Object.getOwnPropertyDescriptor,Ol=Object.freeze,kl=Object.seal,Al=Object.create,jl=typeof Reflect<`u`&&Reflect,Ml=jl.apply,Nl=jl.construct;Ol||=function(e){return e},kl||=function(e){return e},Ml||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},Nl||=function(e){return new e(...[...arguments].slice(1))};var Pl=Q(Array.prototype.forEach);Array.prototype.indexOf;var Fl=Q(Array.prototype.lastIndexOf),Il=Q(Array.prototype.pop),Ll=Q(Array.prototype.push),Rl=Q(Array.prototype.slice),zl=Q(Array.prototype.splice),Bl=Array.isArray,Vl=iu(Set),Hl=Q(Set.prototype.add),Ul=Q(Set.prototype.has),Wl=Q(String.prototype.toLowerCase),Gl=Q(String.prototype.toString),Kl=Q(String.prototype.match),ql=Q(String.prototype.replace),Jl=Q(String.prototype.indexOf),Yl=Q(String.prototype.trim),Xl=Q(Number.prototype.toString),Zl=Q(Boolean.prototype.toString),Ql=typeof BigInt>`u`?null:Q(BigInt.prototype.toString),$l=typeof Symbol>`u`?null:Q(Symbol.prototype.toString),eu=Q(Object.prototype.hasOwnProperty),tu=Q(Object.prototype.toString),nu=Q(RegExp.prototype.test),ru=iu(TypeError);function Q(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return Ml(e,t,n)}}function iu(e){return function(){return Nl(e,[...arguments])}}function $(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wl;if(wl&&wl(e,null),!Bl(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(Tl(t)||(t[r]=e),i=e)}e[i]=!0}return e}function au(e){for(let t=0;t<e.length;t++)eu(e,t)||(e[t]=null);return e}function ou(e){let t=Al(null);for(let r of Cl(e)){var n=bl(r,2);let i=n[0],a=n[1];eu(e,i)&&(t[i]=Bl(a)?au(a):a&&typeof a==`object`&&a.constructor===Object?ou(a):a)}return t}function su(e){switch(typeof e){case`string`:return e;case`number`:return Xl(e);case`boolean`:return Zl(e);case`bigint`:return Ql?Ql(e):`0`;case`symbol`:return $l?$l(e):`Symbol()`;case`undefined`:return tu(e);case`function`:case`object`:{if(e===null)return tu(e);let t=e,n=cu(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:tu(e)}return tu(e)}default:return tu(e)}}function cu(e,t){for(;e!==null;){let n=Dl(e,t);if(n){if(n.get)return Q(n.get);if(typeof n.value==`function`)return Q(n.value)}e=El(e)}function n(){return null}return n}function lu(e,t){for(;e!==null;){let n=Dl(e,t);if(n)return n.get?Q(n.get):null;e=El(e)}return null}function uu(e){try{return nu(e,``),!0}catch{return!1}}var du=Ol(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),fu=Ol(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),pu=Ol([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),mu=Ol([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),hu=Ol(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),gu=Ol([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),_u=Ol([`#text`]),vu=Ol(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),yu=Ol(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.pointer-events.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),bu=Ol(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),xu=Ol([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Su=kl(/{{[\w\W]*|^[\w\W]*}}/g),Cu=kl(/<%[\w\W]*|^[\w\W]*%>/g),wu=kl(/\${[\w\W]*/g),Tu=kl(/^data-[\-\w.\u00B7-\uFFFF]+$/),Eu=kl(/^aria-[\-\w]+$/),Du=kl(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ou=kl(/^(?:\w+script|data):/i),ku=kl(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Au=kl(/^html$/i),ju=kl(/^[a-z][.\w]*(-[.\w]+)+$/i),Mu=kl(/<[/\w!]/g),Nu=kl(/<[/\w]/g),Pu=kl(/<\/no(script|embed|frames)/i),Fu=kl(/\/>/i),Iu={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Lu=Ol($({},[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`])),Ru=function(){return typeof window>`u`?null:window},zu=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Bu=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Vu=function(e,t,n,r){return eu(e,t)&&Bl(e[t])?$(r.base?ou(r.base):{},e[t],r.transform):n},Hu=function(e,t,n){let r=eu(e,t)?e[t]:void 0;return r&&typeof r==`object`?ou(r):n()};function Uu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ru(),t=e=>Uu(e);if(t.version=`3.4.17`,t.removed=[],!e||!e.document||e.document.nodeType!==Iu.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=cu(d,`cloneNode`),p=cu(d,`remove`),m=cu(d,`removeAttributeNode`),h=cu(d,`nextSibling`),g=cu(d,`childNodes`),_=cu(d,`parentNode`),v=cu(d,`shadowRoot`),y=cu(d,`attributes`),b=o&&o.prototype?cu(o.prototype,`nodeType`):null,x=o&&o.prototype?cu(o.prototype,`nodeName`):null,S=o&&o.prototype?cu(o.prototype,`ownerDocument`):null,C=function(e){return b?b(e):e.nodeType},w=function(e){return x?x(e):e.nodeName},ee=lu(d,`namespaceURI`),te=function(e){return ee?ee(e):e.namespaceURI};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let T,E=``,ne,D=!1,re=0,ie=function(){if(re>0)throw ru(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},O=function(e){ie(),re++;try{return T.createHTML(e)}finally{re--}},ae=function(e){ie(),re++;try{return T.createScriptURL(e)}finally{re--}},oe=function(){return D||=(ne=zu(u,i),!0),ne},se=n,ce=se.implementation,le=se.createNodeIterator,ue=se.createDocumentFragment,de=se.getElementsByTagName,fe=r.importNode,k=Bu();t.isSupported=typeof Cl==`function`&&typeof _==`function`&&ce&&ce.createHTMLDocument!==void 0;let pe=Su,A=Cu,me=wu,he=Tu,ge=Eu,_e=Ou,ve=ku,ye=ju,be=Du,j=null,xe=$({},[...du,...fu,...pu,...hu,..._u]),M=null,Se=$({},[...vu,...yu,...bu,...xu]),Ce=Object.seal(Al(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),N=null,we=null,Te=Object.seal(Al(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),P=!0,Ee=!0,De=!1,Oe=!0,ke=!1,Ae=!0,je=!1,Me=!1,Ne=null,Pe=null,Fe=!1,Ie=!1,Le=!1,Re=!1,ze=!0,Be=!1,Ve=`user-content-`,He=!0,Ue=!1,We=null,Ge={},Ke=null,qe=$({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Je=null,Ye=$({},[`audio`,`video`,`img`,`source`,`image`,`track`]),Xe=null,Ze=$({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Qe=`http://www.w3.org/1998/Math/MathML`,$e=`http://www.w3.org/2000/svg`,et=`http://www.w3.org/1999/xhtml`,tt=et,nt=!1,rt=null,it=$({},[Qe,$e,et],Gl),at=Ol([`mi`,`mo`,`mn`,`ms`,`mtext`]),ot=$({},at),st=Ol([`annotation-xml`]),ct=$({},st),lt=$({},[`title`,`style`,`font`,`a`,`script`]),ut=null,dt=[`application/xhtml+xml`,`text/html`],F=null,ft=null,pt=n.createElement(`form`),mt=function(e){return e instanceof RegExp||e instanceof Function},ht=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ft&&ft===e)return;(!e||typeof e!=`object`)&&(e={}),e=ou(e),ut=dt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,F=ut===`application/xhtml+xml`?Gl:Wl,j=Vu(e,`ALLOWED_TAGS`,xe,{transform:F}),M=Vu(e,`ALLOWED_ATTR`,Se,{transform:F}),rt=Vu(e,`ALLOWED_NAMESPACES`,it,{transform:Gl}),Xe=Vu(e,`ADD_URI_SAFE_ATTR`,Ze,{transform:F,base:Ze}),Je=Vu(e,`ADD_DATA_URI_TAGS`,Ye,{transform:F,base:Ye}),Ke=Vu(e,`FORBID_CONTENTS`,qe,{transform:F}),N=Vu(e,`FORBID_TAGS`,ou({}),{transform:F}),we=Vu(e,`FORBID_ATTR`,ou({}),{transform:F}),Ge=eu(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?ou(e.USE_PROFILES):e.USE_PROFILES:!1,P=e.ALLOW_ARIA_ATTR!==!1,Ee=e.ALLOW_DATA_ATTR!==!1,De=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Oe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ke=e.SAFE_FOR_TEMPLATES||!1,Ae=e.SAFE_FOR_XML!==!1,je=e.WHOLE_DOCUMENT||!1,Ie=e.RETURN_DOM||!1,Le=e.RETURN_DOM_FRAGMENT||!1,Re=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,ze=e.SANITIZE_DOM!==!1,Be=e.SANITIZE_NAMED_PROPS||!1,He=e.KEEP_CONTENT!==!1,Ue=e.IN_PLACE||!1,be=uu(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Du,tt=typeof e.NAMESPACE==`string`?e.NAMESPACE:et,ot=Hu(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>$({},at)),ct=Hu(e,`HTML_INTEGRATION_POINTS`,()=>$({},st));let t=Hu(e,`CUSTOM_ELEMENT_HANDLING`,()=>Al(null));if(Ce=Al(null),eu(t,`tagNameCheck`)&&mt(t.tagNameCheck)&&(Ce.tagNameCheck=t.tagNameCheck),eu(t,`attributeNameCheck`)&&mt(t.attributeNameCheck)&&(Ce.attributeNameCheck=t.attributeNameCheck),eu(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(Ce.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),kl(Ce),ke&&(Ee=!1),Le&&(Ie=!0),Ge&&(j=$({},_u),M=Al(null),Ge.html===!0&&($(j,du),$(M,vu)),Ge.svg===!0&&($(j,fu),$(M,yu),$(M,xu)),Ge.svgFilters===!0&&($(j,pu),$(M,yu),$(M,xu)),Ge.mathMl===!0&&($(j,hu),$(M,bu),$(M,xu))),Te.tagCheck=null,Te.attributeCheck=null,eu(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?Te.tagCheck=e.ADD_TAGS:Bl(e.ADD_TAGS)&&(j===xe&&(j=ou(j)),$(j,e.ADD_TAGS,F))),eu(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?Te.attributeCheck=e.ADD_ATTR:Bl(e.ADD_ATTR)&&(M===Se&&(M=ou(M)),$(M,e.ADD_ATTR,F))),eu(e,`ADD_FORBID_CONTENTS`)&&Bl(e.ADD_FORBID_CONTENTS)&&(Ke===qe&&(Ke=ou(Ke)),$(Ke,e.ADD_FORBID_CONTENTS,F)),He&&(j[`#text`]=!0),je&&$(j,[`html`,`head`,`body`]),j.table&&($(j,[`tbody`]),delete N.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw ru(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw ru(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=T;T=e.TRUSTED_TYPES_POLICY;try{E=O(``)}catch(e){throw T=t,e}}else e.TRUSTED_TYPES_POLICY===null?(T=void 0,E=``):(T===void 0&&(T=oe()),T&&typeof E==`string`&&(E=O(``)));Ol&&Ol(e),ft=e},gt=$({},[...fu,...pu,...mu]),_t=$({},[...hu,...gu]),vt=function(e,t,n){return t.namespaceURI===et?e===`svg`:t.namespaceURI===Qe?e===`svg`&&(n===`annotation-xml`||ot[n]):!!gt[e]},yt=function(e,t,n){return t.namespaceURI===et?e===`math`:t.namespaceURI===$e?e===`math`&&ct[n]:!!_t[e]},bt=function(e,t,n){return t.namespaceURI===$e&&!ct[n]||t.namespaceURI===Qe&&!ot[n]?!1:!_t[e]&&(lt[e]||!gt[e])},xt=function(e){let t=te(e),n=Wl(w(e)),r=_(e),i,a;return r&&C(r)===Iu.element?(i={namespaceURI:te(r)},a=Wl(w(r))):(i={namespaceURI:tt},a=`template`),rt[t]?t===$e?vt(n,i,a):t===Qe?yt(n,i,a):t===et?bt(n,i,a):!!(ut===`application/xhtml+xml`&&rt[t]):!1},St=function(e){Ll(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw ru(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},Ct=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},wt=function(e){Ot(e);let t=g(e);t&&Pl(Rl(t),e=>{try{p(e)}catch{}});let n=C(e)===Iu.element?y(e):null;if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&&Ct(e,r,i)}},Tt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}Ll(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(Ie||Le)try{St(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},Et=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||M[F(i)]||Ct(e,r,i)}},Dt=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],r=[e];for(;r.length>0;){let e=r.pop();if(t(e)===!1)continue;if(n&&C(e)===Iu.element){let t=v(e);Ht(t)&&r.push(t)}let i=g(e);if(i)for(let e=i.length-1;e>=0;--e)r.push(i[e])}},Ot=function(e){Dt(e,e=>{C(e)===Iu.element&&Et(e)})},kt=function(e){let t=[];return Dt(e,e=>{t.push(e)},!0),t},At=function(e,t){let n=Vl();Pl(kt(e),e=>{C(e)===Iu.element&&Hl(n,e)}),Pl(t,e=>{C(e)===Iu.element&&!Ul(n,e)&&Et(e)})},jt=function(e,n){let r=!1;return Pl(t.removed,t=>{t.element&&(r||=t.element===e,Ot(t.element))}),At(e,n),r},Mt=function(e,t){let n=We,r=null,i=()=>(r||(r=Vl(),Pl(t,e=>{Hl(r,e)})),r);for(let t=0;;t++){let r=kt(e),a=[e],o=!1;if(Pl(r,e=>{C(e)===Iu.documentFragment?Ll(a,e):!o&&!Ul(n,e)&&(o=Ul(i(),e))}),!o)return;if(t>=8)throw ru(`the tree kept changing during in-place sanitization; refusing to return it`);Pl(a,(t,n)=>{Nt(t,n>0,e,i())})}},Nt=function(e,t,n,r){let i=Rt(e),a;for(;a=i.nextNode();)Ul(r,a)&&!Ul(We,a)&&(t&&Wt(k.uponSanitizeShadowNode,a,null),Jt(a,n),tn(a,n),Ht(a.content)&&nn(a.content))},Pt=function(e){We&&Hl(We,e)},Ft=function(e,t){return Ae?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},It=function(e){Ae&&Dt(e,e=>{let t=C(e);if(t===Iu.processingInstruction||t===Iu.comment&&nu(Nu,e.data)){try{p(e)}catch{}return!1}if(t===Iu.element){let t=e,n=F(w(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&Ft(`for`,n)&&t.removeAttribute(`for`)}catch{}}return!0})},Lt=function(e){let t=null,r=null;if(Fe)e=`<remove></remove>`+e;else{let t=Kl(e,/^[\r\n\t ]+/);r=t&&t[0]}ut===`application/xhtml+xml`&&tt===et&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=T?O(e):e;if(tt===et)try{t=new l().parseFromString(i,ut)}catch{}if(!t||!t.documentElement){t=ce.createDocument(tt,`template`,null);try{t.documentElement.innerHTML=nt?E:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),tt===et?de.call(t,je?`html`:`body`)[0]:je?t.documentElement:a},Rt=function(e){let t=S?S(e):e.ownerDocument;return le.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},zt=function(e){return e=ql(e,pe,` `),e=ql(e,A,` `),e=ql(e,me,` `),e},Bt=function(e){Vt(e);let t=e.querySelectorAll?.call(e,`template`);t&&Pl(t,e=>{Ht(e.content)&&Bt(e.content)})},Vt=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=le.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=zt(r.data),r=n.nextNode()},I=function(e){let t=x?x(e):null;return typeof t!=`string`||F(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},Ht=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===Iu.documentFragment}catch{return!1}},Ut=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function Wt(e,n,r){e.length!==0&&Pl(e,e=>{e.call(t,n,r,ft)})}let Gt=function(e,t){return!!(Ae&&e.hasChildNodes()&&!Ut(e.firstElementChild)&&nu(Mu,e.textContent)&&nu(Mu,e.innerHTML)||Ae&&Lu[t]&&C(e)===Iu.element&&te(e)===et&&(Ut(e.firstElementChild)||typeof e.textContent==`string`&&nu(Mu,e.textContent))||e.nodeType===Iu.processingInstruction||Ae&&e.nodeType===Iu.comment&&nu(Nu,e.data))},L=function(e,t){return e instanceof RegExp?nu(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},Kt=function(e,t,n){if(!N[t]&&Zt(t)&&L(Ce.tagNameCheck,t))return!1;if(He&&!Ke[t]&&!Ke[Wl(t)]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return St(e),!0},qt=function(e,t,n,r){return e.length===0?t:t===n||t===r?ou(t):t},R=function(e,t){return e===t||_(e)!==null?!1:(Ue&&Ot(e),!0)},Jt=function(e,n){if(Pt(e),Wt(k.beforeSanitizeElements,e,null),R(e,n))return!0;if(I(e))return St(e),!0;let r=F(w(e));if(j=qt(k.uponSanitizeElement,j,xe,Ne),Wt(k.uponSanitizeElement,e,{tagName:r,allowedTags:j}),R(e,n))return!0;if(Gt(e,r))return St(e),!0;if(N[r]||!(Te.tagCheck instanceof Function&&Te.tagCheck(r))&&!j[r]){let t=Kt(e,r,n);return t===!1&&(Wt(k.afterSanitizeElements,e,null),R(e,n))?!0:t}if(C(e)===Iu.element&&!xt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&nu(Pu,e.innerHTML))return St(e),!0;if(ke&&e.nodeType===Iu.text){let n=zt(e.textContent);e.textContent!==n&&(Ll(t.removed,{element:e.cloneNode()}),e.textContent=n)}return Wt(k.afterSanitizeElements,e,null),R(e,n)},Yt=function(e,t,r){if(we[t]||Ft(t,e)||ze&&(t===`id`||t===`name`)&&(r in n||r in pt))return!1;let i=M[t]||Te.attributeCheck instanceof Function&&Te.attributeCheck(t,e);return Ee&&nu(he,t)||P&&nu(ge,t)?!0:i?Xe[t]||nu(be,ql(r,ve,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&Jl(r,`data:`)===0&&Je[e]||De&&!nu(_e,ql(r,ve,``))?!0:!r:Zt(e)&&L(Ce.tagNameCheck,e)&&L(Ce.attributeNameCheck,t,e)||t===`is`&&Ce.allowCustomizedBuiltInElements&&L(Ce.tagNameCheck,r)},Xt=$({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Zt=function(e){return!Xt[Wl(e)]&&nu(ye,e)},Qt=function(e,t,n,r){if(T&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return O(r);case`TrustedScriptURL`:return ae(r)}return r},$t=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!I(e)||(St(e),!1)}catch{return Tt(t,e),!1}},en=function(e,t){return Ae&&nu(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t)?!0:Wl(e)===`attributename`&&Kl(t,`href`)!==null},tn=function(e,n){if(Wt(k.beforeSanitizeAttributes,e,null),R(e,n))return;let r=e.attributes;if(!r||I(e))return;M=qt(k.uponSanitizeAttribute,M,Se,Pe);let i={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:M,forceKeepAttr:void 0},a=r.length,o=F(e.nodeName);for(;a--;){let n=r[a],s=n.name,c=n.namespaceURI,l=n.value,u=F(s),d=l,f=s===`value`?d:Yl(d),p=!1;i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Wt(k.uponSanitizeAttribute,e,i),f=i.attrValue,Be&&(u===`id`||u===`name`)&&Jl(f,Ve)!==0&&(Tt(s,e,n),f=Ve+f,p=!0),en(s,f)?Tt(s,e,n):i.forceKeepAttr||(i.keepAttr?!Oe&&nu(Fu,f)?Tt(s,e,n):(ke&&(f=zt(f)),Yt(o,u,f)?(f=Qt(o,u,c,f),f!==d&&$t(e,s,c,f)&&p&&Il(t.removed)):Tt(s,e,n)):Tt(s,e,n))}Wt(k.afterSanitizeAttributes,e,null),R(e,n)},nn=function(e){let t=null,n=Rt(e);for(Wt(k.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(Wt(k.uponSanitizeShadowNode,t,null),Jt(t,e),tn(t,e),Ht(t.content)&&nn(t.content),C(t)===Iu.element){let e=v(t);Ht(e)&&(rn(e),nn(e))}ke&&Vt(e),Wt(k.afterSanitizeShadowDOM,e,null)},rn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){nn(e.shadow);continue}let n=e.node,r=C(n)===Iu.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&F(e)===`template`){let e=n.content;Ht(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);Ht(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(nt=!e,nt&&(e=`<!-->`),typeof e!=`string`&&!Ut(e)&&(e=su(e),typeof e!=`string`))throw ru(`dirty is not a string, aborting`);if(!t.isSupported)return e;Me?(j=Ne,M=Pe):ht(n),(k.uponSanitizeElement.length>0||k.uponSanitizeAttribute.length>0)&&(j=ou(j)),k.uponSanitizeAttribute.length>0&&(M=ou(M)),t.removed=[];let c=Ue&&typeof e!=`string`&&Ut(e),l=[],u=We;if(c){It(e);let t=w(e);if(typeof t==`string`){let n=F(t);if(!j[n]||N[n])throw wt(e),ru(`root node is forbidden and cannot be sanitized in-place`)}if(I(e))throw wt(e),ru(`root node is clobbered and cannot be sanitized in-place`);l=kt(e),We=Vl()}else if(Ut(e))i=Lt(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Iu.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),rn(i);else{if(!Ie&&!ke&&!je&&e.indexOf(`<`)===-1)return T&&Re?O(e):e;if(i=Lt(e),!i)return Ie?null:Re?E:``}i&&Fe&&St(i.firstChild);let d=c?e:i;try{c&&rn(e);let t=Rt(d);for(;o=t.nextNode();)Jt(o,d),tn(o,d),Ht(o.content)&&nn(o.content);c&&Mt(e,l)}catch(t){throw c&&(wt(e),jt(e,l)),t}finally{We=u}if(c){if(jt(e,l))throw ru(`a node selected for removal could not be safely returned; refusing to sanitize in place`);return ke&&Bt(e),e}if(Ie){if(ke&&Bt(i),Le)for(s=ue.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(M.shadowroot||M.shadowrootmode)&&(s=fe.call(r,s,!0)),s}let f=je?i.outerHTML:i.innerHTML;return je&&j[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&nu(Au,i.ownerDocument.doctype.name)&&(f=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
  70. `+f),ke&&(f=zt(f)),T&&Re?O(f):f},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ht(e),Me=!0,Ne=j,Pe=M},t.clearConfig=function(){ft=null,Me=!1,Ne=null,Pe=null,T=ne,E=``},t.isValidAttribute=function(e,t,n){ft||ht({});let r=F(e),i=F(t);return typeof n==`string`&&(en(t,n)||!Oe&&nu(Fu,n))?!1:Yt(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&eu(k,e)&&Ll(k[e],t)},t.removeHook=function(e,t){if(eu(k,e)){if(t!==void 0){let n=Fl(k[e],t);return n===-1?void 0:zl(k[e],n,1)[0]}return Il(k[e])}},t.removeHooks=function(e){eu(k,e)&&(k[e]=[])},t.removeAllHooks=function(){k=Bu()},t}var Wu=Uu(),Gu=[`innerHTML`],Ku=[`src`,`alt`],qu={__name:`MarkdownView`,props:{source:{type:String,default:``}},setup(e){let t=e,n=L(null),r=L(),i;Ln(n,async e=>{e?(i=document.activeElement,await gn(),r.value?.focus()):i?.focus?.()});let a=q(()=>{let e=Wu.sanitize(Z.parse(t.source,{gfm:!0,breaks:!0}),{ALLOWED_TAGS:`p.br.h1.h2.h3.h4.h5.h6.strong.em.del.s.blockquote.ul.ol.li.pre.code.hr.a.img.table.thead.tbody.tr.th.td.input`.split(`.`),ALLOWED_ATTR:[`href`,`title`,`src`,`alt`,`start`,`align`,`type`,`checked`,`disabled`],ALLOW_DATA_ATTR:!1,ALLOW_ARIA_ATTR:!1}),n=new DOMParser().parseFromString(e,`text/html`);return n.querySelectorAll(`a`).forEach(e=>{e.target=`_blank`,e.rel=`noopener noreferrer`}),n.querySelectorAll(`input`).forEach(e=>{e.type=`checkbox`,e.disabled=!0}),n.querySelectorAll(`table`).forEach(e=>{let t=n.createElement(`div`);t.className=`markdown-table`,t.tabIndex=0,e.replaceWith(t),t.append(e)}),n.body.innerHTML});function o(e){e.target instanceof HTMLImageElement&&(n.value={src:e.target.src,alt:e.target.alt})}return(e,t)=>(V(),H(B,null,[U(`div`,{class:`markdown`,innerHTML:a.value,onClick:o},null,8,Gu),(V(),ra(Qn,{to:`body`},[n.value?(V(),H(`div`,{key:0,ref_key:`overlay`,ref:r,class:`modal-backdrop image-lightbox`,role:`dialog`,"aria-modal":`true`,"aria-label":`查看图表`,onClick:t[1]||=Uo(e=>n.value=null,[`self`]),onKeydown:t[2]||=Go(e=>n.value=null,[`esc`]),tabindex:`-1`},[U(`button`,{class:`icon-button lightbox-close`,"aria-label":`关闭图表`,onClick:t[0]||=e=>n.value=null},[W(Y,{name:`close`})]),U(`img`,{src:n.value.src,alt:n.value.alt},null,8,Ku)],544)):K(``,!0)]))],64))}},Ju={class:`chat-view`},Yu={key:0,class:`welcome`},Xu={class:`welcome-symbol`},Zu=[`disabled`],Qu={id:`log`,class:`message-list`,role:`log`,"aria-label":`对话内容`,"aria-live":`polite`},$u={key:0,class:`user-bubble`},ed={key:0,class:`inline-file`},td={class:`assistant-label`},nd={class:`agent-avatar`},rd=[`onClick`],id={class:`assistant-body`},ad=[`open`],od={key:0},sd={key:1},cd={key:2,class:`tool-card`},ld={key:3,class:`todo-card`},ud={key:0},dd={key:5,class:`sources`},fd=[`href`],pd={key:1,class:`source-chip`},md={key:6,class:`usage-line`},hd={key:7,class:`approval-card`},gd=[`onUpdate:modelValue`,`disabled`],_d={key:0},vd={key:1},yd={class:`button-row`},bd=[`disabled`,`onClick`],xd=[`disabled`,`onClick`],Sd=[`disabled`,`onClick`],Cd={class:`composer-area`},wd={class:`composer`},Td={key:0,class:`attachment-chip`},Ed=[`disabled`],Dd={class:`composer-bottom`},Od={class:`composer-options`},kd=[`disabled`],Ad=[`disabled`],jd=[`value`],Md=[`disabled`],Nd=[`disabled`],Pd={class:`composer-footnote`},Fd={__name:`ChatView`,setup(e){let{state:t,busy:n,pending:r,send:i,resume:a,stop:o}=bs(),s=L(),c=L(),l=L(!0),u=e=>typeof e==`string`?e:JSON.stringify(e,null,2),d=e=>/^https?:\/\//i.test(e||``),f=e=>e.event.ask_user?.questions||[];Ln(()=>t.messages,async()=>{await gn(),l.value&&s.value&&(s.value.scrollTop=s.value.scrollHeight)},{deep:!0}),Ln(()=>t.sessionId,()=>{l.value=!0});function p(){let e=s.value;l.value=e.scrollHeight-e.scrollTop-e.clientHeight<140}function m(){l.value=!0,i()}function h(e){e.key===`Enter`&&!e.shiftKey&&!e.isComposing&&e.keyCode!==229&&(e.preventDefault(),m())}function g(e){t.attachment=e.target.files[0]||null,e.target.value=``}async function _(e){try{await navigator.clipboard.writeText(e.segments.filter(e=>e.type===`text`).map(e=>e.content).join(`
  71. `))}catch{}}return(e,i)=>(V(),H(`section`,Ju,[U(`div`,{ref_key:`area`,ref:s,class:`conversation-scroll`,onScroll:p},[R(t).messages.length?K(``,!0):(V(),H(`div`,Yu,[i[8]||=U(`span`,{class:`eyebrow`},`VENT AGENT WORKSPACE`,-1),U(`div`,Xu,[W(Y,{name:`layers`,size:33})]),i[9]||=U(`h2`,null,`从一个问题,开始一次研判`,-1),i[10]||=U(`p`,null,[G(` 选择业务智能体,描述需要分析的对象。`),U(`br`),G(`资料获取、参数比较与结果报告,在这里完成。 `)],-1),U(`button`,{class:`welcome-prompt`,onClick:i[0]||=e=>{R(t).agentName=`main_fan`,R(t).input=`审核众源煤业主通风机及备用风机是否一致`},disabled:R(n)},[W(Y,{name:`flask`,size:18}),i[7]||=U(`span`,null,`审核众源煤业主备通风机`,-1),W(Y,{name:`chevron`,size:16})],8,Zu)])),U(`div`,Qu,[(V(!0),H(B,null,z(R(t).messages,e=>(V(),H(`article`,{key:e.id,class:A([`message`,e.role])},[e.role===`user`?(V(),H(`div`,$u,[G(M(e.content)+` `,1),e.filename?(V(),H(`div`,ed,[W(Y,{name:`file`,size:15}),G(M(e.filename),1)])):K(``,!0)])):(V(),H(B,{key:1},[U(`div`,td,[U(`span`,nd,[W(Y,{name:`layers`,size:14})]),i[11]||=G(`Vent Agent`,-1),U(`button`,{class:`icon-button message-copy`,"aria-label":`复制回复`,onClick:t=>_(e)},[W(Y,{name:`copy`,size:15})],8,rd)]),U(`div`,id,[(V(!0),H(B,null,z(e.segments,(e,t)=>(V(),H(B,{key:t},[e.type===`text`?(V(),ra(qu,{key:0,source:e.content},null,8,[`source`])):e.type===`tool`?(V(),H(`details`,{key:1,class:A([`tool-card`,e.kind]),open:e.kind===`error`},[U(`summary`,null,[U(`span`,{class:A(e.kind===`pending`?`spinner`:`tool-dot`)},null,2),G(M(e.title),1),U(`span`,null,M(e.kind===`pending`?`执行中`:e.kind===`error`?`失败`:`完成`),1)]),e.args?(V(),H(`pre`,od,M(u(e.args)),1)):K(``,!0),e.result==null?K(``,!0):(V(),H(`pre`,sd,M(u(e.result)),1))],10,ad)):e.type===`thinking`?(V(),H(`details`,cd,[i[12]||=U(`summary`,null,`思考过程`,-1),U(`pre`,null,M(e.content),1)])):e.type===`todos`?(V(),H(`div`,ld,[(V(!0),H(B,null,z(e.items,(e,t)=>(V(),H(`div`,{key:t},[U(`span`,{class:A([`todo-status`,e.status])},M(e.status===`completed`?`✓`:e.status===`in_progress`?`◌`:`○`),3),G(M(e.content),1)]))),128))])):e.type===`card`?(V(),H(`div`,{key:4,class:A([`notice`,e.kind])},[U(`strong`,null,M(e.title),1),e.content?(V(),H(`pre`,ud,M(e.content),1)):K(``,!0)],2)):e.type===`citations`&&e.items.length?(V(),H(`div`,dd,[i[13]||=U(`span`,null,`资料来源`,-1),(V(!0),H(B,null,z(e.items,(e,t)=>(V(),H(B,{key:t},[d(e.url)?(V(),H(`a`,{key:0,href:e.url,target:`_blank`,rel:`noopener noreferrer`},M(e.title||e.url),9,fd)):(V(),H(`span`,pd,[W(Y,{name:`file`,size:12}),G(M(e.title||`资料文件`),1)]))],64))),128))])):e.type===`usage`?(V(),H(`div`,md,` 本轮用量 `+M((e.usage.total_tokens||0).toLocaleString())+` tokens `,1)):e.type===`interrupt`?(V(),H(`div`,hd,[U(`strong`,null,M(e.resolved?`已提交确认`:e.event.ask_user?`需要补充信息`:`操作确认`),1),e.resolved?K(``,!0):(V(),H(B,{key:0},[(V(!0),H(B,null,z(f(e),(t,r)=>(V(),H(`label`,{key:r},[G(M(t),1),jn(U(`textarea`,{"onUpdate:modelValue":t=>e.answers[r]=t,rows:`2`,disabled:R(n)||e.busy},null,8,gd),[[Mo,e.answers[r]]])]))),128)),e.event.tool_approval?(V(),H(`pre`,_d,M(u(e.event.tool_approval.actions||e.event.tool_approval)),1)):K(``,!0),!e.event.ask_user&&!e.event.tool_approval?(V(),H(`p`,vd,M(e.event.message||`智能体已暂停,等待处理`),1)):K(``,!0),U(`div`,yd,[e.event.ask_user?(V(),H(`button`,{key:0,class:`button primary small`,disabled:R(n)||e.busy||e.answers.some(e=>!e.trim()),onClick:t=>R(a)(e,{answers:e.answers})},` 提交回答`,8,bd)):e.event.tool_approval?(V(),H(`button`,{key:1,class:`button primary small`,disabled:R(n)||e.busy,onClick:t=>R(a)(e,{approved:!0})},M(e.event.tool_approval.actions?.length>1?`批准全部 ${e.event.tool_approval.actions.length} 项`:`批准`),9,xd)):K(``,!0),U(`button`,{class:`button secondary small`,disabled:R(n)||e.busy,onClick:t=>R(a)(e,{approved:!1,status:`cancelled`})},M(e.event.ask_user?`取消`:`拒绝`),9,Sd)])],64))])):K(``,!0)],64))),128))])],64))],2))),128))])],544),U(`footer`,Cd,[U(`div`,wd,[R(t).attachment?(V(),H(`div`,Td,[W(Y,{name:`file`,size:15}),G(M(R(t).attachment.name),1),U(`button`,{class:`icon-button`,"aria-label":`移除附件`,onClick:i[1]||=e=>R(t).attachment=null},[W(Y,{name:`close`,size:14})])])):K(``,!0),jn(U(`textarea`,{id:`input`,"onUpdate:modelValue":i[2]||=e=>R(t).input=e,rows:`2`,"aria-label":`输入消息`,placeholder:`描述需要完成的任务,或上传资料开始分析…`,disabled:R(t).loading,onKeydown:h},null,40,Ed),[[Mo,R(t).input]]),U(`div`,Dd,[U(`div`,Od,[U(`input`,{ref_key:`upload`,ref:c,type:`file`,hidden:``,onChange:g},null,544),U(`button`,{class:`icon-button`,"aria-label":`添加附件`,disabled:R(n)||R(r),onClick:i[3]||=e=>c.value.click()},[W(Y,{name:`attach`})],8,kd),jn(U(`select`,{"onUpdate:modelValue":i[4]||=e=>R(t).agentName=e,"aria-label":`业务智能体`,disabled:R(n)||R(r)||!!R(t).sessionId},[i[14]||=U(`option`,{value:`main`},`综合助手`,-1),(V(!0),H(B,null,z(R(t).agents,e=>(V(),H(`option`,{key:e.name,value:e.name},M(e.display_name),9,jd))),128))],8,Ad),[[Io,R(t).agentName]]),jn(U(`select`,{"onUpdate:modelValue":i[5]||=e=>R(t).mode=e,"aria-label":`执行模式`,disabled:R(n)||R(r)},[...i[15]||=[U(`option`,{value:`full`},`直接执行`,-1),U(`option`,{value:`plan`},`先出计划`,-1)]],8,Md),[[Io,R(t).mode]])]),R(t).streaming?(V(),H(`button`,{key:0,class:`send-button stopping`,"aria-label":`停止生成`,onClick:i[6]||=(...e)=>R(o)&&R(o)(...e)},[W(Y,{name:`stop`,size:17})])):(V(),H(`button`,{key:1,class:`send-button`,"aria-label":`发送消息`,disabled:R(n)||R(r)||!R(t).input.trim(),onClick:m},[W(Y,{name:`arrow`,size:19})],8,Nd))])]),U(`div`,Pd,[U(`span`,null,M(R(t).model),1),i[16]||=U(`span`,null,`Enter 发送 · Shift + Enter 换行`,-1),U(`span`,null,M(R(t).sessionId?`会话 `+R(t).sessionId.slice(0,8):`新会话`),1)])])]))}},Id={class:`json-node`},Ld={class:`json-line`},Rd=[`aria-expanded`],zd={key:1,class:`json-spacer`},Bd={key:2,class:`json-key`},Vd={key:0},Hd={key:0,class:`json-children`},Ud={class:`json-close`},Wd={__name:`JsonTree`,props:{value:null,label:{type:String,default:``},depth:{type:Number,default:0}},setup(e){let t=e,n=L(t.depth<2),r=L(!1),i=q(()=>t.value!==null&&typeof t.value==`object`),a=q(()=>i.value?Object.entries(t.value):[]),o=q(()=>{let e=JSON.stringify(t.value);return!r.value&&e?.length>240?e.slice(0,240)+`…`:e});return(t,s)=>{let c=Ar(`JsonTree`,!0);return V(),H(`div`,Id,[U(`div`,Ld,[i.value?(V(),H(`button`,{key:0,class:`json-toggle`,"aria-expanded":n.value,onClick:s[0]||=e=>n.value=!n.value},M(n.value?`▾`:`▸`),9,Rd)):(V(),H(`span`,zd)),e.label?(V(),H(`span`,Bd,[G(M(e.label),1),s[3]||=U(`span`,{class:`json-colon`},`: `,-1)])):K(``,!0),i.value?(V(),H(`button`,{key:3,class:`json-container`,onClick:s[1]||=e=>n.value=!n.value},[G(M(Array.isArray(e.value)?`[`:`{`),1),n.value?K(``,!0):(V(),H(`span`,Vd,M(a.value.length)+`项 `+M(Array.isArray(e.value)?`]`:`}`),1))])):(V(),H(`span`,{key:4,class:A([`json-value`,e.value===null?`null`:typeof e.value])},M(o.value),3)),!i.value&&typeof e.value==`string`&&e.value.length>240?(V(),H(`button`,{key:5,class:`text-button`,onClick:s[2]||=e=>r.value=!r.value},M(r.value?`收起`:`展开`),1)):K(``,!0)]),i.value&&n.value?(V(),H(`div`,Hd,[(V(!0),H(B,null,z(a.value,([t,n])=>(V(),ra(c,{key:t,label:t,value:n,depth:e.depth+1},null,8,[`label`,`value`,`depth`]))),128)),U(`div`,Ud,M(Array.isArray(e.value)?`]`:`}`),1)])):K(``,!0)])}}},Gd={class:`excel-preview`},Kd={class:`preview-filebar`},qd={key:0,class:`tag`},Jd=[`href`],Yd={key:0,class:`empty-state`},Xd={key:1,class:`error-banner`},Zd={class:`sheet-scroll`,tabindex:`0`,"aria-label":`Excel工作表`},Qd={class:`sheet-grid`},$d={class:`row-number`},ef=[`rowspan`,`colspan`],tf={class:`sheet-footer`},nf={class:`sheet-tabs`,role:`tablist`,"aria-label":`工作表`},rf=[`aria-selected`,`onClick`],af={key:0},of={__name:`ExcelPreview`,props:{url:String,downloadUrl:String,filename:{type:String,default:`结果.xlsx`},origin:String},setup(e){let t=e,n=L(null),r=L(``),i=L(!1),a=L(0),o=0;Ln(()=>t.url,async e=>{let t=++o;if(n.value=null,r.value=``,a.value=0,e){i.value=!0;try{let r=await es(is(e));t===o&&(n.value=r)}catch(e){t===o&&(r.value=e.message)}finally{t===o&&(i.value=!1)}}},{immediate:!0});let s=q(()=>n.value?.sheets?.[a.value]),c=q(()=>Math.max(1,...(s.value?.rows||[]).map(e=>e.length),...(s.value?.merges||[]).map(e=>e.start_col+e.col_span))),l=q(()=>{let e={};for(let t of s.value?.merges||[])for(let n=t.start_row;n<t.start_row+t.row_span;n++)for(let r=t.start_col;r<t.start_col+t.col_span;r++)e[`${n}:${r}`]=n===t.start_row&&r===t.start_col?t:{hidden:!0};return e}),u=(e,t)=>l.value[`${e}:${t}`]||{},d=(e,t)=>n.value?.styles?.[s.value?.cell_styles?.[`${e}:${t}`]]||{},f=(e,t)=>{let n=d(e,t);return{background:n.background,color:n.color,fontWeight:n.bold?`600`:void 0,fontSize:n.font_size?Math.min(20,Math.max(12,n.font_size))+`px`:void 0}},p=e=>{let t=``;for(;e;){let n=(e-1)%26;t=String.fromCharCode(65+n)+t,e=Math.floor((e-1)/26)}return t},m=(e,t,n)=>{if(typeof e!=`number`)return e===!0?`TRUE`:e===!1?`FALSE`:e;let r=d(t,n).number_format||`General`;if(/[yd]/i.test(r.replace(/"[^"]*"/g,``)))return new Date(Date.UTC(1899,11,30)+e*864e5).toISOString().slice(0,r.includes(`h`)?16:10).replace(`T`,` `);let i=r.match(/\.(0+)/)?.[1].length;return r.includes(`%`)?new Intl.NumberFormat(`zh-CN`,{style:`percent`,minimumFractionDigits:i||0,maximumFractionDigits:i||0}).format(e):new Intl.NumberFormat(`zh-CN`,{useGrouping:r.includes(`,`),minimumFractionDigits:i||0,maximumFractionDigits:i??4}).format(e)};return(t,o)=>(V(),H(`div`,Gd,[U(`div`,Kd,[U(`div`,null,[W(Y,{name:`table`}),U(`strong`,null,M(e.filename),1),e.origin?(V(),H(`span`,qd,M(e.origin===`returned`?`智能体返回附件`:`结构化结果导出`),1)):K(``,!0)]),e.downloadUrl?(V(),H(`a`,{key:0,class:`button small secondary`,href:R(is)(e.downloadUrl)+`&download=true`,download:``},[W(Y,{name:`download`,size:15}),o[0]||=G(`下载Excel`,-1)],8,Jd)):K(``,!0)]),i.value?(V(),H(`div`,Yd,[...o[1]||=[U(`span`,{class:`spinner`},null,-1),G(`正在读取工作簿 `,-1)]])):r.value?(V(),H(`div`,Xd,M(r.value),1)):s.value?(V(),H(B,{key:2},[U(`div`,Zd,[U(`table`,Qd,[U(`thead`,null,[U(`tr`,null,[o[2]||=U(`th`,{class:`row-number`},null,-1),(V(!0),H(B,null,z(c.value,e=>(V(),H(`th`,{key:e},M(p(e)),1))),128))])]),U(`tbody`,null,[(V(!0),H(B,null,z(s.value.rows,(e,t)=>(V(),H(`tr`,{key:t},[U(`th`,$d,M(t+1),1),(V(!0),H(B,null,z(c.value,n=>(V(),H(B,{key:n},[u(t,n-1).hidden?K(``,!0):(V(),H(`td`,{key:0,rowspan:u(t,n-1).row_span,colspan:u(t,n-1).col_span,style:ue(f(t,n-1)),class:A({numeric:typeof e[n-1]==`number`,"sheet-first-row":t===0})},M(m(e[n-1],t,n-1)),15,ef))],64))),128))]))),128))])])]),U(`div`,tf,[U(`div`,nf,[(V(!0),H(B,null,z(n.value.sheets,(e,t)=>(V(),H(`button`,{key:e.name,role:`tab`,"aria-selected":a.value===t,class:A({active:a.value===t}),onClick:e=>a.value=t},[W(Y,{name:`table`,size:14}),G(M(e.name),1)],10,rf))),128))]),U(`span`,null,[G(M(s.value.total_rows)+`行`,1),s.value.truncated?(V(),H(`span`,af,`,当前仅预览前300行、60列`)):K(``,!0)])])],64)):K(``,!0)]))}},sf=[`aria-label`],cf=[`href`],lf=[`src`,`title`],uf={key:1,class:`file-image`},df=[`src`,`alt`],ff={class:`file-json-actions`},pf=[`disabled`],mf={key:0,class:`error-banner`},hf={key:1,class:`json-scroll`},gf={__name:`FilePreview`,props:{file:Object},emits:[`close`,`apply-json`],setup(e){let t=e,n=L(),r;Ln(()=>t.file,async e=>{e?(r=document.activeElement,await gn(),n.value?.focus()):r?.focus?.()});let i=L(null),a=L(``),o=0;return Ln(()=>t.file,async e=>{let t=++o;if(i.value=null,a.value=``,e?.kind===`json`)try{let n=await es(is(e.preview_url));t===o&&(i.value=n.content)}catch(e){t===o&&(a.value=e.message)}},{immediate:!0}),(t,r)=>(V(),ra(Qn,{to:`body`},[e.file?(V(),H(`div`,{key:0,ref_key:`overlay`,ref:n,tabindex:`-1`,class:`modal-backdrop`,onClick:r[2]||=Uo(e=>t.$emit(`close`),[`self`]),onKeydown:r[3]||=Go(e=>t.$emit(`close`),[`esc`])},[U(`section`,{class:`file-modal`,role:`dialog`,"aria-modal":`true`,"aria-label":e.file.filename},[U(`header`,null,[U(`div`,null,[W(Y,{name:`file`}),U(`strong`,null,M(e.file.filename),1)]),U(`div`,null,[U(`a`,{class:`button secondary small`,href:R(is)(e.file.url)+`&download=true`,download:``},`下载文件`,8,cf),U(`button`,{class:`icon-button`,"aria-label":`关闭预览`,onClick:r[0]||=e=>t.$emit(`close`)},[W(Y,{name:`close`})])])]),e.file.kind===`pdf`?(V(),H(`iframe`,{key:0,src:R(is)(e.file.url),title:e.file.filename},null,8,lf)):e.file.kind===`image`?(V(),H(`div`,uf,[U(`img`,{src:R(is)(e.file.url),alt:e.file.filename},null,8,df)])):e.file.kind===`excel`?(V(),ra(of,{key:2,url:e.file.preview_url,"download-url":e.file.url,filename:e.file.filename},null,8,[`url`,`download-url`,`filename`])):e.file.kind===`json`?(V(),H(B,{key:3},[U(`div`,ff,[r[4]||=U(`p`,null,` 可作为完整请求加载,也可选择开停、风量等JSON片段随资料一同提交。 `,-1),U(`button`,{class:`button primary small`,disabled:!i.value,onClick:r[1]||=n=>t.$emit(`apply-json`,{file:e.file,value:i.value})},` 用作请求 `,8,pf)]),a.value?(V(),H(`div`,mf,M(a.value),1)):(V(),H(`div`,hf,[W(Wd,{value:i.value},null,8,[`value`])]))],64)):K(``,!0)],8,sf)],544)):K(``,!0)]))}};function _f(e,t){if(!e)return`正在加载输入设置`;if(!t.length)return`请选择或上传测定报告PDF`;if(e.switch_source===`file`&&!e.switch_asset_id)return`请选择切换曲线JSON`;if(e.flow_source===`file`&&!e.flow_asset_id)return`请选择风量数据JSON`;if(!e.switch_asset_id){let t=e.switch_interval_minutes;if(t===``||!Number.isFinite(Number(t))||Number(t)<0||Number(t)>120)return`切换间隔须在0~120分钟之间`}if(!e.flow_asset_id)for(let[t,n]of[[`before_flow_m3_min`,1e-6],[`after_flow_m3_min`,0]]){let r=e[t];if(r===``||!Number.isFinite(Number(r))||Number(r)<n||Number(r)>1e6)return`请输入有效风量,切换前风量须大于0,切换后风量可为0`}return``}function vf(e){let t=Math.max(0,Number(e?.switch_interval_minutes)||0),n=Math.max(0,Number(e?.before_flow_m3_min)||0),r=Math.max(0,Number(e?.after_flow_m3_min)||0),i=t+40,a=e=>35+(e+40)/(i+40)*300,o=e=>e.map(([e,t],n)=>`${n?`L`:`M`}${a(e).toFixed(2)},${t.toFixed(2)}`).join(` `),s=+(e?.direction===`2_to_1`),c=Math.max(n,r,1)*1.15,l=e=>105-e/c*79,u=[],d=[];return u[s]=o([[-40,26],[0,26],[0,105],[i,105]]),u[1-s]=o([[-40,105],[t,105],[t,26],[i,26]]),d[s]=o([[-40,l(n)],[0,l(n)],[0,105],[i,105]]),d[1-s]=o([[-40,105],[t,105],[t,l(r)],[i,l(r)]]),{states:u,flows:d,startX:a(0),endX:a(t),ticks:[-40,0,t+40].map(e=>({value:e,x:a(e)})),max:Math.ceil(c),change:n>0?Math.abs(r-n)/n*100:null}}var yf={class:`panel fan-input-card report-input-card`,"data-testid":`report-input`},bf=[`disabled`],xf={class:`report-file-list`,"aria-label":`测定报告资料库`},Sf=[`checked`,`disabled`,`aria-label`,`onChange`],Cf=[`aria-label`,`onClick`],wf={key:0,class:`field-help`},Tf={class:`field-help`},Ef={class:`panel fan-input-card`,"data-testid":`switch-input`},Df={class:`input-source-tabs`,"aria-label":`切换曲线来源`},Of=[`disabled`],kf=[`disabled`],Af={class:`fan-number-grid`},jf={class:`number-field`},Mf=[`value`,`disabled`],Nf={class:`number-field`},Pf={class:`input-with-unit`},Ff=[`value`,`disabled`],If=[`aria-label`],Lf=[`x`,`width`],Rf=[`d`],zf=[`x`],Bf={key:1,class:`curve-file-input`},Vf=[`value`,`disabled`],Hf=[`value`],Uf=[`disabled`],Wf={class:`panel fan-input-card`,"data-testid":`flow-input`},Gf={class:`input-source-tabs`,"aria-label":`风量数据来源`},Kf=[`disabled`],qf=[`disabled`],Jf={class:`fan-number-grid`},Yf={class:`number-field`},Xf={class:`input-with-unit`},Zf=[`value`,`disabled`],Qf={class:`number-field`},$f={class:`input-with-unit`},ep=[`value`,`disabled`],tp=[`aria-label`],np=[`d`],rp=[`x`],ip={class:`input-curve-legend`},ap={key:0},op={key:1,class:`curve-file-input`},sp=[`value`,`disabled`],cp=[`value`],lp=[`disabled`],up={class:`single-run-note`},dp={__name:`MainFanInputs`,props:{modelValue:Object,reportIds:Array,assets:Array,disabled:Boolean,uploading:String},emits:[`update:modelValue`,`update:reportIds`,`upload`,`preview`],setup(e,{emit:t}){let n=e,r=t,i=L(),a=L(),o=L(),s=q(()=>n.assets.filter(e=>e.kind===`pdf`)),c=q(()=>n.assets.filter(e=>e.kind===`json`)),l=q(()=>vf(n.modelValue)),u=q(()=>n.modelValue.direction===`2_to_1`?`2号 → 1号`:`1号 → 2号`);function d(e,t){r(`update:modelValue`,{...n.modelValue,[e]:t})}function f(e){r(`update:reportIds`,n.reportIds.includes(e)?n.reportIds.filter(t=>t!==e):[...n.reportIds,e])}function p(e,t){t?.length&&r(`upload`,{kind:e,files:Array.from(t)})}function m(e,t){r(`update:modelValue`,{...n.modelValue,[e+`_source`]:t,[e+`_asset_id`]:null})}function h(e){let t=n.assets.find(t=>t.id===n.modelValue[e+`_asset_id`]);t&&r(`preview`,t)}return(t,n)=>(V(),H(B,null,[U(`section`,yf,[n[21]||=U(`div`,{class:`panel-heading`},[U(`span`,{class:`step-number`},`01`),U(`h3`,null,`测定报告 PDF`),U(`span`,{class:`input-kind`},`原始资料`)],-1),n[22]||=U(`p`,{class:`input-description`},`从原件提取两台风机参数及性能数据。`,-1),U(`input`,{ref_key:`reportUpload`,ref:i,type:`file`,accept:`.pdf`,multiple:``,hidden:``,onChange:n[0]||=e=>{p(`report`,e.target.files),e.target.value=``}},null,544),U(`button`,{class:`upload-zone compact-upload`,disabled:e.disabled||!!e.uploading,onClick:n[1]||=e=>i.value.click(),onDragover:n[2]||=Uo(()=>{},[`prevent`]),onDrop:n[3]||=Uo(t=>!e.disabled&&p(`report`,t.dataTransfer.files),[`prevent`])},[W(Y,{name:`upload`,size:21}),U(`strong`,null,M(e.uploading||`上传测定报告 PDF`),1),n[20]||=U(`small`,null,`支持扫描件和文字版 · 单份50MB以内`,-1)],40,bf),U(`div`,xf,[(V(!0),H(B,null,z(s.value,t=>(V(),H(`div`,{key:t.id,class:A([`report-file`,{selected:e.reportIds.includes(t.id)}])},[U(`label`,null,[U(`input`,{type:`checkbox`,checked:e.reportIds.includes(t.id),disabled:e.disabled,"aria-label":`选择 `+t.filename,onChange:e=>f(t.id)},null,40,Sf),U(`span`,null,[U(`strong`,null,M(t.filename),1),U(`small`,null,M(t.source===`sample`?`内置原件`:`已上传`)+` · `+M(R(rs)(t.size)),1)])]),U(`button`,{class:`icon-button`,"aria-label":`预览 `+t.filename,onClick:e=>r(`preview`,t)},[W(Y,{name:`eye`,size:16})],8,Cf)],2))),128)),s.value.length?K(``,!0):(V(),H(`p`,wf,` 上传包含主机与备用风机的报告,可选择多份。 `))]),U(`p`,Tf,` 已选 `+M(e.reportIds.length)+` 份 · 每次从所选 PDF 重新识别 `,1)]),U(`section`,Ef,[n[34]||=U(`div`,{class:`panel-heading`},[U(`span`,{class:`step-number`},`02`),U(`h3`,null,`两台风机切换曲线`),U(`span`,{class:`input-kind`},`开停状态`)],-1),U(`div`,Df,[U(`button`,{class:A({active:e.modelValue.switch_source===`simulation`}),disabled:e.disabled,onClick:n[4]||=e=>m(`switch`,`simulation`)},` 设置模拟曲线 `,10,Of),U(`button`,{class:A({active:e.modelValue.switch_source===`file`}),disabled:e.disabled,onClick:n[5]||=e=>m(`switch`,`file`)},` 选择 JSON `,10,kf)]),e.modelValue.switch_source===`simulation`?(V(),H(B,{key:0},[U(`div`,Af,[U(`label`,jf,[n[24]||=G(`切换方向`,-1),U(`select`,{value:e.modelValue.direction,disabled:e.disabled,onChange:n[6]||=e=>d(`direction`,e.target.value)},[...n[23]||=[U(`option`,{value:`1_to_2`},`1号 → 2号`,-1),U(`option`,{value:`2_to_1`},`2号 → 1号`,-1)]],40,Mf)]),U(`label`,Nf,[n[26]||=G(`切换间隔 `,-1),U(`div`,Pf,[U(`input`,{"aria-label":`切换间隔(分钟)`,type:`number`,min:`0`,max:`120`,step:`0.5`,value:e.modelValue.switch_interval_minutes,disabled:e.disabled,onInput:n[7]||=e=>d(`switch_interval_minutes`,e.target.value===``?``:Number(e.target.value))},null,40,Ff),n[25]||=U(`span`,null,`分钟`,-1)])])]),(V(),H(`svg`,{class:`input-curve`,viewBox:`0 0 355 134`,role:`img`,"aria-label":`${u.value}切换曲线,间隔${e.modelValue.switch_interval_minutes}分钟`},[U(`rect`,{x:l.value.startX,y:`20`,width:Math.max(0,l.value.endX-l.value.startX),height:`86`,fill:`#f2f6f9`},null,8,Lf),n[27]||=U(`path`,{d:`M35 18V105H335`,class:`curve-axis`},null,-1),n[28]||=U(`path`,{d:`M35 26H335`,class:`curve-grid`},null,-1),n[29]||=U(`text`,{x:`10`,y:`30`},`开`,-1),n[30]||=U(`text`,{x:`10`,y:`109`},`停`,-1),(V(!0),H(B,null,z(l.value.states,(e,t)=>(V(),H(`path`,{key:t,d:e,class:A([`input-curve-line`,`fan-`+t])},null,10,Rf))),128)),(V(!0),H(B,null,z(l.value.ticks,e=>(V(),H(`text`,{key:e.value,x:e.x,y:`122`,"text-anchor":`middle`},M(e.value)+`分 `,9,zf))),128))],8,If)),n[31]||=U(`div`,{class:`input-curve-legend`},[U(`span`,null,[U(`i`,{class:`fan-0`}),G(`1号通风机`)]),U(`span`,null,[U(`i`,{class:`fan-1`}),G(`2号通风机`)]),U(`small`,null,`0分为原运行风机停机`)],-1)],64)):(V(),H(`div`,Bf,[U(`select`,{"aria-label":`切换曲线JSON`,value:e.modelValue.switch_asset_id||``,disabled:e.disabled,onChange:n[8]||=e=>d(`switch_asset_id`,e.target.value||null)},[n[32]||=U(`option`,{value:``},`请选择开停状态 JSON`,-1),(V(!0),H(B,null,z(c.value,e=>(V(),H(`option`,{key:e.id,value:e.id},M(e.filename),9,Hf))),128))],40,Vf),U(`input`,{ref_key:`switchUpload`,ref:a,type:`file`,accept:`.json`,hidden:``,onChange:n[9]||=e=>{p(`switch`,e.target.files),e.target.value=``}},null,544),U(`div`,null,[U(`button`,{class:`button small secondary`,disabled:e.disabled||!!e.uploading,onClick:n[10]||=e=>a.value.click()},[W(Y,{name:`upload`,size:14}),n[33]||=G(`上传 JSON`,-1)],8,Uf),e.modelValue.switch_asset_id?(V(),H(`button`,{key:0,class:`text-button`,onClick:n[11]||=e=>h(`switch`)},` 预览数据 `)):K(``,!0)])])),n[35]||=U(`p`,{class:`field-help`},` 按整机开停状态生成时序,计算停机至备用机启动的间隔。 `,-1)]),U(`section`,Wf,[n[46]||=U(`div`,{class:`panel-heading`},[U(`span`,{class:`step-number`},`03`),U(`h3`,null,`两台风机风量数据`),U(`span`,{class:`input-kind`},`切换前后`)],-1),U(`div`,Gf,[U(`button`,{class:A({active:e.modelValue.flow_source===`simulation`}),disabled:e.disabled,onClick:n[12]||=e=>m(`flow`,`simulation`)},` 设置模拟风量 `,10,Kf),U(`button`,{class:A({active:e.modelValue.flow_source===`file`}),disabled:e.disabled,onClick:n[13]||=e=>m(`flow`,`file`)},` 选择 JSON `,10,qf)]),e.modelValue.flow_source===`simulation`?(V(),H(B,{key:0},[U(`div`,Jf,[U(`label`,Yf,[G(`切换前 · `+M(e.modelValue.direction===`2_to_1`?`2号`:`1号`)+`风机 `,1),U(`div`,Xf,[U(`input`,{"aria-label":`切换前风量(m³/min)`,type:`number`,min:`0.01`,max:`1000000`,step:`10`,value:e.modelValue.before_flow_m3_min,disabled:e.disabled,onInput:n[14]||=e=>d(`before_flow_m3_min`,e.target.value===``?``:Number(e.target.value))},null,40,Zf),n[36]||=U(`span`,null,`m³/min`,-1)])]),U(`label`,Qf,[G(`切换后 · `+M(e.modelValue.direction===`2_to_1`?`1号`:`2号`)+`风机 `,1),U(`div`,$f,[U(`input`,{"aria-label":`切换后风量(m³/min)`,type:`number`,min:`0`,max:`1000000`,step:`10`,value:e.modelValue.after_flow_m3_min,disabled:e.disabled,onInput:n[15]||=e=>d(`after_flow_m3_min`,e.target.value===``?``:Number(e.target.value))},null,40,ep),n[37]||=U(`span`,null,`m³/min`,-1)])])]),(V(),H(`svg`,{class:`input-curve`,viewBox:`0 0 355 134`,role:`img`,"aria-label":`切换前风量${e.modelValue.before_flow_m3_min},切换后${e.modelValue.after_flow_m3_min}立方米每分钟`},[n[38]||=U(`path`,{d:`M35 18V105H335`,class:`curve-axis`},null,-1),n[39]||=U(`path`,{d:`M35 26H335 M35 65H335`,class:`curve-grid`},null,-1),n[40]||=U(`text`,{x:`3`,y:`14`},`m³/min`,-1),n[41]||=U(`text`,{x:`26`,y:`109`,"text-anchor":`end`},`0`,-1),(V(!0),H(B,null,z(l.value.flows,(e,t)=>(V(),H(`path`,{key:t,d:e,class:A([`input-curve-line`,`fan-`+t])},null,10,np))),128)),(V(!0),H(B,null,z(l.value.ticks,e=>(V(),H(`text`,{key:e.value,x:e.x,y:`122`,"text-anchor":`middle`},M(e.value)+`分 `,9,rp))),128))],8,tp)),U(`div`,ip,[n[42]||=U(`span`,null,[U(`i`,{class:`fan-0`}),G(`1号通风机`)],-1),n[43]||=U(`span`,null,[U(`i`,{class:`fan-1`}),G(`2号通风机`)],-1),l.value.change===null?K(``,!0):(V(),H(`small`,ap,`变化 `+M(l.value.change.toFixed(2))+`%`,1))])],64)):(V(),H(`div`,op,[U(`select`,{"aria-label":`风量数据JSON`,value:e.modelValue.flow_asset_id||``,disabled:e.disabled,onChange:n[16]||=e=>d(`flow_asset_id`,e.target.value||null)},[n[44]||=U(`option`,{value:``},`请选择两台风机风量 JSON`,-1),(V(!0),H(B,null,z(c.value,e=>(V(),H(`option`,{key:e.id,value:e.id},M(e.filename),9,cp))),128))],40,sp),U(`input`,{ref_key:`flowUpload`,ref:o,type:`file`,accept:`.json`,hidden:``,onChange:n[17]||=e=>{p(`flow`,e.target.files),e.target.value=``}},null,544),U(`div`,null,[U(`button`,{class:`button small secondary`,disabled:e.disabled||!!e.uploading,onClick:n[18]||=e=>o.value.click()},[W(Y,{name:`upload`,size:14}),n[45]||=G(`上传 JSON`,-1)],8,lp),e.modelValue.flow_asset_id?(V(),H(`button`,{key:0,class:`text-button`,onClick:n[19]||=e=>h(`flow`)},` 预览数据 `)):K(``,!0)])])),n[47]||=U(`p`,{class:`field-help`},` 生成切换前后各40分钟以上的风量数据,供智能体提取稳定运行窗口。 `,-1)]),U(`div`,up,[W(Y,{name:`refresh`,size:17}),n[48]||=U(`div`,null,[U(`strong`,null,`每次独立分析`),U(`p`,null,`新会话、新 workspace,重新识别所选原件。历史记录只用于查看。`)],-1)])],64))}},fp={class:`test-lab`},pp={class:`lab-page-heading`},mp={class:`history-select`},hp=[`disabled`,`value`],gp=[`value`],_p={key:0,class:`error-banner lab-error`,role:`alert`},vp={class:`lab-config`},yp={class:`config-scroll`},bp={class:`test-agent-select`},xp=[`disabled`],Sp=[`value`],Cp={class:`panel`},wp={class:`preset-grid`},Tp=[`disabled`,`onClick`],Ep={key:0,class:`preset-check`},Dp={key:0,class:`expected-line`},Op={class:`panel`},kp={class:`panel-heading`},Ap={class:`subtle`},jp=[`disabled`],Mp={class:`upload-icon`},Np={key:0,class:`input-source-chip`},Pp={class:`asset-search`},Fp={class:`asset-list`},Ip=[`checked`,`disabled`,`aria-label`,`onChange`],Lp=[`title`],Rp=[`aria-label`,`onClick`],zp={key:0,class:`list-empty`},Bp={class:`panel request-panel`},Vp={class:`execution-modes`},Hp=[`disabled`],Up=[`disabled`],Wp={class:`checkbox-line`},Gp=[`disabled`],Kp={class:`request-editor`},qp=[`disabled`],Jp={key:0,class:`inline-error`},Yp={class:`config-run`},Xp=[`disabled`],Zp={key:0,class:`spinner`},Qp={class:`run-note`},$p={class:`panel lab-result`},em={class:`result-heading`},tm={class:`result-heading-icon`},nm={key:0},rm={key:0},im={key:1},am={key:1,class:`running-pill`},om={key:2,class:`tag`},sm={class:`result-tabs`,role:`tablist`,"aria-label":`测试结果视图`},cm=[`aria-selected`,`onClick`],lm={key:0,class:`count-badge`},um={key:0,class:`run-progress`},dm={key:0},fm={key:1,class:`error-banner result-error`},pm={key:2,class:`notice`},mm={class:`json-toolbar`},hm={class:`request-summary`},gm={class:`json-scroll`},_m={class:`json-toolbar`},vm={key:0,value:`platform`},ym={class:`json-scroll`},bm={key:5,class:`report-preview`},xm={key:0,class:`artifact-select`},Sm=[`value`],Cm={key:2,class:`empty-state`},wm={key:7,class:`result-empty`},Tm={class:`empty-illustration`},Em={class:`empty-format-tags`},Dm={__name:`TestLab`,props:{active:Boolean,requestedAgent:String},emits:[`status`,`agent`,`open-session`],setup(e,{emit:t}){let n=e,r=t,i=L([]),a=L([]),o=L(n.requestedAgent||`main_fan`),s=L(`normal`),c=L(`{}`),l=L([]),u=L(null),d=L(`pipeline`),f=L(!1),p=L(null),m=L([]),h=L(null),g=L(`json`),_=L(`platform`),v=L(``),y=L(!1),b=L(!1),x=L(``),S=L(``),C=L(`复制JSON`),w=L(),ee=L(``),te=!1,T,E,ne=!1,D=0,re=0,ie=L(Date.now()),O=L(null),ae=L([]),oe=q(()=>o.value===`main_fan`?_f(O.value,ae.value):_e.value),se=new Set([`completed`,`needs_materials`,`failed`,`cancelled`,`waiting_input`]),ce=q(()=>!!p.value&&!se.has(p.value.status)),le=q(()=>ce.value||y.value),ue=q(()=>i.value.find(e=>e.name===o.value)),de=q(()=>ue.value?.presets||[]),fe=q(()=>de.value.find(e=>e.id===s.value)),k=q(()=>a.value.filter(e=>e.filename.toLowerCase().includes(S.value.toLowerCase()))),pe=q(()=>p.value?.result),me=q(()=>pe.value?.platform_payload?.judgment?.resultCode||pe.value?.assessment?.decision?.result_code),he=q(()=>_.value===`platform`&&pe.value?.platform_payload?pe.value.platform_payload:pe.value),ge=q(()=>p.value?.artifacts?.find(e=>e.id===ee.value)||p.value?.artifacts?.[0]),_e=q(()=>{try{let e=JSON.parse(c.value);return e&&typeof e==`object`&&!Array.isArray(e)?``:`请求必须为JSON对象`}catch(e){return e.message}}),ve=q(()=>{if(!p.value)return``;let e=Date.parse(p.value.created_at.replace(` `,`T`)),t=p.value.finished_at?Date.parse(p.value.finished_at.replace(` `,`T`)):ie.value;return Number.isFinite(e)&&Number.isFinite(t)?`${Math.max(0,Math.round((t-e)/1e3))} 秒`:``}),ye={queued:`等待执行`,running:`正在执行`,completed:`执行完成`,failed:`执行失败`,cancelled:`已取消`,needs_materials:`资料不足`,waiting_input:`等待补充信息`},be={data_preparation:`资料识别`,basic_parameters:`参数比较`,performance_curves:`性能曲线`,switch_events:`切换分析`,rules:`规则匹配`,overall_assessment:`综合判定`,report:`报告生成`};function j(){r(`status`,{text:ce.value?`测试执行中`:p.value?ye[p.value.status]||p.value.status:`测试工作台已就绪`,kind:ce.value?`busy`:p.value?.status===`failed`?`error`:`ready`})}Ln(()=>p.value?.status,j),Ln(()=>p.value?.artifacts,e=>{e?.length&&!e.some(e=>e.id===ee.value)&&(ee.value=e[0].id)}),Ln(()=>n.requestedAgent,e=>{e&&e!==o.value&&!le.value&&(o.value=e,te&&e!==`main_fan`&&Ce(de.value[0]?.id||`custom`))}),Ln(()=>n.active,async e=>{e&&!te&&await xe()},{immediate:!0});async function xe(){y.value=!0,v.value=``;try{let e=await es(`/api/test-lab/catalog?user_name=${Qo}`);i.value=e.agents,a.value=e.assets,te=!0,i.value.some(e=>e.name===o.value)||(o.value=i.value[0]?.name||``),O.value=e.main_fan_simulation;let t=a.value.find(e=>e.kind===`pdf`&&e.source===`sample`&&e.filename.includes(`通风机`))||a.value.find(e=>e.kind===`pdf`);ae.value=t?[t.id]:[],o.value!==`main_fan`&&await Ce(de.value[0]?.id||`custom`),await Se();let n=localStorage.getItem(`vent-agent-test-run`);n&&m.value.some(e=>e.job_id===n&&!se.has(e.status))&&await je(n),j()}catch(e){v.value=e.message,r(`status`,{text:`测试页加载失败`,kind:`error`})}finally{y.value=!1}E||=setInterval(()=>{ie.value=Date.now()},1e3)}async function Se(){m.value=(await es(`/api/test-lab/runs?user_name=default`)).items||[]}async function Ce(e){if(ce.value)return;let t=++re;b.value=!0,v.value=``;try{if(e===`custom`){c.value=`{}`,s.value=e;return}let n=await es(`/api/test-lab/presets/${o.value}/${e}`);if(t!==re)return;s.value=e,c.value=JSON.stringify(n.input,null,2),l.value=[],u.value=null,f.value=!1}catch(e){v.value=e.message}finally{t===re&&(b.value=!1)}}async function N(){r(`agent`,o.value),o.value!==`main_fan`&&await Ce(de.value[0]?.id||`custom`)}async function we({kind:e,files:t}){if(le.value||x.value)return;v.value=``;let n=!1;for(let r of t)if(!r.name.toLowerCase().endsWith(e===`report`?`.pdf`:`.json`))v.value=e===`report`?`测定报告请选择PDF文件`:`曲线数据请选择JSON文件`;else{x.value=r.name;try{let t=new FormData;t.append(`file`,r);let i=await es(`/api/test-lab/assets?user_name=${Qo}`,{method:`POST`,body:t});a.value.unshift(i),e===`report`?(n||(ae.value=[]),ae.value.push(i.id),n=!0):O.value={...O.value,[e+`_source`]:`file`,[e+`_asset_id`]:i.id}}catch(e){v.value=`${r.name}:${e.message}`}}x.value=``}function Te(e){if(!le.value&&e.can_analyze){if(l.value.includes(e.id))l.value=l.value.filter(t=>t!==e.id);else{if([`pdf`,`image`].includes(e.kind)&&![`documents`,`custom`].includes(s.value))try{let e=JSON.parse(c.value);e.reports=[],e.use_gateway=!1,c.value=JSON.stringify(e,null,2),s.value=`documents`}catch{}l.value.push(e.id)}}}function P({file:e,value:t}){let n=t?.input&&typeof t.input==`object`?t.input:t;c.value=JSON.stringify(n,null,2),u.value=e,s.value=`custom`,l.value=l.value.filter(t=>t!==e.id),h.value=null}async function Ee(e){if(!le.value){for(let t of Array.from(e||[])){x.value=t.name;try{let e=new FormData;e.append(`file`,t);let n=await es(`/api/test-lab/assets?user_name=${Qo}`,{method:`POST`,body:e});if(a.value.unshift(n),n.kind===`json`){let e=(await es(n.preview_url)).content;e.input||e.target||e.fan_id||e.mine_code&&!e.schema_version?P({file:n,value:e}):Te(n)}else n.can_analyze?Te(n):h.value=n}catch(e){v.value=`${t.name}:${e.message}`}}x.value=``,w.value&&(w.value.value=``)}}function De(){clearTimeout(T),T=null}function Oe(){De(),ce.value&&(T=setTimeout(ke,1400))}async function ke(){if(ne||!p.value)return;let e=D;ne=!0;try{let t=await es(`/api/test-lab/runs/${p.value.id}?user_name=${Qo}`);if(e!==D)return;p.value=t,se.has(t.status)&&await Se()}catch(t){e===D&&(v.value=t.message)}finally{ne=!1,Oe()}}async function Ae(){if(!(le.value||oe.value||b.value||x.value)){y.value=!0,v.value=``,De(),++D;try{let e=o.value===`main_fan`,t=e?{}:JSON.parse(c.value),n=e?`主备风机三项输入研判`:fe.value?.name||u.value?.filename||`自定义测试`,r=await es(`/api/test-lab/runs?user_name=${Qo}`,ts({agent_name:o.value,scenario_id:e?`three_inputs`:s.value,label:n,input:t,asset_ids:e?[...ae.value]:[...l.value],input_asset_id:e?null:u.value?.id||null,execution_mode:e?`agent`:d.value,main_fan_simulation:e?{...O.value}:null,request_id:crypto.randomUUID()}));ee.value=``,p.value=r,g.value=`json`,_.value=`platform`,localStorage.setItem(`vent-agent-test-run`,r.id),await Se(),Oe()}catch(e){v.value=e.message}finally{y.value=!1,j()}}}async function je(e){if(e&&!ce.value){De(),++D;try{p.value=await es(`/api/test-lab/runs/${e}?user_name=${Qo}`);let t=p.value.request.submitted;t&&t.agent_name!==`main_fan`&&(o.value=t.agent_name,r(`agent`,o.value),s.value=t.scenario_id,c.value=JSON.stringify(t.input,null,2),l.value=[...t.asset_ids],d.value=t.execution_mode,f.value=t.input.document_cache_policy===`refresh`,u.value=p.value.request.input_asset||null),localStorage.setItem(`vent-agent-test-run`,e),ee.value=``,Oe()}catch(e){v.value=e.message}}}async function Me(){if(p.value)try{p.value=await es(`/api/test-lab/runs/${p.value.id}/cancel?user_name=${Qo}`,{method:`POST`}),Oe(),await Se()}catch(e){v.value=e.message}}async function Ne(){try{await navigator.clipboard.writeText(JSON.stringify(he.value,null,2)),C.value=`已复制`,setTimeout(()=>C.value=`复制JSON`,1600)}catch{v.value=`复制失败,请使用下载JSON`}}return Cr(()=>{De(),clearInterval(E),++D}),(e,t)=>(V(),H(`section`,fp,[U(`div`,pp,[t[22]||=U(`div`,null,[U(`span`,{class:`eyebrow`},`AGENT TESTING`),U(`h2`,null,[G(`主备风机研判测试`),U(`span`,{class:`lab-badge`},`测试工作台`)]),U(`p`,null,`配置测定报告、开停曲线和风量数据,交给智能体完成一次独立研判。`)],-1),U(`div`,mp,[W(Y,{name:`clock`,size:17}),U(`select`,{"aria-label":`选择测试记录`,disabled:ce.value,value:p.value?.id||``,onChange:t[0]||=e=>je(e.target.value)},[t[21]||=U(`option`,{value:``},`测试记录`,-1),(V(!0),H(B,null,z(m.value,e=>(V(),H(`option`,{key:e.job_id,value:e.job_id},M(e.label)+` · `+M(ye[e.status]||e.status)+` · `+M(e.created_at),9,gp))),128))],40,hp),U(`button`,{class:`icon-button`,"aria-label":`刷新测试记录`,onClick:Se},[W(Y,{name:`refresh`,size:15})])])]),v.value?(V(),H(`div`,_p,[U(`span`,null,M(v.value),1),U(`button`,{class:`icon-button`,"aria-label":`关闭错误提示`,onClick:t[1]||=e=>v.value=``},[W(Y,{name:`close`,size:16})])])):K(``,!0),U(`div`,{class:A([`lab-columns`,{"three-input-layout":o.value===`main_fan`}])},[U(`aside`,vp,[U(`div`,yp,[U(`div`,bp,[t[23]||=U(`label`,{class:`field-label`,for:`testAgent`},`业务智能体`,-1),jn(U(`select`,{id:`testAgent`,"onUpdate:modelValue":t[2]||=e=>o.value=e,class:`field-select`,disabled:le.value,onChange:N},[(V(!0),H(B,null,z(i.value,e=>(V(),H(`option`,{key:e.name,value:e.name},M(e.display_name),9,Sp))),128))],40,xp),[[Io,o.value]])]),o.value===`main_fan`&&O.value?(V(),ra(dp,{key:0,modelValue:O.value,"onUpdate:modelValue":t[3]||=e=>O.value=e,"report-ids":ae.value,"onUpdate:reportIds":t[4]||=e=>ae.value=e,assets:a.value,disabled:le.value,uploading:x.value,onUpload:we,onPreview:t[5]||=e=>h.value=e},null,8,[`modelValue`,`report-ids`,`assets`,`disabled`,`uploading`])):o.value===`main_fan`?K(``,!0):(V(),H(B,{key:1},[U(`section`,Cp,[t[26]||=U(`div`,{class:`panel-heading`},[U(`span`,{class:`step-number`},`01`),U(`h3`,null,`选择智能体与样例`)],-1),U(`div`,wp,[(V(!0),H(B,null,z(de.value,e=>(V(),H(`button`,{key:e.id,class:A([`preset-card`,{selected:s.value===e.id}]),disabled:le.value||b.value,onClick:t=>Ce(e.id)},[U(`span`,{class:A([`preset-dot`,e.expected?.toLowerCase()||`document`])},null,2),U(`strong`,null,M(e.name),1),U(`small`,null,M(e.description),1),s.value===e.id?(V(),H(`span`,Ep,[W(Y,{name:`check`,size:12})])):K(``,!0)],10,Tp))),128))]),fe.value?.expected?(V(),H(`p`,Dp,[t[24]||=G(` 样例预期 `,-1),U(`span`,{class:A([`result-pill`,fe.value.expected.toLowerCase()])},M(fe.value.expected),3),t[25]||=U(`span`,null,`以实际执行结果为准`,-1)])):K(``,!0)]),U(`section`,Op,[U(`div`,kp,[t[27]||=U(`span`,{class:`step-number`},`02`,-1),t[28]||=U(`h3`,null,`选择测试资料`,-1),U(`span`,Ap,M(l.value.length)+`份已选`,1)]),U(`input`,{ref_key:`uploadInput`,ref:w,type:`file`,multiple:``,accept:`.pdf,.png,.jpg,.jpeg,.webp,.json,.xlsx,.csv`,hidden:``,onChange:t[6]||=e=>Ee(e.target.files)},null,544),U(`button`,{class:`upload-zone`,disabled:le.value||!!x.value,onClick:t[7]||=e=>w.value.click(),onDragover:t[8]||=Uo(()=>{},[`prevent`]),onDrop:t[9]||=Uo(e=>Ee(e.dataTransfer.files),[`prevent`])},[U(`span`,Mp,[W(Y,{name:`upload`,size:21})]),U(`strong`,null,M(x.value?`正在上传 `+x.value:`点击上传,或将资料拖到这里`),1),t[29]||=U(`small`,null,`PDF、图片、JSON、XLSX、CSV · 单份50MB以内`,-1)],40,jp),u.value?(V(),H(`div`,Np,[W(Y,{name:`code`,size:14}),U(`span`,null,`请求来自 `+M(u.value.filename),1)])):K(``,!0),U(`div`,Pp,[W(Y,{name:`file`,size:15}),jn(U(`input`,{"onUpdate:modelValue":t[10]||=e=>S.value=e,"aria-label":`搜索测试资料`,placeholder:`搜索资料名称…`},null,512),[[Mo,S.value]])]),U(`div`,Fp,[(V(!0),H(B,null,z(k.value,e=>(V(),H(`div`,{key:e.id,class:A([`asset-row`,{selected:l.value.includes(e.id)}])},[U(`label`,{class:A({disabled:!e.can_analyze})},[U(`input`,{type:`checkbox`,checked:l.value.includes(e.id),disabled:le.value||!e.can_analyze,"aria-label":`选择 `+e.filename,onChange:t=>Te(e)},null,40,Ip),U(`span`,{class:A([`file-type`,e.kind])},M(e.filename.split(`.`).at(-1).toUpperCase()),3),U(`span`,{class:`asset-name`,title:e.filename},[G(M(e.filename),1),U(`small`,null,M(e.source===`sample`?`内置资料`:`我的上传`)+` · `+M(R(rs)(e.size))+M(e.can_analyze?``:` · 仅预览`),1)],8,Lp)],2),U(`button`,{class:`icon-button`,"aria-label":`预览 `+e.filename,onClick:t=>h.value=e},[W(Y,{name:`eye`,size:16})],8,Rp)],2))),128)),k.value.length?K(``,!0):(V(),H(`div`,zp,M(S.value?`没有匹配的资料`:`上传PDF或JSON,添加自己的测试数据。`),1))]),t[30]||=U(`p`,{class:`field-help`},` PDF和图片用于原件识别;JSON支持完整请求及开停、风量数据片段;Excel可预览。 `,-1)]),U(`section`,Bp,[t[35]||=U(`div`,{class:`panel-heading`},[U(`span`,{class:`step-number`},`03`),U(`h3`,null,`执行设置`)],-1),U(`div`,Vp,[U(`label`,{class:A({selected:d.value===`pipeline`})},[jn(U(`input`,{"onUpdate:modelValue":t[11]||=e=>d.value=e,type:`radio`,value:`pipeline`,disabled:le.value||!ue.value?.pipeline_available},null,8,Hp),[[Fo,d.value]]),t[31]||=U(`span`,null,[G(`业务流程`),U(`small`,null,`直接执行识别、计算与报告生成`)],-1)],2),U(`label`,{class:A({selected:d.value===`agent`})},[jn(U(`input`,{"onUpdate:modelValue":t[12]||=e=>d.value=e,type:`radio`,value:`agent`,disabled:le.value},null,8,Up),[[Fo,d.value]]),t[32]||=U(`span`,null,[G(`完整智能体`),U(`small`,null,`包含大模型任务编排与工具调用`)],-1)],2)]),U(`label`,Wp,[jn(U(`input`,{"onUpdate:modelValue":t[13]||=e=>f.value=e,type:`checkbox`,disabled:le.value},null,8,Gp),[[No,f.value]]),t[33]||=G(`重新识别原件,跳过已有识别缓存`,-1)]),U(`details`,Kp,[U(`summary`,null,[W(Y,{name:`code`,size:15}),t[34]||=G(`编辑请求JSON`,-1),U(`span`,null,M(_e.value?`格式有误`:`可自定义`),1)]),jn(U(`textarea`,{"onUpdate:modelValue":t[14]||=e=>c.value=e,"aria-label":`请求JSON`,spellcheck:`false`,disabled:le.value||b.value},null,8,qp),[[Mo,c.value]]),_e.value?(V(),H(`p`,Jp,M(_e.value),1)):K(``,!0)])])],64))]),U(`div`,Yp,[ce.value?(V(),H(`button`,{key:0,class:`button secondary run-button`,onClick:Me},[W(Y,{name:`stop`,size:17}),t[36]||=G(`停止本次测试`,-1)])):(V(),H(`button`,{key:1,class:`button primary run-button`,disabled:y.value||b.value||!!x.value||!!oe.value||!o.value,onClick:Ae},[y.value?(V(),H(`span`,Zp)):(V(),ra(Y,{key:1,name:`play`,size:17})),G(M(y.value?`正在提交`:`运行测试`),1),t[37]||=U(`kbd`,null,`RUN`,-1)],8,Xp)),U(`p`,Qp,M(oe.value||(o.value===`main_fan`?`完整智能体 · 每次重新识别 · 独立 workspace`:`每次请求独立归档,可从测试记录查看。`)),1)])]),U(`section`,$p,[U(`header`,em,[U(`div`,null,[U(`span`,tm,[W(Y,{name:`layers`,size:20})]),U(`div`,null,[U(`h3`,null,M(p.value?.label||`测试结果`),1),p.value?(V(),H(`p`,nm,[G(M(ye[p.value.status]||p.value.status),1),ve.value?(V(),H(`span`,rm,` · `+M(ve.value),1)):K(``,!0),G(` · `+M(p.value.execution_mode===`pipeline`?`业务流程`:`完整智能体`),1)])):(V(),H(`p`,im,`运行后,结果将在这里实时更新`))])]),me.value?(V(),H(`span`,{key:0,class:A([`result-pill`,me.value.toLowerCase()])},M(me.value),3)):ce.value?(V(),H(`span`,am,[...t[38]||=[U(`i`,{class:`spinner`},null,-1),G(`执行中`,-1)]])):(V(),H(`span`,om,`响应预览`))]),U(`div`,sm,[(V(),H(B,null,z([{id:`json`,name:`返回JSON`,icon:`code`},{id:`report`,name:`研判报告`,icon:`file`},{id:`excel`,name:`Excel文件`,icon:`table`},{id:`request`,name:`请求记录`,icon:`clock`}],e=>U(`button`,{key:e.id,role:`tab`,"aria-selected":g.value===e.id,class:A({active:g.value===e.id}),onClick:t=>g.value=e.id},[W(Y,{name:e.icon,size:16},null,8,[`name`]),G(M(e.name),1),e.id===`excel`&&p.value?.artifacts?.length?(V(),H(`span`,lm,M(p.value.artifacts.length),1)):K(``,!0)],10,cm)),64))]),ce.value?(V(),H(`div`,um,[U(`div`,null,[t[39]||=U(`span`,{class:`spinner`},null,-1),U(`strong`,null,M(p.value.stages.length?`正在执行研判流程`:`任务已提交,正在准备执行`),1),U(`small`,null,`任务 `+M(p.value.id.slice(0,8)),1)]),p.value.stages.length?(V(),H(`ol`,dm,[(V(!0),H(B,null,z(p.value.stages,e=>(V(),H(`li`,{key:e.name,class:A(e.status)},[U(`span`,null,M(e.status===`completed`?`✓`:e.status===`running`?`◌`:`·`),1),G(M(be[e.name]||e.name),1)],2))),128))])):K(``,!0)])):K(``,!0),p.value?.status===`failed`?(V(),H(`div`,fm,[t[40]||=U(`strong`,null,`本次测试未完成`,-1),U(`span`,null,M(p.value.error||`执行失败,请检查请求和资料后重新运行`),1)])):K(``,!0),p.value?.status===`waiting_input`?(V(),H(`div`,pm,[t[41]||=U(`p`,null,`智能体需要进一步的信息或操作确认。`,-1),U(`button`,{class:`button secondary small`,onClick:t[15]||=e=>r(`open-session`,p.value.session_id)},` 在对话中继续 `)])):K(``,!0),g.value===`request`&&p.value?(V(),H(B,{key:3},[U(`div`,mm,[t[43]||=U(`strong`,null,`实际发送的请求`,-1),U(`button`,{class:`button small secondary`,onClick:t[16]||=e=>R(ns)(p.value.request,`测试请求.json`)},[W(Y,{name:`download`,size:14}),t[42]||=G(`下载请求 `,-1)])]),U(`div`,hm,[U(`span`,null,[t[44]||=G(`智能体 `,-1),U(`b`,null,M(p.value.agent_name),1)]),U(`span`,null,[t[45]||=G(`资料 `,-1),U(`b`,null,M(p.value.request.assets.length)+`份`,1)]),U(`span`,null,[t[46]||=G(`任务 `,-1),U(`b`,null,M(p.value.id.slice(0,8)),1)])]),U(`div`,gm,[W(Wd,{value:p.value.request},null,8,[`value`])])],64)):pe.value&&g.value===`json`?(V(),H(B,{key:4},[U(`div`,_m,[jn(U(`select`,{"onUpdate:modelValue":t[17]||=e=>_.value=e,"aria-label":`返回JSON格式`},[pe.value.platform_payload?(V(),H(`option`,vm,` 标准推送格式 `)):K(``,!0),t[47]||=U(`option`,{value:`full`},`完整研判结果`,-1)],512),[[Io,_.value]]),U(`div`,null,[U(`button`,{class:`text-button`,onClick:Ne},[W(Y,{name:`copy`,size:14}),G(M(C.value),1)]),U(`button`,{class:`text-button`,onClick:t[18]||=e=>R(ns)(he.value)},[W(Y,{name:`download`,size:14}),t[48]||=G(`下载JSON `,-1)])])]),U(`div`,ym,[(V(),ra(Wd,{key:p.value.id+_.value,value:he.value},null,8,[`value`]))])],64)):pe.value&&g.value===`report`?(V(),H(`div`,bm,[W(qu,{source:`# ${pe.value.result_title||`研判报告`}\n\n${pe.value.result||``}`},null,8,[`source`])])):pe.value&&g.value===`excel`?(V(),H(B,{key:6},[p.value.artifacts.length>1?(V(),H(`div`,xm,[U(`label`,null,[t[49]||=G(`结果文件 `,-1),jn(U(`select`,{"onUpdate:modelValue":t[19]||=e=>ee.value=e,"aria-label":`选择Excel文件`},[(V(!0),H(B,null,z(p.value.artifacts,e=>(V(),H(`option`,{key:e.id,value:e.id},M(e.filename)+` · `+M(e.origin===`returned`?`智能体返回`:`结果导出`),9,Sm))),128))],512),[[Io,ee.value]])])])):K(``,!0),ge.value?(V(),ra(of,{key:p.value.id+ge.value.id,url:ge.value.preview_url,"download-url":ge.value.url,filename:ge.value.filename,origin:ge.value.origin},null,8,[`url`,`download-url`,`filename`,`origin`])):(V(),H(`div`,Cm,` 本次没有可预览的Excel文件。 `))],64)):(V(),H(`div`,wm,[U(`div`,Tm,[W(Y,{name:`flask`,size:40}),t[50]||=U(`span`,null,`{ }`,-1),U(`i`,null,[W(Y,{name:`table`,size:18})])]),U(`h3`,null,M(ce.value?`研判正在进行中`:`准备好,开始一次测试`),1),U(`p`,null,M(ce.value?`识别与计算完成后,返回的JSON、报告和Excel将在这里展示。`:`设置左侧三项输入,点击运行测试,查看智能体本次分析返回的结果。`),1),U(`div`,Em,[U(`span`,null,[W(Y,{name:`code`,size:15}),t[51]||=G(`JSON结构预览`,-1)]),U(`span`,null,[W(Y,{name:`file`,size:15}),t[52]||=G(`完整研判报告`,-1)]),U(`span`,null,[W(Y,{name:`table`,size:15}),t[53]||=G(`Excel工作表`,-1)])])]))])],2),W(gf,{file:h.value,onClose:t[20]||=e=>h.value=null,onApplyJson:P},null,8,[`file`])]))}},Om={class:`app-shell`},km={class:`brand-icon`},Am={class:`workspace-tabs`,role:`tablist`,"aria-label":`工作台页面`},jm=[`aria-selected`],Mm=[`aria-selected`],Nm=[`disabled`],Pm={class:`section-label`},Fm={class:`session-list`,"aria-label":`最近对话`},Im=[`title`,`disabled`,`onClick`],Lm={key:0,class:`list-empty`},Rm={class:`section-label agent-section-label`},zm={class:`registered-agents`},Bm=[`onClick`],Vm={class:`small-agent-icon`},Hm={class:`sidebar-help`},Um={class:`main-workspace`},Wm={class:`topbar`},Gm={class:`page-heading`},Km={class:`connection`};Yo({__name:`App`,setup(e){let t=bs(),n=L(location.hash.startsWith(`#/test`)?`test`:`chat`),r=L(!1),i=L(`main_fan`),a=L({text:`测试工作台`,kind:`ready`});function o(){n.value=location.hash.startsWith(`#/test`)?`test`:`chat`}function s(e){n.value=e,location.hash=e===`test`?`/test`:`/chat`,r.value=!1}function c(){t.newChat(),s(`chat`)}async function l(e){await t.openSession(e),s(`chat`)}async function u(e){await t.refreshSessions();let n=t.state.sessions.find(t=>t.id===e);n&&await l(n)}return br(()=>{t.initialize(),window.addEventListener(`hashchange`,o)}),Cr(()=>window.removeEventListener(`hashchange`,o)),(e,o)=>(V(),H(`div`,Om,[r.value?(V(),H(`button`,{key:0,class:`sidebar-backdrop`,"aria-label":`关闭导航`,onClick:o[0]||=e=>r.value=!1})):K(``,!0),U(`aside`,{class:A([`sidebar`,{open:r.value}])},[U(`a`,{class:`brand`,href:`#/chat`,onClick:o[1]||=Uo(e=>s(`chat`),[`prevent`])},[U(`span`,km,[W(Y,{name:`layers`,size:23})]),o[8]||=U(`span`,null,[G(`Vent Agent`),U(`small`,null,`智能体工作台`)],-1),o[9]||=U(`span`,{class:`version`},`2.0`,-1)]),U(`nav`,Am,[U(`button`,{role:`tab`,"aria-selected":n.value===`chat`,class:A({active:n.value===`chat`}),onClick:o[2]||=e=>s(`chat`)},[W(Y,{name:`chat`,size:18}),o[10]||=G(`智能体对话`,-1)],10,jm),U(`button`,{role:`tab`,"aria-selected":n.value===`test`,class:A({active:n.value===`test`}),onClick:o[3]||=e=>s(`test`)},[W(Y,{name:`flask`,size:18}),o[11]||=G(`智能体测试`,-1),o[12]||=U(`span`,{class:`new-tag`},`LAB`,-1)],10,Mm)]),n.value===`chat`?(V(),H(B,{key:0},[U(`button`,{class:`new-chat`,disabled:R(t).busy.value,onClick:c},[W(Y,{name:`plus`,size:17}),o[13]||=G(`开启新对话 `,-1)],8,Nm),U(`div`,Pm,[o[14]||=G(` 最近对话`,-1),U(`button`,{class:`icon-button`,"aria-label":`刷新对话列表`,onClick:o[4]||=(...e)=>R(t).refreshSessions&&R(t).refreshSessions(...e)},[W(Y,{name:`refresh`,size:14})])]),U(`nav`,Fm,[(V(!0),H(B,null,z(R(t).state.sessions,e=>(V(),H(`button`,{key:e.id,class:A([`session-button`,{active:e.id===R(t).state.sessionId}]),title:e.title||`未命名对话`,disabled:R(t).busy.value,onClick:t=>l(e)},[W(Y,{name:`chat`,size:15}),U(`span`,null,M(e.title||`未命名对话`),1)],10,Im))),128)),R(t).state.sessions.length?K(``,!0):(V(),H(`p`,Lm,` 还没有对话,从新任务开始。 `))])],64)):(V(),H(B,{key:1},[U(`div`,Rm,[o[15]||=G(` 已注册智能体`,-1),U(`span`,null,M(R(t).state.agents.length),1)]),U(`div`,zm,[(V(!0),H(B,null,z(R(t).state.agents,e=>(V(),H(`button`,{key:e.name,class:A({active:i.value===e.name}),onClick:t=>i.value=e.name},[U(`span`,Vm,[W(Y,{name:`layers`,size:17})]),U(`span`,null,[G(M(e.display_name),1),U(`small`,null,M(e.name),1)]),o[16]||=U(`i`,{class:`online-dot`},null,-1)],10,Bm))),128))]),U(`div`,Hm,[W(Y,{name:`flask`,size:23}),o[17]||=U(`strong`,null,`让每一次测试有据可查`,-1),o[18]||=U(`p`,null,`配置原始资料与运行数据,发送独立请求,查看结果与执行记录。`,-1),o[19]||=U(`span`,null,`JSON · PDF · Excel`,-1)])],64)),o[20]||=U(`div`,{class:`sidebar-footer`},[U(`span`,{class:`avatar`},`V`),U(`div`,null,[G(`默认工作空间`),U(`small`,null,`本地应用`)]),U(`i`,{class:`online-dot`})],-1)],2),U(`main`,Um,[U(`header`,Wm,[U(`div`,Gm,[U(`button`,{class:`icon-button mobile-menu`,"aria-label":`打开导航`,onClick:o[5]||=e=>r.value=!r.value},[W(Y,{name:`menu`})]),o[21]||=U(`span`,null,`工作空间`,-1),o[22]||=U(`b`,null,`/`,-1),U(`h1`,null,M(n.value===`test`?`智能体测试`:R(t).state.title),1)]),U(`div`,Km,[U(`i`,{class:A([`status-dot`,n.value===`chat`?R(t).state.statusKind:a.value.kind])},null,2),U(`span`,null,M(n.value===`chat`?R(t).state.status:a.value.text),1)])]),jn(W(Fd,null,null,512),[[Xa,n.value===`chat`]]),jn(W(Dm,{active:n.value===`test`,"requested-agent":i.value,onAgent:o[6]||=e=>i.value=e,onStatus:o[7]||=e=>a.value=e,onOpenSession:u},null,8,[`active`,`requested-agent`]),[[Xa,n.value===`test`]])])]))}}).mount(`#app`);