From 74214d76697c15b9e082be602f7b92c45ea6f491 Mon Sep 17 00:00:00 2001 From: trueai-org Date: Fri, 18 Oct 2024 21:13:02 +0800 Subject: [PATCH] v5.9.7 --- src/Midjourney.API/wwwroot/index.html | 4 ++-- ...> p__AccountList__index.7c0222b4.async.js} | 24 +++++++++---------- ...facfd61a.js => preload_helper.655e76c4.js} | 2 +- .../{umi.8d92f439.js => umi.4d84220b.js} | 2 +- .../GlobalConfiguration.cs | 2 +- 5 files changed, 17 insertions(+), 17 deletions(-) rename src/Midjourney.API/wwwroot/{p__AccountList__index.44e1e690.async.js => p__AccountList__index.7c0222b4.async.js} (78%) rename src/Midjourney.API/wwwroot/{preload_helper.facfd61a.js => preload_helper.655e76c4.js} (97%) rename src/Midjourney.API/wwwroot/{umi.8d92f439.js => umi.4d84220b.js} (99%) diff --git a/src/Midjourney.API/wwwroot/index.html b/src/Midjourney.API/wwwroot/index.html index 726a7eba..2f52da1c 100644 --- a/src/Midjourney.API/wwwroot/index.html +++ b/src/Midjourney.API/wwwroot/index.html @@ -7,10 +7,10 @@ Midjourney Proxy Admin - +
- + \ No newline at end of file diff --git a/src/Midjourney.API/wwwroot/p__AccountList__index.44e1e690.async.js b/src/Midjourney.API/wwwroot/p__AccountList__index.7c0222b4.async.js similarity index 78% rename from src/Midjourney.API/wwwroot/p__AccountList__index.44e1e690.async.js rename to src/Midjourney.API/wwwroot/p__AccountList__index.7c0222b4.async.js index d1464962..67a2b9cc 100644 --- a/src/Midjourney.API/wwwroot/p__AccountList__index.44e1e690.async.js +++ b/src/Midjourney.API/wwwroot/p__AccountList__index.7c0222b4.async.js @@ -1,12 +1,12 @@ -"use strict";(self.webpackChunkmidjourney_proxy_admin=self.webpackChunkmidjourney_proxy_admin||[]).push([[201],{2891:function(ta,Se,l){l.r(Se),l.d(Se,{default:function(){return na}});var we=l(15009),C=l.n(we),Te=l(97857),ge=l.n(Te),ke=l(99289),G=l.n(ke),Re=l(5574),f=l.n(Re),X=l(66927),ue=l(16568),Ce=l(86738),H=l(14726),Ae=l(82061),d=l(67294),se=l(80854),e=l(85893),Oe=function(b){var h=b.record,i=b.onSuccess,I=(0,d.useState)(!1),t=f()(I,2),s=t[0],w=t[1],N=(0,d.useState)(!1),P=f()(N,2),L=P[0],D=P[1],S=ue.ZP.useNotification(),F=f()(S,2),T=F[0],U=F[1],k=(0,se.useIntl)(),R=function(){w(!0)},B=function(){var O=G()(C()().mark(function x(){var c;return C()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return D(!0),r.prev=1,r.next=4,(0,X.tm)(h.id);case 4:c=r.sent,w(!1),c.success?(T.success({message:"success",description:k.formatMessage({id:"pages.account.deleteSuccess"})}),i()):T.error({message:"error",description:c.message}),r.next=12;break;case 9:r.prev=9,r.t0=r.catch(1),console.error(r.t0);case 12:return r.prev=12,D(!1),r.finish(12);case 15:case"end":return r.stop()}},x,null,[[1,9,12,15]])}));return function(){return O.apply(this,arguments)}}(),Y=function(){w(!1)};return(0,e.jsxs)(Ce.Z,{title:k.formatMessage({id:"pages.account.delete"}),description:k.formatMessage({id:"pages.account.deleteTitle"}),open:s,onConfirm:B,okButtonProps:{loading:L},onCancel:Y,children:[U,(0,e.jsx)(H.ZP,{danger:!0,icon:(0,e.jsx)(Ae.Z,{}),onClick:R})]})},Fe=Oe,Me=l(98165),De=function(b){var h=b.record,i=b.onSuccess,I=(0,d.useState)(!1),t=f()(I,2),s=t[0],w=t[1],N=(0,d.useState)(!1),P=f()(N,2),L=P[0],D=P[1],S=ue.ZP.useNotification(),F=f()(S,2),T=F[0],U=F[1],k=(0,se.useIntl)(),R=function(){w(!0)},B=function(){var O=G()(C()().mark(function x(){var c;return C()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return D(!0),r.prev=1,r.next=4,(0,X.Je)(h.id);case 4:c=r.sent,console.log("resss",c),w(!1),c.success?(T.success({message:"success",description:k.formatMessage({id:"pages.account.syncSuccess"})}),i()):(T.error({message:"error",description:c.message}),i()),r.next=13;break;case 10:r.prev=10,r.t0=r.catch(1),console.error(r.t0);case 13:return r.prev=13,D(!1),r.finish(13);case 16:case"end":return r.stop()}},x,null,[[1,10,13,16]])}));return function(){return O.apply(this,arguments)}}(),Y=function(){w(!1)};return(0,e.jsxs)(Ce.Z,{title:k.formatMessage({id:"pages.account.sync"}),description:k.formatMessage({id:"pages.account.syncTitle"}),open:s,onConfirm:B,okButtonProps:{loading:L},onCancel:Y,children:[U,(0,e.jsx)(H.ZP,{icon:(0,e.jsx)(Me.Z,{}),onClick:R})]})},Be=De,a=l(53025),fe=l(71230),_=l(15746),J=l(4393),m=l(55102),v=l(72269),A=l(85886),y=l(37804),re=l(42075),he=l(17910),pe=l(38437),be=l(5785),Ne=function(b){var h=b.form,i=b.onSubmit,I=b.r,t=(0,se.useIntl)();(0,d.useEffect)(function(){var x=localStorage.getItem("account_cache");if(x)try{h.setFieldsValue(JSON.parse(x))}catch(c){h.setFieldsValue({userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36",coreSize:3,queueSize:10,timeoutMinutes:5})}else h.setFieldsValue({userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36",coreSize:3,queueSize:10,timeoutMinutes:5})},[I]);var s=(0,d.useState)([]),w=f()(s,2),N=w[0],P=w[1];(0,d.useEffect)(function(){(0,X.fl)().then(function(x){x.success&&P(x.data)})},[]);var L=(0,d.useState)(!1),D=f()(L,2),S=D[0],F=D[1],T=(0,d.useState)(""),U=f()(T,2),k=U[0],R=U[1],B=function(){F(!0)},Y=function(){h.setFieldsValue({subChannels:k.split(` -`)}),F(!1)},O=function(){F(!1)};return(0,e.jsxs)(a.Z,{form:h,labelAlign:"left",layout:"horizontal",labelCol:{span:8},wrapperCol:{span:16},onFinish:i,children:[(0,e.jsxs)(fe.Z,{gutter:16,children:[(0,e.jsx)(_.Z,{span:8,children:(0,e.jsxs)(J.Z,{type:"inner",title:t.formatMessage({id:"pages.account.info"}),children:[(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.guildId"}),name:"guildId",rules:[{required:!0}],children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.channelId"}),name:"channelId",rules:[{required:!0}],children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.userToken"}),name:"userToken",rules:[{required:!0}],children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.botToken"}),name:"botToken",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:"User Agent",name:"userAgent",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.enable"}),name:"enable",valuePropName:"checked",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.enableFastToRelax"}),name:"enableFastToRelax",valuePropName:"checked",tooltip:t.formatMessage({id:"pages.account.enableFastToRelaxTips"}),children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.enableRelaxToFast"}),name:"enableRelaxToFast",valuePropName:"checked",tooltip:t.formatMessage({id:"pages.account.enableRelaxToFastTips"}),children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.remixAutoSubmit"}),name:"remixAutoSubmit",valuePropName:"checked",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.mode"}),name:"mode",children:(0,e.jsxs)(A.Z,{allowClear:!0,children:[(0,e.jsx)(A.Z.Option,{value:"RELAX",children:"RELAX"}),(0,e.jsx)(A.Z.Option,{value:"FAST",children:"FAST"}),(0,e.jsx)(A.Z.Option,{value:"TURBO",children:"TURBO"})]})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.allowModes"}),name:"allowModes",children:(0,e.jsxs)(A.Z,{allowClear:!0,mode:"multiple",children:[(0,e.jsx)(A.Z.Option,{value:"RELAX",children:"RELAX"}),(0,e.jsx)(A.Z.Option,{value:"FAST",children:"FAST"}),(0,e.jsx)(A.Z.Option,{value:"TURBO",children:"TURBO"})]})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.enableAutoSetRelax"}),name:"enableAutoSetRelax",valuePropName:"checked",tooltip:t.formatMessage({id:"pages.account.enableAutoSetRelaxTips"}),children:(0,e.jsx)(v.Z,{})})]})}),(0,e.jsx)(_.Z,{span:8,children:(0,e.jsxs)(J.Z,{type:"inner",title:t.formatMessage({id:"pages.account.poolsize"}),children:[(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.coreSize"}),name:"coreSize",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.queueSize"}),name:"queueSize",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.maxQueueSize"}),name:"maxQueueSize",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.interval"}),name:"interval",children:(0,e.jsx)(y.Z,{min:1.2})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.intervalAfter"}),children:(0,e.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:(0,e.jsxs)(re.Z,{children:[(0,e.jsx)(a.Z.Item,{name:"afterIntervalMin",style:{margin:0},children:(0,e.jsx)(y.Z,{min:1.2,placeholder:"Min"})}),"~",(0,e.jsx)(a.Z.Item,{name:"afterIntervalMax",style:{margin:0},children:(0,e.jsx)(y.Z,{min:1.2,placeholder:"Max"})})]})})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.weight"}),name:"weight",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.enableMj"}),name:"enableMj",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.enableNiji"}),name:"enableNiji",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.isBlend"}),name:"isBlend",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.isDescribe"}),name:"isDescribe",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.isShorten"}),name:"isShorten",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.dayDrawLimit"}),name:"dayDrawLimit",children:(0,e.jsx)(y.Z,{min:-1})})]})}),(0,e.jsx)(_.Z,{span:8,children:(0,e.jsxs)(J.Z,{type:"inner",title:t.formatMessage({id:"pages.account.otherInfo"}),children:[(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.mjChannelId"}),name:"privateChannelId",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.nijiChannelId"}),name:"nijiBotChannelId",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.permanentInvitationLink"}),name:"permanentInvitationLink",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.isVerticalDomain"}),name:"isVerticalDomain",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.verticalDomainIds"}),name:"verticalDomainIds",children:(0,e.jsx)(A.Z,{options:N,allowClear:!0,mode:"multiple"})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.sort"}),name:"sort",children:(0,e.jsx)(y.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.timeoutMinutes"}),name:"timeoutMinutes",children:(0,e.jsx)(y.Z,{min:1,suffix:t.formatMessage({id:"pages.minutes"})})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.sponsor"}),name:"sponsor",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.remark"}),name:"remark",children:(0,e.jsx)(m.Z.TextArea,{autoSize:{minRows:1,maxRows:6}})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.workTime"}),name:"workTime",children:(0,e.jsx)(m.Z,{placeholder:"09:00-17:00, 18:00-22:00"})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.fishingTime"}),help:t.formatMessage({id:"pages.account.fishingTimeTips"}),name:"fishingTime",children:(0,e.jsx)(m.Z,{placeholder:"23:30-09:00, 00:00-10:00"})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.subChannels"}),name:"subChannels",extra:(0,e.jsx)(H.ZP,{type:"primary",onClick:function(){R(h.getFieldValue("subChannels").join(` -`)),B()},icon:(0,e.jsx)(be.Z,{})}),children:(0,e.jsx)(m.Z.TextArea,{disabled:!0,autoSize:{minRows:1,maxRows:1}})})]})})]}),(0,e.jsxs)(he.Z,{title:t.formatMessage({id:"pages.account.subChannels"}),visible:S,onOk:Y,onCancel:O,width:960,children:[(0,e.jsx)("div",{children:(0,e.jsx)(pe.Z,{message:t.formatMessage({id:"pages.account.subChannelsHelp"}),type:"info",style:{marginBottom:"10px"}})}),(0,e.jsx)(m.Z.TextArea,{placeholder:"https://discord.com/channels/xxx/xxx",autoSize:{minRows:10,maxRows:24},style:{width:"100%"},value:k,onChange:function(c){R(c.target.value)}})]})]})},ze=Ne,Pe=function(b){var h=b.form,i=b.onSubmit,I=b.record,t=(0,se.useIntl)(),s=ue.ZP.useNotification(),w=f()(s,2),N=w[0],P=w[1],L=(0,d.useState)(),D=f()(L,2),S=D[0],F=D[1],T=(0,d.useState)(!1),U=f()(T,2),k=U[0],R=U[1];(0,d.useEffect)(function(){F(I)},[]);var B=function(){var O=G()(C()().mark(function x(){var c;return C()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return R(!0),r.next=3,(0,X.qG)(I.id);case 3:c=r.sent,R(!1),c.success&&F(c.data);case 6:case"end":return r.stop()}},x)}));return function(){return O.apply(this,arguments)}}(),Y=function(){var O=G()(C()().mark(function x(){var c;return C()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return R(!0),r.next=3,(0,X.eD)(I.id);case 3:c=r.sent,R(!1),c.success&&(N.success({message:"success",description:"Success"}),i(S));case 6:case"end":return r.stop()}},x)}));return function(){return O.apply(this,arguments)}}();return(0,e.jsxs)(a.Z,{form:h,labelAlign:"left",layout:"horizontal",labelCol:{span:8},wrapperCol:{span:16},onFinish:i,children:[P,(0,e.jsx)(fe.Z,{gutter:16,children:(0,e.jsxs)(_.Z,{span:24,style:{padding:12},children:[S&&(0,e.jsx)("a",{target:"_blank",rel:"noreferrer",href:S==null?void 0:S.cfUrl,children:(S==null?void 0:S.cfUrl)||"-"}),(0,e.jsx)("br",{}),(0,e.jsxs)(re.Z,{style:{marginTop:12},children:[(0,e.jsx)(H.ZP,{onClick:B,loading:k,type:"default",children:t.formatMessage({id:"pages.account.cfRefresh"})}),(0,e.jsx)(H.ZP,{onClick:Y,loading:k,type:"primary",children:t.formatMessage({id:"pages.account.cfok"})})]})]})})]})},Le=Pe,le=l(66309),de=l(83062),M=l(26412),Ue=l(27484),ye=l.n(Ue),Ee=A.Z.Option,Ve=function(b){var h,i=b.record,I=b.onSuccess,t=ue.ZP.useNotification(),s=f()(t,2),w=s[0],N=s[1],P=(0,d.useState)(""),L=f()(P,2),D=L[0],S=L[1],F=(0,d.useState)([]),T=f()(F,2),U=T[0],k=T[1],R=(0,d.useState)([]),B=f()(R,2),Y=B[0],O=B[1],x=(0,d.useState)(!1),c=f()(x,2),V=c[0],r=c[1],xe=(0,d.useState)(""),ee=f()(xe,2),me=ee[0],je=ee[1],u=(0,se.useIntl)();(0,d.useEffect)(function(){S(i.version),k(i.buttons),O(i.nijiButtons)},[i]);var Ze=function(g,z,Q){var ne=g?"green":"volcano",p=g?z:Q;return(0,e.jsx)(le.Z,{color:ne,children:p})},W=function(g){return!g||g.length<25?g:(0,e.jsx)(de.Z,{title:g,children:g.substring(0,25)+"..."})},j=function(g){return ye()(g).format("YYYY-MM-DD HH:mm")},ve=function(){var g;return(g=i.versionSelector)===null||g===void 0?void 0:g.map(function(z){return(0,e.jsxs)(Ee,{value:z.customId,children:[z.emoji," ",z.label]},z.customId)})},ae=function(){return U.map(function(g){return(0,e.jsxs)(H.ZP,{ghost:!0,style:{backgroundColor:g.style==3?"#258146":"rgb(131 133 142)"},onClick:function(){q("MID_JOURNEY",g.customId)},loading:me=="MID_JOURNEY:"+g.customId,children:[g.emoji," ",g.label]},"MID_JOURNEY:"+g.customId)})},ie=function(){return Y.map(function(g){return(0,e.jsxs)(H.ZP,{ghost:!0,style:{backgroundColor:g.style==3?"#258146":"rgb(131 133 142)"},onClick:function(){q("NIJI_JOURNEY",g.customId)},loading:me=="NIJI_JOURNEY:"+g.customId,children:[g.emoji," ",g.label]},"NIJI_JOURNEY:"+g.customId)})},Ie=function(){var K=G()(C()().mark(function g(z){var Q;return C()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return S(z),r(!0),p.next=4,(0,X.p3)(i.id,z);case 4:Q=p.sent,Q.success?(r(!1),w.success({message:"success",description:u.formatMessage({id:"pages.account.mjVersionSuccess"})}),I()):(S(i.version),r(!1),w.error({message:"error",description:Q.message}));case 6:case"end":return p.stop()}},g)}));return function(z){return K.apply(this,arguments)}}(),q=function(){var K=G()(C()().mark(function g(z,Q){var ne;return C()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(me===""){o.next=2;break}return o.abrupt("return");case 2:return je(z+":"+Q),o.next=5,(0,X.wO)(i.id,z,Q);case 5:ne=o.sent,je(""),ne.success?I():w.error({message:"error",description:ne.message});case 8:case"end":return o.stop()}},g)}));return function(z,Q){return K.apply(this,arguments)}}();return(0,e.jsxs)(e.Fragment,{children:[N,(0,e.jsx)(J.Z,{type:"inner",title:u.formatMessage({id:"pages.account.info"}),style:{margin:"5px"},children:(0,e.jsxs)(M.Z,{column:3,children:[(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.guildId"}),children:i.guildId}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.channelId"}),children:i.channelId}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.userToken"}),children:W(i.userToken)}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.botToken"}),children:W(i.botToken)}),(0,e.jsxs)(M.Z.Item,{label:"User Agent",children:[W(i.userAgent)," "]}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.remixAutoSubmit"}),children:Ze(i.remixAutoSubmit,u.formatMessage({id:"pages.yes"}),u.formatMessage({id:"pages.no"}))}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.mjChannelId"}),children:i.privateChannelId}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.nijiChannelId"}),children:i.nijiBotChannelId})]})}),(0,e.jsx)(J.Z,{type:"inner",title:u.formatMessage({id:"pages.account.basicInfo"}),style:{margin:"5px"},children:(0,e.jsxs)(M.Z,{column:3,children:[(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.status"}),children:Ze(i.enable,u.formatMessage({id:"pages.enable"}),u.formatMessage({id:"pages.disable"}))}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.mjMode"}),children:i.displays.mode}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.nijiMode"}),children:i.displays.nijiMode}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.subscribePlan"}),children:i.displays.subscribePlan}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.billedWay"}),children:i.displays.billedWay}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.renewDate"}),children:i.displays.renewDate}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.fastTimeRemaining"}),children:i.fastTimeRemaining}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.relaxedUsage"}),children:i.relaxedUsage}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.fastUsage"}),children:i.fastUsage}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.turboUsage"}),children:i.turboUsage}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.lifetimeUsage"}),children:i.lifetimeUsage})]})}),(0,e.jsx)(J.Z,{type:"inner",title:u.formatMessage({id:"pages.account.otherInfo"}),style:{margin:"5px"},children:(0,e.jsxs)(M.Z,{column:3,children:[(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.coreSize"}),children:i.coreSize}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.queueSize"}),children:i.queueSize}),(0,e.jsxs)(M.Z.Item,{label:u.formatMessage({id:"pages.account.timeoutMinutes"}),children:[i.timeoutMinutes," ",u.formatMessage({id:"pages.minutes"})]}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.weight"}),children:i.weight}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.dateCreated"}),children:j(i.dateCreated)}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.remark"}),children:W(i.remark)}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.disabledReason"}),children:W(i.disabledReason)})]})}),(0,e.jsxs)(J.Z,{type:"inner",title:u.formatMessage({id:"pages.account.mjSettings"}),style:{margin:"5px"},children:[(0,e.jsx)(A.Z,{style:{width:"35%"},placeholder:(h=i.versionSelector)===null||h===void 0?void 0:h.placeholder,value:D,onChange:Ie,loading:V,children:ve()}),(0,e.jsx)(re.Z,{wrap:!0,style:{marginTop:"5px"},children:ae()})]}),(0,e.jsx)(J.Z,{type:"inner",title:u.formatMessage({id:"pages.account.nijiSettings"}),style:{margin:"5px"},children:(0,e.jsx)(re.Z,{wrap:!0,style:{marginTop:"5px"},children:ie()})})]})},$e=Ve,He=function(b){var h=b.form,i=b.onSubmit,I=b.record,t=b.r,s=(0,se.useIntl)();(0,d.useEffect)(function(){h.setFieldsValue(I)},[]),(0,d.useEffect)(function(){h.setFieldsValue(I)},[t]);var w=(0,d.useState)([]),N=f()(w,2),P=N[0],L=N[1];(0,d.useEffect)(function(){(0,X.fl)().then(function(c){c.success&&L(c.data)})},[]);var D=(0,d.useState)(!1),S=f()(D,2),F=S[0],T=S[1],U=(0,d.useState)(""),k=f()(U,2),R=k[0],B=k[1],Y=function(){T(!0)},O=function(){I.subChannels=R.split(` -`),h.setFieldsValue({subChannels:R.split(` -`)}),T(!1)},x=function(){T(!1)};return(0,e.jsxs)(a.Z,{form:h,labelAlign:"left",layout:"horizontal",labelCol:{span:8},wrapperCol:{span:16},onFinish:i,children:[(0,e.jsxs)(fe.Z,{gutter:16,children:[(0,e.jsx)(_.Z,{span:8,children:(0,e.jsxs)(J.Z,{type:"inner",title:s.formatMessage({id:"pages.account.info"}),children:[(0,e.jsx)(a.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.guildId"}),name:"guildId",rules:[{required:!0}],children:(0,e.jsx)(m.Z,{disabled:!0})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.channelId"}),name:"channelId",rules:[{required:!0}],children:(0,e.jsx)(m.Z,{disabled:!0})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.userToken"}),name:"userToken",rules:[{required:!0}],children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.botToken"}),name:"botToken",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:"User Agent",name:"userAgent",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.enable"}),name:"enable",valuePropName:"checked",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.enableFastToRelax"}),name:"enableFastToRelax",valuePropName:"checked",tooltip:s.formatMessage({id:"pages.account.enableFastToRelaxTips"}),children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.enableRelaxToFast"}),name:"enableRelaxToFast",valuePropName:"checked",tooltip:s.formatMessage({id:"pages.account.enableRelaxToFastTips"}),children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.remixAutoSubmit"}),name:"remixAutoSubmit",valuePropName:"checked",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.mode"}),name:"mode",children:(0,e.jsxs)(A.Z,{allowClear:!0,children:[(0,e.jsx)(A.Z.Option,{value:"RELAX",children:"RELAX"}),(0,e.jsx)(A.Z.Option,{value:"FAST",children:"FAST"}),(0,e.jsx)(A.Z.Option,{value:"TURBO",children:"TURBO"})]})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.allowModes"}),name:"allowModes",tooltip:"\u5982\u679C\u7528\u6237\u6307\u5B9A\u6A21\u5F0F\u6216\u6DFB\u52A0\u4E86\u81EA\u5B9A\u4E49\u53C2\u6570\u4F8B\u5982 --fast\uFF0C\u4F46\u662F\u8D26\u53F7\u4E0D\u5141\u8BB8 FAST\uFF0C\u5219\u81EA\u52A8\u79FB\u9664\u6B64\u53C2\u6570",children:(0,e.jsxs)(A.Z,{allowClear:!0,mode:"multiple",children:[(0,e.jsx)(A.Z.Option,{value:"RELAX",children:"RELAX"}),(0,e.jsx)(A.Z.Option,{value:"FAST",children:"FAST"}),(0,e.jsx)(A.Z.Option,{value:"TURBO",children:"TURBO"})]})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.enableAutoSetRelax"}),name:"enableAutoSetRelax",valuePropName:"checked",tooltip:s.formatMessage({id:"pages.account.enableAutoSetRelaxTips"}),children:(0,e.jsx)(v.Z,{})})]})}),(0,e.jsx)(_.Z,{span:8,children:(0,e.jsxs)(J.Z,{type:"inner",title:s.formatMessage({id:"pages.account.poolsize"}),children:[(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.coreSize"}),name:"coreSize",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.queueSize"}),name:"queueSize",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.maxQueueSize"}),name:"maxQueueSize",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.interval"}),name:"interval",children:(0,e.jsx)(y.Z,{min:1.2})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.intervalAfter"}),children:(0,e.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:(0,e.jsxs)(re.Z,{children:[(0,e.jsx)(a.Z.Item,{name:"afterIntervalMin",style:{margin:0},children:(0,e.jsx)(y.Z,{min:1.2,placeholder:"Min"})}),"~",(0,e.jsx)(a.Z.Item,{name:"afterIntervalMax",style:{margin:0},children:(0,e.jsx)(y.Z,{min:1.2,placeholder:"Max"})})]})})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.weight"}),name:"weight",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.enableMj"}),name:"enableMj",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.enableNiji"}),name:"enableNiji",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.isBlend"}),name:"isBlend",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.isDescribe"}),name:"isDescribe",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.isShorten"}),name:"isShorten",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.dayDrawLimit"}),name:"dayDrawLimit",extra:I.dayDrawCount>0&&(0,e.jsxs)("span",{children:[s.formatMessage({id:"pages.account.dayDrawCount"})," ",I.dayDrawCount]}),children:(0,e.jsx)(y.Z,{min:-1})})]})}),(0,e.jsx)(_.Z,{span:8,children:(0,e.jsxs)(J.Z,{type:"inner",title:s.formatMessage({id:"pages.account.otherInfo"}),children:[(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.mjChannelId"}),name:"privateChannelId",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.nijiChannelId"}),name:"nijiBotChannelId",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.permanentInvitationLink"}),name:"permanentInvitationLink",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.isVerticalDomain"}),name:"isVerticalDomain",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.verticalDomainIds"}),name:"verticalDomainIds",children:(0,e.jsx)(A.Z,{options:P,allowClear:!0,mode:"multiple"})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.sort"}),name:"sort",children:(0,e.jsx)(y.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.timeoutMinutes"}),name:"timeoutMinutes",children:(0,e.jsx)(y.Z,{min:1,suffix:s.formatMessage({id:"pages.minutes"})})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.sponsor"}),name:"sponsor",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.remark"}),name:"remark",children:(0,e.jsx)(m.Z.TextArea,{autoSize:{minRows:1,maxRows:6}})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.workTime"}),name:"workTime",children:(0,e.jsx)(m.Z,{placeholder:"09:00-17:00, 18:00-22:00"})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.fishingTime"}),help:s.formatMessage({id:"pages.account.fishingTimeTips"}),name:"fishingTime",children:(0,e.jsx)(m.Z,{placeholder:"23:30-09:00, 00:00-10:00"})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.subChannels"}),name:"subChannels",extra:(0,e.jsx)(H.ZP,{type:"primary",onClick:function(){B(h.getFieldValue("subChannels").join(` -`)),Y()},icon:(0,e.jsx)(be.Z,{})}),children:(0,e.jsx)(m.Z.TextArea,{disabled:!0,autoSize:{minRows:1,maxRows:1}})})]})})]}),(0,e.jsxs)(he.Z,{title:s.formatMessage({id:"pages.account.subChannels"}),visible:F,onOk:O,onCancel:x,width:960,children:[(0,e.jsx)("div",{children:(0,e.jsx)(pe.Z,{message:s.formatMessage({id:"pages.account.subChannelsHelp"}),type:"info",style:{marginBottom:"10px"}})}),(0,e.jsx)(m.Z.TextArea,{placeholder:"https://discord.com/channels/xxx/xxx",autoSize:{minRows:10,maxRows:24},style:{width:"100%"},value:R,onChange:function(V){B(V.target.value)}})]}),(0,e.jsx)(pe.Z,{message:s.formatMessage({id:"pages.account.updateNotice"}),type:"warning",style:{marginTop:"10px"}})]})},Ye=He,Je=function(b){var h=b.form,i=b.onSubmit,I=b.record,t=b.r,s=(0,se.useIntl)();(0,d.useEffect)(function(){h.setFieldsValue(I)},[]),(0,d.useEffect)(function(){h.setFieldsValue(I)},[t]);var w=(0,d.useState)([]),N=f()(w,2),P=N[0],L=N[1];(0,d.useEffect)(function(){(0,X.fl)().then(function(c){c.success&&L(c.data)})},[]);var D=(0,d.useState)(!1),S=f()(D,2),F=S[0],T=S[1],U=(0,d.useState)(""),k=f()(U,2),R=k[0],B=k[1],Y=function(){T(!0)},O=function(){I.subChannels=R.split(` -`),h.setFieldsValue({subChannels:R.split(` -`)}),T(!1)},x=function(){T(!1)};return(0,e.jsxs)(a.Z,{form:h,labelAlign:"left",layout:"horizontal",labelCol:{span:8},wrapperCol:{span:16},onFinish:i,children:[(0,e.jsxs)(fe.Z,{gutter:16,children:[(0,e.jsx)(_.Z,{span:12,children:(0,e.jsxs)(J.Z,{type:"inner",title:s.formatMessage({id:"pages.account.info"}),children:[(0,e.jsx)(a.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.mjChannelId"}),name:"privateChannelId",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.nijiChannelId"}),name:"nijiBotChannelId",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.remixAutoSubmit"}),name:"remixAutoSubmit",valuePropName:"checked",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.enableMj"}),name:"enableMj",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.enableNiji"}),name:"enableNiji",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.isBlend"}),name:"isBlend",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.isDescribe"}),name:"isDescribe",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.isShorten"}),name:"isShorten",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.dayDrawLimit"}),name:"dayDrawLimit",extra:I.dayDrawCount>0&&(0,e.jsxs)("span",{children:[s.formatMessage({id:"pages.account.dayDrawCount"})," ",I.dayDrawCount]}),children:(0,e.jsx)(y.Z,{min:-1})})]})}),(0,e.jsx)(_.Z,{span:12,children:(0,e.jsxs)(J.Z,{type:"inner",title:s.formatMessage({id:"pages.account.otherInfo"}),children:[(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.permanentInvitationLink"}),name:"permanentInvitationLink",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.isVerticalDomain"}),name:"isVerticalDomain",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.verticalDomainIds"}),name:"verticalDomainIds",children:(0,e.jsx)(A.Z,{options:P,allowClear:!0,mode:"multiple"})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.timeoutMinutes"}),name:"timeoutMinutes",children:(0,e.jsx)(y.Z,{min:1,suffix:s.formatMessage({id:"pages.minutes"})})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.weight"}),name:"weight",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.sponsor"}),name:"sponsor",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.remark"}),name:"remark",children:(0,e.jsx)(m.Z.TextArea,{autoSize:{minRows:1,maxRows:6}})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.sort"}),name:"sort",children:(0,e.jsx)(y.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.subChannels"}),name:"subChannels",extra:(0,e.jsx)(H.ZP,{type:"primary",onClick:function(){B(h.getFieldValue("subChannels").join(` -`)),Y()},icon:(0,e.jsx)(be.Z,{})}),children:(0,e.jsx)(m.Z.TextArea,{disabled:!0,autoSize:{minRows:1,maxRows:1}})})]})})]}),(0,e.jsxs)(he.Z,{title:s.formatMessage({id:"pages.account.subChannels"}),visible:F,onOk:O,onCancel:x,width:960,children:[(0,e.jsx)("div",{children:(0,e.jsx)(pe.Z,{message:s.formatMessage({id:"pages.account.subChannelsHelp"}),type:"info",style:{marginBottom:"10px"}})}),(0,e.jsx)(m.Z.TextArea,{placeholder:"https://discord.com/channels/xxx/xxx",autoSize:{minRows:10,maxRows:24},style:{width:"100%"},value:R,onChange:function(V){B(V.target.value)}})]})]})},We=Je,Xe=l(94149),Ge=l(66212),Ke=l(3355),Qe=l(2830),qe=l(47389),_e=l(88360),ea=l(90930),aa=l(17873),sa=function(){var b=(0,d.useState)(!1),h=f()(b,2),i=h[0],I=h[1],t=(0,d.useState)(!1),s=f()(t,2),w=s[0],N=s[1],P=(0,d.useState)((0,e.jsx)(e.Fragment,{})),L=f()(P,2),D=L[0],S=L[1],F=(0,d.useState)(""),T=f()(F,2),U=T[0],k=T[1],R=(0,d.useState)(1e3),B=f()(R,2),Y=B[0],O=B[1],x=a.Z.useForm(),c=f()(x,1),V=c[0],r=ue.ZP.useNotification(),xe=f()(r,2),ee=xe[0],me=xe[1],je=(0,d.useState)(!1),u=f()(je,2),Ze=u[0],W=u[1],j=(0,se.useIntl)(),ve=(0,d.useRef)(),ae=function(){S((0,e.jsx)(e.Fragment,{})),I(!1),N(!1)},ie=function(o,n,Z){V.resetFields(),k(o),S(n),O(Z),I(!0)},Ie=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(H.ZP,{onClick:ae,children:j.formatMessage({id:"pages.cancel"})},"back"),(0,e.jsx)(H.ZP,{type:"primary",loading:Ze,onClick:function(){return V.submit()},children:j.formatMessage({id:"pages.submit"})},"submit")]}),q=function(){var o;ae(),(o=ve.current)===null||o===void 0||o.reload()},K=function(){var p=G()(C()().mark(function o(n){var Z,E;return C()().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return n.subChannels||(n.subChannels=[]),typeof n.subChannels=="string"&&(n.subChannels=n.subChannels.split(` -`)),W(!0),oe.next=5,(0,X.o1)(n);case 5:Z=oe.sent,W(!1),Z.success?(E=ge()(ge()({},n),{},{id:"",userToken:"",botToken:"",subChannels:[],remark:"",channelId:"",privateChannelId:"",nijiBotChannelId:"",guildId:""}),localStorage.setItem("account_cache",JSON.stringify(E)),ee.success({message:"success",description:Z.message}),ae(),q()):ee.error({message:"error",description:Z.message});case 8:case"end":return oe.stop()}},o)}));return function(n){return p.apply(this,arguments)}}(),g=function(){var p=G()(C()().mark(function o(n){var Z;return C()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return n.subChannels||(n.subChannels=[]),typeof n.subChannels=="string"&&(n.subChannels=n.subChannels.split(` -`)),W(!0),$.next=5,(0,X.MS)(n.id,n);case 5:Z=$.sent,Z.success?(ee.success({message:"success",description:Z.message}),ae(),q(),W(!1)):ee.error({message:"error",description:Z.message});case 7:case"end":return $.stop()}},o)}));return function(n){return p.apply(this,arguments)}}(),z=function(){var p=G()(C()().mark(function o(n){var Z;return C()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return n.subChannels||(n.subChannels=[]),typeof n.subChannels=="string"&&(n.subChannels=n.subChannels.split(` -`)),W(!0),$.next=5,(0,X.Vx)(n.id,n);case 5:Z=$.sent,Z.success?ee.success({message:"success",description:Z.message}):ee.error({message:"error",description:Z.message}),ae(),q(),W(!1);case 10:case"end":return $.stop()}},o)}));return function(n){return p.apply(this,arguments)}}(),Q=function(){var p=G()(C()().mark(function o(){return C()().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:W(!0),ae(),q(),W(!1);case 4:case"end":return Z.stop()}},o)}));return function(){return p.apply(this,arguments)}}(),ne=[{title:j.formatMessage({id:"pages.account.guildId"}),dataIndex:"guildId",width:200,align:"center",sorter:!0,render:function(o,n){return(0,e.jsx)("a",{onClick:function(){N(!0),ie(j.formatMessage({id:"pages.account.info"})+" - "+n.id,(0,e.jsx)($e,{record:n,onSuccess:q}),1100)},children:o})}},{title:j.formatMessage({id:"pages.account.channelId"}),dataIndex:"channelId",align:"center",width:200,sorter:!0},{title:"".concat(j.formatMessage({id:"pages.account.status"})),dataIndex:"enable",width:200,align:"center",sorter:!0,request:function(){var p=G()(C()().mark(function n(){return C()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",[{label:j.formatMessage({id:"pages.enable"}),value:!0},{label:j.formatMessage({id:"pages.disable"}),value:!1}]);case 1:case"end":return E.stop()}},n)}));function o(){return p.apply(this,arguments)}return o}(),render:function(o,n){var Z=o?"green":"volcano",E=o?j.formatMessage({id:"pages.enable"}):j.formatMessage({id:"pages.disable"});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(le.Z,{color:Z,children:E}),n.lock&&(0,e.jsx)(le.Z,{icon:(0,e.jsx)(Xe.Z,{}),color:"warning",children:(0,e.jsx)(de.Z,{title:j.formatMessage({id:"pages.account.lockmsg"}),children:j.formatMessage({id:"pages.account.lock"})})}),o&&!n.running&&!n.lock&&(0,e.jsx)(le.Z,{icon:(0,e.jsx)(Me.Z,{}),color:"error",children:j.formatMessage({id:"pages.account.notRunning"})}),(n==null?void 0:n.runningCount)>0&&(0,e.jsx)(le.Z,{icon:(0,e.jsx)(Me.Z,{spin:!0}),color:"cyan",children:(0,e.jsx)(de.Z,{title:j.formatMessage({id:"pages.account.runningCount"})+" "+n.runningCount,children:(n==null?void 0:n.runningCount)||0})}),(n==null?void 0:n.queueCount)>0&&(0,e.jsx)(le.Z,{icon:(0,e.jsx)(Ge.Z,{}),color:"processing",children:(0,e.jsx)(de.Z,{title:j.formatMessage({id:"pages.account.queueCount"})+" "+n.queueCount,children:n.queueCount||0})})]})}},{title:j.formatMessage({id:"pages.account.fastTimeRemaining"}),dataIndex:"fastTimeRemaining",ellipsis:!0,width:200,hideInSearch:!0,align:"center"},{title:j.formatMessage({id:"pages.account.renewDate"}),dataIndex:"renewDate",align:"center",width:160,hideInSearch:!0,render:function(o,n){return n.displays.renewDate}},{title:j.formatMessage({id:"pages.account.sponsor"}),dataIndex:"sponsor",ellipsis:!0,width:100,sorter:!0,render:function(o,n){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:n.sponsor||"-"}})}},{title:j.formatMessage({id:"pages.account.remark"}),dataIndex:"remark",ellipsis:!0,sorter:!0,width:150},{title:j.formatMessage({id:"pages.account.disabledReason"}),dataIndex:"disabledReason",ellipsis:!0,width:150,hideInSearch:!0},{title:j.formatMessage({id:"pages.account.dateCreated"}),dataIndex:"dateCreated",ellipsis:!0,width:140,sorter:!0,hideInSearch:!0,renderText:function(o,n){return ye()(o).format("YYYY-MM-DD HH:mm")}},{title:j.formatMessage({id:"pages.operation"}),dataIndex:"operation",width:220,key:"operation",fixed:"right",align:"center",hideInSearch:!0,render:function(o,n){return(0,e.jsxs)(re.Z,{children:[n.lock&&(0,e.jsx)(H.ZP,{icon:(0,e.jsx)(Ke.Z,{}),type:"dashed",onClick:function(){return ie(j.formatMessage({id:"pages.account.cfmodal"}),(0,e.jsx)(Le,{form:V,record:n,onSubmit:Q}),1e3)}},"Lock"),(0,e.jsx)(Be,{record:n,onSuccess:q}),(0,e.jsx)(de.Z,{title:j.formatMessage({id:"pages.account.updateAndReconnect"}),children:(0,e.jsx)(H.ZP,{type:"primary",icon:(0,e.jsx)(Qe.Z,{}),onClick:function(){ie(j.formatMessage({id:"pages.account.updateAndReconnect"}),(0,e.jsx)(Ye,{r:Math.random(),form:V,record:n,onSubmit:g}),1600)}},"EditAndReconnect")}),(0,e.jsx)(H.ZP,{icon:(0,e.jsx)(qe.Z,{}),onClick:function(){return ie(j.formatMessage({id:"pages.account.update"}),(0,e.jsx)(We,{r:Math.random(),form:V,record:n,onSubmit:z}),1e3)}},"Update"),(0,e.jsx)(Fe,{record:n,onSuccess:q})]})}}];return(0,d.useEffect)(function(){},[]),(0,e.jsxs)(ea._z,{children:[me,(0,e.jsx)(J.Z,{children:(0,e.jsx)(aa.Z,{columns:ne,scroll:{x:1e3},search:{defaultCollapsed:!0},pagination:{pageSize:10,showQuickJumper:!1,showSizeChanger:!1},rowKey:"id",actionRef:ve,toolBarRender:function(){return[(0,e.jsx)(H.ZP,{type:"primary",icon:(0,e.jsx)(_e.Z,{}),onClick:function(){ie(j.formatMessage({id:"pages.account.add"}),(0,e.jsx)(ze,{r:Math.random(),form:V,onSubmit:K}),1600)},children:j.formatMessage({id:"pages.add"})},"primary")]},request:function(){var p=G()(C()().mark(function o(n,Z){var E,$;return C()().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return E=Object.keys(Z),ce.next=3,(0,X.fH)(ge()(ge()({},n),{},{pageNumber:n.current-1}),E.length>0?E[0]:"",(E.length>0?Z[E[0]]:"")=="descend");case 3:return $=ce.sent,ce.abrupt("return",{data:$.list,total:$.pagination.total,success:!0});case 5:case"end":return ce.stop()}},o)}));return function(o,n){return p.apply(this,arguments)}}()})}),(0,e.jsx)(he.Z,{title:U,open:i,onCancel:ae,footer:w?null:Ie,width:Y,children:D})]})},na=sa}}]); +"use strict";(self.webpackChunkmidjourney_proxy_admin=self.webpackChunkmidjourney_proxy_admin||[]).push([[201],{2891:function(ta,Se,l){l.r(Se),l.d(Se,{default:function(){return na}});var we=l(15009),C=l.n(we),Te=l(97857),ge=l.n(Te),ke=l(99289),G=l.n(ke),Re=l(5574),h=l.n(Re),X=l(66927),ue=l(16568),Ce=l(86738),H=l(14726),Ae=l(82061),d=l(67294),se=l(80854),e=l(85893),Oe=function(b){var x=b.record,i=b.onSuccess,I=(0,d.useState)(!1),t=h()(I,2),s=t[0],w=t[1],N=(0,d.useState)(!1),P=h()(N,2),L=P[0],D=P[1],S=ue.ZP.useNotification(),F=h()(S,2),T=F[0],U=F[1],k=(0,se.useIntl)(),R=function(){w(!0)},B=function(){var O=G()(C()().mark(function Z(){var c;return C()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return D(!0),r.prev=1,r.next=4,(0,X.tm)(x.id);case 4:c=r.sent,w(!1),c.success?(T.success({message:"success",description:k.formatMessage({id:"pages.account.deleteSuccess"})}),i()):T.error({message:"error",description:c.message}),r.next=12;break;case 9:r.prev=9,r.t0=r.catch(1),console.error(r.t0);case 12:return r.prev=12,D(!1),r.finish(12);case 15:case"end":return r.stop()}},Z,null,[[1,9,12,15]])}));return function(){return O.apply(this,arguments)}}(),Y=function(){w(!1)};return(0,e.jsxs)(Ce.Z,{title:k.formatMessage({id:"pages.account.delete"}),description:k.formatMessage({id:"pages.account.deleteTitle"}),open:s,onConfirm:B,okButtonProps:{loading:L},onCancel:Y,children:[U,(0,e.jsx)(H.ZP,{danger:!0,icon:(0,e.jsx)(Ae.Z,{}),onClick:R})]})},Fe=Oe,Me=l(98165),De=function(b){var x=b.record,i=b.onSuccess,I=(0,d.useState)(!1),t=h()(I,2),s=t[0],w=t[1],N=(0,d.useState)(!1),P=h()(N,2),L=P[0],D=P[1],S=ue.ZP.useNotification(),F=h()(S,2),T=F[0],U=F[1],k=(0,se.useIntl)(),R=function(){w(!0)},B=function(){var O=G()(C()().mark(function Z(){var c;return C()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return D(!0),r.prev=1,r.next=4,(0,X.Je)(x.id);case 4:c=r.sent,console.log("resss",c),w(!1),c.success?(T.success({message:"success",description:k.formatMessage({id:"pages.account.syncSuccess"})}),i()):(T.error({message:"error",description:c.message}),i()),r.next=13;break;case 10:r.prev=10,r.t0=r.catch(1),console.error(r.t0);case 13:return r.prev=13,D(!1),r.finish(13);case 16:case"end":return r.stop()}},Z,null,[[1,10,13,16]])}));return function(){return O.apply(this,arguments)}}(),Y=function(){w(!1)};return(0,e.jsxs)(Ce.Z,{title:k.formatMessage({id:"pages.account.sync"}),description:k.formatMessage({id:"pages.account.syncTitle"}),open:s,onConfirm:B,okButtonProps:{loading:L},onCancel:Y,children:[U,(0,e.jsx)(H.ZP,{icon:(0,e.jsx)(Me.Z,{}),onClick:R})]})},Be=De,a=l(53025),fe=l(71230),_=l(15746),J=l(4393),m=l(55102),v=l(72269),A=l(85886),y=l(37804),re=l(42075),he=l(17910),pe=l(38437),be=l(5785),Ne=function(b){var x=b.form,i=b.onSubmit,I=b.r,t=(0,se.useIntl)();(0,d.useEffect)(function(){var Z=localStorage.getItem("account_cache");if(Z)try{x.setFieldsValue(JSON.parse(Z))}catch(c){x.setFieldsValue({userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36",coreSize:3,queueSize:10,timeoutMinutes:5})}else x.setFieldsValue({userAgent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36",coreSize:3,queueSize:10,timeoutMinutes:5})},[I]);var s=(0,d.useState)([]),w=h()(s,2),N=w[0],P=w[1];(0,d.useEffect)(function(){(0,X.fl)().then(function(Z){Z.success&&P(Z.data)})},[]);var L=(0,d.useState)(!1),D=h()(L,2),S=D[0],F=D[1],T=(0,d.useState)(""),U=h()(T,2),k=U[0],R=U[1],B=function(){F(!0)},Y=function(){x.setFieldsValue({subChannels:k.split(` +`)}),F(!1)},O=function(){F(!1)};return(0,e.jsxs)(a.Z,{form:x,labelAlign:"left",layout:"horizontal",labelCol:{span:8},wrapperCol:{span:16},onFinish:i,children:[(0,e.jsxs)(fe.Z,{gutter:16,children:[(0,e.jsx)(_.Z,{span:8,children:(0,e.jsxs)(J.Z,{type:"inner",title:t.formatMessage({id:"pages.account.info"}),children:[(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.guildId"}),name:"guildId",rules:[{required:!0}],children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.channelId"}),name:"channelId",rules:[{required:!0}],children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.userToken"}),name:"userToken",rules:[{required:!0}],children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.botToken"}),name:"botToken",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:"User Agent",name:"userAgent",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.enable"}),name:"enable",valuePropName:"checked",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.enableFastToRelax"}),name:"enableFastToRelax",valuePropName:"checked",tooltip:t.formatMessage({id:"pages.account.enableFastToRelaxTips"}),children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.enableRelaxToFast"}),name:"enableRelaxToFast",valuePropName:"checked",tooltip:t.formatMessage({id:"pages.account.enableRelaxToFastTips"}),children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.remixAutoSubmit"}),name:"remixAutoSubmit",valuePropName:"checked",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.mode"}),name:"mode",children:(0,e.jsxs)(A.Z,{allowClear:!0,children:[(0,e.jsx)(A.Z.Option,{value:"RELAX",children:"RELAX"}),(0,e.jsx)(A.Z.Option,{value:"FAST",children:"FAST"}),(0,e.jsx)(A.Z.Option,{value:"TURBO",children:"TURBO"})]})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.allowModes"}),name:"allowModes",children:(0,e.jsxs)(A.Z,{allowClear:!0,mode:"multiple",children:[(0,e.jsx)(A.Z.Option,{value:"RELAX",children:"RELAX"}),(0,e.jsx)(A.Z.Option,{value:"FAST",children:"FAST"}),(0,e.jsx)(A.Z.Option,{value:"TURBO",children:"TURBO"})]})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.enableAutoSetRelax"}),name:"enableAutoSetRelax",valuePropName:"checked",tooltip:t.formatMessage({id:"pages.account.enableAutoSetRelaxTips"}),children:(0,e.jsx)(v.Z,{})})]})}),(0,e.jsx)(_.Z,{span:8,children:(0,e.jsxs)(J.Z,{type:"inner",title:t.formatMessage({id:"pages.account.poolsize"}),children:[(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.coreSize"}),name:"coreSize",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.queueSize"}),name:"queueSize",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.maxQueueSize"}),name:"maxQueueSize",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.interval"}),name:"interval",children:(0,e.jsx)(y.Z,{min:1.2})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.intervalAfter"}),children:(0,e.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:(0,e.jsxs)(re.Z,{children:[(0,e.jsx)(a.Z.Item,{name:"afterIntervalMin",style:{margin:0},children:(0,e.jsx)(y.Z,{min:1.2,placeholder:"Min"})}),"~",(0,e.jsx)(a.Z.Item,{name:"afterIntervalMax",style:{margin:0},children:(0,e.jsx)(y.Z,{min:1.2,placeholder:"Max"})})]})})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.weight"}),name:"weight",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.enableMj"}),name:"enableMj",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.enableNiji"}),name:"enableNiji",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.isBlend"}),name:"isBlend",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.isDescribe"}),name:"isDescribe",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.isShorten"}),name:"isShorten",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.dayDrawLimit"}),name:"dayDrawLimit",children:(0,e.jsx)(y.Z,{min:-1})})]})}),(0,e.jsx)(_.Z,{span:8,children:(0,e.jsxs)(J.Z,{type:"inner",title:t.formatMessage({id:"pages.account.otherInfo"}),children:[(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.mjChannelId"}),name:"privateChannelId",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.nijiChannelId"}),name:"nijiBotChannelId",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.permanentInvitationLink"}),name:"permanentInvitationLink",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.isVerticalDomain"}),name:"isVerticalDomain",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.verticalDomainIds"}),name:"verticalDomainIds",children:(0,e.jsx)(A.Z,{options:N,allowClear:!0,mode:"multiple"})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.sort"}),name:"sort",children:(0,e.jsx)(y.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.timeoutMinutes"}),name:"timeoutMinutes",children:(0,e.jsx)(y.Z,{min:1,suffix:t.formatMessage({id:"pages.minutes"})})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.sponsor"}),name:"sponsor",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.remark"}),name:"remark",children:(0,e.jsx)(m.Z.TextArea,{autoSize:{minRows:1,maxRows:6}})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.workTime"}),name:"workTime",children:(0,e.jsx)(m.Z,{placeholder:"09:00-17:00, 18:00-22:00"})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.fishingTime"}),help:t.formatMessage({id:"pages.account.fishingTimeTips"}),name:"fishingTime",children:(0,e.jsx)(m.Z,{placeholder:"23:30-09:00, 00:00-10:00"})}),(0,e.jsx)(a.Z.Item,{label:t.formatMessage({id:"pages.account.subChannels"}),name:"subChannels",extra:(0,e.jsx)(H.ZP,{type:"primary",onClick:function(){R(x.getFieldValue("subChannels").join(` +`)),B()},icon:(0,e.jsx)(be.Z,{})}),children:(0,e.jsx)(m.Z.TextArea,{disabled:!0,autoSize:{minRows:1,maxRows:1}})})]})})]}),(0,e.jsxs)(he.Z,{title:t.formatMessage({id:"pages.account.subChannels"}),visible:S,onOk:Y,onCancel:O,width:960,children:[(0,e.jsx)("div",{children:(0,e.jsx)(pe.Z,{message:t.formatMessage({id:"pages.account.subChannelsHelp"}),type:"info",style:{marginBottom:"10px"}})}),(0,e.jsx)(m.Z.TextArea,{placeholder:"https://discord.com/channels/xxx/xxx",autoSize:{minRows:10,maxRows:24},style:{width:"100%"},value:k,onChange:function(c){R(c.target.value)}})]})]})},ze=Ne,Pe=function(b){var x=b.form,i=b.onSubmit,I=b.record,t=(0,se.useIntl)(),s=ue.ZP.useNotification(),w=h()(s,2),N=w[0],P=w[1],L=(0,d.useState)(),D=h()(L,2),S=D[0],F=D[1],T=(0,d.useState)(!1),U=h()(T,2),k=U[0],R=U[1];(0,d.useEffect)(function(){F(I)},[]);var B=function(){var O=G()(C()().mark(function Z(){var c;return C()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return R(!0),r.next=3,(0,X.qG)(I.id);case 3:c=r.sent,R(!1),c.success&&F(c.data);case 6:case"end":return r.stop()}},Z)}));return function(){return O.apply(this,arguments)}}(),Y=function(){var O=G()(C()().mark(function Z(){var c;return C()().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return R(!0),r.next=3,(0,X.eD)(I.id);case 3:c=r.sent,R(!1),c.success&&(N.success({message:"success",description:"Success"}),i(S));case 6:case"end":return r.stop()}},Z)}));return function(){return O.apply(this,arguments)}}();return(0,e.jsxs)(a.Z,{form:x,labelAlign:"left",layout:"horizontal",labelCol:{span:8},wrapperCol:{span:16},onFinish:i,children:[P,(0,e.jsx)(fe.Z,{gutter:16,children:(0,e.jsxs)(_.Z,{span:24,style:{padding:12},children:[S&&(0,e.jsx)("a",{target:"_blank",rel:"noreferrer",href:S==null?void 0:S.cfUrl,children:(S==null?void 0:S.cfUrl)||"-"}),(0,e.jsx)("br",{}),(0,e.jsxs)(re.Z,{style:{marginTop:12},children:[(0,e.jsx)(H.ZP,{onClick:B,loading:k,type:"default",children:t.formatMessage({id:"pages.account.cfRefresh"})}),(0,e.jsx)(H.ZP,{onClick:Y,loading:k,type:"primary",children:t.formatMessage({id:"pages.account.cfok"})})]})]})})]})},Le=Pe,le=l(66309),de=l(83062),M=l(26412),Ue=l(27484),ye=l.n(Ue),Ee=A.Z.Option,Ve=function(b){var x,i=b.record,I=b.onSuccess,t=ue.ZP.useNotification(),s=h()(t,2),w=s[0],N=s[1],P=(0,d.useState)(""),L=h()(P,2),D=L[0],S=L[1],F=(0,d.useState)([]),T=h()(F,2),U=T[0],k=T[1],R=(0,d.useState)([]),B=h()(R,2),Y=B[0],O=B[1],Z=(0,d.useState)(!1),c=h()(Z,2),V=c[0],r=c[1],xe=(0,d.useState)(""),ee=h()(xe,2),me=ee[0],je=ee[1],u=(0,se.useIntl)();(0,d.useEffect)(function(){S(i.version),k(i.buttons),O(i.nijiButtons)},[i]);var Ze=function(g,z,Q){var ne=g?"green":"volcano",p=g?z:Q;return(0,e.jsx)(le.Z,{color:ne,children:p})},W=function(g){return!g||g.length<25?g:(0,e.jsx)(de.Z,{title:g,children:g.substring(0,25)+"..."})},j=function(g){return ye()(g).format("YYYY-MM-DD HH:mm")},ve=function(){var g;return(g=i.versionSelector)===null||g===void 0?void 0:g.map(function(z){return(0,e.jsxs)(Ee,{value:z.customId,children:[z.emoji," ",z.label]},z.customId)})},ae=function(){return U.map(function(g){return(0,e.jsxs)(H.ZP,{ghost:!0,style:{backgroundColor:g.style==3?"#258146":"rgb(131 133 142)"},onClick:function(){q("MID_JOURNEY",g.customId)},loading:me=="MID_JOURNEY:"+g.customId,children:[g.emoji," ",g.label]},"MID_JOURNEY:"+g.customId)})},ie=function(){return Y.map(function(g){return(0,e.jsxs)(H.ZP,{ghost:!0,style:{backgroundColor:g.style==3?"#258146":"rgb(131 133 142)"},onClick:function(){q("NIJI_JOURNEY",g.customId)},loading:me=="NIJI_JOURNEY:"+g.customId,children:[g.emoji," ",g.label]},"NIJI_JOURNEY:"+g.customId)})},Ie=function(){var K=G()(C()().mark(function g(z){var Q;return C()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return S(z),r(!0),p.next=4,(0,X.p3)(i.id,z);case 4:Q=p.sent,Q.success?(r(!1),w.success({message:"success",description:u.formatMessage({id:"pages.account.mjVersionSuccess"})}),I()):(S(i.version),r(!1),w.error({message:"error",description:Q.message}));case 6:case"end":return p.stop()}},g)}));return function(z){return K.apply(this,arguments)}}(),q=function(){var K=G()(C()().mark(function g(z,Q){var ne;return C()().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(me===""){o.next=2;break}return o.abrupt("return");case 2:return je(z+":"+Q),o.next=5,(0,X.wO)(i.id,z,Q);case 5:ne=o.sent,je(""),ne.success?I():w.error({message:"error",description:ne.message});case 8:case"end":return o.stop()}},g)}));return function(z,Q){return K.apply(this,arguments)}}();return(0,e.jsxs)(e.Fragment,{children:[N,(0,e.jsx)(J.Z,{type:"inner",title:u.formatMessage({id:"pages.account.info"}),style:{margin:"5px"},children:(0,e.jsxs)(M.Z,{column:3,children:[(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.guildId"}),children:i.guildId}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.channelId"}),children:i.channelId}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.userToken"}),children:W(i.userToken)}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.botToken"}),children:W(i.botToken)}),(0,e.jsxs)(M.Z.Item,{label:"User Agent",children:[W(i.userAgent)," "]}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.remixAutoSubmit"}),children:Ze(i.remixAutoSubmit,u.formatMessage({id:"pages.yes"}),u.formatMessage({id:"pages.no"}))}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.mjChannelId"}),children:i.privateChannelId}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.nijiChannelId"}),children:i.nijiBotChannelId})]})}),(0,e.jsx)(J.Z,{type:"inner",title:u.formatMessage({id:"pages.account.basicInfo"}),style:{margin:"5px"},children:(0,e.jsxs)(M.Z,{column:3,children:[(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.status"}),children:Ze(i.enable,u.formatMessage({id:"pages.enable"}),u.formatMessage({id:"pages.disable"}))}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.mjMode"}),children:i.displays.mode}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.nijiMode"}),children:i.displays.nijiMode}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.subscribePlan"}),children:i.displays.subscribePlan}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.billedWay"}),children:i.displays.billedWay}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.renewDate"}),children:i.displays.renewDate}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.fastTimeRemaining"}),children:i.fastTimeRemaining}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.relaxedUsage"}),children:i.relaxedUsage}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.fastUsage"}),children:i.fastUsage}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.turboUsage"}),children:i.turboUsage}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.lifetimeUsage"}),children:i.lifetimeUsage})]})}),(0,e.jsx)(J.Z,{type:"inner",title:u.formatMessage({id:"pages.account.otherInfo"}),style:{margin:"5px"},children:(0,e.jsxs)(M.Z,{column:3,children:[(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.coreSize"}),children:i.coreSize}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.queueSize"}),children:i.queueSize}),(0,e.jsxs)(M.Z.Item,{label:u.formatMessage({id:"pages.account.timeoutMinutes"}),children:[i.timeoutMinutes," ",u.formatMessage({id:"pages.minutes"})]}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.weight"}),children:i.weight}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.dateCreated"}),children:j(i.dateCreated)}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.remark"}),children:W(i.remark)}),(0,e.jsx)(M.Z.Item,{label:u.formatMessage({id:"pages.account.disabledReason"}),children:W(i.disabledReason)})]})}),(0,e.jsxs)(J.Z,{type:"inner",title:u.formatMessage({id:"pages.account.mjSettings"}),style:{margin:"5px"},children:[(0,e.jsx)(A.Z,{style:{width:"35%"},placeholder:(x=i.versionSelector)===null||x===void 0?void 0:x.placeholder,value:D,onChange:Ie,loading:V,children:ve()}),(0,e.jsx)(re.Z,{wrap:!0,style:{marginTop:"5px"},children:ae()})]}),(0,e.jsx)(J.Z,{type:"inner",title:u.formatMessage({id:"pages.account.nijiSettings"}),style:{margin:"5px"},children:(0,e.jsx)(re.Z,{wrap:!0,style:{marginTop:"5px"},children:ie()})})]})},$e=Ve,He=function(b){var x=b.form,i=b.onSubmit,I=b.record,t=b.r,s=(0,se.useIntl)();(0,d.useEffect)(function(){x.setFieldsValue(I)},[]),(0,d.useEffect)(function(){x.setFieldsValue(I)},[t]);var w=(0,d.useState)([]),N=h()(w,2),P=N[0],L=N[1];(0,d.useEffect)(function(){(0,X.fl)().then(function(c){c.success&&L(c.data)})},[]);var D=(0,d.useState)(!1),S=h()(D,2),F=S[0],T=S[1],U=(0,d.useState)(""),k=h()(U,2),R=k[0],B=k[1],Y=function(){T(!0)},O=function(){I.subChannels=R.split(` +`),x.setFieldsValue({subChannels:R.split(` +`)}),T(!1)},Z=function(){T(!1)};return(0,e.jsxs)(a.Z,{form:x,labelAlign:"left",layout:"horizontal",labelCol:{span:8},wrapperCol:{span:16},onFinish:i,children:[(0,e.jsxs)(fe.Z,{gutter:16,children:[(0,e.jsx)(_.Z,{span:8,children:(0,e.jsxs)(J.Z,{type:"inner",title:s.formatMessage({id:"pages.account.info"}),children:[(0,e.jsx)(a.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.guildId"}),name:"guildId",rules:[{required:!0}],children:(0,e.jsx)(m.Z,{disabled:!0})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.channelId"}),name:"channelId",rules:[{required:!0}],children:(0,e.jsx)(m.Z,{disabled:!0})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.userToken"}),name:"userToken",rules:[{required:!0}],children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.botToken"}),name:"botToken",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:"User Agent",name:"userAgent",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.enable"}),name:"enable",valuePropName:"checked",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.enableFastToRelax"}),name:"enableFastToRelax",valuePropName:"checked",tooltip:s.formatMessage({id:"pages.account.enableFastToRelaxTips"}),children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.enableRelaxToFast"}),name:"enableRelaxToFast",valuePropName:"checked",tooltip:s.formatMessage({id:"pages.account.enableRelaxToFastTips"}),children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.remixAutoSubmit"}),name:"remixAutoSubmit",valuePropName:"checked",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.mode"}),name:"mode",children:(0,e.jsxs)(A.Z,{allowClear:!0,children:[(0,e.jsx)(A.Z.Option,{value:"RELAX",children:"RELAX"}),(0,e.jsx)(A.Z.Option,{value:"FAST",children:"FAST"}),(0,e.jsx)(A.Z.Option,{value:"TURBO",children:"TURBO"})]})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.allowModes"}),name:"allowModes",tooltip:"\u5982\u679C\u7528\u6237\u6307\u5B9A\u6A21\u5F0F\u6216\u6DFB\u52A0\u4E86\u81EA\u5B9A\u4E49\u53C2\u6570\u4F8B\u5982 --fast\uFF0C\u4F46\u662F\u8D26\u53F7\u4E0D\u5141\u8BB8 FAST\uFF0C\u5219\u81EA\u52A8\u79FB\u9664\u6B64\u53C2\u6570",children:(0,e.jsxs)(A.Z,{allowClear:!0,mode:"multiple",children:[(0,e.jsx)(A.Z.Option,{value:"RELAX",children:"RELAX"}),(0,e.jsx)(A.Z.Option,{value:"FAST",children:"FAST"}),(0,e.jsx)(A.Z.Option,{value:"TURBO",children:"TURBO"})]})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.enableAutoSetRelax"}),name:"enableAutoSetRelax",valuePropName:"checked",tooltip:s.formatMessage({id:"pages.account.enableAutoSetRelaxTips"}),children:(0,e.jsx)(v.Z,{})})]})}),(0,e.jsx)(_.Z,{span:8,children:(0,e.jsxs)(J.Z,{type:"inner",title:s.formatMessage({id:"pages.account.poolsize"}),children:[(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.coreSize"}),name:"coreSize",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.queueSize"}),name:"queueSize",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.maxQueueSize"}),name:"maxQueueSize",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.interval"}),name:"interval",children:(0,e.jsx)(y.Z,{min:1.2})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.intervalAfter"}),children:(0,e.jsx)("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"},children:(0,e.jsxs)(re.Z,{children:[(0,e.jsx)(a.Z.Item,{name:"afterIntervalMin",style:{margin:0},children:(0,e.jsx)(y.Z,{min:1.2,placeholder:"Min"})}),"~",(0,e.jsx)(a.Z.Item,{name:"afterIntervalMax",style:{margin:0},children:(0,e.jsx)(y.Z,{min:1.2,placeholder:"Max"})})]})})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.weight"}),name:"weight",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.enableMj"}),name:"enableMj",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.enableNiji"}),name:"enableNiji",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.isBlend"}),name:"isBlend",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.isDescribe"}),name:"isDescribe",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.isShorten"}),name:"isShorten",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.dayDrawLimit"}),name:"dayDrawLimit",extra:I.dayDrawCount>0&&(0,e.jsxs)("span",{children:[s.formatMessage({id:"pages.account.dayDrawCount"})," ",I.dayDrawCount]}),children:(0,e.jsx)(y.Z,{min:-1})})]})}),(0,e.jsx)(_.Z,{span:8,children:(0,e.jsxs)(J.Z,{type:"inner",title:s.formatMessage({id:"pages.account.otherInfo"}),children:[(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.mjChannelId"}),name:"privateChannelId",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.nijiChannelId"}),name:"nijiBotChannelId",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.permanentInvitationLink"}),name:"permanentInvitationLink",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.isVerticalDomain"}),name:"isVerticalDomain",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.verticalDomainIds"}),name:"verticalDomainIds",children:(0,e.jsx)(A.Z,{options:P,allowClear:!0,mode:"multiple"})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.sort"}),name:"sort",children:(0,e.jsx)(y.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.timeoutMinutes"}),name:"timeoutMinutes",children:(0,e.jsx)(y.Z,{min:1,suffix:s.formatMessage({id:"pages.minutes"})})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.sponsor"}),name:"sponsor",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.remark"}),name:"remark",children:(0,e.jsx)(m.Z.TextArea,{autoSize:{minRows:1,maxRows:6}})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.workTime"}),name:"workTime",children:(0,e.jsx)(m.Z,{placeholder:"09:00-17:00, 18:00-22:00"})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.fishingTime"}),help:s.formatMessage({id:"pages.account.fishingTimeTips"}),name:"fishingTime",children:(0,e.jsx)(m.Z,{placeholder:"23:30-09:00, 00:00-10:00"})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.subChannels"}),name:"subChannels",extra:(0,e.jsx)(H.ZP,{type:"primary",onClick:function(){B(x.getFieldValue("subChannels").join(` +`)),Y()},icon:(0,e.jsx)(be.Z,{})}),children:(0,e.jsx)(m.Z.TextArea,{disabled:!0,autoSize:{minRows:1,maxRows:1}})})]})})]}),(0,e.jsxs)(he.Z,{title:s.formatMessage({id:"pages.account.subChannels"}),visible:F,onOk:O,onCancel:Z,width:960,children:[(0,e.jsx)("div",{children:(0,e.jsx)(pe.Z,{message:s.formatMessage({id:"pages.account.subChannelsHelp"}),type:"info",style:{marginBottom:"10px"}})}),(0,e.jsx)(m.Z.TextArea,{placeholder:"https://discord.com/channels/xxx/xxx",autoSize:{minRows:10,maxRows:24},style:{width:"100%"},value:R,onChange:function(V){B(V.target.value)}})]}),(0,e.jsx)(pe.Z,{message:s.formatMessage({id:"pages.account.updateNotice"}),type:"warning",style:{marginTop:"10px"}})]})},Ye=He,Je=function(b){var x=b.form,i=b.onSubmit,I=b.record,t=b.r,s=(0,se.useIntl)();(0,d.useEffect)(function(){x.setFieldsValue(I)},[]),(0,d.useEffect)(function(){x.setFieldsValue(I)},[t]);var w=(0,d.useState)([]),N=h()(w,2),P=N[0],L=N[1];(0,d.useEffect)(function(){(0,X.fl)().then(function(c){c.success&&L(c.data)})},[]);var D=(0,d.useState)(!1),S=h()(D,2),F=S[0],T=S[1],U=(0,d.useState)(""),k=h()(U,2),R=k[0],B=k[1],Y=function(){T(!0)},O=function(){I.subChannels=R.split(` +`),x.setFieldsValue({subChannels:R.split(` +`)}),T(!1)},Z=function(){T(!1)};return(0,e.jsxs)(a.Z,{form:x,labelAlign:"left",layout:"horizontal",labelCol:{span:8},wrapperCol:{span:16},onFinish:i,children:[(0,e.jsxs)(fe.Z,{gutter:16,children:[(0,e.jsx)(_.Z,{span:12,children:(0,e.jsxs)(J.Z,{type:"inner",title:s.formatMessage({id:"pages.account.info"}),children:[(0,e.jsx)(a.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.mjChannelId"}),name:"privateChannelId",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.nijiChannelId"}),name:"nijiBotChannelId",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.remixAutoSubmit"}),name:"remixAutoSubmit",valuePropName:"checked",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.enableMj"}),name:"enableMj",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.enableNiji"}),name:"enableNiji",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.isBlend"}),name:"isBlend",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.isDescribe"}),name:"isDescribe",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.isShorten"}),name:"isShorten",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.dayDrawLimit"}),name:"dayDrawLimit",extra:I.dayDrawCount>0&&(0,e.jsxs)("span",{children:[s.formatMessage({id:"pages.account.dayDrawCount"})," ",I.dayDrawCount]}),children:(0,e.jsx)(y.Z,{min:-1})})]})}),(0,e.jsx)(_.Z,{span:12,children:(0,e.jsxs)(J.Z,{type:"inner",title:s.formatMessage({id:"pages.account.otherInfo"}),children:[(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.permanentInvitationLink"}),name:"permanentInvitationLink",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.isVerticalDomain"}),name:"isVerticalDomain",children:(0,e.jsx)(v.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.verticalDomainIds"}),name:"verticalDomainIds",children:(0,e.jsx)(A.Z,{options:P,allowClear:!0,mode:"multiple"})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.timeoutMinutes"}),name:"timeoutMinutes",children:(0,e.jsx)(y.Z,{min:1,suffix:s.formatMessage({id:"pages.minutes"})})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.weight"}),name:"weight",children:(0,e.jsx)(y.Z,{min:1})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.sponsor"}),name:"sponsor",children:(0,e.jsx)(m.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.remark"}),name:"remark",children:(0,e.jsx)(m.Z.TextArea,{autoSize:{minRows:1,maxRows:6}})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.sort"}),name:"sort",children:(0,e.jsx)(y.Z,{})}),(0,e.jsx)(a.Z.Item,{label:s.formatMessage({id:"pages.account.subChannels"}),name:"subChannels",extra:(0,e.jsx)(H.ZP,{type:"primary",onClick:function(){B(x.getFieldValue("subChannels").join(` +`)),Y()},icon:(0,e.jsx)(be.Z,{})}),children:(0,e.jsx)(m.Z.TextArea,{disabled:!0,autoSize:{minRows:1,maxRows:1}})})]})})]}),(0,e.jsxs)(he.Z,{title:s.formatMessage({id:"pages.account.subChannels"}),visible:F,onOk:O,onCancel:Z,width:960,children:[(0,e.jsx)("div",{children:(0,e.jsx)(pe.Z,{message:s.formatMessage({id:"pages.account.subChannelsHelp"}),type:"info",style:{marginBottom:"10px"}})}),(0,e.jsx)(m.Z.TextArea,{placeholder:"https://discord.com/channels/xxx/xxx",autoSize:{minRows:10,maxRows:24},style:{width:"100%"},value:R,onChange:function(V){B(V.target.value)}})]})]})},We=Je,Xe=l(94149),Ge=l(66212),Ke=l(3355),Qe=l(2830),qe=l(47389),_e=l(88360),ea=l(90930),aa=l(17873),sa=function(){var b=(0,d.useState)(!1),x=h()(b,2),i=x[0],I=x[1],t=(0,d.useState)(!1),s=h()(t,2),w=s[0],N=s[1],P=(0,d.useState)((0,e.jsx)(e.Fragment,{})),L=h()(P,2),D=L[0],S=L[1],F=(0,d.useState)(""),T=h()(F,2),U=T[0],k=T[1],R=(0,d.useState)(1e3),B=h()(R,2),Y=B[0],O=B[1],Z=a.Z.useForm(),c=h()(Z,1),V=c[0],r=ue.ZP.useNotification(),xe=h()(r,2),ee=xe[0],me=xe[1],je=(0,d.useState)(!1),u=h()(je,2),Ze=u[0],W=u[1],j=(0,se.useIntl)(),ve=(0,d.useRef)(),ae=function(){S((0,e.jsx)(e.Fragment,{})),I(!1),N(!1)},ie=function(o,n,f){V.resetFields(),k(o),S(n),O(f),I(!0)},Ie=(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(H.ZP,{onClick:ae,children:j.formatMessage({id:"pages.cancel"})},"back"),(0,e.jsx)(H.ZP,{type:"primary",loading:Ze,onClick:function(){return V.submit()},children:j.formatMessage({id:"pages.submit"})},"submit")]}),q=function(){var o;ae(),(o=ve.current)===null||o===void 0||o.reload()},K=function(){var p=G()(C()().mark(function o(n){var f,E;return C()().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return n.subChannels||(n.subChannels=[]),typeof n.subChannels=="string"&&(n.subChannels=n.subChannels.split(` +`)),W(!0),oe.next=5,(0,X.o1)(n);case 5:f=oe.sent,W(!1),f.success?(E=ge()(ge()({},n),{},{id:"",userToken:"",botToken:"",subChannels:[],remark:"",channelId:"",privateChannelId:"",nijiBotChannelId:"",guildId:""}),localStorage.setItem("account_cache",JSON.stringify(E)),ee.success({message:"success",description:f.message}),ae(),q()):ee.error({message:"error",description:f.message});case 8:case"end":return oe.stop()}},o)}));return function(n){return p.apply(this,arguments)}}(),g=function(){var p=G()(C()().mark(function o(n){var f;return C()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return n.subChannels||(n.subChannels=[]),typeof n.subChannels=="string"&&(n.subChannels=n.subChannels.split(` +`)),W(!0),$.next=5,(0,X.MS)(n.id,n);case 5:f=$.sent,f.success?(ee.success({message:"success",description:f.message}),ae(),q(),W(!1)):ee.error({message:"error",description:f.message});case 7:case"end":return $.stop()}},o)}));return function(n){return p.apply(this,arguments)}}(),z=function(){var p=G()(C()().mark(function o(n){var f;return C()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return n.subChannels||(n.subChannels=[]),typeof n.subChannels=="string"&&(n.subChannels=n.subChannels.split(` +`)),W(!0),$.next=5,(0,X.Vx)(n.id,n);case 5:f=$.sent,f.success?ee.success({message:"success",description:f.message}):ee.error({message:"error",description:f.message}),ae(),q(),W(!1);case 10:case"end":return $.stop()}},o)}));return function(n){return p.apply(this,arguments)}}(),Q=function(){var p=G()(C()().mark(function o(){return C()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:W(!0),ae(),q(),W(!1);case 4:case"end":return f.stop()}},o)}));return function(){return p.apply(this,arguments)}}(),ne=[{title:j.formatMessage({id:"pages.account.guildId"}),dataIndex:"guildId",width:200,align:"center",sorter:!0,render:function(o,n){return(0,e.jsx)("a",{onClick:function(){N(!0),ie(j.formatMessage({id:"pages.account.info"})+" - "+n.id,(0,e.jsx)($e,{record:n,onSuccess:q}),1100)},children:o})}},{title:j.formatMessage({id:"pages.account.channelId"}),dataIndex:"channelId",align:"center",width:200,sorter:!0},{title:"".concat(j.formatMessage({id:"pages.account.status"})),dataIndex:"enable",width:200,align:"center",sorter:!0,request:function(){var p=G()(C()().mark(function n(){return C()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.abrupt("return",[{label:j.formatMessage({id:"pages.enable"}),value:!0},{label:j.formatMessage({id:"pages.disable"}),value:!1}]);case 1:case"end":return E.stop()}},n)}));function o(){return p.apply(this,arguments)}return o}(),render:function(o,n){var f=o?"green":"volcano",E=o?j.formatMessage({id:"pages.enable"}):j.formatMessage({id:"pages.disable"});return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(le.Z,{color:f,children:E}),n.lock&&(0,e.jsx)(le.Z,{icon:(0,e.jsx)(Xe.Z,{}),color:"warning",children:(0,e.jsx)(de.Z,{title:j.formatMessage({id:"pages.account.lockmsg"}),children:j.formatMessage({id:"pages.account.lock"})})}),o&&!n.running&&!n.lock&&(0,e.jsx)(le.Z,{icon:(0,e.jsx)(Me.Z,{}),color:"error",children:j.formatMessage({id:"pages.account.notRunning"})}),(n==null?void 0:n.runningCount)>0&&(0,e.jsx)(le.Z,{icon:(0,e.jsx)(Me.Z,{spin:!0}),color:"cyan",children:(0,e.jsx)(de.Z,{title:j.formatMessage({id:"pages.account.runningCount"})+" "+n.runningCount,children:(n==null?void 0:n.runningCount)||0})}),(n==null?void 0:n.queueCount)>0&&(0,e.jsx)(le.Z,{icon:(0,e.jsx)(Ge.Z,{}),color:"processing",children:(0,e.jsx)(de.Z,{title:j.formatMessage({id:"pages.account.queueCount"})+" "+n.queueCount,children:n.queueCount||0})})]})}},{title:j.formatMessage({id:"pages.account.fastTimeRemaining"}),dataIndex:"fastTimeRemaining",ellipsis:!0,width:200,hideInSearch:!0,align:"center"},{title:j.formatMessage({id:"pages.account.allowModes"}),dataIndex:"allowModes",align:"center",width:160,hideInSearch:!0,render:function(o,n){var f;return((f=n.allowModes)===null||f===void 0?void 0:f.join("\u3001"))||"ALL"}},{title:j.formatMessage({id:"pages.account.renewDate"}),dataIndex:"renewDate",align:"center",width:160,hideInSearch:!0,render:function(o,n){return n.displays.renewDate}},{title:j.formatMessage({id:"pages.account.sponsor"}),dataIndex:"sponsor",ellipsis:!0,width:100,sorter:!0,render:function(o,n){return(0,e.jsx)("div",{dangerouslySetInnerHTML:{__html:n.sponsor||"-"}})}},{title:j.formatMessage({id:"pages.account.remark"}),dataIndex:"remark",ellipsis:!0,sorter:!0,width:150},{title:j.formatMessage({id:"pages.account.disabledReason"}),dataIndex:"disabledReason",ellipsis:!0,width:150,hideInSearch:!0},{title:j.formatMessage({id:"pages.account.dateCreated"}),dataIndex:"dateCreated",ellipsis:!0,width:140,sorter:!0,hideInSearch:!0,renderText:function(o,n){return ye()(o).format("YYYY-MM-DD HH:mm")}},{title:j.formatMessage({id:"pages.operation"}),dataIndex:"operation",width:220,key:"operation",fixed:"right",align:"center",hideInSearch:!0,render:function(o,n){return(0,e.jsxs)(re.Z,{children:[n.lock&&(0,e.jsx)(H.ZP,{icon:(0,e.jsx)(Ke.Z,{}),type:"dashed",onClick:function(){return ie(j.formatMessage({id:"pages.account.cfmodal"}),(0,e.jsx)(Le,{form:V,record:n,onSubmit:Q}),1e3)}},"Lock"),(0,e.jsx)(Be,{record:n,onSuccess:q}),(0,e.jsx)(de.Z,{title:j.formatMessage({id:"pages.account.updateAndReconnect"}),children:(0,e.jsx)(H.ZP,{type:"primary",icon:(0,e.jsx)(Qe.Z,{}),onClick:function(){ie(j.formatMessage({id:"pages.account.updateAndReconnect"}),(0,e.jsx)(Ye,{r:Math.random(),form:V,record:n,onSubmit:g}),1600)}},"EditAndReconnect")}),(0,e.jsx)(H.ZP,{icon:(0,e.jsx)(qe.Z,{}),onClick:function(){return ie(j.formatMessage({id:"pages.account.update"}),(0,e.jsx)(We,{r:Math.random(),form:V,record:n,onSubmit:z}),1e3)}},"Update"),(0,e.jsx)(Fe,{record:n,onSuccess:q})]})}}];return(0,d.useEffect)(function(){},[]),(0,e.jsxs)(ea._z,{children:[me,(0,e.jsx)(J.Z,{children:(0,e.jsx)(aa.Z,{columns:ne,scroll:{x:1e3},search:{defaultCollapsed:!0},pagination:{pageSize:10,showQuickJumper:!1,showSizeChanger:!1},rowKey:"id",actionRef:ve,toolBarRender:function(){return[(0,e.jsx)(H.ZP,{type:"primary",icon:(0,e.jsx)(_e.Z,{}),onClick:function(){ie(j.formatMessage({id:"pages.account.add"}),(0,e.jsx)(ze,{r:Math.random(),form:V,onSubmit:K}),1600)},children:j.formatMessage({id:"pages.add"})},"primary")]},request:function(){var p=G()(C()().mark(function o(n,f){var E,$;return C()().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return E=Object.keys(f),ce.next=3,(0,X.fH)(ge()(ge()({},n),{},{pageNumber:n.current-1}),E.length>0?E[0]:"",(E.length>0?f[E[0]]:"")=="descend");case 3:return $=ce.sent,ce.abrupt("return",{data:$.list,total:$.pagination.total,success:!0});case 5:case"end":return ce.stop()}},o)}));return function(o,n){return p.apply(this,arguments)}}()})}),(0,e.jsx)(he.Z,{title:U,open:i,onCancel:ae,footer:w?null:Ie,width:Y,children:D})]})},na=sa}}]); diff --git a/src/Midjourney.API/wwwroot/preload_helper.facfd61a.js b/src/Midjourney.API/wwwroot/preload_helper.655e76c4.js similarity index 97% rename from src/Midjourney.API/wwwroot/preload_helper.facfd61a.js rename to src/Midjourney.API/wwwroot/preload_helper.655e76c4.js index 826cbe44..21e668f9 100644 --- a/src/Midjourney.API/wwwroot/preload_helper.facfd61a.js +++ b/src/Midjourney.API/wwwroot/preload_helper.655e76c4.js @@ -1 +1 @@ -!function(){"use strict";var t="".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"midjourney-proxy-admin","b":"webpack","f":[["13.a5e18296.async.js",13],["76.b6cad541.async.js",76],["88.94364292.async.js",88],["89.ec4435d7.async.js",89],["102.03b5e643.async.js",102],["120.df777cb8.async.js",120],["134.b9c9b4c3.async.js",134],["p__Welcome.2dd3fb95.async.js",185],["p__AccountList__index.44e1e690.async.js",201],["214.90529540.async.js",214],["228.6c4a8a61.async.js",228],["t__plugin-layout__Layout.5012e1ab.chunk.css",301],["t__plugin-layout__Layout.d587937a.async.js",301],["347.8883054e.async.js",347],["p__User__Login__index.e806d681.async.js",366],["390.976f7083.async.js",390],["p__Task__List__index.df255f69.async.js",502],["p__DomainList__List__index.6576a5a9.async.js",523],["p__404.8182e601.async.js",571],["p__UserList__List__index.e1d60d51.async.js",579],["597.bf2b9d87.async.js",597],["p__BannedWordList__List__index.100ff179.async.js",636],["643.75e8a81d.async.js",643],["p__Probe__index.6a9ff373.chunk.css",780],["p__Probe__index.1e685089.async.js",780],["p__Draw__index.63774c9e.chunk.css",903],["p__Draw__index.078ce6ba.async.js",903],["905.52708afe.async.js",905],["910.6474b16f.async.js",910],["p__Setting__index.cc579be8.async.js",971]],"r":{"/*":[18,27],"/":[3,6,11,12,27],"/welcome":[6,7,10,3,11,12,27],"/account":[0,1,4,6,8,9,10,13,20,27,28,3,11,12],"/domain":[0,1,4,6,9,10,17,20,27,28,3,11,12],"/user-list":[0,1,4,6,9,10,19,20,27,28,3,11,12],"/task":[0,1,4,6,9,10,16,20,22,27,28,3,11,12],"/draw-test":[2,4,6,10,20,25,26,28,3,11,12,27],"/banned-word":[0,1,4,6,9,10,20,21,27,28,3,11,12],"/setting":[0,4,5,6,10,29,3,11,12,27],"/probe":[6,10,23,24,3,11,12,27],"/user/login":[0,1,4,6,14,20]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); \ No newline at end of file +!function(){"use strict";var t="".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"midjourney-proxy-admin","b":"webpack","f":[["13.a5e18296.async.js",13],["76.b6cad541.async.js",76],["88.94364292.async.js",88],["89.ec4435d7.async.js",89],["102.03b5e643.async.js",102],["120.df777cb8.async.js",120],["134.b9c9b4c3.async.js",134],["p__Welcome.2dd3fb95.async.js",185],["p__AccountList__index.7c0222b4.async.js",201],["214.90529540.async.js",214],["228.6c4a8a61.async.js",228],["t__plugin-layout__Layout.5012e1ab.chunk.css",301],["t__plugin-layout__Layout.d587937a.async.js",301],["347.8883054e.async.js",347],["p__User__Login__index.e806d681.async.js",366],["390.976f7083.async.js",390],["p__Task__List__index.df255f69.async.js",502],["p__DomainList__List__index.6576a5a9.async.js",523],["p__404.8182e601.async.js",571],["p__UserList__List__index.e1d60d51.async.js",579],["597.bf2b9d87.async.js",597],["p__BannedWordList__List__index.100ff179.async.js",636],["643.75e8a81d.async.js",643],["p__Probe__index.6a9ff373.chunk.css",780],["p__Probe__index.1e685089.async.js",780],["p__Draw__index.63774c9e.chunk.css",903],["p__Draw__index.078ce6ba.async.js",903],["905.52708afe.async.js",905],["910.6474b16f.async.js",910],["p__Setting__index.cc579be8.async.js",971]],"r":{"/*":[18,27],"/":[3,6,11,12,27],"/welcome":[6,7,10,3,11,12,27],"/account":[0,1,4,6,8,9,10,13,20,27,28,3,11,12],"/domain":[0,1,4,6,9,10,17,20,27,28,3,11,12],"/user-list":[0,1,4,6,9,10,19,20,27,28,3,11,12],"/task":[0,1,4,6,9,10,16,20,22,27,28,3,11,12],"/draw-test":[2,4,6,10,20,25,26,28,3,11,12,27],"/banned-word":[0,1,4,6,9,10,20,21,27,28,3,11,12],"/setting":[0,4,5,6,10,29,3,11,12,27],"/probe":[6,10,23,24,3,11,12,27],"/user/login":[0,1,4,6,14,20]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); \ No newline at end of file diff --git a/src/Midjourney.API/wwwroot/umi.8d92f439.js b/src/Midjourney.API/wwwroot/umi.4d84220b.js similarity index 99% rename from src/Midjourney.API/wwwroot/umi.8d92f439.js rename to src/Midjourney.API/wwwroot/umi.4d84220b.js index 2aee50b5..bd1ced21 100644 --- a/src/Midjourney.API/wwwroot/umi.8d92f439.js +++ b/src/Midjourney.API/wwwroot/umi.4d84220b.js @@ -392,7 +392,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,d=!0,v=!1;return{s:function(){l=l.call(a)},n:function(){var p=l.next();return d=p.done,p},e:function(p){v=!0,s=p},f:function(){try{d||l.return==null||l.return()}finally{if(v)throw s}}}}},18486:function(m,g,e){"use strict";e.d(g,{Z:function(){return c}});var t=e(61120),r=e(78814),a=e(71002),o=e(97326);function l(u,s){if(s&&((0,a.Z)(s)=="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(u)}function c(u){var s=(0,r.Z)();return function(){var d,v=(0,t.Z)(u);if(s){var y=(0,t.Z)(this).constructor;d=Reflect.construct(v,arguments,y)}else d=v.apply(this,arguments);return l(this,d)}}},4942:function(m,g,e){"use strict";e.d(g,{Z:function(){return r}});var t=e(83997);function r(a,o,l){return(o=(0,t.Z)(o))in a?Object.defineProperty(a,o,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[o]=l,a}},87462:function(m,g,e){"use strict";e.d(g,{Z:function(){return t}});function t(){return t=Object.assign?Object.assign.bind():function(r){for(var a=1;a=0)continue;l[c]=a[c]}return l}function r(a,o){if(a==null)return{};var l,c,u=t(a,o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(c=0;c=0||{}.propertyIsEnumerable.call(a,l)&&(u[l]=a[l])}return u}},74165:function(m,g,e){"use strict";e.d(g,{Z:function(){return r}});var t=e(71002);function r(){"use strict";r=function(){return o};var a,o={},l=Object.prototype,c=l.hasOwnProperty,u=Object.defineProperty||function($,M,A){$[M]=A.value},s=typeof Symbol=="function"?Symbol:{},d=s.iterator||"@@iterator",v=s.asyncIterator||"@@asyncIterator",y=s.toStringTag||"@@toStringTag";function p($,M,A){return Object.defineProperty($,M,{value:A,enumerable:!0,configurable:!0,writable:!0}),$[M]}try{p({},"")}catch($){p=function(A,Y,ge){return A[Y]=ge}}function f($,M,A,Y){var ge=M&&M.prototype instanceof j?M:j,fe=Object.create(ge.prototype),ae=new Z(Y||[]);return u(fe,"_invoke",{value:H($,A,ae)}),fe}function S($,M,A){try{return{type:"normal",arg:$.call(M,A)}}catch(Y){return{type:"throw",arg:Y}}}o.wrap=f;var x="suspendedStart",b="suspendedYield",C="executing",O="completed",P={};function j(){}function w(){}function I(){}var L={};p(L,d,function(){return this});var oe=Object.getPrototypeOf,Q=oe&&oe(oe(U([])));Q&&Q!==l&&c.call(Q,d)&&(L=Q);var ie=I.prototype=j.prototype=Object.create(L);function de($){["next","throw","return"].forEach(function(M){p($,M,function(A){return this._invoke(M,A)})})}function ce($,M){function A(ge,fe,ae,Pe){var J=S($[ge],$,fe);if(J.type!=="throw"){var be=J.arg,ve=be.value;return ve&&(0,t.Z)(ve)=="object"&&c.call(ve,"__await")?M.resolve(ve.__await).then(function($e){A("next",$e,ae,Pe)},function($e){A("throw",$e,ae,Pe)}):M.resolve(ve).then(function($e){be.value=$e,ae(be)},function($e){return A("throw",$e,ae,Pe)})}Pe(J.arg)}var Y;u(this,"_invoke",{value:function(fe,ae){function Pe(){return new M(function(J,be){A(fe,ae,J,be)})}return Y=Y?Y.then(Pe,Pe):Pe()}})}function H($,M,A){var Y=x;return function(ge,fe){if(Y===C)throw Error("Generator is already running");if(Y===O){if(ge==="throw")throw fe;return{value:a,done:!0}}for(A.method=ge,A.arg=fe;;){var ae=A.delegate;if(ae){var Pe=te(ae,A);if(Pe){if(Pe===P)continue;return Pe}}if(A.method==="next")A.sent=A._sent=A.arg;else if(A.method==="throw"){if(Y===x)throw Y=O,A.arg;A.dispatchException(A.arg)}else A.method==="return"&&A.abrupt("return",A.arg);Y=C;var J=S($,M,A);if(J.type==="normal"){if(Y=A.done?O:b,J.arg===P)continue;return{value:J.arg,done:A.done}}J.type==="throw"&&(Y=O,A.method="throw",A.arg=J.arg)}}}function te($,M){var A=M.method,Y=$.iterator[A];if(Y===a)return M.delegate=null,A==="throw"&&$.iterator.return&&(M.method="return",M.arg=a,te($,M),M.method==="throw")||A!=="return"&&(M.method="throw",M.arg=new TypeError("The iterator does not provide a '"+A+"' method")),P;var ge=S(Y,$.iterator,M.arg);if(ge.type==="throw")return M.method="throw",M.arg=ge.arg,M.delegate=null,P;var fe=ge.arg;return fe?fe.done?(M[$.resultName]=fe.value,M.next=$.nextLoc,M.method!=="return"&&(M.method="next",M.arg=a),M.delegate=null,P):fe:(M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,P)}function _($){var M={tryLoc:$[0]};1 in $&&(M.catchLoc=$[1]),2 in $&&(M.finallyLoc=$[2],M.afterLoc=$[3]),this.tryEntries.push(M)}function le($){var M=$.completion||{};M.type="normal",delete M.arg,$.completion=M}function Z($){this.tryEntries=[{tryLoc:"root"}],$.forEach(_,this),this.reset(!0)}function U($){if($||$===""){var M=$[d];if(M)return M.call($);if(typeof $.next=="function")return $;if(!isNaN($.length)){var A=-1,Y=function ge(){for(;++A<$.length;)if(c.call($,A))return ge.value=$[A],ge.done=!1,ge;return ge.value=a,ge.done=!0,ge};return Y.next=Y}}throw new TypeError((0,t.Z)($)+" is not iterable")}return w.prototype=I,u(ie,"constructor",{value:I,configurable:!0}),u(I,"constructor",{value:w,configurable:!0}),w.displayName=p(I,y,"GeneratorFunction"),o.isGeneratorFunction=function($){var M=typeof $=="function"&&$.constructor;return!!M&&(M===w||(M.displayName||M.name)==="GeneratorFunction")},o.mark=function($){return Object.setPrototypeOf?Object.setPrototypeOf($,I):($.__proto__=I,p($,y,"GeneratorFunction")),$.prototype=Object.create(ie),$},o.awrap=function($){return{__await:$}},de(ce.prototype),p(ce.prototype,v,function(){return this}),o.AsyncIterator=ce,o.async=function($,M,A,Y,ge){ge===void 0&&(ge=Promise);var fe=new ce(f($,M,A,Y),ge);return o.isGeneratorFunction(M)?fe:fe.next().then(function(ae){return ae.done?ae.value:fe.next()})},de(ie),p(ie,y,"Generator"),p(ie,d,function(){return this}),p(ie,"toString",function(){return"[object Generator]"}),o.keys=function($){var M=Object($),A=[];for(var Y in M)A.push(Y);return A.reverse(),function ge(){for(;A.length;){var fe=A.pop();if(fe in M)return ge.value=fe,ge.done=!1,ge}return ge.done=!0,ge}},o.values=U,Z.prototype={constructor:Z,reset:function(M){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(le),!M)for(var A in this)A.charAt(0)==="t"&&c.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=a)},stop:function(){this.done=!0;var M=this.tryEntries[0].completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function(M){if(this.done)throw M;var A=this;function Y(be,ve){return ae.type="throw",ae.arg=M,A.next=be,ve&&(A.method="next",A.arg=a),!!ve}for(var ge=this.tryEntries.length-1;ge>=0;--ge){var fe=this.tryEntries[ge],ae=fe.completion;if(fe.tryLoc==="root")return Y("end");if(fe.tryLoc<=this.prev){var Pe=c.call(fe,"catchLoc"),J=c.call(fe,"finallyLoc");if(Pe&&J){if(this.prev=0;--Y){var ge=this.tryEntries[Y];if(ge.tryLoc<=this.prev&&c.call(ge,"finallyLoc")&&this.prev=0;--A){var Y=this.tryEntries[A];if(Y.finallyLoc===M)return this.complete(Y.completion,Y.afterLoc),le(Y),P}},catch:function(M){for(var A=this.tryEntries.length-1;A>=0;--A){var Y=this.tryEntries[A];if(Y.tryLoc===M){var ge=Y.completion;if(ge.type==="throw"){var fe=ge.arg;le(Y)}return fe}}throw Error("illegal catch attempt")},delegateYield:function(M,A,Y){return this.delegate={iterator:U(M),resultName:A,nextLoc:Y},this.method==="next"&&(this.arg=a),P}},o}},89611:function(m,g,e){"use strict";e.d(g,{Z:function(){return t}});function t(r,a){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,l){return o.__proto__=l,o},t(r,a)}},97685:function(m,g,e){"use strict";e.d(g,{Z:function(){return l}});var t=e(83878);function r(c,u){var s=c==null?null:typeof Symbol!="undefined"&&c[Symbol.iterator]||c["@@iterator"];if(s!=null){var d,v,y,p,f=[],S=!0,x=!1;try{if(y=(s=s.call(c)).next,u===0){if(Object(s)!==s)return;S=!1}else for(;!(S=(d=y.call(s)).done)&&(f.push(d.value),f.length!==u);S=!0);}catch(b){x=!0,v=b}finally{try{if(!S&&s.return!=null&&(p=s.return(),Object(p)!==p))return}finally{if(x)throw v}}return f}}var a=e(40181),o=e(25267);function l(c,u){return(0,t.Z)(c)||r(c,u)||(0,a.Z)(c,u)||(0,o.Z)()}},84506:function(m,g,e){"use strict";e.d(g,{Z:function(){return l}});var t=e(83878),r=e(59199),a=e(40181),o=e(25267);function l(c){return(0,t.Z)(c)||(0,r.Z)(c)||(0,a.Z)(c)||(0,o.Z)()}},74902:function(m,g,e){"use strict";e.d(g,{Z:function(){return c}});var t=e(30907);function r(u){if(Array.isArray(u))return(0,t.Z)(u)}var a=e(59199),o=e(40181);function l(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(u){return r(u)||(0,a.Z)(u)||(0,o.Z)(u)||l()}},83997:function(m,g,e){"use strict";e.d(g,{Z:function(){return a}});var t=e(71002);function r(o,l){if((0,t.Z)(o)!="object"||!o)return o;var c=o[Symbol.toPrimitive];if(c!==void 0){var u=c.call(o,l||"default");if((0,t.Z)(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(o)}function a(o){var l=r(o,"string");return(0,t.Z)(l)=="symbol"?l:l+""}},71002:function(m,g,e){"use strict";e.d(g,{Z:function(){return t}});function t(r){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t(r)}},40181:function(m,g,e){"use strict";e.d(g,{Z:function(){return r}});var t=e(30907);function r(a,o){if(a){if(typeof a=="string")return(0,t.Z)(a,o);var l={}.toString.call(a).slice(8,-1);return l==="Object"&&a.constructor&&(l=a.constructor.name),l==="Map"||l==="Set"?Array.from(a):l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?(0,t.Z)(a,o):void 0}}},58096:function(m,g,e){"use strict";e.d(g,{Z:function(){return t}});function t(){return t=Object.assign?Object.assign.bind():function(r){for(var a=1;a=0)&&(l[u]=a[u]);return l}function r(a,o){if(a==null)return{};var l=t(a,o),c,u;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(u=0;u=0)&&Object.prototype.propertyIsEnumerable.call(a,c)&&(l[c]=a[c])}return l}},81050:function(m,g,e){"use strict";e.d(g,{Z:function(){return t}});function t(r,a){(a==null||a>r.length)&&(a=r.length);for(var o=0,l=Array(a);o{},o=a(),l=Object,c=Ne=>Ne===o,u=Ne=>typeof Ne=="function",s=(Ne,Me)=>Ds(Ds({},Ne),Me),d=Ne=>u(Ne.then),v=new WeakMap;let y=0;const p=Ne=>{const Me=typeof Ne,Ce=Ne&&Ne.constructor,Xe=Ce==Date;let Ve,_e;if(l(Ne)===Ne&&!Xe&&Ce!=RegExp){if(Ve=v.get(Ne),Ve)return Ve;if(Ve=++y+"~",v.set(Ne,Ve),Ce==Array){for(Ve="@",_e=0;_eC&&typeof window.requestAnimationFrame!=b,j=(Ne,Me)=>{const Ce=f.get(Ne);return[()=>!c(Me)&&Ne.get(Me)||S,Xe=>{if(!c(Me)){const Ve=Ne.get(Me);Me in x||(x[Me]=Ve),Ce[5](Me,s(Ve,Xe),Ve||S)}},Ce[6],()=>!c(Me)&&Me in x?x[Me]:!c(Me)&&Ne.get(Me)||S]};let w=!0;const I=()=>w,[L,oe]=C&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[a,a],Q=()=>{const Ne=O&&document.visibilityState;return c(Ne)||Ne!=="hidden"},ie=Ne=>(O&&document.addEventListener("visibilitychange",Ne),L("focus",Ne),()=>{O&&document.removeEventListener("visibilitychange",Ne),oe("focus",Ne)}),de=Ne=>{const Me=()=>{w=!0,Ne()},Ce=()=>{w=!1};return L("online",Me),L("offline",Ce),()=>{oe("online",Me),oe("offline",Ce)}},ce={isOnline:I,isVisible:Q},H={initFocus:ie,initReconnect:de},te=!t.useId,_=!C||"Deno"in window,le=Ne=>P()?window.requestAnimationFrame(Ne):setTimeout(Ne,1),Z=_?t.useEffect:t.useLayoutEffect,U=typeof navigator!="undefined"&&navigator.connection,$=!_&&U&&(["slow-2g","2g"].includes(U.effectiveType)||U.saveData),M=Ne=>{if(u(Ne))try{Ne=Ne()}catch(Ce){Ne=""}const Me=Ne;return Ne=typeof Ne=="string"?Ne:(Array.isArray(Ne)?Ne.length:Ne)?p(Ne):"",[Ne,Me]};let A=0;const Y=()=>++A,ge=0,fe=1,ae=2;var J={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:ge,MUTATE_EVENT:ae,RECONNECT_EVENT:fe};function be(...Ne){return vl(this,null,function*(){const[Me,Ce,Xe,Ve]=Ne,_e=s({populateCache:!0,throwOnError:!0},typeof Ve=="boolean"?{revalidate:Ve}:Ve||{});let ct=_e.populateCache;const dt=_e.rollbackOnError;let ut=_e.optimisticData;const Lt=nn=>typeof dt=="function"?dt(nn):dt!==!1,$t=_e.throwOnError;if(u(Ce)){const nn=Ce,Ye=[],it=Me.keys();for(const Ct of it)!/^\$(inf|sub)\$/.test(Ct)&&nn(Me.get(Ct)._k)&&Ye.push(Ct);return Promise.all(Ye.map(It))}return It(Ce);function It(nn){return vl(this,null,function*(){const[Ye]=M(nn);if(!Ye)return;const[it,Ct]=j(Me,Ye),[Mt,ot,rn,pn]=f.get(Me),dn=()=>{const rr=Mt[Ye];return(u(_e.revalidate)?_e.revalidate(it().data,nn):_e.revalidate!==!1)&&(delete rn[Ye],delete pn[Ye],rr&&rr[0])?rr[0](ae).then(()=>it().data):it().data};if(Ne.length<3)return dn();let Pn=Xe,Fn;const yn=Y();ot[Ye]=[yn,0];const Cn=!c(ut),Qn=it(),$n=Qn.data,vr=Qn._c,qn=c(vr)?$n:vr;if(Cn&&(ut=u(ut)?ut(qn,$n):ut,Ct({data:ut,_c:qn})),u(Pn))try{Pn=Pn(qn)}catch(rr){Fn=rr}if(Pn&&d(Pn))if(Pn=yield Pn.catch(rr=>{Fn=rr}),yn!==ot[Ye][0]){if(Fn)throw Fn;return Pn}else Fn&&Cn&&Lt(Fn)&&(ct=!0,Ct({data:qn,_c:o}));if(ct&&!Fn)if(u(ct)){const rr=ct(Pn,qn);Ct({data:rr,error:o,_c:o})}else Ct({data:Pn,error:o,_c:o});if(ot[Ye][1]=Y(),Promise.resolve(dn()).then(()=>{Ct({_c:o})}),Fn){if($t)throw Fn;return}return Pn})}})}const ve=(Ne,Me)=>{for(const Ce in Ne)Ne[Ce][0]&&Ne[Ce][0](Me)},$e=(Ne,Me)=>{if(!f.has(Ne)){const Ce=s(H,Me),Xe={},Ve=be.bind(o,Ne);let _e=a;const ct={},dt=($t,It)=>{const nn=ct[$t]||[];return ct[$t]=nn,nn.push(It),()=>nn.splice(nn.indexOf(It),1)},ut=($t,It,nn)=>{Ne.set($t,It);const Ye=ct[$t];if(Ye)for(const it of Ye)it(It,nn)},Lt=()=>{if(!f.has(Ne)&&(f.set(Ne,[Xe,{},{},{},Ve,ut,dt]),!_)){const $t=Ce.initFocus(setTimeout.bind(o,ve.bind(o,Xe,ge))),It=Ce.initReconnect(setTimeout.bind(o,ve.bind(o,Xe,fe)));_e=()=>{$t&&$t(),It&&It(),f.delete(Ne)}}};return Lt(),[Ne,Ve,Lt,_e]}return[Ne,f.get(Ne)[4]]},Be=(Ne,Me,Ce,Xe,Ve)=>{const _e=Ce.errorRetryCount,ct=Ve.retryCount,dt=~~((Math.random()+.5)*(1<<(ct<8?ct:8)))*Ce.errorRetryInterval;!c(_e)&&ct>_e||setTimeout(Xe,dt,Ve)},We=(Ne,Me)=>p(Ne)==p(Me),[ze,Je]=$e(new Map),ke=s({onLoadingSlow:a,onSuccess:a,onError:a,onErrorRetry:Be,onDiscarded:a,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:$?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:$?5e3:3e3,compare:We,isPaused:()=>!1,cache:ze,mutate:Je,fallback:{}},ce),ye=(Ne,Me)=>{const Ce=s(Ne,Me);if(Me){const{use:Xe,fallback:Ve}=Ne,{use:_e,fallback:ct}=Me;Xe&&_e&&(Ce.use=Xe.concat(_e)),Ve&&ct&&(Ce.fallback=s(Ve,ct))}return Ce},k=(0,t.createContext)({}),T=Ne=>{const{value:Me}=Ne,Ce=(0,t.useContext)(k),Xe=u(Me),Ve=(0,t.useMemo)(()=>Xe?Me(Ce):Me,[Xe,Ce,Me]),_e=(0,t.useMemo)(()=>Xe?Ve:ye(Ce,Ve),[Xe,Ce,Ve]),ct=Ve&&Ve.provider,dt=(0,t.useRef)(o);ct&&!dt.current&&(dt.current=$e(ct(_e.cache||ze),Ve));const ut=dt.current;return ut&&(_e.cache=ut[0],_e.mutate=ut[1]),Z(()=>{if(ut)return ut[2]&&ut[2](),ut[3]},[]),(0,t.createElement)(k.Provider,s(Ne,{value:_e}))},R="$inf$",G=C&&window.__SWR_DEVTOOLS_USE__,D=G?window.__SWR_DEVTOOLS_USE__:[],z=()=>{G&&(window.__SWR_DEVTOOLS_REACT__=t)},K=Ne=>u(Ne[1])?[Ne[0],Ne[1],Ne[2]||{}]:[Ne[0],null,(Ne[1]===null?Ne[2]:Ne[1])||{}],F=()=>s(ke,(0,t.useContext)(k)),V=(Ne,Me)=>{const[Ce,Xe]=M(Ne),[,,,Ve]=f.get(ze);if(Ve[Ce])return Ve[Ce];const _e=Me(Xe);return Ve[Ce]=_e,_e},ne=Ne=>(Me,Ce,Xe)=>Ne(Me,Ce&&((..._e)=>{const[ct]=M(Me),[,,,dt]=f.get(ze);if(ct.startsWith(R))return Ce(..._e);const ut=dt[ct];return c(ut)?Ce(..._e):(delete dt[ct],ut)}),Xe),me=D.concat(ne),he=Ne=>function(...Ce){const Xe=F(),[Ve,_e,ct]=K(Ce),dt=ye(Xe,ct);let ut=Ne;const{use:Lt}=dt,$t=(Lt||[]).concat(me);for(let It=$t.length;It--;)ut=$t[It](ut);return ut(Ve,_e||dt.fetcher||null,dt)},je=(Ne,Me,Ce)=>{const Xe=Me[Ne]||(Me[Ne]=[]);return Xe.push(Ce),()=>{const Ve=Xe.indexOf(Ce);Ve>=0&&(Xe[Ve]=Xe[Xe.length-1],Xe.pop())}},lt=(Ne,Me)=>(...Ce)=>{const[Xe,Ve,_e]=K(Ce),ct=(_e.use||[]).concat(Me);return Ne(Xe,Ve,Zc(Ds({},_e),{use:ct}))};z();const Ae=Ne=>serialize(Ne)[0],Se=t.use||(Ne=>{if(Ne.status==="pending")throw Ne;if(Ne.status==="fulfilled")return Ne.value;throw Ne.status==="rejected"?Ne.reason:(Ne.status="pending",Ne.then(Me=>{Ne.status="fulfilled",Ne.value=Me},Me=>{Ne.status="rejected",Ne.reason=Me}),Ne)}),N={dedupe:!0},Ie=(Ne,Me,Ce)=>{const{cache:Xe,compare:Ve,suspense:_e,fallbackData:ct,revalidateOnMount:dt,revalidateIfStale:ut,refreshInterval:Lt,refreshWhenHidden:$t,refreshWhenOffline:It,keepPreviousData:nn}=Ce,[Ye,it,Ct,Mt]=f.get(Xe),[ot,rn]=M(Ne),pn=(0,t.useRef)(!1),dn=(0,t.useRef)(!1),Pn=(0,t.useRef)(ot),Fn=(0,t.useRef)(Me),yn=(0,t.useRef)(Ce),Cn=()=>yn.current,Qn=()=>Cn().isVisible()&&Cn().isOnline(),[$n,vr,qn,rr]=j(Xe,ot),cr=(0,t.useRef)({}).current,Tr=c(ct)?Ce.fallback[ot]:ct,ur=(pt,Ft)=>{for(const Ut in cr){const en=Ut;if(en==="data"){if(!Ve(pt[en],Ft[en])&&(!c(pt[en])||!Ve($r,Ft[en])))return!1}else if(Ft[en]!==pt[en])return!1}return!0},xr=(0,t.useMemo)(()=>{const pt=!ot||!Me?!1:c(dt)?Cn().isPaused()||_e?!1:c(ut)?!0:ut:dt,Ft=Zn=>{const er=s(Zn);return delete er._k,pt?Ds({isValidating:!0,isLoading:!0},er):er},Ut=$n(),en=rr(),jt=Ft(Ut),In=Ut===en?jt:Ft(en);let on=jt;return[()=>{const Zn=Ft($n());return ur(Zn,on)?(on.data=Zn.data,on.isLoading=Zn.isLoading,on.isValidating=Zn.isValidating,on.error=Zn.error,on):(on=Zn,Zn)},()=>In]},[Xe,ot]),Hn=(0,r.useSyncExternalStore)((0,t.useCallback)(pt=>qn(ot,(Ft,Ut)=>{ur(Ut,Ft)||pt()}),[Xe,ot]),xr[0],xr[1]),br=!pn.current,Br=Ye[ot]&&Ye[ot].length>0,qr=Hn.data,Wr=c(qr)?Tr:qr,Pr=Hn.error,Lr=(0,t.useRef)(Wr),$r=nn?c(qr)?Lr.current:qr:Wr,ma=Br&&!c(Pr)?!1:br&&!c(dt)?dt:Cn().isPaused()?!1:_e?c(Wr)?!1:ut:c(Wr)||ut,Fr=!!(ot&&Me&&br&&ma),or=c(Hn.isValidating)?Fr:Hn.isValidating,hr=c(Hn.isLoading)?Fr:Hn.isLoading,Ln=(0,t.useCallback)(pt=>vl(this,null,function*(){const Ft=Fn.current;if(!ot||!Ft||dn.current||Cn().isPaused())return!1;let Ut,en,jt=!0;const In=pt||{},on=!Ct[ot]||!In.dedupe,Zn=()=>te?!dn.current&&ot===Pn.current&&pn.current:ot===Pn.current,er={isValidating:!1,isLoading:!1},fr=()=>{vr(er)},Or=()=>{const Un=Ct[ot];Un&&Un[1]===en&&delete Ct[ot]},sr={isValidating:!0};c($n().data)&&(sr.isLoading=!0);try{if(on&&(vr(sr),Ce.loadingTimeout&&c($n().data)&&setTimeout(()=>{jt&&Zn()&&Cn().onLoadingSlow(ot,Ce)},Ce.loadingTimeout),Ct[ot]=[Ft(rn),Y()]),[Ut,en]=Ct[ot],Ut=yield Ut,on&&setTimeout(Or,Ce.dedupingInterval),!Ct[ot]||Ct[ot][1]!==en)return on&&Zn()&&Cn().onDiscarded(ot),!1;er.error=o;const Un=it[ot];if(!c(Un)&&(en<=Un[0]||en<=Un[1]||Un[1]===0))return fr(),on&&Zn()&&Cn().onDiscarded(ot),!1;const Sn=$n().data;er.data=Ve(Sn,Ut)?Sn:Ut,on&&Zn()&&Cn().onSuccess(Ut,ot,Ce)}catch(Un){Or();const Sn=Cn(),{shouldRetryOnError:He}=Sn;Sn.isPaused()||(er.error=Un,on&&Zn()&&(Sn.onError(Un,ot,Sn),(He===!0||u(He)&&He(Un))&&(!Cn().revalidateOnFocus||!Cn().revalidateOnReconnect||Qn())&&Sn.onErrorRetry(Un,ot,Sn,q=>{const se=Ye[ot];se&&se[0]&&se[0](J.ERROR_REVALIDATE_EVENT,q)},{retryCount:(In.retryCount||0)+1,dedupe:!0})))}return jt=!1,fr(),!0}),[ot,Xe]),Sr=(0,t.useCallback)((...pt)=>be(Xe,Pn.current,...pt),[]);if(Z(()=>{Fn.current=Me,yn.current=Ce,c(qr)||(Lr.current=qr)}),Z(()=>{if(!ot)return;const pt=Ln.bind(o,N);let Ft=0;const en=je(ot,Ye,(jt,In={})=>{if(jt==J.FOCUS_EVENT){const on=Date.now();Cn().revalidateOnFocus&&on>Ft&&Qn()&&(Ft=on+Cn().focusThrottleInterval,pt())}else if(jt==J.RECONNECT_EVENT)Cn().revalidateOnReconnect&&Qn()&&pt();else{if(jt==J.MUTATE_EVENT)return Ln();if(jt==J.ERROR_REVALIDATE_EVENT)return Ln(In)}});return dn.current=!1,Pn.current=ot,pn.current=!0,vr({_k:rn}),ma&&(c(Wr)||_?pt():le(pt)),()=>{dn.current=!0,en()}},[ot]),Z(()=>{let pt;function Ft(){const en=u(Lt)?Lt($n().data):Lt;en&&pt!==-1&&(pt=setTimeout(Ut,en))}function Ut(){!$n().error&&($t||Cn().isVisible())&&(It||Cn().isOnline())?Ln(N).then(Ft):Ft()}return Ft(),()=>{pt&&(clearTimeout(pt),pt=-1)}},[Lt,$t,It,ot]),(0,t.useDebugValue)($r),_e&&c(Wr)&&ot){if(!te&&_)throw new Error("Fallback data is required when using suspense in SSR.");Fn.current=Me,yn.current=Ce,dn.current=!1;const pt=Mt[ot];if(!c(pt)){const Ft=Sr(pt);Se(Ft)}if(c(Pr)){const Ft=Ln(N);c($r)||(Ft.status="fulfilled",Ft.value=!0),Se(Ft)}else throw Pr}return{mutate:Sr,get data(){return cr.data=!0,$r},get error(){return cr.error=!0,Pr},get isValidating(){return cr.isValidating=!0,or},get isLoading(){return cr.isLoading=!0,hr}}},X=l.defineProperty(T,"defaultValue",{value:ke}),re=he(Ie)}},wo={};function De(m){var g=wo[m];if(g!==void 0)return g.exports;var e=wo[m]={id:m,loaded:!1,exports:{}};return Fo[m].call(e.exports,e,e.exports,De),e.loaded=!0,e.exports}De.m=Fo,function(){De.amdD=function(){throw new Error("define cannot be used indirect")}}(),function(){De.n=function(m){var g=m&&m.__esModule?function(){return m.default}:function(){return m};return De.d(g,{a:g}),g}}(),function(){var m=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},g;De.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var r=Object.create(null);De.r(r);var a={};g=g||[null,m({}),m([]),m(m)];for(var o=t&2&&e;typeof o=="object"&&!~g.indexOf(o);o=m(o))Object.getOwnPropertyNames(o).forEach(function(l){a[l]=function(){return e[l]}});return a.default=function(){return e},De.d(r,a),r}}(),function(){De.d=function(m,g){for(var e in g)De.o(g,e)&&!De.o(m,e)&&Object.defineProperty(m,e,{enumerable:!0,get:g[e]})}}(),function(){De.f={},De.e=function(m){return Promise.all(Object.keys(De.f).reduce(function(g,e){return De.f[e](m,g),g},[]))}}(),function(){De.u=function(m){return""+({185:"p__Welcome",201:"p__AccountList__index",301:"t__plugin-layout__Layout",366:"p__User__Login__index",502:"p__Task__List__index",523:"p__DomainList__List__index",571:"p__404",579:"p__UserList__List__index",636:"p__BannedWordList__List__index",780:"p__Probe__index",903:"p__Draw__index",971:"p__Setting__index"}[m]||m)+"."+{13:"a5e18296",76:"b6cad541",88:"94364292",89:"ec4435d7",102:"03b5e643",120:"df777cb8",134:"b9c9b4c3",185:"2dd3fb95",201:"44e1e690",214:"90529540",228:"6c4a8a61",301:"d587937a",347:"8883054e",366:"e806d681",390:"976f7083",502:"df255f69",523:"6576a5a9",571:"8182e601",579:"e1d60d51",597:"bf2b9d87",636:"100ff179",643:"75e8a81d",780:"1e685089",903:"078ce6ba",905:"52708afe",910:"6474b16f",971:"cc579be8"}[m]+".async.js"}}(),function(){De.miniCssF=function(m){return""+{301:"t__plugin-layout__Layout",780:"p__Probe__index",903:"p__Draw__index"}[m]+"."+{301:"5012e1ab",780:"6a9ff373",903:"63774c9e"}[m]+".chunk.css"}}(),function(){De.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(m){if(typeof window=="object")return window}}()}(),function(){De.o=function(m,g){return Object.prototype.hasOwnProperty.call(m,g)}}(),function(){var m={},g="midjourney-proxy-admin:";De.l=function(e,t,r,a){if(m[e]){m[e].push(t);return}var o,l;if(r!==void 0)for(var c=document.getElementsByTagName("script"),u=0;u{},o=a(),l=Object,c=Ne=>Ne===o,u=Ne=>typeof Ne=="function",s=(Ne,Me)=>Ds(Ds({},Ne),Me),d=Ne=>u(Ne.then),v=new WeakMap;let y=0;const p=Ne=>{const Me=typeof Ne,Ce=Ne&&Ne.constructor,Xe=Ce==Date;let Ve,_e;if(l(Ne)===Ne&&!Xe&&Ce!=RegExp){if(Ve=v.get(Ne),Ve)return Ve;if(Ve=++y+"~",v.set(Ne,Ve),Ce==Array){for(Ve="@",_e=0;_eC&&typeof window.requestAnimationFrame!=b,j=(Ne,Me)=>{const Ce=f.get(Ne);return[()=>!c(Me)&&Ne.get(Me)||S,Xe=>{if(!c(Me)){const Ve=Ne.get(Me);Me in x||(x[Me]=Ve),Ce[5](Me,s(Ve,Xe),Ve||S)}},Ce[6],()=>!c(Me)&&Me in x?x[Me]:!c(Me)&&Ne.get(Me)||S]};let w=!0;const I=()=>w,[L,oe]=C&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[a,a],Q=()=>{const Ne=O&&document.visibilityState;return c(Ne)||Ne!=="hidden"},ie=Ne=>(O&&document.addEventListener("visibilitychange",Ne),L("focus",Ne),()=>{O&&document.removeEventListener("visibilitychange",Ne),oe("focus",Ne)}),de=Ne=>{const Me=()=>{w=!0,Ne()},Ce=()=>{w=!1};return L("online",Me),L("offline",Ce),()=>{oe("online",Me),oe("offline",Ce)}},ce={isOnline:I,isVisible:Q},H={initFocus:ie,initReconnect:de},te=!t.useId,_=!C||"Deno"in window,le=Ne=>P()?window.requestAnimationFrame(Ne):setTimeout(Ne,1),Z=_?t.useEffect:t.useLayoutEffect,U=typeof navigator!="undefined"&&navigator.connection,$=!_&&U&&(["slow-2g","2g"].includes(U.effectiveType)||U.saveData),M=Ne=>{if(u(Ne))try{Ne=Ne()}catch(Ce){Ne=""}const Me=Ne;return Ne=typeof Ne=="string"?Ne:(Array.isArray(Ne)?Ne.length:Ne)?p(Ne):"",[Ne,Me]};let A=0;const Y=()=>++A,ge=0,fe=1,ae=2;var J={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:ge,MUTATE_EVENT:ae,RECONNECT_EVENT:fe};function be(...Ne){return vl(this,null,function*(){const[Me,Ce,Xe,Ve]=Ne,_e=s({populateCache:!0,throwOnError:!0},typeof Ve=="boolean"?{revalidate:Ve}:Ve||{});let ct=_e.populateCache;const dt=_e.rollbackOnError;let ut=_e.optimisticData;const Lt=nn=>typeof dt=="function"?dt(nn):dt!==!1,$t=_e.throwOnError;if(u(Ce)){const nn=Ce,Ye=[],it=Me.keys();for(const Ct of it)!/^\$(inf|sub)\$/.test(Ct)&&nn(Me.get(Ct)._k)&&Ye.push(Ct);return Promise.all(Ye.map(It))}return It(Ce);function It(nn){return vl(this,null,function*(){const[Ye]=M(nn);if(!Ye)return;const[it,Ct]=j(Me,Ye),[Mt,ot,rn,pn]=f.get(Me),dn=()=>{const rr=Mt[Ye];return(u(_e.revalidate)?_e.revalidate(it().data,nn):_e.revalidate!==!1)&&(delete rn[Ye],delete pn[Ye],rr&&rr[0])?rr[0](ae).then(()=>it().data):it().data};if(Ne.length<3)return dn();let Pn=Xe,Fn;const yn=Y();ot[Ye]=[yn,0];const Cn=!c(ut),Qn=it(),$n=Qn.data,vr=Qn._c,qn=c(vr)?$n:vr;if(Cn&&(ut=u(ut)?ut(qn,$n):ut,Ct({data:ut,_c:qn})),u(Pn))try{Pn=Pn(qn)}catch(rr){Fn=rr}if(Pn&&d(Pn))if(Pn=yield Pn.catch(rr=>{Fn=rr}),yn!==ot[Ye][0]){if(Fn)throw Fn;return Pn}else Fn&&Cn&&Lt(Fn)&&(ct=!0,Ct({data:qn,_c:o}));if(ct&&!Fn)if(u(ct)){const rr=ct(Pn,qn);Ct({data:rr,error:o,_c:o})}else Ct({data:Pn,error:o,_c:o});if(ot[Ye][1]=Y(),Promise.resolve(dn()).then(()=>{Ct({_c:o})}),Fn){if($t)throw Fn;return}return Pn})}})}const ve=(Ne,Me)=>{for(const Ce in Ne)Ne[Ce][0]&&Ne[Ce][0](Me)},$e=(Ne,Me)=>{if(!f.has(Ne)){const Ce=s(H,Me),Xe={},Ve=be.bind(o,Ne);let _e=a;const ct={},dt=($t,It)=>{const nn=ct[$t]||[];return ct[$t]=nn,nn.push(It),()=>nn.splice(nn.indexOf(It),1)},ut=($t,It,nn)=>{Ne.set($t,It);const Ye=ct[$t];if(Ye)for(const it of Ye)it(It,nn)},Lt=()=>{if(!f.has(Ne)&&(f.set(Ne,[Xe,{},{},{},Ve,ut,dt]),!_)){const $t=Ce.initFocus(setTimeout.bind(o,ve.bind(o,Xe,ge))),It=Ce.initReconnect(setTimeout.bind(o,ve.bind(o,Xe,fe)));_e=()=>{$t&&$t(),It&&It(),f.delete(Ne)}}};return Lt(),[Ne,Ve,Lt,_e]}return[Ne,f.get(Ne)[4]]},Be=(Ne,Me,Ce,Xe,Ve)=>{const _e=Ce.errorRetryCount,ct=Ve.retryCount,dt=~~((Math.random()+.5)*(1<<(ct<8?ct:8)))*Ce.errorRetryInterval;!c(_e)&&ct>_e||setTimeout(Xe,dt,Ve)},We=(Ne,Me)=>p(Ne)==p(Me),[ze,Je]=$e(new Map),ke=s({onLoadingSlow:a,onSuccess:a,onError:a,onErrorRetry:Be,onDiscarded:a,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:$?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:$?5e3:3e3,compare:We,isPaused:()=>!1,cache:ze,mutate:Je,fallback:{}},ce),ye=(Ne,Me)=>{const Ce=s(Ne,Me);if(Me){const{use:Xe,fallback:Ve}=Ne,{use:_e,fallback:ct}=Me;Xe&&_e&&(Ce.use=Xe.concat(_e)),Ve&&ct&&(Ce.fallback=s(Ve,ct))}return Ce},k=(0,t.createContext)({}),T=Ne=>{const{value:Me}=Ne,Ce=(0,t.useContext)(k),Xe=u(Me),Ve=(0,t.useMemo)(()=>Xe?Me(Ce):Me,[Xe,Ce,Me]),_e=(0,t.useMemo)(()=>Xe?Ve:ye(Ce,Ve),[Xe,Ce,Ve]),ct=Ve&&Ve.provider,dt=(0,t.useRef)(o);ct&&!dt.current&&(dt.current=$e(ct(_e.cache||ze),Ve));const ut=dt.current;return ut&&(_e.cache=ut[0],_e.mutate=ut[1]),Z(()=>{if(ut)return ut[2]&&ut[2](),ut[3]},[]),(0,t.createElement)(k.Provider,s(Ne,{value:_e}))},R="$inf$",G=C&&window.__SWR_DEVTOOLS_USE__,D=G?window.__SWR_DEVTOOLS_USE__:[],z=()=>{G&&(window.__SWR_DEVTOOLS_REACT__=t)},K=Ne=>u(Ne[1])?[Ne[0],Ne[1],Ne[2]||{}]:[Ne[0],null,(Ne[1]===null?Ne[2]:Ne[1])||{}],F=()=>s(ke,(0,t.useContext)(k)),V=(Ne,Me)=>{const[Ce,Xe]=M(Ne),[,,,Ve]=f.get(ze);if(Ve[Ce])return Ve[Ce];const _e=Me(Xe);return Ve[Ce]=_e,_e},ne=Ne=>(Me,Ce,Xe)=>Ne(Me,Ce&&((..._e)=>{const[ct]=M(Me),[,,,dt]=f.get(ze);if(ct.startsWith(R))return Ce(..._e);const ut=dt[ct];return c(ut)?Ce(..._e):(delete dt[ct],ut)}),Xe),me=D.concat(ne),he=Ne=>function(...Ce){const Xe=F(),[Ve,_e,ct]=K(Ce),dt=ye(Xe,ct);let ut=Ne;const{use:Lt}=dt,$t=(Lt||[]).concat(me);for(let It=$t.length;It--;)ut=$t[It](ut);return ut(Ve,_e||dt.fetcher||null,dt)},je=(Ne,Me,Ce)=>{const Xe=Me[Ne]||(Me[Ne]=[]);return Xe.push(Ce),()=>{const Ve=Xe.indexOf(Ce);Ve>=0&&(Xe[Ve]=Xe[Xe.length-1],Xe.pop())}},lt=(Ne,Me)=>(...Ce)=>{const[Xe,Ve,_e]=K(Ce),ct=(_e.use||[]).concat(Me);return Ne(Xe,Ve,Zc(Ds({},_e),{use:ct}))};z();const Ae=Ne=>serialize(Ne)[0],Se=t.use||(Ne=>{if(Ne.status==="pending")throw Ne;if(Ne.status==="fulfilled")return Ne.value;throw Ne.status==="rejected"?Ne.reason:(Ne.status="pending",Ne.then(Me=>{Ne.status="fulfilled",Ne.value=Me},Me=>{Ne.status="rejected",Ne.reason=Me}),Ne)}),N={dedupe:!0},Ie=(Ne,Me,Ce)=>{const{cache:Xe,compare:Ve,suspense:_e,fallbackData:ct,revalidateOnMount:dt,revalidateIfStale:ut,refreshInterval:Lt,refreshWhenHidden:$t,refreshWhenOffline:It,keepPreviousData:nn}=Ce,[Ye,it,Ct,Mt]=f.get(Xe),[ot,rn]=M(Ne),pn=(0,t.useRef)(!1),dn=(0,t.useRef)(!1),Pn=(0,t.useRef)(ot),Fn=(0,t.useRef)(Me),yn=(0,t.useRef)(Ce),Cn=()=>yn.current,Qn=()=>Cn().isVisible()&&Cn().isOnline(),[$n,vr,qn,rr]=j(Xe,ot),cr=(0,t.useRef)({}).current,Tr=c(ct)?Ce.fallback[ot]:ct,ur=(pt,Ft)=>{for(const Ut in cr){const en=Ut;if(en==="data"){if(!Ve(pt[en],Ft[en])&&(!c(pt[en])||!Ve($r,Ft[en])))return!1}else if(Ft[en]!==pt[en])return!1}return!0},xr=(0,t.useMemo)(()=>{const pt=!ot||!Me?!1:c(dt)?Cn().isPaused()||_e?!1:c(ut)?!0:ut:dt,Ft=Zn=>{const er=s(Zn);return delete er._k,pt?Ds({isValidating:!0,isLoading:!0},er):er},Ut=$n(),en=rr(),jt=Ft(Ut),In=Ut===en?jt:Ft(en);let on=jt;return[()=>{const Zn=Ft($n());return ur(Zn,on)?(on.data=Zn.data,on.isLoading=Zn.isLoading,on.isValidating=Zn.isValidating,on.error=Zn.error,on):(on=Zn,Zn)},()=>In]},[Xe,ot]),Hn=(0,r.useSyncExternalStore)((0,t.useCallback)(pt=>qn(ot,(Ft,Ut)=>{ur(Ut,Ft)||pt()}),[Xe,ot]),xr[0],xr[1]),br=!pn.current,Br=Ye[ot]&&Ye[ot].length>0,qr=Hn.data,Wr=c(qr)?Tr:qr,Pr=Hn.error,Lr=(0,t.useRef)(Wr),$r=nn?c(qr)?Lr.current:qr:Wr,ma=Br&&!c(Pr)?!1:br&&!c(dt)?dt:Cn().isPaused()?!1:_e?c(Wr)?!1:ut:c(Wr)||ut,Fr=!!(ot&&Me&&br&&ma),or=c(Hn.isValidating)?Fr:Hn.isValidating,hr=c(Hn.isLoading)?Fr:Hn.isLoading,Ln=(0,t.useCallback)(pt=>vl(this,null,function*(){const Ft=Fn.current;if(!ot||!Ft||dn.current||Cn().isPaused())return!1;let Ut,en,jt=!0;const In=pt||{},on=!Ct[ot]||!In.dedupe,Zn=()=>te?!dn.current&&ot===Pn.current&&pn.current:ot===Pn.current,er={isValidating:!1,isLoading:!1},fr=()=>{vr(er)},Or=()=>{const Un=Ct[ot];Un&&Un[1]===en&&delete Ct[ot]},sr={isValidating:!0};c($n().data)&&(sr.isLoading=!0);try{if(on&&(vr(sr),Ce.loadingTimeout&&c($n().data)&&setTimeout(()=>{jt&&Zn()&&Cn().onLoadingSlow(ot,Ce)},Ce.loadingTimeout),Ct[ot]=[Ft(rn),Y()]),[Ut,en]=Ct[ot],Ut=yield Ut,on&&setTimeout(Or,Ce.dedupingInterval),!Ct[ot]||Ct[ot][1]!==en)return on&&Zn()&&Cn().onDiscarded(ot),!1;er.error=o;const Un=it[ot];if(!c(Un)&&(en<=Un[0]||en<=Un[1]||Un[1]===0))return fr(),on&&Zn()&&Cn().onDiscarded(ot),!1;const Sn=$n().data;er.data=Ve(Sn,Ut)?Sn:Ut,on&&Zn()&&Cn().onSuccess(Ut,ot,Ce)}catch(Un){Or();const Sn=Cn(),{shouldRetryOnError:He}=Sn;Sn.isPaused()||(er.error=Un,on&&Zn()&&(Sn.onError(Un,ot,Sn),(He===!0||u(He)&&He(Un))&&(!Cn().revalidateOnFocus||!Cn().revalidateOnReconnect||Qn())&&Sn.onErrorRetry(Un,ot,Sn,q=>{const se=Ye[ot];se&&se[0]&&se[0](J.ERROR_REVALIDATE_EVENT,q)},{retryCount:(In.retryCount||0)+1,dedupe:!0})))}return jt=!1,fr(),!0}),[ot,Xe]),Sr=(0,t.useCallback)((...pt)=>be(Xe,Pn.current,...pt),[]);if(Z(()=>{Fn.current=Me,yn.current=Ce,c(qr)||(Lr.current=qr)}),Z(()=>{if(!ot)return;const pt=Ln.bind(o,N);let Ft=0;const en=je(ot,Ye,(jt,In={})=>{if(jt==J.FOCUS_EVENT){const on=Date.now();Cn().revalidateOnFocus&&on>Ft&&Qn()&&(Ft=on+Cn().focusThrottleInterval,pt())}else if(jt==J.RECONNECT_EVENT)Cn().revalidateOnReconnect&&Qn()&&pt();else{if(jt==J.MUTATE_EVENT)return Ln();if(jt==J.ERROR_REVALIDATE_EVENT)return Ln(In)}});return dn.current=!1,Pn.current=ot,pn.current=!0,vr({_k:rn}),ma&&(c(Wr)||_?pt():le(pt)),()=>{dn.current=!0,en()}},[ot]),Z(()=>{let pt;function Ft(){const en=u(Lt)?Lt($n().data):Lt;en&&pt!==-1&&(pt=setTimeout(Ut,en))}function Ut(){!$n().error&&($t||Cn().isVisible())&&(It||Cn().isOnline())?Ln(N).then(Ft):Ft()}return Ft(),()=>{pt&&(clearTimeout(pt),pt=-1)}},[Lt,$t,It,ot]),(0,t.useDebugValue)($r),_e&&c(Wr)&&ot){if(!te&&_)throw new Error("Fallback data is required when using suspense in SSR.");Fn.current=Me,yn.current=Ce,dn.current=!1;const pt=Mt[ot];if(!c(pt)){const Ft=Sr(pt);Se(Ft)}if(c(Pr)){const Ft=Ln(N);c($r)||(Ft.status="fulfilled",Ft.value=!0),Se(Ft)}else throw Pr}return{mutate:Sr,get data(){return cr.data=!0,$r},get error(){return cr.error=!0,Pr},get isValidating(){return cr.isValidating=!0,or},get isLoading(){return cr.isLoading=!0,hr}}},X=l.defineProperty(T,"defaultValue",{value:ke}),re=he(Ie)}},wo={};function De(m){var g=wo[m];if(g!==void 0)return g.exports;var e=wo[m]={id:m,loaded:!1,exports:{}};return Fo[m].call(e.exports,e,e.exports,De),e.loaded=!0,e.exports}De.m=Fo,function(){De.amdD=function(){throw new Error("define cannot be used indirect")}}(),function(){De.n=function(m){var g=m&&m.__esModule?function(){return m.default}:function(){return m};return De.d(g,{a:g}),g}}(),function(){var m=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},g;De.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var r=Object.create(null);De.r(r);var a={};g=g||[null,m({}),m([]),m(m)];for(var o=t&2&&e;typeof o=="object"&&!~g.indexOf(o);o=m(o))Object.getOwnPropertyNames(o).forEach(function(l){a[l]=function(){return e[l]}});return a.default=function(){return e},De.d(r,a),r}}(),function(){De.d=function(m,g){for(var e in g)De.o(g,e)&&!De.o(m,e)&&Object.defineProperty(m,e,{enumerable:!0,get:g[e]})}}(),function(){De.f={},De.e=function(m){return Promise.all(Object.keys(De.f).reduce(function(g,e){return De.f[e](m,g),g},[]))}}(),function(){De.u=function(m){return""+({185:"p__Welcome",201:"p__AccountList__index",301:"t__plugin-layout__Layout",366:"p__User__Login__index",502:"p__Task__List__index",523:"p__DomainList__List__index",571:"p__404",579:"p__UserList__List__index",636:"p__BannedWordList__List__index",780:"p__Probe__index",903:"p__Draw__index",971:"p__Setting__index"}[m]||m)+"."+{13:"a5e18296",76:"b6cad541",88:"94364292",89:"ec4435d7",102:"03b5e643",120:"df777cb8",134:"b9c9b4c3",185:"2dd3fb95",201:"7c0222b4",214:"90529540",228:"6c4a8a61",301:"d587937a",347:"8883054e",366:"e806d681",390:"976f7083",502:"df255f69",523:"6576a5a9",571:"8182e601",579:"e1d60d51",597:"bf2b9d87",636:"100ff179",643:"75e8a81d",780:"1e685089",903:"078ce6ba",905:"52708afe",910:"6474b16f",971:"cc579be8"}[m]+".async.js"}}(),function(){De.miniCssF=function(m){return""+{301:"t__plugin-layout__Layout",780:"p__Probe__index",903:"p__Draw__index"}[m]+"."+{301:"5012e1ab",780:"6a9ff373",903:"63774c9e"}[m]+".chunk.css"}}(),function(){De.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(m){if(typeof window=="object")return window}}()}(),function(){De.o=function(m,g){return Object.prototype.hasOwnProperty.call(m,g)}}(),function(){var m={},g="midjourney-proxy-admin:";De.l=function(e,t,r,a){if(m[e]){m[e].push(t);return}var o,l;if(r!==void 0)for(var c=document.getElementsByTagName("script"),u=0;uvn.length)&&(bn=vn.length);for(var pr=0,dr=new Array(bn);pr0&&arguments[0]!==void 0?arguments[0]:"";return vn.endsWith("/")?vn:"".concat(vn,"/")}var Dr=De(49647),Gr=De(58096),oa=["content"],Pa=["content"],Xa=/^(http:|https:)?\/\//;function Ba(vn){return Xa.test(vn)||vn.startsWith("/")&&!vn.startsWith("/*")||vn.startsWith("./")||vn.startsWith("../")}var Ga=function(){return En.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},oo=function(bn){var pr,dr=bn.loaderData,Mr=bn.htmlPageOpts,ta=bn.manifest,Qr=(ta==null||(pr=ta.assets)===null||pr===void 0?void 0:pr["umi.css"])||"";return En.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(dr||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(Mr||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(Qr,"'")}})};function qa(vn){var bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof vn=="string")return Ba(vn)?Rr({src:vn},bn):{content:vn};if(On(vn)==="object")return Rr(Rr({},vn),bn);throw new Error("Invalid script type: ".concat(On(vn)))}function Va(vn){return Ba(vn)?{type:"link",href:vn}:{type:"style",content:vn}}var Ya=function(bn){var pr,dr,Mr,ta,Qr,xa,ca=bn.htmlPageOpts;return En.createElement(En.Fragment,null,(ca==null?void 0:ca.title)&&En.createElement("title",null,ca.title),ca==null||(pr=ca.favicons)===null||pr===void 0?void 0:pr.map(function(Ia,Ra){return En.createElement("link",{key:Ra,rel:"shortcut icon",href:Ia})}),(ca==null?void 0:ca.description)&&En.createElement("meta",{name:"description",content:ca.description}),(ca==null||(dr=ca.keywords)===null||dr===void 0?void 0:dr.length)&&En.createElement("meta",{name:"keywords",content:ca.keywords.join(",")}),ca==null||(Mr=ca.metas)===null||Mr===void 0?void 0:Mr.map(function(Ia){return En.createElement("meta",{key:Ia.name,name:Ia.name,content:Ia.content})}),ca==null||(ta=ca.links)===null||ta===void 0?void 0:ta.map(function(Ia,Ra){return En.createElement("link",(0,Gr.Z)({key:Ra},Ia))}),ca==null||(Qr=ca.styles)===null||Qr===void 0?void 0:Qr.map(function(Ia,Ra){var _a=Va(Ia),fo=_a.type,da=_a.href,ti=_a.content;if(fo==="link")return En.createElement("link",{key:Ra,rel:"stylesheet",href:da});if(fo==="style")return En.createElement("style",{key:Ra},ti)}),ca==null||(xa=ca.headScripts)===null||xa===void 0?void 0:xa.map(function(Ia,Ra){var _a=qa(Ia),fo=_a.content,da=(0,Dr.Z)(_a,oa);return En.createElement("script",(0,Gr.Z)({dangerouslySetInnerHTML:{__html:fo},key:Ra,crossOrigin:"anonymous"},da))}))};function li(vn){var bn,pr=vn.children,dr=vn.loaderData,Mr=vn.manifest,ta=vn.htmlPageOpts,Qr=vn.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,xa=vn.mountElementId;if(Qr!=null&&Qr.pureHtml)return En.createElement("html",null,En.createElement("head",null),En.createElement("body",null,En.createElement(Ga,null),En.createElement("div",{id:xa},pr),En.createElement(oo,{manifest:Mr,loaderData:dr,htmlPageOpts:ta})));if(Qr!=null&&Qr.pureApp)return En.createElement(En.Fragment,null,pr);var ca=typeof window=="undefined"?Mr==null?void 0:Mr.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return En.createElement("html",{suppressHydrationWarning:!0,lang:(ta==null?void 0:ta.lang)||"en"},En.createElement("head",null,En.createElement("meta",{charSet:"utf-8"}),En.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),ca&&En.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:ca}),En.createElement(Ya,{htmlPageOpts:ta})),En.createElement("body",null,En.createElement(Ga,null),En.createElement("div",{id:xa},pr),En.createElement(oo,{manifest:Mr,loaderData:dr,htmlPageOpts:ta}),ta==null||(bn=ta.scripts)===null||bn===void 0?void 0:bn.map(function(Ia,Ra){var _a=qa(Ia),fo=_a.content,da=(0,Dr.Z)(_a,Pa);return En.createElement("script",(0,Gr.Z)({dangerouslySetInnerHTML:{__html:fo},key:Ra,crossOrigin:"anonymous"},da))})))}var yi=En.createContext(void 0);function Mi(){return En.useContext(yi)}var Ri=["redirect"];function ui(vn){var bn=vn.routesById,pr=vn.parentId,dr=vn.routeComponents;return Object.keys(bn).filter(function(Mr){return bn[Mr].parentId===pr}).map(function(Mr){var ta=Ma(Rr({route:bn[Mr],routeComponent:dr[Mr],loadingComponent:vn.loadingComponent,reactRouter5Compat:vn.reactRouter5Compat},vn.reactRouter5Compat&&{hasChildren:Object.keys(bn).filter(function(xa){return bn[xa].parentId===Mr}).length>0})),Qr=ui({routesById:bn,routeComponents:dr,parentId:ta.id,loadingComponent:vn.loadingComponent,reactRouter5Compat:vn.reactRouter5Compat});return Qr.length>0&&(ta.children=Qr,ta.routes=Qr),ta})}function To(vn){var bn=(0,Oa.UO)(),pr=(0,Oa.Gn)(vn.to,bn),dr=(0,ao.T$)(),Mr=(0,Oa.TH)();if(dr!=null&&dr.keepQuery){var ta=Mr.search+Mr.hash;pr+=ta}var Qr=Rr(Rr({},vn),{},{to:pr});return En.createElement(Oa.Fg,(0,Gr.Z)({replace:!0},Qr))}function Ma(vn){var bn=vn.route,pr=bn.redirect,dr=(0,Dr.Z)(bn,Ri),Mr=vn.reactRouter5Compat?lo:uo;return Rr({element:pr?En.createElement(To,{to:pr}):En.createElement(yi.Provider,{value:{route:vn.route}},En.createElement(Mr,{loader:En.memo(vn.routeComponent),loadingComponent:vn.loadingComponent||ha,hasChildren:vn.hasChildren}))},dr)}function ha(){return En.createElement("div",null)}function lo(vn){var bn=Mi(),pr=bn.route,dr=(0,ao.Ov)(),Mr=dr.history,ta=dr.clientRoutes,Qr=(0,Oa.UO)(),xa={params:Qr,isExact:!0,path:pr.path,url:Mr.location.pathname},ca=vn.loader;return En.createElement(En.Suspense,{fallback:En.createElement(vn.loadingComponent,null)},En.createElement(ca,{location:Mr.location,match:xa,history:Mr,params:Qr,route:pr,routes:ta},vn.hasChildren&&En.createElement(Oa.j3,null)))}function uo(vn){var bn=vn.loader;return En.createElement(En.Suspense,{fallback:En.createElement(vn.loadingComponent,null)},En.createElement(bn,null))}var Ha=null;function io(){return Ha}function Mo(vn){var bn=vn.history,pr=En.useState({action:bn.action,location:bn.location}),dr=Kr(pr,2),Mr=dr[0],ta=dr[1];return(0,En.useLayoutEffect)(function(){return bn.listen(ta)},[bn]),(0,En.useLayoutEffect)(function(){function Qr(xa){vn.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:vn.routes,clientRoutes:vn.clientRoutes,location:xa.location,action:xa.action,basename:vn.basename,isFirst:!!xa.isFirst}})}return Qr({location:Mr.location,action:Mr.action,isFirst:!0}),bn.listen(Qr)},[bn,vn.routes,vn.clientRoutes]),En.createElement(Oa.F0,{navigator:bn,location:Mr.location,basename:vn.basename},vn.children)}function yo(){var vn=(0,ao.Ov)(),bn=vn.clientRoutes;return(0,Oa.V$)(bn)}var La=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],Bo=function(bn,pr){var dr=bn.basename||"/",Mr=ui({routesById:bn.routes,routeComponents:bn.routeComponents,loadingComponent:bn.loadingComponent,reactRouter5Compat:bn.reactRouter5Compat});bn.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:Mr}});for(var ta=En.createElement(Mo,{basename:dr,pluginManager:bn.pluginManager,routes:bn.routes,clientRoutes:Mr,history:bn.history},pr),Qr=0,xa=La;Qr /// 版本号 /// - public static string Version { get; set; } = "v5.9.6"; + public static string Version { get; set; } = "v5.9.7"; /// /// 全局配置项