diff --git a/README.md b/README.md index 623246b..7cb7c82 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ - 简单易用的消息搬运功能。 - 简单强大的自定义回复功能。 - 完整支持 ECMAScript 5.1 的插件系统,基于 [otto](https://github.com/robertkrimen/otto)。 -- 支持通过内置的阉割版 `Express` / `request` ,接入互联网。 +- 支持通过内置的阉割版 `Express` / `fetch` ,接入互联网。 - 内置 `Cron` ,轻松实现定时任务。 - 持久化的 `Bucket` 存储模块。 - 支持同时接入多个平台多个机器人,自己开发。 @@ -181,7 +181,7 @@ app.post(api, (req, res) => res.json(req.json())); //第二步,请求第一步实现的接口 const port = Bucket("app").port ?? "8080"; // 获取http服务端口 const url = `http://127.0.0.1:${port}${api}`; -request({ +fetch({ url, method: "POST", body: { value: "test" }, @@ -345,12 +345,12 @@ interface Response { } ``` -### request +### fetch 由 `net/http` 封装而成,如有更多需求可以联系作者。 ```ts -function request(options: { +function fetch(options: { url: string; //请求地址 method: string; //请求方法 headers: { [key: string]: string }; //请求头 diff --git a/core/admin/index.html b/core/admin/index.html index 89b41fa..f624038 100644 --- a/core/admin/index.html +++ b/core/admin/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/core/admin/p__Basic__index.111bb3a5.async.js b/core/admin/p__Basic__index.e0b7ce49.async.js similarity index 53% rename from core/admin/p__Basic__index.111bb3a5.async.js rename to core/admin/p__Basic__index.e0b7ce49.async.js index a0b3522..a02ddba 100644 --- a/core/admin/p__Basic__index.111bb3a5.async.js +++ b/core/admin/p__Basic__index.e0b7ce49.async.js @@ -1,10 +1,10 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[294],{66732:function(ae,z,i){var A=i(75782),g=i(58733),N=i(50959),o=i(46227),x=i(11527),S=["fieldProps","proFieldProps"],P=["fieldProps","proFieldProps"],C="text",H=function(m){var u=m.fieldProps,j=m.proFieldProps,T=(0,g.Z)(m,S);return(0,x.jsx)(o.Z,(0,A.Z)({valueType:C,fieldProps:u,filedConfig:{valueType:C},proFieldProps:j},T))},I=function(m){var u=m.fieldProps,j=m.proFieldProps,T=(0,g.Z)(m,P);return(0,x.jsx)(o.Z,(0,A.Z)({valueType:"password",fieldProps:u,proFieldProps:j,filedConfig:{valueType:C}},T))},E=H;E.Password=I,E.displayName="ProFormComponent",z.Z=E},9750:function(ae,z,i){i.r(z),i.d(z,{default:function(){return _}});var A=i(25359),g=i.n(A),N=i(49811),o=i.n(N),x=i(12472),S=i(81308),P=i(66732),C=i(75782),H=i(58733),I=i(50959),E=i(46227),s=i(11527),m=["fieldProps","min","proFieldProps","max"],u=function(l,h){var p=l.fieldProps,b=l.min,f=l.proFieldProps,M=l.max,Z=(0,H.Z)(l,m);return(0,s.jsx)(E.Z,(0,C.Z)({valueType:"digit",fieldProps:(0,C.Z)({min:b,max:M},p),ref:h,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:f},Z))},j=I.forwardRef(u),T=j,q=i(31491),$=i(21362),L=i(86195),_=function(){return(0,s.jsx)(x._z,{title:"\u57FA\u7840\u914D\u7F6E",children:(0,s.jsx)(q.Z,{children:(0,s.jsxs)(S.A,{autoFocus:!1,submitter:{resetButtonProps:{type:"dashed"},submitButtonProps:{style:{display:"none"}}},request:o()(g()().mark(function B(){var l;return g()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,(0,L.request)("/api/storage",{params:{keys:["app.name","app.port","app.machine_id","app.started_at","app.compiled_at"].join(",")}});case 2:return l=p.sent,p.abrupt("return",l.data);case 4:case"end":return p.stop()}},B)})),onFinish:function(){var B=o()(g()().mark(function l(h){return g()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:$.ZP.loading("\u6B63\u5728\u63D0\u4EA4\u66F4\u6539..",2e4),(0,L.request)("/api/storage",{method:"put",data:h}).then(function(f){f.errors,$.ZP.destroy(),f!=null&&f.success?$.ZP.success("\u63D0\u4EA4\u6210\u529F\uFF01",1):$.ZP.warning("\u63D0\u4EA4\u5931\u8D25\uFF01",2)});case 2:case"end":return b.stop()}},l)}));return function(l){return B.apply(this,arguments)}}(),onBlur:function(l){var h=l.target.value,p=l.target.getAttribute("id"),b={};b[p]=h,(0,L.request)("/api/storage",{method:"put",data:b}).then(function(f){var M=!1;for(var Z in f.errors)M=!0,f.errors[Z]!="unchanged"&&$.ZP.warning(f.errors[Z],4);if(!M)if(p=="app.port"){$.ZP.success("\u7AEF\u53E3\u4FEE\u6539\u6210\u529F\uFF0C\u5373\u5C06\u8DF3\u8F6C\u9875\u9762\uFF01",5);var K=window.location.origin,U="80",D="";if(K.includes(":".concat(U,"/")))D=K.replace(":".concat(U,"/"),":".concat(h,"/"));else{var X=new URL(K);X.port=h,D=X.toString()}window.location.href=D}else $.ZP.success("\u63D0\u4EA4\u6210\u529F\uFF01",1)})},children:[(0,s.jsxs)(S.A.Group,{children:[(0,s.jsx)(P.Z,{name:"app.name",label:"\u673A\u5668\u4EBA\u540D\u79F0",tooltip:"\u540D\u79F0\u53EF\u80FD\u4F1A\u5F71\u54CD\u6027\u683C",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"}),(0,s.jsx)(P.Z,{width:"md",name:"app.machine_id",label:"\u673A\u5668\u7801",disabled:!0})]}),(0,s.jsxs)(S.A.Group,{children:[(0,s.jsx)(P.Z,{disabled:!0,name:"app.started_at",label:"\u542F\u52A8\u65F6\u95F4"}),(0,s.jsx)(P.Z,{disabled:!0,name:"app.compiled_at",label:"\u7F16\u8BD1\u7248\u672C"})]}),(0,s.jsx)(S.A.Group,{children:(0,s.jsx)(T,{width:"sm",tooltip:"\u8BF7\u8C28\u614E\u4FEE\u6539\uFF0C\u5982\u679C\u56E0\u6B64\u65E0\u6CD5\u8BBF\u95EE\u8BF7\u91CD\u65B0\u8FD0\u884C\u7A0B\u5E8F\u5E76\u4FEE\u6539\u7AEF\u53E3\u3002",name:"app.port",label:"\u7AEF\u53E3"})})]})})})}},31491:function(ae,z,i){i.d(z,{Z:function(){return X}});var A=i(84875),g=i.n(A),N=i(65395),o=i(50959),x=i(70458),S=i(85460),P=i(37454),C=i(53315),H=function(e,a){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,r=Object.getOwnPropertySymbols(e);t{var{prefixCls:a,className:n,hoverable:r=!0}=e,t=H(e,["prefixCls","className","hoverable"]);const{getPrefixCls:c}=o.useContext(x.E_),F=c("card",a),R=g()(`${F}-grid`,n,{[`${F}-grid-hoverable`]:r});return o.createElement("div",Object.assign({},t,{className:R}))},s=i(97624),m=i(74074),u=i(49272);const j=e=>{const{antCls:a,componentCls:n,cardHeadHeight:r,cardPaddingBase:t,cardHeadTabsMarginBottom:c}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${t}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},(0,u.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},u.vS),{[` +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[294],{66732:function(ae,z,i){var A=i(75782),g=i(58733),N=i(50959),o=i(46227),S=i(11527),P=["fieldProps","proFieldProps"],$=["fieldProps","proFieldProps"],C="text",w=function(m){var u=m.fieldProps,j=m.proFieldProps,B=(0,g.Z)(m,P);return(0,S.jsx)(o.Z,(0,A.Z)({valueType:C,fieldProps:u,filedConfig:{valueType:C},proFieldProps:j},B))},I=function(m){var u=m.fieldProps,j=m.proFieldProps,B=(0,g.Z)(m,$);return(0,S.jsx)(o.Z,(0,A.Z)({valueType:"password",fieldProps:u,proFieldProps:j,filedConfig:{valueType:C}},B))},E=w;E.Password=I,E.displayName="ProFormComponent",z.Z=E},9750:function(ae,z,i){i.r(z),i.d(z,{default:function(){return _}});var A=i(25359),g=i.n(A),N=i(49811),o=i.n(N),S=i(12472),P=i(81308),$=i(66732),C=i(75782),w=i(58733),I=i(50959),E=i(46227),s=i(11527),m=["fieldProps","min","proFieldProps","max"],u=function(l,h){var p=l.fieldProps,b=l.min,f=l.proFieldProps,M=l.max,Z=(0,w.Z)(l,m);return(0,s.jsx)(E.Z,(0,C.Z)({valueType:"digit",fieldProps:(0,C.Z)({min:b,max:M},p),ref:h,filedConfig:{defaultProps:{width:"100%"}},proFieldProps:f},Z))},j=I.forwardRef(u),B=j,q=i(31491),y=i(21362),H=i(86195),_=function(){return(0,s.jsx)(S._z,{title:"\u57FA\u7840\u914D\u7F6E",children:(0,s.jsx)(q.Z,{children:(0,s.jsxs)(P.A,{autoFocus:!1,submitter:{resetButtonProps:{type:"dashed"},submitButtonProps:{style:{display:"none"}}},request:o()(g()().mark(function T(){var l;return g()().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,(0,H.request)("/api/storage",{params:{keys:["app.name","app.port","app.password","app.machine_id","app.started_at","app.compiled_at"].join(",")}});case 2:return l=p.sent,p.abrupt("return",l.data);case 4:case"end":return p.stop()}},T)})),onFinish:function(){var T=o()(g()().mark(function l(h){return g()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:y.ZP.loading("\u6B63\u5728\u63D0\u4EA4\u66F4\u6539..",2e4),(0,H.request)("/api/storage",{method:"put",data:h}).then(function(f){f.errors,y.ZP.destroy(),f!=null&&f.success?y.ZP.success("\u63D0\u4EA4\u6210\u529F\uFF01",1):y.ZP.warning("\u63D0\u4EA4\u5931\u8D25\uFF01",2)});case 2:case"end":return b.stop()}},l)}));return function(l){return T.apply(this,arguments)}}(),onBlur:function(l){var h=l.target.value,p=l.target.getAttribute("id"),b={};b[p]=h,(0,H.request)("/api/storage",{method:"put",data:b}).then(function(f){var M=!1;for(var Z in f.errors)M=!0,f.errors[Z]!="unchanged"&&y.ZP.warning(f.errors[Z],4);if(!M)if(p=="app.port"){y.ZP.success("\u7AEF\u53E3\u4FEE\u6539\u6210\u529F\uFF0C\u5373\u5C06\u8DF3\u8F6C\u9875\u9762\uFF01",5);var K=window.location.origin,U="80",D="";if(K.includes(":".concat(U,"/")))D=K.replace(":".concat(U,"/"),":".concat(h,"/"));else{var X=new URL(K);X.port=h,D=X.toString()}window.location.href=D}else y.ZP.success("\u63D0\u4EA4\u6210\u529F\uFF01",1)})},children:[(0,s.jsxs)(P.A.Group,{children:[(0,s.jsx)($.Z,{name:"app.name",label:"\u673A\u5668\u4EBA\u540D\u79F0",tooltip:"\u540D\u79F0\u53EF\u80FD\u4F1A\u5F71\u54CD\u6027\u683C",placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"}),(0,s.jsx)($.Z,{width:"md",name:"app.password",label:"\u673A\u5668\u4EBA\u5BC6\u7801",tooltip:"\u4E3B\u8981\u7528\u4E8E\u7BA1\u7406\u5458\u9875\u9762\u767B\u5F55"})]}),(0,s.jsxs)(P.A.Group,{children:[(0,s.jsx)($.Z,{disabled:!0,name:"app.started_at",label:"\u542F\u52A8\u65F6\u95F4"}),(0,s.jsx)($.Z,{disabled:!0,name:"app.compiled_at",label:"\u7F16\u8BD1\u7248\u672C"}),(0,s.jsx)($.Z,{width:"md",name:"app.machine_id",label:"\u673A\u5668\u7801",disabled:!0})]}),(0,s.jsx)(P.A.Group,{children:(0,s.jsx)(B,{width:"sm",tooltip:"\u8BF7\u8C28\u614E\u4FEE\u6539\uFF0C\u5982\u679C\u56E0\u6B64\u65E0\u6CD5\u8BBF\u95EE\u8BF7\u91CD\u65B0\u8FD0\u884C\u7A0B\u5E8F\u5E76\u4FEE\u6539\u7AEF\u53E3\u3002",name:"app.port",label:"\u7AEF\u53E3"})})]})})})}},31491:function(ae,z,i){i.d(z,{Z:function(){return X}});var A=i(84875),g=i.n(A),N=i(65395),o=i(50959),S=i(70458),P=i(85460),$=i(37454),C=i(53315),w=function(e,a){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,r=Object.getOwnPropertySymbols(e);t{var{prefixCls:a,className:n,hoverable:r=!0}=e,t=w(e,["prefixCls","className","hoverable"]);const{getPrefixCls:c}=o.useContext(S.E_),F=c("card",a),L=g()(`${F}-grid`,n,{[`${F}-grid-hoverable`]:r});return o.createElement("div",Object.assign({},t,{className:L}))},s=i(97624),m=i(74074),u=i(49272);const j=e=>{const{antCls:a,componentCls:n,cardHeadHeight:r,cardPaddingBase:t,cardHeadTabsMarginBottom:c}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${t}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},(0,u.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},u.vS),{[` > ${n}-typography, > ${n}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${a}-tabs-top`]:{clear:"both",marginBottom:c,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},T=e=>{const{cardPaddingBase:a,colorBorderSecondary:n,cardShadow:r,lineWidth:t}=e;return{width:"33.33%",padding:a,border:0,borderRadius:0,boxShadow:` + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${a}-tabs-top`]:{clear:"both",marginBottom:c,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},B=e=>{const{cardPaddingBase:a,colorBorderSecondary:n,cardShadow:r,lineWidth:t}=e;return{width:"33.33%",padding:a,border:0,borderRadius:0,boxShadow:` ${t}px 0 0 0 ${n}, 0 ${t}px 0 0 ${n}, ${t}px ${t}px 0 0 ${n}, ${t}px 0 0 0 ${n} inset, 0 ${t}px 0 0 ${n} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},q=e=>{const{componentCls:a,iconCls:n,cardActionsLiMargin:r,cardActionsIconSize:t,colorBorderSecondary:c}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${c}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},(0,u.dF)()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${a}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:t,lineHeight:`${t*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${c}`}}})},$=e=>Object.assign(Object.assign({margin:`-${e.marginXXS}px 0`,display:"flex"},(0,u.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},u.vS),"&-description":{color:e.colorTextDescription}}),L=e=>{const{componentCls:a,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${a}-head`]:{padding:`0 ${n}px`,background:r,"&-title":{fontSize:e.fontSize}},[`${a}-body`]:{padding:`${e.padding}px ${n}px`}}},_=e=>{const{componentCls:a}=e;return{overflow:"hidden",[`${a}-body`]:{userSelect:"none"}}},B=e=>{const{componentCls:a,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:t,boxShadowTertiary:c,cardPaddingBase:F}=e;return{[a]:Object.assign(Object.assign({},(0,u.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${a}-bordered)`]:{boxShadow:c},[`${a}-head`]:j(e),[`${a}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${a}-body`]:Object.assign({padding:F,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},(0,u.dF)()),[`${a}-grid`]:T(e),[`${a}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${a}-actions`]:q(e),[`${a}-meta`]:$(e)}),[`${a}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${t}`,[`${a}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${a}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${a}-contain-grid`]:{[`${a}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${a}-loading) ${a}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${a}-contain-tabs`]:{[`> ${a}-head`]:{[`${a}-head-title, ${a}-extra`]:{paddingTop:r}}},[`${a}-type-inner`]:L(e),[`${a}-loading`]:_(e),[`${a}-rtl`]:{direction:"rtl"}}},l=e=>{const{componentCls:a,cardPaddingSM:n,cardHeadHeightSM:r}=e;return{[`${a}-small`]:{[`> ${a}-head`]:{minHeight:r,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${a}-head-wrapper`]:{[`> ${a}-extra`]:{fontSize:e.fontSize}}},[`> ${a}-body`]:{padding:n}},[`${a}-small${a}-contain-tabs`]:{[`> ${a}-head`]:{[`${a}-head-title, ${a}-extra`]:{minHeight:r,paddingTop:0,display:"flex",alignItems:"center"}}}}};var h=(0,s.Z)("Card",e=>{const a=(0,m.TS)(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[B(a),l(a)]}),p=function(e,a){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,r=Object.getOwnPropertySymbols(e);to.createElement("li",{style:{width:`${100/e.length}%`},key:`action-${r}`},o.createElement("span",null,n)))}var M=o.forwardRef((e,a)=>{const{prefixCls:n,className:r,rootClassName:t,extra:c,headStyle:F={},bodyStyle:R={},title:y,loading:J,bordered:k=!0,size:Q,type:w,cover:V,actions:ee,tabList:G,children:Y,activeTabKey:re,defaultActiveTabKey:oe,tabBarExtraContent:de,hoverable:se,tabProps:le={}}=e,ce=p(e,["prefixCls","className","rootClassName","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:pe,direction:ue}=o.useContext(x.E_),ge=O=>{var v;(v=e.onTabChange)===null||v===void 0||v.call(e,O)},me=o.useMemo(()=>{let O=!1;return o.Children.forEach(Y,v=>{v&&v.type&&v.type===E&&(O=!0)}),O},[Y]),d=pe("card",n),[fe,ve]=h(d),he=o.createElement(P.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},Y),te=re!==void 0,be=Object.assign(Object.assign({},le),{[te?"activeKey":"defaultActiveKey"]:te?re:oe,tabBarExtraContent:de});let ne;const W=(0,S.Z)(Q),$e=!W||W==="default"?"large":W,ie=G&&G.length?o.createElement(C.Z,Object.assign({size:$e},be,{className:`${d}-head-tabs`,onChange:ge,items:G.map(O=>{var v;return{label:O.tab,key:O.key,disabled:(v=O.disabled)!==null&&v!==void 0?v:!1}})})):null;(y||c||ie)&&(ne=o.createElement("div",{className:`${d}-head`,style:F},o.createElement("div",{className:`${d}-head-wrapper`},y&&o.createElement("div",{className:`${d}-head-title`},y),c&&o.createElement("div",{className:`${d}-extra`},c)),ie));const ye=V?o.createElement("div",{className:`${d}-cover`},V):null,xe=o.createElement("div",{className:`${d}-body`,style:R},J?he:Y),Se=ee&&ee.length?o.createElement("ul",{className:`${d}-actions`},b(ee)):null,Pe=(0,N.Z)(ce,["onTabChange"]),Ce=g()(d,{[`${d}-loading`]:J,[`${d}-bordered`]:k,[`${d}-hoverable`]:se,[`${d}-contain-grid`]:me,[`${d}-contain-tabs`]:G&&G.length,[`${d}-${W}`]:W,[`${d}-type-${w}`]:!!w,[`${d}-rtl`]:ue==="rtl"},r,t,ve);return fe(o.createElement("div",Object.assign({ref:a},Pe,{className:Ce}),ne,ye,xe,Se))}),Z=function(e,a){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,r=Object.getOwnPropertySymbols(e);t{const{prefixCls:a,className:n,avatar:r,title:t,description:c}=e,F=Z(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:R}=o.useContext(x.E_),y=R("card",a),J=g()(`${y}-meta`,n),k=r?o.createElement("div",{className:`${y}-meta-avatar`},r):null,Q=t?o.createElement("div",{className:`${y}-meta-title`},t):null,w=c?o.createElement("div",{className:`${y}-meta-description`},c):null,V=Q||w?o.createElement("div",{className:`${y}-meta-detail`},Q,w):null;return o.createElement("div",Object.assign({},F,{className:J}),k,V)};const D=M;D.Grid=E,D.Meta=U;var X=D}}]); + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},q=e=>{const{componentCls:a,iconCls:n,cardActionsLiMargin:r,cardActionsIconSize:t,colorBorderSecondary:c}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${c}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},(0,u.dF)()),{"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${a}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:t,lineHeight:`${t*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${c}`}}})},y=e=>Object.assign(Object.assign({margin:`-${e.marginXXS}px 0`,display:"flex"},(0,u.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},u.vS),"&-description":{color:e.colorTextDescription}}),H=e=>{const{componentCls:a,cardPaddingBase:n,colorFillAlter:r}=e;return{[`${a}-head`]:{padding:`0 ${n}px`,background:r,"&-title":{fontSize:e.fontSize}},[`${a}-body`]:{padding:`${e.padding}px ${n}px`}}},_=e=>{const{componentCls:a}=e;return{overflow:"hidden",[`${a}-body`]:{userSelect:"none"}}},T=e=>{const{componentCls:a,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:t,boxShadowTertiary:c,cardPaddingBase:F}=e;return{[a]:Object.assign(Object.assign({},(0,u.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${a}-bordered)`]:{boxShadow:c},[`${a}-head`]:j(e),[`${a}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${a}-body`]:Object.assign({padding:F,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},(0,u.dF)()),[`${a}-grid`]:B(e),[`${a}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${a}-actions`]:q(e),[`${a}-meta`]:y(e)}),[`${a}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${t}`,[`${a}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${a}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${a}-contain-grid`]:{[`${a}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${a}-loading) ${a}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${a}-contain-tabs`]:{[`> ${a}-head`]:{[`${a}-head-title, ${a}-extra`]:{paddingTop:r}}},[`${a}-type-inner`]:H(e),[`${a}-loading`]:_(e),[`${a}-rtl`]:{direction:"rtl"}}},l=e=>{const{componentCls:a,cardPaddingSM:n,cardHeadHeightSM:r}=e;return{[`${a}-small`]:{[`> ${a}-head`]:{minHeight:r,padding:`0 ${n}px`,fontSize:e.fontSize,[`> ${a}-head-wrapper`]:{[`> ${a}-extra`]:{fontSize:e.fontSize}}},[`> ${a}-body`]:{padding:n}},[`${a}-small${a}-contain-tabs`]:{[`> ${a}-head`]:{[`${a}-head-title, ${a}-extra`]:{minHeight:r,paddingTop:0,display:"flex",alignItems:"center"}}}}};var h=(0,s.Z)("Card",e=>{const a=(0,m.TS)(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[T(a),l(a)]}),p=function(e,a){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,r=Object.getOwnPropertySymbols(e);to.createElement("li",{style:{width:`${100/e.length}%`},key:`action-${r}`},o.createElement("span",null,n)))}var M=o.forwardRef((e,a)=>{const{prefixCls:n,className:r,rootClassName:t,extra:c,headStyle:F={},bodyStyle:L={},title:x,loading:J,bordered:k=!0,size:Q,type:R,cover:V,actions:ee,tabList:G,children:Y,activeTabKey:re,defaultActiveTabKey:oe,tabBarExtraContent:de,hoverable:se,tabProps:le={}}=e,ce=p(e,["prefixCls","className","rootClassName","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:pe,direction:ue}=o.useContext(S.E_),ge=O=>{var v;(v=e.onTabChange)===null||v===void 0||v.call(e,O)},me=o.useMemo(()=>{let O=!1;return o.Children.forEach(Y,v=>{v&&v.type&&v.type===E&&(O=!0)}),O},[Y]),d=pe("card",n),[fe,ve]=h(d),he=o.createElement($.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},Y),te=re!==void 0,be=Object.assign(Object.assign({},le),{[te?"activeKey":"defaultActiveKey"]:te?re:oe,tabBarExtraContent:de});let ne;const W=(0,P.Z)(Q),$e=!W||W==="default"?"large":W,ie=G&&G.length?o.createElement(C.Z,Object.assign({size:$e},be,{className:`${d}-head-tabs`,onChange:ge,items:G.map(O=>{var v;return{label:O.tab,key:O.key,disabled:(v=O.disabled)!==null&&v!==void 0?v:!1}})})):null;(x||c||ie)&&(ne=o.createElement("div",{className:`${d}-head`,style:F},o.createElement("div",{className:`${d}-head-wrapper`},x&&o.createElement("div",{className:`${d}-head-title`},x),c&&o.createElement("div",{className:`${d}-extra`},c)),ie));const ye=V?o.createElement("div",{className:`${d}-cover`},V):null,xe=o.createElement("div",{className:`${d}-body`,style:L},J?he:Y),Se=ee&&ee.length?o.createElement("ul",{className:`${d}-actions`},b(ee)):null,Pe=(0,N.Z)(ce,["onTabChange"]),Ce=g()(d,{[`${d}-loading`]:J,[`${d}-bordered`]:k,[`${d}-hoverable`]:se,[`${d}-contain-grid`]:me,[`${d}-contain-tabs`]:G&&G.length,[`${d}-${W}`]:W,[`${d}-type-${R}`]:!!R,[`${d}-rtl`]:ue==="rtl"},r,t,ve);return fe(o.createElement("div",Object.assign({ref:a},Pe,{className:Ce}),ne,ye,xe,Se))}),Z=function(e,a){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&a.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var t=0,r=Object.getOwnPropertySymbols(e);t{const{prefixCls:a,className:n,avatar:r,title:t,description:c}=e,F=Z(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:L}=o.useContext(S.E_),x=L("card",a),J=g()(`${x}-meta`,n),k=r?o.createElement("div",{className:`${x}-meta-avatar`},r):null,Q=t?o.createElement("div",{className:`${x}-meta-title`},t):null,R=c?o.createElement("div",{className:`${x}-meta-description`},c):null,V=Q||R?o.createElement("div",{className:`${x}-meta-detail`},Q,R):null;return o.createElement("div",Object.assign({},F,{className:J}),k,V)};const D=M;D.Grid=E,D.Meta=U;var X=D}}]); diff --git a/core/admin/p__Welcome.2dc61353.async.js b/core/admin/p__Welcome.2dc61353.async.js deleted file mode 100644 index c286706..0000000 --- a/core/admin/p__Welcome.2dc61353.async.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[185],{80023:function(U,A,o){o.r(A);var z=o(12472),f=o(86195),B=o(89974),i=o(31491),D=o(50959),l=o(11527),y=function(g){var x=g.title,b=g.href,$=g.index,u=g.desc,I=B.Z.useToken,W=I(),E=W.token;return(0,l.jsxs)("div",{style:{backgroundColor:E.colorBgContainer,boxShadow:E.boxShadow,borderRadius:"8px",fontSize:"14px",color:E.colorTextSecondary,lineHeight:"22px",padding:"16px 19px",minWidth:"220px",flex:1},children:[(0,l.jsxs)("div",{style:{display:"flex",gap:"4px",alignItems:"center"},children:[(0,l.jsx)("div",{style:{width:48,height:48,lineHeight:"22px",backgroundSize:"100%",textAlign:"center",padding:"8px 16px 16px 12px",color:"#FFF",fontWeight:"bold",backgroundImage:"url('https://gw.alipayobjects.com/zos/bmw-prod/daaf8d50-8e6d-4251-905d-676a24ddfa12.svg')"},children:$}),(0,l.jsx)("div",{style:{fontSize:"16px",color:E.colorText,paddingBottom:8},children:x})]}),(0,l.jsx)("div",{style:{fontSize:"14px",color:E.colorTextSecondary,textAlign:"justify",lineHeight:"22px",marginBottom:8},children:u}),(0,l.jsxs)("a",{href:b,target:"_blank",rel:"noreferrer",children:["\u4E86\u89E3\u66F4\u591A ",">"]})]})},M=function(){var g,x=B.Z.useToken(),b=x.token,$=(0,f.useModel)("@@initialState"),u=$.initialState;return(0,l.jsx)(z._z,{children:(0,l.jsx)(i.Z,{style:{borderRadius:8},bodyStyle:{backgroundImage:(u==null||(g=u.settings)===null||g===void 0?void 0:g.navTheme)==="realDark"?"background-image: linear-gradient(75deg, #1A1B1F 0%, #191C1F 100%)":"background-image: linear-gradient(75deg, #FBFDFF 0%, #F5F7FF 100%)"},children:(0,l.jsxs)("div",{style:{backgroundPosition:"100% -30%",backgroundRepeat:"no-repeat",backgroundSize:"274px auto",backgroundImage:"url('https://gw.alipayobjects.com/mdn/rms_a9745b/afts/img/A*BuFmQqsB2iAAAAAAAAAAAAAAARQnAQ')"},children:[(0,l.jsx)("div",{style:{fontSize:"20px",color:b.colorTextHeading},children:"\u6B22\u8FCE\u4F7F\u7528 Ant Design Pro"}),(0,l.jsx)("p",{style:{fontSize:"14px",color:b.colorTextSecondary,lineHeight:"22px",marginTop:16,marginBottom:32,width:"65%"},children:"Ant Design Pro \u662F\u4E00\u4E2A\u6574\u5408\u4E86 umi\uFF0CAnt Design \u548C ProComponents \u7684\u811A\u624B\u67B6\u65B9\u6848\u3002\u81F4\u529B\u4E8E\u5728\u8BBE\u8BA1\u89C4\u8303\u548C\u57FA\u7840\u7EC4\u4EF6\u7684\u57FA\u7840\u4E0A\uFF0C\u7EE7\u7EED\u5411\u4E0A\u6784\u5EFA\uFF0C\u63D0\u70BC\u51FA\u5178\u578B\u6A21\u677F/\u4E1A\u52A1\u7EC4\u4EF6/\u914D\u5957\u8BBE\u8BA1\u8D44\u6E90\uFF0C\u8FDB\u4E00\u6B65\u63D0\u5347\u4F01\u4E1A\u7EA7\u4E2D\u540E\u53F0\u4EA7\u54C1\u8BBE\u8BA1\u7814\u53D1\u8FC7\u7A0B\u4E2D\u7684\u300E\u7528\u6237\u300F\u548C\u300E\u8BBE\u8BA1\u8005\u300F\u7684\u4F53\u9A8C\u3002"}),(0,l.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:16},children:[(0,l.jsx)(y,{index:1,href:"https://umijs.org/docs/introduce/introduce",title:"\u4E86\u89E3 umi",desc:"umi \u662F\u4E00\u4E2A\u53EF\u6269\u5C55\u7684\u4F01\u4E1A\u7EA7\u524D\u7AEF\u5E94\u7528\u6846\u67B6,umi \u4EE5\u8DEF\u7531\u4E3A\u57FA\u7840\u7684\uFF0C\u540C\u65F6\u652F\u6301\u914D\u7F6E\u5F0F\u8DEF\u7531\u548C\u7EA6\u5B9A\u5F0F\u8DEF\u7531\uFF0C\u4FDD\u8BC1\u8DEF\u7531\u7684\u529F\u80FD\u5B8C\u5907\uFF0C\u5E76\u4EE5\u6B64\u8FDB\u884C\u529F\u80FD\u6269\u5C55\u3002"}),(0,l.jsx)(y,{index:2,title:"\u4E86\u89E3 ant design",href:"https://ant.design",desc:"antd \u662F\u57FA\u4E8E Ant Design \u8BBE\u8BA1\u4F53\u7CFB\u7684 React UI \u7EC4\u4EF6\u5E93\uFF0C\u4E3B\u8981\u7528\u4E8E\u7814\u53D1\u4F01\u4E1A\u7EA7\u4E2D\u540E\u53F0\u4EA7\u54C1\u3002"}),(0,l.jsx)(y,{index:3,title:"\u4E86\u89E3 Pro Components",href:"https://procomponents.ant.design",desc:"ProComponents \u662F\u4E00\u4E2A\u57FA\u4E8E Ant Design \u505A\u4E86\u66F4\u9AD8\u62BD\u8C61\u7684\u6A21\u677F\u7EC4\u4EF6\uFF0C\u4EE5 \u4E00\u4E2A\u7EC4\u4EF6\u5C31\u662F\u4E00\u4E2A\u9875\u9762\u4E3A\u5F00\u53D1\u7406\u5FF5\uFF0C\u4E3A\u4E2D\u540E\u53F0\u5F00\u53D1\u5E26\u6765\u66F4\u597D\u7684\u4F53\u9A8C\u3002"})]})]})})})};A.default=M},31491:function(U,A,o){o.d(A,{Z:function(){return ne}});var z=o(84875),f=o.n(z),B=o(65395),i=o(50959),D=o(70458),l=o(85460),y=o(37454),M=o(53315),H=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n{var{prefixCls:t,className:r,hoverable:a=!0}=e,n=H(e,["prefixCls","className","hoverable"]);const{getPrefixCls:s}=i.useContext(D.E_),m=s("card",t),v=f()(`${m}-grid`,r,{[`${m}-grid-hoverable`]:a});return i.createElement("div",Object.assign({},n,{className:v}))},b=o(97624),$=o(74074),u=o(49272);const I=e=>{const{antCls:t,componentCls:r,cardHeadHeight:a,cardPaddingBase:n,cardHeadTabsMarginBottom:s}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${n}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},(0,u.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},u.vS),{[` - > ${r}-typography, - > ${r}-typography-edit-content - `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:s,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},W=e=>{const{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:a,lineWidth:n}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` - ${n}px 0 0 0 ${r}, - 0 ${n}px 0 0 ${r}, - ${n}px ${n}px 0 0 ${r}, - ${n}px 0 0 0 ${r} inset, - 0 ${n}px 0 0 ${r} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},E=e=>{const{componentCls:t,iconCls:r,cardActionsLiMargin:a,cardActionsIconSize:n,colorBorderSecondary:s}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${s}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},(0,u.dF)()),{"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:n,lineHeight:`${n*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${s}`}}})},X=e=>Object.assign(Object.assign({margin:`-${e.marginXXS}px 0`,display:"flex"},(0,u.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},u.vS),"&-description":{color:e.colorTextDescription}}),Q=e=>{const{componentCls:t,cardPaddingBase:r,colorFillAlter:a}=e;return{[`${t}-head`]:{padding:`0 ${r}px`,background:a,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${r}px`}}},J=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},V=e=>{const{componentCls:t,cardShadow:r,cardHeadPadding:a,colorBorderSecondary:n,boxShadowTertiary:s,cardPaddingBase:m}=e;return{[t]:Object.assign(Object.assign({},(0,u.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:s},[`${t}-head`]:I(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:m,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},(0,u.dF)()),[`${t}-grid`]:W(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:E(e),[`${t}-meta`]:X(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${n}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:a}}},[`${t}-type-inner`]:Q(e),[`${t}-loading`]:J(e),[`${t}-rtl`]:{direction:"rtl"}}},Y=e=>{const{componentCls:t,cardPaddingSM:r,cardHeadHeightSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${r}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:a,paddingTop:0,display:"flex",alignItems:"center"}}}}};var _=(0,b.Z)("Card",e=>{const t=(0,$.TS)(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[V(t),Y(t)]}),q=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);ni.createElement("li",{style:{width:`${100/e.length}%`},key:`action-${a}`},i.createElement("span",null,r)))}var ee=i.forwardRef((e,t)=>{const{prefixCls:r,className:a,rootClassName:n,extra:s,headStyle:m={},bodyStyle:v={},title:p,loading:O,bordered:w=!0,size:j,type:C,cover:T,actions:L,tabList:S,children:P,activeTabKey:N,defaultActiveTabKey:re,tabBarExtraContent:ie,hoverable:oe,tabProps:de={}}=e,le=q(e,["prefixCls","className","rootClassName","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:se,direction:ue}=i.useContext(D.E_),ce=h=>{var c;(c=e.onTabChange)===null||c===void 0||c.call(e,h)},ge=i.useMemo(()=>{let h=!1;return i.Children.forEach(P,c=>{c&&c.type&&c.type===x&&(h=!0)}),h},[P]),d=se("card",r),[pe,me]=_(d),he=i.createElement(y.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},P),G=N!==void 0,Ee=Object.assign(Object.assign({},de),{[G?"activeKey":"defaultActiveKey"]:G?N:re,tabBarExtraContent:ie});let K;const F=(0,l.Z)(j),xe=!F||F==="default"?"large":F,Z=S&&S.length?i.createElement(M.Z,Object.assign({size:xe},Ee,{className:`${d}-head-tabs`,onChange:ce,items:S.map(h=>{var c;return{label:h.tab,key:h.key,disabled:(c=h.disabled)!==null&&c!==void 0?c:!1}})})):null;(p||s||Z)&&(K=i.createElement("div",{className:`${d}-head`,style:m},i.createElement("div",{className:`${d}-head-wrapper`},p&&i.createElement("div",{className:`${d}-head-title`},p),s&&i.createElement("div",{className:`${d}-extra`},s)),Z));const be=T?i.createElement("div",{className:`${d}-cover`},T):null,fe=i.createElement("div",{className:`${d}-body`,style:v},O?he:P),ye=L&&L.length?i.createElement("ul",{className:`${d}-actions`},k(L)):null,$e=(0,B.Z)(le,["onTabChange"]),ve=f()(d,{[`${d}-loading`]:O,[`${d}-bordered`]:w,[`${d}-hoverable`]:oe,[`${d}-contain-grid`]:ge,[`${d}-contain-tabs`]:S&&S.length,[`${d}-${F}`]:F,[`${d}-type-${C}`]:!!C,[`${d}-rtl`]:ue==="rtl"},a,n,me);return pe(i.createElement("div",Object.assign({ref:t},$e,{className:ve}),K,be,fe,ye))}),te=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,a=Object.getOwnPropertySymbols(e);n{const{prefixCls:t,className:r,avatar:a,title:n,description:s}=e,m=te(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:v}=i.useContext(D.E_),p=v("card",t),O=f()(`${p}-meta`,r),w=a?i.createElement("div",{className:`${p}-meta-avatar`},a):null,j=n?i.createElement("div",{className:`${p}-meta-title`},n):null,C=s?i.createElement("div",{className:`${p}-meta-description`},s):null,T=j||C?i.createElement("div",{className:`${p}-meta-detail`},j,C):null;return i.createElement("div",Object.assign({},m,{className:O}),w,T)};const R=ee;R.Grid=x,R.Meta=ae;var ne=R}}]); diff --git a/core/admin/p__Welcome.31f51469.async.js b/core/admin/p__Welcome.31f51469.async.js new file mode 100644 index 0000000..6bfdc14 --- /dev/null +++ b/core/admin/p__Welcome.31f51469.async.js @@ -0,0 +1,10 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[185],{80023:function(U,F,o){o.r(F);var P=o(12472),y=o(86195),A=o(89974),n=o(31491),D=o(50959),l=o(11527),$=function(g){var x=g.title,f=g.href,v=g.index,c=g.desc,I=A.Z.useToken,w=I(),b=w.token;return(0,l.jsxs)("div",{style:{backgroundColor:b.colorBgContainer,boxShadow:b.boxShadow,borderRadius:"8px",fontSize:"14px",color:b.colorTextSecondary,lineHeight:"22px",padding:"16px 19px",minWidth:"220px",flex:1},children:[(0,l.jsxs)("div",{style:{display:"flex",gap:"4px",alignItems:"center"},children:[(0,l.jsx)("div",{style:{width:48,height:48,lineHeight:"22px",backgroundSize:"100%",textAlign:"center",padding:"8px 16px 16px 12px",color:"#FFF",fontWeight:"bold",backgroundImage:"url('https://gw.alipayobjects.com/zos/bmw-prod/daaf8d50-8e6d-4251-905d-676a24ddfa12.svg')"},children:v}),(0,l.jsx)("div",{style:{fontSize:"16px",color:b.colorText,paddingBottom:8},children:x})]}),(0,l.jsx)("div",{style:{fontSize:"14px",color:b.colorTextSecondary,textAlign:"justify",lineHeight:"22px",marginBottom:8},children:c}),(0,l.jsxs)("a",{href:f,target:"_blank",rel:"noreferrer",children:["\u4E86\u89E3\u66F4\u591A ",">"]})]})},M=function(){var g,x=A.Z.useToken(),f=x.token,v=(0,y.useModel)("@@initialState"),c=v.initialState;return(0,l.jsx)(P._z,{children:(0,l.jsx)(n.Z,{style:{borderRadius:8},bodyStyle:{backgroundImage:(c==null||(g=c.settings)===null||g===void 0?void 0:g.navTheme)==="realDark"?"background-image: linear-gradient(75deg, #1A1B1F 0%, #191C1F 100%)":"background-image: linear-gradient(75deg, #FBFDFF 0%, #F5F7FF 100%)"},children:(0,l.jsxs)("div",{style:{backgroundPosition:"100% -30%",backgroundRepeat:"no-repeat",backgroundSize:"274px auto",backgroundImage:"url('https://gw.alipayobjects.com/mdn/rms_a9745b/afts/img/A*BuFmQqsB2iAAAAAAAAAAAAAAARQnAQ')"},children:[(0,l.jsx)("div",{style:{fontSize:"20px",color:f.colorTextHeading},children:"\u6B22\u8FCE\u4F7F\u7528 \u50BB\u599E\u673A\u5668\u4EBA"}),(0,l.jsx)("p",{style:{fontSize:"14px",color:f.colorTextSecondary,lineHeight:"22px",marginTop:16,marginBottom:32,width:"65%"},children:"\u50BB\u599E\u673A\u5668\u4EBA \u662F\u4E00\u4E2A\u7EDF\u4E00\u7684\u6D88\u606F\u5904\u7406\u5E73\u53F0\uFF0C\u65E8\u5728\u7B80\u5316\u7528\u6237\u5F00\u53D1\u6D41\u7A0B\uFF0C\u964D\u4F4E\u4F7F\u7528\u6210\u672C\u3002"}),(0,l.jsxs)("div",{style:{display:"flex",flexWrap:"wrap",gap:16},children:[(0,l.jsx)($,{index:1,href:"https://blog.imdraw.com",title:"\u4E86\u89E3 \u6D88\u606F\u642C\u8FD0",desc:"\u5FEB\u901F\u5C06\u4E0D\u540C\u5E73\u53F0\u6D88\u606F\u8FDB\u884C\u642C\u8FD0\u548C\u540C\u6B65\uFF0C\u652F\u6301\u767D\u540D\u5355\u91C7\u96C6\u3001\u5173\u952E\u8BCD\u6392\u9664\u3001\u811A\u672C\u5904\u7406\u548C\u6307\u5B9A\u673A\u5668\u4EBA\u7B49\u529F\u80FD\u3002"}),(0,l.jsx)($,{index:2,title:"\u4E86\u89E3 \u63D2\u4EF6\u7CFB\u7EDF",href:"https://github.com/cdle/sillyGirl#readme",desc:"\u6A21\u5757\u5316\u7684\u63D2\u4EF6\u7CFB\u7EDF\u8BBE\u8BA1\uFF0C\u5728\u7EBF\u7F16\u8F91\u53D1\u5E03\u811A\u672C\uFF0C\u652F\u6301\u70ED\u66F4\u65B0\u3002"}),(0,l.jsx)($,{index:3,title:"\u4E86\u89E3 \u50BB\u599E\u793E\u533A",href:"https://blog.imdraw.com",desc:"\u50BB\u599E\u793E\u533A\u81F4\u529B\u4E8E\u4E3A\u7528\u6237\u63D0\u4F9B\u4E00\u4E2A\u5B89\u5168\u3001\u8212\u9002\u7684\u4EA4\u6D41\u7A7A\u95F4\u3002\u5728\u50BB\u599E\u793E\u533A\uFF0C\u7528\u6237\u53EF\u4EE5\u53C2\u4E0E\u5404\u79CD\u8BDD\u9898\u8BA8\u8BBA\u3001\u5206\u4EAB\u81EA\u5DF1\u7684\u7ECF\u9A8C\u548C\u89C1\u89E3\uFF0C\u7ED3\u8BC6\u5FD7\u540C\u9053\u5408\u7684\u670B\u53CB\u3002"})]})]})})})};F.default=M},31491:function(U,F,o){o.d(F,{Z:function(){return re}});var P=o(84875),y=o.n(P),A=o(65395),n=o(50959),D=o(70458),l=o(85460),$=o(37454),M=o(53315),H=function(e,t){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(i[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{var{prefixCls:t,className:i,hoverable:a=!0}=e,r=H(e,["prefixCls","className","hoverable"]);const{getPrefixCls:s}=n.useContext(D.E_),m=s("card",t),S=y()(`${m}-grid`,i,{[`${m}-grid-hoverable`]:a});return n.createElement("div",Object.assign({},r,{className:S}))},f=o(97624),v=o(74074),c=o(49272);const I=e=>{const{antCls:t,componentCls:i,cardHeadHeight:a,cardPaddingBase:r,cardHeadTabsMarginBottom:s}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:a,marginBottom:-1,padding:`0 ${r}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},(0,c.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},c.vS),{[` + > ${i}-typography, + > ${i}-typography-edit-content + `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:s,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},w=e=>{const{cardPaddingBase:t,colorBorderSecondary:i,cardShadow:a,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` + ${r}px 0 0 0 ${i}, + 0 ${r}px 0 0 ${i}, + ${r}px ${r}px 0 0 ${i}, + ${r}px 0 0 0 ${i} inset, + 0 ${r}px 0 0 ${i} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:a}}},b=e=>{const{componentCls:t,iconCls:i,cardActionsLiMargin:a,cardActionsIconSize:r,colorBorderSecondary:s}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:e.colorBgContainer,borderTop:`${e.lineWidth}px ${e.lineType} ${s}`,display:"flex",borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `},(0,c.dF)()),{"& > li":{margin:a,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.cardActionsIconSize*2,fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${i}`]:{display:"inline-block",width:"100%",color:e.colorTextDescription,lineHeight:`${e.fontSize*e.lineHeight}px`,transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${i}`]:{fontSize:r,lineHeight:`${r*e.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${s}`}}})},X=e=>Object.assign(Object.assign({margin:`-${e.marginXXS}px 0`,display:"flex"},(0,c.dF)()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},c.vS),"&-description":{color:e.colorTextDescription}}),Q=e=>{const{componentCls:t,cardPaddingBase:i,colorFillAlter:a}=e;return{[`${t}-head`]:{padding:`0 ${i}px`,background:a,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${e.padding}px ${i}px`}}},J=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},V=e=>{const{componentCls:t,cardShadow:i,cardHeadPadding:a,colorBorderSecondary:r,boxShadowTertiary:s,cardPaddingBase:m}=e;return{[t]:Object.assign(Object.assign({},(0,c.Wf)(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:s},[`${t}-head`]:I(e),[`${t}-extra`]:{marginInlineStart:"auto",color:"",fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:m,borderRadius:` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},(0,c.dF)()),[`${t}-grid`]:w(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%"},img:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`}},[`${t}-actions`]:b(e),[`${t}-meta`]:X(e)}),[`${t}-bordered`]:{border:`${e.lineWidth}px ${e.lineType} ${r}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:i}},[`${t}-contain-grid`]:{[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:-e.lineWidth,marginInlineStart:-e.lineWidth,padding:0}},[`${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:a}}},[`${t}-type-inner`]:Q(e),[`${t}-loading`]:J(e),[`${t}-rtl`]:{direction:"rtl"}}},Y=e=>{const{componentCls:t,cardPaddingSM:i,cardHeadHeightSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${i}px`,fontSize:e.fontSize,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:i}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{minHeight:a,paddingTop:0,display:"flex",alignItems:"center"}}}}};var _=(0,f.Z)("Card",e=>{const t=(0,v.TS)(e,{cardShadow:e.boxShadowCard,cardHeadHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,cardHeadHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardHeadTabsMarginBottom:-e.padding-e.lineWidth,cardActionsLiMargin:`${e.paddingSM}px 0`,cardActionsIconSize:e.fontSize,cardPaddingSM:12});return[V(t),Y(t)]}),q=function(e,t){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(i[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);rn.createElement("li",{style:{width:`${100/e.length}%`},key:`action-${a}`},n.createElement("span",null,i)))}var ee=n.forwardRef((e,t)=>{const{prefixCls:i,className:a,rootClassName:r,extra:s,headStyle:m={},bodyStyle:S={},title:p,loading:O,bordered:L=!0,size:j,type:E,cover:T,actions:R,tabList:C,children:z,activeTabKey:N,defaultActiveTabKey:ie,tabBarExtraContent:ne,hoverable:oe,tabProps:de={}}=e,le=q(e,["prefixCls","className","rootClassName","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:se,direction:ce}=n.useContext(D.E_),ue=h=>{var u;(u=e.onTabChange)===null||u===void 0||u.call(e,h)},ge=n.useMemo(()=>{let h=!1;return n.Children.forEach(z,u=>{u&&u.type&&u.type===x&&(h=!0)}),h},[z]),d=se("card",i),[pe,me]=_(d),he=n.createElement($.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},z),G=N!==void 0,be=Object.assign(Object.assign({},de),{[G?"activeKey":"defaultActiveKey"]:G?N:ie,tabBarExtraContent:ne});let K;const B=(0,l.Z)(j),xe=!B||B==="default"?"large":B,Z=C&&C.length?n.createElement(M.Z,Object.assign({size:xe},be,{className:`${d}-head-tabs`,onChange:ue,items:C.map(h=>{var u;return{label:h.tab,key:h.key,disabled:(u=h.disabled)!==null&&u!==void 0?u:!1}})})):null;(p||s||Z)&&(K=n.createElement("div",{className:`${d}-head`,style:m},n.createElement("div",{className:`${d}-head-wrapper`},p&&n.createElement("div",{className:`${d}-head-title`},p),s&&n.createElement("div",{className:`${d}-extra`},s)),Z));const fe=T?n.createElement("div",{className:`${d}-cover`},T):null,ye=n.createElement("div",{className:`${d}-body`,style:S},O?he:z),$e=R&&R.length?n.createElement("ul",{className:`${d}-actions`},k(R)):null,ve=(0,A.Z)(le,["onTabChange"]),Se=y()(d,{[`${d}-loading`]:O,[`${d}-bordered`]:L,[`${d}-hoverable`]:oe,[`${d}-contain-grid`]:ge,[`${d}-contain-tabs`]:C&&C.length,[`${d}-${B}`]:B,[`${d}-type-${E}`]:!!E,[`${d}-rtl`]:ce==="rtl"},a,r,me);return pe(n.createElement("div",Object.assign({ref:t},ve,{className:Se}),K,fe,ye,$e))}),te=function(e,t){var i={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(i[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r{const{prefixCls:t,className:i,avatar:a,title:r,description:s}=e,m=te(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:S}=n.useContext(D.E_),p=S("card",t),O=y()(`${p}-meta`,i),L=a?n.createElement("div",{className:`${p}-meta-avatar`},a):null,j=r?n.createElement("div",{className:`${p}-meta-title`},r):null,E=s?n.createElement("div",{className:`${p}-meta-description`},s):null,T=j||E?n.createElement("div",{className:`${p}-meta-detail`},j,E):null;return n.createElement("div",Object.assign({},m,{className:O}),L,T)};const W=ee;W.Grid=x,W.Meta=ae;var re=W}}]); diff --git a/core/admin/umi.d87f33ac.js b/core/admin/umi.4dec6745.js similarity index 99% rename from core/admin/umi.d87f33ac.js rename to core/admin/umi.4dec6745.js index e41286a..281a9f4 100644 --- a/core/admin/umi.d87f33ac.js +++ b/core/admin/umi.4dec6745.js @@ -287,6 +287,6 @@ 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.`)}function f(c){return n(c)||i(c)||(0,l.Z)(c)||r()}},34242:function(h,y,e){"use strict";e.d(y,{Z:function(){return i}});var o=e(82604);function n(l,r){if((0,o.Z)(l)!=="object"||l===null)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var c=f.call(l,r||"default");if((0,o.Z)(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(l)}function i(l){var r=n(l,"string");return(0,o.Z)(r)==="symbol"?r:String(r)}},82604:function(h,y,e){"use strict";e.d(y,{Z:function(){return o}});function o(n){return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},o(n)}},7979:function(h,y,e){"use strict";e.d(y,{Z:function(){return n}});var o=e(45725);function n(i,l){if(i){if(typeof i=="string")return(0,o.Z)(i,l);var r=Object.prototype.toString.call(i).slice(8,-1);if(r==="Object"&&i.constructor&&(r=i.constructor.name),r==="Map"||r==="Set")return Array.from(i);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,o.Z)(i,l)}}},8681:function(h,y,e){"use strict";e.d(y,{Z:function(){return o}});function o(n,i){(i==null||i>n.length)&&(i=n.length);for(var l=0,r=new Array(i);l=i.length?{done:!0}:{done:!1,value:i[f++]}},e:function(g){throw g},f:c}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var u=!0,d=!1,m;return{s:function(){r=r.call(i)},n:function(){var g=r.next();return u=g.done,g},e:function(g){d=!0,m=g},f:function(){try{!u&&r.return!=null&&r.return()}finally{if(d)throw m}}}}},76614:function(h,y,e){"use strict";e.d(y,{Z:function(){return f}});function o(c){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(d){return d.__proto__||Object.getPrototypeOf(d)},o(c)}function n(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(c){return!1}}var i=e(26143),l=e(60790);function r(c,u){if(u&&((0,i.Z)(u)==="object"||typeof u=="function"))return u;if(u!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(0,l.Z)(c)}function f(c){var u=n();return function(){var m=o(c),b;if(u){var g=o(this).constructor;b=Reflect.construct(m,arguments,g)}else b=m.apply(this,arguments);return r(this,b)}}},24572:function(h,y,e){"use strict";e.d(y,{Z:function(){return n}});var o=e(1536);function n(i,l,r){return l=(0,o.Z)(l),l in i?Object.defineProperty(i,l,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[l]=r,i}},51163:function(h,y,e){"use strict";e.d(y,{Z:function(){return o}});function o(){return o=Object.assign?Object.assign.bind():function(n){for(var i=1;i=0)&&(r[c]=i[c]);return r}function n(i,l){if(i==null)return{};var r=o(i,l),f,c;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(i);for(c=0;c=0)&&Object.prototype.propertyIsEnumerable.call(i,f)&&(r[f]=i[f])}return r}},99932:function(h,y,e){"use strict";e.d(y,{Z:function(){return n}});var o=e(26143);function n(){"use strict";n=function(){return i};var i={},l=Object.prototype,r=l.hasOwnProperty,f=Object.defineProperty||function(B,D,w){B[D]=w.value},c=typeof Symbol=="function"?Symbol:{},u=c.iterator||"@@iterator",d=c.asyncIterator||"@@asyncIterator",m=c.toStringTag||"@@toStringTag";function b(B,D,w){return Object.defineProperty(B,D,{value:w,enumerable:!0,configurable:!0,writable:!0}),B[D]}try{b({},"")}catch(B){b=function(w,k,U){return w[k]=U}}function g(B,D,w,k){var U=D&&D.prototype instanceof M?D:M,Z=Object.create(U.prototype),J=new ne(k||[]);return f(Z,"_invoke",{value:V(B,w,J)}),Z}function x(B,D,w){try{return{type:"normal",arg:B.call(D,w)}}catch(k){return{type:"throw",arg:k}}}i.wrap=g;var T={};function M(){}function L(){}function $(){}var O={};b(O,u,function(){return this});var N=Object.getPrototypeOf,F=N&&N(N(oe([])));F&&F!==l&&r.call(F,u)&&(O=F);var I=$.prototype=M.prototype=Object.create(O);function A(B){["next","throw","return"].forEach(function(D){b(B,D,function(w){return this._invoke(D,w)})})}function R(B,D){function w(U,Z,J,ue){var Fe=x(B[U],B,Z);if(Fe.type!=="throw"){var xe=Fe.arg,Ce=xe.value;return Ce&&(0,o.Z)(Ce)=="object"&&r.call(Ce,"__await")?D.resolve(Ce.__await).then(function(De){w("next",De,J,ue)},function(De){w("throw",De,J,ue)}):D.resolve(Ce).then(function(De){xe.value=De,J(xe)},function(De){return w("throw",De,J,ue)})}ue(Fe.arg)}var k;f(this,"_invoke",{value:function(Z,J){function ue(){return new D(function(Fe,xe){w(Z,J,Fe,xe)})}return k=k?k.then(ue,ue):ue()}})}function V(B,D,w){var k="suspendedStart";return function(U,Z){if(k==="executing")throw new Error("Generator is already running");if(k==="completed"){if(U==="throw")throw Z;return q()}for(w.method=U,w.arg=Z;;){var J=w.delegate;if(J){var ue=H(J,w);if(ue){if(ue===T)continue;return ue}}if(w.method==="next")w.sent=w._sent=w.arg;else if(w.method==="throw"){if(k==="suspendedStart")throw k="completed",w.arg;w.dispatchException(w.arg)}else w.method==="return"&&w.abrupt("return",w.arg);k="executing";var Fe=x(B,D,w);if(Fe.type==="normal"){if(k=w.done?"completed":"suspendedYield",Fe.arg===T)continue;return{value:Fe.arg,done:w.done}}Fe.type==="throw"&&(k="completed",w.method="throw",w.arg=Fe.arg)}}}function H(B,D){var w=D.method,k=B.iterator[w];if(k===void 0)return D.delegate=null,w==="throw"&&B.iterator.return&&(D.method="return",D.arg=void 0,H(B,D),D.method==="throw")||w!=="return"&&(D.method="throw",D.arg=new TypeError("The iterator does not provide a '"+w+"' method")),T;var U=x(k,B.iterator,D.arg);if(U.type==="throw")return D.method="throw",D.arg=U.arg,D.delegate=null,T;var Z=U.arg;return Z?Z.done?(D[B.resultName]=Z.value,D.next=B.nextLoc,D.method!=="return"&&(D.method="next",D.arg=void 0),D.delegate=null,T):Z:(D.method="throw",D.arg=new TypeError("iterator result is not an object"),D.delegate=null,T)}function K(B){var D={tryLoc:B[0]};1 in B&&(D.catchLoc=B[1]),2 in B&&(D.finallyLoc=B[2],D.afterLoc=B[3]),this.tryEntries.push(D)}function G(B){var D=B.completion||{};D.type="normal",delete D.arg,B.completion=D}function ne(B){this.tryEntries=[{tryLoc:"root"}],B.forEach(K,this),this.reset(!0)}function oe(B){if(B){var D=B[u];if(D)return D.call(B);if(typeof B.next=="function")return B;if(!isNaN(B.length)){var w=-1,k=function U(){for(;++w=0;--U){var Z=this.tryEntries[U],J=Z.completion;if(Z.tryLoc==="root")return k("end");if(Z.tryLoc<=this.prev){var ue=r.call(Z,"catchLoc"),Fe=r.call(Z,"finallyLoc");if(ue&&Fe){if(this.prev=0;--k){var U=this.tryEntries[k];if(U.tryLoc<=this.prev&&r.call(U,"finallyLoc")&&this.prev=0;--w){var k=this.tryEntries[w];if(k.finallyLoc===D)return this.complete(k.completion,k.afterLoc),G(k),T}},catch:function(D){for(var w=this.tryEntries.length-1;w>=0;--w){var k=this.tryEntries[w];if(k.tryLoc===D){var U=k.completion;if(U.type==="throw"){var Z=U.arg;G(k)}return Z}}throw new Error("illegal catch attempt")},delegateYield:function(D,w,k){return this.delegate={iterator:oe(D),resultName:w,nextLoc:k},this.method==="next"&&(this.arg=void 0),T}},i}},91600:function(h,y,e){"use strict";e.d(y,{Z:function(){return r}});var o=e(20533);function n(f,c){var u=f==null?null:typeof Symbol!="undefined"&&f[Symbol.iterator]||f["@@iterator"];if(u!=null){var d,m,b,g,x=[],T=!0,M=!1;try{if(b=(u=u.call(f)).next,c===0){if(Object(u)!==u)return;T=!1}else for(;!(T=(d=b.call(u)).done)&&(x.push(d.value),x.length!==c);T=!0);}catch(L){M=!0,m=L}finally{try{if(!T&&u.return!=null&&(g=u.return(),Object(g)!==g))return}finally{if(M)throw m}}return x}}var i=e(22266),l=e(71885);function r(f,c){return(0,o.Z)(f)||n(f,c)||(0,i.Z)(f,c)||(0,l.Z)()}},9942:function(h,y,e){"use strict";e.d(y,{Z:function(){return r}});var o=e(20533),n=e(52987),i=e(22266),l=e(71885);function r(f){return(0,o.Z)(f)||(0,n.Z)(f)||(0,i.Z)(f)||(0,l.Z)()}},49544:function(h,y,e){"use strict";e.d(y,{Z:function(){return f}});var o=e(8681);function n(c){if(Array.isArray(c))return(0,o.Z)(c)}var i=e(52987),l=e(22266);function r(){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 f(c){return n(c)||(0,i.Z)(c)||(0,l.Z)(c)||r()}},1536:function(h,y,e){"use strict";e.d(y,{Z:function(){return i}});var o=e(26143);function n(l,r){if((0,o.Z)(l)!=="object"||l===null)return l;var f=l[Symbol.toPrimitive];if(f!==void 0){var c=f.call(l,r||"default");if((0,o.Z)(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(l)}function i(l){var r=n(l,"string");return(0,o.Z)(r)==="symbol"?r:String(r)}},26143:function(h,y,e){"use strict";e.d(y,{Z:function(){return o}});function o(n){return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},o(n)}},22266:function(h,y,e){"use strict";e.d(y,{Z:function(){return n}});var o=e(8681);function n(i,l){if(i){if(typeof i=="string")return(0,o.Z)(i,l);var r=Object.prototype.toString.call(i).slice(8,-1);if(r==="Object"&&i.constructor&&(r=i.constructor.name),r==="Map"||r==="Set")return Array.from(i);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,o.Z)(i,l)}}},71448:function(h,y,e){"use strict";e.d(y,{Ab:function(){return l},Fr:function(){return r},G$:function(){return i},K$:function(){return d},MS:function(){return o},h5:function(){return f},lK:function(){return M},uj:function(){return n}});var o="-ms-",n="-moz-",i="-webkit-",l="comm",r="rule",f="decl",c="@page",u="@media",d="@import",m="@charset",b="@viewport",g="@supports",x="@document",T="@namespace",M="@keyframes",L="@font-face",$="@counter-style",O="@font-feature-values"},42727:function(h,y,e){"use strict";e.d(y,{MY:function(){return l}});var o=e(71448),n=e(22697),i=e(97765);function l(d){return(0,i.cE)(r("",null,null,null,[""],d=(0,i.un)(d),0,[0],d))}function r(d,m,b,g,x,T,M,L,$){for(var O=0,N=0,F=M,I=0,A=0,R=0,V=1,H=1,K=1,G=0,ne="",oe=x,q=T,B=g,D=ne;H;)switch(R=G,G=(0,i.lp)()){case 40:if(R!=108&&(0,n.uO)(D,F-1)==58){(0,n.Cw)(D+=(0,n.gx)((0,i.iF)(G),"&","&\f"),"&\f")!=-1&&(K=-1);break}case 34:case 39:case 91:D+=(0,i.iF)(G);break;case 9:case 10:case 13:case 32:D+=(0,i.Qb)(R);break;case 92:D+=(0,i.kq)((0,i.Ud)()-1,7);continue;case 47:switch((0,i.fj)()){case 42:case 47:(0,n.R3)(c((0,i.q6)((0,i.lp)(),(0,i.Ud)()),m,b),$);break;default:D+="/"}break;case 123*V:L[O++]=(0,n.to)(D)*K;case 125*V:case 59:case 0:switch(G){case 0:case 125:H=0;case 59+N:A>0&&(0,n.to)(D)-F&&(0,n.R3)(A>32?u(D+";",g,b,F-1):u((0,n.gx)(D," ","")+";",g,b,F-2),$);break;case 59:D+=";";default:if((0,n.R3)(B=f(D,m,b,O,N,x,L,ne,oe=[],q=[],F),T),G===123)if(N===0)r(D,m,B,B,oe,T,F,L,q);else switch(I===99&&(0,n.uO)(D,3)===110?100:I){case 100:case 109:case 115:r(d,B,B,g&&(0,n.R3)(f(d,B,B,0,0,x,L,ne,x,oe=[],F),q),x,q,F,L,g?oe:q);break;default:r(D,B,B,B,[""],q,0,L,q)}}O=N=A=0,V=K=1,ne=D="",F=M;break;case 58:F=1+(0,n.to)(D),A=R;default:if(V<1){if(G==123)--V;else if(G==125&&V++==0&&(0,i.mp)()==125)continue}switch(D+=(0,n.Dp)(G),G*V){case 38:K=N>0?1:(D+="\f",-1);break;case 44:L[O++]=((0,n.to)(D)-1)*K,K=1;break;case 64:(0,i.fj)()===45&&(D+=(0,i.iF)((0,i.lp)())),I=(0,i.fj)(),N=F=(0,n.to)(ne=D+=(0,i.QU)((0,i.Ud)())),G++;break;case 45:R===45&&(0,n.to)(D)==2&&(V=0)}}return T}function f(d,m,b,g,x,T,M,L,$,O,N){for(var F=x-1,I=x===0?T:[""],A=(0,n.Ei)(I),R=0,V=0,H=0;R0?I[K]+" "+G:(0,n.gx)(G,/&\f/g,I[K])))&&($[H++]=ne);return(0,i.dH)(d,m,b,x===0?o.Fr:L,$,O,N)}function c(d,m,b){return(0,i.dH)(d,m,b,o.Ab,(0,n.Dp)((0,i.Tb)()),(0,n.tb)(d,2,-2),0)}function u(d,m,b,g){return(0,i.dH)(d,m,b,o.h5,(0,n.tb)(d,0,g),(0,n.tb)(d,g+1,-1),g)}},90137:function(h,y,e){"use strict";e.d(y,{P:function(){return l},q:function(){return i}});var o=e(71448),n=e(22697);function i(r,f){for(var c="",u=(0,n.Ei)(r),d=0;d0?(0,o.uO)(c,--r):0,i--,f===10&&(i=1,n--),f}function g(){return f=r2||L(f)>3?"":" "}function A(G){for(;g();)switch(L(f)){case 0:append(K(r-1),G);break;case 2:append(N(f),G);break;default:append(from(f),G)}return G}function R(G,ne){for(;--ne&&g()&&!(f<48||f>102||f>57&&f<65||f>70&&f<97););return M(G,T()+(ne<6&&x()==32&&g()==32))}function V(G){for(;g();)switch(f){case G:return r;case 34:case 39:G!==34&&G!==39&&V(f);break;case 40:G===41&&V(G);break;case 92:g();break}return r}function H(G,ne){for(;g()&&G+f!==57;)if(G+f===84&&x()===47)break;return"/*"+M(ne,r-1)+"*"+(0,o.Dp)(G===47?G:g())}function K(G){for(;!L(x());)g();return M(G,r)}},22697:function(h,y,e){"use strict";e.d(y,{$e:function(){return T},Cw:function(){return u},Dp:function(){return n},EQ:function(){return f},Ei:function(){return g},R3:function(){return x},Wn:function(){return o},f0:function(){return i},fy:function(){return r},gx:function(){return c},tb:function(){return m},to:function(){return b},uO:function(){return d},vp:function(){return l}});var o=Math.abs,n=String.fromCharCode,i=Object.assign;function l(M,L){return d(M,0)^45?(((L<<2^d(M,0))<<2^d(M,1))<<2^d(M,2))<<2^d(M,3):0}function r(M){return M.trim()}function f(M,L){return(M=L.exec(M))?M[0]:M}function c(M,L,$){return M.replace(L,$)}function u(M,L){return M.indexOf(L)}function d(M,L){return M.charCodeAt(L)|0}function m(M,L,$){return M.slice(L,$)}function b(M){return M.length}function g(M){return M.length}function x(M,L){return L.push(M),M}function T(M,L){return M.map(L).join("")}},94083:function(h,y,e){"use strict";e.d(y,{J$:function(){return Je},ZP:function(){return _e},kY:function(){return Q}});var o=e(50959),n=e(4322);const i=new WeakMap,l={},r={},f=()=>{},c=f(),u=Object,d=Ze=>Ze===c,m=Ze=>typeof Ze=="function",b=(Ze,mt)=>Kp(Kp({},Ze),mt),g="undefined",x=typeof window!=g,T=typeof document!=g,M=()=>x&&typeof window.requestAnimationFrame!=g,L=(Ze,mt)=>{const Et=i.get(Ze);return[()=>Ze.get(mt)||l,pe=>{if(!d(mt)){const We=Ze.get(mt);mt in r||(r[mt]=We),Et[5](mt,b(We,pe),We||l)}},Et[6],()=>!d(mt)&&mt in r?r[mt]:Ze.get(mt)||l]},$=new WeakMap;let O=0;const N=Ze=>{const mt=typeof Ze,Et=Ze&&Ze.constructor,pe=Et==Date;let We,Ke;if(u(Ze)===Ze&&!pe&&Et!=RegExp){if(We=$.get(Ze),We)return We;if(We=++O+"~",$.set(Ze,We),Et==Array){for(We="@",Ke=0;KeF,[A,R]=x&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[f,f],V=()=>{const Ze=T&&document.visibilityState;return d(Ze)||Ze!=="hidden"},H=Ze=>(T&&document.addEventListener("visibilitychange",Ze),A("focus",Ze),()=>{T&&document.removeEventListener("visibilitychange",Ze),R("focus",Ze)}),K=Ze=>{const mt=()=>{F=!0,Ze()},Et=()=>{F=!1};return A("online",mt),A("offline",Et),()=>{R("online",mt),R("offline",Et)}},G={isOnline:I,isVisible:V},ne={initFocus:H,initReconnect:K},oe=!o.useId,q=!x||"Deno"in window,B=Ze=>M()?window.requestAnimationFrame(Ze):setTimeout(Ze,1),D=q?o.useEffect:o.useLayoutEffect,w=typeof navigator!="undefined"&&navigator.connection,k=!q&&w&&(["slow-2g","2g"].includes(w.effectiveType)||w.saveData),U=Ze=>{if(m(Ze))try{Ze=Ze()}catch(Et){Ze=""}const mt=Ze;return Ze=typeof Ze=="string"?Ze:(Array.isArray(Ze)?Ze.length:Ze)?N(Ze):"",[Ze,mt]};let Z=0;const J=()=>++Z,ue=0,Fe=1,xe=2;var Ce={__proto__:null,FOCUS_EVENT:ue,RECONNECT_EVENT:Fe,MUTATE_EVENT:xe};function De(...Ze){return Dv(this,null,function*(){const[mt,Et,pe,We]=Ze,Ke=b({populateCache:!0,throwOnError:!0},typeof We=="boolean"?{revalidate:We}:We||{});let pt=Ke.populateCache;const Ct=Ke.rollbackOnError;let Ut=Ke.optimisticData;const cn=Ke.revalidate!==!1,Ne=nt=>typeof Ct=="function"?Ct(nt):Ct!==!1,Me=Ke.throwOnError;if(m(Et)){const nt=Et,Mt=[],Nt=mt.keys();for(let xt=Nt.next();!xt.done;xt=Nt.next()){const fn=xt.value;!fn.startsWith("$inf$")&&nt(mt.get(fn)._k)&&Mt.push(fn)}return Promise.all(Mt.map(at))}return at(Et);function at(nt){return Dv(this,null,function*(){const[Mt]=U(nt);if(!Mt)return;const[Nt,xt]=L(mt,Mt),[fn,zn,Mn]=i.get(mt),Tn=fn[Mt],or=()=>cn&&(delete Mn[Mt],Tn&&Tn[0])?Tn[0](xe).then(()=>Nt().data):Nt().data;if(Ze.length<3)return or();let Qn=pe,In;const Dn=J();zn[Mt]=[Dn,0];const At=!d(Ut),kt=Nt(),jt=kt.data,Jt=kt._c,pn=d(Jt)?jt:Jt;if(At&&(Ut=m(Ut)?Ut(pn):Ut,xt({data:Ut,_c:pn})),m(Qn))try{Qn=Qn(pn)}catch(bn){In=bn}if(Qn&&m(Qn.then))if(Qn=yield Qn.catch(bn=>{In=bn}),Dn!==zn[Mt][0]){if(In)throw In;return Qn}else In&&At&&Ne(In)&&(pt=!0,Qn=pn,xt({data:Qn,_c:c}));pt&&(In||(m(pt)&&(Qn=pt(Qn,pn)),xt({data:Qn,_c:c}))),zn[Mt][1]=J();const Fn=yield or();if(xt({_c:c}),In){if(Me)throw In;return}return pt?Fn:Qn})}})}const He=(Ze,mt)=>{for(const Et in Ze)Ze[Et][0]&&Ze[Et][0](mt)},Ve=(Ze,mt)=>{if(!i.has(Ze)){const Et=b(ne,mt),pe={},We=De.bind(c,Ze);let Ke=f;const pt={},Ct=(Ne,Me)=>{const at=pt[Ne]||[];return pt[Ne]=at,at.push(Me),()=>at.splice(at.indexOf(Me),1)},Ut=(Ne,Me,at)=>{Ze.set(Ne,Me);const nt=pt[Ne];if(nt)for(let Mt=nt.length;Mt--;)nt[Mt](Me,at)},cn=()=>{if(!i.has(Ze)&&(i.set(Ze,[pe,{},{},{},We,Ut,Ct]),!q)){const Ne=Et.initFocus(setTimeout.bind(c,He.bind(c,pe,ue))),Me=Et.initReconnect(setTimeout.bind(c,He.bind(c,pe,Fe)));Ke=()=>{Ne&&Ne(),Me&&Me(),i.delete(Ze)}}};return cn(),[Ze,We,cn,Ke]}return[Ze,i.get(Ze)[4]]},Ie=(Ze,mt,Et,pe,We)=>{const Ke=Et.errorRetryCount,pt=We.retryCount,Ct=~~((Math.random()+.5)*(1<<(pt<8?pt:8)))*Et.errorRetryInterval;!d(Ke)&&pt>Ke||setTimeout(pe,Ct,We)},Le=(Ze,mt)=>N(Ze)==N(mt),[dt,Pt]=Ve(new Map),Tt=b({onLoadingSlow:f,onSuccess:f,onError:f,onErrorRetry:Ie,onDiscarded:f,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:k?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:k?5e3:3e3,compare:Le,isPaused:()=>!1,cache:dt,mutate:Pt,fallback:{}},G),St=(Ze,mt)=>{const Et=b(Ze,mt);if(mt){const{use:pe,fallback:We}=Ze,{use:Ke,fallback:pt}=mt;pe&&Ke&&(Et.use=pe.concat(Ke)),We&&pt&&(Et.fallback=b(We,pt))}return Et},Lt=(0,o.createContext)({}),_=Ze=>{const{value:mt}=Ze,Et=(0,o.useContext)(Lt),pe=m(mt),We=(0,o.useMemo)(()=>pe?mt(Et):mt,[pe,Et,mt]),Ke=(0,o.useMemo)(()=>pe?We:St(Et,We),[pe,Et,We]),pt=We&&We.provider,[Ct]=(0,o.useState)(()=>pt?Ve(pt(Ke.cache||dt),We):c);return Ct&&(Ke.cache=Ct[0],Ke.mutate=Ct[1]),D(()=>{if(Ct)return Ct[2]&&Ct[2](),Ct[3]},[]),(0,o.createElement)(Lt.Provider,b(Ze,{value:Ke}))},j=x&&window.__SWR_DEVTOOLS_USE__,S=j?window.__SWR_DEVTOOLS_USE__:[],E=()=>{j&&(window.__SWR_DEVTOOLS_REACT__=o)},Y=Ze=>m(Ze[1])?[Ze[0],Ze[1],Ze[2]||{}]:[Ze[0],null,(Ze[1]===null?Ze[2]:Ze[1])||{}],Q=()=>b(Tt,(0,o.useContext)(Lt)),se=(Ze,mt)=>{const Et=U(Ze)[0],[,,,pe]=i.get(dt);if(pe[Et])return pe[Et];const We=mt(Ze);return pe[Et]=We,We},ye=Ze=>(mt,Et,pe)=>Ze(mt,Et&&((...Ke)=>{const pt=U(mt)[0],[,,,Ct]=i.get(dt),Ut=Ct[pt];return Ut?(delete Ct[pt],Ut):Et(...Ke)}),pe),re=S.concat(ye),he=Ze=>function(...Et){const pe=Q(),[We,Ke,pt]=Y(Et),Ct=St(pe,pt);let Ut=Ze;const{use:cn}=Ct,Ne=(cn||[]).concat(re);for(let Me=Ne.length;Me--;)Ut=Ne[Me](Ut);return Ut(We,Ke||Ct.fetcher||null,Ct)},ot=Ze=>{const mt=useState({})[1],Et=useRef(!1),pe=useRef(Ze),We=useRef({data:!1,error:!1,isValidating:!1}),Ke=useCallback(pt=>{let Ct=!1;const Ut=pe.current;for(const cn in pt){const Ne=cn;Ut[Ne]!==pt[Ne]&&(Ut[Ne]=pt[Ne],We.current[Ne]&&(Ct=!0))}Ct&&!Et.current&&(oe?mt({}):React.startTransition(()=>mt({})))},[]);return D(()=>(Et.current=!1,()=>{Et.current=!0})),[pe,We.current,Ke]},Ue=(Ze,mt,Et)=>{const pe=mt[Ze]||(mt[Ze]=[]);return pe.push(Et),()=>{const We=pe.indexOf(Et);We>=0&&(pe[We]=pe[pe.length-1],pe.pop())}},Se=(Ze,mt)=>(...Et)=>{const[pe,We,Ke]=Y(Et),pt=(Ke.use||[]).concat(mt);return Ze(pe,We,KC(Kp({},Ke),{use:pt}))};E();const tt={dedupe:!0},gt=(Ze,mt,Et)=>{const{cache:pe,compare:We,suspense:Ke,fallbackData:pt,revalidateOnMount:Ct,revalidateIfStale:Ut,refreshInterval:cn,refreshWhenHidden:Ne,refreshWhenOffline:Me,keepPreviousData:at}=Et,[nt,Mt,Nt]=i.get(pe),[xt,fn]=U(Ze),zn=(0,o.useRef)(!1),Mn=(0,o.useRef)(!1),Tn=(0,o.useRef)(xt),or=(0,o.useRef)(mt),Qn=(0,o.useRef)(Et),In=()=>Qn.current,Dn=()=>In().isVisible()&&In().isOnline(),[At,kt,jt,Jt]=L(pe,xt),pn=(0,o.useRef)({}).current,Fn=d(pt)?Et.fallback[xt]:pt,bn=(_n,er)=>{let Tr=!0;for(const Ir in pn){const Sr=Ir;Sr==="data"?We(er[Sr],_n[Sr])||d(_n[Sr])&&We(er[Sr],qn)||(Tr=!1):er[Sr]!==_n[Sr]&&(Tr=!1)}return Tr},Zn=(0,o.useMemo)(()=>{const _n=(()=>!xt||!mt?!1:d(Ct)?In().isPaused()||Ke?!1:d(Ut)?!0:Ut:Ct)(),er=Sr=>{const rt=b(Sr);return delete rt._k,_n?Kp({isValidating:!0,isLoading:!0},rt):rt};let Tr=er(At());const Ir=er(Jt());return[()=>{const Sr=er(At());return bn(Sr,Tr)?Tr:Tr=Sr},()=>Ir]},[pe,xt]),Jn=(0,n.useSyncExternalStore)((0,o.useCallback)(_n=>jt(xt,(er,Tr)=>{bn(Tr,er)||_n()}),[pe,xt]),Zn[0],Zn[1]),sr=!zn.current,br=nt[xt]&&nt[xt].length>0,Or=Jn.data,ur=d(Or)?Fn:Or,cr=Jn.error,Pr=(0,o.useRef)(ur),qn=at?d(Or)?Pr.current:Or:ur,Sa=(()=>br&&!d(cr)?!1:sr&&!d(Ct)?Ct:In().isPaused()?!1:Ke?d(ur)?!1:Ut:d(ur)||Ut)(),ya=!!(xt&&mt&&sr&&Sa),Pa=d(Jn.isValidating)?ya:Jn.isValidating,$a=d(Jn.isLoading)?ya:Jn.isLoading,fa=(0,o.useCallback)(_n=>Dv(this,null,function*(){const er=or.current;if(!xt||!er||Mn.current||In().isPaused())return!1;let Tr,Ir,Sr=!0;const rt=_n||{},Xe=!Nt[xt]||!rt.dedupe,ut=()=>oe?!Mn.current&&xt===Tn.current&&zn.current:xt===Tn.current,st={isValidating:!1,isLoading:!1},It=()=>{kt(st)},Ye=()=>{const le=Nt[xt];le&&le[1]===Ir&&delete Nt[xt]},me={isValidating:!0};d(At().data)&&(me.isLoading=!0);try{if(Xe&&(kt(me),Et.loadingTimeout&&d(At().data)&&setTimeout(()=>{Sr&&ut()&&In().onLoadingSlow(xt,Et)},Et.loadingTimeout),Nt[xt]=[er(fn),J()]),[Tr,Ir]=Nt[xt],Tr=yield Tr,Xe&&setTimeout(Ye,Et.dedupingInterval),!Nt[xt]||Nt[xt][1]!==Ir)return Xe&&ut()&&In().onDiscarded(xt),!1;st.error=c;const le=Mt[xt];if(!d(le)&&(Ir<=le[0]||Ir<=le[1]||le[1]===0))return It(),Xe&&ut()&&In().onDiscarded(xt),!1;const Ee=At().data;st.data=We(Ee,Tr)?Ee:Tr,Xe&&ut()&&In().onSuccess(Tr,xt,Et)}catch(le){Ye();const Ee=In(),{shouldRetryOnError:fe}=Ee;Ee.isPaused()||(st.error=le,Xe&&ut()&&(Ee.onError(le,xt,Ee),(fe===!0||m(fe)&&fe(le))&&Dn()&&Ee.onErrorRetry(le,xt,Ee,fa,{retryCount:(rt.retryCount||0)+1,dedupe:!0})))}return Sr=!1,It(),!0}),[xt,pe]),tr=(0,o.useCallback)((..._n)=>De(pe,Tn.current,..._n),[]);if(D(()=>{or.current=mt,Qn.current=Et,d(Or)||(Pr.current=Or)}),D(()=>{if(!xt)return;const _n=fa.bind(c,tt);let er=0;const Ir=Ue(xt,nt,Sr=>{if(Sr==Ce.FOCUS_EVENT){const rt=Date.now();In().revalidateOnFocus&&rt>er&&Dn()&&(er=rt+In().focusThrottleInterval,_n())}else if(Sr==Ce.RECONNECT_EVENT)In().revalidateOnReconnect&&Dn()&&_n();else if(Sr==Ce.MUTATE_EVENT)return fa()});return Mn.current=!1,Tn.current=xt,zn.current=!0,kt({_k:fn}),Sa&&(d(ur)||q?_n():B(_n)),()=>{Mn.current=!0,Ir()}},[xt]),D(()=>{let _n;function er(){const Ir=m(cn)?cn(ur):cn;Ir&&_n!==-1&&(_n=setTimeout(Tr,Ir))}function Tr(){!At().error&&(Ne||In().isVisible())&&(Me||In().isOnline())?fa(tt).then(er):er()}return er(),()=>{_n&&(clearTimeout(_n),_n=-1)}},[cn,Ne,Me,xt]),(0,o.useDebugValue)(qn),Ke&&d(ur)&&xt)throw!oe&&q?new Error("Fallback data is required when using suspense in SSR."):(or.current=mt,Qn.current=Et,Mn.current=!1,d(cr)?fa(tt):cr);return{mutate:tr,get data(){return pn.data=!0,qn},get error(){return pn.error=!0,cr},get isValidating(){return pn.isValidating=!0,Pa},get isLoading(){return pn.isLoading=!0,$a}}},Je=u.defineProperty(_,"defaultValue",{value:Tt}),Dt=Ze=>serialize(Ze)[0];var _e=he(gt)}},Ls={};function ve(h){var y=Ls[h];if(y!==void 0)return y.exports;var e=Ls[h]={id:h,loaded:!1,exports:{}};return yl[h].call(e.exports,e,e.exports,ve),e.loaded=!0,e.exports}ve.m=yl,function(){ve.n=function(h){var y=h&&h.__esModule?function(){return h.default}:function(){return h};return ve.d(y,{a:y}),y}}(),function(){var h=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},y;ve.t=function(e,o){if(o&1&&(e=this(e)),o&8||typeof e=="object"&&e&&(o&4&&e.__esModule||o&16&&typeof e.then=="function"))return e;var n=Object.create(null);ve.r(n);var i={};y=y||[null,h({}),h([]),h(h)];for(var l=o&2&&e;typeof l=="object"&&!~y.indexOf(l);l=h(l))Object.getOwnPropertyNames(l).forEach(function(r){i[r]=function(){return e[r]}});return i.default=function(){return e},ve.d(n,i),n}}(),function(){ve.d=function(h,y){for(var e in y)ve.o(y,e)&&!ve.o(h,e)&&Object.defineProperty(h,e,{enumerable:!0,get:y[e]})}}(),function(){ve.f={},ve.e=function(h){return Promise.all(Object.keys(ve.f).reduce(function(y,e){return ve.f[e](h,y),y},[]))}}(),function(){ve.u=function(h){return""+({81:"p__Message__Noreply__index",96:"p__Plugin__Share__index",145:"p__Plugin__Subscribe__index",185:"p__Welcome",274:"p__Carry__index",294:"p__Basic__index",301:"t__plugin-layout__Layout",354:"p__Storage__index",366:"p__User__Login__index",398:"p__Script__index",402:"p__Reply__index",430:"p__Master__index",538:"p__Message__Private__index",571:"p__404",737:"p__Plugin__Publish__index",966:"p__Message__Listen__index"}[h]||h)+"."+{54:"698cd806",81:"7e4d6d65",96:"b689ed3b",145:"122c4cdc",164:"3f5b3c97",185:"2dc61353",274:"fcdd491c",294:"111bb3a5",301:"2ba5d821",315:"ca5fa681",354:"e2189b48",361:"a6a74763",366:"c4f55394",398:"b7c150f4",402:"bf015c15",430:"570baffc",454:"045543df",472:"ccfb3d48",538:"31d914cd",571:"7e3f819c",630:"42a3526e",684:"9d8c9675",691:"daa9ab49",737:"3ba2cf00",792:"138633da",922:"f8147359",964:"43acb396",966:"c2e6f837",989:"19fa4015"}[h]+".async.js"}}(),function(){ve.miniCssF=function(h){return"t__plugin-layout__Layout.74b4118c.chunk.css"}}(),function(){ve.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(h){if(typeof window=="object")return window}}()}(),function(){ve.o=function(h,y){return Object.prototype.hasOwnProperty.call(h,y)}}(),function(){var h={},y="ant-design-pro:";ve.l=function(e,o,n,i){if(h[e]){h[e].push(o);return}var l,r;if(n!==void 0)for(var f=document.getElementsByTagName("script"),c=0;c0&&(0,n.to)(D)-F&&(0,n.R3)(A>32?u(D+";",g,b,F-1):u((0,n.gx)(D," ","")+";",g,b,F-2),$);break;case 59:D+=";";default:if((0,n.R3)(B=f(D,m,b,O,N,x,L,ne,oe=[],q=[],F),T),G===123)if(N===0)r(D,m,B,B,oe,T,F,L,q);else switch(I===99&&(0,n.uO)(D,3)===110?100:I){case 100:case 109:case 115:r(d,B,B,g&&(0,n.R3)(f(d,B,B,0,0,x,L,ne,x,oe=[],F),q),x,q,F,L,g?oe:q);break;default:r(D,B,B,B,[""],q,0,L,q)}}O=N=A=0,V=K=1,ne=D="",F=M;break;case 58:F=1+(0,n.to)(D),A=R;default:if(V<1){if(G==123)--V;else if(G==125&&V++==0&&(0,i.mp)()==125)continue}switch(D+=(0,n.Dp)(G),G*V){case 38:K=N>0?1:(D+="\f",-1);break;case 44:L[O++]=((0,n.to)(D)-1)*K,K=1;break;case 64:(0,i.fj)()===45&&(D+=(0,i.iF)((0,i.lp)())),I=(0,i.fj)(),N=F=(0,n.to)(ne=D+=(0,i.QU)((0,i.Ud)())),G++;break;case 45:R===45&&(0,n.to)(D)==2&&(V=0)}}return T}function f(d,m,b,g,x,T,M,L,$,O,N){for(var F=x-1,I=x===0?T:[""],A=(0,n.Ei)(I),R=0,V=0,H=0;R0?I[K]+" "+G:(0,n.gx)(G,/&\f/g,I[K])))&&($[H++]=ne);return(0,i.dH)(d,m,b,x===0?o.Fr:L,$,O,N)}function c(d,m,b){return(0,i.dH)(d,m,b,o.Ab,(0,n.Dp)((0,i.Tb)()),(0,n.tb)(d,2,-2),0)}function u(d,m,b,g){return(0,i.dH)(d,m,b,o.h5,(0,n.tb)(d,0,g),(0,n.tb)(d,g+1,-1),g)}},90137:function(h,y,e){"use strict";e.d(y,{P:function(){return l},q:function(){return i}});var o=e(71448),n=e(22697);function i(r,f){for(var c="",u=(0,n.Ei)(r),d=0;d0?(0,o.uO)(c,--r):0,i--,f===10&&(i=1,n--),f}function g(){return f=r2||L(f)>3?"":" "}function A(G){for(;g();)switch(L(f)){case 0:append(K(r-1),G);break;case 2:append(N(f),G);break;default:append(from(f),G)}return G}function R(G,ne){for(;--ne&&g()&&!(f<48||f>102||f>57&&f<65||f>70&&f<97););return M(G,T()+(ne<6&&x()==32&&g()==32))}function V(G){for(;g();)switch(f){case G:return r;case 34:case 39:G!==34&&G!==39&&V(f);break;case 40:G===41&&V(G);break;case 92:g();break}return r}function H(G,ne){for(;g()&&G+f!==57;)if(G+f===84&&x()===47)break;return"/*"+M(ne,r-1)+"*"+(0,o.Dp)(G===47?G:g())}function K(G){for(;!L(x());)g();return M(G,r)}},22697:function(h,y,e){"use strict";e.d(y,{$e:function(){return T},Cw:function(){return u},Dp:function(){return n},EQ:function(){return f},Ei:function(){return g},R3:function(){return x},Wn:function(){return o},f0:function(){return i},fy:function(){return r},gx:function(){return c},tb:function(){return m},to:function(){return b},uO:function(){return d},vp:function(){return l}});var o=Math.abs,n=String.fromCharCode,i=Object.assign;function l(M,L){return d(M,0)^45?(((L<<2^d(M,0))<<2^d(M,1))<<2^d(M,2))<<2^d(M,3):0}function r(M){return M.trim()}function f(M,L){return(M=L.exec(M))?M[0]:M}function c(M,L,$){return M.replace(L,$)}function u(M,L){return M.indexOf(L)}function d(M,L){return M.charCodeAt(L)|0}function m(M,L,$){return M.slice(L,$)}function b(M){return M.length}function g(M){return M.length}function x(M,L){return L.push(M),M}function T(M,L){return M.map(L).join("")}},94083:function(h,y,e){"use strict";e.d(y,{J$:function(){return Je},ZP:function(){return _e},kY:function(){return Q}});var o=e(50959),n=e(4322);const i=new WeakMap,l={},r={},f=()=>{},c=f(),u=Object,d=Ze=>Ze===c,m=Ze=>typeof Ze=="function",b=(Ze,mt)=>Kp(Kp({},Ze),mt),g="undefined",x=typeof window!=g,T=typeof document!=g,M=()=>x&&typeof window.requestAnimationFrame!=g,L=(Ze,mt)=>{const Et=i.get(Ze);return[()=>Ze.get(mt)||l,pe=>{if(!d(mt)){const We=Ze.get(mt);mt in r||(r[mt]=We),Et[5](mt,b(We,pe),We||l)}},Et[6],()=>!d(mt)&&mt in r?r[mt]:Ze.get(mt)||l]},$=new WeakMap;let O=0;const N=Ze=>{const mt=typeof Ze,Et=Ze&&Ze.constructor,pe=Et==Date;let We,Ke;if(u(Ze)===Ze&&!pe&&Et!=RegExp){if(We=$.get(Ze),We)return We;if(We=++O+"~",$.set(Ze,We),Et==Array){for(We="@",Ke=0;KeF,[A,R]=x&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[f,f],V=()=>{const Ze=T&&document.visibilityState;return d(Ze)||Ze!=="hidden"},H=Ze=>(T&&document.addEventListener("visibilitychange",Ze),A("focus",Ze),()=>{T&&document.removeEventListener("visibilitychange",Ze),R("focus",Ze)}),K=Ze=>{const mt=()=>{F=!0,Ze()},Et=()=>{F=!1};return A("online",mt),A("offline",Et),()=>{R("online",mt),R("offline",Et)}},G={isOnline:I,isVisible:V},ne={initFocus:H,initReconnect:K},oe=!o.useId,q=!x||"Deno"in window,B=Ze=>M()?window.requestAnimationFrame(Ze):setTimeout(Ze,1),D=q?o.useEffect:o.useLayoutEffect,w=typeof navigator!="undefined"&&navigator.connection,k=!q&&w&&(["slow-2g","2g"].includes(w.effectiveType)||w.saveData),U=Ze=>{if(m(Ze))try{Ze=Ze()}catch(Et){Ze=""}const mt=Ze;return Ze=typeof Ze=="string"?Ze:(Array.isArray(Ze)?Ze.length:Ze)?N(Ze):"",[Ze,mt]};let Z=0;const J=()=>++Z,ue=0,Fe=1,xe=2;var Ce={__proto__:null,FOCUS_EVENT:ue,RECONNECT_EVENT:Fe,MUTATE_EVENT:xe};function De(...Ze){return Dv(this,null,function*(){const[mt,Et,pe,We]=Ze,Ke=b({populateCache:!0,throwOnError:!0},typeof We=="boolean"?{revalidate:We}:We||{});let pt=Ke.populateCache;const Ct=Ke.rollbackOnError;let Ut=Ke.optimisticData;const cn=Ke.revalidate!==!1,Ne=nt=>typeof Ct=="function"?Ct(nt):Ct!==!1,Me=Ke.throwOnError;if(m(Et)){const nt=Et,Mt=[],Nt=mt.keys();for(let xt=Nt.next();!xt.done;xt=Nt.next()){const fn=xt.value;!fn.startsWith("$inf$")&&nt(mt.get(fn)._k)&&Mt.push(fn)}return Promise.all(Mt.map(at))}return at(Et);function at(nt){return Dv(this,null,function*(){const[Mt]=U(nt);if(!Mt)return;const[Nt,xt]=L(mt,Mt),[fn,zn,Mn]=i.get(mt),Tn=fn[Mt],or=()=>cn&&(delete Mn[Mt],Tn&&Tn[0])?Tn[0](xe).then(()=>Nt().data):Nt().data;if(Ze.length<3)return or();let Qn=pe,In;const Dn=J();zn[Mt]=[Dn,0];const At=!d(Ut),kt=Nt(),jt=kt.data,Jt=kt._c,pn=d(Jt)?jt:Jt;if(At&&(Ut=m(Ut)?Ut(pn):Ut,xt({data:Ut,_c:pn})),m(Qn))try{Qn=Qn(pn)}catch(bn){In=bn}if(Qn&&m(Qn.then))if(Qn=yield Qn.catch(bn=>{In=bn}),Dn!==zn[Mt][0]){if(In)throw In;return Qn}else In&&At&&Ne(In)&&(pt=!0,Qn=pn,xt({data:Qn,_c:c}));pt&&(In||(m(pt)&&(Qn=pt(Qn,pn)),xt({data:Qn,_c:c}))),zn[Mt][1]=J();const Fn=yield or();if(xt({_c:c}),In){if(Me)throw In;return}return pt?Fn:Qn})}})}const He=(Ze,mt)=>{for(const Et in Ze)Ze[Et][0]&&Ze[Et][0](mt)},Ve=(Ze,mt)=>{if(!i.has(Ze)){const Et=b(ne,mt),pe={},We=De.bind(c,Ze);let Ke=f;const pt={},Ct=(Ne,Me)=>{const at=pt[Ne]||[];return pt[Ne]=at,at.push(Me),()=>at.splice(at.indexOf(Me),1)},Ut=(Ne,Me,at)=>{Ze.set(Ne,Me);const nt=pt[Ne];if(nt)for(let Mt=nt.length;Mt--;)nt[Mt](Me,at)},cn=()=>{if(!i.has(Ze)&&(i.set(Ze,[pe,{},{},{},We,Ut,Ct]),!q)){const Ne=Et.initFocus(setTimeout.bind(c,He.bind(c,pe,ue))),Me=Et.initReconnect(setTimeout.bind(c,He.bind(c,pe,Fe)));Ke=()=>{Ne&&Ne(),Me&&Me(),i.delete(Ze)}}};return cn(),[Ze,We,cn,Ke]}return[Ze,i.get(Ze)[4]]},Ie=(Ze,mt,Et,pe,We)=>{const Ke=Et.errorRetryCount,pt=We.retryCount,Ct=~~((Math.random()+.5)*(1<<(pt<8?pt:8)))*Et.errorRetryInterval;!d(Ke)&&pt>Ke||setTimeout(pe,Ct,We)},Le=(Ze,mt)=>N(Ze)==N(mt),[dt,Pt]=Ve(new Map),Tt=b({onLoadingSlow:f,onSuccess:f,onError:f,onErrorRetry:Ie,onDiscarded:f,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:k?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:k?5e3:3e3,compare:Le,isPaused:()=>!1,cache:dt,mutate:Pt,fallback:{}},G),St=(Ze,mt)=>{const Et=b(Ze,mt);if(mt){const{use:pe,fallback:We}=Ze,{use:Ke,fallback:pt}=mt;pe&&Ke&&(Et.use=pe.concat(Ke)),We&&pt&&(Et.fallback=b(We,pt))}return Et},Lt=(0,o.createContext)({}),_=Ze=>{const{value:mt}=Ze,Et=(0,o.useContext)(Lt),pe=m(mt),We=(0,o.useMemo)(()=>pe?mt(Et):mt,[pe,Et,mt]),Ke=(0,o.useMemo)(()=>pe?We:St(Et,We),[pe,Et,We]),pt=We&&We.provider,[Ct]=(0,o.useState)(()=>pt?Ve(pt(Ke.cache||dt),We):c);return Ct&&(Ke.cache=Ct[0],Ke.mutate=Ct[1]),D(()=>{if(Ct)return Ct[2]&&Ct[2](),Ct[3]},[]),(0,o.createElement)(Lt.Provider,b(Ze,{value:Ke}))},j=x&&window.__SWR_DEVTOOLS_USE__,S=j?window.__SWR_DEVTOOLS_USE__:[],E=()=>{j&&(window.__SWR_DEVTOOLS_REACT__=o)},Y=Ze=>m(Ze[1])?[Ze[0],Ze[1],Ze[2]||{}]:[Ze[0],null,(Ze[1]===null?Ze[2]:Ze[1])||{}],Q=()=>b(Tt,(0,o.useContext)(Lt)),se=(Ze,mt)=>{const Et=U(Ze)[0],[,,,pe]=i.get(dt);if(pe[Et])return pe[Et];const We=mt(Ze);return pe[Et]=We,We},ye=Ze=>(mt,Et,pe)=>Ze(mt,Et&&((...Ke)=>{const pt=U(mt)[0],[,,,Ct]=i.get(dt),Ut=Ct[pt];return Ut?(delete Ct[pt],Ut):Et(...Ke)}),pe),re=S.concat(ye),he=Ze=>function(...Et){const pe=Q(),[We,Ke,pt]=Y(Et),Ct=St(pe,pt);let Ut=Ze;const{use:cn}=Ct,Ne=(cn||[]).concat(re);for(let Me=Ne.length;Me--;)Ut=Ne[Me](Ut);return Ut(We,Ke||Ct.fetcher||null,Ct)},ot=Ze=>{const mt=useState({})[1],Et=useRef(!1),pe=useRef(Ze),We=useRef({data:!1,error:!1,isValidating:!1}),Ke=useCallback(pt=>{let Ct=!1;const Ut=pe.current;for(const cn in pt){const Ne=cn;Ut[Ne]!==pt[Ne]&&(Ut[Ne]=pt[Ne],We.current[Ne]&&(Ct=!0))}Ct&&!Et.current&&(oe?mt({}):React.startTransition(()=>mt({})))},[]);return D(()=>(Et.current=!1,()=>{Et.current=!0})),[pe,We.current,Ke]},Ue=(Ze,mt,Et)=>{const pe=mt[Ze]||(mt[Ze]=[]);return pe.push(Et),()=>{const We=pe.indexOf(Et);We>=0&&(pe[We]=pe[pe.length-1],pe.pop())}},Se=(Ze,mt)=>(...Et)=>{const[pe,We,Ke]=Y(Et),pt=(Ke.use||[]).concat(mt);return Ze(pe,We,KC(Kp({},Ke),{use:pt}))};E();const tt={dedupe:!0},gt=(Ze,mt,Et)=>{const{cache:pe,compare:We,suspense:Ke,fallbackData:pt,revalidateOnMount:Ct,revalidateIfStale:Ut,refreshInterval:cn,refreshWhenHidden:Ne,refreshWhenOffline:Me,keepPreviousData:at}=Et,[nt,Mt,Nt]=i.get(pe),[xt,fn]=U(Ze),zn=(0,o.useRef)(!1),Mn=(0,o.useRef)(!1),Tn=(0,o.useRef)(xt),or=(0,o.useRef)(mt),Qn=(0,o.useRef)(Et),In=()=>Qn.current,Dn=()=>In().isVisible()&&In().isOnline(),[At,kt,jt,Jt]=L(pe,xt),pn=(0,o.useRef)({}).current,Fn=d(pt)?Et.fallback[xt]:pt,bn=(_n,er)=>{let Tr=!0;for(const Ir in pn){const Sr=Ir;Sr==="data"?We(er[Sr],_n[Sr])||d(_n[Sr])&&We(er[Sr],qn)||(Tr=!1):er[Sr]!==_n[Sr]&&(Tr=!1)}return Tr},Zn=(0,o.useMemo)(()=>{const _n=(()=>!xt||!mt?!1:d(Ct)?In().isPaused()||Ke?!1:d(Ut)?!0:Ut:Ct)(),er=Sr=>{const rt=b(Sr);return delete rt._k,_n?Kp({isValidating:!0,isLoading:!0},rt):rt};let Tr=er(At());const Ir=er(Jt());return[()=>{const Sr=er(At());return bn(Sr,Tr)?Tr:Tr=Sr},()=>Ir]},[pe,xt]),Jn=(0,n.useSyncExternalStore)((0,o.useCallback)(_n=>jt(xt,(er,Tr)=>{bn(Tr,er)||_n()}),[pe,xt]),Zn[0],Zn[1]),sr=!zn.current,br=nt[xt]&&nt[xt].length>0,Or=Jn.data,ur=d(Or)?Fn:Or,cr=Jn.error,Pr=(0,o.useRef)(ur),qn=at?d(Or)?Pr.current:Or:ur,Sa=(()=>br&&!d(cr)?!1:sr&&!d(Ct)?Ct:In().isPaused()?!1:Ke?d(ur)?!1:Ut:d(ur)||Ut)(),ya=!!(xt&&mt&&sr&&Sa),Pa=d(Jn.isValidating)?ya:Jn.isValidating,$a=d(Jn.isLoading)?ya:Jn.isLoading,fa=(0,o.useCallback)(_n=>Dv(this,null,function*(){const er=or.current;if(!xt||!er||Mn.current||In().isPaused())return!1;let Tr,Ir,Sr=!0;const rt=_n||{},Xe=!Nt[xt]||!rt.dedupe,ut=()=>oe?!Mn.current&&xt===Tn.current&&zn.current:xt===Tn.current,st={isValidating:!1,isLoading:!1},It=()=>{kt(st)},Ye=()=>{const le=Nt[xt];le&&le[1]===Ir&&delete Nt[xt]},me={isValidating:!0};d(At().data)&&(me.isLoading=!0);try{if(Xe&&(kt(me),Et.loadingTimeout&&d(At().data)&&setTimeout(()=>{Sr&&ut()&&In().onLoadingSlow(xt,Et)},Et.loadingTimeout),Nt[xt]=[er(fn),J()]),[Tr,Ir]=Nt[xt],Tr=yield Tr,Xe&&setTimeout(Ye,Et.dedupingInterval),!Nt[xt]||Nt[xt][1]!==Ir)return Xe&&ut()&&In().onDiscarded(xt),!1;st.error=c;const le=Mt[xt];if(!d(le)&&(Ir<=le[0]||Ir<=le[1]||le[1]===0))return It(),Xe&&ut()&&In().onDiscarded(xt),!1;const Ee=At().data;st.data=We(Ee,Tr)?Ee:Tr,Xe&&ut()&&In().onSuccess(Tr,xt,Et)}catch(le){Ye();const Ee=In(),{shouldRetryOnError:fe}=Ee;Ee.isPaused()||(st.error=le,Xe&&ut()&&(Ee.onError(le,xt,Ee),(fe===!0||m(fe)&&fe(le))&&Dn()&&Ee.onErrorRetry(le,xt,Ee,fa,{retryCount:(rt.retryCount||0)+1,dedupe:!0})))}return Sr=!1,It(),!0}),[xt,pe]),tr=(0,o.useCallback)((..._n)=>De(pe,Tn.current,..._n),[]);if(D(()=>{or.current=mt,Qn.current=Et,d(Or)||(Pr.current=Or)}),D(()=>{if(!xt)return;const _n=fa.bind(c,tt);let er=0;const Ir=Ue(xt,nt,Sr=>{if(Sr==Ce.FOCUS_EVENT){const rt=Date.now();In().revalidateOnFocus&&rt>er&&Dn()&&(er=rt+In().focusThrottleInterval,_n())}else if(Sr==Ce.RECONNECT_EVENT)In().revalidateOnReconnect&&Dn()&&_n();else if(Sr==Ce.MUTATE_EVENT)return fa()});return Mn.current=!1,Tn.current=xt,zn.current=!0,kt({_k:fn}),Sa&&(d(ur)||q?_n():B(_n)),()=>{Mn.current=!0,Ir()}},[xt]),D(()=>{let _n;function er(){const Ir=m(cn)?cn(ur):cn;Ir&&_n!==-1&&(_n=setTimeout(Tr,Ir))}function Tr(){!At().error&&(Ne||In().isVisible())&&(Me||In().isOnline())?fa(tt).then(er):er()}return er(),()=>{_n&&(clearTimeout(_n),_n=-1)}},[cn,Ne,Me,xt]),(0,o.useDebugValue)(qn),Ke&&d(ur)&&xt)throw!oe&&q?new Error("Fallback data is required when using suspense in SSR."):(or.current=mt,Qn.current=Et,Mn.current=!1,d(cr)?fa(tt):cr);return{mutate:tr,get data(){return pn.data=!0,qn},get error(){return pn.error=!0,cr},get isValidating(){return pn.isValidating=!0,Pa},get isLoading(){return pn.isLoading=!0,$a}}},Je=u.defineProperty(_,"defaultValue",{value:Tt}),Dt=Ze=>serialize(Ze)[0];var _e=he(gt)}},Ls={};function ve(h){var y=Ls[h];if(y!==void 0)return y.exports;var e=Ls[h]={id:h,loaded:!1,exports:{}};return yl[h].call(e.exports,e,e.exports,ve),e.loaded=!0,e.exports}ve.m=yl,function(){ve.n=function(h){var y=h&&h.__esModule?function(){return h.default}:function(){return h};return ve.d(y,{a:y}),y}}(),function(){var h=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},y;ve.t=function(e,o){if(o&1&&(e=this(e)),o&8||typeof e=="object"&&e&&(o&4&&e.__esModule||o&16&&typeof e.then=="function"))return e;var n=Object.create(null);ve.r(n);var i={};y=y||[null,h({}),h([]),h(h)];for(var l=o&2&&e;typeof l=="object"&&!~y.indexOf(l);l=h(l))Object.getOwnPropertyNames(l).forEach(function(r){i[r]=function(){return e[r]}});return i.default=function(){return e},ve.d(n,i),n}}(),function(){ve.d=function(h,y){for(var e in y)ve.o(y,e)&&!ve.o(h,e)&&Object.defineProperty(h,e,{enumerable:!0,get:y[e]})}}(),function(){ve.f={},ve.e=function(h){return Promise.all(Object.keys(ve.f).reduce(function(y,e){return ve.f[e](h,y),y},[]))}}(),function(){ve.u=function(h){return""+({81:"p__Message__Noreply__index",96:"p__Plugin__Share__index",145:"p__Plugin__Subscribe__index",185:"p__Welcome",274:"p__Carry__index",294:"p__Basic__index",301:"t__plugin-layout__Layout",354:"p__Storage__index",366:"p__User__Login__index",398:"p__Script__index",402:"p__Reply__index",430:"p__Master__index",538:"p__Message__Private__index",571:"p__404",737:"p__Plugin__Publish__index",966:"p__Message__Listen__index"}[h]||h)+"."+{54:"698cd806",81:"7e4d6d65",96:"b689ed3b",145:"122c4cdc",164:"3f5b3c97",185:"31f51469",274:"fcdd491c",294:"e0b7ce49",301:"2ba5d821",315:"ca5fa681",354:"e2189b48",361:"a6a74763",366:"c4f55394",398:"b7c150f4",402:"bf015c15",430:"570baffc",454:"045543df",472:"ccfb3d48",538:"31d914cd",571:"7e3f819c",630:"42a3526e",684:"9d8c9675",691:"daa9ab49",737:"3ba2cf00",792:"138633da",922:"f8147359",964:"43acb396",966:"c2e6f837",989:"19fa4015"}[h]+".async.js"}}(),function(){ve.miniCssF=function(h){return"t__plugin-layout__Layout.74b4118c.chunk.css"}}(),function(){ve.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(h){if(typeof window=="object")return window}}()}(),function(){ve.o=function(h,y){return Object.prototype.hasOwnProperty.call(h,y)}}(),function(){var h={},y="ant-design-pro:";ve.l=function(e,o,n,i){if(h[e]){h[e].push(o);return}var l,r;if(n!==void 0)for(var f=document.getElementsByTagName("script"),c=0;c0})),ca=js({routesById:Sn,routeComponents:Lr,parentId:ra.id,loadingComponent:Ln.loadingComponent,reactRouter5Compat:Ln.reactRouter5Compat});return ca.length>0&&(ra.children=ca,ra.routes=ca),ra})}function bl(Ln){var Sn=(0,za.UO)(),xr=(0,wa.Z)((0,wa.Z)({},Ln),{},{to:(0,za.Gn)(Ln.to,Sn)});return nr.createElement(za.Fg,(0,jo.Z)({replace:!0},xr))}function Oa(Ln){var Sn=Ln.route,xr=Sn.redirect,Lr=(0,ao.Z)(Sn,Pi),Xr=Ln.reactRouter5Compat?Cr:Aa;return(0,wa.Z)({element:xr?nr.createElement(bl,{to:xr}):nr.createElement(si.Provider,{value:{route:Ln.route}},nr.createElement(Xr,{loader:nr.memo(Ln.routeComponent),loadingComponent:Ln.loadingComponent||Jr,hasChildren:Ln.hasChildren}))},Lr)}function Jr(){return nr.createElement("div",null)}function Cr(Ln){var Sn=Xo(),xr=Sn.route,Lr=(0,Va.Ov)(),Xr=Lr.history,ra=Lr.clientRoutes,ca=(0,za.UO)(),Ma={params:ca,isExact:!0,path:xr.path,url:Xr.location.pathname},Xa=Ln.loader;return nr.createElement(nr.Suspense,{fallback:nr.createElement(Ln.loadingComponent,null)},nr.createElement(Xa,{location:Xr.location,match:Ma,history:Xr,params:ca,route:xr,routes:ra},Ln.hasChildren&&nr.createElement(za.j3,null)))}function Aa(Ln){var Sn=Ln.loader;return nr.createElement(nr.Suspense,{fallback:nr.createElement(Ln.loadingComponent,null)},nr.createElement(Sn,null))}var Ca=null;function Vo(){return Ca}function yi(Ln){var Sn=Ln.history,xr=nr.useState({action:Sn.action,location:Sn.location}),Lr=(0,Wo.Z)(xr,2),Xr=Lr[0],ra=Lr[1];return(0,nr.useLayoutEffect)(function(){return Sn.listen(ra)},[Sn]),(0,nr.useLayoutEffect)(function(){function ca(Ma){Ln.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:Ln.routes,clientRoutes:Ln.clientRoutes,location:Ma.location,action:Ma.action,basename:Ln.basename,isFirst:Boolean(Ma.isFirst)}})}Sn.listen(ca),ca({location:Xr.location,action:Xr.action,isFirst:!0})},[Sn,Ln.routes,Ln.clientRoutes]),nr.createElement(za.F0,{navigator:Sn,location:Xr.location,basename:Ln.basename},Ln.children)}function Ui(){var Ln=(0,Va.Ov)(),Sn=Ln.clientRoutes;return(0,za.V$)(Sn)}var _i=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],$o=function(Sn,xr){var Lr=Sn.basename||"/",Xr=js({routesById:Sn.routes,routeComponents:Sn.routeComponents,loadingComponent:Sn.loadingComponent,reactRouter5Compat:Sn.reactRouter5Compat});Sn.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:Xr}});for(var ra=nr.createElement(yi,{basename:Lr,pluginManager:Sn.pluginManager,routes:Sn.routes,clientRoutes:Xr,history:Sn.history},xr),ca=0,Ma=_i;ca0})),ca=js({routesById:Sn,routeComponents:Lr,parentId:ra.id,loadingComponent:Ln.loadingComponent,reactRouter5Compat:Ln.reactRouter5Compat});return ca.length>0&&(ra.children=ca,ra.routes=ca),ra})}function bl(Ln){var Sn=(0,za.UO)(),xr=(0,wa.Z)((0,wa.Z)({},Ln),{},{to:(0,za.Gn)(Ln.to,Sn)});return nr.createElement(za.Fg,(0,jo.Z)({replace:!0},xr))}function Oa(Ln){var Sn=Ln.route,xr=Sn.redirect,Lr=(0,ao.Z)(Sn,Pi),Xr=Ln.reactRouter5Compat?Cr:Aa;return(0,wa.Z)({element:xr?nr.createElement(bl,{to:xr}):nr.createElement(si.Provider,{value:{route:Ln.route}},nr.createElement(Xr,{loader:nr.memo(Ln.routeComponent),loadingComponent:Ln.loadingComponent||Jr,hasChildren:Ln.hasChildren}))},Lr)}function Jr(){return nr.createElement("div",null)}function Cr(Ln){var Sn=Xo(),xr=Sn.route,Lr=(0,Va.Ov)(),Xr=Lr.history,ra=Lr.clientRoutes,ca=(0,za.UO)(),Ma={params:ca,isExact:!0,path:xr.path,url:Xr.location.pathname},Xa=Ln.loader;return nr.createElement(nr.Suspense,{fallback:nr.createElement(Ln.loadingComponent,null)},nr.createElement(Xa,{location:Xr.location,match:Ma,history:Xr,params:ca,route:xr,routes:ra},Ln.hasChildren&&nr.createElement(za.j3,null)))}function Aa(Ln){var Sn=Ln.loader;return nr.createElement(nr.Suspense,{fallback:nr.createElement(Ln.loadingComponent,null)},nr.createElement(Sn,null))}var Ca=null;function Vo(){return Ca}function yi(Ln){var Sn=Ln.history,xr=nr.useState({action:Sn.action,location:Sn.location}),Lr=(0,Wo.Z)(xr,2),Xr=Lr[0],ra=Lr[1];return(0,nr.useLayoutEffect)(function(){return Sn.listen(ra)},[Sn]),(0,nr.useLayoutEffect)(function(){function ca(Ma){Ln.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:Ln.routes,clientRoutes:Ln.clientRoutes,location:Ma.location,action:Ma.action,basename:Ln.basename,isFirst:Boolean(Ma.isFirst)}})}Sn.listen(ca),ca({location:Xr.location,action:Xr.action,isFirst:!0})},[Sn,Ln.routes,Ln.clientRoutes]),nr.createElement(za.F0,{navigator:Sn,location:Xr.location,basename:Ln.basename},Ln.children)}function Ui(){var Ln=(0,Va.Ov)(),Sn=Ln.clientRoutes;return(0,za.V$)(Sn)}var _i=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],$o=function(Sn,xr){var Lr=Sn.basename||"/",Xr=js({routesById:Sn.routes,routeComponents:Sn.routeComponents,loadingComponent:Sn.loadingComponent,reactRouter5Compat:Sn.reactRouter5Compat});Sn.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:Xr}});for(var ra=nr.createElement(yi,{basename:Lr,pluginManager:Sn.pluginManager,routes:Sn.routes,clientRoutes:Xr,history:Sn.history},xr),ca=0,Ma=_i;ca 0 { + return handles[0](err, rspObj, bd) + } else { + return rspObj + } + } + if goroutine { + go dddd() + } else { + return dddd() + } + return nil +} + +func fetch(vm *goja.Runtime, resolve func(result interface{}), reject func(reason interface{}), wts ...interface{}) { var method = "get" var url = "" var req *http.Request diff --git a/core/plugin_utils.go b/core/plugin_utils.go index eebd13f..cb899e4 100644 --- a/core/plugin_utils.go +++ b/core/plugin_utils.go @@ -359,7 +359,7 @@ func SetPluginMethod(vm *goja.Runtime, uuid string, on_start bool) { vm.Set("Buffer", func(call goja.ConstructorCall) *goja.Object { return Buffer(vm, call) }) - vm.Set("request", func(wts ...interface{}) interface{} { + vm.Set("fetch", func(wts ...interface{}) interface{} { promise, resolve, reject := vm.NewPromise() func() { func() { @@ -373,10 +373,11 @@ func SetPluginMethod(vm *goja.Runtime, uuid string, on_start bool) { } }() - request(vm, resolve, reject, wts...) + fetch(vm, resolve, reject, wts...) }() return promise }) + vm.Set("request", request) } func EncryptPlugin(script string) string { diff --git a/core/web.go b/core/web.go index 34aa44a..7e00e5c 100644 --- a/core/web.go +++ b/core/web.go @@ -41,8 +41,6 @@ func Cors() gin.HandlerFunc { var Server = gin.New() func init() { - gin.SetMode(gin.ReleaseMode) - // Server.Use(gin.Recovery()) Server.Use(Cors()) Server.Use(gzip.Gzip(gzip.DefaultCompression)) Server.NoRoute(func(c *gin.Context) { @@ -131,9 +129,6 @@ func init() { } c.String(404, "页面被喵咪劫走了。") // - //开启代理模式 - - // handleHTTP(c.Writer, c.Request) }) port := sillyGirl.GetString("port", "8080") @@ -189,37 +184,6 @@ func init() { }() } -// var httpProxys = MakeBucket("httpProxys") - -func handleHTTP(w http.ResponseWriter, req *http.Request) { - // console.Info("%s", utils.JsonMarshal(req.Header)) - // u, err := url.Parse("addr") - // if err != nil { - // core.Logs.Warn("can't connect to the http proxy:", err) - // return - // } - // Transport = &http.Transport{Proxy: http.ProxyURL(u)} - // resp, err := Transport.RoundTrip(req) - // fmt.Println("====") - resp, err := http.DefaultTransport.RoundTrip(req) - if err != nil { - http.Error(w, err.Error(), http.StatusServiceUnavailable) - return - } - defer resp.Body.Close() - copyHeader(w.Header(), resp.Header) - w.WriteHeader(resp.StatusCode) - io.Copy(w, resp.Body) -} - -func copyHeader(dst, src http.Header) { - for k, vv := range src { - for _, v := range vv { - dst.Add(k, v) - } - } -} - type Req struct { Method string Path string