From b5a71a07d9be2eb7014775adfa69a3862d888f76 Mon Sep 17 00:00:00 2001 From: nili Date: Wed, 26 Jun 2024 16:58:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=AE=BE=E5=A4=87=E4=B8=BB=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E7=9C=8B=E5=88=B0=E5=BA=94=E7=94=A8=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.ts | 1 - ...r.f0e6a96a.js => _umi_route_preload_helper.23f70d6f.js} | 2 +- dist/index.html | 4 ++-- dist/p__App__AppManagement.133ceb4c.async.js | 1 - dist/p__App__AppManagement.56c946c4.async.js | 1 + dist/{umi.b376a3ea.js => umi.8a8eedd2.js} | 6 +++--- src/app.tsx | 1 - src/pages/App/NormalAppManagement.tsx | 7 ++++++- 8 files changed, 13 insertions(+), 10 deletions(-) rename dist/{_umi_route_preload_helper.f0e6a96a.js => _umi_route_preload_helper.23f70d6f.js} (95%) delete mode 100644 dist/p__App__AppManagement.133ceb4c.async.js create mode 100644 dist/p__App__AppManagement.56c946c4.async.js rename dist/{umi.b376a3ea.js => umi.8a8eedd2.js} (97%) diff --git a/config/routes.ts b/config/routes.ts index 271f2f1..e9b3d4d 100644 --- a/config/routes.ts +++ b/config/routes.ts @@ -84,7 +84,6 @@ export default [ { path: '/appList', name: '应用管理', - access: 'canAdmin', component: './App/AppManagement', }, { diff --git a/dist/_umi_route_preload_helper.f0e6a96a.js b/dist/_umi_route_preload_helper.23f70d6f.js similarity index 95% rename from dist/_umi_route_preload_helper.f0e6a96a.js rename to dist/_umi_route_preload_helper.23f70d6f.js index 400cd23..3a3dd00 100644 --- a/dist/_umi_route_preload_helper.f0e6a96a.js +++ b/dist/_umi_route_preload_helper.23f70d6f.js @@ -1 +1 @@ -!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"ant-design-pro","b":"webpack","f":[["51.a2ea1b3b.async.js",51],["134.6fc81d91.async.js",134],["169.57647c7d.async.js",169],["p__Welcome.61596037.async.js",185],["p__MoneyManagement.60ec3db9.async.js",190],["247.3fe8fb10.async.js",247],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.4594a64b.async.js",301],["p__User__Login__index.9d3ab92e.async.js",366],["p__DeviceOwnerApp.ec53e5c4.async.js",371],["390.41467286.async.js",390],["393.38316f72.async.js",393],["397.fb5f72c1.async.js",397],["p__SuperAdmin.2c1167ac.async.js",455],["531.4c68f902.async.js",531],["539.49b7b156.async.js",539],["p__AdvRecordListV2.ced10464.async.js",542],["p__Bind.b6ee068f.async.js",557],["559.016bfdbb.async.js",559],["p__404.0c100574.async.js",571],["635.20e45f05.async.js",635],["p__App__AppManagement.133ceb4c.async.js",731],["p__AdminManagement.5e2368b3.async.js",816],["822.4ba8fa04.async.js",822],["841.614ef4c0.async.js",841],["p__AdvRecordList.8e5ef22c.async.js",857],["p__UserManagement.c0a8d03f.async.js",903],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930]],"r":{"/*":[19,27],"/":[1,6,7,18,20,27],"/welcome":[1,2,3,11,18,28,6,7,20,27],"/super":[0,1,2,5,13,14,15,23,27,28,6,7,18,20],"/adminList":[0,2,22,23,1,6,7,18,20,27],"/bind":[1,2,11,12,17,18,28,6,7,20,27],"/appList":[0,1,2,5,12,14,15,21,23,27,28,6,7,18,20],"/advList/:code":[0,1,2,14,15,18,23,24,25,27,28,6,7,20],"/advListV2/:code":[0,1,2,14,15,16,18,23,24,27,28,6,7,20],"/user/:code":[0,1,2,14,15,23,26,27,28,6,7,18,20],"/money/:code":[0,1,2,4,14,15,23,27,28,6,7,18,20],"/app/:code":[0,1,2,9,14,15,18,23,24,27,28,6,7,20],"/user/login":[1,2,8,14,23]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); \ No newline at end of file +!function(){"use strict";var t="/".replace(/([^/])$/,"$1/"),e=location.pathname,n=e.startsWith(t)&&decodeURI("/".concat(e.slice(t.length)));if(n){var a=document,c=a.head,r=a.createElement.bind(a),i=function(t,e,n){var a,c=e.r[t]||(null===(a=Object.entries(e.r).find((function(e){var n=e[0];return new RegExp("^".concat(n.replace(/\/:[^/]+/g,"/[^/]+").replace("/*","/.+"),"$")).test(t)})))||void 0===a?void 0:a[1]);return null==c?void 0:c.map((function(t){var a=e.f[t][1],c=e.f[t][0];return{type:c.split(".").pop(),url:"".concat(n.publicPath).concat(c),attrs:[["data-".concat(e.b),"".concat(e.p,":").concat(a)]]}}))}(n,{"p":"ant-design-pro","b":"webpack","f":[["51.a2ea1b3b.async.js",51],["134.6fc81d91.async.js",134],["169.57647c7d.async.js",169],["p__Welcome.61596037.async.js",185],["p__MoneyManagement.60ec3db9.async.js",190],["247.3fe8fb10.async.js",247],["t__plugin-layout__Layout.6cae69f5.chunk.css",301],["t__plugin-layout__Layout.4594a64b.async.js",301],["p__User__Login__index.9d3ab92e.async.js",366],["p__DeviceOwnerApp.ec53e5c4.async.js",371],["390.41467286.async.js",390],["393.38316f72.async.js",393],["397.fb5f72c1.async.js",397],["p__SuperAdmin.2c1167ac.async.js",455],["531.4c68f902.async.js",531],["539.49b7b156.async.js",539],["p__AdvRecordListV2.ced10464.async.js",542],["p__Bind.b6ee068f.async.js",557],["559.016bfdbb.async.js",559],["p__404.0c100574.async.js",571],["635.20e45f05.async.js",635],["p__App__AppManagement.56c946c4.async.js",731],["p__AdminManagement.5e2368b3.async.js",816],["822.4ba8fa04.async.js",822],["841.614ef4c0.async.js",841],["p__AdvRecordList.8e5ef22c.async.js",857],["p__UserManagement.c0a8d03f.async.js",903],["905.6e225d1b.async.js",905],["930.fca7adbf.async.js",930]],"r":{"/*":[19,27],"/":[1,6,7,18,20,27],"/welcome":[1,2,3,11,18,28,6,7,20,27],"/super":[0,1,2,5,13,14,15,23,27,28,6,7,18,20],"/adminList":[0,2,22,23,1,6,7,18,20,27],"/bind":[1,2,11,12,17,18,28,6,7,20,27],"/appList":[0,1,2,5,12,14,15,21,23,27,28,6,7,18,20],"/advList/:code":[0,1,2,14,15,18,23,24,25,27,28,6,7,20],"/advListV2/:code":[0,1,2,14,15,16,18,23,24,27,28,6,7,20],"/user/:code":[0,1,2,14,15,23,26,27,28,6,7,18,20],"/money/:code":[0,1,2,4,14,15,23,27,28,6,7,18,20],"/app/:code":[0,1,2,9,14,15,18,23,24,27,28,6,7,20],"/user/login":[1,2,8,14,23]}},{publicPath:"/"});null==i||i.forEach((function(t){var e,n=t.type,a=t.url;if("js"===n)(e=r("script")).src=a,e.async=!0;else{if("css"!==n)return;(e=r("link")).href=a,e.rel="preload",e.as="style"}t.attrs.forEach((function(t){e.setAttribute(t[0],t[1]||"")})),c.appendChild(e)}))}}(); \ No newline at end of file diff --git a/dist/index.html b/dist/index.html index d0e1a24..838ac3e 100644 --- a/dist/index.html +++ b/dist/index.html @@ -7,10 +7,10 @@ Ant Design Pro - +
- + \ No newline at end of file diff --git a/dist/p__App__AppManagement.133ceb4c.async.js b/dist/p__App__AppManagement.133ceb4c.async.js deleted file mode 100644 index a32fddd..0000000 --- a/dist/p__App__AppManagement.133ceb4c.async.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[731],{82339:function(be,te,r){r.r(te),r.d(te,{default:function(){return xn}});var J=r(90930),V=r(35312),ue=r(15009),s=r.n(ue),le=r(99289),P=r.n(le),Y=r(5574),x=r.n(Y),E=r(48357),H=r(67539),_=r(55241),z=r(10397),j=r(55102),h=r(67294),fe=r(97857),I=r.n(fe);function oe(p,n){return ee.apply(this,arguments)}function ee(){return ee=P()(s()().mark(function p(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,V.request)("/api/admin/app/aliPayConfig",I()({method:"GET",params:I()({},n)},u||{})));case 1:case"end":return a.stop()}},p)})),ee.apply(this,arguments)}function Ae(p,n,u){return ve.apply(this,arguments)}function ve(){return ve=P()(s()().mark(function p(n,u,g){return s()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",(0,V.request)("/api/admin/app/aliPayConfig",I()({method:"POST",headers:{"Content-Type":"application/json"},params:I()({},n),data:u},g||{})));case 1:case"end":return C.stop()}},p)})),ve.apply(this,arguments)}function Ee(p,n){return ge.apply(this,arguments)}function ge(){return ge=P()(s()().mark(function p(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,V.request)("/api/admin/app/basicConfig",I()({method:"GET",params:I()({},n)},u||{})));case 1:case"end":return a.stop()}},p)})),ge.apply(this,arguments)}function Ie(p,n){return Ce.apply(this,arguments)}function Ce(){return Ce=P()(s()().mark(function p(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,V.request)("/api/admin/app/basicConfig",I()({method:"POST",headers:{"Content-Type":"application/json"},data:n},u||{})));case 1:case"end":return a.stop()}},p)})),Ce.apply(this,arguments)}function Ve(p,n){return xe.apply(this,arguments)}function xe(){return xe=P()(s()().mark(function p(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,V.request)("/api/admin/app/normalConfig",I()({method:"GET",params:I()({},n)},u||{})));case 1:case"end":return a.stop()}},p)})),xe.apply(this,arguments)}function v(p,n,u){return y.apply(this,arguments)}function y(){return y=P()(s()().mark(function p(n,u,g){return s()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",(0,V.request)("/api/admin/app/normalConfig",I()({method:"POST",headers:{"Content-Type":"application/json"},params:I()({},n),data:u},g||{})));case 1:case"end":return C.stop()}},p)})),y.apply(this,arguments)}function w(p,n){return F.apply(this,arguments)}function F(){return F=P()(s()().mark(function p(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,V.request)("/api/admin/app/uMengConfig",I()({method:"GET",params:I()({},n)},u||{})));case 1:case"end":return a.stop()}},p)})),F.apply(this,arguments)}function G(p,n,u){return je.apply(this,arguments)}function je(){return je=P()(s()().mark(function p(n,u,g){return s()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",(0,V.request)("/api/admin/app/uMengConfig",I()({method:"POST",headers:{"Content-Type":"application/json"},params:I()({},n),data:u},g||{})));case 1:case"end":return C.stop()}},p)})),je.apply(this,arguments)}function we(p,n){return ne.apply(this,arguments)}function ne(){return ne=_asyncToGenerator(_regeneratorRuntime().mark(function p(n,u){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/admin/app/wxConfig",_objectSpread({method:"GET",params:_objectSpread({},n)},u||{})));case 1:case"end":return a.stop()}},p)})),ne.apply(this,arguments)}function Ge(p,n,u){return ce.apply(this,arguments)}function ce(){return ce=_asyncToGenerator(_regeneratorRuntime().mark(function p(n,u,g){return _regeneratorRuntime().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.abrupt("return",request("/api/admin/app/wxConfig",_objectSpread({method:"POST",headers:{"Content-Type":"application/json"},params:_objectSpread({},n),data:u},g||{})));case 1:case"end":return C.stop()}},p)})),ce.apply(this,arguments)}var se=r(1413),Oe=r(93696),Q=r(91146),Pe=function(n,u){return h.createElement(Q.Z,(0,se.Z)((0,se.Z)({},n),{},{ref:u,icon:Oe.Z}))},De=h.forwardRef(Pe),K=De,Fe=r(3089),Be=r(42110),Te=function(n,u){return h.createElement(Q.Z,(0,se.Z)((0,se.Z)({},n),{},{ref:u,icon:Be.Z}))},Re=h.forwardRef(Te),Me=Re,t=r(8232),Se=r(17788),Ke=r(72269),de=r(37804),ae=r(83062),$e=r(71230),re=r(14726),Ue=r(15746),e=r(85893),Qe=function(n){var u=t.Z.useForm(),g=x()(u,1),a=g[0],C=function(){a.submit()},L=function(){n.onCancel()},M=function(){var o=P()(s()().mark(function b(l){var c;return s()().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,Ve({appCode:l});case 2:c=Z.sent,a.setFieldsValue(c.data);case 4:case"end":return Z.stop()}},b)}));return function(l){return o.apply(this,arguments)}}();(0,h.useEffect)(function(){M(n.appCode)},[n.appCode]);var W=function(){var o=P()(s()().mark(function b(l){return s()().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.prev=0,f.next=3,v({appCode:n.appCode},l);case 3:f.next=8;break;case 5:return f.prev=5,f.t0=f.catch(0),f.abrupt("return");case 8:n.onSubmit();case 9:case"end":return f.stop()}},b,null,[[0,5]])}));return function(l){return o.apply(this,arguments)}}(),O={labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:20}}},i={wrapperCol:{xs:{span:24,offset:10},sm:{span:20,offset:6}}};return(0,e.jsx)(Se.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:C,onCancel:L,children:(0,e.jsxs)(t.Z,{labelCol:{span:6},wrapperCol:{span:18},form:a,onFinish:W,children:[(0,e.jsx)(t.Z.Item,{name:"enablePangolin",label:"\u542F\u7528\u7A7F\u5C71\u7532",children:(0,e.jsx)(Ke.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"pangolinDailyLimit",label:"\u7A7F\u5C71\u7532\u6BCF\u65E5\u6B21\u6570",children:(0,e.jsx)(de.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"tencentDailyLimit",label:"\u5E7F\u544A\u6BCF\u65E5\u6B21\u6570",children:(0,e.jsx)(de.Z,{})}),(0,e.jsx)(t.Z.List,{name:"moneyLadder",children:function(b,l){var c=l.add,f=l.remove;return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(t.Z.Item,{label:(0,e.jsxs)(e.Fragment,{children:["\u63D0\u73B0\u68AF\u5EA6",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u7528\u6237\u53EF\u9009\u7684\u63D0\u73B0\u91D1\u989D\u6863\u4F4D\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)(K,{})})})]}),required:!1,children:[(0,e.jsx)($e.Z,{children:b.map(function(Z){return(0,e.jsx)(t.Z.Item,{label:"",required:!1,children:(0,e.jsxs)($e.Z,{align:"stretch",style:{marginRight:10},children:[(0,e.jsx)(t.Z.Item,I()(I()({},Z),{},{validateTrigger:["onChange","onBlur"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u91D1\u989D\u6216\u8005\u5220\u9664"}],noStyle:!0,children:(0,e.jsx)(de.Z,{placeholder:"\u91D1\u989D\uFF0C\u5355\u4F4D\u5206"})})),(0,e.jsx)(Fe.Z,{style:{marginLeft:4},className:"dynamic-delete-button",onClick:function(){return f(Z.name)}})]})},Z.key)})}),(0,e.jsx)(t.Z.Item,I()(I()({},i),{},{children:(0,e.jsx)(re.ZP,{type:"dashed",onClick:function(){return c()},icon:(0,e.jsx)(Me,{}),children:"\u6DFB\u52A0\u63D0\u73B0\u68AF\u5EA6"})}))]})})}}),(0,e.jsx)(t.Z.Item,{name:"noAuditMoney",label:(0,e.jsxs)(e.Fragment,{children:["\u4E0D\u5BA1\u6838\u95E8\u69DB",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u4F4E\u4E8E\u6B64\u91D1\u989D\u7684\u63D0\u73B0\u7533\u8BF7\u5C06\u4F1A\u81EA\u52A8\u5BA1\u6838\u901A\u8FC7\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsx)(de.Z,{placeholder:"\u5355\u4F4D\u5206",style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"qqUrl",label:"QQ\u7FA4\u94FE\u63A5",children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"dayLimit",label:(0,e.jsxs)(e.Fragment,{children:["\u6BCF\u65E5\u63D0\u73B0\u6B21\u6570",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u540C\u4E2A\u8D26\u53F7\u6216\u540C\u4E2A\u652F\u4ED8\u5B9D\u6BCF\u65E5\u6700\u591A\u63D0\u73B0\u7684\u6B21\u6570",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsx)(de.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"maxIncomeEachVideo",label:(0,e.jsxs)(e.Fragment,{children:["\u5355\u6761\u6536\u76CA\u4E0A\u9650",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u770B\u4E00\u6761\u89C6\u9891\u6700\u591A\u80FD\u83B7\u5F97\u7684\u94B1\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsx)(de.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"defaultRate",label:(0,e.jsx)(e.Fragment,{children:"\u9ED8\u8BA4\u5206\u6210\u6BD4\u4F8B"}),children:(0,e.jsx)(de.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.List,{name:"dayRates",children:function(b,l){var c=l.add,f=l.remove;return(0,e.jsxs)(e.Fragment,{children:[b.map(function(Z,B){var D=Z.key,R=Z.name;return(0,e.jsx)(e.Fragment,{children:(0,h.createElement)(t.Z.Item,I()(I()({},B===0?O:i),{},{label:B===0?"\u7279\u6B8A\u65E5\u5206\u6210\u6BD4\u4F8B":"",required:!1,key:D}),(0,e.jsxs)($e.Z,{align:"stretch",gutter:16,children:[(0,e.jsx)(Ue.Z,{span:8,children:(0,e.jsx)(t.Z.Item,{name:[R,"day"],rules:[{required:!0}],children:(0,e.jsx)(j.Z,{placeholder:"Day"})})}),(0,e.jsx)(Ue.Z,{span:8,children:(0,e.jsx)(t.Z.Item,{name:[R,"rate"],rules:[{required:!0}],children:(0,e.jsx)(j.Z,{placeholder:"Rate"})})}),(0,e.jsx)(Ue.Z,{children:(0,e.jsx)(Fe.Z,{onClick:function(){return f(R)}})})]},D))})}),(0,e.jsx)(t.Z.Item,I()(I()({},i),{},{children:(0,e.jsx)(re.ZP,{type:"dashed",onClick:function(){return c()},block:!0,children:"\u6DFB\u52A0\u7279\u6B8A\u65E5\u5206\u6210\u6BD4\u4F8B"})}))]})}})]})})},Xe=Qe,Je=function(){var n=(0,h.useState)(!1),u=x()(n,2),g=u[0],a=u[1],C=(0,h.useState)([]),L=x()(C,2),M=L[0],W=L[1],O=(0,h.useState)([]),i=x()(O,2),o=i[0],b=i[1],l=(0,h.useState)(),c=x()(l,2),f=c[0],Z=c[1],B=function(m){var T=M.filter(function(S){var A;return S==null||(A=S.name)===null||A===void 0?void 0:A.includes(m)});b(T)},D=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0},{title:"\u5E94\u7528\u56FE\u7247",dataIndex:"img",hideInSearch:!0,renderText:function(m){return(0,e.jsx)("img",{style:{width:"40px"},src:m})}},{title:"code",dataIndex:"code",copyable:!0,hideInSearch:!0},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",width:200,hideInSearch:!0,renderText:function(m){return(0,e.jsx)(_.Z,{overlayInnerStyle:{padding:0},content:(0,e.jsx)(z.Z,{value:m||"",bordered:!1}),children:(0,e.jsx)("a",{style:{wordBreak:"break-word"},children:m})})}},{title:"\u64CD\u4F5C",width:80,hideInSearch:!0,renderText:function(m){if(m.enableCash)return(0,e.jsx)("a",{onClick:function(){Z(m.code),a(!0)},children:"\u7F16\u8F91"},"edit")}}],R=function(){var d=P()(s()().mark(function m(){var T;return s()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,(0,E.ln)();case 2:T=A.sent,T.data&&(W(T.data),b(T.data));case 4:case"end":return A.stop()}},m)}));return function(){return d.apply(this,arguments)}}();return(0,h.useEffect)(function(){R()},[]),(0,e.jsxs)(J._z,{children:[(0,e.jsx)(H.Z,{search:{defaultCollapsed:!1,optionRender:function(){return[(0,e.jsx)(j.Z,{placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onChange:function(T){return B(T.target.value)}},"name")]}},onReset:function(){b(M)},columns:D,dataSource:o}),f&&(0,e.jsx)(Xe,{updateModalOpen:g,appCode:f||"",onCancel:function(){return a(!1)},onSubmit:function(){a(!1)}})]})},Ye=Je,ke=r(52043),ye=r(66309),qe=r(86250),_e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},en=_e,nn=function(n,u){return h.createElement(Q.Z,(0,se.Z)((0,se.Z)({},n),{},{ref:u,icon:en}))},an=h.forwardRef(nn),me=an,he=r(66476),Ze=j.Z.TextArea,rn=function(n){var u=t.Z.useForm(),g=x()(u,1),a=g[0],C=function(){a.submit()},L=function(){n.onCancel()},M=function(){var O=P()(s()().mark(function i(o){var b;return s()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,oe({appCode:o});case 2:b=c.sent,a.setFieldsValue(b.data);case 4:case"end":return c.stop()}},i)}));return function(o){return O.apply(this,arguments)}}();(0,h.useEffect)(function(){M(n.appCode)},[n.appCode]);var W=function(){var O=P()(s()().mark(function i(o){return s()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,Ae({appCode:n.appCode},o);case 3:l.next=8;break;case 5:return l.prev=5,l.t0=l.catch(0),l.abrupt("return");case 8:n.onSubmit();case 9:case"end":return l.stop()}},i,null,[[0,5]])}));return function(o){return O.apply(this,arguments)}}();return(0,e.jsx)(Se.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:C,onCancel:L,children:(0,e.jsxs)(t.Z,{labelCol:{span:8},wrapperCol:{span:18},form:a,onFinish:W,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayAppId",label:(0,e.jsxs)(e.Fragment,{children:["AppId",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u83B7\u53D6\uFF0Chttps://open.alipay.com/develop/manage",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"aliPayPrivateKey",label:(0,e.jsxs)(e.Fragment,{children:["\u5E94\u7528\u79C1\u94A5RSA2048",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u5BC6\u94A5\u5DE5\u5177\u751F\u6210",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsxs)(j.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayPrivateKey",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9\u5E94\u7528\u79C1\u94A5!"}],children:(0,e.jsx)(Ze,{autoSize:{maxRows:6}})}),(0,e.jsx)(he.Z,{name:"file",multiple:!1,onChange:function(i){if(i.file.status!=="uploading"){var o=new FileReader;o.onload=function(){a.setFieldsValue({aliPayPrivateKey:o.result})},o.readAsText(i.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(me,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(t.Z.Item,{name:"aliPayAppCert",label:(0,e.jsxs)(e.Fragment,{children:["appCertPublicKey",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsxs)(j.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayAppCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9appCertPublicKey!"}],children:(0,e.jsx)(Ze,{autoSize:{maxRows:6}})}),(0,e.jsx)(he.Z,{name:"file",multiple:!1,onChange:function(i){if(i.file.status!=="uploading"){var o=new FileReader;o.onload=function(){a.setFieldsValue({aliPayAppCert:o.result})},o.readAsText(i.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(me,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(t.Z.Item,{name:"aliPayRootCert",label:(0,e.jsxs)(e.Fragment,{children:["alipayRootCert",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsxs)(j.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayRootCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9alipayRootCert!"}],children:(0,e.jsx)(Ze,{autoSize:{maxRows:6}})}),(0,e.jsx)(he.Z,{name:"file",multiple:!1,onChange:function(i){if(i.file.status!=="uploading"){var o=new FileReader;o.onload=function(){a.setFieldsValue({aliPayRootCert:o.result})},o.readAsText(i.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(me,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(t.Z.Item,{name:"aliPayPublicCert",label:(0,e.jsxs)(e.Fragment,{children:["alipayCertPublicKey",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsxs)(j.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayPublicCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9alipayCertPublicKey!"}],children:(0,e.jsx)(Ze,{autoSize:{maxRows:6}})}),(0,e.jsx)(he.Z,{name:"file",multiple:!1,onChange:function(i){if(i.file.status!=="uploading"){var o=new FileReader;o.onload=function(){a.setFieldsValue({aliPayPublicCert:o.result})},o.readAsText(i.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(me,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})})]})})},tn=rn,Ne=r(34041),ze=r(32400),un=r(56448),We=r.n(un),ie=r(2453),ln=function(n){var u=n.onUploadSuccess,g=n.onUploadError,a=(0,h.useState)(!1),C=x()(a,2),L=C[0],M=C[1],W=(0,h.useState)(null),O=x()(W,2),i=O[0],o=O[1],b=(0,h.useState)([]),l=x()(b,2),c=l[0],f=l[1];(0,h.useEffect)(function(){function B(){return D.apply(this,arguments)}function D(){return D=P()(s()().mark(function R(){var d,m;return s()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.prev=0,S.next=3,(0,E.po)();case 3:if(d=S.sent,!(!d.data||!d.data.accessKeySecret||!d.data.accessKeyId)){S.next=7;break}return ie.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),S.abrupt("return");case 7:m=new(We())({region:"oss-cn-beijing",accessKeyId:d.data.accessKeyId,accessKeySecret:d.data.accessKeySecret,stsToken:d.data.securityToken,bucket:d.data.bucket}),o(m),S.next=15;break;case 11:S.prev=11,S.t0=S.catch(0),ie.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25"),g&&g(S.t0);case 15:case"end":return S.stop()}},R,null,[[0,11]])})),D.apply(this,arguments)}B()},[g]);var Z=function(){var B=P()(s()().mark(function D(R){var d,m,T,S;return s()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:if(d=R.file,!(d instanceof File)){U.next=26;break}return M(!0),f([{uid:d.uid,name:d.name,status:"uploading"}]),U.prev=4,U.next=7,(0,ze.p)(d);case 7:return m=U.sent,T="matrix/".concat(m,".").concat(d.name.split(".").pop()),U.next=11,i==null?void 0:i.put(T,d,{headers:{"Content-Type":d.type}});case 11:S="https://apks.bzgames.cn/".concat(T),u&&u(S,d),M(!1),f([{uid:d.uid,name:d.name,status:"done",url:S}]),U.next=21;break;case 17:U.prev=17,U.t0=U.catch(4),ie.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"),g&&g(U.t0);case 21:return U.prev=21,M(!1),U.finish(21);case 24:U.next=27;break;case 26:ie.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 27:case"end":return U.stop()}},D,null,[[4,17,21,24]])}));return function(R){return B.apply(this,arguments)}}();return(0,e.jsx)(he.Z,{fileList:c,customRequest:Z,disabled:L||!i,children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(me,{}),children:"\u9009\u62E9\u6587\u4EF6"})})},He=ln,sn=r(19632),on=r.n(sn),cn=function(n){var u=n.value,g=n.onChange,a=(0,h.useState)(!1),C=x()(a,2),L=C[0],M=C[1],W=(0,h.useState)(null),O=x()(W,2),i=O[0],o=O[1],b=(0,h.useState)([]),l=x()(b,2),c=l[0],f=l[1];(0,h.useEffect)(function(){u&&f(u)},[u]),(0,h.useEffect)(function(){function D(){return R.apply(this,arguments)}function R(){return R=P()(s()().mark(function d(){var m,T;return s()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.prev=0,A.next=3,(0,E.po)();case 3:if(m=A.sent,!(!m.data||!m.data.accessKeySecret||!m.data.accessKeyId)){A.next=7;break}return ie.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),A.abrupt("return");case 7:T=new(We())({region:"oss-cn-beijing",accessKeyId:m.data.accessKeyId,accessKeySecret:m.data.accessKeySecret,stsToken:m.data.securityToken,bucket:m.data.bucket}),o(T),A.next=14;break;case 11:A.prev=11,A.t0=A.catch(0),ie.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25");case 14:case"end":return A.stop()}},d,null,[[0,11]])})),R.apply(this,arguments)}D()},[]),(0,h.useEffect)(function(){g&&g(c)},[c]);var Z=function(){var D=P()(s()().mark(function R(d){var m,T,S,A;return s()().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(m=d.file,!(m instanceof File)){k.next=23;break}return M(!0),k.prev=3,k.next=6,(0,ze.p)(m);case 6:return T=k.sent,S="matrix/".concat(T,".").concat(m.name.split(".").pop()),k.next=10,i==null?void 0:i.put(S,m,{headers:{"Content-Type":m.type}});case 10:A="https://apks.bzgames.cn/".concat(S),M(!1),f(function(Le){return[].concat(on()(Le),[{uid:m.uid,name:m.name,status:"done",url:A}])}),k.next=18;break;case 15:k.prev=15,k.t0=k.catch(3),ie.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25");case 18:return k.prev=18,M(!1),k.finish(18);case 21:k.next=24;break;case 23:ie.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 24:case"end":return k.stop()}},R,null,[[3,15,18,21]])}));return function(d){return D.apply(this,arguments)}}(),B=function(R){var d=(c||[]).filter(function(m){return m.url!==R.url});f(d)};return(0,e.jsx)(he.Z,{multiple:!0,fileList:c,onRemove:B,customRequest:Z,disabled:L||!i,children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(me,{}),children:"\u9009\u62E9\u6587\u4EF6"})})},dn=cn,pn=function(n){var u=t.Z.useForm(),g=x()(u,1),a=g[0],C=(0,h.useState)(!1),L=x()(C,2),M=L[0],W=L[1],O=function(){a.submit()},i=function(){n.onCancel()},o=function(){var l=P()(s()().mark(function c(f){var Z;return s()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(f){D.next=3;break}return a.resetFields(),D.abrupt("return");case 3:return D.next=5,Ee({appCode:f});case 5:Z=D.sent,a.setFieldsValue(Z.data);case 7:case"end":return D.stop()}},c)}));return function(f){return l.apply(this,arguments)}}();(0,h.useEffect)(function(){o(n.appCode),W(n.appCode!==void 0),n.appCode||a.resetFields()},[n.appCode]);var b=function(){var l=P()(s()().mark(function c(f){return s()().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.prev=0,B.next=3,Ie(f);case 3:B.next=8;break;case 5:return B.prev=5,B.t0=B.catch(0),B.abrupt("return");case 8:n.onSubmit();case 9:case"end":return B.stop()}},c,null,[[0,5]])}));return function(f){return l.apply(this,arguments)}}();return(0,e.jsx)(Se.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:O,onCancel:i,children:(0,e.jsxs)(t.Z,{labelCol:{span:5},wrapperCol:{span:18},form:a,onFinish:b,children:[(0,e.jsx)(t.Z.Item,{name:"id",style:{display:"none"},children:(0,e.jsx)(j.Z,{type:"hidden"})}),(0,e.jsx)(t.Z.Item,{name:"code",style:{display:"none"},children:(0,e.jsx)(j.Z,{type:"hidden"})}),(0,e.jsx)(t.Z.Item,{label:"\u5E94\u7528\u540D",name:"name",children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"\u5E94\u7528icon",name:"img",children:(0,e.jsxs)(j.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"img",noStyle:!0,children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(He,{onUploadSuccess:function(c){a.setFieldsValue({img:c})}})]})}),(0,e.jsx)(t.Z.Item,{label:"\u4E0B\u8F7D\u5730\u5740",name:"url",children:(0,e.jsxs)(j.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"url",noStyle:!0,children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(He,{onUploadSuccess:function(c,f){a.setFieldsValue({url:c,fileSize:(0,ke.aV)(f.size)})}})]})}),(0,e.jsx)(t.Z.Item,{label:"app\u7248\u672C",name:"version",children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"\u83DC\u5355\u680F\u4E2D",name:"hide",children:(0,e.jsx)(Ne.Z,{options:[{label:"\u5C55\u793A",value:0},{label:"\u9690\u85CF",value:1}]})}),(0,e.jsx)(t.Z.Item,{label:"\u6E20\u9053",name:"channel",children:(0,e.jsx)(Ne.Z,{disabled:M,options:(0,ke.FG)()})}),(0,e.jsx)(t.Z.Item,{label:"app\u5927\u5C0F",name:"fileSize",children:(0,e.jsx)(j.Z,{disabled:!0})}),(0,e.jsx)(t.Z.Item,{label:"app\u4E0B\u8F7D\u6B21\u6570",name:"downloadTimes",children:(0,e.jsx)(j.Z,{disabled:!0})}),(0,e.jsx)(t.Z.Item,{label:"\u6240\u5C5E\u516C\u53F8",name:"author",children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"app\u5305\u540D",name:"packageName",children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"app\u7B80\u4ECB",name:"desc",children:(0,e.jsx)(j.Z.TextArea,{})}),(0,e.jsxs)(t.Z.Item,{label:"\u5E94\u7528\u622A\u56FE",name:"images",children:[(0,e.jsx)(dn,{value:[],onChange:function(c){var f=c.filter(function(Z){return Z.url}).map(function(Z){return Z.url}).filter(Boolean);f&&f.length>0&&a.setFieldsValue({images:f})}}),(0,e.jsx)("label",{style:{color:"gray"},children:"\u53EF\u591A\u9009\uFF0C\u4E0D\u4F20\u9ED8\u8BA4\u4F1A\u4F7F\u7528\u4E4B\u524D\u7684\u65E7\u6570\u636E"})]})]})})},fn=pn,mn=function(n){var u=t.Z.useForm(),g=x()(u,1),a=g[0],C=function(){a.submit()},L=function(){n.onCancel()},M=function(){var O=P()(s()().mark(function i(o){var b;return s()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,w({appCode:o});case 2:b=c.sent,a.setFieldsValue(b.data);case 4:case"end":return c.stop()}},i)}));return function(o){return O.apply(this,arguments)}}();(0,h.useEffect)(function(){M(n.appCode)},[n.appCode]);var W=function(){var O=P()(s()().mark(function i(o){return s()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,G({appCode:n.appCode},o);case 3:l.next=8;break;case 5:return l.prev=5,l.t0=l.catch(0),l.abrupt("return");case 8:n.onSubmit();case 9:case"end":return l.stop()}},i,null,[[0,5]])}));return function(o){return O.apply(this,arguments)}}();return(0,e.jsx)(Se.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:C,onCancel:L,children:(0,e.jsxs)(t.Z,{labelCol:{span:8},wrapperCol:{span:16},form:a,onFinish:W,children:[(0,e.jsx)(t.Z.Item,{name:"umengAppKeyAli",label:"AppKey(\u963F\u91CC\u4E91)",children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppSecret",label:"AppSecret(\u963F\u91CC\u4E91)",children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppCode",label:"AppCode(\u963F\u91CC\u4E91)",children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppKey",label:"AppKey(\u53CB\u76DF)",children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"linkId",label:"linkId(\u53CB\u76DF)",children:(0,e.jsx)(j.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"bindWx",label:"\u7ED1\u5B9A\u5FAE\u4FE1\u8D26\u53F7",children:(0,e.jsx)(Ke.Z,{})})]})})},hn=mn,vn=function(){var n=(0,h.useState)(!1),u=x()(n,2),g=u[0],a=u[1],C=(0,h.useState)([]),L=x()(C,2),M=L[0],W=L[1],O=(0,h.useState)([]),i=x()(O,2),o=i[0],b=i[1],l=(0,h.useState)(!1),c=x()(l,2),f=c[0],Z=c[1],B=(0,h.useState)(!1),D=x()(B,2),R=D[0],d=D[1],m=(0,h.useState)(),T=x()(m,2),S=T[0],A=T[1],U=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0},{title:"\u56FE\u7247",dataIndex:"img",hideInSearch:!0,renderText:function($){return(0,e.jsx)("img",{style:{width:"40px"},src:$})}},{title:"code",dataIndex:"code",copyable:!0,hideInSearch:!0},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",width:200,hideInSearch:!0,renderText:function($){return(0,e.jsx)(_.Z,{overlayInnerStyle:{padding:0},content:(0,e.jsx)(z.Z,{value:$||"",bordered:!1}),children:(0,e.jsx)("a",{style:{wordBreak:"break-word"},children:$})})}},{title:"secret",dataIndex:"secret",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u83DC\u5355\u680F\u4E2D",dataIndex:"hide",hideInSearch:!0,renderText:function($){return $===0?(0,e.jsx)(ye.Z,{color:"blue",children:"\u5C55\u793A"}):(0,e.jsx)(ye.Z,{color:"purple",children:"\u9690\u85CF"})}},{title:"\u6E20\u9053",dataIndex:"channel",hideInSearch:!0,renderText:function($){var X=(0,ke.FG)(),pe=X.find(function(q){return q.value===$});return pe?pe.label:$}},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function($){return(0,e.jsxs)(qe.Z,{gap:"small",wrap:!0,children:[(0,e.jsx)(ye.Z,{color:"magenta",onClick:function(){A($.code),a(!0)},children:"\u7F16\u8F91"},"edit"),$.enableCash&&(0,e.jsx)(ye.Z,{color:"orange",onClick:function(){A($.code),d(!0)},children:"\u53CB\u76DF\u914D\u7F6E"},"ediyUMeng"),(0,e.jsx)(ye.Z,{color:"#2db7f5",onClick:function(){A($.code),Z(!0)},children:"\u652F\u4ED8\u5B9D\u914D\u7F6E"},"ediyAliPay")]})}}],k=function(){var N=P()(s()().mark(function $(){var X;return s()().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,(0,E.ln)();case 2:X=q.sent,X.data&&(W(X.data),b(X.data));case 4:case"end":return q.stop()}},$)}));return function(){return N.apply(this,arguments)}}();(0,h.useEffect)(function(){k()},[]);var Le=function($){var X=M.filter(function(pe){var q;return pe==null||(q=pe.name)===null||q===void 0?void 0:q.includes($)});b(X)};return(0,e.jsxs)(J._z,{children:[(0,e.jsx)(re.ZP,{style:{marginBottom:"20px"},onClick:function(){a(!0),A(void 0)},children:"\u65B0\u5EFA\u5E94\u7528"}),(0,e.jsx)(H.Z,{search:{defaultCollapsed:!1,optionRender:function(){return[(0,e.jsx)(j.Z,{placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onChange:function(X){return Le(X.target.value)}},"name")]}},onReset:function(){b(M)},columns:U,dataSource:o}),S&&f&&(0,e.jsx)(tn,{updateModalOpen:f,appCode:S||"",onCancel:function(){return Z(!1)},onSubmit:function(){Z(!1),k()}}),S&&R&&(0,e.jsx)(hn,{updateModalOpen:R,appCode:S||"",onCancel:function(){return d(!1)},onSubmit:function(){d(!1)}}),(0,e.jsx)(fn,{updateModalOpen:g,appCode:S,onCancel:function(){return a(!1)},onSubmit:function(){a(!1),k()}})]})},gn=vn,Cn=function(){var n=(0,V.useModel)("@@initialState"),u=n.initialState,g=u==null?void 0:u.currentUser,a=g&&g.role&&g.role<2;return(0,e.jsx)(J._z,{children:a?(0,e.jsx)(gn,{}):(0,e.jsx)(Ye,{})})},xn=Cn},52043:function(be,te,r){r.d(te,{E7:function(){return V},FG:function(){return J},RQ:function(){return le},XY:function(){return ue},aV:function(){return P},m0:function(){return s}});var J=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"}]},V=function(x){var E=[];if(!x)return E;for(var H=x>>1,_=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],z=0,j=_;z>=1}return E},ue=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},s=function(x){var E=new Date(x),H=E.getFullYear().toString().padStart(4,"0"),_=(E.getMonth()+1).toString().padStart(2,"0"),z=E.getDate().toString().padStart(2,"0");return H+_+z},le=function(x,E){var H=x.toString();return H.padStart(E,"0")},P=function(x){var E=x;return E<1024?E+" B":(E=parseFloat((E/1024).toFixed(2)),E<1024?E+" KB":(E=parseFloat((E/1024).toFixed(2)),E+" MB"))}},32400:function(be,te,r){r.d(te,{p:function(){return Y}});var J=r(15009),V=r.n(J),ue=r(99289),s=r.n(ue),le=r(8322),P=r.n(le);function Y(E){return x.apply(this,arguments)}function x(){return x=s()(V()().mark(function E(H){return V()().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.abrupt("return",new Promise(function(j,h){var fe=new(P()).ArrayBuffer,I=new FileReader;I.onload=function(oe){var ee;fe.append((ee=oe.target)===null||ee===void 0?void 0:ee.result),j(fe.end())},I.onerror=function(oe){h(oe)},I.readAsArrayBuffer(H)}));case 1:case"end":return z.stop()}},E)})),x.apply(this,arguments)}},86250:function(be,te,r){r.d(te,{Z:function(){return xe}});var J=r(67294),V=r(93967),ue=r.n(V),s=r(98423),le=r(98065),P=r(53124),Y=r(91945),x=r(45503);const E=["wrap","nowrap","wrap-reverse"],H=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],_=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],z=(v,y)=>{const w=y.wrap===!0?"wrap":y.wrap;return{[`${v}-wrap-${w}`]:w&&E.includes(w)}},j=(v,y)=>{const w={};return _.forEach(F=>{w[`${v}-align-${F}`]=y.align===F}),w[`${v}-align-stretch`]=!y.align&&!!y.vertical,w},h=(v,y)=>{const w={};return H.forEach(F=>{w[`${v}-justify-${F}`]=y.justify===F}),w};function fe(v,y){return ue()(Object.assign(Object.assign(Object.assign({},z(v,y)),j(v,y)),h(v,y)))}var I=fe;const oe=v=>{const{componentCls:y}=v;return{[y]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},ee=v=>{const{componentCls:y}=v;return{[y]:{"&-gap-small":{gap:v.flexGapSM},"&-gap-middle":{gap:v.flexGap},"&-gap-large":{gap:v.flexGapLG}}}},Ae=v=>{const{componentCls:y}=v,w={};return E.forEach(F=>{w[`${y}-wrap-${F}`]={flexWrap:F}}),w},ve=v=>{const{componentCls:y}=v,w={};return _.forEach(F=>{w[`${y}-align-${F}`]={alignItems:F}}),w},Ee=v=>{const{componentCls:y}=v,w={};return H.forEach(F=>{w[`${y}-justify-${F}`]={justifyContent:F}}),w},ge=()=>({});var Ie=(0,Y.I$)("Flex",v=>{const{paddingXS:y,padding:w,paddingLG:F}=v,G=(0,x.TS)(v,{flexGapSM:y,flexGap:w,flexGapLG:F});return[oe(G),ee(G),Ae(G),ve(G),Ee(G)]},ge,{resetStyle:!1}),Ce=function(v,y){var w={};for(var F in v)Object.prototype.hasOwnProperty.call(v,F)&&y.indexOf(F)<0&&(w[F]=v[F]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,F=Object.getOwnPropertySymbols(v);G{const{prefixCls:w,rootClassName:F,className:G,style:je,flex:we,gap:ne,children:Ge,vertical:ce=!1,component:se="div"}=v,Oe=Ce(v,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:Q,direction:Pe,getPrefixCls:De}=J.useContext(P.E_),K=De("flex",w),[Fe,Be,Te]=Ie(K),Re=ce!=null?ce:Q==null?void 0:Q.vertical,Me=ue()(G,F,Q==null?void 0:Q.className,K,Be,Te,I(K,v),{[`${K}-rtl`]:Pe==="rtl",[`${K}-gap-${ne}`]:(0,le.n)(ne),[`${K}-vertical`]:Re}),t=Object.assign(Object.assign({},Q==null?void 0:Q.style),je);return we&&(t.flex=we),ne&&!(0,le.n)(ne)&&(t.gap=ne),Fe(J.createElement(se,Object.assign({ref:y,className:Me,style:t},(0,s.Z)(Oe,["justify","wrap","align"])),Ge))})}}]); diff --git a/dist/p__App__AppManagement.56c946c4.async.js b/dist/p__App__AppManagement.56c946c4.async.js new file mode 100644 index 0000000..b2ba5a6 --- /dev/null +++ b/dist/p__App__AppManagement.56c946c4.async.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[731],{82339:function(Ae,te,r){r.r(te),r.d(te,{default:function(){return xn}});var J=r(90930),V=r(35312),ue=r(15009),s=r.n(ue),le=r(99289),B=r.n(le),Y=r(5574),g=r.n(Y),A=r(48357),H=r(67539),_=r(55241),N=r(10397),C=r(55102),f=r(67294),me=r(97857),I=r.n(me);function ce(p,n){return ee.apply(this,arguments)}function ee(){return ee=B()(s()().mark(function p(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,V.request)("/api/admin/app/aliPayConfig",I()({method:"GET",params:I()({},n)},u||{})));case 1:case"end":return a.stop()}},p)})),ee.apply(this,arguments)}function Ee(p,n,u){return ge.apply(this,arguments)}function ge(){return ge=B()(s()().mark(function p(n,u,h){return s()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,V.request)("/api/admin/app/aliPayConfig",I()({method:"POST",headers:{"Content-Type":"application/json"},params:I()({},n),data:u},h||{})));case 1:case"end":return v.stop()}},p)})),ge.apply(this,arguments)}function Ie(p,n){return Ce.apply(this,arguments)}function Ce(){return Ce=B()(s()().mark(function p(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,V.request)("/api/admin/app/basicConfig",I()({method:"GET",params:I()({},n)},u||{})));case 1:case"end":return a.stop()}},p)})),Ce.apply(this,arguments)}function we(p,n){return xe.apply(this,arguments)}function xe(){return xe=B()(s()().mark(function p(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,V.request)("/api/admin/app/basicConfig",I()({method:"POST",headers:{"Content-Type":"application/json"},data:n},u||{})));case 1:case"end":return a.stop()}},p)})),xe.apply(this,arguments)}function Ve(p,n){return je.apply(this,arguments)}function je(){return je=B()(s()().mark(function p(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,V.request)("/api/admin/app/normalConfig",I()({method:"GET",params:I()({},n)},u||{})));case 1:case"end":return a.stop()}},p)})),je.apply(this,arguments)}function m(p,n,u){return j.apply(this,arguments)}function j(){return j=B()(s()().mark(function p(n,u,h){return s()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,V.request)("/api/admin/app/normalConfig",I()({method:"POST",headers:{"Content-Type":"application/json"},params:I()({},n),data:u},h||{})));case 1:case"end":return v.stop()}},p)})),j.apply(this,arguments)}function w(p,n){return y.apply(this,arguments)}function y(){return y=B()(s()().mark(function p(n,u){return s()().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,V.request)("/api/admin/app/uMengConfig",I()({method:"GET",params:I()({},n)},u||{})));case 1:case"end":return a.stop()}},p)})),y.apply(this,arguments)}function G(p,n,u){return ye.apply(this,arguments)}function ye(){return ye=B()(s()().mark(function p(n,u,h){return s()().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,V.request)("/api/admin/app/uMengConfig",I()({method:"POST",headers:{"Content-Type":"application/json"},params:I()({},n),data:u},h||{})));case 1:case"end":return v.stop()}},p)})),ye.apply(this,arguments)}function Oe(p,n){return ne.apply(this,arguments)}function ne(){return ne=_asyncToGenerator(_regeneratorRuntime().mark(function p(n,u){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/api/admin/app/wxConfig",_objectSpread({method:"GET",params:_objectSpread({},n)},u||{})));case 1:case"end":return a.stop()}},p)})),ne.apply(this,arguments)}function Ge(p,n,u){return de.apply(this,arguments)}function de(){return de=_asyncToGenerator(_regeneratorRuntime().mark(function p(n,u,h){return _regeneratorRuntime().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",request("/api/admin/app/wxConfig",_objectSpread({method:"POST",headers:{"Content-Type":"application/json"},params:_objectSpread({},n),data:u},h||{})));case 1:case"end":return v.stop()}},p)})),de.apply(this,arguments)}var se=r(1413),Pe=r(93696),Q=r(91146),De=function(n,u){return f.createElement(Q.Z,(0,se.Z)((0,se.Z)({},n),{},{ref:u,icon:Pe.Z}))},Be=f.forwardRef(De),K=Be,Se=r(3089),Te=r(42110),Me=function(n,u){return f.createElement(Q.Z,(0,se.Z)((0,se.Z)({},n),{},{ref:u,icon:Te.Z}))},Re=f.forwardRef(Me),Ue=Re,t=r(8232),Ze=r(17788),Ke=r(72269),pe=r(37804),ae=r(83062),$e=r(71230),re=r(14726),ke=r(15746),e=r(85893),Qe=function(n){var u=t.Z.useForm(),h=g()(u,1),a=h[0],v=function(){a.submit()},L=function(){n.onCancel()},$=function(){var o=B()(s()().mark(function Z(l){var c;return s()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,Ve({appCode:l});case 2:c=S.sent,a.setFieldsValue(c.data);case 4:case"end":return S.stop()}},Z)}));return function(l){return o.apply(this,arguments)}}();(0,f.useEffect)(function(){$(n.appCode)},[n.appCode]);var z=function(){var o=B()(s()().mark(function Z(l){return s()().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,d.next=3,m({appCode:n.appCode},l);case 3:d.next=8;break;case 5:return d.prev=5,d.t0=d.catch(0),d.abrupt("return");case 8:n.onSubmit();case 9:case"end":return d.stop()}},Z,null,[[0,5]])}));return function(l){return o.apply(this,arguments)}}(),O={labelCol:{xs:{span:24},sm:{span:6}},wrapperCol:{xs:{span:24},sm:{span:20}}},i={wrapperCol:{xs:{span:24,offset:10},sm:{span:20,offset:6}}};return(0,e.jsx)(Ze.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:v,onCancel:L,children:(0,e.jsxs)(t.Z,{labelCol:{span:6},wrapperCol:{span:18},form:a,onFinish:z,children:[(0,e.jsx)(t.Z.Item,{name:"enablePangolin",label:"\u542F\u7528\u7A7F\u5C71\u7532",children:(0,e.jsx)(Ke.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"pangolinDailyLimit",label:"\u7A7F\u5C71\u7532\u6BCF\u65E5\u6B21\u6570",children:(0,e.jsx)(pe.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"tencentDailyLimit",label:"\u5E7F\u544A\u6BCF\u65E5\u6B21\u6570",children:(0,e.jsx)(pe.Z,{})}),(0,e.jsx)(t.Z.List,{name:"moneyLadder",children:function(Z,l){var c=l.add,d=l.remove;return(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(t.Z.Item,{label:(0,e.jsxs)(e.Fragment,{children:["\u63D0\u73B0\u68AF\u5EA6",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u7528\u6237\u53EF\u9009\u7684\u63D0\u73B0\u91D1\u989D\u6863\u4F4D\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)(K,{})})})]}),required:!1,children:[(0,e.jsx)($e.Z,{children:Z.map(function(S){return(0,e.jsx)(t.Z.Item,{label:"",required:!1,children:(0,e.jsxs)($e.Z,{align:"stretch",style:{marginRight:10},children:[(0,e.jsx)(t.Z.Item,I()(I()({},S),{},{validateTrigger:["onChange","onBlur"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u91D1\u989D\u6216\u8005\u5220\u9664"}],noStyle:!0,children:(0,e.jsx)(pe.Z,{placeholder:"\u91D1\u989D\uFF0C\u5355\u4F4D\u5206"})})),(0,e.jsx)(Se.Z,{style:{marginLeft:4},className:"dynamic-delete-button",onClick:function(){return d(S.name)}})]})},S.key)})}),(0,e.jsx)(t.Z.Item,I()(I()({},i),{},{children:(0,e.jsx)(re.ZP,{type:"dashed",onClick:function(){return c()},icon:(0,e.jsx)(Ue,{}),children:"\u6DFB\u52A0\u63D0\u73B0\u68AF\u5EA6"})}))]})})}}),(0,e.jsx)(t.Z.Item,{name:"noAuditMoney",label:(0,e.jsxs)(e.Fragment,{children:["\u4E0D\u5BA1\u6838\u95E8\u69DB",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u4F4E\u4E8E\u6B64\u91D1\u989D\u7684\u63D0\u73B0\u7533\u8BF7\u5C06\u4F1A\u81EA\u52A8\u5BA1\u6838\u901A\u8FC7\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsx)(pe.Z,{placeholder:"\u5355\u4F4D\u5206",style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"qqUrl",label:"QQ\u7FA4\u94FE\u63A5",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"dayLimit",label:(0,e.jsxs)(e.Fragment,{children:["\u6BCF\u65E5\u63D0\u73B0\u6B21\u6570",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u540C\u4E2A\u8D26\u53F7\u6216\u540C\u4E2A\u652F\u4ED8\u5B9D\u6BCF\u65E5\u6700\u591A\u63D0\u73B0\u7684\u6B21\u6570",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsx)(pe.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"maxIncomeEachVideo",label:(0,e.jsxs)(e.Fragment,{children:["\u5355\u6761\u6536\u76CA\u4E0A\u9650",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u770B\u4E00\u6761\u89C6\u9891\u6700\u591A\u80FD\u83B7\u5F97\u7684\u94B1\uFF0C\u5355\u4F4D\u5206",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsx)(pe.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.Item,{name:"defaultRate",label:(0,e.jsx)(e.Fragment,{children:"\u9ED8\u8BA4\u5206\u6210\u6BD4\u4F8B"}),children:(0,e.jsx)(pe.Z,{style:{width:"60%"}})}),(0,e.jsx)(t.Z.List,{name:"dayRates",children:function(Z,l){var c=l.add,d=l.remove;return(0,e.jsxs)(e.Fragment,{children:[Z.map(function(S,R){var T=S.key,U=S.name;return(0,e.jsx)(e.Fragment,{children:(0,f.createElement)(t.Z.Item,I()(I()({},R===0?O:i),{},{label:R===0?"\u7279\u6B8A\u65E5\u5206\u6210\u6BD4\u4F8B":"",required:!1,key:T}),(0,e.jsxs)($e.Z,{align:"stretch",gutter:16,children:[(0,e.jsx)(ke.Z,{span:8,children:(0,e.jsx)(t.Z.Item,{name:[U,"day"],rules:[{required:!0}],children:(0,e.jsx)(C.Z,{placeholder:"Day"})})}),(0,e.jsx)(ke.Z,{span:8,children:(0,e.jsx)(t.Z.Item,{name:[U,"rate"],rules:[{required:!0}],children:(0,e.jsx)(C.Z,{placeholder:"Rate"})})}),(0,e.jsx)(ke.Z,{children:(0,e.jsx)(Se.Z,{onClick:function(){return d(U)}})})]},T))})}),(0,e.jsx)(t.Z.Item,I()(I()({},i),{},{children:(0,e.jsx)(re.ZP,{type:"dashed",onClick:function(){return c()},block:!0,children:"\u6DFB\u52A0\u7279\u6B8A\u65E5\u5206\u6210\u6BD4\u4F8B"})}))]})}})]})})},Xe=Qe,Je=function(){var n=(0,f.useState)(!1),u=g()(n,2),h=u[0],a=u[1],v=(0,f.useState)([]),L=g()(v,2),$=L[0],z=L[1],O=(0,f.useState)([]),i=g()(O,2),o=i[0],Z=i[1],l=(0,V.useModel)("@@initialState"),c=l.initialState,d=c==null?void 0:c.currentUser,S=d&&d.role&&d.role<3,R=(0,f.useState)(),T=g()(R,2),U=T[0],x=T[1],P=function(F){var D=$.filter(function(oe){var M;return oe==null||(M=oe.name)===null||M===void 0?void 0:M.includes(F)});Z(D)},W=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0},{title:"\u5E94\u7528\u56FE\u7247",dataIndex:"img",hideInSearch:!0,renderText:function(F){return(0,e.jsx)("img",{style:{width:"40px"},src:F})}},{title:"code",dataIndex:"code",copyable:!0,hideInSearch:!0},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",width:200,hideInSearch:!0,renderText:function(F){return(0,e.jsx)(_.Z,{overlayInnerStyle:{padding:0},content:(0,e.jsx)(N.Z,{value:F||"",bordered:!1}),children:(0,e.jsx)("a",{style:{wordBreak:"break-word"},children:F})})}},{title:"\u64CD\u4F5C",width:80,hideInSearch:!0,renderText:function(F){if(F.enableCash&&S)return(0,e.jsx)("a",{onClick:function(){x(F.code),a(!0)},children:"\u7F16\u8F91"},"edit")}}],E=function(){var b=B()(s()().mark(function F(){var D;return s()().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,(0,A.ln)();case 2:D=M.sent,D.data&&(z(D.data),Z(D.data));case 4:case"end":return M.stop()}},F)}));return function(){return b.apply(this,arguments)}}();return(0,f.useEffect)(function(){E()},[]),(0,e.jsxs)(J._z,{children:[(0,e.jsx)(H.Z,{search:{defaultCollapsed:!1,optionRender:function(){return[(0,e.jsx)(C.Z,{placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onChange:function(D){return P(D.target.value)}},"name")]}},onReset:function(){Z($)},columns:W,dataSource:o}),U&&(0,e.jsx)(Xe,{updateModalOpen:h,appCode:U||"",onCancel:function(){return a(!1)},onSubmit:function(){a(!1)}})]})},Ye=Je,Le=r(52043),Fe=r(66309),qe=r(86250),_e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},en=_e,nn=function(n,u){return f.createElement(Q.Z,(0,se.Z)((0,se.Z)({},n),{},{ref:u,icon:en}))},an=f.forwardRef(nn),he=an,ve=r(66476),be=C.Z.TextArea,rn=function(n){var u=t.Z.useForm(),h=g()(u,1),a=h[0],v=function(){a.submit()},L=function(){n.onCancel()},$=function(){var O=B()(s()().mark(function i(o){var Z;return s()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,ce({appCode:o});case 2:Z=c.sent,a.setFieldsValue(Z.data);case 4:case"end":return c.stop()}},i)}));return function(o){return O.apply(this,arguments)}}();(0,f.useEffect)(function(){$(n.appCode)},[n.appCode]);var z=function(){var O=B()(s()().mark(function i(o){return s()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,Ee({appCode:n.appCode},o);case 3:l.next=8;break;case 5:return l.prev=5,l.t0=l.catch(0),l.abrupt("return");case 8:n.onSubmit();case 9:case"end":return l.stop()}},i,null,[[0,5]])}));return function(o){return O.apply(this,arguments)}}();return(0,e.jsx)(Ze.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:v,onCancel:L,children:(0,e.jsxs)(t.Z,{labelCol:{span:8},wrapperCol:{span:18},form:a,onFinish:z,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayAppId",label:(0,e.jsxs)(e.Fragment,{children:["AppId",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u83B7\u53D6\uFF0Chttps://open.alipay.com/develop/manage",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"aliPayPrivateKey",label:(0,e.jsxs)(e.Fragment,{children:["\u5E94\u7528\u79C1\u94A5RSA2048",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u5BC6\u94A5\u5DE5\u5177\u751F\u6210",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsxs)(C.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayPrivateKey",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9\u5E94\u7528\u79C1\u94A5!"}],children:(0,e.jsx)(be,{autoSize:{maxRows:6}})}),(0,e.jsx)(ve.Z,{name:"file",multiple:!1,onChange:function(i){if(i.file.status!=="uploading"){var o=new FileReader;o.onload=function(){a.setFieldsValue({aliPayPrivateKey:o.result})},o.readAsText(i.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(he,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(t.Z.Item,{name:"aliPayAppCert",label:(0,e.jsxs)(e.Fragment,{children:["appCertPublicKey",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsxs)(C.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayAppCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9appCertPublicKey!"}],children:(0,e.jsx)(be,{autoSize:{maxRows:6}})}),(0,e.jsx)(ve.Z,{name:"file",multiple:!1,onChange:function(i){if(i.file.status!=="uploading"){var o=new FileReader;o.onload=function(){a.setFieldsValue({aliPayAppCert:o.result})},o.readAsText(i.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(he,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(t.Z.Item,{name:"aliPayRootCert",label:(0,e.jsxs)(e.Fragment,{children:["alipayRootCert",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsxs)(C.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayRootCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9alipayRootCert!"}],children:(0,e.jsx)(be,{autoSize:{maxRows:6}})}),(0,e.jsx)(ve.Z,{name:"file",multiple:!1,onChange:function(i){if(i.file.status!=="uploading"){var o=new FileReader;o.onload=function(){a.setFieldsValue({aliPayRootCert:o.result})},o.readAsText(i.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(he,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})}),(0,e.jsx)(t.Z.Item,{name:"aliPayPublicCert",label:(0,e.jsxs)(e.Fragment,{children:["alipayCertPublicKey",(0,e.jsx)("span",{style:{marginLeft:4},children:(0,e.jsx)(ae.Z,{title:"\u652F\u4ED8\u5B9D\u5F00\u653E\u5E73\u53F0\u4E0B\u8F7D",children:(0,e.jsx)(K,{})})})]}),children:(0,e.jsxs)(C.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"aliPayPublicCert",noStyle:!0,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6216\u9009\u62E9alipayCertPublicKey!"}],children:(0,e.jsx)(be,{autoSize:{maxRows:6}})}),(0,e.jsx)(ve.Z,{name:"file",multiple:!1,onChange:function(i){if(i.file.status!=="uploading"){var o=new FileReader;o.onload=function(){a.setFieldsValue({aliPayPublicCert:o.result})},o.readAsText(i.file.originFileObj)}},showUploadList:!1,style:{width:"100px"},children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(he,{}),children:"\u9009\u62E9\u6587\u4EF6"})})]})})]})})},tn=rn,Ne=r(34041),ze=r(32400),un=r(56448),We=r.n(un),ie=r(2453),ln=function(n){var u=n.onUploadSuccess,h=n.onUploadError,a=(0,f.useState)(!1),v=g()(a,2),L=v[0],$=v[1],z=(0,f.useState)(null),O=g()(z,2),i=O[0],o=O[1],Z=(0,f.useState)([]),l=g()(Z,2),c=l[0],d=l[1];(0,f.useEffect)(function(){function R(){return T.apply(this,arguments)}function T(){return T=B()(s()().mark(function U(){var x,P;return s()().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.prev=0,E.next=3,(0,A.po)();case 3:if(x=E.sent,!(!x.data||!x.data.accessKeySecret||!x.data.accessKeyId)){E.next=7;break}return ie.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),E.abrupt("return");case 7:P=new(We())({region:"oss-cn-beijing",accessKeyId:x.data.accessKeyId,accessKeySecret:x.data.accessKeySecret,stsToken:x.data.securityToken,bucket:x.data.bucket}),o(P),E.next=15;break;case 11:E.prev=11,E.t0=E.catch(0),ie.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25"),h&&h(E.t0);case 15:case"end":return E.stop()}},U,null,[[0,11]])})),T.apply(this,arguments)}R()},[h]);var S=function(){var R=B()(s()().mark(function T(U){var x,P,W,E;return s()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(x=U.file,!(x instanceof File)){F.next=26;break}return $(!0),d([{uid:x.uid,name:x.name,status:"uploading"}]),F.prev=4,F.next=7,(0,ze.p)(x);case 7:return P=F.sent,W="matrix/".concat(P,".").concat(x.name.split(".").pop()),F.next=11,i==null?void 0:i.put(W,x,{headers:{"Content-Type":x.type}});case 11:E="https://apks.bzgames.cn/".concat(W),u&&u(E,x),$(!1),d([{uid:x.uid,name:x.name,status:"done",url:E}]),F.next=21;break;case 17:F.prev=17,F.t0=F.catch(4),ie.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25"),h&&h(F.t0);case 21:return F.prev=21,$(!1),F.finish(21);case 24:F.next=27;break;case 26:ie.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 27:case"end":return F.stop()}},T,null,[[4,17,21,24]])}));return function(U){return R.apply(this,arguments)}}();return(0,e.jsx)(ve.Z,{fileList:c,customRequest:S,disabled:L||!i,children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(he,{}),children:"\u9009\u62E9\u6587\u4EF6"})})},He=ln,sn=r(19632),on=r.n(sn),cn=function(n){var u=n.value,h=n.onChange,a=(0,f.useState)(!1),v=g()(a,2),L=v[0],$=v[1],z=(0,f.useState)(null),O=g()(z,2),i=O[0],o=O[1],Z=(0,f.useState)([]),l=g()(Z,2),c=l[0],d=l[1];(0,f.useEffect)(function(){u&&d(u)},[u]),(0,f.useEffect)(function(){function T(){return U.apply(this,arguments)}function U(){return U=B()(s()().mark(function x(){var P,W;return s()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.prev=0,b.next=3,(0,A.po)();case 3:if(P=b.sent,!(!P.data||!P.data.accessKeySecret||!P.data.accessKeyId)){b.next=7;break}return ie.ZP.error("\u521D\u59CB\u5316\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5"),b.abrupt("return");case 7:W=new(We())({region:"oss-cn-beijing",accessKeyId:P.data.accessKeyId,accessKeySecret:P.data.accessKeySecret,stsToken:P.data.securityToken,bucket:P.data.bucket}),o(W),b.next=14;break;case 11:b.prev=11,b.t0=b.catch(0),ie.ZP.error("\u521D\u59CB\u5316 OSS \u5BA2\u6237\u7AEF\u5931\u8D25");case 14:case"end":return b.stop()}},x,null,[[0,11]])})),U.apply(this,arguments)}T()},[]),(0,f.useEffect)(function(){h&&h(c)},[c]);var S=function(){var T=B()(s()().mark(function U(x){var P,W,E,b;return s()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(P=x.file,!(P instanceof File)){D.next=23;break}return $(!0),D.prev=3,D.next=6,(0,ze.p)(P);case 6:return W=D.sent,E="matrix/".concat(W,".").concat(P.name.split(".").pop()),D.next=10,i==null?void 0:i.put(E,P,{headers:{"Content-Type":P.type}});case 10:b="https://apks.bzgames.cn/".concat(E),$(!1),d(function(oe){return[].concat(on()(oe),[{uid:P.uid,name:P.name,status:"done",url:b}])}),D.next=18;break;case 15:D.prev=15,D.t0=D.catch(3),ie.ZP.error("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25");case 18:return D.prev=18,$(!1),D.finish(18);case 21:D.next=24;break;case 23:ie.ZP.error("\u4E0A\u4F20\u6587\u4EF6\u7C7B\u578B\u9519\u8BEF");case 24:case"end":return D.stop()}},U,null,[[3,15,18,21]])}));return function(x){return T.apply(this,arguments)}}(),R=function(U){var x=(c||[]).filter(function(P){return P.url!==U.url});d(x)};return(0,e.jsx)(ve.Z,{multiple:!0,fileList:c,onRemove:R,customRequest:S,disabled:L||!i,children:(0,e.jsx)(re.ZP,{style:{marginTop:10},type:"primary",icon:(0,e.jsx)(he,{}),children:"\u9009\u62E9\u6587\u4EF6"})})},dn=cn,pn=function(n){var u=t.Z.useForm(),h=g()(u,1),a=h[0],v=(0,f.useState)(!1),L=g()(v,2),$=L[0],z=L[1],O=function(){a.submit()},i=function(){n.onCancel()},o=function(){var l=B()(s()().mark(function c(d){var S;return s()().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(d){T.next=3;break}return a.resetFields(),T.abrupt("return");case 3:return T.next=5,Ie({appCode:d});case 5:S=T.sent,a.setFieldsValue(S.data);case 7:case"end":return T.stop()}},c)}));return function(d){return l.apply(this,arguments)}}();(0,f.useEffect)(function(){o(n.appCode),z(n.appCode!==void 0),n.appCode||a.resetFields()},[n.appCode]);var Z=function(){var l=B()(s()().mark(function c(d){return s()().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.prev=0,R.next=3,we(d);case 3:R.next=8;break;case 5:return R.prev=5,R.t0=R.catch(0),R.abrupt("return");case 8:n.onSubmit();case 9:case"end":return R.stop()}},c,null,[[0,5]])}));return function(d){return l.apply(this,arguments)}}();return(0,e.jsx)(Ze.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:O,onCancel:i,children:(0,e.jsxs)(t.Z,{labelCol:{span:5},wrapperCol:{span:18},form:a,onFinish:Z,children:[(0,e.jsx)(t.Z.Item,{name:"id",style:{display:"none"},children:(0,e.jsx)(C.Z,{type:"hidden"})}),(0,e.jsx)(t.Z.Item,{name:"code",style:{display:"none"},children:(0,e.jsx)(C.Z,{type:"hidden"})}),(0,e.jsx)(t.Z.Item,{label:"\u5E94\u7528\u540D",name:"name",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"\u5E94\u7528icon",name:"img",children:(0,e.jsxs)(C.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"img",noStyle:!0,children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(He,{onUploadSuccess:function(c){a.setFieldsValue({img:c})}})]})}),(0,e.jsx)(t.Z.Item,{label:"\u4E0B\u8F7D\u5730\u5740",name:"url",children:(0,e.jsxs)(C.Z.Group,{compact:!0,children:[(0,e.jsx)(t.Z.Item,{name:"url",noStyle:!0,children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(He,{onUploadSuccess:function(c,d){a.setFieldsValue({url:c,fileSize:(0,Le.aV)(d.size)})}})]})}),(0,e.jsx)(t.Z.Item,{label:"app\u7248\u672C",name:"version",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"\u83DC\u5355\u680F\u4E2D",name:"hide",children:(0,e.jsx)(Ne.Z,{options:[{label:"\u5C55\u793A",value:0},{label:"\u9690\u85CF",value:1}]})}),(0,e.jsx)(t.Z.Item,{label:"\u6E20\u9053",name:"channel",children:(0,e.jsx)(Ne.Z,{disabled:$,options:(0,Le.FG)()})}),(0,e.jsx)(t.Z.Item,{label:"app\u5927\u5C0F",name:"fileSize",children:(0,e.jsx)(C.Z,{disabled:!0})}),(0,e.jsx)(t.Z.Item,{label:"app\u4E0B\u8F7D\u6B21\u6570",name:"downloadTimes",children:(0,e.jsx)(C.Z,{disabled:!0})}),(0,e.jsx)(t.Z.Item,{label:"\u6240\u5C5E\u516C\u53F8",name:"author",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"app\u5305\u540D",name:"packageName",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{label:"app\u7B80\u4ECB",name:"desc",children:(0,e.jsx)(C.Z.TextArea,{})}),(0,e.jsxs)(t.Z.Item,{label:"\u5E94\u7528\u622A\u56FE",name:"images",children:[(0,e.jsx)(dn,{value:[],onChange:function(c){var d=c.filter(function(S){return S.url}).map(function(S){return S.url}).filter(Boolean);d&&d.length>0&&a.setFieldsValue({images:d})}}),(0,e.jsx)("label",{style:{color:"gray"},children:"\u53EF\u591A\u9009\uFF0C\u4E0D\u4F20\u9ED8\u8BA4\u4F1A\u4F7F\u7528\u4E4B\u524D\u7684\u65E7\u6570\u636E"})]})]})})},fn=pn,mn=function(n){var u=t.Z.useForm(),h=g()(u,1),a=h[0],v=function(){a.submit()},L=function(){n.onCancel()},$=function(){var O=B()(s()().mark(function i(o){var Z;return s()().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,w({appCode:o});case 2:Z=c.sent,a.setFieldsValue(Z.data);case 4:case"end":return c.stop()}},i)}));return function(o){return O.apply(this,arguments)}}();(0,f.useEffect)(function(){$(n.appCode)},[n.appCode]);var z=function(){var O=B()(s()().mark(function i(o){return s()().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,G({appCode:n.appCode},o);case 3:l.next=8;break;case 5:return l.prev=5,l.t0=l.catch(0),l.abrupt("return");case 8:n.onSubmit();case 9:case"end":return l.stop()}},i,null,[[0,5]])}));return function(o){return O.apply(this,arguments)}}();return(0,e.jsx)(Ze.Z,{title:"\u7F16\u8F91",visible:n.updateModalOpen,onOk:v,onCancel:L,children:(0,e.jsxs)(t.Z,{labelCol:{span:8},wrapperCol:{span:16},form:a,onFinish:z,children:[(0,e.jsx)(t.Z.Item,{name:"umengAppKeyAli",label:"AppKey(\u963F\u91CC\u4E91)",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppSecret",label:"AppSecret(\u963F\u91CC\u4E91)",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppCode",label:"AppCode(\u963F\u91CC\u4E91)",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"umengAppKey",label:"AppKey(\u53CB\u76DF)",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"linkId",label:"linkId(\u53CB\u76DF)",children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(t.Z.Item,{name:"bindWx",label:"\u7ED1\u5B9A\u5FAE\u4FE1\u8D26\u53F7",children:(0,e.jsx)(Ke.Z,{})})]})})},hn=mn,vn=function(){var n=(0,f.useState)(!1),u=g()(n,2),h=u[0],a=u[1],v=(0,f.useState)([]),L=g()(v,2),$=L[0],z=L[1],O=(0,f.useState)([]),i=g()(O,2),o=i[0],Z=i[1],l=(0,f.useState)(!1),c=g()(l,2),d=c[0],S=c[1],R=(0,f.useState)(!1),T=g()(R,2),U=T[0],x=T[1],P=(0,f.useState)(),W=g()(P,2),E=W[0],b=W[1],F=[{title:"\u5E94\u7528\u540D",dataIndex:"name",copyable:!0,hideInSearch:!0},{title:"\u56FE\u7247",dataIndex:"img",hideInSearch:!0,renderText:function(k){return(0,e.jsx)("img",{style:{width:"40px"},src:k})}},{title:"code",dataIndex:"code",copyable:!0,hideInSearch:!0},{title:"\u4E0B\u8F7D\u5730\u5740",dataIndex:"url",width:200,hideInSearch:!0,renderText:function(k){return(0,e.jsx)(_.Z,{overlayInnerStyle:{padding:0},content:(0,e.jsx)(N.Z,{value:k||"",bordered:!1}),children:(0,e.jsx)("a",{style:{wordBreak:"break-word"},children:k})})}},{title:"secret",dataIndex:"secret",ellipsis:!0,copyable:!0,hideInSearch:!0},{title:"\u83DC\u5355\u680F\u4E2D",dataIndex:"hide",hideInSearch:!0,renderText:function(k){return k===0?(0,e.jsx)(Fe.Z,{color:"blue",children:"\u5C55\u793A"}):(0,e.jsx)(Fe.Z,{color:"purple",children:"\u9690\u85CF"})}},{title:"\u6E20\u9053",dataIndex:"channel",hideInSearch:!0,renderText:function(k){var X=(0,Le.FG)(),fe=X.find(function(q){return q.value===k});return fe?fe.label:k}},{title:"\u64CD\u4F5C",width:100,hideInSearch:!0,renderText:function(k){return(0,e.jsxs)(qe.Z,{gap:"small",wrap:!0,children:[(0,e.jsx)(Fe.Z,{color:"magenta",onClick:function(){b(k.code),a(!0)},children:"\u7F16\u8F91"},"edit"),k.enableCash&&(0,e.jsx)(Fe.Z,{color:"orange",onClick:function(){b(k.code),x(!0)},children:"\u53CB\u76DF\u914D\u7F6E"},"ediyUMeng"),(0,e.jsx)(Fe.Z,{color:"#2db7f5",onClick:function(){b(k.code),S(!0)},children:"\u652F\u4ED8\u5B9D\u914D\u7F6E"},"ediyAliPay")]})}}],D=function(){var M=B()(s()().mark(function k(){var X;return s()().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:return q.next=2,(0,A.ln)();case 2:X=q.sent,X.data&&(z(X.data),Z(X.data));case 4:case"end":return q.stop()}},k)}));return function(){return M.apply(this,arguments)}}();(0,f.useEffect)(function(){D()},[]);var oe=function(k){var X=$.filter(function(fe){var q;return fe==null||(q=fe.name)===null||q===void 0?void 0:q.includes(k)});Z(X)};return(0,e.jsxs)(J._z,{children:[(0,e.jsx)(re.ZP,{style:{marginBottom:"20px"},onClick:function(){a(!0),b(void 0)},children:"\u65B0\u5EFA\u5E94\u7528"}),(0,e.jsx)(H.Z,{search:{defaultCollapsed:!1,optionRender:function(){return[(0,e.jsx)(C.Z,{placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onChange:function(X){return oe(X.target.value)}},"name")]}},onReset:function(){Z($)},columns:F,dataSource:o}),E&&d&&(0,e.jsx)(tn,{updateModalOpen:d,appCode:E||"",onCancel:function(){return S(!1)},onSubmit:function(){S(!1),D()}}),E&&U&&(0,e.jsx)(hn,{updateModalOpen:U,appCode:E||"",onCancel:function(){return x(!1)},onSubmit:function(){x(!1)}}),(0,e.jsx)(fn,{updateModalOpen:h,appCode:E,onCancel:function(){return a(!1)},onSubmit:function(){a(!1),D()}})]})},gn=vn,Cn=function(){var n=(0,V.useModel)("@@initialState"),u=n.initialState,h=u==null?void 0:u.currentUser,a=h&&h.role&&h.role<2;return(0,e.jsx)(J._z,{children:a?(0,e.jsx)(gn,{}):(0,e.jsx)(Ye,{})})},xn=Cn},52043:function(Ae,te,r){r.d(te,{E7:function(){return V},FG:function(){return J},RQ:function(){return le},XY:function(){return ue},aV:function(){return B},m0:function(){return s}});var J=function(){return[{label:"\u51E1\u7C73\u6E38",value:"fanmiyou"},{label:"\u5947\u8FF9",value:"qiji"},{label:"\u5229\u597D",value:"lihao"}]},V=function(g){var A=[];if(!g)return A;for(var H=g>>1,_=["\u7528\u6237\u6253\u5F00\u4E86USB\u8C03\u8BD5\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u5F00\u53D1\u8005\u6A21\u5F0F","\u7528\u6237\u6253\u5F00\u4E86\u65E0\u969C\u788D\u6A21\u5F0F","\u7528\u6237\u624B\u673A\u5DF2\u7ECFRoot","\u7528\u6237\u5B89\u88C5\u4E86Xpose","\u7528\u6237\u5F00\u542F\u4E86VPN","\u7528\u6237\u5F00\u542F\u4EE3\u7406","\u652F\u4ED8\u5B9D\u672A\u5B89\u88C5","\u5FAE\u4FE1\u672A\u5B89\u88C5"],N=0,C=_;N>=1}return A},ue=function(){return[{label:"\u5F85\u5BA1\u6279",value:"0",color:"orange"},{label:"\u5BA1\u6279\u901A\u8FC7",value:"1",color:"green"},{label:"\u8F6C\u8D26\u4E2D",value:"2",color:"orange"},{label:"\u8F6C\u8D26\u6210\u529F",value:"3",color:"green"},{label:"\u8F6C\u8D26\u5931\u8D25",value:"-1",color:"red"},{label:"\u5BA1\u6279\u62D2\u7EDD",value:"-2",color:"red"}]},s=function(g){var A=new Date(g),H=A.getFullYear().toString().padStart(4,"0"),_=(A.getMonth()+1).toString().padStart(2,"0"),N=A.getDate().toString().padStart(2,"0");return H+_+N},le=function(g,A){var H=g.toString();return H.padStart(A,"0")},B=function(g){var A=g;return A<1024?A+" B":(A=parseFloat((A/1024).toFixed(2)),A<1024?A+" KB":(A=parseFloat((A/1024).toFixed(2)),A+" MB"))}},32400:function(Ae,te,r){r.d(te,{p:function(){return Y}});var J=r(15009),V=r.n(J),ue=r(99289),s=r.n(ue),le=r(8322),B=r.n(le);function Y(A){return g.apply(this,arguments)}function g(){return g=s()(V()().mark(function A(H){return V()().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.abrupt("return",new Promise(function(C,f){var me=new(B()).ArrayBuffer,I=new FileReader;I.onload=function(ce){var ee;me.append((ee=ce.target)===null||ee===void 0?void 0:ee.result),C(me.end())},I.onerror=function(ce){f(ce)},I.readAsArrayBuffer(H)}));case 1:case"end":return N.stop()}},A)})),g.apply(this,arguments)}},86250:function(Ae,te,r){r.d(te,{Z:function(){return je}});var J=r(67294),V=r(93967),ue=r.n(V),s=r(98423),le=r(98065),B=r(53124),Y=r(91945),g=r(45503);const A=["wrap","nowrap","wrap-reverse"],H=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],_=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],N=(m,j)=>{const w=j.wrap===!0?"wrap":j.wrap;return{[`${m}-wrap-${w}`]:w&&A.includes(w)}},C=(m,j)=>{const w={};return _.forEach(y=>{w[`${m}-align-${y}`]=j.align===y}),w[`${m}-align-stretch`]=!j.align&&!!j.vertical,w},f=(m,j)=>{const w={};return H.forEach(y=>{w[`${m}-justify-${y}`]=j.justify===y}),w};function me(m,j){return ue()(Object.assign(Object.assign(Object.assign({},N(m,j)),C(m,j)),f(m,j)))}var I=me;const ce=m=>{const{componentCls:j}=m;return{[j]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},ee=m=>{const{componentCls:j}=m;return{[j]:{"&-gap-small":{gap:m.flexGapSM},"&-gap-middle":{gap:m.flexGap},"&-gap-large":{gap:m.flexGapLG}}}},Ee=m=>{const{componentCls:j}=m,w={};return A.forEach(y=>{w[`${j}-wrap-${y}`]={flexWrap:y}}),w},ge=m=>{const{componentCls:j}=m,w={};return _.forEach(y=>{w[`${j}-align-${y}`]={alignItems:y}}),w},Ie=m=>{const{componentCls:j}=m,w={};return H.forEach(y=>{w[`${j}-justify-${y}`]={justifyContent:y}}),w},Ce=()=>({});var we=(0,Y.I$)("Flex",m=>{const{paddingXS:j,padding:w,paddingLG:y}=m,G=(0,g.TS)(m,{flexGapSM:j,flexGap:w,flexGapLG:y});return[ce(G),ee(G),Ee(G),ge(G),Ie(G)]},Ce,{resetStyle:!1}),xe=function(m,j){var w={};for(var y in m)Object.prototype.hasOwnProperty.call(m,y)&&j.indexOf(y)<0&&(w[y]=m[y]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,y=Object.getOwnPropertySymbols(m);G{const{prefixCls:w,rootClassName:y,className:G,style:ye,flex:Oe,gap:ne,children:Ge,vertical:de=!1,component:se="div"}=m,Pe=xe(m,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:Q,direction:De,getPrefixCls:Be}=J.useContext(B.E_),K=Be("flex",w),[Se,Te,Me]=we(K),Re=de!=null?de:Q==null?void 0:Q.vertical,Ue=ue()(G,y,Q==null?void 0:Q.className,K,Te,Me,I(K,m),{[`${K}-rtl`]:De==="rtl",[`${K}-gap-${ne}`]:(0,le.n)(ne),[`${K}-vertical`]:Re}),t=Object.assign(Object.assign({},Q==null?void 0:Q.style),ye);return Oe&&(t.flex=Oe),ne&&!(0,le.n)(ne)&&(t.gap=ne),Se(J.createElement(se,Object.assign({ref:j,className:Ue,style:t},(0,s.Z)(Pe,["justify","wrap","align"])),Ge))})}}]); diff --git a/dist/umi.b376a3ea.js b/dist/umi.8a8eedd2.js similarity index 97% rename from dist/umi.b376a3ea.js rename to dist/umi.8a8eedd2.js index 2cabfc5..2877274 100644 --- a/dist/umi.b376a3ea.js +++ b/dist/umi.8a8eedd2.js @@ -116,7 +116,7 @@ html body { `.concat(Q?"width: calc(100% - ".concat(ne,"px);"):"",` }`),B)}else(0,d.jL)(B);return function(){(0,d.jL)(B)}},[Y,B])}var O=!1;function j(Z){return typeof Z=="boolean"&&(O=Z),O}var E=function(Y){return Y===!1?!1:!(0,a.Z)()||!Y?null:typeof Y=="string"?document.querySelector(Y):typeof Y=="function"?Y():Y},$=r.forwardRef(function(Z,Y){var ee=Z.open,te=Z.autoLock,B=Z.getContainer,ne=Z.debug,Q=Z.autoDestroy,q=Q===void 0?!0:Q,L=Z.children,F=r.useState(ee),T=(0,t.Z)(F,2),I=T[0],R=T[1],z=I||ee;r.useEffect(function(){(q||ee)&&R(ee)},[ee,q]);var ae=r.useState(function(){return E(B)}),X=(0,t.Z)(ae,2),G=X[0],ue=X[1];r.useEffect(function(){var U=E(B);ue(U!=null?U:null)});var he=m(z&&!G,ne),Ce=(0,t.Z)(he,2),xe=Ce[0],$e=Ce[1],Ke=G!=null?G:xe;w(te&&ee&&(0,a.Z)()&&(Ke===xe||Ke===document.body));var Je=null;if(L&&(0,c.Yr)(L)&&Y){var qe=L;Je=qe.ref}var st=(0,c.x1)(Je,Y);if(!z||!(0,a.Z)()||G===void 0)return null;var lt=Ke===!1||j(),me=L;return Y&&(me=r.cloneElement(L,{ref:st})),r.createElement(l.Provider,{value:$e},lt?me:(0,o.createPortal)(me,Ke))}),N=$,oe=N},40228:function(v,g,e){"use strict";e.d(g,{Z:function(){return lt}});var t=e(1413),r=e(97685),o=e(91),a=e(2788),s=e(93967),c=e.n(s),u=e(9220),l=e(34203),f=e(27571),p=e(66680),y=e(7028),m=e(8410),d=e(31131),b=e(67294),C=e(87462),x=e(82225),S=e(42550);function w(me){var U=me.prefixCls,M=me.align,D=me.arrow,K=me.arrowPos,k=D||{},J=k.className,le=k.content,_=K.x,V=_===void 0?0:_,se=K.y,fe=se===void 0?0:se,de=b.useRef();if(!M||!M.points)return null;var Be={position:"absolute"};if(M.autoArrow!==!1){var it=M.points[0],Oe=M.points[1],Ee=it[0],A=it[1],ie=Oe[0],Ve=Oe[1];Ee===ie||!["t","b"].includes(Ee)?Be.top=fe:Ee==="t"?Be.top=0:Be.bottom=0,A===Ve||!["l","r"].includes(A)?Be.left=V:A==="l"?Be.left=0:Be.right=0}return b.createElement("div",{ref:de,className:c()("".concat(U,"-arrow"),J),style:Be},le)}function O(me){var U=me.prefixCls,M=me.open,D=me.zIndex,K=me.mask,k=me.motion;return K?b.createElement(x.ZP,(0,C.Z)({},k,{motionAppear:!0,visible:M,removeOnLeave:!0}),function(J){var le=J.className;return b.createElement("div",{style:{zIndex:D},className:c()("".concat(U,"-mask"),le)})}):null}var j=b.memo(function(me){var U=me.children;return U},function(me,U){return U.cache}),E=j,$=b.forwardRef(function(me,U){var M=me.popup,D=me.className,K=me.prefixCls,k=me.style,J=me.target,le=me.onVisibleChanged,_=me.open,V=me.keepDom,se=me.fresh,fe=me.onClick,de=me.mask,Be=me.arrow,it=me.arrowPos,Oe=me.align,Ee=me.motion,A=me.maskMotion,ie=me.forceRender,Ve=me.getPopupContainer,Ze=me.autoDestroy,De=me.portal,Me=me.zIndex,Te=me.onMouseEnter,Le=me.onMouseLeave,We=me.onPointerEnter,et=me.ready,ct=me.offsetX,$t=me.offsetY,pt=me.offsetR,an=me.offsetB,Ut=me.onAlign,Ot=me.onPrepare,Gt=me.stretch,St=me.targetWidth,Ye=me.targetHeight,Ct=typeof M=="function"?M():M,Wt=_||V,mt=(Ve==null?void 0:Ve.length)>0,ln=b.useState(!Ve||!mt),jt=(0,r.Z)(ln,2),Yt=jt[0],Jt=jt[1];if((0,m.Z)(function(){!Yt&&mt&&J&&Jt(!0)},[Yt,mt,J]),!Yt)return null;var pn="auto",un={left:"-1000vw",top:"-1000vh",right:pn,bottom:pn};if(et||!_){var rn,Pn=Oe.points,$n=Oe.dynamicInset||((rn=Oe._experimental)===null||rn===void 0?void 0:rn.dynamicInset),Jn=$n&&Pn[0][1]==="r",Mr=$n&&Pn[0][0]==="b";Jn?(un.right=pt,un.left=pn):(un.left=ct,un.right=pn),Mr?(un.bottom=an,un.top=pn):(un.top=$t,un.bottom=pn)}var qn={};return Gt&&(Gt.includes("height")&&Ye?qn.height=Ye:Gt.includes("minHeight")&&Ye&&(qn.minHeight=Ye),Gt.includes("width")&&St?qn.width=St:Gt.includes("minWidth")&&St&&(qn.minWidth=St)),_||(qn.pointerEvents="none"),b.createElement(De,{open:ie||Wt,getContainer:Ve&&function(){return Ve(J)},autoDestroy:Ze},b.createElement(O,{prefixCls:K,open:_,zIndex:Me,mask:de,motion:A}),b.createElement(u.Z,{onResize:Ut,disabled:!_},function(pr){return b.createElement(x.ZP,(0,C.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:ie,leavedClassName:"".concat(K,"-hidden")},Ee,{onAppearPrepare:Ot,onEnterPrepare:Ot,visible:_,onVisibleChanged:function(ke){var en;Ee==null||(en=Ee.onVisibleChanged)===null||en===void 0||en.call(Ee,ke),le(ke)}}),function(Pe,ke){var en=Pe.className,gt=Pe.style,on=c()(K,en,D);return b.createElement("div",{ref:(0,S.sQ)(pr,U,ke),className:on,style:(0,t.Z)((0,t.Z)((0,t.Z)((0,t.Z)({"--arrow-x":"".concat(it.x||0,"px"),"--arrow-y":"".concat(it.y||0,"px")},un),qn),gt),{},{boxSizing:"border-box",zIndex:Me},k),onMouseEnter:Te,onMouseLeave:Le,onPointerEnter:We,onClick:fe},Be&&b.createElement(w,{prefixCls:K,arrow:Be,arrowPos:it,align:Oe}),b.createElement(E,{cache:!_&&!se},Ct))})}))}),N=$,oe=b.forwardRef(function(me,U){var M=me.children,D=me.getTriggerDOMNode,K=(0,S.Yr)(M),k=b.useCallback(function(le){(0,S.mH)(U,D?D(le):le)},[D]),J=(0,S.x1)(k,M.ref);return K?b.cloneElement(M,{ref:J}):M}),Z=oe,Y=b.createContext(null),ee=Y;function te(me){return me?Array.isArray(me)?me:[me]:[]}function B(me,U,M,D){return b.useMemo(function(){var K=te(M!=null?M:U),k=te(D!=null?D:U),J=new Set(K),le=new Set(k);return me&&(J.has("hover")&&(J.delete("hover"),J.add("click")),le.has("hover")&&(le.delete("hover"),le.add("click"))),[J,le]},[me,U,M,D])}var ne=e(5110);function Q(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2?arguments[2]:void 0;return M?me[0]===U[0]:me[0]===U[0]&&me[1]===U[1]}function q(me,U,M,D){for(var K=M.points,k=Object.keys(me),J=0;J1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(me)?U:me}function R(me){return I(parseFloat(me),0)}function z(me,U){var M=(0,t.Z)({},me);return(U||[]).forEach(function(D){if(!(D instanceof HTMLBodyElement||D instanceof HTMLHtmlElement)){var K=F(D).getComputedStyle(D),k=K.overflow,J=K.overflowClipMargin,le=K.borderTopWidth,_=K.borderBottomWidth,V=K.borderLeftWidth,se=K.borderRightWidth,fe=D.getBoundingClientRect(),de=D.offsetHeight,Be=D.clientHeight,it=D.offsetWidth,Oe=D.clientWidth,Ee=R(le),A=R(_),ie=R(V),Ve=R(se),Ze=I(Math.round(fe.width/it*1e3)/1e3),De=I(Math.round(fe.height/de*1e3)/1e3),Me=(it-Oe-ie-Ve)*Ze,Te=(de-Be-Ee-A)*De,Le=Ee*De,We=A*De,et=ie*Ze,ct=Ve*Ze,$t=0,pt=0;if(k==="clip"){var an=R(J);$t=an*Ze,pt=an*De}var Ut=fe.x+et-$t,Ot=fe.y+Le-pt,Gt=Ut+fe.width+2*$t-et-ct-Me,St=Ot+fe.height+2*pt-Le-We-Te;M.left=Math.max(M.left,Ut),M.top=Math.max(M.top,Ot),M.right=Math.min(M.right,Gt),M.bottom=Math.min(M.bottom,St)}}),M}function ae(me){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M="".concat(U),D=M.match(/^(.*)\%$/);return D?me*(parseFloat(D[1])/100):parseFloat(M)}function X(me,U){var M=U||[],D=(0,r.Z)(M,2),K=D[0],k=D[1];return[ae(me.width,K),ae(me.height,k)]}function G(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[me[0],me[1]]}function ue(me,U){var M=U[0],D=U[1],K,k;return M==="t"?k=me.y:M==="b"?k=me.y+me.height:k=me.y+me.height/2,D==="l"?K=me.x:D==="r"?K=me.x+me.width:K=me.x+me.width/2,{x:K,y:k}}function he(me,U){var M={t:"b",b:"t",l:"r",r:"l"};return me.map(function(D,K){return K===U?M[D]||"c":D}).join("")}function Ce(me,U,M,D,K,k,J){var le=b.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:K[D]||{}}),_=(0,r.Z)(le,2),V=_[0],se=_[1],fe=b.useRef(0),de=b.useMemo(function(){return U?T(U):[]},[U]),Be=b.useRef({}),it=function(){Be.current={}};me||it();var Oe=(0,p.Z)(function(){if(U&&M&&me){let Kt=function(Vn,Sr){var Br=arguments.length>2&&arguments[2]!==void 0?arguments[2]:on,Un=Ct.x+Vn,In=Ct.y+Sr,yn=Un+rn,nr=In+un,Tr=Math.max(Un,Br.left),qr=Math.max(In,Br.top),ga=Math.min(yn,Br.right),ia=Math.min(nr,Br.bottom);return Math.max(0,(ga-Tr)*(ia-qr))},mn=function(){zn=Ct.y+Nn,Fn=zn+un,gr=Ct.x+dn,ar=gr+rn};var ie,Ve,Ze=U,De=Ze.ownerDocument,Me=F(Ze),Te=Me.getComputedStyle(Ze),Le=Te.width,We=Te.height,et=Te.position,ct=Ze.style.left,$t=Ze.style.top,pt=Ze.style.right,an=Ze.style.bottom,Ut=Ze.style.overflow,Ot=(0,t.Z)((0,t.Z)({},K[D]),k),Gt=De.createElement("div");(ie=Ze.parentElement)===null||ie===void 0||ie.appendChild(Gt),Gt.style.left="".concat(Ze.offsetLeft,"px"),Gt.style.top="".concat(Ze.offsetTop,"px"),Gt.style.position=et,Gt.style.height="".concat(Ze.offsetHeight,"px"),Gt.style.width="".concat(Ze.offsetWidth,"px"),Ze.style.left="0",Ze.style.top="0",Ze.style.right="auto",Ze.style.bottom="auto",Ze.style.overflow="hidden";var St;if(Array.isArray(M))St={x:M[0],y:M[1],width:0,height:0};else{var Ye=M.getBoundingClientRect();St={x:Ye.x,y:Ye.y,width:Ye.width,height:Ye.height}}var Ct=Ze.getBoundingClientRect(),Wt=De.documentElement,mt=Wt.clientWidth,ln=Wt.clientHeight,jt=Wt.scrollWidth,Yt=Wt.scrollHeight,Jt=Wt.scrollTop,pn=Wt.scrollLeft,un=Ct.height,rn=Ct.width,Pn=St.height,$n=St.width,Jn={left:0,top:0,right:mt,bottom:ln},Mr={left:-pn,top:-Jt,right:jt-pn,bottom:Yt-Jt},qn=Ot.htmlRegion,pr="visible",Pe="visibleFirst";qn!=="scroll"&&qn!==Pe&&(qn=pr);var ke=qn===Pe,en=z(Mr,de),gt=z(Jn,de),on=qn===pr?gt:en,On=ke?gt:on;Ze.style.left="auto",Ze.style.top="auto",Ze.style.right="0",Ze.style.bottom="0";var Bn=Ze.getBoundingClientRect();Ze.style.left=ct,Ze.style.top=$t,Ze.style.right=pt,Ze.style.bottom=an,Ze.style.overflow=Ut,(Ve=Ze.parentElement)===null||Ve===void 0||Ve.removeChild(Gt);var rr=I(Math.round(rn/parseFloat(Le)*1e3)/1e3),or=I(Math.round(un/parseFloat(We)*1e3)/1e3);if(rr===0||or===0||(0,l.Sh)(M)&&!(0,ne.Z)(M))return;var mr=Ot.offset,ir=Ot.targetOffset,yr=X(Ct,mr),er=(0,r.Z)(yr,2),cn=er[0],tr=er[1],hn=X(St,ir),_t=(0,r.Z)(hn,2),rt=_t[0],bt=_t[1];St.x-=rt,St.y-=bt;var Bt=Ot.points||[],ht=(0,r.Z)(Bt,2),Zt=ht[0],nn=ht[1],qt=G(nn),An=G(Zt),Gn=ue(St,qt),kn=ue(Ct,An),jn=(0,t.Z)({},Ot),dn=Gn.x-kn.x+cn,Nn=Gn.y-kn.y+tr,Tn=Kt(dn,Nn),Dr=Kt(dn,Nn,gt),je=ue(St,["t","l"]),Re=ue(Ct,["t","l"]),Ne=ue(St,["b","r"]),Ue=ue(Ct,["b","r"]),nt=Ot.overflow||{},At=nt.adjustX,sn=nt.adjustY,Sn=nt.shiftX,vn=nt.shiftY,wn=function(Sr){return typeof Sr=="boolean"?Sr:Sr>=0},zn,Fn,gr,ar;mn();var ur=wn(sn),Tt=An[0]===qt[0];if(ur&&An[0]==="t"&&(Fn>On.bottom||Be.current.bt)){var tn=Nn;Tt?tn-=un-Pn:tn=je.y-Ue.y-tr;var Ln=Kt(dn,tn),Zn=Kt(dn,tn,gt);Ln>Tn||Ln===Tn&&(!ke||Zn>=Dr)?(Be.current.bt=!0,Nn=tn,tr=-tr,jn.points=[he(An,0),he(qt,0)]):Be.current.bt=!1}if(ur&&An[0]==="b"&&(znTn||pe===Tn&&(!ke||ce>=Dr)?(Be.current.tb=!0,Nn=Ge,tr=-tr,jn.points=[he(An,0),he(qt,0)]):Be.current.tb=!1}var we=wn(At),ve=An[1]===qt[1];if(we&&An[1]==="l"&&(ar>On.right||Be.current.rl)){var _e=dn;ve?_e-=rn-$n:_e=je.x-Ue.x-cn;var ot=Kt(_e,Nn),It=Kt(_e,Nn,gt);ot>Tn||ot===Tn&&(!ke||It>=Dr)?(Be.current.rl=!0,dn=_e,cn=-cn,jn.points=[he(An,1),he(qt,1)]):Be.current.rl=!1}if(we&&An[1]==="r"&&(grTn||Ft===Tn&&(!ke||Et>=Dr)?(Be.current.lr=!0,dn=Lt,cn=-cn,jn.points=[he(An,1),he(qt,1)]):Be.current.lr=!1}mn();var xn=Sn===!0?0:Sn;typeof xn=="number"&&(grgt.right&&(dn-=ar-gt.right-cn,St.x>gt.right-xn&&(dn+=St.x-gt.right+xn)));var gn=vn===!0?0:vn;typeof gn=="number"&&(zngt.bottom&&(Nn-=Fn-gt.bottom-tr,St.y>gt.bottom-gn&&(Nn+=St.y-gt.bottom+gn)));var zt=Ct.x+dn,xt=zt+rn,wt=Ct.y+Nn,Mt=wt+un,Cn=St.x,Xt=Cn+$n,Dn=St.y,Rr=Dn+Pn,Cr=Math.max(zt,Cn),jr=Math.min(xt,Xt),wr=(Cr+jr)/2,ua=wr-zt,Xr=Math.max(wt,Dn),Vr=Math.min(Mt,Rr),dr=(Xr+Vr)/2,Wr=dr-wt;J==null||J(U,jn);var Nt=Bn.right-Ct.x-(dn+Ct.width),tt=Bn.bottom-Ct.y-(Nn+Ct.height);se({ready:!0,offsetX:dn/rr,offsetY:Nn/or,offsetR:Nt/rr,offsetB:tt/or,arrowX:ua/rr,arrowY:Wr/or,scaleX:rr,scaleY:or,align:jn})}}),Ee=function(){fe.current+=1;var Ve=fe.current;Promise.resolve().then(function(){fe.current===Ve&&Oe()})},A=function(){se(function(Ve){return(0,t.Z)((0,t.Z)({},Ve),{},{ready:!1})})};return(0,m.Z)(A,[D]),(0,m.Z)(function(){me||A()},[me]),[V.ready,V.offsetX,V.offsetY,V.offsetR,V.offsetB,V.arrowX,V.arrowY,V.scaleX,V.scaleY,V.align,Ee]}var xe=e(74902);function $e(me,U,M,D,K){(0,m.Z)(function(){if(me&&U&&M){let fe=function(){D(),K()};var k=U,J=M,le=T(k),_=T(J),V=F(J),se=new Set([V].concat((0,xe.Z)(le),(0,xe.Z)(_)));return se.forEach(function(de){de.addEventListener("scroll",fe,{passive:!0})}),V.addEventListener("resize",fe,{passive:!0}),D(),function(){se.forEach(function(de){de.removeEventListener("scroll",fe),V.removeEventListener("resize",fe)})}}},[me,U,M])}var Ke=e(80334);function Je(me,U,M,D,K,k,J,le){var _=b.useRef(me);_.current=me,b.useEffect(function(){if(U&&D&&(!K||k)){var V=function(A){var ie=A.target;_.current&&!J(ie)&&le(!1)},se=F(D);se.addEventListener("mousedown",V,!0),se.addEventListener("contextmenu",V,!0);var fe=(0,f.A)(M);if(fe&&(fe.addEventListener("mousedown",V,!0),fe.addEventListener("contextmenu",V,!0)),!1)var de,Be,it,Oe;return function(){se.removeEventListener("mousedown",V,!0),se.removeEventListener("contextmenu",V,!0),fe&&(fe.removeEventListener("mousedown",V,!0),fe.removeEventListener("contextmenu",V,!0))}}},[U,M,D,K,k])}var qe=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function st(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a.Z,U=b.forwardRef(function(M,D){var K=M.prefixCls,k=K===void 0?"rc-trigger-popup":K,J=M.children,le=M.action,_=le===void 0?"hover":le,V=M.showAction,se=M.hideAction,fe=M.popupVisible,de=M.defaultPopupVisible,Be=M.onPopupVisibleChange,it=M.afterPopupVisibleChange,Oe=M.mouseEnterDelay,Ee=M.mouseLeaveDelay,A=Ee===void 0?.1:Ee,ie=M.focusDelay,Ve=M.blurDelay,Ze=M.mask,De=M.maskClosable,Me=De===void 0?!0:De,Te=M.getPopupContainer,Le=M.forceRender,We=M.autoDestroy,et=M.destroyPopupOnHide,ct=M.popup,$t=M.popupClassName,pt=M.popupStyle,an=M.popupPlacement,Ut=M.builtinPlacements,Ot=Ut===void 0?{}:Ut,Gt=M.popupAlign,St=M.zIndex,Ye=M.stretch,Ct=M.getPopupClassNameFromAlign,Wt=M.fresh,mt=M.alignPoint,ln=M.onPopupClick,jt=M.onPopupAlign,Yt=M.arrow,Jt=M.popupMotion,pn=M.maskMotion,un=M.popupTransitionName,rn=M.popupAnimation,Pn=M.maskTransitionName,$n=M.maskAnimation,Jn=M.className,Mr=M.getTriggerDOMNode,qn=(0,o.Z)(M,qe),pr=We||et||!1,Pe=b.useState(!1),ke=(0,r.Z)(Pe,2),en=ke[0],gt=ke[1];(0,m.Z)(function(){gt((0,d.Z)())},[]);var on=b.useRef({}),On=b.useContext(ee),Bn=b.useMemo(function(){return{registerSubPopup:function(ea,Fa){on.current[ea]=Fa,On==null||On.registerSubPopup(ea,Fa)}}},[On]),rr=(0,y.Z)(),or=b.useState(null),mr=(0,r.Z)(or,2),ir=mr[0],yr=mr[1],er=b.useRef(null),cn=(0,p.Z)(function(hr){er.current=hr,(0,l.Sh)(hr)&&ir!==hr&&yr(hr),On==null||On.registerSubPopup(rr,hr)}),tr=b.useState(null),hn=(0,r.Z)(tr,2),_t=hn[0],rt=hn[1],bt=b.useRef(null),Bt=(0,p.Z)(function(hr){(0,l.Sh)(hr)&&_t!==hr&&(rt(hr),bt.current=hr)}),ht=b.Children.only(J),Zt=(ht==null?void 0:ht.props)||{},nn={},qt=(0,p.Z)(function(hr){var ea,Fa,za=_t;return(za==null?void 0:za.contains(hr))||((ea=(0,f.A)(za))===null||ea===void 0?void 0:ea.host)===hr||hr===za||(ir==null?void 0:ir.contains(hr))||((Fa=(0,f.A)(ir))===null||Fa===void 0?void 0:Fa.host)===hr||hr===ir||Object.values(on.current).some(function(Ea){return(Ea==null?void 0:Ea.contains(hr))||hr===Ea})}),An=L(k,Jt,rn,un),Gn=L(k,pn,$n,Pn),kn=b.useState(de||!1),jn=(0,r.Z)(kn,2),dn=jn[0],Nn=jn[1],Tn=fe!=null?fe:dn,Dr=(0,p.Z)(function(hr){fe===void 0&&Nn(hr)});(0,m.Z)(function(){Nn(fe||!1)},[fe]);var je=b.useRef(Tn);je.current=Tn;var Re=b.useRef([]);Re.current=[];var Ne=(0,p.Z)(function(hr){var ea;Dr(hr),((ea=Re.current[Re.current.length-1])!==null&&ea!==void 0?ea:Tn)!==hr&&(Re.current.push(hr),Be==null||Be(hr))}),Ue=b.useRef(),nt=function(){clearTimeout(Ue.current)},At=function(ea){var Fa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;nt(),Fa===0?Ne(ea):Ue.current=setTimeout(function(){Ne(ea)},Fa*1e3)};b.useEffect(function(){return nt},[]);var sn=b.useState(!1),Sn=(0,r.Z)(sn,2),vn=Sn[0],wn=Sn[1];(0,m.Z)(function(hr){(!hr||Tn)&&wn(!0)},[Tn]);var zn=b.useState(null),Fn=(0,r.Z)(zn,2),gr=Fn[0],ar=Fn[1],ur=b.useState([0,0]),Tt=(0,r.Z)(ur,2),tn=Tt[0],Ln=Tt[1],Zn=function(ea){Ln([ea.clientX,ea.clientY])},Ge=Ce(Tn,ir,mt?tn:_t,an,Ot,Gt,jt),pe=(0,r.Z)(Ge,11),ce=pe[0],we=pe[1],ve=pe[2],_e=pe[3],ot=pe[4],It=pe[5],Lt=pe[6],Ft=pe[7],Et=pe[8],xn=pe[9],gn=pe[10],zt=B(en,_,V,se),xt=(0,r.Z)(zt,2),wt=xt[0],Mt=xt[1],Cn=wt.has("click"),Xt=Mt.has("click")||Mt.has("contextMenu"),Dn=(0,p.Z)(function(){vn||gn()}),Rr=function(){je.current&&mt&&Xt&&At(!1)};$e(Tn,_t,ir,Dn,Rr),(0,m.Z)(function(){Dn()},[tn,an]),(0,m.Z)(function(){Tn&&!(Ot!=null&&Ot[an])&&Dn()},[JSON.stringify(Gt)]);var Cr=b.useMemo(function(){var hr=q(Ot,k,xn,mt);return c()(hr,Ct==null?void 0:Ct(xn))},[xn,Ct,Ot,k,mt]);b.useImperativeHandle(D,function(){return{nativeElement:bt.current,popupElement:er.current,forceAlign:Dn}});var jr=b.useState(0),wr=(0,r.Z)(jr,2),ua=wr[0],Xr=wr[1],Vr=b.useState(0),dr=(0,r.Z)(Vr,2),Wr=dr[0],Nt=dr[1],tt=function(){if(Ye&&_t){var ea=_t.getBoundingClientRect();Xr(ea.width),Nt(ea.height)}},Kt=function(){tt(),Dn()},mn=function(ea){wn(!1),gn(),it==null||it(ea)},Vn=function(){return new Promise(function(ea){tt(),ar(function(){return ea})})};(0,m.Z)(function(){gr&&(gn(),gr(),ar(null))},[gr]);function Sr(hr,ea,Fa,za){nn[hr]=function(Ea){var Ra;za==null||za(Ea),At(ea,Fa);for(var no=arguments.length,ho=new Array(no>1?no-1:0),Ja=1;Ja1?Fa-1:0),Ea=1;Ea1?Fa-1:0),Ea=1;Ea({background:Nt,border:`${(0,A.bf)(mn.lineWidth)} ${mn.lineType} ${tt}`,[`${Vn}-icon`]:{color:Kt}}),De=Nt=>{const{componentCls:tt,motionDurationSlow:Kt,marginXS:mn,marginSM:Vn,fontSize:Sr,fontSizeLG:Br,lineHeight:Un,borderRadiusLG:In,motionEaseInOutCirc:yn,withDescriptionIconSize:nr,colorText:Tr,colorTextHeading:qr,withDescriptionPadding:ga,defaultPadding:ia}=Nt;return{[tt]:Object.assign(Object.assign({},(0,ie.Wf)(Nt)),{position:"relative",display:"flex",alignItems:"center",padding:ia,wordWrap:"break-word",borderRadius:In,[`&${tt}-rtl`]:{direction:"rtl"},[`${tt}-content`]:{flex:1,minWidth:0},[`${tt}-icon`]:{marginInlineEnd:mn,lineHeight:0},["&-description"]:{display:"none",fontSize:Sr,lineHeight:Un},"&-message":{color:qr},[`&${tt}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${Kt} ${yn}, opacity ${Kt} ${yn}, padding-top ${Kt} ${yn}, padding-bottom ${Kt} ${yn}, - margin-bottom ${Kt} ${yn}`},[`&${tt}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${tt}-with-description`]:{alignItems:"flex-start",padding:ga,[`${tt}-icon`]:{marginInlineEnd:Vn,fontSize:nr,lineHeight:0},[`${tt}-message`]:{display:"block",marginBottom:mn,color:qr,fontSize:Br},[`${tt}-description`]:{display:"block",color:Tr}},[`${tt}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Me=Nt=>{const{componentCls:tt,colorSuccess:Kt,colorSuccessBorder:mn,colorSuccessBg:Vn,colorWarning:Sr,colorWarningBorder:Br,colorWarningBg:Un,colorError:In,colorErrorBorder:yn,colorErrorBg:nr,colorInfo:Tr,colorInfoBorder:qr,colorInfoBg:ga}=Nt;return{[tt]:{"&-success":Ze(Vn,mn,Kt,Nt,tt),"&-info":Ze(ga,qr,Tr,Nt,tt),"&-warning":Ze(Un,Br,Sr,Nt,tt),"&-error":Object.assign(Object.assign({},Ze(nr,yn,In,Nt,tt)),{[`${tt}-description > pre`]:{margin:0,padding:0}})}}},Te=Nt=>{const{componentCls:tt,iconCls:Kt,motionDurationMid:mn,marginXS:Vn,fontSizeIcon:Sr,colorIcon:Br,colorIconHover:Un}=Nt;return{[tt]:{["&-action"]:{marginInlineStart:Vn},[`${tt}-close-icon`]:{marginInlineStart:Vn,padding:0,overflow:"hidden",fontSize:Sr,lineHeight:(0,A.bf)(Sr),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${Kt}-close`]:{color:Br,transition:`color ${mn}`,"&:hover":{color:Un}}},"&-close-text":{color:Br,transition:`color ${mn}`,"&:hover":{color:Un}}}}},Le=Nt=>({withDescriptionIconSize:Nt.fontSizeHeading3,defaultPadding:`${Nt.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${Nt.paddingMD}px ${Nt.paddingContentHorizontalLG}px`});var We=(0,Ve.I$)("Alert",Nt=>[De(Nt),Me(Nt),Te(Nt)],Le),et=function(Nt,tt){var Kt={};for(var mn in Nt)Object.prototype.hasOwnProperty.call(Nt,mn)&&tt.indexOf(mn)<0&&(Kt[mn]=Nt[mn]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vn=0,mn=Object.getOwnPropertySymbols(Nt);Vn{const{icon:tt,prefixCls:Kt,type:mn}=Nt,Vn=ct[mn]||null;return tt?(0,Oe.wm)(tt,S.createElement("span",{className:`${Kt}-icon`},tt),()=>({className:fe()(`${Kt}-icon`,{[tt.props.className]:tt.props.className})})):S.createElement(Vn,{className:`${Kt}-icon`})},pt=Nt=>{const{isClosable:tt,prefixCls:Kt,closeIcon:mn,handleClose:Vn,ariaProps:Sr}=Nt,Br=mn===!0||mn===void 0?S.createElement(le.Z,null):mn;return tt?S.createElement("button",Object.assign({type:"button",onClick:Vn,className:`${Kt}-close-icon`,tabIndex:0},Sr),Br):null};var Ut=S.forwardRef((Nt,tt)=>{const{description:Kt,prefixCls:mn,message:Vn,banner:Sr,className:Br,rootClassName:Un,style:In,onMouseEnter:yn,onMouseLeave:nr,onClick:Tr,afterClose:qr,showIcon:ga,closable:ia,closeText:Ka,closeIcon:hr,action:ea,id:Fa}=Nt,za=et(Nt,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[Ea,Ra]=S.useState(!1),no=S.useRef(null);S.useImperativeHandle(tt,()=>({nativeElement:no.current}));const{getPrefixCls:ho,direction:Ja,alert:$a}=S.useContext(Ee.E_),Xa=ho("alert",mn),[Io,ti,Wo]=We(Xa),$o=fr=>{var sr;Ra(!0),(sr=Nt.onClose)===null||sr===void 0||sr.call(Nt,fr)},Xe=S.useMemo(()=>Nt.type!==void 0?Nt.type:Sr?"warning":"info",[Nt.type,Sr]),vt=S.useMemo(()=>typeof ia=="object"&&ia.closeIcon||Ka?!0:typeof ia=="boolean"?ia:hr!==!1&&hr!==null&&hr!==void 0?!0:!!($a!=null&&$a.closable),[Ka,hr,ia,$a==null?void 0:$a.closable]),ft=Sr&&ga===void 0?!0:ga,Rt=fe()(Xa,`${Xa}-${Xe}`,{[`${Xa}-with-description`]:!!Kt,[`${Xa}-no-icon`]:!ft,[`${Xa}-banner`]:!!Sr,[`${Xa}-rtl`]:Ja==="rtl"},$a==null?void 0:$a.className,Br,Un,Wo,ti),kt=(0,it.Z)(za,{aria:!0,data:!0}),Xn=S.useMemo(()=>{var fr,sr;return typeof ia=="object"&&ia.closeIcon?ia.closeIcon:Ka||(hr!==void 0?hr:typeof($a==null?void 0:$a.closable)=="object"&&(!((fr=$a==null?void 0:$a.closable)===null||fr===void 0)&&fr.closeIcon)?(sr=$a==null?void 0:$a.closable)===null||sr===void 0?void 0:sr.closeIcon:$a==null?void 0:$a.closeIcon)},[hr,ia,Ka,$a==null?void 0:$a.closeIcon]),vr=S.useMemo(()=>{const fr=ia!=null?ia:$a==null?void 0:$a.closable;if(typeof fr=="object"){const{closeIcon:sr}=fr;return et(fr,["closeIcon"])}return{}},[ia,$a==null?void 0:$a.closable]);return Io(S.createElement(de.ZP,{visible:!Ea,motionName:`${Xa}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:fr=>({maxHeight:fr.offsetHeight}),onLeaveEnd:qr},(fr,sr)=>{let{className:Zr,style:Pr}=fr;return S.createElement("div",Object.assign({id:Fa,ref:(0,Be.sQ)(no,sr),"data-show":!Ea,className:fe()(Rt,Zr),style:Object.assign(Object.assign(Object.assign({},$a==null?void 0:$a.style),In),Pr),onMouseEnter:yn,onMouseLeave:nr,onClick:Tr,role:"alert"},kt),ft?S.createElement($t,{description:Kt,icon:Nt.icon,prefixCls:Xa,type:Xe}):null,S.createElement("div",{className:`${Xa}-content`},Vn?S.createElement("div",{className:`${Xa}-message`},Vn):null,Kt?S.createElement("div",{className:`${Xa}-description`},Kt):null),ea?S.createElement("div",{className:`${Xa}-action`},ea):null,S.createElement(pt,{isClosable:vt,prefixCls:Xa,closeIcon:Xn,handleClose:$o,ariaProps:vr}))}))}),Ot=e(15671),Gt=e(43144),St=e(53640),Ye=e(60136),Wt=function(Nt){function tt(){var Kt;return(0,Ot.Z)(this,tt),Kt=(0,St.Z)(this,tt,arguments),Kt.state={error:void 0,info:{componentStack:""}},Kt}return(0,Ye.Z)(tt,Nt),(0,Gt.Z)(tt,[{key:"componentDidCatch",value:function(mn,Vn){this.setState({error:mn,info:Vn})}},{key:"render",value:function(){const{message:mn,description:Vn,id:Sr,children:Br}=this.props,{error:Un,info:In}=this.state,yn=In&&In.componentStack?In.componentStack:null,nr=typeof mn=="undefined"?(Un||"").toString():mn,Tr=typeof Vn=="undefined"?yn:Vn;return Un?S.createElement(Ut,{id:Sr,type:"error",message:nr,description:S.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},Tr)}):Br}}])}(S.Component);const mt=Ut;mt.ErrorBoundary=Wt;var ln=mt,jt=e(14726),Yt=e(2453),Jt=e(97435),pn=e(21770),un=e(14192),rn=e(52676),Pn=e(62812),$n=e(32857),Jn=function(tt,Kt){return S.createElement(B.Z,(0,ee.Z)({},tt,{ref:Kt,icon:$n.Z}))},Mr=S.forwardRef(Jn),qn=Mr,pr=e(83062),Pe=e(85893),ke=function(tt){var Kt=tt.value,mn=tt.configType,Vn=tt.onChange,Sr=tt.list,Br=tt.prefixCls,Un=tt.hashId,In="".concat(Br,"-block-checkbox"),yn=(0,S.useMemo)(function(){var nr=(Sr||[]).map(function(Tr){return(0,Pe.jsx)(pr.Z,{title:Tr.title,children:(0,Pe.jsxs)("div",{className:fe()(Un,"".concat(In,"-item"),"".concat(In,"-item-").concat(Tr.key),"".concat(In,"-").concat(mn,"-item")),onClick:function(){return Vn(Tr.key)},children:[(0,Pe.jsx)(qn,{className:"".concat(In,"-selectIcon ").concat(Un).trim(),style:{display:Kt===Tr.key?"block":"none"}}),Tr!=null&&Tr.icon?(0,Pe.jsx)("div",{className:"".concat(In,"-icon ").concat(Un).trim(),children:Tr.icon}):null]})},Tr.key)});return nr},[Kt,Sr==null?void 0:Sr.length,Vn]);return(0,Pe.jsx)("div",{className:fe()(In,Un),children:yn})},en=e(34041),gt=function(tt){var Kt=S.cloneElement(tt.action,{disabled:tt.disabled});return(0,Pe.jsx)(pr.Z,{title:tt.disabled?tt.disabledReason:"",placement:"left",children:(0,Pe.jsx)(D.Z.Item,{actions:[Kt],children:(0,Pe.jsx)("span",{style:{opacity:tt.disabled?.5:1},children:tt.title})})})},on=function(tt){var Kt=tt.settings,mn=tt.prefixCls,Vn=tt.changeSetting,Sr=tt.hashId,Br=bt(),Un=Kt||un.h,In=Un.contentWidth,yn=Un.splitMenus,nr=Un.fixedHeader,Tr=Un.layout,qr=Un.fixSiderbar;return(0,Pe.jsx)(D.Z,{className:"".concat(mn,"-list ").concat(Sr).trim(),split:!1,dataSource:[{title:Br({id:"app.setting.content-width",defaultMessage:"Content Width"}),action:(0,Pe.jsxs)(en.Z,{value:In||"Fixed",size:"small",className:"content-width ".concat(Sr).trim(),onSelect:function(ia){Vn("contentWidth",ia)},style:{width:80},children:[Tr==="side"?null:(0,Pe.jsx)(en.Z.Option,{value:"Fixed",children:Br({id:"app.setting.content-width.fixed",defaultMessage:"Fixed"})}),(0,Pe.jsx)(en.Z.Option,{value:"Fluid",children:Br({id:"app.setting.content-width.fluid",defaultMessage:"Fluid"})})]})},{title:Br({id:"app.setting.fixedheader",defaultMessage:"Fixed Header"}),action:(0,Pe.jsx)(K.Z,{size:"small",className:"fixed-header",checked:!!nr,onChange:function(ia){Vn("fixedHeader",ia)}})},{title:Br({id:"app.setting.fixedsidebar",defaultMessage:"Fixed Sidebar"}),disabled:Tr==="top",disabledReason:Br({id:"app.setting.fixedsidebar.hint",defaultMessage:"Works on Side Menu Layout"}),action:(0,Pe.jsx)(K.Z,{size:"small",className:"fix-siderbar",checked:!!qr,onChange:function(ia){return Vn("fixSiderbar",ia)}})},{title:Br({id:"app.setting.splitMenus"}),disabled:Tr!=="mix",action:(0,Pe.jsx)(K.Z,{size:"small",checked:!!yn,className:"split-menus",onChange:function(ia){Vn("splitMenus",ia)}})}],renderItem:gt})},On=function(tt){var Kt=tt.settings,mn=tt.prefixCls,Vn=tt.changeSetting,Sr=tt.hashId,Br=bt(),Un=["header","footer","menu","menuHeader"];return(0,Pe.jsx)(D.Z,{className:"".concat(mn,"-list ").concat(Sr).trim(),split:!1,renderItem:gt,dataSource:Un.map(function(In){return{title:Br({id:"app.setting.regionalsettings.".concat(In)}),action:(0,Pe.jsx)(K.Z,{size:"small",className:"regional-".concat(In," ").concat(Sr).trim(),checked:Kt["".concat(In,"Render")]||Kt["".concat(In,"Render")]===void 0,onChange:function(nr){return Vn("".concat(In,"Render"),nr===!0?void 0:!1)}})}})})},Bn=e(91),rr=["color","check"],or=S.forwardRef(function(Nt,tt){var Kt=Nt.color,mn=Nt.check,Vn=(0,Bn.Z)(Nt,rr);return(0,Pe.jsx)("div",(0,x.Z)((0,x.Z)({},Vn),{},{style:{backgroundColor:Kt},ref:tt,children:mn?(0,Pe.jsx)(qn,{}):""}))}),mr=function(tt){var Kt=tt.value,mn=tt.colorList,Vn=tt.onChange,Sr=tt.prefixCls,Br=tt.formatMessage,Un=tt.hashId;if(!mn||(mn==null?void 0:mn.length)<1)return null;var In="".concat(Sr,"-theme-color");return(0,Pe.jsx)("div",{className:"".concat(In," ").concat(Un).trim(),children:mn==null?void 0:mn.map(function(yn){var nr=yn.key,Tr=yn.color,qr=yn.title;return nr?(0,Pe.jsx)(pr.Z,{title:qr!=null?qr:Br({id:"app.setting.themecolor.".concat(nr)}),children:(0,Pe.jsx)(or,{className:"".concat(In,"-block ").concat(Un).trim(),color:Tr,check:Kt===Tr,onClick:function(){return Vn&&Vn(Tr)}})},Tr):null})})};function ir(){return(0,Pe.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"1em",height:"1em",viewBox:"0 0 104 104",children:[(0,Pe.jsxs)("defs",{children:[(0,Pe.jsx)("rect",{id:"path-1",width:"90",height:"72",x:"0",y:"0",rx:"10"}),(0,Pe.jsxs)("filter",{id:"filter-2",width:"152.2%",height:"165.3%",x:"-26.1%",y:"-27.1%",filterUnits:"objectBoundingBox",children:[(0,Pe.jsx)("feMorphology",{in:"SourceAlpha",radius:"0.25",result:"shadowSpreadOuter1"}),(0,Pe.jsx)("feOffset",{dy:"1",in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),(0,Pe.jsx)("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"1"}),(0,Pe.jsx)("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),(0,Pe.jsx)("feMorphology",{in:"SourceAlpha",radius:"1",result:"shadowSpreadOuter2"}),(0,Pe.jsx)("feOffset",{dy:"2",in:"shadowSpreadOuter2",result:"shadowOffsetOuter2"}),(0,Pe.jsx)("feGaussianBlur",{in:"shadowOffsetOuter2",result:"shadowBlurOuter2",stdDeviation:"4"}),(0,Pe.jsx)("feColorMatrix",{in:"shadowBlurOuter2",result:"shadowMatrixOuter2",values:"0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0"}),(0,Pe.jsx)("feMorphology",{in:"SourceAlpha",radius:"2",result:"shadowSpreadOuter3"}),(0,Pe.jsx)("feOffset",{dy:"4",in:"shadowSpreadOuter3",result:"shadowOffsetOuter3"}),(0,Pe.jsx)("feGaussianBlur",{in:"shadowOffsetOuter3",result:"shadowBlurOuter3",stdDeviation:"8"}),(0,Pe.jsx)("feColorMatrix",{in:"shadowBlurOuter3",result:"shadowMatrixOuter3",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),(0,Pe.jsxs)("feMerge",{children:[(0,Pe.jsx)("feMergeNode",{in:"shadowMatrixOuter1"}),(0,Pe.jsx)("feMergeNode",{in:"shadowMatrixOuter2"}),(0,Pe.jsx)("feMergeNode",{in:"shadowMatrixOuter3"})]})]})]}),(0,Pe.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[(0,Pe.jsxs)("g",{children:[(0,Pe.jsx)("use",{fill:"#000",filter:"url(#filter-2)",xlinkHref:"#path-1"}),(0,Pe.jsx)("use",{fill:"#F0F2F5",xlinkHref:"#path-1"})]}),(0,Pe.jsx)("path",{fill:"#FFF",d:"M25 15h65v47c0 5.523-4.477 10-10 10H25V15z"}),(0,Pe.jsx)("path",{stroke:"#E6EAF0",strokeLinecap:"square",d:"M0.5 15.5L90.5 15.5"}),(0,Pe.jsx)("rect",{width:"14",height:"3",x:"4",y:"26",fill:"#D7DDE6",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"9",height:"3",x:"4",y:"32",fill:"#D7DDE6",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"9",height:"3",x:"4",y:"42",fill:"#E6EAF0",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"9",height:"3",x:"4",y:"21",fill:"#E6EAF0",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"9",height:"3",x:"4",y:"53",fill:"#D7DDE6",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"14",height:"3",x:"4",y:"47",fill:"#D7DDE6",rx:"1.5"}),(0,Pe.jsx)("path",{stroke:"#E6EAF0",strokeLinecap:"square",d:"M25.5 15.5L25.5 72.5"})]})]})}function yr(){return(0,Pe.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"1em",height:"1em",viewBox:"0 0 104 104",children:[(0,Pe.jsxs)("defs",{children:[(0,Pe.jsx)("rect",{id:"path-1",width:"90",height:"72",x:"0",y:"0",rx:"10"}),(0,Pe.jsxs)("filter",{id:"filter-2",width:"152.2%",height:"165.3%",x:"-26.1%",y:"-27.1%",filterUnits:"objectBoundingBox",children:[(0,Pe.jsx)("feMorphology",{in:"SourceAlpha",radius:"0.25",result:"shadowSpreadOuter1"}),(0,Pe.jsx)("feOffset",{dy:"1",in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),(0,Pe.jsx)("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"1"}),(0,Pe.jsx)("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),(0,Pe.jsx)("feMorphology",{in:"SourceAlpha",radius:"1",result:"shadowSpreadOuter2"}),(0,Pe.jsx)("feOffset",{dy:"2",in:"shadowSpreadOuter2",result:"shadowOffsetOuter2"}),(0,Pe.jsx)("feGaussianBlur",{in:"shadowOffsetOuter2",result:"shadowBlurOuter2",stdDeviation:"4"}),(0,Pe.jsx)("feColorMatrix",{in:"shadowBlurOuter2",result:"shadowMatrixOuter2",values:"0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0"}),(0,Pe.jsx)("feMorphology",{in:"SourceAlpha",radius:"2",result:"shadowSpreadOuter3"}),(0,Pe.jsx)("feOffset",{dy:"4",in:"shadowSpreadOuter3",result:"shadowOffsetOuter3"}),(0,Pe.jsx)("feGaussianBlur",{in:"shadowOffsetOuter3",result:"shadowBlurOuter3",stdDeviation:"8"}),(0,Pe.jsx)("feColorMatrix",{in:"shadowBlurOuter3",result:"shadowMatrixOuter3",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),(0,Pe.jsxs)("feMerge",{children:[(0,Pe.jsx)("feMergeNode",{in:"shadowMatrixOuter1"}),(0,Pe.jsx)("feMergeNode",{in:"shadowMatrixOuter2"}),(0,Pe.jsx)("feMergeNode",{in:"shadowMatrixOuter3"})]})]})]}),(0,Pe.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[(0,Pe.jsxs)("g",{children:[(0,Pe.jsx)("use",{fill:"#000",filter:"url(#filter-2)",xlinkHref:"#path-1"}),(0,Pe.jsx)("use",{fill:"#F0F2F5",xlinkHref:"#path-1"})]}),(0,Pe.jsx)("path",{fill:"#FFF",d:"M26 0h55c5.523 0 10 4.477 10 10v8H26V0z"}),(0,Pe.jsx)("path",{fill:"#001529",d:"M10 0h19v72H10C4.477 72 0 67.523 0 62V10C0 4.477 4.477 0 10 0z"}),(0,Pe.jsx)("rect",{width:"14",height:"3",x:"5",y:"18",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"14",height:"3",x:"5",y:"42",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"9",height:"3",x:"9",y:"24",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"9",height:"3",x:"9",y:"48",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"9",height:"3",x:"9",y:"36",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"14",height:"3",x:"9",y:"30",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"14",height:"3",x:"9",y:"54",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"})]})]})}var er=e(4942),cn=e(98082),tr=function(tt){return(0,er.Z)((0,er.Z)({},"".concat(tt.componentCls,"-handle"),{position:"fixed",insetBlockStart:"240px",insetInlineEnd:"0px",zIndex:0,display:"flex",alignItems:"center",justifyContent:"center",width:"48px",height:"48px",fontSize:"16px",textAlign:"center",backgroundColor:tt.colorPrimary,borderEndStartRadius:tt.borderRadiusLG,borderStartStartRadius:tt.borderRadiusLG,"-webkit-backdropilter":"saturate(180%) blur(20px)",backdropFilter:"saturate(180%) blur(20px)",cursor:"pointer",pointerEvents:"auto"}),tt.componentCls,{"&-content":{position:"relative",minHeight:"100%",color:tt.colorText},"&-body-title":{marginBlock:tt.marginXS,fontSize:"14px",lineHeight:"22px",color:tt.colorTextHeading},"&-block-checkbox":{display:"flex",minHeight:42,gap:tt.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:tt.boxShadow,cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#fff","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-dark,&-side":{backgroundColor:tt.colorBgElevated,"&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:tt.colorBgContainer}},"&-top":{backgroundColor:tt.colorBgElevated,"&::before":{backgroundColor:"transparent"},"&::after":{backgroundColor:"#001529"}},"&-mix":{backgroundColor:tt.colorBgElevated,"&::before":{backgroundColor:tt.colorBgContainer},"&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:tt.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:tt.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-theme-color":{marginBlockStart:"16px",overflow:"hidden","& &-block":{float:"left",width:"20px",height:"20px",marginBlockStart:8,marginInlineEnd:8,color:"#fff",fontWeight:"bold",textAlign:"center",borderRadius:"2px",cursor:"pointer"}},"&-list":(0,er.Z)({},"li".concat(tt.antCls,"-list-item"),{paddingInline:0,paddingBlock:8})})};function hn(Nt){return(0,cn.Xj)("ProLayoutSettingDrawer",function(tt){var Kt=(0,x.Z)((0,x.Z)({},tt),{},{componentCls:".".concat(Nt)});return[tr(Kt)]})}var _t=function(tt){var Kt=tt.children,mn=tt.hashId,Vn=tt.prefixCls,Sr=tt.title;return(0,Pe.jsxs)("div",{style:{marginBlockEnd:12},children:[(0,Pe.jsx)("h3",{className:"".concat(Vn,"-body-title ").concat(mn).trim(),children:Sr}),Kt]})},rt=function(tt){var Kt={};return Object.keys(tt).forEach(function(mn){tt[mn]!==un.h[mn]&&mn!=="collapse"?Kt[mn]=tt[mn]:Kt[mn]=void 0,mn.includes("Render")&&(Kt[mn]=tt[mn]===!1?!1:void 0)}),Kt.menu=void 0,Kt},bt=function(){var tt=function(mn){var Vn=mn.id,Sr=(0,rn.e)();return Sr[Vn]};return tt},Bt=function(tt,Kt,mn){if((0,$e.j)()){var Vn={};Object.keys(tt).forEach(function(Br){if(un.h[Br]||un.h[Br]===void 0){if(Br==="colorPrimary"){Vn[Br]=(0,Pn.tV)(tt[Br]);return}Vn[Br]=tt[Br]}});var Sr=(0,Ke.T)({},Kt,Vn);delete Sr.menu,delete Sr.title,delete Sr.iconfontUrl,mn==null||mn(Sr)}},ht=function(tt,Kt){return(0,$e.j)()?(0,x.Z)((0,x.Z)((0,x.Z)({},un.h),Kt||{}),tt):un.h},Zt=function(tt){return JSON.stringify((0,Jt.Z)((0,x.Z)((0,x.Z)({},tt),{},{colorPrimary:tt.colorPrimary}),["colorWeak"]),null,2)},nn=function(tt){var Kt=tt.defaultSettings,mn=Kt===void 0?void 0:Kt,Vn=tt.settings,Sr=Vn===void 0?void 0:Vn,Br=tt.hideHintAlert,Un=tt.hideCopyButton,In=tt.colorList,yn=In===void 0?[{key:"techBlue",color:"#1677FF"},{key:"daybreak",color:"#1890ff"},{key:"dust",color:"#F5222D"},{key:"volcano",color:"#FA541C"},{key:"sunset",color:"#FAAD14"},{key:"cyan",color:"#13C2C2"},{key:"green",color:"#52C41A"},{key:"geekblue",color:"#2F54EB"},{key:"purple",color:"#722ED1"}]:In,nr=tt.getContainer,Tr=tt.onSettingChange,qr=tt.enableDarkTheme,ga=tt.prefixCls,ia=ga===void 0?"ant-pro":ga,Ka=tt.pathname,hr=Ka===void 0?window.location.pathname:Ka,ea=tt.disableUrlParams,Fa=ea===void 0?!0:ea,za=tt.themeOnly,Ea=(0,S.useRef)(!0),Ra=(0,pn.Z)(!1,{value:tt.collapse,onChange:tt.onCollapseChange}),no=(0,Y.Z)(Ra,2),ho=no[0],Ja=no[1],$a=(0,S.useState)((0,rn.G)()),Xa=(0,Y.Z)($a,2),Io=Xa[0],ti=Xa[1],Wo=(0,st.l)({},{disabled:Fa}),$o=(0,Y.Z)(Wo,2),Xe=$o[0],vt=$o[1],ft=(0,pn.Z)(function(){return ht(Xe,Sr||mn)},{value:Sr,onChange:Tr}),Rt=(0,Y.Z)(ft,2),kt=Rt[0],Xn=Rt[1],vr=kt||{},fr=vr.navTheme,sr=vr.colorPrimary,Zr=vr.siderMenuType,Pr=vr.layout,br=vr.colorWeak;(0,S.useEffect)(function(){var _r=function(){Io!==(0,rn.G)()&&ti((0,rn.G)())};return(0,$e.j)()?(Bt(ht(Xe,Sr),kt,Xn),window.document.addEventListener("languagechange",_r,{passive:!0}),function(){return window.document.removeEventListener("languagechange",_r)}):function(){return null}},[]),(0,S.useEffect)(function(){(0,Je.n)(lt.Z,"5.0.0")<0&&me.ZP.config({theme:{primaryColor:kt.colorPrimary}})},[kt.colorPrimary,kt.navTheme]);var Hn=function(Gr,zr){var aa={};if(aa[Gr]=zr,Gr==="layout"&&(aa.contentWidth=zr==="top"?"Fixed":"Fluid"),Gr==="layout"&&zr!=="mix"&&(aa.splitMenus=!1),Gr==="layout"&&zr==="mix"&&(aa.navTheme="light"),Gr==="colorWeak"&&zr===!0){var ma=document.querySelector("body");ma&&(ma.dataset.prosettingdrawer=ma.style.filter,ma.style.filter="invert(80%)")}if(Gr==="colorWeak"&&zr===!1){var Da=document.querySelector("body");Da&&(Da.style.filter=Da.dataset.prosettingdrawer||"none",delete Da.dataset.prosettingdrawer)}delete aa.menu,delete aa.title,delete aa.iconfontUrl,delete aa.logo,delete aa.pwa,Xn((0,x.Z)((0,x.Z)({},kt),aa))},Fr=bt();(0,S.useEffect)(function(){if((0,$e.j)()&&!Fa){if(Ea.current){Ea.current=!1;return}var _r=new URLSearchParams(window.location.search),Gr=Object.fromEntries(_r.entries()),zr=rt((0,x.Z)((0,x.Z)({},Gr),kt));delete zr.logo,delete zr.menu,delete zr.title,delete zr.iconfontUrl,delete zr.pwa,vt(zr)}},[vt,kt,Xe,hr,Fa]);var ta="".concat(ia,"-setting-drawer"),Hr=hn(ta),Jr=Hr.wrapSSR,Qr=Hr.hashId,ra=(0,qe.X)(ho);return Jr((0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("div",{className:"".concat(ta,"-handle ").concat(Qr).trim(),onClick:function(){return Ja(!ho)},style:{width:48,height:48},children:ho?(0,Pe.jsx)(q,{style:{color:"#fff",fontSize:20}}):(0,Pe.jsx)(I,{style:{color:"#fff",fontSize:20}})}),(0,Pe.jsx)(U.Z,(0,x.Z)((0,x.Z)({},ra),{},{width:300,onClose:function(){return Ja(!1)},closable:!1,placement:"right",getContainer:nr,style:{zIndex:999},children:(0,Pe.jsxs)("div",{className:"".concat(ta,"-drawer-content ").concat(Qr).trim(),children:[(0,Pe.jsx)(_t,{title:Fr({id:"app.setting.pagestyle",defaultMessage:"Page style setting"}),hashId:Qr,prefixCls:ta,children:(0,Pe.jsx)(ke,{hashId:Qr,prefixCls:ta,list:[{key:"light",title:Fr({id:"app.setting.pagestyle.light",defaultMessage:"\u4EAE\u8272\u83DC\u5355\u98CE\u683C"})},{key:"realDark",title:Fr({id:"app.setting.pagestyle.realdark",defaultMessage:"\u6697\u8272\u83DC\u5355\u98CE\u683C"})}].filter(function(_r){return!(_r.key==="dark"&&kt.layout==="mix"||_r.key==="realDark"&&!qr)}),value:fr,configType:"theme",onChange:function(Gr){return Hn("navTheme",Gr)}},"navTheme")}),yn!==!1&&(0,Pe.jsx)(_t,{hashId:Qr,title:Fr({id:"app.setting.themecolor",defaultMessage:"Theme color"}),prefixCls:ta,children:(0,Pe.jsx)(mr,{hashId:Qr,prefixCls:ta,colorList:yn,value:(0,Pn.tV)(sr),formatMessage:Fr,onChange:function(Gr){return Hn("colorPrimary",Gr)}})}),!za&&(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(M.Z,{}),(0,Pe.jsx)(_t,{hashId:Qr,prefixCls:ta,title:Fr({id:"app.setting.navigationmode"}),children:(0,Pe.jsx)(ke,{prefixCls:ta,value:Pr,hashId:Qr,configType:"layout",list:[{key:"side",title:Fr({id:"app.setting.sidemenu"})},{key:"top",title:Fr({id:"app.setting.topmenu"})},{key:"mix",title:Fr({id:"app.setting.mixmenu"})}],onChange:function(Gr){return Hn("layout",Gr)}},"layout")}),kt.layout=="side"||kt.layout=="mix"?(0,Pe.jsx)(_t,{hashId:Qr,prefixCls:ta,title:Fr({id:"app.setting.sidermenutype"}),children:(0,Pe.jsx)(ke,{prefixCls:ta,value:Zr,hashId:Qr,configType:"siderMenuType",list:[{key:"sub",icon:(0,Pe.jsx)(yr,{}),title:Fr({id:"app.setting.sidermenutype-sub"})},{key:"group",icon:(0,Pe.jsx)(ir,{}),title:Fr({id:"app.setting.sidermenutype-group"})}],onChange:function(Gr){return Hn("siderMenuType",Gr)}},"siderMenuType")}):null,(0,Pe.jsx)(on,{prefixCls:ta,hashId:Qr,settings:kt,changeSetting:Hn}),(0,Pe.jsx)(M.Z,{}),(0,Pe.jsx)(_t,{hashId:Qr,prefixCls:ta,title:Fr({id:"app.setting.regionalsettings"}),children:(0,Pe.jsx)(On,{hashId:Qr,prefixCls:ta,settings:kt,changeSetting:Hn})}),(0,Pe.jsx)(M.Z,{}),(0,Pe.jsx)(_t,{hashId:Qr,prefixCls:ta,title:Fr({id:"app.setting.othersettings"}),children:(0,Pe.jsx)(D.Z,{className:"".concat(ta,"-list ").concat(Qr).trim(),split:!1,size:"small",renderItem:gt,dataSource:[{title:Fr({id:"app.setting.weakmode"}),action:(0,Pe.jsx)(K.Z,{size:"small",className:"color-weak",checked:!!br,onChange:function(Gr){Hn("colorWeak",Gr)}})}]})}),Br&&Un?null:(0,Pe.jsx)(M.Z,{}),Br?null:(0,Pe.jsx)(ln,{type:"warning",message:Fr({id:"app.setting.production.hint"}),icon:(0,Pe.jsx)(G,{}),showIcon:!0,style:{marginBlockEnd:16}}),Un?null:(0,Pe.jsx)(jt.ZP,{block:!0,icon:(0,Pe.jsx)(xe,{}),style:{marginBlockEnd:24},onClick:(0,Z.Z)((0,oe.Z)().mark(function _r(){return(0,oe.Z)().wrap(function(zr){for(;;)switch(zr.prev=zr.next){case 0:return zr.prev=0,zr.next=3,navigator.clipboard.writeText(Zt(kt));case 3:Yt.ZP.success(Fr({id:"app.setting.copyinfo"})),zr.next=8;break;case 6:zr.prev=6,zr.t0=zr.catch(0);case 8:case"end":return zr.stop()}},_r,null,[[0,6]])})),children:Fr({id:"app.setting.copy"})})]})]})}))]}))},qt=e(35312),An=e(67610);function Gn(Nt){var tt=Nt!=null?Nt:{},Kt=tt.currentUser,mn={canAdmin:Kt&&Kt.role&&Kt.role<=3,superAdmin:Kt&&Kt.role&&Kt.role===1,canDeviceOwner:Kt&&Kt.role&&Kt.role>3};return mn}var kn={errorConfig:{errorThrower:function(tt){var Kt=tt,mn=Kt.data,Vn=Kt.code,Sr=Kt.message;if(Vn!==0){var Br=new Error(Sr);throw Br.name="BizError",Br.info={code:Vn,message:Sr,data:mn},Br}},errorHandler:function(tt,Kt){if(Kt!=null&&Kt.skipErrorHandler)throw tt;if(tt.name==="BizError"){var mn=tt.info;mn&&Yt.ZP.error(mn.message)}else tt.response?Yt.ZP.error("Response status:".concat(tt.response.status)):tt.request?Yt.ZP.error("None response! Please retry."):Yt.ZP.error("Request error, please retry.")}},requestInterceptors:[function(Nt){var tt,Kt=Nt==null||(tt=Nt.url)===null||tt===void 0?void 0:tt.concat("?token = 123");return y()(y()({},Nt),{},{url:Kt})}],responseInterceptors:[function(Nt){var tt=Nt,Kt=tt.data;return Kt.code!==0?Kt.success=!1:Kt.success=!0,Nt}]},jn=!1,dn="/user/login";function Nn(){return Tn.apply(this,arguments)}function Tn(){return Tn=d()(f()().mark(function Nt(){var tt,Kt,mn;return f()().wrap(function(Sr){for(;;)switch(Sr.prev=Sr.next){case 0:if(tt=function(){var Br=d()(f()().mark(function Un(){var In;return f()().wrap(function(nr){for(;;)switch(nr.prev=nr.next){case 0:return nr.prev=0,nr.next=3,(0,C.Vk)({skipErrorHandler:!0});case 3:return In=nr.sent,nr.abrupt("return",In.data);case 7:nr.prev=7,nr.t0=nr.catch(0),qt.history.push(dn);case 10:return nr.abrupt("return",void 0);case 11:case"end":return nr.stop()}},Un,null,[[0,7]])}));return function(){return Br.apply(this,arguments)}}(),Kt=qt.history.location,Kt.pathname===dn){Sr.next=7;break}return Sr.next=5,tt();case 5:return mn=Sr.sent,Sr.abrupt("return",{fetchUserInfo:tt,currentUser:mn,settings:An.Z});case 7:return Sr.abrupt("return",{fetchUserInfo:tt,settings:An.Z});case 8:case"end":return Sr.stop()}},Nt)})),Tn.apply(this,arguments)}var Dr=function(tt){return tt.enableCash?{name:tt.name,access:"canAdmin",children:[{name:"\u5E7F\u544A\u6570\u636E",path:"/advListV2/"+tt.code,access:"canAdmin",component:"./AdvRecordListV2"},{name:"\u7528\u6237\u7BA1\u7406",path:"/user/"+tt.code,access:"canAdmin",component:"./UserManagement"},{name:"\u63D0\u73B0\u7BA1\u7406",path:"/money/"+tt.code,access:"canAdmin",component:"./MoneyManagement"}]}:{path:"/advList/"+tt.code,name:tt.name,access:"canAdmin",component:"./AdvRecordList"}},je=function(tt){var Kt,mn=tt.initialState,Vn=tt.setInitialState;return y()({menu:{params:{userId:mn==null||(Kt=mn.currentUser)===null||Kt===void 0?void 0:Kt.id},request:function(){var Sr=d()(f()().mark(function Un(){var In,yn,nr,Tr,qr;return f()().wrap(function(ia){for(;;)switch(ia.prev=ia.next){case 0:return ia.next=2,(0,C.ln)();case 2:return nr=ia.sent,Tr=[],qr=(mn==null||(In=mn.currentUser)===null||In===void 0?void 0:In.role)||100,(yn=nr.data)===null||yn===void 0||yn.forEach(function(Ka){Ka.hide===1&&qr<=2||Tr.push(Dr(Ka)),qr===4&&Tr.push({path:"/app/"+Ka.code,name:Ka.name,access:"canDeviceOwner",component:"./DeviceOwnerApp"})}),Tr.push({path:"/adminList",name:"\u4EBA\u5458\u7BA1\u7406",access:"canAdmin"}),Tr.push({path:"/bind",name:"\u7ED1\u5B9A\u8BBE\u5907",access:"canDeviceOwner"}),Tr.push({path:"/appList",name:"\u5E94\u7528\u5217\u8868",access:"canAdmin"}),Tr.push({path:"/super",name:"\u9B54\u6CD5\u4E4B\u5730",access:"superAdmin"}),ia.abrupt("return",Tr);case 11:case"end":return ia.stop()}},Un)}));function Br(){return Sr.apply(this,arguments)}return Br}()},menuDataRender:function(Br){return Br.map(function(Un){var In=Un.access;if(!In)return Un;var yn=Gn(mn);return yn[In]?Un:y()(y()({},Un),{},{hideInMenu:!0})})},actionsRender:function(){return[(0,Pe.jsx)(b.HN,{},"doc"),(0,Pe.jsx)(b.pD,{},"SelectLang")]},avatarProps:{title:(0,Pe.jsx)(b.gj,{}),render:function(Br,Un){return(0,Pe.jsx)(b.Kd,{children:Un})}},onPageChange:function(){var Br=qt.history.location;!(mn!=null&&mn.currentUser)&&Br.pathname!==dn&&qt.history.push(dn)},bgLayoutImgList:[{src:"https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/D2LWSqNny4sAAAAAAAAAAAAAFl94AQBr",left:85,bottom:100,height:"303px"},{src:"https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/C2TWRpJpiC0AAAAAAAAAAAAAFl94AQBr",bottom:-68,right:-45,height:"303px"},{src:"https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/F6vSTbj8KpYAAAAAAAAAAAAAFl94AQBr",bottom:0,left:0,width:"331px"}],links:jn?[(0,Pe.jsxs)(qt.Link,{to:"/umi/plugin/openapi",target:"_blank",children:[(0,Pe.jsx)(N,{onPointerOverCapture:void 0,onPointerMoveCapture:void 0}),(0,Pe.jsx)("span",{children:"OpenAPI \u6587\u6863"})]},"openapi")]:[],menuHeaderRender:void 0,childrenRender:function(Br){return(0,Pe.jsxs)(Pe.Fragment,{children:[Br,jn&&(0,Pe.jsx)(nn,{disableUrlParams:!0,enableDarkTheme:!0,settings:mn==null?void 0:mn.settings,onSettingChange:function(In){Vn(function(yn){return y()(y()({},yn),{},{settings:In})})}})]})}},mn==null?void 0:mn.settings)},Re=y()({},kn),Ne=e(70405),Ue={},nt=function(tt){return S.createElement(Ne.B6,{context:Ue},tt)},At=e(44886),sn=e(78382);function Sn(Nt){var tt=(0,At.t)("@@initialState"),Kt=tt.initialState,mn=S.useMemo(function(){return Gn(Kt)},[Kt]);return(0,Pe.jsx)(sn.J.Provider,{value:mn,children:Nt.children})}function vn(Nt){return(0,Pe.jsx)(Sn,{children:Nt})}function wn(){return(0,Pe.jsx)("div",{})}function zn(Nt){var tt=S.useRef(!1),Kt=(0,At.t)("@@initialState")||{},mn=Kt.loading,Vn=mn===void 0?!1:mn;return S.useEffect(function(){Vn||(tt.current=!0)},[Vn]),Vn&&!tt.current?(0,Pe.jsx)(wn,{}):Nt.children}function Fn(Nt){return(0,Pe.jsx)(zn,{children:Nt})}var gr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z"}}]},name:"smile",theme:"outlined"},ar=gr,ur=function(tt,Kt){return S.createElement(j.Z,(0,x.Z)((0,x.Z)({},tt),{},{ref:Kt,icon:ar}))},Tt=S.forwardRef(ur),tn=Tt,Ln={SmileOutlined:tn};function Zn(Nt){return Nt.replace(Nt[0],Nt[0].toUpperCase()).replace(/-(w)/g,function(tt,Kt){return Kt.toUpperCase()})}function Ge(Nt){var tt=Nt.routes;Object.keys(tt).forEach(function(Kt){var mn=tt[Kt].icon;if(mn&&typeof mn=="string"){var Vn=Zn(mn);(Ln[Vn]||Ln[Vn+"Outlined"])&&(tt[Kt].icon=S.createElement(Ln[Vn]||Ln[Vn+"Outlined"]))}})}var pe=e(5574),ce=e.n(pe),we=e(27484),ve=e.n(we),_e=e(54067),ot=e(25054),It=e(96953),Lt=e(83783),Ft=e(76831),Et=e(57548),xn=e(33852),gn=e(43901),zt=e(98944);function xt(){var Nt=getLocale();if(moment!=null&&moment.locale){var tt;moment.locale(((tt=localeInfo[Nt])===null||tt===void 0?void 0:tt.momentLocale)||"")}setIntl(Nt)}var wt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?S.useLayoutEffect:S.useEffect,Mt=function(tt){var Kt,mn=(0,zt.Kd)(),Vn=S.useState(mn),Sr=ce()(Vn,2),Br=Sr[0],Un=Sr[1],In=S.useState(function(){return(0,zt.lw)(Br,!0)}),yn=ce()(In,2),nr=yn[0],Tr=yn[1],qr=function(hr){if(ve()!==null&&ve()!==void 0&&ve().locale){var ea;ve().locale(((ea=zt.H8[hr])===null||ea===void 0?void 0:ea.momentLocale)||"en")}Un(hr),Tr((0,zt.lw)(hr))};wt(function(){return zt.B.on(zt.PZ,qr),function(){zt.B.off(zt.PZ,qr)}},[]);var ga={},ia=(0,zt.Mg)();return(0,Pe.jsx)(me.ZP,{direction:ia,locale:((Kt=zt.H8[Br])===null||Kt===void 0?void 0:Kt.antd)||ga,children:(0,Pe.jsx)(zt.eU,{value:nr,children:tt.children})})};function Cn(Nt){return S.createElement(Mt,null,Nt)}var Xt={initialState:void 0,loading:!0,error:void 0},Dn=function(){var Nt=(0,S.useState)(Xt),tt=ce()(Nt,2),Kt=tt[0],mn=tt[1],Vn=(0,S.useCallback)(d()(f()().mark(function Br(){var Un;return f()().wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:return mn(function(nr){return y()(y()({},nr),{},{loading:!0,error:void 0})}),yn.prev=1,yn.next=4,Nn();case 4:Un=yn.sent,mn(function(nr){return y()(y()({},nr),{},{initialState:Un,loading:!1})}),yn.next=11;break;case 8:yn.prev=8,yn.t0=yn.catch(1),mn(function(nr){return y()(y()({},nr),{},{error:yn.t0,loading:!1})});case 11:case"end":return yn.stop()}},Br,null,[[1,8]])})),[]),Sr=(0,S.useCallback)(function(){var Br=d()(f()().mark(function Un(In){return f()().wrap(function(nr){for(;;)switch(nr.prev=nr.next){case 0:mn(function(Tr){return typeof In=="function"?y()(y()({},Tr),{},{initialState:In(Tr.initialState),loading:!1}):y()(y()({},Tr),{},{initialState:In,loading:!1})});case 1:case"end":return nr.stop()}},Un)}));return function(Un){return Br.apply(this,arguments)}}(),[]);return(0,S.useEffect)(function(){Vn()},[]),y()(y()({},Kt),{},{refresh:Vn,setInitialState:Sr})},Rr={model_1:{namespace:"@@initialState",model:Dn}};function Cr(Nt){var tt=S.useMemo(function(){return Object.keys(Rr).reduce(function(Kt,mn){return Kt[Rr[mn].namespace]=Rr[mn].model,Kt},{})},[]);return(0,Pe.jsx)(At.z,y()(y()({models:tt},Nt),{},{children:Nt.children}))}function jr(Nt,tt){return(0,Pe.jsx)(Cr,y()(y()({},tt),{},{children:Nt}))}function wr(Nt){return Nt.default?typeof Nt.default=="function"?Nt.default():Nt.default:Nt}function ua(){return[{apply:wr(t),path:void 0},{apply:r,path:void 0},{apply:o,path:void 0},{apply:a,path:void 0},{apply:s,path:void 0},{apply:c,path:void 0},{apply:u,path:void 0}]}function Xr(){return["patchRoutes","patchClientRoutes","modifyContextOpts","modifyClientRenderOpts","rootContainer","innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","render","onRouteChange","antd","getInitialState","layout","locale","qiankun","request"]}var Vr=null;function dr(){return Vr=qt.PluginManager.create({plugins:ua(),validKeys:Xr()}),Vr}function Wr(){return Vr}},35312:function(v,g,e){"use strict";e.d(g,{ApplyPluginsType:function(){return Zt},FormattedMessage:function(){return r._H},Helmet:function(){return qn.ql},Link:function(){return Mr},Outlet:function(){return Ut.j3},PluginManager:function(){return nn},SelectLang:function(){return r.pD},history:function(){return qt.m8},matchRoutes:function(){return Ut.fp},request:function(){return $t},useAppData:function(){return $n.Ov},useIntl:function(){return r.YB},useLocation:function(){return Ut.TH},useModel:function(){return o.t},useNavigate:function(){return Ut.s0},useOutletContext:function(){return Ut.bx},useParams:function(){return Ut.UO}});var t=e(83228),r=e(66999),o=e(44886),a=e(15009),s=e.n(a),c=e(99289),u=e.n(c),l=e(13769),f=e(52677),p=e.n(f),y=e(97857),m=e.n(y),d=e(9669),b=e.n(d),C=e(67294),x=e(91296),S=e.n(x),w=e(93096),O=e.n(w);function j(){return typeof document!="undefined"&&typeof document.visibilityState!="undefined"?document.visibilityState!=="hidden":!0}function E(){return typeof navigator.onLine!="undefined"?navigator.onLine:!0}var $=new Map,N=function(Re,Ne,Ue){var nt=$.get(Re);nt!=null&&nt.timer&&clearTimeout(nt.timer);var At=void 0;Ne>-1&&(At=setTimeout(function(){$.delete(Re)},Ne)),$.set(Re,{data:Ue,timer:At,startTime:new Date().getTime()})},oe=function(Re){var Ne=$.get(Re);return{data:Ne==null?void 0:Ne.data,startTime:Ne==null?void 0:Ne.startTime}},Z=function(je,Re){var Ne=typeof Symbol=="function"&&je[Symbol.iterator];if(!Ne)return je;var Ue=Ne.call(je),nt,At=[],sn;try{for(;(Re===void 0||Re-- >0)&&!(nt=Ue.next()).done;)At.push(nt.value)}catch(Sn){sn={error:Sn}}finally{try{nt&&!nt.done&&(Ne=Ue.return)&&Ne.call(Ue)}finally{if(sn)throw sn.error}}return At},Y=function(){for(var je=[],Re=0;Re0)&&!(nt=Ue.next()).done;)At.push(nt.value)}catch(Sn){sn={error:Sn}}finally{try{nt&&!nt.done&&(Ne=Ue.return)&&Ne.call(Ue)}finally{if(sn)throw sn.error}}return At},B=function(){for(var je=[],Re=0;Re0)&&!(nt=Ue.next()).done;)At.push(nt.value)}catch(Sn){sn={error:Sn}}finally{try{nt&&!nt.done&&(Ne=Ue.return)&&Ne.call(Ue)}finally{if(sn)throw sn.error}}return At},$e=function(){for(var je=[],Re=0;Re0){var yn=ot&&((In=getCache(ot))===null||In===void 0?void 0:In.startTime)||0;Et===-1||new Date().getTime()-yn<=Et||Object.values(Wr).forEach(function(nr){nr.refresh()})}else Vn.current.apply(Vn,$e(Ge))},[]);var Br=useCallback(function(){Object.values(tt.current).forEach(function(In){In.unmount()}),Xt.current=Ke,Nt({}),tt.current={}},[Nt]);useUpdateEffect(function(){sn||Object.values(tt.current).forEach(function(In){In.refresh()})},$e(nt)),useEffect(function(){return function(){Object.values(tt.current).forEach(function(In){In.unmount()})}},[]);var Un=useCallback(function(In){return function(){console.warn("You should't call "+In+" when service not executed once.")}},[]);return Ce(Ce({loading:wt&&!sn||gr,data:zt,error:void 0,params:[],cancel:Un("cancel"),refresh:Un("refresh"),mutate:Un("mutate")},Wr[Xt.current]||{}),{run:mn,fetches:Wr,reset:Br})}var st=null,lt=function(){return lt=Object.assign||function(je){for(var Re,Ne=1,Ue=arguments.length;Ne0)&&!(nt=Ue.next()).done;)At.push(nt.value)}catch(Sn){sn={error:Sn}}finally{try{nt&&!nt.done&&(Ne=Ue.return)&&Ne.call(Ue)}finally{if(sn)throw sn.error}}return At},M=function(){for(var je=[],Re=0;Re0)&&!(nt=Ue.next()).done;)At.push(nt.value)}catch(Sn){sn={error:Sn}}finally{try{nt&&!nt.done&&(Ne=Ue.return)&&Ne.call(Ue)}finally{if(sn)throw sn.error}}return At},_=function(){for(var je=[],Re=0;ReCn&&(wt=Math.max(1,Cn)),_e({current:wt,pageSize:Mt})},[ot,_e]),Ft=useCallback(function(zt){Lt(zt,Ge)},[Lt,Ge]),Et=useCallback(function(zt){Lt(Ln,zt)},[Lt,Ln]),xn=useRef(Ft);xn.current=Ft,useUpdateEffect(function(){Re.manual||xn.current(1)},_(sn));var gn=useCallback(function(zt,xt,wt){_e({current:zt.current,pageSize:zt.pageSize||nt,filters:xt,sorter:wt})},[ve,ce,_e]);return k({loading:ar,data:zn,params:Fn,run:gr,pagination:{current:Ln,pageSize:Ge,total:ot,totalPage:It,onChange:Lt,changeCurrent:Ft,changePageSize:Et},tableProps:{dataSource:(zn==null?void 0:zn.list)||[],loading:ar,onChange:gn,pagination:{current:Ln,pageSize:Ge,total:ot}},sorter:ce,filters:ve},ur)}var se=null,fe=C.createContext({});fe.displayName="UseRequestConfigContext";var de=fe,Be=function(){return Be=Object.assign||function(je){for(var Re,Ne=1,Ue=arguments.length;Ne0)&&!(nt=Ue.next()).done;)At.push(nt.value)}catch(Sn){sn={error:Sn}}finally{try{nt&&!nt.done&&(Ne=Ue.return)&&Ne.call(Ue)}finally{if(sn)throw sn.error}}return At},Ee=function(){for(var je=[],Re=0;Re1&&arguments[1]!==void 0?arguments[1]:{};return useUmiRequest(je,_objectSpread({formatResult:function(Ue){return Ue==null?void 0:Ue.data},requestMethod:function(Ue){if(typeof Ue=="string")return $t(Ue);if(_typeof(Ue)==="object"){var nt=Ue.url,At=_objectWithoutProperties(Ue,Me);return $t(nt,At)}throw new Error("request options error")}},Re))}var Le,We,et=function(){return We||(We=(0,De.We)().applyPlugins({key:"request",type:Zt.modify,initialValue:{}}),We)},ct=function(){var Re,Ne;if(Le)return Le;var Ue=et();return Le=b().create(Ue),Ue==null||(Re=Ue.requestInterceptors)===null||Re===void 0||Re.forEach(function(nt){nt instanceof Array?Le.interceptors.request.use(function(){var At=u()(s()().mark(function sn(Sn){var vn,wn,zn,Fn;return s()().wrap(function(ar){for(;;)switch(ar.prev=ar.next){case 0:if(vn=Sn.url,nt[0].length!==2){ar.next=8;break}return ar.next=4,nt[0](vn,Sn);case 4:return wn=ar.sent,zn=wn.url,Fn=wn.options,ar.abrupt("return",m()(m()({},Fn),{},{url:zn}));case 8:return ar.abrupt("return",nt[0](Sn));case 9:case"end":return ar.stop()}},sn)}));return function(sn){return At.apply(this,arguments)}}(),nt[1]):Le.interceptors.request.use(function(){var At=u()(s()().mark(function sn(Sn){var vn,wn,zn,Fn;return s()().wrap(function(ar){for(;;)switch(ar.prev=ar.next){case 0:if(vn=Sn.url,nt.length!==2){ar.next=8;break}return ar.next=4,nt(vn,Sn);case 4:return wn=ar.sent,zn=wn.url,Fn=wn.options,ar.abrupt("return",m()(m()({},Fn),{},{url:zn}));case 8:return ar.abrupt("return",nt(Sn));case 9:case"end":return ar.stop()}},sn)}));return function(sn){return At.apply(this,arguments)}}())}),Ue==null||(Ne=Ue.responseInterceptors)===null||Ne===void 0||Ne.forEach(function(nt){nt instanceof Array?Le.interceptors.response.use(nt[0],nt[1]):Le.interceptors.response.use(nt)}),Le.interceptors.response.use(function(nt){var At,sn=nt.data;return(sn==null?void 0:sn.success)===!1&&Ue!==null&&Ue!==void 0&&(At=Ue.errorConfig)!==null&&At!==void 0&&At.errorThrower&&Ue.errorConfig.errorThrower(sn),nt}),Le},$t=function(Re){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{method:"GET"},Ue=ct(),nt=et(),At=Ne.getResponse,sn=At===void 0?!1:At,Sn=Ne.requestInterceptors,vn=Ne.responseInterceptors,wn=Sn==null?void 0:Sn.map(function(Fn){return Fn instanceof Array?Ue.interceptors.request.use(function(){var gr=u()(s()().mark(function ar(ur){var Tt,tn,Ln,Zn;return s()().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(Tt=ur.url,Fn[0].length!==2){pe.next=8;break}return pe.next=4,Fn[0](Tt,ur);case 4:return tn=pe.sent,Ln=tn.url,Zn=tn.options,pe.abrupt("return",m()(m()({},Zn),{},{url:Ln}));case 8:return pe.abrupt("return",Fn[0](ur));case 9:case"end":return pe.stop()}},ar)}));return function(ar){return gr.apply(this,arguments)}}(),Fn[1]):Ue.interceptors.request.use(function(){var gr=u()(s()().mark(function ar(ur){var Tt,tn,Ln,Zn;return s()().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(Tt=ur.url,Fn.length!==2){pe.next=8;break}return pe.next=4,Fn(Tt,ur);case 4:return tn=pe.sent,Ln=tn.url,Zn=tn.options,pe.abrupt("return",m()(m()({},Zn),{},{url:Ln}));case 8:return pe.abrupt("return",Fn(ur));case 9:case"end":return pe.stop()}},ar)}));return function(ar){return gr.apply(this,arguments)}}())}),zn=vn==null?void 0:vn.map(function(Fn){return Fn instanceof Array?Ue.interceptors.response.use(Fn[0],Fn[1]):Ue.interceptors.response.use(Fn)});return new Promise(function(Fn,gr){Ue.request(m()(m()({},Ne),{},{url:Re})).then(function(ar){wn==null||wn.forEach(function(ur){Ue.interceptors.request.eject(ur)}),zn==null||zn.forEach(function(ur){Ue.interceptors.response.eject(ur)}),Fn(sn?ar:ar.data)}).catch(function(ar){wn==null||wn.forEach(function(tn){Ue.interceptors.request.eject(tn)}),zn==null||zn.forEach(function(tn){Ue.interceptors.response.eject(tn)});try{var ur,Tt=nt==null||(ur=nt.errorConfig)===null||ur===void 0?void 0:ur.errorHandler;Tt&&Tt(ar,Ne,nt)}catch(tn){gr(tn)}gr(ar)})})},pt=e(58096),an=e(49647),Ut=e(96974),Ot=e(55648);function Gt(){return Gt=Object.assign||function(je){for(var Re=1;Re=0)&&(Ne[nt]=je[nt]);return Ne}const Ye=["onClick","reloadDocument","replace","state","target","to"],Ct=null;function Wt(je,Re){if(!je){typeof console!="undefined"&&console.warn(Re);try{throw new Error(Re)}catch(Ne){}}}function mt(je){let{basename:Re,children:Ne,window:Ue}=je,nt=useRef();nt.current==null&&(nt.current=createBrowserHistory({window:Ue}));let At=nt.current,[sn,Sn]=useState({action:At.action,location:At.location});return useLayoutEffect(()=>At.listen(Sn),[At]),createElement(Router,{basename:Re,children:Ne,location:sn.location,navigationType:sn.action,navigator:At})}function ln(je){let{basename:Re,children:Ne,window:Ue}=je,nt=useRef();nt.current==null&&(nt.current=createHashHistory({window:Ue}));let At=nt.current,[sn,Sn]=useState({action:At.action,location:At.location});return useLayoutEffect(()=>At.listen(Sn),[At]),createElement(Router,{basename:Re,children:Ne,location:sn.location,navigationType:sn.action,navigator:At})}function jt(je){let{basename:Re,children:Ne,history:Ue}=je;const[nt,At]=useState({action:Ue.action,location:Ue.location});return useLayoutEffect(()=>Ue.listen(At),[Ue]),createElement(Router,{basename:Re,children:Ne,location:nt.location,navigationType:nt.action,navigator:Ue})}function Yt(je){return!!(je.metaKey||je.altKey||je.ctrlKey||je.shiftKey)}const Jt=(0,C.forwardRef)(function(Re,Ne){let{onClick:Ue,reloadDocument:nt,replace:At=!1,state:sn,target:Sn,to:vn}=Re,wn=St(Re,Ye),zn=(0,Ut.oQ)(vn),Fn=un(vn,{replace:At,state:sn,target:Sn});function gr(ar){Ue&&Ue(ar),!ar.defaultPrevented&&!nt&&Fn(ar)}return(0,C.createElement)("a",Gt({},wn,{href:zn,onClick:gr,ref:Ne,target:Sn}))}),pn=null;function un(je,Re){let{target:Ne,replace:Ue,state:nt}=Re===void 0?{}:Re,At=(0,Ut.s0)(),sn=(0,Ut.TH)(),Sn=(0,Ut.WU)(je);return(0,C.useCallback)(vn=>{if(vn.button===0&&(!Ne||Ne==="_self")&&!Yt(vn)){vn.preventDefault();let wn=!!Ue||(0,Ot.Ep)(sn)===(0,Ot.Ep)(Sn);At(je,{replace:wn,state:nt})}},[sn,At,Sn,Ue,nt,Ne,je])}function rn(je){let Re=useRef(Pn(je)),Ne=useLocation(),Ue=useMemo(()=>{let sn=Pn(Ne.search);for(let Sn of Re.current.keys())sn.has(Sn)||Re.current.getAll(Sn).forEach(vn=>{sn.append(Sn,vn)});return sn},[Ne.search]),nt=useNavigate(),At=useCallback((sn,Sn)=>{nt("?"+Pn(sn),Sn)},[nt]);return[Ue,At]}function Pn(je){return je===void 0&&(je=""),new URLSearchParams(typeof je=="string"||Array.isArray(je)||je instanceof URLSearchParams?je:Object.keys(je).reduce((Re,Ne)=>{let Ue=je[Ne];return Re.concat(Array.isArray(Ue)?Ue.map(nt=>[Ne,nt]):[[Ne,Ue]])},[]))}var $n=e(34162),Jn=["prefetch"];function Mr(je){var Re,Ne=je.prefetch,Ue=(0,an.Z)(je,Jn),nt=(0,$n.Ov)(),At=typeof je.to=="string"?je.to:(Re=je.to)===null||Re===void 0?void 0:Re.pathname;return At?C.createElement(Jt,(0,pt.Z)({onMouseEnter:function(){var Sn;return Ne&&At&&((Sn=nt.preloadRoute)===null||Sn===void 0?void 0:Sn.call(nt,At))}},Ue),je.children):null}var qn=e(70405);function pr(je){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Re){return typeof Re}:function(Re){return Re&&typeof Symbol=="function"&&Re.constructor===Symbol&&Re!==Symbol.prototype?"symbol":typeof Re},pr(je)}function Pe(){"use strict";Pe=function(){return Re};var je,Re={},Ne=Object.prototype,Ue=Ne.hasOwnProperty,nt=Object.defineProperty||function(zt,xt,wt){zt[xt]=wt.value},At=typeof Symbol=="function"?Symbol:{},sn=At.iterator||"@@iterator",Sn=At.asyncIterator||"@@asyncIterator",vn=At.toStringTag||"@@toStringTag";function wn(zt,xt,wt){return Object.defineProperty(zt,xt,{value:wt,enumerable:!0,configurable:!0,writable:!0}),zt[xt]}try{wn({},"")}catch(zt){wn=function(wt,Mt,Cn){return wt[Mt]=Cn}}function zn(zt,xt,wt,Mt){var Cn=xt&&xt.prototype instanceof Ln?xt:Ln,Xt=Object.create(Cn.prototype),Dn=new xn(Mt||[]);return nt(Xt,"_invoke",{value:It(zt,wt,Dn)}),Xt}function Fn(zt,xt,wt){try{return{type:"normal",arg:zt.call(xt,wt)}}catch(Mt){return{type:"throw",arg:Mt}}}Re.wrap=zn;var gr="suspendedStart",ar="suspendedYield",ur="executing",Tt="completed",tn={};function Ln(){}function Zn(){}function Ge(){}var pe={};wn(pe,sn,function(){return this});var ce=Object.getPrototypeOf,we=ce&&ce(ce(gn([])));we&&we!==Ne&&Ue.call(we,sn)&&(pe=we);var ve=Ge.prototype=Ln.prototype=Object.create(pe);function _e(zt){["next","throw","return"].forEach(function(xt){wn(zt,xt,function(wt){return this._invoke(xt,wt)})})}function ot(zt,xt){function wt(Cn,Xt,Dn,Rr){var Cr=Fn(zt[Cn],zt,Xt);if(Cr.type!=="throw"){var jr=Cr.arg,wr=jr.value;return wr&&pr(wr)=="object"&&Ue.call(wr,"__await")?xt.resolve(wr.__await).then(function(ua){wt("next",ua,Dn,Rr)},function(ua){wt("throw",ua,Dn,Rr)}):xt.resolve(wr).then(function(ua){jr.value=ua,Dn(jr)},function(ua){return wt("throw",ua,Dn,Rr)})}Rr(Cr.arg)}var Mt;nt(this,"_invoke",{value:function(Xt,Dn){function Rr(){return new xt(function(Cr,jr){wt(Xt,Dn,Cr,jr)})}return Mt=Mt?Mt.then(Rr,Rr):Rr()}})}function It(zt,xt,wt){var Mt=gr;return function(Cn,Xt){if(Mt===ur)throw new Error("Generator is already running");if(Mt===Tt){if(Cn==="throw")throw Xt;return{value:je,done:!0}}for(wt.method=Cn,wt.arg=Xt;;){var Dn=wt.delegate;if(Dn){var Rr=Lt(Dn,wt);if(Rr){if(Rr===tn)continue;return Rr}}if(wt.method==="next")wt.sent=wt._sent=wt.arg;else if(wt.method==="throw"){if(Mt===gr)throw Mt=Tt,wt.arg;wt.dispatchException(wt.arg)}else wt.method==="return"&&wt.abrupt("return",wt.arg);Mt=ur;var Cr=Fn(zt,xt,wt);if(Cr.type==="normal"){if(Mt=wt.done?Tt:ar,Cr.arg===tn)continue;return{value:Cr.arg,done:wt.done}}Cr.type==="throw"&&(Mt=Tt,wt.method="throw",wt.arg=Cr.arg)}}}function Lt(zt,xt){var wt=xt.method,Mt=zt.iterator[wt];if(Mt===je)return xt.delegate=null,wt==="throw"&&zt.iterator.return&&(xt.method="return",xt.arg=je,Lt(zt,xt),xt.method==="throw")||wt!=="return"&&(xt.method="throw",xt.arg=new TypeError("The iterator does not provide a '"+wt+"' method")),tn;var Cn=Fn(Mt,zt.iterator,xt.arg);if(Cn.type==="throw")return xt.method="throw",xt.arg=Cn.arg,xt.delegate=null,tn;var Xt=Cn.arg;return Xt?Xt.done?(xt[zt.resultName]=Xt.value,xt.next=zt.nextLoc,xt.method!=="return"&&(xt.method="next",xt.arg=je),xt.delegate=null,tn):Xt:(xt.method="throw",xt.arg=new TypeError("iterator result is not an object"),xt.delegate=null,tn)}function Ft(zt){var xt={tryLoc:zt[0]};1 in zt&&(xt.catchLoc=zt[1]),2 in zt&&(xt.finallyLoc=zt[2],xt.afterLoc=zt[3]),this.tryEntries.push(xt)}function Et(zt){var xt=zt.completion||{};xt.type="normal",delete xt.arg,zt.completion=xt}function xn(zt){this.tryEntries=[{tryLoc:"root"}],zt.forEach(Ft,this),this.reset(!0)}function gn(zt){if(zt||zt===""){var xt=zt[sn];if(xt)return xt.call(zt);if(typeof zt.next=="function")return zt;if(!isNaN(zt.length)){var wt=-1,Mt=function Cn(){for(;++wt=0;--Cn){var Xt=this.tryEntries[Cn],Dn=Xt.completion;if(Xt.tryLoc==="root")return Mt("end");if(Xt.tryLoc<=this.prev){var Rr=Ue.call(Xt,"catchLoc"),Cr=Ue.call(Xt,"finallyLoc");if(Rr&&Cr){if(this.prev=0;--Mt){var Cn=this.tryEntries[Mt];if(Cn.tryLoc<=this.prev&&Ue.call(Cn,"finallyLoc")&&this.prev=0;--wt){var Mt=this.tryEntries[wt];if(Mt.finallyLoc===xt)return this.complete(Mt.completion,Mt.afterLoc),Et(Mt),tn}},catch:function(xt){for(var wt=this.tryEntries.length-1;wt>=0;--wt){var Mt=this.tryEntries[wt];if(Mt.tryLoc===xt){var Cn=Mt.completion;if(Cn.type==="throw"){var Xt=Cn.arg;Et(Mt)}return Xt}}throw new Error("illegal catch attempt")},delegateYield:function(xt,wt,Mt){return this.delegate={iterator:gn(xt),resultName:wt,nextLoc:Mt},this.method==="next"&&(this.arg=je),tn}},Re}function ke(je,Re){if(pr(je)!="object"||!je)return je;var Ne=je[Symbol.toPrimitive];if(Ne!==void 0){var Ue=Ne.call(je,Re||"default");if(pr(Ue)!="object")return Ue;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Re==="string"?String:Number)(je)}function en(je){var Re=ke(je,"string");return pr(Re)=="symbol"?Re:String(Re)}function gt(je,Re,Ne){return Re=en(Re),Re in je?Object.defineProperty(je,Re,{value:Ne,enumerable:!0,configurable:!0,writable:!0}):je[Re]=Ne,je}function on(je,Re){var Ne=Object.keys(je);if(Object.getOwnPropertySymbols){var Ue=Object.getOwnPropertySymbols(je);Re&&(Ue=Ue.filter(function(nt){return Object.getOwnPropertyDescriptor(je,nt).enumerable})),Ne.push.apply(Ne,Ue)}return Ne}function On(je){for(var Re=1;Reje.length)&&(Re=je.length);for(var Ne=0,Ue=new Array(Re);Ne=je.length?{done:!0}:{done:!1,value:je[Ue++]}},e:function(wn){throw wn},f:nt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. + margin-bottom ${Kt} ${yn}`},[`&${tt}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${tt}-with-description`]:{alignItems:"flex-start",padding:ga,[`${tt}-icon`]:{marginInlineEnd:Vn,fontSize:nr,lineHeight:0},[`${tt}-message`]:{display:"block",marginBottom:mn,color:qr,fontSize:Br},[`${tt}-description`]:{display:"block",color:Tr}},[`${tt}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Me=Nt=>{const{componentCls:tt,colorSuccess:Kt,colorSuccessBorder:mn,colorSuccessBg:Vn,colorWarning:Sr,colorWarningBorder:Br,colorWarningBg:Un,colorError:In,colorErrorBorder:yn,colorErrorBg:nr,colorInfo:Tr,colorInfoBorder:qr,colorInfoBg:ga}=Nt;return{[tt]:{"&-success":Ze(Vn,mn,Kt,Nt,tt),"&-info":Ze(ga,qr,Tr,Nt,tt),"&-warning":Ze(Un,Br,Sr,Nt,tt),"&-error":Object.assign(Object.assign({},Ze(nr,yn,In,Nt,tt)),{[`${tt}-description > pre`]:{margin:0,padding:0}})}}},Te=Nt=>{const{componentCls:tt,iconCls:Kt,motionDurationMid:mn,marginXS:Vn,fontSizeIcon:Sr,colorIcon:Br,colorIconHover:Un}=Nt;return{[tt]:{["&-action"]:{marginInlineStart:Vn},[`${tt}-close-icon`]:{marginInlineStart:Vn,padding:0,overflow:"hidden",fontSize:Sr,lineHeight:(0,A.bf)(Sr),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${Kt}-close`]:{color:Br,transition:`color ${mn}`,"&:hover":{color:Un}}},"&-close-text":{color:Br,transition:`color ${mn}`,"&:hover":{color:Un}}}}},Le=Nt=>({withDescriptionIconSize:Nt.fontSizeHeading3,defaultPadding:`${Nt.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${Nt.paddingMD}px ${Nt.paddingContentHorizontalLG}px`});var We=(0,Ve.I$)("Alert",Nt=>[De(Nt),Me(Nt),Te(Nt)],Le),et=function(Nt,tt){var Kt={};for(var mn in Nt)Object.prototype.hasOwnProperty.call(Nt,mn)&&tt.indexOf(mn)<0&&(Kt[mn]=Nt[mn]);if(Nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vn=0,mn=Object.getOwnPropertySymbols(Nt);Vn{const{icon:tt,prefixCls:Kt,type:mn}=Nt,Vn=ct[mn]||null;return tt?(0,Oe.wm)(tt,S.createElement("span",{className:`${Kt}-icon`},tt),()=>({className:fe()(`${Kt}-icon`,{[tt.props.className]:tt.props.className})})):S.createElement(Vn,{className:`${Kt}-icon`})},pt=Nt=>{const{isClosable:tt,prefixCls:Kt,closeIcon:mn,handleClose:Vn,ariaProps:Sr}=Nt,Br=mn===!0||mn===void 0?S.createElement(le.Z,null):mn;return tt?S.createElement("button",Object.assign({type:"button",onClick:Vn,className:`${Kt}-close-icon`,tabIndex:0},Sr),Br):null};var Ut=S.forwardRef((Nt,tt)=>{const{description:Kt,prefixCls:mn,message:Vn,banner:Sr,className:Br,rootClassName:Un,style:In,onMouseEnter:yn,onMouseLeave:nr,onClick:Tr,afterClose:qr,showIcon:ga,closable:ia,closeText:Ka,closeIcon:hr,action:ea,id:Fa}=Nt,za=et(Nt,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[Ea,Ra]=S.useState(!1),no=S.useRef(null);S.useImperativeHandle(tt,()=>({nativeElement:no.current}));const{getPrefixCls:ho,direction:Ja,alert:$a}=S.useContext(Ee.E_),Xa=ho("alert",mn),[Io,ti,Wo]=We(Xa),$o=fr=>{var sr;Ra(!0),(sr=Nt.onClose)===null||sr===void 0||sr.call(Nt,fr)},Xe=S.useMemo(()=>Nt.type!==void 0?Nt.type:Sr?"warning":"info",[Nt.type,Sr]),vt=S.useMemo(()=>typeof ia=="object"&&ia.closeIcon||Ka?!0:typeof ia=="boolean"?ia:hr!==!1&&hr!==null&&hr!==void 0?!0:!!($a!=null&&$a.closable),[Ka,hr,ia,$a==null?void 0:$a.closable]),ft=Sr&&ga===void 0?!0:ga,Rt=fe()(Xa,`${Xa}-${Xe}`,{[`${Xa}-with-description`]:!!Kt,[`${Xa}-no-icon`]:!ft,[`${Xa}-banner`]:!!Sr,[`${Xa}-rtl`]:Ja==="rtl"},$a==null?void 0:$a.className,Br,Un,Wo,ti),kt=(0,it.Z)(za,{aria:!0,data:!0}),Xn=S.useMemo(()=>{var fr,sr;return typeof ia=="object"&&ia.closeIcon?ia.closeIcon:Ka||(hr!==void 0?hr:typeof($a==null?void 0:$a.closable)=="object"&&(!((fr=$a==null?void 0:$a.closable)===null||fr===void 0)&&fr.closeIcon)?(sr=$a==null?void 0:$a.closable)===null||sr===void 0?void 0:sr.closeIcon:$a==null?void 0:$a.closeIcon)},[hr,ia,Ka,$a==null?void 0:$a.closeIcon]),vr=S.useMemo(()=>{const fr=ia!=null?ia:$a==null?void 0:$a.closable;if(typeof fr=="object"){const{closeIcon:sr}=fr;return et(fr,["closeIcon"])}return{}},[ia,$a==null?void 0:$a.closable]);return Io(S.createElement(de.ZP,{visible:!Ea,motionName:`${Xa}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:fr=>({maxHeight:fr.offsetHeight}),onLeaveEnd:qr},(fr,sr)=>{let{className:Zr,style:Pr}=fr;return S.createElement("div",Object.assign({id:Fa,ref:(0,Be.sQ)(no,sr),"data-show":!Ea,className:fe()(Rt,Zr),style:Object.assign(Object.assign(Object.assign({},$a==null?void 0:$a.style),In),Pr),onMouseEnter:yn,onMouseLeave:nr,onClick:Tr,role:"alert"},kt),ft?S.createElement($t,{description:Kt,icon:Nt.icon,prefixCls:Xa,type:Xe}):null,S.createElement("div",{className:`${Xa}-content`},Vn?S.createElement("div",{className:`${Xa}-message`},Vn):null,Kt?S.createElement("div",{className:`${Xa}-description`},Kt):null),ea?S.createElement("div",{className:`${Xa}-action`},ea):null,S.createElement(pt,{isClosable:vt,prefixCls:Xa,closeIcon:Xn,handleClose:$o,ariaProps:vr}))}))}),Ot=e(15671),Gt=e(43144),St=e(53640),Ye=e(60136),Wt=function(Nt){function tt(){var Kt;return(0,Ot.Z)(this,tt),Kt=(0,St.Z)(this,tt,arguments),Kt.state={error:void 0,info:{componentStack:""}},Kt}return(0,Ye.Z)(tt,Nt),(0,Gt.Z)(tt,[{key:"componentDidCatch",value:function(mn,Vn){this.setState({error:mn,info:Vn})}},{key:"render",value:function(){const{message:mn,description:Vn,id:Sr,children:Br}=this.props,{error:Un,info:In}=this.state,yn=In&&In.componentStack?In.componentStack:null,nr=typeof mn=="undefined"?(Un||"").toString():mn,Tr=typeof Vn=="undefined"?yn:Vn;return Un?S.createElement(Ut,{id:Sr,type:"error",message:nr,description:S.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},Tr)}):Br}}])}(S.Component);const mt=Ut;mt.ErrorBoundary=Wt;var ln=mt,jt=e(14726),Yt=e(2453),Jt=e(97435),pn=e(21770),un=e(14192),rn=e(52676),Pn=e(62812),$n=e(32857),Jn=function(tt,Kt){return S.createElement(B.Z,(0,ee.Z)({},tt,{ref:Kt,icon:$n.Z}))},Mr=S.forwardRef(Jn),qn=Mr,pr=e(83062),Pe=e(85893),ke=function(tt){var Kt=tt.value,mn=tt.configType,Vn=tt.onChange,Sr=tt.list,Br=tt.prefixCls,Un=tt.hashId,In="".concat(Br,"-block-checkbox"),yn=(0,S.useMemo)(function(){var nr=(Sr||[]).map(function(Tr){return(0,Pe.jsx)(pr.Z,{title:Tr.title,children:(0,Pe.jsxs)("div",{className:fe()(Un,"".concat(In,"-item"),"".concat(In,"-item-").concat(Tr.key),"".concat(In,"-").concat(mn,"-item")),onClick:function(){return Vn(Tr.key)},children:[(0,Pe.jsx)(qn,{className:"".concat(In,"-selectIcon ").concat(Un).trim(),style:{display:Kt===Tr.key?"block":"none"}}),Tr!=null&&Tr.icon?(0,Pe.jsx)("div",{className:"".concat(In,"-icon ").concat(Un).trim(),children:Tr.icon}):null]})},Tr.key)});return nr},[Kt,Sr==null?void 0:Sr.length,Vn]);return(0,Pe.jsx)("div",{className:fe()(In,Un),children:yn})},en=e(34041),gt=function(tt){var Kt=S.cloneElement(tt.action,{disabled:tt.disabled});return(0,Pe.jsx)(pr.Z,{title:tt.disabled?tt.disabledReason:"",placement:"left",children:(0,Pe.jsx)(D.Z.Item,{actions:[Kt],children:(0,Pe.jsx)("span",{style:{opacity:tt.disabled?.5:1},children:tt.title})})})},on=function(tt){var Kt=tt.settings,mn=tt.prefixCls,Vn=tt.changeSetting,Sr=tt.hashId,Br=bt(),Un=Kt||un.h,In=Un.contentWidth,yn=Un.splitMenus,nr=Un.fixedHeader,Tr=Un.layout,qr=Un.fixSiderbar;return(0,Pe.jsx)(D.Z,{className:"".concat(mn,"-list ").concat(Sr).trim(),split:!1,dataSource:[{title:Br({id:"app.setting.content-width",defaultMessage:"Content Width"}),action:(0,Pe.jsxs)(en.Z,{value:In||"Fixed",size:"small",className:"content-width ".concat(Sr).trim(),onSelect:function(ia){Vn("contentWidth",ia)},style:{width:80},children:[Tr==="side"?null:(0,Pe.jsx)(en.Z.Option,{value:"Fixed",children:Br({id:"app.setting.content-width.fixed",defaultMessage:"Fixed"})}),(0,Pe.jsx)(en.Z.Option,{value:"Fluid",children:Br({id:"app.setting.content-width.fluid",defaultMessage:"Fluid"})})]})},{title:Br({id:"app.setting.fixedheader",defaultMessage:"Fixed Header"}),action:(0,Pe.jsx)(K.Z,{size:"small",className:"fixed-header",checked:!!nr,onChange:function(ia){Vn("fixedHeader",ia)}})},{title:Br({id:"app.setting.fixedsidebar",defaultMessage:"Fixed Sidebar"}),disabled:Tr==="top",disabledReason:Br({id:"app.setting.fixedsidebar.hint",defaultMessage:"Works on Side Menu Layout"}),action:(0,Pe.jsx)(K.Z,{size:"small",className:"fix-siderbar",checked:!!qr,onChange:function(ia){return Vn("fixSiderbar",ia)}})},{title:Br({id:"app.setting.splitMenus"}),disabled:Tr!=="mix",action:(0,Pe.jsx)(K.Z,{size:"small",checked:!!yn,className:"split-menus",onChange:function(ia){Vn("splitMenus",ia)}})}],renderItem:gt})},On=function(tt){var Kt=tt.settings,mn=tt.prefixCls,Vn=tt.changeSetting,Sr=tt.hashId,Br=bt(),Un=["header","footer","menu","menuHeader"];return(0,Pe.jsx)(D.Z,{className:"".concat(mn,"-list ").concat(Sr).trim(),split:!1,renderItem:gt,dataSource:Un.map(function(In){return{title:Br({id:"app.setting.regionalsettings.".concat(In)}),action:(0,Pe.jsx)(K.Z,{size:"small",className:"regional-".concat(In," ").concat(Sr).trim(),checked:Kt["".concat(In,"Render")]||Kt["".concat(In,"Render")]===void 0,onChange:function(nr){return Vn("".concat(In,"Render"),nr===!0?void 0:!1)}})}})})},Bn=e(91),rr=["color","check"],or=S.forwardRef(function(Nt,tt){var Kt=Nt.color,mn=Nt.check,Vn=(0,Bn.Z)(Nt,rr);return(0,Pe.jsx)("div",(0,x.Z)((0,x.Z)({},Vn),{},{style:{backgroundColor:Kt},ref:tt,children:mn?(0,Pe.jsx)(qn,{}):""}))}),mr=function(tt){var Kt=tt.value,mn=tt.colorList,Vn=tt.onChange,Sr=tt.prefixCls,Br=tt.formatMessage,Un=tt.hashId;if(!mn||(mn==null?void 0:mn.length)<1)return null;var In="".concat(Sr,"-theme-color");return(0,Pe.jsx)("div",{className:"".concat(In," ").concat(Un).trim(),children:mn==null?void 0:mn.map(function(yn){var nr=yn.key,Tr=yn.color,qr=yn.title;return nr?(0,Pe.jsx)(pr.Z,{title:qr!=null?qr:Br({id:"app.setting.themecolor.".concat(nr)}),children:(0,Pe.jsx)(or,{className:"".concat(In,"-block ").concat(Un).trim(),color:Tr,check:Kt===Tr,onClick:function(){return Vn&&Vn(Tr)}})},Tr):null})})};function ir(){return(0,Pe.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"1em",height:"1em",viewBox:"0 0 104 104",children:[(0,Pe.jsxs)("defs",{children:[(0,Pe.jsx)("rect",{id:"path-1",width:"90",height:"72",x:"0",y:"0",rx:"10"}),(0,Pe.jsxs)("filter",{id:"filter-2",width:"152.2%",height:"165.3%",x:"-26.1%",y:"-27.1%",filterUnits:"objectBoundingBox",children:[(0,Pe.jsx)("feMorphology",{in:"SourceAlpha",radius:"0.25",result:"shadowSpreadOuter1"}),(0,Pe.jsx)("feOffset",{dy:"1",in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),(0,Pe.jsx)("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"1"}),(0,Pe.jsx)("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),(0,Pe.jsx)("feMorphology",{in:"SourceAlpha",radius:"1",result:"shadowSpreadOuter2"}),(0,Pe.jsx)("feOffset",{dy:"2",in:"shadowSpreadOuter2",result:"shadowOffsetOuter2"}),(0,Pe.jsx)("feGaussianBlur",{in:"shadowOffsetOuter2",result:"shadowBlurOuter2",stdDeviation:"4"}),(0,Pe.jsx)("feColorMatrix",{in:"shadowBlurOuter2",result:"shadowMatrixOuter2",values:"0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0"}),(0,Pe.jsx)("feMorphology",{in:"SourceAlpha",radius:"2",result:"shadowSpreadOuter3"}),(0,Pe.jsx)("feOffset",{dy:"4",in:"shadowSpreadOuter3",result:"shadowOffsetOuter3"}),(0,Pe.jsx)("feGaussianBlur",{in:"shadowOffsetOuter3",result:"shadowBlurOuter3",stdDeviation:"8"}),(0,Pe.jsx)("feColorMatrix",{in:"shadowBlurOuter3",result:"shadowMatrixOuter3",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),(0,Pe.jsxs)("feMerge",{children:[(0,Pe.jsx)("feMergeNode",{in:"shadowMatrixOuter1"}),(0,Pe.jsx)("feMergeNode",{in:"shadowMatrixOuter2"}),(0,Pe.jsx)("feMergeNode",{in:"shadowMatrixOuter3"})]})]})]}),(0,Pe.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[(0,Pe.jsxs)("g",{children:[(0,Pe.jsx)("use",{fill:"#000",filter:"url(#filter-2)",xlinkHref:"#path-1"}),(0,Pe.jsx)("use",{fill:"#F0F2F5",xlinkHref:"#path-1"})]}),(0,Pe.jsx)("path",{fill:"#FFF",d:"M25 15h65v47c0 5.523-4.477 10-10 10H25V15z"}),(0,Pe.jsx)("path",{stroke:"#E6EAF0",strokeLinecap:"square",d:"M0.5 15.5L90.5 15.5"}),(0,Pe.jsx)("rect",{width:"14",height:"3",x:"4",y:"26",fill:"#D7DDE6",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"9",height:"3",x:"4",y:"32",fill:"#D7DDE6",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"9",height:"3",x:"4",y:"42",fill:"#E6EAF0",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"9",height:"3",x:"4",y:"21",fill:"#E6EAF0",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"9",height:"3",x:"4",y:"53",fill:"#D7DDE6",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"14",height:"3",x:"4",y:"47",fill:"#D7DDE6",rx:"1.5"}),(0,Pe.jsx)("path",{stroke:"#E6EAF0",strokeLinecap:"square",d:"M25.5 15.5L25.5 72.5"})]})]})}function yr(){return(0,Pe.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:"1em",height:"1em",viewBox:"0 0 104 104",children:[(0,Pe.jsxs)("defs",{children:[(0,Pe.jsx)("rect",{id:"path-1",width:"90",height:"72",x:"0",y:"0",rx:"10"}),(0,Pe.jsxs)("filter",{id:"filter-2",width:"152.2%",height:"165.3%",x:"-26.1%",y:"-27.1%",filterUnits:"objectBoundingBox",children:[(0,Pe.jsx)("feMorphology",{in:"SourceAlpha",radius:"0.25",result:"shadowSpreadOuter1"}),(0,Pe.jsx)("feOffset",{dy:"1",in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),(0,Pe.jsx)("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"1"}),(0,Pe.jsx)("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0"}),(0,Pe.jsx)("feMorphology",{in:"SourceAlpha",radius:"1",result:"shadowSpreadOuter2"}),(0,Pe.jsx)("feOffset",{dy:"2",in:"shadowSpreadOuter2",result:"shadowOffsetOuter2"}),(0,Pe.jsx)("feGaussianBlur",{in:"shadowOffsetOuter2",result:"shadowBlurOuter2",stdDeviation:"4"}),(0,Pe.jsx)("feColorMatrix",{in:"shadowBlurOuter2",result:"shadowMatrixOuter2",values:"0 0 0 0 0.098466735 0 0 0 0 0.0599695403 0 0 0 0 0.0599695403 0 0 0 0.07 0"}),(0,Pe.jsx)("feMorphology",{in:"SourceAlpha",radius:"2",result:"shadowSpreadOuter3"}),(0,Pe.jsx)("feOffset",{dy:"4",in:"shadowSpreadOuter3",result:"shadowOffsetOuter3"}),(0,Pe.jsx)("feGaussianBlur",{in:"shadowOffsetOuter3",result:"shadowBlurOuter3",stdDeviation:"8"}),(0,Pe.jsx)("feColorMatrix",{in:"shadowBlurOuter3",result:"shadowMatrixOuter3",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),(0,Pe.jsxs)("feMerge",{children:[(0,Pe.jsx)("feMergeNode",{in:"shadowMatrixOuter1"}),(0,Pe.jsx)("feMergeNode",{in:"shadowMatrixOuter2"}),(0,Pe.jsx)("feMergeNode",{in:"shadowMatrixOuter3"})]})]})]}),(0,Pe.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[(0,Pe.jsxs)("g",{children:[(0,Pe.jsx)("use",{fill:"#000",filter:"url(#filter-2)",xlinkHref:"#path-1"}),(0,Pe.jsx)("use",{fill:"#F0F2F5",xlinkHref:"#path-1"})]}),(0,Pe.jsx)("path",{fill:"#FFF",d:"M26 0h55c5.523 0 10 4.477 10 10v8H26V0z"}),(0,Pe.jsx)("path",{fill:"#001529",d:"M10 0h19v72H10C4.477 72 0 67.523 0 62V10C0 4.477 4.477 0 10 0z"}),(0,Pe.jsx)("rect",{width:"14",height:"3",x:"5",y:"18",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"14",height:"3",x:"5",y:"42",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"9",height:"3",x:"9",y:"24",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"9",height:"3",x:"9",y:"48",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"9",height:"3",x:"9",y:"36",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"14",height:"3",x:"9",y:"30",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"}),(0,Pe.jsx)("rect",{width:"14",height:"3",x:"9",y:"54",fill:"#D7DDE6",opacity:"0.2",rx:"1.5"})]})]})}var er=e(4942),cn=e(98082),tr=function(tt){return(0,er.Z)((0,er.Z)({},"".concat(tt.componentCls,"-handle"),{position:"fixed",insetBlockStart:"240px",insetInlineEnd:"0px",zIndex:0,display:"flex",alignItems:"center",justifyContent:"center",width:"48px",height:"48px",fontSize:"16px",textAlign:"center",backgroundColor:tt.colorPrimary,borderEndStartRadius:tt.borderRadiusLG,borderStartStartRadius:tt.borderRadiusLG,"-webkit-backdropilter":"saturate(180%) blur(20px)",backdropFilter:"saturate(180%) blur(20px)",cursor:"pointer",pointerEvents:"auto"}),tt.componentCls,{"&-content":{position:"relative",minHeight:"100%",color:tt.colorText},"&-body-title":{marginBlock:tt.marginXS,fontSize:"14px",lineHeight:"22px",color:tt.colorTextHeading},"&-block-checkbox":{display:"flex",minHeight:42,gap:tt.marginSM,"& &-item":{position:"relative",width:"44px",height:"36px",overflow:"hidden",borderRadius:"4px",boxShadow:tt.boxShadow,cursor:"pointer",fontSize:56,lineHeight:"56px","&::before":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"33%",height:"100%",content:"''"},"&::after":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"25%",content:"''"},"&-realDark":{backgroundColor:"rgba(0, 21, 41, 0.85)","&::before":{backgroundColor:"rgba(0, 0, 0, 0.65)"},"&::after":{backgroundColor:"rgba(0, 0, 0, 0.85)"}},"&-light":{backgroundColor:"#fff","&::before":{backgroundColor:"#fff"},"&::after":{backgroundColor:"#fff"}},"&-dark,&-side":{backgroundColor:tt.colorBgElevated,"&::before":{zIndex:"1",backgroundColor:"#001529"},"&::after":{backgroundColor:tt.colorBgContainer}},"&-top":{backgroundColor:tt.colorBgElevated,"&::before":{backgroundColor:"transparent"},"&::after":{backgroundColor:"#001529"}},"&-mix":{backgroundColor:tt.colorBgElevated,"&::before":{backgroundColor:tt.colorBgContainer},"&::after":{backgroundColor:"#001529"}}},"& &-selectIcon":{position:"absolute",insetInlineEnd:"6px",bottom:"4px",color:tt.colorPrimary,fontWeight:"bold",fontSize:"14px",pointerEvents:"none",".action":{color:tt.colorPrimary}},"& &-icon":{fontSize:56,lineHeight:"56px"}},"&-theme-color":{marginBlockStart:"16px",overflow:"hidden","& &-block":{float:"left",width:"20px",height:"20px",marginBlockStart:8,marginInlineEnd:8,color:"#fff",fontWeight:"bold",textAlign:"center",borderRadius:"2px",cursor:"pointer"}},"&-list":(0,er.Z)({},"li".concat(tt.antCls,"-list-item"),{paddingInline:0,paddingBlock:8})})};function hn(Nt){return(0,cn.Xj)("ProLayoutSettingDrawer",function(tt){var Kt=(0,x.Z)((0,x.Z)({},tt),{},{componentCls:".".concat(Nt)});return[tr(Kt)]})}var _t=function(tt){var Kt=tt.children,mn=tt.hashId,Vn=tt.prefixCls,Sr=tt.title;return(0,Pe.jsxs)("div",{style:{marginBlockEnd:12},children:[(0,Pe.jsx)("h3",{className:"".concat(Vn,"-body-title ").concat(mn).trim(),children:Sr}),Kt]})},rt=function(tt){var Kt={};return Object.keys(tt).forEach(function(mn){tt[mn]!==un.h[mn]&&mn!=="collapse"?Kt[mn]=tt[mn]:Kt[mn]=void 0,mn.includes("Render")&&(Kt[mn]=tt[mn]===!1?!1:void 0)}),Kt.menu=void 0,Kt},bt=function(){var tt=function(mn){var Vn=mn.id,Sr=(0,rn.e)();return Sr[Vn]};return tt},Bt=function(tt,Kt,mn){if((0,$e.j)()){var Vn={};Object.keys(tt).forEach(function(Br){if(un.h[Br]||un.h[Br]===void 0){if(Br==="colorPrimary"){Vn[Br]=(0,Pn.tV)(tt[Br]);return}Vn[Br]=tt[Br]}});var Sr=(0,Ke.T)({},Kt,Vn);delete Sr.menu,delete Sr.title,delete Sr.iconfontUrl,mn==null||mn(Sr)}},ht=function(tt,Kt){return(0,$e.j)()?(0,x.Z)((0,x.Z)((0,x.Z)({},un.h),Kt||{}),tt):un.h},Zt=function(tt){return JSON.stringify((0,Jt.Z)((0,x.Z)((0,x.Z)({},tt),{},{colorPrimary:tt.colorPrimary}),["colorWeak"]),null,2)},nn=function(tt){var Kt=tt.defaultSettings,mn=Kt===void 0?void 0:Kt,Vn=tt.settings,Sr=Vn===void 0?void 0:Vn,Br=tt.hideHintAlert,Un=tt.hideCopyButton,In=tt.colorList,yn=In===void 0?[{key:"techBlue",color:"#1677FF"},{key:"daybreak",color:"#1890ff"},{key:"dust",color:"#F5222D"},{key:"volcano",color:"#FA541C"},{key:"sunset",color:"#FAAD14"},{key:"cyan",color:"#13C2C2"},{key:"green",color:"#52C41A"},{key:"geekblue",color:"#2F54EB"},{key:"purple",color:"#722ED1"}]:In,nr=tt.getContainer,Tr=tt.onSettingChange,qr=tt.enableDarkTheme,ga=tt.prefixCls,ia=ga===void 0?"ant-pro":ga,Ka=tt.pathname,hr=Ka===void 0?window.location.pathname:Ka,ea=tt.disableUrlParams,Fa=ea===void 0?!0:ea,za=tt.themeOnly,Ea=(0,S.useRef)(!0),Ra=(0,pn.Z)(!1,{value:tt.collapse,onChange:tt.onCollapseChange}),no=(0,Y.Z)(Ra,2),ho=no[0],Ja=no[1],$a=(0,S.useState)((0,rn.G)()),Xa=(0,Y.Z)($a,2),Io=Xa[0],ti=Xa[1],Wo=(0,st.l)({},{disabled:Fa}),$o=(0,Y.Z)(Wo,2),Xe=$o[0],vt=$o[1],ft=(0,pn.Z)(function(){return ht(Xe,Sr||mn)},{value:Sr,onChange:Tr}),Rt=(0,Y.Z)(ft,2),kt=Rt[0],Xn=Rt[1],vr=kt||{},fr=vr.navTheme,sr=vr.colorPrimary,Zr=vr.siderMenuType,Pr=vr.layout,br=vr.colorWeak;(0,S.useEffect)(function(){var _r=function(){Io!==(0,rn.G)()&&ti((0,rn.G)())};return(0,$e.j)()?(Bt(ht(Xe,Sr),kt,Xn),window.document.addEventListener("languagechange",_r,{passive:!0}),function(){return window.document.removeEventListener("languagechange",_r)}):function(){return null}},[]),(0,S.useEffect)(function(){(0,Je.n)(lt.Z,"5.0.0")<0&&me.ZP.config({theme:{primaryColor:kt.colorPrimary}})},[kt.colorPrimary,kt.navTheme]);var Hn=function(Gr,zr){var aa={};if(aa[Gr]=zr,Gr==="layout"&&(aa.contentWidth=zr==="top"?"Fixed":"Fluid"),Gr==="layout"&&zr!=="mix"&&(aa.splitMenus=!1),Gr==="layout"&&zr==="mix"&&(aa.navTheme="light"),Gr==="colorWeak"&&zr===!0){var ma=document.querySelector("body");ma&&(ma.dataset.prosettingdrawer=ma.style.filter,ma.style.filter="invert(80%)")}if(Gr==="colorWeak"&&zr===!1){var Da=document.querySelector("body");Da&&(Da.style.filter=Da.dataset.prosettingdrawer||"none",delete Da.dataset.prosettingdrawer)}delete aa.menu,delete aa.title,delete aa.iconfontUrl,delete aa.logo,delete aa.pwa,Xn((0,x.Z)((0,x.Z)({},kt),aa))},Fr=bt();(0,S.useEffect)(function(){if((0,$e.j)()&&!Fa){if(Ea.current){Ea.current=!1;return}var _r=new URLSearchParams(window.location.search),Gr=Object.fromEntries(_r.entries()),zr=rt((0,x.Z)((0,x.Z)({},Gr),kt));delete zr.logo,delete zr.menu,delete zr.title,delete zr.iconfontUrl,delete zr.pwa,vt(zr)}},[vt,kt,Xe,hr,Fa]);var ta="".concat(ia,"-setting-drawer"),Hr=hn(ta),Jr=Hr.wrapSSR,Qr=Hr.hashId,ra=(0,qe.X)(ho);return Jr((0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)("div",{className:"".concat(ta,"-handle ").concat(Qr).trim(),onClick:function(){return Ja(!ho)},style:{width:48,height:48},children:ho?(0,Pe.jsx)(q,{style:{color:"#fff",fontSize:20}}):(0,Pe.jsx)(I,{style:{color:"#fff",fontSize:20}})}),(0,Pe.jsx)(U.Z,(0,x.Z)((0,x.Z)({},ra),{},{width:300,onClose:function(){return Ja(!1)},closable:!1,placement:"right",getContainer:nr,style:{zIndex:999},children:(0,Pe.jsxs)("div",{className:"".concat(ta,"-drawer-content ").concat(Qr).trim(),children:[(0,Pe.jsx)(_t,{title:Fr({id:"app.setting.pagestyle",defaultMessage:"Page style setting"}),hashId:Qr,prefixCls:ta,children:(0,Pe.jsx)(ke,{hashId:Qr,prefixCls:ta,list:[{key:"light",title:Fr({id:"app.setting.pagestyle.light",defaultMessage:"\u4EAE\u8272\u83DC\u5355\u98CE\u683C"})},{key:"realDark",title:Fr({id:"app.setting.pagestyle.realdark",defaultMessage:"\u6697\u8272\u83DC\u5355\u98CE\u683C"})}].filter(function(_r){return!(_r.key==="dark"&&kt.layout==="mix"||_r.key==="realDark"&&!qr)}),value:fr,configType:"theme",onChange:function(Gr){return Hn("navTheme",Gr)}},"navTheme")}),yn!==!1&&(0,Pe.jsx)(_t,{hashId:Qr,title:Fr({id:"app.setting.themecolor",defaultMessage:"Theme color"}),prefixCls:ta,children:(0,Pe.jsx)(mr,{hashId:Qr,prefixCls:ta,colorList:yn,value:(0,Pn.tV)(sr),formatMessage:Fr,onChange:function(Gr){return Hn("colorPrimary",Gr)}})}),!za&&(0,Pe.jsxs)(Pe.Fragment,{children:[(0,Pe.jsx)(M.Z,{}),(0,Pe.jsx)(_t,{hashId:Qr,prefixCls:ta,title:Fr({id:"app.setting.navigationmode"}),children:(0,Pe.jsx)(ke,{prefixCls:ta,value:Pr,hashId:Qr,configType:"layout",list:[{key:"side",title:Fr({id:"app.setting.sidemenu"})},{key:"top",title:Fr({id:"app.setting.topmenu"})},{key:"mix",title:Fr({id:"app.setting.mixmenu"})}],onChange:function(Gr){return Hn("layout",Gr)}},"layout")}),kt.layout=="side"||kt.layout=="mix"?(0,Pe.jsx)(_t,{hashId:Qr,prefixCls:ta,title:Fr({id:"app.setting.sidermenutype"}),children:(0,Pe.jsx)(ke,{prefixCls:ta,value:Zr,hashId:Qr,configType:"siderMenuType",list:[{key:"sub",icon:(0,Pe.jsx)(yr,{}),title:Fr({id:"app.setting.sidermenutype-sub"})},{key:"group",icon:(0,Pe.jsx)(ir,{}),title:Fr({id:"app.setting.sidermenutype-group"})}],onChange:function(Gr){return Hn("siderMenuType",Gr)}},"siderMenuType")}):null,(0,Pe.jsx)(on,{prefixCls:ta,hashId:Qr,settings:kt,changeSetting:Hn}),(0,Pe.jsx)(M.Z,{}),(0,Pe.jsx)(_t,{hashId:Qr,prefixCls:ta,title:Fr({id:"app.setting.regionalsettings"}),children:(0,Pe.jsx)(On,{hashId:Qr,prefixCls:ta,settings:kt,changeSetting:Hn})}),(0,Pe.jsx)(M.Z,{}),(0,Pe.jsx)(_t,{hashId:Qr,prefixCls:ta,title:Fr({id:"app.setting.othersettings"}),children:(0,Pe.jsx)(D.Z,{className:"".concat(ta,"-list ").concat(Qr).trim(),split:!1,size:"small",renderItem:gt,dataSource:[{title:Fr({id:"app.setting.weakmode"}),action:(0,Pe.jsx)(K.Z,{size:"small",className:"color-weak",checked:!!br,onChange:function(Gr){Hn("colorWeak",Gr)}})}]})}),Br&&Un?null:(0,Pe.jsx)(M.Z,{}),Br?null:(0,Pe.jsx)(ln,{type:"warning",message:Fr({id:"app.setting.production.hint"}),icon:(0,Pe.jsx)(G,{}),showIcon:!0,style:{marginBlockEnd:16}}),Un?null:(0,Pe.jsx)(jt.ZP,{block:!0,icon:(0,Pe.jsx)(xe,{}),style:{marginBlockEnd:24},onClick:(0,Z.Z)((0,oe.Z)().mark(function _r(){return(0,oe.Z)().wrap(function(zr){for(;;)switch(zr.prev=zr.next){case 0:return zr.prev=0,zr.next=3,navigator.clipboard.writeText(Zt(kt));case 3:Yt.ZP.success(Fr({id:"app.setting.copyinfo"})),zr.next=8;break;case 6:zr.prev=6,zr.t0=zr.catch(0);case 8:case"end":return zr.stop()}},_r,null,[[0,6]])})),children:Fr({id:"app.setting.copy"})})]})]})}))]}))},qt=e(35312),An=e(67610);function Gn(Nt){var tt=Nt!=null?Nt:{},Kt=tt.currentUser,mn={canAdmin:Kt&&Kt.role&&Kt.role<=3,superAdmin:Kt&&Kt.role&&Kt.role===1,canDeviceOwner:Kt&&Kt.role&&Kt.role>3};return mn}var kn={errorConfig:{errorThrower:function(tt){var Kt=tt,mn=Kt.data,Vn=Kt.code,Sr=Kt.message;if(Vn!==0){var Br=new Error(Sr);throw Br.name="BizError",Br.info={code:Vn,message:Sr,data:mn},Br}},errorHandler:function(tt,Kt){if(Kt!=null&&Kt.skipErrorHandler)throw tt;if(tt.name==="BizError"){var mn=tt.info;mn&&Yt.ZP.error(mn.message)}else tt.response?Yt.ZP.error("Response status:".concat(tt.response.status)):tt.request?Yt.ZP.error("None response! Please retry."):Yt.ZP.error("Request error, please retry.")}},requestInterceptors:[function(Nt){var tt,Kt=Nt==null||(tt=Nt.url)===null||tt===void 0?void 0:tt.concat("?token = 123");return y()(y()({},Nt),{},{url:Kt})}],responseInterceptors:[function(Nt){var tt=Nt,Kt=tt.data;return Kt.code!==0?Kt.success=!1:Kt.success=!0,Nt}]},jn=!1,dn="/user/login";function Nn(){return Tn.apply(this,arguments)}function Tn(){return Tn=d()(f()().mark(function Nt(){var tt,Kt,mn;return f()().wrap(function(Sr){for(;;)switch(Sr.prev=Sr.next){case 0:if(tt=function(){var Br=d()(f()().mark(function Un(){var In;return f()().wrap(function(nr){for(;;)switch(nr.prev=nr.next){case 0:return nr.prev=0,nr.next=3,(0,C.Vk)({skipErrorHandler:!0});case 3:return In=nr.sent,nr.abrupt("return",In.data);case 7:nr.prev=7,nr.t0=nr.catch(0),qt.history.push(dn);case 10:return nr.abrupt("return",void 0);case 11:case"end":return nr.stop()}},Un,null,[[0,7]])}));return function(){return Br.apply(this,arguments)}}(),Kt=qt.history.location,Kt.pathname===dn){Sr.next=7;break}return Sr.next=5,tt();case 5:return mn=Sr.sent,Sr.abrupt("return",{fetchUserInfo:tt,currentUser:mn,settings:An.Z});case 7:return Sr.abrupt("return",{fetchUserInfo:tt,settings:An.Z});case 8:case"end":return Sr.stop()}},Nt)})),Tn.apply(this,arguments)}var Dr=function(tt){return tt.enableCash?{name:tt.name,access:"canAdmin",children:[{name:"\u5E7F\u544A\u6570\u636E",path:"/advListV2/"+tt.code,access:"canAdmin",component:"./AdvRecordListV2"},{name:"\u7528\u6237\u7BA1\u7406",path:"/user/"+tt.code,access:"canAdmin",component:"./UserManagement"},{name:"\u63D0\u73B0\u7BA1\u7406",path:"/money/"+tt.code,access:"canAdmin",component:"./MoneyManagement"}]}:{path:"/advList/"+tt.code,name:tt.name,access:"canAdmin",component:"./AdvRecordList"}},je=function(tt){var Kt,mn=tt.initialState,Vn=tt.setInitialState;return y()({menu:{params:{userId:mn==null||(Kt=mn.currentUser)===null||Kt===void 0?void 0:Kt.id},request:function(){var Sr=d()(f()().mark(function Un(){var In,yn,nr,Tr,qr;return f()().wrap(function(ia){for(;;)switch(ia.prev=ia.next){case 0:return ia.next=2,(0,C.ln)();case 2:return nr=ia.sent,Tr=[],qr=(mn==null||(In=mn.currentUser)===null||In===void 0?void 0:In.role)||100,(yn=nr.data)===null||yn===void 0||yn.forEach(function(Ka){Ka.hide===1&&qr<=2||Tr.push(Dr(Ka)),qr===4&&Tr.push({path:"/app/"+Ka.code,name:Ka.name,access:"canDeviceOwner",component:"./DeviceOwnerApp"})}),Tr.push({path:"/adminList",name:"\u4EBA\u5458\u7BA1\u7406",access:"canAdmin"}),Tr.push({path:"/bind",name:"\u7ED1\u5B9A\u8BBE\u5907",access:"canDeviceOwner"}),Tr.push({path:"/appList",name:"\u5E94\u7528\u5217\u8868"}),Tr.push({path:"/super",name:"\u9B54\u6CD5\u4E4B\u5730",access:"superAdmin"}),ia.abrupt("return",Tr);case 11:case"end":return ia.stop()}},Un)}));function Br(){return Sr.apply(this,arguments)}return Br}()},menuDataRender:function(Br){return Br.map(function(Un){var In=Un.access;if(!In)return Un;var yn=Gn(mn);return yn[In]?Un:y()(y()({},Un),{},{hideInMenu:!0})})},actionsRender:function(){return[(0,Pe.jsx)(b.HN,{},"doc"),(0,Pe.jsx)(b.pD,{},"SelectLang")]},avatarProps:{title:(0,Pe.jsx)(b.gj,{}),render:function(Br,Un){return(0,Pe.jsx)(b.Kd,{children:Un})}},onPageChange:function(){var Br=qt.history.location;!(mn!=null&&mn.currentUser)&&Br.pathname!==dn&&qt.history.push(dn)},bgLayoutImgList:[{src:"https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/D2LWSqNny4sAAAAAAAAAAAAAFl94AQBr",left:85,bottom:100,height:"303px"},{src:"https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/C2TWRpJpiC0AAAAAAAAAAAAAFl94AQBr",bottom:-68,right:-45,height:"303px"},{src:"https://mdn.alipayobjects.com/yuyan_qk0oxh/afts/img/F6vSTbj8KpYAAAAAAAAAAAAAFl94AQBr",bottom:0,left:0,width:"331px"}],links:jn?[(0,Pe.jsxs)(qt.Link,{to:"/umi/plugin/openapi",target:"_blank",children:[(0,Pe.jsx)(N,{onPointerOverCapture:void 0,onPointerMoveCapture:void 0}),(0,Pe.jsx)("span",{children:"OpenAPI \u6587\u6863"})]},"openapi")]:[],menuHeaderRender:void 0,childrenRender:function(Br){return(0,Pe.jsxs)(Pe.Fragment,{children:[Br,jn&&(0,Pe.jsx)(nn,{disableUrlParams:!0,enableDarkTheme:!0,settings:mn==null?void 0:mn.settings,onSettingChange:function(In){Vn(function(yn){return y()(y()({},yn),{},{settings:In})})}})]})}},mn==null?void 0:mn.settings)},Re=y()({},kn),Ne=e(70405),Ue={},nt=function(tt){return S.createElement(Ne.B6,{context:Ue},tt)},At=e(44886),sn=e(78382);function Sn(Nt){var tt=(0,At.t)("@@initialState"),Kt=tt.initialState,mn=S.useMemo(function(){return Gn(Kt)},[Kt]);return(0,Pe.jsx)(sn.J.Provider,{value:mn,children:Nt.children})}function vn(Nt){return(0,Pe.jsx)(Sn,{children:Nt})}function wn(){return(0,Pe.jsx)("div",{})}function zn(Nt){var tt=S.useRef(!1),Kt=(0,At.t)("@@initialState")||{},mn=Kt.loading,Vn=mn===void 0?!1:mn;return S.useEffect(function(){Vn||(tt.current=!0)},[Vn]),Vn&&!tt.current?(0,Pe.jsx)(wn,{}):Nt.children}function Fn(Nt){return(0,Pe.jsx)(zn,{children:Nt})}var gr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z"}}]},name:"smile",theme:"outlined"},ar=gr,ur=function(tt,Kt){return S.createElement(j.Z,(0,x.Z)((0,x.Z)({},tt),{},{ref:Kt,icon:ar}))},Tt=S.forwardRef(ur),tn=Tt,Ln={SmileOutlined:tn};function Zn(Nt){return Nt.replace(Nt[0],Nt[0].toUpperCase()).replace(/-(w)/g,function(tt,Kt){return Kt.toUpperCase()})}function Ge(Nt){var tt=Nt.routes;Object.keys(tt).forEach(function(Kt){var mn=tt[Kt].icon;if(mn&&typeof mn=="string"){var Vn=Zn(mn);(Ln[Vn]||Ln[Vn+"Outlined"])&&(tt[Kt].icon=S.createElement(Ln[Vn]||Ln[Vn+"Outlined"]))}})}var pe=e(5574),ce=e.n(pe),we=e(27484),ve=e.n(we),_e=e(54067),ot=e(25054),It=e(96953),Lt=e(83783),Ft=e(76831),Et=e(57548),xn=e(33852),gn=e(43901),zt=e(98944);function xt(){var Nt=getLocale();if(moment!=null&&moment.locale){var tt;moment.locale(((tt=localeInfo[Nt])===null||tt===void 0?void 0:tt.momentLocale)||"")}setIntl(Nt)}var wt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?S.useLayoutEffect:S.useEffect,Mt=function(tt){var Kt,mn=(0,zt.Kd)(),Vn=S.useState(mn),Sr=ce()(Vn,2),Br=Sr[0],Un=Sr[1],In=S.useState(function(){return(0,zt.lw)(Br,!0)}),yn=ce()(In,2),nr=yn[0],Tr=yn[1],qr=function(hr){if(ve()!==null&&ve()!==void 0&&ve().locale){var ea;ve().locale(((ea=zt.H8[hr])===null||ea===void 0?void 0:ea.momentLocale)||"en")}Un(hr),Tr((0,zt.lw)(hr))};wt(function(){return zt.B.on(zt.PZ,qr),function(){zt.B.off(zt.PZ,qr)}},[]);var ga={},ia=(0,zt.Mg)();return(0,Pe.jsx)(me.ZP,{direction:ia,locale:((Kt=zt.H8[Br])===null||Kt===void 0?void 0:Kt.antd)||ga,children:(0,Pe.jsx)(zt.eU,{value:nr,children:tt.children})})};function Cn(Nt){return S.createElement(Mt,null,Nt)}var Xt={initialState:void 0,loading:!0,error:void 0},Dn=function(){var Nt=(0,S.useState)(Xt),tt=ce()(Nt,2),Kt=tt[0],mn=tt[1],Vn=(0,S.useCallback)(d()(f()().mark(function Br(){var Un;return f()().wrap(function(yn){for(;;)switch(yn.prev=yn.next){case 0:return mn(function(nr){return y()(y()({},nr),{},{loading:!0,error:void 0})}),yn.prev=1,yn.next=4,Nn();case 4:Un=yn.sent,mn(function(nr){return y()(y()({},nr),{},{initialState:Un,loading:!1})}),yn.next=11;break;case 8:yn.prev=8,yn.t0=yn.catch(1),mn(function(nr){return y()(y()({},nr),{},{error:yn.t0,loading:!1})});case 11:case"end":return yn.stop()}},Br,null,[[1,8]])})),[]),Sr=(0,S.useCallback)(function(){var Br=d()(f()().mark(function Un(In){return f()().wrap(function(nr){for(;;)switch(nr.prev=nr.next){case 0:mn(function(Tr){return typeof In=="function"?y()(y()({},Tr),{},{initialState:In(Tr.initialState),loading:!1}):y()(y()({},Tr),{},{initialState:In,loading:!1})});case 1:case"end":return nr.stop()}},Un)}));return function(Un){return Br.apply(this,arguments)}}(),[]);return(0,S.useEffect)(function(){Vn()},[]),y()(y()({},Kt),{},{refresh:Vn,setInitialState:Sr})},Rr={model_1:{namespace:"@@initialState",model:Dn}};function Cr(Nt){var tt=S.useMemo(function(){return Object.keys(Rr).reduce(function(Kt,mn){return Kt[Rr[mn].namespace]=Rr[mn].model,Kt},{})},[]);return(0,Pe.jsx)(At.z,y()(y()({models:tt},Nt),{},{children:Nt.children}))}function jr(Nt,tt){return(0,Pe.jsx)(Cr,y()(y()({},tt),{},{children:Nt}))}function wr(Nt){return Nt.default?typeof Nt.default=="function"?Nt.default():Nt.default:Nt}function ua(){return[{apply:wr(t),path:void 0},{apply:r,path:void 0},{apply:o,path:void 0},{apply:a,path:void 0},{apply:s,path:void 0},{apply:c,path:void 0},{apply:u,path:void 0}]}function Xr(){return["patchRoutes","patchClientRoutes","modifyContextOpts","modifyClientRenderOpts","rootContainer","innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","render","onRouteChange","antd","getInitialState","layout","locale","qiankun","request"]}var Vr=null;function dr(){return Vr=qt.PluginManager.create({plugins:ua(),validKeys:Xr()}),Vr}function Wr(){return Vr}},35312:function(v,g,e){"use strict";e.d(g,{ApplyPluginsType:function(){return Zt},FormattedMessage:function(){return r._H},Helmet:function(){return qn.ql},Link:function(){return Mr},Outlet:function(){return Ut.j3},PluginManager:function(){return nn},SelectLang:function(){return r.pD},history:function(){return qt.m8},matchRoutes:function(){return Ut.fp},request:function(){return $t},useAppData:function(){return $n.Ov},useIntl:function(){return r.YB},useLocation:function(){return Ut.TH},useModel:function(){return o.t},useNavigate:function(){return Ut.s0},useOutletContext:function(){return Ut.bx},useParams:function(){return Ut.UO}});var t=e(83228),r=e(66999),o=e(44886),a=e(15009),s=e.n(a),c=e(99289),u=e.n(c),l=e(13769),f=e(52677),p=e.n(f),y=e(97857),m=e.n(y),d=e(9669),b=e.n(d),C=e(67294),x=e(91296),S=e.n(x),w=e(93096),O=e.n(w);function j(){return typeof document!="undefined"&&typeof document.visibilityState!="undefined"?document.visibilityState!=="hidden":!0}function E(){return typeof navigator.onLine!="undefined"?navigator.onLine:!0}var $=new Map,N=function(Re,Ne,Ue){var nt=$.get(Re);nt!=null&&nt.timer&&clearTimeout(nt.timer);var At=void 0;Ne>-1&&(At=setTimeout(function(){$.delete(Re)},Ne)),$.set(Re,{data:Ue,timer:At,startTime:new Date().getTime()})},oe=function(Re){var Ne=$.get(Re);return{data:Ne==null?void 0:Ne.data,startTime:Ne==null?void 0:Ne.startTime}},Z=function(je,Re){var Ne=typeof Symbol=="function"&&je[Symbol.iterator];if(!Ne)return je;var Ue=Ne.call(je),nt,At=[],sn;try{for(;(Re===void 0||Re-- >0)&&!(nt=Ue.next()).done;)At.push(nt.value)}catch(Sn){sn={error:Sn}}finally{try{nt&&!nt.done&&(Ne=Ue.return)&&Ne.call(Ue)}finally{if(sn)throw sn.error}}return At},Y=function(){for(var je=[],Re=0;Re0)&&!(nt=Ue.next()).done;)At.push(nt.value)}catch(Sn){sn={error:Sn}}finally{try{nt&&!nt.done&&(Ne=Ue.return)&&Ne.call(Ue)}finally{if(sn)throw sn.error}}return At},B=function(){for(var je=[],Re=0;Re0)&&!(nt=Ue.next()).done;)At.push(nt.value)}catch(Sn){sn={error:Sn}}finally{try{nt&&!nt.done&&(Ne=Ue.return)&&Ne.call(Ue)}finally{if(sn)throw sn.error}}return At},$e=function(){for(var je=[],Re=0;Re0){var yn=ot&&((In=getCache(ot))===null||In===void 0?void 0:In.startTime)||0;Et===-1||new Date().getTime()-yn<=Et||Object.values(Wr).forEach(function(nr){nr.refresh()})}else Vn.current.apply(Vn,$e(Ge))},[]);var Br=useCallback(function(){Object.values(tt.current).forEach(function(In){In.unmount()}),Xt.current=Ke,Nt({}),tt.current={}},[Nt]);useUpdateEffect(function(){sn||Object.values(tt.current).forEach(function(In){In.refresh()})},$e(nt)),useEffect(function(){return function(){Object.values(tt.current).forEach(function(In){In.unmount()})}},[]);var Un=useCallback(function(In){return function(){console.warn("You should't call "+In+" when service not executed once.")}},[]);return Ce(Ce({loading:wt&&!sn||gr,data:zt,error:void 0,params:[],cancel:Un("cancel"),refresh:Un("refresh"),mutate:Un("mutate")},Wr[Xt.current]||{}),{run:mn,fetches:Wr,reset:Br})}var st=null,lt=function(){return lt=Object.assign||function(je){for(var Re,Ne=1,Ue=arguments.length;Ne0)&&!(nt=Ue.next()).done;)At.push(nt.value)}catch(Sn){sn={error:Sn}}finally{try{nt&&!nt.done&&(Ne=Ue.return)&&Ne.call(Ue)}finally{if(sn)throw sn.error}}return At},M=function(){for(var je=[],Re=0;Re0)&&!(nt=Ue.next()).done;)At.push(nt.value)}catch(Sn){sn={error:Sn}}finally{try{nt&&!nt.done&&(Ne=Ue.return)&&Ne.call(Ue)}finally{if(sn)throw sn.error}}return At},_=function(){for(var je=[],Re=0;ReCn&&(wt=Math.max(1,Cn)),_e({current:wt,pageSize:Mt})},[ot,_e]),Ft=useCallback(function(zt){Lt(zt,Ge)},[Lt,Ge]),Et=useCallback(function(zt){Lt(Ln,zt)},[Lt,Ln]),xn=useRef(Ft);xn.current=Ft,useUpdateEffect(function(){Re.manual||xn.current(1)},_(sn));var gn=useCallback(function(zt,xt,wt){_e({current:zt.current,pageSize:zt.pageSize||nt,filters:xt,sorter:wt})},[ve,ce,_e]);return k({loading:ar,data:zn,params:Fn,run:gr,pagination:{current:Ln,pageSize:Ge,total:ot,totalPage:It,onChange:Lt,changeCurrent:Ft,changePageSize:Et},tableProps:{dataSource:(zn==null?void 0:zn.list)||[],loading:ar,onChange:gn,pagination:{current:Ln,pageSize:Ge,total:ot}},sorter:ce,filters:ve},ur)}var se=null,fe=C.createContext({});fe.displayName="UseRequestConfigContext";var de=fe,Be=function(){return Be=Object.assign||function(je){for(var Re,Ne=1,Ue=arguments.length;Ne0)&&!(nt=Ue.next()).done;)At.push(nt.value)}catch(Sn){sn={error:Sn}}finally{try{nt&&!nt.done&&(Ne=Ue.return)&&Ne.call(Ue)}finally{if(sn)throw sn.error}}return At},Ee=function(){for(var je=[],Re=0;Re1&&arguments[1]!==void 0?arguments[1]:{};return useUmiRequest(je,_objectSpread({formatResult:function(Ue){return Ue==null?void 0:Ue.data},requestMethod:function(Ue){if(typeof Ue=="string")return $t(Ue);if(_typeof(Ue)==="object"){var nt=Ue.url,At=_objectWithoutProperties(Ue,Me);return $t(nt,At)}throw new Error("request options error")}},Re))}var Le,We,et=function(){return We||(We=(0,De.We)().applyPlugins({key:"request",type:Zt.modify,initialValue:{}}),We)},ct=function(){var Re,Ne;if(Le)return Le;var Ue=et();return Le=b().create(Ue),Ue==null||(Re=Ue.requestInterceptors)===null||Re===void 0||Re.forEach(function(nt){nt instanceof Array?Le.interceptors.request.use(function(){var At=u()(s()().mark(function sn(Sn){var vn,wn,zn,Fn;return s()().wrap(function(ar){for(;;)switch(ar.prev=ar.next){case 0:if(vn=Sn.url,nt[0].length!==2){ar.next=8;break}return ar.next=4,nt[0](vn,Sn);case 4:return wn=ar.sent,zn=wn.url,Fn=wn.options,ar.abrupt("return",m()(m()({},Fn),{},{url:zn}));case 8:return ar.abrupt("return",nt[0](Sn));case 9:case"end":return ar.stop()}},sn)}));return function(sn){return At.apply(this,arguments)}}(),nt[1]):Le.interceptors.request.use(function(){var At=u()(s()().mark(function sn(Sn){var vn,wn,zn,Fn;return s()().wrap(function(ar){for(;;)switch(ar.prev=ar.next){case 0:if(vn=Sn.url,nt.length!==2){ar.next=8;break}return ar.next=4,nt(vn,Sn);case 4:return wn=ar.sent,zn=wn.url,Fn=wn.options,ar.abrupt("return",m()(m()({},Fn),{},{url:zn}));case 8:return ar.abrupt("return",nt(Sn));case 9:case"end":return ar.stop()}},sn)}));return function(sn){return At.apply(this,arguments)}}())}),Ue==null||(Ne=Ue.responseInterceptors)===null||Ne===void 0||Ne.forEach(function(nt){nt instanceof Array?Le.interceptors.response.use(nt[0],nt[1]):Le.interceptors.response.use(nt)}),Le.interceptors.response.use(function(nt){var At,sn=nt.data;return(sn==null?void 0:sn.success)===!1&&Ue!==null&&Ue!==void 0&&(At=Ue.errorConfig)!==null&&At!==void 0&&At.errorThrower&&Ue.errorConfig.errorThrower(sn),nt}),Le},$t=function(Re){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{method:"GET"},Ue=ct(),nt=et(),At=Ne.getResponse,sn=At===void 0?!1:At,Sn=Ne.requestInterceptors,vn=Ne.responseInterceptors,wn=Sn==null?void 0:Sn.map(function(Fn){return Fn instanceof Array?Ue.interceptors.request.use(function(){var gr=u()(s()().mark(function ar(ur){var Tt,tn,Ln,Zn;return s()().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(Tt=ur.url,Fn[0].length!==2){pe.next=8;break}return pe.next=4,Fn[0](Tt,ur);case 4:return tn=pe.sent,Ln=tn.url,Zn=tn.options,pe.abrupt("return",m()(m()({},Zn),{},{url:Ln}));case 8:return pe.abrupt("return",Fn[0](ur));case 9:case"end":return pe.stop()}},ar)}));return function(ar){return gr.apply(this,arguments)}}(),Fn[1]):Ue.interceptors.request.use(function(){var gr=u()(s()().mark(function ar(ur){var Tt,tn,Ln,Zn;return s()().wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:if(Tt=ur.url,Fn.length!==2){pe.next=8;break}return pe.next=4,Fn(Tt,ur);case 4:return tn=pe.sent,Ln=tn.url,Zn=tn.options,pe.abrupt("return",m()(m()({},Zn),{},{url:Ln}));case 8:return pe.abrupt("return",Fn(ur));case 9:case"end":return pe.stop()}},ar)}));return function(ar){return gr.apply(this,arguments)}}())}),zn=vn==null?void 0:vn.map(function(Fn){return Fn instanceof Array?Ue.interceptors.response.use(Fn[0],Fn[1]):Ue.interceptors.response.use(Fn)});return new Promise(function(Fn,gr){Ue.request(m()(m()({},Ne),{},{url:Re})).then(function(ar){wn==null||wn.forEach(function(ur){Ue.interceptors.request.eject(ur)}),zn==null||zn.forEach(function(ur){Ue.interceptors.response.eject(ur)}),Fn(sn?ar:ar.data)}).catch(function(ar){wn==null||wn.forEach(function(tn){Ue.interceptors.request.eject(tn)}),zn==null||zn.forEach(function(tn){Ue.interceptors.response.eject(tn)});try{var ur,Tt=nt==null||(ur=nt.errorConfig)===null||ur===void 0?void 0:ur.errorHandler;Tt&&Tt(ar,Ne,nt)}catch(tn){gr(tn)}gr(ar)})})},pt=e(58096),an=e(49647),Ut=e(96974),Ot=e(55648);function Gt(){return Gt=Object.assign||function(je){for(var Re=1;Re=0)&&(Ne[nt]=je[nt]);return Ne}const Ye=["onClick","reloadDocument","replace","state","target","to"],Ct=null;function Wt(je,Re){if(!je){typeof console!="undefined"&&console.warn(Re);try{throw new Error(Re)}catch(Ne){}}}function mt(je){let{basename:Re,children:Ne,window:Ue}=je,nt=useRef();nt.current==null&&(nt.current=createBrowserHistory({window:Ue}));let At=nt.current,[sn,Sn]=useState({action:At.action,location:At.location});return useLayoutEffect(()=>At.listen(Sn),[At]),createElement(Router,{basename:Re,children:Ne,location:sn.location,navigationType:sn.action,navigator:At})}function ln(je){let{basename:Re,children:Ne,window:Ue}=je,nt=useRef();nt.current==null&&(nt.current=createHashHistory({window:Ue}));let At=nt.current,[sn,Sn]=useState({action:At.action,location:At.location});return useLayoutEffect(()=>At.listen(Sn),[At]),createElement(Router,{basename:Re,children:Ne,location:sn.location,navigationType:sn.action,navigator:At})}function jt(je){let{basename:Re,children:Ne,history:Ue}=je;const[nt,At]=useState({action:Ue.action,location:Ue.location});return useLayoutEffect(()=>Ue.listen(At),[Ue]),createElement(Router,{basename:Re,children:Ne,location:nt.location,navigationType:nt.action,navigator:Ue})}function Yt(je){return!!(je.metaKey||je.altKey||je.ctrlKey||je.shiftKey)}const Jt=(0,C.forwardRef)(function(Re,Ne){let{onClick:Ue,reloadDocument:nt,replace:At=!1,state:sn,target:Sn,to:vn}=Re,wn=St(Re,Ye),zn=(0,Ut.oQ)(vn),Fn=un(vn,{replace:At,state:sn,target:Sn});function gr(ar){Ue&&Ue(ar),!ar.defaultPrevented&&!nt&&Fn(ar)}return(0,C.createElement)("a",Gt({},wn,{href:zn,onClick:gr,ref:Ne,target:Sn}))}),pn=null;function un(je,Re){let{target:Ne,replace:Ue,state:nt}=Re===void 0?{}:Re,At=(0,Ut.s0)(),sn=(0,Ut.TH)(),Sn=(0,Ut.WU)(je);return(0,C.useCallback)(vn=>{if(vn.button===0&&(!Ne||Ne==="_self")&&!Yt(vn)){vn.preventDefault();let wn=!!Ue||(0,Ot.Ep)(sn)===(0,Ot.Ep)(Sn);At(je,{replace:wn,state:nt})}},[sn,At,Sn,Ue,nt,Ne,je])}function rn(je){let Re=useRef(Pn(je)),Ne=useLocation(),Ue=useMemo(()=>{let sn=Pn(Ne.search);for(let Sn of Re.current.keys())sn.has(Sn)||Re.current.getAll(Sn).forEach(vn=>{sn.append(Sn,vn)});return sn},[Ne.search]),nt=useNavigate(),At=useCallback((sn,Sn)=>{nt("?"+Pn(sn),Sn)},[nt]);return[Ue,At]}function Pn(je){return je===void 0&&(je=""),new URLSearchParams(typeof je=="string"||Array.isArray(je)||je instanceof URLSearchParams?je:Object.keys(je).reduce((Re,Ne)=>{let Ue=je[Ne];return Re.concat(Array.isArray(Ue)?Ue.map(nt=>[Ne,nt]):[[Ne,Ue]])},[]))}var $n=e(34162),Jn=["prefetch"];function Mr(je){var Re,Ne=je.prefetch,Ue=(0,an.Z)(je,Jn),nt=(0,$n.Ov)(),At=typeof je.to=="string"?je.to:(Re=je.to)===null||Re===void 0?void 0:Re.pathname;return At?C.createElement(Jt,(0,pt.Z)({onMouseEnter:function(){var Sn;return Ne&&At&&((Sn=nt.preloadRoute)===null||Sn===void 0?void 0:Sn.call(nt,At))}},Ue),je.children):null}var qn=e(70405);function pr(je){"@babel/helpers - typeof";return pr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Re){return typeof Re}:function(Re){return Re&&typeof Symbol=="function"&&Re.constructor===Symbol&&Re!==Symbol.prototype?"symbol":typeof Re},pr(je)}function Pe(){"use strict";Pe=function(){return Re};var je,Re={},Ne=Object.prototype,Ue=Ne.hasOwnProperty,nt=Object.defineProperty||function(zt,xt,wt){zt[xt]=wt.value},At=typeof Symbol=="function"?Symbol:{},sn=At.iterator||"@@iterator",Sn=At.asyncIterator||"@@asyncIterator",vn=At.toStringTag||"@@toStringTag";function wn(zt,xt,wt){return Object.defineProperty(zt,xt,{value:wt,enumerable:!0,configurable:!0,writable:!0}),zt[xt]}try{wn({},"")}catch(zt){wn=function(wt,Mt,Cn){return wt[Mt]=Cn}}function zn(zt,xt,wt,Mt){var Cn=xt&&xt.prototype instanceof Ln?xt:Ln,Xt=Object.create(Cn.prototype),Dn=new xn(Mt||[]);return nt(Xt,"_invoke",{value:It(zt,wt,Dn)}),Xt}function Fn(zt,xt,wt){try{return{type:"normal",arg:zt.call(xt,wt)}}catch(Mt){return{type:"throw",arg:Mt}}}Re.wrap=zn;var gr="suspendedStart",ar="suspendedYield",ur="executing",Tt="completed",tn={};function Ln(){}function Zn(){}function Ge(){}var pe={};wn(pe,sn,function(){return this});var ce=Object.getPrototypeOf,we=ce&&ce(ce(gn([])));we&&we!==Ne&&Ue.call(we,sn)&&(pe=we);var ve=Ge.prototype=Ln.prototype=Object.create(pe);function _e(zt){["next","throw","return"].forEach(function(xt){wn(zt,xt,function(wt){return this._invoke(xt,wt)})})}function ot(zt,xt){function wt(Cn,Xt,Dn,Rr){var Cr=Fn(zt[Cn],zt,Xt);if(Cr.type!=="throw"){var jr=Cr.arg,wr=jr.value;return wr&&pr(wr)=="object"&&Ue.call(wr,"__await")?xt.resolve(wr.__await).then(function(ua){wt("next",ua,Dn,Rr)},function(ua){wt("throw",ua,Dn,Rr)}):xt.resolve(wr).then(function(ua){jr.value=ua,Dn(jr)},function(ua){return wt("throw",ua,Dn,Rr)})}Rr(Cr.arg)}var Mt;nt(this,"_invoke",{value:function(Xt,Dn){function Rr(){return new xt(function(Cr,jr){wt(Xt,Dn,Cr,jr)})}return Mt=Mt?Mt.then(Rr,Rr):Rr()}})}function It(zt,xt,wt){var Mt=gr;return function(Cn,Xt){if(Mt===ur)throw new Error("Generator is already running");if(Mt===Tt){if(Cn==="throw")throw Xt;return{value:je,done:!0}}for(wt.method=Cn,wt.arg=Xt;;){var Dn=wt.delegate;if(Dn){var Rr=Lt(Dn,wt);if(Rr){if(Rr===tn)continue;return Rr}}if(wt.method==="next")wt.sent=wt._sent=wt.arg;else if(wt.method==="throw"){if(Mt===gr)throw Mt=Tt,wt.arg;wt.dispatchException(wt.arg)}else wt.method==="return"&&wt.abrupt("return",wt.arg);Mt=ur;var Cr=Fn(zt,xt,wt);if(Cr.type==="normal"){if(Mt=wt.done?Tt:ar,Cr.arg===tn)continue;return{value:Cr.arg,done:wt.done}}Cr.type==="throw"&&(Mt=Tt,wt.method="throw",wt.arg=Cr.arg)}}}function Lt(zt,xt){var wt=xt.method,Mt=zt.iterator[wt];if(Mt===je)return xt.delegate=null,wt==="throw"&&zt.iterator.return&&(xt.method="return",xt.arg=je,Lt(zt,xt),xt.method==="throw")||wt!=="return"&&(xt.method="throw",xt.arg=new TypeError("The iterator does not provide a '"+wt+"' method")),tn;var Cn=Fn(Mt,zt.iterator,xt.arg);if(Cn.type==="throw")return xt.method="throw",xt.arg=Cn.arg,xt.delegate=null,tn;var Xt=Cn.arg;return Xt?Xt.done?(xt[zt.resultName]=Xt.value,xt.next=zt.nextLoc,xt.method!=="return"&&(xt.method="next",xt.arg=je),xt.delegate=null,tn):Xt:(xt.method="throw",xt.arg=new TypeError("iterator result is not an object"),xt.delegate=null,tn)}function Ft(zt){var xt={tryLoc:zt[0]};1 in zt&&(xt.catchLoc=zt[1]),2 in zt&&(xt.finallyLoc=zt[2],xt.afterLoc=zt[3]),this.tryEntries.push(xt)}function Et(zt){var xt=zt.completion||{};xt.type="normal",delete xt.arg,zt.completion=xt}function xn(zt){this.tryEntries=[{tryLoc:"root"}],zt.forEach(Ft,this),this.reset(!0)}function gn(zt){if(zt||zt===""){var xt=zt[sn];if(xt)return xt.call(zt);if(typeof zt.next=="function")return zt;if(!isNaN(zt.length)){var wt=-1,Mt=function Cn(){for(;++wt=0;--Cn){var Xt=this.tryEntries[Cn],Dn=Xt.completion;if(Xt.tryLoc==="root")return Mt("end");if(Xt.tryLoc<=this.prev){var Rr=Ue.call(Xt,"catchLoc"),Cr=Ue.call(Xt,"finallyLoc");if(Rr&&Cr){if(this.prev=0;--Mt){var Cn=this.tryEntries[Mt];if(Cn.tryLoc<=this.prev&&Ue.call(Cn,"finallyLoc")&&this.prev=0;--wt){var Mt=this.tryEntries[wt];if(Mt.finallyLoc===xt)return this.complete(Mt.completion,Mt.afterLoc),Et(Mt),tn}},catch:function(xt){for(var wt=this.tryEntries.length-1;wt>=0;--wt){var Mt=this.tryEntries[wt];if(Mt.tryLoc===xt){var Cn=Mt.completion;if(Cn.type==="throw"){var Xt=Cn.arg;Et(Mt)}return Xt}}throw new Error("illegal catch attempt")},delegateYield:function(xt,wt,Mt){return this.delegate={iterator:gn(xt),resultName:wt,nextLoc:Mt},this.method==="next"&&(this.arg=je),tn}},Re}function ke(je,Re){if(pr(je)!="object"||!je)return je;var Ne=je[Symbol.toPrimitive];if(Ne!==void 0){var Ue=Ne.call(je,Re||"default");if(pr(Ue)!="object")return Ue;throw new TypeError("@@toPrimitive must return a primitive value.")}return(Re==="string"?String:Number)(je)}function en(je){var Re=ke(je,"string");return pr(Re)=="symbol"?Re:String(Re)}function gt(je,Re,Ne){return Re=en(Re),Re in je?Object.defineProperty(je,Re,{value:Ne,enumerable:!0,configurable:!0,writable:!0}):je[Re]=Ne,je}function on(je,Re){var Ne=Object.keys(je);if(Object.getOwnPropertySymbols){var Ue=Object.getOwnPropertySymbols(je);Re&&(Ue=Ue.filter(function(nt){return Object.getOwnPropertyDescriptor(je,nt).enumerable})),Ne.push.apply(Ne,Ue)}return Ne}function On(je){for(var Re=1;Reje.length)&&(Re=je.length);for(var Ne=0,Ue=new Array(Re);Ne=je.length?{done:!0}:{done:!1,value:je[Ue++]}},e:function(wn){throw wn},f:nt}}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 At=!0,sn=!1,Sn;return{s:function(){Ne=Ne.call(je)},n:function(){var wn=Ne.next();return At=wn.done,wn},e:function(wn){sn=!0,Sn=wn},f:function(){try{!At&&Ne.return!=null&&Ne.return()}finally{if(sn)throw Sn}}}}function yr(je){if(Array.isArray(je))return je}function er(je){if(typeof Symbol!="undefined"&&je[Symbol.iterator]!=null||je["@@iterator"]!=null)return Array.from(je)}function cn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tr(je){return yr(je)||er(je)||mr(je)||cn()}function hn(je,Re){if(!(je instanceof Re))throw new TypeError("Cannot call a class as a function")}function _t(je,Re){for(var Ne=0;Ne-1,"register failed, invalid key ".concat(nt," ").concat(Ne.path?"from plugin ".concat(Ne.path):"",".")),Ue.hooks[nt]=(Ue.hooks[nt]||[]).concat(Ne.apply[nt])})}},{key:"getHooks",value:function(Ne){var Ue=Ne.split("."),nt=tr(Ue),At=nt[0],sn=nt.slice(1),Sn=this.hooks[At]||[];return sn.length&&(Sn=Sn.map(function(vn){try{var wn=vn,zn=ir(sn),Fn;try{for(zn.s();!(Fn=zn.n()).done;){var gr=Fn.value;wn=wn[gr]}}catch(ar){zn.e(ar)}finally{zn.f()}return wn}catch(ar){return null}}).filter(Boolean)),Sn}},{key:"applyPlugins",value:function(Ne){var Ue=Ne.key,nt=Ne.type,At=Ne.initialValue,sn=Ne.args,Sn=Ne.async,vn=this.getHooks(Ue)||[];switch(sn&&bt(pr(sn)==="object","applyPlugins failed, args must be plain object."),Sn&&bt(nt===Zt.modify||nt===Zt.event,"async only works with modify and event type."),nt){case Zt.modify:return Sn?vn.reduce(function(){var wn=rr(Pe().mark(function zn(Fn,gr){var ar;return Pe().wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:if(bt(typeof gr=="function"||pr(gr)==="object"||ht(gr),"applyPlugins failed, all hooks for key ".concat(Ue," must be function, plain object or Promise.")),!ht(Fn)){Tt.next=5;break}return Tt.next=4,Fn;case 4:Fn=Tt.sent;case 5:if(typeof gr!="function"){Tt.next=16;break}if(ar=gr(Fn,sn),!ht(ar)){Tt.next=13;break}return Tt.next=10,ar;case 10:return Tt.abrupt("return",Tt.sent);case 13:return Tt.abrupt("return",ar);case 14:Tt.next=21;break;case 16:if(!ht(gr)){Tt.next=20;break}return Tt.next=19,gr;case 19:gr=Tt.sent;case 20:return Tt.abrupt("return",On(On({},Fn),gr));case 21:case"end":return Tt.stop()}},zn)}));return function(zn,Fn){return wn.apply(this,arguments)}}(),ht(At)?At:Promise.resolve(At)):vn.reduce(function(wn,zn){return bt(typeof zn=="function"||pr(zn)==="object","applyPlugins failed, all hooks for key ".concat(Ue," must be function or plain object.")),typeof zn=="function"?zn(wn,sn):On(On({},wn),zn)},At);case Zt.event:return rr(Pe().mark(function wn(){var zn,Fn,gr,ar;return Pe().wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:zn=ir(vn),Tt.prev=1,zn.s();case 3:if((Fn=zn.n()).done){Tt.next=12;break}if(gr=Fn.value,bt(typeof gr=="function","applyPlugins failed, all hooks for key ".concat(Ue," must be function.")),ar=gr(sn),!(Sn&&ht(ar))){Tt.next=10;break}return Tt.next=10,ar;case 10:Tt.next=3;break;case 12:Tt.next=17;break;case 14:Tt.prev=14,Tt.t0=Tt.catch(1),zn.e(Tt.t0);case 17:return Tt.prev=17,zn.f(),Tt.finish(17);case 20:case"end":return Tt.stop()}},wn,null,[[1,14,17,20]])}))();case Zt.compose:return function(){return Bt({fns:vn.concat(At),args:sn})()}}}}],[{key:"create",value:function(Ne){var Ue=new je({validKeys:Ne.validKeys});return Ne.plugins.forEach(function(nt){Ue.register(nt)}),Ue}}]),je}(),qt=e(10581),An=0,Gn=0;function kn(je,Re){if(!1)var Ne}function jn(je){return JSON.stringify(je,null,2)}function dn(je){var Re=je.length>1?je.map(Nn).join(" "):je[0];return p()(Re)==="object"?"".concat(jn(Re)):Re.toString()}function Nn(je){return p()(je)==="object"?"".concat(JSON.stringify(je)):je.toString()}var Tn={log:function(){for(var Re=arguments.length,Ne=new Array(Re),Ue=0;Ue0){for(Ar=1,Sa=1;ArO&&p(B,arguments[O]),B});if(Z.prototype=N,E!=="Error"?s?s(Z,oe):c(Z,oe,{name:!0}):m&&w in $&&(u(Z,$,w),u(Z,$,"prepareStackTrace")),c(Z,$),!d)try{N.name!==E&&o(N,"name",E),N.constructor=Z}catch(Y){}return Z}}},54927:function(v,g,e){"use strict";var t=e(79989),r=e(76058),o=e(61735),a=e(3689),s=e(51064),c="AggregateError",u=r(c),l=!a(function(){return u([1]).errors[0]!==1})&&a(function(){return u([1],c,{cause:7}).cause!==7});t({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:s(c,function(f){return function(y,m){return o(f,this,arguments)}},l,!0)})},39382:function(v,g,e){"use strict";var t=e(79989),r=e(23622),o=e(61868),a=e(49385),s=e(8758),c=e(25391),u=e(75773),l=e(75684),f=e(62570),p=e(65411),y=e(18734),m=e(13841),d=e(44201),b=d("toStringTag"),C=Error,x=[].push,S=function(j,E){var $=r(w,this),N;a?N=a(new C,$?o(this):w):(N=$?this:c(w),u(N,b,"Error")),E!==void 0&&u(N,"message",m(E)),p(N,S,N.stack,1),arguments.length>2&&f(N,arguments[2]);var oe=[];return y(j,x,{that:oe}),u(N,"errors",oe),N};a?a(S,C):s(S,C,{name:!0});var w=S.prototype=c(C.prototype,{constructor:l(1,S),message:l(1,""),name:l(1,"AggregateError")});t({global:!0,constructor:!0,arity:2},{AggregateError:S})},95879:function(v,g,e){"use strict";e(39382)},92176:function(v,g,e){"use strict";var t=e(79989),r=e(90690),o=e(6310),a=e(68700),s=e(87370);t({target:"Array",proto:!0},{at:function(u){var l=r(this),f=o(l),p=a(u),y=p>=0?p:f+p;return y<0||y>=f?void 0:l[y]}}),s("at")},93383:function(v,g,e){"use strict";var t=e(79989),r=e(61969).findLastIndex,o=e(87370);t({target:"Array",proto:!0},{findLastIndex:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}}),o("findLastIndex")},59867:function(v,g,e){"use strict";var t=e(79989),r=e(61969).findLast,o=e(87370);t({target:"Array",proto:!0},{findLast:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}}),o("findLast")},70560:function(v,g,e){"use strict";var t=e(79989),r=e(90690),o=e(6310),a=e(5649),s=e(55565),c=e(3689),u=c(function(){return[].push.call({length:4294967296},1)!==4294967297}),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(p){return p instanceof TypeError}},f=u||!l();t({target:"Array",proto:!0,arity:1,forced:f},{push:function(y){var m=r(this),d=o(m),b=arguments.length;s(d+b);for(var C=0;C79&&a<83,u=c||!o("reduceRight");t({target:"Array",proto:!0,forced:u},{reduceRight:function(f){return r(this,f,arguments.length,arguments.length>1?arguments[1]:void 0)}})},278:function(v,g,e){"use strict";var t=e(79989),r=e(88820).left,o=e(16834),a=e(3615),s=e(50806),c=!s&&a>79&&a<83,u=c||!o("reduce");t({target:"Array",proto:!0,forced:u},{reduce:function(f){var p=arguments.length;return r(this,f,p,p>1?arguments[1]:void 0)}})},29830:function(v,g,e){"use strict";var t=e(79989),r=e(26166),o=e(65290),a=e(87370),s=Array;t({target:"Array",proto:!0},{toReversed:function(){return r(o(this),s)}}),a("toReversed")},12894:function(v,g,e){"use strict";var t=e(79989),r=e(68844),o=e(10509),a=e(65290),s=e(59976),c=e(88277),u=e(87370),l=Array,f=r(c("Array","sort"));t({target:"Array",proto:!0},{toSorted:function(y){y!==void 0&&o(y);var m=a(this),d=s(l,m);return f(d,y)}}),u("toSorted")},93530:function(v,g,e){"use strict";var t=e(79989),r=e(87370),o=e(55565),a=e(6310),s=e(27578),c=e(65290),u=e(68700),l=Array,f=Math.max,p=Math.min;t({target:"Array",proto:!0},{toSpliced:function(m,d){var b=c(this),C=a(b),x=s(m,C),S=arguments.length,w=0,O,j,E,$;for(S===0?O=j=0:S===1?(O=0,j=C-x):(O=S-2,j=p(f(u(d),0),C-x)),E=o(C+O-j),$=l(E);w=0?d:m+d;return b<0||b>=m?void 0:u(y,b)}})},12281:function(v,g,e){"use strict";var t=e(79989),r=e(68844),o=e(74684),a=e(34327),s=r("".charCodeAt);t({target:"String",proto:!0},{isWellFormed:function(){for(var u=a(o(this)),l=u.length,f=0;f=56320||++f>=l||(s(u,f)&64512)!==56320))return!1}return!0}})},56532:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(68844),a=e(74684),s=e(69985),c=e(981),u=e(91245),l=e(34327),f=e(54849),p=e(63477),y=e(27017),m=e(44201),d=e(53931),b=m("replace"),C=TypeError,x=o("".indexOf),S=o("".replace),w=o("".slice),O=Math.max,j=function(E,$,N){return N>E.length?-1:$===""?N:x(E,$,N)};t({target:"String",proto:!0},{replaceAll:function($,N){var oe=a(this),Z,Y,ee,te,B,ne,Q,q,L,F=0,T=0,I="";if(!c($)){if(Z=u($),Z&&(Y=l(a(p($))),!~x(Y,"g")))throw new C("`.replaceAll` does not allow non-global regexes");if(ee=f($,b),ee)return r(ee,$,oe,N);if(d&&Z)return S(l(oe),$,N)}for(te=l(oe),B=l($),ne=s(N),ne||(N=l(N)),Q=B.length,q=O(1,Q),F=j(te,B,0);F!==-1;)L=ne?l(N(B,F,te)):y(B,te,F,[],void 0,N),I+=w(te,T,F)+L,T=F+Q,F=j(te,B,F+q);return T=56320||w+1>=x||(f(C,w+1)&64512)!==56320?S[w]=m:(S[w]=l(C,w),S[++w]=l(C,w))}return p(S,"")}})},95194:function(v,g,e){"use strict";var t=e(54872),r=e(6310),o=e(68700),a=t.aTypedArray,s=t.exportTypedArrayMethod;s("at",function(u){var l=a(this),f=r(l),p=o(u),y=p>=0?p:f+p;return y<0||y>=f?void 0:l[y]})},82:function(v,g,e){"use strict";var t=e(54872),r=e(61969).findLastIndex,o=t.aTypedArray,a=t.exportTypedArrayMethod;a("findLastIndex",function(c){return r(o(this),c,arguments.length>1?arguments[1]:void 0)})},20522:function(v,g,e){"use strict";var t=e(54872),r=e(61969).findLast,o=t.aTypedArray,a=t.exportTypedArrayMethod;a("findLast",function(c){return r(o(this),c,arguments.length>1?arguments[1]:void 0)})},79976:function(v,g,e){"use strict";var t=e(19037),r=e(22615),o=e(54872),a=e(6310),s=e(83250),c=e(90690),u=e(3689),l=t.RangeError,f=t.Int8Array,p=f&&f.prototype,y=p&&p.set,m=o.aTypedArray,d=o.exportTypedArrayMethod,b=!u(function(){var x=new Uint8ClampedArray(2);return r(y,x,{length:1,0:3},1),x[1]!==3}),C=b&&o.NATIVE_ARRAY_BUFFER_VIEWS&&u(function(){var x=new f(2);return x.set(1),x.set("2",1),x[0]!==0||x[1]!==2});d("set",function(S){m(this);var w=s(arguments.length>1?arguments[1]:void 0,1),O=c(S);if(b)return r(y,this,O,w);var j=this.length,E=a(O),$=0;if(E+w>j)throw new l("Wrong length");for(;$1?arguments[1]:void 0)}}),o("filterOut")},54883:function(v,g,e){"use strict";var t=e(79989),r=e(2960).filterReject,o=e(87370);t({target:"Array",proto:!0,forced:!0},{filterReject:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}}),o("filterReject")},18073:function(v,g,e){"use strict";var t=e(79989),r=e(2231);t({target:"Array",stat:!0},{fromAsync:r})},96882:function(v,g,e){"use strict";var t=e(79989),r=e(16834),o=e(87370),a=e(44416),s=e(53931);t({target:"Array",proto:!0,name:"groupToMap",forced:s||!r("groupByToMap")},{groupByToMap:a}),o("groupByToMap")},22525:function(v,g,e){"use strict";var t=e(79989),r=e(64976),o=e(16834),a=e(87370);t({target:"Array",proto:!0,forced:!o("groupBy")},{groupBy:function(c){var u=arguments.length>1?arguments[1]:void 0;return r(this,c,u)}}),a("groupBy")},32539:function(v,g,e){"use strict";var t=e(79989),r=e(87370),o=e(44416),a=e(53931);t({target:"Array",proto:!0,forced:a},{groupToMap:o}),r("groupToMap")},36208:function(v,g,e){"use strict";var t=e(79989),r=e(64976),o=e(87370);t({target:"Array",proto:!0},{group:function(s){var c=arguments.length>1?arguments[1]:void 0;return r(this,s,c)}}),o("group")},5082:function(v,g,e){"use strict";var t=e(79989),r=e(92297),o=Object.isFrozen,a=function(s,c){if(!o||!r(s)||!o(s))return!1;for(var u=0,l=s.length,f;u1?arguments[1]:!1);return o([u&255,u>>8&255],10)}})},89246:function(v,g,e){"use strict";var t=e(79989),r=e(68844),o=r(DataView.prototype.getUint8);t({target:"DataView",proto:!0,forced:!0},{getUint8Clamped:function(s){return o(this,s)}})},31186:function(v,g,e){"use strict";var t=e(79989),r=e(68844),o=e(50926),a=e(19842),s=e(15477).pack,c=e(76043),u=TypeError,l=r(DataView.prototype.setUint16);t({target:"DataView",proto:!0},{setFloat16:function(p,y){if(o(this)!=="DataView")throw new u("Incorrect receiver");var m=a(p),d=s(c(y),10,2);return l(this,m,d[1]<<8|d[0],arguments.length>2?arguments[2]:!1)}})},9279:function(v,g,e){"use strict";var t=e(79989),r=e(68844),o=e(50926),a=e(19842),s=e(87191),c=TypeError,u=r(DataView.prototype.setUint8);t({target:"DataView",proto:!0,forced:!0},{setUint8Clamped:function(f,p){if(o(this)!=="DataView")throw new c("Incorrect receiver");var y=a(f);return u(this,y,s(p))}})},26725:function(v,g,e){"use strict";var t=e(79989),r=e(67697),o=e(76058),a=e(10509),s=e(767),c=e(11880),u=e(6045),l=e(62148),f=e(44201),p=e(618),y=e(29199),m=o("SuppressedError"),d=ReferenceError,b=f("dispose"),C=f("toStringTag"),x="DisposableStack",S=p.set,w=p.getterFor(x),O="sync-dispose",j="disposed",E="pending",$=function(Z){var Y=w(Z);if(Y.state===j)throw new d(x+" already disposed");return Y},N=function(){S(s(this,oe),{type:x,state:E,stack:[]}),r||(this.disposed=!1)},oe=N.prototype;u(oe,{dispose:function(){var Y=w(this);if(Y.state!==j){Y.state=j,r||(this.disposed=!0);for(var ee=Y.stack,te=ee.length,B=!1,ne;te;){var Q=ee[--te];ee[te]=null;try{Q()}catch(q){B?ne=new m(q,ne):(B=!0,ne=q)}}if(Y.stack=null,B)throw ne}},use:function(Y){return y($(this),Y,O),Y},adopt:function(Y,ee){var te=$(this);return a(ee),y(te,void 0,O,function(){ee(Y)}),Y},defer:function(Y){var ee=$(this);a(Y),y(ee,void 0,O,Y)},move:function(){var Y=$(this),ee=new N;return w(ee).stack=Y.stack,Y.stack=[],Y.state=j,r||(this.disposed=!0),ee}}),r&&l(oe,"disposed",{configurable:!0,get:function(){return w(this).state===j}}),c(oe,b,oe.dispose,{name:"dispose"}),c(oe,C,x,{nonWritable:!0}),t({global:!0,constructor:!0},{DisposableStack:N})},26125:function(v,g,e){"use strict";var t=e(79989),r=e(33505);t({target:"Function",proto:!0,forced:!0},{demethodize:r})},2820:function(v,g,e){"use strict";var t=e(79989),r=e(68844),o=e(69985),a=e(6738),s=e(36812),c=e(67697),u=Object.getOwnPropertyDescriptor,l=/^\s*class\b/,f=r(l.exec),p=function(y){try{if(!c||!f(l,a(y)))return!1}catch(d){}var m=u(y,"prototype");return!!m&&s(m,"writable")&&!m.writable};t({target:"Function",stat:!0,sham:!0,forced:!0},{isCallable:function(m){return o(m)&&!p(m)}})},62517:function(v,g,e){"use strict";var t=e(79989),r=e(19429);t({target:"Function",stat:!0,forced:!0},{isConstructor:r})},54947:function(v,g,e){"use strict";var t=e(44201),r=e(72560).f,o=t("metadata"),a=Function.prototype;a[o]===void 0&&r(a,o,{value:null})},74993:function(v,g,e){"use strict";var t=e(79989),r=e(33505);t({target:"Function",proto:!0,forced:!0,name:"demethodize"},{unThis:r})},50647:function(v,g,e){"use strict";var t=e(79989),r=e(47082);t({target:"Iterator",name:"indexed",proto:!0,real:!0,forced:!0},{asIndexedPairs:r})},67602:function(v,g,e){"use strict";var t=e(79989),r=e(19037),o=e(767),a=e(85027),s=e(69985),c=e(61868),u=e(62148),l=e(76522),f=e(3689),p=e(36812),y=e(44201),m=e(12013).IteratorPrototype,d=e(67697),b=e(53931),C="constructor",x="Iterator",S=y("toStringTag"),w=TypeError,O=r[x],j=b||!s(O)||O.prototype!==m||!f(function(){O({})}),E=function(){if(o(this,m),c(this)===m)throw new w("Abstract class Iterator not directly constructable")},$=function(N,oe){d?u(m,N,{configurable:!0,get:function(){return oe},set:function(Z){if(a(this),this===m)throw new w("You can't redefine this property");p(this,N)?this[N]=Z:l(this,N,Z)}}):m[N]=oe};p(m,S)||$(S,x),(j||!p(m,C)||m[C]===Object)&&$(C,E),E.prototype=m,t({global:!0,constructor:!0,forced:j},{Iterator:E})},82639:function(v,g,e){"use strict";var t=e(22615),r=e(11880),o=e(54849),a=e(36812),s=e(44201),c=e(12013).IteratorPrototype,u=s("dispose");a(c,u)||r(c,u,function(){var l=o(this,"return");l&&t(l,this)})},63986:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(85027),a=e(22302),s=e(4654),c=e(15904),u=e(65419),l=e(53931),f=u(function(){for(var p=this.iterator,y=this.next,m,d;this.remaining;)if(this.remaining--,m=o(r(y,p)),d=this.done=!!m.done,d)return;if(m=o(r(y,p)),d=this.done=!!m.done,!d)return m.value});t({target:"Iterator",proto:!0,real:!0,forced:l},{drop:function(y){o(this);var m=c(s(+y));return new f(a(this),{remaining:m})}})},16054:function(v,g,e){"use strict";var t=e(79989),r=e(18734),o=e(10509),a=e(85027),s=e(22302);t({target:"Iterator",proto:!0,real:!0},{every:function(u){a(this),o(u);var l=s(this),f=0;return!r(l,function(p,y){if(!u(p,f++))return y()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},53476:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(10509),a=e(85027),s=e(22302),c=e(65419),u=e(71228),l=e(53931),f=c(function(){for(var p=this.iterator,y=this.predicate,m=this.next,d,b,C;;){if(d=a(r(m,p)),b=this.done=!!d.done,b)return;if(C=d.value,u(p,y,[C,this.counter++],!0))return C}});t({target:"Iterator",proto:!0,real:!0,forced:l},{filter:function(y){return a(this),o(y),new f(s(this),{predicate:y})}})},70928:function(v,g,e){"use strict";var t=e(79989),r=e(18734),o=e(10509),a=e(85027),s=e(22302);t({target:"Iterator",proto:!0,real:!0},{find:function(u){a(this),o(u);var l=s(this),f=0;return r(l,function(p,y){if(u(p,f++))return y(p)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},49411:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(10509),a=e(85027),s=e(22302),c=e(36752),u=e(65419),l=e(72125),f=e(53931),p=u(function(){for(var y=this.iterator,m=this.mapper,d,b;;){if(b=this.inner)try{if(d=a(r(b.next,b.iterator)),!d.done)return d.value;this.inner=null}catch(C){l(y,"throw",C)}if(d=a(r(this.next,y)),this.done=!!d.done)return;try{this.inner=c(m(d.value,this.counter++),!1)}catch(C){l(y,"throw",C)}}});t({target:"Iterator",proto:!0,real:!0,forced:f},{flatMap:function(m){return a(this),o(m),new p(s(this),{mapper:m,inner:null})}})},30005:function(v,g,e){"use strict";var t=e(79989),r=e(18734),o=e(10509),a=e(85027),s=e(22302);t({target:"Iterator",proto:!0,real:!0},{forEach:function(u){a(this),o(u);var l=s(this),f=0;r(l,function(p){u(p,f++)},{IS_RECORD:!0})}})},73494:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(90690),a=e(23622),s=e(12013).IteratorPrototype,c=e(65419),u=e(36752),l=e(53931),f=c(function(){return r(this.next,this.iterator)},!0);t({target:"Iterator",stat:!0,forced:l},{from:function(y){var m=u(typeof y=="string"?o(y):y,!0);return a(s,m.iterator)?m.iterator:new f(m)}})},94564:function(v,g,e){"use strict";var t=e(79989),r=e(47082);t({target:"Iterator",proto:!0,real:!0,forced:!0},{indexed:r})},41792:function(v,g,e){"use strict";var t=e(79989),r=e(88983),o=e(53931);t({target:"Iterator",proto:!0,real:!0,forced:o},{map:r})},5985:function(v,g,e){"use strict";var t=e(79989),r=e(98554),o=TypeError;t({target:"Iterator",stat:!0,forced:!0},{range:function(s,c,u){if(typeof s=="number")return new r(s,c,u,"number",0,1);if(typeof s=="bigint")return new r(s,c,u,"bigint",BigInt(0),BigInt(1));throw new o("Incorrect Iterator.range arguments")}})},31107:function(v,g,e){"use strict";var t=e(79989),r=e(18734),o=e(10509),a=e(85027),s=e(22302),c=TypeError;t({target:"Iterator",proto:!0,real:!0},{reduce:function(l){a(this),o(l);var f=s(this),p=arguments.length<2,y=p?void 0:arguments[1],m=0;if(r(f,function(d){p?(p=!1,y=d):y=l(y,d,m),m++},{IS_RECORD:!0}),p)throw new c("Reduce of empty iterator with no initial value");return y}})},28244:function(v,g,e){"use strict";var t=e(79989),r=e(18734),o=e(10509),a=e(85027),s=e(22302);t({target:"Iterator",proto:!0,real:!0},{some:function(u){a(this),o(u);var l=s(this),f=0;return r(l,function(p,y){if(u(p,f++))return y()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},3645:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(85027),a=e(22302),s=e(4654),c=e(15904),u=e(65419),l=e(72125),f=e(53931),p=u(function(){var y=this.iterator;if(!this.remaining--)return this.done=!0,l(y,"normal",void 0);var m=o(r(this.next,y)),d=this.done=!!m.done;if(!d)return m.value});t({target:"Iterator",proto:!0,real:!0,forced:f},{take:function(m){o(this);var d=c(s(+m));return new p(a(this),{remaining:d})}})},58429:function(v,g,e){"use strict";var t=e(79989),r=e(85027),o=e(18734),a=e(22302),s=[].push;t({target:"Iterator",proto:!0,real:!0},{toArray:function(){var u=[];return o(a(r(this)),s,{that:u,IS_RECORD:!0}),u}})},39569:function(v,g,e){"use strict";var t=e(79989),r=e(85027),o=e(29019),a=e(40219),s=e(22302),c=e(53931);t({target:"Iterator",proto:!0,real:!0,forced:c},{toAsync:function(){return new a(s(new o(s(r(this)))))}})},74320:function(v,g,e){"use strict";var t=e(79989),r=e(22818),o=e(55670);t({target:"JSON",stat:!0,forced:!r},{isRawJSON:o})},20691:function(v,g,e){"use strict";var t=e(79989),r=e(67697),o=e(19037),a=e(76058),s=e(68844),c=e(22615),u=e(69985),l=e(48999),f=e(92297),p=e(36812),y=e(34327),m=e(6310),d=e(76522),b=e(3689),C=e(46675),x=e(50146),S=o.JSON,w=o.Number,O=o.SyntaxError,j=S&&S.parse,E=a("Object","keys"),$=Object.getOwnPropertyDescriptor,N=s("".charAt),oe=s("".slice),Z=s(/./.exec),Y=s([].push),ee=/^\d$/,te=/^[1-9]$/,B=/^(?:-|\d)$/,ne=/^[\t\n\r ]$/,Q=0,q=1,L=function(X,G){X=y(X);var ue=new R(X,0,""),he=ue.parse(),Ce=he.value,xe=ue.skip(ne,he.end);if(xe1?arguments[1]:void 0);return a(u,function(f,p){if(!l(f,p,u))return!1},!0)!==!1}})},41099:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(9945),a=e(83914),s=e(10613),c=a.Map,u=a.set;t({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(f){var p=o(this),y=r(f,arguments.length>1?arguments[1]:void 0),m=new c;return s(p,function(d,b){y(d,b,p)&&u(m,b,d)}),m}})},20876:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(9945),a=e(10613);t({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(c){var u=o(this),l=r(c,arguments.length>1?arguments[1]:void 0),f=a(u,function(p,y){if(l(p,y,u))return{key:y}},!0);return f&&f.key}})},26320:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(9945),a=e(10613);t({target:"Map",proto:!0,real:!0,forced:!0},{find:function(c){var u=o(this),l=r(c,arguments.length>1?arguments[1]:void 0),f=a(u,function(p,y){if(l(p,y,u))return{value:p}},!0);return f&&f.value}})},6052:function(v,g,e){"use strict";var t=e(79989),r=e(28737);t({target:"Map",stat:!0,forced:!0},{from:r})},76791:function(v,g,e){"use strict";var t=e(79989),r=e(68600),o=e(9945),a=e(10613);t({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(c){return a(o(this),function(u){if(r(u,c))return!0},!0)===!0}})},75341:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(18734),a=e(69985),s=e(10509),c=e(83914).Map;t({target:"Map",stat:!0,forced:!0},{keyBy:function(l,f){var p=a(this)?this:c,y=new p;s(f);var m=s(y.set);return o(l,function(d){r(m,y,f(d),d)}),y}})},40019:function(v,g,e){"use strict";var t=e(79989),r=e(9945),o=e(10613);t({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(s){var c=o(r(this),function(u,l){if(u===s)return{key:l}},!0);return c&&c.key}})},92343:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(9945),a=e(83914),s=e(10613),c=a.Map,u=a.set;t({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(f){var p=o(this),y=r(f,arguments.length>1?arguments[1]:void 0),m=new c;return s(p,function(d,b){u(m,y(d,b,p),d)}),m}})},51096:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(9945),a=e(83914),s=e(10613),c=a.Map,u=a.set;t({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(f){var p=o(this),y=r(f,arguments.length>1?arguments[1]:void 0),m=new c;return s(p,function(d,b){u(m,b,y(d,b,p))}),m}})},4314:function(v,g,e){"use strict";var t=e(79989),r=e(9945),o=e(18734),a=e(83914).set;t({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(c){for(var u=r(this),l=arguments.length,f=0;f1?arguments[1]:void 0);return a(u,function(f,p){if(l(f,p,u))return!0},!0)===!0}})},24453:function(v,g,e){"use strict";var t=e(79989),r=e(41432);t({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:r})},64078:function(v,g,e){"use strict";var t=e(79989),r=e(10509),o=e(9945),a=e(83914),s=TypeError,c=a.get,u=a.has,l=a.set;t({target:"Map",proto:!0,real:!0,forced:!0},{update:function(p,y){var m=o(this),d=arguments.length;r(y);var b=u(m,p);if(!b&&d<3)throw new s("Updating absent value");var C=b?c(m,p):r(d>2?arguments[2]:void 0)(p,m);return l(m,p,y(C,p,m)),m}})},66190:function(v,g,e){"use strict";var t=e(79989),r=e(41432);t({target:"Map",proto:!0,real:!0,forced:!0},{upsert:r})},25684:function(v,g,e){"use strict";var t=e(79989),r=Math.min,o=Math.max;t({target:"Math",stat:!0,forced:!0},{clamp:function(s,c,u){return r(u,o(c,s))}})},31789:function(v,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},8677:function(v,g,e){"use strict";var t=e(79989),r=180/Math.PI;t({target:"Math",stat:!0,forced:!0},{degrees:function(a){return a*r}})},59151:function(v,g,e){"use strict";var t=e(79989),r=e(76043);t({target:"Math",stat:!0},{f16round:r})},346:function(v,g,e){"use strict";var t=e(79989),r=e(84463),o=e(37788);t({target:"Math",stat:!0,forced:!0},{fscale:function(s,c,u,l,f){return o(r(s,c,u,l,f))}})},91069:function(v,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{iaddh:function(o,a,s,c){var u=o>>>0,l=a>>>0,f=s>>>0;return l+(c>>>0)+((u&f|(u|f)&~(u+f>>>0))>>>31)|0}})},18886:function(v,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{imulh:function(o,a){var s=65535,c=+o,u=+a,l=c&s,f=u&s,p=c>>16,y=u>>16,m=(p*f>>>0)+(l*f>>>16);return p*y+(m>>16)+((l*y>>>0)+(m&s)>>16)}})},88065:function(v,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{isubh:function(o,a,s,c){var u=o>>>0,l=a>>>0,f=s>>>0;return l-(c>>>0)-((~u&f|~(u^f)&u-f>>>0)>>>31)|0}})},68172:function(v,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},60445:function(v,g,e){"use strict";var t=e(79989),r=Math.PI/180;t({target:"Math",stat:!0,forced:!0},{radians:function(a){return a*r}})},99457:function(v,g,e){"use strict";var t=e(79989),r=e(84463);t({target:"Math",stat:!0,forced:!0},{scale:r})},613:function(v,g,e){"use strict";var t=e(79989),r=e(85027),o=e(70046),a=e(30974),s=e(27807),c=e(618),u="Seeded Random",l=u+" Generator",f='Math.seededPRNG() argument should have a "seed" field with a finite value.',p=c.set,y=c.getterFor(l),m=TypeError,d=a(function(C){p(this,{type:l,seed:C%2147483647})},u,function(){var C=y(this),x=C.seed=(C.seed*1103515245+12345)%2147483647;return s((x&1073741823)/1073741823,!1)});t({target:"Math",stat:!0,forced:!0},{seededPRNG:function(C){var x=r(C).seed;if(!o(x))throw new m(f);return new d(x)}})},835:function(v,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{signbit:function(o){var a=+o;return a===a&&a===0?1/a===-1/0:a<0}})},926:function(v,g,e){"use strict";var t=e(79989);t({target:"Math",stat:!0,forced:!0},{umulh:function(o,a){var s=65535,c=+o,u=+a,l=c&s,f=u&s,p=c>>>16,y=u>>>16,m=(p*f>>>0)+(l*f>>>16);return p*y+(m>>>16)+((l*y>>>0)+(m&s)>>>16)}})},82899:function(v,g,e){"use strict";var t=e(79989),r=e(68844),o=e(68700),a="Invalid number representation",s="Invalid radix",c=RangeError,u=SyntaxError,l=TypeError,f=parseInt,p=Math.pow,y=/^[\d.a-z]+$/,m=r("".charAt),d=r(y.exec),b=r(1 .toString),C=r("".slice),x=r("".split);t({target:"Number",stat:!0,forced:!0},{fromString:function(w,O){var j=1;if(typeof w!="string")throw new l(a);if(!w.length)throw new u(a);if(m(w,0)==="-"&&(j=-1,w=C(w,1),!w.length))throw new u(a);var E=O===void 0?10:o(O);if(E<2||E>36)throw new c(s);if(!d(y,w))throw new u(a);var $=x(w,"."),N=f($[0],E);if($.length>1&&(N+=f($[1],E)/p(E,$[1].length)),E===10&&b(N,E)!==w)throw new u(a);return j*N}})},29977:function(v,g,e){"use strict";var t=e(79989),r=e(98554);t({target:"Number",stat:!0,forced:!0},{range:function(a,s,c){return new r(a,s,c,"number",0,1)}})},31927:function(v,g,e){"use strict";var t=e(79989),r=e(42351);t({target:"Object",stat:!0,forced:!0},{iterateEntries:function(a){return new r(a,"entries")}})},77131:function(v,g,e){"use strict";var t=e(79989),r=e(42351);t({target:"Object",stat:!0,forced:!0},{iterateKeys:function(a){return new r(a,"keys")}})},55174:function(v,g,e){"use strict";var t=e(79989),r=e(42351);t({target:"Object",stat:!0,forced:!0},{iterateValues:function(a){return new r(a,"values")}})},63503:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(67697),a=e(14241),s=e(10509),c=e(85027),u=e(767),l=e(69985),f=e(981),p=e(48999),y=e(54849),m=e(11880),d=e(6045),b=e(62148),C=e(20920),x=e(44201),S=e(618),w=x("observable"),O="Observable",j="Subscription",E="SubscriptionObserver",$=S.getterFor,N=S.set,oe=$(O),Z=$(j),Y=$(E),ee=function(q){this.observer=c(q),this.cleanup=void 0,this.subscriptionObserver=void 0};ee.prototype={type:j,clean:function(){var q=this.cleanup;if(q){this.cleanup=void 0;try{q()}catch(L){C(L)}}},close:function(){if(!o){var q=this.facade,L=this.subscriptionObserver;q.closed=!0,L&&(L.closed=!0)}this.observer=void 0},isClosed:function(){return this.observer===void 0}};var te=function(q,L){var F=N(this,new ee(q)),T;o||(this.closed=!1);try{(T=y(q,"start"))&&r(T,q,this)}catch(ae){C(ae)}if(!F.isClosed()){var I=F.subscriptionObserver=new B(F);try{var R=L(I),z=R;f(R)||(F.cleanup=l(R.unsubscribe)?function(){z.unsubscribe()}:s(R))}catch(ae){I.error(ae);return}F.isClosed()&&F.clean()}};te.prototype=d({},{unsubscribe:function(){var L=Z(this);L.isClosed()||(L.close(),L.clean())}}),o&&b(te.prototype,"closed",{configurable:!0,get:function(){return Z(this).isClosed()}});var B=function(q){N(this,{type:E,subscriptionState:q}),o||(this.closed=!1)};B.prototype=d({},{next:function(L){var F=Y(this).subscriptionState;if(!F.isClosed()){var T=F.observer;try{var I=y(T,"next");I&&r(I,T,L)}catch(R){C(R)}}},error:function(L){var F=Y(this).subscriptionState;if(!F.isClosed()){var T=F.observer;F.close();try{var I=y(T,"error");I?r(I,T,L):C(L)}catch(R){C(R)}F.clean()}},complete:function(){var L=Y(this).subscriptionState;if(!L.isClosed()){var F=L.observer;L.close();try{var T=y(F,"complete");T&&r(T,F)}catch(I){C(I)}L.clean()}}}),o&&b(B.prototype,"closed",{configurable:!0,get:function(){return Y(this).subscriptionState.isClosed()}});var ne=function(L){u(this,Q),N(this,{type:O,subscriber:s(L)})},Q=ne.prototype;d(Q,{subscribe:function(L){var F=arguments.length;return new te(l(L)?{next:L,error:F>1?arguments[1]:void 0,complete:F>2?arguments[2]:void 0}:p(L)?L:{},oe(this).subscriber)}}),m(Q,w,function(){return this}),t({global:!0,constructor:!0,forced:!0},{Observable:ne}),a(O)},9818:function(v,g,e){"use strict";var t=e(79989),r=e(76058),o=e(22615),a=e(85027),s=e(19429),c=e(5185),u=e(54849),l=e(18734),f=e(44201),p=f("observable");t({target:"Observable",stat:!0,forced:!0},{from:function(m){var d=s(this)?this:r("Observable"),b=u(a(m),p);if(b){var C=a(o(b,m));return C.constructor===d?C:new d(function(S){return C.subscribe(S)})}var x=c(m);return new d(function(S){l(x,function(w,O){if(S.next(w),S.closed)return O()},{IS_ITERATOR:!0,INTERRUPTED:!0}),S.complete()})}})},76314:function(v,g,e){"use strict";e(63503),e(9818),e(38771)},38771:function(v,g,e){"use strict";var t=e(79989),r=e(76058),o=e(19429),a=r("Array");t({target:"Observable",stat:!0,forced:!0},{of:function(){for(var c=o(this)?this:r("Observable"),u=arguments.length,l=a(u),f=0;f?@[\\\\\\]^`{|}~"+a+"]","g");t({target:"RegExp",stat:!0,forced:!0},{escape:function(f){var p=o(f),y=s(p,0);return(y>47&&y<58?"\\x3":"")+c(p,u,"\\$&")}})},57282:function(v,g,e){"use strict";var t=e(79989),r=e(10029),o=e(61034).add;t({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var s=r(this),c=0,u=arguments.length;c1?arguments[1]:void 0);return a(u,function(f){if(!l(f,f,u))return!1},!0)!==!1}})},96986:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(10029),a=e(61034),s=e(48774),c=a.Set,u=a.add;t({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(f){var p=o(this),y=r(f,arguments.length>1?arguments[1]:void 0),m=new c;return s(p,function(d){y(d,d,p)&&u(m,d)}),m}})},95681:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(10029),a=e(48774);t({target:"Set",proto:!0,real:!0,forced:!0},{find:function(c){var u=o(this),l=r(c,arguments.length>1?arguments[1]:void 0),f=a(u,function(p){if(l(p,p,u))return{value:p}},!0);return f&&f.value}})},13781:function(v,g,e){"use strict";var t=e(79989),r=e(28737);t({target:"Set",stat:!0,forced:!0},{from:r})},98873:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(2939),a=e(72948);t({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(c){return r(a,this,o(c))}})},33442:function(v,g,e){"use strict";var t=e(79989),r=e(3689),o=e(72948),a=e(53234),s=!a("intersection")||r(function(){return Array.from(new Set([1,2,3]).intersection(new Set([3,2])))!=="3,2"});t({target:"Set",proto:!0,real:!0,forced:s},{intersection:o})},50308:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(2939),a=e(97795);t({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(c){return r(a,this,o(c))}})},61964:function(v,g,e){"use strict";var t=e(79989),r=e(97795),o=e(53234);t({target:"Set",proto:!0,real:!0,forced:!o("isDisjointFrom")},{isDisjointFrom:r})},18955:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(2939),a=e(26951);t({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(c){return r(a,this,o(c))}})},69878:function(v,g,e){"use strict";var t=e(79989),r=e(26951),o=e(53234);t({target:"Set",proto:!0,real:!0,forced:!o("isSubsetOf")},{isSubsetOf:r})},65115:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(2939),a=e(3894);t({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(c){return r(a,this,o(c))}})},52915:function(v,g,e){"use strict";var t=e(79989),r=e(3894),o=e(53234);t({target:"Set",proto:!0,real:!0,forced:!o("isSupersetOf")},{isSupersetOf:r})},19490:function(v,g,e){"use strict";var t=e(79989),r=e(68844),o=e(10029),a=e(48774),s=e(34327),c=r([].join),u=r([].push);t({target:"Set",proto:!0,real:!0,forced:!0},{join:function(f){var p=o(this),y=f===void 0?",":s(f),m=[];return a(p,function(d){u(m,d)}),c(m,y)}})},95752:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(10029),a=e(61034),s=e(48774),c=a.Set,u=a.add;t({target:"Set",proto:!0,real:!0,forced:!0},{map:function(f){var p=o(this),y=r(f,arguments.length>1?arguments[1]:void 0),m=new c;return s(p,function(d){u(m,y(d,d,p))}),m}})},32789:function(v,g,e){"use strict";var t=e(79989),r=e(1114);t({target:"Set",stat:!0,forced:!0},{of:r})},27913:function(v,g,e){"use strict";var t=e(79989),r=e(10509),o=e(10029),a=e(48774),s=TypeError;t({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(u){var l=o(this),f=arguments.length<2,p=f?void 0:arguments[1];if(r(u),a(l,function(y){f?(f=!1,p=y):p=u(p,y,y,l)}),f)throw new s("Reduce of empty set with no initial value");return p}})},6831:function(v,g,e){"use strict";var t=e(79989),r=e(54071),o=e(10029),a=e(48774);t({target:"Set",proto:!0,real:!0,forced:!0},{some:function(c){var u=o(this),l=r(c,arguments.length>1?arguments[1]:void 0);return a(u,function(f){if(l(f,f,u))return!0},!0)===!0}})},90243:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(2939),a=e(62289);t({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(c){return r(a,this,o(c))}})},97895:function(v,g,e){"use strict";var t=e(79989),r=e(62289),o=e(53234);t({target:"Set",proto:!0,real:!0,forced:!o("symmetricDifference")},{symmetricDifference:r})},98030:function(v,g,e){"use strict";var t=e(79989),r=e(22615),o=e(2939),a=e(75674);t({target:"Set",proto:!0,real:!0,forced:!0},{union:function(c){return r(a,this,o(c))}})},22275:function(v,g,e){"use strict";var t=e(79989),r=e(75674),o=e(53234);t({target:"Set",proto:!0,real:!0,forced:!o("union")},{union:r})},86220:function(v,g,e){"use strict";var t=e(79989),r=e(10730).charAt,o=e(74684),a=e(68700),s=e(34327);t({target:"String",proto:!0,forced:!0},{at:function(u){var l=s(o(this)),f=l.length,p=a(u),y=p>=0?p:f+p;return y<0||y>=f?void 0:r(l,y)}})},95853:function(v,g,e){"use strict";var t=e(79989),r=e(30974),o=e(27807),a=e(74684),s=e(34327),c=e(618),u=e(10730),l=u.codeAt,f=u.charAt,p="String Iterator",y=c.set,m=c.getterFor(p),d=r(function(C){y(this,{type:p,string:C,index:0})},"String",function(){var C=m(this),x=C.string,S=C.index,w;return S>=x.length?o(void 0,!0):(w=f(x,S),C.index+=w.length,o({codePoint:l(w,0),position:S},!1))});t({target:"String",proto:!0,forced:!0},{codePoints:function(){return new d(s(a(this)))}})},21917:function(v,g,e){"use strict";var t=e(79989),r=e(8195);t({target:"String",stat:!0,forced:!0},{cooked:r})},66084:function(v,g,e){"use strict";var t=e(71594),r=e(79989),o=e(98702),a=e(68844),s=e(61735),c=e(85027),u=e(90690),l=e(69985),f=e(6310),p=e(72560).f,y=e(9015),m=e(16803),d=e(8195),b=e(98985),C=e(86350),x=new m.WeakMap,S=m.get,w=m.has,O=m.set,j=Array,E=TypeError,$=Object.freeze||Object,N=Object.isFrozen,oe=Math.min,Z=a("".charAt),Y=a("".slice),ee=a("".split),te=a(/./.exec),B=/([\n\u2028\u2029]|\r\n?)/g,ne=RegExp("^["+C+"]*"),Q=RegExp("[^"+C+"]"),q="Invalid tag",L="Invalid opening line",F="Invalid closing line",T=function(G){var ue=G.raw;if(t&&!N(ue))throw new E("Raw template should be frozen");if(w(x,ue))return S(x,ue);var he=I(ue),Ce=z(he);return p(Ce,"raw",{value:$(he)}),$(Ce),O(x,ue,Ce),Ce},I=function(G){var ue=u(G),he=f(ue),Ce=j(he),xe=j(he),$e=0,Ke,Je,qe,st;if(!he)throw new E(q);for(;$e0)throw new E(L);Ke[1]=""}if(me){if(Ke.length===1||te(Q,Ke[Ke.length-1]))throw new E(F);Ke[Ke.length-2]="",Ke[Ke.length-1]=""}for(var U=2;U1?arguments[1]:void 0);return o(this,l)},!0)},59359:function(v,g,e){"use strict";var t=e(54872),r=e(2960).filterReject,o=e(20716),a=t.aTypedArray,s=t.exportTypedArrayMethod;s("filterReject",function(u){var l=r(a(this),u,arguments.length>1?arguments[1]:void 0);return o(this,l)},!0)},76677:function(v,g,e){"use strict";var t=e(76058),r=e(52655),o=e(2231),a=e(54872),s=e(59976),c=a.aTypedArrayConstructor,u=a.exportTypedArrayStaticMethod;u("fromAsync",function(f){var p=this,y=arguments.length,m=y>1?arguments[1]:void 0,d=y>2?arguments[2]:void 0;return new(t("Promise"))(function(b){r(p),b(o(f,m,d))}).then(function(b){return s(c(p),b)})},!0)},30548:function(v,g,e){"use strict";var t=e(54872),r=e(64976),o=e(47338),a=t.aTypedArray,s=t.exportTypedArrayMethod;s("groupBy",function(u){var l=arguments.length>1?arguments[1]:void 0;return r(a(this),u,l,o)},!0)},915:function(v,g,e){"use strict";var t=e(54872),r=e(6310),o=e(9401),a=e(27578),s=e(71530),c=e(68700),u=e(3689),l=t.aTypedArray,f=t.getTypedArrayConstructor,p=t.exportTypedArrayMethod,y=Math.max,m=Math.min,d=!u(function(){var b=new Int8Array([1]),C=b.toSpliced(1,0,{valueOf:function(){return b[0]=2,3}});return C[0]!==2||C[1]!==3});p("toSpliced",function(C,x){var S=l(this),w=f(S),O=r(S),j=a(C,O),E=arguments.length,$=0,N,oe,Z,Y,ee,te,B;if(E===0)N=oe=0;else if(E===1)N=0,oe=O-j;else if(oe=m(y(c(x),0),O-j),N=E-2,N){Y=new w(N),Z=o(Y);for(var ne=2;ne1?a(arguments[1]):void 0,N=f($)==="base64"?p:y,oe=$?!!$.strict:!1,Z=oe?E:C(E,w,"");if(Z.length%4===0)x(Z,-2)==="=="?Z=x(Z,0,-2):x(Z,-1)==="="&&(Z=x(Z,0,-1));else if(oe)throw new d("Input is not correctly padded");var Y=Z.length%4;switch(Y){case 1:throw new d("Bad input length");case 2:Z+="AA";break;case 3:Z+="A"}for(var ee=[],te=0,B=Z.length,ne=function(L){var F=b(Z,te+L);if(!c(N,F))throw new d('Bad char in input: "'+F+'"');return N[F]<<18-6*L};te>16&255,Q>>8&255,Q&255)}var q=ee.length;if(Y===2){if(oe&&ee[q-2]!==0)throw new d(O);q-=2}else if(Y===3){if(oe&&ee[q-1]!==0)throw new d(O);q--}return u(m,ee,q)}})},91117:function(v,g,e){"use strict";var t=e(79989),r=e(19037),o=e(68844),a=e(51082),s=r.Uint8Array,c=r.SyntaxError,u=r.parseInt,l=/[^\da-f]/i,f=o(l.exec),p=o("".slice);s&&t({target:"Uint8Array",stat:!0,forced:!0},{fromHex:function(m){a(m);var d=m.length;if(d%2)throw new c("String should have an even number of characters");if(f(l,m))throw new c("String should only contain hex characters");for(var b=new s(d/2),C=0;C>6*E&63)};S+21&&!p(arguments[1])?b(arguments[1]):void 0,ie=A?A.transfer:void 0,Ve,Ze;ie!==void 0&&(Ve=new T,Ze=Be(ie,Ve));var De=de(Ee,Ve);return Ze&&it(Ze),De}})},98858:function(v,g,e){"use strict";var t=e(11880),r=e(68844),o=e(34327),a=e(21500),s=URLSearchParams,c=s.prototype,u=r(c.append),l=r(c.delete),f=r(c.forEach),p=r([].push),y=new s("a=1&a=2&b=3");y.delete("a",1),y.delete("b",void 0),y+""!="a=2"&&t(c,"delete",function(m){var d=arguments.length,b=d<2?void 0:arguments[1];if(d&&b===void 0)return l(this,m);var C=[];f(this,function(N,oe){p(C,{key:oe,value:N})}),a(d,1);for(var x=o(m),S=o(b),w=0,O=0,j=!1,E=C.length,$;wr.length)&&(o=r.length);for(var a=0,s=new Array(o);a=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(m){throw m},f:u}}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 l=!0,f=!1,p;return{s:function(){s=s.call(o)},n:function(){var m=s.next();return l=m.done,m},e:function(m){f=!0,p=m},f:function(){try{!l&&s.return!=null&&s.return()}finally{if(f)throw p}}}}},29388:function(v,g,e){"use strict";e.d(g,{Z:function(){return a}});var t=e(61120),r=e(78814),o=e(82963);function a(s){var c=(0,r.Z)();return function(){var l=(0,t.Z)(s),f;if(c){var p=(0,t.Z)(this).constructor;f=Reflect.construct(l,arguments,p)}else f=l.apply(this,arguments);return(0,o.Z)(this,f)}}},4942:function(v,g,e){"use strict";e.d(g,{Z:function(){return r}});var t=e(83997);function r(o,a,s){return a=(0,t.Z)(a),a in o?Object.defineProperty(o,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):o[a]=s,o}},87462:function(v,g,e){"use strict";e.d(g,{Z:function(){return t}});function t(){return t=Object.assign?Object.assign.bind():function(r){for(var o=1;o=0)continue;s[c]=o[c]}return s}function r(o,a){if(o==null)return{};var s=t(o,a),c,u;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);for(u=0;u=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}},82963:function(v,g,e){"use strict";e.d(g,{Z:function(){return o}});var t=e(71002),r=e(97326);function o(a,s){if(s&&((0,t.Z)(s)==="object"||typeof s=="function"))return s;if(s!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(a)}},74165:function(v,g,e){"use strict";e.d(g,{Z:function(){return r}});var t=e(71002);function r(){"use strict";r=function(){return a};var o,a={},s=Object.prototype,c=s.hasOwnProperty,u=Object.defineProperty||function(T,I,R){T[I]=R.value},l=typeof Symbol=="function"?Symbol:{},f=l.iterator||"@@iterator",p=l.asyncIterator||"@@asyncIterator",y=l.toStringTag||"@@toStringTag";function m(T,I,R){return Object.defineProperty(T,I,{value:R,enumerable:!0,configurable:!0,writable:!0}),T[I]}try{m({},"")}catch(T){m=function(R,z,ae){return R[z]=ae}}function d(T,I,R,z){var ae=I&&I.prototype instanceof j?I:j,X=Object.create(ae.prototype),G=new L(z||[]);return u(X,"_invoke",{value:B(T,R,G)}),X}function b(T,I,R){try{return{type:"normal",arg:T.call(I,R)}}catch(z){return{type:"throw",arg:z}}}a.wrap=d;var C="suspendedStart",x="suspendedYield",S="executing",w="completed",O={};function j(){}function E(){}function $(){}var N={};m(N,f,function(){return this});var oe=Object.getPrototypeOf,Z=oe&&oe(oe(F([])));Z&&Z!==s&&c.call(Z,f)&&(N=Z);var Y=$.prototype=j.prototype=Object.create(N);function ee(T){["next","throw","return"].forEach(function(I){m(T,I,function(R){return this._invoke(I,R)})})}function te(T,I){function R(ae,X,G,ue){var he=b(T[ae],T,X);if(he.type!=="throw"){var Ce=he.arg,xe=Ce.value;return xe&&(0,t.Z)(xe)=="object"&&c.call(xe,"__await")?I.resolve(xe.__await).then(function($e){R("next",$e,G,ue)},function($e){R("throw",$e,G,ue)}):I.resolve(xe).then(function($e){Ce.value=$e,G(Ce)},function($e){return R("throw",$e,G,ue)})}ue(he.arg)}var z;u(this,"_invoke",{value:function(X,G){function ue(){return new I(function(he,Ce){R(X,G,he,Ce)})}return z=z?z.then(ue,ue):ue()}})}function B(T,I,R){var z=C;return function(ae,X){if(z===S)throw Error("Generator is already running");if(z===w){if(ae==="throw")throw X;return{value:o,done:!0}}for(R.method=ae,R.arg=X;;){var G=R.delegate;if(G){var ue=ne(G,R);if(ue){if(ue===O)continue;return ue}}if(R.method==="next")R.sent=R._sent=R.arg;else if(R.method==="throw"){if(z===C)throw z=w,R.arg;R.dispatchException(R.arg)}else R.method==="return"&&R.abrupt("return",R.arg);z=S;var he=b(T,I,R);if(he.type==="normal"){if(z=R.done?w:x,he.arg===O)continue;return{value:he.arg,done:R.done}}he.type==="throw"&&(z=w,R.method="throw",R.arg=he.arg)}}}function ne(T,I){var R=I.method,z=T.iterator[R];if(z===o)return I.delegate=null,R==="throw"&&T.iterator.return&&(I.method="return",I.arg=o,ne(T,I),I.method==="throw")||R!=="return"&&(I.method="throw",I.arg=new TypeError("The iterator does not provide a '"+R+"' method")),O;var ae=b(z,T.iterator,I.arg);if(ae.type==="throw")return I.method="throw",I.arg=ae.arg,I.delegate=null,O;var X=ae.arg;return X?X.done?(I[T.resultName]=X.value,I.next=T.nextLoc,I.method!=="return"&&(I.method="next",I.arg=o),I.delegate=null,O):X:(I.method="throw",I.arg=new TypeError("iterator result is not an object"),I.delegate=null,O)}function Q(T){var I={tryLoc:T[0]};1 in T&&(I.catchLoc=T[1]),2 in T&&(I.finallyLoc=T[2],I.afterLoc=T[3]),this.tryEntries.push(I)}function q(T){var I=T.completion||{};I.type="normal",delete I.arg,T.completion=I}function L(T){this.tryEntries=[{tryLoc:"root"}],T.forEach(Q,this),this.reset(!0)}function F(T){if(T||T===""){var I=T[f];if(I)return I.call(T);if(typeof T.next=="function")return T;if(!isNaN(T.length)){var R=-1,z=function ae(){for(;++R=0;--ae){var X=this.tryEntries[ae],G=X.completion;if(X.tryLoc==="root")return z("end");if(X.tryLoc<=this.prev){var ue=c.call(X,"catchLoc"),he=c.call(X,"finallyLoc");if(ue&&he){if(this.prev=0;--z){var ae=this.tryEntries[z];if(ae.tryLoc<=this.prev&&c.call(ae,"finallyLoc")&&this.prev=0;--R){var z=this.tryEntries[R];if(z.finallyLoc===I)return this.complete(z.completion,z.afterLoc),q(z),O}},catch:function(I){for(var R=this.tryEntries.length-1;R>=0;--R){var z=this.tryEntries[R];if(z.tryLoc===I){var ae=z.completion;if(ae.type==="throw"){var X=ae.arg;q(z)}return X}}throw Error("illegal catch attempt")},delegateYield:function(I,R,z){return this.delegate={iterator:F(I),resultName:R,nextLoc:z},this.method==="next"&&(this.arg=o),O}},a}},89611:function(v,g,e){"use strict";e.d(g,{Z:function(){return t}});function t(r,o){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,c){return s.__proto__=c,s},t(r,o)}},97685:function(v,g,e){"use strict";e.d(g,{Z:function(){return s}});var t=e(83878);function r(c,u){var l=c==null?null:typeof Symbol!="undefined"&&c[Symbol.iterator]||c["@@iterator"];if(l!=null){var f,p,y,m,d=[],b=!0,C=!1;try{if(y=(l=l.call(c)).next,u===0){if(Object(l)!==l)return;b=!1}else for(;!(b=(f=y.call(l)).done)&&(d.push(f.value),d.length!==u);b=!0);}catch(x){C=!0,p=x}finally{try{if(!b&&l.return!=null&&(m=l.return(),Object(m)!==m))return}finally{if(C)throw p}}return d}}var o=e(40181),a=e(25267);function s(c,u){return(0,t.Z)(c)||r(c,u)||(0,o.Z)(c,u)||(0,a.Z)()}},84506:function(v,g,e){"use strict";e.d(g,{Z:function(){return s}});var t=e(83878),r=e(59199),o=e(40181),a=e(25267);function s(c){return(0,t.Z)(c)||(0,r.Z)(c)||(0,o.Z)(c)||(0,a.Z)()}},74902:function(v,g,e){"use strict";e.d(g,{Z:function(){return c}});var t=e(30907);function r(u){if(Array.isArray(u))return(0,t.Z)(u)}var o=e(59199),a=e(40181);function s(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(u){return r(u)||(0,o.Z)(u)||(0,a.Z)(u)||s()}},83997:function(v,g,e){"use strict";e.d(g,{Z:function(){return o}});var t=e(71002);function r(a,s){if((0,t.Z)(a)!="object"||!a)return a;var c=a[Symbol.toPrimitive];if(c!==void 0){var u=c.call(a,s||"default");if((0,t.Z)(u)!="object")return u;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(a)}function o(a){var s=r(a,"string");return(0,t.Z)(s)=="symbol"?s:s+""}},71002:function(v,g,e){"use strict";e.d(g,{Z:function(){return t}});function t(r){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t(r)}},40181:function(v,g,e){"use strict";e.d(g,{Z:function(){return r}});var t=e(30907);function r(o,a){if(o){if(typeof o=="string")return(0,t.Z)(o,a);var s=Object.prototype.toString.call(o).slice(8,-1);if(s==="Object"&&o.constructor&&(s=o.constructor.name),s==="Map"||s==="Set")return Array.from(o);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return(0,t.Z)(o,a)}}},58096:function(v,g,e){"use strict";e.d(g,{Z:function(){return t}});function t(){return t=Object.assign?Object.assign.bind():function(r){for(var o=1;o=0)&&(s[u]=o[u]);return s}function r(o,a){if(o==null)return{};var s=t(o,a),c,u;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);for(u=0;u=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}},81758:function(v,g,e){"use strict";e.d(g,{J$:function(){return Ve},ZP:function(){return Ze},kY:function(){return _}});var t=e(67294),r=e(61688);const o=()=>{},a=o(),s=Object,c=De=>De===a,u=De=>typeof De=="function",l=(De,Me)=>Gl(Gl({},De),Me),f=De=>u(De.then),p=new WeakMap;let y=0;const m=De=>{const Me=typeof De,Te=De&&De.constructor,Le=Te==Date;let We,et;if(s(De)===De&&!Le&&Te!=RegExp){if(We=p.get(De),We)return We;if(We=++y+"~",p.set(De,We),Te==Array){for(We="@",et=0;etS&&typeof window.requestAnimationFrame!=x,j=(De,Me)=>{const Te=d.get(De);return[()=>!c(Me)&&De.get(Me)||b,Le=>{if(!c(Me)){const We=De.get(Me);Me in C||(C[Me]=We),Te[5](Me,l(We,Le),We||b)}},Te[6],()=>!c(Me)&&Me in C?C[Me]:!c(Me)&&De.get(Me)||b]};let E=!0;const $=()=>E,[N,oe]=S&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],Z=()=>{const De=w&&document.visibilityState;return c(De)||De!=="hidden"},Y=De=>(w&&document.addEventListener("visibilitychange",De),N("focus",De),()=>{w&&document.removeEventListener("visibilitychange",De),oe("focus",De)}),ee=De=>{const Me=()=>{E=!0,De()},Te=()=>{E=!1};return N("online",Me),N("offline",Te),()=>{oe("online",Me),oe("offline",Te)}},te={isOnline:$,isVisible:Z},B={initFocus:Y,initReconnect:ee},ne=!t.useId,Q=!S||"Deno"in window,q=De=>O()?window.requestAnimationFrame(De):setTimeout(De,1),L=Q?t.useEffect:t.useLayoutEffect,F=typeof navigator!="undefined"&&navigator.connection,T=!Q&&F&&(["slow-2g","2g"].includes(F.effectiveType)||F.saveData),I=De=>{if(u(De))try{De=De()}catch(Te){De=""}const Me=De;return De=typeof De=="string"?De:(Array.isArray(De)?De.length:De)?m(De):"",[De,Me]};let R=0;const z=()=>++R,ae=0,X=1,G=2;var he={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:ae,MUTATE_EVENT:G,RECONNECT_EVENT:X};function Ce(...De){return Lu(this,null,function*(){const[Me,Te,Le,We]=De,et=l({populateCache:!0,throwOnError:!0},typeof We=="boolean"?{revalidate:We}:We||{});let ct=et.populateCache;const $t=et.rollbackOnError;let pt=et.optimisticData;const an=Gt=>typeof $t=="function"?$t(Gt):$t!==!1,Ut=et.throwOnError;if(u(Te)){const Gt=Te,St=[],Ye=Me.keys();for(const Ct of Ye)!/^\$(inf|sub)\$/.test(Ct)&&Gt(Me.get(Ct)._k)&&St.push(Ct);return Promise.all(St.map(Ot))}return Ot(Te);function Ot(Gt){return Lu(this,null,function*(){const[St]=I(Gt);if(!St)return;const[Ye,Ct]=j(Me,St),[Wt,mt,ln,jt]=d.get(Me),Yt=()=>{const qn=Wt[St];return(u(et.revalidate)?et.revalidate(Ye().data,Gt):et.revalidate!==!1)&&(delete ln[St],delete jt[St],qn&&qn[0])?qn[0](G).then(()=>Ye().data):Ye().data};if(De.length<3)return Yt();let Jt=Le,pn;const un=z();mt[St]=[un,0];const rn=!c(pt),Pn=Ye(),$n=Pn.data,Jn=Pn._c,Mr=c(Jn)?$n:Jn;if(rn&&(pt=u(pt)?pt(Mr,$n):pt,Ct({data:pt,_c:Mr})),u(Jt))try{Jt=Jt(Mr)}catch(qn){pn=qn}if(Jt&&f(Jt))if(Jt=yield Jt.catch(qn=>{pn=qn}),un!==mt[St][0]){if(pn)throw pn;return Jt}else pn&&rn&&an(pn)&&(ct=!0,Ct({data:Mr,_c:a}));if(ct&&!pn)if(u(ct)){const qn=ct(Jt,Mr);Ct({data:qn,error:a,_c:a})}else Ct({data:Jt,error:a,_c:a});if(mt[St][1]=z(),Promise.resolve(Yt()).then(()=>{Ct({_c:a})}),pn){if(Ut)throw pn;return}return Jt})}})}const xe=(De,Me)=>{for(const Te in De)De[Te][0]&&De[Te][0](Me)},$e=(De,Me)=>{if(!d.has(De)){const Te=l(B,Me),Le={},We=Ce.bind(a,De);let et=o;const ct={},$t=(Ut,Ot)=>{const Gt=ct[Ut]||[];return ct[Ut]=Gt,Gt.push(Ot),()=>Gt.splice(Gt.indexOf(Ot),1)},pt=(Ut,Ot,Gt)=>{De.set(Ut,Ot);const St=ct[Ut];if(St)for(const Ye of St)Ye(Ot,Gt)},an=()=>{if(!d.has(De)&&(d.set(De,[Le,{},{},{},We,pt,$t]),!Q)){const Ut=Te.initFocus(setTimeout.bind(a,xe.bind(a,Le,ae))),Ot=Te.initReconnect(setTimeout.bind(a,xe.bind(a,Le,X)));et=()=>{Ut&&Ut(),Ot&&Ot(),d.delete(De)}}};return an(),[De,We,an,et]}return[De,d.get(De)[4]]},Ke=(De,Me,Te,Le,We)=>{const et=Te.errorRetryCount,ct=We.retryCount,$t=~~((Math.random()+.5)*(1<<(ct<8?ct:8)))*Te.errorRetryInterval;!c(et)&&ct>et||setTimeout(Le,$t,We)},Je=(De,Me)=>m(De)==m(Me),[qe,st]=$e(new Map),lt=l({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:Ke,onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:T?5e3:3e3,compare:Je,isPaused:()=>!1,cache:qe,mutate:st,fallback:{}},te),me=(De,Me)=>{const Te=l(De,Me);if(Me){const{use:Le,fallback:We}=De,{use:et,fallback:ct}=Me;Le&&et&&(Te.use=Le.concat(et)),We&&ct&&(Te.fallback=l(We,ct))}return Te},U=(0,t.createContext)({}),M=De=>{const{value:Me}=De,Te=(0,t.useContext)(U),Le=u(Me),We=(0,t.useMemo)(()=>Le?Me(Te):Me,[Le,Te,Me]),et=(0,t.useMemo)(()=>Le?We:me(Te,We),[Le,Te,We]),ct=We&&We.provider,$t=(0,t.useRef)(a);ct&&!$t.current&&($t.current=$e(ct(et.cache||qe),We));const pt=$t.current;return pt&&(et.cache=pt[0],et.mutate=pt[1]),L(()=>{if(pt)return pt[2]&&pt[2](),pt[3]},[]),(0,t.createElement)(U.Provider,l(De,{value:et}))},D="$inf$",K=S&&window.__SWR_DEVTOOLS_USE__,k=K?window.__SWR_DEVTOOLS_USE__:[],J=()=>{K&&(window.__SWR_DEVTOOLS_REACT__=t)},le=De=>u(De[1])?[De[0],De[1],De[2]||{}]:[De[0],null,(De[1]===null?De[2]:De[1])||{}],_=()=>l(lt,(0,t.useContext)(U)),V=(De,Me)=>{const[Te,Le]=I(De),[,,,We]=d.get(qe);if(We[Te])return We[Te];const et=Me(Le);return We[Te]=et,et},se=De=>(Me,Te,Le)=>De(Me,Te&&((...et)=>{const[ct]=I(Me),[,,,$t]=d.get(qe);if(ct.startsWith(D))return Te(...et);const pt=$t[ct];return c(pt)?Te(...et):(delete $t[ct],pt)}),Le),fe=k.concat(se),de=De=>function(...Te){const Le=_(),[We,et,ct]=le(Te),$t=me(Le,ct);let pt=De;const{use:an}=$t,Ut=(an||[]).concat(fe);for(let Ot=Ut.length;Ot--;)pt=Ut[Ot](pt);return pt(We,et||$t.fetcher||null,$t)},Be=(De,Me,Te)=>{const Le=Me[De]||(Me[De]=[]);return Le.push(Te),()=>{const We=Le.indexOf(Te);We>=0&&(Le[We]=Le[Le.length-1],Le.pop())}},it=(De,Me)=>(...Te)=>{const[Le,We,et]=le(Te),ct=(et.use||[]).concat(Me);return De(Le,We,Xc(Gl({},et),{use:ct}))};J();const Oe=De=>serialize(De)[0],Ee=t.use||(De=>{if(De.status==="pending")throw De;if(De.status==="fulfilled")return De.value;throw De.status==="rejected"?De.reason:(De.status="pending",De.then(Me=>{De.status="fulfilled",De.value=Me},Me=>{De.status="rejected",De.reason=Me}),De)}),A={dedupe:!0},ie=(De,Me,Te)=>{const{cache:Le,compare:We,suspense:et,fallbackData:ct,revalidateOnMount:$t,revalidateIfStale:pt,refreshInterval:an,refreshWhenHidden:Ut,refreshWhenOffline:Ot,keepPreviousData:Gt}=Te,[St,Ye,Ct,Wt]=d.get(Le),[mt,ln]=I(De),jt=(0,t.useRef)(!1),Yt=(0,t.useRef)(!1),Jt=(0,t.useRef)(mt),pn=(0,t.useRef)(Me),un=(0,t.useRef)(Te),rn=()=>un.current,Pn=()=>rn().isVisible()&&rn().isOnline(),[$n,Jn,Mr,qn]=j(Le,mt),pr=(0,t.useRef)({}).current,Pe=c(ct)?Te.fallback[mt]:ct,ke=(rt,bt)=>{for(const Bt in pr){const ht=Bt;if(ht==="data"){if(!We(rt[ht],bt[ht])&&(!c(rt[ht])||!We(ir,bt[ht])))return!1}else if(bt[ht]!==rt[ht])return!1}return!0},en=(0,t.useMemo)(()=>{const rt=(()=>!mt||!Me?!1:c($t)?rn().isPaused()||et?!1:c(pt)?!0:pt:$t)(),bt=An=>{const Gn=l(An);return delete Gn._k,rt?Gl({isValidating:!0,isLoading:!0},Gn):Gn},Bt=$n(),ht=qn(),Zt=bt(Bt),nn=Bt===ht?Zt:bt(ht);let qt=Zt;return[()=>{const An=bt($n());return ke(An,qt)?(qt.data=An.data,qt.isLoading=An.isLoading,qt.isValidating=An.isValidating,qt.error=An.error,qt):(qt=An,An)},()=>nn]},[Le,mt]),gt=(0,r.useSyncExternalStore)((0,t.useCallback)(rt=>Mr(mt,(bt,Bt)=>{ke(Bt,bt)||rt()}),[Le,mt]),en[0],en[1]),on=!jt.current,On=St[mt]&&St[mt].length>0,Bn=gt.data,rr=c(Bn)?Pe:Bn,or=gt.error,mr=(0,t.useRef)(rr),ir=Gt?c(Bn)?mr.current:Bn:rr,yr=(()=>On&&!c(or)?!1:on&&!c($t)?$t:rn().isPaused()?!1:et?c(rr)?!1:pt:c(rr)||pt)(),er=!!(mt&&Me&&on&&yr),cn=c(gt.isValidating)?er:gt.isValidating,tr=c(gt.isLoading)?er:gt.isLoading,hn=(0,t.useCallback)(rt=>Lu(this,null,function*(){const bt=pn.current;if(!mt||!bt||Yt.current||rn().isPaused())return!1;let Bt,ht,Zt=!0;const nn=rt||{},qt=!Ct[mt]||!nn.dedupe,An=()=>ne?!Yt.current&&mt===Jt.current&&jt.current:mt===Jt.current,Gn={isValidating:!1,isLoading:!1},kn=()=>{Jn(Gn)},jn=()=>{const Nn=Ct[mt];Nn&&Nn[1]===ht&&delete Ct[mt]},dn={isValidating:!0};c($n().data)&&(dn.isLoading=!0);try{if(qt&&(Jn(dn),Te.loadingTimeout&&c($n().data)&&setTimeout(()=>{Zt&&An()&&rn().onLoadingSlow(mt,Te)},Te.loadingTimeout),Ct[mt]=[bt(ln),z()]),[Bt,ht]=Ct[mt],Bt=yield Bt,qt&&setTimeout(jn,Te.dedupingInterval),!Ct[mt]||Ct[mt][1]!==ht)return qt&&An()&&rn().onDiscarded(mt),!1;Gn.error=a;const Nn=Ye[mt];if(!c(Nn)&&(ht<=Nn[0]||ht<=Nn[1]||Nn[1]===0))return kn(),qt&&An()&&rn().onDiscarded(mt),!1;const Tn=$n().data;Gn.data=We(Tn,Bt)?Tn:Bt,qt&&An()&&rn().onSuccess(Bt,mt,Te)}catch(Nn){jn();const Tn=rn(),{shouldRetryOnError:Dr}=Tn;Tn.isPaused()||(Gn.error=Nn,qt&&An()&&(Tn.onError(Nn,mt,Tn),(Dr===!0||u(Dr)&&Dr(Nn))&&(!rn().revalidateOnFocus||!rn().revalidateOnReconnect||Pn())&&Tn.onErrorRetry(Nn,mt,Tn,je=>{const Re=St[mt];Re&&Re[0]&&Re[0](he.ERROR_REVALIDATE_EVENT,je)},{retryCount:(nn.retryCount||0)+1,dedupe:!0})))}return Zt=!1,kn(),!0}),[mt,Le]),_t=(0,t.useCallback)((...rt)=>Ce(Le,Jt.current,...rt),[]);if(L(()=>{pn.current=Me,un.current=Te,c(Bn)||(mr.current=Bn)}),L(()=>{if(!mt)return;const rt=hn.bind(a,A);let bt=0;const ht=Be(mt,St,(Zt,nn={})=>{if(Zt==he.FOCUS_EVENT){const qt=Date.now();rn().revalidateOnFocus&&qt>bt&&Pn()&&(bt=qt+rn().focusThrottleInterval,rt())}else if(Zt==he.RECONNECT_EVENT)rn().revalidateOnReconnect&&Pn()&&rt();else{if(Zt==he.MUTATE_EVENT)return hn();if(Zt==he.ERROR_REVALIDATE_EVENT)return hn(nn)}});return Yt.current=!1,Jt.current=mt,jt.current=!0,Jn({_k:ln}),yr&&(c(rr)||Q?rt():q(rt)),()=>{Yt.current=!0,ht()}},[mt]),L(()=>{let rt;function bt(){const ht=u(an)?an($n().data):an;ht&&rt!==-1&&(rt=setTimeout(Bt,ht))}function Bt(){!$n().error&&(Ut||rn().isVisible())&&(Ot||rn().isOnline())?hn(A).then(bt):bt()}return bt(),()=>{rt&&(clearTimeout(rt),rt=-1)}},[an,Ut,Ot,mt]),(0,t.useDebugValue)(ir),et&&c(rr)&&mt){if(!ne&&Q)throw new Error("Fallback data is required when using suspense in SSR.");pn.current=Me,un.current=Te,Yt.current=!1;const rt=Wt[mt];if(!c(rt)){const bt=_t(rt);Ee(bt)}if(c(or)){const bt=hn(A);c(ir)||(bt.status="fulfilled",bt.value=!0),Ee(bt)}else throw or}return{mutate:_t,get data(){return pr.data=!0,ir},get error(){return pr.error=!0,or},get isValidating(){return pr.isValidating=!0,cn},get isLoading(){return pr.isLoading=!0,tr}}},Ve=s.defineProperty(M,"defaultValue",{value:lt}),Ze=de(ie)}},Uo={};function be(v){var g=Uo[v];if(g!==void 0)return g.exports;var e=Uo[v]={id:v,loaded:!1,exports:{}};return di[v].call(e.exports,e,e.exports,be),e.loaded=!0,e.exports}be.m=di,function(){be.n=function(v){var g=v&&v.__esModule?function(){return v.default}:function(){return v};return be.d(g,{a:g}),g}}(),function(){var v=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},g;be.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var r=Object.create(null);be.r(r);var o={};g=g||[null,v({}),v([]),v(v)];for(var a=t&2&&e;typeof a=="object"&&!~g.indexOf(a);a=v(a))Object.getOwnPropertyNames(a).forEach(function(s){o[s]=function(){return e[s]}});return o.default=function(){return e},be.d(r,o),r}}(),function(){be.d=function(v,g){for(var e in g)be.o(g,e)&&!be.o(v,e)&&Object.defineProperty(v,e,{enumerable:!0,get:g[e]})}}(),function(){be.f={},be.e=function(v){return Promise.all(Object.keys(be.f).reduce(function(g,e){return be.f[e](v,g),g},[]))}}(),function(){be.u=function(v){return""+({185:"p__Welcome",190:"p__MoneyManagement",301:"t__plugin-layout__Layout",366:"p__User__Login__index",371:"p__DeviceOwnerApp",455:"p__SuperAdmin",542:"p__AdvRecordListV2",557:"p__Bind",571:"p__404",731:"p__App__AppManagement",816:"p__AdminManagement",857:"p__AdvRecordList",903:"p__UserManagement"}[v]||v)+"."+{51:"a2ea1b3b",134:"6fc81d91",169:"57647c7d",185:"61596037",190:"60ec3db9",247:"3fe8fb10",301:"4594a64b",366:"9d3ab92e",371:"ec53e5c4",390:"41467286",393:"38316f72",397:"fb5f72c1",455:"2c1167ac",531:"4c68f902",539:"49b7b156",542:"ced10464",557:"b6ee068f",559:"016bfdbb",571:"0c100574",635:"20e45f05",731:"133ceb4c",816:"5e2368b3",822:"4ba8fa04",841:"614ef4c0",857:"8e5ef22c",903:"c0a8d03f",905:"6e225d1b",930:"fca7adbf"}[v]+".async.js"}}(),function(){be.miniCssF=function(v){return"t__plugin-layout__Layout.6cae69f5.chunk.css"}}(),function(){be.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(v){if(typeof window=="object")return window}}()}(),function(){be.o=function(v,g){return Object.prototype.hasOwnProperty.call(v,g)}}(),function(){var v={},g="ant-design-pro:";be.l=function(e,t,r,o){if(v[e]){v[e].push(t);return}var a,s;if(r!==void 0)for(var c=document.getElementsByTagName("script"),u=0;u=0)&&(s[u]=o[u]);return s}function r(o,a){if(o==null)return{};var s=t(o,a),c,u;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);for(u=0;u=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(s[c]=o[c])}return s}},81758:function(v,g,e){"use strict";e.d(g,{J$:function(){return Ve},ZP:function(){return Ze},kY:function(){return _}});var t=e(67294),r=e(61688);const o=()=>{},a=o(),s=Object,c=De=>De===a,u=De=>typeof De=="function",l=(De,Me)=>Gl(Gl({},De),Me),f=De=>u(De.then),p=new WeakMap;let y=0;const m=De=>{const Me=typeof De,Te=De&&De.constructor,Le=Te==Date;let We,et;if(s(De)===De&&!Le&&Te!=RegExp){if(We=p.get(De),We)return We;if(We=++y+"~",p.set(De,We),Te==Array){for(We="@",et=0;etS&&typeof window.requestAnimationFrame!=x,j=(De,Me)=>{const Te=d.get(De);return[()=>!c(Me)&&De.get(Me)||b,Le=>{if(!c(Me)){const We=De.get(Me);Me in C||(C[Me]=We),Te[5](Me,l(We,Le),We||b)}},Te[6],()=>!c(Me)&&Me in C?C[Me]:!c(Me)&&De.get(Me)||b]};let E=!0;const $=()=>E,[N,oe]=S&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],Z=()=>{const De=w&&document.visibilityState;return c(De)||De!=="hidden"},Y=De=>(w&&document.addEventListener("visibilitychange",De),N("focus",De),()=>{w&&document.removeEventListener("visibilitychange",De),oe("focus",De)}),ee=De=>{const Me=()=>{E=!0,De()},Te=()=>{E=!1};return N("online",Me),N("offline",Te),()=>{oe("online",Me),oe("offline",Te)}},te={isOnline:$,isVisible:Z},B={initFocus:Y,initReconnect:ee},ne=!t.useId,Q=!S||"Deno"in window,q=De=>O()?window.requestAnimationFrame(De):setTimeout(De,1),L=Q?t.useEffect:t.useLayoutEffect,F=typeof navigator!="undefined"&&navigator.connection,T=!Q&&F&&(["slow-2g","2g"].includes(F.effectiveType)||F.saveData),I=De=>{if(u(De))try{De=De()}catch(Te){De=""}const Me=De;return De=typeof De=="string"?De:(Array.isArray(De)?De.length:De)?m(De):"",[De,Me]};let R=0;const z=()=>++R,ae=0,X=1,G=2;var he={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:ae,MUTATE_EVENT:G,RECONNECT_EVENT:X};function Ce(...De){return Lu(this,null,function*(){const[Me,Te,Le,We]=De,et=l({populateCache:!0,throwOnError:!0},typeof We=="boolean"?{revalidate:We}:We||{});let ct=et.populateCache;const $t=et.rollbackOnError;let pt=et.optimisticData;const an=Gt=>typeof $t=="function"?$t(Gt):$t!==!1,Ut=et.throwOnError;if(u(Te)){const Gt=Te,St=[],Ye=Me.keys();for(const Ct of Ye)!/^\$(inf|sub)\$/.test(Ct)&&Gt(Me.get(Ct)._k)&&St.push(Ct);return Promise.all(St.map(Ot))}return Ot(Te);function Ot(Gt){return Lu(this,null,function*(){const[St]=I(Gt);if(!St)return;const[Ye,Ct]=j(Me,St),[Wt,mt,ln,jt]=d.get(Me),Yt=()=>{const qn=Wt[St];return(u(et.revalidate)?et.revalidate(Ye().data,Gt):et.revalidate!==!1)&&(delete ln[St],delete jt[St],qn&&qn[0])?qn[0](G).then(()=>Ye().data):Ye().data};if(De.length<3)return Yt();let Jt=Le,pn;const un=z();mt[St]=[un,0];const rn=!c(pt),Pn=Ye(),$n=Pn.data,Jn=Pn._c,Mr=c(Jn)?$n:Jn;if(rn&&(pt=u(pt)?pt(Mr,$n):pt,Ct({data:pt,_c:Mr})),u(Jt))try{Jt=Jt(Mr)}catch(qn){pn=qn}if(Jt&&f(Jt))if(Jt=yield Jt.catch(qn=>{pn=qn}),un!==mt[St][0]){if(pn)throw pn;return Jt}else pn&&rn&&an(pn)&&(ct=!0,Ct({data:Mr,_c:a}));if(ct&&!pn)if(u(ct)){const qn=ct(Jt,Mr);Ct({data:qn,error:a,_c:a})}else Ct({data:Jt,error:a,_c:a});if(mt[St][1]=z(),Promise.resolve(Yt()).then(()=>{Ct({_c:a})}),pn){if(Ut)throw pn;return}return Jt})}})}const xe=(De,Me)=>{for(const Te in De)De[Te][0]&&De[Te][0](Me)},$e=(De,Me)=>{if(!d.has(De)){const Te=l(B,Me),Le={},We=Ce.bind(a,De);let et=o;const ct={},$t=(Ut,Ot)=>{const Gt=ct[Ut]||[];return ct[Ut]=Gt,Gt.push(Ot),()=>Gt.splice(Gt.indexOf(Ot),1)},pt=(Ut,Ot,Gt)=>{De.set(Ut,Ot);const St=ct[Ut];if(St)for(const Ye of St)Ye(Ot,Gt)},an=()=>{if(!d.has(De)&&(d.set(De,[Le,{},{},{},We,pt,$t]),!Q)){const Ut=Te.initFocus(setTimeout.bind(a,xe.bind(a,Le,ae))),Ot=Te.initReconnect(setTimeout.bind(a,xe.bind(a,Le,X)));et=()=>{Ut&&Ut(),Ot&&Ot(),d.delete(De)}}};return an(),[De,We,an,et]}return[De,d.get(De)[4]]},Ke=(De,Me,Te,Le,We)=>{const et=Te.errorRetryCount,ct=We.retryCount,$t=~~((Math.random()+.5)*(1<<(ct<8?ct:8)))*Te.errorRetryInterval;!c(et)&&ct>et||setTimeout(Le,$t,We)},Je=(De,Me)=>m(De)==m(Me),[qe,st]=$e(new Map),lt=l({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:Ke,onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:T?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:T?5e3:3e3,compare:Je,isPaused:()=>!1,cache:qe,mutate:st,fallback:{}},te),me=(De,Me)=>{const Te=l(De,Me);if(Me){const{use:Le,fallback:We}=De,{use:et,fallback:ct}=Me;Le&&et&&(Te.use=Le.concat(et)),We&&ct&&(Te.fallback=l(We,ct))}return Te},U=(0,t.createContext)({}),M=De=>{const{value:Me}=De,Te=(0,t.useContext)(U),Le=u(Me),We=(0,t.useMemo)(()=>Le?Me(Te):Me,[Le,Te,Me]),et=(0,t.useMemo)(()=>Le?We:me(Te,We),[Le,Te,We]),ct=We&&We.provider,$t=(0,t.useRef)(a);ct&&!$t.current&&($t.current=$e(ct(et.cache||qe),We));const pt=$t.current;return pt&&(et.cache=pt[0],et.mutate=pt[1]),L(()=>{if(pt)return pt[2]&&pt[2](),pt[3]},[]),(0,t.createElement)(U.Provider,l(De,{value:et}))},D="$inf$",K=S&&window.__SWR_DEVTOOLS_USE__,k=K?window.__SWR_DEVTOOLS_USE__:[],J=()=>{K&&(window.__SWR_DEVTOOLS_REACT__=t)},le=De=>u(De[1])?[De[0],De[1],De[2]||{}]:[De[0],null,(De[1]===null?De[2]:De[1])||{}],_=()=>l(lt,(0,t.useContext)(U)),V=(De,Me)=>{const[Te,Le]=I(De),[,,,We]=d.get(qe);if(We[Te])return We[Te];const et=Me(Le);return We[Te]=et,et},se=De=>(Me,Te,Le)=>De(Me,Te&&((...et)=>{const[ct]=I(Me),[,,,$t]=d.get(qe);if(ct.startsWith(D))return Te(...et);const pt=$t[ct];return c(pt)?Te(...et):(delete $t[ct],pt)}),Le),fe=k.concat(se),de=De=>function(...Te){const Le=_(),[We,et,ct]=le(Te),$t=me(Le,ct);let pt=De;const{use:an}=$t,Ut=(an||[]).concat(fe);for(let Ot=Ut.length;Ot--;)pt=Ut[Ot](pt);return pt(We,et||$t.fetcher||null,$t)},Be=(De,Me,Te)=>{const Le=Me[De]||(Me[De]=[]);return Le.push(Te),()=>{const We=Le.indexOf(Te);We>=0&&(Le[We]=Le[Le.length-1],Le.pop())}},it=(De,Me)=>(...Te)=>{const[Le,We,et]=le(Te),ct=(et.use||[]).concat(Me);return De(Le,We,Xc(Gl({},et),{use:ct}))};J();const Oe=De=>serialize(De)[0],Ee=t.use||(De=>{if(De.status==="pending")throw De;if(De.status==="fulfilled")return De.value;throw De.status==="rejected"?De.reason:(De.status="pending",De.then(Me=>{De.status="fulfilled",De.value=Me},Me=>{De.status="rejected",De.reason=Me}),De)}),A={dedupe:!0},ie=(De,Me,Te)=>{const{cache:Le,compare:We,suspense:et,fallbackData:ct,revalidateOnMount:$t,revalidateIfStale:pt,refreshInterval:an,refreshWhenHidden:Ut,refreshWhenOffline:Ot,keepPreviousData:Gt}=Te,[St,Ye,Ct,Wt]=d.get(Le),[mt,ln]=I(De),jt=(0,t.useRef)(!1),Yt=(0,t.useRef)(!1),Jt=(0,t.useRef)(mt),pn=(0,t.useRef)(Me),un=(0,t.useRef)(Te),rn=()=>un.current,Pn=()=>rn().isVisible()&&rn().isOnline(),[$n,Jn,Mr,qn]=j(Le,mt),pr=(0,t.useRef)({}).current,Pe=c(ct)?Te.fallback[mt]:ct,ke=(rt,bt)=>{for(const Bt in pr){const ht=Bt;if(ht==="data"){if(!We(rt[ht],bt[ht])&&(!c(rt[ht])||!We(ir,bt[ht])))return!1}else if(bt[ht]!==rt[ht])return!1}return!0},en=(0,t.useMemo)(()=>{const rt=(()=>!mt||!Me?!1:c($t)?rn().isPaused()||et?!1:c(pt)?!0:pt:$t)(),bt=An=>{const Gn=l(An);return delete Gn._k,rt?Gl({isValidating:!0,isLoading:!0},Gn):Gn},Bt=$n(),ht=qn(),Zt=bt(Bt),nn=Bt===ht?Zt:bt(ht);let qt=Zt;return[()=>{const An=bt($n());return ke(An,qt)?(qt.data=An.data,qt.isLoading=An.isLoading,qt.isValidating=An.isValidating,qt.error=An.error,qt):(qt=An,An)},()=>nn]},[Le,mt]),gt=(0,r.useSyncExternalStore)((0,t.useCallback)(rt=>Mr(mt,(bt,Bt)=>{ke(Bt,bt)||rt()}),[Le,mt]),en[0],en[1]),on=!jt.current,On=St[mt]&&St[mt].length>0,Bn=gt.data,rr=c(Bn)?Pe:Bn,or=gt.error,mr=(0,t.useRef)(rr),ir=Gt?c(Bn)?mr.current:Bn:rr,yr=(()=>On&&!c(or)?!1:on&&!c($t)?$t:rn().isPaused()?!1:et?c(rr)?!1:pt:c(rr)||pt)(),er=!!(mt&&Me&&on&&yr),cn=c(gt.isValidating)?er:gt.isValidating,tr=c(gt.isLoading)?er:gt.isLoading,hn=(0,t.useCallback)(rt=>Lu(this,null,function*(){const bt=pn.current;if(!mt||!bt||Yt.current||rn().isPaused())return!1;let Bt,ht,Zt=!0;const nn=rt||{},qt=!Ct[mt]||!nn.dedupe,An=()=>ne?!Yt.current&&mt===Jt.current&&jt.current:mt===Jt.current,Gn={isValidating:!1,isLoading:!1},kn=()=>{Jn(Gn)},jn=()=>{const Nn=Ct[mt];Nn&&Nn[1]===ht&&delete Ct[mt]},dn={isValidating:!0};c($n().data)&&(dn.isLoading=!0);try{if(qt&&(Jn(dn),Te.loadingTimeout&&c($n().data)&&setTimeout(()=>{Zt&&An()&&rn().onLoadingSlow(mt,Te)},Te.loadingTimeout),Ct[mt]=[bt(ln),z()]),[Bt,ht]=Ct[mt],Bt=yield Bt,qt&&setTimeout(jn,Te.dedupingInterval),!Ct[mt]||Ct[mt][1]!==ht)return qt&&An()&&rn().onDiscarded(mt),!1;Gn.error=a;const Nn=Ye[mt];if(!c(Nn)&&(ht<=Nn[0]||ht<=Nn[1]||Nn[1]===0))return kn(),qt&&An()&&rn().onDiscarded(mt),!1;const Tn=$n().data;Gn.data=We(Tn,Bt)?Tn:Bt,qt&&An()&&rn().onSuccess(Bt,mt,Te)}catch(Nn){jn();const Tn=rn(),{shouldRetryOnError:Dr}=Tn;Tn.isPaused()||(Gn.error=Nn,qt&&An()&&(Tn.onError(Nn,mt,Tn),(Dr===!0||u(Dr)&&Dr(Nn))&&(!rn().revalidateOnFocus||!rn().revalidateOnReconnect||Pn())&&Tn.onErrorRetry(Nn,mt,Tn,je=>{const Re=St[mt];Re&&Re[0]&&Re[0](he.ERROR_REVALIDATE_EVENT,je)},{retryCount:(nn.retryCount||0)+1,dedupe:!0})))}return Zt=!1,kn(),!0}),[mt,Le]),_t=(0,t.useCallback)((...rt)=>Ce(Le,Jt.current,...rt),[]);if(L(()=>{pn.current=Me,un.current=Te,c(Bn)||(mr.current=Bn)}),L(()=>{if(!mt)return;const rt=hn.bind(a,A);let bt=0;const ht=Be(mt,St,(Zt,nn={})=>{if(Zt==he.FOCUS_EVENT){const qt=Date.now();rn().revalidateOnFocus&&qt>bt&&Pn()&&(bt=qt+rn().focusThrottleInterval,rt())}else if(Zt==he.RECONNECT_EVENT)rn().revalidateOnReconnect&&Pn()&&rt();else{if(Zt==he.MUTATE_EVENT)return hn();if(Zt==he.ERROR_REVALIDATE_EVENT)return hn(nn)}});return Yt.current=!1,Jt.current=mt,jt.current=!0,Jn({_k:ln}),yr&&(c(rr)||Q?rt():q(rt)),()=>{Yt.current=!0,ht()}},[mt]),L(()=>{let rt;function bt(){const ht=u(an)?an($n().data):an;ht&&rt!==-1&&(rt=setTimeout(Bt,ht))}function Bt(){!$n().error&&(Ut||rn().isVisible())&&(Ot||rn().isOnline())?hn(A).then(bt):bt()}return bt(),()=>{rt&&(clearTimeout(rt),rt=-1)}},[an,Ut,Ot,mt]),(0,t.useDebugValue)(ir),et&&c(rr)&&mt){if(!ne&&Q)throw new Error("Fallback data is required when using suspense in SSR.");pn.current=Me,un.current=Te,Yt.current=!1;const rt=Wt[mt];if(!c(rt)){const bt=_t(rt);Ee(bt)}if(c(or)){const bt=hn(A);c(ir)||(bt.status="fulfilled",bt.value=!0),Ee(bt)}else throw or}return{mutate:_t,get data(){return pr.data=!0,ir},get error(){return pr.error=!0,or},get isValidating(){return pr.isValidating=!0,cn},get isLoading(){return pr.isLoading=!0,tr}}},Ve=s.defineProperty(M,"defaultValue",{value:lt}),Ze=de(ie)}},Uo={};function be(v){var g=Uo[v];if(g!==void 0)return g.exports;var e=Uo[v]={id:v,loaded:!1,exports:{}};return di[v].call(e.exports,e,e.exports,be),e.loaded=!0,e.exports}be.m=di,function(){be.n=function(v){var g=v&&v.__esModule?function(){return v.default}:function(){return v};return be.d(g,{a:g}),g}}(),function(){var v=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},g;be.t=function(e,t){if(t&1&&(e=this(e)),t&8||typeof e=="object"&&e&&(t&4&&e.__esModule||t&16&&typeof e.then=="function"))return e;var r=Object.create(null);be.r(r);var o={};g=g||[null,v({}),v([]),v(v)];for(var a=t&2&&e;typeof a=="object"&&!~g.indexOf(a);a=v(a))Object.getOwnPropertyNames(a).forEach(function(s){o[s]=function(){return e[s]}});return o.default=function(){return e},be.d(r,o),r}}(),function(){be.d=function(v,g){for(var e in g)be.o(g,e)&&!be.o(v,e)&&Object.defineProperty(v,e,{enumerable:!0,get:g[e]})}}(),function(){be.f={},be.e=function(v){return Promise.all(Object.keys(be.f).reduce(function(g,e){return be.f[e](v,g),g},[]))}}(),function(){be.u=function(v){return""+({185:"p__Welcome",190:"p__MoneyManagement",301:"t__plugin-layout__Layout",366:"p__User__Login__index",371:"p__DeviceOwnerApp",455:"p__SuperAdmin",542:"p__AdvRecordListV2",557:"p__Bind",571:"p__404",731:"p__App__AppManagement",816:"p__AdminManagement",857:"p__AdvRecordList",903:"p__UserManagement"}[v]||v)+"."+{51:"a2ea1b3b",134:"6fc81d91",169:"57647c7d",185:"61596037",190:"60ec3db9",247:"3fe8fb10",301:"4594a64b",366:"9d3ab92e",371:"ec53e5c4",390:"41467286",393:"38316f72",397:"fb5f72c1",455:"2c1167ac",531:"4c68f902",539:"49b7b156",542:"ced10464",557:"b6ee068f",559:"016bfdbb",571:"0c100574",635:"20e45f05",731:"56c946c4",816:"5e2368b3",822:"4ba8fa04",841:"614ef4c0",857:"8e5ef22c",903:"c0a8d03f",905:"6e225d1b",930:"fca7adbf"}[v]+".async.js"}}(),function(){be.miniCssF=function(v){return"t__plugin-layout__Layout.6cae69f5.chunk.css"}}(),function(){be.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(v){if(typeof window=="object")return window}}()}(),function(){be.o=function(v,g){return Object.prototype.hasOwnProperty.call(v,g)}}(),function(){var v={},g="ant-design-pro:";be.l=function(e,t,r,o){if(v[e]){v[e].push(t);return}var a,s;if(r!==void 0)for(var c=document.getElementsByTagName("script"),u=0;u_n.length)&&(Yn=_n.length);for(var ye=0,Fe=new Array(Yn);ye0&&arguments[0]!==void 0?arguments[0]:"";return _n.endsWith("/")?_n:"".concat(_n,"/")}var La=be(49647),Va=be(58096),Wa=da.createContext(void 0);function ro(){return da.useContext(Wa)}var bo=["redirect"];function Ao(_n){var Yn=_n.routesById,ye=_n.parentId,Fe=_n.routeComponents;return Object.keys(Yn).filter(function(W){return Yn[W].parentId===ye}).map(function(W){var ut=Ni(zr({route:Yn[W],routeComponent:Fe[W],loadingComponent:_n.loadingComponent,reactRouter5Compat:_n.reactRouter5Compat},_n.reactRouter5Compat&&{hasChildren:Object.keys(Yn).filter(function(En){return Yn[En].parentId===W}).length>0})),Pt=Ao({routesById:Yn,routeComponents:Fe,parentId:ut.id,loadingComponent:_n.loadingComponent,reactRouter5Compat:_n.reactRouter5Compat});return Pt.length>0&&(ut.children=Pt,ut.routes=Pt),ut})}function mo(_n){var Yn=(0,Ba.UO)(),ye=(0,Ba.Gn)(_n.to,Yn),Fe=(0,so.T$)(),W=(0,Ba.TH)();if(Fe!=null&&Fe.keepQuery){var ut=W.search+W.hash;ye+=ut}var Pt=zr(zr({},_n),{},{to:ye});return da.createElement(Ba.Fg,(0,Va.Z)({replace:!0},Pt))}function Ni(_n){var Yn=_n.route,ye=Yn.redirect,Fe=(0,La.Z)(Yn,bo),W=_n.reactRouter5Compat?Ei:Qi;return zr({element:ye?da.createElement(mo,{to:ye}):da.createElement(Wa.Provider,{value:{route:_n.route}},da.createElement(W,{loader:da.memo(_n.routeComponent),loadingComponent:_n.loadingComponent||Ci,hasChildren:_n.hasChildren}))},Fe)}function Ci(){return da.createElement("div",null)}function Ei(_n){var Yn=ro(),ye=Yn.route,Fe=(0,so.Ov)(),W=Fe.history,ut=Fe.clientRoutes,Pt=(0,Ba.UO)(),En={params:Pt,isExact:!0,path:ye.path,url:W.location.pathname},Qn=_n.loader;return da.createElement(da.Suspense,{fallback:da.createElement(_n.loadingComponent,null)},da.createElement(Qn,{location:W.location,match:En,history:W,params:Pt,route:ye,routes:ut},_n.hasChildren&&da.createElement(Ba.j3,null)))}function Qi(_n){var Yn=_n.loader;return da.createElement(da.Suspense,{fallback:da.createElement(_n.loadingComponent,null)},da.createElement(Yn,null))}var Ji=null;function Hs(){return Ji}function Ps(_n){var Yn=_n.history,ye=da.useState({action:Yn.action,location:Yn.location}),Fe=Yo(ye,2),W=Fe[0],ut=Fe[1];return(0,da.useLayoutEffect)(function(){return Yn.listen(ut)},[Yn]),(0,da.useLayoutEffect)(function(){function Pt(En){_n.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:_n.routes,clientRoutes:_n.clientRoutes,location:En.location,action:En.action,basename:_n.basename,isFirst:!!En.isFirst}})}return Pt({location:W.location,action:W.action,isFirst:!0}),Yn.listen(Pt)},[Yn,_n.routes,_n.clientRoutes]),da.createElement(Ba.F0,{navigator:Yn,location:W.location,basename:_n.basename},_n.children)}function Os(){var _n=(0,so.Ov)(),Yn=_n.clientRoutes;return(0,Ba.V$)(Yn)}var Ie=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],Se=function(Yn,ye){var Fe=Yn.basename||"/",W=Ao({routesById:Yn.routes,routeComponents:Yn.routeComponents,loadingComponent:Yn.loadingComponent,reactRouter5Compat:Yn.reactRouter5Compat});Yn.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:W}});for(var ut=da.createElement(Ps,{basename:Fe,pluginManager:Yn.pluginManager,routes:Yn.routes,clientRoutes:W,history:Yn.history},ye),Pt=0,En=Ie;Pt0&&arguments[0]!==void 0?arguments[0]:"";return _n.endsWith("/")?_n:"".concat(_n,"/")}var La=be(49647),Va=be(58096),Wa=da.createContext(void 0);function ro(){return da.useContext(Wa)}var bo=["redirect"];function Ao(_n){var Yn=_n.routesById,ye=_n.parentId,Fe=_n.routeComponents;return Object.keys(Yn).filter(function(W){return Yn[W].parentId===ye}).map(function(W){var ut=Ni(zr({route:Yn[W],routeComponent:Fe[W],loadingComponent:_n.loadingComponent,reactRouter5Compat:_n.reactRouter5Compat},_n.reactRouter5Compat&&{hasChildren:Object.keys(Yn).filter(function(En){return Yn[En].parentId===W}).length>0})),Pt=Ao({routesById:Yn,routeComponents:Fe,parentId:ut.id,loadingComponent:_n.loadingComponent,reactRouter5Compat:_n.reactRouter5Compat});return Pt.length>0&&(ut.children=Pt,ut.routes=Pt),ut})}function mo(_n){var Yn=(0,Ba.UO)(),ye=(0,Ba.Gn)(_n.to,Yn),Fe=(0,so.T$)(),W=(0,Ba.TH)();if(Fe!=null&&Fe.keepQuery){var ut=W.search+W.hash;ye+=ut}var Pt=zr(zr({},_n),{},{to:ye});return da.createElement(Ba.Fg,(0,Va.Z)({replace:!0},Pt))}function Ni(_n){var Yn=_n.route,ye=Yn.redirect,Fe=(0,La.Z)(Yn,bo),W=_n.reactRouter5Compat?Ei:Qi;return zr({element:ye?da.createElement(mo,{to:ye}):da.createElement(Wa.Provider,{value:{route:_n.route}},da.createElement(W,{loader:da.memo(_n.routeComponent),loadingComponent:_n.loadingComponent||Ci,hasChildren:_n.hasChildren}))},Fe)}function Ci(){return da.createElement("div",null)}function Ei(_n){var Yn=ro(),ye=Yn.route,Fe=(0,so.Ov)(),W=Fe.history,ut=Fe.clientRoutes,Pt=(0,Ba.UO)(),En={params:Pt,isExact:!0,path:ye.path,url:W.location.pathname},Qn=_n.loader;return da.createElement(da.Suspense,{fallback:da.createElement(_n.loadingComponent,null)},da.createElement(Qn,{location:W.location,match:En,history:W,params:Pt,route:ye,routes:ut},_n.hasChildren&&da.createElement(Ba.j3,null)))}function Qi(_n){var Yn=_n.loader;return da.createElement(da.Suspense,{fallback:da.createElement(_n.loadingComponent,null)},da.createElement(Yn,null))}var Ji=null;function Hs(){return Ji}function Ps(_n){var Yn=_n.history,ye=da.useState({action:Yn.action,location:Yn.location}),Fe=Yo(ye,2),W=Fe[0],ut=Fe[1];return(0,da.useLayoutEffect)(function(){return Yn.listen(ut)},[Yn]),(0,da.useLayoutEffect)(function(){function Pt(En){_n.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:_n.routes,clientRoutes:_n.clientRoutes,location:En.location,action:En.action,basename:_n.basename,isFirst:!!En.isFirst}})}return Pt({location:W.location,action:W.action,isFirst:!0}),Yn.listen(Pt)},[Yn,_n.routes,_n.clientRoutes]),da.createElement(Ba.F0,{navigator:Yn,location:W.location,basename:_n.basename},_n.children)}function Os(){var _n=(0,so.Ov)(),Yn=_n.clientRoutes;return(0,Ba.V$)(Yn)}var Ie=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],Se=function(Yn,ye){var Fe=Yn.basename||"/",W=Ao({routesById:Yn.routes,routeComponents:Yn.routeComponents,loadingComponent:Yn.loadingComponent,reactRouter5Compat:Yn.reactRouter5Compat});Yn.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:W}});for(var ut=da.createElement(Ps,{basename:Fe,pluginManager:Yn.pluginManager,routes:Yn.routes,clientRoutes:W,history:Yn.history},ye),Pt=0,En=Ie;Pt { const [appArr, setAppArr] = useState([]); const [filteredAppArr, setFilteredAppArr] = useState([]); + const { initialState } = useModel('@@initialState'); + const currentUser = initialState?.currentUser; + const admin = currentUser && currentUser.role && currentUser.role < 3; + const [appCode, setAppCode] = useState(); const handleSearch = (value: string) => { @@ -56,7 +61,7 @@ const NormalAppManagement = () => { width: 80, hideInSearch: true, renderText: (r: API.MatrixAppBo) => { - if (r.enableCash) { + if (r.enableCash && admin) { return (