(self.webpackChunk=self.webpackChunk||[]).push([[6444],{25877:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return w}});var o=r(87462),b=r(67294),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},B=z,T=r(74643),g=function(c,D){return b.createElement(T.Z,(0,o.Z)({},c,{ref:D,icon:B}))},w=b.forwardRef(g)},73148:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return w}});var o=r(87462),b=r(67294),z={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"},B=z,T=r(74643),g=function(c,D){return b.createElement(T.Z,(0,o.Z)({},c,{ref:D,icon:B}))},w=b.forwardRef(g)},56747:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return w}});var o=r(87462),b=r(67294),z={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"},B=z,T=r(74643),g=function(c,D){return b.createElement(T.Z,(0,o.Z)({},c,{ref:D,icon:B}))},w=b.forwardRef(g)},50881:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return w}});var o=r(87462),b=r(67294),z={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"},B=z,T=r(74643),g=function(c,D){return b.createElement(T.Z,(0,o.Z)({},c,{ref:D,icon:B}))},w=b.forwardRef(g)},22751:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return w}});var o=r(87462),b=r(67294),z={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"},B=z,T=r(74643),g=function(c,D){return b.createElement(T.Z,(0,o.Z)({},c,{ref:D,icon:B}))},w=b.forwardRef(g)},34182:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return w}});var o=r(87462),b=r(67294),z={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"},B=z,T=r(74643),g=function(c,D){return b.createElement(T.Z,(0,o.Z)({},c,{ref:D,icon:B}))},w=b.forwardRef(g)},74664:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return w}});var o=r(87462),b=r(67294),z={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"},B=z,T=r(74643),g=function(c,D){return b.createElement(T.Z,(0,o.Z)({},c,{ref:D,icon:B}))},w=b.forwardRef(g)},91034:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return w}});var o=r(87462),b=r(67294),z={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"},B=z,T=r(74643),g=function(c,D){return b.createElement(T.Z,(0,o.Z)({},c,{ref:D,icon:B}))},w=b.forwardRef(g)},6104:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return te}});var o=r(67294),b=r(2453),z=r(85418),B=r(24577),T=r(67631),g=r.n(T),w=r(52262),V=r(74855),c=r(51959),D={watermark:"watermark___hNYlv",videovideo:"videovideo___ovOkV",animate__loop:"animate__loop___mvL6s",upDown:"upDown___SlgHv",container:"container___g1WYG","video-container":"video-container___XPkWR","video-controls":"video-controls___to0Zq",hide:"hide___NA3DV","video-progress":"video-progress___gqHsd",seek:"seek___iZHBm","seek-tooltip":"seek-tooltip___uWyXx","bottom-controls":"bottom-controls___uoIBm","left-controls":"left-controls___mBEx4","right-controls":"right-controls___e9L6r",rateOverlay:"rateOverlay___HHBWe",controlText:"controlText___M_BWR","volume-controls":"volume-controls___fa3mE","fullscreen-button":"fullscreen-button___ur0es","fullscreen-button1":"fullscreen-button1___rfaXm","pip-button":"pip-button___GFO8W","playback-animation":"playback-animation___ndURq",volume:"volume___OTmpP",hidden:"hidden___o7GkT"},ae=(f,P,K)=>new Promise((k,x)=>{var m=H=>{try{j(K.next(H))}catch(ve){x(ve)}},R=H=>{try{j(K.throw(H))}catch(ve){x(ve)}},j=H=>H.done?k(H.value):Promise.resolve(H.value).then(m,R);j((K=K.apply(f,P)).next())});function de(f){if(isNaN(f))return{minutes:"00",seconds:"00"};const P=new Date(f*1e3).toISOString().substr(11,8);return{hour:P.substr(0,2),minutes:P.substr(3,2),seconds:P.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function I(f,P){return f-P}function Y(f){f.sort(I);let P=0;for(let K=0;K{},handlePlay:H=()=>{},handlePlayEnded:ve=()=>{},autoPlay:Re=!1,onPlayEnded:Ne=()=>{},isShowWaterMark:U=!0},Xe)=>{var oe;const F=((oe=P==null?void 0:P.split("."))==null?void 0:oe.pop())==="flv",N=(0,o.useRef)(),Qe=(0,o.useRef)(),et=(0,o.useRef)(),Ke=(0,o.useRef)(),fe=(0,o.useRef)(),we=(0,o.useRef)(),Be=(0,o.useRef)(),Te=(0,o.useRef)(),Ve=(0,o.useRef)(),nn=(0,o.useRef)(),yt=(0,o.useRef)(),vn=(0,o.useRef)(),Pt=(0,o.useRef)(),mn=(0,o.useRef)(),Jt=navigator.userAgent.toLowerCase().match(ue),Wt=Jt?Jt[0]:"pc",zt=(0,o.useRef)(!1),fn=(0,w.eY)();let gt=0,ye=0,ne=0,h=null,_=!1,O=20,se=1,A=!1,G=!1,Q=[];(0,o.useImperativeHandle)(Xe,()=>({getLastUpdatedTime:()=>N.current.currentTime,getDuration:()=>N.current.duration})),b.ZP.config({maxCount:1,getContainer:()=>et.current});const C=(0,o.useCallback)((pt,It=!1)=>{let Et={point:N.current.currentTime};h?(Et.log_id=h,Et.watch_duration=Y(Q),Et.total_duration=ye):(m?(Et.video_id=parseInt(k,10),Et.course_id=m):Et.video_id=k,Et.duration=gt,Et.device=Wt),It&&(Et.ed="1");function on(){return ae(this,null,function*(){A=!0,h=yield x==null?void 0:x(Et),A=!1,pt&&pt()})}on()},[k,m]);(0,o.useEffect)(()=>{N.current&&(Ke.current.style.display="none",fe.current.style.display="block"),b.ZP.destroy();let pt=null;return B.Z.isSupported&&F&&P&&(P==null?void 0:P.indexOf(".m3u8"))<0?(pt=B.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:P,muted:!1}),N.current&&(pt.attachMediaElement(N.current),pt.load())):N.current.setAttribute("src",P),J(),()=>{pt&&(pt.unload(),pt.pause(),pt.destroy(),pt=null)}},[N,F,P]);function W(){N.current.paused?(Ke.current.style.display="none",fe.current.style.display="block"):(Ke.current.style.display="block",fe.current.style.display="none")}function J(){yt.current.style.display="none",Pt.current.style.display="none",vn.current.style.display="none",N.current.muted||N.current.volume===0?yt.current.style.display="block":N.current.volume>0&&N.current.volume<=.5?Pt.current.style.display="block":vn.current.style.display="block"}(0,o.useEffect)(()=>{const pt=document.getElementById("play"),It=document.querySelectorAll(".playback-icons use");function Et(){H(),R&&!zt.current&&(N.current.currentTime=R),zt.current=!0,Q.push(N.current.currentTime),_||(_=!0,K&&C())}function on(){return ae(this,null,function*(){W(),Q.push(N.current.currentTime),K&&C(()=>{h=null,ne=0,_=!1,A=!1,G=!1,Q=[],ye=0,se=1},!0),Ne()})}function Oe(){we.current.value=Math.round(N.current.currentTime),Be.current.value=Math.round(N.current.currentTime)}function ar(){const Gt=de(Math.round(N.current.currentTime));Ve.current.innerText=`${Gt.hour>0?Gt.hour+":":""}${Gt.minutes}:${Gt.seconds}`,Ve.current.setAttribute("datetime",`${Gt.hour>0?" "+Gt.hour+" ":""}${Gt.minutes}m ${Gt.seconds}s`)}function jn(){var Gt,Z,Se,Ae,Le,tt,We;const He=Math.round((Gt=N.current)==null?void 0:Gt.duration);(Se=(Z=we.current)==null?void 0:Z.setAttribute)==null||Se.call(Z,"max",He),(Le=(Ae=Be.current)==null?void 0:Ae.setAttribute)==null||Le.call(Ae,"max",He);const ke=de(He);Te.current&&(Te.current.innerText=`${ke.hour>0?ke.hour+":":""}${ke.minutes}:${ke.seconds}`,(We=(tt=Te.current).setAttribute)==null||We.call(tt,"datetime",`${ke.hour>0?" "+ke.hour+" ":""}${ke.minutes}m ${ke.seconds}s`))}function gn(){try{const Gt=Math.round(N.current.duration);we.current.setAttribute("max",Gt),Be.current.setAttribute("max",Gt);const Z=de(Gt);Te.current.innerText=`${Z.hour>0?Z.hour+":":""}${Z.minutes}:${Z.seconds}`,Te.current.setAttribute("datetime",`${Z.hour>0?" "+Z.hour+" ":""}${Z.minutes}m ${Z.seconds}s`),Oe(),ar();const{width:Se,height:Ae,x:Le,y:tt}=Qe.current.getBoundingClientRect();if(Le<0||tt<0||!Se)return;if(!G){let We=N.current.currentTime,He=We-ne;Math.abs(He)<10?(ye+=Math.abs(He),ne=We,A||ye-se*O>=0&&(se++,Q.push(ne),K&&C())):(ne=We,K&&C())}}catch(Gt){console.log(Gt)}}function $n(){G=!0}function er(){N.current.playing&&Q.push(N.current.currentTime,ne),ne=N.current.currentTime,G=!1}function kn(){gt=N.current.duration,gt<=20&&(O=gt/3),N.current.addEventListener("play",Et)}function Tn(Gt){Gt.preventDefault(),(0,c.vp)()?(N.current.style.width="100%",N.current.style.height="100%"):N.current.style.cssText=""}function In(){j()}function ur(Gt){if(!f){b.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const Z=Gt.target.dataset.seek?Gt.target.dataset.seek:Gt.target.value;N.current.currentTime=Z,Be.current.value=Z,we.current.value=Z}function Zt(Gt){const Z=Math.round(Gt.offsetX/Gt.target.clientWidth*parseInt(Gt.target.getAttribute("max"),10));we.current.setAttribute("data-seek",Z);const Se=de(Z);nn.current.textContent=`${Se.hour>0?Se.hour+":":""}${Se.minutes}:${Se.seconds}`;const Ae=N.current.getBoundingClientRect();nn.current.style.left=`${Gt.pageX-Ae.left}px`}function gr(Gt){switch(Gt.code){case"Space":Gt.preventDefault(),Rt();break;case"ArrowRight":if(Gt.preventDefault(),!f){b.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(N.current.currentTime>=N.current.duration)break;N.current.currentTime=parseInt(N.current.currentTime)+5,Oe();break;case"ArrowLeft":if(Gt.preventDefault(),!f){b.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(N.current.currentTime===0)break;N.current.currentTime=parseInt(N.current.currentTime)-5,Oe();break;case"ArrowUp":Gt.preventDefault(),N.current.volume<1&&(N.current.volume=(parseInt(N.current.volume*10)+1)/10);break;case"ArrowDown":Gt.preventDefault(),N.current.volume>0&&(N.current.volume=(parseInt(N.current.volume*10)-1)/10);break}}return et.current.addEventListener((0,c.gH)(),Tn),N.current.addEventListener("canplay",kn),N.current.addEventListener("ended",on),N.current.addEventListener("seeking",$n),N.current.addEventListener("seeked",er),N.current.addEventListener("loadedmetadata",jn),we.current.addEventListener("mousemove",Zt),we.current.addEventListener("input",ur),N.current.addEventListener("timeupdate",gn),N.current.addEventListener("pause",In),N.current.addEventListener("volumechange",J),document.addEventListener("keydown",gr),()=>{var Gt,Z,Se,Ae,Le,tt,We,He,ke,De,he,e;(Gt=N.current)==null||Gt.removeEventListener("canplay",kn),(Z=N.current)==null||Z.removeEventListener("play",Et),(Se=N.current)==null||Se.removeEventListener("ended",on),(Ae=N.current)==null||Ae.removeEventListener("seeking",$n),(Le=N.current)==null||Le.removeEventListener("seeked",er),(tt=we.current)==null||tt.removeEventListener("mousemove",Zt),(We=we.current)==null||We.removeEventListener("input",ur),(He=N.current)==null||He.removeEventListener("timeupdate",gn),(ke=N.current)==null||ke.removeEventListener("pause",In),(De=N.current)==null||De.removeEventListener("loadedmetadata",jn),(he=N.current)==null||he.removeEventListener("volumechange",J),document.removeEventListener("keydown",gr),(e=N.current)!=null&&e.playing&&(Q.push(ne,N.current.currentTime),K&&C())}},[N,P]),(0,o.useEffect)(()=>{if(N.current.onended=()=>{ve(N)},N.current.oncontextmenu=()=>!1,(P==null?void 0:P.indexOf(".m3u8"))>-1){if(N.current.canPlayType("application/vnd.apple.mpegurl"))N.current.src=P;else if(g().isSupported()){var pt=new(g());pt.loadSource(P),pt.attachMedia(N.current)}}},[P]);const[ge,Je]=(0,o.useState)(1),Rt=()=>{N.current.paused||N.current.ended?N.current.play():N.current.pause(),W()};function Ct(){N.current.muted=!N.current.muted,N.current.muted?(mn.current.setAttribute("data-volume",volume.value),mn.current.value=0):mn.current.value=mn.current.dataset.volume}return o.createElement("div",{style:{position:"relative"},ref:et},o.createElement("div",{ref:Qe,className:`${D.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${D.animate__loop}`},U&&fn?fn.login:" "),o.createElement("div",{className:D.container},o.createElement("div",{className:D["video-container"],id:"video-container"},o.createElement("div",{className:D["playback-animation"],id:"playback-animation"},o.createElement("svg",{className:D["playback-icons"]},o.createElement("use",{className:"hidden",href:"#play-icon"}),o.createElement("use",{href:"#pause"}))),o.createElement("video",{className:D.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:N,autoPlay:Re}),o.createElement("div",{className:`${D["video-controls"]} `,id:"video-controls"},o.createElement("div",{className:D["bottom-controls"]},o.createElement("div",{className:D["left-controls"]},o.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:Rt},o.createElement("svg",{className:D["playback-icons"]},o.createElement("use",{ref:fe,href:"#play-icon"}),o.createElement("use",{ref:Ke,style:{display:"none"},href:"#pause"}))),o.createElement("div",{className:D.time},o.createElement("time",{id:"time-elapsed",ref:Ve},"00:00"),o.createElement("span",null," / "),o.createElement("time",{id:"duration",ref:Te},"00:00"))),o.createElement("div",{className:D["right-controls"]},f&&o.createElement(z.Z,{placement:"top",overlayClassName:D.rateOverlay,getPopupContainer:pt=>pt.parentNode,menu:{items:[{key:"1",label:o.createElement("span",{onClick:()=>{Je(1),N.current.playbackRate=1}},"1.0x")},{key:"2",label:o.createElement("span",{onClick:()=>{Je(1.5),N.current.playbackRate=1.5}},"1.5x")},{key:"3",label:o.createElement("span",{onClick:()=>{Je(2),N.current.playbackRate=2}},"2.0x")}]}},o.createElement("div",{className:`${D.controlText} mr5`},"\u500D\u901F")),o.createElement(V.CopyToClipboard,{text:P,onCopy:()=>b.ZP.success("\u590D\u5236\u6210\u529F")},o.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},o.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),o.createElement("div",{className:D["volume-controls"]},o.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:D["volume-button"],id:"volume-button",onClick:Ct},o.createElement("i",{ref:yt,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),o.createElement("i",{ref:Pt,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),o.createElement("i",{ref:vn,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),o.createElement("input",{className:D.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:mn,style:{display:"none"},onClick:J})),o.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:D["fullscreen-button"],onClick:()=>{(0,c.vp)()?(0,c.BU)():(0,c.Dj)(et.current)}},o.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),o.createElement("div",{className:D["video-progress"]},o.createElement("progress",{ref:Be,value:"0",min:"0"}),o.createElement("input",{className:D.seek,ref:we,value:"0",min:"0",type:"range",step:"1"}),o.createElement("div",{className:D["seek-tooltip"],ref:nn,id:"seek-tooltip"},"00:00"))))),o.createElement("svg",{style:{display:"none"}},o.createElement("defs",null,o.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},o.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),o.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},o.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),o.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},o.createElement("path",{d:"M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"})),o.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},o.createElement("path",{d:"M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"})),o.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},o.createElement("path",{d:"M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"})),o.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},o.createElement("path",{d:"M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"})),o.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},o.createElement("path",{d:"M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"})),o.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},o.createElement("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})))))})},99914:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return b}});var o=r(67294);function b(z,B){const T=(0,o.useRef)();(0,o.useEffect)(()=>{T.current=z}),(0,o.useEffect)(()=>{function g(){T.current()}if(B!==null){let w=setInterval(g,B);return()=>clearInterval(w)}},[B])}},28805:function(Mt,Me,r){"use strict";r.r(Me),r.d(Me,{default:function(){return C},formatQuery:function(){return G}});var o=r(67294),b=r(35973),z=r(57953),B={bg:"bg___eq_Aq",container:"container___j770l",widthle:"widthle___ouh1T"},T=r(19575),g=r(6104),w=r(14446),V=r(12604),c=r(47897),D=r(32983),ae={contentWrap:"contentWrap___xMJQi",title:"title___z4t4P",footer:"footer___CLzrT",footer_left:"footer_left___N2sZZ",footer_bfcs:"footer_bfcs___UmvUE",footer_bfcs_value:"footer_bfcs_value___yiYga",pingfen:"pingfen___aEEMe",fenshu:"fenshu___I6HCo",radioGroup:"radioGroup___RT1dL",wrap:"wrap___QZGSJ",introName:"introName___m17tA",rating:"rating___MXLBr",modalRating:"modalRating___aluwj",zdbf:"zdbf___9PNEF"},de=r(99914),I=r(56188),Y=r(28706),ue=r(67294),te=Object.defineProperty,f=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,k=(W,J,ge)=>J in W?te(W,J,{enumerable:!0,configurable:!0,writable:!0,value:ge}):W[J]=ge,x=(W,J)=>{for(var ge in J||(J={}))P.call(J,ge)&&k(W,ge,J[ge]);if(f)for(var ge of f(J))K.call(J,ge)&&k(W,ge,J[ge]);return W},m=(W,J)=>{var ge={};for(var Je in W)P.call(W,Je)&&J.indexOf(Je)<0&&(ge[Je]=W[Je]);if(W!=null&&f)for(var Je of f(W))J.indexOf(Je)<0&&K.call(W,Je)&&(ge[Je]=W[Je]);return ge},R=(W,J,ge)=>new Promise((Je,Rt)=>{var Ct=Et=>{try{It(ge.next(Et))}catch(on){Rt(on)}},pt=Et=>{try{It(ge.throw(Et))}catch(on){Rt(on)}},It=Et=>Et.done?Je(Et.value):Promise.resolve(Et.value).then(Ct,pt);It((ge=ge.apply(W,J)).next())});const j=W=>{var J=W,{videoDetail:ge,globalSetting:Je,loading:Rt,dispatch:Ct}=J,pt=m(J,["videoDetail","globalSetting","loading","dispatch"]);const{queryParams:It,selectParams:Et,videoList:on}=ge,{subject_id:Oe,videoId:ar}=It,{checkBoxValue:jn,radioValue:gn}=Et,$n={videoId:ar},er={query:It},kn=(0,o.useRef)(),Tn=(0,o.useRef)(),In=(0,o.useRef)(),ur=(0,o.useRef)(5),{video_item:Zt}=ge.detail||{};(0,de.Z)(()=>R(void 0,null,function*(){Tn.current&&(console.log("videoRef lastUpdatedTime: ",kn.current.getLastUpdatedTime()),console.log(kn.current),yield gr())}),ur.current*1e3);const gr=(He=!1)=>{const ke=He?{is_f:1}:{};return(0,I.DH)(x(x({},ke),{id:$n.videoId,point:kn.current.getLastUpdatedTime(),total:kn.current.getDuration()}))},Gt=He=>(He.ed==="1"&&(Tn.current=!1,gr(!0)),!Tn.current&&!He.ed&&(Tn.current=!0,ur.current=kn.current.getDuration()<=5?1:5,gr()),Ct({type:"userDetail/logWatchHistory",payload:He})),Z=()=>{Tn.current=!1},Se=()=>{Tn.current=!0},Ae=()=>{In.current=5,w.default.confirm({width:600,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u8BF7\u7ED9\u672C\u89C6\u9891\u8BC4\u5206",content:ue.createElement("div",{className:"tc font14"},ue.createElement(V.Z,{defaultValue:In.current,onChange:He=>In.current=He,className:ae.modalRating})),onOk:()=>R(void 0,null,function*(){if((yield(0,I.jK)({id:$n.videoId,star:In.current})).status===0){const{course_id:ke}=(0,Y.oP)();Ct({type:"videoDetail/getVideoDetail",payload:{id:$n.videoId,videoId:$n.videoId,course_id:ke,subject_id:Oe}})}})})},Le=He=>{const ke=window.filterVideoSign,De=ke.findIndex(l=>l.id===ar);if(De===ke.length-1)return;const e=ke[De+1].id,t=ke[De+1].can_view,n=ke[De+1].link,a=ke[De+1].is_public;if(window.checkBoxValue){if(n){window.open(n);return}if(!t){w.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:ue.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});return}if(!a){w.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:ue.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}Ct({type:"videoDetail/handleListItemClick",payload:{videoId:e}}),window.videoTimer=setTimeout(()=>{He.current.play()},2e3)}},tt=(He,ke)=>{if(He==="checkBox"){const De=ke;window.checkBoxValue=De,Ct({type:"videoDetail/setSelectValue",payload:{radioValue:gn,checkBoxValue:De}});return}Ct({type:"videoDetail/setSelectValue",payload:{checkBoxValue:jn,radioValue:ke.target.value}})},We=()=>on.findIndex(De=>De.id===ar)===on.length-1?ue.createElement("div",null,"\u5F53\u524D\u5DF2\u662F\u6700\u540E\u4E00\u4E2A\u89C6\u9891"):ue.createElement("div",null,ue.createElement(c.Z,{onChange:De=>{tt("checkBox",De)},defaultChecked:jn,size:"small"}),ue.createElement("span",{className:ae.zdbf},"\u81EA\u52A8\u64AD\u653E\u4E0B\u4E00\u4E2A\u89C6\u9891"));return ue.createElement("aside",{className:ae.contentWrap},ue.createElement("aside",{className:ae.wrap},ue.createElement("header",null),ue.createElement("div",{className:ae.title},Zt==null?void 0:Zt.name),!(Zt!=null&&Zt.can_edit)&&!(Zt!=null&&Zt.is_public)?ue.createElement(D.Z,{description:"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85"}):ue.createElement(g.Z,{ref:kn,startTime:Zt==null?void 0:Zt.last_point,src:Zt!=null&&Zt.is_link?Zt==null?void 0:Zt.link:(Zt==null?void 0:Zt.play_url)&&T.Base64.decode(Zt==null?void 0:Zt.play_url),videoId:Zt==null?void 0:Zt.video_id,logWatchHistory:Gt,handlePause:Z,handlePlay:Se,allow_skip:Zt==null?void 0:Zt.allow_skip,handlePlayEnded:Le,toLog:()=>{}}),ue.createElement("div",{className:ae.footer},ue.createElement("div",{className:ae.footer_left},ue.createElement("div",{className:ae.pingfen},"\u8BC4\u5206"),ue.createElement(V.Z,{value:Zt==null?void 0:Zt.star,disabled:!0,className:ae.rating,style:{color:"#FFA100",fontSize:12,marginLeft:10}}),ue.createElement("div",{className:ae.fenshu},(Zt==null?void 0:Zt.star)||0,"\u5206")),!(Zt!=null&&Zt.can_edit)&&!(Zt!=null&&Zt.is_public)?null:ue.createElement("div",null,ue.createElement("div",{className:ae.checkBox},We()))),ue.createElement("div",{className:"mt10"},(Zt==null?void 0:Zt.description)&&ue.createElement("span",{className:ae.introName},"\u7B80\u4ECB\uFF1A",Zt.description))))};var H=(0,b.connect)(({videoDetail:W,loading:J,globalSetting:ge})=>({videoDetail:W,globalSetting:ge,loading:J}))(j),ve=r(2453),Re=r(79870),Ne={flex_box_center:"flex_box_center___yWqSL",flex_space_between:"flex_space_between___LgFmv",flex_box_vertical_center:"flex_box_vertical_center____lt6U",flex_box_center_end:"flex_box_center_end___UqkaD",flex_box_column:"flex_box_column___V8XLF",list:"list___8tjfT",tree_style:"tree_style___ZzDvO",title:"title___IVfkQ",gray:"gray___RnyYk",brght:"brght___EWRNa",s1:"s1___dPBQg",s3:"s3___SRBBG",active:"active___hsNCX",tree_line:"tree_line___EGn30",tabs_style:"tabs_style___Nwkiq",tabs_item:"tabs_item___Vzu_U",tabs_item_active:"tabs_item_active___BcIwZ"},U=r(15835),Xe=r(93686),oe=r(11320),be=r(67294),F=Object.defineProperty,N=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,we=(W,J,ge)=>J in W?F(W,J,{enumerable:!0,configurable:!0,writable:!0,value:ge}):W[J]=ge,Be=(W,J)=>{for(var ge in J||(J={}))Ke.call(J,ge)&&we(W,ge,J[ge]);if(et)for(var ge of et(J))fe.call(J,ge)&&we(W,ge,J[ge]);return W},Te=(W,J)=>N(W,Qe(J)),Ve=(W,J)=>{var ge={};for(var Je in W)Ke.call(W,Je)&&J.indexOf(Je)<0&&(ge[Je]=W[Je]);if(W!=null&&et)for(var Je of et(W))J.indexOf(Je)<0&&fe.call(W,Je)&&(ge[Je]=W[Je]);return ge},nn=(W,J,ge)=>new Promise((Je,Rt)=>{var Ct=Et=>{try{It(ge.next(Et))}catch(on){Rt(on)}},pt=Et=>{try{It(ge.throw(Et))}catch(on){Rt(on)}},It=Et=>Et.done?Je(Et.value):Promise.resolve(Et.value).then(Ct,pt);It((ge=ge.apply(W,J)).next())});const yt=[{name:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",icon:be.createElement("i",{className:"iconfont icon-shixun2 font20"}),bq:be.createElement("span",{style:{border:"1px solid #FF9D18",color:"#FF9D18"},className:Ne.s1},"\u5B9E\u8BAD")},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",icon:be.createElement("i",{className:"iconfont icon-shipin font20"}),bq:be.createElement("span",{style:{border:"1px solid #9B18FF",color:"#9B18FF"},className:Ne.s1},"\u89C6\u9891")},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",icon:be.createElement("i",{className:"iconfont icon-jiaoxueanli font20"}),bq:be.createElement("span",{style:{border:"1px solid #3061D0",color:"#3061D0"},className:Ne.s1},"\u8D44\u6599")},{name:"\u7A7A\u76EE\u5F55",type:"StageCatalog",icon:be.createElement("i",{className:"iconfont icon-kongbai font20"}),bq:be.createElement("span",null)}],vn=W=>{var J=W,{dispatch:ge,pathsDetail:Je,videoDetail:Rt,user:Ct}=J,pt=Ve(J,["dispatch","pathsDetail","videoDetail","user"]);const{queryParams:It,stages:Et,cust_seq:on,active:Oe}=Rt,{subject_id:ar,course_id:jn}=It,gn=(0,b.useParams)(),[$n]=(0,b.useSearchParams)(),[er,kn]=(0,o.useState)([]),[Tn,In]=(0,o.useState)([(Oe==null?void 0:Oe.id)||Number(gn.videoId)]),[ur,Zt]=(0,o.useState)("\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55"),gr=[".PDF",".DOC",".DOCX",".XLS",".XLSX",".PPT",".PPTX"];(0,o.useEffect)(()=>{ge(ar?{type:"videoDetail/getStageData",payload:{subject_id:ar,page_type:"video"}}:{type:"videoDetail/getCourseStageData",payload:{coursesId:jn}})},[]),(0,o.useEffect)(()=>{Gt()},[Rt==null?void 0:Rt.stages]);const Gt=()=>{let De=er;Et.forEach((he,e)=>{De.push({title:be.createElement("div",{title:he.stage_name,className:Ne.title},he.stage_name),value:he==null?void 0:he.stage_id,key:he==null?void 0:he.stage_id,icon:be.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:Z(he.items||[])})}),kn(De)},Z=De=>{function he(e){var t;const n=e.children,a=Array.isArray(n)&&n.length>0,l=e==null?void 0:e.id,{name:E,item_type:M,id:Ce}=e,me=(t=yt.find(Ot=>Ot.type===M))==null?void 0:t.bq,Ye=Ne.brght,ut=Oe.id===Ce?`${Ye} ${Ne.active}`:Ye;return{title:be.createElement("div",{onClick:()=>tt(e),className:Ye,title:E},me,be.createElement("div",{className:Ne.s3},E)),value:l,key:l,icon:be.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:a?n==null?void 0:n.map(Ot=>he(Ot)):[]}}return De==null?void 0:De.map(e=>he(e))},Se=(De,he)=>nn(void 0,null,function*(){ge({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u7A0D\u540E..."}});const e=he?yield(0,Xe.BK)({id:De}):yield(0,Xe.Ir)({id:De});if(ge({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),e!=null&&e.game_identifier||e!=null&&e.identifier){(0,Y.xg)(he?`/tasks/${e==null?void 0:e.identifier}/jupyter`:`/tasks/${e.game_identifier}`);return}(e==null?void 0:e.status)===2?Le(e==null?void 0:e.message):(e==null?void 0:e.status)===3&&Ae(e==null?void 0:e.message)}),Ae=De=>{w.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:be.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",De,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Le=De=>{De=De!=null&&De.includes(".json")?De:`${De}.json`,w.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:be.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>nn(void 0,null,function*(){const he=yield(0,U.L8)({url:De});if(!he)return;ve.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const e=yield(0,Xe.Ir)({id:he.shixun_identifier});if(e!=null&&e.game_identifier){(0,Y.xg)(`/tasks/${e.game_identifier}`);return}(e==null?void 0:e.status)===2?Le(e==null?void 0:e.message):(e==null?void 0:e.status)===3&&Ae(e==null?void 0:e.message)})})},tt=De=>{var he,e,t,n,a;if((De==null?void 0:De.item_type)==="StageCatalog")return;clearTimeout(window.videoTimer);const{id:l,item_type:E,identifier:M,is_jupyter:Ce,url:me,link:Ye}=De;if(E==="VideoItem"&&!Ye){if(!((he=Ct.userInfo)!=null&&he.admin)&&!((e=Ct.userInfo)!=null&&e.business)&&!De.can_view){w.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:be.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});return}ge({type:"videoDetail/handleListItemClick",payload:{videoId:l}}),ge({type:"videoDetail/getVideoDetail",payload:Te(Be({id:l},It),{videoId:l}),callback:ut=>{if(ut&&ut.video_item&&!ut.video_item.can_edit&&!De.is_public){w.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:be.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}}});return}if(E==="VideoItem"&&Ye){De.link&&(0,I.DH)({is_f:1,id:De.id,point:0,total:0}),window.open(Ye);return}if(E==="Shixun"){Se(M,Ce);return}if(E==="Attachment"){if(Ye){(0,Y.xg)(Ye);return}let ut=(n=De==null?void 0:De.name)==null?void 0:n.substr((t=De==null?void 0:De.name)==null?void 0:t.lastIndexOf("."));if(gr.includes(ut.toUpperCase())){ge({type:"videoDetail/handleListItemClick",payload:{attachmentId:l}});return}else{if(!((a=Je.detail)!=null&&a.allow_download)){ve.ZP.info("\u6559\u5B66\u8BFE\u4EF6\u4E0D\u652F\u6301\u4E0B\u8F7D");return}(0,Y.FH)(De.name,oe.Z.API_SERVER+De.url);return}}window.open(oe.Z.IMG_SERVER+me)},We=De=>{let he=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],e=["","\u5341","\u767E","\u5343","\u4E07"];De=parseInt(De);let t=l=>{let E=l.toString().split("").reverse(),M="";for(var Ce=0;Ce0&&E[Ce]==0&&E[Ce-1]==0?"":he[E[Ce]]+(E[Ce]==0?e[0]:e[Ce]))+M;return M},n=Math.floor(De/1e4),a=De%1e4;return a.toString().length<4&&(a="0"+a),n?t(n)+"\u4E07"+t(a):t(De)},He=(De,he,e,t)=>{var n;const{name:a,item_type:l,id:E}=De,M=`${he+1}-${e+1}-${t+1}`,Ce=(n=yt.find(ut=>ut.type===l))==null?void 0:n.icon,me=Ne.brght,Ye=Oe.id===E?`${me} ${Ne.active}`:me;return be.createElement("div",{key:M,onClick:()=>tt(De),className:Ye,style:{paddingLeft:52}},be.createElement("span",{className:Ne.s1},Ce),!!on&&be.createElement("span",{className:Ne.s2},M),be.createElement("span",{className:Ne.s3},"\u203B ",a))},ke=(De,he,e)=>{var t;const{name:n,item_type:a,id:l,children:E}=De,M=`${he+1}-${e+1}`,Ce=(t=yt.find(ut=>ut.type===a))==null?void 0:t.icon,me=Ne.brght,Ye=Oe.id===l?`${me} ${Ne.active}`:me;return be.createElement(o.Fragment,{key:M},be.createElement("div",{onClick:()=>tt(De),className:Ye},be.createElement("span",{className:Ne.s1},Ce),!!on&&be.createElement("span",{className:Ne.s2},M),be.createElement("span",{className:Ne.s3},"\u203B ",n)),!!E.length&&E.map((ut,Ot)=>He(ut,he,e,Ot)))};return be.createElement("aside",{className:Ne.list},be.createElement("div",{className:Ne.tabs_style},be.createElement("div",{className:Ne.tabs_item,onClick:()=>{Zt("\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55")}},"\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55",ur=="\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55"&&be.createElement("div",{className:Ne.tabs_item_active}))),be.createElement("div",{className:Ne.tree_style},(er==null?void 0:er.length)>0&&be.createElement(Re.default,{selectedKeys:Tn,onSelect:(De,he)=>{In([...De])},blockNode:!0,treeData:er,defaultExpandAll:!0,className:Ne.tree_line})))};var Pt=(0,b.connect)(({user:W,videoDetail:J,loading:ge,globalSetting:Je,pathsDetail:Rt})=>({user:W,videoDetail:J,globalSetting:Je,loading:ge,pathsDetail:Rt}))(vn),mn=r(91613),Jt=r(67294),Wt=Object.defineProperty,zt=Object.defineProperties,fn=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,h=(W,J,ge)=>J in W?Wt(W,J,{enumerable:!0,configurable:!0,writable:!0,value:ge}):W[J]=ge,_=(W,J)=>{for(var ge in J||(J={}))ye.call(J,ge)&&h(W,ge,J[ge]);if(gt)for(var ge of gt(J))ne.call(J,ge)&&h(W,ge,J[ge]);return W},O=(W,J)=>zt(W,fn(J)),se=(W,J)=>{var ge={};for(var Je in W)ye.call(W,Je)&&J.indexOf(Je)<0&&(ge[Je]=W[Je]);if(W!=null&>)for(var Je of gt(W))J.indexOf(Je)<0&&ne.call(W,Je)&&(ge[Je]=W[Je]);return ge},A=(W,J,ge)=>new Promise((Je,Rt)=>{var Ct=Et=>{try{It(ge.next(Et))}catch(on){Rt(on)}},pt=Et=>{try{It(ge.throw(Et))}catch(on){Rt(on)}},It=Et=>Et.done?Je(Et.value):Promise.resolve(Et.value).then(Ct,pt);It((ge=ge.apply(W,J)).next())});const G=W=>{const{subject_id:J}=W;return{subject_id:J,course_id:J}},Q=W=>{var J=W,{videoDetail:ge,globalSetting:Je,loading:Rt,pathsDetail:Ct,dispatch:pt}=J,It=se(J,["videoDetail","globalSetting","loading","pathsDetail","dispatch"]),Et,on;const{queryParams:Oe,videoList:ar,attachmentList:jn,active:gn}=ge,{subject_id:$n,videoId:er}=Oe,kn={videoId:er};(0,o.useEffect)(()=>{if(gn){const{item_type:ur,id:Zt}=gn;ur==="VideoItem"&&pt({type:"videoDetail/getVideoDetail",payload:O(_({},Oe),{id:Zt})})}},[gn.id]),console.log("---",gn),(0,o.useEffect)(()=>{$n&&Tn()},[]);function Tn(){return A(this,null,function*(){const ur=yield pt({type:"pathsDetail/getPathsDetail",payload:{id:$n}})})}(0,o.useEffect)(()=>{var ur,Zt;(0,Y.Dk)((Zt=(ur=ge.detail)==null?void 0:ur.video_item)==null?void 0:Zt.name)},[ge]);let In={width:1200};return gn&&gn.item_type==="Attachment"&&gn.content_type==="application/pdf"&&(In={width:1250,marginLeft:(document.body.clientWidth-1200)/2}),Jt.createElement(z.Z,{spinning:!1},Jt.createElement("section",{className:B.bg},Jt.createElement("div",{className:B.container,style:In},Jt.createElement(Pt,null),gn&&gn.item_type==="VideoItem"&&Jt.createElement(H,null),gn&&gn.item_type==="Attachment"&&gn.content_type==="application/pdf"&&gn.url&&Jt.createElement("div",{className:B.widthle},Jt.createElement(mn.Z,{disabledDownload:!((Et=Ct.detail)!=null&&Et.allow_download),type:"pdf",filename:gn.name,data:oe.Z.API_SERVER+gn.url,style:{position:"absolute",zIndex:1}})),gn&&gn.item_type==="Attachment"&&["application/msword","application/vnd.ms-excel","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(gn.content_type)&&gn.url&&Jt.createElement("div",{className:B.widthle},Jt.createElement(mn.Z,{disabledDownload:!((on=Ct.detail)!=null&&on.allow_download),type:"office",data:oe.Z.API_SERVER+gn.url,style:{position:"absolute",zIndex:1}})))))};var C=(0,b.connect)(({videoDetail:W,loading:J,globalSetting:ge,pathsDetail:Je})=>({videoDetail:W,globalSetting:ge,loading:J,pathsDetail:Je}))(Q)},51959:function(Mt,Me,r){"use strict";r.d(Me,{BU:function(){return b},Dj:function(){return o},gH:function(){return z},vp:function(){return B}});function o(T){try{T.mozRequestFullScreen?T.mozRequestFullScreen():T.webkitRequestFullScreen&&T.webkitRequestFullScreen()}catch(g){console.log(g,":e")}}function b(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const z=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function B(){var T=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,g=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",T),window.isFullScreen?window.isFullScreen:T!=null}},24577:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return De}});class o{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Object.assign=Object.assign||function(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");let t=Object(e);for(let n=1;n ${t}`;T.ENABLE_CALLBACK&&T.emitter.emit("log","error",n),T.ENABLE_ERROR&&(console.error?console.error(n):console.warn?console.warn(n):console.log(n))}static i(e,t){(!e||T.FORCE_GLOBAL_TAG)&&(e=T.GLOBAL_TAG);let n=`[${e}] > ${t}`;T.ENABLE_CALLBACK&&T.emitter.emit("log","info",n),T.ENABLE_INFO&&(console.info?console.info(n):console.log(n))}static w(e,t){(!e||T.FORCE_GLOBAL_TAG)&&(e=T.GLOBAL_TAG);let n=`[${e}] > ${t}`;T.ENABLE_CALLBACK&&T.emitter.emit("log","warn",n),T.ENABLE_WARN&&(console.warn?console.warn(n):console.log(n))}static d(e,t){(!e||T.FORCE_GLOBAL_TAG)&&(e=T.GLOBAL_TAG);let n=`[${e}] > ${t}`;T.ENABLE_CALLBACK&&T.emitter.emit("log","debug",n),T.ENABLE_DEBUG&&(console.debug?console.debug(n):console.log(n))}static v(e,t){(!e||T.FORCE_GLOBAL_TAG)&&(e=T.GLOBAL_TAG);let n=`[${e}] > ${t}`;T.ENABLE_CALLBACK&&T.emitter.emit("log","verbose",n),T.ENABLE_VERBOSE&&console.log(n)}}T.GLOBAL_TAG="flv.js",T.FORCE_GLOBAL_TAG=!1,T.ENABLE_ERROR=!0,T.ENABLE_INFO=!0,T.ENABLE_WARN=!0,T.ENABLE_DEBUG=!0,T.ENABLE_VERBOSE=!0,T.ENABLE_CALLBACK=!1,T.emitter=new(B());var g=T;class w{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(e){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let e=(this._now()-this._lastCheckpoint)/1e3;return e==0&&(e=1),this._intervalBytes/e/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024}}var V=w;class c{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class D extends c{constructor(e){super(e)}get name(){return"IllegalStateException"}}class ae extends c{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class de extends c{constructor(e){super(e)}get name(){return"NotImplementedException"}}const I={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},Y={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class ue{constructor(e){this._type=e||"undefined",this._status=I.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=I.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===I.kConnecting||this._status===I.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(e){this._onContentLengthKnown=e}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(e){this._onURLRedirect=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}open(e,t){throw new de("Unimplemented abstract function!")}abort(){throw new de("Unimplemented abstract function!")}}let te={};function f(){let he=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(he)||/(opr)[\/]([\w.]+)/.exec(he)||/(chrome)[ \/]([\w.]+)/.exec(he)||/(iemobile)[\/]([\w.]+)/.exec(he)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(he)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(he)||/(webkit)[ \/]([\w.]+)/.exec(he)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(he)||/(msie) ([\w.]+)/.exec(he)||he.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(he)||he.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(he)||[],t=/(ipad)/.exec(he)||/(ipod)/.exec(he)||/(windows phone)/.exec(he)||/(iphone)/.exec(he)||/(kindle)/.exec(he)||/(android)/.exec(he)||/(windows)/.exec(he)||/(mac)/.exec(he)||/(linux)/.exec(he)||/(cros)/.exec(he)||[],n={browser:e[5]||e[3]||e[1]||"",version:e[2]||e[4]||"0",majorVersion:e[4]||e[2]||"0",platform:t[0]||""},a={};if(n.browser){a[n.browser]=!0;let l=n.majorVersion.split(".");a.version={major:parseInt(n.majorVersion,10),string:n.version},l.length>1&&(a.version.minor=parseInt(l[1],10)),l.length>2&&(a.version.build=parseInt(l[2],10))}if(n.platform&&(a[n.platform]=!0),(a.chrome||a.opr||a.safari)&&(a.webkit=!0),a.rv||a.iemobile){a.rv&&delete a.rv;let l="msie";n.browser=l,a[l]=!0}if(a.edge){delete a.edge;let l="msedge";n.browser=l,a[l]=!0}if(a.opr){let l="opera";n.browser=l,a[l]=!0}if(a.safari&&a.android){let l="android";n.browser=l,a[l]=!0}a.name=n.browser,a.platform=n.platform;for(let l in te)te.hasOwnProperty(l)&&delete te[l];Object.assign(te,a)}f();var P=te;class K extends ue{static isSupported(){try{let e=P.msedge&&P.version.minor>=15048,t=P.msedge?e:!0;return self.fetch&&self.ReadableStream&&t}catch(e){return!1}}constructor(e,t){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(e,t){this._dataSource=e,this._range=t;let n=e.url;this._config.reuseRedirectedURL&&e.redirectedURL!=null&&(n=e.redirectedURL);let a=this._seekHandler.getConfig(n,t),l=new self.Headers;if(typeof a.headers=="object"){let M=a.headers;for(let Ce in M)M.hasOwnProperty(Ce)&&l.append(Ce,M[Ce])}let E={method:"GET",headers:l,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let M in this._config.headers)l.append(M,this._config.headers[M]);e.cors===!1&&(E.mode="same-origin"),e.withCredentials&&(E.credentials="include"),e.referrerPolicy&&(E.referrerPolicy=e.referrerPolicy),this._status=I.kConnecting,self.fetch(a.url,E).then(M=>{if(this._requestAbort){this._requestAbort=!1,this._status=I.kIdle;return}if(M.ok&&M.status>=200&&M.status<=299){if(M.url!==a.url&&this._onURLRedirect){let me=this._seekHandler.removeURLParameters(M.url);this._onURLRedirect(me)}let Ce=M.headers.get("Content-Length");return Ce!=null&&(this._contentLength=parseInt(Ce),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,M.body.getReader())}else if(this._status=I.kError,this._onError)this._onError(Y.HTTP_STATUS_CODE_INVALID,{code:M.status,msg:M.statusText});else throw new c("FetchStreamLoader: Http code invalid, "+M.status+" "+M.statusText)}).catch(M=>{if(this._status=I.kError,this._onError)this._onError(Y.EXCEPTION,{code:-1,msg:M.message});else throw M})}abort(){this._requestAbort=!0}_pump(e){return e.read().then(t=>{if(t.done)if(this._contentLength!==null&&this._receivedLength{if(t.code===11&&P.msedge)return;this._status=I.kError;let n=0,a=null;if((t.code===19||t.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength299))if(this._status=I.kError,this._onError)this._onError(Y.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new c("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);else this._status=I.kBuffering}}_onProgress(e){if(this._status===I.kError)return;this._contentLength===null&&e.total!==null&&e.total!==0&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let t=e.target.response,n=this._range.from+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}_onLoadEnd(e){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===I.kError)return;this._status=I.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(e){this._status=I.kError;let t=0,n=null;if(this._contentLength&&e.loaded=200&&t.status<=299){if(this._status=LoaderStatus.kBuffering,t.responseURL!=null){let a=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&a!==this._currentRedirectedURL&&(this._currentRedirectedURL=a,this._onURLRedirect&&this._onURLRedirect(a))}let n=t.getResponseHeader("Content-Length");if(n!=null&&this._contentLength==null){let a=parseInt(n);a>0&&(this._contentLength=a,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=LoaderStatus.kError,this._onError)this._onError(LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new RuntimeException("MSStreamLoader: Http code invalid, "+t.status+" "+t.statusText);else if(t.readyState===3&&t.status>=200&&t.status<=299){this._status=LoaderStatus.kBuffering;let n=t.response;this._reader.readAsArrayBuffer(n)}}_xhrOnError(e){this._status=LoaderStatus.kError;let t=LoaderErrors.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type};if(this._onError)this._onError(t,n);else throw new RuntimeException(n.msg)}_msrOnProgress(e){let n=e.target.result;if(n==null){this._doReconnectIfNeeded();return}let a=n.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=n.byteLength;let l=this._totalRange.from+this._receivedLength;this._receivedLength+=a.byteLength,this._onDataArrival&&this._onDataArrival(a,l,this._receivedLength),n.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${l+a.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(n=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(e,t){this._lastTimeLoaded=0;let n=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?n=this._currentRedirectedURL:e.redirectedURL!=null&&(n=e.redirectedURL));let a=this._seekHandler.getConfig(n,t);this._currentRequestURL=a.url;let l=this._xhr=new XMLHttpRequest;if(l.open("GET",a.url,!0),l.responseType="arraybuffer",l.onreadystatechange=this._onReadyStateChange.bind(this),l.onprogress=this._onProgress.bind(this),l.onload=this._onLoad.bind(this),l.onerror=this._onXhrError.bind(this),e.withCredentials&&(l.withCredentials=!0),typeof a.headers=="object"){let E=a.headers;for(let M in E)E.hasOwnProperty(M)&&l.setRequestHeader(M,E[M])}if(typeof this._config.headers=="object"){let E=this._config.headers;for(let M in E)E.hasOwnProperty(M)&&l.setRequestHeader(M,E[M])}l.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=I.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(e){let t=e.target;if(t.readyState===2){if(t.responseURL!=null){let n=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&n!==this._currentRedirectedURL&&(this._currentRedirectedURL=n,this._onURLRedirect&&this._onURLRedirect(n))}if(t.status>=200&&t.status<=299){if(this._waitForTotalLength)return;this._status=I.kBuffering}else if(this._status=I.kError,this._onError)this._onError(Y.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new c("RangeLoader: Http code invalid, "+t.status+" "+t.statusText)}}_onProgress(e){if(this._status===I.kError)return;if(this._contentLength===null){let n=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,n=!0;let a=e.total;this._internalAbort(),a!=null&a!==0&&(this._totalLength=a)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,n){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let t=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(t)}_normalizeSpeed(e){let t=this._chunkSizeKBList,n=t.length-1,a=0,l=0,E=n;if(e=t[a]&&e=3&&(t=this._speedSampler.currentKBps)),t!==0){let E=this._normalizeSpeed(t);this._currentSpeedNormalized!==E&&(this._currentSpeedNormalized=E,this._currentChunkSizeKB=E)}let n=e.target.response,a=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength;let l=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength{this._dispatchArrayBuffer(t.result)},t.readAsArrayBuffer(e.data)}else{this._status=I.kError;let t={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(this._onError)this._onError(Y.EXCEPTION,t);else throw new c(t.msg)}}_dispatchArrayBuffer(e){let t=e,n=this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}_onWebSocketError(e){this._status=I.kError;let t={code:e.code,msg:e.message};if(this._onError)this._onError(Y.EXCEPTION,t);else throw new c(t.msg)}}var Ne=Re;class U{constructor(e){this._zeroStart=e||!1}getConfig(e,t){let n={};if(t.from!==0||t.to!==-1){let a;t.to!==-1?a=`bytes=${t.from.toString()}-${t.to.toString()}`:a=`bytes=${t.from.toString()}-`,n.Range=a}else this._zeroStart&&(n.Range="bytes=0-");return{url:e,headers:n}}removeURLParameters(e){return e}}var Xe=U;class oe{constructor(e,t){this._startName=e,this._endName=t}getConfig(e,t){let n=e;if(t.from!==0||t.to!==-1){let a=!0;n.indexOf("?")===-1&&(n+="?",a=!1),a&&(n+="&"),n+=`${this._startName}=${t.from.toString()}`,t.to!==-1&&(n+=`&${this._endName}=${t.to.toString()}`)}return{url:n,headers:{}}}removeURLParameters(e){let t=e.split("?")[0],n,a=e.indexOf("?");a!==-1&&(n=e.substring(a+1));let l="";if(n!=null&&n.length>0){let E=n.split("&");for(let M=0;M0;Ce[0]!==this._startName&&Ce[0]!==this._endName&&(me&&(l+="&"),l+=E[M])}}return l.length===0?t:t+"?"+l}}var be=oe;class F{constructor(e,t,n){this.TAG="IOController",this._config=t,this._extraData=n,this._stashInitialSize=1024*384,t.stashInitialSize!=null&&t.stashInitialSize>0&&(this._stashInitialSize=t.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,t.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(e.url),this._refTotalLength=e.filesize?e.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new V,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData(e){this._extraData=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onSeeked(){return this._onSeeked}set onSeeked(e){this._onSeeked=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}get onRedirect(){return this._onRedirect}set onRedirect(e){this._onRedirect=e}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(e){this._onRecoveredEarlyEof=e}get currentURL(){return this._dataSource.url}get hasRedirect(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}get currentRedirectedURL(){return this._redirectedURL||this._dataSource.redirectedURL}get currentSpeed(){return this._loaderClass===ve?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let e=this._config;if(e.seekType==="range")this._seekHandler=new Xe(this._config.rangeLoadZeroStart);else if(e.seekType==="param"){let t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new be(t,n)}else if(e.seekType==="custom"){if(typeof e.customSeekHandler!="function")throw new ae("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}else throw new ae(`Invalid seekType in config: ${e.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=Ne;else if(k.isSupported())this._loaderClass=k;else if(m.isSupported())this._loaderClass=m;else if(ve.isSupported())this._loaderClass=ve;else throw new c("Your browser doesn't support xhr with arraybuffer responseType!")}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open(e){this._currentRange={from:0,to:-1},e&&(this._currentRange.from=e),this._speedSampler.reset(),e||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}abort(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}pause(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}resume(){if(this._paused){this._paused=!1;let e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(e,!0)}}seek(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)}_internalSeek(e,t){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(t),this._loader.destroy(),this._loader=null;let n={from:e,to:-1};this._currentRange={from:n.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,n),this._onSeeked&&this._onSeeked()}updateUrl(e){if(!e||typeof e!="string"||e.length===0)throw new ae("Url must be a non-empty string!");this._dataSource.url=e}_expandBuffer(e){let t=this._stashSize;for(;t+1024*1024*10){let a=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(n,0,t).set(a,0)}this._stashBuffer=n,this._bufferSize=t}_normalizeSpeed(e){let t=this._speedNormalizeList,n=t.length-1,a=0,l=0,E=n;if(e=t[a]&&e=512&&e<=1024?t=Math.floor(e*1.5):t=e*2,t>8192&&(t=8192);let n=t*1024+1024*1024*1;this._bufferSize0){let E=this._stashBuffer.slice(0,this._stashUsed),M=this._dispatchChunks(E,this._stashByteStart);if(M0){let Ce=new Uint8Array(E,M);l.set(Ce,0),this._stashUsed=Ce.byteLength,this._stashByteStart+=M}}else this._stashUsed=0,this._stashByteStart+=M;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),l=new Uint8Array(this._stashBuffer,0,this._bufferSize)),l.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{let E=this._dispatchChunks(e,t);if(Ethis._bufferSize&&(this._expandBuffer(M),l=new Uint8Array(this._stashBuffer,0,this._bufferSize)),l.set(new Uint8Array(e,E),0),this._stashUsed+=M,this._stashByteStart=t+E}}}else if(this._stashUsed===0){let l=this._dispatchChunks(e,t);if(lthis._bufferSize&&this._expandBuffer(E),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,l),0),this._stashUsed+=E,this._stashByteStart=t+l}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);let l=new Uint8Array(this._stashBuffer,0,this._bufferSize);l.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;let E=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(E0){let M=new Uint8Array(this._stashBuffer,E);l.set(M,0)}this._stashUsed-=E,this._stashByteStart+=E}}_flushStashBuffer(e){if(this._stashUsed>0){let t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),a=t.byteLength-n;if(n0){let l=new Uint8Array(this._stashBuffer,0,this._bufferSize),E=new Uint8Array(t,n);l.set(E,0),this._stashUsed=E.byteLength,this._stashByteStart+=n}return 0}return this._stashUsed=0,this._stashByteStart=0,a}return 0}_onLoaderComplete(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(e,t){switch(g.e(this.TAG,`Loader error, code = ${t.code}, msg = ${t.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=Y.UNRECOVERABLE_EARLY_EOF),e){case Y.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let n=this._currentRange.to+1;n0){let t=Te.getConfig();e.emit("change",t)}}static registerListener(e){Te.emitter.addListener("change",e)}static removeListener(e){Te.emitter.removeListener("change",e)}static addLogListener(e){g.emitter.addListener("log",e),g.emitter.listenerCount("log")>0&&(g.ENABLE_CALLBACK=!0,Te._notifyChange())}static removeLogListener(e){g.emitter.removeListener("log",e),g.emitter.listenerCount("log")===0&&(g.ENABLE_CALLBACK=!1,Te._notifyChange())}}Te.emitter=new(B());var Ve=Te;class nn{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let e=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,t=this.hasVideo===!1||this.hasVideo===!0&&this.videoCodec!=null&&this.width!=null&&this.height!=null&&this.fps!=null&&this.profile!=null&&this.level!=null&&this.refFrames!=null&&this.chromaFormat!=null&&this.sarNum!=null&&this.sarDen!=null;return this.mimeType!=null&&this.duration!=null&&this.metadata!=null&&this.hasKeyframesIndex!=null&&e&&t}isSeekable(){return this.hasKeyframesIndex===!0}getNearestKeyframe(e){if(this.keyframesIndex==null)return null;let t=this.keyframesIndex,n=this._search(t.times,e);return{index:n,milliseconds:t.times[n],fileposition:t.filepositions[n]}}_search(e,t){let n=0,a=e.length-1,l=0,E=0,M=a;for(t=e[l]&&t=128){e.push(String.fromCharCode(l&65535)),n+=2;continue}}}else if(t[n]<240){if(vn(t,n,2)){let l=(t[n]&15)<<12|(t[n+1]&63)<<6|t[n+2]&63;if(l>=2048&&(l&63488)!==55296){e.push(String.fromCharCode(l&65535)),n+=3;continue}}}else if(t[n]<248&&vn(t,n,3)){let l=(t[n]&7)<<18|(t[n+1]&63)<<12|(t[n+2]&63)<<6|t[n+3]&63;if(l>65536&&l<1114112){l-=65536,e.push(String.fromCharCode(l>>>10|55296)),e.push(String.fromCharCode(l&1023|56320)),n+=4;continue}}}e.push("\uFFFD"),++n}return e.join("")}var mn=Pt;let Jt=function(){let he=new ArrayBuffer(2);return new DataView(he).setInt16(0,256,!0),new Int16Array(he)[0]===256}();class Wt{static parseScriptData(e,t,n){let a={};try{let l=Wt.parseValue(e,t,n),E=Wt.parseValue(e,t+l.size,n-l.size);a[l.data]=E.data}catch(l){g.e("AMF",l.toString())}return a}static parseObject(e,t,n){if(n<3)throw new D("Data not enough when parse ScriptDataObject");let a=Wt.parseString(e,t,n),l=Wt.parseValue(e,t+a.size,n-a.size),E=l.objectEnd;return{data:{name:a.data,value:l.data},size:a.size+l.size,objectEnd:E}}static parseVariable(e,t,n){return Wt.parseObject(e,t,n)}static parseString(e,t,n){if(n<2)throw new D("Data not enough when parse String");let l=new DataView(e,t,n).getUint16(0,!Jt),E;return l>0?E=mn(new Uint8Array(e,t+2,l)):E="",{data:E,size:2+l}}static parseLongString(e,t,n){if(n<4)throw new D("Data not enough when parse LongString");let l=new DataView(e,t,n).getUint32(0,!Jt),E;return l>0?E=mn(new Uint8Array(e,t+4,l)):E="",{data:E,size:4+l}}static parseDate(e,t,n){if(n<10)throw new D("Data size invalid when parse Date");let a=new DataView(e,t,n),l=a.getFloat64(0,!Jt),E=a.getInt16(8,!Jt);return l+=E*60*1e3,{data:new Date(l),size:10}}static parseValue(e,t,n){if(n<1)throw new D("Data not enough when parse Value");let a=new DataView(e,t,n),l=1,E=a.getUint8(0),M,Ce=!1;try{switch(E){case 0:M=a.getFloat64(1,!Jt),l+=8;break;case 1:{M=!!a.getUint8(1),l+=1;break}case 2:{let me=Wt.parseString(e,t+1,n-1);M=me.data,l+=me.size;break}case 3:{M={};let me=0;for((a.getUint32(n-4,!Jt)&16777215)===9&&(me=3);l32)throw new ae("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let E=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,E}let t=this._current_word_bits_left?this._current_word:0;t=t>>>32-this._current_word_bits_left;let n=e-this._current_word_bits_left;this._fillCurrentWord();let a=Math.min(n,this._current_word_bits_left),l=this._current_word>>>32-a;return this._current_word<<=a,this._current_word_bits_left-=a,t=t<>>e)return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()}readUEG(){let e=this._skipLeadingZero();return this.readBits(e+1)-1}readSEG(){let e=this.readUEG();return e&1?e+1>>>1:-1*(e>>>1)}}var gt=fn;class ye{static _ebsp2rbsp(e){let t=e,n=t.byteLength,a=new Uint8Array(n),l=0;for(let E=0;E=2&&t[E]===3&&t[E-1]===0&&t[E-2]===0||(a[l]=t[E],l++);return new Uint8Array(a.buffer,0,l)}static parseSPS(e){let t=ye._ebsp2rbsp(e),n=new gt(t);n.readByte();let a=n.readByte();n.readByte();let l=n.readByte();n.readUEG();let E=ye.getProfileString(a),M=ye.getLevelString(l),Ce=1,me=420,Ye=[0,420,422,444],ut=8;if((a===100||a===110||a===122||a===244||a===44||a===83||a===86||a===118||a===128||a===138||a===144)&&(Ce=n.readUEG(),Ce===3&&n.readBits(1),Ce<=3&&(me=Ye[Ce]),ut=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let Xr=Ce!==3?8:12;for(let yr=0;yr0&&Xr<16?(or=yr[Xr-1],$t=Bn[Xr-1]):Xr===255&&(or=n.readByte()<<8|n.readByte(),$t=n.readByte()<<8|n.readByte())}if(n.readBool()&&n.readBool(),n.readBool()&&(n.readBits(4),n.readBool()&&n.readBits(24)),n.readBool()&&(n.readUEG(),n.readUEG()),n.readBool()){let Xr=n.readBits(32),yr=n.readBits(32);Zn=n.readBool(),hr=yr,pr=Xr*2,Un=hr/pr}}let zi=1;(or!==1||$t!==1)&&(zi=or/$t);let Dr=0,Vi=0;if(Ce===0)Dr=1,Vi=2-Ue;else{let Xr=Ce===3?1:2,yr=Ce===1?2:1;Dr=Xr,Vi=yr*(2-Ue)}let Ni=(At+1)*16,ea=(2-Ue)*((St+1)*16);Ni-=(st+_t)*Dr,ea-=(Xt+ct)*Vi;let Wi=Math.ceil(Ni*zi);return n.destroy(),n=null,{profile_string:E,level_string:M,bit_depth:ut,ref_frames:ot,chroma_format:me,chroma_format_string:ye.getChromaFormatString(me),frame_rate:{fixed:Zn,fps:Un,fps_den:pr,fps_num:hr},sar_ratio:{width:or,height:$t},codec_size:{width:Ni,height:ea},present_size:{width:Wi,height:ea}}}static _skipScalingList(e,t){let n=8,a=8,l=0;for(let E=0;E>>8&255|(he&255)<<8}function se(he){return(he&4278190080)>>>24|(he&16711680)>>>8|(he&65280)<<8|(he&255)<<24}function A(he,e){return he[e]<<24|he[e+1]<<16|he[e+2]<<8|he[e+3]}class G{constructor(e,t){this.TAG="FLVDemuxer",this._config=t,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=e.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=e.hasAudioTrack,this._hasVideo=e.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new yt,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=function(){let n=new ArrayBuffer(2);return new DataView(n).setInt16(0,256,!0),new Int16Array(n)[0]===256}()}destroy(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null}static probe(e){let t=new Uint8Array(e),n={match:!1};if(t[0]!==70||t[1]!==76||t[2]!==86||t[3]!==1)return n;let a=(t[4]&4)>>>2!==0,l=(t[4]&1)!==0,E=A(t,5);return E<9?n:{match:!0,consumed:E,dataOffset:E,hasAudioTrack:a,hasVideoTrack:l}}bindDataSource(e){return e.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(e){this._onTrackMetadata=e}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(e){this._onMediaInfo=e}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(e){this._onMetaDataArrived=e}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(e){this._onScriptDataArrived=e}get onError(){return this._onError}set onError(e){this._onError=e}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(e){this._onDataAvailable=e}get timestampBase(){return this._timestampBase}set timestampBase(e){this._timestampBase=e}get overridedDuration(){return this._duration}set overridedDuration(e){this._durationOverrided=!0,this._duration=e,this._mediaInfo.duration=e}set overridedHasAudio(e){this._hasAudioFlagOverrided=!0,this._hasAudio=e,this._mediaInfo.hasAudio=e}set overridedHasVideo(e){this._hasVideoFlagOverrided=!0,this._hasVideo=e,this._mediaInfo.hasVideo=e}resetMediaInfo(){this._mediaInfo=new yt}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1}parseChunks(e,t){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new D("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let n=0,a=this._littleEndian;if(t===0)if(e.byteLength>13)n=G.probe(e).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,t+n!==this._dataOffset&&g.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(e,n).getUint32(0,!a)!==0&&g.w(this.TAG,"PrevTagSize0 !== 0 !!!"),n+=4);ne.byteLength)break;let E=l.getUint8(0),M=l.getUint32(0,!a)&16777215;if(n+11+M+4>e.byteLength)break;if(E!==8&&E!==9&&E!==18){g.w(this.TAG,`Unsupported tag type ${E}, skipped`),n+=11+M+4;continue}let Ce=l.getUint8(4),me=l.getUint8(5),Ye=l.getUint8(6),ut=l.getUint8(7),Ot=Ye|me<<8|Ce<<16|ut<<24;(l.getUint32(7,!a)&16777215)!==0&&g.w(this.TAG,"Meet tag which has StreamID != 0!");let At=n+11;switch(E){case 8:this._parseAudioData(e,At,M,Ot);break;case 9:this._parseVideoData(e,At,M,Ot,t+n);break;case 18:this._parseScriptData(e,At,M);break}let St=l.getUint32(11+M,!a);St!==11+M&&g.w(this.TAG,`Invalid PrevTagSize ${St}`),n+=11+M+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),n}_parseScriptData(e,t,n){let a=zt.parseScriptData(e,t,n);if(a.hasOwnProperty("onMetaData")){if(a.onMetaData==null||typeof a.onMetaData!="object"){g.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&g.w(this.TAG,"Found another onMetaData tag!"),this._metadata=a;let l=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},l)),typeof l.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=l.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof l.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=l.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof l.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=l.audiodatarate),typeof l.videodatarate=="number"&&(this._mediaInfo.videoDataRate=l.videodatarate),typeof l.width=="number"&&(this._mediaInfo.width=l.width),typeof l.height=="number"&&(this._mediaInfo.height=l.height),typeof l.duration=="number"){if(!this._durationOverrided){let E=Math.floor(l.duration*this._timescale);this._duration=E,this._mediaInfo.duration=E}}else this._mediaInfo.duration=0;if(typeof l.framerate=="number"){let E=Math.floor(l.framerate*1e3);if(E>0){let M=E/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=M,this._referenceFrameRate.fps_num=E,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=M}}if(typeof l.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let E=l.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(E),l.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=l,g.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(a).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},a))}_parseKeyframesIndex(e){let t=[],n=[];for(let a=1;a>>4;if(Ce!==2&&Ce!==10){this._onError(_.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Ce);return}let me=0,Ye=(M&12)>>>2;if(Ye>=0&&Ye<=4)me=this._flvSoundRateTable[Ye];else{this._onError(_.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+Ye);return}let ut=(M&2)>>>1,Ot=M&1,ot=this._audioMetadata,At=this._audioTrack;if(ot||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),ot=this._audioMetadata={},ot.type="audio",ot.id=At.id,ot.timescale=this._timescale,ot.duration=this._duration,ot.audioSampleRate=me,ot.channelCount=Ot===0?1:2),Ce===10){let St=this._parseAACAudioData(e,t+1,n-1);if(St==null)return;if(St.packetType===0){ot.config&&g.w(this.TAG,"Found another AudioSpecificConfig!");let Ue=St.data;ot.audioSampleRate=Ue.samplingRate,ot.channelCount=Ue.channelCount,ot.codec=Ue.codec,ot.originalCodec=Ue.originalCodec,ot.config=Ue.config,ot.refSampleDuration=1024/ot.audioSampleRate*ot.timescale,g.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",ot);let st=this._mediaInfo;st.audioCodec=ot.originalCodec,st.audioSampleRate=ot.audioSampleRate,st.audioChannelCount=ot.channelCount,st.hasVideo?st.videoCodec!=null&&(st.mimeType='video/x-flv; codecs="'+st.videoCodec+","+st.audioCodec+'"'):st.mimeType='video/x-flv; codecs="'+st.audioCodec+'"',st.isComplete()&&this._onMediaInfo(st)}else if(St.packetType===1){let Ue=this._timestampBase+a,st={unit:St.data,length:St.data.byteLength,dts:Ue,pts:Ue};At.samples.push(st),At.length+=St.data.length}else g.e(this.TAG,`Flv: Unsupported AAC data type ${St.packetType}`)}else if(Ce===2){if(!ot.codec){let _t=this._parseMP3AudioData(e,t+1,n-1,!0);if(_t==null)return;ot.audioSampleRate=_t.samplingRate,ot.channelCount=_t.channelCount,ot.codec=_t.codec,ot.originalCodec=_t.originalCodec,ot.refSampleDuration=1152/ot.audioSampleRate*ot.timescale,g.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",ot);let Xt=this._mediaInfo;Xt.audioCodec=ot.codec,Xt.audioSampleRate=ot.audioSampleRate,Xt.audioChannelCount=ot.channelCount,Xt.audioDataRate=_t.bitRate,Xt.hasVideo?Xt.videoCodec!=null&&(Xt.mimeType='video/x-flv; codecs="'+Xt.videoCodec+","+Xt.audioCodec+'"'):Xt.mimeType='video/x-flv; codecs="'+Xt.audioCodec+'"',Xt.isComplete()&&this._onMediaInfo(Xt)}let St=this._parseMP3AudioData(e,t+1,n-1,!1);if(St==null)return;let Ue=this._timestampBase+a,st={unit:St,length:St.byteLength,dts:Ue,pts:Ue};At.samples.push(st),At.length+=St.length}}_parseAACAudioData(e,t,n){if(n<=1){g.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let a={},l=new Uint8Array(e,t,n);return a.packetType=l[0],l[0]===0?a.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):a.data=l.subarray(1),a}_parseAACAudioSpecificConfig(e,t,n){let a=new Uint8Array(e,t,n),l=null,E=0,M=0,Ce=null,me=0,Ye=null;if(E=M=a[0]>>>3,me=(a[0]&7)<<1|a[1]>>>7,me<0||me>=this._mpegSamplingRates.length){this._onError(_.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let ut=this._mpegSamplingRates[me],Ot=(a[1]&120)>>>3;if(Ot<0||Ot>=8){this._onError(_.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}E===5&&(Ye=(a[1]&7)<<1|a[2]>>>7,Ce=(a[2]&124)>>>2);let ot=self.navigator.userAgent.toLowerCase();return ot.indexOf("firefox")!==-1?me>=6?(E=5,l=new Array(4),Ye=me-3):(E=2,l=new Array(2),Ye=me):ot.indexOf("android")!==-1?(E=2,l=new Array(2),Ye=me):(E=5,Ye=me,l=new Array(4),me>=6?Ye=me-3:Ot===1&&(E=2,l=new Array(2),Ye=me)),l[0]=E<<3,l[0]|=(me&15)>>>1,l[1]=(me&15)<<7,l[1]|=(Ot&15)<<3,E===5&&(l[1]|=(Ye&15)>>>1,l[2]=(Ye&1)<<7,l[2]|=8,l[3]=0),{config:l,samplingRate:ut,channelCount:Ot,codec:"mp4a.40."+E,originalCodec:"mp4a.40."+M}}_parseMP3AudioData(e,t,n,a){if(n<4){g.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let l=this._littleEndian,E=new Uint8Array(e,t,n),M=null;if(a){if(E[0]!==255)return;let Ce=E[1]>>>3&3,me=(E[1]&6)>>1,Ye=(E[2]&240)>>>4,ut=(E[2]&12)>>>2,ot=(E[3]>>>6&3)!==3?2:1,At=0,St=0,Ue=34,st="mp3";switch(Ce){case 0:At=this._mpegAudioV25SampleRateTable[ut];break;case 2:At=this._mpegAudioV20SampleRateTable[ut];break;case 3:At=this._mpegAudioV10SampleRateTable[ut];break}switch(me){case 1:Ue=34,Ye>>4,Ce=E&15;if(Ce!==7){this._onError(_.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${Ce}`);return}this._parseAVCVideoPacket(e,t+1,n-1,a,l,M)}_parseAVCVideoPacket(e,t,n,a,l,E){if(n<4){g.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let M=this._littleEndian,Ce=new DataView(e,t,n),me=Ce.getUint8(0),ut=(Ce.getUint32(0,!M)&16777215)<<8>>8;if(me===0)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(me===1)this._parseAVCVideoData(e,t+4,n-4,a,l,E,ut);else if(me!==2){this._onError(_.FORMAT_ERROR,`Flv: Invalid video packet type ${me}`);return}}_parseAVCDecoderConfigurationRecord(e,t,n){if(n<7){g.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let a=this._videoMetadata,l=this._videoTrack,E=this._littleEndian,M=new DataView(e,t,n);a?typeof a.avcc!="undefined"&&g.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),a=this._videoMetadata={},a.type="video",a.id=l.id,a.timescale=this._timescale,a.duration=this._duration);let Ce=M.getUint8(0),me=M.getUint8(1),Ye=M.getUint8(2),ut=M.getUint8(3);if(Ce!==1||me===0){this._onError(_.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(M.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(_.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Ot=M.getUint8(5)&31;if(Ot===0){this._onError(_.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Ot>1&&g.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Ot}`);let ot=6;for(let St=0;St1&&g.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${At}`);ot++;for(let St=0;St=n){g.w(this.TAG,`Malformed Nalu near timestamp ${At}, offset = ${Ot}, dataSize = ${n}`);break}let Ue=me.getUint32(Ot,!Ce);if(ot===3&&(Ue>>>=8),Ue>n-ot){g.w(this.TAG,`Malformed Nalus near timestamp ${At}, NaluSize > DataSize!`);return}let st=me.getUint8(Ot+ot)&31;st===5&&(St=!0);let _t=new Uint8Array(e,t+Ot,ot+Ue),Xt={type:st,data:_t};Ye.push(Xt),ut+=_t.byteLength,Ot+=ot+Ue}if(Ye.length){let Ue=this._videoTrack,st={units:Ye,length:ut,isKeyframe:St,dts:At,cts:M,pts:At+M};St&&(st.fileposition=l),Ue.samples.push(st),Ue.length+=ut}}}var Q=G;class C{static init(){C.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(let t in C.types)C.types.hasOwnProperty(t)&&(C.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let e=C.constants={};e.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),e.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),e.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSC=e.STCO=e.STTS,e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),e.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),e.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(e){let t=8,n=null,a=Array.prototype.slice.call(arguments,1),l=a.length;for(let M=0;M>>24&255,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n.set(e,4);let E=8;for(let M=0;M>>24&255,e>>>16&255,e>>>8&255,e&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}static trak(e){return C.box(C.types.trak,C.tkhd(e),C.mdia(e))}static tkhd(e){let t=e.id,n=e.duration,a=e.presentWidth,l=e.presentHeight;return C.box(C.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255,0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,a>>>8&255,a&255,0,0,l>>>8&255,l&255,0,0]))}static mdia(e){return C.box(C.types.mdia,C.mdhd(e),C.hdlr(e),C.minf(e))}static mdhd(e){let t=e.timescale,n=e.duration;return C.box(C.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255,85,196,0,0]))}static hdlr(e){let t=null;return e.type==="audio"?t=C.constants.HDLR_AUDIO:t=C.constants.HDLR_VIDEO,C.box(C.types.hdlr,t)}static minf(e){let t=null;return e.type==="audio"?t=C.box(C.types.smhd,C.constants.SMHD):t=C.box(C.types.vmhd,C.constants.VMHD),C.box(C.types.minf,t,C.dinf(),C.stbl(e))}static dinf(){return C.box(C.types.dinf,C.box(C.types.dref,C.constants.DREF))}static stbl(e){return C.box(C.types.stbl,C.stsd(e),C.box(C.types.stts,C.constants.STTS),C.box(C.types.stsc,C.constants.STSC),C.box(C.types.stsz,C.constants.STSZ),C.box(C.types.stco,C.constants.STCO))}static stsd(e){return e.type==="audio"?e.codec==="mp3"?C.box(C.types.stsd,C.constants.STSD_PREFIX,C.mp3(e)):C.box(C.types.stsd,C.constants.STSD_PREFIX,C.mp4a(e)):C.box(C.types.stsd,C.constants.STSD_PREFIX,C.avc1(e))}static mp3(e){let t=e.channelCount,n=e.audioSampleRate,a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,n>>>8&255,n&255,0,0]);return C.box(C.types[".mp3"],a)}static mp4a(e){let t=e.channelCount,n=e.audioSampleRate,a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,n>>>8&255,n&255,0,0]);return C.box(C.types.mp4a,a,C.esds(e))}static esds(e){let t=e.config||[],n=t.length,a=new Uint8Array([0,0,0,0,3,23+n,0,1,0,4,15+n,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([n]).concat(t).concat([6,1,2]));return C.box(C.types.esds,a)}static avc1(e){let t=e.avcc,n=e.codecWidth,a=e.codecHeight,l=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,n>>>8&255,n&255,a>>>8&255,a&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return C.box(C.types.avc1,l,C.box(C.types.avcC,t))}static mvex(e){return C.box(C.types.mvex,C.trex(e))}static trex(e){let t=e.id,n=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return C.box(C.types.trex,n)}static moof(e,t){return C.box(C.types.moof,C.mfhd(e.sequenceNumber),C.traf(e,t))}static mfhd(e){let t=new Uint8Array([0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,e&255]);return C.box(C.types.mfhd,t)}static traf(e,t){let n=e.id,a=C.box(C.types.tfhd,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255])),l=C.box(C.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255])),E=C.sdtp(e),M=C.trun(e,E.byteLength+16+16+8+16+8+8);return C.box(C.types.traf,a,l,M,E)}static sdtp(e){let t=e.samples||[],n=t.length,a=new Uint8Array(4+n);for(let l=0;l>>24&255,a>>>16&255,a>>>8&255,a&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0);for(let M=0;M>>24&255,Ce>>>16&255,Ce>>>8&255,Ce&255,me>>>24&255,me>>>16&255,me>>>8&255,me&255,Ye.isLeading<<2|Ye.dependsOn,Ye.isDependedOn<<6|Ye.hasRedundancy<<4|Ye.isNonSync,0,0,ut>>>24&255,ut>>>16&255,ut>>>8&255,ut&255],12+16*M)}return C.box(C.types.trun,E)}static mdat(e){return C.box(C.types.mdat,e)}}C.init();var W=C;class J{static getSilentFrame(e,t){if(e==="mp4a.40.2"){if(t===1)return new Uint8Array([0,200,0,128,35,128]);if(t===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(t===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(t===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(t===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(t===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(t===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(t===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}var ge=J;class Je{constructor(e,t,n,a,l){this.dts=e,this.pts=t,this.duration=n,this.originalDts=a,this.isSyncPoint=l,this.fileposition=null}}class Rt{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint(e){e.isSyncPoint=!0,this.syncPoints.push(e)}}class Ct{constructor(){this._list=[]}clear(){this._list=[]}appendArray(e){let t=this._list;e.length!==0&&(t.length>0&&e[0].originalDts=t[l].dts&&et[a].lastSample.originalDts&&e=t[a].lastSample.originalDts&&(a===t.length-1||a0&&(l=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=l,this._list.splice(l,0,n)}getLastSegmentBefore(e){let t=this._searchNearestSegmentBefore(e);return t>=0?this._list[t]:null}getLastSampleBefore(e){let t=this.getLastSegmentBefore(e);return t!=null?t.lastSample:null}getLastSyncPointBefore(e){let t=this._searchNearestSegmentBefore(e),n=this._list[t].syncPoints;for(;n.length===0&&t>0;)t--,n=this._list[t].syncPoints;return n.length>0?n[n.length-1]:null}}class It{constructor(e){this.TAG="MP4Remuxer",this._config=e,this._isLive=e.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new pt("audio"),this._videoSegmentInfoList=new pt("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(P.chrome&&(P.version.major<50||P.version.major===50&&P.version.build<2661)),this._fillSilentAfterSeek=P.msedge||P.msie,this._mp3UseMpegAudio=!P.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}destroy(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}bindDataSource(e){return e.onDataAvailable=this.remux.bind(this),e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(e){this._onInitSegment=e}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(e){this._onMediaSegment=e}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(e,t){if(!this._onMediaSegment)throw new D("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)}_onTrackMetadataReceived(e,t){let n=null,a="mp4",l=t.codec;if(e==="audio")this._audioMeta=t,t.codec==="mp3"&&this._mp3UseMpegAudio?(a="mpeg",l="",n=new Uint8Array):n=W.generateInitSegment(t);else if(e==="video")this._videoMeta=t,n=W.generateInitSegment(t);else return;if(!this._onInitSegment)throw new D("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:l,container:`${e}/${a}`,mediaDuration:t.duration})}_calculateDtsBase(e,t){this._dtsBaseInited||(e.samples&&e.samples.length&&(this._audioDtsBase=e.samples[0].dts),t.samples&&t.samples.length&&(this._videoDtsBase=t.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let e=this._videoStashedLastSample,t=this._audioStashedLastSample,n={type:"video",id:1,sequenceNumber:0,samples:[],length:0};e!=null&&(n.samples.push(e),n.length=e.length);let a={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};t!=null&&(a.samples.push(t),a.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(a,!0)}_remuxAudio(e,t){if(this._audioMeta==null)return;let n=e,a=n.samples,l,E=-1,M=-1,Ce=-1,me=this._audioMeta.refSampleDuration,Ye=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,ut=this._dtsBaseInited&&this._audioNextDts===void 0,Ot=!1;if(!a||a.length===0||a.length===1&&!t)return;let ot=0,At=null,St=0;Ye?(ot=0,St=n.length):(ot=8,St=8+n.length);let Ue=null;if(a.length>1&&(Ue=a.pop(),St-=Ue.length),this._audioStashedLastSample!=null){let $t=this._audioStashedLastSample;this._audioStashedLastSample=null,a.unshift($t),St+=$t.length}Ue!=null&&(this._audioStashedLastSample=Ue);let st=a[0].dts-this._dtsBase;if(this._audioNextDts)l=st-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())l=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Ot=!0);else{let $t=this._audioSegmentInfoList.getLastSampleBefore(st);if($t!=null){let Un=st-($t.originalDts+$t.duration);Un<=3&&(Un=0);let Zn=$t.dts+$t.duration+Un;l=st-Zn}else l=0}if(Ot){let $t=st-l,Un=this._videoSegmentInfoList.getLastSegmentBefore(st);if(Un!=null&&Un.beginDts<$t){let Zn=ge.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(Zn){let hr=Un.beginDts,pr=$t-Un.beginDts;g.v(this.TAG,`InsertPrefixSilentAudio: dts: ${hr}, duration: ${pr}`),a.unshift({unit:Zn,dts:hr,pts:hr}),St+=Zn.byteLength}}else Ot=!1}let _t=[];for(let $t=0;$t=1?mi=_t[_t.length-1].duration:mi=Math.floor(me);let zi=!1,Dr=null;if(mi>me*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!P.safari){zi=!0;let Vi=Math.abs(mi-me),Ni=Math.ceil(Vi/me),ea=pr+me;g.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. dts: ${pr+mi} ms, expected: ${pr+Math.round(me)} ms, delta: ${Math.round(Vi)} ms, generate: ${Ni} frames`);let Wi=ge.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Wi==null&&(g.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Wi=Zn),Dr=[];for(let yr=0;yr0){let li=Dr[Dr.length-1];li.duration=Bn-li.dts}let Hi={dts:Bn,pts:Bn,cts:0,unit:Wi,size:Wi.byteLength,duration:0,originalDts:hr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Dr.push(Hi),St+=Hi.size,ea+=me}let Xr=Dr[Dr.length-1];Xr.duration=pr+mi-Xr.dts,mi=Math.round(me)}_t.push({dts:pr,pts:pr,cts:0,unit:Un.unit,size:Un.unit.byteLength,duration:mi,originalDts:hr,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),zi&&_t.push.apply(_t,Dr)}Ye?At=new Uint8Array(St):(At=new Uint8Array(St),At[0]=St>>>24&255,At[1]=St>>>16&255,At[2]=St>>>8&255,At[3]=St&255,At.set(W.types.mdat,4));for(let $t=0;$t<_t.length;$t++){let Un=_t[$t].unit;At.set(Un,ot),ot+=Un.byteLength}let Xt=_t[_t.length-1];M=Xt.dts+Xt.duration,this._audioNextDts=M;let ct=new Rt;ct.beginDts=E,ct.endDts=M,ct.beginPts=E,ct.endPts=M,ct.originalBeginDts=_t[0].originalDts,ct.originalEndDts=Xt.originalDts+Xt.duration,ct.firstSample=new Je(_t[0].dts,_t[0].pts,_t[0].duration,_t[0].originalDts,!1),ct.lastSample=new Je(Xt.dts,Xt.pts,Xt.duration,Xt.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(ct),n.samples=_t,n.sequenceNumber++;let Tr=null;Ye?Tr=new Uint8Array:Tr=W.moof(n,E),n.samples=[],n.length=0;let or={type:"audio",data:this._mergeBoxes(Tr,At).buffer,sampleCount:_t.length,info:ct};Ye&&ut&&(or.timestampOffset=E),this._onMediaSegment("audio",or)}_remuxVideo(e,t){if(this._videoMeta==null)return;let n=e,a=n.samples,l,E=-1,M=-1,Ce=-1,me=-1;if(!a||a.length===0||a.length===1&&!t)return;let Ye=8,ut=null,Ot=8+e.length,ot=null;if(a.length>1&&(ot=a.pop(),Ot-=ot.length),this._videoStashedLastSample!=null){let Xt=this._videoStashedLastSample;this._videoStashedLastSample=null,a.unshift(Xt),Ot+=Xt.length}ot!=null&&(this._videoStashedLastSample=ot);let At=a[0].dts-this._dtsBase;if(this._videoNextDts)l=At-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())l=0;else{let Xt=this._videoSegmentInfoList.getLastSampleBefore(At);if(Xt!=null){let ct=At-(Xt.originalDts+Xt.duration);ct<=3&&(ct=0);let Tr=Xt.dts+Xt.duration+ct;l=At-Tr}else l=0}let St=new Rt,Ue=[];for(let Xt=0;Xt=1?hr=Ue[Ue.length-1].duration:hr=Math.floor(this._videoMeta.refSampleDuration),or){let pr=new Je($t,Zn,hr,ct.dts,!0);pr.fileposition=ct.fileposition,St.appendSyncPoint(pr)}Ue.push({dts:$t,pts:Zn,cts:Un,units:ct.units,size:ct.length,isKeyframe:or,duration:hr,originalDts:Tr,flags:{isLeading:0,dependsOn:or?2:1,isDependedOn:or?1:0,hasRedundancy:0,isNonSync:or?0:1}})}ut=new Uint8Array(Ot),ut[0]=Ot>>>24&255,ut[1]=Ot>>>16&255,ut[2]=Ot>>>8&255,ut[3]=Ot&255,ut.set(W.types.mdat,4);for(let Xt=0;Xt{a.timestampBase=n,n+=a.duration,a.cors=e.cors,a.withCredentials=e.withCredentials,t.referrerPolicy&&(a.referrerPolicy=t.referrerPolicy)}),!isNaN(n)&&this._mediaDataSource.duration!==n&&(this._mediaDataSource.duration=n),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}destroy(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(e,t){this._currentSegmentIndex=e;let n=this._mediaDataSource.segments[e],a=this._ioctl=new N(n,this._config,e);a.onError=this._onIOException.bind(this),a.onSeeked=this._onIOSeeked.bind(this),a.onComplete=this._onIOComplete.bind(this),a.onRedirect=this._onIORedirect.bind(this),a.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):a.onDataArrival=this._onInitChunkArrival.bind(this),a.open(t)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(e){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;let t=this._searchSegmentIndexContains(e);if(t===this._currentSegmentIndex){let n=this._mediaInfo.segments[t];if(n==null)this._pendingSeekTime=e;else{let a=n.getNearestKeyframe(e);this._remuxer.seek(a.milliseconds),this._ioctl.seek(a.fileposition),this._pendingResolveSeekPoint=a.milliseconds}}else{let n=this._mediaInfo.segments[t];if(n==null)this._pendingSeekTime=e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(t);else{let a=n.getNearestKeyframe(e);this._internalAbort(),this._remuxer.seek(e),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[t].timestampBase,this._loadSegment(t,a.fileposition),this._pendingResolveSeekPoint=a.milliseconds,this._reportSegmentMediaInfo(t)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(e){let t=this._mediaDataSource.segments,n=t.length-1;for(let a=0;a0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,a=this._demuxer.parseChunks(e,t);else if((n=Q.probe(e)).match){this._demuxer=new Q(n,this._config),this._remuxer||(this._remuxer=new Et(this._config));let l=this._mediaDataSource;l.duration!=null&&!isNaN(l.duration)&&(this._demuxer.overridedDuration=l.duration),typeof l.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=l.hasAudio),typeof l.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=l.hasVideo),this._demuxer.timestampBase=l.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),a=this._demuxer.parseChunks(e,t)}else n=null,g.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Oe.DEMUX_ERROR,_.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),a=0;return a}_onMediaInfo(e){this._mediaInfo==null&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,yt.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,yt.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=t,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(()=>{let n=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(n)})}_onMetaDataArrived(e){this._emitter.emit(Oe.METADATA_ARRIVED,e)}_onScriptDataArrived(e){this._emitter.emit(Oe.SCRIPTDATA_ARRIVED,e)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(e){let n=e+1;n0&&n[0].originalDts===a&&(a=n[0].pts),this._emitter.emit(Oe.RECOMMEND_SEEKPOINT,a)}}_enableStatisticsReporter(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo(e){let t=this._mediaInfo.segments[e],n=Object.assign({},t);n.duration=this._mediaInfo.duration,n.segmentCount=this._mediaInfo.segmentCount,delete n.segments,delete n.keyframesIndex,this._emitter.emit(Oe.MEDIA_INFO,n)}_reportStatisticsInfo(){let e={};e.url=this._ioctl.currentURL,e.hasRedirect=this._ioctl.hasRedirect,e.hasRedirect&&(e.redirectedURL=this._ioctl.currentRedirectedURL),e.speed=this._ioctl.currentSpeed,e.loaderType=this._ioctl.loaderType,e.currentSegmentIndex=this._currentSegmentIndex,e.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Oe.STATISTICS_INFO,e)}}var jn=ar,$n=function(he){let e="TransmuxingWorker",t=null,n=St.bind(this);b.install(),he.addEventListener("message",function(Ue){switch(Ue.data.cmd){case"init":t=new jn(Ue.data.param[0],Ue.data.param[1]),t.on(Oe.IO_ERROR,Ot.bind(this)),t.on(Oe.DEMUX_ERROR,ot.bind(this)),t.on(Oe.INIT_SEGMENT,a.bind(this)),t.on(Oe.MEDIA_SEGMENT,l.bind(this)),t.on(Oe.LOADING_COMPLETE,E.bind(this)),t.on(Oe.RECOVERED_EARLY_EOF,M.bind(this)),t.on(Oe.MEDIA_INFO,Ce.bind(this)),t.on(Oe.METADATA_ARRIVED,me.bind(this)),t.on(Oe.SCRIPTDATA_ARRIVED,Ye.bind(this)),t.on(Oe.STATISTICS_INFO,ut.bind(this)),t.on(Oe.RECOMMEND_SEEKPOINT,At.bind(this));break;case"destroy":t&&(t.destroy(),t=null),he.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(Ue.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let st=Ue.data.param;Ve.applyConfig(st),st.enableCallback===!0?Ve.addLogListener(n):Ve.removeLogListener(n);break}}});function a(Ue,st){let _t={msg:Oe.INIT_SEGMENT,data:{type:Ue,data:st}};he.postMessage(_t,[st.data])}function l(Ue,st){let _t={msg:Oe.MEDIA_SEGMENT,data:{type:Ue,data:st}};he.postMessage(_t,[st.data])}function E(){let Ue={msg:Oe.LOADING_COMPLETE};he.postMessage(Ue)}function M(){let Ue={msg:Oe.RECOVERED_EARLY_EOF};he.postMessage(Ue)}function Ce(Ue){let st={msg:Oe.MEDIA_INFO,data:Ue};he.postMessage(st)}function me(Ue){let st={msg:Oe.METADATA_ARRIVED,data:Ue};he.postMessage(st)}function Ye(Ue){let st={msg:Oe.SCRIPTDATA_ARRIVED,data:Ue};he.postMessage(st)}function ut(Ue){let st={msg:Oe.STATISTICS_INFO,data:Ue};he.postMessage(st)}function Ot(Ue,st){he.postMessage({msg:Oe.IO_ERROR,data:{type:Ue,info:st}})}function ot(Ue,st){he.postMessage({msg:Oe.DEMUX_ERROR,data:{type:Ue,info:st}})}function At(Ue){he.postMessage({msg:Oe.RECOMMEND_SEEKPOINT,data:Ue})}function St(Ue,st){he.postMessage({msg:"logcat_callback",data:{type:Ue,logcat:st}})}};class er{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new(B()),t.enableWorker&&typeof Worker!="undefined")try{let n=r(18034);this._worker=n($n),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[e,t]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Ve.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Ve.getConfig()})}catch(n){g.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new jn(e,t)}else this._controller=new jn(e,t);if(this._controller){let n=this._controller;n.on(Oe.IO_ERROR,this._onIOError.bind(this)),n.on(Oe.DEMUX_ERROR,this._onDemuxError.bind(this)),n.on(Oe.INIT_SEGMENT,this._onInitSegment.bind(this)),n.on(Oe.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),n.on(Oe.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),n.on(Oe.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),n.on(Oe.MEDIA_INFO,this._onMediaInfo.bind(this)),n.on(Oe.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),n.on(Oe.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),n.on(Oe.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),n.on(Oe.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),Ve.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}hasWorker(){return this._worker!=null}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek(e){this._worker?this._worker.postMessage({cmd:"seek",param:e}):this._controller.seek(e)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(Oe.INIT_SEGMENT,e,t)})}_onMediaSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(Oe.MEDIA_SEGMENT,e,t)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Oe.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Oe.RECOVERED_EARLY_EOF)})}_onMediaInfo(e){Promise.resolve().then(()=>{this._emitter.emit(Oe.MEDIA_INFO,e)})}_onMetaDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(Oe.METADATA_ARRIVED,e)})}_onScriptDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(Oe.SCRIPTDATA_ARRIVED,e)})}_onStatisticsInfo(e){Promise.resolve().then(()=>{this._emitter.emit(Oe.STATISTICS_INFO,e)})}_onIOError(e,t){Promise.resolve().then(()=>{this._emitter.emit(Oe.IO_ERROR,e,t)})}_onDemuxError(e,t){Promise.resolve().then(()=>{this._emitter.emit(Oe.DEMUX_ERROR,e,t)})}_onRecommendSeekpoint(e){Promise.resolve().then(()=>{this._emitter.emit(Oe.RECOMMEND_SEEKPOINT,e)})}_onLoggingConfigChanged(e){this._worker&&this._worker.postMessage({cmd:"logging_config",param:e})}_onWorkerMessage(e){let t=e.data,n=t.data;if(t.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(t.msg){case Oe.INIT_SEGMENT:case Oe.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case Oe.LOADING_COMPLETE:case Oe.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case Oe.MEDIA_INFO:Object.setPrototypeOf(n,yt.prototype),this._emitter.emit(t.msg,n);break;case Oe.METADATA_ARRIVED:case Oe.SCRIPTDATA_ARRIVED:case Oe.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case Oe.IO_ERROR:case Oe.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case Oe.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":g.emitter.emit("log",n.type,n.logcat);break;default:break}}}var kn=er,In={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class ur{constructor(e){this.TAG="MSEController",this._config=e,this._emitter=new(B()),this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new Ct}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaSource)throw new D("MediaSource has been attached to an HTMLMediaElement!");let t=this._mediaSource=new window.MediaSource;t.addEventListener("sourceopen",this.e.onSourceOpen),t.addEventListener("sourceended",this.e.onSourceEnded),t.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),e.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let e=this._mediaSource;for(let t in this._sourceBuffers){let n=this._pendingSegments[t];n.splice(0,n.length),this._pendingSegments[t]=null,this._pendingRemoveRanges[t]=null,this._lastInitSegments[t]=null;let a=this._sourceBuffers[t];if(a){if(e.readyState!=="closed"){try{e.removeSourceBuffer(a)}catch(l){g.e(this.TAG,l.message)}a.removeEventListener("error",this.e.onSourceBufferError),a.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[t]=null,this._sourceBuffers[t]=null}}if(e.readyState==="open")try{e.endOfStream()}catch(t){g.e(this.TAG,t.message)}e.removeEventListener("sourceopen",this.e.onSourceOpen),e.removeEventListener("sourceended",this.e.onSourceEnded),e.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment(e,t){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(e),this._pendingSegments[e.type].push(e);return}let n=e,a=`${n.container}`;n.codec&&n.codec.length>0&&(a+=`;codecs=${n.codec}`);let l=!1;if(g.v(this.TAG,"Received Initialization Segment, mimeType: "+a),this._lastInitSegments[n.type]=n,a!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])g.v(this.TAG,`Notice: ${n.type} mimeType changed, origin: ${this._mimeTypes[n.type]}, target: ${a}`);else{l=!0;try{let E=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(a);E.addEventListener("error",this.e.onSourceBufferError),E.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(E){g.e(this.TAG,E.message),this._emitter.emit(In.ERROR,{code:E.code,msg:E.message});return}}this._mimeTypes[n.type]=a}t||this._pendingSegments[n.type].push(n),l||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),P.safari&&n.container==="audio/mpeg"&&n.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=n.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(e){let t=e;this._pendingSegments[t.type].push(t),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let n=this._sourceBuffers[t.type];n&&!n.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}seek(e){for(let t in this._sourceBuffers){if(!this._sourceBuffers[t])continue;let n=this._sourceBuffers[t];if(this._mediaSource.readyState==="open")try{n.abort()}catch(l){g.e(this.TAG,l.message)}this._idrList.clear();let a=this._pendingSegments[t];if(a.splice(0,a.length),this._mediaSource.readyState!=="closed"){for(let l=0;l=1&&e-a.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let n=this._sourceBuffers[t];if(n){let a=n.buffered,l=!1;for(let E=0;E=this._config.autoCleanupMaxBackwardDuration){l=!0;let me=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:M,end:me})}}else Ce0&&(isNaN(t)||n>t)&&(g.v(this.TAG,`Update MediaSource duration from ${t} to ${n}`),this._mediaSource.duration=n),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let e in this._pendingRemoveRanges){if(!this._sourceBuffers[e]||this._sourceBuffers[e].updating)continue;let t=this._sourceBuffers[e],n=this._pendingRemoveRanges[e];for(;n.length&&!t.updating;){let a=n.shift();t.remove(a.start,a.end)}}}_doAppendSegments(){let e=this._pendingSegments;for(let t in e)if(!(!this._sourceBuffers[t]||this._sourceBuffers[t].updating)&&e[t].length>0){let n=e[t].shift();if(n.timestampOffset){let a=this._sourceBuffers[t].timestampOffset,l=n.timestampOffset/1e3;Math.abs(a-l)>.1&&(g.v(this.TAG,`Update MPEG audio timestampOffset from ${a} to ${l}`),this._sourceBuffers[t].timestampOffset=l),delete n.timestampOffset}if(!n.data||n.data.byteLength===0)continue;try{this._sourceBuffers[t].appendBuffer(n.data),this._isBufferFull=!1,t==="video"&&n.hasOwnProperty("info")&&this._idrList.appendArray(n.info.syncPoints)}catch(a){this._pendingSegments[t].unshift(n),a.code===22?(this._isBufferFull||this._emitter.emit(In.BUFFER_FULL),this._isBufferFull=!0):(g.e(this.TAG,a.message),this._emitter.emit(In.ERROR,{code:a.code,msg:a.message}))}}}_onSourceOpen(){if(g.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let e=this._pendingSourceBufferInit;for(;e.length;){let t=e.shift();this.appendInitSegment(t,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(In.SOURCE_OPEN)}_onSourceEnded(){g.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){g.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let e=this._pendingSegments;return e.video.length>0||e.audio.length>0}_hasPendingRemoveRanges(){let e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(In.UPDATE_END)}_onSourceBufferError(e){g.e(this.TAG,`SourceBuffer Error: ${e}`)}}var Zt=ur;const gr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Gt={NETWORK_EXCEPTION:Y.EXCEPTION,NETWORK_STATUS_CODE_INVALID:Y.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:Y.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:Y.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:_.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:_.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:_.CODEC_UNSUPPORTED};class Z{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(B()),this._config=et(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()!=="flv")throw new ae("FlvPlayer requires an flv MediaDataSource input!");e.isLive===!0&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=e,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;let n=P.chrome&&(P.version.major<50||P.version.major===50&&P.version.build<2661);this._alwaysSeekKeyframe=!!(n||P.msedge||P.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}destroy(){this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){e===Be.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Be.MEDIA_INFO,this.mediaInfo)}):e===Be.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Be.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),e.addEventListener("seeking",this.e.onvSeeking),e.addEventListener("canplay",this.e.onvCanPlay),e.addEventListener("stalled",this.e.onvStalled),e.addEventListener("progress",this.e.onvProgress),this._msectl=new Zt(this._config),this._msectl.on(In.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(In.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(In.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(In.ERROR,t=>{this._emitter.emit(Be.ERROR,gr.MEDIA_ERROR,Gt.MEDIA_MSE_ERROR,t)}),this._msectl.attachMediaElement(e),this._pendingSeekTime!=null)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new D("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new D("FlvPlayer.load() has been called, please call unload() first!");if(!this._hasPendingLoad){if(this._config.deferLoadAfterSourceOpen&&this._mseSourceOpened===!1){this._hasPendingLoad=!0;return}this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new kn(this._mediaDataSource,this._config),this._transmuxer.on(Oe.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(Oe.MEDIA_SEGMENT,(e,t)=>{if(this._msectl.appendMediaSegment(t),this._config.lazyLoad&&!this._config.isLive){let n=this._mediaElement.currentTime;t.info.endDts>=(n+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(g.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(Oe.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(Be.LOADING_COMPLETE)}),this._transmuxer.on(Oe.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(Be.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Oe.IO_ERROR,(e,t)=>{this._emitter.emit(Be.ERROR,gr.NETWORK_ERROR,e,t)}),this._transmuxer.on(Oe.DEMUX_ERROR,(e,t)=>{this._emitter.emit(Be.ERROR,gr.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(Oe.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(Be.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(Oe.METADATA_ARRIVED,e=>{this._emitter.emit(Be.METADATA_ARRIVED,e)}),this._transmuxer.on(Oe.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(Be.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(Oe.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(Be.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Oe.RECOMMEND_SEEKPOINT,e=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e/1e3)}),this._transmuxer.open()}}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}_fillStatisticsInfo(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,n=0,a=0;if(this._mediaElement.getVideoPlaybackQuality){let l=this._mediaElement.getVideoPlaybackQuality();n=l.totalVideoFrames,a=l.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,a=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=a),e}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,a=0;for(let l=0;l=t+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(g.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){g.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let e=this._mediaElement.currentTime,t=this._mediaElement.buffered,n=!1;for(let a=0;a=l&&e=E-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(g.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(e){let t=this._mediaElement.buffered;for(let n=0;n=a&&e0){let l=this._mediaElement.buffered.start(0);(l<1&&e0&&t.currentTime0){let a=n.start(0);if(a<1&&t{this._emitter.emit(Be.MEDIA_INFO,this.mediaInfo)}):e===Be.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Be.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new D("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}unload(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._mediaElement.currentTime=e:this._pendingSeekTime=e}get mediaInfo(){let t={mimeType:(this._mediaElement instanceof HTMLAudioElement?"audio/":"video/")+this._mediaDataSource.type};return this._mediaElement&&(t.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(t.width=this._mediaElement.videoWidth,t.height=this._mediaElement.videoHeight)),t}get statisticsInfo(){let e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,n=0,a=0;if(this._mediaElement.getVideoPlaybackQuality){let l=this._mediaElement.getVideoPlaybackQuality();n=l.totalVideoFrames,a=l.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,a=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=a),e}_onvLoadedMetadata(e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(Be.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(Be.STATISTICS_INFO,this.statisticsInfo)}}var Le=Ae;b.install();function tt(he,e){let t=he;if(t==null||typeof t!="object")throw new ae("MediaDataSource must be an javascript object!");if(!t.hasOwnProperty("type"))throw new ae("MediaDataSource must has type field to indicate video file type!");switch(t.type){case"flv":return new Se(t,e);default:return new Le(t,e)}}function We(){return fe.supportMSEH264Playback()}function He(){return fe.getFeatureList()}let ke={};ke.createPlayer=tt,ke.isSupported=We,ke.getFeatureList=He,ke.BaseLoader=ue,ke.LoaderStatus=I,ke.LoaderErrors=Y,ke.Events=Be,ke.ErrorTypes=gr,ke.ErrorDetails=Gt,ke.FlvPlayer=Se,ke.NativePlayer=Le,ke.LoggingControl=Ve,Object.defineProperty(ke,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var De=ke},63185:function(Mt,Me,r){"use strict";r.d(Me,{C2:function(){return T}});var o=r(14747),b=r(45503),z=r(67968);const B=g=>{const{checkboxCls:w}=g,V=`${w}-wrapper`;return[{[`${w}-group`]:Object.assign(Object.assign({},(0,o.Wf)(g)),{display:"inline-flex",flexWrap:"wrap",columnGap:g.marginXS,[`> ${g.antCls}-row`]:{flex:1}}),[V]:Object.assign(Object.assign({},(0,o.Wf)(g)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${V}`]:{marginInlineStart:0},[`&${V}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[w]:Object.assign(Object.assign({},(0,o.Wf)(g)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:g.borderRadiusSM,alignSelf:"center",[`${w}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${w}-inner`]:Object.assign({},(0,o.oN)(g))},[`${w}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:g.checkboxSize,height:g.checkboxSize,direction:"ltr",backgroundColor:g.colorBgContainer,border:`${g.lineWidth}px ${g.lineType} ${g.colorBorder}`,borderRadius:g.borderRadiusSM,borderCollapse:"separate",transition:`all ${g.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:g.checkboxSize/14*5,height:g.checkboxSize/14*8,border:`${g.lineWidthBold}px solid ${g.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${g.motionDurationFast} ${g.motionEaseInBack}, opacity ${g.motionDurationFast}`}},"& + span":{paddingInlineStart:g.paddingXS,paddingInlineEnd:g.paddingXS}})},{[` ${V}:not(${V}-disabled), ${w}:not(${w}-disabled) `]:{[`&:hover ${w}-inner`]:{borderColor:g.colorPrimary}},[`${V}:not(${V}-disabled)`]:{[`&:hover ${w}-checked:not(${w}-disabled) ${w}-inner`]:{backgroundColor:g.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${w}-checked:not(${w}-disabled):after`]:{borderColor:g.colorPrimaryHover}}},{[`${w}-checked`]:{[`${w}-inner`]:{backgroundColor:g.colorPrimary,borderColor:g.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${g.motionDurationMid} ${g.motionEaseOutBack} ${g.motionDurationFast}`}}},[` ${V}-checked:not(${V}-disabled), ${w}-checked:not(${w}-disabled) `]:{[`&:hover ${w}-inner`]:{backgroundColor:g.colorPrimaryHover,borderColor:"transparent"}}},{[w]:{"&-indeterminate":{[`${w}-inner`]:{backgroundColor:g.colorBgContainer,borderColor:g.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:g.fontSizeLG/2,height:g.fontSizeLG/2,backgroundColor:g.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${V}-disabled`]:{cursor:"not-allowed"},[`${w}-disabled`]:{[`&, ${w}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${w}-inner`]:{background:g.colorBgContainerDisabled,borderColor:g.colorBorder,"&:after":{borderColor:g.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:g.colorTextDisabled},[`&${w}-indeterminate ${w}-inner::after`]:{background:g.colorTextDisabled}}}]};function T(g,w){const V=(0,b.TS)(w,{checkboxCls:`.${g}`,checkboxSize:w.controlInteractiveSize});return[B(V)]}Me.ZP=(0,z.Z)("Checkbox",(g,w)=>{let{prefixCls:V}=w;return[T(V,g)]})},56153:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return zo}});var o=r(67294),b=r.t(o,2),z=r(91034),B=r(94184),T=r.n(B),g=r(87462),w=r(4942),V=r(97685),c=r(45987),D=r(1413),ae=r(73935);function de(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var I={};function Y(u,p){}function ue(u,p){}function te(){I={}}function f(u,p,y){!p&&!I[y]&&(u(!1,y),I[y]=!0)}function P(u,p){f(Y,u,p)}function K(u,p){f(ue,u,p)}var k=null,x=r(71002),m=r(12060);function R(u,p,y){var $=o.useRef({});return(!("value"in $.current)||y($.current.condition,p))&&($.current.value=u(),$.current.condition=p),$.current.value}function j(u,p){typeof u=="function"?u(p):(0,x.Z)(u)==="object"&&u&&"current"in u&&(u.current=p)}function H(){for(var u=arguments.length,p=new Array(u),y=0;y0&&arguments[0]!==void 0?arguments[0]:{},p=u.mark;return p?p.startsWith("data-")?p:"data-".concat(p):fe}function Te(u){if(u.attachTo)return u.attachTo;var p=document.querySelector("head");return p||document.body}function Ve(u){return u==="queue"?"prependQueue":u?"prepend":"append"}function nn(u){return Array.from((we.get(u)||u).children).filter(function(p){return p.tagName==="STYLE"})}function yt(u){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!de())return null;var y=p.csp,$=p.prepend,ie=document.createElement("style");ie.setAttribute(Ke,Ve($)),y!=null&&y.nonce&&(ie.nonce=y==null?void 0:y.nonce),ie.innerHTML=u;var xe=Te(p),Ie=xe.firstChild;if($){if($==="queue"){var nt=nn(xe).filter(function(bt){return["prepend","prependQueue"].includes(bt.getAttribute(Ke))});if(nt.length)return xe.insertBefore(ie,nt[nt.length-1].nextSibling),ie}xe.insertBefore(ie,Ie)}else xe.appendChild(ie);return ie}function vn(u){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y=Te(p);return nn(y).find(function($){return $.getAttribute(Be(p))===u})}function Pt(u){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y=vn(u,p);if(y){var $=Te(p);$.removeChild(y)}}function mn(u,p){var y=we.get(u);if(!y||!et(document,y)){var $=yt("",p),ie=$.parentNode;we.set(u,ie),u.removeChild($)}}function Jt(){we.clear()}function Wt(u,p){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},$=Te(y);mn($,y);var ie=vn(p,y);if(ie){var xe,Ie;if((xe=y.csp)!==null&&xe!==void 0&&xe.nonce&&ie.nonce!==((Ie=y.csp)===null||Ie===void 0?void 0:Ie.nonce)){var nt;ie.nonce=(nt=y.csp)===null||nt===void 0?void 0:nt.nonce}return ie.innerHTML!==u&&(ie.innerHTML=u),ie}var bt=yt(u,y);return bt.setAttribute(Be(y),p),bt}var zt;function fn(u){if(typeof document=="undefined")return 0;if(u||zt===void 0){var p=document.createElement("div");p.style.width="100%",p.style.height="200px";var y=document.createElement("div"),$=y.style;$.position="absolute",$.top="0",$.left="0",$.pointerEvents="none",$.visibility="hidden",$.width="200px",$.height="150px",$.overflow="hidden",y.appendChild(p),document.body.appendChild(y);var ie=p.offsetWidth;y.style.overflow="scroll";var xe=p.offsetWidth;ie===xe&&(xe=y.clientWidth),document.body.removeChild(y),zt=ie-xe}return zt}function gt(u){var p=u.match(/^(.*)px$/),y=Number(p==null?void 0:p[1]);return Number.isNaN(y)?fn():y}function ye(u){if(typeof document=="undefined"||!u||!(u instanceof Element))return{width:0,height:0};var p=getComputedStyle(u,"::-webkit-scrollbar"),y=p.width,$=p.height;return{width:gt(y),height:gt($)}}function ne(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var h="rc-util-locker-".concat(Date.now()),_=0;function O(u){var p=!!u,y=o.useState(function(){return _+=1,"".concat(h,"_").concat(_)}),$=(0,V.Z)(y,1),ie=$[0];be(function(){if(p){var xe=ye(document.body).width,Ie=ne();Wt(` html body { overflow-y: hidden; `.concat(Ie?"width: calc(100% - ".concat(xe,"px);"):"",` }`),ie)}else Pt(ie);return function(){Pt(ie)}},[p,ie])}var se=!1;function A(u){return typeof u=="boolean"&&(se=u),se}var G=function(p){return p===!1?!1:!de()||!p?null:typeof p=="string"?document.querySelector(p):typeof p=="function"?p():p},Q=o.forwardRef(function(u,p){var y=u.open,$=u.autoLock,ie=u.getContainer,xe=u.debug,Ie=u.autoDestroy,nt=Ie===void 0?!0:Ie,bt=u.children,lt=o.useState(y),Ht=(0,V.Z)(lt,2),ht=Ht[0],jt=Ht[1],Nt=ht||y;o.useEffect(function(){(nt||y)&&jt(y)},[y,nt]);var Tt=o.useState(function(){return G(ie)}),Wn=(0,V.Z)(Tt,2),Ln=Wn[0],nr=Wn[1];o.useEffect(function(){var Qr=G(ie);nr(Qr!=null?Qr:null)});var Pn=Qe(Nt&&!Ln,xe),yn=(0,V.Z)(Pn,2),kt=yn[0],Pr=yn[1],Cr=Ln!=null?Ln:kt;O($&&y&&de()&&(Cr===kt||Cr===document.body));var $r=null;if(bt&&Re(bt)&&p){var Jr=bt;$r=Jr.ref}var di=ve($r,p);if(!Nt||!de()||Ln===void 0)return null;var vr=Cr===!1||A(),Gn=bt;return p&&(Gn=o.cloneElement(bt,{ref:di})),o.createElement(U.Provider,{value:Pr},vr?Gn:(0,ae.createPortal)(Gn,Cr))}),C=Q,W=C,J=r(48555);function ge(u){return u instanceof HTMLElement||u instanceof SVGElement}function Je(u){return ge(u)?u:u instanceof React.Component?ReactDOM.findDOMNode(u):null}function Rt(u){var p;return u==null||(p=u.getRootNode)===null||p===void 0?void 0:p.call(u)}function Ct(u){return Rt(u)instanceof ShadowRoot}function pt(u){return Ct(u)?Rt(u):null}function It(u){var p=o.useRef();p.current=u;var y=o.useCallback(function(){for(var $,ie=arguments.length,xe=new Array(ie),Ie=0;Ie0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],y=arguments.length>2?arguments[2]:void 0;return y?u[0]===p[0]:u[0]===p[0]&&u[1]===p[1]}function Ae(u,p,y,$){for(var ie=y.points,xe=Object.keys(u),Ie=0;Ie1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(u)?p:u}function ke(u){return He(parseFloat(u),0)}function De(u,p){var y=(0,D.Z)({},u);return(p||[]).forEach(function($){if(!($ instanceof HTMLBodyElement||$ instanceof HTMLHtmlElement)){var ie=tt($).getComputedStyle($),xe=ie.overflow,Ie=ie.overflowClipMargin,nt=ie.borderTopWidth,bt=ie.borderBottomWidth,lt=ie.borderLeftWidth,Ht=ie.borderRightWidth,ht=$.getBoundingClientRect(),jt=$.offsetHeight,Nt=$.clientHeight,Tt=$.offsetWidth,Wn=$.clientWidth,Ln=ke(nt),nr=ke(bt),Pn=ke(lt),yn=ke(Ht),kt=He(Math.round(ht.width/Tt*1e3)/1e3),Pr=He(Math.round(ht.height/jt*1e3)/1e3),Cr=(Tt-Wn-Pn-yn)*kt,$r=(jt-Nt-Ln-nr)*Pr,Jr=Ln*Pr,di=nr*Pr,vr=Pn*kt,Gn=yn*kt,Qr=0,fi=0;if(xe==="clip"){var wr=ke(Ie);Qr=wr*kt,fi=wr*Pr}var Kn=ht.x+vr-Qr,mr=ht.y+Jr-fi,On=Kn+ht.width+2*Qr-vr-Gn-Cr,Li=mr+ht.height+2*fi-Jr-di-$r;y.left=Math.max(y.left,Kn),y.top=Math.max(y.top,mr),y.right=Math.min(y.right,On),y.bottom=Math.min(y.bottom,Li)}}),y}function he(u){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,y="".concat(p),$=y.match(/^(.*)\%$/);return $?u*(parseFloat($[1])/100):parseFloat(y)}function e(u,p){var y=p||[],$=(0,V.Z)(y,2),ie=$[0],xe=$[1];return[he(u.width,ie),he(u.height,xe)]}function t(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[u[0],u[1]]}function n(u,p){var y=p[0],$=p[1],ie,xe;return y==="t"?xe=u.y:y==="b"?xe=u.y+u.height:xe=u.y+u.height/2,$==="l"?ie=u.x:$==="r"?ie=u.x+u.width:ie=u.x+u.width/2,{x:ie,y:xe}}function a(u,p){var y={t:"b",b:"t",l:"r",r:"l"};return u.map(function($,ie){return ie===p?y[$]||"c":$}).join("")}function l(u,p,y,$,ie,xe,Ie){var nt=o.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ie[$]||{}}),bt=(0,V.Z)(nt,2),lt=bt[0],Ht=bt[1],ht=o.useRef(0),jt=o.useMemo(function(){return p?We(p):[]},[p]),Nt=o.useRef({}),Tt=function(){Nt.current={}};u||Tt();var Wn=It(function(){if(p&&y&&u){let Fi=function(ca,Ai){var aa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:it,Ca=Er.x+ca,wa=Er.y+Ai,_a=Ca+S,Oa=wa+d,so=Math.max(Ca,aa.left),Oi=Math.max(wa,aa.top),Ya=Math.min(_a,aa.right),Vt=Math.min(Oa,aa.bottom);return Math.max(0,(Ya-so)*(Vt-Oi))},qi=function(){_r=Er.y+Rn,Ti=_r+d,xn=Er.x+Hn,Yi=xn+S};var Pn,yn,kt=p,Pr=kt.ownerDocument,Cr=tt(kt),$r=Cr.getComputedStyle(kt),Jr=$r.width,di=$r.height,vr=$r.position,Gn=kt.style.left,Qr=kt.style.top,fi=kt.style.right,wr=kt.style.bottom,Kn=(0,D.Z)((0,D.Z)({},ie[$]),xe),mr=Pr.createElement("div");(Pn=kt.parentElement)===null||Pn===void 0||Pn.appendChild(mr),mr.style.left="".concat(kt.offsetLeft,"px"),mr.style.top="".concat(kt.offsetTop,"px"),mr.style.position=vr,mr.style.height="".concat(kt.offsetHeight,"px"),mr.style.width="".concat(kt.offsetWidth,"px"),kt.style.left="0",kt.style.top="0",kt.style.right="auto",kt.style.bottom="auto";var On;if(Array.isArray(y))On={x:y[0],y:y[1],width:0,height:0};else{var Li=y.getBoundingClientRect();On={x:Li.x,y:Li.y,width:Li.width,height:Li.height}}var Er=kt.getBoundingClientRect(),ti=Pr.documentElement,ha=ti.clientWidth,ji=ti.clientHeight,Qi=ti.scrollWidth,Sa=ti.scrollHeight,i=ti.scrollTop,s=ti.scrollLeft,d=Er.height,S=Er.width,L=On.height,q=On.width,ee={left:0,top:0,right:ha,bottom:ji},ze={left:-s,top:-i,right:Qi-s,bottom:Sa-i},Fe=Kn.htmlRegion,Ge="visible",xt="visibleFirst";Fe!=="scroll"&&Fe!==xt&&(Fe=Ge);var ft=Fe===xt,vt=De(ze,jt),Pe=De(ee,jt),it=Fe===Ge?Pe:vt,Kt=ft?Pe:it;kt.style.left="auto",kt.style.top="auto",kt.style.right="0",kt.style.bottom="0";var Ft=kt.getBoundingClientRect();kt.style.left=Gn,kt.style.top=Qr,kt.style.right=fi,kt.style.bottom=wr,(yn=kt.parentElement)===null||yn===void 0||yn.removeChild(mr);var dn=He(Math.round(S/parseFloat(Jr)*1e3)/1e3),Ut=He(Math.round(d/parseFloat(di)*1e3)/1e3);if(dn===0||Ut===0||ge(y)&&!Z(y))return;var Dt=Kn.offset,rt=Kn.targetOffset,tn=e(Er,Dt),Sn=(0,V.Z)(tn,2),Cn=Sn[0],hn=Sn[1],Mr=e(On,rt),En=(0,V.Z)(Mr,2),Sr=En[0],cr=En[1];On.x-=Sr,On.y-=cr;var Xn=Kn.points||[],Fn=(0,V.Z)(Xn,2),wn=Fn[0],zn=Fn[1],an=t(zn),rr=t(wn),ir=n(On,an),Zr=n(Er,rr),_i=(0,D.Z)({},Kn),Hn=ir.x-Zr.x+Cn,Rn=ir.y-Zr.y+hn,zr=Fi(Hn,Rn),kr=Fi(Hn,Rn,Pe),Yr=n(On,["t","l"]),dr=n(Er,["t","l"]),fr=n(On,["b","r"]),br=n(Er,["b","r"]),ni=Kn.overflow||{},Hr=ni.adjustX,ri=ni.adjustY,ii=ni.shiftX,yi=ni.shiftY,$i=function(Ai){return typeof Ai=="boolean"?Ai:Ai>=0},_r,Ti,xn,Yi;qi();var Ci=$i(ri),ki=rr[0]===an[0];if(Ci&&rr[0]==="t"&&(Ti>Kt.bottom||Nt.current.bt)){var Ei=Rn;ki?Ei-=d-L:Ei=Yr.y-br.y-hn;var ai=Fi(Hn,Ei),wi=Fi(Hn,Ei,Pe);ai>zr||ai===zr&&(!ft||wi>=kr)?(Nt.current.bt=!0,Rn=Ei,hn=-hn,_i.points=[a(rr,0),a(an,0)]):Nt.current.bt=!1}if(Ci&&rr[0]==="b"&&(_rzr||Br===zr&&(!ft||ba>=kr)?(Nt.current.tb=!0,Rn=Bi,hn=-hn,_i.points=[a(rr,0),a(an,0)]):Nt.current.tb=!1}var Si=$i(Hr),jr=rr[1]===an[1];if(Si&&rr[1]==="l"&&(Yi>Kt.right||Nt.current.rl)){var Ki=Hn;jr?Ki-=S-q:Ki=Yr.x-br.x-Cn;var oi=Fi(Ki,Rn),va=Fi(Ki,Rn,Pe);oi>zr||oi===zr&&(!ft||va>=kr)?(Nt.current.rl=!0,Hn=Ki,Cn=-Cn,_i.points=[a(rr,1),a(an,1)]):Nt.current.rl=!1}if(Si&&rr[1]==="r"&&(xnzr||Ji===zr&&(!ft||Ri>=kr)?(Nt.current.lr=!0,Hn=Vr,Cn=-Cn,_i.points=[a(rr,1),a(an,1)]):Nt.current.lr=!1}qi();var Rr=ii===!0?0:ii;typeof Rr=="number"&&(xnPe.right&&(Hn-=Yi-Pe.right-Cn,On.x>Pe.right-Rr&&(Hn+=On.x-Pe.right+Rr)));var Or=yi===!0?0:yi;typeof Or=="number"&&(_rPe.bottom&&(Rn-=Ti-Pe.bottom-hn,On.y>Pe.bottom-Or&&(Rn+=On.y-Pe.bottom+Or)));var xi=Er.x+Hn,hi=xi+S,ia=Er.y+Rn,ta=ia+d,Ii=On.x,xr=Ii+q,Ir=On.y,Nr=Ir+L,ua=Math.max(xi,Ii),pn=Math.min(hi,xr),Nn=(ua+pn)/2,Wr=Nn-xi,Mi=Math.max(ia,Ir),si=Math.min(ta,Nr),oo=(Mi+si)/2,Wa=oo-ia;Ie==null||Ie(p,_i);var Fa=Ft.right-Er.x-(Hn+Er.width),Ua=Ft.bottom-Er.y-(Rn+Er.height);Ht({ready:!0,offsetX:Hn/dn,offsetY:Rn/Ut,offsetR:Fa/dn,offsetB:Ua/Ut,arrowX:Wr/dn,arrowY:Wa/Ut,scaleX:dn,scaleY:Ut,align:_i})}}),Ln=function(){ht.current+=1;var yn=ht.current;Promise.resolve().then(function(){ht.current===yn&&Wn()})},nr=function(){Ht(function(yn){return(0,D.Z)((0,D.Z)({},yn),{},{ready:!1})})};return Tn(nr,[$]),Tn(function(){u||nr()},[u]),[lt.ready,lt.offsetX,lt.offsetY,lt.offsetR,lt.offsetB,lt.arrowX,lt.arrowY,lt.scaleX,lt.scaleY,lt.align,Ln]}function E(u,p,y,$,ie){Tn(function(){if(u&&p&&y){let ht=function(){$(),ie()};var xe=p,Ie=y,nt=We(xe),bt=We(Ie),lt=tt(Ie),Ht=new Set([lt].concat((0,Xe.Z)(nt),(0,Xe.Z)(bt)));return Ht.forEach(function(jt){jt.addEventListener("scroll",ht,{passive:!0})}),lt.addEventListener("resize",ht,{passive:!0}),$(),function(){Ht.forEach(function(jt){jt.removeEventListener("scroll",ht),lt.removeEventListener("resize",ht)})}}},[u,p,y])}function M(u){var p=React.useRef(!1),y=React.useState(u),$=_slicedToArray(y,2),ie=$[0],xe=$[1];React.useEffect(function(){return p.current=!1,function(){p.current=!0}},[]);function Ie(nt,bt){bt&&p.current||xe(nt)}return[ie,Ie]}function Ce(u){return u!==void 0}function me(u,p){var y=p||{},$=y.defaultValue,ie=y.value,xe=y.onChange,Ie=y.postState,nt=useState(function(){return Ce(ie)?ie:Ce($)?typeof $=="function"?$():$:typeof u=="function"?u():u}),bt=_slicedToArray(nt,2),lt=bt[0],Ht=bt[1],ht=ie!==void 0?ie:lt,jt=Ie?Ie(ht):ht,Nt=useEvent(xe),Tt=useState([ht]),Wn=_slicedToArray(Tt,2),Ln=Wn[0],nr=Wn[1];useLayoutUpdateEffect(function(){var yn=Ln[0];lt!==yn&&Nt(lt,yn)},[Ln]),useLayoutUpdateEffect(function(){Ce(ie)||Ht(ie)},[ie]);var Pn=useEvent(function(yn,kt){Ht(yn,kt),nr([ht],kt)});return[jt,Pn]}var Ye=r(95845);function ut(u,p,y){var $=o.useRef({});return(!("value"in $.current)||y($.current.condition,p))&&($.current.value=u(),$.current.condition=p),$.current.value}function Ot(u,p){typeof u=="function"?u(p):(0,x.Z)(u)==="object"&&u&&"current"in u&&(u.current=p)}function ot(){for(var u=arguments.length,p=new Array(u),y=0;y3&&arguments[3]!==void 0?arguments[3]:!1;return p.length&&$&&y===void 0&&!get(u,p.slice(0,-1))?u:st(u,p,y,$)}function Xt(u){return _typeof(u)==="object"&&u!==null&&Object.getPrototypeOf(u)===Object.prototype}function ct(u){return Array.isArray(u)?[]:{}}var Tr=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function or(){for(var u=arguments.length,p=new Array(u),y=0;y1&&arguments[1]!==void 0?arguments[1]:1;Xr+=1;var $=Xr;function ie(xe){if(xe===0)Bn($),p();else{var Ie=ea(function(){ie(xe-1)});yr.set($,Ie)}}return ie(y),$};Hi.cancel=function(u){var p=yr.get(u);return Bn(p),Wi(p)};var li=Hi;function gi(u,p,y,$,ie,xe,Ie,nt){var bt=o.useRef(u),lt=o.useRef(!1);bt.current!==u&&(lt.current=!0,bt.current=u),o.useEffect(function(){var Ht=li(function(){lt.current=!1});return function(){li.cancel(Ht)}},[u]),o.useEffect(function(){if(p&&$&&(!ie||xe)){var Ht=function(){var vr=!1,Gn=function(wr){var Kn=wr.target;vr=Ie(Kn)},Qr=function(wr){var Kn=wr.target;!lt.current&&bt.current&&!vr&&!Ie(Kn)&&nt(!1)};return[Gn,Qr]},ht=Ht(),jt=(0,V.Z)(ht,2),Nt=jt[0],Tt=jt[1],Wn=Ht(),Ln=(0,V.Z)(Wn,2),nr=Ln[0],Pn=Ln[1],yn=tt($);yn.addEventListener("mousedown",Nt,!0),yn.addEventListener("click",Tt,!0),yn.addEventListener("contextmenu",Tt,!0);var kt=pt(y);if(kt&&(kt.addEventListener("mousedown",nr,!0),kt.addEventListener("click",Pn,!0),kt.addEventListener("contextmenu",Pn,!0)),0)var Pr,Cr,$r,Jr;return function(){yn.removeEventListener("mousedown",Nt,!0),yn.removeEventListener("click",Tt,!0),yn.removeEventListener("contextmenu",Tt,!0),kt&&(kt.removeEventListener("mousedown",nr,!0),kt.removeEventListener("click",Pn,!0),kt.removeEventListener("contextmenu",Pn,!0))}}},[p,y,$,ie,xe])}function ma(u){return u instanceof HTMLElement||u instanceof SVGElement}function ja(u){return ma(u)?u:u instanceof o.Component?ae.findDOMNode(u):null}function sr(u,p){var y={};return y[u.toLowerCase()]=p.toLowerCase(),y["Webkit".concat(u)]="webkit".concat(p),y["Moz".concat(u)]="moz".concat(p),y["ms".concat(u)]="MS".concat(p),y["O".concat(u)]="o".concat(p.toLowerCase()),y}function Ia(u,p){var y={animationend:sr("Animation","AnimationEnd"),transitionend:sr("Transition","TransitionEnd")};return u&&("AnimationEvent"in p||delete y.animationend.animation,"TransitionEvent"in p||delete y.transitionend.transition),y}var eo=Ia(de(),typeof window!="undefined"?window:{}),ra={};if(de()){var Ga=document.createElement("div");ra=Ga.style}var ga={};function sa(u){if(ga[u])return ga[u];var p=eo[u];if(p)for(var y=Object.keys(p),$=y.length,ie=0;ie<$;ie+=1){var xe=y[ie];if(Object.prototype.hasOwnProperty.call(p,xe)&&xe in ra)return ga[u]=p[xe],ga[u]}return""}var Da=sa("animationend"),Aa=sa("transitionend"),la=!!(Da&&Aa),Gi=Da||"animationend",Pa=Aa||"transitionend";function X(u,p){if(!u)return null;if((0,x.Z)(u)==="object"){var y=p.replace(/-\w/g,function($){return $[1].toUpperCase()});return u[y]}return"".concat(u,"-").concat(p)}var le="none",_e="appear",v="enter",Ee="leave",$e="none",je="prepare",re="start",pe="active",ce="end";function Ze(u){var p=o.useRef(!1),y=o.useState(u),$=(0,V.Z)(y,2),ie=$[0],xe=$[1];o.useEffect(function(){return p.current=!1,function(){p.current=!0}},[]);function Ie(nt,bt){bt&&p.current||xe(nt)}return[ie,Ie]}var at=function(p){return+setTimeout(p,16)},mt=function(p){return clearTimeout(p)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(at=function(p){return window.requestAnimationFrame(p)},mt=function(p){return window.cancelAnimationFrame(p)});var dt=0,wt=new Map;function Lt(u){wt.delete(u)}var qt=function(p){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;dt+=1;var $=dt;function ie(xe){if(xe===0)Lt($),p();else{var Ie=at(function(){ie(xe-1)});wt.set($,Ie)}}return ie(y),$};qt.cancel=function(u){var p=wt.get(u);return Lt(p),mt(p)};var qe=qt,Qt=function(){var u=o.useRef(null);function p(){qe.cancel(u.current)}function y($){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;p();var xe=qe(function(){ie<=1?$({isCanceled:function(){return xe!==u.current}}):y($,ie-1)});u.current=xe}return o.useEffect(function(){return function(){p()}},[]),[y,p]},ln=de()?o.useLayoutEffect:o.useEffect,en=ln,cn=[je,re,pe,ce],rn=!1,Qn=!0;function _n(u){return u===pe||u===ce}var Mn=function(u,p){var y=Ze($e),$=(0,V.Z)(y,2),ie=$[0],xe=$[1],Ie=Qt(),nt=(0,V.Z)(Ie,2),bt=nt[0],lt=nt[1];function Ht(){xe(je,!0)}return en(function(){if(ie!==$e&&ie!==ce){var ht=cn.indexOf(ie),jt=cn[ht+1],Nt=p(ie);Nt===rn?xe(jt,!0):bt(function(Tt){function Wn(){Tt.isCanceled()||xe(jt,!0)}Nt===!0?Wn():Promise.resolve(Nt).then(Wn)})}},[u,ie]),o.useEffect(function(){return function(){lt()}},[]),[Ht,ie]},An=function(u){var p=(0,o.useRef)(),y=(0,o.useRef)(u);y.current=u;var $=o.useCallback(function(Ie){y.current(Ie)},[]);function ie(Ie){Ie&&(Ie.removeEventListener(Pa,$),Ie.removeEventListener(Gi,$))}function xe(Ie){p.current&&p.current!==Ie&&ie(p.current),Ie&&Ie!==p.current&&(Ie.addEventListener(Pa,$),Ie.addEventListener(Gi,$),p.current=Ie)}return o.useEffect(function(){return function(){ie(p.current)}},[]),[xe,ie]};function bn(u,p,y,$){var ie=$.motionEnter,xe=ie===void 0?!0:ie,Ie=$.motionAppear,nt=Ie===void 0?!0:Ie,bt=$.motionLeave,lt=bt===void 0?!0:bt,Ht=$.motionDeadline,ht=$.motionLeaveImmediately,jt=$.onAppearPrepare,Nt=$.onEnterPrepare,Tt=$.onLeavePrepare,Wn=$.onAppearStart,Ln=$.onEnterStart,nr=$.onLeaveStart,Pn=$.onAppearActive,yn=$.onEnterActive,kt=$.onLeaveActive,Pr=$.onAppearEnd,Cr=$.onEnterEnd,$r=$.onLeaveEnd,Jr=$.onVisibleChanged,di=Ze(),vr=(0,V.Z)(di,2),Gn=vr[0],Qr=vr[1],fi=Ze(le),wr=(0,V.Z)(fi,2),Kn=wr[0],mr=wr[1],On=Ze(null),Li=(0,V.Z)(On,2),Er=Li[0],ti=Li[1],ha=(0,o.useRef)(!1),ji=(0,o.useRef)(null);function Qi(){return y()}var Sa=(0,o.useRef)(!1);function i(vt){var Pe=Qi();if(!(vt&&!vt.deadline&&vt.target!==Pe)){var it=Sa.current,Kt;Kn===_e&&it?Kt=Pr==null?void 0:Pr(Pe,vt):Kn===v&&it?Kt=Cr==null?void 0:Cr(Pe,vt):Kn===Ee&&it&&(Kt=$r==null?void 0:$r(Pe,vt)),Kn!==le&&it&&Kt!==!1&&(mr(le,!0),ti(null,!0))}}var s=An(i),d=(0,V.Z)(s,1),S=d[0],L=o.useMemo(function(){var vt,Pe,it;switch(Kn){case _e:return vt={},(0,w.Z)(vt,je,jt),(0,w.Z)(vt,re,Wn),(0,w.Z)(vt,pe,Pn),vt;case v:return Pe={},(0,w.Z)(Pe,je,Nt),(0,w.Z)(Pe,re,Ln),(0,w.Z)(Pe,pe,yn),Pe;case Ee:return it={},(0,w.Z)(it,je,Tt),(0,w.Z)(it,re,nr),(0,w.Z)(it,pe,kt),it;default:return{}}},[Kn]),q=Mn(Kn,function(vt){if(vt===je){var Pe=L[je];return Pe?Pe(Qi()):rn}if(Fe in L){var it;ti(((it=L[Fe])===null||it===void 0?void 0:it.call(L,Qi(),null))||null)}return Fe===pe&&(S(Qi()),Ht>0&&(clearTimeout(ji.current),ji.current=setTimeout(function(){i({deadline:!0})},Ht))),Qn}),ee=(0,V.Z)(q,2),ze=ee[0],Fe=ee[1],Ge=_n(Fe);Sa.current=Ge,en(function(){Qr(p);var vt=ha.current;if(ha.current=!0,!!u){var Pe;!vt&&p&&nt&&(Pe=_e),vt&&p&&xe&&(Pe=v),(vt&&!p&<||!vt&&ht&&!p&<)&&(Pe=Ee),Pe&&(mr(Pe),ze())}},[p]),(0,o.useEffect)(function(){(Kn===_e&&!nt||Kn===v&&!xe||Kn===Ee&&!lt)&&mr(le)},[nt,xe,lt]),(0,o.useEffect)(function(){return function(){ha.current=!1,clearTimeout(ji.current)}},[]);var xt=o.useRef(!1);(0,o.useEffect)(function(){Gn&&(xt.current=!0),Gn!==void 0&&Kn===le&&((xt.current||Gn)&&(Jr==null||Jr(Gn)),xt.current=!0)},[Gn,Kn]);var ft=Er;return L[je]&&Fe===re&&(ft=(0,D.Z)({transition:"none"},ft)),[Kn,Fe,ft,Gn!=null?Gn:p]}var tr=r(15671),Yn=r(43144),Fr=r(60136),lr=r(51630),Ur=function(u){(0,Fr.Z)(y,u);var p=(0,lr.Z)(y);function y(){return(0,tr.Z)(this,y),p.apply(this,arguments)}return(0,Yn.Z)(y,[{key:"render",value:function(){return this.props.children}}]),y}(o.Component),ei=Ur;function Yt(u){var p=u;(0,x.Z)(u)==="object"&&(p=u.transitionSupport);function y(ie){return!!(ie.motionName&&p)}var $=o.forwardRef(function(ie,xe){var Ie=ie.visible,nt=Ie===void 0?!0:Ie,bt=ie.removeOnLeave,lt=bt===void 0?!0:bt,Ht=ie.forceRender,ht=ie.children,jt=ie.motionName,Nt=ie.leavedClassName,Tt=ie.eventProps,Wn=y(ie),Ln=(0,o.useRef)(),nr=(0,o.useRef)();function Pn(){try{return Ln.current instanceof HTMLElement?Ln.current:ja(nr.current)}catch(On){return null}}var yn=bn(Wn,nt,Pn,ie),kt=(0,V.Z)(yn,4),Pr=kt[0],Cr=kt[1],$r=kt[2],Jr=kt[3],di=o.useRef(Jr);Jr&&(di.current=!0);var vr=o.useCallback(function(On){Ln.current=On,j(xe,On)},[xe]),Gn,Qr=(0,D.Z)((0,D.Z)({},Tt),{},{visible:nt});if(!ht)Gn=null;else if(Pr===le||!y(ie))Jr?Gn=ht((0,D.Z)({},Qr),vr):!lt&&di.current&&Nt?Gn=ht((0,D.Z)((0,D.Z)({},Qr),{},{className:Nt}),vr):Ht||!lt&&!Nt?Gn=ht((0,D.Z)((0,D.Z)({},Qr),{},{style:{display:"none"}}),vr):Gn=null;else{var fi,wr;Cr===je?wr="prepare":_n(Cr)?wr="active":Cr===re&&(wr="start"),Gn=ht((0,D.Z)((0,D.Z)({},Qr),{},{className:T()(X(jt,Pr),(fi={},(0,w.Z)(fi,X(jt,"".concat(Pr,"-").concat(wr)),wr),(0,w.Z)(fi,jt,typeof jt=="string"),fi)),style:$r}),vr)}if(o.isValidElement(Gn)&&Re(Gn)){var Kn=Gn,mr=Kn.ref;mr||(Gn=o.cloneElement(Gn,{ref:vr}))}return o.createElement(ei,{ref:nr},Gn)});return $.displayName="CSSMotion",$}var Bt=Yt(la),Vn=r(97326),Jn="add",Di="keep",Xi="remove",bi="removed";function pa(u){var p;return u&&(0,x.Z)(u)==="object"&&"key"in u?p=u:p={key:u},(0,D.Z)((0,D.Z)({},p),{},{key:String(p.key)})}function La(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return u.map(pa)}function Ta(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],y=[],$=0,ie=p.length,xe=La(u),Ie=La(p);xe.forEach(function(lt){for(var Ht=!1,ht=$;ht1});return bt.forEach(function(lt){y=y.filter(function(Ht){var ht=Ht.key,jt=Ht.status;return ht!==lt||jt!==Xi}),y.forEach(function(Ht){Ht.key===lt&&(Ht.status=Di)})}),y}var Ma=["component","children","onVisibleChanged","onAllRemoved"],fa=["status"],to=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function ya(u){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Bt,y=function($){(0,Fr.Z)(xe,$);var ie=(0,lr.Z)(xe);function xe(){var Ie;(0,tr.Z)(this,xe);for(var nt=arguments.length,bt=new Array(nt),lt=0;lt0,Qi=o.useState(!yn||!ji),Sa=(0,V.Z)(Qi,2),i=Sa[0],s=Sa[1];if(Tn(function(){!i&&ji&&Ie&&s(!0)},[i,ji,Ie]),!i)return null;var d="auto",S={left:"-1000vw",top:"-1000vh",right:d,bottom:d};if(vr||!bt){var L,q=Wn.points,ee=Wn.dynamicInset||((L=Wn._experimental)===null||L===void 0?void 0:L.dynamicInset),ze=ee&&q[0][1]==="r",Fe=ee&&q[0][0]==="b";ze?(S.right=fi,S.left=d):(S.left=Gn,S.right=d),Fe?(S.bottom=wr,S.top=d):(S.top=Qr,S.bottom=d)}var Ge={};return On&&(On.includes("height")&&Er?Ge.height=Er:On.includes("minHeight")&&Er&&(Ge.minHeight=Er),On.includes("width")&&Li?Ge.width=Li:On.includes("minWidth")&&Li&&(Ge.minWidth=Li)),bt||(Ge.pointerEvents="none"),o.createElement(Pr,{open:Pn||ha,getContainer:yn&&function(){return yn(Ie)},autoDestroy:kt},o.createElement($a,{prefixCls:ie,open:bt,zIndex:Cr,mask:jt,motion:nr}),o.createElement(J.Z,{onResize:Kn,disabled:!bt},function(xt){return o.createElement(Ea,(0,g.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Pn,leavedClassName:"".concat(ie,"-hidden")},Ln,{onAppearPrepare:mr,onEnterPrepare:mr,visible:bt,onVisibleChanged:function(vt){var Pe;Ln==null||(Pe=Ln.onVisibleChanged)===null||Pe===void 0||Pe.call(Ln,vt),nt(vt)}}),function(ft,vt){var Pe=ft.className,it=ft.style,Kt=T()(ie,Pe,$);return o.createElement("div",{ref:ot(xt,p,vt),className:Kt,style:(0,D.Z)((0,D.Z)((0,D.Z)((0,D.Z)({"--arrow-x":"".concat(Tt.x||0,"px"),"--arrow-y":"".concat(Tt.y||0,"px")},S),Ge),it),{},{boxSizing:"border-box",zIndex:Cr},xe),onMouseEnter:$r,onMouseLeave:Jr,onPointerEnter:di,onClick:ht},Nt&&o.createElement(vo,{prefixCls:ie,arrow:Nt,arrowPos:Tt,align:Wn}),o.createElement(ui,{cache:!bt&&!Ht},ti))})}))}),Pi=ci,Xa=o.forwardRef(function(u,p){var y=u.children,$=u.getTriggerDOMNode,ie=St(y),xe=o.useCallback(function(nt){Ot(p,$?$(nt):nt)},[$]),Ie=At(xe,y.ref);return ie?o.cloneElement(y,{ref:Ie}):y}),Ro=Xa,pi=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function ka(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:W,p=o.forwardRef(function(y,$){var ie=y.prefixCls,xe=ie===void 0?"rc-trigger-popup":ie,Ie=y.children,nt=y.action,bt=nt===void 0?"hover":nt,lt=y.showAction,Ht=y.hideAction,ht=y.popupVisible,jt=y.defaultPopupVisible,Nt=y.onPopupVisibleChange,Tt=y.afterPopupVisibleChange,Wn=y.mouseEnterDelay,Ln=y.mouseLeaveDelay,nr=Ln===void 0?.1:Ln,Pn=y.focusDelay,yn=y.blurDelay,kt=y.mask,Pr=y.maskClosable,Cr=Pr===void 0?!0:Pr,$r=y.getPopupContainer,Jr=y.forceRender,di=y.autoDestroy,vr=y.destroyPopupOnHide,Gn=y.popup,Qr=y.popupClassName,fi=y.popupStyle,wr=y.popupPlacement,Kn=y.builtinPlacements,mr=Kn===void 0?{}:Kn,On=y.popupAlign,Li=y.zIndex,Er=y.stretch,ti=y.getPopupClassNameFromAlign,ha=y.fresh,ji=y.alignPoint,Qi=y.onPopupClick,Sa=y.onPopupAlign,i=y.arrow,s=y.popupMotion,d=y.maskMotion,S=y.popupTransitionName,L=y.popupAnimation,q=y.maskTransitionName,ee=y.maskAnimation,ze=y.className,Fe=y.getTriggerDOMNode,Ge=(0,c.Z)(y,pi),xt=di||vr||!1,ft=o.useState(!1),vt=(0,V.Z)(ft,2),Pe=vt[0],it=vt[1];Tn(function(){it(In())},[]);var Kt=o.useRef({}),Ft=o.useContext(Zt),dn=o.useMemo(function(){return{registerSubPopup:function(Dn,Gr){Kt.current[Dn]=Gr,Ft==null||Ft.registerSubPopup(Dn,Gr)}}},[Ft]),Ut=jn(),Dt=o.useState(null),rt=(0,V.Z)(Dt,2),tn=rt[0],Sn=rt[1],Cn=It(function(Vt){ge(Vt)&&tn!==Vt&&Sn(Vt),Ft==null||Ft.registerSubPopup(Ut,Vt)}),hn=o.useState(null),Mr=(0,V.Z)(hn,2),En=Mr[0],Sr=Mr[1],cr=It(function(Vt){ge(Vt)&&En!==Vt&&Sr(Vt)}),Xn=o.Children.only(Ie),Fn=(Xn==null?void 0:Xn.props)||{},wn={},zn=It(function(Vt){var Dn,Gr,Ar=En;return(Ar==null?void 0:Ar.contains(Vt))||((Dn=pt(Ar))===null||Dn===void 0?void 0:Dn.host)===Vt||Vt===Ar||(tn==null?void 0:tn.contains(Vt))||((Gr=pt(tn))===null||Gr===void 0?void 0:Gr.host)===Vt||Vt===tn||Object.values(Kt.current).some(function(Kr){return(Kr==null?void 0:Kr.contains(Vt))||Vt===Kr})}),an=Le(xe,s,L,S),rr=Le(xe,d,ee,q),ir=o.useState(jt||!1),Zr=(0,V.Z)(ir,2),_i=Zr[0],Hn=Zr[1],Rn=ht!=null?ht:_i,zr=It(function(Vt){ht===void 0&&Hn(Vt)});Tn(function(){Hn(ht||!1)},[ht]);var kr=o.useRef(Rn);kr.current=Rn;var Yr=It(function(Vt){(0,ae.flushSync)(function(){Rn!==Vt&&(zr(Vt),Nt==null||Nt(Vt))})}),dr=o.useRef(),fr=function(){clearTimeout(dr.current)},br=function(Dn){var Gr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;fr(),Gr===0?Yr(Dn):dr.current=setTimeout(function(){Yr(Dn)},Gr*1e3)};o.useEffect(function(){return fr},[]);var ni=o.useState(!1),Hr=(0,V.Z)(ni,2),ri=Hr[0],ii=Hr[1];Tn(function(Vt){(!Vt||Rn)&&ii(!0)},[Rn]);var yi=o.useState(null),$i=(0,V.Z)(yi,2),_r=$i[0],Ti=$i[1],xn=o.useState([0,0]),Yi=(0,V.Z)(xn,2),Ci=Yi[0],ki=Yi[1],Ei=function(Dn){ki([Dn.clientX,Dn.clientY])},ai=l(Rn,tn,ji?Ci:En,wr,mr,On,Sa),wi=(0,V.Z)(ai,11),Bi=wi[0],Br=wi[1],ba=wi[2],Si=wi[3],jr=wi[4],Ki=wi[5],oi=wi[6],va=wi[7],Vr=wi[8],Ji=wi[9],Ri=wi[10],Rr=Gt(Pe,bt,lt,Ht),Or=(0,V.Z)(Rr,2),xi=Or[0],hi=Or[1],ia=xi.has("click"),ta=hi.has("click")||hi.has("contextMenu"),Ii=It(function(){ri||Ri()}),xr=function(){kr.current&&ji&&ta&&br(!1)};E(Rn,En,tn,Ii,xr),Tn(function(){Ii()},[Ci,wr]),Tn(function(){Rn&&!(mr!=null&&mr[wr])&&Ii()},[JSON.stringify(On)]);var Ir=o.useMemo(function(){var Vt=Ae(mr,xe,Ji,ji);return T()(Vt,ti==null?void 0:ti(Ji))},[Ji,ti,mr,xe,ji]);o.useImperativeHandle($,function(){return{forceAlign:Ii}});var Nr=o.useState(0),ua=(0,V.Z)(Nr,2),pn=ua[0],Nn=ua[1],Wr=o.useState(0),Mi=(0,V.Z)(Wr,2),si=Mi[0],oo=Mi[1],Wa=function(){if(Er&&En){var Dn=En.getBoundingClientRect();Nn(Dn.width),oo(Dn.height)}},Fa=function(){Wa(),Ii()},Ua=function(Dn){ii(!1),Ri(),Tt==null||Tt(Dn)},Fi=function(){return new Promise(function(Dn){Wa(),Ti(function(){return Dn})})};Tn(function(){_r&&(Ri(),_r(),Ti(null))},[_r]);function qi(Vt,Dn,Gr,Ar){wn[Vt]=function(Kr){var Ja;Ar==null||Ar(Kr),br(Dn,Gr);for(var Na=arguments.length,lo=new Array(Na>1?Na-1:0),Ra=1;Ra1?Gr-1:0),Kr=1;Kr1?Gr-1:0),Kr=1;Kr=un.F1&&y<=un.F12)return!1;switch(y){case un.ALT:case un.CAPS_LOCK:case un.CONTEXT_MENU:case un.CTRL:case un.DOWN:case un.END:case un.ESC:case un.HOME:case un.INSERT:case un.LEFT:case un.MAC_FF_META:case un.META:case un.NUMLOCK:case un.NUM_CENTER:case un.PAGE_DOWN:case un.PAGE_UP:case un.PAUSE:case un.PRINT_SCREEN:case un.RIGHT:case un.SHIFT:case un.UP:case un.WIN_KEY:case un.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(p){if(p>=un.ZERO&&p<=un.NINE||p>=un.NUM_ZERO&&p<=un.NUM_MULTIPLY||p>=un.A&&p<=un.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&p===0)return!0;switch(p){case un.SPACE:case un.QUESTION_MARK:case un.NUM_PLUS:case un.NUM_MINUS:case un.NUM_PERIOD:case un.NUM_DIVISION:case un.SEMICOLON:case un.DASH:case un.EQUALS:case un.COMMA:case un.PERIOD:case un.SLASH:case un.APOSTROPHE:case un.SINGLE_QUOTE:case un.OPEN_SQUARE_BRACKET:case un.BACKSLASH:case un.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Ba=un,Ka=Ba.ESC,no=Ba.TAB;function ro(u){var p=u.visible,y=u.triggerRef,$=u.onVisibleChange,ie=u.autoFocus,xe=u.overlayRef,Ie=o.useRef(!1),nt=function(){if(p){var ht,jt;(ht=y.current)===null||ht===void 0||(jt=ht.focus)===null||jt===void 0||jt.call(ht),$==null||$(!1)}},bt=function(){var ht;return(ht=xe.current)!==null&&ht!==void 0&&ht.focus?(xe.current.focus(),Ie.current=!0,!0):!1},lt=function(ht){switch(ht.keyCode){case Ka:nt();break;case no:{var jt=!1;Ie.current||(jt=bt()),jt?ht.preventDefault():nt();break}}};o.useEffect(function(){return p?(window.addEventListener("keydown",lt),ie&&qe(bt,3),function(){window.removeEventListener("keydown",lt),Ie.current=!1}):function(){Ie.current=!1}},[p])}var io=(0,o.forwardRef)(function(u,p){var y=u.overlay,$=u.arrow,ie=u.prefixCls,xe=(0,o.useMemo)(function(){var nt;return typeof y=="function"?nt=y():nt=y,nt},[y]),Ie=H(p,xe==null?void 0:xe.ref);return o.createElement(o.Fragment,null,$&&o.createElement("div",{className:"".concat(ie,"-arrow")}),o.cloneElement(xe,{ref:Re(xe)?Ie:void 0}))}),ko=io,go={adjustX:1,adjustY:1},ao=[0,0],bo={topLeft:{points:["bl","tl"],overflow:go,offset:[0,-4],targetOffset:ao},top:{points:["bc","tc"],overflow:go,offset:[0,-4],targetOffset:ao},topRight:{points:["br","tr"],overflow:go,offset:[0,-4],targetOffset:ao},bottomLeft:{points:["tl","bl"],overflow:go,offset:[0,4],targetOffset:ao},bottom:{points:["tc","bc"],overflow:go,offset:[0,4],targetOffset:ao},bottomRight:{points:["tr","br"],overflow:go,offset:[0,4],targetOffset:ao}},To=bo,_o=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Co(u,p){var y,$=u.arrow,ie=$===void 0?!1:$,xe=u.prefixCls,Ie=xe===void 0?"rc-dropdown":xe,nt=u.transitionName,bt=u.animation,lt=u.align,Ht=u.placement,ht=Ht===void 0?"bottomLeft":Ht,jt=u.placements,Nt=jt===void 0?To:jt,Tt=u.getPopupContainer,Wn=u.showAction,Ln=u.hideAction,nr=u.overlayClassName,Pn=u.overlayStyle,yn=u.visible,kt=u.trigger,Pr=kt===void 0?["hover"]:kt,Cr=u.autoFocus,$r=u.overlay,Jr=u.children,di=u.onVisibleChange,vr=(0,c.Z)(u,_o),Gn=o.useState(),Qr=(0,V.Z)(Gn,2),fi=Qr[0],wr=Qr[1],Kn="visible"in u?yn:fi,mr=o.useRef(null),On=o.useRef(null),Li=o.useRef(null);o.useImperativeHandle(p,function(){return mr.current});var Er=function(S){wr(S),di==null||di(S)};ro({visible:Kn,triggerRef:Li,onVisibleChange:Er,autoFocus:Cr,overlayRef:On});var ti=function(S){var L=u.onOverlayClick;wr(!1),L&&L(S)},ha=function(){return o.createElement(ko,{ref:On,overlay:$r,prefixCls:Ie,arrow:ie})},ji=function(){return typeof $r=="function"?ha:ha()},Qi=function(){var S=u.minOverlayWidthMatchTrigger,L=u.alignPoint;return"minOverlayWidthMatchTrigger"in u?S:!L},Sa=function(){var S=u.openClassName;return S!==void 0?S:"".concat(Ie,"-open")},i=o.cloneElement(Jr,{className:T()((y=Jr.props)===null||y===void 0?void 0:y.className,Kn&&Sa()),ref:Re(Jr)?H(Li,Jr.ref):void 0}),s=Ln;return!s&&Pr.indexOf("contextMenu")!==-1&&(s=["click"]),o.createElement(Va,(0,g.Z)({builtinPlacements:Nt},vr,{prefixCls:Ie,ref:mr,popupClassName:T()(nr,(0,w.Z)({},"".concat(Ie,"-show-arrow"),ie)),popupStyle:Pn,action:Pr,showAction:Wn,hideAction:s,popupPlacement:ht,popupAlign:lt,popupTransitionName:nt,popupAnimation:bt,popupVisible:Kn,stretch:Qi()?"minWidth":"",popup:ji(),onPopupVisibleChange:Er,onPopupClick:ti,getPopupContainer:Tt}),i)}var Bo=o.forwardRef(Co),Ko=Bo,Fo=r(60276),Uo=r(5663),po=r(10366),Qa=r(80636),Xo=r(8745),Qo=r(96159),Yo=r(53124),Jo=r(68508),Zo=r(76529),qo=r(46605),Mo=r(66748);const us=null,Oo=u=>{const{menu:p,arrow:y,prefixCls:$,children:ie,trigger:xe,disabled:Ie,dropdownRender:nt,getPopupContainer:bt,overlayClassName:lt,rootClassName:Ht,open:ht,onOpenChange:jt,visible:Nt,onVisibleChange:Tt,mouseEnterDelay:Wn=.15,mouseLeaveDelay:Ln=.1,autoAdjustOverflow:nr=!0,placement:Pn="",overlay:yn,transitionName:kt}=u,{getPopupContainer:Pr,getPrefixCls:Cr,direction:$r}=o.useContext(Yo.E_),Jr=o.useMemo(()=>{const i=Cr();return kt!==void 0?kt:Pn.includes("top")?`${i}-slide-down`:`${i}-slide-up`},[Cr,Pn,kt]),di=o.useMemo(()=>Pn?Pn.includes("Center")?Pn.slice(0,Pn.indexOf("Center")):Pn:$r==="rtl"?"bottomRight":"bottomLeft",[Pn,$r]),vr=Cr("dropdown",$),[Gn,Qr]=(0,Mo.Z)(vr),[,fi]=(0,qo.Z)(),wr=o.Children.only(ie),Kn=(0,Qo.Tm)(wr,{className:T()(`${vr}-trigger`,{[`${vr}-rtl`]:$r==="rtl"},wr.props.className),disabled:Ie}),mr=Ie?[]:xe;let On;mr&&mr.includes("contextMenu")&&(On=!0);const[Li,Er]=(0,Uo.Z)(!1,{value:ht!=null?ht:Nt}),ti=(0,Fo.useEvent)(i=>{jt==null||jt(i),Tt==null||Tt(i),Er(i)}),ha=T()(lt,Ht,Qr,{[`${vr}-rtl`]:$r==="rtl"}),ji=(0,Qa.Z)({arrowPointAtCenter:typeof y=="object"&&y.pointAtCenter,autoAdjustOverflow:nr,offset:fi.marginXXS,arrowWidth:y?fi.sizePopupArrow:0,borderRadius:fi.borderRadius}),Qi=o.useCallback(()=>{Er(!1)},[]),Sa=()=>{let i;return p!=null&&p.items?i=o.createElement(Jo.default,Object.assign({},p)):typeof yn=="function"?i=yn():i=yn,nt&&(i=nt(i)),i=o.Children.only(typeof i=="string"?o.createElement("span",null,i):i),o.createElement(Zo.J,{prefixCls:`${vr}-menu`,expandIcon:o.createElement("span",{className:`${vr}-menu-submenu-arrow`},o.createElement(z.Z,{className:`${vr}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Qi,validator:s=>{let{mode:d}=s}},i)};return Gn(o.createElement(Ko,Object.assign({alignPoint:On},(0,po.Z)(u,["rootClassName"]),{mouseEnterDelay:Wn,mouseLeaveDelay:Ln,visible:Li,builtinPlacements:ji,arrow:!!y,overlayClassName:ha,prefixCls:vr,getPopupContainer:bt||Pr,transitionName:Jr,trigger:mr,overlay:Sa,placement:di,onVisibleChange:ti}),Kn))};function es(u){return Object.assign(Object.assign({},u),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ts=(0,Xo.Z)(Oo,"dropdown",u=>u,es),ns=u=>o.createElement(ts,Object.assign({},u),o.createElement("span",null));Oo._InternalPanelDoNotUseOrYouWillBeFired=ns;var zo=Oo},85418:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return ue}});var o=r(56153),b=r(94184),z=r.n(b),B=r(67294),T=r(25877),g=r(71577),w=r(53124),V=r(93421),c=r(4173),D=r(66748),ae=function(te,f){var P={};for(var K in te)Object.prototype.hasOwnProperty.call(te,K)&&f.indexOf(K)<0&&(P[K]=te[K]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,K=Object.getOwnPropertySymbols(te);k{const{getPopupContainer:f,getPrefixCls:P,direction:K}=B.useContext(w.E_),{prefixCls:k,type:x="default",danger:m,disabled:R,loading:j,onClick:H,htmlType:ve,children:Re,className:Ne,menu:U,arrow:Xe,autoFocus:oe,overlay:be,trigger:F,align:N,open:Qe,onOpenChange:et,placement:Ke,getPopupContainer:fe,href:we,icon:Be=B.createElement(T.Z,null),title:Te,buttonsRender:Ve=C=>C,mouseEnterDelay:nn,mouseLeaveDelay:yt,overlayClassName:vn,overlayStyle:Pt,destroyPopupOnHide:mn,dropdownRender:Jt}=te,Wt=ae(te,["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"]),zt=P("dropdown",k),fn=`${zt}-button`,[gt,ye]=(0,D.Z)(zt),ne={menu:U,arrow:Xe,autoFocus:oe,align:N,disabled:R,trigger:R?[]:F,onOpenChange:et,getPopupContainer:fe||f,mouseEnterDelay:nn,mouseLeaveDelay:yt,overlayClassName:vn,overlayStyle:Pt,destroyPopupOnHide:mn,dropdownRender:Jt},{compactSize:h,compactItemClassnames:_}=(0,c.ri)(zt,K),O=z()(fn,_,Ne,ye);"overlay"in te&&(ne.overlay=be),"open"in te&&(ne.open=Qe),"placement"in te?ne.placement=Ke:ne.placement=K==="rtl"?"bottomLeft":"bottomRight";const se=B.createElement(g.ZP,{type:x,danger:m,disabled:R,loading:j,onClick:H,htmlType:ve,href:we,title:Te},Re),A=B.createElement(g.ZP,{type:x,danger:m,icon:Be}),[G,Q]=Ve([se,A]);return gt(B.createElement(V.Z.Compact,Object.assign({className:O,size:h,block:!0},Wt),G,B.createElement(o.Z,Object.assign({},ne),Q)))};de.__ANT_BUTTON=!0;var I=de;const Y=o.Z;Y.Button=I;var ue=Y},66748:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return ae}});var o=r(14747),b=r(67771),z=r(33297),B=r(50438),T=r(97414),g=r(67968),w=r(45503),c=de=>{const{componentCls:I,menuCls:Y,colorError:ue,colorTextLightSolid:te}=de,f=`${Y}-item`;return{[`${I}, ${I}-menu-submenu`]:{[`${Y} ${f}`]:{[`&${f}-danger:not(${f}-disabled)`]:{color:ue,"&:hover":{color:te,backgroundColor:ue}}}}}};const D=de=>{const{componentCls:I,menuCls:Y,zIndexPopup:ue,dropdownArrowDistance:te,sizePopupArrow:f,antCls:P,iconCls:K,motionDurationMid:k,dropdownPaddingVertical:x,fontSize:m,dropdownEdgeChildPadding:R,colorTextDisabled:j,fontSizeIcon:H,controlPaddingHorizontal:ve,colorBgElevated:Re}=de;return[{[I]:Object.assign(Object.assign({},(0,o.Wf)(de)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ue,display:"block","&::before":{position:"absolute",insetBlock:-te+f/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${P}-btn`]:{[`& > ${K}-down, & > ${P}-btn-icon > ${K}-down`]:{fontSize:H}},[`${I}-wrap`]:{position:"relative",[`${P}-btn > ${K}-down`]:{fontSize:H},[`${K}-down::before`]:{transition:`transform ${k}`}},[`${I}-wrap-open`]:{[`${K}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${P}-slide-down-enter${P}-slide-down-enter-active${I}-placement-bottomLeft, &${P}-slide-down-appear${P}-slide-down-appear-active${I}-placement-bottomLeft, &${P}-slide-down-enter${P}-slide-down-enter-active${I}-placement-bottom, &${P}-slide-down-appear${P}-slide-down-appear-active${I}-placement-bottom, &${P}-slide-down-enter${P}-slide-down-enter-active${I}-placement-bottomRight, &${P}-slide-down-appear${P}-slide-down-appear-active${I}-placement-bottomRight`]:{animationName:b.fJ},[`&${P}-slide-up-enter${P}-slide-up-enter-active${I}-placement-topLeft, &${P}-slide-up-appear${P}-slide-up-appear-active${I}-placement-topLeft, &${P}-slide-up-enter${P}-slide-up-enter-active${I}-placement-top, &${P}-slide-up-appear${P}-slide-up-appear-active${I}-placement-top, &${P}-slide-up-enter${P}-slide-up-enter-active${I}-placement-topRight, &${P}-slide-up-appear${P}-slide-up-appear-active${I}-placement-topRight`]:{animationName:b.Qt},[`&${P}-slide-down-leave${P}-slide-down-leave-active${I}-placement-bottomLeft, &${P}-slide-down-leave${P}-slide-down-leave-active${I}-placement-bottom, &${P}-slide-down-leave${P}-slide-down-leave-active${I}-placement-bottomRight`]:{animationName:b.Uw},[`&${P}-slide-up-leave${P}-slide-up-leave-active${I}-placement-topLeft, &${P}-slide-up-leave${P}-slide-up-leave-active${I}-placement-top, &${P}-slide-up-leave${P}-slide-up-leave-active${I}-placement-topRight`]:{animationName:b.ly}})},(0,T.ZP)(de,{colorBg:Re,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${I} ${Y}`]:{position:"relative",margin:0},[`${Y}-submenu-popup`]:{position:"absolute",zIndex:ue,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${I}, ${I}-menu-submenu`]:{[Y]:Object.assign(Object.assign({padding:R,listStyleType:"none",backgroundColor:Re,backgroundClip:"padding-box",borderRadius:de.borderRadiusLG,outline:"none",boxShadow:de.boxShadowSecondary},(0,o.Qy)(de)),{[`${Y}-item-group-title`]:{padding:`${x}px ${ve}px`,color:de.colorTextDescription,transition:`all ${k}`},[`${Y}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Y}-item-icon`]:{minWidth:m,marginInlineEnd:de.marginXS,fontSize:de.fontSizeSM},[`${Y}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${k}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Y}-item, ${Y}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${x}px ${ve}px`,color:de.colorText,fontWeight:"normal",fontSize:m,lineHeight:de.lineHeight,cursor:"pointer",transition:`all ${k}`,borderRadius:de.borderRadiusSM,"&:hover, &-active":{backgroundColor:de.controlItemBgHover}},(0,o.Qy)(de)),{"&-selected":{color:de.colorPrimary,backgroundColor:de.controlItemBgActive,"&:hover, &-active":{backgroundColor:de.controlItemBgActiveHover}},"&-disabled":{color:j,cursor:"not-allowed","&:hover":{color:j,backgroundColor:Re,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${de.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:de.colorSplit},[`${I}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:de.paddingXS,[`${I}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:de.colorTextDescription,fontSize:H,fontStyle:"normal"}}}),[`${Y}-item-group-list`]:{margin:`0 ${de.marginXS}px`,padding:0,listStyle:"none"},[`${Y}-submenu-title`]:{paddingInlineEnd:ve+de.fontSizeSM},[`${Y}-submenu-vertical`]:{position:"relative"},[`${Y}-submenu${Y}-submenu-disabled ${I}-menu-submenu-title`]:{[`&, ${I}-menu-submenu-arrow-icon`]:{color:j,backgroundColor:Re,cursor:"not-allowed"}},[`${Y}-submenu-selected ${I}-menu-submenu-title`]:{color:de.colorPrimary}})}},[(0,b.oN)(de,"slide-up"),(0,b.oN)(de,"slide-down"),(0,z.Fm)(de,"move-up"),(0,z.Fm)(de,"move-down"),(0,B._y)(de,"zoom-big")]]};var ae=(0,g.Z)("Dropdown",(de,I)=>{let{rootPrefixCls:Y}=I;const{marginXXS:ue,sizePopupArrow:te,controlHeight:f,fontSize:P,lineHeight:K,paddingXXS:k,componentCls:x,borderRadiusLG:m}=de,R=(f-P*K)/2,{dropdownArrowOffset:j}=(0,T.fS)({contentRadius:m}),H=(0,w.TS)(de,{menuCls:`${x}-menu`,rootPrefixCls:Y,dropdownArrowDistance:te/2+ue,dropdownArrowOffset:j,dropdownPaddingVertical:R,dropdownEdgeChildPadding:k});return[D(H),c(H)]},de=>({zIndexPopup:de.zIndexPopupBase+50}))},32983:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return k}});var o=r(94184),b=r.n(o),z=r(67294),B=r(53124),T=r(10110),g=r(84780),w=r(46605),c=()=>{const[,x]=(0,w.Z)(),R=new g.C(x.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:R,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("g",{fill:"none",fillRule:"evenodd"},z.createElement("g",{transform:"translate(24 31.67)"},z.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),z.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),z.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),z.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),z.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),z.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),z.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},z.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),z.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ae=()=>{const[,x]=(0,w.Z)(),{colorFill:m,colorFillTertiary:R,colorFillQuaternary:j,colorBgContainer:H}=x,{borderColor:ve,shadowColor:Re,contentColor:Ne}=(0,z.useMemo)(()=>({borderColor:new g.C(m).onBackground(H).toHexShortString(),shadowColor:new g.C(R).onBackground(H).toHexShortString(),contentColor:new g.C(j).onBackground(H).toHexShortString()}),[m,R,j,H]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:Re,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke:ve},z.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),z.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Ne}))))},de=r(67968),I=r(45503);const Y=x=>{const{componentCls:m,margin:R,marginXS:j,marginXL:H,fontSize:ve,lineHeight:Re}=x;return{[m]:{marginInline:j,fontSize:ve,lineHeight:Re,textAlign:"center",[`${m}-image`]:{height:x.emptyImgHeight,marginBottom:j,opacity:x.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${m}-description`]:{color:x.colorText},[`${m}-footer`]:{marginTop:R},"&-normal":{marginBlock:H,color:x.colorTextDisabled,[`${m}-description`]:{color:x.colorTextDisabled},[`${m}-image`]:{height:x.emptyImgHeightMD}},"&-small":{marginBlock:j,color:x.colorTextDisabled,[`${m}-image`]:{height:x.emptyImgHeightSM}}}}};var ue=(0,de.Z)("Empty",x=>{const{componentCls:m,controlHeightLG:R}=x,j=(0,I.TS)(x,{emptyImgCls:`${m}-img`,emptyImgHeight:R*2.5,emptyImgHeightMD:R,emptyImgHeightSM:R*.875});return[Y(j)]}),te=function(x,m){var R={};for(var j in x)Object.prototype.hasOwnProperty.call(x,j)&&m.indexOf(j)<0&&(R[j]=x[j]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,j=Object.getOwnPropertySymbols(x);H{var{className:m,rootClassName:R,prefixCls:j,image:H=f,description:ve,children:Re,imageStyle:Ne,style:U}=x,Xe=te(x,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:oe,direction:be,empty:F}=z.useContext(B.E_),N=oe("empty",j),[Qe,et]=ue(N),[Ke]=(0,T.Z)("Empty"),fe=typeof ve!="undefined"?ve:Ke==null?void 0:Ke.description,we=typeof fe=="string"?fe:"empty";let Be=null;return typeof H=="string"?Be=z.createElement("img",{alt:we,src:H}):Be=H,Qe(z.createElement("div",Object.assign({className:b()(et,N,F==null?void 0:F.className,{[`${N}-normal`]:H===P,[`${N}-rtl`]:be==="rtl"},m,R),style:Object.assign(Object.assign({},F==null?void 0:F.style),U)},Xe),z.createElement("div",{className:`${N}-image`,style:Ne},Be),fe&&z.createElement("div",{className:`${N}-description`},fe),Re&&z.createElement("div",{className:`${N}-footer`},Re)))};K.PRESENTED_IMAGE_DEFAULT=f,K.PRESENTED_IMAGE_SIMPLE=P;var k=K},71322:function(Mt,Me,r){"use strict";r.d(Me,{D:function(){return K},Z:function(){return m}});var o=r(87462),b=r(67294),z={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"},B=z,T=r(74643),g=function(j,H){return b.createElement(T.Z,(0,o.Z)({},j,{ref:H,icon:B}))},w=b.forwardRef(g),V=r(22751),c=r(91034),D=r(94184),ae=r.n(D),de=r(10366),Y=R=>!isNaN(parseFloat(R))&&isFinite(R),ue=r(53124),te=r(84321),f=function(R,j){var H={};for(var ve in R)Object.prototype.hasOwnProperty.call(R,ve)&&j.indexOf(ve)<0&&(H[ve]=R[ve]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,ve=Object.getOwnPropertySymbols(R);Re{let R=0;return function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return R+=1,`${j}${R}`}})();var m=b.forwardRef((R,j)=>{const{prefixCls:H,className:ve,trigger:Re,children:Ne,defaultCollapsed:U=!1,theme:Xe="dark",style:oe={},collapsible:be=!1,reverseArrow:F=!1,width:N=200,collapsedWidth:Qe=80,zeroWidthTriggerStyle:et,breakpoint:Ke,onCollapse:fe,onBreakpoint:we}=R,Be=f(R,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Te}=(0,b.useContext)(te.Gs),[Ve,nn]=(0,b.useState)("collapsed"in R?R.collapsed:U),[yt,vn]=(0,b.useState)(!1);(0,b.useEffect)(()=>{"collapsed"in R&&nn(R.collapsed)},[R.collapsed]);const Pt=(gt,ye)=>{"collapsed"in R||nn(gt),fe==null||fe(gt,ye)},mn=(0,b.useRef)();mn.current=gt=>{vn(gt.matches),we==null||we(gt.matches),Ve!==gt.matches&&Pt(gt.matches,"responsive")},(0,b.useEffect)(()=>{function gt(ne){return mn.current(ne)}let ye;if(typeof window!="undefined"){const{matchMedia:ne}=window;if(ne&&Ke&&Ke in P){ye=ne(`(max-width: ${P[Ke]})`);try{ye.addEventListener("change",gt)}catch(h){ye.addListener(gt)}gt(ye)}}return()=>{try{ye==null||ye.removeEventListener("change",gt)}catch(ne){ye==null||ye.removeListener(gt)}}},[Ke]),(0,b.useEffect)(()=>{const gt=k("ant-sider-");return Te.addSider(gt),()=>Te.removeSider(gt)},[]);const Jt=()=>{Pt(!Ve,"clickTrigger")},{getPrefixCls:Wt}=(0,b.useContext)(ue.E_),zt=()=>{const gt=Wt("layout-sider",H),ye=(0,de.Z)(Be,["collapsed"]),ne=Ve?Qe:N,h=Y(ne)?`${ne}px`:String(ne),_=parseFloat(String(Qe||0))===0?b.createElement("span",{onClick:Jt,className:ae()(`${gt}-zero-width-trigger`,`${gt}-zero-width-trigger-${F?"right":"left"}`),style:et},Re||b.createElement(w,null)):null,A={expanded:F?b.createElement(c.Z,null):b.createElement(V.Z,null),collapsed:F?b.createElement(V.Z,null):b.createElement(c.Z,null)}[Ve?"collapsed":"expanded"],G=Re!==null?_||b.createElement("div",{className:`${gt}-trigger`,onClick:Jt,style:{width:h}},Re||A):null,Q=Object.assign(Object.assign({},oe),{flex:`0 0 ${h}`,maxWidth:h,minWidth:h,width:h}),C=ae()(gt,`${gt}-${Xe}`,{[`${gt}-collapsed`]:!!Ve,[`${gt}-has-trigger`]:be&&Re!==null&&!_,[`${gt}-below`]:!!yt,[`${gt}-zero-width`]:parseFloat(h)===0},ve);return b.createElement("aside",Object.assign({className:C},ye,{style:Q,ref:j}),b.createElement("div",{className:`${gt}-children`},Ne),be||yt&&_?G:null)},fn=b.useMemo(()=>({siderCollapsed:Ve}),[Ve]);return b.createElement(K.Provider,{value:fn},zt())})},84321:function(Mt,Me,r){"use strict";r.d(Me,{VY:function(){return k},$_:function(){return K},h4:function(){return P},Gs:function(){return I},ZP:function(){return x}});var o=r(74902),b=r(94184),z=r.n(b),B=r(10366),T=r(67294),g=r(53124),w=r(67968),c=m=>{const{componentCls:R,bodyBg:j,lightSiderBg:H,lightTriggerBg:ve,lightTriggerColor:Re}=m;return{[`${R}-sider-light`]:{background:H,[`${R}-sider-trigger`]:{color:Re,background:ve},[`${R}-sider-zero-width-trigger`]:{color:Re,background:ve,border:`1px solid ${j}`,borderInlineStart:0}}}};const D=m=>{const{antCls:R,componentCls:j,colorText:H,triggerColor:ve,footerBg:Re,triggerBg:Ne,headerHeight:U,headerPadding:Xe,headerColor:oe,footerPadding:be,triggerHeight:F,zeroTriggerHeight:N,zeroTriggerWidth:Qe,motionDurationMid:et,motionDurationSlow:Ke,fontSize:fe,borderRadius:we,bodyBg:Be,headerBg:Te,siderBg:Ve}=m;return{[j]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Be,"&, *":{boxSizing:"border-box"},[`&${j}-has-sider`]:{flexDirection:"row",[`> ${j}, > ${j}-content`]:{width:0}},[`${j}-header, &${j}-footer`]:{flex:"0 0 auto"},[`${j}-sider`]:{position:"relative",minWidth:0,background:Ve,transition:`all ${et}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${R}-menu${R}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:F},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:F,color:ve,lineHeight:`${F}px`,textAlign:"center",background:Ne,cursor:"pointer",transition:`all ${et}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:U,insetInlineEnd:-Qe,zIndex:1,width:Qe,height:N,color:ve,fontSize:m.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ve,borderStartStartRadius:0,borderStartEndRadius:we,borderEndEndRadius:we,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ke} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ke}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Qe,borderStartStartRadius:we,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:we}}}}},c(m)),{"&-rtl":{direction:"rtl"}}),[`${j}-header`]:{height:U,padding:Xe,color:oe,lineHeight:`${U}px`,background:Te,[`${R}-menu`]:{lineHeight:"inherit"}},[`${j}-footer`]:{padding:be,color:H,fontSize:fe,background:Re},[`${j}-content`]:{flex:"auto",minHeight:0}}};var ae=(0,w.Z)("Layout",m=>[D(m)],m=>{const{colorBgLayout:R,controlHeight:j,controlHeightLG:H,colorText:ve,controlHeightSM:Re,marginXXS:Ne,colorTextLightSolid:U,colorBgContainer:Xe}=m,oe=H*1.25;return{colorBgHeader:"#001529",colorBgBody:R,colorBgTrigger:"#002140",bodyBg:R,headerBg:"#001529",headerHeight:j*2,headerPadding:`0 ${oe}px`,headerColor:ve,footerPadding:`${Re}px ${oe}px`,footerBg:R,siderBg:"#001529",triggerHeight:H+Ne*2,triggerBg:"#002140",triggerColor:U,zeroTriggerWidth:H,zeroTriggerHeight:H,lightSiderBg:Xe,lightTriggerBg:Xe,lightTriggerColor:ve}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),de=function(m,R){var j={};for(var H in m)Object.prototype.hasOwnProperty.call(m,H)&&R.indexOf(H)<0&&(j[H]=m[H]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,H=Object.getOwnPropertySymbols(m);venull,removeSider:()=>null}});function Y(m){let{suffixCls:R,tagName:j,displayName:H}=m;return ve=>T.forwardRef((Ne,U)=>T.createElement(ve,Object.assign({ref:U,suffixCls:R,tagName:j},Ne)))}const ue=T.forwardRef((m,R)=>{const{prefixCls:j,suffixCls:H,className:ve,tagName:Re}=m,Ne=de(m,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:U}=T.useContext(g.E_),Xe=U("layout",j),[oe,be]=ae(Xe),F=H?`${Xe}-${H}`:Xe;return oe(T.createElement(Re,Object.assign({className:z()(j||F,ve,be),ref:R},Ne)))}),te=T.forwardRef((m,R)=>{const{direction:j}=T.useContext(g.E_),[H,ve]=T.useState([]),{prefixCls:Re,className:Ne,rootClassName:U,children:Xe,hasSider:oe,tagName:be,style:F}=m,N=de(m,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Qe=(0,B.Z)(N,["suffixCls"]),{getPrefixCls:et,layout:Ke}=T.useContext(g.E_),fe=et("layout",Re),[we,Be]=ae(fe),Te=z()(fe,{[`${fe}-has-sider`]:typeof oe=="boolean"?oe:H.length>0,[`${fe}-rtl`]:j==="rtl"},Ke==null?void 0:Ke.className,Ne,U,Be),Ve=T.useMemo(()=>({siderHook:{addSider:nn=>{ve(yt=>[].concat((0,o.Z)(yt),[nn]))},removeSider:nn=>{ve(yt=>yt.filter(vn=>vn!==nn))}}}),[]);return we(T.createElement(I.Provider,{value:Ve},T.createElement(be,Object.assign({ref:R,className:Te,style:Object.assign(Object.assign({},Ke==null?void 0:Ke.style),F)},Qe),Xe)))}),f=Y({tagName:"div",displayName:"Layout"})(te),P=Y({suffixCls:"header",tagName:"header",displayName:"Header"})(ue),K=Y({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ue),k=Y({suffixCls:"content",tagName:"main",displayName:"Content"})(ue);var x=f},76529:function(Mt,Me,r){"use strict";r.d(Me,{J:function(){return g}});var o=r(67294),b=r(4173),z=r(60276),B=function(w,V){var c={};for(var D in w)Object.prototype.hasOwnProperty.call(w,D)&&V.indexOf(D)<0&&(c[D]=w[D]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,D=Object.getOwnPropertySymbols(w);ae{const{children:c}=w,D=B(w,["children"]),ae=o.useContext(T),de=o.useMemo(()=>Object.assign(Object.assign({},ae),D),[ae,D.prefixCls,D.mode,D.selectable]);return o.createElement(T.Provider,{value:de},o.createElement(b.BR,null,(0,z.supportNodeRef)(c)?o.cloneElement(c,{ref:V}):c))});Me.Z=T},68508:function(Mt,Me,r){"use strict";r.d(Me,{default:function(){return gt}});var o=r(52073),b=r(67294),z=r(71322),B=r(94184),T=r.n(B),g=r(53124),w=function(ye,ne){var h={};for(var _ in ye)Object.prototype.hasOwnProperty.call(ye,_)&&ne.indexOf(_)<0&&(h[_]=ye[_]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,_=Object.getOwnPropertySymbols(ye);O<_.length;O++)ne.indexOf(_[O])<0&&Object.prototype.propertyIsEnumerable.call(ye,_[O])&&(h[_[O]]=ye[_[O]]);return h},c=ye=>{const{prefixCls:ne,className:h,dashed:_}=ye,O=w(ye,["prefixCls","className","dashed"]),{getPrefixCls:se}=b.useContext(g.E_),A=se("menu",ne),G=T()({[`${A}-item-divider-dashed`]:!!_},h);return b.createElement(o.iz,Object.assign({className:G},O))},D=r(37419),ae=r(10366),de=r(83062),I=r(96159),ue=(0,b.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),f=ye=>{var ne;const{className:h,children:_,icon:O,title:se,danger:A}=ye,{prefixCls:G,firstLevel:Q,direction:C,disableMenuItemTitleTooltip:W,inlineCollapsed:J}=b.useContext(ue),ge=Et=>{const on=b.createElement("span",{className:`${G}-title-content`},_);return(!O||(0,I.l$)(_)&&_.type==="span")&&_&&Et&&Q&&typeof _=="string"?b.createElement("div",{className:`${G}-inline-collapsed-noicon`},_.charAt(0)):on},{siderCollapsed:Je}=b.useContext(z.D);let Rt=se;typeof se=="undefined"?Rt=Q?_:"":se===!1&&(Rt="");const Ct={title:Rt};!Je&&!J&&(Ct.title=null,Ct.open=!1);const pt=(0,D.Z)(_).length;let It=b.createElement(o.ck,Object.assign({},(0,ae.Z)(ye,["title","icon","danger"]),{className:T()({[`${G}-item-danger`]:A,[`${G}-item-only-child`]:(O?pt+1:pt)===1},h),title:typeof se=="string"?se:void 0}),(0,I.Tm)(O,{className:T()((0,I.l$)(O)?(ne=O.props)===null||ne===void 0?void 0:ne.className:"",`${G}-item-icon`)}),ge(J));return W||(It=b.createElement(de.Z,Object.assign({},Ct,{placement:C==="rtl"?"left":"right",overlayClassName:`${G}-inline-collapsed-tooltip`}),It)),It},K=ye=>{var ne;const{popupClassName:h,icon:_,title:O,theme:se}=ye,A=b.useContext(ue),{prefixCls:G,inlineCollapsed:Q,theme:C}=A,W=(0,o.Xl)();let J;if(!_)J=Q&&!W.length&&O&&typeof O=="string"?b.createElement("div",{className:`${G}-inline-collapsed-noicon`},O.charAt(0)):b.createElement("span",{className:`${G}-title-content`},O);else{const Je=(0,I.l$)(O)&&O.type==="span";J=b.createElement(b.Fragment,null,(0,I.Tm)(_,{className:T()((0,I.l$)(_)?(ne=_.props)===null||ne===void 0?void 0:ne.className:"",`${G}-item-icon`)}),Je?O:b.createElement("span",{className:`${G}-title-content`},O))}const ge=b.useMemo(()=>Object.assign(Object.assign({},A),{firstLevel:!1}),[A]);return b.createElement(ue.Provider,{value:ge},b.createElement(o.Wd,Object.assign({},(0,ae.Z)(ye,["icon"]),{title:J,popupClassName:T()(G,h,`${G}-${se||C}`)})))},k=r(25877),x=r(60276),m=r(33603),R=r(76529),j=function(ye,ne){var h={};for(var _ in ye)Object.prototype.hasOwnProperty.call(ye,_)&&ne.indexOf(_)<0&&(h[_]=ye[_]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,_=Object.getOwnPropertySymbols(ye);O<_.length;O++)ne.indexOf(_[O])<0&&Object.prototype.propertyIsEnumerable.call(ye,_[O])&&(h[_[O]]=ye[_[O]]);return h};function H(ye){return(ye||[]).map((ne,h)=>{if(ne&&typeof ne=="object"){const _=ne,{label:O,children:se,key:A,type:G}=_,Q=j(_,["label","children","key","type"]),C=A!=null?A:`tmp-${h}`;return se||G==="group"?G==="group"?b.createElement(o.BW,Object.assign({key:C},Q,{title:O}),H(se)):b.createElement(K,Object.assign({key:C},Q,{title:O}),H(se)):G==="divider"?b.createElement(c,Object.assign({key:C},Q)):b.createElement(f,Object.assign({key:C},Q),O)}return null}).filter(ne=>ne)}function ve(ye){return b.useMemo(()=>ye&&H(ye),[ye])}var Re=r(84780),Ne=r(14747),U=r(33507),Xe=r(67771),oe=r(50438),be=r(67968),F=r(45503),Qe=ye=>{const{componentCls:ne,motionDurationSlow:h,horizontalLineHeight:_,colorSplit:O,lineWidth:se,lineType:A,itemPaddingInline:G}=ye;return{[`${ne}-horizontal`]:{lineHeight:_,border:0,borderBottom:`${se}px ${A} ${O}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ne}-item, ${ne}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:G},[`> ${ne}-item:hover, > ${ne}-item-active, > ${ne}-submenu ${ne}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ne}-item, ${ne}-submenu-title`]:{transition:[`border-color ${h}`,`background ${h}`].join(",")},[`${ne}-submenu-arrow`]:{display:"none"}}}},Ke=ye=>{let{componentCls:ne,menuArrowOffset:h}=ye;return{[`${ne}-rtl`]:{direction:"rtl"},[`${ne}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ne}-rtl${ne}-vertical, ${ne}-submenu-rtl ${ne}-vertical`]:{[`${ne}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${h})`},"&::after":{transform:`rotate(45deg) translateY(${h})`}}}}};const fe=ye=>Object.assign({},(0,Ne.oN)(ye));var Be=(ye,ne)=>{const{componentCls:h,itemColor:_,itemSelectedColor:O,groupTitleColor:se,itemBg:A,subMenuItemBg:G,itemSelectedBg:Q,activeBarHeight:C,activeBarWidth:W,activeBarBorderWidth:J,motionDurationSlow:ge,motionEaseInOut:Je,motionEaseOut:Rt,itemPaddingInline:Ct,motionDurationMid:pt,itemHoverColor:It,lineType:Et,colorSplit:on,itemDisabledColor:Oe,dangerItemColor:ar,dangerItemHoverColor:jn,dangerItemSelectedColor:gn,dangerItemActiveBg:$n,dangerItemSelectedBg:er,itemHoverBg:kn,itemActiveBg:Tn,menuSubMenuBg:In,horizontalItemSelectedColor:ur,horizontalItemSelectedBg:Zt,horizontalItemBorderRadius:gr,horizontalItemHoverBg:Gt,popupBg:Z}=ye;return{[`${h}-${ne}, ${h}-${ne} > ${h}`]:{color:_,background:A,[`&${h}-root:focus-visible`]:Object.assign({},fe(ye)),[`${h}-item-group-title`]:{color:se},[`${h}-submenu-selected`]:{[`> ${h}-submenu-title`]:{color:O}},[`${h}-item-disabled, ${h}-submenu-disabled`]:{color:`${Oe} !important`},[`${h}-item:not(${h}-item-selected):not(${h}-submenu-selected)`]:{[`&:hover, > ${h}-submenu-title:hover`]:{color:It}},[`&:not(${h}-horizontal)`]:{[`${h}-item:not(${h}-item-selected)`]:{"&:hover":{backgroundColor:kn},"&:active":{backgroundColor:Tn}},[`${h}-submenu-title`]:{"&:hover":{backgroundColor:kn},"&:active":{backgroundColor:Tn}}},[`${h}-item-danger`]:{color:ar,[`&${h}-item:hover`]:{[`&:not(${h}-item-selected):not(${h}-submenu-selected)`]:{color:jn}},[`&${h}-item:active`]:{background:$n}},[`${h}-item a`]:{"&, &:hover":{color:"inherit"}},[`${h}-item-selected`]:{color:O,[`&${h}-item-danger`]:{color:gn},"a, a:hover":{color:"inherit"}},[`& ${h}-item-selected`]:{backgroundColor:Q,[`&${h}-item-danger`]:{backgroundColor:er}},[`${h}-item, ${h}-submenu-title`]:{[`&:not(${h}-item-disabled):focus-visible`]:Object.assign({},fe(ye))},[`&${h}-submenu > ${h}`]:{backgroundColor:In},[`&${h}-popup > ${h}`]:{backgroundColor:Z},[`&${h}-horizontal`]:Object.assign(Object.assign({},ne==="dark"?{borderBottom:0}:{}),{[`> ${h}-item, > ${h}-submenu`]:{top:J,marginTop:-J,marginBottom:0,borderRadius:gr,"&::after":{position:"absolute",insetInline:Ct,bottom:0,borderBottom:`${C}px solid transparent`,transition:`border-color ${ge} ${Je}`,content:'""'},"&:hover, &-active, &-open":{background:Gt,"&::after":{borderBottomWidth:C,borderBottomColor:ur}},"&-selected":{color:ur,backgroundColor:Zt,"&:hover":{backgroundColor:Zt},"&::after":{borderBottomWidth:C,borderBottomColor:ur}}}}),[`&${h}-root`]:{[`&${h}-inline, &${h}-vertical`]:{borderInlineEnd:`${J}px ${Et} ${on}`}},[`&${h}-inline`]:{[`${h}-sub${h}-inline`]:{background:G},[`${h}-item, ${h}-submenu-title`]:J&&W?{width:`calc(100% + ${J}px)`}:{},[`${h}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${W}px solid ${O}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${pt} ${Rt}`,`opacity ${pt} ${Rt}`].join(","),content:'""'},[`&${h}-item-danger`]:{"&::after":{borderInlineEndColor:gn}}},[`${h}-selected, ${h}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${pt} ${Je}`,`opacity ${pt} ${Je}`].join(",")}}}}}};const Te=ye=>{const{componentCls:ne,itemHeight:h,itemMarginInline:_,padding:O,menuArrowSize:se,marginXS:A,itemMarginBlock:G}=ye,Q=O+se+A;return{[`${ne}-item`]:{position:"relative",overflow:"hidden"},[`${ne}-item, ${ne}-submenu-title`]:{height:h,lineHeight:`${h}px`,paddingInline:O,overflow:"hidden",textOverflow:"ellipsis",marginInline:_,marginBlock:G,width:`calc(100% - ${_*2}px)`},[`> ${ne}-item, > ${ne}-submenu > ${ne}-submenu-title`]:{height:h,lineHeight:`${h}px`},[`${ne}-item-group-list ${ne}-submenu-title, ${ne}-submenu-title`]:{paddingInlineEnd:Q}}};var nn=ye=>{const{componentCls:ne,iconCls:h,itemHeight:_,colorTextLightSolid:O,dropdownWidth:se,controlHeightLG:A,motionDurationMid:G,motionEaseOut:Q,paddingXL:C,itemMarginInline:W,fontSizeLG:J,motionDurationSlow:ge,paddingXS:Je,boxShadowSecondary:Rt,collapsedWidth:Ct,collapsedIconSize:pt}=ye,It={height:_,lineHeight:`${_}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ne]:{"&-inline, &-vertical":Object.assign({[`&${ne}-root`]:{boxShadow:"none"}},Te(ye))},[`${ne}-submenu-popup`]:{[`${ne}-vertical`]:Object.assign(Object.assign({},Te(ye)),{boxShadow:Rt})}},{[`${ne}-submenu-popup ${ne}-vertical${ne}-sub`]:{minWidth:se,maxHeight:`calc(100vh - ${A*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ne}-inline`]:{width:"100%",[`&${ne}-root`]:{[`${ne}-item, ${ne}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ge}`,`background ${ge}`,`padding ${G} ${Q}`].join(","),[`> ${ne}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ne}-sub${ne}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ne}-submenu > ${ne}-submenu-title`]:It,[`& ${ne}-item-group-title`]:{paddingInlineStart:C}},[`${ne}-item`]:It}},{[`${ne}-inline-collapsed`]:{width:Ct,[`&${ne}-root`]:{[`${ne}-item, ${ne}-submenu ${ne}-submenu-title`]:{[`> ${ne}-inline-collapsed-noicon`]:{fontSize:J,textAlign:"center"}}},[`> ${ne}-item, > ${ne}-item-group > ${ne}-item-group-list > ${ne}-item, > ${ne}-item-group > ${ne}-item-group-list > ${ne}-submenu > ${ne}-submenu-title, > ${ne}-submenu > ${ne}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${J/2}px - ${W}px)`,textOverflow:"clip",[` ${ne}-submenu-arrow, ${ne}-submenu-expand-icon `]:{opacity:0},[`${ne}-item-icon, ${h}`]:{margin:0,fontSize:pt,lineHeight:`${_}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ne}-item-icon, ${h}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ne}-item-icon, ${h}`]:{display:"none"},"a, a:hover":{color:O}},[`${ne}-item-group-title`]:Object.assign(Object.assign({},Ne.vS),{paddingInline:Je})}}]};const yt=ye=>{const{componentCls:ne,motionDurationSlow:h,motionDurationMid:_,motionEaseInOut:O,motionEaseOut:se,iconCls:A,iconSize:G,iconMarginInlineEnd:Q}=ye;return{[`${ne}-item, ${ne}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${h}`,`background ${h}`,`padding ${h} ${O}`].join(","),[`${ne}-item-icon, ${A}`]:{minWidth:G,fontSize:G,transition:[`font-size ${_} ${se}`,`margin ${h} ${O}`,`color ${h}`].join(","),"+ span":{marginInlineStart:Q,opacity:1,transition:[`opacity ${h} ${O}`,`margin ${h}`,`color ${h}`].join(",")}},[`${ne}-item-icon`]:Object.assign({},(0,Ne.Ro)()),[`&${ne}-item-only-child`]:{[`> ${A}, > ${ne}-item-icon`]:{marginInlineEnd:0}}},[`${ne}-item-disabled, ${ne}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ne}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},vn=ye=>{const{componentCls:ne,motionDurationSlow:h,motionEaseInOut:_,borderRadius:O,menuArrowSize:se,menuArrowOffset:A}=ye;return{[`${ne}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ye.margin,width:se,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${h} ${_}, opacity ${h}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:se*.6,height:se*.15,backgroundColor:"currentcolor",borderRadius:O,transition:[`background ${h} ${_}`,`transform ${h} ${_}`,`top ${h} ${_}`,`color ${h} ${_}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${A})`},"&::after":{transform:`rotate(-45deg) translateY(${A})`}}}}},Pt=ye=>{const{antCls:ne,componentCls:h,fontSize:_,motionDurationSlow:O,motionDurationMid:se,motionEaseInOut:A,paddingXS:G,padding:Q,colorSplit:C,lineWidth:W,zIndexPopup:J,borderRadiusLG:ge,subMenuItemBorderRadius:Je,menuArrowSize:Rt,menuArrowOffset:Ct,lineType:pt,menuPanelMaskInset:It,groupTitleLineHeight:Et,groupTitleFontSize:on}=ye;return[{"":{[`${h}`]:Object.assign(Object.assign({},(0,Ne.dF)()),{"&-hidden":{display:"none"}})},[`${h}-submenu-hidden`]:{display:"none"}},{[h]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ne.Wf)(ye)),(0,Ne.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:_,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${O} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${h}-item`]:{flex:"none"}},[`${h}-item, ${h}-submenu, ${h}-submenu-title`]:{borderRadius:ye.itemBorderRadius},[`${h}-item-group-title`]:{padding:`${G}px ${Q}px`,fontSize:on,lineHeight:Et,transition:`all ${O}`},[`&-horizontal ${h}-submenu`]:{transition:[`border-color ${O} ${A}`,`background ${O} ${A}`].join(",")},[`${h}-submenu, ${h}-submenu-inline`]:{transition:[`border-color ${O} ${A}`,`background ${O} ${A}`,`padding ${se} ${A}`].join(",")},[`${h}-submenu ${h}-sub`]:{cursor:"initial",transition:[`background ${O} ${A}`,`padding ${O} ${A}`].join(",")},[`${h}-title-content`]:{transition:`color ${O}`},[`${h}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${h}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:C,borderStyle:pt,borderWidth:0,borderTopWidth:W,marginBlock:W,padding:0,"&-dashed":{borderStyle:"dashed"}}}),yt(ye)),{[`${h}-item-group`]:{[`${h}-item-group-list`]:{margin:0,padding:0,[`${h}-item, ${h}-submenu-title`]:{paddingInline:`${_*2}px ${Q}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:J,borderRadius:ge,boxShadow:"none",transformOrigin:"0 0",[`&${h}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${It}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:It},"\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:ye.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ye.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ye.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ye.paddingXS},[`> ${h}`]:Object.assign(Object.assign(Object.assign({borderRadius:ge},yt(ye)),vn(ye)),{[`${h}-item, ${h}-submenu > ${h}-submenu-title`]:{borderRadius:Je},[`${h}-submenu-title::after`]:{transition:`transform ${O} ${A}`}})}}),vn(ye)),{[`&-inline-collapsed ${h}-submenu-arrow, &-inline ${h}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ct})`},"&::after":{transform:`rotate(45deg) translateX(-${Ct})`}},[`${h}-submenu-open${h}-submenu-inline > ${h}-submenu-title > ${h}-submenu-arrow`]:{transform:`translateY(-${Rt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ct})`},"&::before":{transform:`rotate(45deg) translateX(${Ct})`}}})},{[`${ne}-layout-header`]:{[h]:{lineHeight:"inherit"}}}]};var mn=(ye,ne)=>(0,be.Z)("Menu",_=>{if(ne===!1)return[];const{colorBgElevated:O,colorPrimary:se,colorTextLightSolid:A,controlHeightLG:G,fontSize:Q,darkItemColor:C,darkDangerItemColor:W,darkItemBg:J,darkSubMenuItemBg:ge,darkItemSelectedColor:Je,darkItemSelectedBg:Rt,darkDangerItemSelectedBg:Ct,darkItemHoverBg:pt,darkGroupTitleColor:It,darkItemHoverColor:Et,darkItemDisabledColor:on,darkDangerItemHoverColor:Oe,darkDangerItemSelectedColor:ar,darkDangerItemActiveBg:jn}=_,gn=Q/7*5,$n=(0,F.TS)(_,{menuArrowSize:gn,menuHorizontalHeight:G*1.15,menuArrowOffset:`${gn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:O}),er=(0,F.TS)($n,{itemColor:C,itemHoverColor:Et,groupTitleColor:It,itemSelectedColor:Je,itemBg:J,popupBg:J,subMenuItemBg:ge,itemActiveBg:"transparent",itemSelectedBg:Rt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:pt,itemDisabledColor:on,dangerItemColor:W,dangerItemHoverColor:Oe,dangerItemSelectedColor:ar,dangerItemActiveBg:jn,dangerItemSelectedBg:Ct,menuSubMenuBg:ge,horizontalItemSelectedColor:A,horizontalItemSelectedBg:se});return[Pt($n),Qe($n),nn($n),Be($n,"light"),Be(er,"dark"),Ke($n),(0,U.Z)($n),(0,Xe.oN)($n,"slide-up"),(0,Xe.oN)($n,"slide-down"),(0,oe._y)($n,"zoom-big")]},_=>{const{colorPrimary:O,colorError:se,colorTextDisabled:A,colorErrorBg:G,colorText:Q,colorTextDescription:C,colorBgContainer:W,colorFillAlter:J,colorFillContent:ge,lineWidth:Je,lineWidthBold:Rt,controlItemBgActive:Ct,colorBgTextHover:pt,controlHeightLG:It,lineHeight:Et,colorBgElevated:on,marginXXS:Oe,padding:ar,fontSize:jn,controlHeightSM:gn,fontSizeLG:$n,colorTextLightSolid:er,colorErrorHover:kn}=_,Tn=new Re.C(er).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:_.zIndexPopupBase+50,radiusItem:_.borderRadiusLG,itemBorderRadius:_.borderRadiusLG,radiusSubMenuItem:_.borderRadiusSM,subMenuItemBorderRadius:_.borderRadiusSM,colorItemText:Q,itemColor:Q,colorItemTextHover:Q,itemHoverColor:Q,colorItemTextHoverHorizontal:O,horizontalItemHoverColor:O,colorGroupTitle:C,groupTitleColor:C,colorItemTextSelected:O,itemSelectedColor:O,colorItemTextSelectedHorizontal:O,horizontalItemSelectedColor:O,colorItemBg:W,itemBg:W,colorItemBgHover:pt,itemHoverBg:pt,colorItemBgActive:ge,itemActiveBg:Ct,colorSubItemBg:J,subMenuItemBg:J,colorItemBgSelected:Ct,itemSelectedBg:Ct,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Rt,activeBarHeight:Rt,colorActiveBarBorderSize:Je,activeBarBorderWidth:Je,colorItemTextDisabled:A,itemDisabledColor:A,colorDangerItemText:se,dangerItemColor:se,colorDangerItemTextHover:se,dangerItemHoverColor:se,colorDangerItemTextSelected:se,dangerItemSelectedColor:se,colorDangerItemBgActive:G,dangerItemActiveBg:G,colorDangerItemBgSelected:G,dangerItemSelectedBg:G,itemMarginInline:_.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:It,groupTitleLineHeight:Et,collapsedWidth:It*2,popupBg:on,itemMarginBlock:Oe,itemPaddingInline:ar,horizontalLineHeight:`${It*1.15}px`,iconSize:jn,iconMarginInlineEnd:gn-jn,collapsedIconSize:$n,groupTitleFontSize:jn,darkItemDisabledColor:new Re.C(er).setAlpha(.25).toRgbString(),darkItemColor:Tn,darkDangerItemColor:se,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:er,darkItemSelectedBg:O,darkDangerItemSelectedBg:se,darkItemHoverBg:"transparent",darkGroupTitleColor:Tn,darkItemHoverColor:er,darkDangerItemHoverColor:kn,darkDangerItemSelectedColor:er,darkDangerItemActiveBg:se}},{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"]]})(ye),Jt=function(ye,ne){var h={};for(var _ in ye)Object.prototype.hasOwnProperty.call(ye,_)&&ne.indexOf(_)<0&&(h[_]=ye[_]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,_=Object.getOwnPropertySymbols(ye);O<_.length;O++)ne.indexOf(_[O])<0&&Object.prototype.propertyIsEnumerable.call(ye,_[O])&&(h[_[O]]=ye[_[O]]);return h},zt=(0,b.forwardRef)((ye,ne)=>{var h,_;const O=b.useContext(R.Z),se=O||{},{getPrefixCls:A,getPopupContainer:G,direction:Q,menu:C}=b.useContext(g.E_),W=A(),{prefixCls:J,className:ge,style:Je,theme:Rt="light",expandIcon:Ct,_internalDisableMenuItemTitleTooltip:pt,inlineCollapsed:It,siderCollapsed:Et,items:on,children:Oe,rootClassName:ar,mode:jn,selectable:gn,onClick:$n,overflowedIndicatorPopupClassName:er}=ye,kn=Jt(ye,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Tn=(0,ae.Z)(kn,["collapsedWidth"]),In=ve(on)||Oe;(h=se.validator)===null||h===void 0||h.call(se,{mode:jn});const ur=(0,x.useEvent)(function(){var ke;$n==null||$n.apply(void 0,arguments),(ke=se.onClick)===null||ke===void 0||ke.call(se)}),Zt=se.mode||jn,gr=gn!=null?gn:se.selectable,Gt=b.useMemo(()=>Et!==void 0?Et:It,[It,Et]),Z={horizontal:{motionName:`${W}-slide-up`},inline:(0,m.Z)(W),other:{motionName:`${W}-zoom-big`}},Se=A("menu",J||se.prefixCls),[Ae,Le]=mn(Se,!O),tt=T()(`${Se}-${Rt}`,C==null?void 0:C.className,ge);let We;if(typeof Ct=="function")We=Ct;else if(Ct===null||Ct===!1)We=null;else if(se.expandIcon===null||se.expandIcon===!1)We=null;else{const ke=Ct!=null?Ct:se.expandIcon;We=(0,I.Tm)(ke,{className:T()(`${Se}-submenu-expand-icon`,(0,I.l$)(ke)?(_=ke.props)===null||_===void 0?void 0:_.className:"")})}const He=b.useMemo(()=>({prefixCls:Se,inlineCollapsed:Gt||!1,direction:Q,firstLevel:!0,theme:Rt,mode:Zt,disableMenuItemTitleTooltip:pt}),[Se,Gt,Q,pt,Rt]);return Ae(b.createElement(R.Z.Provider,{value:null},b.createElement(ue.Provider,{value:He},b.createElement(o.ZP,Object.assign({getPopupContainer:G,overflowedIndicator:b.createElement(k.Z,null),overflowedIndicatorPopupClassName:T()(Se,`${Se}-${Rt}`,er),mode:Zt,selectable:gr,onClick:ur},Tn,{inlineCollapsed:Gt,style:Object.assign(Object.assign({},C==null?void 0:C.style),Je),className:tt,prefixCls:Se,direction:Q,defaultMotions:Z,expandIcon:We,ref:ne,rootClassName:T()(ar,Le)}),In))))});const fn=(0,b.forwardRef)((ye,ne)=>{const h=(0,b.useRef)(null),_=b.useContext(z.D);return(0,b.useImperativeHandle)(ne,()=>({menu:h.current,focus:O=>{var se;(se=h.current)===null||se===void 0||se.focus(O)}})),b.createElement(zt,Object.assign({ref:h},ye,_))});fn.Item=f,fn.SubMenu=K,fn.Divider=c,fn.ItemGroup=o.BW;var gt=fn},12604:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return Ke}});var o=r(87462),b=r(67294),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},B=z,T=r(74643),g=function(we,Be){return b.createElement(T.Z,(0,o.Z)({},we,{ref:Be,icon:B}))},w=b.forwardRef(g),V=r(94184),c=r.n(V),D=r(4942),ae=r(97685),de=r(45987),I=r(21770),Y=r(15105),ue=r(64217);function te(fe,we){var Be=fe.disabled,Te=fe.prefixCls,Ve=fe.character,nn=fe.characterRender,yt=fe.index,vn=fe.count,Pt=fe.value,mn=fe.allowHalf,Jt=fe.focused,Wt=fe.onHover,zt=fe.onClick,fn=function(A){Wt(A,yt)},gt=function(A){zt(A,yt)},ye=function(A){A.keyCode===Y.Z.ENTER&&zt(A,yt)},ne=yt+1,h=new Set([Te]);Pt===0&&yt===0&&Jt?h.add("".concat(Te,"-focused")):mn&&Pt+.5>=ne&&Ptyt?"true":"false","aria-posinset":yt+1,"aria-setsize":vn,tabIndex:Be?-1:0},b.createElement("div",{className:"".concat(Te,"-first")},_),b.createElement("div",{className:"".concat(Te,"-second")},_)));return nn&&(O=nn(O,fe)),O}var f=b.forwardRef(te);function P(){var fe=b.useRef({});function we(Te){return fe.current[Te]}function Be(Te){return function(Ve){fe.current[Te]=Ve}}return[we,Be]}function K(fe){var we=fe.pageXOffset,Be="scrollLeft";if(typeof we!="number"){var Te=fe.document;we=Te.documentElement[Be],typeof we!="number"&&(we=Te.body[Be])}return we}function k(fe){var we,Be,Te=fe.ownerDocument,Ve=Te.body,nn=Te&&Te.documentElement,yt=fe.getBoundingClientRect();return we=yt.left,Be=yt.top,we-=nn.clientLeft||Ve.clientLeft||0,Be-=nn.clientTop||Ve.clientTop||0,{left:we,top:Be}}function x(fe){var we=k(fe),Be=fe.ownerDocument,Te=Be.defaultView||Be.parentWindow;return we.left+=K(Te),we.left}var m=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function R(fe,we){var Be,Te=fe.prefixCls,Ve=Te===void 0?"rc-rate":Te,nn=fe.className,yt=fe.defaultValue,vn=fe.value,Pt=fe.count,mn=Pt===void 0?5:Pt,Jt=fe.allowHalf,Wt=Jt===void 0?!1:Jt,zt=fe.allowClear,fn=zt===void 0?!0:zt,gt=fe.character,ye=gt===void 0?"\u2605":gt,ne=fe.characterRender,h=fe.disabled,_=fe.direction,O=_===void 0?"ltr":_,se=fe.tabIndex,A=se===void 0?0:se,G=fe.autoFocus,Q=fe.onHoverChange,C=fe.onChange,W=fe.onFocus,J=fe.onBlur,ge=fe.onKeyDown,Je=fe.onMouseLeave,Rt=(0,de.Z)(fe,m),Ct=P(),pt=(0,ae.Z)(Ct,2),It=pt[0],Et=pt[1],on=b.useRef(null),Oe=function(){if(!h){var E;(E=on.current)===null||E===void 0||E.focus()}};b.useImperativeHandle(we,function(){return{focus:Oe,blur:function(){if(!h){var E;(E=on.current)===null||E===void 0||E.blur()}}}});var ar=(0,I.Z)(yt||0,{value:vn}),jn=(0,ae.Z)(ar,2),gn=jn[0],$n=jn[1],er=(0,I.Z)(null),kn=(0,ae.Z)(er,2),Tn=kn[0],In=kn[1],ur=function(E,M){var Ce=O==="rtl",me=E+1;if(Wt){var Ye=It(E),ut=x(Ye),Ot=Ye.clientWidth;(Ce&&M-ut>Ot/2||!Ce&&M-ut0&&!Ce||M===Y.Z.RIGHT&&me>0&&Ce?(Wt?me-=.5:me-=1,Zt(me),E.preventDefault()):M===Y.Z.LEFT&&me{const{componentCls:we}=fe;return{[`${we}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:fe.marginXS},"> div":{transition:`all ${fe.motionDurationMid}, outline 0s`,"&:hover":{transform:fe.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${fe.lineWidth}px dashed ${fe.starColor}`,transform:fe.starHoverScale}},"&-first, &-second":{color:fe.starBg,transition:`all ${fe.motionDurationMid}`,userSelect:"none",[fe.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${we}-star-first, &-half ${we}-star-second`]:{opacity:1},[`&-half ${we}-star-first, &-full ${we}-star-second`]:{color:"inherit"}}}},be=fe=>({[`&-rtl${fe.componentCls}`]:{direction:"rtl"}}),F=fe=>{const{componentCls:we}=fe;return{[we]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ne.Wf)(fe)),{display:"inline-block",margin:0,padding:0,color:fe.starColor,fontSize:fe.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${we} ${we}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),oe(fe)),{[`+ ${we}-text`]:{display:"inline-block",marginInlineStart:fe.marginXS,fontSize:fe.fontSize}}),be(fe))}};var N=(0,U.Z)("Rate",fe=>{const we=(0,Xe.TS)(fe,{});return[F(we)]},fe=>({starColor:fe.yellow6,starSize:fe.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:fe.colorFillContent})),Qe=function(fe,we){var Be={};for(var Te in fe)Object.prototype.hasOwnProperty.call(fe,Te)&&we.indexOf(Te)<0&&(Be[Te]=fe[Te]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,Te=Object.getOwnPropertySymbols(fe);Ve{const{prefixCls:Be,className:Te,rootClassName:Ve,style:nn,tooltips:yt,character:vn=b.createElement(w,null)}=fe,Pt=Qe(fe,["prefixCls","className","rootClassName","style","tooltips","character"]),mn=(h,_)=>{let{index:O}=_;return yt?b.createElement(Re.Z,{title:yt[O]},h):h},{getPrefixCls:Jt,direction:Wt,rate:zt}=b.useContext(ve.E_),fn=Jt("rate",Be),[gt,ye]=N(fn),ne=Object.assign(Object.assign({},zt==null?void 0:zt.style),nn);return gt(b.createElement(H,Object.assign({ref:we,character:vn,characterRender:mn},Pt,{className:c()(Te,Ve,ye,zt==null?void 0:zt.className),style:ne,prefixCls:fn,direction:Wt})))})},93421:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return f}});var o=r(67294),b=r(94184),z=r.n(b),B=r(37419),T=r(53124),g=r(4173);const w=o.createContext({latestIndex:0}),V=w.Provider;var D=P=>{let{className:K,index:k,children:x,split:m,style:R}=P;const{latestIndex:j}=o.useContext(w);return x==null?null:o.createElement(o.Fragment,null,o.createElement("div",{className:K,style:R},x),k{var k,x;const{getPrefixCls:m,space:R,direction:j}=o.useContext(T.E_),{size:H=(R==null?void 0:R.size)||"small",align:ve,className:Re,rootClassName:Ne,children:U,direction:Xe="horizontal",prefixCls:oe,split:be,style:F,wrap:N=!1,classNames:Qe,styles:et}=P,Ke=Y(P,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[fe,we]=Array.isArray(H)?H:[H,H],Be=de(we),Te=de(fe),Ve=I(we),nn=I(fe),yt=(0,B.Z)(U,{keepEmpty:!0}),vn=ve===void 0&&Xe==="horizontal"?"center":ve,Pt=m("space",oe),[mn,Jt]=(0,ae.Z)(Pt),Wt=z()(Pt,R==null?void 0:R.className,Jt,`${Pt}-${Xe}`,{[`${Pt}-rtl`]:j==="rtl",[`${Pt}-align-${vn}`]:vn,[`${Pt}-gap-row-${we}`]:Be,[`${Pt}-gap-col-${fe}`]:Te},Re,Ne),zt=z()(`${Pt}-item`,(k=Qe==null?void 0:Qe.item)!==null&&k!==void 0?k:(x=R==null?void 0:R.classNames)===null||x===void 0?void 0:x.item);let fn=0;const gt=yt.map((h,_)=>{var O,se;h!=null&&(fn=_);const A=h&&h.key||`${zt}-${_}`;return o.createElement(D,{className:zt,key:A,index:_,split:be,style:(O=et==null?void 0:et.item)!==null&&O!==void 0?O:(se=R==null?void 0:R.styles)===null||se===void 0?void 0:se.item},h)}),ye=o.useMemo(()=>({latestIndex:fn}),[fn]);if(yt.length===0)return null;const ne={};return N&&(ne.flexWrap="wrap"),!Te&&nn&&(ne.columnGap=fe),!Be&&Ve&&(ne.rowGap=we),mn(o.createElement("div",Object.assign({ref:K,className:Wt,style:Object.assign(Object.assign(Object.assign({},ne),R==null?void 0:R.style),F)},Ke),o.createElement(V,{value:ye},gt)))});te.Compact=g.ZP;var f=te},33507:function(Mt,Me){"use strict";const r=o=>({[o.componentCls]:{[`${o.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${o.motionDurationMid} ${o.motionEaseInOut}, opacity ${o.motionDurationMid} ${o.motionEaseInOut} !important`}},[`${o.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${o.motionDurationMid} ${o.motionEaseInOut}, opacity ${o.motionDurationMid} ${o.motionEaseInOut} !important`}}});Me.Z=r},33297:function(Mt,Me,r){"use strict";r.d(Me,{Fm:function(){return de}});var o=r(45930),b=r(93590);const z=new o.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),B=new o.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),T=new o.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new o.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),w=new o.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),V=new o.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),c=new o.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),D=new o.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ae={"move-up":{inKeyframes:c,outKeyframes:D},"move-down":{inKeyframes:z,outKeyframes:B},"move-left":{inKeyframes:T,outKeyframes:g},"move-right":{inKeyframes:w,outKeyframes:V}},de=(I,Y)=>{const{antCls:ue}=I,te=`${ue}-${Y}`,{inKeyframes:f,outKeyframes:P}=ae[Y];return[(0,b.R)(te,f,P,I.motionDurationMid),{[` ${te}-enter, ${te}-appear `]:{opacity:0,animationTimingFunction:I.motionEaseOutCirc},[`${te}-leave`]:{animationTimingFunction:I.motionEaseInOutCirc}}]}},67771:function(Mt,Me,r){"use strict";r.d(Me,{Qt:function(){return T},Uw:function(){return B},fJ:function(){return z},ly:function(){return g},oN:function(){return de}});var o=r(45930),b=r(93590);const z=new o.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),B=new o.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),T=new o.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),g=new o.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),w=new o.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),V=new o.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),c=new o.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),D=new o.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ae={"slide-up":{inKeyframes:z,outKeyframes:B},"slide-down":{inKeyframes:T,outKeyframes:g},"slide-left":{inKeyframes:w,outKeyframes:V},"slide-right":{inKeyframes:c,outKeyframes:D}},de=(I,Y)=>{const{antCls:ue}=I,te=`${ue}-${Y}`,{inKeyframes:f,outKeyframes:P}=ae[Y];return[(0,b.R)(te,f,P,I.motionDurationMid),{[` ${te}-enter, ${te}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:I.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${te}-leave`]:{animationTimingFunction:I.motionEaseInQuint}}]}},47897:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return ne}});var o=r(3407),b=r(94184),z=r.n(b);function B(){return B=Object.assign?Object.assign.bind():function(h){for(var _=1;_h.length)&&(_=h.length);for(var O=0,se=new Array(_);O<_;O++)se[O]=h[O];return se}function de(h,_){if(h){if(typeof h=="string")return ae(h,_);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return ae(h,_)}}function I(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y(h,_){return c(h)||D(h,_)||de(h,_)||I()}function ue(h,_){if(h==null)return{};var O={},se=Object.keys(h),A,G;for(G=0;G=0)&&(O[A]=h[A]);return O}function te(h,_){if(h==null)return{};var O=ue(h,_),se,A;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(h);for(A=0;A=0)&&Object.prototype.propertyIsEnumerable.call(h,se)&&(O[se]=h[se])}return O}var f=r(67294);function P(h){if(Array.isArray(h))return h}function K(h,_){var O=h==null?null:typeof Symbol!="undefined"&&h[Symbol.iterator]||h["@@iterator"];if(O!=null){var se,A,G,Q,C=[],W=!0,J=!1;try{if(G=(O=O.call(h)).next,_===0){if(Object(O)!==O)return;W=!1}else for(;!(W=(se=G.call(O)).done)&&(C.push(se.value),C.length!==_);W=!0);}catch(ge){J=!0,A=ge}finally{try{if(!W&&O.return!=null&&(Q=O.return(),Object(Q)!==Q))return}finally{if(J)throw A}}return C}}function k(h,_){(_==null||_>h.length)&&(_=h.length);for(var O=0,se=new Array(_);O<_;O++)se[O]=h[O];return se}function x(h,_){if(h){if(typeof h=="string")return k(h,_);var O=Object.prototype.toString.call(h).slice(8,-1);if(O==="Object"&&h.constructor&&(O=h.constructor.name),O==="Map"||O==="Set")return Array.from(h);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return k(h,_)}}function m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R(h,_){return P(h)||K(h,_)||x(h,_)||m()}function j(h){var _=f.useRef();_.current=h;var O=f.useCallback(function(){for(var se,A=arguments.length,G=new Array(A),Q=0;Q=F.F1&&O<=F.F12)return!1;switch(O){case F.ALT:case F.CAPS_LOCK:case F.CONTEXT_MENU:case F.CTRL:case F.DOWN:case F.END:case F.ESC:case F.HOME:case F.INSERT:case F.LEFT:case F.MAC_FF_META:case F.META:case F.NUMLOCK:case F.NUM_CENTER:case F.PAGE_DOWN:case F.PAGE_UP:case F.PAUSE:case F.PRINT_SCREEN:case F.RIGHT:case F.SHIFT:case F.UP:case F.WIN_KEY:case F.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(_){if(_>=F.ZERO&&_<=F.NINE||_>=F.NUM_ZERO&&_<=F.NUM_MULTIPLY||_>=F.A&&_<=F.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&_===0)return!0;switch(_){case F.SPACE:case F.QUESTION_MARK:case F.NUM_PLUS:case F.NUM_MINUS:case F.NUM_PERIOD:case F.NUM_DIVISION:case F.SEMICOLON:case F.DASH:case F.EQUALS:case F.COMMA:case F.PERIOD:case F.SLASH:case F.APOSTROPHE:case F.SINGLE_QUOTE:case F.OPEN_SQUARE_BRACKET:case F.BACKSLASH:case F.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},N=F,Qe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],et=f.forwardRef(function(h,_){var O,se=h.prefixCls,A=se===void 0?"rc-switch":se,G=h.className,Q=h.checked,C=h.defaultChecked,W=h.disabled,J=h.loadingIcon,ge=h.checkedChildren,Je=h.unCheckedChildren,Rt=h.onClick,Ct=h.onChange,pt=h.onKeyDown,It=te(h,Qe),Et=be(!1,{value:Q,defaultValue:C}),on=Y(Et,2),Oe=on[0],ar=on[1];function jn(kn,Tn){var In=Oe;return W||(In=kn,ar(In),Ct==null||Ct(In,Tn)),In}function gn(kn){kn.which===N.LEFT?jn(!1,kn):kn.which===N.RIGHT&&jn(!0,kn),pt==null||pt(kn)}function $n(kn){var Tn=jn(!Oe,kn);Rt==null||Rt(Tn,kn)}var er=z()(A,G,(O={},V(O,"".concat(A,"-checked"),Oe),V(O,"".concat(A,"-disabled"),W),O));return f.createElement("button",B({},It,{type:"button",role:"switch","aria-checked":Oe,disabled:W,className:er,ref:_,onKeyDown:gn,onClick:$n}),J,f.createElement("span",{className:"".concat(A,"-inner")},f.createElement("span",{className:"".concat(A,"-inner-checked")},ge),f.createElement("span",{className:"".concat(A,"-inner-unchecked")},Je)))});et.displayName="Switch";var Ke=et,fe=r(45353),we=r(53124),Be=r(98866),Te=r(98675),Ve=r(84780),nn=r(14747),yt=r(67968),vn=r(45503);const Pt=h=>{const{componentCls:_,trackHeightSM:O,trackPadding:se,trackMinWidthSM:A,innerMinMarginSM:G,innerMaxMarginSM:Q,handleSizeSM:C}=h,W=`${_}-inner`;return{[_]:{[`&${_}-small`]:{minWidth:A,height:O,lineHeight:`${O}px`,[`${_}-inner`]:{paddingInlineStart:Q,paddingInlineEnd:G,[`${W}-checked`]:{marginInlineStart:`calc(-100% + ${C+se*2}px - ${Q*2}px)`,marginInlineEnd:`calc(100% - ${C+se*2}px + ${Q*2}px)`},[`${W}-unchecked`]:{marginTop:-O,marginInlineStart:0,marginInlineEnd:0}},[`${_}-handle`]:{width:C,height:C},[`${_}-loading-icon`]:{top:(C-h.switchLoadingIconSize)/2,fontSize:h.switchLoadingIconSize},[`&${_}-checked`]:{[`${_}-inner`]:{paddingInlineStart:G,paddingInlineEnd:Q,[`${W}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${W}-unchecked`]:{marginInlineStart:`calc(100% - ${C+se*2}px + ${Q*2}px)`,marginInlineEnd:`calc(-100% + ${C+se*2}px - ${Q*2}px)`}},[`${_}-handle`]:{insetInlineStart:`calc(100% - ${C+se}px)`}},[`&:not(${_}-disabled):active`]:{[`&:not(${_}-checked) ${W}`]:{[`${W}-unchecked`]:{marginInlineStart:h.marginXXS/2,marginInlineEnd:-h.marginXXS/2}},[`&${_}-checked ${W}`]:{[`${W}-checked`]:{marginInlineStart:-h.marginXXS/2,marginInlineEnd:h.marginXXS/2}}}}}}},mn=h=>{const{componentCls:_,handleSize:O}=h;return{[_]:{[`${_}-loading-icon${h.iconCls}`]:{position:"relative",top:(O-h.fontSize)/2,color:h.switchLoadingIconColor,verticalAlign:"top"},[`&${_}-checked ${_}-loading-icon`]:{color:h.switchColor}}}},Jt=h=>{const{componentCls:_,motion:O,trackPadding:se,handleBg:A,handleShadow:G,handleSize:Q}=h,C=`${_}-handle`;return{[_]:{[C]:{position:"absolute",top:se,insetInlineStart:se,width:Q,height:Q,transition:`all ${h.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:A,borderRadius:Q/2,boxShadow:G,transition:`all ${h.switchDuration} ease-in-out`,content:'""'}},[`&${_}-checked ${C}`]:{insetInlineStart:`calc(100% - ${Q+se}px)`},[`&:not(${_}-disabled):active`]:O?{[`${C}::before`]:{insetInlineEnd:h.switchHandleActiveInset,insetInlineStart:0},[`&${_}-checked ${C}::before`]:{insetInlineEnd:0,insetInlineStart:h.switchHandleActiveInset}}:{}}}},Wt=h=>{const{componentCls:_,trackHeight:O,trackPadding:se,innerMinMargin:A,innerMaxMargin:G,handleSize:Q}=h,C=`${_}-inner`;return{[_]:{[C]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:G,paddingInlineEnd:A,transition:`padding-inline-start ${h.switchDuration} ease-in-out, padding-inline-end ${h.switchDuration} ease-in-out`,[`${C}-checked, ${C}-unchecked`]:{display:"block",color:h.colorTextLightSolid,fontSize:h.fontSizeSM,transition:`margin-inline-start ${h.switchDuration} ease-in-out, margin-inline-end ${h.switchDuration} ease-in-out`,pointerEvents:"none"},[`${C}-checked`]:{marginInlineStart:`calc(-100% + ${Q+se*2}px - ${G*2}px)`,marginInlineEnd:`calc(100% - ${Q+se*2}px + ${G*2}px)`},[`${C}-unchecked`]:{marginTop:-O,marginInlineStart:0,marginInlineEnd:0}},[`&${_}-checked ${C}`]:{paddingInlineStart:A,paddingInlineEnd:G,[`${C}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${C}-unchecked`]:{marginInlineStart:`calc(100% - ${Q+se*2}px + ${G*2}px)`,marginInlineEnd:`calc(-100% + ${Q+se*2}px - ${G*2}px)`}},[`&:not(${_}-disabled):active`]:{[`&:not(${_}-checked) ${C}`]:{[`${C}-unchecked`]:{marginInlineStart:se*2,marginInlineEnd:-se*2}},[`&${_}-checked ${C}`]:{[`${C}-checked`]:{marginInlineStart:-se*2,marginInlineEnd:se*2}}}}}},zt=h=>{const{componentCls:_,trackHeight:O,trackMinWidth:se}=h;return{[_]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,nn.Wf)(h)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:se,height:O,lineHeight:`${O}px`,verticalAlign:"middle",background:h.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${h.motionDurationMid}`,userSelect:"none",[`&:hover:not(${_}-disabled)`]:{background:h.colorTextTertiary}}),(0,nn.Qy)(h)),{[`&${_}-checked`]:{background:h.switchColor,[`&:hover:not(${_}-disabled)`]:{background:h.colorPrimaryHover}},[`&${_}-loading, &${_}-disabled`]:{cursor:"not-allowed",opacity:h.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${_}-rtl`]:{direction:"rtl"}})}};var fn=(0,yt.Z)("Switch",h=>{const _=(0,vn.TS)(h,{switchDuration:h.motionDurationMid,switchColor:h.colorPrimary,switchDisabledOpacity:h.opacityLoading,switchLoadingIconSize:h.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${h.opacityLoading})`,switchHandleActiveInset:"-30%"});return[zt(_),Wt(_),Jt(_),mn(_),Pt(_)]},h=>{const{fontSize:_,lineHeight:O,controlHeight:se,colorWhite:A}=h,G=_*O,Q=se/2,C=2,W=G-C*2,J=Q-C*2;return{trackHeight:G,trackHeightSM:Q,trackMinWidth:W*2+C*4,trackMinWidthSM:J*2+C*2,trackPadding:C,handleBg:A,handleSize:W,handleSizeSM:J,handleShadow:`0 2px 4px 0 ${new Ve.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:W/2,innerMaxMargin:W+C+C*2,innerMinMarginSM:J/2,innerMaxMarginSM:J+C+C*2}}),gt=function(h,_){var O={};for(var se in h)Object.prototype.hasOwnProperty.call(h,se)&&_.indexOf(se)<0&&(O[se]=h[se]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,se=Object.getOwnPropertySymbols(h);A{const{prefixCls:O,size:se,disabled:A,loading:G,className:Q,rootClassName:C,style:W}=h,J=gt(h,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:ge,direction:Je,switch:Rt}=f.useContext(we.E_),Ct=f.useContext(Be.Z),pt=(A!=null?A:Ct)||G,It=ge("switch",O),Et=f.createElement("div",{className:`${It}-handle`},G&&f.createElement(o.Z,{className:`${It}-loading-icon`})),[on,Oe]=fn(It),ar=(0,Te.Z)(se),jn=z()(Rt==null?void 0:Rt.className,{[`${It}-small`]:ar==="small",[`${It}-loading`]:G,[`${It}-rtl`]:Je==="rtl"},Q,C,Oe),gn=Object.assign(Object.assign({},Rt==null?void 0:Rt.style),W);return on(f.createElement(fe.Z,{component:"Switch"},f.createElement(Ke,Object.assign({},J,{prefixCls:It,className:jn,style:gn,disabled:pt,ref:_,loadingIcon:Et}))))});ye.__ANT_SWITCH=!0;var ne=ye},79870:function(Mt,Me,r){"use strict";r.d(Me,{default:function(){return Pa}});var o=r(87462),b=r(4942),z=r(71002),B=r(1413),T=r(74902),g=r(15671),w=r(43144),V=r(97326),c=r(60136),D=r(51630),ae=r(94184),de=r.n(ae),I={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(le){var _e=le.keyCode;if(le.altKey&&!le.ctrlKey||le.metaKey||_e>=I.F1&&_e<=I.F12)return!1;switch(_e){case I.ALT:case I.CAPS_LOCK:case I.CONTEXT_MENU:case I.CTRL:case I.DOWN:case I.END:case I.ESC:case I.HOME:case I.INSERT:case I.LEFT:case I.MAC_FF_META:case I.META:case I.NUMLOCK:case I.NUM_CENTER:case I.PAGE_DOWN:case I.PAGE_UP:case I.PAUSE:case I.PRINT_SCREEN:case I.RIGHT:case I.SHIFT:case I.UP:case I.WIN_KEY:case I.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=I.ZERO&&le<=I.NINE||le>=I.NUM_ZERO&&le<=I.NUM_MULTIPLY||le>=I.A&&le<=I.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case I.SPACE:case I.QUESTION_MARK:case I.NUM_PLUS:case I.NUM_MINUS:case I.NUM_PERIOD:case I.NUM_DIVISION:case I.SEMICOLON:case I.DASH:case I.EQUALS:case I.COMMA:case I.PERIOD:case I.SLASH:case I.APOSTROPHE:case I.SINGLE_QUOTE:case I.OPEN_SQUARE_BRACKET:case I.BACKSLASH:case I.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Y=I,ue=r(34952),te=r(72978),f=r(67294),P=r(69610);function K(X){var le=X.dropPosition,_e=X.dropLevelOffset,v=X.indent,Ee={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(le){case-1:Ee.top=0,Ee.left=-_e*v;break;case 1:Ee.bottom=0,Ee.left=-_e*v;break;case 0:Ee.bottom=0,Ee.left=v;break}return f.createElement("div",{style:Ee})}var k=r(36459),x=r(97685),m=r(45987);function R(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var j=R()?f.useLayoutEffect:f.useEffect,H=j,ve=function(le,_e){var v=React.useRef(!0);j(function(){if(!v.current)return le()},_e),j(function(){return v.current=!1,function(){v.current=!0}},[])},Re=r(73299),Ne=r(73935);function U(X){return X instanceof HTMLElement||X instanceof SVGElement}function Xe(X){return U(X)?X:X instanceof f.Component?Ne.findDOMNode(X):null}var oe=r(28580);function be(X,le,_e){var v=React.useRef({});return(!("value"in v.current)||_e(v.current.condition,le))&&(v.current.value=X(),v.current.condition=le),v.current.value}function F(X,le){typeof X=="function"?X(le):(0,z.Z)(X)==="object"&&X&&"current"in X&&(X.current=le)}function N(){for(var X=arguments.length,le=new Array(X),_e=0;_e1&&arguments[1]!==void 0?arguments[1]:1;C+=1;var v=C;function Ee($e){if($e===0)J(v),le();else{var je=G(function(){Ee($e-1)});W.set(v,je)}}return Ee(_e),v};ge.cancel=function(X){var le=W.get(X);return J(le),Q(le)};var Je=ge,Rt=function(){var X=f.useRef(null);function le(){Je.cancel(X.current)}function _e(v){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;le();var $e=Je(function(){Ee<=1?v({isCanceled:function(){return $e!==X.current}}):_e(v,Ee-1)});X.current=$e}return f.useEffect(function(){return function(){le()}},[]),[_e,le]},Ct=R()?f.useLayoutEffect:f.useEffect,pt=Ct,It=[h,_,O,se],Et=!1,on=!0;function Oe(X){return X===O||X===se}var ar=function(X,le){var _e=A(ne),v=(0,x.Z)(_e,2),Ee=v[0],$e=v[1],je=Rt(),re=(0,x.Z)(je,2),pe=re[0],ce=re[1];function Ze(){$e(h,!0)}return pt(function(){if(Ee!==ne&&Ee!==se){var at=It.indexOf(Ee),mt=It[at+1],dt=le(Ee);dt===Et?$e(mt,!0):pe(function(wt){function Lt(){wt.isCanceled()||$e(mt,!0)}dt===!0?Lt():Promise.resolve(dt).then(Lt)})}},[X,Ee]),f.useEffect(function(){return function(){ce()}},[]),[Ze,Ee]},jn=function(X){var le=(0,f.useRef)(),_e=(0,f.useRef)(X);_e.current=X;var v=f.useCallback(function(je){_e.current(je)},[]);function Ee(je){je&&(je.removeEventListener(Jt,v),je.removeEventListener(mn,v))}function $e(je){le.current&&le.current!==je&&Ee(le.current),je&&je!==le.current&&(je.addEventListener(Jt,v),je.addEventListener(mn,v),le.current=je)}return f.useEffect(function(){return function(){Ee(le.current)}},[]),[$e,Ee]};function gn(X,le,_e,v){var Ee=v.motionEnter,$e=Ee===void 0?!0:Ee,je=v.motionAppear,re=je===void 0?!0:je,pe=v.motionLeave,ce=pe===void 0?!0:pe,Ze=v.motionDeadline,at=v.motionLeaveImmediately,mt=v.onAppearPrepare,dt=v.onEnterPrepare,wt=v.onLeavePrepare,Lt=v.onAppearStart,qt=v.onEnterStart,qe=v.onLeaveStart,Qt=v.onAppearActive,ln=v.onEnterActive,en=v.onLeaveActive,cn=v.onAppearEnd,rn=v.onEnterEnd,Qn=v.onLeaveEnd,_n=v.onVisibleChanged,Mn=A(),An=(0,x.Z)(Mn,2),bn=An[0],tr=An[1],Yn=A(zt),Fr=(0,x.Z)(Yn,2),lr=Fr[0],Ur=Fr[1],ei=A(null),Yt=(0,x.Z)(ei,2),Bt=Yt[0],Vn=Yt[1],Jn=(0,f.useRef)(!1),Di=(0,f.useRef)(null);function Xi(){return _e()}var bi=(0,f.useRef)(!1);function pa(ui){var ci=Xi();if(!(ui&&!ui.deadline&&ui.target!==ci)){var Pi=bi.current,Xa;lr===fn&&Pi?Xa=cn==null?void 0:cn(ci,ui):lr===gt&&Pi?Xa=rn==null?void 0:rn(ci,ui):lr===ye&&Pi&&(Xa=Qn==null?void 0:Qn(ci,ui)),lr!==zt&&Pi&&Xa!==!1&&(Ur(zt,!0),Vn(null,!0))}}var La=jn(pa),Ta=(0,x.Z)(La,1),Ma=Ta[0],fa=f.useMemo(function(){var ui,ci,Pi;switch(lr){case fn:return ui={},(0,b.Z)(ui,h,mt),(0,b.Z)(ui,_,Lt),(0,b.Z)(ui,O,Qt),ui;case gt:return ci={},(0,b.Z)(ci,h,dt),(0,b.Z)(ci,_,qt),(0,b.Z)(ci,O,ln),ci;case ye:return Pi={},(0,b.Z)(Pi,h,wt),(0,b.Z)(Pi,_,qe),(0,b.Z)(Pi,O,en),Pi;default:return{}}},[lr]),to=ar(lr,function(ui){if(ui===h){var ci=fa[h];return ci?ci(Xi()):Et}if(Ea in fa){var Pi;Vn(((Pi=fa[Ea])===null||Pi===void 0?void 0:Pi.call(fa,Xi(),null))||null)}return Ea===O&&(Ma(Xi()),Ze>0&&(clearTimeout(Di.current),Di.current=setTimeout(function(){pa({deadline:!0})},Ze))),on}),ya=(0,x.Z)(to,2),So=ya[0],Ea=ya[1],vo=Oe(Ea);bi.current=vo,pt(function(){tr(le);var ui=Jn.current;if(Jn.current=!0,!!X){var ci;!ui&&le&&re&&(ci=fn),ui&&le&&$e&&(ci=gt),(ui&&!le&&ce||!ui&&at&&!le&&ce)&&(ci=ye),ci&&(Ur(ci),So())}},[le]),(0,f.useEffect)(function(){(lr===fn&&!re||lr===gt&&!$e||lr===ye&&!ce)&&Ur(zt)},[re,$e,ce]),(0,f.useEffect)(function(){return function(){Jn.current=!1,clearTimeout(Di.current)}},[]);var $a=f.useRef(!1);(0,f.useEffect)(function(){bn&&($a.current=!0),bn!==void 0&&lr===zt&&(($a.current||bn)&&(_n==null||_n(bn)),$a.current=!0)},[bn,lr]);var mo=Bt;return fa[h]&&Ea===_&&(mo=(0,B.Z)({transition:"none"},mo)),[lr,Ea,mo,bn!=null?bn:le]}var $n=function(X){(0,c.Z)(_e,X);var le=(0,D.Z)(_e);function _e(){return(0,g.Z)(this,_e),le.apply(this,arguments)}return(0,w.Z)(_e,[{key:"render",value:function(){return this.props.children}}]),_e}(f.Component),er=$n;function kn(X){var le=X;(0,z.Z)(X)==="object"&&(le=X.transitionSupport);function _e(Ee){return!!(Ee.motionName&&le)}var v=f.forwardRef(function(Ee,$e){var je=Ee.visible,re=je===void 0?!0:je,pe=Ee.removeOnLeave,ce=pe===void 0?!0:pe,Ze=Ee.forceRender,at=Ee.children,mt=Ee.motionName,dt=Ee.leavedClassName,wt=Ee.eventProps,Lt=_e(Ee),qt=(0,f.useRef)(),qe=(0,f.useRef)();function Qt(){try{return qt.current instanceof HTMLElement?qt.current:Xe(qe.current)}catch(ei){return null}}var ln=gn(Lt,re,Qt,Ee),en=(0,x.Z)(ln,4),cn=en[0],rn=en[1],Qn=en[2],_n=en[3],Mn=f.useRef(_n);_n&&(Mn.current=!0);var An=f.useCallback(function(ei){qt.current=ei,F($e,ei)},[$e]),bn,tr=(0,B.Z)((0,B.Z)({},wt),{},{visible:re});if(!at)bn=null;else if(cn===zt||!_e(Ee))_n?bn=at((0,B.Z)({},tr),An):!ce&&Mn.current&&dt?bn=at((0,B.Z)((0,B.Z)({},tr),{},{className:dt}),An):Ze||!ce&&!dt?bn=at((0,B.Z)((0,B.Z)({},tr),{},{style:{display:"none"}}),An):bn=null;else{var Yn,Fr;rn===h?Fr="prepare":Oe(rn)?Fr="active":rn===_&&(Fr="start"),bn=at((0,B.Z)((0,B.Z)({},tr),{},{className:de()(Wt(mt,cn),(Yn={},(0,b.Z)(Yn,Wt(mt,"".concat(cn,"-").concat(Fr)),Fr),(0,b.Z)(Yn,mt,typeof mt=="string"),Yn)),style:Qn}),An)}if(f.isValidElement(bn)&&et(bn)){var lr=bn,Ur=lr.ref;Ur||(bn=f.cloneElement(bn,{ref:An}))}return f.createElement(er,{ref:qe},bn)});return v.displayName="CSSMotion",v}var Tn=kn(Pt),In="add",ur="keep",Zt="remove",gr="removed";function Gt(X){var le;return X&&(0,z.Z)(X)==="object"&&"key"in X?le=X:le={key:X},(0,B.Z)((0,B.Z)({},le),{},{key:String(le.key)})}function Z(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return X.map(Gt)}function Se(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_e=[],v=0,Ee=le.length,$e=Z(X),je=Z(le);$e.forEach(function(ce){for(var Ze=!1,at=v;at1});return pe.forEach(function(ce){_e=_e.filter(function(Ze){var at=Ze.key,mt=Ze.status;return at!==ce||mt!==Zt}),_e.forEach(function(Ze){Ze.key===ce&&(Ze.status=ur)})}),_e}var Ae=["component","children","onVisibleChanged","onAllRemoved"],Le=["status"],tt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function We(X){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tn,_e=function(v){(0,c.Z)($e,v);var Ee=(0,D.Z)($e);function $e(){var je;(0,g.Z)(this,$e);for(var re=arguments.length,pe=new Array(re),ce=0;ce0&&arguments[0]!==void 0?arguments[0]:[],le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],_e=X.length,v=le.length;if(Math.abs(_e-v)!==1)return{add:!1,key:null};function Ee($e,je){var re=new Map;$e.forEach(function(ce){re.set(ce,!0)});var pe=je.filter(function(ce){return!re.has(ce)});return pe.length===1?pe[0]:null}return _e ").concat(le);return le}var _t=f.forwardRef(function(X,le){var _e=X.prefixCls,v=X.data,Ee=X.selectable,$e=X.checkable,je=X.expandedKeys,re=X.selectedKeys,pe=X.checkedKeys,ce=X.loadedKeys,Ze=X.loadingKeys,at=X.halfCheckedKeys,mt=X.keyEntities,dt=X.disabled,wt=X.dragging,Lt=X.dragOverNodeKey,qt=X.dropPosition,qe=X.motion,Qt=X.height,ln=X.itemHeight,en=X.virtual,cn=X.focusable,rn=X.activeItem,Qn=X.focused,_n=X.tabIndex,Mn=X.onKeyDown,An=X.onFocus,bn=X.onBlur,tr=X.onActiveChange,Yn=X.onListChangeStart,Fr=X.onListChangeEnd,lr=(0,m.Z)(X,Ce),Ur=f.useRef(null),ei=f.useRef(null);f.useImperativeHandle(le,function(){return{scrollTo:function(ka){Ur.current.scrollTo(ka)},getIndentWidth:function(){return ei.current.offsetWidth}}});var Yt=f.useState(je),Bt=(0,x.Z)(Yt,2),Vn=Bt[0],Jn=Bt[1],Di=f.useState(v),Xi=(0,x.Z)(Di,2),bi=Xi[0],pa=Xi[1],La=f.useState(v),Ta=(0,x.Z)(La,2),Ma=Ta[0],fa=Ta[1],to=f.useState([]),ya=(0,x.Z)(to,2),So=ya[0],Ea=ya[1],vo=f.useState(null),$a=(0,x.Z)(vo,2),mo=$a[0],ui=$a[1],ci=f.useRef(v);ci.current=v;function Pi(){var pi=ci.current;pa(pi),fa(pi),Ea([]),ui(null),Fr()}H(function(){Jn(je);var pi=E(Vn,je);if(pi.key!==null)if(pi.add){var ka=bi.findIndex(function(ro){var io=ro.key;return io===pi.key}),Va=St(M(bi,v,pi.key),en,Qt,ln),un=bi.slice();un.splice(ka+1,0,At),fa(un),Ea(Va),ui("show")}else{var Ba=v.findIndex(function(ro){var io=ro.key;return io===pi.key}),Ka=St(M(v,bi,pi.key),en,Qt,ln),no=v.slice();no.splice(Ba+1,0,At),fa(no),Ea(Ka),ui("hide")}else bi!==v&&(pa(v),fa(v))},[je,v]),f.useEffect(function(){wt||Pi()},[wt]);var Xa=qe?Ma:v,Ro={expandedKeys:je,selectedKeys:re,loadedKeys:ce,loadingKeys:Ze,checkedKeys:pe,halfCheckedKeys:at,dragOverNodeKey:Lt,dropPosition:qt,keyEntities:mt};return f.createElement(f.Fragment,null,Qn&&rn&&f.createElement("span",{style:me,"aria-live":"assertive"},st(rn)),f.createElement("div",null,f.createElement("input",{style:me,disabled:cn===!1||dt,tabIndex:cn!==!1?_n:null,onKeyDown:Mn,onFocus:An,onBlur:bn,value:"",onChange:Ye,"aria-label":"for screen reader"})),f.createElement("div",{className:"".concat(_e,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},f.createElement("div",{className:"".concat(_e,"-indent")},f.createElement("div",{ref:ei,className:"".concat(_e,"-indent-unit")}))),f.createElement(Re.Z,(0,o.Z)({},lr,{data:Xa,itemKey:Ue,height:Qt,fullHeight:!1,virtual:en,itemHeight:ln,prefixCls:"".concat(_e,"-list"),ref:Ur,onVisibleChange:function(ka,Va){var un=new Set(ka),Ba=Va.filter(function(Ka){return!un.has(Ka)});Ba.some(function(Ka){return Ue(Ka)===ut})&&Pi()}}),function(pi){var ka=pi.pos,Va=(0,o.Z)({},((0,k.Z)(pi.data),pi.data)),un=pi.title,Ba=pi.key,Ka=pi.isStart,no=pi.isEnd,ro=(0,e.km)(Ba,ka);delete Va.key,delete Va.children;var io=(0,e.H8)(ro,Ro);return f.createElement(l,(0,o.Z)({},Va,io,{title:un,active:!!rn&&Ba===rn.key,pos:ka,data:pi.data,isStart:Ka,isEnd:no,motion:qe,motionNodes:Ba===ut?So:null,motionType:mo,onMotionStart:Yn,onMotionEnd:Pi,treeNodeRequiredProps:Ro,onMouseMove:function(){tr(null)}}))}))});_t.displayName="NodeList";var Xt=_t,ct=r(29873),Tr=r(97153),or=r(3596),$t=10,Un=function(X){(0,c.Z)(_e,X);var le=(0,D.Z)(_e);function _e(){var v;(0,g.Z)(this,_e);for(var Ee=arguments.length,$e=new Array(Ee),je=0;je2&&arguments[2]!==void 0?arguments[2]:!1,at=v.state,mt=at.dragChildrenKeys,dt=at.dropPosition,wt=at.dropTargetKey,Lt=at.dropTargetPos,qt=at.dropAllowed;if(qt){var qe=v.props.onDrop;if(v.setState({dragOverNodeKey:null}),v.cleanDragState(),wt!==null){var Qt=(0,B.Z)((0,B.Z)({},(0,e.H8)(wt,v.getTreeNodeRequiredProps())),{},{active:((ce=v.getActiveItem())===null||ce===void 0?void 0:ce.key)===wt,data:(0,or.Z)(v.state.keyEntities,wt).node}),ln=mt.indexOf(wt)!==-1;(0,te.ZP)(!ln,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var en=(0,ct.yx)(Lt),cn={event:re,node:(0,e.F)(Qt),dragNode:v.dragNode?(0,e.F)(v.dragNode.props):null,dragNodesKeys:[v.dragNode.props.eventKey].concat(mt),dropToGap:dt!==0,dropPosition:dt+Number(en[en.length-1])};Ze||qe==null||qe(cn),v.dragNode=null}}},v.cleanDragState=function(){var re=v.state.draggingNodeKey;re!==null&&v.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),v.dragStartMousePosition=null,v.currentMouseOverDroppableNodeKey=null},v.triggerExpandActionExpand=function(re,pe){var ce=v.state,Ze=ce.expandedKeys,at=ce.flattenNodes,mt=pe.expanded,dt=pe.key,wt=pe.isLeaf;if(!(wt||re.shiftKey||re.metaKey||re.ctrlKey)){var Lt=at.filter(function(qe){return qe.key===dt})[0],qt=(0,e.F)((0,B.Z)((0,B.Z)({},(0,e.H8)(dt,v.getTreeNodeRequiredProps())),{},{data:Lt.data}));v.setExpandedKeys(mt?(0,ct._5)(Ze,dt):(0,ct.L0)(Ze,dt)),v.onNodeExpand(re,qt)}},v.onNodeClick=function(re,pe){var ce=v.props,Ze=ce.onClick,at=ce.expandAction;at==="click"&&v.triggerExpandActionExpand(re,pe),Ze==null||Ze(re,pe)},v.onNodeDoubleClick=function(re,pe){var ce=v.props,Ze=ce.onDoubleClick,at=ce.expandAction;at==="doubleClick"&&v.triggerExpandActionExpand(re,pe),Ze==null||Ze(re,pe)},v.onNodeSelect=function(re,pe){var ce=v.state.selectedKeys,Ze=v.state,at=Ze.keyEntities,mt=Ze.fieldNames,dt=v.props,wt=dt.onSelect,Lt=dt.multiple,qt=pe.selected,qe=pe[mt.key],Qt=!qt;Qt?Lt?ce=(0,ct.L0)(ce,qe):ce=[qe]:ce=(0,ct._5)(ce,qe);var ln=ce.map(function(en){var cn=(0,or.Z)(at,en);return cn?cn.node:null}).filter(function(en){return en});v.setUncontrolledState({selectedKeys:ce}),wt==null||wt(ce,{event:"select",selected:Qt,node:pe,selectedNodes:ln,nativeEvent:re.nativeEvent})},v.onNodeCheck=function(re,pe,ce){var Ze=v.state,at=Ze.keyEntities,mt=Ze.checkedKeys,dt=Ze.halfCheckedKeys,wt=v.props,Lt=wt.checkStrictly,qt=wt.onCheck,qe=pe.key,Qt,ln={event:"check",node:pe,checked:ce,nativeEvent:re.nativeEvent};if(Lt){var en=ce?(0,ct.L0)(mt,qe):(0,ct._5)(mt,qe),cn=(0,ct._5)(dt,qe);Qt={checked:en,halfChecked:cn},ln.checkedNodes=en.map(function(bn){return(0,or.Z)(at,bn)}).filter(function(bn){return bn}).map(function(bn){return bn.node}),v.setUncontrolledState({checkedKeys:en})}else{var rn=(0,Tr.S)([].concat((0,T.Z)(mt),[qe]),!0,at),Qn=rn.checkedKeys,_n=rn.halfCheckedKeys;if(!ce){var Mn=new Set(Qn);Mn.delete(qe);var An=(0,Tr.S)(Array.from(Mn),{checked:!1,halfCheckedKeys:_n},at);Qn=An.checkedKeys,_n=An.halfCheckedKeys}Qt=Qn,ln.checkedNodes=[],ln.checkedNodesPositions=[],ln.halfCheckedKeys=_n,Qn.forEach(function(bn){var tr=(0,or.Z)(at,bn);if(tr){var Yn=tr.node,Fr=tr.pos;ln.checkedNodes.push(Yn),ln.checkedNodesPositions.push({node:Yn,pos:Fr})}}),v.setUncontrolledState({checkedKeys:Qn},!1,{halfCheckedKeys:_n})}qt==null||qt(Qt,ln)},v.onNodeLoad=function(re){var pe=re.key,ce=new Promise(function(Ze,at){v.setState(function(mt){var dt=mt.loadedKeys,wt=dt===void 0?[]:dt,Lt=mt.loadingKeys,qt=Lt===void 0?[]:Lt,qe=v.props,Qt=qe.loadData,ln=qe.onLoad;if(!Qt||wt.indexOf(pe)!==-1||qt.indexOf(pe)!==-1)return null;var en=Qt(re);return en.then(function(){var cn=v.state.loadedKeys,rn=(0,ct.L0)(cn,pe);ln==null||ln(rn,{event:"load",node:re}),v.setUncontrolledState({loadedKeys:rn}),v.setState(function(Qn){return{loadingKeys:(0,ct._5)(Qn.loadingKeys,pe)}}),Ze()}).catch(function(cn){if(v.setState(function(Qn){return{loadingKeys:(0,ct._5)(Qn.loadingKeys,pe)}}),v.loadingRetryTimes[pe]=(v.loadingRetryTimes[pe]||0)+1,v.loadingRetryTimes[pe]>=$t){var rn=v.state.loadedKeys;(0,te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),v.setUncontrolledState({loadedKeys:(0,ct.L0)(rn,pe)}),Ze()}at(cn)}),{loadingKeys:(0,ct.L0)(qt,pe)}})});return ce.catch(function(){}),ce},v.onNodeMouseEnter=function(re,pe){var ce=v.props.onMouseEnter;ce==null||ce({event:re,node:pe})},v.onNodeMouseLeave=function(re,pe){var ce=v.props.onMouseLeave;ce==null||ce({event:re,node:pe})},v.onNodeContextMenu=function(re,pe){var ce=v.props.onRightClick;ce&&(re.preventDefault(),ce({event:re,node:pe}))},v.onFocus=function(){var re=v.props.onFocus;v.setState({focused:!0});for(var pe=arguments.length,ce=new Array(pe),Ze=0;Ze1&&arguments[1]!==void 0?arguments[1]:!1,ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!v.destroyed){var Ze=!1,at=!0,mt={};Object.keys(re).forEach(function(dt){if(dt in v.props){at=!1;return}Ze=!0,mt[dt]=re[dt]}),Ze&&(!pe||at)&&v.setState((0,B.Z)((0,B.Z)({},mt),ce))}},v.scrollTo=function(re){v.listRef.current.scrollTo(re)},v}return(0,w.Z)(_e,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ee=this.props.activeKey;Ee!==void 0&&Ee!==this.state.activeKey&&(this.setState({activeKey:Ee}),Ee!==null&&this.scrollTo({key:Ee}))}},{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 Ee,$e=this.state,je=$e.focused,re=$e.flattenNodes,pe=$e.keyEntities,ce=$e.draggingNodeKey,Ze=$e.activeKey,at=$e.dropLevelOffset,mt=$e.dropContainerKey,dt=$e.dropTargetKey,wt=$e.dropPosition,Lt=$e.dragOverNodeKey,qt=$e.indent,qe=this.props,Qt=qe.prefixCls,ln=qe.className,en=qe.style,cn=qe.showLine,rn=qe.focusable,Qn=qe.tabIndex,_n=Qn===void 0?0:Qn,Mn=qe.selectable,An=qe.showIcon,bn=qe.icon,tr=qe.switcherIcon,Yn=qe.draggable,Fr=qe.checkable,lr=qe.checkStrictly,Ur=qe.disabled,ei=qe.motion,Yt=qe.loadData,Bt=qe.filterTreeNode,Vn=qe.height,Jn=qe.itemHeight,Di=qe.virtual,Xi=qe.titleRender,bi=qe.dropIndicatorRender,pa=qe.onContextMenu,La=qe.onScroll,Ta=qe.direction,Ma=qe.rootClassName,fa=qe.rootStyle,to=(0,ue.Z)(this.props,{aria:!0,data:!0}),ya;return Yn&&((0,z.Z)(Yn)==="object"?ya=Yn:typeof Yn=="function"?ya={nodeDraggable:Yn}:ya={}),f.createElement(P.k.Provider,{value:{prefixCls:Qt,selectable:Mn,showIcon:An,icon:bn,switcherIcon:tr,draggable:ya,draggingNodeKey:ce,checkable:Fr,checkStrictly:lr,disabled:Ur,keyEntities:pe,dropLevelOffset:at,dropContainerKey:mt,dropTargetKey:dt,dropPosition:wt,dragOverNodeKey:Lt,indent:qt,direction:Ta,dropIndicatorRender:bi,loadData:Yt,filterTreeNode:Bt,titleRender:Xi,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}},f.createElement("div",{role:"tree",className:de()(Qt,ln,Ma,(Ee={},(0,b.Z)(Ee,"".concat(Qt,"-show-line"),cn),(0,b.Z)(Ee,"".concat(Qt,"-focused"),je),(0,b.Z)(Ee,"".concat(Qt,"-active-focused"),Ze!==null),Ee)),style:fa},f.createElement(Xt,(0,o.Z)({ref:this.listRef,prefixCls:Qt,style:en,data:re,disabled:Ur,selectable:Mn,checkable:!!Fr,motion:ei,dragging:ce!==null,height:Vn,itemHeight:Jn,virtual:Di,focusable:rn,focused:je,tabIndex:_n,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:pa,onScroll:La},this.getTreeNodeRequiredProps(),to))))}}],[{key:"getDerivedStateFromProps",value:function(Ee,$e){var je=$e.prevProps,re={prevProps:Ee};function pe(rn){return!je&&rn in Ee||je&&je[rn]!==Ee[rn]}var ce,Ze=$e.fieldNames;if(pe("fieldNames")&&(Ze=(0,e.w$)(Ee.fieldNames),re.fieldNames=Ze),pe("treeData")?ce=Ee.treeData:pe("children")&&((0,te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ce=(0,e.zn)(Ee.children)),ce){re.treeData=ce;var at=(0,e.I8)(ce,{fieldNames:Ze});re.keyEntities=(0,B.Z)((0,b.Z)({},ut,ot),at.keyEntities)}var mt=re.keyEntities||$e.keyEntities;if(pe("expandedKeys")||je&&pe("autoExpandParent"))re.expandedKeys=Ee.autoExpandParent||!je&&Ee.defaultExpandParent?(0,ct.r7)(Ee.expandedKeys,mt):Ee.expandedKeys;else if(!je&&Ee.defaultExpandAll){var dt=(0,B.Z)({},mt);delete dt[ut],re.expandedKeys=Object.keys(dt).map(function(rn){return dt[rn].key})}else!je&&Ee.defaultExpandedKeys&&(re.expandedKeys=Ee.autoExpandParent||Ee.defaultExpandParent?(0,ct.r7)(Ee.defaultExpandedKeys,mt):Ee.defaultExpandedKeys);if(re.expandedKeys||delete re.expandedKeys,ce||re.expandedKeys){var wt=(0,e.oH)(ce||$e.treeData,re.expandedKeys||$e.expandedKeys,Ze);re.flattenNodes=wt}if(Ee.selectable&&(pe("selectedKeys")?re.selectedKeys=(0,ct.BT)(Ee.selectedKeys,Ee):!je&&Ee.defaultSelectedKeys&&(re.selectedKeys=(0,ct.BT)(Ee.defaultSelectedKeys,Ee))),Ee.checkable){var Lt;if(pe("checkedKeys")?Lt=(0,ct.E6)(Ee.checkedKeys)||{}:!je&&Ee.defaultCheckedKeys?Lt=(0,ct.E6)(Ee.defaultCheckedKeys)||{}:ce&&(Lt=(0,ct.E6)(Ee.checkedKeys)||{checkedKeys:$e.checkedKeys,halfCheckedKeys:$e.halfCheckedKeys}),Lt){var qt=Lt,qe=qt.checkedKeys,Qt=qe===void 0?[]:qe,ln=qt.halfCheckedKeys,en=ln===void 0?[]:ln;if(!Ee.checkStrictly){var cn=(0,Tr.S)(Qt,!0,mt);Qt=cn.checkedKeys,en=cn.halfCheckedKeys}re.checkedKeys=Qt,re.halfCheckedKeys=en}}return pe("loadedKeys")&&(re.loadedKeys=Ee.loadedKeys),re}}]),_e}(f.Component);Un.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},Un.TreeNode=De.Z;var Zn=Un,hr=Zn,pr=r(73148),mi=r(56747),zi={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"},Dr=zi,Vi=r(74643),Ni=function(le,_e){return f.createElement(Vi.Z,(0,o.Z)({},le,{ref:_e,icon:Dr}))},ea=f.forwardRef(Ni),Wi=r(53124),Xr=r(50881),yr=r(33603),Bn=r(32157);const Hi=4;function li(X){const{dropPosition:le,dropLevelOffset:_e,prefixCls:v,indent:Ee,direction:$e="ltr"}=X,je=$e==="ltr"?"left":"right",re=$e==="ltr"?"right":"left",pe={[je]:-_e*Ee+Hi,[re]:0};switch(le){case-1:pe.top=-3;break;case 1:pe.bottom=-3;break;default:pe.bottom=-3,pe[je]=Ee+Hi;break}return f.createElement("div",{style:pe,className:`${v}-drop-indicator`})}var gi=r(99184),ja=f.forwardRef((X,le)=>{const{getPrefixCls:_e,direction:v,virtual:Ee,tree:$e}=f.useContext(Wi.E_),{prefixCls:je,className:re,showIcon:pe=!1,showLine:ce,switcherIcon:Ze,blockNode:at=!1,children:mt,checkable:dt=!1,selectable:wt=!0,draggable:Lt,motion:qt,style:qe}=X,Qt=_e("tree",je),ln=_e(),en=qt!=null?qt:Object.assign(Object.assign({},(0,yr.Z)(ln)),{motionAppear:!1}),cn=Object.assign(Object.assign({},X),{checkable:dt,selectable:wt,showIcon:pe,motion:en,blockNode:at,showLine:!!ce,dropIndicatorRender:li}),[rn,Qn]=(0,Bn.ZP)(Qt),_n=f.useMemo(()=>{if(!Lt)return!1;let An={};switch(typeof Lt){case"function":An.nodeDraggable=Lt;break;case"object":An=Object.assign({},Lt);break;default:break}return An.icon!==!1&&(An.icon=An.icon||f.createElement(Xr.Z,null)),An},[Lt]),Mn=An=>f.createElement(gi.Z,{prefixCls:Qt,switcherIcon:Ze,treeNodeProps:An,showLine:ce});return rn(f.createElement(hr,Object.assign({itemHeight:20,ref:le,virtual:Ee},cn,{style:Object.assign(Object.assign({},$e==null?void 0:$e.style),qe),prefixCls:Qt,className:de()({[`${Qt}-icon-hide`]:!pe,[`${Qt}-block-node`]:at,[`${Qt}-unselectable`]:!wt,[`${Qt}-rtl`]:v==="rtl"},$e==null?void 0:$e.className,re,Qn),direction:v,checkable:dt&&f.createElement("span",{className:`${Qt}-checkbox-inner`}),selectable:wt,switcherIcon:Mn,draggable:_n}),mt))}),sr;(function(X){X[X.None=0]="None",X[X.Start=1]="Start",X[X.End=2]="End"})(sr||(sr={}));function Ia(X,le){function _e(v){const{key:Ee,children:$e}=v;le(Ee,v)!==!1&&Ia($e||[],le)}X.forEach(_e)}function eo(X){let{treeData:le,expandedKeys:_e,startKey:v,endKey:Ee}=X;const $e=[];let je=sr.None;if(v&&v===Ee)return[v];if(!v||!Ee)return[];function re(pe){return pe===v||pe===Ee}return Ia(le,pe=>{if(je===sr.End)return!1;if(re(pe)){if($e.push(pe),je===sr.None)je=sr.Start;else if(je===sr.Start)return je=sr.End,!1}else je===sr.Start&&$e.push(pe);return _e.includes(pe)}),$e}function ra(X,le){const _e=(0,T.Z)(le),v=[];return Ia(X,(Ee,$e)=>{const je=_e.indexOf(Ee);return je!==-1&&(v.push($e),_e.splice(je,1)),!!_e.length}),v}var Ga=function(X,le){var _e={};for(var v in X)Object.prototype.hasOwnProperty.call(X,v)&&le.indexOf(v)<0&&(_e[v]=X[v]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,v=Object.getOwnPropertySymbols(X);Ee{var{defaultExpandAll:_e,defaultExpandParent:v,defaultExpandedKeys:Ee}=X,$e=Ga(X,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const je=f.useRef(),re=f.useRef(),pe=()=>{const{keyEntities:_n}=(0,e.I8)(sa($e));let Mn;return _e?Mn=Object.keys(_n):v?Mn=(0,ct.r7)($e.expandedKeys||Ee||[],_n):Mn=$e.expandedKeys||Ee,Mn},[ce,Ze]=f.useState($e.selectedKeys||$e.defaultSelectedKeys||[]),[at,mt]=f.useState(()=>pe());f.useEffect(()=>{"selectedKeys"in $e&&Ze($e.selectedKeys)},[$e.selectedKeys]),f.useEffect(()=>{"expandedKeys"in $e&&mt($e.expandedKeys)},[$e.expandedKeys]);const dt=(_n,Mn)=>{var An;return"expandedKeys"in $e||mt(_n),(An=$e.onExpand)===null||An===void 0?void 0:An.call($e,_n,Mn)},wt=(_n,Mn)=>{var An;const{multiple:bn}=$e,{node:tr,nativeEvent:Yn}=Mn,{key:Fr=""}=tr,lr=sa($e),Ur=Object.assign(Object.assign({},Mn),{selected:!0}),ei=(Yn==null?void 0:Yn.ctrlKey)||(Yn==null?void 0:Yn.metaKey),Yt=Yn==null?void 0:Yn.shiftKey;let Bt;bn&&ei?(Bt=_n,je.current=Fr,re.current=Bt,Ur.selectedNodes=ra(lr,Bt)):bn&&Yt?(Bt=Array.from(new Set([].concat((0,T.Z)(re.current||[]),(0,T.Z)(eo({treeData:lr,expandedKeys:at,startKey:Fr,endKey:je.current}))))),Ur.selectedNodes=ra(lr,Bt)):(Bt=[Fr],je.current=Fr,re.current=Bt,Ur.selectedNodes=ra(lr,Bt)),(An=$e.onSelect)===null||An===void 0||An.call($e,Bt,Ur),"selectedKeys"in $e||Ze(Bt)},{getPrefixCls:Lt,direction:qt}=f.useContext(Wi.E_),{prefixCls:qe,className:Qt,showIcon:ln=!0,expandAction:en="click"}=$e,cn=Ga($e,["prefixCls","className","showIcon","expandAction"]),rn=Lt("tree",qe),Qn=de()(`${rn}-directory`,{[`${rn}-directory-rtl`]:qt==="rtl"},Qt);return f.createElement(ja,Object.assign({icon:ga,ref:le,blockNode:!0},cn,{showIcon:ln,expandAction:en,prefixCls:rn,className:Qn,expandedKeys:at,selectedKeys:ce,onSelect:wt,onExpand:dt}))};var la=f.forwardRef(Da);const Gi=ja;Gi.DirectoryTree=la,Gi.TreeNode=De.Z;var Pa=Gi},32157:function(Mt,Me,r){"use strict";r.d(Me,{TM:function(){return I},Yk:function(){return de}});var o=r(45930),b=r(63185),z=r(14747),B=r(33507),T=r(45503),g=r(67968);const w=new o.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),V=(Y,ue)=>({[`.${Y}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${ue.motionDurationSlow}`}}}),c=(Y,ue)=>({[`.${Y}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:ue.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ue.lineWidthBold}px solid ${ue.colorPrimary}`,borderRadius:"50%",content:'""'}}}),D=(Y,ue)=>{const{treeCls:te,treeNodeCls:f,treeNodePadding:P,titleHeight:K,nodeSelectedBg:k,nodeHoverBg:x}=ue,m=ue.paddingXS;return{[te]:Object.assign(Object.assign({},(0,z.Wf)(ue)),{background:ue.colorBgContainer,borderRadius:ue.borderRadius,transition:`background-color ${ue.motionDurationSlow}`,[`&${te}-rtl`]:{[`${te}-switcher`]:{"&_close":{[`${te}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${te}-active-focused)`]:Object.assign({},(0,z.oN)(ue)),[`${te}-list-holder-inner`]:{alignItems:"flex-start"},[`&${te}-block-node`]:{[`${te}-list-holder-inner`]:{alignItems:"stretch",[`${te}-node-content-wrapper`]:{flex:"auto"},[`${f}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:P,insetInlineStart:0,border:`1px solid ${ue.colorPrimary}`,opacity:0,animationName:w,animationDuration:ue.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${f}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${P}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${te}-node-content-wrapper`]:{color:ue.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${te}-node-content-wrapper`]:Object.assign({},(0,z.oN)(ue)),[`&:not(${f}-disabled).filter-node ${te}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${te}-draggable-icon`]:{flexShrink:0,width:K,lineHeight:`${K}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${ue.motionDurationSlow}`,[`${f}:hover &`]:{opacity:.45}},[`&${f}-disabled`]:{[`${te}-draggable-icon`]:{visibility:"hidden"}}}},[`${te}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:K}},[`${te}-draggable-icon`]:{visibility:"hidden"},[`${te}-switcher`]:Object.assign(Object.assign({},V(Y,ue)),{position:"relative",flex:"none",alignSelf:"stretch",width:K,margin:0,lineHeight:`${K}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${te}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:ue.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:K/2,bottom:-P,marginInlineStart:-1,borderInlineEnd:`1px solid ${ue.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:K/2*.8,height:K/2,borderBottom:`1px solid ${ue.colorBorder}`,content:'""'}}}),[`${te}-checkbox`]:{top:"initial",marginInlineEnd:m},[`${te}-node-content-wrapper, ${te}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:K,margin:0,padding:`0 ${ue.paddingXS/2}px`,color:"inherit",lineHeight:`${K}px`,background:"transparent",borderRadius:ue.borderRadius,cursor:"pointer",transition:`all ${ue.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:x},[`&${te}-node-selected`]:{backgroundColor:k},[`${te}-iconEle`]:{display:"inline-block",width:K,height:K,lineHeight:`${K}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${te}-unselectable ${te}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${te}-node-content-wrapper`]:Object.assign({lineHeight:`${K}px`,userSelect:"none"},c(Y,ue)),[`${f}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${ue.colorPrimary}`}},"&-show-line":{[`${te}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:K/2,bottom:-P,borderInlineEnd:`1px solid ${ue.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${te}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${f}-leaf-last`]:{[`${te}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${K/2}px !important`}}}}})}},ae=Y=>{const{treeCls:ue,treeNodeCls:te,treeNodePadding:f,directoryNodeSelectedBg:P,directoryNodeSelectedColor:K}=Y;return{[`${ue}${ue}-directory`]:{[te]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:f,insetInlineStart:0,transition:`background-color ${Y.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Y.controlItemBgHover}},"> *":{zIndex:1},[`${ue}-switcher`]:{transition:`color ${Y.motionDurationMid}`},[`${ue}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${ue}-node-selected`]:{color:K,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:P},[`${ue}-switcher`]:{color:K},[`${ue}-node-content-wrapper`]:{color:K,background:"transparent"}}}}}},de=(Y,ue)=>{const te=`.${Y}`,f=`${te}-treenode`,P=ue.paddingXS/2,K=(0,T.TS)(ue,{treeCls:te,treeNodeCls:f,treeNodePadding:P});return[D(Y,K),ae(K)]},I=Y=>{const{controlHeightSM:ue}=Y;return{titleHeight:ue,nodeHoverBg:Y.controlItemBgHover,nodeSelectedBg:Y.controlItemBgActive}};Me.ZP=(0,g.Z)("Tree",(Y,ue)=>{let{prefixCls:te}=ue;return[{[Y.componentCls]:(0,b.C2)(`${te}-checkbox`,Y)},de(te,Y),(0,B.Z)(Y)]},Y=>{const{colorTextLightSolid:ue,colorPrimary:te}=Y;return Object.assign(Object.assign({},I(Y)),{directoryNodeSelectedColor:ue,directoryNodeSelectedBg:te})})},99184:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return te}});var o=r(87462),b=r(67294),z={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"},B=z,T=r(74643),g=function(P,K){return b.createElement(T.Z,(0,o.Z)({},P,{ref:K,icon:B}))},w=b.forwardRef(g),V=r(73148),c=r(3407),D=r(34182),ae=r(74664),de=r(94184),I=r.n(de),Y=r(96159),te=f=>{const{prefixCls:P,switcherIcon:K,treeNodeProps:k,showLine:x}=f,{isLeaf:m,expanded:R,loading:j}=k;if(j)return b.createElement(c.Z,{className:`${P}-switcher-loading-icon`});let H;if(x&&typeof x=="object"&&(H=x.showLeafIcon),m){if(!x)return null;if(typeof H!="boolean"&&H){const Ne=typeof H=="function"?H(k):H,U=`${P}-switcher-line-custom-icon`;return(0,Y.l$)(Ne)?(0,Y.Tm)(Ne,{className:I()(Ne.props.className||"",U)}):Ne}return H?b.createElement(V.Z,{className:`${P}-switcher-line-icon`}):b.createElement("span",{className:`${P}-switcher-leaf-line`})}const ve=`${P}-switcher-icon`,Re=typeof K=="function"?K(k):K;return(0,Y.l$)(Re)?(0,Y.Tm)(Re,{className:I()(Re.props.className||"",ve)}):Re!==void 0?Re:x?R?b.createElement(D.Z,{className:`${P}-switcher-line-icon`}):b.createElement(ae.Z,{className:`${P}-switcher-line-icon`}):b.createElement(w,{className:ve})}},62661:function(Mt,Me){"use strict";var r;var o=Symbol.for("react.element"),b=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),w=Symbol.for("react.context"),V=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),ue;ue=Symbol.for("react.module.reference");function te(f){if(typeof f=="object"&&f!==null){var P=f.$$typeof;switch(P){case o:switch(f=f.type,f){case z:case T:case B:case D:case ae:return f;default:switch(f=f&&f.$$typeof,f){case V:case w:case c:case I:case de:case g:return f;default:return P}}case b:return P}}}r=w,r=g,r=o,r=c,r=z,r=I,r=de,r=b,r=T,r=B,r=D,r=ae,r=function(){return!1},r=function(){return!1},r=function(f){return te(f)===w},r=function(f){return te(f)===g},r=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===o},r=function(f){return te(f)===c},r=function(f){return te(f)===z},r=function(f){return te(f)===I},Me.isMemo=function(f){return te(f)===de},r=function(f){return te(f)===b},r=function(f){return te(f)===T},r=function(f){return te(f)===B},r=function(f){return te(f)===D},r=function(f){return te(f)===ae},r=function(f){return typeof f=="string"||typeof f=="function"||f===z||f===T||f===B||f===D||f===ae||f===Y||typeof f=="object"&&f!==null&&(f.$$typeof===I||f.$$typeof===de||f.$$typeof===g||f.$$typeof===w||f.$$typeof===c||f.$$typeof===ue||f.getModuleId!==void 0)},r=te},95845:function(Mt,Me,r){"use strict";Mt.exports=r(62661)},72665:function(Mt,Me){"use strict";var r;var o=typeof Symbol=="function"&&Symbol.for,b=o?Symbol.for("react.element"):60103,z=o?Symbol.for("react.portal"):60106,B=o?Symbol.for("react.fragment"):60107,T=o?Symbol.for("react.strict_mode"):60108,g=o?Symbol.for("react.profiler"):60114,w=o?Symbol.for("react.provider"):60109,V=o?Symbol.for("react.context"):60110,c=o?Symbol.for("react.async_mode"):60111,D=o?Symbol.for("react.concurrent_mode"):60111,ae=o?Symbol.for("react.forward_ref"):60112,de=o?Symbol.for("react.suspense"):60113,I=o?Symbol.for("react.suspense_list"):60120,Y=o?Symbol.for("react.memo"):60115,ue=o?Symbol.for("react.lazy"):60116,te=o?Symbol.for("react.block"):60121,f=o?Symbol.for("react.fundamental"):60117,P=o?Symbol.for("react.responder"):60118,K=o?Symbol.for("react.scope"):60119;function k(m){if(typeof m=="object"&&m!==null){var R=m.$$typeof;switch(R){case b:switch(m=m.type,m){case c:case D:case B:case g:case T:case de:return m;default:switch(m=m&&m.$$typeof,m){case V:case ae:case ue:case Y:case w:return m;default:return R}}case z:return R}}}function x(m){return k(m)===D}r=c,r=D,r=V,r=w,r=b,r=ae,r=B,r=ue,r=Y,r=z,r=g,r=T,r=de,r=function(m){return x(m)||k(m)===c},r=x,r=function(m){return k(m)===V},r=function(m){return k(m)===w},r=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===b},r=function(m){return k(m)===ae},r=function(m){return k(m)===B},r=function(m){return k(m)===ue},Me.isMemo=function(m){return k(m)===Y},r=function(m){return k(m)===z},r=function(m){return k(m)===g},r=function(m){return k(m)===T},r=function(m){return k(m)===de},r=function(m){return typeof m=="string"||typeof m=="function"||m===B||m===D||m===g||m===T||m===de||m===I||typeof m=="object"&&m!==null&&(m.$$typeof===ue||m.$$typeof===Y||m.$$typeof===w||m.$$typeof===V||m.$$typeof===ae||m.$$typeof===f||m.$$typeof===P||m.$$typeof===K||m.$$typeof===te)},r=k},12060:function(Mt,Me,r){"use strict";Mt.exports=r(72665)},56261:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return H}});var o=r(87462),b=r(4942),z=r(45987),B=r(1413),T=r(15671),g=r(43144),w=r(97326),V=r(60136),c=r(51630),D=r(94184),ae=r.n(D),de=r(34952),I=r(67294),Y=r(69610),ue=function(Re){for(var Ne=Re.prefixCls,U=Re.level,Xe=Re.isStart,oe=Re.isEnd,be="".concat(Ne,"-indent-unit"),F=[],N=0;N=0&&R.splice(j,1),R}function D(x,m){var R=(x||[]).slice();return R.indexOf(m)===-1&&R.push(m),R}function ae(x){return x.split("-")}function de(x,m){var R=[],j=(0,g.Z)(m,x);function H(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ve.forEach(function(Re){var Ne=Re.key,U=Re.children;R.push(Ne),H(U)})}return H(j.children),R}function I(x){if(x.parent){var m=ae(x.pos);return Number(m[m.length-1])===x.parent.children.length-1}return!1}function Y(x){var m=ae(x.pos);return Number(m[m.length-1])===0}function ue(x,m,R,j,H,ve,Re,Ne,U,Xe){var oe,be=x.clientX,F=x.clientY,N=x.target.getBoundingClientRect(),Qe=N.top,et=N.height,Ke=(Xe==="rtl"?-1:1)*(((H==null?void 0:H.x)||0)-be),fe=(Ke-12)/j,we=(0,g.Z)(Ne,R.props.eventKey);if(F-1.5?ve({dragNode:Wt,dropNode:zt,dropPosition:1})?Pt=1:fn=!1:ve({dragNode:Wt,dropNode:zt,dropPosition:0})?Pt=0:ve({dragNode:Wt,dropNode:zt,dropPosition:1})?Pt=1:fn=!1:ve({dragNode:Wt,dropNode:zt,dropPosition:1})?Pt=1:fn=!1,{dropPosition:Pt,dropLevelOffset:mn,dropTargetKey:we.key,dropTargetPos:we.pos,dragOverNodeKey:vn,dropContainerKey:Pt===0?null:((oe=we.parent)===null||oe===void 0?void 0:oe.key)||null,dropAllowed:fn}}function te(x,m){if(x){var R=m.multiple;return R?x.slice():x.length?[x[0]]:x}}var f=function(m){return m};function P(x,m){if(!x)return[];var R=m||{},j=R.processProps,H=j===void 0?f:j,ve=Array.isArray(x)?x:[x];return ve.map(function(Re){var Ne=Re.children,U=_objectWithoutProperties(Re,V),Xe=P(Ne,m);return React.createElement(TreeNode,_extends({key:U.key},H(U)),Xe)})}function K(x){if(!x)return null;var m;if(Array.isArray(x))m={checkedKeys:x,halfCheckedKeys:void 0};else if((0,b.Z)(x)==="object")m={checkedKeys:x.checked||void 0,halfCheckedKeys:x.halfChecked||void 0};else return(0,z.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return m}function k(x,m){var R=new Set;function j(H){if(!R.has(H)){var ve=(0,g.Z)(m,H);if(ve){R.add(H);var Re=ve.parent,Ne=ve.node;Ne.disabled||Re&&j(Re.key)}}}return(x||[]).forEach(function(H){j(H)}),(0,o.Z)(R)}},97153:function(Mt,Me,r){"use strict";r.d(Me,{S:function(){return w}});var o=r(72978),b=r(3596);function z(V,c){var D=new Set;return V.forEach(function(ae){c.has(ae)||D.add(ae)}),D}function B(V){var c=V||{},D=c.disabled,ae=c.disableCheckbox,de=c.checkable;return!!(D||ae)||de===!1}function T(V,c,D,ae){for(var de=new Set(V),I=new Set,Y=0;Y<=D;Y+=1){var ue=c.get(Y)||new Set;ue.forEach(function(K){var k=K.key,x=K.node,m=K.children,R=m===void 0?[]:m;de.has(k)&&!ae(x)&&R.filter(function(j){return!ae(j.node)}).forEach(function(j){de.add(j.key)})})}for(var te=new Set,f=D;f>=0;f-=1){var P=c.get(f)||new Set;P.forEach(function(K){var k=K.parent,x=K.node;if(!(ae(x)||!K.parent||te.has(K.parent.key))){if(ae(K.parent.node)){te.add(k.key);return}var m=!0,R=!1;(k.children||[]).filter(function(j){return!ae(j.node)}).forEach(function(j){var H=j.key,ve=de.has(H);m&&!ve&&(m=!1),!R&&(ve||I.has(H))&&(R=!0)}),m&&de.add(k.key),R&&I.add(k.key),te.add(k.key)}})}return{checkedKeys:Array.from(de),halfCheckedKeys:Array.from(z(I,de))}}function g(V,c,D,ae,de){for(var I=new Set(V),Y=new Set(c),ue=0;ue<=ae;ue+=1){var te=D.get(ue)||new Set;te.forEach(function(k){var x=k.key,m=k.node,R=k.children,j=R===void 0?[]:R;!I.has(x)&&!Y.has(x)&&!de(m)&&j.filter(function(H){return!de(H.node)}).forEach(function(H){I.delete(H.key)})})}Y=new Set;for(var f=new Set,P=ae;P>=0;P-=1){var K=D.get(P)||new Set;K.forEach(function(k){var x=k.parent,m=k.node;if(!(de(m)||!k.parent||f.has(k.parent.key))){if(de(k.parent.node)){f.add(x.key);return}var R=!0,j=!1;(x.children||[]).filter(function(H){return!de(H.node)}).forEach(function(H){var ve=H.key,Re=I.has(ve);R&&!Re&&(R=!1),!j&&(Re||Y.has(ve))&&(j=!0)}),R||I.delete(x.key),j&&Y.add(x.key),f.add(x.key)}})}return{checkedKeys:Array.from(I),halfCheckedKeys:Array.from(z(Y,I))}}function w(V,c,D,ae){var de=[],I;ae?I=ae:I=B;var Y=new Set(V.filter(function(P){var K=!!(0,b.Z)(D,P);return K||de.push(P),K})),ue=new Map,te=0;Object.keys(D).forEach(function(P){var K=D[P],k=K.level,x=ue.get(k);x||(x=new Set,ue.set(k,x)),x.add(K),te=Math.max(te,k)}),(0,o.ZP)(!de.length,"Tree missing follow keys: ".concat(de.slice(0,100).map(function(P){return"'".concat(P,"'")}).join(", ")));var f;return c===!0?f=T(Y,ue,te,I):f=g(Y,c.halfCheckedKeys,ue,te,I),f}},3596:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return o}});function o(b,z){return b[z]}},83898:function(Mt,Me,r){"use strict";r.d(Me,{I8:function(){return k},F:function(){return m},zn:function(){return f},w$:function(){return ue},oH:function(){return P},km:function(){return Y},H8:function(){return x}});var o=r(71002),b=r(74902),z=r(1413),B=r(45987),T=r(67294),g=r(28580);function w(R){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},H=[];return T.Children.forEach(R,function(ve){ve==null&&!j.keepEmpty||(Array.isArray(ve)?H=H.concat(w(ve)):(0,g.isFragment)(ve)&&ve.props?H=H.concat(w(ve.props.children,j)):H.push(ve))}),H}function V(R,j){var H=(0,z.Z)({},R);return Array.isArray(j)&&j.forEach(function(ve){delete H[ve]}),H}var c=r(72978),D=r(3596),ae=["children"];function de(R,j){return"".concat(R,"-").concat(j)}function I(R){return R&&R.type&&R.type.isTreeNode}function Y(R,j){return R!=null?R:j}function ue(R){var j=R||{},H=j.title,ve=j._title,Re=j.key,Ne=j.children,U=H||"title";return{title:U,_title:ve||[U],key:Re||"key",children:Ne||"children"}}function te(R,j){var H=new Map;function ve(Re){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Re||[]).forEach(function(U){var Xe=U[j.key],oe=U[j.children];warning(Xe!=null,"Tree node must have a certain key: [".concat(Ne).concat(Xe,"]"));var be=String(Xe);warning(!H.has(be)||Xe===null||Xe===void 0,"Same 'key' exist in the Tree: ".concat(be)),H.set(be,!0),ve(oe,"".concat(Ne).concat(be," > "))})}ve(R)}function f(R){function j(H){var ve=w(H);return ve.map(function(Re){if(!I(Re))return(0,c.ZP)(!Re,"Tree/TreeNode can only accept TreeNode as children."),null;var Ne=Re.key,U=Re.props,Xe=U.children,oe=(0,B.Z)(U,ae),be=(0,z.Z)({key:Ne},oe),F=j(Xe);return F.length&&(be.children=F),be}).filter(function(Re){return Re})}return j(R)}function P(R,j,H){var ve=ue(H),Re=ve._title,Ne=ve.key,U=ve.children,Xe=new Set(j===!0?[]:j),oe=[];function be(F){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return F.map(function(Qe,et){for(var Ke=de(N?N.pos:"0",et),fe=Y(Qe[Ne],Ke),we,Be=0;Be1&&arguments[1]!==void 0?arguments[1]:{},H=j.initWrapper,ve=j.processEntity,Re=j.onProcessFinished,Ne=j.externalGetKey,U=j.childrenPropName,Xe=j.fieldNames,oe=arguments.length>2?arguments[2]:void 0,be=Ne||oe,F={},N={},Qe={posEntities:F,keyEntities:N};return H&&(Qe=H(Qe)||Qe),K(R,function(et){var Ke=et.node,fe=et.index,we=et.pos,Be=et.key,Te=et.parentPos,Ve=et.level,nn=et.nodes,yt={node:Ke,nodes:nn,index:fe,key:Be,pos:we,level:Ve},vn=Y(Be,we);F[we]=yt,N[vn]=yt,yt.parent=F[Te],yt.parent&&(yt.parent.children=yt.parent.children||[],yt.parent.children.push(yt)),ve&&ve(yt,Qe)},{externalGetKey:be,childrenPropName:U,fieldNames:Xe}),Re&&Re(Qe),Qe}function x(R,j){var H=j.expandedKeys,ve=j.selectedKeys,Re=j.loadedKeys,Ne=j.loadingKeys,U=j.checkedKeys,Xe=j.halfCheckedKeys,oe=j.dragOverNodeKey,be=j.dropPosition,F=j.keyEntities,N=(0,D.Z)(F,R),Qe={eventKey:R,expanded:H.indexOf(R)!==-1,selected:ve.indexOf(R)!==-1,loaded:Re.indexOf(R)!==-1,loading:Ne.indexOf(R)!==-1,checked:U.indexOf(R)!==-1,halfChecked:Xe.indexOf(R)!==-1,pos:String(N?N.pos:""),dragOver:oe===R&&be===0,dragOverGapTop:oe===R&&be===-1,dragOverGapBottom:oe===R&&be===1};return Qe}function m(R){var j=R.data,H=R.expanded,ve=R.selected,Re=R.checked,Ne=R.loaded,U=R.loading,Xe=R.halfChecked,oe=R.dragOver,be=R.dragOverGapTop,F=R.dragOverGapBottom,N=R.pos,Qe=R.active,et=R.eventKey,Ke=(0,z.Z)((0,z.Z)({},j),{},{expanded:H,selected:ve,checked:Re,loaded:Ne,loading:U,halfChecked:Xe,dragOver:oe,dragOverGapTop:be,dragOverGapBottom:F,pos:N,active:Qe,key:et});return"props"in Ke||Object.defineProperty(Ke,"props",{get:function(){return(0,c.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),R}}),Ke}},34952:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return V}});var o=r(1413),b=`accept acceptCharset accessKey action allowFullScreen allowTransparency alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge charSet checked classID className colSpan cols content contentEditable contextMenu controls coords crossOrigin data dateTime default defer dir disabled download draggable encType form formAction formEncType formMethod formNoValidate formTarget frameBorder headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media mediaGroup method min minLength multiple muted name noValidate nonce open optimum pattern placeholder poster preload radioGroup readOnly rel required reversed role rowSpan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellCheck src srcDoc srcLang srcSet start step style summary tabIndex target title type useMap value width wmode wrap`,z=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,B="".concat(b," ").concat(z).split(/[\s\n]+/),T="aria-",g="data-";function w(c,D){return c.indexOf(D)===0}function V(c){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ae;D===!1?ae={aria:!0,data:!0,attr:!0}:D===!0?ae={aria:!0}:ae=(0,o.Z)({},D);var de={};return Object.keys(c).forEach(function(I){(ae.aria&&(I==="role"||w(I,T))||ae.data&&w(I,g)||ae.attr&&B.includes(I))&&(de[I]=c[I])}),de}},72978:function(Mt,Me,r){"use strict";var o={};function b(V,c){}function z(V,c){}function B(){o={}}function T(V,c,D){!c&&!o[D]&&(V(!1,D),o[D]=!0)}function g(V,c){T(b,V,c)}function w(V,c){T(z,V,c)}Me.ZP=g},81533:function(Mt,Me){"use strict";var r;var o=typeof Symbol=="function"&&Symbol.for,b=o?Symbol.for("react.element"):60103,z=o?Symbol.for("react.portal"):60106,B=o?Symbol.for("react.fragment"):60107,T=o?Symbol.for("react.strict_mode"):60108,g=o?Symbol.for("react.profiler"):60114,w=o?Symbol.for("react.provider"):60109,V=o?Symbol.for("react.context"):60110,c=o?Symbol.for("react.async_mode"):60111,D=o?Symbol.for("react.concurrent_mode"):60111,ae=o?Symbol.for("react.forward_ref"):60112,de=o?Symbol.for("react.suspense"):60113,I=o?Symbol.for("react.suspense_list"):60120,Y=o?Symbol.for("react.memo"):60115,ue=o?Symbol.for("react.lazy"):60116,te=o?Symbol.for("react.block"):60121,f=o?Symbol.for("react.fundamental"):60117,P=o?Symbol.for("react.responder"):60118,K=o?Symbol.for("react.scope"):60119;function k(m){if(typeof m=="object"&&m!==null){var R=m.$$typeof;switch(R){case b:switch(m=m.type,m){case c:case D:case B:case g:case T:case de:return m;default:switch(m=m&&m.$$typeof,m){case V:case ae:case ue:case Y:case w:return m;default:return R}}case z:return R}}}function x(m){return k(m)===D}r=c,r=D,r=V,r=w,r=b,r=ae,r=B,r=ue,r=Y,r=z,r=g,r=T,r=de,r=function(m){return x(m)||k(m)===c},r=x,r=function(m){return k(m)===V},r=function(m){return k(m)===w},r=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===b},r=function(m){return k(m)===ae},Me.isFragment=function(m){return k(m)===B},r=function(m){return k(m)===ue},Me.isMemo=function(m){return k(m)===Y},r=function(m){return k(m)===z},r=function(m){return k(m)===g},r=function(m){return k(m)===T},r=function(m){return k(m)===de},r=function(m){return typeof m=="string"||typeof m=="function"||m===B||m===D||m===g||m===T||m===de||m===I||typeof m=="object"&&m!==null&&(m.$$typeof===ue||m.$$typeof===Y||m.$$typeof===w||m.$$typeof===V||m.$$typeof===ae||m.$$typeof===f||m.$$typeof===P||m.$$typeof===K||m.$$typeof===te)},r=k},28580:function(Mt,Me,r){"use strict";Mt.exports=r(81533)},82702:function(Mt,Me,r){var o=r(34155);(function(b,z){Mt.exports=z()})(this,function(){"use strict";function b(A){var G=typeof A;return A!==null&&(G==="object"||G==="function")}function z(A){return typeof A=="function"}var B=void 0;Array.isArray?B=Array.isArray:B=function(A){return Object.prototype.toString.call(A)==="[object Array]"};var T=B,g=0,w=void 0,V=void 0,c=function(G,Q){m[g]=G,m[g+1]=Q,g+=2,g===2&&(V?V(R):H())};function D(A){V=A}function ae(A){c=A}var de=typeof window!="undefined"?window:void 0,I=de||{},Y=I.MutationObserver||I.WebKitMutationObserver,ue=typeof self=="undefined"&&typeof o!="undefined"&&{}.toString.call(o)==="[object process]",te=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function f(){return function(){return o.nextTick(R)}}function P(){return typeof w!="undefined"?function(){w(R)}:x()}function K(){var A=0,G=new Y(R),Q=document.createTextNode("");return G.observe(Q,{characterData:!0}),function(){Q.data=A=++A%2}}function k(){var A=new MessageChannel;return A.port1.onmessage=R,function(){return A.port2.postMessage(0)}}function x(){var A=setTimeout;return function(){return A(R,1)}}var m=new Array(1e3);function R(){for(var A=0;A0&&(H=x[0]),H instanceof Error)throw H;var ve=new Error("Unhandled error."+(H?" ("+H.message+")":""));throw ve.context=H,ve}var Re=j[k];if(Re===void 0)return!1;if(typeof Re=="function")r(Re,this,x);else for(var Ne=Re.length,U=I(Re,Ne),m=0;m0&&H.length>R&&!H.warned){H.warned=!0;var ve=new Error("Possible EventEmitter memory leak detected. "+H.length+" "+String(k)+" listeners added. Use emitter.setMaxListeners() to increase limit");ve.name="MaxListenersExceededWarning",ve.emitter=K,ve.type=k,ve.count=H.length,b(ve)}return K}B.prototype.addListener=function(k,x){return V(this,k,x,!1)},B.prototype.on=B.prototype.addListener,B.prototype.prependListener=function(k,x){return V(this,k,x,!0)};function c(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function D(K,k,x){var m={fired:!1,wrapFn:void 0,target:K,type:k,listener:x},R=c.bind(m);return R.listener=x,m.wrapFn=R,R}B.prototype.once=function(k,x){return g(x),this.on(k,D(this,k,x)),this},B.prototype.prependOnceListener=function(k,x){return g(x),this.prependListener(k,D(this,k,x)),this},B.prototype.removeListener=function(k,x){var m,R,j,H,ve;if(g(x),R=this._events,R===void 0)return this;if(m=R[k],m===void 0)return this;if(m===x||m.listener===x)--this._eventsCount===0?this._events=Object.create(null):(delete R[k],R.removeListener&&this.emit("removeListener",k,m.listener||x));else if(typeof m!="function"){for(j=-1,H=m.length-1;H>=0;H--)if(m[H]===x||m[H].listener===x){ve=m[H].listener,j=H;break}if(j<0)return this;j===0?m.shift():Y(m,j),m.length===1&&(R[k]=m[0]),R.removeListener!==void 0&&this.emit("removeListener",k,ve||x)}return this},B.prototype.off=B.prototype.removeListener,B.prototype.removeAllListeners=function(k){var x,m,R;if(m=this._events,m===void 0)return this;if(m.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):m[k]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete m[k]),this;if(arguments.length===0){var j=Object.keys(m),H;for(R=0;R=0;R--)this.removeListener(k,x[R]);return this};function ae(K,k,x){var m=K._events;if(m===void 0)return[];var R=m[k];return R===void 0?[]:typeof R=="function"?x?[R.listener||R]:[R]:x?ue(R):I(R,R.length)}B.prototype.listeners=function(k){return ae(this,k,!0)},B.prototype.rawListeners=function(k){return ae(this,k,!1)},B.listenerCount=function(K,k){return typeof K.listenerCount=="function"?K.listenerCount(k):de.call(K,k)},B.prototype.listenerCount=de;function de(K){var k=this._events;if(k!==void 0){var x=k[K];if(typeof x=="function")return 1;if(x!==void 0)return x.length}return 0}B.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]};function I(K,k){for(var x=new Array(k),m=0;m>>6)+V(128|be&63):V(224|be>>>12&15)+V(128|be>>>6&63)+V(128|be&63)}else{var be=65536+(oe.charCodeAt(0)-55296)*1024+(oe.charCodeAt(1)-56320);return V(240|be>>>18&7)+V(128|be>>>12&63)+V(128|be>>>6&63)+V(128|be&63)}},D=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ae=function(oe){return oe.replace(D,c)},de=function(oe){var be=[0,2,1][oe.length%3],F=oe.charCodeAt(0)<<16|(oe.length>1?oe.charCodeAt(1):0)<<8|(oe.length>2?oe.charCodeAt(2):0),N=[g.charAt(F>>>18),g.charAt(F>>>12&63),be>=2?"=":g.charAt(F>>>6&63),be>=1?"=":g.charAt(F&63)];return N.join("")},I=z.btoa&&typeof z.btoa=="function"?function(oe){return z.btoa(oe)}:function(oe){if(oe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return oe.replace(/[\s\S]{1,3}/g,de)},Y=function(oe){return I(ae(String(oe)))},ue=function(oe){return oe.replace(/[+\/]/g,function(be){return be=="+"?"-":"_"}).replace(/=/g,"")},te=function(oe,be){return be?ue(Y(oe)):Y(oe)},f=function(oe){return te(oe,!0)},P;z.Uint8Array&&(P=function(oe,be){for(var F="",N=0,Qe=oe.length;N>>18)+g.charAt(we>>>12&63)+(typeof Ke!="undefined"?g.charAt(we>>>6&63):"=")+(typeof fe!="undefined"?g.charAt(we&63):"=")}return be?ue(F):F});var K=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,k=function(oe){switch(oe.length){case 4:var be=(7&oe.charCodeAt(0))<<18|(63&oe.charCodeAt(1))<<12|(63&oe.charCodeAt(2))<<6|63&oe.charCodeAt(3),F=be-65536;return V((F>>>10)+55296)+V((F&1023)+56320);case 3:return V((15&oe.charCodeAt(0))<<12|(63&oe.charCodeAt(1))<<6|63&oe.charCodeAt(2));default:return V((31&oe.charCodeAt(0))<<6|63&oe.charCodeAt(1))}},x=function(oe){return oe.replace(K,k)},m=function(oe){var be=oe.length,F=be%4,N=(be>0?w[oe.charAt(0)]<<18:0)|(be>1?w[oe.charAt(1)]<<12:0)|(be>2?w[oe.charAt(2)]<<6:0)|(be>3?w[oe.charAt(3)]:0),Qe=[V(N>>>16),V(N>>>8&255),V(N&255)];return Qe.length-=[0,0,2,1][F],Qe.join("")},R=z.atob&&typeof z.atob=="function"?function(oe){return z.atob(oe)}:function(oe){return oe.replace(/\S{1,4}/g,m)},j=function(oe){return R(String(oe).replace(/[^A-Za-z0-9\+\/]/g,""))},H=function(oe){return x(R(oe))},ve=function(oe){return String(oe).replace(/[-_]/g,function(be){return be=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Re=function(oe){return H(ve(oe))},Ne;z.Uint8Array&&(Ne=function(oe){return Uint8Array.from(j(ve(oe)),function(be){return be.charCodeAt(0)})});var U=function(){var oe=z.Base64;return z.Base64=B,oe};if(z.Base64={VERSION:T,atob:j,btoa:I,fromBase64:Re,toBase64:te,utob:ae,encode:te,encodeURI:f,btou:x,decode:Re,noConflict:U,fromUint8Array:P,toUint8Array:Ne},typeof Object.defineProperty=="function"){var Xe=function(oe){return{value:oe,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Xe(function(){return Re(this)})),Object.defineProperty(String.prototype,"toBase64",Xe(function(oe){return te(this,oe)})),Object.defineProperty(String.prototype,"toBase64URI",Xe(function(){return te(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),Mt.exports?Mt.exports.Base64=z.Base64:(o=[],b=function(){return z.Base64}.apply(Me,o),b!==void 0&&(Mt.exports=b)),{Base64:z.Base64}})},52073:function(Mt,Me,r){"use strict";r.d(Me,{iz:function(){return Kn},ck:function(){return Zn},BW:function(){return wr},sN:function(){return Zn},Wd:function(){return di},ZP:function(){return Sa},Xl:function(){return J}});var o=r(87462),b=r(4942),z=r(1413),B=r(74902),T=r(97685),g=r(45987),w=r(94184),V=r.n(w),c=r(67294),D=r.t(c,2),ae=r(48555);function de(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var I=de()?c.useLayoutEffect:c.useEffect,Y=function(s,d){var S=c.useRef(!0);I(function(){return s(S.current)},d),I(function(){return S.current=!1,function(){S.current=!0}},[])},ue=function(s,d){Y(function(S){if(!S)return s()},d)},te=Y,f=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],P=void 0;function K(i,s){var d=i.prefixCls,S=i.invalidate,L=i.item,q=i.renderItem,ee=i.responsive,ze=i.responsiveDisabled,Fe=i.registerSize,Ge=i.itemKey,xt=i.className,ft=i.style,vt=i.children,Pe=i.display,it=i.order,Kt=i.component,Ft=Kt===void 0?"div":Kt,dn=(0,g.Z)(i,f),Ut=ee&&!Pe;function Dt(hn){Fe(Ge,hn)}c.useEffect(function(){return function(){Dt(null)}},[]);var rt=q&&L!==P?q(L):vt,tn;S||(tn={opacity:Ut?0:1,height:Ut?0:P,overflowY:Ut?"hidden":P,order:ee?it:P,pointerEvents:Ut?"none":P,position:Ut?"absolute":P});var Sn={};Ut&&(Sn["aria-hidden"]=!0);var Cn=c.createElement(Ft,(0,o.Z)({className:V()(!S&&d,xt),style:(0,z.Z)((0,z.Z)({},tn),ft)},Sn,dn,{ref:s}),rt);return ee&&(Cn=c.createElement(ae.Z,{onResize:function(Mr){var En=Mr.offsetWidth;Dt(En)},disabled:ze},Cn)),Cn}var k=c.forwardRef(K);k.displayName="Item";var x=k;function m(i){var s=c.useRef();s.current=i;var d=c.useCallback(function(){for(var S,L=arguments.length,q=new Array(L),ee=0;ee1&&arguments[1]!==void 0?arguments[1]:1;ve+=1;var S=ve;function L(q){if(q===0)Ne(S),s();else{var ee=j(function(){L(q-1)});Re.set(S,ee)}}return L(d),S};U.cancel=function(i){var s=Re.get(i);return Ne(s),H(s)};var Xe=U;function oe(i){if(typeof MessageChannel=="undefined")Xe(i);else{var s=new MessageChannel;s.port1.onmessage=function(){return i()},s.port2.postMessage(void 0)}}function be(){var i=c.useRef(null),s=function(S){i.current||(i.current=[],oe(function(){(0,R.unstable_batchedUpdates)(function(){i.current.forEach(function(L){L()}),i.current=null})})),i.current.push(S)};return s}function F(i,s){var d=c.useState(s),S=(0,T.Z)(d,2),L=S[0],q=S[1],ee=m(function(ze){i(function(){q(ze)})});return[L,ee]}var N=c.createContext(null),Qe=["component"],et=["className"],Ke=["className"],fe=function(s,d){var S=c.useContext(N);if(!S){var L=s.component,q=L===void 0?"div":L,ee=(0,g.Z)(s,Qe);return c.createElement(q,(0,o.Z)({},ee,{ref:d}))}var ze=S.className,Fe=(0,g.Z)(S,et),Ge=s.className,xt=(0,g.Z)(s,Ke);return c.createElement(N.Provider,{value:null},c.createElement(x,(0,o.Z)({ref:d,className:V()(ze,Ge)},Fe,xt)))},we=c.forwardRef(fe);we.displayName="RawItem";var Be=we,Te=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Ve="responsive",nn="invalidate";function yt(i){return"+ ".concat(i.length," ...")}function vn(i,s){var d=i.prefixCls,S=d===void 0?"rc-overflow":d,L=i.data,q=L===void 0?[]:L,ee=i.renderItem,ze=i.renderRawItem,Fe=i.itemKey,Ge=i.itemWidth,xt=Ge===void 0?10:Ge,ft=i.ssr,vt=i.style,Pe=i.className,it=i.maxCount,Kt=i.renderRest,Ft=i.renderRawRest,dn=i.suffix,Ut=i.component,Dt=Ut===void 0?"div":Ut,rt=i.itemComponent,tn=i.onVisibleChange,Sn=(0,g.Z)(i,Te),Cn=ft==="full",hn=be(),Mr=F(hn,null),En=(0,T.Z)(Mr,2),Sr=En[0],cr=En[1],Xn=Sr||0,Fn=F(hn,new Map),wn=(0,T.Z)(Fn,2),zn=wn[0],an=wn[1],rr=F(hn,0),ir=(0,T.Z)(rr,2),Zr=ir[0],_i=ir[1],Hn=F(hn,0),Rn=(0,T.Z)(Hn,2),zr=Rn[0],kr=Rn[1],Yr=F(hn,0),dr=(0,T.Z)(Yr,2),fr=dr[0],br=dr[1],ni=(0,c.useState)(null),Hr=(0,T.Z)(ni,2),ri=Hr[0],ii=Hr[1],yi=(0,c.useState)(null),$i=(0,T.Z)(yi,2),_r=$i[0],Ti=$i[1],xn=c.useMemo(function(){return _r===null&&Cn?Number.MAX_SAFE_INTEGER:_r||0},[_r,Sr]),Yi=(0,c.useState)(!1),Ci=(0,T.Z)(Yi,2),ki=Ci[0],Ei=Ci[1],ai="".concat(S,"-item"),wi=Math.max(Zr,zr),Bi=it===Ve,Br=q.length&&Bi,ba=it===nn,Si=Br||typeof it=="number"&&q.length>it,jr=(0,c.useMemo)(function(){var pn=q;return Br?Sr===null&&Cn?pn=q:pn=q.slice(0,Math.min(q.length,Xn/xt)):typeof it=="number"&&(pn=q.slice(0,it)),pn},[q,xt,Sr,it,Br]),Ki=(0,c.useMemo)(function(){return Br?q.slice(xn+1):q.slice(jr.length)},[q,jr,Br,xn]),oi=(0,c.useCallback)(function(pn,Nn){var Wr;return typeof Fe=="function"?Fe(pn):(Wr=Fe&&(pn==null?void 0:pn[Fe]))!==null&&Wr!==void 0?Wr:Nn},[Fe]),va=(0,c.useCallback)(ee||function(pn){return pn},[ee]);function Vr(pn,Nn,Wr){_r===pn&&(Nn===void 0||Nn===ri)||(Ti(pn),Wr||(Ei(pnXn){Vr(Mi-1,pn-si-fr+zr);break}}dn&&xi(0)+fr>Xn&&ii(null)}},[Xn,zn,zr,fr,oi,jr]);var hi=ki&&!!Ki.length,ia={};ri!==null&&Br&&(ia={position:"absolute",left:ri,top:0});var ta={prefixCls:ai,responsive:Br,component:rt,invalidate:ba},Ii=ze?function(pn,Nn){var Wr=oi(pn,Nn);return c.createElement(N.Provider,{key:Wr,value:(0,z.Z)((0,z.Z)({},ta),{},{order:Nn,item:pn,itemKey:Wr,registerSize:Ri,display:Nn<=xn})},ze(pn,Nn))}:function(pn,Nn){var Wr=oi(pn,Nn);return c.createElement(x,(0,o.Z)({},ta,{order:Nn,key:Wr,item:pn,renderItem:va,itemKey:Wr,registerSize:Ri,display:Nn<=xn}))},xr,Ir={order:hi?xn:Number.MAX_SAFE_INTEGER,className:"".concat(ai,"-rest"),registerSize:Rr,display:hi};if(Ft)Ft&&(xr=c.createElement(N.Provider,{value:(0,z.Z)((0,z.Z)({},ta),Ir)},Ft(Ki)));else{var Nr=Kt||yt;xr=c.createElement(x,(0,o.Z)({},ta,Ir),typeof Nr=="function"?Nr(Ki):Nr)}var ua=c.createElement(Dt,(0,o.Z)({className:V()(!ba&&S,Pe),style:vt,ref:s},Sn),jr.map(Ii),Si?xr:null,dn&&c.createElement(x,(0,o.Z)({},ta,{responsive:Bi,responsiveDisabled:!Br,order:xn,className:"".concat(ai,"-suffix"),registerSize:Or,display:!0,style:ia}),dn));return Bi&&(ua=c.createElement(ae.Z,{onResize:Ji,disabled:!Br},ua)),ua}var Pt=c.forwardRef(vn);Pt.displayName="Overflow",Pt.Item=Be,Pt.RESPONSIVE=Ve,Pt.INVALIDATE=nn;var mn=Pt,Jt=mn,Wt=r(21770),zt=r(80334),fn=r(91881),gt=c.createContext(null);function ye(i,s){return i===void 0?null:"".concat(i,"-").concat(s)}function ne(i){var s=c.useContext(gt);return ye(s,i)}var h=r(56982),_=["children","locked"],O=c.createContext(null);function se(i,s){var d=(0,z.Z)({},i);return Object.keys(s).forEach(function(S){var L=s[S];L!==void 0&&(d[S]=L)}),d}function A(i){var s=i.children,d=i.locked,S=(0,g.Z)(i,_),L=c.useContext(O),q=(0,h.Z)(function(){return se(L,S)},[L,S],function(ee,ze){return!d&&(ee[0]!==ze[0]||!(0,fn.Z)(ee[1],ze[1],!0))});return c.createElement(O.Provider,{value:q},s)}var G=[],Q=c.createContext(null);function C(){return c.useContext(Q)}var W=c.createContext(G);function J(i){var s=c.useContext(W);return c.useMemo(function(){return i!==void 0?[].concat((0,B.Z)(s),[i]):s},[s,i])}var ge=c.createContext(null),Je=c.createContext({}),Rt=Je,Ct=r(15105),pt=r(75164),It=function(i){if(!i)return!1;if(i instanceof Element){if(i.offsetParent)return!0;if(i.getBBox){var s=i.getBBox(),d=s.width,S=s.height;if(d||S)return!0}if(i.getBoundingClientRect){var L=i.getBoundingClientRect(),q=L.width,ee=L.height;if(q||ee)return!0}}return!1};function Et(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(It(i)){var d=i.nodeName.toLowerCase(),S=["input","select","textarea","button"].includes(d)||i.isContentEditable||d==="a"&&!!i.getAttribute("href"),L=i.getAttribute("tabindex"),q=Number(L),ee=null;return L&&!Number.isNaN(q)?ee=q:S&&ee===null&&(ee=0),S&&i.disabled&&(ee=null),ee!==null&&(ee>=0||s&&ee<0)}return!1}function on(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=(0,B.Z)(i.querySelectorAll("*")).filter(function(S){return Et(S,s)});return Et(i,s)&&d.unshift(i),d}var Oe=null;function ar(){Oe=document.activeElement}function jn(){Oe=null}function gn(){if(Oe)try{Oe.focus()}catch(i){}}function $n(i,s){if(s.keyCode===9){var d=on(i),S=d[s.shiftKey?0:d.length-1],L=S===document.activeElement||i===document.activeElement;if(L){var q=d[s.shiftKey?d.length-1:0];q.focus(),s.preventDefault()}}}var er=Ct.Z.LEFT,kn=Ct.Z.RIGHT,Tn=Ct.Z.UP,In=Ct.Z.DOWN,ur=Ct.Z.ENTER,Zt=Ct.Z.ESC,gr=Ct.Z.HOME,Gt=Ct.Z.END,Z=[Tn,In,er,kn];function Se(i,s,d,S){var L,q,ee,ze,Fe="prev",Ge="next",xt="children",ft="parent";if(i==="inline"&&S===ur)return{inlineTrigger:!0};var vt=(L={},(0,b.Z)(L,Tn,Fe),(0,b.Z)(L,In,Ge),L),Pe=(q={},(0,b.Z)(q,er,d?Ge:Fe),(0,b.Z)(q,kn,d?Fe:Ge),(0,b.Z)(q,In,xt),(0,b.Z)(q,ur,xt),q),it=(ee={},(0,b.Z)(ee,Tn,Fe),(0,b.Z)(ee,In,Ge),(0,b.Z)(ee,ur,xt),(0,b.Z)(ee,Zt,ft),(0,b.Z)(ee,er,d?xt:ft),(0,b.Z)(ee,kn,d?ft:xt),ee),Kt={inline:vt,horizontal:Pe,vertical:it,inlineSub:vt,horizontalSub:it,verticalSub:it},Ft=(ze=Kt["".concat(i).concat(s?"":"Sub")])===null||ze===void 0?void 0:ze[S];switch(Ft){case Fe:return{offset:-1,sibling:!0};case Ge:return{offset:1,sibling:!0};case ft:return{offset:-1,sibling:!1};case xt:return{offset:1,sibling:!1};default:return null}}function Ae(i){for(var s=i;s;){if(s.getAttribute("data-menu-list"))return s;s=s.parentElement}return null}function Le(i,s){for(var d=i||document.activeElement;d;){if(s.has(d))return d;d=d.parentElement}return null}function tt(i,s){var d=on(i,!0);return d.filter(function(S){return s.has(S)})}function We(i,s,d){var S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!i)return null;var L=tt(i,s),q=L.length,ee=L.findIndex(function(ze){return d===ze});return S<0?ee===-1?ee=q-1:ee-=1:S>0&&(ee+=1),ee=(ee+q)%q,L[ee]}function He(i,s,d,S,L,q,ee,ze,Fe,Ge){var xt=c.useRef(),ft=c.useRef();ft.current=s;var vt=function(){pt.Z.cancel(xt.current)};return c.useEffect(function(){return function(){vt()}},[]),function(Pe){var it=Pe.which;if([].concat(Z,[ur,Zt,gr,Gt]).includes(it)){var Kt,Ft,dn,Ut=function(){Kt=new Set,Ft=new Map,dn=new Map;var wn=q();return wn.forEach(function(zn){var an=document.querySelector("[data-menu-id='".concat(ye(S,zn),"']"));an&&(Kt.add(an),dn.set(an,zn),Ft.set(zn,an))}),Kt};Ut();var Dt=Ft.get(s),rt=Le(Dt,Kt),tn=dn.get(rt),Sn=Se(i,ee(tn,!0).length===1,d,it);if(!Sn&&it!==gr&&it!==Gt)return;(Z.includes(it)||[gr,Gt].includes(it))&&Pe.preventDefault();var Cn=function(wn){if(wn){var zn=wn,an=wn.querySelector("a");an!=null&&an.getAttribute("href")&&(zn=an);var rr=dn.get(wn);ze(rr),vt(),xt.current=(0,pt.Z)(function(){ft.current===rr&&zn.focus()})}};if([gr,Gt].includes(it)||Sn.sibling||!rt){var hn;!rt||i==="inline"?hn=L.current:hn=Ae(rt);var Mr,En=tt(hn,Kt);it===gr?Mr=En[0]:it===Gt?Mr=En[En.length-1]:Mr=We(hn,Kt,rt,Sn.offset),Cn(Mr)}else if(Sn.inlineTrigger)Fe(tn);else if(Sn.offset>0)Fe(tn,!0),vt(),xt.current=(0,pt.Z)(function(){Ut();var Fn=rt.getAttribute("aria-controls"),wn=document.getElementById(Fn),zn=We(wn,Kt);Cn(zn)},5);else if(Sn.offset<0){var Sr=ee(tn,!0),cr=Sr[Sr.length-2],Xn=Ft.get(cr);Fe(cr,!1),Cn(Xn)}}Ge==null||Ge(Pe)}}function ke(i){Promise.resolve().then(i)}var De="__RC_UTIL_PATH_SPLIT__",he=function(s){return s.join(De)},e=function(s){return s.split(De)},t="rc-menu-more";function n(){var i=c.useState({}),s=(0,T.Z)(i,2),d=s[1],S=(0,c.useRef)(new Map),L=(0,c.useRef)(new Map),q=c.useState([]),ee=(0,T.Z)(q,2),ze=ee[0],Fe=ee[1],Ge=(0,c.useRef)(0),xt=(0,c.useRef)(!1),ft=function(){xt.current||d({})},vt=(0,c.useCallback)(function(Dt,rt){var tn=he(rt);L.current.set(tn,Dt),S.current.set(Dt,tn),Ge.current+=1;var Sn=Ge.current;ke(function(){Sn===Ge.current&&ft()})},[]),Pe=(0,c.useCallback)(function(Dt,rt){var tn=he(rt);L.current.delete(tn),S.current.delete(Dt)},[]),it=(0,c.useCallback)(function(Dt){Fe(Dt)},[]),Kt=(0,c.useCallback)(function(Dt,rt){var tn=S.current.get(Dt)||"",Sn=e(tn);return rt&&ze.includes(Sn[0])&&Sn.unshift(t),Sn},[ze]),Ft=(0,c.useCallback)(function(Dt,rt){return Dt.some(function(tn){var Sn=Kt(tn,!0);return Sn.includes(rt)})},[Kt]),dn=function(){var rt=(0,B.Z)(S.current.keys());return ze.length&&rt.push(t),rt},Ut=(0,c.useCallback)(function(Dt){var rt="".concat(S.current.get(Dt)).concat(De),tn=new Set;return(0,B.Z)(L.current.keys()).forEach(function(Sn){Sn.startsWith(rt)&&tn.add(L.current.get(Sn))}),tn},[]);return c.useEffect(function(){return function(){xt.current=!0}},[]),{registerPath:vt,unregisterPath:Pe,refreshOverflowKeys:it,isSubPathKey:Ft,getKeyPath:Kt,getKeys:dn,getSubPathKeys:Ut}}function a(i){var s=c.useRef(i);s.current=i;var d=c.useCallback(function(){for(var S,L=arguments.length,q=new Array(L),ee=0;eei.length)&&(s=i.length);for(var d=0,S=Array(s);d(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var X="rc-util-locker-".concat(Date.now()),le=0;function _e(i){var s=!!i,d=c.useState(function(){return le+=1,"".concat(X,"_").concat(le)}),S=(0,T.Z)(d,1),L=S[0];(0,sa.Z)(function(){if(s){var q=(0,Gi.o)(document.body).width,ee=Pa();(0,la.hq)(` html body { overflow-y: hidden; `.concat(ee?"width: calc(100% - ".concat(q,"px);"):"",` }`),L)}else(0,la.jL)(L);return function(){(0,la.jL)(L)}},[s,L])}var v=!1;function Ee(i){return typeof i=="boolean"&&(v=i),v}var $e=function(s){return s===!1?!1:!(0,ra.Z)()||!s?null:typeof s=="string"?document.querySelector(s):typeof s=="function"?s():s},je=c.forwardRef(function(i,s){var d=i.open,S=i.autoLock,L=i.getContainer,q=i.debug,ee=i.autoDestroy,ze=ee===void 0?!0:ee,Fe=i.children,Ge=c.useState(d),xt=(0,T.Z)(Ge,2),ft=xt[0],vt=xt[1],Pe=ft||d;c.useEffect(function(){(ze||d)&&vt(d)},[d,ze]);var it=c.useState(function(){return $e(L)}),Kt=(0,T.Z)(it,2),Ft=Kt[0],dn=Kt[1];c.useEffect(function(){var cr=$e(L);dn(cr!=null?cr:null)});var Ut=Aa(Pe&&!Ft,q),Dt=(0,T.Z)(Ut,2),rt=Dt[0],tn=Dt[1],Sn=Ft!=null?Ft:rt;_e(S&&d&&(0,ra.Z)()&&(Sn===rt||Sn===document.body));var Cn=null;if(Fe&&(0,ot.Yr)(Fe)&&s){var hn=Fe;Cn=hn.ref}var Mr=(0,ot.x1)(Cn,s);if(!Pe||!(0,ra.Z)()||Ft===void 0)return null;var En=Sn===!1||Ee(),Sr=Fe;return s&&(Sr=c.cloneElement(Fe,{ref:Mr})),c.createElement(ga.Provider,{value:tn},En?Sr:(0,R.createPortal)(Sr,Sn))}),re=je,pe=re;function ce(i){return i instanceof HTMLElement||i instanceof SVGElement}function Ze(i){return i&&_typeof(i)==="object"&&ce(i.nativeElement)?i.nativeElement:ce(i)?i:null}function at(i){var s=Ze(i);if(s)return s;if(i instanceof React.Component){var d;return(d=ReactDOM.findDOMNode)===null||d===void 0?void 0:d.call(ReactDOM,i)}return null}function mt(i){var s;return i==null||(s=i.getRootNode)===null||s===void 0?void 0:s.call(i)}function dt(i){return mt(i)instanceof ShadowRoot}function wt(i){return dt(i)?mt(i):null}function Lt(i){var s=c.useRef();s.current=i;var d=c.useCallback(function(){for(var S,L=arguments.length,q=new Array(L),ee=0;eei.length)&&(s=i.length);for(var d=0,S=new Array(s);d0,Rn=c.useState(!Dt||!Hn),zr=sr(Rn,2),kr=zr[0],Yr=zr[1];if(Jn(function(){!kr&&Hn&&ee&&Yr(!0)},[kr,Hn,ee]),!kr)return null;var dr="auto",fr={left:"-1000vw",top:"-1000vh",right:dr,bottom:dr};if(En||!Fe){var br,ni=Kt.points,Hr=Kt.dynamicInset||((br=Kt._experimental)===null||br===void 0?void 0:br.dynamicInset),ri=Hr&&ni[0][1]==="r",ii=Hr&&ni[0][0]==="b";ri?(fr.right=Xn,fr.left=dr):(fr.left=Sr,fr.right=dr),ii?(fr.bottom=Fn,fr.top=dr):(fr.top=cr,fr.bottom=dr)}var yi={};return an&&(an.includes("height")&&ir?yi.height=ir:an.includes("minHeight")&&ir&&(yi.minHeight=ir),an.includes("width")&&rr?yi.width=rr:an.includes("minWidth")&&rr&&(yi.minWidth=rr)),Fe||(yi.pointerEvents="none"),c.createElement(tn,{open:Ut||_i,getContainer:Dt&&function(){return Dt(ee)},autoDestroy:rt},c.createElement(Pi,{prefixCls:L,open:Fe,zIndex:Sn,mask:vt,motion:dn}),c.createElement(ae.Z,{onResize:wn,disabled:!Fe},function($i){return c.createElement(bi.Z,Xi({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Ut,leavedClassName:"".concat(L,"-hidden")},Ft,{onAppearPrepare:zn,onEnterPrepare:zn,visible:Fe,onVisibleChanged:function(Ti){var xn;Ft==null||(xn=Ft.onVisibleChanged)===null||xn===void 0||xn.call(Ft,Ti),ze(Ti)}}),function(_r,Ti){var xn=_r.className,Yi=_r.style,Ci=V()(L,xn,S);return c.createElement("div",{ref:So($i,s,Ti),className:Ci,style:Bn(Bn(Bn(Bn({"--arrow-x":"".concat(it.x||0,"px"),"--arrow-y":"".concat(it.y||0,"px")},fr),yi),Yi),{},{boxSizing:"border-box",zIndex:Sn},q),onMouseEnter:Cn,onMouseLeave:hn,onPointerEnter:Mr,onClick:ft},Pe&&c.createElement(ci,{prefixCls:L,arrow:Pe,arrowPos:it,align:Kt}),c.createElement(Ro,{cache:!Fe&&!xt},Zr))})}))}),ka=pi,Va=c.forwardRef(function(i,s){var d=i.children,S=i.getTriggerDOMNode,L=vo(d),q=c.useCallback(function(ze){ya(s,S?S(ze):ze)},[S]),ee=Ea(q,d.ref);return L?c.cloneElement(d,{ref:ee}):d}),un=Va,Ba=c.createContext(null),Ka=Ba;function no(i){return i?Array.isArray(i)?i:[i]:[]}function ro(i,s,d,S){return c.useMemo(function(){var L=no(d!=null?d:s),q=no(S!=null?S:s),ee=new Set(L),ze=new Set(q);return i&&(ee.has("hover")&&(ee.delete("hover"),ee.add("click")),ze.has("hover")&&(ze.delete("hover"),ze.add("click"))),[ee,ze]},[i,s,d,S])}var io=function(i){if(!i)return!1;if(i instanceof Element){if(i.offsetParent)return!0;if(i.getBBox){var s=i.getBBox(),d=s.width,S=s.height;if(d||S)return!0}if(i.getBoundingClientRect){var L=i.getBoundingClientRect(),q=L.width,ee=L.height;if(q||ee)return!0}}return!1};function ko(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=arguments.length>2?arguments[2]:void 0;return d?i[0]===s[0]:i[0]===s[0]&&i[1]===s[1]}function go(i,s,d,S){for(var L=d.points,q=Object.keys(i),ee=0;ee1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(i)?s:i}function Co(i){return _o(parseFloat(i),0)}function Bo(i,s){var d=Bn({},i);return(s||[]).forEach(function(S){if(!(S instanceof HTMLBodyElement||S instanceof HTMLHtmlElement)){var L=bo(S).getComputedStyle(S),q=L.overflow,ee=L.overflowClipMargin,ze=L.borderTopWidth,Fe=L.borderBottomWidth,Ge=L.borderLeftWidth,xt=L.borderRightWidth,ft=S.getBoundingClientRect(),vt=S.offsetHeight,Pe=S.clientHeight,it=S.offsetWidth,Kt=S.clientWidth,Ft=Co(ze),dn=Co(Fe),Ut=Co(Ge),Dt=Co(xt),rt=_o(Math.round(ft.width/it*1e3)/1e3),tn=_o(Math.round(ft.height/vt*1e3)/1e3),Sn=(it-Kt-Ut-Dt)*rt,Cn=(vt-Pe-Ft-dn)*tn,hn=Ft*tn,Mr=dn*tn,En=Ut*rt,Sr=Dt*rt,cr=0,Xn=0;if(q==="clip"){var Fn=Co(ee);cr=Fn*rt,Xn=Fn*tn}var wn=ft.x+En-cr,zn=ft.y+hn-Xn,an=wn+ft.width+2*cr-En-Sr-Sn,rr=zn+ft.height+2*Xn-hn-Mr-Cn;d.left=Math.max(d.left,wn),d.top=Math.max(d.top,zn),d.right=Math.min(d.right,an),d.bottom=Math.min(d.bottom,rr)}}),d}function Ko(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,d="".concat(s),S=d.match(/^(.*)\%$/);return S?i*(parseFloat(S[1])/100):parseFloat(d)}function Fo(i,s){var d=s||[],S=sr(d,2),L=S[0],q=S[1];return[Ko(i.width,L),Ko(i.height,q)]}function Uo(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[i[0],i[1]]}function po(i,s){var d=s[0],S=s[1],L,q;return d==="t"?q=i.y:d==="b"?q=i.y+i.height:q=i.y+i.height/2,S==="l"?L=i.x:S==="r"?L=i.x+i.width:L=i.x+i.width/2,{x:L,y:q}}function Qa(i,s){var d={t:"b",b:"t",l:"r",r:"l"};return i.map(function(S,L){return L===s?d[S]||"c":S}).join("")}function Xo(i,s,d,S,L,q,ee){var ze=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:L[S]||{}}),Fe=sr(ze,2),Ge=Fe[0],xt=Fe[1],ft=c.useRef(0),vt=c.useMemo(function(){return s?To(s):[]},[s]),Pe=c.useRef({}),it=function(){Pe.current={}};i||it();var Kt=Lt(function(){if(s&&d&&i){let Ha=function(ho,wo){var Ao=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Yi,Lo=ir.x+ho,Po=ir.y+wo,$o=Lo+fr,Vo=Po+dr,is=Math.max(Lo,Ao.left),as=Math.max(Po,Ao.top),os=Math.min($o,Ao.right),ss=Math.min(Vo,Ao.bottom);return Math.max(0,(os-is)*(ss-as))},jo=function(){qi=ir.y+Ir,ca=qi+dr,Ai=ir.x+xr,aa=Ai+fr};var Ut,Dt,rt=s,tn=rt.ownerDocument,Sn=bo(rt),Cn=Sn.getComputedStyle(rt),hn=Cn.width,Mr=Cn.height,En=Cn.position,Sr=rt.style.left,cr=rt.style.top,Xn=rt.style.right,Fn=rt.style.bottom,wn=Bn(Bn({},L[S]),q),zn=tn.createElement("div");(Ut=rt.parentElement)===null||Ut===void 0||Ut.appendChild(zn),zn.style.left="".concat(rt.offsetLeft,"px"),zn.style.top="".concat(rt.offsetTop,"px"),zn.style.position=En,zn.style.height="".concat(rt.offsetHeight,"px"),zn.style.width="".concat(rt.offsetWidth,"px"),rt.style.left="0",rt.style.top="0",rt.style.right="auto",rt.style.bottom="auto";var an;if(Array.isArray(d))an={x:d[0],y:d[1],width:0,height:0};else{var rr=d.getBoundingClientRect();an={x:rr.x,y:rr.y,width:rr.width,height:rr.height}}var ir=rt.getBoundingClientRect(),Zr=tn.documentElement,_i=Zr.clientWidth,Hn=Zr.clientHeight,Rn=Zr.scrollWidth,zr=Zr.scrollHeight,kr=Zr.scrollTop,Yr=Zr.scrollLeft,dr=ir.height,fr=ir.width,br=an.height,ni=an.width,Hr={left:0,top:0,right:_i,bottom:Hn},ri={left:-Yr,top:-kr,right:Rn-Yr,bottom:zr-kr},ii=wn.htmlRegion,yi="visible",$i="visibleFirst";ii!=="scroll"&&ii!==$i&&(ii=yi);var _r=ii===$i,Ti=Bo(ri,vt),xn=Bo(Hr,vt),Yi=ii===yi?xn:Ti,Ci=_r?xn:Yi;rt.style.left="auto",rt.style.top="auto",rt.style.right="0",rt.style.bottom="0";var ki=rt.getBoundingClientRect();rt.style.left=Sr,rt.style.top=cr,rt.style.right=Xn,rt.style.bottom=Fn,(Dt=rt.parentElement)===null||Dt===void 0||Dt.removeChild(zn);var Ei=_o(Math.round(fr/parseFloat(hn)*1e3)/1e3),ai=_o(Math.round(dr/parseFloat(Mr)*1e3)/1e3);if(Ei===0||ai===0||ce(d)&&!io(d))return;var wi=wn.offset,Bi=wn.targetOffset,Br=Fo(ir,wi),ba=sr(Br,2),Si=ba[0],jr=ba[1],Ki=Fo(an,Bi),oi=sr(Ki,2),va=oi[0],Vr=oi[1];an.x-=va,an.y-=Vr;var Ji=wn.points||[],Ri=sr(Ji,2),Rr=Ri[0],Or=Ri[1],xi=Uo(Or),hi=Uo(Rr),ia=po(an,xi),ta=po(ir,hi),Ii=Bn({},wn),xr=ia.x-ta.x+Si,Ir=ia.y-ta.y+jr,Nr=Ha(xr,Ir),ua=Ha(xr,Ir,xn),pn=po(an,["t","l"]),Nn=po(ir,["t","l"]),Wr=po(an,["b","r"]),Mi=po(ir,["b","r"]),si=wn.overflow||{},oo=si.adjustX,Wa=si.adjustY,Fa=si.shiftX,Ua=si.shiftY,Fi=function(wo){return typeof wo=="boolean"?wo:wo>=0},qi,ca,Ai,aa;jo();var Ca=Fi(Wa),wa=hi[0]===xi[0];if(Ca&&hi[0]==="t"&&(ca>Ci.bottom||Pe.current.bt)){var _a=Ir;wa?_a-=dr-br:_a=pn.y-Mi.y-jr;var Oa=Ha(xr,_a),so=Ha(xr,_a,xn);Oa>Nr||Oa===Nr&&(!_r||so>=ua)?(Pe.current.bt=!0,Ir=_a,jr=-jr,Ii.points=[Qa(hi,0),Qa(xi,0)]):Pe.current.bt=!1}if(Ca&&hi[0]==="b"&&(qiNr||Ya===Nr&&(!_r||Vt>=ua)?(Pe.current.tb=!0,Ir=Oi,jr=-jr,Ii.points=[Qa(hi,0),Qa(xi,0)]):Pe.current.tb=!1}var Dn=Fi(oo),Gr=hi[1]===xi[1];if(Dn&&hi[1]==="l"&&(aa>Ci.right||Pe.current.rl)){var Ar=xr;Gr?Ar-=fr-ni:Ar=pn.x-Mi.x-Si;var Kr=Ha(Ar,Ir),Ja=Ha(Ar,Ir,xn);Kr>Nr||Kr===Nr&&(!_r||Ja>=ua)?(Pe.current.rl=!0,xr=Ar,Si=-Si,Ii.points=[Qa(hi,1),Qa(xi,1)]):Pe.current.rl=!1}if(Dn&&hi[1]==="r"&&(AiNr||lo===Nr&&(!_r||Ra>=ua)?(Pe.current.lr=!0,xr=Na,Si=-Si,Ii.points=[Qa(hi,1),Qa(xi,1)]):Pe.current.lr=!1}jo();var xa=Fa===!0?0:Fa;typeof xa=="number"&&(Aixn.right&&(xr-=aa-xn.right-Si,an.x>xn.right-xa&&(xr+=an.x-xn.right+xa)));var uo=Ua===!0?0:Ua;typeof uo=="number"&&(qixn.bottom&&(Ir-=ca-xn.bottom-jr,an.y>xn.bottom-uo&&(Ir+=an.y-xn.bottom+uo)));var yo=ir.x+xr,Eo=yo+fr,Za=ir.y+Ir,xo=Za+dr,co=an.x,qa=co+ni,Io=an.y,No=Io+br,vi=Math.max(yo,co),Lr=Math.min(Eo,qa),qr=(vi+Lr)/2,oa=qr-yo,da=Math.max(Za,Io),za=Math.min(xo,No),fo=(da+za)/2,Do=fo-Za;ee==null||ee(s,Ii);var Ho=ki.right-ir.x-(xr+ir.width),rs=ki.bottom-ir.y-(Ir+ir.height);xt({ready:!0,offsetX:xr/Ei,offsetY:Ir/ai,offsetR:Ho/Ei,offsetB:rs/ai,arrowX:oa/Ei,arrowY:Do/ai,scaleX:Ei,scaleY:ai,align:Ii})}}),Ft=function(){ft.current+=1;var Dt=ft.current;Promise.resolve().then(function(){ft.current===Dt&&Kt()})},dn=function(){xt(function(Dt){return Bn(Bn({},Dt),{},{ready:!1})})};return Jn(dn,[S]),Jn(function(){i||dn()},[i]),[Ge.ready,Ge.offsetX,Ge.offsetY,Ge.offsetR,Ge.offsetB,Ge.arrowX,Ge.arrowY,Ge.scaleX,Ge.scaleY,Ge.align,Ft]}function Qo(i){if(Array.isArray(i))return gi(i)}function Yo(i){if(typeof Symbol!="undefined"&&i[Symbol.iterator]!=null||i["@@iterator"]!=null)return Array.from(i)}function Jo(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zo(i){return Qo(i)||Yo(i)||ma(i)||Jo()}function qo(i,s,d,S,L){Jn(function(){if(i&&s&&d){let ft=function(){S(),L()};var q=s,ee=d,ze=To(q),Fe=To(ee),Ge=bo(ee),xt=new Set([Ge].concat(Zo(ze),Zo(Fe)));return xt.forEach(function(vt){vt.addEventListener("scroll",ft,{passive:!0})}),Ge.addEventListener("resize",ft,{passive:!0}),S(),function(){xt.forEach(function(vt){vt.removeEventListener("scroll",ft),Ge.removeEventListener("resize",ft)})}}},[i,s,d])}var Mo={},us=[],Oo=function(s){us.push(s)};function es(i,s){if(0)var d}function ts(i,s){if(0)var d}function ns(){Mo={}}function zo(i,s,d){!s&&!Mo[d]&&(i(!1,d),Mo[d]=!0)}function u(i,s){zo(es,i,s)}function p(i,s){zo(ts,i,s)}u.preMessage=Oo,u.resetWarned=ns,u.noteOnce=p;var y=null,$=function(s){return+setTimeout(s,16)},ie=function(s){return clearTimeout(s)};typeof window!="undefined"&&"requestAnimationFrame"in window&&($=function(s){return window.requestAnimationFrame(s)},ie=function(s){return window.cancelAnimationFrame(s)});var xe=0,Ie=new Map;function nt(i){Ie.delete(i)}var bt=function(s){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;xe+=1;var S=xe;function L(q){if(q===0)nt(S),s();else{var ee=$(function(){L(q-1)});Ie.set(S,ee)}}return L(d),S};bt.cancel=function(i){var s=Ie.get(i);return nt(i),ie(s)};var lt=bt;function Ht(i,s,d,S,L,q,ee,ze){var Fe=c.useRef(i),Ge=c.useRef(!1);Fe.current!==i&&(Ge.current=!0,Fe.current=i),c.useEffect(function(){var xt=lt(function(){Ge.current=!1});return function(){lt.cancel(xt)}},[i]),c.useEffect(function(){if(s&&S&&(!L||q)){var xt=function(){var En=!1,Sr=function(Fn){var wn=Fn.target;En=ee(wn)},cr=function(Fn){var wn=Fn.target;!Ge.current&&Fe.current&&!En&&!ee(wn)&&ze(!1)};return[Sr,cr]},ft=xt(),vt=sr(ft,2),Pe=vt[0],it=vt[1],Kt=xt(),Ft=sr(Kt,2),dn=Ft[0],Ut=Ft[1],Dt=bo(S);Dt.addEventListener("mousedown",Pe,!0),Dt.addEventListener("click",it,!0),Dt.addEventListener("contextmenu",it,!0);var rt=wt(d);if(rt&&(rt.addEventListener("mousedown",dn,!0),rt.addEventListener("click",Ut,!0),rt.addEventListener("contextmenu",Ut,!0)),0)var tn,Sn,Cn,hn;return function(){Dt.removeEventListener("mousedown",Pe,!0),Dt.removeEventListener("click",it,!0),Dt.removeEventListener("contextmenu",it,!0),rt&&(rt.removeEventListener("mousedown",dn,!0),rt.removeEventListener("click",Ut,!0),rt.removeEventListener("contextmenu",Ut,!0))}}},[s,d,S,L,q])}var ht=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function jt(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pe,s=c.forwardRef(function(d,S){var L=d.prefixCls,q=L===void 0?"rc-trigger-popup":L,ee=d.children,ze=d.action,Fe=ze===void 0?"hover":ze,Ge=d.showAction,xt=d.hideAction,ft=d.popupVisible,vt=d.defaultPopupVisible,Pe=d.onPopupVisibleChange,it=d.afterPopupVisibleChange,Kt=d.mouseEnterDelay,Ft=d.mouseLeaveDelay,dn=Ft===void 0?.1:Ft,Ut=d.focusDelay,Dt=d.blurDelay,rt=d.mask,tn=d.maskClosable,Sn=tn===void 0?!0:tn,Cn=d.getPopupContainer,hn=d.forceRender,Mr=d.autoDestroy,En=d.destroyPopupOnHide,Sr=d.popup,cr=d.popupClassName,Xn=d.popupStyle,Fn=d.popupPlacement,wn=d.builtinPlacements,zn=wn===void 0?{}:wn,an=d.popupAlign,rr=d.zIndex,ir=d.stretch,Zr=d.getPopupClassNameFromAlign,_i=d.fresh,Hn=d.alignPoint,Rn=d.onPopupClick,zr=d.onPopupAlign,kr=d.arrow,Yr=d.popupMotion,dr=d.maskMotion,fr=d.popupTransitionName,br=d.popupAnimation,ni=d.maskTransitionName,Hr=d.maskAnimation,ri=d.className,ii=d.getTriggerDOMNode,yi=eo(d,ht),$i=Mr||En||!1,_r=c.useState(!1),Ti=sr(_r,2),xn=Ti[0],Yi=Ti[1];Jn(function(){Yi(Di())},[]);var Ci=c.useRef({}),ki=c.useContext(Ka),Ei=c.useMemo(function(){return{registerSubPopup:function(qn,Ui){Ci.current[qn]=Ui,ki==null||ki.registerSubPopup(qn,Ui)}}},[ki]),ai=Ur(),wi=c.useState(null),Bi=sr(wi,2),Br=Bi[0],ba=Bi[1],Si=Lt(function(sn){ce(sn)&&Br!==sn&&ba(sn),ki==null||ki.registerSubPopup(ai,sn)}),jr=c.useState(null),Ki=sr(jr,2),oi=Ki[0],va=Ki[1],Vr=c.useRef(null),Ji=Lt(function(sn){ce(sn)&&oi!==sn&&(va(sn),Vr.current=sn)}),Ri=c.Children.only(ee),Rr=(Ri==null?void 0:Ri.props)||{},Or={},xi=Lt(function(sn){var qn,Ui,na=oi;return(na==null?void 0:na.contains(sn))||((qn=wt(na))===null||qn===void 0?void 0:qn.host)===sn||sn===na||(Br==null?void 0:Br.contains(sn))||((Ui=wt(Br))===null||Ui===void 0?void 0:Ui.host)===sn||sn===Br||Object.values(Ci.current).some(function(Zi){return(Zi==null?void 0:Zi.contains(sn))||sn===Zi})}),hi=ao(q,Yr,br,fr),ia=ao(q,dr,Hr,ni),ta=c.useState(vt||!1),Ii=sr(ta,2),xr=Ii[0],Ir=Ii[1],Nr=ft!=null?ft:xr,ua=Lt(function(sn){ft===void 0&&Ir(sn)});Jn(function(){Ir(ft||!1)},[ft]);var pn=c.useRef(Nr);pn.current=Nr;var Nn=Lt(function(sn){(0,R.flushSync)(function(){Nr!==sn&&(ua(sn),Pe==null||Pe(sn))})}),Wr=c.useRef(),Mi=function(){clearTimeout(Wr.current)},si=function(qn){var Ui=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Mi(),Ui===0?Nn(qn):Wr.current=setTimeout(function(){Nn(qn)},Ui*1e3)};c.useEffect(function(){return Mi},[]);var oo=c.useState(!1),Wa=sr(oo,2),Fa=Wa[0],Ua=Wa[1];Jn(function(sn){(!sn||Nr)&&Ua(!0)},[Nr]);var Fi=c.useState(null),qi=sr(Fi,2),ca=qi[0],Ai=qi[1],aa=c.useState([0,0]),Ca=sr(aa,2),wa=Ca[0],_a=Ca[1],Oa=function(qn){_a([qn.clientX,qn.clientY])},so=Xo(Nr,Br,Hn?wa:oi,Fn,zn,an,zr),Oi=sr(so,11),Ya=Oi[0],Vt=Oi[1],Dn=Oi[2],Gr=Oi[3],Ar=Oi[4],Kr=Oi[5],Ja=Oi[6],Na=Oi[7],lo=Oi[8],Ra=Oi[9],xa=Oi[10],uo=ro(xn,Fe,Ge,xt),yo=sr(uo,2),Eo=yo[0],Za=yo[1],xo=Eo.has("click"),co=Za.has("click")||Za.has("contextMenu"),qa=Lt(function(){Fa||xa()}),Io=function(){pn.current&&Hn&&co&&si(!1)};qo(Nr,oi,Br,qa,Io),Jn(function(){qa()},[wa,Fn]),Jn(function(){Nr&&!(zn!=null&&zn[Fn])&&qa()},[JSON.stringify(an)]);var No=c.useMemo(function(){var sn=go(zn,q,Ra,Hn);return V()(sn,Zr==null?void 0:Zr(Ra))},[Ra,Zr,zn,q,Hn]);c.useImperativeHandle(S,function(){return{nativeElement:Vr.current,forceAlign:qa}});var vi=c.useState(0),Lr=sr(vi,2),qr=Lr[0],oa=Lr[1],da=c.useState(0),za=sr(da,2),fo=za[0],Do=za[1],Ho=function(){if(ir&&oi){var qn=oi.getBoundingClientRect();oa(qn.width),Do(qn.height)}},rs=function(){Ho(),qa()},Ha=function(qn){Ua(!1),xa(),it==null||it(qn)},jo=function(){return new Promise(function(qn){Ho(),Ai(function(){return qn})})};Jn(function(){ca&&(xa(),ca(),Ai(null))},[ca]);function ho(sn,qn,Ui,na){Or[sn]=function(Zi){var Wo;na==null||na(Zi),si(qn,Ui);for(var ls=arguments.length,cs=new Array(ls>1?ls-1:0),Go=1;Go1?Ui-1:0),Zi=1;Zi1?Ui-1:0),Zi=1;Zi1&&(Ut.motionAppear=!1);var Dt=Ut.onVisibleChanged;return Ut.onVisibleChanged=function(rt){return!vt.current&&!rt&&Ft(!0),Dt==null?void 0:Dt(rt)},Kt?null:c.createElement(A,{mode:q,locked:!vt.current},c.createElement(bi.Z,(0,o.Z)({visible:dn},Ut,{forceRender:Fe,removeOnLeave:!1,leavedClassName:"".concat(ze,"-hidden")}),function(rt){var tn=rt.className,Sn=rt.style;return c.createElement(zi,{id:s,className:tn,style:Sn},L)}))}var Cr=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],$r=["active"],Jr=function(s){var d,S=s.style,L=s.className,q=s.title,ee=s.eventKey,ze=s.warnKey,Fe=s.disabled,Ge=s.internalPopupClose,xt=s.children,ft=s.itemIcon,vt=s.expandIcon,Pe=s.popupClassName,it=s.popupOffset,Kt=s.popupStyle,Ft=s.onClick,dn=s.onMouseEnter,Ut=s.onMouseLeave,Dt=s.onTitleClick,rt=s.onTitleMouseEnter,tn=s.onTitleMouseLeave,Sn=(0,g.Z)(s,Cr),Cn=ne(ee),hn=c.useContext(O),Mr=hn.prefixCls,En=hn.mode,Sr=hn.openKeys,cr=hn.disabled,Xn=hn.overflowDisabled,Fn=hn.activeKey,wn=hn.selectedKeys,zn=hn.itemIcon,an=hn.expandIcon,rr=hn.onItemClick,ir=hn.onOpenChange,Zr=hn.onActive,_i=c.useContext(Rt),Hn=_i._internalRenderSubMenuItem,Rn=c.useContext(ge),zr=Rn.isSubPathKey,kr=J(),Yr="".concat(Mr,"-submenu"),dr=cr||Fe,fr=c.useRef(),br=c.useRef(),ni=ft!=null?ft:zn,Hr=vt!=null?vt:an,ri=Sr.includes(ee),ii=!Xn&&ri,yi=zr(wn,ee),$i=At(ee,dr,rt,tn),_r=$i.active,Ti=(0,g.Z)($i,$r),xn=c.useState(!1),Yi=(0,T.Z)(xn,2),Ci=Yi[0],ki=Yi[1],Ei=function(Or){dr||ki(Or)},ai=function(Or){Ei(!0),dn==null||dn({key:ee,domEvent:Or})},wi=function(Or){Ei(!1),Ut==null||Ut({key:ee,domEvent:Or})},Bi=c.useMemo(function(){return _r||(En!=="inline"?Ci||zr([Fn],ee):!1)},[En,_r,Fn,Ci,ee,zr]),Br=St(kr.length),ba=function(Or){dr||(Dt==null||Dt({key:ee,domEvent:Or}),En==="inline"&&ir(ee,!ri))},Si=a(function(Rr){Ft==null||Ft(_t(Rr)),rr(Rr)}),jr=function(Or){En!=="inline"&&ir(ee,Or)},Ki=function(){Zr(ee)},oi=Cn&&"".concat(Cn,"-popup"),va=c.createElement("div",(0,o.Z)({role:"menuitem",style:Br,className:"".concat(Yr,"-title"),tabIndex:dr?null:-1,ref:fr,title:typeof q=="string"?q:null,"data-menu-id":Xn&&Cn?null:Cn,"aria-expanded":ii,"aria-haspopup":!0,"aria-controls":oi,"aria-disabled":dr,onClick:ba,onFocus:Ki},Ti),q,c.createElement(Ue,{icon:En!=="horizontal"?Hr:void 0,props:(0,z.Z)((0,z.Z)({},s),{},{isOpen:ii,isSubMenu:!0})},c.createElement("i",{className:"".concat(Yr,"-arrow")}))),Vr=c.useRef(En);if(En!=="inline"&&kr.length>1?Vr.current="vertical":Vr.current=En,!Xn){var Ji=Vr.current;va=c.createElement(kt,{mode:Ji,prefixCls:Yr,visible:!Ge&&ii&&En!=="inline",popupClassName:Pe,popupOffset:it,popupStyle:Kt,popup:c.createElement(A,{mode:Ji==="horizontal"?"vertical":Ji},c.createElement(zi,{id:oi,ref:br},xt)),disabled:dr,onVisibleChange:jr},va)}var Ri=c.createElement(Jt.Item,(0,o.Z)({role:"none"},Sn,{component:"li",style:S,className:V()(Yr,"".concat(Yr,"-").concat(En),L,(d={},(0,b.Z)(d,"".concat(Yr,"-open"),ii),(0,b.Z)(d,"".concat(Yr,"-active"),Bi),(0,b.Z)(d,"".concat(Yr,"-selected"),yi),(0,b.Z)(d,"".concat(Yr,"-disabled"),dr),d)),onMouseEnter:ai,onMouseLeave:wi}),va,!Xn&&c.createElement(Pr,{id:oi,open:ii,keyPath:kr},xt));return Hn&&(Ri=Hn(Ri,s,{selected:yi,active:Bi,open:ii,disabled:dr})),c.createElement(A,{onItemClick:Si,mode:En==="horizontal"?"vertical":En,itemIcon:ni,expandIcon:Hr},Ri)};function di(i){var s=i.eventKey,d=i.children,S=J(s),L=Vi(d,S),q=C();c.useEffect(function(){if(q)return q.registerPath(s,S),function(){q.unregisterPath(s,S)}},[S]);var ee;return q?ee=L:ee=c.createElement(Jr,i,L),c.createElement(W.Provider,{value:S},ee)}var vr=r(71002),Gn=["className","title","eventKey","children"],Qr=["children"],fi=function(s){var d=s.className,S=s.title,L=s.eventKey,q=s.children,ee=(0,g.Z)(s,Gn),ze=c.useContext(O),Fe=ze.prefixCls,Ge="".concat(Fe,"-item-group");return c.createElement("li",(0,o.Z)({role:"presentation"},ee,{onClick:function(ft){return ft.stopPropagation()},className:V()(Ge,d)}),c.createElement("div",{role:"presentation",className:"".concat(Ge,"-title"),title:typeof S=="string"?S:void 0},S),c.createElement("ul",{role:"group",className:"".concat(Ge,"-list")},q))};function wr(i){var s=i.children,d=(0,g.Z)(i,Qr),S=J(d.eventKey),L=Vi(s,S),q=C();return q?L:c.createElement(fi,(0,Ot.Z)(d,["warnKey"]),L)}function Kn(i){var s=i.className,d=i.style,S=c.useContext(O),L=S.prefixCls,q=C();return q?null:c.createElement("li",{role:"separator",className:V()("".concat(L,"-item-divider"),s),style:d})}var mr=["label","children","key","type"];function On(i){return(i||[]).map(function(s,d){if(s&&(0,vr.Z)(s)==="object"){var S=s,L=S.label,q=S.children,ee=S.key,ze=S.type,Fe=(0,g.Z)(S,mr),Ge=ee!=null?ee:"tmp-".concat(d);return q||ze==="group"?ze==="group"?c.createElement(wr,(0,o.Z)({key:Ge},Fe,{title:L}),On(q)):c.createElement(di,(0,o.Z)({key:Ge},Fe,{title:L}),On(q)):ze==="divider"?c.createElement(Kn,(0,o.Z)({key:Ge},Fe)):c.createElement(Zn,(0,o.Z)({key:Ge},Fe),L)}return null}).filter(function(s){return s})}function Li(i,s,d){var S=i;return s&&(S=On(s)),Vi(S,d)}var Er=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],ti=[],ha=c.forwardRef(function(i,s){var d,S,L=i,q=L.prefixCls,ee=q===void 0?"rc-menu":q,ze=L.rootClassName,Fe=L.style,Ge=L.className,xt=L.tabIndex,ft=xt===void 0?0:xt,vt=L.items,Pe=L.children,it=L.direction,Kt=L.id,Ft=L.mode,dn=Ft===void 0?"vertical":Ft,Ut=L.inlineCollapsed,Dt=L.disabled,rt=L.disabledOverflow,tn=L.subMenuOpenDelay,Sn=tn===void 0?.1:tn,Cn=L.subMenuCloseDelay,hn=Cn===void 0?.1:Cn,Mr=L.forceSubMenuRender,En=L.defaultOpenKeys,Sr=L.openKeys,cr=L.activeKey,Xn=L.defaultActiveFirst,Fn=L.selectable,wn=Fn===void 0?!0:Fn,zn=L.multiple,an=zn===void 0?!1:zn,rr=L.defaultSelectedKeys,ir=L.selectedKeys,Zr=L.onSelect,_i=L.onDeselect,Hn=L.inlineIndent,Rn=Hn===void 0?24:Hn,zr=L.motion,kr=L.defaultMotions,Yr=L.triggerSubMenuAction,dr=Yr===void 0?"hover":Yr,fr=L.builtinPlacements,br=L.itemIcon,ni=L.expandIcon,Hr=L.overflowedIndicator,ri=Hr===void 0?"...":Hr,ii=L.overflowedIndicatorPopupClassName,yi=L.getPopupContainer,$i=L.onClick,_r=L.onOpenChange,Ti=L.onKeyDown,xn=L.openAnimation,Yi=L.openTransitionName,Ci=L._internalRenderMenuItem,ki=L._internalRenderSubMenuItem,Ei=(0,g.Z)(L,Er),ai=c.useMemo(function(){return Li(Pe,vt,ti)},[Pe,vt]),wi=c.useState(!1),Bi=(0,T.Z)(wi,2),Br=Bi[0],ba=Bi[1],Si=c.useRef(),jr=M(Kt),Ki=it==="rtl",oi=(0,Wt.Z)(En,{value:Sr,postState:function(Lr){return Lr||ti}}),va=(0,T.Z)(oi,2),Vr=va[0],Ji=va[1],Ri=function(Lr){var qr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function oa(){Ji(Lr),_r==null||_r(Lr)}qr?(0,R.flushSync)(oa):oa()},Rr=c.useState(Vr),Or=(0,T.Z)(Rr,2),xi=Or[0],hi=Or[1],ia=c.useRef(!1),ta=c.useMemo(function(){return(dn==="inline"||dn==="vertical")&&Ut?["vertical",Ut]:[dn,!1]},[dn,Ut]),Ii=(0,T.Z)(ta,2),xr=Ii[0],Ir=Ii[1],Nr=xr==="inline",ua=c.useState(xr),pn=(0,T.Z)(ua,2),Nn=pn[0],Wr=pn[1],Mi=c.useState(Ir),si=(0,T.Z)(Mi,2),oo=si[0],Wa=si[1];c.useEffect(function(){Wr(xr),Wa(Ir),ia.current&&(Nr?Ji(xi):Ri(ti))},[xr,Ir]);var Fa=c.useState(0),Ua=(0,T.Z)(Fa,2),Fi=Ua[0],qi=Ua[1],ca=Fi>=ai.length-1||Nn!=="horizontal"||rt;c.useEffect(function(){Nr&&hi(Vr)},[Vr]),c.useEffect(function(){return ia.current=!0,function(){ia.current=!1}},[]);var Ai=n(),aa=Ai.registerPath,Ca=Ai.unregisterPath,wa=Ai.refreshOverflowKeys,_a=Ai.isSubPathKey,Oa=Ai.getKeyPath,so=Ai.getKeys,Oi=Ai.getSubPathKeys,Ya=c.useMemo(function(){return{registerPath:aa,unregisterPath:Ca}},[aa,Ca]),Vt=c.useMemo(function(){return{isSubPathKey:_a}},[_a]);c.useEffect(function(){wa(ca?ti:ai.slice(Fi+1).map(function(vi){return vi.key}))},[Fi,ca]);var Dn=(0,Wt.Z)(cr||Xn&&((d=ai[0])===null||d===void 0?void 0:d.key),{value:cr}),Gr=(0,T.Z)(Dn,2),Ar=Gr[0],Kr=Gr[1],Ja=a(function(vi){Kr(vi)}),Na=a(function(){Kr(void 0)});(0,c.useImperativeHandle)(s,function(){return{list:Si.current,focus:function(Lr){var qr,oa=Ar!=null?Ar:(qr=ai.find(function(Do){return!Do.props.disabled}))===null||qr===void 0?void 0:qr.key;if(oa){var da,za,fo;(da=Si.current)===null||da===void 0||(za=da.querySelector("li[data-menu-id='".concat(ye(jr,oa),"']")))===null||za===void 0||(fo=za.focus)===null||fo===void 0||fo.call(za,Lr)}}}});var lo=(0,Wt.Z)(rr||[],{value:ir,postState:function(Lr){return Array.isArray(Lr)?Lr:Lr==null?ti:[Lr]}}),Ra=(0,T.Z)(lo,2),xa=Ra[0],uo=Ra[1],yo=function(Lr){if(wn){var qr=Lr.key,oa=xa.includes(qr),da;an?oa?da=xa.filter(function(fo){return fo!==qr}):da=[].concat((0,B.Z)(xa),[qr]):da=[qr],uo(da);var za=(0,z.Z)((0,z.Z)({},Lr),{},{selectedKeys:da});oa?_i==null||_i(za):Zr==null||Zr(za)}!an&&Vr.length&&Nn!=="inline"&&Ri(ti)},Eo=a(function(vi){$i==null||$i(_t(vi)),yo(vi)}),Za=a(function(vi,Lr){var qr=Vr.filter(function(da){return da!==vi});if(Lr)qr.push(vi);else if(Nn!=="inline"){var oa=Oi(vi);qr=qr.filter(function(da){return!oa.has(da)})}(0,fn.Z)(Vr,qr,!0)||Ri(qr,!0)}),xo=function(Lr,qr){var oa=qr!=null?qr:!Vr.includes(Lr);Za(Lr,oa)},co=He(Nn,Ar,Ki,jr,Si,so,Oa,Kr,xo,Ti);c.useEffect(function(){ba(!0)},[]);var qa=c.useMemo(function(){return{_internalRenderMenuItem:Ci,_internalRenderSubMenuItem:ki}},[Ci,ki]),Io=Nn!=="horizontal"||rt?ai:ai.map(function(vi,Lr){return c.createElement(A,{key:vi.key,overflowDisabled:Lr>Fi},vi)}),No=c.createElement(Jt,(0,o.Z)({id:Kt,ref:Si,prefixCls:"".concat(ee,"-overflow"),component:"ul",itemComponent:Zn,className:V()(ee,"".concat(ee,"-root"),"".concat(ee,"-").concat(Nn),Ge,(S={},(0,b.Z)(S,"".concat(ee,"-inline-collapsed"),oo),(0,b.Z)(S,"".concat(ee,"-rtl"),Ki),S),ze),dir:it,style:Fe,role:"menu",tabIndex:ft,data:Io,renderRawItem:function(Lr){return Lr},renderRawRest:function(Lr){var qr=Lr.length,oa=qr?ai.slice(-qr):null;return c.createElement(di,{eventKey:t,title:ri,disabled:ca,internalPopupClose:qr===0,popupClassName:ii},oa)},maxCount:Nn!=="horizontal"||rt?Jt.INVALIDATE:Jt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Lr){qi(Lr)},onKeyDown:co},Ei));return c.createElement(Rt.Provider,{value:qa},c.createElement(gt.Provider,{value:jr},c.createElement(A,{prefixCls:ee,rootClassName:ze,mode:Nn,openKeys:Vr,rtl:Ki,disabled:Dt,motion:Br?zr:null,defaultMotions:Br?kr:null,activeKey:Ar,onActive:Ja,onInactive:Na,selectedKeys:xa,inlineIndent:Rn,subMenuOpenDelay:Sn,subMenuCloseDelay:hn,forceSubMenuRender:Mr,builtinPlacements:fr,triggerSubMenuAction:dr,getPopupContainer:yi,itemIcon:br,expandIcon:ni,onItemClick:Eo,onOpenChange:Za},c.createElement(ge.Provider,{value:Vt},No),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(Q.Provider,{value:Ya},ai)))))}),ji=ha,Qi=ji;Qi.Item=Zn,Qi.SubMenu=di,Qi.ItemGroup=wr,Qi.Divider=Kn;var Sa=Qi},99962:function(Mt,Me){"use strict";var r;var o=Symbol.for("react.element"),b=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),w=Symbol.for("react.context"),V=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),ae=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),ue;ue=Symbol.for("react.module.reference");function te(f){if(typeof f=="object"&&f!==null){var P=f.$$typeof;switch(P){case o:switch(f=f.type,f){case z:case T:case B:case D:case ae:return f;default:switch(f=f&&f.$$typeof,f){case V:case w:case c:case I:case de:case g:return f;default:return P}}case b:return P}}}r=w,r=g,r=o,Me.ForwardRef=c,r=z,r=I,r=de,r=b,r=T,r=B,r=D,r=ae,r=function(){return!1},r=function(){return!1},r=function(f){return te(f)===w},r=function(f){return te(f)===g},r=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===o},r=function(f){return te(f)===c},r=function(f){return te(f)===z},r=function(f){return te(f)===I},Me.isMemo=function(f){return te(f)===de},r=function(f){return te(f)===b},r=function(f){return te(f)===T},r=function(f){return te(f)===B},r=function(f){return te(f)===D},r=function(f){return te(f)===ae},r=function(f){return typeof f=="string"||typeof f=="function"||f===z||f===T||f===B||f===D||f===ae||f===Y||typeof f=="object"&&f!==null&&(f.$$typeof===I||f.$$typeof===de||f.$$typeof===g||f.$$typeof===w||f.$$typeof===c||f.$$typeof===ue||f.getModuleId!==void 0)},r=te},8399:function(Mt,Me,r){"use strict";Mt.exports=r(99962)},66680:function(Mt,Me,r){"use strict";r.d(Me,{Z:function(){return b}});var o=r(67294);function b(z){var B=o.useRef();B.current=z;var T=o.useCallback(function(){for(var g,w=arguments.length,V=new Array(w),c=0;c2&&arguments[2]!==void 0?arguments[2]:!1,w=new Set;function V(c,D){var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,de=w.has(c);if((0,b.ZP)(!de,"Warning: There may be circular references"),de)return!1;if(c===D)return!0;if(g&&ae>1)return!1;w.add(c);var I=ae+1;if(Array.isArray(c)){if(!Array.isArray(D)||c.length!==D.length)return!1;for(var Y=0;Y