@kotori-bot/kotori-plugin-webui 1.5.5 → 1.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.html +1 -1
- package/dist/js/{324.6f74d729.js → 324.33866611.js} +2 -2
- package/dist/js/{324.6f74d729.js.map → 324.33866611.js.map} +1 -1
- package/dist/js/{app.5510141a.js → app.8e5fd566.js} +2 -2
- package/dist/js/{app.5510141a.js.map → app.8e5fd566.js.map} +1 -1
- package/lib/index.js +2 -2
- package/lib/plugin/index.js +2 -2
- package/lib/routers/api/accounts.js +2 -2
- package/lib/routers/api/config.js +2 -2
- package/lib/routers/api/data.js +2 -2
- package/lib/routers/api/demo.js +2 -2
- package/lib/routers/index.js +2 -2
- package/lib/routers/router.js +2 -2
- package/lib/service/index.js +2 -2
- package/lib/types/index.js +2 -2
- package/lib/utils/autoSave.js +2 -2
- package/lib/utils/common.js +2 -2
- package/lib/utils/transport.js +2 -2
- package/lib/ws/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(){var t={8798:function(t){function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=function(){return[]},e.resolve=e,e.id=8798,t.exports=e},1552:function(t,e,n){"use strict";n.d(e,{HD:function(){return d},IC:function(){return v},MI:function(){return r},Nb:function(){return c},P8:function(){return w},Xo:function(){return M},cH:function(){return u},gg:function(){return h},hS:function(){return _},jd:function(){return a},n6:function(){return f},nI:function(){return b},sK:function(){return p},vJ:function(){return g},xr:function(){return m},zr:function(){return l}});var s=n(5720),o=n(788),i=n.n(o);const r=({username:t,password:e})=>(0,s.A)()({url:"/accounts/login",method:"POST",data:{username:t,password:e}}),a=()=>(0,s.A)()({url:"/accounts/logout",method:"POST"}),c=(t=null)=>{const e=t?`/data/bots/${t}`:"/data/bots";return(0,s.A)()({url:e,method:"GET"})},l=(t="")=>(0,s.A)()({url:`/config/bots/${t}`,method:"GET"}),u=(t,e)=>(0,s.A)()({url:`/config/bots/${t}`,method:"PUT",data:{...e}}),d=(t="")=>(0,s.A)()({url:`/config/plugins/${t}`,method:"GET"}),p=(t="",e)=>(0,s.A)()({url:`/config/plugins/${t}`,method:"PUT",data:e}),h=()=>(0,s.A)()({url:"/config/global",method:"GET"}),f=t=>(0,s.A)()({url:"/config/global",method:"PUT",data:t}),m=(t="")=>(0,s.A)()({url:`/data/modules/${t}`,method:"GET"}),g=()=>i().get("https://kotori.js.org/assets/data_details.json"),v=()=>(0,s.A)()({url:"/data/stats/",method:"GET"}),w=()=>(0,s.A)()({url:"/data/status/",method:"GET"}),M=(t="")=>(0,s.A)()({url:`/config/commands/${t}`,method:"GET"}),_=(t,e)=>(0,s.A)()({url:`/config/commands/${t}`,method:"PUT",data:e}),b=()=>i().get("https://kotori.js.org/assets/deps.json")},8235:function(t,e,n){"use strict";var s=n(6848),o=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},i=[],r={name:"App",mounted(){console.error("更新kams的版本,添加版本不一致清空缓存")}},a=r,c=n(1656),l=(0,c.A)(a,o,i,!1,null,"454242da",null),u=l.exports,d=n(9325),p=n(3722),h=(n(4114),function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"pps-dialog"}},[t.dialogFlag?e("dialog",{ref:"dialog"},[e("div",{staticClass:"pps-dialog-window"},[e("header",[t._t("title",(function(){return[t._v(t._s(t.title))]})),e("pps-icon",{attrs:{icon:"pps-icon-close"},on:{click:function(e){return t.handleAction("close")}}})],2),e("div",{staticClass:"pps-dialog-content"},[t._t("content",(function(){return[e("p",[t._v(t._s(t.content))])]}))],2),e("footer",[t._t("footer",(function(){return[e("pps-button",{on:{click:function(e){return t.handleAction("cancel")}}},[t._v("取消")]),e("pps-button",{attrs:{theme:"confirm"},on:{click:function(e){return t.handleAction("confirm")}}},[t._v("确认")])]}))],2)])]):t._e()])}),f=[],m={name:"ppsDialog",data(){return{dialogFlag:!1,isShowing:!1,isClosing:!1,action:""}},methods:{cancelFn(){this.closeMessageFn(),this.$emit("canceled")},confirmFn(){this.closeMessageFn(),this.$emit("confirmed")},confirmClick(){return new Promise(((t,e)=>{this.closeMessageFn(),t()}))},handleAction(t){this.action=t,this.closeMessageFn(),this.show&&("confirm"===this.action&&this.$emit("confirmed"),["cancel","close"].includes(this.action)&&this.$emit("canceled"))},showMessageFn(){this.dialogFlag=!0,this.$nextTick((()=>{this.$refs.dialog&&(this.$refs.dialog.showModal(),this.afterShow()&&this.afterShow())}))},closeMessageFn(){this.isClosing||(this.isClosing=!0,this.dialogFlag=!1,setTimeout((()=>{this.isClosing=!1;try{this.action&&this.callback(this.action),this.$refs.dialog.close()}catch(t){}}),300))},handleMessageFn(t){t?this.showMessageFn():this.closeMessageFn()}},watch:{dialogFlag(){this.$emit("update:show",this.dialogFlag)},show(t,e){this.handleMessageFn(t)}},mounted(){this.show&&this.showMessageFn()},props:{show:{type:Boolean,default(){return!1}},handleClick:{type:Function},content:{type:String,default(){return"警告"}},title:{type:String,default(){return"提示"}},afterShow:{type:Function,default(){return!1}},callback:{type:Function,default(){return!1}}}},g=m,v=(0,c.A)(g,h,f,!1,null,null,null),w=v.exports;let M,_;const b=[],C=s["default"].extend(w);function y(){M=new C({el:document.createElement("div")}),M.callback=A}const A=t=>{if(_){const{resolve:e,reject:n,callback:s}=_;"function"===typeof s&&s(t),e&&("confirm"===t?e(t):n(t))}},S=()=>{M||y(),_=b.shift();const t=_.options;Object.assign(M,{title:"",message:"",...t}),document.body.appendChild(M.$el),s["default"].nextTick((()=>{M.showMessageFn()}))},x=function(t,e){if("undefined"!==typeof Promise)return new Promise(((n,s)=>{b.push({options:t,callback:e,resolve:n,reject:s}),S()}));b.push({options:t,callback:e}),S()};var E=x,$=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-avatar"},t.$listeners),[t.href?e("a",{staticClass:"pps-avatar-link",attrs:{href:t.href,title:"",target:t.href?"_blank":""}},[e("img",{staticClass:"pps-avatar-img",attrs:{src:t.src,alt:"",width:`${t.size}px`}})]):e("img",{staticClass:"pps-avatar-img",attrs:{src:t.src,alt:"",width:`${t.size}px`,height:`${t.size}px`}})])},k=[],T={name:"ppsAvatar",props:{src:{type:String,default(){return"https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png"}},href:{type:String,default(){return""}},size:{type:[Number,String],default(){return 100}}}},z=T,O=(0,c.A)(z,$,k,!1,null,null,null),N=O.exports;N.install=function(t){t.component(N.name,N)};var P=N,H=function(){var t=this,e=t._self._c;return e("button",t._g(t._b({staticClass:"pps-button",class:[t.theme?`pps-button-${t.theme}`:"pps-button-default"]},"button",t.$attrs,!1),t.$listeners),[t._t("default",(function(){return[t._v("pps-button")]}))],2)},I=[],U={name:"ppsButton",inheritAttrs:!1,props:{theme:{type:String,default(){return""}},content:{type:String,default(){return"pps-button"}},handleData:{type:Object}},data(){return{}},methods:{}},B=U,F=(0,c.A)(B,H,I,!1,null,null,null),R=F.exports;R.install=function(t){t.component(R.name,R)};var D=R,L=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pps-card"},[t._t("default")],2)},V=[],G={name:"ppsCard",data(){return{}}},W=G,j=(0,c.A)(W,L,V,!1,null,null,null),q=j.exports;q.install=function(t){t.component(q.name,q)};var Z=q,K=function(){var t=this,e=t._self._c;return e("section",[e("pps-nav"),e("pps-header"),e("pps-main"),e("pps-footer")],1)},J=[],X={name:"pps-container"},Y=X,Q=(0,c.A)(Y,K,J,!1,null,"374241e6",null),tt=Q.exports;tt.install=function(t){t.component(tt.name,tt)};var et=tt,nt=function(){var t=this,e=t._self._c;return e("div",{ref:"container",staticClass:"pps-context-menu-area"},[t._t("content"),e("transition",{attrs:{name:"pps-context"}},[t.isShowMenus?e("div",{directives:[{name:"show",rawName:"v-show",value:t.showContextMenu,expression:"showContextMenu"}],ref:"menu",staticClass:"pps-context-menu_wrapper",style:t.menuPosition,on:{click:t=>t.stopPropagation()}},[t.$slots.prepend?e("div",{staticClass:"pps-context-menu_prepend"},[t._t("prepend")],2):t._e(),t.menus.length?e("ul",{staticClass:"pps-context-menu_inner"},[t._t("item",(function(){return t._l(t.menus,(function(n,s){return e("li",{key:s,staticClass:"pps-context-menu-item",on:{click:function(e){return t.handleSelect(n,e)}}},[t._v(" "+t._s(n.label)+" ")])}))}),{menu:t.menus})],2):t._e(),t.$slots.append?e("div",{staticClass:"pps-context-menu_append"},[t._t("append")],2):t._e()]):t._e()])],2)},st=[],ot={name:"pps-context-menu",directives:{animation:{bind(t,e){t.animate([{transform:"scale(0)",opacity:0},{transform:"scale(1)",opacity:1}],{duration:300,easing:"ease"})}}},data(){return{showContextMenu:!1,x:0,y:0,isBottom:!1,isRight:!1}},methods:{handleSelect(t,e){e.stopPropagation(),this.showContextMenu=!1,this.$emit("select",t)},openMenu(t){t.preventDefault(),t.stopPropagation(),this.x=t.clientX,this.y=t.clientY,this.showContextMenu=!0,this.$nextTick((()=>{requestAnimationFrame((()=>{this.setPosition(t.clientX,t.clientY)}))}))},setPosition(t,e){if(!this.isShowMenus)return;const n=window.innerWidth,s=window.innerHeight,o=this.$refs.menu,i=o.style.transition,r=o.style.transform;o.style.transition="none",o.style.transform="none";const a=this.$refs.menu.getBoundingClientRect();t+a.width>n&&(this.x=t-a.width),e+a.height>s&&(this.y=e-a.height),o.offsetHeight,o.style.transition=i,o.style.transform=r},closeMenu(){this.showContextMenu=!1},bindClickEvents(){this.$refs.container.addEventListener("click",this.openMenu,!1),this.setPosition()},bindContextEvents(){this.$refs.container.addEventListener("contextmenu",this.openMenu,!1),window.addEventListener("contextmenu",this.closeMenu,!0)}},computed:{isShowMenus(){return this.menus.length||this.$slots.prepend||this.$slots.append},menuPosition(){return{left:this.x+"px",top:this.y+"px"}}},mounted(){this.$refs.container.addEventListener("contextmenu",this.openMenu,!0),window.addEventListener("click",this.closeMenu,!0),window.addEventListener("contextmenu",this.closeMenu,!0)},beforeDestroy(){this.$refs.container.removeEventListener("contextmenu",this.openMenu),window.removeEventListener("click",this.closeMenu),window.removeEventListener("contextmenu",this.closeMenu)},props:{menus:{default(){return[]}},trigger:{type:String,default(){return"contextmenu"}}}},it=ot,rt=(0,c.A)(it,nt,st,!1,null,null,null),at=rt.exports;at.install=function(t){t.component(at.name,at)};var ct=at;w.install=function(t){t.component(w.name,w)};var lt=w,ut=function(){var t=this,e=t._self._c;return e("form",{staticClass:"pps-form",on:{submit:function(e){return e.preventDefault(),t.handleSubmit()},reset:function(e){return e.preventDefault(),t.handleReset()}}},[t._t("default")],2)},dt=[],pt={name:"pps-form",methods:{handleSubmit(){this.$emit("submit")},handleReset(){this.$emit("reset")}},mounted(){}},ht=pt,ft=(0,c.A)(ht,ut,dt,!1,null,null,null),mt=ft.exports;mt.install=function(t){t.component(mt.name,mt)};var gt=mt,vt=function(){var t=this,e=t._self._c;return e(t.iconName,t._g({tag:"component"},t.$listeners))},wt=[],Mt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pps-icon"},[e("svg",{staticClass:"icon",attrs:{t:"1713442769179",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1390",width:"20",height:"20"}},[e("path",{attrs:{d:"M513 529.3c-118.8 0-215.5-96.7-215.5-215.5S394.2 98.2 513 98.2s215.5 96.7 215.5 215.5S631.8 529.3 513 529.3z m0-380.5c-90.9 0-164.9 74-164.9 164.9s74 164.9 164.9 164.9 164.9-74 164.9-164.9-74-164.9-164.9-164.9z",fill:"#231815","p-id":"1391"}}),e("path",{attrs:{d:"M796.3 876.6H229.7c-25.4 0-49.2-11.3-65.4-30.9-15.4-18.7-21.7-42.9-17.1-66.2C181.3 605.2 335.1 478.7 513 478.7c177.8 0 331.7 126.5 365.7 300.8 4.6 23.4-1.7 47.5-17.1 66.2-16.1 19.7-40 30.9-65.3 30.9zM513 529.3c-153.7 0-286.7 109.3-316.1 259.9-2.3 11.6 3.1 20.3 6.5 24.4 6.5 8 16.1 12.5 26.3 12.5h566.5c10.2 0 19.8-4.5 26.4-12.5 3.4-4.1 8.8-12.8 6.5-24.4C799.7 638.6 666.7 529.3 513 529.3z",fill:"#231815","p-id":"1392"}})])])},_t=[],bt={name:"pps-icon-admin"},Ct=bt,yt=(0,c.A)(Ct,Mt,_t,!1,null,null,null),At=yt.exports,St=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pps-icon-close"},[e("pps-button",t._g({},t.$listeners),[e("i",[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"}},[e("path",{attrs:{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"}})])])])],1)},xt=[],Et={name:"pps-close"},$t=Et,kt=(0,c.A)($t,St,xt,!1,null,null,null),Tt=kt.exports,zt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pps-icon"},[e("svg",{staticClass:"icon",attrs:{t:"1713502126052",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1602",width:"20",height:"20"}},[e("path",{attrs:{d:"M733.5 877.9h-443c-54.3 0-98.6-44.2-98.6-98.6V492.5c0-54.4 44.3-98.6 98.6-98.6h443c54.3 0 98.6 44.2 98.6 98.6v286.8c0 54.4-44.2 98.6-98.6 98.6z m-443-424.7c-21.7 0-39.3 17.6-39.3 39.3v286.8c0 21.7 17.6 39.3 39.3 39.3h443c21.7 0 39.3-17.6 39.3-39.3V492.5c0-21.7-17.6-39.3-39.3-39.3h-443z",fill:"#231815","p-id":"1603"}}),e("path",{attrs:{d:"M669.7 453.2H354.3c-23.5 0-42.6-19.1-42.6-42.7V337c0-105.2 85.6-190.9 190.9-190.9h19c105.2 0 190.9 85.6 190.9 190.9v73.6c-0.1 23.4-19.3 42.6-42.8 42.6zM371 393.9h282V337c0-72.5-59-131.5-131.5-131.5h-19C430 205.4 371 264.5 371 337v56.9zM512 634.7c-31 0-56.2-25.2-56.2-56.2 0-31 25.2-56.2 56.2-56.2 30.9 0 56.1 25.2 56.1 56.2 0 31-25.2 56.2-56.1 56.2z m0-59.3l-3.2 3.2c0 1.7 1.4 3.1 3.2 3.1v-6.3z",fill:"#231815","p-id":"1604"}}),e("path",{attrs:{d:"M512 725.9c-16.4 0-29.7-13.3-29.7-29.7V567.9c0-16.4 13.3-29.7 29.7-29.7s29.7 13.3 29.7 29.7v128.3c0 16.4-13.3 29.7-29.7 29.7z",fill:"#231815","p-id":"1605"}})])])},Ot=[],Nt={name:"pps-icon-lock"},Pt=Nt,Ht=(0,c.A)(Pt,zt,Ot,!1,null,null,null),It=Ht.exports,Ut=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"icon",attrs:{t:"1721583766095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3630",width:"24",height:"24"}},[e("path",{attrs:{d:"M512 102.4C285.696 102.4 102.4 285.696 102.4 512s183.296 409.6 409.6 409.6 409.6-183.296 409.6-409.6S738.304 102.4 512 102.4z m218.9312 409.6c0 28.2624-22.9376 51.2-51.2 51.2H344.2688c-28.2624 0-51.2-22.9376-51.2-51.2s22.9376-51.2 51.2-51.2h335.4624c28.2624 0 51.2 22.9376 51.2 51.2z",fill:"#ff0000","p-id":"3631"}})])},Bt=[],Ft={name:"pps-icon-offline"},Rt=Ft,Dt=(0,c.A)(Rt,Ut,Bt,!1,null,null,null),Lt=Dt.exports,Vt=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"icon",attrs:{t:"1721583939410",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5461",width:"24",height:"24"}},[e("path",{attrs:{d:"M512 85.3504a426.6496 426.6496 0 1 1 0 853.2992 426.6496 426.6496 0 0 1 0-853.2992z m188.7232 279.04L461.824 603.2896 343.808 485.2736l-45.1584 45.1072 133.12 133.1712 4.352 3.84a42.6496 42.6496 0 0 0 55.9616-3.84l253.952-253.8496-45.312-45.312z",fill:"#07C160","p-id":"5462"}})])},Gt=[],Wt={name:"pps-icon-online"},jt=Wt,qt=(0,c.A)(jt,Vt,Gt,!1,null,null,null),Zt=qt.exports,Kt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pps-icon"},[e("svg",{staticClass:"icon",attrs:{t:"1689691213164",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3989",width:"20",height:"20"}},[e("path",{attrs:{d:"M456.533333 104.533333c-187.733333 0-341.333333 153.6-341.333333 341.333334s153.6 341.333333 341.333333 341.333333 341.333333-153.6 341.333334-341.333333-153.6-341.333333-341.333334-341.333334z m0 618.666667c-151.466667 0-277.333333-123.733333-277.333333-277.333333s125.866667-277.333333 277.333333-277.333334 277.333333 123.733333 277.333334 277.333334-125.866667 277.333333-277.333334 277.333333zM902.4 883.2l-29.866667 29.866667c-8.533333 8.533333-21.333333 8.533333-29.866666 0l-192-192 59.733333-59.733334 192 192c8.533333 8.533333 8.533333 21.333333 0 29.866667z",fill:"#2e2e2e","p-id":"3990"}})])])},Jt=[],Xt={name:"pps-icon-search"},Yt=Xt,Qt=(0,c.A)(Yt,Kt,Jt,!1,null,null,null),te=Qt.exports,ee=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-icon"},t.$listeners),[e("svg",{staticClass:"icon",attrs:{t:"1723400940446",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"37370",width:"24",height:"24"}},[e("path",{attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9 23.5 23.2 38.1 55.4 38.1 91v112.5c0.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z","p-id":"37371",fill:"#707070"}})])])},ne=[],se={name:"pps-icon-github"},oe=se,ie=(0,c.A)(oe,ee,ne,!1,null,null,null),re=ie.exports,ae=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-icon"},t.$listeners),[e("svg",{staticClass:"icon",attrs:{t:"1723400843647",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"36518",width:"24",height:"24"}},[e("path",{attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z m62.9-219.5c-18.5 7.1-30.9 25.1-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z","p-id":"36519",fill:"#707070"}})])])},ce=[],le={name:"pps-icon-help"},ue=le,de=(0,c.A)(ue,ae,ce,!1,null,null,null),pe=de.exports,he=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-icon"},t.$listeners),[e("svg",{staticClass:"icon",attrs:{t:"1723400905489",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"37112",width:"24",height:"24"}},[e("path",{attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m210.5 612.4c-11.5 1.4-44.9-52.7-44.9-52.7 0 31.3-16.2 72.2-51.1 101.8 16.9 5.2 54.9 19.2 45.9 34.4-7.3 12.3-125.6 7.9-159.8 4-34.2 3.8-152.5 8.3-159.8-4-9.1-15.2 28.9-29.2 45.8-34.4-35-29.5-51.1-70.4-51.1-101.8 0 0-33.4 54.1-44.9 52.7-5.4-0.7-12.4-29.6 9.4-99.7 10.3-33 22-60.5 40.2-105.8-3.1-116.9 45.3-215 160.4-215 113.9 0 163.3 96.1 160.4 215 18.1 45.2 29.9 72.8 40.2 105.8 21.7 70.1 14.6 99.1 9.3 99.7z","p-id":"37113",fill:"#707070"}})])])},fe=[],me={name:"pps-icon-qq"},ge=me,ve=(0,c.A)(ge,he,fe,!1,null,null,null),we=ve.exports,Me=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-icon"},t.$listeners),[e("svg",{staticClass:"octicon octicon-sidebar-collapse",staticStyle:{display:"inline-block","user-select":"none","vertical-align":"text-bottom",overflow:"visible"},attrs:{"aria-hidden":"true",focusable:"false",viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor"}},[e("path",{attrs:{d:"M6.823 7.823a.25.25 0 0 1 0 .354l-2.396 2.396A.25.25 0 0 1 4 10.396V5.604a.25.25 0 0 1 .427-.177Z"}}),e("path",{attrs:{d:"M1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0ZM1.5 1.75v12.5c0 .138.112.25.25.25H9.5v-13H1.75a.25.25 0 0 0-.25.25ZM11 14.5h3.25a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H11Z"}})])])},_e=[],be={name:"pps-icon-side-hide"},Ce=be,ye=(0,c.A)(Ce,Me,_e,!1,null,null,null),Ae=ye.exports,Se=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-icon"},t.$listeners),[e("svg",{staticClass:"octicon octicon-sidebar-expand",staticStyle:{display:"inline-block","user-select":"none","vertical-align":"text-bottom",overflow:"visible"},attrs:{"aria-hidden":"true",focusable:"false",viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor"}},[e("path",{attrs:{d:"m4.177 7.823 2.396-2.396A.25.25 0 0 1 7 5.604v4.792a.25.25 0 0 1-.427.177L4.177 8.177a.25.25 0 0 1 0-.354Z"}}),e("path",{attrs:{d:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25H9.5v-13Zm12.5 13a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H11v13Z"}})])])},xe=[],Ee={name:"pps-icon-side-show"},$e=Ee,ke=(0,c.A)($e,Se,xe,!1,null,null,null),Te=ke.exports,ze=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pps-icon"},[e("svg",{staticClass:"icon",attrs:{t:"1724756128299",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4510",width:"20",height:"20"}},[e("path",{attrs:{d:"M224.2 477.8c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2s3.3 17.5 10 24.2c6.7 6.7 14.7 10 24.2 10 9.4 0 17.5-3.3 24.2-10 6.7-6.7 10-14.7 10-24.2s-3.3-17.5-10-24.2c-6.7-6.7-14.8-10-24.2-10zM863.8 701.7H160.2c-27.1 0-50.2 9.6-69.4 28.8C71.6 749.6 62 772.8 62 799.8v64c0 27.1 9.6 50.2 28.8 69.4 19.2 19.2 42.3 28.8 69.4 28.8h703.6c27.1 0 50.2-9.6 69.4-28.8 19.2-19.2 28.8-42.3 28.8-69.4v-64c0-27.1-9.6-50.2-28.8-69.4-19.2-19.1-42.3-28.7-69.4-28.7z m29.8 162.1c0 8.2-2.9 15.2-8.7 21-5.8 5.8-12.8 8.7-21 8.7H160.2c-8.2 0-15.2-2.9-21-8.7-5.8-5.8-8.7-12.8-8.7-21v-64c0-8.2 2.9-15.2 8.7-21 5.8-5.8 12.8-8.7 21-8.7h703.6c8.2 0 15.2 2.9 21 8.7 5.8 5.8 8.7 12.8 8.7 21v64z","p-id":"4511",fill:"#515151"}}),e("path",{attrs:{d:"M799.8 797.6H671.9c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2 0 9.4 3.3 17.5 10 24.2 6.7 6.7 14.7 10 24.2 10h127.9c9.4 0 17.5-3.3 24.2-10 6.7-6.7 10-14.8 10-24.2 0-9.4-3.3-17.5-10-24.2-6.6-6.6-14.7-10-24.2-10zM224.2 797.6c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2 0 9.4 3.3 17.5 10 24.2 6.7 6.7 14.7 10 24.2 10 9.4 0 17.5-3.3 24.2-10 6.7-6.7 10-14.8 10-24.2s-3.3-17.5-10-24.2c-6.7-6.6-14.8-10-24.2-10zM352.1 797.6c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2s3.3 17.5 10 24.2c6.7 6.7 14.8 10 24.2 10s17.5-3.3 24.2-10c6.7-6.7 10-14.8 10-24.2 0-9.4-3.3-17.5-10-24.2-6.7-6.6-14.8-10-24.2-10zM799.8 157.9H671.9c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2 0 9.4 3.3 17.5 10 24.2 6.7 6.7 14.7 10 24.2 10h127.9c9.4 0 17.5-3.3 24.2-10 6.7-6.7 10-14.7 10-24.2s-3.3-17.5-10-24.2c-6.6-6.6-14.7-10-24.2-10zM352.1 157.9c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2s3.3 17.5 10 24.2c6.7 6.7 14.8 10 24.2 10s17.5-3.3 24.2-10c6.7-6.7 10-14.7 10-24.2 0-9.4-3.3-17.5-10-24.2-6.7-6.6-14.8-10-24.2-10z","p-id":"4512",fill:"#515151"}}),e("path",{attrs:{d:"M933.2 90.8C914 71.6 890.9 62 863.8 62H160.2c-27.1 0-50.2 9.6-69.4 28.8C71.6 110 62 133.1 62 160.2v64c0 27.1 9.6 50.2 28.8 69.4 19.2 19.2 42.3 28.8 69.4 28.8h703.6c27.1 0 50.2-9.6 69.4-28.8 19.2-19.2 28.8-42.3 28.8-69.4v-64c0-27.1-9.6-50.2-28.8-69.4z m-39.6 133.4c0 8.2-2.9 15.2-8.7 21-5.8 5.8-12.8 8.7-21 8.7H160.2c-8.2 0-15.2-2.9-21-8.7-5.8-5.8-8.7-12.8-8.7-21v-64c0-8.2 2.9-15.2 8.7-21 5.8-5.8 12.8-8.7 21-8.7h703.6c8.2 0 15.2 2.9 21 8.7 5.8 5.8 8.7 12.8 8.7 21v64z","p-id":"4513",fill:"#515151"}}),e("path",{attrs:{d:"M224.2 157.9c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2s3.3 17.5 10 24.2c6.7 6.7 14.7 10 24.2 10 9.4 0 17.5-3.3 24.2-10 6.7-6.7 10-14.7 10-24.2s-3.3-17.5-10-24.2c-6.7-6.6-14.8-10-24.2-10zM799.8 477.8H671.9c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2 0 9.4 3.3 17.5 10 24.2 6.7 6.7 14.7 10 24.2 10h127.9c9.4 0 17.5-3.3 24.2-10 6.7-6.7 10-14.7 10-24.2s-3.3-17.5-10-24.2c-6.6-6.7-14.7-10-24.2-10z","p-id":"4514",fill:"#515151"}}),e("path",{attrs:{d:"M863.8 381.8H160.2c-27.1 0-50.2 9.6-69.4 28.8C71.6 429.8 62 452.9 62 480v64c0 27.1 9.6 50.2 28.8 69.4 19.2 19.2 42.3 28.8 69.4 28.8h703.6c27.1 0 50.2-9.6 69.4-28.8 19.2-19.2 28.8-42.3 28.8-69.4v-64c0-27.1-9.6-50.2-28.8-69.4-19.2-19.2-42.3-28.8-69.4-28.8zM893.6 544c0 8.2-2.9 15.2-8.7 21-5.8 5.8-12.8 8.7-21 8.7H160.2c-8.2 0-15.2-2.9-21-8.7-5.8-5.8-8.7-12.8-8.7-21v-64c0-8.2 2.9-15.2 8.7-21 5.8-5.8 12.8-8.7 21-8.7h703.6c8.2 0 15.2 2.9 21 8.7 5.8 5.8 8.7 12.8 8.7 21v64z","p-id":"4515",fill:"#515151"}}),e("path",{attrs:{d:"M352.1 477.8c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2s3.3 17.5 10 24.2c6.7 6.7 14.8 10 24.2 10 9.4 0 17.5-3.3 24.2-10 6.7-6.7 10-14.7 10-24.2s-3.3-17.5-10-24.2c-6.7-6.7-14.8-10-24.2-10z","p-id":"4516",fill:"#515151"}})])])},Oe=[],Ne={name:"pps-icon-host"},Pe=Ne,He=(0,c.A)(Pe,ze,Oe,!1,null,null,null),Ie=He.exports,Ue=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pps-icon"},[e("svg",{staticClass:"icon",attrs:{t:"1724756288237",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4941",width:"20",height:"20"}},[e("path",{attrs:{d:"M931.1 93.2C910.5 72.4 885.6 62 856.5 62h-689c-29.1 0-53.9 10.4-74.5 31.2C72.3 114 62 139 62 168.4v79.1c0 29.3 10.3 54.4 30.9 75.2 20.6 20.8 45.5 31.2 74.5 31.2h689.1c29.1 0 53.9-10.4 74.5-31.2 20.6-20.8 30.9-45.9 30.9-75.2v-79.1c0.1-29.3-10.2-54.4-30.8-75.2z m-36.6 154.3c0.1 10.5-3.2 19.2-9.9 26-9.2 9.1-18.5 13.6-28 13.6l-689.1-0.4c-11 0.5-19.8-2.7-26.6-9.5-7.2-9.9-10.9-19.7-10.9-29.3v-79.1c0.5-11.5 4.1-20.7 10.9-27.5 8.2-7.5 17.1-11.3 26.6-11.3l689.1 0.2c10.6 1 19.3 5 26 11.8 8 8 11.9 16.8 11.9 26.5v79z","p-id":"4942",fill:"#515151"}}),e("path",{attrs:{d:"M218.024259 222.162027a35.9 35.9 0 1 0 71.555371-5.921901 35.9 35.9 0 1 0-71.555371 5.921901Z","p-id":"4943",fill:"#515151"}}),e("path",{attrs:{d:"M440.8 740.7c6.9-6.7 10.4-14.8 10.4-24.2 0-9.5-3.5-17.5-10.4-24.2-6.9-6.7-15.3-10-25.1-10H167.4c-29.1 0-53.9 10-74.5 29.9S62 756.2 62 784.3V860c0 28.2 10.3 52.2 30.9 72.1 20.6 19.9 45.5 29.9 74.6 29.9h248.3c9.8 0 18.1-3.3 25.1-10 6.9-6.7 10.4-14.8 10.4-24.2 0-9.5-3.5-17.5-10.4-24.2-6.9-6.7-15.3-10-25.1-10H167.5c-9.6 0-17.7-3.3-24.5-9.8-6.8-6.5-10.1-14.4-10.1-23.7v-75.8c0-9.2 3.4-17.1 10.1-23.6 6.8-6.5 14.9-9.8 24.4-9.8h248.3c9.8-0.1 18.2-3.5 25.1-10.2z","p-id":"4944",fill:"#515151"}}),e("path",{attrs:{d:"M217.9 831.9c0 19.8 16.1 35.9 35.9 35.9s35.9-16.1 35.9-35.9-16.1-35.9-35.9-35.9-35.9 16-35.9 35.9zM217.9 520.8c0 19.8 16.1 35.9 35.9 35.9s35.9-16.1 35.9-35.9c0-19.8-16.1-35.9-35.9-35.9s-35.9 16.1-35.9 35.9z","p-id":"4945",fill:"#515151"}}),e("path",{attrs:{d:"M931.1 408.1c-20.6-19.9-45.5-29.9-74.5-29.9H167.5c-29.1 0-53.9 10-74.5 29.9-20.7 19.9-31 44-31 72.1V556c0 28.1 10.3 52.1 30.9 72.1 20.6 19.9 45.5 29.9 74.5 29.9H416c9.8 0 18.1-3.3 25.1-10 6.9-6.7 10.4-14.8 10.4-24.2 0-9.5-3.5-17.5-10.4-24.2-6.9-6.7-15.3-10-25.1-10H167.5c-9.5 0-17.7-3.3-24.4-9.8-6.8-6.5-10.1-14.4-10.1-23.6v-75.8c-0.7-9.6 2.4-17.7 9.2-24.3 7.4-7.3 15.9-11 25.4-11l689.1 1.8c9.5 0 17.7 3.3 24.4 9.8 6.8 6.5 10.1 14.4 10.1 23.6v21.9c0 9.5 3.5 17.5 10.4 24.2 6.9 6.7 15.3 10 25.1 10s18.1-3.3 25.1-10c6.9-6.7 10.4-14.8 10.4-24.2v-21.9c-0.2-28.2-10.5-52.3-31.1-72.2z","p-id":"4946",fill:"#515151"}}),e("path",{attrs:{d:"M847.9 557H581.1c-63 0-114.1 49.4-114.1 110.2v184.5c0 60.9 51.1 110.2 114.1 110.2h266.8c63 0 114.1-49.4 114.1-110.2V667.2c0-60.8-51.1-110.2-114.1-110.2z m50.2 294.8c0 13.4-4.9 24.8-14.7 34.3-9.8 9.5-21.6 14.2-35.5 14.2H581.1c-13.9 0-25.7-4.7-35.5-14.2s-14.7-20.9-14.7-34.3V667.2c0-13.4 4.9-24.8 14.7-34.3 9.8-9.5 21.6-14.2 35.5-14.2h266.8c13.9 0 25.7 4.7 35.5 14.2s14.7 20.9 14.7 34.3v184.6z","p-id":"4947",fill:"#515151"}}),e("path",{attrs:{d:"M841.3 676.7c-5.4-4.8-12-7.2-19.7-7.2H607.3c-7.7 0-14.2 2.4-19.7 7.2s-8.2 10.5-8.2 17.2v84.4c0 6.7 2.7 12.4 8.2 17.2 5.4 4.8 12 7.2 19.7 7.2h20.3l14.4 31.1c4.5 10.5 13.3 15.8 26.3 15.8h92.2c13 0 21.8-5.3 26.3-15.8l14.4-31.1h20.3c7.7 0 14.2-2.4 19.7-7.2 5.4-4.8 8.2-10.5 8.2-17.2v-84.4c0.1-6.7-2.6-12.5-8.1-17.2z m-26 95.9H797c-13 0-21.8 5.3-26.3 15.8l-14.4 31.1h-83.5l-14.4-31.1c-4.5-10.5-13.3-15.8-26.3-15.8h-18.2v-73.2h201.5v73.2z","p-id":"4948",fill:"#515151"}}),e("path",{attrs:{d:"M789.5 759.5c4.7 0 8.5-2.5 11.4-7.6 2.4-4.2 3.6-9.2 3.6-14.9s-1.2-10.7-3.6-14.9c-2.9-5-6.7-7.6-11.4-7.6s-8.5 2.5-11.4 7.6c-2.4 4.2-3.6 9.2-3.6 14.9s1.2 10.7 3.6 14.9c2.9 5.1 6.7 7.6 11.4 7.6zM639.5 759.5c4.7 0 8.5-2.5 11.4-7.6 2.4-4.2 3.6-9.2 3.6-14.9s-1.2-10.7-3.6-14.9c-2.9-5-6.7-7.6-11.4-7.6s-8.5 2.5-11.4 7.6c-2.4 4.2-3.6 9.2-3.6 14.9s1.2 10.7 3.6 14.9c2.9 5.1 6.7 7.6 11.4 7.6zM689.5 759.5c4.7 0 8.5-2.5 11.4-7.6 2.4-4.2 3.6-9.2 3.6-14.9s-1.2-10.7-3.6-14.9c-2.9-5-6.7-7.6-11.4-7.6s-8.5 2.5-11.4 7.6c-2.4 4.2-3.6 9.2-3.6 14.9s1.2 10.7 3.6 14.9c2.9 5.1 6.7 7.6 11.4 7.6zM739.5 759.5c4.7 0 8.5-2.5 11.4-7.6 2.4-4.2 3.6-9.2 3.6-14.9s-1.2-10.7-3.6-14.9c-2.9-5-6.7-7.6-11.4-7.6s-8.5 2.5-11.4 7.6c-2.4 4.2-3.6 9.2-3.6 14.9s1.2 10.7 3.6 14.9c2.9 5.1 6.7 7.6 11.4 7.6z","p-id":"4949",fill:"#515151"}})])])},Be=[],Fe={name:"pps-icon-port"},Re=Fe,De=(0,c.A)(Re,Ue,Be,!1,null,null,null),Le=De.exports,Ve=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-icon-account"},t.$listeners),[e("svg",{staticClass:"icon",attrs:{t:"1725364158167",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2049",width:"20",height:"20"}},[e("path",{attrs:{d:"M864 128h-704a128 128 0 0 0-128 128v512a128 128 0 0 0 128 128h704a128 128 0 0 0 128-128V256a128 128 0 0 0-128-128z m64 640a64 64 0 0 1-64 64h-704a64 64 0 0 1-64-64V256a64 64 0 0 1 64-64h704a64 64 0 0 1 64 64v512z",fill:"#8a8a8a","p-id":"2050"}}),e("path",{attrs:{d:"M832 480h-192a32 32 0 0 0 0 64h192a32 32 0 0 0 0-64zM832 608h-192a32 32 0 0 0 0 64h192a32 32 0 0 0 0-64zM832 352h-192a32 32 0 0 0 0 64h192a32 32 0 0 0 0-64zM384 576a192 192 0 0 0-192 192h64a128 128 0 0 1 256 0h64a192 192 0 0 0-192-192zM384 512a128 128 0 1 0-0.064-256.064A128 128 0 0 0 384 512z m0-191.488a63.488 63.488 0 1 1 0 126.976 63.488 63.488 0 0 1 0-126.976z",fill:"#8a8a8a","p-id":"2051"}})])])},Ge=[],We={name:"pps-icon-account"},je=We,qe=(0,c.A)(je,Ve,Ge,!1,null,"07edebd6",null),Ze=qe.exports,Ke=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-icon-contact"},t.$listeners),[e("svg",{staticClass:"icon",attrs:{t:"1725363712634",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"29231",width:"20",height:"20"}},[e("path",{attrs:{d:"M832 64H256a128 128 0 0 0-128 128v64h-32a32 32 0 0 0 0 64H128v160h-32a32 32 0 0 0 0 64H128V704h-32a32 32 0 0 0 0 64H128v64a128 128 0 0 0 128 128h576a128 128 0 0 0 128-128V192a128 128 0 0 0-128-128z m64 768a64 64 0 0 1-64 64H256a64 64 0 0 1-64-64v-64h32a32 32 0 0 0 0-64H192V544h32a32 32 0 0 0 0-64H192V320h32a32 32 0 0 0 0-64H192V192a64 64 0 0 1 64-64h576a64 64 0 0 1 64 64v640z",fill:"#8A8A8A","p-id":"29232"}}),e("path",{attrs:{d:"M544 576a192 192 0 0 0-192 192h64a128 128 0 0 1 256 0h64a192 192 0 0 0-192-192zM544 512a128 128 0 1 0-0.064-256.064A128 128 0 0 0 544 512z m0-191.488a63.488 63.488 0 1 1 0 126.976 63.488 63.488 0 0 1 0-126.976z",fill:"#8A8A8A","p-id":"29233"}})])])},Je=[],Xe={name:"pps-icon-contact"},Ye=Xe,Qe=(0,c.A)(Ye,Ke,Je,!1,null,null,null),tn=Qe.exports,en=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-icon-group"},t.$listeners),[e("svg",{staticClass:"icon",attrs:{t:"1725373394462",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1521",width:"20",height:"20"}},[e("path",{attrs:{d:"M482.399 20.67C216.884 20.67 2 207.593 2 438.173c0 141.471 82.104 267.268 206.136 344.098v129.283c0 17.463 12.22 27.939 26.208 27.939 5.236 0 10.496-1.73 13.967-3.494l131.017-87.34c33.208 6.984 66.383 8.748 101.329 8.748 265.519 0 480.38-186.928 480.38-417.504 1.77-232.31-213.096-419.233-478.638-419.233z m0 766.859c-29.697 0-59.402-3.494-89.088-8.748l-13.983-3.494c-8.729-1.725-17.462 0-26.214 5.258l-12.202 8.715-62.897 41.939v-68.115c0-12.242-6.982-24.484-17.461-29.703l-17.477-10.479C134.764 658.244 70.138 551.711 70.138 439.904c0-192.147 183.433-347.601 410.519-347.601 227.103 0 410.503 155.454 410.503 347.601 1.764 190.401-183.4 347.625-408.761 347.625zM209.878 450.376c0 31.857 25.807 57.659 57.66 57.659 31.836 0 57.642-25.801 57.642-57.659 0-31.797-25.806-57.62-57.642-57.62-31.853 0-57.66 25.824-57.66 57.62z m218.378 0c0 31.857 25.801 57.659 57.637 57.659 31.835 0 57.658-25.801 57.658-57.659 0-31.797-25.822-57.62-57.658-57.62-31.836 0-57.637 25.824-57.637 57.62z m211.349 0c0 31.857 25.824 57.659 57.643 57.659 31.854 0 57.676-25.801 57.676-57.659 0-31.797-25.822-57.62-57.676-57.62-31.818 0-57.643 25.824-57.643 57.62z m330.891 90.263c-1.031-1.301-2.117-2.547-3.18-3.848-7.514 28.535-18.244 56.021-31.754 82.121 0.563 1.268 1.268 2.475 1.809 3.742 9.139 21.021 14.104 43.742 14.104 67.438 0 62.834-36.301 122.688-97.15 158.992l-9.807 5.887c-5.887 2.928-9.844 9.807-9.844 16.689v38.27l-35.309-23.568-6.879-4.895c-4.895-2.928-9.811-3.92-14.705-2.928l-7.838 1.936c-16.723 2.998-33.412 4.895-50.047 4.895-40.004 0-77.678-8.852-110.551-24.273-32.635 7.621-66.5 12.422-101.378 14.07 54.632 47.082 129.826 76.195 212.888 76.195 22.014 0 42.893-1.102 63.771-5.473l82.469 54.963c2.182 1.104 5.473 2.184 8.74 2.184 8.814 0 16.508-6.592 16.508-17.572v-81.381c78.059-48.373 129.748-127.533 129.748-216.555 0.001-54.401-19.015-104.956-51.595-146.889z m0 0",fill:"#8a8a8a","p-id":"1522"}})])])},nn=[],sn={name:"pps-icon-group"},on=sn,rn=(0,c.A)(on,en,nn,!1,null,null,null),an=rn.exports,cn={name:"ppsIcon",data(){return{map:{"pps-icon-admin":At,"pps-icon-close":Tt,"pps-icon-lock":It,"pps-icon-offline":Lt,"pps-icon-online":Zt,"pps-icon-search":te,"pps-icon-github":re,"pps-icon-help":pe,"pps-icon-qq":we,"pps-icon-side-hide":Ae,"pps-icon-side-show":Te,"pps-icon-host":Ie,"pps-icon-port":Le,"pps-icon-account":Ze,"pps-icon-contact":tn,"pps-icon-group":an}}},components:{ppsAdmin:At,ppsClose:Tt,ppsLock:It,ppsOffline:Lt,ppsOnline:Zt,ppsSearch:te,ppsGithub:re,ppsHelp:pe,ppsQq:we,ppsSideHide:Ae,ppsSideShow:Te,ppsHost:Ie,ppsPort:Le,ppsAccount:Ze,ppsContact:tn,ppsGroup:an},props:{icon:{type:String,default(){return""}}},computed:{iconName(){return this.map[this.icon]?this.map[this.icon]:""}}},ln=cn,un=(0,c.A)(ln,vt,wt,!1,null,null,null),dn=un.exports;dn.install=function(t){t.component(dn.name,dn)};var pn=dn,hn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pps-input-wrapper"},[t.label?e("label",{staticClass:"pps-input-label",attrs:{for:t.label}},[t._v(t._s(t.label)+":")]):t._e(),t.$slots.prepend?e("div",{staticClass:"pps-input__prepend"},[t._t("prepend")],2):t._e(),e("div",{staticClass:"pps-input-inner",class:[{[t.theme]:!t.disabled},{"is-disabled":t.disabled},{"pps-input--prepend":t.$slots.prepend},{"pps-input--append":t.$slots.append}]},[t.icon?e("pps-icon",{attrs:{icon:t.icon}}):t._e(),e("input",t._g(t._b({directives:[{name:"model",rawName:"v-model.trim",value:t.keyWord,expression:"keyWord",modifiers:{trim:!0}}],ref:"input",staticClass:"pps-input",attrs:{id:t.label,type:t.viewPassword?t.showPassword?"text":"password":t.type,disabled:t.disabled,placeholder:t.placeholder},domProps:{value:t.keyWord},on:{blur:[t.handleBlur,function(e){return t.$forceUpdate()}],input:function(e){e.target.composing||(t.keyWord=e.target.value.trim())}}},"input",t.$attrs,!1),t.$listeners)),e("span",{staticClass:"pps-input-suffix"},[t.clearable?e("i",{staticClass:"icon icon-clear",on:{click:function(e){return t.clearFn()}}}):t._e(),t.showPasswordIcon?e("i",{staticClass:"icon icon-view",on:{click:function(e){return t.viewPasswordFn()}}}):t._e()]),t.$slots.default?e("div",{staticClass:"operation"},[t._t("default")],2):t._e()],1),t.$slots.append?e("div",{staticClass:"pps-input__append"},[t._t("append")],2):t._e()])},fn=[],mn={name:"ppsInput",inheritAttrs:!1,data(){return{keyWord:"",showPassword:!1}},props:{placeholder:{type:String,default(){return"请输入内容"}},theme:{type:String,default(){return"white"}},type:{type:String,default(){return"text"}},icon:{type:String,default(){return""}},content:{},label:{type:String,default(){return null}},disabled:{type:Boolean,default(){return!1}},viewPassword:{type:Boolean,default(){return!1}},clearable:{type:Boolean,default(){return!1}},"after-clear":{type:Function,default(){return()=>{}}}},methods:{clearFn(){console.log("clear"),this.keyWord="",this.$refs.input.focus(),this.afterClear()},viewPasswordFn(){this.showPassword=!this.showPassword},handleBlur(t){this.keyWord||(this.showPassword=!1)}},computed:{showPasswordIcon(){return this.viewPassword&&this.keyWord}},watch:{keyWord(){this.$emit("update:content",this.keyWord)},content:{immediate:!0,handler(t){this.keyWord=t}}},mounted(){}},gn=mn,vn=(0,c.A)(gn,hn,fn,!1,null,null,null),wn=vn.exports;wn.install=function(t){t.component(wn.name,wn)};var Mn=wn,_n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"table-item"},[t.title?t._t("title",(function(){return[e("span",{staticClass:"item-title"},[t._v(t._s(t.title.title))])]})):t._e(),t._t("content",(function(){return[e("span",{staticClass:"item-content",domProps:{innerHTML:t._s(t.content)}})]})),t._e()],2)},bn=[],Cn={name:"ppsTableItem",props:{title:{type:Boolean,required:!1,default(){return!1}},content:{default(){return"无"}},test:{type:Object,default(){return{}}}},data(){return{showFlag:!1}},methods:{showToast(){this.showFlag=!this.showFlag},closeToast(){this.showFlag=!1}}},yn=Cn,An=(0,c.A)(yn,_n,bn,!1,null,null,null),Sn=An.exports;Sn.install=function(t){t.component(Sn.name,Sn)};var xn=Sn;const En=[P,D,Z,et,ct,lt,gt,pn,Mn,xn],$n=t=>{En.forEach((e=>{t.component(e.name,e)})),t.prototype.$dialog=E};var kn=n(5090),Tn=n(2109),zn=n.n(Tn),On=n(9143),Nn=n.n(On);s["default"].use(Nn());var Pn=n(6872),Hn=n.n(Pn);s["default"].use(Hn());var In=n(3540);s["default"].component("vueForm",In.Ay);n(47),n(7697);var Un=n(896),Bn=n.n(Un);const Fn=new WeakMap,Rn=new WeakMap,Dn=new ResizeObserver((t=>{for(const e of t){const t=Fn.get(e.target);if(!t)continue;const{inlineSize:n,blockSize:s}=e.borderBoxSize[0];requestAnimationFrame((()=>{Rn.has(e.target)?Rn.get(e.target)(n,s):t(n,s)}))}}));var Ln={bind(t,e){const n=e.arg||!1,s=e.value;if(Fn.set(t,s),n){const e=Bn()(s,n);Rn.set(t,e)}Dn.observe(t)},unbind(t){Dn.unobserve(t),Fn.delete(t),Rn.has(t)&&Rn.delete(t)}};const Vn=t=>{if(!t)return"未处理";const e=new Date(t),n=e.getFullYear(),s=e.getMonth()+1,o=e.getDate(),i=e.getHours()>=10?e.getHours():`0${e.getHours()}`,r=e.getMinutes()>=10?e.getMinutes():`0${e.getMinutes()}`,a=e.getSeconds()>=10?e.getSeconds():`0${e.getSeconds()}`;return`${n}-${s}-${o} ${i}:${r}:${a}`};var Gn={bind(t,e){t.innerText=Vn(e.value)}},Wn=n(5720);let jn=null;const qn="webSocket",Zn='<strong class="info-text">console</strong>';var Kn={install(t){const e=new t;t.prototype.$ws={},t.prototype.$ws.init=n=>{const s=p.A.state.layoutOption.host,o=p.A.state.layoutOption.port,i=p.A.state.layoutOption.protocol,r=p.A.state.layoutOption.token,a=`${"https://"===i?"wss:":"ws:"}//${s}:${o}/webui/${r}`;if(jn)return console.warn("WebSocket已经开启,不能重复初始化。");jn=new WebSocket(a),n&&n(),t.prototype.$ws.instance=jn,jn.onmessage=t=>{const n=JSON.parse(t.data);e.$emit("wsMessage",n)},jn.onopen=()=>{t.prototype.$notify.success({title:qn,dangerouslyUseHTMLString:!0,message:`${Zn} 连接成功`,duration:5e3})},jn.onclose=e=>{t.prototype.$notify.warning({title:qn,dangerouslyUseHTMLString:!0,message:`${Zn} 已断开,Code:${e.code}`,duration:5e3}),jn&&(jn=null),p.A.commit("webSocketOption/updateCpu"),p.A.commit("webSocketOption/updateRam")},jn.onerror=e=>{console.log(e),t.prototype.$notify.error({message:`${Zn} 连接错误:${String(e)}`,dangerouslyUseHTMLString:!0,duration:5e3})}},t.prototype.$ws.close=()=>{console.log("wsclose"),jn&&(jn.close(),jn=null)},t.prototype.$ws.bus=e}};const Jn=new(zn());s["default"].config.productionTip=!1,(0,Wn.c)(p.A),s["default"].use(Kn),s["default"].use($n),s["default"].directive("resize-ob",Ln),s["default"].directive("trans-time",Gn),new s["default"]({router:d.A,store:p.A,render:t=>t(u),beforeCreate(){s["default"].prototype.$echarts=kn,s["default"].prototype.$i18n=Jn}}).$mount("#app")},9325:function(t,e,n){"use strict";var s=n(6848),o=n(6178),i=n(3722);s["default"].use(o.Ay);const r=o.Ay.prototype.push;o.Ay.prototype.push=function(t){return r.call(this,t).catch((t=>t))};const a=o.Ay.prototype.replace;o.Ay.prototype.replace=function(t){return a.call(this,t).catch((t=>t))};const c=[{path:"/",component:()=>n.e(324).then(n.bind(n,3324)),redirect:"/dataCenter",children:[{path:"dataCenter",meta:{title:"数据中心"},component:()=>n.e(974).then(n.bind(n,8974))},{path:"bots",meta:{title:"实例管理"},component:()=>n.e(871).then(n.bind(n,5871))},{path:"modules",meta:{title:"模块管理"},component:()=>n.e(454).then(n.bind(n,4454))},{path:"modulesCenter",meta:{title:"模块中心"},component:()=>n.e(178).then(n.bind(n,6614)),redirect:"/modulesCenter/modulesItem",children:[{path:"modulesItem",name:"modulesItem",meta:{title:"模块详情"},component:()=>n.e(373).then(n.bind(n,1373))}]},{path:"command",meta:{title:"指令管理"},component:()=>n.e(878).then(n.bind(n,6878))},{path:"config",meta:{title:"配置查看"},component:()=>n.e(749).then(n.bind(n,3749))},{path:"sandBox",meta:{title:"沙盒测试"},component:()=>n.e(5).then(n.bind(n,6221))},{path:"console",meta:{title:"控制台"},component:()=>n.e(191).then(n.bind(n,4191))}]},{path:"/login",meta:{title:"登录"},component:()=>n.e(637).then(n.bind(n,3637))},{path:"/404",meta:{title:"404"},component:()=>n.e(620).then(n.bind(n,7620))}],l=new o.Ay({mode:"history",routes:c}),u=["/login","/sandBox"];l.beforeEach(((t,e,n)=>{const s=i.A.state.layoutOption.token;s||u.includes(t.path)?n():n("/login")})),l.afterEach(((t,e)=>{const n=t.meta.title;document.title=n?`kams-${n}`:"kams"})),e.A=l},3722:function(t,e,n){"use strict";n.d(e,{A:function(){return y}});var s=n(6848),o=n(3518);const i={rate:null,speed:null},r={total:null,unused:null,used:null,rate:null};var a={namespaced:!0,state:{cpu:i,ram:r},mutations:{updateCpu(t,e={...i}){t.cpu=e},updateRam(t,e={...r}){t.ram=e}},actions:{},getters:{roundedRam(t){const e={};for(const n in t.ram)Object.hasOwnProperty.call(t.ram,n)&&(e[n]=Number(t.ram[n]).toFixed(2));return e},roundedCpu(t){return{...t.cpu,rate:Number(t.cpu.rate).toFixed(2)}}}},c={namespaced:!0,state:{token:"",isFoldAside:!1,isNarrowScreen:!1,host:"",port:"",sandBoxPort:720,protocol:"",username:"",password:""},mutations:{updateToken(t,e=""){t.token=e},updateIsFoldAside(t,e=!1){t.isFoldAside=e},updateIsNarrowScreen(t,e=!1){t.isNarrowScreen=e},updateHost(t,e=""){t.host=e},updatePort(t,e=""){t.port=e},updateSandBoxPort(t,e=720){t.sandBoxPort=e},updateProtocol(t,e=""){t.protocol=e,console.log("new protocol",e)},updateUsername(t,e=""){t.username=e},updatePassword(t,e=""){t.password=e}},actions:{},getters:{getIsFoldAside(t){return t.isFoldAside},getIsNarrowScreen(t){return t.isNarrowScreen}}},l=n(1552),u={namespaced:!0,state:{data:[],current:null,dialog:!1},mutations:{updateData(t,e=[]){t.data=e,e.length>0&&(t.current=e[0])},updateCurrent(t,e=0){t.current=t.data[e]},updateDialog(t,e=!1){t.dialog=e}},actions:{async getData({commit:t}){const{data:e}=await(0,l.vJ)();t("updateData",e.list)}},getters:{getCurrent:t=>t.current,getDialog:t=>t.dialog,getData:t=>t.data}},d={namespaced:!0,state:{commands:[],current:null},mutations:{UPDATE_COMMANDS(t,e=[]){t.commands=e},UPDATE_CURRENT(t,e=!1){t.current=e?t.commands.find((t=>t.name===e)):t.commands[0]}},actions:{getCommands({commit:t},e){(0,l.Xo)().then((n=>{t("UPDATE_COMMANDS",n.data),t("UPDATE_CURRENT",e)}))},updateCommands(t,{name:e,config:n}){(0,l.hS)(e,n).then((n=>{t.dispatch("getCommands",e)})).catch((t=>{console.log(t)}))}},getters:{getCmds:t=>t.commands,getCmdByName:t=>e=>t.commands.filter((t=>t.name===e))||[],getCmdByShortcut:t=>e=>t.commands.filter((t=>t.data.shortcut.includes(e)))||[],getCurrent:t=>t.current,getCmdByAlias:t=>e=>t.commands.filter((t=>t.data.alias.includes(e)))||[],getCmdByScope:t=>e=>t.commands.filter((t=>t.data.scope===e))||[],getCmdByAccess:t=>e=>t.commands.filter((t=>t.data.access===e))||[]}},p=(n(4114),{ADD_USER(t,e){return!t.users.find((t=>t.id===e.id))&&(t.users.push(e),t.registeredUsersCount++,!0)},ADD_FRIEND(t,{fid:e,id:n}){const o=t.users.find((t=>t.id===e)),i=t.users.find((t=>t.id===n));if(!i)return!1;const r=i.friends.some((t=>t.id===e));if(r)return!1;s["default"].set(i,"friends",[...i.friends||[],{id:o.id,name:o.name,avatar:o.avatar}])},REMOVE_FRIEND(t,{fid:e,id:n}){const s=t.users.findIndex((t=>t.id===n));if(-1===s)return!1;const o=t.users[s].friends.findIndex((t=>t.id===e));return-1!==o&&(Array.isArray(t.currentMsg)&&null!==t.currentMsg&&(t.currentMsg=null),t.users[s].friends.splice(o,1),!0)},REMOVE_USER(t,e){const n=t.users.findIndex((t=>t.id===e));if(n<=-1)return console.log(`用户${e}不存在`);t.currentUser.id===e&&(t.currentMsg=null,t.currentUser=t.users[0]||null),t.users.splice(n,1)},ADD_GROUP(t,e){if(t.groups.some((t=>t.id===e.id)))return console.log(`群组${e.id}已存在`),!1;t.groups.push(e)},REMOVE_GROUP(t,e){if(!t.groups.length)return!1;const n=t.groups.find((t=>t.id===e));n.members.forEach((n=>{const s=t.users.find((t=>t.id===n.id)),o=s.groups.findIndex((t=>t.id===e));s.groups.splice(o,1)}));const s=t.groups.findIndex((t=>t.id===e));s>-1&&t.groups.splice(s,1);const o=t.currentMsg;Array.isArray(o)||null===o||o.id===e&&(t.currentMsg=null)},SET_GROUP_ADMIN(t,{gid:e,mid:n}){const s=t.groups.find((t=>t.id===e));if(!s)return!1;s.admins.push(n),s.members.find((t=>t.id===n)).role="admin";const o=t.users.find((t=>t.id===n));o.groups.find((t=>t.id===e)).role="admin"},REVOKE_GROUP_ADMIN(t,{gid:e,mid:n}){const s=t.groups.find((t=>t.id===e));if(!s)return!1;const o=s.admins.findIndex((t=>t===n));o>-1&&s.admins.splice(o,1);const i=s.members.findIndex((t=>t.id===n));i>-1&&(s.members[i].role="member");const r=t.users.find((t=>t.id===n));r.groups.find((t=>t.id===e)).role="member"},ADD_MEMBER(t,{gid:e,uid:n,role:s}){const o=t.groups.find((t=>t.id===e)),i=t.users.find((t=>t.id===n)),r=t.groupMsg[e].muteMembers;if(!o||!i)return console.error("群组不存在或用户不存在",e,n),!1;o.members.push({id:n,role:s}),i.groups.push({id:e,role:s}),r.push({id:i.id,expire_time:null})},REMOVE_MEMBER(t,{gid:e,mid:n}){const s=t.groups.find((t=>t.id===e));if(!s)return console.error("群组不存在",e);const o=t.users.findIndex((t=>t.id===n));if(-1===o)return console.error("用户不存在",n);const i=t.users[o],r=i.groups.findIndex((t=>t.id===e));-1!==r&&i.groups.splice(r,1);const a=s.admins.findIndex((t=>t===n));a>-1&&s.admins.splice(a,1);const c=s.members.findIndex((t=>t.id===n));if(-1===c)return console.error("群组成员不存在",n);s.members.splice(c,1);const l=t.groupMsg[e].muteMembers,u=l.findIndex((t=>t.id===n));u>-1&&l.splice(u,1);const d=t.currentUser,p=t.currentMsg;i.id===d.id&&e===p.id&&(t.currentMsg=null)},CREATE_PRIVATE_MESSAGE(t,e){if(Reflect.has(t.privateMsg,e))return console.log("私聊消息已存在"),!1;s["default"].set(t.privateMsg,e,{})},INIT_PRIVATE_MESSAGE(t,{id:e,fid:n}){const o=t.privateMsg[e];if(Reflect.has(o,n))return!1;s["default"].set(o,n,[])},SEND_PRIVATE_MESSAGE(t,{sender:e,receiver:n,message:o}){const i=t.privateMsg[e];Reflect.has(i,n)||s["default"].set(i,n,[]),i[n].push(o)},DEL_PRIVATE_MESSAGE(t,{sender:e,receiver:n,msgId:s=!1}){if(!s)return t.privateMsg[e][n]=[];const o=t.privateMsg[e][n].findIndex((t=>t.id===s));if(console.log(o),o<=-1)return console.log("没有此消息");t.privateMsg[e][n].splice(o,1)},CREATE_GROUP_MESSAGE(t,e){if(Reflect.has(t.groupMsg,e.id))return console.log("群聊消息已存在"),!1;s["default"].set(t.groupMsg,e.id,{name:e.name,id:e.id,isMute:!1,muteMembers:[],messages:[]})},SEND_GROUP_MESSAGE(t,{gid:e,message:n}){t.groupMsg[e].messages||s["default"].set(t.groupMsg[e],"messages",[]),t.groupMsg[e].messages.push(n)},DEL_GROUP_MESSAGE(t,{id:e,msgId:n=!1}){if(!n)return t.groupMsg[e].messages=[];if(!t.groupMsg[e].messages.length)return!1;const s=t.groupMsg[e].messages.findIndex((t=>t.id===n));if(s<=-1)return console.log("没有此消息");t.groupMsg[e].messages.splice(s,1)},HANDLE_MUTE_GROUP(t,{gid:e,isMute:n}){t.groupMsg[e].isMute=n},MUTE_MEMBER(t,{gid:e,mid:n,duration:s}){const o=Date.now(),i=t.groupMsg[e],r=i.muteMembers.find((t=>t.id===n));if(!r)return!1;const a=o+1e3*s;r.expire_time=a},UNMUTE_MEMBER(t,{gid:e,mid:n}){const s=t.groupMsg[e],o=s.muteMembers.find((t=>t.id===n));if(!o)return!1;o.expire_time=null},CLEAR_USER_MESSAGE(t,e){if(e){const n=t.users.find((t=>t.id===e)).friends;return n.forEach((n=>{s["default"].delete(t.privateMsg[n.id],e)})),s["default"].delete(t.privateMsg,e),!0}s["default"].set(t,"privateMsg",{})},CLEAR_GROUP_MESSAGE(t,e){if(e)return s["default"].delete(t.groupMsg,e);s["default"].set(t,"groupMsg",{})},SWITCH_USER(t,e){if(e){const n=t.users.find((t=>t.id===e));t.currentUser=n||null}else null===t.currentUser&&(t.currentUser=t.users[0])},SWITCH_CHAT(t,e=null){t.currentMsg=e},SET_WS_CONNECTION(t,e){t.wsInstance=e},SET_CONNECTION_STATUS(t,e){t.wsStatus=e},SET_SANDBOX_WS_KEEPALIVE(t,e){t.isKeepSandboxWsAlive=e},HANLE_MUTE(t,e){const n=t.groupMsg;Object.keys(n).forEach((e=>{n[e].muteMembers=[];const s=n[e].muteMembers,o=t.groups.find((t=>t.id===e));o.members.forEach((t=>{const e={id:t.id,expire_time:null};s.push(e)}))}))}}),h={getUserById:t=>e=>t.users.length?t.users.find((t=>t.id===e))||!1:(console.log(`用户${e}不存在`),!1),getAllUser:t=>t.users,getGroupById:t=>e=>t.groups.length?t.groups.find((t=>t.id===e))||!1:(console.log("群组列表为空"),!1),getAllGroup:t=>t.groups,getGroupMessage:t=>e=>t.groupMsg[e],getPrivateMessage:t=>e=>t.privateMsg[e],getCurrentUser:t=>t.currentUser,getCurrentMsg:t=>t.currentMsg,getMemberMuteStatue:t=>(e,n)=>{const s=t.groupMsg[e];if(!s)return!1;const o=s.muteMembers.find((t=>t.id===n));if(!o)return!1;const i=Date.now(),r=o.expire_time||0;return!(i>r)}},f=n(9109),m=n(9143);const g="webSocket",v='<strong class="success-text">sandBox</strong>';var w={initWebSocket({commit:t,state:e,rootState:n}){if(e.wsConnection)return;const s=n.layoutOption.host,o=n.layoutOption.port,i=n.layoutOption.protocol,r=`${"https://"===i?"wss":"ws"}://${s}:${o}/adapter/sandbox`,a=new WebSocket(r);t("SET_WS_CONNECTION",a),t("SET_CONNECTION_STATUS","connecting"),a.onopen=()=>{t("SET_CONNECTION_STATUS","connected"),m.Notification.success({title:g,message:`${v} 连接成功`,dangerouslyUseHTMLString:!0,duration:5e3})},a.onerror=e=>{t("SET_CONNECTION_STATUS","error"),console.error("WebSocket 错误:",e),m.Notification.error({title:g,message:`${v} 发生错误:${String(e)}`,dangerouslyUseHTMLString:!0})},a.onclose=e=>{t("SET_CONNECTION_STATUS","disconnected"),m.Notification.warning({title:g,message:`${v} 已断开,Code:${e.code}`,dangerouslyUseHTMLString:!0})},a.onmessage=t=>{try{const e=JSON.parse(t.data);f.A.$emit("onmessage",e)}catch(e){console.error("消息转化错误:",e)}}},send(t,e){const{state:n,dispatch:o}=t;"connected"===n.wsStatus?n.wsInstance.send(JSON.stringify(e)):s["default"].prototype.$dialog({title:"提示",content:"SandBox webSocket已断开连接,是否重新连接?"}).then((()=>{o("initWebSocket")})).catch((()=>{s["default"].prototype.$message.warn("取消重新连接")}))},close({state:t}){t.wsInstance.close()}};const M={id:"user-super-admin",name:"超级管理员",avatar:"https://k.hotaru.icu/api/data/avatar/super",isSuper:!0,friends:[],groups:[],numId:"super-admin",sex:"bot",age:"100"},_={registeredUsersCount:0,users:[M],currentUser:null,currentMsg:null,groups:[],privateMsg:{[M.id]:{}},groupMsg:{},wsInstance:null,wsStatus:"disconnected",isKeepSandboxWsAlive:!1};var b={namespaced:!0,state:_,mutations:p,getters:h,actions:w},C=n(5131);s["default"].use(o.Ay);var y=new o.Ay.Store({modules:{webSocketOption:a,layoutOption:c,modulesDetail:u,command:d,sandBox:b},plugins:[(0,C.A)({reducer:t=>{const e={...t};delete e.command,delete e.modulesDetail,delete e.webSocketOption;const{wsInstance:n,wsStatus:s,...o}=e.sandBox;return e.sandBox=o,e}})]})},5720:function(t,e,n){"use strict";n.d(e,{c:function(){return c}});n(4114);var s=n(9143),o=n(9325),i=n(788),r=n.n(i);let a;console.error("[request] 跳转登录页面待优化");const c=t=>{const e=t.state.layoutOption.host??"",n=t.state.layoutOption.port??"",i=t.state.layoutOption.protocol??"http:",c=e&&n?`${i}//${e}:${n}/api`:"/api";a=r().create({baseURL:c,timeout:8e3}),a.interceptors.request.use((e=>(t.state.layoutOption.token&&(e.headers.authorization=`Bearer ${t.state.layoutOption.token}`),e)),(t=>{console.log("请求拦截器错误",t)})),a.interceptors.response.use((t=>t),(e=>(e.response?401===e.response.status?(t.commit("layoutOption/updateToken",""),s.Message.error("登录过期,请重新登录")):404===e.response.status&&(t.commit("layoutOption/updateToken",""),s.Message.error("请求资源不存在!检查后端服务是否正常!")):s.Message.error("请求失败,请检查后端服务是否正常!"),o.A.push("/login"),Promise.reject(e))))};e.A=()=>{if(!a)throw new Error("axios is not defined");return a}},9109:function(t,e,n){"use strict";var s=n(6848);e.A=new s["default"]}},e={};function n(s){var o=e[s];if(void 0!==o)return o.exports;var i=e[s]={id:s,loaded:!1,exports:{}};return t[s].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=t,function(){n.amdO={}}(),function(){var t=[];n.O=function(e,s,o,i){if(!s){var r=1/0;for(u=0;u<t.length;u++){s=t[u][0],o=t[u][1],i=t[u][2];for(var a=!0,c=0;c<s.length;c++)(!1&i||r>=i)&&Object.keys(n.O).every((function(t){return n.O[t](s[c])}))?s.splice(c--,1):(a=!1,i<r&&(r=i));if(a){t.splice(u--,1);var l=o();void 0!==l&&(e=l)}}return e}i=i||0;for(var u=t.length;u>0&&t[u-1][2]>i;u--)t[u]=t[u-1];t[u]=[s,o,i]}}(),function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){n.d=function(t,e){for(var s in e)n.o(e,s)&&!n.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})}}(),function(){n.f={},n.e=function(t){return Promise.all(Object.keys(n.f).reduce((function(e,s){return n.f[s](t,e),e}),[]))}}(),function(){n.u=function(t){return"js/"+t+"."+{5:"f818b113",178:"5506400e",191:"d08056ef",324:"6f74d729",373:"8f482efc",454:"9fcb434d",620:"cc5f8280",637:"58127f0a",749:"43401a32",871:"adcb95ca",878:"d5db5741",974:"5d32785c"}[t]+".js"}}(),function(){n.miniCssF=function(t){return"css/"+t+"."+{5:"b049cb20",178:"50389cc5",191:"03157bbe",324:"93b5ef88",373:"0cce6c3e",454:"0d732bed",620:"53b4f39d",637:"7e04be89",749:"cd5d2f27",871:"78adf960",878:"75469f9c",974:"14fe0cd3"}[t]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={},e="kams:";n.l=function(s,o,i,r){if(t[s])t[s].push(o);else{var a,c;if(void 0!==i)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==s||d.getAttribute("data-webpack")==e+i){a=d;break}}a||(c=!0,a=document.createElement("script"),a.charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",e+i),a.src=s),t[s]=[o];var p=function(e,n){a.onerror=a.onload=null,clearTimeout(h);var o=t[s];if(delete t[s],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((function(t){return t(n)})),e)return e(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t}}(),function(){n.p="/"}(),function(){if("undefined"!==typeof document){var t=function(t,e,s,o,i){var r=document.createElement("link");r.rel="stylesheet",r.type="text/css",n.nc&&(r.nonce=n.nc);var a=function(n){if(r.onerror=r.onload=null,"load"===n.type)o();else{var s=n&&n.type,a=n&&n.target&&n.target.href||e,c=new Error("Loading CSS chunk "+t+" failed.\n("+s+": "+a+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=s,c.request=a,r.parentNode&&r.parentNode.removeChild(r),i(c)}};return r.onerror=r.onload=a,r.href=e,s?s.parentNode.insertBefore(r,s.nextSibling):document.head.appendChild(r),r},e=function(t,e){for(var n=document.getElementsByTagName("link"),s=0;s<n.length;s++){var o=n[s],i=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(i===t||i===e))return o}var r=document.getElementsByTagName("style");for(s=0;s<r.length;s++){o=r[s],i=o.getAttribute("data-href");if(i===t||i===e)return o}},s=function(s){return new Promise((function(o,i){var r=n.miniCssF(s),a=n.p+r;if(e(r,a))return o();t(s,a,null,o,i)}))},o={524:0};n.f.miniCss=function(t,e){var n={5:1,178:1,191:1,324:1,373:1,454:1,620:1,637:1,749:1,871:1,878:1,974:1};o[t]?e.push(o[t]):0!==o[t]&&n[t]&&e.push(o[t]=s(t).then((function(){o[t]=0}),(function(e){throw delete o[t],e})))}}}(),function(){var t={524:0};n.f.j=function(e,s){var o=n.o(t,e)?t[e]:void 0;if(0!==o)if(o)s.push(o[2]);else{var i=new Promise((function(n,s){o=t[e]=[n,s]}));s.push(o[2]=i);var r=n.p+n.u(e),a=new Error,c=function(s){if(n.o(t,e)&&(o=t[e],0!==o&&(t[e]=void 0),o)){var i=s&&("load"===s.type?"missing":s.type),r=s&&s.target&&s.target.src;a.message="Loading chunk "+e+" failed.\n("+i+": "+r+")",a.name="ChunkLoadError",a.type=i,a.request=r,o[1](a)}};n.l(r,c,"chunk-"+e,e)}},n.O.j=function(e){return 0===t[e]};var e=function(e,s){var o,i,r=s[0],a=s[1],c=s[2],l=0;if(r.some((function(e){return 0!==t[e]}))){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(c)var u=c(n)}for(e&&e(s);l<r.length;l++)i=r[l],n.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return n.O(u)},s=self["webpackChunkkams"]=self["webpackChunkkams"]||[];s.forEach(e.bind(null,0)),s.push=e.bind(null,s.push.bind(s))}();var s=n.O(void 0,[504],(function(){return n(8235)}));s=n.O(s)})();
|
|
2
|
-
//# sourceMappingURL=app.
|
|
1
|
+
(function(){var t={8798:function(t){function e(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=function(){return[]},e.resolve=e,e.id=8798,t.exports=e},1552:function(t,e,n){"use strict";n.d(e,{HD:function(){return d},IC:function(){return v},MI:function(){return r},Nb:function(){return c},P8:function(){return w},Xo:function(){return M},cH:function(){return u},gg:function(){return h},hS:function(){return _},jd:function(){return a},n6:function(){return f},nI:function(){return b},sK:function(){return p},vJ:function(){return g},xr:function(){return m},zr:function(){return l}});var s=n(5720),o=n(788),i=n.n(o);const r=({username:t,password:e})=>(0,s.A)()({url:"/accounts/login",method:"POST",data:{username:t,password:e}}),a=()=>(0,s.A)()({url:"/accounts/logout",method:"POST"}),c=(t=null)=>{const e=t?`/data/bots/${t}`:"/data/bots";return(0,s.A)()({url:e,method:"GET"})},l=(t="")=>(0,s.A)()({url:`/config/bots/${t}`,method:"GET"}),u=(t,e)=>(0,s.A)()({url:`/config/bots/${t}`,method:"PUT",data:{...e}}),d=(t="")=>(0,s.A)()({url:`/config/plugins/${t}`,method:"GET"}),p=(t="",e)=>(0,s.A)()({url:`/config/plugins/${t}`,method:"PUT",data:e}),h=()=>(0,s.A)()({url:"/config/global",method:"GET"}),f=t=>(0,s.A)()({url:"/config/global",method:"PUT",data:t}),m=(t="")=>(0,s.A)()({url:`/data/modules/${t}`,method:"GET"}),g=()=>i().get("https://kotori.js.org/assets/data_details.json"),v=()=>(0,s.A)()({url:"/data/stats/",method:"GET"}),w=()=>(0,s.A)()({url:"/data/status/",method:"GET"}),M=(t="")=>(0,s.A)()({url:`/config/commands/${t}`,method:"GET"}),_=(t,e)=>(0,s.A)()({url:`/config/commands/${t}`,method:"PUT",data:e}),b=()=>i().get("https://kotori.js.org/assets/deps.json")},8235:function(t,e,n){"use strict";var s=n(6848),o=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"app"}},[e("router-view")],1)},i=[],r={name:"App",mounted(){console.error("更新kams的版本,添加版本不一致清空缓存")}},a=r,c=n(1656),l=(0,c.A)(a,o,i,!1,null,"454242da",null),u=l.exports,d=n(9325),p=n(3722),h=(n(4114),function(){var t=this,e=t._self._c;return e("transition",{attrs:{name:"pps-dialog"}},[t.dialogFlag?e("dialog",{ref:"dialog"},[e("div",{staticClass:"pps-dialog-window"},[e("header",[t._t("title",(function(){return[t._v(t._s(t.title))]})),e("pps-icon",{attrs:{icon:"pps-icon-close"},on:{click:function(e){return t.handleAction("close")}}})],2),e("div",{staticClass:"pps-dialog-content"},[t._t("content",(function(){return[e("p",[t._v(t._s(t.content))])]}))],2),e("footer",[t._t("footer",(function(){return[e("pps-button",{on:{click:function(e){return t.handleAction("cancel")}}},[t._v("取消")]),e("pps-button",{attrs:{theme:"confirm"},on:{click:function(e){return t.handleAction("confirm")}}},[t._v("确认")])]}))],2)])]):t._e()])}),f=[],m={name:"ppsDialog",data(){return{dialogFlag:!1,isShowing:!1,isClosing:!1,action:""}},methods:{cancelFn(){this.closeMessageFn(),this.$emit("canceled")},confirmFn(){this.closeMessageFn(),this.$emit("confirmed")},confirmClick(){return new Promise(((t,e)=>{this.closeMessageFn(),t()}))},handleAction(t){this.action=t,this.closeMessageFn(),this.show&&("confirm"===this.action&&this.$emit("confirmed"),["cancel","close"].includes(this.action)&&this.$emit("canceled"))},showMessageFn(){this.dialogFlag=!0,this.$nextTick((()=>{this.$refs.dialog&&(this.$refs.dialog.showModal(),this.afterShow()&&this.afterShow())}))},closeMessageFn(){this.isClosing||(this.isClosing=!0,this.dialogFlag=!1,setTimeout((()=>{this.isClosing=!1;try{this.action&&this.callback(this.action),this.$refs.dialog.close()}catch(t){}}),300))},handleMessageFn(t){t?this.showMessageFn():this.closeMessageFn()}},watch:{dialogFlag(){this.$emit("update:show",this.dialogFlag)},show(t,e){this.handleMessageFn(t)}},mounted(){this.show&&this.showMessageFn()},props:{show:{type:Boolean,default(){return!1}},handleClick:{type:Function},content:{type:String,default(){return"警告"}},title:{type:String,default(){return"提示"}},afterShow:{type:Function,default(){return!1}},callback:{type:Function,default(){return!1}}}},g=m,v=(0,c.A)(g,h,f,!1,null,null,null),w=v.exports;let M,_;const b=[],C=s["default"].extend(w);function y(){M=new C({el:document.createElement("div")}),M.callback=A}const A=t=>{if(_){const{resolve:e,reject:n,callback:s}=_;"function"===typeof s&&s(t),e&&("confirm"===t?e(t):n(t))}},S=()=>{M||y(),_=b.shift();const t=_.options;Object.assign(M,{title:"",message:"",...t}),document.body.appendChild(M.$el),s["default"].nextTick((()=>{M.showMessageFn()}))},x=function(t,e){if("undefined"!==typeof Promise)return new Promise(((n,s)=>{b.push({options:t,callback:e,resolve:n,reject:s}),S()}));b.push({options:t,callback:e}),S()};var E=x,$=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-avatar"},t.$listeners),[t.href?e("a",{staticClass:"pps-avatar-link",attrs:{href:t.href,title:"",target:t.href?"_blank":""}},[e("img",{staticClass:"pps-avatar-img",attrs:{src:t.src,alt:"",width:`${t.size}px`}})]):e("img",{staticClass:"pps-avatar-img",attrs:{src:t.src,alt:"",width:`${t.size}px`,height:`${t.size}px`}})])},k=[],T={name:"ppsAvatar",props:{src:{type:String,default(){return"https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png"}},href:{type:String,default(){return""}},size:{type:[Number,String],default(){return 100}}}},z=T,O=(0,c.A)(z,$,k,!1,null,null,null),N=O.exports;N.install=function(t){t.component(N.name,N)};var P=N,H=function(){var t=this,e=t._self._c;return e("button",t._g(t._b({staticClass:"pps-button",class:[t.theme?`pps-button-${t.theme}`:"pps-button-default"]},"button",t.$attrs,!1),t.$listeners),[t._t("default",(function(){return[t._v("pps-button")]}))],2)},I=[],U={name:"ppsButton",inheritAttrs:!1,props:{theme:{type:String,default(){return""}},content:{type:String,default(){return"pps-button"}},handleData:{type:Object}},data(){return{}},methods:{}},B=U,F=(0,c.A)(B,H,I,!1,null,null,null),R=F.exports;R.install=function(t){t.component(R.name,R)};var D=R,L=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pps-card"},[t._t("default")],2)},V=[],G={name:"ppsCard",data(){return{}}},W=G,j=(0,c.A)(W,L,V,!1,null,null,null),q=j.exports;q.install=function(t){t.component(q.name,q)};var Z=q,K=function(){var t=this,e=t._self._c;return e("section",[e("pps-nav"),e("pps-header"),e("pps-main"),e("pps-footer")],1)},J=[],X={name:"pps-container"},Y=X,Q=(0,c.A)(Y,K,J,!1,null,"374241e6",null),tt=Q.exports;tt.install=function(t){t.component(tt.name,tt)};var et=tt,nt=function(){var t=this,e=t._self._c;return e("div",{ref:"container",staticClass:"pps-context-menu-area"},[t._t("content"),e("transition",{attrs:{name:"pps-context"}},[t.isShowMenus?e("div",{directives:[{name:"show",rawName:"v-show",value:t.showContextMenu,expression:"showContextMenu"}],ref:"menu",staticClass:"pps-context-menu_wrapper",style:t.menuPosition,on:{click:t=>t.stopPropagation()}},[t.$slots.prepend?e("div",{staticClass:"pps-context-menu_prepend"},[t._t("prepend")],2):t._e(),t.menus.length?e("ul",{staticClass:"pps-context-menu_inner"},[t._t("item",(function(){return t._l(t.menus,(function(n,s){return e("li",{key:s,staticClass:"pps-context-menu-item",on:{click:function(e){return t.handleSelect(n,e)}}},[t._v(" "+t._s(n.label)+" ")])}))}),{menu:t.menus})],2):t._e(),t.$slots.append?e("div",{staticClass:"pps-context-menu_append"},[t._t("append")],2):t._e()]):t._e()])],2)},st=[],ot={name:"pps-context-menu",directives:{animation:{bind(t,e){t.animate([{transform:"scale(0)",opacity:0},{transform:"scale(1)",opacity:1}],{duration:300,easing:"ease"})}}},data(){return{showContextMenu:!1,x:0,y:0,isBottom:!1,isRight:!1}},methods:{handleSelect(t,e){e.stopPropagation(),this.showContextMenu=!1,this.$emit("select",t)},openMenu(t){t.preventDefault(),t.stopPropagation(),this.x=t.clientX,this.y=t.clientY,this.showContextMenu=!0,this.$nextTick((()=>{requestAnimationFrame((()=>{this.setPosition(t.clientX,t.clientY)}))}))},setPosition(t,e){if(!this.isShowMenus)return;const n=window.innerWidth,s=window.innerHeight,o=this.$refs.menu,i=o.style.transition,r=o.style.transform;o.style.transition="none",o.style.transform="none";const a=this.$refs.menu.getBoundingClientRect();t+a.width>n&&(this.x=t-a.width),e+a.height>s&&(this.y=e-a.height),o.offsetHeight,o.style.transition=i,o.style.transform=r},closeMenu(){this.showContextMenu=!1},bindClickEvents(){this.$refs.container.addEventListener("click",this.openMenu,!1),this.setPosition()},bindContextEvents(){this.$refs.container.addEventListener("contextmenu",this.openMenu,!1),window.addEventListener("contextmenu",this.closeMenu,!0)}},computed:{isShowMenus(){return this.menus.length||this.$slots.prepend||this.$slots.append},menuPosition(){return{left:this.x+"px",top:this.y+"px"}}},mounted(){this.$refs.container.addEventListener("contextmenu",this.openMenu,!0),window.addEventListener("click",this.closeMenu,!0),window.addEventListener("contextmenu",this.closeMenu,!0)},beforeDestroy(){this.$refs.container.removeEventListener("contextmenu",this.openMenu),window.removeEventListener("click",this.closeMenu),window.removeEventListener("contextmenu",this.closeMenu)},props:{menus:{default(){return[]}},trigger:{type:String,default(){return"contextmenu"}}}},it=ot,rt=(0,c.A)(it,nt,st,!1,null,null,null),at=rt.exports;at.install=function(t){t.component(at.name,at)};var ct=at;w.install=function(t){t.component(w.name,w)};var lt=w,ut=function(){var t=this,e=t._self._c;return e("form",{staticClass:"pps-form",on:{submit:function(e){return e.preventDefault(),t.handleSubmit()},reset:function(e){return e.preventDefault(),t.handleReset()}}},[t._t("default")],2)},dt=[],pt={name:"pps-form",methods:{handleSubmit(){this.$emit("submit")},handleReset(){this.$emit("reset")}},mounted(){}},ht=pt,ft=(0,c.A)(ht,ut,dt,!1,null,null,null),mt=ft.exports;mt.install=function(t){t.component(mt.name,mt)};var gt=mt,vt=function(){var t=this,e=t._self._c;return e(t.iconName,t._g({tag:"component"},t.$listeners))},wt=[],Mt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pps-icon"},[e("svg",{staticClass:"icon",attrs:{t:"1713442769179",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1390",width:"20",height:"20"}},[e("path",{attrs:{d:"M513 529.3c-118.8 0-215.5-96.7-215.5-215.5S394.2 98.2 513 98.2s215.5 96.7 215.5 215.5S631.8 529.3 513 529.3z m0-380.5c-90.9 0-164.9 74-164.9 164.9s74 164.9 164.9 164.9 164.9-74 164.9-164.9-74-164.9-164.9-164.9z",fill:"#231815","p-id":"1391"}}),e("path",{attrs:{d:"M796.3 876.6H229.7c-25.4 0-49.2-11.3-65.4-30.9-15.4-18.7-21.7-42.9-17.1-66.2C181.3 605.2 335.1 478.7 513 478.7c177.8 0 331.7 126.5 365.7 300.8 4.6 23.4-1.7 47.5-17.1 66.2-16.1 19.7-40 30.9-65.3 30.9zM513 529.3c-153.7 0-286.7 109.3-316.1 259.9-2.3 11.6 3.1 20.3 6.5 24.4 6.5 8 16.1 12.5 26.3 12.5h566.5c10.2 0 19.8-4.5 26.4-12.5 3.4-4.1 8.8-12.8 6.5-24.4C799.7 638.6 666.7 529.3 513 529.3z",fill:"#231815","p-id":"1392"}})])])},_t=[],bt={name:"pps-icon-admin"},Ct=bt,yt=(0,c.A)(Ct,Mt,_t,!1,null,null,null),At=yt.exports,St=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pps-icon-close"},[e("pps-button",t._g({},t.$listeners),[e("i",[e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"}},[e("path",{attrs:{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"}})])])])],1)},xt=[],Et={name:"pps-close"},$t=Et,kt=(0,c.A)($t,St,xt,!1,null,null,null),Tt=kt.exports,zt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pps-icon"},[e("svg",{staticClass:"icon",attrs:{t:"1713502126052",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1602",width:"20",height:"20"}},[e("path",{attrs:{d:"M733.5 877.9h-443c-54.3 0-98.6-44.2-98.6-98.6V492.5c0-54.4 44.3-98.6 98.6-98.6h443c54.3 0 98.6 44.2 98.6 98.6v286.8c0 54.4-44.2 98.6-98.6 98.6z m-443-424.7c-21.7 0-39.3 17.6-39.3 39.3v286.8c0 21.7 17.6 39.3 39.3 39.3h443c21.7 0 39.3-17.6 39.3-39.3V492.5c0-21.7-17.6-39.3-39.3-39.3h-443z",fill:"#231815","p-id":"1603"}}),e("path",{attrs:{d:"M669.7 453.2H354.3c-23.5 0-42.6-19.1-42.6-42.7V337c0-105.2 85.6-190.9 190.9-190.9h19c105.2 0 190.9 85.6 190.9 190.9v73.6c-0.1 23.4-19.3 42.6-42.8 42.6zM371 393.9h282V337c0-72.5-59-131.5-131.5-131.5h-19C430 205.4 371 264.5 371 337v56.9zM512 634.7c-31 0-56.2-25.2-56.2-56.2 0-31 25.2-56.2 56.2-56.2 30.9 0 56.1 25.2 56.1 56.2 0 31-25.2 56.2-56.1 56.2z m0-59.3l-3.2 3.2c0 1.7 1.4 3.1 3.2 3.1v-6.3z",fill:"#231815","p-id":"1604"}}),e("path",{attrs:{d:"M512 725.9c-16.4 0-29.7-13.3-29.7-29.7V567.9c0-16.4 13.3-29.7 29.7-29.7s29.7 13.3 29.7 29.7v128.3c0 16.4-13.3 29.7-29.7 29.7z",fill:"#231815","p-id":"1605"}})])])},Ot=[],Nt={name:"pps-icon-lock"},Pt=Nt,Ht=(0,c.A)(Pt,zt,Ot,!1,null,null,null),It=Ht.exports,Ut=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"icon",attrs:{t:"1721583766095",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3630",width:"24",height:"24"}},[e("path",{attrs:{d:"M512 102.4C285.696 102.4 102.4 285.696 102.4 512s183.296 409.6 409.6 409.6 409.6-183.296 409.6-409.6S738.304 102.4 512 102.4z m218.9312 409.6c0 28.2624-22.9376 51.2-51.2 51.2H344.2688c-28.2624 0-51.2-22.9376-51.2-51.2s22.9376-51.2 51.2-51.2h335.4624c28.2624 0 51.2 22.9376 51.2 51.2z",fill:"#ff0000","p-id":"3631"}})])},Bt=[],Ft={name:"pps-icon-offline"},Rt=Ft,Dt=(0,c.A)(Rt,Ut,Bt,!1,null,null,null),Lt=Dt.exports,Vt=function(){var t=this,e=t._self._c;return e("svg",{staticClass:"icon",attrs:{t:"1721583939410",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"5461",width:"24",height:"24"}},[e("path",{attrs:{d:"M512 85.3504a426.6496 426.6496 0 1 1 0 853.2992 426.6496 426.6496 0 0 1 0-853.2992z m188.7232 279.04L461.824 603.2896 343.808 485.2736l-45.1584 45.1072 133.12 133.1712 4.352 3.84a42.6496 42.6496 0 0 0 55.9616-3.84l253.952-253.8496-45.312-45.312z",fill:"#07C160","p-id":"5462"}})])},Gt=[],Wt={name:"pps-icon-online"},jt=Wt,qt=(0,c.A)(jt,Vt,Gt,!1,null,null,null),Zt=qt.exports,Kt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pps-icon"},[e("svg",{staticClass:"icon",attrs:{t:"1689691213164",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3989",width:"20",height:"20"}},[e("path",{attrs:{d:"M456.533333 104.533333c-187.733333 0-341.333333 153.6-341.333333 341.333334s153.6 341.333333 341.333333 341.333333 341.333333-153.6 341.333334-341.333333-153.6-341.333333-341.333334-341.333334z m0 618.666667c-151.466667 0-277.333333-123.733333-277.333333-277.333333s125.866667-277.333333 277.333333-277.333334 277.333333 123.733333 277.333334 277.333334-125.866667 277.333333-277.333334 277.333333zM902.4 883.2l-29.866667 29.866667c-8.533333 8.533333-21.333333 8.533333-29.866666 0l-192-192 59.733333-59.733334 192 192c8.533333 8.533333 8.533333 21.333333 0 29.866667z",fill:"#2e2e2e","p-id":"3990"}})])])},Jt=[],Xt={name:"pps-icon-search"},Yt=Xt,Qt=(0,c.A)(Yt,Kt,Jt,!1,null,null,null),te=Qt.exports,ee=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-icon"},t.$listeners),[e("svg",{staticClass:"icon",attrs:{t:"1723400940446",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"37370",width:"24",height:"24"}},[e("path",{attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9 23.5 23.2 38.1 55.4 38.1 91v112.5c0.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z","p-id":"37371",fill:"#707070"}})])])},ne=[],se={name:"pps-icon-github"},oe=se,ie=(0,c.A)(oe,ee,ne,!1,null,null,null),re=ie.exports,ae=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-icon"},t.$listeners),[e("svg",{staticClass:"icon",attrs:{t:"1723400843647",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"36518",width:"24",height:"24"}},[e("path",{attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m0 708c-22.1 0-40-17.9-40-40s17.9-40 40-40 40 17.9 40 40-17.9 40-40 40z m62.9-219.5c-18.5 7.1-30.9 25.1-30.9 44.8V620c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8v-21.5c0-23.1 6.7-45.9 19.9-64.9 12.9-18.6 30.9-32.8 52.1-40.9 34-13.1 56-41.6 56-72.7 0-44.1-43.1-80-96-80s-96 35.9-96 80v7.6c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V420c0-39.3 17.2-76 48.4-103.3C430.4 290.4 470 276 512 276s81.6 14.5 111.6 40.7C654.8 344 672 380.7 672 420c0 57.8-38.1 109.8-97.1 132.5z","p-id":"36519",fill:"#707070"}})])])},ce=[],le={name:"pps-icon-help"},ue=le,de=(0,c.A)(ue,ae,ce,!1,null,null,null),pe=de.exports,he=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-icon"},t.$listeners),[e("svg",{staticClass:"icon",attrs:{t:"1723400905489",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"37112",width:"24",height:"24"}},[e("path",{attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z m210.5 612.4c-11.5 1.4-44.9-52.7-44.9-52.7 0 31.3-16.2 72.2-51.1 101.8 16.9 5.2 54.9 19.2 45.9 34.4-7.3 12.3-125.6 7.9-159.8 4-34.2 3.8-152.5 8.3-159.8-4-9.1-15.2 28.9-29.2 45.8-34.4-35-29.5-51.1-70.4-51.1-101.8 0 0-33.4 54.1-44.9 52.7-5.4-0.7-12.4-29.6 9.4-99.7 10.3-33 22-60.5 40.2-105.8-3.1-116.9 45.3-215 160.4-215 113.9 0 163.3 96.1 160.4 215 18.1 45.2 29.9 72.8 40.2 105.8 21.7 70.1 14.6 99.1 9.3 99.7z","p-id":"37113",fill:"#707070"}})])])},fe=[],me={name:"pps-icon-qq"},ge=me,ve=(0,c.A)(ge,he,fe,!1,null,null,null),we=ve.exports,Me=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-icon"},t.$listeners),[e("svg",{staticClass:"octicon octicon-sidebar-collapse",staticStyle:{display:"inline-block","user-select":"none","vertical-align":"text-bottom",overflow:"visible"},attrs:{"aria-hidden":"true",focusable:"false",viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor"}},[e("path",{attrs:{d:"M6.823 7.823a.25.25 0 0 1 0 .354l-2.396 2.396A.25.25 0 0 1 4 10.396V5.604a.25.25 0 0 1 .427-.177Z"}}),e("path",{attrs:{d:"M1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0ZM1.5 1.75v12.5c0 .138.112.25.25.25H9.5v-13H1.75a.25.25 0 0 0-.25.25ZM11 14.5h3.25a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H11Z"}})])])},_e=[],be={name:"pps-icon-side-hide"},Ce=be,ye=(0,c.A)(Ce,Me,_e,!1,null,null,null),Ae=ye.exports,Se=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-icon"},t.$listeners),[e("svg",{staticClass:"octicon octicon-sidebar-expand",staticStyle:{display:"inline-block","user-select":"none","vertical-align":"text-bottom",overflow:"visible"},attrs:{"aria-hidden":"true",focusable:"false",viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor"}},[e("path",{attrs:{d:"m4.177 7.823 2.396-2.396A.25.25 0 0 1 7 5.604v4.792a.25.25 0 0 1-.427.177L4.177 8.177a.25.25 0 0 1 0-.354Z"}}),e("path",{attrs:{d:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25H9.5v-13Zm12.5 13a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H11v13Z"}})])])},xe=[],Ee={name:"pps-icon-side-show"},$e=Ee,ke=(0,c.A)($e,Se,xe,!1,null,null,null),Te=ke.exports,ze=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pps-icon"},[e("svg",{staticClass:"icon",attrs:{t:"1724756128299",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4510",width:"20",height:"20"}},[e("path",{attrs:{d:"M224.2 477.8c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2s3.3 17.5 10 24.2c6.7 6.7 14.7 10 24.2 10 9.4 0 17.5-3.3 24.2-10 6.7-6.7 10-14.7 10-24.2s-3.3-17.5-10-24.2c-6.7-6.7-14.8-10-24.2-10zM863.8 701.7H160.2c-27.1 0-50.2 9.6-69.4 28.8C71.6 749.6 62 772.8 62 799.8v64c0 27.1 9.6 50.2 28.8 69.4 19.2 19.2 42.3 28.8 69.4 28.8h703.6c27.1 0 50.2-9.6 69.4-28.8 19.2-19.2 28.8-42.3 28.8-69.4v-64c0-27.1-9.6-50.2-28.8-69.4-19.2-19.1-42.3-28.7-69.4-28.7z m29.8 162.1c0 8.2-2.9 15.2-8.7 21-5.8 5.8-12.8 8.7-21 8.7H160.2c-8.2 0-15.2-2.9-21-8.7-5.8-5.8-8.7-12.8-8.7-21v-64c0-8.2 2.9-15.2 8.7-21 5.8-5.8 12.8-8.7 21-8.7h703.6c8.2 0 15.2 2.9 21 8.7 5.8 5.8 8.7 12.8 8.7 21v64z","p-id":"4511",fill:"#515151"}}),e("path",{attrs:{d:"M799.8 797.6H671.9c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2 0 9.4 3.3 17.5 10 24.2 6.7 6.7 14.7 10 24.2 10h127.9c9.4 0 17.5-3.3 24.2-10 6.7-6.7 10-14.8 10-24.2 0-9.4-3.3-17.5-10-24.2-6.6-6.6-14.7-10-24.2-10zM224.2 797.6c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2 0 9.4 3.3 17.5 10 24.2 6.7 6.7 14.7 10 24.2 10 9.4 0 17.5-3.3 24.2-10 6.7-6.7 10-14.8 10-24.2s-3.3-17.5-10-24.2c-6.7-6.6-14.8-10-24.2-10zM352.1 797.6c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2s3.3 17.5 10 24.2c6.7 6.7 14.8 10 24.2 10s17.5-3.3 24.2-10c6.7-6.7 10-14.8 10-24.2 0-9.4-3.3-17.5-10-24.2-6.7-6.6-14.8-10-24.2-10zM799.8 157.9H671.9c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2 0 9.4 3.3 17.5 10 24.2 6.7 6.7 14.7 10 24.2 10h127.9c9.4 0 17.5-3.3 24.2-10 6.7-6.7 10-14.7 10-24.2s-3.3-17.5-10-24.2c-6.6-6.6-14.7-10-24.2-10zM352.1 157.9c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2s3.3 17.5 10 24.2c6.7 6.7 14.8 10 24.2 10s17.5-3.3 24.2-10c6.7-6.7 10-14.7 10-24.2 0-9.4-3.3-17.5-10-24.2-6.7-6.6-14.8-10-24.2-10z","p-id":"4512",fill:"#515151"}}),e("path",{attrs:{d:"M933.2 90.8C914 71.6 890.9 62 863.8 62H160.2c-27.1 0-50.2 9.6-69.4 28.8C71.6 110 62 133.1 62 160.2v64c0 27.1 9.6 50.2 28.8 69.4 19.2 19.2 42.3 28.8 69.4 28.8h703.6c27.1 0 50.2-9.6 69.4-28.8 19.2-19.2 28.8-42.3 28.8-69.4v-64c0-27.1-9.6-50.2-28.8-69.4z m-39.6 133.4c0 8.2-2.9 15.2-8.7 21-5.8 5.8-12.8 8.7-21 8.7H160.2c-8.2 0-15.2-2.9-21-8.7-5.8-5.8-8.7-12.8-8.7-21v-64c0-8.2 2.9-15.2 8.7-21 5.8-5.8 12.8-8.7 21-8.7h703.6c8.2 0 15.2 2.9 21 8.7 5.8 5.8 8.7 12.8 8.7 21v64z","p-id":"4513",fill:"#515151"}}),e("path",{attrs:{d:"M224.2 157.9c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2s3.3 17.5 10 24.2c6.7 6.7 14.7 10 24.2 10 9.4 0 17.5-3.3 24.2-10 6.7-6.7 10-14.7 10-24.2s-3.3-17.5-10-24.2c-6.7-6.6-14.8-10-24.2-10zM799.8 477.8H671.9c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2 0 9.4 3.3 17.5 10 24.2 6.7 6.7 14.7 10 24.2 10h127.9c9.4 0 17.5-3.3 24.2-10 6.7-6.7 10-14.7 10-24.2s-3.3-17.5-10-24.2c-6.6-6.7-14.7-10-24.2-10z","p-id":"4514",fill:"#515151"}}),e("path",{attrs:{d:"M863.8 381.8H160.2c-27.1 0-50.2 9.6-69.4 28.8C71.6 429.8 62 452.9 62 480v64c0 27.1 9.6 50.2 28.8 69.4 19.2 19.2 42.3 28.8 69.4 28.8h703.6c27.1 0 50.2-9.6 69.4-28.8 19.2-19.2 28.8-42.3 28.8-69.4v-64c0-27.1-9.6-50.2-28.8-69.4-19.2-19.2-42.3-28.8-69.4-28.8zM893.6 544c0 8.2-2.9 15.2-8.7 21-5.8 5.8-12.8 8.7-21 8.7H160.2c-8.2 0-15.2-2.9-21-8.7-5.8-5.8-8.7-12.8-8.7-21v-64c0-8.2 2.9-15.2 8.7-21 5.8-5.8 12.8-8.7 21-8.7h703.6c8.2 0 15.2 2.9 21 8.7 5.8 5.8 8.7 12.8 8.7 21v64z","p-id":"4515",fill:"#515151"}}),e("path",{attrs:{d:"M352.1 477.8c-9.4 0-17.5 3.3-24.2 10-6.7 6.7-10 14.7-10 24.2s3.3 17.5 10 24.2c6.7 6.7 14.8 10 24.2 10 9.4 0 17.5-3.3 24.2-10 6.7-6.7 10-14.7 10-24.2s-3.3-17.5-10-24.2c-6.7-6.7-14.8-10-24.2-10z","p-id":"4516",fill:"#515151"}})])])},Oe=[],Ne={name:"pps-icon-host"},Pe=Ne,He=(0,c.A)(Pe,ze,Oe,!1,null,null,null),Ie=He.exports,Ue=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pps-icon"},[e("svg",{staticClass:"icon",attrs:{t:"1724756288237",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4941",width:"20",height:"20"}},[e("path",{attrs:{d:"M931.1 93.2C910.5 72.4 885.6 62 856.5 62h-689c-29.1 0-53.9 10.4-74.5 31.2C72.3 114 62 139 62 168.4v79.1c0 29.3 10.3 54.4 30.9 75.2 20.6 20.8 45.5 31.2 74.5 31.2h689.1c29.1 0 53.9-10.4 74.5-31.2 20.6-20.8 30.9-45.9 30.9-75.2v-79.1c0.1-29.3-10.2-54.4-30.8-75.2z m-36.6 154.3c0.1 10.5-3.2 19.2-9.9 26-9.2 9.1-18.5 13.6-28 13.6l-689.1-0.4c-11 0.5-19.8-2.7-26.6-9.5-7.2-9.9-10.9-19.7-10.9-29.3v-79.1c0.5-11.5 4.1-20.7 10.9-27.5 8.2-7.5 17.1-11.3 26.6-11.3l689.1 0.2c10.6 1 19.3 5 26 11.8 8 8 11.9 16.8 11.9 26.5v79z","p-id":"4942",fill:"#515151"}}),e("path",{attrs:{d:"M218.024259 222.162027a35.9 35.9 0 1 0 71.555371-5.921901 35.9 35.9 0 1 0-71.555371 5.921901Z","p-id":"4943",fill:"#515151"}}),e("path",{attrs:{d:"M440.8 740.7c6.9-6.7 10.4-14.8 10.4-24.2 0-9.5-3.5-17.5-10.4-24.2-6.9-6.7-15.3-10-25.1-10H167.4c-29.1 0-53.9 10-74.5 29.9S62 756.2 62 784.3V860c0 28.2 10.3 52.2 30.9 72.1 20.6 19.9 45.5 29.9 74.6 29.9h248.3c9.8 0 18.1-3.3 25.1-10 6.9-6.7 10.4-14.8 10.4-24.2 0-9.5-3.5-17.5-10.4-24.2-6.9-6.7-15.3-10-25.1-10H167.5c-9.6 0-17.7-3.3-24.5-9.8-6.8-6.5-10.1-14.4-10.1-23.7v-75.8c0-9.2 3.4-17.1 10.1-23.6 6.8-6.5 14.9-9.8 24.4-9.8h248.3c9.8-0.1 18.2-3.5 25.1-10.2z","p-id":"4944",fill:"#515151"}}),e("path",{attrs:{d:"M217.9 831.9c0 19.8 16.1 35.9 35.9 35.9s35.9-16.1 35.9-35.9-16.1-35.9-35.9-35.9-35.9 16-35.9 35.9zM217.9 520.8c0 19.8 16.1 35.9 35.9 35.9s35.9-16.1 35.9-35.9c0-19.8-16.1-35.9-35.9-35.9s-35.9 16.1-35.9 35.9z","p-id":"4945",fill:"#515151"}}),e("path",{attrs:{d:"M931.1 408.1c-20.6-19.9-45.5-29.9-74.5-29.9H167.5c-29.1 0-53.9 10-74.5 29.9-20.7 19.9-31 44-31 72.1V556c0 28.1 10.3 52.1 30.9 72.1 20.6 19.9 45.5 29.9 74.5 29.9H416c9.8 0 18.1-3.3 25.1-10 6.9-6.7 10.4-14.8 10.4-24.2 0-9.5-3.5-17.5-10.4-24.2-6.9-6.7-15.3-10-25.1-10H167.5c-9.5 0-17.7-3.3-24.4-9.8-6.8-6.5-10.1-14.4-10.1-23.6v-75.8c-0.7-9.6 2.4-17.7 9.2-24.3 7.4-7.3 15.9-11 25.4-11l689.1 1.8c9.5 0 17.7 3.3 24.4 9.8 6.8 6.5 10.1 14.4 10.1 23.6v21.9c0 9.5 3.5 17.5 10.4 24.2 6.9 6.7 15.3 10 25.1 10s18.1-3.3 25.1-10c6.9-6.7 10.4-14.8 10.4-24.2v-21.9c-0.2-28.2-10.5-52.3-31.1-72.2z","p-id":"4946",fill:"#515151"}}),e("path",{attrs:{d:"M847.9 557H581.1c-63 0-114.1 49.4-114.1 110.2v184.5c0 60.9 51.1 110.2 114.1 110.2h266.8c63 0 114.1-49.4 114.1-110.2V667.2c0-60.8-51.1-110.2-114.1-110.2z m50.2 294.8c0 13.4-4.9 24.8-14.7 34.3-9.8 9.5-21.6 14.2-35.5 14.2H581.1c-13.9 0-25.7-4.7-35.5-14.2s-14.7-20.9-14.7-34.3V667.2c0-13.4 4.9-24.8 14.7-34.3 9.8-9.5 21.6-14.2 35.5-14.2h266.8c13.9 0 25.7 4.7 35.5 14.2s14.7 20.9 14.7 34.3v184.6z","p-id":"4947",fill:"#515151"}}),e("path",{attrs:{d:"M841.3 676.7c-5.4-4.8-12-7.2-19.7-7.2H607.3c-7.7 0-14.2 2.4-19.7 7.2s-8.2 10.5-8.2 17.2v84.4c0 6.7 2.7 12.4 8.2 17.2 5.4 4.8 12 7.2 19.7 7.2h20.3l14.4 31.1c4.5 10.5 13.3 15.8 26.3 15.8h92.2c13 0 21.8-5.3 26.3-15.8l14.4-31.1h20.3c7.7 0 14.2-2.4 19.7-7.2 5.4-4.8 8.2-10.5 8.2-17.2v-84.4c0.1-6.7-2.6-12.5-8.1-17.2z m-26 95.9H797c-13 0-21.8 5.3-26.3 15.8l-14.4 31.1h-83.5l-14.4-31.1c-4.5-10.5-13.3-15.8-26.3-15.8h-18.2v-73.2h201.5v73.2z","p-id":"4948",fill:"#515151"}}),e("path",{attrs:{d:"M789.5 759.5c4.7 0 8.5-2.5 11.4-7.6 2.4-4.2 3.6-9.2 3.6-14.9s-1.2-10.7-3.6-14.9c-2.9-5-6.7-7.6-11.4-7.6s-8.5 2.5-11.4 7.6c-2.4 4.2-3.6 9.2-3.6 14.9s1.2 10.7 3.6 14.9c2.9 5.1 6.7 7.6 11.4 7.6zM639.5 759.5c4.7 0 8.5-2.5 11.4-7.6 2.4-4.2 3.6-9.2 3.6-14.9s-1.2-10.7-3.6-14.9c-2.9-5-6.7-7.6-11.4-7.6s-8.5 2.5-11.4 7.6c-2.4 4.2-3.6 9.2-3.6 14.9s1.2 10.7 3.6 14.9c2.9 5.1 6.7 7.6 11.4 7.6zM689.5 759.5c4.7 0 8.5-2.5 11.4-7.6 2.4-4.2 3.6-9.2 3.6-14.9s-1.2-10.7-3.6-14.9c-2.9-5-6.7-7.6-11.4-7.6s-8.5 2.5-11.4 7.6c-2.4 4.2-3.6 9.2-3.6 14.9s1.2 10.7 3.6 14.9c2.9 5.1 6.7 7.6 11.4 7.6zM739.5 759.5c4.7 0 8.5-2.5 11.4-7.6 2.4-4.2 3.6-9.2 3.6-14.9s-1.2-10.7-3.6-14.9c-2.9-5-6.7-7.6-11.4-7.6s-8.5 2.5-11.4 7.6c-2.4 4.2-3.6 9.2-3.6 14.9s1.2 10.7 3.6 14.9c2.9 5.1 6.7 7.6 11.4 7.6z","p-id":"4949",fill:"#515151"}})])])},Be=[],Fe={name:"pps-icon-port"},Re=Fe,De=(0,c.A)(Re,Ue,Be,!1,null,null,null),Le=De.exports,Ve=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-icon-account"},t.$listeners),[e("svg",{staticClass:"icon",attrs:{t:"1725364158167",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"2049",width:"20",height:"20"}},[e("path",{attrs:{d:"M864 128h-704a128 128 0 0 0-128 128v512a128 128 0 0 0 128 128h704a128 128 0 0 0 128-128V256a128 128 0 0 0-128-128z m64 640a64 64 0 0 1-64 64h-704a64 64 0 0 1-64-64V256a64 64 0 0 1 64-64h704a64 64 0 0 1 64 64v512z",fill:"#8a8a8a","p-id":"2050"}}),e("path",{attrs:{d:"M832 480h-192a32 32 0 0 0 0 64h192a32 32 0 0 0 0-64zM832 608h-192a32 32 0 0 0 0 64h192a32 32 0 0 0 0-64zM832 352h-192a32 32 0 0 0 0 64h192a32 32 0 0 0 0-64zM384 576a192 192 0 0 0-192 192h64a128 128 0 0 1 256 0h64a192 192 0 0 0-192-192zM384 512a128 128 0 1 0-0.064-256.064A128 128 0 0 0 384 512z m0-191.488a63.488 63.488 0 1 1 0 126.976 63.488 63.488 0 0 1 0-126.976z",fill:"#8a8a8a","p-id":"2051"}})])])},Ge=[],We={name:"pps-icon-account"},je=We,qe=(0,c.A)(je,Ve,Ge,!1,null,"07edebd6",null),Ze=qe.exports,Ke=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-icon-contact"},t.$listeners),[e("svg",{staticClass:"icon",attrs:{t:"1725363712634",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"29231",width:"20",height:"20"}},[e("path",{attrs:{d:"M832 64H256a128 128 0 0 0-128 128v64h-32a32 32 0 0 0 0 64H128v160h-32a32 32 0 0 0 0 64H128V704h-32a32 32 0 0 0 0 64H128v64a128 128 0 0 0 128 128h576a128 128 0 0 0 128-128V192a128 128 0 0 0-128-128z m64 768a64 64 0 0 1-64 64H256a64 64 0 0 1-64-64v-64h32a32 32 0 0 0 0-64H192V544h32a32 32 0 0 0 0-64H192V320h32a32 32 0 0 0 0-64H192V192a64 64 0 0 1 64-64h576a64 64 0 0 1 64 64v640z",fill:"#8A8A8A","p-id":"29232"}}),e("path",{attrs:{d:"M544 576a192 192 0 0 0-192 192h64a128 128 0 0 1 256 0h64a192 192 0 0 0-192-192zM544 512a128 128 0 1 0-0.064-256.064A128 128 0 0 0 544 512z m0-191.488a63.488 63.488 0 1 1 0 126.976 63.488 63.488 0 0 1 0-126.976z",fill:"#8A8A8A","p-id":"29233"}})])])},Je=[],Xe={name:"pps-icon-contact"},Ye=Xe,Qe=(0,c.A)(Ye,Ke,Je,!1,null,null,null),tn=Qe.exports,en=function(){var t=this,e=t._self._c;return e("div",t._g({staticClass:"pps-icon-group"},t.$listeners),[e("svg",{staticClass:"icon",attrs:{t:"1725373394462",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1521",width:"20",height:"20"}},[e("path",{attrs:{d:"M482.399 20.67C216.884 20.67 2 207.593 2 438.173c0 141.471 82.104 267.268 206.136 344.098v129.283c0 17.463 12.22 27.939 26.208 27.939 5.236 0 10.496-1.73 13.967-3.494l131.017-87.34c33.208 6.984 66.383 8.748 101.329 8.748 265.519 0 480.38-186.928 480.38-417.504 1.77-232.31-213.096-419.233-478.638-419.233z m0 766.859c-29.697 0-59.402-3.494-89.088-8.748l-13.983-3.494c-8.729-1.725-17.462 0-26.214 5.258l-12.202 8.715-62.897 41.939v-68.115c0-12.242-6.982-24.484-17.461-29.703l-17.477-10.479C134.764 658.244 70.138 551.711 70.138 439.904c0-192.147 183.433-347.601 410.519-347.601 227.103 0 410.503 155.454 410.503 347.601 1.764 190.401-183.4 347.625-408.761 347.625zM209.878 450.376c0 31.857 25.807 57.659 57.66 57.659 31.836 0 57.642-25.801 57.642-57.659 0-31.797-25.806-57.62-57.642-57.62-31.853 0-57.66 25.824-57.66 57.62z m218.378 0c0 31.857 25.801 57.659 57.637 57.659 31.835 0 57.658-25.801 57.658-57.659 0-31.797-25.822-57.62-57.658-57.62-31.836 0-57.637 25.824-57.637 57.62z m211.349 0c0 31.857 25.824 57.659 57.643 57.659 31.854 0 57.676-25.801 57.676-57.659 0-31.797-25.822-57.62-57.676-57.62-31.818 0-57.643 25.824-57.643 57.62z m330.891 90.263c-1.031-1.301-2.117-2.547-3.18-3.848-7.514 28.535-18.244 56.021-31.754 82.121 0.563 1.268 1.268 2.475 1.809 3.742 9.139 21.021 14.104 43.742 14.104 67.438 0 62.834-36.301 122.688-97.15 158.992l-9.807 5.887c-5.887 2.928-9.844 9.807-9.844 16.689v38.27l-35.309-23.568-6.879-4.895c-4.895-2.928-9.811-3.92-14.705-2.928l-7.838 1.936c-16.723 2.998-33.412 4.895-50.047 4.895-40.004 0-77.678-8.852-110.551-24.273-32.635 7.621-66.5 12.422-101.378 14.07 54.632 47.082 129.826 76.195 212.888 76.195 22.014 0 42.893-1.102 63.771-5.473l82.469 54.963c2.182 1.104 5.473 2.184 8.74 2.184 8.814 0 16.508-6.592 16.508-17.572v-81.381c78.059-48.373 129.748-127.533 129.748-216.555 0.001-54.401-19.015-104.956-51.595-146.889z m0 0",fill:"#8a8a8a","p-id":"1522"}})])])},nn=[],sn={name:"pps-icon-group"},on=sn,rn=(0,c.A)(on,en,nn,!1,null,null,null),an=rn.exports,cn={name:"ppsIcon",data(){return{map:{"pps-icon-admin":At,"pps-icon-close":Tt,"pps-icon-lock":It,"pps-icon-offline":Lt,"pps-icon-online":Zt,"pps-icon-search":te,"pps-icon-github":re,"pps-icon-help":pe,"pps-icon-qq":we,"pps-icon-side-hide":Ae,"pps-icon-side-show":Te,"pps-icon-host":Ie,"pps-icon-port":Le,"pps-icon-account":Ze,"pps-icon-contact":tn,"pps-icon-group":an}}},components:{ppsAdmin:At,ppsClose:Tt,ppsLock:It,ppsOffline:Lt,ppsOnline:Zt,ppsSearch:te,ppsGithub:re,ppsHelp:pe,ppsQq:we,ppsSideHide:Ae,ppsSideShow:Te,ppsHost:Ie,ppsPort:Le,ppsAccount:Ze,ppsContact:tn,ppsGroup:an},props:{icon:{type:String,default(){return""}}},computed:{iconName(){return this.map[this.icon]?this.map[this.icon]:""}}},ln=cn,un=(0,c.A)(ln,vt,wt,!1,null,null,null),dn=un.exports;dn.install=function(t){t.component(dn.name,dn)};var pn=dn,hn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"pps-input-wrapper"},[t.label?e("label",{staticClass:"pps-input-label",attrs:{for:t.label}},[t._v(t._s(t.label)+":")]):t._e(),t.$slots.prepend?e("div",{staticClass:"pps-input__prepend"},[t._t("prepend")],2):t._e(),e("div",{staticClass:"pps-input-inner",class:[{[t.theme]:!t.disabled},{"is-disabled":t.disabled},{"pps-input--prepend":t.$slots.prepend},{"pps-input--append":t.$slots.append}]},[t.icon?e("pps-icon",{attrs:{icon:t.icon}}):t._e(),e("input",t._g(t._b({directives:[{name:"model",rawName:"v-model.trim",value:t.keyWord,expression:"keyWord",modifiers:{trim:!0}}],ref:"input",staticClass:"pps-input",attrs:{id:t.label,type:t.viewPassword?t.showPassword?"text":"password":t.type,disabled:t.disabled,placeholder:t.placeholder},domProps:{value:t.keyWord},on:{blur:[t.handleBlur,function(e){return t.$forceUpdate()}],input:function(e){e.target.composing||(t.keyWord=e.target.value.trim())}}},"input",t.$attrs,!1),t.$listeners)),e("span",{staticClass:"pps-input-suffix"},[t.clearable?e("i",{staticClass:"icon icon-clear",on:{click:function(e){return t.clearFn()}}}):t._e(),t.showPasswordIcon?e("i",{staticClass:"icon icon-view",on:{click:function(e){return t.viewPasswordFn()}}}):t._e()]),t.$slots.default?e("div",{staticClass:"operation"},[t._t("default")],2):t._e()],1),t.$slots.append?e("div",{staticClass:"pps-input__append"},[t._t("append")],2):t._e()])},fn=[],mn={name:"ppsInput",inheritAttrs:!1,data(){return{keyWord:"",showPassword:!1}},props:{placeholder:{type:String,default(){return"请输入内容"}},theme:{type:String,default(){return"white"}},type:{type:String,default(){return"text"}},icon:{type:String,default(){return""}},content:{},label:{type:String,default(){return null}},disabled:{type:Boolean,default(){return!1}},viewPassword:{type:Boolean,default(){return!1}},clearable:{type:Boolean,default(){return!1}},"after-clear":{type:Function,default(){return()=>{}}}},methods:{clearFn(){console.log("clear"),this.keyWord="",this.$refs.input.focus(),this.afterClear()},viewPasswordFn(){this.showPassword=!this.showPassword},handleBlur(t){this.keyWord||(this.showPassword=!1)}},computed:{showPasswordIcon(){return this.viewPassword&&this.keyWord}},watch:{keyWord(){this.$emit("update:content",this.keyWord)},content:{immediate:!0,handler(t){this.keyWord=t}}},mounted(){}},gn=mn,vn=(0,c.A)(gn,hn,fn,!1,null,null,null),wn=vn.exports;wn.install=function(t){t.component(wn.name,wn)};var Mn=wn,_n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"table-item"},[t.title?t._t("title",(function(){return[e("span",{staticClass:"item-title"},[t._v(t._s(t.title.title))])]})):t._e(),t._t("content",(function(){return[e("span",{staticClass:"item-content",domProps:{innerHTML:t._s(t.content)}})]})),t._e()],2)},bn=[],Cn={name:"ppsTableItem",props:{title:{type:Boolean,required:!1,default(){return!1}},content:{default(){return"无"}},test:{type:Object,default(){return{}}}},data(){return{showFlag:!1}},methods:{showToast(){this.showFlag=!this.showFlag},closeToast(){this.showFlag=!1}}},yn=Cn,An=(0,c.A)(yn,_n,bn,!1,null,null,null),Sn=An.exports;Sn.install=function(t){t.component(Sn.name,Sn)};var xn=Sn;const En=[P,D,Z,et,ct,lt,gt,pn,Mn,xn],$n=t=>{En.forEach((e=>{t.component(e.name,e)})),t.prototype.$dialog=E};var kn=n(5090),Tn=n(2109),zn=n.n(Tn),On=n(9143),Nn=n.n(On);s["default"].use(Nn());var Pn=n(6872),Hn=n.n(Pn);s["default"].use(Hn());var In=n(3540);s["default"].component("vueForm",In.Ay);n(47),n(7697);var Un=n(896),Bn=n.n(Un);const Fn=new WeakMap,Rn=new WeakMap,Dn=new ResizeObserver((t=>{for(const e of t){const t=Fn.get(e.target);if(!t)continue;const{inlineSize:n,blockSize:s}=e.borderBoxSize[0];requestAnimationFrame((()=>{Rn.has(e.target)?Rn.get(e.target)(n,s):t(n,s)}))}}));var Ln={bind(t,e){const n=e.arg||!1,s=e.value;if(Fn.set(t,s),n){const e=Bn()(s,n);Rn.set(t,e)}Dn.observe(t)},unbind(t){Dn.unobserve(t),Fn.delete(t),Rn.has(t)&&Rn.delete(t)}};const Vn=t=>{if(!t)return"未处理";const e=new Date(t),n=e.getFullYear(),s=e.getMonth()+1,o=e.getDate(),i=e.getHours()>=10?e.getHours():`0${e.getHours()}`,r=e.getMinutes()>=10?e.getMinutes():`0${e.getMinutes()}`,a=e.getSeconds()>=10?e.getSeconds():`0${e.getSeconds()}`;return`${n}-${s}-${o} ${i}:${r}:${a}`};var Gn={bind(t,e){t.innerText=Vn(e.value)}},Wn=n(5720);let jn=null;const qn="webSocket",Zn='<strong class="info-text">console</strong>';var Kn={install(t){const e=new t;t.prototype.$ws={},t.prototype.$ws.init=n=>{const s=p.A.state.layoutOption.host,o=p.A.state.layoutOption.port,i=p.A.state.layoutOption.protocol,r=p.A.state.layoutOption.token,a=`${"https://"===i?"wss:":"ws:"}//${s}:${o}/webui/${r}`;if(jn)return console.warn("WebSocket已经开启,不能重复初始化。");jn=new WebSocket(a),n&&n(),t.prototype.$ws.instance=jn,jn.onmessage=t=>{const n=JSON.parse(t.data);e.$emit("wsMessage",n)},jn.onopen=()=>{t.prototype.$notify.success({title:qn,dangerouslyUseHTMLString:!0,message:`${Zn} 连接成功`,duration:5e3})},jn.onclose=e=>{t.prototype.$notify.warning({title:qn,dangerouslyUseHTMLString:!0,message:`${Zn} 已断开,Code:${e.code}`,duration:5e3}),jn&&(jn=null),p.A.commit("webSocketOption/updateCpu"),p.A.commit("webSocketOption/updateRam")},jn.onerror=e=>{console.log(e),t.prototype.$notify.error({message:`${Zn} 连接错误:${String(e)}`,dangerouslyUseHTMLString:!0,duration:5e3})}},t.prototype.$ws.close=()=>{console.log("wsclose"),jn&&(jn.close(),jn=null)},t.prototype.$ws.bus=e}};const Jn=new(zn());s["default"].config.productionTip=!1,(0,Wn.c)(p.A),s["default"].use(Kn),s["default"].use($n),s["default"].directive("resize-ob",Ln),s["default"].directive("trans-time",Gn),new s["default"]({router:d.A,store:p.A,render:t=>t(u),beforeCreate(){s["default"].prototype.$echarts=kn,s["default"].prototype.$i18n=Jn}}).$mount("#app")},9325:function(t,e,n){"use strict";var s=n(6848),o=n(6178),i=n(3722);s["default"].use(o.Ay);const r=o.Ay.prototype.push;o.Ay.prototype.push=function(t){return r.call(this,t).catch((t=>t))};const a=o.Ay.prototype.replace;o.Ay.prototype.replace=function(t){return a.call(this,t).catch((t=>t))};const c=[{path:"/",component:()=>n.e(324).then(n.bind(n,3324)),redirect:"/dataCenter",children:[{path:"dataCenter",meta:{title:"数据中心"},component:()=>n.e(974).then(n.bind(n,8974))},{path:"bots",meta:{title:"实例管理"},component:()=>n.e(871).then(n.bind(n,5871))},{path:"modules",meta:{title:"模块管理"},component:()=>n.e(454).then(n.bind(n,4454))},{path:"modulesCenter",meta:{title:"模块中心"},component:()=>n.e(178).then(n.bind(n,6614)),redirect:"/modulesCenter/modulesItem",children:[{path:"modulesItem",name:"modulesItem",meta:{title:"模块详情"},component:()=>n.e(373).then(n.bind(n,1373))}]},{path:"command",meta:{title:"指令管理"},component:()=>n.e(878).then(n.bind(n,6878))},{path:"config",meta:{title:"配置查看"},component:()=>n.e(749).then(n.bind(n,3749))},{path:"sandBox",meta:{title:"沙盒测试"},component:()=>n.e(5).then(n.bind(n,6221))},{path:"console",meta:{title:"控制台"},component:()=>n.e(191).then(n.bind(n,4191))}]},{path:"/login",meta:{title:"登录"},component:()=>n.e(637).then(n.bind(n,3637))},{path:"/404",meta:{title:"404"},component:()=>n.e(620).then(n.bind(n,7620))}],l=new o.Ay({mode:"history",routes:c}),u=["/login","/sandBox"];l.beforeEach(((t,e,n)=>{const s=i.A.state.layoutOption.token;s||u.includes(t.path)?n():n("/login")})),l.afterEach(((t,e)=>{const n=t.meta.title;document.title=n?`kams-${n}`:"kams"})),e.A=l},3722:function(t,e,n){"use strict";n.d(e,{A:function(){return y}});var s=n(6848),o=n(3518);const i={rate:null,speed:null},r={total:null,unused:null,used:null,rate:null};var a={namespaced:!0,state:{cpu:i,ram:r},mutations:{updateCpu(t,e={...i}){t.cpu=e},updateRam(t,e={...r}){t.ram=e}},actions:{},getters:{roundedRam(t){const e={};for(const n in t.ram)Object.hasOwnProperty.call(t.ram,n)&&(e[n]=Number(t.ram[n]).toFixed(2));return e},roundedCpu(t){return{...t.cpu,rate:Number(t.cpu.rate).toFixed(2)}}}},c={namespaced:!0,state:{token:"",isFoldAside:!1,isNarrowScreen:!1,host:"",port:"",sandBoxPort:720,protocol:"",username:"",password:""},mutations:{updateToken(t,e=""){t.token=e},updateIsFoldAside(t,e=!1){t.isFoldAside=e},updateIsNarrowScreen(t,e=!1){t.isNarrowScreen=e},updateHost(t,e=""){t.host=e},updatePort(t,e=""){t.port=e},updateSandBoxPort(t,e=720){t.sandBoxPort=e},updateProtocol(t,e=""){t.protocol=e,console.log("new protocol",e)},updateUsername(t,e=""){t.username=e},updatePassword(t,e=""){t.password=e}},actions:{},getters:{getIsFoldAside(t){return t.isFoldAside},getIsNarrowScreen(t){return t.isNarrowScreen}}},l=n(1552),u={namespaced:!0,state:{data:[],current:null,dialog:!1},mutations:{updateData(t,e=[]){t.data=e,e.length>0&&(t.current=e[0])},updateCurrent(t,e=0){t.current=t.data[e]},updateDialog(t,e=!1){t.dialog=e}},actions:{async getData({commit:t}){const{data:e}=await(0,l.vJ)();t("updateData",e.list)}},getters:{getCurrent:t=>t.current,getDialog:t=>t.dialog,getData:t=>t.data}},d={namespaced:!0,state:{commands:[],current:null},mutations:{UPDATE_COMMANDS(t,e=[]){t.commands=e},UPDATE_CURRENT(t,e=!1){t.current=e?t.commands.find((t=>t.name===e)):t.commands[0]}},actions:{getCommands({commit:t},e){(0,l.Xo)().then((n=>{t("UPDATE_COMMANDS",n.data),t("UPDATE_CURRENT",e)}))},updateCommands(t,{name:e,config:n}){(0,l.hS)(e,n).then((n=>{t.dispatch("getCommands",e)})).catch((t=>{console.log(t)}))}},getters:{getCmds:t=>t.commands,getCmdByName:t=>e=>t.commands.filter((t=>t.name===e))||[],getCmdByShortcut:t=>e=>t.commands.filter((t=>t.data.shortcut.includes(e)))||[],getCurrent:t=>t.current,getCmdByAlias:t=>e=>t.commands.filter((t=>t.data.alias.includes(e)))||[],getCmdByScope:t=>e=>t.commands.filter((t=>t.data.scope===e))||[],getCmdByAccess:t=>e=>t.commands.filter((t=>t.data.access===e))||[]}},p=(n(4114),{ADD_USER(t,e){return!t.users.find((t=>t.id===e.id))&&(t.users.push(e),t.registeredUsersCount++,!0)},ADD_FRIEND(t,{fid:e,id:n}){const o=t.users.find((t=>t.id===e)),i=t.users.find((t=>t.id===n));if(!i)return!1;const r=i.friends.some((t=>t.id===e));if(r)return!1;s["default"].set(i,"friends",[...i.friends||[],{id:o.id,name:o.name,avatar:o.avatar}])},REMOVE_FRIEND(t,{fid:e,id:n}){const s=t.users.findIndex((t=>t.id===n));if(-1===s)return!1;const o=t.users[s].friends.findIndex((t=>t.id===e));return-1!==o&&(Array.isArray(t.currentMsg)&&null!==t.currentMsg&&(t.currentMsg=null),t.users[s].friends.splice(o,1),!0)},REMOVE_USER(t,e){const n=t.users.findIndex((t=>t.id===e));if(n<=-1)return console.log(`用户${e}不存在`);t.currentUser.id===e&&(t.currentMsg=null,t.currentUser=t.users[0]||null),t.users.splice(n,1)},ADD_GROUP(t,e){if(t.groups.some((t=>t.id===e.id)))return console.log(`群组${e.id}已存在`),!1;t.groups.push(e)},REMOVE_GROUP(t,e){if(!t.groups.length)return!1;const n=t.groups.find((t=>t.id===e));n.members.forEach((n=>{const s=t.users.find((t=>t.id===n.id)),o=s.groups.findIndex((t=>t.id===e));s.groups.splice(o,1)}));const s=t.groups.findIndex((t=>t.id===e));s>-1&&t.groups.splice(s,1);const o=t.currentMsg;Array.isArray(o)||null===o||o.id===e&&(t.currentMsg=null)},SET_GROUP_ADMIN(t,{gid:e,mid:n}){const s=t.groups.find((t=>t.id===e));if(!s)return!1;s.admins.push(n),s.members.find((t=>t.id===n)).role="admin";const o=t.users.find((t=>t.id===n));o.groups.find((t=>t.id===e)).role="admin"},REVOKE_GROUP_ADMIN(t,{gid:e,mid:n}){const s=t.groups.find((t=>t.id===e));if(!s)return!1;const o=s.admins.findIndex((t=>t===n));o>-1&&s.admins.splice(o,1);const i=s.members.findIndex((t=>t.id===n));i>-1&&(s.members[i].role="member");const r=t.users.find((t=>t.id===n));r.groups.find((t=>t.id===e)).role="member"},ADD_MEMBER(t,{gid:e,uid:n,role:s}){const o=t.groups.find((t=>t.id===e)),i=t.users.find((t=>t.id===n)),r=t.groupMsg[e].muteMembers;if(!o||!i)return console.error("群组不存在或用户不存在",e,n),!1;o.members.push({id:n,role:s}),i.groups.push({id:e,role:s}),r.push({id:i.id,expire_time:null})},REMOVE_MEMBER(t,{gid:e,mid:n}){const s=t.groups.find((t=>t.id===e));if(!s)return console.error("群组不存在",e);const o=t.users.findIndex((t=>t.id===n));if(-1===o)return console.error("用户不存在",n);const i=t.users[o],r=i.groups.findIndex((t=>t.id===e));-1!==r&&i.groups.splice(r,1);const a=s.admins.findIndex((t=>t===n));a>-1&&s.admins.splice(a,1);const c=s.members.findIndex((t=>t.id===n));if(-1===c)return console.error("群组成员不存在",n);s.members.splice(c,1);const l=t.groupMsg[e].muteMembers,u=l.findIndex((t=>t.id===n));u>-1&&l.splice(u,1);const d=t.currentUser,p=t.currentMsg;i.id===d.id&&e===p.id&&(t.currentMsg=null)},CREATE_PRIVATE_MESSAGE(t,e){if(Reflect.has(t.privateMsg,e))return console.log("私聊消息已存在"),!1;s["default"].set(t.privateMsg,e,{})},INIT_PRIVATE_MESSAGE(t,{id:e,fid:n}){const o=t.privateMsg[e];if(Reflect.has(o,n))return!1;s["default"].set(o,n,[])},SEND_PRIVATE_MESSAGE(t,{sender:e,receiver:n,message:o}){const i=t.privateMsg[e];Reflect.has(i,n)||s["default"].set(i,n,[]),i[n].push(o)},DEL_PRIVATE_MESSAGE(t,{sender:e,receiver:n,msgId:s=!1}){if(!s)return t.privateMsg[e][n]=[];const o=t.privateMsg[e][n].findIndex((t=>t.id===s));if(console.log(o),o<=-1)return console.log("没有此消息");t.privateMsg[e][n].splice(o,1)},CREATE_GROUP_MESSAGE(t,e){if(Reflect.has(t.groupMsg,e.id))return console.log("群聊消息已存在"),!1;s["default"].set(t.groupMsg,e.id,{name:e.name,id:e.id,isMute:!1,muteMembers:[],messages:[]})},SEND_GROUP_MESSAGE(t,{gid:e,message:n}){t.groupMsg[e].messages||s["default"].set(t.groupMsg[e],"messages",[]),t.groupMsg[e].messages.push(n)},DEL_GROUP_MESSAGE(t,{id:e,msgId:n=!1}){if(!n)return t.groupMsg[e].messages=[];if(!t.groupMsg[e].messages.length)return!1;const s=t.groupMsg[e].messages.findIndex((t=>t.id===n));if(s<=-1)return console.log("没有此消息");t.groupMsg[e].messages.splice(s,1)},HANDLE_MUTE_GROUP(t,{gid:e,isMute:n}){t.groupMsg[e].isMute=n},MUTE_MEMBER(t,{gid:e,mid:n,duration:s}){const o=Date.now(),i=t.groupMsg[e],r=i.muteMembers.find((t=>t.id===n));if(!r)return!1;const a=o+1e3*s;r.expire_time=a},UNMUTE_MEMBER(t,{gid:e,mid:n}){const s=t.groupMsg[e],o=s.muteMembers.find((t=>t.id===n));if(!o)return!1;o.expire_time=null},CLEAR_USER_MESSAGE(t,e){if(e){const n=t.users.find((t=>t.id===e)).friends;return n.forEach((n=>{s["default"].delete(t.privateMsg[n.id],e)})),s["default"].delete(t.privateMsg,e),!0}s["default"].set(t,"privateMsg",{})},CLEAR_GROUP_MESSAGE(t,e){if(e)return s["default"].delete(t.groupMsg,e);s["default"].set(t,"groupMsg",{})},SWITCH_USER(t,e){if(e){const n=t.users.find((t=>t.id===e));t.currentUser=n||null}else null===t.currentUser&&(t.currentUser=t.users[0])},SWITCH_CHAT(t,e=null){t.currentMsg=e},SET_WS_CONNECTION(t,e){t.wsInstance=e},SET_CONNECTION_STATUS(t,e){t.wsStatus=e},SET_SANDBOX_WS_KEEPALIVE(t,e){t.isKeepSandboxWsAlive=e},HANLE_MUTE(t,e){const n=t.groupMsg;Object.keys(n).forEach((e=>{n[e].muteMembers=[];const s=n[e].muteMembers,o=t.groups.find((t=>t.id===e));o.members.forEach((t=>{const e={id:t.id,expire_time:null};s.push(e)}))}))}}),h={getUserById:t=>e=>t.users.length?t.users.find((t=>t.id===e))||!1:(console.log(`用户${e}不存在`),!1),getAllUser:t=>t.users,getGroupById:t=>e=>t.groups.length?t.groups.find((t=>t.id===e))||!1:(console.log("群组列表为空"),!1),getAllGroup:t=>t.groups,getGroupMessage:t=>e=>t.groupMsg[e],getPrivateMessage:t=>e=>t.privateMsg[e],getCurrentUser:t=>t.currentUser,getCurrentMsg:t=>t.currentMsg,getMemberMuteStatue:t=>(e,n)=>{const s=t.groupMsg[e];if(!s)return!1;const o=s.muteMembers.find((t=>t.id===n));if(!o)return!1;const i=Date.now(),r=o.expire_time||0;return!(i>r)}},f=n(9109),m=n(9143);const g="webSocket",v='<strong class="success-text">sandBox</strong>';var w={initWebSocket({commit:t,state:e,rootState:n}){if(e.wsConnection)return;const s=n.layoutOption.host,o=n.layoutOption.port,i=n.layoutOption.protocol,r=`${"https://"===i?"wss":"ws"}://${s}:${o}/adapter/sandbox`,a=new WebSocket(r);t("SET_WS_CONNECTION",a),t("SET_CONNECTION_STATUS","connecting"),a.onopen=()=>{t("SET_CONNECTION_STATUS","connected"),m.Notification.success({title:g,message:`${v} 连接成功`,dangerouslyUseHTMLString:!0,duration:5e3})},a.onerror=e=>{t("SET_CONNECTION_STATUS","error"),console.error("WebSocket 错误:",e),m.Notification.error({title:g,message:`${v} 发生错误:${String(e)}`,dangerouslyUseHTMLString:!0})},a.onclose=e=>{t("SET_CONNECTION_STATUS","disconnected"),m.Notification.warning({title:g,message:`${v} 已断开,Code:${e.code}`,dangerouslyUseHTMLString:!0})},a.onmessage=t=>{try{const e=JSON.parse(t.data);f.A.$emit("onmessage",e)}catch(e){console.error("消息转化错误:",e)}}},send(t,e){const{state:n,dispatch:o}=t;"connected"===n.wsStatus?n.wsInstance.send(JSON.stringify(e)):s["default"].prototype.$dialog({title:"提示",content:"SandBox webSocket已断开连接,是否重新连接?"}).then((()=>{o("initWebSocket")})).catch((()=>{s["default"].prototype.$message.warn("取消重新连接")}))},close({state:t}){t.wsInstance.close()}};const M={id:"user-super-admin",name:"超级管理员",avatar:"https://k.hotaru.icu/api/data/avatar/super",isSuper:!0,friends:[],groups:[],numId:"super-admin",sex:"bot",age:"100"},_={registeredUsersCount:0,users:[M],currentUser:null,currentMsg:null,groups:[],privateMsg:{[M.id]:{}},groupMsg:{},wsInstance:null,wsStatus:"disconnected",isKeepSandboxWsAlive:!1};var b={namespaced:!0,state:_,mutations:p,getters:h,actions:w},C=n(5131);s["default"].use(o.Ay);var y=new o.Ay.Store({modules:{webSocketOption:a,layoutOption:c,modulesDetail:u,command:d,sandBox:b},plugins:[(0,C.A)({reducer:t=>{const e={...t};delete e.command,delete e.modulesDetail,delete e.webSocketOption;const{wsInstance:n,wsStatus:s,...o}=e.sandBox;return e.sandBox=o,e}})]})},5720:function(t,e,n){"use strict";n.d(e,{c:function(){return c}});n(4114);var s=n(9143),o=n(9325),i=n(788),r=n.n(i);let a;console.error("[request] 跳转登录页面待优化");const c=t=>{const e=t.state.layoutOption.host??"",n=t.state.layoutOption.port??"",i=t.state.layoutOption.protocol??"http:",c=e&&n?`${i}//${e}:${n}/api`:"/api";a=r().create({baseURL:c,timeout:8e3}),a.interceptors.request.use((e=>(t.state.layoutOption.token&&(e.headers.authorization=`Bearer ${t.state.layoutOption.token}`),e)),(t=>{console.log("请求拦截器错误",t)})),a.interceptors.response.use((t=>t),(e=>(e.response?401===e.response.status?(t.commit("layoutOption/updateToken",""),s.Message.error("登录过期,请重新登录")):404===e.response.status&&(t.commit("layoutOption/updateToken",""),s.Message.error("请求资源不存在!检查后端服务是否正常!")):s.Message.error("请求失败,请检查后端服务是否正常!"),o.A.push("/login"),Promise.reject(e))))};e.A=()=>{if(!a)throw new Error("axios is not defined");return a}},9109:function(t,e,n){"use strict";var s=n(6848);e.A=new s["default"]}},e={};function n(s){var o=e[s];if(void 0!==o)return o.exports;var i=e[s]={id:s,loaded:!1,exports:{}};return t[s].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=t,function(){n.amdO={}}(),function(){var t=[];n.O=function(e,s,o,i){if(!s){var r=1/0;for(u=0;u<t.length;u++){s=t[u][0],o=t[u][1],i=t[u][2];for(var a=!0,c=0;c<s.length;c++)(!1&i||r>=i)&&Object.keys(n.O).every((function(t){return n.O[t](s[c])}))?s.splice(c--,1):(a=!1,i<r&&(r=i));if(a){t.splice(u--,1);var l=o();void 0!==l&&(e=l)}}return e}i=i||0;for(var u=t.length;u>0&&t[u-1][2]>i;u--)t[u]=t[u-1];t[u]=[s,o,i]}}(),function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){n.d=function(t,e){for(var s in e)n.o(e,s)&&!n.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:e[s]})}}(),function(){n.f={},n.e=function(t){return Promise.all(Object.keys(n.f).reduce((function(e,s){return n.f[s](t,e),e}),[]))}}(),function(){n.u=function(t){return"js/"+t+"."+{5:"f818b113",178:"5506400e",191:"d08056ef",324:"33866611",373:"8f482efc",454:"9fcb434d",620:"cc5f8280",637:"58127f0a",749:"43401a32",871:"adcb95ca",878:"d5db5741",974:"5d32785c"}[t]+".js"}}(),function(){n.miniCssF=function(t){return"css/"+t+"."+{5:"b049cb20",178:"50389cc5",191:"03157bbe",324:"93b5ef88",373:"0cce6c3e",454:"0d732bed",620:"53b4f39d",637:"7e04be89",749:"cd5d2f27",871:"78adf960",878:"75469f9c",974:"14fe0cd3"}[t]+".css"}}(),function(){n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){var t={},e="kams:";n.l=function(s,o,i,r){if(t[s])t[s].push(o);else{var a,c;if(void 0!==i)for(var l=document.getElementsByTagName("script"),u=0;u<l.length;u++){var d=l[u];if(d.getAttribute("src")==s||d.getAttribute("data-webpack")==e+i){a=d;break}}a||(c=!0,a=document.createElement("script"),a.charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",e+i),a.src=s),t[s]=[o];var p=function(e,n){a.onerror=a.onload=null,clearTimeout(h);var o=t[s];if(delete t[s],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((function(t){return t(n)})),e)return e(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),c&&document.head.appendChild(a)}}}(),function(){n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t}}(),function(){n.p="/"}(),function(){if("undefined"!==typeof document){var t=function(t,e,s,o,i){var r=document.createElement("link");r.rel="stylesheet",r.type="text/css",n.nc&&(r.nonce=n.nc);var a=function(n){if(r.onerror=r.onload=null,"load"===n.type)o();else{var s=n&&n.type,a=n&&n.target&&n.target.href||e,c=new Error("Loading CSS chunk "+t+" failed.\n("+s+": "+a+")");c.name="ChunkLoadError",c.code="CSS_CHUNK_LOAD_FAILED",c.type=s,c.request=a,r.parentNode&&r.parentNode.removeChild(r),i(c)}};return r.onerror=r.onload=a,r.href=e,s?s.parentNode.insertBefore(r,s.nextSibling):document.head.appendChild(r),r},e=function(t,e){for(var n=document.getElementsByTagName("link"),s=0;s<n.length;s++){var o=n[s],i=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(i===t||i===e))return o}var r=document.getElementsByTagName("style");for(s=0;s<r.length;s++){o=r[s],i=o.getAttribute("data-href");if(i===t||i===e)return o}},s=function(s){return new Promise((function(o,i){var r=n.miniCssF(s),a=n.p+r;if(e(r,a))return o();t(s,a,null,o,i)}))},o={524:0};n.f.miniCss=function(t,e){var n={5:1,178:1,191:1,324:1,373:1,454:1,620:1,637:1,749:1,871:1,878:1,974:1};o[t]?e.push(o[t]):0!==o[t]&&n[t]&&e.push(o[t]=s(t).then((function(){o[t]=0}),(function(e){throw delete o[t],e})))}}}(),function(){var t={524:0};n.f.j=function(e,s){var o=n.o(t,e)?t[e]:void 0;if(0!==o)if(o)s.push(o[2]);else{var i=new Promise((function(n,s){o=t[e]=[n,s]}));s.push(o[2]=i);var r=n.p+n.u(e),a=new Error,c=function(s){if(n.o(t,e)&&(o=t[e],0!==o&&(t[e]=void 0),o)){var i=s&&("load"===s.type?"missing":s.type),r=s&&s.target&&s.target.src;a.message="Loading chunk "+e+" failed.\n("+i+": "+r+")",a.name="ChunkLoadError",a.type=i,a.request=r,o[1](a)}};n.l(r,c,"chunk-"+e,e)}},n.O.j=function(e){return 0===t[e]};var e=function(e,s){var o,i,r=s[0],a=s[1],c=s[2],l=0;if(r.some((function(e){return 0!==t[e]}))){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(c)var u=c(n)}for(e&&e(s);l<r.length;l++)i=r[l],n.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return n.O(u)},s=self["webpackChunkkams"]=self["webpackChunkkams"]||[];s.forEach(e.bind(null,0)),s.push=e.bind(null,s.push.bind(s))}();var s=n.O(void 0,[504],(function(){return n(8235)}));s=n.O(s)})();
|
|
2
|
+
//# sourceMappingURL=app.8e5fd566.js.map
|