index-CtT_JSbo.js 236 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 a of l)if(a.type==="childList")for(const c of a.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function s(l){const a={};return l.integrity&&(a.integrity=l.integrity),l.referrerPolicy&&(a.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?a.credentials="include":l.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(l){if(l.ep)return;l.ep=!0;const a=s(l);fetch(l.href,a)}})();/**
  2. * @vue/shared v3.5.43
  3. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  4. * @license MIT
  5. **/function jn(t){const e=Object.create(null);for(const s of t.split(","))e[s]=1;return s=>s in e}const Ft={},Re=[],he=()=>{},Bl=()=>!1,Bs=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),Ws=t=>t.startsWith("onUpdate:"),Ht=Object.assign,qn=(t,e)=>{const s=t.indexOf(e);s>-1&&t.splice(s,1)},so=Object.prototype.hasOwnProperty,Mt=(t,e)=>so.call(t,e),mt=Array.isArray,Oe=t=>vs(t)==="[object Map]",Os=t=>vs(t)==="[object Set]",sl=t=>vs(t)==="[object Date]",vt=t=>typeof t=="function",Dt=t=>typeof t=="string",_e=t=>typeof t=="symbol",Ct=t=>t!==null&&typeof t=="object",Wl=t=>(Ct(t)||vt(t))&&vt(t.then)&&vt(t.catch),Kl=Object.prototype.toString,vs=t=>Kl.call(t),no=t=>vs(t).slice(8,-1),Ul=t=>vs(t)==="[object Object]",Dn=t=>Dt(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,ns=jn(",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)))},lo=/-\w/g,Yt=Ks(t=>t.replace(lo,e=>e.slice(1).toUpperCase())),ao=/\B([A-Z])/g,qe=Ks(t=>t.replace(ao,"-$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),Ts=(t,...e)=>{for(let s=0;s<t.length;s++)t[s](...e)},Vl=(t,e,s,n=!1)=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:n,value:s})},Pn=t=>{const e=parseFloat(t);return isNaN(e)?t:e};let nl;const Vs=()=>nl||(nl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Lt(t){if(mt(t)){const e={};for(let s=0;s<t.length;s++){const n=t[s],l=Dt(n)?co(n):Lt(n);if(l)for(const a in l)e[a]=l[a]}return e}else if(Dt(t)||Ct(t))return t}const oo=/;(?![^(]*\))/g,ro=/:([^]+)/,io=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function co(t){const e={};return t.replace(io,s=>s.startsWith("/*")?"":s).split(oo).forEach(s=>{if(s){const n=s.split(ro);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Qt(t){let e="";if(Dt(t))e=t;else if(mt(t))for(let s=0;s<t.length;s++){const n=Qt(t[s]);n&&(e+=n+" ")}else if(Ct(t))for(const s in t)t[s]&&(e+=s+" ");return e.trim()}const uo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",po=jn(uo);function zl(t){return!!t||t===""}function fo(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 ll(t,e,s){if(t.size!==e.size)return!1;const n=Array.from(e),l=new Uint8Array(n.length);for(const a of t){let c=-1;for(let o=0;o<n.length;o++)if(!l[o]&&zs(a,n[o],s)){c=o;break}if(c<0)return!1;l[c]=1}return!0}function ho(t,e,s){let n=Oe(t),l=Oe(e);if(n||l||(n=Os(t),l=Os(e),n||l))return n&&l?ll(t,e,s):!1;const a=Object.keys(t).length,c=Object.keys(e).length;if(a!==c)return!1;for(const o in t){const u=t.hasOwnProperty(o),_=e.hasOwnProperty(o);if(u&&!_||!u&&_||!zs(t[o],e[o],s))return!1}return String(t)===String(e)}function al(t,e,s,n){s||(s=[new Map,new Map]);const[l,a]=s;if(l.has(t)||a.has(e))return l.get(t)===e&&a.get(e)===t;l.set(t,e),a.set(e,t);const c=n(t,e,s);return l.delete(t),a.delete(e),c}function zs(t,e,s){if(t===e)return!0;let n=sl(t),l=sl(e);return n||l?n&&l?t.getTime()===e.getTime():!1:(n=_e(t),l=_e(e),n||l?t===e:(n=mt(t),l=mt(e),n||l?n&&l?al(t,e,s,fo):!1:(n=Ct(t),l=Ct(e),n||l?!n||!l?!1:al(t,e,s,ho):String(t)===String(e))))}const Gl=t=>!!(t&&t.__v_isRef===!0),p=t=>Dt(t)?t:t==null?"":mt(t)||Ct(t)&&(t.toString===Kl||!vt(t.toString))?Gl(t)?p(t.value):JSON.stringify(t,Yl,2):String(t),Yl=(t,e)=>Gl(e)?Yl(t,e.value):Oe(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((s,[n,l],a)=>(s[sn(n,a)+" =>"]=l,s),{})}:Os(e)?{[`Set(${e.size})`]:[...e.values()].map(s=>sn(s))}:_e(e)?sn(e):Ct(e)&&!mt(e)&&!Ul(e)?String(e):e,sn=(t,e="")=>{var s;return _e(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 It;class mo{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&&It&&(It.active?(this.parent=It,this.index=(It.scopes||(It.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=It;try{return It=this,e()}finally{It=s}}}on(){++this._on===1&&(this.prevScope=It,It=this)}off(){if(this._on>0&&--this._on===0){if(It===this)It=this.prevScope;else{let e=It;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 _o(){return It}let Ot;const nn=new WeakSet;class Jl{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,It&&(It.active?It.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||Zl(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ol(this),Ql(this);const e=Ot,s=le;Ot=this,le=!0;try{return this.fn()}finally{ta(this),Ot=e,le=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,ol(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 Xl=0,ls,as;function Zl(t,e=!1){if(t.flags|=8,e){t.next=as,as=t;return}t.next=ls,ls=t}function Ln(){Xl++}function Rn(){if(--Xl>0)return;if(as){let e=as;for(as=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 Ql(t){for(let e=t.deps;e;e=e.nextDep)e.version=-1,e.prevActiveLink=e.dep.activeLink,e.dep.activeLink=e}function ta(t){let e,s=t.depsTail,n=s;for(;n;){const l=n.prevDep;n.version===-1?(n===s&&(s=l),In(n),vo(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&&(ea(e.dep.computed)||e.dep.version!==e.version))return!0;return!!t._dirty}function ea(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=Ot,n=le;Ot=t,le=!0;try{Ql(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{Ot=s,le=n,ta(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 a=s.computed.deps;a;a=a.nextDep)In(a,!0)}!e&&!--s.sc&&s.map&&s.map.delete(s.key)}function vo(t){const{prevDep:e,nextDep:s}=t;e&&(e.nextDep=s,t.prevDep=void 0),s&&(s.prevDep=e,t.nextDep=void 0)}let le=!0;const sa=[];function we(){sa.push(le),le=!1}function ke(){const t=sa.pop();le=t===void 0?!0:t}function ol(t){const{cleanup:e}=t;if(t.cleanup=void 0,e){const s=Ot;Ot=void 0;try{e()}finally{Ot=s}}}let cs=0;class go{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 Hn{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(!Ot||!le||Ot===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==Ot)s=this.activeLink=new go(Ot,this),Ot.deps?(s.prevDep=Ot.depsTail,Ot.depsTail.nextDep=s,Ot.depsTail=s):Ot.deps=Ot.depsTail=s,na(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=Ot.depsTail,s.nextDep=void 0,Ot.depsTail.nextDep=s,Ot.depsTail=s,Ot.deps===s&&(Ot.deps=n)}return s}trigger(e){this.version++,cs++,this.notify(e)}notify(e){Ln();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{Rn()}}}function na(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)na(n)}const s=t.dep.subs;s!==t&&(t.prevSub=s,s&&(s.nextSub=t)),t.dep.subs=t}}const bn=new WeakMap,Ie=Symbol(""),$n=Symbol(""),us=Symbol("");function Bt(t,e,s){if(le&&Ot){let n=bn.get(t);n||bn.set(t,n=new Map);let l=n.get(s);l||(n.set(s,l=new Hn),l.map=n,l.key=s),l.track()}}function ye(t,e,s,n,l,a){const c=bn.get(t);if(!c){cs++;return}const o=u=>{u&&u.trigger()};if(Ln(),e==="clear")c.forEach(o);else{const u=mt(t),_=u&&Dn(s);if(u&&s==="length"){const h=Number(n);c.forEach((m,v)=>{(v==="length"||v===us||!_e(v)&&v>=h)&&o(m)})}else switch((s!==void 0||c.has(void 0))&&o(c.get(s)),_&&o(c.get(us)),e){case"add":u?_&&o(c.get("length")):(o(c.get(Ie)),Oe(t)&&o(c.get($n)));break;case"delete":u||(o(c.get(Ie)),Oe(t)&&o(c.get($n)));break;case"set":Oe(t)&&o(c.get(Ie));break}}Rn()}function Ke(t){const e=kt(t);return e===t||(Bt(e,"iterate",us),se(t))?e:ve(t)?Ae(t)?e.map(s=>je(ne(s))):e.map(je):e.map(ne)}function Gs(t){return Bt(t=kt(t),"iterate",us),t}function de(t,e){return ve(t)?je(Ae(t)?ne(e):e):ne(e)}const bo={__proto__:null,[Symbol.iterator](){return ln(this,Symbol.iterator,t=>de(this,t))},concat(...t){return Ke(this).concat(...t.map(e=>mt(e)?Ke(e):e))},entries(){return ln(this,"entries",t=>(t[1]=de(this,t[1]),t))},every(t,e){return ge(this,"every",t,e,void 0,arguments)},filter(t,e){return ge(this,"filter",t,e,s=>s.map(n=>de(this,n)),arguments)},find(t,e){return ge(this,"find",t,e,s=>de(this,s),arguments)},findIndex(t,e){return ge(this,"findIndex",t,e,void 0,arguments)},findLast(t,e){return ge(this,"findLast",t,e,s=>de(this,s),arguments)},findLastIndex(t,e){return ge(this,"findLastIndex",t,e,void 0,arguments)},forEach(t,e){return ge(this,"forEach",t,e,void 0,arguments)},includes(...t){return an(this,"includes",t)},indexOf(...t){return an(this,"indexOf",t)},join(t){return Ke(this).join(t)},lastIndexOf(...t){return an(this,"lastIndexOf",t)},map(t,e){return ge(this,"map",t,e,void 0,arguments)},pop(){return Xe(this,"pop")},push(...t){return Xe(this,"push",t)},reduce(t,...e){return rl(this,"reduce",t,e)},reduceRight(t,...e){return rl(this,"reduceRight",t,e)},shift(){return Xe(this,"shift")},some(t,e){return ge(this,"some",t,e,void 0,arguments)},splice(...t){return Xe(this,"splice",t)},toReversed(){return Ke(this).toReversed()},toSorted(t){return Ke(this).toSorted(t)},toSpliced(...t){return Ke(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&&!se(t)&&(l._next=l.next,l.next=()=>{const a=l._next();return a.done||(a.value=s(a.value)),a}),l}const $o=Array.prototype;function ge(t,e,s,n,l,a){const c=Gs(t),o=c!==t&&!se(t),u=c[e];if(u!==$o[e]){const m=u.apply(t,a);return o?ne(m):m}let _=s;c!==t&&(o?_=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 h=u.call(c,_,n);return o&&l?l(h):h}function rl(t,e,s,n){const l=Gs(t),a=l!==t&&!se(t);let c=s,o=!1;l!==t&&(a?(o=n.length===0,c=function(_,h,m){return o&&(o=!1,_=de(t,_)),s.call(this,_,de(t,h),m,t)}):s.length>3&&(c=function(_,h,m){return s.call(this,_,h,m,t)}));const u=l[e](c,...n);return o?de(t,u):u}function an(t,e,s){const n=kt(t);Bt(n,"iterate",us);const l=n[e](...s);return(l===-1||l===!1)&&Wn(s[0])?(s[0]=kt(s[0]),n[e](...s)):l}function Xe(t,e,s=[]){we(),Ln();const n=kt(t)[e].apply(t,s);return Rn(),ke(),n}const yo=jn("__proto__,__v_isRef,__isVue"),la=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(_e));function xo(t){_e(t)||(t=String(t));const e=kt(this);return Bt(e,"has",t),e.hasOwnProperty(t)}class aa{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,a=this._isShallow;if(s==="__v_isReactive")return!l;if(s==="__v_isReadonly")return l;if(s==="__v_isShallow")return a;if(s==="__v_raw")return n===(l?a?Ao:ca:a?ia:ra).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=mt(e);if(!l){let u;if(c&&(u=bo[s]))return u;if(s==="hasOwnProperty")return xo}const o=Reflect.get(e,s,Kt(e)?e:n);if((_e(s)?la.has(s):yo(s))||(l||Bt(e,"get",s),a))return o;if(Kt(o)){const u=c&&Dn(s)?o:o.value;return l&&Ct(u)?xn(u):u}return Ct(o)?l?xn(o):gs(o):o}}class oa extends aa{constructor(e=!1){super(!1,e)}set(e,s,n,l){let a=e[s];const c=mt(e)&&Dn(s);if(!this._isShallow){const _=ve(a);if(!se(n)&&!ve(n)&&(a=kt(a),n=kt(n)),!c&&Kt(a)&&!Kt(n))return _||(a.value=n),!0}const o=c?Number(s)<e.length:Mt(e,s),u=Reflect.set(e,s,n,Kt(e)?e:l);return e===kt(l)&&u&&(o?fe(n,a)&&ye(e,"set",s,n):ye(e,"add",s,n)),u}deleteProperty(e,s){const n=Mt(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(!_e(s)||!la.has(s))&&Bt(e,"has",s),n}ownKeys(e){return Bt(e,"iterate",mt(e)?"length":Ie),Reflect.ownKeys(e)}}class wo extends aa{constructor(e=!1){super(!0,e)}set(e,s){return!0}deleteProperty(e,s){return!0}}const ko=new oa,Mo=new wo,So=new oa(!0);const yn=t=>t,ys=t=>Reflect.getPrototypeOf(t);function To(t,e,s){return function(...n){const l=this.__v_raw,a=kt(l),c=Oe(a),o=t==="entries"||t===Symbol.iterator&&c,u=t==="keys"&&c,_=l[t](...n),h=s?yn:e?je:ne;return!e&&Bt(a,"iterate",u?$n:Ie),Ht(Object.create(_),{next(){const{value:m,done:v}=_.next();return v?{value:m,done:v}:{value:o?[h(m[0]),h(m[1])]:h(m),done:v}}})}}function xs(t){return function(...e){return t==="delete"?!1:t==="clear"?void 0:this}}function Co(t,e){const s={get(l){const a=this.__v_raw,c=kt(a),o=kt(l);t||(fe(l,o)&&Bt(c,"get",l),Bt(c,"get",o));const{has:u}=ys(c),_=e?yn:t?je:ne;if(u.call(c,l))return _(a.get(l));if(u.call(c,o))return _(a.get(o));a!==c&&a.get(l)},get size(){const l=this.__v_raw;return!t&&Bt(kt(l),"iterate",Ie),l.size},has(l){const a=this.__v_raw,c=kt(a),o=kt(l);return t||(fe(l,o)&&Bt(c,"has",l),Bt(c,"has",o)),l===o?a.has(l):a.has(l)||a.has(o)},forEach(l,a){const c=this,o=c.__v_raw,u=kt(o),_=e?yn:t?je:ne;return!t&&Bt(u,"iterate",Ie),o.forEach((h,m)=>l.call(a,_(h),_(m),c))}};return Ht(s,t?{add:xs("add"),set:xs("set"),delete:xs("delete"),clear:xs("clear")}:{add(l){const a=kt(this),c=ys(a),o=kt(l),u=!e&&!se(l)&&!ve(l)?o:l;return c.has.call(a,u)||fe(l,u)&&c.has.call(a,l)||fe(o,u)&&c.has.call(a,o)||(a.add(u),ye(a,"add",u,u)),this},set(l,a){!e&&!se(a)&&!ve(a)&&(a=kt(a));const c=kt(this),{has:o,get:u}=ys(c);let _=o.call(c,l);_||(l=kt(l),_=o.call(c,l));const h=u.call(c,l);return c.set(l,a),_?fe(a,h)&&ye(c,"set",l,a):ye(c,"add",l,a),this},delete(l){const a=kt(this),{has:c,get:o}=ys(a);let u=c.call(a,l);u||(l=kt(l),u=c.call(a,l)),o&&o.call(a,l);const _=a.delete(l);return u&&ye(a,"delete",l,void 0),_},clear(){const l=kt(this),a=l.size!==0,c=l.clear();return a&&ye(l,"clear",void 0,void 0),c}}),["keys","values","entries",Symbol.iterator].forEach(l=>{s[l]=To(l,t,e)}),s}function Nn(t,e){const s=Co(t,e);return(n,l,a)=>l==="__v_isReactive"?!t:l==="__v_isReadonly"?t:l==="__v_raw"?n:Reflect.get(Mt(s,l)&&l in n?s:n,l,a)}const Eo={get:Nn(!1,!1)},Fo={get:Nn(!1,!0)},Oo={get:Nn(!0,!1)};const ra=new WeakMap,ia=new WeakMap,ca=new WeakMap,Ao=new WeakMap;function jo(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function gs(t){return ve(t)?t:Bn(t,!1,ko,Eo,ra)}function qo(t){return Bn(t,!1,So,Fo,ia)}function xn(t){return Bn(t,!0,Mo,Oo,ca)}function Bn(t,e,s,n,l){if(!Ct(t)||t.__v_raw&&!(e&&t.__v_isReactive)||t.__v_skip||!Object.isExtensible(t))return t;const a=l.get(t);if(a)return a;const c=jo(no(t));if(c===0)return t;const o=new Proxy(t,c===2?n:s);return l.set(t,o),o}function Ae(t){return ve(t)?Ae(t.__v_raw):!!(t&&t.__v_isReactive)}function ve(t){return!!(t&&t.__v_isReadonly)}function se(t){return!!(t&&t.__v_isShallow)}function Wn(t){return t?!!t.__v_raw:!1}function kt(t){const e=t&&t.__v_raw;return e?kt(e):t}function Do(t){return!Mt(t,"__v_skip")&&Object.isExtensible(t)&&Vl(t,"__v_skip",!0),t}const ne=t=>Ct(t)?gs(t):t,je=t=>Ct(t)?xn(t):t;function Kt(t){return t?t.__v_isRef===!0:!1}function yt(t){return Po(t,!1)}function Po(t,e){return Kt(t)?t:new Lo(t,e)}class Lo{constructor(e,s){this.dep=new Hn,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?e:kt(e),this._value=s?e:ne(e),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(e){const s=this._rawValue,n=this.__v_isShallow||se(e)||ve(e);e=n?e:kt(e),fe(e,s)&&(this._rawValue=e,this._value=n?e:ne(e),this.dep.trigger())}}function d(t){return Kt(t)?t.value:t}const Ro={get:(t,e,s)=>e==="__v_raw"?t:d(Reflect.get(t,e,s)),set:(t,e,s,n)=>{const l=t[e];return Kt(l)&&!Kt(s)?(l.value=s,!0):Reflect.set(t,e,s,n)}};function ua(t){return Ae(t)?t:new Proxy(t,Ro)}class Io{constructor(e,s,n){this.fn=e,this.setter=s,this._value=void 0,this.dep=new Hn(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)&&Ot!==this)return Zl(this,!0),!0}get value(){const e=this.dep.track();return ea(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ho(t,e,s=!1){let n,l;return vt(t)?n=t:(n=t.get,l=t.set),new Io(n,l,s)}const ws={},As=new WeakMap;let Le;function No(t,e=!1,s=Le){if(s){let n=As.get(s);n||As.set(s,n=[]),n.push(t)}}function Bo(t,e,s=Ft){const{immediate:n,deep:l,once:a,scheduler:c,augmentJob:o,call:u}=s,_=T=>l?T:se(T)||l===!1||l===0?xe(T,1):xe(T);let h,m,v,y,q=!1,B=!1;if(Kt(t)?(m=()=>t.value,q=se(t)):Ae(t)?(m=()=>_(t),q=!0):mt(t)?(B=!0,q=t.some(T=>Ae(T)||se(T)),m=()=>t.map(T=>{if(Kt(T))return T.value;if(Ae(T))return _(T);if(vt(T))return u?u(T,2):T()})):vt(t)?e?m=u?()=>u(t,2):t:m=()=>{if(v){we();try{v()}finally{ke()}}const T=Le;Le=h;try{return u?u(t,3,[y]):t(y)}finally{Le=T}}:m=he,e&&l){const T=m,H=l===!0?1/0:l;m=()=>xe(T(),H)}const tt=_o(),lt=()=>{h.stop(),tt&&tt.active&&qn(tt.effects,h)};if(a&&e){const T=e;e=(...H)=>{const dt=T(...H);return lt(),dt}}let R=B?new Array(t.length).fill(ws):ws;const U=T=>{if(!(!(h.flags&1)||!h.dirty&&!T))if(e){const H=h.run();if(T||l||q||(B?H.some((dt,ot)=>fe(dt,R[ot])):fe(H,R))){v&&v();const dt=Le;Le=h;try{const ot=[H,R===ws?void 0:B&&R[0]===ws?[]:R,y];R=H,u?u(e,3,ot):e(...ot)}finally{Le=dt}}}else h.run()};return o&&o(U),h=new Jl(m),h.scheduler=c?()=>c(U,!1):U,y=T=>No(T,!1,h),v=h.onStop=()=>{const T=As.get(h);if(T){if(u)u(T,4);else for(const H of T)H();As.delete(h)}},e?n?U(!0):R=h.run():c?c(U.bind(null,!0),!0):h.run(),lt.pause=h.pause.bind(h),lt.resume=h.resume.bind(h),lt.stop=lt,lt}function xe(t,e=1/0,s){if(e<=0||!Ct(t)||t.__v_skip||(s=s||new Map,(s.get(t)||0)>=e))return t;if(s.set(t,e),e--,Kt(t))xe(t.value,e,s);else if(mt(t))for(let n=0;n<t.length;n++)xe(t[n],e,s);else if(Os(t)||Oe(t))t.forEach(n=>{xe(n,e,s)});else if(Ul(t)){for(const n in t)xe(t[n],e,s);for(const n of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,n)&&xe(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 bs(t,e,s,n){try{return n?t(...n):t()}catch(l){Ys(l,e,s)}}function ae(t,e,s,n){if(vt(t)){const l=bs(t,e,s,n);return l&&Wl(l)&&l.catch(a=>{Ys(a,e,s)}),l}if(mt(t)){const l=[];for(let a=0;a<t.length;a++)l.push(ae(t[a],e,s,n));return l}}function Ys(t,e,s,n=!0){const l=e?e.vnode:null,{errorHandler:a,throwUnhandledErrorInProduction:c}=e&&e.appContext.config||Ft;if(e){let o=e.parent;const u=e.proxy,_=`https://vuejs.org/error-reference/#runtime-${s}`;for(;o;){const h=o.ec;if(h){for(let m=0;m<h.length;m++)if(h[m](t,u,_)===!1)return}o=o.parent}if(a){we(),bs(a,null,10,[t,u,_]),ke();return}}Wo(t,s,l,n,c)}function Wo(t,e,s,n=!0,l=!1){if(l)throw t;console.error(t)}const Gt=[];let ue=-1;const ze=[];let Ce=null,Ue=0;const da=Promise.resolve();let js=null;function Ko(t){const e=js||da;return t?e.then(this?t.bind(this):t):e}function Uo(t){let e=ue+1,s=Gt.length;for(;e<s;){const n=e+s>>>1,l=Gt[n],a=ds(l);a<t||a===t&&l.flags&2?e=n+1:s=n}return e}function Kn(t){if(!(t.flags&1)){const e=ds(t),s=Gt[Gt.length-1];!s||!(t.flags&2)&&e>=ds(s)?Gt.push(t):Gt.splice(Uo(e),0,t),t.flags|=1,pa()}}function pa(){js||(js=da.then(ha))}function Vo(t){if(!mt(t))Ce&&t.id===-1?Ce.splice(Ue+1,0,t):t.flags&1||(ze.push(t),t.flags|=1);else for(let e=0;e<t.length;e++)ze.push(t[e]);pa()}function il(t,e,s=ue+1){for(;s<Gt.length;s++){const n=Gt[s];if(n&&n.flags&2){if(t&&n.id!==t.uid)continue;Gt.splice(s,1),s--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function fa(t){if(ze.length){const e=[...new Set(ze)].sort((s,n)=>ds(s)-ds(n));if(ze.length=0,Ce){for(let s=0;s<e.length;s++)Ce.push(e[s]);return}for(Ce=e,Ue=0;Ue<Ce.length;Ue++){const s=Ce[Ue];s.flags&4&&(s.flags&=-2),s.flags&8||s(),s.flags&=-2}Ce=null,Ue=0}}const ds=t=>t.id==null?t.flags&2?-1:1/0:t.id;function ha(t){try{for(ue=0;ue<Gt.length;ue++){const e=Gt[ue];e&&!(e.flags&8)&&(e.flags&4&&(e.flags&=-2),bs(e,e.i,e.i?15:14),e.flags&4||(e.flags&=-2))}}finally{for(;ue<Gt.length;ue++){const e=Gt[ue];e&&(e.flags&=-2)}ue=-1,Gt.length=0,fa(),js=null,(Gt.length||ze.length)&&ha()}}let te=null,ma=null;function qs(t){const e=te;return te=t,ma=t&&t.type.__scopeId||null,e}function zo(t,e=te,s){if(!e||t._n)return t;const n=(...l)=>{n._d&&$l(-1);const a=qs(e),c=Ne.length;let o;try{o=t(...l)}finally{for(let u=Ne.length;u>c;u--)Ia();qs(a),n._d&&$l(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function wn(t,e){if(te===null)return t;const s=tn(te),n=t.dirs||(t.dirs=[]);for(let l=0;l<e.length;l++){let[a,c,o,u=Ft]=e[l];a&&(vt(a)&&(a={mounted:a,updated:a}),a.deep&&xe(c),n.push({dir:a,instance:s,value:c,oldValue:void 0,arg:o,modifiers:u}))}return t}function De(t,e,s,n){const l=t.dirs,a=e&&e.dirs;for(let c=0;c<l.length;c++){const o=l[c];a&&(o.oldValue=a[c].value);let u=o.dir[n];u&&(we(),ae(u,s,8,[t.el,o,t,e]),ke())}}function Go(t,e){if(Wt){let s=Wt.provides;const n=Wt.parent&&Wt.parent.provides;n===s&&(s=Wt.provides=Object.create(n)),s[t]=e}}function Cs(t,e,s=!1){const n=Gr();if(n||Ge){let l=Ge?Ge._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&&vt(e)?e.call(n&&n.proxy):e}}const Yo=Symbol.for("v-scx"),Jo=()=>Cs(Yo);function He(t,e,s){return _a(t,e,s)}function _a(t,e,s=Ft){const{immediate:n,deep:l,flush:a,once:c}=s,o=Ht({},s),u=e&&n||!e&&a!=="post";let _;if(hs){if(a==="sync"){const y=Jo();_=y.__watcherHandles||(y.__watcherHandles=[])}else if(!u){const y=()=>{};return y.stop=he,y.resume=he,y.pause=he,y}}const h=Wt;o.call=(y,q,B)=>ae(y,h,q,B);let m=!1;a==="post"?o.scheduler=y=>{Jt(y,h&&h.suspense)}:a!=="sync"&&(m=!0,o.scheduler=(y,q)=>{q?y():Kn(y)}),o.augmentJob=y=>{e&&(y.flags|=4),m&&(y.flags|=2,h&&(y.id=h.uid,y.i=h))};const v=Bo(t,e,o);return hs&&(_?_.push(v):u&&v()),v}function Xo(t,e,s){const n=this.proxy,l=Dt(t)?t.includes(".")?va(n,t):()=>n[t]:t.bind(n,n);let a;vt(e)?a=e:(a=e.handler,s=e);const c=$s(this),o=_a(l,a.bind(n),s);return c(),o}function va(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 Zo=Symbol("_vte"),Js=t=>t.__isTeleport,on=Symbol("_leaveCb");function Qo(t){let e=t[0];if(t.length>1){for(const s of t)if(s.type!==Me){e=s;break}}return e}function ga(t){if(!Vn(t))return Js(t.type)&&t.children?Qo(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&&vt(s.default))return s.default()}}function Un(t,e){if(t.shapeFlag&6&&t.component){t.transition=e;const s=t.component.subTree;Un(Js(s.type)&&ga(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 Ut(t,e){return vt(t)?Ht({name:t.name},e,{setup:t}):t}function ba(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}function cl(t,e){let s;return!!((s=Object.getOwnPropertyDescriptor(t,e))&&!s.configurable)}const Ds=new WeakMap;function os(t,e,s,n,l=!1){if(mt(t)){t.forEach((B,tt)=>os(B,e&&(mt(e)?e[tt]:e),s,n,l));return}if(rs(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&os(t,e,s,n.component.subTree);return}const a=n.shapeFlag&4?tn(n.component):n.el,c=l?null:a,{i:o,r:u}=t,_=e&&e.r,h=o.refs===Ft?o.refs={}:o.refs,m=o.setupState,v=kt(m),y=m===Ft?Bl:B=>cl(h,B)?!1:Mt(v,B),q=(B,tt)=>!(tt&&cl(h,tt));if(_!=null&&_!==u){if(ul(e),Dt(_))h[_]=null,y(_)&&(m[_]=null);else if(Kt(_)){const B=e;q(_,B.k)&&(_.value=null),B.k&&(h[B.k]=null)}}if(vt(u))bs(u,o,12,[c,h]);else{const B=Dt(u),tt=Kt(u);if(B||tt){const lt=()=>{if(t.f){const R=B?y(u)?m[u]:h[u]:q()||!t.k?u.value:h[t.k];if(l)mt(R)&&qn(R,a);else if(mt(R))R.includes(a)||R.push(a);else if(B)h[u]=[a],y(u)&&(m[u]=h[u]);else{const U=[a];q(u,t.k)&&(u.value=U),t.k&&(h[t.k]=U)}}else B?(h[u]=c,y(u)&&(m[u]=c)):tt&&(q(u,t.k)&&(u.value=c),t.k&&(h[t.k]=c))};if(c){const R=()=>{lt(),Ds.delete(t)};R.id=-1,Ds.set(t,R),Jt(R,s)}else ul(t),lt()}}}function ul(t){const e=Ds.get(t);e&&(e.flags|=8,Ds.delete(t))}Vs().requestIdleCallback;Vs().cancelIdleCallback;const rs=t=>!!t.type.__asyncLoader,Vn=t=>t.type.__isKeepAlive;function tr(t,e){$a(t,"a",e)}function er(t,e){$a(t,"da",e)}function $a(t,e,s=Wt){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;)Vn(l.parent.vnode)&&sr(n,e,s,l),l=l.parent}}function sr(t,e,s,n){const l=Xs(e,t,n,!0);ya(()=>{qn(n[e],l)},s)}function Xs(t,e,s=Wt,n=!1){if(s){const l=s[t]||(s[t]=[]),a=e.__weh||(e.__weh=(...c)=>{we();const o=$s(s),u=ae(e,s,t,c);return o(),ke(),u});return n?l.unshift(a):l.push(a),a}}const Te=t=>(e,s=Wt)=>{(!hs||t==="sp")&&Xs(t,(...n)=>e(...n),s)},nr=Te("bm"),We=Te("m"),lr=Te("bu"),ar=Te("u"),or=Te("bum"),ya=Te("um"),rr=Te("sp"),ir=Te("rtg"),cr=Te("rtc");function ur(t,e=Wt){Xs("ec",t,e)}const dr="components";function pr(t,e){return hr(dr,t,!0,e)||t}const fr=Symbol.for("v-ndc");function hr(t,e,s=!0,n=!1){const l=te||Wt;if(l){const a=l.type;{const o=Qr(a,!1);if(o&&(o===e||o===Yt(e)||o===Us(Yt(e))))return a}const c=dl(l[t]||a[t],e)||dl(l.appContext[t],e);return!c&&n?a:c}}function dl(t,e){return t&&(t[e]||t[Yt(e)]||t[Us(Yt(e))])}function xt(t,e,s,n){let l;const a=s,c=mt(t);if(c||Dt(t)){const o=c&&Ae(t);let u=!1,_=!1;o&&(u=!se(t),_=ve(t),t=Gs(t)),l=new Array(t.length);for(let h=0,m=t.length;h<m;h++)l[h]=e(u?_?je(ne(t[h])):ne(t[h]):t[h],h,void 0,a)}else if(typeof t=="number"){l=new Array(t);for(let o=0;o<t;o++)l[o]=e(o+1,o,void 0,a)}else if(Ct(t))if(t[Symbol.iterator])l=Array.from(t,(o,u)=>e(o,u,void 0,a));else{const o=Object.keys(t);l=new Array(o.length);for(let u=0,_=o.length;u<_;u++){const h=o[u];l[u]=e(t[h],h,u,a)}}else l=[];return l}const kn=t=>t?Wa(t)?tn(t):kn(t.parent):null,is=Ht(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=>wa(t),$forceUpdate:t=>t.f||(t.f=()=>{Kn(t.update)}),$nextTick:t=>t.n||(t.n=Ko.bind(t.proxy)),$watch:t=>Xo.bind(t)}),rn=(t,e)=>t!==Ft&&!t.__isScriptSetup&&Mt(t,e),mr={get({_:t},e){if(e==="__v_skip")return!0;const{ctx:s,setupState:n,data:l,props:a,accessCache:c,type:o,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 a[e]}else{if(rn(n,e))return c[e]=1,n[e];if(l!==Ft&&Mt(l,e))return c[e]=2,l[e];if(Mt(a,e))return c[e]=3,a[e];if(s!==Ft&&Mt(s,e))return c[e]=4,s[e];Mn&&(c[e]=0)}}const _=is[e];let h,m;if(_)return e==="$attrs"&&Bt(t.attrs,"get",""),_(t);if((h=o.__cssModules)&&(h=h[e]))return h;if(s!==Ft&&Mt(s,e))return c[e]=4,s[e];if(m=u.config.globalProperties,Mt(m,e))return m[e]},set({_:t},e,s){const{data:n,setupState:l,ctx:a}=t;return rn(l,e)?(l[e]=s,!0):n!==Ft&&Mt(n,e)?(n[e]=s,!0):Mt(t.props,e)||e[0]==="$"&&e.slice(1)in t?!1:(a[e]=s,!0)},has({_:{data:t,setupState:e,accessCache:s,ctx:n,appContext:l,props:a,type:c}},o){let u;return!!(s[o]||t!==Ft&&o[0]!=="$"&&Mt(t,o)||rn(e,o)||Mt(a,o)||Mt(n,o)||Mt(is,o)||Mt(l.config.globalProperties,o)||(u=c.__cssModules)&&u[o])},defineProperty(t,e,s){return s.get!=null?t._.accessCache[e]=0:Mt(s,"value")&&this.set(t,e,s.value,null),Reflect.defineProperty(t,e,s)}};function pl(t){return mt(t)?t.reduce((e,s)=>(e[s]=null,e),{}):t}let Mn=!0;function _r(t){const e=wa(t),s=t.proxy,n=t.ctx;Mn=!1,e.beforeCreate&&fl(e.beforeCreate,t,"bc");const{data:l,computed:a,methods:c,watch:o,provide:u,inject:_,created:h,beforeMount:m,mounted:v,beforeUpdate:y,updated:q,activated:B,deactivated:tt,beforeDestroy:lt,beforeUnmount:R,destroyed:U,unmounted:T,render:H,renderTracked:dt,renderTriggered:ot,errorCaptured:ft,serverPrefetch:ht,expose:jt,inheritAttrs:F,components:J,directives:X,filters:j}=e;if(_&&vr(_,n,null),c)for(const k in c){const P=c[k];vt(P)&&(n[k]=P.bind(s))}if(l){const k=l.call(s,s);Ct(k)&&(t.data=gs(k))}if(Mn=!0,a)for(const k in a){const P=a[k],N=vt(P)?P.bind(s,s):vt(P.get)?P.get.bind(s,s):he,K=!vt(P)&&vt(P.set)?P.set.bind(s):he,Z=Y({get:N,set:K});Object.defineProperty(n,k,{enumerable:!0,configurable:!0,get:()=>Z.value,set:nt=>Z.value=nt})}if(o)for(const k in o)xa(o[k],n,s,k);if(u){const k=vt(u)?u.call(s):u;Reflect.ownKeys(k).forEach(P=>{Go(P,k[P])})}h&&fl(h,t,"c");function C(k,P){mt(P)?P.forEach(N=>k(N.bind(s))):P&&k(P.bind(s))}if(C(nr,m),C(We,v),C(lr,y),C(ar,q),C(tr,B),C(er,tt),C(ur,ft),C(cr,dt),C(ir,ot),C(or,R),C(ya,T),C(rr,ht),mt(jt))if(jt.length){const k=t.exposed||(t.exposed={});jt.forEach(P=>{Object.defineProperty(k,P,{get:()=>s[P],set:N=>s[P]=N,enumerable:!0})})}else t.exposed||(t.exposed={});H&&t.render===he&&(t.render=H),F!=null&&(t.inheritAttrs=F),J&&(t.components=J),X&&(t.directives=X),ht&&ba(t)}function vr(t,e,s=he){mt(t)&&(t=Sn(t));for(const n in t){const l=t[n];let a;Ct(l)?"default"in l?a=Cs(l.from||n,l.default,!0):a=Cs(l.from||n):a=Cs(l),Kt(a)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:c=>a.value=c}):e[n]=a}}function fl(t,e,s){ae(mt(t)?t.map(n=>n.bind(e.proxy)):t.bind(e.proxy),e,s)}function xa(t,e,s,n){let l=n.includes(".")?va(s,n):()=>s[n];if(Dt(t)){const a=e[t];vt(a)&&He(l,a)}else if(vt(t))He(l,t.bind(s));else if(Ct(t))if(mt(t))t.forEach(a=>xa(a,e,s,n));else{const a=vt(t.handler)?t.handler.bind(s):e[t.handler];vt(a)&&He(l,a,t)}}function wa(t){const e=t.type,{mixins:s,extends:n}=e,{mixins:l,optionsCache:a,config:{optionMergeStrategies:c}}=t.appContext,o=a.get(e);let u;return o?u=o:!l.length&&!s&&!n?u=e:(u={},l.length&&l.forEach(_=>Ps(u,_,c,!0)),Ps(u,e,c)),Ct(e)&&a.set(e,u),u}function Ps(t,e,s,n=!1){const{mixins:l,extends:a}=e;a&&Ps(t,a,s,!0),l&&l.forEach(c=>Ps(t,c,s,!0));for(const c in e)if(!(n&&c==="expose")){const o=gr[c]||s&&s[c];t[c]=o?o(t[c],e[c]):e[c]}return t}const gr={data:hl,props:ml,emits:ml,methods:es,computed:es,beforeCreate:Vt,created:Vt,beforeMount:Vt,mounted:Vt,beforeUpdate:Vt,updated:Vt,beforeDestroy:Vt,beforeUnmount:Vt,destroyed:Vt,unmounted:Vt,activated:Vt,deactivated:Vt,errorCaptured:Vt,serverPrefetch:Vt,components:es,directives:es,watch:$r,provide:hl,inject:br};function hl(t,e){return e?t?function(){return Ht(vt(t)?t.call(this,this):t,vt(e)?e.call(this,this):e)}:e:t}function br(t,e){return es(Sn(t),Sn(e))}function Sn(t){if(mt(t)){const e={};for(let s=0;s<t.length;s++)e[t[s]]=t[s];return e}return t}function Vt(t,e){return t?[...new Set([].concat(t,e))]:e}function es(t,e){return t?Ht(Object.create(null),t,e):e}function ml(t,e){return t?mt(t)&&mt(e)?[...new Set([...t,...e])]:Ht(Object.create(null),pl(t),pl(e??{})):e}function $r(t,e){if(!t)return e;if(!e)return t;const s=Ht(Object.create(null),t);for(const n in e)s[n]=Vt(t[n],e[n]);return s}function ka(){return{app:null,config:{isNativeTag:Bl,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 yr=0;function xr(t,e){return function(n,l=null){vt(n)||(n=Ht({},n)),l!=null&&!Ct(l)&&(l=null);const a=ka(),c=new WeakSet,o=[];let u=!1;const _=a.app={_uid:yr++,_component:n,_props:l,_container:null,_context:a,_instance:null,version:ei,get config(){return a.config},set config(h){},use(h,...m){return c.has(h)||(h&&vt(h.install)?(c.add(h),h.install(_,...m)):vt(h)&&(c.add(h),h(_,...m))),_},mixin(h){return a.mixins.includes(h)||a.mixins.push(h),_},component(h,m){return m?(a.components[h]=m,_):a.components[h]},directive(h,m){return m?(a.directives[h]=m,_):a.directives[h]},mount(h,m,v){if(!u){const y=_._ceVNode||At(n,l);return y.appContext=a,v===!0?v="svg":v===!1&&(v=void 0),t(y,h,v),u=!0,_._container=h,h.__vue_app__=_,tn(y.component)}},onUnmount(h){o.push(h)},unmount(){u&&(ae(o,_._instance,16),t(null,_._container),delete _._container.__vue_app__)},provide(h,m){return a.provides[h]=m,_},runWithContext(h){const m=Ge;Ge=_;try{return h()}finally{Ge=m}}};return _}}let Ge=null;const wr=(t,e)=>e==="modelValue"||e==="model-value"?t.modelModifiers:t[`${e}Modifiers`]||t[`${Yt(e)}Modifiers`]||t[`${qe(e)}Modifiers`];function kr(t,e,...s){if(t.isUnmounted)return;const n=t.vnode.props||Ft;let l=s;const a=e.startsWith("update:"),c=a&&wr(n,e.slice(7));c&&(c.trim&&(l=s.map(h=>Dt(h)?h.trim():h)),c.number&&(l=l.map(Pn)));let o,u=n[o=en(e)]||n[o=en(Yt(e))];!u&&a&&(u=n[o=en(qe(e))]),u&&ae(u,t,6,l);const _=n[o+"Once"];if(_){if(!t.emitted)t.emitted={};else if(t.emitted[o])return;t.emitted[o]=!0,ae(_,t,6,l)}}const Mr=new WeakMap;function Ma(t,e,s=!1){const n=s?Mr:e.emitsCache,l=n.get(t);if(l!==void 0)return l;const a=t.emits;let c={},o=!1;if(!vt(t)){const u=_=>{const h=Ma(_,e,!0);h&&(o=!0,Ht(c,h))};!s&&e.mixins.length&&e.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!a&&!o?(Ct(t)&&n.set(t,null),null):(mt(a)?a.forEach(u=>c[u]=null):Ht(c,a),Ct(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$/,""),Mt(t,e[0].toLowerCase()+e.slice(1))||Mt(t,qe(e))||Mt(t,e))}function _l(t){const{type:e,vnode:s,proxy:n,withProxy:l,propsOptions:[a],slots:c,attrs:o,emit:u,render:_,renderCache:h,props:m,data:v,setupState:y,ctx:q,inheritAttrs:B}=t,tt=qs(t);let lt,R;try{if(s.shapeFlag&4){const T=l||n,H=T;lt=pe(_.call(H,T,h,m,y,v,q)),R=o}else{const T=e;lt=pe(T.length>1?T(m,{attrs:o,slots:c,emit:u}):T(m,null)),R=e.props?o:Sr(o)}}catch(T){Ne.length=0,Ys(T,t,1),lt=At(Me)}let U=lt;if(R&&B!==!1){const T=Object.keys(R),{shapeFlag:H}=U;T.length&&H&7&&(a&&T.some(Ws)&&(R=Tr(R,a)),U=Ye(U,R,!1,!0))}if(s.dirs&&(U=Ye(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(s.dirs):s.dirs),s.transition){const T=Js(U.type)&&ga(U)||U;Un(T,s.transition)}return lt=U,qs(tt),lt}const Sr=t=>{let e;for(const s in t)(s==="class"||s==="style"||Bs(s))&&((e||(e={}))[s]=t[s]);return e},Tr=(t,e)=>{const s={};for(const n in t)(!Ws(n)||!(n.slice(9)in e))&&(s[n]=t[n]);return s};function Cr(t,e,s){const{props:n,children:l,component:a}=t,{props:c,children:o,patchFlag:u}=e,_=a.emitsOptions;if(e.dirs||e.transition)return!0;if(s&&u>=0){if(u&1024)return!0;if(u&16)return n?vl(n,c,_):!!c;if(u&8){const h=e.dynamicProps;for(let m=0;m<h.length;m++){const v=h[m];if(Sa(c,n,v)&&!Zs(_,v))return!0}}}else return(l||o)&&(!o||!o.$stable)?!0:n===c?!1:n?c?vl(n,c,_):!0:!!c;return!1}function vl(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 a=n[l];if(Sa(e,t,a)&&!Zs(s,a))return!0}return!1}function Sa(t,e,s){const n=t[s],l=e[s];return s==="style"&&Ct(n)&&Ct(l)?!zs(n,l):n!==l}function Er({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 Ta={},Ca=()=>Object.create(Ta),Ea=t=>Object.getPrototypeOf(t)===Ta;function Fr(t,e,s,n=!1){const l={},a=Ca();t.propsDefaults=Object.create(null),Fa(t,e,l,a);for(const c in t.propsOptions[0])c in l||(l[c]=void 0);s?t.props=n?l:qo(l):t.type.props?t.props=l:t.props=a,t.attrs=a}function Or(t,e,s,n){const{props:l,attrs:a,vnode:{patchFlag:c}}=t,o=kt(l),[u]=t.propsOptions;let _=!1;if((n||c>0)&&!(c&16)){if(c&8){const h=t.vnode.dynamicProps;for(let m=0;m<h.length;m++){let v=h[m];if(Zs(t.emitsOptions,v))continue;const y=e[v];if(u)if(Mt(a,v))y!==a[v]&&(a[v]=y,_=!0);else{const q=Yt(v);l[q]=Tn(u,o,q,y,t,!1)}else y!==a[v]&&(a[v]=y,_=!0)}}}else{Fa(t,e,l,a)&&(_=!0);let h;for(const m in o)(!e||!Mt(e,m)&&((h=qe(m))===m||!Mt(e,h)))&&(u?s&&(s[m]!==void 0||s[h]!==void 0)&&(l[m]=Tn(u,o,m,void 0,t,!0)):delete l[m]);if(a!==o)for(const m in a)(!e||!Mt(e,m))&&(delete a[m],_=!0)}_&&ye(t.attrs,"set","")}function Fa(t,e,s,n){const[l,a]=t.propsOptions;let c=!1,o;if(e)for(let u in e){if(ns(u))continue;const _=e[u];let h;l&&Mt(l,h=Yt(u))?!a||!a.includes(h)?s[h]=_:(o||(o={}))[h]=_:Zs(t.emitsOptions,u)||(!(u in n)||_!==n[u])&&(n[u]=_,c=!0)}if(a){const u=kt(s),_=o||Ft;for(let h=0;h<a.length;h++){const m=a[h];s[m]=Tn(l,u,m,_[m],t,!Mt(_,m))}}return c}function Tn(t,e,s,n,l,a){const c=t[s];if(c!=null){const o=Mt(c,"default");if(o&&n===void 0){const u=c.default;if(c.type!==Function&&!c.skipFactory&&vt(u)){const{propsDefaults:_}=l;if(s in _)n=_[s];else{const h=$s(l);n=_[s]=u.call(null,e),h()}}else n=u;l.ce&&l.ce._setProp(s,n)}c[0]&&(a&&!o?n=!1:c[1]&&(n===""||n===qe(s))&&(n=!0))}return n}const Ar=new WeakMap;function Oa(t,e,s=!1){const n=s?Ar:e.propsCache,l=n.get(t);if(l)return l;const a=t.props,c={},o=[];let u=!1;if(!vt(t)){const h=m=>{u=!0;const[v,y]=Oa(m,e,!0);Ht(c,v),y&&o.push(...y)};!s&&e.mixins.length&&e.mixins.forEach(h),t.extends&&h(t.extends),t.mixins&&t.mixins.forEach(h)}if(!a&&!u)return Ct(t)&&n.set(t,Re),Re;if(mt(a))for(let h=0;h<a.length;h++){const m=Yt(a[h]);gl(m)&&(c[m]=Ft)}else if(a)for(const h in a){const m=Yt(h);if(gl(m)){const v=a[h],y=c[m]=mt(v)||vt(v)?{type:v}:Ht({},v),q=y.type;let B=!1,tt=!0;if(mt(q))for(let lt=0;lt<q.length;++lt){const R=q[lt],U=vt(R)&&R.name;if(U==="Boolean"){B=!0;break}else U==="String"&&(tt=!1)}else B=vt(q)&&q.name==="Boolean";y[0]=B,y[1]=tt,(B||Mt(y,"default"))&&o.push(m)}}const _=[c,o];return Ct(t)&&n.set(t,_),_}function gl(t){return t[0]!=="$"&&!ns(t)}const zn=t=>t==="_"||t==="_ctx"||t==="$stable",Gn=t=>mt(t)?t.map(pe):[pe(t)],jr=(t,e,s)=>{if(e._n)return e;const n=zo((...l)=>Gn(e(...l)),s);return n._c=!1,n},Aa=(t,e,s)=>{const n=t._ctx;for(const l in t){if(zn(l))continue;const a=t[l];if(vt(a))e[l]=jr(l,a,n);else if(a!=null){const c=Gn(a);e[l]=()=>c}}},ja=(t,e)=>{const s=Gn(e);t.slots.default=()=>s},qa=(t,e,s)=>{for(const n in e)(s||!zn(n))&&(t[n]=e[n])},qr=(t,e,s)=>{const n=t.slots=Ca();if(t.vnode.shapeFlag&32){const l=e._;l?(qa(n,e,s),s&&Vl(n,"_",l,!0)):Aa(e,n)}else e&&ja(t,e)},Dr=(t,e,s)=>{const{vnode:n,slots:l}=t;let a=!0,c=Ft;if(n.shapeFlag&32){const o=e._;o?s&&o===1?a=!1:qa(l,e,s):(a=!e.$stable,Aa(e,l)),c=e}else e&&(ja(t,e),c={default:1});if(a)for(const o in l)!zn(o)&&c[o]==null&&delete l[o]},Jt=Hr;function Pr(t){return Lr(t)}function Lr(t,e){const s=Vs();s.__VUE__=!0;const{insert:n,remove:l,patchProp:a,createElement:c,createText:o,createComment:u,setText:_,setElementText:h,parentNode:m,nextSibling:v,setScopeId:y=he,insertStaticContent:q}=t,B=(f,g,b,$=null,M=null,O=null,L=void 0,I=null,x=!!g.dynamicChildren)=>{if(f===g)return;f&&!Ze(f,g)&&($=D(f),nt(f,M,O,!0),f=null),g.patchFlag===-2&&(x=!1,g.dynamicChildren=null),g.dynamicChildren&&f&&f.dynamicChildren&&f.dynamicChildren.hasOnce&&(g.dynamicChildren===Re&&(g.dynamicChildren=[]),g.dynamicChildren.hasOnce=!0);const{type:w,ref:st,shapeFlag:z}=g;switch(w){case Qs:tt(f,g,b,$);break;case Me:lt(f,g,b,$);break;case Es:f==null&&R(g,b,$,L);break;case ct:J(f,g,b,$,M,O,L,I,x);break;default:z&1?H(f,g,b,$,M,O,L,I,x):z&6?X(f,g,b,$,M,O,L,I,x):(z&64||z&128)&&w.process(f,g,b,$,M,O,L,I,x,W)}st!=null&&M?os(st,f&&f.ref,O,g||f,!g):st==null&&f&&f.ref!=null&&os(f.ref,null,O,f,!0)},tt=(f,g,b,$)=>{if(f==null)n(g.el=o(g.children),b,$);else{const M=g.el=f.el;g.children!==f.children&&_(M,g.children)}},lt=(f,g,b,$)=>{f==null?n(g.el=u(g.children||""),b,$):g.el=f.el},R=(f,g,b,$)=>{[f.el,f.anchor]=q(f.children,g,b,$,f.el,f.anchor)},U=({el:f,anchor:g},b,$)=>{let M;for(;f&&f!==g;)M=v(f),n(f,b,$),f=M;n(g,b,$)},T=({el:f,anchor:g})=>{let b;for(;f&&f!==g;)b=v(f),l(f),f=b;l(g)},H=(f,g,b,$,M,O,L,I,x)=>{if(g.type==="svg"?L="svg":g.type==="math"&&(L="mathml"),f==null)dt(g,b,$,M,O,L,I,x);else{const w=f.el&&f.el._isVueCE?f.el:null;try{w&&w._beginPatch(),ht(f,g,M,O,L,I,x)}finally{w&&w._endPatch()}}},dt=(f,g,b,$,M,O,L,I)=>{let x,w;const{props:st,shapeFlag:z,transition:rt,dirs:ut}=f;if(x=f.el=c(f.type,O,st&&st.is,st),z&8?h(x,f.children):z&16&&ft(f.children,x,null,$,M,cn(f,O),L,I),ut&&De(f,null,$,"created"),ot(x,f,f.scopeId,L,$),st){for(const Et in st)Et!=="value"&&!ns(Et)&&a(x,Et,null,st[Et],O,$);"value"in st&&a(x,"value",null,st.value,O),(w=st.onVnodeBeforeMount)&&ce(w,$,f)}ut&&De(f,null,$,"beforeMount");const $t=Rr(M,rt);$t&&rt.beforeEnter(x),n(x,g,b),((w=st&&st.onVnodeMounted)||$t||ut)&&Jt(()=>{try{w&&ce(w,$,f),$t&&rt.enter(x),ut&&De(f,null,$,"mounted")}finally{}},M)},ot=(f,g,b,$,M)=>{if(b&&y(f,b),$)for(let O=0;O<$.length;O++)y(f,$[O]);if(M){let O=M.subTree;if(g===O||Ra(O.type)&&(O.ssContent===g||O.ssFallback===g)){const L=M.vnode;ot(f,L,L.scopeId,L.slotScopeIds,M.parent)}}},ft=(f,g,b,$,M,O,L,I,x=0)=>{for(let w=x;w<f.length;w++){const st=f[w]=I?$e(f[w]):pe(f[w]);B(null,st,g,b,$,M,O,L,I)}},ht=(f,g,b,$,M,O,L)=>{const I=g.el=f.el;let{patchFlag:x,dynamicChildren:w,dirs:st}=g;x|=f.patchFlag&16;const z=f.props||Ft,rt=g.props||Ft;let ut;if(b&&Pe(b,!1),(ut=rt.onVnodeBeforeUpdate)&&ce(ut,b,g,f),st&&De(g,f,b,"beforeUpdate"),b&&Pe(b,!0),w&&(!f.dynamicChildren||f.dynamicChildren.length!==w.length)&&(x=0,L=!1,w=null),(z.innerHTML&&rt.innerHTML==null||z.textContent&&rt.textContent==null)&&h(I,""),w?jt(f.dynamicChildren,w,I,b,$,cn(g,M),O):L||P(f,g,I,null,b,$,cn(g,M),O,!1),x>0){if(x&16)F(I,z,rt,b,M);else if(x&2&&z.class!==rt.class&&a(I,"class",null,rt.class,M),x&4&&a(I,"style",z.style,rt.style,M),x&8){const $t=g.dynamicProps;for(let Et=0;Et<$t.length;Et++){const St=$t[Et],Pt=z[St],Rt=rt[St];(Rt!==Pt||St==="value")&&a(I,St,Pt,Rt,M,b)}}x&1&&f.children!==g.children&&h(I,g.children)}else!L&&w==null&&F(I,z,rt,b,M);((ut=rt.onVnodeUpdated)||st)&&Jt(()=>{ut&&ce(ut,b,g,f),st&&De(g,f,b,"updated")},$)},jt=(f,g,b,$,M,O,L)=>{for(let I=0;I<g.length;I++){const x=f[I],w=g[I],st=x.el&&(x.type===ct||!Ze(x,w)||x.shapeFlag&198)?m(x.el):b;B(x,w,st,null,$,M,O,L,!0)}},F=(f,g,b,$,M)=>{if(g!==b){if(g!==Ft)for(const O in g)!ns(O)&&!(O in b)&&a(f,O,g[O],null,M,$);for(const O in b){if(ns(O))continue;const L=b[O],I=g[O];L!==I&&O!=="value"&&a(f,O,I,L,M,$)}"value"in b&&a(f,"value",g.value,b.value,M)}},J=(f,g,b,$,M,O,L,I,x)=>{const w=g.el=f?f.el:o(""),st=g.anchor=f?f.anchor:o("");let{patchFlag:z,dynamicChildren:rt,slotScopeIds:ut}=g;ut&&(I=I?I.concat(ut):ut),f==null?(n(w,b,$),n(st,b,$),ft(g.children||[],b,st,M,O,L,I,x)):z>0&&z&64&&rt&&f.dynamicChildren&&f.dynamicChildren.length===rt.length?(jt(f.dynamicChildren,rt,b,M,O,L,I),(g.key!=null||M&&g===M.subTree)&&Da(f,g,!0)):P(f,g,b,st,M,O,L,I,x)},X=(f,g,b,$,M,O,L,I,x)=>{g.slotScopeIds=I,f==null?g.shapeFlag&512?M.ctx.activate(g,b,$,L,x):j(g,b,$,M,O,L,x):A(f,g,x)},j=(f,g,b,$,M,O,L)=>{const I=f.component=zr(f,$,M);if(Vn(f)&&(I.ctx.renderer=W),Yr(I,!1,L),I.asyncDep){if(M&&M.registerDep(I,C,L),!f.el){const x=I.subTree=At(Me);lt(null,x,g,b),f.placeholder=x.el}}else C(I,f,g,b,M,O,L)},A=(f,g,b)=>{const $=g.component=f.component;if(Cr(f,g,b))if($.asyncDep&&!$.asyncResolved){g.el=f.el,k($,g,b);return}else $.next=g,$.update();else g.el=f.el,$.vnode=g},C=(f,g,b,$,M,O,L)=>{const I=()=>{if(f.isMounted){let{next:z,bu:rt,u:ut,parent:$t,vnode:Et}=f;{const re=Pa(f);if(re){z&&(z.el=Et.el,k(f,z,L)),re.asyncDep.then(()=>{Jt(()=>{f.isUnmounted||w()},M)});return}}let St=z,Pt;Pe(f,!1),z?(z.el=Et.el,k(f,z,L)):z=Et,rt&&Ts(rt),(Pt=z.props&&z.props.onVnodeBeforeUpdate)&&ce(Pt,$t,z,Et),Pe(f,!0);const Rt=_l(f),oe=f.subTree;f.subTree=Rt,B(oe,Rt,m(oe.el),D(oe),f,M,O),z.el=Rt.el,St===null&&Er(f,Rt.el),ut&&Jt(ut,M),(Pt=z.props&&z.props.onVnodeUpdated)&&Jt(()=>ce(Pt,$t,z,Et),M)}else{let z;const{el:rt,props:ut}=g,{bm:$t,m:Et,parent:St,root:Pt,type:Rt}=f,oe=rs(g);Pe(f,!1),$t&&Ts($t),!oe&&(z=ut&&ut.onVnodeBeforeMount)&&ce(z,St,g),Pe(f,!0);{Pt.ce&&Pt.ce._hasShadowRoot()&&Pt.ce._injectChildStyle(Rt,f.parent?f.parent.type:void 0);const re=f.subTree=_l(f);B(null,re,b,$,f,M,O),g.el=re.el}if(Et&&Jt(Et,M),!oe&&(z=ut&&ut.onVnodeMounted)){const re=g;Jt(()=>ce(z,St,re),M)}(g.shapeFlag&256||St&&rs(St.vnode)&&St.vnode.shapeFlag&256)&&f.a&&Jt(f.a,M),f.isMounted=!0,g=b=$=null}};f.scope.on();const x=f.effect=new Jl(I);f.scope.off();const w=f.update=x.run.bind(x),st=f.job=x.runIfDirty.bind(x);st.i=f,st.id=f.uid,x.scheduler=()=>Kn(st),Pe(f,!0),w()},k=(f,g,b)=>{g.component=f;const $=f.vnode.props;f.vnode=g,f.next=null,Or(f,g.props,$,b),Dr(f,g.children,b),we(),il(f),ke()},P=(f,g,b,$,M,O,L,I,x=!1)=>{const w=f&&f.children,st=f?f.shapeFlag:0,z=g.children,{patchFlag:rt,shapeFlag:ut}=g;if(rt>0){if(rt&128){K(w,z,b,$,M,O,L,I,x);return}else if(rt&256){N(w,z,b,$,M,O,L,I,x);return}}ut&8?(st&16&&_t(w,M,O),z!==w&&h(b,z)):st&16?ut&16?K(w,z,b,$,M,O,L,I,x):_t(w,M,O,!0):(st&8&&h(b,""),ut&16&&ft(z,b,$,M,O,L,I,x))},N=(f,g,b,$,M,O,L,I,x)=>{f=f||Re,g=g||Re;const w=f.length,st=g.length,z=Math.min(w,st);let rt;for(rt=0;rt<z;rt++){const ut=g[rt]=x?$e(g[rt]):pe(g[rt]);B(f[rt],ut,b,null,M,O,L,I,x)}w>st?_t(f,M,O,!0,!1,z):ft(g,b,$,M,O,L,I,x,z)},K=(f,g,b,$,M,O,L,I,x)=>{let w=0;const st=g.length;let z=f.length-1,rt=st-1;for(;w<=z&&w<=rt;){const ut=f[w],$t=g[w]=x?$e(g[w]):pe(g[w]);if(Ze(ut,$t))B(ut,$t,b,null,M,O,L,I,x);else break;w++}for(;w<=z&&w<=rt;){const ut=f[z],$t=g[rt]=x?$e(g[rt]):pe(g[rt]);if(Ze(ut,$t))B(ut,$t,b,null,M,O,L,I,x);else break;z--,rt--}if(w>z){if(w<=rt){const ut=rt+1,$t=ut<st?g[ut].el:$;for(;w<=rt;)B(null,g[w]=x?$e(g[w]):pe(g[w]),b,$t,M,O,L,I,x),w++}}else if(w>rt)for(;w<=z;)nt(f[w],M,O,!0),w++;else{const ut=w,$t=w,Et=new Map;for(w=$t;w<=rt;w++){const Zt=g[w]=x?$e(g[w]):pe(g[w]);Zt.key!=null&&Et.set(Zt.key,w)}let St,Pt=0;const Rt=rt-$t+1;let oe=!1,re=0;const Je=new Array(Rt);for(w=0;w<Rt;w++)Je[w]=0;for(w=ut;w<=z;w++){const Zt=f[w];if(Pt>=Rt){nt(Zt,M,O,!0);continue}let ie;if(Zt.key!=null)ie=Et.get(Zt.key);else for(St=$t;St<=rt;St++)if(Je[St-$t]===0&&Ze(Zt,g[St])){ie=St;break}ie===void 0?nt(Zt,M,O,!0):(Je[ie-$t]=w+1,ie>=re?re=ie:oe=!0,B(Zt,g[ie],b,null,M,O,L,I,x),Pt++)}const Qn=oe?Ir(Je):Re;for(St=Qn.length-1,w=Rt-1;w>=0;w--){const Zt=$t+w,ie=g[Zt],tl=g[Zt+1],el=Zt+1<st?tl.el||La(tl):$;Je[w]===0?B(null,ie,b,el,M,O,L,I,x):oe&&(St<0||w!==Qn[St]?Z(ie,b,el,2):St--)}}},Z=(f,g,b,$,M=null)=>{const{el:O,type:L,transition:I,children:x,shapeFlag:w}=f;if(w&6){Z(f.component.subTree,g,b,$);return}if(w&128){f.suspense.move(g,b,$);return}if(w&64){L.move(f,g,b,W);return}if(L===ct){n(O,g,b);for(let z=0;z<x.length;z++)Z(x[z],g,b,$);n(f.anchor,g,b);return}if(L===Es){U(f,g,b);return}if($!==2&&w&1&&I)if($===0)I.persisted&&!O[on]?n(O,g,b):(I.beforeEnter(O),n(O,g,b),Jt(()=>I.enter(O),M));else{const{leave:z,delayLeave:rt,afterLeave:ut}=I,$t=()=>{f.ctx.isUnmounted?l(O):n(O,g,b)},Et=()=>{const St=O._isLeaving||!!O[on];O._isLeaving&&O[on](!0),I.persisted&&!St?$t():z(O,()=>{$t(),ut&&ut()})};rt?rt(O,$t,Et):Et()}else n(O,g,b)},nt=(f,g,b,$=!1,M=!1)=>{const{type:O,props:L,ref:I,children:x,dynamicChildren:w,shapeFlag:st,patchFlag:z,dirs:rt,cacheIndex:ut,memo:$t}=f;if((z===-2||w&&w.hasOnce)&&(M=!1),I!=null&&(we(),os(I,null,b,f,!0),ke()),ut!=null&&(!f.ctx||f.ctx===g)&&(g.renderCache[ut]=void 0),st&256){g.ctx.deactivate(f);return}const Et=st&1&&rt,St=!rs(f);let Pt;if(St&&(Pt=L&&L.onVnodeBeforeUnmount)&&ce(Pt,g,f),st&6)it(f.component,b,$);else{if(st&128){f.suspense.unmount(b,$);return}Et&&De(f,null,g,"beforeUnmount"),st&64?f.type.remove(f,g,b,W,$):w&&!w.hasOnce&&(O!==ct||z>0&&z&64)?_t(w,g,b,!1,!0):(O===ct&&z&384||!M&&st&16)&&_t(x,g,b),$&&at(f)}const Rt=$t!=null&&ut==null;(St&&(Pt=L&&L.onVnodeUnmounted)||Et||Rt)&&Jt(()=>{Pt&&ce(Pt,g,f),Et&&De(f,null,g,"unmounted"),Rt&&(f.el=null)},b)},at=f=>{const{type:g,el:b,anchor:$,transition:M}=f;if(g===ct){et(b,$);return}if(g===Es){T(f),M&&!M.persisted&&M.afterLeave&&M.afterLeave();return}const O=()=>{l(b),M&&!M.persisted&&M.afterLeave&&M.afterLeave()};if(f.shapeFlag&1&&M&&!M.persisted){const{leave:L,delayLeave:I}=M,x=()=>L(b,O);I?I(f.el,O,x):x()}else O()},et=(f,g)=>{let b;for(;f!==g;)b=v(f),l(f),f=b;l(g)},it=(f,g,b)=>{const{bum:$,scope:M,job:O,subTree:L,um:I,m:x,a:w}=f;bl(x),bl(w),$&&Ts($),M.stop(),O?(O.flags|=8,nt(L,f,g,b)):f.vnode.el&&L&&(L.transition=f.vnode.transition,nt(L,f,g,b)),I&&Jt(I,g),Jt(()=>{f.isUnmounted=!0},g)},_t=(f,g,b,$=!1,M=!1,O=0)=>{for(let L=O;L<f.length;L++)nt(f[L],g,b,$,M)},D=f=>{if(f.shapeFlag&6)return D(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const g=v(f.anchor||f.el),b=g&&g[Zo];return b?v(b):g};let V=!1;const Q=(f,g,b)=>{let $;f==null?g._vnode&&(nt(g._vnode,null,null,!0),$=g._vnode.component):B(g._vnode||null,f,g,null,null,null,b),g._vnode=f,V||(V=!0,il($),fa(),V=!1)},W={p:B,um:nt,m:Z,r:at,mt:j,mc:ft,pc:P,pbc:jt,n:D,o:t};return{render:Q,hydrate:void 0,createApp:xr(Q)}}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 Pe({effect:t,job:e},s){s?(t.flags|=32,e.flags|=4):(t.flags&=-33,e.flags&=-5)}function Rr(t,e){return(!t||t&&!t.pendingBranch)&&e&&!e.persisted}function Da(t,e,s=!1){const n=t.children,l=e.children;if(mt(n)&&mt(l))for(let a=0;a<n.length;a++){const c=n[a];let o=l[a];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=l[a]=$e(l[a]),o.el=c.el),!s&&o.patchFlag!==-2&&Da(c,o)),o.type===Qs&&(o.patchFlag===-1&&(o=l[a]=$e(o)),o.el=c.el),o.type===Me&&!o.el&&(o.el=c.el)}}function Ir(t){const e=t.slice(),s=[0];let n,l,a,c,o;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(a=0,c=s.length-1;a<c;)o=a+c>>1,t[s[o]]<_?a=o+1:c=o;_<t[s[a]]&&(a>0&&(e[n]=s[a-1]),s[a]=n)}}for(a=s.length,c=s[a-1];a-- >0;)s[a]=c,c=e[c];return s}function Pa(t){const e=t.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:Pa(e)}function bl(t){if(t)for(let e=0;e<t.length;e++)t[e].flags|=8}function La(t){if(t.placeholder)return t.placeholder;const e=t.component;return e?La(e.subTree):null}const Ra=t=>t.__isSuspense;function Hr(t,e){e&&e.pendingBranch?mt(t)?e.effects.push(...t):e.effects.push(t):Vo(t)}const ct=Symbol.for("v-fgt"),Qs=Symbol.for("v-txt"),Me=Symbol.for("v-cmt"),Es=Symbol.for("v-stc"),Ne=[];let ee=null;function S(t=!1){Ne.push(ee=t?null:[])}function Ia(){Ne.pop(),ee=Ne[Ne.length-1]||null}let ps=1;function $l(t,e=!1){ps+=t,t<0&&ee&&e&&(ee.hasOnce=!0)}function Ha(t){return t.dynamicChildren=ps>0?ee||Re:null,Ia(),ps>0&&ee&&ee.push(t),t}function E(t,e,s,n,l,a){return Ha(i(t,e,s,n,l,a,!0))}function Nt(t,e,s,n,l){return Ha(At(t,e,s,n,l,!0))}function Na(t){return t?t.__v_isVNode===!0:!1}function Ze(t,e){return t.type===e.type&&t.key===e.key}const Ba=({key:t})=>t??null,Fs=({ref:t,ref_key:e,ref_for:s})=>(typeof t=="number"&&(t=""+t),t!=null?Dt(t)||Kt(t)||vt(t)?{i:te,r:t,k:e,f:!!s}:t:null);function i(t,e=null,s=null,n=0,l=null,a=t===ct?0:1,c=!1,o=!1){const u={__v_isVNode:!0,__v_skip:!0,type:t,props:e,key:e&&Ba(e),ref:e&&Fs(e),scopeId:ma,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:a,patchFlag:n,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:te};return o?(Ls(u,s),a&128&&t.normalize(u)):s&&(u.shapeFlag|=Dt(s)?8:16),ps>0&&!c&&ee&&(u.patchFlag>0||a&6)&&u.patchFlag!==32&&ee.push(u),u}const At=Nr;function Nr(t,e=null,s=null,n=0,l=null,a=!1){if((!t||t===fr)&&(t=Me),Na(t)){const o=Ye(t,e,!0);return s&&Ls(o,s),ps>0&&!a&&ee&&(o.shapeFlag&6?ee[ee.indexOf(t)]=o:ee.push(o)),o.patchFlag=-2,o}if(ti(t)&&(t=t.__vccOpts),e){e=Br(e);let{class:o,style:u}=e;o&&!Dt(o)&&(e.class=Qt(o)),Ct(u)&&(Wn(u)&&!mt(u)&&(u=Ht({},u)),e.style=Lt(u))}const c=Dt(t)?1:Ra(t)?128:Js(t)?64:Ct(t)?4:vt(t)?2:0;return i(t,e,s,n,l,c,a,!0)}function Br(t){return t?Wn(t)||Ea(t)?Ht({},t):t:null}function Ye(t,e,s=!1,n=!1){const{props:l,ref:a,patchFlag:c,children:o,transition:u}=t,_=e?Kr(l||{},e):l,h={__v_isVNode:!0,__v_skip:!0,type:t.type,props:_,key:_&&Ba(_),ref:e&&e.ref?s&&a?mt(a)?a.concat(Fs(e)):[a,Fs(e)]:Fs(e):a,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:o,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:e&&t.type!==ct?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&&Ye(t.ssContent),ssFallback:t.ssFallback&&Ye(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce,cacheIndex:t.cacheIndex};return u&&n&&Un(h,u.clone(h)),h}function pt(t=" ",e=0){return At(Qs,null,t,e)}function Wr(t,e){const s=At(Es,null,t);return s.staticCount=e,s}function bt(t="",e=!1){return e?(S(),Nt(Me,null,t)):At(Me,null,t)}function pe(t){return t==null||typeof t=="boolean"?At(Me):mt(t)?At(ct,null,t.slice()):Na(t)?$e(t):At(Qs,null,String(t))}function $e(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:Ye(t)}function Ls(t,e){let s=0;const{shapeFlag:n}=t;if(e==null)e=null;else if(mt(e))s=16;else if(typeof e=="object")if(n&65){const l=e.default;l&&(l._c&&(l._d=!1),Ls(t,l()),l._c&&(l._d=!0));return}else{s=32;const l=e._;!l&&!Ea(e)?e._ctx=te:l===3&&te&&(te.slots._===1?e._=1:(e._=2,t.patchFlag|=1024))}else if(vt(e)){if(n&65){Ls(t,{default:e});return}e={default:e,_ctx:te},s=32}else e=String(e),n&64?(s=16,e=[pt(e)]):s=8;t.children=e,t.shapeFlag|=s}function Kr(...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=Qt([e.class,n.class]));else if(l==="style")e.style=Lt([e.style,n.style]);else if(Bs(l)){const a=e[l],c=n[l];c&&a!==c&&!(mt(a)&&a.includes(c))?e[l]=a?[].concat(a,c):c:c==null&&a==null&&!Ws(l)&&(e[l]=c)}else l!==""&&(e[l]=n[l])}return e}function ce(t,e,s,n=null){ae(t,e,7,[s,n])}const Ur=ka();let Vr=0;function zr(t,e,s){const n=t.type,l=(e?e.appContext:t.appContext)||Ur,a={uid:Vr++,vnode:t,type:n,parent:e,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new mo(!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:Oa(n,l),emitsOptions:Ma(n,l),emit:null,emitted:null,propsDefaults:Ft,inheritAttrs:n.inheritAttrs,ctx:Ft,data:Ft,props:Ft,attrs:Ft,slots:Ft,refs:Ft,setupState:Ft,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 a.ctx={_:a},a.root=e?e.root:a,a.emit=kr.bind(null,a),t.ce&&t.ce(a),a}let Wt=null;const Gr=()=>Wt||te;let Rs,fs;{const t=Vs(),e=(s,n)=>{let l;return(l=t[s])||(l=t[s]=[]),l.push(n),a=>{l.length>1?l.forEach(c=>c(a)):l[0](a)}};Rs=e("__VUE_INSTANCE_SETTERS__",s=>Wt=s),fs=e("__VUE_SSR_SETTERS__",s=>hs=s)}const $s=t=>{const e=Wt;return Rs(t),t.scope.on(),()=>{t.scope.off(),Rs(e)}},yl=()=>{Wt&&Wt.scope.off(),Rs(null)};function Wa(t){return t.vnode.shapeFlag&4}let hs=!1;function Yr(t,e=!1,s=!1){e&&fs(e);const{props:n,children:l}=t.vnode,a=Wa(t);Fr(t,n,a,e),qr(t,l,s||e);const c=a?Jr(t,e):void 0;return e&&fs(!1),c}function Jr(t,e){const s=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,mr);const{setup:n}=s;if(n){we();const l=t.setupContext=n.length>1?Zr(t):null,a=$s(t),c=bs(n,t,0,[t.props,l]),o=Wl(c);if(ke(),a(),(o||t.sp)&&!rs(t)&&ba(t),o){if(c.then(yl,yl),e)return c.then(u=>{fs(!0);try{xl(t,u,e)}finally{fs(!1)}}).catch(u=>{Ys(u,t,0)});t.asyncDep=c}else xl(t,c)}else Ka(t)}function xl(t,e,s){vt(e)?t.type.__ssrInlineRender?t.ssrRender=e:t.render=e:Ct(e)&&(t.setupState=ua(e)),Ka(t)}function Ka(t,e,s){const n=t.type;t.render||(t.render=n.render||he);{const l=$s(t);we();try{_r(t)}finally{ke(),l()}}}const Xr={get(t,e){return Bt(t,"get",""),t[e]}};function Zr(t){const e=s=>{t.exposed=s||{}};return{attrs:new Proxy(t.attrs,Xr),slots:t.slots,emit:t.emit,expose:e}}function tn(t){return t.exposed?t.exposeProxy||(t.exposeProxy=new Proxy(ua(Do(t.exposed)),{get(e,s){if(s in e)return e[s];if(s in is)return is[s](t)},has(e,s){return s in e||s in is}})):t.proxy}function Qr(t,e=!0){return vt(t)?t.displayName||t.name:t.name||e&&t.__name}function ti(t){return vt(t)&&"__vccOpts"in t}const Y=(t,e)=>Ho(t,e,hs),ei="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 wl=typeof window<"u"&&window.trustedTypes;if(wl)try{Cn=wl.createPolicy("vue",{createHTML:t=>t})}catch{}const Ua=Cn?t=>Cn.createHTML(t):t=>t,si="http://www.w3.org/2000/svg",ni="http://www.w3.org/1998/Math/MathML",be=typeof document<"u"?document:null,kl=be&&be.createElement("template"),li={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"?be.createElementNS(si,t):e==="mathml"?be.createElementNS(ni,t):s?be.createElement(t,{is:s}):be.createElement(t);return t==="select"&&n&&n.multiple!=null&&l.setAttribute("multiple",n.multiple),l},createText:t=>be.createTextNode(t),createComment:t=>be.createComment(t),setText:(t,e)=>{t.nodeValue=e},setElementText:(t,e)=>{t.textContent=e},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>be.querySelector(t),setScopeId(t,e){t.setAttribute(e,"")},insertStaticContent(t,e,s,n,l,a){const c=s?s.previousSibling:e.lastChild;if(l&&(l===a||l.nextSibling))for(;e.insertBefore(l.cloneNode(!0),s),!(l===a||!(l=l.nextSibling)););else{kl.innerHTML=Ua(n==="svg"?`<svg>${t}</svg>`:n==="mathml"?`<math>${t}</math>`:t);const o=kl.content;if(n==="svg"||n==="mathml"){const u=o.firstChild;for(;u.firstChild;)o.appendChild(u.firstChild);o.removeChild(u)}e.insertBefore(o,s)}return[c?c.nextSibling:e.firstChild,s?s.previousSibling:e.lastChild]}},ai=Symbol("_vtc");function oi(t,e,s){const n=t[ai];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?t.removeAttribute("class"):s?t.setAttribute("class",e):t.className=e}const Is=Symbol("_vod"),Va=Symbol("_vsh"),ri={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[Va]=!e}const ii=Symbol(""),ci=/(?:^|;)\s*display\s*:/;function ui(t,e,s){const n=t.style,l=Dt(s);let a=!1;if(s&&!l){if(e)if(Dt(e))for(const c of e.split(";")){const o=c.slice(0,c.indexOf(":")).trim();s[o]==null&&ss(n,o,"")}else for(const c in e)s[c]==null&&ss(n,c,"");for(const c in s){c==="display"&&(a=!0);const o=s[c];o!=null?pi(t,c,!Dt(e)&&e?e[c]:void 0,o)||ss(n,c,o):ss(n,c,"")}}else if(l){if(e!==s){const c=n[ii];c&&(s+=";"+c),n.cssText=s,a=ci.test(s)}}else e&&t.removeAttribute("style");Is in t&&(t[Is]=a?n.display:"",t[Va]&&(n.display="none"))}const ks=/\s*!important$/;function ss(t,e,s){if(mt(s))s.forEach(n=>ss(t,e,n));else if(s==null&&(s=""),e.startsWith("--"))ks.test(s)?t.setProperty(e,s.replace(ks,""),"important"):t.setProperty(e,s);else{const n=di(t,e);ks.test(s)?t.setProperty(qe(n),s.replace(ks,""),"important"):t[n]=s}}const Ml=["Webkit","Moz","ms"],un={};function di(t,e){const s=un[e];if(s)return s;let n=Yt(e);if(n!=="filter"&&n in t)return un[e]=n;n=Us(n);for(let l=0;l<Ml.length;l++){const a=Ml[l]+n;if(a in t)return un[e]=a}return e}function pi(t,e,s,n){return t.tagName==="TEXTAREA"&&(e==="width"||e==="height")&&Dt(n)&&s===n}const Sl="http://www.w3.org/1999/xlink";function Tl(t,e,s,n,l,a=po(e)){n&&e.startsWith("xlink:")?s==null?t.removeAttributeNS(Sl,e.slice(6,e.length)):t.setAttributeNS(Sl,e,s):s==null||a&&!zl(s)?t.removeAttribute(e):t.setAttribute(e,a?"":_e(s)?String(s):s)}function Cl(t,e,s,n,l){if(e==="innerHTML"||e==="textContent"){s!=null&&(t[e]=e==="innerHTML"?Ua(s):s);return}const a=t.tagName;if(e==="value"&&a!=="PROGRESS"&&!a.includes("-")){const o=a==="OPTION"?t.getAttribute("value")||"":t.value,u=s==null?t.type==="checkbox"?"on":"":String(s);(o!==u||!("_value"in t))&&(t.value=u),s==null&&t.removeAttribute(e),t._value=s;return}let c=!1;if(s===""||s==null){const o=typeof t[e];o==="boolean"?s=zl(s):s==null&&o==="string"?(s="",c=!0):o==="number"&&(s=0,c=!0)}try{t[e]=s}catch{}c&&t.removeAttribute(l||e)}function Ve(t,e,s,n){t.addEventListener(e,s,n)}function fi(t,e,s,n){t.removeEventListener(e,s,n)}const El=Symbol("_vei");function hi(t,e,s,n,l=null){const a=t[El]||(t[El]={}),c=a[e];if(n&&c)c.value=n;else{const[o,u]=vi(e);if(n){const _=a[e]=$i(n,l);Ve(t,o,_,u)}else c&&(fi(t,o,c,u),a[e]=void 0)}}const mi=/(Once|Passive|Capture)$/,_i=/^on:?(?:Once|Passive|Capture)$/;function vi(t){let e,s;for(;(s=t.match(mi))&&!_i.test(t);)e||(e={}),t=t.slice(0,t.length-s[1].length),e[s[1].toLowerCase()]=!0;return[t[2]===":"?t.slice(3):qe(t.slice(2)),e]}let dn=0;const gi=Promise.resolve(),bi=()=>dn||(gi.then(()=>dn=0),dn=Date.now());function $i(t,e){const s=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=s.attached)return;const l=s.value;if(mt(l)){const a=n.stopImmediatePropagation;n.stopImmediatePropagation=()=>{a.call(n),n._stopped=!0};const c=l.slice(),o=[n];for(let u=0;u<c.length&&!n._stopped;u++){const _=c[u];_&&ae(_,e,5,o)}}else ae(l,e,5,[n])};return s.value=t,s.attached=bi(),s}const Fl=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,yi=(t,e,s,n,l,a)=>{const c=l==="svg";e==="class"?oi(t,n,c):e==="style"?ui(t,s,n):Bs(e)?Ws(e)||hi(t,e,s,n,a):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):xi(t,e,n,c))?(Cl(t,e,n),!t.tagName.includes("-")&&(e==="value"||e==="checked"||e==="selected")&&Tl(t,e,n,c,a,e!=="value")):t._isVueCE&&(wi(t,e)||t._def.__asyncLoader&&(/[A-Z]/.test(e)||!Dt(n)))?Cl(t,Yt(e),n,a,e):(e==="true-value"?t._trueValue=n:e==="false-value"&&(t._falseValue=n),Tl(t,e,n,c))};function xi(t,e,s,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in t&&Fl(e)&&vt(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 Fl(e)&&Dt(s)?!1:e in t}function wi(t,e){const s=t._def.props;if(!s)return!1;const n=Yt(e);return Array.isArray(s)?s.some(l=>Yt(l)===n):Object.keys(s).some(l=>Yt(l)===n)}const Ol=t=>{const e=t.props["onUpdate:modelValue"]||!1;return mt(e)?s=>Ts(e,s):e};function ki(t){t.target.composing=!0}function Al(t){const e=t.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const Ms=Symbol("_assign"),Ss=Symbol("_initialValue");function pn(t,e,s){return e&&(t=t.trim()),s&&(t=Pn(t)),t}const jl={created(t,{modifiers:{lazy:e,trim:s,number:n}},l){t.parentNode&&(t.type==="text"?t[Ss]=t.defaultValue.replace(/[\r\n]/g,""):t.type==="textarea"&&(t[Ss]=t.defaultValue.replace(/\r\n?/g,`
  18. `))),t[Ms]=Ol(l);const a=n||l.props&&l.props.type==="number";Ve(t,e?"change":"input",c=>{c.target.composing||t[Ms](pn(t.value,s,a))}),(s||a)&&Ve(t,"change",()=>{t.value=pn(t.value,s,a)}),e||(Ve(t,"compositionstart",ki),Ve(t,"compositionend",Al),Ve(t,"change",Al))},mounted(t,{value:e,modifiers:{trim:s,number:n}}){const l=e??"",a=t[Ss];delete t[Ss],a!==void 0&&(t.type==="text"||t.type==="textarea")&&t.value!==a?t[Ms](pn(t.value,s,n)):t.value=l},beforeUpdate(t,{value:e,oldValue:s,modifiers:{lazy:n,trim:l,number:a}},c){if(t[Ms]=Ol(c),t.composing)return;const o=(a||t.type==="number")&&!/^0\d/.test(t.value)?Pn(t.value):t.value,u=e??"";if(o===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)}},Mi=["ctrl","shift","alt","meta"],Si={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)=>Mi.some(s=>t[`${s}Key`]&&!e.includes(s))},Ti=(t,e)=>{if(!t)return t;const s=t._withMods||(t._withMods={}),n=e.join(".");return s[n]||(s[n]=((l,...a)=>{for(let c=0;c<e.length;c++){const o=Si[e[c]];if(o&&o(l,e))return}return t(l,...a)}))},Ci={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ei=(t,e)=>{const s=t._withKeys||(t._withKeys={}),n=e.join(".");return s[n]||(s[n]=(l=>{if(!("key"in l))return;const a=qe(l.key);if(e.some(c=>c===a||Ci[c]===a))return t(l)}))},Fi=Ht({patchProp:yi},li);let ql;function Oi(){return ql||(ql=Pr(Fi))}const Ai=((...t)=>{const e=Oi().createApp(...t),{mount:s}=e;return e.mount=n=>{const l=qi(n);if(!l)return;const a=e._component;!vt(a)&&!a.render&&!a.template&&(a.template=l.innerHTML),l.nodeType===1&&(l.textContent="");const c=s(l,!1,ji(l));return l instanceof Element&&(l.removeAttribute("v-cloak"),l.setAttribute("data-v-app","")),c},e});function ji(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function qi(t){return Dt(t)?document.querySelector(t):t}const za={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 Di(t,e){const s=za[t],n=performance.now();try{const l=await fetch(s,{headers:{Accept:"application/json",...e?.body?{"Content-Type":"application/json"}:{}},...e}),a=await l.text();let c=a;try{c=JSON.parse(a)}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"],Pi={class:"card"},Li={class:"hint"},Ri=["disabled"],Ii={class:"hint"},Hi=Ut({__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 a(){s.value=!0,e.value=[],n.value=0;for(const c of fn){const o=await Di(c);e.value.push({name:c,path:o.path,ok:o.ok,status:o.status,ms:o.ms,keys:l(o.data),error:o.error}),n.value+=1}s.value=!1}return We(a),(c,o)=>(S(),E("section",Pi,[o[3]||(o[3]=i("h2",null,[pt("契约自检 "),i("small",null,"(后端结构与算法服务可达性;对拍基准见 docs/接口契约_前后端_v0.1.md)")],-1)),i("p",Li,[pt(" 进度 "+p(n.value)+"/"+p(d(fn).length)+' · 只判"通不通",不比数据值(值随数据变,锚点在 Python 侧的门禁里) ',1),i("button",{class:"re",disabled:s.value,onClick:a},"重跑",8,Ri)]),i("table",null,[o[0]||(o[0]=i("thead",null,[i("tr",null,[i("th",null,"接口"),i("th",null,"路径"),i("th",null,"状态"),i("th",null,"耗时"),i("th",null,"顶层键 / 形状")])],-1)),i("tbody",null,[(S(!0),E(ct,null,xt(e.value,u=>(S(),E("tr",{key:u.name,class:Qt({bad:!u.ok})},[i("td",null,p(u.name),1),i("td",null,[i("code",null,p(u.path),1)]),i("td",null,p(u.status),1),i("td",null,p(u.ms)+" ms",1),i("td",null,p(u.error||u.keys),1)],2))),128))])]),i("p",Ii,[pt(" 契约登记接口合计 "+p(Object.keys(d(za)).length)+" 条(本页抽样 "+p(d(fn).length)+" 条); 全量 42 条由 ",1),o[1]||(o[1]=i("code",null,"python scripts/http_contract_audit.py",-1)),o[2]||(o[2]=pt(" 在线复核。 ",-1))])]))}}),Ga={"app.data_missing":"暂无数据:产物尚未生成或已被清除。请到「系统维护」页执行「数据重算」(或在 /ops 控制台点「执行重算」),完成后本页会自动刷新。","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 r(t,e){let s=Ga[t]??t;if(e)for(const[n,l]of Object.entries(e))s=s.split(`{${n}}`).join(String(l));return s}const Ni=["overview","energy","component","vibration","generation","fault","decision","assistant","report","system","documents"],En=["overview","energy","component","fault","vibration","generation","decision","assistant","system","report","documents"],Bi={class:"eyebrow"},Wi={key:0,class:"panel"},Ki={class:"small",style:{color:"var(--critical)"}},Ui={key:1,class:"panel"},Vi={class:"small muted"},zi={class:"panel mb"},Gi={class:"small muted"},Yi={class:"panel mb"},Ji={class:"tblwrap"},Xi={style:{"margin-top":"4px"}},Zi={style:{width:"60%"}},Qi={style:{width:"16%"}},tc={style:{width:"24%"}},ec={class:"small"},sc={class:"small num"},nc={class:"small"},lc=["href","download"],ac=Ut({__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 We(async()=>{try{const a=await(await fetch("/api/delivery_docs")).json();a&&a.error?s.value=String(a.error):e.value=a&&a.docs||[]}catch(l){s.value=String(l&&l.message||l)}}),(l,a)=>(S(),E("section",null,[i("div",Bi,p(d(r)("doc.eyebrow")),1),s.value?(S(),E("div",Wi,[i("p",Ki,p(s.value),1)])):e.value?(S(),E(ct,{key:2},[i("div",zi,[i("h3",null,p(d(r)("doc.head",{n:e.value.length})),1),i("p",Gi,p(d(r)("doc.note")),1)]),i("div",Yi,[i("div",Ji,[i("table",Xi,[i("tr",null,[i("th",Zi,p(d(r)("doc.name")),1),i("th",Qi,p(d(r)("doc.size")),1),i("th",tc,p(d(r)("doc.get")),1)]),(S(!0),E(ct,null,xt(e.value,c=>(S(),E("tr",{key:c.name},[i("td",ec,p(c.name),1),i("td",sc,p(n(c.size||0)),1),i("td",nc,[i("a",{href:c.url,download:c.name},p(d(r)("doc.download")),9,lc)])]))),128))])])])],64)):(S(),E("div",Ui,[i("p",Vi,p(d(r)("doc.loading")),1)]))]))}}),oc={class:"portal-full"},rc={key:0,class:"portal-loading"},hn="/web/portal/",ic=Ut({__name:"PortalView",setup(t){const e=yt(null),s=yt("loading"),n=yt("");async function l(o){const u=await fetch(o);if(!u.ok)throw new Error(o+" "+u.status);return await u.text()}We(async()=>{try{let o=await l(hn+"shell.html");const u=o.match(/<title[^>]*>([^<]*)<\/title>/i);u&&u[1].trim()&&(document.title=u[1].trim());const _=Array.from(o.matchAll(/<!--@TEMPLATE:([^>]+?)-->/g)).map(y=>y[1]);_.forEach(y=>{o=o.replace("<!--@TEMPLATE:"+y+"-->",'<template id="'+y+'"></template>')});try{const y=await l(hn+"governance_sources.json");o=o.replace("<!--@GOVERNANCE_SOURCES-->",y.replace(/</g,"\\u003c"))}catch{}const h=[[/<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[y,q]of h)o=o.replace(y,q);const m=["cms","documents","recalc"];for(const y of m)o=o.replace(new RegExp('<a[^>]*data-nav="'+y+'"[^>]*>[^<]*</a>',"g"),"");n.value=r("pv.assembled",{n:_.length});const v=new Blob([o],{type:"text/html;charset=utf-8"});e.value&&(e.value.src=URL.createObjectURL(v)),c(),a(_),s.value="ready"}catch(o){n.value=String(o&&o.message||o),s.value="error"}});async function a(o){let _=0,h=0;const m=async()=>{for(;_<o.length;){const v=o[_++];try{const y=await fetch(hn+"templates/"+encodeURIComponent(v)+".html",{cache:"force-cache"}),q=y.ok?await y.text():"",B=e.value&&e.value.contentDocument,tt=B&&B.getElementById(v);if(B&&tt){const lt=B.createElement("template");lt.id=v,lt.innerHTML=q,tt.replaceWith(lt)}}catch{}h++,n.value=r("pv.assembled",{n:h})}};await Promise.all(Array.from({length:6},()=>m()))}function c(){const o=[['nav a[data-nav="cms"]',"#tab=vibration"],['nav a[data-nav="documents"]',"#tab=documents"],['nav a[data-nav="recalc"]',"#tab=recalc"]],u=()=>{const h=e.value&&e.value.contentDocument;if(!h)return;const m=q=>B=>{B.preventDefault(),B.stopImmediatePropagation();const tt=window.top;try{tt.location.href=q}catch{location.href=q}};for(const[q,B]of o){const tt=h.querySelector(q);tt&&tt.addEventListener("click",m("/detail/v2"+B),!0)}const v=h.querySelector("nav a:not([data-nav])")||h.querySelector('a[href*="18033"]');v&&v.addEventListener("click",m("/detail/v2#workbench"),!0);const y=h.querySelector("a.portal-wb");y&&y.addEventListener("click",m("/detail/v2#workbench"),!0)},_=e.value;_&&(_.addEventListener("load",u),u())}return(o,u)=>(S(),E("div",oc,[s.value!=="ready"?(S(),E("div",rc,p(s.value==="loading"?d(r)("pv.loading"):n.value),1)):bt("",!0),u[0]||(u[0]=i("a",{class:"portal-wb",href:"#workbench",title:"切换到 Vue 工作台"},"工作台",-1)),i("iframe",{ref_key:"frame",ref:e,class:"portal-frame",title:"观澜门户"},null,512)]))}}),Ya=(t,e)=>{const s=t.__vccOpts||t;for(const[n,l]of e)s[n]=l;return s},Ja=Ya(ic,[["__scopeId","data-v-77ae2ea1"]]),Yn=["叶片与叶根","变桨","偏航","齿轮箱","发电机","主轴承","变流器","塔架与基础","主控与传感网"],ms={叶片与叶根:"blade",变桨:"pitch",偏航:"yaw",齿轮箱:"gearbox",发电机:"generator",主轴承:"main_bearing",变流器:"converter",塔架与基础:"tower",主控与传感网:"control",主轴:"main_bearing",其他:"other"},Xa=(()=>{const t={};for(const e of Yn)t[ms[e]]=e;for(const[e,s]of Object.entries(ms))s in t||(t[s]=e);return t})(),Hs=t=>ms[String(t)]||String(t),Dl=t=>Xa[String(t)]||String(t),me=t=>{const e=ms[String(t)]||String(t);return Xa[e]?r("sys."+e):String(t??"")},_s=t=>me(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)],Fn={证据:"evidence",机制:"mechanism",判级:"rating",排期:"schedule",动作:"action",验收:"acceptance"},On=t=>"st."+(t==="ex"?"excellent":t),qt=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})},Pl=t=>{const e=Ns(t);return e?r(On(e)):String(t??"")},dc=["振动","温度","润滑","油液","报警","工单"];function Ll(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 Rl={bad:"critical",warn:"warning",unk:"unknown",ok:"good",ex:"excellent"},Se=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"}},$c={class:"r",style:{width:"96px"}},yc=["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"},Oc={key:1,class:"panel"},Ac={class:"small"},jc={key:0},qc={class:"panel mb small",style:{"border-left":"3px solid var(--accent)"}},Dc={class:"eyebrow"},Pc={class:"panel mb"},Lc={style:{display:"grid","grid-template-columns":"repeat(auto-fit,minmax(170px,1fr))",gap:"10px"}},Rc=["data-sys"],Ic={class:"t"},Hc={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"},au={class:"r"},ou={class:"small"},ru={class:"small muted"},iu={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=Ut({__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?Dl(e.sys):null),a=Y(()=>Yn.filter(h=>s.value[h]).map(h=>{const m=s.value[h],v=m.报警||0,y=m.不可判||0,q=Object.values(m).reduce((tt,lt)=>tt+lt,0)||1,B=v>=8?"var(--critical)":v>=3?"var(--warning)":v?"var(--accent)":"var(--good)";return{segs:[["报警","critical"],["不可判","unknown"],["良好","good"],["优秀","excellent"]].filter(([tt])=>m[tt]).map(([tt,lt])=>({col:lt,w:(m[tt]/q*100).toFixed(1)})),line:r("cmp.alarm_n",{a:`<b style="color:${B}">${v}</b>`})+(y?r("cmp.unk_n",{u:y}):"")+r("cmp.fleet_n",{n:q}),s:h,dist:m,a:v,u:y,N:q,col:B}}));function c(h){return(h.syss||[]).map(m=>`<a href="/problem/${h.t}/${encodeURIComponent(Dl(m)||m)}">${me(m)}</a>`).join(" · ")}const o=Y(()=>{const m=(((e.d?.control||{}).energy||{}).items||[]).filter(v=>v.k==="停机").map(v=>v.h)[0];return m??null}),u=Y(()=>{const h=n.value?.表||[],m=Math.max(1,...h.map(v=>v.停机时长h));return h.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 h=l.value;if(!h)return null;const m=(e.d?.systems||{})[h]||[],v=s.value[h]||{},y=(e.d?.systems||{})[h+"·良好"]||[],q=tt=>v[tt]||0,B=Object.values(v).reduce((tt,lt)=>tt+lt,0)||1;return{s:h,N:B,gd:y,cnt:q,al:m.filter(tt=>tt.st==="报警"),un:m.filter(tt=>tt.st==="不可判"),dist:v}});return(h,m)=>_.value?(S(),E("section",pc,[i("p",fc,[i("a",hc,p(d(r)("ui.back_to",{tab:d(r)("tab.component")})),1)]),i("div",mc,[i("h3",null,p(d(r)("cmp.detail_head",{sys:d(me)(_.value.s),n:_.value.N})),1),i("div",_c,[(S(),E(ct,null,xt([["报警","critical"],["不可判","unknown"],["良好","good"],["优秀","excellent"]],([v,y])=>i("i",{key:v,style:Lt(`width:${(_.value.cnt(v)/_.value.N*100).toFixed(1)}%;background:var(--${y})`)},null,4)),64))]),i("div",vc,p(d(r)("cmp.counts",{a:_.value.cnt("报警"),u:_.value.cnt("不可判"),g:_.value.cnt("良好"),e:_.value.cnt("优秀")})),1)]),(S(!0),E(ct,null,xt([_.value.al,_.value.un],(v,y)=>wn((S(),E("div",{key:y,class:"panel mb"},[i("h3",null,p(y===0?d(r)("cmp.alarm_units"):d(r)("cmp.unk_units"))+" "+p(d(r)("cmp.n_units",{n:v.length})),1),i("div",gc,[i("table",null,[i("tr",null,[i("th",bc,p(d(r)("ui.unit")),1),i("th",null,p(d(r)("cmp.why")),1),i("th",$c,p(d(r)("cmp.detail")),1)]),(S(!0),E(ct,null,xt(v,q=>(S(),E("tr",{key:q.t},[i("td",null,[i("a",{href:`/turbine/${q.t}`},[i("b",null,p(d(qt)(q.t)),1)],8,yc)]),i("td",xc,p(q.why),1),i("td",wc,[i("a",{class:"small",href:`/problem/${q.t}/${encodeURIComponent(_.value.s)}`},p(d(r)("cmp.detail_link")),9,kc)])]))),128))])])])),[[ri,v.length]])),128)),_.value.gd.length?(S(),E("details",Mc,[i("summary",Sc,p(d(r)("cmp.good_units",{n:_.value.gd.length})),1),i("div",Tc,[i("table",Cc,[i("tr",null,[i("th",Ec,p(d(r)("ui.unit")),1),i("th",null,p(d(r)("cmp.why")),1)]),(S(!0),E(ct,null,xt(_.value.gd,v=>(S(),E("tr",{key:v.t},[i("td",null,[i("b",null,p(d(qt)(v.t)),1)]),i("td",Fc,p(v.why),1)]))),128))])])])):bt("",!0),!_.value.al.length&&!_.value.un.length&&!_.value.gd.length?(S(),E("div",Oc,[i("p",Ac,p(d(r)("cmp.none")),1)])):bt("",!0)])):(S(),E(ct,{key:1},[t.d.sysmx_pending?(S(),E("section",jc,[i("div",qc,[i("b",null,p(d(r)("cmp.grading_pending")),1),pt(" "+p(d(r)("cmp.grading_pending_why",{span:t.d.sysmx_span||""})),1)])])):bt("",!0),i("section",null,[i("div",Dc,p(d(r)("cmp.by_system")),1),i("div",Pc,[i("div",Lc,[(S(!0),E(ct,null,xt(a.value,v=>(S(),E("div",{key:v.s,class:"sysc",role:"button",tabindex:"0","data-sys":d(Hs)(v.s),style:Lt(`cursor:pointer;border-left:3px solid ${v.col}`)},[i("div",Ic,[i("b",null,p(d(me)(v.s)),1)]),i("div",Hc,[(S(!0),E(ct,null,xt(v.segs,y=>(S(),E("i",{key:y.col,style:Lt(`width:${y.w}%;background:var(--${y.col})`)},null,4))),128))]),i("div",{class:"small muted",innerHTML:v.line},null,8,Nc)],12,Rc))),128))]),i("p",Bc,p(d(r)("cmp.cards_note")),1)])]),t.d.rel&&t.d.rel.err?(S(),E("div",Wc,[i("p",Kc,p(d(r)("flt.block_err",{k:"rel",e:t.d.rel.err})),1)])):n.value?(S(),E(ct,{key:2},[i("div",Uc,p(d(r)("cmp.rel_eyebrow",{win:n.value.窗})),1),i("div",Vc,[i("h3",null,[pt(p(d(r)("cmp.rel_head"))+" ",1),i("span",zc,p(d(r)("cmp.rel_meta",{t:n.value.总停机h,a:n.value.设备类停机h,b:n.value.外部类停机h})),1)]),i("p",Gc,p(d(r)("cmp.rel_note",{h:o.value==null?"":" "+d(Tt)(o.value)+"h"})),1),i("div",Yc,[i("table",null,[i("tr",null,[i("th",null,p(d(r)("cmp.rel_part")),1),i("th",null,p(d(r)("cmp.rel_h")),1),i("th",Jc,p(d(r)("cmp.rel_ev")),1),i("th",Xc,p(d(r)("cmp.rel_mtbo")),1),i("th",Zc,p(d(r)("cmp.rel_mdt")),1),i("th",Qc,p(d(r)("cmp.rel_units")),1),i("th",null,p(d(r)("cmp.rel_fm")),1)]),(S(!0),E(ct,null,xt(u.value,v=>(S(),E("tr",{key:v.r.部件},[i("td",null,[i("b",null,p(d(_s)(v.r.部件)),1),m[0]||(m[0]=pt(" ",-1)),v.r.外部?(S(),E("span",tu,p(d(r)("cmp.external")),1)):bt("",!0)]),i("td",null,[i("i",{class:"bar",style:Lt(`width:${Math.round(v.r.停机时长h/v.maxH*72)}px;background:${v.sev}`)},null,4),i("span",eu,p(v.r.停机时长h)+"h · "+p((v.r.占停机*100).toFixed(1))+"%",1)]),i("td",su,p(v.r.事件数),1),i("td",nu,p(v.r.外部?"—":v.r.MTBF_h||"—"),1),i("td",lu,p(v.r.MDT_h),1),i("td",au,p(v.r.影响台数),1),i("td",ou,p(v.r.典型失效模式||"—"),1)]))),128))])]),i("p",ru,p(n.value.口径),1)])],64)):bt("",!0),t.d.fus&&!t.d.fus.err?(S(),E("div",iu,[i("p",cu,[pt(p(d(r)("cmp.fusion_moved"))+" ",1),i("a",uu,[i("b",null,p(d(r)("tab.vibration")),1)]),pt(" "+p(d(r)("cmp.fusion_n",{n:(t.d.fus.表||[]).length})),1)])])):bt("",!0),i("div",du,p(d(r)("cmp.cross_eyebrow")),1),i("div",pu,[i("h3",null,p(d(r)("cmp.watch_head",{n:(t.d.watch||[]).length})),1),i("div",fu,[i("table",null,[i("tr",null,[i("th",null,p(d(r)("ui.unit")),1),i("th",hu,p(d(r)("cmp.n_sys")),1),i("th",null,p(d(r)("cmp.hit_sys")),1),i("th",null,p(d(r)("cmp.basis")),1)]),(S(!0),E(ct,null,xt(t.d.watch||[],v=>(S(),E("tr",{key:v.t},[i("td",null,[i("a",{href:`/turbine/${v.t}`},[i("b",null,p(d(qt)(v.t)),1)],8,mu)]),i("td",_u,p(v.n),1),i("td",{class:"small",innerHTML:c(v)},null,8,vu),i("td",gu,p(v.why),1)]))),128))])])])],64))}}),$u=["innerHTML"],Xt=Ut({__name:"LegacyChart",props:{html:{}},setup(t){return(e,s)=>(S(),E("div",{class:"legacy-chart",innerHTML:t.html},null,8,$u))}}),yu=typeof window<"u"?window:globalThis;yu.__charts=function(t){const{t:e,fmt:s,esc:n,dv:l,EN:a}=t,c=/[㐀-鿿]/,o=F=>a&&c.test(String(F??"")),u=F=>(F=t.displayText?t.displayText(F):F==null?"":String(F),o(F)&&t.verb&&t.verb(),F),_=F=>{const J=u(F);return`<title${o(J)?' class="verbatim"':""}>${n(J)}</title>`},h=(F,J,X)=>`<svg class="dt" viewBox="0 0 ${F} ${J}" style="width:${F}px;max-width:100%;height:auto" role="img">${X}</svg>`,m=(F,J,X,j={})=>`<text x="${(+F).toFixed(1)}" y="${(+J).toFixed(1)}" font-size="${j.fs||9}" fill="${j.fill||"var(--muted)"}"${j.anchor?` text-anchor="${j.anchor}"`:""}${j.op?` opacity="${j.op}"`:""}${j.w?` font-weight="${j.w}"`:""}${j.tr?` transform="${j.tr}"`:""}${j.cls?` class="${j.cls}"`:""}>${X}</text>`,v=(F,J,X,j={})=>{const A=u(X);return m(F,J,n(A),o(A)?Object.assign({},j,{cls:"verbatim"}):j)},y={"限电·绑定":"loss.curtail_bound","限电命令·未绑定":"loss.curtail_unbound","停机(调度令)":"loss.dispatch",停机:"loss.stop",正常发电:"loss.normal",低风待机:"loss.lowwind"},q=F=>y[F]?e(y[F]):u(F);function B(F){const J=(F||[]).filter(x=>x&&x.n>0&&x.med>0);if(J.length<3)return`<p class="small muted">${e("ch.quad.few")}</p>`;const X=720,j=330,A=58,C=16,k=44,P=16,N=x=>Math.log10(x),K=J.map(x=>N(x.n)),Z=J.map(x=>N(x.med)),nt=Math.min(...K)-.15,at=Math.max(...K)+.15,et=Math.min(...Z)-.15,it=Math.max(...Z)+.15,_t=x=>A+(N(x)-nt)/(at-nt)*(X-A-C),D=x=>j-k-(N(x)-et)/(it-et)*(j-P-k),V=J.map(x=>x.n).sort((x,w)=>x-w),Q=V[Math.floor(V.length/2)],W=_t(Q),G=D(600),f=Math.max(...J.map(x=>x.nt)),g=J.map(x=>{const w=3+Math.sqrt(x.nt/f)*7,st=x.n>=Q&&x.med>=600,z=st?"var(--critical)":"var(--accent)";return`<circle cx="${_t(x.n).toFixed(1)}" cy="${D(x.med).toFixed(1)}" r="${w.toFixed(1)}" fill="${z}" fill-opacity=".5" stroke="${z}" stroke-width="1">${_(`${x.code} ${u(x.k)}
  19. `+e("ch.quad.tip",{n:x.n,med:x.med,h:x.h,nt:x.nt}))}</circle>`}).join(""),b=J.filter(x=>x.n>=Q||x.med>=600).slice(0,8).map(x=>m(_t(x.n)+9,D(x.med)+3,n(x.code))).join(""),$=(x,w,st,z)=>m(x,w,st,{fs:10,op:.85})+m(x,w+12,z,{fs:8.5,op:.6}),M=x=>x>=3600?x/3600+"h":x>=60?x/60+"min":x+"s",O=[10,60,600,3600,36e3].filter(x=>N(x)>=et&&N(x)<=it).map(x=>`<line x1="${A}" y1="${D(x).toFixed(1)}" x2="${X-C}" y2="${D(x).toFixed(1)}" stroke="var(--line)" stroke-opacity=".4"/>`+m(A-6,D(x)+3,M(x),{anchor:"end"})).join(""),L=[1,10,100,1e3,1e4].filter(x=>N(x)>=nt&&N(x)<=at).map(x=>m(_t(x),j-k+14,x,{anchor:"middle"})).join(""),I=P+(j-k-P)/2;return h(X,j,`${O}${L}
  20. <line x1="${W.toFixed(1)}" y1="${P}" x2="${W.toFixed(1)}" y2="${j-k}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".5"/>
  21. <line x1="${A}" y1="${G.toFixed(1)}" x2="${X-C}" y2="${G.toFixed(1)}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".5"/>
  22. ${$(A+6,P+12,e("ch.quad.q1"),e("ch.quad.q1s"))}${$(X-C-130,P+12,e("ch.quad.q2"),e("ch.quad.q2s"))}
  23. ${$(A+6,j-k-18,e("ch.quad.q3"),e("ch.quad.q3s"))}${$(X-C-130,j-k-18,e("ch.quad.q4"),e("ch.quad.q4s"))}
  24. ${g}${b}
  25. ${m(A+(X-C-A)/2,j-6,e("ch.quad.xlab"),{fs:9.5,anchor:"middle"})}
  26. ${m(14,I,e("ch.quad.ylab"),{fs:9.5,anchor:"middle",tr:`rotate(-90 14 ${I.toFixed(1)})`})}`)}function tt(F){const J=F.months||[],X=F.vals||[],j=F.cov||J.map(()=>1),A=F.per_day||[],C=720,k=250,P=48,N=14,K=52,Z=18,nt=J.length||1,at=Math.max(...A.filter(Q=>Q!=null),1),et=(C-P-N)/nt;let it="",_t="";J.forEach((Q,W)=>{const G=A[W],f=j[W]<.5;if(G==null)return;const g=G/at*(k-Z-K),b=P+W*et+et*.16,$=k-K-g,M=b+et*.34;it+=`<rect x="${b.toFixed(1)}" y="${$.toFixed(1)}" width="${(et*.68).toFixed(1)}" height="${g.toFixed(1)}" rx="2" fill="${f?"var(--muted)":"var(--accent)"}" fill-opacity="${f?.32:.8}" stroke="${f?"var(--warning)":"none"}" stroke-dasharray="${f?"3 2":""}"><title>${e("ch.rate.tip",{m:Q,v:G,n:X[W],cov:(j[W]*100).toFixed(0)})}</title></rect>`,_t+=m(M,$-4,G,{anchor:"middle"})+m(M,k-K+13,e("ch.rate.month",{m:Q.slice(5)}),{anchor:"middle"})+m(M,k-K+25,e("ch.rate.n",{n:X[W]}),{fs:8,op:.65,anchor:"middle"})+(f?m(M,k-K+37,e("ch.rate.days",{d:Math.round(j[W]*30)}),{fs:8,fill:"var(--warning)",anchor:"middle"}):"")});const D=[0,.5,1].map(Q=>m(P-6,k-K-Q*(k-Z-K)+3,Math.round(at*Q),{anchor:"end"})).join(""),V=Z+(k-K-Z)/2;return h(C,k,`<line x1="${P}" y1="${k-K}" x2="${C-N}" y2="${k-K}" stroke="var(--line)"/><line x1="${P}" y1="${Z}" x2="${P}" y2="${k-K}" stroke="var(--line)"/>
  27. ${it}${_t}${D}${m(14,V,e("ch.rate.ylab"),{fs:9.5,anchor:"middle",tr:`rotate(-90 14 ${V.toFixed(1)})`})}`)}function lt(F){if(!F||!F.theo)return"";const J=720,X=300,j=8,A=8,C=30,k=64,P=(F.items||[]).filter(D=>D.loss>0),N=P.length+2,K=(J-j-A)/N,Z=(X-C-k)/F.theo;let nt=F.theo,at="",et=0;const it=(D,V,Q,W,G)=>`<rect x="${(j+D*K+K*.14).toFixed(1)}" y="${V.toFixed(1)}" width="${(K*.72).toFixed(1)}" height="${Math.max(Q,1.2).toFixed(1)}" rx="2" fill="${W}" fill-opacity="${G}"/>`,_t=(D,V,Q,W,G)=>m(j+D*K+K*.5,V-6,W,{fs:10,fill:G||"var(--ink)",anchor:"middle",w:600})+m(j+D*K+K*.5,X-k+14,Q,{fs:8.5,anchor:"middle"});return at+=it(0,X-k-F.theo*Z,F.theo*Z,"var(--accent)",.45)+_t(0,X-k-F.theo*Z,e("ch.wf.theo"),s(F.theo)),P.forEach(D=>{et++;const V=X-k-nt*Z,Q=D.loss*Z;nt-=D.loss;const W=q(D.k);at+=it(et,V,Q,"var(--critical)",.55)+`<line x1="${(j+(et-1)*K+K*.86).toFixed(1)}" y1="${V.toFixed(1)}" x2="${(j+et*K+K*.14).toFixed(1)}" y2="${V.toFixed(1)}" stroke="var(--muted)" stroke-dasharray="2 2" stroke-opacity=".6"/>`+_t(et,V,n(W.length>12?W.slice(0,11)+"…":W),"−"+s(D.loss),"var(--critical)")+_(e("ch.wf.tip",{nm:W,loss:s(D.loss),pct:(D.loss/F.theo*100).toFixed(1),h:s(D.h)}))}),at+=it(N-1,X-k-F.act*Z,F.act*Z,"var(--good)",.6)+_t(N-1,X-k-F.act*Z,e("ch.wf.act"),s(F.act),"var(--good)"),h(J,X,`<line x1="${j}" y1="${X-k}" x2="${J-A}" y2="${X-k}" stroke="var(--line)"/>${m(j,14,"MWh",{fs:9.5})}${at}`)}function R(F,J){const X=(F||[]).filter(w=>w.MTBF_h&&w.MDT_h);if(X.length<3)return`<p class="small muted">${e("ch.ram.few")}</p>`;const j=720,A=340,C=56,k=112,P=48,N=16,K=w=>Math.log10(w),Z=X.map(w=>K(w.MTBF_h)),nt=X.map(w=>w.MDT_h),at=Math.min(...Z)-.08,et=Math.max(...Z)+.08,it=0,_t=Math.max(...nt)*1.12,D=w=>C+(K(w)-at)/(et-at)*(j-C-k),V=w=>A-P-(w-it)/(_t-it)*(A-N-P),Q=w=>{const st=w.slice().sort((z,rt)=>z-rt);return st[Math.floor(st.length/2)]},W=Q(X.map(w=>w.MTBF_h)),G=Q(nt),f=D(W),g=V(G),b=Math.max(...X.map(w=>w.停机时长h)),$=w=>u(J?J(w.部件):w.部件),M=X.map(w=>{const st=4+Math.sqrt(w.停机时长h/b)*13,z=w.外部,rt=w.MTBF_h<W&&w.MDT_h>=G,ut=z?"var(--muted)":rt?"var(--critical)":"var(--accent)";return`<circle cx="${D(w.MTBF_h).toFixed(1)}" cy="${V(w.MDT_h).toFixed(1)}" r="${st.toFixed(1)}" fill="${ut}" fill-opacity="${z?.3:.42}" stroke="${ut}" stroke-width="1.2" stroke-dasharray="${z?"3 2":""}">${_(e("ch.ram.tip",{p:$(w),mtbf:w.MTBF_h,mdt:w.MDT_h,h:w.停机时长h,n:w.事件数,u:w.影响台数})+(z?e("ch.ram.tip_ext"):""))}</circle>`+v(D(w.MTBF_h)+st+4,V(w.MDT_h)+3.5,u($(w)).slice(0,a?14:7),{fs:9.5,fill:z?"var(--muted)":"currentColor"})}).join(""),O=(w,st,z,rt,ut)=>m(w,st,rt,{fs:10,anchor:z,op:.9})+m(w,st+12,ut,{fs:8.5,anchor:z,op:.62}),L=[1e3,2e3,5e3,1e4,2e4].filter(w=>K(w)>=at&&K(w)<=et).map(w=>`<line x1="${D(w).toFixed(1)}" y1="${N}" x2="${D(w).toFixed(1)}" y2="${A-P}" stroke="var(--line)" stroke-opacity=".3"/>`+m(D(w),A-P+14,w>=1e3?w/1e3+"k":w,{anchor:"middle"})).join(""),I=[0,5,10,15,20].filter(w=>w<=_t).map(w=>m(C-6,V(w)+3,w,{anchor:"end"})).join(""),x=N+(A-P-N)/2;return h(j,A,`${L}${I}<line x1="${C}" y1="${A-P}" x2="${j-k}" y2="${A-P}" stroke="var(--line)"/><line x1="${C}" y1="${N}" x2="${C}" y2="${A-P}" stroke="var(--line)"/>
  28. <line x1="${f.toFixed(1)}" y1="${N}" x2="${f.toFixed(1)}" y2="${A-P}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".45"/>
  29. <line x1="${C}" y1="${g.toFixed(1)}" x2="${j-k}" y2="${g.toFixed(1)}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".45"/>
  30. ${O(C+6,N+12,"start",e("ch.ram.q1"),e("ch.ram.q1s"))}${O(j-k-6,N+12,"end",e("ch.ram.q2"),e("ch.ram.q2s"))}
  31. ${O(C+6,A-P-16,"start",e("ch.ram.q3"),e("ch.ram.q3s"))}${O(j-k-6,A-P-16,"end",e("ch.ram.q4"),e("ch.ram.q4s"))}
  32. ${M}${m(C+(j-k-C)/2,A-8,e("ch.ram.xlab"),{fs:9.5,anchor:"middle"})}
  33. ${m(13,x,e("ch.ram.ylab"),{fs:9.5,anchor:"middle",tr:`rotate(-90 13 ${x.toFixed(1)})`})}
  34. <circle cx="${j-k+16}" cy="${N+40}" r="5" fill="var(--accent)" fill-opacity=".42" stroke="var(--accent)"/>${m(j-k+26,N+44,e("ch.ram.equip"))}
  35. <circle cx="${j-k+16}" cy="${N+58}" r="5" fill="var(--muted)" fill-opacity=".3" stroke="var(--muted)" stroke-dasharray="3 2"/>${m(j-k+26,N+62,e("ch.ram.ext"))}
  36. ${m(j-k+6,N+84,e("ch.ram.area"),{fs:8.5})}${m(j-k+6,N+98,e("ch.ram.median"),{fs:8.5})}`)}function U(F,J){const X=(F||[]).find(at=>at.部件==="无记录停机"),j=X?X.停机时长h:0,A=(F||[]).filter(at=>at.部件==="未归类").reduce((at,et)=>at+et.停机时长h,0),C=J-j-A,k=720,P=54,N=(at,et,it,_t)=>`<rect x="${at.toFixed(1)}" y="14" width="${Math.max(et,1).toFixed(1)}" height="22" rx="3" fill="${it}" fill-opacity="${_t}"/>`,K=C/J*k,Z=A/J*k,nt=j/J*k;return h(k,P,`${N(0,K,"var(--accent)",.55)}${N(K,Z,"var(--warning)",.5)}${N(K+Z,nt,"var(--critical)",.5)}
  37. ${m(4,10,e("ch.attrib.ok",{h:Math.round(C),p:(C/J*100).toFixed(0)}))}
  38. ${m(K+Z+nt-2,10,e("ch.attrib.none",{h:Math.round(j),p:(j/J*100).toFixed(0)}),{fill:"var(--critical)",anchor:"end"})}
  39. ${m(K+Z/2,50,e("ch.attrib.uncls",{h:Math.round(A)}),{fill:"var(--warning)",anchor:"middle"})}`)}function T(F,J,X){const j=(F||[]).filter($=>$&&$.v>0);if(!j.length)return`<p class="small muted">${e("ch.pareto.none")}</p>`;const A=520,C=236,k=46,P=40,N=40,K=14,Z=j.length,nt=j.reduce(($,M)=>$+M.v,0),at=Math.max(...j.map($=>$.v)),et=(A-k-P)/Z,it=$=>{$=u($);const M=String($).match(/^([0-9]+)/);return M?M[1]:String($).slice(0,4)};let _t=0,D="",V=[],Q="",W=null;j.forEach(($,M)=>{const O=$.v/at*(C-K-N),L=k+M*et+et*.14,I=C-N-O;D+=`<rect x="${L.toFixed(1)}" y="${I.toFixed(1)}" width="${(et*.72).toFixed(1)}" height="${O.toFixed(1)}" rx="2" fill="var(--accent)" fill-opacity="${M<3?.85:.45}">${_(`${u($.k)}: ${s($.v)}${J}`)}</rect>`,_t+=$.v;const x=_t/nt;W===null&&x>=.8&&(W=M+1);const w=k+M*et+et/2,st=K+(1-x)*(C-K-N);V.push(`${w.toFixed(1)},${st.toFixed(1)}`),Q+=`<circle cx="${w.toFixed(1)}" cy="${st.toFixed(1)}" r="2.4" fill="var(--warning)">${_(e("ch.pareto.cumtip",{k:u($.k),p:(x*100).toFixed(0)}))}</circle>`});const G=K+.2*(C-K-N),f=j.map(($,M)=>v(k+M*et+et/2,C-N+13,it($.k),{anchor:"middle"})).join(""),g=[0,.5,1].map($=>m(k-5,C-N-$*(C-K-N)+3,s(Math.round(at*$)),{anchor:"end"})).join("")+[0,.5,1].map($=>m(A-P+5,K+(1-$)*(C-K-N)+3,Math.round($*100)+"%",{fill:"var(--warning)"})).join(""),b=j.slice(0,3).map($=>`<b>${o(it($.k))?`<span class="verbatim">${n(u(it($.k)))}</span>`:n(it($.k))}</b> ${l(u($.k).replace(/^[0-9]+ */,"").slice(0,18))}`).join(" · ");return h(A,C,`<line x1="${k}" y1="${C-N}" x2="${A-P}" y2="${C-N}" stroke="var(--line)"/><line x1="${k}" y1="${K}" x2="${k}" y2="${C-N}" stroke="var(--line)"/>${D}
  40. <line x1="${k}" y1="${G.toFixed(1)}" x2="${A-P}" y2="${G.toFixed(1)}" stroke="var(--warning)" stroke-dasharray="4 3" stroke-opacity=".7"/>
  41. ${m(A-P-3,G-4,e("ch.pareto.cum80"),{fill:"var(--warning)",anchor:"end"})}
  42. <polyline points="${V.join(" ")}" fill="none" stroke="var(--warning)" stroke-width="1.5"/>${Q}${f}${g}
  43. ${m(k+(A-P-k)/2,C-3,e("ch.pareto.xlab"),{fs:8.5,anchor:"middle"})}`)+`<p class="small muted" style="margin-top:5px;line-height:1.6">${W?`<b>${e("ch.pareto.key",{k:W})}</b> (${e("ch.pareto.total",{n:Z,tot:s(Math.round(nt)),unit:J})})`:e("ch.pareto.total",{n:Z,tot:s(Math.round(nt)),unit:J})}<br>${e("ch.pareto.top3")}${b}${X?"<br>"+X:""}</p>`}function H(F){const J=at=>at.indexOf("限电")>=0||at.indexOf("调度")>=0?0:at==="停机"?1:2,X=[e("ch.blame.n1"),e("ch.blame.n2"),e("ch.blame.n3")],j=[e("ch.blame.d1"),e("ch.blame.d2"),e("ch.blame.d3")],A=["var(--accent)","var(--critical)","var(--muted)"],C=[0,0,0];(F.items||[]).forEach(at=>{C[J(at.k)]+=at.loss});const k=C.reduce((at,et)=>at+et,0)||1,P=500,N=44;let K=0,Z="";C.forEach((at,et)=>{const it=at/k*P;Z+=`<rect x="${K.toFixed(1)}" y="12" width="${Math.max(it,1).toFixed(1)}" height="26" rx="3" fill="${A[et]}" fill-opacity=".55"><title>${X[et]}: ${s(Math.round(at))} MWh</title></rect>`+(it>46?m(K+it/2,29,(at/k*100).toFixed(0)+"%",{fs:10.5,fill:"currentColor",anchor:"middle",w:600}):""),K+=it});const nt=C.map((at,et)=>`<div style="display:flex;align-items:baseline;gap:7px;margin-top:5px"><i style="flex:none;width:9px;height:9px;border-radius:2px;background:${A[et]};opacity:.55"></i><span style="font-weight:600">${X[et]}</span><span class="num">${s(Math.round(at))} MWh</span><span class="small muted">${j[et]}</span></div>`).join("");return h(P,N,`${m(0,8,e("ch.blame.title",{tot:s(Math.round(k))}))}${Z}`)+nt}function dt(F){const J=F.months||F.x||[],X=J.length;if(!X)return"";const j=620,A=250,C=52,k=34,P=["var(--accent)","#D48A1E","#2E8B6A","#7C5295"],N=[];if((F.series||[]).forEach(G=>G.vals.forEach(f=>{f!=null&&f===f&&N.push(f)})),(F.thresholds||[]).forEach(G=>{G&&G.v!=null&&N.push(G.v)}),!N.length)return"";let K=F.zero===!1?Math.min(...N):Math.min(0,...N),Z=Math.max(...N);K===Z&&(K-=1,Z+=1);const nt=(Z-K)*.08;Z+=nt,F.zero===!1&&(K-=nt);const at=G=>C+G/Math.max(X-1,1)*(j-C-12),et=G=>A-k-(G-K)/(Z-K)*(A-k-14),it=(G,f)=>{let g=[],b=[];return G.forEach(($,M)=>{$==null||$!==$?(b.length&&g.push(b),b=[]):b.push(`${at(M).toFixed(1)},${et($).toFixed(1)}`)}),b.length&&g.push(b),g.map($=>`<polyline points="${$.join(" ")}" fill="none" stroke="${f}" stroke-width="1.8"/>`).join("")};let _t=(F.series||[]).map((G,f)=>it(G.vals,P[f%4])).join("");const D=Math.max(1,Math.ceil(X/8));let V="";for(let G=0;G<X;G+=D)V+=m(at(G),A-10,String(J[G]).includes("-")?String(J[G]).slice(2,7):String(J[G]),{fs:10,anchor:"middle"});let Q="";for(let G=0;G<5;G++){const f=K+(Z-K)*G/4;Q+=m(C-6,et(f)+3,f.toFixed(Math.abs(Z)<10?1:0),{fs:10,anchor:"end"})+`<line x1="${C}" x2="${j-12}" y1="${et(f).toFixed(1)}" y2="${et(f).toFixed(1)}" stroke="var(--line)"/>`}(F.thresholds||[]).forEach(G=>{!G||G.v==null||(_t+=`<line x1="${C}" x2="${j-12}" y1="${et(G.v).toFixed(1)}" y2="${et(G.v).toFixed(1)}" stroke="var(--muted)" stroke-dasharray="5 4"/>`+(G.label?v(C+6,et(G.v)-4,G.label,{fs:10}):""))}),F.xlab&&(_t+=v((C+j)/2,A-1,F.xlab,{fs:10,anchor:"middle"}));const W='<div class="legend" style="margin-top:6px;flex-wrap:wrap">'+(F.series||[]).map((G,f)=>`<span><i style="background:${P[f%4]}"></i>${o(G.name)?`<span class="verbatim">${n(u(G.name))}</span>`:n(G.name)}</span>`).join("")+"</div>";return h(j,A,`${Q}${_t}${V}`)+W}function ot(F,J){const k=(P,N,K)=>{const Z=Object.entries(N.分组||{}).map(([W,G])=>({v:parseFloat(W),n:G,raw:W}));if(!Z.length)return"";const nt=Math.min(...Z.map(W=>W.v)),at=Math.max(...Z.map(W=>W.v)),et=(at-nt)*.22||1,it=nt-et,_t=at+et,D=W=>54+(W-it)/(_t-it)*412,V=Math.max(...Z.map(W=>W.n)),Q=N.中位;return m(48,P+3,K,{fs:9.5,anchor:"end"})+`<line x1="54" y1="${P}" x2="466" y2="${P}" stroke="var(--line)"/><line x1="${D(Q).toFixed(1)}" y1="${P-24}" x2="${D(Q).toFixed(1)}" y2="${P+18}" stroke="var(--muted)" stroke-dasharray="3 3" stroke-opacity=".55"/>`+m(D(Q),P+28,e("ch.cap.median",{v:Q}),{fs:8.5,anchor:"middle"})+Z.map(W=>{const G=5+Math.sqrt(W.n/V)*9;return`<circle cx="${D(W.v).toFixed(1)}" cy="${P}" r="${G.toFixed(1)}" fill="var(--accent)" fill-opacity=".42" stroke="var(--accent)"/>`+m(D(W.v),P-G-5,n(W.raw),{anchor:"middle",fill:"currentColor"})+m(D(W.v),P+3.5,W.n,{anchor:"middle",fill:"var(--panel)",w:600})}).join("")};return h(500,158,`${k(44,F||{},e("ch.cap.p"))}${k(120,J||{},e("ch.cap.w"))}${m(466,12,e("ch.cap.legend"),{fs:8.5,anchor:"end"})}`)}function ft(F,J){const X=F.离群||[],j=F.全场同档差中位||0,A=500,C=34+X.length*26,k=52,P=58,N=Math.max(j,...X.map(nt=>nt.平均偏))*1.18||1,K=nt=>k+nt/N*(A-k-P),Z=X.map((nt,at)=>{const et=30+at*26;return m(k-6,et+10,n(J(nt.t)),{fs:9.5,anchor:"end",fill:"currentColor"})+`<rect x="${k}" y="${et+1}" width="${(K(nt.平均偏)-k).toFixed(1)}" height="13" rx="2" fill="var(--warning)" fill-opacity=".62"/>`+m(K(nt.平均偏)+5,et+11,nt.平均偏+"°",{fill:"var(--warning)"})}).join("");return h(A,C,`<line x1="${K(j).toFixed(1)}" y1="18" x2="${K(j).toFixed(1)}" y2="${C-4}" stroke="var(--good)" stroke-dasharray="3 3"/>${m(K(j),12,e("ch.beta.median",{v:j}),{fs:8.5,fill:"var(--good)"})}<line x1="${k}" y1="18" x2="${k}" y2="${C-4}" stroke="var(--line)"/>${Z}`)}function ht(F){const J=Object.entries(F||{}),X=500,j=26+J.length*30,A=96,C=76,k=3.7,P=Math.max(k*1.35,...J.map(([,Z])=>Z.极差/Z.σ)),N=Z=>A+Z/P*(X-A-C),K=J.map(([Z,nt],at)=>{const et=22+at*30,it=nt.极差/nt.σ,_t=it>k;return v(A-6,et+11,Z,{fs:9.5,anchor:"end",fill:"currentColor"})+`<rect x="${A}" y="${et+2}" width="${(N(it)-A).toFixed(1)}" height="12" rx="2" fill="${_t?"var(--warning)":"var(--accent)"}" fill-opacity=".55"/>`+m(N(it)+5,et+11,e("ch.ruler.row",{r:it.toFixed(1),s:nt.σ}))}).join("");return h(X,j,`<line x1="${N(k).toFixed(1)}" y1="14" x2="${N(k).toFixed(1)}" y2="${j-4}" stroke="var(--good)" stroke-dasharray="3 3"/>${m(N(k),10,e("ch.ruler.norm"),{fs:8.5,fill:"var(--good)",anchor:"middle"})}${K}`)}function jt(F){const J=F.kind;if(J==="vib")return`<p class="small">${o(F.text||F.comp)?`<span class="verbatim">${n(u(F.text||F.comp))}</span>`:n(F.text||F.comp||"")}</p>`;if(J==="vibbar"){const b=F.rows||[];if(!b.length)return"";const $=L=>{const I=Math.abs(L);return I>=100?L.toFixed(0):I>=10?L.toFixed(1):I>=1?L.toFixed(2):I>=.01?L.toFixed(3):Number(L).toExponential(1)},M={};b.forEach(L=>{(M[L.指标]=M[L.指标]||[]).push(L)});let O=`<p class="small muted">${e("fig.vibbar_note")}</p>`;for(const[L,I]of Object.entries(M))O+=`<div class="tblwrap" style="margin-top:8px"><b class="small muted">${l(L)}</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>`+I.map(x=>{const w=Math.abs(x.z)>=3?"var(--critical)":Math.abs(x.z)>=2?"var(--warning)":"var(--good)";return`<tr><td class="small">${l(x.测点)}</td><td class="r" style="color:${w};font-weight:600">${x.倍中位!=null?x.倍中位+"×":"—"}</td><td class="r small">${$(x.本台)}</td><td class="r small muted">${$(x.全场中位)}</td><td class="r small" style="color:${Math.abs(x.z)>=3?"var(--critical)":"var(--muted)"}">${x.z}</td><td class="r small" style="color:${x.六窗比>1.15?"var(--warning)":"var(--muted)"}">${x.六窗比!=null?x.六窗比+"×":"—"}</td></tr>`}).join("")+"</table></div>";return O}const X=F.months||F.x||[],j=X.length;if(!j)return"";const A=620,C=250,k=52,P=34,N=14,K=[];if(J==="band"?[F.self,F.med,F.q1,F.q3].forEach(b=>(b||[]).forEach($=>{$!=null&&$===$&&K.push($)})):J==="bars"?(K.push(0),(F.vals||[]).forEach(b=>{b!=null&&b===b&&K.push(b)})):J==="xy"?[F.self,F.med].forEach(b=>(b||[]).forEach($=>{$!=null&&$===$&&K.push($)})):(F.series||[]).forEach(b=>(b.vals||[]).forEach($=>{$!=null&&$===$&&K.push($)})),(F.thresholds||[]).forEach(b=>{b&&b.v!=null&&K.push(b.v)}),!K.length)return"";let Z=Math.min(...K),nt=Math.max(...K);Z===nt&&(Z-=1,nt+=1);const at=(nt-Z)*.08;Z-=at,nt+=at;const et=b=>k+b/Math.max(j-1,1)*(A-k-12),it=b=>C-P-(b-Z)/(nt-Z)*(C-P-N),_t=(b,$,M)=>{let O=[],L=[];return(b||[]).forEach((I,x)=>{I==null||I!==I?(L.length&&O.push(L),L=[]):L.push(`${et(x).toFixed(1)},${it(I).toFixed(1)}`)}),L.length&&O.push(L),O.map(I=>`<polyline points="${I.join(" ")}" fill="none" stroke="${$}" stroke-width="${M||1.8}"/>`).join("")};let D="";if(J==="band"&&F.q1&&F.q3){const b=[],$=[];F.q3.forEach((M,O)=>{M!=null&&b.push(`${et(O).toFixed(1)},${it(M).toFixed(1)}`)});for(let M=F.q1.length-1;M>=0;M--)F.q1[M]!=null&&$.push(`${et(M).toFixed(1)},${it(F.q1[M]).toFixed(1)}`);b.length&&$.length&&(D+=`<polygon points="${b.join(" ")} ${$.join(" ")}" fill="var(--unknown)" fill-opacity=".18"/>`)}if(J==="bars"){const b=Math.max(3,(A-k-20)/j*.6),$=it(Math.max(Z,0));D+=(F.vals||[]).map((M,O)=>M==null||M!==M?"":`<rect x="${(et(O)-b/2).toFixed(1)}" y="${it(M).toFixed(1)}" width="${b.toFixed(1)}" height="${Math.max($-it(M),.8).toFixed(1)}" rx="2" fill="var(--accent)" fill-opacity=".75"/>`).join("")}F.med&&(D+=_t(F.med,"var(--muted)",1.7)),F.self&&(D+=_t(F.self,"var(--critical)",2.1)+(F.self||[]).map((b,$)=>b==null||b!==b?"":`<circle cx="${et($).toFixed(1)}" cy="${it(b).toFixed(1)}" r="2.4" fill="var(--critical)"/>`).join(""));const V=["var(--accent)","#D48A1E","#2E8B6A","#7C5295"];(F.series||[]).forEach((b,$)=>{D+=_t(b.vals,V[$%4])}),(F.thresholds||[]).forEach(b=>{b==null||b.v==null||(D+=`<line x1="${k}" x2="${A-12}" y1="${it(b.v).toFixed(1)}" y2="${it(b.v).toFixed(1)}" stroke="var(--muted)" stroke-dasharray="5 4"/>`+(b.label?v(k+6,it(b.v)-4,b.label,{fs:10}):""))});const Q=Math.max(1,Math.ceil(j/8));let W="";for(let b=0;b<j;b+=Q)W+=m(et(b),C-10,String(X[b]).includes("-")?String(X[b]).slice(2,7):String(X[b]),{fs:10,anchor:"middle"});let G="";for(let b=0;b<5;b++){const $=Z+(nt-Z)*b/4;G+=m(k-6,it($)+3,$.toFixed(Math.abs(nt)<10?1:0),{fs:10,anchor:"end"})+`<line x1="${k}" x2="${A-12}" y1="${it($).toFixed(1)}" y2="${it($).toFixed(1)}" stroke="var(--line)"/>`}const f=J==="band"?m(A-190,12,e("fig.this_unit"),{fill:"var(--critical)",fs:10})+m(A-110,12,e("fig.fleet_median"),{fs:10})+m(A-40,12,e("fig.quartile"),{fs:10}):(F.series||[]).length&&(F.series||[]).length<=2?F.series.map((b,$)=>m(A-12-(F.series.length-1-$)*118,12,"— "+n(u(b.name)),{fill:V[$%4],fs:10,anchor:"end"})).join(""):"",g=(F.series||[]).length>2?'<div class="legend" style="margin-top:6px;flex-wrap:wrap">'+F.series.map((b,$)=>`<span><i style="background:${V[$%4]}"></i>${o(b.name)?`<span class="verbatim">${n(u(b.name))}</span>`:n(b.name)}</span>`).join("")+"</div>":"";return h(A,C,`${G}${D}${W}${f}`)+g}return{quadChart:B,rateChart:tt,waterfall:lt,ramChart:R,attribBar:U,paretoChart:T,blameBar:H,lossName:q,multiline:dt,capAxis:ot,betaBar:ft,rulerBar:ht,fig:jt}};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,"主要异常位于"]],gt=t=>String(t??"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"),Jn=t=>String(t??""),wt=t=>gt(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"},Xn=t=>wu[String(t)]||ku[String(t)],Za={bad:"var(--critical)",warn:"var(--warning)",unk:"var(--unknown)",ok:"var(--good)",ex:"var(--excellent)"},Qa={优秀:"var(--excellent)",良好:"var(--good)",报警:"var(--warning)",危险:"var(--critical)",不可判:"var(--unknown)",监测不可用:"var(--unknown)",无监测:"var(--unknown)"},to={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"},Zn=t=>"st."+(t==="ex"?"excellent":t),Fe=t=>{const e=Xn(t);return e?r(Zn(e)):wt(t)},mn=t=>{const e=Mu[String(t)],s="tier."+e;return e?r(s):String(t)==="—"?"—":wt(t)},eo=(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),a=l-n||1,c=84,o=22,u=t.length;let _="",h=null;return t.forEach((m,v)=>{if(m==null)return;const y=v/(u-1)*c,q=o-2-(m-n)/a*(o-4);_+=(_?"L":"M")+y.toFixed(1)+" "+q.toFixed(1),h=[y,q]}),`<svg width="${c}" height="${o}" style="vertical-align:middle;margin-left:6px"><path d="${_}" fill="none" stroke="${e}" stroke-width="1.2" opacity=".75"/><circle cx="${h[0]}" cy="${h[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">${r("fus.no_alarm")}</span>`;const n=118,l=Math.max(6,Math.round(e/Math.max(s||e,1)*n));return`<div title="${gt(r("fus.fam_tip",{n:e,m:s||e}))}" style="display:flex;height:9px;border-radius:3px;overflow:hidden;width:${l}px">${(t||[]).map(a=>`<i title="${gt(me(a.k))} ${a.n}" style="width:${(a.n/e*100).toFixed(1)}%;background:${Tu[a.k]||"#5A6470"}"></i>`).join("")}</div><div class="small muted" style="margin-top:3px">${(t||[]).slice(0,2).map(a=>me(a.k)+" "+a.n).join(" · ")}</div>`};function Eu(t){const e=(t.列窗||{}).months||[];let s=`<div class="panel mb" style="border-left:3px solid var(--warning)"><b>${r("fus.rules_head")}</b><p class="small" style="margin-top:4px">${r("fus.rule1")}<br>${r("fus.rule2")}</p></div>`;s+=`<div class="panel mb"><h3>${r("fus.matrix_head")}</h3><p class="small muted">${r("fus.matrix_note1")}</p><p class="small">${r("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>${r("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:${Za[v]}"></i>${r(Zn(v))}</span>`).join("")}</div>
  45. <div><b>${r("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>${r("fus.legend_note")}</div></div>`;const n=v=>{const y=String(v||""),q=y.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 q?q[0].startsWith("至")?r("win.through",{date:q[0].replace(/^至\s*/,"")}):q[0]:y.slice(0,14)},l=(v,y,q)=>`<th title="${gt(y||"")}${q||""}"><div>${v}</div><div class="small muted" style="font-weight:400">${wt(n(y))}${q||""}</div></th>`,a=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>${r("ui.unit")}</th>${l(r("fus.col.vib"),a.振动,r("fus.col.fixed"))}${l(r("fus.col.temp"),a.温度)}${l(r("fus.col.lub"),a.润滑,r("fus.col.display_only"))}${l(r("fus.col.oil"),a.油液)}${l(r("fus.col.alarm"),a.报警)}${l(r("fus.col.wo"),a.工单)}</tr>`;const c=t.矩阵||[],o=Math.max(1,...c.map(v=>(v.报警||{}).n||0)),u=Math.max(1,...c.map(v=>(v.工单||{}).n||0)),_=t.色标||{},h=v=>{if(v.ostate&&v.ostate!=="不可判")return Fe(v.ostate);const y=String(v.note||"");return/数据不足|不可判|nsufficient/.test(y)?r("fus.short.nodata"):/未评估|ot assessed/.test(y)?r("fus.short.uneval"):/无样|未取样|o sample/.test(y)?r("fus.short.nosample"):/样龄|stale/.test(y)?r("fus.short.stale"):{ok:r("fus.short.normal"),unlisted:r("fus.short.unlisted"),stale:r("fus.short.stale")}[v.level]||"—"},m=v=>{const y=v||{},q=Qa[y.ostate]||_[y.wlevel]||to[y.level]||"var(--muted)",B=Be(y.note),tt=["bad","warn","note"].includes(y.level),lt=gt(B)+r("fus.tip_state",{s:Fe(y.ostate||"?")});if(!tt)return`<td class="small" title="${lt}" style="border-left:3px solid ${q};color:var(--muted)">${h(y)}</td>`;const R=B.split(/[::]/),U=(R.length>1?R.slice(1).join(":"):B).trim(),T=/^[ ]*(评估报告|两口径差异|⚠|ssessment)/.test(U)||U.length>16?"":U,H=T?wt(T):y.ostate&&y.ostate!=="不可判"?"":h(y),dt=y.wlevel&&y.wlevel!=="—"&&y.wlevel!=="正常"&&y.ostate?eo(Fe(y.ostate),mn(y.wlevel),q):"";return`<td class="small" title="${lt}${r("fus.tip_tier",{e:mn(y.wlevel||"?")})}" style="border-left:3px solid ${q};overflow:hidden"><div><div style="color:${q};font-weight:${["bad","warn"].includes(y.level)?600:400}">${H}</div>${dt}</div>${Su(y.hist,y.level==="bad"?"var(--critical)":y.level==="warn"?"var(--warning)":"var(--muted)")}</td>`};return c.forEach(v=>{const y=v.报警||{n:0,fam:[]},q=v.工单||{n:0,acts:[]},B=y.rank&&y.rank<=5?"var(--warning)":"var(--line)",tt=y.burst,lt=gt((y.items||[]).map(R=>`${R.code} ${Be(R.text)} — ${R.n} (${R.first}~${R.last})`).join(`
  46. `))+(tt?`
  47. `+gt(r("fus.burst_tip",{c:tt.code,p:(tt.share*100).toFixed(0),m:tt.med_s})):"");s+=`<tr><td><a href="/turbine/${v.turbine}"><b>${qt(v.turbine)}</b></a></td>${m(v.振动)}${m(v.温度)}${m(v.润滑)}${m(v.油液)}
  48. <td title="${lt}" style="border-left:3px solid ${tt?"var(--unknown)":B}"><b class="small num" style="color:${y.rank&&y.rank<=10?"var(--ink)":"var(--muted)"}">${r("fus.alarm_n",{n:y.n})}</b>${y.rank?`<span class="small muted">${r("fus.alarm_rank",{r:y.rank,t:y.tot})}</span>`:""}${tt?`<div class="small" style="color:var(--unknown)">${r("fus.burst",{p:(tt.share*100).toFixed(0),c:tt.code})}</div>`:""}${y.rank&&y.rank<=10||tt?Cu(y.fam,y.n,o):""}</td>
  49. <td title="${gt((q.items||[]).map(R=>`${R.date} ${_n(R.name)} → ${_n(R.act)}${R.part?" "+_n(R.part):""}`).join(`
  50. `)||r("fus.wo_none"))}" style="min-width:110px">${q.n?`<b class="small">${r("fus.wo_n",{n:q.n})}</b>${q.last?`<span class="small muted"> · ${gt(q.last)}</span>`:""}<div style="height:7px;border-radius:3px;background:var(--muted);opacity:.5;margin-top:4px;width:${Math.max(6,Math.round(q.n/u*90))}px"></div><div class="small muted" style="margin-top:3px">${(q.acts||[]).slice(0,2).map(R=>wt(R.k)+"×"+R.n).join(" · ")}</div>`:'<span class="small muted">—</span>'}</td></tr>`}),s+`</table></div><p class="small muted" style="margin-top:8px">${r("fus.matrix_foot")}</p></div>`}const Il=(t,e,s)=>{const n=Math.max(t,e,7),l=120,a=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="${a(t).toFixed(1)}" height="9" rx="2" fill="var(--muted)" fill-opacity=".55"/><rect x="2" y="15" width="${a(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="${gt(Jn(t))}">${Du.map(([l,a])=>{const c=a.test(s)||n&&["ps","ims","hss"].includes(l);return`<i class="${c?"on":""}" style="${c?`background:${e};border-color:${e}`:""}" title="${r("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">${r("fus.loop_none")}</p></div>`;const s=e["换件闭环 (检出→换件→恢复)"]||[],n=e["当前在升 (无工单可对)"]||[],l=e["负面对照 (工单后持平)"];return`<div class="panel mb"><h3>${r("fus.loop_head")}</h3><p class="small">${r("fus.loop_note")}</p>
  51. <h3 style="margin-top:8px">${r("fus.loop_closed",{n:s.length})}</h3><div class="tblwrap"><table><tr><th>${r("ui.unit")}</th><th>${r("fus.col.part")}</th><th>${r("fus.loop_item")}</th><th>${r("fus.loop_date")}</th><th>${r("fus.loop_ba")}</th><th class="r">${r("fus.loop_ratio")}</th><th>${r("fus.loop_verdict")}</th></tr>
  52. ${s.map(a=>`<tr><td><b>${qt(a.turbine)}</b></td><td>${An(a.component+(a.title||""),"var(--good)")} <span class="small">${_s(a.component)}</span></td><td class="small">${wt(a.title)}</td><td>${gt(a.replace_date)}</td><td>${Il(a.pre,a.post,"var(--good)")}<span class="small muted">${a.pre} → ${a.post}</span></td><td class="r"><b style="color:var(--good)">${a.ratio}×</b></td><td><span class="chip ok">${wt(a.verdict)}</span></td></tr>`).join("")}</table></div>
  53. <p class="small" style="margin-top:6px">${r("fus.loop_neg",{n:l})}</p>
  54. <h3 style="margin-top:14px">${r("fus.loop_rising",{n:n.length})}</h3><div class="tblwrap"><table><tr><th>${r("ui.unit")}</th><th>${r("fus.col.part")}</th><th>${r("fus.loop_el")}</th><th class="r">${r("fus.loop_x")}</th><th>${r("fus.loop_state")}</th></tr>
  55. ${n.map(a=>`<tr><td><b>${qt(a.turbine)}</b></td><td>${An(a.component,"var(--warning)")} <span class="small">${_s(a.component)}</span></td><td>${Il(a.early,a.late,"var(--warning)")}<span class="small muted">${a.early} → ${a.late}</span></td><td class="r"><b style="color:var(--warning)">${a.ratio}×</b></td><td><span class="chip warn">${r("rpt.units.rising",{r:a.ratio})}</span></td></tr>`).join("")}</table></div>
  56. <p class="small muted" style="margin-top:8px">${r("fus.loop_bound",{b:wt(String(e["★数据边界"]||"").split("**").join(""))})}</p></div>`}const Ou=(t,e,s,n)=>{if(e==null)return`<span class="small">${wt(Jn(n).slice(0,30))}</span>`;const l=6,a=104,c=a/2,o=Math.max(-1,Math.min(1,e/l)),u=Math.abs(o)*(c-8),h=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="${gt(n||"")}" style="display:flex;align-items:center;gap:7px"><svg class="dt" viewBox="0 0 ${a} 18" style="width:${a}px;height:18px;flex:none"><line x1="4" y1="9" x2="${a-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="${h}" fill-opacity=".9"/>${m?`<path d="M${e>0?a-5:5},9 l${e>0?-5:5},-4 v8 z" fill="${h}"/>`:""}</svg><b class="small num" style="color:${h}">${e>0?"+":""}${e}K</b></div><div class="small muted" style="margin-top:1px">${gt(t||"")}</div>`},Au=(t,e)=>{if(!t||!t.length)return`<span class="small" title="${gt(e||"")}">${r("fus.win_none")}</span>`;const s=Date.parse("2026-01-01"),n=Date.parse("2026-09-01"),l=118,a=c=>3+Math.max(0,Math.min(1,(Date.parse(c)-s)/(n-s)))*(l-6);return`<div title="${gt(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,o])=>{const u=a(c),_=a(o);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">${r("fus.win_n",{n:t.length})}</div></div>`},ju=(t,e,s)=>`<div title="${gt(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">${gt(t||r("fus.oil_none"))}</span></div><div class="small muted">${t?r(e?"fus.oil_fresh":"fus.oil_stale"):"—"}</div>`,Ee=(t,e)=>{const s=Xn(t);return s?`<span class="chip ${s} ${e||""}">${r(Zn(s))}</span>`:t?`<span class="chip">${gt(t)}</span>`:""};function qu(t,e){const s=t.表||[],n=t.矩阵||[];let l=s,c=`<div class="panel mb"><h3>${r("fus.units_head",{u:new Set(s.map(o=>o.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(o=>`<button class="pill ${e===o?"on":""}" data-ffilter="${o}">${r("fus.lv."+o)}</button>`).join("")}<button class="pill " data-ffilter="unlisted">${r("fus.unlisted_link",{n:n.filter(o=>(o.振动||{}).level==="unlisted").length})}</button></div>
  58. <div class="panel" style="border-left:3px solid var(--accent);margin-bottom:12px"><b class="small">${r("fus.eval_head")}</b><div class="tblwrap"><table style="margin-top:8px"><tr><th style="width:30%">${r("fus.eval_state")}</th><th style="width:30%">${r("fus.eval_tier")}</th><th>${r("fus.eval_meaning")}</th></tr>
  59. <tr><td>${Ee("危险")}</td><td><span class="tier confirmed">${r("tier.confirmed.s")}</span></td><td class="small">${r("fus.m.bad")} <span class="muted">(${r("fus.m.bad_e")})</span></td></tr>
  60. <tr><td>${Ee("报警")}</td><td><span class="tier near">${r("tier.near")}</span> / <span class="tier candidate">${r("tier.candidate_new")}</span></td><td class="small">${r("fus.m.warn")} <span class="muted">(${r("fus.m.warn_e")})</span></td></tr>
  61. <tr><td>${Ee("良好")}</td><td><span class="tier candidate">${r("tier.candidate")}</span> / <span class="tier candidate">${r("tier.candidate_baseline")}</span></td><td class="small">${r("fus.m.ok")} <span class="muted">(${r("fus.m.ok_e")})</span></td></tr>
  62. <tr><td>${Ee("优秀")}</td><td><span class="tier reference">${r("tier.reference")}</span> / <span class="tier reference">${r("tier.normal")}</span> / <span class="tier withdrawn">${r("tier.withdrawn")}</span></td><td class="small">${r("fus.m.ex")} <span class="muted">(${r("fus.m.ex_e")})</span></td></tr>
  63. <tr><td>${Ee("不可判")}</td><td><span class="tier insufficient">${r("tier.insufficient")}</span></td><td class="small">${r("fus.m.unk")} <span class="muted">(${r("fus.m.unk_e")})</span></td></tr></table></div><p class="small muted" style="margin-top:7px">${r("fus.eval_note")}</p></div>
  64. <div class="tblwrap"><table><tr><th>${r("ui.unit")}</th><th>${r("fus.col.part")}</th><th>${r("fus.col.state_concl")}</th><th>${r("fus.col.claim")} <span class="small muted" style="font-weight:400">${r("fus.col.claim_axis")}</span></th><th>${r("fus.col.signal")}</th><th>${r("fus.col.tempaxis")} <span class="small muted" style="font-weight:400">${r("fus.col.tempaxis_note")}</span></th><th>${r("fus.col.oil")}</th></tr>`;return l.forEach(o=>{const u=to[o.级]||"var(--accent)",_=Qa[o.设备状态]||"var(--muted)";c+=`<tr><td><a href="/turbine/${o.turbine}"><b>${qt(o.turbine)}</b></a></td><td style="min-width:200px">${An(o.部件,u)} <span class="small">${_s(o.部件)}</span></td>
  65. <td title="${gt(Be(o.振动结论))}">${eo(Fe(o.设备状态||"—"),wt(o.振动结论),_)}</td><td style="min-width:130px">${Au(o.窗区间,o.claim_window)}</td>
  66. <td class="small" title="${gt(o.振动信号||"")}">${wt(Be(o.振动信号))}</td><td style="min-width:158px">${Ou(o.温度通道,o.温度dev,o.温度判,o.温度轴)}</td><td style="min-width:112px">${ju(o.油末样,o.油新鲜,o.油样轴)}</td></tr>`}),c+"</table></div></div>"}const Du=[["mbf",/主轴承[((]前|主轴承前|主轴承[++]|主轴承(?![((前后])/],["mba",/主轴承[((]后|主轴承后/],["ps",/行星|二级行星/],["ims",/中间轴|中速/],["hss",/高速轴|高速(?!.*发电)/],["gde",/发电机DE|发电机[((]|发电机(?!NDE)/],["gnde",/发电机NDE|NDE/]],ts=t=>Za[Xn(t)]||null,Hl=t=>`<span class="chain">${Object.entries(t).map(([e,s])=>`<i class="${s?"on":""}" style="${s?`background:${s};border-color:${s}`:""}" title="${r("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}">${wt(e)}</span></div>`};function Lu(t,e){if(!t.事件)return`<div class="panel mb"><p class="small muted">${r("ui.empty")}</p></div>`;let s=`<div class="panel mb"><p class="small muted"><b>${r("fus.ev_win",{win:Se(e.win)})}</b></p></div>`;for(const[n,l]of Object.entries(t.事件)){const a=l,c=a.报警||{},o=a.工单||{};s+=`<div class="panel mb"><h3>${r("fus.ev_head",{c:me(n),an:c.总条数||0,au:c.台数||0,wn:o.总条数||0,wu:o.台数||0})}</h3>`,c.总条数>0?s+=`<div class="tblwrap"><table><tr><th>${r("fus.ev_code")}</th><th>${r("fus.ev_text")}</th><th class="r">${r("ui.count")}</th><th class="r">${r("fus.ev_units")}</th><th class="r">${r("fus.ev_dur")}</th></tr>${(c.码统计||[]).map(u=>`<tr><td>${gt(u.code)}</td><td class="small">${wt(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">${r("fus.ev_top")}${Object.entries(c.top台||{}).map(([u,_])=>`<a href="/turbine/${u}">${qt(u)}</a>×${_}`).join(" · ")}</p>
  68. <details><summary class="small">${r("fus.ev_recent",{n:(c.近况||[]).length})}</summary><div class="tblwrap"><table><tr><th>${r("ui.unit")}</th><th>${r("fus.ev_time")}</th><th>${r("fus.ev_code")}</th><th>${r("fus.ev_text")}</th><th class="r">${r("fus.ev_min")}</th></tr>${(c.近况||[]).map(u=>`<tr><td>${qt(u.t)}</td><td class="small">${gt(u.on)}</td><td>${gt(u.code)}</td><td class="small">${wt(Be(u.text))}</td><td class="r">${u.dur_min??"—"}</td></tr>`).join("")}</table></div></details>`:s+=`<p class="small">${r("fus.ev_no_alarm")}</p>`,o.总条数>0?s+=`<div class="tblwrap"><table style="margin-top:8px"><tr><th>${r("ui.unit")}</th><th>${r("ui.date")}</th><th>${r("fus.ev_wo_name")}</th><th>${r("fus.ev_wo_act")}</th><th>${r("fus.ev_wo_cause")}</th></tr>${(o.明细||[]).map(u=>`<tr><td>${qt(u.t)}</td><td class="small">${gt(u.date)}</td><td class="small">${wt(u.name)}</td><td class="small">${wt(u.act)}</td><td class="small">${wt(u.cause)}</td></tr>`).join("")}</table></div>`:s+=`<p class="small">${r("fus.ev_no_wo")}</p>`,s+="</div>"}return s}function Ru(t,e){if(!t)return`<div class="panel mb"><p class="small muted">${r("fus.cms_loading")}</p></div>`;if(t.error)return`<div class="panel mb"><p class="small" style="color:var(--critical)">${wt(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>${r("fus.cms_head",{d:gt(t.date||"")})}</h3>
  69. ${t.时间范围?`<p class="small" style="margin:2px 0 6px">${r("fus.cms_window",{r:gt(t.时间范围)})}</p>`:""}
  70. <p class="small">${wt(t.overall||"")} ${r("fus.cms_note")}</p>
  71. <h3 style="margin-top:10px">${r("fus.cms_action")}</h3><div class="tblwrap"><table><tr><th>${r("ui.unit")}</th><th>${r("fus.loop_state")}</th><th>${r("fus.cms_focus")} <span class="small muted" style="font-weight:400">${r("fus.cms_focus_note")}</span></th><th>${r("fus.cms_evidence")}</th><th>${r("fus.cms_act")}</th></tr>
  72. ${(t.action||[]).map(n=>{const l={};return String(n[2]).split(/[;;]/).forEach(a=>{const c=a.split(/[::]/);if(c.length>1){const o=s[c[0].trim()]||null;o&&(l[o]=ts(c[1].trim()))}}),`<tr><td><b>${qt(n[0])}</b></td><td>${Ee(n[1])}</td><td title="${gt(n[2])}">${Hl(l)} <span class="small muted">${wt(n[2])}</span></td><td style="min-width:150px">${Pu(n[3])}</td><td>${/P0/.test(n[4])?`<b style="color:var(--critical)">${gt(n[4])}</b>`:gt(n[4])}</td></tr>`}).join("")}</table></div>
  73. <h3 style="margin-top:14px">${r("fus.cms_grades")}</h3><div class="tblwrap"><table><tr><th>${r("ui.unit")}</th><th>${r("fus.cms_chain")} <span class="small muted" style="font-weight:400">${r("fus.cms_chain_note")}</span></th><th>${r("fus.cms_overall")}</th><th>${r("fus.cms_act")}</th></tr>
  74. ${(t.grades||[]).map(n=>`<tr><td><b>${qt(n.t)}</b></td><td title="${r("chain.mbf")} ${Fe(n.主轴承前)} · ${r("chain.mba")} ${Fe(n.主轴承后)} · ${r("chain.gb")} ${Fe(n.齿轮箱)} · ${r("chain.gen")} ${Fe(n.发电机)}">${Hl({mbf:ts(n.主轴承前),mba:ts(n.主轴承后),gb:ts(n.齿轮箱),gen:ts(n.发电机)})}</td><td>${Ee(n.综合)}</td><td class="small">${gt(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>${r("fus.cms_basis")}</b> ${r("fus.cms_basis_note",{a:((t.diff||{}).only_cms||[]).map(qt).join(", ")||r("fus.none_word"),b:((t.diff||{}).only_vibration_package||(t.diff||{}).only_handoff||[]).map(qt).join(", ")||r("fus.none_word")})}</div>
  76. <p class="small muted" style="margin-top:10px">${r("fus.cms_link")} <a href="http://localhost:8030/index.html" target="_blank" rel="noopener">${r("fus.cms_open")}</a> <a href="/windcms/index.html" target="_blank" rel="noopener">${r("fus.cms_static")}</a></p></div>`}const Iu=["matrix","loop","units","events","cms","portal_cms"];function Hu(t,e){const s=t&&t.fus||{},n=s.kpi||{},l=dt=>typeof dt=="number"?dt:Number(dt)||0,a=t&&t.kpi||{},c=l(a.关注台),o=l(a.报警台),u=l(a.全场??n.全场??n.收录台);l(n.候选观察),l(n.全场??n.收录台);const _=String(t&&t.win||""),h=((s.事件||{}).主轴||{}).工单||{},m=l(h.总条数),v=e||{},y=Array.isArray(v.grades)?v.grades:[],q=dt=>y.filter(ot=>String(ot.综合||"")===dt).length,B=Array.isArray(v.action)?v.action.length:0,tt=String(v.窗||""),lt=String(v.时间范围||"").replace(/^\S+\s*/,"").slice(0,60),R=String(v.date||""),U=String(s.证据窗末||v.date||"").slice(0,10),T=(dt,ot=!1)=>'<span style="display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;font-size:12.5px;'+(ot?"border:1px solid var(--warning,#B7791F);color:var(--warning,#B7791F)":"border:1px solid var(--line,#D8DDE3);color:var(--sub,#5A6472);background:var(--panel2,#EDF0F3)")+'">'+dt+"</span>",H=(dt,ot,ft)=>'<div class="panel" style="flex:1 1 280px;min-width:260px"><div class="small muted">'+dt+'</div><h3 style="margin:4px 0 6px">'+ot+'</h3><p class="small muted" style="margin:0">'+ft+"</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">'+T("当前时间窗 · "+_)+T("关注台 "+c+" 台",!0)+T("报警台 "+o+" 台",!0)+T("全场 "+u+" 台")+T("证据窗末 "+(U||"—"))+T("证据窗内报警工单 · "+m+" 条")+T("CMS 采集窗 "+(tt||"—")+(lt?" · "+lt:""))+T("CMS 裁决 · 优秀 "+q("优秀")+" / 良好 "+q("良好")+" / 报警 "+q("报警"))+T("行动项 "+B+" 条"+(R?" · 数据时点 "+R:""))+T("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">'+H("比较基准","异常比较先核实基准","先确认测点、工况、处理链和频带可比,再结合线能量占比与机群分布识别异常。阈值须注明来源、样本和适用范围;本底接近检测下限时,倍数不宜单独解释,诊断仍需补充证据。")+H("证据关联","多种特征不等于独立证据","频谱、标量和时域特征若来自同一波形,应保留共同来源,避免重复计票。跨测点或跨窗口的一致性也需核查共同工况与采集依赖;结论升级应结合独立检修等证据,不以特征数量替代证据质量。")+H("结论边界","结论强度与证据匹配","使用“持续恶化”“单调”或“唯一”等表述前,应明确观察范围、比较对象、样本依赖和对应检验。端段差异不能代替全程趋势证据;复核发现支持不足时,补充验证或降低结论强度,并保留不确定性。")+'</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,Nl=Nu.__charts,Bu=Nl?Nl({t:r,fmt:Tt,esc:gt,dv:wt,EN:!1,displayText:t=>t==null?"":String(t),verb:()=>{}}):{};function zt(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"},ad={class:"num small"},od={class:"r small"},rd={class:"small muted",style:{"margin-top":"6px"}},id=Ut({__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"},a=u=>l[u]?r(l[u]):u,c=Y(()=>{const u=s.value||{};return[{v:Tt(u.theo),u:"MWh",l:r("en.kpi_theo"),k:""},{v:Tt(u.act),u:"MWh",l:r("en.kpi_act",{h:Tt(u.eflh)}),k:"ok"},{v:Tt(u.loss_pct,1),u:"%",l:r("en.kpi_loss",{v:Tt(u.loss)}),k:u.loss_pct>=10?"warn":""},{v:u.cap_ok?r("en.cap_pass"):r("en.cap_fail"),u:"",l:r("en.cap_note",{op:u.cap_ok?"<":"≥",cap:Tt(u.cap)}),k:u.cap_ok?"ok":"bad"}]}),o=Y(()=>Math.max(1,...n.value.map(u=>u.pct)));return(u,_)=>s.value?(S(),E("section",Vu,[i("div",zu,[(S(!0),E(ct,null,xt(c.value,(h,m)=>(S(),E("div",{key:m,class:Qt(["kpi",h.k])},[i("b",null,[pt(p(h.v),1),h.u?(S(),E("small",Gu,p(h.u),1)):bt("",!0)]),i("span",null,p(h.l),1)],2))),128))]),i("div",Yu,[i("div",Ju,[i("h3",null,[pt(p(d(r)("en.balance"))+" ",1),i("span",Xu,p(d(r)("en.win",{win:d(Se)(t.d.win)})),1)]),At(Xt,{html:d(zt)("waterfall",s.value)},null,8,["html"])]),i("div",Zu,[i("h3",null,p(d(r)("en.blame")),1),At(Xt,{html:d(zt)("blameBar",s.value)},null,8,["html"]),i("p",Qu,p(d(r)("en.blame_note",{n:d(Tt)(Math.round(((s.value.items||[]).find(h=>h.k==="停机")||{}).loss||0))})),1)]),i("div",td,[i("h3",null,[pt(p(d(r)("en.states"))+" ",1),i("span",ed,p(d(r)("en.win",{win:d(Se)(t.d.win)})),1)]),i("div",sd,[i("table",null,[i("tr",null,[i("th",null,p(d(r)("en.state")),1),i("th",null,p(d(r)("en.share")),1),i("th",nd,p(d(r)("en.loss_mwh")),1)]),(S(!0),E(ct,null,xt(n.value,h=>(S(),E("tr",{key:h.k},[i("td",ld,p(a(h.k)),1),i("td",null,[i("i",{class:"bar",style:Lt(`width:${Math.round(h.pct/o.value*84)}px;background:${h.k.indexOf("停机")>=0&&h.k.indexOf("调度")<0?"var(--critical)":"var(--accent)"}`)},null,4),i("span",ad,p(h.pct)+"% · "+p(d(Tt)(Math.round(h.h)))+"h",1)]),i("td",od,p(d(Tt)(Math.round(h.loss))),1)]))),128))])]),i("p",rd,[pt(p(t.d.control.anchors||""),1),_[0]||(_[0]=i("br",null,null,-1)),pt(p(d(r)("en.states_note")),1)])])])])):(S(),E("section",Wu,[i("div",Ku,[i("p",Uu,p(d(r)("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"},$d={class:"small muted",style:{"margin-top":"6px"}},yd={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"},Od={key:1,class:"panel"},Ad={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"},Ld={class:"small muted",style:{"margin-top":"6px"}},Rd={style:{"margin-top":"12px"}},Id={class:"small muted",style:{"margin-top":"2px"}},Hd={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=Ut({__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),a=Y(()=>s.value.monthly||{months:[],vals:[]}),c=Y(()=>n.value.length?(a.value.months||[]).indexOf(n.value[0]):-1),o=Y(()=>{const U=n.value.length?r("flt.rate_partial",{m:n.value.join("/")}):r("flt.rate_full"),T=c.value>=0&&!!a.value.per_day;return U+(T?" "+r("flt.rate_example",{m:n.value[0],v:u.value}):"")}),u=Y(()=>{const U=c.value;return U>=0&&a.value.per_day?a.value.per_day[U]:null}),_=Y(()=>n.value.length?r("win.partial",{m:n.value.join("/"),c:Math.round((s.value.cov_min||0)*100)}):""),h=Y(()=>s.value.per_t||[]),m=Y(()=>Math.max(1,...h.value.map(U=>U.v))),v=Y(()=>l.value&&e.d?.m8?.seasonal?e.d.m8.seasonal:[]),y=Y(()=>e.d?.rel&&!e.d.rel.err?e.d.rel:null),q=Y(()=>(e.d?.m8?.stop_pareto||[]).map(U=>({k:String(U.k).split(";")[0].slice(0,26),v:U.h}))),B=U=>_s(U),tt=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:r("flt.seasonal_x")})),lt=Y(()=>l.value?.台级top||[]),R=Y(()=>Math.max(1,...lt.value.map(U=>U.时长h)));return(U,T)=>(S(),E("section",null,[i("div",cd,p(d(r)("flt.eyebrow")),1),i("div",ud,[i("b",null,p(d(r)("win.banner",{win:d(Se)(t.d.win)})),1),_.value?(S(),E(ct,{key:0},[T[0]||(T[0]=pt(" | ",-1)),i("span",dd,p(_.value),1)],64)):bt("",!0)]),i("div",pd,[i("div",fd,[pt(p(d(r)("flt.alarm_face"))+" ",1),i("span",hd,p(d(r)("flt.alarm_meta",{n:d(Tt)(s.value.total),c:s.value.n_codes,win:d(Se)(t.d.win)})),1)]),i("div",md,[i("h3",null,p(d(r)("flt.rate")),1),At(Xt,{html:d(zt)("rateChart",a.value)},null,8,["html"]),i("p",_d,[i("b",null,p(d(r)("flt.rate_note")),1),pt(" — "+p(o.value),1)])]),i("div",vd,[i("h3",null,p(d(r)("flt.pareto_n")),1),At(Xt,{html:d(zt)("paretoChart",s.value.pareto_n||[],d(r)("unit.n"),d(r)("flt.pareto_n_note"))},null,8,["html"])]),i("div",gd,[i("h3",null,p(d(r)("flt.pareto_d")),1),At(Xt,{html:d(zt)("paretoChart",s.value.pareto_d||[]," h",d(r)("flt.pareto_d_note"))},null,8,["html"])]),i("div",bd,[i("h3",null,p(d(r)("flt.quad")),1),At(Xt,{html:d(zt)("quadChart",s.value.quad||[])},null,8,["html"]),i("p",$d,[pt(p(d(r)("flt.quad_note",{n:s.value.n_codes,m:(s.value.quad||[]).length}))+" ",1),n.value.length?(S(),E("span",yd,p(d(r)("flt.quad_partial",{m:n.value.join("/"),c:Math.round((s.value.cov_min||0)*100)})),1)):bt("",!0),pt(" "+p(d(r)("flt.quad_note2")),1)])]),i("div",xd,[i("h3",null,p(d(r)("flt.per_t",{n:h.value.length})),1),i("div",wd,[i("table",null,[i("tr",null,[i("th",kd,p(d(r)("ui.unit")),1),i("th",null,p(d(r)("ui.count")),1),i("th",Md,p(d(r)("flt.per_t_share")),1)]),(S(!0),E(ct,null,xt(h.value,H=>(S(),E("tr",{key:H.k},[i("td",null,[i("b",null,p(d(qt)(H.k)),1)]),i("td",null,[i("i",{class:"bar",style:Lt(`width:${Math.round(H.v/m.value*90)}px;background:${H.v/m.value>.6?"var(--critical)":"var(--accent)"}`)},null,4),i("span",Sd,p(d(Tt)(H.v)),1)]),i("td",Td,p((H.v/s.value.total*100).toFixed(1))+"%",1)]))),128))])]),i("p",Cd,p(d(r)("flt.per_t_note",{n:d(Tt)(s.value.total)})),1)]),t.d.m8&&t.d.m8.err?(S(),E("div",Ed,[i("p",Fd,p(d(r)("flt.block_err",{k:"m8",e:t.d.m8.err})),1)])):bt("",!0),l.value&&v.value.length?(S(),E("div",Od,[i("h3",null,[pt(p(d(r)("flt.seasonal"))+" ",1),i("span",Ad,"("+p(d(r)("flt.seasonal_unit"))+")",1)]),At(Xt,{html:d(zt)("multiline",tt.value)},null,8,["html"]),i("p",jd,p(d(r)("flt.seasonal_note")),1)])):bt("",!0),l.value?(S(),E(ct,{key:2},[i("div",qd,[pt(p(d(r)("flt.stop_face"))+" ",1),i("span",Dd,p(d(r)("flt.stop_meta",{h:d(Tt)(l.value.停机总时长h),n:d(Tt)(l.value.停机事件数)})),1)]),y.value?(S(),E("div",Pd,[i("h3",null,p(d(r)("flt.ram")),1),At(Xt,{html:d(zt)("ramChart",y.value&&y.value.表||[],B)},null,8,["html"]),i("p",Ld,p(d(r)("flt.ram_note",{a:y.value.设备类停机h,b:y.value.外部类停机h})),1),i("div",Rd,[At(Xt,{html:d(zt)("attribBar",y.value&&y.value.表||[],y.value&&y.value.总停机h||0)},null,8,["html"])]),i("p",Id,p(d(r)("flt.attrib_note",{h:((y.value.表||[]).find(H=>H.部件==="无记录停机")||{}).停机时长h||0})),1)])):bt("",!0),i("div",Hd,[i("h3",null,p(d(r)("flt.stop_pareto")),1),At(Xt,{html:d(zt)("paretoChart",q.value," h",d(r)("flt.stop_pareto_note"))},null,8,["html"]),i("p",Nd,p(l.value.口径),1)]),i("div",Bd,[i("h3",null,p(d(r)("flt.stop_units",{n:lt.value.length})),1),i("div",Wd,[i("table",null,[i("tr",null,[i("th",Kd,p(d(r)("ui.unit")),1),i("th",null,p(d(r)("flt.stop_h")),1),i("th",Ud,p(d(r)("flt.stop_n")),1)]),(S(!0),E(ct,null,xt(lt.value,H=>(S(),E("tr",{key:H.t},[i("td",null,[i("b",null,p(d(qt)(H.t)),1)]),i("td",null,[i("i",{class:"bar",style:Lt(`width:${Math.round(H.时长h/R.value*90)}px;background:${H.时长h/R.value>.6?"var(--critical)":"var(--accent)"}`)},null,4),i("span",Vd,p(d(Tt)(H.时长h)),1),T[1]||(T[1]=pt("h",-1))]),i("td",zd,p(H.次),1)]))),128))])]),i("p",Gd,p(d(r)("flt.stop_units_note")),1)])],64)):bt("",!0)])]))}}),Jd={class:"eyebrow"},Xd={style:{display:"flex",gap:"8px","margin-bottom":"14px","flex-wrap":"wrap"}},Zd=["data-fsub","onClick"],Qd=["innerHTML"],tp=Ut({__name:"Vibration",props:{d:{},sub:{},cms:{}},emits:["sub"],setup(t,{emit:e}){const s=t,n=e,l=Y(()=>s.sub||"matrix"),a=yt(null),c=yt("");He(l,async h=>{if((h==="cms"||h==="portal_cms")&&!a.value&&!s.cms&&!c.value)try{const m=await fetch("/api/vibcms");a.value=await m.json()}catch(m){c.value=String(m?.message||m)}},{immediate:!0});const o=Y(()=>s.cms??a.value),u=Y(()=>s.d?.fus),_=Y(()=>{const h=u.value;return!h||h.err?`<section><div class="panel"><p>${r("fus.unavailable",{e:String(h&&h.err||"")})}</p></div></section>`:l.value==="matrix"?Eu(h):l.value==="loop"?Fu(h):l.value==="units"?qu(h,null):l.value==="events"?Lu(h,s.d):l.value==="cms"?Ru(o.value):l.value==="portal_cms"?Hu(s.d,o.value):`<div class="panel mb"><p class="small muted">子视图「${r("fus.sub."+l.value)}」尚未迁移到 Vue(迁移中)。</p></div>`});return(h,m)=>(S(),E("section",null,[i("div",Jd,p(d(r)("fus.eyebrow")),1),i("div",Xd,[(S(!0),E(ct,null,xt(d(Iu),v=>(S(),E("button",{key:v,class:Qt(["pill",{on:v===l.value}]),"data-fsub":v,onClick:y=>n("sub",v)},p(d(r)("fus.sub."+v)),11,Zd))),128))]),i("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)"}},ap={class:"small"},op={class:"small muted",style:{"font-weight":"400"}},rp={key:0,class:"chip"},ip={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"],$p={class:"eyebrow"},yp={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=Ut({__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),a=Y(()=>(e.d?.sysmx_span||[]).join(" ~ ")||""),c=Y(()=>s.value?.β_schedule?.离群||[]),o=Y(()=>s.value?.β_schedule?.全场同档差中位||0),u=Y(()=>{const m=n.value?.curve?.cands||[];return m.length?m.map(v=>`<a href="/turbine/${v.t}">${qt(v.t)}</a> ${v.dev}% ${wt(v.判)}`).join(" | "):r("gen.no_cands")}),_=Y(()=>r("gen.beta_note",{units:c.value.map(m=>`<a href="/turbine/${m.t}">${qt(m.t)}</a>`).join(" / "),k:c.value.length?Math.round(Math.max(...c.value.map(m=>m.平均偏))/Math.max(o.value||0,.01)):"—",v:wt(s.value?.β_schedule?.判)})),h=Y(()=>l.value?.figs||[]);return(m,v)=>(S(),E("section",null,[i("div",ep,p(d(r)("gen.eyebrow")),1),i("div",sp,[i("b",null,p(d(r)("gen.fixed_win")),1),pt(" "+p(a.value?d(r)("gen.win_range",{span:a.value}):"")+" ",1),i("div",np,p(d(r)("gen.win_why")),1)]),t.d.m9&&t.d.m9.err?(S(),E("div",lp,[i("p",ap,p(d(r)("flt.block_err",{k:"m9",e:d(wt)(t.d.m9.err)})),1)])):bt("",!0),s.value?(S(),E("div",{key:1,class:"panel mb",style:Lt(t.pending?"border-left:3px solid var(--accent)":"")},[i("h3",null,[pt(p(d(r)("gen.ctrl"))+" ",1),i("span",op,p(d(r)("gen.ctrl_win",{win:d(wt)(s.value.窗)})),1),t.pending?(S(),E("span",rp,p(d(r)("gen.recomputing_short")),1)):bt("",!0)]),i("div",ip,[i("div",cp,[i("div",up,p(d(r)("gen.cap")),1),At(Xt,{html:d(zt)("capAxis",s.value&&s.value.P封顶,s.value&&s.value.ω封顶)},null,8,["html"]),i("p",dp,p(d(r)("gen.cap_note")),1)]),i("div",pp,[i("div",fp,p(d(r)("gen.beta")),1),At(Xt,{html:d(zt)("betaBar",s.value&&s.value.β_schedule||{},d(qt))},null,8,["html"]),i("p",{class:"small muted",style:{"margin-top":"4px"},innerHTML:_.value},null,8,hp),i("div",mp,p(d(r)("gen.ruler")),1),At(Xt,{html:d(zt)("rulerBar",s.value&&s.value.尺子)},null,8,["html"]),i("p",_p,p(d(r)("gen.ruler_note")),1)])])],4)):bt("",!0),n.value&&n.value.curve?(S(),E("div",vp,[i("h3",null,[pt(p(d(r)("gen.cands"))+" ",1),i("span",gp,p(d(r)("gen.cands_meta",{note:d(wt)(n.value.curve.note||""),s:t.d.sigma||n.value.curve.sigma})),1)]),i("p",{class:"small",innerHTML:u.value},null,8,bp)])):bt("",!0),i("div",$p,p(d(r)("gen.figs")),1),l.value&&l.value.err?(S(),E("div",yp,[i("p",xp,p(d(gt)(l.value.err)),1)])):l.value&&l.value.building?(S(),E("div",wp,[i("p",kp,[i("b",null,p(d(r)("gen.recomputing")),1),pt(" "+p(d(wt)(l.value.curves?.note||"")),1)]),v[0]||(v[0]=i("div",{class:"skel",style:{width:"60%","margin-top":"10px"}},null,-1)),v[1]||(v[1]=i("div",{class:"skel",style:{width:"80%","margin-top":"8px"}},null,-1))])):l.value?(S(),E("div",Tp,[(S(!0),E(ct,null,xt(h.value,(y,q)=>(S(),E("div",{key:q,class:"panel"},[i("h3",null,[pt(p(d(wt)(y.title||"")),1),y.unit?(S(),E("span",Cp,"("+p(d(wt)(y.unit))+")",1)):bt("",!0)]),At(Xt,{html:d(zt)("multiline",Object.assign({zero:!1},y))},null,8,["html"]),y.note?(S(),E("p",Ep,p(d(wt)(y.note)),1)):bt("",!0)]))),128))])):(S(),E("div",Mp,[i("p",Sp,p(d(r)("gen.loading")),1),v[2]||(v[2]=i("div",{class:"skel",style:{width:"60%","margin-top":"10px"}},null,-1)),v[3]||(v[3]=i("div",{class:"skel",style:{width:"80%","margin-top":"8px"}},null,-1))]))]))}}),Op={class:"eyebrow"},Ap={class:"small muted"},jp=["href"],qp=["innerHTML"],Dp={class:"panel mb"},Pp={class:"small muted"},Lp=["innerHTML"],Rp={style:{display:"flex",gap:"8px","flex-wrap":"wrap",margin:"10px 0","align-items":"center"}},Ip=["placeholder","value"],Hp={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=Ut({__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"),a=yt(""),c=yt(""),o=yt(""),u=Y(()=>e.apis?.["/detail/api/ask_models"]??e.apis?.["/api/ask_models"]??null),_=Y(()=>u.value?u.value.models||{}:null),h=Y(()=>!!u.value?.offline||!!u.value?.LOCAL_AI_DOWN),m=Y(()=>r("cat."+l.value)),v=Y(()=>s.map(([H])=>`<button class="pill ${H===l.value?"on":""}" data-cat="${H}">${r("cat."+H)}</button>`).join("")),y=Y(()=>[1,2,3].map(H=>`<div class="qitem" data-q="${gt(r("cat."+l.value+".q"+H))}">${r("cat."+l.value+".q"+H)}</div>`).join("")),q=(H,dt)=>r("mdl."+H+"."+dt),B=H=>(q(H,"nm")||H)+(n[H]?" · "+r("mdl."+n[H]):"")+(q(H,"t")?" · "+q(H,"t"):""),tt=H=>n[H]?n[H]==="local"?r("mdl.zero_outbound"):`<span style="color:var(--warning)">${r("mdl.outbound_warn")}</span>`:`<span style="color:var(--warning)">${r("mdl.unknown_warn")}</span>`,lt=Y(()=>{const H=_.value;if(H===null)return c.value;const dt=Object.keys(H);return!c.value||!dt.includes(c.value)?dt[0]||"":c.value}),R=Y(()=>{const H=_.value;return H===null?'<option value="">…</option>':Object.keys(H).length?Object.keys(H).map(dt=>`<option value="${gt(dt)}" ${dt===lt?"selected":""}>${gt(B(dt))}</option>`).join(""):`<option value="">${h.value?r("ask.local_down"):r("ask.no_models")}</option>`}),U=Y(()=>`/?lang=zh&win=${encodeURIComponent(String(e.d?.win||""))}`),T=Y(()=>lt.value?tt(lt.value):"");return(H,dt)=>(S(),E("section",null,[i("div",Op,p(d(r)("dec.head")),1),i("p",Ap,[pt(p(d(r)("dec.classic"))+" ",1),i("a",{href:U.value},p(d(r)("ui.open_classic")),9,jp)]),i("div",{style:{display:"flex",gap:"8px",margin:"10px 0 12px","flex-wrap":"wrap"},innerHTML:v.value},null,8,qp),i("div",Dp,[i("h3",null,p(d(r)("ask.common_q",{cat:m.value})),1),i("p",Pp,p(d(r)("cat."+l.value+".hint"))+p("。")+p(d(r)("ask.grounding")),1),i("div",{innerHTML:y.value,class:"unwrap-host"},null,8,Lp),i("div",Rp,[i("input",{id:"askq",type:"text",placeholder:d(gt)(d(r)("ask.placeholder",{cat:m.value})),value:a.value,style:{flex:"1","min-width":"280px"}},null,8,Ip),i("label",Hp,p(d(r)("ask.model")),1),i("select",{id:"askm",innerHTML:R.value},null,8,Np),i("span",{id:"mdlnote",class:"small",innerHTML:T.value},null,8,Bp),i("label",{class:"small",style:{cursor:"pointer","white-space":"nowrap"},title:d(gt)(d(r)("ask.xrev_title"))},[dt[0]||(dt[0]=i("input",{type:"checkbox",id:"askxrev"},null,-1)),pt(" "+p(d(r)("ask.xrev"))+" ",1),i("span",Kp,p(d(r)("ask.xrev_note")),1)],8,Wp),i("button",Up,p(d(r)("ask.go")),1)]),i("div",Vp,p(o.value||d(r)("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"],af={class:"btn","data-asst":"prev"},of={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=Ut({__name:"Assistant",setup(t){const e=["变桨","偏航","主轴承","齿轮箱","发电机","变流器","塔架与基础","主控与传感网","叶片与叶根"],s=["3225","3130","13902","10105","3224"],n=gs({fault:"",prev:"pitch",tree:"pitch",out:{fault:"",prev:"",tree:""}}),l=c=>e.map(o=>`<option value="${Hs(o)}" ${n[c]===Hs(o)?"selected":""}>${me(o)}</option>`).join(""),a=Y(()=>s.map(c=>`<a href="#" data-code="${c}">${c}</a>`).join(" · "));return(c,o)=>(S(),E("section",null,[i("div",Gp,p(d(r)("asst.head"))+" — "+p(d(r)("asst.head_note")),1),i("div",Yp,[i("h3",null,[pt(p(d(r)("asst.corrective"))+" ",1),i("span",Jp,p(d(r)("asst.corrective_flow")),1)]),i("div",{style:vn},[i("input",{id:"asstIn_fault",placeholder:d(gt)(d(r)("asst.code_placeholder")),value:n.fault,style:{flex:"1 1 220px"}},null,8,Xp),i("button",Zp,p(d(r)("ui.query")),1),i("span",Qp,[pt(p(d(r)("asst.common"))+" ",1),i("span",{class:"unwrap-host",innerHTML:a.value},null,8,tf)])]),i("div",ef,p(n.out.fault),1)]),i("div",sf,[i("h3",null,[pt(p(d(r)("asst.preventive"))+" ",1),i("span",nf,p(d(r)("asst.preventive_flow")),1)]),i("div",{style:vn},[i("select",{id:"asstIn_prev",style:{flex:"1 1 200px"},innerHTML:l("prev")},null,8,lf),i("button",af,p(d(r)("ui.query")),1)]),i("div",of,p(n.out.prev),1)]),i("div",rf,[i("h3",null,[pt(p(d(r)("asst.faulttree"))+" ",1),i("span",cf,p(d(r)("asst.faulttree_flow")),1)]),i("div",{style:vn},[i("select",{id:"asstIn_tree",style:{flex:"1 1 200px"},innerHTML:l("tree")},null,8,uf),i("button",df,p(d(r)("ui.query")),1)]),i("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"},$f={class:"small muted"},yf={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"},Of={key:0,class:"muted"},Af={class:"small muted"},jf={class:"small"},qf={class:"small"},Df={class:"small"},Pf={class:"muted"},Lf={style:{"margin-top":"3px"}},Rf={class:"muted",style:{"margin-top":"3px"}},If={class:"eyebrow",style:{"margin-top":"18px"}},Hf={"data-added":"recalc",style:{"margin-top":"18px",display:"flex",gap:"8px","align-items":"center"}},Nf=Ut({__name:"System",props:{apis:{}},emits:["refresh"],setup(t,{emit:e}){const s=t,n=e,l=yt(null);function a(){const m=l.value&&l.value.contentDocument;if(!m)return;const v=["b_off","b_rebuild","b_start","b_stop","b_restart"];for(const y of v){const q=m.getElementById(y);q&&!q.__bound&&(q.__bound=!0,q.addEventListener("click",()=>{setTimeout(()=>n("refresh"),4e3)},!0))}}We(()=>{const m=l.value;m&&m.addEventListener("load",()=>setTimeout(a,800))});const c=m=>String(m??""),o=Y(()=>s.apis?.["/detail/api/maint_survey"]??s.apis?.["/api/maint_survey"]??null),u=[[["数据","Data"],"mt.layer_data","mt.layer_data_note","var(--accent)"],[["机理","Domain model","Mechanism"],"mt.layer_mech","mt.layer_mech_note","var(--warning)"]],_=Y(()=>o.value?.rows||[]),h=Y(()=>u.map(([m,v,y,q])=>({kn:v,kd:y,col:q,rs:_.value.filter(B=>m.includes(String(B.层)))})).filter(m=>m.rs.length));return(m,v)=>{const y=pr("Recalc");return S(),E("section",null,[i("div",hf,p(d(r)("mt.eyebrow")),1),o.value?o.value.error?(S(),E("div",vf,[i("p",gf,p(d(wt)(o.value.error)),1)])):(S(),E(ct,{key:2},[i("div",bf,[i("h3",null,p(d(r)("mt.head",{n:_.value.length})),1),i("p",$f,p(d(r)("mt.note")),1)]),(S(!0),E(ct,null,xt(h.value,q=>(S(),E("div",{key:q.kn,class:"panel mb",style:Lt(`border-left:3px solid ${q.col}`)},[i("h3",null,p(d(r)(q.kn))+" ("+p(q.rs.length)+")",1),i("p",yf,p(d(r)(q.kd)),1),i("div",xf,[i("table",wf,[i("tr",null,[i("th",kf,p(d(r)("mt.src")),1),i("th",Mf,p(d(r)("mt.cov")),1),i("th",Sf,p(d(r)("mt.last")),1),i("th",Tf,p(d(r)("mt.freq")),1),i("th",Cf,p(d(r)("mt.resp")),1),i("th",null,p(d(r)("mt.how")),1)]),(S(!0),E(ct,null,xt(q.rs,(B,tt)=>(S(),E("tr",{key:tt},[i("td",Ef,[i("b",null,p(B.存在?"":"✗ ")+p(c(B.名)),1)]),i("td",Ff,[pt(p(c(B.覆盖)),1),B.条数?(S(),E("span",Of,p(d(r)("mt.rows_n",{n:d(Tt)(B.条数)})),1)):bt("",!0)]),i("td",Af,p(d(gt)(B.末次更新||"—")),1),i("td",jf,p(c(B.频率)),1),i("td",qf,p(c(B.责任)),1),i("td",Df,[i("div",Pf,[pt(p(d(r)("mt.put"))+" ",1),i("code",null,p(c(B.位置)),1)]),i("div",Lf,[pt(p(d(r)("mt.run"))+" ",1),i("code",null,p(c(B.摄入)),1)]),i("div",Rf,p(c(B.说明)),1)])]))),128))])])],4))),128))],64)):(S(),E("div",mf,[i("p",_f,p(d(r)("mt.surveying")),1)])),i("div",If,p(d(r)("tab.recalc")),1),At(y),i("div",Hf,[i("button",{class:"btn quiet",id:"refresh-data",onClick:v[0]||(v[0]=q=>n("refresh"))},"刷新数据"),v[1]||(v[1]=i("span",{class:"small muted"},"清产物 / 重算 / 启停服务后,可点此让工作台重新取数;控制台内按钮动作后也会自动重取。",-1))]),i("iframe",{ref_key:"frame",ref:l,"data-added":"recalc",class:"portal-recalc-frame",title:"数据重算与产物",src:"/ops",style:{width:"100%",height:"1420px",border:"0",display:"block","margin-top":"18px"}},null,512)])}}});function Bf(t,e){const{t:s,fmt:n,esc:l,dv:a,displayText:c,chart:o,SYS_KEY:u,sysName:_,stateChip:h,unitNo:m,STEP:v,winName:y,L:q,RPT:B,FACTS:tt}=e;t&&t.fus&&t.fus.链盘;function lt(){if(!tt||!tt.cards)return"";const ot=tt.cards.filter(ht=>ht.verdict==="定论"||ht.verdict==="准定论·预警"),ft=ot.map(ht=>`<tr><td><code>${l(ht.claim_id)}</code></td><td>${l(ht.verdict)}</td><td>${l(ht.title)}</td><td>${l((ht.systems||[]).join(", ")||"—")}</td><td>${l(ht.aggregation||"—")}</td></tr>`).join("");return`<div class="rpt-blk" data-contract="${l(tt.contract_sha256||"")}"><div class="blk-ti">${s("rpt.facts.title")} <span class="small muted">${s("rpt.facts.sub",{n:ot.length,sha:(tt.contract_sha256||"").slice(0,16)})}</span></div><div style="overflow:auto"><table class="tbl"><tr><th>claim</th><th>${s("rpt.facts.verdict")}</th><th>${s("rpt.facts.text")}</th><th>${s("rpt.facts.sys")}</th><th>${s("rpt.facts.agg")}</th></tr>${ft}</table></div></div>`}const R=ot=>{const ft=String(ot||"");for(const ht of["attr.","vp."])if(q[ht+ft]!=null)return s(ht+ft);return null},U=ot=>u[ot]?_(ot):R(ot)?l(R(ot)):a(ot),T=ot=>u[ot]?_(ot):R(ot)||c(ot);function H(ot,ft,ht,jt,F){return`<div class="kpi ${F||""}"><b>${ot}<small>${ft}</small></b><span>${ht}<br><span style="opacity:.8">${jt||""}</span></span></div>`}function dt(ot,ft){const ht=ft.control&&ft.control.energy||{},jt=ht.monthly||[],F=ft.rel&&!ft.rel.err?ft.rel:null,J=ft.m8&&!ft.m8.err?ft.m8.mtbf:null,X=ft.faults||{},j=ft.fus||{},A=j.链盘||{},C=(k,P,N)=>`<div class="panel mb"><h3>${k}</h3>${P}${N?`<p class="small muted" style="margin-top:8px;padding-top:7px;border-top:1px solid var(--line)">${s("rpt.caliber_lbl")}${N}</p>`:""}</div>`;if(ot==="kpi"){const k=jt[jt.length-1]||{},P=jt[jt.length-2]||{},N=(k.cov||0)>=.5&&(P.cov||0)>=.5,K=(nt,at)=>at?(nt-at)/at*100:0,Z=K(k.act,P.act);return`<div class="kpis" style="margin-bottom:14px">${H(n(ht.act),"MWh",s("rpt.kpi.act"),s("rpt.kpi.theo",{v:n(ht.theo)})+" | "+(N?s("rpt.kpi.mom",{v:(Z>=0?"+":"")+Z.toFixed(0)}):s("rpt.kpi.mom_na")))}
  77. ${H(n(ht.eflh),"h",s("rpt.kpi.eflh"),s("rpt.kpi.annual",{v:n(Math.round((ht.eflh||0)/Math.max(jt.filter(nt=>nt.cov>=.5).length,1)*12))}))}
  78. ${H(n(ft.control&&ft.control.avail,1),"%",s("rpt.kpi.avail"),s("rpt.kpi.avail_n"),ft.control&&ft.control.avail>=95?"ok":"warn")}
  79. ${H(n(ht.loss_pct,1),"%",s("rpt.kpi.loss"),n(ht.loss)+" MWh",ht.loss_pct>=15?"warn":"")}
  80. ${H(J?n(J.MTBF_h):"—","h",s("rpt.kpi.mtbo"),s("rpt.kpi.mtbo_n",{n:J?n(J.停机事件数):"—",h:J?J.MDT_h:"—"}))}
  81. ${H((A.rows||[]).length,s("unit.units"),s("rpt.kpi.action"),s("rpt.kpi.action_n",{a:(j.kpi||{}).定论||0,b:(j.kpi||{}).预警||0,c:(j.kpi||{}).候选观察||0}),(A.rows||[]).length>20?"warn":"")}</div>`}if(ot==="water")return C(s("rpt.water.title"),o("waterfall",ht)+`<p class="small muted" style="margin-top:6px">${s("rpt.water.note",{theo:n(ht.theo),act:n(ht.act),loss:n(ht.loss),pct:ht.loss_pct})} | ${ht.cap_ok?s("rpt.water.cap_ok",{cap:n(ht.cap)}):s("rpt.water.cap_bad",{cap:n(ht.cap)})}</p>`,s("rpt.water.cal"));if(ot==="emon")return C(s("rpt.emon.title"),jt.length?`<div class="tblwrap"><table><tr><th>${s("rpt.emon.m")}</th><th class="r">${s("rpt.emon.act")}</th><th class="r">${s("rpt.emon.loss")}</th><th class="r">${s("rpt.emon.pct")}</th><th class="r">${s("rpt.emon.eflh")}</th><th>${s("rpt.emon.cov")}</th></tr>${jt.map(k=>`<tr><td>${k.m}</td><td class="r">${n(k.act)}</td><td class="r">${n(k.loss)}</td><td class="r">${k.loss_pct}%</td><td class="r">${k.eflh}</td><td class="small" style="color:${k.cov<.5?"var(--warning)":"var(--muted)"}">${(k.cov*100).toFixed(0)}%${k.cov<.5?s("rpt.emon.partial"):""}</td></tr>`).join("")}</table></div>`:"—",s("rpt.emon.cal"));if(ot==="blame")return C(s("rpt.blame.title"),o("blameBar",ht)+`<p class="small muted" style="margin-top:8px">${s("rpt.blame.note")}<br><b>${s("rpt.blame.note2")}</b></p>`,s("rpt.blame.cal"));if(ot==="ram")return F?C(s("rpt.ram.title"),o("ramChart",F.表,T)+`<p class="small muted" style="margin-top:6px">${s("rpt.ram.note",{a:F.设备类停机h,b:F.外部类停机h})}</p>`,s("rpt.ram.cal")):"";if(ot==="parts")return F?C(s("rpt.parts.title"),`<div class="tblwrap"><table><tr><th>${s("rpt.parts.part")}</th><th class="r">${s("rpt.parts.h")}</th><th class="r">${s("rpt.parts.ev")}</th><th class="r">${s("rpt.parts.mtbf")}</th><th class="r">${s("rpt.parts.mdt")}</th><th class="r">${s("rpt.parts.units")}</th></tr>${F.表.slice(0,9).map(k=>`<tr><td class="small">${U(k.部件)}${k.外部?s("rpt.parts.ext"):""}</td><td class="r">${k.停机时长h}</td><td class="r">${k.事件数}</td><td class="r">${k.MTBF_h||"—"}</td><td class="r">${k.MDT_h}</td><td class="r">${k.影响台数}</td></tr>`).join("")}</table></div>`,s("rpt.parts.cal")):"";if(ot==="attrib")return F?C(s("rpt.attrib.title"),o("attribBar",F.表,F.总停机h)+`<p class="small muted" style="margin-top:6px">${s("rpt.attrib.note")}</p>`,""):"";if(ot==="pareto")return C(s("rpt.pareto.title"),o("paretoChart",X.pareto_n||[],s("unit.n"),""),s("rpt.pareto.cal"));if(ot==="quad")return C(s("rpt.quad.title"),o("quadChart",X.quad||[])+`<p class="small muted" style="margin-top:6px">${s("rpt.quad.note")}</p>`,s("rpt.quad.cal"));if(ot==="frate")return C(s("rpt.frate.title"),o("rateChart",X.monthly||{months:[],vals:[]})+`<p class="small muted" style="margin-top:6px">${s("rpt.frate.note")}</p>`,s("rpt.frate.cal"));if(ot==="units"){const k=(A.rows||[]).slice(0,14),P=Object.entries(A.stuck||{}).map(([N,K])=>s("rpt.units.stuck",{n:K,s:s("step."+(v[N]||"evidence"))})).join(" · ");return C(s("rpt.units.title"),`<p class="small muted" style="margin-bottom:8px">${s("rpt.units.head",{n:(A.rows||[]).length,tot:(ft.kpi||{}).全场||38})}${P}</p><div class="tblwrap"><table><tr><th style="width:52px">${s("ui.unit")}</th><th style="width:80px">${s("rpt.units.state")}</th><th>${s("rpt.units.ev")}</th><th style="width:56px">${s("rpt.units.prog")}</th><th style="width:90px">${s("rpt.units.at")}</th></tr>
  82. ${k.map(N=>`<tr><td><b>${m(N.t)}</b></td><td>${h(N.ostate)}</td><td class="small muted">${N.part&&N.part.indexOf("未收录")<0?`<b style="color:var(--ink)">${a(N.part)}</b> · `:""}${(N.srcs||[]).map(a).join("/")||"—"}${N.rising?` · <span style="color:var(--critical)">${s("rpt.units.rising",{r:N.rising.ratio})}</span>`:""}</td><td class="r small">${N.done}/6</td><td class="small" style="color:var(--warning)">${N.stuck?s("step."+(v[N.stuck]||"evidence")):s("rpt.units.clear")}</td></tr>`).join("")}</table></div>`,s("rpt.units.cal"))}if(ot==="chain")return C(s("rpt.chain.title"),`<p class="small muted">${s("rpt.chain.note",{s:Object.entries(A.stuck||{}).map(([k,P])=>s("rpt.units.stuck",{n:P,s:s("step."+(v[k]||"evidence"))})).join(", ")})}</p>`,s("rpt.chain.cal",{b:a(A.wo_bound||"")}));if(ot==="loop"){const k=A.closed||[];return C(s("rpt.loop.title"),`<div class="tblwrap"><table><tr><th>${s("ui.unit")}</th><th>${s("rpt.loop.comp")}</th><th>${s("rpt.loop.date")}</th><th class="r">${s("rpt.loop.pre")}</th><th class="r">${s("rpt.loop.post")}</th><th class="r">${s("rpt.loop.ratio")}</th></tr>${k.map(P=>`<tr><td><b>${m(P.turbine)}</b></td><td class="small">${a(P.component)}</td><td class="small">${l(P.replace_date)}</td><td class="r">${P.pre}</td><td class="r">${P.post}</td><td class="r" style="color:var(--good)"><b>${P.ratio}×</b></td></tr>`).join("")}</table></div><p class="small muted" style="margin-top:6px">${s("rpt.loop.note")}</p>`,s("rpt.loop.cal"))}if(ot==="plan")return C(s("rpt.plan.title"),`<ol style="margin:0 0 0 20px;line-height:1.85"><li>${s("rpt.plan.1",{n:(A.stuck||{}).机制||0})}</li><li>${s("rpt.plan.2")}</li><li>${s("rpt.plan.3")}</li><li>${s("rpt.plan.4")}</li></ol>`,s("rpt.plan.cal"));if(ot==="narr"){const k=B.narr;return!k||!k.text?C(s("rpt.narr.title"),`<p class="small muted">${s("rpt.narr.empty")}</p>`,""):C(s("rpt.narr.title"),`<p style="line-height:1.9;margin:0">${l(k.text).split(`
  83. `).join("<br>")}</p>${(k.ungrounded||[]).length?`<p class="small" style="color:var(--warning);margin-top:8px">${s("rpt.narr.ungr",{v:k.ungrounded.map(l).join(" / ")})}</p>`:""}`,s("rpt.narr.cal",{m:l(k.model),g:(k.ungrounded||[]).length?s("rpt.narr.g_n",{n:k.ungrounded.length}):s("rpt.narr.g_ok")}))}if(ot==="caliber"){const k=X.partial||[];return C(s("rpt.cal.title"),`<ul style="margin:0 0 0 20px;line-height:1.85"><li><b>${s("rpt.cal.period")}</b> ${y(ft.win)}${k.length?s("rpt.cal.partial",{m:k.join("/"),c:Math.round((X.cov_min||0)*100)}):""}</li><li><b>${s("rpt.cal.denom")}</b> ${s("rpt.cal.denom_d")}</li><li><b>${s("rpt.cal.stop")}</b> ${s("rpt.cal.stop_d")}</li><li><b>${s("rpt.cal.wo")}</b> ${s("rpt.cal.wo_d")}</li><li><b>${s("rpt.cal.rating")}</b> ${s("rpt.cal.rating_d")}</li>${B.aud==="up"?`<li><b>${s("rpt.cal.deid")}</b> ${s("rpt.cal.deid_d")}</li>`:""}</ul>`,"")}return""}return{rptBlock:dt,rptFacts:lt}}const Wf={class:"eyebrow"},Kf={class:"panel mb noprint"},Uf={style:{display:"flex",gap:"10px","align-items":"center","flex-wrap":"wrap","margin-bottom":"10px"}},Vf={class:"small",style:{"font-weight":"600"}},zf=["data-preset","onClick"],Gf=["selected"],Yf=["selected"],Jf={key:0,class:"small",style:{color:"var(--warning)","flex-basis":"100%"}},Xf={class:"small",style:{"font-weight":"600","margin-bottom":"7px"}},Zf={style:{"font-weight":"400",color:"var(--muted)"}},Qf={style:{display:"grid","grid-template-columns":"auto 1fr",gap:"6px 12px","align-items":"center"}},th={class:"small muted",style:{"text-align":"right","padding-top":"3px"}},eh={style:{display:"flex","flex-wrap":"wrap",gap:"6px"}},sh=["data-block","onClick","onMouseenter"],nh={id:"rpthint",class:"small muted",style:{"margin-top":"9px","padding-top":"8px","border-top":"1px solid var(--line)","min-height":"19px"}},lh={style:{"margin-top":"11px","padding-top":"10px","border-top":"1px solid var(--line)"}},ah={class:"small",style:{"font-weight":"600","margin-bottom":"6px"}},oh=["innerHTML"],rh={style:{display:"flex",gap:"8px","align-items":"center","flex-wrap":"wrap"}},ih=["placeholder","value"],ch=["innerHTML"],uh=["disabled"],dh={id:"rptout",class:"small muted",style:{"margin-top":"7px"}},ph={key:0,class:"paper",style:{"text-align":"center",padding:"56px 40px"}},fh={class:"small muted"},hh={key:1,class:"paper"},mh={class:"paper-hd"},_h={class:"paper-ti"},vh={class:"small muted",style:{"margin-top":"3px"}},gh={class:"small muted",style:{"text-align":"right"}},bh={key:0,class:"noprint",style:{display:"flex",gap:"3px","justify-content":"flex-end","margin-bottom":"-6px",position:"relative","z-index":"2"}},$h=["data-k","disabled","onClick"],yh=["data-k","disabled","onClick"],xh=["data-k","onClick"],wh=["data-blk","innerHTML"],kh=["innerHTML"],Mh={class:"paper-ft"},Sh=Ut({__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:"✍"},a={"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"],o=gs({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||{}:o.models),h=Y(()=>!!u.value?.offline),m=(D,V)=>r("mdl."+D+"."+V),v=D=>(m(D,"nm")||D)+(a[D]?" · "+r("mdl."+a[D]):"")+(m(D,"t")?" · "+m(D,"t"):""),y=D=>o.canvas.includes(D),q=Y(()=>o.compose===!0&&!!_.value&&Object.keys(_.value).length>0),B=Y(()=>{const D=_.value;return D===null?'<option value="">…</option>':Object.keys(D).length?Object.keys(D).map(V=>`<option value="${gt(V)}" ${V===H?"selected":""}>${gt(v(V))}</option>`).join(""):`<option value="">${h.value?r("ask.local_down"):r("ask.no_models")}</option>`}),tt=Y(()=>c.map(D=>({g:D,label:r("rpt.g."+D),items:Object.keys(n).filter(V=>n[V]===D).map(V=>({k:V,icon:l[V]||"",on:y(V),name:r("rpt.b."+V+".nm")}))}))),lt=Y(()=>e.apis&&e.apis["/api/facts"]||null),R=Y(()=>Bf(e.d,{t:r,fmt:Tt,esc:gt,dv:wt,displayText:Jn,chart:zt,SYS_KEY:ms,sysName:me,stateChip:Ee,unitNo:qt,STEP:Fn,winName:Se,L:Ga,RPT:o,FACTS:lt.value})),U=Y(()=>R.value.rptFacts()),T=D=>R.value.rptBlock(D,e.d),H=Y(()=>{const D=_.value;if(D===null)return o.model;const V=Object.keys(D);return!o.model||!V.includes(o.model)?V[0]||"":o.model}),dt=Y(()=>r("rpt.need_hint")+(H.value?a[H.value]==="local"?r("rpt.local_note"):`<span style="color:var(--warning)">${r("rpt.cloud_note")}</span>`:"")),ot=Y(()=>o.out?o.out:o.compose===!1?r("rpt.no_compose"):_.value&&!Object.keys(_.value).length?h.value?r("ask.local_down"):r("rpt.no_models"):""),ft=Y(()=>(String(e.d?.fus?.数据时点||"").match(/\d{4}-\d{2}-\d{2}/)||[""])[0]);function ht(D){o.canvas=(s[D]||[]).slice(),K()}function jt(D){const V=o.canvas.indexOf(D);V>=0?o.canvas.splice(V,1):o.canvas.push(D),et.value=r("rpt.hint_idle"),K()}function F(D){et.value=r("rpt.b."+D+".nm")+" — "+r("rpt.b."+D+".d")}function J(){et.value=r("rpt.hint_idle")}function X(D,V){const Q=o.canvas.indexOf(D);if(Q<0)return;if(V==="del"){o.canvas.splice(Q,1);return}const W=Q+(V==="up"?-1:1);if(W<0||W>=o.canvas.length)return;const G=o.canvas[Q];o.canvas[Q]=o.canvas[W],o.canvas[W]=G}function j(D){o.aud=D.target.value}async function A(){const D={};for(const V of o.canvas){const Q=document.querySelector('[data-blk="'+V+'"]'),W=Q&&Q.querySelector("svg");if(W)try{const G=W.cloneNode(!0);let f="";try{f=window.getComputedStyle(document.body).fontFamily||""}catch{f=""}f&&(G.setAttribute("font-family",f),G.setAttribute("style",(G.getAttribute("style")||"")+";font-family:"+f.replace(/;/g,"")),G.querySelectorAll("text, tspan").forEach(x=>x.setAttribute("font-family",f)));const g=new XMLSerializer().serializeToString(G),b=(W.getAttribute("viewBox")||"").split(/[\s,]+/).map(Number),$=(b[2]||W.clientWidth||900)*2,M=(b[3]||W.clientHeight||360)*2,O=new Image;await new Promise(x=>{O.onload=()=>x(),O.onerror=()=>x(),O.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(g)});const L=document.createElement("canvas");L.width=$,L.height=M;const I=L.getContext("2d");if(!I)continue;I.fillStyle="#ffffff",I.fillRect(0,0,$,M),I.drawImage(O,0,0,$,M),D[V]=L.toDataURL("image/png")}catch{}}return D}function C(D,V){const Q=URL.createObjectURL(D),W=document.createElement("a");W.href=Q,W.download=V,document.body.appendChild(W),W.click(),W.remove(),setTimeout(()=>{try{URL.revokeObjectURL(Q)}catch{}},4e3)}function k(){try{window.print()}catch{}}function P(D){if(!o.canvas.length){try{window.alert(r("rpt.empty_canvas"))}catch{}return}const V=o.narr&&o.narr.text?o.narr.text:"",Q=String(e.d&&e.d.win||""),W="运行分析报告_"+Q+"_"+(o.aud==="up"?"上报版":"内部版")+"."+D,G=()=>{const f="/api/rpt_export?fmt="+D+"&blocks="+encodeURIComponent(o.canvas.join(","))+"&aud="+o.aud+"&win="+encodeURIComponent(Q)+"&narr="+encodeURIComponent(V),g=document.createElement("a");g.href=f,g.download="",document.body.appendChild(g),g.click(),g.remove()};if(D!=="docx"){G();return}(async()=>{let f={};try{f=await A()}catch{f={}}if(!Object.keys(f).length){G();return}try{const g=await fetch("/api/rpt_export",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({fmt:"docx",blocks:o.canvas.join(","),aud:o.aud,win:Q,narr:V,images:f})});if(!g.ok){G();return}C(await g.blob(),W)}catch{G()}})()}let N=!1;async function K(){if(!N){N=!0;try{const D=await fetch("/api/rpt_compose?probe=1");o.compose=!!(D&&D.ok)}catch{o.compose=!1}}}async function Z(){const D=String(o.need||"");if(!D.trim()){_t.value=r("rpt.need_empty");return}it.value=!0,_t.value=r("rpt.composing");let V;try{const W=o.model||"";V=await(await fetch("/api/rpt_compose?need="+encodeURIComponent(D)+"&canvas="+encodeURIComponent(o.canvas.join(","))+"&model="+encodeURIComponent(W))).json()}catch(W){_t.value=r("rpt.compose_fail",{e:W?.message||String(W)}),it.value=!1;return}if(it.value=!1,V.err){_t.value=String(V.err);return}o.narr={text:V.narrative,model:V.model,ungrounded:V.ungrounded||[]};const Q=(V.blocks||[]).filter(W=>n[W]);Q.length?o.canvas=(V.narrative?["narr"]:[]).concat(Q):V.narrative&&!o.canvas.includes("narr")&&o.canvas.unshift("narr"),_t.value=r("rpt.composed",{n:Q.length,narr:V.narrative?r("rpt.narr_plus"):"",m:V.model||"",s:V.secs})}function nt(D){o.model=D.target.value}function at(D){o.need=D.target.value}const et=yt(r("rpt.hint_idle")),it=yt(!1),_t=yt("");return We(()=>{K()}),(D,V)=>(S(),E("section",null,[i("div",Wf,p(d(r)("rpt.eyebrow")),1),i("div",Kf,[i("div",Uf,[i("span",Vf,p(d(r)("rpt.presets")),1),(S(!0),E(ct,null,xt(Object.keys(s),Q=>(S(),E("button",{key:Q,class:"pill","data-preset":Q,onClick:W=>ht(Q)},p(d(r)("rpt.preset."+Q)),9,zf))),128)),V[2]||(V[2]=i("span",{style:{flex:"1"}},null,-1)),i("select",{id:"rptaud",onChange:j},[i("option",{value:"in",selected:o.aud==="in"},p(d(r)("rpt.aud_in")),9,Gf),i("option",{value:"up",selected:o.aud==="up"},p(d(r)("rpt.aud_up")),9,Yf)],32),i("button",{class:"btn quiet",id:"rptprint",onClick:k},p(d(r)("rpt.print")),1),i("button",{class:"btn quiet","data-export":"docx",onClick:V[0]||(V[0]=Q=>P("docx"))},p(d(r)("rpt.export_docx")),1),i("button",{class:"btn quiet","data-export":"xlsx",onClick:V[1]||(V[1]=Q=>P("xlsx"))},p(d(r)("rpt.export_xlsx")),1),o.aud==="up"?(S(),E("span",Jf,p(d(r)("rpt.up_note")),1)):bt("",!0)]),i("div",Xf,[pt(p(d(r)("rpt.library"))+" ",1),i("span",Zf,p(d(r)("rpt.library_note",{n:o.canvas.length})),1)]),i("div",Qf,[(S(!0),E(ct,null,xt(tt.value,Q=>(S(),E(ct,{key:Q.g},[i("div",th,p(Q.label),1),i("div",eh,[(S(!0),E(ct,null,xt(Q.items,W=>(S(),E("button",{key:W.k,class:Qt(["pill",{on:W.on}]),"data-block":W.k,style:Lt({borderRadius:"7px",padding:"5px 11px",fontSize:"12.5px",opacity:W.on?1:.8}),onClick:G=>jt(W.k),onMouseenter:G=>F(W.k),onMouseleave:J},p(W.icon)+" "+p(W.name),47,sh))),128))])],64))),128))]),i("div",nh,p(et.value),1),i("div",lh,[i("div",ah,[pt(p(d(r)("rpt.need_head"))+" ",1),i("span",{id:"rptmdlnote",style:{"font-weight":"400",color:"var(--muted)"},innerHTML:dt.value},null,8,oh)]),i("div",rh,[i("input",{id:"rptneed",placeholder:d(gt)(d(r)("rpt.need_ph")),value:o.need,style:{flex:"1 1 300px","min-width":"220px"},onInput:at,onKeydown:Ei(Z,["enter"])},null,40,ih),i("select",{id:"rptmdl",innerHTML:B.value,onChange:nt},null,40,ch),i("button",{class:"btn",id:"rptgo",disabled:!q.value,onClick:Z},p(d(r)("rpt.compose")),9,uh)]),i("div",dh,p(_t.value||ot.value),1)])]),o.canvas.length?(S(),E("div",hh,[i("div",mh,[i("div",null,[i("div",_h,p(d(r)("app.brand"))+" · "+p(d(r)("rpt.paper_title")),1),i("div",vh,p(d(r)("rpt.paper_sub",{win:d(Se)(t.d.win),n:(t.d.kpi||{}).全场||38}))+p(o.aud==="up"?" | "+d(r)("rpt.up_tag"):""),1)]),i("div",gh,p(d(r)("rpt.chapters",{n:o.canvas.length})),1)]),(S(!0),E(ct,null,xt(o.canvas,(Q,W)=>(S(),E(ct,{key:Q},[n[Q]?(S(),E("div",bh,[i("button",{class:"pill","data-mv":"up","data-k":Q,disabled:W===0,style:{padding:"1px 8px","font-size":"11px",opacity:".7"},onClick:G=>X(Q,"up")},"↑",8,$h),i("button",{class:"pill","data-mv":"down","data-k":Q,disabled:W===o.canvas.length-1,style:{padding:"1px 8px","font-size":"11px",opacity:".7"},onClick:G=>X(Q,"down")},"↓",8,yh),i("button",{class:"pill","data-mv":"del","data-k":Q,style:{padding:"1px 8px","font-size":"11px",opacity:".7"},onClick:G=>X(Q,"del")},"×",8,xh)])):bt("",!0),n[Q]?(S(),E("div",{key:1,"data-blk":Q,innerHTML:T(Q)},null,8,wh)):bt("",!0)],64))),128)),i("div",{innerHTML:U.value},null,8,kh),i("div",Mh,[i("span",null,p(d(r)("rpt.foot_src"))+p(ft.value?" | "+d(r)("rpt.foot_asof",{d:ft.value}):""),1),i("span",null,p(d(r)("rpt.foot_trace"))+p(o.aud==="up"?" | "+d(r)("rpt.foot_deid"):""),1)])])):(S(),E("div",ph,[i("div",fh,p(d(r)("rpt.preview_empty")),1)]))]))}}),Th={class:"kpis"},Ch=["title"],Eh=["innerHTML"],Fh={key:1},Oh={key:0},Ah={class:"sechead"},jh={class:"meta"},qh={class:"meta"},Dh={key:0,class:"card mb",style:{"margin-bottom":"10px"}},Ph={class:"small",style:{color:"var(--warning)"}},Lh={class:"small muted"},Rh={class:"cards"},Ih=["id"],Hh={class:"head"},Nh=["href"],Bh={class:"sys"},Wh={class:"evidence-detail"},Kh={class:"why"},Uh={class:"evid"},Vh=["title"],zh={key:1,class:"rv"},Gh={key:0,class:"caveat"},Yh={class:"sechead"},Jh={class:"meta"},Xh={class:"legend"},Zh={class:"cells"},Qh=["data-u","title"],tm={key:1,class:"quiet",style:{padding:"10px"}},em={class:"nums"},sm={class:"quiet"},nm={class:"sechead"},lm={class:"meta"},am={class:"systems"},om={class:"t"},rm=["href"],im={class:"bar"},cm={class:"cnt"},um=Ut({__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||{}),a=Y(()=>{const R={};for(const U of l.value.states||[])R[U.k]=U.loss;return R}),c=Y(()=>{const R=l.value,U=r("kpi.loss",{win:Se(e.d?.win)})+(a.value["停机(调度令)"]!=null?` · ${r("kpi.loss_dispatch",{n:Tt(a.value["停机(调度令)"])})}`:"");return[{v:Tt(R.avail,1),u:"%",l:r("kpi.avail",{win:Se(e.d?.win)}),k:R.avail>=95?"ok":"warn",ti:""},{v:Tt(n.value.停机总时长h),u:"h",l:r("kpi.downtime",{n:Tt(n.value.停机事件数)}),k:"warn",ti:""},{v:Tt(n.value.MTBF_h),u:"h",l:r("kpi.mtbo"),k:"",ti:""},{v:Tt(a.value.停机),u:"MWh",l:U,k:"",ti:""},{v:Tt(a.value["限电·绑定"]),u:"MWh",l:r("kpi.curtail"),k:"",ti:""},{vRaw:`${Tt(e.d?.kpi?.报警台)} <small>/ ${Tt(e.d?.kpi?.全场)}</small>`,u:"",l:r("kpi.alarm_units"),k:e.d?.kpi?.报警台?"warn":"ok",ti:r("kpi.alarm_units.hint"),vHtml:!0}]}),o=Y(()=>{const R={};for(const U of e.d?.watch||[])R[U.t]=U.why;return R}),u=Y(()=>((s.value.链盘||{}).rows||[]).filter(R=>R.lvl==="bad"||R.lvl==="warn"));function _(R){const U=(o.value[R.t]||"").trim();if(U)return U;const T=Fn[R.stuck]||String(R.stuck||"").toLowerCase(),H=r(T==="evidence"?"step.site_records":"step."+(T||"evidence"));return r("ov.basis_fusion",{part:R.part||"—",done:R.done==null?"—":R.done,n:(R.steps||[]).length||"—",stuck:R.stuck?H:r("ov.all_steps_done"),srcs:(R.srcs||[]).join(" / ")||r("ov.no_srcs")})}function h(R){if(!R.stuck)return"";const U=Fn[R.stuck]||String(R.stuck||"").toLowerCase(),T=r(U==="evidence"?"step.site_records":"step."+(U||"evidence"));return r("step.stuck_at",{step:T})}const m=[["危险","critical"],["报警","warning"],["不可判","unknown"],["良好","good"],["优秀","excellent"]],v=Y(()=>{const R=e.d?.sysdist||{};return Yn.map(U=>{const T=R[U]||{},H=Object.values(T).reduce((dt,ot)=>dt+ot,0)||1;return{name:me(U),slug:Hs(U),dist:T,n:H,seg:m.filter(([dt])=>T[dt]).map(([dt,ot])=>({k:dt,v:ot}))}})}),y=Y(()=>s.value.矩阵||[]),q=Y(()=>new Set(u.value.map(R=>R.t))),B={定论:"confirmed","准定论·预警":"near","候选·新发":"candidate_new",候选:"candidate","候选·记基线":"candidate_baseline",参考:"reference",INSUFFICIENT:"insufficient",正常:"normal",撤回:"withdrawn"},tt={candidate_new:"candidate",candidate_baseline:"candidate",normal:"reference"},lt=R=>{const U=B[String(R??"")];return U?tt[U]||U:""};return(R,U)=>(S(),E(ct,null,[i("section",null,[i("div",Th,[(S(!0),E(ct,null,xt(c.value,(T,H)=>(S(),E("div",{key:H,class:Qt(["kpi",T.k]),title:T.ti||void 0},[T.vHtml?(S(),E("b",{key:0,innerHTML:T.vRaw},null,8,Eh)):(S(),E("b",Fh,[pt(p(T.v),1),T.u?(S(),E("small",Oh,p(T.u),1)):bt("",!0)])),i("span",null,p(T.l),1)],10,Ch))),128))])]),i("section",null,[i("div",Ah,[i("h2",null,p(d(r)("ov.attention")),1),i("span",jh,p(d(r)("ov.attention_n",{n:u.value.length})),1),i("span",qh,p(d(r)("ov.ranked_by")),1)]),s.value.gap?(S(),E("div",Dh,[i("p",Ph,p(s.value.gap),1),i("p",Lh,p(d(r)("ov.fus_gap_hint")),1)])):bt("",!0),i("div",Rh,[(S(!0),E(ct,null,xt(u.value,T=>(S(),E("div",{key:T.t,class:"card",id:`u-${T.t}`,style:Lt(`--sev:var(--${d(Rl)[d(Ns)(T.ostate)||(T.lvl==="bad"?"bad":"warn")]})`)},[i("div",Hh,[i("a",{class:"unit",href:`/turbine/${T.t}`},p(d(qt)(T.t)),9,Nh),i("span",Bh,p(T.part||""),1),i("span",{class:Qt(["chip",d(Ns)(T.ostate)||(T.lvl==="bad"?"bad":"warn")])},p(d(Pl)(T.ostate||(T.lvl==="bad"?"危险":"报警"))),3)]),i("details",Wh,[i("summary",null,p(d(r)("ov.evidence")),1),i("div",Kh,p(_(T)),1)]),i("div",Uh,[T.estate?(S(),E("span",{key:0,class:Qt(["tier",lt(T.estate)]),title:d(r)("tier."+(B[T.estate]||"unknown"))},p(d(Pl)(T.estate)),11,Vh)):bt("",!0),T.srcs&&T.srcs.length?(S(),E("span",zh,p(T.srcs.length)+" sources",1)):bt("",!0)]),h(T)||T.next?(S(),E("div",Gh,[i("b",null,p(d(r)("ov.caveat")),1),pt(p(h(T))+p(h(T)&&T.next?" — ":"")+p(T.next||""),1)])):bt("",!0)],12,Ih))),128))])]),i("section",null,[i("div",Yh,[i("h2",null,p(d(r)("ov.strip")),1),i("span",Jh,p(d(r)("ov.strip_hint")),1),i("div",Xh,[(S(),E(ct,null,xt(["bad","warn","unk","ok","ex"],T=>i("span",{key:T},[i("i",{style:Lt(`background:var(--${d(Rl)[T]})`)},null,4),pt(p(d(r)(d(On)(T))),1)])),64))])]),i("div",{class:"strip",style:Lt(`--n:${y.value.length||38}`)},[i("div",Zh,[y.value.length?(S(!0),E(ct,{key:0},xt(y.value,T=>(S(),E("div",{key:T.turbine,class:Qt(["cell",[d(Ll)(T),q.value.has(T.turbine)?"hot":""]]),"data-u":T.turbine,title:`${d(qt)(T.turbine)} ${d(r)(d(On)(d(Ll)(T)))}`},null,10,Qh))),128)):(S(),E("div",tm,p(s.value.gap||d(r)("ov.fus_gap_hint")),1))]),i("div",em,[(S(!0),E(ct,null,xt(y.value,T=>(S(),E("span",{key:`n-${T.turbine}`,class:Qt(q.value.has(T.turbine)?"hot":"")},p(d(qt)(T.turbine).replace("#","")),3))),128))]),i("div",sm,p(u.value.length?d(r)("ov.quiet",{n:Math.max(0,(y.value.length||38)-u.value.length)}):d(r)("ov.quiet_all",{n:y.value.length||38})),1)],4)]),i("section",null,[i("div",nm,[i("h2",null,p(d(r)("ov.systems")),1),i("span",lm,p(d(r)("ov.systems_hint")),1)]),i("div",am,[(S(!0),E(ct,null,xt(v.value,T=>(S(),E("div",{key:T.name,class:"sysc"},[i("div",om,[i("b",null,p(T.name),1),i("a",{href:`#tab=component&sys=${encodeURIComponent(T.slug)}`},p(d(r)("ui.open")),9,rm)]),i("div",im,[(S(!0),E(ct,null,xt(T.seg,H=>(S(),E("i",{key:H.k,style:Lt(`width:${(T.dist[H.k]/T.n*100).toFixed(1)}%;background:var(--${H.v})`)},null,4))),128))]),i("div",cm,[(S(!0),E(ct,null,xt(T.seg,H=>(S(),E("span",{key:`c-${H.k}`},[i("i",{style:Lt(`background:var(--${H.v})`)},null,4),pt(p(T.dist[H.k]),1)]))),128))])]))),128))])])],64))}}),dm={class:"page-head"},pm={key:12,class:"card"},fm={class:"hint"},hm=Ut({__name:"Workbench",props:{d:{},tab:{},sys:{},sub:{},cms:{},curves:{},apis:{},win:{}},emits:["tab","sub","win","reselect","refresh"],setup(t,{emit:e}){const s=t,n=e,l=yt(""),a=yt(""),c=yt("");He(()=>s.win,u=>{l.value=u||"";const _=String(u||"").split("~");_.length===2&&(a.value=_[0],c.value=_[1])},{immediate:!0});const o=Y(()=>!En.includes(s.tab));return(u,_)=>(S(),E(ct,null,[i("div",dm,[i("h1",null,p(d(r)("tab."+t.tab)),1)]),t.tab==="overview"?(S(),Nt(um,{key:0,d:t.d},null,8,["d"])):t.tab==="energy"?(S(),Nt(id,{key:1,d:t.d},null,8,["d"])):t.tab==="component"?(S(),Nt(bu,{key:2,d:t.d,sys:t.sys},null,8,["d","sys"])):t.tab==="fault"?(S(),Nt(Yd,{key:3,d:t.d},null,8,["d"])):t.tab==="vibration"?(S(),Nt(tp,{key:4,d:t.d,sub:t.sub,cms:t.cms,onSub:_[0]||(_[0]=h=>n("sub",h))},null,8,["d","sub","cms"])):t.tab==="generation"?(S(),Nt(Fp,{key:5,d:t.d,curves:t.curves,pending:!!t.d.m9_pending},null,8,["d","curves","pending"])):t.tab==="decision"?(S(),Nt(zp,{key:6,d:t.d,apis:t.apis},null,8,["d","apis"])):t.tab==="assistant"?(S(),Nt(ff,{key:7,d:t.d},null,8,["d"])):t.tab==="system"?(S(),Nt(Nf,{key:8,apis:t.apis,onRefresh:_[1]||(_[1]=h=>n("refresh"))},null,8,["apis"])):t.tab==="report"?(S(),Nt(Sh,{key:9,d:t.d,apis:t.apis},null,8,["d","apis"])):t.tab==="documents"?(S(),Nt(ac,{key:10})):t.tab==="portal_src"?(S(),Nt(Ja,{key:11})):o.value?(S(),E("section",pm,[i("h2",null,[pt(p(d(r)("tab."+t.tab))+" ",1),_[2]||(_[2]=i("small",null,"(本页签尚未迁移到 Vue)",-1))]),i("p",fm,[_[3]||(_[3]=pt(" 迁移纪律:页签逐个搬,每搬一个就用 ",-1)),_[4]||(_[4]=i("code",null,"tools/render_parity.mjs",-1)),_[5]||(_[5]=pt(" 与重构前页面 (现网 ",-1)),_[6]||(_[6]=i("code",null,"/detail/v2",-1)),pt(")对拍文案/数值/类名序列,**通过后**才删对应的 Python 前端源码。 当前已迁移:"+p(d(En).join("、"))+"。 ",1)])])):bt("",!0)],64))}}),mm=Ya(hm,[["__scopeId","data-v-3ea55616"]]),_m={key:1,class:"wrap"},vm={class:"top"},gm={class:"right"},bm=["title"],$m=["title"],ym={class:"small muted",for:"win"},xm=["aria-label","value"],wm=["label"],km=["value"],Mm=["label"],Sm=["value"],Tm=["label"],Cm=["value"],Em=["title"],Fm=["aria-label"],Om=["aria-label"],Am={class:"tabs",id:"tabs"},jm=["onClick"],qm={key:0,class:"todo"},Dm={key:0,id:"root"},Pm={key:0,class:"panel mb",style:{"border-color":"var(--warning,#B7791F)"}},Lm={class:"small",style:{margin:"0",color:"var(--warning,#B7791F)"}},Rm={key:0,class:"hint",style:{padding:"0 18px"}},Im={key:1,class:"hint",style:{padding:"0 18px",color:"var(--bad)"}},Hm={key:3,class:"card"},Nm=Ut({__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),a=yt(l||e==="workbench"||s?"workbench":"portal"),c=yt(!1);function o(j){a.value=j;try{location.hash=j==="portal"?"":j}catch{}}const u=yt("overview");s&&(u.value=s);const _=yt(null);n&&(_.value=n);const h=yt(null),m=yt(""),v=[["近30日","win.30d"],["近90日","win.90d"],["2026年","win.2026"],["2026H1","win.2026H1"],["2025H2","win.2025H2"],["全程","win.all"]],y={近30日:"30d",近90日:"90d","2026年":"2026","2026H1":"2026H1","2025H2":"2025H2",全程:"all"},q=Y(()=>m.value||""),B=Y(()=>/^\d{4}-\d{2}-\d{2}~\d{4}-\d{2}-\d{2}$/.test(q.value)),tt=Y(()=>((h.value||{}).all_months||[]).slice().reverse()),lt=yt(""),R=yt("");function U(j){const A=j.target.value;m.value=y[A]||A}function T(){lt.value&&R.value&&(m.value=lt.value+"~"+R.value)}const H=yt(!1),dt=yt(""),ot={system:["/api/maint_survey"],decision:["/api/ask_models"],report:["/api/ask_models","/api/facts"],generation:["/api/curves"]},ft=yt({}),ht=yt(null);async function jt(j){const A=ot[j]||[];for(const C of A){if(C==="/api/curves"){if(ht.value)continue}else if(ft.value[C]!==void 0)continue;try{const P=await(await fetch(C)).json();C==="/api/curves"?ht.value=P:ft.value={...ft.value,[C]:P}}catch(k){ft.value={...ft.value,[C]:{error:String(k?.message||k)}}}}}He(u,j=>{a.value==="workbench"&&jt(j)},{immediate:!0});async function F(){ft.value={},ht.value=null,await J(),await jt(u.value)}async function J(){H.value=!0,dt.value="",c.value=!1;const j=m.value?`?win=${encodeURIComponent(m.value)}`:"";try{const A=await fetch("/api/fleet"+j);if(A.ok){const C=await A.json();h.value=C,C?.win&&(m.value=C.win)}else h.value={},c.value=!0}catch{h.value={},c.value=!0}H.value=!1}He(m,j=>{j&&j!==h.value?.win&&J()});function X(){u.value="overview",_.value=null,J()}return We(()=>{J(),window.addEventListener("hashchange",()=>{const j=location.hash.replace("#",""),A=(j.match(/^tab=([a-z_]+)/)||[])[1]||"";j==="workbench"||A?(a.value="workbench",A&&(u.value=A)):j||(a.value="portal")})}),(j,A)=>a.value==="portal"?(S(),Nt(Ja,{key:0})):(S(),E("div",_m,[i("header",vm,[A[7]||(A[7]=i("span",{class:"mark"},"≋",-1)),A[8]||(A[8]=i("span",{class:"brand"},[pt("观澜"),i("small",null,"WIND ASSET INTELLIGENCE")],-1)),i("div",gm,[i("a",{class:"back-portal",href:"#",title:d(r)("ui.back_portal"),onClick:A[0]||(A[0]=Ti(C=>o("portal"),["prevent"]))},p(d(r)("ui.back_portal")),9,bm),i("button",{type:"button",class:"reselect",title:d(r)("ui.reselect"),onClick:X},p(d(r)("ui.reselect")),9,$m),i("label",ym,p(d(r)("win.label")),1),i("select",{id:"win","aria-label":d(r)("win.label"),value:q.value,onChange:U},[i("optgroup",{label:d(r)("win.presets")},[(S(),E(ct,null,xt(v,([C,k])=>i("option",{key:C,value:C},p(d(r)(k)),9,km)),64))],8,wm),B.value?(S(),E("optgroup",{key:0,label:d(r)("win.custom")},[i("option",{value:q.value},p(d(r)("win.custom_sel",{a:q.value.split("~")[0],b:q.value.split("~")[1]})),9,Sm)],8,Mm)):bt("",!0),tt.value.length?(S(),E("optgroup",{key:1,label:d(r)("win.months")},[(S(!0),E(ct,null,xt(tt.value,C=>(S(),E("option",{key:C,value:C},p(C),9,Cm))),128))],8,Tm)):bt("",!0)],40,xm),i("span",{class:"winrng",title:d(r)("win.custom_hint")},[wn(i("input",{type:"date","aria-label":d(r)("win.from"),"onUpdate:modelValue":A[1]||(A[1]=C=>lt.value=C)},null,8,Fm),[[jl,lt.value]]),A[6]||(A[6]=i("span",{class:"muted"},"~",-1)),wn(i("input",{type:"date","aria-label":d(r)("win.to"),"onUpdate:modelValue":A[2]||(A[2]=C=>R.value=C)},null,8,Om),[[jl,R.value]]),i("button",{type:"button",onClick:T},p(d(r)("win.apply")),1)],8,Em)])]),i("nav",Am,[(S(!0),E(ct,null,xt(d(Ni),C=>(S(),E("button",{key:C,class:Qt({on:C===u.value}),onClick:k=>u.value=C},[pt(p(d(r)("tab."+C)),1),d(En).includes(C)?bt("",!0):(S(),E("sup",qm,"迁移中"))],10,jm))),128))]),a.value!=="portal"?(S(),E("main",Dm,[c.value?(S(),E("div",Pm,[i("p",Lm,p(d(r)("app.data_missing")),1)])):bt("",!0),a.value==="workbench"?(S(),E(ct,{key:1},[H.value?(S(),E("p",Rm,"取数中(/api/fleet)…")):dt.value?(S(),E("p",Im,"取数失败:"+p(dt.value),1)):h.value?(S(),Nt(mm,{key:2,d:h.value,tab:u.value,sub:_.value,onTab:A[3]||(A[3]=C=>u.value=C),onSub:A[4]||(A[4]=C=>_.value=C),win:m.value,onWin:A[5]||(A[5]=C=>{m.value=C}),onReselect:X,apis:ft.value,curves:ht.value,onRefresh:F},null,8,["d","tab","sub","win","apis","curves"])):bt("",!0)],64)):a.value==="smoke"?(S(),Nt(Hi,{key:2})):(S(),E("section",Hm,[...A[9]||(A[9]=[Wr("<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)])]))])):bt("",!0),A[10]||(A[10]=i("footer",{id:"foot",class:"small muted",style:{"margin-top":"36px"}},null,-1))]))}});Ai(Nm).mount("#app");