index-DFki6htZ.js 224 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))n(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function s(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(l){if(l.ep)return;l.ep=!0;const o=s(l);fetch(l.href,o)}})();/**
  2. * @vue/shared v3.5.43
  3. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  4. * @license MIT
  5. **/function On(t){const e=Object.create(null);for(const s of t.split(","))e[s]=1;return s=>s in e}const Ct={},Ie=[],he=()=>{},Nl=()=>!1,Bs=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Ws=t=>t.startsWith("onUpdate:"),It=Object.assign,jn=(t,e)=>{const s=t.indexOf(e);s>-1&&t.splice(s,1)},na=Object.prototype.hasOwnProperty,wt=(t,e)=>na.call(t,e),dt=Array.isArray,Ee=t=>_s(t)==="[object Map]",Fs=t=>_s(t)==="[object Set]",tl=t=>_s(t)==="[object Date]",pt=t=>typeof t=="function",Ot=t=>typeof t=="string",me=t=>typeof t=="symbol",Mt=t=>t!==null&&typeof t=="object",Bl=t=>(Mt(t)||pt(t))&&pt(t.then)&&pt(t.catch),Wl=Object.prototype.toString,_s=t=>Wl.call(t),la=t=>_s(t).slice(8,-1),Kl=t=>_s(t)==="[object Object]",qn=t=>Ot(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ns=On(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ks=t=>{const e=Object.create(null);return(s=>e[s]||(e[s]=t(s)))},oa=/-\w/g,zt=Ks(t=>t.replace(oa,e=>e.slice(1).toUpperCase())),aa=/\B([A-Z])/g,je=Ks(t=>t.replace(aa,"-$1").toLowerCase()),Us=Ks(t=>t.charAt(0).toUpperCase()+t.slice(1)),en=Ks(t=>t?`on${Us(t)}`:""),fe=(t,e)=>!Object.is(t,e),Ss=(t,...e)=>{for(let s=0;s<t.length;s++)t[s](...e)},Ul=(t,e,s,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:s})},Dn=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let el;const Vs=()=>el||(el=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Dt(t){if(dt(t)){const e={};for(let s=0;s<t.length;s++){const n=t[s],l=Ot(n)?ua(n):Dt(n);if(l)for(const o in l)e[o]=l[o]}return e}else if(Ot(t)||Mt(t))return t}const ia=/;(?![^(]*\))/g,ra=/:([^]+)/,ca=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function ua(t){const e={};return t.replace(ca,s=>s.startsWith("/*")?"":s).split(ia).forEach(s=>{if(s){const n=s.split(ra);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Zt(t){let e="";if(Ot(t))e=t;else if(dt(t))for(let s=0;s<t.length;s++){const n=Zt(t[s]);n&&(e+=n+" ")}else if(Mt(t))for(const s in t)t[s]&&(e+=s+" ");return e.trim()}const da="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",pa=On(da);function Vl(t){return!!t||t===""}function fa(t,e,s){if(t.length!==e.length)return!1;let n=!0;for(let l=0;n&&l<t.length;l++)n=zs(t[l],e[l],s);return n}function sl(t,e,s){if(t.size!==e.size)return!1;const n=Array.from(e),l=new Uint8Array(n.length);for(const o of t){let c=-1;for(let a=0;a<n.length;a++)if(!l[a]&&zs(o,n[a],s)){c=a;break}if(c<0)return!1;l[c]=1}return!0}function ha(t,e,s){let n=Ee(t),l=Ee(e);if(n||l||(n=Fs(t),l=Fs(e),n||l))return n&&l?sl(t,e,s):!1;const o=Object.keys(t).length,c=Object.keys(e).length;if(o!==c)return!1;for(const a in t){const u=t.hasOwnProperty(a),_=e.hasOwnProperty(a);if(u&&!_||!u&&_||!zs(t[a],e[a],s))return!1}return String(t)===String(e)}function nl(t,e,s,n){s||(s=[new Map,new Map]);const[l,o]=s;if(l.has(t)||o.has(e))return l.get(t)===e&&o.get(e)===t;l.set(t,e),o.set(e,t);const c=n(t,e,s);return l.delete(t),o.delete(e),c}function zs(t,e,s){if(t===e)return!0;let n=tl(t),l=tl(e);return n||l?n&&l?t.getTime()===e.getTime():!1:(n=me(t),l=me(e),n||l?t===e:(n=dt(t),l=dt(e),n||l?n&&l?nl(t,e,s,fa):!1:(n=Mt(t),l=Mt(e),n||l?!n||!l?!1:nl(t,e,s,ha):String(t)===String(e))))}const zl=t=>!!(t&&t.__v_isRef===!0),p=t=>Ot(t)?t:t==null?"":dt(t)||Mt(t)&&(t.toString===Wl||!pt(t.toString))?zl(t)?p(t.value):JSON.stringify(t,Gl,2):String(t),Gl=(t,e)=>zl(e)?Gl(t,e.value):Ee(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((s,[n,l],o)=>(s[sn(n,o)+" =>"]=l,s),{})}:Fs(e)?{[`Set(${e.size})`]:[...e.values()].map(s=>sn(s))}:me(e)?sn(e):Mt(e)&&!dt(e)&&!Kl(e)?String(e):e,sn=(t,e="")=>{var s;return me(t)?`Symbol(${(s=t.description)!=null?s:e})`:t};/**
  6. * @vue/reactivity v3.5.43
  7. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  8. * @license MIT
  9. **/let Ht;class ma{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&&Ht&&(Ht.active?(this.parent=Ht,this.index=(Ht.scopes||(Ht.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let e,s;if(this.scopes){const n=this.scopes.slice();for(e=0,s=n.length;e<s;e++)n[e].pause()}for(e=0,s=this.effects.length;e<s;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let e,s;if(this.scopes){const l=this.scopes.slice();for(e=0,s=l.length;e<s;e++)l[e].resume()}const n=this.effects.slice();for(e=0,s=n.length;e<s;e++)n[e].resume()}}run(e){if(this._active){const s=Ht;try{return Ht=this,e()}finally{Ht=s}}}on(){++this._on===1&&(this.prevScope=Ht,Ht=this)}off(){if(this._on>0&&--this._on===0){if(Ht===this)Ht=this.prevScope;else{let e=Ht;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 s,n;for(s=0,n=this.effects.length;s<n;s++)this.effects[s].stop();for(this.effects.length=0,s=0,n=this.cleanups.length;s<n;s++)this.cleanups[s]();if(this.cleanups.length=0,this.scopes){const l=this.scopes.slice();for(s=0,n=l.length;s<n;s++)l[s].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0}}}function _a(){return Ht}let Et;const nn=new WeakSet;class Yl{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,Ht&&(Ht.active?Ht.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,nn.has(this)&&(nn.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Xl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ll(this),Zl(this);const e=Et,s=ne;Et=this,ne=!0;try{return this.fn()}finally{Ql(this),Et=e,ne=s,this.flags&=-3}}stop(){if(this.flags&1){for(let e=this.deps;e;e=e.nextDep)In(e);this.deps=this.depsTail=void 0,ll(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?nn.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){gn(this)&&this.run()}get dirty(){return gn(this)}}let Jl=0,ls,os;function Xl(t,e=!1){if(t.flags|=8,e){t.next=os,os=t;return}t.next=ls,ls=t}function Pn(){Jl++}function Hn(){if(--Jl>0)return;if(os){let e=os;for(os=void 0;e;){const s=e.next;e.next=void 0,e.flags&=-9,e=s}}let t;for(;ls;){let e=ls;for(ls=void 0;e;){const s=e.next;if(e.next=void 0,e.flags&=-9,e.flags&1)try{e.trigger()}catch(n){t||(t=n)}e=s}}if(t)throw t}function Zl(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function Ql(t){let e,s=t.depsTail,n=s;for(;n;){const l=n.prevDep;n.version===-1?(n===s&&(s=l),In(n),va(n)):e=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=l}t.deps=e,t.depsTail=s}function gn(t){for(let e=t.deps;e;e=e.nextDep)if(e.dep.version!==e.version||e.dep.computed&&(to(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function to(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===cs)||(t.globalVersion=cs,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!gn(t))))return;t.flags|=2;const e=t.dep,s=Et,n=ne;Et=t,ne=!0;try{Zl(t);const l=t.fn(t._value);(e.version===0||fe(l,t._value))&&(t.flags|=128,t._value=l,e.version++)}catch(l){throw e.version++,l}finally{Et=s,ne=n,Ql(t),t.flags&=-3}}function In(t,e=!1){const{dep:s,prevSub:n,nextSub:l}=t;if(n&&(n.nextSub=l,t.prevSub=void 0),l&&(l.prevSub=n,t.nextSub=void 0),s.subs===t&&(s.subs=n,!n&&s.computed)){s.computed.flags&=-5;for(let o=s.computed.deps;o;o=o.nextDep)In(o,!0)}!e&&!--s.sc&&s.map&&s.map.delete(s.key)}function va(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let ne=!0;const eo=[];function we(){eo.push(ne),ne=!1}function ke(){const t=eo.pop();ne=t===void 0?!0:t}function ll(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=Et;Et=void 0;try{e()}finally{Et=s}}}let cs=0;class ga{constructor(e,s){this.sub=e,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ln{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(!Et||!ne||Et===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Et)s=this.activeLink=new ga(Et,this),Et.deps?(s.prevDep=Et.depsTail,Et.depsTail.nextDep=s,Et.depsTail=s):Et.deps=Et.depsTail=s,so(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const n=s.nextDep;n.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=n),s.prevDep=Et.depsTail,s.nextDep=void 0,Et.depsTail.nextDep=s,Et.depsTail=s,Et.deps===s&&(Et.deps=n)}return s}trigger(e){this.version++,cs++,this.notify(e)}notify(e){Pn();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Hn()}}}function so(t){if(t.dep.sc++,t.sub.flags&4){const e=t.dep.computed;if(e&&!t.dep.subs){e.flags|=20;for(let n=e.deps;n;n=n.nextDep)so(n)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const bn=new WeakMap,Le=Symbol(""),yn=Symbol(""),us=Symbol("");function Rt(t,e,s){if(ne&&Et){let n=bn.get(t);n||bn.set(t,n=new Map);let l=n.get(s);l||(n.set(s,l=new Ln),l.map=n,l.key=s),l.track()}}function ye(t,e,s,n,l,o){const c=bn.get(t);if(!c){cs++;return}const a=u=>{u&&u.trigger()};if(Pn(),e==="clear")c.forEach(a);else{const u=dt(t),_=u&&qn(s);if(u&&s==="length"){const f=Number(n);c.forEach((m,v)=>{(v==="length"||v===us||!me(v)&&v>=f)&&a(m)})}else switch((s!==void 0||c.has(void 0))&&a(c.get(s)),_&&a(c.get(us)),e){case"add":u?_&&a(c.get("length")):(a(c.get(Le)),Ee(t)&&a(c.get(yn)));break;case"delete":u||(a(c.get(Le)),Ee(t)&&a(c.get(yn)));break;case"set":Ee(t)&&a(c.get(Le));break}}Hn()}function We(t){const e=xt(t);return e===t||(Rt(e,"iterate",us),ee(t))?e:_e(t)?Fe(t)?e.map(s=>Ae(se(s))):e.map(Ae):e.map(se)}function Gs(t){return Rt(t=xt(t),"iterate",us),t}function de(t,e){return _e(t)?Ae(Fe(t)?se(e):e):se(e)}const ba={__proto__:null,[Symbol.iterator](){return ln(this,Symbol.iterator,t=>de(this,t))},concat(...t){return We(this).concat(...t.map(e=>dt(e)?We(e):e))},entries(){return ln(this,"entries",t=>(t[1]=de(this,t[1]),t))},every(t,e){return ve(this,"every",t,e,void 0,arguments)},filter(t,e){return ve(this,"filter",t,e,s=>s.map(n=>de(this,n)),arguments)},find(t,e){return ve(this,"find",t,e,s=>de(this,s),arguments)},findIndex(t,e){return ve(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return ve(this,"findLast",t,e,s=>de(this,s),arguments)},findLastIndex(t,e){return ve(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return ve(this,"forEach",t,e,void 0,arguments)},includes(...t){return on(this,"includes",t)},indexOf(...t){return on(this,"indexOf",t)},join(t){return We(this).join(t)},lastIndexOf(...t){return on(this,"lastIndexOf",t)},map(t,e){return ve(this,"map",t,e,void 0,arguments)},pop(){return Xe(this,"pop")},push(...t){return Xe(this,"push",t)},reduce(t,...e){return ol(this,"reduce",t,e)},reduceRight(t,...e){return ol(this,"reduceRight",t,e)},shift(){return Xe(this,"shift")},some(t,e){return ve(this,"some",t,e,void 0,arguments)},splice(...t){return Xe(this,"splice",t)},toReversed(){return We(this).toReversed()},toSorted(t){return We(this).toSorted(t)},toSpliced(...t){return We(this).toSpliced(...t)},unshift(...t){return Xe(this,"unshift",t)},values(){return ln(this,"values",t=>de(this,t))}};function ln(t,e,s){const n=Gs(t),l=n[e]();return n!==t&&!ee(t)&&(l._next=l.next,l.next=()=>{const o=l._next();return o.done||(o.value=s(o.value)),o}),l}const ya=Array.prototype;function ve(t,e,s,n,l,o){const c=Gs(t),a=c!==t&&!ee(t),u=c[e];if(u!==ya[e]){const m=u.apply(t,o);return a?se(m):m}let _=s;c!==t&&(a?_=function(m,v){return s.call(this,de(t,m),v,t)}:s.length>2&&(_=function(m,v){return s.call(this,m,v,t)}));const f=u.call(c,_,n);return a&&l?l(f):f}function ol(t,e,s,n){const l=Gs(t),o=l!==t&&!ee(t);let c=s,a=!1;l!==t&&(o?(a=n.length===0,c=function(_,f,m){return a&&(a=!1,_=de(t,_)),s.call(this,_,de(t,f),m,t)}):s.length>3&&(c=function(_,f,m){return s.call(this,_,f,m,t)}));const u=l[e](c,...n);return a?de(t,u):u}function on(t,e,s){const n=xt(t);Rt(n,"iterate",us);const l=n[e](...s);return(l===-1||l===!1)&&Bn(s[0])?(s[0]=xt(s[0]),n[e](...s)):l}function Xe(t,e,s=[]){we(),Pn();const n=xt(t)[e].apply(t,s);return Hn(),ke(),n}const $a=On("__proto__,__v_isRef,__isVue"),no=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(me));function xa(t){me(t)||(t=String(t));const e=xt(this);return Rt(e,"has",t),e.hasOwnProperty(t)}class lo{constructor(e=!1,s=!1){this._isReadonly=e,this._isShallow=s}get(e,s,n){if(s==="__v_skip")return e.__v_skip;const l=this._isReadonly,o=this._isShallow;if(s==="__v_isReactive")return!l;if(s==="__v_isReadonly")return l;if(s==="__v_isShallow")return o;if(s==="__v_raw")return n===(l?o?Oa:ro:o?io:ao).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=dt(e);if(!l){let u;if(c&&(u=ba[s]))return u;if(s==="hasOwnProperty")return xa}const a=Reflect.get(e,s,Bt(e)?e:n);if((me(s)?no.has(s):$a(s))||(l||Rt(e,"get",s),o))return a;if(Bt(a)){const u=c&&qn(s)?a:a.value;return l&&Mt(u)?xn(u):u}return Mt(a)?l?xn(a):vs(a):a}}class oo extends lo{constructor(e=!1){super(!1,e)}set(e,s,n,l){let o=e[s];const c=dt(e)&&qn(s);if(!this._isShallow){const _=_e(o);if(!ee(n)&&!_e(n)&&(o=xt(o),n=xt(n)),!c&&Bt(o)&&!Bt(n))return _||(o.value=n),!0}const a=c?Number(s)<e.length:wt(e,s),u=Reflect.set(e,s,n,Bt(e)?e:l);return e===xt(l)&&u&&(a?fe(n,o)&&ye(e,"set",s,n):ye(e,"add",s,n)),u}deleteProperty(e,s){const n=wt(e,s);e[s];const l=Reflect.deleteProperty(e,s);return l&&n&&ye(e,"delete",s,void 0),l}has(e,s){const n=Reflect.has(e,s);return(!me(s)||!no.has(s))&&Rt(e,"has",s),n}ownKeys(e){return Rt(e,"iterate",dt(e)?"length":Le),Reflect.ownKeys(e)}}class wa extends lo{constructor(e=!1){super(!0,e)}set(e,s){return!0}deleteProperty(e,s){return!0}}const ka=new oo,Ma=new wa,Sa=new oo(!0);const $n=t=>t,ys=t=>Reflect.getPrototypeOf(t);function Ta(t,e,s){return function(...n){const l=this.__v_raw,o=xt(l),c=Ee(o),a=t==="entries"||t===Symbol.iterator&&c,u=t==="keys"&&c,_=l[t](...n),f=s?$n:e?Ae:se;return!e&&Rt(o,"iterate",u?yn:Le),It(Object.create(_),{next(){const{value:m,done:v}=_.next();return v?{value:m,done:v}:{value:a?[f(m[0]),f(m[1])]:f(m),done:v}}})}}function $s(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Ca(t,e){const s={get(l){const o=this.__v_raw,c=xt(o),a=xt(l);t||(fe(l,a)&&Rt(c,"get",l),Rt(c,"get",a));const{has:u}=ys(c),_=e?$n:t?Ae:se;if(u.call(c,l))return _(o.get(l));if(u.call(c,a))return _(o.get(a));o!==c&&o.get(l)},get size(){const l=this.__v_raw;return!t&&Rt(xt(l),"iterate",Le),l.size},has(l){const o=this.__v_raw,c=xt(o),a=xt(l);return t||(fe(l,a)&&Rt(c,"has",l),Rt(c,"has",a)),l===a?o.has(l):o.has(l)||o.has(a)},forEach(l,o){const c=this,a=c.__v_raw,u=xt(a),_=e?$n:t?Ae:se;return!t&&Rt(u,"iterate",Le),a.forEach((f,m)=>l.call(o,_(f),_(m),c))}};return It(s,t?{add:$s("add"),set:$s("set"),delete:$s("delete"),clear:$s("clear")}:{add(l){const o=xt(this),c=ys(o),a=xt(l),u=!e&&!ee(l)&&!_e(l)?a:l;return c.has.call(o,u)||fe(l,u)&&c.has.call(o,l)||fe(a,u)&&c.has.call(o,a)||(o.add(u),ye(o,"add",u,u)),this},set(l,o){!e&&!ee(o)&&!_e(o)&&(o=xt(o));const c=xt(this),{has:a,get:u}=ys(c);let _=a.call(c,l);_||(l=xt(l),_=a.call(c,l));const f=u.call(c,l);return c.set(l,o),_?fe(o,f)&&ye(c,"set",l,o):ye(c,"add",l,o),this},delete(l){const o=xt(this),{has:c,get:a}=ys(o);let u=c.call(o,l);u||(l=xt(l),u=c.call(o,l)),a&&a.call(o,l);const _=o.delete(l);return u&&ye(o,"delete",l,void 0),_},clear(){const l=xt(this),o=l.size!==0,c=l.clear();return o&&ye(l,"clear",void 0,void 0),c}}),["keys","values","entries",Symbol.iterator].forEach(l=>{s[l]=Ta(l,t,e)}),s}function Rn(t,e){const s=Ca(t,e);return(n,l,o)=>l==="__v_isReactive"?!t:l==="__v_isReadonly"?t:l==="__v_raw"?n:Reflect.get(wt(s,l)&&l in n?s:n,l,o)}const Ea={get:Rn(!1,!1)},Fa={get:Rn(!1,!0)},Aa={get:Rn(!0,!1)};const ao=new WeakMap,io=new WeakMap,ro=new WeakMap,Oa=new WeakMap;function ja(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vs(t){return _e(t)?t:Nn(t,!1,ka,Ea,ao)}function qa(t){return Nn(t,!1,Sa,Fa,io)}function xn(t){return Nn(t,!0,Ma,Aa,ro)}function Nn(t,e,s,n,l){if(!Mt(t)||t.__v_raw&&!(e&&t.__v_isReactive)||t.__v_skip||!Object.isExtensible(t))return t;const o=l.get(t);if(o)return o;const c=ja(la(t));if(c===0)return t;const a=new Proxy(t,c===2?n:s);return l.set(t,a),a}function Fe(t){return _e(t)?Fe(t.__v_raw):!!(t&&t.__v_isReactive)}function _e(t){return!!(t&&t.__v_isReadonly)}function ee(t){return!!(t&&t.__v_isShallow)}function Bn(t){return t?!!t.__v_raw:!1}function xt(t){const e=t&&t.__v_raw;return e?xt(e):t}function Da(t){return!wt(t,"__v_skip")&&Object.isExtensible(t)&&Ul(t,"__v_skip",!0),t}const se=t=>Mt(t)?vs(t):t,Ae=t=>Mt(t)?xn(t):t;function Bt(t){return t?t.__v_isRef===!0:!1}function yt(t){return Pa(t,!1)}function Pa(t,e){return Bt(t)?t:new Ha(t,e)}class Ha{constructor(e,s){this.dep=new Ln,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?e:xt(e),this._value=s?e:se(e),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(e){const s=this._rawValue,n=this.__v_isShallow||ee(e)||_e(e);e=n?e:xt(e),fe(e,s)&&(this._rawValue=e,this._value=n?e:se(e),this.dep.trigger())}}function d(t){return Bt(t)?t.value:t}const Ia={get:(t,e,s)=>e==="__v_raw"?t:d(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const l=t[e];return Bt(l)&&!Bt(s)?(l.value=s,!0):Reflect.set(t,e,s,n)}};function co(t){return Fe(t)?t:new Proxy(t,Ia)}class La{constructor(e,s,n){this.fn=e,this.setter=s,this._value=void 0,this.dep=new Ln(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=cs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&Et!==this)return Xl(this,!0),!0}get value(){const e=this.dep.track();return to(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ra(t,e,s=!1){let n,l;return pt(t)?n=t:(n=t.get,l=t.set),new La(n,l,s)}const xs={},As=new WeakMap;let Pe;function Na(t,e=!1,s=Pe){if(s){let n=As.get(s);n||As.set(s,n=[]),n.push(t)}}function Ba(t,e,s=Ct){const{immediate:n,deep:l,once:o,scheduler:c,augmentJob:a,call:u}=s,_=S=>l?S:ee(S)||l===!1||l===0?$e(S,1):$e(S);let f,m,v,$,I=!1,G=!1;if(Bt(t)?(m=()=>t.value,I=ee(t)):Fe(t)?(m=()=>_(t),I=!0):dt(t)?(G=!0,I=t.some(S=>Fe(S)||ee(S)),m=()=>t.map(S=>{if(Bt(S))return S.value;if(Fe(S))return _(S);if(pt(S))return u?u(S,2):S()})):pt(t)?e?m=u?()=>u(t,2):t:m=()=>{if(v){we();try{v()}finally{ke()}}const S=Pe;Pe=f;try{return u?u(t,3,[$]):t($)}finally{Pe=S}}:m=he,e&&l){const S=m,L=l===!0?1/0:l;m=()=>$e(S(),L)}const Z=_a(),lt=()=>{f.stop(),Z&&Z.active&&jn(Z.effects,f)};if(o&&e){const S=e;e=(...L)=>{const ut=S(...L);return lt(),ut}}let H=G?new Array(t.length).fill(xs):xs;const U=S=>{if(!(!(f.flags&1)||!f.dirty&&!S))if(e){const L=f.run();if(S||l||I||(G?L.some((ut,bt)=>fe(ut,H[bt])):fe(L,H))){v&&v();const ut=Pe;Pe=f;try{const bt=[L,H===xs?void 0:G&&H[0]===xs?[]:H,$];H=L,u?u(e,3,bt):e(...bt)}finally{Pe=ut}}}else f.run()};return a&&a(U),f=new Yl(m),f.scheduler=c?()=>c(U,!1):U,$=S=>Na(S,!1,f),v=f.onStop=()=>{const S=As.get(f);if(S){if(u)u(S,4);else for(const L of S)L();As.delete(f)}},e?n?U(!0):H=f.run():c?c(U.bind(null,!0),!0):f.run(),lt.pause=f.pause.bind(f),lt.resume=f.resume.bind(f),lt.stop=lt,lt}function $e(t,e=1/0,s){if(e<=0||!Mt(t)||t.__v_skip||(s=s||new Map,(s.get(t)||0)>=e))return t;if(s.set(t,e),e--,Bt(t))$e(t.value,e,s);else if(dt(t))for(let n=0;n<t.length;n++)$e(t[n],e,s);else if(Fs(t)||Ee(t))t.forEach(n=>{$e(n,e,s)});else if(Kl(t)){for(const n in t)$e(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&$e(t[n],e,s)}return t}/**
  10. * @vue/runtime-core v3.5.43
  11. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  12. * @license MIT
  13. **/function gs(t,e,s,n){try{return n?t(...n):t()}catch(l){Ys(l,e,s)}}function le(t,e,s,n){if(pt(t)){const l=gs(t,e,s,n);return l&&Bl(l)&&l.catch(o=>{Ys(o,e,s)}),l}if(dt(t)){const l=[];for(let o=0;o<t.length;o++)l.push(le(t[o],e,s,n));return l}}function Ys(t,e,s,n=!0){const l=e?e.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:c}=e&&e.appContext.config||Ct;if(e){let a=e.parent;const u=e.proxy,_=`https://vuejs.org/error-reference/#runtime-${s}`;for(;a;){const f=a.ec;if(f){for(let m=0;m<f.length;m++)if(f[m](t,u,_)===!1)return}a=a.parent}if(o){we(),gs(o,null,10,[t,u,_]),ke();return}}Wa(t,s,l,n,c)}function Wa(t,e,s,n=!0,l=!1){if(l)throw t;console.error(t)}const Vt=[];let ue=-1;const Ve=[];let Te=null,Ke=0;const uo=Promise.resolve();let Os=null;function Ka(t){const e=Os||uo;return t?e.then(this?t.bind(this):t):e}function Ua(t){let e=ue+1,s=Vt.length;for(;e<s;){const n=e+s>>>1,l=Vt[n],o=ds(l);o<t||o===t&&l.flags&2?e=n+1:s=n}return e}function Wn(t){if(!(t.flags&1)){const e=ds(t),s=Vt[Vt.length-1];!s||!(t.flags&2)&&e>=ds(s)?Vt.push(t):Vt.splice(Ua(e),0,t),t.flags|=1,po()}}function po(){Os||(Os=uo.then(ho))}function Va(t){if(!dt(t))Te&&t.id===-1?Te.splice(Ke+1,0,t):t.flags&1||(Ve.push(t),t.flags|=1);else for(let e=0;e<t.length;e++)Ve.push(t[e]);po()}function al(t,e,s=ue+1){for(;s<Vt.length;s++){const n=Vt[s];if(n&&n.flags&2){if(t&&n.id!==t.uid)continue;Vt.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function fo(t){if(Ve.length){const e=[...new Set(Ve)].sort((s,n)=>ds(s)-ds(n));if(Ve.length=0,Te){for(let s=0;s<e.length;s++)Te.push(e[s]);return}for(Te=e,Ke=0;Ke<Te.length;Ke++){const s=Te[Ke];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Te=null,Ke=0}}const ds=t=>t.id==null?t.flags&2?-1:1/0:t.id;function ho(t){try{for(ue=0;ue<Vt.length;ue++){const e=Vt[ue];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),gs(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;ue<Vt.length;ue++){const e=Vt[ue];e&&(e.flags&=-2)}ue=-1,Vt.length=0,fo(),Os=null,(Vt.length||Ve.length)&&ho()}}let Qt=null,mo=null;function js(t){const e=Qt;return Qt=t,mo=t&&t.type.__scopeId||null,e}function za(t,e=Qt,s){if(!e||t._n)return t;const n=(...l)=>{n._d&&gl(-1);const o=js(e),c=Ne.length;let a;try{a=t(...l)}finally{for(let u=Ne.length;u>c;u--)Lo();js(o),n._d&&gl(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function wn(t,e){if(Qt===null)return t;const s=tn(Qt),n=t.dirs||(t.dirs=[]);for(let l=0;l<e.length;l++){let[o,c,a,u=Ct]=e[l];o&&(pt(o)&&(o={mounted:o,updated:o}),o.deep&&$e(c),n.push({dir:o,instance:s,value:c,oldValue:void 0,arg:a,modifiers:u}))}return t}function qe(t,e,s,n){const l=t.dirs,o=e&&e.dirs;for(let c=0;c<l.length;c++){const a=l[c];o&&(a.oldValue=o[c].value);let u=a.dir[n];u&&(we(),le(u,s,8,[t.el,a,t,e]),ke())}}function Ga(t,e){if(Nt){let s=Nt.provides;const n=Nt.parent&&Nt.parent.provides;n===s&&(s=Nt.provides=Object.create(n)),s[t]=e}}function Ts(t,e,s=!1){const n=Gi();if(n||ze){let l=ze?ze._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(l&&t in l)return l[t];if(arguments.length>1)return s&&pt(e)?e.call(n&&n.proxy):e}}const Ya=Symbol.for("v-scx"),Ja=()=>Ts(Ya);function Re(t,e,s){return _o(t,e,s)}function _o(t,e,s=Ct){const{immediate:n,deep:l,flush:o,once:c}=s,a=It({},s),u=e&&n||!e&&o!=="post";let _;if(hs){if(o==="sync"){const $=Ja();_=$.__watcherHandles||($.__watcherHandles=[])}else if(!u){const $=()=>{};return $.stop=he,$.resume=he,$.pause=he,$}}const f=Nt;a.call=($,I,G)=>le($,f,I,G);let m=!1;o==="post"?a.scheduler=$=>{Gt($,f&&f.suspense)}:o!=="sync"&&(m=!0,a.scheduler=($,I)=>{I?$():Wn($)}),a.augmentJob=$=>{e&&($.flags|=4),m&&($.flags|=2,f&&($.id=f.uid,$.i=f))};const v=Ba(t,e,a);return hs&&(_?_.push(v):u&&v()),v}function Xa(t,e,s){const n=this.proxy,l=Ot(t)?t.includes(".")?vo(n,t):()=>n[t]:t.bind(n,n);let o;pt(e)?o=e:(o=e.handler,s=e);const c=bs(this),a=_o(l,o.bind(n),s);return c(),a}function vo(t,e){const s=e.split(".");return()=>{let n=t;for(let l=0;l<s.length&&n;l++)n=n[s[l]];return n}}const Za=Symbol("_vte"),Js=t=>t.__isTeleport,an=Symbol("_leaveCb");function Qa(t){let e=t[0];if(t.length>1){for(const s of t)if(s.type!==Me){e=s;break}}return e}function go(t){if(!Un(t))return Js(t.type)&&t.children?Qa(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:e,children:s}=t;if(s){if(e&16)return s[0];if(e&32&&pt(s.default))return s.default()}}function Kn(t,e){if(t.shapeFlag&6&&t.component){t.transition=e;const s=t.component.subTree;Kn(Js(s.type)&&go(s)||s,e)}else t.shapeFlag&128?(t.ssContent.transition=e.clone(t.ssContent),t.ssFallback.transition=e.clone(t.ssFallback)):t.transition=e}function Wt(t,e){return pt(t)?It({name:t.name},e,{setup:t}):t}function bo(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function il(t,e){let s;return!!((s=Object.getOwnPropertyDescriptor(t,e))&&!s.configurable)}const qs=new WeakMap;function as(t,e,s,n,l=!1){if(dt(t)){t.forEach((G,Z)=>as(G,e&&(dt(e)?e[Z]:e),s,n,l));return}if(is(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&as(t,e,s,n.component.subTree);return}const o=n.shapeFlag&4?tn(n.component):n.el,c=l?null:o,{i:a,r:u}=t,_=e&&e.r,f=a.refs===Ct?a.refs={}:a.refs,m=a.setupState,v=xt(m),$=m===Ct?Nl:G=>il(f,G)?!1:wt(v,G),I=(G,Z)=>!(Z&&il(f,Z));if(_!=null&&_!==u){if(rl(e),Ot(_))f[_]=null,$(_)&&(m[_]=null);else if(Bt(_)){const G=e;I(_,G.k)&&(_.value=null),G.k&&(f[G.k]=null)}}if(pt(u))gs(u,a,12,[c,f]);else{const G=Ot(u),Z=Bt(u);if(G||Z){const lt=()=>{if(t.f){const H=G?$(u)?m[u]:f[u]:I()||!t.k?u.value:f[t.k];if(l)dt(H)&&jn(H,o);else if(dt(H))H.includes(o)||H.push(o);else if(G)f[u]=[o],$(u)&&(m[u]=f[u]);else{const U=[o];I(u,t.k)&&(u.value=U),t.k&&(f[t.k]=U)}}else G?(f[u]=c,$(u)&&(m[u]=c)):Z&&(I(u,t.k)&&(u.value=c),t.k&&(f[t.k]=c))};if(c){const H=()=>{lt(),qs.delete(t)};H.id=-1,qs.set(t,H),Gt(H,s)}else rl(t),lt()}}}function rl(t){const e=qs.get(t);e&&(e.flags|=8,qs.delete(t))}Vs().requestIdleCallback;Vs().cancelIdleCallback;const is=t=>!!t.type.__asyncLoader,Un=t=>t.type.__isKeepAlive;function ti(t,e){yo(t,"a",e)}function ei(t,e){yo(t,"da",e)}function yo(t,e,s=Nt){const n=t.__wdc||(t.__wdc=()=>{let l=s;for(;l;){if(l.isDeactivated)return;l=l.parent}return t()});if(Xs(e,n,s),s){let l=s.parent;for(;l&&l.parent;)Un(l.parent.vnode)&&si(n,e,s,l),l=l.parent}}function si(t,e,s,n){const l=Xs(e,t,n,!0);$o(()=>{jn(n[e],l)},s)}function Xs(t,e,s=Nt,n=!1){if(s){const l=s[t]||(s[t]=[]),o=e.__weh||(e.__weh=(...c)=>{we();const a=bs(s),u=le(e,s,t,c);return a(),ke(),u});return n?l.unshift(o):l.push(o),o}}const Se=t=>(e,s=Nt)=>{(!hs||t==="sp")&&Xs(t,(...n)=>e(...n),s)},ni=Se("bm"),Ye=Se("m"),li=Se("bu"),oi=Se("u"),ai=Se("bum"),$o=Se("um"),ii=Se("sp"),ri=Se("rtg"),ci=Se("rtc");function ui(t,e=Nt){Xs("ec",t,e)}const di="components";function pi(t,e){return hi(di,t,!0,e)||t}const fi=Symbol.for("v-ndc");function hi(t,e,s=!0,n=!1){const l=Qt||Nt;if(l){const o=l.type;{const a=Qi(o,!1);if(a&&(a===e||a===zt(e)||a===Us(zt(e))))return o}const c=cl(l[t]||o[t],e)||cl(l.appContext[t],e);return!c&&n?o:c}}function cl(t,e){return t&&(t[e]||t[zt(e)]||t[Us(zt(e))])}function gt(t,e,s,n){let l;const o=s,c=dt(t);if(c||Ot(t)){const a=c&&Fe(t);let u=!1,_=!1;a&&(u=!ee(t),_=_e(t),t=Gs(t)),l=new Array(t.length);for(let f=0,m=t.length;f<m;f++)l[f]=e(u?_?Ae(se(t[f])):se(t[f]):t[f],f,void 0,o)}else if(typeof t=="number"){l=new Array(t);for(let a=0;a<t;a++)l[a]=e(a+1,a,void 0,o)}else if(Mt(t))if(t[Symbol.iterator])l=Array.from(t,(a,u)=>e(a,u,void 0,o));else{const a=Object.keys(t);l=new Array(a.length);for(let u=0,_=a.length;u<_;u++){const f=a[u];l[u]=e(t[f],f,u,o)}}else l=[];return l}const kn=t=>t?Wo(t)?tn(t):kn(t.parent):null,rs=It(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>kn(t.parent),$root:t=>kn(t.root),$host:t=>t.ce,$emit:t=>t.emit,$options:t=>wo(t),$forceUpdate:t=>t.f||(t.f=()=>{Wn(t.update)}),$nextTick:t=>t.n||(t.n=Ka.bind(t.proxy)),$watch:t=>Xa.bind(t)}),rn=(t,e)=>t!==Ct&&!t.__isScriptSetup&&wt(t,e),mi={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:s,setupState:n,data:l,props:o,accessCache:c,type:a,appContext:u}=t;if(e[0]!=="$"){const v=c[e];if(v!==void 0)switch(v){case 1:return n[e];case 2:return l[e];case 4:return s[e];case 3:return o[e]}else{if(rn(n,e))return c[e]=1,n[e];if(l!==Ct&&wt(l,e))return c[e]=2,l[e];if(wt(o,e))return c[e]=3,o[e];if(s!==Ct&&wt(s,e))return c[e]=4,s[e];Mn&&(c[e]=0)}}const _=rs[e];let f,m;if(_)return e==="$attrs"&&Rt(t.attrs,"get",""),_(t);if((f=a.__cssModules)&&(f=f[e]))return f;if(s!==Ct&&wt(s,e))return c[e]=4,s[e];if(m=u.config.globalProperties,wt(m,e))return m[e]},set({_:t},e,s){const{data:n,setupState:l,ctx:o}=t;return rn(l,e)?(l[e]=s,!0):n!==Ct&&wt(n,e)?(n[e]=s,!0):wt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(o[e]=s,!0)},has({_:{data:t,setupState:e,accessCache:s,ctx:n,appContext:l,props:o,type:c}},a){let u;return!!(s[a]||t!==Ct&&a[0]!=="$"&&wt(t,a)||rn(e,a)||wt(o,a)||wt(n,a)||wt(rs,a)||wt(l.config.globalProperties,a)||(u=c.__cssModules)&&u[a])},defineProperty(t,e,s){return s.get!=null?t._.accessCache[e]=0:wt(s,"value")&&this.set(t,e,s.value,null),Reflect.defineProperty(t,e,s)}};function ul(t){return dt(t)?t.reduce((e,s)=>(e[s]=null,e),{}):t}let Mn=!0;function _i(t){const e=wo(t),s=t.proxy,n=t.ctx;Mn=!1,e.beforeCreate&&dl(e.beforeCreate,t,"bc");const{data:l,computed:o,methods:c,watch:a,provide:u,inject:_,created:f,beforeMount:m,mounted:v,beforeUpdate:$,updated:I,activated:G,deactivated:Z,beforeDestroy:lt,beforeUnmount:H,destroyed:U,unmounted:S,render:L,renderTracked:ut,renderTriggered:bt,errorCaptured:qt,serverPrefetch:oe,expose:Kt,inheritAttrs:E,components:R,directives:j,filters:C}=e;if(_&&vi(_,n,null),c)for(const A in c){const W=c[A];pt(W)&&(n[A]=W.bind(s))}if(l){const A=l.call(s,s);Mt(A)&&(t.data=vs(A))}if(Mn=!0,o)for(const A in o){const W=o[A],J=pt(W)?W.bind(s,s):pt(W.get)?W.get.bind(s,s):he,B=!pt(W)&&pt(W.set)?W.set.bind(s):he,X=Y({get:J,set:B});Object.defineProperty(n,A,{enumerable:!0,configurable:!0,get:()=>X.value,set:tt=>X.value=tt})}if(a)for(const A in a)xo(a[A],n,s,A);if(u){const A=pt(u)?u.call(s):u;Reflect.ownKeys(A).forEach(W=>{Ga(W,A[W])})}f&&dl(f,t,"c");function N(A,W){dt(W)?W.forEach(J=>A(J.bind(s))):W&&A(W.bind(s))}if(N(ni,m),N(Ye,v),N(li,$),N(oi,I),N(ti,G),N(ei,Z),N(ui,qt),N(ci,ut),N(ri,bt),N(ai,H),N($o,S),N(ii,oe),dt(Kt))if(Kt.length){const A=t.exposed||(t.exposed={});Kt.forEach(W=>{Object.defineProperty(A,W,{get:()=>s[W],set:J=>s[W]=J,enumerable:!0})})}else t.exposed||(t.exposed={});L&&t.render===he&&(t.render=L),E!=null&&(t.inheritAttrs=E),R&&(t.components=R),j&&(t.directives=j),oe&&bo(t)}function vi(t,e,s=he){dt(t)&&(t=Sn(t));for(const n in t){const l=t[n];let o;Mt(l)?"default"in l?o=Ts(l.from||n,l.default,!0):o=Ts(l.from||n):o=Ts(l),Bt(o)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:c=>o.value=c}):e[n]=o}}function dl(t,e,s){le(dt(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,s)}function xo(t,e,s,n){let l=n.includes(".")?vo(s,n):()=>s[n];if(Ot(t)){const o=e[t];pt(o)&&Re(l,o)}else if(pt(t))Re(l,t.bind(s));else if(Mt(t))if(dt(t))t.forEach(o=>xo(o,e,s,n));else{const o=pt(t.handler)?t.handler.bind(s):e[t.handler];pt(o)&&Re(l,o,t)}}function wo(t){const e=t.type,{mixins:s,extends:n}=e,{mixins:l,optionsCache:o,config:{optionMergeStrategies:c}}=t.appContext,a=o.get(e);let u;return a?u=a:!l.length&&!s&&!n?u=e:(u={},l.length&&l.forEach(_=>Ds(u,_,c,!0)),Ds(u,e,c)),Mt(e)&&o.set(e,u),u}function Ds(t,e,s,n=!1){const{mixins:l,extends:o}=e;o&&Ds(t,o,s,!0),l&&l.forEach(c=>Ds(t,c,s,!0));for(const c in e)if(!(n&&c==="expose")){const a=gi[c]||s&&s[c];t[c]=a?a(t[c],e[c]):e[c]}return t}const gi={data:pl,props:fl,emits:fl,methods:es,computed:es,beforeCreate:Ut,created:Ut,beforeMount:Ut,mounted:Ut,beforeUpdate:Ut,updated:Ut,beforeDestroy:Ut,beforeUnmount:Ut,destroyed:Ut,unmounted:Ut,activated:Ut,deactivated:Ut,errorCaptured:Ut,serverPrefetch:Ut,components:es,directives:es,watch:yi,provide:pl,inject:bi};function pl(t,e){return e?t?function(){return It(pt(t)?t.call(this,this):t,pt(e)?e.call(this,this):e)}:e:t}function bi(t,e){return es(Sn(t),Sn(e))}function Sn(t){if(dt(t)){const e={};for(let s=0;s<t.length;s++)e[t[s]]=t[s];return e}return t}function Ut(t,e){return t?[...new Set([].concat(t,e))]:e}function es(t,e){return t?It(Object.create(null),t,e):e}function fl(t,e){return t?dt(t)&&dt(e)?[...new Set([...t,...e])]:It(Object.create(null),ul(t),ul(e??{})):e}function yi(t,e){if(!t)return e;if(!e)return t;const s=It(Object.create(null),t);for(const n in e)s[n]=Ut(t[n],e[n]);return s}function ko(){return{app:null,config:{isNativeTag:Nl,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let $i=0;function xi(t,e){return function(n,l=null){pt(n)||(n=It({},n)),l!=null&&!Mt(l)&&(l=null);const o=ko(),c=new WeakSet,a=[];let u=!1;const _=o.app={_uid:$i++,_component:n,_props:l,_container:null,_context:o,_instance:null,version:er,get config(){return o.config},set config(f){},use(f,...m){return c.has(f)||(f&&pt(f.install)?(c.add(f),f.install(_,...m)):pt(f)&&(c.add(f),f(_,...m))),_},mixin(f){return o.mixins.includes(f)||o.mixins.push(f),_},component(f,m){return m?(o.components[f]=m,_):o.components[f]},directive(f,m){return m?(o.directives[f]=m,_):o.directives[f]},mount(f,m,v){if(!u){const $=_._ceVNode||Ft(n,l);return $.appContext=o,v===!0?v="svg":v===!1&&(v=void 0),t($,f,v),u=!0,_._container=f,f.__vue_app__=_,tn($.component)}},onUnmount(f){a.push(f)},unmount(){u&&(le(a,_._instance,16),t(null,_._container),delete _._container.__vue_app__)},provide(f,m){return o.provides[f]=m,_},runWithContext(f){const m=ze;ze=_;try{return f()}finally{ze=m}}};return _}}let ze=null;const wi=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${zt(e)}Modifiers`]||t[`${je(e)}Modifiers`];function ki(t,e,...s){if(t.isUnmounted)return;const n=t.vnode.props||Ct;let l=s;const o=e.startsWith("update:"),c=o&&wi(n,e.slice(7));c&&(c.trim&&(l=s.map(f=>Ot(f)?f.trim():f)),c.number&&(l=l.map(Dn)));let a,u=n[a=en(e)]||n[a=en(zt(e))];!u&&o&&(u=n[a=en(je(e))]),u&&le(u,t,6,l);const _=n[a+"Once"];if(_){if(!t.emitted)t.emitted={};else if(t.emitted[a])return;t.emitted[a]=!0,le(_,t,6,l)}}const Mi=new WeakMap;function Mo(t,e,s=!1){const n=s?Mi:e.emitsCache,l=n.get(t);if(l!==void 0)return l;const o=t.emits;let c={},a=!1;if(!pt(t)){const u=_=>{const f=Mo(_,e,!0);f&&(a=!0,It(c,f))};!s&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!o&&!a?(Mt(t)&&n.set(t,null),null):(dt(o)?o.forEach(u=>c[u]=null):It(c,o),Mt(t)&&n.set(t,c),c)}function Zs(t,e){return!t||!Bs(e)?!1:(e=e.slice(2),e=e==="Once"?e:e.replace(/Once$/,""),wt(t,e[0].toLowerCase()+e.slice(1))||wt(t,je(e))||wt(t,e))}function hl(t){const{type:e,vnode:s,proxy:n,withProxy:l,propsOptions:[o],slots:c,attrs:a,emit:u,render:_,renderCache:f,props:m,data:v,setupState:$,ctx:I,inheritAttrs:G}=t,Z=js(t);let lt,H;try{if(s.shapeFlag&4){const S=l||n,L=S;lt=pe(_.call(L,S,f,m,$,v,I)),H=a}else{const S=e;lt=pe(S.length>1?S(m,{attrs:a,slots:c,emit:u}):S(m,null)),H=e.props?a:Si(a)}}catch(S){Ne.length=0,Ys(S,t,1),lt=Ft(Me)}let U=lt;if(H&&G!==!1){const S=Object.keys(H),{shapeFlag:L}=U;S.length&&L&7&&(o&&S.some(Ws)&&(H=Ti(H,o)),U=Ge(U,H,!1,!0))}if(s.dirs&&(U=Ge(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(s.dirs):s.dirs),s.transition){const S=Js(U.type)&&go(U)||U;Kn(S,s.transition)}return lt=U,js(Z),lt}const Si=t=>{let e;for(const s in t)(s==="class"||s==="style"||Bs(s))&&((e||(e={}))[s]=t[s]);return e},Ti=(t,e)=>{const s={};for(const n in t)(!Ws(n)||!(n.slice(9)in e))&&(s[n]=t[n]);return s};function Ci(t,e,s){const{props:n,children:l,component:o}=t,{props:c,children:a,patchFlag:u}=e,_=o.emitsOptions;if(e.dirs||e.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?ml(n,c,_):!!c;if(u&8){const f=e.dynamicProps;for(let m=0;m<f.length;m++){const v=f[m];if(So(c,n,v)&&!Zs(_,v))return!0}}}else return(l||a)&&(!a||!a.$stable)?!0:n===c?!1:n?c?ml(n,c,_):!0:!!c;return!1}function ml(t,e,s){const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(let l=0;l<n.length;l++){const o=n[l];if(So(e,t,o)&&!Zs(s,o))return!0}return!1}function So(t,e,s){const n=t[s],l=e[s];return s==="style"&&Mt(n)&&Mt(l)?!zs(n,l):n!==l}function Ei({vnode:t,parent:e,suspense:s},n){for(;e;){const l=e.subTree;if(l.suspense&&l.suspense.activeBranch===t&&(l.suspense.vnode.el=l.el=n,t=l),l===t)(t=e.vnode).el=n,e=e.parent;else break}s&&s.activeBranch===t&&(s.vnode.el=n)}const To={},Co=()=>Object.create(To),Eo=t=>Object.getPrototypeOf(t)===To;function Fi(t,e,s,n=!1){const l={},o=Co();t.propsDefaults=Object.create(null),Fo(t,e,l,o);for(const c in t.propsOptions[0])c in l||(l[c]=void 0);s?t.props=n?l:qa(l):t.type.props?t.props=l:t.props=o,t.attrs=o}function Ai(t,e,s,n){const{props:l,attrs:o,vnode:{patchFlag:c}}=t,a=xt(l),[u]=t.propsOptions;let _=!1;if((n||c>0)&&!(c&16)){if(c&8){const f=t.vnode.dynamicProps;for(let m=0;m<f.length;m++){let v=f[m];if(Zs(t.emitsOptions,v))continue;const $=e[v];if(u)if(wt(o,v))$!==o[v]&&(o[v]=$,_=!0);else{const I=zt(v);l[I]=Tn(u,a,I,$,t,!1)}else $!==o[v]&&(o[v]=$,_=!0)}}}else{Fo(t,e,l,o)&&(_=!0);let f;for(const m in a)(!e||!wt(e,m)&&((f=je(m))===m||!wt(e,f)))&&(u?s&&(s[m]!==void 0||s[f]!==void 0)&&(l[m]=Tn(u,a,m,void 0,t,!0)):delete l[m]);if(o!==a)for(const m in o)(!e||!wt(e,m))&&(delete o[m],_=!0)}_&&ye(t.attrs,"set","")}function Fo(t,e,s,n){const[l,o]=t.propsOptions;let c=!1,a;if(e)for(let u in e){if(ns(u))continue;const _=e[u];let f;l&&wt(l,f=zt(u))?!o||!o.includes(f)?s[f]=_:(a||(a={}))[f]=_:Zs(t.emitsOptions,u)||(!(u in n)||_!==n[u])&&(n[u]=_,c=!0)}if(o){const u=xt(s),_=a||Ct;for(let f=0;f<o.length;f++){const m=o[f];s[m]=Tn(l,u,m,_[m],t,!wt(_,m))}}return c}function Tn(t,e,s,n,l,o){const c=t[s];if(c!=null){const a=wt(c,"default");if(a&&n===void 0){const u=c.default;if(c.type!==Function&&!c.skipFactory&&pt(u)){const{propsDefaults:_}=l;if(s in _)n=_[s];else{const f=bs(l);n=_[s]=u.call(null,e),f()}}else n=u;l.ce&&l.ce._setProp(s,n)}c[0]&&(o&&!a?n=!1:c[1]&&(n===""||n===je(s))&&(n=!0))}return n}const Oi=new WeakMap;function Ao(t,e,s=!1){const n=s?Oi:e.propsCache,l=n.get(t);if(l)return l;const o=t.props,c={},a=[];let u=!1;if(!pt(t)){const f=m=>{u=!0;const[v,$]=Ao(m,e,!0);It(c,v),$&&a.push(...$)};!s&&e.mixins.length&&e.mixins.forEach(f),t.extends&&f(t.extends),t.mixins&&t.mixins.forEach(f)}if(!o&&!u)return Mt(t)&&n.set(t,Ie),Ie;if(dt(o))for(let f=0;f<o.length;f++){const m=zt(o[f]);_l(m)&&(c[m]=Ct)}else if(o)for(const f in o){const m=zt(f);if(_l(m)){const v=o[f],$=c[m]=dt(v)||pt(v)?{type:v}:It({},v),I=$.type;let G=!1,Z=!0;if(dt(I))for(let lt=0;lt<I.length;++lt){const H=I[lt],U=pt(H)&&H.name;if(U==="Boolean"){G=!0;break}else U==="String"&&(Z=!1)}else G=pt(I)&&I.name==="Boolean";$[0]=G,$[1]=Z,(G||wt($,"default"))&&a.push(m)}}const _=[c,a];return Mt(t)&&n.set(t,_),_}function _l(t){return t[0]!=="$"&&!ns(t)}const Vn=t=>t==="_"||t==="_ctx"||t==="$stable",zn=t=>dt(t)?t.map(pe):[pe(t)],ji=(t,e,s)=>{if(e._n)return e;const n=za((...l)=>zn(e(...l)),s);return n._c=!1,n},Oo=(t,e,s)=>{const n=t._ctx;for(const l in t){if(Vn(l))continue;const o=t[l];if(pt(o))e[l]=ji(l,o,n);else if(o!=null){const c=zn(o);e[l]=()=>c}}},jo=(t,e)=>{const s=zn(e);t.slots.default=()=>s},qo=(t,e,s)=>{for(const n in e)(s||!Vn(n))&&(t[n]=e[n])},qi=(t,e,s)=>{const n=t.slots=Co();if(t.vnode.shapeFlag&32){const l=e._;l?(qo(n,e,s),s&&Ul(n,"_",l,!0)):Oo(e,n)}else e&&jo(t,e)},Di=(t,e,s)=>{const{vnode:n,slots:l}=t;let o=!0,c=Ct;if(n.shapeFlag&32){const a=e._;a?s&&a===1?o=!1:qo(l,e,s):(o=!e.$stable,Oo(e,l)),c=e}else e&&(jo(t,e),c={default:1});if(o)for(const a in l)!Vn(a)&&c[a]==null&&delete l[a]},Gt=Ri;function Pi(t){return Hi(t)}function Hi(t,e){const s=Vs();s.__VUE__=!0;const{insert:n,remove:l,patchProp:o,createElement:c,createText:a,createComment:u,setText:_,setElementText:f,parentNode:m,nextSibling:v,setScopeId:$=he,insertStaticContent:I}=t,G=(h,g,b,y=null,M=null,F=null,D=void 0,P=null,w=!!g.dynamicChildren)=>{if(h===g)return;h&&!Ze(h,g)&&(y=nt(h),tt(h,M,F,!0),h=null),g.patchFlag===-2&&(w=!1,g.dynamicChildren=null),g.dynamicChildren&&h&&h.dynamicChildren&&h.dynamicChildren.hasOnce&&(g.dynamicChildren===Ie&&(g.dynamicChildren=[]),g.dynamicChildren.hasOnce=!0);const{type:x,ref:et,shapeFlag:V}=g;switch(x){case Qs:Z(h,g,b,y);break;case Me:lt(h,g,b,y);break;case Cs:h==null&&H(g,b,y,D);break;case it:R(h,g,b,y,M,F,D,P,w);break;default:V&1?L(h,g,b,y,M,F,D,P,w):V&6?j(h,g,b,y,M,F,D,P,w):(V&64||V&128)&&x.process(h,g,b,y,M,F,D,P,w,at)}et!=null&&M?as(et,h&&h.ref,F,g||h,!g):et==null&&h&&h.ref!=null&&as(h.ref,null,F,h,!0)},Z=(h,g,b,y)=>{if(h==null)n(g.el=a(g.children),b,y);else{const M=g.el=h.el;g.children!==h.children&&_(M,g.children)}},lt=(h,g,b,y)=>{h==null?n(g.el=u(g.children||""),b,y):g.el=h.el},H=(h,g,b,y)=>{[h.el,h.anchor]=I(h.children,g,b,y,h.el,h.anchor)},U=({el:h,anchor:g},b,y)=>{let M;for(;h&&h!==g;)M=v(h),n(h,b,y),h=M;n(g,b,y)},S=({el:h,anchor:g})=>{let b;for(;h&&h!==g;)b=v(h),l(h),h=b;l(g)},L=(h,g,b,y,M,F,D,P,w)=>{if(g.type==="svg"?D="svg":g.type==="math"&&(D="mathml"),h==null)ut(g,b,y,M,F,D,P,w);else{const x=h.el&&h.el._isVueCE?h.el:null;try{x&&x._beginPatch(),oe(h,g,M,F,D,P,w)}finally{x&&x._endPatch()}}},ut=(h,g,b,y,M,F,D,P)=>{let w,x;const{props:et,shapeFlag:V,transition:ot,dirs:rt}=h;if(w=h.el=c(h.type,F,et&&et.is,et),V&8?f(w,h.children):V&16&&qt(h.children,w,null,y,M,cn(h,F),D,P),rt&&qe(h,null,y,"created"),bt(w,h,h.scopeId,D,y),et){for(const St in et)St!=="value"&&!ns(St)&&o(w,St,null,et[St],F,y);"value"in et&&o(w,"value",null,et.value,F),(x=et.onVnodeBeforeMount)&&ce(x,y,h)}rt&&qe(h,null,y,"beforeMount");const vt=Ii(M,ot);vt&&ot.beforeEnter(w),n(w,g,b),((x=et&&et.onVnodeMounted)||vt||rt)&&Gt(()=>{try{x&&ce(x,y,h),vt&&ot.enter(w),rt&&qe(h,null,y,"mounted")}finally{}},M)},bt=(h,g,b,y,M)=>{if(b&&$(h,b),y)for(let F=0;F<y.length;F++)$(h,y[F]);if(M){let F=M.subTree;if(g===F||Io(F.type)&&(F.ssContent===g||F.ssFallback===g)){const D=M.vnode;bt(h,D,D.scopeId,D.slotScopeIds,M.parent)}}},qt=(h,g,b,y,M,F,D,P,w=0)=>{for(let x=w;x<h.length;x++){const et=h[x]=P?be(h[x]):pe(h[x]);G(null,et,g,b,y,M,F,D,P)}},oe=(h,g,b,y,M,F,D)=>{const P=g.el=h.el;let{patchFlag:w,dynamicChildren:x,dirs:et}=g;w|=h.patchFlag&16;const V=h.props||Ct,ot=g.props||Ct;let rt;if(b&&De(b,!1),(rt=ot.onVnodeBeforeUpdate)&&ce(rt,b,g,h),et&&qe(g,h,b,"beforeUpdate"),b&&De(b,!0),x&&(!h.dynamicChildren||h.dynamicChildren.length!==x.length)&&(w=0,D=!1,x=null),(V.innerHTML&&ot.innerHTML==null||V.textContent&&ot.textContent==null)&&f(P,""),x?Kt(h.dynamicChildren,x,P,b,y,cn(g,M),F):D||W(h,g,P,null,b,y,cn(g,M),F,!1),w>0){if(w&16)E(P,V,ot,b,M);else if(w&2&&V.class!==ot.class&&o(P,"class",null,ot.class,M),w&4&&o(P,"style",V.style,ot.style,M),w&8){const vt=g.dynamicProps;for(let St=0;St<vt.length;St++){const kt=vt[St],jt=V[kt],Pt=ot[kt];(Pt!==jt||kt==="value")&&o(P,kt,jt,Pt,M,b)}}w&1&&h.children!==g.children&&f(P,g.children)}else!D&&x==null&&E(P,V,ot,b,M);((rt=ot.onVnodeUpdated)||et)&&Gt(()=>{rt&&ce(rt,b,g,h),et&&qe(g,h,b,"updated")},y)},Kt=(h,g,b,y,M,F,D)=>{for(let P=0;P<g.length;P++){const w=h[P],x=g[P],et=w.el&&(w.type===it||!Ze(w,x)||w.shapeFlag&198)?m(w.el):b;G(w,x,et,null,y,M,F,D,!0)}},E=(h,g,b,y,M)=>{if(g!==b){if(g!==Ct)for(const F in g)!ns(F)&&!(F in b)&&o(h,F,g[F],null,M,y);for(const F in b){if(ns(F))continue;const D=b[F],P=g[F];D!==P&&F!=="value"&&o(h,F,P,D,M,y)}"value"in b&&o(h,"value",g.value,b.value,M)}},R=(h,g,b,y,M,F,D,P,w)=>{const x=g.el=h?h.el:a(""),et=g.anchor=h?h.anchor:a("");let{patchFlag:V,dynamicChildren:ot,slotScopeIds:rt}=g;rt&&(P=P?P.concat(rt):rt),h==null?(n(x,b,y),n(et,b,y),qt(g.children||[],b,et,M,F,D,P,w)):V>0&&V&64&&ot&&h.dynamicChildren&&h.dynamicChildren.length===ot.length?(Kt(h.dynamicChildren,ot,b,M,F,D,P),(g.key!=null||M&&g===M.subTree)&&Do(h,g,!0)):W(h,g,b,et,M,F,D,P,w)},j=(h,g,b,y,M,F,D,P,w)=>{g.slotScopeIds=P,h==null?g.shapeFlag&512?M.ctx.activate(g,b,y,D,w):C(g,b,y,M,F,D,w):K(h,g,w)},C=(h,g,b,y,M,F,D)=>{const P=h.component=zi(h,y,M);if(Un(h)&&(P.ctx.renderer=at),Yi(P,!1,D),P.asyncDep){if(M&&M.registerDep(P,N,D),!h.el){const w=P.subTree=Ft(Me);lt(null,w,g,b),h.placeholder=w.el}}else N(P,h,g,b,M,F,D)},K=(h,g,b)=>{const y=g.component=h.component;if(Ci(h,g,b))if(y.asyncDep&&!y.asyncResolved){g.el=h.el,A(y,g,b);return}else y.next=g,y.update();else g.el=h.el,y.vnode=g},N=(h,g,b,y,M,F,D)=>{const P=()=>{if(h.isMounted){let{next:V,bu:ot,u:rt,parent:vt,vnode:St}=h;{const ie=Po(h);if(ie){V&&(V.el=St.el,A(h,V,D)),ie.asyncDep.then(()=>{Gt(()=>{h.isUnmounted||x()},M)});return}}let kt=V,jt;De(h,!1),V?(V.el=St.el,A(h,V,D)):V=St,ot&&Ss(ot),(jt=V.props&&V.props.onVnodeBeforeUpdate)&&ce(jt,vt,V,St),De(h,!0);const Pt=hl(h),ae=h.subTree;h.subTree=Pt,G(ae,Pt,m(ae.el),nt(ae),h,M,F),V.el=Pt.el,kt===null&&Ei(h,Pt.el),rt&&Gt(rt,M),(jt=V.props&&V.props.onVnodeUpdated)&&Gt(()=>ce(jt,vt,V,St),M)}else{let V;const{el:ot,props:rt}=g,{bm:vt,m:St,parent:kt,root:jt,type:Pt}=h,ae=is(g);De(h,!1),vt&&Ss(vt),!ae&&(V=rt&&rt.onVnodeBeforeMount)&&ce(V,kt,g),De(h,!0);{jt.ce&&jt.ce._hasShadowRoot()&&jt.ce._injectChildStyle(Pt,h.parent?h.parent.type:void 0);const ie=h.subTree=hl(h);G(null,ie,b,y,h,M,F),g.el=ie.el}if(St&&Gt(St,M),!ae&&(V=rt&&rt.onVnodeMounted)){const ie=g;Gt(()=>ce(V,kt,ie),M)}(g.shapeFlag&256||kt&&is(kt.vnode)&&kt.vnode.shapeFlag&256)&&h.a&&Gt(h.a,M),h.isMounted=!0,g=b=y=null}};h.scope.on();const w=h.effect=new Yl(P);h.scope.off();const x=h.update=w.run.bind(w),et=h.job=w.runIfDirty.bind(w);et.i=h,et.id=h.uid,w.scheduler=()=>Wn(et),De(h,!0),x()},A=(h,g,b)=>{g.component=h;const y=h.vnode.props;h.vnode=g,h.next=null,Ai(h,g.props,y,b),Di(h,g.children,b),we(),al(h),ke()},W=(h,g,b,y,M,F,D,P,w=!1)=>{const x=h&&h.children,et=h?h.shapeFlag:0,V=g.children,{patchFlag:ot,shapeFlag:rt}=g;if(ot>0){if(ot&128){B(x,V,b,y,M,F,D,P,w);return}else if(ot&256){J(x,V,b,y,M,F,D,P,w);return}}rt&8?(et&16&&Q(x,M,F),V!==x&&f(b,V)):et&16?rt&16?B(x,V,b,y,M,F,D,P,w):Q(x,M,F,!0):(et&8&&f(b,""),rt&16&&qt(V,b,y,M,F,D,P,w))},J=(h,g,b,y,M,F,D,P,w)=>{h=h||Ie,g=g||Ie;const x=h.length,et=g.length,V=Math.min(x,et);let ot;for(ot=0;ot<V;ot++){const rt=g[ot]=w?be(g[ot]):pe(g[ot]);G(h[ot],rt,b,null,M,F,D,P,w)}x>et?Q(h,M,F,!0,!1,V):qt(g,b,y,M,F,D,P,w,V)},B=(h,g,b,y,M,F,D,P,w)=>{let x=0;const et=g.length;let V=h.length-1,ot=et-1;for(;x<=V&&x<=ot;){const rt=h[x],vt=g[x]=w?be(g[x]):pe(g[x]);if(Ze(rt,vt))G(rt,vt,b,null,M,F,D,P,w);else break;x++}for(;x<=V&&x<=ot;){const rt=h[V],vt=g[ot]=w?be(g[ot]):pe(g[ot]);if(Ze(rt,vt))G(rt,vt,b,null,M,F,D,P,w);else break;V--,ot--}if(x>V){if(x<=ot){const rt=ot+1,vt=rt<et?g[rt].el:y;for(;x<=ot;)G(null,g[x]=w?be(g[x]):pe(g[x]),b,vt,M,F,D,P,w),x++}}else if(x>ot)for(;x<=V;)tt(h[x],M,F,!0),x++;else{const rt=x,vt=x,St=new Map;for(x=vt;x<=ot;x++){const Xt=g[x]=w?be(g[x]):pe(g[x]);Xt.key!=null&&St.set(Xt.key,x)}let kt,jt=0;const Pt=ot-vt+1;let ae=!1,ie=0;const Je=new Array(Pt);for(x=0;x<Pt;x++)Je[x]=0;for(x=rt;x<=V;x++){const Xt=h[x];if(jt>=Pt){tt(Xt,M,F,!0);continue}let re;if(Xt.key!=null)re=St.get(Xt.key);else for(kt=vt;kt<=ot;kt++)if(Je[kt-vt]===0&&Ze(Xt,g[kt])){re=kt;break}re===void 0?tt(Xt,M,F,!0):(Je[re-vt]=x+1,re>=ie?ie=re:ae=!0,G(Xt,g[re],b,null,M,F,D,P,w),jt++)}const Xn=ae?Li(Je):Ie;for(kt=Xn.length-1,x=Pt-1;x>=0;x--){const Xt=vt+x,re=g[Xt],Zn=g[Xt+1],Qn=Xt+1<et?Zn.el||Ho(Zn):y;Je[x]===0?G(null,re,b,Qn,M,F,D,P,w):ae&&(kt<0||x!==Xn[kt]?X(re,b,Qn,2):kt--)}}},X=(h,g,b,y,M=null)=>{const{el:F,type:D,transition:P,children:w,shapeFlag:x}=h;if(x&6){X(h.component.subTree,g,b,y);return}if(x&128){h.suspense.move(g,b,y);return}if(x&64){D.move(h,g,b,at);return}if(D===it){n(F,g,b);for(let V=0;V<w.length;V++)X(w[V],g,b,y);n(h.anchor,g,b);return}if(D===Cs){U(h,g,b);return}if(y!==2&&x&1&&P)if(y===0)P.persisted&&!F[an]?n(F,g,b):(P.beforeEnter(F),n(F,g,b),Gt(()=>P.enter(F),M));else{const{leave:V,delayLeave:ot,afterLeave:rt}=P,vt=()=>{h.ctx.isUnmounted?l(F):n(F,g,b)},St=()=>{const kt=F._isLeaving||!!F[an];F._isLeaving&&F[an](!0),P.persisted&&!kt?vt():V(F,()=>{vt(),rt&&rt()})};ot?ot(F,vt,St):St()}else n(F,g,b)},tt=(h,g,b,y=!1,M=!1)=>{const{type:F,props:D,ref:P,children:w,dynamicChildren:x,shapeFlag:et,patchFlag:V,dirs:ot,cacheIndex:rt,memo:vt}=h;if((V===-2||x&&x.hasOnce)&&(M=!1),P!=null&&(we(),as(P,null,b,h,!0),ke()),rt!=null&&(!h.ctx||h.ctx===g)&&(g.renderCache[rt]=void 0),et&256){g.ctx.deactivate(h);return}const St=et&1&&ot,kt=!is(h);let jt;if(kt&&(jt=D&&D.onVnodeBeforeUnmount)&&ce(jt,g,h),et&6)z(h.component,b,y);else{if(et&128){h.suspense.unmount(b,y);return}St&&qe(h,null,g,"beforeUnmount"),et&64?h.type.remove(h,g,b,at,y):x&&!x.hasOnce&&(F!==it||V>0&&V&64)?Q(x,g,b,!1,!0):(F===it&&V&384||!M&&et&16)&&Q(w,g,b),y&&q(h)}const Pt=vt!=null&&rt==null;(kt&&(jt=D&&D.onVnodeUnmounted)||St||Pt)&&Gt(()=>{jt&&ce(jt,g,h),St&&qe(h,null,g,"unmounted"),Pt&&(h.el=null)},b)},q=h=>{const{type:g,el:b,anchor:y,transition:M}=h;if(g===it){O(b,y);return}if(g===Cs){S(h),M&&!M.persisted&&M.afterLeave&&M.afterLeave();return}const F=()=>{l(b),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(h.shapeFlag&1&&M&&!M.persisted){const{leave:D,delayLeave:P}=M,w=()=>D(b,F);P?P(h.el,F,w):w()}else F()},O=(h,g)=>{let b;for(;h!==g;)b=v(h),l(h),h=b;l(g)},z=(h,g,b)=>{const{bum:y,scope:M,job:F,subTree:D,um:P,m:w,a:x}=h;vl(w),vl(x),y&&Ss(y),M.stop(),F?(F.flags|=8,tt(D,h,g,b)):h.vnode.el&&D&&(D.transition=h.vnode.transition,tt(D,h,g,b)),P&&Gt(P,g),Gt(()=>{h.isUnmounted=!0},g)},Q=(h,g,b,y=!1,M=!1,F=0)=>{for(let D=F;D<h.length;D++)tt(h[D],g,b,y,M)},nt=h=>{if(h.shapeFlag&6)return nt(h.component.subTree);if(h.shapeFlag&128)return h.suspense.next();const g=v(h.anchor||h.el),b=g&&g[Za];return b?v(b):g};let mt=!1;const ht=(h,g,b)=>{let y;h==null?g._vnode&&(tt(g._vnode,null,null,!0),y=g._vnode.component):G(g._vnode||null,h,g,null,null,null,b),g._vnode=h,mt||(mt=!0,al(y),fo(),mt=!1)},at={p:G,um:tt,m:X,r:q,mt:C,mc:qt,pc:W,pbc:Kt,n:nt,o:t};return{render:ht,hydrate:void 0,createApp:xi(ht)}}function cn({type:t,props:e},s){return s==="svg"&&t==="foreignObject"||s==="mathml"&&t==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:s}function De({effect:t,job:e},s){s?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Ii(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Do(t,e,s=!1){const n=t.children,l=e.children;if(dt(n)&&dt(l))for(let o=0;o<n.length;o++){const c=n[o];let a=l[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=l[o]=be(l[o]),a.el=c.el),!s&&a.patchFlag!==-2&&Do(c,a)),a.type===Qs&&(a.patchFlag===-1&&(a=l[o]=be(a)),a.el=c.el),a.type===Me&&!a.el&&(a.el=c.el)}}function Li(t){const e=t.slice(),s=[0];let n,l,o,c,a;const u=t.length;for(n=0;n<u;n++){const _=t[n];if(_!==0){if(l=s[s.length-1],t[l]<_){e[n]=l,s.push(n);continue}for(o=0,c=s.length-1;o<c;)a=o+c>>1,t[s[a]]<_?o=a+1:c=a;_<t[s[o]]&&(o>0&&(e[n]=s[o-1]),s[o]=n)}}for(o=s.length,c=s[o-1];o-- >0;)s[o]=c,c=e[c];return s}function Po(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Po(e)}function vl(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function Ho(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?Ho(e.subTree):null}const Io=t=>t.__isSuspense;function Ri(t,e){e&&e.pendingBranch?dt(t)?e.effects.push(...t):e.effects.push(t):Va(t)}const it=Symbol.for("v-fgt"),Qs=Symbol.for("v-txt"),Me=Symbol.for("v-cmt"),Cs=Symbol.for("v-stc"),Ne=[];let te=null;function k(t=!1){Ne.push(te=t?null:[])}function Lo(){Ne.pop(),te=Ne[Ne.length-1]||null}let ps=1;function gl(t,e=!1){ps+=t,t<0&&te&&e&&(te.hasOnce=!0)}function Ro(t){return t.dynamicChildren=ps>0?te||Ie:null,Lo(),ps>0&&te&&te.push(t),t}function T(t,e,s,n,l,o){return Ro(r(t,e,s,n,l,o,!0))}function Lt(t,e,s,n,l){return Ro(Ft(t,e,s,n,l,!0))}function No(t){return t?t.__v_isVNode===!0:!1}function Ze(t,e){return t.type===e.type&&t.key===e.key}const Bo=({key:t})=>t??null,Es=({ref:t,ref_key:e,ref_for:s})=>(typeof t=="number"&&(t=""+t),t!=null?Ot(t)||Bt(t)||pt(t)?{i:Qt,r:t,k:e,f:!!s}:t:null);function r(t,e=null,s=null,n=0,l=null,o=t===it?0:1,c=!1,a=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Bo(e),ref:e&&Es(e),scopeId:mo,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:Qt};return a?(Ps(u,s),o&128&&t.normalize(u)):s&&(u.shapeFlag|=Ot(s)?8:16),ps>0&&!c&&te&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&te.push(u),u}const Ft=Ni;function Ni(t,e=null,s=null,n=0,l=null,o=!1){if((!t||t===fi)&&(t=Me),No(t)){const a=Ge(t,e,!0);return s&&Ps(a,s),ps>0&&!o&&te&&(a.shapeFlag&6?te[te.indexOf(t)]=a:te.push(a)),a.patchFlag=-2,a}if(tr(t)&&(t=t.__vccOpts),e){e=Bi(e);let{class:a,style:u}=e;a&&!Ot(a)&&(e.class=Zt(a)),Mt(u)&&(Bn(u)&&!dt(u)&&(u=It({},u)),e.style=Dt(u))}const c=Ot(t)?1:Io(t)?128:Js(t)?64:Mt(t)?4:pt(t)?2:0;return r(t,e,s,n,l,c,o,!0)}function Bi(t){return t?Bn(t)||Eo(t)?It({},t):t:null}function Ge(t,e,s=!1,n=!1){const{props:l,ref:o,patchFlag:c,children:a,transition:u}=t,_=e?Ki(l||{},e):l,f={__v_isVNode:!0,__v_skip:!0,type:t.type,props:_,key:_&&Bo(_),ref:e&&e.ref?s&&o?dt(o)?o.concat(Es(e)):[o,Es(e)]:Es(e):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:a,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==it?c===-1?16:c|16:c,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&Ge(t.ssContent),ssFallback:t.ssFallback&&Ge(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce,cacheIndex:t.cacheIndex};return u&&n&&Kn(f,u.clone(f)),f}function ct(t=" ",e=0){return Ft(Qs,null,t,e)}function Wi(t,e){const s=Ft(Cs,null,t);return s.staticCount=e,s}function _t(t="",e=!1){return e?(k(),Lt(Me,null,t)):Ft(Me,null,t)}function pe(t){return t==null||typeof t=="boolean"?Ft(Me):dt(t)?Ft(it,null,t.slice()):No(t)?be(t):Ft(Qs,null,String(t))}function be(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ge(t)}function Ps(t,e){let s=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(dt(e))s=16;else if(typeof e=="object")if(n&65){const l=e.default;l&&(l._c&&(l._d=!1),Ps(t,l()),l._c&&(l._d=!0));return}else{s=32;const l=e._;!l&&!Eo(e)?e._ctx=Qt:l===3&&Qt&&(Qt.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else if(pt(e)){if(n&65){Ps(t,{default:e});return}e={default:e,_ctx:Qt},s=32}else e=String(e),n&64?(s=16,e=[ct(e)]):s=8;t.children=e,t.shapeFlag|=s}function Ki(...t){const e={};for(let s=0;s<t.length;s++){const n=t[s];for(const l in n)if(l==="class")e.class!==n.class&&(e.class=Zt([e.class,n.class]));else if(l==="style")e.style=Dt([e.style,n.style]);else if(Bs(l)){const o=e[l],c=n[l];c&&o!==c&&!(dt(o)&&o.includes(c))?e[l]=o?[].concat(o,c):c:c==null&&o==null&&!Ws(l)&&(e[l]=c)}else l!==""&&(e[l]=n[l])}return e}function ce(t,e,s,n=null){le(t,e,7,[s,n])}const Ui=ko();let Vi=0;function zi(t,e,s){const n=t.type,l=(e?e.appContext:t.appContext)||Ui,o={uid:Vi++,vnode:t,type:n,parent:e,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ma(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:e?e.provides:Object.create(l.provides),ids:e?e.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ao(n,l),emitsOptions:Mo(n,l),emit:null,emitted:null,propsDefaults:Ct,inheritAttrs:n.inheritAttrs,ctx:Ct,data:Ct,props:Ct,attrs:Ct,slots:Ct,refs:Ct,setupState:Ct,setupContext:null,suspense:s,suspenseId:s?s.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=e?e.root:o,o.emit=ki.bind(null,o),t.ce&&t.ce(o),o}let Nt=null;const Gi=()=>Nt||Qt;let Hs,fs;{const t=Vs(),e=(s,n)=>{let l;return(l=t[s])||(l=t[s]=[]),l.push(n),o=>{l.length>1?l.forEach(c=>c(o)):l[0](o)}};Hs=e("__VUE_INSTANCE_SETTERS__",s=>Nt=s),fs=e("__VUE_SSR_SETTERS__",s=>hs=s)}const bs=t=>{const e=Nt;return Hs(t),t.scope.on(),()=>{t.scope.off(),Hs(e)}},bl=()=>{Nt&&Nt.scope.off(),Hs(null)};function Wo(t){return t.vnode.shapeFlag&4}let hs=!1;function Yi(t,e=!1,s=!1){e&&fs(e);const{props:n,children:l}=t.vnode,o=Wo(t);Fi(t,n,o,e),qi(t,l,s||e);const c=o?Ji(t,e):void 0;return e&&fs(!1),c}function Ji(t,e){const s=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,mi);const{setup:n}=s;if(n){we();const l=t.setupContext=n.length>1?Zi(t):null,o=bs(t),c=gs(n,t,0,[t.props,l]),a=Bl(c);if(ke(),o(),(a||t.sp)&&!is(t)&&bo(t),a){if(c.then(bl,bl),e)return c.then(u=>{fs(!0);try{yl(t,u,e)}finally{fs(!1)}}).catch(u=>{Ys(u,t,0)});t.asyncDep=c}else yl(t,c)}else Ko(t)}function yl(t,e,s){pt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Mt(e)&&(t.setupState=co(e)),Ko(t)}function Ko(t,e,s){const n=t.type;t.render||(t.render=n.render||he);{const l=bs(t);we();try{_i(t)}finally{ke(),l()}}}const Xi={get(t,e){return Rt(t,"get",""),t[e]}};function Zi(t){const e=s=>{t.exposed=s||{}};return{attrs:new Proxy(t.attrs,Xi),slots:t.slots,emit:t.emit,expose:e}}function tn(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(co(Da(t.exposed)),{get(e,s){if(s in e)return e[s];if(s in rs)return rs[s](t)},has(e,s){return s in e||s in rs}})):t.proxy}function Qi(t,e=!0){return pt(t)?t.displayName||t.name:t.name||e&&t.__name}function tr(t){return pt(t)&&"__vccOpts"in t}const Y=(t,e)=>Ra(t,e,hs),er="3.5.43";/**
  14. * @vue/runtime-dom v3.5.43
  15. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  16. * @license MIT
  17. **/let Cn;const $l=typeof window<"u"&&window.trustedTypes;if($l)try{Cn=$l.createPolicy("vue",{createHTML:t=>t})}catch{}const Uo=Cn?t=>Cn.createHTML(t):t=>t,sr="http://www.w3.org/2000/svg",nr="http://www.w3.org/1998/Math/MathML",ge=typeof document<"u"?document:null,xl=ge&&ge.createElement("template"),lr={insert:(t,e,s)=>{e.insertBefore(t,s||null)},remove:t=>{const e=t.parentNode;e&&e.removeChild(t)},createElement:(t,e,s,n)=>{const l=e==="svg"?ge.createElementNS(sr,t):e==="mathml"?ge.createElementNS(nr,t):s?ge.createElement(t,{is:s}):ge.createElement(t);return t==="select"&&n&&n.multiple!=null&&l.setAttribute("multiple",n.multiple),l},createText:t=>ge.createTextNode(t),createComment:t=>ge.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>ge.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,s,n,l,o){const c=s?s.previousSibling:e.lastChild;if(l&&(l===o||l.nextSibling))for(;e.insertBefore(l.cloneNode(!0),s),!(l===o||!(l=l.nextSibling)););else{xl.innerHTML=Uo(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);const a=xl.content;if(n==="svg"||n==="mathml"){const u=a.firstChild;for(;u.firstChild;)a.appendChild(u.firstChild);a.removeChild(u)}e.insertBefore(a,s)}return[c?c.nextSibling:e.firstChild,s?s.previousSibling:e.lastChild]}},or=Symbol("_vtc");function ar(t,e,s){const n=t[or];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):s?t.setAttribute("class",e):t.className=e}const Is=Symbol("_vod"),Vo=Symbol("_vsh"),ir={name:"show",beforeMount(t,{value:e},{transition:s}){t[Is]=t.style.display==="none"?"":t.style.display,s&&e?s.beforeEnter(t):Qe(t,e)},mounted(t,{value:e},{transition:s}){s&&e&&s.enter(t)},updated(t,{value:e,oldValue:s},{transition:n}){!e!=!s&&(n?e?(n.beforeEnter(t),Qe(t,!0),n.enter(t)):n.leave(t,()=>{Qe(t,!1)}):Qe(t,e))},beforeUnmount(t,{value:e}){Qe(t,e)}};function Qe(t,e){t.style.display=e?t[Is]:"none",t[Vo]=!e}const rr=Symbol(""),cr=/(?:^|;)\s*display\s*:/;function ur(t,e,s){const n=t.style,l=Ot(s);let o=!1;if(s&&!l){if(e)if(Ot(e))for(const c of e.split(";")){const a=c.slice(0,c.indexOf(":")).trim();s[a]==null&&ss(n,a,"")}else for(const c in e)s[c]==null&&ss(n,c,"");for(const c in s){c==="display"&&(o=!0);const a=s[c];a!=null?pr(t,c,!Ot(e)&&e?e[c]:void 0,a)||ss(n,c,a):ss(n,c,"")}}else if(l){if(e!==s){const c=n[rr];c&&(s+=";"+c),n.cssText=s,o=cr.test(s)}}else e&&t.removeAttribute("style");Is in t&&(t[Is]=o?n.display:"",t[Vo]&&(n.display="none"))}const ws=/\s*!important$/;function ss(t,e,s){if(dt(s))s.forEach(n=>ss(t,e,n));else if(s==null&&(s=""),e.startsWith("--"))ws.test(s)?t.setProperty(e,s.replace(ws,""),"important"):t.setProperty(e,s);else{const n=dr(t,e);ws.test(s)?t.setProperty(je(n),s.replace(ws,""),"important"):t[n]=s}}const wl=["Webkit","Moz","ms"],un={};function dr(t,e){const s=un[e];if(s)return s;let n=zt(e);if(n!=="filter"&&n in t)return un[e]=n;n=Us(n);for(let l=0;l<wl.length;l++){const o=wl[l]+n;if(o in t)return un[e]=o}return e}function pr(t,e,s,n){return t.tagName==="TEXTAREA"&&(e==="width"||e==="height")&&Ot(n)&&s===n}const kl="http://www.w3.org/1999/xlink";function Ml(t,e,s,n,l,o=pa(e)){n&&e.startsWith("xlink:")?s==null?t.removeAttributeNS(kl,e.slice(6,e.length)):t.setAttributeNS(kl,e,s):s==null||o&&!Vl(s)?t.removeAttribute(e):t.setAttribute(e,o?"":me(s)?String(s):s)}function Sl(t,e,s,n,l){if(e==="innerHTML"||e==="textContent"){s!=null&&(t[e]=e==="innerHTML"?Uo(s):s);return}const o=t.tagName;if(e==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?t.getAttribute("value")||"":t.value,u=s==null?t.type==="checkbox"?"on":"":String(s);(a!==u||!("_value"in t))&&(t.value=u),s==null&&t.removeAttribute(e),t._value=s;return}let c=!1;if(s===""||s==null){const a=typeof t[e];a==="boolean"?s=Vl(s):s==null&&a==="string"?(s="",c=!0):a==="number"&&(s=0,c=!0)}try{t[e]=s}catch{}c&&t.removeAttribute(l||e)}function Ue(t,e,s,n){t.addEventListener(e,s,n)}function fr(t,e,s,n){t.removeEventListener(e,s,n)}const Tl=Symbol("_vei");function hr(t,e,s,n,l=null){const o=t[Tl]||(t[Tl]={}),c=o[e];if(n&&c)c.value=n;else{const[a,u]=vr(e);if(n){const _=o[e]=yr(n,l);Ue(t,a,_,u)}else c&&(fr(t,a,c,u),o[e]=void 0)}}const mr=/(Once|Passive|Capture)$/,_r=/^on:?(?:Once|Passive|Capture)$/;function vr(t){let e,s;for(;(s=t.match(mr))&&!_r.test(t);)e||(e={}),t=t.slice(0,t.length-s[1].length),e[s[1].toLowerCase()]=!0;return[t[2]===":"?t.slice(3):je(t.slice(2)),e]}let dn=0;const gr=Promise.resolve(),br=()=>dn||(gr.then(()=>dn=0),dn=Date.now());function yr(t,e){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const l=s.value;if(dt(l)){const o=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{o.call(n),n._stopped=!0};const c=l.slice(),a=[n];for(let u=0;u<c.length&&!n._stopped;u++){const _=c[u];_&&le(_,e,5,a)}}else le(l,e,5,[n])};return s.value=t,s.attached=br(),s}const Cl=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,$r=(t,e,s,n,l,o)=>{const c=l==="svg";e==="class"?ar(t,n,c):e==="style"?ur(t,s,n):Bs(e)?Ws(e)||hr(t,e,s,n,o):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):xr(t,e,n,c))?(Sl(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Ml(t,e,n,c,o,e!=="value")):t._isVueCE&&(wr(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!Ot(n)))?Sl(t,zt(e),n,o,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),Ml(t,e,n,c))};function xr(t,e,s,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&Cl(e)&&pt(s));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="autocorrect"||e==="sandbox"&&t.tagName==="IFRAME"||e==="form"||e==="list"&&t.tagName==="INPUT"||e==="type"&&t.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const l=t.tagName;if(l==="IMG"||l==="VIDEO"||l==="CANVAS"||l==="SOURCE")return!1}return Cl(e)&&Ot(s)?!1:e in t}function wr(t,e){const s=t._def.props;if(!s)return!1;const n=zt(e);return Array.isArray(s)?s.some(l=>zt(l)===n):Object.keys(s).some(l=>zt(l)===n)}const El=t=>{const e=t.props["onUpdate:modelValue"]||!1;return dt(e)?s=>Ss(e,s):e};function kr(t){t.target.composing=!0}function Fl(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const ks=Symbol("_assign"),Ms=Symbol("_initialValue");function pn(t,e,s){return e&&(t=t.trim()),s&&(t=Dn(t)),t}const Al={created(t,{modifiers:{lazy:e,trim:s,number:n}},l){t.parentNode&&(t.type==="text"?t[Ms]=t.defaultValue.replace(/[\r\n]/g,""):t.type==="textarea"&&(t[Ms]=t.defaultValue.replace(/\r\n?/g,`
  18. `))),t[ks]=El(l);const o=n||l.props&&l.props.type==="number";Ue(t,e?"change":"input",c=>{c.target.composing||t[ks](pn(t.value,s,o))}),(s||o)&&Ue(t,"change",()=>{t.value=pn(t.value,s,o)}),e||(Ue(t,"compositionstart",kr),Ue(t,"compositionend",Fl),Ue(t,"change",Fl))},mounted(t,{value:e,modifiers:{trim:s,number:n}}){const l=e??"",o=t[Ms];delete t[Ms],o!==void 0&&(t.type==="text"||t.type==="textarea")&&t.value!==o?t[ks](pn(t.value,s,n)):t.value=l},beforeUpdate(t,{value:e,oldValue:s,modifiers:{lazy:n,trim:l,number:o}},c){if(t[ks]=El(c),t.composing)return;const a=(o||t.type==="number")&&!/^0\d/.test(t.value)?Dn(t.value):t.value,u=e??"";if(a===u)return;const _=t.getRootNode();(_ instanceof Document||_ instanceof ShadowRoot)&&_.activeElement===t&&t.type!=="range"&&(n&&e===s||l&&t.value.trim()===u)||(t.value=u)}},Mr=["ctrl","shift","alt","meta"],Sr={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,e)=>Mr.some(s=>t[`${s}Key`]&&!e.includes(s))},Tr=(t,e)=>{if(!t)return t;const s=t._withMods||(t._withMods={}),n=e.join(".");return s[n]||(s[n]=((l,...o)=>{for(let c=0;c<e.length;c++){const a=Sr[e[c]];if(a&&a(l,e))return}return t(l,...o)}))},Cr={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Er=(t,e)=>{const s=t._withKeys||(t._withKeys={}),n=e.join(".");return s[n]||(s[n]=(l=>{if(!("key"in l))return;const o=je(l.key);if(e.some(c=>c===o||Cr[c]===o))return t(l)}))},Fr=It({patchProp:$r},lr);let Ol;function Ar(){return Ol||(Ol=Pi(Fr))}const Or=((...t)=>{const e=Ar().createApp(...t),{mount:s}=e;return e.mount=n=>{const l=qr(n);if(!l)return;const o=e._component;!pt(o)&&!o.render&&!o.template&&(o.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const c=s(l,!1,jr(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),c},e});function jr(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function qr(t){return Ot(t)?document.querySelector(t):t}const zo={fleet:"/api/fleet",curves:"/api/curves",channels:"/api/channels",facts:"/api/facts",maintSurvey:"/api/maint_survey",maintStd:"/api/maint_std",maintFramework:"/api/maint_framework",dqFindings:"/api/dq_findings",ontList:"/api/ont_list",askStatus:"/api/ask_status",askModels:"/api/ask_models",vibcms:"/api/vibcms",algoHealth:"/algorithm/healthz",algoEndpoints:"/algorithm/api/endpoints",algoMatrix:"/algorithm/api/matrix",algoReliability:"/algorithm/api/reliability",algoPurity:"/algorithm/api/curves_check"};async function Go(t,e){const s=zo[t],n=performance.now();try{const l=await fetch(s,{headers:{Accept:"application/json",...e?.body?{"Content-Type":"application/json"}:{}},...e}),o=await l.text();let c=o;try{c=JSON.parse(o)}catch{}return{name:t,path:s,ok:l.ok,status:l.status,ms:Math.round(performance.now()-n),data:c}}catch(l){return{name:t,path:s,ok:!1,status:0,ms:Math.round(performance.now()-n),error:l instanceof Error?l.message:String(l)}}}const fn=["facts","maintSurvey","ontList","askStatus","channels","dqFindings","algoHealth","algoEndpoints","algoMatrix","algoReliability","algoPurity"],Dr={class:"card"},Pr={class:"hint"},Hr=["disabled"],Ir={class:"hint"},Lr=Wt({__name:"ContractSmoke",setup(t){const e=yt([]),s=yt(!1),n=yt(0);function l(c){return Array.isArray(c)?`list[${c.length}]`:c&&typeof c=="object"?Object.keys(c).slice(0,8).join(", "):typeof c}async function o(){s.value=!0,e.value=[],n.value=0;for(const c of fn){const a=await Go(c);e.value.push({name:c,path:a.path,ok:a.ok,status:a.status,ms:a.ms,keys:l(a.data),error:a.error}),n.value+=1}s.value=!1}return Ye(o),(c,a)=>(k(),T("section",Dr,[a[3]||(a[3]=r("h2",null,[ct("契约自检 "),r("small",null,"(后端结构与算法服务可达性;对拍基准见 docs/接口契约_前后端_v0.1.md)")],-1)),r("p",Pr,[ct(" 进度 "+p(n.value)+"/"+p(d(fn).length)+' · 只判"通不通",不比数据值(值随数据变,锚点在 Python 侧的门禁里) ',1),r("button",{class:"re",disabled:s.value,onClick:o},"重跑",8,Hr)]),r("table",null,[a[0]||(a[0]=r("thead",null,[r("tr",null,[r("th",null,"接口"),r("th",null,"路径"),r("th",null,"状态"),r("th",null,"耗时"),r("th",null,"顶层键 / 形状")])],-1)),r("tbody",null,[(k(!0),T(it,null,gt(e.value,u=>(k(),T("tr",{key:u.name,class:Zt({bad:!u.ok})},[r("td",null,p(u.name),1),r("td",null,[r("code",null,p(u.path),1)]),r("td",null,p(u.status),1),r("td",null,p(u.ms)+" ms",1),r("td",null,p(u.error||u.keys),1)],2))),128))])]),r("p",Ir,[ct(" 契约登记接口合计 "+p(Object.keys(d(zo)).length)+" 条(本页抽样 "+p(d(fn).length)+" 条); 全量 42 条由 ",1),a[1]||(a[1]=r("code",null,"python scripts/http_contract_audit.py",-1)),a[2]||(a[2]=ct(" 在线复核。 ",-1))])]))}}),Rr={"app.brand":"观澜","app.build":"最新完成构建","app.lang_en":"英文","app.lang_zh":"中文","app.subtitle":"海上风电场","app.title":"观澜 · 风电数据分析与决策支持","ask.common_q":"{cat} · 常用问题 (点即问, 或下方自由输入)","ask.done_meta":"模型 {m} · 用时 {s} 秒 · {n} 步","ask.elapsed":"{s} 秒","ask.empty":"问题为空","ask.en_qa_failed":"英文质检未通过: 已拦截这次模型回答, 请重新提问。","ask.error":"出错: {e}","ask.go":"提问","ask.grounding":"答案句句带 [对象id] 溯源 + 数据回抓校验核验; 判级只转述本体原文带审级, 模型零判级权。","ask.idle":"空闲 — 点常用问题或输入后提问。串行一次一问。","ask.local_down":"本机模型未启动 (Ollama 127.0.0.1:11434 未响应); 离线版不转云","ask.model":"模型","ask.no_models":"无可用模型","ask.offline":"离线版: 模型问答需连接系统。","ask.partial":"初答 · 27B 复核中","ask.placeholder":"自由提问 ({cat})","ask.question":"问题: {q}","ask.refined":"已复核 (默认档 {m} 未过成文校验, 由更强模型重答)","ask.refs.none":"无匹配契约条目 (契约 {sha}): 本回答未被结构化事实契约背书, 按模型输出对待","ask.refs.title":"契约引用 ({n} 条, 契约 {sha}) — 按问题/回答匹配的可交付结论, 引文来自 qa_refs","ask.review":"交叉审核 · {m}","ask.review_err":"审核未完成: {e}","ask.review_note":"由另一模型基于同一份证据复核上述答案。溯源核验仅校验数字与机组号是否越界, 本项校验结论是否有证据支撑。","ask.running":"推理中…","ask.verify_bad":"溯源核验未全过 (引用 {n})","ask.verify_ok":"溯源核验 {n}/{n} 全真","ask.xrev":"交叉审核","ask.xrev_note":"(DeepSeek 14B 互审, +约 1 分钟)","ask.xrev_title":"由另一模型基于同一份证据复核; 同一模型自审无法构成独立校验","asst.alarm_type":"告警类型 {t}","asst.cause_counts":"手册 {r} 次 · 工单 {w} 次 · 涉码 {c}","asst.causes":"← 可能原因 (手册排查方向 + 工单实证)","asst.check":"查什么","asst.code_placeholder":"报警码, 如 3225 / 3130 / 13902","asst.common":"常见","asst.corrective":"抢修","asst.corrective_flow":"报警码 → 失效模式 → 手册分步处置 → 历史工单","asst.drawings":"对应图纸","asst.failmodes":"指向的失效模式","asst.faulttree":"故障树","asst.faulttree_flow":"按证据量排序的系统失效模式 + 部件级成因","asst.fm_counts":"该类本场报警 {a} 条 / 工单 {w} 条","asst.head":"检修助手 — 确定性本体查询","asst.head_note":"结果逐字取自手册与工单, 不经模型","asst.identity":"系统 {sys} · 本场 {n} 条","asst.interval":"周期 {i}","asst.known_tags":"该系统手册出现过的位号 (对图纸时参考):","asst.no_causes":"(手册无该类排查条目 — 原因层待补)","asst.no_name":"(码表未收录)","asst.no_steps":"本码无手册处置条目 (手册覆盖本场 161/322 码) — 需查图纸或联系厂商支持。","asst.node":"节点","asst.nodes":"应检节点 · {c}","asst.nodes_note":"手册此步未给位号 → 按回路构成展开, 逐点查","asst.prev_empty":"(该系统无匹配的年度维护条目 — 维护作业指导书按位置代号编排, 未必逐系统对齐)","asst.prev_fm":"失效模式 (按本场报警量)","asst.prev_head":"{sys} 预防链 · 失效模式 {f} 类 · 预防性任务 {n} 项","asst.prev_tasks":"年度任务","asst.preventive":"预防性维护","asst.preventive_flow":"系统 → 失效模式 → 年度任务 → 作业指导步骤","asst.qty":"量: {q}","asst.query_failed":"查询失败: {e}","asst.querying":"查询中…","asst.spec_name":"名称","asst.spec_no":"参数号","asst.spec_range":"允许范围","asst.spec_val":"整定值","asst.specs":"判定规范 (实机参数表)","asst.step_n":"第 {n} 步","asst.steps":"现场处置 {n} 步","asst.steps_note":"节点部件 = 手册原文元件位号 (确定); 判定规范 = 实机参数表按物理量匹配的候选判据, 非厂商绑定 — 现场以铭牌与图纸复核。","asst.tags":"节点部件","asst.tree_codes":"征兆码 {c}","asst.tree_counts":"本场报警 {a} 条 · 工单 {w} 条","asst.tree_empty":"该系统无失效模式记录","asst.tree_head":"{sys} 故障树 · {n} 个失效模式","asst.tree_note":"一层 = 系统 × 失效类 (归纳自本场码表与工单) · 二层 = 手册排查方向归一 + 工单原因计数; 条长按实证量 (报警条数 + 工单 × 10), 因果来自手册与工单原文非推断, 树深两层不外推。","asst.unassigned":"未归属","asst.wi_steps":"WI {n} 步","asst.wo_action":"处置","asst.wo_fault":"故障","asst.wo_head":"现场实际怎么修的 ({sys} 历史工单 {n} 条, 台账 2020~2024)","asst.wo_note":'工单时间窗止 2024-11-21; 2025–26 现场未提供 ⇒ "0 条" 是记录缺失非未修过。',"attr.变桨与液压":"变桨与液压","attr.塔架/结构":"塔架/结构","attr.无记录停机":"无记录停机","attr.未归类":"未归类","attr.电网/供电(外部)":"电网/供电(外部)","attr.轮毂/叶片":"轮毂/叶片","attr.运维操作":"运维操作","attr.风况(外部)":"风况(外部)","cat.equip":"设备类","cat.equip.hint":"设备状态 / 机制 / 判级 — 从机组档案、对象查询与机制检索取证","cat.equip.q1":"29号机组现在什么状态、为什么、该怎么办?","cat.equip.q2":"全场哪些机组有报警级或定论级判级?逐台列出并注明审级","cat.equip.q3":"失效机制库里有哪些机制族?各涉及哪些机组、状态如何?","cat.loss":"损失分析","cat.loss.hint":"当前 3 个月损失 / 未来损失 — ont_loss / ont_scenario 取证, 金额带电价区间统计方法","cat.loss.q1":"近3个月全场损失结构如何?分状态和分机组说, 电量与金额都给","cat.loss.q2":"29号如果拖到主轴承失效, 未来损失量级是多少?与现在修对比","cat.loss.q3":"限电常态化对检修机会成本有什么影响?","cat.risk":"安全风险预测","cat.risk.hint":"风险敞口 / 劣化趋势 / 盲区 — ont_risk / ont_mechanism_search 取证, 未列 ≠ 正常","cat.risk.q1":"当前哪些机组风险在上升需要重点盯?联动监视读数如何?","cat.risk.q2":'监测有哪些盲区?哪些"没报警"不等于正常?',"cat.risk.q3":"29号轴承正在承受金属接触, 风险敞口怎么评估?","cat.sched":"检修排程决策","cat.sched.hint":"排期沙盘 / 天气窗 / 验收树 — ont_scenario / ont_get 取证","cat.sched.q1":"29号修泵什么时候做最合适?对比各情景的损失与风险","cat.sched.q2":"未来几个月哪些月份适合安排CTV检修和吊装作业?依据历史可作业窗","cat.sched.q3":"29号修好之后按什么判据验收?三分支分别是什么条件?","ch.attrib.none":"无记录 {h}h ({p}%)","ch.attrib.ok":"已归因到部件 {h}h ({p}%)","ch.attrib.uncls":"未归类 {h}h","ch.beta.median":"全场中位 {v}°","ch.blame.d1":"限电与调度令, 不进设备责任","ch.blame.d2":"故障与检修停机, 唯一进设备考核","ch.blame.d3":"正常发电欠发与低风待机","ch.blame.n1":"交易与调度侧","ch.blame.n2":"设备侧","ch.blame.n3":"运行侧","ch.blame.title":"损失 {tot} MWh 按责任归属","ch.cap.legend":"圆内数字 = 台数, 圆面积 ∝ 台数","ch.cap.median":"中位 {v}","ch.cap.p":"满发封顶","ch.cap.w":"转速封顶","ch.ml.legend":"— {s}","ch.pareto.cum80":"累计 80%","ch.pareto.cumtip":"{k} · 累计 {p}%","ch.pareto.key":"关键少数: 前 {k} 项占 80%","ch.pareto.none":"时间窗内无数据","ch.pareto.top3":"前三: ","ch.pareto.total":"共 {n} 项, 合计 {tot}{unit}","ch.pareto.xlab":"报警码 (悬停看全名)","ch.quad.few":"时间窗内码数不足, 不作四象限","ch.quad.q1":"低频长时 · 硬故障","ch.quad.q1s":"备件与检修窗","ch.quad.q2":"高频长时 · 重点治理","ch.quad.q2s":"优先派工","ch.quad.q3":"低频短时 · 本底","ch.quad.q3s":"不单独处置","ch.quad.q4":"高频短时 · 重复触发","ch.quad.q4s":"调整参数或屏蔽, 非硬件故障","ch.quad.tip":"{n} 条 · 单次中位 {med}s · 累计 {h}h · {nt} 台","ch.quad.xlab":"发生条数 (对数)","ch.quad.ylab":"单次中位时长 (对数)","ch.ram.area":"圆面积 = 累计停机时长","ch.ram.equip":"设备类","ch.ram.ext":"外部类","ch.ram.few":"部件数不足, 不作象限","ch.ram.median":"虚线 = 本场中位分界","ch.ram.q1":"常坏且难修","ch.ram.q1s":"最高优先级","ch.ram.q2":"罕发难修","ch.ram.q2s":"备件与作业窗","ch.ram.q3":"频发易修","ch.ram.q3s":"查根因, 换件无用","ch.ram.q4":"少发好修","ch.ram.q4s":"维持","ch.ram.tip":"{p}: 平均无故障间隔(MTBF){mtbf}h · 单次停机时长(MDT){mdt}h · 停机 {h}h · {n}起 · {u}台","ch.ram.tip_ext":" · 外部类不计设备可靠性","ch.ram.xlab":"平均无故障间隔(MTBF,h,对数)→ 越右越可靠","ch.ram.ylab":"单次停机时长(MDT,h)→ 越上越难修","ch.rate.days":"仅{d}天","ch.rate.month":"{m}月","ch.rate.n":"{n}条","ch.rate.tip":"{m}: {v} 条/日 (总 {n} 条, 数据覆盖 {cov}%)","ch.rate.ylab":"条/日","ch.ruler.norm":"正态期望 3.7σ","ch.ruler.row":"{r}σ σ = {s}","ch.wf.act":"实际上网","ch.wf.theo":"理论可发","ch.wf.tip":"{nm}: 损失 {loss} MWh, 占理论 {pct}%, 时长 {h}h","chain.gb":"齿轮箱","chain.gde":"发电机DE","chain.gen":"发电机","chain.gnde":"发电机NDE","chain.hss":"高速","chain.ims":"中间","chain.mba":"主轴承后","chain.mbf":"主轴承前","chain.ps":"行星","cmp.alarm_n":"报警 {a}","cmp.alarm_units":"报警机组","cmp.basis":"依据","cmp.by_system":"按系统查看","cmp.cards_note":"点系统卡 → 该系统全场机组与依据; 九系统 = 交付九分册一一对应; 叶片与叶根 / 塔架与基础无 SCADA 轴 (分册蓝本取 CMS / 巡检)","cmp.counts":"报警 {a} · 不可判 {u} · 良好 {g} · 优秀 {e}","cmp.cross_eyebrow":"多系统交叉机组","cmp.detail":"详情","cmp.detail_head":"{sys} · 全场 {n} 台","cmp.external":"外部","cmp.fleet_n":" · 全场 {n} 台","cmp.fusion_moved":"振动线结论与四源融合已移至独立板块 →","cmp.fusion_n":"({n} 台次收录)","cmp.good_units":"良好 {n} 台 (轻微偏离, 周期观察 — 点开看逐台依据)","cmp.grading_pending":"正在按所选时间窗重算判级…","cmp.grading_pending_why":"时间窗 {span}:变桨/偏航/蓄能/温度四个判级面正按该时间窗重算(首次约 25 秒),下面的系统卡暂时还是上一份统计方法 —— 算完会自动刷新,不会静默混用。","cmp.hit_sys":"命中系统","cmp.n_sys":"系统数","cmp.n_units":"({n} 台)","cmp.none":"本系统全场无非常态。","cmp.problem_page":"该问题页 →","cmp.rel_ev":"事件","cmp.rel_eyebrow":"部件可靠性 · 时间窗 {win}","cmp.rel_fm":"典型失效模式 (按时长)","cmp.rel_h":"停机时长","cmp.rel_head":"部件停机贡献与可靠性","cmp.rel_mdt":"单次停机时长(MDT,h)","cmp.rel_meta":"总停机 {t}h = 设备类 {a} + 外部类 {b}","cmp.rel_mtbo":"平均停机间隔(MTBO,h)","cmp.rel_note":'统计方法 ≥1h 停机段, 不含调度令 — 与"电量算账"里的停机时长{h} 不同, 差额是短于 1h 的停机段 (本页按段做可靠性指标须成段, 能量账按逐条工况态算电量): 两个数都对, 不可互相相减。',"cmp.rel_part":"部件","cmp.rel_units":"影响机组","cmp.unk_n":" · 不可判 {u}","cmp.unk_units":"不可判 (监测/数据不足, ≠ 正常)","cmp.watch_head":"关注机组 (≥2 系统交叉, {n} 台; 点机组号 → 该台独立页)","dec.classic":"维护标准 / 维护框架 / 数据质量三块尚未迁入新版 —","dec.head":"检修决策 · 本体问答 (推理无界, 结论须过校验)","en.balance":"电量平衡","en.blame":"损失责任分账","en.blame_note":'最大一笔是限电不是故障。进设备考核的只有"故障与检修停机" {n} MWh; 限电属交易与调度侧, 2026 起交易策略主导, 少发未必是弃风。',"en.cap_fail":"不通过","en.cap_note":"能量守恒核 · 理论 {op} 全额定上限 {cap}","en.cap_pass":"通过","en.kpi_act":"实际上网 · 等效满发 {h} h","en.kpi_loss":"损失率 · {v} MWh","en.kpi_theo":"理论可发 (实际+损失)","en.loss_mwh":"损失 MWh","en.share":"时长占比","en.state":"工况态","en.states":"工况态明细","en.states_note":"控制参数一致性与曲线欠发筛查在固定干净窗判, 已迁入「发电性能」页 — 本页只出当期电量账。","en.win":"窗 {win}","fig.fleet_median":"全场中位","fig.point":"测点","fig.quartile":"四分位","fig.this_unit":"本台","fig.trend":"趋势","fig.vibbar_note":"条为本台与全场中位之比; 色按 z (稳健离群度): 绿 <2 · 橙 2~3 · 红 ≥3","fig.x_median":"×中位","flt.alarm_face":"报警面","flt.alarm_meta":"{n} 条 · {c} 个码 · 时间窗 {win}","flt.attrib_note":'归因覆盖: "无记录停机" {h}h 是全场最大单项, 因不给 MTBF 而在上图中不出现 — 它不是"没有故障", 是"没归上因"。统计方法为段起点 ±30min 首发码。缺口成因待定: 此前写的"98% 的段在前 72h 内有报警 ⇒ 长停远窗"不成立 — 前 72h 有报警不等于该报警与本段停机有因果 (双模审 2026-08-28 逮)。要定成因须改判"段起止是否落在某条报警的持续区间内", 未做之前只报缺口不报原因。',"flt.block_err":"本块未算出 ({k}): {e}","flt.eyebrow":"故障统计与可靠性","flt.pareto_d":"帕累托 · 按持续时长","flt.pareto_d_note":"时长 = 闩锁统计方法 (复位 − 激活), 只作排序参考不作停机时长","flt.pareto_n":"帕累托 · 按发生条数","flt.pareto_n_note":"条数 = 发生频次, 不反映影响程度 — 高频短时报警码 (信号抖动或重复触发) 排序靠前","flt.per_t":"台级分布 · 报警条数 top{n}","flt.per_t_note":"全场合计 {n} 条 · 单台占比高须先核查是否为单一报警码重复触发","flt.per_t_share":"占全场","flt.quad":"故障模式四象限 · 条数 × 单次时长","flt.quad_note":"时间窗内共 {n} 个码, 图上为条数前 {m} 个。","flt.quad_note2":"点面积表示影响机组数, 大点为批次共性、小点为单台; 竖分界取条数中位, 横分界取 10min (一个 SCADA 采样格)。右下角的码不要按条数排优先级 — 属重复触发, 非硬件故障。上面两张帕累托对照看即此图的两条投影。","flt.quad_partial":"窗含不满月 {m} (覆盖 {c}%), 条数为原始累计未按天归一。","flt.ram":"可靠性 × 可维修性 · 部件象限","flt.ram_note":'按停机时长排序的表看不出这层结构: 同样 500h 的停机, "频发易修"要查根因、"罕发难修"要备件, 处置相反。设备类停机 {a}h / 外部类 {b}h (外部 = 电网·风况·运维操作, 不计设备可靠性)。海上机组 MDT 普遍偏高是交通窗口决定的, 不等于维修本身慢 — 跨场比 MDT 须同为海上。',"flt.rate":"月度故障率","flt.rate_example":"实测: {m} 总数最低但日均 {v} 条/日 = 全时间窗前列。","flt.rate_full":"各月覆盖完整。","flt.rate_note":"柱高 = 日均条数, 不是月总数","flt.rate_partial":"本时间窗 {m} 数据不满月 (灰虚线柱), 直接比月总数会读反。","flt.seasonal":"故障季节性 · top 报警族 × 月","flt.seasonal_note":"全程 19 个月 (跨 2 冬 1 夏); 未做 χ² 显著性检验前为【参考级】, 只看形态不作季节归因","flt.seasonal_unit":"条/月","flt.seasonal_x":"月","flt.stop_face":"停机面","flt.stop_h":"停机时长","flt.stop_meta":"{h}h · {n} 起 · 统计方法 ≥1h 段, 不含调度令","flt.stop_n":"次数","flt.stop_pareto":"停机归因帕累托","flt.stop_pareto_note":"按停机时长; 事件次数见悬停","flt.stop_units":"台级停机 top{n}","flt.stop_units_note":"停机时长高 ≠ 设备差 — 须先看归因里外部类占比 (调度令已剔除)","fus.alarm_n":"{n} 条","fus.alarm_rank":" · 第 {r}/{t}","fus.burst":"⚠ {p}% 是码 {c} 抖动","fus.burst_tip":"⚠ 单码 {c} 占 {p}%, 中位 {m} 秒/次 — 条数被抖动灌满","fus.clear":"× 清除","fus.cms_act":"行动","fus.cms_action":"需行动机组 (报警 / 不可判)","fus.cms_basis":"统计方法说明","fus.cms_basis_note":"本表 = windcms 状态管理判级 (含标量趋势与数据可判性); 融合矩阵 / 逐台结论 = 振动线确诊链转录 (候选以上)。两统计方法差异台: 仅本表列 {a} (多为标量发作 / 数据不可判, 未到确诊链); 仅确诊链列 {b} (预警级在察, 状态管理未升)。","fus.cms_chain":"部件状态链","fus.cms_chain_note":"(主承前 · 主承后 · 齿轮箱 · 发电机; 悬停看逐件等级)","fus.cms_evidence":"证据强度","fus.cms_focus":"状态焦点","fus.cms_focus_note":"(传动链: 主承前 · 主承后 · 齿轮箱 · 发电机两端)","fus.cms_grades":"38 台部件等级一览","fus.cms_head":"振动状态评估 (windcms 报告 {d} 结果转录)","fus.cms_link":"谱图 · 波形 · 判据 · 工作台等分析功能在独立 windcms 系统 →","fus.cms_loading":"载入振动评估结果…","fus.cms_note":"状态管理判级, 不代表确诊数量; 判据/谱线/计算过程不在本页 — 深潜走底部独立系统。","fus.cms_open":"打开 windcms ↗","fus.cms_overall":"综合","fus.cms_static":"(未启动时用静态版)","fus.cms_window":'数据窗 {r} —— 本时间窗**实算**覆盖区间 (窗名只是起始日代号); 页面上的图谱与"末窗"状态取自时间窗内最新记录, 故多显示末期日期。',"fus.col.alarm":"报警","fus.col.claim":"证据时间窗","fus.col.claim_axis":"26-01 → 09","fus.col.display_only":" · 只展示","fus.col.fixed":" · 不随本时间窗","fus.col.lub":"润滑柱塞","fus.col.oil":"油样","fus.col.part":"部件","fus.col.signal":"振动信号","fus.col.state_concl":"设备状态 / 振动结论","fus.col.temp":"温度","fus.col.tempaxis":"温度轴","fus.col.tempaxis_note":"±6 K","fus.col.vib":"振动","fus.col.wo":"工单","fus.ev_code":"码","fus.ev_dur":"累计时长 h","fus.ev_head":"{c} — 报警 {an} 条 / {au} 台 · 工单 {wn} 条 / {wu} 台 (时间窗内)","fus.ev_min":"时长 min","fus.ev_no_alarm":"时间窗内无该部件报警","fus.ev_no_wo":"时间窗内无该部件工单 (工单数据止 2024-11, 2026 类窗必空 = 数据边界)","fus.ev_recent":"最近 {n} 条明细","fus.ev_text":"报警内容","fus.ev_time":"时间","fus.ev_top":"台分布 top: ","fus.ev_units":"台数","fus.ev_win":"时间窗 {win} · 顶部选择器可换","fus.ev_wo_act":"处理","fus.ev_wo_cause":"原因","fus.ev_wo_name":"故障名称","fus.eval_head":"评价体系 (规范化定义 — 两轴并存, 不可互相替代)","fus.eval_meaning":"含义","fus.eval_note":'设备状态答"这台设备现在怎么样" (危险 > 报警 > 良好 > 优秀 > 不可判); 证据状态答"这个判断有多可信" (定论 → INSUFFICIENT)。设备状态一律取自振动线的判级栏这一个来源。本页判级为转录, 不产新判级; 标注为参照同型机组/频谱信号级 (未定位到具体零件)/测量链/未对应到具体部件的行不作部件级结论消费; claim_window = 该结论的证据时间窗, 窗外状态该结论不背书。',"fus.eval_state":"设备状态 (业主统计方法)","fus.eval_tier":"证据状态 (可信度)","fus.eyebrow":"振动与 SCADA 证据视图 · 展示振动结论、SCADA 指标、报警与工单线索","fus.fam_tip":"{n} 条 · 全场最多 {m} 条","fus.legend_note":'两轴不可互相替代: "候选"说的是可信度不是设备好坏; "良好"说的是设备状态不是证据强度。设备状态只取自振动线的判级栏这一个来源。',"fus.legend_state":"格子颜色 = 设备状态 (业主统计方法, 与 windcms 报告同一套):","fus.legend_tier":"徽章 = 证据状态 (可信度, windcms 九枚举):","fus.loop_ba":"换前 → 换后 (同标尺)","fus.loop_bound":"数据边界: {b}","fus.loop_closed":"已闭环 · 换件后恢复 ({n} 例)","fus.loop_date":"换件日","fus.loop_el":"早期 → 近期 (同标尺)","fus.loop_head":"维修后验证案例 (检出 → 换件 → 恢复)","fus.loop_item":"事项","fus.loop_neg":"负面对照: 工单后持平 {n} 例 (换件 ≠ 必然回落, 说明回落非巧合)。","fus.loop_none":"暂无端到端闭环证据:现场提交的振动数据包里没有「报警→检修→复测」的成对记录","fus.loop_note":"有换件记录且同一统计方法指标回落, 可作为检测链已闭合的案例; 指标仍在上升但缺少可匹配工单的机组, 需现场或台账确认后再关闭。","fus.loop_ratio":"恢复比","fus.loop_rising":"未闭环 · 指标上升待现场/工单确认 ({n} 台)","fus.loop_state":"状态","fus.loop_verdict":"判","fus.loop_x":"倍比","fus.lub_now":"润滑柱塞现状","fus.lv.bad":"定论/报警级","fus.lv.note":"候选/监视/观察级","fus.lv.ok":"销案/无新证","fus.lv.warn":"预警级","fus.m.bad":"异常严重, 建议尽快停机检查","fus.m.bad_e":"证据: 已定案","fus.m.ex":"未见异常, 保持常规监视","fus.m.ex_e":"证据: 仅记录 / 已取消","fus.m.ok":"轻微偏离, 记录观察","fus.m.ok_e":"证据: 待现场核实 / 已记为基线下窗观察","fus.m.unk":"数据不足或监测中断 — 不等于正常","fus.m.unk_e":"证据: 数据不足","fus.m.warn":"存在需现场核实或处置的异常","fus.m.warn_e":"证据: 基本确认 / 新出现待核实","fus.matrix_foot":'润滑柱塞各台设定本就不同 (全场单次循环 22~961 秒), 所以此列只展示不判级, 只有已定案的机制链才标色; 油液多数台末次取样距今超 12 个月, 此列看的是"样够不够新", 不代表当前状态。',"fus.matrix_head":"全场融合矩阵 (38 台 × 6 个证据面)","fus.matrix_note1":'各列取数窗口不同 (见列头) — 不同窗的两格同时发红不等于"同时发生", 不可当共时印证。',"fus.matrix_note2":'每格右侧曲线 = 逐月记忆轨迹 ({n} 个月, {m0} 起; 实心点 = 现窗) — 现窗快照会丢形态, 轨迹才看得见"塌→回升→翻转"类机制签名。',"fus.no_alarm":"时间窗内无报警","fus.none_word":"无","fus.oil_fresh":"近共时","fus.oil_none":"无样","fus.oil_stale":"stale > 12 个月","fus.rule1":"① 同一失效机制的多个观测面 ≠ 多源印证 — 融合禁按源数加权 (29# 柱塞/温度/振动稳态/振动瞬态 = 四个观测面一条机制链)。","fus.rule2":'② "没报警" ≠ "正常" — 在已知盲区上, 缺报警只说明监测面无效, 不说明设备无恙。',"fus.rules_head":"两条判读纪律 (随板块常显)","fus.short.nodata":"数据不足","fus.short.normal":"正常","fus.short.nosample":"未取样","fus.short.stale":"样龄过期","fus.short.uneval":"未评估","fus.short.unlisted":"未收录","fus.sub.portal_cms":"振动 CMS","fus.sub.cms":"振动分析","fus.sub.events":"报警工单","fus.sub.loop":"端到端闭环","fus.sub.matrix":"融合矩阵","fus.sub.units":"逐台情况","fus.temp_now":"温度轴现状","fus.tip_state":" — 设备状态 {s}","fus.tip_tier":" / 证据状态 {e}","fus.unavailable":"融合面数据不可用: {e}","fus.units_filter":" · 筛选: {l}","fus.units_head":'逐台情况 (全场 {u} 台 / {n} 台次{f}; 深入谱图/波形 → "振动分析")',"fus.unlisted_head":"未列机组 {n} 台 (振动线未收录 — 未列 ≠ 正常)","fus.unlisted_link":"未列 {n} 台","fus.win_n":"{n} 个窗段","fus.win_none":"未标窗","fus.wo_n":"{n} 单","fus.wo_none":"时间窗内无传动链工单","gen.beta":"桨距调度同档差","gen.beta_note":"同一功率档下的桨角与全场中位之差。{units} 偏离达中位的 {k} 倍 → {v}","gen.cands":"曲线欠发筛查","gen.cands_meta":"{note} · σ = {s}%","gen.cap":"封顶参数落位","gen.cap_note":"台数落在几个离散位置上, 不是连成一片 — 这是配置/版本差异的形状; 磨损或工况引起的会是连续散布。两轴各自成组且分组不同台 ⇒ 参数级差异, 成因须配置台账。","gen.ctrl":"控制参数一致性","gen.ctrl_win":"窗 {win}","gen.eyebrow":"特性曲线与控制参数","gen.figs":"七个镜头 · 逐档中位与同型机群残差","gen.fixed_win":"随上方时间窗 · 按时间窗重算","gen.loading":"正在计算七个镜头 (剥限电 · 逐档中位 · 同型机群残差)…","gen.no_cands":"无候选","gen.recomputing":"正在按所选时间窗重算七镜头…","gen.recomputing_short":"正在按窗重算…","gen.ruler":"尺子巡检 · 极差 ÷ σ","gen.ruler_note":"判据自身的分辨力。38 台正态抽样的极差期望约 3.7σ, 明显超出即分布非单峰 — 与左图的分组互为印证; 落在期望附近的轴 (额定桨角) 则是连续分布。","gen.win_range":"时间窗 {span}","gen.win_why":'七镜头与月度时序都按所选时间窗重算(含自定义起止日期)。提示:2025-07 ~ 2025-12 是"限电前干净判别窗"——2026 起交易策略主导,曲线含策略性少发,作设备判据时须注意;选到含 2026 的窗时该影响存在但不再遮掩。',"kpi.alarm_units":"九系统有报警的台数 / 全场","kpi.alarm_units.hint":"统计方法: 九系统 (叶片与叶根/变桨/偏航/齿轮箱/发电机/主轴承/变流器/塔架与基础/主控与传感网) 中任一被判「报警」即计一台。与下方「全场状态」格的统计方法不同 —— 那里按每台 振动/温度/润滑/油液/报警/工单 六列取最严一级, 所以两处数字可以不同, 不是矛盾。","kpi.avail":"时间可用率 (不含调度令) · {win}","kpi.curtail":"限电·绑定 电量损失","kpi.downtime":"停机时长 · {n} 起","kpi.loss":"停机电量损失 · {win}","kpi.loss_dispatch":"另调度令 {n}","kpi.mtbo":"平均停机间隔(MTBO;非行业 MTBF)","loss.curtail_bound":"限电 (命令与实际功率对得上)","loss.curtail_unbound":"限电命令期 · 功率未被压制","loss.dispatch":"调度令停机","loss.lowwind":"低风待机","loss.normal":"正常发电时的欠发","loss.stop":"故障与检修停机","mdl.cloud":"云端","mdl.deepseek-chat.nm":"DeepSeek","mdl.deepseek-chat.t":"约 3 到 10 秒","mdl.deepseek-r1:14b.nm":"本机 DeepSeek 14B · 审核档","mdl.deepseek-r1:14b.t":"约 1 到 3 分钟","mdl.deepseek-r1:32b.nm":"本机 DeepSeek 32B","mdl.deepseek-r1:32b.t":"约 3 到 8 分钟","mdl.deepseek-v4-pro.nm":"云端 DS","mdl.deepseek-v4-pro.t":"约 2 到 6 分钟","mdl.kimi-fast.nm":"Kimi","mdl.kimi-fast.t":"约 5 到 20 秒","mdl.local":"本地","mdl.outbound_warn":"内容会外发到模型厂商, 场名与台号已去标识化","mdl.qwen-plus.nm":"通义千问","mdl.qwen-plus.t":"约 5 到 20 秒","mdl.qwen3.8:27b.nm":"标准 27B · 复杂题","mdl.qwen3.8:27b.t":"约 2 到 4 分钟","mdl.qwen3:30b-a3b.nm":"快 30B (a3b)","mdl.qwen3:30b-a3b.t":"约 20 到 60 秒","mdl.qwen3:8b.nm":"轻量 8B · 默认","mdl.qwen3:8b.t":"约 30 到 60 秒","mdl.unknown_warn":"未知档位, 按内容会外发处理","mdl.zero_outbound":"全程零外发","mt.cov":"当前覆盖","mt.eyebrow":"系统维护 · 数据输入与更新端口","mt.fail":"盘点失败: {e}","mt.freq":"频率","mt.head":"数据维护面 · {n} 个源","mt.how":"补数据怎么做","mt.last":"末次更新","mt.layer_data":"数据层","mt.layer_data_note":"随运营滚动 — 新数据到位后跑摄入, 本体与判级自动刷新","mt.layer_mech":"机理层","mt.layer_mech_note":"相对稳定 — 换厂商资料或现场反馈修正时才动; 它是判据的地基, 变更须过审","mt.note":'每个源给出: 当前覆盖 / 末次更新 / 约定位置 / 摄入命令 / 更新频率 / 责任方。要补数据就把新文件放到"约定位置"再跑"摄入命令"。',"mt.put":"放到:","mt.resp":"责任","mt.rows_n":" ({n} 条)","mt.run":"跑:","mt.src":"源","mt.surveying":"盘点中…","ov.all_steps_done":"已走完(待验收)","ov.attention":"需要关注","ov.attention_n":"{n} 台","ov.basis_fusion":"本台依据来自融合面(九系统判级无「报警」行):部件 {part} · 链路走到第 {done}/{n} 步 · 卡在「{stuck}」 · 证据源 {srcs}","ov.caveat":"限定","ov.evidence":"查看完整依据","ov.fus_gap_hint":"这一面(需要关注 / 全场状态)取数来自融合面;缺件时如实为空,不从交付包补齐。在本机放好原始件后跑一次重算即会由观澜自己的生成端补上(scripts/rudong_fusion_handoff.py,见 docs 的「源代码化清单」)。","ov.illustrative":"示意数据","ov.no_srcs":"无(该台无外部证据源)","ov.quiet":"其余 {n} 台未进入优先关注清单;设备状态请查看全场状态评估。","ov.quiet_all":"当前优先关注清单为空;{n} 台机组的设备状态请查看全场状态评估。","ov.ranked_by":"按 设备状态 × 证据量 排序","ov.strip":"全场状态","ov.strip_hint":"一格一台 · 点格定位","ov.systems":"九系统","ov.systems_hint":"点系统看逐台依据","pop.acts":"动作统计","pop.close":"关闭","pop.loading":"载入中…","pop.none":"本时间窗无记录","pop.o_act":"处置","pop.o_cause":"原因","pop.o_check":"排查","pop.o_date":"日期","pop.o_fault":"故障","pop.o_kind":"类别","pop.orders":"工单 {n} 单","pop.orders_none":"时间窗内无工单","pop.orders_one":"工单 1 单","pop.problem":"{u} · {sys}","pop.unit":"{u} · 全部问题","rpt.attrib.note":'"无记录停机"不是没有故障, 是没归上因。',"rpt.attrib.title":"归因覆盖","rpt.aud_in":"场站内部 (全量)","rpt.aud_up":"上报集团 (脱敏)","rpt.b.attrib.d":"已归因 vs 无记录停机的占比 — 无记录不等于没有故障","rpt.b.attrib.nm":"归因覆盖","rpt.b.blame.d":'交易调度侧 / 设备侧 / 运行侧 三段占比 — 回答"谁的责任"',"rpt.b.blame.nm":"损失责任分账","rpt.b.caliber.d":"统计期 / 残月 / 工单时间窗 / 判级性质 — 建议常驻, 没有边界的数字堆不能作汇报依据","rpt.b.caliber.nm":"统计方法与适用边界","rpt.b.chain.d":"证据→机制→判级→排期→动作→验收 六步的瓶颈分布","rpt.b.chain.nm":"决策链进度","rpt.b.emon.d":"逐月上网 / 损失 / 损失率 / 等效满发, 含数据覆盖率","rpt.b.emon.nm":"逐月发电表","rpt.b.frate.d":"按天归一的日均条数, 数据不满月单独标注","rpt.b.frate.nm":"月度故障率","rpt.b.kpi.d":"六个核心数: 上网电量 / 等效满发 / 可用率 / 损失率 / 停机间隔 / 需行动台","rpt.b.kpi.nm":"一级指标","rpt.b.loop.d":"检出 → 换件 → 复测回落的历史例证, 证明这条链是通的","rpt.b.loop.nm":"闭环实证","rpt.b.narr.d":"模型基于实测数据生成的运行总结 — 为图表补充文字结论, 供汇报使用","rpt.b.narr.nm":"运行总结","rpt.b.pareto.d":"按条数降序 + 累计 80% 线, 找关键少数","rpt.b.pareto.nm":"故障帕累托","rpt.b.parts.d":"逐部件停机时长 / 事件数 / 平均无故障间隔(MTBF)/ 单次停机时长(MDT)/ 影响机组数","rpt.b.parts.nm":"部件停机表","rpt.b.plan.d":"由数据推出的行动项, 不是套话","rpt.b.plan.nm":"下期建议","rpt.b.quad.d":"条数 × 单次时长, 区分重复触发与实际停机 — 按条数排序会误定优先级","rpt.b.quad.nm":"故障四象限","rpt.b.ram.d":'平均无故障间隔(MTBF)× 单次停机时长(MDT)部件象限, 分出"频发易修"与"罕发难修", 处置方向相反',"rpt.b.ram.nm":"可靠性象限","rpt.b.units.d":"需跟踪台的部件 / 证据源 / 六步进度 / 卡在哪一步","rpt.b.units.nm":"重点机组","rpt.b.water.d":"理论可发 → 逐段扣损 → 实际上网, 用于定位电量流向","rpt.b.water.nm":"能量瀑布","rpt.blame.cal":"工况态分解 + 限电命令面绑定判别; 平均出力=实发÷台时, 用作风资源代理量","rpt.blame.note":'进设备考核的只有"故障与检修停机"; 限电属交易与调度侧。',"rpt.blame.note2":'限电不是"低风时段收到的空令": 限电·绑定时段平均出力 1.435 MW, 正常发电时段 1.412 MW, 比值 1.02 — 风况相同而出力被压, 说明限电是真压制; 但"限电命令期·功率未被压制"那一档平均出力仅 0.724 MW (18% 额定), 确属低风时段收令。',"rpt.blame.title":"损失责任分账","rpt.cal.deid":"脱敏","rpt.cal.deid_d":"上报版隐去判据门槛与特征频率","rpt.cal.denom":"可用率与损失率分母不同","rpt.cal.denom_d":'可用率分母剔除低风待机与调度令(问"该发时能不能发"), 损失率分母含全部时段(问"理论能发多少"); 同一低风时段在可用率里不计时间、在损失率里计入基数 — 这是两个指标的设计差异不是错, 但两者不可直接相乘或互推。低风待机对损失的贡献仅 118 MWh(0.5%)',"rpt.cal.partial":" — {m} 数据不满月(覆盖 {c}%), 月度已按天归一","rpt.cal.period":"统计期","rpt.cal.rating":"判级","rpt.cal.rating_d":"由振动/温度/润滑/油液四源融合得出; 行动等级由综合报告出具","rpt.cal.stop":"停机","rpt.cal.stop_d":"可靠性统计方法 ≥1h 段, 电量账为逐条工况态 — 两个数都对, 不可相减","rpt.cal.title":"统计方法与数据边界","rpt.cal.wo":"工单","rpt.cal.wo_d":"台账 2020~2024-11, 本报告不对本期检修执行下结论","rpt.caliber_lbl":"统计方法: ","rpt.chain.cal":"「动作」一列不可判 — {b}","rpt.chain.note":"六步: 证据 → 机制 → 判级 → 排期 → 动作 → 验收。当前 {s}。","rpt.chain.title":"决策链进度","rpt.chapters":"{n} 个章节","rpt.cloud_note":"; 内容会外发到模型厂商","rpt.compose":"生成","rpt.compose_fail":"生成失败: {e}","rpt.composed":"已按需求编排 {n} 块{narr} · {m} 用时 {s}s","rpt.composing":"模型编排中… 挑组件 + 写总结","rpt.emon.act":"上网 MWh","rpt.emon.cal":"覆盖率<50% 的月不参与环比","rpt.emon.cov":"覆盖","rpt.emon.eflh":"等效满发 h","rpt.emon.loss":"损失 MWh","rpt.emon.m":"月","rpt.emon.partial":" 不满月","rpt.emon.pct":"损失率","rpt.emon.title":"逐月发电","rpt.empty_canvas":"画布是空的 — 先从组件库选内容","rpt.export_docx":"导出 Word","rpt.export_xlsx":"导出 Excel","rpt.eyebrow":"汇报定制 · 画布","rpt.facts.agg":"聚合层","rpt.facts.sub":"{n} 条, 契约 {sha}; 数据/时间窗/结论只经契约更新","rpt.facts.sys":"系统","rpt.facts.text":"结论","rpt.facts.title":"可交付级结论 · 契约生成","rpt.facts.verdict":"裁决","rpt.foot_asof":"出件 {d}","rpt.foot_deid":"判据门槛与特征频率已脱敏","rpt.foot_src":"数据源 SCADA 10min · 报警事件 · 工单台账 · CMS 振动 · 油液化验","rpt.foot_trace":"结论可回溯至本体对象","rpt.frate.cal":"不满月按天归一","rpt.frate.note":"柱高=日均条数, 不是月总数。","rpt.frate.title":"月度故障率","rpt.g.end":"收尾","rpt.g.flt":"故障","rpt.g.gen":"发电","rpt.g.rel":"可靠性","rpt.g.unit":"机组","rpt.grounded":"数字全部接地","rpt.hint_idle":"悬停查看组件说明 · 已选组件再次点击移出 · 右侧 ↑↓ 调整顺序","rpt.kpi.act":"上网电量","rpt.kpi.action":"需行动机组","rpt.kpi.action_n":"定论 {a} · 预警 {b} · 候选 {c}","rpt.kpi.annual":"年化约 {v} h","rpt.kpi.avail":"时间可用率","rpt.kpi.avail_n":"不含调度令与低风待机","rpt.kpi.eflh":"等效满发小时","rpt.kpi.loss":"损失率","rpt.kpi.mom":"环比 {v}%","rpt.kpi.mom_na":"环比不可比(末月不满)","rpt.kpi.mtbo":"平均停机间隔","rpt.kpi.mtbo_n":"停机 {n} 起 · 单次均 {h}h","rpt.kpi.theo":"理论可发 {v}","rpt.library":"组件库","rpt.library_note":"点击加入报告, 再次点击移出 · 画布里已有 {n} 块","rpt.local_note":"; 数据不出本地","rpt.loop.cal":"振动标量前后对比","rpt.loop.comp":"部件","rpt.loop.date":"换件日期","rpt.loop.note":"这几台正是算法当初的检出台 ⇒ 故障前能看见、换件后能看见恢复。","rpt.loop.post":"换后","rpt.loop.pre":"换前","rpt.loop.ratio":"比值","rpt.loop.title":"端到端闭环实证","rpt.narr.cal":"模型 {m} 生成 · 数字取自系统实测摘要 · 数据回抓校验{g}","rpt.narr.empty":"还没有生成 — 在上面的交互窗输入报告要求。","rpt.narr.g_n":"报 {n} 处待核","rpt.narr.g_ok":"全通过","rpt.narr.title":"运行总结","rpt.narr.ungr":"⚠ 以下数值由模型自行推算, 不在原始数据摘要中, 引用前须核对: {v}","rpt.narr_plus":" + 一段运行总结","rpt.need_empty":"先输入报告要求","rpt.need_head":"输入报告要求","rpt.need_hint":"模型依据需求选取组件, 并基于实测数据生成运行总结","rpt.need_ph":"例如: 上报集团月报, 侧重设备可靠性与重点机组","rpt.no_compose":"本部署未启用编排接口, 画布仍可手动拼装","rpt.no_models":"本部署未配置任何模型密钥, 编排不可用","rpt.paper_sub":"统计期 {win} | {n} 台","rpt.paper_title":"运行分析报告","rpt.pareto.cal":"报警事件表","rpt.pareto.title":"故障帕累托","rpt.parts.cal":"归因=段起点±30min 首发码","rpt.parts.ev":"事件","rpt.parts.ext":" (外部)","rpt.parts.h":"停机h","rpt.parts.mdt":"单次停机时长(MDT,h)","rpt.parts.mtbf":"平均无故障间隔(MTBF,h)","rpt.parts.part":"部件","rpt.parts.title":"部件停机","rpt.parts.units":"影响机组","rpt.plan.1":'补机制定性 — {n} 台停在"判了级但根因未定", 是当前最大单一瓶颈',"rpt.plan.2":"回收 25~26 工单 — 台账止 2024-11, 本期检修执行与闭环无法自动判定","rpt.plan.3":"油液采样节奏 — 四源里油液长期 stale, 只能作回测锚","rpt.plan.4":"限电侧 — 损失六成在交易与调度侧, 设备侧改善空间有限","rpt.plan.cal":"建议级 — 排期与动作须经审批","rpt.plan.title":"下期计划与建议","rpt.preset.blank":"空白画布","rpt.preset.month":"月度运行分析","rpt.preset.topic":"设备专题","rpt.preset.week":"周报","rpt.preset.year":"年度总结","rpt.presets":"预设","rpt.preview_empty":"文档预览窗 — 从上面的组件库点选内容, 此处显示报告预览","rpt.print":"打印 / 存 PDF","rpt.quad.cal":"纵界=10min(一个SCADA采样格)","rpt.quad.note":"右下角报警码属重复触发, 不应按条数排定优先级。","rpt.quad.title":"故障模式四象限","rpt.ram.cal":"SCADA ≥1h 停机段, 不含调度令; 海上 MDT 含交通窗口","rpt.ram.note":"设备类 {a}h / 外部类 {b}h (电网·风况·运维操作不计设备可靠性)","rpt.ram.title":"可靠性 × 可维修性","rpt.ungrounded_n":"{n} 个数字待核","rpt.units.at":"卡在","rpt.units.cal":"四源融合判级","rpt.units.clear":"全通","rpt.units.ev":"部件与证据","rpt.units.head":"需跟踪 {n} 台 / {tot} | 瓶颈 ","rpt.units.prog":"进度","rpt.units.rising":"在升 {r}×","rpt.units.state":"状态","rpt.units.stuck":"{n} 台卡在「{s}」","rpt.units.title":"重点机组与处置","rpt.up_note":"上报版 — 判据门槛与特征频率已脱敏","rpt.up_tag":"上报版","rpt.water.cal":"SCADA 10min 工况态分解; 损失=同工况理论出力与实测之差。量级自检为防虚高的下限校验, 不是风资源判据","rpt.water.cap_bad":"量级自检: 理论 ≥ 全额定上限 {cap} MWh ✗ 数字不可信","rpt.water.cap_ok":"量级自检: 理论低于全额定上限 {cap} MWh ✔","rpt.water.note":"理论可发 {theo} = 上网 {act} + 损失 {loss} MWh ({pct}%)","rpt.water.title":"发电完成情况","rv.advci":"AdvCI","rv.dual":"双模型审","rv.lite":"lite","rv.none":"未审","st.bad":"危险","st.excellent":"优秀","st.ok":"良好","st.ok_excellent":"良好 / 优秀","st.unk":"不可判","st.warn":"报警","step.acceptance":"验收","step.action":"动作","step.evidence":"证据","step.mechanism":"机制","step.rating":"判级","step.schedule":"排期","step.site_records":"现场记录","step.stuck_at":"卡在「{step}」","sys.blade":"叶片与叶根","sys.control":"主控与传感网","sys.converter":"变流器","sys.gearbox":"齿轮箱","sys.generator":"发电机","sys.main_bearing":"主轴承","sys.other":"其他","sys.pitch":"变桨","sys.tower":"塔架与基础","sys.yaw":"偏航","tab.assistant":"检修助手","tab.component":"部件问题","tab.decision":"检修决策","tab.energy":"电量算账","tab.fault":"故障统计","tab.generation":"发电性能","tab.ontology":"本体","tab.overview":"总览","tab.report":"汇报定制","tab.system":"系统维护","tab.vibration":"振动融合分析","tier.candidate":"候选","tier.candidate.s":"候选","tier.candidate_baseline":"候选·记基线","tier.candidate_baseline.s":"候选·记基线","tier.candidate_new":"候选·新发","tier.candidate_new.s":"候选·新发","tier.confirmed":"定论","tier.confirmed.s":"定论","tier.detail.不可判":"不可判","tier.detail.仲裁输入":"仲裁输入","tier.detail.优":"优","tier.detail.优秀":"优秀","tier.detail.传感器项":"传感器项","tier.detail.候选":"候选","tier.detail.候选·监视(复发)":"候选·监视(复发)","tier.detail.候选·跟踪":"候选·跟踪","tier.detail.危险":"危险","tier.detail.可降":"可降","tier.detail.复发候选(两轴合并)":"复发候选(两轴合并)","tier.detail.定论":"定论","tier.detail.弱同向新证":"弱同向新证","tier.detail.报":"报","tier.detail.报警":"报警","tier.detail.本体无新证":"本体无新证","tier.detail.正常":"正常","tier.detail.正样本":"正样本","tier.detail.温度单轴保留":"温度单轴保留","tier.detail.监视":"监视","tier.detail.监视(不开箱)":"监视(不开箱)","tier.detail.良":"良","tier.detail.良好":"良好","tier.detail.蓄能失效候选(定向查)":"蓄能失效候选(定向查)","tier.detail.观察":"观察","tier.detail.观察(发电机侧)":"观察(发电机侧)","tier.detail.记基线观察":"记基线观察","tier.detail.销案(定论)":"销案(定论)","tier.detail.降观察":"降观察","tier.detail.预警":"预警","tier.detail.预警·处置升急":"预警·处置升急","tier.detail.预警·处置规划":"预警·处置规划","tier.insufficient":"不足","tier.insufficient.s":"不足","tier.near":"准定论·预警","tier.near.s":"准定论","tier.normal":"正常","tier.normal.s":"正常","tier.reference":"参考","tier.reference.s":"参考","tier.withdrawn":"撤回","tier.withdrawn.s":"撤回","ui.all":"全部","ui.back_portal":"← 返回门户","ui.back_to":"← 返回{tab}","ui.collapse":"收起","ui.count":"条数","ui.data_hidden":"({n} 处数据文本尚无英文,需复核)","ui.date":"日期","ui.empty":"无数据","ui.error":"出错了","ui.expand":"展开","ui.loading":"载入中…","ui.not_ported":"本页尚未迁入新版。","ui.not_recorded":"台账未填","ui.open":"查看 →","ui.open_classic":"在经典版打开 →","ui.query":"查询","ui.reselect":"重新选择机组 / 测点","ui.retry":"重试","ui.system":"系统","ui.unit":"机组","ui.units":"机组","ui.verbatim":"原始记录 (中文)","ui.verbatim_note":"{n} 处为手册/工单原文, 无英文译本, 按原文转录。","unit.h":"h","unit.n":" 条","unit.units":"台","vp.(振动线未收录)":"(振动线未收录)","vp.主轴承(后)+集中润滑泵":"主轴承(后)+集中润滑泵","vp.发电机(引用同族, 见族主台)":"发电机(无本台独立证据, 参照同型机组)","vp.发电机(未映射)":"发电机(未对应到具体部件)","vp.发电机DE":"发电机DE","vp.发电机DE+NDE(两端)":"发电机DE+NDE(两端)","vp.发电机NDE":"发电机NDE","vp.齿轮箱(未映射)":"齿轮箱(未对应到具体部件)","vp.齿轮箱(测量链问题, 非部件)":"齿轮箱(测量链问题, 非部件)","vp.齿轮箱(谱线级, 未映射到部件)":"齿轮箱(频谱信号级 (未定位到具体零件), 未对应到具体部件)","vp.齿轮箱中间轴":"齿轮箱中间轴","vp.齿轮箱二级行星内齿圈":"齿轮箱二级行星内齿圈","vp.齿轮箱高速轴":"齿轮箱高速轴","win.2025H2":"2025H2","win.2026":"2026年","win.2026H1":"2026H1","win.30d":"近30日","win.90d":"近90日","win.all":"全程","win.apply":"应用","win.bad_order":"开始日期不能晚于结束日期","win.banner":"时间窗 {win} · 本页全部数字随上方时间窗切换","win.custom":"自定义","win.custom_hint":"自定义起止日期(含两端)。日粒度件(判级/停机台账/曲线)按日精确;月度聚合件按所跨月份取整,图上会写明。","win.custom_sel":"自定义 {a} ~ {b}","win.from":"开始日期(含)","win.label":"时间窗","win.months":"按月","win.need_both":"请把开始与结束日期都选上","win.partial":"时间窗内 {m} 数据不满月 (覆盖 {c}%), 月度图已按天归一","win.presets":"预设时间窗","win.through":"至{date}","win.to":"结束日期(含)","tab.documents":"交付文档","tab.recalc":"数据重算","doc.eyebrow":"交付文档","doc.loading":"正在读取交付文档…","doc.head":"交付文档 ({n})","doc.note":"交付文档随包提供;下载后可离线查阅。","doc.name":"文档","doc.size":"大小","doc.get":"获取","doc.download":"下载","rc.eyebrow":"数据重算","rc.loading":"正在读取重算状态…","rc.running":"重算进行中","rc.idle":"当前空闲","rc.note":"重算链按步执行;本页每 5 秒刷新状态与日志尾部。","rc.since":"开始于","rc.start":"开始重算","rc.log":"重算日志(尾部)","rc.empty":"(暂无日志)","tab.portal":"门户栏目","pt.eyebrow":"门户栏目","pt.head":"重构前门户上的栏目(已迁移 / 可达)","pt.note":"总览、振动·CMS、交付文档、数据重算已迁为页签;系统架构/方法/经验发现/案例·液压 见「架构与资料」页签;下列两项为在线服务入口。","pt.col":"栏目","pt.what":"说明","pt.open":"打开","pt.kind_portal":"门户存档页(release/portal.html 经网关 /portal 伺服)","pt.kind_svc":"在线服务(经网关)","tab.portal_sec":"架构与资料","ps.eyebrow":"系统架构 · 方法 · 经验发现 · 案例·液压","ps.missing":"该节内容未抽取到(请检查 v2.9.2 门户原文)。","tab.portal_src":"门户","pv.eyebrow":"观澜门户(Vue 装配 · v2.9.2 原文外壳与内嵌件)","pv.loading":"正在装配门户(外壳 + 内嵌件)…","pv.assembled":"门户已装配:内嵌件 {n} 件(外壳与内嵌件均取自 v2.9.2 原文)"};function i(t,e){let s=Rr[t]??t;if(e)for(const[n,l]of Object.entries(e))s=s.split(`{${n}}`).join(String(l));return s}const Nr=["overview","energy","component","vibration","generation","fault","decision","assistant","report","system","documents"],En=["overview","energy","component","fault","vibration","generation","decision","assistant","system","report","documents"],Br={class:"eyebrow"},Wr={key:0,class:"panel"},Kr={class:"small",style:{color:"var(--critical)"}},Ur={key:1,class:"panel"},Vr={class:"small muted"},zr={class:"panel mb"},Gr={class:"small muted"},Yr={class:"panel mb"},Jr={class:"tblwrap"},Xr={style:{"margin-top":"4px"}},Zr={style:{width:"60%"}},Qr={style:{width:"16%"}},tc={style:{width:"24%"}},ec={class:"small"},sc={class:"small num"},nc={class:"small"},lc=["href","download"],oc=Wt({__name:"Documents",setup(t){const e=yt(null),s=yt(""),n=l=>l>=1048576?(l/1048576).toFixed(1)+" MB":Math.max(1,Math.round(l/1024))+" KB";return Ye(async()=>{try{const o=await(await fetch("/api/delivery_docs")).json();o&&o.error?s.value=String(o.error):e.value=o&&o.docs||[]}catch(l){s.value=String(l&&l.message||l)}}),(l,o)=>(k(),T("section",null,[r("div",Br,p(d(i)("doc.eyebrow")),1),s.value?(k(),T("div",Wr,[r("p",Kr,p(s.value),1)])):e.value?(k(),T(it,{key:2},[r("div",zr,[r("h3",null,p(d(i)("doc.head",{n:e.value.length})),1),r("p",Gr,p(d(i)("doc.note")),1)]),r("div",Yr,[r("div",Jr,[r("table",Xr,[r("tr",null,[r("th",Zr,p(d(i)("doc.name")),1),r("th",Qr,p(d(i)("doc.size")),1),r("th",tc,p(d(i)("doc.get")),1)]),(k(!0),T(it,null,gt(e.value,c=>(k(),T("tr",{key:c.name},[r("td",ec,p(c.name),1),r("td",sc,p(n(c.size||0)),1),r("td",nc,[r("a",{href:c.url,download:c.name},p(d(i)("doc.download")),9,lc)])]))),128))])])])],64)):(k(),T("div",Ur,[r("p",Vr,p(d(i)("doc.loading")),1)]))]))}}),ac={class:"portal-full"},ic={key:0,class:"portal-loading"},hn="/web/portal/",rc=Wt({__name:"PortalView",setup(t){const e=yt(null),s=yt("loading"),n=yt("");async function l(a){const u=await fetch(a);if(!u.ok)throw new Error(a+" "+u.status);return await u.text()}Ye(async()=>{try{let a=await l(hn+"shell.html");const u=a.match(/<title[^>]*>([^<]*)<\/title>/i);u&&u[1].trim()&&(document.title=u[1].trim());const _=Array.from(a.matchAll(/<!--@TEMPLATE:([^>]+?)-->/g)).map($=>$[1]);_.forEach($=>{a=a.replace("<!--@TEMPLATE:"+$+"-->",'<template id="'+$+'"></template>')});try{const $=await l(hn+"governance_sources.json");a=a.replace("<!--@GOVERNANCE_SOURCES-->",$.replace(/</g,"\\u003c"))}catch{}const f=[[/<a([^>]*?)href="#cms"/g,'<a$1target="_top" href="/detail/v2#tab=vibration"'],[/<a([^>]*?)href="#documents"/g,'<a$1target="_top" href="/detail/v2#tab=documents"'],[/<a([^>]*?)href="#recalc"/g,'<a$1target="_top" href="/detail/v2#tab=recalc"'],[/<a([^>]*?)href="(?:https?:\/\/[^"]*)?\/(?:detail\/v2|v2)[^"]*"/g,'<a$1target="_top" href="/detail/v2#workbench"']];for(const[$,I]of f)a=a.replace($,I);const m=["cms","documents","recalc"];for(const $ of m)a=a.replace(new RegExp('<a[^>]*data-nav="'+$+'"[^>]*>[^<]*</a>',"g"),"");n.value=i("pv.assembled",{n:_.length});const v=new Blob([a],{type:"text/html;charset=utf-8"});e.value&&(e.value.src=URL.createObjectURL(v)),c(),o(_),s.value="ready"}catch(a){n.value=String(a&&a.message||a),s.value="error"}});async function o(a){let _=0,f=0;const m=async()=>{for(;_<a.length;){const v=a[_++];try{const $=await fetch(hn+"templates/"+encodeURIComponent(v)+".html",{cache:"force-cache"}),I=$.ok?await $.text():"",G=e.value&&e.value.contentDocument,Z=G&&G.getElementById(v);if(G&&Z){const lt=G.createElement("template");lt.id=v,lt.innerHTML=I,Z.replaceWith(lt)}}catch{}f++,n.value=i("pv.assembled",{n:f})}};await Promise.all(Array.from({length:6},()=>m()))}function c(){const a=[['nav a[data-nav="cms"]',"#tab=vibration"],['nav a[data-nav="documents"]',"#tab=documents"],['nav a[data-nav="recalc"]',"#tab=recalc"]],u=()=>{const f=e.value&&e.value.contentDocument;if(!f)return;const m=I=>G=>{G.preventDefault(),G.stopImmediatePropagation();const Z=window.top;try{Z.location.href=I}catch{location.href=I}};for(const[I,G]of a){const Z=f.querySelector(I);Z&&Z.addEventListener("click",m("/detail/v2"+G),!0)}const v=f.querySelector("nav a:not([data-nav])")||f.querySelector('a[href*="18033"]');v&&v.addEventListener("click",m("/detail/v2#workbench"),!0);const $=f.querySelector("a.portal-wb");$&&$.addEventListener("click",m("/detail/v2#workbench"),!0)},_=e.value;_&&(_.addEventListener("load",u),u())}return(a,u)=>(k(),T("div",ac,[s.value!=="ready"?(k(),T("div",ic,p(s.value==="loading"?d(i)("pv.loading"):n.value),1)):_t("",!0),u[0]||(u[0]=r("a",{class:"portal-wb",href:"#workbench",title:"切换到 Vue 工作台"},"工作台",-1)),r("iframe",{ref_key:"frame",ref:e,class:"portal-frame",title:"观澜门户"},null,512)]))}}),Yo=(t,e)=>{const s=t.__vccOpts||t;for(const[n,l]of e)s[n]=l;return s},Jo=Yo(rc,[["__scopeId","data-v-77ae2ea1"]]),Gn=["叶片与叶根","变桨","偏航","齿轮箱","发电机","主轴承","变流器","塔架与基础","主控与传感网"],Ls={叶片与叶根:"blade",变桨:"pitch",偏航:"yaw",齿轮箱:"gearbox",发电机:"generator",主轴承:"main_bearing",变流器:"converter",塔架与基础:"tower",主控与传感网:"control",主轴:"main_bearing",其他:"other"},Xo=(()=>{const t={};for(const e of Gn)t[Ls[e]]=e;for(const[e,s]of Object.entries(Ls))s in t||(t[s]=e);return t})(),Rs=t=>Ls[String(t)]||String(t),jl=t=>Xo[String(t)]||String(t),xe=t=>{const e=Ls[String(t)]||String(t);return Xo[e]?i("sys."+e):String(t??"")},ms=t=>xe(t),cc={危险:"bad",报警:"warn",不可判:"unk",良好:"ok",优秀:"ex"},uc={critical:"bad",alarm:"warn",undeterminable:"unk",indeterminate:"unk","not evaluable":"unk",good:"ok",excellent:"ex",warn:"warn",bad:"bad",ok:"ok",unk:"unk",ex:"ex"},Ns=t=>cc[String(t)]||uc[String(t)],ql={证据:"evidence",机制:"mechanism",判级:"rating",排期:"schedule",动作:"action",验收:"acceptance"},Fn=t=>"st."+(t==="ex"?"excellent":t),At=t=>String(t).replace("WTG","").replace(/^0/,"")+"#",Tt=(t,e=0)=>{if(t==null||typeof t=="number"&&isNaN(t))return"—";const s=Number(t);return isNaN(s)?"—":s.toLocaleString("zh-CN",{maximumFractionDigits:e,minimumFractionDigits:e})},Dl=t=>{const e=Ns(t);return e?i(Fn(e)):String(t??"")},dc=["振动","温度","润滑","油液","报警","工单"];function Pl(t){const e=dc.map(n=>Ns((t?.[n]||{}).ostate)).filter(Boolean);if(!e.length)return"unk";if(e.includes("bad"))return"bad";if(e.includes("warn"))return"warn";const s=e.filter(n=>n!=="unk");return s.length?s.includes("ok")?"ok":"ex":"unk"}const Hl={bad:"critical",warn:"warning",unk:"unknown",ok:"good",ex:"excellent"},Oe=t=>String(t??""),pc={key:0},fc={class:"small"},hc={href:"#tab=component","data-back":"1"},mc={class:"panel mb"},_c={style:{display:"flex",height:"12px","border-radius":"4px",overflow:"hidden",margin:"8px 0 4px"}},vc={class:"small muted"},gc={class:"tblwrap"},bc={style:{width:"74px"}},yc={class:"r",style:{width:"96px"}},$c=["href"],xc={class:"small"},wc={class:"r"},kc=["href"],Mc={key:0,class:"panel mb"},Sc={style:{cursor:"pointer","font-weight":"600"}},Tc={class:"tblwrap"},Cc={style:{"margin-top":"10px"}},Ec={style:{width:"74px"}},Fc={class:"small"},Ac={key:1,class:"panel"},Oc={class:"small"},jc={key:0},qc={class:"panel mb small",style:{"border-left":"3px solid var(--accent)"}},Dc={class:"eyebrow"},Pc={class:"panel mb"},Hc={style:{display:"grid","grid-template-columns":"repeat(auto-fit,minmax(170px,1fr))",gap:"10px"}},Ic=["data-sys"],Lc={class:"t"},Rc={class:"bar"},Nc=["innerHTML"],Bc={class:"small muted",style:{"margin-top":"8px"}},Wc={key:1,class:"panel mb",style:{"border-left":"3px solid var(--critical)"}},Kc={class:"small"},Uc={class:"eyebrow"},Vc={class:"panel mb"},zc={class:"small muted",style:{"font-weight":"400"}},Gc={class:"small muted",style:{margin:"-2px 0 8px"}},Yc={class:"tblwrap"},Jc={class:"r"},Xc={class:"r"},Zc={class:"r"},Qc={class:"r"},tu={key:0,class:"badge"},eu={class:"num small"},su={class:"r"},nu={class:"r"},lu={class:"r"},ou={class:"r"},au={class:"small"},iu={class:"small muted"},ru={key:3,class:"panel mb"},cu={class:"small"},uu={href:"#tab=vibration"},du={class:"eyebrow"},pu={class:"panel mb"},fu={class:"tblwrap"},hu={class:"r"},mu=["href"],_u={class:"r"},vu=["innerHTML"],gu={class:"small"},bu=Wt({__name:"Component",props:{d:{},sys:{}},setup(t){const e=t,s=Y(()=>e.d?.sysdist||{}),n=Y(()=>e.d?.rel&&!e.d.rel.err?e.d.rel:null),l=Y(()=>e.sys?jl(e.sys):null),o=Y(()=>Gn.filter(f=>s.value[f]).map(f=>{const m=s.value[f],v=m.报警||0,$=m.不可判||0,I=Object.values(m).reduce((Z,lt)=>Z+lt,0)||1,G=v>=8?"var(--critical)":v>=3?"var(--warning)":v?"var(--accent)":"var(--good)";return{segs:[["报警","critical"],["不可判","unknown"],["良好","good"],["优秀","excellent"]].filter(([Z])=>m[Z]).map(([Z,lt])=>({col:lt,w:(m[Z]/I*100).toFixed(1)})),line:i("cmp.alarm_n",{a:`<b style="color:${G}">${v}</b>`})+($?i("cmp.unk_n",{u:$}):"")+i("cmp.fleet_n",{n:I}),s:f,dist:m,a:v,u:$,N:I,col:G}}));function c(f){return(f.syss||[]).map(m=>`<a href="/problem/${f.t}/${encodeURIComponent(jl(m)||m)}">${xe(m)}</a>`).join(" · ")}const a=Y(()=>{const m=(((e.d?.control||{}).energy||{}).items||[]).filter(v=>v.k==="停机").map(v=>v.h)[0];return m??null}),u=Y(()=>{const f=n.value?.表||[],m=Math.max(1,...f.map(v=>v.停机时长h));return f.map(v=>({r:v,maxH:m,sev:v.部件==="无记录停机"?"var(--unknown)":v.外部?"var(--accent)":v.占停机>=.06?"var(--critical)":v.占停机>=.03?"var(--warning)":"var(--good)"}))}),_=Y(()=>{const f=l.value;if(!f)return null;const m=(e.d?.systems||{})[f]||[],v=s.value[f]||{},$=(e.d?.systems||{})[f+"·良好"]||[],I=Z=>v[Z]||0,G=Object.values(v).reduce((Z,lt)=>Z+lt,0)||1;return{s:f,N:G,gd:$,cnt:I,al:m.filter(Z=>Z.st==="报警"),un:m.filter(Z=>Z.st==="不可判"),dist:v}});return(f,m)=>_.value?(k(),T("section",pc,[r("p",fc,[r("a",hc,p(d(i)("ui.back_to",{tab:d(i)("tab.component")})),1)]),r("div",mc,[r("h3",null,p(d(i)("cmp.detail_head",{sys:d(xe)(_.value.s),n:_.value.N})),1),r("div",_c,[(k(),T(it,null,gt([["报警","critical"],["不可判","unknown"],["良好","good"],["优秀","excellent"]],([v,$])=>r("i",{key:v,style:Dt(`width:${(_.value.cnt(v)/_.value.N*100).toFixed(1)}%;background:var(--${$})`)},null,4)),64))]),r("div",vc,p(d(i)("cmp.counts",{a:_.value.cnt("报警"),u:_.value.cnt("不可判"),g:_.value.cnt("良好"),e:_.value.cnt("优秀")})),1)]),(k(!0),T(it,null,gt([_.value.al,_.value.un],(v,$)=>wn((k(),T("div",{key:$,class:"panel mb"},[r("h3",null,p($===0?d(i)("cmp.alarm_units"):d(i)("cmp.unk_units"))+" "+p(d(i)("cmp.n_units",{n:v.length})),1),r("div",gc,[r("table",null,[r("tr",null,[r("th",bc,p(d(i)("ui.unit")),1),r("th",null,p(d(i)("cmp.why")),1),r("th",yc,p(d(i)("cmp.detail")),1)]),(k(!0),T(it,null,gt(v,I=>(k(),T("tr",{key:I.t},[r("td",null,[r("a",{href:`/turbine/${I.t}`},[r("b",null,p(d(At)(I.t)),1)],8,$c)]),r("td",xc,p(I.why),1),r("td",wc,[r("a",{class:"small",href:`/problem/${I.t}/${encodeURIComponent(_.value.s)}`},p(d(i)("cmp.detail_link")),9,kc)])]))),128))])])])),[[ir,v.length]])),128)),_.value.gd.length?(k(),T("details",Mc,[r("summary",Sc,p(d(i)("cmp.good_units",{n:_.value.gd.length})),1),r("div",Tc,[r("table",Cc,[r("tr",null,[r("th",Ec,p(d(i)("ui.unit")),1),r("th",null,p(d(i)("cmp.why")),1)]),(k(!0),T(it,null,gt(_.value.gd,v=>(k(),T("tr",{key:v.t},[r("td",null,[r("b",null,p(d(At)(v.t)),1)]),r("td",Fc,p(v.why),1)]))),128))])])])):_t("",!0),!_.value.al.length&&!_.value.un.length&&!_.value.gd.length?(k(),T("div",Ac,[r("p",Oc,p(d(i)("cmp.none")),1)])):_t("",!0)])):(k(),T(it,{key:1},[t.d.sysmx_pending?(k(),T("section",jc,[r("div",qc,[r("b",null,p(d(i)("cmp.grading_pending")),1),ct(" "+p(d(i)("cmp.grading_pending_why",{span:t.d.sysmx_span||""})),1)])])):_t("",!0),r("section",null,[r("div",Dc,p(d(i)("cmp.by_system")),1),r("div",Pc,[r("div",Hc,[(k(!0),T(it,null,gt(o.value,v=>(k(),T("div",{key:v.s,class:"sysc",role:"button",tabindex:"0","data-sys":d(Rs)(v.s),style:Dt(`cursor:pointer;border-left:3px solid ${v.col}`)},[r("div",Lc,[r("b",null,p(d(xe)(v.s)),1)]),r("div",Rc,[(k(!0),T(it,null,gt(v.segs,$=>(k(),T("i",{key:$.col,style:Dt(`width:${$.w}%;background:var(--${$.col})`)},null,4))),128))]),r("div",{class:"small muted",innerHTML:v.line},null,8,Nc)],12,Ic))),128))]),r("p",Bc,p(d(i)("cmp.cards_note")),1)])]),t.d.rel&&t.d.rel.err?(k(),T("div",Wc,[r("p",Kc,p(d(i)("flt.block_err",{k:"rel",e:t.d.rel.err})),1)])):n.value?(k(),T(it,{key:2},[r("div",Uc,p(d(i)("cmp.rel_eyebrow",{win:n.value.窗})),1),r("div",Vc,[r("h3",null,[ct(p(d(i)("cmp.rel_head"))+" ",1),r("span",zc,p(d(i)("cmp.rel_meta",{t:n.value.总停机h,a:n.value.设备类停机h,b:n.value.外部类停机h})),1)]),r("p",Gc,p(d(i)("cmp.rel_note",{h:a.value==null?"":" "+d(Tt)(a.value)+"h"})),1),r("div",Yc,[r("table",null,[r("tr",null,[r("th",null,p(d(i)("cmp.rel_part")),1),r("th",null,p(d(i)("cmp.rel_h")),1),r("th",Jc,p(d(i)("cmp.rel_ev")),1),r("th",Xc,p(d(i)("cmp.rel_mtbo")),1),r("th",Zc,p(d(i)("cmp.rel_mdt")),1),r("th",Qc,p(d(i)("cmp.rel_units")),1),r("th",null,p(d(i)("cmp.rel_fm")),1)]),(k(!0),T(it,null,gt(u.value,v=>(k(),T("tr",{key:v.r.部件},[r("td",null,[r("b",null,p(d(ms)(v.r.部件)),1),m[0]||(m[0]=ct(" ",-1)),v.r.外部?(k(),T("span",tu,p(d(i)("cmp.external")),1)):_t("",!0)]),r("td",null,[r("i",{class:"bar",style:Dt(`width:${Math.round(v.r.停机时长h/v.maxH*72)}px;background:${v.sev}`)},null,4),r("span",eu,p(v.r.停机时长h)+"h · "+p((v.r.占停机*100).toFixed(1))+"%",1)]),r("td",su,p(v.r.事件数),1),r("td",nu,p(v.r.外部?"—":v.r.MTBF_h||"—"),1),r("td",lu,p(v.r.MDT_h),1),r("td",ou,p(v.r.影响台数),1),r("td",au,p(v.r.典型失效模式||"—"),1)]))),128))])]),r("p",iu,p(n.value.口径),1)])],64)):_t("",!0),t.d.fus&&!t.d.fus.err?(k(),T("div",ru,[r("p",cu,[ct(p(d(i)("cmp.fusion_moved"))+" ",1),r("a",uu,[r("b",null,p(d(i)("tab.vibration")),1)]),ct(" "+p(d(i)("cmp.fusion_n",{n:(t.d.fus.表||[]).length})),1)])])):_t("",!0),r("div",du,p(d(i)("cmp.cross_eyebrow")),1),r("div",pu,[r("h3",null,p(d(i)("cmp.watch_head",{n:(t.d.watch||[]).length})),1),r("div",fu,[r("table",null,[r("tr",null,[r("th",null,p(d(i)("ui.unit")),1),r("th",hu,p(d(i)("cmp.n_sys")),1),r("th",null,p(d(i)("cmp.hit_sys")),1),r("th",null,p(d(i)("cmp.basis")),1)]),(k(!0),T(it,null,gt(t.d.watch||[],v=>(k(),T("tr",{key:v.t},[r("td",null,[r("a",{href:`/turbine/${v.t}`},[r("b",null,p(d(At)(v.t)),1)],8,mu)]),r("td",_u,p(v.n),1),r("td",{class:"small",innerHTML:c(v)},null,8,vu),r("td",gu,p(v.why),1)]))),128))])])])],64))}}),yu=["innerHTML"],Yt=Wt({__name:"LegacyChart",props:{html:{}},setup(t){return(e,s)=>(k(),T("div",{class:"legacy-chart",innerHTML:t.html},null,8,yu))}}),$u=typeof window<"u"?window:globalThis;$u.__charts=function(t){const{t:e,fmt:s,esc:n,dv:l,EN:o}=t,c=/[㐀-鿿]/,a=E=>o&&c.test(String(E??"")),u=E=>(E=t.displayText?t.displayText(E):E==null?"":String(E),a(E)&&t.verb&&t.verb(),E),_=E=>{const R=u(E);return`<title${a(R)?' class="verbatim"':""}>${n(R)}</title>`},f=(E,R,j)=>`<svg class="dt" viewBox="0 0 ${E} ${R}" style="width:${E}px;max-width:100%;height:auto" role="img">${j}</svg>`,m=(E,R,j,C={})=>`<text x="${(+E).toFixed(1)}" y="${(+R).toFixed(1)}" font-size="${C.fs||9}" fill="${C.fill||"var(--muted)"}"${C.anchor?` text-anchor="${C.anchor}"`:""}${C.op?` opacity="${C.op}"`:""}${C.w?` font-weight="${C.w}"`:""}${C.tr?` transform="${C.tr}"`:""}${C.cls?` class="${C.cls}"`:""}>${j}</text>`,v=(E,R,j,C={})=>{const K=u(j);return m(E,R,n(K),a(K)?Object.assign({},C,{cls:"verbatim"}):C)},$={"限电·绑定":"loss.curtail_bound","限电命令·未绑定":"loss.curtail_unbound","停机(调度令)":"loss.dispatch",停机:"loss.stop",正常发电:"loss.normal",低风待机:"loss.lowwind"},I=E=>$[E]?e($[E]):u(E);function G(E){const R=(E||[]).filter(w=>w&&w.n>0&&w.med>0);if(R.length<3)return`<p class="small muted">${e("ch.quad.few")}</p>`;const j=720,C=330,K=58,N=16,A=44,W=16,J=w=>Math.log10(w),B=R.map(w=>J(w.n)),X=R.map(w=>J(w.med)),tt=Math.min(...B)-.15,q=Math.max(...B)+.15,O=Math.min(...X)-.15,z=Math.max(...X)+.15,Q=w=>K+(J(w)-tt)/(q-tt)*(j-K-N),nt=w=>C-A-(J(w)-O)/(z-O)*(C-W-A),mt=R.map(w=>w.n).sort((w,x)=>w-x),ht=mt[Math.floor(mt.length/2)],at=Q(ht),st=nt(600),h=Math.max(...R.map(w=>w.nt)),g=R.map(w=>{const x=3+Math.sqrt(w.nt/h)*7,et=w.n>=ht&&w.med>=600,V=et?"var(--critical)":"var(--accent)";return`<circle cx="${Q(w.n).toFixed(1)}" cy="${nt(w.med).toFixed(1)}" r="${x.toFixed(1)}" fill="${V}" fill-opacity=".5" stroke="${V}" stroke-width="1">${_(`${w.code} ${u(w.k)}
  19. `+e("ch.quad.tip",{n:w.n,med:w.med,h:w.h,nt:w.nt}))}</circle>`}).join(""),b=R.filter(w=>w.n>=ht||w.med>=600).slice(0,8).map(w=>m(Q(w.n)+9,nt(w.med)+3,n(w.code))).join(""),y=(w,x,et,V)=>m(w,x,et,{fs:10,op:.85})+m(w,x+12,V,{fs:8.5,op:.6}),M=w=>w>=3600?w/3600+"h":w>=60?w/60+"min":w+"s",F=[10,60,600,3600,36e3].filter(w=>J(w)>=O&&J(w)<=z).map(w=>`<line x1="${K}" y1="${nt(w).toFixed(1)}" x2="${j-N}" y2="${nt(w).toFixed(1)}" stroke="var(--line)" stroke-opacity=".4"/>`+m(K-6,nt(w)+3,M(w),{anchor:"end"})).join(""),D=[1,10,100,1e3,1e4].filter(w=>J(w)>=tt&&J(w)<=q).map(w=>m(Q(w),C-A+14,w,{anchor:"middle"})).join(""),P=W+(C-A-W)/2;return f(j,C,`${F}${D}
  20. <line x1="${at.toFixed(1)}" y1="${W}" x2="${at.toFixed(1)}" y2="${C-A}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".5"/>
  21. <line x1="${K}" y1="${st.toFixed(1)}" x2="${j-N}" y2="${st.toFixed(1)}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".5"/>
  22. ${y(K+6,W+12,e("ch.quad.q1"),e("ch.quad.q1s"))}${y(j-N-130,W+12,e("ch.quad.q2"),e("ch.quad.q2s"))}
  23. ${y(K+6,C-A-18,e("ch.quad.q3"),e("ch.quad.q3s"))}${y(j-N-130,C-A-18,e("ch.quad.q4"),e("ch.quad.q4s"))}
  24. ${g}${b}
  25. ${m(K+(j-N-K)/2,C-6,e("ch.quad.xlab"),{fs:9.5,anchor:"middle"})}
  26. ${m(14,P,e("ch.quad.ylab"),{fs:9.5,anchor:"middle",tr:`rotate(-90 14 ${P.toFixed(1)})`})}`)}function Z(E){const R=E.months||[],j=E.vals||[],C=E.cov||R.map(()=>1),K=E.per_day||[],N=720,A=250,W=48,J=14,B=52,X=18,tt=R.length||1,q=Math.max(...K.filter(ht=>ht!=null),1),O=(N-W-J)/tt;let z="",Q="";R.forEach((ht,at)=>{const st=K[at],h=C[at]<.5;if(st==null)return;const g=st/q*(A-X-B),b=W+at*O+O*.16,y=A-B-g,M=b+O*.34;z+=`<rect x="${b.toFixed(1)}" y="${y.toFixed(1)}" width="${(O*.68).toFixed(1)}" height="${g.toFixed(1)}" rx="2" fill="${h?"var(--muted)":"var(--accent)"}" fill-opacity="${h?.32:.8}" stroke="${h?"var(--warning)":"none"}" stroke-dasharray="${h?"3 2":""}"><title>${e("ch.rate.tip",{m:ht,v:st,n:j[at],cov:(C[at]*100).toFixed(0)})}</title></rect>`,Q+=m(M,y-4,st,{anchor:"middle"})+m(M,A-B+13,e("ch.rate.month",{m:ht.slice(5)}),{anchor:"middle"})+m(M,A-B+25,e("ch.rate.n",{n:j[at]}),{fs:8,op:.65,anchor:"middle"})+(h?m(M,A-B+37,e("ch.rate.days",{d:Math.round(C[at]*30)}),{fs:8,fill:"var(--warning)",anchor:"middle"}):"")});const nt=[0,.5,1].map(ht=>m(W-6,A-B-ht*(A-X-B)+3,Math.round(q*ht),{anchor:"end"})).join(""),mt=X+(A-B-X)/2;return f(N,A,`<line x1="${W}" y1="${A-B}" x2="${N-J}" y2="${A-B}" stroke="var(--line)"/><line x1="${W}" y1="${X}" x2="${W}" y2="${A-B}" stroke="var(--line)"/>
  27. ${z}${Q}${nt}${m(14,mt,e("ch.rate.ylab"),{fs:9.5,anchor:"middle",tr:`rotate(-90 14 ${mt.toFixed(1)})`})}`)}function lt(E){if(!E||!E.theo)return"";const R=720,j=300,C=8,K=8,N=30,A=64,W=(E.items||[]).filter(nt=>nt.loss>0),J=W.length+2,B=(R-C-K)/J,X=(j-N-A)/E.theo;let tt=E.theo,q="",O=0;const z=(nt,mt,ht,at,st)=>`<rect x="${(C+nt*B+B*.14).toFixed(1)}" y="${mt.toFixed(1)}" width="${(B*.72).toFixed(1)}" height="${Math.max(ht,1.2).toFixed(1)}" rx="2" fill="${at}" fill-opacity="${st}"/>`,Q=(nt,mt,ht,at,st)=>m(C+nt*B+B*.5,mt-6,at,{fs:10,fill:st||"var(--ink)",anchor:"middle",w:600})+m(C+nt*B+B*.5,j-A+14,ht,{fs:8.5,anchor:"middle"});return q+=z(0,j-A-E.theo*X,E.theo*X,"var(--accent)",.45)+Q(0,j-A-E.theo*X,e("ch.wf.theo"),s(E.theo)),W.forEach(nt=>{O++;const mt=j-A-tt*X,ht=nt.loss*X;tt-=nt.loss;const at=I(nt.k);q+=z(O,mt,ht,"var(--critical)",.55)+`<line x1="${(C+(O-1)*B+B*.86).toFixed(1)}" y1="${mt.toFixed(1)}" x2="${(C+O*B+B*.14).toFixed(1)}" y2="${mt.toFixed(1)}" stroke="var(--muted)" stroke-dasharray="2 2" stroke-opacity=".6"/>`+Q(O,mt,n(at.length>12?at.slice(0,11)+"…":at),"−"+s(nt.loss),"var(--critical)")+_(e("ch.wf.tip",{nm:at,loss:s(nt.loss),pct:(nt.loss/E.theo*100).toFixed(1),h:s(nt.h)}))}),q+=z(J-1,j-A-E.act*X,E.act*X,"var(--good)",.6)+Q(J-1,j-A-E.act*X,e("ch.wf.act"),s(E.act),"var(--good)"),f(R,j,`<line x1="${C}" y1="${j-A}" x2="${R-K}" y2="${j-A}" stroke="var(--line)"/>${m(C,14,"MWh",{fs:9.5})}${q}`)}function H(E,R){const j=(E||[]).filter(x=>x.MTBF_h&&x.MDT_h);if(j.length<3)return`<p class="small muted">${e("ch.ram.few")}</p>`;const C=720,K=340,N=56,A=112,W=48,J=16,B=x=>Math.log10(x),X=j.map(x=>B(x.MTBF_h)),tt=j.map(x=>x.MDT_h),q=Math.min(...X)-.08,O=Math.max(...X)+.08,z=0,Q=Math.max(...tt)*1.12,nt=x=>N+(B(x)-q)/(O-q)*(C-N-A),mt=x=>K-W-(x-z)/(Q-z)*(K-J-W),ht=x=>{const et=x.slice().sort((V,ot)=>V-ot);return et[Math.floor(et.length/2)]},at=ht(j.map(x=>x.MTBF_h)),st=ht(tt),h=nt(at),g=mt(st),b=Math.max(...j.map(x=>x.停机时长h)),y=x=>u(R?R(x.部件):x.部件),M=j.map(x=>{const et=4+Math.sqrt(x.停机时长h/b)*13,V=x.外部,ot=x.MTBF_h<at&&x.MDT_h>=st,rt=V?"var(--muted)":ot?"var(--critical)":"var(--accent)";return`<circle cx="${nt(x.MTBF_h).toFixed(1)}" cy="${mt(x.MDT_h).toFixed(1)}" r="${et.toFixed(1)}" fill="${rt}" fill-opacity="${V?.3:.42}" stroke="${rt}" stroke-width="1.2" stroke-dasharray="${V?"3 2":""}">${_(e("ch.ram.tip",{p:y(x),mtbf:x.MTBF_h,mdt:x.MDT_h,h:x.停机时长h,n:x.事件数,u:x.影响台数})+(V?e("ch.ram.tip_ext"):""))}</circle>`+v(nt(x.MTBF_h)+et+4,mt(x.MDT_h)+3.5,u(y(x)).slice(0,o?14:7),{fs:9.5,fill:V?"var(--muted)":"currentColor"})}).join(""),F=(x,et,V,ot,rt)=>m(x,et,ot,{fs:10,anchor:V,op:.9})+m(x,et+12,rt,{fs:8.5,anchor:V,op:.62}),D=[1e3,2e3,5e3,1e4,2e4].filter(x=>B(x)>=q&&B(x)<=O).map(x=>`<line x1="${nt(x).toFixed(1)}" y1="${J}" x2="${nt(x).toFixed(1)}" y2="${K-W}" stroke="var(--line)" stroke-opacity=".3"/>`+m(nt(x),K-W+14,x>=1e3?x/1e3+"k":x,{anchor:"middle"})).join(""),P=[0,5,10,15,20].filter(x=>x<=Q).map(x=>m(N-6,mt(x)+3,x,{anchor:"end"})).join(""),w=J+(K-W-J)/2;return f(C,K,`${D}${P}<line x1="${N}" y1="${K-W}" x2="${C-A}" y2="${K-W}" stroke="var(--line)"/><line x1="${N}" y1="${J}" x2="${N}" y2="${K-W}" stroke="var(--line)"/>
  28. <line x1="${h.toFixed(1)}" y1="${J}" x2="${h.toFixed(1)}" y2="${K-W}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".45"/>
  29. <line x1="${N}" y1="${g.toFixed(1)}" x2="${C-A}" y2="${g.toFixed(1)}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".45"/>
  30. ${F(N+6,J+12,"start",e("ch.ram.q1"),e("ch.ram.q1s"))}${F(C-A-6,J+12,"end",e("ch.ram.q2"),e("ch.ram.q2s"))}
  31. ${F(N+6,K-W-16,"start",e("ch.ram.q3"),e("ch.ram.q3s"))}${F(C-A-6,K-W-16,"end",e("ch.ram.q4"),e("ch.ram.q4s"))}
  32. ${M}${m(N+(C-A-N)/2,K-8,e("ch.ram.xlab"),{fs:9.5,anchor:"middle"})}
  33. ${m(13,w,e("ch.ram.ylab"),{fs:9.5,anchor:"middle",tr:`rotate(-90 13 ${w.toFixed(1)})`})}
  34. <circle cx="${C-A+16}" cy="${J+40}" r="5" fill="var(--accent)" fill-opacity=".42" stroke="var(--accent)"/>${m(C-A+26,J+44,e("ch.ram.equip"))}
  35. <circle cx="${C-A+16}" cy="${J+58}" r="5" fill="var(--muted)" fill-opacity=".3" stroke="var(--muted)" stroke-dasharray="3 2"/>${m(C-A+26,J+62,e("ch.ram.ext"))}
  36. ${m(C-A+6,J+84,e("ch.ram.area"),{fs:8.5})}${m(C-A+6,J+98,e("ch.ram.median"),{fs:8.5})}`)}function U(E,R){const j=(E||[]).find(q=>q.部件==="无记录停机"),C=j?j.停机时长h:0,K=(E||[]).filter(q=>q.部件==="未归类").reduce((q,O)=>q+O.停机时长h,0),N=R-C-K,A=720,W=54,J=(q,O,z,Q)=>`<rect x="${q.toFixed(1)}" y="14" width="${Math.max(O,1).toFixed(1)}" height="22" rx="3" fill="${z}" fill-opacity="${Q}"/>`,B=N/R*A,X=K/R*A,tt=C/R*A;return f(A,W,`${J(0,B,"var(--accent)",.55)}${J(B,X,"var(--warning)",.5)}${J(B+X,tt,"var(--critical)",.5)}
  37. ${m(4,10,e("ch.attrib.ok",{h:Math.round(N),p:(N/R*100).toFixed(0)}))}
  38. ${m(B+X+tt-2,10,e("ch.attrib.none",{h:Math.round(C),p:(C/R*100).toFixed(0)}),{fill:"var(--critical)",anchor:"end"})}
  39. ${m(B+X/2,50,e("ch.attrib.uncls",{h:Math.round(K)}),{fill:"var(--warning)",anchor:"middle"})}`)}function S(E,R,j){const C=(E||[]).filter(y=>y&&y.v>0);if(!C.length)return`<p class="small muted">${e("ch.pareto.none")}</p>`;const K=520,N=236,A=46,W=40,J=40,B=14,X=C.length,tt=C.reduce((y,M)=>y+M.v,0),q=Math.max(...C.map(y=>y.v)),O=(K-A-W)/X,z=y=>{y=u(y);const M=String(y).match(/^([0-9]+)/);return M?M[1]:String(y).slice(0,4)};let Q=0,nt="",mt=[],ht="",at=null;C.forEach((y,M)=>{const F=y.v/q*(N-B-J),D=A+M*O+O*.14,P=N-J-F;nt+=`<rect x="${D.toFixed(1)}" y="${P.toFixed(1)}" width="${(O*.72).toFixed(1)}" height="${F.toFixed(1)}" rx="2" fill="var(--accent)" fill-opacity="${M<3?.85:.45}">${_(`${u(y.k)}: ${s(y.v)}${R}`)}</rect>`,Q+=y.v;const w=Q/tt;at===null&&w>=.8&&(at=M+1);const x=A+M*O+O/2,et=B+(1-w)*(N-B-J);mt.push(`${x.toFixed(1)},${et.toFixed(1)}`),ht+=`<circle cx="${x.toFixed(1)}" cy="${et.toFixed(1)}" r="2.4" fill="var(--warning)">${_(e("ch.pareto.cumtip",{k:u(y.k),p:(w*100).toFixed(0)}))}</circle>`});const st=B+.2*(N-B-J),h=C.map((y,M)=>v(A+M*O+O/2,N-J+13,z(y.k),{anchor:"middle"})).join(""),g=[0,.5,1].map(y=>m(A-5,N-J-y*(N-B-J)+3,s(Math.round(q*y)),{anchor:"end"})).join("")+[0,.5,1].map(y=>m(K-W+5,B+(1-y)*(N-B-J)+3,Math.round(y*100)+"%",{fill:"var(--warning)"})).join(""),b=C.slice(0,3).map(y=>`<b>${a(z(y.k))?`<span class="verbatim">${n(u(z(y.k)))}</span>`:n(z(y.k))}</b> ${l(u(y.k).replace(/^[0-9]+ */,"").slice(0,18))}`).join(" · ");return f(K,N,`<line x1="${A}" y1="${N-J}" x2="${K-W}" y2="${N-J}" stroke="var(--line)"/><line x1="${A}" y1="${B}" x2="${A}" y2="${N-J}" stroke="var(--line)"/>${nt}
  40. <line x1="${A}" y1="${st.toFixed(1)}" x2="${K-W}" y2="${st.toFixed(1)}" stroke="var(--warning)" stroke-dasharray="4 3" stroke-opacity=".7"/>
  41. ${m(K-W-3,st-4,e("ch.pareto.cum80"),{fill:"var(--warning)",anchor:"end"})}
  42. <polyline points="${mt.join(" ")}" fill="none" stroke="var(--warning)" stroke-width="1.5"/>${ht}${h}${g}
  43. ${m(A+(K-W-A)/2,N-3,e("ch.pareto.xlab"),{fs:8.5,anchor:"middle"})}`)+`<p class="small muted" style="margin-top:5px;line-height:1.6">${at?`<b>${e("ch.pareto.key",{k:at})}</b> (${e("ch.pareto.total",{n:X,tot:s(Math.round(tt)),unit:R})})`:e("ch.pareto.total",{n:X,tot:s(Math.round(tt)),unit:R})}<br>${e("ch.pareto.top3")}${b}${j?"<br>"+j:""}</p>`}function L(E){const R=q=>q.indexOf("限电")>=0||q.indexOf("调度")>=0?0:q==="停机"?1:2,j=[e("ch.blame.n1"),e("ch.blame.n2"),e("ch.blame.n3")],C=[e("ch.blame.d1"),e("ch.blame.d2"),e("ch.blame.d3")],K=["var(--accent)","var(--critical)","var(--muted)"],N=[0,0,0];(E.items||[]).forEach(q=>{N[R(q.k)]+=q.loss});const A=N.reduce((q,O)=>q+O,0)||1,W=500,J=44;let B=0,X="";N.forEach((q,O)=>{const z=q/A*W;X+=`<rect x="${B.toFixed(1)}" y="12" width="${Math.max(z,1).toFixed(1)}" height="26" rx="3" fill="${K[O]}" fill-opacity=".55"><title>${j[O]}: ${s(Math.round(q))} MWh</title></rect>`+(z>46?m(B+z/2,29,(q/A*100).toFixed(0)+"%",{fs:10.5,fill:"currentColor",anchor:"middle",w:600}):""),B+=z});const tt=N.map((q,O)=>`<div style="display:flex;align-items:baseline;gap:7px;margin-top:5px"><i style="flex:none;width:9px;height:9px;border-radius:2px;background:${K[O]};opacity:.55"></i><span style="font-weight:600">${j[O]}</span><span class="num">${s(Math.round(q))} MWh</span><span class="small muted">${C[O]}</span></div>`).join("");return f(W,J,`${m(0,8,e("ch.blame.title",{tot:s(Math.round(A))}))}${X}`)+tt}function ut(E){const R=E.months||E.x||[],j=R.length;if(!j)return"";const C=620,K=250,N=52,A=34,W=["var(--accent)","#D48A1E","#2E8B6A","#7C5295"],J=[];if((E.series||[]).forEach(st=>st.vals.forEach(h=>{h!=null&&h===h&&J.push(h)})),(E.thresholds||[]).forEach(st=>{st&&st.v!=null&&J.push(st.v)}),!J.length)return"";let B=E.zero===!1?Math.min(...J):Math.min(0,...J),X=Math.max(...J);B===X&&(B-=1,X+=1);const tt=(X-B)*.08;X+=tt,E.zero===!1&&(B-=tt);const q=st=>N+st/Math.max(j-1,1)*(C-N-12),O=st=>K-A-(st-B)/(X-B)*(K-A-14),z=(st,h)=>{let g=[],b=[];return st.forEach((y,M)=>{y==null||y!==y?(b.length&&g.push(b),b=[]):b.push(`${q(M).toFixed(1)},${O(y).toFixed(1)}`)}),b.length&&g.push(b),g.map(y=>`<polyline points="${y.join(" ")}" fill="none" stroke="${h}" stroke-width="1.8"/>`).join("")};let Q=(E.series||[]).map((st,h)=>z(st.vals,W[h%4])).join("");const nt=Math.max(1,Math.ceil(j/8));let mt="";for(let st=0;st<j;st+=nt)mt+=m(q(st),K-10,String(R[st]).includes("-")?String(R[st]).slice(2,7):String(R[st]),{fs:10,anchor:"middle"});let ht="";for(let st=0;st<5;st++){const h=B+(X-B)*st/4;ht+=m(N-6,O(h)+3,h.toFixed(Math.abs(X)<10?1:0),{fs:10,anchor:"end"})+`<line x1="${N}" x2="${C-12}" y1="${O(h).toFixed(1)}" y2="${O(h).toFixed(1)}" stroke="var(--line)"/>`}(E.thresholds||[]).forEach(st=>{!st||st.v==null||(Q+=`<line x1="${N}" x2="${C-12}" y1="${O(st.v).toFixed(1)}" y2="${O(st.v).toFixed(1)}" stroke="var(--muted)" stroke-dasharray="5 4"/>`+(st.label?v(N+6,O(st.v)-4,st.label,{fs:10}):""))}),E.xlab&&(Q+=v((N+C)/2,K-1,E.xlab,{fs:10,anchor:"middle"}));const at='<div class="legend" style="margin-top:6px;flex-wrap:wrap">'+(E.series||[]).map((st,h)=>`<span><i style="background:${W[h%4]}"></i>${a(st.name)?`<span class="verbatim">${n(u(st.name))}</span>`:n(st.name)}</span>`).join("")+"</div>";return f(C,K,`${ht}${Q}${mt}`)+at}function bt(E,R){const A=(W,J,B)=>{const X=Object.entries(J.分组||{}).map(([at,st])=>({v:parseFloat(at),n:st,raw:at}));if(!X.length)return"";const tt=Math.min(...X.map(at=>at.v)),q=Math.max(...X.map(at=>at.v)),O=(q-tt)*.22||1,z=tt-O,Q=q+O,nt=at=>54+(at-z)/(Q-z)*412,mt=Math.max(...X.map(at=>at.n)),ht=J.中位;return m(48,W+3,B,{fs:9.5,anchor:"end"})+`<line x1="54" y1="${W}" x2="466" y2="${W}" stroke="var(--line)"/><line x1="${nt(ht).toFixed(1)}" y1="${W-24}" x2="${nt(ht).toFixed(1)}" y2="${W+18}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".55"/>`+m(nt(ht),W+28,e("ch.cap.median",{v:ht}),{fs:8.5,anchor:"middle"})+X.map(at=>{const st=5+Math.sqrt(at.n/mt)*9;return`<circle cx="${nt(at.v).toFixed(1)}" cy="${W}" r="${st.toFixed(1)}" fill="var(--accent)" fill-opacity=".42" stroke="var(--accent)"/>`+m(nt(at.v),W-st-5,n(at.raw),{anchor:"middle",fill:"currentColor"})+m(nt(at.v),W+3.5,at.n,{anchor:"middle",fill:"var(--panel)",w:600})}).join("")};return f(500,158,`${A(44,E||{},e("ch.cap.p"))}${A(120,R||{},e("ch.cap.w"))}${m(466,12,e("ch.cap.legend"),{fs:8.5,anchor:"end"})}`)}function qt(E,R){const j=E.离群||[],C=E.全场同档差中位||0,K=500,N=34+j.length*26,A=52,W=58,J=Math.max(C,...j.map(tt=>tt.平均偏))*1.18||1,B=tt=>A+tt/J*(K-A-W),X=j.map((tt,q)=>{const O=30+q*26;return m(A-6,O+10,n(R(tt.t)),{fs:9.5,anchor:"end",fill:"currentColor"})+`<rect x="${A}" y="${O+1}" width="${(B(tt.平均偏)-A).toFixed(1)}" height="13" rx="2" fill="var(--warning)" fill-opacity=".62"/>`+m(B(tt.平均偏)+5,O+11,tt.平均偏+"°",{fill:"var(--warning)"})}).join("");return f(K,N,`<line x1="${B(C).toFixed(1)}" y1="18" x2="${B(C).toFixed(1)}" y2="${N-4}" stroke="var(--good)" stroke-dasharray="3 3"/>${m(B(C),12,e("ch.beta.median",{v:C}),{fs:8.5,fill:"var(--good)"})}<line x1="${A}" y1="18" x2="${A}" y2="${N-4}" stroke="var(--line)"/>${X}`)}function oe(E){const R=Object.entries(E||{}),j=500,C=26+R.length*30,K=96,N=76,A=3.7,W=Math.max(A*1.35,...R.map(([,X])=>X.极差/X.σ)),J=X=>K+X/W*(j-K-N),B=R.map(([X,tt],q)=>{const O=22+q*30,z=tt.极差/tt.σ,Q=z>A;return v(K-6,O+11,X,{fs:9.5,anchor:"end",fill:"currentColor"})+`<rect x="${K}" y="${O+2}" width="${(J(z)-K).toFixed(1)}" height="12" rx="2" fill="${Q?"var(--warning)":"var(--accent)"}" fill-opacity=".55"/>`+m(J(z)+5,O+11,e("ch.ruler.row",{r:z.toFixed(1),s:tt.σ}))}).join("");return f(j,C,`<line x1="${J(A).toFixed(1)}" y1="14" x2="${J(A).toFixed(1)}" y2="${C-4}" stroke="var(--good)" stroke-dasharray="3 3"/>${m(J(A),10,e("ch.ruler.norm"),{fs:8.5,fill:"var(--good)",anchor:"middle"})}${B}`)}function Kt(E){const R=E.kind;if(R==="vib")return`<p class="small">${a(E.text||E.comp)?`<span class="verbatim">${n(u(E.text||E.comp))}</span>`:n(E.text||E.comp||"")}</p>`;if(R==="vibbar"){const b=E.rows||[];if(!b.length)return"";const y=D=>{const P=Math.abs(D);return P>=100?D.toFixed(0):P>=10?D.toFixed(1):P>=1?D.toFixed(2):P>=.01?D.toFixed(3):Number(D).toExponential(1)},M={};b.forEach(D=>{(M[D.指标]=M[D.指标]||[]).push(D)});let F=`<p class="small muted">${e("fig.vibbar_note")}</p>`;for(const[D,P]of Object.entries(M))F+=`<div class="tblwrap" style="margin-top:8px"><b class="small muted">${l(D)}</b><table style="margin-top:2px"><tr><th>${e("fig.point")}</th><th class="r">${e("fig.x_median")}</th><th class="r">${e("fig.this_unit")}</th><th class="r">${e("fig.fleet_median")}</th><th class="r">z</th><th class="r">${e("fig.trend")}</th></tr>`+P.map(w=>{const x=Math.abs(w.z)>=3?"var(--critical)":Math.abs(w.z)>=2?"var(--warning)":"var(--good)";return`<tr><td class="small">${l(w.测点)}</td><td class="r" style="color:${x};font-weight:600">${w.倍中位!=null?w.倍中位+"×":"—"}</td><td class="r small">${y(w.本台)}</td><td class="r small muted">${y(w.全场中位)}</td><td class="r small" style="color:${Math.abs(w.z)>=3?"var(--critical)":"var(--muted)"}">${w.z}</td><td class="r small" style="color:${w.六窗比>1.15?"var(--warning)":"var(--muted)"}">${w.六窗比!=null?w.六窗比+"×":"—"}</td></tr>`}).join("")+"</table></div>";return F}const j=E.months||E.x||[],C=j.length;if(!C)return"";const K=620,N=250,A=52,W=34,J=14,B=[];if(R==="band"?[E.self,E.med,E.q1,E.q3].forEach(b=>(b||[]).forEach(y=>{y!=null&&y===y&&B.push(y)})):R==="bars"?(B.push(0),(E.vals||[]).forEach(b=>{b!=null&&b===b&&B.push(b)})):R==="xy"?[E.self,E.med].forEach(b=>(b||[]).forEach(y=>{y!=null&&y===y&&B.push(y)})):(E.series||[]).forEach(b=>(b.vals||[]).forEach(y=>{y!=null&&y===y&&B.push(y)})),(E.thresholds||[]).forEach(b=>{b&&b.v!=null&&B.push(b.v)}),!B.length)return"";let X=Math.min(...B),tt=Math.max(...B);X===tt&&(X-=1,tt+=1);const q=(tt-X)*.08;X-=q,tt+=q;const O=b=>A+b/Math.max(C-1,1)*(K-A-12),z=b=>N-W-(b-X)/(tt-X)*(N-W-J),Q=(b,y,M)=>{let F=[],D=[];return(b||[]).forEach((P,w)=>{P==null||P!==P?(D.length&&F.push(D),D=[]):D.push(`${O(w).toFixed(1)},${z(P).toFixed(1)}`)}),D.length&&F.push(D),F.map(P=>`<polyline points="${P.join(" ")}" fill="none" stroke="${y}" stroke-width="${M||1.8}"/>`).join("")};let nt="";if(R==="band"&&E.q1&&E.q3){const b=[],y=[];E.q3.forEach((M,F)=>{M!=null&&b.push(`${O(F).toFixed(1)},${z(M).toFixed(1)}`)});for(let M=E.q1.length-1;M>=0;M--)E.q1[M]!=null&&y.push(`${O(M).toFixed(1)},${z(E.q1[M]).toFixed(1)}`);b.length&&y.length&&(nt+=`<polygon points="${b.join(" ")} ${y.join(" ")}" fill="var(--unknown)" fill-opacity=".18"/>`)}if(R==="bars"){const b=Math.max(3,(K-A-20)/C*.6),y=z(Math.max(X,0));nt+=(E.vals||[]).map((M,F)=>M==null||M!==M?"":`<rect x="${(O(F)-b/2).toFixed(1)}" y="${z(M).toFixed(1)}" width="${b.toFixed(1)}" height="${Math.max(y-z(M),.8).toFixed(1)}" rx="2" fill="var(--accent)" fill-opacity=".75"/>`).join("")}E.med&&(nt+=Q(E.med,"var(--muted)",1.7)),E.self&&(nt+=Q(E.self,"var(--critical)",2.1)+(E.self||[]).map((b,y)=>b==null||b!==b?"":`<circle cx="${O(y).toFixed(1)}" cy="${z(b).toFixed(1)}" r="2.4" fill="var(--critical)"/>`).join(""));const mt=["var(--accent)","#D48A1E","#2E8B6A","#7C5295"];(E.series||[]).forEach((b,y)=>{nt+=Q(b.vals,mt[y%4])}),(E.thresholds||[]).forEach(b=>{b==null||b.v==null||(nt+=`<line x1="${A}" x2="${K-12}" y1="${z(b.v).toFixed(1)}" y2="${z(b.v).toFixed(1)}" stroke="var(--muted)" stroke-dasharray="5 4"/>`+(b.label?v(A+6,z(b.v)-4,b.label,{fs:10}):""))});const ht=Math.max(1,Math.ceil(C/8));let at="";for(let b=0;b<C;b+=ht)at+=m(O(b),N-10,String(j[b]).includes("-")?String(j[b]).slice(2,7):String(j[b]),{fs:10,anchor:"middle"});let st="";for(let b=0;b<5;b++){const y=X+(tt-X)*b/4;st+=m(A-6,z(y)+3,y.toFixed(Math.abs(tt)<10?1:0),{fs:10,anchor:"end"})+`<line x1="${A}" x2="${K-12}" y1="${z(y).toFixed(1)}" y2="${z(y).toFixed(1)}" stroke="var(--line)"/>`}const h=R==="band"?m(K-190,12,e("fig.this_unit"),{fill:"var(--critical)",fs:10})+m(K-110,12,e("fig.fleet_median"),{fs:10})+m(K-40,12,e("fig.quartile"),{fs:10}):(E.series||[]).length&&(E.series||[]).length<=2?E.series.map((b,y)=>m(K-12-(E.series.length-1-y)*118,12,"— "+n(u(b.name)),{fill:mt[y%4],fs:10,anchor:"end"})).join(""):"",g=(E.series||[]).length>2?'<div class="legend" style="margin-top:6px;flex-wrap:wrap">'+E.series.map((b,y)=>`<span><i style="background:${mt[y%4]}"></i>${a(b.name)?`<span class="verbatim">${n(u(b.name))}</span>`:n(b.name)}</span>`).join("")+"</div>":"";return f(K,N,`${st}${nt}${at}${h}`)+g}return{quadChart:G,rateChart:Z,waterfall:lt,ramChart:H,attribBar:U,paretoChart:S,blameBar:L,lossName:I,multiline:ut,capAxis:bt,betaBar:qt,rulerBar:oe,fig:Kt}};const xu=[[/DE[/]NDE/g,"驱动端与非驱动端"],[/GenDE/g,"发电机驱动端"],[/GenNDE/g,"发电机非驱动端"],[/HS_gen2?/g,"高速轴发电机侧"],[/HS_rot/g,"高速轴转子侧"],[/IMS/g,"中间轴"],[/(?<![A-Za-z])NDE(?![A-Za-z])/g,"非驱动端"],[/(?<![A-Za-z])DE(?![A-Za-z])/g,"驱动端"],[/内圈BPFI/g,"内圈特征频率"],[/外圈BPFO/g,"外圈特征频率"],[/BPFI/g,"内圈特征频率"],[/BPFO/g,"外圈特征频率"],[/FTF/g,"保持架特征频率"],[/BSF/g,"滚动体特征频率"],[/TD_1R/g,"时域单转指标"],[/Peak/g,"冲击峰值"],[/Rms/gi,"有效值"],[/([0-9]+(?:[.][0-9]+)?)[ ]*阶/g,"$1 倍轴频"],[/[(]o([0-9]+(?:[.][0-9]+)?)[)]/g,"(轴频 $1 倍)"],[/×p90/g,"×全场90分位"],[/×fleet/g,"×全场中位"],[/六窗/g,"六个观测窗"],[/([0-9])窗/g,"$1 个观测窗"],[/宽带/g,"宽频带总量"],[/台阶/g,"阶跃上升"],[/缓升/g,"缓慢上升"],[/回落/g,"回落至"],[/全净|六窗全净/g,"各窗均干净"],[/清洁/g,"干净"],[/回归/g,"回到常态"],[/同族/g,"同批次共性 (见该批主台)"],[/族第([^ ]+)台/g,"同批次第$1台"],[/族/g,"批次共性组"],[/gain异常/g,"测点增益异常"],[/gain/g,"测点增益"],[/[(]销[)]/g,"(已销案)"],[/梯度/g,"沿链梯度最高点"],[/周期主导/g,"周期成分主导"],[/急性事件/g,"突发事件"],[/慢性/g,"长期"],[/主异常在/g,"主要异常位于"]],ft=t=>String(t??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"),Zo=t=>String(t??""),$t=t=>ft(t),wu={危险:"bad",报警:"warn",不可判:"unk",良好:"ok",优秀:"ex"},ku={critical:"bad",alarm:"warn",undeterminable:"unk",indeterminate:"unk","not evaluable":"unk",good:"ok",excellent:"ex",warn:"warn",bad:"bad",ok:"ok",unk:"unk",ex:"ex"},Yn=t=>wu[String(t)]||ku[String(t)],Qo={bad:"var(--critical)",warn:"var(--warning)",unk:"var(--unknown)",ok:"var(--good)",ex:"var(--excellent)"},ta={优秀:"var(--excellent)",良好:"var(--good)",报警:"var(--warning)",危险:"var(--critical)",不可判:"var(--unknown)",监测不可用:"var(--unknown)",无监测:"var(--unknown)"},ea={bad:"var(--critical)",warn:"var(--warning)",note:"var(--muted)",ok:"var(--good)",unlisted:"var(--muted)",stale:"var(--muted)",meta:"var(--muted)"},Mu={定论:"confirmed","准定论·预警":"near","候选·新发":"candidate_new",候选:"candidate","候选·记基线":"candidate_baseline",参考:"reference",INSUFFICIENT:"insufficient",正常:"normal",撤回:"withdrawn"},Jn=t=>"st."+(t==="ex"?"excellent":t),Ce=t=>{const e=Yn(t);return e?i(Jn(e)):$t(t)},mn=t=>{const e=Mu[String(t)],s="tier."+e;return e?i(s):String(t)==="—"?"—":$t(t)},sa=(t,e,s)=>`<span class="duo" style="--c:${s}"><span class="st">${t}</span><span class="ev">${e}</span></span>`,Be=t=>{let e=String(t??"");for(const[s,n]of xu)e=e.replace(s,n);return e},_n=t=>Be(t),Su=(t,e)=>{if(!t||t.filter(m=>m!=null).length<3)return"";const s=t.filter(m=>m!=null),n=Math.min(...s),l=Math.max(...s),o=l-n||1,c=84,a=22,u=t.length;let _="",f=null;return t.forEach((m,v)=>{if(m==null)return;const $=v/(u-1)*c,I=a-2-(m-n)/o*(a-4);_+=(_?"L":"M")+$.toFixed(1)+" "+I.toFixed(1),f=[$,I]}),`<svg width="${c}" height="${a}" style="vertical-align:middle;margin-left:6px"><path d="${_}" fill="none" stroke="${e}" stroke-width="1.2" opacity=".75"/><circle cx="${f[0]}" cy="${f[1]}" r="2.4" fill="${e}"/></svg>`},Tu={齿轮箱:"#8A6D3B",发电机:"#4A6FA5",主轴承:"#2E7D6B",变桨叶片:"#4A6FA5",偏航:"#2E7D6B",测风:"#7C5295",其他:"#5A6470"},Cu=(t,e,s)=>{if(!e)return`<span class="small muted">${i("fus.no_alarm")}</span>`;const n=118,l=Math.max(6,Math.round(e/Math.max(s||e,1)*n));return`<div title="${ft(i("fus.fam_tip",{n:e,m:s||e}))}" style="display:flex;height:9px;border-radius:3px;overflow:hidden;width:${l}px">${(t||[]).map(o=>`<i title="${ft(xe(o.k))} ${o.n}" style="width:${(o.n/e*100).toFixed(1)}%;background:${Tu[o.k]||"#5A6470"}"></i>`).join("")}</div><div class="small muted" style="margin-top:3px">${(t||[]).slice(0,2).map(o=>xe(o.k)+" "+o.n).join(" · ")}</div>`};function Eu(t){const e=(t.列窗||{}).months||[];let s=`<div class="panel mb" style="border-left:3px solid var(--warning)"><b>${i("fus.rules_head")}</b><p class="small" style="margin-top:4px">${i("fus.rule1")}<br>${i("fus.rule2")}</p></div>`;s+=`<div class="panel mb"><h3>${i("fus.matrix_head")}</h3><p class="small muted">${i("fus.matrix_note1")}</p><p class="small">${i("fus.matrix_note2",{n:e.length,m0:e[0]||"?"})}</p>
  44. <div class="small muted" style="margin:6px 0 12px;line-height:2"><div><b>${i("fus.legend_state")}</b> ${["bad","warn","ok","ex","unk"].map(v=>`<span style="display:inline-flex;align-items:center;gap:4px;margin-right:12px"><i style="width:10px;height:10px;border-radius:2px;background:${Qo[v]}"></i>${i(Jn(v))}</span>`).join("")}</div>
  45. <div><b>${i("fus.legend_tier")}</b> ${["定论","准定论·预警","候选·新发","候选","候选·记基线","参考","INSUFFICIENT"].map(v=>`<span style="display:inline-flex;align-items:center;gap:4px;margin-right:12px"><i style="width:10px;height:10px;border-radius:2px;background:${(t.色标||{})[v]||"#ccc"}"></i>${mn(v)}</span>`).join("")}</div><div>${i("fus.legend_note")}</div></div>`;const n=v=>{const $=String(v||""),I=$.match(/20[0-9][0-9]-[0-9][0-9](?:~20[0-9][0-9]-[0-9][0-9])?|至[ ]*20[0-9][0-9]-[0-9][0-9]|20[0-9][0-9]~20[0-9][0-9]/);return I?I[0].startsWith("至")?i("win.through",{date:I[0].replace(/^至\s*/,"")}):I[0]:$.slice(0,14)},l=(v,$,I)=>`<th title="${ft($||"")}${I||""}"><div>${v}</div><div class="small muted" style="font-weight:400">${$t(n($))}${I||""}</div></th>`,o=t.列窗||{};s+=`<div class="tblwrap"><table class="fmx" style="table-layout:fixed;width:100%;min-width:900px"><colgroup><col style="width:7%">${'<col style="width:15.5%">'.repeat(6)}</colgroup><tr><th>${i("ui.unit")}</th>${l(i("fus.col.vib"),o.振动,i("fus.col.fixed"))}${l(i("fus.col.temp"),o.温度)}${l(i("fus.col.lub"),o.润滑,i("fus.col.display_only"))}${l(i("fus.col.oil"),o.油液)}${l(i("fus.col.alarm"),o.报警)}${l(i("fus.col.wo"),o.工单)}</tr>`;const c=t.矩阵||[],a=Math.max(1,...c.map(v=>(v.报警||{}).n||0)),u=Math.max(1,...c.map(v=>(v.工单||{}).n||0)),_=t.色标||{},f=v=>{if(v.ostate&&v.ostate!=="不可判")return Ce(v.ostate);const $=String(v.note||"");return/数据不足|不可判|nsufficient/.test($)?i("fus.short.nodata"):/未评估|ot assessed/.test($)?i("fus.short.uneval"):/无样|未取样|o sample/.test($)?i("fus.short.nosample"):/样龄|stale/.test($)?i("fus.short.stale"):{ok:i("fus.short.normal"),unlisted:i("fus.short.unlisted"),stale:i("fus.short.stale")}[v.level]||"—"},m=v=>{const $=v||{},I=ta[$.ostate]||_[$.wlevel]||ea[$.level]||"var(--muted)",G=Be($.note),Z=["bad","warn","note"].includes($.level),lt=ft(G)+i("fus.tip_state",{s:Ce($.ostate||"?")});if(!Z)return`<td class="small" title="${lt}" style="border-left:3px solid ${I};color:var(--muted)">${f($)}</td>`;const H=G.split(/[::]/),U=(H.length>1?H.slice(1).join(":"):G).trim(),S=/^[ ]*(评估报告|两口径差异|⚠|ssessment)/.test(U)||U.length>16?"":U,L=S?$t(S):$.ostate&&$.ostate!=="不可判"?"":f($),ut=$.wlevel&&$.wlevel!=="—"&&$.wlevel!=="正常"&&$.ostate?sa(Ce($.ostate),mn($.wlevel),I):"";return`<td class="small" title="${lt}${i("fus.tip_tier",{e:mn($.wlevel||"?")})}" style="border-left:3px solid ${I};overflow:hidden"><div><div style="color:${I};font-weight:${["bad","warn"].includes($.level)?600:400}">${L}</div>${ut}</div>${Su($.hist,$.level==="bad"?"var(--critical)":$.level==="warn"?"var(--warning)":"var(--muted)")}</td>`};return c.forEach(v=>{const $=v.报警||{n:0,fam:[]},I=v.工单||{n:0,acts:[]},G=$.rank&&$.rank<=5?"var(--warning)":"var(--line)",Z=$.burst,lt=ft(($.items||[]).map(H=>`${H.code} ${Be(H.text)} — ${H.n} (${H.first}~${H.last})`).join(`
  46. `))+(Z?`
  47. `+ft(i("fus.burst_tip",{c:Z.code,p:(Z.share*100).toFixed(0),m:Z.med_s})):"");s+=`<tr><td><a href="/turbine/${v.turbine}"><b>${At(v.turbine)}</b></a></td>${m(v.振动)}${m(v.温度)}${m(v.润滑)}${m(v.油液)}
  48. <td title="${lt}" style="border-left:3px solid ${Z?"var(--unknown)":G}"><b class="small num" style="color:${$.rank&&$.rank<=10?"var(--ink)":"var(--muted)"}">${i("fus.alarm_n",{n:$.n})}</b>${$.rank?`<span class="small muted">${i("fus.alarm_rank",{r:$.rank,t:$.tot})}</span>`:""}${Z?`<div class="small" style="color:var(--unknown)">${i("fus.burst",{p:(Z.share*100).toFixed(0),c:Z.code})}</div>`:""}${$.rank&&$.rank<=10||Z?Cu($.fam,$.n,a):""}</td>
  49. <td title="${ft((I.items||[]).map(H=>`${H.date} ${_n(H.name)} → ${_n(H.act)}${H.part?" "+_n(H.part):""}`).join(`
  50. `)||i("fus.wo_none"))}" style="min-width:110px">${I.n?`<b class="small">${i("fus.wo_n",{n:I.n})}</b>${I.last?`<span class="small muted"> · ${ft(I.last)}</span>`:""}<div style="height:7px;border-radius:3px;background:var(--muted);opacity:.5;margin-top:4px;width:${Math.max(6,Math.round(I.n/u*90))}px"></div><div class="small muted" style="margin-top:3px">${(I.acts||[]).slice(0,2).map(H=>$t(H.k)+"×"+H.n).join(" · ")}</div>`:'<span class="small muted">—</span>'}</td></tr>`}),s+`</table></div><p class="small muted" style="margin-top:8px">${i("fus.matrix_foot")}</p></div>`}const Il=(t,e,s)=>{const n=Math.max(t,e,7),l=120,o=c=>Math.max(2,c/n*(l-4));return`<svg class="dt" viewBox="0 0 ${l} 26" style="width:${l}px;height:26px"><rect x="2" y="2" width="${o(t).toFixed(1)}" height="9" rx="2" fill="var(--muted)" fill-opacity=".55"/><rect x="2" y="15" width="${o(e).toFixed(1)}" height="9" rx="2" fill="${s}" fill-opacity=".9"/></svg>`},An=(t,e)=>{const s=String(t||"").replace(/main bearing[, ]*[(]?(?:rear|back)[)]?/ig,"主轴承后").replace(/main bearing[, ]*[(]?(?:front|forward)[)]?/ig,"主轴承前").replace(/main bearing/ig,"主轴承").replace(/generator[, ]*(?:NDE|non-drive[- ]end)/ig,"发电机NDE").replace(/generator[, ]*(?:DE|drive[- ]end)/ig,"发电机DE").replace(/generator/ig,"发电机").replace(/gearbox/ig,"齿轮箱").replace(/planetary/ig,"行星").replace(/intermediate[- ](?:speed[- ])?shaft/ig,"中间轴").replace(/high[- ]speed shaft/ig,"高速轴"),n=/齿轮箱/.test(s)&&!/行星|中间轴|中速|高速轴/.test(s);return`<span class="chain" title="${ft(Zo(t))}">${Du.map(([l,o])=>{const c=o.test(s)||n&&["ps","ims","hss"].includes(l);return`<i class="${c?"on":""}" style="${c?`background:${e};border-color:${e}`:""}" title="${i("chain."+l)}"></i>`}).join("")}</span>`};function Fu(t){const e=t.能力&&t.能力.loop&&t.能力.loop["换件闭环 (检出→换件→恢复)"]?t.能力.loop:null;if(!e)return`<div class="panel mb"><p class="small">${i("fus.loop_none")}</p></div>`;const s=e["换件闭环 (检出→换件→恢复)"]||[],n=e["当前在升 (无工单可对)"]||[],l=e["负面对照 (工单后持平)"];return`<div class="panel mb"><h3>${i("fus.loop_head")}</h3><p class="small">${i("fus.loop_note")}</p>
  51. <h3 style="margin-top:8px">${i("fus.loop_closed",{n:s.length})}</h3><div class="tblwrap"><table><tr><th>${i("ui.unit")}</th><th>${i("fus.col.part")}</th><th>${i("fus.loop_item")}</th><th>${i("fus.loop_date")}</th><th>${i("fus.loop_ba")}</th><th class="r">${i("fus.loop_ratio")}</th><th>${i("fus.loop_verdict")}</th></tr>
  52. ${s.map(o=>`<tr><td><b>${At(o.turbine)}</b></td><td>${An(o.component+(o.title||""),"var(--good)")} <span class="small">${ms(o.component)}</span></td><td class="small">${$t(o.title)}</td><td>${ft(o.replace_date)}</td><td>${Il(o.pre,o.post,"var(--good)")}<span class="small muted">${o.pre} → ${o.post}</span></td><td class="r"><b style="color:var(--good)">${o.ratio}×</b></td><td><span class="chip ok">${$t(o.verdict)}</span></td></tr>`).join("")}</table></div>
  53. <p class="small" style="margin-top:6px">${i("fus.loop_neg",{n:l})}</p>
  54. <h3 style="margin-top:14px">${i("fus.loop_rising",{n:n.length})}</h3><div class="tblwrap"><table><tr><th>${i("ui.unit")}</th><th>${i("fus.col.part")}</th><th>${i("fus.loop_el")}</th><th class="r">${i("fus.loop_x")}</th><th>${i("fus.loop_state")}</th></tr>
  55. ${n.map(o=>`<tr><td><b>${At(o.turbine)}</b></td><td>${An(o.component,"var(--warning)")} <span class="small">${ms(o.component)}</span></td><td>${Il(o.early,o.late,"var(--warning)")}<span class="small muted">${o.early} → ${o.late}</span></td><td class="r"><b style="color:var(--warning)">${o.ratio}×</b></td><td><span class="chip warn">${i("rpt.units.rising",{r:o.ratio})}</span></td></tr>`).join("")}</table></div>
  56. <p class="small muted" style="margin-top:8px">${i("fus.loop_bound",{b:$t(String(e["★数据边界"]||"").split("**").join(""))})}</p></div>`}const Au=(t,e,s,n)=>{if(e==null)return`<span class="small">${$t(Zo(n).slice(0,30))}</span>`;const l=6,o=104,c=o/2,a=Math.max(-1,Math.min(1,e/l)),u=Math.abs(a)*(c-8),f=Math.abs(e)>=3?/候选|andidate/.test(s||"")?"var(--warning)":/记基线|aseline/.test(s||"")?"var(--accent)":/不可判|返服|ndeterm/.test(s||"")?"var(--unknown)":"var(--muted)":"var(--muted)",m=Math.abs(e)>l;return`<div title="${ft(n||"")}" style="display:flex;align-items:center;gap:7px"><svg class="dt" viewBox="0 0 ${o} 18" style="width:${o}px;height:18px;flex:none"><line x1="4" y1="9" x2="${o-4}" y2="9" stroke="var(--line)" stroke-opacity=".7"/><line x1="${c}" y1="1" x2="${c}" y2="17" stroke="var(--muted)" stroke-opacity=".6"/><rect x="${e>=0?c:c-u}" y="4" width="${Math.max(u,1.5)}" height="10" rx="2" fill="${f}" fill-opacity=".9"/>${m?`<path d="M${e>0?o-5:5},9 l${e>0?-5:5},-4 v8 z" fill="${f}"/>`:""}</svg><b class="small num" style="color:${f}">${e>0?"+":""}${e}K</b></div><div class="small muted" style="margin-top:1px">${ft(t||"")}</div>`},Ou=(t,e)=>{if(!t||!t.length)return`<span class="small" title="${ft(e||"")}">${i("fus.win_none")}</span>`;const s=Date.parse("2026-01-01"),n=Date.parse("2026-09-01"),l=118,o=c=>3+Math.max(0,Math.min(1,(Date.parse(c)-s)/(n-s)))*(l-6);return`<div title="${ft(e||"")}"><svg class="dt" viewBox="0 0 ${l} 18" style="width:${l}px;height:18px"><rect x="3" y="4" width="${l-6}" height="10" rx="2" fill="var(--line)" fill-opacity=".5"/>${t.map(([c,a])=>{const u=o(c),_=o(a);return`<rect x="${u.toFixed(1)}" y="4" width="${Math.max(_-u,2.5).toFixed(1)}" height="10" rx="2" fill="var(--accent)" fill-opacity=".8"/>`}).join("")}</svg><div class="small muted">${i("fus.win_n",{n:t.length})}</div></div>`},ju=(t,e,s)=>`<div title="${ft(s||"")}" style="display:flex;align-items:center;gap:6px"><i style="width:9px;height:9px;border-radius:50%;flex:none;background:${e?"var(--good)":"var(--unknown)"}"></i><span class="small num">${ft(t||i("fus.oil_none"))}</span></div><div class="small muted">${t?i(e?"fus.oil_fresh":"fus.oil_stale"):"—"}</div>`,He=(t,e)=>{const s=Yn(t);return s?`<span class="chip ${s} ">${i(Jn(s))}</span>`:t?`<span class="chip">${ft(t)}</span>`:""};function qu(t,e){const s=t.表||[],n=t.矩阵||[];let l=s,c=`<div class="panel mb"><h3>${i("fus.units_head",{u:new Set(s.map(a=>a.turbine)).size,n:l.length+"",f:""})}</h3>
  57. <div style="display:flex;gap:8px;margin:8px 0 12px;flex-wrap:wrap">${["bad","warn","note","ok"].map(a=>`<button class="pill ${e===a?"on":""}" data-ffilter="${a}">${i("fus.lv."+a)}</button>`).join("")}<button class="pill " data-ffilter="unlisted">${i("fus.unlisted_link",{n:n.filter(a=>(a.振动||{}).level==="unlisted").length})}</button></div>
  58. <div class="panel" style="border-left:3px solid var(--accent);margin-bottom:12px"><b class="small">${i("fus.eval_head")}</b><div class="tblwrap"><table style="margin-top:8px"><tr><th style="width:30%">${i("fus.eval_state")}</th><th style="width:30%">${i("fus.eval_tier")}</th><th>${i("fus.eval_meaning")}</th></tr>
  59. <tr><td>${He("危险")}</td><td><span class="tier confirmed">${i("tier.confirmed.s")}</span></td><td class="small">${i("fus.m.bad")} <span class="muted">(${i("fus.m.bad_e")})</span></td></tr>
  60. <tr><td>${He("报警")}</td><td><span class="tier near">${i("tier.near")}</span> / <span class="tier candidate">${i("tier.candidate_new")}</span></td><td class="small">${i("fus.m.warn")} <span class="muted">(${i("fus.m.warn_e")})</span></td></tr>
  61. <tr><td>${He("良好")}</td><td><span class="tier candidate">${i("tier.candidate")}</span> / <span class="tier candidate">${i("tier.candidate_baseline")}</span></td><td class="small">${i("fus.m.ok")} <span class="muted">(${i("fus.m.ok_e")})</span></td></tr>
  62. <tr><td>${He("优秀")}</td><td><span class="tier reference">${i("tier.reference")}</span> / <span class="tier reference">${i("tier.normal")}</span> / <span class="tier withdrawn">${i("tier.withdrawn")}</span></td><td class="small">${i("fus.m.ex")} <span class="muted">(${i("fus.m.ex_e")})</span></td></tr>
  63. <tr><td>${He("不可判")}</td><td><span class="tier insufficient">${i("tier.insufficient")}</span></td><td class="small">${i("fus.m.unk")} <span class="muted">(${i("fus.m.unk_e")})</span></td></tr></table></div><p class="small muted" style="margin-top:7px">${i("fus.eval_note")}</p></div>
  64. <div class="tblwrap"><table><tr><th>${i("ui.unit")}</th><th>${i("fus.col.part")}</th><th>${i("fus.col.state_concl")}</th><th>${i("fus.col.claim")} <span class="small muted" style="font-weight:400">${i("fus.col.claim_axis")}</span></th><th>${i("fus.col.signal")}</th><th>${i("fus.col.tempaxis")} <span class="small muted" style="font-weight:400">${i("fus.col.tempaxis_note")}</span></th><th>${i("fus.col.oil")}</th></tr>`;return l.forEach(a=>{const u=ea[a.级]||"var(--accent)",_=ta[a.设备状态]||"var(--muted)";c+=`<tr><td><a href="/turbine/${a.turbine}"><b>${At(a.turbine)}</b></a></td><td style="min-width:200px">${An(a.部件,u)} <span class="small">${ms(a.部件)}</span></td>
  65. <td title="${ft(Be(a.振动结论))}">${sa(Ce(a.设备状态||"—"),$t(a.振动结论),_)}</td><td style="min-width:130px">${Ou(a.窗区间,a.claim_window)}</td>
  66. <td class="small" title="${ft(a.振动信号||"")}">${$t(Be(a.振动信号))}</td><td style="min-width:158px">${Au(a.温度通道,a.温度dev,a.温度判,a.温度轴)}</td><td style="min-width:112px">${ju(a.油末样,a.油新鲜,a.油样轴)}</td></tr>`}),c+"</table></div></div>"}const Du=[["mbf",/主轴承[((]前|主轴承前|主轴承[++]|主轴承(?![((前后])/],["mba",/主轴承[((]后|主轴承后/],["ps",/行星|二级行星/],["ims",/中间轴|中速/],["hss",/高速轴|高速(?!.*发电)/],["gde",/发电机DE|发电机[((]|发电机(?!NDE)/],["gnde",/发电机NDE|NDE/]],ts=t=>Qo[Yn(t)]||null,Ll=t=>`<span class="chain">${Object.entries(t).map(([e,s])=>`<i class="${s?"on":""}" style="${s?`background:${s};border-color:${s}`:""}" title="${i("chain."+e)}"></i>`).join("")}</span>`,Pu=t=>{const e=String(t||""),s=/准定论|near[- ](?:conf|establish)/i.test(e)?3:/确诊|onfirmed/.test(e)?4:/定论|ettled|stablished/.test(e)?3:/候选|andidate/.test(e)?2:/参考|eference/.test(e)?1:0,n=s>=4?"var(--critical)":s===3?"var(--warning)":s===2?"var(--accent)":s===1?"var(--muted)":"var(--unknown)";return`<div style="display:flex;align-items:center;gap:7px"><svg class="dt" viewBox="0 0 62 20" style="width:62px;height:20px;flex:none">${[0,1,2,3].map(l=>`<rect x="${2+l*15}" y="${12-l*3}" width="11" height="${6+l*3}" rx="1.5" fill="${l<s?n:"none"}" fill-opacity=".9" stroke="${n}" stroke-opacity="${l<s?1:.4}" ${l>=s?'stroke-dasharray="2 1.5"':""}/>`).join("")}</svg><span class="small" style="color:${n}">${$t(e)}</span></div>`};function Hu(t,e){if(!t.事件)return`<div class="panel mb"><p class="small muted">${i("ui.empty")}</p></div>`;let s=`<div class="panel mb"><p class="small muted"><b>${i("fus.ev_win",{win:Oe(e.win)})}</b></p></div>`;for(const[n,l]of Object.entries(t.事件)){const o=l,c=o.报警||{},a=o.工单||{};s+=`<div class="panel mb"><h3>${i("fus.ev_head",{c:xe(n),an:c.总条数||0,au:c.台数||0,wn:a.总条数||0,wu:a.台数||0})}</h3>`,c.总条数>0?s+=`<div class="tblwrap"><table><tr><th>${i("fus.ev_code")}</th><th>${i("fus.ev_text")}</th><th class="r">${i("ui.count")}</th><th class="r">${i("fus.ev_units")}</th><th class="r">${i("fus.ev_dur")}</th></tr>${(c.码统计||[]).map(u=>`<tr><td>${ft(u.code)}</td><td class="small">${$t(Be(u.text))}</td><td class="r">${u.条数}</td><td class="r">${u.台数}</td><td class="r">${u.时长h}</td></tr>`).join("")}</table></div>
  67. <p class="small">${i("fus.ev_top")}${Object.entries(c.top台||{}).map(([u,_])=>`<a href="/turbine/${u}">${At(u)}</a>×${_}`).join(" · ")}</p>
  68. <details><summary class="small">${i("fus.ev_recent",{n:(c.近况||[]).length})}</summary><div class="tblwrap"><table><tr><th>${i("ui.unit")}</th><th>${i("fus.ev_time")}</th><th>${i("fus.ev_code")}</th><th>${i("fus.ev_text")}</th><th class="r">${i("fus.ev_min")}</th></tr>${(c.近况||[]).map(u=>`<tr><td>${At(u.t)}</td><td class="small">${ft(u.on)}</td><td>${ft(u.code)}</td><td class="small">${$t(Be(u.text))}</td><td class="r">${u.dur_min??"—"}</td></tr>`).join("")}</table></div></details>`:s+=`<p class="small">${i("fus.ev_no_alarm")}</p>`,a.总条数>0?s+=`<div class="tblwrap"><table style="margin-top:8px"><tr><th>${i("ui.unit")}</th><th>${i("ui.date")}</th><th>${i("fus.ev_wo_name")}</th><th>${i("fus.ev_wo_act")}</th><th>${i("fus.ev_wo_cause")}</th></tr>${(a.明细||[]).map(u=>`<tr><td>${At(u.t)}</td><td class="small">${ft(u.date)}</td><td class="small">${$t(u.name)}</td><td class="small">${$t(u.act)}</td><td class="small">${$t(u.cause)}</td></tr>`).join("")}</table></div>`:s+=`<p class="small">${i("fus.ev_no_wo")}</p>`,s+="</div>"}return s}function Iu(t,e){if(!t)return`<div class="panel mb"><p class="small muted">${i("fus.cms_loading")}</p></div>`;if(t.error)return`<div class="panel mb"><p class="small" style="color:var(--critical)">${$t(t.error)}</p></div>`;const s={主轴承前:"mbf",主轴承后:"mba",齿轮箱:"gb",发电机:"gen",发电机DE:"gde",发电机NDE:"gnde","Main bearing, front":"mbf","Main bearing, rear":"mba",Gearbox:"gb",Generator:"gen","Generator DE":"gde","Generator NDE":"gnde"};return`<div class="panel mb"><h3>${i("fus.cms_head",{d:ft(t.date||"")})}</h3>
  69. ${t.时间范围?`<p class="small" style="margin:2px 0 6px">${i("fus.cms_window",{r:ft(t.时间范围)})}</p>`:""}
  70. <p class="small">${$t(t.overall||"")} ${i("fus.cms_note")}</p>
  71. <h3 style="margin-top:10px">${i("fus.cms_action")}</h3><div class="tblwrap"><table><tr><th>${i("ui.unit")}</th><th>${i("fus.loop_state")}</th><th>${i("fus.cms_focus")} <span class="small muted" style="font-weight:400">${i("fus.cms_focus_note")}</span></th><th>${i("fus.cms_evidence")}</th><th>${i("fus.cms_act")}</th></tr>
  72. ${(t.action||[]).map(n=>{const l={};return String(n[2]).split(/[;;]/).forEach(o=>{const c=o.split(/[::]/);if(c.length>1){const a=s[c[0].trim()]||null;a&&(l[a]=ts(c[1].trim()))}}),`<tr><td><b>${At(n[0])}</b></td><td>${He(n[1])}</td><td title="${ft(n[2])}">${Ll(l)} <span class="small muted">${$t(n[2])}</span></td><td style="min-width:150px">${Pu(n[3])}</td><td>${/P0/.test(n[4])?`<b style="color:var(--critical)">${ft(n[4])}</b>`:ft(n[4])}</td></tr>`}).join("")}</table></div>
  73. <h3 style="margin-top:14px">${i("fus.cms_grades")}</h3><div class="tblwrap"><table><tr><th>${i("ui.unit")}</th><th>${i("fus.cms_chain")} <span class="small muted" style="font-weight:400">${i("fus.cms_chain_note")}</span></th><th>${i("fus.cms_overall")}</th><th>${i("fus.cms_act")}</th></tr>
  74. ${(t.grades||[]).map(n=>`<tr><td><b>${At(n.t)}</b></td><td title="${i("chain.mbf")} ${Ce(n.主轴承前)} · ${i("chain.mba")} ${Ce(n.主轴承后)} · ${i("chain.gb")} ${Ce(n.齿轮箱)} · ${i("chain.gen")} ${Ce(n.发电机)}">${Ll({mbf:ts(n.主轴承前),mba:ts(n.主轴承后),gb:ts(n.齿轮箱),gen:ts(n.发电机)})}</td><td>${He(n.综合)}</td><td class="small">${ft(n.行动)}</td></tr>`).join("")}</table></div>
  75. <div class="small" style="margin-top:12px;padding:10px;border:1px solid var(--line);border-radius:8px"><b>${i("fus.cms_basis")}</b> ${i("fus.cms_basis_note",{a:((t.diff||{}).only_cms||[]).map(At).join(", ")||i("fus.none_word"),b:((t.diff||{}).only_vibration_package||(t.diff||{}).only_handoff||[]).map(At).join(", ")||i("fus.none_word")})}</div>
  76. <p class="small muted" style="margin-top:10px">${i("fus.cms_link")} <a href="http://localhost:8030/index.html" target="_blank" rel="noopener">${i("fus.cms_open")}</a> <a href="/windcms/index.html" target="_blank" rel="noopener">${i("fus.cms_static")}</a></p></div>`}const Lu=["matrix","loop","units","events","cms","portal_cms"];function Ru(t,e){const s=t&&t.fus||{},n=s.kpi||{},l=ut=>typeof ut=="number"?ut:Number(ut)||0,o=t&&t.kpi||{},c=l(o.关注台),a=l(o.报警台),u=l(o.全场??n.全场??n.收录台);l(n.候选观察),l(n.全场??n.收录台);const _=String(t&&t.win||""),f=((s.事件||{}).主轴||{}).工单||{},m=l(f.总条数),v=e||{},$=Array.isArray(v.grades)?v.grades:[],I=ut=>$.filter(bt=>String(bt.综合||"")===ut).length,G=Array.isArray(v.action)?v.action.length:0,Z=String(v.窗||""),lt=String(v.时间范围||"").replace(/^\S+\s*/,"").slice(0,60),H=String(v.date||""),U=String(s.证据窗末||v.date||"").slice(0,10),S=(ut,bt=!1)=>'<span style="display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;font-size:12.5px;'+(bt?"border:1px solid var(--warning,#B7791F);color:var(--warning,#B7791F)":"border:1px solid var(--line,#D8DDE3);color:var(--sub,#5A6472);background:var(--panel2,#EDF0F3)")+'">'+ut+"</span>",L=(ut,bt,qt)=>'<div class="panel" style="flex:1 1 280px;min-width:260px"><div class="small muted">'+ut+'</div><h3 style="margin:4px 0 6px">'+bt+'</h3><p class="small muted" style="margin:0">'+qt+"</p></div>";return'<div class="eyebrow">状态监测 · 振动诊断 (windcms)</div><div class="panel mb"><h3 style="margin:0 0 6px">振动与 SCADA 联合分析</h3><p class="small muted" style="margin:0 0 10px">六层模型:数据完整性 → ISO 标量 → 主轴承 rms → 台内自适应基线 → 谱线八闸 → 六枚举裁决。厂商判据与模型融合,机制未定不命名部件。</p><div style="display:flex;flex-wrap:wrap;gap:8px">'+S("当前时间窗 · "+_)+S("关注台 "+c+" 台",!0)+S("报警台 "+a+" 台",!0)+S("全场 "+u+" 台")+S("证据窗末 "+(U||"—"))+S("证据窗内报警工单 · "+m+" 条")+S("CMS 采集窗 "+(Z||"—")+(lt?" · "+lt:""))+S("CMS 裁决 · 优秀 "+I("优秀")+" / 良好 "+I("良好")+" / 报警 "+I("报警"))+S("行动项 "+G+" 条"+(H?" · 数据时点 "+H:""))+S("TCM 六采集窗 · 320 万记录 · 160 万谱")+'</div><p class="small muted" style="margin:10px 0 0">口径:「当前时间窗 / 关注台 / 报警台 / 全场」随右上角时间窗变化;「证据窗末 / 证据窗内报警工单 / CMS 采集窗 / CMS 裁决 / 行动项 / TCM」取自**振动证据包与 CMS 侧**,按证据窗固定(门户原文:<i>振动:证据窗固定,不随本窗</i>),切窗时这些不变。</p></div><div class="eyebrow">振动分析 · 方法与证据边界</div><div style="display:flex;flex-wrap:wrap;gap:12px;margin-bottom:14px">'+L("比较基准","异常比较先核实基准","先确认测点、工况、处理链和频带可比,再结合线能量占比与机群分布识别异常。阈值须注明来源、样本和适用范围;本底接近检测下限时,倍数不宜单独解释,诊断仍需补充证据。")+L("证据关联","多种特征不等于独立证据","频谱、标量和时域特征若来自同一波形,应保留共同来源,避免重复计票。跨测点或跨窗口的一致性也需核查共同工况与采集依赖;结论升级应结合独立检修等证据,不以特征数量替代证据质量。")+L("结论边界","结论强度与证据匹配","使用“持续恶化”“单调”或“唯一”等表述前,应明确观察范围、比较对象、样本依赖和对应检验。端段差异不能代替全程趋势证据;复核发现支持不足时,补充验证或降低结论强度,并保留不确定性。")+'</div><div class="eyebrow">在线 · 客户版</div><div class="panel"><h3 style="margin:0 0 6px">CMS 振动分析工作台</h3><p class="small muted" style="margin:0 0 10px">左栏"需关注 / 未见异常"按台展开四个测点判级;工作台可选机组、测点、分析类即时出图;交互页可提问。演示只停客户版与一次工作台运行。</p><div style="display:flex;flex-wrap:wrap;gap:8px"><a class="chip" style="padding:5px 11px;border-radius:999px;border:1px solid var(--line,#D8DDE3);text-decoration:none" href="/cms/?theme=light" target="_blank" rel="noopener">新窗口打开 windcms →</a><a class="chip" style="padding:5px 11px;border-radius:999px;border:1px solid var(--line,#D8DDE3);text-decoration:none" href="/cms/workbench.html?theme=light" target="_blank" rel="noopener">工作台 →</a></div><iframe title="windcms" src="/cms/?theme=light" style="width:100%;height:760px;border:1px solid var(--line,#D8DDE3);border-radius:8px;margin-top:12px"></iframe></div>'}const Nu=typeof window<"u"?window:globalThis,Rl=Nu.__charts,Bu=Rl?Rl({t:i,fmt:Tt,esc:ft,dv:$t,EN:!1,displayText:t=>t==null?"":String(t),verb:()=>{}}):{};function Jt(t,...e){const s=Bu[t];if(typeof s!="function")return"";try{return s(...e)}catch{return""}}const Wu={key:0},Ku={class:"panel"},Uu={class:"small muted"},Vu={key:1},zu={class:"kpis",style:{"margin-bottom":"12px"}},Gu={key:0},Yu={class:"grid2"},Ju={class:"panel span2"},Xu={class:"small muted",style:{"font-weight":"400"}},Zu={class:"panel"},Qu={class:"small muted",style:{"margin-top":"6px"}},td={class:"panel"},ed={class:"small muted",style:{"font-weight":"400"}},sd={class:"tblwrap"},nd={class:"r",style:{width:"90px"}},ld={class:"small"},od={class:"num small"},ad={class:"r small"},id={class:"small muted",style:{"margin-top":"6px"}},rd=Wt({__name:"Energy",props:{d:{}},setup(t){const e=t,s=Y(()=>(e.d?.control||{}).energy),n=Y(()=>(e.d?.control||{}).states||[]),l={"限电·绑定":"loss.curtail_bound","限电命令·未绑定":"loss.curtail_unbound","停机(调度令)":"loss.dispatch",停机:"loss.stop",正常发电:"loss.normal",低风待机:"loss.lowwind"},o=u=>l[u]?i(l[u]):u,c=Y(()=>{const u=s.value||{};return[{v:Tt(u.theo),u:"MWh",l:i("en.kpi_theo"),k:""},{v:Tt(u.act),u:"MWh",l:i("en.kpi_act",{h:Tt(u.eflh)}),k:"ok"},{v:Tt(u.loss_pct,1),u:"%",l:i("en.kpi_loss",{v:Tt(u.loss)}),k:u.loss_pct>=10?"warn":""},{v:u.cap_ok?i("en.cap_pass"):i("en.cap_fail"),u:"",l:i("en.cap_note",{op:u.cap_ok?"<":"≥",cap:Tt(u.cap)}),k:u.cap_ok?"ok":"bad"}]}),a=Y(()=>Math.max(1,...n.value.map(u=>u.pct)));return(u,_)=>s.value?(k(),T("section",Vu,[r("div",zu,[(k(!0),T(it,null,gt(c.value,(f,m)=>(k(),T("div",{key:m,class:Zt(["kpi",f.k])},[r("b",null,[ct(p(f.v),1),f.u?(k(),T("small",Gu,p(f.u),1)):_t("",!0)]),r("span",null,p(f.l),1)],2))),128))]),r("div",Yu,[r("div",Ju,[r("h3",null,[ct(p(d(i)("en.balance"))+" ",1),r("span",Xu,p(d(i)("en.win",{win:d(Oe)(t.d.win)})),1)]),Ft(Yt,{html:d(Jt)("waterfall",s.value)},null,8,["html"])]),r("div",Zu,[r("h3",null,p(d(i)("en.blame")),1),Ft(Yt,{html:d(Jt)("blameBar",s.value)},null,8,["html"]),r("p",Qu,p(d(i)("en.blame_note",{n:d(Tt)(Math.round(((s.value.items||[]).find(f=>f.k==="停机")||{}).loss||0))})),1)]),r("div",td,[r("h3",null,[ct(p(d(i)("en.states"))+" ",1),r("span",ed,p(d(i)("en.win",{win:d(Oe)(t.d.win)})),1)]),r("div",sd,[r("table",null,[r("tr",null,[r("th",null,p(d(i)("en.state")),1),r("th",null,p(d(i)("en.share")),1),r("th",nd,p(d(i)("en.loss_mwh")),1)]),(k(!0),T(it,null,gt(n.value,f=>(k(),T("tr",{key:f.k},[r("td",ld,p(o(f.k)),1),r("td",null,[r("i",{class:"bar",style:Dt(`width:${Math.round(f.pct/a.value*84)}px;background:${f.k.indexOf("停机")>=0&&f.k.indexOf("调度")<0?"var(--critical)":"var(--accent)"}`)},null,4),r("span",od,p(f.pct)+"% · "+p(d(Tt)(Math.round(f.h)))+"h",1)]),r("td",ad,p(d(Tt)(Math.round(f.loss))),1)]))),128))])]),r("p",id,[ct(p(t.d.control.anchors||""),1),_[0]||(_[0]=r("br",null,null,-1)),ct(p(d(i)("en.states_note")),1)])])])])):(k(),T("section",Wu,[r("div",Ku,[r("p",Uu,p(d(i)("ui.empty")),1)])]))}}),cd={class:"eyebrow"},ud={class:"panel mb small",style:{"border-left":"3px solid var(--accent)"}},dd={style:{color:"var(--warning)"}},pd={class:"grid2"},fd={class:"eyebrow",style:{"grid-column":"1/-1","margin-top":"4px"}},hd={style:{"text-transform":"none","letter-spacing":"0",color:"var(--muted)"}},md={class:"panel span2"},_d={class:"small muted",style:{"margin-top":"6px"}},vd={class:"panel"},gd={class:"panel"},bd={class:"panel span2"},yd={class:"small muted",style:{"margin-top":"6px"}},$d={key:0,style:{color:"var(--warning)"}},xd={class:"panel"},wd={class:"tblwrap"},kd={style:{width:"70px"}},Md={class:"r",style:{width:"80px"}},Sd={class:"num small"},Td={class:"r small"},Cd={class:"small muted",style:{"margin-top":"6px"}},Ed={key:0,class:"panel",style:{"border-left":"3px solid var(--critical)"}},Fd={class:"small"},Ad={key:1,class:"panel"},Od={class:"small muted",style:{"font-weight":"400"}},jd={class:"small muted",style:{"margin-top":"6px"}},qd={class:"eyebrow",style:{"grid-column":"1/-1","margin-top":"4px"}},Dd={style:{"text-transform":"none","letter-spacing":"0",color:"var(--muted)"}},Pd={key:0,class:"panel span2"},Hd={class:"small muted",style:{"margin-top":"6px"}},Id={style:{"margin-top":"12px"}},Ld={class:"small muted",style:{"margin-top":"2px"}},Rd={class:"panel"},Nd={class:"small muted",style:{"margin-top":"4px"}},Bd={class:"panel"},Wd={class:"tblwrap"},Kd={style:{width:"64px"}},Ud={class:"r",style:{width:"56px"}},Vd={class:"num small"},zd={class:"r small"},Gd={class:"small muted",style:{"margin-top":"6px"}},Yd=Wt({__name:"Fault",props:{d:{}},setup(t){const e=t,s=Y(()=>e.d?.faults||{}),n=Y(()=>s.value.partial||[]),l=Y(()=>e.d?.m8&&!e.d.m8.err?e.d.m8.mtbf:null),o=Y(()=>s.value.monthly||{months:[],vals:[]}),c=Y(()=>n.value.length?(o.value.months||[]).indexOf(n.value[0]):-1),a=Y(()=>{const U=n.value.length?i("flt.rate_partial",{m:n.value.join("/")}):i("flt.rate_full"),S=c.value>=0&&!!o.value.per_day;return U+(S?" "+i("flt.rate_example",{m:n.value[0],v:u.value}):"")}),u=Y(()=>{const U=c.value;return U>=0&&o.value.per_day?o.value.per_day[U]:null}),_=Y(()=>n.value.length?i("win.partial",{m:n.value.join("/"),c:Math.round((s.value.cov_min||0)*100)}):""),f=Y(()=>s.value.per_t||[]),m=Y(()=>Math.max(1,...f.value.map(U=>U.v))),v=Y(()=>l.value&&e.d?.m8?.seasonal?e.d.m8.seasonal:[]),$=Y(()=>e.d?.rel&&!e.d.rel.err?e.d.rel:null),I=Y(()=>(e.d?.m8?.stop_pareto||[]).map(U=>({k:String(U.k).split(";")[0].slice(0,26),v:U.h}))),G=U=>ms(U),Z=Y(()=>({months:v.value[0]&&v.value[0].months||[],series:v.value.slice(0,4).map(U=>({name:String(U.name).slice(0,16),vals:U.vals})),xlab:i("flt.seasonal_x")})),lt=Y(()=>l.value?.台级top||[]),H=Y(()=>Math.max(1,...lt.value.map(U=>U.时长h)));return(U,S)=>(k(),T("section",null,[r("div",cd,p(d(i)("flt.eyebrow")),1),r("div",ud,[r("b",null,p(d(i)("win.banner",{win:d(Oe)(t.d.win)})),1),_.value?(k(),T(it,{key:0},[S[0]||(S[0]=ct(" | ",-1)),r("span",dd,p(_.value),1)],64)):_t("",!0)]),r("div",pd,[r("div",fd,[ct(p(d(i)("flt.alarm_face"))+" ",1),r("span",hd,p(d(i)("flt.alarm_meta",{n:d(Tt)(s.value.total),c:s.value.n_codes,win:d(Oe)(t.d.win)})),1)]),r("div",md,[r("h3",null,p(d(i)("flt.rate")),1),Ft(Yt,{html:d(Jt)("rateChart",o.value)},null,8,["html"]),r("p",_d,[r("b",null,p(d(i)("flt.rate_note")),1),ct(" — "+p(a.value),1)])]),r("div",vd,[r("h3",null,p(d(i)("flt.pareto_n")),1),Ft(Yt,{html:d(Jt)("paretoChart",s.value.pareto_n||[],d(i)("unit.n"),d(i)("flt.pareto_n_note"))},null,8,["html"])]),r("div",gd,[r("h3",null,p(d(i)("flt.pareto_d")),1),Ft(Yt,{html:d(Jt)("paretoChart",s.value.pareto_d||[]," h",d(i)("flt.pareto_d_note"))},null,8,["html"])]),r("div",bd,[r("h3",null,p(d(i)("flt.quad")),1),Ft(Yt,{html:d(Jt)("quadChart",s.value.quad||[])},null,8,["html"]),r("p",yd,[ct(p(d(i)("flt.quad_note",{n:s.value.n_codes,m:(s.value.quad||[]).length}))+" ",1),n.value.length?(k(),T("span",$d,p(d(i)("flt.quad_partial",{m:n.value.join("/"),c:Math.round((s.value.cov_min||0)*100)})),1)):_t("",!0),ct(" "+p(d(i)("flt.quad_note2")),1)])]),r("div",xd,[r("h3",null,p(d(i)("flt.per_t",{n:f.value.length})),1),r("div",wd,[r("table",null,[r("tr",null,[r("th",kd,p(d(i)("ui.unit")),1),r("th",null,p(d(i)("ui.count")),1),r("th",Md,p(d(i)("flt.per_t_share")),1)]),(k(!0),T(it,null,gt(f.value,L=>(k(),T("tr",{key:L.k},[r("td",null,[r("b",null,p(d(At)(L.k)),1)]),r("td",null,[r("i",{class:"bar",style:Dt(`width:${Math.round(L.v/m.value*90)}px;background:${L.v/m.value>.6?"var(--critical)":"var(--accent)"}`)},null,4),r("span",Sd,p(d(Tt)(L.v)),1)]),r("td",Td,p((L.v/s.value.total*100).toFixed(1))+"%",1)]))),128))])]),r("p",Cd,p(d(i)("flt.per_t_note",{n:d(Tt)(s.value.total)})),1)]),t.d.m8&&t.d.m8.err?(k(),T("div",Ed,[r("p",Fd,p(d(i)("flt.block_err",{k:"m8",e:t.d.m8.err})),1)])):_t("",!0),l.value&&v.value.length?(k(),T("div",Ad,[r("h3",null,[ct(p(d(i)("flt.seasonal"))+" ",1),r("span",Od,"("+p(d(i)("flt.seasonal_unit"))+")",1)]),Ft(Yt,{html:d(Jt)("multiline",Z.value)},null,8,["html"]),r("p",jd,p(d(i)("flt.seasonal_note")),1)])):_t("",!0),l.value?(k(),T(it,{key:2},[r("div",qd,[ct(p(d(i)("flt.stop_face"))+" ",1),r("span",Dd,p(d(i)("flt.stop_meta",{h:d(Tt)(l.value.停机总时长h),n:d(Tt)(l.value.停机事件数)})),1)]),$.value?(k(),T("div",Pd,[r("h3",null,p(d(i)("flt.ram")),1),Ft(Yt,{html:d(Jt)("ramChart",$.value&&$.value.表||[],G)},null,8,["html"]),r("p",Hd,p(d(i)("flt.ram_note",{a:$.value.设备类停机h,b:$.value.外部类停机h})),1),r("div",Id,[Ft(Yt,{html:d(Jt)("attribBar",$.value&&$.value.表||[],$.value&&$.value.总停机h||0)},null,8,["html"])]),r("p",Ld,p(d(i)("flt.attrib_note",{h:(($.value.表||[]).find(L=>L.部件==="无记录停机")||{}).停机时长h||0})),1)])):_t("",!0),r("div",Rd,[r("h3",null,p(d(i)("flt.stop_pareto")),1),Ft(Yt,{html:d(Jt)("paretoChart",I.value," h",d(i)("flt.stop_pareto_note"))},null,8,["html"]),r("p",Nd,p(l.value.口径),1)]),r("div",Bd,[r("h3",null,p(d(i)("flt.stop_units",{n:lt.value.length})),1),r("div",Wd,[r("table",null,[r("tr",null,[r("th",Kd,p(d(i)("ui.unit")),1),r("th",null,p(d(i)("flt.stop_h")),1),r("th",Ud,p(d(i)("flt.stop_n")),1)]),(k(!0),T(it,null,gt(lt.value,L=>(k(),T("tr",{key:L.t},[r("td",null,[r("b",null,p(d(At)(L.t)),1)]),r("td",null,[r("i",{class:"bar",style:Dt(`width:${Math.round(L.时长h/H.value*90)}px;background:${L.时长h/H.value>.6?"var(--critical)":"var(--accent)"}`)},null,4),r("span",Vd,p(d(Tt)(L.时长h)),1),S[1]||(S[1]=ct("h",-1))]),r("td",zd,p(L.次),1)]))),128))])]),r("p",Gd,p(d(i)("flt.stop_units_note")),1)])],64)):_t("",!0)])]))}}),Jd={class:"eyebrow"},Xd={style:{display:"flex",gap:"8px","margin-bottom":"14px","flex-wrap":"wrap"}},Zd=["data-fsub","onClick"],Qd=["innerHTML"],tp=Wt({__name:"Vibration",props:{d:{},sub:{},cms:{}},emits:["sub"],setup(t,{emit:e}){const s=t,n=e,l=Y(()=>s.sub||"matrix"),o=yt(null),c=yt("");Re(l,async f=>{if((f==="cms"||f==="portal_cms")&&!o.value&&!s.cms&&!c.value)try{const m=await fetch("/api/vibcms");o.value=await m.json()}catch(m){c.value=String(m?.message||m)}},{immediate:!0});const a=Y(()=>s.cms??o.value),u=Y(()=>s.d?.fus),_=Y(()=>{const f=u.value;return!f||f.err?`<section><div class="panel"><p>${i("fus.unavailable",{e:String(f&&f.err||"")})}</p></div></section>`:l.value==="matrix"?Eu(f):l.value==="loop"?Fu(f):l.value==="units"?qu(f,null):l.value==="events"?Hu(f,s.d):l.value==="cms"?Iu(a.value):l.value==="portal_cms"?Ru(s.d,a.value):`<div class="panel mb"><p class="small muted">子视图「${i("fus.sub."+l.value)}」尚未迁移到 Vue(迁移中)。</p></div>`});return(f,m)=>(k(),T("section",null,[r("div",Jd,p(d(i)("fus.eyebrow")),1),r("div",Xd,[(k(!0),T(it,null,gt(d(Lu),v=>(k(),T("button",{key:v,class:Zt(["pill",{on:v===l.value}]),"data-fsub":v,onClick:$=>n("sub",v)},p(d(i)("fus.sub."+v)),11,Zd))),128))]),r("div",{class:"unwrap-host",innerHTML:_.value},null,8,Qd)]))}}),ep={class:"eyebrow"},sp={class:"panel mb small",style:{"border-left":"3px solid var(--accent)"}},np={class:"muted",style:{"margin-top":"3px"}},lp={key:0,class:"panel mb",style:{"border-left":"3px solid var(--critical)"}},op={class:"small"},ap={class:"small muted",style:{"font-weight":"400"}},ip={key:0,class:"chip"},rp={style:{display:"flex","flex-wrap":"wrap",gap:"18px"}},cp={style:{flex:"1 1 300px","min-width":"280px"}},up={class:"small",style:{"font-weight":"600","margin-bottom":"4px"}},dp={class:"small muted",style:{"margin-top":"4px"}},pp={style:{flex:"1 1 300px","min-width":"280px"}},fp={class:"small",style:{"font-weight":"600","margin-bottom":"4px"}},hp=["innerHTML"],mp={class:"small",style:{"font-weight":"600",margin:"12px 0 4px"}},_p={class:"small muted",style:{"margin-top":"4px"}},vp={key:2,class:"panel mb"},gp={class:"small muted",style:{"font-weight":"400"}},bp=["innerHTML"],yp={class:"eyebrow"},$p={key:3,class:"panel",style:{"border-left":"3px solid var(--critical)"}},xp={class:"small"},wp={key:4,class:"panel",style:{"border-left":"3px solid var(--accent)"}},kp={class:"small"},Mp={key:5,class:"panel"},Sp={class:"small muted"},Tp={key:6,class:"grid2"},Cp={key:0,class:"small muted",style:{"font-weight":"400"}},Ep={key:0,class:"small muted",style:{"margin-top":"6px"}},Fp=Wt({__name:"Generation",props:{d:{},curves:{},pending:{type:Boolean}},setup(t){const e=t,s=Y(()=>e.d?.m9&&!e.d.m9.err?e.d.m9:null),n=Y(()=>e.d?.control||null),l=Y(()=>e.curves||null),o=Y(()=>(e.d?.sysmx_span||[]).join(" ~ ")||""),c=Y(()=>s.value?.β_schedule?.离群||[]),a=Y(()=>s.value?.β_schedule?.全场同档差中位||0),u=Y(()=>{const m=n.value?.curve?.cands||[];return m.length?m.map(v=>`<a href="/turbine/${v.t}">${At(v.t)}</a> ${v.dev}% ${$t(v.判)}`).join(" | "):i("gen.no_cands")}),_=Y(()=>i("gen.beta_note",{units:c.value.map(m=>`<a href="/turbine/${m.t}">${At(m.t)}</a>`).join(" / "),k:c.value.length?Math.round(Math.max(...c.value.map(m=>m.平均偏))/Math.max(a.value||0,.01)):"—",v:$t(s.value?.β_schedule?.判)})),f=Y(()=>l.value?.figs||[]);return(m,v)=>(k(),T("section",null,[r("div",ep,p(d(i)("gen.eyebrow")),1),r("div",sp,[r("b",null,p(d(i)("gen.fixed_win")),1),ct(" "+p(o.value?d(i)("gen.win_range",{span:o.value}):"")+" ",1),r("div",np,p(d(i)("gen.win_why")),1)]),t.d.m9&&t.d.m9.err?(k(),T("div",lp,[r("p",op,p(d(i)("flt.block_err",{k:"m9",e:d($t)(t.d.m9.err)})),1)])):_t("",!0),s.value?(k(),T("div",{key:1,class:"panel mb",style:Dt(t.pending?"border-left:3px solid var(--accent)":"")},[r("h3",null,[ct(p(d(i)("gen.ctrl"))+" ",1),r("span",ap,p(d(i)("gen.ctrl_win",{win:d($t)(s.value.窗)})),1),t.pending?(k(),T("span",ip,p(d(i)("gen.recomputing_short")),1)):_t("",!0)]),r("div",rp,[r("div",cp,[r("div",up,p(d(i)("gen.cap")),1),Ft(Yt,{html:d(Jt)("capAxis",s.value&&s.value.P封顶,s.value&&s.value.ω封顶)},null,8,["html"]),r("p",dp,p(d(i)("gen.cap_note")),1)]),r("div",pp,[r("div",fp,p(d(i)("gen.beta")),1),Ft(Yt,{html:d(Jt)("betaBar",s.value&&s.value.β_schedule||{},d(At))},null,8,["html"]),r("p",{class:"small muted",style:{"margin-top":"4px"},innerHTML:_.value},null,8,hp),r("div",mp,p(d(i)("gen.ruler")),1),Ft(Yt,{html:d(Jt)("rulerBar",s.value&&s.value.尺子)},null,8,["html"]),r("p",_p,p(d(i)("gen.ruler_note")),1)])])],4)):_t("",!0),n.value&&n.value.curve?(k(),T("div",vp,[r("h3",null,[ct(p(d(i)("gen.cands"))+" ",1),r("span",gp,p(d(i)("gen.cands_meta",{note:d($t)(n.value.curve.note||""),s:t.d.sigma||n.value.curve.sigma})),1)]),r("p",{class:"small",innerHTML:u.value},null,8,bp)])):_t("",!0),r("div",yp,p(d(i)("gen.figs")),1),l.value&&l.value.err?(k(),T("div",$p,[r("p",xp,p(d(ft)(l.value.err)),1)])):l.value&&l.value.building?(k(),T("div",wp,[r("p",kp,[r("b",null,p(d(i)("gen.recomputing")),1),ct(" "+p(d($t)(l.value.curves?.note||"")),1)]),v[0]||(v[0]=r("div",{class:"skel",style:{width:"60%","margin-top":"10px"}},null,-1)),v[1]||(v[1]=r("div",{class:"skel",style:{width:"80%","margin-top":"8px"}},null,-1))])):l.value?(k(),T("div",Tp,[(k(!0),T(it,null,gt(f.value,($,I)=>(k(),T("div",{key:I,class:"panel"},[r("h3",null,[ct(p(d($t)($.title||"")),1),$.unit?(k(),T("span",Cp,"("+p(d($t)($.unit))+")",1)):_t("",!0)]),Ft(Yt,{html:d(Jt)("multiline",Object.assign({zero:!1},$))},null,8,["html"]),$.note?(k(),T("p",Ep,p(d($t)($.note)),1)):_t("",!0)]))),128))])):(k(),T("div",Mp,[r("p",Sp,p(d(i)("gen.loading")),1),v[2]||(v[2]=r("div",{class:"skel",style:{width:"60%","margin-top":"10px"}},null,-1)),v[3]||(v[3]=r("div",{class:"skel",style:{width:"80%","margin-top":"8px"}},null,-1))]))]))}}),Ap={class:"eyebrow"},Op={class:"small muted"},jp=["href"],qp=["innerHTML"],Dp={class:"panel mb"},Pp={class:"small muted"},Hp=["innerHTML"],Ip={style:{display:"flex",gap:"8px","flex-wrap":"wrap",margin:"10px 0","align-items":"center"}},Lp=["placeholder","value"],Rp={class:"small muted",for:"askm"},Np=["innerHTML"],Bp=["innerHTML"],Wp=["title"],Kp={class:"muted"},Up={class:"btn",id:"askgo"},Vp={id:"askout",class:"small"},zp=Wt({__name:"Decision",props:{d:{},apis:{}},setup(t){const e=t,s=[["equip","设备类"],["sched","检修排程决策"],["loss","损失分析"],["risk","安全风险预测"]],n={"qwen3:8b":"local","qwen3.8:27b":"local","qwen3:30b-a3b":"local","deepseek-r1:14b":"local","deepseek-r1:32b":"local","deepseek-chat":"cloud","kimi-fast":"cloud","qwen-plus":"cloud","deepseek-v4-pro":"cloud"},l=yt("equip"),o=yt(""),c=yt(""),a=yt(""),u=Y(()=>e.apis?.["/detail/api/ask_models"]??e.apis?.["/api/ask_models"]??null),_=Y(()=>u.value?u.value.models||{}:null),f=Y(()=>!!u.value?.offline||!!u.value?.LOCAL_AI_DOWN),m=Y(()=>i("cat."+l.value)),v=Y(()=>s.map(([L])=>`<button class="pill ${L===l.value?"on":""}" data-cat="${L}">${i("cat."+L)}</button>`).join("")),$=Y(()=>[1,2,3].map(L=>`<div class="qitem" data-q="${ft(i("cat."+l.value+".q"+L))}">${i("cat."+l.value+".q"+L)}</div>`).join("")),I=(L,ut)=>i("mdl."+L+"."+ut),G=L=>(I(L,"nm")||L)+(n[L]?" · "+i("mdl."+n[L]):"")+(I(L,"t")?" · "+I(L,"t"):""),Z=L=>n[L]?n[L]==="local"?i("mdl.zero_outbound"):`<span style="color:var(--warning)">${i("mdl.outbound_warn")}</span>`:`<span style="color:var(--warning)">${i("mdl.unknown_warn")}</span>`,lt=Y(()=>{const L=_.value;if(L===null)return c.value;const ut=Object.keys(L);return!c.value||!ut.includes(c.value)?ut[0]||"":c.value}),H=Y(()=>{const L=_.value;return L===null?'<option value="">…</option>':Object.keys(L).length?Object.keys(L).map(ut=>`<option value="${ft(ut)}" ${ut===lt?"selected":""}>${ft(G(ut))}</option>`).join(""):`<option value="">${f.value?i("ask.local_down"):i("ask.no_models")}</option>`}),U=Y(()=>`/?lang=zh&win=${encodeURIComponent(String(e.d?.win||""))}`),S=Y(()=>lt.value?Z(lt.value):"");return(L,ut)=>(k(),T("section",null,[r("div",Ap,p(d(i)("dec.head")),1),r("p",Op,[ct(p(d(i)("dec.classic"))+" ",1),r("a",{href:U.value},p(d(i)("ui.open_classic")),9,jp)]),r("div",{style:{display:"flex",gap:"8px",margin:"10px 0 12px","flex-wrap":"wrap"},innerHTML:v.value},null,8,qp),r("div",Dp,[r("h3",null,p(d(i)("ask.common_q",{cat:m.value})),1),r("p",Pp,p(d(i)("cat."+l.value+".hint"))+p("。")+p(d(i)("ask.grounding")),1),r("div",{innerHTML:$.value,class:"unwrap-host"},null,8,Hp),r("div",Ip,[r("input",{id:"askq",type:"text",placeholder:d(ft)(d(i)("ask.placeholder",{cat:m.value})),value:o.value,style:{flex:"1","min-width":"280px"}},null,8,Lp),r("label",Rp,p(d(i)("ask.model")),1),r("select",{id:"askm",innerHTML:H.value},null,8,Np),r("span",{id:"mdlnote",class:"small",innerHTML:S.value},null,8,Bp),r("label",{class:"small",style:{cursor:"pointer","white-space":"nowrap"},title:d(ft)(d(i)("ask.xrev_title"))},[ut[0]||(ut[0]=r("input",{type:"checkbox",id:"askxrev"},null,-1)),ct(" "+p(d(i)("ask.xrev"))+" ",1),r("span",Kp,p(d(i)("ask.xrev_note")),1)],8,Wp),r("button",Up,p(d(i)("ask.go")),1)]),r("div",Vp,p(a.value||d(i)("ask.idle")),1)])]))}}),Gp={class:"eyebrow"},Yp={class:"panel mb"},Jp={class:"small muted",style:{"font-weight":"400"}},Xp=["placeholder","value"],Zp={class:"btn","data-asst":"fault"},Qp={class:"small muted"},tf=["innerHTML"],ef={id:"asstOut_fault",style:{"margin-top":"10px"}},sf={class:"panel mb"},nf={class:"small muted",style:{"font-weight":"400"}},lf=["innerHTML"],of={class:"btn","data-asst":"prev"},af={id:"asstOut_prev",style:{"margin-top":"10px"}},rf={class:"panel mb"},cf={class:"small muted",style:{"font-weight":"400"}},uf=["innerHTML"],df={class:"btn","data-asst":"tree"},pf={id:"asstOut_tree",style:{"margin-top":"10px"}},vn="display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:8px",ff=Wt({__name:"Assistant",setup(t){const e=["变桨","偏航","主轴承","齿轮箱","发电机","变流器","塔架与基础","主控与传感网","叶片与叶根"],s=["3225","3130","13902","10105","3224"],n=vs({fault:"",prev:"pitch",tree:"pitch",out:{fault:"",prev:"",tree:""}}),l=c=>e.map(a=>`<option value="${Rs(a)}" ${n[c]===Rs(a)?"selected":""}>${xe(a)}</option>`).join(""),o=Y(()=>s.map(c=>`<a href="#" data-code="${c}">${c}</a>`).join(" · "));return(c,a)=>(k(),T("section",null,[r("div",Gp,p(d(i)("asst.head"))+" — "+p(d(i)("asst.head_note")),1),r("div",Yp,[r("h3",null,[ct(p(d(i)("asst.corrective"))+" ",1),r("span",Jp,p(d(i)("asst.corrective_flow")),1)]),r("div",{style:vn},[r("input",{id:"asstIn_fault",placeholder:d(ft)(d(i)("asst.code_placeholder")),value:n.fault,style:{flex:"1 1 220px"}},null,8,Xp),r("button",Zp,p(d(i)("ui.query")),1),r("span",Qp,[ct(p(d(i)("asst.common"))+" ",1),r("span",{class:"unwrap-host",innerHTML:o.value},null,8,tf)])]),r("div",ef,p(n.out.fault),1)]),r("div",sf,[r("h3",null,[ct(p(d(i)("asst.preventive"))+" ",1),r("span",nf,p(d(i)("asst.preventive_flow")),1)]),r("div",{style:vn},[r("select",{id:"asstIn_prev",style:{flex:"1 1 200px"},innerHTML:l("prev")},null,8,lf),r("button",of,p(d(i)("ui.query")),1)]),r("div",af,p(n.out.prev),1)]),r("div",rf,[r("h3",null,[ct(p(d(i)("asst.faulttree"))+" ",1),r("span",cf,p(d(i)("asst.faulttree_flow")),1)]),r("div",{style:vn},[r("select",{id:"asstIn_tree",style:{flex:"1 1 200px"},innerHTML:l("tree")},null,8,uf),r("button",df,p(d(i)("ui.query")),1)]),r("div",pf,p(n.out.tree),1)])]))}}),hf={class:"eyebrow"},mf={key:0,class:"panel"},_f={class:"small muted"},vf={key:1,class:"panel"},gf={class:"small",style:{color:"var(--critical)"}},bf={class:"panel mb"},yf={class:"small muted"},$f={class:"small muted"},xf={class:"tblwrap"},wf={style:{"margin-top":"10px"}},kf={style:{width:"18%"}},Mf={style:{width:"20%"}},Sf={style:{width:"13%"}},Tf={style:{width:"10%"}},Cf={style:{width:"11%"}},Ef={class:"small"},Ff={class:"small num"},Af={key:0,class:"muted"},Of={class:"small muted"},jf={class:"small"},qf={class:"small"},Df={class:"small"},Pf={class:"muted"},Hf={style:{"margin-top":"3px"}},If={class:"muted",style:{"margin-top":"3px"}},Lf={class:"eyebrow",style:{"margin-top":"18px"}},Rf=Wt({__name:"System",props:{apis:{}},setup(t){const e=t,s=a=>String(a??""),n=Y(()=>e.apis?.["/detail/api/maint_survey"]??e.apis?.["/api/maint_survey"]??null),l=[[["数据","Data"],"mt.layer_data","mt.layer_data_note","var(--accent)"],[["机理","Domain model","Mechanism"],"mt.layer_mech","mt.layer_mech_note","var(--warning)"]],o=Y(()=>n.value?.rows||[]),c=Y(()=>l.map(([a,u,_,f])=>({kn:u,kd:_,col:f,rs:o.value.filter(m=>a.includes(String(m.层)))})).filter(a=>a.rs.length));return(a,u)=>{const _=pi("Recalc");return k(),T("section",null,[r("div",hf,p(d(i)("mt.eyebrow")),1),n.value?n.value.error?(k(),T("div",vf,[r("p",gf,p(d($t)(n.value.error)),1)])):(k(),T(it,{key:2},[r("div",bf,[r("h3",null,p(d(i)("mt.head",{n:o.value.length})),1),r("p",yf,p(d(i)("mt.note")),1)]),(k(!0),T(it,null,gt(c.value,f=>(k(),T("div",{key:f.kn,class:"panel mb",style:Dt(`border-left:3px solid ${f.col}`)},[r("h3",null,p(d(i)(f.kn))+" ("+p(f.rs.length)+")",1),r("p",$f,p(d(i)(f.kd)),1),r("div",xf,[r("table",wf,[r("tr",null,[r("th",kf,p(d(i)("mt.src")),1),r("th",Mf,p(d(i)("mt.cov")),1),r("th",Sf,p(d(i)("mt.last")),1),r("th",Tf,p(d(i)("mt.freq")),1),r("th",Cf,p(d(i)("mt.resp")),1),r("th",null,p(d(i)("mt.how")),1)]),(k(!0),T(it,null,gt(f.rs,(m,v)=>(k(),T("tr",{key:v},[r("td",Ef,[r("b",null,p(m.存在?"":"✗ ")+p(s(m.名)),1)]),r("td",Ff,[ct(p(s(m.覆盖)),1),m.条数?(k(),T("span",Af,p(d(i)("mt.rows_n",{n:d(Tt)(m.条数)})),1)):_t("",!0)]),r("td",Of,p(d(ft)(m.末次更新||"—")),1),r("td",jf,p(s(m.频率)),1),r("td",qf,p(s(m.责任)),1),r("td",Df,[r("div",Pf,[ct(p(d(i)("mt.put"))+" ",1),r("code",null,p(s(m.位置)),1)]),r("div",Hf,[ct(p(d(i)("mt.run"))+" ",1),r("code",null,p(s(m.摄入)),1)]),r("div",If,p(s(m.说明)),1)])]))),128))])])],4))),128))],64)):(k(),T("div",mf,[r("p",_f,p(d(i)("mt.surveying")),1)])),r("div",Lf,p(d(i)("tab.recalc")),1),Ft(_),u[0]||(u[0]=r("iframe",{"data-added":"recalc",class:"portal-recalc-frame",title:"数据重算与产物",src:"/ops",style:{width:"100%",height:"1420px",border:"0",display:"block","margin-top":"18px"}},null,-1))])}}}),Nf={class:"eyebrow"},Bf={class:"panel mb noprint"},Wf={style:{display:"flex",gap:"10px","align-items":"center","flex-wrap":"wrap","margin-bottom":"10px"}},Kf={class:"small",style:{"font-weight":"600"}},Uf=["data-preset","onClick"],Vf=["selected"],zf=["selected"],Gf={key:0,class:"small",style:{color:"var(--warning)","flex-basis":"100%"}},Yf={class:"small",style:{"font-weight":"600","margin-bottom":"7px"}},Jf={style:{"font-weight":"400",color:"var(--muted)"}},Xf={style:{display:"grid","grid-template-columns":"auto 1fr",gap:"6px 12px","align-items":"center"}},Zf={class:"small muted",style:{"text-align":"right","padding-top":"3px"}},Qf={style:{display:"flex","flex-wrap":"wrap",gap:"6px"}},th=["data-block","onClick","onMouseenter"],eh={id:"rpthint",class:"small muted",style:{"margin-top":"9px","padding-top":"8px","border-top":"1px solid var(--line)","min-height":"19px"}},sh={style:{"margin-top":"11px","padding-top":"10px","border-top":"1px solid var(--line)"}},nh={class:"small",style:{"font-weight":"600","margin-bottom":"6px"}},lh=["innerHTML"],oh={style:{display:"flex",gap:"8px","align-items":"center","flex-wrap":"wrap"}},ah=["placeholder","value"],ih=["innerHTML"],rh=["disabled"],ch={id:"rptout",class:"small muted",style:{"margin-top":"7px"}},uh={key:0,class:"paper",style:{"text-align":"center",padding:"56px 40px"}},dh={class:"small muted"},ph={key:1,class:"paper"},fh={class:"paper-hd"},hh={class:"paper-ti"},mh={class:"small muted",style:{"margin-top":"3px"}},_h={class:"small muted",style:{"text-align":"right"}},vh={key:0,class:"noprint",style:{display:"flex",gap:"3px","justify-content":"flex-end","margin-bottom":"-6px",position:"relative","z-index":"2"}},gh=["data-k","disabled","onClick"],bh=["data-k","disabled","onClick"],yh=["data-k","onClick"],$h=["innerHTML"],xh=["innerHTML"],wh={class:"paper-ft"},kh=Wt({__name:"Report",props:{d:{},apis:{}},setup(t){const e=t,s={month:["kpi","water","emon","blame","ram","pareto","units","plan","caliber"],week:["kpi","frate","units","plan","caliber"],topic:["units","chain","ram","loop","caliber"],year:["kpi","water","emon","ram","loop","caliber"],blank:[]},n={kpi:"gen",water:"gen",emon:"gen",blame:"gen",ram:"rel",parts:"rel",attrib:"rel",pareto:"flt",quad:"flt",frate:"flt",units:"unit",chain:"unit",loop:"unit",plan:"end",caliber:"end",narr:"end"},l={kpi:"▦",water:"▤",emon:"▥",blame:"◧",ram:"◈",parts:"▤",attrib:"▬",pareto:"▮",quad:"◇",frate:"▪",units:"☰",chain:"⛓",loop:"✓",plan:"✎",caliber:"⚑",narr:"✍"},o={"qwen3:8b":"local","qwen3.8:27b":"local","qwen3:30b-a3b":"local","deepseek-r1:14b":"local","deepseek-r1:32b":"local","deepseek-chat":"cloud","kimi-fast":"cloud","qwen-plus":"cloud","deepseek-v4-pro":"cloud"},c=["gen","rel","flt","unit","end"],a=vs({canvas:[],aud:"in",need:"",model:"",models:null,compose:null,narr:null,out:""}),u=Y(()=>e.apis?.["/detail/api/ask_models"]??e.apis?.["/api/ask_models"]??null),_=Y(()=>u.value?u.value.models||{}:a.models),f=Y(()=>!!u.value?.offline),m=(q,O)=>i("mdl."+q+"."+O),v=q=>(m(q,"nm")||q)+(o[q]?" · "+i("mdl."+o[q]):"")+(m(q,"t")?" · "+m(q,"t"):""),$=q=>a.canvas.includes(q),I=Y(()=>a.compose===!0&&!!_.value&&Object.keys(_.value).length>0),G=Y(()=>{const q=_.value;return q===null?'<option value="">…</option>':Object.keys(q).length?Object.keys(q).map(O=>`<option value="${ft(O)}" ${O===U?"selected":""}>${ft(v(O))}</option>`).join(""):`<option value="">${f.value?i("ask.local_down"):i("ask.no_models")}</option>`}),Z=Y(()=>c.map(q=>({g:q,label:i("rpt.g."+q),items:Object.keys(n).filter(O=>n[O]===q).map(O=>({k:O,icon:l[O]||"",on:$(O),name:i("rpt.b."+O+".nm")}))}))),lt=Y(()=>""),H=q=>"",U=Y(()=>{const q=_.value;if(q===null)return a.model;const O=Object.keys(q);return!a.model||!O.includes(a.model)?O[0]||"":a.model}),S=Y(()=>i("rpt.need_hint")+(U.value?o[U.value]==="local"?i("rpt.local_note"):`<span style="color:var(--warning)">${i("rpt.cloud_note")}</span>`:"")),L=Y(()=>a.out?a.out:a.compose===!1?i("rpt.no_compose"):_.value&&!Object.keys(_.value).length?f.value?i("ask.local_down"):i("rpt.no_models"):""),ut=Y(()=>(String(e.d?.fus?.数据时点||"").match(/\d{4}-\d{2}-\d{2}/)||[""])[0]);function bt(q){a.canvas=(s[q]||[]).slice(),N()}function qt(q){const O=a.canvas.indexOf(q);O>=0?a.canvas.splice(O,1):a.canvas.push(q),B.value=i("rpt.hint_idle"),N()}function oe(q){B.value=i("rpt.b."+q+".nm")+" — "+i("rpt.b."+q+".d")}function Kt(){B.value=i("rpt.hint_idle")}function E(q,O){const z=a.canvas.indexOf(q);if(z<0)return;if(O==="del"){a.canvas.splice(z,1);return}const Q=z+(O==="up"?-1:1);if(Q<0||Q>=a.canvas.length)return;const nt=a.canvas[z];a.canvas[z]=a.canvas[Q],a.canvas[Q]=nt}function R(q){a.aud=q.target.value}function j(){try{window.print()}catch{}}function C(q){if(!a.canvas.length){try{window.alert(i("rpt.empty_canvas"))}catch{}return}const O=a.narr&&a.narr.text?a.narr.text:"",z="/api/rpt_export?fmt="+q+"&blocks="+encodeURIComponent(a.canvas.join(","))+"&aud="+a.aud+"&win="+encodeURIComponent(String(e.d&&e.d.win||""))+"&narr="+encodeURIComponent(O),Q=document.createElement("a");Q.href=z,Q.download="",document.body.appendChild(Q),Q.click(),Q.remove()}let K=!1;async function N(){if(!K){K=!0;try{const q=await fetch("/api/rpt_compose?probe=1");a.compose=!!(q&&q.ok)}catch{a.compose=!1}}}async function A(){const q=String(a.need||"");if(!q.trim()){tt.value=i("rpt.need_empty");return}X.value=!0,tt.value=i("rpt.composing");let O;try{const Q=a.model||"";O=await(await fetch("/api/rpt_compose?need="+encodeURIComponent(q)+"&canvas="+encodeURIComponent(a.canvas.join(","))+"&model="+encodeURIComponent(Q))).json()}catch(Q){tt.value=i("rpt.compose_fail",{e:Q?.message||String(Q)}),X.value=!1;return}if(X.value=!1,O.err){tt.value=String(O.err);return}a.narr={text:O.narrative,model:O.model,ungrounded:O.ungrounded||[]};const z=(O.blocks||[]).filter(Q=>n[Q]);z.length?a.canvas=(O.narrative?["narr"]:[]).concat(z):O.narrative&&!a.canvas.includes("narr")&&a.canvas.unshift("narr"),tt.value=i("rpt.composed",{n:z.length,narr:O.narrative?i("rpt.narr_plus"):"",m:O.model||"",s:O.secs})}function W(q){a.model=q.target.value}function J(q){a.need=q.target.value}const B=yt(i("rpt.hint_idle")),X=yt(!1),tt=yt("");return Ye(()=>{N()}),(q,O)=>(k(),T("section",null,[r("div",Nf,p(d(i)("rpt.eyebrow")),1),r("div",Bf,[r("div",Wf,[r("span",Kf,p(d(i)("rpt.presets")),1),(k(!0),T(it,null,gt(Object.keys(s),z=>(k(),T("button",{key:z,class:"pill","data-preset":z,onClick:Q=>bt(z)},p(d(i)("rpt.preset."+z)),9,Uf))),128)),O[2]||(O[2]=r("span",{style:{flex:"1"}},null,-1)),r("select",{id:"rptaud",onChange:R},[r("option",{value:"in",selected:a.aud==="in"},p(d(i)("rpt.aud_in")),9,Vf),r("option",{value:"up",selected:a.aud==="up"},p(d(i)("rpt.aud_up")),9,zf)],32),r("button",{class:"btn quiet",id:"rptprint",onClick:j},p(d(i)("rpt.print")),1),r("button",{class:"btn quiet","data-export":"docx",onClick:O[0]||(O[0]=z=>C("docx"))},p(d(i)("rpt.export_docx")),1),r("button",{class:"btn quiet","data-export":"xlsx",onClick:O[1]||(O[1]=z=>C("xlsx"))},p(d(i)("rpt.export_xlsx")),1),a.aud==="up"?(k(),T("span",Gf,p(d(i)("rpt.up_note")),1)):_t("",!0)]),r("div",Yf,[ct(p(d(i)("rpt.library"))+" ",1),r("span",Jf,p(d(i)("rpt.library_note",{n:a.canvas.length})),1)]),r("div",Xf,[(k(!0),T(it,null,gt(Z.value,z=>(k(),T(it,{key:z.g},[r("div",Zf,p(z.label),1),r("div",Qf,[(k(!0),T(it,null,gt(z.items,Q=>(k(),T("button",{key:Q.k,class:Zt(["pill",{on:Q.on}]),"data-block":Q.k,style:Dt({borderRadius:"7px",padding:"5px 11px",fontSize:"12.5px",opacity:Q.on?1:.8}),onClick:nt=>qt(Q.k),onMouseenter:nt=>oe(Q.k),onMouseleave:Kt},p(Q.icon)+" "+p(Q.name),47,th))),128))])],64))),128))]),r("div",eh,p(B.value),1),r("div",sh,[r("div",nh,[ct(p(d(i)("rpt.need_head"))+" ",1),r("span",{id:"rptmdlnote",style:{"font-weight":"400",color:"var(--muted)"},innerHTML:S.value},null,8,lh)]),r("div",oh,[r("input",{id:"rptneed",placeholder:d(ft)(d(i)("rpt.need_ph")),value:a.need,style:{flex:"1 1 300px","min-width":"220px"},onInput:J,onKeydown:Er(A,["enter"])},null,40,ah),r("select",{id:"rptmdl",innerHTML:G.value,onChange:W},null,40,ih),r("button",{class:"btn",id:"rptgo",disabled:!I.value,onClick:A},p(d(i)("rpt.compose")),9,rh)]),r("div",ch,p(tt.value||L.value),1)])]),a.canvas.length?(k(),T("div",ph,[r("div",fh,[r("div",null,[r("div",hh,p(d(i)("app.brand"))+" · "+p(d(i)("rpt.paper_title")),1),r("div",mh,p(d(i)("rpt.paper_sub",{win:d(Oe)(t.d.win),n:(t.d.kpi||{}).全场||38}))+p(a.aud==="up"?" | "+d(i)("rpt.up_tag"):""),1)]),r("div",_h,p(d(i)("rpt.chapters",{n:a.canvas.length})),1)]),(k(!0),T(it,null,gt(a.canvas,(z,Q)=>(k(),T(it,{key:z},[n[z]?(k(),T("div",vh,[r("button",{class:"pill","data-mv":"up","data-k":z,disabled:Q===0,style:{padding:"1px 8px","font-size":"11px",opacity:".7"},onClick:nt=>E(z,"up")},"↑",8,gh),r("button",{class:"pill","data-mv":"down","data-k":z,disabled:Q===a.canvas.length-1,style:{padding:"1px 8px","font-size":"11px",opacity:".7"},onClick:nt=>E(z,"down")},"↓",8,bh),r("button",{class:"pill","data-mv":"del","data-k":z,style:{padding:"1px 8px","font-size":"11px",opacity:".7"},onClick:nt=>E(z,"del")},"×",8,yh)])):_t("",!0),n[z]?(k(),T("div",{key:1,innerHTML:H()},null,8,$h)):_t("",!0)],64))),128)),r("div",{innerHTML:lt.value},null,8,xh),r("div",wh,[r("span",null,p(d(i)("rpt.foot_src"))+p(ut.value?" | "+d(i)("rpt.foot_asof",{d:ut.value}):""),1),r("span",null,p(d(i)("rpt.foot_trace"))+p(a.aud==="up"?" | "+d(i)("rpt.foot_deid"):""),1)])])):(k(),T("div",uh,[r("div",dh,p(d(i)("rpt.preview_empty")),1)]))]))}}),Mh={class:"kpis"},Sh=["title"],Th=["innerHTML"],Ch={key:1},Eh={key:0},Fh={class:"sechead"},Ah={class:"meta"},Oh={class:"meta"},jh={key:0,class:"card mb",style:{"margin-bottom":"10px"}},qh={class:"small",style:{color:"var(--warning)"}},Dh={class:"small muted"},Ph={class:"cards"},Hh=["id"],Ih={class:"head"},Lh=["href"],Rh={class:"sys"},Nh={class:"evidence-detail"},Bh={class:"why"},Wh={class:"evid"},Kh=["title"],Uh={key:1,class:"rv"},Vh={key:0,class:"caveat"},zh={class:"sechead"},Gh={class:"meta"},Yh={class:"legend"},Jh={class:"cells"},Xh=["data-u","title"],Zh={key:1,class:"quiet",style:{padding:"10px"}},Qh={class:"nums"},tm={class:"quiet"},em={class:"sechead"},sm={class:"meta"},nm={class:"systems"},lm={class:"t"},om=["href"],am={class:"bar"},im={class:"cnt"},rm=Wt({__name:"Overview",props:{d:{}},setup(t){const e=t,s=Y(()=>e.d?.fus||{}),n=Y(()=>e.d?.m8?.mtbf||{}),l=Y(()=>e.d?.control||{}),o=Y(()=>{const H={};for(const U of l.value.states||[])H[U.k]=U.loss;return H}),c=Y(()=>{const H=l.value,U=i("kpi.loss",{win:Oe(e.d?.win)})+(o.value["停机(调度令)"]!=null?` · ${i("kpi.loss_dispatch",{n:Tt(o.value["停机(调度令)"])})}`:"");return[{v:Tt(H.avail,1),u:"%",l:i("kpi.avail",{win:Oe(e.d?.win)}),k:H.avail>=95?"ok":"warn",ti:""},{v:Tt(n.value.停机总时长h),u:"h",l:i("kpi.downtime",{n:Tt(n.value.停机事件数)}),k:"warn",ti:""},{v:Tt(n.value.MTBF_h),u:"h",l:i("kpi.mtbo"),k:"",ti:""},{v:Tt(o.value.停机),u:"MWh",l:U,k:"",ti:""},{v:Tt(o.value["限电·绑定"]),u:"MWh",l:i("kpi.curtail"),k:"",ti:""},{vRaw:`${Tt(e.d?.kpi?.报警台)} <small>/ ${Tt(e.d?.kpi?.全场)}</small>`,u:"",l:i("kpi.alarm_units"),k:e.d?.kpi?.报警台?"warn":"ok",ti:i("kpi.alarm_units.hint"),vHtml:!0}]}),a=Y(()=>{const H={};for(const U of e.d?.watch||[])H[U.t]=U.why;return H}),u=Y(()=>((s.value.链盘||{}).rows||[]).filter(H=>H.lvl==="bad"||H.lvl==="warn"));function _(H){const U=(a.value[H.t]||"").trim();if(U)return U;const S=ql[H.stuck]||String(H.stuck||"").toLowerCase(),L=i(S==="evidence"?"step.site_records":"step."+(S||"evidence"));return i("ov.basis_fusion",{part:H.part||"—",done:H.done==null?"—":H.done,n:(H.steps||[]).length||"—",stuck:H.stuck?L:i("ov.all_steps_done"),srcs:(H.srcs||[]).join(" / ")||i("ov.no_srcs")})}function f(H){if(!H.stuck)return"";const U=ql[H.stuck]||String(H.stuck||"").toLowerCase(),S=i(U==="evidence"?"step.site_records":"step."+(U||"evidence"));return i("step.stuck_at",{step:S})}const m=[["危险","critical"],["报警","warning"],["不可判","unknown"],["良好","good"],["优秀","excellent"]],v=Y(()=>{const H=e.d?.sysdist||{};return Gn.map(U=>{const S=H[U]||{},L=Object.values(S).reduce((ut,bt)=>ut+bt,0)||1;return{name:xe(U),slug:Rs(U),dist:S,n:L,seg:m.filter(([ut])=>S[ut]).map(([ut,bt])=>({k:ut,v:bt}))}})}),$=Y(()=>s.value.矩阵||[]),I=Y(()=>new Set(u.value.map(H=>H.t))),G={定论:"confirmed","准定论·预警":"near","候选·新发":"candidate_new",候选:"candidate","候选·记基线":"candidate_baseline",参考:"reference",INSUFFICIENT:"insufficient",正常:"normal",撤回:"withdrawn"},Z={candidate_new:"candidate",candidate_baseline:"candidate",normal:"reference"},lt=H=>{const U=G[String(H??"")];return U?Z[U]||U:""};return(H,U)=>(k(),T(it,null,[r("section",null,[r("div",Mh,[(k(!0),T(it,null,gt(c.value,(S,L)=>(k(),T("div",{key:L,class:Zt(["kpi",S.k]),title:S.ti||void 0},[S.vHtml?(k(),T("b",{key:0,innerHTML:S.vRaw},null,8,Th)):(k(),T("b",Ch,[ct(p(S.v),1),S.u?(k(),T("small",Eh,p(S.u),1)):_t("",!0)])),r("span",null,p(S.l),1)],10,Sh))),128))])]),r("section",null,[r("div",Fh,[r("h2",null,p(d(i)("ov.attention")),1),r("span",Ah,p(d(i)("ov.attention_n",{n:u.value.length})),1),r("span",Oh,p(d(i)("ov.ranked_by")),1)]),s.value.gap?(k(),T("div",jh,[r("p",qh,p(s.value.gap),1),r("p",Dh,p(d(i)("ov.fus_gap_hint")),1)])):_t("",!0),r("div",Ph,[(k(!0),T(it,null,gt(u.value,S=>(k(),T("div",{key:S.t,class:"card",id:`u-${S.t}`,style:Dt(`--sev:var(--${d(Hl)[d(Ns)(S.ostate)||(S.lvl==="bad"?"bad":"warn")]})`)},[r("div",Ih,[r("a",{class:"unit",href:`/turbine/${S.t}`},p(d(At)(S.t)),9,Lh),r("span",Rh,p(S.part||""),1),r("span",{class:Zt(["chip",d(Ns)(S.ostate)||(S.lvl==="bad"?"bad":"warn")])},p(d(Dl)(S.ostate||(S.lvl==="bad"?"危险":"报警"))),3)]),r("details",Nh,[r("summary",null,p(d(i)("ov.evidence")),1),r("div",Bh,p(_(S)),1)]),r("div",Wh,[S.estate?(k(),T("span",{key:0,class:Zt(["tier",lt(S.estate)]),title:d(i)("tier."+(G[S.estate]||"unknown"))},p(d(Dl)(S.estate)),11,Kh)):_t("",!0),S.srcs&&S.srcs.length?(k(),T("span",Uh,p(S.srcs.length)+" sources",1)):_t("",!0)]),f(S)||S.next?(k(),T("div",Vh,[r("b",null,p(d(i)("ov.caveat")),1),ct(p(f(S))+p(f(S)&&S.next?" — ":"")+p(S.next||""),1)])):_t("",!0)],12,Hh))),128))])]),r("section",null,[r("div",zh,[r("h2",null,p(d(i)("ov.strip")),1),r("span",Gh,p(d(i)("ov.strip_hint")),1),r("div",Yh,[(k(),T(it,null,gt(["bad","warn","unk","ok","ex"],S=>r("span",{key:S},[r("i",{style:Dt(`background:var(--${d(Hl)[S]})`)},null,4),ct(p(d(i)(d(Fn)(S))),1)])),64))])]),r("div",{class:"strip",style:Dt(`--n:${$.value.length||38}`)},[r("div",Jh,[$.value.length?(k(!0),T(it,{key:0},gt($.value,S=>(k(),T("div",{key:S.turbine,class:Zt(["cell",[d(Pl)(S),I.value.has(S.turbine)?"hot":""]]),"data-u":S.turbine,title:`${d(At)(S.turbine)} ${d(i)(d(Fn)(d(Pl)(S)))}`},null,10,Xh))),128)):(k(),T("div",Zh,p(s.value.gap||d(i)("ov.fus_gap_hint")),1))]),r("div",Qh,[(k(!0),T(it,null,gt($.value,S=>(k(),T("span",{key:`n-${S.turbine}`,class:Zt(I.value.has(S.turbine)?"hot":"")},p(d(At)(S.turbine).replace("#","")),3))),128))]),r("div",tm,p(u.value.length?d(i)("ov.quiet",{n:Math.max(0,($.value.length||38)-u.value.length)}):d(i)("ov.quiet_all",{n:$.value.length||38})),1)],4)]),r("section",null,[r("div",em,[r("h2",null,p(d(i)("ov.systems")),1),r("span",sm,p(d(i)("ov.systems_hint")),1)]),r("div",nm,[(k(!0),T(it,null,gt(v.value,S=>(k(),T("div",{key:S.name,class:"sysc"},[r("div",lm,[r("b",null,p(S.name),1),r("a",{href:`#tab=component&sys=${encodeURIComponent(S.slug)}`},p(d(i)("ui.open")),9,om)]),r("div",am,[(k(!0),T(it,null,gt(S.seg,L=>(k(),T("i",{key:L.k,style:Dt(`width:${(S.dist[L.k]/S.n*100).toFixed(1)}%;background:var(--${L.v})`)},null,4))),128))]),r("div",im,[(k(!0),T(it,null,gt(S.seg,L=>(k(),T("span",{key:`c-${L.k}`},[r("i",{style:Dt(`background:var(--${L.v})`)},null,4),ct(p(S.dist[L.k]),1)]))),128))])]))),128))])])],64))}}),cm={class:"page-head"},um={key:12,class:"card"},dm={class:"hint"},pm=Wt({__name:"Workbench",props:{d:{},tab:{},sys:{},sub:{},cms:{},curves:{},apis:{},win:{}},emits:["tab","sub","win","reselect"],setup(t,{emit:e}){const s=t,n=e,l=yt(""),o=yt(""),c=yt("");Re(()=>s.win,u=>{l.value=u||"";const _=String(u||"").split("~");_.length===2&&(o.value=_[0],c.value=_[1])},{immediate:!0});const a=Y(()=>!En.includes(s.tab));return(u,_)=>(k(),T(it,null,[r("div",cm,[r("h1",null,p(d(i)("tab."+t.tab)),1)]),t.tab==="overview"?(k(),Lt(rm,{key:0,d:t.d},null,8,["d"])):t.tab==="energy"?(k(),Lt(rd,{key:1,d:t.d},null,8,["d"])):t.tab==="component"?(k(),Lt(bu,{key:2,d:t.d,sys:t.sys},null,8,["d","sys"])):t.tab==="fault"?(k(),Lt(Yd,{key:3,d:t.d},null,8,["d"])):t.tab==="vibration"?(k(),Lt(tp,{key:4,d:t.d,sub:t.sub,cms:t.cms,onSub:_[0]||(_[0]=f=>n("sub",f))},null,8,["d","sub","cms"])):t.tab==="generation"?(k(),Lt(Fp,{key:5,d:t.d,curves:t.curves,pending:!!t.d.m9_pending},null,8,["d","curves","pending"])):t.tab==="decision"?(k(),Lt(zp,{key:6,d:t.d,apis:t.apis},null,8,["d","apis"])):t.tab==="assistant"?(k(),Lt(ff,{key:7,d:t.d},null,8,["d"])):t.tab==="system"?(k(),Lt(Rf,{key:8,apis:t.apis},null,8,["apis"])):t.tab==="report"?(k(),Lt(kh,{key:9,d:t.d,apis:t.apis},null,8,["d","apis"])):t.tab==="documents"?(k(),Lt(oc,{key:10})):t.tab==="portal_src"?(k(),Lt(Jo,{key:11})):a.value?(k(),T("section",um,[r("h2",null,[ct(p(d(i)("tab."+t.tab))+" ",1),_[1]||(_[1]=r("small",null,"(本页签尚未迁移到 Vue)",-1))]),r("p",dm,[_[2]||(_[2]=ct(" 迁移纪律:页签逐个搬,每搬一个就用 ",-1)),_[3]||(_[3]=r("code",null,"tools/render_parity.mjs",-1)),_[4]||(_[4]=ct(" 与重构前页面 (现网 ",-1)),_[5]||(_[5]=r("code",null,"/detail/v2",-1)),ct(")对拍文案/数值/类名序列,**通过后**才删对应的 Python 前端源码。 当前已迁移:"+p(d(En).join("、"))+"。 ",1)])])):_t("",!0)],64))}}),fm=Yo(pm,[["__scopeId","data-v-401b393b"]]),hm={key:1,class:"wrap"},mm={class:"top"},_m={class:"right"},vm=["title"],gm=["title"],bm={class:"small muted",for:"win"},ym=["aria-label","value"],$m=["label"],xm=["value"],wm=["label"],km=["value"],Mm=["label"],Sm=["value"],Tm=["title"],Cm=["aria-label"],Em=["aria-label"],Fm={class:"tabs",id:"tabs"},Am=["onClick"],Om={key:0,class:"todo"},jm={key:0,id:"root"},qm={key:0,class:"hint",style:{padding:"0 18px"}},Dm={key:1,class:"hint",style:{padding:"0 18px",color:"var(--bad)"}},Pm={key:2,class:"card"},Hm=Wt({__name:"App",setup(t){const e=location.hash.replace("#",""),s=(e.match(/^tab=([a-z_]+)/)||[])[1]||"",n=(e.match(/^tab=[a-z_]+:([a-z_]+)/)||[])[1]||"",l=/\/detail\/v2\/?$/.test(location.pathname),o=yt(l||e==="workbench"||s?"workbench":"portal");function c(R){o.value=R;try{location.hash=R==="portal"?"":R}catch{}}const a=yt("overview");s&&(a.value=s);const u=yt(null);n&&(u.value=n);const _=yt(null),f=yt(""),m=[["近30日","win.30d"],["近90日","win.90d"],["2026年","win.2026"],["2026H1","win.2026H1"],["2025H2","win.2025H2"],["全程","win.all"]],v={近30日:"30d",近90日:"90d","2026年":"2026","2026H1":"2026H1","2025H2":"2025H2",全程:"all"},$=Y(()=>f.value||""),I=Y(()=>/^\d{4}-\d{2}-\d{2}~\d{4}-\d{2}-\d{2}$/.test($.value)),G=Y(()=>((_.value||{}).all_months||[]).slice().reverse()),Z=yt(""),lt=yt("");function H(R){const j=R.target.value;f.value=v[j]||j}function U(){Z.value&&lt.value&&(f.value=Z.value+"~"+lt.value)}const S=yt(!1),L=yt(""),ut={system:["/api/maint_survey"],decision:["/api/ask_models"],report:["/api/ask_models"],generation:["/api/curves"]},bt=yt({}),qt=yt(null);async function oe(R){const j=ut[R]||[];for(const C of j){if(C==="/api/curves"){if(qt.value)continue}else if(bt.value[C]!==void 0)continue;try{const N=await(await fetch(C)).json();C==="/api/curves"?qt.value=N:bt.value={...bt.value,[C]:N}}catch(K){bt.value={...bt.value,[C]:{error:String(K?.message||K)}}}}}Re(a,R=>{o.value==="workbench"&&oe(R)},{immediate:!0});async function Kt(){S.value=!0,L.value="";const R=f.value?`?win=${encodeURIComponent(f.value)}`:"",j=await Go("fleet",{method:"GET"});if(R)try{const C=await fetch("/api/fleet"+R);_.value=await C.json()}catch(C){L.value=C instanceof Error?C.message:String(C)}else j.ok?(_.value=j.data,_.value?.win&&(f.value=_.value.win)):L.value=j.error||`HTTP ${j.status}`;S.value=!1}Re(f,R=>{R&&R!==_.value?.win&&Kt()});function E(){a.value="overview",u.value=null,Kt()}return Ye(()=>{Kt(),window.addEventListener("hashchange",()=>{const R=location.hash.replace("#",""),j=(R.match(/^tab=([a-z_]+)/)||[])[1]||"";R==="workbench"||j?(o.value="workbench",j&&(a.value=j)):R||(o.value="portal")})}),(R,j)=>o.value==="portal"?(k(),Lt(Jo,{key:0})):(k(),T("div",hm,[r("header",mm,[j[7]||(j[7]=r("span",{class:"mark"},"≋",-1)),j[8]||(j[8]=r("span",{class:"brand"},[ct("观澜"),r("small",null,"WIND ASSET INTELLIGENCE")],-1)),r("div",_m,[r("a",{class:"back-portal",href:"#",title:d(i)("ui.back_portal"),onClick:j[0]||(j[0]=Tr(C=>c("portal"),["prevent"]))},p(d(i)("ui.back_portal")),9,vm),r("button",{type:"button",class:"reselect",title:d(i)("ui.reselect"),onClick:E},p(d(i)("ui.reselect")),9,gm),r("label",bm,p(d(i)("win.label")),1),r("select",{id:"win","aria-label":d(i)("win.label"),value:$.value,onChange:H},[r("optgroup",{label:d(i)("win.presets")},[(k(),T(it,null,gt(m,([C,K])=>r("option",{key:C,value:C},p(d(i)(K)),9,xm)),64))],8,$m),I.value?(k(),T("optgroup",{key:0,label:d(i)("win.custom")},[r("option",{value:$.value},p(d(i)("win.custom_sel",{a:$.value.split("~")[0],b:$.value.split("~")[1]})),9,km)],8,wm)):_t("",!0),G.value.length?(k(),T("optgroup",{key:1,label:d(i)("win.months")},[(k(!0),T(it,null,gt(G.value,C=>(k(),T("option",{key:C,value:C},p(C),9,Sm))),128))],8,Mm)):_t("",!0)],40,ym),r("span",{class:"winrng",title:d(i)("win.custom_hint")},[wn(r("input",{type:"date","aria-label":d(i)("win.from"),"onUpdate:modelValue":j[1]||(j[1]=C=>Z.value=C)},null,8,Cm),[[Al,Z.value]]),j[6]||(j[6]=r("span",{class:"muted"},"~",-1)),wn(r("input",{type:"date","aria-label":d(i)("win.to"),"onUpdate:modelValue":j[2]||(j[2]=C=>lt.value=C)},null,8,Em),[[Al,lt.value]]),r("button",{type:"button",onClick:U},p(d(i)("win.apply")),1)],8,Tm)])]),r("nav",Fm,[(k(!0),T(it,null,gt(d(Nr),C=>(k(),T("button",{key:C,class:Zt({on:C===a.value}),onClick:K=>a.value=C},[ct(p(d(i)("tab."+C)),1),d(En).includes(C)?_t("",!0):(k(),T("sup",Om,"迁移中"))],10,Am))),128))]),o.value!=="portal"?(k(),T("main",jm,[o.value==="workbench"?(k(),T(it,{key:0},[S.value?(k(),T("p",qm,"取数中(/api/fleet)…")):L.value?(k(),T("p",Dm,"取数失败:"+p(L.value),1)):_.value?(k(),Lt(fm,{key:2,d:_.value,tab:a.value,sub:u.value,onTab:j[3]||(j[3]=C=>a.value=C),onSub:j[4]||(j[4]=C=>u.value=C),win:f.value,onWin:j[5]||(j[5]=C=>{f.value=C}),onReselect:E,apis:bt.value,curves:qt.value},null,8,["d","tab","sub","win","apis","curves"])):_t("",!0)],64)):o.value==="smoke"?(k(),Lt(Lr,{key:1})):(k(),T("section",Pm,[...j[9]||(j[9]=[Wi("<h2>关于本前端</h2><ul><li>技术栈:<b>Vue 3 + Vite + TypeScript + Node.js</b>(用户令 2026-09-29)</li><li>与后端交互:只走网关一个源站,路径与形状以 <code>app_backEnd/app_backEnd_guanlan/contract/http_api_v1.json</code> 冻契约为准</li><li>数据来源:与重构前 <code>/detail/v2</code> 同一个接口 <code>/api/fleet?win=</code></li><li>迁移纪律:页签逐个搬,与重构前页面对拍通过后才删对应 Python 源码</li></ul>",2)])]))])):_t("",!0),j[10]||(j[10]=r("footer",{id:"foot",class:"small muted",style:{"margin-top":"36px"}},null,-1))]))}});Or(Hm).mount("#app");