if("undefined"==typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then((a=>t.resolve(e()).then((()=>a))),(a=>t.resolve(e()).then((()=>{throw a}))))}),"undefined"!=typeof uni&&uni&&uni.requireGlobal){const e=uni.requireGlobal();ArrayBuffer=e.ArrayBuffer,Int8Array=e.Int8Array,Uint8Array=e.Uint8Array,Uint8ClampedArray=e.Uint8ClampedArray,Int16Array=e.Int16Array,Uint16Array=e.Uint16Array,Int32Array=e.Int32Array,Uint32Array=e.Uint32Array,Float32Array=e.Float32Array,Float64Array=e.Float64Array,BigInt64Array=e.BigInt64Array,BigUint64Array=e.BigUint64Array}uni.restoreGlobal&&uni.restoreGlobal(Vue,weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),function(e){"use strict";function t(e,t,...a){uni.__log__?uni.__log__(e,t,...a):console[e].apply(console,[...a,t])}function a(e,t){return"string"==typeof e?t:e}const n={data:()=>({}),created(){this.popup=this.getParent()},methods:{getParent(e="uniPopup"){let t=this.$parent,a=t.$options.name;for(;a!==e;){if(t=t.$parent,!t)return!1;a=t.$options.name}return t}}},s=(e,t)=>{const a=e.__vccOpts||e;for(const[n,s]of t)a[n]=s;return a};const o=s({name:"uniPopupMessage",mixins:[n],props:{type:{type:String,default:"success"},message:{type:String,default:""},duration:{type:Number,default:3e3},maskShow:{type:Boolean,default:!1}},data:()=>({}),created(){this.popup.maskShow=this.maskShow,this.popup.messageChild=this},methods:{timerClose(){0!==this.duration&&(clearTimeout(this.timer),this.timer=setTimeout((()=>{this.popup.close()}),this.duration))}}},[["render",function(t,a,n,s,o,r){return e.openBlock(),e.createElementBlock("view",{class:"uni-popup-message"},[e.createElementVNode("view",{class:e.normalizeClass(["uni-popup-message__box fixforpc-width","uni-popup__"+n.type])},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("text",{class:e.normalizeClass(["uni-popup-message-text","uni-popup__"+n.type+"-text"])},e.toDisplayString(n.message),3)]),!0)],2)])}],["__scopeId","data-v-d81cfb56"]]);class r{constructor(e,t){this.options=e,this.animation=uni.createAnimation({...e}),this.currentStepAnimates={},this.next=0,this.$=t}_nvuePushAnimates(e,t){let a=this.currentStepAnimates[this.next],n={};if(n=a||{styles:{},config:{}},i.includes(e)){n.styles.transform||(n.styles.transform="");let a="";"rotate"===e&&(a="deg"),n.styles.transform+=`${e}(${t+a}) `}else n.styles[e]=`${t}`;this.currentStepAnimates[this.next]=n}_animateRun(e={},t={}){let a=this.$.$refs.ani.ref;if(a)return new Promise(((n,s)=>{nvueAnimation.transition(a,{styles:e,...t},(e=>{n()}))}))}_nvueNextAnimate(e,t=0,a){let n=e[t];if(n){let{styles:s,config:o}=n;this._animateRun(s,o).then((()=>{t+=1,this._nvueNextAnimate(e,t,a)}))}else this.currentStepAnimates={},"function"==typeof a&&a(),this.isEnd=!0}step(e={}){return this.animation.step(e),this}run(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof e&&e()}),this.$.durationTime)}}const i=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function c(e,t){if(t)return clearTimeout(t.timer),new r(e,t)}i.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((e=>{r.prototype[e]=function(...t){return this.animation[e](...t),this}}));const l={name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""},onceRender:{type:Boolean,default:!1}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(e){e?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let e={...this.styles,"transition-duration":this.duration/1e3+"s"},t="";for(let a in e){t+=this.toLine(a)+":"+e[a]+";"}return t},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(e={}){e.duration&&(this.durationTime=e.duration),this.animation=c(Object.assign(this.config,e),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(e,a={}){if(this.animation){for(let a in e)try{"object"==typeof e[a]?this.animation[a](...e[a]):this.animation[a](e[a])}catch(ke){t("error","at uni_modules/uni-transition/components/uni-transition/uni-transition.vue:148",`方法 ${a} 不存在`)}return this.animation.step(a),this}},run(e){this.animation&&this.animation.run(e)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:e,transform:t}=this.styleInit(!1);void 0!==e&&(this.opacity=e),this.transform=t,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=c(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(e){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:e,transform:t}=this.styleInit(!1);this.opacity=e||1,this.transform=t,this.$emit("change",{detail:this.isShow})}))},styleInit(e){let t={transform:""},a=(e,a)=>{"fade"===a?t.opacity=this.animationType(e)[a]:t.transform+=this.animationType(e)[a]+" "};return"string"==typeof this.modeClass?a(e,this.modeClass):this.modeClass.forEach((t=>{a(e,t)})),t},tranfromInit(e){let t=(e,t)=>{let a=null;"fade"===t?a=e?0:1:(a=e?"-100%":"0","zoom-in"===t&&(a=e?.8:1),"zoom-out"===t&&(a=e?1.2:1),"slide-right"===t&&(a=e?"100%":"0"),"slide-bottom"===t&&(a=e?"100%":"0")),this.animation[this.animationMode()[t]](a)};return"string"==typeof this.modeClass?t(e,this.modeClass):this.modeClass.forEach((a=>{t(e,a)})),this.animation},animationType:e=>({fade:e?0:1,"slide-top":`translateY(${e?"0":"-100%"})`,"slide-right":`translateX(${e?"0":"100%"})`,"slide-bottom":`translateY(${e?"0":"100%"})`,"slide-left":`translateX(${e?"0":"-100%"})`,"zoom-in":`scaleX(${e?1:.8}) scaleY(${e?1:.8})`,"zoom-out":`scaleX(${e?1:1.2}) scaleY(${e?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:e=>e.replace(/([A-Z])/g,"-$1").toLowerCase()}};const u=s(l,[["render",function(t,a,n,s,o,r){return e.withDirectives((e.openBlock(),e.createElementBlock("view",{ref:"ani",animation:o.animationData,class:e.normalizeClass(n.customClass),style:e.normalizeStyle(r.transformStyles),onClick:a[0]||(a[0]=(...e)=>r.onClick&&r.onClick(...e))},[e.renderSlot(t.$slots,"default")],14,["animation"])),[[e.vShow,o.isShow]])}]]),p={name:"uniPopup",components:{},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"},borderRadius:{type:String}},watch:{type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup(e){}},data(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{backgroundColor:"transparent",borderRadius:this.borderRadius||"0",position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:"top"}},computed:{getStyles(){let e={backgroundColor:this.bg};return this.borderRadius,e=Object.assign(e,{borderRadius:this.borderRadius}),e},isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:e,windowHeight:t,windowTop:a,safeArea:n,screenHeight:s,safeAreaInsets:o}=uni.getSystemInfoSync();this.popupWidth=e,this.popupHeight=t+(a||0),n&&this.safeArea?this.safeAreaInsets=o.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},activated(){this.setH5Visible(!this.showPopup)},deactivated(){this.setH5Visible(!0)},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(e=!0){},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(e){e.stopPropagation(),this.clearPropagation=!0},open(e){if(this.showPopup)return;e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):t("error","at uni_modules/uni-popup/components/uni-popup/uni-popup.vue:298","缺少类型:",e)},close(e){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),300)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(e){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},center(e){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center",borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},left(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}};const d=s(p,[["render",function(t,n,s,o,r,i){const c=a(e.resolveDynamicComponent("uni-transition"),u);return r.showPopup?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["uni-popup",[r.popupstyle,i.isDesktop?"fixforpc-z-index":""]])},[e.createElementVNode("view",{onTouchstart:n[1]||(n[1]=(...e)=>i.touchstart&&i.touchstart(...e))},[r.maskShow?(e.openBlock(),e.createBlock(c,{key:"1",name:"mask","mode-class":"fade",styles:r.maskClass,duration:r.duration,show:r.showTrans,onClick:i.onTap},null,8,["styles","duration","show","onClick"])):e.createCommentVNode("",!0),e.createVNode(c,{key:"2","mode-class":r.ani,name:"content",styles:r.transClass,duration:r.duration,show:r.showTrans,onClick:i.onTap},{default:e.withCtx((()=>[e.createElementVNode("view",{class:e.normalizeClass(["uni-popup__wrapper",[r.popupstyle]]),style:e.normalizeStyle(i.getStyles),onClick:n[0]||(n[0]=(...e)=>i.clear&&i.clear(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)])),_:3},8,["mode-class","styles","duration","show","onClick"])],32)],2)):e.createCommentVNode("",!0)}],["__scopeId","data-v-ee521468"]]),m={pages:[{path:"pages/index/index",style:{navigationBarTitleText:""}},{path:"pages/home/index",style:{navigationBarTitleText:""}},{path:"pages/details/index",style:{navigationBarTitleText:""}},{path:"pages/electricity/index",style:{navigationBarTitleText:""}},{path:"pages/supply/supply",style:{navigationBarTitleText:""}},{path:"pages/supplyss/supplyss",style:{navigationBarTitleText:""}},{path:"pages/faultlist/index",style:{navigationBarTitleText:""}},{path:"pages/SYSifo/index",style:{navigationBarTitleText:""}}],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"",navigationStyle:"custom",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},uniIdRouter:{}};function h(e,t,a){return e(a={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&a.path)}},a.exports),a.exports}var g=h((function(e,t){var a;e.exports=(a=a||function(e,t){var a=Object.create||function(){function e(){}return function(t){var a;return e.prototype=t,a=new e,e.prototype=null,a}}(),n={},s=n.lib={},o=s.Base={extend:function(e){var t=a(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},r=s.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,a=e.words,n=this.sigBytes,s=e.sigBytes;if(this.clamp(),n%4)for(var o=0;o>>2]>>>24-o%4*8&255;t[n+o>>>2]|=r<<24-(n+o)%4*8}else for(o=0;o>>2]=a[o>>>2];return this.sigBytes+=s,this},clamp:function(){var t=this.words,a=this.sigBytes;t[a>>>2]&=4294967295<<32-a%4*8,t.length=e.ceil(a/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var a,n=[],s=function(t){var a=987654321,n=4294967295;return function(){var s=((a=36969*(65535&a)+(a>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return s/=4294967296,(s+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-s%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,a=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new r.init(a,t/2)}},l=i.Latin1={stringify:function(e){for(var t=e.words,a=e.sigBytes,n=[],s=0;s>>2]>>>24-s%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,a=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new r.init(a,t)}},u=i.Utf8={stringify:function(e){try{return decodeURIComponent(escape(l.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return l.parse(unescape(encodeURIComponent(e)))}},p=s.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var a=this._data,n=a.words,s=a.sigBytes,o=this.blockSize,i=s/(4*o),c=(i=t?e.ceil(i):e.max((0|i)-this._minBufferSize,0))*o,l=e.min(4*c,s);if(c){for(var u=0;u>>24)|4278255360&(s<<24|s>>>8)}var o=this._hash.words,r=e[t+0],c=e[t+1],m=e[t+2],h=e[t+3],g=e[t+4],f=e[t+5],_=e[t+6],y=e[t+7],v=e[t+8],w=e[t+9],S=e[t+10],k=e[t+11],E=e[t+12],N=e[t+13],V=e[t+14],C=e[t+15],b=o[0],x=o[1],T=o[2],D=o[3];b=l(b,x,T,D,r,7,i[0]),D=l(D,b,x,T,c,12,i[1]),T=l(T,D,b,x,m,17,i[2]),x=l(x,T,D,b,h,22,i[3]),b=l(b,x,T,D,g,7,i[4]),D=l(D,b,x,T,f,12,i[5]),T=l(T,D,b,x,_,17,i[6]),x=l(x,T,D,b,y,22,i[7]),b=l(b,x,T,D,v,7,i[8]),D=l(D,b,x,T,w,12,i[9]),T=l(T,D,b,x,S,17,i[10]),x=l(x,T,D,b,k,22,i[11]),b=l(b,x,T,D,E,7,i[12]),D=l(D,b,x,T,N,12,i[13]),T=l(T,D,b,x,V,17,i[14]),b=u(b,x=l(x,T,D,b,C,22,i[15]),T,D,c,5,i[16]),D=u(D,b,x,T,_,9,i[17]),T=u(T,D,b,x,k,14,i[18]),x=u(x,T,D,b,r,20,i[19]),b=u(b,x,T,D,f,5,i[20]),D=u(D,b,x,T,S,9,i[21]),T=u(T,D,b,x,C,14,i[22]),x=u(x,T,D,b,g,20,i[23]),b=u(b,x,T,D,w,5,i[24]),D=u(D,b,x,T,V,9,i[25]),T=u(T,D,b,x,h,14,i[26]),x=u(x,T,D,b,v,20,i[27]),b=u(b,x,T,D,N,5,i[28]),D=u(D,b,x,T,m,9,i[29]),T=u(T,D,b,x,y,14,i[30]),b=p(b,x=u(x,T,D,b,E,20,i[31]),T,D,f,4,i[32]),D=p(D,b,x,T,v,11,i[33]),T=p(T,D,b,x,k,16,i[34]),x=p(x,T,D,b,V,23,i[35]),b=p(b,x,T,D,c,4,i[36]),D=p(D,b,x,T,g,11,i[37]),T=p(T,D,b,x,y,16,i[38]),x=p(x,T,D,b,S,23,i[39]),b=p(b,x,T,D,N,4,i[40]),D=p(D,b,x,T,r,11,i[41]),T=p(T,D,b,x,h,16,i[42]),x=p(x,T,D,b,_,23,i[43]),b=p(b,x,T,D,w,4,i[44]),D=p(D,b,x,T,E,11,i[45]),T=p(T,D,b,x,C,16,i[46]),b=d(b,x=p(x,T,D,b,m,23,i[47]),T,D,r,6,i[48]),D=d(D,b,x,T,y,10,i[49]),T=d(T,D,b,x,V,15,i[50]),x=d(x,T,D,b,f,21,i[51]),b=d(b,x,T,D,E,6,i[52]),D=d(D,b,x,T,h,10,i[53]),T=d(T,D,b,x,S,15,i[54]),x=d(x,T,D,b,c,21,i[55]),b=d(b,x,T,D,v,6,i[56]),D=d(D,b,x,T,C,10,i[57]),T=d(T,D,b,x,_,15,i[58]),x=d(x,T,D,b,N,21,i[59]),b=d(b,x,T,D,g,6,i[60]),D=d(D,b,x,T,k,10,i[61]),T=d(T,D,b,x,m,15,i[62]),x=d(x,T,D,b,w,21,i[63]),o[0]=o[0]+b|0,o[1]=o[1]+x|0,o[2]=o[2]+T|0,o[3]=o[3]+D|0},_doFinalize:function(){var t=this._data,a=t.words,n=8*this._nDataBytes,s=8*t.sigBytes;a[s>>>5]|=128<<24-s%32;var o=e.floor(n/4294967296),r=n;a[15+(s+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a[14+(s+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(a.length+1),this._process();for(var i=this._hash,c=i.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,a,n,s,o,r){var i=e+(t&a|~t&n)+s+r;return(i<>>32-o)+t}function u(e,t,a,n,s,o,r){var i=e+(t&n|a&~n)+s+r;return(i<>>32-o)+t}function p(e,t,a,n,s,o,r){var i=e+(t^a^n)+s+r;return(i<>>32-o)+t}function d(e,t,a,n,s,o,r){var i=e+(a^(t|~n))+s+r;return(i<>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),a.MD5)})),h((function(e,t){var a,n,s;e.exports=(n=(a=f).lib.Base,s=a.enc.Utf8,void(a.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=s.parse(t));var a=e.blockSize,n=4*a;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),r=this._iKey=t.clone(),i=o.words,c=r.words,l=0;l>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,i=0;i<4&&o+.75*i>>6*(3-i)&63));var c=n.charAt(64);if(c)for(;s.length%4;)s.push(c);return s.join("")},parse:function(e){var t=e.length,a=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o>>6-r%4*2;n[o>>>2]|=(i|c)<<24-o%4*8,o++}return s.create(n,o)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},a.enc.Base64)}));const w="FUNCTION",S="pending",k="rejected";function E(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function N(e){return"object"===E(e)}function V(e){return"function"==typeof e}function C(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const b="REJECTED",x="NOT_PENDING";class T{constructor({createPromise:e,retryRule:t=b}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case b:return this.status===k;case x:return this.status!==S}}exec(){return this.needRetry?(this.status=S,this.promise=this.createPromise().then((e=>(this.status="fulfilled",Promise.resolve(e))),(e=>(this.status=k,Promise.reject(e)))),this.promise):this.promise}}function D(e){return e&&"string"==typeof e?JSON.parse(e):e}const B=D([]);D("");const $=D("[]")||[];let P="";try{P="__UNI__8782431"}catch(ke){}let I,z={};function A(e,t={}){var a,n;return a=z,n=e,Object.prototype.hasOwnProperty.call(a,n)||(z[e]=t),z[e]}z=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={};const O=["invoke","success","fail","complete"],M=A("_globalUniCloudInterceptor");function L(e,t){M[e]||(M[e]={}),N(t)&&Object.keys(t).forEach((a=>{O.indexOf(a)>-1&&function(e,t,a){let n=M[e][t];n||(n=M[e][t]=[]),-1===n.indexOf(a)&&V(a)&&n.push(a)}(e,a,t[a])}))}function R(e,t){M[e]||(M[e]={}),N(t)?Object.keys(t).forEach((a=>{O.indexOf(a)>-1&&function(e,t,a){const n=M[e][t];if(!n)return;const s=n.indexOf(a);s>-1&&n.splice(s,1)}(e,a,t[a])})):delete M[e]}function F(e,t){return e&&0!==e.length?e.reduce(((e,a)=>e.then((()=>a(t)))),Promise.resolve()):Promise.resolve()}function U(e,t){return M[e]&&M[e][t]||[]}function j(e){L("callObject",e)}const q=A("_globalUniCloudListener"),W="response",H="needLogin",K="refreshToken",J="clientdb",G="cloudfunction",Y="cloudobject";function Q(e){return q[e]||(q[e]=[]),q[e]}function X(e,t){const a=Q(e);a.includes(t)||a.push(t)}function Z(e,t){const a=Q(e),n=a.indexOf(t);-1!==n&&a.splice(n,1)}function ee(e,t){const a=Q(e);for(let n=0;n{ae&&e(),function t(){if("function"==typeof getCurrentPages){const t=getCurrentPages();t&&t[0]&&(ae=!0,e())}ae||setTimeout((()=>{t()}),30)}()})),te)}function se(e){const t={};for(const a in e){const n=e[a];V(n)&&(t[a]=C(n))}return t}class oe extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var re={request:e=>uni.request(e),uploadFile:e=>uni.uploadFile(e),setStorageSync:(e,t)=>uni.setStorageSync(e,t),getStorageSync:e=>uni.getStorageSync(e),removeStorageSync:e=>uni.removeStorageSync(e),clearStorageSync:()=>uni.clearStorageSync(),connectSocket:e=>uni.connectSocket(e)};function ie(e){return e&&ie(e.__v_raw)||e}function ce(){return{token:re.getStorageSync("uni_id_token")||re.getStorageSync("uniIdToken"),tokenExpired:re.getStorageSync("uni_id_token_expired")}}function le({token:e,tokenExpired:t}={}){e&&re.setStorageSync("uni_id_token",e),t&&re.setStorageSync("uni_id_token_expired",t)}let ue,pe;function de(){return ue||(ue=uni.getSystemInfoSync()),ue}function me(){let e,t;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;const{scene:a,channel:n}=uni.getLaunchOptionsSync();e=n,t=a}}catch(a){}return{channel:e,scene:t}}let he={};function ge(){const e=uni.getLocale&&uni.getLocale()||"en";if(pe)return{...he,...pe,locale:e,LOCALE:e};const t=de(),{deviceId:a,osName:n,uniPlatform:s,appId:o}=t,r=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(const i in t)Object.hasOwnProperty.call(t,i)&&-1===r.indexOf(i)&&delete t[i];return pe={PLATFORM:s,OS:n,APPID:o,DEVICEID:a,...me(),...t},{...he,...pe,locale:e,LOCALE:e}}var fe=function(e,t){let a="";return Object.keys(e).sort().forEach((function(t){e[t]&&(a=a+"&"+t+"="+e[t])})),a=a.slice(1),_(a,t).toString()},_e=function(e,t){return new Promise(((a,n)=>{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){const a=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",s=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return n(new oe({code:a,message:s,requestId:t}))}const s=e.data;if(s.error)return n(new oe({code:s.error.code,message:s.error.message,requestId:t}));s.result=s.data,s.requestId=t,delete s.data,a(s)}}))}))},ye=function(e){return v.stringify(y.parse(e))},ve={init(e){const t=new class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=re,this._getAccessTokenPromiseHub=new T({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new oe({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:x})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return _e(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,a)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?a(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=fe(t.data,this.config.clientSecret),t}setupRequest(e,t){const a=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};return"auth"!==t&&(a.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=fe(a,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:a,dataType:"json",header:n}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request({...this.setupRequest(t),timeout:e.timeout})}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:a,filePath:n,fileType:s,onUploadProgress:o}){return new Promise(((r,i)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:a,filePath:n,fileType:s,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?r(e):i(new oe({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){i(new oe({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:a="image",cloudPathAsRealPath:n=!1,onUploadProgress:s,config:o}){if("string"!==E(t))throw new oe({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new oe({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new oe({code:"INVALID_PARAM",message:"cloudPath不合法"});const r=o&&o.envType||this.config.envType;if(n&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new oe({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const i=(await this.getOSSUploadOptionsFromPath({env:r,filename:n?t.split("/").pop():t,fileId:n?t:void 0})).result,c="https://"+i.cdnDomain+"/"+i.ossPath,{securityToken:l,accessKeyId:u,signature:p,host:d,ossPath:m,id:h,policy:g,ossCallbackUrl:f}=i,_={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:u,Signature:p,host:d,id:h,key:m,policy:g,success_action_status:200};if(l&&(_["x-oss-security-token"]=l),f){const e=JSON.stringify({callbackUrl:f,callbackBody:JSON.stringify({fileId:h,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});_.callback=ye(e)}const y={url:"https://"+i.host,formData:_,fileName:"file",name:"file",filePath:e,fileType:a};if(await this.uploadFileToOSS(Object.assign({},y,{onUploadProgress:s})),f)return{success:!0,filePath:e,fileID:c};if((await this.reportOSSUpload({id:h})).success)return{success:!0,filePath:e,fileID:c};throw new oe({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,a)=>{Array.isArray(e)&&0!==e.length||a(new oe({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new oe({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}}(e),a={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return a},t.customAuth=t.auth,t}};const we="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var Se,ke;(ke=Se||(Se={})).local="local",ke.none="none",ke.session="session";var Ee=function(){},Ne=h((function(e,t){var a;e.exports=(a=f,function(e){var t=a,n=t.lib,s=n.WordArray,o=n.Hasher,r=t.algo,i=[],c=[];!function(){function t(t){for(var a=e.sqrt(t),n=2;n<=a;n++)if(!(t%n))return!1;return!0}function a(e){return 4294967296*(e-(0|e))|0}for(var n=2,s=0;s<64;)t(n)&&(s<8&&(i[s]=a(e.pow(n,.5))),c[s]=a(e.pow(n,1/3)),s++),n++}();var l=[],u=r.SHA256=o.extend({_doReset:function(){this._hash=new s.init(i.slice(0))},_doProcessBlock:function(e,t){for(var a=this._hash.words,n=a[0],s=a[1],o=a[2],r=a[3],i=a[4],u=a[5],p=a[6],d=a[7],m=0;m<64;m++){if(m<16)l[m]=0|e[t+m];else{var h=l[m-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,f=l[m-2],_=(f<<15|f>>>17)^(f<<13|f>>>19)^f>>>10;l[m]=g+l[m-7]+_+l[m-16]}var y=n&s^n&o^s&o,v=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=d+((i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25))+(i&u^~i&p)+c[m]+l[m];d=p,p=u,u=i,i=r+w|0,r=o,o=s,s=n,n=w+(v+y)|0}a[0]=a[0]+n|0,a[1]=a[1]+s|0,a[2]=a[2]+o|0,a[3]=a[3]+r|0,a[4]=a[4]+i|0,a[5]=a[5]+u|0,a[6]=a[6]+p|0,a[7]=a[7]+d|0},_doFinalize:function(){var t=this._data,a=t.words,n=8*this._nDataBytes,s=8*t.sigBytes;return a[s>>>5]|=128<<24-s%32,a[14+(s+64>>>9<<4)]=e.floor(n/4294967296),a[15+(s+64>>>9<<4)]=n,t.sigBytes=4*a.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(u),t.HmacSHA256=o._createHmacHelper(u)}(Math),a.SHA256)})),Ve=Ne,Ce=h((function(e,t){e.exports=f.HmacSHA256}));const be=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new oe({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,a)=>{e=(e,n)=>e?a(e):t(n)}));return e.promise=t,e};function xe(e){return void 0===e}function Te(e){return"[object Null]"===Object.prototype.toString.call(e)}function De(e=""){return e.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题:.*)/,"$1")}function Be(e=32){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=t.length;let n="";for(let s=0;s=0?JSON.parse(a).content:""}removeStore(e){this._storage.removeItem(e)}}const Me={},Le={};function Re(e){return Me[e]}class Fe{constructor(e,t){this.data=t||null,this.name=e}}class Ue extends Fe{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const je=new class{constructor(){this._listeners={}}on(e,t){return a=e,n=t,(s=this._listeners)[a]=s[a]||[],s[a].push(n),this;var a,n,s}off(e,t){return function(e,t,a){if(a&&a[e]){const n=a[e].indexOf(t);-1!==n&&a[e].splice(n,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof Ue)return console.error(e.error),this;const a="string"==typeof e?new Fe(e,t||{}):e,n=a.name;if(this._listens(n)){a.target=this;const e=this._listeners[n]?[...this._listeners[n]]:[];for(const t of e)t.call(this,a)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function qe(e,t){je.on(e,t)}function We(e,t={}){je.fire(e,t)}function He(e,t){je.off(e,t)}const Ke="loginStateChanged",Je="loginStateExpire",Ge="loginTypeChanged",Ye="anonymousConverted",Qe="refreshAccessToken";var Xe;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Xe||(Xe={}));class Ze{constructor(){this._fnPromiseMap=new Map}async run(e,t){let a=this._fnPromiseMap.get(e);return a||(a=new Promise((async(a,n)=>{try{await this._runIdlePromise();const n=t();a(await n)}catch(s){n(s)}finally{this._fnPromiseMap.delete(e)}})),this._fnPromiseMap.set(e,a)),a}_runIdlePromise(){return Promise.resolve()}}class et{constructor(e){this._singlePromise=new Ze,this._cache=Re(e.env),this._baseURL=`https://${e.env}.ap-shanghai.tcb-api.tencentcloudapi.com`,this._reqClass=new Pe.adapter.reqClass({timeout:e.timeout,timeoutMsg:`请求在${e.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]})}_getDeviceId(){if(this._deviceID)return this._deviceID;const{deviceIdKey:e}=this._cache.keys;let t=this._cache.getStore(e);return"string"==typeof t&&t.length>=16&&t.length<=48||(t=Be(),this._cache.setStore(e,t)),this._deviceID=t,t}async _request(e,t,a={}){const n={"x-request-id":Be(),"x-device-id":this._getDeviceId()};if(a.withAccessToken){const{tokenTypeKey:e}=this._cache.keys,t=await this.getAccessToken(),a=this._cache.getStore(e);n.authorization=`${a} ${t}`}return this._reqClass["get"===a.method?"get":"post"]({url:`${this._baseURL}${e}`,data:t,headers:n})}async _fetchAccessToken(){const{loginTypeKey:e,accessTokenKey:t,accessTokenExpireKey:a,tokenTypeKey:n}=this._cache.keys,s=this._cache.getStore(e);if(s&&s!==Xe.ANONYMOUS)throw new oe({code:"INVALID_OPERATION",message:"非匿名登录不支持刷新 access token"});const o=await this._singlePromise.run("fetchAccessToken",(async()=>(await this._request("/auth/v1/signin/anonymously",{},{method:"post"})).data)),{access_token:r,expires_in:i,token_type:c}=o;return this._cache.setStore(n,c),this._cache.setStore(t,r),this._cache.setStore(a,Date.now()+1e3*i),r}isAccessTokenExpired(e,t){let a=!0;return e&&t&&(a=t(await this._request("/auth/v1/user/me",{},{withAccessToken:!0,method:"get"})).data))}}const tt=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],at={"X-SDK-Version":"1.3.5"};function nt(e,t,a){const n=e[t];e[t]=function(t){const s={},o={};a.forEach((a=>{const{data:n,headers:r}=a.call(e,t);Object.assign(s,n),Object.assign(o,r)}));const r=t.data;return r&&(()=>{var e;if(e=r,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...r,...s};else for(const t in s)r.append(t,s[t])})(),t.headers={...t.headers||{},...o},n.call(e,t)}}function st(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...at,"x-seqid":e}}}class ot{constructor(e={}){var t;this.config=e,this._reqClass=new Pe.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=Re(this.config.env),this._localCache=(t=this.config.env,Le[t]),this.oauth=new et(this.config),nt(this._reqClass,"post",[st]),nt(this._reqClass,"upload",[st]),nt(this._reqClass,"download",[st])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(a){t=a}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:a,loginTypeKey:n,anonymousUuidKey:s}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let o=this._cache.getStore(a);if(!o)throw new oe({message:"未登录CloudBase"});const r={refresh_token:o},i=await this.request("auth.fetchAccessTokenWithRefreshToken",r);if(i.data.code){const{code:e}=i.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(n)===Xe.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(s),t=this._cache.getStore(a),n=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(n.refresh_token),this._refreshAccessToken()}We(Je),this._cache.removeStore(a)}throw new oe({code:i.data.code,message:`刷新access token失败:${i.data.code}`})}if(i.data.access_token)return We(Qe),this._cache.setStore(e,i.data.access_token),this._cache.setStore(t,i.data.access_token_expire+Date.now()),{accessToken:i.data.access_token,accessTokenExpire:i.data.access_token_expire};i.data.refresh_token&&(this._cache.removeStore(a),this._cache.setStore(a,i.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:a}=this._cache.keys;if(!this._cache.getStore(a))throw new oe({message:"refresh token不存在,登录状态异常"});let n=this._cache.getStore(e),s=this._cache.getStore(t),o=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(n,s))&&(o=!1),(!n||!s||s{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:a,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:a,avatarUrl:n,province:s,country:o,city:r}=e,{data:i}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:a,avatarUrl:n,province:s,country:o,city:r});this.setLocalUserInfo(i)}async refresh(){const e=await this._request.oauth.getUserInfo();return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class ut{constructor(e){if(!e)throw new oe({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Re(e);const{refreshTokenKey:t,accessTokenKey:a,accessTokenExpireKey:n}=this._cache.keys,s=this._cache.getStore(t),o=this._cache.getStore(a),r=this._cache.getStore(n);this.credential={refreshToken:s,accessToken:o,accessTokenExpire:r},this.user=new lt(e)}get isAnonymousAuth(){return this.loginType===Xe.ANONYMOUS}get isCustomAuth(){return this.loginType===Xe.CUSTOM}get isWeixinAuth(){return this.loginType===Xe.WECHAT||this.loginType===Xe.WECHAT_OPEN||this.loginType===Xe.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class pt extends ct{async signIn(){this._cache.updatePersistence("local"),await this._request.oauth.getAccessToken(),We(Ke),We(Ge,{env:this.config.env,loginType:Xe.ANONYMOUS,persistence:"local"});const e=new ut(this.config.env);return await e.user.refresh(),e}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:a}=this._cache.keys,n=this._cache.getStore(t),s=this._cache.getStore(a),o=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:n,refresh_token:s,ticket:e});if(o.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(o.refresh_token),await this._request.refreshAccessToken(),We(Ye,{env:this.config.env}),We(Ge,{loginType:Xe.CUSTOM,persistence:"local"}),{credential:{refreshToken:o.refresh_token}};throw new oe({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:a}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(a,Xe.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class dt extends ct{async signIn(e){if("string"!=typeof e)throw new oe({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,a=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(a.refresh_token)return this.setRefreshToken(a.refresh_token),await this._request.refreshAccessToken(),We(Ke),We(Ge,{env:this.config.env,loginType:Xe.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new ut(this.config.env);throw new oe({message:"自定义登录失败"})}}class mt extends ct{async signIn(e,t){if("string"!=typeof e)throw new oe({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:a}=this._cache.keys,n=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(a)||""}),{refresh_token:s,access_token:o,access_token_expire:r}=n;if(s)return this.setRefreshToken(s),o&&r?this.setAccessToken(o,r):await this._request.refreshAccessToken(),await this.refreshUserInfo(),We(Ke),We(Ge,{env:this.config.env,loginType:Xe.EMAIL,persistence:this.config.persistence}),new ut(this.config.env);throw n.code?new oe({code:n.code,message:`邮箱登录失败: ${n.message}`}):new oe({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class ht extends ct{async signIn(e,t){if("string"!=typeof e)throw new oe({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:a}=this._cache.keys,n=await this._request.send("auth.signIn",{loginType:Xe.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(a)||""}),{refresh_token:s,access_token_expire:o,access_token:r}=n;if(s)return this.setRefreshToken(s),r&&o?this.setAccessToken(r,o):await this._request.refreshAccessToken(),await this.refreshUserInfo(),We(Ke),We(Ge,{env:this.config.env,loginType:Xe.USERNAME,persistence:this.config.persistence}),new ut(this.config.env);throw n.code?new oe({code:n.code,message:`用户名密码登录失败: ${n.message}`}):new oe({message:"用户名密码登录失败"})}}class gt{constructor(e){this.config=e,this._cache=Re(e.env),this._request=it(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),qe(Ge,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new pt(this.config)}customAuthProvider(){return new dt(this.config)}emailAuthProvider(){return new mt(this.config)}usernameAuthProvider(){return new ht(this.config)}async signInAnonymously(){return new pt(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new mt(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new ht(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new pt(this.config)),qe(Ye,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Xe.ANONYMOUS)throw new oe({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:a}=this._cache.keys,n=this._cache.getStore(e);if(!n)return;const s=await this._request.send("auth.logout",{refresh_token:n});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(a),We(Ke),We(Ge,{env:this.config.env,loginType:Xe.NULL,persistence:this.config.persistence}),s}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){qe(Ke,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){qe(Je,e.bind(this))}onAccessTokenRefreshed(e){qe(Qe,e.bind(this))}onAnonymousConverted(e){qe(Ye,e.bind(this))}onLoginTypeChanged(e){qe(Ge,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{accessTokenKey:e,accessTokenExpireKey:t}=this._cache.keys,a=this._cache.getStore(e),n=this._cache.getStore(t);return this._request.oauth.isAccessTokenExpired(a,n)?null:new ut(this.config.env)}async isUsernameRegistered(e){if("string"!=typeof e)throw new oe({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new dt(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,a=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+a}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:a,env:n}=e.data;n===this.config.env&&(this._cache.updatePersistence(a),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const ft=function(e,t){t=t||be();const a=it(this.config.env),{cloudPath:n,filePath:s,onUploadProgress:o,fileType:r="image"}=e;return a.send("storage.getUploadMetadata",{path:n}).then((e=>{const{data:{url:i,authorization:c,token:l,fileId:u,cosFileId:p},requestId:d}=e,m={key:n,signature:c,"x-cos-meta-fileid":p,success_action_status:"201","x-cos-security-token":l};a.upload({url:i,data:m,file:s,name:n,fileType:r,onUploadProgress:o}).then((e=>{201===e.statusCode?t(null,{fileID:u,requestId:d}):t(new oe({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},_t=function(e,t){t=t||be();const a=it(this.config.env),{cloudPath:n}=e;return a.send("storage.getUploadMetadata",{path:n}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},yt=function({fileList:e},t){if(t=t||be(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let n of e)if(!n||"string"!=typeof n)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const a={fileid_list:e};return it(this.config.env).send("storage.batchDeleteFile",a).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},vt=function({fileList:e},t){t=t||be(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let a=[];for(let s of e)"object"==typeof s?(s.hasOwnProperty("fileID")&&s.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),a.push({fileid:s.fileID,max_age:s.maxAge})):"string"==typeof s?a.push({fileid:s}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const n={file_list:a};return it(this.config.env).send("storage.batchGetDownloadUrl",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},wt=async function({fileID:e},t){const a=(await vt.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==a.code)return t?t(a):new Promise((e=>{e(a)}));const n=it(this.config.env);let s=a.download_url;if(s=encodeURI(s),!t)return n.download({url:s});t(await n.download({url:s}))},St=function({name:e,data:t,query:a,parse:n,search:s,timeout:o},r){const i=r||be();let c;try{c=t?JSON.stringify(t):""}catch(u){return Promise.reject(u)}if(!e)return Promise.reject(new oe({code:"PARAM_ERROR",message:"函数名不能为空"}));const l={inQuery:a,parse:n,search:s,function_name:e,request_data:c};return it(this.config.env).send("functions.invokeFunction",l,{timeout:o}).then((e=>{if(e.code)i(null,e);else{let a=e.data.response_data;if(n)i(null,{result:a,requestId:e.requestId});else try{a=JSON.parse(e.data.response_data),i(null,{result:a,requestId:e.requestId})}catch(t){i(new oe({message:"response data must be json"}))}}return i.promise})).catch((e=>{i(e)})),i.promise},kt={timeout:15e3,persistence:"session"},Et={};class Nt{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(Pe.adapter||(this.requestClient=new Pe.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...kt,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new Nt(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||Pe.adapter.primaryStorage||kt.persistence;var a;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;Me[t]=new Oe(e),Le[t]=new Oe({...e,persistence:"local"})}(this.config),a=this.config,rt[a.env]=new ot(a),this.authObj=new gt(this.config),this.authObj}on(e,t){return qe.apply(this,[e,t])}off(e,t){return He.apply(this,[e,t])}callFunction(e,t){return St.apply(this,[e,t])}deleteFile(e,t){return yt.apply(this,[e,t])}getTempFileURL(e,t){return vt.apply(this,[e,t])}downloadFile(e,t){return wt.apply(this,[e,t])}uploadFile(e,t){return ft.apply(this,[e,t])}getUploadMetadata(e,t){return _t.apply(this,[e,t])}registerExtension(e){Et[e.name]=e}async invokeExtension(e,t){const a=Et[e];if(!a)throw new oe({message:`扩展${e} 必须先注册`});return await a.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:a}=function(e){const t=(a=e,"[object Array]"===Object.prototype.toString.call(a)?e:[e]);var a;for(const n of t){const{isMatch:e,genAdapter:t,runtime:a}=n;if(e())return{adapter:t(),runtime:a}}}(e)||{};t&&(Pe.adapter=t),a&&(Pe.runtime=a)}}var Vt=new Nt;function Ct(e,t,a){void 0===a&&(a={});var n=/\?/.test(t),s="";for(var o in a)""===s?!n&&(t+="?"):s+="&",s+=o+"="+encodeURIComponent(a[o]);return/^http(s)?:\/\//.test(t+=s)?t:""+e+t}class bt{get(e){const{url:t,data:a,headers:n,timeout:s}=e;return new Promise(((e,o)=>{re.request({url:Ct("https:",t),data:a,method:"GET",header:n,timeout:s,success(t){e(t)},fail(e){o(e)}})}))}post(e){const{url:t,data:a,headers:n,timeout:s}=e;return new Promise(((e,o)=>{re.request({url:Ct("https:",t),data:a,method:"POST",header:n,timeout:s,success(t){e(t)},fail(e){o(e)}})}))}upload(e){return new Promise(((t,a)=>{const{url:n,file:s,data:o,headers:r,fileType:i}=e,c=re.uploadFile({url:Ct("https:",n),name:"file",formData:Object.assign({},o),filePath:s,fileType:i,header:r,success(e){const a={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&o.success_action_status&&(a.statusCode=parseInt(o.success_action_status,10)),t(a)},fail(e){a(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const xt={setItem(e,t){re.setStorageSync(e,t)},getItem:e=>re.getStorageSync(e),removeItem(e){re.removeStorageSync(e)},clear(){re.clearStorageSync()}};var Tt={genAdapter:function(){return{root:{},reqClass:bt,localStorage:xt,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Vt.useAdapters(Tt);const Dt=Vt,Bt=Dt.init;Dt.init=function(e){e.env=e.spaceId;const t=Bt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const a=t.auth;return t.auth=function(e){const t=a.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var a;t[e]=(a=t[e],function(e){e=e||{};const{success:t,fail:n,complete:s}=se(e);if(!(t||n||s))return a.call(this,e);a.call(this,e).then((e=>{t&&t(e),s&&s(e)}),(e=>{n&&n(e),s&&s(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var $t=Dt;async function Pt(e,t){const a=`http://${e}:${t}/system/ping`;try{const e=await(n={url:a,timeout:500},new Promise(((e,t)=>{re.request({...n,success(t){e(t)},fail(e){t(e)}})})));return!(!e.data||0!==e.data.code)}catch(s){return!1}var n}const It={"serverless.file.resource.generateProximalSign":"storage/generate-proximal-sign","serverless.file.resource.report":"storage/report","serverless.file.resource.delete":"storage/delete","serverless.file.resource.getTempFileURL":"storage/get-temp-file-url"};var zt={init(e){const t=new class{constructor(e){if(["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),!e.endpoint)throw new Error("集群空间未配置ApiEndpoint,配置后需要重新关联服务空间后生效");this.config=Object.assign({},e),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=re}async request(e,t=!0){return e=this.setupRequest(e),Promise.resolve().then((()=>_e(e,this.adapter.request)))}requestLocal(e){return new Promise(((t,a)=>{this.adapter.request(Object.assign(e,{complete(e){if(e||(e={}),!e.statusCode||e.statusCode>=400){const t=e.data&&e.data.code||"SYS_ERR",n=e.data&&e.data.message||"request:fail";return a(new oe({code:t,message:n}))}t({success:!0,result:e.data})}}))}))}setupRequest(e){const t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),a={"Content-Type":"application/json"};a["x-serverless-sign"]=fe(t,this.config.clientSecret);const n=ge();a["x-client-info"]=encodeURIComponent(JSON.stringify(n));const{token:s}=ce();return a["x-client-token"]=s,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(a))}}async setupLocalRequest(e){const t=ge(),{token:a}=ce(),n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:t,token:a}),{address:s,servePort:o}=this.__dev__&&this.__dev__.debugInfo||{},{address:r}=await async function(e,t){let a;for(let n=0;n{const{url:o,formData:r,name:i}=t.result;return s=t.result.fileUrl,new Promise(((t,s)=>{const c=this.adapter.uploadFile({url:o,formData:r,name:i,filePath:e,fileType:a,success(e){e&&e.statusCode<400?t(e):s(new oe({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){s(new oe({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof n&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((e=>{n({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))})).then((()=>this.reportUploadFile({cloudPath:t}))).then((t=>new Promise(((a,n)=>{t.success?a({success:!0,filePath:e,fileID:s}):n(new oe({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(t).then((e=>{if(e.success)return e.result;throw new oe({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new oe({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const a={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(a).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new oe({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}(e),a={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return a},t.customAuth=t.auth,t}},At=h((function(e,t){e.exports=f.enc.Hex}));function Ot(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Mt(e="",t={}){const{data:a,functionName:n,method:s,headers:o,signHeaderKeys:r=[],config:i}=t,c=String(Date.now()),l=Ot(),u=Object.assign({},o,{"x-from-app-id":i.spaceAppId,"x-from-env-id":i.spaceId,"x-to-env-id":i.spaceId,"x-from-instance-id":c,"x-from-function-name":n,"x-client-timestamp":c,"x-alipay-source":"client","x-request-id":l,"x-alipay-callid":l,"x-trace-id":l}),p=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(r),[d="",m=""]=e.split("?")||[],h=function(e){const t=e.signedHeaders.join(";"),a=e.signedHeaders.map((t=>`${t.toLowerCase()}:${e.headers[t]}\n`)).join(""),n=Ve(e.body).toString(At),s=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${a}\n${t}\n${n}\n`,o=Ve(s).toString(At),r=`HMAC-SHA256\n${e.timestamp}\n${o}\n`,i=Ce(r,e.secretKey).toString(At);return`HMAC-SHA256 Credential=${e.secretId}, SignedHeaders=${t}, Signature=${i}`}({path:d,query:m,method:s,headers:u,timestamp:c,body:JSON.stringify(a),secretId:i.accessKey,secretKey:i.secretKey,signedHeaders:p.sort()});return{url:`${i.endpoint}${e}`,headers:Object.assign({},u,{Authorization:h})}}function Lt({url:e,data:t,method:a="POST",headers:n={},timeout:s}){return new Promise(((o,r)=>{re.request({url:e,method:a,data:"object"==typeof t?JSON.stringify(t):t,header:n,dataType:"json",timeout:s,complete:(e={})=>{const t=n["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:a,errMsg:n,trace_id:s}=e.data||{};return r(new oe({code:"SYS_ERR",message:a||n||"request:fail",requestId:s||t}))}o({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})}))}function Rt(e,t){const{path:a,data:n,method:s="GET"}=e,{url:o,headers:r}=Mt(a,{functionName:"",data:n,method:s,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return Lt({url:o,data:n,method:s,headers:r}).then((e=>{const t=e.data||{};if(!t.success)throw new oe({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((e=>{throw new oe({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function Ft(e=""){const t=e.trim().replace(/^cloud:\/\//,""),a=t.indexOf("/");if(a<=0)throw new oe({code:"INVALID_PARAM",message:"fileID不合法"});const n=t.substring(0,a),s=t.substring(a+1);return n!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),s}function Ut(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}class jt{constructor(e){this.config=e}signedURL(e,t={}){const a=`/ws/function/${e}`,n=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),s=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:Ot(),timestamp:""+Date.now()}),o=[a,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(e){return s[e]?"".concat(e,"=").concat(s[e]):null})).filter(Boolean).join("&"),`host:${n}`].join("\n"),r=["HMAC-SHA256",Ve(o).toString(At)].join("\n"),i=Ce(r,this.config.secretKey).toString(At),c=Object.keys(s).map((e=>`${e}=${encodeURIComponent(s[e])}`)).join("&");return`${this.config.wsEndpoint}${a}?${c}&signature=${i}`}}var qt={init:e=>{e.provider="alipay";const t=new class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`,wsEndpoint:e.wsEndpoint||`wss://${e.spaceId}.api-hz.cloudbasefunction.cn`}),this._websocket=new jt(this.config)}callFunction(e){return function(e,t){const{name:a,data:n,async:s=!1,timeout:o}=e,r="POST",i={"x-to-function-name":a};s&&(i["x-function-invoke-type"]="async");const{url:c,headers:l}=Mt("/functions/invokeFunction",{functionName:a,data:n,method:r,headers:i,signHeaderKeys:["x-to-function-name"],config:t});return Lt({url:c,data:n,method:r,headers:l,timeout:o}).then((e=>{let t=0;if(s){const a=e.data||{};t="200"===a.errCode?0:a.errCode,e.data=a.data||{},e.errMsg=a.errMsg}if(0!==t)throw new oe({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}})).catch((e=>{throw new oe({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:a,formData:n,onUploadProgress:s}){return new Promise(((o,r)=>{const i=re.uploadFile({url:e,filePath:t,fileType:a,formData:n,name:"file",success(e){e&&e.statusCode<400?o(e):r(new oe({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new oe({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&i&&"function"==typeof i.onProgressUpdate&&i.onProgressUpdate((e=>{s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}async uploadFile({filePath:e,cloudPath:t="",fileType:a="image",onUploadProgress:n}){if("string"!==E(t))throw new oe({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new oe({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new oe({code:"INVALID_PARAM",message:"cloudPath不合法"});const s=await Rt({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:o,upload_url:r,form_data:i}=s,c=i&&i.reduce(((e,t)=>(e[t.key]=t.value,e)),{});return this.uploadFileToOSS({url:r,filePath:e,fileType:a,formData:c,onUploadProgress:n}).then((()=>({fileID:o})))}async getTempFileURL({fileList:e}){return new Promise(((t,a)=>{(!e||e.length<0)&&t({code:"INVALID_PARAM",message:"fileList不能为空数组"}),e.length>50&&t({code:"INVALID_PARAM",message:"fileList数组长度不能超过50"});const n=[];for(const o of e){let e;"string"!==E(o)&&t({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});try{e=Ft.call(this,o)}catch(s){console.warn(s.errCode,s.errMsg),e=o}n.push({file_id:e,expire:600})}Rt({path:"/?download_url",data:{file_list:n},method:"POST"},this.config).then((e=>{const{file_list:a=[]}=e;t({fileList:a.map((e=>({fileID:Ut.call(this,e.file_id),tempFileURL:e.download_url})))})})).catch((e=>a(e)))}))}async connectWebSocket(e){const{name:t,query:a}=e;return re.connectSocket({url:this._websocket.signedURL(t,a),complete:()=>{}})}}(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Wt({data:e}){let t;t=ge();const a=JSON.parse(JSON.stringify(e||{}));if(Object.assign(a,{clientInfo:t}),!a.uniIdToken){const{token:e}=ce();e&&(a.uniIdToken=e)}return a}const Ht=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var Kt=/[\\^$.*+?()[\]{}|]/g,Jt=RegExp(Kt.source);function Gt(e,t,a){return e.replace(new RegExp((n=t)&&Jt.test(n)?n.replace(Kt,"\\$&"):n,"g"),a);var n}const Yt=2e4,Qt={code:20101,message:"Invalid client"};function Xt(e){const{errSubject:t,subject:a,errCode:n,errMsg:s,code:o,message:r,cause:i}=e||{};return new oe({subject:t||a||"uni-secure-network",code:n||o||Yt,message:s||r,cause:i})}let Zt;function ea({secretType:e}={}){return"request"===e||"response"===e||"both"===e}function ta({name:e,data:t={}}={}){return"DCloud-clientDB"===e&&"encryption"===t.redirectTo&&"getAppClientKey"===t.action}function aa({functionName:e,result:t,logPvd:a}){}function na(e){const t=e.callFunction,a=function(a){const n=a.name;a.data=Wt.call(e,{data:a.data});const s={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],o=ea(a),r=ta(a),i=o||r;return t.call(this,a).then((e=>(e.errCode=0,!i&&aa.call(this,{functionName:n,result:e,logPvd:s}),Promise.resolve(e))),(e=>(!i&&aa.call(this,{functionName:n,result:e,logPvd:s}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:a=[]}={}){for(let n=0;na.provider===e&&a.spaceId===t));return n&&n.config}({provider:e,spaceId:t});if(!i||!i.accessControl||!i.accessControl.enable)return!1;const c=i.accessControl.function||{},l=Object.keys(c);if(0===l.length)return!0;const u=function(e,t){let a,n,s;for(let o=0;oe.trim())).indexOf(t)>-1&&(n=r):s=r:a=r}return a||n||s}(l,a);if(!u)return!1;if((c[u]||[]).find(((e={})=>e.appId===n&&(e.platform||"").toLowerCase()===r.toLowerCase())))return!0;throw console.error(`此应用[appId: ${n}, platform: ${r}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),Xt(Qt)}({provider:n,spaceId:s,functionName:o})?new Zt({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(a.bind(e))(t):r(t),Object.defineProperty(i,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),i.then((e=>("undefined"!=typeof UTSJSONObject&&"undefined"!=typeof UTS&&(e.result=UTS.JSON.parse(JSON.stringify(e.result))),e)))}}Zt=class{constructor(){throw Xt({message:"Platform app is not enabled, please check whether secure network module is enabled in your manifest.json"})}};const sa=Symbol("CLIENT_DB_INTERNAL");function oa(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=sa,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,a,n){if("_uniClient"===a)return null;if("symbol"==typeof a)return e[a];if(a in e||"string"!=typeof a){const t=e[a];return"function"==typeof t?t.bind(e):t}return t.get(e,a,n)}})}function ra(e){return{on:(t,a)=>{e[t]=e[t]||[],e[t].indexOf(a)>-1||e[t].push(a)},off:(t,a)=>{e[t]=e[t]||[];const n=e[t].indexOf(a);-1!==n&&e[t].splice(n,1)}}}const ia=["db.Geo","db.command","command.aggregate"];function ca(e,t){return ia.indexOf(`${e}.${t}`)>-1}function la(e){switch(E(e=ie(e))){case"array":return e.map((e=>la(e)));case"object":return e._internalType===sa||Object.keys(e).forEach((t=>{e[t]=la(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function ua(e){return e&&e.content&&e.content.$method}class pa{constructor(e,t,a){this.content=e,this.prevStage=t||null,this.udb=null,this._database=a}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:la(e.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=ua(e),a=ua(e.prevStage);if("aggregate"===t&&"collection"===a||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===ua(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=ua(e),a=ua(e.prevStage);if("aggregate"===t&&"command"===a)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return da({$method:e,$param:la(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const a=this.getAction(),n=this.getCommand();return n.$db.push({$method:e,$param:la(t)}),this._database._callCloudFunction({action:a,command:n})}}function da(e,t,a){return oa(new pa(e,t,a),{get(e,t){let n="db";return e&&e.content&&(n=e.content.$method),ca(n,t)?da({$method:t},e,a):function(){return da({$method:t,$param:la(Array.from(arguments))},e,a)}}})}function ma({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function ha(e,t={}){return oa(new e(t),{get:(e,t)=>ca("db",t)?da({$method:t},null,e):function(){return da({$method:t,$param:la(Array.from(arguments))},null,e)}})}class ga extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=A("_globalUniCloudDatabaseCallback")),t||(this.auth=ra(this._authCallBacks)),this._isJQL=t,Object.assign(this,ra(this._dbCallBacks)),this.env=oa({},{get:(e,t)=>({$env:t})}),this.Geo=oa({},{get:(e,t)=>ma({path:["Geo"],method:t})}),this.serverDate=ma({path:[],method:"serverDate"}),this.RegExp=ma({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const a=this._dbCallBacks;a[e]&&a[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const a=this._authCallBacks;a[e]&&a[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),a=e.getCommand();if("getTemp"!==a.$db[a.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:a}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:a,queryList:n}){function s(e,t){if(a&&n)for(let a=0;aF(U(r,"complete"),e))).then((()=>(s(null,e),ee(W,{type:J,content:e}),Promise.reject(e))))}const c=F(U(r,"invoke")),l=this._uniClient;return c.then((()=>l.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:e,command:t,multiCommand:a}}))).then((e=>{const{code:t,message:a,token:n,tokenExpired:c,systemInfo:l=[]}=e.result;if(l)for(let s=0;s(console.warn(a),n)})}}return p=e,F(U(r,"success"),p).then((()=>F(U(r,"complete"),p))).then((()=>{s(p,null);const e=o._parseResult(p);return ee(W,{type:J,content:e}),Promise.resolve(e)}));var p}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),i(new oe({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const fa="token无效,跳转登录页面",_a="token过期,跳转登录页面",ya={TOKEN_INVALID_TOKEN_EXPIRED:_a,TOKEN_INVALID_INVALID_CLIENTID:fa,TOKEN_INVALID:fa,TOKEN_INVALID_WRONG_TOKEN:fa,TOKEN_INVALID_ANONYMOUS_USER:fa},va={"uni-id-token-expired":_a,"uni-id-check-token-failed":fa,"uni-id-token-not-exist":fa,"uni-id-check-device-feature-failed":fa};function wa(e,t){let a="";return a=e?`${e}/${t}`:t,a.replace(/^\//,"")}function Sa(e=[],t=""){const a=[],n=[];return e.forEach((e=>{!0===e.needLogin?a.push(wa(t,e.path)):!1===e.needLogin&&n.push(wa(t,e.path))})),{needLoginPage:a,notNeedLoginPage:n}}function ka(e){return e.split("?")[0].replace(/^\//,"")}function Ea(){return function(e){let t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){const e=getCurrentPages();return e[e.length-1]}())}function Na(){return ka(Ea())}function Va(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const a=t.list,n=ka(e);return a.some((e=>e.pagePath===n))}const Ca=!!m.uniIdRouter,{loginPage:ba,routerNeedLogin:xa,resToLogin:Ta,needLoginPage:Da,notNeedLoginPage:Ba,loginPageInTabBar:$a}=function({pages:e=[],subPackages:t=[],uniIdRouter:a={},tabBar:n={}}=m){const{loginPage:s,needLogin:o=[],resToLogin:r=!0}=a,{needLoginPage:i,notNeedLoginPage:c}=Sa(e),{needLoginPage:l,notNeedLoginPage:u}=function(e=[]){const t=[],a=[];return e.forEach((e=>{const{root:n,pages:s=[]}=e,{needLoginPage:o,notNeedLoginPage:r}=Sa(s,n);t.push(...o),a.push(...r)})),{needLoginPage:t,notNeedLoginPage:a}}(t);return{loginPage:s,routerNeedLogin:o,resToLogin:r,needLoginPage:[...i,...l],notNeedLoginPage:[...c,...u],loginPageInTabBar:Va(s,n)}}();if(Da.indexOf(ba)>-1)throw new Error(`Login page [${ba}] should not be "needLogin", please check your pages.json`);function Pa(e){const t=Na();if("/"===e.charAt(0))return e;const[a,n]=e.split("?"),s=a.replace(/^\//,"").split("/"),o=t.split("/");o.pop();for(let r=0;r-1?n+`&uniIdRedirectUrl=${encodeURIComponent(s)}`:n+`?uniIdRedirectUrl=${encodeURIComponent(s)}`:n);var n,s;$a?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const o={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout((()=>{o[e]({url:a})}),0)}function Aa({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},a=function(){const{token:e,tokenExpired:t}=ce();let a;if(e){if(t-1)&&(Da.indexOf(t)>-1||xa.some((t=>{return a=e,new RegExp(t).test(a);var a})))}(e)&&a){if(a.uniIdRedirectUrl=e,Q(H).length>0)return setTimeout((()=>{ee(H,a)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function Oa(){!function(){const e=Ea(),{abortLoginPageJump:t,autoToLoginPage:a}=Aa({url:e});t||a&&za({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t{const{type:t,content:a}=e;let n=!1;switch(t){case"cloudobject":n=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in va}(a);break;case"clientdb":n=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in ya}(a)}n&&function(e={}){const t=Q(H);ne().then((()=>{const a=Ea();if(a&&Ia({redirect:a}))return t.length>0?ee(H,Object.assign({uniIdRedirectUrl:a},e)):void(ba&&za({api:"navigateTo",redirect:a}))}))}(a)}))}function La(e){var t;(t=e).onResponse=function(e){X(W,e)},t.offResponse=function(e){Z(W,e)},function(e){e.onNeedLogin=function(e){X(H,e)},e.offNeedLogin=function(e){Z(H,e)},Ca&&(A("_globalUniCloudStatus").needLoginInit||(A("_globalUniCloudStatus").needLoginInit=!0,ne().then((()=>{Oa.call(e)})),Ta&&Ma.call(e)))}(e),function(e){e.onRefreshToken=function(e){X(K,e)},e.offRefreshToken=function(e){Z(K,e)}}(e)}let Ra;const Fa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ua=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function ja(){const e=ce().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let a;try{a=JSON.parse((n=t[1],decodeURIComponent(Ra(n).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(s){throw new Error("获取当前用户信息出错,详细错误信息为:"+s.message)}var n;return a.tokenExpired=1e3*a.exp,delete a.exp,delete a.iat,a}Ra="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Ua.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var a,n,s="",o=0;o>16&255):64===n?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return s}:atob;var qa=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(h((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const a="chooseAndUploadFile:ok",n="chooseAndUploadFile:fail";function s(e,t){return e.tempFiles.forEach(((e,a)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+a+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function o(e,t,{onChooseFile:n,onUploadProgress:s}){return t.then((e=>{if(n){const t=n(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:a,tempFilePaths:[],tempFiles:[]}:function(e,t,n=5,s){(t=Object.assign({},t)).errMsg=a;const o=t.tempFiles,r=o.length;let i=0;return new Promise((a=>{for(;i=r)return void(!o.find((e=>!e.url&&!e.errMsg))&&a(t));const l=o[n];e.uploadFile({provider:l.provider,filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,cloudPathAsRealPath:l.cloudPathAsRealPath,onUploadProgress(e){e.index=n,e.tempFile=l,e.tempFilePath=l.path,s&&s(e)}}).then((e=>{l.url=e.fileID,n{l.errMsg=e.errMsg||e.message,n{uni.chooseImage({count:t,sizeType:a,sourceType:o,extension:r,success(t){e(s(t,"image"))},fail(e){i({errMsg:e.errMsg.replace("chooseImage:fail",n)})}})}))}(t),t):"video"===t.type?o(e,function(e){const{camera:t,compressed:a,maxDuration:o,sourceType:r=["album","camera"],extension:i}=e;return new Promise(((e,c)=>{uni.chooseVideo({camera:t,compressed:a,maxDuration:o,sourceType:r,extension:i,success(t){const{tempFilePath:a,duration:n,size:o,height:r,width:i}=t;e(s({errMsg:"chooseVideo:ok",tempFilePaths:[a],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:a,size:o,type:t.tempFile&&t.tempFile.type||"",width:i,height:r,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail(e){c({errMsg:e.errMsg.replace("chooseVideo:fail",n)})}})}))}(t),t):o(e,function(e){const{count:t,extension:a}=e;return new Promise(((e,o)=>{let r=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(r=wx.chooseMessageFile),"function"!=typeof r)return o({errMsg:n+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});r({type:"all",count:t,extension:a,success(t){e(s(t))},fail(e){o({errMsg:e.errMsg.replace("chooseFile:fail",n)})}})}))}(t),t)}}})));function Wa(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if("manual"===this.loadtime)return;let a=!1;const n=[];for(let s=2;s{this.mixinDatacomLoading=!1;const{data:n,count:s}=a.result;this.getcount&&(this.mixinDatacomPage.count=s),this.mixinDatacomHasMore=n.length{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,this.mixinDatacomError=e,a&&a(e)})))},mixinDatacomGet(t={}){let a;t=t||{},a="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const n=t.action||this.action;n&&(a=a.action(n));const s=t.collection||this.collection;a=Array.isArray(s)?a.collection(...s):a.collection(s);const o=t.where||this.where;o&&Object.keys(o).length&&(a=a.where(o));const r=t.field||this.field;r&&(a=a.field(r));const i=t.foreignKey||this.foreignKey;i&&(a=a.foreignKey(i));const c=t.groupby||this.groupby;c&&(a=a.groupBy(c));const l=t.groupField||this.groupField;l&&(a=a.groupField(l)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(a=a.distinct());const u=t.orderby||this.orderby;u&&(a=a.orderBy(u));const p=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,d=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,m=void 0!==t.getcount?t.getcount:this.getcount,h=void 0!==t.gettree?t.gettree:this.gettree,g=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,f={getCount:m},_={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return h&&(f.getTree=_),g&&(f.getTreePath=_),a=a.skip(d*(p-1)).limit(d).get(f),a}}}}function Ha(e){return A("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function Ka({openid:e,callLoginByWeixin:t=!1}={}){throw Ha(this),new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `app`")}async function Ja(e){const t=Ha(this);return t.initPromise||(t.initPromise=Ka.call(this,e).then((e=>e)).catch((e=>{throw delete t.initPromise,e}))),t.initPromise}function Ga(e){he=e}function Ya(e){const t={getSystemInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(a){return new Promise(((n,s)=>{t[e]({...a,success(e){n(e)},fail(e){s(e)}})}))}}class Qa extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const a=this._callback[e];if(!a)return;const n=function(e,t){for(let a=e.length-1;a>=0;a--)if(e[a]===t)return a;return-1}(a,t);a.splice(n,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const a=this._callback[e];if(a)for(let n=0;n{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(e=>{throw this.emit("error",e),this.close(),e}))}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:a,messageId:n,message:s}=t;this._payloadQueue.push({action:a,messageId:n,message:s}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find((e=>e.messageId===this._currentMessageId+1));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:a,message:n}=e;"end"===t?this._end({messageId:a,message:n}):"message"===t&&this._appendMessage({messageId:a,message:n})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){uni.onPushMessage(this._uniPushMessageCallback)}_destroy(){uni.offPushMessage(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const Xa={tcb:$t,tencent:$t,aliyun:ve,private:zt,dcloud:zt,alipay:qt};let Za=new class{init(e){let t={};const a=Xa[e.provider];if(!a)throw new Error("未提供正确的provider参数");var n;return t=a.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new T({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const a=e.auth();return t.then((()=>a.getLoginState())).then((e=>e?Promise.resolve():a.signInAnonymously()))}}))}(t),na(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(n=t).database=function(e){if(e&&Object.keys(e).length>0)return n.init(e).database();if(this._database)return this._database;const t=ha(ga,{uniClient:n});return this._database=t,t},n.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return n.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=ha(ga,{uniClient:n,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=ja,e.chooseAndUploadFile=qa.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Wa(e)}}),e.SSEChannel=Qa,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:a=!1}={}){return Ja.call(e,{openid:t,callLoginByWeixin:a})}}(e),e.setCustomClientInfo=Ga,e.importObject=function(t){return function(a,n={}){n=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);const{customUI:s,loadingOptions:o,errorOptions:r,parseSystemError:i}=n,c=!s;return new Proxy({},{get(s,l){switch(l){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:a}={}){return async function(...n){const s=a?a({params:n}):{};let o,r;try{return await F(U(t,"invoke"),{...s}),o=await e(...n),await F(U(t,"success"),{...s,result:o}),o}catch(i){throw r=i,await F(U(t,"fail"),{...s,error:r}),r}finally{await F(U(t,"complete"),r?{...s,error:r}:{...s,result:o})}}}({fn:async function s(...u){let p;c&&uni.showLoading({title:o.title,mask:o.mask});const d={name:a,type:"OBJECT",data:{method:l,params:u}};"object"==typeof n.secretMethods&&function(e,t){const a=t.data.method,n=e.secretMethods||{},s=n[a]||n["*"];s&&(t.secretType=s)}(n,d);let m=!1;try{p=await t.callFunction(d)}catch(e){m=!0,p={result:new oe(e)}}const{errSubject:h,errCode:g,errMsg:f,newToken:_}=p.result||{};if(c&&uni.hideLoading(),_&&_.token&&_.tokenExpired&&(le(_),ee(K,{..._})),g){let e=f;if(m&&i&&(e=(await i({objectName:a,methodName:l,params:u,errSubject:h,errCode:g,errMsg:f})).errMsg||f),c)if("toast"===r.type)uni.showToast({title:e,icon:"none"});else{if("modal"!==r.type)throw new Error(`Invalid errorOptions.type: ${r.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:a,cancelText:n,confirmText:s}={}){return new Promise(((o,r)=>{uni.showModal({title:e,content:t,showCancel:a,cancelText:n,confirmText:s,success(e){o(e)},fail(){o({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:r.retry,cancelText:"取消",confirmText:r.retry?"重试":"确定"});if(r.retry&&t)return s(...u)}}const t=new oe({subject:h,code:g,message:f,requestId:p.requestId});throw t.detail=p.result,ee(W,{type:Y,content:t}),t}return ee(W,{type:Y,content:p.result}),p.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:a,methodName:l,params:e}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const a=t[e];t[e]=function(){return a.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(a){let n=!1;if("callFunction"===t){const e=a&&a.type||w;n=e!==w}const s="callFunction"===t&&!n,o=this._initPromiseHub.exec();a=a||{};const{success:r,fail:i,complete:c}=se(a),l=o.then((()=>n?Promise.resolve():F(U(t,"invoke"),a))).then((()=>e.call(this,a))).then((e=>n?Promise.resolve(e):F(U(t,"success"),e).then((()=>F(U(t,"complete"),e))).then((()=>(s&&ee(W,{type:G,content:e}),Promise.resolve(e))))),(e=>n?Promise.reject(e):F(U(t,"fail"),e).then((()=>F(U(t,"complete"),e))).then((()=>(ee(W,{type:G,content:e}),Promise.reject(e))))));if(!(r||i||c))return l;l.then((e=>{r&&r(e),c&&c(e),s&&ee(W,{type:G,content:e})}),(e=>{i&&i(e),c&&c(e),s&&ee(W,{type:G,content:e})}))}}(t[e],e).bind(t)})),t.init=this.init,t}};(()=>{const e=$;let t={};if(e&&1===e.length)t=e[0],Za=Za.init(t),Za._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let a;a=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",t.forEach((e=>{Za[e]=function(){return console.error(a),Promise.reject(new oe({code:"SYS_ERR",message:a}))}}))}Object.assign(Za,{get mixinDatacom(){return Wa(Za)}}),La(Za),Za.addInterceptor=L,Za.removeInterceptor=R,Za.interceptObject=j,uni.__uniCloud=Za;{const e=I||(I=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;function e(){return this}return void 0!==e()?e():new Function("return this")()}(),I);e.uniCloud=Za,e.UniCloudError=oe}})();var en=Za;const tn=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}];const an=s({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""},fontFamily:{type:String,default:""}},data:()=>({icons:tn}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?e.unicode:""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e},styleObj(){return""!==this.fontFamily?`color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`:`color: ${this.color}; font-size: ${this.iconSize};`}},methods:{_onClick(){this.$emit("click")}}},[["render",function(t,a,n,s,o,r){return e.openBlock(),e.createElementBlock("text",{style:e.normalizeStyle(r.styleObj),class:e.normalizeClass(["uni-icons",["uniui-"+n.type,n.customPrefix,n.customPrefix?n.type:""]]),onClick:a[0]||(a[0]=(...e)=>r._onClick&&r._onClick(...e))},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)}],["__scopeId","data-v-5610c8db"]]),nn={name:"uni-data-select",mixins:[en.mixinDatacom||{}],props:{localdata:{type:Array,default:()=>[]},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},label:{type:String,default:""},placeholder:{type:String,default:"请选择"},emptyTips:{type:String,default:"无选项"},clear:{type:Boolean,default:!0},defItem:{type:Number,default:0},disabled:{type:Boolean,default:!1},format:{type:String,default:""},placement:{type:String,default:"bottom"}},data:()=>({showSelector:!1,current:"",mixinDatacomResData:[],apps:[],channels:[],cacheKey:"uni-data-select-lastSelectedValue"}),created(){this.debounceGet=this.debounce((()=>{this.query()}),300),this.collection&&!this.localdata.length&&this.debounceGet()},computed:{typePlaceholder(){const e=this.placeholder,t={"opendb-stat-app-versions":"版本","opendb-app-channels":"渠道","opendb-app-list":"应用"}[this.collection];return t?e+t:e},valueCom(){return this.modelValue},textShow(){let e=this.current;return e.length>10?e.slice(0,25)+"...":e},getOffsetByPlacement(){switch(this.placement){case"top":return"bottom:calc(100% + 12px);";case"bottom":return"top:calc(100% + 12px);"}}},watch:{localdata:{immediate:!0,handler(e,t){Array.isArray(e)&&t!==e&&(this.mixinDatacomResData=e)}},valueCom(e,t){this.initDefVal()},mixinDatacomResData:{immediate:!0,handler(e){e.length&&this.initDefVal()}}},methods:{debounce(e,t=100){let a=null;return function(...n){a&&clearTimeout(a),a=setTimeout((()=>{e.apply(this,n)}),t)}},query(){this.mixinDatacomEasyGet()},onMixinDatacomPropsChange(){this.collection&&this.debounceGet()},initDefVal(){let e="";if(!this.valueCom&&0!==this.valueCom||this.isDisabled(this.valueCom)){let t;if(this.collection&&(t=this.getCache()),t||0===t)e=t;else{let t="";this.defItem>0&&this.defItem<=this.mixinDatacomResData.length&&(t=this.mixinDatacomResData[this.defItem-1].value),e=t}(e||0===e)&&this.emit(e)}else e=this.valueCom;const t=this.mixinDatacomResData.find((t=>t.value===e));this.current=t?this.formatItemName(t):""},isDisabled(e){let t=!1;return this.mixinDatacomResData.forEach((a=>{a.value===e&&(t=a.disable)})),t},clearVal(){this.emit(""),this.collection&&this.removeCache()},change(e){e.disable||(this.showSelector=!1,this.current=this.formatItemName(e),this.emit(e.value))},emit(e){this.$emit("input",e),this.$emit("update:modelValue",e),this.$emit("change",e),this.collection&&this.setCache(e)},toggleSelector(){this.disabled||(this.showSelector=!this.showSelector)},formatItemName(e){let{text:t,value:a,channel_code:n}=e;if(n=n?`(${n})`:"",this.format){let t="";t=this.format;for(let a in e)t=t.replace(new RegExp(`{${a}}`,"g"),e[a]);return t}return this.collection.indexOf("app-list")>0?`${t}(${a})`:t||`未命名${n}`},getLoadData(){return this.mixinDatacomResData},getCurrentCacheKey(){return this.collection},getCache(e=this.getCurrentCacheKey()){return(uni.getStorageSync(this.cacheKey)||{})[e]},setCache(e,t=this.getCurrentCacheKey()){let a=uni.getStorageSync(this.cacheKey)||{};a[t]=e,uni.setStorageSync(this.cacheKey,a)},removeCache(e=this.getCurrentCacheKey()){let t=uni.getStorageSync(this.cacheKey)||{};delete t[e],uni.setStorageSync(this.cacheKey,t)}}};const sn=s(nn,[["render",function(t,n,s,o,r,i){const c=a(e.resolveDynamicComponent("uni-icons"),an);return e.openBlock(),e.createElementBlock("view",{class:"uni-stat__select"},[s.label?(e.openBlock(),e.createElementBlock("span",{key:0,class:"uni-label-text hide-on-phone"},e.toDisplayString(s.label+":"),1)):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["uni-stat-box",{"uni-stat__actived":r.current}])},[e.createElementVNode("view",{class:e.normalizeClass(["uni-select",{"uni-select--disabled":s.disabled}])},[e.createElementVNode("view",{class:"uni-select__input-box",onClick:n[1]||(n[1]=(...e)=>i.toggleSelector&&i.toggleSelector(...e))},[r.current?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-select__input-text"},e.toDisplayString(i.textShow),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-select__input-text uni-select__input-placeholder"},e.toDisplayString(i.typePlaceholder),1)),r.current&&s.clear&&!s.disabled?(e.openBlock(),e.createElementBlock("view",{key:2,onClick:n[0]||(n[0]=e.withModifiers(((...e)=>i.clearVal&&i.clearVal(...e)),["stop"]))},[e.createVNode(c,{type:"clear",color:"#c0c4cc",size:"24"})])):(e.openBlock(),e.createElementBlock("view",{key:3},[e.createVNode(c,{type:r.showSelector?"top":"bottom",size:"20",color:"#999"},null,8,["type"])]))]),r.showSelector?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-select--mask",onClick:n[2]||(n[2]=(...e)=>i.toggleSelector&&i.toggleSelector(...e))})):e.createCommentVNode("",!0),r.showSelector?(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-select__selector",style:e.normalizeStyle(i.getOffsetByPlacement)},[e.createElementVNode("view",{class:e.normalizeClass("bottom"==s.placement?"uni-popper__arrow_bottom":"uni-popper__arrow_top")},null,2),e.createElementVNode("scroll-view",{"scroll-y":"true",class:"uni-select__selector-scroll"},[0===r.mixinDatacomResData.length?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-select__selector-empty"},[e.createElementVNode("text",null,e.toDisplayString(s.emptyTips),1)])):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(r.mixinDatacomResData,((t,a)=>(e.openBlock(),e.createElementBlock("view",{class:"uni-select__selector-item",key:a,onClick:e=>i.change(t)},[e.createElementVNode("text",{class:e.normalizeClass(i.textShow==t.text?"uni-select__selector__disabled":"uni-select__selector__disabled1")},e.toDisplayString(i.formatItemName(t)),3)],8,["onClick"])))),128))])],4)):e.createCommentVNode("",!0)],2)],2)])}],["__scopeId","data-v-f15b7906"]]),on=async e=>{try{const a=await uni.$http.post(`/api/v1/items/rt/${e.id}`,e,{"Content-Type":"application/json;charset=utf-8",Authorization:`JWT ${uni.getStorageSync("token")}`});return t("log","at api/api.js:5",a),200!=a.statusCode||"token过期且未提供刷新令牌"==a.data.error?(uni.removeStorageSync("token"),cn(),a.data):a.data}catch(a){return t("log","at api/api.js:18",a),cn(),response.data}},rn=async e=>{try{const a=await uni.$http.get("/api/v1/faults",e,{"Content-Type":"application/json;charset=utf-8",Authorization:`JWT ${uni.getStorageSync("token")}`});return t("log","at api/api.js:63",a.data),200!=a.statusCode||"token过期且未提供刷新令牌"==a.data.error?(uni.removeStorageSync("token"),cn(),a.data):a.data}catch(a){return t("error","at api/api.js:76","Network request failed:",a),t("log","at api/api.js:77",a),uni.removeStorageSync("token"),cn(),response.data}},cn=async(e,a)=>{try{t("log","at api/api.js:91","login request");const e=await uni.$http.post("/api/v1/login",{name:"dexnui",pwd:"dexn1001"},{"Content-Type":"application/json;charset=utf-8"});return t("log","at api/api.js:94",e),200!=e.statusCode||"token过期且未提供刷新令牌"==e.data.error?e.data:(t("log","at api/api.js:103",e.data),uni.setStorageSync("token",e.data.data.token),e.data)}catch(n){return response.data}},ln=(e="yyyy/MM/dd hh:mm:ss")=>{const t=new Date,a=t.getFullYear(),n=("0"+(t.getMonth()+1)).slice(-2),s=("0"+t.getDate()).slice(-2),o=("0"+t.getHours()).slice(-2),r=("0"+t.getMinutes()).slice(-2),i=("0"+t.getSeconds()).slice(-2);return e.replace("yyyy",a).replace("MM",n).replace("dd",s).replace("hh",o).replace("mm",r).replace("ss",i)};function un(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}}const pn="function"==typeof Proxy;class dn{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const a={};if(e.settings)for(const o in e.settings){const t=e.settings[o];a[o]=t.defaultValue}const n=`__vue-devtools-plugin-settings__${e.id}`;let s={...a};try{const e=localStorage.getItem(n),t=JSON.parse(e);Object.assign(s,t)}catch(ke){}this.fallbacks={getSettings:()=>s,setSettings(e){try{localStorage.setItem(n,JSON.stringify(e))}catch(ke){}s=e}},t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((a=>{this.targetQueue.push({method:t,args:e,resolve:a})}))})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function mn(e,t){const a=un(),n=un().__VUE_DEVTOOLS_GLOBAL_HOOK__,s=pn&&e.enableEarlyProxy;if(!n||!a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&s){const o=s?new dn(e,n):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:e,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}else n.emit("devtools-plugin:setup",e,t)} /*! * vuex v4.1.0 * (c) 2022 Evan You * @license MIT */function hn(e,t){Object.keys(e).forEach((function(a){return t(e[a],a)}))}function gn(e){return null!==e&&"object"==typeof e}function fn(e,t,a){return t.indexOf(e)<0&&(a&&a.prepend?t.unshift(e):t.push(e)),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}function _n(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var a=e.state;vn(e,a,[],e._modules.root,!0),yn(e,a,t)}function yn(t,a,n){var s=t._state,o=t._scope;t.getters={},t._makeLocalGettersCache=Object.create(null);var r=t._wrappedGetters,i={},c={},l=e.effectScope(!0);l.run((function(){hn(r,(function(a,n){i[n]=function(e,t){return function(){return e(t)}}(a,t),c[n]=e.computed((function(){return i[n]()})),Object.defineProperty(t.getters,n,{get:function(){return c[n].value},enumerable:!0})}))})),t._state=e.reactive({data:a}),t._scope=l,t.strict&&function(t){e.watch((function(){return t._state.data}),(function(){}),{deep:!0,flush:"sync"})}(t),s&&n&&t._withCommit((function(){s.data=null})),o&&o.stop()}function vn(e,t,a,n,s){var o=!a.length,r=e._modules.getNamespace(a);if(n.namespaced&&(e._modulesNamespaceMap[r],e._modulesNamespaceMap[r]=n),!o&&!s){var i=Sn(t,a.slice(0,-1)),c=a[a.length-1];e._withCommit((function(){i[c]=n.state}))}var l=n.context=function(e,t,a){var n=""===t,s={dispatch:n?e.dispatch:function(a,n,s){var o=kn(a,n,s),r=o.payload,i=o.options,c=o.type;return i&&i.root||(c=t+c),e.dispatch(c,r)},commit:n?e.commit:function(a,n,s){var o=kn(a,n,s),r=o.payload,i=o.options,c=o.type;i&&i.root||(c=t+c),e.commit(c,r,i)}};return Object.defineProperties(s,{getters:{get:n?function(){return e.getters}:function(){return wn(e,t)}},state:{get:function(){return Sn(e.state,a)}}}),s}(e,r,a);n.forEachMutation((function(t,a){!function(e,t,a,n){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){a.call(e,n.state,t)}))}(e,r+a,t,l)})),n.forEachAction((function(t,a){var n=t.root?a:r+a,s=t.handler||t;!function(e,t,a,n){(e._actions[t]||(e._actions[t]=[])).push((function(t){var s,o=a.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return(s=o)&&"function"==typeof s.then||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}(e,n,s,l)})),n.forEachGetter((function(t,a){!function(e,t,a,n){if(e._wrappedGetters[t])return;e._wrappedGetters[t]=function(e){return a(n.state,n.getters,e.state,e.getters)}}(e,r+a,t,l)})),n.forEachChild((function(n,o){vn(e,t,a.concat(o),n,s)}))}function wn(e,t){if(!e._makeLocalGettersCache[t]){var a={},n=t.length;Object.keys(e.getters).forEach((function(s){if(s.slice(0,n)===t){var o=s.slice(n);Object.defineProperty(a,o,{get:function(){return e.getters[s]},enumerable:!0})}})),e._makeLocalGettersCache[t]=a}return e._makeLocalGettersCache[t]}function Sn(e,t){return t.reduce((function(e,t){return e[t]}),e)}function kn(e,t,a){return gn(e)&&e.type&&(a=t,t=e,e=e.type),{type:e,payload:t,options:a}}var En="vuex:mutations",Nn="vuex:actions",Vn="vuex",Cn=0;function bn(e,t){mn({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},(function(a){a.addTimelineLayer({id:En,label:"Vuex Mutations",color:xn}),a.addTimelineLayer({id:Nn,label:"Vuex Actions",color:xn}),a.addInspector({id:Vn,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),a.on.getInspectorTree((function(a){if(a.app===e&&a.inspectorId===Vn)if(a.filter){var n=[];$n(n,t._modules.root,a.filter,""),a.rootNodes=n}else a.rootNodes=[Bn(t._modules.root,"")]})),a.on.getInspectorState((function(a){if(a.app===e&&a.inspectorId===Vn){var n=a.nodeId;wn(t,n),a.state=function(e,t,a){t="root"===a?t:t[a];var n=Object.keys(t),s={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(n.length){var o=function(e){var t={};return Object.keys(e).forEach((function(a){var n=a.split("/");if(n.length>1){var s=t,o=n.pop();n.forEach((function(e){s[e]||(s[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),s=s[e]._custom.value})),s[o]=Pn((function(){return e[a]}))}else t[a]=Pn((function(){return e[a]}))})),t}(t);s.getters=Object.keys(o).map((function(e){return{key:e.endsWith("/")?Dn(e):e,editable:!1,value:Pn((function(){return o[e]}))}}))}return s}((s=t._modules,(r=(o=n).split("/").filter((function(e){return e}))).reduce((function(e,t,a){var n=e[t];if(!n)throw new Error('Missing module "'+t+'" for path "'+o+'".');return a===r.length-1?n:n._children}),"root"===o?s:s.root._children)),"root"===n?t.getters:t._makeLocalGettersCache,n)}var s,o,r})),a.on.editInspectorState((function(a){if(a.app===e&&a.inspectorId===Vn){var n=a.nodeId,s=a.path;"root"!==n&&(s=n.split("/").filter(Boolean).concat(s)),t._withCommit((function(){a.set(t._state.data,s,a.state.value)}))}})),t.subscribe((function(e,t){var n={};e.payload&&(n.payload=e.payload),n.state=t,a.notifyComponentUpdate(),a.sendInspectorTree(Vn),a.sendInspectorState(Vn),a.addTimelineEvent({layerId:En,event:{time:Date.now(),title:e.type,data:n}})})),t.subscribeAction({before:function(e,t){var n={};e.payload&&(n.payload=e.payload),e._id=Cn++,e._time=Date.now(),n.state=t,a.addTimelineEvent({layerId:Nn,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:n}})},after:function(e,t){var n={},s=Date.now()-e._time;n.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},e.payload&&(n.payload=e.payload),n.state=t,a.addTimelineEvent({layerId:Nn,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:n}})}})}))}var xn=8702998,Tn={label:"namespaced",textColor:16777215,backgroundColor:6710886};function Dn(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function Bn(e,t){return{id:t||"root",label:Dn(t),tags:e.namespaced?[Tn]:[],children:Object.keys(e._children).map((function(a){return Bn(e._children[a],t+a+"/")}))}}function $n(e,t,a,n){n.includes(a)&&e.push({id:n||"root",label:n.endsWith("/")?n.slice(0,n.length-1):n||"Root",tags:t.namespaced?[Tn]:[]}),Object.keys(t._children).forEach((function(s){$n(e,t._children[s],a,n+s+"/")}))}function Pn(e){try{return e()}catch(ke){return ke}}var In=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var a=e.state;this.state=("function"==typeof a?a():a)||{}},zn={namespaced:{configurable:!0}};zn.namespaced.get=function(){return!!this._rawModule.namespaced},In.prototype.addChild=function(e,t){this._children[e]=t},In.prototype.removeChild=function(e){delete this._children[e]},In.prototype.getChild=function(e){return this._children[e]},In.prototype.hasChild=function(e){return e in this._children},In.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},In.prototype.forEachChild=function(e){hn(this._children,e)},In.prototype.forEachGetter=function(e){this._rawModule.getters&&hn(this._rawModule.getters,e)},In.prototype.forEachAction=function(e){this._rawModule.actions&&hn(this._rawModule.actions,e)},In.prototype.forEachMutation=function(e){this._rawModule.mutations&&hn(this._rawModule.mutations,e)},Object.defineProperties(In.prototype,zn);var An=function(e){this.register([],e,!1)};function On(e,t,a){if(t.update(a),a.modules)for(var n in a.modules){if(!t.getChild(n))return;On(e.concat(n),t.getChild(n),a.modules[n])}}An.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},An.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,a){return e+((t=t.getChild(a)).namespaced?a+"/":"")}),"")},An.prototype.update=function(e){On([],this.root,e)},An.prototype.register=function(e,t,a){var n=this;void 0===a&&(a=!0);var s=new In(t,a);0===e.length?this.root=s:this.get(e.slice(0,-1)).addChild(e[e.length-1],s);t.modules&&hn(t.modules,(function(t,s){n.register(e.concat(s),t,a)}))},An.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),a=e[e.length-1],n=t.getChild(a);n&&n.runtime&&t.removeChild(a)},An.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),a=e[e.length-1];return!!t&&t.hasChild(a)};var Mn=function(e){var t=this;void 0===e&&(e={});var a=e.plugins;void 0===a&&(a=[]);var n=e.strict;void 0===n&&(n=!1);var s=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new An(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=s;var o=this,r=this.dispatch,i=this.commit;this.dispatch=function(e,t){return r.call(o,e,t)},this.commit=function(e,t,a){return i.call(o,e,t,a)},this.strict=n;var c=this._modules.root.state;vn(this,c,[],this._modules.root),yn(this,c),a.forEach((function(e){return e(t)}))},Ln={state:{configurable:!0}};Mn.prototype.install=function(e,t){e.provide(t||"store",this),e.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&bn(e,this)},Ln.state.get=function(){return this._state.data},Ln.state.set=function(e){},Mn.prototype.commit=function(e,t,a){var n=this,s=kn(e,t,a),o=s.type,r=s.payload,i={type:o,payload:r},c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(e){e(r)}))})),this._subscribers.slice().forEach((function(e){return e(i,n.state)})))},Mn.prototype.dispatch=function(e,t){var a=this,n=kn(e,t),s=n.type,o=n.payload,r={type:s,payload:o},i=this._actions[s];if(i){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(r,a.state)}))}catch(ke){}var c=i.length>1?Promise.all(i.map((function(e){return e(o)}))):i[0](o);return new Promise((function(e,t){c.then((function(t){try{a._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(r,a.state)}))}catch(ke){}e(t)}),(function(e){try{a._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(r,a.state,e)}))}catch(ke){}t(e)}))}))}},Mn.prototype.subscribe=function(e,t){return fn(e,this._subscribers,t)},Mn.prototype.subscribeAction=function(e,t){return fn("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},Mn.prototype.watch=function(t,a,n){var s=this;return e.watch((function(){return t(s.state,s.getters)}),a,Object.assign({},n))},Mn.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},Mn.prototype.registerModule=function(e,t,a){void 0===a&&(a={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),vn(this,this.state,e,this._modules.get(e),a.preserveState),yn(this,this.state)},Mn.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){delete Sn(t.state,e.slice(0,-1))[e[e.length-1]]})),_n(this)},Mn.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},Mn.prototype.hotUpdate=function(e){this._modules.update(e),_n(this,!0)},Mn.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(Mn.prototype,Ln);var Rn,Fn=(Rn=function(e,t){var a,n={};return(a=t,function(e){return Array.isArray(e)||gn(e)}(a)?Array.isArray(a)?a.map((function(e){return{key:e,val:e}})):Object.keys(a).map((function(e){return{key:e,val:a[e]}})):[]).forEach((function(t){var a=t.key,s=t.val;n[a]=function(){var t=this.$store.state,a=this.$store.getters;if(e){var n=function(e,t,a){return e._modulesNamespaceMap[a]}(this.$store,0,e);if(!n)return;t=n.context.state,a=n.context.getters}return"function"==typeof s?s.call(this,t,a):t[s]},n[a].vuex=!0})),n},function(e,t){return"string"!=typeof e?(t=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),Rn(e,t)});const Un="/static/img/choice1.png",jn="/static/img/choice2.png",qn="/static/img/direct.png",Wn="/static/img/choice4.png",Hn="/static/img/system.png",Kn={data:()=>({logo:"../../static/logo/logo31.png",title:"",uidatas:"",formatTimeid:"",messageText:"",appVersion:"",appLanguage:"zh-Hans",range:[{value:"zh-Hans",text:"中文"},{value:"en",text:"English"}]}),created(){},mounted(){this.appLanguage=uni.getStorageSync("userLanguage")||"zh-Hans"},computed:{...Fn(["formattedTime","status","selectorid","selectorindex"]),...Fn({uidatasdata:e=>e.uidatasdata})},onLoad(){uni.getSystemInfo({success:e=>{t("log","at pages/index/index.vue:240",e),this.appVersion=e.appWgtVersion},fail:e=>{t("error","at pages/index/index.vue:244","获取系统信息失败:",e)}})},beforeUnmount(){clearInterval(this.uidatas)},methods:{changeLanguage(e){t("log","at pages/index/index.vue:254",e),this.$i18n.locale=e,uni.setStorageSync("userLanguage",e)},onclick(e){this.pattern(e)},pattern(e){on({id:"4d86b3fc-f5be-448c-bdc8-2cd8db4d4e29",issaveinitvalue:!0,value:e+""}).then((a=>{if(t("log","at pages/index/index.vue:268",a),"ok"!=a.status)return this.messageText="选择模式失败请重新选择",void this.$refs.message.open();3==e?uni.redirectTo({url:"/pages/home/index"}):2==e?uni.redirectTo({url:"/pages/electricity/index"}):4==e?uni.redirectTo({url:"/pages/supply/supply"}):1==e&&uni.redirectTo({url:"/pages/supplyss/supplyss"})}))},onget(e){3==e?uni.redirectTo({url:"/pages/home/index"}):2==e?uni.redirectTo({url:"/pages/electricity/index"}):4==e?uni.redirectTo({url:"/pages/supply/supply"}):1==e&&uni.redirectTo({url:"/pages/supplyss/supplyss"})},system(){uni.redirectTo({url:"/pages/faultlist/index"})}}};const Jn=s(Kn,[["render",function(t,n,s,r,i,c){const l=a(e.resolveDynamicComponent("uni-popup-message"),o),u=a(e.resolveDynamicComponent("uni-popup"),d),p=a(e.resolveDynamicComponent("uni-data-select"),sn);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:i.logo,mode:"aspectFit"},null,8,["src"]),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"},e.toDisplayString(t.formattedTime),1),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(e.toDisplayString(t.$t("status"))+" ",1),"ok"==t.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state"},e.toDisplayString(t.$t("online")),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state1"},e.toDisplayString(t.$t("offline")),1))])])])]),e.createElementVNode("view",{class:"tap"},[e.createElementVNode("view",{class:"tap_1"}," AC "),e.createElementVNode("view",{class:"tap_2"}," DC "),e.createElementVNode("view",{class:"tap_3"}," SYS ")]),"ok"==t.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"power"},[3!=t.selectorid&&1==t.selectorindex?(e.openBlock(),e.createElementBlock("view",{key:0},[e.createElementVNode("view",{class:"power_1"},[e.createElementVNode("view",{class:"power_bj"},[e.createElementVNode("image",{src:Un,mode:""})]),e.createElementVNode("view",{class:"power_title"},e.toDisplayString(t.$t("CommunicationRecharge")),1)])])):(e.openBlock(),e.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=e=>c.onclick(3))},[e.createElementVNode("view",{class:"power_1"},[e.createElementVNode("view",{class:"power_bright"},[e.createElementVNode("image",{src:Un,mode:""})]),e.createElementVNode("view",{class:"power_title_bright"},e.toDisplayString(t.$t("CommunicationRecharge")),1)])])),2!=t.selectorid&&1==t.selectorindex?(e.openBlock(),e.createElementBlock("view",{key:2},[e.createElementVNode("view",{class:"power_1"},[e.createElementVNode("view",{class:"power_bj"},[e.createElementVNode("image",{src:jn,mode:""})]),e.createElementVNode("view",{class:"power_title"},e.toDisplayString(t.$t("CommunicationSupply")),1)])])):(e.openBlock(),e.createElementBlock("view",{key:3,onClick:n[1]||(n[1]=e=>c.onclick(2))},[e.createElementVNode("view",{class:"power_1"},[e.createElementVNode("view",{class:"power_bright"},[e.createElementVNode("image",{src:jn,mode:""})]),e.createElementVNode("view",{class:"power_title_bright"},e.toDisplayString(t.$t("CommunicationSupply")),1)])])),4!=t.selectorid&&1==t.selectorindex?(e.openBlock(),e.createElementBlock("view",{key:4},[e.createElementVNode("view",{class:"power_1"},[e.createElementVNode("view",{class:"power_bj"},[e.createElementVNode("image",{src:qn,mode:""})]),e.createElementVNode("view",{class:"power_title"},e.toDisplayString(t.$t("DirectRecharge")),1)])])):(e.openBlock(),e.createElementBlock("view",{key:5,onClick:n[2]||(n[2]=e=>c.onclick(4))},[e.createElementVNode("view",{class:"power_1"},[e.createElementVNode("view",{class:"power_bright"},[e.createElementVNode("image",{src:qn,mode:""})]),e.createElementVNode("view",{class:"power_title_bright"},e.toDisplayString(t.$t("DirectRecharge")),1)])])),1!=t.selectorid&&1==t.selectorindex?(e.openBlock(),e.createElementBlock("view",{key:6},[e.createElementVNode("view",{class:"power_1"},[e.createElementVNode("view",{class:"power_bj"},[e.createElementVNode("image",{src:Wn,mode:""})]),e.createElementVNode("view",{class:"power_title"},e.toDisplayString(t.$t("DirectSupply")),1)])])):(e.openBlock(),e.createElementBlock("view",{key:7,onClick:n[3]||(n[3]=e=>c.onclick(1))},[e.createElementVNode("view",{class:"power_1"},[e.createElementVNode("view",{class:"power_bright"},[e.createElementVNode("image",{src:Wn,mode:""})]),e.createElementVNode("view",{class:"power_title_bright"},e.toDisplayString(t.$t("DirectSupply")),1)])])),e.createElementVNode("view",{class:"power_5",onClick:n[4]||(n[4]=(...e)=>c.system&&c.system(...e))},[e.createElementVNode("view",{class:"power_bj"},[e.createElementVNode("image",{src:Hn,mode:""})]),e.createElementVNode("view",{class:"power_title"},e.toDisplayString(t.$t("SystemInformation")),1)])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"power"},[e.createElementVNode("view",null,[e.createElementVNode("view",{class:"power_1"},[e.createElementVNode("view",{class:"power_bj"},[e.createElementVNode("image",{src:Un,mode:""})]),e.createElementVNode("view",{class:"power_title"},e.toDisplayString(t.$t("CommunicationRecharge")),1)])]),e.createElementVNode("view",null,[e.createElementVNode("view",{class:"power_1"},[e.createElementVNode("view",{class:"power_bj"},[e.createElementVNode("image",{src:jn,mode:""})]),e.createElementVNode("view",{class:"power_title"},e.toDisplayString(t.$t("CommunicationSupply")),1)])]),e.createElementVNode("view",null,[e.createElementVNode("view",{class:"power_1"},[e.createElementVNode("view",{class:"power_bj"},[e.createElementVNode("image",{src:qn,mode:""})]),e.createElementVNode("view",{class:"power_title"},e.toDisplayString(t.$t("DirectRecharge")),1)])]),e.createElementVNode("view",null,[e.createElementVNode("view",{class:"power_1"},[e.createElementVNode("view",{class:"power_bj"},[e.createElementVNode("image",{src:Wn,mode:""})]),e.createElementVNode("view",{class:"power_title"},e.toDisplayString(t.$t("DirectSupply")),1)])]),e.createElementVNode("view",{class:"power_5",onClick:n[5]||(n[5]=(...e)=>c.system&&c.system(...e))},[e.createElementVNode("view",{class:"power_bj"},[e.createElementVNode("image",{src:Hn,mode:""})]),e.createElementVNode("view",{class:"power_title"},e.toDisplayString(t.$t("SystemInformation")),1)])])),1==t.selectorindex?(e.openBlock(),e.createElementBlock("view",{key:2,class:"power_6"},[e.createElementVNode("image",{src:"/static/!.png",mode:""}),e.createTextVNode(e.toDisplayString(t.$t("Tipswarning")),1)])):e.createCommentVNode("",!0),e.createVNode(u,{ref:"message",type:"message"},{default:e.withCtx((()=>[e.createVNode(l,{type:"error",message:i.messageText,duration:2500},null,8,["message"])])),_:1},512),e.createElementVNode("view",{class:"switch-container"},[e.createVNode(p,{modelValue:i.appLanguage,"onUpdate:modelValue":n[6]||(n[6]=e=>i.appLanguage=e),localdata:i.range,clear:!1,onChange:c.changeLanguage},null,8,["modelValue","localdata","onChange"])]),e.createElementVNode("view",{class:"appVersioncss"},e.toDisplayString(t.$t("version"))+e.toDisplayString(i.appVersion),1)])}],["__scopeId","data-v-f609ccdc"]]);const Gn=s({name:"cmd-progress",props:{type:{validator:e=>["line","circle","dashboard"].includes(e),default:"line"},percent:{type:Number,default:0},successPercent:{type:Number,default:0},showInfo:{type:Boolean,default:!0},status:{validator:e=>["normal","success","exception","active"].includes(e),default:"normal"},strokeWidth:{type:Number,default:6},strokeColor:{type:String,default:""},strokeShape:{validator:e=>["round","square"].includes(e),default:"round"},width:{type:Number,default:80},gapDegree:{type:Number,default:120},gapPosition:{validator:e=>["top","bottom","left","right"].includes(e),default:"top"}},computed:{setFormat(){return`${this.setProgress}%`},setProgress(){let e=this.percent;return!this.percent||this.percent<0?e=0:this.percent>=100&&(e=100),e},setCircleStyle(){return`width: ${this.width}px;\n\t\t\t\theight: ${this.width}px;\n\t\t\t\tfontSize: ${.15*this.width+6}px;`},setCircleTrailStyle(){const e=50-this.strokeWidth/2,t=2*Math.PI*e,a=this.gapDegree||"dashboard"===this.type&&75;return`stroke-dasharray: ${t-(a||0)}px, ${t}px;\n\t\t\t\tstroke-dashoffset: -${(a||0)/2}px;\n\t\t\t\ttransition: stroke-dashoffset 0.3s ease 0s, stroke-dasharray 0.3s ease 0s, stroke 0.3s;`},setCirclePathStyle(){const e=50-this.strokeWidth/2,t=2*Math.PI*e,a=this.gapDegree||"dashboard"===this.type&&75;return`stroke: ${this.strokeColor};\n\t\t\t\tstroke-dasharray: ${this.setProgress/100*(t-(a||0))}px, ${t}px;\n\t\t\t\tstroke-dashoffset: -${(a||0)/2}px;\n\t\t\t\ttransition: stroke-dashoffset 0.3s ease 0s, stroke-dasharray 0.3s ease 0s, stroke 0.3s, stroke-width 0.06s ease 0.3s;`},setCirclePath(){const e=50-this.strokeWidth/2;let t=0,a=-e,n=0,s=-2*e;switch(("dashboard"===this.type?"bottom":this.gapPosition)||"top"){case"left":t=-e,a=0,n=2*e,s=0;break;case"right":t=e,a=0,n=-2*e,s=0;break;case"bottom":a=e,s=2*e}return`M 50,50 m ${t},${a} a ${e},${e} 0 1 1 ${n},${-s} a ${e},${e} 0 1 1 ${-n},${s}`},setCircle(){const e=50-this.strokeWidth/2,t=2*Math.PI*e,a=this.gapDegree||"dashboard"===this.type&&75;let n="#108ee9";return"exception"==this.status&&(n="#f5222d"),("success"==this.status||this.setProgress>=100||this.strokeColor)&&(n=this.strokeColor||"#52c41a"),`background-image: url("${`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' class='cmd-progress-circle'%3E%3Cpath d='${this.setCirclePath}' stroke='%23f3f3f3' stroke-linecap='${this.strokeShape}' stroke-width='${this.strokeWidth}' fill-opacity='0' class='cmd-progress-circle-trail' style='stroke-dasharray: ${t-(a||0)}px, ${t}px;stroke-dashoffset: -${(a||0)/2}px;transition: stroke-dashoffset 0.3s ease 0s, stroke-dasharray 0.3s ease 0s, stroke 0.3s;'%3E%3C/path%3E%3Cpath d='${this.setCirclePath}' stroke-linecap='${this.strokeShape}' stroke-width='${this.strokeWidth}' fill-opacity='0' class='cmd-progress-circle-path' style='stroke: ${escape(n)};stroke-dasharray: ${this.setProgress/100*(t-(a||0))}px, ${t}px;stroke-dashoffset: -${(a||0)/2}px;transition: stroke-dashoffset 0.3s ease 0s, stroke-dasharray 0.3s ease 0s, stroke 0.3s, stroke-width 0.06s ease 0.3s;'%3E%3C/path%3E%3C/svg%3E`}");\n\t\t\t\tbackground-size: cover;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\t${this.setCircleStyle}`},setCircleIcon(){let e="#108ee9",t="";return"exception"==this.status&&(e="#f5222d",t=`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='64 64 896 896' data-icon='close' width='1em' height='1em' fill='${escape(e)}' aria-hidden='true'%3E %3Cpath d='M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 0 0 203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z'%3E%3C/path%3E %3C/svg%3E`),("success"==this.status||this.setProgress>=100)&&(e=this.strokeColor||"#52c41a",t=`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='64 64 896 896' data-icon='check' width='1em' height='1em' fill='${escape(e)}' aria-hidden='true'%3E %3Cpath d='M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z'%3E%3C/path%3E %3C/svg%3E`),`background-image: url("${t}");\n\t\t\t\tbackground-size: cover;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\twidth: 1em;\n\t\t\t\theight: 1em;`},setLineStyle(){return`width: ${this.setProgress}%;\n\t\t\t\theight: ${this.strokeWidth}px;\n\t\t\t\tbackground: ${this.strokeColor};\n\t\t\t\tborder-radius: ${"square"===this.strokeShape?0:"100px"};`},setLineSuccessStyle(){let e=this.successPercent;return!this.successPercent||this.successPercent<0||this.setProgress=100&&(e=100),`width: ${e}%;\n\t\t\t\theight: ${this.strokeWidth}px;\n\t\t\t\tborder-radius: ${"square"===this.strokeShape?0:"100px"};`},setLineStatusIcon(){let e="#108ee9",t="";return"exception"==this.status&&(e="#f5222d",t=`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='64 64 896 896' data-icon='close-circle' width='1em' height='1em' fill='${escape(e)}' aria-hidden='true'%3E %3Cpath d='M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z'%3E%3C/path%3E %3C/svg%3E`),("success"==this.status||this.setProgress>=100)&&(e=this.strokeColor||"#52c41a",t=`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='64 64 896 896' data-icon='check-circle' width='1em' height='1em' fill='${escape(e)}' aria-hidden='true'%3E %3Cpath d='M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 0 1-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z'%3E%3C/path%3E %3C/svg%3E`),`background-image: url("${t}");\n\t\t\t\tbackground-size: cover;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\twidth: 1em;\n\t\t\t\theight: 1em;`},setStatusClass(){let e=[];return"exception"==this.status&&e.push("cmd-progress-status-exception"),("success"==this.status||this.setProgress>=100)&&e.push("cmd-progress-status-success"),"active"==this.status&&e.push("cmd-progress-status-active"),this.showInfo&&e.push("cmd-progress-show-info"),"line"===this.type&&e.push("cmd-progress-line"),"circle"!==this.type&&"dashboard"!==this.type||e.push("cmd-progress-circle"),e.push("cmd-progress-status-normal"),e}}},[["render",function(t,a,n,s,o,r){return e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(["cmd-progress cmd-progress-default",r.setStatusClass])},["circle"==n.type||"dashboard"==n.type?(e.openBlock(),e.createElementBlock("view",{key:0,class:e.normalizeClass(["cmd-progress cmd-progress-default",r.setStatusClass])},[e.createElementVNode("view",{class:"cmd-progress-inner",style:e.normalizeStyle(r.setCircleStyle)},[e.createElementVNode("text",{style:e.normalizeStyle(r.setCircle)},null,4),n.showInfo?(e.openBlock(),e.createElementBlock("text",{key:0,class:"cmd-progress-text",title:r.setFormat},["success"!=n.status&&"exception"!=n.status&&r.setProgress<100?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(r.setFormat),1)],64)):e.createCommentVNode("",!0),"exception"==n.status||"success"==n.status||100==r.setProgress?(e.openBlock(),e.createElementBlock("text",{key:1,style:e.normalizeStyle(r.setCircleIcon)},null,4)):e.createCommentVNode("",!0)],8,["title"])):e.createCommentVNode("",!0)],4)],2)):e.createCommentVNode("",!0),"line"==n.type?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("view",{class:"cmd-progress-outer"},[e.createElementVNode("view",{class:"cmd-progress-inner",style:e.normalizeStyle({"border-radius":"square"==n.strokeShape?0:"100px"})},[e.createElementVNode("view",{class:"cmd-progress-bg",style:e.normalizeStyle(r.setLineStyle)},null,4),n.successPercent?(e.openBlock(),e.createElementBlock("view",{key:0,class:"cmd-progress-success-bg",style:e.normalizeStyle(r.setLineSuccessStyle)},null,4)):e.createCommentVNode("",!0)],4)]),n.showInfo?(e.openBlock(),e.createElementBlock("text",{key:0,class:"cmd-progress-text",title:r.setFormat},["success"!=n.status&&"exception"!=n.status&&r.setProgress<100?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(r.setFormat),1)],64)):e.createCommentVNode("",!0),"exception"==n.status||"success"==n.status||100==r.setProgress?(e.openBlock(),e.createElementBlock("text",{key:1,style:e.normalizeStyle(r.setLineStatusIcon)},null,4)):e.createCommentVNode("",!0)],8,["title"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)}],["__scopeId","data-v-c4e70c1f"]]),Yn=["{","}"];const Qn=/^(?:\d)+/,Xn=/^(?:\w)+/;const Zn="zh-Hans",es="zh-Hant",ts="en",as=Object.prototype.hasOwnProperty,ns=(e,t)=>as.call(e,t),ss=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,a=Yn){if(!t)return[e];let n=this._caches[e];return n||(n=function(e,[t,a]){const n=[];let s=0,o="";for(;s-1?Zn:e.indexOf("-hant")>-1?es:(a=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==a.indexOf(e)))?es:Zn);var a;let n=[ts,"fr","es"];t&&Object.keys(t).length>0&&(n=Object.keys(t));const s=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,n);return s||void 0}class rs{constructor({locale:e,fallbackLocale:t,messages:a,watcher:n,formater:s}){this.locale=ts,this.fallbackLocale=ts,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=s||ss,this.messages=a||{},this.setLocale(e||ts),n&&this.watchLocale(n)}setLocale(e){const t=this.locale;this.locale=os(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,a=!0){const n=this.messages[e];n?a?Object.assign(n,t):Object.keys(t).forEach((e=>{ns(n,e)||(n[e]=t[e])})):this.messages[e]=t}f(e,t,a){return this.formater.interpolate(e,t,a).join("")}t(e,t,a){let n=this.message;return"string"==typeof t?(t=os(t,this.messages))&&(n=this.messages[t]):a=t,ns(n,e)?this.formater.interpolate(n[e],a).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function is(e,t={},a,n){if("string"!=typeof e){const a=[t,e];e=a[0],t=a[1]}"string"!=typeof e&&(e="undefined"!=typeof uni&&uni.getLocale?uni.getLocale():"undefined"!=typeof global&&global.getLocale?global.getLocale():ts),"string"!=typeof a&&(a="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||ts);const s=new rs({locale:e,fallbackLocale:a,messages:t,watcher:n});let o=(e,t)=>{if("function"!=typeof getApp)o=function(e,t){return s.t(e,t)};else{let e=!1;o=function(t,a){const n=getApp().$vm;return n&&(n.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(n,s))),s.t(t,a)}}return o(e,t)};return{i18n:s,f:(e,t,a)=>s.f(e,t,a),t:(e,t)=>o(e,t),add:(e,t,a=!0)=>s.add(e,t,a),watch:e=>s.watchLocale(e),getLocale:()=>s.getLocale(),setLocale:e=>s.setLocale(e)}}const cs={en:{"uni-popup.cancel":"cancel","uni-popup.ok":"ok","uni-popup.placeholder":"pleace enter","uni-popup.title":"Hint","uni-popup.shareTitle":"Share to"},"zh-Hans":{"uni-popup.cancel":"取消","uni-popup.ok":"确定","uni-popup.placeholder":"请输入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"},"zh-Hant":{"uni-popup.cancel":"取消","uni-popup.ok":"確定","uni-popup.placeholder":"請輸入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"}},{t:ls}=is(cs);const us=s({name:"uniPopupDialog",mixins:[n],emits:["confirm","close","update:modelValue","input"],props:{inputType:{type:String,default:"text"},showClose:{type:Boolean,default:!0},modelValue:{type:[Number,String],default:""},placeholder:{type:[String,Number],default:""},type:{type:String,default:"error"},mode:{type:String,default:"base"},title:{type:String,default:""},content:{type:String,default:""},beforeClose:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""},maxlength:{type:Number,default:-1},focus:{type:Boolean,default:!0}},data:()=>({dialogType:"error",val:""}),computed:{okText(){return this.confirmText||ls("uni-popup.ok")},closeText(){return this.cancelText||ls("uni-popup.cancel")},placeholderText(){return this.placeholder||ls("uni-popup.placeholder")},titleText(){return this.title||ls("uni-popup.title")}},watch:{type(e){this.dialogType=e},mode(e){"input"===e&&(this.dialogType="info")},value(e){-1!=this.maxlength&&"input"===this.mode?this.val=e.slice(0,this.maxlength):this.val=e},val(e){this.$emit("update:modelValue",e)}},created(){this.popup.disableMask(),"input"===this.mode?(this.dialogType="info",this.val=this.value,this.val=this.modelValue):this.dialogType=this.type},methods:{onOk(){"input"===this.mode?this.$emit("confirm",this.val):this.$emit("confirm"),this.beforeClose||this.popup.close()},closeDialog(){this.$emit("close"),this.beforeClose||this.popup.close()},close(){this.popup.close()}}},[["render",function(t,a,n,s,o,r){return e.openBlock(),e.createElementBlock("view",{class:"uni-popup-dialog"},[e.createElementVNode("view",{class:"uni-dialog-title"},[e.createElementVNode("text",{class:e.normalizeClass(["uni-dialog-title-text",["uni-popup__"+o.dialogType]])},e.toDisplayString(r.titleText),3)]),"base"===n.mode?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-dialog-content"},[e.renderSlot(t.$slots,"default",{},(()=>[e.createElementVNode("text",{class:"uni-dialog-content-text"},e.toDisplayString(n.content),1)]),!0)])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"uni-dialog-content"},[e.renderSlot(t.$slots,"default",{},(()=>[e.withDirectives(e.createElementVNode("input",{class:"uni-dialog-input",maxlength:n.maxlength,"onUpdate:modelValue":a[0]||(a[0]=e=>o.val=e),type:n.inputType,placeholder:r.placeholderText,focus:n.focus},null,8,["maxlength","type","placeholder","focus"]),[[e.vModelDynamic,o.val]])]),!0)])),e.createElementVNode("view",{class:"uni-dialog-button-group"},[n.showClose?(e.openBlock(),e.createElementBlock("view",{key:0,class:"uni-dialog-button",onClick:a[1]||(a[1]=(...e)=>r.closeDialog&&r.closeDialog(...e))},[e.createElementVNode("text",{class:"uni-dialog-button-text"},e.toDisplayString(r.closeText),1)])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["uni-dialog-button",n.showClose?"uni-border-left":""]),onClick:a[2]||(a[2]=(...e)=>r.onOk&&r.onOk(...e))},[e.createElementVNode("text",{class:"uni-dialog-button-text uni-button-color"},e.toDisplayString(r.okText),1)],2)])])}],["__scopeId","data-v-2a78dc39"]]),ps="/static/dian2.png",ds="/static/che.png",ms="/static/SOC.png",hs="/static/Battery.png",gs="/static/setup.png",fs="/static/home.png",_s="/static/home1.png",ys={components:{cmdProgress:Gn},data:()=>({logo:"../../static/logo/logo31.png",successtype:"success",confirmText:"确认启动",title:"你确定要开启该设备吗?",content:"启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",value:"",modeinput:"",segmented:1,uidatas:"",formatTimeid:"",faultsdata:[],SysFaultState:!0,currentDate:"",ACcurrentoutputchoice:0}),onLoad(){this.confirmText=this.$t("ConfirmStart"),this.title=this.$t("popUpTitle"),this.content=this.$t("popUpContent")},computed:{...Fn(["formattedTime","status"]),...Fn({uidatasdata:e=>e.uidatasdata})},mounted(){},beforeUnmount(){this.scrollInterval&&clearInterval(this.scrollInterval)},watch:{uidatasdata:{handler(e,a){t("log","at pages/home/index.vue:739","uidatasdata 发生变化:",e),1==e.SysState_SysFaultState&&this.SysFaultState?(this.SysFaultState=!1,setTimeout((()=>{this.onfaultsdata()}),1e3)):0==e.SysState_SysFaultState&&(this.SysFaultState=!0)},deep:!0}},methods:{handleDataChange(e){t("log","at pages/home/index.vue:759","数据变化处理:",e)},onfaultsdata(){rn({page:1,rows:10,device:"",starttime:"",endtime:"",rt:1,type:"故障"}).then((e=>{if(t("log","at pages/home/index.vue:773",e),"ok"==e.status){this.faultsdata=[];for(var a=0;a{t("log","at pages/home/index.vue:827",e),"ok"==e.status?(this.ACcurrentoutputchoice=0,this.$refs.alertDialog1.close(),uni.showToast({title:this.$t("OperationSuccessful"),icon:"none",duration:2e3})):(this.ACcurrentoutputchoice=0,this.$refs.alertDialog1.close(),uni.showToast({title:this.$t("operationFailed"),icon:"none",duration:2e3}))}))},onpower(){this.$refs.alertDialog1.open()},dialogConfirm(){if(t("log","at pages/home/index.vue:894",this.content),t("log","at pages/home/index.vue:895",this.$t("popUpContent")),this.content==this.$t("popUpContent")&&this.title!=this.$t("ACinputpowergiven")){on({id:"64808c7a-c2ce-4d14-99c1-e426f5d0548a",issaveinitvalue:!1,value:"1"}).then((e=>{t("log","at pages/home/index.vue:905",e),"ok"==e.status?(this.$refs.alertDialog.close(),uni.showToast({title:this.$t("OperationSuccessful"),icon:"none",duration:2e3}),this.ACcurrentoutputchoice="0",onunipopup()):(this.$refs.alertDialog.close(),uni.showToast({title:this.$t("operationFailed"),icon:"none",duration:2e3}))}))}else{let e={id:"741b775f-2783-4e89-9f39-f7c1eef0d3fa",issaveinitvalue:!1,value:"0"};t("log","at pages/home/index.vue:934",e),on(e).then((e=>{if(t("log","at pages/home/index.vue:936",e),"ok"==e.status){on({id:"64808c7a-c2ce-4d14-99c1-e426f5d0548a",issaveinitvalue:!1,value:"0"}).then((e=>{t("log","at pages/home/index.vue:944",e),"ok"==e.status?(this.$refs.alertDialog.close(),uni.showToast({title:this.$t("OperationSuccessful"),icon:"none",duration:2e3})):(this.$refs.alertDialog.close(),uni.showToast({title:this.$t("operationFailed"),icon:"none",duration:2e3}))}))}else this.$refs.alertDialog.close(),uni.showToast({title:this.$t("operationFailed"),icon:"none",duration:2e3})}))}},dialogClose(){this.$refs.alertDialog.close(),this.title==this.$t("ACinputpowergiven")&&plus.navigator.hideSystemNavigation()},ontap(e){t("log","at pages/home/index.vue:998",e),this.segmented=e},clickACcurrentoutput(e){this.ACcurrentoutputchoice=e}}};const vs=s(ys,[["render",function(t,n,s,r,i,c){const l=a(e.resolveDynamicComponent("cmd-progress"),Gn),u=a(e.resolveDynamicComponent("uni-popup-dialog"),us),p=a(e.resolveDynamicComponent("uni-popup"),d),m=a(e.resolveDynamicComponent("uni-popup-message"),o);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:i.logo,mode:"aspectFit"},null,8,["src"]),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"},e.toDisplayString(t.formattedTime),1),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(e.toDisplayString(t.$t("status"))+" ",1),"ok"==t.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state"},e.toDisplayString(t.$t("online")),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state1"},e.toDisplayString(t.$t("offline")),1))])])])]),e.createElementVNode("view",{class:"parameter"},[e.createElementVNode("view",{class:"parameter_left"},[e.createElementVNode("view",{class:"parameter_left1"},[e.createElementVNode("view",{style:{display:"flex","justify-content":"center",position:"relative"}},[e.createVNode(l,{type:"dashboard",percent:t.uidatasdata.SOC??0,"stroke-color":"#63D463FF","stroke-width":6,width:180,"stroke-shape":"square",showInfo:!1},null,8,["percent"]),e.createElementVNode("view",{style:{position:"absolute","text-align":"center",top:"20%"}},[e.createElementVNode("view",{style:{"font-size":"72rpx","font-weight":"bold"}},[e.createTextVNode(e.toDisplayString(t.uidatasdata.SOC??0)+" ",1),e.createElementVNode("text",{style:{"font-size":"32rpx"}},"%")]),e.createElementVNode("view",{style:{"font-size":"32rpx","margin-top":"6px"}},"SOC")]),e.createElementVNode("view",{style:{position:"absolute",top:"70%"}},[e.createElementVNode("view",{style:{width:"190px",display:"flex","justify-content":"space-between"}},[e.createElementVNode("view",{style:{"font-size":"32rpx","margin-left":"10px"}},"0"),e.createElementVNode("view",{style:{"font-size":"32rpx"}},"100%")])])])]),e.createElementVNode("image",{class:"parameter_leftdian1",src:"/static/dian1.png",alt:"aspectFit"}),e.createElementVNode("view",{class:"parameter_lef2"},[e.createElementVNode("image",{src:ps,mode:""})]),e.createElementVNode("image",{class:"parameter_leftche",src:ds,mode:"aspectFit"}),e.createElementVNode("view",{class:"parameter_leftview"},e.toDisplayString(t.$t("CommunicationRechargeInput")),1)]),e.createElementVNode("view",{class:"parameter_right"},[e.createElementVNode("view",{class:"parameter_righttop"},[e.createElementVNode("view",{class:"parameter_1"},[e.createElementVNode("view",{class:"parameter_SOC"},[e.createElementVNode("image",{src:ms,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," SOC "),e.createElementVNode("view",null,[e.createElementVNode("text",{class:"parameter_SOCright2"},e.toDisplayString(t.uidatasdata.SOC??"—"),1),e.createTextVNode(),e.createElementVNode("text",null,"%")])])]),e.createElementVNode("view",{class:"parameter_Battery"},[e.createElementVNode("image",{src:hs,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"},e.toDisplayString(t.$t("BatteryStatus")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[5==t.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("fault")),1)):1==t.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("NotupyetVoltage")),1)):3==t.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("voltagehasbeen")),1)):(e.openBlock(),e.createElementBlock("view",{key:3}," — "))])])]),e.createElementVNode("view",{class:"parameter_state"},[e.createElementVNode("image",{src:gs,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"},e.toDisplayString(t.$t("SystemStatus")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("uncharged")),1)):1==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("Chargingprogress")),1)):2==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("Chargingmalfunction")),1)):3==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:3},e.toDisplayString(t.$t("full")),1)):(e.openBlock(),e.createElementBlock("view",{key:4}," — "))])])])])]),e.createElementVNode("view",{class:"parameter_tap"},[e.createElementVNode("view",{class:e.normalizeClass(1==i.segmented?"parameter_tap1":"parameter_tap2"),onClick:n[0]||(n[0]=e=>c.ontap(1))},e.toDisplayString(t.$t("exchangeinformation")),3),e.createElementVNode("view",{class:e.normalizeClass(2==i.segmented?"parameter_tap1":"parameter_tap2"),onClick:n[1]||(n[1]=e=>c.ontap(2))},e.toDisplayString(t.$t("Batteryinformation")),3),e.createElementVNode("view",{class:e.normalizeClass(3==i.segmented?"parameter_tap1":"parameter_tap2"),onClick:n[2]||(n[2]=e=>c.ontap(3))},e.toDisplayString(t.$t("statisticalinformation")),3),e.createElementVNode("view",{class:e.normalizeClass(4==i.segmented?"parameter_tap1":"parameter_tap2"),onClick:n[3]||(n[3]=e=>c.ontap(4))},e.toDisplayString(t.$t("coolinginformation")),3)]),e.createElementVNode("view",{class:"parameter_zheng",key:"index"},[1==i.segmented?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("PhaseVoltageAV")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.PCSPortAPhaseVoltage??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("PhaseVoltageBV")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.PCSPortBPhaseVoltage??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("PhaseVoltageCV")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.PCSPortCPhaseVoltage??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("Supplementarypower")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.PCSTotalOutputPower??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("PhaseVoltageAA")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata["PCSOutputA-phaseCurrent"]??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("PhaseVoltageBA")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata["PCSOutputB-phaseCurrent"]??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("PhaseVoltageCA")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata["PCSOutputC-phaseCurrent"]??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11",style:{height:"30px"}},[e.createElementVNode("view",{class:"parameter_zheng12"})])])])):e.createCommentVNode("",!0),2==i.segmented?(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("TotalPressure")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.BatSysSt2_BatSumVInt??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("AllowChargingPower")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.DchChgCurPowLimit_MaxChargePowerLimit??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("MaximumVoltage")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.BatCellVPeak_ValMaxCellVoltage??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("MaximumTemperature")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.CellTemperatureLimitsStatus_MaxTemp??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("BatteryCurrent")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.BatSysSt2_BatCur??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("AllowChargingCurrent")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.ChargingInformation_Chg_Max_Cur??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("MinimumIndividualVoltage")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.BatCellVPeak_ValMinCellVoltage??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("MinimumMonomerTemperature")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.CellTemperatureLimitsStatus_MinTemp??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])])])])):e.createCommentVNode("",!0),3==i.segmented?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng10"},[e.createElementVNode("view",{class:"parameter_zhengbox parameter_zheng101"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("InputCapacity")),1),e.createElementVNode("view",{class:"parameter_zhengbox13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.CommunicationElectricity??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kWh"),e.createTextVNode(),e.createElementVNode("text")])]),e.createElementVNode("view",{class:"parameter_zhengbox parameter_zheng101"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("AccumulateInput")),1),e.createElementVNode("view",{class:"parameter_zhengbox13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.PCSACChargeEnergy??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kWh"),e.createTextVNode(),e.createElementVNode("text")])])])])):e.createCommentVNode("",!0),4==i.segmented?(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("WorkingMode")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("OffMode")),1)):1==t.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("CoolingMode")),1)):2==t.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("HeatingMode")),1)):3==t.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:3},e.toDisplayString(t.$t("CirculatingMode")),1)):(e.openBlock(),e.createElementBlock("view",{key:4}," — "))])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("OutletTemperature")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12",style:{height:"30px"}})])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("HighVoltageRelayStatus")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("DisconnectedState")),1)):1==t.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("ClosedState")),1)):(e.openBlock(),e.createElementBlock("view",{key:2}," — "))])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("waterTemperature")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.TMS_Status_TMS_WATERIN_TEMP??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12",style:{height:"30px"}})])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"parameter_zheng3"},[0==t.uidatasdata.SysControl_RunCmd?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_zheng31111",onClick:n[4]||(n[4]=(...e)=>c.dialogToggle&&c.dialogToggle(...e))},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32"},e.toDisplayString(t.$t("open")),1)])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_zheng31111"},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"},e.toDisplayString(t.$t("open")),1)])])),1==t.uidatasdata.SysControl_RunCmd?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_zheng31111",onClick:n[5]||(n[5]=(...e)=>c.onstopit&&c.onstopit(...e))},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng33"},e.toDisplayString(t.$t("stopIt")),1)])])):(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_zheng31111"},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"},e.toDisplayString(t.$t("stopIt")),1)])])),e.createElementVNode("view",{class:"parameter_zheng31111"},[1==t.uidatasdata.SysControl_RunCmd?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_zheng31",onClick:n[6]||(n[6]=(...e)=>c.onpower&&c.onpower(...e))},["功率"==t.$t("power")?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_zheng34"},[e.createElementVNode("view",null,e.toDisplayString(t.$t("power")),1),e.createElementVNode("view",null,e.toDisplayString(t.$t("given")),1)])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_zheng34"},[e.createElementVNode("view",null,e.toDisplayString(t.$t("power"))+" "+e.toDisplayString(t.$t("given")),1)]))])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_zheng31"},["功率"==t.$t("power")?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_zheng34ccc"},[e.createElementVNode("view",null,e.toDisplayString(t.$t("power")),1),e.createElementVNode("view",null,e.toDisplayString(t.$t("given")),1)])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_zheng34ccc"},[e.createElementVNode("view",null,e.toDisplayString(t.$t("power"))+" "+e.toDisplayString(t.$t("given")),1)]))]))])])]),e.createElementVNode("view",{class:"parameter_home"},[e.createElementVNode("view",{class:"parameter_home1",onClick:n[7]||(n[7]=(...e)=>c.onreturn&&c.onreturn(...e))},[e.createElementVNode("image",{src:fs,mode:""}),e.createElementVNode("text",{class:"parameter_hometext"},e.toDisplayString(t.$t("ReturnModeSelection")),1)]),i.faultsdata.length>0&&!i.SysFaultState?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_home2"},[e.createElementVNode("image",{src:_s,mode:""}),e.createElementVNode("swiper",{class:"swiper",circular:"",autoplay:!0,interval:2e3,duration:500,vertical:!0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.faultsdata,((t,a)=>(e.openBlock(),e.createElementBlock("swiper-item",{key:a},[e.createElementVNode("view",{class:"parameter_home3"},e.toDisplayString(t.CONTENT),1)])))),128))])])):e.createCommentVNode("",!0)])])]),e.createVNode(p,{ref:"alertDialog"},{default:e.withCtx((()=>[e.createVNode(u,{mode:i.modeinput,placeholder:t.$t("powergiven")+"(0~80kW)",modelValue:i.value,"onUpdate:modelValue":n[8]||(n[8]=e=>i.value=e),focus:!1,type:i.successtype,cancelText:t.$t("CancelReturn"),confirmText:i.confirmText,beforeClose:!0,title:i.title,content:i.content,onConfirm:c.dialogConfirm,onClose:c.dialogClose},null,8,["mode","placeholder","modelValue","type","cancelText","confirmText","title","content","onConfirm","onClose"])])),_:1},512),e.createVNode(p,{ref:"alertDialog1"},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"unipopup"},[e.createElementVNode("view",{class:"unipopup1"},[e.createElementVNode("view"),e.createElementVNode("image",{onClick:n[9]||(n[9]=(...e)=>c.unipopupclose&&c.unipopupclose(...e)),class:"unipopup1image",src:"/static/Icons2X.png",mode:""})]),e.createElementVNode("view",{class:"unipopup2"},[e.createElementVNode("image",{class:"unipopup2image1",src:"/static/ACin.png",mode:""}),e.createElementVNode("view",{class:"unipopup21"},[e.createElementVNode("view",{class:"unipopup21image"},[20==i.ACcurrentoutputchoice?(e.openBlock(),e.createElementBlock("image",{key:0,class:"unipopup2image41",src:"/static/20kw1l.png",mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,class:"unipopup2image41",src:"/static/20kw1.png",mode:"",onClick:n[10]||(n[10]=e=>c.clickACcurrentoutput(20))})),40==i.ACcurrentoutputchoice?(e.openBlock(),e.createElementBlock("image",{key:2,class:"unipopup2image4",src:"/static/40kw1l.png",mode:""})):(e.openBlock(),e.createElementBlock("image",{key:3,class:"unipopup2image4",src:"/static/40kw1.png",mode:"",onClick:n[11]||(n[11]=e=>c.clickACcurrentoutput(40))}))])])]),e.createElementVNode("view",{class:"unipopup3"},[e.createElementVNode("view",{class:"unipopup311",onClick:n[12]||(n[12]=(...e)=>c.unipopupclose&&c.unipopupclose(...e))},["../../static/qx.png"==t.$t("qx")?(e.openBlock(),e.createElementBlock("image",{key:0,class:"unipopup31",src:t.$t("qx"),mode:""},null,8,["src"])):(e.openBlock(),e.createElementBlock("image",{key:1,class:"unipopup312",src:t.$t("qx"),mode:""},null,8,["src"]))]),e.createElementVNode("view",{class:"unipopup311",onClick:n[13]||(n[13]=(...e)=>c.onunipopup&&c.onunipopup(...e))},["../../static/qd.png"==t.$t("qd")?(e.openBlock(),e.createElementBlock("image",{key:0,class:"unipopup32",src:t.$t("qd"),mode:""},null,8,["src"])):(e.openBlock(),e.createElementBlock("image",{key:1,class:"unipopup312",src:t.$t("qd"),mode:""},null,8,["src"]))])])])])),_:1},512),e.createVNode(p,{ref:"message",type:"message"},{default:e.withCtx((()=>[e.createVNode(m,{type:"error",message:t.messageText,duration:3e3},null,8,["message"])])),_:1},512)])}],["__scopeId","data-v-69e705d4"]]);const ws=s({props:{visible:Boolean,color:{type:String,default:"#303133"},placement:{type:String,default:"top"},content:{type:String,default:""},show:{type:Boolean,default:!1}},data(){return{isShow:this.visible,title:"Hello",arrowLeft:0,query:null,style:{},arrowStyle:{}}},onLoad(){},watch:{isShow:{handler(e){this.$emit("update:visible",e)},immediate:!0},visible:{handler(e){e&&this.$nextTick((()=>{this.getPosition()})),this.isShow=e},immediate:!0}},mounted(){this.getPosition()},methods:{close(){this.isShow=!1},fixedWrap(){this.isShow=!1},async handleClick(){if(this.isShow)return this.isShow=!1;await this.getPosition(),this.isShow=!0},getPosition(){return new Promise((e=>{uni.createSelectorQuery().in(this).selectAll(".zb_tooltip_content,.zb_tooltip__popper").boundingClientRect((async t=>{let{left:a,bottom:n,right:s,top:o,width:r,height:i}=t[0],c=t[1],l={},u={};switch(this.placement){case"top":c.width>r?l.left=`-${(c.width-r)/2}px`:l.left=Math.abs(c.width-r)/2+"px",l.bottom=`${i+8}px`,u.left=c.width/2-6+"px";break;case"top-start":l.left="0px",l.bottom=`${i+8}px`;break;case"top-end":l.right="0px",l.bottom=`${i+8}px`,u.right="8px";break;case"bottom":c.width>r?l.left=`-${(c.width-r)/2}px`:l.left=Math.abs(c.width-r)/2+"px",l.top=`${i+8}px`,u.left=c.width/2-6+"px";break;case"bottom-start":l.left="0px",l.top=`${i+8}px`,u.left="8px";break;case"bottom-end":l.right="0px",l.top=`${i+8}px`,u.right="8px";break;case"right":l.left=`${r+8}px`,c.height>i?l.top=`-${(c.height-i)/2}px`:l.top=`${Math.abs((c.height-i)/2)}px`,u.top=c.height/2-6+"px";break;case"right-start":l.left=`${r+8}px`,l.top="0px",u.top="8px";break;case"right-end":l.left=`${r+8}px`,l.bottom="0px",u.bottom="8px";break;case"left":l.right=`${r+8}px`,c.height>i?l.top=`-${(c.height-i)/2}px`:l.top=`${Math.abs((c.height-i)/2)}px`,u.top=c.height/2-6+"px";break;case"left-start":l.right=`${r+8}px`,l.top="0px",u.top="8px";break;case"left-end":l.right=`${r+8}px`,l.bottom="0px",u.bottom="8px"}this.style=l,this.arrowStyle=u,e()})).exec()}))}}},[["render",function(t,a,n,s,o,r){return e.openBlock(),e.createElementBlock("view",{class:"zb-tooltip",style:e.normalizeStyle({"--theme-bg-color":n.color})},[e.createElementVNode("view",{class:"zb_tooltip_content",onClick:a[0]||(a[0]=e.withModifiers(((...e)=>r.handleClick&&r.handleClick(...e)),["stop"]))},[e.renderSlot(t.$slots,"default",{},void 0,!0),e.createElementVNode("view",{class:"zb_tooltip__popper",onClick:e.withModifiers((()=>{}),["stop"]),style:e.normalizeStyle([o.style,{visibility:o.isShow?"visible":"hidden",color:"white"===n.color?"":"#fff",boxShadow:"white"===n.color?"0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d":""}])},[e.renderSlot(t.$slots,"content",{},(()=>[e.createTextVNode(e.toDisplayString(n.content),1)]),!0),e.createElementVNode("view",{class:e.normalizeClass(["zb_popper__icon",[{zb_popper__up:0===n.placement.indexOf("bottom"),zb_popper__arrow:0===n.placement.indexOf("top"),zb_popper__right:0===n.placement.indexOf("right"),zb_popper__left:0===n.placement.indexOf("left")}]]),style:e.normalizeStyle([o.arrowStyle])},null,6)],4)])],4)}],["__scopeId","data-v-12d5fccf"]]),Ss={en:{"uni-pagination.prevText":"prev","uni-pagination.nextText":"next","uni-pagination.piecePerPage":"piece/page"},es:{"uni-pagination.prevText":"anterior","uni-pagination.nextText":"prxima","uni-pagination.piecePerPage":"Art��culo/P��gina"},fr:{"uni-pagination.prevText":"précédente","uni-pagination.nextText":"suivante","uni-pagination.piecePerPage":"Articles/Pages"},"zh-Hans":{"uni-pagination.prevText":"上一页","uni-pagination.nextText":"下一页","uni-pagination.piecePerPage":"条/页"},"zh-Hant":{"uni-pagination.prevText":"上一頁","uni-pagination.nextText":"下一頁","uni-pagination.piecePerPage":"條/頁"}},{t:ks}=is(Ss),Es={name:"UniPagination",emits:["update:modelValue","input","change","pageSizeChange"],props:{value:{type:[Number,String],default:1},modelValue:{type:[Number,String],default:1},prevText:{type:String},nextText:{type:String},piecePerPageText:{type:String},current:{type:[Number,String],default:1},total:{type:[Number,String],default:0},pageSize:{type:[Number,String],default:10},showIcon:{type:[Boolean,String],default:!1},showPageSize:{type:[Boolean,String],default:!1},pagerCount:{type:Number,default:5},pageSizeRange:{type:Array,default:()=>[20,50,100,500]}},data:()=>({pageSizeIndex:0,currentIndex:1,paperData:[],pickerShow:!1}),computed:{piecePerPage(){return this.piecePerPageText||ks("uni-pagination.piecePerPage")},prevPageText(){return this.prevText||ks("uni-pagination.prevText")},nextPageText(){return this.nextText||ks("uni-pagination.nextText")},maxPage(){let e=1,t=Number(this.total),a=Number(this.pageSize);return t&&a&&(e=Math.ceil(t/a)),e},paper(){const e=this.currentIndex,t=this.pagerCount,a=this.total,n=this.pageSize;let s=[],o=[],r=Math.ceil(a/n);for(let c=0;c{(t+1)/2>=e?a1&&o.push(a):e+2<=i?a>e-(t+1)/2&&ae-(t+1)/2||r-tt?((t+1)/2>=e?o[o.length-1]="...":e+2<=i?(o[1]="...",o[o.length-1]="..."):o[1]="...",o.push(s[s.length-1])):(t+1)/2>=e||e+2<=i||(o.shift(),o.push(s[s.length-1])),o}},watch:{current:{immediate:!0,handler(e,t){this.currentIndex=e<1?1:e}},value:{immediate:!0,handler(e){1===Number(this.current)&&(this.currentIndex=e<1?1:e)}},pageSizeIndex(e){this.$emit("pageSizeChange",this.pageSizeRange[e])}},methods:{pickerChange(e){this.pageSizeIndex=e.detail.value,this.pickerClick()},pickerClick(){},selectPage(e,t){if(parseInt(e))this.currentIndex=e,this.change("current");else{let e=Math.ceil(this.total/this.pageSize);if(t<=1)return void(this.currentIndex-5>1?this.currentIndex-=5:this.currentIndex=1);if(t>=6)return void(this.currentIndex+5>e?this.currentIndex=e:this.currentIndex+=5)}},clickLeft(){1!==Number(this.currentIndex)&&(this.currentIndex-=1,this.change("prev"))},clickRight(){Number(this.currentIndex)>=this.maxPage||(this.currentIndex+=1,this.change("next"))},change(e){this.$emit("input",this.currentIndex),this.$emit("update:modelValue",this.currentIndex),this.$emit("change",{type:e,current:this.currentIndex})}}};const Ns=s(Es,[["render",function(t,n,s,o,r,i){const c=a(e.resolveDynamicComponent("uni-icons"),an);return e.openBlock(),e.createElementBlock("view",{class:"box"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"uni-pagination"},[!0===s.showPageSize||"true"===s.showPageSize?(e.openBlock(),e.createElementBlock("picker",{key:0,class:"select-picker",mode:"selector",value:r.pageSizeIndex,range:s.pageSizeRange,onChange:n[0]||(n[0]=(...e)=>i.pickerChange&&i.pickerChange(...e)),onCancel:n[1]||(n[1]=(...e)=>i.pickerClick&&i.pickerClick(...e)),onClick:n[2]||(n[2]=(...e)=>i.pickerClick&&i.pickerClick(...e))},[e.createElementVNode("button",{type:"default",size:"mini",plain:!0},[e.createElementVNode("text",null,e.toDisplayString(s.pageSizeRange[r.pageSizeIndex])+" "+e.toDisplayString(i.piecePerPage),1),e.createVNode(c,{class:"select-picker-icon",type:"arrowdown",size:"12",color:"#999"})])],40,["value","range"])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:e.normalizeClass(["uni-pagination__btn",1===r.currentIndex?"uni-pagination--disabled":"uni-pagination--enabled"]),"hover-class":1===r.currentIndex?"":"uni-pagination--hover","hover-start-time":20,"hover-stay-time":70,onClick:n[3]||(n[3]=(...e)=>i.clickLeft&&i.clickLeft(...e))},[!0===s.showIcon||"true"===s.showIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(c,{color:"#666",size:"24",type:"left"}),e.createTextVNode(" "+e.toDisplayString(t.$t("LastPage")),1)],64)):(e.openBlock(),e.createElementBlock("text",{key:1,class:"uni-pagination__child-btn"},e.toDisplayString(i.prevPageText),1))],10,["hover-class"]),e.createElementVNode("view",{class:"uni-pagination__num uni-pagination__num-flex-none"},[e.createElementVNode("view",{class:"uni-pagination__num-current"},[e.createElementVNode("text",{class:"uni-pagination__num-current-text is-pc-hide current-index-text"},e.toDisplayString(r.currentIndex),1),e.createElementVNode("text",{class:"uni-pagination__num-current-text is-pc-hide"},"/"+e.toDisplayString(i.maxPage||0),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.paper,((t,a)=>(e.openBlock(),e.createElementBlock("view",{key:a,class:e.normalizeClass([{"page--active":t===r.currentIndex},"uni-pagination__num-tag tag--active is-phone-hide"]),onClick:e=>i.selectPage(t,a)},[e.createElementVNode("view",{class:"uni-pagination__num-tagwight"},e.toDisplayString(t),1)],10,["onClick"])))),128))])]),e.createElementVNode("view",{class:e.normalizeClass(["uni-pagination__btn",r.currentIndex>=i.maxPage?"uni-pagination--disabled":"uni-pagination--enabled"]),"hover-class":r.currentIndex===i.maxPage?"":"uni-pagination--hover","hover-start-time":20,"hover-stay-time":70,onClick:n[4]||(n[4]=(...e)=>i.clickRight&&i.clickRight(...e))},[!0===s.showIcon||"true"===s.showIcon?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(t.$t("NextPage"))+" ",1),e.createVNode(c,{color:"#666",size:"24",type:"right"})],64)):(e.openBlock(),e.createElementBlock("text",{key:1,class:"uni-pagination__child-btn"},e.toDisplayString(i.nextPageText),1))],10,["hover-class"])])])}],["__scopeId","data-v-309c8bd4"]]),Vs="/static/Return.png",Cs={data:()=>({logo:"../../static/logo/logo31.png",current:1,total:0,pageSize:10,faulttaps:"故障",faultsList:[]}),onLoad(){this.faulttaps=this.$store.state.event,this.onfaultsList()},computed:{...Fn(["formattedTime","status","event"])},beforeUnmount(){},methods:{onfaultsList(){let e={page:this.current,rows:this.pageSize,device:"",starttime:"",endtime:"",rt:0,type:this.faulttaps};rn(e).then((e=>{t("log","at pages/details/index.vue:198",e),"ok"==e.status&&(this.faultsList=e.data.list,this.total=e.data.pagination.total)}))},onclick(){uni.redirectTo({url:"/pages/index/index"})},onReturn(){uni.redirectTo({url:"/pages/faultlist/index"})},change(e){t("log","at pages/details/index.vue:222",e),this.current=e.current,this.onfaultsList()},closedevice(){for(let e=1;e{t("log","at pages/details/index.vue:247",e),"ok"==e.status?setTimeout((()=>{on({id:"b48fbf61-8e65-4383-a340-d64ae265b42d",issaveinitvalue:!1,value:"0"}).then((e=>{t("log","at pages/details/index.vue:256",e),"ok"==e.status?uni.showToast({title:this.$t("OperationSuccessful"),icon:"none",duration:2e3}):uni.showToast({title:this.$t("operationFailed"),icon:"none",duration:2e3})}))}),1e3):uni.showToast({title:this.$t("operationFailed"),icon:"none",duration:2e3})}))}}};const bs=s(Cs,[["render",function(t,n,s,o,r,i){const c=a(e.resolveDynamicComponent("zb-tooltip"),ws),l=a(e.resolveDynamicComponent("uni-pagination"),Ns);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:r.logo,mode:"aspectFit"},null,8,["src"]),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"},e.toDisplayString(t.formattedTime),1),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(e.toDisplayString(t.$t("status"))+" ",1),"ok"==t.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state"},e.toDisplayString(t.$t("online")),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state1"},e.toDisplayString(t.$t("offline")),1))])])])]),e.createElementVNode("view",{class:"parameter"},[e.createElementVNode("view",{class:"parameter_xian"},[e.createElementVNode("view",{class:"parameter_xian1"},e.toDisplayString(t.$t("formNO")),1),e.createElementVNode("view",{class:"parameter_xian2"},e.toDisplayString(t.$t("formUnit")),1),e.createElementVNode("view",{class:"parameter_xian3"},e.toDisplayString(t.$t("formDescription")),1),e.createElementVNode("view",{class:"parameter_xian4"},e.toDisplayString(t.$t("formFailure")),1),"事件"!=t.event?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_xian6"},e.toDisplayString(t.$t("formRecover")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"parameter_box"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.faultsList,((a,n)=>(e.openBlock(),e.createElementBlock("view",{class:e.normalizeClass(""==a.RESETTIME&&"事件"!=t.event?"parameter_divred":"parameter_div"),key:n},[e.createElementVNode("view",{class:"parameter_xian1"},e.toDisplayString(a.ID),1),"亿能BMS-1"==a.DEVICE?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_xian2"}," BMS ")):e.createCommentVNode("",!0),"盛弘PCS"==a.DEVICE?(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_xian2"}," PCS ")):e.createCommentVNode("",!0),"virtual"==a.DEVICE?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_xian2"}," MCS ")):e.createCommentVNode("",!0),"充电桩ccu-1-1"==a.DEVICE?(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_xian2"}," CCU ")):e.createCommentVNode("",!0),"innerIO-1"==a.DEVICE?(e.openBlock(),e.createElementBlock("view",{key:4,class:"parameter_xian2"}," IO ")):e.createCommentVNode("",!0),e.createVNode(c,{onClick:i.closedevice,content:a.CONTENT,placement:"top",ref_for:!0,ref:"device"+n},{default:e.withCtx((()=>[e.createElementVNode("view",{class:"parameter_xian3"},e.toDisplayString(a.CONTENT),1)])),_:2},1032,["onClick","content"]),e.createElementVNode("view",{class:"parameter_xian4"},e.toDisplayString(a.FAULTTIME.substring(0,19)),1),"事件"!=t.event?(e.openBlock(),e.createElementBlock("view",{key:5,class:"parameter_xian6"},e.toDisplayString(a.RESETTIME.substring(0,19)),1)):e.createCommentVNode("",!0)],2)))),128))]),e.createElementVNode("view",{class:"parameter_bottom"},[e.createElementVNode("view",{style:{display:"flex","align-items":"center"}},[e.createElementVNode("view",{class:"parameter_bottom1",onClick:n[0]||(n[0]=(...e)=>i.onclick&&i.onclick(...e))},[e.createElementVNode("image",{src:fs,mode:""}),e.createElementVNode("text",{class:"parameter_bottom2"},e.toDisplayString(t.$t("ReturnModeSelection")),1)]),e.createElementVNode("view",{class:"parameter_bottom11",onClick:n[1]||(n[1]=(...e)=>i.onReturn&&i.onReturn(...e))},[e.createElementVNode("image",{src:Vs,mode:""}),e.createElementVNode("text",{class:"parameter_bottom2"},e.toDisplayString(t.$t("Return")),1)])]),e.createElementVNode("view",{class:"parameter_bottom4"},[e.createElementVNode("view",{class:"eliminate",onClick:n[2]||(n[2]=(...e)=>i.onFaultclearing&&i.onFaultclearing(...e))},e.toDisplayString(t.$t("FaultClearing")),1),e.createVNode(l,{total:r.total,current:r.current,title:"标题文字","show-icon":!0,onChange:i.change},null,8,["total","current","onChange"])])])])])}],["__scopeId","data-v-d5c31172"]]),xs="/static/img/AC2.png",Ts={components:{cmdProgress:Gn},data:()=>({logo:"../../static/logo/logo31.png",successtype:"success",confirmText:"确认启动",title:"你确定要开启该设备吗?",content:"启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",value:"",modeinput:"",segmented:1,uidatas:"",formatTimeid:"",faultsdata:[],messageText:"",SysFaultState:!0,currentDate:""}),onLoad(){this.confirmText=this.$t("ConfirmStart"),this.title=this.$t("popUpTitle"),this.content=this.$t("popUpContent")},computed:{...Fn(["formattedTime","status"]),...Fn({uidatasdata:e=>e.uidatasdata})},mounted(){},beforeUnmount(){},watch:{uidatasdata:{handler(e,a){t("log","at pages/electricity/index.vue:631","uidatasdata 发生变化:",e),1==e.SysState_SysFaultState&&this.SysFaultState?(this.SysFaultState=!1,setTimeout((()=>{this.onfaultsdata()}),1e3)):0==e.SysState_SysFaultState&&(this.SysFaultState=!0)},deep:!0}},methods:{onfaultsdata(){rn({page:1,rows:10,device:"",starttime:"",endtime:"",rt:1,type:"故障"}).then((e=>{if(t("log","at pages/electricity/index.vue:658",e),"ok"==e.status){this.faultsdata=[];for(var a=0;a{"ok"==e.status?(this.$refs.alertDialog.close(),uni.showToast({title:this.$t("OperationSuccessful"),icon:"none",duration:2e3})):(this.$refs.alertDialog.close(),uni.showToast({title:this.$t("operationFailed"),icon:"none",duration:2e3}))}))},dialogClose(){t("log","at pages/electricity/index.vue:735",this.value),this.$refs.alertDialog.close()},ontap(e){t("log","at pages/electricity/index.vue:739",e),this.segmented=e}}};const Ds=s(Ts,[["render",function(t,n,s,r,i,c){const l=a(e.resolveDynamicComponent("cmd-progress"),Gn),u=a(e.resolveDynamicComponent("uni-popup-dialog"),us),p=a(e.resolveDynamicComponent("uni-popup"),d),m=a(e.resolveDynamicComponent("uni-popup-message"),o);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:i.logo,mode:"aspectFit"},null,8,["src"]),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"},e.toDisplayString(t.formattedTime),1),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(e.toDisplayString(t.$t("status"))+" ",1),"ok"==t.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state"},e.toDisplayString(t.$t("online")),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state1"},e.toDisplayString(t.$t("offline")),1))])])])]),e.createElementVNode("view",{class:"parameter"},[e.createElementVNode("view",{class:"parameter_left"},[e.createElementVNode("view",{class:"parameter_left1"},[e.createElementVNode("view",{style:{display:"flex","justify-content":"center",position:"relative"}},[e.createVNode(l,{type:"dashboard",percent:t.uidatasdata.SOC??0,"stroke-color":"#63D463FF","stroke-width":6,width:180,"stroke-shape":"square",showInfo:!1},null,8,["percent"]),e.createElementVNode("view",{style:{position:"absolute","text-align":"center",top:"20%"}},[e.createElementVNode("view",{style:{"font-size":"72rpx","font-weight":"bold"}},[e.createTextVNode(e.toDisplayString(t.uidatasdata.SOC??0)+" ",1),e.createElementVNode("text",{style:{"font-size":"32rpx"}},"%")]),e.createElementVNode("view",{style:{"font-size":"32rpx","margin-top":"6px"}},"SOC")]),e.createElementVNode("view",{style:{position:"absolute",top:"70%"}},[e.createElementVNode("view",{style:{width:"190px",display:"flex","justify-content":"space-between"}},[e.createElementVNode("view",{style:{"font-size":"32rpx","margin-left":"10px"}},"0"),e.createElementVNode("view",{style:{"font-size":"32rpx"}},"100%")])])])]),e.createElementVNode("image",{class:"parameter_leftdian1",src:xs,alt:""}),e.createElementVNode("view",{class:"parameter_lef2"},[e.createElementVNode("image",{src:ps,mode:""})]),e.createElementVNode("image",{class:"parameter_leftche1",src:"/static/fang.png",mode:""}),e.createElementVNode("view",{class:"parameter_leftview"},e.toDisplayString(t.$t("CommunicationSupplyOutput")),1)]),e.createElementVNode("view",{class:"parameter_right"},[e.createElementVNode("view",{class:"parameter_righttop"},[e.createElementVNode("view",{class:"parameter_1"},[e.createElementVNode("view",{class:"parameter_SOC"},[e.createElementVNode("image",{src:ms,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," SOC "),e.createElementVNode("view",null,[e.createElementVNode("text",{class:"parameter_SOCright2"},e.toDisplayString(t.uidatasdata.SOC??"—"),1),e.createElementVNode("text",null," %")])])]),e.createElementVNode("view",{class:"parameter_Battery"},[e.createElementVNode("image",{src:hs,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"},e.toDisplayString(t.$t("BatteryStatus")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[5==t.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("fault")),1)):1==t.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("NotupyetVoltage")),1)):3==t.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("voltagehasbeen")),1)):(e.openBlock(),e.createElementBlock("view",{key:3}," — "))])])]),e.createElementVNode("view",{class:"parameter_state"},[e.createElementVNode("image",{src:gs,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"},e.toDisplayString(t.$t("SystemStatus")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("uncharged")),1)):1==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("Chargingprogress")),1)):2==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("Chargingmalfunction")),1)):3==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:3},e.toDisplayString(t.$t("full")),1)):(e.openBlock(),e.createElementBlock("view",{key:4}," — "))])])])])]),e.createElementVNode("view",{class:"parameter_tap"},[e.createElementVNode("view",{class:e.normalizeClass(1==i.segmented?"parameter_tap1":"parameter_tap2"),onClick:n[0]||(n[0]=e=>c.ontap(1))},e.toDisplayString(t.$t("exchangeinformation")),3),e.createElementVNode("view",{class:e.normalizeClass(2==i.segmented?"parameter_tap1":"parameter_tap2"),onClick:n[1]||(n[1]=e=>c.ontap(2))},e.toDisplayString(t.$t("Batteryinformation")),3),e.createElementVNode("view",{class:e.normalizeClass(3==i.segmented?"parameter_tap1":"parameter_tap2"),onClick:n[2]||(n[2]=e=>c.ontap(3))},e.toDisplayString(t.$t("statisticalinformation")),3),e.createElementVNode("view",{class:e.normalizeClass(4==i.segmented?"parameter_tap1":"parameter_tap2"),onClick:n[3]||(n[3]=e=>c.ontap(4))},e.toDisplayString(t.$t("coolinginformation")),3)]),e.createElementVNode("view",{class:"parameter_zheng"},[1==i.segmented?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("PhaseVoltageAV")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.PCSPortAPhaseVoltage??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("PhaseVoltageBV")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.PCSPortBPhaseVoltage??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("PhaseVoltageCV")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.PCSPortCPhaseVoltage??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("DischargePower")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.PCSTotalOutputPower??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("PhaseVoltageAA")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata["PCSOutputA-phaseCurrent"]??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("PhaseVoltageBA")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata["PCSOutputB-phaseCurrent"]??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("PhaseVoltageCA")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata["PCSOutputC-phaseCurrent"]??"—"),1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11",style:{height:"30px"}},[e.createElementVNode("view",{class:"parameter_zheng12"})])])])):e.createCommentVNode("",!0),2==i.segmented?(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("TotalPressure")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.BatSysSt2_BatSumVInt??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("AllowableDischargepower")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.DchChgCurPowLimit_MaxDischargePowerLimit??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("MaximumVoltage")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.BatCellVPeak_ValMaxCellVoltage??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("MaximumTemperature")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.CellTemperatureLimitsStatus_MaxTemp??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("BatteryCurrent")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.BatSysSt2_BatCur??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("AllowDischargeCurrent")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.DchChgCurPowLimit_MaxDischargeCurrentLimit??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("MinimumIndividualVoltage")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.BatCellVPeak_ValMinCellVoltage??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("MinimumMonomerTemperature")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.CellTemperatureLimitsStatus_MinTemp??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])])])])):e.createCommentVNode("",!0),3==i.segmented?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng10"},[e.createElementVNode("view",{class:"parameter_zhengbox parameter_zheng101"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("InputCapacitydischarge")),1),e.createElementVNode("view",{class:"parameter_zhengbox13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.CommunicationDischarge??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kWh"),e.createTextVNode(),e.createElementVNode("text")])]),e.createElementVNode("view",{class:"parameter_zhengbox parameter_zheng101"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("AccumulateInputdischarge")),1),e.createElementVNode("view",{class:"parameter_zhengbox13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.PCSACDisChargeEnergy??"—"),1),e.createElementVNode("text",{class:"parameter_zheng14"},"kWh"),e.createTextVNode(),e.createElementVNode("text")])])])])):e.createCommentVNode("",!0),4==i.segmented?(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("WorkingMode")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("OffMode")),1)):1==t.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("CoolingMode")),1)):2==t.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("HeatingMode")),1)):3==t.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:3},e.toDisplayString(t.$t("CirculatingMode")),1)):(e.openBlock(),e.createElementBlock("view",{key:4}," — "))])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("OutletTemperature")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12",style:{height:"30px"}})])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("HighVoltageRelayStatus")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("DisconnectedState")),1)):1==t.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("ClosedState")),1)):(e.openBlock(),e.createElementBlock("view",{key:2}," — "))])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("waterTemperature")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.TMS_Status_TMS_WATERIN_TEMP??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12",style:{height:"30px"}})])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"parameter_zheng3"},[0==t.uidatasdata.SysControl_RunCmd?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_zheng31111",onClick:n[4]||(n[4]=(...e)=>c.dialogToggle&&c.dialogToggle(...e))},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32"},e.toDisplayString(t.$t("open")),1)])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_zheng31111"},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"},e.toDisplayString(t.$t("open")),1)])])),1==t.uidatasdata.SysControl_RunCmd?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_zheng31111",onClick:n[5]||(n[5]=(...e)=>c.onstopit&&c.onstopit(...e))},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng33"},e.toDisplayString(t.$t("stopIt")),1)])])):(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_zheng31111"},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"},e.toDisplayString(t.$t("stopIt")),1)])]))])]),e.createElementVNode("view",{class:"parameter_home"},[e.createElementVNode("view",{class:"parameter_home1",onClick:n[6]||(n[6]=(...e)=>c.onreturn&&c.onreturn(...e))},[e.createElementVNode("image",{src:fs,mode:""}),e.createElementVNode("text",{class:"parameter_hometext"},e.toDisplayString(t.$t("ReturnModeSelection")),1)]),i.faultsdata.length>0&&!i.SysFaultState?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_home2"},[e.createElementVNode("image",{src:_s,mode:""}),e.createElementVNode("swiper",{class:"swiper",circular:"",autoplay:!0,interval:2e3,duration:500,vertical:!0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.faultsdata,((t,a)=>(e.openBlock(),e.createElementBlock("swiper-item",{key:a},[e.createElementVNode("view",{class:"parameter_home3"},e.toDisplayString(t.CONTENT),1)])))),128))])])):e.createCommentVNode("",!0)])])]),e.createVNode(p,{ref:"alertDialog"},{default:e.withCtx((()=>[e.createVNode(u,{mode:i.modeinput,placeholder:"请输入内容",modelValue:i.value,"onUpdate:modelValue":n[7]||(n[7]=e=>i.value=e),type:i.successtype,cancelText:t.$t("CancelReturn"),confirmText:i.confirmText,title:i.title,content:i.content,beforeClose:!0,onConfirm:c.dialogConfirm,onClose:c.dialogClose},null,8,["mode","modelValue","type","cancelText","confirmText","title","content","onConfirm","onClose"])])),_:1},512),e.createVNode(p,{ref:"message",type:"message"},{default:e.withCtx((()=>[e.createVNode(m,{type:"error",message:i.messageText,duration:3e3},null,8,["message"])])),_:1},512)])}],["__scopeId","data-v-3ae37b20"]]),Bs={components:{cmdProgress:Gn},data:()=>({logo:"../../static/logo/logo31.png",successtype:"success",confirmText:"确认启动",title:"你确定要开启该设备吗?",content:"启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",value:"",modeinput:"",segmented:1,uidatas:"",formatTimeid:"",faultsdata:[],SysFaultState:!0,currentDate:""}),onLoad(){this.confirmText=this.$t("ConfirmStart"),this.title=this.$t("popUpTitle"),this.content=this.$t("popUpContent")},computed:{...Fn(["formattedTime","status"]),...Fn({uidatasdata:e=>e.uidatasdata})},mounted(){},beforeUnmount(){},watch:{uidatasdata:{handler(e,a){t("log","at pages/supply/supply.vue:636","uidatasdata 发生变化:",e),1==e.SysState_SysFaultState&&this.SysFaultState?(this.SysFaultState=!1,setTimeout((()=>{this.onfaultsdata()}),1e3)):0==e.SysState_SysFaultState&&(this.SysFaultState=!0)},deep:!0}},methods:{onfaultsdata(){rn({page:1,rows:10,device:"",starttime:"",endtime:"",rt:1,type:"故障"}).then((e=>{if(t("log","at pages/supply/supply.vue:663",e),"ok"==e.status){this.faultsdata=[];for(var a=0;a{"ok"==e.status?uni.showToast({title:this.$t("OperationSuccessful"),icon:"none",duration:2e3}):uni.showToast({title:this.$t("operationFailed"),icon:"none",duration:2e3})}))},dialogClose(){t("log","at pages/supply/supply.vue:729",this.value),this.$refs.alertDialog.close()},ontap(e){t("log","at pages/supply/supply.vue:733",e),this.segmented=e}}};const $s=s(Bs,[["render",function(t,n,s,o,r,i){const c=a(e.resolveDynamicComponent("cmd-progress"),Gn),l=a(e.resolveDynamicComponent("uni-popup-dialog"),us),u=a(e.resolveDynamicComponent("uni-popup"),d);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:r.logo,mode:"aspectFit"},null,8,["src"]),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"},e.toDisplayString(t.formattedTime),1),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(e.toDisplayString(t.$t("status"))+" ",1),"ok"==t.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state"},e.toDisplayString(t.$t("online")),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state1"},e.toDisplayString(t.$t("offline")),1))])])])]),e.createElementVNode("view",{class:"parameter"},[e.createElementVNode("view",{class:"parameter_left"},[e.createElementVNode("view",{class:"parameter_left1"},[e.createElementVNode("view",{style:{display:"flex","justify-content":"center",position:"relative"}},[e.createVNode(c,{type:"dashboard",percent:t.uidatasdata.SOC??0,"stroke-color":"#63D463FF","stroke-width":6,width:180,"stroke-shape":"square",showInfo:!1},null,8,["percent"]),e.createElementVNode("view",{style:{position:"absolute","text-align":"center",top:"20%"}},[e.createElementVNode("view",{style:{"font-size":"72rpx","font-weight":"bold"}},[e.createTextVNode(e.toDisplayString(t.uidatasdata.SOC??0)+" ",1),e.createElementVNode("text",{style:{"font-size":"32rpx"}},"%")]),e.createElementVNode("view",{style:{"font-size":"32rpx","margin-top":"6px"}},"SOC")]),e.createElementVNode("view",{style:{position:"absolute",top:"70%"}},[e.createElementVNode("view",{style:{width:"190px",display:"flex","justify-content":"space-between"}},[e.createElementVNode("view",{style:{"font-size":"32rpx","margin-left":"10px"}},"0"),e.createElementVNode("view",{style:{"font-size":"32rpx"}},"100%")])])])]),e.createElementVNode("image",{class:"parameter_leftdian1",src:"/static/img/DC3.png",alt:""}),e.createElementVNode("view",{class:"parameter_lef2"},[e.createElementVNode("image",{src:ps,mode:""})]),e.createElementVNode("image",{class:"parameter_leftche",src:ds,mode:""}),e.createElementVNode("view",{class:"parameter_leftview"},e.toDisplayString(t.$t("DirectRechargeInput")),1)]),e.createElementVNode("view",{class:"parameter_right"},[e.createElementVNode("view",{class:"parameter_righttop"},[e.createElementVNode("view",{class:"parameter_1"},[e.createElementVNode("view",{class:"parameter_shan"},[e.createElementVNode("image",{src:"/static/shan.png",mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"},e.toDisplayString(t.$t("ChargingPower")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[e.createElementVNode("text",{class:"parameter_SOCright2"},e.toDisplayString(t.uidatasdata.BatSysSt2_BatPower??"—"),1),e.createElementVNode("text",null," kW")])])]),e.createElementVNode("view",{class:"parameter_SOC"},[e.createElementVNode("image",{src:ms,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," SOC "),e.createElementVNode("view",null,[e.createElementVNode("text",{class:"parameter_SOCright2"},e.toDisplayString(t.uidatasdata.SOC??"—"),1),e.createElementVNode("text",null," %")])])]),e.createElementVNode("view",{class:"parameter_Battery"},[e.createElementVNode("image",{src:hs,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"},e.toDisplayString(t.$t("BatteryStatus")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[5==t.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("fault")),1)):1==t.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("NotupyetVoltage")),1)):3==t.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("voltagehasbeen")),1)):(e.openBlock(),e.createElementBlock("view",{key:3}," — "))])])]),e.createElementVNode("view",{class:"parameter_state"},[e.createElementVNode("image",{src:gs,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"},e.toDisplayString(t.$t("SystemStatus")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("uncharged")),1)):1==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("Chargingprogress")),1)):2==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("Chargingmalfunction")),1)):3==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:3},e.toDisplayString(t.$t("full")),1)):(e.openBlock(),e.createElementBlock("view",{key:4}," — "))])])])])]),e.createElementVNode("view",{class:"parameter_tap"},[e.createElementVNode("view",{class:e.normalizeClass(1==r.segmented?"parameter_tap1":"parameter_tap2"),onClick:n[0]||(n[0]=e=>i.ontap(1))},e.toDisplayString(t.$t("Batteryinformation")),3),e.createElementVNode("view",{class:e.normalizeClass(3==r.segmented?"parameter_tap1":"parameter_tap2"),onClick:n[1]||(n[1]=e=>i.ontap(3))},e.toDisplayString(t.$t("statisticalinformation")),3),e.createElementVNode("view",{class:e.normalizeClass(4==r.segmented?"parameter_tap1":"parameter_tap2"),onClick:n[2]||(n[2]=e=>i.ontap(4))},e.toDisplayString(t.$t("coolinginformation")),3)]),e.createElementVNode("view",{class:"parameter_zheng"},[1==r.segmented?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("TotalPressure")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.BatSysSt2_BatSumVInt??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("AllowChargingPower")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.DchChgCurPowLimit_MaxChargePowerLimit??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("MaximumVoltage")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.BatCellVPeak_ValMaxCellVoltage??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("MaximumTemperature")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.CellTemperatureLimitsStatus_MaxTemp??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("BatteryCurrent")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.BatSysSt2_BatCur??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("AllowChargingCurrent")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.ChargingInformation_Chg_Max_Cur??"—"),1),e.createElementVNode("text",{class:"parameter_zheng14"}," A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("MinimumIndividualVoltage")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.BatCellVPeak_ValMinCellVoltage??"—"),1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("MinimumMonomerTemperature")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.CellTemperatureLimitsStatus_MinTemp??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"}," ℃")])])])])):e.createCommentVNode("",!0),2==r.segmented?(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("WorkingModeBatterySystem")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("invalid")),1)):1==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("DischargeMode")),1)):2==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("pcsChargingMode")),1)):3==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:3},e.toDisplayString(t.$t("EuropeanStandardChargingMode")),1)):(e.openBlock(),e.createElementBlock("view",{key:4}," — "))])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("BatterySystemStatus")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("initialization")),1)):1==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("NotupyetVoltage")),1)):2==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("HighVoltageMedium")),1)):3==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:3},e.toDisplayString(t.$t("voltagehasbeen")),1)):4==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:4},e.toDisplayString(t.$t("Underhighpressure")),1)):5==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:5},e.toDisplayString(t.$t("fault")),1)):(e.openBlock(),e.createElementBlock("view",{key:6}," — "))])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("ChargingStatus")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("uncharged")),1)):1==t.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("Chargingprogress")),1)):2==t.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("Chargingmalfunction")),1)):3==t.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:3},e.toDisplayString(t.$t("full")),1)):t.uidatasdata.bms_ChargeStatus>3&&t.uidatasdata.bms_ChargeStatus<8?(e.openBlock(),e.createElementBlock("view",{key:4},e.toDisplayString(t.$t("retain")),1)):(e.openBlock(),e.createElementBlock("view",{key:5}," — "))])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("ChargingConnectionStatus")),1),1==t.uidatasdata.bms_ChgLinkSt?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_Batterystate1"},e.toDisplayString(t.$t("FastChargingConnection")),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_Batterystate1"},e.toDisplayString(t.$t("NoConnection")),1))]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12",style:{height:"30px"}},e.toDisplayString(t.$t("BatteryFaultLevel")),1),e.createElementVNode("view",{class:"parameter_Batterystate1"},[0==t.uidatasdata.bms_BatteryFaultLevl?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("NoMalfunction")),1)):1==t.uidatasdata.bms_BatteryFaultLevl?(e.openBlock(),e.createElementBlock("view",{key:1}," 1"+e.toDisplayString(t.$t("LevelLault")),1)):2==t.uidatasdata.bms_BatteryFaultLevl?(e.openBlock(),e.createElementBlock("view",{key:2}," 2"+e.toDisplayString(t.$t("LevelLault")),1)):3==t.uidatasdata.bms_BatteryFaultLevl?(e.openBlock(),e.createElementBlock("view",{key:3}," 3"+e.toDisplayString(t.$t("LevelLault")),1)):(e.openBlock(),e.createElementBlock("view",{key:4}," — "))])]),e.createElementVNode("view",{class:"parameter_zheng11 parameter_zheng102"})])])):e.createCommentVNode("",!0),3==r.segmented?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng10"},[e.createElementVNode("view",{class:"parameter_zhengbox"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("RunningTimes")),1),e.createElementVNode("view",{class:"parameter_zhengbox13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.DirectRecharge??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},e.toDisplayString(t.$t("RunningTimesmin")),1),e.createTextVNode(),e.createElementVNode("text")])]),e.createElementVNode("view",{class:"parameter_zhengbox parameter_zheng101"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("InputCapacity")),1),e.createElementVNode("view",{class:"parameter_zhengbox13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.DirectElectricity??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kWh"),e.createTextVNode(),e.createElementVNode("text")])]),e.createElementVNode("view",{class:"parameter_zhengbox parameter_zheng101"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("AccumulateInput")),1),e.createElementVNode("view",{class:"parameter_zhengbox13"},[e.createTextVNode(e.toDisplayString("NaN"!=(t.uidatasdata.BatteryInformation4_Acc_Chg_Ah-t.uidatasdata.PCSDCChargeEnergy).toFixed(1)?(t.uidatasdata.BatteryInformation4_Acc_Chg_Ah-t.uidatasdata.PCSDCChargeEnergy).toFixed(1):"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kWh"),e.createTextVNode(),e.createElementVNode("text")])])])])):e.createCommentVNode("",!0),4==r.segmented?(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("WorkingMode")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("OffMode")),1)):1==t.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("CoolingMode")),1)):2==t.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("HeatingMode")),1)):3==t.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:3},e.toDisplayString(t.$t("CirculatingMode")),1)):(e.openBlock(),e.createElementBlock("view",{key:4}," — "))])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("OutletTemperature")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12",style:{height:"30px"}})])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("HighVoltageRelayStatus")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("DisconnectedState")),1)):1==t.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("ClosedState")),1)):(e.openBlock(),e.createElementBlock("view",{key:2}," — "))])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("waterTemperature")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.TMS_Status_TMS_WATERIN_TEMP??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12",style:{height:"30px"}})])])])):e.createCommentVNode("",!0),e.createElementVNode("view",{class:"parameter_zheng3"},[0==t.uidatasdata.SysControl_RunCmd?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_zheng31111",onClick:n[3]||(n[3]=(...e)=>i.dialogToggle&&i.dialogToggle(...e))},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32"},e.toDisplayString(t.$t("open")),1)])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_zheng31111"},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"},e.toDisplayString(t.$t("open")),1)])])),1==t.uidatasdata.SysControl_RunCmd?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_zheng31111",onClick:n[4]||(n[4]=(...e)=>i.onstopit&&i.onstopit(...e))},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng33"},e.toDisplayString(t.$t("stopIt")),1)])])):(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_zheng31111"},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"},e.toDisplayString(t.$t("stopIt")),1)])]))])]),e.createElementVNode("view",{class:"parameter_home"},[e.createElementVNode("view",{class:"parameter_home1",onClick:n[5]||(n[5]=(...e)=>i.onreturn&&i.onreturn(...e))},[e.createElementVNode("image",{src:fs,mode:""}),e.createElementVNode("text",{class:"parameter_hometext"},e.toDisplayString(t.$t("ReturnModeSelection")),1)]),r.faultsdata.length>0&&!r.SysFaultState?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_home2"},[e.createElementVNode("image",{src:_s,mode:""}),e.createElementVNode("swiper",{class:"swiper",circular:"",autoplay:!0,interval:2e3,duration:500,vertical:!0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.faultsdata,((t,a)=>(e.openBlock(),e.createElementBlock("swiper-item",{key:a},[e.createElementVNode("view",{class:"parameter_home3"},e.toDisplayString(t.CONTENT),1)])))),128))])])):e.createCommentVNode("",!0)])])]),e.createVNode(u,{ref:"alertDialog"},{default:e.withCtx((()=>[e.createVNode(l,{mode:r.modeinput,placeholder:"请输入内容",modelValue:r.value,"onUpdate:modelValue":n[6]||(n[6]=e=>r.value=e),type:r.successtype,cancelText:t.$t("CancelReturn"),confirmText:r.confirmText,title:r.title,content:r.content,onConfirm:i.dialogConfirm,onClose:i.dialogClose},null,8,["mode","modelValue","type","cancelText","confirmText","title","content","onConfirm","onClose"])])),_:1},512)])}],["__scopeId","data-v-d8028a36"]]),Ps="/static/y8.png",Is="/static/y6.png",zs={components:{cmdProgress:Gn},data:()=>({logo:"../../static/logo/logo31.png",successtype:"success",confirmText:"确认启动",title:"你确定要开启该设备吗?",content:"启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",value:"",modeinput:"",segmented:1,ChargingStation:1,faultsdata:[],SysFaultState:!0,currentDate:""}),onLoad(){this.confirmText=this.$t("ConfirmStart"),this.title=this.$t("popUpTitle"),this.content=this.$t("popUpContent")},computed:{...Fn(["formattedTime","status"]),...Fn({uidatasdata:e=>e.uidatasdata})},mounted(){},beforeUnmount(){},watch:{uidatasdata:{handler(e,a){t("log","at pages/supplyss/supplyss.vue:895","uidatasdata 发生变化:",e),1==e.SysState_SysFaultState&&this.SysFaultState?(this.SysFaultState=!1,setTimeout((()=>{this.onfaultsdata()}),1e3)):0==e.SysState_SysFaultState&&(this.SysFaultState=!0)},deep:!0}},methods:{onfaultsdata(){rn({page:1,rows:10,device:"",starttime:"",endtime:"",rt:1,type:"故障"}).then((e=>{if(t("log","at pages/supplyss/supplyss.vue:922",e),"ok"==e.status){this.faultsdata=[];for(var a=0;a{t("log","at pages/supplyss/supplyss.vue:985",e),"ok"==e.status?uni.showToast({title:this.$t("OperationSuccessful"),icon:"none",duration:2e3}):uni.showToast({title:this.$t("operationFailed"),icon:"none",duration:2e3})}))},dialogClose(){t("log","at pages/supplyss/supplyss.vue:1004",this.value),this.$refs.alertDialog.close()},ontap(e){t("log","at pages/supplyss/supplyss.vue:1009",e),this.segmented=e,1==this.segmented?this.ChargingStation=1:2==this.segmented&&(this.ChargingStation=2)}}};const As=s(zs,[["render",function(t,n,s,o,r,i){const c=a(e.resolveDynamicComponent("cmd-progress"),Gn),l=a(e.resolveDynamicComponent("uni-popup-dialog"),us),u=a(e.resolveDynamicComponent("uni-popup"),d);return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:r.logo,mode:"aspectFit"},null,8,["src"]),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"},e.toDisplayString(t.formattedTime),1),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(e.toDisplayString(t.$t("status"))+" ",1),"ok"==t.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state"},e.toDisplayString(t.$t("online")),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state1"},e.toDisplayString(t.$t("offline")),1))])])])]),e.createElementVNode("view",{class:"parameter"},[e.createElementVNode("view",{class:"parameter_left"},[e.createElementVNode("view",{class:"parameter_left1"},[e.createElementVNode("view",{style:{display:"flex","justify-content":"center",position:"relative"}},[e.createVNode(c,{type:"dashboard",percent:t.uidatasdata.SOC??0,"stroke-color":"#63D463FF","stroke-width":6,width:180,"stroke-shape":"square",showInfo:!1},null,8,["percent"]),e.createElementVNode("view",{style:{position:"absolute","text-align":"center",top:"20%"}},[e.createElementVNode("view",{style:{"font-size":"72rpx","font-weight":"bold"}},[e.createTextVNode(e.toDisplayString(t.uidatasdata.SOC??0)+" ",1),e.createElementVNode("text",{style:{"font-size":"32rpx"}},"%")]),e.createElementVNode("view",{style:{"font-size":"32rpx","margin-top":"6px"}},"SOC")]),e.createElementVNode("view",{style:{position:"absolute",top:"70%"}},[e.createElementVNode("view",{style:{width:"190px",display:"flex","justify-content":"space-between"}},[e.createElementVNode("view",{style:{"font-size":"32rpx","margin-left":"10px"}},"0"),e.createElementVNode("view",{style:{"font-size":"32rpx"}},"100%")])])])]),e.createElementVNode("image",{class:"parameter_leftdian1",src:xs,alt:""}),e.createElementVNode("view",{class:"parameter_lef2"},[e.createElementVNode("image",{src:ps,mode:""})]),e.createElementVNode("image",{class:"parameter_leftche2",src:"/static/che1.png",mode:""}),e.createElementVNode("view",{class:"parameter_leftview"},e.toDisplayString(t.$t("DirectSupplyOutput")),1)]),e.createElementVNode("view",{class:"parameter_right"},[e.createElementVNode("view",{class:"parameter_righttop"},[e.createElementVNode("view",{class:"parameter_1"},[e.createElementVNode("view",{class:"parameter_2"},[1==r.ChargingStation?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_3"},[e.createElementVNode("view",{class:"parameter_4"},[1==t.uidatasdata.ChargingStation_1_remoteSignaFrameCarConnectStatus_ccu?(e.openBlock(),e.createElementBlock("image",{key:0,src:Ps,mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:Is,mode:""})),e.createTextVNode(" "+e.toDisplayString(t.$t("ConnectionStatus")),1)]),1==t.uidatasdata.ChargingStation_1_remoteSignaFrameCarConnectStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_51"},e.toDisplayString(t.$t("connect")),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_5"},e.toDisplayString(t.$t("breakoff")),1))])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_3"},[e.createElementVNode("view",{class:"parameter_4"},[1==t.uidatasdata.ChargingStation_2_remoteSignaFrameCarConnectStatus_ccu?(e.openBlock(),e.createElementBlock("image",{key:0,src:Ps,mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:Is,mode:""})),e.createTextVNode(" "+e.toDisplayString(t.$t("ConnectionStatus")),1)]),1==t.uidatasdata.ChargingStation_2_remoteSignaFrameCarConnectStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_51"},e.toDisplayString(t.$t("connect")),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_5"},e.toDisplayString(t.$t("breakoff")),1))])),1==r.ChargingStation?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_3"},[e.createElementVNode("view",{class:"parameter_4"},[1==t.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("image",{key:0,src:Ps,mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:Is,mode:""})),e.createTextVNode(" "+e.toDisplayString(t.$t("workingCondition")),1)]),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("StandbyMode")),1)):1==t.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("work")),1)):2==t.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("ChargingCompleted")),1)):3==t.uidatasdata.ChargingStation_1_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:3},e.toDisplayString(t.$t("ChargingPause")),1)):(e.openBlock(),e.createElementBlock("view",{key:4}," — "))])])):e.createCommentVNode("",!0),2==r.ChargingStation?(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_3"},[e.createElementVNode("view",{class:"parameter_4"},[1==t.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("image",{key:0,src:Ps,mode:""})):(e.openBlock(),e.createElementBlock("image",{key:1,src:Is,mode:""})),e.createTextVNode(" "+e.toDisplayString(t.$t("workingCondition")),1)]),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("StandbyMode")),1)):1==t.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("work")),1)):2==t.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("ChargingCompleted")),1)):3==t.uidatasdata.ChargingStation_2_remoteSignaFrameCarJobStatus_ccu?(e.openBlock(),e.createElementBlock("view",{key:3},e.toDisplayString(t.$t("ChargingPause")),1)):(e.openBlock(),e.createElementBlock("view",{key:4}," — "))])])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"parameter_SOC"},[e.createElementVNode("image",{src:ms,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"}," SOC "),e.createElementVNode("view",null,[e.createElementVNode("text",{class:"parameter_SOCright2"},e.toDisplayString(t.uidatasdata.SOC??"—"),1),e.createElementVNode("text",null,"%")])])]),e.createElementVNode("view",{class:"parameter_Battery"},[e.createElementVNode("image",{src:hs,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"},e.toDisplayString(t.$t("BatteryStatus")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[5==t.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("fault")),1)):0==t.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("ChuShiHua")),1)):1==t.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("NotupyetVoltage")),1)):2==t.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:3},e.toDisplayString(t.$t("HighVoltageMedium")),1)):3==t.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:4},e.toDisplayString(t.$t("voltagehasbeen")),1)):4==t.uidatasdata.bms_BatSysState?(e.openBlock(),e.createElementBlock("view",{key:5},e.toDisplayString(t.$t("Underhighpressure")),1)):(e.openBlock(),e.createElementBlock("view",{key:6}," — "))])])]),e.createElementVNode("view",{class:"parameter_state"},[e.createElementVNode("image",{src:gs,mode:""}),e.createElementVNode("view",{class:"parameter_SOCright"},[e.createElementVNode("view",{class:"parameter_SOCright1"},e.toDisplayString(t.$t("SystemStatus")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("uncharged")),1)):1==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("Chargingprogress")),1)):2==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("Chargingmalfunction")),1)):3==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:3},e.toDisplayString(t.$t("full")),1)):(e.openBlock(),e.createElementBlock("view",{key:4}," — "))])])])])]),e.createElementVNode("view",{class:"parameter_tap"},[e.createElementVNode("view",{class:e.normalizeClass(1==r.segmented?"parameter_tap1":"parameter_tap2"),onClick:n[0]||(n[0]=e=>i.ontap(1))},e.toDisplayString(t.$t("GunAinformation")),3),e.createElementVNode("view",{class:e.normalizeClass(2==r.segmented?"parameter_tap1":"parameter_tap2"),onClick:n[1]||(n[1]=e=>i.ontap(2))},e.toDisplayString(t.$t("GunBinformation")),3),e.createElementVNode("view",{class:e.normalizeClass(3==r.segmented?"parameter_tap1":"parameter_tap2"),onClick:n[2]||(n[2]=e=>i.ontap(3))},e.toDisplayString(t.$t("Batteryinformation")),3),e.createElementVNode("view",{class:e.normalizeClass(5==r.segmented?"parameter_tap1":"parameter_tap2"),onClick:n[3]||(n[3]=e=>i.ontap(5))},e.toDisplayString(t.$t("coolinginformation")),3)]),e.createElementVNode("view",{class:"parameter_zheng"},[1==r.segmented?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("ChargingVoltage")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("ChargingCurrent")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.ChargingStation_1_telemetryFrameccu_chargeOutputCurrent??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("VehicleSOC")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.ChargingStation_1_telemetryFrameccu_soc??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"%")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("CharingPower")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage?(t.uidatasdata.ChargingStation_1_telemetryFrameccu_outputVoltage*t.uidatasdata.ChargingStation_1_telemetryFrameccu_chargeOutputCurrent/1e3).toFixed(2):"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("ChargingCapacity")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.ChargingStation_1_telemetryFrameccu_ThisChargePower??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kWh")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("ChargingTime")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.ChargingStation_1_telemetryFrameccu_EstimateTheRemainingChargingTime??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"min")])]),e.createElementVNode("view",{class:"parameter_zheng11 parameter_zheng102"},[e.createElementVNode("view",{class:"parameter_zheng12"}),e.createElementVNode("view",{class:"parameter_zheng13"})]),e.createElementVNode("view",{class:"parameter_zheng11 parameter_zheng102"},[e.createElementVNode("view",{class:"parameter_zheng12"}),e.createElementVNode("view",{class:"parameter_zheng13"})])])])):e.createCommentVNode("",!0),2==r.segmented?(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("ChargingVoltage")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.ChargingStation_2_telemetryFrameccu_outputVoltage??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("ChargingCurrent")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.ChargingStation_2_telemetryFrameccu_chargeOutputCurrent??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("VehicleSOC")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.ChargingStation_2_telemetryFrameccu_soc??"—"),1),e.createElementVNode("text",{class:"parameter_zheng14"}," %")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("CharingPower")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.ChargingStation_2_telemetryFrameccu_outputVoltage?(t.uidatasdata.ChargingStation_2_telemetryFrameccu_outputVoltage*t.uidatasdata.ChargingStation_2_telemetryFrameccu_chargeOutputCurrent/1e3).toFixed(2):"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("ChargingCapacity")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.ChargingStation_2_telemetryFrameccu_ThisChargePower??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kWh")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("ChargingTime")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.ChargingStation_2_telemetryFrameccu_EstimateTheRemainingChargingTime??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"min")])]),e.createElementVNode("view",{class:"parameter_zheng11 parameter_zheng102"},[e.createElementVNode("view",{class:"parameter_zheng12"}),e.createElementVNode("view",{class:"parameter_zheng13"})]),e.createElementVNode("view",{class:"parameter_zheng11 parameter_zheng102"},[e.createElementVNode("view",{class:"parameter_zheng12"}),e.createElementVNode("view",{class:"parameter_zheng13"})])])])):e.createCommentVNode("",!0),3==r.segmented?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("TotalPressure")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.BatSysSt2_BatSumVInt??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("AllowableDischargepower")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.DchChgCurPowLimit_MaxDischargePowerLimit??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"kW")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("MaximumVoltage")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.BatCellVPeak_ValMaxCellVoltage??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("MaximumTemperature")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.CellTemperatureLimitsStatus_MaxTemp??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("BatteryCurrent")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.BatSysSt2_BatCur??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("AllowDischargeCurrent")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.DchChgCurPowLimit_MaxDischargeCurrentLimit??"—"),1),e.createElementVNode("text",{class:"parameter_zheng14"},"A")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("MinimumIndividualVoltage")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.BatCellVPeak_ValMinCellVoltage??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"V")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("MinimumMonomerTemperature")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.CellTemperatureLimitsStatus_MinTemp??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])])])])):e.createCommentVNode("",!0),4==r.segmented?(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("WorkingModeBatterySystem")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("invalid")),1)):1==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("DischargeMode")),1)):2==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("pcsChargingMode")),1)):3==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:3},e.toDisplayString(t.$t("EuropeanStandardChargingMode")),1)):(e.openBlock(),e.createElementBlock("view",{key:4}," — "))])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("BatterySystemStatus")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("initialization")),1)):1==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("NotupyetVoltage")),1)):2==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("HighVoltageMedium")),1)):3==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:3},e.toDisplayString(t.$t("voltagehasbeen")),1)):4==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:4},e.toDisplayString(t.$t("Underhighpressure")),1)):5==t.uidatasdata.bms_BatSysWorkMode_?(e.openBlock(),e.createElementBlock("view",{key:5},e.toDisplayString(t.$t("fault")),1)):(e.openBlock(),e.createElementBlock("view",{key:6}," — "))])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("ChargingStatus")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("uncharged")),1)):1==t.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("Chargingprogress")),1)):2==t.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("Chargingmalfunction")),1)):3==t.uidatasdata.bms_ChargeStatus?(e.openBlock(),e.createElementBlock("view",{key:3},e.toDisplayString(t.$t("full")),1)):t.uidatasdata.bms_ChargeStatus>3&&t.uidatasdata.bms_ChargeStatus<8?(e.openBlock(),e.createElementBlock("view",{key:4},e.toDisplayString(t.$t("retain")),1)):(e.openBlock(),e.createElementBlock("view",{key:5}," — "))])])]),e.createElementVNode("view",{class:"parameter_zheng22"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("ChargingConnectionStatus")),1),1==t.uidatasdata.bms_ChgLinkSt?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_Batterystate1"},e.toDisplayString(t.$t("FastChargingConnection")),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_Batterystate1"},e.toDisplayString(t.$t("NoConnection")),1))]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("BatteryFaultLevel")),1),e.createElementVNode("view",{class:"parameter_Batterystate1"},[0==t.uidatasdata.bms_BatteryFaultLevl?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("NoMalfunction")),1)):1==t.uidatasdata.bms_BatteryFaultLevl?(e.openBlock(),e.createElementBlock("view",{key:1}," 1"+e.toDisplayString(t.$t("LevelLault")),1)):2==t.uidatasdata.bms_BatteryFaultLevl?(e.openBlock(),e.createElementBlock("view",{key:2}," 2"+e.toDisplayString(t.$t("LevelLault")),1)):3==t.uidatasdata.bms_BatteryFaultLevl?(e.openBlock(),e.createElementBlock("view",{key:3}," 3"+e.toDisplayString(t.$t("LevelLault")),1)):(e.openBlock(),e.createElementBlock("view",{key:4}," — "))])]),e.createElementVNode("view",{class:"parameter_zheng11 parameter_zheng102"})])])):e.createCommentVNode("",!0),5==r.segmented?(e.openBlock(),e.createElementBlock("view",{key:4,class:"parameter_box"},[e.createElementVNode("view",{class:"parameter_zheng1"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("WorkingMode")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("OffMode")),1)):1==t.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("CoolingMode")),1)):2==t.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:2},e.toDisplayString(t.$t("HeatingMode")),1)):3==t.uidatasdata.TMS_Status_TMS_WORK_MODE?(e.openBlock(),e.createElementBlock("view",{key:3},e.toDisplayString(t.$t("CirculatingMode")),1)):(e.openBlock(),e.createElementBlock("view",{key:4}," — "))])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("OutletTemperature")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.TMS_Status_TMS_WATEROUT_TEMP??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12",style:{height:"30px"}})])]),e.createElementVNode("view",{class:"parameter_zheng2"},[e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("HighVoltageRelayStatus")),1),e.createElementVNode("view",{class:"parameter_Batterystate"},[0==t.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST?(e.openBlock(),e.createElementBlock("view",{key:0},e.toDisplayString(t.$t("DisconnectedState")),1)):1==t.uidatasdata.TMS_Status_TMS_HV_CONTACT_ST?(e.openBlock(),e.createElementBlock("view",{key:1},e.toDisplayString(t.$t("ClosedState")),1)):(e.openBlock(),e.createElementBlock("view",{key:2}," — "))])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12"},e.toDisplayString(t.$t("waterTemperature")),1),e.createElementVNode("view",{class:"parameter_zheng13"},[e.createTextVNode(e.toDisplayString(t.uidatasdata.TMS_Status_TMS_WATERIN_TEMP??"—")+" ",1),e.createElementVNode("text",{class:"parameter_zheng14"},"℃")])]),e.createElementVNode("view",{class:"parameter_zheng11"},[e.createElementVNode("view",{class:"parameter_zheng12",style:{height:"30px"}})])])])):e.createCommentVNode("",!0),1==this.segmented?(e.openBlock(),e.createElementBlock("view",{key:5,class:"parameter_zheng3"},[0==t.uidatasdata.SysControl_Gun1RunCmd?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_zheng31111",onClick:n[4]||(n[4]=(...e)=>i.dialogToggle&&i.dialogToggle(...e))},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32"},e.toDisplayString(t.$t("open")),1)])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_zheng31111"},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"},e.toDisplayString(t.$t("open")),1)])])),1==t.uidatasdata.SysControl_Gun1RunCmd?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_zheng31111",onClick:n[5]||(n[5]=(...e)=>i.onstopit&&i.onstopit(...e))},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng33"},e.toDisplayString(t.$t("stopIt")),1)])])):(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_zheng31111"},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"},e.toDisplayString(t.$t("stopIt")),1)])]))])):e.createCommentVNode("",!0),2==this.segmented?(e.openBlock(),e.createElementBlock("view",{key:6,class:"parameter_zheng3"},[0==t.uidatasdata.SysControl_Gun2RunCmd?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_zheng31111",onClick:n[6]||(n[6]=(...e)=>i.dialogToggle&&i.dialogToggle(...e))},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32"},e.toDisplayString(t.$t("open")),1)])])):(e.openBlock(),e.createElementBlock("view",{key:1,class:"parameter_zheng31111"},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"},e.toDisplayString(t.$t("open")),1)])])),1==t.uidatasdata.SysControl_Gun2RunCmd?(e.openBlock(),e.createElementBlock("view",{key:2,class:"parameter_zheng31111",onClick:n[7]||(n[7]=(...e)=>i.onstopit&&i.onstopit(...e))},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng33"},e.toDisplayString(t.$t("stopIt")),1)])])):(e.openBlock(),e.createElementBlock("view",{key:3,class:"parameter_zheng31111"},[e.createElementVNode("view",{class:"parameter_zheng31"},[e.createElementVNode("view",{class:"parameter_zheng32ccc"},e.toDisplayString(t.$t("stopIt")),1)])]))])):e.createCommentVNode("",!0)]),e.createElementVNode("view",{class:"parameter_home"},[e.createElementVNode("view",{class:"parameter_home1",onClick:n[8]||(n[8]=(...e)=>i.onreturn&&i.onreturn(...e))},[e.createElementVNode("image",{src:fs,mode:""}),e.createElementVNode("text",{class:"parameter_hometext"},e.toDisplayString(t.$t("ReturnModeSelection")),1)]),r.faultsdata.length>0&&!r.SysFaultState?(e.openBlock(),e.createElementBlock("view",{key:0,class:"parameter_home2"},[e.createElementVNode("image",{src:_s,mode:""}),e.createElementVNode("swiper",{class:"swiper",circular:"",autoplay:!0,interval:2e3,duration:500,vertical:!0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.faultsdata,((t,a)=>(e.openBlock(),e.createElementBlock("swiper-item",{key:a},[e.createElementVNode("view",{class:"parameter_home3"},e.toDisplayString(t.CONTENT),1)])))),128))])])):e.createCommentVNode("",!0)])])]),e.createVNode(u,{ref:"alertDialog"},{default:e.withCtx((()=>[e.createVNode(l,{mode:r.modeinput,placeholder:"请输入内容",modelValue:r.value,"onUpdate:modelValue":n[9]||(n[9]=e=>r.value=e),type:r.successtype,cancelText:t.$t("CancelReturn"),confirmText:r.confirmText,title:r.title,content:r.content,onConfirm:i.dialogConfirm,onClose:i.dialogClose},null,8,["mode","modelValue","type","cancelText","confirmText","title","content","onConfirm","onClose"])])),_:1},512)])}],["__scopeId","data-v-2b8f5bb8"]]),Os={data:()=>({logo:"../../static/logo/logo31.png"}),onLoad(){},computed:{...Fn(["formattedTime","status"])},beforeUnmount(){},methods:{onreturn(e){t("log","at pages/faultlist/index.vue:108",e),this.$store.commit("getevent",e),"基础"==e?uni.redirectTo({url:"/pages/SYSifo/index"}):uni.redirectTo({url:"/pages/details/index"})},onclick(){uni.redirectTo({url:"/pages/index/index"})}}};const Ms=s(Os,[["render",function(t,a,n,s,o,r){return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:o.logo,mode:"aspectFit"},null,8,["src"]),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"},e.toDisplayString(t.formattedTime),1),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(e.toDisplayString(t.$t("status"))+" ",1),"ok"==t.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state"},e.toDisplayString(t.$t("online")),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state1"},e.toDisplayString(t.$t("offline")),1))])])])]),e.createElementVNode("view",{class:"parameter"},[e.createElementVNode("view",{class:"parameter_list"},[e.createElementVNode("view",{class:"parameter_box",onClick:a[0]||(a[0]=e=>r.onreturn("故障"))},[e.createElementVNode("view",{class:"parameter_list1"},[e.createElementVNode("image",{src:"/static/faultlist.png",mode:""})]),e.createElementVNode("view",{class:"fault_txt"},e.toDisplayString(t.$t("FaultRec")),1)]),e.createElementVNode("view",{class:"parameter_box",onClick:a[1]||(a[1]=e=>r.onreturn("事件"))},[e.createElementVNode("view",{class:"parameter_list1"},[e.createElementVNode("image",{src:"/static/event.png",mode:""})]),e.createElementVNode("view",{class:"fault_txt"},e.toDisplayString(t.$t("RunningRec")),1)]),e.createElementVNode("view",{class:"parameter_box",onClick:a[2]||(a[2]=e=>r.onreturn("基础"))},[e.createElementVNode("view",{class:"parameter_list1"},[e.createElementVNode("image",{src:"/static/Basics.png",mode:""})]),e.createElementVNode("view",{class:"fault_txt"},e.toDisplayString(t.$t("SYSIfo")),1)])])]),e.createElementVNode("view",{class:"parameter_bottom"},[e.createElementVNode("view",{style:{display:"flex","align-items":"center"}},[e.createElementVNode("view",{class:"parameter_bottom1",onClick:a[3]||(a[3]=(...e)=>r.onclick&&r.onclick(...e))},[e.createElementVNode("image",{src:fs,mode:""}),e.createElementVNode("text",{class:"parameter_bottom2"},e.toDisplayString(t.$t("ReturnModeSelection")),1)])])])])}],["__scopeId","data-v-59102126"]]);const Ls=s({data:()=>({logo:"../../static/logo/logo31.png"}),onLoad(){},computed:{...Fn(["formattedTime","status"]),...Fn({uidatasdata:e=>e.uidatasdata}),backgroundStyle(){return{backgroundImage:`url(${this.$t("offline")})`,backgroundSize:"100% 100%"}}},beforeUnmount(){},methods:{onclick(){uni.redirectTo({url:"/pages/index/index"})},onReturn(){uni.redirectTo({url:"/pages/faultlist/index"})}}},[["render",function(t,a,n,s,o,r){return e.openBlock(),e.createElementBlock("view",{class:"content"},[e.createElementVNode("view",{class:"top"},[e.createElementVNode("image",{class:"top_logo",src:o.logo,mode:"aspectFit"},null,8,["src"]),e.createElementVNode("view",{class:"time"},[e.createElementVNode("view",{class:"time_top"},e.toDisplayString(t.formattedTime),1),e.createElementVNode("view",{class:"time_bottom"},[e.createElementVNode("view"),e.createElementVNode("view",{class:"time_bottom1"},[e.createTextVNode(e.toDisplayString(t.$t("status"))+" ",1),"ok"==t.status?(e.openBlock(),e.createElementBlock("view",{key:0,class:"time_state"},e.toDisplayString(t.$t("online")),1)):(e.openBlock(),e.createElementBlock("view",{key:1,class:"time_state1"},e.toDisplayString(t.$t("offline")),1))])])])]),e.createElementVNode("view",{class:"parameter"},[e.createElementVNode("view",{class:"parameter_list"},[e.createElementVNode("view",{class:"parameter_list1"},[e.createElementVNode("view",{class:"parameter_list1a"},[e.createElementVNode("view",{class:"parameter_list1a1"},e.toDisplayString(t.$t("configuration")),1),e.createElementVNode("view",{class:"parameter_list1a1"},e.toDisplayString(t.$t("Batterycapacity")),1),e.createElementVNode("view",{class:"parameter_list1a1"},e.toDisplayString(t.$t("Batterytype")),1),e.createElementVNode("view",{class:"parameter_list1a1"},e.toDisplayString(t.$t("Communicationpower")),1),e.createElementVNode("view",{class:"parameter_list1a1"},e.toDisplayString(t.$t("DCpower")),1)]),e.createElementVNode("view",{class:"parameter_list1b"},[e.createElementVNode("view",{class:"parameter_list1a2"},e.toDisplayString(t.$t("configurationz")),1),e.createElementVNode("view",{class:"parameter_list1a2"},e.toDisplayString(t.$t("Batterycapacityz")),1),e.createElementVNode("view",{class:"parameter_list1a2"},e.toDisplayString(t.$t("Batterytypez")),1),e.createElementVNode("view",{class:"parameter_list1a2"},e.toDisplayString(t.$t("Communicationpowerz")),1),e.createElementVNode("view",{class:"parameter_list1a2"},e.toDisplayString(t.$t("DCpowerz")),1)])]),e.createElementVNode("view",{class:"parameter_list11"}),e.createElementVNode("view",{class:"parameter_list1"},[e.createElementVNode("view",{class:"parameter_list1ab"},[e.createElementVNode("view",{class:"parameter_list1a1"},e.toDisplayString(t.$t("Systemversion")),1),e.createElementVNode("view",{class:"parameter_list1a1"},e.toDisplayString(t.$t("MCSVer")),1),e.createElementVNode("view",{class:"parameter_list1a1"},e.toDisplayString(t.$t("CCUVer")),1)]),e.createElementVNode("view",{class:"parameter_list1b"},[e.createElementVNode("view",{class:"parameter_list1a2"},e.toDisplayString(t.$t("Systemversionz")),1),e.createElementVNode("view",{class:"parameter_list1a2"},e.toDisplayString(t.$t("MCSVerz")),1),e.createElementVNode("view",{class:"parameter_list1a2"},e.toDisplayString(t.$t("CCUVerz")),1)])])])]),e.createElementVNode("view",{class:"parameter_bottom"},[e.createElementVNode("view",{style:{display:"flex","align-items":"center"}},[e.createElementVNode("view",{class:"parameter_bottom1",onClick:a[0]||(a[0]=(...e)=>r.onclick&&r.onclick(...e))},[e.createElementVNode("image",{src:fs,mode:""}),e.createElementVNode("text",{class:"parameter_bottom2"},e.toDisplayString(t.$t("ReturnModeSelection")),1)]),e.createElementVNode("view",{class:"parameter_bottom11",onClick:a[1]||(a[1]=(...e)=>r.onReturn&&r.onReturn(...e))},[e.createElementVNode("image",{src:Vs,mode:""}),e.createElementVNode("text",{class:"parameter_bottom2"},e.toDisplayString(t.$t("Return")),1)])])])])}],["__scopeId","data-v-4110a273"]]);__definePage("pages/index/index",Jn),__definePage("pages/home/index",vs),__definePage("pages/details/index",bs),__definePage("pages/electricity/index",Ds),__definePage("pages/supply/supply",$s),__definePage("pages/supplyss/supplyss",As),__definePage("pages/faultlist/index",Ms),__definePage("pages/SYSifo/index",Ls);const Rs={data:()=>({}),computed:{},onLaunch:function(){plus.navigator.setFullscreen(!0),plus.navigator.hideSystemNavigation()},mounted(){this.$store.dispatch("startClock"),this.$store.dispatch("fetchFaultsList")},beforeUnmount(){},methods:{},onShow:function(){t("log","at App.vue:37","App Show")},onHide:function(){t("log","at App.vue:40","App Hide")}},Fs=(Us={state:{formattedTime:ln("yyyy-MM-dd hh:mm:ss"),uidatasdata:{},selectorid:null,selectorindex:null,status:null,num:0,event:"故障"},mutations:{increment(e,t){1==t?e.num++:e.num=0},getevent(e,t){e.event=t},setFormattedTime(e,t){e.formattedTime=t},setUidatasData(e,t){e.uidatasdata=t},setstatus(e,t){e.status=t},setSelectorId(e,t){e.selectorid=t},setSelectorIndex(e,t){e.selectorindex=t}},actions:{startClock({commit:e}){setInterval((()=>{const t=ln("yyyy-MM-dd hh:mm:ss");e("setFormattedTime",t)}),1e3)},async fetchFaultsList({commit:e,state:a}){try{let n={id:"038f90dc-6e08-4a05-bf1e-7929e02f5fc5",page:1,rows:1e4};const s=await(async e=>{try{const a=await uni.$http.get("/api/v1/uidatas/rt/uis/038f90dc-6e08-4a05-bf1e-7929e02f5fc5",e,{"Content-Type":"application/json;charset=utf-8",Authorization:`JWT ${uni.getStorageSync("token")}`});return t("log","at api/api.js:32",a),200!=a.statusCode||"token过期且未提供刷新令牌"==a.data.error?(uni.removeStorageSync("token"),cn(),a.data):a.data}catch(a){return t("log","at api/api.js:48",a),cn(),response.data}})(n);if("ok"==s.status)if(null!=s.data&&s.data!=[]){const t=s.data.reduce(((e,t)=>{let a=t[t.module],n=parseFloat(a),s="";return s="BatCellVPeak_ValMaxCellVoltage"==t.id||"BatCellVPeak_ValMinCellVoltage"==t.id||"PCSTotalOutputPower"==t.id?isNaN(n)?a:n.toFixed(3):"CellTemperatureLimitsStatus_MaxTemp"==t.id||"CellTemperatureLimitsStatus_MinTemp"==t.id||"TMS_Status_TMS_WATEROUT_TEMP"==t.id||"TMS_Status_TMS_WATERIN_TEMP"==t.id?isNaN(n)?a:n.toFixed(1):"SOC"==t.id||"ChargingStation_1_telemetryFrameccu_EstimateTheRemainingChargingTime"==t.id||"ChargingStation_2_telemetryFrameccu_EstimateTheRemainingChargingTime"==t.id?isNaN(n)?a:n.toFixed(0):"PCSPortAPhaseVoltage"==t.id||"PCSPortBPhaseVoltage"==t.id||"PCSPortCPhaseVoltage"==t.id||"PCSOutputA-phaseCurrent"==t.id||"PCSOutputB-phaseCurrent"==t.id||"PCSOutputC-phaseCurrent"==t.id?isNaN(n)?a:n.toFixed(2):isNaN(n)?a:n.toFixed(1),!isNaN(n)&&n<0&&(s=Math.abs(n)),{...e,[t.id]:s}}),{});e("setUidatasData",t),1==t.SysControl_RunCmd||1==t.SysControl_Gun1RunCmd||1==t.SysControl_Gun2RunCmd?(e("setSelectorId",t.SysInstall_EssRunModeManual),e("setSelectorIndex",1)):(e("setSelectorId",null),e("setSelectorIndex",null)),a.num>=3&&(e("increment",0),e("setstatus",s.status)),e("increment",1)}else a.num>=3&&(e("increment",0),e("setstatus","NO")),e("increment",1)}catch(n){t("log","at store/index.js:151",n),e("setstatus","NO")}finally{setTimeout((()=>{this.dispatch("fetchFaultsList")}),2e3)}}}},new Mn(Us));var Us;const js={MainTitle:"iTrailer",status:"SYS Status:",version:"version",CommunicationRecharge:"AC IN",CommunicationRechargeInput:"AC Input",CommunicationSupply:"AC OUT",CommunicationSupplyOutput:"AC Output",DirectRecharge:"DC IN",DirectRechargeInput:"DC Input",DirectSupply:"DC OUT",DirectSupplyOutput:"DC Output",SystemInformation:"SYS Info",state:"Breaker",state163A:"Breaker1 63A",state63A2:"Breaker2 63A",state125A:"Breaker1 125A",state63A:"Breaker2 63A",state16A:"Breaker3 16A",online:"ON Line",offline:"Off Line",connect:"ON",breakoff:"OFF",workingCondition:"Running Status",StandbyMode:"Standby",work:"Running",ChargingCompleted:"Finished",ChargingPause:"Pause",BatteryStatus:"BAT Status",fault:"Fault",ChuShiHua:"Available",SystemStatus:"SYS Status",NotupyetVoltage:"Ready",HighVoltageMedium:"Unknown",voltagehasbeen:"Connected",Underhighpressure:"Unknown",uncharged:"Unavailable",Chargingprogress:"Discharge",Chargingmalfunction:"AC Charge",full:"DC Charge",retain:"Retain",GunAinformation:"A Gun",GunBinformation:"B Gun",exchangeinformation:"AC Info",Batteryinformation:"BAT Info",statisticalinformation:"Running Info",coolinginformation:"TMS Info",PhaseVoltage:"Phase",PhaseVoltageAV:"Phase A",PhaseVoltageBV:"Phase B",PhaseVoltageCV:"Phase C",PhaseVoltageAA:"Phase A",PhaseVoltageBA:"Phase B",PhaseVoltageCA:"Phase C",powerSupply:"Power Input",DischargeCapacity:"Power Output",PhaseCurrent:"Phase",DischargePower:"Power Output",Supplementarypower:"Power Input",TotalPressure:"BAT Voltage",AllowChargingPower:"Max Power",MaximumVoltage:"Max Cell",MaximumTemperature:"Max Temp",BatteryCurrent:"BAT Current",AllowChargingCurrent:"Max Current",MinimumIndividualVoltage:"Min Cell",MinimumMonomerTemperature:"Min Temp",invalid:"Unavailable",DischargeMode:"Discharge",pcsChargingMode:"AC Charge",EuropeanStandardChargingMode:"DC Charge",WorkingMode:"Running Mode",OffMode:"Standby",CoolingMode:"Cooling",HeatingMode:"Heating",CirculatingMode:"Self Loop",NO:"NO",OutletTemperature:"Outlets",HighVoltageRelayStatus:"TMS Relay",DisconnectedState:"OFF",ClosedState:"ON",waterTemperature:"Inlets",open:"Start",stopIt:"Stop",power:"AC",given:"IN",powergiven:"Power",ACinputpowergiven:"AC input Power",confirm:"ok",ReturnModeSelection:"Back to Home",Return:"Return",CancelReturn:"Back",ConfirmStart:"ok",ConfirmStop:"ok",popUpTitle:"Tips",popUpTitleStop:"Tips",popUpContent:"Are you sure to START the iTrailer?",popUpContentStop:"Are you sure to STOP the iTrailer?",ACRechargeelectricitytext:"When AC power is replenished, all AC output terminals should be disconnected",ACpowerSupplytext:"When AC power is supplied, all AC input terminals should be disconnected",OperationSuccessful:"Operation successful",operationFailed:"operation failed",ChargingPower:"Input Power",ChargingVoltage:"Charging Voltage",ChargingCurrent:"Charging Current",VehicleSOC:"EV SOC",ChargingCapacity:"Charging Capacity",CharingPower:"Charging Power",ChargingFee:"Charging Fee",USD:"USD",ChargingTime:"Charging Time",AllowableDischargepower:"Max Power",AllowDischargeCurrent:"Max Current",ConnectionStatus:"Link Status",formNO:"NO",formFailure:"Failure",formUnit:"Unit",formDescription:"Description",formRecover:"Recover",FaultRec:"Fault Rec",WarningRec:"Warning Rec",RunningRec:"Running Rec",SYSIfo:"SYS Info",FaultClearing:"Recover",LastPage:"Last page",NextPage:"Next page",RunningTimes:"Running Times",InputCapacity:"Input Capacity",AccumulateInput:"Accumulate Input",RunningTimesdischarge:"Running Times",InputCapacitydischarge:"Output Capacity",AccumulateInputdischarge:"Accumulate Output",RunningTimesmin:"min",Tipswarning:"Only one mode can be used at the same time",configuration:"BAT Configuration",Batterycapacity:"BAT Energy",Batterytype:"BAT Type",Communicationpower:"AC Power",DCpower:"DC Power",configurationz:"1P216S",Batterycapacityz:"200kWh",Batterytypez:"lithium ion LFP",Communicationpowerz:"50kW",DCpowerz:"180kW",Systemversion:"SYS Ver.",MCSVer:"MCS Ver.",CCUVer:"CCU Ver.",SN:"S/N",Systemversionz:"V2.0",MCSVerz:"V2.0",CCUVerz:"V2.0",SN1:"S/N",qx:"../../static/qxen.png",qd:"../../static/qden.png"},qs={MainTitle:"iTrailer",status:"连接状态:",version:"应用版本",CommunicationRecharge:"交流补电",CommunicationRechargeInput:"交流补电",CommunicationSupply:"交流供电",CommunicationSupplyOutput:"交流供电",DirectRecharge:"直流补电",DirectRechargeInput:"直流补电",DirectSupply:"直流供电",DirectSupplyOutput:"直流供电",SystemInformation:"系统信息",state:"状态",state163A:"63A1状态",state63A2:"63A2状态",state125A:"125A状态",state63A:"63A状态",state16A:"16A状态",online:"在线",offline:"离线",connect:"连接",breakoff:"断开",workingCondition:"工作状态",StandbyMode:"待机",work:"工作",ChargingCompleted:"充电完成",ChargingPause:"充电暂停",BatteryStatus:"电池状态",fault:"故障",ChuShiHua:"出始化",SystemStatus:"系统状态",NotupyetVoltage:"未上高压",HighVoltageMedium:"上高压中",voltagehasbeen:"已上高压",Underhighpressure:"下高压中",ChargingStatus:"充电状态",uncharged:"无效",Chargingprogress:"未充电",Chargingmalfunction:"PCS充电",full:"欧标充电",retain:"保留",ChargingConnectionStatus:"充电连接状态",FastChargingConnection:"快充连接",NoConnection:"无连接",GunAinformation:"枪A信息",GunBinformation:"枪B信息",exchangeinformation:"交流信息",Batteryinformation:"电池信息",statisticalinformation:"统计信息",coolinginformation:"液冷信息",PhaseVoltageAV:"A相电压",PhaseVoltageBV:"B相电压",PhaseVoltageCV:"C相电压",PhaseVoltageAA:"A相电流",PhaseVoltageBA:"B相电流",PhaseVoltageCA:"C相电流",powerSupply:"补电电量",DischargeCapacity:"放电电量",PhaseCurrent:"相电流",DischargePower:"放电功率",Supplementarypower:"补电功率",TotalPressure:"电池内总压",AllowChargingPower:"最大允许充电功率",MaximumVoltage:"最大单体电压",MaximumTemperature:"最大单体温度",BatteryCurrent:"电池总电流",AllowChargingCurrent:"最大允许充电电流",MinimumIndividualVoltage:"最小单体电压",MinimumMonomerTemperature:"最小单体温度",WorkingModeBatterySystem:"电池系统工作模式",invalid:"无效",DischargeMode:"放电模式",pcsChargingMode:"pcs充电模式",EuropeanStandardChargingMode:"欧标充电模式",BatterySystemStatus:"电池系统状态",initialization:"初始化",AccumulatedChargingCapacityCommunication:"交流累计充电电量",WorkingMode:"工作模式",OffMode:"待机模式",CoolingMode:"制冷模式",HeatingMode:"自热模式",CirculatingMode:"自循环模式",NO:"NO",OutletTemperature:"出水温度",PowerDemand:"需求功率",HighVoltageRelayStatus:"高压继电器状态",DisconnectedState:"断开",ClosedState:"闭合",waterTemperature:"入水温度",BatteryFaultLevel:"电池故障等级",NoMalfunction:"无故障",LevelLault:"级故障",open:"开启",stopIt:"停止",power:"功率",given:"给定",powergiven:"功率给定",ACinputpowergiven:"功率给定",confirm:"确认",ReturnModeSelection:"返回模式选择",Return:"返回上页",CancelReturn:"取消返回",ConfirmStart:"确认启动",ConfirmStop:"确认停止",popUpTitle:"你确定要开启该设备吗?",popUpTitleStop:"你确定要停止该设备吗?",popUpContent:"启动设备前,请确认参照用户手册确定设备与各部件处于正确状态!",popUpContentStop:"设备完全停止后,方能进行后续操作,否则可能危及生命安全!",ACRechargeelectricitytext:"AC补电时AC输出端应全部断开",ACpowerSupplytext:"AC供电时AC输入端应全部断开",OperationSuccessful:"操作成功",operationFailed:"操作失败",ChargingPower:"充电功率",ChargingVoltage:"充电电压",ChargingCurrent:"充电电流",VehicleSOC:"车辆SOC",ChargingCapacity:"充电电量",CharingPower:"充电功率",ChargingFee:"充电费用",USD:"元",ChargingTime:"充电时间",AllowableDischargepower:"最大允许放电功率",AllowDischargeCurrent:"最大允许放电电流",ConnectionStatus:"连接状态",formNO:"序号",formUnit:"设备",formDescription:"内容",formFailure:"发生时间",formRecover:"恢复时间",FaultRec:"故障记录",WarningRec:"告警记录",RunningRec:"运行记录",SYSIfo:"系统信息",FaultClearing:"故障清除",LastPage:"上一页",NextPage:"下一页",RunningTimes:"本次补电时长",InputCapacity:"本次补电电量",AccumulateInput:"累计补电电量",RunningTimesdischarge:"本次放电时长",InputCapacitydischarge:"本次放电电量",AccumulateInputdischarge:"累计放电电量",RunningTimesmin:"分钟",Tipswarning:"若想重新选择模式,请返回之前模式停止以后再重新选择!",configuration:"电池配置",Batterycapacity:"电池容量",Batterytype:"电池类型",Communicationpower:"交流功率",DCpower:"直流功率",configurationz:"1P204S",Batterycapacityz:"200kWh",Batterytypez:"lithium ion LFP",Communicationpowerz:"50kW",DCpowerz:"180kW",Systemversion:"系统版本",MCSVer:"MCS Ver.",CCUVer:"CCU Ver.",SN:"S/N",Systemversionz:"V2.0",MCSVerz:"V2.0",CCUVerz:"V2.0",SN1:"S/N",DeviceID:"20240310002",qx:"../../static/qx.png",qd:"../../static/qd.png"},Ws={CommunicationRecharge:"交流补电",CommunicationSupply:"交流供电",DirectRecharge:"交流补电",DirectSupply:"交流补电"},Hs="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,Ks=e=>Hs?Symbol(e):e,Js=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Gs=e=>"number"==typeof e&&isFinite(e),Ys=e=>"[object RegExp]"===lo(e),Qs=e=>uo(e)&&0===Object.keys(e).length;function Xs(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Zs=Object.assign;function eo(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const to=Object.prototype.hasOwnProperty;function ao(e,t){return to.call(e,t)}const no=Array.isArray,so=e=>"function"==typeof e,oo=e=>"string"==typeof e,ro=e=>"boolean"==typeof e,io=e=>null!==e&&"object"==typeof e,co=Object.prototype.toString,lo=e=>co.call(e),uo=e=>"[object Object]"===lo(e),po=Object.prototype.hasOwnProperty;function mo(e,t){return po.call(e,t)}const ho=e=>null!==e&&"object"==typeof e,go=[];go[0]={w:[0],i:[3,0],"[":[4],o:[7]},go[1]={w:[1],".":[2],"[":[4],o:[7]},go[2]={w:[2],i:[3,0],0:[3,0]},go[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},go[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},go[5]={"'":[4,0],o:8,l:[5,0]},go[6]={'"':[4,0],o:8,l:[6,0]};const fo=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function _o(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function yo(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(a=t,fo.test(a)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var a}const vo=new Map;function wo(e,t){if(!ho(e))return null;let a=vo.get(t);if(a||(a=function(e){const t=[];let a,n,s,o,r,i,c,l=-1,u=0,p=0;const d=[];function m(){const t=e[l+1];if(5===u&&"'"===t||6===u&&'"'===t)return l++,s="\\"+t,d[0](),!0}for(d[0]=()=>{void 0===n?n=s:n+=s},d[1]=()=>{void 0!==n&&(t.push(n),n=void 0)},d[2]=()=>{d[0](),p++},d[3]=()=>{if(p>0)p--,u=4,d[0]();else{if(p=0,void 0===n)return!1;if(n=yo(n),!1===n)return!1;d[1]()}};null!==u;)if(l++,a=e[l],"\\"!==a||!m()){if(o=_o(a),c=go[u],r=c[o]||c.l||8,8===r)return;if(u=r[0],void 0!==r[1]&&(i=d[r[1]],i&&(s=a,!1===i())))return;if(7===u)return t}}(t),a&&vo.set(t,a)),!a)return null;const n=a.length;let s=e,o=0;for(;oe,Eo=e=>"",No=e=>0===e.length?"":e.join(""),Vo=e=>null==e?"":no(e)||uo(e)&&e.toString===co?JSON.stringify(e,null,2):String(e);function Co(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function bo(e={}){const t=e.locale,a=function(e){const t=Gs(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Gs(e.named.count)||Gs(e.named.n))?Gs(e.named.count)?e.named.count:Gs(e.named.n)?e.named.n:t:t}(e),n=io(e.pluralRules)&&oo(t)&&so(e.pluralRules[t])?e.pluralRules[t]:Co,s=io(e.pluralRules)&&oo(t)&&so(e.pluralRules[t])?Co:void 0,o=e.list||[],r=e.named||{};Gs(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(a,r);function i(t){const a=so(e.messages)?e.messages(t):!!io(e.messages)&&e.messages[t];return a||(e.parent?e.parent.message(t):Eo)}const c=uo(e.processor)&&so(e.processor.normalize)?e.processor.normalize:No,l=uo(e.processor)&&so(e.processor.interpolate)?e.processor.interpolate:Vo,u={list:e=>o[e],named:e=>r[e],plural:e=>e[n(a,e.length,s)],linked:(t,a)=>{const n=i(t)(u);return oo(a)?(s=a,e.modifiers?e.modifiers[s]:ko)(n):n;var s},message:i,type:uo(e.processor)&&oo(e.processor.type)?e.processor.type:"text",interpolate:l,normalize:c};return u} /*! * @intlify/message-compiler v9.1.9 * (c) 2021 kazuya kawaguchi * Released under the MIT License. */function xo(e,t,a={}){const{domain:n,messages:s,args:o}=a,r=new SyntaxError(String(e));return r.code=e,t&&(r.location=t),r.domain=n,r} /*! * @intlify/core-base v9.1.9 * (c) 2021 kazuya kawaguchi * Released under the MIT License. */let To=0;function Do(e={}){const t=oo(e.version)?e.version:"9.1.9",a=oo(e.locale)?e.locale:"en-US",n=no(e.fallbackLocale)||uo(e.fallbackLocale)||oo(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,s=uo(e.messages)?e.messages:{[a]:{}},o=uo(e.datetimeFormats)?e.datetimeFormats:{[a]:{}},r=uo(e.numberFormats)?e.numberFormats:{[a]:{}},i=Zs({},e.modifiers||{},{upper:e=>oo(e)?e.toUpperCase():e,lower:e=>oo(e)?e.toLowerCase():e,capitalize:e=>oo(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),c=e.pluralRules||{},l=so(e.missing)?e.missing:null,u=!ro(e.missingWarn)&&!Ys(e.missingWarn)||e.missingWarn,p=!ro(e.fallbackWarn)&&!Ys(e.fallbackWarn)||e.fallbackWarn,d=!!e.fallbackFormat,m=!!e.unresolving,h=so(e.postTranslation)?e.postTranslation:null,g=uo(e.processor)?e.processor:null,f=!ro(e.warnHtmlMessage)||e.warnHtmlMessage,_=!!e.escapeParameter,y=so(e.messageCompiler)?e.messageCompiler:undefined,v=so(e.onWarn)?e.onWarn:Xs,w=e,S=io(w.__datetimeFormatters)?w.__datetimeFormatters:new Map,k=io(w.__numberFormatters)?w.__numberFormatters:new Map,E=io(w.__meta)?w.__meta:{};To++;return{version:t,cid:To,locale:a,fallbackLocale:n,messages:s,datetimeFormats:o,numberFormats:r,modifiers:i,pluralRules:c,missing:l,missingWarn:u,fallbackWarn:p,fallbackFormat:d,unresolving:m,postTranslation:h,processor:g,warnHtmlMessage:f,escapeParameter:_,messageCompiler:y,onWarn:v,__datetimeFormatters:S,__numberFormatters:k,__meta:E}}function Bo(e,t,a,n,s){const{missing:o,onWarn:r}=e;if(null!==o){const n=o(e,a,t,s);return oo(n)?n:t}return t}function $o(e,t,a){const n=e;n.__localeChainCache||(n.__localeChainCache=new Map);let s=n.__localeChainCache.get(a);if(!s){s=[];let e=[a];for(;no(e);)e=Po(s,e,t);const o=no(t)?t:uo(t)?t.default?t.default:null:t;e=oo(o)?[o]:o,no(e)&&Po(s,e,!1),n.__localeChainCache.set(a,s)}return s}function Po(e,t,a){let n=!0;for(let s=0;s"",Lo=e=>so(e);function Ro(e,...t){const{fallbackFormat:a,postTranslation:n,unresolving:s,fallbackLocale:o,messages:r}=e,[i,c]=Uo(...t),l=(ro(c.missingWarn)?c.missingWarn:e.missingWarn,ro(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,ro(c.escapeParameter)?c.escapeParameter:e.escapeParameter),u=!!c.resolvedMessage,p=oo(c.default)||ro(c.default)?ro(c.default)?i:c.default:a?i:"",d=a||""!==p,m=oo(c.locale)?c.locale:e.locale;l&&function(e){no(e.list)?e.list=e.list.map((e=>oo(e)?eo(e):e)):io(e.named)&&Object.keys(e.named).forEach((t=>{oo(e.named[t])&&(e.named[t]=eo(e.named[t]))}))}(c);let[h,g,f]=u?[i,m,r[m]||{}]:function(e,t,a,n,s,o){const{messages:r,onWarn:i}=e,c=$o(e,n,a);let l,u={},p=null;const d="translate";for(let m=0;m{y=!0}));if(y)return h;const w=function(e,t,a,n){const{modifiers:s,pluralRules:o}=e,r=n=>{const s=wo(a,n);if(oo(s)){let a=!1;const o=Fo(e,n,t,s,n,(()=>{a=!0}));return a?Mo:o}return Lo(s)?s:Mo},i={locale:t,modifiers:s,pluralRules:o,messages:r};e.processor&&(i.processor=e.processor);n.list&&(i.list=n.list);n.named&&(i.named=n.named);Gs(n.plural)&&(i.pluralIndex=n.plural);return i}(e,g,f,c),S=function(e,t,a){return t(a)}(0,v,bo(w));return n?n(S):S}function Fo(e,t,a,n,s,o){const{messageCompiler:r,warnHtmlMessage:i}=e;if(Lo(n)){const e=n;return e.locale=e.locale||a,e.key=e.key||t,e}const c=r(n,function(e,t,a,n,s,o){return{warnHtmlMessage:s,onError:e=>{throw o&&o(e),e},onCacheKey:e=>((e,t,a)=>Js({l:e,k:t,s:a}))(t,a,e)}}(0,a,s,0,i,o));return c.locale=a,c.key=t,c.source=n,c}function Uo(...e){const[t,a,n]=e,s={};if(!oo(t)&&!Gs(t)&&!Lo(t))throw Oo(14);const o=Gs(t)?String(t):(Lo(t),t);return Gs(a)?s.plural=a:oo(a)?s.default=a:uo(a)&&!Qs(a)?s.named=a:no(a)&&(s.list=a),Gs(n)?s.plural=n:oo(n)?s.default=n:uo(n)&&Zs(s,n),[o,s]}function jo(e,...t){const{datetimeFormats:a,unresolving:n,fallbackLocale:s,onWarn:o}=e,{__datetimeFormatters:r}=e,[i,c,l,u]=qo(...t);ro(l.missingWarn)?l.missingWarn:e.missingWarn;ro(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn;const p=!!l.part,d=oo(l.locale)?l.locale:e.locale,m=$o(e,s,d);if(!oo(i)||""===i)return new Intl.DateTimeFormat(d).format(c);let h,g={},f=null;for(let v=0;vt(n,s,e.getCurrentInstance()||void 0,o)}function nr(e,t){const{messages:a,__i18n:n}=t,s=uo(a)?a:no(n)?{}:{[e]:{}};if(no(n)&&n.forEach((({locale:e,resource:t})=>{e?(s[e]=s[e]||{},or(t,s[e])):or(t,s)})),t.flatJson)for(const o in s)ao(s,o)&&So(s[o]);return s}const sr=e=>!io(e)||no(e);function or(e,t){if(sr(e)||sr(t))throw Go(20);for(const a in e)ao(e,a)&&(sr(e[a])||sr(t[a])?t[a]=e[a]:or(e[a],t[a]))}function rr(t={}){const{__root:a}=t,n=void 0===a;let s=!ro(t.inheritLocale)||t.inheritLocale;const o=e.ref(a&&s?a.locale.value:oo(t.locale)?t.locale:"en-US"),r=e.ref(a&&s?a.fallbackLocale.value:oo(t.fallbackLocale)||no(t.fallbackLocale)||uo(t.fallbackLocale)||!1===t.fallbackLocale?t.fallbackLocale:o.value),i=e.ref(nr(o.value,t)),c=e.ref(uo(t.datetimeFormats)?t.datetimeFormats:{[o.value]:{}}),l=e.ref(uo(t.numberFormats)?t.numberFormats:{[o.value]:{}});let u=a?a.missingWarn:!ro(t.missingWarn)&&!Ys(t.missingWarn)||t.missingWarn,p=a?a.fallbackWarn:!ro(t.fallbackWarn)&&!Ys(t.fallbackWarn)||t.fallbackWarn,d=a?a.fallbackRoot:!ro(t.fallbackRoot)||t.fallbackRoot,m=!!t.fallbackFormat,h=so(t.missing)?t.missing:null,g=so(t.missing)?ar(t.missing):null,f=so(t.postTranslation)?t.postTranslation:null,_=!ro(t.warnHtmlMessage)||t.warnHtmlMessage,y=!!t.escapeParameter;const v=a?a.modifiers:uo(t.modifiers)?t.modifiers:{};let w,S=t.pluralRules||a&&a.pluralRules;w=Do({version:"9.1.9",locale:o.value,fallbackLocale:r.value,messages:i.value,messageCompiler:function(e){return t=>t.normalize([e])},datetimeFormats:c.value,numberFormats:l.value,modifiers:v,pluralRules:S,missing:null===g?void 0:g,missingWarn:u,fallbackWarn:p,fallbackFormat:m,unresolving:!0,postTranslation:null===f?void 0:f,warnHtmlMessage:_,escapeParameter:y,__datetimeFormatters:uo(w)?w.__datetimeFormatters:void 0,__numberFormatters:uo(w)?w.__numberFormatters:void 0,__v_emitter:uo(w)?w.__v_emitter:void 0,__meta:{framework:"vue"}}),Ao(w,o.value,r.value);const k=e.computed({get:()=>o.value,set:e=>{o.value=e,w.locale=o.value}}),E=e.computed({get:()=>r.value,set:e=>{r.value=e,w.fallbackLocale=r.value,Ao(w,o.value,e)}}),N=e.computed((()=>i.value)),V=e.computed((()=>c.value)),C=e.computed((()=>l.value));function b(e,t,n,s,u,p){let m;if(o.value,r.value,i.value,c.value,l.value,m=e(w),Gs(m)&&-1===m){const[e,n]=t();return a&&d?s(a):u(e)}if(p(m))return m;throw Go(14)}function x(...e){return b((t=>Ro(t,...e)),(()=>Uo(...e)),0,(t=>t.t(...e)),(e=>e),(e=>oo(e)))}const T={normalize:function(t){return t.map((t=>oo(t)?e.createVNode(e.Text,null,t,0):t))},interpolate:e=>e,type:"vnode"};function D(e){return i.value[e]||{}}tr++,a&&(e.watch(a.locale,(e=>{s&&(o.value=e,w.locale=e,Ao(w,o.value,r.value))})),e.watch(a.fallbackLocale,(e=>{s&&(r.value=e,w.fallbackLocale=e,Ao(w,o.value,r.value))})));return{id:tr,locale:k,fallbackLocale:E,get inheritLocale(){return s},set inheritLocale(e){s=e,e&&a&&(o.value=a.locale.value,r.value=a.fallbackLocale.value,Ao(w,o.value,r.value))},get availableLocales(){return Object.keys(i.value).sort()},messages:N,datetimeFormats:V,numberFormats:C,get modifiers(){return v},get pluralRules(){return S||{}},get isGlobal(){return n},get missingWarn(){return u},set missingWarn(e){u=e,w.missingWarn=u},get fallbackWarn(){return p},set fallbackWarn(e){p=e,w.fallbackWarn=p},get fallbackRoot(){return d},set fallbackRoot(e){d=e},get fallbackFormat(){return m},set fallbackFormat(e){m=e,w.fallbackFormat=m},get warnHtmlMessage(){return _},set warnHtmlMessage(e){_=e,w.warnHtmlMessage=e},get escapeParameter(){return y},set escapeParameter(e){y=e,w.escapeParameter=e},t:x,rt:function(...e){const[t,a,n]=e;if(n&&!io(n))throw Go(15);return x(t,a,Zs({resolvedMessage:!0},n||{}))},d:function(...e){return b((t=>jo(t,...e)),(()=>qo(...e)),0,(t=>t.d(...e)),(()=>""),(e=>oo(e)))},n:function(...e){return b((t=>Ho(t,...e)),(()=>Ko(...e)),0,(t=>t.n(...e)),(()=>""),(e=>oo(e)))},te:function(e,t){return null!==wo(D(oo(t)?t:o.value),e)},tm:function(e){const t=function(e){let t=null;const a=$o(w,r.value,o.value);for(let n=0;n{let a;const n=e;try{n.processor=T,a=Ro(n,...t)}finally{n.processor=null}return a}),(()=>Uo(...t)),0,(e=>e[Yo](...t)),(t=>[e.createVNode(e.Text,null,t,0)]),(e=>no(e)))},[Xo]:function(...e){return b((t=>Ho(t,...e)),(()=>Ko(...e)),0,(t=>t[Xo](...e)),(()=>[]),(e=>oo(e)||no(e)))},[Qo]:function(...e){return b((t=>jo(t,...e)),(()=>qo(...e)),0,(t=>t[Qo](...e)),(()=>[]),(e=>oo(e)||no(e)))},[Zo]:function(e){S=e,w.pluralRules=S},[er]:t.__injectWithOption}}function ir(e={}){const t=rr(function(e){const t=oo(e.locale)?e.locale:"en-US",a=oo(e.fallbackLocale)||no(e.fallbackLocale)||uo(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,n=so(e.missing)?e.missing:void 0,s=!ro(e.silentTranslationWarn)&&!Ys(e.silentTranslationWarn)||!e.silentTranslationWarn,o=!ro(e.silentFallbackWarn)&&!Ys(e.silentFallbackWarn)||!e.silentFallbackWarn,r=!ro(e.fallbackRoot)||e.fallbackRoot,i=!!e.formatFallbackMessages,c=uo(e.modifiers)?e.modifiers:{},l=e.pluralizationRules,u=so(e.postTranslation)?e.postTranslation:void 0,p=!oo(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,d=!!e.escapeParameterHtml,m=!ro(e.sync)||e.sync;let h=e.messages;if(uo(e.sharedMessages)){const t=e.sharedMessages;h=Object.keys(t).reduce(((e,a)=>{const n=e[a]||(e[a]={});return Zs(n,t[a]),e}),h||{})}const{__i18n:g,__root:f,__injectWithOption:_}=e,y=e.datetimeFormats,v=e.numberFormats;return{locale:t,fallbackLocale:a,messages:h,flatJson:e.flatJson,datetimeFormats:y,numberFormats:v,missing:n,missingWarn:s,fallbackWarn:o,fallbackRoot:r,fallbackFormat:i,modifiers:c,pluralRules:l,postTranslation:u,warnHtmlMessage:p,escapeParameter:d,inheritLocale:m,__i18n:g,__root:f,__injectWithOption:_}}(e)),a={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return ro(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=ro(e)?!e:e},get silentFallbackWarn(){return ro(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=ro(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[a,n,s]=e,o={};let r=null,i=null;if(!oo(a))throw Go(15);const c=a;return oo(n)?o.locale=n:no(n)?r=n:uo(n)&&(i=n),no(s)?r=s:uo(s)&&(i=s),t.t(c,r||i||{},o)},rt:(...e)=>t.rt(...e),tc(...e){const[a,n,s]=e,o={plural:1};let r=null,i=null;if(!oo(a))throw Go(15);const c=a;return oo(n)?o.locale=n:Gs(n)?o.plural=n:no(n)?r=n:uo(n)&&(i=n),oo(s)?o.locale=s:no(s)?r=s:uo(s)&&(i=s),t.t(c,r||i||{},o)},te:(e,a)=>t.te(e,a),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,a){t.setLocaleMessage(e,a)},mergeLocaleMessage(e,a){t.mergeLocaleMessage(e,a)},d:(...e)=>t.d(...e),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,a){t.setDateTimeFormat(e,a)},mergeDateTimeFormat(e,a){t.mergeDateTimeFormat(e,a)},n:(...e)=>t.n(...e),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,a){t.setNumberFormat(e,a)},mergeNumberFormat(e,a){t.mergeNumberFormat(e,a)},getChoiceIndex:(e,t)=>-1,__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:n}=e;n&&n(t,a)}};return a}const cr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}},lr={name:"i18n-t",props:Zs({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Gs(e)||!isNaN(e)}},cr),setup(t,a){const{slots:n,attrs:s}=a,o=t.i18n||_r({useScope:t.scope,__useComponent:!0}),r=Object.keys(n).filter((e=>"_"!==e));return()=>{const n={};t.locale&&(n.locale=t.locale),void 0!==t.plural&&(n.plural=oo(t.plural)?+t.plural:t.plural);const i=function({slots:e},t){return 1===t.length&&"default"===t[0]?e.default?e.default():[]:t.reduce(((t,a)=>{const n=e[a];return n&&(t[a]=n()),t}),{})}(a,r),c=o[Yo](t.keypath,i,n),l=Zs({},s);return oo(t.tag)||io(t.tag)?e.h(t.tag,l,c):e.h(e.Fragment,l,c)}}};function ur(t,a,n,s){const{slots:o,attrs:r}=a;return()=>{const a={part:!0};let i={};t.locale&&(a.locale=t.locale),oo(t.format)?a.key=t.format:io(t.format)&&(oo(t.format.key)&&(a.key=t.format.key),i=Object.keys(t.format).reduce(((e,a)=>n.includes(a)?Zs({},e,{[a]:t.format[a]}):e),{}));const c=s(t.value,a,i);let l=[a.key];no(c)?l=c.map(((e,t)=>{const a=o[e.type];return a?a({[e.type]:e.value,index:t,parts:c}):[e.value]})):oo(c)&&(l=[c]);const u=Zs({},r);return oo(t.tag)||io(t.tag)?e.h(t.tag,u,l):e.h(e.Fragment,u,l)}}const pr=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],dr={name:"i18n-n",props:Zs({value:{type:Number,required:!0},format:{type:[String,Object]}},cr),setup(e,t){const a=e.i18n||_r({useScope:"parent",__useComponent:!0});return ur(e,t,pr,((...e)=>a[Xo](...e)))}},mr=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],hr={name:"i18n-d",props:Zs({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},cr),setup(e,t){const a=e.i18n||_r({useScope:"parent",__useComponent:!0});return ur(e,t,mr,((...e)=>a[Qo](...e)))}};function gr(e){const t=(t,{instance:a,value:n,modifiers:s})=>{if(!a||!a.$)throw Go(22);const o=function(e,t){const a=e;if("composition"===e.mode)return a.__getInstance(t)||e.global;{const n=a.__getInstance(t);return null!=n?n.__composer:e.global.__composer}}(e,a.$),r=function(e){if(oo(e))return{path:e};if(uo(e)){if(!("path"in e))throw Go(19);return e}throw Go(20)}(n);t.textContent=o.t(...function(e){const{path:t,locale:a,args:n,choice:s,plural:o}=e,r={},i=n||{};oo(a)&&(r.locale=a);Gs(s)&&(r.plural=s);Gs(o)&&(r.plural=o);return[t,i,r]}(r))};return{beforeMount:t,beforeUpdate:t}}function fr(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Zo](t.pluralizationRules||e.pluralizationRules);const a=nr(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(a).forEach((t=>e.mergeLocaleMessage(t,a[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((a=>e.mergeDateTimeFormat(a,t.datetimeFormats[a]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((a=>e.mergeNumberFormat(a,t.numberFormats[a]))),e}function _r(t={}){const a=e.getCurrentInstance();if(null==a)throw Go(16);if(!a.appContext.app.__VUE_I18N_SYMBOL__)throw Go(17);const n=e.inject(a.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Go(22);const s="composition"===n.mode?n.global:n.global.__composer,o=Qs(t)?"__i18n"in a.type?"local":"global":t.useScope?t.useScope:"local";if("global"===o){let e=io(t.messages)?t.messages:{};"__i18nGlobal"in a.type&&(e=nr(s.locale.value,{messages:e,__i18n:a.type.__i18nGlobal}));const n=Object.keys(e);if(n.length&&n.forEach((t=>{s.mergeLocaleMessage(t,e[t])})),io(t.datetimeFormats)){const e=Object.keys(t.datetimeFormats);e.length&&e.forEach((e=>{s.mergeDateTimeFormat(e,t.datetimeFormats[e])}))}if(io(t.numberFormats)){const e=Object.keys(t.numberFormats);e.length&&e.forEach((e=>{s.mergeNumberFormat(e,t.numberFormats[e])}))}return s}if("parent"===o){let e=function(e,t,a=!1){let n=null;const s=t.root;let o=t.parent;for(;null!=o;){const t=e;if("composition"===e.mode)n=t.__getInstance(o);else{const e=t.__getInstance(o);null!=e&&(n=e.__composer),a&&n&&!n[er]&&(n=null)}if(null!=n)break;if(s===o)break;o=o.parent}return n}(n,a,t.__useComponent);return null==e&&(e=s),e}if("legacy"===n.mode)throw Go(18);const r=n;let i=r.__getInstance(a);if(null==i){const n=a.type,o=Zs({},t);n.__i18n&&(o.__i18n=n.__i18n),s&&(o.__root=s),i=rr(o),function(t,a,n){e.onMounted((()=>{}),a),e.onUnmounted((()=>{t.__deleteInstance(a)}),a)}(r,a),r.__setInstance(a,i)}return i}const yr=["locale","fallbackLocale","availableLocales"],vr=["t","rt","d","n","tm"];const wr=new class{constructor(e={}){this.baseUrl=e.baseUrl||"http://10.168.1.100",this.url=e.url||"",this.method="GET",this.data=null,this.header=e.header||{},this.beforeRequest=null,this.afterRequest=null}_mergeHeaders(e={}){return Object.assign({},this.header,e)}get(e,t={},a={}){return this.method="GET",this.url=this.baseUrl+e,this.data=t,this.header=this._mergeHeaders(a),this._()}post(e,t={},a={}){return this.method="POST",this.url=this.baseUrl+e,this.data=t,this.header=this._mergeHeaders(a),this._()}put(e,t={}){return this.method="PUT",this.url=this.baseUrl+e,this.data=t,this._()}delete(e,t={}){return this.method="DELETE",this.url=this.baseUrl+e,this.data=t,this._()}_(){return""==this.baseUrl&&(this.url="http://10.168.1.100"+this.url),this.beforeRequest&&"function"==typeof this.beforeRequest&&this.beforeRequest(this),new Promise(((e,t)=>{let a=wx;"undefined"!=typeof uni&&(a=uni),a.request({url:this.url,method:this.method,data:this.data,header:this.header,success:t=>{e(t)},fail:e=>{t(e)},complete:e=>{this.afterRequest&&"function"==typeof this.afterRequest&&this.afterRequest(e)}})}))}};var Sr={};const kr=uni.getSystemInfoSync(),Er="4.56",Nr="__UNI__8782431",Vr=(e,t)=>{let a=uni.getStorageSync("$$STAT__DBDATA:"+Nr)||{};a||(a={}),a[e]=t,uni.setStorageSync("$$STAT__DBDATA:"+Nr,a)},Cr=e=>{let t=uni.getStorageSync("$$STAT__DBDATA:"+Nr)||{};if(!t[e]){let a=uni.getStorageSync("$$STAT__DBDATA:"+Nr);if(a||(a={}),!a[e])return;t[e]=a[e]}return t[e]},br=e=>{let t=uni.getStorageSync("$$STAT__DBDATA:"+Nr)||{};t[e]?(delete t[e],uni.setStorageSync("$$STAT__DBDATA:"+Nr,t)):(t=uni.getStorageSync("$$STAT__DBDATA:"+Nr),t[e]&&(delete t[e],uni.setStorageSync("$$STAT__DBDATA:"+Nr,t)))},xr={enable:!0,version:"2"};let Tr={};Tr={};const Dr="__DC_STAT_UUID",Br="__DC_UUID_VALUE";function $r(){let e="";if("n"===Ir()){try{e=plus.runtime.getDCloudId()}catch(ke){e=""}return e}try{e=uni.getStorageSync(Dr)}catch(ke){e=Br}if(!e){e=Date.now()+""+Math.floor(1e7*Math.random());try{uni.setStorageSync(Dr,e)}catch(ke){uni.setStorageSync(Dr,Br)}}return e}const Pr={appid:"__UNI__8782431"},Ir=()=>{const e={app:"n","app-plus":"n","app-harmony":"n","mp-harmony":"mhm",h5:"h5","mp-weixin":"wx",[["y","a","p","mp-ali"].reverse().join("")]:"ali","mp-baidu":"bd","mp-toutiao":"tt","mp-qq":"qq","quickapp-native":"qn","mp-kuaishou":"ks","mp-lark":"lark","quickapp-webview":"qw","mp-xhs":"xhs"};if("ali"===e.app&&my&&my.env){const e=my.env.clientName;if("ap"===e)return"ali";if("dingtalk"===e)return"dt"}return e.app||"app"},zr=e=>{const t=Ir();let a="";return e||("wx"===t&&(a=uni.getLaunchOptionsSync().scene),a)},Ar=e=>{let t=e||Mr();if("bd"===Ir()){let e=t.$mp&&t.$mp.page&&t.$mp.page.is,a=t.$scope&&t.$scope.is;return e||a||""}return t.route||t.$scope&&t.$scope.route||t.$mp&&t.$mp.page.route},Or=e=>{let t=e&&(e.$page||e.$scope&&e.$scope.$page),a=uni.getStorageSync("_STAT_LAST_PAGE_ROUTE");return t?"/"===t.fullPath?t.route:t.fullPath||t.route:a||""},Mr=()=>{let e=getCurrentPages(),t=e[e.length-1];return t?t.$vm:null},Lr=e=>"page"===e.mpType||"page"===e.$mpType||e.$mp&&"page"===e.$mp.mpType||"page"===e.$options.mpType?"page":"app"===e.mpType||"app"===e.$mpType||e.$mp&&"app"===e.$mp.mpType||"app"===e.$options.mpType?"app":null,Rr=e=>{let t=[],a=[],n=[];for(let s in e){e[s].forEach((e=>{let o="";o=e,0===s?t.push(o):3===s?n.push(o):a.push(o)}))}return t.push(...a,...n),JSON.stringify(t)},Fr=e=>Tr&&Tr[e]||"",Ur="Report_Data_Time",jr="Report_Status",qr=e=>{let t={usv:Er,conf:JSON.stringify({ak:"__UNI__8782431"})};uni.request({url:"https://tongji.dcloud.io/uni/stat",method:"GET",data:t,success:t=>{const{data:a}=t;0===a.ret&&"function"==typeof e&&e({enable:a.enable})},fail:t=>{let a=1;try{a=uni.getStorageSync(jr)}catch(n){a=1}""===a&&(a=1),"function"==typeof e&&e({enable:a})}})},Wr=e=>{const t=Sr||{},{spaceId:a,provider:n,clientSecret:s,secretKey:o,secretId:r}=t;return-1!==["tcb","tencent","aliyun","alipay","private","dcloud"].indexOf(n)&&("aliyun"===n&&a&&s||("tcb"===n||"tencent"===n)&&a||"alipay"===n&&a&&o&&r||"private"===n&&a&&s||"dcloud"===n&&a&&s)?t:e&&e.spaceId?e:null},Hr=()=>{if(xr.collectItems){const e=xr.collectItems.uniStatPageLog;return void 0===e||("boolean"!=typeof e||e)}return!0},Kr="is_handle_device_id",Jr="__first__visit__time",Gr="__last__visit__time",Yr=()=>parseInt((new Date).getTime()/1e3),Qr=()=>{const e=Cr(Jr);let t=0;return e?t=e:(t=Yr(),Vr(Jr,t),br(Gr)),t},Xr="__page__residence__time";let Zr=0,ei=0;const ti=()=>(Zr=Yr(),Vr(Xr,Zr),Zr),ai="__total__visit__count",ni=()=>{const e=Cr(ai);let t=1;return e&&(t=e,t++),Vr(ai,t),t},si="__first_time",oi=()=>{let e=Yr();return Vr(si,e)},ri=e=>{let t=0;const a=Cr(si),n=Yr();if(0!==a&&(t=n-a),t=t<1?1:t,"app"===e){return{residenceTime:t,overtime:t>300}}if("page"===e){return{residenceTime:t,overtime:t>1800}}return{residenceTime:t}},ii=(e=>{let t=xr.reportInterval;if(0===Number(t))return 0;t=t||e;return/(^[1-9]\d*$)/.test(t)?Number(t):e})(10);let ci={uuid:kr.deviceId||$r(),ak:Pr.appid,p:"",ut:Ir(),mpn:(()=>{let e="";return"wx"!==Ir()&&"qq"!==Ir()||uni.canIUse("getAccountInfoSync")&&(e=uni.getAccountInfoSync().miniProgram.appId||""),Ir(),e})(),usv:Er,v:"n"===Ir()?plus.runtime.version:"",ch:(()=>{let e="";return"n"===Ir()&&(e=plus.runtime.channel),e})(),cn:"",pn:"",ct:"",t:Yr(),tt:"",brand:kr.brand||"",md:kr.model,sv:"",mpsdk:kr.SDKVersion||"",mpv:kr.version||"",lang:kr.language,pr:kr.pixelRatio,ww:kr.windowWidth,wh:kr.windowHeight,sw:kr.screenWidth,sh:kr.screenHeight};if(kr.platform)switch(kr.platform){case"android":ci.p="a";break;case"ios":ci.p="i";break;case"harmonyos":ci.p="h"}kr.system&&(ci.sv=kr.system.replace(/(Android|iOS)\s/,""));class li extends class{constructor(){this.self="",this.__licationShow=!1,this.__licationHide=!1,this.statData=ci,this._navigationBarTitle={config:"",page:"",report:"",lt:""},this._query={},"function"==typeof uni.addInterceptor&&(this.addInterceptorInit(),this.interceptLogin(),this.interceptShare(!0),this.interceptRequestPayment())}addInterceptorInit(){let e=this;uni.addInterceptor("setNavigationBarTitle",{invoke(t){e._navigationBarTitle.page=t.title}})}interceptLogin(){let e=this;uni.addInterceptor("login",{complete(){e._login()}})}interceptShare(e){let t=this;e?uni.addInterceptor("share",{success(){t._share()},fail(){t._share()}}):t._share()}interceptRequestPayment(){let e=this;uni.addInterceptor("requestPayment",{success(){e._payment("pay_success")},fail(){e._payment("pay_fail")}})}_login(){this.sendEventRequest({key:"login"},0)}_share(){this.sendEventRequest({key:"share"},0)}_payment(e){this.sendEventRequest({key:e},0)}applicationShow(){if(this.__licationHide){if(ri("app").overtime){let e={path:uni.getStorageSync("_STAT_LAST_PAGE_ROUTE"),scene:this.statData.sc,cst:2};this.sendReportRequest(e)}else{const e=zr();if(e!==this.statData.sc){let t={path:uni.getStorageSync("_STAT_LAST_PAGE_ROUTE"),scene:e,cst:2};this.sendReportRequest(t)}}this.__licationHide=!1}}applicationHide(e,t){e||(e=Mr()),this.__licationHide=!0;const a=ri(),n=Or(e);uni.setStorageSync("_STAT_LAST_PAGE_ROUTE",n),this.sendHideRequest({urlref:n,urlref_ts:a.residenceTime},t),oi()}pageShow(e){this._navigationBarTitle={config:"",page:"",report:"",lt:""};const t=Or(e),a=Ar(e);if(this._navigationBarTitle.config=Fr(a),this.__licationShow)return oi(),uni.setStorageSync("_STAT_LAST_PAGE_ROUTE",t),void(this.__licationShow=!1);if(ri("page").overtime){let e={path:t,scene:this.statData.sc,cst:3};this.sendReportRequest(e)}oi()}pageHide(e){if(!this.__licationHide){const t=ri("page");let a=Or(e),n=uni.getStorageSync("_STAT_LAST_PAGE_ROUTE");return n||(n=a),uni.setStorageSync("_STAT_LAST_PAGE_ROUTE",a),void this.sendPageRequest({url:a,urlref:n,urlref_ts:t.residenceTime})}}sendReportRequest(e,t){this._navigationBarTitle.lt="1",this._navigationBarTitle.config=Fr(e.path);let a=e.query&&"{}"!==JSON.stringify(e.query)?"?"+JSON.stringify(e.query):"";const n=(()=>{const e=Cr(Gr);let t=0;return e&&(t=e),Vr(Gr,Yr()),t})();if(0!==n||!n){const e=(e=>{let t="";if("n"===Ir()){try{t=plus.device.uuid}catch(ke){t=""}return t}return kr.deviceId||$r()})();(()=>{let e=Cr(Kr)||"";return Vr(Kr,"1"),"1"===e})()||(this.statData.odid=e)}Object.assign(this.statData,{lt:"1",url:e.path+a||"",t:Yr(),sc:zr(e.scene),fvts:Qr(),lvts:n,tvc:ni(),cst:e.cst||1}),"n"===Ir()?this.getProperty(t):this.getNetworkInfo(t)}sendPageRequest(e){let{url:t,urlref:a,urlref_ts:n}=e;this._navigationBarTitle.lt="11";let s={ak:this.statData.ak,uuid:this.statData.uuid,p:this.statData.p,lt:"11",ut:this.statData.ut,url:t,tt:this.statData.tt,urlref:a,urlref_ts:n,ch:this.statData.ch,usv:this.statData.usv,t:Yr()};this.request(s)}sendHideRequest(e,t){let{urlref:a,urlref_ts:n}=e,s={ak:this.statData.ak,uuid:this.statData.uuid,p:this.statData.p,lt:"3",ut:this.statData.ut,urlref:a,urlref_ts:n,ch:this.statData.ch,usv:this.statData.usv,t:Yr()};this.request(s,t)}sendEventRequest({key:e="",value:t=""}={}){let a="";try{a=Ar()}catch(s){a=Cr("__launch_options").path}this._navigationBarTitle.config=Fr(a),this._navigationBarTitle.lt="21";let n={ak:this.statData.ak,uuid:this.statData.uuid,p:this.statData.p,lt:"21",ut:this.statData.ut,url:a,ch:this.statData.ch,e_n:e,e_v:"object"==typeof t?JSON.stringify(t):t.toString(),usv:this.statData.usv,t:Yr()};this.request(n)}sendPushRequest(e,t){let a=Yr();const n={lt:"101",cid:t,t:a,ut:this.statData.ut},s=Rr({101:[n]});let o={usv:Er,t:a,requests:s};"n"!==Ir()||"a"!==this.statData.p?this.sendRequest(o):setTimeout((()=>{this.sendRequest(o)}),200)}getProperty(e){plus.runtime.getProperty(plus.runtime.appid,(t=>{this.statData.v=t.version||"",this.getNetworkInfo(e)}))}getNetworkInfo(e){uni.getNetworkType({success:t=>{this.statData.net=t.networkType,this.getLocation(e)}})}getLocation(e){Pr.getLocation?uni.getLocation({type:"wgs84",geocode:!0,success:t=>{t.address&&(this.statData.cn=t.address.country,this.statData.pn=t.address.province,this.statData.ct=t.address.city),this.statData.lat=t.latitude,this.statData.lng=t.longitude,this.request(this.statData,e)}}):(this.statData.lat=0,this.statData.lng=0,this.request(this.statData,e))}request(e,t){let a=Yr();const n=this._navigationBarTitle;Object.assign(e,{ttn:n.page,ttpj:n.config,ttc:n.report});let s=Cr("__UNI__STAT__DATA")||{};if(s[e.lt]||(s[e.lt]=[]),s[e.lt].push(e),Vr("__UNI__STAT__DATA",s),(ei=Yr(),Zr=Cr(Xr),ei-Zr){this.sendRequest(r)}),200)}getIsReportData(){return new Promise(((e,t)=>{let a="",n=(new Date).getTime(),s=1;try{a=uni.getStorageSync(Ur),s=uni.getStorageSync(jr)}catch(ke){a="",s=1}""!==s?(1===s&&e(),a||(uni.setStorageSync(Ur,n),a=n),n-a>864e5&&qr((({enable:e})=>{uni.setStorageSync(Ur,n),uni.setStorageSync(jr,e)}))):qr((({enable:t})=>{uni.setStorageSync(Ur,n),uni.setStorageSync(jr,t),1===t&&e()}))}))}sendRequest(e){if(!uni.__stat_uniCloud_space)return void console.error("应用未关联服务空间,统计上报失败,请在uniCloud目录右键关联服务空间.");uni.__stat_uniCloud_space.importObject("uni-stat-receiver",{customUI:!0}).report(e).then((()=>{})).catch((e=>{}))}imageRequest(e){this.getIsReportData().then((()=>{let t=new Image,a=(e=>{let t=Object.keys(e).sort(),a={},n="";for(var s in t)a[t[s]]=e[t[s]],n+=t[s]+"="+e[t[s]]+"&";return{sign:"",options:n.substr(0,n.length-1)}})((e=>{let t={};for(let a in e)t[a]=encodeURIComponent(e[a]);return t})(e)).options;t.src="https://tongji.dcloud.io/uni/stat.gif?"+a}))}sendEvent(e,t){((e,t)=>e?"string"!=typeof e?(console.error("uni.report [eventName] Parameter type error, it can only be of type String"),!0):e.length>255?(console.error("uni.report [eventName] Parameter length cannot be greater than 255"),!0):"string"!=typeof t&&"object"!=typeof t?(console.error("uni.report [options] Parameter type error, Only supports String or Object type"),!0):"string"==typeof t&&t.length>255?(console.error("uni.report [options] Parameter length cannot be greater than 255"),!0):"title"===e&&"string"!=typeof t?(console.error("uni.report [eventName] When the parameter is title, the [options] parameter can only be of type String"),!0):void 0:(console.error("uni.report Missing [eventName] parameter"),!0))(e,t)||("title"!==e?this.sendEventRequest({key:e,value:"object"==typeof t?JSON.stringify(t):t},1):this._navigationBarTitle.report=t)}}{static getInstance(){uni.__stat_instance||(uni.__stat_instance=new li);{let e=Wr(en.config);if(!uni.__stat_uniCloud_space)if(e&&0!==Object.keys(e).length){let t={provider:e.provider,spaceId:e.spaceId,clientSecret:e.clientSecret};e.endpoint&&(t.endpoint=e.endpoint),"alipay"===e.provider&&(t.secretKey=e.secretKey,t.accessKey=e.accessKey||e.secretId,t.spaceAppId=e.spaceAppId||e.appId),uni.__stat_uniCloud_space=en.init(t)}else console.error("应用未关联服务空间,请在uniCloud目录右键关联服务空间")}return uni.__stat_instance}constructor(){super()}pushEvent(e){const t=(()=>{if(xr.collectItems){const e=xr.collectItems.uniPushClientID;return"boolean"==typeof e&&e}return!1})();uni.getPushClientId&&t&&uni.getPushClientId({success:t=>{const a=t.cid||!1;a&&this.sendPushRequest(e,a)}})}launch(e,t){ti(),this.__licationShow=!0,Vr("__launch_options",e),e.cst=1,this.sendReportRequest(e,!0)}load(e,t){this.self=t,this._query=e}appHide(e){this.applicationHide(e,!0)}appShow(e){this.applicationShow(e)}show(e){if(this.self=e,"page"===Lr(e)){Hr()&&this.pageShow(e)}"h5"!==Ir()&&"n"!==Ir()||"app"===Lr(e)&&this.appShow()}hide(e){if(this.self=e,"page"===Lr(e)){Hr()&&this.pageHide(e)}"h5"!==Ir()&&"n"!==Ir()||"app"===Lr(e)&&this.appHide()}error(e){let t="";t=e.message?e.stack:JSON.stringify(e);let a="";try{a=Ar()}catch(ke){a=""}let n={ak:this.statData.ak,uuid:this.statData.uuid,p:this.statData.p,lt:"31",url:a,ut:this.statData.ut,ch:this.statData.ch,mpsdk:this.statData.mpsdk,mpv:this.statData.mpv,v:this.statData.v,em:t,usv:this.statData.usv,t:parseInt((new Date).getTime()/1e3)};this.request(n)}}const ui=li.getInstance();let pi=!1;const di={onLaunch(e){ui.launch(e,this),ui.pushEvent(e)},onLoad(e){if(ui.load(e,this),this.$scope&&this.$scope.onShareAppMessage){let e=this.$scope.onShareAppMessage;this.$scope.onShareAppMessage=function(t){return ui.interceptShare(!1),e.call(this,t)}}},onShow(){pi=!1,ui.show(this)},onHide(){pi=!0,ui.hide(this)},onUnload(){pi?pi=!1:ui.hide(this)},onError(e){ui.error(e)}};uni.onCreateVueApp((e=>{e.mixin(di),uni.report=function(e,t){ui.sendEvent(e,t)}})),"h5"!==Ir()&&"n"!==Ir()&&(uni.onAppHide((()=>{ui.appHide(Mr())})),uni.onAppShow((()=>{ui.appShow(Mr())})));const mi={en:js,"zh-Hans":qs,"zh-Hant":Ws};const hi=function(t={}){const a=!ro(t.legacy)||t.legacy,n=!!t.globalInjection,s=new Map,o=a?ir(t):rr(t),r=Ks(""),i={get mode(){return a?"legacy":"composition"},async install(t,...s){t.__VUE_I18N_SYMBOL__=r,t.provide(t.__VUE_I18N_SYMBOL__,i),!a&&n&&function(t,a){const n=Object.create(null);yr.forEach((t=>{const s=Object.getOwnPropertyDescriptor(a,t);if(!s)throw Go(22);const o=e.isRef(s.value)?{get:()=>s.value.value,set(e){s.value.value=e}}:{get:()=>s.get&&s.get()};Object.defineProperty(n,t,o)})),t.config.globalProperties.$i18n=n,vr.forEach((e=>{const n=Object.getOwnPropertyDescriptor(a,e);if(!n||!n.value)throw Go(22);Object.defineProperty(t.config.globalProperties,`$${e}`,n)}))}(t,i.global),function(e,t,...a){const n=uo(a[0])?a[0]:{},s=!!n.useI18nComponentName;(!ro(n.globalInstall)||n.globalInstall)&&(e.component(s?"i18n":lr.name,lr),e.component(dr.name,dr),e.component(hr.name,hr)),e.directive("t",gr(t))}(t,i,...s),a&&t.mixin(function(t,a,n){return{beforeCreate(){const s=e.getCurrentInstance();if(!s)throw Go(22);const o=this.$options;if(o.i18n){const e=o.i18n;o.__i18n&&(e.__i18n=o.__i18n),e.__root=a,this===this.$root?this.$i18n=fr(t,e):(e.__injectWithOption=!0,this.$i18n=ir(e))}else o.__i18n?this===this.$root?this.$i18n=fr(t,o):this.$i18n=ir({__i18n:o.__i18n,__injectWithOption:!0,__root:a}):this.$i18n=t;t.__onComponentInstanceCreated(this.$i18n),n.__setInstance(s,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e)},mounted(){},beforeUnmount(){const t=e.getCurrentInstance();if(!t)throw Go(22);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(t),delete this.$i18n}}}(o,o.__composer,i))},get global(){return o},__instances:s,__getInstance:e=>s.get(e)||null,__setInstance(e,t){s.set(e,t)},__deleteInstance(e){s.delete(e)}};return i}({locale:uni.getStorageSync("userLanguage")||"zh-Hans",messages:mi});uni.$http=wr,wr.baseUrl="",wr.beforeRequest=function(e){},wr.afterRequest=function(){};const{app:gi,Vuex:fi,Pinia:_i}=function(){const t=e.createVueApp(Rs);return t.use(hi),t.use(Fs),{app:t}}();uni.Vuex=fi,uni.Pinia=_i,gi.provide("__globalStyles",__uniConfig.styles),gi._component.mpType="app",gi._component.render=()=>{},gi.mount("#app")}(Vue);