import{c as Ae,f as Ke,t as qe,u as Ye,s as Se,a as Xe,_ as Ge,b as Qe,d as Je,e as Ze}from"./main.js";import{c as et,u as tt,_ as ot,a as nt,b as lt}from"./DropDown.js";import{aG as at,av as He,aH as rt,a_ as it,D as fe,aB as st,I as s,aO as Le,A as ct,c as ce,r as N,j as L,u as Me,w as je,b as he,aw as le,ay as de,ax as r,aA as ge,az as Ne,E as Re,aD as Fe,aP as dt,aI as ut,n as $e,l as Be,be as Te,aJ as I,aK as ze,bd as ht,aW as ft,aC as Y,O as ye,N as W,aU as ke,aN as X,bf as gt,aZ as Ce,bK as be,bP as bt,bB as vt,bV as j,bU as h,bM as t,bR as D,bW as E,bT as _,bS as b,i as pt,b$ as mt,bo as _t,bQ as g,G as wt,v as xt,F as Q,b_ as Ve,k as se,bm as yt,bX as J}from"./_plugin-vue_export-helper.js";import{a as kt,_ as Ct}from"./Play.js";import"./Forward.js";function Rt(e){const{textColor2:l,modalColor:a,borderColor:i,fontSize:c,primaryColor:k}=e;return{loaderFontSize:c,loaderTextColor:l,loaderColor:a,loaderBorder:`1px solid ${i}`,loadingColor:k}}const $t=at({name:"Log",common:He,peers:{Scrollbar:rt,Code:et},self:Rt});function St(e){const{primaryColor:l,opacityDisabled:a,borderRadius:i,textColor3:c}=e;return Object.assign(Object.assign({},Ae),{iconColor:c,textColor:"white",loadingColor:l,opacityDisabled:a,railColor:"rgba(0, 0, 0, .14)",railColorActive:l,buttonBoxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)",buttonColor:"#FFF",railBorderRadiusSmall:i,railBorderRadiusMedium:i,railBorderRadiusLarge:i,buttonBorderRadiusSmall:i,buttonBorderRadiusMedium:i,buttonBorderRadiusLarge:i,boxShadowFocus:`0 0 0 2px ${it(l,{alpha:.2})}`})}const Bt={name:"Switch",common:He,self:St},Tt=fe({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:st("Log").localeRef}},render(){const{clsPrefix:e}=this;return s("div",{class:`${e}-log-loader`},s(Le,{clsPrefix:e,strokeWidth:24,scale:.85}),s("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),Pe=ct("n-log"),zt=fe({props:{line:{type:String,default:""}},setup(e){const{trimRef:l,highlightRef:a,languageRef:i,mergedHljsRef:c}=ce(Pe),k=N(null),C=L(()=>l.value?e.line.trim():e.line);function f(){k.value&&(k.value.innerHTML=M(i.value,C.value))}function M(w,T){const{value:x}=c;return x&&w&&x.getLanguage(w)?x.highlight(T,{language:w}).value:T}return Me(()=>{a.value&&f()}),je(he(e,"line"),()=>{a.value&&f()}),{highlight:a,selfRef:k,maybeTrimmedLines:C}},render(){const{highlight:e,maybeTrimmedLines:l}=this;return s("pre",{ref:"selfRef"},e?null:l)}}),Vt=le("log",`
 position: relative;
 box-sizing: border-box;
 transition: border-color .3s var(--n-bezier);
`,[de("pre",`
 white-space: pre-wrap;
 word-break: break-word;
 margin: 0;
 `),le("log-loader",`
 transition:
 color .3s var(--n-bezier),
 background-color .3s var(--n-bezier),
 border-color .3s var(--n-bezier);
 box-sizing: border-box;
 position: absolute;
 right: 16px;
 top: 8px;
 height: 34px;
 border-radius: 17px;
 line-height: 34px;
 white-space: nowrap;
 overflow: hidden;
 border: var(--n-loader-border);
 color: var(--n-loader-text-color);
 background-color: var(--n-loader-color);
 font-size: var(--n-loader-font-size);
 `,[Ke(),r("content",`
 display: inline-block;
 vertical-align: bottom;
 line-height: 34px;
 padding-left: 40px;
 padding-right: 20px;
 white-space: nowrap;
 `),le("base-loading",`
 color: var(--n-loading-color);
 position: absolute;
 left: 12px;
 top: calc(50% - 10px);
 font-size: 20px;
 width: 20px;
 height: 20px;
 display: inline-block;
 `)])]),Ht=Object.assign(Object.assign({},ge.props),{loading:Boolean,trim:Boolean,log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:Object,onReachTop:Function,onReachBottom:Function,onRequireMore:Function}),Lt=fe({name:"Log",props:Ht,setup(e){const{mergedClsPrefixRef:l,inlineThemeDisabled:a}=Ne(e),i=N(!1),c=L(()=>e.language!==void 0),k=L(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),C=L(()=>{const{log:u}=e;return u?u.split(`
`):e.lines}),f=N(null),M=ge("Log","-log",Vt,$t,e,l);function w(u){const v=u.target,V=v.firstElementChild;if(i.value){$e(()=>{i.value=!1});return}const H=v.offsetHeight,y=v.scrollTop,B=V.offsetHeight,n=y,P=B-y-H;if(n<=e.offsetTop){const{onReachTop:$,onRequireMore:p}=e;p&&p("top"),$&&$()}if(P<=e.offsetBottom){const{onReachBottom:$,onRequireMore:p}=e;p&&p("bottom"),$&&$()}}const T=qe(x,300);function x(u){if(i.value){$e(()=>{i.value=!1});return}if(f.value){const{containerRef:v,contentRef:V}=f.value;if(v&&V){const H=v.offsetHeight,y=v.scrollTop,B=V.offsetHeight,n=y,P=B-y-H,$=u.deltaY;if(n===0&&$<0){const{onRequireMore:p}=e;p&&p("top")}if(P<=0&&$>0){const{onRequireMore:p}=e;p&&p("bottom")}}}}function o(u){const{value:v}=f;if(!v)return;const{silent:V,top:H,position:y}=u;V&&(i.value=!0),H!==void 0?v.scrollTo({left:0,top:H}):(y==="bottom"||y==="top")&&v.scrollTo({position:y})}function R(u=!1){Be("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),o({position:"top",silent:u})}function z(u=!1){Be("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),o({position:"bottom",silent:u})}Re(Pe,{languageRef:he(e,"language"),mergedHljsRef:tt(e),trimRef:he(e,"trim"),highlightRef:c});const Z={scrollTo:o},G=L(()=>{const{self:{loaderFontSize:u,loaderTextColor:v,loaderColor:V,loaderBorder:H,loadingColor:y},common:{cubicBezierEaseInOut:B}}=M.value;return{"--n-bezier":B,"--n-loader-font-size":u,"--n-loader-border":H,"--n-loader-color":V,"--n-loader-text-color":v,"--n-loading-color":y}}),F=a?Fe("log",void 0,G,e):void 0;return Object.assign(Object.assign({},Z),{mergedClsPrefix:l,scrollbarRef:f,mergedTheme:M,styleHeight:k,mergedLines:C,scrollToTop:R,scrollToBottom:z,handleWheel:T,handleScroll:w,cssVars:a?void 0:G,themeClass:F==null?void 0:F.themeClass,onRender:F==null?void 0:F.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:l,onRender:a}=this;return a==null||a(),s("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[s(dt,{ref:"scrollbarRef",theme:l.peers.Scrollbar,themeOverrides:l.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>s(ot,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:l.peers.Code,themeOverrides:l.peerOverrides.Code},{default:()=>this.mergedLines.map((i,c)=>s(zt,{key:c,line:i}))})}),s(ut,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?s(Tt,{clsPrefix:e}):null})])}}),Mt=le("switch",`
 height: var(--n-height);
 min-width: var(--n-width);
 vertical-align: middle;
 user-select: none;
 -webkit-user-select: none;
 display: inline-flex;
 outline: none;
 justify-content: center;
 align-items: center;
`,[r("children-placeholder",`
 height: var(--n-rail-height);
 display: flex;
 flex-direction: column;
 overflow: hidden;
 pointer-events: none;
 visibility: hidden;
 `),r("rail-placeholder",`
 display: flex;
 flex-wrap: none;
 `),r("button-placeholder",`
 width: calc(1.75 * var(--n-rail-height));
 height: var(--n-rail-height);
 `),le("base-loading",`
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translateX(-50%) translateY(-50%);
 font-size: calc(var(--n-button-width) - 4px);
 color: var(--n-loading-color);
 transition: color .3s var(--n-bezier);
 `,[Te({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),r("checked, unchecked",`
 transition: color .3s var(--n-bezier);
 color: var(--n-text-color);
 box-sizing: border-box;
 position: absolute;
 white-space: nowrap;
 top: 0;
 bottom: 0;
 display: flex;
 align-items: center;
 line-height: 1;
 `),r("checked",`
 right: 0;
 padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
 `),r("unchecked",`
 left: 0;
 justify-content: flex-end;
 padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
 `),de("&:focus",[r("rail",`
 box-shadow: var(--n-box-shadow-focus);
 `)]),I("round",[r("rail","border-radius: calc(var(--n-rail-height) / 2);",[r("button","border-radius: calc(var(--n-button-height) / 2);")])]),ze("disabled",[ze("icon",[I("rubber-band",[I("pressed",[r("rail",[r("button","max-width: var(--n-button-width-pressed);")])]),r("rail",[de("&:active",[r("button","max-width: var(--n-button-width-pressed);")])]),I("active",[I("pressed",[r("rail",[r("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),r("rail",[de("&:active",[r("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),I("active",[r("rail",[r("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),r("rail",`
 overflow: hidden;
 height: var(--n-rail-height);
 min-width: var(--n-rail-width);
 border-radius: var(--n-rail-border-radius);
 cursor: pointer;
 position: relative;
 transition:
 opacity .3s var(--n-bezier),
 background .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
 background-color: var(--n-rail-color);
 `,[r("button-icon",`
 color: var(--n-icon-color);
 transition: color .3s var(--n-bezier);
 font-size: calc(var(--n-button-height) - 4px);
 position: absolute;
 left: 0;
 right: 0;
 top: 0;
 bottom: 0;
 display: flex;
 justify-content: center;
 align-items: center;
 line-height: 1;
 `,[Te()]),r("button",`
 align-items: center; 
 top: var(--n-offset);
 left: var(--n-offset);
 height: var(--n-button-height);
 width: var(--n-button-width-pressed);
 max-width: var(--n-button-width);
 border-radius: var(--n-button-border-radius);
 background-color: var(--n-button-color);
 box-shadow: var(--n-button-box-shadow);
 box-sizing: border-box;
 cursor: inherit;
 content: "";
 position: absolute;
 transition:
 background-color .3s var(--n-bezier),
 left .3s var(--n-bezier),
 opacity .3s var(--n-bezier),
 max-width .3s var(--n-bezier),
 box-shadow .3s var(--n-bezier);
 `)]),I("active",[r("rail","background-color: var(--n-rail-color-active);")]),I("loading",[r("rail",`
 cursor: wait;
 `)]),I("disabled",[r("rail",`
 cursor: not-allowed;
 opacity: .5;
 `)])]),jt=Object.assign(Object.assign({},ge.props),{size:{type:String,default:"medium"},value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},onChange:[Function,Array]});let ne;const Nt=fe({name:"Switch",props:jt,setup(e){ne===void 0&&(typeof CSS<"u"?typeof CSS.supports<"u"?ne=CSS.supports("width","max(1px)"):ne=!1:ne=!0);const{mergedClsPrefixRef:l,inlineThemeDisabled:a}=Ne(e),i=ge("Switch","-switch",Mt,Bt,e,l),c=ht(e),{mergedSizeRef:k,mergedDisabledRef:C}=c,f=N(e.defaultValue),M=he(e,"value"),w=ft(M,f),T=L(()=>w.value===e.checkedValue),x=N(!1),o=N(!1),R=L(()=>{const{railStyle:n}=e;if(n)return n({focused:o.value,checked:T.value})});function z(n){const{"onUpdate:value":P,onChange:$,onUpdateValue:p}=e,{nTriggerFormInput:ee,nTriggerFormChange:K}=c;P&&Ce(P,n),p&&Ce(p,n),$&&Ce($,n),f.value=n,ee(),K()}function Z(){const{nTriggerFormFocus:n}=c;n()}function G(){const{nTriggerFormBlur:n}=c;n()}function F(){e.loading||C.value||(w.value!==e.checkedValue?z(e.checkedValue):z(e.uncheckedValue))}function u(){o.value=!0,Z()}function v(){o.value=!1,G(),x.value=!1}function V(n){e.loading||C.value||n.key===" "&&(w.value!==e.checkedValue?z(e.checkedValue):z(e.uncheckedValue),x.value=!1)}function H(n){e.loading||C.value||n.key===" "&&(n.preventDefault(),x.value=!0)}const y=L(()=>{const{value:n}=k,{self:{opacityDisabled:P,railColor:$,railColorActive:p,buttonBoxShadow:ee,buttonColor:K,boxShadowFocus:ve,loadingColor:U,textColor:d,iconColor:pe,[Y("buttonHeight",n)]:S,[Y("buttonWidth",n)]:A,[Y("buttonWidthPressed",n)]:me,[Y("railHeight",n)]:O,[Y("railWidth",n)]:q,[Y("railBorderRadius",n)]:_e,[Y("buttonBorderRadius",n)]:we},common:{cubicBezierEaseInOut:xe}}=i.value;let m,te,oe;return ne?(m=`calc((${O} - ${S}) / 2)`,te=`max(${O}, ${S})`,oe=`max(${q}, calc(${q} + ${S} - ${O}))`):(m=ye((W(O)-W(S))/2),te=ye(Math.max(W(O),W(S))),oe=W(O)>W(S)?q:ye(W(q)+W(S)-W(O))),{"--n-bezier":xe,"--n-button-border-radius":we,"--n-button-box-shadow":ee,"--n-button-color":K,"--n-button-width":A,"--n-button-width-pressed":me,"--n-button-height":S,"--n-height":te,"--n-offset":m,"--n-opacity-disabled":P,"--n-rail-border-radius":_e,"--n-rail-color":$,"--n-rail-color-active":p,"--n-rail-height":O,"--n-rail-width":q,"--n-width":oe,"--n-box-shadow-focus":ve,"--n-loading-color":U,"--n-text-color":d,"--n-icon-color":pe}}),B=a?Fe("switch",L(()=>k.value[0]),y,e):void 0;return{handleClick:F,handleBlur:v,handleFocus:u,handleKeyup:V,handleKeydown:H,mergedRailStyle:R,pressed:x,mergedClsPrefix:l,mergedValue:w,checked:T,mergedDisabled:C,cssVars:a?void 0:y,themeClass:B==null?void 0:B.themeClass,onRender:B==null?void 0:B.onRender}},render(){const{mergedClsPrefix:e,mergedDisabled:l,checked:a,mergedRailStyle:i,onRender:c,$slots:k}=this;c==null||c();const{checked:C,unchecked:f,icon:M,"checked-icon":w,"unchecked-icon":T}=k,x=!(ke(M)&&ke(w)&&ke(T));return s("div",{role:"switch","aria-checked":a,class:[`${e}-switch`,this.themeClass,x&&`${e}-switch--icon`,a&&`${e}-switch--active`,l&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},s("div",{class:`${e}-switch__rail`,"aria-hidden":"true",style:i},X(C,o=>X(f,R=>o||R?s("div",{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},s("div",{class:`${e}-switch__rail-placeholder`},s("div",{class:`${e}-switch__button-placeholder`}),o),s("div",{class:`${e}-switch__rail-placeholder`},s("div",{class:`${e}-switch__button-placeholder`}),R)):null)),s("div",{class:`${e}-switch__button`},X(M,o=>X(w,R=>X(T,z=>s(gt,null,{default:()=>this.loading?s(Le,{key:"loading",clsPrefix:e,strokeWidth:20}):this.checked&&(R||o)?s("div",{class:`${e}-switch__button-icon`,key:R?"checked-icon":"icon"},R||o):!this.checked&&(z||o)?s("div",{class:`${e}-switch__button-icon`,key:z?"unchecked-icon":"icon"},z||o):null})))),X(C,o=>o&&s("div",{key:"checked",class:`${e}-switch__checked`},o)),X(f,o=>o&&s("div",{key:"unchecked",class:`${e}-switch__unchecked`},o)))))}});var Oe={};Object.defineProperty(Oe,"__esModule",{value:!0});const ae=be,Ft={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"},Pt=(0,ae.createElementVNode)("g",{fill:"none"},[(0,ae.createElementVNode)("path",{d:"M10.5 3l6.043.002l.085.015l.063.02l.076.04l.055.04l.06.06l.03.038l.041.074l.03.083l.015.082L17 3.5v6a.5.5 0 0 1-.992.09L16 9.5V4.706L4.706 16H9.5a.5.5 0 0 1 .492.41l.008.09a.5.5 0 0 1-.41.492L9.5 17H3.48l-.069-.008l-.102-.03l-.076-.04l-.055-.04l-.06-.06l-.03-.037l-.041-.074l-.03-.083l-.006-.023A.499.499 0 0 1 3 16.5l.005.074l-.003-.031L3 10.5a.5.5 0 0 1 .992-.09L4 10.5v4.792L15.292 4H10.5a.5.5 0 0 1-.492-.41L10 3.5a.5.5 0 0 1 .5-.5z",fill:"currentColor"})],-1),Ot=[Pt];var Et=Oe.default=(0,ae.defineComponent)({name:"ArrowMaximize20Regular",render:function(l,a){return(0,ae.openBlock)(),(0,ae.createElementBlock)("svg",Ft,Ot)}}),Ee={};Object.defineProperty(Ee,"__esModule",{value:!0});const re=be,It={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"},Wt=(0,re.createElementVNode)("g",{fill:"none"},[(0,re.createElementVNode)("path",{d:"M10.5 8.826l.874.998a.5.5 0 0 0 .752-.658l-1.75-2a.5.5 0 0 0-.752 0l-1.75 2a.5.5 0 0 0 .752.658l.874-.998v3.679a.5.5 0 0 0 1 0v-3.68zM4 16a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4zm-1-2a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9h-3.834a1.495 1.495 0 0 0-.287-.493L12.435 8H17V6a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v2h4.565l-.444.507c-.13.15-.226.317-.287.493H3v5z",fill:"currentColor"})],-1),Dt=[Wt];var Ut=Ee.default=(0,re.defineComponent)({name:"PanelTopContract20Regular",render:function(l,a){return(0,re.openBlock)(),(0,re.createElementBlock)("svg",It,Dt)}}),Ie={};Object.defineProperty(Ie,"__esModule",{value:!0});const ie=be,At={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"},Kt=(0,ie.createElementVNode)("g",{fill:"none"},[(0,ie.createElementVNode)("path",{d:"M10.5 11.174l.874-.998a.5.5 0 0 1 .752.658l-1.75 2a.5.5 0 0 1-.752 0l-1.75-2a.5.5 0 1 1 .752-.658l.874.998V7.495a.5.5 0 0 1 1 0v3.68zM4 16a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H4zm-1-2a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9h-5.5V8H17V6a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v2h5.5v1H3v5z",fill:"currentColor"})],-1),qt=[Kt];var Yt=Ie.default=(0,ie.defineComponent)({name:"PanelTopExpand20Regular",render:function(l,a){return(0,ie.openBlock)(),(0,ie.createElementBlock)("svg",At,qt)}}),We={};Object.defineProperty(We,"__esModule",{value:!0});const ue=be,Xt={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},Gt=(0,ue.createElementVNode)("path",{d:"M392 432H120a40 40 0 0 1-40-40V120a40 40 0 0 1 40-40h272a40 40 0 0 1 40 40v272a40 40 0 0 1-40 40z",fill:"currentColor"},null,-1),Qt=[Gt];var Jt=We.default=(0,ue.defineComponent)({name:"Stop",render:function(l,a){return(0,ue.openBlock)(),(0,ue.createElementBlock)("svg",Xt,Qt)}});const Zt={class:"home-container"},eo=["rowspan"],to={key:1},oo={colspan:2},no={class:"action-container"},lo={class:"scroll-container"},ao={key:0,class:"scroll-label"},ro={__name:"Log",setup(e){mt(U=>({"70be8318":t(B),"51fe0fd8":t(n),"0dc52088":t(P)}));const l=Ye(),{log:a,log_mobile:i,running:c,log_lines:k,task_list:C,waiting:f,get_task_id:M,sc_uri:w}=Se(l),{get_tasks:T}=l,x=ce("axios"),o=ce("mobile"),R=N(!0);function z(){$e(()=>{var U;(U=document.querySelector("pre:last-child"))==null||U.scrollIntoView()})}function Z(){R.value&&z()}je(()=>[a,C],()=>{Z()},{deep:!0}),Me(()=>{T()}),vt(()=>{clearTimeout(M.value)});function G(){c.value=!0,k.value=[],x.get("/start"),T()}function F(){f.value=!0,x.get("/stop").then(U=>{c.value=!U.data,f.value=!1})}const u=N(!0),v=N(!1),V=N(!0);Re("show_task",v),Re("add_task",V);const H=Xe(),{conf:y}=Se(H),B=L(()=>y.value.theme=="light"?.25:.3),n=L(()=>o.value?"cover, cover":"753px, cover"),P=L(()=>o.value?"25% 0, 50%, 50%":"70% -15%, 50% 50%");function $(){x.get("/stop-maa")}const p=[{label:"停止Maa",key:"maa"}];function ee(){document.documentElement.requestFullscreen()}const K=N(!0),ve=ce("settings");return(U,d)=>{const pe=Ge,S=yt,A=_t,me=Qe,O=Lt,q=nt,_e=lt,we=Je,xe=Nt;return g(),j("div",Zt,[d[9]||(d[9]=h("div",{class:"log-bg"},null,-1)),t(K)?(g(),D(pe,{key:0,"preview-disabled":"",width:"100%",class:"sc",src:t(w)==""?"/black.jpg":t(w),"object-fit":"scale-down"},null,8,["src"])):E("",!0),_(me,{class:"task-table",size:"small","single-line":!1},{default:b(()=>[h("thead",{onClick:d[0]||(d[0]=m=>K.value=!t(K))},d[5]||(d[5]=[h("tr",null,[h("th",null,"时间"),h("th",{colspan:2},"任务")],-1)])),wt(h("tbody",null,[(g(!0),j(Q,null,Ve(t(C),m=>(g(),j(Q,null,[Object.keys(m.plan).length?(g(!0),j(Q,{key:0},Ve(m.plan,(te,oe,De)=>(g(),j("tr",null,[De==0?(g(),j("td",{key:0,rowspan:Object.keys(m.plan).length},J(m.time.split("T")[1].split(".")[0]),9,eo)):E("",!0),h("td",null,J(oe),1),h("td",null,J(te.map(Ue=>Ue||"_").join(", ")),1)]))),256)):(g(),j("tr",to,[h("td",null,J(m.time.split("T")[1].split(".")[0]),1),h("td",oo,J(m.meta_data)+J(m.type.display_value),1)]))],64))),256))],512),[[xt,!t(o)||t(u)]]),t(o)?(g(),D(A,{key:0,class:"toggle-table-collapse-btn",size:"small",onClick:d[1]||(d[1]=m=>u.value=!t(u)),focusable:!1},{icon:b(()=>[_(S,null,{default:b(()=>[t(u)?(g(),D(t(Ut),{key:0})):(g(),D(t(Yt),{key:1}))]),_:1})]),_:1})):E("",!0),t(o)?(g(),D(A,{key:1,class:"toggle-fullscreen-btn",size:"small",onClick:ee,focusable:!1},{icon:b(()=>[_(S,null,{default:b(()=>[_(t(Et))]),_:1})]),_:1})):E("",!0)]),_:1}),_(O,{class:"log",log:t(o)?t(i):t(a),language:"mower",style:{"user-select":"text"}},null,8,["log"]),h("div",no,[t(c)?(g(),D(q,{key:0,select:$,options:p,type:"error",up:!0},{default:b(()=>[_(A,{type:"error",onClick:F,loading:t(f),disabled:t(f)},{icon:b(()=>[_(S,null,{default:b(()=>[_(t(Jt))]),_:1})]),default:b(()=>[t(o)?E("",!0):(g(),j(Q,{key:0},[se("立即停止")],64))]),_:1},8,["loading","disabled"])]),_:1})):(g(),D(A,{key:1,type:"primary",onClick:G,loading:t(f),disabled:t(f)},{icon:b(()=>[_(S,null,{default:b(()=>[_(t(kt))]),_:1})]),default:b(()=>[t(o)?E("",!0):(g(),j(Q,{key:0},[se("开始执行")],64))]),_:1},8,["loading","disabled"])),_(_e),_(A,{type:"warning",onClick:d[2]||(d[2]=m=>v.value=!0)},{icon:b(()=>[_(S,null,{default:b(()=>[_(t(Ct))]),_:1})]),default:b(()=>[t(o)?E("",!0):(g(),j(Q,{key:0},[se("新增任务")],64))]),_:1}),t(o)?E("",!0):(g(),D(we,{key:2},{default:b(()=>d[6]||(d[6]=[h("div",null,"目前只糊了一个勉强能用的版本，其他功能敬请期待",-1),h("div",null,"只开放了空任务/专精任务",-1),h("div",null,"只能增，不能删！！谨慎填写任务",-1),h("div",null,"如果 mower 休息到 00:30，新增的 00:15 的任务是不会被执行的，因为此时在休息",-1),h("div",null,"所以最好在 00:00 mower运行的时候添加 00:15 的任务了，考验手速的时候到了",-1),h("div",null,"空任务，请确保任务房间名字，干员数量正确（没有判定）",-1),h("div",null,"专精任务，UI有详细说明；新增完毕，UI上面的表会实时反馈",-1),h("div",null,"在Q群或者频道提以上问题，看心情踢人",-1)])),_:1})),d[8]||(d[8]=h("div",{class:"expand"},null,-1)),t(o)?E("",!0):(g(),D(A,{key:3,type:"info",onClick:d[3]||(d[3]=m=>ve.value=!0)},{icon:b(()=>[_(S,null,{default:b(()=>[_(t(Ze))]),_:1})]),default:b(()=>[d[7]||(d[7]=se(" 全部设置 "))]),_:1})),h("div",lo,[_(xe,{value:t(R),"onUpdate:value":d[4]||(d[4]=m=>pt(R)?R.value=m:null)},null,8,["value"]),t(o)?E("",!0):(g(),j("span",ao,"自动滚动"))])])])}}},fo=bt(ro,[["__scopeId","data-v-49b0eb56"]]);export{fo as default};
