You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
138 lines
501 KiB
138 lines
501 KiB
!(function(){var fi=Object.defineProperty,mi=Object.defineProperties;var vi=Object.getOwnPropertyDescriptors;var Qa=Object.getOwnPropertySymbols;var ql=Object.prototype.hasOwnProperty,ei=Object.prototype.propertyIsEnumerable;var Ql=(ht,le,e)=>le in ht?fi(ht,le,{enumerable:!0,configurable:!0,writable:!0,value:e}):ht[le]=e,Ro=(ht,le)=>{for(var e in le||(le={}))ql.call(le,e)&&Ql(ht,e,le[e]);if(Qa)for(var e of Qa(le))ei.call(le,e)&&Ql(ht,e,le[e]);return ht},Dl=(ht,le)=>mi(ht,vi(le));var ti=(ht,le)=>{var e={};for(var t in ht)ql.call(ht,t)&&le.indexOf(t)<0&&(e[t]=ht[t]);if(ht!=null&&Qa)for(var t of Qa(ht))le.indexOf(t)<0&&ei.call(ht,t)&&(e[t]=ht[t]);return e};(self.webpackChunk=self.webpackChunk||[]).push([[4105],{89489:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},59477:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},26227:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},49198:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},41464:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},52671:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},8657:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},56082:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},33853:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},11724:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},15075:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},43531:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},38819:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},96935:function(ht,le,e){"use strict";e.d(le,{Z:function(){return B}});var t=e(3113),l=e(59301),P=Object.defineProperty,L=Object.defineProperties,T=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,W=(I,E,ne)=>E in I?P(I,E,{enumerable:!0,configurable:!0,writable:!0,value:ne}):I[E]=ne,w=(I,E)=>{for(var ne in E||(E={}))n.call(E,ne)&&W(I,ne,E[ne]);if(p)for(var ne of p(E))F.call(E,ne)&&W(I,ne,E[ne]);return I},D=(I,E)=>L(I,T(E)),g=(I,E)=>{var ne={};for(var k in I)n.call(I,k)&&E.indexOf(k)<0&&(ne[k]=I[k]);if(I!=null&&p)for(var k of p(I))E.indexOf(k)<0&&F.call(I,k)&&(ne[k]=I[k]);return ne},M=(I,E,ne)=>new Promise((k,de)=>{var ie=ae=>{try{A(ne.next(ae))}catch(C){de(C)}},H=ae=>{try{A(ne.throw(ae))}catch(C){de(C)}},A=ae=>ae.done?k(ae.value):Promise.resolve(ae.value).then(ie,H);A((ne=ne.apply(I,E)).next())});const B=I=>{var E=I,{children:ne}=E,k=g(E,["children"]);const[de,ie]=(0,l.useState)(!1);return l.createElement(t.ZP,D(w({},k),{loading:de,onClick:H=>M(void 0,null,function*(){try{ie(!0),yield k.onClick(H),ie(!1)}catch(A){console.error(A),ie(!1)}})}),ne)}},96059:function(ht,le,e){"use strict";e.d(le,{Z:function(){return D}});var t=e(59301),l=e(65582),P=e(8591),L=e(38147),T={flex_box_center:"flex_box_center___kVqBh",flex_space_between:"flex_space_between___FMnNq",flex_box_vertical_center:"flex_box_vertical_center___meESe",flex_box_center_end:"flex_box_center_end___KFpOb",flex_box_column:"flex_box_column___GHIK9",video:"video___nn_cD"},p=e(54624),n=e(59301),F=(g,M,B)=>new Promise((I,E)=>{var ne=ie=>{try{de(B.next(ie))}catch(H){E(H)}},k=ie=>{try{de(B.throw(ie))}catch(H){E(H)}},de=ie=>ie.done?I(ie.value):Promise.resolve(ie.value).then(ne,k);de((B=B.apply(g,M)).next())});const W=function(M,B){const I=M.split(","),E=I[0].match(/:(.*?);/)[1],ne=atob(I[1]);let k=ne.length;const de=new Uint8Array(k);for(;k--;)de[k]=ne.charCodeAt(k);return new Blob([de],{type:E})};var D=(0,t.forwardRef)(({time:g,number:M,supportCamera:B,take_photo:I,isExercise:E=!0,update:ne,onUserMediaLoaded:k},de)=>{const ie=(0,t.useRef)(),H=(0,t.useRef)(),A=(0,l.useParams)();let[ae,C]=(0,t.useState)([]),[S,J]=(0,t.useState)(0);const[te,z]=(0,t.useState)("");let[v,b]=(0,t.useState)();const[ce,q]=(0,t.useState)(0),x=(Te,Qe)=>F(void 0,null,function*(){return(0,L.ZP)("/api/attachments.json",{method:"POST",body:{file_type:"base64",original_filename:Te,file:Qe}})}),_=Te=>F(void 0,null,function*(){const Qe=new Date().valueOf();if(Te){const vt=yield x(`\u7167\u7247${Qe}`,Te);vt.status||(yield(0,p.Ju)({container_id:A.categoryId,container_type:"Exercise",attachment_id:vt==null?void 0:vt.id}))}});(0,t.useEffect)(()=>(Me(),()=>{rt(),V()}),[]),(0,t.useEffect)(()=>{S===2&&g&&M>0&&(ye(),q(1))},[g]),(0,t.useEffect)(()=>{if(ce!==0){if(ce===2)clearInterval(v);else{let Te=0,Qe=setInterval(()=>{ae.includes(Te)&&Ie(),Te++},1e3);b(Qe)}return()=>clearInterval(v)}},[ce]),(0,t.useImperativeHandle)(de,()=>({handlePhoto:Ie,handleTakePhoto:je}));const V=()=>{q(2)},ye=()=>{const Te=g/M,Qe=[];function vt(De,ft){return parseInt(Math.floor(Math.random()*(ft-De+1))+De)}new Array(M).fill(0).map((De,ft)=>{I?Qe.push(vt(Te*ft,Te*(ft+1))):ft==0?Qe.push(0):Qe.push(vt(Te*ft,Te*(ft+1)))}),ae=Qe,C([...Qe]),console.log(Qe)},Me=()=>{navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=function(Te){const Qe=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return Qe?new Promise(function(vt,De){Qe.call(navigator,Te,vt,De)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:640,height:480}}).then(function(Te){Je.current=Te,B&&B(2),J(2),"srcObject"in ie.current?ie.current.srcObject=Te:ie.current.src=window.URL.createObjectURL(Te),ie.current.onloadedmetadata=function(Qe){ie.current.play(),k&&k()},ie.current.addEventListener("ended",function(){console.log("\u64AD\u653E\u7ED3\u675F"),V(),E&&P.ZP.error({content:"\u60A8\u5DF2\u7ECF\u5173\u95ED\u4E86\u6444\u50CF\u5934\uFF0C\u8BF7\u572810\u79D2\u949F\u5185\u6062\u590D\u6444\u50CF\u5934\uFF0C\u5426\u5219\u5C06\u63A8\u51FA\u8003\u8BD5",duration:10,key:9998})},!1)}).catch(function(Te){J(1),B&&B(1),Te.message==="Permission denied"||Te.name==="NotAllowedError"?P.ZP.error("\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"):P.ZP.error("\u6444\u50CF\u5934\u83B7\u53D6\u5931\u8D25\uFF0C\u6216\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"),console.log("errname: "+Te.name),console.log("err: "+Te.message)})},Ie=()=>{try{H.current.width=ie.current.videoWidth,H.current.height=ie.current.videoHeight,H.current.getContext("2d").drawImage(ie.current,0,0,H.current.width,H.current.height),z(H.current.toDataURL("image/png")),_(H.current.toDataURL("image/png")),Ke(H.current.toDataURL("image/png"))}catch(Te){}},je=()=>{try{return H.current.width=ie.current.videoWidth,H.current.height=ie.current.videoHeight,H.current.getContext("2d").drawImage(ie.current,0,0,H.current.width,H.current.height),H.current.toDataURL("image/png")}catch(Te){}},Je=(0,t.useRef)(),rt=()=>{try{Je.current.getTracks().forEach(function(vt){vt.stop()}),ie.current.srcObject=null}catch(Te){}},Ke=Te=>F(void 0,null,function*(){const Qe=new FormData;Qe.append("file",W(Te,"1")),Qe.append("1","123");var vt=new window.XMLHttpRequest;vt.withCredentials=!0,vt.addEventListener("load",function(De){let ft=JSON.parse(De.target.responseText);(0,L.ZP)(`/api/exercises/${id}/upload_photo.json`,{method:"post",body:{attachment_id:ft.id}})},!1),vt.addEventListener("error",function(De){console.error(De)},!1),vt.open("POST",`${ENV.API_SERVER}/api/attachments.json`),vt.send(Qe)});return n.createElement(n.Fragment,null,S!==3&&n.createElement("aside",{className:T.video,id:"screenshot"},S===0&&n.createElement("span",null,"\u6B63\u5728\u5F00\u542F\u6444\u50CF\u5934..."),S===1&&n.createElement("span",null,"\u6444\u50CF\u5934\u5F00\u542F\u5931\u8D25"),S===2&&n.createElement("div",null,n.createElement("video",{width:"288",ref:ie,autoPlay:!0}),n.createElement("canvas",{style:{display:"none"},ref:H}))))})},90402:function(ht,le,e){"use strict";var t=e(65582),l=e(59301),P=e(8591),L=e(43418),T=e(3113),p=e(24334),n=e.n(p),F=e(38147),W=e(67172),w=e(88125),D=e(66649),g=e.n(D),M=e(77254),B=e(59301),I=Object.defineProperty,E=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,H=(J,te,z)=>te in J?I(J,te,{enumerable:!0,configurable:!0,writable:!0,value:z}):J[te]=z,A=(J,te)=>{for(var z in te||(te={}))de.call(te,z)&&H(J,z,te[z]);if(k)for(var z of k(te))ie.call(te,z)&&H(J,z,te[z]);return J},ae=(J,te)=>E(J,ne(te)),C=(J,te,z)=>new Promise((v,b)=>{var ce=_=>{try{x(z.next(_))}catch(V){b(V)}},q=_=>{try{x(z.throw(_))}catch(V){b(V)}},x=_=>_.done?v(_.value):Promise.resolve(_.value).then(ce,q);x((z=z.apply(J,te)).next())});const S=({ButtonProps:J,ButtonText:te,form:z,answerKey:v,hackidentifier:b="",items:ce={},setIsSubmitCode:q})=>{const[x,_]=(0,l.useState)(!1);let[V,ye]=(0,l.useState)("");const Me=(0,t.useParams)(),[Ie,je]=(0,l.useState)({}),Je=Me.type==="edit",rt=window.location.href.includes("problemset")?1:2;(0,l.useEffect)(()=>{(Je||b)&&ye(b||Me.id)},[Me]),(0,l.useEffect)(()=>{const De=M.Z.subscribe("BFill:Submit",()=>{vt()});return()=>{De()}},[V]),(0,l.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);function Ke(De,ft){return C(this,null,function*(){var St;let $e=z.getFieldValue("hack_codes"),ve=z.getFieldValue(v);if(!$e.code){P.ZP.info("\u7A0B\u5E8F\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF01");return}if(!$e.language){P.ZP.info("\u7F16\u7A0B\u8BED\u8A00\u4E0D\u80FD\u4E3A\u7A7A\uFF01");return}if(ve.length>0&&((St=ve.filter(Z=>!Z.answer_text))==null?void 0:St.length)>0){P.ZP.info("\u586B\u7A7A\u9879\u4E0D\u80FD\u4E3A\u7A7A\uFF01");return}let at=$e.code;return ve.length>0&&(ve==null||ve.map(Z=>{Z.multi_line?at=at.substring(0,at.indexOf("@\u2581\u2581@"))+Z.answer_text+at.substring(at.indexOf("@\u2581\u2581@")+4):at=at.substring(0,at.indexOf("@\u2581@"))+Z.answer_text+at.substring(at.indexOf("@\u2581@")+3)})),yield(0,W.n4)(ft,De||{code:p.Base64.encode(at),language:$e.language,answers:ve==null?void 0:ve.map(Z=>Z.answer_text)})})}function Te(De,ft){return C(this,null,function*(){let St=ce.userAnswer,$e=p.Base64.decode(ce.code);return St.length>0&&(St==null||St.map(at=>{at.multi_line?$e=$e.substring(0,$e.indexOf("@\u2581\u2581@"))+at.value+$e.substring($e.indexOf("@\u2581\u2581@")+4):$e=$e.substring(0,$e.indexOf("@\u2581@"))+at.value+$e.substring($e.indexOf("@\u2581@")+3)})),yield(0,W.n4)(ft,De||{code:p.Base64.encode($e),language:ce.language,answers:St==null?void 0:St.map(at=>at.value)})})}function Qe(){return new Date().getTime()}const vt=()=>C(void 0,null,function*(){if(_(!0),x)return;let De=yield(0,F.ZP)(`/api/problems/${V}/start.json`,{method:"get"});const ft=yield Te(null,De==null?void 0:De.identifier);if((ft==null?void 0:ft.status)===0){let $e=function(){return C(this,null,function*(){var ve;const{status:at,message:Ee,data:Z}=yield(0,W.rX)(De==null?void 0:De.identifier,"submit"),m=Qe()-St>10*1e3*((ve=ce==null?void 0:ce.userAnswer)==null?void 0:ve.length);if(at!==0&&!m&&setTimeout($e,1e3),m){L.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6",content:"\u8BF7\u68C0\u67E5\u7A0B\u5E8F\u4EE3\u7801\u662F\u5426\u5B58\u5728\u6B7B\u5FAA\u73AF"}),_(!1);return}at===0&&(_(!1),je(Z),Z.status===2&&(_(!1),L.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"})))})};const St=Qe();yield(0,W.bM)(De==null?void 0:De.identifier,{}),$e(),M.Z.publish("BFill:Submit:Change",{value:!1})}else _(!1);q&&q(!0)});return B.createElement("div",null,B.createElement(T.ZP,ae(A({loading:x},J),{onClick:()=>C(void 0,null,function*(){var De,ft,St,$e;if(te==="\u63D0\u4EA4\u4EE3\u7801"){vt();return}let ve=!0;if(yield z.validateFields().then(()=>{ve=!1},m=>{var a,R,fe;m.errorFields[0].name.includes("standard_answers")?P.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):P.ZP.error(m.errorFields[0].errors[0]),((a=m.errorFields)==null?void 0:a.length)===0&&(ve=!1),z.scrollToField((fe=(R=m==null?void 0:m.errorFields)==null?void 0:R[0])==null?void 0:fe.name,{behavior:"smooth",block:"center"}),ve=!0}),ve||(_(!0),x))return;let at="",Ee=z.getFieldsValue();V?at=yield(0,F.ZP)(`/api/problems/${V}.json`,{method:"put",body:ae(A({},Ee),{hack:ae(A({},Ee==null?void 0:Ee.hack),{sub_discipline_id:($e=(St=Ee==null?void 0:Ee.hack)==null?void 0:St.sub_discipline_id)==null?void 0:$e[1],difficult:Ee.difficulty,item_banks_group_id:Ee.item_banks_group_id}),hack_codes:ae(A({},Ee.hack_codes),{code:p.Base64.encode(Ee.hack_codes.code)}),update_hack_sets:[A({},Ee.hack_sets)],is_blank:!0})}):(at=yield(0,F.ZP)("/api/problems.json",{method:"post",body:ae(A({},Ee),{hack:ae(A({},Ee==null?void 0:Ee.hack),{sub_discipline_id:(ft=(De=Ee==null?void 0:Ee.hack)==null?void 0:De.sub_discipline_id)==null?void 0:ft[1],difficult:Ee.difficulty,item_banks_group_id:Ee.item_banks_group_id}),hack_codes:ae(A({},Ee.hack_codes),{code:p.Base64.encode(Ee.hack_codes.code)}),hack_sets:[A({},Ee.hack_sets)],is_blank:!0})}),V=at==null?void 0:at.identifier,sessionStorage.projectFill=V,ye(V));let Z=yield(0,F.ZP)(`/api/problems/${V}/start.json`,{method:"get"});const K=yield Ke(null,Z==null?void 0:Z.identifier);if((K==null?void 0:K.status)===0){let a=function(){return C(this,null,function*(){var R;const{status:fe,message:s,data:i}=yield(0,W.rX)(Z==null?void 0:Z.identifier,"submit"),$=Qe()-m>(Ee.hack.time_limit+3)*1e3*((R=Ee==null?void 0:Ee.standard_answers)==null?void 0:R.length);if(fe!==0&&!$&&setTimeout(a,1e3),$){L.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),_(!1);return}fe===0&&(_(!1),je(i),i.status===2&&(_(!1),L.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"})))})};const m=Qe();yield(0,W.bM)(Z==null?void 0:Z.identifier,{}),a()}else _(!1)})}),te),(Ie==null?void 0:Ie.id)&&Ie.status!==2&&B.createElement(L.default,{open:(Ie==null?void 0:Ie.id)&&Ie.status!==2,title:"\u8FD0\u884C\u7ED3\u679C",width:1100,footer:!1,onOk:()=>{je({})},onCancel:()=>{je({})}},B.createElement("div",{style:{maxHeight:600,overflow:"auto",marginBottom:15}},B.createElement("div",{style:{marginBottom:20,display:"flex",justifyContent:"space-between",fontSize:14}},B.createElement("div",null,B.createElement("span",{style:{color:"#666666"}},"\u72B6\u6001"),B.createElement("span",{style:{marginLeft:12,color:Ie.status!==0&&"#E30000"}},w.Im[Ie.status])),B.createElement("div",null,B.createElement("span",{style:{color:"#666666"}},"\u63D0\u4EA4\u65F6\u95F4"),B.createElement("span",{style:{marginLeft:12}},g()(Ie.created_at).format("YYYY-MM-DD HH:mm:ss"))),B.createElement("div",null,B.createElement("span",{style:{color:"#666666"}},"\u8BED\u8A00"),B.createElement("span",{style:{marginLeft:12}},Ie.language)),B.createElement("div",null,B.createElement("span",{style:{color:"#666666"}},"\u6267\u884C\u7528\u65F6"),B.createElement("span",{style:{marginLeft:12}},Ie.execute_time,"ms"))),B.createElement(w.Y4,A({},Ie)))))};le.Z=S},99573:function(ht,le,e){"use strict";e.r(le),e.d(le,{default:function(){return Yr}});var t=e(59301),l=e(65582),P=e(15845),L=e.n(P),T=e(31797),p=e(78241),n=e(43418),F=e(92832),W=e(8591),w=e(93948),D=e(95237),g=e(43604),M=e(5112),B=e(24905),I=e(6848),E=e(71418),ne=e(3113),k=e(15075),de=e(43531),ie=e(96059),H=e(35195),A=e(65862),ae=e(38147),C=e(59301),S=(U,me,Ye)=>new Promise((At,en)=>{var gn=Ue=>{try{Zt(Ye.next(Ue))}catch(yt){en(yt)}},Yt=Ue=>{try{Zt(Ye.throw(Ue))}catch(yt){en(yt)}},Zt=Ue=>Ue.done?At(Ue.value):Promise.resolve(Ue.value).then(gn,Yt);Zt((Ye=Ye.apply(U,me)).next())}),te=({id:U,startRecording:me,startScreenshot:Ye,onBack:At,onSuccuss:en,timeInSeconds:gn=[1,6,11,16,21,26,31,41,51,61,71,81,91,101,111,121,151,181,211,241,271,361,421,481,541,601,661]})=>{const Yt=(0,t.useRef)(null),Zt=(0,t.useRef)(null),Ue=(0,t.useRef)(null),yt=(0,t.useRef)(null),tn=(0,t.useRef)(!0),nn=(0,t.useRef)(""),[Sn,Cn]=(0,t.useState)(null);(0,t.useEffect)(()=>{me?Bn():st()},[me]),(0,t.useEffect)(()=>{Ye?Cn(0):(clearTimeout(yt.current),Cn(null),nn.current="")},[Ye]),(0,t.useEffect)(()=>(typeof Sn=="number"&&(gn!=null&&gn.includes(Sn)&&ir(),Sn<=720&&(yt.current=setTimeout(()=>{Cn(Sn+1)},1e3))),()=>{clearTimeout(yt.current)}),[Sn]);const Gn=(Mn="\u672A\u5171\u4EAB\u6574\u4E2A\u5C4F\u5E55\uFF0C\u7981\u6B62\u4F5C\u7B54\uFF01")=>S(void 0,null,function*(){W.ZP.warning(Mn),setTimeout(()=>{At()},1e3)}),Bn=()=>S(void 0,null,function*(){var Mn,Yn,$r,Fr,Kn,Pr;if(!(0,A.i7)()){Gn("\u8BF7\u4F7F\u7528\u8C37\u6B4C\u6D4F\u89C8\u5668\u7B54\u9898");return}if(Yt.current){W.ZP.warning("\u6B63\u5728\u5F55\u5236\u4E2D");return}tn.current=!0;try{let Jn;if((0,A.WX)())Jn=yield navigator.mediaDevices.getUserMedia({audio:{mandatory:{chromeMediaSource:"desktop"}},video:{mandatory:{chromeMediaSource:"desktop"}}});else if(Jn=yield navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"monitor"}}),(($r=(Yn=(Mn=Jn==null?void 0:Jn.getVideoTracks())==null?void 0:Mn[0])==null?void 0:Yn.getSettings())==null?void 0:$r.displaySurface)!=="monitor"){st(),Gn();return}Yt.current=Jn,"srcObject"in Zt.current?Zt.current.srcObject=Yt.current:Zt.current.src=URL.createObjectURL(Yt.current),yield new Promise(zr=>{Zt.current.addEventListener("loadedmetadata",()=>{zr()})}),(Pr=(Kn=(Fr=Yt.current)==null?void 0:Fr.getVideoTracks())==null?void 0:Kn[0])==null||Pr.addEventListener("ended",function(){tn.current&&Gn()}),Zt.current.play(),en()}catch(Jn){Gn("\u5C4F\u5E55\u5F55\u5236\u529F\u80FD\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u518D\u5171\u4EAB\u6574\u4E2A\u5C4F\u5E55\uFF0C\u5426\u5219\u65E0\u6CD5\u4F5C\u7B54")}}),st=()=>{var Mn;tn.current=!1;const Yn=(Mn=Yt.current)==null?void 0:Mn.getTracks();Yn==null||Yn.forEach($r=>{$r.stop()}),Yt.current=null},Ot=Mn=>{const Yn=Mn.split(",")[1],$r=Mn.split(",")[0].split(":")[1].split(";")[0],Fr=[...atob(Yn)],Kn=new Uint8Array(Fr.map(Pr=>Pr.charCodeAt(0)));return new Blob([Kn],{type:$r})},wn=()=>S(void 0,null,function*(){const Mn=yield(0,ae.ZP)(`/api/exercises/${U}/exercise_user_screens.json`,{method:"post"});Mn.status===0&&(nn.current=Mn.exercise_abnormity_id,Cn(0))}),ir=()=>S(void 0,null,function*(){const Mn=Ue.current.getContext("2d");Ue.current.width=Zt.current.videoWidth,Ue.current.height=Zt.current.videoHeight,Mn.drawImage(Zt.current,0,0,Ue.current.width,Ue.current.height);const Yn=Ue.current.toDataURL("image/jpeg"),$r=Ot(Yn),Fr=new File([$r],"canvas_image.jpg",{type:"image/jpeg"}),Kn=new FormData;Kn.append("file",Fr);const Pr=yield(0,ae.ZP)(`/api/exercises/${U}/exercise_user_screens/check.json`,{method:"get"});if((Pr==null?void 0:Pr.status)===0){const Jn=yield(0,ae.ZP)("/api/attachments.json",{method:"post",body:Kn},!0);if(Jn!=null&&Jn.id){const zr=yield(0,ae.ZP)(`/api/exercises/${U}/exercise_user_screens.json`,{method:"post",body:{attachment_id:Jn==null?void 0:Jn.id,exercise_abnormity_id:nn.current}});zr.status===0&&(nn.current=zr.exercise_abnormity_id)}}});return C.createElement(C.Fragment,null,C.createElement("video",{ref:Zt,muted:!0,className:"hide"}),C.createElement("canvas",{id:"canvas",ref:Ue,className:"hide"}))},z=e(66649),v=e.n(z),b={flex_box_center:"flex_box_center___ariLt",flex_space_between:"flex_space_between___MC6sH",flex_box_vertical_center:"flex_box_vertical_center___tJHfy",flex_box_center_end:"flex_box_center_end___AfB_t",flex_box_column:"flex_box_column___xX4Fj",bg:"bg___nHBEZ",wrapper:"wrapper___TZKl8",exerciseAlert:"exerciseAlert___QUMwm",title:"title___rj6Q0",content:"content___Te7Wz",baseMargin:"baseMargin___BRmsh",noWrap:"noWrap___X6AS3",singleItem:"singleItem___GkaDR",questionIcons:"questionIcons___XoGYC",green:"green___iIYnV",orange:"orange___EIhiL",greenTip:"greenTip___WwiUh",redTip:"redTip___aWSt4",orangeTip:"orangeTip___j5g_H",pollDesc:"pollDesc___yDT2Q",answered:"answered___d2hE7",unanswer:"unanswer___AdOhE",anchor:"anchor___z3CaP",answerFlag:"answerFlag___wwTKa",flagActive:"flagActive___piG3D",flagHalf:"flagHalf___E29dd",answerStudentFlag:"answerStudentFlag___HRVt8",answerStudentActive:"answerStudentActive___kM6r4",questionItem:"questionItem___q6Hgu",questionScore:"questionScore___RW5tm",itemType:"itemType___pPqzT",itemFlag:"itemFlag___j5TSr",answerWrap:"answerWrap___G9dnn",answerSubjective:"answerSubjective___LRVKJ",otherInput:"otherInput___SxNAw",submitButton:"submitButton___zPo7H",randomFlag:"randomFlag___TOZ2H",answerTrue:"answerTrue___fgIW0",answerFalse:"answerFalse___gAQD8",answerHalf:"answerHalf___h40sX",renderHtml:"renderHtml___UerV1",simpleText:"simpleText___ZKx7o",answerYes:"answerYes___AA0oM",answerNo:"answerNo___gMGLy",answerInfo:"answerInfo___tB4Wz",answerProgress:"answerProgress___CbmXy",answerSheetWrap:"answerSheetWrap___aPipx",answerSheetQuestionTitle:"answerSheetQuestionTitle___P18Ss",answerSheet:"answerSheet___yhxK1",answerSheetItem:"answerSheetItem___DIH2V",qindex:"qindex___XuKA8",markIcon:"markIcon___ZTkqb",active:"active___WSsrt",yes:"yes___knuOK",no:"no___gv_cs",bf:"bf___pJfi5",partialActive:"partialActive___K6lsa",selected:"selected___grFyM",countDown:"countDown___OzcWL",cnText:"cnText___TvFjV",red:"red___Mge1h",refreshBtn:"refreshBtn___lK1MX",fold:"fold___id0EJ",cardList:"cardList___xKhMX",withQrcode:"withQrcode___qphZK",iframe:"iframe___pMMQx",eduTip:"eduTip___hXWhK",eduQrcode:"eduQrcode____qxcx",eduVideo:"eduVideo___mufWJ",eduUsername:"eduUsername___tiufh",startAnswer:"startAnswer___AA7n5",eduSubmit:"eduSubmit___UPIsJ",eduTitle:"eduTitle___jCJrO",wrpAnswer:"wrpAnswer___AVK1Y",simpleMd:"simpleMd___ZGbXj",videomodal:"videomodal___bYarH",mainPart:"mainPart___Fqvw7",userInfoText:"userInfoText___nqL8p",answerSheetBottom:"answerSheetBottom___yXf5u",tooltipWrap:"tooltipWrap___AxG9B",leftPart:"leftPart___P4Ook",grey:"grey___UBSG9",blue:"blue___aRuKK",rightPart:"rightPart___De4P3",questionPart:"questionPart___GTq66",questionTypeTitle:"questionTypeTitle___r6Fo9",questionTypeInfo:"questionTypeInfo___JfpWv",toIframeBtn:"toIframeBtn___gRKtn",bottom:"bottom___coSlv",markBtn:"markBtn___ZCLGF",changeButton:"changeButton___sBTjl",prevBtn:"prevBtn___lgCPG",analysisWrap:"analysisWrap___JoCnb",greyBg:"greyBg___vgesc",fixHeader:"fixHeader___RoNxE",exerciseTitle:"exerciseTitle___Dtp56",commitModal:"commitModal___zqvNA",commitItem:"commitItem___mjYF6",commitInfoLabel:"commitInfoLabel___KtIjW",commitInfoValue:"commitInfoValue___DCyRn",cameraHeader:"cameraHeader___Pqhwb",dottedLineWrapper:"dottedLineWrapper___ONO9c",leftHalfCircle:"leftHalfCircle___RNJN7",dottedLine:"dottedLine___qWy4W",rightHalfCircle:"rightHalfCircle___s3_hr",orangeNum:"orangeNum___IYnup",teachAnalysis:"teachAnalysis___FH6fk",teachAnalysisModal:"teachAnalysisModal___RcKVp",screenLock:"screenLock____A8oZ"},ce=e(27158),q=e(41867),x=e(84056),_=e(87513),V=e(60979),ye=e(6339),Me=e(96565);const Ie={0:"c-red-ee4",1:"c-green"};var Je=({item:U,answerData:me,isEducation:Ye,sign:At,onBlur:en=()=>{}})=>{var gn,Yt,Zt,Ue,yt,tn;const nn=(0,t.useRef)(""),[Sn,Cn]=(0,t.useState)(),[Gn,Bn]=(0,t.useState)(!1),[st,Ot]=(0,t.useState)(Ye||!1),wn=(0,t.useRef)(),ir=()=>{clearInterval(wn.current),wn.current=setInterval(()=>{Gn&&en(nn.current,!0)},10*1e3)},Mn=Yn=>{en(nn.current);let $r="\u786E\u5B9A\u79BB\u5F00\u6B64\u9875\u9762\u5417?\u6B64\u9875\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931";return(Yn||window.event).returnValue=$r,$r};return(0,t.useEffect)(()=>{console.log("isFocus:",Gn),Gn&&ir()},[Gn]),(0,t.useEffect)(()=>{Cn(U==null?void 0:U.a_flag)},[U==null?void 0:U.a_flag]),(0,t.useEffect)(()=>()=>{clearInterval(wn.current)},[]),t.createElement("div",null,((gn=me==null?void 0:me.exercise)==null?void 0:gn.user_exercise_status)===1?t.createElement("div",{className:"mb20"},t.createElement(D.Z,{justify:"space-between"},t.createElement(g.Z,null,"\u6211\u7684\u7B54\u6848"),((0,q.GJ)()||(0,q.dE)()&&((Yt=me==null?void 0:me.exercise)==null?void 0:Yt.user_exercise_status)>0&&((Zt=me==null?void 0:me.exercise)==null?void 0:Zt.open_score))&&t.createElement(g.Z,null,t.createElement(D.Z,{justify:"end",className:"mb20",align:"middle"},t.createElement("span",{className:"font14",style:{color:"#6A7283"}},"\u5F97\u5206"),t.createElement("span",{className:"font14 ml10"},(U==null?void 0:U.user_score)&&t.createElement("span",null,t.createElement("span",{className:Ie[Number(U==null?void 0:U.answer_status)]||"c-orange-ff9"},U==null?void 0:U.user_score),t.createElement("span",{style:{marginLeft:5,color:"#6A7283"}},"\u5206")),!(U!=null&&U.user_score)&&t.createElement("span",{className:"c-red"},"\u672A\u8BC4"))))),t.createElement("div",{className:b.simpleText},t.createElement(ye.Z,{value:(Ue=U==null?void 0:U.user_answer)==null?void 0:Ue[0]}))):t.createElement("div",{className:U.user_score&&(U.user_score===U.question_score?"c-green":"c-red")},st?t.createElement(Me.Z,{watch:!0,isFocus:!0,defaultValue:(yt=U==null?void 0:U.user_answer)==null?void 0:yt[0],id:U==null?void 0:U.question_id,className:"mt20",onChange:Yn=>{nn.current=Yn,Bn(!0)},onBlur:()=>{setTimeout(()=>{en(nn.current)},200),clearInterval(wn.current),Bn(!1)}}):t.createElement("div",{onClick:()=>{var Yn;if(!U.repeat_answer&&((Yn=U==null?void 0:U.user_answer)==null?void 0:Yn.length)>0&&U.ques_status!==0){W.ZP.warning("\u8BE5\u9898\u4E0D\u5141\u8BB8\u518D\u4FEE\u6539\u7B54\u6848");return}At.current=!0,Ot(!0)},className:b.startAnswer},t.createElement("div",{className:"c-blue"},"\u70B9\u51FB\u5F00\u59CB\u4F5C\u7B54"))),(0,q.dE)()&&(U==null?void 0:U.standard_answer)&&t.createElement("div",{className:b.analysisWrap},t.createElement("div",{className:b.greyBg},t.createElement(D.Z,{className:"mb20",align:"middle"},t.createElement(g.Z,{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u7B54\u6848\u3011"),t.createElement(g.Z,null,t.createElement(ye.Z,{value:(tn=U==null?void 0:U.standard_answer)==null?void 0:tn[0]}))),t.createElement(D.Z,{align:"middle"},t.createElement("span",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u89E3\u6790\u3011"),t.createElement(ye.Z,{className:b.renderHtml,value:U==null?void 0:U.analysis})))))},rt=e(57809),Te=({item:U,answerData:me,isEducation:Ye,onBlur:At=()=>{}})=>{var en,gn,Yt,Zt;const Ue=(0,t.useRef)(""),[yt,tn]=(0,t.useState)(),[nn,Sn]=(0,t.useState)(!1),[Cn,Gn]=(0,t.useState)(!1),[Bn,st]=(0,t.useState)(Ye||!1),[Ot,wn]=(0,t.useState)(0),ir=(0,t.useRef)(U.kp_content||""),Mn=(0,t.useRef)(U.kp_clazz),Yn=(0,t.useRef)(),$r=(0,t.useMemo)(()=>{var Kn,Pr;return(Pr=(Kn=Ue.current)==null?void 0:Kn.replace(/[\n|\r|\t]/g,""))==null?void 0:Pr.length},[Ue.current]),Fr=()=>{clearInterval(Yn.current),Yn.current=setInterval(()=>{Cn&&At(Ue.current,ir.current,Mn.current)},30*1e3)};return(0,t.useEffect)(()=>{console.log("isFocus:",Cn),Fr()},[Cn]),(0,t.useEffect)(()=>{tn(U==null?void 0:U.a_flag)},[U==null?void 0:U.a_flag]),(0,t.useEffect)(()=>()=>{clearInterval(Yn.current)},[]),t.createElement("div",null,((en=me==null?void 0:me.exercise)==null?void 0:en.user_exercise_status)===1?t.createElement("div",null,t.createElement("div",{className:"mt30"},t.createElement("strong",null,"\u4F5C\u6587\u9898\u76EE\uFF1A"),t.createElement("br",null),t.createElement(F.default,{disabled:!0,className:"mt10",value:ir.current,onChange:Kn=>{ir.current=Kn.target.value,wn(Ot+1)},onBlur:()=>{At(Ue.current,ir.current,Mn.current),Gn(!1)}})),t.createElement("div",{className:"mt30"},t.createElement("strong",null,"\u4F5C\u54C1\u7C7B\u578B\uFF1A"),t.createElement("br",null),t.createElement(rt.default,{disabled:!0,className:"mt10 w100",placeholder:"\u8BF7\u9009\u62E9\u4F5C\u54C1\u7C7B\u578B",value:Mn.current,onChange:Kn=>{Mn.current=Kn,wn(Ot+1)},onBlur:()=>{At(Ue.current,ir.current,Mn.current),Gn(!1)}},t.createElement(rt.default.Option,{key:1,value:"\u79D1\u666E"},"\u79D1\u666E"),t.createElement(rt.default.Option,{key:2,value:"\u79D1\u5E7B"},"\u79D1\u5E7B"))),t.createElement("p",{className:"mt10 mb0"},"\u4F5C\u54C1\u5185\u5BB9\uFF1A"),t.createElement("div",{className:b.simpleText},t.createElement(ye.Z,{value:(gn=U==null?void 0:U.user_answer)==null?void 0:gn[0]}))):t.createElement("div",null,t.createElement("div",{className:"mt30"},t.createElement("strong",null,"\u4F5C\u6587\u9898\u76EE\uFF1A"),t.createElement("br",null),t.createElement(F.default,{className:"mt10",maxLength:60,onBlur:()=>At(Ue.current,ir.current,Mn.current),placeholder:"\u8BF7\u8F93\u5165\u4F5C\u6587\u9898\u76EE(\u6700\u591A60\u4E2A\u5B57)",value:ir.current,onChange:Kn=>{ir.current=Kn.target.value,wn(Ot+1)}})),t.createElement("div",{className:"mt30"},t.createElement("strong",null,"\u4F5C\u6587\u7C7B\u578B\uFF1A"),t.createElement("br",null),t.createElement(rt.default,{className:"mt10 w100",placeholder:"\u8BF7\u9009\u62E9\u4F5C\u54C1\u7C7B\u578B",value:Mn.current,onChange:Kn=>{Mn.current=Kn,At(Kn.current,ir.current,Mn.current),wn(Ot+1)}},t.createElement(rt.default.Option,{key:1,value:"\u79D1\u666E"},"\u79D1\u666E"),t.createElement(rt.default.Option,{key:2,value:"\u79D1\u5E7B"},"\u79D1\u5E7B"))),t.createElement("div",{className:"mt30 mb20"},t.createElement("div",{className:U.user_score&&(U.user_score===U.question_score?"c-green":"c-red")},t.createElement("strong",null,"\u4F5C\u6587\u5185\u5BB9\uFF1A"),t.createElement("br",null),t.createElement("div",{className:"mt10 relative"},t.createElement("span",{className:"c-blue",style:{position:nn?"fixed":"absolute",top:nn?61:4,left:10,zIndex:106}},"\u5DF2\u8F93\u5165",$r,"\u5B57"),Bn?t.createElement(Me.Z,{className:b.simpleMd,disablePaste:!0,hidetoolBar:Ye,height:Ye?"60vh":150,isFocus:!0,defaultValue:(Yt=U==null?void 0:U.user_answer)==null?void 0:Yt[0],id:U==null?void 0:U.question_id,onFullScreen:Kn=>Sn(Kn),onChange:Kn=>{Ue.current=Kn,Gn(!0),wn(Ot+1)},onBlur:()=>{At(Ue.current,ir.current,Mn.current),Gn(!1)}}):t.createElement("div",{onClick:()=>st(!0),className:b.startAnswer},t.createElement("div",{className:"c-blue"},"\u70B9\u51FB\u5F00\u59CB\u4F5C\u7B54")))))),(0,q.dE)()&&(U==null?void 0:U.standard_answer)&&t.createElement("div",null,t.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),t.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},t.createElement(ye.Z,{value:(Zt=U==null?void 0:U.standard_answer)==null?void 0:Zt[0]}))))},Qe=e(79817),vt=e(1710),De=e(50258),ft={score:"score___mcGn7",wrap:"wrap___h11sQ"},$e=({score:U})=>U?t.createElement("span",{className:ft.wrap},"\u5F97\u5206",t.createElement("span",{className:`${ft.score} ml10 mr5`},U),"\u5206"):t.createElement("span",{className:"c-red"},"\u672A\u8BC4"),ve={flex_box_center:"flex_box_center___xK64P",flex_space_between:"flex_space_between___BNBCA",flex_box_vertical_center:"flex_box_vertical_center___ConJK",flex_box_center_end:"flex_box_center_end___L08sz",flex_box_column:"flex_box_column___hvk0E",shixunWrp:"shixunWrp___FTFC6",fill:"fill___H_Qd6",index:"index___PaSVJ",success:"success___fz_F7",fail:"fail___ftXSv",fillInput:"fillInput___q_sSb",shixunWrapper:"shixunWrapper___toGqF",score:"score___AsYGZ",name:"name___hawfX",programWrapper:"programWrapper___zVQPT",desc:"desc___MFIu5",content:"content___QuE41",analysisWrap:"analysisWrap___qGPzJ",greyBg:"greyBg___FIDIB"},at=e(84886),Ee=e(59301),Z=Object.defineProperty,K=Object.defineProperties,m=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,s=(U,me,Ye)=>me in U?Z(U,me,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):U[me]=Ye,i=(U,me)=>{for(var Ye in me||(me={}))R.call(me,Ye)&&s(U,Ye,me[Ye]);if(a)for(var Ye of a(me))fe.call(me,Ye)&&s(U,Ye,me[Ye]);return U},X=(U,me)=>K(U,m(me));const $={0:"c-red-ee4",1:"c-green"};var Q=({item:U,answerData:me,exerciseId:Ye,coursesId:At})=>{var en,gn,Yt,Zt,Ue;const[yt,tn]=(0,t.useState)([]),[nn,Sn]=(0,t.useState)([]),Cn=(0,l.useDispatch)();(0,t.useEffect)(()=>{var st,Ot,wn,ir,Mn,Yn,$r,Fr,Kn,Pr,Jn,zr,eo;if(!((st=U==null?void 0:U.shixun_details)!=null&&st.length))return;let ao=[],Eo=[];for(let ro=0;ro<((Ot=U==null?void 0:U.shixun_details)==null?void 0:Ot.length);ro++){for(let uo=0;uo<(U==null?void 0:U.shixun_details[ro].stage_list.length);uo++){let po=U==null?void 0:U.shixun_details[ro].stage_list[uo];ao.push(i(i({},po),{operation:(Yn=(Mn=(ir=(wn=U==null?void 0:U.shixun_details)==null?void 0:wn[ro])==null?void 0:ir.shixun_detail)==null?void 0:Mn[0])==null?void 0:Yn.game_identifier,is_jupyter:U==null?void 0:U.is_jupyter,is_jupyter_lab:U==null?void 0:U.is_jupyter_lab}))}if((Fr=($r=U==null?void 0:U.shixun_details)==null?void 0:$r[ro])!=null&&Fr.shixun_detail){const uo=(Jn=(Pr=(Kn=U==null?void 0:U.shixun_details)==null?void 0:Kn[ro])==null?void 0:Pr.shixun_detail)==null?void 0:Jn[0],po=(eo=(zr=U==null?void 0:U.shixun_details[ro].stage_list)==null?void 0:zr.find(Ln=>(Ln==null?void 0:Ln.game_identifier)===(uo==null?void 0:uo.game_identifier)))==null?void 0:eo.user_score;Eo.push(X(i({},uo),{user_score:po}))}}Sn(Eo),tn(ao)},[U==null?void 0:U.shixun_details]);const Gn=[{title:"\u9898\u76EE",dataIndex:"position",key:"position",align:"center"},{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",key:"name",align:"center",render:(st,Ot)=>Ee.createElement("span",{className:"overflowHidden1",style:{maxWidth:"400px",color:"#0152d9",cursor:"pointer"},title:st&&st.length>25?st:"",onClick:()=>{(0,A.xg)(`/tasks/${At}/${Ye}/${Ot.game_identifier}/exercise`)}},st)},!(U!=null&&U.unity_3d&&(U==null?void 0:U.vrs_type)==1)&&{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",align:"center",render:(st,Ot)=>Ee.createElement("span",null,Ot.evaluate_count?Ot.evaluate_count:Ee.createElement("span",{className:"color-grey-9"},"--"))},{title:"\u5B8C\u6210\u65F6\u95F4",key:"endTime",dataIndex:"endTime",align:"center",render:(st,Ot)=>{let wn=!1;return Ot.finished_time&&(me!=null&&me.exercise)&&(me!=null&&me.exercise_answer_user)&&((me==null?void 0:me.exercise.time)===-1?wn=v()(me==null?void 0:me.exercise.end_time).isBefore(Ot.finished_time):wn=v()(me==null?void 0:me.exercise_answer_user.start_at).add(me==null?void 0:me.exercise.time,"m").isBefore(Ot.finished_time)),Ee.createElement("span",null,Ot.finished_time||Ee.createElement("span",{className:"c-grey-999"},"--"),Ee.createElement("span",{className:"c-orange-ff9 "},wn?"\uFF08\u5DF2\u8D85\u65F6\uFF09":""))}},{title:"\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",align:"center",render:(st,Ot)=>Ee.createElement("span",null,Ot.time_consuming||Ee.createElement("span",{className:"color-grey-9"},"--"))},{title:"\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",key:"view_answer",align:"center",render:(st,Ot)=>Ee.createElement("span",null,Ot.view_answer?"\u5DF2\u67E5\u770B":"\u672A\u67E5\u770B")},{title:"\u5F97\u5206",dataIndex:"user_score",key:"user_score",align:"center",render:st=>Ee.createElement("span",{style:{color:"#FA6400"}},st,"\u5206")},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"center",render:(st,Ot,wn)=>st&&!Ot.is_jupyter&&!Ot.is_jupyter_lab?Ot!=null&&Ot.unity_3d?Ee.createElement("span",{className:"c-blue current",onClick:()=>{Cn({type:"classroomList/setActionTabs",payload:{key:"\u91C7\u96C6\u70B9\u5F97\u5206\u8BE6\u60C5",data:Ot}})}},"\u8BE6\u60C5"):Ee.createElement(Qe.default,{affix:!1},Ee.createElement(Qe.default.Link,{href:`#challenge_${U==null?void 0:U.question_id}${wn}`,title:Ee.createElement("span",{style:{color:"#0152d9",fontSize:14}},"\u67E5\u770B")})):Ee.createElement("span",{className:"c-grey-999"},"--")}].filter(st=>!!st);console.log(nn);const Bn={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return Ee.createElement("div",null,((en=U==null?void 0:U.shixun)==null?void 0:en.length)>0&&Ee.createElement("div",{className:ve.shixunWrapper},(gn=U==null?void 0:U.shixun)==null?void 0:gn.map(function(st,Ot){return Ee.createElement(D.Z,{className:"mb20",justify:"space-between"},Ee.createElement(g.Z,{flex:"1"},Ee.createElement("span",{className:ve.score},"(",st.challenge_score,"\u5206)"),Ee.createElement("span",{className:ve.name},st.challenge_name," ")),Ee.createElement(g.Z,null,!st.answer_status&&Ee.createElement("span",{className:"font14",style:{color:"#FA6400"}},"\u672A\u5B8C\u6210"),!!st.answer_status&&Ee.createElement("span",{className:"font14",style:{color:"#37AD83"}},"\u5DF2\u5B8C\u6210")))})),((Yt=me==null?void 0:me.exercise)==null?void 0:Yt.student_commit_status)!==0||((Zt=me==null?void 0:me.exercise)==null?void 0:Zt.user_exercise_status)!==0?Ee.createElement(Ee.Fragment,null,!!(yt!=null&&yt.length)&&Ee.createElement("div",null,Ee.createElement(D.Z,{justify:"space-between",className:"mb10",align:"middle"},Ee.createElement(g.Z,{className:"font14 c-grey-666"},"\u9636\u6BB5\u6210\u7EE9"),Ee.createElement(g.Z,null,Ee.createElement($e,{score:U==null?void 0:U.user_score}))),Ee.createElement(vt.default,{columns:Gn,dataSource:yt,pagination:!1})),!!(nn!=null&&nn.length)&&Ee.createElement("div",null,Ee.createElement("p",{className:"font16 c-grey-666 mt10"},"\u5B9E\u8BAD\u8BE6\u60C5"),nn==null?void 0:nn.map((st,Ot)=>Ee.createElement("div",{id:`challenge_${U==null?void 0:U.question_id}${Ot}`,className:"mt5"},Ee.createElement(D.Z,null,Ee.createElement("span",{className:"font14 mr15"}," \u7B2C",st.position,"\u5173"),Ee.createElement(l.Link,{className:"current c-black font14",target:"_blank",to:`/tasks/${At}/${Ye}/${st.game_identifier}/exercise`},st.name),Ee.createElement(g.Z,{style:{marginLeft:"auto"}},Ee.createElement($e,{score:st.user_score}))),(st==null?void 0:st.st)===0&&st.passed_code&&Ee.createElement("aside",{className:ve.shixunWrp},Ee.createElement("h2",null,"\u7B2C\u4E00\u6B21\u901A\u5173\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09",Ee.createElement("span",{className:"c-light-black"},st.path)),Ee.createElement(De.ZP,{height:300,language:"python",theme:"default",value:st.passed_code,options:Bn})))))):Ee.createElement(Ee.Fragment,null,(0,q.dE)()&&Ee.createElement(ye.Z,{className:"c-grey-999 mt20 mb20",value:U==null?void 0:U.question_title}),(Ue=U==null?void 0:U.shixun)==null?void 0:Ue.map((st,Ot)=>Ee.createElement("p",{className:"font16 c-grey-666 mb5",key:Ot},Ee.createElement("span",{className:"mr20"},"\u7B2C",st==null?void 0:st.challenge_position,"\u5173 ",st==null?void 0:st.challenge_name),Ee.createElement("span",null,st==null?void 0:st.challenge_score,"\u5206")))),Ee.createElement(at.Z,null))},Re=e(24334),Pe=e(38821),Se=e(59301);const Ne={0:"c-red-ee4",1:"c-green"};var d=({item:U,answerData:me})=>{var Ye,At,en;const[gn,Yt]=(0,t.useState)([]);(0,t.useEffect)(()=>{var yt,tn;((yt=U==null?void 0:U.evaluate_codes)==null?void 0:yt.length)>0?Yt((tn=U==null?void 0:U.evaluate_codes)==null?void 0:tn.map((nn,Sn)=>({key:Sn+1,error_msg:nn!=null&&nn.error_msg?Re.Base64.decode(nn==null?void 0:nn.error_msg):""}))):Yt([{key:"--",error_msg:"--"}])},[U==null?void 0:U.evaluate_codes]);const Zt=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:(yt,tn)=>Se.createElement("span",null,tn.key)},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:(yt,tn)=>Se.createElement("span",null,tn.error_msg?tn.error_msg:"--")}],Ue={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return Se.createElement("div",{className:`${ve.programWrapper}`},Se.createElement("div",{className:ve.desc},"\u9898\u76EE\u63CF\u8FF0"),Se.createElement("div",{className:ve.content},Se.createElement(ye.Z,{value:U==null?void 0:U.description})),((Ye=me==null?void 0:me.exercise)==null?void 0:Ye.user_exercise_status)===1&&Se.createElement(D.Z,{justify:"end",className:"mt40"},Se.createElement(g.Z,null,Se.createElement($e,{score:U==null?void 0:U.user_score}))),(U==null?void 0:U.passed_code)&&Se.createElement("aside",{className:ve.shixunWrp},Se.createElement(D.Z,{align:"middle",justify:"space-between",style:{height:30,padding:"0 7px"}},Se.createElement("b",null,"\u7B2C\u4E00\u6B21\u8BC4\u6D4B\u901A\u8FC7\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09"),Se.createElement(Pe.Z,{title:"\u7F16\u7A0B\u8BED\u8A00",dataSource:[U==null?void 0:U.language]})),Se.createElement(De.ZP,{style:{border:"1px solid #ccc"},height:300,language:"python",theme:"vs-light",value:U!=null&&U.passed_code?Re.Base64.decode(U==null?void 0:U.passed_code):"",options:Ue})),((At=me==null?void 0:me.exercise)==null?void 0:At.user_exercise_status)===1&&((en=me==null?void 0:me.exercise)==null?void 0:en.answer_open)&&Se.createElement("div",{style:{background:"#F6F7F9"},className:"mt30 p20"},Se.createElement("div",{style:{marginBottom:"20px",fontSize:"16px",display:"flex"}},Se.createElement("span",{style:{whiteSpace:"nowrap"}},"\u3010\u7B54\u6848\u3011"),Se.createElement(ye.Z,{value:(U==null?void 0:U.standard_answer)||""})),Se.createElement("div",{style:{fontSize:"16px",display:"flex"}},Se.createElement("span",{style:{whiteSpace:"nowrap"}},"\u3010\u89E3\u6790\u3011"),Se.createElement(ye.Z,{value:(U==null?void 0:U.analysis)||"\u6682\u65E0\u89E3\u6790"}))))},Y=e(27687),se=Object.defineProperty,Ce=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,ut=(U,me,Ye)=>me in U?se(U,me,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):U[me]=Ye,Bt=(U,me)=>{for(var Ye in me||(me={}))He.call(me,Ye)&&ut(U,Ye,me[Ye]);if(_e)for(var Ye of _e(me))Xe.call(me,Ye)&&ut(U,Ye,me[Ye]);return U},wt=(U,me)=>Ce(U,Fe(me)),Dt=(U,me,Ye)=>new Promise((At,en)=>{var gn=Ue=>{try{Zt(Ye.next(Ue))}catch(yt){en(yt)}},Yt=Ue=>{try{Zt(Ye.throw(Ue))}catch(yt){en(yt)}},Zt=Ue=>Ue.done?At(Ue.value):Promise.resolve(Ue.value).then(gn,Yt);Zt((Ye=Ye.apply(U,me)).next())});const{TextArea:mn}=F.default,ln={0:"c-red-ee4",1:"c-green"};var En=({sign:U,item:me,answerData:Ye,onBlur:At=()=>{}})=>{var en,gn,Yt,Zt;const[Ue,yt]=(0,t.useState)([]),[tn,nn]=(0,t.useState)([]),Sn=(0,t.useRef)(),Cn=(0,t.useRef)(),[Gn]=(0,l.useSearchParams)();return(0,t.useEffect)(()=>{var Bn,st;if(Gn.get("check")){let Ot=[];Ot=(Bn=me==null?void 0:me.standard_answer)==null?void 0:Bn.map(wn=>{var ir,Mn;return wt(Bt({},wn),{choice_id:wn.position,answer_text:((Mn=(ir=me==null?void 0:me.user_answer)==null?void 0:ir.find(Yn=>Yn.choice_id===wn.choice_id))==null?void 0:Mn.answer_text)||""})}),Sn.current=Ot,yt(Ot)}else{let Ot=[];Ot=(st=me==null?void 0:me.standard_answers)==null?void 0:st.map(wn=>{var ir,Mn;return wt(Bt({},wn),{choice_id:wn.position,answer_text:((Mn=(ir=me==null?void 0:me.user_answer)==null?void 0:ir.find(Yn=>Yn.choice_id===wn.position))==null?void 0:Mn.answer_text)||""})}),Sn.current=Ot,yt(Ot)}},[me==null?void 0:me.user_answer]),t.createElement("div",null,Ue==null?void 0:Ue.map((Bn,st)=>{var Ot,wn,ir,Mn,Yn;return t.createElement(D.Z,{key:st,className:`${ve.baseMargin} ${ve.fill}`,align:"middle"},t.createElement(g.Z,{className:ve.index},"\u586B\u7A7A\u9879",st+1),t.createElement(g.Z,{flex:"430px",className:"ml20 mr20"},(Bn==null?void 0:Bn.model)===1?t.createElement(F.default,{name:"sign",placeholder:"\u8BF7\u8F93\u5165\u7B54\u6848",disabled:!me.repeat_answer&&((Ot=me==null?void 0:me.user_answer)==null?void 0:Ot.length)>0&&me.ques_status!==0||!!(Ye!=null&&Ye.exercise.commit_status),value:Bn==null?void 0:Bn.answer_text,onChange:$r=>{Ue[st].answer_text=$r.target.value,yt([...Ue])},onFocus:()=>{U.current=!0},onBlur:$r=>{setTimeout(()=>Dt(void 0,null,function*(){const Fr=yield At(Bn==null?void 0:Bn.answer_text,st+1,Ue);if(Fr.status){const Kn=tn.slice();Kn[st]={status:"fail",errorText:Fr.message},Cn.current=Kn,nn(Kn)}else{const Kn=tn.slice();Kn[st]={status:"success",errorText:""},Cn.current=Kn,nn(Kn)}}),200)},className:`${me.user_score&&(me.user_score===me.question_score?"c-green":"c-red")} ${ve.fillInput}`}):t.createElement(Y.Z,{value:Bn==null?void 0:Bn.answer_text,disabled:!me.repeat_answer&&((wn=me==null?void 0:me.user_answer)==null?void 0:wn.length)>0&&me.ques_status!==0||!!(Ye!=null&&Ye.exercise.commit_status),onChange:$r=>Dt(void 0,null,function*(){var Fr,Kn;Ue[st].answer_text=$r,yt([...Ue]);const Pr=yield At(Bn==null?void 0:Bn.answer_text,st+1,Ue);if(Pr.status){const Jn=((Kn=Cn==null?void 0:Cn.current)==null?void 0:Kn.slice())||[].slice();Jn[st]={status:"fail",errorText:Pr.message},Cn.current=Jn,nn(Jn)}else{const Jn=((Fr=Cn==null?void 0:Cn.current)==null?void 0:Fr.slice())||[].slice();Jn[st]={status:"success",errorText:""},Cn.current=Jn,nn(Jn)}})})),((ir=tn[st])==null?void 0:ir.status)==="success"&&t.createElement(g.Z,null,t.createElement(D.Z,{align:"middle"},t.createElement("i",{style:{marginRight:8},className:`iconfont icon-chenggong1 ${ve.success}`}),t.createElement("span",{className:ve.success},"\u4FDD\u5B58\u6210\u529F"))),((Mn=tn[st])==null?void 0:Mn.status)==="fail"&&t.createElement(g.Z,null,t.createElement(D.Z,{align:"middle"},t.createElement("i",{style:{marginRight:8},className:`iconfont icon-tishi7 ${ve.fail}`}),t.createElement("span",{className:ve.fail},(Yn=tn[st])==null?void 0:Yn.errorText))))}),((0,q.GJ)()||(0,q.dE)()&&((en=Ye==null?void 0:Ye.exercise)==null?void 0:en.user_exercise_status)>0&&((gn=Ye==null?void 0:Ye.exercise)==null?void 0:gn.open_score))&&t.createElement(D.Z,{justify:"end",className:"mb20",align:"middle"},t.createElement("span",{className:"font14",style:{color:"#6A7283"}},"\u5F97\u5206"),t.createElement("span",{className:"font14 ml10"},(me==null?void 0:me.user_score)&&t.createElement("span",null,t.createElement("span",{className:ln[Number(me==null?void 0:me.answer_status)]||"c-orange-ff9"},me==null?void 0:me.user_score),t.createElement("span",{style:{marginLeft:5,color:"#6A7283"}},"\u5206")),!(me!=null&&me.user_score)&&t.createElement("span",{className:"c-red"},"\u672A\u8BC4"))),((Yt=Ye==null?void 0:Ye.exercise)==null?void 0:Yt.answer_open)&&t.createElement("div",{className:ve.analysisWrap},t.createElement("div",{className:ve.greyBg},t.createElement("div",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u7B54\u6848\u3011"),(Zt=me==null?void 0:me.standard_answer)==null?void 0:Zt.map((Bn,st)=>{var Ot;return t.createElement(D.Z,{key:st,align:"middle",className:"mt15 ml10"},t.createElement(g.Z,{className:"mr10"},"\u586B\u7A7A\u9879",st+1),t.createElement(g.Z,null,t.createElement(Y.Z,{value:(Ot=Bn==null?void 0:Bn.answer_text)==null?void 0:Ot[0],style:{maxWidth:730,minWidth:100},disabled:!0})))}),t.createElement(D.Z,{className:"mt15",align:"middle"},t.createElement("span",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u89E3\u6790\u3011"),t.createElement(ye.Z,{className:ve.renderHtml,value:me==null?void 0:me.analysis})))))},vn=e(90402),sn=e(87169),yn=e(77254),xn=e(59301),An=Object.defineProperty,lr=Object.defineProperties,br=Object.getOwnPropertyDescriptors,Un=Object.getOwnPropertySymbols,cr=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,fr=(U,me,Ye)=>me in U?An(U,me,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):U[me]=Ye,Dr=(U,me)=>{for(var Ye in me||(me={}))cr.call(me,Ye)&&fr(U,Ye,me[Ye]);if(Un)for(var Ye of Un(me))Zn.call(me,Ye)&&fr(U,Ye,me[Ye]);return U},Ir=(U,me)=>lr(U,br(me)),pr=(U,me,Ye)=>new Promise((At,en)=>{var gn=Ue=>{try{Zt(Ye.next(Ue))}catch(yt){en(yt)}},Yt=Ue=>{try{Zt(Ye.throw(Ue))}catch(yt){en(yt)}},Zt=Ue=>Ue.done?At(Ue.value):Promise.resolve(Ue.value).then(gn,Yt);Zt((Ye=Ye.apply(U,me)).next())});const{TextArea:_r}=F.default;var Lr=({item:U,answerData:me,sign:Ye,onBlur:At=()=>{},onDebug:en=()=>{},setIsSubmitCode:gn})=>{var Yt,Zt,Ue;let[yt,tn]=(0,t.useState)([]);const[nn]=(0,l.useSearchParams)();return(0,t.useEffect)(()=>{var Sn;let Cn=(Sn=U==null?void 0:U.standard_answer_with_score)==null?void 0:Sn.map((Gn,Bn)=>{var st,Ot;return Ir(Dr({},Gn),{value:((Ot=(st=U==null?void 0:U.user_answer)==null?void 0:st.find(wn=>parseInt(wn.choice_id)===Bn+1))==null?void 0:Ot.answer_text)||""})});tn(Cn)},[U==null?void 0:U.standard_answer_with_score]),console.log(yt,"userAnswer"),xn.createElement("div",null,xn.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:10}},xn.createElement("div",{style:{fontSize:14,color:"#FF0000"}},xn.createElement(sn.Z,null),xn.createElement("span",{style:{marginLeft:5}},"\u6CE8\u610F\uFF1A\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u5426\u5219\u65E0\u6CD5\u5F97\u5206")),!nn.get("check")&&xn.createElement(vn.Z,{setIsSubmitCode:gn,ButtonProps:{type:"primary"},ButtonText:"\u63D0\u4EA4\u4EE3\u7801",items:Ir(Dr({},U),{userAnswer:yt}),hackidentifier:U==null?void 0:U.hack_identifier})),(U==null?void 0:U.code)&&xn.createElement("div",{style:{border:"1px solid #CCCCCC",padding:"10px",marginBottom:20}},xn.createElement(ye.Z,{disabledFill:!U.repeat_answer&&((Yt=U==null?void 0:U.user_answer)==null?void 0:Yt.length)>0&&U.ques_status!==0||!!(me!=null&&me.exercise.commit_status),onFillBlur:(Sn,Cn)=>pr(void 0,null,function*(){yn.Z.publish("BFill:Submit:Change",{value:!0}),setTimeout(()=>pr(void 0,null,function*(){var Gn;(yield At((Gn=Sn==null?void 0:Sn[parseInt(Cn)])==null?void 0:Gn.value,parseInt(Cn)+1,yt)).status===0?(yt[parseInt(Cn)].type="",tn([...yt])):(yt[parseInt(Cn)].type="warning",tn([...yt]))}),200)}),onFillFocus:(Sn,Cn)=>{yt[parseInt(Cn)].type="",tn([...yt]),Ye.current=!0},className:ve.content,programFillValue:yt,showProgramFill:!0,value:Re.Base64.decode((U==null?void 0:U.code)||"")})),!!((Zt=U==null?void 0:U.standard_answer)!=null&&Zt.length)&&xn.createElement("div",{className:ve.analysisWrap},xn.createElement("div",{className:ve.greyBg},xn.createElement(D.Z,{className:"mb20",align:"middle"},xn.createElement(g.Z,{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u7B54\u6848\u3011"),(Ue=U==null?void 0:U.standard_answer)==null?void 0:Ue.map((Sn,Cn)=>xn.createElement(g.Z,{key:Cn,className:"mr40"},"\u586B\u7A7A\u9879",Cn+1,":",Sn==null?void 0:Sn.answer_text))),xn.createElement(D.Z,null,xn.createElement("span",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u89E3\u6790\u3011"),xn.createElement(ye.Z,{className:ve.renderHtml,value:(U==null?void 0:U.analysis)||"\u6682\u65E0\u89E3\u6790"})))))},so=e(59149);const{TextArea:Jr}=F.default;var pe=({data:U})=>t.createElement("div",{className:"tc mt80 pb30"},t.createElement("img",{width:"486",src:so.BV})," ",t.createElement("br",null),U.status===-1&&t.createElement("div",{className:"c-grey-999 mt60"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),U.status===-2&&t.createElement("div",{className:" c-grey-999 mt60"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",t.createElement("span",{className:"c-red"},U.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),t.createElement(ne.ZP,{className:"mt40 pl20 pr20",type:"primary"},t.createElement("a",{href:"/"},"\u56DE\u5230\u9996\u9875"))),lt=e(74128),Pt=e(89392),Nt={comments:"comments___ZkLeS",greyText:"greyText___ow9J6",commentText:"commentText___Uklcs",wrapper:"wrapper___XTdhL",header:"header___pq5DQ",updateTime:"updateTime___WYYjt",text:"text___FmQY7",date:"date___DiXg4"},Xt=({list:U,hideScore:me=!1})=>t.createElement("div",null,U==null?void 0:U.map(Ye=>{var At,en,gn,Yt,Zt,Ue;return t.createElement("div",{className:`mt20 ${Nt.wrapper}`,key:(At=Ye==null?void 0:Ye.user)==null?void 0:At.user_id},t.createElement(D.Z,{align:"middle",className:Nt.header},t.createElement("img",{src:lt.Z.API_SERVER+"/images/"+((en=Ye.user)==null?void 0:en.image_url)}),t.createElement("span",{className:"ml10 font16"},(gn=Ye.user)==null?void 0:gn.name),t.createElement(g.Z,{className:Nt.updateTime},t.createElement("span",{className:Nt.text},"\u8BC4\u9605\u65F6\u95F4"),t.createElement("span",{className:Nt.date},v()((Zt=(Yt=Ye.comments)==null?void 0:Yt[0])==null?void 0:Zt.updated_at).format("YYYY-MM-DD HH:mm")))),t.createElement("div",{className:Nt.comments},(Ue=Ye==null?void 0:Ye.comments)==null?void 0:Ue.map((yt,tn)=>{var nn;return t.createElement("div",{key:((nn=Ye==null?void 0:Ye.user)==null?void 0:nn.user_id)+"-"+tn},t.createElement(D.Z,{align:"middle",justify:"space-between"},!!yt.shixun_chanllge_position&&t.createElement("div",{style:{flexShrink:0,marginRight:10}},"\u7B2C",yt.shixun_chanllge_position,"\u5173"),!me&&t.createElement("div",{style:{flex:1}},"\u539F\u59CB\u5F97\u5206",yt==null?void 0:yt.origin_score,"\u5206\uFF0C\u4FEE\u6B63\u4E3A",t.createElement("span",{className:"c-light-primary"},yt==null?void 0:yt.score),"\u5206")),!!yt.comment&&t.createElement("div",null," ",t.createElement("span",{className:`${Nt.greyText} mr10`},"\u8BC4\u8BED"),t.createElement("span",{className:Nt.commentText},yt.comment)))})))})),zt=e(21390),j=e(96249),ue=e.n(j),xe=e(11724),be=e(62772),Ze=e(96935),Le=e(42217),ke={codeInput:"codeInput___xSFAu"},Ae=e(92310),Ht=e.n(Ae),qt=({className:U,style:me,onOk:Ye})=>{const[At,en]=(0,t.useState)(["","","","","",""]),[gn,Yt]=(0,t.useState)(0),Zt=(0,t.useRef)([]);(0,t.useEffect)(()=>{const tn=At.findIndex(nn=>!nn);tn===-1&&Ye(At),Yt(tn)},[At]),(0,t.useEffect)(()=>{var tn;(tn=Zt.current[gn])==null||tn.focus()},[gn]);const Ue=(tn,nn)=>{const{value:Sn}=tn.target;if(/^\d*$/.test(Sn)){const Cn=[...At];Cn[nn]=Sn||"",en(Cn)}},yt=(tn,nn)=>{if(tn.key==="Backspace"&&nn>0){tn.preventDefault();const Sn=[...At];Sn[nn-1]="",en(Sn)}};return t.createElement("div",{className:Ht()(ke.codeInput,U),style:me},At.map((tn,nn)=>t.createElement("input",{key:nn,type:"text",disabled:gn!==nn,maxLength:1,value:tn===""?"":"*",onChange:Sn=>Ue(Sn,nn),onKeyDown:Sn=>yt(Sn,nn),ref:Sn=>{Zt.current[nn]=Sn}})))},kn=e(72530),Rn=e(2337),an=e(65808),h=e(59301),Br=Object.defineProperty,Qn=Object.defineProperties,ur=Object.getOwnPropertyDescriptors,er=Object.getOwnPropertySymbols,hr=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,$n=(U,me,Ye)=>me in U?Br(U,me,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):U[me]=Ye,Pn=(U,me)=>{for(var Ye in me||(me={}))hr.call(me,Ye)&&$n(U,Ye,me[Ye]);if(er)for(var Ye of er(me))qn.call(me,Ye)&&$n(U,Ye,me[Ye]);return U},zn=(U,me)=>Qn(U,ur(me)),kr=(U,me)=>{var Ye={};for(var At in U)hr.call(U,At)&&me.indexOf(At)<0&&(Ye[At]=U[At]);if(U!=null&&er)for(var At of er(U))me.indexOf(At)<0&&qn.call(U,At)&&(Ye[At]=U[At]);return Ye},In=(U,me,Ye)=>new Promise((At,en)=>{var gn=Ue=>{try{Zt(Ye.next(Ue))}catch(yt){en(yt)}},Yt=Ue=>{try{Zt(Ye.throw(Ue))}catch(yt){en(yt)}},Zt=Ue=>Ue.done?At(Ue.value):Promise.resolve(Ue.value).then(gn,Yt);Zt((Ye=Ye.apply(U,me)).next())});const{Countdown:Er}=T.default,jr=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ur={0:"c-red-ee4",1:"c-green"},Gr=U=>{var me=U,{globalSetting:Ye,loading:At,user:en,exercise:gn,dispatch:Yt}=me,Zt=kr(me,["globalSetting","loading","user","exercise","dispatch"]),Ue,yt,tn,nn,Sn,Cn,Gn,Bn,st,Ot,wn,ir,Mn,Yn,$r,Fr,Kn,Pr,Jn,zr,eo,ao,Eo,ro,uo,po,Ln,mr,Hn,Wt,dr,Tr,Hr,to,no,yo,Lo,Uo,ko,jo,Ia,da,fa,Na,qa,Oa,$o,Da,ma,va,_a,Ba,Vo,pa,ga;const Ta=(0,l.useLocation)(),[Po]=(0,l.useSearchParams)(),rn=(0,l.useParams)(),[G,go]=(0,t.useState)({}),[Ct,el]=(0,t.useState)({}),[Io,tl]=(0,t.useState)({}),[nl,No]=(0,t.useState)(!1),[Oo,Ra]=(0,t.useState)(!0),[ha,Ma]=(0,t.useState)(!1),[ya,fo]=(0,t.useState)(!1),[xa,Do]=(0,t.useState)(!1),[Ca,ba]=(0,t.useState)(!1),[Fa,rl]=(0,t.useState)(),[ol,Xo]=(0,t.useState)(""),[al,Ea]=(0,t.useState)("none"),[Go,Sa]=(0,t.useState)(""),[So,Yo]=(0,t.useState)({status:0}),[ll,wa]=(0,t.useState)(!1),[_o,il]=(0,t.useState)(window.document.domain==="kepukehuan.educoder.net"),[Aa,Jo]=(0,t.useState)(!0),[Ko,Bo]=(0,t.useState)(!1),[Qo,qo]=(0,t.useState)(null),[sl,Mo]=(0,t.useState)(!1),[ea,cl]=(0,t.useState)(0),[ul,Za]=(0,t.useState)(!1),[dl,La]=(0,t.useState)(!1),[fl,_l]=(0,t.useState)(!1),ka=(0,t.useRef)(),ja=(0,t.useRef)(),ta=(0,t.useRef)(!1),na=(0,t.useRef)(),ml=(0,t.useRef)(),ra=(0,t.useRef)(),zo=(0,t.useRef)(),[oa]=p.default.useForm(),aa=(0,t.useMemo)(()=>new WebSocket("ws://localhost:8082"),[]);let[sr,Ho]=(0,t.useState)(0),[vr,Wo]=(0,t.useState)(0);const[vl,la]=(0,t.useState)(!1),[ia,pl]=(0,t.useState)(!1),[gl,$a]=(0,t.useState)(!1),Ka=[`/classrooms/${rn.coursesId}/exercise/${rn.categoryId}/detail`,`/classrooms/${rn.coursesId}/exercise`,`/classrooms/${rn.coursesId}/exercise/`,`/classrooms/${rn.coursesId}/exercise/${rn.categoryId}/users/${(Ue=en.userInfo)==null?void 0:Ue.login}/check`,`/classrooms/${rn.coursesId}/exercisenotice/${rn.categoryId}/users/${(yt=en.userInfo)==null?void 0:yt.login}`,`/classrooms/${rn.coursesId}/exercise/${rn.categoryId}/users/${(tn=en.userInfo)==null?void 0:tn.login}`],[hl,za]=(0,t.useState)(!1),[Bl,Ha]=(0,t.useState)(!0),[Tl,yl]=(0,t.useState)({left:0,top:0,bottom:0,right:0}),Wa=(0,t.useRef)(null),[Ua,Va]=(0,t.useState)(!0),sa=(0,t.useRef)(),[xl,Pa]=(0,t.useState)(!1);(0,Le.y)((0,q.dE)());const{setOpenDisableCopyAndPaste:ho}=(0,Le.X)(),Cl=(c,he)=>{var tt;const{clientWidth:ot,clientHeight:qe}=window.document.documentElement,et=(tt=Wa.current)==null?void 0:tt.getBoundingClientRect();yl({left:-et.left+he.x,right:ot-(et.right-he.x),top:-et.top+he.y,bottom:qe-(et.bottom-he.y)-70})},ca=(0,kn._)(G);(0,t.useEffect)(()=>{var c,he;if(((c=G==null?void 0:G.exercise)==null?void 0:c.commit_status)>0){Za(!1);return}if((ya||(he=G==null?void 0:G.exercise)!=null&&he.forbid_screen)&&(0,A.WX)()){const tt=ot=>{ot.key==="screenNums"&&(Number(ot.newValue||0)>1?setTimeout(()=>{Za(!0)},300):Za(!1))};return window.addEventListener("local-storage-changed",tt),()=>{window.removeEventListener("local-storage-changed",tt)}}},[ya,(nn=G==null?void 0:G.exercise)==null?void 0:nn.forbid_screen,(Sn=G==null?void 0:G.exercise)==null?void 0:Sn.commit_status]),(0,t.useEffect)(()=>(document.body.setAttribute("data-custom","auto"),()=>{document.body.removeAttribute("data-custom")}),[]),(0,t.useEffect)(()=>{var c,he;if(document.body.scrollIntoView(),((c=en.userInfo)==null?void 0:c.real_name)==="\u6E38\u5BA2"){window.location.href=`/classrooms/${rn.coursesId}/exercise`;return}return(he=en.userInfo)!=null&&he.user_id&&((0,q.GJ)()?ge():en.userInfo.login&&y()),window.addEventListener("message",o),()=>{window.removeEventListener("message",o),Ta.pathname.indexOf("/detail")>-1&&(0,x.BU)()}},[rn.categoryId,en.userInfo.login]),(0,t.useEffect)(()=>(window.addEventListener("beforeunload",r),()=>{ca(),window.removeEventListener("beforeunload",r)}),[]),(0,t.useEffect)(()=>(Yt({type:"globalSetting/headerFooterToggle",payload:!1}),()=>{Yt({type:"globalSetting/headerFooterToggle",payload:!0})}),[]),(0,t.useEffect)(()=>{var c,he,tt,ot;(c=G==null?void 0:G.question_status)!=null&&c.every(qe=>!!qe.ques_status&&ll&&(Ct==null?void 0:Ct.used_screen_num)<(Ct==null?void 0:Ct.screen_num))&&setTimeout(()=>{var qe;(qe=ja.current)==null||qe.handlePhoto()},1300),qo((ot=(tt=(he=G==null?void 0:G.exercise_question_types)==null?void 0:he[sr])==null?void 0:tt.items)==null?void 0:ot[vr])},[G]);const r=c=>{var he;!(Ct!=null&&Ct.is_commit)&&(0,q.dE)()&&(0,A.RG)(" ",!0),localStorage.setItem("Refresh","1"),(he=gn.exerciseUserInfo)!=null&&he.screen_open&&window.navigator.sendBeacon(`${lt.Z.API_SERVER}/api/exercises/${rn.categoryId}/commit_screen_at.json`,{})},o=c=>{c.data==="backExercise"&&((0,A.RG)(" ",!0),u())},u=()=>{Ea("none"),Xo(""),ge()},y=()=>In(void 0,null,function*(){O()}),N=()=>In(void 0,null,function*(){Jo(!1),n.default.info({title:(0,an._V)(an.CP.answer1),width:500,centered:!0,closable:!1,keyboard:!1,maskClosable:!1,maskStyle:{background:"#000"},okText:(0,an._V)(an.CP.answer2),onOk:()=>new Promise((c,he)=>In(void 0,null,function*(){try{yield oa.validateFields()}catch(ot){he()}const tt=yield(0,_.pL)(Pn({exercise_user_id:Ct==null?void 0:Ct.exercise_user_id,categoryId:rn.categoryId},yield oa.validateFields()));(tt==null?void 0:tt.status)===0?(Jo(!0),oe(),c(tt)):(oa.setFields([{name:"start_password",errors:[tt==null?void 0:tt.message]}]),he())})),content:h.createElement(h.Fragment,null,h.createElement("p",{className:""},(0,an._V)(an.CP.answer3)),h.createElement(p.default,{form:oa,autoComplete:"off"},h.createElement(p.default.Item,{name:"start_password",label:(0,an._V)(an.CP.answer1),rules:[{required:!0,message:(0,an._V)(an.CP.answer4)}]},h.createElement(F.default.Password,{autoComplete:"off"}))))})}),O=()=>In(void 0,null,function*(){const c=yield Yt({type:"exercise/getExerciseUserInfo",payload:Pn({},rn)});zo.current=zn(Pn({},c.data),{status:c==null?void 0:c.status}),el(zn(Pn({},c.data),{status:c==null?void 0:c.status}))});(0,t.useEffect)(()=>{if(Ct!=null&&Ct.exercise_user_id){if(Ct!=null&&Ct.is_commit||(0,A.RG)(" ",!0),!(Ct!=null&&Ct.is_commit)&&((Ct==null?void 0:Ct.ip_limit)==="inner"||Ct!=null&&Ct.ip_bind_type)&&(ra.current=`&ip_limit=${Ct==null?void 0:Ct.ip_limit}&ip_bind=${Ct==null?void 0:Ct.ip_bind}&ip_bind_type=${Ct==null?void 0:Ct.ip_bind_type}`),!(Ct!=null&&Ct.is_commit)&&!Po.get("check")||Ct.exercise_type==2&&!Po.get("check")){if((0,A.RG)(" ",!0),!(Ct!=null&&Ct.can_start)){window.location.href=`/classrooms/${rn.coursesId}/exercise/${rn.categoryId}/users/${rn.login}/check`;return}if(Ct!=null&&Ct.is_locked&&Ct.ip_error){Yt({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:zn(Pn({},Ct),{id:rn.categoryId})}});return}else!(Ct!=null&&Ct.is_locked)&&Ct.ip_error;if(document.referrer===""||performance.navigation.type===2||!Ka.includes(new URL(document.referrer||"https://www.educoder.net").pathname)){document.referrer!==""?sessionStorage.setItem("illegalEntry",Ka.includes(new URL(document.referrer).pathname)?"illegalEntry":"allowRouter"):sessionStorage.setItem("illegalEntry","illegalEntry"),l.history.push(`/classrooms/${rn.coursesId}/exercise/`);return}if(Ct!=null&&Ct.start_locked&&!(Ct!=null&&Ct.user_is_enter)){N();return}if(Ct!=null&&Ct.is_locked&&performance.navigation.type===1&&!sessionStorage.getItem("studentunlock")){Yt({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:zn(Pn({},Ct),{id:rn.categoryId})}});return}if((0,ae.ZP)(`/api/exercises/${rn==null?void 0:rn.categoryId}/close_pop.json`,{method:"post"}),Ct!=null&&Ct.is_locked&&performance.navigation.type===0&&(Ct!=null&&Ct.user_is_enter)&&!(Ct!=null&&Ct.is_commit)&&(Ct!=null&&Ct.show_pop)){Yt({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:zn(Pn({},Ct),{id:rn.categoryId})}});return}}else if(!Ct.answered_open&&Ct.exercise_type!=2){n.default.info({width:500,centered:!0,icon:null,title:(0,an._V)(an.CP.answer5),content:(0,an._V)(an.CP.answer6),onOk:()=>{window.location.href=`/classrooms/${rn.coursesId}/exercise/${rn.categoryId}/detail`}});return}Po.get("check")?ge():oe(),Xn()}return()=>{!(Ct!=null&&Ct.is_commit)&&(0,q.dE)()&&(0,A.RG)(" ",!0)}},[Ct]);const oe=()=>In(void 0,null,function*(){var c,he,tt,ot,qe,et,ct,Tt,pt,it,Ft,nt,dt,Et,gr;sessionStorage.setItem("studentunlock","studentunlock");const jt={data:Ct,status:Ct.status};if((((c=jt==null?void 0:jt.data)==null?void 0:c.ip_limit)!=="no"||(he=jt==null?void 0:jt.data)!=null&&he.ip_bind_type)&&(na.current=yield(0,ce.y)({ip_limit:(tt=jt==null?void 0:jt.data)==null?void 0:tt.ip_limit,ip_bind:(ot=jt==null?void 0:jt.data)==null?void 0:ot.ip_bind_type})),(((qe=jt==null?void 0:jt.data)==null?void 0:qe.ip_limit)!=="no"||(et=jt==null?void 0:jt.data)!=null&&et.ip_bind)&&(((ct=jt==null?void 0:jt.data)==null?void 0:ct.ip_limit)==="inner"||(Tt=jt==null?void 0:jt.data)!=null&&Tt.ip_bind_type)){var Dn=yield(0,A.oi)({exerciseId:rn.categoryId,ip:na.current,errmsgHide:!0,ip_limit:((pt=jt==null?void 0:jt.data)==null?void 0:pt.ip_limit)||"no",ip_bind:(it=jt==null?void 0:jt.data)==null?void 0:it.ip_bind,ip_bind_type:(Ft=jt==null?void 0:jt.data)==null?void 0:Ft.ip_bind_type});if((Dn==null?void 0:Dn.status)!==0){Yo(Dn);return}}if((jt==null?void 0:jt.status)==0){if(((nt=jt==null?void 0:jt.data)==null?void 0:nt.used_screen_num)>((dt=jt==null?void 0:jt.data)==null?void 0:dt.screen_num)&&((Et=jt==null?void 0:jt.data)!=null&&Et.screen_open))return $a(!0),Nn(),!1;if(Ma(jt==null?void 0:jt.data.check_camera),!(jt!=null&&jt.data.check_camera)){if(jt!=null&&jt.data.screen_shot_open){Do(Ct==null?void 0:Ct.screen_shot_open);return}fo((gr=jt==null?void 0:jt.data)==null?void 0:gr.screen_open),ge()}}}),re=(...c)=>In(void 0,[...c],function*(he=Qo){Po.get("check")||(yield(0,ae.ZP)(`/api/exercise_questions/${he==null?void 0:he.question_id}/exercise_answers/save_hack_evaluate.json`,{}))}),ee=c=>In(void 0,null,function*(){if((c==null?void 0:c.type)===1)return n.default.info({centered:!0,width:470,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,keyboard:!1,onOk:()=>{l.history.replace(`/classrooms/${rn.coursesId}/exercise/${rn.categoryId}/detail`)},content:h.createElement("div",null,(c==null?void 0:c.message)||"")}),Promise.reject();if((c==null?void 0:c.type)===2){const he=()=>{l.history.replace(`/classrooms/${rn.coursesId}/exercise/${rn.categoryId}/centralizeReview/${c==null?void 0:c.login}`)};return n.default.confirm({centered:!0,width:470,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,keyboard:!1,onOk:he,onCancel:()=>{l.history.replace(`/classrooms/${rn.coursesId}/exercise/${rn.categoryId}/detail`)},content:h.createElement("div",null,h.createElement("div",null,"\u60A8\u5DF2\u6210\u4E3A\u6307\u5B9A\u9605\u5377\u6559\u5E08\uFF0C\u662F\u5426\u73B0\u5728\u524D\u5F80",h.createElement("span",{onClick:he,className:"ml5 mr5 c-light-primary current"},"\u96C6\u4E2D\u9605\u5377"),"\u7EE7\u7EED\u8BC4\u9605\uFF1F"),h.createElement("div",{className:"c-grey-999"},"\uFF08\u9605\u5377\u7ED3\u675F\u540E\u6062\u590D\u5B66\u751F\u4E2A\u4EBA\u8BC4\u9605\u529F\u80FD\uFF0C\u5E76\u5C55\u793A\u5B66\u751F\u6210\u7EE9\uFF09"))}),Promise.reject()}}),ge=()=>In(void 0,null,function*(){var c,he,tt,ot,qe,et,ct,Tt,pt,it,Ft,nt,dt,Et,gr,jt,Dn,Or,Mr,Fo,xo;document.body.scrollIntoView(),No(!0);let Lt,qr=(c=en.userInfo)==null?void 0:c.user_id;if((0,q.GJ)())Lt=yield(0,_.BJ)({exerciseId:rn.categoryId,login:rn.login}).catch(()=>No(!1)),Lt!=null&&Lt.exercise&&(Lt.exercise.user_exercise_status=1),qr=(he=Lt==null?void 0:Lt.exercise_answer_user)==null?void 0:he.user_id;else{if(Po.get("check"))Lt=yield(0,_.BJ)(zn(Pn({},rn),{exerciseId:rn.categoryId,login:rn.login})).catch(()=>No(!1)),qr=(tt=Lt==null?void 0:Lt.exercise)==null?void 0:tt.user_id,(Lt==null?void 0:Lt.message)==="\u5B66\u751F\u6B63\u5728\u8003\u8BD5\u4E2D\uFF0C\u60A8\u65E0\u6743\u67E5\u770B"&&Ha(!1);else{if((((ot=zo.current)==null?void 0:ot.ip_limit)!=="no"||(qe=zo.current)!=null&&qe.ip_bind_type)&&(na.current=yield(0,ce.y)({ip_limit:(et=zo.current)==null?void 0:et.ip_limit,ip_bind:(ct=zo.current)==null?void 0:ct.ip_bind_type})),Lt=yield(0,_.CD)(zn(Pn({},rn),{ip:na.current})).catch(()=>No(!1)),Lt.status===-1){ze();return}if((Tt=Lt==null?void 0:Lt.exercise)!=null&&Tt.only_on_client&&!(0,A.WX)()){W.ZP.warning("\u8BF7\u7528\u5BA2\u6237\u7AEF\u4F5C\u7B54"),ze();return}if((Lt==null?void 0:Lt.status)===-5){Yt({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:zn(Pn({},zo.current),{id:rn.categoryId,errorMessage:Lt==null?void 0:Lt.message})}});return}Lt!=null&&Lt.exercise&&(Lt.exercise.user_exercise_status=0),Lt!=null&&Lt.exercise&&(Lt.exercise.exercise_status=2),(pt=Lt==null?void 0:Lt.exercise_question_types)==null||pt.map(Vr=>{var yr;(Vr==null?void 0:Vr.question_type)<3&&((yr=Vr==null?void 0:Vr.items)==null||yr.map(wr=>{wr.user_answer=wr.question_choices.filter(lo=>lo.user_answer_boolean).map(lo=>lo.choice_id)}))})}if(!((it=Lt==null?void 0:Lt.exercise)!=null&&it.can_start)&&(Lt!=null&&Lt.exercise)){window.location.href=`/classrooms/${rn.coursesId}/exercise/${rn.categoryId}/users/${rn.login}/check`;return}((Ft=Lt.exercise)==null?void 0:Ft.commit_status)===0&&!ml.current&&(ml.current=!0,(0,A.G5)(aa,Lt==null?void 0:Lt.exercise)),(nt=Lt==null?void 0:Lt.exercise)!=null&&nt.left_time&&setTimeout(()=>{Sa(b.red)},(((dt=Lt==null?void 0:Lt.exercise)==null?void 0:dt.left_time)-300>0?((Et=Lt==null?void 0:Lt.exercise)==null?void 0:Et.left_time)-300:0)*1e3),((gr=Lt==null?void 0:Lt.exercise)==null?void 0:gr.take_photo)>=((jt=Lt==null?void 0:Lt.exercise)==null?void 0:jt.photo_count)}if(No(!1),yield ee(Lt),Lt){if((Dn=Lt==null?void 0:Lt.exercise)!=null&&Dn.question_random||(Or=Lt==null?void 0:Lt.exercise)!=null&&Or.choice_random){let Vr=1;Lt.exercise.question_random=(Mr=Lt==null?void 0:Lt.exercise_question_types)==null?void 0:Mr.map(yr=>{var wr,lo;return(wr=Lt==null?void 0:Lt.exercise)!=null&&wr.choice_random&&((yr.question_type===0||yr.question_type===1)&&yr.items.map(co=>(co.question_choices=(0,A.M2)(co.question_choices,qr),co)),yr.question_type===7&&yr.items.forEach(co=>{co.sub_exercise_questions.forEach(Co=>{Co.question_choices&&(Co.question_choices=(0,A.M2)(Co.question_choices,qr))})})),(lo=Lt==null?void 0:Lt.exercise)!=null&&lo.question_random&&(yr.items=(0,A.M2)(yr.items,qr)),yr.items.map(co=>(co.question_num=Vr,Vr++,co)),yr})}Lt.exercise_types=(Lt==null?void 0:Lt.exercise_types)||((Fo=Lt==null?void 0:Lt.exercise_scores)==null?void 0:Fo.exercise_types),Lt.question_status=Lt.question_status||Oe((Lt==null?void 0:Lt.exercise_question_types)||[]),go(Lt),ho((xo=Lt==null?void 0:Lt.exercise)==null?void 0:xo.forbid_copy)}return Lt}),Oe=c=>{let he=[];return c.forEach(tt=>{he=he.concat(tt.items)}),he=he.map(tt=>({ques_status:tt==null?void 0:tt.ques_status,score_status:tt==null?void 0:tt.score_status,question_num:tt==null?void 0:tt.question_num,ques_id:tt==null?void 0:tt.question_id})),he};(0,t.useEffect)(()=>{var c,he,tt;((c=G.exercise)==null?void 0:c.left_time)===0&&Nn(),(he=G.exercise)!=null&&he.left_time&&rl(Date.now()+((tt=G==null?void 0:G.exercise)==null?void 0:tt.left_time)*1e3)},[(Cn=G.exercise)==null?void 0:Cn.left_time]);const we=()=>{var c;((c=G==null?void 0:G.exercise)==null?void 0:c.exercise_status)===3?n.default.confirm({width:530,title:"\u63D0\u793A",icon:null,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:h.createElement("div",null,"\u622A\u6B62\u65F6\u95F4\u5DF2\u5230\uFF0C\u65E0\u6CD5\u6253\u56DE\u8BD5\u5377",h.createElement("br",null),"\u8BF7\u5728\u4FEE\u6539\u622A\u6B62\u65F6\u95F4\u540E\u518D\u64CD\u4F5C")}):n.default.confirm({width:530,title:"\u63D0\u793A",icon:null,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:h.createElement("div",null,"\u5B66\u751F\u5C06\u5F97\u5230\u4E00\u6B21\u91CD\u65B0\u7B54\u9898\u7684\u673A\u4F1A\uFF0C\u73B0\u6709\u7684\u7B54\u9898\u60C5\u51B5\u5C06\u88AB\u6E05\u7A7A",h.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u56DE\u9000TA\u7684\u8BD5\u5377\u7B54\u9898"),onOk:()=>In(void 0,null,function*(){var he;const tt=yield(0,_.q6)({categoryId:rn.categoryId,user_ids:[(he=G==null?void 0:G.exercise_answer_user)==null?void 0:he.user_id]});tt&&(W.ZP.info(tt==null?void 0:tt.message),ze())})})},ze=()=>{if((0,A.G5)(aa),(0,A.WX)()){window.location.href=(0,A.Ll)()?"/":"/classrooms/examList";return}window.location.href=(0,A.Ll)()?"/":`/classrooms/${rn.coursesId}/exercise/${rn.categoryId}/detail`},We=(c=!1)=>In(void 0,null,function*(){const he=yield(0,_.PT)(zn(Pn({},rn),{refresh:c}));return he!=null&&he.has_time?(rl(Date.now()+(he==null?void 0:he.left_time)*1e3),go(tt=>zn(Pn({},tt),{exercise:zn(Pn({},tt.exercise),{left_time:he==null?void 0:he.left_time})})),!0):(Ve(),!1)}),Ve=()=>In(void 0,null,function*(){if(ta.current)return;ta.current=!0;const c=yield(0,_.VL)({categoryId:rn.categoryId,commit_method:2});if(fo(!1),Do(!1),(c==null?void 0:c.status)===0&&((0,A.G5)(aa),n.default.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",zIndex:1100,content:h.createElement("div",null,"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",h.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:()=>In(void 0,null,function*(){ze()})}),W.ZP.info(c==null?void 0:c.message)),(c==null?void 0:c.status)===-3){ta.current=!1;const he=parseInt(c==null?void 0:c.message);G.exercise.left_time=he,go(Pn({},G))}}),xt=c=>In(void 0,null,function*(){const he=yield(c.is_jupyter||c.is_jupyter_lab?V.BK:V.Ir)({id:c.shixun_identifier});(he!=null&&he.game_identifier||he!=null&&he.identifier)&&(ho(!1),c.is_jupyter_lab||c.is_jupyter?Xo(`/tasks/${he.identifier}/jupyter?type=exercises&exercisesId=${rn.categoryId}&coursesId=${rn.coursesId}&login=${rn.login}&questionId=${c.question_id}&isFullScreen=${(0,x.vp)()}${ra.current||""}&ip_limit=${Ct==null?void 0:Ct.ip_limit}&ip_bind=${Ct==null?void 0:Ct.ip_bind}&ip_bind_type=${Ct==null?void 0:Ct.ip_bind_type}`):Xo(`/tasks/${he.game_identifier}?type=exercises&exercisesId=${rn.categoryId}&coursesId=${rn.coursesId}&login=${rn.login}&questionId=${c.question_id}&isFullScreen=${(0,x.vp)()}${ra.current||""}&ip_limit=${Ct==null?void 0:Ct.ip_limit}&ip_bind=${Ct==null?void 0:Ct.ip_bind}&ip_bind_type=${Ct==null?void 0:Ct.ip_bind_type}`),Ea("block")),(he==null?void 0:he.status)===-3?(0,A.eF)():(he==null?void 0:he.status)===2?mt(he==null?void 0:he.message,c.question_id,c.is_jupyter_lab,c.is_jupyter):(he==null?void 0:he.status)===3&&bt(he==null?void 0:he.message)}),mt=(c,he,tt,ot)=>{c=c!=null&&c.includes(".json")?c:`${c}.json`,n.default.confirm({centered:!0,title:"\u63D0\u793A",icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:h.createElement("div",null,"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>In(void 0,null,function*(){const qe=yield(0,_.L8)({url:c});if(!qe)return;W.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const et=yield(0,V.Ir)({id:qe.shixun_identifier});if(et!=null&&et.game_identifier){xt({shixun_identifier:et==null?void 0:et.game_identifier,question_id:he,is_jupyter_lab:tt,is_jupyter:ot});return}(et==null?void 0:et.status)===2?mt(et==null?void 0:et.message,he,tt,ot):(et==null?void 0:et.status)===3&&bt(et==null?void 0:et.message)})})},bt=c=>{n.default.confirm({centered:!0,title:"\u63D0\u793A",icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:h.createElement("div",null,"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",c,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},gt=c=>In(void 0,null,function*(){var he;const tt=yield(0,_.o3)({exercise_user_id:(he=gn.exerciseUserInfo)==null?void 0:he.exercise_user_id,shixun_id:c.shixun_id});let ot;tt!=null&&tt.redo?ot=n.default.confirm({width:530,title:"\u63D0\u793A",icon:null,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u518D\u60F3\u60F3",content:h.createElement("div",null,"\u60A8\u4E4B\u524D\u5DF2\u7ECF\u6311\u6218\u8FC7\u8BE5\u5B9E\u8BAD\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u9700\u8981\u91CD\u65B0\u6311\u6218"),onCancel:()=>{ot.destroy()},onOk:()=>In(void 0,null,function*(){const qe=yield(0,_.L8)({id:tt==null?void 0:tt.myshixun_identifier,url:tt==null?void 0:tt.url});if(qe){ca();const et=(0,Pt.cloneDeep)(G==null?void 0:G.exercise_question_types),ct=et==null?void 0:et.findIndex(pt=>pt.question_type===5);et[ct].items.find(pt=>pt.question_id===c.question_id).redo=!1,et[ct].items.find(pt=>pt.question_id===c.question_id).shixun_identifier=qe.shixun_identifier,G.exercise_question_types=et,go(G);const Tt=zn(Pn({},c),{shixun_identifier:qe.shixun_identifier});xt(Tt)}})}):(ca(),xt(c))}),_t=c=>In(void 0,null,function*(){if(c.hack_identifier){const he=yield(0,_.nF)({id:c.hack_identifier});(he==null?void 0:he.status)===0&&(ca(),ho(!1),Xo(`/myproblems/${he.identifier}?type=exercises&exercisesId=${rn.categoryId}&coursesId=${rn.coursesId}&login=${rn.login}&questionId=${c.question_id}${ra.current||""}`),Ea("block"))}}),Gt=(c,he,tt,ot,qe,et,ct)=>In(void 0,null,function*(){var Tt,pt;Bo(!1),ct||No(!0);let it,Ft={questionId:c,exercise_choice_id:he,answer_text:tt};if(((Ct==null?void 0:Ct.ip_limit)==="inner"||Ct.ip_bind_type)&&(it=yield(0,ce.y)({ip_limit:Ct==null?void 0:Ct.ip_limit,ip_bind:Ct==null?void 0:Ct.ip_bind_type})),qe&&(Ft.kp_content=qe),qe&&(Ft.kp_clazz=et),!c){console.error("handleSave no questionId params");return}Ft.ip=it;const nt=yield(0,_.oX)(Ft);if(No(!1),typeof nt=="object")return(Tt=nt==null?void 0:nt.alert)!=null&&Tt.length&&((pt=nt==null?void 0:nt.alert)==null||pt.map(dt=>{n.default.warn({title:"\u63D0\u793A",autoFocusButton:null,content:dt})})),(nt==null?void 0:nt.status)===0?(ot&&ot(),Qt()):(nt==null?void 0:nt.status)===-1?setTimeout(()=>{ze()},1e3):(nt==null?void 0:nt.status)===-2?Yo(nt):(nt==null?void 0:nt.status)===-3?(nt.status=-1,Yo(nt)):(nt==null?void 0:nt.status)===-4?Qt():(nt==null?void 0:nt.status)===-5?Yt({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:zn(Pn({},Ct),{id:rn.categoryId,errorMessage:nt==null?void 0:nt.message})}}):W.ZP.warning(nt.message||"\u8BD5\u5377\u5DF2\u622A\u6B62\uFF0C\u5DF2\u81EA\u52A8\u4EA4\u5377"),nt}),cn=c=>In(void 0,null,function*(){var he,tt,ot,qe;const et=yield(0,_.PT)(Pn({},rn));if((et==null?void 0:et.status)===-4){n.default.info({width:500,centered:!0,icon:null,title:"\u63D0\u793A",content:et==null?void 0:et.message,okText:"\u6211\u77E5\u9053\u4E86"});return}const ct=et!=null&&et.left_time?Date.now()+(et==null?void 0:et.left_time)*1e3:null;(Qo==null?void 0:Qo.question_type)==8&&!Ko&&(yield re(),Bo(!0));const Tt=yield(0,_.Vj)({id:rn.categoryId});if(!Tt)return;let pt;if(console.log("res===",Tt,Qo,Ko),Tt.question_undo!==0||Tt.oj_undo!==0){let it;if(Tt.question_undo>0){const Ft=h.createElement("span",null,"\u6709",h.createElement("span",{className:b.orangeNum},Tt.question_undo),"\u9898\u672A\u5B8C\u6210");if(Tt.oj_undo>0||Tt.shixun_undo>0){const dt=[{type:((tt=(he=G==null?void 0:G.exercise_question_types)==null?void 0:he.find(Et=>Et.question_type==6))==null?void 0:tt.name)||"\u7F16\u7A0B\u9898",num:Tt.oj_undo},{type:((qe=(ot=G==null?void 0:G.exercise_question_types)==null?void 0:ot.find(Et=>Et.question_type==5))==null?void 0:qe.name)||"\u5B9E\u8BAD\u9898",num:Tt.shixun_undo}].filter(Et=>Et.num>0);it=h.createElement("div",null,Ft,"\uFF08\u5176\u4E2D\u6709",dt.map((Et,gr)=>h.createElement("span",null,h.createElement("span",{className:b.orangeNum},Et==null?void 0:Et.num),"\u4E2A",Et==null?void 0:Et.type,gr!==(dt==null?void 0:dt.length)-1?"\u3001":"")),"\uFF09")}}pt=n.default.confirm({width:530,title:"\u63D0\u793A",icon:null,centered:!0,keyboard:!1,okText:c?"\u77E5\u9053\u4E86":"\u786E\u8BA4\u4EA4\u5377",cancelText:"\u53D6\u6D88",content:h.createElement("div",null,it,c?`\u5728${v()(Tt.end_time).format("YYYY-MM-DD HH:mm")}\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898`:ct?`\u4F60\u672C\u573A\u8003\u8BD5\u5269\u4F59\u65F6\u95F4\u8FD8\u6709${(0,A.li)((ct-new Date().getTime())/1e3)} \uFF0C\u786E\u8BA4\u63D0\u524D\u4EA4\u5377\u5417\uFF1F`:"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:()=>In(void 0,null,function*(){fo(!1),Do(!1),c?Ct!=null&&Ct.screen_open?W.ZP.success("\u4FDD\u5B58\u6210\u529F"):ze():($a(!0),pt.update({cancelButtonProps:{disabled:!0}}),yield Nn())})})}else pt=n.default.confirm({width:530,title:"\u63D0\u793A",icon:null,centered:!0,keyboard:!1,okText:c?"\u77E5\u9053\u4E86":"\u786E\u8BA4\u4EA4\u5377",cancelText:"\u53D6\u6D88",content:h.createElement("div",null,c?`\u5728${v()(Tt.end_time).format("YYYY-MM-DD HH:mm")}\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898`:ct?`\u4F60\u672C\u573A\u8003\u8BD5\u5269\u4F59\u65F6\u95F4\u8FD8\u6709${(0,A.li)((ct-new Date().getTime())/1e3)} \uFF0C\u786E\u8BA4\u63D0\u524D\u4EA4\u5377\u5417\uFF1F`:"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:()=>In(void 0,null,function*(){fo(!1),Do(!1),c?Ct!=null&&Ct.screen_open?W.ZP.success("\u4FDD\u5B58\u6210\u529F"):ze():($a(!0),pt.update({cancelButtonProps:{disabled:!0}}),yield Nn())})})}),Vt=c=>h.createElement("div",null,h.createElement(w.Z,{strokeColor:{from:"#3061D0",to:"#63E0FB"},status:"active",percent:c}),h.createElement("div",{className:"c-grey-c tc mt10 mb20"},"\u6B63\u5728\u5224\u5206\u4E2D\u2026")),bn=()=>{let c=0,he=n.default.info({title:"\u4EA4\u5377\u4E2D",icon:null,className:"modal-footer-none",content:Vt(c)}),tt=setInterval(()=>{c<=100?(c+=2,he.update({content:Vt(c)})):(he.destroy(),clearInterval(tt))},50)},Nn=()=>In(void 0,null,function*(){if(gl||ta.current)return;ta.current=!0;const c=yield(0,_.VL)({categoryId:rn.categoryId,commit_method:1});yield Yt({type:"exercise/setActionTabs",payload:Pn({},{removeEventListenerExitScreen:!0})}),$a(!1),(c==null?void 0:c.status)===0&&(bn(),Ma(!1),(0,A.G5)(aa),setTimeout(()=>{var he,tt,ot,qe,et;n.default.info({centered:!0,title:"\u4EA4\u5377\u6210\u529F",className:`${b.commitModal}`,width:520,icon:null,content:h.createElement("div",null,h.createElement(D.Z,{className:"mb20",gutter:20},h.createElement(g.Z,{span:12,className:b.commitItem},h.createElement("span",{className:b.commitInfoLabel},"\u59D3\u540D"),h.createElement("span",{className:b.commitInfoValue,title:(he=G==null?void 0:G.exercise)==null?void 0:he.user_name},((tt=G==null?void 0:G.exercise)==null?void 0:tt.user_name)||"- -")),h.createElement(g.Z,{span:12,className:b.commitItem},h.createElement("span",{className:b.commitInfoLabel},"\u4F5C\u7B54\u65F6\u957F"),h.createElement("span",{className:b.commitInfoValue},(ot=c==null?void 0:c.data)==null?void 0:ot.user_exercise_time))),h.createElement(D.Z,{gutter:20},h.createElement(g.Z,{span:12,className:b.commitItem},h.createElement("span",{className:b.commitInfoLabel},"\u5B66\u53F7"),h.createElement("span",{className:b.commitInfoValue},((qe=G==null?void 0:G.exercise)==null?void 0:qe.student_id)||"- -")),h.createElement(g.Z,{span:12,className:b.commitItem},h.createElement("span",{className:b.commitInfoLabel},"\u4EA4\u5377\u65F6\u95F4"),h.createElement("span",{className:b.commitInfoValue},(et=c==null?void 0:c.data)==null?void 0:et.commit_time)))),okText:"\u786E\u5B9A",maskClosable:!1,keyboard:!1,onOk:()=>{(0,x.BU)(),ze()}})},3e3))}),Rt=(c,he,tt,ot,qe)=>In(void 0,null,function*(){Gt(he,c,null,()=>{var et,ct,Tt,pt;if(ot.user_answer=[],ot.user_answer.push(c),qe!=null&&qe.question_id){let it=(et=qe==null?void 0:qe.sub_exercise_questions)==null?void 0:et.filter(dt=>{var Et;return((Et=dt.user_answer)==null?void 0:Et.length)===0});const Ft=(ct=qe==null?void 0:qe.sub_exercise_questions)==null?void 0:ct.filter(dt=>dt.question_type==3),nt=Ft.length>0?Ft.every(dt=>{var Et;return(dt==null?void 0:dt.multi_count)==((Et=dt==null?void 0:dt.user_answer)==null?void 0:Et.length)})?1:Ft.some(dt=>{var Et;return(dt==null?void 0:dt.multi_count)>((Et=dt==null?void 0:dt.user_answer)==null?void 0:Et.length)})?2:0:1;G.question_status.find(dt=>dt.ques_id===(qe==null?void 0:qe.question_id)).ques_status=(it==null?void 0:it.length)===((Tt=qe==null?void 0:qe.sub_exercise_questions)==null?void 0:Tt.length)?0:(it==null?void 0:it.length)>0&&(it==null?void 0:it.length)<((pt=qe==null?void 0:qe.sub_exercise_questions)==null?void 0:pt.length)?2:nt}else G.question_status.find(it=>it.ques_id===he).ques_status=c?1:0;go(Pn({},G))})}),Jt=(c,he,tt,ot,qe)=>In(void 0,null,function*(){Gt(ot.question_id,c,null,()=>{var et,ct,Tt;ot.user_answer=[],ot.user_answer.push(c),qe.user_answer=[...ot.user_answer];let pt=(et=qe==null?void 0:qe.sub_exercise_questions)==null?void 0:et.filter(it=>{var Ft;return((Ft=it.user_answer)==null?void 0:Ft.length)===0});G.question_status.find(it=>it.ques_id===he).ques_status=(pt==null?void 0:pt.length)===((ct=qe==null?void 0:qe.sub_exercise_questions)==null?void 0:ct.length)?0:(pt==null?void 0:pt.length)>0&&(pt==null?void 0:pt.length)<((Tt=qe==null?void 0:qe.sub_exercise_questions)==null?void 0:Tt.length)?2:1,go(Pn({},G))})}),Mt=(c,he,tt,ot)=>{c!=null&&c.length&&Gt(he,c,null,()=>{var qe,et,ct,Tt;if(tt.user_answer=c,ot!=null&&ot.question_id){let pt=(qe=ot==null?void 0:ot.sub_exercise_questions)==null?void 0:qe.filter(nt=>{var dt;return((dt=nt.user_answer)==null?void 0:dt.length)===0});const it=(et=ot==null?void 0:ot.sub_exercise_questions)==null?void 0:et.filter(nt=>nt.question_type==3),Ft=it.length>0?it.every(nt=>{var dt;return(nt==null?void 0:nt.multi_count)==((dt=nt==null?void 0:nt.user_answer)==null?void 0:dt.length)})?1:it.some(nt=>{var dt;return(nt==null?void 0:nt.multi_count)>((dt=nt==null?void 0:nt.user_answer)==null?void 0:dt.length)})?2:0:1;G.question_status.find(nt=>nt.ques_id===(ot==null?void 0:ot.question_id)).ques_status=(pt==null?void 0:pt.length)===((ct=ot==null?void 0:ot.sub_exercise_questions)==null?void 0:ct.length)?0:(pt==null?void 0:pt.length)>0&&(pt==null?void 0:pt.length)<((Tt=ot==null?void 0:ot.sub_exercise_questions)==null?void 0:Tt.length)?2:Ft}else G.question_status.find(pt=>pt.ques_id===he).ques_status=c!=null&&c.length?1:0;go(Pn({},G))})},It=(c,he,tt,ot,qe,et)=>In(void 0,null,function*(){return c.replaceAll(" ","")?yield Gt(tt,he,c,()=>{var Tt,pt,it,Ft;let nt={choice_id:he,answer_text:c};if(qe.user_answer.filter(dt=>dt.choice_id!=he)?qe.user_answer.splice(he-1,1,nt):qe.user_answer.push(nt),et!=null&&et.question_id){let dt=(Tt=et==null?void 0:et.sub_exercise_questions)==null?void 0:Tt.filter(jt=>{var Dn;return((Dn=jt.user_answer)==null?void 0:Dn.length)===0});const Et=(pt=et==null?void 0:et.sub_exercise_questions)==null?void 0:pt.filter(jt=>jt.question_type==3),gr=Et.length>0?Et.every(jt=>{var Dn;return(jt==null?void 0:jt.multi_count)==((Dn=jt==null?void 0:jt.user_answer)==null?void 0:Dn.length)})?1:Et.some(jt=>{var Dn;return(jt==null?void 0:jt.multi_count)>((Dn=jt==null?void 0:jt.user_answer)==null?void 0:Dn.length)})?2:0:1;G.question_status.find(jt=>jt.ques_id===(et==null?void 0:et.question_id)).ques_status=(dt==null?void 0:dt.length)===((it=et==null?void 0:et.sub_exercise_questions)==null?void 0:it.length)?0:(dt==null?void 0:dt.length)>0&&(dt==null?void 0:dt.length)<((Ft=et==null?void 0:et.sub_exercise_questions)==null?void 0:Ft.length)?2:gr}else G.question_status.find(dt=>dt.ques_id===tt).ques_status=ot.every(dt=>!!dt.answer_text)?1:G.question_status.find(dt=>dt.ques_id===tt).ques_status=ot.some(dt=>!!dt.answer_text)?2:0;go(Pn({},G))}):(Qt(),{status:-4,message:"\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"})}),Ut=(c,he,tt,ot,qe)=>In(void 0,null,function*(){return c.replaceAll(" ","")?yield Gt(tt,he,c,()=>{G.question_status.find(Tt=>Tt.ques_id===tt).ques_status=ot.every(Tt=>!!Tt.value)?1:G.question_status.find(Tt=>Tt.ques_id===tt).ques_status=ot.some(Tt=>!!Tt.value)?2:0;let ct={choice_id:he,answer_text:c};qe.user_answer.filter(Tt=>Tt.choice_id!=he)?qe.user_answer.splice(he-1,1,ct):qe.user_answer.push(ct),qe.repeat_answer||(qe.israp=!0),go(Pn({},G))}):(Qt(),{status:-4,message:"\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"})}),hn=(c,he,tt,ot,qe)=>{if(!c.replaceAll(" ","")){Qt();return}Gt(he,null,c,()=>{var et,ct,Tt,pt;if(tt.user_answer=[],tt.user_answer.push(c),qe!=null&&qe.question_id){let it=(et=qe==null?void 0:qe.sub_exercise_questions)==null?void 0:et.filter(dt=>{var Et;return((Et=dt.user_answer)==null?void 0:Et.length)===0});const Ft=(ct=qe==null?void 0:qe.sub_exercise_questions)==null?void 0:ct.filter(dt=>dt.question_type==3),nt=Ft.length>0?Ft.every(dt=>{var Et;return(dt==null?void 0:dt.multi_count)==((Et=dt==null?void 0:dt.user_answer)==null?void 0:Et.length)})?1:Ft.some(dt=>{var Et;return(dt==null?void 0:dt.multi_count)>((Et=dt==null?void 0:dt.user_answer)==null?void 0:Et.length)})?2:0:1;G.question_status.find(dt=>dt.ques_id===(qe==null?void 0:qe.question_id)).ques_status=(it==null?void 0:it.length)===((Tt=qe==null?void 0:qe.sub_exercise_questions)==null?void 0:Tt.length)?0:(it==null?void 0:it.length)>0&&(it==null?void 0:it.length)<((pt=qe==null?void 0:qe.sub_exercise_questions)==null?void 0:pt.length)?2:nt}else G.question_status.find(it=>it.ques_id===he).ques_status=c?1:0;go(Pn({},G))},void 0,void 0,ot)},Fn=(c,he,tt)=>{var ot,qe,et,ct,Tt,pt,it;let Ft="";const nt=(c==null?void 0:c.question_type)===0||(c==null?void 0:c.question_type)===1;nt&&((ot=c==null?void 0:c.question_choices)==null||ot.forEach((Et,gr)=>{Et.standard_boolean&&(Ft=Ft+jr[gr])}));const dt=((qe=G==null?void 0:G.exercise)==null?void 0:qe.user_exercise_status)===1||!c.repeat_answer&&((et=c==null?void 0:c.user_answer)==null?void 0:et.length)>0&&c.ques_status!==0;return h.createElement("div",null,h.createElement("div",{className:b.baseMargin},h.createElement(M.ZP.Group,{disabled:dt,defaultValue:(ct=c==null?void 0:c.user_answer)==null?void 0:ct[0],onChange:Et=>Rt(Et.target.value,c==null?void 0:c.question_id,he,c,tt),className:c.user_score&&`edu-radio-${c.user_score===c.question_score?"green":"red"}`},(Tt=c==null?void 0:c.question_choices)==null?void 0:Tt.map((Et,gr)=>{const Dn=c.question_type==2?"":`${jr[gr]}.`;return h.createElement("div",{className:b.answerWrap,key:gr},h.createElement(M.ZP,{className:b.noWrap,value:Et==null?void 0:Et.choice_id},h.createElement(D.Z,{wrap:!1,align:"middle"},h.createElement(g.Z,null,h.createElement("span",{style:{color:"#333333"},className:"font16 mr3"},Dn)),h.createElement(g.Z,null,h.createElement(ye.Z,{className:b.renderHtml,value:Et==null?void 0:Et.choice_text})))))}))),((0,q.GJ)()||(0,q.dE)()&&((pt=G==null?void 0:G.exercise)==null?void 0:pt.user_exercise_status)>0&&((it=G==null?void 0:G.exercise)==null?void 0:it.open_score))&&h.createElement(D.Z,{justify:"end",className:"mb20",align:"middle"},h.createElement("span",{className:"font14",style:{color:"#6A7283"}},"\u5F97\u5206"),h.createElement("span",{className:"font14 ml10"},(c==null?void 0:c.user_score)&&h.createElement("span",null,h.createElement("span",{className:Ur[Number(c==null?void 0:c.answer_status)]||"c-orange-ff9"},c==null?void 0:c.user_score),h.createElement("span",{style:{marginLeft:5,color:"#6A7283"}},"\u5206")),!(c!=null&&c.user_score)&&h.createElement("span",{className:"c-red"},"\u672A\u8BC4"))),(c==null?void 0:c.standard_answer_show)&&h.createElement("div",{className:b.analysisWrap},h.createElement("div",{className:b.greyBg},h.createElement(D.Z,{className:"mb20"},h.createElement(g.Z,{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u7B54\u6848\u3011"),h.createElement(g.Z,null,nt?Ft:c==null?void 0:c.standard_answer_show)),h.createElement(D.Z,{align:"middle"},h.createElement("span",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u89E3\u6790\u3011"),h.createElement(ye.Z,{className:b.renderHtml,value:c==null?void 0:c.analysis})))))},_n=(c,he,tt)=>{var ot,qe;const et=((ot=G==null?void 0:G.exercise)==null?void 0:ot.user_exercise_status)===1||!c.repeat_answer&&c.ques_status!==0;return h.createElement("div",null,(qe=c==null?void 0:c.sub_exercise_questions)==null?void 0:qe.map((ct,Tt)=>{var pt;let it="";return(pt=ct==null?void 0:ct.question_choices)==null||pt.forEach((Ft,nt)=>{Ft.standard_boolean&&(it=it+jr[nt])}),h.createElement("div",{className:`${b.baseMargin} ${b.singleItem} mb20`,key:Tt},h.createElement("div",{style:{display:"flex",alignItems:"baseline",marginBottom:40}},h.createElement("span",{style:{flexShrink:0,color:"#999999"},className:"font14"},"\uFF08",ct==null?void 0:ct.question_score,"\u5206\uFF09"),h.createElement("span",{style:{flexShrink:0,marginRight:6},className:"font16"},tt+1+"."+(Tt+1)),h.createElement(ye.Z,{value:ct==null?void 0:ct.question_title})),((ct==null?void 0:ct.question_type)==0||(ct==null?void 0:ct.question_type)==2)&&Fn(ct,ct==null?void 0:ct.question_type,c),(ct==null?void 0:ct.question_type)==1&&un(ct,ct==null?void 0:ct.question_type,c),(ct==null?void 0:ct.question_type)==3&&jn(ct,ct==null?void 0:ct.question_type,c),(ct==null?void 0:ct.question_type)==4&&Wn(ct,ct==null?void 0:ct.question_type,c))}))};console.log("----",G);const un=(c,he,tt)=>{var ot,qe,et,ct,Tt,pt;let it="";const Ft=(c==null?void 0:c.question_type)===0||(c==null?void 0:c.question_type)===1;Ft&&((ot=c==null?void 0:c.question_choices)==null||ot.forEach((dt,Et)=>{dt.standard_boolean&&(it=it+jr[Et])}));const nt=((qe=G==null?void 0:G.exercise)==null?void 0:qe.user_exercise_status)===1||!c.repeat_answer&&((et=c==null?void 0:c.user_answer)==null?void 0:et.length)>0&&c.ques_status!==0;return h.createElement("div",null,h.createElement("div",{className:b.baseMargin},h.createElement(B.default.Group,{disabled:nt,defaultValue:c==null?void 0:c.user_answer,style:{flexDirection:"column"},onChange:dt=>Mt(dt,c==null?void 0:c.question_id,c,tt),className:c.user_score&&`edu-checkbox-${c.user_score===c.question_score?"green":"red"}`},(ct=c==null?void 0:c.question_choices)==null?void 0:ct.map((dt,Et)=>{const gr=`${jr[Et]}.`;return h.createElement("div",{className:b.answerWrap},h.createElement(B.default,{value:dt==null?void 0:dt.choice_id},h.createElement(D.Z,{wrap:!1,align:"middle"},h.createElement(g.Z,null,h.createElement("span",{style:{color:"#333333",whiteSpace:"nowrap"},className:"font16 mr3"},gr)),h.createElement(g.Z,null,h.createElement(ye.Z,{className:b.renderHtml,value:dt==null?void 0:dt.choice_text})))))}))),((0,q.GJ)()||(0,q.dE)()&&((Tt=G==null?void 0:G.exercise)==null?void 0:Tt.user_exercise_status)>0&&((pt=G==null?void 0:G.exercise)==null?void 0:pt.open_score))&&h.createElement(D.Z,{justify:"end",className:"mb20",align:"middle"},h.createElement("span",{className:"font14",style:{color:"#6A7283"}},"\u5F97\u5206"),h.createElement("span",{className:"font14 ml10"},(c==null?void 0:c.user_score)&&h.createElement("span",null,h.createElement("span",{className:Ur[Number(c==null?void 0:c.answer_status)]||"c-orange-ff9"},c==null?void 0:c.user_score),h.createElement("span",{style:{marginLeft:5,color:"#6A7283"}},"\u5206")),!(c!=null&&c.user_score)&&h.createElement("span",{className:"c-red"},"\u672A\u8BC4"))),(c==null?void 0:c.standard_answer_show)&&h.createElement("div",{className:b.analysisWrap},h.createElement("div",{className:b.greyBg},h.createElement(D.Z,{className:"mb20"},h.createElement(g.Z,{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u7B54\u6848\u3011"),h.createElement(g.Z,null,Ft?it:c==null?void 0:c.standard_answer_show)),h.createElement(D.Z,{align:"middle",className:"mt15"},h.createElement("span",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u89E3\u6790\u3011"),h.createElement(ye.Z,{className:b.renderHtml,value:c==null?void 0:c.analysis})))))},jn=(c,he,tt)=>h.createElement(En,{item:c,sign:Vn,answerData:G,onBlur:(ot,qe,et)=>In(void 0,null,function*(){return yield It(ot,qe,c==null?void 0:c.question_id,et,c,tt)})}),Wn=(c,he,tt)=>_o?h.createElement(Te,{item:c,answerData:G,onBlur:(ot,qe,et)=>Gt(c==null?void 0:c.question_id,null,ot,void 0,qe,et),isEducation:_o}):h.createElement(Je,{item:c,answerData:G,onBlur:(ot,qe)=>hn(ot,c==null?void 0:c.question_id,c,qe,tt),isEducation:_o,sign:Vn}),Cr=(c,he)=>h.createElement(Q,{item:c,answerData:G,exerciseId:rn.categoryId,coursesId:rn.coursesId}),nr=(c,he)=>h.createElement(d,{item:c,answerData:G}),Ar=(c,he)=>h.createElement(Lr,{setIsSubmitCode:Bo,item:c,sign:Vn,answerData:G,onBlur:(tt,ot,qe)=>In(void 0,null,function*(){return yield Ut(tt,ot,c==null?void 0:c.question_id,qe,c)})}),Nr=c=>{if(dl){const he=n.default.confirm({centered:!0,icon:null,title:"\u63D0\u793A",content:h.createElement("span",{className:"c-red"},"\u4F60\u7684\u7B54\u9898\u5185\u5BB9\u672A\u63D0\u4EA4\u8BC4\u6D4B\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u8BE5\u9898\u65E0\u6CD5\u83B7\u5F97\u5206\u6570"),okText:"\u7ACB\u5373\u63D0\u4EA4",cancelText:"\u5FFD\u7565",onCancel:()=>{La(!1),c==null||c()},onOk:()=>{La(!1),yn.Z.publish("BFill:Submit",{})}});return}c==null||c()};(0,t.useEffect)(()=>{const c=yn.Z.subscribe("BFill:Submit:Change",({value:he})=>{La(he)});return()=>{c()}},[]);const Tn=(c,he,tt)=>{var ot,qe;const et=(ot=G==null?void 0:G.exercise_question_types)==null?void 0:ot.find(ct=>ct.question_type===he);return h.createElement("div",{className:b.answerSheetWrap},h.createElement("div",{className:b.answerSheetQuestionTitle,onClick:()=>{Io[he]=!Io[he],tl(Pn({},Io))}},!Io[he]&&h.createElement(k.Z,null),Io[he]&&h.createElement(de.Z,null),h.createElement("span",{className:"ml5 c-grey-666"},c)),!Io[he]&&h.createElement(D.Z,{className:b.answerSheet,gutter:[20,20],key:he},(qe=et==null?void 0:et.items)==null?void 0:qe.map(function(ct,Tt){var pt,it,Ft,nt,dt,Et,gr;let jt=`
|
|
${(pt=G==null?void 0:G.question_status)!=null&&pt.some(Dn=>{var Or,Mr;return Dn.ques_id===ct.question_id&&(Dn==null?void 0:Dn.ques_status)===1&&((Or=G==null?void 0:G.exercise)==null?void 0:Or.exercise_status)!==3&&!((Mr=G==null?void 0:G.exercise)!=null&&Mr.open_score_commited)})?b.active:""}
|
|
${(it=G==null?void 0:G.question_status)!=null&&it.some(Dn=>{var Or,Mr;return Dn.ques_id===ct.question_id&&(Dn==null?void 0:Dn.ques_status)===2&&((Or=G==null?void 0:G.exercise)==null?void 0:Or.exercise_status)!==3&&!((Mr=G==null?void 0:G.exercise)!=null&&Mr.open_score_commited)})?b.partialActive:""}
|
|
${(Ft=G==null?void 0:G.question_status)!=null&&Ft.some(Dn=>{var Or,Mr;return Dn.ques_id===ct.question_id&&(Dn==null?void 0:Dn.score_status)===1&&(((Or=G==null?void 0:G.exercise)==null?void 0:Or.exercise_status)===3||((Mr=G==null?void 0:G.exercise)==null?void 0:Mr.open_score_commited))})?b.yes:""}
|
|
${(nt=G==null?void 0:G.question_status)!=null&&nt.some(Dn=>{var Or,Mr;return Dn.ques_id===ct.question_id&&(Dn==null?void 0:Dn.score_status)===2&&(((Or=G==null?void 0:G.exercise)==null?void 0:Or.exercise_status)===3||((Mr=G==null?void 0:G.exercise)==null?void 0:Mr.open_score_commited))})?b.no:""}
|
|
${(dt=G==null?void 0:G.question_status)!=null&&dt.some(Dn=>{var Or,Mr;return Dn.ques_id===ct.question_id&&(Dn==null?void 0:Dn.score_status)===3&&(((Or=G==null?void 0:G.exercise)==null?void 0:Or.exercise_status)===3||((Mr=G==null?void 0:G.exercise)==null?void 0:Mr.open_score_commited))})?b.bf:""}
|
|
`;if(ct.question_type===he)return(Et=G==null?void 0:G.exercise)!=null&&Et.open_score&&(Number(ct.question_score)===Number(ct.user_score)?jt=b.green:ct.user_score>0?jt=b.orange:jt=b.red),h.createElement(g.Z,null,h.createElement("div",{onClick:()=>{Nr(()=>{if(!(tt===sr&&Tt===vr)){if(Vn.current){Vn.current="appoint",Sr.current={oneindex:tt,twoindex:Tt};return}on({oneindex:tt,twoindex:Tt})}})},key:Tt,className:`
|
|
${b.answerSheetItem}
|
|
${jt}
|
|
${tt===sr&&Tt===vr?b.selected:""}
|
|
`},h.createElement("span",{className:b.qindex},Tt+1),((gr=G==null?void 0:G.question_status)==null?void 0:gr.some(Dn=>{var Or;return Dn.ques_id===ct.question_id&&(Dn==null?void 0:Dn.ques_status)===2&&((Or=G==null?void 0:G.exercise)==null?void 0:Or.exercise_status)!==3}))&&h.createElement("div",{style:{height:12,background:"rgba(22,93,255,0.4)",position:"absolute",width:"100%",bottom:0}}),ct.is_marked&&h.createElement("i",{className:`iconfont icon-biaoji1 ${b.markIcon}`})))})))},Wr=(c,he)=>{var tt,ot,qe,et;let ct="";return((c==null?void 0:c.question_type)===0||(c==null?void 0:c.question_type)===1)&&((tt=c==null?void 0:c.question_choices)==null||tt.forEach((pt,it)=>{pt.standard_boolean&&(ct=ct+jr[it])})),h.createElement("div",{className:b.questionItem,id:`Anchor_${c==null?void 0:c.question_type}_${he}`},h.createElement("div",{style:{display:"flex",alignItems:"baseline",marginBottom:40}},h.createElement("span",{className:`${b.questionScore} mr10`},c==null?void 0:c.question_score,"\u5206"),h.createElement("span",{className:`font16 ${b.noWrap}`},he+1,"\u3001"),h.createElement(ye.Z,{value:(c==null?void 0:c.question_type)===8?c==null?void 0:c.description:c==null?void 0:c.question_title}),!!((ot=c==null?void 0:c.schools)!=null&&ot.length)&&h.createElement(I.Z,{title:"\u8BE5\u5B9E\u8BAD\u9898\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},h.createElement("i",{className:"iconfont icon-zhidinggongkai1 line24 font18 c-orange"}))),(c==null?void 0:c.question_type)===6&&h.createElement(Pe.Z,{style:{margin:`-30px 0 ${Po.get("check")?11:30}px 60px`},dataSource:(c==null?void 0:c.languages)||[]}),(c==null?void 0:c.question_type)==0&&Fn(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==2&&Fn(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==1&&un(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==3&&jn(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==4&&Wn(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==5&&((qe=G==null?void 0:G.exercise)==null?void 0:qe.user_exercise_status)===0&&(c==null?void 0:c.answer_status)!=3&&h.createElement("div",{style:{margin:"-28px 0 12px 62px"}},h.createElement(D.Z,{justify:"space-between",align:"middle"},h.createElement(g.Z,null,h.createElement("span",{className:"font14 c-grey-666"},"\u4EFB\u52A1\u5173\u5361")),h.createElement(g.Z,null,h.createElement(Ze.Z,{type:"primary",className:b.toIframeBtn,onClick:()=>In(void 0,null,function*(){return yield gt(c)})},"\u8FDB\u5165\u7B54\u9898")))),(c==null?void 0:c.question_type)==5&&Cr(c,c==null?void 0:c.question_type),(0,q.dE)()&&((et=G==null?void 0:G.exercise)==null?void 0:et.user_exercise_status)===0&&(c==null?void 0:c.question_type)==6&&h.createElement("div",{style:{margin:"-28px 0 -25px"}},h.createElement(D.Z,{justify:"end",align:"middle"},h.createElement(g.Z,null,h.createElement(Ze.Z,{type:"primary",className:b.toIframeBtn,onClick:()=>_t(c)},"\u8FDB\u5165\u7B54\u9898")))),(c==null?void 0:c.question_type)==6&&nr(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==7&&_n(c,c==null?void 0:c.question_type,he),(c==null?void 0:c.question_type)==8&&Ar(c,c==null?void 0:c.question_type),(c==null?void 0:c.answer_comments)&&h.createElement(Xt,{hideScore:!0,list:c==null?void 0:c.answer_comments}))},or=(c,he)=>h.createElement(t.Fragment,null,Tn((c==null?void 0:c.name)||Rn.fw[c.question_type].name,c.question_type,he)),Vn=(0,t.useRef)(!1),Sr=(0,t.useRef)({}),Qr=(0,t.useRef)(),pn=(0,t.useRef)({}),fn=()=>{var c,he,tt,ot,qe,et,ct,Tt,pt;window.blur();const it=(tt=(he=(c=G.exercise_question_types)==null?void 0:c[sr])==null?void 0:he.items)==null?void 0:tt[vr];if(!ia&&((ot=G==null?void 0:G.exercise)==null?void 0:ot.user_exercise_status)===0&&(0,q.dE)()&&!(it!=null&&it.repeat_answer)&&((qe=it==null?void 0:it.user_answer)==null?void 0:qe.length)>0&&(it==null?void 0:it.ques_status)===0){Qr.current="prev",la(!0);return}!(it!=null&&it.repeat_answer)&&((et=it==null?void 0:it.user_answer)==null?void 0:et.length)>0&&(it.ques_status=1),sa.current.scrollTo({top:0,left:0,behavior:"smooth"}),vr===0?(sr-=1,vr=G.exercise_question_types[sr].items.length-1):vr-=1,(it==null?void 0:it.question_type)==8&&!Ko&&setTimeout(()=>{re(it)},500),qo((pt=(Tt=(ct=G==null?void 0:G.exercise_question_types)==null?void 0:ct[sr])==null?void 0:Tt.items)==null?void 0:pt[vr]),Bo(!1),Ho(sr),Wo(vr)},dn=()=>{var c,he,tt,ot,qe,et,ct,Tt,pt,it,Ft;window.blur();const nt=(tt=(he=(c=G.exercise_question_types)==null?void 0:c[sr])==null?void 0:he.items)==null?void 0:tt[vr];if(!ia&&((ot=G==null?void 0:G.exercise)==null?void 0:ot.user_exercise_status)===0&&(0,q.dE)()&&!(nt!=null&&nt.repeat_answer)&&((qe=nt==null?void 0:nt.user_answer)==null?void 0:qe.length)>0&&(nt==null?void 0:nt.ques_status)===0){Qr.current="next",la(!0);return}!(nt!=null&&nt.repeat_answer)&&((et=nt==null?void 0:nt.user_answer)==null?void 0:et.length)>0&&(nt.ques_status=1),sa.current.scrollTo({top:0,left:0,behavior:"smooth"}),((Tt=(ct=G==null?void 0:G.exercise_question_types[sr])==null?void 0:ct.items)==null?void 0:Tt.length)-1===vr?(sr=sr+1,vr=0):vr=vr+1,(nt==null?void 0:nt.question_type)==8&&!Ko&&setTimeout(()=>{re(nt)},500),qo((Ft=(it=(pt=G==null?void 0:G.exercise_question_types)==null?void 0:pt[sr])==null?void 0:it.items)==null?void 0:Ft[vr]),Bo(!1),Ho(sr),Wo(vr)},on=c=>{var he,tt,ot,qe,et,ct,Tt,pt,it;const Ft=c||Sr.current,nt=(ot=(tt=(he=G.exercise_question_types)==null?void 0:he[sr])==null?void 0:tt.items)==null?void 0:ot[vr];if(!ia&&((qe=G==null?void 0:G.exercise)==null?void 0:qe.user_exercise_status)===0&&(0,q.dE)()&&!(nt!=null&&nt.repeat_answer)&&((et=nt==null?void 0:nt.user_answer)==null?void 0:et.length)>0&&(nt==null?void 0:nt.ques_status)===0){Qr.current="appoint",pn.current=Ft,la(!0);return}!(nt!=null&&nt.repeat_answer)&&((ct=nt==null?void 0:nt.user_answer)==null?void 0:ct.length)>0&&(nt.ques_status=1),(nt==null?void 0:nt.question_type)==8&&!Ko&&setTimeout(()=>{re(nt)},500),qo((it=(pt=(Tt=G==null?void 0:G.exercise_question_types)==null?void 0:Tt[Ft==null?void 0:Ft.oneindex])==null?void 0:pt.items)==null?void 0:it[Ft==null?void 0:Ft.twoindex]),Bo(!1),Ho(Ft==null?void 0:Ft.oneindex),Wo(Ft==null?void 0:Ft.twoindex),sa.current.scrollTo({top:0,left:0,behavior:"smooth"})},rr=()=>In(void 0,null,function*(){var c;if(Vn.current){Vn.current="refresh";return}const he=yield ge();(c=G==null?void 0:G.exercise)!=null&&c.left_time&&(yield We(!0)),he!=null&&he.status||W.ZP.success("\u66F4\u65B0\u6210\u529F")}),Qt=()=>{var c,he;switch(Vn.current){case"prev":fn();break;case"next":dn();break;case"appoint":on();break;case"submit":cn(!1);break;case"refresh":rr();break;default:}((c=document.activeElement)==null?void 0:c.name)==="edu-program-fill"||((he=document.activeElement)==null?void 0:he.name)==="sign"?Vn.current=!0:Vn.current=!1,Sr.current={}},On=()=>{var c,he,tt,ot,qe,et,ct,Tt,pt,it,Ft,nt;const dt=(he=(c=G==null?void 0:G.exercise_question_types)==null?void 0:c[sr].items)==null?void 0:he[vr];return h.createElement(t.Fragment,{key:sr},h.createElement("div",{className:"pt20 mb20"},h.createElement("span",{className:b.questionTypeTitle},(0,A.EM)(sr+1),"\u3001",(ot=(tt=G==null?void 0:G.exercise_question_types)==null?void 0:tt[sr])==null?void 0:ot.name),h.createElement("span",{className:b.questionTypeInfo},"\uFF08\u5171",(et=(qe=G==null?void 0:G.exercise_question_types)==null?void 0:qe[sr])==null?void 0:et.count,"\u9898\uFF1B",((Tt=(ct=G==null?void 0:G.exercise_question_types)==null?void 0:ct[sr])==null?void 0:Tt.question_type)===7?`\u5305\u542B${(it=(pt=G==null?void 0:G.exercise_question_types)==null?void 0:pt[sr])==null?void 0:it.sub_questions_count}\u5C0F\u9898`:""," \u5171",(nt=(Ft=G==null?void 0:G.exercise_question_types)==null?void 0:Ft[sr])==null?void 0:nt.score,"\u5206\uFF09"),!(dt!=null&&dt.repeat_answer)&&h.createElement("span",{style:{color:"#E30000",marginLeft:20,fontSize:14}},"\u6CE8\u610F\uFF1A\u8BE5\u9898\u4F5C\u7B54\u4E4B\u540E\u4E0D\u5141\u8BB8\u4FEE\u6539\u7B54\u6848\u3002")),h.createElement(t.Fragment,{key:vr},Wr(dt,vr)))},tr=()=>{Mo(!0)},Xn=()=>In(void 0,null,function*(){if(localStorage.getItem("stopGetVrsEnvStatus")=="\u865A\u62DF\u4EFF\u771F\u8D44\u6E90\u52A0\u8F7D\u5B8C\u6210")return;const he=yield(0,ae.ZP)(`/api/courses/${rn.coursesId}/exercises/${rn.categoryId}/exercise_status.json`,{method:"get"});(he==null?void 0:he.status)==0&&(he==null?void 0:he.vrs_env_status)==1?(localStorage.setItem("stopGetVrsEnvStatus","\u865A\u62DF\u4EFF\u771F\u8D44\u6E90\u52A0\u8F7D\u5B8C\u6210"),_l(!0)):setTimeout(()=>{localStorage.setItem("stopGetVrsEnvStatus","\u865A\u62DF\u4EFF\u771F\u8D44\u6E90\u672A\u52A0\u8F7D\u5B8C\u6210"),Xn()},1500)});return h.createElement(E.Z,{size:"middle",spinning:nl,tip:h.createElement("div",{className:"c-grey-333 animation-delayed mt10"},"\u60A8\u5F53\u524D\u7F51\u7EDC\u8FDE\u63A5\u8F83\u6162\uFF0C\u5EFA\u8BAE\u60A8",h.createElement("span",{onClick:()=>window.location.reload(),className:"c-light-primary current"},"\u5237\u65B0"),"\u9875\u9762\u540E\u518D\u8BD5\uFF01")},ul&&h.createElement("div",{className:b.screenLock},h.createElement("h3",null,"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u7684\u7535\u8111\u6709",localStorage.screenNums,"\u4E2A\u663E\u793A\u5668"),h.createElement("h4",null,"\u8BF7\u5148\u79FB\u9664\u6389\u5176\u5B83\u7684\u663E\u793A\u5668\u8BBE\u5907\uFF01")),ya&&((Gn=G==null?void 0:G.exercise)==null?void 0:Gn.user_exercise_status)===0&&h.createElement(H.Z,{exerciseUserInfo:gn.exerciseUserInfo,iframe:ka,handleToDetail:ze,socket:aa,onStartScreenshot:()=>{Ct!=null&&Ct.screen_shot_open&&ba(!0)},onCloseScreenshot:()=>{Ct!=null&&Ct.screen_shot_open&&ba(!1)}}),h.createElement(te,{id:rn.categoryId,startRecording:xa,startScreenshot:Ca,onSuccuss:()=>{fo(Ct==null?void 0:Ct.screen_open),ge()},onBack:ze}),h.createElement("iframe",{style:{display:al},id:"iframeShixuns",className:b.iframe,src:ol,ref:ka,frameBorder:"0"}),So.status!==-2&&So.status!==-1&&h.createElement("div",{className:b.fixHeader},h.createElement(D.Z,{wrap:!1,align:"middle",className:"edu-container"},h.createElement(g.Z,null,(0,A.vB)((Bn=G==null?void 0:G.exercise)==null?void 0:Bn.exercise_status)),h.createElement(g.Z,{className:`${b.exerciseTitle} ml10`,title:(st=G==null?void 0:G.exercise)==null?void 0:st.exercise_name},(Ot=G==null?void 0:G.exercise)==null?void 0:Ot.exercise_name),h.createElement(g.Z,{style:{marginLeft:"auto"}},((wn=G==null?void 0:G.exercise)==null?void 0:wn.user_exercise_status)===1&&h.createElement(ne.ZP,{className:b.changeButton,type:"primary",onClick:()=>{l.history.push(`/classrooms/${rn.coursesId}/exercise/${rn.categoryId}/detail`)}},"\u8FD4\u56DE")),!((0,q.GJ)()||(0,q.dE)()&&((ir=G==null?void 0:G.exercise)==null?void 0:ir.user_exercise_status)==1)&&!!((Mn=G==null?void 0:G.exercise)!=null&&Mn.left_time)&&h.createElement(g.Z,{style:{marginLeft:"auto"}},h.createElement("aside",{className:`${b.countDown} ${Go}`},h.createElement("i",{className:"iconfont icon-daojishi",style:{marginRight:6}}),h.createElement("span",{className:b.cnText},"\u5269\u4F59\u7B54\u9898\u65F6\u957F"),fl?h.createElement(Er,{value:Fa,onFinish:()=>We()}):h.createElement("div",{style:{color:"#37AD83",fontSize:"20px",fontWeight:"500",marginLeft:10}},(0,A.Gh)((Yn=G==null?void 0:G.exercise)==null?void 0:Yn.left_time)))),h.createElement(g.Z,null,!((0,q.GJ)()||(0,q.dE)()&&(($r=G==null?void 0:G.exercise)==null?void 0:$r.user_exercise_status)==1)&&gn.actionTabs.key!=="student-unlock"&&Aa&&h.createElement(Ze.Z,{className:`${b.refreshBtn} ml30`,onClick:rr},h.createElement("span",{className:"iconfont icon-shuaxin2 mr5"}),"\u5237\u65B0")),h.createElement(g.Z,null,(0,q.dE)()&&((Fr=G==null?void 0:G.exercise)==null?void 0:Fr.user_exercise_status)===0&&h.createElement(Ze.Z,{className:`${b.submitButton} ml10`,type:"primary",onClick:()=>In(void 0,null,function*(){Nr(()=>In(void 0,null,function*(){if(Vn.current){Vn.current="submit";return}yield cn(!1)}))})},(0,an._V)(an.CP.answer7))),h.createElement(g.Z,null,((Kn=G==null?void 0:G.exercise)==null?void 0:Kn.forbid_screen)&&h.createElement(ne.ZP,{className:`${b.submitButton} ml10`,type:"primary",onClick:tr},(0,an._V)(an.CP.answer12))),h.createElement(g.Z,null,(((Pr=G==null?void 0:G.exercise)==null?void 0:Pr.commit_status)==1||((Jn=G==null?void 0:G.exercise)==null?void 0:Jn.exercise_status)==3)&&((zr=G==null?void 0:G.exercise_answer_user)==null?void 0:zr.analysis)&&h.createElement("span",{className:b.teachAnalysis,onClick:()=>Pa(!0)},h.createElement("i",{className:"iconfont icon-jiaoshipingjia"}),h.createElement("span",{className:"ml5"},"\u6559\u5E08\u8BC4\u4EF7"))))),h.createElement("section",{className:`edu-container ${b.wrapper} ${_o&&b.wrpAnswer}`},So.status===0&&h.createElement(D.Z,{className:`${_o?"mt70":""} ${b.mainPart}`,wrap:!1},h.createElement(g.Z,{flex:Oo?"280px":"0px",className:_o?"mb100":""},h.createElement("div",{className:b.leftPart},h.createElement("section",null,Oo&&h.createElement(g.Z,{flex:"1",style:{background:"#fff",marginBottom:"10px",padding:"20px"}},h.createElement("div",{style:{marginBottom:15}},h.createElement("span",{style:{color:"#5F6368"}},"\u59D3\u540D"),h.createElement("span",{className:`ml10 ${b.userInfoText}`},((eo=G==null?void 0:G.exercise)==null?void 0:eo.user_name)||"- -")),h.createElement("div",null,h.createElement("span",{style:{color:"#5F6368"}},"\u5B66\u53F7"),h.createElement("span",{className:`ml10 ${b.userInfoText}`},((ao=G==null?void 0:G.exercise)==null?void 0:ao.student_id)||"- -"))),Oo&&(0,q.dE)()&&((Eo=G.exercise)==null?void 0:Eo.user_exercise_status)===0&&((ro=G.exercise)==null?void 0:ro.open_phone_video_recording)&&h.createElement(D.Z,{className:b.eduQrcode,style:{marginTop:10},align:"middle"},h.createElement(g.Z,null,h.createElement(L(),{value:`https://${document.domain}/live-push.html?id=${rn.categoryId}&login=${rn.login}&cookie=${(0,A.ej)("_educoder_session")}`})),h.createElement(g.Z,{className:"ml15"},"\u6253\u5F00\u5FAE\u4FE1\u626B\u4E00\u626B",h.createElement("br",null),"\u5F00\u542F\u624B\u673A\u89C6\u9891\u5F55\u5236")),Oo&&h.createElement("aside",{className:"bg-white"},h.createElement("aside",{className:b.answerInfo},h.createElement(D.Z,{justify:"space-between"},h.createElement(g.Z,null,"\u7B54\u9898\u8FDB\u5EA6"),h.createElement(g.Z,{className:b.answerProgress},h.createElement("span",{style:{color:"#165DFF"}},(po=(uo=G==null?void 0:G.question_status)==null?void 0:uo.filter(c=>c.ques_status===1))==null?void 0:po.length),h.createElement("span",{style:{color:"#999999"}},"/",(Ln=G==null?void 0:G.exercise_types)==null?void 0:Ln.q_counts))),h.createElement(D.Z,null,h.createElement(w.Z,{strokeColor:"#165dffa6",trailColor:"#0000000d",percent:((Hn=(mr=G==null?void 0:G.question_status)==null?void 0:mr.filter(c=>c.ques_status===1))==null?void 0:Hn.length)/((Wt=G==null?void 0:G.exercise_types)==null?void 0:Wt.q_counts)*100,showInfo:!1})),h.createElement(D.Z,null,h.createElement(g.Z,null,h.createElement("span",{className:"c-grey-333"},"\u5171 ",h.createElement("span",{style:{color:"#165DFF"}},((dr=G==null?void 0:G.exercise_types)==null?void 0:dr.q_counts)||((Hr=(Tr=G==null?void 0:G.exercise_scores)==null?void 0:Tr.exercise_types)==null?void 0:Hr.q_counts))," \u9898\uFF1A"),h.createElement("span",{className:"c-grey-333"},"\u6EE1\u5206 ",h.createElement("span",{style:{color:"#FA6400"}},((to=G==null?void 0:G.exercise_types)==null?void 0:to.q_scores)||((yo=(no=G==null?void 0:G.exercise_scores)==null?void 0:no.exercise_types)==null?void 0:yo.q_scores))," \u5206")))),h.createElement(D.Z,{className:b.dottedLineWrapper,align:"middle"},h.createElement(g.Z,{className:b.leftHalfCircle}),h.createElement(g.Z,{flex:1,className:b.dottedLine}),h.createElement(g.Z,{className:b.rightHalfCircle})),h.createElement(D.Z,null,h.createElement(g.Z,{flex:"1"},h.createElement("aside",{className:`${b.cardList} ${(Lo=G.exercise)!=null&&Lo.open_phone_video_recording?b.withQrcode:""}`},(Uo=G==null?void 0:G.exercise_question_types)==null?void 0:Uo.map((c,he)=>h.createElement(t.Fragment,{key:c.question_type},or(c,he)))))))),(0,q.dE)()&&((ko=G==null?void 0:G.exercise)==null?void 0:ko.exercise_status)!==3&&!((jo=G==null?void 0:G.exercise)!=null&&jo.open_score_commited)&&h.createElement(D.Z,{justify:"space-around",align:"middle",className:b.answerSheetBottom},h.createElement(g.Z,{className:b.tooltipWrap},h.createElement("span",{className:b.answerYes}),"\u5DF2\u7B54"),h.createElement(g.Z,{className:b.tooltipWrap},h.createElement("span",{className:`${b.answerNo} ml10`},h.createElement("div",{style:{height:"50%",width:"100%",background:"rgba(22,93,255,0.4)"}})),"\u90E8\u5206\u7B54\u9898"),h.createElement(g.Z,{className:b.tooltipWrap},h.createElement("span",{className:`${b.answerNo} ml10`}),"\u672A\u7B54"),h.createElement(g.Z,{className:b.tooltipWrap},h.createElement("i",{className:"iconfont icon-biaoji1",style:{marginRight:4,color:"#FFB538"}}),"\u6807\u8BB0")),(0,q.dE)()&&(((Ia=G==null?void 0:G.exercise)==null?void 0:Ia.exercise_status)===3||((da=G==null?void 0:G.exercise)==null?void 0:da.open_score_commited))&&h.createElement(D.Z,{justify:"space-around",align:"middle",className:b.answerSheetBottom},h.createElement(g.Z,{className:b.tooltipWrap},h.createElement("span",{className:b.answerYes,style:{background:"#028D01",height:8,width:8,borderRadius:"50%"}}),"\u6B63\u786E"),h.createElement(g.Z,{className:b.tooltipWrap},h.createElement("span",{style:{background:"#FB3226",height:8,width:8,borderRadius:"50%"},className:`${b.answerNo} ml10`}),"\u9519\u8BEF"),h.createElement(g.Z,{className:b.tooltipWrap},h.createElement("span",{style:{background:"#E77400",height:8,width:8,borderRadius:"50%"},className:`${b.answerNo} ml10`}),"\u90E8\u5206\u5F97\u5206"),h.createElement(g.Z,{className:b.tooltipWrap},h.createElement("i",{className:"iconfont icon-biaoji1",style:{marginRight:4,color:"#FFB538"}}),"\u6807\u8BB0")))),h.createElement(g.Z,null,h.createElement("div",{className:b.fold,onClick:()=>Ra(!Oo)},Oo&&h.createElement(I.Z,{title:"\u6536\u8D77\u7B54\u9898\u5361"},h.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"})),!Oo&&h.createElement(I.Z,{title:"\u5C55\u5F00"}," ",h.createElement("span",{className:"icon-youjiantou iconfont c-grey-c"})))),h.createElement(g.Z,{flex:"1"},h.createElement("section",{className:[b.rightPart,"ml20"].join(" ")},h.createElement("div",{className:`${b.questionPart} pl30 pr30`,ref:sa},On()),h.createElement(D.Z,{className:b.bottom,align:"middle",justify:"space-between"},h.createElement(g.Z,null,h.createElement(Ze.Z,{icon:h.createElement("i",{className:`iconfont ${(Na=(fa=G.exercise_question_types)==null?void 0:fa[sr].items[vr])!=null&&Na.is_marked?"icon-biaoji1":"icon-biaojigaiti"}`,style:{color:"#FFB538",marginRight:6}}),className:b.markBtn,onClick:()=>In(void 0,null,function*(){var c;(yield(0,_.sS)(rn.categoryId,{exercise_question_id:(c=G.exercise_question_types[sr].items[vr])==null?void 0:c.question_id})).status===0&&ge()})},(Oa=(qa=G.exercise_question_types)==null?void 0:qa[sr].items[vr])!=null&&Oa.is_marked?"\u53D6\u6D88\u6807\u8BB0":"\u6807\u8BB0\u8BE5\u9898")),h.createElement(g.Z,null,(sr!=0||vr!=0)&&h.createElement(ne.ZP,{className:`${b.changeButton} ${b.prevBtn} mr20`,type:"default",onClick:()=>{Nr(()=>{if(Vn.current){Vn.current="prev";return}fn()})}},"\u4E0A\u4E00\u9898"),!(sr===(($o=G==null?void 0:G.exercise_question_types)==null?void 0:$o.length)-1&&vr===((va=(ma=(Da=G==null?void 0:G.exercise_question_types)==null?void 0:Da[sr])==null?void 0:ma.items)==null?void 0:va.length)-1)&&h.createElement(ne.ZP,{className:b.changeButton,type:"primary",onClick:()=>{Nr(()=>{if(Bl){if(Vn.current){Vn.current="next";return}dn()}})}},"\u4E0B\u4E00\u9898")))))),So.status!==0&&h.createElement(pe,{data:So}),h.createElement(n.default,{title:"\u6CE8\u610F",open:vl,closable:!1,footer:!1},h.createElement("div",null,h.createElement("p",{style:{marginBottom:0}},"\u79BB\u5F00\u8BE5\u9898\u540E\u4E0D\u5141\u8BB8\u518D\u6B21\u4FEE\u6539\u7B54\u6848\uFF0C\u786E\u8BA4\u79BB\u5F00\u5417\uFF1F"),h.createElement("div",{style:{marginTop:60,display:"flex",justifyContent:"space-between",alignItems:"center"}},h.createElement(B.default,{checked:ia,onChange:c=>{pl(c.target.checked)}},"\u4E0B\u6B21\u4E0D\u518D\u663E\u793A"),h.createElement("div",null,h.createElement(ne.ZP,{onClick:()=>{la(!1),pl(!1)}},"\u6211\u518D\u60F3\u60F3"),h.createElement(ne.ZP,{onClick:()=>{G.exercise_question_types[sr].items[vr].ques_status=1,go(Pn({},G)),Qr.current==="prev"?(vr===0?(sr-=1,vr=G.exercise_question_types[sr].items.length-1):vr-=1,Ho(sr),Wo(vr)):Qr.current==="next"?(G.exercise_question_types[sr].items.length-1===vr?(sr=sr+1,vr=0):vr=vr+1,Ho(sr),Wo(vr)):(Ho(pn.current.oneindex),Wo(pn.current.twoindex)),la(!1)},type:"primary",style:{marginLeft:30}},"\u786E\u8BA4"))))),h.createElement(zt.Z,{successCb:oe})),ha&&h.createElement(ue(),{disabled:hl,bounds:Tl,onStart:(c,he)=>Cl(c,he)},h.createElement("div",{ref:Wa,style:{position:"absolute",left:40,top:200,zIndex:1300}},h.createElement("div",{onMouseOver:()=>{hl&&za(!1)},onMouseOut:()=>{za(!0)}},h.createElement(D.Z,{className:b.cameraHeader,align:"middle",justify:"space-between"},h.createElement(g.Z,null,h.createElement("i",{className:"iconfont icon-kaiqishexiangtou"}),h.createElement("span",null,"\u5DF2\u5F00\u542F\u6444\u50CF\u5934")),Ua?h.createElement(xe.Z,{onClick:()=>{Va(!1)}}):h.createElement(be.Z,{onClick:()=>{Va(!0)}})),h.createElement("div",{style:{display:Ua?"flex":"none"}},h.createElement(ie.Z,{number:((_a=G==null?void 0:G.exercise)==null?void 0:_a.photo_count)-((Ba=G==null?void 0:G.exercise)==null?void 0:Ba.take_photo),take_photo:(Vo=G==null?void 0:G.exercise)==null?void 0:Vo.take_photo,ref:ja,time:(pa=G.exercise)==null?void 0:pa.left_time,update:ge,supportCamera:c=>{c===2?(wa(!0),Do(Ct==null?void 0:Ct.screen_shot_open),Ct!=null&&Ct.screen_shot_open||(fo(Ct==null?void 0:Ct.screen_open),ge())):c===1&&setTimeout(()=>l.history.push("/"),3e3)}}))))),h.createElement(n.default,{destroyOnClose:!0,closable:!1,centered:!0,className:b.teachAnalysisModal,title:h.createElement(D.Z,{align:"middle",justify:"space-between"},h.createElement(g.Z,{style:{color:"rgba(0,0,0,0.9)",fontSize:"16px"}},"\u6559\u5E08\u8BC4\u4EF7"),h.createElement(g.Z,null,h.createElement("i",{className:"iconfont icon-guanbi7",style:{fontSize:"15px",cursor:"pointer"},onClick:()=>Pa(!1)}))),open:xl,footer:!1,onCancel:()=>Pa(!1)},(ga=G==null?void 0:G.exercise_answer_user)==null?void 0:ga.analysis),h.createElement(n.default,{destroyOnClose:!0,centered:!0,width:555,title:h.createElement(D.Z,{align:"middle"},h.createElement("div",{className:"c-black font16 mr8"},(0,an._V)(an.CP.answer8)),h.createElement("div",{className:"c-grey-666"},(0,an._V)(an.CP.answer9))),open:sl,footer:!1,onCancel:()=>Mo(!1)},h.createElement("div",null,h.createElement("div",{className:"mb20 c-black"},(0,an._V)(an.CP.answer10)),h.createElement(qt,{key:ea,onOk:c=>{var he;console.log(c,444),c.join("")===((he=G==null?void 0:G.exercise)==null?void 0:he.screen_key)?ze():(W.ZP.warning((0,an._V)(an.CP.answer11)),cl(ot=>ot+1))}}))))};var Yr=(0,l.connect)(({loading:U,user:me,exercise:Ye,globalSetting:At})=>({globalSetting:At,user:me,exercise:Ye,loading:U.effects}))(Gr)},50371:function(ht,le){"use strict";function e(){const t=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let l=1;l<arguments.length;l++){const P=l<0||arguments.length<=l?void 0:arguments[l];P&&Object.keys(P).forEach(L=>{const T=P[L];T!==void 0&&(t[L]=T)})}return t}le.Z=e},13845:function(ht,le,e){"use strict";e.d(le,{F:function(){return t},Z:function(){return l}});function t(P){return P!=null&&P===P.window}function l(P,L){var T,p;if(typeof window=="undefined")return 0;const n=L?"scrollTop":"scrollLeft";let F=0;return t(P)?F=P[L?"pageYOffset":"pageXOffset"]:P instanceof Document?F=P.documentElement[n]:(P instanceof HTMLElement||P)&&(F=P[n]),P&&!t(P)&&typeof F!="number"&&(F=(p=((T=P.ownerDocument)!==null&&T!==void 0?T:P).documentElement)===null||p===void 0?void 0:p[n]),F}},56762:function(ht,le,e){"use strict";e.d(le,{Z:function(){return l}});var t=e(59301);function l(){const[,P]=t.useReducer(L=>L+1,0);return P}},68031:function(ht,le,e){"use strict";e.d(le,{Z:function(){return L}});var t=e(16089);function l(T,p,n,F){const W=n-p;return T/=F/2,T<1?W/2*T*T*T+p:W/2*((T-=2)*T*T+2)+p}var P=e(13845);function L(T){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:F,duration:W=450}=p,w=n(),D=(0,P.Z)(w,!0),g=Date.now(),M=()=>{const I=Date.now()-g,E=l(I>W?W:I,D,T,W);(0,P.F)(w)?w.scrollTo(window.pageXOffset,E):w instanceof Document||w.constructor.name==="HTMLDocument"?w.documentElement.scrollTop=E:w.scrollTop=E,I<W?(0,t.Z)(M):typeof F=="function"&&F()};(0,t.Z)(M)}},79817:function(ht,le,e){"use strict";e.d(le,{default:function(){return z}});var t=e(94480),l=e(92310),P=e.n(l),L=e(70425),T=e(59301),p=e(16722),n=e(13845),F=e(68031),W=e(81228),w=e(36355),g=T.createContext(void 0),B=v=>{const{href:b,title:ce,prefixCls:q,children:x,className:_,target:V,replace:ye}=v,Me=T.useContext(g),{registerLink:Ie,unregisterLink:je,scrollTo:Je,onClick:rt,activeLink:Ke,direction:Te}=Me||{};T.useEffect(()=>(Ie==null||Ie(b),()=>{je==null||je(b)}),[b]);const Qe=ve=>{ye&&(ve.preventDefault(),window.location.replace(b)),rt==null||rt(ve,{title:ce,href:b}),Je==null||Je(b)},{getPrefixCls:vt}=T.useContext(w.E_),De=vt("anchor",q),ft=Ke===b,St=P()(`${De}-link`,_,{[`${De}-link-active`]:ft}),$e=P()(`${De}-link-title`,{[`${De}-link-title-active`]:ft});return T.createElement("div",{className:St},T.createElement("a",{className:$e,href:b,title:typeof ce=="string"?ce:"",target:V,onClick:Qe},ce),Te!=="horizontal"?x:null)},I=e(17313),E=e(83116),ne=e(37613);const k=v=>{const{componentCls:b,holderOffsetBlock:ce,motionDurationSlow:q,lineWidthBold:x,colorPrimary:_,lineType:V,colorSplit:ye}=v;return{[`${b}-wrapper`]:{marginBlockStart:-ce,paddingBlockStart:ce,[b]:Object.assign(Object.assign({},(0,I.Wf)(v)),{position:"relative",paddingInlineStart:x,[`${b}-link`]:{paddingBlock:v.linkPaddingBlock,paddingInline:`${v.linkPaddingInlineStart}px 0`,"&-title":Object.assign(Object.assign({},I.vS),{position:"relative",display:"block",marginBlockEnd:v.anchorTitleBlock,color:v.colorText,transition:`all ${v.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${b}-link-title`]:{color:v.colorPrimary},[`${b}-link`]:{paddingBlock:v.anchorPaddingBlockSecondary}}}),[`&:not(${b}-wrapper-horizontal)`]:{[b]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${x}px ${V} ${ye}`,content:'" "'},[`${b}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${q} ease-in-out`,width:x,backgroundColor:_,[`&${b}-ink-visible`]:{display:"inline-block"}}}},[`${b}-fixed ${b}-ink ${b}-ink`]:{display:"none"}}}},de=v=>{const{componentCls:b,motionDurationSlow:ce,lineWidthBold:q,colorPrimary:x}=v;return{[`${b}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${v.lineType} ${v.colorSplit}`,content:'" "'},[b]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${b}-link:first-of-type`]:{paddingInline:0},[`${b}-ink`]:{position:"absolute",bottom:0,transition:`left ${ce} ease-in-out, width ${ce} ease-in-out`,height:q,backgroundColor:x}}}}};var ie=(0,E.Z)("Anchor",v=>{const{fontSize:b,fontSizeLG:ce,paddingXXS:q}=v,x=(0,ne.TS)(v,{holderOffsetBlock:q,anchorPaddingBlockSecondary:q/2,anchorTitleBlock:b/14*3,anchorBallSize:ce/2});return[k(x),de(x)]},v=>({linkPaddingBlock:v.paddingXXS,linkPaddingInlineStart:v.padding}));function H(){return window}function A(v,b){if(!v.getClientRects().length)return 0;const ce=v.getBoundingClientRect();return ce.width||ce.height?b===window?(b=v.ownerDocument.documentElement,ce.top-b.clientTop):ce.top-b.getBoundingClientRect().top:ce.top}const ae=/#([\S ]+)$/,C=v=>{var b;const{rootClassName:ce,anchorPrefixCls:q,className:x,style:_,offsetTop:V,affix:ye=!0,showInkInFixed:Me=!1,children:Ie,items:je,direction:Je="vertical",bounds:rt,targetOffset:Ke,onClick:Te,onChange:Qe,getContainer:vt,getCurrentAnchor:De,replace:ft}=v,[St,$e]=T.useState([]),[ve,at]=T.useState(null),Ee=T.useRef(ve),Z=T.useRef(null),K=T.useRef(null),m=T.useRef(!1),{direction:a,getTargetContainer:R,anchor:fe}=T.useContext(w.E_),s=(b=vt!=null?vt:R)!==null&&b!==void 0?b:H,i=JSON.stringify(St),X=(0,L.useEvent)(_e=>{St.includes(_e)||$e(He=>[].concat((0,t.Z)(He),[_e]))}),$=(0,L.useEvent)(_e=>{St.includes(_e)&&$e(He=>He.filter(Xe=>Xe!==_e))}),f=()=>{var _e;const He=(_e=Z.current)===null||_e===void 0?void 0:_e.querySelector(`.${q}-link-title-active`);if(He&&K.current){const{style:Xe}=K.current,ut=Je==="horizontal";Xe.top=ut?"":`${He.offsetTop+He.clientHeight/2}px`,Xe.height=ut?"":`${He.clientHeight}px`,Xe.left=ut?`${He.offsetLeft}px`:"",Xe.width=ut?`${He.clientWidth}px`:"",ut&&(0,p.Z)(He,{scrollMode:"if-needed",block:"nearest"})}},Q=function(_e){let He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5;const ut=[],Bt=s();return _e.forEach(wt=>{const Dt=ae.exec(wt==null?void 0:wt.toString());if(!Dt)return;const mn=document.getElementById(Dt[1]);if(mn){const ln=A(mn,Bt);ln<He+Xe&&ut.push({link:wt,top:ln})}}),ut.length?ut.reduce((Dt,mn)=>mn.top>Dt.top?mn:Dt).link:""},Re=(0,L.useEvent)(_e=>{if(Ee.current===_e)return;const He=typeof De=="function"?De(_e):_e;at(He),Ee.current=He,Qe==null||Qe(_e)}),Pe=T.useCallback(()=>{if(m.current)return;const _e=Q(St,Ke!==void 0?Ke:V||0,rt);Re(_e)},[i,Ke,V]),Se=T.useCallback(_e=>{Re(_e);const He=ae.exec(_e);if(!He)return;const Xe=document.getElementById(He[1]);if(!Xe)return;const ut=s(),Bt=(0,n.Z)(ut,!0),wt=A(Xe,ut);let Dt=Bt+wt;Dt-=Ke!==void 0?Ke:V||0,m.current=!0,(0,F.Z)(Dt,{getContainer:s,callback(){m.current=!1}})},[Ke,V]),Ne=P()(ce,`${q}-wrapper`,{[`${q}-wrapper-horizontal`]:Je==="horizontal",[`${q}-rtl`]:a==="rtl"},x,fe==null?void 0:fe.className),Be=P()(q,{[`${q}-fixed`]:!ye&&!Me}),d=P()(`${q}-ink`,{[`${q}-ink-visible`]:ve}),Y=Object.assign(Object.assign({maxHeight:V?`calc(100vh - ${V}px)`:"100vh"},fe==null?void 0:fe.style),_),se=_e=>Array.isArray(_e)?_e.map(He=>T.createElement(B,Object.assign({replace:ft},He,{key:He.key}),Je==="vertical"&&se(He.children))):null,Ce=T.createElement("div",{ref:Z,className:Ne,style:Y},T.createElement("div",{className:Be},T.createElement("span",{className:d,ref:K}),"items"in v?se(je):Ie));T.useEffect(()=>{const _e=s();return Pe(),_e==null||_e.addEventListener("scroll",Pe),()=>{_e==null||_e.removeEventListener("scroll",Pe)}},[i]),T.useEffect(()=>{typeof De=="function"&&Re(De(Ee.current||""))},[De]),T.useEffect(()=>{f()},[Je,De,i,ve]);const Fe=T.useMemo(()=>({registerLink:X,unregisterLink:$,scrollTo:Se,activeLink:ve,onClick:Te,direction:Je}),[ve,Te,Se,Je]);return T.createElement(g.Provider,{value:Fe},ye?T.createElement(W.Z,{offsetTop:V,target:s},Ce):Ce)};var J=v=>{const{prefixCls:b,rootClassName:ce}=v,{getPrefixCls:q}=T.useContext(w.E_),x=q("anchor",b),[_,V]=ie(x);return _(T.createElement(C,Object.assign({},v,{rootClassName:P()(V,ce),anchorPrefixCls:x})))};const te=J;te.Link=B;var z=te},24905:function(ht,le,e){"use strict";e.d(le,{default:function(){return C}});var t=e(92310),l=e.n(t),P=e(5630),L=e(59301),T=e(36355),p=e(1684),n=e(32441),W=L.createContext(null),w=e(98447),D=e(14088),g=e(4572),M=function(S,J){var te={};for(var z in S)Object.prototype.hasOwnProperty.call(S,z)&&J.indexOf(z)<0&&(te[z]=S[z]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,z=Object.getOwnPropertySymbols(S);v<z.length;v++)J.indexOf(z[v])<0&&Object.prototype.propertyIsEnumerable.call(S,z[v])&&(te[z[v]]=S[z[v]]);return te};const B=(S,J)=>{var te;const{prefixCls:z,className:v,rootClassName:b,children:ce,indeterminate:q=!1,style:x,onMouseEnter:_,onMouseLeave:V,skipGroup:ye=!1,disabled:Me}=S,Ie=M(S,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:je,direction:Je,checkbox:rt}=L.useContext(T.E_),Ke=L.useContext(W),{isFormItemInput:Te}=L.useContext(n.aM),Qe=L.useContext(p.Z),vt=(te=(Ke==null?void 0:Ke.disabled)||Me)!==null&&te!==void 0?te:Qe,De=L.useRef(Ie.value);L.useEffect(()=>{Ke==null||Ke.registerValue(Ie.value)},[]),L.useEffect(()=>{if(!ye)return Ie.value!==De.current&&(Ke==null||Ke.cancelValue(De.current),Ke==null||Ke.registerValue(Ie.value),De.current=Ie.value),()=>Ke==null?void 0:Ke.cancelValue(Ie.value)},[Ie.value]);const ft=je("checkbox",z),[St,$e]=(0,w.ZP)(ft),ve=Object.assign({},Ie);Ke&&!ye&&(ve.onChange=function(){Ie.onChange&&Ie.onChange.apply(Ie,arguments),Ke.toggleOption&&Ke.toggleOption({label:ce,value:Ie.value})},ve.name=Ke.name,ve.checked=Ke.value.includes(Ie.value));const at=l()(`${ft}-wrapper`,{[`${ft}-rtl`]:Je==="rtl",[`${ft}-wrapper-checked`]:ve.checked,[`${ft}-wrapper-disabled`]:vt,[`${ft}-wrapper-in-form-item`]:Te},rt==null?void 0:rt.className,v,b,$e),Ee=l()({[`${ft}-indeterminate`]:q},g.A,$e),Z=q?"mixed":void 0;return St(L.createElement(D.Z,{component:"Checkbox",disabled:vt},L.createElement("label",{className:at,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),x),onMouseEnter:_,onMouseLeave:V},L.createElement(P.Z,Object.assign({"aria-checked":Z},ve,{prefixCls:ft,className:Ee,disabled:vt,ref:J})),ce!==void 0&&L.createElement("span",null,ce))))};var E=L.forwardRef(B),ne=e(94480),k=e(2738),de=function(S,J){var te={};for(var z in S)Object.prototype.hasOwnProperty.call(S,z)&&J.indexOf(z)<0&&(te[z]=S[z]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,z=Object.getOwnPropertySymbols(S);v<z.length;v++)J.indexOf(z[v])<0&&Object.prototype.propertyIsEnumerable.call(S,z[v])&&(te[z[v]]=S[z[v]]);return te};const ie=(S,J)=>{const{defaultValue:te,children:z,options:v=[],prefixCls:b,className:ce,rootClassName:q,style:x,onChange:_}=S,V=de(S,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ye,direction:Me}=L.useContext(T.E_),[Ie,je]=L.useState(V.value||te||[]),[Je,rt]=L.useState([]);L.useEffect(()=>{"value"in V&&je(V.value||[])},[V.value]);const Ke=L.useMemo(()=>v.map(K=>typeof K=="string"||typeof K=="number"?{label:K,value:K}:K),[v]),Te=K=>{rt(m=>m.filter(a=>a!==K))},Qe=K=>{rt(m=>[].concat((0,ne.Z)(m),[K]))},vt=K=>{const m=Ie.indexOf(K.value),a=(0,ne.Z)(Ie);m===-1?a.push(K.value):a.splice(m,1),"value"in V||je(a),_==null||_(a.filter(R=>Je.includes(R)).sort((R,fe)=>{const s=Ke.findIndex(X=>X.value===R),i=Ke.findIndex(X=>X.value===fe);return s-i}))},De=ye("checkbox",b),ft=`${De}-group`,[St,$e]=(0,w.ZP)(De),ve=(0,k.Z)(V,["value","disabled"]),at=v.length?Ke.map(K=>L.createElement(E,{prefixCls:De,key:K.value.toString(),disabled:"disabled"in K?K.disabled:V.disabled,value:K.value,checked:Ie.includes(K.value),onChange:K.onChange,className:`${ft}-item`,style:K.style,title:K.title},K.label)):z,Ee={toggleOption:vt,value:Ie,disabled:V.disabled,name:V.name,registerValue:Qe,cancelValue:Te},Z=l()(ft,{[`${ft}-rtl`]:Me==="rtl"},ce,q,$e);return St(L.createElement("div",Object.assign({className:Z,style:x},ve,{ref:J}),L.createElement(W.Provider,{value:Ee},at)))},H=L.forwardRef(ie);var A=L.memo(H);const ae=E;ae.Group=A,ae.__ANT_CHECKBOX=!0;var C=ae},98447:function(ht,le,e){"use strict";e.d(le,{C2:function(){return T}});var t=e(17313),l=e(37613),P=e(83116);const L=p=>{const{checkboxCls:n}=p,F=`${n}-wrapper`;return[{[`${n}-group`]:Object.assign(Object.assign({},(0,t.Wf)(p)),{display:"inline-flex",flexWrap:"wrap",columnGap:p.marginXS,[`> ${p.antCls}-row`]:{flex:1}}),[F]:Object.assign(Object.assign({},(0,t.Wf)(p)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${F}`]:{marginInlineStart:0},[`&${F}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[n]:Object.assign(Object.assign({},(0,t.Wf)(p)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:p.borderRadiusSM,alignSelf:"center",[`${n}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${n}-inner`]:Object.assign({},(0,t.oN)(p))},[`${n}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:p.checkboxSize,height:p.checkboxSize,direction:"ltr",backgroundColor:p.colorBgContainer,border:`${p.lineWidth}px ${p.lineType} ${p.colorBorder}`,borderRadius:p.borderRadiusSM,borderCollapse:"separate",transition:`all ${p.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:p.checkboxSize/14*5,height:p.checkboxSize/14*8,border:`${p.lineWidthBold}px solid ${p.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${p.motionDurationFast} ${p.motionEaseInBack}, opacity ${p.motionDurationFast}`}},"& + span":{paddingInlineStart:p.paddingXS,paddingInlineEnd:p.paddingXS}})},{[`
|
|
${F}:not(${F}-disabled),
|
|
${n}:not(${n}-disabled)
|
|
`]:{[`&:hover ${n}-inner`]:{borderColor:p.colorPrimary}},[`${F}:not(${F}-disabled)`]:{[`&:hover ${n}-checked:not(${n}-disabled) ${n}-inner`]:{backgroundColor:p.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${n}-checked:not(${n}-disabled):after`]:{borderColor:p.colorPrimaryHover}}},{[`${n}-checked`]:{[`${n}-inner`]:{backgroundColor:p.colorPrimary,borderColor:p.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${p.motionDurationMid} ${p.motionEaseOutBack} ${p.motionDurationFast}`}}},[`
|
|
${F}-checked:not(${F}-disabled),
|
|
${n}-checked:not(${n}-disabled)
|
|
`]:{[`&:hover ${n}-inner`]:{backgroundColor:p.colorPrimaryHover,borderColor:"transparent"}}},{[n]:{"&-indeterminate":{[`${n}-inner`]:{backgroundColor:p.colorBgContainer,borderColor:p.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:p.fontSizeLG/2,height:p.fontSizeLG/2,backgroundColor:p.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${F}-disabled`]:{cursor:"not-allowed"},[`${n}-disabled`]:{[`&, ${n}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${n}-inner`]:{background:p.colorBgContainerDisabled,borderColor:p.colorBorder,"&:after":{borderColor:p.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:p.colorTextDisabled},[`&${n}-indeterminate ${n}-inner::after`]:{background:p.colorTextDisabled}}}]};function T(p,n){const F=(0,l.TS)(n,{checkboxCls:`.${p}`,checkboxSize:n.controlInteractiveSize});return[L(F)]}le.ZP=(0,P.Z)("Checkbox",(p,n)=>{let{prefixCls:F}=n;return[T(F,p)]})},43428:function(ht,le,e){"use strict";e.d(le,{Z:function(){return St}});var t=e(92310),l=e.n(t),P=e(33885),L=e(42978),T=e(43403),p=e(34280),n=e(59301),F=n.createContext(null),W=n.createContext({}),w=F,D=e(20068),g=e(54476),M=e(77900),B=e(10228),I=e(26112),E=e(70425),ne=function(ve){var at=ve.prefixCls,Ee=ve.className,Z=ve.style,K=ve.children,m=ve.containerRef,a=ve.id,R=ve.onMouseEnter,fe=ve.onMouseOver,s=ve.onMouseLeave,i=ve.onClick,X=ve.onKeyDown,$=ve.onKeyUp,f={onMouseEnter:R,onMouseOver:fe,onMouseLeave:s,onClick:i,onKeyDown:X,onKeyUp:$},Q=n.useContext(W),Re=Q.panel,Pe=(0,E.useComposeRef)(Re,m);return n.createElement(n.Fragment,null,n.createElement("div",(0,g.Z)({id:a,className:l()("".concat(at,"-content"),Ee),style:(0,P.Z)({},Z),"aria-modal":"true",role:"dialog",ref:Pe},f),K))},k=ne,de=e(48736);function ie($e){return typeof $e=="string"&&String(Number($e))===$e?((0,de.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number($e)):$e}function H($e){warning(!("wrapperClassName"in $e),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!$e.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var A={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ae($e,ve){var at,Ee,Z,K,m=$e.prefixCls,a=$e.open,R=$e.placement,fe=$e.inline,s=$e.push,i=$e.forceRender,X=$e.autoFocus,$=$e.keyboard,f=$e.rootClassName,Q=$e.rootStyle,Re=$e.zIndex,Pe=$e.className,Se=$e.id,Ne=$e.style,Be=$e.motion,d=$e.width,Y=$e.height,se=$e.children,Ce=$e.contentWrapperStyle,Fe=$e.mask,_e=$e.maskClosable,He=$e.maskMotion,Xe=$e.maskClassName,ut=$e.maskStyle,Bt=$e.afterOpenChange,wt=$e.onClose,Dt=$e.onMouseEnter,mn=$e.onMouseOver,ln=$e.onMouseLeave,$t=$e.onClick,En=$e.onKeyDown,vn=$e.onKeyUp,sn=n.useRef(),yn=n.useRef(),xn=n.useRef();n.useImperativeHandle(ve,function(){return sn.current});var An=function(pe){var lt=pe.keyCode,Pt=pe.shiftKey;switch(lt){case B.Z.TAB:{if(lt===B.Z.TAB){if(!Pt&&document.activeElement===xn.current){var Nt;(Nt=yn.current)===null||Nt===void 0||Nt.focus({preventScroll:!0})}else if(Pt&&document.activeElement===yn.current){var Kt;(Kt=xn.current)===null||Kt===void 0||Kt.focus({preventScroll:!0})}}break}case B.Z.ESC:{wt&&$&&(pe.stopPropagation(),wt(pe));break}}};n.useEffect(function(){if(a&&X){var Ge;(Ge=sn.current)===null||Ge===void 0||Ge.focus({preventScroll:!0})}},[a]);var lr=n.useState(!1),br=(0,L.Z)(lr,2),Un=br[0],cr=br[1],Zn=n.useContext(w),fr;s===!1?fr={distance:0}:s===!0?fr={}:fr=s||{};var Dr=(at=(Ee=(Z=fr)===null||Z===void 0?void 0:Z.distance)!==null&&Ee!==void 0?Ee:Zn==null?void 0:Zn.pushDistance)!==null&&at!==void 0?at:180,Ir=n.useMemo(function(){return{pushDistance:Dr,push:function(){cr(!0)},pull:function(){cr(!1)}}},[Dr]);n.useEffect(function(){if(a){var Ge;Zn==null||(Ge=Zn.push)===null||Ge===void 0||Ge.call(Zn)}else{var pe;Zn==null||(pe=Zn.pull)===null||pe===void 0||pe.call(Zn)}},[a]),n.useEffect(function(){return function(){var Ge;Zn==null||(Ge=Zn.pull)===null||Ge===void 0||Ge.call(Zn)}},[]);var pr=Fe&&n.createElement(M.default,(0,g.Z)({key:"mask"},He,{visible:a}),function(Ge,pe){var lt=Ge.className,Pt=Ge.style;return n.createElement("div",{className:l()("".concat(m,"-mask"),lt,Xe),style:(0,P.Z)((0,P.Z)({},Pt),ut),onClick:_e&&a?wt:void 0,ref:pe})}),_r=typeof Be=="function"?Be(R):Be,Xr={};if(Un&&Dr)switch(R){case"top":Xr.transform="translateY(".concat(Dr,"px)");break;case"bottom":Xr.transform="translateY(".concat(-Dr,"px)");break;case"left":Xr.transform="translateX(".concat(Dr,"px)");break;default:Xr.transform="translateX(".concat(-Dr,"px)");break}R==="left"||R==="right"?Xr.width=ie(d):Xr.height=ie(Y);var Lr={onMouseEnter:Dt,onMouseOver:mn,onMouseLeave:ln,onClick:$t,onKeyDown:En,onKeyUp:vn},so=n.createElement(M.default,(0,g.Z)({key:"panel"},_r,{visible:a,forceRender:i,onVisibleChanged:function(pe){Bt==null||Bt(pe)},removeOnLeave:!1,leavedClassName:"".concat(m,"-content-wrapper-hidden")}),function(Ge,pe){var lt=Ge.className,Pt=Ge.style;return n.createElement("div",(0,g.Z)({className:l()("".concat(m,"-content-wrapper"),lt),style:(0,P.Z)((0,P.Z)((0,P.Z)({},Xr),Pt),Ce)},(0,I.Z)($e,{data:!0})),n.createElement(k,(0,g.Z)({id:Se,containerRef:pe,prefixCls:m,className:Pe,style:Ne},Lr),se))}),Jr=(0,P.Z)({},Q);return Re&&(Jr.zIndex=Re),n.createElement(w.Provider,{value:Ir},n.createElement("div",{className:l()(m,"".concat(m,"-").concat(R),f,(K={},(0,D.Z)(K,"".concat(m,"-open"),a),(0,D.Z)(K,"".concat(m,"-inline"),fe),K)),style:Jr,tabIndex:-1,ref:sn,onKeyDown:An},pr,n.createElement("div",{tabIndex:0,ref:yn,style:A,"aria-hidden":"true","data-sentinel":"start"}),so,n.createElement("div",{tabIndex:0,ref:xn,style:A,"aria-hidden":"true","data-sentinel":"end"})))}var C=n.forwardRef(ae),S=C,J=function(ve){var at=ve.open,Ee=at===void 0?!1:at,Z=ve.prefixCls,K=Z===void 0?"rc-drawer":Z,m=ve.placement,a=m===void 0?"right":m,R=ve.autoFocus,fe=R===void 0?!0:R,s=ve.keyboard,i=s===void 0?!0:s,X=ve.width,$=X===void 0?378:X,f=ve.mask,Q=f===void 0?!0:f,Re=ve.maskClosable,Pe=Re===void 0?!0:Re,Se=ve.getContainer,Ne=ve.forceRender,Be=ve.afterOpenChange,d=ve.destroyOnClose,Y=ve.onMouseEnter,se=ve.onMouseOver,Ce=ve.onMouseLeave,Fe=ve.onClick,_e=ve.onKeyDown,He=ve.onKeyUp,Xe=ve.panelRef,ut=n.useState(!1),Bt=(0,L.Z)(ut,2),wt=Bt[0],Dt=Bt[1],mn=n.useState(!1),ln=(0,L.Z)(mn,2),$t=ln[0],En=ln[1];(0,p.Z)(function(){En(!0)},[]);var vn=$t?Ee:!1,sn=n.useRef(),yn=n.useRef();(0,p.Z)(function(){vn&&(yn.current=document.activeElement)},[vn]);var xn=function(cr){var Zn;if(Dt(cr),Be==null||Be(cr),!cr&&yn.current&&!((Zn=sn.current)!==null&&Zn!==void 0&&Zn.contains(yn.current))){var fr;(fr=yn.current)===null||fr===void 0||fr.focus({preventScroll:!0})}},An=n.useMemo(function(){return{panel:Xe}},[Xe]);if(!Ne&&!wt&&!vn&&d)return null;var lr={onMouseEnter:Y,onMouseOver:se,onMouseLeave:Ce,onClick:Fe,onKeyDown:_e,onKeyUp:He},br=(0,P.Z)((0,P.Z)({},ve),{},{open:vn,prefixCls:K,placement:a,autoFocus:fe,keyboard:i,width:$,mask:Q,maskClosable:Pe,inline:Se===!1,afterOpenChange:xn,ref:sn},lr);return n.createElement(W.Provider,{value:An},n.createElement(T.Z,{open:vn||Ne||wt,autoDestroy:!1,getContainer:Se,autoLock:Q&&(vn||wt)},n.createElement(S,br)))},te=J,z=te,v=e(62892),b=e(36355),ce=e(32441),q=e(47729),_=$e=>{const{prefixCls:ve,title:at,footer:Ee,extra:Z,closeIcon:K,closable:m,onClose:a,headerStyle:R,drawerStyle:fe,bodyStyle:s,footerStyle:i,children:X}=$e,$=n.useCallback(Se=>n.createElement("button",{type:"button",onClick:a,"aria-label":"Close",className:`${ve}-close`},Se),[a]),[f,Q]=(0,q.Z)(m,K,$,void 0,!0),Re=n.useMemo(()=>!at&&!f?null:n.createElement("div",{style:R,className:l()(`${ve}-header`,{[`${ve}-header-close-only`]:f&&!at&&!Z})},n.createElement("div",{className:`${ve}-header-title`},Q,at&&n.createElement("div",{className:`${ve}-title`},at)),Z&&n.createElement("div",{className:`${ve}-extra`},Z)),[f,Q,Z,R,ve,at]),Pe=n.useMemo(()=>{if(!Ee)return null;const Se=`${ve}-footer`;return n.createElement("div",{className:Se,style:i},Ee)},[Ee,i,ve]);return n.createElement("div",{className:`${ve}-wrapper-body`,style:fe},Re,n.createElement("div",{className:`${ve}-body`,style:s},X),Pe)},V=e(33234),ye=e(83116),Me=e(37613),je=$e=>{const{componentCls:ve,motionDurationSlow:at}=$e,Ee={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${at}`}}};return{[ve]:{[`${ve}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${at}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${ve}-panel-motion`]:{"&-left":[Ee,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Ee,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Ee,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Ee,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Je=$e=>{const{componentCls:ve,zIndexPopup:at,colorBgMask:Ee,colorBgElevated:Z,motionDurationSlow:K,motionDurationMid:m,padding:a,paddingLG:R,fontSizeLG:fe,lineHeightLG:s,lineWidth:i,lineType:X,colorSplit:$,marginSM:f,colorIcon:Q,colorIconHover:Re,colorText:Pe,fontWeightStrong:Se,footerPaddingBlock:Ne,footerPaddingInline:Be}=$e,d=`${ve}-content-wrapper`;return{[ve]:{position:"fixed",inset:0,zIndex:at,pointerEvents:"none","&-pure":{position:"relative",background:Z,[`&${ve}-left`]:{boxShadow:$e.boxShadowDrawerLeft},[`&${ve}-right`]:{boxShadow:$e.boxShadowDrawerRight},[`&${ve}-top`]:{boxShadow:$e.boxShadowDrawerUp},[`&${ve}-bottom`]:{boxShadow:$e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ve}-mask`]:{position:"absolute",inset:0,zIndex:at,background:Ee,pointerEvents:"auto"},[d]:{position:"absolute",zIndex:at,maxWidth:"100vw",transition:`all ${K}`,"&-hidden":{display:"none"}},[`&-left > ${d}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:$e.boxShadowDrawerLeft},[`&-right > ${d}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:$e.boxShadowDrawerRight},[`&-top > ${d}`]:{top:0,insetInline:0,boxShadow:$e.boxShadowDrawerUp},[`&-bottom > ${d}`]:{bottom:0,insetInline:0,boxShadow:$e.boxShadowDrawerDown},[`${ve}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Z,pointerEvents:"auto"},[`${ve}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${ve}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${a}px ${R}px`,fontSize:fe,lineHeight:s,borderBottom:`${i}px ${X} ${$}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ve}-extra`]:{flex:"none"},[`${ve}-close`]:{display:"inline-block",marginInlineEnd:f,color:Q,fontWeight:Se,fontSize:fe,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${m}`,textRendering:"auto","&:focus, &:hover":{color:Re,textDecoration:"none"}},[`${ve}-title`]:{flex:1,margin:0,color:Pe,fontWeight:$e.fontWeightStrong,fontSize:fe,lineHeight:s},[`${ve}-body`]:{flex:1,minWidth:0,minHeight:0,padding:R,overflow:"auto"},[`${ve}-footer`]:{flexShrink:0,padding:`${Ne}px ${Be}px`,borderTop:`${i}px ${X} ${$}`},"&-rtl":{direction:"rtl"}}}};var rt=(0,ye.Z)("Drawer",$e=>{const ve=(0,Me.TS)($e,{});return[Je(ve),je(ve)]},$e=>({zIndexPopup:$e.zIndexPopupBase,footerPaddingBlock:$e.paddingXS,footerPaddingInline:$e.padding})),Ke=e(11575),Te=function($e,ve){var at={};for(var Ee in $e)Object.prototype.hasOwnProperty.call($e,Ee)&&ve.indexOf(Ee)<0&&(at[Ee]=$e[Ee]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,Ee=Object.getOwnPropertySymbols($e);Z<Ee.length;Z++)ve.indexOf(Ee[Z])<0&&Object.prototype.propertyIsEnumerable.call($e,Ee[Z])&&(at[Ee[Z]]=$e[Ee[Z]]);return at};const Qe=null,vt={distance:180},De=$e=>{var ve;const{rootClassName:at,width:Ee,height:Z,size:K="default",mask:m=!0,push:a=vt,open:R,afterOpenChange:fe,onClose:s,prefixCls:i,getContainer:X,style:$,className:f,visible:Q,afterVisibleChange:Re}=$e,Pe=Te($e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Se,getPrefixCls:Ne,direction:Be,drawer:d}=n.useContext(b.E_),Y=Ne("drawer",i),[se,Ce]=rt(Y),Fe=X===void 0&&Se?()=>Se(document.body):X,_e=l()({"no-mask":!m,[`${Y}-rtl`]:Be==="rtl"},at,Ce),He=n.useMemo(()=>Ee!=null?Ee:K==="large"?736:378,[Ee,K]),Xe=n.useMemo(()=>Z!=null?Z:K==="large"?736:378,[Z,K]),ut={motionName:(0,v.m)(Y,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Bt=Dt=>({motionName:(0,v.m)(Y,`panel-motion-${Dt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),wt=(0,Ke.H)();return se(n.createElement(V.BR,null,n.createElement(ce.Ux,{status:!0,override:!0},n.createElement(z,Object.assign({prefixCls:Y,onClose:s,maskMotion:ut,motion:Bt},Pe,{open:R!=null?R:Q,mask:m,push:a,width:He,height:Xe,style:Object.assign(Object.assign({},d==null?void 0:d.style),$),className:l()(d==null?void 0:d.className,f),rootClassName:_e,getContainer:Fe,afterOpenChange:fe!=null?fe:Re,panelRef:wt}),n.createElement(_,Object.assign({prefixCls:Y},Pe,{onClose:s}))))))},ft=$e=>{const{prefixCls:ve,style:at,className:Ee,placement:Z="right"}=$e,K=Te($e,["prefixCls","style","className","placement"]),{getPrefixCls:m}=n.useContext(b.E_),a=m("drawer",ve),[R,fe]=rt(a),s=l()(a,`${a}-pure`,`${a}-${Z}`,fe,Ee);return R(n.createElement("div",{className:s,style:at},n.createElement(_,Object.assign({prefixCls:a},K))))};De._InternalPanelDoNotUseOrYouWillBeFired=ft;var St=De},91857:function(ht,le,e){"use strict";var t=e(59301),l=e(38819),P=e(92310),L=e.n(P),T=e(31561),p=e(70425),n=e(18929),F=e(2738),W=e(79676),w=e(53487),D=e(92343),g=e(36355),M=e(20834),B=e(40875),I=e(88088),E=e(47211);const ne=null,k=A=>{const{menu:ae,arrow:C,prefixCls:S,children:J,trigger:te,disabled:z,dropdownRender:v,getPopupContainer:b,overlayClassName:ce,rootClassName:q,open:x,onOpenChange:_,visible:V,onVisibleChange:ye,mouseEnterDelay:Me=.15,mouseLeaveDelay:Ie=.1,autoAdjustOverflow:je=!0,placement:Je="",overlay:rt,transitionName:Ke}=A,{getPopupContainer:Te,getPrefixCls:Qe,direction:vt}=t.useContext(g.E_),De=t.useMemo(()=>{const f=Qe();return Ke!==void 0?Ke:Je.includes("top")?`${f}-slide-down`:`${f}-slide-up`},[Qe,Je,Ke]),ft=t.useMemo(()=>Je?Je.includes("Center")?Je.slice(0,Je.indexOf("Center")):Je:vt==="rtl"?"bottomRight":"bottomLeft",[Je,vt]),St=Qe("dropdown",S),[$e,ve]=(0,E.Z)(St),[,at]=(0,I.Z)(),Ee=t.Children.only(J),Z=(0,D.Tm)(Ee,{className:L()(`${St}-trigger`,{[`${St}-rtl`]:vt==="rtl"},Ee.props.className),disabled:z}),K=z?[]:te;let m;K&&K.includes("contextMenu")&&(m=!0);const[a,R]=(0,n.Z)(!1,{value:x!=null?x:V}),fe=(0,p.useEvent)(f=>{_==null||_(f),ye==null||ye(f),R(f)}),s=L()(ce,q,ve,{[`${St}-rtl`]:vt==="rtl"}),i=(0,W.Z)({arrowPointAtCenter:typeof C=="object"&&C.pointAtCenter,autoAdjustOverflow:je,offset:at.marginXXS,arrowWidth:C?at.sizePopupArrow:0,borderRadius:at.borderRadius}),X=t.useCallback(()=>{R(!1)},[]),$=()=>{let f;return ae!=null&&ae.items?f=t.createElement(M.default,Object.assign({},ae)):typeof rt=="function"?f=rt():f=rt,v&&(f=v(f)),f=t.Children.only(typeof f=="string"?t.createElement("span",null,f):f),t.createElement(B.J,{prefixCls:`${St}-menu`,expandIcon:t.createElement("span",{className:`${St}-menu-submenu-arrow`},t.createElement(l.Z,{className:`${St}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:Q=>{let{mode:Re}=Q}},f)};return $e(t.createElement(T.Z,Object.assign({alignPoint:m},(0,F.Z)(A,["rootClassName"]),{mouseEnterDelay:Me,mouseLeaveDelay:Ie,visible:a,builtinPlacements:i,arrow:!!C,overlayClassName:s,prefixCls:St,getPopupContainer:b||Te,transitionName:De,trigger:K,overlay:$,placement:ft,onVisibleChange:fe}),Z))};function de(A){return Object.assign(Object.assign({},A),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ie=(0,w.Z)(k,"dropdown",A=>A,de),H=A=>t.createElement(ie,Object.assign({},A),t.createElement("span",null));k._InternalPanelDoNotUseOrYouWillBeFired=H,le.Z=k},38854:function(ht,le,e){"use strict";e.d(le,{Z:function(){return I}});var t=e(91857),l=e(92310),P=e.n(l),L=e(59301),T=e(18785),p=e(3113),n=e(36355),F=e(81327),W=e(33234),w=e(47211),D=function(E,ne){var k={};for(var de in E)Object.prototype.hasOwnProperty.call(E,de)&&ne.indexOf(de)<0&&(k[de]=E[de]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,de=Object.getOwnPropertySymbols(E);ie<de.length;ie++)ne.indexOf(de[ie])<0&&Object.prototype.propertyIsEnumerable.call(E,de[ie])&&(k[de[ie]]=E[de[ie]]);return k};const g=E=>{const{getPopupContainer:ne,getPrefixCls:k,direction:de}=L.useContext(n.E_),{prefixCls:ie,type:H="default",danger:A,disabled:ae,loading:C,onClick:S,htmlType:J,children:te,className:z,menu:v,arrow:b,autoFocus:ce,overlay:q,trigger:x,align:_,open:V,onOpenChange:ye,placement:Me,getPopupContainer:Ie,href:je,icon:Je=L.createElement(T.Z,null),title:rt,buttonsRender:Ke=$=>$,mouseEnterDelay:Te,mouseLeaveDelay:Qe,overlayClassName:vt,overlayStyle:De,destroyPopupOnHide:ft,dropdownRender:St}=E,$e=D(E,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),ve=k("dropdown",ie),at=`${ve}-button`,[Ee,Z]=(0,w.Z)(ve),K={menu:v,arrow:b,autoFocus:ce,align:_,disabled:ae,trigger:ae?[]:x,onOpenChange:ye,getPopupContainer:Ie||ne,mouseEnterDelay:Te,mouseLeaveDelay:Qe,overlayClassName:vt,overlayStyle:De,destroyPopupOnHide:ft,dropdownRender:St},{compactSize:m,compactItemClassnames:a}=(0,W.ri)(ve,de),R=P()(at,a,z,Z);"overlay"in E&&(K.overlay=q),"open"in E&&(K.open=V),"placement"in E?K.placement=Me:K.placement=de==="rtl"?"bottomLeft":"bottomRight";const fe=L.createElement(p.ZP,{type:H,danger:A,disabled:ae,loading:C,onClick:S,htmlType:J,href:je,title:rt},te),s=L.createElement(p.ZP,{type:H,danger:A,icon:Je}),[i,X]=Ke([fe,s]);return Ee(L.createElement(F.Z.Compact,Object.assign({className:R,size:m,block:!0},$e),i,L.createElement(t.Z,Object.assign({},K),X)))};g.__ANT_BUTTON=!0;var M=g;const B=t.Z;B.Button=M;var I=B},47211:function(ht,le,e){"use strict";e.d(le,{Z:function(){return D}});var t=e(17313),l=e(13826),P=e(92899),L=e(29878),T=e(19447),p=e(83116),n=e(37613),W=g=>{const{componentCls:M,menuCls:B,colorError:I,colorTextLightSolid:E}=g,ne=`${B}-item`;return{[`${M}, ${M}-menu-submenu`]:{[`${B} ${ne}`]:{[`&${ne}-danger:not(${ne}-disabled)`]:{color:I,"&:hover":{color:E,backgroundColor:I}}}}}};const w=g=>{const{componentCls:M,menuCls:B,zIndexPopup:I,dropdownArrowDistance:E,sizePopupArrow:ne,antCls:k,iconCls:de,motionDurationMid:ie,dropdownPaddingVertical:H,fontSize:A,dropdownEdgeChildPadding:ae,colorTextDisabled:C,fontSizeIcon:S,controlPaddingHorizontal:J,colorBgElevated:te}=g;return[{[M]:Object.assign(Object.assign({},(0,t.Wf)(g)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:I,display:"block","&::before":{position:"absolute",insetBlock:-E+ne/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${k}-btn`]:{[`& > ${de}-down, & > ${k}-btn-icon > ${de}-down`]:{fontSize:S}},[`${M}-wrap`]:{position:"relative",[`${k}-btn > ${de}-down`]:{fontSize:S},[`${de}-down::before`]:{transition:`transform ${ie}`}},[`${M}-wrap-open`]:{[`${de}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${k}-slide-down-enter${k}-slide-down-enter-active${M}-placement-bottomLeft,
|
|
&${k}-slide-down-appear${k}-slide-down-appear-active${M}-placement-bottomLeft,
|
|
&${k}-slide-down-enter${k}-slide-down-enter-active${M}-placement-bottom,
|
|
&${k}-slide-down-appear${k}-slide-down-appear-active${M}-placement-bottom,
|
|
&${k}-slide-down-enter${k}-slide-down-enter-active${M}-placement-bottomRight,
|
|
&${k}-slide-down-appear${k}-slide-down-appear-active${M}-placement-bottomRight`]:{animationName:l.fJ},[`&${k}-slide-up-enter${k}-slide-up-enter-active${M}-placement-topLeft,
|
|
&${k}-slide-up-appear${k}-slide-up-appear-active${M}-placement-topLeft,
|
|
&${k}-slide-up-enter${k}-slide-up-enter-active${M}-placement-top,
|
|
&${k}-slide-up-appear${k}-slide-up-appear-active${M}-placement-top,
|
|
&${k}-slide-up-enter${k}-slide-up-enter-active${M}-placement-topRight,
|
|
&${k}-slide-up-appear${k}-slide-up-appear-active${M}-placement-topRight`]:{animationName:l.Qt},[`&${k}-slide-down-leave${k}-slide-down-leave-active${M}-placement-bottomLeft,
|
|
&${k}-slide-down-leave${k}-slide-down-leave-active${M}-placement-bottom,
|
|
&${k}-slide-down-leave${k}-slide-down-leave-active${M}-placement-bottomRight`]:{animationName:l.Uw},[`&${k}-slide-up-leave${k}-slide-up-leave-active${M}-placement-topLeft,
|
|
&${k}-slide-up-leave${k}-slide-up-leave-active${M}-placement-top,
|
|
&${k}-slide-up-leave${k}-slide-up-leave-active${M}-placement-topRight`]:{animationName:l.ly}})},(0,T.ZP)(g,{colorBg:te,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${M} ${B}`]:{position:"relative",margin:0},[`${B}-submenu-popup`]:{position:"absolute",zIndex:I,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${M}, ${M}-menu-submenu`]:{[B]:Object.assign(Object.assign({padding:ae,listStyleType:"none",backgroundColor:te,backgroundClip:"padding-box",borderRadius:g.borderRadiusLG,outline:"none",boxShadow:g.boxShadowSecondary},(0,t.Qy)(g)),{[`${B}-item-group-title`]:{padding:`${H}px ${J}px`,color:g.colorTextDescription,transition:`all ${ie}`},[`${B}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${B}-item-icon`]:{minWidth:A,marginInlineEnd:g.marginXS,fontSize:g.fontSizeSM},[`${B}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ie}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${B}-item, ${B}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${H}px ${J}px`,color:g.colorText,fontWeight:"normal",fontSize:A,lineHeight:g.lineHeight,cursor:"pointer",transition:`all ${ie}`,borderRadius:g.borderRadiusSM,"&:hover, &-active":{backgroundColor:g.controlItemBgHover}},(0,t.Qy)(g)),{"&-selected":{color:g.colorPrimary,backgroundColor:g.controlItemBgActive,"&:hover, &-active":{backgroundColor:g.controlItemBgActiveHover}},"&-disabled":{color:C,cursor:"not-allowed","&:hover":{color:C,backgroundColor:te,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${g.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:g.colorSplit},[`${M}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:g.paddingXS,[`${M}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:g.colorTextDescription,fontSize:S,fontStyle:"normal"}}}),[`${B}-item-group-list`]:{margin:`0 ${g.marginXS}px`,padding:0,listStyle:"none"},[`${B}-submenu-title`]:{paddingInlineEnd:J+g.fontSizeSM},[`${B}-submenu-vertical`]:{position:"relative"},[`${B}-submenu${B}-submenu-disabled ${M}-menu-submenu-title`]:{[`&, ${M}-menu-submenu-arrow-icon`]:{color:C,backgroundColor:te,cursor:"not-allowed"}},[`${B}-submenu-selected ${M}-menu-submenu-title`]:{color:g.colorPrimary}})}},[(0,l.oN)(g,"slide-up"),(0,l.oN)(g,"slide-down"),(0,P.Fm)(g,"move-up"),(0,P.Fm)(g,"move-down"),(0,L._y)(g,"zoom-big")]]};var D=(0,p.Z)("Dropdown",(g,M)=>{let{rootPrefixCls:B}=M;const{marginXXS:I,sizePopupArrow:E,controlHeight:ne,fontSize:k,lineHeight:de,paddingXXS:ie,componentCls:H,borderRadiusLG:A}=g,ae=(ne-k*de)/2,{dropdownArrowOffset:C}=(0,T.fS)({contentRadius:A}),S=(0,n.TS)(g,{menuCls:`${H}-menu`,rootPrefixCls:B,dropdownArrowDistance:E/2+I,dropdownArrowOffset:C,dropdownPaddingVertical:ae,dropdownEdgeChildPadding:ie});return[w(S),W(S)]},g=>({zIndexPopup:g.zIndexPopupBase+50}))},8628:function(ht,le,e){"use strict";var t=e(59301),l=e(34280),P=e(56762),L=e(69507);function T(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const n=(0,t.useRef)({}),F=(0,P.Z)(),W=(0,L.ZP)();return(0,l.Z)(()=>{const w=W.subscribe(D=>{n.current=D,p&&F()});return()=>W.unsubscribe(w)},[]),n.current}le.Z=T},11611:function(ht,le,e){"use strict";e.d(le,{Z:function(){return Jr}});var t=e(59301),l=e(15277),P=e(92310),L=e.n(P),T=e(54476),p=e(33885),n=e(20068),F=e(42978),W=e(76190),w=e(75931),D=e(55468),g=e(18929),M=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],B=t.createContext(null),I=0;function E(Ge,pe){var lt=t.useState(function(){return I+=1,String(I)}),Pt=(0,F.Z)(lt,1),Nt=Pt[0],Kt=t.useContext(B),Xt={data:pe,canPreview:Ge};return t.useEffect(function(){if(Kt)return Kt.register(Nt,Xt)},[]),t.useEffect(function(){Kt&&Kt.register(Nt,Xt)},[Ge,pe]),Nt}function ne(Ge){return new Promise(function(pe){var lt=document.createElement("img");lt.onerror=function(){return pe(!1)},lt.onload=function(){return pe(!0)},lt.src=Ge})}function k(Ge){var pe=Ge.src,lt=Ge.isCustomPlaceholder,Pt=Ge.fallback,Nt=(0,t.useState)(lt?"loading":"normal"),Kt=(0,F.Z)(Nt,2),Xt=Kt[0],zt=Kt[1],j=(0,t.useRef)(!1),ue=Xt==="error";(0,t.useEffect)(function(){ne(pe).then(function(Le){Le||zt("error")})},[pe]),(0,t.useEffect)(function(){lt&&!j.current?zt("loading"):ue&&zt("normal")},[pe]);var xe=function(){zt("normal")},be=function(ke){j.current=!1,Xt==="loading"&&ke!=null&&ke.complete&&(ke.naturalWidth||ke.naturalHeight)&&(j.current=!0,xe())},Ze=ue&&Pt?{src:Pt}:{onLoad:xe,src:pe};return[be,Ze,Xt]}var de=e(86923),ie=e(8224),H=e(10228),A=e(48736);function ae(Ge,pe,lt,Pt){var Nt=pe+lt,Kt=(lt-Pt)/2;if(lt>Pt){if(pe>0)return(0,n.Z)({},Ge,Kt);if(pe<0&&Nt<Pt)return(0,n.Z)({},Ge,-Kt)}else if(pe<0||Nt>Pt)return(0,n.Z)({},Ge,pe<0?Kt:-Kt);return{}}function C(Ge,pe,lt,Pt){var Nt=(0,D.g1)(),Kt=Nt.width,Xt=Nt.height,zt=null;return Ge<=Kt&&pe<=Xt?zt={x:0,y:0}:(Ge>Kt||pe>Xt)&&(zt=(0,p.Z)((0,p.Z)({},ae("x",lt,Ge,Kt)),ae("y",Pt,pe,Xt))),zt}var S=e(13697),J=e(16089),te={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function z(Ge,pe,lt,Pt){var Nt=(0,t.useRef)(null),Kt=(0,t.useRef)([]),Xt=(0,t.useState)(te),zt=(0,F.Z)(Xt,2),j=zt[0],ue=zt[1],xe=function(ke){ue(te),Pt&&!(0,S.Z)(te,j)&&Pt({transform:te,action:ke})},be=function(ke,Ae){Nt.current===null&&(Kt.current=[],Nt.current=(0,J.Z)(function(){ue(function(Ht){var kt=Ht;return Kt.current.forEach(function(qt){kt=(0,p.Z)((0,p.Z)({},kt),qt)}),Nt.current=null,Pt==null||Pt({transform:kt,action:Ae}),kt})})),Kt.current.push((0,p.Z)((0,p.Z)({},j),ke))},Ze=function(ke,Ae,Ht,kt){var qt=Ge.current,kn=qt.width,Rn=qt.height,an=qt.offsetWidth,h=qt.offsetHeight,Br=qt.offsetLeft,Qn=qt.offsetTop,ur=ke,er=j.scale*ke;er>lt?(ur=lt/j.scale,er=lt):er<pe&&(ur=pe/j.scale,er=pe);var hr=Ht!=null?Ht:innerWidth/2,qn=kt!=null?kt:innerHeight/2,$n=ur-1,Pn=$n*kn*.5,zn=$n*Rn*.5,kr=$n*(hr-j.x-Br),In=$n*(qn-j.y-Qn),Er=j.x-(kr-Pn),jr=j.y-(In-zn);if(ke<1&&er===1){var Ur=an*er,Gr=h*er,Yr=(0,D.g1)(),U=Yr.width,me=Yr.height;Ur<=U&&Gr<=me&&(Er=0,jr=0)}be({x:Er,y:jr,scale:er},Ae)};return{transform:j,resetTransform:xe,updateTransform:be,dispatchZoomChange:Ze}}var v=e(43403),b=e(77900),ce=function(pe){var lt=pe.visible,Pt=pe.maskTransitionName,Nt=pe.getContainer,Kt=pe.prefixCls,Xt=pe.rootClassName,zt=pe.icons,j=pe.countRender,ue=pe.showSwitch,xe=pe.showProgress,be=pe.current,Ze=pe.transform,Le=pe.count,ke=pe.scale,Ae=pe.minScale,Ht=pe.maxScale,kt=pe.closeIcon,qt=pe.onSwitchLeft,kn=pe.onSwitchRight,Rn=pe.onClose,an=pe.onZoomIn,h=pe.onZoomOut,Br=pe.onRotateRight,Qn=pe.onRotateLeft,ur=pe.onFlipX,er=pe.onFlipY,hr=pe.toolbarRender,qn=(0,t.useContext)(B),$n=zt.rotateLeft,Pn=zt.rotateRight,zn=zt.zoomIn,kr=zt.zoomOut,In=zt.close,Er=zt.left,jr=zt.right,Ur=zt.flipX,Gr=zt.flipY,Yr="".concat(Kt,"-operations-operation");t.useEffect(function(){var At=function(gn){gn.keyCode===H.Z.ESC&&Rn()};return lt&&window.addEventListener("keydown",At),function(){window.removeEventListener("keydown",At)}},[lt]);var U=[{icon:Gr,onClick:er,type:"flipY"},{icon:Ur,onClick:ur,type:"flipX"},{icon:$n,onClick:Qn,type:"rotateLeft"},{icon:Pn,onClick:Br,type:"rotateRight"},{icon:kr,onClick:h,type:"zoomOut",disabled:ke===Ae},{icon:zn,onClick:an,type:"zoomIn",disabled:ke===Ht}],me=U.map(function(At){var en,gn=At.icon,Yt=At.onClick,Zt=At.type,Ue=At.disabled;return t.createElement("div",{className:L()(Yr,(en={},(0,n.Z)(en,"".concat(Kt,"-operations-operation-").concat(Zt),!0),(0,n.Z)(en,"".concat(Kt,"-operations-operation-disabled"),!!Ue),en)),onClick:Yt,key:Zt},gn)}),Ye=t.createElement("div",{className:"".concat(Kt,"-operations")},me);return t.createElement(b.default,{visible:lt,motionName:Pt},function(At){var en=At.className,gn=At.style;return t.createElement(v.Z,{open:!0,getContainer:Nt!=null?Nt:document.body},t.createElement("div",{className:L()("".concat(Kt,"-operations-wrapper"),en,Xt),style:gn},kt===null?null:t.createElement("button",{className:"".concat(Kt,"-close"),onClick:Rn},kt||In),ue&&t.createElement(t.Fragment,null,t.createElement("div",{className:L()("".concat(Kt,"-switch-left"),(0,n.Z)({},"".concat(Kt,"-switch-left-disabled"),be===0)),onClick:qt},Er),t.createElement("div",{className:L()("".concat(Kt,"-switch-right"),(0,n.Z)({},"".concat(Kt,"-switch-right-disabled"),be===Le-1)),onClick:kn},jr)),t.createElement("div",{className:"".concat(Kt,"-footer")},xe&&t.createElement("div",{className:"".concat(Kt,"-progress")},j?j(be+1,Le):"".concat(be+1," / ").concat(Le)),hr?hr(Ye,(0,p.Z)({icons:{flipYIcon:me[0],flipXIcon:me[1],rotateLeftIcon:me[2],rotateRightIcon:me[3],zoomOutIcon:me[4],zoomInIcon:me[5]},actions:{onFlipY:er,onFlipX:ur,onRotateLeft:Qn,onRotateRight:Br,onZoomOut:h,onZoomIn:an},transform:Ze},qn?{current:be,total:Le}:{})):Ye)))})},q=ce,x=1,_=1,V=["fallback","src","imgRef"],ye=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Me=function(pe){var lt=pe.fallback,Pt=pe.src,Nt=pe.imgRef,Kt=(0,w.Z)(pe,V),Xt=k({src:Pt,fallback:lt}),zt=(0,F.Z)(Xt,2),j=zt[0],ue=zt[1];return t.createElement("img",(0,T.Z)({ref:function(be){Nt.current=be,j(be)}},Kt,ue))},Ie=function(pe){var lt=pe.prefixCls,Pt=pe.src,Nt=pe.alt,Kt=pe.fallback,Xt=pe.movable,zt=Xt===void 0?!0:Xt,j=pe.onClose,ue=pe.visible,xe=pe.icons,be=xe===void 0?{}:xe,Ze=pe.rootClassName,Le=pe.closeIcon,ke=pe.getContainer,Ae=pe.current,Ht=Ae===void 0?0:Ae,kt=pe.count,qt=kt===void 0?1:kt,kn=pe.countRender,Rn=pe.scaleStep,an=Rn===void 0?.5:Rn,h=pe.minScale,Br=h===void 0?1:h,Qn=pe.maxScale,ur=Qn===void 0?50:Qn,er=pe.transitionName,hr=er===void 0?"zoom":er,qn=pe.maskTransitionName,$n=qn===void 0?"fade":qn,Pn=pe.imageRender,zn=pe.imgCommonProps,kr=pe.toolbarRender,In=pe.onTransform,Er=pe.onChange,jr=(0,w.Z)(pe,ye),Ur=(0,t.useRef)(),Gr=(0,t.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),Yr=(0,t.useState)(!1),U=(0,F.Z)(Yr,2),me=U[0],Ye=U[1],At=(0,t.useContext)(B),en=At&&qt>1,gn=At&&qt>=1,Yt=z(Ur,Br,ur,In),Zt=Yt.transform,Ue=Yt.resetTransform,yt=Yt.updateTransform,tn=Yt.dispatchZoomChange,nn=(0,t.useState)(!0),Sn=(0,F.Z)(nn,2),Cn=Sn[0],Gn=Sn[1],Bn=Zt.rotate,st=Zt.scale,Ot=Zt.x,wn=Zt.y,ir=L()((0,n.Z)({},"".concat(lt,"-moving"),me));(0,t.useEffect)(function(){Cn||Gn(!0)},[Cn]);var Mn=function(){Ue("close")},Yn=function(){tn(x+an,"zoomIn")},$r=function(){tn(x/(x+an),"zoomOut")},Fr=function(){yt({rotate:Bn+90},"rotateRight")},Kn=function(){yt({rotate:Bn-90},"rotateLeft")},Pr=function(){yt({flipX:!Zt.flipX},"flipX")},Jn=function(){yt({flipY:!Zt.flipY},"flipY")},zr=function(Wt){Wt==null||Wt.preventDefault(),Wt==null||Wt.stopPropagation(),Ht>0&&(Gn(!1),Ue("prev"),Er==null||Er(Ht-1,Ht))},eo=function(Wt){Wt==null||Wt.preventDefault(),Wt==null||Wt.stopPropagation(),Ht<qt-1&&(Gn(!1),Ue("next"),Er==null||Er(Ht+1,Ht))},ao=function(){if(ue&&me){Ye(!1);var Wt=Gr.current,dr=Wt.transformX,Tr=Wt.transformY,Hr=Ot!==dr&&wn!==Tr;if(!Hr)return;var to=Ur.current.offsetWidth*st,no=Ur.current.offsetHeight*st,yo=Ur.current.getBoundingClientRect(),Lo=yo.left,Uo=yo.top,ko=Bn%180!==0,jo=C(ko?no:to,ko?to:no,Lo,Uo);jo&&yt((0,p.Z)({},jo),"dragRebound")}},Eo=function(Wt){!zt||Wt.button!==0||(Wt.preventDefault(),Wt.stopPropagation(),Gr.current={deltaX:Wt.pageX-Zt.x,deltaY:Wt.pageY-Zt.y,transformX:Zt.x,transformY:Zt.y},Ye(!0))},ro=function(Wt){ue&&me&&yt({x:Wt.pageX-Gr.current.deltaX,y:Wt.pageY-Gr.current.deltaY},"move")},uo=function(Wt){if(!(!ue||Wt.deltaY==0)){var dr=Math.abs(Wt.deltaY/100),Tr=Math.min(dr,_),Hr=x+Tr*an;Wt.deltaY>0&&(Hr=x/Hr),tn(Hr,"wheel",Wt.clientX,Wt.clientY)}},po=function(Wt){!ue||!en||(Wt.keyCode===H.Z.LEFT?zr():Wt.keyCode===H.Z.RIGHT&&eo())},Ln=function(Wt){ue&&(st!==1?yt({x:0,y:0,scale:1},"doubleClick"):tn(x+an,"doubleClick",Wt.clientX,Wt.clientY))};(0,t.useEffect)(function(){var Hn,Wt,dr,Tr;if(zt){dr=(0,ie.Z)(window,"mouseup",ao,!1),Tr=(0,ie.Z)(window,"mousemove",ro,!1);try{window.top!==window.self&&(Hn=(0,ie.Z)(window.top,"mouseup",ao,!1),Wt=(0,ie.Z)(window.top,"mousemove",ro,!1))}catch(Hr){(0,A.Kp)(!1,"[rc-image] ".concat(Hr))}}return function(){var Hr,to,no,yo;(Hr=dr)===null||Hr===void 0||Hr.remove(),(to=Tr)===null||to===void 0||to.remove(),(no=Hn)===null||no===void 0||no.remove(),(yo=Wt)===null||yo===void 0||yo.remove()}},[ue,me,Ot,wn,Bn,zt]),(0,t.useEffect)(function(){var Hn=(0,ie.Z)(window,"keydown",po,!1);return function(){Hn.remove()}},[ue,en,Ht]);var mr=t.createElement(Me,(0,T.Z)({},zn,{width:pe.width,height:pe.height,imgRef:Ur,className:"".concat(lt,"-img"),alt:Nt,style:{transform:"translate3d(".concat(Zt.x,"px, ").concat(Zt.y,"px, 0) scale3d(").concat(Zt.flipX?"-":"").concat(st,", ").concat(Zt.flipY?"-":"").concat(st,", 1) rotate(").concat(Bn,"deg)"),transitionDuration:!Cn&&"0s"},fallback:Kt,src:Pt,onWheel:uo,onMouseDown:Eo,onDoubleClick:Ln}));return t.createElement(t.Fragment,null,t.createElement(de.Z,(0,T.Z)({transitionName:hr,maskTransitionName:$n,closable:!1,keyboard:!0,prefixCls:lt,onClose:j,visible:ue,wrapClassName:ir,rootClassName:Ze,getContainer:ke},jr,{afterClose:Mn}),t.createElement("div",{className:"".concat(lt,"-img-wrapper")},Pn?Pn(mr,(0,p.Z)({transform:Zt},At?{current:Ht}:{})):mr)),t.createElement(q,{visible:ue,transform:Zt,maskTransitionName:$n,closeIcon:Le,getContainer:ke,prefixCls:lt,rootClassName:Ze,icons:be,countRender:kn,showSwitch:en,showProgress:gn,current:Ht,count:qt,scale:st,minScale:Br,maxScale:ur,toolbarRender:kr,onSwitchLeft:zr,onSwitchRight:eo,onZoomIn:Yn,onZoomOut:$r,onRotateRight:Fr,onRotateLeft:Kn,onFlipX:Pr,onFlipY:Jn,onClose:j}))},je=Ie,Je=e(94480);function rt(Ge){var pe=t.useState({}),lt=(0,F.Z)(pe,2),Pt=lt[0],Nt=lt[1],Kt=t.useCallback(function(zt,j){return Nt(function(ue){return(0,p.Z)((0,p.Z)({},ue),{},(0,n.Z)({},zt,j))}),function(){Nt(function(ue){var xe=(0,p.Z)({},ue);return delete xe[zt],xe})}},[]),Xt=t.useMemo(function(){return Ge?Ge.map(function(zt){if(typeof zt=="string")return{data:{src:zt}};var j={};return Object.keys(zt).forEach(function(ue){["src"].concat((0,Je.Z)(M)).includes(ue)&&(j[ue]=zt[ue])}),{data:j}}):Object.keys(Pt).reduce(function(zt,j){var ue=Pt[j],xe=ue.canPreview,be=ue.data;return xe&&zt.push({data:be,id:j}),zt},[])},[Ge,Pt]);return[Xt,Kt]}var Ke=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Te=["src"],Qe=function(pe){var lt,Pt=pe.previewPrefixCls,Nt=Pt===void 0?"rc-image-preview":Pt,Kt=pe.children,Xt=pe.icons,zt=Xt===void 0?{}:Xt,j=pe.items,ue=pe.preview,xe=pe.fallback,be=(0,W.Z)(ue)==="object"?ue:{},Ze=be.visible,Le=be.onVisibleChange,ke=be.getContainer,Ae=be.current,Ht=be.movable,kt=be.minScale,qt=be.maxScale,kn=be.countRender,Rn=be.closeIcon,an=be.onChange,h=be.onTransform,Br=be.toolbarRender,Qn=be.imageRender,ur=(0,w.Z)(be,Ke),er=rt(j),hr=(0,F.Z)(er,2),qn=hr[0],$n=hr[1],Pn=(0,g.Z)(0,{value:Ae}),zn=(0,F.Z)(Pn,2),kr=zn[0],In=zn[1],Er=(0,t.useState)(!1),jr=(0,F.Z)(Er,2),Ur=jr[0],Gr=jr[1],Yr=((lt=qn[kr])===null||lt===void 0?void 0:lt.data)||{},U=Yr.src,me=(0,w.Z)(Yr,Te),Ye=(0,g.Z)(!!Ze,{value:Ze,onChange:function(Bn,st){Le==null||Le(Bn,st,kr)}}),At=(0,F.Z)(Ye,2),en=At[0],gn=At[1],Yt=(0,t.useState)(null),Zt=(0,F.Z)(Yt,2),Ue=Zt[0],yt=Zt[1],tn=t.useCallback(function(Gn,Bn,st){var Ot=qn.findIndex(function(wn){return wn.id===Gn});gn(!0),yt({x:Bn,y:st}),In(Ot<0?0:Ot),Gr(!0)},[qn]);t.useEffect(function(){en?Ur||In(0):Gr(!1)},[en]);var nn=function(Bn,st){In(Bn),an==null||an(Bn,st)},Sn=function(){gn(!1),yt(null)},Cn=t.useMemo(function(){return{register:$n,onPreview:tn}},[$n,tn]);return t.createElement(B.Provider,{value:Cn},Kt,t.createElement(je,(0,T.Z)({"aria-hidden":!en,movable:Ht,visible:en,prefixCls:Nt,closeIcon:Rn,onClose:Sn,mousePosition:Ue,imgCommonProps:me,src:U,fallback:xe,icons:zt,minScale:kt,maxScale:qt,getContainer:ke,current:kr,count:qn.length,countRender:kn,onTransform:h,toolbarRender:Br,imageRender:Qn,onChange:nn},ur)))},vt=Qe,De=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],ft=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],St=function(pe){var lt=pe.src,Pt=pe.alt,Nt=pe.onPreviewClose,Kt=pe.prefixCls,Xt=Kt===void 0?"rc-image":Kt,zt=pe.previewPrefixCls,j=zt===void 0?"".concat(Xt,"-preview"):zt,ue=pe.placeholder,xe=pe.fallback,be=pe.width,Ze=pe.height,Le=pe.style,ke=pe.preview,Ae=ke===void 0?!0:ke,Ht=pe.className,kt=pe.onClick,qt=pe.onError,kn=pe.wrapperClassName,Rn=pe.wrapperStyle,an=pe.rootClassName,h=(0,w.Z)(pe,De),Br=ue&&ue!==!0,Qn=(0,W.Z)(Ae)==="object"?Ae:{},ur=Qn.src,er=Qn.visible,hr=er===void 0?void 0:er,qn=Qn.onVisibleChange,$n=qn===void 0?Nt:qn,Pn=Qn.getContainer,zn=Pn===void 0?void 0:Pn,kr=Qn.mask,In=Qn.maskClassName,Er=Qn.movable,jr=Qn.icons,Ur=Qn.scaleStep,Gr=Qn.minScale,Yr=Qn.maxScale,U=Qn.imageRender,me=Qn.toolbarRender,Ye=(0,w.Z)(Qn,ft),At=ur!=null?ur:lt,en=(0,g.Z)(!!hr,{value:hr,onChange:$n}),gn=(0,F.Z)(en,2),Yt=gn[0],Zt=gn[1],Ue=k({src:lt,isCustomPlaceholder:Br,fallback:xe}),yt=(0,F.Z)(Ue,3),tn=yt[0],nn=yt[1],Sn=yt[2],Cn=(0,t.useState)(null),Gn=(0,F.Z)(Cn,2),Bn=Gn[0],st=Gn[1],Ot=(0,t.useContext)(B),wn=!!Ae,ir=function(){Zt(!1),st(null)},Mn=L()(Xt,kn,an,(0,n.Z)({},"".concat(Xt,"-error"),Sn==="error")),Yn=(0,t.useMemo)(function(){var Pr={};return M.forEach(function(Jn){pe[Jn]!==void 0&&(Pr[Jn]=pe[Jn])}),Pr},M.map(function(Pr){return pe[Pr]})),$r=(0,t.useMemo)(function(){return(0,p.Z)((0,p.Z)({},Yn),{},{src:At})},[At,Yn]),Fr=E(wn,$r),Kn=function(Jn){var zr=(0,D.os)(Jn.target),eo=zr.left,ao=zr.top;Ot?Ot.onPreview(Fr,eo,ao):(st({x:eo,y:ao}),Zt(!0)),kt==null||kt(Jn)};return t.createElement(t.Fragment,null,t.createElement("div",(0,T.Z)({},h,{className:Mn,onClick:wn?Kn:kt,style:(0,p.Z)({width:be,height:Ze},Rn)}),t.createElement("img",(0,T.Z)({},Yn,{className:L()("".concat(Xt,"-img"),(0,n.Z)({},"".concat(Xt,"-img-placeholder"),ue===!0),Ht),style:(0,p.Z)({height:Ze},Le),ref:tn},nn,{width:be,height:Ze,onError:qt})),Sn==="loading"&&t.createElement("div",{"aria-hidden":"true",className:"".concat(Xt,"-placeholder")},ue),kr&&wn&&t.createElement("div",{className:L()("".concat(Xt,"-mask"),In),style:{display:(Le==null?void 0:Le.display)==="none"?"none":void 0}},kr)),!Ot&&wn&&t.createElement(je,(0,T.Z)({"aria-hidden":!Yt,visible:Yt,prefixCls:j,onClose:ir,mousePosition:Bn,src:At,alt:Pt,fallback:xe,getContainer:zn,icons:jr,movable:Er,scaleStep:Ur,minScale:Gr,maxScale:Yr,rootClassName:an,imageRender:U,imgCommonProps:Yn,toolbarRender:me},Ye)))};St.PreviewGroup=vt,St.displayName="Image";var $e=St,ve=$e,at=e(62892),Ee=e(36355),Z=e(31724),K=e(99267),m=e(33853),a=e(38819),R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},fe=R,s=e(7657),i=function(pe,lt){return t.createElement(s.Z,(0,T.Z)({},pe,{ref:lt,icon:fe}))},X=t.forwardRef(i),$=X,f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Q=f,Re=function(pe,lt){return t.createElement(s.Z,(0,T.Z)({},pe,{ref:lt,icon:Q}))},Pe=t.forwardRef(Re),Se=Pe,Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Be=Ne,d=function(pe,lt){return t.createElement(s.Z,(0,T.Z)({},pe,{ref:lt,icon:Be}))},Y=t.forwardRef(d),se=Y,Ce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},Fe=Ce,_e=function(pe,lt){return t.createElement(s.Z,(0,T.Z)({},pe,{ref:lt,icon:Fe}))},He=t.forwardRef(_e),Xe=He,ut={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Bt=ut,wt=function(pe,lt){return t.createElement(s.Z,(0,T.Z)({},pe,{ref:lt,icon:Bt}))},Dt=t.forwardRef(wt),mn=Dt,ln=e(64993),$t=e(73819),En=e(17313),vn=e(29878),sn=e(1950),yn=e(83116),xn=e(37613);const An=Ge=>({position:Ge||"absolute",inset:0}),lr=Ge=>{const{iconCls:pe,motionDurationSlow:lt,paddingXXS:Pt,marginXXS:Nt,prefixCls:Kt,colorTextLightSolid:Xt}=Ge;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Xt,background:new ln.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${lt}`,[`.${Kt}-mask-info`]:Object.assign(Object.assign({},En.vS),{padding:`0 ${Pt}px`,[pe]:{marginInlineEnd:Nt,svg:{verticalAlign:"baseline"}}})}},br=Ge=>{const{previewCls:pe,modalMaskBg:lt,paddingSM:Pt,marginXL:Nt,margin:Kt,paddingLG:Xt,previewOperationColorDisabled:zt,previewOperationHoverColor:j,motionDurationSlow:ue,iconCls:xe,colorTextLightSolid:be}=Ge,Ze=new ln.C(lt).setAlpha(.1),Le=Ze.clone().setAlpha(.2);return{[`${pe}-footer`]:{position:"fixed",bottom:Nt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Ge.previewOperationColor},[`${pe}-progress`]:{marginBottom:Kt},[`${pe}-close`]:{position:"fixed",top:Nt,right:{_skip_check_:!0,value:Nt},display:"flex",color:be,backgroundColor:Ze.toRgbString(),borderRadius:"50%",padding:Pt,outline:0,border:0,cursor:"pointer",transition:`all ${ue}`,"&:hover":{backgroundColor:Le.toRgbString()},[`& > ${xe}`]:{fontSize:Ge.previewOperationSize}},[`${pe}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Xt}px`,backgroundColor:Ze.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:Pt,padding:Pt,cursor:"pointer",transition:`all ${ue}`,userSelect:"none",[`&:not(${pe}-operations-operation-disabled):hover > ${xe}`]:{color:j},"&-disabled":{color:zt,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${xe}`]:{fontSize:Ge.previewOperationSize}}}}},Un=Ge=>{const{modalMaskBg:pe,iconCls:lt,previewOperationColorDisabled:Pt,previewCls:Nt,zIndexPopup:Kt,motionDurationSlow:Xt}=Ge,zt=new ln.C(pe).setAlpha(.1),j=zt.clone().setAlpha(.2);return{[`${Nt}-switch-left, ${Nt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Kt+1,display:"flex",alignItems:"center",justifyContent:"center",width:Ge.imagePreviewSwitchSize,height:Ge.imagePreviewSwitchSize,marginTop:-Ge.imagePreviewSwitchSize/2,color:Ge.previewOperationColor,background:zt.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Xt}`,userSelect:"none","&:hover":{background:j.toRgbString()},"&-disabled":{"&, &:hover":{color:Pt,background:"transparent",cursor:"not-allowed",[`> ${lt}`]:{cursor:"not-allowed"}}},[`> ${lt}`]:{fontSize:Ge.previewOperationSize}},[`${Nt}-switch-left`]:{insetInlineStart:Ge.marginSM},[`${Nt}-switch-right`]:{insetInlineEnd:Ge.marginSM}}},cr=Ge=>{const{motionEaseOut:pe,previewCls:lt,motionDurationSlow:Pt,componentCls:Nt}=Ge;return[{[`${Nt}-preview-root`]:{[lt]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${lt}-body`]:Object.assign(Object.assign({},An()),{overflow:"hidden"}),[`${lt}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${Pt} ${pe} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},An()),{transition:`transform ${Pt} ${pe} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${lt}-moving`]:{[`${lt}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Nt}-preview-root`]:{[`${lt}-wrap`]:{zIndex:Ge.zIndexPopup}}},{[`${Nt}-preview-operations-wrapper`]:{position:"fixed",zIndex:Ge.zIndexPopup+1},"&":[br(Ge),Un(Ge)]}]},Zn=Ge=>{const{componentCls:pe}=Ge;return{[pe]:{position:"relative",display:"inline-block",[`${pe}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${pe}-img-placeholder`]:{backgroundColor:Ge.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${pe}-mask`]:Object.assign({},lr(Ge)),[`${pe}-mask:hover`]:{opacity:1},[`${pe}-placeholder`]:Object.assign({},An())}}},fr=Ge=>{const{previewCls:pe}=Ge;return{[`${pe}-root`]:(0,vn._y)(Ge,"zoom"),"&":(0,sn.J$)(Ge,!0)}};var Dr=(0,yn.Z)("Image",Ge=>{const pe=`${Ge.componentCls}-preview`,lt=(0,xn.TS)(Ge,{previewCls:pe,modalMaskBg:new ln.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Ge.controlHeightLG});return[Zn(lt),cr(lt),(0,$t.QA)((0,xn.TS)(lt,{componentCls:pe})),fr(lt)]},Ge=>({zIndexPopup:Ge.zIndexPopupBase+80,previewOperationColor:new ln.C(Ge.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new ln.C(Ge.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new ln.C(Ge.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Ge.fontSizeIcon*1.5})),Ir=function(Ge,pe){var lt={};for(var Pt in Ge)Object.prototype.hasOwnProperty.call(Ge,Pt)&&pe.indexOf(Pt)<0&&(lt[Pt]=Ge[Pt]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Pt=Object.getOwnPropertySymbols(Ge);Nt<Pt.length;Nt++)pe.indexOf(Pt[Nt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Pt[Nt])&&(lt[Pt[Nt]]=Ge[Pt[Nt]]);return lt};const pr={rotateLeft:t.createElement($,null),rotateRight:t.createElement(Se,null),zoomIn:t.createElement(Xe,null),zoomOut:t.createElement(mn,null),close:t.createElement(K.Z,null),left:t.createElement(m.Z,null),right:t.createElement(a.Z,null),flipX:t.createElement(se,null),flipY:t.createElement(se,{rotate:90})};var Xr=Ge=>{var{previewPrefixCls:pe,preview:lt}=Ge,Pt=Ir(Ge,["previewPrefixCls","preview"]);const{getPrefixCls:Nt}=t.useContext(Ee.E_),Kt=Nt("image",pe),Xt=`${Kt}-preview`,zt=Nt(),[j,ue]=Dr(Kt),xe=t.useMemo(()=>{var be;if(lt===!1)return lt;const Ze=typeof lt=="object"?lt:{},Le=L()(ue,(be=Ze.rootClassName)!==null&&be!==void 0?be:"");return Object.assign(Object.assign({},Ze),{transitionName:(0,at.m)(zt,"zoom",Ze.transitionName),maskTransitionName:(0,at.m)(zt,"fade",Ze.maskTransitionName),rootClassName:Le})},[lt]);return j(t.createElement(ve.PreviewGroup,Object.assign({preview:xe,previewPrefixCls:Xt,icons:pr},Pt)))},Lr=function(Ge,pe){var lt={};for(var Pt in Ge)Object.prototype.hasOwnProperty.call(Ge,Pt)&&pe.indexOf(Pt)<0&&(lt[Pt]=Ge[Pt]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Pt=Object.getOwnPropertySymbols(Ge);Nt<Pt.length;Nt++)pe.indexOf(Pt[Nt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Pt[Nt])&&(lt[Pt[Nt]]=Ge[Pt[Nt]]);return lt};const so=Ge=>{const{prefixCls:pe,preview:lt,className:Pt,rootClassName:Nt,style:Kt}=Ge,Xt=Lr(Ge,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:zt,locale:j=Z.Z,getPopupContainer:ue,image:xe}=t.useContext(Ee.E_),be=zt("image",pe),Ze=zt(),Le=j.Image||Z.Z.Image,[ke,Ae]=Dr(be),Ht=L()(Nt,Ae),kt=L()(Pt,Ae,xe==null?void 0:xe.className),qt=t.useMemo(()=>{if(lt===!1)return lt;const Rn=typeof lt=="object"?lt:{},{getContainer:an}=Rn,h=Lr(Rn,["getContainer"]);return Object.assign(Object.assign({mask:t.createElement("div",{className:`${be}-mask-info`},t.createElement(l.Z,null),Le==null?void 0:Le.preview),icons:pr},h),{getContainer:an||ue,transitionName:(0,at.m)(Ze,"zoom",Rn.transitionName),maskTransitionName:(0,at.m)(Ze,"fade",Rn.maskTransitionName)})},[lt,Le]),kn=Object.assign(Object.assign({},xe==null?void 0:xe.style),Kt);return ke(t.createElement(ve,Object.assign({prefixCls:be,preview:qt,rootClassName:Ht,className:kt,style:kn},Xt)))};so.PreviewGroup=Xr;var Jr=so},45818:function(ht,le,e){"use strict";e.d(le,{D:function(){return ie},Z:function(){return ae}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},L=P,T=e(7657),p=function(S,J){return l.createElement(T.Z,(0,t.Z)({},S,{ref:J,icon:L}))},n=l.forwardRef(p),F=n,W=e(33853),w=e(38819),D=e(92310),g=e.n(D),M=e(2738),I=C=>!isNaN(parseFloat(C))&&isFinite(C),E=e(36355),ne=e(84966),k=function(C,S){var J={};for(var te in C)Object.prototype.hasOwnProperty.call(C,te)&&S.indexOf(te)<0&&(J[te]=C[te]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,te=Object.getOwnPropertySymbols(C);z<te.length;z++)S.indexOf(te[z])<0&&Object.prototype.propertyIsEnumerable.call(C,te[z])&&(J[te[z]]=C[te[z]]);return J};const de={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ie=l.createContext({}),H=(()=>{let C=0;return function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return C+=1,`${S}${C}`}})();var ae=l.forwardRef((C,S)=>{const{prefixCls:J,className:te,trigger:z,children:v,defaultCollapsed:b=!1,theme:ce="dark",style:q={},collapsible:x=!1,reverseArrow:_=!1,width:V=200,collapsedWidth:ye=80,zeroWidthTriggerStyle:Me,breakpoint:Ie,onCollapse:je,onBreakpoint:Je}=C,rt=k(C,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ke}=(0,l.useContext)(ne.Gs),[Te,Qe]=(0,l.useState)("collapsed"in C?C.collapsed:b),[vt,De]=(0,l.useState)(!1);(0,l.useEffect)(()=>{"collapsed"in C&&Qe(C.collapsed)},[C.collapsed]);const ft=(Z,K)=>{"collapsed"in C||Qe(Z),je==null||je(Z,K)},St=(0,l.useRef)();St.current=Z=>{De(Z.matches),Je==null||Je(Z.matches),Te!==Z.matches&&ft(Z.matches,"responsive")},(0,l.useEffect)(()=>{function Z(m){return St.current(m)}let K;if(typeof window!="undefined"){const{matchMedia:m}=window;if(m&&Ie&&Ie in de){K=m(`(max-width: ${de[Ie]})`);try{K.addEventListener("change",Z)}catch(a){K.addListener(Z)}Z(K)}}return()=>{try{K==null||K.removeEventListener("change",Z)}catch(m){K==null||K.removeListener(Z)}}},[Ie]),(0,l.useEffect)(()=>{const Z=H("ant-sider-");return Ke.addSider(Z),()=>Ke.removeSider(Z)},[]);const $e=()=>{ft(!Te,"clickTrigger")},{getPrefixCls:ve}=(0,l.useContext)(E.E_),at=()=>{const Z=ve("layout-sider",J),K=(0,M.Z)(rt,["collapsed"]),m=Te?ye:V,a=I(m)?`${m}px`:String(m),R=parseFloat(String(ye||0))===0?l.createElement("span",{onClick:$e,className:g()(`${Z}-zero-width-trigger`,`${Z}-zero-width-trigger-${_?"right":"left"}`),style:Me},z||l.createElement(F,null)):null,i={expanded:_?l.createElement(w.Z,null):l.createElement(W.Z,null),collapsed:_?l.createElement(W.Z,null):l.createElement(w.Z,null)}[Te?"collapsed":"expanded"],X=z!==null?R||l.createElement("div",{className:`${Z}-trigger`,onClick:$e,style:{width:a}},z||i):null,$=Object.assign(Object.assign({},q),{flex:`0 0 ${a}`,maxWidth:a,minWidth:a,width:a}),f=g()(Z,`${Z}-${ce}`,{[`${Z}-collapsed`]:!!Te,[`${Z}-has-trigger`]:x&&z!==null&&!R,[`${Z}-below`]:!!vt,[`${Z}-zero-width`]:parseFloat(a)===0},te);return l.createElement("aside",Object.assign({className:f},K,{style:$,ref:S}),l.createElement("div",{className:`${Z}-children`},v),x||vt&&R?X:null)},Ee=l.useMemo(()=>({siderCollapsed:Te}),[Te]);return l.createElement(ie.Provider,{value:Ee},at())})},84966:function(ht,le,e){"use strict";e.d(le,{VY:function(){return ie},$_:function(){return de},h4:function(){return k},Gs:function(){return M},ZP:function(){return H}});var t=e(94480),l=e(92310),P=e.n(l),L=e(2738),T=e(59301),p=e(36355),n=e(83116),W=A=>{const{componentCls:ae,bodyBg:C,lightSiderBg:S,lightTriggerBg:J,lightTriggerColor:te}=A;return{[`${ae}-sider-light`]:{background:S,[`${ae}-sider-trigger`]:{color:te,background:J},[`${ae}-sider-zero-width-trigger`]:{color:te,background:J,border:`1px solid ${C}`,borderInlineStart:0}}}};const w=A=>{const{antCls:ae,componentCls:C,colorText:S,triggerColor:J,footerBg:te,triggerBg:z,headerHeight:v,headerPadding:b,headerColor:ce,footerPadding:q,triggerHeight:x,zeroTriggerHeight:_,zeroTriggerWidth:V,motionDurationMid:ye,motionDurationSlow:Me,fontSize:Ie,borderRadius:je,bodyBg:Je,headerBg:rt,siderBg:Ke}=A;return{[C]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Je,"&, *":{boxSizing:"border-box"},[`&${C}-has-sider`]:{flexDirection:"row",[`> ${C}, > ${C}-content`]:{width:0}},[`${C}-header, &${C}-footer`]:{flex:"0 0 auto"},[`${C}-sider`]:{position:"relative",minWidth:0,background:Ke,transition:`all ${ye}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ae}-menu${ae}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:x},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:x,color:J,lineHeight:`${x}px`,textAlign:"center",background:z,cursor:"pointer",transition:`all ${ye}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:v,insetInlineEnd:-V,zIndex:1,width:V,height:_,color:J,fontSize:A.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ke,borderStartStartRadius:0,borderStartEndRadius:je,borderEndEndRadius:je,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Me} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Me}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-V,borderStartStartRadius:je,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:je}}}}},W(A)),{"&-rtl":{direction:"rtl"}}),[`${C}-header`]:{height:v,padding:b,color:ce,lineHeight:`${v}px`,background:rt,[`${ae}-menu`]:{lineHeight:"inherit"}},[`${C}-footer`]:{padding:q,color:S,fontSize:Ie,background:te},[`${C}-content`]:{flex:"auto",minHeight:0}}};var D=(0,n.Z)("Layout",A=>[w(A)],A=>{const{colorBgLayout:ae,controlHeight:C,controlHeightLG:S,colorText:J,controlHeightSM:te,marginXXS:z,colorTextLightSolid:v,colorBgContainer:b}=A,ce=S*1.25;return{colorBgHeader:"#001529",colorBgBody:ae,colorBgTrigger:"#002140",bodyBg:ae,headerBg:"#001529",headerHeight:C*2,headerPadding:`0 ${ce}px`,headerColor:J,footerPadding:`${te}px ${ce}px`,footerBg:ae,siderBg:"#001529",triggerHeight:S+z*2,triggerBg:"#002140",triggerColor:v,zeroTriggerWidth:S,zeroTriggerHeight:S,lightSiderBg:b,lightTriggerBg:b,lightTriggerColor:J}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),g=function(A,ae){var C={};for(var S in A)Object.prototype.hasOwnProperty.call(A,S)&&ae.indexOf(S)<0&&(C[S]=A[S]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,S=Object.getOwnPropertySymbols(A);J<S.length;J++)ae.indexOf(S[J])<0&&Object.prototype.propertyIsEnumerable.call(A,S[J])&&(C[S[J]]=A[S[J]]);return C};const M=T.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function B(A){let{suffixCls:ae,tagName:C,displayName:S}=A;return J=>T.forwardRef((z,v)=>T.createElement(J,Object.assign({ref:v,suffixCls:ae,tagName:C},z)))}const I=T.forwardRef((A,ae)=>{const{prefixCls:C,suffixCls:S,className:J,tagName:te}=A,z=g(A,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:v}=T.useContext(p.E_),b=v("layout",C),[ce,q]=D(b),x=S?`${b}-${S}`:b;return ce(T.createElement(te,Object.assign({className:P()(C||x,J,q),ref:ae},z)))}),E=T.forwardRef((A,ae)=>{const{direction:C}=T.useContext(p.E_),[S,J]=T.useState([]),{prefixCls:te,className:z,rootClassName:v,children:b,hasSider:ce,tagName:q,style:x}=A,_=g(A,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),V=(0,L.Z)(_,["suffixCls"]),{getPrefixCls:ye,layout:Me}=T.useContext(p.E_),Ie=ye("layout",te),[je,Je]=D(Ie),rt=P()(Ie,{[`${Ie}-has-sider`]:typeof ce=="boolean"?ce:S.length>0,[`${Ie}-rtl`]:C==="rtl"},Me==null?void 0:Me.className,z,v,Je),Ke=T.useMemo(()=>({siderHook:{addSider:Te=>{J(Qe=>[].concat((0,t.Z)(Qe),[Te]))},removeSider:Te=>{J(Qe=>Qe.filter(vt=>vt!==Te))}}}),[]);return je(T.createElement(M.Provider,{value:Ke},T.createElement(q,Object.assign({ref:ae,className:rt,style:Object.assign(Object.assign({},Me==null?void 0:Me.style),x)},V),b)))}),ne=B({tagName:"div",displayName:"Layout"})(E),k=B({suffixCls:"header",tagName:"header",displayName:"Header"})(I),de=B({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(I),ie=B({suffixCls:"content",tagName:"main",displayName:"Content"})(I);var H=ne},40875:function(ht,le,e){"use strict";e.d(le,{J:function(){return p}});var t=e(59301),l=e(33234),P=e(70425),L=function(n,F){var W={};for(var w in n)Object.prototype.hasOwnProperty.call(n,w)&&F.indexOf(w)<0&&(W[w]=n[w]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,w=Object.getOwnPropertySymbols(n);D<w.length;D++)F.indexOf(w[D])<0&&Object.prototype.propertyIsEnumerable.call(n,w[D])&&(W[w[D]]=n[w[D]]);return W};const T=t.createContext(null),p=t.forwardRef((n,F)=>{const{children:W}=n,w=L(n,["children"]),D=t.useContext(T),g=t.useMemo(()=>Object.assign(Object.assign({},D),w),[D,w.prefixCls,w.mode,w.selectable]);return t.createElement(T.Provider,{value:g},t.createElement(l.BR,null,(0,P.supportNodeRef)(W)?t.cloneElement(W,{ref:F}):W))});le.Z=T},20834:function(ht,le,e){"use strict";e.d(le,{default:function(){return Ee}});var t=e(15285),l=e(59301),P=e(45818),L=e(92310),T=e.n(L),p=e(36355),n=function(Z,K){var m={};for(var a in Z)Object.prototype.hasOwnProperty.call(Z,a)&&K.indexOf(a)<0&&(m[a]=Z[a]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,a=Object.getOwnPropertySymbols(Z);R<a.length;R++)K.indexOf(a[R])<0&&Object.prototype.propertyIsEnumerable.call(Z,a[R])&&(m[a[R]]=Z[a[R]]);return m},W=Z=>{const{prefixCls:K,className:m,dashed:a}=Z,R=n(Z,["prefixCls","className","dashed"]),{getPrefixCls:fe}=l.useContext(p.E_),s=fe("menu",K),i=T()({[`${s}-item-divider-dashed`]:!!a},m);return l.createElement(t.iz,Object.assign({className:i},R))},w=e(11592),D=e(2738),g=e(6848),M=e(92343),I=(0,l.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ne=Z=>{var K;const{className:m,children:a,icon:R,title:fe,danger:s}=Z,{prefixCls:i,firstLevel:X,direction:$,disableMenuItemTitleTooltip:f,inlineCollapsed:Q}=l.useContext(I),Re=Y=>{const se=l.createElement("span",{className:`${i}-title-content`},a);return(!R||(0,M.l$)(a)&&a.type==="span")&&a&&Y&&X&&typeof a=="string"?l.createElement("div",{className:`${i}-inline-collapsed-noicon`},a.charAt(0)):se},{siderCollapsed:Pe}=l.useContext(P.D);let Se=fe;typeof fe=="undefined"?Se=X?a:"":fe===!1&&(Se="");const Ne={title:Se};!Pe&&!Q&&(Ne.title=null,Ne.open=!1);const Be=(0,w.Z)(a).length;let d=l.createElement(t.ck,Object.assign({},(0,D.Z)(Z,["title","icon","danger"]),{className:T()({[`${i}-item-danger`]:s,[`${i}-item-only-child`]:(R?Be+1:Be)===1},m),title:typeof fe=="string"?fe:void 0}),(0,M.Tm)(R,{className:T()((0,M.l$)(R)?(K=R.props)===null||K===void 0?void 0:K.className:"",`${i}-item-icon`)}),Re(Q));return f||(d=l.createElement(g.Z,Object.assign({},Ne,{placement:$==="rtl"?"left":"right",overlayClassName:`${i}-inline-collapsed-tooltip`}),d)),d},de=Z=>{var K;const{popupClassName:m,icon:a,title:R,theme:fe}=Z,s=l.useContext(I),{prefixCls:i,inlineCollapsed:X,theme:$}=s,f=(0,t.Xl)();let Q;if(!a)Q=X&&!f.length&&R&&typeof R=="string"?l.createElement("div",{className:`${i}-inline-collapsed-noicon`},R.charAt(0)):l.createElement("span",{className:`${i}-title-content`},R);else{const Pe=(0,M.l$)(R)&&R.type==="span";Q=l.createElement(l.Fragment,null,(0,M.Tm)(a,{className:T()((0,M.l$)(a)?(K=a.props)===null||K===void 0?void 0:K.className:"",`${i}-item-icon`)}),Pe?R:l.createElement("span",{className:`${i}-title-content`},R))}const Re=l.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]);return l.createElement(I.Provider,{value:Re},l.createElement(t.Wd,Object.assign({},(0,D.Z)(Z,["icon"]),{title:Q,popupClassName:T()(i,m,`${i}-${fe||$}`)})))},ie=e(18785),H=e(70425),A=e(62892),ae=e(40875),C=function(Z,K){var m={};for(var a in Z)Object.prototype.hasOwnProperty.call(Z,a)&&K.indexOf(a)<0&&(m[a]=Z[a]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,a=Object.getOwnPropertySymbols(Z);R<a.length;R++)K.indexOf(a[R])<0&&Object.prototype.propertyIsEnumerable.call(Z,a[R])&&(m[a[R]]=Z[a[R]]);return m};function S(Z){return(Z||[]).map((K,m)=>{if(K&&typeof K=="object"){const a=K,{label:R,children:fe,key:s,type:i}=a,X=C(a,["label","children","key","type"]),$=s!=null?s:`tmp-${m}`;return fe||i==="group"?i==="group"?l.createElement(t.BW,Object.assign({key:$},X,{title:R}),S(fe)):l.createElement(de,Object.assign({key:$},X,{title:R}),S(fe)):i==="divider"?l.createElement(W,Object.assign({key:$},X)):l.createElement(ne,Object.assign({key:$},X),R)}return null}).filter(K=>K)}function J(Z){return l.useMemo(()=>Z&&S(Z),[Z])}var te=e(64993),z=e(17313),v=e(8378),b=e(13826),ce=e(29878),q=e(83116),x=e(37613),V=Z=>{const{componentCls:K,motionDurationSlow:m,horizontalLineHeight:a,colorSplit:R,lineWidth:fe,lineType:s,itemPaddingInline:i}=Z;return{[`${K}-horizontal`]:{lineHeight:a,border:0,borderBottom:`${fe}px ${s} ${R}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${K}-item, ${K}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:i},[`> ${K}-item:hover,
|
|
> ${K}-item-active,
|
|
> ${K}-submenu ${K}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${K}-item, ${K}-submenu-title`]:{transition:[`border-color ${m}`,`background ${m}`].join(",")},[`${K}-submenu-arrow`]:{display:"none"}}}},Me=Z=>{let{componentCls:K,menuArrowOffset:m}=Z;return{[`${K}-rtl`]:{direction:"rtl"},[`${K}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${K}-rtl${K}-vertical,
|
|
${K}-submenu-rtl ${K}-vertical`]:{[`${K}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${m})`},"&::after":{transform:`rotate(45deg) translateY(${m})`}}}}};const Ie=Z=>Object.assign({},(0,z.oN)(Z));var Je=(Z,K)=>{const{componentCls:m,itemColor:a,itemSelectedColor:R,groupTitleColor:fe,itemBg:s,subMenuItemBg:i,itemSelectedBg:X,activeBarHeight:$,activeBarWidth:f,activeBarBorderWidth:Q,motionDurationSlow:Re,motionEaseInOut:Pe,motionEaseOut:Se,itemPaddingInline:Ne,motionDurationMid:Be,itemHoverColor:d,lineType:Y,colorSplit:se,itemDisabledColor:Ce,dangerItemColor:Fe,dangerItemHoverColor:_e,dangerItemSelectedColor:He,dangerItemActiveBg:Xe,dangerItemSelectedBg:ut,itemHoverBg:Bt,itemActiveBg:wt,menuSubMenuBg:Dt,horizontalItemSelectedColor:mn,horizontalItemSelectedBg:ln,horizontalItemBorderRadius:$t,horizontalItemHoverBg:En,popupBg:vn}=Z;return{[`${m}-${K}, ${m}-${K} > ${m}`]:{color:a,background:s,[`&${m}-root:focus-visible`]:Object.assign({},Ie(Z)),[`${m}-item-group-title`]:{color:fe},[`${m}-submenu-selected`]:{[`> ${m}-submenu-title`]:{color:R}},[`${m}-item-disabled, ${m}-submenu-disabled`]:{color:`${Ce} !important`},[`${m}-item:not(${m}-item-selected):not(${m}-submenu-selected)`]:{[`&:hover, > ${m}-submenu-title:hover`]:{color:d}},[`&:not(${m}-horizontal)`]:{[`${m}-item:not(${m}-item-selected)`]:{"&:hover":{backgroundColor:Bt},"&:active":{backgroundColor:wt}},[`${m}-submenu-title`]:{"&:hover":{backgroundColor:Bt},"&:active":{backgroundColor:wt}}},[`${m}-item-danger`]:{color:Fe,[`&${m}-item:hover`]:{[`&:not(${m}-item-selected):not(${m}-submenu-selected)`]:{color:_e}},[`&${m}-item:active`]:{background:Xe}},[`${m}-item a`]:{"&, &:hover":{color:"inherit"}},[`${m}-item-selected`]:{color:R,[`&${m}-item-danger`]:{color:He},"a, a:hover":{color:"inherit"}},[`& ${m}-item-selected`]:{backgroundColor:X,[`&${m}-item-danger`]:{backgroundColor:ut}},[`${m}-item, ${m}-submenu-title`]:{[`&:not(${m}-item-disabled):focus-visible`]:Object.assign({},Ie(Z))},[`&${m}-submenu > ${m}`]:{backgroundColor:Dt},[`&${m}-popup > ${m}`]:{backgroundColor:vn},[`&${m}-horizontal`]:Object.assign(Object.assign({},K==="dark"?{borderBottom:0}:{}),{[`> ${m}-item, > ${m}-submenu`]:{top:Q,marginTop:-Q,marginBottom:0,borderRadius:$t,"&::after":{position:"absolute",insetInline:Ne,bottom:0,borderBottom:`${$}px solid transparent`,transition:`border-color ${Re} ${Pe}`,content:'""'},"&:hover, &-active, &-open":{background:En,"&::after":{borderBottomWidth:$,borderBottomColor:mn}},"&-selected":{color:mn,backgroundColor:ln,"&:hover":{backgroundColor:ln},"&::after":{borderBottomWidth:$,borderBottomColor:mn}}}}),[`&${m}-root`]:{[`&${m}-inline, &${m}-vertical`]:{borderInlineEnd:`${Q}px ${Y} ${se}`}},[`&${m}-inline`]:{[`${m}-sub${m}-inline`]:{background:i},[`${m}-item, ${m}-submenu-title`]:Q&&f?{width:`calc(100% + ${Q}px)`}:{},[`${m}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${f}px solid ${R}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Be} ${Se}`,`opacity ${Be} ${Se}`].join(","),content:'""'},[`&${m}-item-danger`]:{"&::after":{borderInlineEndColor:He}}},[`${m}-selected, ${m}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Be} ${Pe}`,`opacity ${Be} ${Pe}`].join(",")}}}}}};const rt=Z=>{const{componentCls:K,itemHeight:m,itemMarginInline:a,padding:R,menuArrowSize:fe,marginXS:s,itemMarginBlock:i}=Z,X=R+fe+s;return{[`${K}-item`]:{position:"relative",overflow:"hidden"},[`${K}-item, ${K}-submenu-title`]:{height:m,lineHeight:`${m}px`,paddingInline:R,overflow:"hidden",textOverflow:"ellipsis",marginInline:a,marginBlock:i,width:`calc(100% - ${a*2}px)`},[`> ${K}-item,
|
|
> ${K}-submenu > ${K}-submenu-title`]:{height:m,lineHeight:`${m}px`},[`${K}-item-group-list ${K}-submenu-title,
|
|
${K}-submenu-title`]:{paddingInlineEnd:X}}};var Te=Z=>{const{componentCls:K,iconCls:m,itemHeight:a,colorTextLightSolid:R,dropdownWidth:fe,controlHeightLG:s,motionDurationMid:i,motionEaseOut:X,paddingXL:$,itemMarginInline:f,fontSizeLG:Q,motionDurationSlow:Re,paddingXS:Pe,boxShadowSecondary:Se,collapsedWidth:Ne,collapsedIconSize:Be}=Z,d={height:a,lineHeight:`${a}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[K]:{"&-inline, &-vertical":Object.assign({[`&${K}-root`]:{boxShadow:"none"}},rt(Z))},[`${K}-submenu-popup`]:{[`${K}-vertical`]:Object.assign(Object.assign({},rt(Z)),{boxShadow:Se})}},{[`${K}-submenu-popup ${K}-vertical${K}-sub`]:{minWidth:fe,maxHeight:`calc(100vh - ${s*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${K}-inline`]:{width:"100%",[`&${K}-root`]:{[`${K}-item, ${K}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Re}`,`background ${Re}`,`padding ${i} ${X}`].join(","),[`> ${K}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${K}-sub${K}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${K}-submenu > ${K}-submenu-title`]:d,[`& ${K}-item-group-title`]:{paddingInlineStart:$}},[`${K}-item`]:d}},{[`${K}-inline-collapsed`]:{width:Ne,[`&${K}-root`]:{[`${K}-item, ${K}-submenu ${K}-submenu-title`]:{[`> ${K}-inline-collapsed-noicon`]:{fontSize:Q,textAlign:"center"}}},[`> ${K}-item,
|
|
> ${K}-item-group > ${K}-item-group-list > ${K}-item,
|
|
> ${K}-item-group > ${K}-item-group-list > ${K}-submenu > ${K}-submenu-title,
|
|
> ${K}-submenu > ${K}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Q/2}px - ${f}px)`,textOverflow:"clip",[`
|
|
${K}-submenu-arrow,
|
|
${K}-submenu-expand-icon
|
|
`]:{opacity:0},[`${K}-item-icon, ${m}`]:{margin:0,fontSize:Be,lineHeight:`${a}px`,"+ span":{display:"inline-block",opacity:0}}},[`${K}-item-icon, ${m}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${K}-item-icon, ${m}`]:{display:"none"},"a, a:hover":{color:R}},[`${K}-item-group-title`]:Object.assign(Object.assign({},z.vS),{paddingInline:Pe})}}]};const Qe=Z=>{const{componentCls:K,motionDurationSlow:m,motionDurationMid:a,motionEaseInOut:R,motionEaseOut:fe,iconCls:s,iconSize:i,iconMarginInlineEnd:X}=Z;return{[`${K}-item, ${K}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${m}`,`background ${m}`,`padding ${m} ${R}`].join(","),[`${K}-item-icon, ${s}`]:{minWidth:i,fontSize:i,transition:[`font-size ${a} ${fe}`,`margin ${m} ${R}`,`color ${m}`].join(","),"+ span":{marginInlineStart:X,opacity:1,transition:[`opacity ${m} ${R}`,`margin ${m}`,`color ${m}`].join(",")}},[`${K}-item-icon`]:Object.assign({},(0,z.Ro)()),[`&${K}-item-only-child`]:{[`> ${s}, > ${K}-item-icon`]:{marginInlineEnd:0}}},[`${K}-item-disabled, ${K}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${K}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},vt=Z=>{const{componentCls:K,motionDurationSlow:m,motionEaseInOut:a,borderRadius:R,menuArrowSize:fe,menuArrowOffset:s}=Z;return{[`${K}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Z.margin,width:fe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${m} ${a}, opacity ${m}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:fe*.6,height:fe*.15,backgroundColor:"currentcolor",borderRadius:R,transition:[`background ${m} ${a}`,`transform ${m} ${a}`,`top ${m} ${a}`,`color ${m} ${a}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${s})`},"&::after":{transform:`rotate(-45deg) translateY(${s})`}}}}},De=Z=>{const{antCls:K,componentCls:m,fontSize:a,motionDurationSlow:R,motionDurationMid:fe,motionEaseInOut:s,paddingXS:i,padding:X,colorSplit:$,lineWidth:f,zIndexPopup:Q,borderRadiusLG:Re,subMenuItemBorderRadius:Pe,menuArrowSize:Se,menuArrowOffset:Ne,lineType:Be,menuPanelMaskInset:d,groupTitleLineHeight:Y,groupTitleFontSize:se}=Z;return[{"":{[`${m}`]:Object.assign(Object.assign({},(0,z.dF)()),{"&-hidden":{display:"none"}})},[`${m}-submenu-hidden`]:{display:"none"}},{[m]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,z.Wf)(Z)),(0,z.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:a,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${R} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${m}-item`]:{flex:"none"}},[`${m}-item, ${m}-submenu, ${m}-submenu-title`]:{borderRadius:Z.itemBorderRadius},[`${m}-item-group-title`]:{padding:`${i}px ${X}px`,fontSize:se,lineHeight:Y,transition:`all ${R}`},[`&-horizontal ${m}-submenu`]:{transition:[`border-color ${R} ${s}`,`background ${R} ${s}`].join(",")},[`${m}-submenu, ${m}-submenu-inline`]:{transition:[`border-color ${R} ${s}`,`background ${R} ${s}`,`padding ${fe} ${s}`].join(",")},[`${m}-submenu ${m}-sub`]:{cursor:"initial",transition:[`background ${R} ${s}`,`padding ${R} ${s}`].join(",")},[`${m}-title-content`]:{transition:`color ${R}`},[`${m}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${m}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:$,borderStyle:Be,borderWidth:0,borderTopWidth:f,marginBlock:f,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Qe(Z)),{[`${m}-item-group`]:{[`${m}-item-group-list`]:{margin:0,padding:0,[`${m}-item, ${m}-submenu-title`]:{paddingInline:`${a*2}px ${X}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Q,borderRadius:Re,boxShadow:"none",transformOrigin:"0 0",[`&${m}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${d}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:d},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Z.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Z.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Z.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Z.paddingXS},[`> ${m}`]:Object.assign(Object.assign(Object.assign({borderRadius:Re},Qe(Z)),vt(Z)),{[`${m}-item, ${m}-submenu > ${m}-submenu-title`]:{borderRadius:Pe},[`${m}-submenu-title::after`]:{transition:`transform ${R} ${s}`}})}}),vt(Z)),{[`&-inline-collapsed ${m}-submenu-arrow,
|
|
&-inline ${m}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ne})`},"&::after":{transform:`rotate(45deg) translateX(-${Ne})`}},[`${m}-submenu-open${m}-submenu-inline > ${m}-submenu-title > ${m}-submenu-arrow`]:{transform:`translateY(-${Se*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ne})`},"&::before":{transform:`rotate(45deg) translateX(${Ne})`}}})},{[`${K}-layout-header`]:{[m]:{lineHeight:"inherit"}}}]};var ft=(Z,K)=>(0,q.Z)("Menu",a=>{if(K===!1)return[];const{colorBgElevated:R,colorPrimary:fe,colorTextLightSolid:s,controlHeightLG:i,fontSize:X,darkItemColor:$,darkDangerItemColor:f,darkItemBg:Q,darkSubMenuItemBg:Re,darkItemSelectedColor:Pe,darkItemSelectedBg:Se,darkDangerItemSelectedBg:Ne,darkItemHoverBg:Be,darkGroupTitleColor:d,darkItemHoverColor:Y,darkItemDisabledColor:se,darkDangerItemHoverColor:Ce,darkDangerItemSelectedColor:Fe,darkDangerItemActiveBg:_e}=a,He=X/7*5,Xe=(0,x.TS)(a,{menuArrowSize:He,menuHorizontalHeight:i*1.15,menuArrowOffset:`${He*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:R}),ut=(0,x.TS)(Xe,{itemColor:$,itemHoverColor:Y,groupTitleColor:d,itemSelectedColor:Pe,itemBg:Q,popupBg:Q,subMenuItemBg:Re,itemActiveBg:"transparent",itemSelectedBg:Se,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Be,itemDisabledColor:se,dangerItemColor:f,dangerItemHoverColor:Ce,dangerItemSelectedColor:Fe,dangerItemActiveBg:_e,dangerItemSelectedBg:Ne,menuSubMenuBg:Re,horizontalItemSelectedColor:s,horizontalItemSelectedBg:fe});return[De(Xe),V(Xe),Te(Xe),Je(Xe,"light"),Je(ut,"dark"),Me(Xe),(0,v.Z)(Xe),(0,b.oN)(Xe,"slide-up"),(0,b.oN)(Xe,"slide-down"),(0,ce._y)(Xe,"zoom-big")]},a=>{const{colorPrimary:R,colorError:fe,colorTextDisabled:s,colorErrorBg:i,colorText:X,colorTextDescription:$,colorBgContainer:f,colorFillAlter:Q,colorFillContent:Re,lineWidth:Pe,lineWidthBold:Se,controlItemBgActive:Ne,colorBgTextHover:Be,controlHeightLG:d,lineHeight:Y,colorBgElevated:se,marginXXS:Ce,padding:Fe,fontSize:_e,controlHeightSM:He,fontSizeLG:Xe,colorTextLightSolid:ut,colorErrorHover:Bt}=a,wt=new te.C(ut).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:a.zIndexPopupBase+50,radiusItem:a.borderRadiusLG,itemBorderRadius:a.borderRadiusLG,radiusSubMenuItem:a.borderRadiusSM,subMenuItemBorderRadius:a.borderRadiusSM,colorItemText:X,itemColor:X,colorItemTextHover:X,itemHoverColor:X,colorItemTextHoverHorizontal:R,horizontalItemHoverColor:R,colorGroupTitle:$,groupTitleColor:$,colorItemTextSelected:R,itemSelectedColor:R,colorItemTextSelectedHorizontal:R,horizontalItemSelectedColor:R,colorItemBg:f,itemBg:f,colorItemBgHover:Be,itemHoverBg:Be,colorItemBgActive:Re,itemActiveBg:Ne,colorSubItemBg:Q,subMenuItemBg:Q,colorItemBgSelected:Ne,itemSelectedBg:Ne,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Se,activeBarHeight:Se,colorActiveBarBorderSize:Pe,activeBarBorderWidth:Pe,colorItemTextDisabled:s,itemDisabledColor:s,colorDangerItemText:fe,dangerItemColor:fe,colorDangerItemTextHover:fe,dangerItemHoverColor:fe,colorDangerItemTextSelected:fe,dangerItemSelectedColor:fe,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:a.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:d,groupTitleLineHeight:Y,collapsedWidth:d*2,popupBg:se,itemMarginBlock:Ce,itemPaddingInline:Fe,horizontalLineHeight:`${d*1.15}px`,iconSize:_e,iconMarginInlineEnd:He-_e,collapsedIconSize:Xe,groupTitleFontSize:_e,darkItemDisabledColor:new te.C(ut).setAlpha(.25).toRgbString(),darkItemColor:wt,darkDangerItemColor:fe,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ut,darkItemSelectedBg:R,darkDangerItemSelectedBg:fe,darkItemHoverBg:"transparent",darkGroupTitleColor:wt,darkItemHoverColor:ut,darkDangerItemHoverColor:Bt,darkDangerItemSelectedColor:ut,darkDangerItemActiveBg:fe}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Z),St=function(Z,K){var m={};for(var a in Z)Object.prototype.hasOwnProperty.call(Z,a)&&K.indexOf(a)<0&&(m[a]=Z[a]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,a=Object.getOwnPropertySymbols(Z);R<a.length;R++)K.indexOf(a[R])<0&&Object.prototype.propertyIsEnumerable.call(Z,a[R])&&(m[a[R]]=Z[a[R]]);return m},ve=(0,l.forwardRef)((Z,K)=>{var m,a;const R=l.useContext(ae.Z),fe=R||{},{getPrefixCls:s,getPopupContainer:i,direction:X,menu:$}=l.useContext(p.E_),f=s(),{prefixCls:Q,className:Re,style:Pe,theme:Se="light",expandIcon:Ne,_internalDisableMenuItemTitleTooltip:Be,inlineCollapsed:d,siderCollapsed:Y,items:se,children:Ce,rootClassName:Fe,mode:_e,selectable:He,onClick:Xe,overflowedIndicatorPopupClassName:ut}=Z,Bt=St(Z,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),wt=(0,D.Z)(Bt,["collapsedWidth"]),Dt=J(se)||Ce;(m=fe.validator)===null||m===void 0||m.call(fe,{mode:_e});const mn=(0,H.useEvent)(function(){var Un;Xe==null||Xe.apply(void 0,arguments),(Un=fe.onClick)===null||Un===void 0||Un.call(fe)}),ln=fe.mode||_e,$t=He!=null?He:fe.selectable,En=l.useMemo(()=>Y!==void 0?Y:d,[d,Y]),vn={horizontal:{motionName:`${f}-slide-up`},inline:(0,A.Z)(f),other:{motionName:`${f}-zoom-big`}},sn=s("menu",Q||fe.prefixCls),[yn,xn]=ft(sn,!R),An=T()(`${sn}-${Se}`,$==null?void 0:$.className,Re);let lr;if(typeof Ne=="function")lr=Ne;else if(Ne===null||Ne===!1)lr=null;else if(fe.expandIcon===null||fe.expandIcon===!1)lr=null;else{const Un=Ne!=null?Ne:fe.expandIcon;lr=(0,M.Tm)(Un,{className:T()(`${sn}-submenu-expand-icon`,(0,M.l$)(Un)?(a=Un.props)===null||a===void 0?void 0:a.className:"")})}const br=l.useMemo(()=>({prefixCls:sn,inlineCollapsed:En||!1,direction:X,firstLevel:!0,theme:Se,mode:ln,disableMenuItemTitleTooltip:Be}),[sn,En,X,Be,Se]);return yn(l.createElement(ae.Z.Provider,{value:null},l.createElement(I.Provider,{value:br},l.createElement(t.ZP,Object.assign({getPopupContainer:i,overflowedIndicator:l.createElement(ie.Z,null),overflowedIndicatorPopupClassName:T()(sn,`${sn}-${Se}`,ut),mode:ln,selectable:$t,onClick:mn},wt,{inlineCollapsed:En,style:Object.assign(Object.assign({},$==null?void 0:$.style),Pe),className:An,prefixCls:sn,direction:X,defaultMotions:vn,expandIcon:lr,ref:K,rootClassName:T()(Fe,xn)}),Dt))))});const at=(0,l.forwardRef)((Z,K)=>{const m=(0,l.useRef)(null),a=l.useContext(P.D);return(0,l.useImperativeHandle)(K,()=>({menu:m.current,focus:R=>{var fe;(fe=m.current)===null||fe===void 0||fe.focus(R)}})),l.createElement(ve,Object.assign({ref:m},Z,a))});at.Item=ne,at.SubMenu=de,at.Divider=W,at.ItemGroup=t.BW;var Ee=at},58421:function(ht,le,e){"use strict";e.d(le,{Z:function(){return fe}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},L=P,T=e(7657),p=function(i,X){return l.createElement(T.Z,(0,t.Z)({},i,{ref:X,icon:L}))},n=l.forwardRef(p),F=n,W=e(49198),w=e(33853),D=e(38819),g=e(92310),M=e.n(g),B=e(20068),I=e(33885),E=e(67732),ne=e(83652),k=e(42403),de=e(158),ie=e(26112),H={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},A=H,ae=e(91735),C=function(s){(0,k.Z)(X,s);var i=(0,de.Z)(X);function X(){var $;(0,E.Z)(this,X);for(var f=arguments.length,Q=new Array(f),Re=0;Re<f;Re++)Q[Re]=arguments[Re];return $=i.call.apply(i,[this].concat(Q)),$.state={goInputText:""},$.getValidValue=function(){var Pe=$.state.goInputText;return!Pe||Number.isNaN(Pe)?void 0:Number(Pe)},$.buildOptionText=function(Pe){return"".concat(Pe," ").concat($.props.locale.items_per_page)},$.changeSize=function(Pe){$.props.changeSize(Number(Pe))},$.handleChange=function(Pe){$.setState({goInputText:Pe.target.value})},$.handleBlur=function(Pe){var Se=$.props,Ne=Se.goButton,Be=Se.quickGo,d=Se.rootPrefixCls,Y=$.state.goInputText;Ne||Y===""||($.setState({goInputText:""}),!(Pe.relatedTarget&&(Pe.relatedTarget.className.indexOf("".concat(d,"-item-link"))>=0||Pe.relatedTarget.className.indexOf("".concat(d,"-item"))>=0))&&Be($.getValidValue()))},$.go=function(Pe){var Se=$.state.goInputText;Se!==""&&(Pe.keyCode===A.ENTER||Pe.type==="click")&&($.setState({goInputText:""}),$.props.quickGo($.getValidValue()))},$}return(0,ne.Z)(X,[{key:"getPageSizeOptions",value:function(){var f=this.props,Q=f.pageSize,Re=f.pageSizeOptions;return Re.some(function(Pe){return Pe.toString()===Q.toString()})?Re:Re.concat([Q.toString()]).sort(function(Pe,Se){var Ne=Number.isNaN(Number(Pe))?0:Number(Pe),Be=Number.isNaN(Number(Se))?0:Number(Se);return Ne-Be})}},{key:"render",value:function(){var f=this,Q=this.props,Re=Q.pageSize,Pe=Q.locale,Se=Q.rootPrefixCls,Ne=Q.changeSize,Be=Q.quickGo,d=Q.goButton,Y=Q.selectComponentClass,se=Q.buildOptionText,Ce=Q.selectPrefixCls,Fe=Q.disabled,_e=this.state.goInputText,He="".concat(Se,"-options"),Xe=Y,ut=null,Bt=null,wt=null;if(!Ne&&!Be)return null;var Dt=this.getPageSizeOptions();if(Ne&&Xe){var mn=Dt.map(function(ln,$t){return l.createElement(Xe.Option,{key:$t,value:ln.toString()},(se||f.buildOptionText)(ln))});ut=l.createElement(Xe,{disabled:Fe,prefixCls:Ce,showSearch:!1,className:"".concat(He,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Re||Dt[0]).toString(),onChange:this.changeSize,getPopupContainer:function($t){return $t.parentNode},"aria-label":Pe.page_size,defaultOpen:!1},mn)}return Be&&(d&&(wt=typeof d=="boolean"?l.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Fe,className:"".concat(He,"-quick-jumper-button")},Pe.jump_to_confirm):l.createElement("span",{onClick:this.go,onKeyUp:this.go},d)),Bt=l.createElement("div",{className:"".concat(He,"-quick-jumper")},Pe.jump_to,l.createElement("input",{disabled:Fe,type:"text",value:_e,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Pe.page}),Pe.page,wt)),l.createElement("li",{className:"".concat(He)},ut,Bt)}}]),X}(l.Component);C.defaultProps={pageSizeOptions:["10","20","50","100"]};var S=C,J=function(i){var X,$=i.rootPrefixCls,f=i.page,Q=i.active,Re=i.className,Pe=i.showTitle,Se=i.onClick,Ne=i.onKeyPress,Be=i.itemRender,d="".concat($,"-item"),Y=M()(d,"".concat(d,"-").concat(f),(X={},(0,B.Z)(X,"".concat(d,"-active"),Q),(0,B.Z)(X,"".concat(d,"-disabled"),!f),(0,B.Z)(X,i.className,Re),X)),se=function(){Se(f)},Ce=function(He){Ne(He,Se,f)},Fe=Be(f,"page",l.createElement("a",{rel:"nofollow"},f));return Fe?l.createElement("li",{title:Pe?f.toString():null,className:Y,onClick:se,onKeyPress:Ce,tabIndex:0},Fe):null},te=J;function z(){}function v(s){var i=Number(s);return typeof i=="number"&&!Number.isNaN(i)&&isFinite(i)&&Math.floor(i)===i}var b=function(i,X,$){return $};function ce(s,i,X){var $=typeof s=="undefined"?i.pageSize:s;return Math.floor((X.total-1)/$)+1}var q=function(s){(0,k.Z)(X,s);var i=(0,de.Z)(X);function X($){var f;(0,E.Z)(this,X),f=i.call(this,$),f.paginationNode=l.createRef(),f.getJumpPrevPage=function(){return Math.max(1,f.state.current-(f.props.showLessItems?3:5))},f.getJumpNextPage=function(){return Math.min(ce(void 0,f.state,f.props),f.state.current+(f.props.showLessItems?3:5))},f.getItemIcon=function(Ne,Be){var d=f.props.prefixCls,Y=Ne||l.createElement("button",{type:"button","aria-label":Be,className:"".concat(d,"-item-link")});return typeof Ne=="function"&&(Y=l.createElement(Ne,(0,I.Z)({},f.props))),Y},f.isValid=function(Ne){var Be=f.props.total;return v(Ne)&&Ne!==f.state.current&&v(Be)&&Be>0},f.shouldDisplayQuickJumper=function(){var Ne=f.props,Be=Ne.showQuickJumper,d=Ne.total,Y=f.state.pageSize;return d<=Y?!1:Be},f.handleKeyDown=function(Ne){(Ne.keyCode===A.ARROW_UP||Ne.keyCode===A.ARROW_DOWN)&&Ne.preventDefault()},f.handleKeyUp=function(Ne){var Be=f.getValidValue(Ne),d=f.state.currentInputValue;Be!==d&&f.setState({currentInputValue:Be}),Ne.keyCode===A.ENTER?f.handleChange(Be):Ne.keyCode===A.ARROW_UP?f.handleChange(Be-1):Ne.keyCode===A.ARROW_DOWN&&f.handleChange(Be+1)},f.handleBlur=function(Ne){var Be=f.getValidValue(Ne);f.handleChange(Be)},f.changePageSize=function(Ne){var Be=f.state.current,d=ce(Ne,f.state,f.props);Be=Be>d?d:Be,d===0&&(Be=f.state.current),typeof Ne=="number"&&("pageSize"in f.props||f.setState({pageSize:Ne}),"current"in f.props||f.setState({current:Be,currentInputValue:Be})),f.props.onShowSizeChange(Be,Ne),"onChange"in f.props&&f.props.onChange&&f.props.onChange(Be,Ne)},f.handleChange=function(Ne){var Be=f.props,d=Be.disabled,Y=Be.onChange,se=f.state,Ce=se.pageSize,Fe=se.current,_e=se.currentInputValue;if(f.isValid(Ne)&&!d){var He=ce(void 0,f.state,f.props),Xe=Ne;return Ne>He?Xe=He:Ne<1&&(Xe=1),"current"in f.props||f.setState({current:Xe}),Xe!==_e&&f.setState({currentInputValue:Xe}),Y(Xe,Ce),Xe}return Fe},f.prev=function(){f.hasPrev()&&f.handleChange(f.state.current-1)},f.next=function(){f.hasNext()&&f.handleChange(f.state.current+1)},f.jumpPrev=function(){f.handleChange(f.getJumpPrevPage())},f.jumpNext=function(){f.handleChange(f.getJumpNextPage())},f.hasPrev=function(){return f.state.current>1},f.hasNext=function(){return f.state.current<ce(void 0,f.state,f.props)},f.runIfEnter=function(Ne,Be){if(Ne.key==="Enter"||Ne.charCode===13){for(var d=arguments.length,Y=new Array(d>2?d-2:0),se=2;se<d;se++)Y[se-2]=arguments[se];Be.apply(void 0,Y)}},f.runIfEnterPrev=function(Ne){f.runIfEnter(Ne,f.prev)},f.runIfEnterNext=function(Ne){f.runIfEnter(Ne,f.next)},f.runIfEnterJumpPrev=function(Ne){f.runIfEnter(Ne,f.jumpPrev)},f.runIfEnterJumpNext=function(Ne){f.runIfEnter(Ne,f.jumpNext)},f.handleGoTO=function(Ne){(Ne.keyCode===A.ENTER||Ne.type==="click")&&f.handleChange(f.state.currentInputValue)},f.renderPrev=function(Ne){var Be=f.props,d=Be.prevIcon,Y=Be.itemRender,se=Y(Ne,"prev",f.getItemIcon(d,"prev page")),Ce=!f.hasPrev();return(0,l.isValidElement)(se)?(0,l.cloneElement)(se,{disabled:Ce}):se},f.renderNext=function(Ne){var Be=f.props,d=Be.nextIcon,Y=Be.itemRender,se=Y(Ne,"next",f.getItemIcon(d,"next page")),Ce=!f.hasNext();return(0,l.isValidElement)(se)?(0,l.cloneElement)(se,{disabled:Ce}):se};var Q=$.onChange!==z,Re="current"in $;Re&&!Q&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Pe=$.defaultCurrent;"current"in $&&(Pe=$.current);var Se=$.defaultPageSize;return"pageSize"in $&&(Se=$.pageSize),Pe=Math.min(Pe,ce(Se,void 0,$)),f.state={current:Pe,currentInputValue:Pe,pageSize:Se},f}return(0,ne.Z)(X,[{key:"componentDidUpdate",value:function(f,Q){var Re=this.props.prefixCls;if(Q.current!==this.state.current&&this.paginationNode.current){var Pe=this.paginationNode.current.querySelector(".".concat(Re,"-item-").concat(Q.current));if(Pe&&document.activeElement===Pe){var Se;Pe==null||(Se=Pe.blur)===null||Se===void 0||Se.call(Pe)}}}},{key:"getValidValue",value:function(f){var Q=f.target.value,Re=ce(void 0,this.state,this.props),Pe=this.state.currentInputValue,Se;return Q===""?Se=Q:Number.isNaN(Number(Q))?Se=Pe:Q>=Re?Se=Re:Se=Number(Q),Se}},{key:"getShowSizeChanger",value:function(){var f=this.props,Q=f.showSizeChanger,Re=f.total,Pe=f.totalBoundaryShowSizeChanger;return typeof Q!="undefined"?Q:Re>Pe}},{key:"render",value:function(){var f=this.props,Q=f.prefixCls,Re=f.className,Pe=f.style,Se=f.disabled,Ne=f.hideOnSinglePage,Be=f.total,d=f.locale,Y=f.showQuickJumper,se=f.showLessItems,Ce=f.showTitle,Fe=f.showTotal,_e=f.simple,He=f.itemRender,Xe=f.showPrevNextJumpers,ut=f.jumpPrevIcon,Bt=f.jumpNextIcon,wt=f.selectComponentClass,Dt=f.selectPrefixCls,mn=f.pageSizeOptions,ln=this.state,$t=ln.current,En=ln.pageSize,vn=ln.currentInputValue;if(Ne===!0&&Be<=En)return null;var sn=ce(void 0,this.state,this.props),yn=[],xn=null,An=null,lr=null,br=null,Un=null,cr=Y&&Y.goButton,Zn=se?1:2,fr=$t-1>0?$t-1:0,Dr=$t+1<sn?$t+1:sn,Ir=(0,ie.Z)(this.props,{aria:!0,data:!0}),pr=Fe&&l.createElement("li",{className:"".concat(Q,"-total-text")},Fe(Be,[Be===0?0:($t-1)*En+1,$t*En>Be?Be:$t*En]));if(_e){cr&&(typeof cr=="boolean"?Un=l.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):Un=l.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},cr),Un=l.createElement("li",{title:Ce?"".concat(d.jump_to).concat($t,"/").concat(sn):null,className:"".concat(Q,"-simple-pager")},Un));var _r=this.renderPrev(fr);return l.createElement("ul",(0,t.Z)({className:M()(Q,"".concat(Q,"-simple"),(0,B.Z)({},"".concat(Q,"-disabled"),Se),Re),style:Pe,ref:this.paginationNode},Ir),pr,_r?l.createElement("li",{title:Ce?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:M()("".concat(Q,"-prev"),(0,B.Z)({},"".concat(Q,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},_r):null,l.createElement("li",{title:Ce?"".concat($t,"/").concat(sn):null,className:"".concat(Q,"-simple-pager")},l.createElement("input",{type:"text",value:vn,disabled:Se,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),l.createElement("span",{className:"".concat(Q,"-slash")},"/"),sn),l.createElement("li",{title:Ce?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:M()("".concat(Q,"-next"),(0,B.Z)({},"".concat(Q,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Dr)),Un)}if(sn<=3+Zn*2){var Xr={locale:d,rootPrefixCls:Q,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Ce,itemRender:He};sn||yn.push(l.createElement(te,(0,t.Z)({},Xr,{key:"noPager",page:1,className:"".concat(Q,"-item-disabled")})));for(var Lr=1;Lr<=sn;Lr+=1){var so=$t===Lr;yn.push(l.createElement(te,(0,t.Z)({},Xr,{key:Lr,page:Lr,active:so})))}}else{var Jr=se?d.prev_3:d.prev_5,Ge=se?d.next_3:d.next_5,pe=He(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(ut,"prev page")),lt=He(this.getJumpNextPage(),"jump-next",this.getItemIcon(Bt,"next page"));Xe&&(xn=pe?l.createElement("li",{title:Ce?Jr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:M()("".concat(Q,"-jump-prev"),(0,B.Z)({},"".concat(Q,"-jump-prev-custom-icon"),!!ut))},pe):null,An=lt?l.createElement("li",{title:Ce?Ge:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:M()("".concat(Q,"-jump-next"),(0,B.Z)({},"".concat(Q,"-jump-next-custom-icon"),!!Bt))},lt):null),br=l.createElement(te,{locale:d,last:!0,rootPrefixCls:Q,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:sn,page:sn,active:!1,showTitle:Ce,itemRender:He}),lr=l.createElement(te,{locale:d,rootPrefixCls:Q,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Ce,itemRender:He});var Pt=Math.max(1,$t-Zn),Nt=Math.min($t+Zn,sn);$t-1<=Zn&&(Nt=1+Zn*2),sn-$t<=Zn&&(Pt=sn-Zn*2);for(var Kt=Pt;Kt<=Nt;Kt+=1){var Xt=$t===Kt;yn.push(l.createElement(te,{locale:d,rootPrefixCls:Q,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Kt,page:Kt,active:Xt,showTitle:Ce,itemRender:He}))}$t-1>=Zn*2&&$t!==3&&(yn[0]=(0,l.cloneElement)(yn[0],{className:"".concat(Q,"-item-after-jump-prev")}),yn.unshift(xn)),sn-$t>=Zn*2&&$t!==sn-2&&(yn[yn.length-1]=(0,l.cloneElement)(yn[yn.length-1],{className:"".concat(Q,"-item-before-jump-next")}),yn.push(An)),Pt!==1&&yn.unshift(lr),Nt!==sn&&yn.push(br)}var zt=!this.hasPrev()||!sn,j=!this.hasNext()||!sn,ue=this.renderPrev(fr),xe=this.renderNext(Dr);return l.createElement("ul",(0,t.Z)({className:M()(Q,Re,(0,B.Z)({},"".concat(Q,"-disabled"),Se)),style:Pe,ref:this.paginationNode},Ir),pr,ue?l.createElement("li",{title:Ce?d.prev_page:null,onClick:this.prev,tabIndex:zt?null:0,onKeyPress:this.runIfEnterPrev,className:M()("".concat(Q,"-prev"),(0,B.Z)({},"".concat(Q,"-disabled"),zt)),"aria-disabled":zt},ue):null,yn,xe?l.createElement("li",{title:Ce?d.next_page:null,onClick:this.next,tabIndex:j?null:0,onKeyPress:this.runIfEnterNext,className:M()("".concat(Q,"-next"),(0,B.Z)({},"".concat(Q,"-disabled"),j)),"aria-disabled":j},xe):null,l.createElement(S,{disabled:Se,locale:d,rootPrefixCls:Q,selectComponentClass:wt,selectPrefixCls:Dt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:$t,pageSize:En,pageSizeOptions:mn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:cr}))}}],[{key:"getDerivedStateFromProps",value:function(f,Q){var Re={};if("current"in f&&(Re.current=f.current,f.current!==Q.current&&(Re.currentInputValue=Re.current)),"pageSize"in f&&f.pageSize!==Q.pageSize){var Pe=Q.current,Se=ce(f.pageSize,Q,f);Pe=Pe>Se?Se:Pe,"current"in f||(Re.current=Pe,Re.currentInputValue=Pe),Re.pageSize=f.pageSize}return Re}}]),X}(l.Component);q.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:z,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:z,locale:ae.Z,style:{},itemRender:b,totalBoundaryShowSizeChanger:50};var x=q,_=e(22075),V=e(36355),ye=e(19716),Me=e(8628),Ie=e(9763),je=e(57809);const Je=s=>l.createElement(je.default,Object.assign({},s,{showSearch:!0,size:"small"})),rt=s=>l.createElement(je.default,Object.assign({},s,{showSearch:!0,size:"middle"}));Je.Option=je.default.Option,rt.Option=je.default.Option;var Ke=e(9937),Te=e(17313),Qe=e(83116),vt=e(37613);const De=s=>{const{componentCls:i}=s;return{[`${i}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${i}-item-link`]:{color:s.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${i}-item-link`]:{color:s.colorTextDisabled,cursor:"not-allowed"}}},[`&${i}-disabled`]:{cursor:"not-allowed",[`${i}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:s.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:s.colorBorder,backgroundColor:s.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:s.itemActiveBgDisabled},a:{color:s.itemActiveColorDisabled}}},[`${i}-item-link`]:{color:s.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${i}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${i}-simple-pager`]:{color:s.colorTextDisabled},[`${i}-jump-prev, ${i}-jump-next`]:{[`${i}-item-link-icon`]:{opacity:0},[`${i}-item-ellipsis`]:{opacity:1}}},[`&${i}-simple`]:{[`${i}-prev, ${i}-next`]:{[`&${i}-disabled ${i}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ft=s=>{const{componentCls:i}=s;return{[`&${i}-mini ${i}-total-text, &${i}-mini ${i}-simple-pager`]:{height:s.itemSizeSM,lineHeight:`${s.itemSizeSM}px`},[`&${i}-mini ${i}-item`]:{minWidth:s.itemSizeSM,height:s.itemSizeSM,margin:0,lineHeight:`${s.itemSizeSM-2}px`},[`&${i}-mini:not(${i}-disabled) ${i}-item:not(${i}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:s.colorBgTextHover},"&:active":{backgroundColor:s.colorBgTextActive}},[`&${i}-mini ${i}-prev, &${i}-mini ${i}-next`]:{minWidth:s.itemSizeSM,height:s.itemSizeSM,margin:0,lineHeight:`${s.itemSizeSM}px`},[`&${i}-mini:not(${i}-disabled)`]:{[`${i}-prev, ${i}-next`]:{[`&:hover ${i}-item-link`]:{backgroundColor:s.colorBgTextHover},[`&:active ${i}-item-link`]:{backgroundColor:s.colorBgTextActive},[`&${i}-disabled:hover ${i}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
&${i}-mini ${i}-prev ${i}-item-link,
|
|
&${i}-mini ${i}-next ${i}-item-link
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:s.itemSizeSM,lineHeight:`${s.itemSizeSM}px`}},[`&${i}-mini ${i}-jump-prev, &${i}-mini ${i}-jump-next`]:{height:s.itemSizeSM,marginInlineEnd:0,lineHeight:`${s.itemSizeSM}px`},[`&${i}-mini ${i}-options`]:{marginInlineStart:s.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:s.miniOptionsSizeChangerTop},"&-quick-jumper":{height:s.itemSizeSM,lineHeight:`${s.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Ke.x0)(s)),{width:s.paginationMiniQuickJumperInputWidth,height:s.controlHeightSM})}}}},St=s=>{const{componentCls:i}=s;return{[`
|
|
&${i}-simple ${i}-prev,
|
|
&${i}-simple ${i}-next
|
|
`]:{height:s.itemSizeSM,lineHeight:`${s.itemSizeSM}px`,verticalAlign:"top",[`${i}-item-link`]:{height:s.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:s.colorBgTextHover},"&:active":{backgroundColor:s.colorBgTextActive},"&::after":{height:s.itemSizeSM,lineHeight:`${s.itemSizeSM}px`}}},[`&${i}-simple ${i}-simple-pager`]:{display:"inline-block",height:s.itemSizeSM,marginInlineEnd:s.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:s.marginXS,padding:`0 ${s.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:s.itemInputBg,border:`${s.lineWidth}px ${s.lineType} ${s.colorBorder}`,borderRadius:s.borderRadius,outline:"none",transition:`border-color ${s.motionDurationMid}`,color:"inherit","&:hover":{borderColor:s.colorPrimary},"&:focus":{borderColor:s.colorPrimaryHover,boxShadow:`${s.inputOutlineOffset}px 0 ${s.controlOutlineWidth}px ${s.controlOutline}`},"&[disabled]":{color:s.colorTextDisabled,backgroundColor:s.colorBgContainerDisabled,borderColor:s.colorBorder,cursor:"not-allowed"}}}}},$e=s=>{const{componentCls:i}=s;return{[`${i}-jump-prev, ${i}-jump-next`]:{outline:0,[`${i}-item-container`]:{position:"relative",[`${i}-item-link-icon`]:{color:s.colorPrimary,fontSize:s.fontSizeSM,opacity:0,transition:`all ${s.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${i}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:s.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:s.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:s.paginationEllipsisTextIndent,opacity:1,transition:`all ${s.motionDurationMid}`}},"&:hover":{[`${i}-item-link-icon`]:{opacity:1},[`${i}-item-ellipsis`]:{opacity:0}}},[`
|
|
${i}-prev,
|
|
${i}-jump-prev,
|
|
${i}-jump-next
|
|
`]:{marginInlineEnd:s.marginXS},[`
|
|
${i}-prev,
|
|
${i}-next,
|
|
${i}-jump-prev,
|
|
${i}-jump-next
|
|
`]:{display:"inline-block",minWidth:s.itemSize,height:s.itemSize,color:s.colorText,fontFamily:s.fontFamily,lineHeight:`${s.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:s.borderRadius,cursor:"pointer",transition:`all ${s.motionDurationMid}`},[`${i}-prev, ${i}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:s.colorText,cursor:"pointer",userSelect:"none"},[`${i}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:s.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${s.lineWidth}px ${s.lineType} transparent`,borderRadius:s.borderRadius,outline:"none",transition:`all ${s.motionDurationMid}`},[`&:hover ${i}-item-link`]:{backgroundColor:s.colorBgTextHover},[`&:active ${i}-item-link`]:{backgroundColor:s.colorBgTextActive},[`&${i}-disabled:hover`]:{[`${i}-item-link`]:{backgroundColor:"transparent"}}},[`${i}-slash`]:{marginInlineEnd:s.paginationSlashMarginInlineEnd,marginInlineStart:s.paginationSlashMarginInlineStart},[`${i}-options`]:{display:"inline-block",marginInlineStart:s.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:s.controlHeight,marginInlineStart:s.marginXS,lineHeight:`${s.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Ke.ik)(s)),{width:s.controlHeightLG*1.25,height:s.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:s.marginXS,marginInlineEnd:s.marginXS})}}}},ve=s=>{const{componentCls:i}=s;return{[`${i}-item`]:{display:"inline-block",minWidth:s.itemSize,height:s.itemSize,marginInlineEnd:s.marginXS,fontFamily:s.fontFamily,lineHeight:`${s.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${s.lineWidth}px ${s.lineType} transparent`,borderRadius:s.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${s.paginationItemPaddingInline}px`,color:s.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${i}-item-active)`]:{"&:hover":{transition:`all ${s.motionDurationMid}`,backgroundColor:s.colorBgTextHover},"&:active":{backgroundColor:s.colorBgTextActive}},"&-active":{fontWeight:s.fontWeightStrong,backgroundColor:s.itemActiveBg,borderColor:s.colorPrimary,a:{color:s.colorPrimary},"&:hover":{borderColor:s.colorPrimaryHover},"&:hover a":{color:s.colorPrimaryHover}}}}},at=s=>{const{componentCls:i}=s;return{[i]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Te.Wf)(s)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${i}-total-text`]:{display:"inline-block",height:s.itemSize,marginInlineEnd:s.marginXS,lineHeight:`${s.itemSize-2}px`,verticalAlign:"middle"}}),ve(s)),$e(s)),St(s)),ft(s)),De(s)),{[`@media only screen and (max-width: ${s.screenLG}px)`]:{[`${i}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${s.screenSM}px)`]:{[`${i}-options`]:{display:"none"}}}),[`&${s.componentCls}-rtl`]:{direction:"rtl"}}},Ee=s=>{const{componentCls:i}=s;return{[`${i}${i}-disabled:not(${i}-mini)`]:{"&, &:hover":{[`${i}-item-link`]:{borderColor:s.colorBorder}},"&:focus-visible":{[`${i}-item-link`]:{borderColor:s.colorBorder}},[`${i}-item, ${i}-item-link`]:{backgroundColor:s.colorBgContainerDisabled,borderColor:s.colorBorder,[`&:hover:not(${i}-item-active)`]:{backgroundColor:s.colorBgContainerDisabled,borderColor:s.colorBorder,a:{color:s.colorTextDisabled}},[`&${i}-item-active`]:{backgroundColor:s.itemActiveBgDisabled}},[`${i}-prev, ${i}-next`]:{"&:hover button":{backgroundColor:s.colorBgContainerDisabled,borderColor:s.colorBorder,color:s.colorTextDisabled},[`${i}-item-link`]:{backgroundColor:s.colorBgContainerDisabled,borderColor:s.colorBorder}}},[`${i}:not(${i}-mini)`]:{[`${i}-prev, ${i}-next`]:{"&:hover button":{borderColor:s.colorPrimaryHover,backgroundColor:s.itemBg},[`${i}-item-link`]:{backgroundColor:s.itemLinkBg,borderColor:s.colorBorder},[`&:hover ${i}-item-link`]:{borderColor:s.colorPrimary,backgroundColor:s.itemBg,color:s.colorPrimary},[`&${i}-disabled`]:{[`${i}-item-link`]:{borderColor:s.colorBorder,color:s.colorTextDisabled}}},[`${i}-item`]:{backgroundColor:s.itemBg,border:`${s.lineWidth}px ${s.lineType} ${s.colorBorder}`,[`&:hover:not(${i}-item-active)`]:{borderColor:s.colorPrimary,backgroundColor:s.itemBg,a:{color:s.colorPrimary}},"&-active":{borderColor:s.colorPrimary}}}}},Z=s=>{const{componentCls:i}=s;return{[`${i}:not(${i}-disabled)`]:{[`${i}-item`]:Object.assign({},(0,Te.Qy)(s)),[`${i}-jump-prev, ${i}-jump-next`]:{"&:focus-visible":Object.assign({[`${i}-item-link-icon`]:{opacity:1},[`${i}-item-ellipsis`]:{opacity:0}},(0,Te.oN)(s))},[`${i}-prev, ${i}-next`]:{[`&:focus-visible ${i}-item-link`]:Object.assign({},(0,Te.oN)(s))}}}};var K=(0,Qe.Z)("Pagination",s=>{const i=(0,vt.TS)(s,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:s.marginXXS/2,paginationMiniQuickJumperInputWidth:s.controlHeightLG*1.1,paginationItemPaddingInline:s.marginXXS*1.5,paginationEllipsisLetterSpacing:s.marginXXS/2,paginationSlashMarginInlineStart:s.marginXXS,paginationSlashMarginInlineEnd:s.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ke.e5)(s),(0,Ke.TM)(s));return[at(i),Z(i),s.wireframe&&Ee(i)]},s=>({itemBg:s.colorBgContainer,itemSize:s.controlHeight,itemSizeSM:s.controlHeightSM,itemActiveBg:s.colorBgContainer,itemLinkBg:s.colorBgContainer,itemActiveColorDisabled:s.colorTextDisabled,itemActiveBgDisabled:s.controlItemBgActiveDisabled,itemInputBg:s.colorBgContainer,miniOptionsSizeChangerTop:0})),m=function(s,i){var X={};for(var $ in s)Object.prototype.hasOwnProperty.call(s,$)&&i.indexOf($)<0&&(X[$]=s[$]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,$=Object.getOwnPropertySymbols(s);f<$.length;f++)i.indexOf($[f])<0&&Object.prototype.propertyIsEnumerable.call(s,$[f])&&(X[$[f]]=s[$[f]]);return X},R=s=>{const{prefixCls:i,selectPrefixCls:X,className:$,rootClassName:f,style:Q,size:Re,locale:Pe,selectComponentClass:Se,responsive:Ne,showSizeChanger:Be}=s,d=m(s,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Y}=(0,Me.Z)(Ne),{getPrefixCls:se,direction:Ce,pagination:Fe={}}=l.useContext(V.E_),_e=se("pagination",i),[He,Xe]=K(_e),ut=Be!=null?Be:Fe.showSizeChanger,Bt=l.useMemo(()=>{const sn=l.createElement("span",{className:`${_e}-item-ellipsis`},"\u2022\u2022\u2022"),yn=l.createElement("button",{className:`${_e}-item-link`,type:"button",tabIndex:-1},Ce==="rtl"?l.createElement(D.Z,null):l.createElement(w.Z,null)),xn=l.createElement("button",{className:`${_e}-item-link`,type:"button",tabIndex:-1},Ce==="rtl"?l.createElement(w.Z,null):l.createElement(D.Z,null)),An=l.createElement("a",{className:`${_e}-item-link`},l.createElement("div",{className:`${_e}-item-container`},Ce==="rtl"?l.createElement(W.Z,{className:`${_e}-item-link-icon`}):l.createElement(F,{className:`${_e}-item-link-icon`}),sn)),lr=l.createElement("a",{className:`${_e}-item-link`},l.createElement("div",{className:`${_e}-item-container`},Ce==="rtl"?l.createElement(F,{className:`${_e}-item-link-icon`}):l.createElement(W.Z,{className:`${_e}-item-link-icon`}),sn));return{prevIcon:yn,nextIcon:xn,jumpPrevIcon:An,jumpNextIcon:lr}},[Ce,_e]),[wt]=(0,Ie.Z)("Pagination",_.Z),Dt=Object.assign(Object.assign({},wt),Pe),mn=(0,ye.Z)(Re),ln=mn==="small"||!!(Y&&!mn&&Ne),$t=se("select",X),En=M()({[`${_e}-mini`]:ln,[`${_e}-rtl`]:Ce==="rtl"},Fe==null?void 0:Fe.className,$,f,Xe),vn=Object.assign(Object.assign({},Fe==null?void 0:Fe.style),Q);return He(l.createElement(x,Object.assign({},Bt,d,{style:vn,prefixCls:_e,selectPrefixCls:$t,className:En,selectComponentClass:Se||(ln?Je:rt),locale:Dt,showSizeChanger:ut})))},fe=R},93948:function(ht,le,e){"use strict";e.d(le,{Z:function(){return Be}});var t=e(59301),l=e(29679),P=e(40001),L=e(19248),T=e(99267),p=e(92310),n=e.n(p),F=e(2738),W=e(36355),w=e(54476),D=e(33885),g=e(75931),M={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},B=function(){var Y=(0,t.useRef)([]),se=(0,t.useRef)(null);return(0,t.useEffect)(function(){var Ce=Date.now(),Fe=!1;Y.current.forEach(function(_e){if(_e){Fe=!0;var He=_e.style;He.transitionDuration=".3s, .3s, .3s, .06s",se.current&&Ce-se.current<100&&(He.transitionDuration="0s, 0s")}}),Fe&&(se.current=Date.now())}),Y.current},I=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],E=function(Y){var se=(0,D.Z)((0,D.Z)({},M),Y),Ce=se.className,Fe=se.percent,_e=se.prefixCls,He=se.strokeColor,Xe=se.strokeLinecap,ut=se.strokeWidth,Bt=se.style,wt=se.trailColor,Dt=se.trailWidth,mn=se.transition,ln=(0,g.Z)(se,I);delete ln.gapPosition;var $t=Array.isArray(Fe)?Fe:[Fe],En=Array.isArray(He)?He:[He],vn=B(),sn=ut/2,yn=100-ut/2,xn="M ".concat(Xe==="round"?sn:0,",").concat(sn,`
|
|
L `).concat(Xe==="round"?yn:100,",").concat(sn),An="0 0 100 ".concat(ut),lr=0;return t.createElement("svg",(0,w.Z)({className:n()("".concat(_e,"-line"),Ce),viewBox:An,preserveAspectRatio:"none",style:Bt},ln),t.createElement("path",{className:"".concat(_e,"-line-trail"),d:xn,strokeLinecap:Xe,stroke:wt,strokeWidth:Dt||ut,fillOpacity:"0"}),$t.map(function(br,Un){var cr=1;switch(Xe){case"round":cr=1-ut/100;break;case"square":cr=1-ut/2/100;break;default:cr=1;break}var Zn={strokeDasharray:"".concat(br*cr,"px, 100px"),strokeDashoffset:"-".concat(lr,"px"),transition:mn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},fr=En[Un]||En[En.length-1];return lr+=br,t.createElement("path",{key:Un,className:"".concat(_e,"-line-path"),d:xn,strokeLinecap:Xe,stroke:fr,strokeWidth:ut,fillOpacity:"0",ref:function(Ir){vn[Un]=Ir},style:Zn})}))},ne=E,k=e(76190),de=e(42978),ie=e(47273),H=0,A=(0,ie.Z)();function ae(){var d;return A?(d=H,H+=1):d="TEST_OR_SSR",d}var C=function(d){var Y=t.useState(),se=(0,de.Z)(Y,2),Ce=se[0],Fe=se[1];return t.useEffect(function(){Fe("rc_progress_".concat(ae()))},[]),d||Ce},S=function(Y){var se=Y.bg,Ce=Y.children;return t.createElement("div",{style:{width:"100%",height:"100%",background:se}},Ce)};function J(d,Y){return Object.keys(d).map(function(se){var Ce=parseFloat(se),Fe="".concat(Math.floor(Ce*Y),"%");return"".concat(d[se]," ").concat(Fe)})}var te=t.forwardRef(function(d,Y){var se=d.prefixCls,Ce=d.color,Fe=d.gradientId,_e=d.radius,He=d.style,Xe=d.ptg,ut=d.strokeLinecap,Bt=d.strokeWidth,wt=d.size,Dt=d.gapDegree,mn=Ce&&(0,k.Z)(Ce)==="object",ln=mn?"#FFF":void 0,$t=wt/2,En=t.createElement("circle",{className:"".concat(se,"-circle-path"),r:_e,cx:$t,cy:$t,stroke:ln,strokeLinecap:ut,strokeWidth:Bt,opacity:Xe===0?0:1,style:He,ref:Y});if(!mn)return En;var vn="".concat(Fe,"-conic"),sn=Dt?"".concat(180+Dt/2,"deg"):"0deg",yn=J(Ce,(360-Dt)/360),xn=J(Ce,1),An="conic-gradient(from ".concat(sn,", ").concat(yn.join(", "),")"),lr="linear-gradient(to ".concat(Dt?"bottom":"top",", ").concat(xn.join(", "),")");return t.createElement(t.Fragment,null,t.createElement("mask",{id:vn},En),t.createElement("foreignObject",{x:0,y:0,width:wt,height:wt,mask:"url(#".concat(vn,")")},t.createElement(S,{bg:lr},t.createElement(S,{bg:An}))))}),z=te,v=100,b=function(Y,se,Ce,Fe,_e,He,Xe,ut,Bt,wt){var Dt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,mn=Ce/100*360*((360-He)/360),ln=He===0?0:{bottom:0,top:180,left:90,right:-90}[Xe],$t=(100-Fe)/100*se;Bt==="round"&&Fe!==100&&($t+=wt/2,$t>=se&&($t=se-.01));var En=v/2;return{stroke:typeof ut=="string"?ut:void 0,strokeDasharray:"".concat(se,"px ").concat(Y),strokeDashoffset:$t+Dt,transform:"rotate(".concat(_e+mn+ln,"deg)"),transformOrigin:"".concat(En,"px ").concat(En,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},ce=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function q(d){var Y=d!=null?d:[];return Array.isArray(Y)?Y:[Y]}var x=function(Y){var se=(0,D.Z)((0,D.Z)({},M),Y),Ce=se.id,Fe=se.prefixCls,_e=se.steps,He=se.strokeWidth,Xe=se.trailWidth,ut=se.gapDegree,Bt=ut===void 0?0:ut,wt=se.gapPosition,Dt=se.trailColor,mn=se.strokeLinecap,ln=se.style,$t=se.className,En=se.strokeColor,vn=se.percent,sn=(0,g.Z)(se,ce),yn=v/2,xn=C(Ce),An="".concat(xn,"-gradient"),lr=yn-He/2,br=Math.PI*2*lr,Un=Bt>0?90+Bt/2:-90,cr=br*((360-Bt)/360),Zn=(0,k.Z)(_e)==="object"?_e:{count:_e,space:2},fr=Zn.count,Dr=Zn.space,Ir=q(vn),pr=q(En),_r=pr.find(function(lt){return lt&&(0,k.Z)(lt)==="object"}),Xr=_r&&(0,k.Z)(_r)==="object",Lr=Xr?"butt":mn,so=b(br,cr,0,100,Un,Bt,wt,Dt,Lr,He),Jr=B(),Ge=function(){var Pt=0;return Ir.map(function(Nt,Kt){var Xt=pr[Kt]||pr[pr.length-1],zt=b(br,cr,Pt,Nt,Un,Bt,wt,Xt,Lr,He);return Pt+=Nt,t.createElement(z,{key:Kt,color:Xt,ptg:Nt,radius:lr,prefixCls:Fe,gradientId:An,style:zt,strokeLinecap:Lr,strokeWidth:He,gapDegree:Bt,ref:function(ue){Jr[Kt]=ue},size:v})}).reverse()},pe=function(){var Pt=Math.round(fr*(Ir[0]/100)),Nt=100/fr,Kt=0;return new Array(fr).fill(null).map(function(Xt,zt){var j=zt<=Pt-1?pr[0]:Dt,ue=j&&(0,k.Z)(j)==="object"?"url(#".concat(An,")"):void 0,xe=b(br,cr,Kt,Nt,Un,Bt,wt,j,"butt",He,Dr);return Kt+=(cr-xe.strokeDashoffset+Dr)*100/cr,t.createElement("circle",{key:zt,className:"".concat(Fe,"-circle-path"),r:lr,cx:yn,cy:yn,stroke:ue,strokeWidth:He,opacity:1,style:xe,ref:function(Ze){Jr[zt]=Ze}})})};return t.createElement("svg",(0,w.Z)({className:n()("".concat(Fe,"-circle"),$t),viewBox:"0 0 ".concat(v," ").concat(v),style:ln,id:Ce,role:"presentation"},sn),!fr&&t.createElement("circle",{className:"".concat(Fe,"-circle-trail"),r:lr,cx:yn,cy:yn,stroke:Dt,strokeLinecap:Lr,strokeWidth:Xe||He,style:so}),fr?pe():Ge())},_=x,V={Line:ne,Circle:_},ye=e(6848),Me=e(30071);function Ie(d){return!d||d<0?0:d>100?100:d}function je(d){let{success:Y,successPercent:se}=d,Ce=se;return Y&&"progress"in Y&&(Ce=Y.progress),Y&&"percent"in Y&&(Ce=Y.percent),Ce}const Je=d=>{let{percent:Y,success:se,successPercent:Ce}=d;const Fe=Ie(je({success:se,successPercent:Ce}));return[Fe,Ie(Ie(Y)-Fe)]},rt=d=>{let{success:Y={},strokeColor:se}=d;const{strokeColor:Ce}=Y;return[Ce||Me.presetPrimaryColors.green,se||null]},Ke=(d,Y,se)=>{var Ce,Fe,_e,He;let Xe=-1,ut=-1;if(Y==="step"){const Bt=se.steps,wt=se.strokeWidth;typeof d=="string"||typeof d=="undefined"?(Xe=d==="small"?2:14,ut=wt!=null?wt:8):typeof d=="number"?[Xe,ut]=[d,d]:[Xe=14,ut=8]=d,Xe*=Bt}else if(Y==="line"){const Bt=se==null?void 0:se.strokeWidth;typeof d=="string"||typeof d=="undefined"?ut=Bt||(d==="small"?6:8):typeof d=="number"?[Xe,ut]=[d,d]:[Xe=-1,ut=8]=d}else(Y==="circle"||Y==="dashboard")&&(typeof d=="string"||typeof d=="undefined"?[Xe,ut]=d==="small"?[60,60]:[120,120]:typeof d=="number"?[Xe,ut]=[d,d]:(Xe=(Fe=(Ce=d[0])!==null&&Ce!==void 0?Ce:d[1])!==null&&Fe!==void 0?Fe:120,ut=(He=(_e=d[0])!==null&&_e!==void 0?_e:d[1])!==null&&He!==void 0?He:120));return[Xe,ut]},Te=3,Qe=d=>Te/d*100;var De=d=>{const{prefixCls:Y,trailColor:se=null,strokeLinecap:Ce="round",gapPosition:Fe,gapDegree:_e,width:He=120,type:Xe,children:ut,success:Bt,size:wt=He}=d,[Dt,mn]=Ke(wt,"circle");let{strokeWidth:ln}=d;ln===void 0&&(ln=Math.max(Qe(Dt),6));const $t={width:Dt,height:mn,fontSize:Dt*.15+6},En=t.useMemo(()=>{if(_e||_e===0)return _e;if(Xe==="dashboard")return 75},[_e,Xe]),vn=Fe||Xe==="dashboard"&&"bottom"||void 0,sn=Object.prototype.toString.call(d.strokeColor)==="[object Object]",yn=rt({success:Bt,strokeColor:d.strokeColor}),xn=n()(`${Y}-inner`,{[`${Y}-circle-gradient`]:sn}),An=t.createElement(_,{percent:Je(d),strokeWidth:ln,trailWidth:ln,strokeColor:yn,strokeLinecap:Ce,trailColor:se,prefixCls:Y,gapDegree:En,gapPosition:vn});return t.createElement("div",{className:xn,style:$t},Dt<=20?t.createElement(ye.Z,{title:ut},t.createElement("span",null,An)):t.createElement(t.Fragment,null,An,ut))},ft=function(d,Y){var se={};for(var Ce in d)Object.prototype.hasOwnProperty.call(d,Ce)&&Y.indexOf(Ce)<0&&(se[Ce]=d[Ce]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Ce=Object.getOwnPropertySymbols(d);Fe<Ce.length;Fe++)Y.indexOf(Ce[Fe])<0&&Object.prototype.propertyIsEnumerable.call(d,Ce[Fe])&&(se[Ce[Fe]]=d[Ce[Fe]]);return se};const St=d=>{let Y=[];return Object.keys(d).forEach(se=>{const Ce=parseFloat(se.replace(/%/g,""));isNaN(Ce)||Y.push({key:Ce,value:d[se]})}),Y=Y.sort((se,Ce)=>se.key-Ce.key),Y.map(se=>{let{key:Ce,value:Fe}=se;return`${Fe} ${Ce}%`}).join(", ")},$e=(d,Y)=>{const{from:se=Me.presetPrimaryColors.blue,to:Ce=Me.presetPrimaryColors.blue,direction:Fe=Y==="rtl"?"to left":"to right"}=d,_e=ft(d,["from","to","direction"]);if(Object.keys(_e).length!==0){const He=St(_e);return{backgroundImage:`linear-gradient(${Fe}, ${He})`}}return{backgroundImage:`linear-gradient(${Fe}, ${se}, ${Ce})`}};var at=d=>{const{prefixCls:Y,direction:se,percent:Ce,size:Fe,strokeWidth:_e,strokeColor:He,strokeLinecap:Xe="round",children:ut,trailColor:Bt=null,success:wt}=d,Dt=He&&typeof He!="string"?$e(He,se):{backgroundColor:He},mn=Xe==="square"||Xe==="butt"?0:void 0,ln={backgroundColor:Bt||void 0,borderRadius:mn},$t=Fe!=null?Fe:[-1,_e||(Fe==="small"?6:8)],[En,vn]=Ke($t,"line",{strokeWidth:_e}),sn=Object.assign({width:`${Ie(Ce)}%`,height:vn,borderRadius:mn},Dt),yn=je(d),xn={width:`${Ie(yn)}%`,height:vn,borderRadius:mn,backgroundColor:wt==null?void 0:wt.strokeColor},An={width:En<0?"100%":En,height:vn};return t.createElement(t.Fragment,null,t.createElement("div",{className:`${Y}-outer`,style:An},t.createElement("div",{className:`${Y}-inner`,style:ln},t.createElement("div",{className:`${Y}-bg`,style:sn}),yn!==void 0?t.createElement("div",{className:`${Y}-success-bg`,style:xn}):null)),ut)},Z=d=>{const{size:Y,steps:se,percent:Ce=0,strokeWidth:Fe=8,strokeColor:_e,trailColor:He=null,prefixCls:Xe,children:ut}=d,Bt=Math.round(se*(Ce/100)),wt=Y==="small"?2:14,Dt=Y!=null?Y:[wt,Fe],[mn,ln]=Ke(Dt,"step",{steps:se,strokeWidth:Fe}),$t=mn/se,En=new Array(se);for(let vn=0;vn<se;vn++){const sn=Array.isArray(_e)?_e[vn]:_e;En[vn]=t.createElement("div",{key:vn,className:n()(`${Xe}-steps-item`,{[`${Xe}-steps-item-active`]:vn<=Bt-1}),style:{backgroundColor:vn<=Bt-1?sn:He,width:$t,height:ln}})}return t.createElement("div",{className:`${Xe}-steps-outer`},En,ut)},K=e(36237),m=e(17313),a=e(83116),R=e(37613);const fe=d=>{const Y=d?"100%":"-100%";return new K.Keyframes(`antProgress${d?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Y}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Y}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},s=d=>{const{componentCls:Y,iconCls:se}=d;return{[Y]:Object.assign(Object.assign({},(0,m.Wf)(d)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:d.fontSize,marginInlineEnd:d.marginXS,marginBottom:d.marginXS},[`${Y}-outer`]:{display:"inline-block",width:"100%"},[`&${Y}-show-info`]:{[`${Y}-outer`]:{marginInlineEnd:`calc(-2em - ${d.marginXS}px)`,paddingInlineEnd:`calc(2em + ${d.paddingXS}px)`}},[`${Y}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:d.remainingColor,borderRadius:d.lineBorderRadius},[`${Y}-inner:not(${Y}-circle-gradient)`]:{[`${Y}-circle-path`]:{stroke:d.defaultColor}},[`${Y}-success-bg, ${Y}-bg`]:{position:"relative",backgroundColor:d.defaultColor,borderRadius:d.lineBorderRadius,transition:`all ${d.motionDurationSlow} ${d.motionEaseInOutCirc}`},[`${Y}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:d.colorSuccess},[`${Y}-text`]:{display:"inline-block",width:"2em",marginInlineStart:d.marginXS,color:d.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[se]:{fontSize:d.fontSize}},[`&${Y}-status-active`]:{[`${Y}-bg::before`]:{position:"absolute",inset:0,backgroundColor:d.colorBgContainer,borderRadius:d.lineBorderRadius,opacity:0,animationName:fe(),animationDuration:d.progressActiveMotionDuration,animationTimingFunction:d.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Y}-rtl${Y}-status-active`]:{[`${Y}-bg::before`]:{animationName:fe(!0)}},[`&${Y}-status-exception`]:{[`${Y}-bg`]:{backgroundColor:d.colorError},[`${Y}-text`]:{color:d.colorError}},[`&${Y}-status-exception ${Y}-inner:not(${Y}-circle-gradient)`]:{[`${Y}-circle-path`]:{stroke:d.colorError}},[`&${Y}-status-success`]:{[`${Y}-bg`]:{backgroundColor:d.colorSuccess},[`${Y}-text`]:{color:d.colorSuccess}},[`&${Y}-status-success ${Y}-inner:not(${Y}-circle-gradient)`]:{[`${Y}-circle-path`]:{stroke:d.colorSuccess}}})}},i=d=>{const{componentCls:Y,iconCls:se}=d;return{[Y]:{[`${Y}-circle-trail`]:{stroke:d.remainingColor},[`&${Y}-circle ${Y}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Y}-circle ${Y}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:d.circleTextColor,fontSize:d.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[se]:{fontSize:`${d.fontSize/d.fontSizeSM}em`}},[`${Y}-circle&-status-exception`]:{[`${Y}-text`]:{color:d.colorError}},[`${Y}-circle&-status-success`]:{[`${Y}-text`]:{color:d.colorSuccess}}},[`${Y}-inline-circle`]:{lineHeight:1,[`${Y}-inner`]:{verticalAlign:"bottom"}}}},X=d=>{const{componentCls:Y}=d;return{[Y]:{[`${Y}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:d.progressStepMinWidth,marginInlineEnd:d.progressStepMarginInlineEnd,backgroundColor:d.remainingColor,transition:`all ${d.motionDurationSlow}`,"&-active":{backgroundColor:d.defaultColor}}}}}},$=d=>{const{componentCls:Y,iconCls:se}=d;return{[Y]:{[`${Y}-small&-line, ${Y}-small&-line ${Y}-text ${se}`]:{fontSize:d.fontSizeSM}}}};var f=(0,a.Z)("Progress",d=>{const Y=d.marginXXS/2,se=(0,R.TS)(d,{progressStepMarginInlineEnd:Y,progressStepMinWidth:Y,progressActiveMotionDuration:"2.4s"});return[s(se),i(se),X(se),$(se)]},d=>({circleTextColor:d.colorText,defaultColor:d.colorInfo,remainingColor:d.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Q=function(d,Y){var se={};for(var Ce in d)Object.prototype.hasOwnProperty.call(d,Ce)&&Y.indexOf(Ce)<0&&(se[Ce]=d[Ce]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,Ce=Object.getOwnPropertySymbols(d);Fe<Ce.length;Fe++)Y.indexOf(Ce[Fe])<0&&Object.prototype.propertyIsEnumerable.call(d,Ce[Fe])&&(se[Ce[Fe]]=d[Ce[Fe]]);return se};const Re=null,Pe=["normal","exception","active","success"];var Ne=t.forwardRef((d,Y)=>{const{prefixCls:se,className:Ce,rootClassName:Fe,steps:_e,strokeColor:He,percent:Xe=0,size:ut="default",showInfo:Bt=!0,type:wt="line",status:Dt,format:mn,style:ln}=d,$t=Q(d,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),En=t.useMemo(()=>{var Ir,pr;const _r=je(d);return parseInt(_r!==void 0?(Ir=_r!=null?_r:0)===null||Ir===void 0?void 0:Ir.toString():(pr=Xe!=null?Xe:0)===null||pr===void 0?void 0:pr.toString(),10)},[Xe,d.success,d.successPercent]),vn=t.useMemo(()=>!Pe.includes(Dt)&&En>=100?"success":Dt||"normal",[Dt,En]),{getPrefixCls:sn,direction:yn,progress:xn}=t.useContext(W.E_),An=sn("progress",se),[lr,br]=f(An),Un=t.useMemo(()=>{if(!Bt)return null;const Ir=je(d);let pr;const _r=mn||(Lr=>`${Lr}%`),Xr=wt==="line";return mn||vn!=="exception"&&vn!=="success"?pr=_r(Ie(Xe),Ie(Ir)):vn==="exception"?pr=Xr?t.createElement(L.Z,null):t.createElement(T.Z,null):vn==="success"&&(pr=Xr?t.createElement(l.Z,null):t.createElement(P.Z,null)),t.createElement("span",{className:`${An}-text`,title:typeof pr=="string"?pr:void 0},pr)},[Bt,Xe,En,vn,wt,An,mn]),cr=Array.isArray(He)?He[0]:He,Zn=typeof He=="string"||Array.isArray(He)?He:void 0;let fr;wt==="line"?fr=_e?t.createElement(Z,Object.assign({},d,{strokeColor:Zn,prefixCls:An,steps:_e}),Un):t.createElement(at,Object.assign({},d,{strokeColor:cr,prefixCls:An,direction:yn}),Un):(wt==="circle"||wt==="dashboard")&&(fr=t.createElement(De,Object.assign({},d,{strokeColor:cr,prefixCls:An,progressStatus:vn}),Un));const Dr=n()(An,`${An}-status-${vn}`,`${An}-${wt==="dashboard"&&"circle"||_e&&"steps"||wt}`,{[`${An}-inline-circle`]:wt==="circle"&&Ke(ut,"circle")[0]<=20,[`${An}-show-info`]:Bt,[`${An}-${ut}`]:typeof ut=="string",[`${An}-rtl`]:yn==="rtl"},xn==null?void 0:xn.className,Ce,Fe,br);return lr(t.createElement("div",Object.assign({ref:Y,style:Object.assign(Object.assign({},xn==null?void 0:xn.style),ln),className:Dr,role:"progressbar","aria-valuenow":En},(0,F.Z)($t,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),fr))}),Be=Ne},61621:function(ht,le,e){"use strict";e.d(le,{Z:function(){return K}});var t=e(92310),l=e.n(t),P=e(59301),L=e(36355),T=e(2738),n=m=>{const{prefixCls:a,className:R,style:fe,size:s,shape:i}=m,X=l()({[`${a}-lg`]:s==="large",[`${a}-sm`]:s==="small"}),$=l()({[`${a}-circle`]:i==="circle",[`${a}-square`]:i==="square",[`${a}-round`]:i==="round"}),f=P.useMemo(()=>typeof s=="number"?{width:s,height:s,lineHeight:`${s}px`}:{},[s]);return P.createElement("span",{className:l()(a,X,$,R),style:Object.assign(Object.assign({},f),fe)})},F=e(36237),W=e(83116),w=e(37613);const D=new F.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),g=m=>({height:m,lineHeight:`${m}px`}),M=m=>Object.assign({width:m},g(m)),B=m=>({background:m.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:D,animationDuration:m.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),I=m=>Object.assign({width:m*5,minWidth:m*5},g(m)),E=m=>{const{skeletonAvatarCls:a,gradientFromColor:R,controlHeight:fe,controlHeightLG:s,controlHeightSM:i}=m;return{[`${a}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:R},M(fe)),[`${a}${a}-circle`]:{borderRadius:"50%"},[`${a}${a}-lg`]:Object.assign({},M(s)),[`${a}${a}-sm`]:Object.assign({},M(i))}},ne=m=>{const{controlHeight:a,borderRadiusSM:R,skeletonInputCls:fe,controlHeightLG:s,controlHeightSM:i,gradientFromColor:X}=m;return{[`${fe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:X,borderRadius:R},I(a)),[`${fe}-lg`]:Object.assign({},I(s)),[`${fe}-sm`]:Object.assign({},I(i))}},k=m=>Object.assign({width:m},g(m)),de=m=>{const{skeletonImageCls:a,imageSizeBase:R,gradientFromColor:fe,borderRadiusSM:s}=m;return{[`${a}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:fe,borderRadius:s},k(R*2)),{[`${a}-path`]:{fill:"#bfbfbf"},[`${a}-svg`]:Object.assign(Object.assign({},k(R)),{maxWidth:R*4,maxHeight:R*4}),[`${a}-svg${a}-svg-circle`]:{borderRadius:"50%"}}),[`${a}${a}-circle`]:{borderRadius:"50%"}}},ie=(m,a,R)=>{const{skeletonButtonCls:fe}=m;return{[`${R}${fe}-circle`]:{width:a,minWidth:a,borderRadius:"50%"},[`${R}${fe}-round`]:{borderRadius:a}}},H=m=>Object.assign({width:m*2,minWidth:m*2},g(m)),A=m=>{const{borderRadiusSM:a,skeletonButtonCls:R,controlHeight:fe,controlHeightLG:s,controlHeightSM:i,gradientFromColor:X}=m;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${R}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:X,borderRadius:a,width:fe*2,minWidth:fe*2},H(fe))},ie(m,fe,R)),{[`${R}-lg`]:Object.assign({},H(s))}),ie(m,s,`${R}-lg`)),{[`${R}-sm`]:Object.assign({},H(i))}),ie(m,i,`${R}-sm`))},ae=m=>{const{componentCls:a,skeletonAvatarCls:R,skeletonTitleCls:fe,skeletonParagraphCls:s,skeletonButtonCls:i,skeletonInputCls:X,skeletonImageCls:$,controlHeight:f,controlHeightLG:Q,controlHeightSM:Re,gradientFromColor:Pe,padding:Se,marginSM:Ne,borderRadius:Be,titleHeight:d,blockRadius:Y,paragraphLiHeight:se,controlHeightXS:Ce,paragraphMarginTop:Fe}=m;return{[`${a}`]:{display:"table",width:"100%",[`${a}-header`]:{display:"table-cell",paddingInlineEnd:Se,verticalAlign:"top",[`${R}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Pe},M(f)),[`${R}-circle`]:{borderRadius:"50%"},[`${R}-lg`]:Object.assign({},M(Q)),[`${R}-sm`]:Object.assign({},M(Re))},[`${a}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${fe}`]:{width:"100%",height:d,background:Pe,borderRadius:Y,[`+ ${s}`]:{marginBlockStart:Re}},[`${s}`]:{padding:0,"> li":{width:"100%",height:se,listStyle:"none",background:Pe,borderRadius:Y,"+ li":{marginBlockStart:Ce}}},[`${s}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${a}-content`]:{[`${fe}, ${s} > li`]:{borderRadius:Be}}},[`${a}-with-avatar ${a}-content`]:{[`${fe}`]:{marginBlockStart:Ne,[`+ ${s}`]:{marginBlockStart:Fe}}},[`${a}${a}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},A(m)),E(m)),ne(m)),de(m)),[`${a}${a}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${X}`]:{width:"100%"}},[`${a}${a}-active`]:{[`
|
|
${fe},
|
|
${s} > li,
|
|
${R},
|
|
${i},
|
|
${X},
|
|
${$}
|
|
`]:Object.assign({},B(m))}}};var C=(0,W.Z)("Skeleton",m=>{const{componentCls:a}=m,R=(0,w.TS)(m,{skeletonAvatarCls:`${a}-avatar`,skeletonTitleCls:`${a}-title`,skeletonParagraphCls:`${a}-paragraph`,skeletonButtonCls:`${a}-button`,skeletonInputCls:`${a}-input`,skeletonImageCls:`${a}-image`,imageSizeBase:m.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${m.gradientFromColor} 25%, ${m.gradientToColor} 37%, ${m.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[ae(R)]},m=>{const{colorFillContent:a,colorFill:R}=m,fe=a,s=R;return{color:fe,colorGradientEnd:s,gradientFromColor:fe,gradientToColor:s,titleHeight:m.controlHeight/2,blockRadius:m.borderRadiusSM,paragraphMarginTop:m.marginLG+m.marginXXS,paragraphLiHeight:m.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),J=m=>{const{prefixCls:a,className:R,rootClassName:fe,active:s,shape:i="circle",size:X="default"}=m,{getPrefixCls:$}=P.useContext(L.E_),f=$("skeleton",a),[Q,Re]=C(f),Pe=(0,T.Z)(m,["prefixCls","className"]),Se=l()(f,`${f}-element`,{[`${f}-active`]:s},R,fe,Re);return Q(P.createElement("div",{className:Se},P.createElement(n,Object.assign({prefixCls:`${f}-avatar`,shape:i,size:X},Pe))))},z=m=>{const{prefixCls:a,className:R,rootClassName:fe,active:s,block:i=!1,size:X="default"}=m,{getPrefixCls:$}=P.useContext(L.E_),f=$("skeleton",a),[Q,Re]=C(f),Pe=(0,T.Z)(m,["prefixCls"]),Se=l()(f,`${f}-element`,{[`${f}-active`]:s,[`${f}-block`]:i},R,fe,Re);return Q(P.createElement("div",{className:Se},P.createElement(n,Object.assign({prefixCls:`${f}-button`,size:X},Pe))))};const v="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var ce=m=>{const{prefixCls:a,className:R,rootClassName:fe,style:s,active:i}=m,{getPrefixCls:X}=P.useContext(L.E_),$=X("skeleton",a),[f,Q]=C($),Re=l()($,`${$}-element`,{[`${$}-active`]:i},R,fe,Q);return f(P.createElement("div",{className:Re},P.createElement("div",{className:l()(`${$}-image`,R),style:s},P.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${$}-image-svg`},P.createElement("path",{d:v,className:`${$}-image-path`})))))},x=m=>{const{prefixCls:a,className:R,rootClassName:fe,active:s,block:i,size:X="default"}=m,{getPrefixCls:$}=P.useContext(L.E_),f=$("skeleton",a),[Q,Re]=C(f),Pe=(0,T.Z)(m,["prefixCls"]),Se=l()(f,`${f}-element`,{[`${f}-active`]:s,[`${f}-block`]:i},R,fe,Re);return Q(P.createElement("div",{className:Se},P.createElement(n,Object.assign({prefixCls:`${f}-input`,size:X},Pe))))},_=e(54476),V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},ye=V,Me=e(7657),Ie=function(a,R){return P.createElement(Me.Z,(0,_.Z)({},a,{ref:R,icon:ye}))},je=P.forwardRef(Ie),Je=je,Ke=m=>{const{prefixCls:a,className:R,rootClassName:fe,style:s,active:i,children:X}=m,{getPrefixCls:$}=P.useContext(L.E_),f=$("skeleton",a),[Q,Re]=C(f),Pe=l()(f,`${f}-element`,{[`${f}-active`]:i},Re,R,fe),Se=X!=null?X:P.createElement(Je,null);return Q(P.createElement("div",{className:Pe},P.createElement("div",{className:l()(`${f}-image`,R),style:s},Se)))},Te=e(94480),vt=m=>{const a=$=>{const{width:f,rows:Q=2}=m;if(Array.isArray(f))return f[$];if(Q-1===$)return f},{prefixCls:R,className:fe,style:s,rows:i}=m,X=(0,Te.Z)(Array(i)).map(($,f)=>P.createElement("li",{key:f,style:{width:a(f)}}));return P.createElement("ul",{className:l()(R,fe),style:s},X)},ft=m=>{let{prefixCls:a,className:R,width:fe,style:s}=m;return P.createElement("h3",{className:l()(a,R),style:Object.assign({width:fe},s)})};function St(m){return m&&typeof m=="object"?m:{}}function $e(m,a){return m&&!a?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ve(m,a){return!m&&a?{width:"38%"}:m&&a?{width:"50%"}:{}}function at(m,a){const R={};return(!m||!a)&&(R.width="61%"),!m&&a?R.rows=3:R.rows=2,R}const Ee=m=>{const{prefixCls:a,loading:R,className:fe,rootClassName:s,style:i,children:X,avatar:$=!1,title:f=!0,paragraph:Q=!0,active:Re,round:Pe}=m,{getPrefixCls:Se,direction:Ne,skeleton:Be}=P.useContext(L.E_),d=Se("skeleton",a),[Y,se]=C(d);if(R||!("loading"in m)){const Ce=!!$,Fe=!!f,_e=!!Q;let He;if(Ce){const Bt=Object.assign(Object.assign({prefixCls:`${d}-avatar`},$e(Fe,_e)),St($));He=P.createElement("div",{className:`${d}-header`},P.createElement(n,Object.assign({},Bt)))}let Xe;if(Fe||_e){let Bt;if(Fe){const Dt=Object.assign(Object.assign({prefixCls:`${d}-title`},ve(Ce,_e)),St(f));Bt=P.createElement(ft,Object.assign({},Dt))}let wt;if(_e){const Dt=Object.assign(Object.assign({prefixCls:`${d}-paragraph`},at(Ce,Fe)),St(Q));wt=P.createElement(vt,Object.assign({},Dt))}Xe=P.createElement("div",{className:`${d}-content`},Bt,wt)}const ut=l()(d,{[`${d}-with-avatar`]:Ce,[`${d}-active`]:Re,[`${d}-rtl`]:Ne==="rtl",[`${d}-round`]:Pe},Be==null?void 0:Be.className,fe,s,se);return Y(P.createElement("div",{className:ut,style:Object.assign(Object.assign({},Be==null?void 0:Be.style),i)},He,Xe))}return typeof X!="undefined"?X:null};Ee.Button=z,Ee.Avatar=J,Ee.Input=x,Ee.Image=ce,Ee.Node=Ke;var Z=Ee,K=Z},31797:function(ht,le,e){"use strict";e.d(le,{default:function(){return C}});var t=e(59301),l=e(56762),P=e(92343),L=e(92310),T=e.n(L),p=e(36355),n=e(61621),W=S=>{const{value:J,formatter:te,precision:z,decimalSeparator:v,groupSeparator:b="",prefixCls:ce}=S;let q;if(typeof te=="function")q=te(J);else{const x=String(J),_=x.match(/^(-?)(\d*)(\.(\d+))?$/);if(!_||x==="-")q=x;else{const V=_[1];let ye=_[2]||"0",Me=_[4]||"";ye=ye.replace(/\B(?=(\d{3})+(?!\d))/g,b),typeof z=="number"&&(Me=Me.padEnd(z,"0").slice(0,z>0?z:0)),Me&&(Me=`${v}${Me}`),q=[t.createElement("span",{key:"int",className:`${ce}-content-value-int`},V,ye),Me&&t.createElement("span",{key:"decimal",className:`${ce}-content-value-decimal`},Me)]}}return t.createElement("span",{className:`${ce}-content-value`},q)},w=e(17313),D=e(83116),g=e(37613);const M=S=>{const{componentCls:J,marginXXS:te,padding:z,colorTextDescription:v,titleFontSize:b,colorTextHeading:ce,contentFontSize:q,fontFamily:x}=S;return{[`${J}`]:Object.assign(Object.assign({},(0,w.Wf)(S)),{[`${J}-title`]:{marginBottom:te,color:v,fontSize:b},[`${J}-skeleton`]:{paddingTop:z},[`${J}-content`]:{color:ce,fontSize:q,fontFamily:x,[`${J}-content-value`]:{display:"inline-block",direction:"ltr"},[`${J}-content-prefix, ${J}-content-suffix`]:{display:"inline-block"},[`${J}-content-prefix`]:{marginInlineEnd:te},[`${J}-content-suffix`]:{marginInlineStart:te}}})}};var B=(0,D.Z)("Statistic",S=>{const J=(0,g.TS)(S,{});return[M(J)]},S=>{const{fontSizeHeading3:J,fontSize:te}=S;return{titleFontSize:te,contentFontSize:J}}),E=S=>{const{prefixCls:J,className:te,rootClassName:z,style:v,valueStyle:b,value:ce=0,title:q,valueRender:x,prefix:_,suffix:V,loading:ye=!1,onMouseEnter:Me,onMouseLeave:Ie,decimalSeparator:je=".",groupSeparator:Je=","}=S,{getPrefixCls:rt,direction:Ke,statistic:Te}=t.useContext(p.E_),Qe=rt("statistic",J),[vt,De]=B(Qe),ft=t.createElement(W,Object.assign({decimalSeparator:je,groupSeparator:Je,prefixCls:Qe},S,{value:ce})),St=T()(Qe,{[`${Qe}-rtl`]:Ke==="rtl"},Te==null?void 0:Te.className,te,z,De);return vt(t.createElement("div",{className:St,style:Object.assign(Object.assign({},Te==null?void 0:Te.style),v),onMouseEnter:Me,onMouseLeave:Ie},q&&t.createElement("div",{className:`${Qe}-title`},q),t.createElement(n.Z,{paragraph:!1,loading:ye,className:`${Qe}-skeleton`},t.createElement("div",{style:b,className:`${Qe}-content`},_&&t.createElement("span",{className:`${Qe}-content-prefix`},_),x?x(ft):ft,V&&t.createElement("span",{className:`${Qe}-content-suffix`},V)))))};const ne=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function k(S,J){let te=S;const z=/\[[^\]]*]/g,v=(J.match(z)||[]).map(x=>x.slice(1,-1)),b=J.replace(z,"[]"),ce=ne.reduce((x,_)=>{let[V,ye]=_;if(x.includes(V)){const Me=Math.floor(te/ye);return te-=Me*ye,x.replace(new RegExp(`${V}+`,"g"),Ie=>{const je=Ie.length;return Me.toString().padStart(je,"0")})}return x},b);let q=0;return ce.replace(z,()=>{const x=v[q];return q+=1,x})}function de(S,J){const{format:te=""}=J,z=new Date(S).getTime(),v=Date.now(),b=Math.max(z-v,0);return k(b,te)}const ie=1e3/30;function H(S){return new Date(S).getTime()}const A=S=>{const{value:J,format:te="HH:mm:ss",onChange:z,onFinish:v}=S,b=(0,l.Z)(),ce=t.useRef(null),q=()=>{v==null||v(),ce.current&&(clearInterval(ce.current),ce.current=null)},x=()=>{const ye=H(J);ye>=Date.now()&&(ce.current=setInterval(()=>{b(),z==null||z(ye-Date.now()),ye<Date.now()&&q()},ie))};t.useEffect(()=>(x(),()=>{ce.current&&(clearInterval(ce.current),ce.current=null)}),[J]);const _=(ye,Me)=>de(ye,Object.assign(Object.assign({},Me),{format:te})),V=ye=>(0,P.Tm)(ye,{title:void 0});return t.createElement(E,Object.assign({},S,{valueRender:V,formatter:_}))};var ae=t.memo(A);E.Countdown=ae;var C=E},15969:function(ht,le,e){"use strict";e.d(le,{N:function(){return t}});const t=l=>({color:l.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${l.motionDurationSlow}`,"&:focus, &:hover":{color:l.colorLinkHover},"&:active":{color:l.colorLinkActive}})},1710:function(ht,le,e){"use strict";e.d(le,{default:function(){return ca}});var t={},l="rc-table-internal-hook",P=e(42978),L=e(6089),T=e(34280),p=e(13697),n=e(59301),F=e(4676);function W(r){var o=n.createContext(void 0),u=function(N){var O=N.value,oe=N.children,re=n.useRef(O);re.current=O;var ee=n.useState(function(){return{getValue:function(){return re.current},listeners:new Set}}),ge=(0,P.Z)(ee,1),Oe=ge[0];return(0,T.Z)(function(){(0,F.unstable_batchedUpdates)(function(){Oe.listeners.forEach(function(we){we(O)})})},[O]),n.createElement(o.Provider,{value:Oe},oe)};return{Context:o,Provider:u,defaultValue:r}}function w(r,o){var u=(0,L.Z)(typeof o=="function"?o:function(we){if(o===void 0)return we;if(!Array.isArray(o))return we[o];var ze={};return o.forEach(function(We){ze[We]=we[We]}),ze}),y=n.useContext(r==null?void 0:r.Context),N=y||{},O=N.listeners,oe=N.getValue,re=n.useRef();re.current=u(y?oe():r==null?void 0:r.defaultValue);var ee=n.useState({}),ge=(0,P.Z)(ee,2),Oe=ge[1];return(0,T.Z)(function(){if(!y)return;function we(ze){var We=u(ze);(0,p.Z)(re.current,We,!0)||Oe({})}return O.add(we),function(){O.delete(we)}},[y]),re.current}var D=e(54476),g=e(8654);function M(){var r=n.createContext(null);function o(){return n.useContext(r)}function u(N,O){var oe=(0,g.Yr)(N),re=function(ge,Oe){var we=oe?{ref:Oe}:{},ze=n.useRef(0),We=n.useRef(ge),Ve=o();return Ve!==null?n.createElement(N,(0,D.Z)({},ge,we)):((!O||O(We.current,ge))&&(ze.current+=1),We.current=ge,n.createElement(r.Provider,{value:ze.current},n.createElement(N,(0,D.Z)({},ge,we))))};return oe?n.forwardRef(re):re}function y(N,O){var oe=(0,g.Yr)(N),re=function(ge,Oe){var we=oe?{ref:Oe}:{};return o(),n.createElement(N,(0,D.Z)({},ge,we))};return oe?n.memo(n.forwardRef(re),O):n.memo(re,O)}return{makeImmutable:u,responseImmutable:y,useImmutableMark:o}}var B=M(),I=B.makeImmutable,E=B.responseImmutable,ne=B.useImmutableMark,k=M(),de=k.makeImmutable,ie=k.responseImmutable,H=k.useImmutableMark,A=W(),ae=A;function C(r,o){var u=n.useRef(0);u.current+=1;var y=n.useRef(r),N=[];Object.keys(r||{}).map(function(oe){var re;(r==null?void 0:r[oe])!==((re=y.current)===null||re===void 0?void 0:re[oe])&&N.push(oe)}),y.current=r;var O=n.useRef([]);return N.length&&(O.current=N),n.useDebugValue(u.current),n.useDebugValue(O.current.join(", ")),o&&console.log("".concat(o,":"),u.current,O.current),u.current}var S=null,J=n.memo(function(){var r=C();return n.createElement("h1",null,"Render Times: ",r)});J.displayName="RenderBlock";var te=e(76190),z=e(33885),v=e(20068),b=e(92310),ce=e.n(b),q=e(80547),x=e(97938),_=e(48736),V=n.createContext({renderWithProps:!1}),ye=V,Me="RC_TABLE_KEY";function Ie(r){return r==null?[]:Array.isArray(r)?r:[r]}function je(r){var o=[],u={};return r.forEach(function(y){for(var N=y||{},O=N.key,oe=N.dataIndex,re=O||Ie(oe).join("-")||Me;u[re];)re="".concat(re,"_next");u[re]=!0,o.push(re)}),o}function Je(r){return r!=null}function rt(r){return r&&(0,te.Z)(r)==="object"&&!Array.isArray(r)&&!n.isValidElement(r)}function Ke(r,o,u,y,N,O){var oe=n.useContext(ye),re=H(),ee=(0,q.Z)(function(){if(Je(y))return[y];var ge=o==null||o===""?[]:Array.isArray(o)?o:[o],Oe=(0,x.Z)(r,ge),we=Oe,ze=void 0;if(N){var We=N(Oe,r,u);rt(We)?(we=We.children,ze=We.props,oe.renderWithProps=!0):we=We}return[we,ze]},[re,r,y,o,N,u],function(ge,Oe){if(O){var we=(0,P.Z)(ge,2),ze=we[1],We=(0,P.Z)(Oe,2),Ve=We[1];return O(Ve,ze)}return oe.renderWithProps?!0:!(0,p.Z)(ge,Oe,!0)});return ee}function Te(r,o,u,y){var N=r+o-1;return r<=y&&N>=u}function Qe(r,o){return w(ae,function(u){var y=Te(r,o||1,u.hoverStartRow,u.hoverEndRow);return[y,u.onHover]})}var vt=function(o){var u=o.ellipsis,y=o.rowType,N=o.children,O,oe=u===!0?{showTitle:!0}:u;return oe&&(oe.showTitle||y==="header")&&(typeof N=="string"||typeof N=="number"?O=N.toString():n.isValidElement(N)&&typeof N.props.children=="string"&&(O=N.props.children)),O};function De(r){var o,u,y,N,O,oe,re,ee,ge=r.component,Oe=r.children,we=r.ellipsis,ze=r.scope,We=r.prefixCls,Ve=r.className,xt=r.align,mt=r.record,bt=r.render,gt=r.dataIndex,_t=r.renderIndex,Gt=r.shouldCellUpdate,cn=r.index,Vt=r.rowType,bn=r.colSpan,Nn=r.rowSpan,Rt=r.fixLeft,Jt=r.fixRight,Mt=r.firstFixLeft,It=r.lastFixLeft,Ut=r.firstFixRight,hn=r.lastFixRight,Fn=r.appendNode,_n=r.additionalProps,un=_n===void 0?{}:_n,jn=r.isSticky,Wn="".concat(We,"-cell"),Cr=w(ae,["supportSticky","allColumnsFixedLeft"]),nr=Cr.supportSticky,Ar=Cr.allColumnsFixedLeft,Nr=Ke(mt,gt,_t,Oe,bt,Gt),Tn=(0,P.Z)(Nr,2),Wr=Tn[0],or=Tn[1],Vn={},Sr=typeof Rt=="number"&&nr,Qr=typeof Jt=="number"&&nr;Sr&&(Vn.position="sticky",Vn.left=Rt),Qr&&(Vn.position="sticky",Vn.right=Jt);var pn=(o=(u=(y=or==null?void 0:or.colSpan)!==null&&y!==void 0?y:un.colSpan)!==null&&u!==void 0?u:bn)!==null&&o!==void 0?o:1,fn=(N=(O=(oe=or==null?void 0:or.rowSpan)!==null&&oe!==void 0?oe:un.rowSpan)!==null&&O!==void 0?O:Nn)!==null&&N!==void 0?N:1,dn=Qe(cn,fn),on=(0,P.Z)(dn,2),rr=on[0],Qt=on[1],On=function(et){var ct;mt&&Qt(cn,cn+fn-1),un==null||(ct=un.onMouseEnter)===null||ct===void 0||ct.call(un,et)},tr=function(et){var ct;mt&&Qt(-1,-1),un==null||(ct=un.onMouseLeave)===null||ct===void 0||ct.call(un,et)};if(pn===0||fn===0)return null;var Xn=(re=un.title)!==null&&re!==void 0?re:vt({rowType:Vt,ellipsis:we,children:Wr}),c=ce()(Wn,Ve,(ee={},(0,v.Z)(ee,"".concat(Wn,"-fix-left"),Sr&&nr),(0,v.Z)(ee,"".concat(Wn,"-fix-left-first"),Mt&&nr),(0,v.Z)(ee,"".concat(Wn,"-fix-left-last"),It&&nr),(0,v.Z)(ee,"".concat(Wn,"-fix-left-all"),It&&Ar&&nr),(0,v.Z)(ee,"".concat(Wn,"-fix-right"),Qr&&nr),(0,v.Z)(ee,"".concat(Wn,"-fix-right-first"),Ut&&nr),(0,v.Z)(ee,"".concat(Wn,"-fix-right-last"),hn&&nr),(0,v.Z)(ee,"".concat(Wn,"-ellipsis"),we),(0,v.Z)(ee,"".concat(Wn,"-with-append"),Fn),(0,v.Z)(ee,"".concat(Wn,"-fix-sticky"),(Sr||Qr)&&jn&&nr),(0,v.Z)(ee,"".concat(Wn,"-row-hover"),!or&&rr),ee),un.className,or==null?void 0:or.className),he={};xt&&(he.textAlign=xt);var tt=(0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)({},Vn),un.style),he),or==null?void 0:or.style),ot=Wr;return(0,te.Z)(ot)==="object"&&!Array.isArray(ot)&&!n.isValidElement(ot)&&(ot=null),we&&(It||Ut)&&(ot=n.createElement("span",{className:"".concat(Wn,"-content")},ot)),n.createElement(ge,(0,D.Z)({},or,un,{className:c,style:tt,title:Xn,scope:ze,onMouseEnter:On,onMouseLeave:tr,colSpan:pn!==1?pn:null,rowSpan:fn!==1?fn:null}),Fn,ot)}var ft=n.memo(De);function St(r,o,u,y,N,O){var oe=u[r]||{},re=u[o]||{},ee,ge;oe.fixed==="left"?ee=y.left[N==="rtl"?o:r]:re.fixed==="right"&&(ge=y.right[N==="rtl"?r:o]);var Oe=!1,we=!1,ze=!1,We=!1,Ve=u[o+1],xt=u[r-1],mt=!(O!=null&&O.children);if(N==="rtl"){if(ee!==void 0){var bt=xt&&xt.fixed==="left";We=!bt&&mt}else if(ge!==void 0){var gt=Ve&&Ve.fixed==="right";ze=!gt&&mt}}else if(ee!==void 0){var _t=Ve&&Ve.fixed==="left";Oe=!_t&&mt}else if(ge!==void 0){var Gt=xt&&xt.fixed==="right";we=!Gt&&mt}return{fixLeft:ee,fixRight:ge,lastFixLeft:Oe,firstFixRight:we,lastFixRight:ze,firstFixLeft:We,isSticky:y.isSticky}}var $e=n.createContext({}),ve=$e;function at(r){var o=r.className,u=r.index,y=r.children,N=r.colSpan,O=N===void 0?1:N,oe=r.rowSpan,re=r.align,ee=w(ae,["prefixCls","direction"]),ge=ee.prefixCls,Oe=ee.direction,we=n.useContext(ve),ze=we.scrollColumnIndex,We=we.stickyOffsets,Ve=we.flattenColumns,xt=we.columns,mt=u+O-1,bt=mt+1===ze?O+1:O,gt=St(u,u+bt-1,Ve,We,Oe,xt==null?void 0:xt[u]);return n.createElement(ft,(0,D.Z)({className:o,index:u,component:"td",prefixCls:ge,record:null,dataIndex:null,align:re,colSpan:bt,rowSpan:oe,render:function(){return y}},gt))}var Ee=e(75931),Z=["children"];function K(r){var o=r.children,u=(0,Ee.Z)(r,Z);return n.createElement("tr",u,o)}function m(r){var o=r.children;return o}m.Row=K,m.Cell=at;var a=m;function R(r){var o=r.children,u=r.stickyOffsets,y=r.flattenColumns,N=r.columns,O=w(ae,"prefixCls"),oe=y.length-1,re=y[oe],ee=n.useMemo(function(){return{stickyOffsets:u,flattenColumns:y,scrollColumnIndex:re!=null&&re.scrollbar?oe:null,columns:N}},[re,y,oe,u,N]);return n.createElement(ve.Provider,{value:ee},n.createElement("tfoot",{className:"".concat(O,"-summary")},o))}var fe=ie(R),s=a,i=e(70425),X=e(29301),$=e(29194),f=e(3465),Q=e(75152),Re=e(26112);function Pe(r,o,u,y,N,O,oe){r.push({record:o,indent:u,index:oe});var re=O(o),ee=N==null?void 0:N.has(re);if(o&&Array.isArray(o[y])&&ee)for(var ge=0;ge<o[y].length;ge+=1)Pe(r,o[y][ge],u+1,y,N,O,ge)}function Se(r,o,u,y){var N=n.useMemo(function(){if(u!=null&&u.size){for(var O=[],oe=0;oe<(r==null?void 0:r.length);oe+=1){var re=r[oe];Pe(O,re,0,o,u,y,oe)}return O}return r==null?void 0:r.map(function(ee,ge){return{record:ee,indent:0,index:ge}})},[r,o,u,y]);return N}function Ne(r){var o=r.prefixCls,u=r.children,y=r.component,N=r.cellComponent,O=r.className,oe=r.expanded,re=r.colSpan,ee=r.isEmpty,ge=w(ae,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Oe=ge.scrollbarSize,we=ge.fixHeader,ze=ge.fixColumn,We=ge.componentWidth,Ve=ge.horizonScroll,xt=u;return(ee?Ve&&We:ze)&&(xt=n.createElement("div",{style:{width:We-(we?Oe:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(o,"-expanded-row-fixed")},xt)),n.createElement(y,{className:O,style:{display:oe?null:"none"}},n.createElement(ft,{component:N,prefixCls:o,colSpan:re},xt))}var Be=Ne;function d(r,o,u,y){var N=w(ae,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),O=N.flattenColumns,oe=N.expandableType,re=N.expandedKeys,ee=N.childrenColumnName,ge=N.onTriggerExpand,Oe=N.rowExpandable,we=N.onRow,ze=N.expandRowByClick,We=N.rowClassName,Ve=oe==="nest",xt=oe==="row"&&(!Oe||Oe(r)),mt=xt||Ve,bt=re&&re.has(o),gt=ee&&r&&r[ee],_t=(0,i.useEvent)(ge),Gt=we==null?void 0:we(r,u),cn=Gt==null?void 0:Gt.onClick,Vt=function(Jt){ze&&mt&&ge(r,Jt);for(var Mt=arguments.length,It=new Array(Mt>1?Mt-1:0),Ut=1;Ut<Mt;Ut++)It[Ut-1]=arguments[Ut];cn==null||cn.apply(void 0,[Jt].concat(It))},bn;typeof We=="string"?bn=We:typeof We=="function"&&(bn=We(r,u,y));var Nn=je(O);return(0,z.Z)((0,z.Z)({},N),{},{columnsKey:Nn,nestExpandable:Ve,expanded:bt,hasNestChildren:gt,record:r,onTriggerExpand:_t,rowSupportExpand:xt,expandable:mt,rowProps:(0,z.Z)((0,z.Z)({},Gt),{},{className:ce()(bn,Gt==null?void 0:Gt.className),onClick:Vt})})}function Y(r,o,u,y,N){var O=r.record,oe=r.prefixCls,re=r.columnsKey,ee=r.fixedInfoList,ge=r.expandIconColumnIndex,Oe=r.nestExpandable,we=r.indentSize,ze=r.expandIcon,We=r.expanded,Ve=r.hasNestChildren,xt=r.onTriggerExpand,mt=re[u],bt=ee[u],gt;u===(ge||0)&&Oe&&(gt=n.createElement(n.Fragment,null,n.createElement("span",{style:{paddingLeft:"".concat(we*y,"px")},className:"".concat(oe,"-row-indent indent-level-").concat(y)}),ze({prefixCls:oe,expanded:We,expandable:Ve,record:O,onExpand:xt})));var _t;return o.onCell&&(_t=o.onCell(O,N)),{key:mt,fixedInfo:bt,appendCellNode:gt,additionalCellProps:_t||{}}}function se(r){var o=r.className,u=r.style,y=r.record,N=r.index,O=r.renderIndex,oe=r.rowKey,re=r.indent,ee=re===void 0?0:re,ge=r.rowComponent,Oe=r.cellComponent,we=r.scopeCellComponent,ze=d(y,oe,N,ee),We=ze.prefixCls,Ve=ze.flattenColumns,xt=ze.expandedRowClassName,mt=ze.expandedRowRender,bt=ze.rowProps,gt=ze.expanded,_t=ze.rowSupportExpand,Gt=n.useState(!1),cn=(0,P.Z)(Gt,2),Vt=cn[0],bn=cn[1];n.useEffect(function(){gt&&bn(!0)},[gt]);var Nn=n.createElement(ge,(0,D.Z)({},bt,{"data-row-key":oe,className:ce()(o,"".concat(We,"-row"),"".concat(We,"-row-level-").concat(ee),bt==null?void 0:bt.className),style:(0,z.Z)((0,z.Z)({},u),bt==null?void 0:bt.style)}),Ve.map(function(It,Ut){var hn=It.render,Fn=It.dataIndex,_n=It.className,un=Y(ze,It,Ut,ee,N),jn=un.key,Wn=un.fixedInfo,Cr=un.appendCellNode,nr=un.additionalCellProps;return n.createElement(ft,(0,D.Z)({className:_n,ellipsis:It.ellipsis,align:It.align,scope:It.rowScope,component:It.rowScope?we:Oe,prefixCls:We,key:jn,record:y,index:N,renderIndex:O,dataIndex:Fn,render:hn,shouldCellUpdate:It.shouldCellUpdate},Wn,{appendNode:Cr,additionalProps:nr}))})),Rt;if(_t&&(Vt||gt)){var Jt=mt(y,N,ee+1,gt),Mt=xt&&xt(y,N,ee);Rt=n.createElement(Be,{expanded:gt,className:ce()("".concat(We,"-expanded-row"),"".concat(We,"-expanded-row-level-").concat(ee+1),Mt),prefixCls:We,component:ge,cellComponent:Oe,colSpan:Ve.length,isEmpty:!1},Jt)}return n.createElement(n.Fragment,null,Nn,Rt)}se.displayName="BodyRow";var Ce=ie(se);function Fe(r){var o=r.columnKey,u=r.onColumnResize,y=n.useRef();return n.useEffect(function(){y.current&&u(o,y.current.offsetWidth)},[]),n.createElement(X.Z,{data:o},n.createElement("td",{ref:y,style:{padding:0,border:0,height:0}},n.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function _e(r){var o=r.prefixCls,u=r.columnsKey,y=r.onColumnResize;return n.createElement("tr",{"aria-hidden":"true",className:"".concat(o,"-measure-row"),style:{height:0,fontSize:0}},n.createElement(X.Z.Collection,{onBatchResize:function(O){O.forEach(function(oe){var re=oe.data,ee=oe.size;y(re,ee.offsetWidth)})}},u.map(function(N){return n.createElement(Fe,{key:N,columnKey:N,onColumnResize:y})})))}function He(r){var o=r.data,u=r.measureColumnWidth,y=w(ae,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),N=y.prefixCls,O=y.getComponent,oe=y.onColumnResize,re=y.flattenColumns,ee=y.getRowKey,ge=y.expandedKeys,Oe=y.childrenColumnName,we=y.emptyNode,ze=Se(o,Oe,ge,ee),We=n.useRef({renderWithProps:!1}),Ve=O(["body","wrapper"],"tbody"),xt=O(["body","row"],"tr"),mt=O(["body","cell"],"td"),bt=O(["body","cell"],"th"),gt;o.length?gt=ze.map(function(Gt,cn){var Vt=Gt.record,bn=Gt.indent,Nn=Gt.index,Rt=ee(Vt,cn);return n.createElement(Ce,{key:Rt,rowKey:Rt,record:Vt,index:cn,renderIndex:Nn,rowComponent:xt,cellComponent:mt,scopeCellComponent:bt,getRowKey:ee,indent:bn})}):gt=n.createElement(Be,{expanded:!0,className:"".concat(N,"-placeholder"),prefixCls:N,component:xt,cellComponent:mt,colSpan:re.length,isEmpty:!0},we);var _t=je(re);return n.createElement(ye.Provider,{value:We.current},n.createElement(Ve,{className:"".concat(N,"-tbody")},u&&n.createElement(_e,{prefixCls:N,columnsKey:_t,onColumnResize:oe}),gt))}He.displayName="Body";var Xe=ie(He),ut=["expandable"],Bt="RC_TABLE_INTERNAL_COL_DEFINE";function wt(r){var o=r.expandable,u=(0,Ee.Z)(r,ut),y;return"expandable"in r?y=(0,z.Z)((0,z.Z)({},u),o):y=u,y.showExpandColumn===!1&&(y.expandIconColumnIndex=-1),y}var Dt=["columnType"];function mn(r){for(var o=r.colWidths,u=r.columns,y=r.columCount,N=[],O=y||u.length,oe=!1,re=O-1;re>=0;re-=1){var ee=o[re],ge=u&&u[re],Oe=ge&&ge[Bt];if(ee||Oe||oe){var we=Oe||{},ze=we.columnType,We=(0,Ee.Z)(we,Dt);N.unshift(n.createElement("col",(0,D.Z)({key:re,style:{width:ee}},We))),oe=!0}}return n.createElement("colgroup",null,N)}var ln=mn,$t=e(94480),En=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function vn(r,o){return(0,n.useMemo)(function(){for(var u=[],y=0;y<o;y+=1){var N=r[y];if(N!==void 0)u[y]=N;else return null}return u},[r.join("_"),o])}var sn=n.forwardRef(function(r,o){var u=r.className,y=r.noData,N=r.columns,O=r.flattenColumns,oe=r.colWidths,re=r.columCount,ee=r.stickyOffsets,ge=r.direction,Oe=r.fixHeader,we=r.stickyTopOffset,ze=r.stickyBottomOffset,We=r.stickyClassName,Ve=r.onScroll,xt=r.maxContentScroll,mt=r.children,bt=(0,Ee.Z)(r,En),gt=w(ae,["prefixCls","scrollbarSize","isSticky"]),_t=gt.prefixCls,Gt=gt.scrollbarSize,cn=gt.isSticky,Vt=cn&&!Oe?0:Gt,bn=n.useRef(null),Nn=n.useCallback(function(_n){(0,g.mH)(o,_n),(0,g.mH)(bn,_n)},[]);n.useEffect(function(){var _n;function un(jn){var Wn=jn,Cr=Wn.currentTarget,nr=Wn.deltaX;nr&&(Ve({currentTarget:Cr,scrollLeft:Cr.scrollLeft+nr}),jn.preventDefault())}return(_n=bn.current)===null||_n===void 0||_n.addEventListener("wheel",un),function(){var jn;(jn=bn.current)===null||jn===void 0||jn.removeEventListener("wheel",un)}},[]);var Rt=n.useMemo(function(){return O.every(function(_n){return _n.width})},[O]),Jt=O[O.length-1],Mt={fixed:Jt?Jt.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(_t,"-cell-scrollbar")}}},It=(0,n.useMemo)(function(){return Vt?[].concat((0,$t.Z)(N),[Mt]):N},[Vt,N]),Ut=(0,n.useMemo)(function(){return Vt?[].concat((0,$t.Z)(O),[Mt]):O},[Vt,O]),hn=(0,n.useMemo)(function(){var _n=ee.right,un=ee.left;return(0,z.Z)((0,z.Z)({},ee),{},{left:ge==="rtl"?[].concat((0,$t.Z)(un.map(function(jn){return jn+Vt})),[0]):un,right:ge==="rtl"?_n:[].concat((0,$t.Z)(_n.map(function(jn){return jn+Vt})),[0]),isSticky:cn})},[Vt,ee,cn]),Fn=vn(oe,re);return n.createElement("div",{style:(0,z.Z)({overflow:"hidden"},cn?{top:we,bottom:ze}:{}),ref:Nn,className:ce()(u,(0,v.Z)({},We,!!We))},n.createElement("table",{style:{tableLayout:"fixed",visibility:y||Fn?null:"hidden"}},(!y||!xt||Rt)&&n.createElement(ln,{colWidths:Fn?[].concat((0,$t.Z)(Fn),[Vt]):[],columCount:re+1,columns:Ut}),mt((0,z.Z)((0,z.Z)({},bt),{},{stickyOffsets:hn,columns:It,flattenColumns:Ut}))))});sn.displayName="FixedHolder";var yn=n.memo(sn);function xn(r){var o=r.cells,u=r.stickyOffsets,y=r.flattenColumns,N=r.rowComponent,O=r.cellComponent,oe=r.tdCellComponent,re=r.onHeaderRow,ee=r.index,ge=w(ae,["prefixCls","direction"]),Oe=ge.prefixCls,we=ge.direction,ze;re&&(ze=re(o.map(function(Ve){return Ve.column}),ee));var We=je(o.map(function(Ve){return Ve.column}));return n.createElement(N,ze,o.map(function(Ve,xt){var mt=Ve.column,bt=St(Ve.colStart,Ve.colEnd,y,u,we,mt),gt;return mt&&mt.onHeaderCell&&(gt=Ve.column.onHeaderCell(mt)),n.createElement(ft,(0,D.Z)({},Ve,{scope:mt.title?Ve.colSpan>1?"colgroup":"col":null,ellipsis:mt.ellipsis,align:mt.align,component:mt.title?O:oe,prefixCls:Oe,key:We[xt]},bt,{additionalProps:gt,rowType:"header"}))}))}xn.displayName="HeaderRow";var An=xn;function lr(r){var o=[];function u(oe,re){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;o[ee]=o[ee]||[];var ge=re,Oe=oe.filter(Boolean).map(function(we){var ze={key:we.key,className:we.className||"",children:we.title,column:we,colStart:ge},We=1,Ve=we.children;return Ve&&Ve.length>0&&(We=u(Ve,ge,ee+1).reduce(function(xt,mt){return xt+mt},0),ze.hasSubColumns=!0),"colSpan"in we&&(We=we.colSpan),"rowSpan"in we&&(ze.rowSpan=we.rowSpan),ze.colSpan=We,ze.colEnd=ze.colStart+We-1,o[ee].push(ze),ge+=We,We});return Oe}u(r,0);for(var y=o.length,N=function(re){o[re].forEach(function(ee){!("rowSpan"in ee)&&!ee.hasSubColumns&&(ee.rowSpan=y-re)})},O=0;O<y;O+=1)N(O);return o}function br(r){var o=r.stickyOffsets,u=r.columns,y=r.flattenColumns,N=r.onHeaderRow,O=w(ae,["prefixCls","getComponent"]),oe=O.prefixCls,re=O.getComponent,ee=n.useMemo(function(){return lr(u)},[u]),ge=re(["header","wrapper"],"thead"),Oe=re(["header","row"],"tr"),we=re(["header","cell"],"th"),ze=re(["header","cell"],"td");return n.createElement(ge,{className:"".concat(oe,"-thead")},ee.map(function(We,Ve){var xt=n.createElement(An,{key:Ve,flattenColumns:y,cells:We,stickyOffsets:o,rowComponent:Oe,cellComponent:we,tdCellComponent:ze,onHeaderRow:N,index:Ve});return xt}))}var Un=ie(br),cr=e(11592);function Zn(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof o=="number"?o:o.endsWith("%")?r*parseFloat(o)/100:null}function fr(r,o){return n.useMemo(function(){if(o&&o>0){var u=0,y=0;r.forEach(function(ge){var Oe=Zn(o,ge.width);Oe?u+=Oe:y+=1});var N=o-u,O=y,oe=N/y,re=0,ee=r.map(function(ge){var Oe=(0,z.Z)({},ge),we=Zn(o,Oe.width);if(we)Oe.width=we;else{var ze=Math.floor(oe);Oe.width=O===1?N:ze,N-=ze,O-=1}return re+=Oe.width,Oe});return[ee,re]}return[r,o]},[r,o])}var Dr=["children"],Ir=["fixed"];function pr(r){return(0,cr.Z)(r).filter(function(o){return n.isValidElement(o)}).map(function(o){var u=o.key,y=o.props,N=y.children,O=(0,Ee.Z)(y,Dr),oe=(0,z.Z)({key:u},O);return N&&(oe.children=pr(N)),oe})}function _r(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return r.filter(function(u){return u&&(0,te.Z)(u)==="object"}).reduce(function(u,y,N){var O=y.fixed,oe=O===!0?"left":O,re="".concat(o,"-").concat(N),ee=y.children;return ee&&ee.length>0?[].concat((0,$t.Z)(u),(0,$t.Z)(_r(ee,re).map(function(ge){return(0,z.Z)({fixed:oe},ge)}))):[].concat((0,$t.Z)(u),[(0,z.Z)((0,z.Z)({key:re},y),{},{fixed:oe})])},[])}function Xr(r){for(var o=!0,u=0;u<r.length;u+=1){var y=r[u];if(o&&y.fixed!=="left")o=!1;else if(!o&&y.fixed==="left"){warning(!1,"Index ".concat(u-1," of `columns` missing `fixed='left'` prop."));break}}for(var N=!0,O=r.length-1;O>=0;O-=1){var oe=r[O];if(N&&oe.fixed!=="right")N=!1;else if(!N&&oe.fixed==="right"){warning(!1,"Index ".concat(O+1," of `columns` missing `fixed='right'` prop."));break}}}function Lr(r){return r.map(function(o){var u=o.fixed,y=(0,Ee.Z)(o,Ir),N=u;return u==="left"?N="right":u==="right"&&(N="left"),(0,z.Z)({fixed:N},y)})}function so(r,o){var u=r.prefixCls,y=r.columns,N=r.children,O=r.expandable,oe=r.expandedKeys,re=r.columnTitle,ee=r.getRowKey,ge=r.onTriggerExpand,Oe=r.expandIcon,we=r.rowExpandable,ze=r.expandIconColumnIndex,We=r.direction,Ve=r.expandRowByClick,xt=r.columnWidth,mt=r.fixed,bt=r.scrollWidth,gt=n.useMemo(function(){return y||pr(N)},[y,N]),_t=n.useMemo(function(){if(O){var Jt,Mt=gt.slice();if(!Mt.includes(t)){var It=ze||0;It>=0&&Mt.splice(It,0,t)}var Ut=Mt.indexOf(t);Mt=Mt.filter(function(un,jn){return un!==t||jn===Ut});var hn=gt[Ut],Fn;(mt==="left"||mt)&&!ze?Fn="left":(mt==="right"||mt)&&ze===gt.length?Fn="right":Fn=hn?hn.fixed:null;var _n=(Jt={},(0,v.Z)(Jt,Bt,{className:"".concat(u,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,v.Z)(Jt,"title",re),(0,v.Z)(Jt,"fixed",Fn),(0,v.Z)(Jt,"className","".concat(u,"-row-expand-icon-cell")),(0,v.Z)(Jt,"width",xt),(0,v.Z)(Jt,"render",function(jn,Wn,Cr){var nr=ee(Wn,Cr),Ar=oe.has(nr),Nr=we?we(Wn):!0,Tn=Oe({prefixCls:u,expanded:Ar,expandable:Nr,record:Wn,onExpand:ge});return Ve?n.createElement("span",{onClick:function(or){return or.stopPropagation()}},Tn):Tn}),Jt);return Mt.map(function(un){return un===t?_n:un})}return gt.filter(function(un){return un!==t})},[O,gt,ee,oe,Oe,We]),Gt=n.useMemo(function(){var Jt=_t;return o&&(Jt=o(Jt)),Jt.length||(Jt=[{render:function(){return null}}]),Jt},[o,_t,We]),cn=n.useMemo(function(){return We==="rtl"?Lr(_r(Gt)):_r(Gt)},[Gt,We,bt]),Vt=fr(cn,bt),bn=(0,P.Z)(Vt,2),Nn=bn[0],Rt=bn[1];return[Gt,Nn,Rt]}var Jr=so;function Ge(r){var o,u=r.prefixCls,y=r.record,N=r.onExpand,O=r.expanded,oe=r.expandable,re="".concat(u,"-row-expand-icon");if(!oe)return n.createElement("span",{className:ce()(re,"".concat(u,"-row-spaced"))});var ee=function(Oe){N(y,Oe),Oe.stopPropagation()};return n.createElement("span",{className:ce()(re,(o={},(0,v.Z)(o,"".concat(u,"-row-expanded"),O),(0,v.Z)(o,"".concat(u,"-row-collapsed"),!O),o)),onClick:ee})}function pe(r,o,u){var y=[];function N(O){(O||[]).forEach(function(oe,re){y.push(o(oe,re)),N(oe[u])})}return N(r),y}function lt(r,o,u){var y=wt(r),N=y.expandIcon,O=y.expandedRowKeys,oe=y.defaultExpandedRowKeys,re=y.defaultExpandAllRows,ee=y.expandedRowRender,ge=y.onExpand,Oe=y.onExpandedRowsChange,we=y.childrenColumnName,ze=N||Ge,We=we||"children",Ve=n.useMemo(function(){return ee?"row":r.expandable&&r.internalHooks===l&&r.expandable.__PARENT_RENDER_ICON__||o.some(function(cn){return cn&&(0,te.Z)(cn)==="object"&&cn[We]})?"nest":!1},[!!ee,o]),xt=n.useState(function(){return oe||(re?pe(o,u,We):[])}),mt=(0,P.Z)(xt,2),bt=mt[0],gt=mt[1],_t=n.useMemo(function(){return new Set(O||bt||[])},[O,bt]),Gt=n.useCallback(function(cn){var Vt=u(cn,o.indexOf(cn)),bn,Nn=_t.has(Vt);Nn?(_t.delete(Vt),bn=(0,$t.Z)(_t)):bn=[].concat((0,$t.Z)(_t),[Vt]),gt(bn),ge&&ge(!Nn,cn),Oe&&Oe(bn)},[u,_t,o,ge,Oe]);return[y,Ve,_t,ze,We,Gt]}function Pt(r,o,u,y){var N=r.map(function(O,oe){return St(oe,oe,r,o,u,y==null?void 0:y[oe])});return(0,q.Z)(function(){return N},[N],function(O,oe){return!(0,p.Z)(O,oe)})}function Nt(r){var o=(0,n.useRef)(r),u=(0,n.useState)({}),y=(0,P.Z)(u,2),N=y[1],O=(0,n.useRef)(null),oe=(0,n.useRef)([]);function re(ee){oe.current.push(ee);var ge=Promise.resolve();O.current=ge,ge.then(function(){if(O.current===ge){var Oe=oe.current,we=o.current;oe.current=[],Oe.forEach(function(ze){o.current=ze(o.current)}),O.current=null,we!==o.current&&N({})}})}return(0,n.useEffect)(function(){return function(){O.current=null}},[]),[o.current,re]}function Kt(r){var o=(0,n.useRef)(r||null),u=(0,n.useRef)();function y(){window.clearTimeout(u.current)}function N(oe){o.current=oe,y(),u.current=window.setTimeout(function(){o.current=null,u.current=void 0},100)}function O(){return o.current}return(0,n.useEffect)(function(){return y},[]),[N,O]}function Xt(){var r=n.useState(-1),o=(0,P.Z)(r,2),u=o[0],y=o[1],N=n.useState(-1),O=(0,P.Z)(N,2),oe=O[0],re=O[1],ee=n.useCallback(function(ge,Oe){y(ge),re(Oe)},[]);return[u,oe,ee]}var zt=e(47273),j=(0,zt.Z)()?window:null;function ue(r,o){var u=(0,te.Z)(r)==="object"?r:{},y=u.offsetHeader,N=y===void 0?0:y,O=u.offsetSummary,oe=O===void 0?0:O,re=u.offsetScroll,ee=re===void 0?0:re,ge=u.getContainer,Oe=ge===void 0?function(){return j}:ge,we=Oe()||j;return n.useMemo(function(){var ze=!!r;return{isSticky:ze,stickyClassName:ze?"".concat(o,"-sticky-holder"):"",offsetHeader:N,offsetSummary:oe,offsetScroll:ee,container:we}},[ee,N,oe,o,we])}function xe(r,o,u){var y=(0,n.useMemo)(function(){for(var N=[],O=[],oe=0,re=0,ee=0;ee<o;ee+=1)if(u==="rtl"){O[ee]=re,re+=r[ee]||0;var ge=o-ee-1;N[ge]=oe,oe+=r[ge]||0}else{N[ee]=oe,oe+=r[ee]||0;var Oe=o-ee-1;O[Oe]=re,re+=r[Oe]||0}return{left:N,right:O}},[r,o,u]);return y}var be=xe;function Ze(r){var o=r.className,u=r.children;return n.createElement("div",{className:o},u)}var Le=Ze,ke=e(8224),Ae=e(55468),Ht=function(o,u){var y,N,O=o.scrollBodyRef,oe=o.onScroll,re=o.offsetScroll,ee=o.container,ge=w(ae,"prefixCls"),Oe=((y=O.current)===null||y===void 0?void 0:y.scrollWidth)||0,we=((N=O.current)===null||N===void 0?void 0:N.clientWidth)||0,ze=Oe&&we*(we/Oe),We=n.useRef(),Ve=Nt({scrollLeft:0,isHiddenScrollBar:!1}),xt=(0,P.Z)(Ve,2),mt=xt[0],bt=xt[1],gt=n.useRef({delta:0,x:0}),_t=n.useState(!1),Gt=(0,P.Z)(_t,2),cn=Gt[0],Vt=Gt[1],bn=function(){Vt(!1)},Nn=function(Ut){Ut.persist(),gt.current.delta=Ut.pageX-mt.scrollLeft,gt.current.x=0,Vt(!0),Ut.preventDefault()},Rt=function(Ut){var hn,Fn=Ut||((hn=window)===null||hn===void 0?void 0:hn.event),_n=Fn.buttons;if(!cn||_n===0){cn&&Vt(!1);return}var un=gt.current.x+Ut.pageX-gt.current.x-gt.current.delta;un<=0&&(un=0),un+ze>=we&&(un=we-ze),oe({scrollLeft:un/we*(Oe+2)}),gt.current.x=Ut.pageX},Jt=function(){if(O.current){var Ut=(0,Ae.os)(O.current).top,hn=Ut+O.current.offsetHeight,Fn=ee===window?document.documentElement.scrollTop+window.innerHeight:(0,Ae.os)(ee).top+ee.clientHeight;hn-(0,Q.Z)()<=Fn||Ut>=Fn-re?bt(function(_n){return(0,z.Z)((0,z.Z)({},_n),{},{isHiddenScrollBar:!0})}):bt(function(_n){return(0,z.Z)((0,z.Z)({},_n),{},{isHiddenScrollBar:!1})})}},Mt=function(Ut){bt(function(hn){return(0,z.Z)((0,z.Z)({},hn),{},{scrollLeft:Ut/Oe*we||0})})};return n.useImperativeHandle(u,function(){return{setScrollLeft:Mt}}),n.useEffect(function(){var It=(0,ke.Z)(document.body,"mouseup",bn,!1),Ut=(0,ke.Z)(document.body,"mousemove",Rt,!1);return Jt(),function(){It.remove(),Ut.remove()}},[ze,cn]),n.useEffect(function(){var It=(0,ke.Z)(ee,"scroll",Jt,!1),Ut=(0,ke.Z)(window,"resize",Jt,!1);return function(){It.remove(),Ut.remove()}},[ee]),n.useEffect(function(){mt.isHiddenScrollBar||bt(function(It){var Ut=O.current;return Ut?(0,z.Z)((0,z.Z)({},It),{},{scrollLeft:Ut.scrollLeft/Ut.scrollWidth*Ut.clientWidth}):It})},[mt.isHiddenScrollBar]),Oe<=we||!ze||mt.isHiddenScrollBar?null:n.createElement("div",{style:{height:(0,Q.Z)(),width:we,bottom:re},className:"".concat(ge,"-sticky-scroll")},n.createElement("div",{onMouseDown:Nn,ref:We,className:ce()("".concat(ge,"-sticky-scroll-bar"),(0,v.Z)({},"".concat(ge,"-sticky-scroll-bar-active"),cn)),style:{width:"".concat(ze,"px"),transform:"translate3d(".concat(mt.scrollLeft,"px, 0, 0)")}}))},kt=n.forwardRef(Ht);function qt(r){return null}var kn=qt;function Rn(r){return null}var an=Rn,h="rc-table",Br=[],Qn={};function ur(){return"No Data"}function er(r){var o,u=(0,z.Z)({rowKey:"key",prefixCls:h,emptyText:ur},r),y=u.prefixCls,N=u.className,O=u.rowClassName,oe=u.style,re=u.data,ee=u.rowKey,ge=u.scroll,Oe=u.tableLayout,we=u.direction,ze=u.title,We=u.footer,Ve=u.summary,xt=u.caption,mt=u.id,bt=u.showHeader,gt=u.components,_t=u.emptyText,Gt=u.onRow,cn=u.onHeaderRow,Vt=u.internalHooks,bn=u.transformColumns,Nn=u.internalRefs,Rt=u.tailor,Jt=u.sticky,Mt=re||Br,It=!!Mt.length,Ut=Vt===l,hn=n.useCallback(function(xr,Zr){return(0,x.Z)(gt,xr)||Zr},[gt]),Fn=n.useMemo(function(){return typeof ee=="function"?ee:function(xr){var Zr=xr&&xr[ee];return Zr}},[ee]),_n=hn(["body"]),un=Xt(),jn=(0,P.Z)(un,3),Wn=jn[0],Cr=jn[1],nr=jn[2],Ar=lt(u,Mt,Fn),Nr=(0,P.Z)(Ar,6),Tn=Nr[0],Wr=Nr[1],or=Nr[2],Vn=Nr[3],Sr=Nr[4],Qr=Nr[5],pn=ge==null?void 0:ge.x,fn=n.useState(0),dn=(0,P.Z)(fn,2),on=dn[0],rr=dn[1],Qt=Jr((0,z.Z)((0,z.Z)((0,z.Z)({},u),Tn),{},{expandable:!!Tn.expandedRowRender,columnTitle:Tn.columnTitle,expandedKeys:or,getRowKey:Fn,onTriggerExpand:Qr,expandIcon:Vn,expandIconColumnIndex:Tn.expandIconColumnIndex,direction:we,scrollWidth:Ut&&Rt&&typeof pn=="number"?pn:null}),Ut?bn:null),On=(0,P.Z)(Qt,3),tr=On[0],Xn=On[1],c=On[2],he=c!=null?c:pn,tt=n.useMemo(function(){return{columns:tr,flattenColumns:Xn}},[tr,Xn]),ot=n.useRef(),qe=n.useRef(),et=n.useRef(),ct=n.useRef(),Tt=n.useRef(),pt=n.useState(!1),it=(0,P.Z)(pt,2),Ft=it[0],nt=it[1],dt=n.useState(!1),Et=(0,P.Z)(dt,2),gr=Et[0],jt=Et[1],Dn=Nt(new Map),Or=(0,P.Z)(Dn,2),Mr=Or[0],Fo=Or[1],xo=je(Xn),Lt=xo.map(function(xr){return Mr.get(xr)}),qr=n.useMemo(function(){return Lt},[Lt.join("_")]),Vr=be(qr,Xn.length,we),yr=ge&&Je(ge.y),wr=ge&&Je(he)||!!Tn.fixed,lo=wr&&Xn.some(function(xr){var Zr=xr.fixed;return Zr}),co=n.useRef(),Co=ue(Jt,y),wo=Co.isSticky,Xa=Co.offsetHeader,bl=Co.offsetSummary,ar=Co.offsetScroll,Rr=Co.stickyClassName,oo=Co.container,Kr=n.useMemo(function(){return Ve==null?void 0:Ve(Mt)},[Ve,Mt]),io=(yr||wo)&&n.isValidElement(Kr)&&Kr.type===a&&Kr.props.fixed,mo,vo,To;yr&&(vo={overflowY:"scroll",maxHeight:ge.y}),wr&&(mo={overflowX:"auto"},yr||(vo={overflowY:"hidden"}),To={width:he===!0?"auto":he,minWidth:"100%"});var Rl=n.useCallback(function(xr,Zr){(0,$.Z)(ot.current)&&Fo(function(bo){if(bo.get(xr)!==Zr){var Ao=new Map(bo);return Ao.set(xr,Zr),Ao}return bo})},[]),ni=Kt(null),Ml=(0,P.Z)(ni,2),ri=Ml[0],Fl=Ml[1];function Ga(xr,Zr){Zr&&(typeof Zr=="function"?Zr(xr):Zr.scrollLeft!==xr&&(Zr.scrollLeft=xr,Zr.scrollLeft!==xr&&setTimeout(function(){Zr.scrollLeft=xr},0)))}var ua=(0,L.Z)(function(xr){var Zr=xr.currentTarget,bo=xr.scrollLeft,Ao=we==="rtl",Zo=typeof bo=="number"?bo:Zr.scrollLeft,Jl=Zr||Qn;if(!Fl()||Fl()===Jl){var Pl;ri(Jl),Ga(Zo,qe.current),Ga(Zo,et.current),Ga(Zo,Tt.current),Ga(Zo,(Pl=co.current)===null||Pl===void 0?void 0:Pl.setScrollLeft)}var Il=Zr||qe.current;if(Il){var Nl=Il.scrollWidth,Ol=Il.clientWidth;if(Nl===Ol){nt(!1),jt(!1);return}Ao?(nt(-Zo<Nl-Ol),jt(-Zo>0)):(nt(Zo>0),jt(Zo<Nl-Ol))}}),Al=function(){wr&&et.current?ua({currentTarget:et.current}):(nt(!1),jt(!1))},oi=function(Zr){var bo=Zr.width;bo!==on&&(Al(),rr(ot.current?ot.current.offsetWidth:bo))},Zl=n.useRef(!1);n.useEffect(function(){Zl.current&&Al()},[wr,re,tr.length]),n.useEffect(function(){Zl.current=!0},[]);var ai=n.useState(0),Ll=(0,P.Z)(ai,2),Ya=Ll[0],kl=Ll[1],li=n.useState(!0),jl=(0,P.Z)(li,2),Kl=jl[0],ii=jl[1];n.useEffect(function(){(!Rt||!Ut)&&(et.current instanceof Element?kl((0,Q.o)(et.current).width):kl((0,Q.o)(ct.current).width)),ii((0,f.G)("position","sticky"))},[]),n.useEffect(function(){Ut&&Nn&&(Nn.body.current=et.current)});var si=n.useCallback(function(xr){return n.createElement(n.Fragment,null,n.createElement(Un,xr),io==="top"&&n.createElement(fe,xr,Kr))},[io,Kr]),ci=n.useCallback(function(xr){return n.createElement(fe,xr,Kr)},[Kr]),zl=hn(["table"],"table"),Ja=n.useMemo(function(){return Oe||(lo?he==="max-content"?"auto":"fixed":yr||wo||Xn.some(function(xr){var Zr=xr.ellipsis;return Zr})?"fixed":"auto")},[yr,lo,Xn,Oe,wo]),El,Sl={colWidths:qr,columCount:Xn.length,stickyOffsets:Vr,onHeaderRow:cn,fixHeader:yr,scroll:ge},Hl=n.useMemo(function(){return It?null:typeof _t=="function"?_t():_t},[It,_t]),Wl=n.createElement(Xe,{data:Mt,measureColumnWidth:yr||wr||wo}),Ul=n.createElement(ln,{colWidths:Xn.map(function(xr){var Zr=xr.width;return Zr}),columns:Xn}),Vl=xt!=null?n.createElement("caption",{className:"".concat(y,"-caption")},xt):void 0,ui=(0,Re.Z)(u,{data:!0}),Xl=(0,Re.Z)(u,{aria:!0});if(yr||wo){var wl;typeof _n=="function"?(wl=_n(Mt,{scrollbarSize:Ya,ref:et,onScroll:ua}),Sl.colWidths=Xn.map(function(xr,Zr){var bo=xr.width,Ao=Zr===Xn.length-1?bo-Ya:bo;return typeof Ao=="number"&&!Number.isNaN(Ao)?Ao:0})):wl=n.createElement("div",{style:(0,z.Z)((0,z.Z)({},mo),vo),onScroll:ua,ref:et,className:ce()("".concat(y,"-body"))},n.createElement(zl,(0,D.Z)({style:(0,z.Z)((0,z.Z)({},To),{},{tableLayout:Ja})},Xl),Vl,Ul,Wl,!io&&Kr&&n.createElement(fe,{stickyOffsets:Vr,flattenColumns:Xn,columns:tr},Kr)));var Gl=(0,z.Z)((0,z.Z)((0,z.Z)({noData:!Mt.length,maxContentScroll:wr&&he==="max-content"},Sl),tt),{},{direction:we,stickyClassName:Rr,onScroll:ua});El=n.createElement(n.Fragment,null,bt!==!1&&n.createElement(yn,(0,D.Z)({},Gl,{stickyTopOffset:Xa,className:"".concat(y,"-header"),ref:qe}),si),wl,io&&io!=="top"&&n.createElement(yn,(0,D.Z)({},Gl,{stickyBottomOffset:bl,className:"".concat(y,"-summary"),ref:Tt}),ci),wo&&n.createElement(kt,{ref:co,offsetScroll:ar,scrollBodyRef:et,onScroll:ua,container:oo}))}else El=n.createElement("div",{style:(0,z.Z)((0,z.Z)({},mo),vo),className:ce()("".concat(y,"-content")),onScroll:ua,ref:et},n.createElement(zl,(0,D.Z)({style:(0,z.Z)((0,z.Z)({},To),{},{tableLayout:Ja})},Xl),Vl,Ul,bt!==!1&&n.createElement(Un,(0,D.Z)({},Sl,tt)),Wl,Kr&&n.createElement(fe,{stickyOffsets:Vr,flattenColumns:Xn,columns:tr},Kr)));var $l=n.createElement("div",(0,D.Z)({className:ce()(y,N,(o={},(0,v.Z)(o,"".concat(y,"-rtl"),we==="rtl"),(0,v.Z)(o,"".concat(y,"-ping-left"),Ft),(0,v.Z)(o,"".concat(y,"-ping-right"),gr),(0,v.Z)(o,"".concat(y,"-layout-fixed"),Oe==="fixed"),(0,v.Z)(o,"".concat(y,"-fixed-header"),yr),(0,v.Z)(o,"".concat(y,"-fixed-column"),lo),(0,v.Z)(o,"".concat(y,"-scroll-horizontal"),wr),(0,v.Z)(o,"".concat(y,"-has-fix-left"),Xn[0]&&Xn[0].fixed),(0,v.Z)(o,"".concat(y,"-has-fix-right"),Xn[Xn.length-1]&&Xn[Xn.length-1].fixed==="right"),o)),style:oe,id:mt,ref:ot},ui),ze&&n.createElement(Le,{className:"".concat(y,"-title")},ze(Mt)),n.createElement("div",{ref:ct,className:"".concat(y,"-container")},El),We&&n.createElement(Le,{className:"".concat(y,"-footer")},We(Mt)));wr&&($l=n.createElement(X.Z,{onResize:oi},$l));var Yl=Pt(Xn,Vr,we,tr),di=n.useMemo(function(){return{scrollX:he,prefixCls:y,getComponent:hn,scrollbarSize:Ya,direction:we,fixedInfoList:Yl,isSticky:wo,supportSticky:Kl,componentWidth:on,fixHeader:yr,fixColumn:lo,horizonScroll:wr,tableLayout:Ja,rowClassName:O,expandedRowClassName:Tn.expandedRowClassName,expandIcon:Vn,expandableType:Wr,expandRowByClick:Tn.expandRowByClick,expandedRowRender:Tn.expandedRowRender,onTriggerExpand:Qr,expandIconColumnIndex:Tn.expandIconColumnIndex,indentSize:Tn.indentSize,allColumnsFixedLeft:Xn.every(function(xr){return xr.fixed==="left"}),emptyNode:Hl,columns:tr,flattenColumns:Xn,onColumnResize:Rl,hoverStartRow:Wn,hoverEndRow:Cr,onHover:nr,rowExpandable:Tn.rowExpandable,onRow:Gt,getRowKey:Fn,expandedKeys:or,childrenColumnName:Sr}},[he,y,hn,Ya,we,Yl,wo,Kl,on,yr,lo,wr,Ja,O,Tn.expandedRowClassName,Vn,Wr,Tn.expandRowByClick,Tn.expandedRowRender,Qr,Tn.expandIconColumnIndex,Tn.indentSize,Hl,tr,Xn,Rl,Wn,Cr,nr,Tn.rowExpandable,Gt,Fn,or,Sr]);return n.createElement(ae.Provider,{value:di},$l)}function hr(r){return de(er,r)}var qn=hr();qn.EXPAND_COLUMN=t,qn.INTERNAL_HOOKS=l,qn.Column=kn,qn.ColumnGroup=an,qn.Summary=s;var $n=qn,Pn=e(48911),zn=W(null),kr=W(null);function In(r,o,u){var y=o||1;return u[r+y]-(u[r]||0)}function Er(r){var o=r.rowInfo,u=r.column,y=r.colIndex,N=r.indent,O=r.index,oe=r.renderIndex,re=r.record,ee=r.style,ge=r.className,Oe=r.inverse,we=r.getHeight,ze=u.render,We=u.dataIndex,Ve=u.className,xt=u.width,mt=w(kr,["columnsOffset"]),bt=mt.columnsOffset,gt=Y(o,u,y,N,O),_t=gt.key,Gt=gt.fixedInfo,cn=gt.appendCellNode,Vt=gt.additionalCellProps,bn=Vt.style,Nn=Vt.colSpan,Rt=Nn===void 0?1:Nn,Jt=Vt.rowSpan,Mt=Jt===void 0?1:Jt,It=y-1,Ut=In(It,Rt,bt),hn=Rt>1?xt-Ut:0,Fn=(0,z.Z)((0,z.Z)((0,z.Z)({},bn),ee),{},{flex:"0 0 ".concat(Ut,"px"),width:"".concat(Ut,"px"),marginRight:hn,pointerEvents:"auto"}),_n=n.useMemo(function(){return Oe?Mt<=1:Rt===0||Mt===0||Mt>1},[Mt,Rt,Oe]);_n?Fn.visibility="hidden":Oe&&(Fn.height=we==null?void 0:we(Mt));var un=_n?function(){return null}:ze,jn={};return(Mt===0||Rt===0)&&(jn.rowSpan=1,jn.colSpan=1),n.createElement(ft,(0,D.Z)({className:ce()(Ve,ge),ellipsis:u.ellipsis,align:u.align,scope:u.rowScope,component:"div",prefixCls:o.prefixCls,key:_t,record:re,index:O,renderIndex:oe,dataIndex:We,render:un,shouldCellUpdate:u.shouldCellUpdate},Gt,{appendNode:cn,additionalProps:(0,z.Z)((0,z.Z)({},Vt),{},{style:Fn},jn)}))}var jr=Er,Ur=["data","index","className","rowKey","style","extra","getHeight"],Gr=n.forwardRef(function(r,o){var u=r.data,y=r.index,N=r.className,O=r.rowKey,oe=r.style,re=r.extra,ee=r.getHeight,ge=(0,Ee.Z)(r,Ur),Oe=u.record,we=u.indent,ze=u.index,We=w(ae,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Ve=We.scrollX,xt=We.flattenColumns,mt=We.prefixCls,bt=We.fixColumn,gt=We.componentWidth,_t=d(Oe,O,y,we),Gt=_t.rowSupportExpand,cn=_t.expanded,Vt=_t.rowProps,bn=_t.expandedRowRender,Nn=_t.expandedRowClassName,Rt;if(Gt&&cn){var Jt=bn(Oe,y,we+1,cn),Mt=Nn==null?void 0:Nn(Oe,y,we),It={};bt&&(It={style:(0,v.Z)({},"--virtual-width","".concat(gt,"px"))});var Ut="".concat(mt,"-expanded-row-cell");Rt=n.createElement("div",{className:ce()("".concat(mt,"-expanded-row"),"".concat(mt,"-expanded-row-level-").concat(we+1),Mt)},n.createElement(ft,{component:"div",prefixCls:mt,className:ce()(Ut,(0,v.Z)({},"".concat(Ut,"-fixed"),bt)),additionalProps:It},Jt))}var hn=(0,z.Z)((0,z.Z)({},oe),{},{width:Ve});re&&(hn.position="absolute",hn.pointerEvents="none");var Fn=n.createElement("div",(0,D.Z)({},Vt,ge,{ref:Gt?null:o,className:ce()(N,"".concat(mt,"-row"),Vt==null?void 0:Vt.className,(0,v.Z)({},"".concat(mt,"-row-extra"),re)),style:(0,z.Z)((0,z.Z)({},hn),Vt==null?void 0:Vt.style)}),xt.map(function(_n,un){return n.createElement(jr,{key:un,rowInfo:_t,column:_n,colIndex:un,indent:we,index:y,renderIndex:ze,record:Oe,inverse:re,getHeight:ee})}));return Gt?n.createElement("div",{ref:o},Fn,Rt):Fn}),Yr=ie(Gr),U=Yr,me=n.forwardRef(function(r,o){var u=r.data,y=r.onScroll,N=w(ae,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),O=N.flattenColumns,oe=N.onColumnResize,re=N.getRowKey,ee=N.expandedKeys,ge=N.prefixCls,Oe=N.childrenColumnName,we=N.emptyNode,ze=N.scrollX,We=w(zn),Ve=We.scrollY,xt=We.listItemHeight,mt=n.useRef(),bt=Se(u,Oe,ee,re),gt=n.useMemo(function(){var Rt=0;return O.map(function(Jt){var Mt=Jt.width,It=Jt.key;return Rt+=Mt,[It,Mt,Rt]})},[O]),_t=n.useMemo(function(){return gt.map(function(Rt){return Rt[2]})},[gt]);n.useEffect(function(){gt.forEach(function(Rt){var Jt=(0,P.Z)(Rt,2),Mt=Jt[0],It=Jt[1];oe(Mt,It)})},[gt]),n.useImperativeHandle(o,function(){var Rt={};return Object.defineProperty(Rt,"scrollLeft",{get:function(){var Mt;return((Mt=mt.current)===null||Mt===void 0?void 0:Mt.getScrollInfo().x)||0},set:function(Mt){var It;(It=mt.current)===null||It===void 0||It.scrollTo({left:Mt})}}),Rt});var Gt=function(Jt,Mt){var It,Ut=(It=bt[Mt])===null||It===void 0?void 0:It.record,hn=Jt.onCell;if(hn){var Fn,_n=hn(Ut,Mt);return(Fn=_n==null?void 0:_n.rowSpan)!==null&&Fn!==void 0?Fn:1}return 1},cn=function(Jt){var Mt=Jt.start,It=Jt.end,Ut=Jt.getSize,hn=Jt.offsetY;if(It<0)return null;for(var Fn=O.filter(function(pn){return Gt(pn,Mt)===0}),_n=Mt,un=function(fn){if(Fn=Fn.filter(function(dn){return Gt(dn,fn)===0}),!Fn.length)return _n=fn,"break"},jn=Mt;jn>=0;jn-=1){var Wn=un(jn);if(Wn==="break")break}for(var Cr=O.filter(function(pn){return Gt(pn,It)!==1}),nr=It,Ar=function(fn){if(Cr=Cr.filter(function(dn){return Gt(dn,fn)!==1}),!Cr.length)return nr=Math.max(fn-1,It),"break"},Nr=It;Nr<bt.length;Nr+=1){var Tn=Ar(Nr);if(Tn==="break")break}for(var Wr=[],or=function(fn){var dn=bt[fn];if(!dn)return"continue";O.some(function(on){return Gt(on,fn)>1})&&Wr.push(fn)},Vn=_n;Vn<=nr;Vn+=1)var Sr=or(Vn);var Qr=Wr.map(function(pn){var fn=bt[pn],dn=re(fn.record,pn),on=function(On){var tr=pn+On-1,Xn=re(bt[tr].record,tr),c=Ut(dn,Xn);return c.bottom-c.top},rr=Ut(dn);return n.createElement(U,{key:pn,data:fn,rowKey:dn,index:pn,style:{top:-hn+rr.top},extra:!0,getHeight:on})});return Qr},Vt=n.useMemo(function(){return{columnsOffset:_t}},[_t]),bn="".concat(ge,"-tbody"),Nn;return bt.length?Nn=n.createElement(Pn.Z,{fullHeight:!1,ref:mt,className:ce()(bn,"".concat(bn,"-virtual")),height:Ve,itemHeight:xt||24,data:bt,itemKey:function(Jt){return re(Jt.record)},scrollWidth:ze,onVirtualScroll:function(Jt){var Mt=Jt.x;y({scrollLeft:Mt})},extraRender:cn},function(Rt,Jt,Mt){var It=re(Rt.record,Jt);return n.createElement(U,(0,D.Z)({data:Rt,rowKey:It,index:Jt},Mt))}):Nn=n.createElement("div",{className:ce()("".concat(ge,"-placeholder"))},n.createElement(ft,{component:"div",prefixCls:ge},we)),n.createElement(kr.Provider,{value:Vt},Nn)}),Ye=ie(me),At=Ye,en=function(o,u){var y=u.ref,N=u.onScroll;return n.createElement(At,{ref:y,data:o,onScroll:N})},gn=100;function Yt(r){var o=r.columns,u=r.scroll,y=r.prefixCls,N=y===void 0?h:y,O=r.className,oe=r.listItemHeight,re=u||{},ee=re.x,ge=re.y;typeof ee!="number"&&(ee=((o||[]).length+1)*gn),typeof ge!="number"&&(ge=500);var Oe=n.useMemo(function(){return{scrollY:ge,listItemHeight:oe}},[ge,oe]);return n.createElement(zn.Provider,{value:Oe},n.createElement($n,(0,D.Z)({},r,{className:ce()(O,"".concat(N,"-virtual")),scroll:(0,z.Z)((0,z.Z)({},u),{},{x:ee}),components:{body:en},columns:o,internalHooks:l,tailor:!0})))}function Zt(r){return de(Yt,r)}var Ue=Zt(),yt=null;function tn(r){return null}var nn=tn;function Sn(r){return null}var Cn=Sn,Gn=e(2738),Bn=e(68031),st=e(36355),Ot=e(93891),wn=e(19716),ir=e(8628),Mn=e(31724),Yn=e(58421),$r=e(71418),Fr=e(88088);function Kn(r){return function(u){let{prefixCls:y,onExpand:N,record:O,expanded:oe,expandable:re}=u;const ee=`${y}-row-expand-icon`;return n.createElement("button",{type:"button",onClick:ge=>{N(O,ge),ge.stopPropagation()},className:ce()(ee,{[`${ee}-spaced`]:!re,[`${ee}-expanded`]:re&&oe,[`${ee}-collapsed`]:re&&!oe}),"aria-label":oe?r.collapse:r.expand,"aria-expanded":oe})}}var Pr=Kn;function Jn(r,o){return"key"in r&&r.key!==void 0&&r.key!==null?r.key:r.dataIndex?Array.isArray(r.dataIndex)?r.dataIndex.join("."):r.dataIndex:o}function zr(r,o){return o?`${o}-${r}`:`${r}`}function eo(r,o){return typeof r=="function"?r(o):r}function ao(r,o){const u=eo(r,o);return Object.prototype.toString.call(u)==="[object Object]"?"":u}var Eo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},ro=Eo,uo=e(7657),po=function(o,u){return n.createElement(uo.Z,(0,D.Z)({},o,{ref:u,icon:ro}))},Ln=n.forwardRef(po),mr=Ln,Hn=e(56762);function Wt(r){const o=n.useRef(r),u=(0,Hn.Z)();return[()=>o.current,y=>{o.current=y,u()}]}var dr=e(3113),Tr=e(24905),Hr=e(38854),to=e(64165),no=e(20834),yo=e(40875),Lo=e(5112),Uo=e(17574),ko=e(47472),jo=e(92832);function Ia(r){let{value:o,onChange:u,filterSearch:y,tablePrefixCls:N,locale:O}=r;return y?n.createElement("div",{className:`${N}-filter-dropdown-search`},n.createElement(jo.default,{prefix:n.createElement(ko.Z,null),placeholder:O.filterSearchPlaceholder,onChange:u,value:o,htmlSize:1,className:`${N}-filter-dropdown-search-input`})):null}var da=Ia,fa=e(10228);const Na=r=>{const{keyCode:o}=r;o===fa.Z.ENTER&&r.stopPropagation()};var Oa=n.forwardRef((r,o)=>n.createElement("div",{className:r.className,onClick:u=>u.stopPropagation(),onKeyDown:Na,ref:o},r.children));function $o(r){let o=[];return(r||[]).forEach(u=>{let{value:y,children:N}=u;o.push(y),N&&(o=[].concat((0,$t.Z)(o),(0,$t.Z)($o(N))))}),o}function Da(r){return r.some(o=>{let{children:u}=o;return u})}function ma(r,o){return typeof o=="string"||typeof o=="number"?o==null?void 0:o.toString().toLowerCase().includes(r.trim().toLowerCase()):!1}function va(r){let{filters:o,prefixCls:u,filteredKeys:y,filterMultiple:N,searchValue:O,filterSearch:oe}=r;return o.map((re,ee)=>{const ge=String(re.value);if(re.children)return{key:ge||ee,label:re.text,popupClassName:`${u}-dropdown-submenu`,children:va({filters:re.children,prefixCls:u,filteredKeys:y,filterMultiple:N,searchValue:O,filterSearch:oe})};const Oe=N?Tr.default:Lo.ZP,we={key:re.value!==void 0?ge:ee,label:n.createElement(n.Fragment,null,n.createElement(Oe,{checked:y.includes(ge)}),n.createElement("span",null,re.text))};return O.trim()?typeof oe=="function"?oe(O,re)?we:null:ma(O,re.text)?we:null:we})}function _a(r){var o,u;const{tablePrefixCls:y,prefixCls:N,column:O,dropdownPrefixCls:oe,columnKey:re,filterMultiple:ee,filterMode:ge="menu",filterSearch:Oe=!1,filterState:we,triggerFilter:ze,locale:We,children:Ve,getPopupContainer:xt}=r,{filterDropdownOpen:mt,onFilterDropdownOpenChange:bt,filterResetToDefaultFilteredValue:gt,defaultFilteredValue:_t,filterDropdownVisible:Gt,onFilterDropdownVisibleChange:cn}=O,[Vt,bn]=n.useState(!1),Nn=!!(we&&(!((o=we.filteredKeys)===null||o===void 0)&&o.length||we.forceFiltered)),Rt=Qt=>{bn(Qt),bt==null||bt(Qt),cn==null||cn(Qt)},Jt=(u=mt!=null?mt:Gt)!==null&&u!==void 0?u:Vt,Mt=we==null?void 0:we.filteredKeys,[It,Ut]=Wt(Mt||[]),hn=Qt=>{let{selectedKeys:On}=Qt;Ut(On)},Fn=(Qt,On)=>{let{node:tr,checked:Xn}=On;hn(ee?{selectedKeys:Qt}:{selectedKeys:Xn&&tr.key?[tr.key]:[]})};n.useEffect(()=>{Vt&&hn({selectedKeys:Mt||[]})},[Mt]);const[_n,un]=n.useState([]),jn=Qt=>{un(Qt)},[Wn,Cr]=n.useState(""),nr=Qt=>{const{value:On}=Qt.target;Cr(On)};n.useEffect(()=>{Vt||Cr("")},[Vt]);const Ar=Qt=>{const On=Qt&&Qt.length?Qt:null;if(On===null&&(!we||!we.filteredKeys)||(0,p.Z)(On,we==null?void 0:we.filteredKeys,!0))return null;ze({column:O,key:re,filteredKeys:On})},Nr=()=>{Rt(!1),Ar(It())},Tn=function(){let{confirm:Qt,closeDropdown:On}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Qt&&Ar([]),On&&Rt(!1),Cr(""),Ut(gt?(_t||[]).map(tr=>String(tr)):[])},Wr=function(){let{closeDropdown:Qt}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Qt&&Rt(!1),Ar(It())},or=Qt=>{Qt&&Mt!==void 0&&Ut(Mt||[]),Rt(Qt),!Qt&&!O.filterDropdown&&Nr()},Vn=ce()({[`${oe}-menu-without-submenu`]:!Da(O.filters||[])}),Sr=Qt=>{if(Qt.target.checked){const On=$o(O==null?void 0:O.filters).map(tr=>String(tr));Ut(On)}else Ut([])},Qr=Qt=>{let{filters:On}=Qt;return(On||[]).map((tr,Xn)=>{const c=String(tr.value),he={title:tr.text,key:tr.value!==void 0?c:Xn};return tr.children&&(he.children=Qr({filters:tr.children})),he})},pn=Qt=>{var On;return Object.assign(Object.assign({},Qt),{text:Qt.title,value:Qt.key,children:((On=Qt.children)===null||On===void 0?void 0:On.map(tr=>pn(tr)))||[]})};let fn;if(typeof O.filterDropdown=="function")fn=O.filterDropdown({prefixCls:`${oe}-custom`,setSelectedKeys:Qt=>hn({selectedKeys:Qt}),selectedKeys:It(),confirm:Wr,clearFilters:Tn,filters:O.filters,visible:Jt,close:()=>{Rt(!1)}});else if(O.filterDropdown)fn=O.filterDropdown;else{const Qt=It()||[],On=()=>(O.filters||[]).length===0?n.createElement(to.Z,{image:to.Z.PRESENTED_IMAGE_SIMPLE,description:We.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):ge==="tree"?n.createElement(n.Fragment,null,n.createElement(da,{filterSearch:Oe,value:Wn,onChange:nr,tablePrefixCls:y,locale:We}),n.createElement("div",{className:`${y}-filter-dropdown-tree`},ee?n.createElement(Tr.default,{checked:Qt.length===$o(O.filters).length,indeterminate:Qt.length>0&&Qt.length<$o(O.filters).length,className:`${y}-filter-dropdown-checkall`,onChange:Sr},We.filterCheckall):null,n.createElement(Uo.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:ee,checkStrictly:!ee,className:`${oe}-menu`,onCheck:Fn,checkedKeys:Qt,selectedKeys:Qt,showIcon:!1,treeData:Qr({filters:O.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Wn.trim()?Xn=>typeof Oe=="function"?Oe(Wn,pn(Xn)):ma(Wn,Xn.title):void 0}))):n.createElement(n.Fragment,null,n.createElement(da,{filterSearch:Oe,value:Wn,onChange:nr,tablePrefixCls:y,locale:We}),n.createElement(no.default,{selectable:!0,multiple:ee,prefixCls:`${oe}-menu`,className:Vn,onSelect:hn,onDeselect:hn,selectedKeys:Qt,getPopupContainer:xt,openKeys:_n,onOpenChange:jn,items:va({filters:O.filters||[],filterSearch:Oe,prefixCls:N,filteredKeys:It(),filterMultiple:ee,searchValue:Wn})})),tr=()=>gt?(0,p.Z)((_t||[]).map(Xn=>String(Xn)),Qt,!0):Qt.length===0;fn=n.createElement(n.Fragment,null,On(),n.createElement("div",{className:`${N}-dropdown-btns`},n.createElement(dr.ZP,{type:"link",size:"small",disabled:tr(),onClick:()=>Tn()},We.filterReset),n.createElement(dr.ZP,{type:"primary",size:"small",onClick:Nr},We.filterConfirm)))}O.filterDropdown&&(fn=n.createElement(yo.J,{selectable:void 0},fn));const dn=()=>n.createElement(Oa,{className:`${N}-dropdown`},fn);let on;typeof O.filterIcon=="function"?on=O.filterIcon(Nn):O.filterIcon?on=O.filterIcon:on=n.createElement(mr,null);const{direction:rr}=n.useContext(st.E_);return n.createElement("div",{className:`${N}-column`},n.createElement("span",{className:`${y}-column-title`},Ve),n.createElement(Hr.Z,{dropdownRender:dn,trigger:["click"],open:Jt,onOpenChange:or,getPopupContainer:xt,placement:rr==="rtl"?"bottomLeft":"bottomRight"},n.createElement("span",{role:"button",tabIndex:-1,className:ce()(`${N}-trigger`,{active:Nn}),onClick:Qt=>{Qt.stopPropagation()}},on)))}var Ba=_a;function Vo(r,o,u){let y=[];return(r||[]).forEach((N,O)=>{var oe;const re=zr(O,u);if(N.filters||"filterDropdown"in N||"onFilter"in N)if("filteredValue"in N){let ee=N.filteredValue;"filterDropdown"in N||(ee=(oe=ee==null?void 0:ee.map(String))!==null&&oe!==void 0?oe:ee),y.push({column:N,key:Jn(N,re),filteredKeys:ee,forceFiltered:N.filtered})}else y.push({column:N,key:Jn(N,re),filteredKeys:o&&N.defaultFilteredValue?N.defaultFilteredValue:void 0,forceFiltered:N.filtered});"children"in N&&(y=[].concat((0,$t.Z)(y),(0,$t.Z)(Vo(N.children,o,re))))}),y}function pa(r,o,u,y,N,O,oe,re){return u.map((ee,ge)=>{const Oe=zr(ge,re),{filterMultiple:we=!0,filterMode:ze,filterSearch:We}=ee;let Ve=ee;if(Ve.filters||Ve.filterDropdown){const xt=Jn(Ve,Oe),mt=y.find(bt=>{let{key:gt}=bt;return xt===gt});Ve=Object.assign(Object.assign({},Ve),{title:bt=>n.createElement(Ba,{tablePrefixCls:r,prefixCls:`${r}-filter`,dropdownPrefixCls:o,column:Ve,columnKey:xt,filterState:mt,filterMultiple:we,filterMode:ze,filterSearch:We,triggerFilter:O,locale:N,getPopupContainer:oe},eo(ee.title,bt))})}return"children"in Ve&&(Ve=Object.assign(Object.assign({},Ve),{children:pa(r,o,Ve.children,y,N,O,oe,Oe)})),Ve})}function ga(r){const o={};return r.forEach(u=>{let{key:y,filteredKeys:N,column:O}=u;const{filters:oe,filterDropdown:re}=O;if(re)o[y]=N||null;else if(Array.isArray(N)){const ee=$o(oe);o[y]=ee.filter(ge=>N.includes(String(ge)))}else o[y]=null}),o}function Ta(r,o){return o.reduce((u,y)=>{const{column:{onFilter:N,filters:O},filteredKeys:oe}=y;return N&&oe&&oe.length?u.filter(re=>oe.some(ee=>{const ge=$o(O),Oe=ge.findIndex(ze=>String(ze)===String(ee)),we=Oe!==-1?ge[Oe]:ee;return N(we,re)})):u},r)}const Po=r=>r.flatMap(o=>"children"in o?[o].concat((0,$t.Z)(Po(o.children||[]))):[o]);function rn(r){let{prefixCls:o,dropdownPrefixCls:u,mergedColumns:y,onFilterChange:N,getPopupContainer:O,locale:oe}=r;const re=n.useMemo(()=>Po(y||[]),[y]),[ee,ge]=n.useState(()=>Vo(re,!0)),Oe=n.useMemo(()=>{const Ve=Vo(re,!1);if(Ve.length===0)return Ve;let xt=!0,mt=!0;if(Ve.forEach(bt=>{let{filteredKeys:gt}=bt;gt!==void 0?xt=!1:mt=!1}),xt){const bt=(re||[]).map((gt,_t)=>Jn(gt,zr(_t)));return ee.filter(gt=>{let{key:_t}=gt;return bt.includes(_t)}).map(gt=>{const _t=re[bt.findIndex(Gt=>Gt===gt.key)];return Object.assign(Object.assign({},gt),{column:Object.assign(Object.assign({},gt.column),_t),forceFiltered:_t.filtered})})}return Ve},[re,ee]),we=n.useMemo(()=>ga(Oe),[Oe]),ze=Ve=>{const xt=Oe.filter(mt=>{let{key:bt}=mt;return bt!==Ve.key});xt.push(Ve),ge(xt),N(ga(xt),xt)};return[Ve=>pa(o,u,Ve,Oe,oe,ze,O),Oe,we]}var G=rn;function go(r,o,u){const y=n.useRef({});function N(O){if(!y.current||y.current.data!==r||y.current.childrenColumnName!==o||y.current.getRowKey!==u){let re=function(ee){ee.forEach((ge,Oe)=>{const we=u(ge,Oe);oe.set(we,ge),ge&&typeof ge=="object"&&o in ge&&re(ge[o]||[])})};const oe=new Map;re(r),y.current={data:r,childrenColumnName:o,kvMap:oe,getRowKey:u}}return y.current.kvMap.get(O)}return[N]}var Ct=e(50371),el=function(r,o){var u={};for(var y in r)Object.prototype.hasOwnProperty.call(r,y)&&o.indexOf(y)<0&&(u[y]=r[y]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,y=Object.getOwnPropertySymbols(r);N<y.length;N++)o.indexOf(y[N])<0&&Object.prototype.propertyIsEnumerable.call(r,y[N])&&(u[y[N]]=r[y[N]]);return u};const Io=10;function tl(r,o){const u={current:r.current,pageSize:r.pageSize};return Object.keys(o&&typeof o=="object"?o:{}).forEach(N=>{const O=r[N];typeof O!="function"&&(u[N]=O)}),u}function nl(r,o,u){const y=u&&typeof u=="object"?u:{},{total:N=0}=y,O=el(y,["total"]),[oe,re]=(0,n.useState)(()=>({current:"defaultCurrent"in O?O.defaultCurrent:1,pageSize:"defaultPageSize"in O?O.defaultPageSize:Io})),ee=(0,Ct.Z)(oe,O,{total:N>0?N:r}),ge=Math.ceil((N||r)/ee.pageSize);ee.current>ge&&(ee.current=ge||1);const Oe=(ze,We)=>{re({current:ze!=null?ze:1,pageSize:We||ee.pageSize})},we=(ze,We)=>{var Ve;u&&((Ve=u.onChange)===null||Ve===void 0||Ve.call(u,ze,We)),Oe(ze,We),o(ze,We||(ee==null?void 0:ee.pageSize))};return u===!1?[{},()=>{}]:[Object.assign(Object.assign({},ee),{onChange:we}),Oe]}var No=nl,Oo=e(84105),Ra=e(35654),ha=e(90782),Ma=e(71430),ya=e(18929);const fo={},xa="SELECT_ALL",Do="SELECT_INVERT",Ca="SELECT_NONE",ba=[],Fa=(r,o)=>{let u=[];return(o||[]).forEach(y=>{u.push(y),y&&typeof y=="object"&&r in y&&(u=[].concat((0,$t.Z)(u),(0,$t.Z)(Fa(r,y[r]))))}),u};var ol=(r,o)=>{const{preserveSelectedRowKeys:u,selectedRowKeys:y,defaultSelectedRowKeys:N,getCheckboxProps:O,onChange:oe,onSelect:re,onSelectAll:ee,onSelectInvert:ge,onSelectNone:Oe,onSelectMultiple:we,columnWidth:ze,type:We,selections:Ve,fixed:xt,renderCell:mt,hideSelectAll:bt,checkStrictly:gt=!0}=o||{},{prefixCls:_t,data:Gt,pageData:cn,getRecordByKey:Vt,getRowKey:bn,expandType:Nn,childrenColumnName:Rt,locale:Jt,getPopupContainer:Mt}=r,[It,Ut]=(0,ya.Z)(y||N||ba,{value:y}),hn=n.useRef(new Map),Fn=(0,n.useCallback)(pn=>{if(u){const fn=new Map;pn.forEach(dn=>{let on=Vt(dn);!on&&hn.current.has(dn)&&(on=hn.current.get(dn)),fn.set(dn,on)}),hn.current=fn}},[Vt,u]);n.useEffect(()=>{Fn(It)},[It]);const{keyEntities:_n}=(0,n.useMemo)(()=>{if(gt)return{keyEntities:null};let pn=Gt;if(u){const fn=new Set(Gt.map((on,rr)=>bn(on,rr))),dn=Array.from(hn.current).reduce((on,rr)=>{let[Qt,On]=rr;return fn.has(Qt)?on:on.concat(On)},[]);pn=[].concat((0,$t.Z)(pn),(0,$t.Z)(dn))}return(0,Ma.I8)(pn,{externalGetKey:bn,childrenPropName:Rt})},[Gt,bn,gt,Rt,u]),un=(0,n.useMemo)(()=>Fa(Rt,cn),[Rt,cn]),jn=(0,n.useMemo)(()=>{const pn=new Map;return un.forEach((fn,dn)=>{const on=bn(fn,dn),rr=(O?O(fn):null)||{};pn.set(on,rr)}),pn},[un,bn,O]),Wn=(0,n.useCallback)(pn=>{var fn;return!!(!((fn=jn.get(bn(pn)))===null||fn===void 0)&&fn.disabled)},[jn,bn]),[Cr,nr]=(0,n.useMemo)(()=>{if(gt)return[It||[],[]];const{checkedKeys:pn,halfCheckedKeys:fn}=(0,ha.S)(It,!0,_n,Wn);return[pn||[],fn]},[It,gt,_n,Wn]),Ar=(0,n.useMemo)(()=>{const pn=We==="radio"?Cr.slice(0,1):Cr;return new Set(pn)},[Cr,We]),Nr=(0,n.useMemo)(()=>We==="radio"?new Set:new Set(nr),[nr,We]),[Tn,Wr]=(0,n.useState)(null);n.useEffect(()=>{o||Ut(ba)},[!!o]);const or=(0,n.useCallback)((pn,fn)=>{let dn,on;Fn(pn),u?(dn=pn,on=pn.map(rr=>hn.current.get(rr))):(dn=[],on=[],pn.forEach(rr=>{const Qt=Vt(rr);Qt!==void 0&&(dn.push(rr),on.push(Qt))})),Ut(dn),oe==null||oe(dn,on,{type:fn})},[Ut,Vt,oe,u]),Vn=(0,n.useCallback)((pn,fn,dn,on)=>{if(re){const rr=dn.map(Qt=>Vt(Qt));re(Vt(pn),fn,rr,on)}or(dn,"single")},[re,Vt,or]),Sr=(0,n.useMemo)(()=>!Ve||bt?null:(Ve===!0?[xa,Do,Ca]:Ve).map(fn=>fn===xa?{key:"all",text:Jt.selectionAll,onSelect(){or(Gt.map((dn,on)=>bn(dn,on)).filter(dn=>{const on=jn.get(dn);return!(on!=null&&on.disabled)||Ar.has(dn)}),"all")}}:fn===Do?{key:"invert",text:Jt.selectInvert,onSelect(){const dn=new Set(Ar);cn.forEach((rr,Qt)=>{const On=bn(rr,Qt),tr=jn.get(On);tr!=null&&tr.disabled||(dn.has(On)?dn.delete(On):dn.add(On))});const on=Array.from(dn);ge&&ge(on),or(on,"invert")}}:fn===Ca?{key:"none",text:Jt.selectNone,onSelect(){Oe==null||Oe(),or(Array.from(Ar).filter(dn=>{const on=jn.get(dn);return on==null?void 0:on.disabled}),"none")}}:fn).map(fn=>Object.assign(Object.assign({},fn),{onSelect:function(){for(var dn,on,rr=arguments.length,Qt=new Array(rr),On=0;On<rr;On++)Qt[On]=arguments[On];(on=fn.onSelect)===null||on===void 0||(dn=on).call.apply(dn,[fn].concat(Qt)),Wr(null)}})),[Ve,Ar,cn,bn,ge,or]);return[(0,n.useCallback)(pn=>{var fn;if(!o)return pn.filter(pt=>pt!==fo);let dn=(0,$t.Z)(pn);const on=new Set(Ar),rr=un.map(bn).filter(pt=>!jn.get(pt).disabled),Qt=rr.every(pt=>on.has(pt)),On=rr.some(pt=>on.has(pt)),tr=()=>{const pt=[];Qt?rr.forEach(Ft=>{on.delete(Ft),pt.push(Ft)}):rr.forEach(Ft=>{on.has(Ft)||(on.add(Ft),pt.push(Ft))});const it=Array.from(on);ee==null||ee(!Qt,it.map(Ft=>Vt(Ft)),pt.map(Ft=>Vt(Ft))),or(it,"all"),Wr(null)};let Xn;if(We!=="radio"){let pt;if(Sr){const Et={getPopupContainer:Mt,items:Sr.map((gr,jt)=>{const{key:Dn,text:Or,onSelect:Mr}=gr;return{key:Dn!=null?Dn:jt,onClick:()=>{Mr==null||Mr(rr)},label:Or}})};pt=n.createElement("div",{className:`${_t}-selection-extra`},n.createElement(Hr.Z,{menu:Et,getPopupContainer:Mt},n.createElement("span",null,n.createElement(Oo.Z,null))))}const it=un.map((Et,gr)=>{const jt=bn(Et,gr),Dn=jn.get(jt)||{};return Object.assign({checked:on.has(jt)},Dn)}).filter(Et=>{let{disabled:gr}=Et;return gr}),Ft=!!it.length&&it.length===un.length,nt=Ft&&it.every(Et=>{let{checked:gr}=Et;return gr}),dt=Ft&&it.some(Et=>{let{checked:gr}=Et;return gr});Xn=!bt&&n.createElement("div",{className:`${_t}-selection`},n.createElement(Tr.default,{checked:Ft?nt:!!un.length&&Qt,indeterminate:Ft?!nt&&dt:!Qt&&On,onChange:tr,disabled:un.length===0||Ft,"aria-label":pt?"Custom selection":"Select all",skipGroup:!0}),pt)}let c;We==="radio"?c=(pt,it,Ft)=>{const nt=bn(it,Ft),dt=on.has(nt);return{node:n.createElement(Lo.ZP,Object.assign({},jn.get(nt),{checked:dt,onClick:Et=>Et.stopPropagation(),onChange:Et=>{on.has(nt)||Vn(nt,!0,[nt],Et.nativeEvent)}})),checked:dt}}:c=(pt,it,Ft)=>{var nt;const dt=bn(it,Ft),Et=on.has(dt),gr=Nr.has(dt),jt=jn.get(dt);let Dn;return Nn==="nest"?Dn=gr:Dn=(nt=jt==null?void 0:jt.indeterminate)!==null&&nt!==void 0?nt:gr,{node:n.createElement(Tr.default,Object.assign({},jt,{indeterminate:Dn,checked:Et,skipGroup:!0,onClick:Or=>Or.stopPropagation(),onChange:Or=>{let{nativeEvent:Mr}=Or;const{shiftKey:Fo}=Mr;let xo=-1,Lt=-1;if(Fo&>){const qr=new Set([Tn,dt]);rr.some((Vr,yr)=>{if(qr.has(Vr))if(xo===-1)xo=yr;else return Lt=yr,!0;return!1})}if(Lt!==-1&&xo!==Lt&>){const qr=rr.slice(xo,Lt+1),Vr=[];Et?qr.forEach(wr=>{on.has(wr)&&(Vr.push(wr),on.delete(wr))}):qr.forEach(wr=>{on.has(wr)||(Vr.push(wr),on.add(wr))});const yr=Array.from(on);we==null||we(!Et,yr.map(wr=>Vt(wr)),Vr.map(wr=>Vt(wr))),or(yr,"multiple")}else{const qr=Cr;if(gt){const Vr=Et?(0,Ra._5)(qr,dt):(0,Ra.L0)(qr,dt);Vn(dt,!Et,Vr,Mr)}else{const Vr=(0,ha.S)([].concat((0,$t.Z)(qr),[dt]),!0,_n,Wn),{checkedKeys:yr,halfCheckedKeys:wr}=Vr;let lo=yr;if(Et){const co=new Set(yr);co.delete(dt),lo=(0,ha.S)(Array.from(co),{checked:!1,halfCheckedKeys:wr},_n,Wn).checkedKeys}Vn(dt,!Et,lo,Mr)}}Wr(Et?null:dt)}})),checked:Et}};const he=(pt,it,Ft)=>{const{node:nt,checked:dt}=c(pt,it,Ft);return mt?mt(dt,it,Ft,nt):nt};if(!dn.includes(fo))if(dn.findIndex(pt=>{var it;return((it=pt[Bt])===null||it===void 0?void 0:it.columnType)==="EXPAND_COLUMN"})===0){const[pt,...it]=dn;dn=[pt,fo].concat((0,$t.Z)(it))}else dn=[fo].concat((0,$t.Z)(dn));const tt=dn.indexOf(fo);dn=dn.filter((pt,it)=>pt!==fo||it===tt);const ot=dn[tt-1],qe=dn[tt+1];let et=xt;et===void 0&&((qe==null?void 0:qe.fixed)!==void 0?et=qe.fixed:(ot==null?void 0:ot.fixed)!==void 0&&(et=ot.fixed)),et&&ot&&((fn=ot[Bt])===null||fn===void 0?void 0:fn.columnType)==="EXPAND_COLUMN"&&ot.fixed===void 0&&(ot.fixed=et);const ct=ce()(`${_t}-selection-col`,{[`${_t}-selection-col-with-dropdown`]:Ve&&We==="checkbox"}),Tt={fixed:et,width:ze,className:`${_t}-selection-column`,title:o.columnTitle||Xn,render:he,onCell:o.onCell,[Bt]:{className:ct}};return dn.map(pt=>pt===fo?Tt:pt)},[bn,un,o,Cr,Ar,Nr,ze,Sr,Nn,Tn,jn,we,Vn,Wn]),Ar]},Xo=e(89489),al=e(59477),Ea=e(6848);const Go="ascend",Sa="descend";function So(r){return typeof r.sorter=="object"&&typeof r.sorter.multiple=="number"?r.sorter.multiple:!1}function Yo(r){return typeof r=="function"?r:r&&typeof r=="object"&&r.compare?r.compare:!1}function ll(r,o){return o?r[r.indexOf(o)+1]:r[0]}function wa(r,o,u){let y=[];function N(O,oe){y.push({column:O,key:Jn(O,oe),multiplePriority:So(O),sortOrder:O.sortOrder})}return(r||[]).forEach((O,oe)=>{const re=zr(oe,u);O.children?("sortOrder"in O&&N(O,re),y=[].concat((0,$t.Z)(y),(0,$t.Z)(wa(O.children,o,re)))):O.sorter&&("sortOrder"in O?N(O,re):o&&O.defaultSortOrder&&y.push({column:O,key:Jn(O,re),multiplePriority:So(O),sortOrder:O.defaultSortOrder}))}),y}function _o(r,o,u,y,N,O,oe,re){return(o||[]).map((ee,ge)=>{const Oe=zr(ge,re);let we=ee;if(we.sorter){const ze=we.sortDirections||N,We=we.showSorterTooltip===void 0?oe:we.showSorterTooltip,Ve=Jn(we,Oe),xt=u.find(Nn=>{let{key:Rt}=Nn;return Rt===Ve}),mt=xt?xt.sortOrder:null,bt=ll(ze,mt);let gt;if(ee.sortIcon)gt=ee.sortIcon({sortOrder:mt});else{const Nn=ze.includes(Go)&&n.createElement(al.Z,{className:ce()(`${r}-column-sorter-up`,{active:mt===Go})}),Rt=ze.includes(Sa)&&n.createElement(Xo.Z,{className:ce()(`${r}-column-sorter-down`,{active:mt===Sa})});gt=n.createElement("span",{className:ce()(`${r}-column-sorter`,{[`${r}-column-sorter-full`]:!!(Nn&&Rt)})},n.createElement("span",{className:`${r}-column-sorter-inner`,"aria-hidden":"true"},Nn,Rt))}const{cancelSort:_t,triggerAsc:Gt,triggerDesc:cn}=O||{};let Vt=_t;bt===Sa?Vt=cn:bt===Go&&(Vt=Gt);const bn=typeof We=="object"?We:{title:Vt};we=Object.assign(Object.assign({},we),{className:ce()(we.className,{[`${r}-column-sort`]:mt}),title:Nn=>{const Rt=n.createElement("div",{className:`${r}-column-sorters`},n.createElement("span",{className:`${r}-column-title`},eo(ee.title,Nn)),gt);return We?n.createElement(Ea.Z,Object.assign({},bn),Rt):Rt},onHeaderCell:Nn=>{const Rt=ee.onHeaderCell&&ee.onHeaderCell(Nn)||{},Jt=Rt.onClick,Mt=Rt.onKeyDown;Rt.onClick=hn=>{y({column:ee,key:Ve,sortOrder:bt,multiplePriority:So(ee)}),Jt==null||Jt(hn)},Rt.onKeyDown=hn=>{hn.keyCode===fa.Z.ENTER&&(y({column:ee,key:Ve,sortOrder:bt,multiplePriority:So(ee)}),Mt==null||Mt(hn))};const It=ao(ee.title,{}),Ut=It==null?void 0:It.toString();return mt?Rt["aria-sort"]=mt==="ascend"?"ascending":"descending":Rt["aria-label"]=Ut||"",Rt.className=ce()(Rt.className,`${r}-column-has-sorters`),Rt.tabIndex=0,ee.ellipsis&&(Rt.title=(It!=null?It:"").toString()),Rt}})}return"children"in we&&(we=Object.assign(Object.assign({},we),{children:_o(r,we.children,u,y,N,O,oe,Oe)})),we})}function il(r){const{column:o,sortOrder:u}=r;return{column:o,order:u,field:o.dataIndex,columnKey:o.key}}function Aa(r){const o=r.filter(u=>{let{sortOrder:y}=u;return y}).map(il);return o.length===0&&r.length?Object.assign(Object.assign({},il(r[r.length-1])),{column:void 0}):o.length<=1?o[0]||{}:o}function Jo(r,o,u){const y=o.slice().sort((oe,re)=>re.multiplePriority-oe.multiplePriority),N=r.slice(),O=y.filter(oe=>{let{column:{sorter:re},sortOrder:ee}=oe;return Yo(re)&&ee});return O.length?N.sort((oe,re)=>{for(let ee=0;ee<O.length;ee+=1){const ge=O[ee],{column:{sorter:Oe},sortOrder:we}=ge,ze=Yo(Oe);if(ze&&we){const We=ze(oe,re,we);if(We!==0)return we===Go?We:-We}}return 0}).map(oe=>{const re=oe[u];return re?Object.assign(Object.assign({},oe),{[u]:Jo(re,o,u)}):oe}):N}function Ko(r){let{prefixCls:o,mergedColumns:u,onSorterChange:y,sortDirections:N,tableLocale:O,showSorterTooltip:oe}=r;const[re,ee]=n.useState(wa(u,!0)),ge=n.useMemo(()=>{let Ve=!0;const xt=wa(u,!1);if(!xt.length)return re;const mt=[];function bt(_t){Ve?mt.push(_t):mt.push(Object.assign(Object.assign({},_t),{sortOrder:null}))}let gt=null;return xt.forEach(_t=>{gt===null?(bt(_t),_t.sortOrder&&(_t.multiplePriority===!1?Ve=!1:gt=!0)):(gt&&_t.multiplePriority!==!1||(Ve=!1),bt(_t))}),mt},[u,re]),Oe=n.useMemo(()=>{const Ve=ge.map(xt=>{let{column:mt,sortOrder:bt}=xt;return{column:mt,order:bt}});return{sortColumns:Ve,sortColumn:Ve[0]&&Ve[0].column,sortOrder:Ve[0]&&Ve[0].order}},[ge]);function we(Ve){let xt;Ve.multiplePriority===!1||!ge.length||ge[0].multiplePriority===!1?xt=[Ve]:xt=[].concat((0,$t.Z)(ge.filter(mt=>{let{key:bt}=mt;return bt!==Ve.key})),[Ve]),ee(xt),y(Aa(xt),xt)}return[Ve=>_o(o,Ve,ge,we,N,O,oe),ge,Oe,()=>Aa(ge)]}function Bo(r,o){return r.map(u=>{const y=Object.assign({},u);return y.title=eo(u.title,o),"children"in y&&(y.children=Bo(y.children,o)),y})}function Qo(r){return[n.useCallback(u=>Bo(u,r),[r])]}var qo=hr((r,o)=>{const{_renderTimes:u}=r,{_renderTimes:y}=o;return u!==y}),sl=Zt((r,o)=>{const{_renderTimes:u}=r,{_renderTimes:y}=o;return u!==y}),Mo=e(64993),ea=e(17313),cl=e(83116),ul=e(37613),dl=r=>{const{componentCls:o}=r,u=`${r.lineWidth}px ${r.lineType} ${r.tableBorderColor}`,y=(N,O,oe)=>({[`&${o}-${N}`]:{[`> ${o}-container`]:{[`> ${o}-content, > ${o}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${o}-expanded-row-fixed`]:{margin:`-${O}px -${oe+r.lineWidth}px`}}}}}});return{[`${o}-wrapper`]:{[`${o}${o}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${o}-title`]:{border:u,borderBottom:0},[`> ${o}-container`]:{borderInlineStart:u,borderTop:u,[`
|
|
> ${o}-content,
|
|
> ${o}-header,
|
|
> ${o}-body,
|
|
> ${o}-summary
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${o}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${o}-expanded-row-fixed`]:{margin:`-${r.tablePaddingVertical}px -${r.tablePaddingHorizontal+r.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:r.lineWidth,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${o}-scroll-horizontal`]:{[`> ${o}-container > ${o}-body`]:{"> table > tbody":{[`
|
|
> tr${o}-expanded-row,
|
|
> tr${o}-placeholder
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},y("middle",r.tablePaddingVerticalMiddle,r.tablePaddingHorizontalMiddle)),y("small",r.tablePaddingVerticalSmall,r.tablePaddingHorizontalSmall)),{[`> ${o}-footer`]:{border:u,borderTop:0}}),[`${o}-cell`]:{[`${o}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${r.lineWidth}px 0 ${r.lineWidth}px ${r.tableHeaderBg}`}},[`${o}-bordered ${o}-cell-scrollbar`]:{borderInlineEnd:u}}}},fl=r=>{const{componentCls:o}=r;return{[`${o}-wrapper`]:{[`${o}-cell-ellipsis`]:Object.assign(Object.assign({},ea.vS),{wordBreak:"keep-all",[`
|
|
&${o}-cell-fix-left-last,
|
|
&${o}-cell-fix-right-first
|
|
`]:{overflow:"visible",[`${o}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${o}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},ka=r=>{const{componentCls:o}=r;return{[`${o}-wrapper`]:{[`${o}-tbody > tr${o}-placeholder`]:{textAlign:"center",color:r.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:r.colorBgContainer}}}}},ja=e(15969),na=r=>{const{componentCls:o,antCls:u,controlInteractiveSize:y,motionDurationSlow:N,lineWidth:O,paddingXS:oe,lineType:re,tableBorderColor:ee,tableExpandIconBg:ge,tableExpandColumnWidth:Oe,borderRadius:we,fontSize:ze,fontSizeSM:We,lineHeight:Ve,tablePaddingVertical:xt,tablePaddingHorizontal:mt,tableExpandedRowBg:bt,paddingXXS:gt}=r,_t=y/2-O,Gt=_t*2+O*3,cn=`${O}px ${re} ${ee}`,Vt=gt-O;return{[`${o}-wrapper`]:{[`${o}-expand-icon-col`]:{width:Oe},[`${o}-row-expand-icon-cell`]:{textAlign:"center",[`${o}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${o}-row-indent`]:{height:1,float:"left"},[`${o}-row-expand-icon`]:Object.assign(Object.assign({},(0,ja.N)(r)),{position:"relative",float:"left",boxSizing:"border-box",width:Gt,height:Gt,padding:0,color:"inherit",lineHeight:`${Gt}px`,background:ge,border:cn,borderRadius:we,transform:`scale(${y/Gt})`,transition:`all ${N}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${N} ease-out`,content:'""'},"&::before":{top:_t,insetInlineEnd:Vt,insetInlineStart:Vt,height:O},"&::after":{top:Vt,bottom:Vt,insetInlineStart:_t,width:O,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${o}-row-indent + ${o}-row-expand-icon`]:{marginTop:(ze*Ve-O*3)/2-Math.ceil((We*1.4-O*3)/2),marginInlineEnd:oe},[`tr${o}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:bt}},[`${u}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${o}-expanded-row-fixed`]:{position:"relative",margin:`-${xt}px -${mt}px`,padding:`${xt}px ${mt}px`}}}},ra=r=>{const{componentCls:o,antCls:u,iconCls:y,tableFilterDropdownWidth:N,tableFilterDropdownSearchWidth:O,paddingXXS:oe,paddingXS:re,colorText:ee,lineWidth:ge,lineType:Oe,tableBorderColor:we,tableHeaderIconColor:ze,fontSizeSM:We,tablePaddingHorizontal:Ve,borderRadius:xt,motionDurationSlow:mt,colorTextDescription:bt,colorPrimary:gt,tableHeaderFilterActiveBg:_t,colorTextDisabled:Gt,tableFilterDropdownBg:cn,tableFilterDropdownHeight:Vt,controlItemBgHover:bn,controlItemBgActive:Nn,boxShadowSecondary:Rt,filterDropdownMenuBg:Jt}=r,Mt=`${u}-dropdown`,It=`${o}-filter-dropdown`,Ut=`${u}-tree`,hn=`${ge}px ${Oe} ${we}`;return[{[`${o}-wrapper`]:{[`${o}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${o}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-oe,marginInline:`${oe}px ${-Ve/2}px`,padding:`0 ${oe}px`,color:ze,fontSize:We,borderRadius:xt,cursor:"pointer",transition:`all ${mt}`,"&:hover":{color:bt,background:_t},"&.active":{color:gt}}}},{[`${u}-dropdown`]:{[It]:Object.assign(Object.assign({},(0,ea.Wf)(r)),{minWidth:N,backgroundColor:cn,borderRadius:xt,boxShadow:Rt,overflow:"hidden",[`${Mt}-menu`]:{maxHeight:Vt,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Jt,"&:empty::after":{display:"block",padding:`${re}px 0`,color:Gt,fontSize:We,textAlign:"center",content:'"Not Found"'}},[`${It}-tree`]:{paddingBlock:`${re}px 0`,paddingInline:re,[Ut]:{padding:0},[`${Ut}-treenode ${Ut}-node-content-wrapper:hover`]:{backgroundColor:bn},[`${Ut}-treenode-checkbox-checked ${Ut}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Nn}}},[`${It}-search`]:{padding:re,borderBottom:hn,"&-input":{input:{minWidth:O},[y]:{color:Gt}}},[`${It}-checkall`]:{width:"100%",marginBottom:oe,marginInlineStart:oe},[`${It}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${re-ge}px ${re}px`,overflow:"hidden",borderTop:hn}})}},{[`${u}-dropdown ${It}, ${It}-submenu`]:{[`${u}-checkbox-wrapper + span`]:{paddingInlineStart:re,color:ee},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},oa=r=>{const{componentCls:o,lineWidth:u,colorSplit:y,motionDurationSlow:N,zIndexTableFixed:O,tableBg:oe,zIndexTableSticky:re}=r,ee=y;return{[`${o}-wrapper`]:{[`
|
|
${o}-cell-fix-left,
|
|
${o}-cell-fix-right
|
|
`]:{position:"sticky !important",zIndex:O,background:oe},[`
|
|
${o}-cell-fix-left-first::after,
|
|
${o}-cell-fix-left-last::after
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-u,width:30,transform:"translateX(100%)",transition:`box-shadow ${N}`,content:'""',pointerEvents:"none"},[`${o}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
${o}-cell-fix-right-first::after,
|
|
${o}-cell-fix-right-last::after
|
|
`]:{position:"absolute",top:0,bottom:-u,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${N}`,content:'""',pointerEvents:"none"},[`${o}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:re+1,width:30,transition:`box-shadow ${N}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${o}-ping-left`]:{[`&:not(${o}-has-fix-left) ${o}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${ee}`}},[`
|
|
${o}-cell-fix-left-first::after,
|
|
${o}-cell-fix-left-last::after
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${ee}`},[`${o}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${o}-ping-right`]:{[`&:not(${o}-has-fix-right) ${o}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${ee}`}},[`
|
|
${o}-cell-fix-right-first::after,
|
|
${o}-cell-fix-right-last::after
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${ee}`}}}}},sr=r=>{const{componentCls:o,antCls:u}=r;return{[`${o}-wrapper`]:{[`${o}-pagination${u}-pagination`]:{margin:`${r.margin}px 0`},[`${o}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:r.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},vr=r=>{const{componentCls:o,tableRadius:u}=r;return{[`${o}-wrapper`]:{[o]:{[`${o}-title, ${o}-header`]:{borderRadius:`${u}px ${u}px 0 0`},[`${o}-title + ${o}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${o}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:u,borderStartEndRadius:u,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:u},"> *:last-child":{borderStartEndRadius:u}}},"&-footer":{borderRadius:`0 0 ${u}px ${u}px`}}}}},vl=r=>{const{componentCls:o}=r;return{[`${o}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${o}-pagination-left`]:{justifyContent:"flex-end"},[`${o}-pagination-right`]:{justifyContent:"flex-start"},[`${o}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${o}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${o}-row-indent`]:{float:"right"}}}}},ia=r=>{const{componentCls:o,antCls:u,iconCls:y,fontSizeIcon:N,padding:O,paddingXS:oe,tableHeaderIconColor:re,tableHeaderIconColorHover:ee,tableSelectionColumnWidth:ge}=r;return{[`${o}-wrapper`]:{[`${o}-selection-col`]:{width:ge,[`&${o}-selection-col-with-dropdown`]:{width:ge+N+O/4}},[`${o}-bordered ${o}-selection-col`]:{width:ge+oe*2,[`&${o}-selection-col-with-dropdown`]:{width:ge+N+O/4+oe*2}},[`
|
|
table tr th${o}-selection-column,
|
|
table tr td${o}-selection-column
|
|
`]:{paddingInlineEnd:r.paddingXS,paddingInlineStart:r.paddingXS,textAlign:"center",[`${u}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${o}-selection-column${o}-cell-fix-left`]:{zIndex:r.zIndexTableFixed+1},[`table tr th${o}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${o}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${o}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${r.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${r.tablePaddingHorizontal/4}px`,[y]:{color:re,fontSize:N,verticalAlign:"baseline","&:hover":{color:ee}}}}}},gl=r=>{const{componentCls:o}=r,u=(y,N,O,oe)=>({[`${o}${o}-${y}`]:{fontSize:oe,[`
|
|
${o}-title,
|
|
${o}-footer,
|
|
${o}-cell,
|
|
${o}-thead > tr > th,
|
|
${o}-tbody > tr > th,
|
|
${o}-tbody > tr > td,
|
|
tfoot > tr > th,
|
|
tfoot > tr > td
|
|
`]:{padding:`${N}px ${O}px`},[`${o}-filter-trigger`]:{marginInlineEnd:`-${O/2}px`},[`${o}-expanded-row-fixed`]:{margin:`-${N}px -${O}px`},[`${o}-tbody`]:{[`${o}-wrapper:only-child ${o}`]:{marginBlock:`-${N}px`,marginInline:`${r.tableExpandColumnWidth-O}px -${O}px`}},[`${o}-selection-column`]:{paddingInlineStart:`${O/4}px`}}});return{[`${o}-wrapper`]:Object.assign(Object.assign({},u("middle",r.tablePaddingVerticalMiddle,r.tablePaddingHorizontalMiddle,r.tableFontSizeMiddle)),u("small",r.tablePaddingVerticalSmall,r.tablePaddingHorizontalSmall,r.tableFontSizeSmall))}},Ka=r=>{const{componentCls:o,marginXXS:u,fontSizeIcon:y,tableHeaderIconColor:N,tableHeaderIconColorHover:O}=r;return{[`${o}-wrapper`]:{[`${o}-thead th${o}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${r.motionDurationSlow}`,"&:hover":{background:r.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:r.colorPrimary},[`
|
|
&${o}-cell-fix-left:hover,
|
|
&${o}-cell-fix-right:hover
|
|
`]:{background:r.tableFixedHeaderSortActiveBg}},[`${o}-thead th${o}-column-sort`]:{background:r.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${o}-column-sort`]:{background:r.tableBodySortBg},[`${o}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${o}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${o}-column-sorter`]:{marginInlineStart:u,color:N,fontSize:0,transition:`color ${r.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:y,"&.active":{color:r.colorPrimary}},[`${o}-column-sorter-up + ${o}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${o}-column-sorters:hover ${o}-column-sorter`]:{color:O}}}},za=r=>{const{componentCls:o,opacityLoading:u,tableScrollThumbBg:y,tableScrollThumbBgHover:N,tableScrollThumbSize:O,tableScrollBg:oe,zIndexTableSticky:re,stickyScrollBarBorderRadius:ee}=r,ge=`${r.lineWidth}px ${r.lineType} ${r.tableBorderColor}`;return{[`${o}-wrapper`]:{[`${o}-sticky`]:{"&-holder":{position:"sticky",zIndex:re,background:r.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${O}px !important`,zIndex:re,display:"flex",alignItems:"center",background:oe,borderTop:ge,opacity:u,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:O,backgroundColor:y,borderRadius:ee,transition:`all ${r.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:N}}}}}}},Ha=r=>{const{componentCls:o,lineWidth:u,tableBorderColor:y}=r,N=`${u}px ${r.lineType} ${y}`;return{[`${o}-wrapper`]:{[`${o}-summary`]:{position:"relative",zIndex:r.zIndexTableFixed,background:r.tableBg,"> tr":{"> th, > td":{borderBottom:N}}},[`div${o}-summary`]:{boxShadow:`0 -${u}px 0 ${y}`}}}},yl=r=>{const{componentCls:o}=r,u=`${r.lineWidth}px ${r.lineType} ${r.tableBorderColor}`,y=`${o}-expanded-row-cell`;return{[`${o}-wrapper`]:{[`${o}-tbody-virtual`]:{[`${o}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${o}-cell`]:{borderBottom:u},[`${o}-expanded-row`]:{[`${y}${y}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${r.lineWidth}px)`,borderInlineEnd:"none"}}},[`${o}-bordered`]:{[`${o}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:u,position:"absolute"},[`${o}-cell`]:{borderInlineEnd:u,[`&${o}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-r.lineWidth,borderInlineStart:u}}}}}}};const Wa=r=>{const{componentCls:o,fontWeightStrong:u,tablePaddingVertical:y,tablePaddingHorizontal:N,lineWidth:O,lineType:oe,tableBorderColor:re,tableFontSize:ee,tableBg:ge,tableRadius:Oe,tableHeaderTextColor:we,motionDurationMid:ze,tableHeaderBg:We,tableHeaderCellSplitColor:Ve,tableRowHoverBg:xt,tableSelectedRowBg:mt,tableSelectedRowHoverBg:bt,tableFooterTextColor:gt,tableFooterBg:_t,paddingContentVerticalLG:Gt}=r,cn=`${O}px ${oe} ${re}`;return{[`${o}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ea.dF)()),{[o]:Object.assign(Object.assign({},(0,ea.Wf)(r)),{fontSize:ee,background:ge,borderRadius:`${Oe}px ${Oe}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Oe}px ${Oe}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
${o}-cell,
|
|
${o}-thead > tr > th,
|
|
${o}-tbody > tr > th,
|
|
${o}-tbody > tr > td,
|
|
tfoot > tr > th,
|
|
tfoot > tr > td
|
|
`]:{position:"relative",padding:`${Gt}px ${N}px`,overflowWrap:"break-word"},[`${o}-title`]:{padding:`${y}px ${N}px`},[`${o}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:we,fontWeight:u,textAlign:"start",background:We,borderBottom:cn,transition:`background ${ze} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${o}-selection-column):not(${o}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Ve,transform:"translateY(-50%)",transition:`background-color ${ze}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${o}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${ze}, border-color ${ze}`,borderBottom:cn,[`
|
|
> ${o}-wrapper:only-child,
|
|
> ${o}-expanded-row-fixed > ${o}-wrapper:only-child
|
|
`]:{[o]:{marginBlock:`-${y}px`,marginInline:`${r.tableExpandColumnWidth-N}px -${N}px`,[`${o}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:we,fontWeight:u,textAlign:"start",background:We,borderBottom:cn,transition:`background ${ze} ease`},[`
|
|
&${o}-row:hover > th,
|
|
&${o}-row:hover > td,
|
|
> th${o}-cell-row-hover,
|
|
> td${o}-cell-row-hover
|
|
`]:{background:xt},[`&${o}-row-selected`]:{"> th, > td":{background:mt},"&:hover > th, &:hover > td":{background:bt}}}},[`${o}-footer`]:{padding:`${y}px ${N}px`,color:gt,background:_t}})}};var Ua=(0,cl.Z)("Table",r=>{const{colorTextHeading:o,colorSplit:u,colorIcon:y,colorIconHover:N,opacityLoading:O,colorBgContainer:oe,controlInteractiveSize:re,headerBg:ee,headerColor:ge,headerSortActiveBg:Oe,headerSortHoverBg:we,bodySortBg:ze,rowHoverBg:We,rowSelectedBg:Ve,rowSelectedHoverBg:xt,rowExpandedBg:mt,cellPaddingBlock:bt,cellPaddingInline:gt,cellPaddingBlockMD:_t,cellPaddingInlineMD:Gt,cellPaddingBlockSM:cn,cellPaddingInlineSM:Vt,borderColor:bn,footerBg:Nn,footerColor:Rt,headerBorderRadius:Jt,cellFontSize:Mt,cellFontSizeMD:It,cellFontSizeSM:Ut,headerSplitColor:hn,fixedHeaderSortActiveBg:Fn,headerFilterHoverBg:_n,filterDropdownBg:un,expandIconBg:jn,selectionColumnWidth:Wn,stickyScrollBarBg:Cr}=r,nr=new Mo.C(y),Ar=new Mo.C(N),Nr=2,Tn=(0,ul.TS)(r,{tableFontSize:Mt,tableBg:oe,tableRadius:Jt,tablePaddingVertical:bt,tablePaddingHorizontal:gt,tablePaddingVerticalMiddle:_t,tablePaddingHorizontalMiddle:Gt,tablePaddingVerticalSmall:cn,tablePaddingHorizontalSmall:Vt,tableBorderColor:bn,tableHeaderTextColor:ge,tableHeaderBg:ee,tableFooterTextColor:Rt,tableFooterBg:Nn,tableHeaderCellSplitColor:hn,tableHeaderSortBg:Oe,tableHeaderSortHoverBg:we,tableHeaderIconColor:nr.clone().setAlpha(nr.getAlpha()*O).toRgbString(),tableHeaderIconColorHover:Ar.clone().setAlpha(Ar.getAlpha()*O).toRgbString(),tableBodySortBg:ze,tableFixedHeaderSortActiveBg:Fn,tableHeaderFilterActiveBg:_n,tableFilterDropdownBg:un,tableRowHoverBg:We,tableSelectedRowBg:Ve,tableSelectedRowHoverBg:xt,zIndexTableFixed:Nr,zIndexTableSticky:Nr+1,tableFontSizeMiddle:It,tableFontSizeSmall:Ut,tableSelectionColumnWidth:Wn,tableExpandIconBg:jn,tableExpandColumnWidth:re+2*r.padding,tableExpandedRowBg:mt,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Cr,tableScrollThumbBgHover:o,tableScrollBg:u});return[Wa(Tn),sr(Tn),Ha(Tn),Ka(Tn),ra(Tn),dl(Tn),vr(Tn),na(Tn),Ha(Tn),ka(Tn),ia(Tn),oa(Tn),za(Tn),fl(Tn),gl(Tn),vl(Tn),yl(Tn)]},r=>{const{colorFillAlter:o,colorBgContainer:u,colorTextHeading:y,colorFillSecondary:N,colorFillContent:O,controlItemBgActive:oe,controlItemBgActiveHover:re,padding:ee,paddingSM:ge,paddingXS:Oe,colorBorderSecondary:we,borderRadiusLG:ze,fontSize:We,controlHeight:Ve,colorTextPlaceholder:xt}=r,mt=new Mo.C(N).onBackground(u).toHexShortString(),bt=new Mo.C(O).onBackground(u).toHexShortString(),gt=new Mo.C(o).onBackground(u).toHexShortString();return{headerBg:gt,headerColor:y,headerSortActiveBg:mt,headerSortHoverBg:bt,bodySortBg:gt,rowHoverBg:gt,rowSelectedBg:oe,rowSelectedHoverBg:re,rowExpandedBg:o,cellPaddingBlock:ee,cellPaddingInline:ee,cellPaddingBlockMD:ge,cellPaddingInlineMD:Oe,cellPaddingBlockSM:Oe,cellPaddingInlineSM:Oe,borderColor:we,headerBorderRadius:ze,footerBg:gt,footerColor:y,cellFontSize:We,cellFontSizeMD:We,cellFontSizeSM:We,headerSplitColor:we,fixedHeaderSortActiveBg:mt,headerFilterHoverBg:O,filterDropdownMenuBg:u,filterDropdownBg:u,expandIconBg:u,selectionColumnWidth:Ve,stickyScrollBarBg:xt,stickyScrollBarBorderRadius:100}});const Va=[],sa=(r,o)=>{const{prefixCls:u,className:y,rootClassName:N,style:O,size:oe,bordered:re,dropdownPrefixCls:ee,dataSource:ge,pagination:Oe,rowSelection:we,rowKey:ze="key",rowClassName:We,columns:Ve,children:xt,childrenColumnName:mt,onChange:bt,getPopupContainer:gt,loading:_t,expandIcon:Gt,expandable:cn,expandedRowRender:Vt,expandIconColumnIndex:bn,indentSize:Nn,scroll:Rt,sortDirections:Jt,locale:Mt,showSorterTooltip:It=!0,virtual:Ut}=r,hn=n.useMemo(()=>Ve||pr(xt),[Ve,xt]),Fn=n.useMemo(()=>hn.some(ar=>ar.responsive),[hn]),_n=(0,ir.Z)(Fn),un=n.useMemo(()=>{const ar=new Set(Object.keys(_n).filter(Rr=>_n[Rr]));return hn.filter(Rr=>!Rr.responsive||Rr.responsive.some(oo=>ar.has(oo)))},[hn,_n]),jn=(0,Gn.Z)(r,["className","style","columns"]),{locale:Wn=Mn.Z,direction:Cr,table:nr,renderEmpty:Ar,getPrefixCls:Nr,getPopupContainer:Tn}=n.useContext(st.E_),Wr=(0,wn.Z)(oe),or=Object.assign(Object.assign({},Wn.Table),Mt),Vn=ge||Va,Sr=Nr("table",u),Qr=Nr("dropdown",ee),pn=Object.assign({childrenColumnName:mt,expandIconColumnIndex:bn},cn),{childrenColumnName:fn="children"}=pn,dn=n.useMemo(()=>Vn.some(ar=>ar==null?void 0:ar[fn])?"nest":Vt||cn&&cn.expandedRowRender?"row":null,[Vn]),on={body:n.useRef()},rr=n.useMemo(()=>typeof ze=="function"?ze:ar=>ar==null?void 0:ar[ze],[ze]),[Qt]=go(Vn,fn,rr),On={},tr=function(ar,Rr){let oo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Kr,io,mo;const vo=Object.assign(Object.assign({},On),ar);oo&&((Kr=On.resetPagination)===null||Kr===void 0||Kr.call(On),!((io=vo.pagination)===null||io===void 0)&&io.current&&(vo.pagination.current=1),Oe&&Oe.onChange&&Oe.onChange(1,(mo=vo.pagination)===null||mo===void 0?void 0:mo.pageSize)),Rt&&Rt.scrollToFirstRowOnChange!==!1&&on.body.current&&(0,Bn.Z)(0,{getContainer:()=>on.body.current}),bt==null||bt(vo.pagination,vo.filters,vo.sorter,{currentDataSource:Ta(Jo(Vn,vo.sorterStates,fn),vo.filterStates),action:Rr})},Xn=(ar,Rr)=>{tr({sorter:ar,sorterStates:Rr},"sort",!1)},[c,he,tt,ot]=Ko({prefixCls:Sr,mergedColumns:un,onSorterChange:Xn,sortDirections:Jt||["ascend","descend"],tableLocale:or,showSorterTooltip:It}),qe=n.useMemo(()=>Jo(Vn,he,fn),[Vn,he]);On.sorter=ot(),On.sorterStates=he;const et=(ar,Rr)=>{tr({filters:ar,filterStates:Rr},"filter",!0)},[ct,Tt,pt]=G({prefixCls:Sr,locale:or,dropdownPrefixCls:Qr,mergedColumns:un,onFilterChange:et,getPopupContainer:gt||Tn}),it=Ta(qe,Tt);On.filters=pt,On.filterStates=Tt;const Ft=n.useMemo(()=>{const ar={};return Object.keys(pt).forEach(Rr=>{pt[Rr]!==null&&(ar[Rr]=pt[Rr])}),Object.assign(Object.assign({},tt),{filters:ar})},[tt,pt]),[nt]=Qo(Ft),dt=(ar,Rr)=>{tr({pagination:Object.assign(Object.assign({},On.pagination),{current:ar,pageSize:Rr})},"paginate")},[Et,gr]=No(it.length,dt,Oe);On.pagination=Oe===!1?{}:tl(Et,Oe),On.resetPagination=gr;const jt=n.useMemo(()=>{if(Oe===!1||!Et.pageSize)return it;const{current:ar=1,total:Rr,pageSize:oo=Io}=Et;return it.length<Rr?it.length>oo?it.slice((ar-1)*oo,ar*oo):it:it.slice((ar-1)*oo,ar*oo)},[!!Oe,it,Et&&Et.current,Et&&Et.pageSize,Et&&Et.total]),[Dn,Or]=ol({prefixCls:Sr,data:it,pageData:jt,getRowKey:rr,getRecordByKey:Qt,expandType:dn,childrenColumnName:fn,locale:or,getPopupContainer:gt||Tn},we),Mr=(ar,Rr,oo)=>{let Kr;return typeof We=="function"?Kr=ce()(We(ar,Rr,oo)):Kr=ce()(We),ce()({[`${Sr}-row-selected`]:Or.has(rr(ar,Rr))},Kr)};pn.__PARENT_RENDER_ICON__=pn.expandIcon,pn.expandIcon=pn.expandIcon||Gt||Pr(or),dn==="nest"&&pn.expandIconColumnIndex===void 0?pn.expandIconColumnIndex=we?1:0:pn.expandIconColumnIndex>0&&we&&(pn.expandIconColumnIndex-=1),typeof pn.indentSize!="number"&&(pn.indentSize=typeof Nn=="number"?Nn:15);const Fo=n.useCallback(ar=>nt(Dn(ct(c(ar)))),[c,ct,Dn]);let xo,Lt;if(Oe!==!1&&(Et!=null&&Et.total)){let ar;Et.size?ar=Et.size:ar=Wr==="small"||Wr==="middle"?"small":void 0;const Rr=io=>n.createElement(Yn.Z,Object.assign({},Et,{className:ce()(`${Sr}-pagination ${Sr}-pagination-${io}`,Et.className),size:ar})),oo=Cr==="rtl"?"left":"right",{position:Kr}=Et;if(Kr!==null&&Array.isArray(Kr)){const io=Kr.find(To=>To.includes("top")),mo=Kr.find(To=>To.includes("bottom")),vo=Kr.every(To=>`${To}`=="none");!io&&!mo&&!vo&&(Lt=Rr(oo)),io&&(xo=Rr(io.toLowerCase().replace("top",""))),mo&&(Lt=Rr(mo.toLowerCase().replace("bottom","")))}else Lt=Rr(oo)}let qr;typeof _t=="boolean"?qr={spinning:_t}:typeof _t=="object"&&(qr=Object.assign({spinning:!0},_t));const[Vr,yr]=Ua(Sr),[,wr]=(0,Fr.Z)(),lo=ce()(`${Sr}-wrapper`,nr==null?void 0:nr.className,{[`${Sr}-wrapper-rtl`]:Cr==="rtl"},y,N,yr),co=Object.assign(Object.assign({},nr==null?void 0:nr.style),O),Co=Mt&&Mt.emptyText||(Ar==null?void 0:Ar("Table"))||n.createElement(Ot.Z,{componentName:"Table"}),wo=Ut?sl:qo,Xa={},bl=n.useMemo(()=>{const{fontSize:ar,lineHeight:Rr,padding:oo,paddingXS:Kr,paddingSM:io}=wr,mo=Math.floor(ar*Rr);switch(Wr){case"large":return oo*2+mo;case"small":return Kr*2+mo;default:return io*2+mo}},[wr,Wr]);return Ut&&(Xa.listItemHeight=bl),Vr(n.createElement("div",{ref:o,className:lo,style:co},n.createElement($r.Z,Object.assign({spinning:!1},qr),xo,n.createElement(wo,Object.assign({},Xa,jn,{columns:un,direction:Cr,expandable:pn,prefixCls:Sr,className:ce()({[`${Sr}-middle`]:Wr==="middle",[`${Sr}-small`]:Wr==="small",[`${Sr}-bordered`]:re,[`${Sr}-empty`]:Vn.length===0}),data:jt,rowKey:rr,rowClassName:Mr,emptyText:Co,internalHooks:l,internalRefs:on,transformColumns:Fo})),Lt)))};var xl=n.forwardRef(sa);const Pa=(r,o)=>{const u=n.useRef(0);return u.current+=1,n.createElement(xl,Object.assign({},r,{ref:o,_renderTimes:u.current}))},ho=n.forwardRef(Pa);ho.SELECTION_COLUMN=fo,ho.EXPAND_COLUMN=t,ho.SELECTION_ALL=xa,ho.SELECTION_INVERT=Do,ho.SELECTION_NONE=Ca,ho.Column=nn,ho.ColumnGroup=Cn,ho.Summary=s;var Cl=ho,ca=Cl},17574:function(ht,le,e){"use strict";e.d(le,{default:function(){return Me}});var t=e(60091),l=e(94480),P=e(52671),L=e(8657),T=e(54476),p=e(59301),n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},F=n,W=e(7657),w=function(je,Je){return p.createElement(W.Z,(0,T.Z)({},je,{ref:Je,icon:F}))},D=p.forwardRef(w),g=D,M=e(92310),B=e.n(M),I=e(35654),E=e(71430),ne=e(36355),k=e(56082),de=e(62892),ie=e(20648);const H=4;function A(Ie){const{dropPosition:je,dropLevelOffset:Je,prefixCls:rt,indent:Ke,direction:Te="ltr"}=Ie,Qe=Te==="ltr"?"left":"right",vt=Te==="ltr"?"right":"left",De={[Qe]:-Je*Ke+H,[vt]:0};switch(je){case-1:De.top=-3;break;case 1:De.bottom=-3;break;default:De.bottom=-3,De[Qe]=Ke+H;break}return p.createElement("div",{style:De,className:`${rt}-drop-indicator`})}var ae=e(71997),S=p.forwardRef((Ie,je)=>{const{getPrefixCls:Je,direction:rt,virtual:Ke,tree:Te}=p.useContext(ne.E_),{prefixCls:Qe,className:vt,showIcon:De=!1,showLine:ft,switcherIcon:St,blockNode:$e=!1,children:ve,checkable:at=!1,selectable:Ee=!0,draggable:Z,motion:K,style:m}=Ie,a=Je("tree",Qe),R=Je(),fe=K!=null?K:Object.assign(Object.assign({},(0,de.Z)(R)),{motionAppear:!1}),s=Object.assign(Object.assign({},Ie),{checkable:at,selectable:Ee,showIcon:De,motion:fe,blockNode:$e,showLine:!!ft,dropIndicatorRender:A}),[i,X]=(0,ie.ZP)(a),$=p.useMemo(()=>{if(!Z)return!1;let Q={};switch(typeof Z){case"function":Q.nodeDraggable=Z;break;case"object":Q=Object.assign({},Z);break;default:break}return Q.icon!==!1&&(Q.icon=Q.icon||p.createElement(k.Z,null)),Q},[Z]),f=Q=>p.createElement(ae.Z,{prefixCls:a,switcherIcon:St,treeNodeProps:Q,showLine:ft});return i(p.createElement(t.Z,Object.assign({itemHeight:20,ref:je,virtual:Ke},s,{style:Object.assign(Object.assign({},Te==null?void 0:Te.style),m),prefixCls:a,className:B()({[`${a}-icon-hide`]:!De,[`${a}-block-node`]:$e,[`${a}-unselectable`]:!Ee,[`${a}-rtl`]:rt==="rtl"},Te==null?void 0:Te.className,vt,X),direction:rt,checkable:at&&p.createElement("span",{className:`${a}-checkbox-inner`}),selectable:Ee,switcherIcon:f,draggable:$}),ve))}),J;(function(Ie){Ie[Ie.None=0]="None",Ie[Ie.Start=1]="Start",Ie[Ie.End=2]="End"})(J||(J={}));function te(Ie,je){function Je(rt){const{key:Ke,children:Te}=rt;je(Ke,rt)!==!1&&te(Te||[],je)}Ie.forEach(Je)}function z(Ie){let{treeData:je,expandedKeys:Je,startKey:rt,endKey:Ke}=Ie;const Te=[];let Qe=J.None;if(rt&&rt===Ke)return[rt];if(!rt||!Ke)return[];function vt(De){return De===rt||De===Ke}return te(je,De=>{if(Qe===J.End)return!1;if(vt(De)){if(Te.push(De),Qe===J.None)Qe=J.Start;else if(Qe===J.Start)return Qe=J.End,!1}else Qe===J.Start&&Te.push(De);return Je.includes(De)}),Te}function v(Ie,je){const Je=(0,l.Z)(je),rt=[];return te(Ie,(Ke,Te)=>{const Qe=Je.indexOf(Ke);return Qe!==-1&&(rt.push(Te),Je.splice(Qe,1)),!!Je.length}),rt}var b=function(Ie,je){var Je={};for(var rt in Ie)Object.prototype.hasOwnProperty.call(Ie,rt)&&je.indexOf(rt)<0&&(Je[rt]=Ie[rt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,rt=Object.getOwnPropertySymbols(Ie);Ke<rt.length;Ke++)je.indexOf(rt[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Ie,rt[Ke])&&(Je[rt[Ke]]=Ie[rt[Ke]]);return Je};function ce(Ie){const{isLeaf:je,expanded:Je}=Ie;return je?p.createElement(P.Z,null):Je?p.createElement(L.Z,null):p.createElement(g,null)}function q(Ie){let{treeData:je,children:Je}=Ie;return je||(0,E.zn)(Je)}const x=(Ie,je)=>{var{defaultExpandAll:Je,defaultExpandParent:rt,defaultExpandedKeys:Ke}=Ie,Te=b(Ie,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Qe=p.useRef(),vt=p.useRef(),De=()=>{const{keyEntities:$}=(0,E.I8)(q(Te));let f;return Je?f=Object.keys($):rt?f=(0,I.r7)(Te.expandedKeys||Ke||[],$):f=Te.expandedKeys||Ke,f},[ft,St]=p.useState(Te.selectedKeys||Te.defaultSelectedKeys||[]),[$e,ve]=p.useState(()=>De());p.useEffect(()=>{"selectedKeys"in Te&&St(Te.selectedKeys)},[Te.selectedKeys]),p.useEffect(()=>{"expandedKeys"in Te&&ve(Te.expandedKeys)},[Te.expandedKeys]);const at=($,f)=>{var Q;return"expandedKeys"in Te||ve($),(Q=Te.onExpand)===null||Q===void 0?void 0:Q.call(Te,$,f)},Ee=($,f)=>{var Q;const{multiple:Re}=Te,{node:Pe,nativeEvent:Se}=f,{key:Ne=""}=Pe,Be=q(Te),d=Object.assign(Object.assign({},f),{selected:!0}),Y=(Se==null?void 0:Se.ctrlKey)||(Se==null?void 0:Se.metaKey),se=Se==null?void 0:Se.shiftKey;let Ce;Re&&Y?(Ce=$,Qe.current=Ne,vt.current=Ce,d.selectedNodes=v(Be,Ce)):Re&&se?(Ce=Array.from(new Set([].concat((0,l.Z)(vt.current||[]),(0,l.Z)(z({treeData:Be,expandedKeys:$e,startKey:Ne,endKey:Qe.current}))))),d.selectedNodes=v(Be,Ce)):(Ce=[Ne],Qe.current=Ne,vt.current=Ce,d.selectedNodes=v(Be,Ce)),(Q=Te.onSelect)===null||Q===void 0||Q.call(Te,Ce,d),"selectedKeys"in Te||St(Ce)},{getPrefixCls:Z,direction:K}=p.useContext(ne.E_),{prefixCls:m,className:a,showIcon:R=!0,expandAction:fe="click"}=Te,s=b(Te,["prefixCls","className","showIcon","expandAction"]),i=Z("tree",m),X=B()(`${i}-directory`,{[`${i}-directory-rtl`]:K==="rtl"},a);return p.createElement(S,Object.assign({icon:ce,ref:je,blockNode:!0},s,{showIcon:R,expandAction:fe,prefixCls:i,className:X,expandedKeys:$e,selectedKeys:ft,onSelect:Ee,onExpand:at}))};var V=p.forwardRef(x);const ye=S;ye.DirectoryTree=V,ye.TreeNode=t.O;var Me=ye},20648:function(ht,le,e){"use strict";e.d(le,{TM:function(){return M},Yk:function(){return g}});var t=e(36237),l=e(98447),P=e(17313),L=e(8378),T=e(37613),p=e(83116);const n=new t.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),F=(B,I)=>({[`.${B}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${I.motionDurationSlow}`}}}),W=(B,I)=>({[`.${B}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:I.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${I.lineWidthBold}px solid ${I.colorPrimary}`,borderRadius:"50%",content:'""'}}}),w=(B,I)=>{const{treeCls:E,treeNodeCls:ne,treeNodePadding:k,titleHeight:de,nodeSelectedBg:ie,nodeHoverBg:H}=I,A=I.paddingXS;return{[E]:Object.assign(Object.assign({},(0,P.Wf)(I)),{background:I.colorBgContainer,borderRadius:I.borderRadius,transition:`background-color ${I.motionDurationSlow}`,[`&${E}-rtl`]:{[`${E}-switcher`]:{"&_close":{[`${E}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${E}-active-focused)`]:Object.assign({},(0,P.oN)(I)),[`${E}-list-holder-inner`]:{alignItems:"flex-start"},[`&${E}-block-node`]:{[`${E}-list-holder-inner`]:{alignItems:"stretch",[`${E}-node-content-wrapper`]:{flex:"auto"},[`${ne}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:k,insetInlineStart:0,border:`1px solid ${I.colorPrimary}`,opacity:0,animationName:n,animationDuration:I.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ne}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${k}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${E}-node-content-wrapper`]:{color:I.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${E}-node-content-wrapper`]:Object.assign({},(0,P.oN)(I)),[`&:not(${ne}-disabled).filter-node ${E}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${E}-draggable-icon`]:{flexShrink:0,width:de,lineHeight:`${de}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${I.motionDurationSlow}`,[`${ne}:hover &`]:{opacity:.45}},[`&${ne}-disabled`]:{[`${E}-draggable-icon`]:{visibility:"hidden"}}}},[`${E}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:de}},[`${E}-draggable-icon`]:{visibility:"hidden"},[`${E}-switcher`]:Object.assign(Object.assign({},F(B,I)),{position:"relative",flex:"none",alignSelf:"stretch",width:de,margin:0,lineHeight:`${de}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${E}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:I.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:de/2,bottom:-k,marginInlineStart:-1,borderInlineEnd:`1px solid ${I.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:de/2*.8,height:de/2,borderBottom:`1px solid ${I.colorBorder}`,content:'""'}}}),[`${E}-checkbox`]:{top:"initial",marginInlineEnd:A},[`${E}-node-content-wrapper, ${E}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:de,margin:0,padding:`0 ${I.paddingXS/2}px`,color:"inherit",lineHeight:`${de}px`,background:"transparent",borderRadius:I.borderRadius,cursor:"pointer",transition:`all ${I.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:H},[`&${E}-node-selected`]:{backgroundColor:ie},[`${E}-iconEle`]:{display:"inline-block",width:de,height:de,lineHeight:`${de}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${E}-unselectable ${E}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${E}-node-content-wrapper`]:Object.assign({lineHeight:`${de}px`,userSelect:"none"},W(B,I)),[`${ne}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${I.colorPrimary}`}},"&-show-line":{[`${E}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:de/2,bottom:-k,borderInlineEnd:`1px solid ${I.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${E}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ne}-leaf-last`]:{[`${E}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${de/2}px !important`}}}}})}},D=B=>{const{treeCls:I,treeNodeCls:E,treeNodePadding:ne,directoryNodeSelectedBg:k,directoryNodeSelectedColor:de}=B;return{[`${I}${I}-directory`]:{[E]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ne,insetInlineStart:0,transition:`background-color ${B.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:B.controlItemBgHover}},"> *":{zIndex:1},[`${I}-switcher`]:{transition:`color ${B.motionDurationMid}`},[`${I}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${I}-node-selected`]:{color:de,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:k},[`${I}-switcher`]:{color:de},[`${I}-node-content-wrapper`]:{color:de,background:"transparent"}}}}}},g=(B,I)=>{const E=`.${B}`,ne=`${E}-treenode`,k=I.paddingXS/2,de=(0,T.TS)(I,{treeCls:E,treeNodeCls:ne,treeNodePadding:k});return[w(B,de),D(de)]},M=B=>{const{controlHeightSM:I}=B;return{titleHeight:I,nodeHoverBg:B.controlItemBgHover,nodeSelectedBg:B.controlItemBgActive}};le.ZP=(0,p.Z)("Tree",(B,I)=>{let{prefixCls:E}=I;return[{[B.componentCls]:(0,l.C2)(`${E}-checkbox`,B)},g(E,B),(0,L.Z)(B)]},B=>{const{colorTextLightSolid:I,colorPrimary:E}=B;return Object.assign(Object.assign({},M(B)),{directoryNodeSelectedColor:I,directoryNodeSelectedBg:E})})},71997:function(ht,le,e){"use strict";e.d(le,{Z:function(){return ne}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},L=P,T=e(7657),p=function(de,ie){return l.createElement(T.Z,(0,t.Z)({},de,{ref:ie,icon:L}))},n=l.forwardRef(p),F=n,W=e(52671),w=e(58617),D=e(15075),g=e(43531),M=e(92310),B=e.n(M),I=e(92343),ne=k=>{const{prefixCls:de,switcherIcon:ie,treeNodeProps:H,showLine:A}=k,{isLeaf:ae,expanded:C,loading:S}=H;if(S)return l.createElement(w.Z,{className:`${de}-switcher-loading-icon`});let J;if(A&&typeof A=="object"&&(J=A.showLeafIcon),ae){if(!A)return null;if(typeof J!="boolean"&&J){const v=typeof J=="function"?J(H):J,b=`${de}-switcher-line-custom-icon`;return(0,I.l$)(v)?(0,I.Tm)(v,{className:B()(v.props.className||"",b)}):v}return J?l.createElement(W.Z,{className:`${de}-switcher-line-icon`}):l.createElement("span",{className:`${de}-switcher-leaf-line`})}const te=`${de}-switcher-icon`,z=typeof ie=="function"?ie(H):ie;return(0,I.l$)(z)?(0,I.Tm)(z,{className:B()(z.props.className||"",te)}):z!==void 0?z:A?C?l.createElement(D.Z,{className:`${de}-switcher-line-icon`}):l.createElement(g.Z,{className:`${de}-switcher-line-icon`}):l.createElement(F,{className:te})}},54580:function(ht,le,e){"use strict";e.d(le,{default:function(){return zt}});var t=e(59301),l=e(94480),P=e(92310),L=e.n(P),T=e(54476),p=e(67732),n=e(83652),F=e(42403),W=e(158),w=e(20068),D=e(75931),g=e(75044),M=e(76190),B=e(3202),I=e(26112);function E(j,ue){var xe="cannot ".concat(j.method," ").concat(j.action," ").concat(ue.status,"'"),be=new Error(xe);return be.status=ue.status,be.method=j.method,be.url=j.action,be}function ne(j){var ue=j.responseText||j.response;if(!ue)return ue;try{return JSON.parse(ue)}catch(xe){return ue}}function k(j){var ue=new XMLHttpRequest;j.onProgress&&ue.upload&&(ue.upload.onprogress=function(Le){Le.total>0&&(Le.percent=Le.loaded/Le.total*100),j.onProgress(Le)});var xe=new FormData;j.data&&Object.keys(j.data).forEach(function(Ze){var Le=j.data[Ze];if(Array.isArray(Le)){Le.forEach(function(ke){xe.append("".concat(Ze,"[]"),ke)});return}xe.append(Ze,Le)}),j.file instanceof Blob?xe.append(j.filename,j.file,j.file.name):xe.append(j.filename,j.file),ue.onerror=function(Le){j.onError(Le)},ue.onload=function(){return ue.status<200||ue.status>=300?j.onError(E(j,ue),ne(ue)):j.onSuccess(ne(ue),ue)},ue.open(j.method,j.action,!0),j.withCredentials&&"withCredentials"in ue&&(ue.withCredentials=!0);var be=j.headers||{};return be["X-Requested-With"]!==null&&ue.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(be).forEach(function(Ze){be[Ze]!==null&&ue.setRequestHeader(Ze,be[Ze])}),ue.send(xe),{abort:function(){ue.abort()}}}var de=+new Date,ie=0;function H(){return"rc-upload-".concat(de,"-").concat(++ie)}var A=e(48736),ae=function(j,ue){if(j&&ue){var xe=Array.isArray(ue)?ue:ue.split(","),be=j.name||"",Ze=j.type||"",Le=Ze.replace(/\/.*$/,"");return xe.some(function(ke){var Ae=ke.trim();if(/^\*(\/\*)?$/.test(ke))return!0;if(Ae.charAt(0)==="."){var Ht=be.toLowerCase(),kt=Ae.toLowerCase(),qt=[kt];return(kt===".jpg"||kt===".jpeg")&&(qt=[".jpg",".jpeg"]),qt.some(function(kn){return Ht.endsWith(kn)})}return/\/\*$/.test(Ae)?Le===Ae.replace(/\/.*$/,""):Ze===Ae?!0:/^\w+$/.test(Ae)?((0,A.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ae,"'.Skip for check.")),!0):!1})}return!0};function C(j,ue){var xe=j.createReader(),be=[];function Ze(){xe.readEntries(function(Le){var ke=Array.prototype.slice.apply(Le);be=be.concat(ke);var Ae=!ke.length;Ae?ue(be):Ze()})}Ze()}var S=function(ue,xe,be){var Ze=function Le(ke,Ae){ke&&(ke.path=Ae||"",ke.isFile?ke.file(function(Ht){be(Ht)&&(ke.fullPath&&!Ht.webkitRelativePath&&(Object.defineProperties(Ht,{webkitRelativePath:{writable:!0}}),Ht.webkitRelativePath=ke.fullPath.replace(/^\//,""),Object.defineProperties(Ht,{webkitRelativePath:{writable:!1}})),xe([Ht]))}):ke.isDirectory&&C(ke,function(Ht){Ht.forEach(function(kt){Le(kt,"".concat(Ae).concat(ke.name,"/"))})}))};ue.forEach(function(Le){Ze(Le.webkitGetAsEntry())})},J=S,te=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],z=function(j){(0,F.Z)(xe,j);var ue=(0,W.Z)(xe);function xe(){var be;(0,p.Z)(this,xe);for(var Ze=arguments.length,Le=new Array(Ze),ke=0;ke<Ze;ke++)Le[ke]=arguments[ke];return be=ue.call.apply(ue,[this].concat(Le)),be.state={uid:H()},be.reqs={},be.fileInput=void 0,be._isMounted=void 0,be.onChange=function(Ae){var Ht=be.props,kt=Ht.accept,qt=Ht.directory,kn=Ae.target.files,Rn=(0,l.Z)(kn).filter(function(an){return!qt||ae(an,kt)});be.uploadFiles(Rn),be.reset()},be.onClick=function(Ae){var Ht=be.fileInput;if(Ht){var kt=Ae.target,qt=be.props.onClick;if(kt&&kt.tagName==="BUTTON"){var kn=Ht.parentNode;kn.focus(),kt.blur()}Ht.click(),qt&&qt(Ae)}},be.onKeyDown=function(Ae){Ae.key==="Enter"&&be.onClick(Ae)},be.onFileDrop=function(Ae){var Ht=be.props.multiple;if(Ae.preventDefault(),Ae.type!=="dragover")if(be.props.directory)J(Array.prototype.slice.call(Ae.dataTransfer.items),be.uploadFiles,function(qt){return ae(qt,be.props.accept)});else{var kt=(0,l.Z)(Ae.dataTransfer.files).filter(function(qt){return ae(qt,be.props.accept)});Ht===!1&&(kt=kt.slice(0,1)),be.uploadFiles(kt)}},be.uploadFiles=function(Ae){var Ht=(0,l.Z)(Ae),kt=Ht.map(function(qt){return qt.uid=H(),be.processFile(qt,Ht)});Promise.all(kt).then(function(qt){var kn=be.props.onBatchStart;kn==null||kn(qt.map(function(Rn){var an=Rn.origin,h=Rn.parsedFile;return{file:an,parsedFile:h}})),qt.filter(function(Rn){return Rn.parsedFile!==null}).forEach(function(Rn){be.post(Rn)})})},be.processFile=function(){var Ae=(0,B.Z)((0,g.Z)().mark(function Ht(kt,qt){var kn,Rn,an,h,Br,Qn,ur,er,hr;return(0,g.Z)().wrap(function($n){for(;;)switch($n.prev=$n.next){case 0:if(kn=be.props.beforeUpload,Rn=kt,!kn){$n.next=14;break}return $n.prev=3,$n.next=6,kn(kt,qt);case 6:Rn=$n.sent,$n.next=12;break;case 9:$n.prev=9,$n.t0=$n.catch(3),Rn=!1;case 12:if(Rn!==!1){$n.next=14;break}return $n.abrupt("return",{origin:kt,parsedFile:null,action:null,data:null});case 14:if(an=be.props.action,typeof an!="function"){$n.next=21;break}return $n.next=18,an(kt);case 18:h=$n.sent,$n.next=22;break;case 21:h=an;case 22:if(Br=be.props.data,typeof Br!="function"){$n.next=29;break}return $n.next=26,Br(kt);case 26:Qn=$n.sent,$n.next=30;break;case 29:Qn=Br;case 30:return ur=((0,M.Z)(Rn)==="object"||typeof Rn=="string")&&Rn?Rn:kt,ur instanceof File?er=ur:er=new File([ur],kt.name,{type:kt.type}),hr=er,hr.uid=kt.uid,$n.abrupt("return",{origin:kt,data:Qn,parsedFile:hr,action:h});case 35:case"end":return $n.stop()}},Ht,null,[[3,9]])}));return function(Ht,kt){return Ae.apply(this,arguments)}}(),be.saveFileInput=function(Ae){be.fileInput=Ae},be}return(0,n.Z)(xe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ze){var Le=this,ke=Ze.data,Ae=Ze.origin,Ht=Ze.action,kt=Ze.parsedFile;if(this._isMounted){var qt=this.props,kn=qt.onStart,Rn=qt.customRequest,an=qt.name,h=qt.headers,Br=qt.withCredentials,Qn=qt.method,ur=Ae.uid,er=Rn||k,hr={action:Ht,filename:an,data:ke,file:kt,headers:h,withCredentials:Br,method:Qn||"post",onProgress:function($n){var Pn=Le.props.onProgress;Pn==null||Pn($n,kt)},onSuccess:function($n,Pn){var zn=Le.props.onSuccess;zn==null||zn($n,kt,Pn),delete Le.reqs[ur]},onError:function($n,Pn){var zn=Le.props.onError;zn==null||zn($n,Pn,kt),delete Le.reqs[ur]}};kn(Ae),this.reqs[ur]=er(hr)}}},{key:"reset",value:function(){this.setState({uid:H()})}},{key:"abort",value:function(Ze){var Le=this.reqs;if(Ze){var ke=Ze.uid?Ze.uid:Ze;Le[ke]&&Le[ke].abort&&Le[ke].abort(),delete Le[ke]}else Object.keys(Le).forEach(function(Ae){Le[Ae]&&Le[Ae].abort&&Le[Ae].abort(),delete Le[Ae]})}},{key:"render",value:function(){var Ze=this.props,Le=Ze.component,ke=Ze.prefixCls,Ae=Ze.className,Ht=Ze.disabled,kt=Ze.id,qt=Ze.style,kn=Ze.multiple,Rn=Ze.accept,an=Ze.capture,h=Ze.children,Br=Ze.directory,Qn=Ze.openFileDialogOnClick,ur=Ze.onMouseEnter,er=Ze.onMouseLeave,hr=(0,D.Z)(Ze,te),qn=L()((0,w.Z)((0,w.Z)((0,w.Z)({},ke,!0),"".concat(ke,"-disabled"),Ht),Ae,Ae)),$n=Br?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Pn=Ht?{}:{onClick:Qn?this.onClick:function(){},onKeyDown:Qn?this.onKeyDown:function(){},onMouseEnter:ur,onMouseLeave:er,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return t.createElement(Le,(0,T.Z)({},Pn,{className:qn,role:"button",style:qt}),t.createElement("input",(0,T.Z)({},(0,I.Z)(hr,{aria:!0,data:!0}),{id:kt,disabled:Ht,type:"file",ref:this.saveFileInput,onClick:function(kr){return kr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Rn},$n,{multiple:kn,onChange:this.onChange},an!=null?{capture:an}:{})),h)}}]),xe}(t.Component),v=z;function b(){}var ce=function(j){(0,F.Z)(xe,j);var ue=(0,W.Z)(xe);function xe(){var be;(0,p.Z)(this,xe);for(var Ze=arguments.length,Le=new Array(Ze),ke=0;ke<Ze;ke++)Le[ke]=arguments[ke];return be=ue.call.apply(ue,[this].concat(Le)),be.uploader=void 0,be.saveUploader=function(Ae){be.uploader=Ae},be}return(0,n.Z)(xe,[{key:"abort",value:function(Ze){this.uploader.abort(Ze)}},{key:"render",value:function(){return t.createElement(v,(0,T.Z)({},this.props,{ref:this.saveUploader}))}}]),xe}(t.Component);ce.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:b,onError:b,onSuccess:b,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var q=ce,x=q,_=e(18929),V=e(4676),ye=e(36355),Me=e(1684),Ie=e(9763),je=e(31724),Je={icon:function(ue,xe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:xe}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:ue}}]}},name:"file",theme:"twotone"},rt=Je,Ke=e(7657),Te=function(ue,xe){return t.createElement(Ke.Z,(0,T.Z)({},ue,{ref:xe,icon:rt}))},Qe=t.forwardRef(Te),vt=Qe,De=e(58617),ft={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},St=ft,$e=function(ue,xe){return t.createElement(Ke.Z,(0,T.Z)({},ue,{ref:xe,icon:St}))},ve=t.forwardRef($e),at=ve,Ee={icon:function(ue,xe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:ue}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:xe}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:xe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:xe}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:ue}}]}},name:"picture",theme:"twotone"},Z=Ee,K=function(ue,xe){return t.createElement(Ke.Z,(0,T.Z)({},ue,{ref:xe,icon:Z}))},m=t.forwardRef(K),a=m,R=e(77900),fe=e(56762),s=e(62892),i=e(92343),X=e(3113);function $(j){return Object.assign(Object.assign({},j),{lastModified:j.lastModified,lastModifiedDate:j.lastModifiedDate,name:j.name,size:j.size,type:j.type,uid:j.uid,percent:0,originFileObj:j})}function f(j,ue){const xe=(0,l.Z)(ue),be=xe.findIndex(Ze=>{let{uid:Le}=Ze;return Le===j.uid});return be===-1?xe.push(j):xe[be]=j,xe}function Q(j,ue){const xe=j.uid!==void 0?"uid":"name";return ue.filter(be=>be[xe]===j[xe])[0]}function Re(j,ue){const xe=j.uid!==void 0?"uid":"name",be=ue.filter(Ze=>Ze[xe]!==j[xe]);return be.length===ue.length?null:be}const Pe=function(){const ue=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),be=ue[ue.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(be)||[""])[0]},Se=j=>j.indexOf("image/")===0,Ne=j=>{if(j.type&&!j.thumbUrl)return Se(j.type);const ue=j.thumbUrl||j.url||"",xe=Pe(ue);return/^data:image\//.test(ue)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(xe)?!0:!(/^data:/.test(ue)||xe)},Be=200;function d(j){return new Promise(ue=>{if(!j.type||!Se(j.type)){ue("");return}const xe=document.createElement("canvas");xe.width=Be,xe.height=Be,xe.style.cssText=`position: fixed; left: 0; top: 0; width: ${Be}px; height: ${Be}px; z-index: 9999; display: none;`,document.body.appendChild(xe);const be=xe.getContext("2d"),Ze=new Image;if(Ze.onload=()=>{const{width:Le,height:ke}=Ze;let Ae=Be,Ht=Be,kt=0,qt=0;Le>ke?(Ht=ke*(Be/Le),qt=-(Ht-Ae)/2):(Ae=Le*(Be/ke),kt=-(Ae-Ht)/2),be.drawImage(Ze,kt,qt,Ae,Ht);const kn=xe.toDataURL();document.body.removeChild(xe),window.URL.revokeObjectURL(Ze.src),ue(kn)},Ze.crossOrigin="anonymous",j.type.startsWith("image/svg+xml")){const Le=new FileReader;Le.onload=()=>{Le.result&&(Ze.src=Le.result)},Le.readAsDataURL(j)}else if(j.type.startsWith("image/gif")){const Le=new FileReader;Le.onload=()=>{Le.result&&ue(Le.result)},Le.readAsDataURL(j)}else Ze.src=window.URL.createObjectURL(j)})}var Y=e(26227),se=e(41464),Ce=e(15277),Fe=e(93948),_e=e(6848),Xe=t.forwardRef((j,ue)=>{let{prefixCls:xe,className:be,style:Ze,locale:Le,listType:ke,file:Ae,items:Ht,progress:kt,iconRender:qt,actionIconRender:kn,itemRender:Rn,isImgUrl:an,showPreviewIcon:h,showRemoveIcon:Br,showDownloadIcon:Qn,previewIcon:ur,removeIcon:er,downloadIcon:hr,onPreview:qn,onDownload:$n,onClose:Pn}=j;var zn,kr;const{status:In}=Ae,[Er,jr]=t.useState(In);t.useEffect(()=>{In!=="removed"&&jr(In)},[In]);const[Ur,Gr]=t.useState(!1);t.useEffect(()=>{const st=setTimeout(()=>{Gr(!0)},300);return()=>{clearTimeout(st)}},[]);const Yr=qt(Ae);let U=t.createElement("div",{className:`${xe}-icon`},Yr);if(ke==="picture"||ke==="picture-card"||ke==="picture-circle")if(Er==="uploading"||!Ae.thumbUrl&&!Ae.url){const st=L()(`${xe}-list-item-thumbnail`,{[`${xe}-list-item-file`]:Er!=="uploading"});U=t.createElement("div",{className:st},Yr)}else{const st=an!=null&&an(Ae)?t.createElement("img",{src:Ae.thumbUrl||Ae.url,alt:Ae.name,className:`${xe}-list-item-image`,crossOrigin:Ae.crossOrigin}):Yr,Ot=L()(`${xe}-list-item-thumbnail`,{[`${xe}-list-item-file`]:an&&!an(Ae)});U=t.createElement("a",{className:Ot,onClick:wn=>qn(Ae,wn),href:Ae.url||Ae.thumbUrl,target:"_blank",rel:"noopener noreferrer"},st)}const me=L()(`${xe}-list-item`,`${xe}-list-item-${Er}`),Ye=typeof Ae.linkProps=="string"?JSON.parse(Ae.linkProps):Ae.linkProps,At=Br?kn((typeof er=="function"?er(Ae):er)||t.createElement(Y.Z,null),()=>Pn(Ae),xe,Le.removeFile):null,en=Qn&&Er==="done"?kn((typeof hr=="function"?hr(Ae):hr)||t.createElement(se.Z,null),()=>$n(Ae),xe,Le.downloadFile):null,gn=ke!=="picture-card"&&ke!=="picture-circle"&&t.createElement("span",{key:"download-delete",className:L()(`${xe}-list-item-actions`,{picture:ke==="picture"})},en,At),Yt=L()(`${xe}-list-item-name`),Zt=Ae.url?[t.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Yt,title:Ae.name},Ye,{href:Ae.url,onClick:st=>qn(Ae,st)}),Ae.name),gn]:[t.createElement("span",{key:"view",className:Yt,onClick:st=>qn(Ae,st),title:Ae.name},Ae.name),gn],Ue={pointerEvents:"none",opacity:.5},yt=h?t.createElement("a",{href:Ae.url||Ae.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ae.url||Ae.thumbUrl?void 0:Ue,onClick:st=>qn(Ae,st),title:Le.previewFile},typeof ur=="function"?ur(Ae):ur||t.createElement(Ce.Z,null)):null,tn=(ke==="picture-card"||ke==="picture-circle")&&Er!=="uploading"&&t.createElement("span",{className:`${xe}-list-item-actions`},yt,Er==="done"&&en,At),{getPrefixCls:nn}=t.useContext(ye.E_),Sn=nn(),Cn=t.createElement("div",{className:me},U,Zt,tn,Ur&&t.createElement(R.default,{motionName:`${Sn}-fade`,visible:Er==="uploading",motionDeadline:2e3},st=>{let{className:Ot}=st;const wn="percent"in Ae?t.createElement(Fe.Z,Object.assign({},kt,{type:"line",percent:Ae.percent,"aria-label":Ae["aria-label"],"aria-labelledby":Ae["aria-labelledby"]})):null;return t.createElement("div",{className:L()(`${xe}-list-item-progress`,Ot)},wn)})),Gn=Ae.response&&typeof Ae.response=="string"?Ae.response:((zn=Ae.error)===null||zn===void 0?void 0:zn.statusText)||((kr=Ae.error)===null||kr===void 0?void 0:kr.message)||Le.uploadError,Bn=Er==="error"?t.createElement(_e.Z,{title:Gn,getPopupContainer:st=>st.parentNode},Cn):Cn;return t.createElement("div",{className:L()(`${xe}-list-item-container`,be),style:Ze,ref:ue},Rn?Rn(Bn,Ae,Ht,{download:$n.bind(null,Ae),preview:qn.bind(null,Ae),remove:Pn.bind(null,Ae)}):Bn)});const ut=(j,ue)=>{const{listType:xe="text",previewFile:be=d,onPreview:Ze,onDownload:Le,onRemove:ke,locale:Ae,iconRender:Ht,isImageUrl:kt=Ne,prefixCls:qt,items:kn=[],showPreviewIcon:Rn=!0,showRemoveIcon:an=!0,showDownloadIcon:h=!1,removeIcon:Br,previewIcon:Qn,downloadIcon:ur,progress:er={size:[-1,2],showInfo:!1},appendAction:hr,appendActionVisible:qn=!0,itemRender:$n,disabled:Pn}=j,zn=(0,fe.Z)(),[kr,In]=t.useState(!1);t.useEffect(()=>{xe!=="picture"&&xe!=="picture-card"&&xe!=="picture-circle"||(kn||[]).forEach(Ue=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Ue.originFileObj instanceof File||Ue.originFileObj instanceof Blob)||Ue.thumbUrl!==void 0||(Ue.thumbUrl="",be&&be(Ue.originFileObj).then(yt=>{Ue.thumbUrl=yt||"",zn()}))})},[xe,kn,be]),t.useEffect(()=>{In(!0)},[]);const Er=(Ue,yt)=>{if(Ze)return yt==null||yt.preventDefault(),Ze(Ue)},jr=Ue=>{typeof Le=="function"?Le(Ue):Ue.url&&window.open(Ue.url)},Ur=Ue=>{ke==null||ke(Ue)},Gr=Ue=>{if(Ht)return Ht(Ue,xe);const yt=Ue.status==="uploading",tn=kt&&kt(Ue)?t.createElement(a,null):t.createElement(vt,null);let nn=yt?t.createElement(De.Z,null):t.createElement(at,null);return xe==="picture"?nn=yt?t.createElement(De.Z,null):tn:(xe==="picture-card"||xe==="picture-circle")&&(nn=yt?Ae.uploading:tn),nn},Yr=(Ue,yt,tn,nn)=>{const Sn={type:"text",size:"small",title:nn,onClick:Cn=>{yt(),(0,i.l$)(Ue)&&Ue.props.onClick&&Ue.props.onClick(Cn)},className:`${tn}-list-item-action`,disabled:Pn};if((0,i.l$)(Ue)){const Cn=(0,i.Tm)(Ue,Object.assign(Object.assign({},Ue.props),{onClick:()=>{}}));return t.createElement(X.ZP,Object.assign({},Sn,{icon:Cn}))}return t.createElement(X.ZP,Object.assign({},Sn),t.createElement("span",null,Ue))};t.useImperativeHandle(ue,()=>({handlePreview:Er,handleDownload:jr}));const{getPrefixCls:U}=t.useContext(ye.E_),me=U("upload",qt),Ye=U(),At=L()(`${me}-list`,`${me}-list-${xe}`),en=(0,l.Z)(kn.map(Ue=>({key:Ue.uid,file:Ue})));let Yt={motionDeadline:2e3,motionName:`${me}-${xe==="picture-card"||xe==="picture-circle"?"animate-inline":"animate"}`,keys:en,motionAppear:kr};const Zt=t.useMemo(()=>{const Ue=Object.assign({},(0,s.Z)(Ye));return delete Ue.onAppearEnd,delete Ue.onEnterEnd,delete Ue.onLeaveEnd,Ue},[Ye]);return xe!=="picture-card"&&xe!=="picture-circle"&&(Yt=Object.assign(Object.assign({},Zt),Yt)),t.createElement("div",{className:At},t.createElement(R.CSSMotionList,Object.assign({},Yt,{component:!1}),Ue=>{let{key:yt,file:tn,className:nn,style:Sn}=Ue;return t.createElement(Xe,{key:yt,locale:Ae,prefixCls:me,className:nn,style:Sn,file:tn,items:kn,progress:er,listType:xe,isImgUrl:kt,showPreviewIcon:Rn,showRemoveIcon:an,showDownloadIcon:h,removeIcon:Br,previewIcon:Qn,downloadIcon:ur,iconRender:Gr,actionIconRender:Yr,itemRender:$n,onPreview:Er,onDownload:jr,onClose:Ur})}),hr&&t.createElement(R.default,Object.assign({},Yt,{visible:qn,forceRender:!0}),Ue=>{let{className:yt,style:tn}=Ue;return(0,i.Tm)(hr,nn=>({className:L()(nn.className,yt),style:Object.assign(Object.assign(Object.assign({},tn),{pointerEvents:yt?"none":void 0}),nn.style)}))}))};var wt=t.forwardRef(ut),Dt=e(17313),mn=e(8378),ln=e(83116),$t=e(37613),vn=j=>{const{componentCls:ue,iconCls:xe}=j;return{[`${ue}-wrapper`]:{[`${ue}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:j.colorFillAlter,border:`${j.lineWidth}px dashed ${j.colorBorder}`,borderRadius:j.borderRadiusLG,cursor:"pointer",transition:`border-color ${j.motionDurationSlow}`,[ue]:{padding:`${j.padding}px 0`},[`${ue}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${ue}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${ue}-disabled):hover`]:{borderColor:j.colorPrimaryHover},[`p${ue}-drag-icon`]:{marginBottom:j.margin,[xe]:{color:j.colorPrimary,fontSize:j.uploadThumbnailSize}},[`p${ue}-text`]:{margin:`0 0 ${j.marginXXS}px`,color:j.colorTextHeading,fontSize:j.fontSizeLG},[`p${ue}-hint`]:{color:j.colorTextDescription,fontSize:j.fontSize},[`&${ue}-disabled`]:{cursor:"not-allowed",[`p${ue}-drag-icon ${xe},
|
|
p${ue}-text,
|
|
p${ue}-hint
|
|
`]:{color:j.colorTextDisabled}}}}}},yn=j=>{const{componentCls:ue,antCls:xe,iconCls:be,fontSize:Ze,lineHeight:Le}=j,ke=`${ue}-list-item`,Ae=`${ke}-actions`,Ht=`${ke}-action`,kt=Math.round(Ze*Le);return{[`${ue}-wrapper`]:{[`${ue}-list`]:Object.assign(Object.assign({},(0,Dt.dF)()),{lineHeight:j.lineHeight,[ke]:{position:"relative",height:j.lineHeight*Ze,marginTop:j.marginXS,fontSize:Ze,display:"flex",alignItems:"center",transition:`background-color ${j.motionDurationSlow}`,"&:hover":{backgroundColor:j.controlItemBgHover},[`${ke}-name`]:Object.assign(Object.assign({},Dt.vS),{padding:`0 ${j.paddingXS}px`,lineHeight:Le,flex:"auto",transition:`all ${j.motionDurationSlow}`}),[Ae]:{[Ht]:{opacity:0},[`${Ht}${xe}-btn-sm`]:{height:kt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${Ht}:focus-visible,
|
|
&.picture ${Ht}
|
|
`]:{opacity:1},[be]:{color:j.actionsColor,transition:`all ${j.motionDurationSlow}`},[`&:hover ${be}`]:{color:j.colorText}},[`${ue}-icon ${be}`]:{color:j.colorTextDescription,fontSize:Ze},[`${ke}-progress`]:{position:"absolute",bottom:-j.uploadProgressOffset,width:"100%",paddingInlineStart:Ze+j.paddingXS,fontSize:Ze,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${ke}:hover ${Ht}`]:{opacity:1,color:j.colorText},[`${ke}-error`]:{color:j.colorError,[`${ke}-name, ${ue}-icon ${be}`]:{color:j.colorError},[Ae]:{[`${be}, ${be}:hover`]:{color:j.colorError},[Ht]:{opacity:1}}},[`${ue}-list-item-container`]:{transition:`opacity ${j.motionDurationSlow}, height ${j.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},xn=e(36237),An=e(1950);const lr=new xn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),br=new xn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var cr=j=>{const{componentCls:ue}=j,xe=`${ue}-animate-inline`;return[{[`${ue}-wrapper`]:{[`${xe}-appear, ${xe}-enter, ${xe}-leave`]:{animationDuration:j.motionDurationSlow,animationTimingFunction:j.motionEaseInOutCirc,animationFillMode:"forwards"},[`${xe}-appear, ${xe}-enter`]:{animationName:lr},[`${xe}-leave`]:{animationName:br}}},{[`${ue}-wrapper`]:(0,An.J$)(j)},lr,br]},Zn=e(30071),fr=e(64993);const Dr=j=>{const{componentCls:ue,iconCls:xe,uploadThumbnailSize:be,uploadProgressOffset:Ze}=j,Le=`${ue}-list`,ke=`${Le}-item`;return{[`${ue}-wrapper`]:{[`
|
|
${Le}${Le}-picture,
|
|
${Le}${Le}-picture-card,
|
|
${Le}${Le}-picture-circle
|
|
`]:{[ke]:{position:"relative",height:be+j.lineWidth*2+j.paddingXS*2,padding:j.paddingXS,border:`${j.lineWidth}px ${j.lineType} ${j.colorBorder}`,borderRadius:j.borderRadiusLG,"&:hover":{background:"transparent"},[`${ke}-thumbnail`]:Object.assign(Object.assign({},Dt.vS),{width:be,height:be,lineHeight:`${be+j.paddingSM}px`,textAlign:"center",flex:"none",[xe]:{fontSize:j.fontSizeHeading2,color:j.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ke}-progress`]:{bottom:Ze,width:`calc(100% - ${j.paddingSM*2}px)`,marginTop:0,paddingInlineStart:be+j.paddingXS}},[`${ke}-error`]:{borderColor:j.colorError,[`${ke}-thumbnail ${xe}`]:{[`svg path[fill='${Zn.blue[0]}']`]:{fill:j.colorErrorBg},[`svg path[fill='${Zn.blue.primary}']`]:{fill:j.colorError}}},[`${ke}-uploading`]:{borderStyle:"dashed",[`${ke}-name`]:{marginBottom:Ze}}},[`${Le}${Le}-picture-circle ${ke}`]:{[`&, &::before, ${ke}-thumbnail`]:{borderRadius:"50%"}}}}},Ir=j=>{const{componentCls:ue,iconCls:xe,fontSizeLG:be,colorTextLightSolid:Ze}=j,Le=`${ue}-list`,ke=`${Le}-item`,Ae=j.uploadPicCardSize;return{[`
|
|
${ue}-wrapper${ue}-picture-card-wrapper,
|
|
${ue}-wrapper${ue}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Dt.dF)()),{display:"inline-block",width:"100%",[`${ue}${ue}-select`]:{width:Ae,height:Ae,marginInlineEnd:j.marginXS,marginBottom:j.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:j.colorFillAlter,border:`${j.lineWidth}px dashed ${j.colorBorder}`,borderRadius:j.borderRadiusLG,cursor:"pointer",transition:`border-color ${j.motionDurationSlow}`,[`> ${ue}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ue}-disabled):hover`]:{borderColor:j.colorPrimary}},[`${Le}${Le}-picture-card, ${Le}${Le}-picture-circle`]:{[`${Le}-item-container`]:{display:"inline-block",width:Ae,height:Ae,marginBlock:`0 ${j.marginXS}px`,marginInline:`0 ${j.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[ke]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${j.paddingXS*2}px)`,height:`calc(100% - ${j.paddingXS*2}px)`,backgroundColor:j.colorBgMask,opacity:0,transition:`all ${j.motionDurationSlow}`,content:'" "'}},[`${ke}:hover`]:{[`&::before, ${ke}-actions`]:{opacity:1}},[`${ke}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${j.motionDurationSlow}`,[`${xe}-eye, ${xe}-download, ${xe}-delete`]:{zIndex:10,width:be,margin:`0 ${j.marginXXS}px`,fontSize:be,cursor:"pointer",transition:`all ${j.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${ke}-actions, ${ke}-actions:hover`]:{[`${xe}-eye, ${xe}-download, ${xe}-delete`]:{color:new fr.C(Ze).setAlpha(.65).toRgbString(),"&:hover":{color:Ze}}},[`${ke}-thumbnail, ${ke}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ke}-name`]:{display:"none",textAlign:"center"},[`${ke}-file + ${ke}-name`]:{position:"absolute",bottom:j.margin,display:"block",width:`calc(100% - ${j.paddingXS*2}px)`},[`${ke}-uploading`]:{[`&${ke}`]:{backgroundColor:j.colorFillAlter},[`&::before, ${xe}-eye, ${xe}-download, ${xe}-delete`]:{display:"none"}},[`${ke}-progress`]:{bottom:j.marginXL,width:`calc(100% - ${j.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${ue}-wrapper${ue}-picture-circle-wrapper`]:{[`${ue}${ue}-select`]:{borderRadius:"50%"}}}};var _r=j=>{const{componentCls:ue}=j;return{[`${ue}-rtl`]:{direction:"rtl"}}};const Xr=j=>{const{componentCls:ue,colorTextDisabled:xe}=j;return{[`${ue}-wrapper`]:Object.assign(Object.assign({},(0,Dt.Wf)(j)),{[ue]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ue}-select`]:{display:"inline-block"},[`${ue}-disabled`]:{color:xe,cursor:"not-allowed"}})}};var Lr=(0,ln.Z)("Upload",j=>{const{fontSizeHeading3:ue,fontSize:xe,lineHeight:be,lineWidth:Ze,controlHeightLG:Le}=j,ke=Math.round(xe*be),Ae=(0,$t.TS)(j,{uploadThumbnailSize:ue*2,uploadProgressOffset:ke/2+Ze,uploadPicCardSize:Le*2.55});return[Xr(Ae),vn(Ae),Dr(Ae),Ir(Ae),yn(Ae),cr(Ae),_r(Ae),(0,mn.Z)(Ae)]},j=>({actionsColor:j.colorTextDescription})),so=function(j,ue,xe,be){function Ze(Le){return Le instanceof xe?Le:new xe(function(ke){ke(Le)})}return new(xe||(xe=Promise))(function(Le,ke){function Ae(qt){try{kt(be.next(qt))}catch(kn){ke(kn)}}function Ht(qt){try{kt(be.throw(qt))}catch(kn){ke(kn)}}function kt(qt){qt.done?Le(qt.value):Ze(qt.value).then(Ae,Ht)}kt((be=be.apply(j,ue||[])).next())})};const Jr=`__LIST_IGNORE_${Date.now()}__`,Ge=(j,ue)=>{const{fileList:xe,defaultFileList:be,onRemove:Ze,showUploadList:Le=!0,listType:ke="text",onPreview:Ae,onDownload:Ht,onChange:kt,onDrop:qt,previewFile:kn,disabled:Rn,locale:an,iconRender:h,isImageUrl:Br,progress:Qn,prefixCls:ur,className:er,type:hr="select",children:qn,style:$n,itemRender:Pn,maxCount:zn,data:kr={},multiple:In=!1,action:Er="",accept:jr="",supportServerRender:Ur=!0,rootClassName:Gr}=j,Yr=t.useContext(Me.Z),U=Rn!=null?Rn:Yr,[me,Ye]=(0,_.Z)(be||[],{value:xe,postState:Ln=>Ln!=null?Ln:[]}),[At,en]=t.useState("drop"),gn=t.useRef(null);t.useMemo(()=>{const Ln=Date.now();(xe||[]).forEach((mr,Hn)=>{!mr.uid&&!Object.isFrozen(mr)&&(mr.uid=`__AUTO__${Ln}_${Hn}__`)})},[xe]);const Yt=(Ln,mr,Hn)=>{let Wt=(0,l.Z)(mr),dr=!1;zn===1?Wt=Wt.slice(-1):zn&&(dr=Wt.length>zn,Wt=Wt.slice(0,zn)),(0,V.flushSync)(()=>{Ye(Wt)});const Tr={file:Ln,fileList:Wt};Hn&&(Tr.event=Hn),(!dr||Wt.some(Hr=>Hr.uid===Ln.uid))&&(0,V.flushSync)(()=>{kt==null||kt(Tr)})},Zt=(Ln,mr)=>so(void 0,void 0,void 0,function*(){const{beforeUpload:Hn,transformFile:Wt}=j;let dr=Ln;if(Hn){const Tr=yield Hn(Ln,mr);if(Tr===!1)return!1;if(delete Ln[Jr],Tr===Jr)return Object.defineProperty(Ln,Jr,{value:!0,configurable:!0}),!1;typeof Tr=="object"&&Tr&&(dr=Tr)}return Wt&&(dr=yield Wt(dr)),dr}),Ue=Ln=>{const mr=Ln.filter(dr=>!dr.file[Jr]);if(!mr.length)return;const Hn=mr.map(dr=>$(dr.file));let Wt=(0,l.Z)(me);Hn.forEach(dr=>{Wt=f(dr,Wt)}),Hn.forEach((dr,Tr)=>{let Hr=dr;if(mr[Tr].parsedFile)dr.status="uploading";else{const{originFileObj:to}=dr;let no;try{no=new File([to],to.name,{type:to.type})}catch(yo){no=new Blob([to],{type:to.type}),no.name=to.name,no.lastModifiedDate=new Date,no.lastModified=new Date().getTime()}no.uid=dr.uid,Hr=no}Yt(Hr,Wt)})},yt=(Ln,mr,Hn)=>{try{typeof Ln=="string"&&(Ln=JSON.parse(Ln))}catch(Tr){}if(!Q(mr,me))return;const Wt=$(mr);Wt.status="done",Wt.percent=100,Wt.response=Ln,Wt.xhr=Hn;const dr=f(Wt,me);Yt(Wt,dr)},tn=(Ln,mr)=>{if(!Q(mr,me))return;const Hn=$(mr);Hn.status="uploading",Hn.percent=Ln.percent;const Wt=f(Hn,me);Yt(Hn,Wt,Ln)},nn=(Ln,mr,Hn)=>{if(!Q(Hn,me))return;const Wt=$(Hn);Wt.error=Ln,Wt.response=mr,Wt.status="error";const dr=f(Wt,me);Yt(Wt,dr)},Sn=Ln=>{let mr;Promise.resolve(typeof Ze=="function"?Ze(Ln):Ze).then(Hn=>{var Wt;if(Hn===!1)return;const dr=Re(Ln,me);dr&&(mr=Object.assign(Object.assign({},Ln),{status:"removed"}),me==null||me.forEach(Tr=>{const Hr=mr.uid!==void 0?"uid":"name";Tr[Hr]===mr[Hr]&&!Object.isFrozen(Tr)&&(Tr.status="removed")}),(Wt=gn.current)===null||Wt===void 0||Wt.abort(mr),Yt(mr,dr))})},Cn=Ln=>{en(Ln.type),Ln.type==="drop"&&(qt==null||qt(Ln))};t.useImperativeHandle(ue,()=>({onBatchStart:Ue,onSuccess:yt,onProgress:tn,onError:nn,fileList:me,upload:gn.current}));const{getPrefixCls:Gn,direction:Bn,upload:st}=t.useContext(ye.E_),Ot=Gn("upload",ur),wn=Object.assign(Object.assign({onBatchStart:Ue,onError:nn,onProgress:tn,onSuccess:yt},j),{data:kr,multiple:In,action:Er,accept:jr,supportServerRender:Ur,prefixCls:Ot,disabled:U,beforeUpload:Zt,onChange:void 0});delete wn.className,delete wn.style,(!qn||U)&&delete wn.id;const[ir,Mn]=Lr(Ot),[Yn]=(0,Ie.Z)("Upload",je.Z.Upload),{showRemoveIcon:$r,showPreviewIcon:Fr,showDownloadIcon:Kn,removeIcon:Pr,previewIcon:Jn,downloadIcon:zr}=typeof Le=="boolean"?{}:Le,eo=(Ln,mr)=>Le?t.createElement(wt,{prefixCls:Ot,listType:ke,items:me,previewFile:kn,onPreview:Ae,onDownload:Ht,onRemove:Sn,showRemoveIcon:!U&&$r,showPreviewIcon:Fr,showDownloadIcon:Kn,removeIcon:Pr,previewIcon:Jn,downloadIcon:zr,iconRender:h,locale:Object.assign(Object.assign({},Yn),an),isImageUrl:Br,progress:Qn,appendAction:Ln,appendActionVisible:mr,itemRender:Pn,disabled:U}):Ln,ao=L()(`${Ot}-wrapper`,er,Gr,Mn,st==null?void 0:st.className,{[`${Ot}-rtl`]:Bn==="rtl",[`${Ot}-picture-card-wrapper`]:ke==="picture-card",[`${Ot}-picture-circle-wrapper`]:ke==="picture-circle"}),Eo=Object.assign(Object.assign({},st==null?void 0:st.style),$n);if(hr==="drag"){const Ln=L()(Mn,Ot,`${Ot}-drag`,{[`${Ot}-drag-uploading`]:me.some(mr=>mr.status==="uploading"),[`${Ot}-drag-hover`]:At==="dragover",[`${Ot}-disabled`]:U,[`${Ot}-rtl`]:Bn==="rtl"});return ir(t.createElement("span",{className:ao},t.createElement("div",{className:Ln,style:Eo,onDrop:Cn,onDragOver:Cn,onDragLeave:Cn},t.createElement(x,Object.assign({},wn,{ref:gn,className:`${Ot}-btn`}),t.createElement("div",{className:`${Ot}-drag-container`},qn))),eo()))}const ro=L()(Ot,`${Ot}-select`,{[`${Ot}-disabled`]:U}),po=(Ln=>t.createElement("div",{className:ro,style:Ln},t.createElement(x,Object.assign({},wn,{ref:gn}))))(qn?void 0:{display:"none"});return ir(ke==="picture-card"||ke==="picture-circle"?t.createElement("span",{className:ao},eo(po,!!qn)):t.createElement("span",{className:ao},po,eo()))};var lt=t.forwardRef(Ge),Pt=function(j,ue){var xe={};for(var be in j)Object.prototype.hasOwnProperty.call(j,be)&&ue.indexOf(be)<0&&(xe[be]=j[be]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,be=Object.getOwnPropertySymbols(j);Ze<be.length;Ze++)ue.indexOf(be[Ze])<0&&Object.prototype.propertyIsEnumerable.call(j,be[Ze])&&(xe[be[Ze]]=j[be[Ze]]);return xe},Kt=t.forwardRef((j,ue)=>{var{style:xe,height:be}=j,Ze=Pt(j,["style","height"]);return t.createElement(lt,Object.assign({ref:ue},Ze,{type:"drag",style:Object.assign(Object.assign({},xe),{height:be})}))});const Xt=lt;Xt.Dragger=Kt,Xt.LIST_IGNORE=Jr;var zt=Xt},14625:function(ht){function le(t){var l,P,L="";if(typeof t=="string"||typeof t=="number")L+=t;else if(typeof t=="object")if(Array.isArray(t)){var T=t.length;for(l=0;l<T;l++)t[l]&&(P=le(t[l]))&&(L&&(L+=" "),L+=P)}else for(P in t)t[P]&&(L&&(L+=" "),L+=P);return L}function e(){for(var t,l,P=0,L="",T=arguments.length;P<T;P++)(t=arguments[P])&&(l=le(t))&&(L&&(L+=" "),L+=l);return L}ht.exports=e,ht.exports.clsx=e},31193:function(ht,le,e){var t=e(48955);function l(P){this.mode=t.MODE_8BIT_BYTE,this.data=P}l.prototype={getLength:function(P){return this.data.length},write:function(P){for(var L=0;L<this.data.length;L++)P.put(this.data.charCodeAt(L),8)}},ht.exports=l},31144:function(ht){function le(){this.buffer=new Array,this.length=0}le.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var l=0;l<t;l++)this.putBit((e>>>t-l-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},ht.exports=le},78485:function(ht){ht.exports={L:1,M:0,Q:3,H:2}},13679:function(ht,le,e){var t=e(87532);function l(P,L){if(P.length==null)throw new Error(P.length+"/"+L);for(var T=0;T<P.length&&P[T]==0;)T++;this.num=new Array(P.length-T+L);for(var p=0;p<P.length-T;p++)this.num[p]=P[p+T]}l.prototype={get:function(P){return this.num[P]},getLength:function(){return this.num.length},multiply:function(P){for(var L=new Array(this.getLength()+P.getLength()-1),T=0;T<this.getLength();T++)for(var p=0;p<P.getLength();p++)L[T+p]^=t.gexp(t.glog(this.get(T))+t.glog(P.get(p)));return new l(L,0)},mod:function(P){if(this.getLength()-P.getLength()<0)return this;for(var L=t.glog(this.get(0))-t.glog(P.get(0)),T=new Array(this.getLength()),p=0;p<this.getLength();p++)T[p]=this.get(p);for(var p=0;p<P.getLength();p++)T[p]^=t.gexp(t.glog(P.get(p))+L);return new l(T,0).mod(P)}},ht.exports=l},86397:function(ht,le,e){var t=e(31193),l=e(84590),P=e(31144),L=e(28688),T=e(13679);function p(F,W){this.typeNumber=F,this.errorCorrectLevel=W,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var n=p.prototype;n.addData=function(F){var W=new t(F);this.dataList.push(W),this.dataCache=null},n.isDark=function(F,W){if(F<0||this.moduleCount<=F||W<0||this.moduleCount<=W)throw new Error(F+","+W);return this.modules[F][W]},n.getModuleCount=function(){return this.moduleCount},n.make=function(){if(this.typeNumber<1){var F=1;for(F=1;F<40;F++){for(var W=l.getRSBlocks(F,this.errorCorrectLevel),w=new P,D=0,g=0;g<W.length;g++)D+=W[g].dataCount;for(var g=0;g<this.dataList.length;g++){var M=this.dataList[g];w.put(M.mode,4),w.put(M.getLength(),L.getLengthInBits(M.mode,F)),M.write(w)}if(w.getLengthInBits()<=D*8)break}this.typeNumber=F}this.makeImpl(!1,this.getBestMaskPattern())},n.makeImpl=function(F,W){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var w=0;w<this.moduleCount;w++){this.modules[w]=new Array(this.moduleCount);for(var D=0;D<this.moduleCount;D++)this.modules[w][D]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(F,W),this.typeNumber>=7&&this.setupTypeNumber(F),this.dataCache==null&&(this.dataCache=p.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,W)},n.setupPositionProbePattern=function(F,W){for(var w=-1;w<=7;w++)if(!(F+w<=-1||this.moduleCount<=F+w))for(var D=-1;D<=7;D++)W+D<=-1||this.moduleCount<=W+D||(0<=w&&w<=6&&(D==0||D==6)||0<=D&&D<=6&&(w==0||w==6)||2<=w&&w<=4&&2<=D&&D<=4?this.modules[F+w][W+D]=!0:this.modules[F+w][W+D]=!1)},n.getBestMaskPattern=function(){for(var F=0,W=0,w=0;w<8;w++){this.makeImpl(!0,w);var D=L.getLostPoint(this);(w==0||F>D)&&(F=D,W=w)}return W},n.createMovieClip=function(F,W,w){var D=F.createEmptyMovieClip(W,w),g=1;this.make();for(var M=0;M<this.modules.length;M++)for(var B=M*g,I=0;I<this.modules[M].length;I++){var E=I*g,ne=this.modules[M][I];ne&&(D.beginFill(0,100),D.moveTo(E,B),D.lineTo(E+g,B),D.lineTo(E+g,B+g),D.lineTo(E,B+g),D.endFill())}return D},n.setupTimingPattern=function(){for(var F=8;F<this.moduleCount-8;F++)this.modules[F][6]==null&&(this.modules[F][6]=F%2==0);for(var W=8;W<this.moduleCount-8;W++)this.modules[6][W]==null&&(this.modules[6][W]=W%2==0)},n.setupPositionAdjustPattern=function(){for(var F=L.getPatternPosition(this.typeNumber),W=0;W<F.length;W++)for(var w=0;w<F.length;w++){var D=F[W],g=F[w];if(this.modules[D][g]==null)for(var M=-2;M<=2;M++)for(var B=-2;B<=2;B++)M==-2||M==2||B==-2||B==2||M==0&&B==0?this.modules[D+M][g+B]=!0:this.modules[D+M][g+B]=!1}},n.setupTypeNumber=function(F){for(var W=L.getBCHTypeNumber(this.typeNumber),w=0;w<18;w++){var D=!F&&(W>>w&1)==1;this.modules[Math.floor(w/3)][w%3+this.moduleCount-8-3]=D}for(var w=0;w<18;w++){var D=!F&&(W>>w&1)==1;this.modules[w%3+this.moduleCount-8-3][Math.floor(w/3)]=D}},n.setupTypeInfo=function(F,W){for(var w=this.errorCorrectLevel<<3|W,D=L.getBCHTypeInfo(w),g=0;g<15;g++){var M=!F&&(D>>g&1)==1;g<6?this.modules[g][8]=M:g<8?this.modules[g+1][8]=M:this.modules[this.moduleCount-15+g][8]=M}for(var g=0;g<15;g++){var M=!F&&(D>>g&1)==1;g<8?this.modules[8][this.moduleCount-g-1]=M:g<9?this.modules[8][15-g-1+1]=M:this.modules[8][15-g-1]=M}this.modules[this.moduleCount-8][8]=!F},n.mapData=function(F,W){for(var w=-1,D=this.moduleCount-1,g=7,M=0,B=this.moduleCount-1;B>0;B-=2)for(B==6&&B--;;){for(var I=0;I<2;I++)if(this.modules[D][B-I]==null){var E=!1;M<F.length&&(E=(F[M]>>>g&1)==1);var ne=L.getMask(W,D,B-I);ne&&(E=!E),this.modules[D][B-I]=E,g--,g==-1&&(M++,g=7)}if(D+=w,D<0||this.moduleCount<=D){D-=w,w=-w;break}}},p.PAD0=236,p.PAD1=17,p.createData=function(F,W,w){for(var D=l.getRSBlocks(F,W),g=new P,M=0;M<w.length;M++){var B=w[M];g.put(B.mode,4),g.put(B.getLength(),L.getLengthInBits(B.mode,F)),B.write(g)}for(var I=0,M=0;M<D.length;M++)I+=D[M].dataCount;if(g.getLengthInBits()>I*8)throw new Error("code length overflow. ("+g.getLengthInBits()+">"+I*8+")");for(g.getLengthInBits()+4<=I*8&&g.put(0,4);g.getLengthInBits()%8!=0;)g.putBit(!1);for(;!(g.getLengthInBits()>=I*8||(g.put(p.PAD0,8),g.getLengthInBits()>=I*8));)g.put(p.PAD1,8);return p.createBytes(g,D)},p.createBytes=function(F,W){for(var w=0,D=0,g=0,M=new Array(W.length),B=new Array(W.length),I=0;I<W.length;I++){var E=W[I].dataCount,ne=W[I].totalCount-E;D=Math.max(D,E),g=Math.max(g,ne),M[I]=new Array(E);for(var k=0;k<M[I].length;k++)M[I][k]=255&F.buffer[k+w];w+=E;var de=L.getErrorCorrectPolynomial(ne),ie=new T(M[I],de.getLength()-1),H=ie.mod(de);B[I]=new Array(de.getLength()-1);for(var k=0;k<B[I].length;k++){var A=k+H.getLength()-B[I].length;B[I][k]=A>=0?H.get(A):0}}for(var ae=0,k=0;k<W.length;k++)ae+=W[k].totalCount;for(var C=new Array(ae),S=0,k=0;k<D;k++)for(var I=0;I<W.length;I++)k<M[I].length&&(C[S++]=M[I][k]);for(var k=0;k<g;k++)for(var I=0;I<W.length;I++)k<B[I].length&&(C[S++]=B[I][k]);return C},ht.exports=p},84590:function(ht,le,e){var t=e(78485);function l(P,L){this.totalCount=P,this.dataCount=L}l.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],l.getRSBlocks=function(P,L){var T=l.getRsBlockTable(P,L);if(T==null)throw new Error("bad rs block @ typeNumber:"+P+"/errorCorrectLevel:"+L);for(var p=T.length/3,n=new Array,F=0;F<p;F++)for(var W=T[F*3+0],w=T[F*3+1],D=T[F*3+2],g=0;g<W;g++)n.push(new l(w,D));return n},l.getRsBlockTable=function(P,L){switch(L){case t.L:return l.RS_BLOCK_TABLE[(P-1)*4+0];case t.M:return l.RS_BLOCK_TABLE[(P-1)*4+1];case t.Q:return l.RS_BLOCK_TABLE[(P-1)*4+2];case t.H:return l.RS_BLOCK_TABLE[(P-1)*4+3];default:return}},ht.exports=l},87532:function(ht){for(var le={glog:function(t){if(t<1)throw new Error("glog("+t+")");return le.LOG_TABLE[t]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return le.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},e=0;e<8;e++)le.EXP_TABLE[e]=1<<e;for(var e=8;e<256;e++)le.EXP_TABLE[e]=le.EXP_TABLE[e-4]^le.EXP_TABLE[e-5]^le.EXP_TABLE[e-6]^le.EXP_TABLE[e-8];for(var e=0;e<255;e++)le.LOG_TABLE[le.EXP_TABLE[e]]=e;ht.exports=le},48955:function(ht){ht.exports={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8}},28688:function(ht,le,e){var t=e(48955),l=e(13679),P=e(87532),L={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},T={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(p){for(var n=p<<10;T.getBCHDigit(n)-T.getBCHDigit(T.G15)>=0;)n^=T.G15<<T.getBCHDigit(n)-T.getBCHDigit(T.G15);return(p<<10|n)^T.G15_MASK},getBCHTypeNumber:function(p){for(var n=p<<12;T.getBCHDigit(n)-T.getBCHDigit(T.G18)>=0;)n^=T.G18<<T.getBCHDigit(n)-T.getBCHDigit(T.G18);return p<<12|n},getBCHDigit:function(p){for(var n=0;p!=0;)n++,p>>>=1;return n},getPatternPosition:function(p){return T.PATTERN_POSITION_TABLE[p-1]},getMask:function(p,n,F){switch(p){case L.PATTERN000:return(n+F)%2==0;case L.PATTERN001:return n%2==0;case L.PATTERN010:return F%3==0;case L.PATTERN011:return(n+F)%3==0;case L.PATTERN100:return(Math.floor(n/2)+Math.floor(F/3))%2==0;case L.PATTERN101:return n*F%2+n*F%3==0;case L.PATTERN110:return(n*F%2+n*F%3)%2==0;case L.PATTERN111:return(n*F%3+(n+F)%2)%2==0;default:throw new Error("bad maskPattern:"+p)}},getErrorCorrectPolynomial:function(p){for(var n=new l([1],0),F=0;F<p;F++)n=n.multiply(new l([1,P.gexp(F)],0));return n},getLengthInBits:function(p,n){if(1<=n&&n<10)switch(p){case t.MODE_NUMBER:return 10;case t.MODE_ALPHA_NUM:return 9;case t.MODE_8BIT_BYTE:return 8;case t.MODE_KANJI:return 8;default:throw new Error("mode:"+p)}else if(n<27)switch(p){case t.MODE_NUMBER:return 12;case t.MODE_ALPHA_NUM:return 11;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 10;default:throw new Error("mode:"+p)}else if(n<41)switch(p){case t.MODE_NUMBER:return 14;case t.MODE_ALPHA_NUM:return 13;case t.MODE_8BIT_BYTE:return 16;case t.MODE_KANJI:return 12;default:throw new Error("mode:"+p)}else throw new Error("type:"+n)},getLostPoint:function(p){for(var n=p.getModuleCount(),F=0,W=0;W<n;W++)for(var w=0;w<n;w++){for(var D=0,g=p.isDark(W,w),M=-1;M<=1;M++)if(!(W+M<0||n<=W+M))for(var B=-1;B<=1;B++)w+B<0||n<=w+B||M==0&&B==0||g==p.isDark(W+M,w+B)&&D++;D>5&&(F+=3+D-5)}for(var W=0;W<n-1;W++)for(var w=0;w<n-1;w++){var I=0;p.isDark(W,w)&&I++,p.isDark(W+1,w)&&I++,p.isDark(W,w+1)&&I++,p.isDark(W+1,w+1)&&I++,(I==0||I==4)&&(F+=3)}for(var W=0;W<n;W++)for(var w=0;w<n-6;w++)p.isDark(W,w)&&!p.isDark(W,w+1)&&p.isDark(W,w+2)&&p.isDark(W,w+3)&&p.isDark(W,w+4)&&!p.isDark(W,w+5)&&p.isDark(W,w+6)&&(F+=40);for(var w=0;w<n;w++)for(var W=0;W<n-6;W++)p.isDark(W,w)&&!p.isDark(W+1,w)&&p.isDark(W+2,w)&&p.isDark(W+3,w)&&p.isDark(W+4,w)&&!p.isDark(W+5,w)&&p.isDark(W+6,w)&&(F+=40);for(var E=0,w=0;w<n;w++)for(var W=0;W<n;W++)p.isDark(W,w)&&E++;var ne=Math.abs(100*E/n/n-50)/5;return F+=ne*10,F}};ht.exports=T},15845:function(ht,le,e){"use strict";function t(q){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(_){return typeof _}:t=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},t(q)}function l(){return l=Object.assign||function(q){for(var x=1;x<arguments.length;x++){var _=arguments[x];for(var V in _)Object.prototype.hasOwnProperty.call(_,V)&&(q[V]=_[V])}return q},l.apply(this,arguments)}function P(q,x){var _=Object.keys(q);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(q);x&&(V=V.filter(function(ye){return Object.getOwnPropertyDescriptor(q,ye).enumerable})),_.push.apply(_,V)}return _}function L(q){for(var x=1;x<arguments.length;x++){var _=arguments[x]!=null?arguments[x]:{};x%2?P(_,!0).forEach(function(V){I(q,V,_[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(q,Object.getOwnPropertyDescriptors(_)):P(_).forEach(function(V){Object.defineProperty(q,V,Object.getOwnPropertyDescriptor(_,V))})}return q}function T(q,x){if(q==null)return{};var _=p(q,x),V,ye;if(Object.getOwnPropertySymbols){var Me=Object.getOwnPropertySymbols(q);for(ye=0;ye<Me.length;ye++)V=Me[ye],!(x.indexOf(V)>=0)&&Object.prototype.propertyIsEnumerable.call(q,V)&&(_[V]=q[V])}return _}function p(q,x){if(q==null)return{};var _={},V=Object.keys(q),ye,Me;for(Me=0;Me<V.length;Me++)ye=V[Me],!(x.indexOf(ye)>=0)&&(_[ye]=q[ye]);return _}function n(q,x){if(!(q instanceof x))throw new TypeError("Cannot call a class as a function")}function F(q,x){for(var _=0;_<x.length;_++){var V=x[_];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(q,V.key,V)}}function W(q,x,_){return x&&F(q.prototype,x),_&&F(q,_),q}function w(q,x){return x&&(t(x)==="object"||typeof x=="function")?x:g(q)}function D(q){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)},D(q)}function g(q){if(q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q}function M(q,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(x&&x.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),x&&B(q,x)}function B(q,x){return B=Object.setPrototypeOf||function(V,ye){return V.__proto__=ye,V},B(q,x)}function I(q,x,_){return x in q?Object.defineProperty(q,x,{value:_,enumerable:!0,configurable:!0,writable:!0}):q[x]=_,q}var E=e(59301),ne=e(12708),k=e(86397),de=e(78485);function ie(q){for(var x="",_=0;_<q.length;_++){var V=q.charCodeAt(_);V<128?x+=String.fromCharCode(V):V<2048?(x+=String.fromCharCode(192|V>>6),x+=String.fromCharCode(128|V&63)):V<55296||V>=57344?(x+=String.fromCharCode(224|V>>12),x+=String.fromCharCode(128|V>>6&63),x+=String.fromCharCode(128|V&63)):(_++,V=65536+((V&1023)<<10|q.charCodeAt(_)&1023),x+=String.fromCharCode(240|V>>18),x+=String.fromCharCode(128|V>>12&63),x+=String.fromCharCode(128|V>>6&63),x+=String.fromCharCode(128|V&63))}return x}var H={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},A={},ae=4,C=.1;function S(q){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=[];return q.forEach(function(V,ye){var Me=null;V.forEach(function(Ie,je){if(!Ie&&Me!==null){_.push("M".concat(Me+x," ").concat(ye+x,"h").concat(je-Me,"v1H").concat(Me+x,"z")),Me=null;return}if(je===V.length-1){if(!Ie)return;Me===null?_.push("M".concat(je+x,",").concat(ye+x," h1v1H").concat(je+x,"z")):_.push("M".concat(Me+x,",").concat(ye+x," h").concat(je+1-Me,"v1H").concat(Me+x,"z"));return}Ie&&Me===null&&(Me=je)})}),_.join("")}function J(q,x){return q.slice().map(function(_,V){return V<x.y||V>=x.y+x.h?_:_.map(function(ye,Me){return Me<x.x||Me>=x.x+x.w?ye:!1})})}function te(q,x){var _=q.imageSettings,V=q.size,ye=q.includeMargin;if(_==null)return null;var Me=ye?ae:0,Ie=x.length+Me*2,je=Math.floor(V*C),Je=Ie/V,rt=(_.width||je)*Je,Ke=(_.height||je)*Je,Te=_.x==null?x.length/2-rt/2:_.x*Je,Qe=_.y==null?x.length/2-Ke/2:_.y*Je,vt=null;if(_.excavate){var De=Math.floor(Te),ft=Math.floor(Qe),St=Math.ceil(rt+Te-De),$e=Math.ceil(Ke+Qe-ft);vt={x:De,y:ft,w:St,h:$e}}return{x:Te,y:Qe,h:Ke,w:rt,excavation:vt}}var z=function(){try{new Path2D().addPath(new Path2D)}catch(q){return!1}return!0}(),v=function(q){M(x,q);function x(){var _,V;n(this,x);for(var ye=arguments.length,Me=new Array(ye),Ie=0;Ie<ye;Ie++)Me[Ie]=arguments[Ie];return V=w(this,(_=D(x)).call.apply(_,[this].concat(Me))),I(g(V),"_canvas",void 0),I(g(V),"_image",void 0),I(g(V),"state",{imgLoaded:!1}),I(g(V),"handleImageLoad",function(){V.setState({imgLoaded:!0})}),V}return W(x,[{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var V=this.props,ye=V.value,Me=V.size,Ie=V.level,je=V.bgColor,Je=V.fgColor,rt=V.includeMargin,Ke=V.imageSettings,Te=new k(-1,de[Ie]);if(Te.addData(ie(ye)),Te.make(),this._canvas!=null){var Qe=this._canvas,vt=Qe.getContext("2d");if(!vt)return;var De=Te.modules;if(De===null)return;var ft=rt?ae:0,St=De.length+ft*2,$e=te(this.props,De);Ke!=null&&$e!=null&&$e.excavation!=null&&(De=J(De,$e.excavation));var ve=window.devicePixelRatio||1;Qe.height=Qe.width=Me*ve;var at=Me/St*ve;vt.scale(at,at),vt.fillStyle=je,vt.fillRect(0,0,St,St),vt.fillStyle=Je,z?vt.fill(new Path2D(S(De,ft))):De.forEach(function(Ee,Z){Ee.forEach(function(K,m){K&&vt.fillRect(m+ft,Z+ft,1,1)})}),this.state.imgLoaded&&this._image&&$e!=null&&vt.drawImage(this._image,$e.x+ft,$e.y+ft,$e.w,$e.h)}}},{key:"render",value:function(){var V=this,ye=this.props,Me=ye.value,Ie=ye.size,je=ye.level,Je=ye.bgColor,rt=ye.fgColor,Ke=ye.style,Te=ye.includeMargin,Qe=ye.imageSettings,vt=T(ye,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),De=L({height:Ie,width:Ie},Ke),ft=null,St=Qe&&Qe.src;return Qe!=null&&St!=null&&(ft=E.createElement("img",{src:St,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(ve){return V._image=ve}})),E.createElement(E.Fragment,null,E.createElement("canvas",l({style:De,height:Ie,width:Ie,ref:function(ve){return V._canvas=ve}},vt)),ft)}}]),x}(E.PureComponent);I(v,"defaultProps",H);var b=function(q){M(x,q);function x(){return n(this,x),w(this,D(x).apply(this,arguments))}return W(x,[{key:"render",value:function(){var V=this.props,ye=V.value,Me=V.size,Ie=V.level,je=V.bgColor,Je=V.fgColor,rt=V.includeMargin,Ke=V.imageSettings,Te=T(V,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),Qe=new k(-1,de[Ie]);Qe.addData(ie(ye)),Qe.make();var vt=Qe.modules;if(vt===null)return null;var De=rt?ae:0,ft=vt.length+De*2,St=te(this.props,vt),$e=null;Ke!=null&&St!=null&&(St.excavation!=null&&(vt=J(vt,St.excavation)),$e=E.createElement("image",{xlinkHref:Ke.src,height:St.h,width:St.w,x:St.x+De,y:St.y+De,preserveAspectRatio:"none"}));var ve=S(vt,De);return E.createElement("svg",l({shapeRendering:"crispEdges",height:Me,width:Me,viewBox:"0 0 ".concat(ft," ").concat(ft)},Te),E.createElement("path",{fill:je,d:"M0,0 h".concat(ft,"v").concat(ft,"H0z")}),E.createElement("path",{fill:Je,d:ve}),$e)}}]),x}(E.PureComponent);I(b,"defaultProps",H);var ce=function(x){var _=x.renderAs,V=T(x,["renderAs"]),ye=_==="svg"?b:v;return E.createElement(ye,V)};ce.defaultProps=L({renderAs:"canvas"},H),ht.exports=ce},39417:function(ht,le,e){"use strict";e.d(le,{Z:function(){return S}});var t=e(54476),l=e(20068),P=e(75931),L=e(33885),T=e(67732),p=e(83652),n=e(31226),F=e(42403),W=e(158),w=e(92310),D=e.n(w),g=e(26112),M=e(59301),B=e(39378),I=function(te){for(var z=te.prefixCls,v=te.level,b=te.isStart,ce=te.isEnd,q="".concat(z,"-indent-unit"),x=[],_=0;_<v;_+=1){var V;x.push(M.createElement("span",{key:_,className:D()(q,(V={},(0,l.Z)(V,"".concat(q,"-start"),b[_]),(0,l.Z)(V,"".concat(q,"-end"),ce[_]),V))}))}return M.createElement("span",{"aria-hidden":"true",className:"".concat(z,"-indent")},x)},E=M.memo(I),ne=e(67841),k=e(71430),de=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ie="open",H="close",A="---",ae=function(J){(0,F.Z)(z,J);var te=(0,W.Z)(z);function z(){var v;(0,T.Z)(this,z);for(var b=arguments.length,ce=new Array(b),q=0;q<b;q++)ce[q]=arguments[q];return v=te.call.apply(te,[this].concat(ce)),v.state={dragNodeHighlight:!1},v.selectHandle=void 0,v.cacheIndent=void 0,v.onSelectorClick=function(x){var _=v.props.context.onNodeClick;_(x,(0,k.F)(v.props)),v.isSelectable()?v.onSelect(x):v.onCheck(x)},v.onSelectorDoubleClick=function(x){var _=v.props.context.onNodeDoubleClick;_(x,(0,k.F)(v.props))},v.onSelect=function(x){if(!v.isDisabled()){var _=v.props.context.onNodeSelect;_(x,(0,k.F)(v.props))}},v.onCheck=function(x){if(!v.isDisabled()){var _=v.props,V=_.disableCheckbox,ye=_.checked,Me=v.props.context.onNodeCheck;if(!(!v.isCheckable()||V)){var Ie=!ye;Me(x,(0,k.F)(v.props),Ie)}}},v.onMouseEnter=function(x){var _=v.props.context.onNodeMouseEnter;_(x,(0,k.F)(v.props))},v.onMouseLeave=function(x){var _=v.props.context.onNodeMouseLeave;_(x,(0,k.F)(v.props))},v.onContextMenu=function(x){var _=v.props.context.onNodeContextMenu;_(x,(0,k.F)(v.props))},v.onDragStart=function(x){var _=v.props.context.onNodeDragStart;x.stopPropagation(),v.setState({dragNodeHighlight:!0}),_(x,(0,n.Z)(v));try{x.dataTransfer.setData("text/plain","")}catch(V){}},v.onDragEnter=function(x){var _=v.props.context.onNodeDragEnter;x.preventDefault(),x.stopPropagation(),_(x,(0,n.Z)(v))},v.onDragOver=function(x){var _=v.props.context.onNodeDragOver;x.preventDefault(),x.stopPropagation(),_(x,(0,n.Z)(v))},v.onDragLeave=function(x){var _=v.props.context.onNodeDragLeave;x.stopPropagation(),_(x,(0,n.Z)(v))},v.onDragEnd=function(x){var _=v.props.context.onNodeDragEnd;x.stopPropagation(),v.setState({dragNodeHighlight:!1}),_(x,(0,n.Z)(v))},v.onDrop=function(x){var _=v.props.context.onNodeDrop;x.preventDefault(),x.stopPropagation(),v.setState({dragNodeHighlight:!1}),_(x,(0,n.Z)(v))},v.onExpand=function(x){var _=v.props,V=_.loading,ye=_.context.onNodeExpand;V||ye(x,(0,k.F)(v.props))},v.setSelectHandle=function(x){v.selectHandle=x},v.getNodeState=function(){var x=v.props.expanded;return v.isLeaf()?null:x?ie:H},v.hasChildren=function(){var x=v.props.eventKey,_=v.props.context.keyEntities,V=(0,ne.Z)(_,x)||{},ye=V.children;return!!(ye||[]).length},v.isLeaf=function(){var x=v.props,_=x.isLeaf,V=x.loaded,ye=v.props.context.loadData,Me=v.hasChildren();return _===!1?!1:_||!ye&&!Me||ye&&V&&!Me},v.isDisabled=function(){var x=v.props.disabled,_=v.props.context.disabled;return!!(_||x)},v.isCheckable=function(){var x=v.props.checkable,_=v.props.context.checkable;return!_||x===!1?!1:_},v.syncLoadData=function(x){var _=x.expanded,V=x.loading,ye=x.loaded,Me=v.props.context,Ie=Me.loadData,je=Me.onNodeLoad;V||Ie&&_&&!v.isLeaf()&&!v.hasChildren()&&!ye&&je((0,k.F)(v.props))},v.isDraggable=function(){var x=v.props,_=x.data,V=x.context.draggable;return!!(V&&(!V.nodeDraggable||V.nodeDraggable(_)))},v.renderDragHandler=function(){var x=v.props.context,_=x.draggable,V=x.prefixCls;return _!=null&&_.icon?M.createElement("span",{className:"".concat(V,"-draggable-icon")},_.icon):null},v.renderSwitcherIconDom=function(x){var _=v.props.switcherIcon,V=v.props.context.switcherIcon,ye=_||V;return typeof ye=="function"?ye((0,L.Z)((0,L.Z)({},v.props),{},{isLeaf:x})):ye},v.renderSwitcher=function(){var x=v.props.expanded,_=v.props.context.prefixCls;if(v.isLeaf()){var V=v.renderSwitcherIconDom(!0);return V!==!1?M.createElement("span",{className:D()("".concat(_,"-switcher"),"".concat(_,"-switcher-noop"))},V):null}var ye=D()("".concat(_,"-switcher"),"".concat(_,"-switcher_").concat(x?ie:H)),Me=v.renderSwitcherIconDom(!1);return Me!==!1?M.createElement("span",{onClick:v.onExpand,className:ye},Me):null},v.renderCheckbox=function(){var x=v.props,_=x.checked,V=x.halfChecked,ye=x.disableCheckbox,Me=v.props.context.prefixCls,Ie=v.isDisabled(),je=v.isCheckable();if(!je)return null;var Je=typeof je!="boolean"?je:null;return M.createElement("span",{className:D()("".concat(Me,"-checkbox"),_&&"".concat(Me,"-checkbox-checked"),!_&&V&&"".concat(Me,"-checkbox-indeterminate"),(Ie||ye)&&"".concat(Me,"-checkbox-disabled")),onClick:v.onCheck},Je)},v.renderIcon=function(){var x=v.props.loading,_=v.props.context.prefixCls;return M.createElement("span",{className:D()("".concat(_,"-iconEle"),"".concat(_,"-icon__").concat(v.getNodeState()||"docu"),x&&"".concat(_,"-icon_loading"))})},v.renderSelector=function(){var x=v.state.dragNodeHighlight,_=v.props,V=_.title,ye=V===void 0?A:V,Me=_.selected,Ie=_.icon,je=_.loading,Je=_.data,rt=v.props.context,Ke=rt.prefixCls,Te=rt.showIcon,Qe=rt.icon,vt=rt.loadData,De=rt.titleRender,ft=v.isDisabled(),St="".concat(Ke,"-node-content-wrapper"),$e;if(Te){var ve=Ie||Qe;$e=ve?M.createElement("span",{className:D()("".concat(Ke,"-iconEle"),"".concat(Ke,"-icon__customize"))},typeof ve=="function"?ve(v.props):ve):v.renderIcon()}else vt&&je&&($e=v.renderIcon());var at;typeof ye=="function"?at=ye(Je):De?at=De(Je):at=ye;var Ee=M.createElement("span",{className:"".concat(Ke,"-title")},at);return M.createElement("span",{ref:v.setSelectHandle,title:typeof ye=="string"?ye:"",className:D()("".concat(St),"".concat(St,"-").concat(v.getNodeState()||"normal"),!ft&&(Me||x)&&"".concat(Ke,"-node-selected")),onMouseEnter:v.onMouseEnter,onMouseLeave:v.onMouseLeave,onContextMenu:v.onContextMenu,onClick:v.onSelectorClick,onDoubleClick:v.onSelectorDoubleClick},$e,Ee,v.renderDropIndicator())},v.renderDropIndicator=function(){var x=v.props,_=x.disabled,V=x.eventKey,ye=v.props.context,Me=ye.draggable,Ie=ye.dropLevelOffset,je=ye.dropPosition,Je=ye.prefixCls,rt=ye.indent,Ke=ye.dropIndicatorRender,Te=ye.dragOverNodeKey,Qe=ye.direction,vt=!!Me,De=!_&&vt&&Te===V,ft=rt!=null?rt:v.cacheIndent;return v.cacheIndent=rt,De?Ke({dropPosition:je,dropLevelOffset:Ie,indent:ft,prefixCls:Je,direction:Qe}):null},v}return(0,p.Z)(z,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var b=this.props.selectable,ce=this.props.context.selectable;return typeof b=="boolean"?b:ce}},{key:"render",value:function(){var b,ce=this.props,q=ce.eventKey,x=ce.className,_=ce.style,V=ce.dragOver,ye=ce.dragOverGapTop,Me=ce.dragOverGapBottom,Ie=ce.isLeaf,je=ce.isStart,Je=ce.isEnd,rt=ce.expanded,Ke=ce.selected,Te=ce.checked,Qe=ce.halfChecked,vt=ce.loading,De=ce.domRef,ft=ce.active,St=ce.data,$e=ce.onMouseMove,ve=ce.selectable,at=(0,P.Z)(ce,de),Ee=this.props.context,Z=Ee.prefixCls,K=Ee.filterTreeNode,m=Ee.keyEntities,a=Ee.dropContainerKey,R=Ee.dropTargetKey,fe=Ee.draggingNodeKey,s=this.isDisabled(),i=(0,g.Z)(at,{aria:!0,data:!0}),X=(0,ne.Z)(m,q)||{},$=X.level,f=Je[Je.length-1],Q=this.isDraggable(),Re=!s&&Q,Pe=fe===q,Se=ve!==void 0?{"aria-selected":!!ve}:void 0;return M.createElement("div",(0,t.Z)({ref:De,className:D()(x,"".concat(Z,"-treenode"),(b={},(0,l.Z)(b,"".concat(Z,"-treenode-disabled"),s),(0,l.Z)(b,"".concat(Z,"-treenode-switcher-").concat(rt?"open":"close"),!Ie),(0,l.Z)(b,"".concat(Z,"-treenode-checkbox-checked"),Te),(0,l.Z)(b,"".concat(Z,"-treenode-checkbox-indeterminate"),Qe),(0,l.Z)(b,"".concat(Z,"-treenode-selected"),Ke),(0,l.Z)(b,"".concat(Z,"-treenode-loading"),vt),(0,l.Z)(b,"".concat(Z,"-treenode-active"),ft),(0,l.Z)(b,"".concat(Z,"-treenode-leaf-last"),f),(0,l.Z)(b,"".concat(Z,"-treenode-draggable"),Q),(0,l.Z)(b,"dragging",Pe),(0,l.Z)(b,"drop-target",R===q),(0,l.Z)(b,"drop-container",a===q),(0,l.Z)(b,"drag-over",!s&&V),(0,l.Z)(b,"drag-over-gap-top",!s&&ye),(0,l.Z)(b,"drag-over-gap-bottom",!s&&Me),(0,l.Z)(b,"filter-node",K&&K((0,k.F)(this.props))),b)),style:_,draggable:Re,"aria-grabbed":Pe,onDragStart:Re?this.onDragStart:void 0,onDragEnter:Q?this.onDragEnter:void 0,onDragOver:Q?this.onDragOver:void 0,onDragLeave:Q?this.onDragLeave:void 0,onDrop:Q?this.onDrop:void 0,onDragEnd:Q?this.onDragEnd:void 0,onMouseMove:$e},Se,i),M.createElement(E,{prefixCls:Z,level:$,isStart:je,isEnd:Je}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),z}(M.Component),C=function(te){return M.createElement(B.k.Consumer,null,function(z){return M.createElement(ae,(0,t.Z)({},te,{context:z}))})};C.displayName="TreeNode",C.isTreeNode=1;var S=C},39378:function(ht,le,e){"use strict";e.d(le,{k:function(){return l}});var t=e(59301),l=t.createContext(null)},60091:function(ht,le,e){"use strict";e.d(le,{O:function(){return S.Z},Z:function(){return Ee}});var t=e(54476),l=e(20068),P=e(76190),L=e(33885),T=e(94480),p=e(67732),n=e(83652),F=e(31226),W=e(42403),w=e(158),D=e(92310),g=e.n(D),M=e(10228),B=e(26112),I=e(48736),E=e(59301),ne=e(39378);function k(Z){var K=Z.dropPosition,m=Z.dropLevelOffset,a=Z.indent,R={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(K){case-1:R.top=0,R.left=-m*a;break;case 1:R.bottom=0,R.left=-m*a;break;case 0:R.bottom=0,R.left=a;break}return E.createElement("div",{style:R})}function de(Z){if(Z==null)throw new TypeError("Cannot destructure "+Z)}var ie=e(42978),H=e(75931),A=e(34280),ae=e(48911),C=e(77900),S=e(39417);function J(Z,K){var m=E.useState(!1),a=(0,ie.Z)(m,2),R=a[0],fe=a[1];E.useLayoutEffect(function(){if(R)return Z(),function(){K()}},[R]),E.useLayoutEffect(function(){return fe(!0),function(){fe(!1)}},[])}var te=e(71430),z=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],v=function(K,m){var a=K.className,R=K.style,fe=K.motion,s=K.motionNodes,i=K.motionType,X=K.onMotionStart,$=K.onMotionEnd,f=K.active,Q=K.treeNodeRequiredProps,Re=(0,H.Z)(K,z),Pe=E.useState(!0),Se=(0,ie.Z)(Pe,2),Ne=Se[0],Be=Se[1],d=E.useContext(ne.k),Y=d.prefixCls,se=s&&i!=="hide";(0,A.Z)(function(){s&&se!==Ne&&Be(se)},[s]);var Ce=function(){s&&X()},Fe=E.useRef(!1),_e=function(){s&&!Fe.current&&(Fe.current=!0,$())};J(Ce,_e);var He=function(ut){se===ut&&_e()};return s?E.createElement(C.default,(0,t.Z)({ref:m,visible:Ne},fe,{motionAppear:i==="show",onVisibleChanged:He}),function(Xe,ut){var Bt=Xe.className,wt=Xe.style;return E.createElement("div",{ref:ut,className:g()("".concat(Y,"-treenode-motion"),Bt),style:wt},s.map(function(Dt){var mn=(0,t.Z)({},(de(Dt.data),Dt.data)),ln=Dt.title,$t=Dt.key,En=Dt.isStart,vn=Dt.isEnd;delete mn.children;var sn=(0,te.H8)($t,Q);return E.createElement(S.Z,(0,t.Z)({},mn,sn,{title:ln,active:f,data:Dt.data,key:$t,isStart:En,isEnd:vn}))}))}):E.createElement(S.Z,(0,t.Z)({domRef:m,className:a,style:R},Re,{active:f}))};v.displayName="MotionTreeNode";var b=E.forwardRef(v),ce=b;function q(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],m=Z.length,a=K.length;if(Math.abs(m-a)!==1)return{add:!1,key:null};function R(fe,s){var i=new Map;fe.forEach(function($){i.set($,!0)});var X=s.filter(function($){return!i.has($)});return X.length===1?X[0]:null}return m<a?{add:!0,key:R(Z,K)}:{add:!1,key:R(K,Z)}}function x(Z,K,m){var a=Z.findIndex(function(i){return i.key===m}),R=Z[a+1],fe=K.findIndex(function(i){return i.key===m});if(R){var s=K.findIndex(function(i){return i.key===R.key});return K.slice(fe+1,s)}return K.slice(fe+1)}var _=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],V={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ye=function(){},Me="RC_TREE_MOTION_".concat(Math.random()),Ie={key:Me},je={key:Me,level:0,index:0,pos:"0",node:Ie,nodes:[Ie]},Je={parent:null,children:[],pos:je.pos,data:Ie,title:null,key:Me,isStart:[],isEnd:[]};function rt(Z,K,m,a){return K===!1||!m?Z:Z.slice(0,Math.ceil(m/a)+1)}function Ke(Z){var K=Z.key,m=Z.pos;return(0,te.km)(K,m)}function Te(Z){for(var K=String(Z.data.key),m=Z;m.parent;)m=m.parent,K="".concat(m.data.key," > ").concat(K);return K}var Qe=E.forwardRef(function(Z,K){var m=Z.prefixCls,a=Z.data,R=Z.selectable,fe=Z.checkable,s=Z.expandedKeys,i=Z.selectedKeys,X=Z.checkedKeys,$=Z.loadedKeys,f=Z.loadingKeys,Q=Z.halfCheckedKeys,Re=Z.keyEntities,Pe=Z.disabled,Se=Z.dragging,Ne=Z.dragOverNodeKey,Be=Z.dropPosition,d=Z.motion,Y=Z.height,se=Z.itemHeight,Ce=Z.virtual,Fe=Z.focusable,_e=Z.activeItem,He=Z.focused,Xe=Z.tabIndex,ut=Z.onKeyDown,Bt=Z.onFocus,wt=Z.onBlur,Dt=Z.onActiveChange,mn=Z.onListChangeStart,ln=Z.onListChangeEnd,$t=(0,H.Z)(Z,_),En=E.useRef(null),vn=E.useRef(null);E.useImperativeHandle(K,function(){return{scrollTo:function(zt){En.current.scrollTo(zt)},getIndentWidth:function(){return vn.current.offsetWidth}}});var sn=E.useState(s),yn=(0,ie.Z)(sn,2),xn=yn[0],An=yn[1],lr=E.useState(a),br=(0,ie.Z)(lr,2),Un=br[0],cr=br[1],Zn=E.useState(a),fr=(0,ie.Z)(Zn,2),Dr=fr[0],Ir=fr[1],pr=E.useState([]),_r=(0,ie.Z)(pr,2),Xr=_r[0],Lr=_r[1],so=E.useState(null),Jr=(0,ie.Z)(so,2),Ge=Jr[0],pe=Jr[1],lt=E.useRef(a);lt.current=a;function Pt(){var Xt=lt.current;cr(Xt),Ir(Xt),Lr([]),pe(null),ln()}(0,A.Z)(function(){An(s);var Xt=q(xn,s);if(Xt.key!==null)if(Xt.add){var zt=Un.findIndex(function(Le){var ke=Le.key;return ke===Xt.key}),j=rt(x(Un,a,Xt.key),Ce,Y,se),ue=Un.slice();ue.splice(zt+1,0,Je),Ir(ue),Lr(j),pe("show")}else{var xe=a.findIndex(function(Le){var ke=Le.key;return ke===Xt.key}),be=rt(x(a,Un,Xt.key),Ce,Y,se),Ze=a.slice();Ze.splice(xe+1,0,Je),Ir(Ze),Lr(be),pe("hide")}else Un!==a&&(cr(a),Ir(a))},[s,a]),E.useEffect(function(){Se||Pt()},[Se]);var Nt=d?Dr:a,Kt={expandedKeys:s,selectedKeys:i,loadedKeys:$,loadingKeys:f,checkedKeys:X,halfCheckedKeys:Q,dragOverNodeKey:Ne,dropPosition:Be,keyEntities:Re};return E.createElement(E.Fragment,null,He&&_e&&E.createElement("span",{style:V,"aria-live":"assertive"},Te(_e)),E.createElement("div",null,E.createElement("input",{style:V,disabled:Fe===!1||Pe,tabIndex:Fe!==!1?Xe:null,onKeyDown:ut,onFocus:Bt,onBlur:wt,value:"",onChange:ye,"aria-label":"for screen reader"})),E.createElement("div",{className:"".concat(m,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},E.createElement("div",{className:"".concat(m,"-indent")},E.createElement("div",{ref:vn,className:"".concat(m,"-indent-unit")}))),E.createElement(ae.Z,(0,t.Z)({},$t,{data:Nt,itemKey:Ke,height:Y,fullHeight:!1,virtual:Ce,itemHeight:se,prefixCls:"".concat(m,"-list"),ref:En,onVisibleChange:function(zt,j){var ue=new Set(zt),xe=j.filter(function(be){return!ue.has(be)});xe.some(function(be){return Ke(be)===Me})&&Pt()}}),function(Xt){var zt=Xt.pos,j=(0,t.Z)({},(de(Xt.data),Xt.data)),ue=Xt.title,xe=Xt.key,be=Xt.isStart,Ze=Xt.isEnd,Le=(0,te.km)(xe,zt);delete j.key,delete j.children;var ke=(0,te.H8)(Le,Kt);return E.createElement(ce,(0,t.Z)({},j,ke,{title:ue,active:!!_e&&xe===_e.key,pos:zt,data:Xt.data,isStart:be,isEnd:Ze,motion:d,motionNodes:xe===Me?Xr:null,motionType:Ge,onMotionStart:mn,onMotionEnd:Pt,treeNodeRequiredProps:Kt,onMouseMove:function(){Dt(null)}}))}))});Qe.displayName="NodeList";var vt=Qe,De=e(35654),ft=e(90782),St=e(67841),$e=10,ve=function(Z){(0,W.Z)(m,Z);var K=(0,w.Z)(m);function m(){var a;(0,p.Z)(this,m);for(var R=arguments.length,fe=new Array(R),s=0;s<R;s++)fe[s]=arguments[s];return a=K.call.apply(K,[this].concat(fe)),a.destroyed=!1,a.delayedDragEnterLogic=void 0,a.loadingRetryTimes={},a.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,te.w$)()},a.dragStartMousePosition=null,a.dragNode=void 0,a.currentMouseOverDroppableNodeKey=null,a.listRef=E.createRef(),a.onNodeDragStart=function(i,X){var $=a.state,f=$.expandedKeys,Q=$.keyEntities,Re=a.props.onDragStart,Pe=X.props.eventKey;a.dragNode=X,a.dragStartMousePosition={x:i.clientX,y:i.clientY};var Se=(0,De._5)(f,Pe);a.setState({draggingNodeKey:Pe,dragChildrenKeys:(0,De.wA)(Pe,Q),indent:a.listRef.current.getIndentWidth()}),a.setExpandedKeys(Se),window.addEventListener("dragend",a.onWindowDragEnd),Re==null||Re({event:i,node:(0,te.F)(X.props)})},a.onNodeDragEnter=function(i,X){var $=a.state,f=$.expandedKeys,Q=$.keyEntities,Re=$.dragChildrenKeys,Pe=$.flattenNodes,Se=$.indent,Ne=a.props,Be=Ne.onDragEnter,d=Ne.onExpand,Y=Ne.allowDrop,se=Ne.direction,Ce=X.props,Fe=Ce.pos,_e=Ce.eventKey,He=(0,F.Z)(a),Xe=He.dragNode;if(a.currentMouseOverDroppableNodeKey!==_e&&(a.currentMouseOverDroppableNodeKey=_e),!Xe){a.resetDragState();return}var ut=(0,De.OM)(i,Xe,X,Se,a.dragStartMousePosition,Y,Pe,Q,f,se),Bt=ut.dropPosition,wt=ut.dropLevelOffset,Dt=ut.dropTargetKey,mn=ut.dropContainerKey,ln=ut.dropTargetPos,$t=ut.dropAllowed,En=ut.dragOverNodeKey;if(Re.indexOf(Dt)!==-1||!$t){a.resetDragState();return}if(a.delayedDragEnterLogic||(a.delayedDragEnterLogic={}),Object.keys(a.delayedDragEnterLogic).forEach(function(vn){clearTimeout(a.delayedDragEnterLogic[vn])}),Xe.props.eventKey!==X.props.eventKey&&(i.persist(),a.delayedDragEnterLogic[Fe]=window.setTimeout(function(){if(a.state.draggingNodeKey!==null){var vn=(0,T.Z)(f),sn=(0,St.Z)(Q,X.props.eventKey);sn&&(sn.children||[]).length&&(vn=(0,De.L0)(f,X.props.eventKey)),"expandedKeys"in a.props||a.setExpandedKeys(vn),d==null||d(vn,{node:(0,te.F)(X.props),expanded:!0,nativeEvent:i.nativeEvent})}},800)),Xe.props.eventKey===Dt&&wt===0){a.resetDragState();return}a.setState({dragOverNodeKey:En,dropPosition:Bt,dropLevelOffset:wt,dropTargetKey:Dt,dropContainerKey:mn,dropTargetPos:ln,dropAllowed:$t}),Be==null||Be({event:i,node:(0,te.F)(X.props),expandedKeys:f})},a.onNodeDragOver=function(i,X){var $=a.state,f=$.dragChildrenKeys,Q=$.flattenNodes,Re=$.keyEntities,Pe=$.expandedKeys,Se=$.indent,Ne=a.props,Be=Ne.onDragOver,d=Ne.allowDrop,Y=Ne.direction,se=(0,F.Z)(a),Ce=se.dragNode;if(Ce){var Fe=(0,De.OM)(i,Ce,X,Se,a.dragStartMousePosition,d,Q,Re,Pe,Y),_e=Fe.dropPosition,He=Fe.dropLevelOffset,Xe=Fe.dropTargetKey,ut=Fe.dropContainerKey,Bt=Fe.dropAllowed,wt=Fe.dropTargetPos,Dt=Fe.dragOverNodeKey;f.indexOf(Xe)!==-1||!Bt||(Ce.props.eventKey===Xe&&He===0?a.state.dropPosition===null&&a.state.dropLevelOffset===null&&a.state.dropTargetKey===null&&a.state.dropContainerKey===null&&a.state.dropTargetPos===null&&a.state.dropAllowed===!1&&a.state.dragOverNodeKey===null||a.resetDragState():_e===a.state.dropPosition&&He===a.state.dropLevelOffset&&Xe===a.state.dropTargetKey&&ut===a.state.dropContainerKey&&wt===a.state.dropTargetPos&&Bt===a.state.dropAllowed&&Dt===a.state.dragOverNodeKey||a.setState({dropPosition:_e,dropLevelOffset:He,dropTargetKey:Xe,dropContainerKey:ut,dropTargetPos:wt,dropAllowed:Bt,dragOverNodeKey:Dt}),Be==null||Be({event:i,node:(0,te.F)(X.props)}))}},a.onNodeDragLeave=function(i,X){a.currentMouseOverDroppableNodeKey===X.props.eventKey&&!i.currentTarget.contains(i.relatedTarget)&&(a.resetDragState(),a.currentMouseOverDroppableNodeKey=null);var $=a.props.onDragLeave;$==null||$({event:i,node:(0,te.F)(X.props)})},a.onWindowDragEnd=function(i){a.onNodeDragEnd(i,null,!0),window.removeEventListener("dragend",a.onWindowDragEnd)},a.onNodeDragEnd=function(i,X){var $=a.props.onDragEnd;a.setState({dragOverNodeKey:null}),a.cleanDragState(),$==null||$({event:i,node:(0,te.F)(X.props)}),a.dragNode=null,window.removeEventListener("dragend",a.onWindowDragEnd)},a.onNodeDrop=function(i,X){var $,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Q=a.state,Re=Q.dragChildrenKeys,Pe=Q.dropPosition,Se=Q.dropTargetKey,Ne=Q.dropTargetPos,Be=Q.dropAllowed;if(Be){var d=a.props.onDrop;if(a.setState({dragOverNodeKey:null}),a.cleanDragState(),Se!==null){var Y=(0,L.Z)((0,L.Z)({},(0,te.H8)(Se,a.getTreeNodeRequiredProps())),{},{active:(($=a.getActiveItem())===null||$===void 0?void 0:$.key)===Se,data:(0,St.Z)(a.state.keyEntities,Se).node}),se=Re.indexOf(Se)!==-1;(0,I.ZP)(!se,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ce=(0,De.yx)(Ne),Fe={event:i,node:(0,te.F)(Y),dragNode:a.dragNode?(0,te.F)(a.dragNode.props):null,dragNodesKeys:[a.dragNode.props.eventKey].concat(Re),dropToGap:Pe!==0,dropPosition:Pe+Number(Ce[Ce.length-1])};f||d==null||d(Fe),a.dragNode=null}}},a.cleanDragState=function(){var i=a.state.draggingNodeKey;i!==null&&a.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),a.dragStartMousePosition=null,a.currentMouseOverDroppableNodeKey=null},a.triggerExpandActionExpand=function(i,X){var $=a.state,f=$.expandedKeys,Q=$.flattenNodes,Re=X.expanded,Pe=X.key,Se=X.isLeaf;if(!(Se||i.shiftKey||i.metaKey||i.ctrlKey)){var Ne=Q.filter(function(d){return d.key===Pe})[0],Be=(0,te.F)((0,L.Z)((0,L.Z)({},(0,te.H8)(Pe,a.getTreeNodeRequiredProps())),{},{data:Ne.data}));a.setExpandedKeys(Re?(0,De._5)(f,Pe):(0,De.L0)(f,Pe)),a.onNodeExpand(i,Be)}},a.onNodeClick=function(i,X){var $=a.props,f=$.onClick,Q=$.expandAction;Q==="click"&&a.triggerExpandActionExpand(i,X),f==null||f(i,X)},a.onNodeDoubleClick=function(i,X){var $=a.props,f=$.onDoubleClick,Q=$.expandAction;Q==="doubleClick"&&a.triggerExpandActionExpand(i,X),f==null||f(i,X)},a.onNodeSelect=function(i,X){var $=a.state.selectedKeys,f=a.state,Q=f.keyEntities,Re=f.fieldNames,Pe=a.props,Se=Pe.onSelect,Ne=Pe.multiple,Be=X.selected,d=X[Re.key],Y=!Be;Y?Ne?$=(0,De.L0)($,d):$=[d]:$=(0,De._5)($,d);var se=$.map(function(Ce){var Fe=(0,St.Z)(Q,Ce);return Fe?Fe.node:null}).filter(function(Ce){return Ce});a.setUncontrolledState({selectedKeys:$}),Se==null||Se($,{event:"select",selected:Y,node:X,selectedNodes:se,nativeEvent:i.nativeEvent})},a.onNodeCheck=function(i,X,$){var f=a.state,Q=f.keyEntities,Re=f.checkedKeys,Pe=f.halfCheckedKeys,Se=a.props,Ne=Se.checkStrictly,Be=Se.onCheck,d=X.key,Y,se={event:"check",node:X,checked:$,nativeEvent:i.nativeEvent};if(Ne){var Ce=$?(0,De.L0)(Re,d):(0,De._5)(Re,d),Fe=(0,De._5)(Pe,d);Y={checked:Ce,halfChecked:Fe},se.checkedNodes=Ce.map(function(wt){return(0,St.Z)(Q,wt)}).filter(function(wt){return wt}).map(function(wt){return wt.node}),a.setUncontrolledState({checkedKeys:Ce})}else{var _e=(0,ft.S)([].concat((0,T.Z)(Re),[d]),!0,Q),He=_e.checkedKeys,Xe=_e.halfCheckedKeys;if(!$){var ut=new Set(He);ut.delete(d);var Bt=(0,ft.S)(Array.from(ut),{checked:!1,halfCheckedKeys:Xe},Q);He=Bt.checkedKeys,Xe=Bt.halfCheckedKeys}Y=He,se.checkedNodes=[],se.checkedNodesPositions=[],se.halfCheckedKeys=Xe,He.forEach(function(wt){var Dt=(0,St.Z)(Q,wt);if(Dt){var mn=Dt.node,ln=Dt.pos;se.checkedNodes.push(mn),se.checkedNodesPositions.push({node:mn,pos:ln})}}),a.setUncontrolledState({checkedKeys:He},!1,{halfCheckedKeys:Xe})}Be==null||Be(Y,se)},a.onNodeLoad=function(i){var X=i.key,$=new Promise(function(f,Q){a.setState(function(Re){var Pe=Re.loadedKeys,Se=Pe===void 0?[]:Pe,Ne=Re.loadingKeys,Be=Ne===void 0?[]:Ne,d=a.props,Y=d.loadData,se=d.onLoad;if(!Y||Se.indexOf(X)!==-1||Be.indexOf(X)!==-1)return null;var Ce=Y(i);return Ce.then(function(){var Fe=a.state.loadedKeys,_e=(0,De.L0)(Fe,X);se==null||se(_e,{event:"load",node:i}),a.setUncontrolledState({loadedKeys:_e}),a.setState(function(He){return{loadingKeys:(0,De._5)(He.loadingKeys,X)}}),f()}).catch(function(Fe){if(a.setState(function(He){return{loadingKeys:(0,De._5)(He.loadingKeys,X)}}),a.loadingRetryTimes[X]=(a.loadingRetryTimes[X]||0)+1,a.loadingRetryTimes[X]>=$e){var _e=a.state.loadedKeys;(0,I.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),a.setUncontrolledState({loadedKeys:(0,De.L0)(_e,X)}),f()}Q(Fe)}),{loadingKeys:(0,De.L0)(Be,X)}})});return $.catch(function(){}),$},a.onNodeMouseEnter=function(i,X){var $=a.props.onMouseEnter;$==null||$({event:i,node:X})},a.onNodeMouseLeave=function(i,X){var $=a.props.onMouseLeave;$==null||$({event:i,node:X})},a.onNodeContextMenu=function(i,X){var $=a.props.onRightClick;$&&(i.preventDefault(),$({event:i,node:X}))},a.onFocus=function(){var i=a.props.onFocus;a.setState({focused:!0});for(var X=arguments.length,$=new Array(X),f=0;f<X;f++)$[f]=arguments[f];i==null||i.apply(void 0,$)},a.onBlur=function(){var i=a.props.onBlur;a.setState({focused:!1}),a.onActiveChange(null);for(var X=arguments.length,$=new Array(X),f=0;f<X;f++)$[f]=arguments[f];i==null||i.apply(void 0,$)},a.getTreeNodeRequiredProps=function(){var i=a.state,X=i.expandedKeys,$=i.selectedKeys,f=i.loadedKeys,Q=i.loadingKeys,Re=i.checkedKeys,Pe=i.halfCheckedKeys,Se=i.dragOverNodeKey,Ne=i.dropPosition,Be=i.keyEntities;return{expandedKeys:X||[],selectedKeys:$||[],loadedKeys:f||[],loadingKeys:Q||[],checkedKeys:Re||[],halfCheckedKeys:Pe||[],dragOverNodeKey:Se,dropPosition:Ne,keyEntities:Be}},a.setExpandedKeys=function(i){var X=a.state,$=X.treeData,f=X.fieldNames,Q=(0,te.oH)($,i,f);a.setUncontrolledState({expandedKeys:i,flattenNodes:Q},!0)},a.onNodeExpand=function(i,X){var $=a.state.expandedKeys,f=a.state,Q=f.listChanging,Re=f.fieldNames,Pe=a.props,Se=Pe.onExpand,Ne=Pe.loadData,Be=X.expanded,d=X[Re.key];if(!Q){var Y=$.indexOf(d),se=!Be;if((0,I.ZP)(Be&&Y!==-1||!Be&&Y===-1,"Expand state not sync with index check"),se?$=(0,De.L0)($,d):$=(0,De._5)($,d),a.setExpandedKeys($),Se==null||Se($,{node:X,expanded:se,nativeEvent:i.nativeEvent}),se&&Ne){var Ce=a.onNodeLoad(X);Ce&&Ce.then(function(){var Fe=(0,te.oH)(a.state.treeData,$,Re);a.setUncontrolledState({flattenNodes:Fe})}).catch(function(){var Fe=a.state.expandedKeys,_e=(0,De._5)(Fe,d);a.setExpandedKeys(_e)})}}},a.onListChangeStart=function(){a.setUncontrolledState({listChanging:!0})},a.onListChangeEnd=function(){setTimeout(function(){a.setUncontrolledState({listChanging:!1})})},a.onActiveChange=function(i){var X=a.state.activeKey,$=a.props.onActiveChange;X!==i&&(a.setState({activeKey:i}),i!==null&&a.scrollTo({key:i}),$==null||$(i))},a.getActiveItem=function(){var i=a.state,X=i.activeKey,$=i.flattenNodes;return X===null?null:$.find(function(f){var Q=f.key;return Q===X})||null},a.offsetActiveKey=function(i){var X=a.state,$=X.flattenNodes,f=X.activeKey,Q=$.findIndex(function(Se){var Ne=Se.key;return Ne===f});Q===-1&&i<0&&(Q=$.length),Q=(Q+i+$.length)%$.length;var Re=$[Q];if(Re){var Pe=Re.key;a.onActiveChange(Pe)}else a.onActiveChange(null)},a.onKeyDown=function(i){var X=a.state,$=X.activeKey,f=X.expandedKeys,Q=X.checkedKeys,Re=X.fieldNames,Pe=a.props,Se=Pe.onKeyDown,Ne=Pe.checkable,Be=Pe.selectable;switch(i.which){case M.Z.UP:{a.offsetActiveKey(-1),i.preventDefault();break}case M.Z.DOWN:{a.offsetActiveKey(1),i.preventDefault();break}}var d=a.getActiveItem();if(d&&d.data){var Y=a.getTreeNodeRequiredProps(),se=d.data.isLeaf===!1||!!(d.data[Re.children]||[]).length,Ce=(0,te.F)((0,L.Z)((0,L.Z)({},(0,te.H8)($,Y)),{},{data:d.data,active:!0}));switch(i.which){case M.Z.LEFT:{se&&f.includes($)?a.onNodeExpand({},Ce):d.parent&&a.onActiveChange(d.parent.key),i.preventDefault();break}case M.Z.RIGHT:{se&&!f.includes($)?a.onNodeExpand({},Ce):d.children&&d.children.length&&a.onActiveChange(d.children[0].key),i.preventDefault();break}case M.Z.ENTER:case M.Z.SPACE:{Ne&&!Ce.disabled&&Ce.checkable!==!1&&!Ce.disableCheckbox?a.onNodeCheck({},Ce,!Q.includes($)):!Ne&&Be&&!Ce.disabled&&Ce.selectable!==!1&&a.onNodeSelect({},Ce);break}}}Se==null||Se(i)},a.setUncontrolledState=function(i){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!a.destroyed){var f=!1,Q=!0,Re={};Object.keys(i).forEach(function(Pe){if(Pe in a.props){Q=!1;return}f=!0,Re[Pe]=i[Pe]}),f&&(!X||Q)&&a.setState((0,L.Z)((0,L.Z)({},Re),$))}},a.scrollTo=function(i){a.listRef.current.scrollTo(i)},a}return(0,n.Z)(m,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var R=this.props.activeKey;R!==void 0&&R!==this.state.activeKey&&(this.setState({activeKey:R}),R!==null&&this.scrollTo({key:R}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var R,fe=this.state,s=fe.focused,i=fe.flattenNodes,X=fe.keyEntities,$=fe.draggingNodeKey,f=fe.activeKey,Q=fe.dropLevelOffset,Re=fe.dropContainerKey,Pe=fe.dropTargetKey,Se=fe.dropPosition,Ne=fe.dragOverNodeKey,Be=fe.indent,d=this.props,Y=d.prefixCls,se=d.className,Ce=d.style,Fe=d.showLine,_e=d.focusable,He=d.tabIndex,Xe=He===void 0?0:He,ut=d.selectable,Bt=d.showIcon,wt=d.icon,Dt=d.switcherIcon,mn=d.draggable,ln=d.checkable,$t=d.checkStrictly,En=d.disabled,vn=d.motion,sn=d.loadData,yn=d.filterTreeNode,xn=d.height,An=d.itemHeight,lr=d.virtual,br=d.titleRender,Un=d.dropIndicatorRender,cr=d.onContextMenu,Zn=d.onScroll,fr=d.direction,Dr=d.rootClassName,Ir=d.rootStyle,pr=(0,B.Z)(this.props,{aria:!0,data:!0}),_r;return mn&&((0,P.Z)(mn)==="object"?_r=mn:typeof mn=="function"?_r={nodeDraggable:mn}:_r={}),E.createElement(ne.k.Provider,{value:{prefixCls:Y,selectable:ut,showIcon:Bt,icon:wt,switcherIcon:Dt,draggable:_r,draggingNodeKey:$,checkable:ln,checkStrictly:$t,disabled:En,keyEntities:X,dropLevelOffset:Q,dropContainerKey:Re,dropTargetKey:Pe,dropPosition:Se,dragOverNodeKey:Ne,indent:Be,direction:fr,dropIndicatorRender:Un,loadData:sn,filterTreeNode:yn,titleRender:br,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},E.createElement("div",{role:"tree",className:g()(Y,se,Dr,(R={},(0,l.Z)(R,"".concat(Y,"-show-line"),Fe),(0,l.Z)(R,"".concat(Y,"-focused"),s),(0,l.Z)(R,"".concat(Y,"-active-focused"),f!==null),R)),style:Ir},E.createElement(vt,(0,t.Z)({ref:this.listRef,prefixCls:Y,style:Ce,data:i,disabled:En,selectable:ut,checkable:!!ln,motion:vn,dragging:$!==null,height:xn,itemHeight:An,virtual:lr,focusable:_e,focused:s,tabIndex:Xe,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:cr,onScroll:Zn},this.getTreeNodeRequiredProps(),pr))))}}],[{key:"getDerivedStateFromProps",value:function(R,fe){var s=fe.prevProps,i={prevProps:R};function X(_e){return!s&&_e in R||s&&s[_e]!==R[_e]}var $,f=fe.fieldNames;if(X("fieldNames")&&(f=(0,te.w$)(R.fieldNames),i.fieldNames=f),X("treeData")?$=R.treeData:X("children")&&((0,I.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),$=(0,te.zn)(R.children)),$){i.treeData=$;var Q=(0,te.I8)($,{fieldNames:f});i.keyEntities=(0,L.Z)((0,l.Z)({},Me,je),Q.keyEntities)}var Re=i.keyEntities||fe.keyEntities;if(X("expandedKeys")||s&&X("autoExpandParent"))i.expandedKeys=R.autoExpandParent||!s&&R.defaultExpandParent?(0,De.r7)(R.expandedKeys,Re):R.expandedKeys;else if(!s&&R.defaultExpandAll){var Pe=(0,L.Z)({},Re);delete Pe[Me],i.expandedKeys=Object.keys(Pe).map(function(_e){return Pe[_e].key})}else!s&&R.defaultExpandedKeys&&(i.expandedKeys=R.autoExpandParent||R.defaultExpandParent?(0,De.r7)(R.defaultExpandedKeys,Re):R.defaultExpandedKeys);if(i.expandedKeys||delete i.expandedKeys,$||i.expandedKeys){var Se=(0,te.oH)($||fe.treeData,i.expandedKeys||fe.expandedKeys,f);i.flattenNodes=Se}if(R.selectable&&(X("selectedKeys")?i.selectedKeys=(0,De.BT)(R.selectedKeys,R):!s&&R.defaultSelectedKeys&&(i.selectedKeys=(0,De.BT)(R.defaultSelectedKeys,R))),R.checkable){var Ne;if(X("checkedKeys")?Ne=(0,De.E6)(R.checkedKeys)||{}:!s&&R.defaultCheckedKeys?Ne=(0,De.E6)(R.defaultCheckedKeys)||{}:$&&(Ne=(0,De.E6)(R.checkedKeys)||{checkedKeys:fe.checkedKeys,halfCheckedKeys:fe.halfCheckedKeys}),Ne){var Be=Ne,d=Be.checkedKeys,Y=d===void 0?[]:d,se=Be.halfCheckedKeys,Ce=se===void 0?[]:se;if(!R.checkStrictly){var Fe=(0,ft.S)(Y,!0,Re);Y=Fe.checkedKeys,Ce=Fe.halfCheckedKeys}i.checkedKeys=Y,i.halfCheckedKeys=Ce}}return X("loadedKeys")&&(i.loadedKeys=R.loadedKeys),i}}]),m}(E.Component);ve.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:k,allowDrop:function(){return!0},expandAction:!1},ve.TreeNode=S.Z;var at=ve,Ee=at},35654:function(ht,le,e){"use strict";e.d(le,{BT:function(){return E},E6:function(){return de},L0:function(){return w},OM:function(){return I},_5:function(){return W},r7:function(){return ie},wA:function(){return g},yx:function(){return D}});var t=e(94480),l=e(76190),P=e(48736),L=e(59301),T=e(39417),p=e(67841),n=e(71430),F=null;function W(H,A){if(!H)return[];var ae=H.slice(),C=ae.indexOf(A);return C>=0&&ae.splice(C,1),ae}function w(H,A){var ae=(H||[]).slice();return ae.indexOf(A)===-1&&ae.push(A),ae}function D(H){return H.split("-")}function g(H,A){var ae=[],C=(0,p.Z)(A,H);function S(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];J.forEach(function(te){var z=te.key,v=te.children;ae.push(z),S(v)})}return S(C.children),ae}function M(H){if(H.parent){var A=D(H.pos);return Number(A[A.length-1])===H.parent.children.length-1}return!1}function B(H){var A=D(H.pos);return Number(A[A.length-1])===0}function I(H,A,ae,C,S,J,te,z,v,b){var ce,q=H.clientX,x=H.clientY,_=H.target.getBoundingClientRect(),V=_.top,ye=_.height,Me=(b==="rtl"?-1:1)*(((S==null?void 0:S.x)||0)-q),Ie=(Me-12)/C,je=(0,p.Z)(z,ae.props.eventKey);if(x<V+ye/2){var Je=te.findIndex(function(Ee){return Ee.key===je.key}),rt=Je<=0?0:Je-1,Ke=te[rt].key;je=(0,p.Z)(z,Ke)}var Te=je.key,Qe=je,vt=je.key,De=0,ft=0;if(!v.includes(Te))for(var St=0;St<Ie&&M(je);St+=1)je=je.parent,ft+=1;var $e=A.props.data,ve=je.node,at=!0;return B(je)&&je.level===0&&x<V+ye/2&&J({dragNode:$e,dropNode:ve,dropPosition:-1})&&je.key===ae.props.eventKey?De=-1:(Qe.children||[]).length&&v.includes(vt)?J({dragNode:$e,dropNode:ve,dropPosition:0})?De=0:at=!1:ft===0?Ie>-1.5?J({dragNode:$e,dropNode:ve,dropPosition:1})?De=1:at=!1:J({dragNode:$e,dropNode:ve,dropPosition:0})?De=0:J({dragNode:$e,dropNode:ve,dropPosition:1})?De=1:at=!1:J({dragNode:$e,dropNode:ve,dropPosition:1})?De=1:at=!1,{dropPosition:De,dropLevelOffset:ft,dropTargetKey:je.key,dropTargetPos:je.pos,dragOverNodeKey:vt,dropContainerKey:De===0?null:((ce=je.parent)===null||ce===void 0?void 0:ce.key)||null,dropAllowed:at}}function E(H,A){if(H){var ae=A.multiple;return ae?H.slice():H.length?[H[0]]:H}}var ne=function(A){return A};function k(H,A){if(!H)return[];var ae=A||{},C=ae.processProps,S=C===void 0?ne:C,J=Array.isArray(H)?H:[H];return J.map(function(te){var z=te.children,v=_objectWithoutProperties(te,F),b=k(z,A);return React.createElement(TreeNode,_extends({key:v.key},S(v)),b)})}function de(H){if(!H)return null;var A;if(Array.isArray(H))A={checkedKeys:H,halfCheckedKeys:void 0};else if((0,l.Z)(H)==="object")A={checkedKeys:H.checked||void 0,halfCheckedKeys:H.halfChecked||void 0};else return(0,P.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return A}function ie(H,A){var ae=new Set;function C(S){if(!ae.has(S)){var J=(0,p.Z)(A,S);if(J){ae.add(S);var te=J.parent,z=J.node;z.disabled||te&&C(te.key)}}}return(H||[]).forEach(function(S){C(S)}),(0,t.Z)(ae)}},90782:function(ht,le,e){"use strict";e.d(le,{S:function(){return n}});var t=e(48736),l=e(67841);function P(F,W){var w=new Set;return F.forEach(function(D){W.has(D)||w.add(D)}),w}function L(F){var W=F||{},w=W.disabled,D=W.disableCheckbox,g=W.checkable;return!!(w||D)||g===!1}function T(F,W,w,D){for(var g=new Set(F),M=new Set,B=0;B<=w;B+=1){var I=W.get(B)||new Set;I.forEach(function(de){var ie=de.key,H=de.node,A=de.children,ae=A===void 0?[]:A;g.has(ie)&&!D(H)&&ae.filter(function(C){return!D(C.node)}).forEach(function(C){g.add(C.key)})})}for(var E=new Set,ne=w;ne>=0;ne-=1){var k=W.get(ne)||new Set;k.forEach(function(de){var ie=de.parent,H=de.node;if(!(D(H)||!de.parent||E.has(de.parent.key))){if(D(de.parent.node)){E.add(ie.key);return}var A=!0,ae=!1;(ie.children||[]).filter(function(C){return!D(C.node)}).forEach(function(C){var S=C.key,J=g.has(S);A&&!J&&(A=!1),!ae&&(J||M.has(S))&&(ae=!0)}),A&&g.add(ie.key),ae&&M.add(ie.key),E.add(ie.key)}})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(P(M,g))}}function p(F,W,w,D,g){for(var M=new Set(F),B=new Set(W),I=0;I<=D;I+=1){var E=w.get(I)||new Set;E.forEach(function(ie){var H=ie.key,A=ie.node,ae=ie.children,C=ae===void 0?[]:ae;!M.has(H)&&!B.has(H)&&!g(A)&&C.filter(function(S){return!g(S.node)}).forEach(function(S){M.delete(S.key)})})}B=new Set;for(var ne=new Set,k=D;k>=0;k-=1){var de=w.get(k)||new Set;de.forEach(function(ie){var H=ie.parent,A=ie.node;if(!(g(A)||!ie.parent||ne.has(ie.parent.key))){if(g(ie.parent.node)){ne.add(H.key);return}var ae=!0,C=!1;(H.children||[]).filter(function(S){return!g(S.node)}).forEach(function(S){var J=S.key,te=M.has(J);ae&&!te&&(ae=!1),!C&&(te||B.has(J))&&(C=!0)}),ae||M.delete(H.key),C&&B.add(H.key),ne.add(H.key)}})}return{checkedKeys:Array.from(M),halfCheckedKeys:Array.from(P(B,M))}}function n(F,W,w,D){var g=[],M;D?M=D:M=L;var B=new Set(F.filter(function(k){var de=!!(0,l.Z)(w,k);return de||g.push(k),de})),I=new Map,E=0;Object.keys(w).forEach(function(k){var de=w[k],ie=de.level,H=I.get(ie);H||(H=new Set,I.set(ie,H)),H.add(de),E=Math.max(E,ie)}),(0,t.ZP)(!g.length,"Tree missing follow keys: ".concat(g.slice(0,100).map(function(k){return"'".concat(k,"'")}).join(", ")));var ne;return W===!0?ne=T(B,I,E,M):ne=p(B,W.halfCheckedKeys,I,E,M),ne}},67841:function(ht,le,e){"use strict";e.d(le,{Z:function(){return t}});function t(l,P){return l[P]}},71430:function(ht,le,e){"use strict";e.d(le,{F:function(){return ie},H8:function(){return de},I8:function(){return k},km:function(){return g},oH:function(){return E},w$:function(){return M},zn:function(){return I}});var t=e(76190),l=e(94480),P=e(33885),L=e(75931),T=e(11592),p=e(2738),n=e(48736),F=e(67841),W=["children"];function w(H,A){return"".concat(H,"-").concat(A)}function D(H){return H&&H.type&&H.type.isTreeNode}function g(H,A){return H!=null?H:A}function M(H){var A=H||{},ae=A.title,C=A._title,S=A.key,J=A.children,te=ae||"title";return{title:te,_title:C||[te],key:S||"key",children:J||"children"}}function B(H,A){var ae=new Map;function C(S){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(S||[]).forEach(function(te){var z=te[A.key],v=te[A.children];warning(z!=null,"Tree node must have a certain key: [".concat(J).concat(z,"]"));var b=String(z);warning(!ae.has(b)||z===null||z===void 0,"Same 'key' exist in the Tree: ".concat(b)),ae.set(b,!0),C(v,"".concat(J).concat(b," > "))})}C(H)}function I(H){function A(ae){var C=(0,T.Z)(ae);return C.map(function(S){if(!D(S))return(0,n.ZP)(!S,"Tree/TreeNode can only accept TreeNode as children."),null;var J=S.key,te=S.props,z=te.children,v=(0,L.Z)(te,W),b=(0,P.Z)({key:J},v),ce=A(z);return ce.length&&(b.children=ce),b}).filter(function(S){return S})}return A(H)}function E(H,A,ae){var C=M(ae),S=C._title,J=C.key,te=C.children,z=new Set(A===!0?[]:A),v=[];function b(ce){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ce.map(function(x,_){for(var V=w(q?q.pos:"0",_),ye=g(x[J],V),Me,Ie=0;Ie<S.length;Ie+=1){var je=S[Ie];if(x[je]!==void 0){Me=x[je];break}}var Je=(0,P.Z)((0,P.Z)({},(0,p.Z)(x,[].concat((0,l.Z)(S),[J,te]))),{},{title:Me,key:ye,parent:q,pos:V,children:null,data:x,isStart:[].concat((0,l.Z)(q?q.isStart:[]),[_===0]),isEnd:[].concat((0,l.Z)(q?q.isEnd:[]),[_===ce.length-1])});return v.push(Je),A===!0||z.has(ye)?Je.children=b(x[te]||[],Je):Je.children=[],Je})}return b(H),v}function ne(H,A,ae){var C={};(0,t.Z)(ae)==="object"?C=ae:C={externalGetKey:ae},C=C||{};var S=C,J=S.childrenPropName,te=S.externalGetKey,z=S.fieldNames,v=M(z),b=v.key,ce=v.children,q=J||ce,x;te?typeof te=="string"?x=function(ye){return ye[te]}:typeof te=="function"&&(x=function(ye){return te(ye)}):x=function(ye,Me){return g(ye[b],Me)};function _(V,ye,Me,Ie){var je=V?V[q]:H,Je=V?w(Me.pos,ye):"0",rt=V?[].concat((0,l.Z)(Ie),[V]):[];if(V){var Ke=x(V,Je),Te={node:V,index:ye,pos:Je,key:Ke,parentPos:Me.node?Me.pos:null,level:Me.level+1,nodes:rt};A(Te)}je&&je.forEach(function(Qe,vt){_(Qe,vt,{node:V,pos:Je,level:Me?Me.level+1:-1},rt)})}_(null)}function k(H){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ae=A.initWrapper,C=A.processEntity,S=A.onProcessFinished,J=A.externalGetKey,te=A.childrenPropName,z=A.fieldNames,v=arguments.length>2?arguments[2]:void 0,b=J||v,ce={},q={},x={posEntities:ce,keyEntities:q};return ae&&(x=ae(x)||x),ne(H,function(_){var V=_.node,ye=_.index,Me=_.pos,Ie=_.key,je=_.parentPos,Je=_.level,rt=_.nodes,Ke={node:V,nodes:rt,index:ye,key:Ie,pos:Me,level:Je},Te=g(Ie,Me);ce[Me]=Ke,q[Te]=Ke,Ke.parent=ce[je],Ke.parent&&(Ke.parent.children=Ke.parent.children||[],Ke.parent.children.push(Ke)),C&&C(Ke,x)},{externalGetKey:b,childrenPropName:te,fieldNames:z}),S&&S(x),x}function de(H,A){var ae=A.expandedKeys,C=A.selectedKeys,S=A.loadedKeys,J=A.loadingKeys,te=A.checkedKeys,z=A.halfCheckedKeys,v=A.dragOverNodeKey,b=A.dropPosition,ce=A.keyEntities,q=(0,F.Z)(ce,H),x={eventKey:H,expanded:ae.indexOf(H)!==-1,selected:C.indexOf(H)!==-1,loaded:S.indexOf(H)!==-1,loading:J.indexOf(H)!==-1,checked:te.indexOf(H)!==-1,halfChecked:z.indexOf(H)!==-1,pos:String(q?q.pos:""),dragOver:v===H&&b===0,dragOverGapTop:v===H&&b===-1,dragOverGapBottom:v===H&&b===1};return x}function ie(H){var A=H.data,ae=H.expanded,C=H.selected,S=H.checked,J=H.loaded,te=H.loading,z=H.halfChecked,v=H.dragOver,b=H.dragOverGapTop,ce=H.dragOverGapBottom,q=H.pos,x=H.active,_=H.eventKey,V=(0,P.Z)((0,P.Z)({},A),{},{expanded:ae,selected:C,checked:S,loaded:J,loading:te,halfChecked:z,dragOver:v,dragOverGapTop:b,dragOverGapBottom:ce,pos:q,active:x,key:_});return"props"in V||Object.defineProperty(V,"props",{get:function(){return(0,n.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),H}}),V}},8224:function(ht,le,e){"use strict";e.d(le,{Z:function(){return l}});var t=e(4676);function l(P,L,T,p){var n=t.unstable_batchedUpdates?function(W){t.unstable_batchedUpdates(T,W)}:T;return P!=null&&P.addEventListener&&P.addEventListener(L,n,p),{remove:function(){P!=null&&P.removeEventListener&&P.removeEventListener(L,n,p)}}}},55468:function(ht,le,e){"use strict";e.d(le,{g1:function(){return D},os:function(){return M}});var t=/margin|padding|width|height|max|min|offset/,l={left:!0,top:!0},P={cssFloat:1,styleFloat:1,float:1};function L(B){return B.nodeType===1?B.ownerDocument.defaultView.getComputedStyle(B,null):{}}function T(B,I,E){if(I=I.toLowerCase(),E==="auto"){if(I==="height")return B.offsetHeight;if(I==="width")return B.offsetWidth}return I in l||(l[I]=t.test(I)),l[I]?parseFloat(E)||0:E}function p(B,I){var E=arguments.length,ne=L(B);return I=P[I]?"cssFloat"in B.style?"cssFloat":"styleFloat":I,E===1?ne:T(B,I,ne[I]||B.style[I])}function n(B,I,E){var ne=arguments.length;if(I=P[I]?"cssFloat"in B.style?"cssFloat":"styleFloat":I,ne===3)return typeof E=="number"&&t.test(I)&&(E="".concat(E,"px")),B.style[I]=E,E;for(var k in I)I.hasOwnProperty(k)&&n(B,k,I[k]);return L(B)}function F(B){return B===document.body?document.documentElement.clientWidth:B.offsetWidth}function W(B){return B===document.body?window.innerHeight||document.documentElement.clientHeight:B.offsetHeight}function w(){var B=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),I=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:B,height:I}}function D(){var B=document.documentElement.clientWidth,I=window.innerHeight||document.documentElement.clientHeight;return{width:B,height:I}}function g(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function M(B){var I=B.getBoundingClientRect(),E=document.documentElement;return{left:I.left+(window.pageXOffset||E.scrollLeft)-(E.clientLeft||document.body.clientLeft||0),top:I.top+(window.pageYOffset||E.scrollTop)-(E.clientTop||document.body.clientTop||0)}}},3465:function(ht,le,e){"use strict";e.d(le,{G:function(){return L}});var t=e(47273),l=function(p){if((0,t.Z)()&&window.document.documentElement){var n=Array.isArray(p)?p:[p],F=window.document.documentElement;return n.some(function(W){return W in F.style})}return!1},P=function(p,n){if(!l(p))return!1;var F=document.createElement("div"),W=F.style[p];return F.style[p]=n,F.style[p]!==W};function L(T,p){return!Array.isArray(T)&&p!==void 0?P(T,p):l(T)}},51353:function(ht,le,e){"use strict";Object.defineProperty(le,"__esModule",{value:!0}),Object.defineProperty(le,"DraggableCore",{enumerable:!0,get:function(){return F.default}}),le.default=void 0;var t=D(e(59301)),l=w(e(12708)),P=w(e(4676)),L=e(14625),T=e(77026),p=e(22013),n=e(80217),F=w(e(68555)),W=w(e(97510));function w(ne){return ne&&ne.__esModule?ne:{default:ne}}function D(ne,k){if(typeof WeakMap=="function")var de=new WeakMap,ie=new WeakMap;return(D=function(H,A){if(!A&&H&&H.__esModule)return H;var ae,C,S={__proto__:null,default:H};if(H===null||typeof H!="object"&&typeof H!="function")return S;if(ae=A?ie:de){if(ae.has(H))return ae.get(H);ae.set(H,S)}for(const J in H)J!=="default"&&{}.hasOwnProperty.call(H,J)&&((C=(ae=Object.defineProperty)&&Object.getOwnPropertyDescriptor(H,J))&&(C.get||C.set)?ae(S,J,C):S[J]=H[J]);return S})(ne,k)}function g(){return g=Object.assign?Object.assign.bind():function(ne){for(var k=1;k<arguments.length;k++){var de=arguments[k];for(var ie in de)({}).hasOwnProperty.call(de,ie)&&(ne[ie]=de[ie])}return ne},g.apply(null,arguments)}function M(ne,k,de){return(k=B(k))in ne?Object.defineProperty(ne,k,{value:de,enumerable:!0,configurable:!0,writable:!0}):ne[k]=de,ne}function B(ne){var k=I(ne,"string");return typeof k=="symbol"?k:k+""}function I(ne,k){if(typeof ne!="object"||!ne)return ne;var de=ne[Symbol.toPrimitive];if(de!==void 0){var ie=de.call(ne,k||"default");if(typeof ie!="object")return ie;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(ne)}class E extends t.Component{static getDerivedStateFromProps(k,de){let{position:ie}=k,{prevPropsPosition:H}=de;return ie&&(!H||ie.x!==H.x||ie.y!==H.y)?((0,W.default)("Draggable: getDerivedStateFromProps %j",{position:ie,prevPropsPosition:H}),{x:ie.x,y:ie.y,prevPropsPosition:Ro({},ie)}):null}constructor(k){super(k),M(this,"onDragStart",(de,ie)=>{if((0,W.default)("Draggable: onDragStart: %j",ie),this.props.onStart(de,(0,p.createDraggableData)(this,ie))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),M(this,"onDrag",(de,ie)=>{if(!this.state.dragging)return!1;(0,W.default)("Draggable: onDrag: %j",ie);const H=(0,p.createDraggableData)(this,ie),A={x:H.x,y:H.y,slackX:0,slackY:0};if(this.props.bounds){const{x:C,y:S}=A;A.x+=this.state.slackX,A.y+=this.state.slackY;const[J,te]=(0,p.getBoundPosition)(this,A.x,A.y);A.x=J,A.y=te,A.slackX=this.state.slackX+(C-A.x),A.slackY=this.state.slackY+(S-A.y),H.x=A.x,H.y=A.y,H.deltaX=A.x-this.state.x,H.deltaY=A.y-this.state.y}if(this.props.onDrag(de,H)===!1)return!1;this.setState(A)}),M(this,"onDragStop",(de,ie)=>{if(!this.state.dragging||this.props.onStop(de,(0,p.createDraggableData)(this,ie))===!1)return!1;(0,W.default)("Draggable: onDragStop: %j",ie);const A={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:C,y:S}=this.props.position;A.x=C,A.y=S}this.setState(A)}),this.state={dragging:!1,dragged:!1,x:k.position?k.position.x:k.defaultPosition.x,y:k.position?k.position.y:k.defaultPosition.y,prevPropsPosition:Ro({},k.position),slackX:0,slackY:0,isElementSVG:!1},k.position&&!(k.onDrag||k.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var k,de,ie;return(ie=(de=(k=this.props)==null?void 0:k.nodeRef)==null?void 0:de.current)!=null?ie:P.default.findDOMNode(this)}render(){const ye=this.props,{axis:k,bounds:de,children:ie,defaultPosition:H,defaultClassName:A,defaultClassNameDragging:ae,defaultClassNameDragged:C,position:S,positionOffset:J,scale:te}=ye,z=ti(ye,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let v={},b=null;const q=!!!S||this.state.dragging,x=S||H,_={x:(0,p.canDragX)(this)&&q?this.state.x:x.x,y:(0,p.canDragY)(this)&&q?this.state.y:x.y};this.state.isElementSVG?b=(0,T.createSVGTransform)(_,J):v=(0,T.createCSSTransform)(_,J);const V=(0,L.clsx)(ie.props.className||"",A,{[ae]:this.state.dragging,[C]:this.state.dragged});return t.createElement(F.default,g({},z,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(ie),{className:V,style:Ro(Ro({},ie.props.style),v),transform:b}))}}le.default=E,M(E,"displayName","Draggable"),M(E,"propTypes",Dl(Ro({},F.default.propTypes),{axis:l.default.oneOf(["both","x","y","none"]),bounds:l.default.oneOfType([l.default.shape({left:l.default.number,right:l.default.number,top:l.default.number,bottom:l.default.number}),l.default.string,l.default.oneOf([!1])]),defaultClassName:l.default.string,defaultClassNameDragging:l.default.string,defaultClassNameDragged:l.default.string,defaultPosition:l.default.shape({x:l.default.number,y:l.default.number}),positionOffset:l.default.shape({x:l.default.oneOfType([l.default.number,l.default.string]),y:l.default.oneOfType([l.default.number,l.default.string])}),position:l.default.shape({x:l.default.number,y:l.default.number}),className:n.dontSetMe,style:n.dontSetMe,transform:n.dontSetMe})),M(E,"defaultProps",Dl(Ro({},F.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},68555:function(ht,le,e){"use strict";Object.defineProperty(le,"__esModule",{value:!0}),le.default=void 0;var t=W(e(59301)),l=F(e(12708)),P=F(e(4676)),L=e(77026),T=e(22013),p=e(80217),n=F(e(97510));function F(E){return E&&E.__esModule?E:{default:E}}function W(E,ne){if(typeof WeakMap=="function")var k=new WeakMap,de=new WeakMap;return(W=function(ie,H){if(!H&&ie&&ie.__esModule)return ie;var A,ae,C={__proto__:null,default:ie};if(ie===null||typeof ie!="object"&&typeof ie!="function")return C;if(A=H?de:k){if(A.has(ie))return A.get(ie);A.set(ie,C)}for(const S in ie)S!=="default"&&{}.hasOwnProperty.call(ie,S)&&((ae=(A=Object.defineProperty)&&Object.getOwnPropertyDescriptor(ie,S))&&(ae.get||ae.set)?A(C,S,ae):C[S]=ie[S]);return C})(E,ne)}function w(E,ne,k){return(ne=D(ne))in E?Object.defineProperty(E,ne,{value:k,enumerable:!0,configurable:!0,writable:!0}):E[ne]=k,E}function D(E){var ne=g(E,"string");return typeof ne=="symbol"?ne:ne+""}function g(E,ne){if(typeof E!="object"||!E)return E;var k=E[Symbol.toPrimitive];if(k!==void 0){var de=k.call(E,ne||"default");if(typeof de!="object")return de;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ne==="string"?String:Number)(E)}const M={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let B=M.mouse;class I extends t.Component{constructor(){super(...arguments),w(this,"dragging",!1),w(this,"lastX",NaN),w(this,"lastY",NaN),w(this,"touchIdentifier",null),w(this,"mounted",!1),w(this,"handleDragStart",ne=>{if(this.props.onMouseDown(ne),!this.props.allowAnyClick&&typeof ne.button=="number"&&ne.button!==0)return!1;const k=this.findDOMNode();if(!k||!k.ownerDocument||!k.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:de}=k;if(this.props.disabled||!(ne.target instanceof de.defaultView.Node)||this.props.handle&&!(0,L.matchesSelectorAndParentsTo)(ne.target,this.props.handle,k)||this.props.cancel&&(0,L.matchesSelectorAndParentsTo)(ne.target,this.props.cancel,k))return;ne.type==="touchstart"&&!this.props.allowMobileScroll&&ne.preventDefault();const ie=(0,L.getTouchIdentifier)(ne);this.touchIdentifier=ie;const H=(0,T.getControlPosition)(ne,ie,this);if(H==null)return;const{x:A,y:ae}=H,C=(0,T.createCoreData)(this,A,ae);(0,n.default)("DraggableCore: handleDragStart: %j",C),(0,n.default)("calling",this.props.onStart),!(this.props.onStart(ne,C)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,L.addUserSelectStyles)(de),this.dragging=!0,this.lastX=A,this.lastY=ae,(0,L.addEvent)(de,B.move,this.handleDrag),(0,L.addEvent)(de,B.stop,this.handleDragStop))}),w(this,"handleDrag",ne=>{const k=(0,T.getControlPosition)(ne,this.touchIdentifier,this);if(k==null)return;let{x:de,y:ie}=k;if(Array.isArray(this.props.grid)){let ae=de-this.lastX,C=ie-this.lastY;if([ae,C]=(0,T.snapToGrid)(this.props.grid,ae,C),!ae&&!C)return;de=this.lastX+ae,ie=this.lastY+C}const H=(0,T.createCoreData)(this,de,ie);if((0,n.default)("DraggableCore: handleDrag: %j",H),this.props.onDrag(ne,H)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(ae){const C=document.createEvent("MouseEvents");C.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(C)}return}this.lastX=de,this.lastY=ie}),w(this,"handleDragStop",ne=>{if(!this.dragging)return;const k=(0,T.getControlPosition)(ne,this.touchIdentifier,this);if(k==null)return;let{x:de,y:ie}=k;if(Array.isArray(this.props.grid)){let C=de-this.lastX||0,S=ie-this.lastY||0;[C,S]=(0,T.snapToGrid)(this.props.grid,C,S),de=this.lastX+C,ie=this.lastY+S}const H=(0,T.createCoreData)(this,de,ie);if(this.props.onStop(ne,H)===!1||this.mounted===!1)return!1;const ae=this.findDOMNode();ae&&this.props.enableUserSelectHack&&(0,L.scheduleRemoveUserSelectStyles)(ae.ownerDocument),(0,n.default)("DraggableCore: handleDragStop: %j",H),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,ae&&((0,n.default)("DraggableCore: Removing handlers"),(0,L.removeEvent)(ae.ownerDocument,B.move,this.handleDrag),(0,L.removeEvent)(ae.ownerDocument,B.stop,this.handleDragStop))}),w(this,"onMouseDown",ne=>(B=M.mouse,this.handleDragStart(ne))),w(this,"onMouseUp",ne=>(B=M.mouse,this.handleDragStop(ne))),w(this,"onTouchStart",ne=>(B=M.touch,this.handleDragStart(ne))),w(this,"onTouchEnd",ne=>(B=M.touch,this.handleDragStop(ne)))}componentDidMount(){this.mounted=!0;const ne=this.findDOMNode();ne&&(0,L.addEvent)(ne,M.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const ne=this.findDOMNode();if(ne){const{ownerDocument:k}=ne;(0,L.removeEvent)(k,M.mouse.move,this.handleDrag),(0,L.removeEvent)(k,M.touch.move,this.handleDrag),(0,L.removeEvent)(k,M.mouse.stop,this.handleDragStop),(0,L.removeEvent)(k,M.touch.stop,this.handleDragStop),(0,L.removeEvent)(ne,M.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,L.scheduleRemoveUserSelectStyles)(k)}}findDOMNode(){var ne,k,de;return(ne=this.props)!=null&&ne.nodeRef?(de=(k=this.props)==null?void 0:k.nodeRef)==null?void 0:de.current:P.default.findDOMNode(this)}render(){return t.cloneElement(t.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}le.default=I,w(I,"displayName","DraggableCore"),w(I,"propTypes",{allowAnyClick:l.default.bool,allowMobileScroll:l.default.bool,children:l.default.node.isRequired,disabled:l.default.bool,enableUserSelectHack:l.default.bool,offsetParent:function(E,ne){if(E[ne]&&E[ne].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:l.default.arrayOf(l.default.number),handle:l.default.string,cancel:l.default.string,nodeRef:l.default.object,onStart:l.default.func,onDrag:l.default.func,onStop:l.default.func,onMouseDown:l.default.func,scale:l.default.number,className:p.dontSetMe,style:p.dontSetMe,transform:p.dontSetMe}),w(I,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},96249:function(ht,le,e){"use strict";const{default:t,DraggableCore:l}=e(51353);ht.exports=t,ht.exports.default=t,ht.exports.DraggableCore=l},77026:function(ht,le,e){"use strict";Object.defineProperty(le,"__esModule",{value:!0}),le.addClassName=A,le.addEvent=n,le.addUserSelectStyles=de,le.createCSSTransform=B,le.createSVGTransform=I,le.getTouch=ne,le.getTouchIdentifier=k,le.getTranslation=E,le.innerHeight=D,le.innerWidth=g,le.matchesSelector=T,le.matchesSelectorAndParentsTo=p,le.offsetXYFromParent=M,le.outerHeight=W,le.outerWidth=w,le.removeClassName=ae,le.removeEvent=F,le.scheduleRemoveUserSelectStyles=ie;var t=e(80217),l=P(e(76172));function P(C,S){if(typeof WeakMap=="function")var J=new WeakMap,te=new WeakMap;return(P=function(z,v){if(!v&&z&&z.__esModule)return z;var b,ce,q={__proto__:null,default:z};if(z===null||typeof z!="object"&&typeof z!="function")return q;if(b=v?te:J){if(b.has(z))return b.get(z);b.set(z,q)}for(const x in z)x!=="default"&&{}.hasOwnProperty.call(z,x)&&((ce=(b=Object.defineProperty)&&Object.getOwnPropertyDescriptor(z,x))&&(ce.get||ce.set)?b(q,x,ce):q[x]=z[x]);return q})(C,S)}let L="";function T(C,S){return L||(L=(0,t.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(J){return(0,t.isFunction)(C[J])})),(0,t.isFunction)(C[L])?C[L](S):!1}function p(C,S,J){let te=C;do{if(T(te,S))return!0;if(te===J)return!1;te=te.parentNode}while(te);return!1}function n(C,S,J,te){if(!C)return;const z=Ro({capture:!0},te);C.addEventListener?C.addEventListener(S,J,z):C.attachEvent?C.attachEvent("on"+S,J):C["on"+S]=J}function F(C,S,J,te){if(!C)return;const z=Ro({capture:!0},te);C.removeEventListener?C.removeEventListener(S,J,z):C.detachEvent?C.detachEvent("on"+S,J):C["on"+S]=null}function W(C){let S=C.clientHeight;const J=C.ownerDocument.defaultView.getComputedStyle(C);return S+=(0,t.int)(J.borderTopWidth),S+=(0,t.int)(J.borderBottomWidth),S}function w(C){let S=C.clientWidth;const J=C.ownerDocument.defaultView.getComputedStyle(C);return S+=(0,t.int)(J.borderLeftWidth),S+=(0,t.int)(J.borderRightWidth),S}function D(C){let S=C.clientHeight;const J=C.ownerDocument.defaultView.getComputedStyle(C);return S-=(0,t.int)(J.paddingTop),S-=(0,t.int)(J.paddingBottom),S}function g(C){let S=C.clientWidth;const J=C.ownerDocument.defaultView.getComputedStyle(C);return S-=(0,t.int)(J.paddingLeft),S-=(0,t.int)(J.paddingRight),S}function M(C,S,J){const z=S===S.ownerDocument.body?{left:0,top:0}:S.getBoundingClientRect(),v=(C.clientX+S.scrollLeft-z.left)/J,b=(C.clientY+S.scrollTop-z.top)/J;return{x:v,y:b}}function B(C,S){const J=E(C,S,"px");return{[(0,l.browserPrefixToKey)("transform",l.default)]:J}}function I(C,S){return E(C,S,"")}function E(C,S,J){let{x:te,y:z}=C,v=`translate(${te}${J},${z}${J})`;if(S){const b=`${typeof S.x=="string"?S.x:S.x+J}`,ce=`${typeof S.y=="string"?S.y:S.y+J}`;v=`translate(${b}, ${ce})`+v}return v}function ne(C,S){return C.targetTouches&&(0,t.findInArray)(C.targetTouches,J=>S===J.identifier)||C.changedTouches&&(0,t.findInArray)(C.changedTouches,J=>S===J.identifier)}function k(C){if(C.targetTouches&&C.targetTouches[0])return C.targetTouches[0].identifier;if(C.changedTouches&&C.changedTouches[0])return C.changedTouches[0].identifier}function de(C){if(!C)return;let S=C.getElementById("react-draggable-style-el");S||(S=C.createElement("style"),S.type="text/css",S.id="react-draggable-style-el",S.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
`,S.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
`,C.getElementsByTagName("head")[0].appendChild(S)),C.body&&A(C.body,"react-draggable-transparent-selection")}function ie(C){window.requestAnimationFrame?window.requestAnimationFrame(()=>{H(C)}):H(C)}function H(C){if(C)try{if(C.body&&ae(C.body,"react-draggable-transparent-selection"),C.selection)C.selection.empty();else{const S=(C.defaultView||window).getSelection();S&&S.type!=="Caret"&&S.removeAllRanges()}}catch(S){}}function A(C,S){C.classList?C.classList.add(S):C.className.match(new RegExp(`(?:^|\\s)${S}(?!\\S)`))||(C.className+=` ${S}`)}function ae(C,S){C.classList?C.classList.remove(S):C.className=C.className.replace(new RegExp(`(?:^|\\s)${S}(?!\\S)`,"g"),"")}},76172:function(ht,le){"use strict";Object.defineProperty(le,"__esModule",{value:!0}),le.browserPrefixToKey=l,le.browserPrefixToStyle=P,le.default=void 0,le.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var F,W;let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const n=(W=(F=window.document)==null?void 0:F.documentElement)==null?void 0:W.style;if(!n||p in n)return"";for(let w=0;w<e.length;w++)if(l(p,e[w])in n)return e[w];return""}function l(p,n){return n?`${n}${L(p)}`:p}function P(p,n){return n?`-${n.toLowerCase()}-${p}`:p}function L(p){let n="",F=!0;for(let W=0;W<p.length;W++)F?(n+=p[W].toUpperCase(),F=!1):p[W]==="-"?F=!0:n+=p[W];return n}var T=le.default=t()},97510:function(ht,le){"use strict";Object.defineProperty(le,"__esModule",{value:!0}),le.default=e;function e(){}},22013:function(ht,le,e){"use strict";Object.defineProperty(le,"__esModule",{value:!0}),le.canDragX=T,le.canDragY=p,le.createCoreData=F,le.createDraggableData=W,le.getBoundPosition=P,le.getControlPosition=n,le.snapToGrid=L;var t=e(80217),l=e(77026);function P(g,M,B){if(!g.props.bounds)return[M,B];let{bounds:I}=g.props;I=typeof I=="string"?I:w(I);const E=D(g);if(typeof I=="string"){const{ownerDocument:ne}=E,k=ne.defaultView;let de;if(I==="parent"?de=E.parentNode:de=E.getRootNode().querySelector(I),!(de instanceof k.HTMLElement))throw new Error('Bounds selector "'+I+'" could not find an element.');const ie=de,H=k.getComputedStyle(E),A=k.getComputedStyle(ie);I={left:-E.offsetLeft+(0,t.int)(A.paddingLeft)+(0,t.int)(H.marginLeft),top:-E.offsetTop+(0,t.int)(A.paddingTop)+(0,t.int)(H.marginTop),right:(0,l.innerWidth)(ie)-(0,l.outerWidth)(E)-E.offsetLeft+(0,t.int)(A.paddingRight)-(0,t.int)(H.marginRight),bottom:(0,l.innerHeight)(ie)-(0,l.outerHeight)(E)-E.offsetTop+(0,t.int)(A.paddingBottom)-(0,t.int)(H.marginBottom)}}return(0,t.isNum)(I.right)&&(M=Math.min(M,I.right)),(0,t.isNum)(I.bottom)&&(B=Math.min(B,I.bottom)),(0,t.isNum)(I.left)&&(M=Math.max(M,I.left)),(0,t.isNum)(I.top)&&(B=Math.max(B,I.top)),[M,B]}function L(g,M,B){const I=Math.round(M/g[0])*g[0],E=Math.round(B/g[1])*g[1];return[I,E]}function T(g){return g.props.axis==="both"||g.props.axis==="x"}function p(g){return g.props.axis==="both"||g.props.axis==="y"}function n(g,M,B){const I=typeof M=="number"?(0,l.getTouch)(g,M):null;if(typeof M=="number"&&!I)return null;const E=D(B),ne=B.props.offsetParent||E.offsetParent||E.ownerDocument.body;return(0,l.offsetXYFromParent)(I||g,ne,B.props.scale)}function F(g,M,B){const I=!(0,t.isNum)(g.lastX),E=D(g);return I?{node:E,deltaX:0,deltaY:0,lastX:M,lastY:B,x:M,y:B}:{node:E,deltaX:M-g.lastX,deltaY:B-g.lastY,lastX:g.lastX,lastY:g.lastY,x:M,y:B}}function W(g,M){const B=g.props.scale;return{node:M.node,x:g.state.x+M.deltaX/B,y:g.state.y+M.deltaY/B,deltaX:M.deltaX/B,deltaY:M.deltaY/B,lastX:g.state.x,lastY:g.state.y}}function w(g){return{left:g.left,top:g.top,right:g.right,bottom:g.bottom}}function D(g){const M=g.findDOMNode();if(!M)throw new Error("<DraggableCore>: Unmounted during event!");return M}},80217:function(ht,le){"use strict";Object.defineProperty(le,"__esModule",{value:!0}),le.dontSetMe=L,le.findInArray=e,le.int=P,le.isFunction=t,le.isNum=l;function e(T,p){for(let n=0,F=T.length;n<F;n++)if(p.apply(p,[T[n],n,T]))return T[n]}function t(T){return typeof T=="function"||Object.prototype.toString.call(T)==="[object Function]"}function l(T){return typeof T=="number"&&!isNaN(T)}function P(T){return parseInt(T,10)}function L(T,p,n){if(T[p])return new Error(`Invalid prop ${p} passed to ${n} - do not set this, set it on the child.`)}}}]);
|
|
}()); |