You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
353 KiB
43 lines
353 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[6444],{18785:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return se}});var g=i(60499),x=i(59301),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"},Q=Z,A=i(7657),f=function(be,ce){return x.createElement(A.Z,(0,g.Z)({},be,{ref:ce,icon:Q}))},de=x.forwardRef(f),se=de},52671:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return se}});var g=i(60499),x=i(59301),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"},Q=Z,A=i(7657),f=function(be,ce){return x.createElement(A.Z,(0,g.Z)({},be,{ref:ce,icon:Q}))},de=x.forwardRef(f),se=de},8657:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return se}});var g=i(60499),x=i(59301),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"},Q=Z,A=i(7657),f=function(be,ce){return x.createElement(A.Z,(0,g.Z)({},be,{ref:ce,icon:Q}))},de=x.forwardRef(f),se=de},56082:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return se}});var g=i(60499),x=i(59301),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"},Q=Z,A=i(7657),f=function(be,ce){return x.createElement(A.Z,(0,g.Z)({},be,{ref:ce,icon:Q}))},de=x.forwardRef(f),se=de},33853:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return se}});var g=i(60499),x=i(59301),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"},Q=Z,A=i(7657),f=function(be,ce){return x.createElement(A.Z,(0,g.Z)({},be,{ref:ce,icon:Q}))},de=x.forwardRef(f),se=de},15075:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return se}});var g=i(60499),x=i(59301),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"},Q=Z,A=i(7657),f=function(be,ce){return x.createElement(A.Z,(0,g.Z)({},be,{ref:ce,icon:Q}))},de=x.forwardRef(f),se=de},43531:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return se}});var g=i(60499),x=i(59301),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"},Q=Z,A=i(7657),f=function(be,ce){return x.createElement(A.Z,(0,g.Z)({},be,{ref:ce,icon:Q}))},de=x.forwardRef(f),se=de},38819:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return se}});var g=i(60499),x=i(59301),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"},Q=Z,A=i(7657),f=function(be,ce){return x.createElement(A.Z,(0,g.Z)({},be,{ref:ce,icon:Q}))},de=x.forwardRef(f),se=de},99282:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return q}});var g=i(59301),x=i(8591),Z=i(38854),Q=i(58231),A=i(16471),f=i(61814),de=i(56102),se=i(8099),oe={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"},be=(z,Ce,K)=>new Promise((T,M)=>{var u=k=>{try{N(K.next(k))}catch(I){M(I)}},S=k=>{try{N(K.throw(k))}catch(I){M(I)}},N=k=>k.done?T(k.value):Promise.resolve(k.value).then(u,S);N((K=K.apply(z,Ce)).next())});function ce(z){if(isNaN(z))return{minutes:"00",seconds:"00"};const Ce=new Date(z*1e3).toISOString().substr(11,8);return{hour:Ce.substr(0,2),minutes:Ce.substr(3,2),seconds:Ce.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function $(z,Ce){return z-Ce}function d(z){z.sort($);let Ce=0;for(let K=0;K<z.length-1;K++){let T=Math.abs(z[K+1]-z[K]);T<21&&(Ce+=T)}return Ce}const te=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var q=(0,g.forwardRef)(({allow_skip:z,src:Ce,toLog:K,videoId:T,logWatchHistory:M,courseId:u=null,startTime:S,handlePause:N=()=>{},handlePlay:k=()=>{},handlePlayEnded:I=()=>{},autoPlay:ne=!1,onPlayEnded:X=()=>{},isShowWaterMark:ue=!0},D)=>{var xe;const P=((xe=Ce==null?void 0:Ce.split("."))==null?void 0:xe.pop())==="flv",v=(0,g.useRef)(),B=(0,g.useRef)(),pe=(0,g.useRef)(),H=(0,g.useRef)(),le=(0,g.useRef)(),Y=(0,g.useRef)(),w=(0,g.useRef)(),j=(0,g.useRef)(),J=(0,g.useRef)(),ie=(0,g.useRef)(),ge=(0,g.useRef)(),Te=(0,g.useRef)(),Pe=(0,g.useRef)(),Ie=(0,g.useRef)(),Je=navigator.userAgent.toLowerCase().match(te),ke=Je?Je[0]:"pc",ze=(0,g.useRef)(!1),Ge=(0,f.eY)();let V=0,Le=0,m=0,y=null,h=!1,a=20,b=1,U=!1,E=!1,l=[];(0,g.useImperativeHandle)(D,()=>({getLastUpdatedTime:()=>v.current.currentTime,getDuration:()=>v.current.duration})),x.ZP.config({maxCount:1,getContainer:()=>pe.current});const p=(0,g.useCallback)((ae,he=!1)=>{let G={point:v.current.currentTime};y?(G.log_id=y,G.watch_duration=d(l),G.total_duration=Le):(u?(G.video_id=parseInt(T,10),G.course_id=u):G.video_id=T,G.duration=V,G.device=ke),he&&(G.ed="1");function Re(){return be(this,null,function*(){U=!0,y=yield M==null?void 0:M(G),U=!1,ae&&ae()})}Re()},[T,u]);(0,g.useEffect)(()=>{v.current&&(H.current.style.display="none",le.current.style.display="block"),x.ZP.destroy();let ae=null;return Q.Z.isSupported&&P&&Ce&&(Ce==null?void 0:Ce.indexOf(".m3u8"))<0?(ae=Q.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:Ce,muted:!1}),v.current&&(ae.attachMediaElement(v.current),ae.load())):v.current.setAttribute("src",Ce),c(),()=>{ae&&(ae.unload(),ae.pause(),ae.destroy(),ae=null)}},[v,P,Ce]);function o(){v.current.paused?(H.current.style.display="none",le.current.style.display="block"):(H.current.style.display="block",le.current.style.display="none")}function c(){ge.current.style.display="none",Pe.current.style.display="none",Te.current.style.display="none",v.current.muted||v.current.volume===0?ge.current.style.display="block":v.current.volume>0&&v.current.volume<=.5?Pe.current.style.display="block":Te.current.style.display="block"}(0,g.useEffect)(()=>{const ae=document.getElementById("play"),he=document.querySelectorAll(".playback-icons use");function G(){k(),S&&!ze.current&&(v.current.currentTime=S),ze.current=!0,l.push(v.current.currentTime),h||(h=!0,K&&p())}function Re(){return be(this,null,function*(){o(),l.push(v.current.currentTime),K&&p(()=>{y=null,m=0,h=!1,U=!1,E=!1,l=[],Le=0,b=1},!0),X()})}function Ne(){Y.current.value=Math.round(v.current.currentTime),w.current.value=Math.round(v.current.currentTime)}function W(){const Fe=ce(Math.round(v.current.currentTime));J.current.innerText=`${Fe.hour>0?Fe.hour+":":""}${Fe.minutes}:${Fe.seconds}`,J.current.setAttribute("datetime",`${Fe.hour>0?" "+Fe.hour+" ":""}${Fe.minutes}m ${Fe.seconds}s`)}function Be(){var Fe,tt,Et,vt,xt,Ot,gt;const Rt=Math.round((Fe=v.current)==null?void 0:Fe.duration);(Et=(tt=Y.current)==null?void 0:tt.setAttribute)==null||Et.call(tt,"max",Rt),(xt=(vt=w.current)==null?void 0:vt.setAttribute)==null||xt.call(vt,"max",Rt);const it=ce(Rt);j.current&&(j.current.innerText=`${it.hour>0?it.hour+":":""}${it.minutes}:${it.seconds}`,(gt=(Ot=j.current).setAttribute)==null||gt.call(Ot,"datetime",`${it.hour>0?" "+it.hour+" ":""}${it.minutes}m ${it.seconds}s`))}function Xe(){try{const Fe=Math.round(v.current.duration);Y.current.setAttribute("max",Fe),w.current.setAttribute("max",Fe);const tt=ce(Fe);j.current.innerText=`${tt.hour>0?tt.hour+":":""}${tt.minutes}:${tt.seconds}`,j.current.setAttribute("datetime",`${tt.hour>0?" "+tt.hour+" ":""}${tt.minutes}m ${tt.seconds}s`),Ne(),W();const{width:Et,height:vt,x:xt,y:Ot}=B.current.getBoundingClientRect();if(xt<0||Ot<0||!Et)return;if(!E){let gt=v.current.currentTime,Rt=gt-m;Math.abs(Rt)<10?(Le+=Math.abs(Rt),m=gt,U||Le-b*a>=0&&(b++,l.push(m),K&&p())):(m=gt,K&&p())}}catch(Fe){console.log(Fe)}}function Ze(){E=!0}function He(){v.current.playing&&l.push(v.current.currentTime,m),m=v.current.currentTime,E=!1}function rt(){V=v.current.duration,V<=20&&(a=V/3),v.current.addEventListener("play",G)}function _t(Fe){Fe.preventDefault(),(0,se.vp)()?(v.current.style.width="100%",v.current.style.height="100%"):v.current.style.cssText=""}function ct(){N()}function st(Fe){if(!z){x.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const tt=Fe.target.dataset.seek?Fe.target.dataset.seek:Fe.target.value;v.current.currentTime=tt,w.current.value=tt,Y.current.value=tt}function mt(Fe){const tt=Math.round(Fe.offsetX/Fe.target.clientWidth*parseInt(Fe.target.getAttribute("max"),10));Y.current.setAttribute("data-seek",tt);const Et=ce(tt);ie.current.textContent=`${Et.hour>0?Et.hour+":":""}${Et.minutes}:${Et.seconds}`;const vt=v.current.getBoundingClientRect();ie.current.style.left=`${Fe.pageX-vt.left}px`}function Ue(Fe){switch(Fe.code){case"Space":Fe.preventDefault(),F();break;case"ArrowRight":if(Fe.preventDefault(),!z){x.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(v.current.currentTime>=v.current.duration)break;v.current.currentTime=parseInt(v.current.currentTime)+5,Ne();break;case"ArrowLeft":if(Fe.preventDefault(),!z){x.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(v.current.currentTime===0)break;v.current.currentTime=parseInt(v.current.currentTime)-5,Ne();break;case"ArrowUp":Fe.preventDefault(),v.current.volume<1&&(v.current.volume=(parseInt(v.current.volume*10)+1)/10);break;case"ArrowDown":Fe.preventDefault(),v.current.volume>0&&(v.current.volume=(parseInt(v.current.volume*10)-1)/10);break}}return pe.current.addEventListener((0,se.gH)(),_t),v.current.addEventListener("canplay",rt),v.current.addEventListener("ended",Re),v.current.addEventListener("seeking",Ze),v.current.addEventListener("seeked",He),v.current.addEventListener("loadedmetadata",Be),Y.current.addEventListener("mousemove",mt),Y.current.addEventListener("input",st),v.current.addEventListener("timeupdate",Xe),v.current.addEventListener("pause",ct),v.current.addEventListener("volumechange",c),document.addEventListener("keydown",Ue),()=>{var Fe,tt,Et,vt,xt,Ot,gt,Rt,it,at,Ve,me;(Fe=v.current)==null||Fe.removeEventListener("canplay",rt),(tt=v.current)==null||tt.removeEventListener("play",G),(Et=v.current)==null||Et.removeEventListener("ended",Re),(vt=v.current)==null||vt.removeEventListener("seeking",Ze),(xt=v.current)==null||xt.removeEventListener("seeked",He),(Ot=Y.current)==null||Ot.removeEventListener("mousemove",mt),(gt=Y.current)==null||gt.removeEventListener("input",st),(Rt=v.current)==null||Rt.removeEventListener("timeupdate",Xe),(it=v.current)==null||it.removeEventListener("pause",ct),(at=v.current)==null||at.removeEventListener("loadedmetadata",Be),(Ve=v.current)==null||Ve.removeEventListener("volumechange",c),document.removeEventListener("keydown",Ue),(me=v.current)!=null&&me.playing&&(l.push(m,v.current.currentTime),K&&p())}},[v,Ce]),(0,g.useEffect)(()=>{if(v.current.onended=()=>{I(v)},v.current.oncontextmenu=()=>!1,(Ce==null?void 0:Ce.indexOf(".m3u8"))>-1){if(v.current.canPlayType("application/vnd.apple.mpegurl"))v.current.src=Ce;else if(A.ZP.isSupported()){var ae=new A.ZP;ae.loadSource(Ce),ae.attachMedia(v.current)}}},[Ce]);const[_,L]=(0,g.useState)(1),F=()=>{v.current.paused||v.current.ended?v.current.play():v.current.pause(),o()};function fe(){v.current.muted=!v.current.muted,v.current.muted?(Ie.current.setAttribute("data-volume",volume.value),Ie.current.value=0):Ie.current.value=Ie.current.dataset.volume}return g.createElement("div",{style:{position:"relative"},ref:pe},g.createElement("div",{ref:B,className:`${oe.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${oe.animate__loop}`},ue&&Ge?Ge.login:" "),g.createElement("div",{className:oe.container},g.createElement("div",{className:oe["video-container"],id:"video-container"},g.createElement("div",{className:oe["playback-animation"],id:"playback-animation"},g.createElement("svg",{className:oe["playback-icons"]},g.createElement("use",{className:"hidden",href:"#play-icon"}),g.createElement("use",{href:"#pause"}))),g.createElement("video",{className:oe.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:v,autoPlay:ne}),g.createElement("div",{className:`${oe["video-controls"]} `,id:"video-controls"},g.createElement("div",{className:oe["bottom-controls"]},g.createElement("div",{className:oe["left-controls"]},g.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:F},g.createElement("svg",{className:oe["playback-icons"]},g.createElement("use",{ref:le,href:"#play-icon"}),g.createElement("use",{ref:H,style:{display:"none"},href:"#pause"}))),g.createElement("div",{className:oe.time},g.createElement("time",{id:"time-elapsed",ref:J},"00:00"),g.createElement("span",null," / "),g.createElement("time",{id:"duration",ref:j},"00:00"))),g.createElement("div",{className:oe["right-controls"]},z&&g.createElement(Z.Z,{placement:"top",overlayClassName:oe.rateOverlay,getPopupContainer:ae=>ae.parentNode,menu:{items:[{key:"1",label:g.createElement("span",{onClick:()=>{L(1),v.current.playbackRate=1}},"1.0x")},{key:"2",label:g.createElement("span",{onClick:()=>{L(1.5),v.current.playbackRate=1.5}},"1.5x")},{key:"3",label:g.createElement("span",{onClick:()=>{L(2),v.current.playbackRate=2}},"2.0x")}]}},g.createElement("div",{className:`${oe.controlText} mr5`},"\u500D\u901F")),g.createElement(de.CopyToClipboard,{text:Ce,onCopy:()=>x.ZP.success("\u590D\u5236\u6210\u529F")},g.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},g.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),g.createElement("div",{className:oe["volume-controls"]},g.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:oe["volume-button"],id:"volume-button",onClick:fe},g.createElement("i",{ref:ge,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),g.createElement("i",{ref:Pe,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),g.createElement("i",{ref:Te,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),g.createElement("input",{className:oe.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Ie,style:{display:"none"},onClick:c})),g.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:oe["fullscreen-button"],onClick:()=>{(0,se.vp)()?(0,se.BU)():(0,se.Dj)(pe.current)}},g.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),g.createElement("div",{className:oe["video-progress"]},g.createElement("progress",{ref:w,value:"0",min:"0"}),g.createElement("input",{className:oe.seek,ref:Y,value:"0",min:"0",type:"range",step:"1"}),g.createElement("div",{className:oe["seek-tooltip"],ref:ie,id:"seek-tooltip"},"00:00"))))),g.createElement("svg",{style:{display:"none"}},g.createElement("defs",null,g.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},g.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),g.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},g.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),g.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},g.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"})),g.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},g.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"})),g.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},g.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"})),g.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},g.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"})),g.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},g.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"})),g.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},g.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"})))))})},79540:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return x}});var g=i(59301);function x(Z,Q){const A=(0,g.useRef)();(0,g.useEffect)(()=>{A.current=Z}),(0,g.useEffect)(()=>{function f(){A.current()}if(Q!==null){let de=setInterval(f,Q);return()=>clearInterval(de)}},[Q])}},74676:function(ht,Me,i){"use strict";i.r(Me),i.d(Me,{default:function(){return o},formatQuery:function(){return l}});var g=i(59301),x=i(30955),Z=i(71418),Q={bg:"bg___eq_Aq",container:"container___j770l",widthle:"widthle___ouh1T"},A=i(24334),f=i(99282),de=i(43418),se=i(13570),oe=i(78673),be=i(64165),ce={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"},$=i(79540),d=i(56407),te=i(33613),q=i(59301),z=Object.defineProperty,Ce=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,M=(c,_,L)=>_ in c?z(c,_,{enumerable:!0,configurable:!0,writable:!0,value:L}):c[_]=L,u=(c,_)=>{for(var L in _||(_={}))K.call(_,L)&&M(c,L,_[L]);if(Ce)for(var L of Ce(_))T.call(_,L)&&M(c,L,_[L]);return c},S=(c,_)=>{var L={};for(var F in c)K.call(c,F)&&_.indexOf(F)<0&&(L[F]=c[F]);if(c!=null&&Ce)for(var F of Ce(c))_.indexOf(F)<0&&T.call(c,F)&&(L[F]=c[F]);return L},N=(c,_,L)=>new Promise((F,fe)=>{var ae=Re=>{try{G(L.next(Re))}catch(Ne){fe(Ne)}},he=Re=>{try{G(L.throw(Re))}catch(Ne){fe(Ne)}},G=Re=>Re.done?F(Re.value):Promise.resolve(Re.value).then(ae,he);G((L=L.apply(c,_)).next())});const k=c=>{var _=c,{videoDetail:L,globalSetting:F,loading:fe,dispatch:ae}=_,he=S(_,["videoDetail","globalSetting","loading","dispatch"]);const{queryParams:G,selectParams:Re,videoList:Ne}=L,{subject_id:W,videoId:Be}=G,{checkBoxValue:Xe,radioValue:Ze}=Re,He={videoId:Be},rt={query:G},_t=(0,g.useRef)(),ct=(0,g.useRef)(),st=(0,g.useRef)(),mt=(0,g.useRef)(5),{video_item:Ue}=L.detail||{};(0,$.Z)(()=>N(void 0,null,function*(){ct.current&&(console.log("videoRef lastUpdatedTime: ",_t.current.getLastUpdatedTime()),console.log(_t.current),yield Fe())}),mt.current*1e3);const Fe=(it=!1)=>{const at=it?{is_f:1}:{};return(0,d.DH)(u(u({},at),{id:He.videoId,point:_t.current.getLastUpdatedTime(),total:_t.current.getDuration()}))},tt=it=>(it.ed==="1"&&(ct.current=!1,Fe(!0)),!ct.current&&!it.ed&&(ct.current=!0,mt.current=_t.current.getDuration()<=5?1:5,Fe()),ae({type:"userDetail/logWatchHistory",payload:it})),Et=()=>{ct.current=!1},vt=()=>{ct.current=!0},xt=()=>{st.current=5,de.default.confirm({width:600,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u8BF7\u7ED9\u672C\u89C6\u9891\u8BC4\u5206",content:q.createElement("div",{className:"tc font14"},q.createElement(se.Z,{defaultValue:st.current,onChange:it=>st.current=it,className:ce.modalRating})),onOk:()=>N(void 0,null,function*(){if((yield(0,d.jK)({id:He.videoId,star:st.current})).status===0){const{course_id:at}=(0,te.oP)();ae({type:"videoDetail/getVideoDetail",payload:{id:He.videoId,videoId:He.videoId,course_id:at,subject_id:W}})}})})},Ot=it=>{const at=window.filterVideoSign,Ve=at.findIndex(s=>s.id===Be);if(Ve===at.length-1)return;const e=at[Ve+1].id,t=at[Ve+1].can_view,n=at[Ve+1].link,r=at[Ve+1].is_public;if(window.checkBoxValue){if(n){window.open(n);return}if(!t){de.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:q.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(!r){de.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:q.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}ae({type:"videoDetail/handleListItemClick",payload:{videoId:e}}),window.videoTimer=setTimeout(()=>{it.current.play()},2e3)}},gt=(it,at)=>{if(it==="checkBox"){const Ve=at;window.checkBoxValue=Ve,ae({type:"videoDetail/setSelectValue",payload:{radioValue:Ze,checkBoxValue:Ve}});return}ae({type:"videoDetail/setSelectValue",payload:{checkBoxValue:Xe,radioValue:at.target.value}})},Rt=()=>Ne.findIndex(Ve=>Ve.id===Be)===Ne.length-1?q.createElement("div",null,"\u5F53\u524D\u5DF2\u662F\u6700\u540E\u4E00\u4E2A\u89C6\u9891"):q.createElement("div",null,q.createElement(oe.Z,{onChange:Ve=>{gt("checkBox",Ve)},defaultChecked:Xe,size:"small"}),q.createElement("span",{className:ce.zdbf},"\u81EA\u52A8\u64AD\u653E\u4E0B\u4E00\u4E2A\u89C6\u9891"));return q.createElement("aside",{className:ce.contentWrap},q.createElement("aside",{className:ce.wrap},q.createElement("header",null),q.createElement("div",{className:ce.title},Ue==null?void 0:Ue.name),!(Ue!=null&&Ue.can_edit)&&!(Ue!=null&&Ue.is_public)?q.createElement(be.Z,{description:"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85"}):q.createElement(f.Z,{ref:_t,startTime:Ue==null?void 0:Ue.last_point,src:Ue!=null&&Ue.is_link?Ue==null?void 0:Ue.link:(Ue==null?void 0:Ue.play_url)&&A.Base64.decode(Ue==null?void 0:Ue.play_url),videoId:Ue==null?void 0:Ue.video_id,logWatchHistory:tt,handlePause:Et,handlePlay:vt,allow_skip:Ue==null?void 0:Ue.allow_skip,handlePlayEnded:Ot,toLog:()=>{}}),q.createElement("div",{className:ce.footer},q.createElement("div",{className:ce.footer_left},q.createElement("div",{className:ce.pingfen},"\u8BC4\u5206"),q.createElement(se.Z,{value:Ue==null?void 0:Ue.star,disabled:!0,className:ce.rating,style:{color:"#FFA100",fontSize:12,marginLeft:10}}),q.createElement("div",{className:ce.fenshu},(Ue==null?void 0:Ue.star)||0,"\u5206")),!(Ue!=null&&Ue.can_edit)&&!(Ue!=null&&Ue.is_public)?null:q.createElement("div",null,q.createElement("div",{className:ce.checkBox},Rt()))),q.createElement("div",{className:"mt10"},(Ue==null?void 0:Ue.description)&&q.createElement("span",{className:ce.introName},"\u7B80\u4ECB\uFF1A",Ue.description))))};var I=(0,x.connect)(({videoDetail:c,loading:_,globalSetting:L})=>({videoDetail:c,globalSetting:L,loading:_}))(k),ne=i(8591),X=i(17574),ue={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"},D=i(61666),xe=i(98705),R=i(70610),P=i(59301),v=Object.defineProperty,B=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,H=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,Y=Object.prototype.propertyIsEnumerable,w=(c,_,L)=>_ in c?v(c,_,{enumerable:!0,configurable:!0,writable:!0,value:L}):c[_]=L,j=(c,_)=>{for(var L in _||(_={}))le.call(_,L)&&w(c,L,_[L]);if(H)for(var L of H(_))Y.call(_,L)&&w(c,L,_[L]);return c},J=(c,_)=>B(c,pe(_)),ie=(c,_)=>{var L={};for(var F in c)le.call(c,F)&&_.indexOf(F)<0&&(L[F]=c[F]);if(c!=null&&H)for(var F of H(c))_.indexOf(F)<0&&Y.call(c,F)&&(L[F]=c[F]);return L},ge=(c,_,L)=>new Promise((F,fe)=>{var ae=Re=>{try{G(L.next(Re))}catch(Ne){fe(Ne)}},he=Re=>{try{G(L.throw(Re))}catch(Ne){fe(Ne)}},G=Re=>Re.done?F(Re.value):Promise.resolve(Re.value).then(ae,he);G((L=L.apply(c,_)).next())});const Te=[{name:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",icon:P.createElement("i",{className:"iconfont icon-shixun2 font20"}),bq:P.createElement("span",{style:{border:"1px solid #FF9D18",color:"#FF9D18"},className:ue.s1},"\u5B9E\u8BAD")},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",icon:P.createElement("i",{className:"iconfont icon-shipin font20"}),bq:P.createElement("span",{style:{border:"1px solid #9B18FF",color:"#9B18FF"},className:ue.s1},"\u89C6\u9891")},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",icon:P.createElement("i",{className:"iconfont icon-jiaoxueanli font20"}),bq:P.createElement("span",{style:{border:"1px solid #3061D0",color:"#3061D0"},className:ue.s1},"\u8D44\u6599")},{name:"\u7A7A\u76EE\u5F55",type:"StageCatalog",icon:P.createElement("i",{className:"iconfont icon-kongbai font20"}),bq:P.createElement("span",null)}],Pe=c=>{var _=c,{dispatch:L,pathsDetail:F,videoDetail:fe,user:ae}=_,he=ie(_,["dispatch","pathsDetail","videoDetail","user"]);const{queryParams:G,stages:Re,cust_seq:Ne,active:W}=fe,{subject_id:Be,course_id:Xe}=G,Ze=(0,x.useParams)(),[He]=(0,x.useSearchParams)(),[rt,_t]=(0,g.useState)([]),[ct,st]=(0,g.useState)([(W==null?void 0:W.id)||Number(Ze.videoId)]),[mt,Ue]=(0,g.useState)("\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55"),Fe=[".PDF",".DOC",".DOCX",".XLS",".XLSX",".PPT",".PPTX"];(0,g.useEffect)(()=>{L(Be?{type:"videoDetail/getStageData",payload:{subject_id:Be,page_type:"video"}}:{type:"videoDetail/getCourseStageData",payload:{coursesId:Xe}})},[]),(0,g.useEffect)(()=>{tt()},[fe==null?void 0:fe.stages]);const tt=()=>{let Ve=rt;Re.forEach((me,e)=>{Ve.push({title:P.createElement("div",{title:me.stage_name,className:ue.title},me.stage_name),value:me==null?void 0:me.stage_id,key:me==null?void 0:me.stage_id,icon:P.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:Et(me.items||[])})}),_t(Ve)},Et=Ve=>{function me(e){var t;const n=e.children,r=Array.isArray(n)&&n.length>0,s=e==null?void 0:e.id,{name:C,item_type:O,id:we}=e,Se=(t=Te.find(ot=>ot.type===O))==null?void 0:t.bq,De=ue.brght,Qe=W.id===we?`${De} ${ue.active}`:De;return{title:P.createElement("div",{onClick:()=>gt(e),className:De,title:C},Se,P.createElement("div",{className:ue.s3},C)),value:s,key:s,icon:P.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:r?n==null?void 0:n.map(ot=>me(ot)):[]}}return Ve==null?void 0:Ve.map(e=>me(e))},vt=(Ve,me)=>ge(void 0,null,function*(){L({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u7A0D\u540E..."}});const e=me?yield(0,xe.BK)({id:Ve}):yield(0,xe.Ir)({id:Ve});if(L({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),e!=null&&e.game_identifier||e!=null&&e.identifier){(0,te.xg)(me?`/tasks/${e==null?void 0:e.identifier}/jupyter`:`/tasks/${e.game_identifier}`);return}(e==null?void 0:e.status)===2?Ot(e==null?void 0:e.message):(e==null?void 0:e.status)===3&&xt(e==null?void 0:e.message)}),xt=Ve=>{de.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:P.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Ve,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},Ot=Ve=>{Ve=Ve!=null&&Ve.includes(".json")?Ve:`${Ve}.json`,de.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:P.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>ge(void 0,null,function*(){const me=yield(0,D.L8)({url:Ve});if(!me)return;ne.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const e=yield(0,xe.Ir)({id:me.shixun_identifier});if(e!=null&&e.game_identifier){(0,te.xg)(`/tasks/${e.game_identifier}`);return}(e==null?void 0:e.status)===2?Ot(e==null?void 0:e.message):(e==null?void 0:e.status)===3&&xt(e==null?void 0:e.message)})})},gt=Ve=>{var me,e,t,n,r;if((Ve==null?void 0:Ve.item_type)==="StageCatalog")return;clearTimeout(window.videoTimer);const{id:s,item_type:C,identifier:O,is_jupyter:we,url:Se,link:De}=Ve;if(C==="VideoItem"&&!De){if(!((me=ae.userInfo)!=null&&me.admin)&&!((e=ae.userInfo)!=null&&e.business)&&!Ve.can_view){de.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:P.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}L({type:"videoDetail/handleListItemClick",payload:{videoId:s}}),L({type:"videoDetail/getVideoDetail",payload:J(j({id:s},G),{videoId:s}),callback:Qe=>{if(Qe&&Qe.video_item&&!Qe.video_item.can_edit&&!Ve.is_public){de.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:P.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}}});return}if(C==="VideoItem"&&De){Ve.link&&(0,d.DH)({is_f:1,id:Ve.id,point:0,total:0}),window.open(De);return}if(C==="Shixun"){vt(O,we);return}if(C==="Attachment"){if(De){(0,te.xg)(De);return}let Qe=(n=Ve==null?void 0:Ve.name)==null?void 0:n.substr((t=Ve==null?void 0:Ve.name)==null?void 0:t.lastIndexOf("."));if(Fe.includes(Qe.toUpperCase())){L({type:"videoDetail/handleListItemClick",payload:{attachmentId:s}});return}else{if(!((r=F.detail)!=null&&r.allow_download)){ne.ZP.info("\u6559\u5B66\u8BFE\u4EF6\u4E0D\u652F\u6301\u4E0B\u8F7D");return}(0,te.FH)(Ve.name,R.Z.API_SERVER+Ve.url);return}}window.open(R.Z.IMG_SERVER+Se)},Rt=Ve=>{let me=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],e=["","\u5341","\u767E","\u5343","\u4E07"];Ve=parseInt(Ve);let t=s=>{let C=s.toString().split("").reverse(),O="";for(var we=0;we<C.length;we++)O=(we==0&&C[we]==0||we>0&&C[we]==0&&C[we-1]==0?"":me[C[we]]+(C[we]==0?e[0]:e[we]))+O;return O},n=Math.floor(Ve/1e4),r=Ve%1e4;return r.toString().length<4&&(r="0"+r),n?t(n)+"\u4E07"+t(r):t(Ve)},it=(Ve,me,e,t)=>{var n;const{name:r,item_type:s,id:C}=Ve,O=`${me+1}-${e+1}-${t+1}`,we=(n=Te.find(Qe=>Qe.type===s))==null?void 0:n.icon,Se=ue.brght,De=W.id===C?`${Se} ${ue.active}`:Se;return P.createElement("div",{key:O,onClick:()=>gt(Ve),className:De,style:{paddingLeft:52}},P.createElement("span",{className:ue.s1},we),!!Ne&&P.createElement("span",{className:ue.s2},O),P.createElement("span",{className:ue.s3},"\u203B ",r))},at=(Ve,me,e)=>{var t;const{name:n,item_type:r,id:s,children:C}=Ve,O=`${me+1}-${e+1}`,we=(t=Te.find(Qe=>Qe.type===r))==null?void 0:t.icon,Se=ue.brght,De=W.id===s?`${Se} ${ue.active}`:Se;return P.createElement(g.Fragment,{key:O},P.createElement("div",{onClick:()=>gt(Ve),className:De},P.createElement("span",{className:ue.s1},we),!!Ne&&P.createElement("span",{className:ue.s2},O),P.createElement("span",{className:ue.s3},"\u203B ",n)),!!C.length&&C.map((Qe,ot)=>it(Qe,me,e,ot)))};return P.createElement("aside",{className:ue.list},P.createElement("div",{className:ue.tabs_style},P.createElement("div",{className:ue.tabs_item,onClick:()=>{Ue("\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55")}},"\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55",mt=="\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55"&&P.createElement("div",{className:ue.tabs_item_active}))),P.createElement("div",{className:ue.tree_style},(rt==null?void 0:rt.length)>0&&P.createElement(X.default,{selectedKeys:ct,onSelect:(Ve,me)=>{st([...Ve])},blockNode:!0,treeData:rt,defaultExpandAll:!0,className:ue.tree_line})))};var Ie=(0,x.connect)(({user:c,videoDetail:_,loading:L,globalSetting:F,pathsDetail:fe})=>({user:c,videoDetail:_,globalSetting:F,loading:L,pathsDetail:fe}))(Pe),Je=i(51770),ke=i(59301),ze=Object.defineProperty,Ge=Object.defineProperties,V=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,h=(c,_,L)=>_ in c?ze(c,_,{enumerable:!0,configurable:!0,writable:!0,value:L}):c[_]=L,a=(c,_)=>{for(var L in _||(_={}))m.call(_,L)&&h(c,L,_[L]);if(Le)for(var L of Le(_))y.call(_,L)&&h(c,L,_[L]);return c},b=(c,_)=>Ge(c,V(_)),U=(c,_)=>{var L={};for(var F in c)m.call(c,F)&&_.indexOf(F)<0&&(L[F]=c[F]);if(c!=null&&Le)for(var F of Le(c))_.indexOf(F)<0&&y.call(c,F)&&(L[F]=c[F]);return L},E=(c,_,L)=>new Promise((F,fe)=>{var ae=Re=>{try{G(L.next(Re))}catch(Ne){fe(Ne)}},he=Re=>{try{G(L.throw(Re))}catch(Ne){fe(Ne)}},G=Re=>Re.done?F(Re.value):Promise.resolve(Re.value).then(ae,he);G((L=L.apply(c,_)).next())});const l=c=>{const{subject_id:_}=c;return{subject_id:_,course_id:_}},p=c=>{var _=c,{videoDetail:L,globalSetting:F,loading:fe,pathsDetail:ae,dispatch:he}=_,G=U(_,["videoDetail","globalSetting","loading","pathsDetail","dispatch"]),Re,Ne;const{queryParams:W,videoList:Be,attachmentList:Xe,active:Ze}=L,{subject_id:He,videoId:rt}=W,_t={videoId:rt};(0,g.useEffect)(()=>{if(Ze){const{item_type:mt,id:Ue}=Ze;mt==="VideoItem"&&he({type:"videoDetail/getVideoDetail",payload:b(a({},W),{id:Ue})})}},[Ze.id]),console.log("---",Ze),(0,g.useEffect)(()=>{He&&ct()},[]);function ct(){return E(this,null,function*(){const mt=yield he({type:"pathsDetail/getPathsDetail",payload:{id:He}})})}(0,g.useEffect)(()=>{var mt,Ue;(0,te.Dk)((Ue=(mt=L.detail)==null?void 0:mt.video_item)==null?void 0:Ue.name)},[L]);let st={width:1200};return Ze&&Ze.item_type==="Attachment"&&Ze.content_type==="application/pdf"&&(st={width:1250,marginLeft:(document.body.clientWidth-1200)/2}),ke.createElement(Z.Z,{spinning:!1},ke.createElement("section",{className:Q.bg},ke.createElement("div",{className:Q.container,style:st},ke.createElement(Ie,null),Ze&&Ze.item_type==="VideoItem"&&ke.createElement(I,null),Ze&&Ze.item_type==="Attachment"&&Ze.content_type==="application/pdf"&&Ze.url&&ke.createElement("div",{className:Q.widthle},ke.createElement(Je.Z,{disabledDownload:!((Re=ae.detail)!=null&&Re.allow_download),type:"pdf",filename:Ze.name,data:R.Z.API_SERVER+Ze.url,style:{position:"absolute",zIndex:1}})),Ze&&Ze.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(Ze.content_type)&&Ze.url&&ke.createElement("div",{className:Q.widthle},ke.createElement(Je.Z,{disabledDownload:!((Ne=ae.detail)!=null&&Ne.allow_download),type:"office",data:R.Z.API_SERVER+Ze.url,style:{position:"absolute",zIndex:1}})))))};var o=(0,x.connect)(({videoDetail:c,loading:_,globalSetting:L,pathsDetail:F})=>({videoDetail:c,globalSetting:L,loading:_,pathsDetail:F}))(p)},8099:function(ht,Me,i){"use strict";i.d(Me,{BU:function(){return x},Dj:function(){return g},gH:function(){return Z},vp:function(){return Q}});function g(A){try{A.mozRequestFullScreen?A.mozRequestFullScreen():A.webkitRequestFullScreen&&A.webkitRequestFullScreen()}catch(f){console.log(f,":e")}}function x(){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 Q(){var A=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,f=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",A),window.isFullScreen?window.isFullScreen:A!=null}},58231:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return Ve}});class g{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<arguments.length;n++){let r=arguments[n];if(r!=null)for(let s in r)r.hasOwnProperty(s)&&(t[s]=r[s])}return t},typeof self.Promise!="function"&&i(3867).polyfill()}}g.install();var x=g,Z=i(86204),Q=i.n(Z);class A{static e(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","error",n),A.ENABLE_ERROR&&(console.error?console.error(n):console.warn?console.warn(n):console.log(n))}static i(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","info",n),A.ENABLE_INFO&&(console.info?console.info(n):console.log(n))}static w(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","warn",n),A.ENABLE_WARN&&(console.warn?console.warn(n):console.log(n))}static d(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","debug",n),A.ENABLE_DEBUG&&(console.debug?console.debug(n):console.log(n))}static v(e,t){(!e||A.FORCE_GLOBAL_TAG)&&(e=A.GLOBAL_TAG);let n=`[${e}] > ${t}`;A.ENABLE_CALLBACK&&A.emitter.emit("log","verbose",n),A.ENABLE_VERBOSE&&console.log(n)}}A.GLOBAL_TAG="flv.js",A.FORCE_GLOBAL_TAG=!1,A.ENABLE_ERROR=!0,A.ENABLE_INFO=!0,A.ENABLE_WARN=!0,A.ENABLE_DEBUG=!0,A.ENABLE_VERBOSE=!0,A.ENABLE_CALLBACK=!1,A.emitter=new(Q());var f=A;class de{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 se=de;class oe{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class be extends oe{constructor(e){super(e)}get name(){return"IllegalStateException"}}class ce extends oe{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class $ extends oe{constructor(e){super(e)}get name(){return"NotImplementedException"}}const d={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},te={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class q{constructor(e){this._type=e||"undefined",this._status=d.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=d.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===d.kConnecting||this._status===d.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 $("Unimplemented abstract function!")}abort(){throw new $("Unimplemented abstract function!")}}let z={};function Ce(){let me=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(me)||/(opr)[\/]([\w.]+)/.exec(me)||/(chrome)[ \/]([\w.]+)/.exec(me)||/(iemobile)[\/]([\w.]+)/.exec(me)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(me)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(me)||/(webkit)[ \/]([\w.]+)/.exec(me)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(me)||/(msie) ([\w.]+)/.exec(me)||me.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(me)||me.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(me)||[],t=/(ipad)/.exec(me)||/(ipod)/.exec(me)||/(windows phone)/.exec(me)||/(iphone)/.exec(me)||/(kindle)/.exec(me)||/(android)/.exec(me)||/(windows)/.exec(me)||/(mac)/.exec(me)||/(linux)/.exec(me)||/(cros)/.exec(me)||[],n={browser:e[5]||e[3]||e[1]||"",version:e[2]||e[4]||"0",majorVersion:e[4]||e[2]||"0",platform:t[0]||""},r={};if(n.browser){r[n.browser]=!0;let s=n.majorVersion.split(".");r.version={major:parseInt(n.majorVersion,10),string:n.version},s.length>1&&(r.version.minor=parseInt(s[1],10)),s.length>2&&(r.version.build=parseInt(s[2],10))}if(n.platform&&(r[n.platform]=!0),(r.chrome||r.opr||r.safari)&&(r.webkit=!0),r.rv||r.iemobile){r.rv&&delete r.rv;let s="msie";n.browser=s,r[s]=!0}if(r.edge){delete r.edge;let s="msedge";n.browser=s,r[s]=!0}if(r.opr){let s="opera";n.browser=s,r[s]=!0}if(r.safari&&r.android){let s="android";n.browser=s,r[s]=!0}r.name=n.browser,r.platform=n.platform;for(let s in z)z.hasOwnProperty(s)&&delete z[s];Object.assign(z,r)}Ce();var K=z;class T extends q{static isSupported(){try{let e=K.msedge&&K.version.minor>=15048,t=K.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 r=this._seekHandler.getConfig(n,t),s=new self.Headers;if(typeof r.headers=="object"){let O=r.headers;for(let we in O)O.hasOwnProperty(we)&&s.append(we,O[we])}let C={method:"GET",headers:s,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let O in this._config.headers)s.append(O,this._config.headers[O]);e.cors===!1&&(C.mode="same-origin"),e.withCredentials&&(C.credentials="include"),e.referrerPolicy&&(C.referrerPolicy=e.referrerPolicy),this._status=d.kConnecting,self.fetch(r.url,C).then(O=>{if(this._requestAbort){this._requestAbort=!1,this._status=d.kIdle;return}if(O.ok&&O.status>=200&&O.status<=299){if(O.url!==r.url&&this._onURLRedirect){let Se=this._seekHandler.removeURLParameters(O.url);this._onURLRedirect(Se)}let we=O.headers.get("Content-Length");return we!=null&&(this._contentLength=parseInt(we),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,O.body.getReader())}else if(this._status=d.kError,this._onError)this._onError(te.HTTP_STATUS_CODE_INVALID,{code:O.status,msg:O.statusText});else throw new oe("FetchStreamLoader: Http code invalid, "+O.status+" "+O.statusText)}).catch(O=>{if(this._status=d.kError,this._onError)this._onError(te.EXCEPTION,{code:-1,msg:O.message});else throw O})}abort(){this._requestAbort=!0}_pump(e){return e.read().then(t=>{if(t.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=d.kError;let n=te.EARLY_EOF,r={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(n,r);else throw new oe(r.msg)}else this._status=d.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1);else{if(this._requestAbort===!0)return this._requestAbort=!1,this._status=d.kComplete,e.cancel();this._status=d.kBuffering;let n=t.value.buffer,r=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength,this._onDataArrival&&this._onDataArrival(n,r,this._receivedLength),this._pump(e)}}).catch(t=>{if(t.code===11&&K.msedge)return;this._status=d.kError;let n=0,r=null;if((t.code===19||t.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(n=te.EARLY_EOF,r={code:t.code,msg:"Fetch stream meet Early-EOF"}):(n=te.EXCEPTION,r={code:t.code,msg:t.message}),this._onError)this._onError(n,r);else throw new oe(r.msg)})}}var M=T;class u extends q{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="moz-chunked-arraybuffer",e.responseType==="moz-chunked-arraybuffer"}catch(e){return f.w("MozChunkedLoader",e.message),!1}}constructor(e,t){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),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 r=this._seekHandler.getConfig(n,t);this._requestURL=r.url;let s=this._xhr=new XMLHttpRequest;if(s.open("GET",r.url,!0),s.responseType="moz-chunked-arraybuffer",s.onreadystatechange=this._onReadyStateChange.bind(this),s.onprogress=this._onProgress.bind(this),s.onloadend=this._onLoadEnd.bind(this),s.onerror=this._onXhrError.bind(this),e.withCredentials&&(s.withCredentials=!0),typeof r.headers=="object"){let C=r.headers;for(let O in C)C.hasOwnProperty(O)&&s.setRequestHeader(O,C[O])}if(typeof this._config.headers=="object"){let C=this._config.headers;for(let O in C)C.hasOwnProperty(O)&&s.setRequestHeader(O,C[O])}this._status=d.kConnecting,s.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=d.kComplete}_onReadyStateChange(e){let t=e.target;if(t.readyState===2){if(t.responseURL!=null&&t.responseURL!==this._requestURL&&this._onURLRedirect){let n=this._seekHandler.removeURLParameters(t.responseURL);this._onURLRedirect(n)}if(t.status!==0&&(t.status<200||t.status>299))if(this._status=d.kError,this._onError)this._onError(te.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new oe("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);else this._status=d.kBuffering}}_onProgress(e){if(this._status===d.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===d.kError)return;this._status=d.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(e){this._status=d.kError;let t=0,n=null;if(this._contentLength&&e.loaded<this._contentLength?(t=te.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=te.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new oe(n.msg)}}var S=u;class N extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="ms-stream",e.responseType==="ms-stream"}catch(e){return Log.w("MSStreamLoader",e.message),!1}}constructor(e,t){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._reader=null,this._totalRange=null,this._currentRange=null,this._currentRequestURL=null,this._currentRedirectedURL=null,this._contentLength=null,this._receivedLength=0,this._bufferLimit=16*1024*1024,this._lastTimeBufferSize=0,this._isReconnecting=!1}destroy(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),super.destroy()}open(e,t){this._internalOpen(e,t,!1)}_internalOpen(e,t,n){this._dataSource=e,n?this._currentRange=t:this._totalRange=t;let r=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?r=this._currentRedirectedURL:e.redirectedURL!=null&&(r=e.redirectedURL));let s=this._seekHandler.getConfig(r,t);this._currentRequestURL=s.url;let C=this._reader=new self.MSStreamReader;C.onprogress=this._msrOnProgress.bind(this),C.onload=this._msrOnLoad.bind(this),C.onerror=this._msrOnError.bind(this);let O=this._xhr=new XMLHttpRequest;if(O.open("GET",s.url,!0),O.responseType="ms-stream",O.onreadystatechange=this._xhrOnReadyStateChange.bind(this),O.onerror=this._xhrOnError.bind(this),e.withCredentials&&(O.withCredentials=!0),typeof s.headers=="object"){let we=s.headers;for(let Se in we)we.hasOwnProperty(Se)&&O.setRequestHeader(Se,we[Se])}if(typeof this._config.headers=="object"){let we=this._config.headers;for(let Se in we)we.hasOwnProperty(Se)&&O.setRequestHeader(Se,we[Se])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,O.send()}abort(){this._internalAbort(),this._status=LoaderStatus.kComplete}_internalAbort(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}_xhrOnReadyStateChange(e){let t=e.target;if(t.readyState===2)if(t.status>=200&&t.status<=299){if(this._status=LoaderStatus.kBuffering,t.responseURL!=null){let r=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&r!==this._currentRedirectedURL&&(this._currentRedirectedURL=r,this._onURLRedirect&&this._onURLRedirect(r))}let n=t.getResponseHeader("Content-Length");if(n!=null&&this._contentLength==null){let r=parseInt(n);r>0&&(this._contentLength=r,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 r=n.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=n.byteLength;let s=this._totalRange.from+this._receivedLength;this._receivedLength+=r.byteLength,this._onDataArrival&&this._onDataArrival(r,s,this._receivedLength),n.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${s+r.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let e={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,e,!0)}}_msrOnLoad(e){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(e){this._status=LoaderStatus.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength<this._contentLength?(t=LoaderErrors.EARLY_EOF,n={code:-1,msg:"MSStream meet Early-Eof"}):(t=LoaderErrors.EARLY_EOF,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new RuntimeException(n.msg)}}var k=null;class I extends q{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer",e.responseType==="arraybuffer"}catch(e){return f.w("RangeLoader",e.message),!1}}constructor(e,t){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=e,this._config=t,this._needStash=!1,this._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],this._currentChunkSizeKB=384,this._currentSpeedNormalized=0,this._zeroSpeedChunkCount=0,this._xhr=null,this._speedSampler=new se,this._requestAbort=!1,this._waitForTotalLength=!1,this._totalLengthReceived=!1,this._currentRequestURL=null,this._currentRedirectedURL=null,this._currentRequestRange=null,this._totalLength=null,this._contentLength=null,this._receivedLength=0,this._lastTimeLoaded=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}get currentSpeed(){return this._speedSampler.lastSecondKBps}open(e,t){this._dataSource=e,this._range=t,this._status=d.kConnecting;let n=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(n=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!n?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}_openSubRange(){let e=this._currentChunkSizeKB*1024,t=this._range.from+this._receivedLength,n=t+e;this._contentLength!=null&&n-this._range.from>=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 r=this._seekHandler.getConfig(n,t);this._currentRequestURL=r.url;let s=this._xhr=new XMLHttpRequest;if(s.open("GET",r.url,!0),s.responseType="arraybuffer",s.onreadystatechange=this._onReadyStateChange.bind(this),s.onprogress=this._onProgress.bind(this),s.onload=this._onLoad.bind(this),s.onerror=this._onXhrError.bind(this),e.withCredentials&&(s.withCredentials=!0),typeof r.headers=="object"){let C=r.headers;for(let O in C)C.hasOwnProperty(O)&&s.setRequestHeader(O,C[O])}if(typeof this._config.headers=="object"){let C=this._config.headers;for(let O in C)C.hasOwnProperty(O)&&s.setRequestHeader(O,C[O])}s.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=d.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=d.kBuffering}else if(this._status=d.kError,this._onError)this._onError(te.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new oe("RangeLoader: Http code invalid, "+t.status+" "+t.statusText)}}_onProgress(e){if(this._status===d.kError)return;if(this._contentLength===null){let n=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,n=!0;let r=e.total;this._internalAbort(),r!=null&r!==0&&(this._totalLength=r)}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,r=0,s=0,C=n;if(e<t[0])return t[0];for(;s<=C;){if(r=s+Math.floor((C-s)/2),r===n||e>=t[r]&&e<t[r+1])return t[r];t[r]<e?s=r+1:C=r-1}}_onLoad(e){if(this._status===d.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let t=this._speedSampler.lastSecondKBps;if(t===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(t=this._speedSampler.currentKBps)),t!==0){let C=this._normalizeSpeed(t);this._currentSpeedNormalized!==C&&(this._currentSpeedNormalized=C,this._currentChunkSizeKB=C)}let n=e.target.response,r=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength;let s=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():s=!0,this._onDataArrival&&this._onDataArrival(n,r,this._receivedLength),s&&(this._status=d.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(e){this._status=d.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=te.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=te.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new oe(n.msg)}}var ne=I;class X extends q{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(e){return!1}}constructor(){super("websocket-loader"),this.TAG="WebSocketLoader",this._needStash=!0,this._ws=null,this._requestAbort=!1,this._receivedLength=0}destroy(){this._ws&&this.abort(),super.destroy()}open(e){try{let t=this._ws=new self.WebSocket(e.url);t.binaryType="arraybuffer",t.onopen=this._onWebSocketOpen.bind(this),t.onclose=this._onWebSocketClose.bind(this),t.onmessage=this._onWebSocketMessage.bind(this),t.onerror=this._onWebSocketError.bind(this),this._status=d.kConnecting}catch(t){this._status=d.kError;let n={code:t.code,msg:t.message};if(this._onError)this._onError(te.EXCEPTION,n);else throw new oe(n.msg)}}abort(){let e=this._ws;e&&(e.readyState===0||e.readyState===1)&&(this._requestAbort=!0,e.close()),this._ws=null,this._status=d.kComplete}_onWebSocketOpen(e){this._status=d.kBuffering}_onWebSocketClose(e){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=d.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(e){if(e.data instanceof ArrayBuffer)this._dispatchArrayBuffer(e.data);else if(e.data instanceof Blob){let t=new FileReader;t.onload=()=>{this._dispatchArrayBuffer(t.result)},t.readAsArrayBuffer(e.data)}else{this._status=d.kError;let t={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(this._onError)this._onError(te.EXCEPTION,t);else throw new oe(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=d.kError;let t={code:e.code,msg:e.message};if(this._onError)this._onError(te.EXCEPTION,t);else throw new oe(t.msg)}}var ue=X;class D{constructor(e){this._zeroStart=e||!1}getConfig(e,t){let n={};if(t.from!==0||t.to!==-1){let r;t.to!==-1?r=`bytes=${t.from.toString()}-${t.to.toString()}`:r=`bytes=${t.from.toString()}-`,n.Range=r}else this._zeroStart&&(n.Range="bytes=0-");return{url:e,headers:n}}removeURLParameters(e){return e}}var xe=D;class R{constructor(e,t){this._startName=e,this._endName=t}getConfig(e,t){let n=e;if(t.from!==0||t.to!==-1){let r=!0;n.indexOf("?")===-1&&(n+="?",r=!1),r&&(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,r=e.indexOf("?");r!==-1&&(n=e.substring(r+1));let s="";if(n!=null&&n.length>0){let C=n.split("&");for(let O=0;O<C.length;O++){let we=C[O].split("="),Se=O>0;we[0]!==this._startName&&we[0]!==this._endName&&(Se&&(s+="&"),s+=C[O])}}return s.length===0?t:t+"?"+s}}var P=R;class v{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 se,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===ne?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 P(t,n)}else if(e.seekType==="custom"){if(typeof e.customSeekHandler!="function")throw new ce("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}else throw new ce(`Invalid seekType in config: ${e.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=ue;else if(M.isSupported())this._loaderClass=M;else if(S.isSupported())this._loaderClass=S;else if(ne.isSupported())this._loaderClass=ne;else throw new oe("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 ce("Url must be a non-empty string!");this._dataSource.url=e}_expandBuffer(e){let t=this._stashSize;for(;t+1024*1024*1<e;)t*=2;if(t+=1024*1024*1,t===this._bufferSize)return;let n=new ArrayBuffer(t);if(this._stashUsed>0){let r=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(n,0,t).set(r,0)}this._stashBuffer=n,this._bufferSize=t}_normalizeSpeed(e){let t=this._speedNormalizeList,n=t.length-1,r=0,s=0,C=n;if(e<t[0])return t[0];for(;s<=C;){if(r=s+Math.floor((C-s)/2),r===n||e>=t[r]&&e<t[r+1])return t[r];t[r]<e?s=r+1:C=r-1}}_adjustStashSize(e){let t=0;this._config.isLive||e<512?t=e: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._bufferSize<n&&this._expandBuffer(n),this._stashSize=t*1024}_dispatchChunks(e,t){return this._currentRange.to=t+e.byteLength-1,this._onDataArrival(e,t)}_onURLRedirect(e){this._redirectedURL=e,this._onRedirect&&this._onRedirect(e)}_onContentLengthKnown(e){e&&this._fullRequestFlag&&(this._totalLength=e,this._fullRequestFlag=!1)}_onLoaderChunkArrival(e,t,n){if(!this._onDataArrival)throw new be("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(e.byteLength);let r=this._speedSampler.lastSecondKBps;if(r!==0){let s=this._normalizeSpeed(r);this._speedNormalized!==s&&(this._speedNormalized=s,this._adjustStashSize(s))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=t),this._stashUsed+e.byteLength<=this._stashSize)new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;else{let s=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let C=this._stashBuffer.slice(0,this._stashUsed),O=this._dispatchChunks(C,this._stashByteStart);if(O<C.byteLength){if(O>0){let we=new Uint8Array(C,O);s.set(we,0),this._stashUsed=we.byteLength,this._stashByteStart+=O}}else this._stashUsed=0,this._stashByteStart+=O;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),s=new Uint8Array(this._stashBuffer,0,this._bufferSize)),s.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{let C=this._dispatchChunks(e,t);if(C<e.byteLength){let O=e.byteLength-C;O>this._bufferSize&&(this._expandBuffer(O),s=new Uint8Array(this._stashBuffer,0,this._bufferSize)),s.set(new Uint8Array(e,C),0),this._stashUsed+=O,this._stashByteStart=t+C}}}else if(this._stashUsed===0){let s=this._dispatchChunks(e,t);if(s<e.byteLength){let C=e.byteLength-s;C>this._bufferSize&&this._expandBuffer(C),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,s),0),this._stashUsed+=C,this._stashByteStart=t+s}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);let s=new Uint8Array(this._stashBuffer,0,this._bufferSize);s.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;let C=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(C<this._stashUsed&&C>0){let O=new Uint8Array(this._stashBuffer,C);s.set(O,0)}this._stashUsed-=C,this._stashByteStart+=C}}_flushStashBuffer(e){if(this._stashUsed>0){let t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),r=t.byteLength-n;if(n<t.byteLength)if(e)f.w(this.TAG,`${r} bytes unconsumed data remain when flush buffer, dropped`);else{if(n>0){let s=new Uint8Array(this._stashBuffer,0,this._bufferSize),C=new Uint8Array(t,n);s.set(C,0),this._stashUsed=C.byteLength,this._stashByteStart+=n}return 0}return this._stashUsed=0,this._stashByteStart=0,r}return 0}_onLoaderComplete(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(e,t){switch(f.e(this.TAG,`Loader error, code = ${t.code}, msg = ${t.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=te.UNRECOVERABLE_EARLY_EOF),e){case te.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let n=this._currentRange.to+1;n<this._totalLength&&(f.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(n,!1));return}e=te.UNRECOVERABLE_EARLY_EOF;break}case te.UNRECOVERABLE_EARLY_EOF:case te.CONNECTING_TIMEOUT:case te.HTTP_STATUS_CODE_INVALID:case te.EXCEPTION:break}if(this._onError)this._onError(e,t);else throw new oe("IOException: "+t.msg)}}var B=v;const pe={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function H(){return Object.assign({},pe)}class le{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let e=new B({},H()),t=e.loaderType;return e.destroy(),t=="fetch-stream-loader"||t=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let e=new B({},H()),t=e.loaderType;return e.destroy(),t}static supportNativeMediaPlayback(e){le.videoElement==null&&(le.videoElement=window.document.createElement("video"));let t=le.videoElement.canPlayType(e);return t==="probably"||t=="maybe"}static getFeatureList(){let e={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return e.mseFlvPlayback=le.supportMSEH264Playback(),e.networkStreamIO=le.supportNetworkStreamIO(),e.networkLoaderName=le.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=le.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeWebmVP8Playback=le.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=le.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}var Y=le,j={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};class J{static get forceGlobalTag(){return f.FORCE_GLOBAL_TAG}static set forceGlobalTag(e){f.FORCE_GLOBAL_TAG=e,J._notifyChange()}static get globalTag(){return f.GLOBAL_TAG}static set globalTag(e){f.GLOBAL_TAG=e,J._notifyChange()}static get enableAll(){return f.ENABLE_VERBOSE&&f.ENABLE_DEBUG&&f.ENABLE_INFO&&f.ENABLE_WARN&&f.ENABLE_ERROR}static set enableAll(e){f.ENABLE_VERBOSE=e,f.ENABLE_DEBUG=e,f.ENABLE_INFO=e,f.ENABLE_WARN=e,f.ENABLE_ERROR=e,J._notifyChange()}static get enableDebug(){return f.ENABLE_DEBUG}static set enableDebug(e){f.ENABLE_DEBUG=e,J._notifyChange()}static get enableVerbose(){return f.ENABLE_VERBOSE}static set enableVerbose(e){f.ENABLE_VERBOSE=e,J._notifyChange()}static get enableInfo(){return f.ENABLE_INFO}static set enableInfo(e){f.ENABLE_INFO=e,J._notifyChange()}static get enableWarn(){return f.ENABLE_WARN}static set enableWarn(e){f.ENABLE_WARN=e,J._notifyChange()}static get enableError(){return f.ENABLE_ERROR}static set enableError(e){f.ENABLE_ERROR=e,J._notifyChange()}static getConfig(){return{globalTag:f.GLOBAL_TAG,forceGlobalTag:f.FORCE_GLOBAL_TAG,enableVerbose:f.ENABLE_VERBOSE,enableDebug:f.ENABLE_DEBUG,enableInfo:f.ENABLE_INFO,enableWarn:f.ENABLE_WARN,enableError:f.ENABLE_ERROR,enableCallback:f.ENABLE_CALLBACK}}static applyConfig(e){f.GLOBAL_TAG=e.globalTag,f.FORCE_GLOBAL_TAG=e.forceGlobalTag,f.ENABLE_VERBOSE=e.enableVerbose,f.ENABLE_DEBUG=e.enableDebug,f.ENABLE_INFO=e.enableInfo,f.ENABLE_WARN=e.enableWarn,f.ENABLE_ERROR=e.enableError,f.ENABLE_CALLBACK=e.enableCallback}static _notifyChange(){let e=J.emitter;if(e.listenerCount("change")>0){let t=J.getConfig();e.emit("change",t)}}static registerListener(e){J.emitter.addListener("change",e)}static removeListener(e){J.emitter.removeListener("change",e)}static addLogListener(e){f.emitter.addListener("log",e),f.emitter.listenerCount("log")>0&&(f.ENABLE_CALLBACK=!0,J._notifyChange())}static removeLogListener(e){f.emitter.removeListener("log",e),f.emitter.listenerCount("log")===0&&(f.ENABLE_CALLBACK=!1,J._notifyChange())}}J.emitter=new(Q());var ie=J;class ge{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,r=e.length-1,s=0,C=0,O=r;for(t<e[0]&&(n=0,C=O+1);C<=O;)if(s=C+Math.floor((O-C)/2),s===r||t>=e[s]&&t<e[s+1]){n=s;break}else e[s]<t?C=s+1:O=s-1;return n}}var Te=ge;function Pe(me,e,t){let n=me;if(e+t<n.length){for(;t--;)if((n[++e]&192)!==128)return!1;return!0}else return!1}function Ie(me){let e=[],t=me,n=0,r=me.length;for(;n<r;){if(t[n]<128){e.push(String.fromCharCode(t[n])),++n;continue}else if(!(t[n]<192)){if(t[n]<224){if(Pe(t,n,1)){let s=(t[n]&31)<<6|t[n+1]&63;if(s>=128){e.push(String.fromCharCode(s&65535)),n+=2;continue}}}else if(t[n]<240){if(Pe(t,n,2)){let s=(t[n]&15)<<12|(t[n+1]&63)<<6|t[n+2]&63;if(s>=2048&&(s&63488)!==55296){e.push(String.fromCharCode(s&65535)),n+=3;continue}}}else if(t[n]<248&&Pe(t,n,3)){let s=(t[n]&7)<<18|(t[n+1]&63)<<12|(t[n+2]&63)<<6|t[n+3]&63;if(s>65536&&s<1114112){s-=65536,e.push(String.fromCharCode(s>>>10|55296)),e.push(String.fromCharCode(s&1023|56320)),n+=4;continue}}}e.push("\uFFFD"),++n}return e.join("")}var Je=Ie;let ke=function(){let me=new ArrayBuffer(2);return new DataView(me).setInt16(0,256,!0),new Int16Array(me)[0]===256}();class ze{static parseScriptData(e,t,n){let r={};try{let s=ze.parseValue(e,t,n),C=ze.parseValue(e,t+s.size,n-s.size);r[s.data]=C.data}catch(s){f.e("AMF",s.toString())}return r}static parseObject(e,t,n){if(n<3)throw new be("Data not enough when parse ScriptDataObject");let r=ze.parseString(e,t,n),s=ze.parseValue(e,t+r.size,n-r.size),C=s.objectEnd;return{data:{name:r.data,value:s.data},size:r.size+s.size,objectEnd:C}}static parseVariable(e,t,n){return ze.parseObject(e,t,n)}static parseString(e,t,n){if(n<2)throw new be("Data not enough when parse String");let s=new DataView(e,t,n).getUint16(0,!ke),C;return s>0?C=Je(new Uint8Array(e,t+2,s)):C="",{data:C,size:2+s}}static parseLongString(e,t,n){if(n<4)throw new be("Data not enough when parse LongString");let s=new DataView(e,t,n).getUint32(0,!ke),C;return s>0?C=Je(new Uint8Array(e,t+4,s)):C="",{data:C,size:4+s}}static parseDate(e,t,n){if(n<10)throw new be("Data size invalid when parse Date");let r=new DataView(e,t,n),s=r.getFloat64(0,!ke),C=r.getInt16(8,!ke);return s+=C*60*1e3,{data:new Date(s),size:10}}static parseValue(e,t,n){if(n<1)throw new be("Data not enough when parse Value");let r=new DataView(e,t,n),s=1,C=r.getUint8(0),O,we=!1;try{switch(C){case 0:O=r.getFloat64(1,!ke),s+=8;break;case 1:{O=!!r.getUint8(1),s+=1;break}case 2:{let Se=ze.parseString(e,t+1,n-1);O=Se.data,s+=Se.size;break}case 3:{O={};let Se=0;for((r.getUint32(n-4,!ke)&16777215)===9&&(Se=3);s<n-4;){let De=ze.parseObject(e,t+s,n-s-Se);if(De.objectEnd)break;O[De.data.name]=De.data.value,s+=De.size}s<=n-3&&(r.getUint32(s-1,!ke)&16777215)===9&&(s+=3);break}case 8:{O={},s+=4;let Se=0;for((r.getUint32(n-4,!ke)&16777215)===9&&(Se=3);s<n-8;){let De=ze.parseVariable(e,t+s,n-s-Se);if(De.objectEnd)break;O[De.data.name]=De.data.value,s+=De.size}s<=n-3&&(r.getUint32(s-1,!ke)&16777215)===9&&(s+=3);break}case 9:O=void 0,s=1,we=!0;break;case 10:{O=[];let Se=r.getUint32(1,!ke);s+=4;for(let De=0;De<Se;De++){let Qe=ze.parseValue(e,t+s,n-s);O.push(Qe.data),s+=Qe.size}break}case 11:{let Se=ze.parseDate(e,t+1,n-1);O=Se.data,s+=Se.size;break}case 12:{let Se=ze.parseString(e,t+1,n-1);O=Se.data,s+=Se.size;break}default:s=n,f.w("AMF","Unsupported AMF value type "+C)}}catch(Se){f.e("AMF",Se.toString())}return{data:O,size:s,objectEnd:we}}}var Ge=ze;class V{constructor(e){this.TAG="ExpGolomb",this._buffer=e,this._buffer_index=0,this._total_bytes=e.byteLength,this._total_bits=e.byteLength*8,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let e=this._total_bytes-this._buffer_index;if(e<=0)throw new be("ExpGolomb: _fillCurrentWord() but no bytes available");let t=Math.min(4,e),n=new Uint8Array(4);n.set(this._buffer.subarray(this._buffer_index,this._buffer_index+t)),this._current_word=new DataView(n.buffer).getUint32(0,!1),this._buffer_index+=t,this._current_word_bits_left=t*8}readBits(e){if(e>32)throw new ce("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let C=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,C}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 r=Math.min(n,this._current_word_bits_left),s=this._current_word>>>32-r;return this._current_word<<=r,this._current_word_bits_left-=r,t=t<<r|s,t}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let e;for(e=0;e<this._current_word_bits_left;e++)if(this._current_word&2147483648>>>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 Le=V;class m{static _ebsp2rbsp(e){let t=e,n=t.byteLength,r=new Uint8Array(n),s=0;for(let C=0;C<n;C++)C>=2&&t[C]===3&&t[C-1]===0&&t[C-2]===0||(r[s]=t[C],s++);return new Uint8Array(r.buffer,0,s)}static parseSPS(e){let t=m._ebsp2rbsp(e),n=new Le(t);n.readByte();let r=n.readByte();n.readByte();let s=n.readByte();n.readUEG();let C=m.getProfileString(r),O=m.getLevelString(s),we=1,Se=420,De=[0,420,422,444],Qe=8;if((r===100||r===110||r===122||r===244||r===44||r===83||r===86||r===118||r===128||r===138||r===144)&&(we=n.readUEG(),we===3&&n.readBits(1),we<=3&&(Se=De[we]),Qe=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let bt=we!==3?8:12;for(let yt=0;yt<bt;yt++)n.readBool()&&(yt<6?m._skipScalingList(n,16):m._skipScalingList(n,64))}n.readUEG();let ot=n.readUEG();if(ot===0)n.readUEG();else if(ot===1){n.readBits(1),n.readSEG(),n.readSEG();let bt=n.readUEG();for(let yt=0;yt<bt;yt++)n.readSEG()}let Ke=n.readUEG();n.readBits(1);let ut=n.readUEG(),We=n.readUEG(),Oe=n.readBits(1);Oe===0&&n.readBits(1),n.readBits(1);let $e=0,nt=0,qe=0,pt=0;n.readBool()&&($e=n.readUEG(),nt=n.readUEG(),qe=n.readUEG(),pt=n.readUEG());let It=1,Ye=1,St=0,re=!0,ee=0,ve=0;if(n.readBool()){if(n.readBool()){let bt=n.readByte(),yt=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],wt=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];bt>0&&bt<16?(It=yt[bt-1],Ye=wt[bt-1]):bt===255&&(It=n.readByte()<<8|n.readByte(),Ye=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 bt=n.readBits(32),yt=n.readBits(32);re=n.readBool(),ee=yt,ve=bt*2,St=ee/ve}}let ye=1;(It!==1||Ye!==1)&&(ye=It/Ye);let Ee=0,_e=0;if(we===0)Ee=1,_e=2-Oe;else{let bt=we===3?1:2,yt=we===1?2:1;Ee=bt,_e=yt*(2-Oe)}let je=(ut+1)*16,ft=(2-Oe)*((We+1)*16);je-=($e+nt)*Ee,ft-=(qe+pt)*_e;let dt=Math.ceil(je*ye);return n.destroy(),n=null,{profile_string:C,level_string:O,bit_depth:Qe,ref_frames:Ke,chroma_format:Se,chroma_format_string:m.getChromaFormatString(Se),frame_rate:{fixed:re,fps:St,fps_den:ve,fps_num:ee},sar_ratio:{width:It,height:Ye},codec_size:{width:je,height:ft},present_size:{width:dt,height:ft}}}static _skipScalingList(e,t){let n=8,r=8,s=0;for(let C=0;C<t;C++)r!==0&&(s=e.readSEG(),r=(n+s+256)%256),n=r===0?n:r}static getProfileString(e){switch(e){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}static getLevelString(e){return(e/10).toFixed(1)}static getChromaFormatString(e){switch(e){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var y=m,a={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function b(me){return me>>>8&255|(me&255)<<8}function U(me){return(me&4278190080)>>>24|(me&16711680)>>>8|(me&65280)<<8|(me&255)<<24}function E(me,e){return me[e]<<24|me[e+1]<<16|me[e+2]<<8|me[e+3]}class l{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 Te,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 r=(t[4]&4)>>>2!==0,s=(t[4]&1)!==0,C=E(t,5);return C<9?n:{match:!0,consumed:C,dataOffset:C,hasAudioTrack:r,hasVideoTrack:s}}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 Te}_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 be("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let n=0,r=this._littleEndian;if(t===0)if(e.byteLength>13)n=l.probe(e).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,t+n!==this._dataOffset&&f.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(e,n).getUint32(0,!r)!==0&&f.w(this.TAG,"PrevTagSize0 !== 0 !!!"),n+=4);n<e.byteLength;){this._dispatch=!0;let s=new DataView(e,n);if(n+11+4>e.byteLength)break;let C=s.getUint8(0),O=s.getUint32(0,!r)&16777215;if(n+11+O+4>e.byteLength)break;if(C!==8&&C!==9&&C!==18){f.w(this.TAG,`Unsupported tag type ${C}, skipped`),n+=11+O+4;continue}let we=s.getUint8(4),Se=s.getUint8(5),De=s.getUint8(6),Qe=s.getUint8(7),ot=De|Se<<8|we<<16|Qe<<24;(s.getUint32(7,!r)&16777215)!==0&&f.w(this.TAG,"Meet tag which has StreamID != 0!");let ut=n+11;switch(C){case 8:this._parseAudioData(e,ut,O,ot);break;case 9:this._parseVideoData(e,ut,O,ot,t+n);break;case 18:this._parseScriptData(e,ut,O);break}let We=s.getUint32(11+O,!r);We!==11+O&&f.w(this.TAG,`Invalid PrevTagSize ${We}`),n+=11+O+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),n}_parseScriptData(e,t,n){let r=Ge.parseScriptData(e,t,n);if(r.hasOwnProperty("onMetaData")){if(r.onMetaData==null||typeof r.onMetaData!="object"){f.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&f.w(this.TAG,"Found another onMetaData tag!"),this._metadata=r;let s=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},s)),typeof s.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=s.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof s.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=s.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof s.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=s.audiodatarate),typeof s.videodatarate=="number"&&(this._mediaInfo.videoDataRate=s.videodatarate),typeof s.width=="number"&&(this._mediaInfo.width=s.width),typeof s.height=="number"&&(this._mediaInfo.height=s.height),typeof s.duration=="number"){if(!this._durationOverrided){let C=Math.floor(s.duration*this._timescale);this._duration=C,this._mediaInfo.duration=C}}else this._mediaInfo.duration=0;if(typeof s.framerate=="number"){let C=Math.floor(s.framerate*1e3);if(C>0){let O=C/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=O,this._referenceFrameRate.fps_num=C,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=O}}if(typeof s.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let C=s.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(C),s.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=s,f.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(r).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},r))}_parseKeyframesIndex(e){let t=[],n=[];for(let r=1;r<e.times.length;r++){let s=this._timestampBase+Math.floor(e.times[r]*1e3);t.push(s),n.push(e.filepositions[r])}return{times:t,filepositions:n}}_parseAudioData(e,t,n,r){if(n<=1){f.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let s=this._littleEndian,O=new DataView(e,t,n).getUint8(0),we=O>>>4;if(we!==2&&we!==10){this._onError(a.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+we);return}let Se=0,De=(O&12)>>>2;if(De>=0&&De<=4)Se=this._flvSoundRateTable[De];else{this._onError(a.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+De);return}let Qe=(O&2)>>>1,ot=O&1,Ke=this._audioMetadata,ut=this._audioTrack;if(Ke||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Ke=this._audioMetadata={},Ke.type="audio",Ke.id=ut.id,Ke.timescale=this._timescale,Ke.duration=this._duration,Ke.audioSampleRate=Se,Ke.channelCount=ot===0?1:2),we===10){let We=this._parseAACAudioData(e,t+1,n-1);if(We==null)return;if(We.packetType===0){Ke.config&&f.w(this.TAG,"Found another AudioSpecificConfig!");let Oe=We.data;Ke.audioSampleRate=Oe.samplingRate,Ke.channelCount=Oe.channelCount,Ke.codec=Oe.codec,Ke.originalCodec=Oe.originalCodec,Ke.config=Oe.config,Ke.refSampleDuration=1024/Ke.audioSampleRate*Ke.timescale,f.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",Ke);let $e=this._mediaInfo;$e.audioCodec=Ke.originalCodec,$e.audioSampleRate=Ke.audioSampleRate,$e.audioChannelCount=Ke.channelCount,$e.hasVideo?$e.videoCodec!=null&&($e.mimeType='video/x-flv; codecs="'+$e.videoCodec+","+$e.audioCodec+'"'):$e.mimeType='video/x-flv; codecs="'+$e.audioCodec+'"',$e.isComplete()&&this._onMediaInfo($e)}else if(We.packetType===1){let Oe=this._timestampBase+r,$e={unit:We.data,length:We.data.byteLength,dts:Oe,pts:Oe};ut.samples.push($e),ut.length+=We.data.length}else f.e(this.TAG,`Flv: Unsupported AAC data type ${We.packetType}`)}else if(we===2){if(!Ke.codec){let nt=this._parseMP3AudioData(e,t+1,n-1,!0);if(nt==null)return;Ke.audioSampleRate=nt.samplingRate,Ke.channelCount=nt.channelCount,Ke.codec=nt.codec,Ke.originalCodec=nt.originalCodec,Ke.refSampleDuration=1152/Ke.audioSampleRate*Ke.timescale,f.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Ke);let qe=this._mediaInfo;qe.audioCodec=Ke.codec,qe.audioSampleRate=Ke.audioSampleRate,qe.audioChannelCount=Ke.channelCount,qe.audioDataRate=nt.bitRate,qe.hasVideo?qe.videoCodec!=null&&(qe.mimeType='video/x-flv; codecs="'+qe.videoCodec+","+qe.audioCodec+'"'):qe.mimeType='video/x-flv; codecs="'+qe.audioCodec+'"',qe.isComplete()&&this._onMediaInfo(qe)}let We=this._parseMP3AudioData(e,t+1,n-1,!1);if(We==null)return;let Oe=this._timestampBase+r,$e={unit:We,length:We.byteLength,dts:Oe,pts:Oe};ut.samples.push($e),ut.length+=We.length}}_parseAACAudioData(e,t,n){if(n<=1){f.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let r={},s=new Uint8Array(e,t,n);return r.packetType=s[0],s[0]===0?r.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):r.data=s.subarray(1),r}_parseAACAudioSpecificConfig(e,t,n){let r=new Uint8Array(e,t,n),s=null,C=0,O=0,we=null,Se=0,De=null;if(C=O=r[0]>>>3,Se=(r[0]&7)<<1|r[1]>>>7,Se<0||Se>=this._mpegSamplingRates.length){this._onError(a.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let Qe=this._mpegSamplingRates[Se],ot=(r[1]&120)>>>3;if(ot<0||ot>=8){this._onError(a.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}C===5&&(De=(r[1]&7)<<1|r[2]>>>7,we=(r[2]&124)>>>2);let Ke=self.navigator.userAgent.toLowerCase();return Ke.indexOf("firefox")!==-1?Se>=6?(C=5,s=new Array(4),De=Se-3):(C=2,s=new Array(2),De=Se):Ke.indexOf("android")!==-1?(C=2,s=new Array(2),De=Se):(C=5,De=Se,s=new Array(4),Se>=6?De=Se-3:ot===1&&(C=2,s=new Array(2),De=Se)),s[0]=C<<3,s[0]|=(Se&15)>>>1,s[1]=(Se&15)<<7,s[1]|=(ot&15)<<3,C===5&&(s[1]|=(De&15)>>>1,s[2]=(De&1)<<7,s[2]|=8,s[3]=0),{config:s,samplingRate:Qe,channelCount:ot,codec:"mp4a.40."+C,originalCodec:"mp4a.40."+O}}_parseMP3AudioData(e,t,n,r){if(n<4){f.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let s=this._littleEndian,C=new Uint8Array(e,t,n),O=null;if(r){if(C[0]!==255)return;let we=C[1]>>>3&3,Se=(C[1]&6)>>1,De=(C[2]&240)>>>4,Qe=(C[2]&12)>>>2,Ke=(C[3]>>>6&3)!==3?2:1,ut=0,We=0,Oe=34,$e="mp3";switch(we){case 0:ut=this._mpegAudioV25SampleRateTable[Qe];break;case 2:ut=this._mpegAudioV20SampleRateTable[Qe];break;case 3:ut=this._mpegAudioV10SampleRateTable[Qe];break}switch(Se){case 1:Oe=34,De<this._mpegAudioL3BitRateTable.length&&(We=this._mpegAudioL3BitRateTable[De]);break;case 2:Oe=33,De<this._mpegAudioL2BitRateTable.length&&(We=this._mpegAudioL2BitRateTable[De]);break;case 3:Oe=32,De<this._mpegAudioL1BitRateTable.length&&(We=this._mpegAudioL1BitRateTable[De]);break}O={bitRate:We,samplingRate:ut,channelCount:Ke,codec:$e,originalCodec:$e}}else O=C;return O}_parseVideoData(e,t,n,r,s){if(n<=1){f.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let C=new Uint8Array(e,t,n)[0],O=(C&240)>>>4,we=C&15;if(we!==7){this._onError(a.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${we}`);return}this._parseAVCVideoPacket(e,t+1,n-1,r,s,O)}_parseAVCVideoPacket(e,t,n,r,s,C){if(n<4){f.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let O=this._littleEndian,we=new DataView(e,t,n),Se=we.getUint8(0),Qe=(we.getUint32(0,!O)&16777215)<<8>>8;if(Se===0)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(Se===1)this._parseAVCVideoData(e,t+4,n-4,r,s,C,Qe);else if(Se!==2){this._onError(a.FORMAT_ERROR,`Flv: Invalid video packet type ${Se}`);return}}_parseAVCDecoderConfigurationRecord(e,t,n){if(n<7){f.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let r=this._videoMetadata,s=this._videoTrack,C=this._littleEndian,O=new DataView(e,t,n);r?typeof r.avcc!="undefined"&&f.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),r=this._videoMetadata={},r.type="video",r.id=s.id,r.timescale=this._timescale,r.duration=this._duration);let we=O.getUint8(0),Se=O.getUint8(1),De=O.getUint8(2),Qe=O.getUint8(3);if(we!==1||Se===0){this._onError(a.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(O.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(a.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let ot=O.getUint8(5)&31;if(ot===0){this._onError(a.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else ot>1&&f.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${ot}`);let Ke=6;for(let We=0;We<ot;We++){let Oe=O.getUint16(Ke,!C);if(Ke+=2,Oe===0)continue;let $e=new Uint8Array(e,t+Ke,Oe);Ke+=Oe;let nt=y.parseSPS($e);if(We!==0)continue;r.codecWidth=nt.codec_size.width,r.codecHeight=nt.codec_size.height,r.presentWidth=nt.present_size.width,r.presentHeight=nt.present_size.height,r.profile=nt.profile_string,r.level=nt.level_string,r.bitDepth=nt.bit_depth,r.chromaFormat=nt.chroma_format,r.sarRatio=nt.sar_ratio,r.frameRate=nt.frame_rate,(nt.frame_rate.fixed===!1||nt.frame_rate.fps_num===0||nt.frame_rate.fps_den===0)&&(r.frameRate=this._referenceFrameRate);let qe=r.frameRate.fps_den,pt=r.frameRate.fps_num;r.refSampleDuration=r.timescale*(qe/pt);let Tt=$e.subarray(1,4),It="avc1.";for(let St=0;St<3;St++){let re=Tt[St].toString(16);re.length<2&&(re="0"+re),It+=re}r.codec=It;let Ye=this._mediaInfo;Ye.width=r.codecWidth,Ye.height=r.codecHeight,Ye.fps=r.frameRate.fps,Ye.profile=r.profile,Ye.level=r.level,Ye.refFrames=nt.ref_frames,Ye.chromaFormat=nt.chroma_format_string,Ye.sarNum=r.sarRatio.width,Ye.sarDen=r.sarRatio.height,Ye.videoCodec=It,Ye.hasAudio?Ye.audioCodec!=null&&(Ye.mimeType='video/x-flv; codecs="'+Ye.videoCodec+","+Ye.audioCodec+'"'):Ye.mimeType='video/x-flv; codecs="'+Ye.videoCodec+'"',Ye.isComplete()&&this._onMediaInfo(Ye)}let ut=O.getUint8(Ke);if(ut===0){this._onError(a.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else ut>1&&f.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${ut}`);Ke++;for(let We=0;We<ut;We++){let Oe=O.getUint16(Ke,!C);Ke+=2,Oe!==0&&(Ke+=Oe)}r.avcc=new Uint8Array(n),r.avcc.set(new Uint8Array(e,t,n),0),f.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",r)}_parseAVCVideoData(e,t,n,r,s,C,O){let we=this._littleEndian,Se=new DataView(e,t,n),De=[],Qe=0,ot=0;const Ke=this._naluLengthSize;let ut=this._timestampBase+r,We=C===1;for(;ot<n;){if(ot+4>=n){f.w(this.TAG,`Malformed Nalu near timestamp ${ut}, offset = ${ot}, dataSize = ${n}`);break}let Oe=Se.getUint32(ot,!we);if(Ke===3&&(Oe>>>=8),Oe>n-Ke){f.w(this.TAG,`Malformed Nalus near timestamp ${ut}, NaluSize > DataSize!`);return}let $e=Se.getUint8(ot+Ke)&31;$e===5&&(We=!0);let nt=new Uint8Array(e,t+ot,Ke+Oe),qe={type:$e,data:nt};De.push(qe),Qe+=nt.byteLength,ot+=Ke+Oe}if(De.length){let Oe=this._videoTrack,$e={units:De,length:Qe,isKeyframe:We,dts:ut,cts:O,pts:ut+O};We&&($e.fileposition=s),Oe.samples.push($e),Oe.length+=Qe}}}var p=l;class o{static init(){o.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 o.types)o.types.hasOwnProperty(t)&&(o.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let e=o.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,r=Array.prototype.slice.call(arguments,1),s=r.length;for(let O=0;O<s;O++)t+=r[O].byteLength;n=new Uint8Array(t),n[0]=t>>>24&255,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n.set(e,4);let C=8;for(let O=0;O<s;O++)n.set(r[O],C),C+=r[O].byteLength;return n}static generateInitSegment(e){let t=o.box(o.types.ftyp,o.constants.FTYP),n=o.moov(e),r=new Uint8Array(t.byteLength+n.byteLength);return r.set(t,0),r.set(n,t.byteLength),r}static moov(e){let t=o.mvhd(e.timescale,e.duration),n=o.trak(e),r=o.mvex(e);return o.box(o.types.moov,t,n,r)}static mvhd(e,t){return o.box(o.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,e>>>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 o.box(o.types.trak,o.tkhd(e),o.mdia(e))}static tkhd(e){let t=e.id,n=e.duration,r=e.presentWidth,s=e.presentHeight;return o.box(o.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,r>>>8&255,r&255,0,0,s>>>8&255,s&255,0,0]))}static mdia(e){return o.box(o.types.mdia,o.mdhd(e),o.hdlr(e),o.minf(e))}static mdhd(e){let t=e.timescale,n=e.duration;return o.box(o.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=o.constants.HDLR_AUDIO:t=o.constants.HDLR_VIDEO,o.box(o.types.hdlr,t)}static minf(e){let t=null;return e.type==="audio"?t=o.box(o.types.smhd,o.constants.SMHD):t=o.box(o.types.vmhd,o.constants.VMHD),o.box(o.types.minf,t,o.dinf(),o.stbl(e))}static dinf(){return o.box(o.types.dinf,o.box(o.types.dref,o.constants.DREF))}static stbl(e){return o.box(o.types.stbl,o.stsd(e),o.box(o.types.stts,o.constants.STTS),o.box(o.types.stsc,o.constants.STSC),o.box(o.types.stsz,o.constants.STSZ),o.box(o.types.stco,o.constants.STCO))}static stsd(e){return e.type==="audio"?e.codec==="mp3"?o.box(o.types.stsd,o.constants.STSD_PREFIX,o.mp3(e)):o.box(o.types.stsd,o.constants.STSD_PREFIX,o.mp4a(e)):o.box(o.types.stsd,o.constants.STSD_PREFIX,o.avc1(e))}static mp3(e){let t=e.channelCount,n=e.audioSampleRate,r=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 o.box(o.types[".mp3"],r)}static mp4a(e){let t=e.channelCount,n=e.audioSampleRate,r=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 o.box(o.types.mp4a,r,o.esds(e))}static esds(e){let t=e.config||[],n=t.length,r=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 o.box(o.types.esds,r)}static avc1(e){let t=e.avcc,n=e.codecWidth,r=e.codecHeight,s=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,r>>>8&255,r&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 o.box(o.types.avc1,s,o.box(o.types.avcC,t))}static mvex(e){return o.box(o.types.mvex,o.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 o.box(o.types.trex,n)}static moof(e,t){return o.box(o.types.moof,o.mfhd(e.sequenceNumber),o.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 o.box(o.types.mfhd,t)}static traf(e,t){let n=e.id,r=o.box(o.types.tfhd,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255])),s=o.box(o.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255])),C=o.sdtp(e),O=o.trun(e,C.byteLength+16+16+8+16+8+8);return o.box(o.types.traf,r,s,O,C)}static sdtp(e){let t=e.samples||[],n=t.length,r=new Uint8Array(4+n);for(let s=0;s<n;s++){let C=t[s].flags;r[s+4]=C.isLeading<<6|C.dependsOn<<4|C.isDependedOn<<2|C.hasRedundancy}return o.box(o.types.sdtp,r)}static trun(e,t){let n=e.samples||[],r=n.length,s=12+16*r,C=new Uint8Array(s);t+=8+s,C.set([0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0);for(let O=0;O<r;O++){let we=n[O].duration,Se=n[O].size,De=n[O].flags,Qe=n[O].cts;C.set([we>>>24&255,we>>>16&255,we>>>8&255,we&255,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255,De.isLeading<<2|De.dependsOn,De.isDependedOn<<6|De.hasRedundancy<<4|De.isNonSync,0,0,Qe>>>24&255,Qe>>>16&255,Qe>>>8&255,Qe&255],12+16*O)}return o.box(o.types.trun,C)}static mdat(e){return o.box(o.types.mdat,e)}}o.init();var c=o;class _{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 L=_;class F{constructor(e,t,n,r,s){this.dts=e,this.pts=t,this.duration=n,this.originalDts=r,this.isSyncPoint=s,this.fileposition=null}}class fe{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 ae{constructor(){this._list=[]}clear(){this._list=[]}appendArray(e){let t=this._list;e.length!==0&&(t.length>0&&e[0].originalDts<t[t.length-1].originalDts&&this.clear(),Array.prototype.push.apply(t,e))}getLastSyncPointBeforeDts(e){if(this._list.length==0)return null;let t=this._list,n=0,r=t.length-1,s=0,C=0,O=r;for(e<t[0].dts&&(n=0,C=O+1);C<=O;)if(s=C+Math.floor((O-C)/2),s===r||e>=t[s].dts&&e<t[s+1].dts){n=s;break}else t[s].dts<e?C=s+1:O=s-1;return this._list[n]}}class he{constructor(e){this._type=e,this._list=[],this._lastAppendLocation=-1}get type(){return this._type}get length(){return this._list.length}isEmpty(){return this._list.length===0}clear(){this._list=[],this._lastAppendLocation=-1}_searchNearestSegmentBefore(e){let t=this._list;if(t.length===0)return-2;let n=t.length-1,r=0,s=0,C=n,O=0;if(e<t[0].originalBeginDts)return O=-1,O;for(;s<=C;)if(r=s+Math.floor((C-s)/2),r===n||e>t[r].lastSample.originalDts&&e<t[r+1].originalBeginDts){O=r;break}else t[r].originalBeginDts<e?s=r+1:C=r-1;return O}_searchNearestSegmentAfter(e){return this._searchNearestSegmentBefore(e)+1}append(e){let t=this._list,n=e,r=this._lastAppendLocation,s=0;r!==-1&&r<t.length&&n.originalBeginDts>=t[r].lastSample.originalDts&&(r===t.length-1||r<t.length-1&&n.originalBeginDts<t[r+1].originalBeginDts)?s=r+1:t.length>0&&(s=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=s,this._list.splice(s,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 G{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 he("audio"),this._videoSegmentInfoList=new he("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(K.chrome&&(K.version.major<50||K.version.major===50&&K.version.build<2661)),this._fillSilentAfterSeek=K.msedge||K.msie,this._mp3UseMpegAudio=!K.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 be("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)}_onTrackMetadataReceived(e,t){let n=null,r="mp4",s=t.codec;if(e==="audio")this._audioMeta=t,t.codec==="mp3"&&this._mp3UseMpegAudio?(r="mpeg",s="",n=new Uint8Array):n=c.generateInitSegment(t);else if(e==="video")this._videoMeta=t,n=c.generateInitSegment(t);else return;if(!this._onInitSegment)throw new be("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:s,container:`${e}/${r}`,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 r={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};t!=null&&(r.samples.push(t),r.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(r,!0)}_remuxAudio(e,t){if(this._audioMeta==null)return;let n=e,r=n.samples,s,C=-1,O=-1,we=-1,Se=this._audioMeta.refSampleDuration,De=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Qe=this._dtsBaseInited&&this._audioNextDts===void 0,ot=!1;if(!r||r.length===0||r.length===1&&!t)return;let Ke=0,ut=null,We=0;De?(Ke=0,We=n.length):(Ke=8,We=8+n.length);let Oe=null;if(r.length>1&&(Oe=r.pop(),We-=Oe.length),this._audioStashedLastSample!=null){let Ye=this._audioStashedLastSample;this._audioStashedLastSample=null,r.unshift(Ye),We+=Ye.length}Oe!=null&&(this._audioStashedLastSample=Oe);let $e=r[0].dts-this._dtsBase;if(this._audioNextDts)s=$e-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())s=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(ot=!0);else{let Ye=this._audioSegmentInfoList.getLastSampleBefore($e);if(Ye!=null){let St=$e-(Ye.originalDts+Ye.duration);St<=3&&(St=0);let re=Ye.dts+Ye.duration+St;s=$e-re}else s=0}if(ot){let Ye=$e-s,St=this._videoSegmentInfoList.getLastSegmentBefore($e);if(St!=null&&St.beginDts<Ye){let re=L.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(re){let ee=St.beginDts,ve=Ye-St.beginDts;f.v(this.TAG,`InsertPrefixSilentAudio: dts: ${ee}, duration: ${ve}`),r.unshift({unit:re,dts:ee,pts:ee}),We+=re.byteLength}}else ot=!1}let nt=[];for(let Ye=0;Ye<r.length;Ye++){let St=r[Ye],re=St.unit,ee=St.dts-this._dtsBase,ve=ee-s;C===-1&&(C=ve);let Ae=0;Ye!==r.length-1?Ae=r[Ye+1].dts-this._dtsBase-s-ve:Oe!=null?Ae=Oe.dts-this._dtsBase-s-ve:nt.length>=1?Ae=nt[nt.length-1].duration:Ae=Math.floor(Se);let ye=!1,Ee=null;if(Ae>Se*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!K.safari){ye=!0;let _e=Math.abs(Ae-Se),je=Math.ceil(_e/Se),ft=ve+Se;f.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
dts: ${ve+Ae} ms, expected: ${ve+Math.round(Se)} ms, delta: ${Math.round(_e)} ms, generate: ${je} frames`);let dt=L.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);dt==null&&(f.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),dt=re),Ee=[];for(let yt=0;yt<je;yt++){let wt=Math.round(ft);if(Ee.length>0){let Dt=Ee[Ee.length-1];Dt.duration=wt-Dt.dts}let Nt={dts:wt,pts:wt,cts:0,unit:dt,size:dt.byteLength,duration:0,originalDts:ee,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};Ee.push(Nt),We+=Nt.size,ft+=Se}let bt=Ee[Ee.length-1];bt.duration=ve+Ae-bt.dts,Ae=Math.round(Se)}nt.push({dts:ve,pts:ve,cts:0,unit:St.unit,size:St.unit.byteLength,duration:Ae,originalDts:ee,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),ye&&nt.push.apply(nt,Ee)}De?ut=new Uint8Array(We):(ut=new Uint8Array(We),ut[0]=We>>>24&255,ut[1]=We>>>16&255,ut[2]=We>>>8&255,ut[3]=We&255,ut.set(c.types.mdat,4));for(let Ye=0;Ye<nt.length;Ye++){let St=nt[Ye].unit;ut.set(St,Ke),Ke+=St.byteLength}let qe=nt[nt.length-1];O=qe.dts+qe.duration,this._audioNextDts=O;let pt=new fe;pt.beginDts=C,pt.endDts=O,pt.beginPts=C,pt.endPts=O,pt.originalBeginDts=nt[0].originalDts,pt.originalEndDts=qe.originalDts+qe.duration,pt.firstSample=new F(nt[0].dts,nt[0].pts,nt[0].duration,nt[0].originalDts,!1),pt.lastSample=new F(qe.dts,qe.pts,qe.duration,qe.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(pt),n.samples=nt,n.sequenceNumber++;let Tt=null;De?Tt=new Uint8Array:Tt=c.moof(n,C),n.samples=[],n.length=0;let It={type:"audio",data:this._mergeBoxes(Tt,ut).buffer,sampleCount:nt.length,info:pt};De&&Qe&&(It.timestampOffset=C),this._onMediaSegment("audio",It)}_remuxVideo(e,t){if(this._videoMeta==null)return;let n=e,r=n.samples,s,C=-1,O=-1,we=-1,Se=-1;if(!r||r.length===0||r.length===1&&!t)return;let De=8,Qe=null,ot=8+e.length,Ke=null;if(r.length>1&&(Ke=r.pop(),ot-=Ke.length),this._videoStashedLastSample!=null){let qe=this._videoStashedLastSample;this._videoStashedLastSample=null,r.unshift(qe),ot+=qe.length}Ke!=null&&(this._videoStashedLastSample=Ke);let ut=r[0].dts-this._dtsBase;if(this._videoNextDts)s=ut-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())s=0;else{let qe=this._videoSegmentInfoList.getLastSampleBefore(ut);if(qe!=null){let pt=ut-(qe.originalDts+qe.duration);pt<=3&&(pt=0);let Tt=qe.dts+qe.duration+pt;s=ut-Tt}else s=0}let We=new fe,Oe=[];for(let qe=0;qe<r.length;qe++){let pt=r[qe],Tt=pt.dts-this._dtsBase,It=pt.isKeyframe,Ye=Tt-s,St=pt.cts,re=Ye+St;C===-1&&(C=Ye,we=re);let ee=0;if(qe!==r.length-1?ee=r[qe+1].dts-this._dtsBase-s-Ye:Ke!=null?ee=Ke.dts-this._dtsBase-s-Ye:Oe.length>=1?ee=Oe[Oe.length-1].duration:ee=Math.floor(this._videoMeta.refSampleDuration),It){let ve=new F(Ye,re,ee,pt.dts,!0);ve.fileposition=pt.fileposition,We.appendSyncPoint(ve)}Oe.push({dts:Ye,pts:re,cts:St,units:pt.units,size:pt.length,isKeyframe:It,duration:ee,originalDts:Tt,flags:{isLeading:0,dependsOn:It?2:1,isDependedOn:It?1:0,hasRedundancy:0,isNonSync:It?0:1}})}Qe=new Uint8Array(ot),Qe[0]=ot>>>24&255,Qe[1]=ot>>>16&255,Qe[2]=ot>>>8&255,Qe[3]=ot&255,Qe.set(c.types.mdat,4);for(let qe=0;qe<Oe.length;qe++){let pt=Oe[qe].units;for(;pt.length;){let It=pt.shift().data;Qe.set(It,De),De+=It.byteLength}}let $e=Oe[Oe.length-1];if(O=$e.dts+$e.duration,Se=$e.pts+$e.duration,this._videoNextDts=O,We.beginDts=C,We.endDts=O,We.beginPts=we,We.endPts=Se,We.originalBeginDts=Oe[0].originalDts,We.originalEndDts=$e.originalDts+$e.duration,We.firstSample=new F(Oe[0].dts,Oe[0].pts,Oe[0].duration,Oe[0].originalDts,Oe[0].isKeyframe),We.lastSample=new F($e.dts,$e.pts,$e.duration,$e.originalDts,$e.isKeyframe),this._isLive||this._videoSegmentInfoList.append(We),n.samples=Oe,n.sequenceNumber++,this._forceFirstIDR){let qe=Oe[0].flags;qe.dependsOn=2,qe.isNonSync=0}let nt=c.moof(n,C);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(nt,Qe).buffer,sampleCount:Oe.length,info:We})}_mergeBoxes(e,t){let n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}}var Re=G,W={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};class Be{constructor(e,t){this.TAG="TransmuxingController",this._emitter=new(Q()),this._config=t,e.segments||(e.segments=[{duration:e.duration,filesize:e.filesize,url:e.url}]),typeof e.cors!="boolean"&&(e.cors=!0),typeof e.withCredentials!="boolean"&&(e.withCredentials=!1),this._mediaDataSource=e,this._currentSegmentIndex=0;let n=0;this._mediaDataSource.segments.forEach(r=>{r.timestampBase=n,n+=r.duration,r.cors=e.cors,r.withCredentials=e.withCredentials,t.referrerPolicy&&(r.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],r=this._ioctl=new B(n,this._config,e);r.onError=this._onIOException.bind(this),r.onSeeked=this._onIOSeeked.bind(this),r.onComplete=this._onIOComplete.bind(this),r.onRedirect=this._onIORedirect.bind(this),r.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):r.onDataArrival=this._onInitChunkArrival.bind(this),r.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 r=n.getNearestKeyframe(e);this._remuxer.seek(r.milliseconds),this._ioctl.seek(r.fileposition),this._pendingResolveSeekPoint=r.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 r=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,r.fileposition),this._pendingResolveSeekPoint=r.milliseconds,this._reportSegmentMediaInfo(t)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(e){let t=this._mediaDataSource.segments,n=t.length-1;for(let r=0;r<t.length;r++)if(e<t[r].timestampBase){n=r-1;break}return n}_onInitChunkArrival(e,t){let n=null,r=0;if(t>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,r=this._demuxer.parseChunks(e,t);else if((n=p.probe(e)).match){this._demuxer=new p(n,this._config),this._remuxer||(this._remuxer=new Re(this._config));let s=this._mediaDataSource;s.duration!=null&&!isNaN(s.duration)&&(this._demuxer.overridedDuration=s.duration),typeof s.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=s.hasAudio),typeof s.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=s.hasVideo),this._demuxer.timestampBase=s.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),r=this._demuxer.parseChunks(e,t)}else n=null,f.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(W.DEMUX_ERROR,a.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),r=0;return r}_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,Te.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,Te.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(W.METADATA_ARRIVED,e)}_onScriptDataArrived(e){this._emitter.emit(W.SCRIPTDATA_ARRIVED,e)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(e){let n=e+1;n<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(n)):(this._remuxer.flushStashedSamples(),this._emitter.emit(W.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(e){let t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e}_onIORecoveredEarlyEof(){this._emitter.emit(W.RECOVERED_EARLY_EOF)}_onIOException(e,t){f.e(this.TAG,`IOException: type = ${e}, code = ${t.code}, msg = ${t.msg}`),this._emitter.emit(W.IO_ERROR,e,t),this._disableStatisticsReporter()}_onDemuxException(e,t){f.e(this.TAG,`DemuxException: type = ${e}, info = ${t}`),this._emitter.emit(W.DEMUX_ERROR,e,t)}_onRemuxerInitSegmentArrival(e,t){this._emitter.emit(W.INIT_SEGMENT,e,t)}_onRemuxerMediaSegmentArrival(e,t){if(this._pendingSeekTime==null&&(this._emitter.emit(W.MEDIA_SEGMENT,e,t),this._pendingResolveSeekPoint!=null&&e==="video")){let n=t.info.syncPoints,r=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,K.safari&&n.length>0&&n[0].originalDts===r&&(r=n[0].pts),this._emitter.emit(W.RECOMMEND_SEEKPOINT,r)}}_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(W.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(W.STATISTICS_INFO,e)}}var Xe=Be,He=function(me){let e="TransmuxingWorker",t=null,n=We.bind(this);x.install(),me.addEventListener("message",function(Oe){switch(Oe.data.cmd){case"init":t=new Xe(Oe.data.param[0],Oe.data.param[1]),t.on(W.IO_ERROR,ot.bind(this)),t.on(W.DEMUX_ERROR,Ke.bind(this)),t.on(W.INIT_SEGMENT,r.bind(this)),t.on(W.MEDIA_SEGMENT,s.bind(this)),t.on(W.LOADING_COMPLETE,C.bind(this)),t.on(W.RECOVERED_EARLY_EOF,O.bind(this)),t.on(W.MEDIA_INFO,we.bind(this)),t.on(W.METADATA_ARRIVED,Se.bind(this)),t.on(W.SCRIPTDATA_ARRIVED,De.bind(this)),t.on(W.STATISTICS_INFO,Qe.bind(this)),t.on(W.RECOMMEND_SEEKPOINT,ut.bind(this));break;case"destroy":t&&(t.destroy(),t=null),me.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(Oe.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let $e=Oe.data.param;ie.applyConfig($e),$e.enableCallback===!0?ie.addLogListener(n):ie.removeLogListener(n);break}}});function r(Oe,$e){let nt={msg:W.INIT_SEGMENT,data:{type:Oe,data:$e}};me.postMessage(nt,[$e.data])}function s(Oe,$e){let nt={msg:W.MEDIA_SEGMENT,data:{type:Oe,data:$e}};me.postMessage(nt,[$e.data])}function C(){let Oe={msg:W.LOADING_COMPLETE};me.postMessage(Oe)}function O(){let Oe={msg:W.RECOVERED_EARLY_EOF};me.postMessage(Oe)}function we(Oe){let $e={msg:W.MEDIA_INFO,data:Oe};me.postMessage($e)}function Se(Oe){let $e={msg:W.METADATA_ARRIVED,data:Oe};me.postMessage($e)}function De(Oe){let $e={msg:W.SCRIPTDATA_ARRIVED,data:Oe};me.postMessage($e)}function Qe(Oe){let $e={msg:W.STATISTICS_INFO,data:Oe};me.postMessage($e)}function ot(Oe,$e){me.postMessage({msg:W.IO_ERROR,data:{type:Oe,info:$e}})}function Ke(Oe,$e){me.postMessage({msg:W.DEMUX_ERROR,data:{type:Oe,info:$e}})}function ut(Oe){me.postMessage({msg:W.RECOMMEND_SEEKPOINT,data:Oe})}function We(Oe,$e){me.postMessage({msg:"logcat_callback",data:{type:Oe,logcat:$e}})}};class rt{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new(Q()),t.enableWorker&&typeof Worker!="undefined")try{let n=i(82059);this._worker=n(He),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)},ie.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:ie.getConfig()})}catch(n){f.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Xe(e,t)}else this._controller=new Xe(e,t);if(this._controller){let n=this._controller;n.on(W.IO_ERROR,this._onIOError.bind(this)),n.on(W.DEMUX_ERROR,this._onDemuxError.bind(this)),n.on(W.INIT_SEGMENT,this._onInitSegment.bind(this)),n.on(W.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),n.on(W.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),n.on(W.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),n.on(W.MEDIA_INFO,this._onMediaInfo.bind(this)),n.on(W.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),n.on(W.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),n.on(W.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),n.on(W.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),ie.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(W.INIT_SEGMENT,e,t)})}_onMediaSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(W.MEDIA_SEGMENT,e,t)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(W.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(W.RECOVERED_EARLY_EOF)})}_onMediaInfo(e){Promise.resolve().then(()=>{this._emitter.emit(W.MEDIA_INFO,e)})}_onMetaDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(W.METADATA_ARRIVED,e)})}_onScriptDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(W.SCRIPTDATA_ARRIVED,e)})}_onStatisticsInfo(e){Promise.resolve().then(()=>{this._emitter.emit(W.STATISTICS_INFO,e)})}_onIOError(e,t){Promise.resolve().then(()=>{this._emitter.emit(W.IO_ERROR,e,t)})}_onDemuxError(e,t){Promise.resolve().then(()=>{this._emitter.emit(W.DEMUX_ERROR,e,t)})}_onRecommendSeekpoint(e){Promise.resolve().then(()=>{this._emitter.emit(W.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 W.INIT_SEGMENT:case W.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case W.LOADING_COMPLETE:case W.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case W.MEDIA_INFO:Object.setPrototypeOf(n,Te.prototype),this._emitter.emit(t.msg,n);break;case W.METADATA_ARRIVED:case W.SCRIPTDATA_ARRIVED:case W.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case W.IO_ERROR:case W.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case W.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":f.emitter.emit("log",n.type,n.logcat);break;default:break}}}var _t=rt,st={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class mt{constructor(e){this.TAG="MSEController",this._config=e,this._emitter=new(Q()),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 ae}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 be("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 r=this._sourceBuffers[t];if(r){if(e.readyState!=="closed"){try{e.removeSourceBuffer(r)}catch(s){f.e(this.TAG,s.message)}r.removeEventListener("error",this.e.onSourceBufferError),r.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[t]=null,this._sourceBuffers[t]=null}}if(e.readyState==="open")try{e.endOfStream()}catch(t){f.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,r=`${n.container}`;n.codec&&n.codec.length>0&&(r+=`;codecs=${n.codec}`);let s=!1;if(f.v(this.TAG,"Received Initialization Segment, mimeType: "+r),this._lastInitSegments[n.type]=n,r!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])f.v(this.TAG,`Notice: ${n.type} mimeType changed, origin: ${this._mimeTypes[n.type]}, target: ${r}`);else{s=!0;try{let C=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(r);C.addEventListener("error",this.e.onSourceBufferError),C.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(C){f.e(this.TAG,C.message),this._emitter.emit(st.ERROR,{code:C.code,msg:C.message});return}}this._mimeTypes[n.type]=r}t||this._pendingSegments[n.type].push(n),s||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),K.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(s){f.e(this.TAG,s.message)}this._idrList.clear();let r=this._pendingSegments[t];if(r.splice(0,r.length),this._mediaSource.readyState!=="closed"){for(let s=0;s<n.buffered.length;s++){let C=n.buffered.start(s),O=n.buffered.end(s);this._pendingRemoveRanges[t].push({start:C,end:O})}if(n.updating||this._doRemoveRanges(),K.safari){let s=this._lastInitSegments[t];s&&(this._pendingSegments[t].push(s),n.updating||this._doAppendSegments())}}}}endOfStream(){let e=this._mediaSource,t=this._sourceBuffers;if(!e||e.readyState!=="open"){e&&e.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}t.video&&t.video.updating||t.audio&&t.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,e.endOfStream())}getNearestKeyframe(e){return this._idrList.getLastSyncPointBeforeDts(e)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let n=this._sourceBuffers[t];if(n){let r=n.buffered;if(r.length>=1&&e-r.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 r=n.buffered,s=!1;for(let C=0;C<r.length;C++){let O=r.start(C),we=r.end(C);if(O<=e&&e<we+3){if(e-O>=this._config.autoCleanupMaxBackwardDuration){s=!0;let Se=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:O,end:Se})}}else we<e&&(s=!0,this._pendingRemoveRanges[t].push({start:O,end:we}))}s&&!n.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let e=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||e.video&&e.video.updating||e.audio&&e.audio.updating)return;let t=this._mediaSource.duration,n=this._pendingMediaDuration;n>0&&(isNaN(t)||n>t)&&(f.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 r=n.shift();t.remove(r.start,r.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 r=this._sourceBuffers[t].timestampOffset,s=n.timestampOffset/1e3;Math.abs(r-s)>.1&&(f.v(this.TAG,`Update MPEG audio timestampOffset from ${r} to ${s}`),this._sourceBuffers[t].timestampOffset=s),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(r){this._pendingSegments[t].unshift(n),r.code===22?(this._isBufferFull||this._emitter.emit(st.BUFFER_FULL),this._isBufferFull=!0):(f.e(this.TAG,r.message),this._emitter.emit(st.ERROR,{code:r.code,msg:r.message}))}}}_onSourceOpen(){if(f.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(st.SOURCE_OPEN)}_onSourceEnded(){f.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){f.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(st.UPDATE_END)}_onSourceBufferError(e){f.e(this.TAG,`SourceBuffer Error: ${e}`)}}var Ue=mt;const Fe={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},tt={NETWORK_EXCEPTION:te.EXCEPTION,NETWORK_STATUS_CODE_INVALID:te.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:te.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:te.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:a.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:a.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:a.CODEC_UNSUPPORTED};class Et{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(Q()),this._config=H(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()!=="flv")throw new ce("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=K.chrome&&(K.version.major<50||K.version.major===50&&K.version.build<2661);this._alwaysSeekKeyframe=!!(n||K.msedge||K.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===j.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(j.MEDIA_INFO,this.mediaInfo)}):e===j.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(j.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 Ue(this._config),this._msectl.on(st.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(st.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(st.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(st.ERROR,t=>{this._emitter.emit(j.ERROR,Fe.MEDIA_ERROR,tt.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 be("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new be("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 _t(this._mediaDataSource,this._config),this._transmuxer.on(W.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(W.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&&(f.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(W.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(j.LOADING_COMPLETE)}),this._transmuxer.on(W.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(j.RECOVERED_EARLY_EOF)}),this._transmuxer.on(W.IO_ERROR,(e,t)=>{this._emitter.emit(j.ERROR,Fe.NETWORK_ERROR,e,t)}),this._transmuxer.on(W.DEMUX_ERROR,(e,t)=>{this._emitter.emit(j.ERROR,Fe.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(W.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(j.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(W.METADATA_ARRIVED,e=>{this._emitter.emit(j.METADATA_ARRIVED,e)}),this._transmuxer.on(W.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(j.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(W.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(j.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(W.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,r=0;if(this._mediaElement.getVideoPlaybackQuality){let s=this._mediaElement.getVideoPlaybackQuality();n=s.totalVideoFrames,r=s.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=r),e}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,r=0;for(let s=0;s<e.length;s++){let C=e.start(s),O=e.end(s);if(C<=t&&t<O){n=C,r=O;break}}r>=t+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(f.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){f.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 r=0;r<t.length;r++){let s=t.start(r),C=t.end(r);if(e>=s&&e<C){e>=C-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(f.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(e){let t=this._mediaElement.buffered;for(let n=0;n<t.length;n++){let r=t.start(n),s=t.end(n);if(e>=r&&e<s)return!0}return!1}_internalSeek(e){let t=this._isTimepointBuffered(e),n=!1,r=0;if(e<1&&this._mediaElement.buffered.length>0){let s=this._mediaElement.buffered.start(0);(s<1&&e<s||K.safari)&&(n=!0,r=K.safari?.1:s)}if(n)this._requestSetTime=!0,this._mediaElement.currentTime=r;else if(t){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=e;else{let s=this._msectl.getNearestKeyframe(Math.floor(e*1e3));this._requestSetTime=!0,s!=null?this._mediaElement.currentTime=s.dts/1e3:this._mediaElement.currentTime=e}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(e*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let e=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(e)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(e*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(e){let t=this._mediaElement;if(e||!this._receivedCanPlay||t.readyState<2){let n=t.buffered;n.length>0&&t.currentTime<n.start(0)&&(f.w(this.TAG,`Playback seems stuck at ${t.currentTime}, seek to ${n.start(0)}`),this._requestSetTime=!0,this._mediaElement.currentTime=n.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}_onvLoadedMetadata(e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(e){let t=this._mediaElement.currentTime,n=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(t<1&&n.length>0){let r=n.start(0);if(r<1&&t<r||K.safari){this._requestSetTime=!0,this._mediaElement.currentTime=K.safari?.1:r;return}}if(this._isTimepointBuffered(t)){if(this._alwaysSeekKeyframe){let r=this._msectl.getNearestKeyframe(Math.floor(t*1e3));r!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=r.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:t,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(e){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(e){this._checkAndResumeStuckPlayback(!0)}_onvProgress(e){this._checkAndResumeStuckPlayback()}}var vt=Et;class xt{constructor(e,t){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(Q()),this._config=H(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()==="flv")throw new ce("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new ce(`NativePlayer(${e.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=e,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){e===j.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(j.MEDIA_INFO,this.mediaInfo)}):e===j.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(j.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 be("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,r=0;if(this._mediaElement.getVideoPlaybackQuality){let s=this._mediaElement.getVideoPlaybackQuality();n=s.totalVideoFrames,r=s.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=r),e}_onvLoadedMetadata(e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(j.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(j.STATISTICS_INFO,this.statisticsInfo)}}var Ot=xt;x.install();function gt(me,e){let t=me;if(t==null||typeof t!="object")throw new ce("MediaDataSource must be an javascript object!");if(!t.hasOwnProperty("type"))throw new ce("MediaDataSource must has type field to indicate video file type!");switch(t.type){case"flv":return new vt(t,e);default:return new Ot(t,e)}}function Rt(){return Y.supportMSEH264Playback()}function it(){return Y.getFeatureList()}let at={};at.createPlayer=gt,at.isSupported=Rt,at.getFeatureList=it,at.BaseLoader=q,at.LoaderStatus=d,at.LoaderErrors=te,at.Events=j,at.ErrorTypes=Fe,at.ErrorDetails=tt,at.FlvPlayer=vt,at.NativePlayer=Ot,at.LoggingControl=ie,Object.defineProperty(at,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Ve=at},98447:function(ht,Me,i){"use strict";i.d(Me,{C2:function(){return A}});var g=i(17313),x=i(37613),Z=i(83116);const Q=f=>{const{checkboxCls:de}=f,se=`${de}-wrapper`;return[{[`${de}-group`]:Object.assign(Object.assign({},(0,g.Wf)(f)),{display:"inline-flex",flexWrap:"wrap",columnGap:f.marginXS,[`> ${f.antCls}-row`]:{flex:1}}),[se]:Object.assign(Object.assign({},(0,g.Wf)(f)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${se}`]:{marginInlineStart:0},[`&${se}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[de]:Object.assign(Object.assign({},(0,g.Wf)(f)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:f.borderRadiusSM,alignSelf:"center",[`${de}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${de}-inner`]:Object.assign({},(0,g.oN)(f))},[`${de}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:f.checkboxSize,height:f.checkboxSize,direction:"ltr",backgroundColor:f.colorBgContainer,border:`${f.lineWidth}px ${f.lineType} ${f.colorBorder}`,borderRadius:f.borderRadiusSM,borderCollapse:"separate",transition:`all ${f.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:f.checkboxSize/14*5,height:f.checkboxSize/14*8,border:`${f.lineWidthBold}px solid ${f.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${f.motionDurationFast} ${f.motionEaseInBack}, opacity ${f.motionDurationFast}`}},"& + span":{paddingInlineStart:f.paddingXS,paddingInlineEnd:f.paddingXS}})},{[`
|
|
${se}:not(${se}-disabled),
|
|
${de}:not(${de}-disabled)
|
|
`]:{[`&:hover ${de}-inner`]:{borderColor:f.colorPrimary}},[`${se}:not(${se}-disabled)`]:{[`&:hover ${de}-checked:not(${de}-disabled) ${de}-inner`]:{backgroundColor:f.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${de}-checked:not(${de}-disabled):after`]:{borderColor:f.colorPrimaryHover}}},{[`${de}-checked`]:{[`${de}-inner`]:{backgroundColor:f.colorPrimary,borderColor:f.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${f.motionDurationMid} ${f.motionEaseOutBack} ${f.motionDurationFast}`}}},[`
|
|
${se}-checked:not(${se}-disabled),
|
|
${de}-checked:not(${de}-disabled)
|
|
`]:{[`&:hover ${de}-inner`]:{backgroundColor:f.colorPrimaryHover,borderColor:"transparent"}}},{[de]:{"&-indeterminate":{[`${de}-inner`]:{backgroundColor:f.colorBgContainer,borderColor:f.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:f.fontSizeLG/2,height:f.fontSizeLG/2,backgroundColor:f.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${se}-disabled`]:{cursor:"not-allowed"},[`${de}-disabled`]:{[`&, ${de}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${de}-inner`]:{background:f.colorBgContainerDisabled,borderColor:f.colorBorder,"&:after":{borderColor:f.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:f.colorTextDisabled},[`&${de}-indeterminate ${de}-inner::after`]:{background:f.colorTextDisabled}}}]};function A(f,de){const se=(0,x.TS)(de,{checkboxCls:`.${f}`,checkboxSize:de.controlInteractiveSize});return[Q(se)]}Me.ZP=(0,Z.Z)("Checkbox",(f,de)=>{let{prefixCls:se}=de;return[A(se,f)]})},91857:function(ht,Me,i){"use strict";var g=i(59301),x=i(38819),Z=i(92310),Q=i.n(Z),A=i(31561),f=i(70425),de=i(18929),se=i(2738),oe=i(79676),be=i(53487),ce=i(92343),$=i(36355),d=i(20834),te=i(40875),q=i(88088),z=i(47211);const Ce=null,K=S=>{const{menu:N,arrow:k,prefixCls:I,children:ne,trigger:X,disabled:ue,dropdownRender:D,getPopupContainer:xe,overlayClassName:R,rootClassName:P,open:v,onOpenChange:B,visible:pe,onVisibleChange:H,mouseEnterDelay:le=.15,mouseLeaveDelay:Y=.1,autoAdjustOverflow:w=!0,placement:j="",overlay:J,transitionName:ie}=S,{getPopupContainer:ge,getPrefixCls:Te,direction:Pe}=g.useContext($.E_),Ie=g.useMemo(()=>{const c=Te();return ie!==void 0?ie:j.includes("top")?`${c}-slide-down`:`${c}-slide-up`},[Te,j,ie]),Je=g.useMemo(()=>j?j.includes("Center")?j.slice(0,j.indexOf("Center")):j:Pe==="rtl"?"bottomRight":"bottomLeft",[j,Pe]),ke=Te("dropdown",I),[ze,Ge]=(0,z.Z)(ke),[,V]=(0,q.Z)(),Le=g.Children.only(ne),m=(0,ce.Tm)(Le,{className:Q()(`${ke}-trigger`,{[`${ke}-rtl`]:Pe==="rtl"},Le.props.className),disabled:ue}),y=ue?[]:X;let h;y&&y.includes("contextMenu")&&(h=!0);const[a,b]=(0,de.Z)(!1,{value:v!=null?v:pe}),U=(0,f.useEvent)(c=>{B==null||B(c),H==null||H(c),b(c)}),E=Q()(R,P,Ge,{[`${ke}-rtl`]:Pe==="rtl"}),l=(0,oe.Z)({arrowPointAtCenter:typeof k=="object"&&k.pointAtCenter,autoAdjustOverflow:w,offset:V.marginXXS,arrowWidth:k?V.sizePopupArrow:0,borderRadius:V.borderRadius}),p=g.useCallback(()=>{b(!1)},[]),o=()=>{let c;return N!=null&&N.items?c=g.createElement(d.default,Object.assign({},N)):typeof J=="function"?c=J():c=J,D&&(c=D(c)),c=g.Children.only(typeof c=="string"?g.createElement("span",null,c):c),g.createElement(te.J,{prefixCls:`${ke}-menu`,expandIcon:g.createElement("span",{className:`${ke}-menu-submenu-arrow`},g.createElement(x.Z,{className:`${ke}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:p,validator:_=>{let{mode:L}=_}},c)};return ze(g.createElement(A.Z,Object.assign({alignPoint:h},(0,se.Z)(S,["rootClassName"]),{mouseEnterDelay:le,mouseLeaveDelay:Y,visible:a,builtinPlacements:l,arrow:!!k,overlayClassName:E,prefixCls:ke,getPopupContainer:xe||ge,transitionName:Ie,trigger:y,overlay:o,placement:Je,onVisibleChange:U}),m))};function T(S){return Object.assign(Object.assign({},S),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const M=(0,be.Z)(K,"dropdown",S=>S,T),u=S=>g.createElement(M,Object.assign({},S),g.createElement("span",null));K._InternalPanelDoNotUseOrYouWillBeFired=u,Me.Z=K},38854:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return q}});var g=i(91857),x=i(92310),Z=i.n(x),Q=i(59301),A=i(18785),f=i(3113),de=i(36355),se=i(81327),oe=i(33234),be=i(47211),ce=function(z,Ce){var K={};for(var T in z)Object.prototype.hasOwnProperty.call(z,T)&&Ce.indexOf(T)<0&&(K[T]=z[T]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,T=Object.getOwnPropertySymbols(z);M<T.length;M++)Ce.indexOf(T[M])<0&&Object.prototype.propertyIsEnumerable.call(z,T[M])&&(K[T[M]]=z[T[M]]);return K};const $=z=>{const{getPopupContainer:Ce,getPrefixCls:K,direction:T}=Q.useContext(de.E_),{prefixCls:M,type:u="default",danger:S,disabled:N,loading:k,onClick:I,htmlType:ne,children:X,className:ue,menu:D,arrow:xe,autoFocus:R,overlay:P,trigger:v,align:B,open:pe,onOpenChange:H,placement:le,getPopupContainer:Y,href:w,icon:j=Q.createElement(A.Z,null),title:J,buttonsRender:ie=o=>o,mouseEnterDelay:ge,mouseLeaveDelay:Te,overlayClassName:Pe,overlayStyle:Ie,destroyPopupOnHide:Je,dropdownRender:ke}=z,ze=ce(z,["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"]),Ge=K("dropdown",M),V=`${Ge}-button`,[Le,m]=(0,be.Z)(Ge),y={menu:D,arrow:xe,autoFocus:R,align:B,disabled:N,trigger:N?[]:v,onOpenChange:H,getPopupContainer:Y||Ce,mouseEnterDelay:ge,mouseLeaveDelay:Te,overlayClassName:Pe,overlayStyle:Ie,destroyPopupOnHide:Je,dropdownRender:ke},{compactSize:h,compactItemClassnames:a}=(0,oe.ri)(Ge,T),b=Z()(V,a,ue,m);"overlay"in z&&(y.overlay=P),"open"in z&&(y.open=pe),"placement"in z?y.placement=le:y.placement=T==="rtl"?"bottomLeft":"bottomRight";const U=Q.createElement(f.ZP,{type:u,danger:S,disabled:N,loading:k,onClick:I,htmlType:ne,href:w,title:J},X),E=Q.createElement(f.ZP,{type:u,danger:S,icon:j}),[l,p]=ie([U,E]);return Le(Q.createElement(se.Z.Compact,Object.assign({className:b,size:h,block:!0},ze),l,Q.createElement(g.Z,Object.assign({},y),p)))};$.__ANT_BUTTON=!0;var d=$;const te=g.Z;te.Button=d;var q=te},47211:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return ce}});var g=i(17313),x=i(13826),Z=i(92899),Q=i(29878),A=i(19447),f=i(83116),de=i(37613),oe=$=>{const{componentCls:d,menuCls:te,colorError:q,colorTextLightSolid:z}=$,Ce=`${te}-item`;return{[`${d}, ${d}-menu-submenu`]:{[`${te} ${Ce}`]:{[`&${Ce}-danger:not(${Ce}-disabled)`]:{color:q,"&:hover":{color:z,backgroundColor:q}}}}}};const be=$=>{const{componentCls:d,menuCls:te,zIndexPopup:q,dropdownArrowDistance:z,sizePopupArrow:Ce,antCls:K,iconCls:T,motionDurationMid:M,dropdownPaddingVertical:u,fontSize:S,dropdownEdgeChildPadding:N,colorTextDisabled:k,fontSizeIcon:I,controlPaddingHorizontal:ne,colorBgElevated:X}=$;return[{[d]:Object.assign(Object.assign({},(0,g.Wf)($)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:q,display:"block","&::before":{position:"absolute",insetBlock:-z+Ce/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${K}-btn`]:{[`& > ${T}-down, & > ${K}-btn-icon > ${T}-down`]:{fontSize:I}},[`${d}-wrap`]:{position:"relative",[`${K}-btn > ${T}-down`]:{fontSize:I},[`${T}-down::before`]:{transition:`transform ${M}`}},[`${d}-wrap-open`]:{[`${T}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${K}-slide-down-enter${K}-slide-down-enter-active${d}-placement-bottomLeft,
|
|
&${K}-slide-down-appear${K}-slide-down-appear-active${d}-placement-bottomLeft,
|
|
&${K}-slide-down-enter${K}-slide-down-enter-active${d}-placement-bottom,
|
|
&${K}-slide-down-appear${K}-slide-down-appear-active${d}-placement-bottom,
|
|
&${K}-slide-down-enter${K}-slide-down-enter-active${d}-placement-bottomRight,
|
|
&${K}-slide-down-appear${K}-slide-down-appear-active${d}-placement-bottomRight`]:{animationName:x.fJ},[`&${K}-slide-up-enter${K}-slide-up-enter-active${d}-placement-topLeft,
|
|
&${K}-slide-up-appear${K}-slide-up-appear-active${d}-placement-topLeft,
|
|
&${K}-slide-up-enter${K}-slide-up-enter-active${d}-placement-top,
|
|
&${K}-slide-up-appear${K}-slide-up-appear-active${d}-placement-top,
|
|
&${K}-slide-up-enter${K}-slide-up-enter-active${d}-placement-topRight,
|
|
&${K}-slide-up-appear${K}-slide-up-appear-active${d}-placement-topRight`]:{animationName:x.Qt},[`&${K}-slide-down-leave${K}-slide-down-leave-active${d}-placement-bottomLeft,
|
|
&${K}-slide-down-leave${K}-slide-down-leave-active${d}-placement-bottom,
|
|
&${K}-slide-down-leave${K}-slide-down-leave-active${d}-placement-bottomRight`]:{animationName:x.Uw},[`&${K}-slide-up-leave${K}-slide-up-leave-active${d}-placement-topLeft,
|
|
&${K}-slide-up-leave${K}-slide-up-leave-active${d}-placement-top,
|
|
&${K}-slide-up-leave${K}-slide-up-leave-active${d}-placement-topRight`]:{animationName:x.ly}})},(0,A.ZP)($,{colorBg:X,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${d} ${te}`]:{position:"relative",margin:0},[`${te}-submenu-popup`]:{position:"absolute",zIndex:q,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${d}, ${d}-menu-submenu`]:{[te]:Object.assign(Object.assign({padding:N,listStyleType:"none",backgroundColor:X,backgroundClip:"padding-box",borderRadius:$.borderRadiusLG,outline:"none",boxShadow:$.boxShadowSecondary},(0,g.Qy)($)),{[`${te}-item-group-title`]:{padding:`${u}px ${ne}px`,color:$.colorTextDescription,transition:`all ${M}`},[`${te}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${te}-item-icon`]:{minWidth:S,marginInlineEnd:$.marginXS,fontSize:$.fontSizeSM},[`${te}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${M}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${te}-item, ${te}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${u}px ${ne}px`,color:$.colorText,fontWeight:"normal",fontSize:S,lineHeight:$.lineHeight,cursor:"pointer",transition:`all ${M}`,borderRadius:$.borderRadiusSM,"&:hover, &-active":{backgroundColor:$.controlItemBgHover}},(0,g.Qy)($)),{"&-selected":{color:$.colorPrimary,backgroundColor:$.controlItemBgActive,"&:hover, &-active":{backgroundColor:$.controlItemBgActiveHover}},"&-disabled":{color:k,cursor:"not-allowed","&:hover":{color:k,backgroundColor:X,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${$.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:$.colorSplit},[`${d}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:$.paddingXS,[`${d}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:$.colorTextDescription,fontSize:I,fontStyle:"normal"}}}),[`${te}-item-group-list`]:{margin:`0 ${$.marginXS}px`,padding:0,listStyle:"none"},[`${te}-submenu-title`]:{paddingInlineEnd:ne+$.fontSizeSM},[`${te}-submenu-vertical`]:{position:"relative"},[`${te}-submenu${te}-submenu-disabled ${d}-menu-submenu-title`]:{[`&, ${d}-menu-submenu-arrow-icon`]:{color:k,backgroundColor:X,cursor:"not-allowed"}},[`${te}-submenu-selected ${d}-menu-submenu-title`]:{color:$.colorPrimary}})}},[(0,x.oN)($,"slide-up"),(0,x.oN)($,"slide-down"),(0,Z.Fm)($,"move-up"),(0,Z.Fm)($,"move-down"),(0,Q._y)($,"zoom-big")]]};var ce=(0,f.Z)("Dropdown",($,d)=>{let{rootPrefixCls:te}=d;const{marginXXS:q,sizePopupArrow:z,controlHeight:Ce,fontSize:K,lineHeight:T,paddingXXS:M,componentCls:u,borderRadiusLG:S}=$,N=(Ce-K*T)/2,{dropdownArrowOffset:k}=(0,A.fS)({contentRadius:S}),I=(0,de.TS)($,{menuCls:`${u}-menu`,rootPrefixCls:te,dropdownArrowDistance:z/2+q,dropdownArrowOffset:k,dropdownPaddingVertical:N,dropdownEdgeChildPadding:M});return[be(I),oe(I)]},$=>({zIndexPopup:$.zIndexPopupBase+50}))},64165:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return M}});var g=i(92310),x=i.n(g),Z=i(59301),Q=i(36355),A=i(9763),f=i(64993),de=i(88088),oe=()=>{const[,u]=(0,de.Z)(),N=new f.C(u.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Z.createElement("svg",{style:N,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"}))))},ce=()=>{const[,u]=(0,de.Z)(),{colorFill:S,colorFillTertiary:N,colorFillQuaternary:k,colorBgContainer:I}=u,{borderColor:ne,shadowColor:X,contentColor:ue}=(0,Z.useMemo)(()=>({borderColor:new f.C(S).onBackground(I).toHexShortString(),shadowColor:new f.C(N).onBackground(I).toHexShortString(),contentColor:new f.C(k).onBackground(I).toHexShortString()}),[S,N,k,I]);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:X,cx:"32",cy:"33",rx:"32",ry:"7"}),Z.createElement("g",{fillRule:"nonzero",stroke:ne},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:ue}))))},$=i(83116),d=i(37613);const te=u=>{const{componentCls:S,margin:N,marginXS:k,marginXL:I,fontSize:ne,lineHeight:X}=u;return{[S]:{marginInline:k,fontSize:ne,lineHeight:X,textAlign:"center",[`${S}-image`]:{height:u.emptyImgHeight,marginBottom:k,opacity:u.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${S}-description`]:{color:u.colorText},[`${S}-footer`]:{marginTop:N},"&-normal":{marginBlock:I,color:u.colorTextDisabled,[`${S}-description`]:{color:u.colorTextDisabled},[`${S}-image`]:{height:u.emptyImgHeightMD}},"&-small":{marginBlock:k,color:u.colorTextDisabled,[`${S}-image`]:{height:u.emptyImgHeightSM}}}}};var q=(0,$.Z)("Empty",u=>{const{componentCls:S,controlHeightLG:N}=u,k=(0,d.TS)(u,{emptyImgCls:`${S}-img`,emptyImgHeight:N*2.5,emptyImgHeightMD:N,emptyImgHeightSM:N*.875});return[te(k)]}),z=function(u,S){var N={};for(var k in u)Object.prototype.hasOwnProperty.call(u,k)&&S.indexOf(k)<0&&(N[k]=u[k]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,k=Object.getOwnPropertySymbols(u);I<k.length;I++)S.indexOf(k[I])<0&&Object.prototype.propertyIsEnumerable.call(u,k[I])&&(N[k[I]]=u[k[I]]);return N};const Ce=Z.createElement(oe,null),K=Z.createElement(ce,null),T=u=>{var{className:S,rootClassName:N,prefixCls:k,image:I=Ce,description:ne,children:X,imageStyle:ue,style:D}=u,xe=z(u,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:R,direction:P,empty:v}=Z.useContext(Q.E_),B=R("empty",k),[pe,H]=q(B),[le]=(0,A.Z)("Empty"),Y=typeof ne!="undefined"?ne:le==null?void 0:le.description,w=typeof Y=="string"?Y:"empty";let j=null;return typeof I=="string"?j=Z.createElement("img",{alt:w,src:I}):j=I,pe(Z.createElement("div",Object.assign({className:x()(H,B,v==null?void 0:v.className,{[`${B}-normal`]:I===K,[`${B}-rtl`]:P==="rtl"},S,N),style:Object.assign(Object.assign({},v==null?void 0:v.style),D)},xe),Z.createElement("div",{className:`${B}-image`,style:ue},j),Y&&Z.createElement("div",{className:`${B}-description`},Y),X&&Z.createElement("div",{className:`${B}-footer`},X)))};T.PRESENTED_IMAGE_DEFAULT=Ce,T.PRESENTED_IMAGE_SIMPLE=K;var M=T},45818:function(ht,Me,i){"use strict";i.d(Me,{D:function(){return M},Z:function(){return N}});var g=i(60499),x=i(59301),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"},Q=Z,A=i(7657),f=function(I,ne){return x.createElement(A.Z,(0,g.Z)({},I,{ref:ne,icon:Q}))},de=x.forwardRef(f),se=de,oe=i(33853),be=i(38819),ce=i(92310),$=i.n(ce),d=i(2738),q=k=>!isNaN(parseFloat(k))&&isFinite(k),z=i(36355),Ce=i(84966),K=function(k,I){var ne={};for(var X in k)Object.prototype.hasOwnProperty.call(k,X)&&I.indexOf(X)<0&&(ne[X]=k[X]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,X=Object.getOwnPropertySymbols(k);ue<X.length;ue++)I.indexOf(X[ue])<0&&Object.prototype.propertyIsEnumerable.call(k,X[ue])&&(ne[X[ue]]=k[X[ue]]);return ne};const T={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},M=x.createContext({}),u=(()=>{let k=0;return function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return k+=1,`${I}${k}`}})();var N=x.forwardRef((k,I)=>{const{prefixCls:ne,className:X,trigger:ue,children:D,defaultCollapsed:xe=!1,theme:R="dark",style:P={},collapsible:v=!1,reverseArrow:B=!1,width:pe=200,collapsedWidth:H=80,zeroWidthTriggerStyle:le,breakpoint:Y,onCollapse:w,onBreakpoint:j}=k,J=K(k,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ie}=(0,x.useContext)(Ce.Gs),[ge,Te]=(0,x.useState)("collapsed"in k?k.collapsed:xe),[Pe,Ie]=(0,x.useState)(!1);(0,x.useEffect)(()=>{"collapsed"in k&&Te(k.collapsed)},[k.collapsed]);const Je=(m,y)=>{"collapsed"in k||Te(m),w==null||w(m,y)},ke=(0,x.useRef)();ke.current=m=>{Ie(m.matches),j==null||j(m.matches),ge!==m.matches&&Je(m.matches,"responsive")},(0,x.useEffect)(()=>{function m(h){return ke.current(h)}let y;if(typeof window!="undefined"){const{matchMedia:h}=window;if(h&&Y&&Y in T){y=h(`(max-width: ${T[Y]})`);try{y.addEventListener("change",m)}catch(a){y.addListener(m)}m(y)}}return()=>{try{y==null||y.removeEventListener("change",m)}catch(h){y==null||y.removeListener(m)}}},[Y]),(0,x.useEffect)(()=>{const m=u("ant-sider-");return ie.addSider(m),()=>ie.removeSider(m)},[]);const ze=()=>{Je(!ge,"clickTrigger")},{getPrefixCls:Ge}=(0,x.useContext)(z.E_),V=()=>{const m=Ge("layout-sider",ne),y=(0,d.Z)(J,["collapsed"]),h=ge?H:pe,a=q(h)?`${h}px`:String(h),b=parseFloat(String(H||0))===0?x.createElement("span",{onClick:ze,className:$()(`${m}-zero-width-trigger`,`${m}-zero-width-trigger-${B?"right":"left"}`),style:le},ue||x.createElement(se,null)):null,l={expanded:B?x.createElement(be.Z,null):x.createElement(oe.Z,null),collapsed:B?x.createElement(oe.Z,null):x.createElement(be.Z,null)}[ge?"collapsed":"expanded"],p=ue!==null?b||x.createElement("div",{className:`${m}-trigger`,onClick:ze,style:{width:a}},ue||l):null,o=Object.assign(Object.assign({},P),{flex:`0 0 ${a}`,maxWidth:a,minWidth:a,width:a}),c=$()(m,`${m}-${R}`,{[`${m}-collapsed`]:!!ge,[`${m}-has-trigger`]:v&&ue!==null&&!b,[`${m}-below`]:!!Pe,[`${m}-zero-width`]:parseFloat(a)===0},X);return x.createElement("aside",Object.assign({className:c},y,{style:o,ref:I}),x.createElement("div",{className:`${m}-children`},D),v||Pe&&b?p:null)},Le=x.useMemo(()=>({siderCollapsed:ge}),[ge]);return x.createElement(M.Provider,{value:Le},V())})},84966:function(ht,Me,i){"use strict";i.d(Me,{VY:function(){return M},$_:function(){return T},h4:function(){return K},Gs:function(){return d},ZP:function(){return u}});var g=i(77654),x=i(92310),Z=i.n(x),Q=i(2738),A=i(59301),f=i(36355),de=i(83116),oe=S=>{const{componentCls:N,bodyBg:k,lightSiderBg:I,lightTriggerBg:ne,lightTriggerColor:X}=S;return{[`${N}-sider-light`]:{background:I,[`${N}-sider-trigger`]:{color:X,background:ne},[`${N}-sider-zero-width-trigger`]:{color:X,background:ne,border:`1px solid ${k}`,borderInlineStart:0}}}};const be=S=>{const{antCls:N,componentCls:k,colorText:I,triggerColor:ne,footerBg:X,triggerBg:ue,headerHeight:D,headerPadding:xe,headerColor:R,footerPadding:P,triggerHeight:v,zeroTriggerHeight:B,zeroTriggerWidth:pe,motionDurationMid:H,motionDurationSlow:le,fontSize:Y,borderRadius:w,bodyBg:j,headerBg:J,siderBg:ie}=S;return{[k]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:j,"&, *":{boxSizing:"border-box"},[`&${k}-has-sider`]:{flexDirection:"row",[`> ${k}, > ${k}-content`]:{width:0}},[`${k}-header, &${k}-footer`]:{flex:"0 0 auto"},[`${k}-sider`]:{position:"relative",minWidth:0,background:ie,transition:`all ${H}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${N}-menu${N}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:v},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:v,color:ne,lineHeight:`${v}px`,textAlign:"center",background:ue,cursor:"pointer",transition:`all ${H}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:D,insetInlineEnd:-pe,zIndex:1,width:pe,height:B,color:ne,fontSize:S.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ie,borderStartStartRadius:0,borderStartEndRadius:w,borderEndEndRadius:w,borderEndStartRadius:0,cursor:"pointer",transition:`background ${le} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${le}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-pe,borderStartStartRadius:w,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:w}}}}},oe(S)),{"&-rtl":{direction:"rtl"}}),[`${k}-header`]:{height:D,padding:xe,color:R,lineHeight:`${D}px`,background:J,[`${N}-menu`]:{lineHeight:"inherit"}},[`${k}-footer`]:{padding:P,color:I,fontSize:Y,background:X},[`${k}-content`]:{flex:"auto",minHeight:0}}};var ce=(0,de.Z)("Layout",S=>[be(S)],S=>{const{colorBgLayout:N,controlHeight:k,controlHeightLG:I,colorText:ne,controlHeightSM:X,marginXXS:ue,colorTextLightSolid:D,colorBgContainer:xe}=S,R=I*1.25;return{colorBgHeader:"#001529",colorBgBody:N,colorBgTrigger:"#002140",bodyBg:N,headerBg:"#001529",headerHeight:k*2,headerPadding:`0 ${R}px`,headerColor:ne,footerPadding:`${X}px ${R}px`,footerBg:N,siderBg:"#001529",triggerHeight:I+ue*2,triggerBg:"#002140",triggerColor:D,zeroTriggerWidth:I,zeroTriggerHeight:I,lightSiderBg:xe,lightTriggerBg:xe,lightTriggerColor:ne}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),$=function(S,N){var k={};for(var I in S)Object.prototype.hasOwnProperty.call(S,I)&&N.indexOf(I)<0&&(k[I]=S[I]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,I=Object.getOwnPropertySymbols(S);ne<I.length;ne++)N.indexOf(I[ne])<0&&Object.prototype.propertyIsEnumerable.call(S,I[ne])&&(k[I[ne]]=S[I[ne]]);return k};const d=A.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function te(S){let{suffixCls:N,tagName:k,displayName:I}=S;return ne=>A.forwardRef((ue,D)=>A.createElement(ne,Object.assign({ref:D,suffixCls:N,tagName:k},ue)))}const q=A.forwardRef((S,N)=>{const{prefixCls:k,suffixCls:I,className:ne,tagName:X}=S,ue=$(S,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:D}=A.useContext(f.E_),xe=D("layout",k),[R,P]=ce(xe),v=I?`${xe}-${I}`:xe;return R(A.createElement(X,Object.assign({className:Z()(k||v,ne,P),ref:N},ue)))}),z=A.forwardRef((S,N)=>{const{direction:k}=A.useContext(f.E_),[I,ne]=A.useState([]),{prefixCls:X,className:ue,rootClassName:D,children:xe,hasSider:R,tagName:P,style:v}=S,B=$(S,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),pe=(0,Q.Z)(B,["suffixCls"]),{getPrefixCls:H,layout:le}=A.useContext(f.E_),Y=H("layout",X),[w,j]=ce(Y),J=Z()(Y,{[`${Y}-has-sider`]:typeof R=="boolean"?R:I.length>0,[`${Y}-rtl`]:k==="rtl"},le==null?void 0:le.className,ue,D,j),ie=A.useMemo(()=>({siderHook:{addSider:ge=>{ne(Te=>[].concat((0,g.Z)(Te),[ge]))},removeSider:ge=>{ne(Te=>Te.filter(Pe=>Pe!==ge))}}}),[]);return w(A.createElement(d.Provider,{value:ie},A.createElement(P,Object.assign({ref:N,className:J,style:Object.assign(Object.assign({},le==null?void 0:le.style),v)},pe),xe)))}),Ce=te({tagName:"div",displayName:"Layout"})(z),K=te({suffixCls:"header",tagName:"header",displayName:"Header"})(q),T=te({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(q),M=te({suffixCls:"content",tagName:"main",displayName:"Content"})(q);var u=Ce},40875:function(ht,Me,i){"use strict";i.d(Me,{J:function(){return f}});var g=i(59301),x=i(33234),Z=i(70425),Q=function(de,se){var oe={};for(var be in de)Object.prototype.hasOwnProperty.call(de,be)&&se.indexOf(be)<0&&(oe[be]=de[be]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,be=Object.getOwnPropertySymbols(de);ce<be.length;ce++)se.indexOf(be[ce])<0&&Object.prototype.propertyIsEnumerable.call(de,be[ce])&&(oe[be[ce]]=de[be[ce]]);return oe};const A=g.createContext(null),f=g.forwardRef((de,se)=>{const{children:oe}=de,be=Q(de,["children"]),ce=g.useContext(A),$=g.useMemo(()=>Object.assign(Object.assign({},ce),be),[ce,be.prefixCls,be.mode,be.selectable]);return g.createElement(A.Provider,{value:$},g.createElement(x.BR,null,(0,Z.supportNodeRef)(oe)?g.cloneElement(oe,{ref:se}):oe))});Me.Z=A},20834:function(ht,Me,i){"use strict";i.d(Me,{default:function(){return Le}});var g=i(15285),x=i(59301),Z=i(45818),Q=i(92310),A=i.n(Q),f=i(36355),de=function(m,y){var h={};for(var a in m)Object.prototype.hasOwnProperty.call(m,a)&&y.indexOf(a)<0&&(h[a]=m[a]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,a=Object.getOwnPropertySymbols(m);b<a.length;b++)y.indexOf(a[b])<0&&Object.prototype.propertyIsEnumerable.call(m,a[b])&&(h[a[b]]=m[a[b]]);return h},oe=m=>{const{prefixCls:y,className:h,dashed:a}=m,b=de(m,["prefixCls","className","dashed"]),{getPrefixCls:U}=x.useContext(f.E_),E=U("menu",y),l=A()({[`${E}-item-divider-dashed`]:!!a},h);return x.createElement(g.iz,Object.assign({className:l},b))},be=i(11592),ce=i(2738),$=i(6848),d=i(92343),q=(0,x.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ce=m=>{var y;const{className:h,children:a,icon:b,title:U,danger:E}=m,{prefixCls:l,firstLevel:p,direction:o,disableMenuItemTitleTooltip:c,inlineCollapsed:_}=x.useContext(q),L=Re=>{const Ne=x.createElement("span",{className:`${l}-title-content`},a);return(!b||(0,d.l$)(a)&&a.type==="span")&&a&&Re&&p&&typeof a=="string"?x.createElement("div",{className:`${l}-inline-collapsed-noicon`},a.charAt(0)):Ne},{siderCollapsed:F}=x.useContext(Z.D);let fe=U;typeof U=="undefined"?fe=p?a:"":U===!1&&(fe="");const ae={title:fe};!F&&!_&&(ae.title=null,ae.open=!1);const he=(0,be.Z)(a).length;let G=x.createElement(g.ck,Object.assign({},(0,ce.Z)(m,["title","icon","danger"]),{className:A()({[`${l}-item-danger`]:E,[`${l}-item-only-child`]:(b?he+1:he)===1},h),title:typeof U=="string"?U:void 0}),(0,d.Tm)(b,{className:A()((0,d.l$)(b)?(y=b.props)===null||y===void 0?void 0:y.className:"",`${l}-item-icon`)}),L(_));return c||(G=x.createElement($.Z,Object.assign({},ae,{placement:o==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),G)),G},T=m=>{var y;const{popupClassName:h,icon:a,title:b,theme:U}=m,E=x.useContext(q),{prefixCls:l,inlineCollapsed:p,theme:o}=E,c=(0,g.Xl)();let _;if(!a)_=p&&!c.length&&b&&typeof b=="string"?x.createElement("div",{className:`${l}-inline-collapsed-noicon`},b.charAt(0)):x.createElement("span",{className:`${l}-title-content`},b);else{const F=(0,d.l$)(b)&&b.type==="span";_=x.createElement(x.Fragment,null,(0,d.Tm)(a,{className:A()((0,d.l$)(a)?(y=a.props)===null||y===void 0?void 0:y.className:"",`${l}-item-icon`)}),F?b:x.createElement("span",{className:`${l}-title-content`},b))}const L=x.useMemo(()=>Object.assign(Object.assign({},E),{firstLevel:!1}),[E]);return x.createElement(q.Provider,{value:L},x.createElement(g.Wd,Object.assign({},(0,ce.Z)(m,["icon"]),{title:_,popupClassName:A()(l,h,`${l}-${U||o}`)})))},M=i(18785),u=i(70425),S=i(62892),N=i(40875),k=function(m,y){var h={};for(var a in m)Object.prototype.hasOwnProperty.call(m,a)&&y.indexOf(a)<0&&(h[a]=m[a]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,a=Object.getOwnPropertySymbols(m);b<a.length;b++)y.indexOf(a[b])<0&&Object.prototype.propertyIsEnumerable.call(m,a[b])&&(h[a[b]]=m[a[b]]);return h};function I(m){return(m||[]).map((y,h)=>{if(y&&typeof y=="object"){const a=y,{label:b,children:U,key:E,type:l}=a,p=k(a,["label","children","key","type"]),o=E!=null?E:`tmp-${h}`;return U||l==="group"?l==="group"?x.createElement(g.BW,Object.assign({key:o},p,{title:b}),I(U)):x.createElement(T,Object.assign({key:o},p,{title:b}),I(U)):l==="divider"?x.createElement(oe,Object.assign({key:o},p)):x.createElement(Ce,Object.assign({key:o},p),b)}return null}).filter(y=>y)}function ne(m){return x.useMemo(()=>m&&I(m),[m])}var X=i(64993),ue=i(17313),D=i(8378),xe=i(13826),R=i(29878),P=i(83116),v=i(37613),pe=m=>{const{componentCls:y,motionDurationSlow:h,horizontalLineHeight:a,colorSplit:b,lineWidth:U,lineType:E,itemPaddingInline:l}=m;return{[`${y}-horizontal`]:{lineHeight:a,border:0,borderBottom:`${U}px ${E} ${b}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${y}-item, ${y}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${y}-item:hover,
|
|
> ${y}-item-active,
|
|
> ${y}-submenu ${y}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${y}-item, ${y}-submenu-title`]:{transition:[`border-color ${h}`,`background ${h}`].join(",")},[`${y}-submenu-arrow`]:{display:"none"}}}},le=m=>{let{componentCls:y,menuArrowOffset:h}=m;return{[`${y}-rtl`]:{direction:"rtl"},[`${y}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${y}-rtl${y}-vertical,
|
|
${y}-submenu-rtl ${y}-vertical`]:{[`${y}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${h})`},"&::after":{transform:`rotate(45deg) translateY(${h})`}}}}};const Y=m=>Object.assign({},(0,ue.oN)(m));var j=(m,y)=>{const{componentCls:h,itemColor:a,itemSelectedColor:b,groupTitleColor:U,itemBg:E,subMenuItemBg:l,itemSelectedBg:p,activeBarHeight:o,activeBarWidth:c,activeBarBorderWidth:_,motionDurationSlow:L,motionEaseInOut:F,motionEaseOut:fe,itemPaddingInline:ae,motionDurationMid:he,itemHoverColor:G,lineType:Re,colorSplit:Ne,itemDisabledColor:W,dangerItemColor:Be,dangerItemHoverColor:Xe,dangerItemSelectedColor:Ze,dangerItemActiveBg:He,dangerItemSelectedBg:rt,itemHoverBg:_t,itemActiveBg:ct,menuSubMenuBg:st,horizontalItemSelectedColor:mt,horizontalItemSelectedBg:Ue,horizontalItemBorderRadius:Fe,horizontalItemHoverBg:tt,popupBg:Et}=m;return{[`${h}-${y}, ${h}-${y} > ${h}`]:{color:a,background:E,[`&${h}-root:focus-visible`]:Object.assign({},Y(m)),[`${h}-item-group-title`]:{color:U},[`${h}-submenu-selected`]:{[`> ${h}-submenu-title`]:{color:b}},[`${h}-item-disabled, ${h}-submenu-disabled`]:{color:`${W} !important`},[`${h}-item:not(${h}-item-selected):not(${h}-submenu-selected)`]:{[`&:hover, > ${h}-submenu-title:hover`]:{color:G}},[`&:not(${h}-horizontal)`]:{[`${h}-item:not(${h}-item-selected)`]:{"&:hover":{backgroundColor:_t},"&:active":{backgroundColor:ct}},[`${h}-submenu-title`]:{"&:hover":{backgroundColor:_t},"&:active":{backgroundColor:ct}}},[`${h}-item-danger`]:{color:Be,[`&${h}-item:hover`]:{[`&:not(${h}-item-selected):not(${h}-submenu-selected)`]:{color:Xe}},[`&${h}-item:active`]:{background:He}},[`${h}-item a`]:{"&, &:hover":{color:"inherit"}},[`${h}-item-selected`]:{color:b,[`&${h}-item-danger`]:{color:Ze},"a, a:hover":{color:"inherit"}},[`& ${h}-item-selected`]:{backgroundColor:p,[`&${h}-item-danger`]:{backgroundColor:rt}},[`${h}-item, ${h}-submenu-title`]:{[`&:not(${h}-item-disabled):focus-visible`]:Object.assign({},Y(m))},[`&${h}-submenu > ${h}`]:{backgroundColor:st},[`&${h}-popup > ${h}`]:{backgroundColor:Et},[`&${h}-horizontal`]:Object.assign(Object.assign({},y==="dark"?{borderBottom:0}:{}),{[`> ${h}-item, > ${h}-submenu`]:{top:_,marginTop:-_,marginBottom:0,borderRadius:Fe,"&::after":{position:"absolute",insetInline:ae,bottom:0,borderBottom:`${o}px solid transparent`,transition:`border-color ${L} ${F}`,content:'""'},"&:hover, &-active, &-open":{background:tt,"&::after":{borderBottomWidth:o,borderBottomColor:mt}},"&-selected":{color:mt,backgroundColor:Ue,"&:hover":{backgroundColor:Ue},"&::after":{borderBottomWidth:o,borderBottomColor:mt}}}}),[`&${h}-root`]:{[`&${h}-inline, &${h}-vertical`]:{borderInlineEnd:`${_}px ${Re} ${Ne}`}},[`&${h}-inline`]:{[`${h}-sub${h}-inline`]:{background:l},[`${h}-item, ${h}-submenu-title`]:_&&c?{width:`calc(100% + ${_}px)`}:{},[`${h}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${c}px solid ${b}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${he} ${fe}`,`opacity ${he} ${fe}`].join(","),content:'""'},[`&${h}-item-danger`]:{"&::after":{borderInlineEndColor:Ze}}},[`${h}-selected, ${h}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${he} ${F}`,`opacity ${he} ${F}`].join(",")}}}}}};const J=m=>{const{componentCls:y,itemHeight:h,itemMarginInline:a,padding:b,menuArrowSize:U,marginXS:E,itemMarginBlock:l}=m,p=b+U+E;return{[`${y}-item`]:{position:"relative",overflow:"hidden"},[`${y}-item, ${y}-submenu-title`]:{height:h,lineHeight:`${h}px`,paddingInline:b,overflow:"hidden",textOverflow:"ellipsis",marginInline:a,marginBlock:l,width:`calc(100% - ${a*2}px)`},[`> ${y}-item,
|
|
> ${y}-submenu > ${y}-submenu-title`]:{height:h,lineHeight:`${h}px`},[`${y}-item-group-list ${y}-submenu-title,
|
|
${y}-submenu-title`]:{paddingInlineEnd:p}}};var ge=m=>{const{componentCls:y,iconCls:h,itemHeight:a,colorTextLightSolid:b,dropdownWidth:U,controlHeightLG:E,motionDurationMid:l,motionEaseOut:p,paddingXL:o,itemMarginInline:c,fontSizeLG:_,motionDurationSlow:L,paddingXS:F,boxShadowSecondary:fe,collapsedWidth:ae,collapsedIconSize:he}=m,G={height:a,lineHeight:`${a}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[y]:{"&-inline, &-vertical":Object.assign({[`&${y}-root`]:{boxShadow:"none"}},J(m))},[`${y}-submenu-popup`]:{[`${y}-vertical`]:Object.assign(Object.assign({},J(m)),{boxShadow:fe})}},{[`${y}-submenu-popup ${y}-vertical${y}-sub`]:{minWidth:U,maxHeight:`calc(100vh - ${E*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${y}-inline`]:{width:"100%",[`&${y}-root`]:{[`${y}-item, ${y}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${L}`,`background ${L}`,`padding ${l} ${p}`].join(","),[`> ${y}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${y}-sub${y}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${y}-submenu > ${y}-submenu-title`]:G,[`& ${y}-item-group-title`]:{paddingInlineStart:o}},[`${y}-item`]:G}},{[`${y}-inline-collapsed`]:{width:ae,[`&${y}-root`]:{[`${y}-item, ${y}-submenu ${y}-submenu-title`]:{[`> ${y}-inline-collapsed-noicon`]:{fontSize:_,textAlign:"center"}}},[`> ${y}-item,
|
|
> ${y}-item-group > ${y}-item-group-list > ${y}-item,
|
|
> ${y}-item-group > ${y}-item-group-list > ${y}-submenu > ${y}-submenu-title,
|
|
> ${y}-submenu > ${y}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${_/2}px - ${c}px)`,textOverflow:"clip",[`
|
|
${y}-submenu-arrow,
|
|
${y}-submenu-expand-icon
|
|
`]:{opacity:0},[`${y}-item-icon, ${h}`]:{margin:0,fontSize:he,lineHeight:`${a}px`,"+ span":{display:"inline-block",opacity:0}}},[`${y}-item-icon, ${h}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${y}-item-icon, ${h}`]:{display:"none"},"a, a:hover":{color:b}},[`${y}-item-group-title`]:Object.assign(Object.assign({},ue.vS),{paddingInline:F})}}]};const Te=m=>{const{componentCls:y,motionDurationSlow:h,motionDurationMid:a,motionEaseInOut:b,motionEaseOut:U,iconCls:E,iconSize:l,iconMarginInlineEnd:p}=m;return{[`${y}-item, ${y}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${h}`,`background ${h}`,`padding ${h} ${b}`].join(","),[`${y}-item-icon, ${E}`]:{minWidth:l,fontSize:l,transition:[`font-size ${a} ${U}`,`margin ${h} ${b}`,`color ${h}`].join(","),"+ span":{marginInlineStart:p,opacity:1,transition:[`opacity ${h} ${b}`,`margin ${h}`,`color ${h}`].join(",")}},[`${y}-item-icon`]:Object.assign({},(0,ue.Ro)()),[`&${y}-item-only-child`]:{[`> ${E}, > ${y}-item-icon`]:{marginInlineEnd:0}}},[`${y}-item-disabled, ${y}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${y}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Pe=m=>{const{componentCls:y,motionDurationSlow:h,motionEaseInOut:a,borderRadius:b,menuArrowSize:U,menuArrowOffset:E}=m;return{[`${y}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:m.margin,width:U,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${h} ${a}, opacity ${h}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:U*.6,height:U*.15,backgroundColor:"currentcolor",borderRadius:b,transition:[`background ${h} ${a}`,`transform ${h} ${a}`,`top ${h} ${a}`,`color ${h} ${a}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${E})`},"&::after":{transform:`rotate(-45deg) translateY(${E})`}}}}},Ie=m=>{const{antCls:y,componentCls:h,fontSize:a,motionDurationSlow:b,motionDurationMid:U,motionEaseInOut:E,paddingXS:l,padding:p,colorSplit:o,lineWidth:c,zIndexPopup:_,borderRadiusLG:L,subMenuItemBorderRadius:F,menuArrowSize:fe,menuArrowOffset:ae,lineType:he,menuPanelMaskInset:G,groupTitleLineHeight:Re,groupTitleFontSize:Ne}=m;return[{"":{[`${h}`]:Object.assign(Object.assign({},(0,ue.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,ue.Wf)(m)),(0,ue.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:a,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${b} 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:m.itemBorderRadius},[`${h}-item-group-title`]:{padding:`${l}px ${p}px`,fontSize:Ne,lineHeight:Re,transition:`all ${b}`},[`&-horizontal ${h}-submenu`]:{transition:[`border-color ${b} ${E}`,`background ${b} ${E}`].join(",")},[`${h}-submenu, ${h}-submenu-inline`]:{transition:[`border-color ${b} ${E}`,`background ${b} ${E}`,`padding ${U} ${E}`].join(",")},[`${h}-submenu ${h}-sub`]:{cursor:"initial",transition:[`background ${b} ${E}`,`padding ${b} ${E}`].join(",")},[`${h}-title-content`]:{transition:`color ${b}`},[`${h}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${h}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:o,borderStyle:he,borderWidth:0,borderTopWidth:c,marginBlock:c,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Te(m)),{[`${h}-item-group`]:{[`${h}-item-group-list`]:{margin:0,padding:0,[`${h}-item, ${h}-submenu-title`]:{paddingInline:`${a*2}px ${p}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:_,borderRadius:L,boxShadow:"none",transformOrigin:"0 0",[`&${h}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${G}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:G},"\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:m.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:m.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:m.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:m.paddingXS},[`> ${h}`]:Object.assign(Object.assign(Object.assign({borderRadius:L},Te(m)),Pe(m)),{[`${h}-item, ${h}-submenu > ${h}-submenu-title`]:{borderRadius:F},[`${h}-submenu-title::after`]:{transition:`transform ${b} ${E}`}})}}),Pe(m)),{[`&-inline-collapsed ${h}-submenu-arrow,
|
|
&-inline ${h}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ae})`},"&::after":{transform:`rotate(45deg) translateX(-${ae})`}},[`${h}-submenu-open${h}-submenu-inline > ${h}-submenu-title > ${h}-submenu-arrow`]:{transform:`translateY(-${fe*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ae})`},"&::before":{transform:`rotate(45deg) translateX(${ae})`}}})},{[`${y}-layout-header`]:{[h]:{lineHeight:"inherit"}}}]};var Je=(m,y)=>(0,P.Z)("Menu",a=>{if(y===!1)return[];const{colorBgElevated:b,colorPrimary:U,colorTextLightSolid:E,controlHeightLG:l,fontSize:p,darkItemColor:o,darkDangerItemColor:c,darkItemBg:_,darkSubMenuItemBg:L,darkItemSelectedColor:F,darkItemSelectedBg:fe,darkDangerItemSelectedBg:ae,darkItemHoverBg:he,darkGroupTitleColor:G,darkItemHoverColor:Re,darkItemDisabledColor:Ne,darkDangerItemHoverColor:W,darkDangerItemSelectedColor:Be,darkDangerItemActiveBg:Xe}=a,Ze=p/7*5,He=(0,v.TS)(a,{menuArrowSize:Ze,menuHorizontalHeight:l*1.15,menuArrowOffset:`${Ze*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:b}),rt=(0,v.TS)(He,{itemColor:o,itemHoverColor:Re,groupTitleColor:G,itemSelectedColor:F,itemBg:_,popupBg:_,subMenuItemBg:L,itemActiveBg:"transparent",itemSelectedBg:fe,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:he,itemDisabledColor:Ne,dangerItemColor:c,dangerItemHoverColor:W,dangerItemSelectedColor:Be,dangerItemActiveBg:Xe,dangerItemSelectedBg:ae,menuSubMenuBg:L,horizontalItemSelectedColor:E,horizontalItemSelectedBg:U});return[Ie(He),pe(He),ge(He),j(He,"light"),j(rt,"dark"),le(He),(0,D.Z)(He),(0,xe.oN)(He,"slide-up"),(0,xe.oN)(He,"slide-down"),(0,R._y)(He,"zoom-big")]},a=>{const{colorPrimary:b,colorError:U,colorTextDisabled:E,colorErrorBg:l,colorText:p,colorTextDescription:o,colorBgContainer:c,colorFillAlter:_,colorFillContent:L,lineWidth:F,lineWidthBold:fe,controlItemBgActive:ae,colorBgTextHover:he,controlHeightLG:G,lineHeight:Re,colorBgElevated:Ne,marginXXS:W,padding:Be,fontSize:Xe,controlHeightSM:Ze,fontSizeLG:He,colorTextLightSolid:rt,colorErrorHover:_t}=a,ct=new X.C(rt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:a.zIndexPopupBase+50,radiusItem:a.borderRadiusLG,itemBorderRadius:a.borderRadiusLG,radiusSubMenuItem:a.borderRadiusSM,subMenuItemBorderRadius:a.borderRadiusSM,colorItemText:p,itemColor:p,colorItemTextHover:p,itemHoverColor:p,colorItemTextHoverHorizontal:b,horizontalItemHoverColor:b,colorGroupTitle:o,groupTitleColor:o,colorItemTextSelected:b,itemSelectedColor:b,colorItemTextSelectedHorizontal:b,horizontalItemSelectedColor:b,colorItemBg:c,itemBg:c,colorItemBgHover:he,itemHoverBg:he,colorItemBgActive:L,itemActiveBg:ae,colorSubItemBg:_,subMenuItemBg:_,colorItemBgSelected:ae,itemSelectedBg:ae,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:fe,activeBarHeight:fe,colorActiveBarBorderSize:F,activeBarBorderWidth:F,colorItemTextDisabled:E,itemDisabledColor:E,colorDangerItemText:U,dangerItemColor:U,colorDangerItemTextHover:U,dangerItemHoverColor:U,colorDangerItemTextSelected:U,dangerItemSelectedColor:U,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:a.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:G,groupTitleLineHeight:Re,collapsedWidth:G*2,popupBg:Ne,itemMarginBlock:W,itemPaddingInline:Be,horizontalLineHeight:`${G*1.15}px`,iconSize:Xe,iconMarginInlineEnd:Ze-Xe,collapsedIconSize:He,groupTitleFontSize:Xe,darkItemDisabledColor:new X.C(rt).setAlpha(.25).toRgbString(),darkItemColor:ct,darkDangerItemColor:U,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:rt,darkItemSelectedBg:b,darkDangerItemSelectedBg:U,darkItemHoverBg:"transparent",darkGroupTitleColor:ct,darkItemHoverColor:rt,darkDangerItemHoverColor:_t,darkDangerItemSelectedColor:rt,darkDangerItemActiveBg:U}},{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"]]})(m),ke=function(m,y){var h={};for(var a in m)Object.prototype.hasOwnProperty.call(m,a)&&y.indexOf(a)<0&&(h[a]=m[a]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,a=Object.getOwnPropertySymbols(m);b<a.length;b++)y.indexOf(a[b])<0&&Object.prototype.propertyIsEnumerable.call(m,a[b])&&(h[a[b]]=m[a[b]]);return h},Ge=(0,x.forwardRef)((m,y)=>{var h,a;const b=x.useContext(N.Z),U=b||{},{getPrefixCls:E,getPopupContainer:l,direction:p,menu:o}=x.useContext(f.E_),c=E(),{prefixCls:_,className:L,style:F,theme:fe="light",expandIcon:ae,_internalDisableMenuItemTitleTooltip:he,inlineCollapsed:G,siderCollapsed:Re,items:Ne,children:W,rootClassName:Be,mode:Xe,selectable:Ze,onClick:He,overflowedIndicatorPopupClassName:rt}=m,_t=ke(m,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ct=(0,ce.Z)(_t,["collapsedWidth"]),st=ne(Ne)||W;(h=U.validator)===null||h===void 0||h.call(U,{mode:Xe});const mt=(0,u.useEvent)(function(){var at;He==null||He.apply(void 0,arguments),(at=U.onClick)===null||at===void 0||at.call(U)}),Ue=U.mode||Xe,Fe=Ze!=null?Ze:U.selectable,tt=x.useMemo(()=>Re!==void 0?Re:G,[G,Re]),Et={horizontal:{motionName:`${c}-slide-up`},inline:(0,S.Z)(c),other:{motionName:`${c}-zoom-big`}},vt=E("menu",_||U.prefixCls),[xt,Ot]=Je(vt,!b),gt=A()(`${vt}-${fe}`,o==null?void 0:o.className,L);let Rt;if(typeof ae=="function")Rt=ae;else if(ae===null||ae===!1)Rt=null;else if(U.expandIcon===null||U.expandIcon===!1)Rt=null;else{const at=ae!=null?ae:U.expandIcon;Rt=(0,d.Tm)(at,{className:A()(`${vt}-submenu-expand-icon`,(0,d.l$)(at)?(a=at.props)===null||a===void 0?void 0:a.className:"")})}const it=x.useMemo(()=>({prefixCls:vt,inlineCollapsed:tt||!1,direction:p,firstLevel:!0,theme:fe,mode:Ue,disableMenuItemTitleTooltip:he}),[vt,tt,p,he,fe]);return xt(x.createElement(N.Z.Provider,{value:null},x.createElement(q.Provider,{value:it},x.createElement(g.ZP,Object.assign({getPopupContainer:l,overflowedIndicator:x.createElement(M.Z,null),overflowedIndicatorPopupClassName:A()(vt,`${vt}-${fe}`,rt),mode:Ue,selectable:Fe,onClick:mt},ct,{inlineCollapsed:tt,style:Object.assign(Object.assign({},o==null?void 0:o.style),F),className:gt,prefixCls:vt,direction:p,defaultMotions:Et,expandIcon:Rt,ref:y,rootClassName:A()(Be,Ot)}),st))))});const V=(0,x.forwardRef)((m,y)=>{const h=(0,x.useRef)(null),a=x.useContext(Z.D);return(0,x.useImperativeHandle)(y,()=>({menu:h.current,focus:b=>{var U;(U=h.current)===null||U===void 0||U.focus(b)}})),x.createElement(Ge,Object.assign({ref:h},m,a))});V.Item=Ce,V.SubMenu=T,V.Divider=oe,V.ItemGroup=g.BW;var Le=V},13570:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return Y}});var g=i(60499),x=i(59301),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"},Q=Z,A=i(7657),f=function(j,J){return x.createElement(A.Z,(0,g.Z)({},j,{ref:J,icon:Q}))},de=x.forwardRef(f),se=de,oe=i(92310),be=i.n(oe),ce=i(18642),$=i(72190),d=i(42244),te=i(18929),q=i(10228),z=i(26112);function Ce(w,j){var J=w.disabled,ie=w.prefixCls,ge=w.character,Te=w.characterRender,Pe=w.index,Ie=w.count,Je=w.value,ke=w.allowHalf,ze=w.focused,Ge=w.onHover,V=w.onClick,Le=function(l){Ge(l,Pe)},m=function(l){V(l,Pe)},y=function(l){l.keyCode===q.Z.ENTER&&V(l,Pe)},h=Pe+1,a=new Set([ie]);Je===0&&Pe===0&&ze?a.add("".concat(ie,"-focused")):ke&&Je+.5>=h&&Je<h?(a.add("".concat(ie,"-half")),a.add("".concat(ie,"-active")),ze&&a.add("".concat(ie,"-focused"))):(h<=Je?a.add("".concat(ie,"-full")):a.add("".concat(ie,"-zero")),h===Je&&ze&&a.add("".concat(ie,"-focused")));var b=typeof ge=="function"?ge(w):ge,U=x.createElement("li",{className:be()(Array.from(a)),ref:j},x.createElement("div",{onClick:J?null:m,onKeyDown:J?null:y,onMouseMove:J?null:Le,role:"radio","aria-checked":Je>Pe?"true":"false","aria-posinset":Pe+1,"aria-setsize":Ie,tabIndex:J?-1:0},x.createElement("div",{className:"".concat(ie,"-first")},b),x.createElement("div",{className:"".concat(ie,"-second")},b)));return Te&&(U=Te(U,w)),U}var K=x.forwardRef(Ce);function T(){var w=x.useRef({});function j(ie){return w.current[ie]}function J(ie){return function(ge){w.current[ie]=ge}}return[j,J]}function M(w){var j=w.pageXOffset,J="scrollLeft";if(typeof j!="number"){var ie=w.document;j=ie.documentElement[J],typeof j!="number"&&(j=ie.body[J])}return j}function u(w){var j,J,ie=w.ownerDocument,ge=ie.body,Te=ie&&ie.documentElement,Pe=w.getBoundingClientRect();return j=Pe.left,J=Pe.top,j-=Te.clientLeft||ge.clientLeft||0,J-=Te.clientTop||ge.clientTop||0,{left:j,top:J}}function S(w){var j=u(w),J=w.ownerDocument,ie=J.defaultView||J.parentWindow;return j.left+=M(ie),j.left}var N=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function k(w,j){var J,ie=w.prefixCls,ge=ie===void 0?"rc-rate":ie,Te=w.className,Pe=w.defaultValue,Ie=w.value,Je=w.count,ke=Je===void 0?5:Je,ze=w.allowHalf,Ge=ze===void 0?!1:ze,V=w.allowClear,Le=V===void 0?!0:V,m=w.character,y=m===void 0?"\u2605":m,h=w.characterRender,a=w.disabled,b=w.direction,U=b===void 0?"ltr":b,E=w.tabIndex,l=E===void 0?0:E,p=w.autoFocus,o=w.onHoverChange,c=w.onChange,_=w.onFocus,L=w.onBlur,F=w.onKeyDown,fe=w.onMouseLeave,ae=(0,d.Z)(w,N),he=T(),G=(0,$.Z)(he,2),Re=G[0],Ne=G[1],W=x.useRef(null),Be=function(){if(!a){var O;(O=W.current)===null||O===void 0||O.focus()}};x.useImperativeHandle(j,function(){return{focus:Be,blur:function(){if(!a){var O;(O=W.current)===null||O===void 0||O.blur()}}}});var Xe=(0,te.Z)(Pe||0,{value:Ie}),Ze=(0,$.Z)(Xe,2),He=Ze[0],rt=Ze[1],_t=(0,te.Z)(null),ct=(0,$.Z)(_t,2),st=ct[0],mt=ct[1],Ue=function(O,we){var Se=U==="rtl",De=O+1;if(Ge){var Qe=Re(O),ot=S(Qe),Ke=Qe.clientWidth;(Se&&we-ot>Ke/2||!Se&&we-ot<Ke/2)&&(De-=.5)}return De},Fe=function(O){rt(O),c==null||c(O)},tt=x.useState(!1),Et=(0,$.Z)(tt,2),vt=Et[0],xt=Et[1],Ot=function(){xt(!0),_==null||_()},gt=function(){xt(!1),L==null||L()},Rt=x.useState(null),it=(0,$.Z)(Rt,2),at=it[0],Ve=it[1],me=function(O,we){var Se=Ue(we,O.pageX);Se!==st&&(Ve(Se),mt(null)),o==null||o(Se)},e=function(O){a||(Ve(null),mt(null),o==null||o(void 0)),O&&(fe==null||fe(O))},t=function(O,we){var Se=Ue(we,O.pageX),De=!1;Le&&(De=Se===He),e(),Fe(De?0:Se),mt(De?Se:null)},n=function(O){var we=O.keyCode,Se=U==="rtl",De=He;we===q.Z.RIGHT&&De<ke&&!Se?(Ge?De+=.5:De+=1,Fe(De),O.preventDefault()):we===q.Z.LEFT&&De>0&&!Se||we===q.Z.RIGHT&&De>0&&Se?(Ge?De-=.5:De-=1,Fe(De),O.preventDefault()):we===q.Z.LEFT&&De<ke&&Se&&(Ge?De+=.5:De+=1,Fe(De),O.preventDefault()),F==null||F(O)};x.useEffect(function(){p&&!a&&Be()},[]);var r=new Array(ke).fill(0).map(function(C,O){return x.createElement(K,{ref:Ne(O),index:O,count:ke,disabled:a,prefixCls:"".concat(ge,"-star"),allowHalf:Ge,value:at===null?He:at,onClick:t,onHover:me,key:C||O,character:y,characterRender:h,focused:vt})}),s=be()(ge,Te,(J={},(0,ce.Z)(J,"".concat(ge,"-disabled"),a),(0,ce.Z)(J,"".concat(ge,"-rtl"),U==="rtl"),J));return x.createElement("ul",(0,g.Z)({className:s,onMouseLeave:e,tabIndex:a?-1:l,onFocus:a?null:Ot,onBlur:a?null:gt,onKeyDown:a?null:n,ref:W,role:"radiogroup"},(0,z.Z)(ae,{aria:!0,data:!0,attr:!0})),r)}var I=x.forwardRef(k),ne=I,X=i(36355),ue=i(6848),D=i(17313),xe=i(83116),R=i(37613);const P=w=>{const{componentCls:j}=w;return{[`${j}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:w.marginXS},"> div":{transition:`all ${w.motionDurationMid}, outline 0s`,"&:hover":{transform:w.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${w.lineWidth}px dashed ${w.starColor}`,transform:w.starHoverScale}},"&-first, &-second":{color:w.starBg,transition:`all ${w.motionDurationMid}`,userSelect:"none",[w.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${j}-star-first, &-half ${j}-star-second`]:{opacity:1},[`&-half ${j}-star-first, &-full ${j}-star-second`]:{color:"inherit"}}}},v=w=>({[`&-rtl${w.componentCls}`]:{direction:"rtl"}}),B=w=>{const{componentCls:j}=w;return{[j]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(w)),{display:"inline-block",margin:0,padding:0,color:w.starColor,fontSize:w.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${j} ${j}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),P(w)),{[`+ ${j}-text`]:{display:"inline-block",marginInlineStart:w.marginXS,fontSize:w.fontSize}}),v(w))}};var pe=(0,xe.Z)("Rate",w=>{const j=(0,R.TS)(w,{});return[B(j)]},w=>({starColor:w.yellow6,starSize:w.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:w.colorFillContent})),H=function(w,j){var J={};for(var ie in w)Object.prototype.hasOwnProperty.call(w,ie)&&j.indexOf(ie)<0&&(J[ie]=w[ie]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,ie=Object.getOwnPropertySymbols(w);ge<ie.length;ge++)j.indexOf(ie[ge])<0&&Object.prototype.propertyIsEnumerable.call(w,ie[ge])&&(J[ie[ge]]=w[ie[ge]]);return J},Y=x.forwardRef((w,j)=>{const{prefixCls:J,className:ie,rootClassName:ge,style:Te,tooltips:Pe,character:Ie=x.createElement(se,null)}=w,Je=H(w,["prefixCls","className","rootClassName","style","tooltips","character"]),ke=(a,b)=>{let{index:U}=b;return Pe?x.createElement(ue.Z,{title:Pe[U]},a):a},{getPrefixCls:ze,direction:Ge,rate:V}=x.useContext(X.E_),Le=ze("rate",J),[m,y]=pe(Le),h=Object.assign(Object.assign({},V==null?void 0:V.style),Te);return m(x.createElement(ne,Object.assign({ref:j,character:Ie,characterRender:ke},Je,{className:be()(ie,ge,y,V==null?void 0:V.className),style:h,prefixCls:Le,direction:Ge})))})},81327:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return Ce}});var g=i(59301),x=i(92310),Z=i.n(x),Q=i(11592),A=i(36355),f=i(33234);const de=g.createContext({latestIndex:0}),se=de.Provider;var be=K=>{let{className:T,index:M,children:u,split:S,style:N}=K;const{latestIndex:k}=g.useContext(de);return u==null?null:g.createElement(g.Fragment,null,g.createElement("div",{className:T,style:N},u),M<k&&S&&g.createElement("span",{className:`${T}-split`},S))},ce=i(2856);function $(K){return["small","middle","large"].includes(K)}function d(K){return K?typeof K=="number"&&!Number.isNaN(K):!1}var te=function(K,T){var M={};for(var u in K)Object.prototype.hasOwnProperty.call(K,u)&&T.indexOf(u)<0&&(M[u]=K[u]);if(K!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,u=Object.getOwnPropertySymbols(K);S<u.length;S++)T.indexOf(u[S])<0&&Object.prototype.propertyIsEnumerable.call(K,u[S])&&(M[u[S]]=K[u[S]]);return M};const z=g.forwardRef((K,T)=>{var M,u;const{getPrefixCls:S,space:N,direction:k}=g.useContext(A.E_),{size:I=(N==null?void 0:N.size)||"small",align:ne,className:X,rootClassName:ue,children:D,direction:xe="horizontal",prefixCls:R,split:P,style:v,wrap:B=!1,classNames:pe,styles:H}=K,le=te(K,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Y,w]=Array.isArray(I)?I:[I,I],j=$(w),J=$(Y),ie=d(w),ge=d(Y),Te=(0,Q.Z)(D,{keepEmpty:!0}),Pe=ne===void 0&&xe==="horizontal"?"center":ne,Ie=S("space",R),[Je,ke]=(0,ce.Z)(Ie),ze=Z()(Ie,N==null?void 0:N.className,ke,`${Ie}-${xe}`,{[`${Ie}-rtl`]:k==="rtl",[`${Ie}-align-${Pe}`]:Pe,[`${Ie}-gap-row-${w}`]:j,[`${Ie}-gap-col-${Y}`]:J},X,ue),Ge=Z()(`${Ie}-item`,(M=pe==null?void 0:pe.item)!==null&&M!==void 0?M:(u=N==null?void 0:N.classNames)===null||u===void 0?void 0:u.item);let V=0;const Le=Te.map((h,a)=>{var b,U;h!=null&&(V=a);const E=h&&h.key||`${Ge}-${a}`;return g.createElement(be,{className:Ge,key:E,index:a,split:P,style:(b=H==null?void 0:H.item)!==null&&b!==void 0?b:(U=N==null?void 0:N.styles)===null||U===void 0?void 0:U.item},h)}),m=g.useMemo(()=>({latestIndex:V}),[V]);if(Te.length===0)return null;const y={};return B&&(y.flexWrap="wrap"),!J&&ge&&(y.columnGap=Y),!j&&ie&&(y.rowGap=w),Je(g.createElement("div",Object.assign({ref:T,className:ze,style:Object.assign(Object.assign(Object.assign({},y),N==null?void 0:N.style),v)},le),g.createElement(se,{value:m},Le)))});z.Compact=f.ZP;var Ce=z},8378:function(ht,Me){"use strict";const i=g=>({[g.componentCls]:{[`${g.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${g.motionDurationMid} ${g.motionEaseInOut},
|
|
opacity ${g.motionDurationMid} ${g.motionEaseInOut} !important`}},[`${g.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${g.motionDurationMid} ${g.motionEaseInOut},
|
|
opacity ${g.motionDurationMid} ${g.motionEaseInOut} !important`}}});Me.Z=i},92899:function(ht,Me,i){"use strict";i.d(Me,{Fm:function(){return $}});var g=i(36237),x=i(95406);const Z=new g.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Q=new g.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),A=new g.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f=new g.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),de=new g.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),se=new g.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),oe=new g.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),be=new g.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ce={"move-up":{inKeyframes:oe,outKeyframes:be},"move-down":{inKeyframes:Z,outKeyframes:Q},"move-left":{inKeyframes:A,outKeyframes:f},"move-right":{inKeyframes:de,outKeyframes:se}},$=(d,te)=>{const{antCls:q}=d,z=`${q}-${te}`,{inKeyframes:Ce,outKeyframes:K}=ce[te];return[(0,x.R)(z,Ce,K,d.motionDurationMid),{[`
|
|
${z}-enter,
|
|
${z}-appear
|
|
`]:{opacity:0,animationTimingFunction:d.motionEaseOutCirc},[`${z}-leave`]:{animationTimingFunction:d.motionEaseInOutCirc}}]}},13826:function(ht,Me,i){"use strict";i.d(Me,{Qt:function(){return A},Uw:function(){return Q},fJ:function(){return Z},ly:function(){return f},oN:function(){return $}});var g=i(36237),x=i(95406);const Z=new g.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Q=new g.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),A=new g.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),f=new g.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),de=new g.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),se=new g.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),oe=new g.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),be=new g.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ce={"slide-up":{inKeyframes:Z,outKeyframes:Q},"slide-down":{inKeyframes:A,outKeyframes:f},"slide-left":{inKeyframes:de,outKeyframes:se},"slide-right":{inKeyframes:oe,outKeyframes:be}},$=(d,te)=>{const{antCls:q}=d,z=`${q}-${te}`,{inKeyframes:Ce,outKeyframes:K}=ce[te];return[(0,x.R)(z,Ce,K,d.motionDurationMid),{[`
|
|
${z}-enter,
|
|
${z}-appear
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:d.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${z}-leave`]:{animationTimingFunction:d.motionEaseInQuint}}]}},78673:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return xe}});var g=i(58617),x=i(92310),Z=i.n(x),Q=i(60499),A=i(18642),f=i(72190),de=i(42244),se=i(59301),oe=i(18929),be=i(10228),ce=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],$=se.forwardRef(function(R,P){var v,B=R.prefixCls,pe=B===void 0?"rc-switch":B,H=R.className,le=R.checked,Y=R.defaultChecked,w=R.disabled,j=R.loadingIcon,J=R.checkedChildren,ie=R.unCheckedChildren,ge=R.onClick,Te=R.onChange,Pe=R.onKeyDown,Ie=(0,de.Z)(R,ce),Je=(0,oe.Z)(!1,{value:le,defaultValue:Y}),ke=(0,f.Z)(Je,2),ze=ke[0],Ge=ke[1];function V(h,a){var b=ze;return w||(b=h,Ge(b),Te==null||Te(b,a)),b}function Le(h){h.which===be.Z.LEFT?V(!1,h):h.which===be.Z.RIGHT&&V(!0,h),Pe==null||Pe(h)}function m(h){var a=V(!ze,h);ge==null||ge(a,h)}var y=Z()(pe,H,(v={},(0,A.Z)(v,"".concat(pe,"-checked"),ze),(0,A.Z)(v,"".concat(pe,"-disabled"),w),v));return se.createElement("button",(0,Q.Z)({},Ie,{type:"button",role:"switch","aria-checked":ze,disabled:w,className:y,ref:P,onKeyDown:Le,onClick:m}),j,se.createElement("span",{className:"".concat(pe,"-inner")},se.createElement("span",{className:"".concat(pe,"-inner-checked")},J),se.createElement("span",{className:"".concat(pe,"-inner-unchecked")},ie)))});$.displayName="Switch";var d=$,te=i(14088),q=i(36355),z=i(1684),Ce=i(19716),K=i(64993),T=i(17313),M=i(83116),u=i(37613);const S=R=>{const{componentCls:P,trackHeightSM:v,trackPadding:B,trackMinWidthSM:pe,innerMinMarginSM:H,innerMaxMarginSM:le,handleSizeSM:Y}=R,w=`${P}-inner`;return{[P]:{[`&${P}-small`]:{minWidth:pe,height:v,lineHeight:`${v}px`,[`${P}-inner`]:{paddingInlineStart:le,paddingInlineEnd:H,[`${w}-checked`]:{marginInlineStart:`calc(-100% + ${Y+B*2}px - ${le*2}px)`,marginInlineEnd:`calc(100% - ${Y+B*2}px + ${le*2}px)`},[`${w}-unchecked`]:{marginTop:-v,marginInlineStart:0,marginInlineEnd:0}},[`${P}-handle`]:{width:Y,height:Y},[`${P}-loading-icon`]:{top:(Y-R.switchLoadingIconSize)/2,fontSize:R.switchLoadingIconSize},[`&${P}-checked`]:{[`${P}-inner`]:{paddingInlineStart:H,paddingInlineEnd:le,[`${w}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${w}-unchecked`]:{marginInlineStart:`calc(100% - ${Y+B*2}px + ${le*2}px)`,marginInlineEnd:`calc(-100% + ${Y+B*2}px - ${le*2}px)`}},[`${P}-handle`]:{insetInlineStart:`calc(100% - ${Y+B}px)`}},[`&:not(${P}-disabled):active`]:{[`&:not(${P}-checked) ${w}`]:{[`${w}-unchecked`]:{marginInlineStart:R.marginXXS/2,marginInlineEnd:-R.marginXXS/2}},[`&${P}-checked ${w}`]:{[`${w}-checked`]:{marginInlineStart:-R.marginXXS/2,marginInlineEnd:R.marginXXS/2}}}}}}},N=R=>{const{componentCls:P,handleSize:v}=R;return{[P]:{[`${P}-loading-icon${R.iconCls}`]:{position:"relative",top:(v-R.fontSize)/2,color:R.switchLoadingIconColor,verticalAlign:"top"},[`&${P}-checked ${P}-loading-icon`]:{color:R.switchColor}}}},k=R=>{const{componentCls:P,motion:v,trackPadding:B,handleBg:pe,handleShadow:H,handleSize:le}=R,Y=`${P}-handle`;return{[P]:{[Y]:{position:"absolute",top:B,insetInlineStart:B,width:le,height:le,transition:`all ${R.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:pe,borderRadius:le/2,boxShadow:H,transition:`all ${R.switchDuration} ease-in-out`,content:'""'}},[`&${P}-checked ${Y}`]:{insetInlineStart:`calc(100% - ${le+B}px)`},[`&:not(${P}-disabled):active`]:v?{[`${Y}::before`]:{insetInlineEnd:R.switchHandleActiveInset,insetInlineStart:0},[`&${P}-checked ${Y}::before`]:{insetInlineEnd:0,insetInlineStart:R.switchHandleActiveInset}}:{}}}},I=R=>{const{componentCls:P,trackHeight:v,trackPadding:B,innerMinMargin:pe,innerMaxMargin:H,handleSize:le}=R,Y=`${P}-inner`;return{[P]:{[Y]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:H,paddingInlineEnd:pe,transition:`padding-inline-start ${R.switchDuration} ease-in-out, padding-inline-end ${R.switchDuration} ease-in-out`,[`${Y}-checked, ${Y}-unchecked`]:{display:"block",color:R.colorTextLightSolid,fontSize:R.fontSizeSM,transition:`margin-inline-start ${R.switchDuration} ease-in-out, margin-inline-end ${R.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Y}-checked`]:{marginInlineStart:`calc(-100% + ${le+B*2}px - ${H*2}px)`,marginInlineEnd:`calc(100% - ${le+B*2}px + ${H*2}px)`},[`${Y}-unchecked`]:{marginTop:-v,marginInlineStart:0,marginInlineEnd:0}},[`&${P}-checked ${Y}`]:{paddingInlineStart:pe,paddingInlineEnd:H,[`${Y}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Y}-unchecked`]:{marginInlineStart:`calc(100% - ${le+B*2}px + ${H*2}px)`,marginInlineEnd:`calc(-100% + ${le+B*2}px - ${H*2}px)`}},[`&:not(${P}-disabled):active`]:{[`&:not(${P}-checked) ${Y}`]:{[`${Y}-unchecked`]:{marginInlineStart:B*2,marginInlineEnd:-B*2}},[`&${P}-checked ${Y}`]:{[`${Y}-checked`]:{marginInlineStart:-B*2,marginInlineEnd:B*2}}}}}},ne=R=>{const{componentCls:P,trackHeight:v,trackMinWidth:B}=R;return{[P]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,T.Wf)(R)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:B,height:v,lineHeight:`${v}px`,verticalAlign:"middle",background:R.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${R.motionDurationMid}`,userSelect:"none",[`&:hover:not(${P}-disabled)`]:{background:R.colorTextTertiary}}),(0,T.Qy)(R)),{[`&${P}-checked`]:{background:R.switchColor,[`&:hover:not(${P}-disabled)`]:{background:R.colorPrimaryHover}},[`&${P}-loading, &${P}-disabled`]:{cursor:"not-allowed",opacity:R.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${P}-rtl`]:{direction:"rtl"}})}};var X=(0,M.Z)("Switch",R=>{const P=(0,u.TS)(R,{switchDuration:R.motionDurationMid,switchColor:R.colorPrimary,switchDisabledOpacity:R.opacityLoading,switchLoadingIconSize:R.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${R.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ne(P),I(P),k(P),N(P),S(P)]},R=>{const{fontSize:P,lineHeight:v,controlHeight:B,colorWhite:pe}=R,H=P*v,le=B/2,Y=2,w=H-Y*2,j=le-Y*2;return{trackHeight:H,trackHeightSM:le,trackMinWidth:w*2+Y*4,trackMinWidthSM:j*2+Y*2,trackPadding:Y,handleBg:pe,handleSize:w,handleSizeSM:j,handleShadow:`0 2px 4px 0 ${new K.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:w/2,innerMaxMargin:w+Y+Y*2,innerMinMarginSM:j/2,innerMaxMarginSM:j+Y+Y*2}}),ue=function(R,P){var v={};for(var B in R)Object.prototype.hasOwnProperty.call(R,B)&&P.indexOf(B)<0&&(v[B]=R[B]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,B=Object.getOwnPropertySymbols(R);pe<B.length;pe++)P.indexOf(B[pe])<0&&Object.prototype.propertyIsEnumerable.call(R,B[pe])&&(v[B[pe]]=R[B[pe]]);return v};const D=se.forwardRef((R,P)=>{const{prefixCls:v,size:B,disabled:pe,loading:H,className:le,rootClassName:Y,style:w}=R,j=ue(R,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:J,direction:ie,switch:ge}=se.useContext(q.E_),Te=se.useContext(z.Z),Pe=(pe!=null?pe:Te)||H,Ie=J("switch",v),Je=se.createElement("div",{className:`${Ie}-handle`},H&&se.createElement(g.Z,{className:`${Ie}-loading-icon`})),[ke,ze]=X(Ie),Ge=(0,Ce.Z)(B),V=Z()(ge==null?void 0:ge.className,{[`${Ie}-small`]:Ge==="small",[`${Ie}-loading`]:H,[`${Ie}-rtl`]:ie==="rtl"},le,Y,ze),Le=Object.assign(Object.assign({},ge==null?void 0:ge.style),w);return ke(se.createElement(te.Z,{component:"Switch"},se.createElement(d,Object.assign({},j,{prefixCls:Ie,className:V,style:Le,disabled:Pe,ref:P,loadingIcon:Je}))))});D.__ANT_SWITCH=!0;var xe=D},17574:function(ht,Me,i){"use strict";i.d(Me,{default:function(){return le}});var g=i(38028),x=i(77654),Z=i(52671),Q=i(8657),A=i(60499),f=i(59301),de={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"},se=de,oe=i(7657),be=function(w,j){return f.createElement(oe.Z,(0,A.Z)({},w,{ref:j,icon:se}))},ce=f.forwardRef(be),$=ce,d=i(92310),te=i.n(d),q=i(35654),z=i(71430),Ce=i(36355),K=i(56082),T=i(62892),M=i(20648);const u=4;function S(Y){const{dropPosition:w,dropLevelOffset:j,prefixCls:J,indent:ie,direction:ge="ltr"}=Y,Te=ge==="ltr"?"left":"right",Pe=ge==="ltr"?"right":"left",Ie={[Te]:-j*ie+u,[Pe]:0};switch(w){case-1:Ie.top=-3;break;case 1:Ie.bottom=-3;break;default:Ie.bottom=-3,Ie[Te]=ie+u;break}return f.createElement("div",{style:Ie,className:`${J}-drop-indicator`})}var N=i(71997),I=f.forwardRef((Y,w)=>{const{getPrefixCls:j,direction:J,virtual:ie,tree:ge}=f.useContext(Ce.E_),{prefixCls:Te,className:Pe,showIcon:Ie=!1,showLine:Je,switcherIcon:ke,blockNode:ze=!1,children:Ge,checkable:V=!1,selectable:Le=!0,draggable:m,motion:y,style:h}=Y,a=j("tree",Te),b=j(),U=y!=null?y:Object.assign(Object.assign({},(0,T.Z)(b)),{motionAppear:!1}),E=Object.assign(Object.assign({},Y),{checkable:V,selectable:Le,showIcon:Ie,motion:U,blockNode:ze,showLine:!!Je,dropIndicatorRender:S}),[l,p]=(0,M.ZP)(a),o=f.useMemo(()=>{if(!m)return!1;let _={};switch(typeof m){case"function":_.nodeDraggable=m;break;case"object":_=Object.assign({},m);break;default:break}return _.icon!==!1&&(_.icon=_.icon||f.createElement(K.Z,null)),_},[m]),c=_=>f.createElement(N.Z,{prefixCls:a,switcherIcon:ke,treeNodeProps:_,showLine:Je});return l(f.createElement(g.Z,Object.assign({itemHeight:20,ref:w,virtual:ie},E,{style:Object.assign(Object.assign({},ge==null?void 0:ge.style),h),prefixCls:a,className:te()({[`${a}-icon-hide`]:!Ie,[`${a}-block-node`]:ze,[`${a}-unselectable`]:!Le,[`${a}-rtl`]:J==="rtl"},ge==null?void 0:ge.className,Pe,p),direction:J,checkable:V&&f.createElement("span",{className:`${a}-checkbox-inner`}),selectable:Le,switcherIcon:c,draggable:o}),Ge))}),ne;(function(Y){Y[Y.None=0]="None",Y[Y.Start=1]="Start",Y[Y.End=2]="End"})(ne||(ne={}));function X(Y,w){function j(J){const{key:ie,children:ge}=J;w(ie,J)!==!1&&X(ge||[],w)}Y.forEach(j)}function ue(Y){let{treeData:w,expandedKeys:j,startKey:J,endKey:ie}=Y;const ge=[];let Te=ne.None;if(J&&J===ie)return[J];if(!J||!ie)return[];function Pe(Ie){return Ie===J||Ie===ie}return X(w,Ie=>{if(Te===ne.End)return!1;if(Pe(Ie)){if(ge.push(Ie),Te===ne.None)Te=ne.Start;else if(Te===ne.Start)return Te=ne.End,!1}else Te===ne.Start&&ge.push(Ie);return j.includes(Ie)}),ge}function D(Y,w){const j=(0,x.Z)(w),J=[];return X(Y,(ie,ge)=>{const Te=j.indexOf(ie);return Te!==-1&&(J.push(ge),j.splice(Te,1)),!!j.length}),J}var xe=function(Y,w){var j={};for(var J in Y)Object.prototype.hasOwnProperty.call(Y,J)&&w.indexOf(J)<0&&(j[J]=Y[J]);if(Y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,J=Object.getOwnPropertySymbols(Y);ie<J.length;ie++)w.indexOf(J[ie])<0&&Object.prototype.propertyIsEnumerable.call(Y,J[ie])&&(j[J[ie]]=Y[J[ie]]);return j};function R(Y){const{isLeaf:w,expanded:j}=Y;return w?f.createElement(Z.Z,null):j?f.createElement(Q.Z,null):f.createElement($,null)}function P(Y){let{treeData:w,children:j}=Y;return w||(0,z.zn)(j)}const v=(Y,w)=>{var{defaultExpandAll:j,defaultExpandParent:J,defaultExpandedKeys:ie}=Y,ge=xe(Y,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Te=f.useRef(),Pe=f.useRef(),Ie=()=>{const{keyEntities:o}=(0,z.I8)(P(ge));let c;return j?c=Object.keys(o):J?c=(0,q.r7)(ge.expandedKeys||ie||[],o):c=ge.expandedKeys||ie,c},[Je,ke]=f.useState(ge.selectedKeys||ge.defaultSelectedKeys||[]),[ze,Ge]=f.useState(()=>Ie());f.useEffect(()=>{"selectedKeys"in ge&&ke(ge.selectedKeys)},[ge.selectedKeys]),f.useEffect(()=>{"expandedKeys"in ge&&Ge(ge.expandedKeys)},[ge.expandedKeys]);const V=(o,c)=>{var _;return"expandedKeys"in ge||Ge(o),(_=ge.onExpand)===null||_===void 0?void 0:_.call(ge,o,c)},Le=(o,c)=>{var _;const{multiple:L}=ge,{node:F,nativeEvent:fe}=c,{key:ae=""}=F,he=P(ge),G=Object.assign(Object.assign({},c),{selected:!0}),Re=(fe==null?void 0:fe.ctrlKey)||(fe==null?void 0:fe.metaKey),Ne=fe==null?void 0:fe.shiftKey;let W;L&&Re?(W=o,Te.current=ae,Pe.current=W,G.selectedNodes=D(he,W)):L&&Ne?(W=Array.from(new Set([].concat((0,x.Z)(Pe.current||[]),(0,x.Z)(ue({treeData:he,expandedKeys:ze,startKey:ae,endKey:Te.current}))))),G.selectedNodes=D(he,W)):(W=[ae],Te.current=ae,Pe.current=W,G.selectedNodes=D(he,W)),(_=ge.onSelect)===null||_===void 0||_.call(ge,W,G),"selectedKeys"in ge||ke(W)},{getPrefixCls:m,direction:y}=f.useContext(Ce.E_),{prefixCls:h,className:a,showIcon:b=!0,expandAction:U="click"}=ge,E=xe(ge,["prefixCls","className","showIcon","expandAction"]),l=m("tree",h),p=te()(`${l}-directory`,{[`${l}-directory-rtl`]:y==="rtl"},a);return f.createElement(I,Object.assign({icon:R,ref:w,blockNode:!0},E,{showIcon:b,expandAction:U,prefixCls:l,className:p,expandedKeys:ze,selectedKeys:Je,onSelect:Le,onExpand:V}))};var pe=f.forwardRef(v);const H=I;H.DirectoryTree=pe,H.TreeNode=g.O;var le=H},20648:function(ht,Me,i){"use strict";i.d(Me,{TM:function(){return d},Yk:function(){return $}});var g=i(36237),x=i(98447),Z=i(17313),Q=i(8378),A=i(37613),f=i(83116);const de=new g.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),se=(te,q)=>({[`.${te}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${q.motionDurationSlow}`}}}),oe=(te,q)=>({[`.${te}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:q.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${q.lineWidthBold}px solid ${q.colorPrimary}`,borderRadius:"50%",content:'""'}}}),be=(te,q)=>{const{treeCls:z,treeNodeCls:Ce,treeNodePadding:K,titleHeight:T,nodeSelectedBg:M,nodeHoverBg:u}=q,S=q.paddingXS;return{[z]:Object.assign(Object.assign({},(0,Z.Wf)(q)),{background:q.colorBgContainer,borderRadius:q.borderRadius,transition:`background-color ${q.motionDurationSlow}`,[`&${z}-rtl`]:{[`${z}-switcher`]:{"&_close":{[`${z}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${z}-active-focused)`]:Object.assign({},(0,Z.oN)(q)),[`${z}-list-holder-inner`]:{alignItems:"flex-start"},[`&${z}-block-node`]:{[`${z}-list-holder-inner`]:{alignItems:"stretch",[`${z}-node-content-wrapper`]:{flex:"auto"},[`${Ce}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:K,insetInlineStart:0,border:`1px solid ${q.colorPrimary}`,opacity:0,animationName:de,animationDuration:q.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Ce}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${K}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${z}-node-content-wrapper`]:{color:q.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${z}-node-content-wrapper`]:Object.assign({},(0,Z.oN)(q)),[`&:not(${Ce}-disabled).filter-node ${z}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${z}-draggable-icon`]:{flexShrink:0,width:T,lineHeight:`${T}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${q.motionDurationSlow}`,[`${Ce}:hover &`]:{opacity:.45}},[`&${Ce}-disabled`]:{[`${z}-draggable-icon`]:{visibility:"hidden"}}}},[`${z}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:T}},[`${z}-draggable-icon`]:{visibility:"hidden"},[`${z}-switcher`]:Object.assign(Object.assign({},se(te,q)),{position:"relative",flex:"none",alignSelf:"stretch",width:T,margin:0,lineHeight:`${T}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${z}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:q.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:T/2,bottom:-K,marginInlineStart:-1,borderInlineEnd:`1px solid ${q.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:T/2*.8,height:T/2,borderBottom:`1px solid ${q.colorBorder}`,content:'""'}}}),[`${z}-checkbox`]:{top:"initial",marginInlineEnd:S},[`${z}-node-content-wrapper, ${z}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:T,margin:0,padding:`0 ${q.paddingXS/2}px`,color:"inherit",lineHeight:`${T}px`,background:"transparent",borderRadius:q.borderRadius,cursor:"pointer",transition:`all ${q.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:u},[`&${z}-node-selected`]:{backgroundColor:M},[`${z}-iconEle`]:{display:"inline-block",width:T,height:T,lineHeight:`${T}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${z}-unselectable ${z}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${z}-node-content-wrapper`]:Object.assign({lineHeight:`${T}px`,userSelect:"none"},oe(te,q)),[`${Ce}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${q.colorPrimary}`}},"&-show-line":{[`${z}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:T/2,bottom:-K,borderInlineEnd:`1px solid ${q.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${z}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Ce}-leaf-last`]:{[`${z}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${T/2}px !important`}}}}})}},ce=te=>{const{treeCls:q,treeNodeCls:z,treeNodePadding:Ce,directoryNodeSelectedBg:K,directoryNodeSelectedColor:T}=te;return{[`${q}${q}-directory`]:{[z]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Ce,insetInlineStart:0,transition:`background-color ${te.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:te.controlItemBgHover}},"> *":{zIndex:1},[`${q}-switcher`]:{transition:`color ${te.motionDurationMid}`},[`${q}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${q}-node-selected`]:{color:T,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:K},[`${q}-switcher`]:{color:T},[`${q}-node-content-wrapper`]:{color:T,background:"transparent"}}}}}},$=(te,q)=>{const z=`.${te}`,Ce=`${z}-treenode`,K=q.paddingXS/2,T=(0,A.TS)(q,{treeCls:z,treeNodeCls:Ce,treeNodePadding:K});return[be(te,T),ce(T)]},d=te=>{const{controlHeightSM:q}=te;return{titleHeight:q,nodeHoverBg:te.controlItemBgHover,nodeSelectedBg:te.controlItemBgActive}};Me.ZP=(0,f.Z)("Tree",(te,q)=>{let{prefixCls:z}=q;return[{[te.componentCls]:(0,x.C2)(`${z}-checkbox`,te)},$(z,te),(0,Q.Z)(te)]},te=>{const{colorTextLightSolid:q,colorPrimary:z}=te;return Object.assign(Object.assign({},d(te)),{directoryNodeSelectedColor:q,directoryNodeSelectedBg:z})})},71997:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return Ce}});var g=i(60499),x=i(59301),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"},Q=Z,A=i(7657),f=function(T,M){return x.createElement(A.Z,(0,g.Z)({},T,{ref:M,icon:Q}))},de=x.forwardRef(f),se=de,oe=i(52671),be=i(58617),ce=i(15075),$=i(43531),d=i(92310),te=i.n(d),q=i(92343),Ce=K=>{const{prefixCls:T,switcherIcon:M,treeNodeProps:u,showLine:S}=K,{isLeaf:N,expanded:k,loading:I}=u;if(I)return x.createElement(be.Z,{className:`${T}-switcher-loading-icon`});let ne;if(S&&typeof S=="object"&&(ne=S.showLeafIcon),N){if(!S)return null;if(typeof ne!="boolean"&&ne){const D=typeof ne=="function"?ne(u):ne,xe=`${T}-switcher-line-custom-icon`;return(0,q.l$)(D)?(0,q.Tm)(D,{className:te()(D.props.className||"",xe)}):D}return ne?x.createElement(oe.Z,{className:`${T}-switcher-line-icon`}):x.createElement("span",{className:`${T}-switcher-leaf-line`})}const X=`${T}-switcher-icon`,ue=typeof M=="function"?M(u):M;return(0,q.l$)(ue)?(0,q.Tm)(ue,{className:te()(ue.props.className||"",X)}):ue!==void 0?ue:S?k?x.createElement(ce.Z,{className:`${T}-switcher-line-icon`}):x.createElement($.Z,{className:`${T}-switcher-line-icon`}):x.createElement(se,{className:X})}},3867:function(ht,Me,i){var g=i(97671);(function(x,Z){ht.exports=Z()})(this,function(){"use strict";function x(E){var l=typeof E;return E!==null&&(l==="object"||l==="function")}function Z(E){return typeof E=="function"}var Q=void 0;Array.isArray?Q=Array.isArray:Q=function(E){return Object.prototype.toString.call(E)==="[object Array]"};var A=Q,f=0,de=void 0,se=void 0,oe=function(l,p){S[f]=l,S[f+1]=p,f+=2,f===2&&(se?se(N):I())};function be(E){se=E}function ce(E){oe=E}var $=typeof window!="undefined"?window:void 0,d=$||{},te=d.MutationObserver||d.WebKitMutationObserver,q=typeof self=="undefined"&&typeof g!="undefined"&&{}.toString.call(g)==="[object process]",z=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function Ce(){return function(){return g.nextTick(N)}}function K(){return typeof de!="undefined"?function(){de(N)}:u()}function T(){var E=0,l=new te(N),p=document.createTextNode("");return l.observe(p,{characterData:!0}),function(){p.data=E=++E%2}}function M(){var E=new MessageChannel;return E.port1.onmessage=N,function(){return E.port2.postMessage(0)}}function u(){var E=setTimeout;return function(){return E(N,1)}}var S=new Array(1e3);function N(){for(var E=0;E<f;E+=2){var l=S[E],p=S[E+1];l(p),S[E]=void 0,S[E+1]=void 0}f=0}function k(){try{var E=Function("return this")().require("vertx");return de=E.runOnLoop||E.runOnContext,K()}catch(l){return u()}}var I=void 0;q?I=Ce():te?I=T():z?I=M():$===void 0?I=k():I=u();function ne(E,l){var p=this,o=new this.constructor(D);o[ue]===void 0&&ze(o);var c=p._state;if(c){var _=arguments[c-1];oe(function(){return Pe(c,o,_,p._result)})}else ge(p,o,E,l);return o}function X(E){var l=this;if(E&&typeof E=="object"&&E.constructor===l)return E;var p=new l(D);return w(p,E),p}var ue=Math.random().toString(36).substring(2);function D(){}var xe=void 0,R=1,P=2;function v(){return new TypeError("You cannot resolve a promise with itself")}function B(){return new TypeError("A promises callback cannot return that same promise.")}function pe(E,l,p,o){try{E.call(l,p,o)}catch(c){return c}}function H(E,l,p){oe(function(o){var c=!1,_=pe(p,l,function(L){c||(c=!0,l!==L?w(o,L):J(o,L))},function(L){c||(c=!0,ie(o,L))},"Settle: "+(o._label||" unknown promise"));!c&&_&&(c=!0,ie(o,_))},E)}function le(E,l){l._state===R?J(E,l._result):l._state===P?ie(E,l._result):ge(l,void 0,function(p){return w(E,p)},function(p){return ie(E,p)})}function Y(E,l,p){l.constructor===E.constructor&&p===ne&&l.constructor.resolve===X?le(E,l):p===void 0?J(E,l):Z(p)?H(E,l,p):J(E,l)}function w(E,l){if(E===l)ie(E,v());else if(x(l)){var p=void 0;try{p=l.then}catch(o){ie(E,o);return}Y(E,l,p)}else J(E,l)}function j(E){E._onerror&&E._onerror(E._result),Te(E)}function J(E,l){E._state===xe&&(E._result=l,E._state=R,E._subscribers.length!==0&&oe(Te,E))}function ie(E,l){E._state===xe&&(E._state=P,E._result=l,oe(j,E))}function ge(E,l,p,o){var c=E._subscribers,_=c.length;E._onerror=null,c[_]=l,c[_+R]=p,c[_+P]=o,_===0&&E._state&&oe(Te,E)}function Te(E){var l=E._subscribers,p=E._state;if(l.length!==0){for(var o=void 0,c=void 0,_=E._result,L=0;L<l.length;L+=3)o=l[L],c=l[L+p],o?Pe(p,o,c,_):c(_);E._subscribers.length=0}}function Pe(E,l,p,o){var c=Z(p),_=void 0,L=void 0,F=!0;if(c){try{_=p(o)}catch(fe){F=!1,L=fe}if(l===_){ie(l,B());return}}else _=o;l._state!==xe||(c&&F?w(l,_):F===!1?ie(l,L):E===R?J(l,_):E===P&&ie(l,_))}function Ie(E,l){try{l(function(o){w(E,o)},function(o){ie(E,o)})}catch(p){ie(E,p)}}var Je=0;function ke(){return Je++}function ze(E){E[ue]=Je++,E._state=void 0,E._result=void 0,E._subscribers=[]}function Ge(){return new Error("Array Methods must be provided an Array")}var V=function(){function E(l,p){this._instanceConstructor=l,this.promise=new l(D),this.promise[ue]||ze(this.promise),A(p)?(this.length=p.length,this._remaining=p.length,this._result=new Array(this.length),this.length===0?J(this.promise,this._result):(this.length=this.length||0,this._enumerate(p),this._remaining===0&&J(this.promise,this._result))):ie(this.promise,Ge())}return E.prototype._enumerate=function(p){for(var o=0;this._state===xe&&o<p.length;o++)this._eachEntry(p[o],o)},E.prototype._eachEntry=function(p,o){var c=this._instanceConstructor,_=c.resolve;if(_===X){var L=void 0,F=void 0,fe=!1;try{L=p.then}catch(he){fe=!0,F=he}if(L===ne&&p._state!==xe)this._settledAt(p._state,o,p._result);else if(typeof L!="function")this._remaining--,this._result[o]=p;else if(c===b){var ae=new c(D);fe?ie(ae,F):Y(ae,p,L),this._willSettleAt(ae,o)}else this._willSettleAt(new c(function(he){return he(p)}),o)}else this._willSettleAt(_(p),o)},E.prototype._settledAt=function(p,o,c){var _=this.promise;_._state===xe&&(this._remaining--,p===P?ie(_,c):this._result[o]=c),this._remaining===0&&J(_,this._result)},E.prototype._willSettleAt=function(p,o){var c=this;ge(p,void 0,function(_){return c._settledAt(R,o,_)},function(_){return c._settledAt(P,o,_)})},E}();function Le(E){return new V(this,E).promise}function m(E){var l=this;return A(E)?new l(function(p,o){for(var c=E.length,_=0;_<c;_++)l.resolve(E[_]).then(p,o)}):new l(function(p,o){return o(new TypeError("You must pass an array to race."))})}function y(E){var l=this,p=new l(D);return ie(p,E),p}function h(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function a(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var b=function(){function E(l){this[ue]=ke(),this._result=this._state=void 0,this._subscribers=[],D!==l&&(typeof l!="function"&&h(),this instanceof E?Ie(this,l):a())}return E.prototype.catch=function(p){return this.then(null,p)},E.prototype.finally=function(p){var o=this,c=o.constructor;return Z(p)?o.then(function(_){return c.resolve(p()).then(function(){return _})},function(_){return c.resolve(p()).then(function(){throw _})}):o.then(p,p)},E}();b.prototype.then=ne,b.all=Le,b.race=m,b.resolve=X,b.reject=y,b._setScheduler=be,b._setAsap=ce,b._asap=oe;function U(){var E=void 0;if(typeof i.g!="undefined")E=i.g;else if(typeof self!="undefined")E=self;else try{E=Function("return this")()}catch(o){throw new Error("polyfill failed because global object is unavailable in this environment")}var l=E.Promise;if(l){var p=null;try{p=Object.prototype.toString.call(l.resolve())}catch(o){}if(p==="[object Promise]"&&!l.cast)return}E.Promise=b}return b.polyfill=U,b.Promise=b,b})},86204:function(ht){"use strict";var Me=typeof Reflect=="object"?Reflect:null,i=Me&&typeof Me.apply=="function"?Me.apply:function(M,u,S){return Function.prototype.apply.call(M,u,S)},g;Me&&typeof Me.ownKeys=="function"?g=Me.ownKeys:Object.getOwnPropertySymbols?g=function(M){return Object.getOwnPropertyNames(M).concat(Object.getOwnPropertySymbols(M))}:g=function(M){return Object.getOwnPropertyNames(M)};function x(T){console&&console.warn&&console.warn(T)}var Z=Number.isNaN||function(M){return M!==M};function Q(){Q.init.call(this)}ht.exports=Q,ht.exports.once=z,Q.EventEmitter=Q,Q.prototype._events=void 0,Q.prototype._eventsCount=0,Q.prototype._maxListeners=void 0;var A=10;function f(T){if(typeof T!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof T)}Object.defineProperty(Q,"defaultMaxListeners",{enumerable:!0,get:function(){return A},set:function(T){if(typeof T!="number"||T<0||Z(T))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+T+".");A=T}}),Q.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},Q.prototype.setMaxListeners=function(M){if(typeof M!="number"||M<0||Z(M))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+M+".");return this._maxListeners=M,this};function de(T){return T._maxListeners===void 0?Q.defaultMaxListeners:T._maxListeners}Q.prototype.getMaxListeners=function(){return de(this)},Q.prototype.emit=function(M){for(var u=[],S=1;S<arguments.length;S++)u.push(arguments[S]);var N=M==="error",k=this._events;if(k!==void 0)N=N&&k.error===void 0;else if(!N)return!1;if(N){var I;if(u.length>0&&(I=u[0]),I instanceof Error)throw I;var ne=new Error("Unhandled error."+(I?" ("+I.message+")":""));throw ne.context=I,ne}var X=k[M];if(X===void 0)return!1;if(typeof X=="function")i(X,this,u);else for(var ue=X.length,D=d(X,ue),S=0;S<ue;++S)i(D[S],this,u);return!0};function se(T,M,u,S){var N,k,I;if(f(u),k=T._events,k===void 0?(k=T._events=Object.create(null),T._eventsCount=0):(k.newListener!==void 0&&(T.emit("newListener",M,u.listener?u.listener:u),k=T._events),I=k[M]),I===void 0)I=k[M]=u,++T._eventsCount;else if(typeof I=="function"?I=k[M]=S?[u,I]:[I,u]:S?I.unshift(u):I.push(u),N=de(T),N>0&&I.length>N&&!I.warned){I.warned=!0;var ne=new Error("Possible EventEmitter memory leak detected. "+I.length+" "+String(M)+" listeners added. Use emitter.setMaxListeners() to increase limit");ne.name="MaxListenersExceededWarning",ne.emitter=T,ne.type=M,ne.count=I.length,x(ne)}return T}Q.prototype.addListener=function(M,u){return se(this,M,u,!1)},Q.prototype.on=Q.prototype.addListener,Q.prototype.prependListener=function(M,u){return se(this,M,u,!0)};function oe(){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 be(T,M,u){var S={fired:!1,wrapFn:void 0,target:T,type:M,listener:u},N=oe.bind(S);return N.listener=u,S.wrapFn=N,N}Q.prototype.once=function(M,u){return f(u),this.on(M,be(this,M,u)),this},Q.prototype.prependOnceListener=function(M,u){return f(u),this.prependListener(M,be(this,M,u)),this},Q.prototype.removeListener=function(M,u){var S,N,k,I,ne;if(f(u),N=this._events,N===void 0)return this;if(S=N[M],S===void 0)return this;if(S===u||S.listener===u)--this._eventsCount===0?this._events=Object.create(null):(delete N[M],N.removeListener&&this.emit("removeListener",M,S.listener||u));else if(typeof S!="function"){for(k=-1,I=S.length-1;I>=0;I--)if(S[I]===u||S[I].listener===u){ne=S[I].listener,k=I;break}if(k<0)return this;k===0?S.shift():te(S,k),S.length===1&&(N[M]=S[0]),N.removeListener!==void 0&&this.emit("removeListener",M,ne||u)}return this},Q.prototype.off=Q.prototype.removeListener,Q.prototype.removeAllListeners=function(M){var u,S,N;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[M]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[M]),this;if(arguments.length===0){var k=Object.keys(S),I;for(N=0;N<k.length;++N)I=k[N],I!=="removeListener"&&this.removeAllListeners(I);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(u=S[M],typeof u=="function")this.removeListener(M,u);else if(u!==void 0)for(N=u.length-1;N>=0;N--)this.removeListener(M,u[N]);return this};function ce(T,M,u){var S=T._events;if(S===void 0)return[];var N=S[M];return N===void 0?[]:typeof N=="function"?u?[N.listener||N]:[N]:u?q(N):d(N,N.length)}Q.prototype.listeners=function(M){return ce(this,M,!0)},Q.prototype.rawListeners=function(M){return ce(this,M,!1)},Q.listenerCount=function(T,M){return typeof T.listenerCount=="function"?T.listenerCount(M):$.call(T,M)},Q.prototype.listenerCount=$;function $(T){var M=this._events;if(M!==void 0){var u=M[T];if(typeof u=="function")return 1;if(u!==void 0)return u.length}return 0}Q.prototype.eventNames=function(){return this._eventsCount>0?g(this._events):[]};function d(T,M){for(var u=new Array(M),S=0;S<M;++S)u[S]=T[S];return u}function te(T,M){for(;M+1<T.length;M++)T[M]=T[M+1];T.pop()}function q(T){for(var M=new Array(T.length),u=0;u<M.length;++u)M[u]=T[u].listener||T[u];return M}function z(T,M){return new Promise(function(u,S){function N(I){T.removeListener(M,k),S(I)}function k(){typeof T.removeListener=="function"&&T.removeListener("error",N),u([].slice.call(arguments))}K(T,M,k,{once:!0}),M!=="error"&&Ce(T,N,{once:!0})})}function Ce(T,M,u){typeof T.on=="function"&&K(T,"error",M,u)}function K(T,M,u,S){if(typeof T.on=="function")S.once?T.once(M,u):T.on(M,u);else if(typeof T.addEventListener=="function")T.addEventListener(M,function N(k){S.once&&T.removeEventListener(M,N),u(k)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof T)}},24334:function(ht,Me,i){var g,x;(function(Z,Q){ht.exports=Q(Z)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof i.g!="undefined"?i.g:this,function(Z){"use strict";Z=Z||{};var Q=Z.Base64,A="2.6.4",f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",de=function(R){for(var P={},v=0,B=R.length;v<B;v++)P[R.charAt(v)]=v;return P}(f),se=String.fromCharCode,oe=function(R){if(R.length<2){var P=R.charCodeAt(0);return P<128?R:P<2048?se(192|P>>>6)+se(128|P&63):se(224|P>>>12&15)+se(128|P>>>6&63)+se(128|P&63)}else{var P=65536+(R.charCodeAt(0)-55296)*1024+(R.charCodeAt(1)-56320);return se(240|P>>>18&7)+se(128|P>>>12&63)+se(128|P>>>6&63)+se(128|P&63)}},be=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ce=function(R){return R.replace(be,oe)},$=function(R){var P=[0,2,1][R.length%3],v=R.charCodeAt(0)<<16|(R.length>1?R.charCodeAt(1):0)<<8|(R.length>2?R.charCodeAt(2):0),B=[f.charAt(v>>>18),f.charAt(v>>>12&63),P>=2?"=":f.charAt(v>>>6&63),P>=1?"=":f.charAt(v&63)];return B.join("")},d=Z.btoa&&typeof Z.btoa=="function"?function(R){return Z.btoa(R)}:function(R){if(R.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return R.replace(/[\s\S]{1,3}/g,$)},te=function(R){return d(ce(String(R)))},q=function(R){return R.replace(/[+\/]/g,function(P){return P=="+"?"-":"_"}).replace(/=/g,"")},z=function(R,P){return P?q(te(R)):te(R)},Ce=function(R){return z(R,!0)},K;Z.Uint8Array&&(K=function(R,P){for(var v="",B=0,pe=R.length;B<pe;B+=3){var H=R[B],le=R[B+1],Y=R[B+2],w=H<<16|le<<8|Y;v+=f.charAt(w>>>18)+f.charAt(w>>>12&63)+(typeof le!="undefined"?f.charAt(w>>>6&63):"=")+(typeof Y!="undefined"?f.charAt(w&63):"=")}return P?q(v):v});var T=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,M=function(R){switch(R.length){case 4:var P=(7&R.charCodeAt(0))<<18|(63&R.charCodeAt(1))<<12|(63&R.charCodeAt(2))<<6|63&R.charCodeAt(3),v=P-65536;return se((v>>>10)+55296)+se((v&1023)+56320);case 3:return se((15&R.charCodeAt(0))<<12|(63&R.charCodeAt(1))<<6|63&R.charCodeAt(2));default:return se((31&R.charCodeAt(0))<<6|63&R.charCodeAt(1))}},u=function(R){return R.replace(T,M)},S=function(R){var P=R.length,v=P%4,B=(P>0?de[R.charAt(0)]<<18:0)|(P>1?de[R.charAt(1)]<<12:0)|(P>2?de[R.charAt(2)]<<6:0)|(P>3?de[R.charAt(3)]:0),pe=[se(B>>>16),se(B>>>8&255),se(B&255)];return pe.length-=[0,0,2,1][v],pe.join("")},N=Z.atob&&typeof Z.atob=="function"?function(R){return Z.atob(R)}:function(R){return R.replace(/\S{1,4}/g,S)},k=function(R){return N(String(R).replace(/[^A-Za-z0-9\+\/]/g,""))},I=function(R){return u(N(R))},ne=function(R){return String(R).replace(/[-_]/g,function(P){return P=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},X=function(R){return I(ne(R))},ue;Z.Uint8Array&&(ue=function(R){return Uint8Array.from(k(ne(R)),function(P){return P.charCodeAt(0)})});var D=function(){var R=Z.Base64;return Z.Base64=Q,R};if(Z.Base64={VERSION:A,atob:k,btoa:d,fromBase64:X,toBase64:z,utob:ce,encode:z,encodeURI:Ce,btou:u,decode:X,noConflict:D,fromUint8Array:K,toUint8Array:ue},typeof Object.defineProperty=="function"){var xe=function(R){return{value:R,enumerable:!1,writable:!0,configurable:!0}};Z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",xe(function(){return X(this)})),Object.defineProperty(String.prototype,"toBase64",xe(function(R){return z(this,R)})),Object.defineProperty(String.prototype,"toBase64URI",xe(function(){return z(this,!0)}))}}return Z.Meteor&&(Base64=Z.Base64),ht.exports?ht.exports.Base64=Z.Base64:(g=[],x=function(){return Z.Base64}.apply(Me,g),x!==void 0&&(ht.exports=x)),{Base64:Z.Base64}})},31561:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return k}});var g=i(60499),x=i(18642),Z=i(72190),Q=i(42244),A=i(35593),f=i(92310),de=i.n(f),se=i(8654),oe=i(59301),be=i(10228),ce=i(16089),$=be.Z.ESC,d=be.Z.TAB;function te(I){var ne=I.visible,X=I.triggerRef,ue=I.onVisibleChange,D=I.autoFocus,xe=I.overlayRef,R=oe.useRef(!1),P=function(){if(ne){var H,le;(H=X.current)===null||H===void 0||(le=H.focus)===null||le===void 0||le.call(H),ue==null||ue(!1)}},v=function(){var H;return(H=xe.current)!==null&&H!==void 0&&H.focus?(xe.current.focus(),R.current=!0,!0):!1},B=function(H){switch(H.keyCode){case $:P();break;case d:{var le=!1;R.current||(le=v()),le?H.preventDefault():P();break}}};oe.useEffect(function(){return ne?(window.addEventListener("keydown",B),D&&(0,ce.Z)(v,3),function(){window.removeEventListener("keydown",B),R.current=!1}):function(){R.current=!1}},[ne])}var q=(0,oe.forwardRef)(function(I,ne){var X=I.overlay,ue=I.arrow,D=I.prefixCls,xe=(0,oe.useMemo)(function(){var P;return typeof X=="function"?P=X():P=X,P},[X]),R=(0,se.sQ)(ne,xe==null?void 0:xe.ref);return oe.createElement(oe.Fragment,null,ue&&oe.createElement("div",{className:"".concat(D,"-arrow")}),oe.cloneElement(xe,{ref:(0,se.Yr)(xe)?R:void 0}))}),z=q,Ce={adjustX:1,adjustY:1},K=[0,0],T={topLeft:{points:["bl","tl"],overflow:Ce,offset:[0,-4],targetOffset:K},top:{points:["bc","tc"],overflow:Ce,offset:[0,-4],targetOffset:K},topRight:{points:["br","tr"],overflow:Ce,offset:[0,-4],targetOffset:K},bottomLeft:{points:["tl","bl"],overflow:Ce,offset:[0,4],targetOffset:K},bottom:{points:["tc","bc"],overflow:Ce,offset:[0,4],targetOffset:K},bottomRight:{points:["tr","br"],overflow:Ce,offset:[0,4],targetOffset:K}},M=T,u=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function S(I,ne){var X,ue=I.arrow,D=ue===void 0?!1:ue,xe=I.prefixCls,R=xe===void 0?"rc-dropdown":xe,P=I.transitionName,v=I.animation,B=I.align,pe=I.placement,H=pe===void 0?"bottomLeft":pe,le=I.placements,Y=le===void 0?M:le,w=I.getPopupContainer,j=I.showAction,J=I.hideAction,ie=I.overlayClassName,ge=I.overlayStyle,Te=I.visible,Pe=I.trigger,Ie=Pe===void 0?["hover"]:Pe,Je=I.autoFocus,ke=I.overlay,ze=I.children,Ge=I.onVisibleChange,V=(0,Q.Z)(I,u),Le=oe.useState(),m=(0,Z.Z)(Le,2),y=m[0],h=m[1],a="visible"in I?Te:y,b=oe.useRef(null),U=oe.useRef(null),E=oe.useRef(null);oe.useImperativeHandle(ne,function(){return b.current});var l=function(he){h(he),Ge==null||Ge(he)};te({visible:a,triggerRef:E,onVisibleChange:l,autoFocus:Je,overlayRef:U});var p=function(he){var G=I.onOverlayClick;h(!1),G&&G(he)},o=function(){return oe.createElement(z,{ref:U,overlay:ke,prefixCls:R,arrow:D})},c=function(){return typeof ke=="function"?o:o()},_=function(){var he=I.minOverlayWidthMatchTrigger,G=I.alignPoint;return"minOverlayWidthMatchTrigger"in I?he:!G},L=function(){var he=I.openClassName;return he!==void 0?he:"".concat(R,"-open")},F=oe.cloneElement(ze,{className:de()((X=ze.props)===null||X===void 0?void 0:X.className,a&&L()),ref:(0,se.Yr)(ze)?(0,se.sQ)(E,ze.ref):void 0}),fe=J;return!fe&&Ie.indexOf("contextMenu")!==-1&&(fe=["click"]),oe.createElement(A.Z,(0,g.Z)({builtinPlacements:Y},V,{prefixCls:R,ref:b,popupClassName:de()(ie,(0,x.Z)({},"".concat(R,"-show-arrow"),D)),popupStyle:ge,action:Ie,showAction:j,hideAction:fe,popupPlacement:H,popupAlign:B,popupTransitionName:P,popupAnimation:v,popupVisible:a,stretch:_()?"minWidth":"",popup:c(),onPopupVisibleChange:l,onPopupClick:p,getPopupContainer:w}),F)}var N=oe.forwardRef(S),k=N},15285:function(ht,Me,i){"use strict";i.d(Me,{iz:function(){return We},ck:function(){return Fe},BW:function(){return ut},sN:function(){return Fe},Wd:function(){return Se},ZP:function(){return St},Xl:function(){return X}});var g=i(60499),x=i(18642),Z=i(85899),Q=i(77654),A=i(72190),f=i(42244),de=i(92310),se=i.n(de),oe=i(83836),be=i(18929),ce=i(13697),$=i(48736),d=i(59301),te=i(4676),q=d.createContext(null);function z(re,ee){return re===void 0?null:"".concat(re,"-").concat(ee)}function Ce(re){var ee=d.useContext(q);return z(ee,re)}var K=i(80547),T=["children","locked"],M=d.createContext(null);function u(re,ee){var ve=(0,Z.Z)({},re);return Object.keys(ee).forEach(function(Ae){var ye=ee[Ae];ye!==void 0&&(ve[Ae]=ye)}),ve}function S(re){var ee=re.children,ve=re.locked,Ae=(0,f.Z)(re,T),ye=d.useContext(M),Ee=(0,K.Z)(function(){return u(ye,Ae)},[ye,Ae],function(_e,je){return!ve&&(_e[0]!==je[0]||!(0,ce.Z)(_e[1],je[1],!0))});return d.createElement(M.Provider,{value:Ee},ee)}var N=[],k=d.createContext(null);function I(){return d.useContext(k)}var ne=d.createContext(N);function X(re){var ee=d.useContext(ne);return d.useMemo(function(){return re!==void 0?[].concat((0,Q.Z)(ee),[re]):ee},[ee,re])}var ue=d.createContext(null),D=d.createContext({}),xe=D,R=i(29194);function P(re){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,R.Z)(re)){var ve=re.nodeName.toLowerCase(),Ae=["input","select","textarea","button"].includes(ve)||re.isContentEditable||ve==="a"&&!!re.getAttribute("href"),ye=re.getAttribute("tabindex"),Ee=Number(ye),_e=null;return ye&&!Number.isNaN(Ee)?_e=Ee:Ae&&_e===null&&(_e=0),Ae&&re.disabled&&(_e=null),_e!==null&&(_e>=0||ee&&_e<0)}return!1}function v(re){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=(0,Q.Z)(re.querySelectorAll("*")).filter(function(Ae){return P(Ae,ee)});return P(re,ee)&&ve.unshift(re),ve}var B=null;function pe(){B=document.activeElement}function H(){B=null}function le(){if(B)try{B.focus()}catch(re){}}function Y(re,ee){if(ee.keyCode===9){var ve=v(re),Ae=ve[ee.shiftKey?0:ve.length-1],ye=Ae===document.activeElement||re===document.activeElement;if(ye){var Ee=ve[ee.shiftKey?ve.length-1:0];Ee.focus(),ee.preventDefault()}}}var w=i(10228),j=i(16089),J=w.Z.LEFT,ie=w.Z.RIGHT,ge=w.Z.UP,Te=w.Z.DOWN,Pe=w.Z.ENTER,Ie=w.Z.ESC,Je=w.Z.HOME,ke=w.Z.END,ze=[ge,Te,J,ie];function Ge(re,ee,ve,Ae){var ye,Ee,_e,je,ft="prev",dt="next",bt="children",yt="parent";if(re==="inline"&&Ae===Pe)return{inlineTrigger:!0};var wt=(ye={},(0,x.Z)(ye,ge,ft),(0,x.Z)(ye,Te,dt),ye),Nt=(Ee={},(0,x.Z)(Ee,J,ve?dt:ft),(0,x.Z)(Ee,ie,ve?ft:dt),(0,x.Z)(Ee,Te,bt),(0,x.Z)(Ee,Pe,bt),Ee),Dt=(_e={},(0,x.Z)(_e,ge,ft),(0,x.Z)(_e,Te,dt),(0,x.Z)(_e,Pe,bt),(0,x.Z)(_e,Ie,yt),(0,x.Z)(_e,J,ve?bt:yt),(0,x.Z)(_e,ie,ve?yt:bt),_e),zt={inline:wt,horizontal:Nt,vertical:Dt,inlineSub:wt,horizontalSub:Dt,verticalSub:Dt},Ht=(je=zt["".concat(re).concat(ee?"":"Sub")])===null||je===void 0?void 0:je[Ae];switch(Ht){case ft:return{offset:-1,sibling:!0};case dt:return{offset:1,sibling:!0};case yt:return{offset:-1,sibling:!1};case bt:return{offset:1,sibling:!1};default:return null}}function V(re){for(var ee=re;ee;){if(ee.getAttribute("data-menu-list"))return ee;ee=ee.parentElement}return null}function Le(re,ee){for(var ve=re||document.activeElement;ve;){if(ee.has(ve))return ve;ve=ve.parentElement}return null}function m(re,ee){var ve=v(re,!0);return ve.filter(function(Ae){return ee.has(Ae)})}function y(re,ee,ve){var Ae=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!re)return null;var ye=m(re,ee),Ee=ye.length,_e=ye.findIndex(function(je){return ve===je});return Ae<0?_e===-1?_e=Ee-1:_e-=1:Ae>0&&(_e+=1),_e=(_e+Ee)%Ee,ye[_e]}var h=function(ee,ve){var Ae=new Set,ye=new Map,Ee=new Map;return ee.forEach(function(_e){var je=document.querySelector("[data-menu-id='".concat(z(ve,_e),"']"));je&&(Ae.add(je),Ee.set(je,_e),ye.set(_e,je))}),{elements:Ae,key2element:ye,element2key:Ee}};function a(re,ee,ve,Ae,ye,Ee,_e,je,ft,dt){var bt=d.useRef(),yt=d.useRef();yt.current=ee;var wt=function(){j.Z.cancel(bt.current)};return d.useEffect(function(){return function(){wt()}},[]),function(Nt){var Dt=Nt.which;if([].concat(ze,[Pe,Ie,Je,ke]).includes(Dt)){var zt=Ee(),Ht=h(zt,Ae),Ut=Ht,Mt=Ut.elements,Lt=Ut.key2element,At=Ut.element2key,Ft=Lt.get(ee),Pt=Le(Ft,Mt),Gt=At.get(Pt),Bt=Ge(re,_e(Gt,!0).length===1,ve,Dt);if(!Bt&&Dt!==Je&&Dt!==ke)return;(ze.includes(Dt)||[Je,ke].includes(Dt))&&Nt.preventDefault();var tn=function(Wt){if(Wt){var an=Wt,lt=Wt.querySelector("a");lt!=null&<.getAttribute("href")&&(an=lt);var et=At.get(Wt);je(et),wt(),bt.current=(0,j.Z)(function(){yt.current===et&&an.focus()})}};if([Je,ke].includes(Dt)||Bt.sibling||!Pt){var Kt;!Pt||re==="inline"?Kt=ye.current:Kt=V(Pt);var Jt,Xt=m(Kt,Mt);Dt===Je?Jt=Xt[0]:Dt===ke?Jt=Xt[Xt.length-1]:Jt=y(Kt,Mt,Pt,Bt.offset),tn(Jt)}else if(Bt.inlineTrigger)ft(Gt);else if(Bt.offset>0)ft(Gt,!0),wt(),bt.current=(0,j.Z)(function(){Ht=h(zt,Ae);var fn=Pt.getAttribute("aria-controls"),Wt=document.getElementById(fn),an=y(Wt,Ht.elements);tn(an)},5);else if(Bt.offset<0){var Yt=_e(Gt,!0),nn=Yt[Yt.length-2],rn=Lt.get(nn);ft(nn,!1),tn(rn)}}dt==null||dt(Nt)}}function b(re){Promise.resolve().then(re)}var U="__RC_UTIL_PATH_SPLIT__",E=function(ee){return ee.join(U)},l=function(ee){return ee.split(U)},p="rc-menu-more";function o(){var re=d.useState({}),ee=(0,A.Z)(re,2),ve=ee[1],Ae=(0,d.useRef)(new Map),ye=(0,d.useRef)(new Map),Ee=d.useState([]),_e=(0,A.Z)(Ee,2),je=_e[0],ft=_e[1],dt=(0,d.useRef)(0),bt=(0,d.useRef)(!1),yt=function(){bt.current||ve({})},wt=(0,d.useCallback)(function(Lt,At){var Ft=E(At);ye.current.set(Ft,Lt),Ae.current.set(Lt,Ft),dt.current+=1;var Pt=dt.current;b(function(){Pt===dt.current&&yt()})},[]),Nt=(0,d.useCallback)(function(Lt,At){var Ft=E(At);ye.current.delete(Ft),Ae.current.delete(Lt)},[]),Dt=(0,d.useCallback)(function(Lt){ft(Lt)},[]),zt=(0,d.useCallback)(function(Lt,At){var Ft=Ae.current.get(Lt)||"",Pt=l(Ft);return At&&je.includes(Pt[0])&&Pt.unshift(p),Pt},[je]),Ht=(0,d.useCallback)(function(Lt,At){return Lt.some(function(Ft){var Pt=zt(Ft,!0);return Pt.includes(At)})},[zt]),Ut=function(){var At=(0,Q.Z)(Ae.current.keys());return je.length&&At.push(p),At},Mt=(0,d.useCallback)(function(Lt){var At="".concat(Ae.current.get(Lt)).concat(U),Ft=new Set;return(0,Q.Z)(ye.current.keys()).forEach(function(Pt){Pt.startsWith(At)&&Ft.add(ye.current.get(Pt))}),Ft},[]);return d.useEffect(function(){return function(){bt.current=!0}},[]),{registerPath:wt,unregisterPath:Nt,refreshOverflowKeys:Dt,isSubPathKey:Ht,getKeyPath:zt,getKeys:Ut,getSubPathKeys:Mt}}function c(re){var ee=d.useRef(re);ee.current=re;var ve=d.useCallback(function(){for(var Ae,ye=arguments.length,Ee=new Array(ye),_e=0;_e<ye;_e++)Ee[_e]=arguments[_e];return(Ae=ee.current)===null||Ae===void 0?void 0:Ae.call.apply(Ae,[ee].concat(Ee))},[]);return re?ve:void 0}var _=Math.random().toFixed(5).toString().slice(2),L=0;function F(re){var ee=(0,be.Z)(re,{value:re}),ve=(0,A.Z)(ee,2),Ae=ve[0],ye=ve[1];return d.useEffect(function(){L+=1;var Ee="".concat(_,"-").concat(L);ye("rc-menu-uuid-".concat(Ee))},[]),Ae}var fe=i(38705),ae=i(17212),he=i(39153),G=i(55401),Re=i(2738),Ne=i(8654);function W(re,ee,ve,Ae){var ye=d.useContext(M),Ee=ye.activeKey,_e=ye.onActive,je=ye.onInactive,ft={active:Ee===re};return ee||(ft.onMouseEnter=function(dt){ve==null||ve({key:re,domEvent:dt}),_e(re)},ft.onMouseLeave=function(dt){Ae==null||Ae({key:re,domEvent:dt}),je(re)}),ft}function Be(re){var ee=d.useContext(M),ve=ee.mode,Ae=ee.rtl,ye=ee.inlineIndent;if(ve!=="inline")return null;var Ee=re;return Ae?{paddingRight:Ee*ye}:{paddingLeft:Ee*ye}}function Xe(re){var ee=re.icon,ve=re.props,Ae=re.children,ye;return ee===null||ee===!1?null:(typeof ee=="function"?ye=d.createElement(ee,(0,Z.Z)({},ve)):typeof ee!="boolean"&&(ye=ee),ye||Ae||null)}var Ze=["item"];function He(re){var ee=re.item,ve=(0,f.Z)(re,Ze);return Object.defineProperty(ve,"item",{get:function(){return(0,$.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),ee}}),ve}var rt=["title","attribute","elementRef"],_t=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ct=["active"],st=function(re){(0,he.Z)(ve,re);var ee=(0,G.Z)(ve);function ve(){return(0,fe.Z)(this,ve),ee.apply(this,arguments)}return(0,ae.Z)(ve,[{key:"render",value:function(){var ye=this.props,Ee=ye.title,_e=ye.attribute,je=ye.elementRef,ft=(0,f.Z)(ye,rt),dt=(0,Re.Z)(ft,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,$.ZP)(!_e,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),d.createElement(oe.Z.Item,(0,g.Z)({},_e,{title:typeof Ee=="string"?Ee:void 0},dt,{ref:je}))}}]),ve}(d.Component),mt=d.forwardRef(function(re,ee){var ve,Ae=re.style,ye=re.className,Ee=re.eventKey,_e=re.warnKey,je=re.disabled,ft=re.itemIcon,dt=re.children,bt=re.role,yt=re.onMouseEnter,wt=re.onMouseLeave,Nt=re.onClick,Dt=re.onKeyDown,zt=re.onFocus,Ht=(0,f.Z)(re,_t),Ut=Ce(Ee),Mt=d.useContext(M),Lt=Mt.prefixCls,At=Mt.onItemClick,Ft=Mt.disabled,Pt=Mt.overflowDisabled,Gt=Mt.itemIcon,Bt=Mt.selectedKeys,tn=Mt.onActive,Kt=d.useContext(xe),Jt=Kt._internalRenderMenuItem,Xt="".concat(Lt,"-item"),Yt=d.useRef(),nn=d.useRef(),rn=Ft||je,fn=(0,Ne.x1)(ee,nn),Wt=X(Ee),an=function(en){return{key:Ee,keyPath:(0,Q.Z)(Wt).reverse(),item:Yt.current,domEvent:en}},lt=ft||Gt,et=W(Ee,rn,yt,wt),Ct=et.active,$t=(0,f.Z)(et,ct),Zt=Bt.includes(Ee),dn=Be(Wt.length),qt=function(en){if(!rn){var mn=an(en);Nt==null||Nt(He(mn)),At(mn)}},Qt=function(en){if(Dt==null||Dt(en),en.which===w.Z.ENTER){var mn=an(en);Nt==null||Nt(He(mn)),At(mn)}},on=function(en){tn(Ee),zt==null||zt(en)},gn={};re.role==="option"&&(gn["aria-selected"]=Zt);var hn=d.createElement(st,(0,g.Z)({ref:Yt,elementRef:fn,role:bt===null?"none":bt||"menuitem",tabIndex:je?null:-1,"data-menu-id":Pt&&Ut?null:Ut},Ht,$t,gn,{component:"li","aria-disabled":je,style:(0,Z.Z)((0,Z.Z)({},dn),Ae),className:se()(Xt,(ve={},(0,x.Z)(ve,"".concat(Xt,"-active"),Ct),(0,x.Z)(ve,"".concat(Xt,"-selected"),Zt),(0,x.Z)(ve,"".concat(Xt,"-disabled"),rn),ve),ye),onClick:qt,onKeyDown:Qt,onFocus:on}),dt,d.createElement(Xe,{props:(0,Z.Z)((0,Z.Z)({},re),{},{isSelected:Zt}),icon:lt}));return Jt&&(hn=Jt(hn,re,{selected:Zt})),hn});function Ue(re,ee){var ve=re.eventKey,Ae=I(),ye=X(ve);return d.useEffect(function(){if(Ae)return Ae.registerPath(ve,ye),function(){Ae.unregisterPath(ve,ye)}},[ye]),Ae?null:d.createElement(mt,(0,g.Z)({},re,{ref:ee}))}var Fe=d.forwardRef(Ue),tt=["className","children"],Et=function(ee,ve){var Ae=ee.className,ye=ee.children,Ee=(0,f.Z)(ee,tt),_e=d.useContext(M),je=_e.prefixCls,ft=_e.mode,dt=_e.rtl;return d.createElement("ul",(0,g.Z)({className:se()(je,dt&&"".concat(je,"-rtl"),"".concat(je,"-sub"),"".concat(je,"-").concat(ft==="inline"?"inline":"vertical"),Ae),role:"menu"},Ee,{"data-menu-list":!0,ref:ve}),ye)},vt=d.forwardRef(Et);vt.displayName="SubMenuList";var xt=vt,Ot=i(11592);function gt(re,ee){return(0,Ot.Z)(re).map(function(ve,Ae){if(d.isValidElement(ve)){var ye,Ee,_e=ve.key,je=(ye=(Ee=ve.props)===null||Ee===void 0?void 0:Ee.eventKey)!==null&&ye!==void 0?ye:_e,ft=je==null;ft&&(je="tmp_key-".concat([].concat((0,Q.Z)(ee),[Ae]).join("-")));var dt={key:je,eventKey:je};return d.cloneElement(ve,dt)}return ve})}var Rt=i(35593),it={adjustX:1,adjustY:1},at={topLeft:{points:["bl","tl"],overflow:it},topRight:{points:["br","tr"],overflow:it},bottomLeft:{points:["tl","bl"],overflow:it},bottomRight:{points:["tr","br"],overflow:it},leftTop:{points:["tr","tl"],overflow:it},leftBottom:{points:["br","bl"],overflow:it},rightTop:{points:["tl","tr"],overflow:it},rightBottom:{points:["bl","br"],overflow:it}},Ve={topLeft:{points:["bl","tl"],overflow:it},topRight:{points:["br","tr"],overflow:it},bottomLeft:{points:["tl","bl"],overflow:it},bottomRight:{points:["tr","br"],overflow:it},rightTop:{points:["tr","tl"],overflow:it},rightBottom:{points:["br","bl"],overflow:it},leftTop:{points:["tl","tr"],overflow:it},leftBottom:{points:["bl","br"],overflow:it}},me=null;function e(re,ee,ve){if(ee)return ee;if(ve)return ve[re]||ve.other}var t={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function n(re){var ee=re.prefixCls,ve=re.visible,Ae=re.children,ye=re.popup,Ee=re.popupStyle,_e=re.popupClassName,je=re.popupOffset,ft=re.disabled,dt=re.mode,bt=re.onVisibleChange,yt=d.useContext(M),wt=yt.getPopupContainer,Nt=yt.rtl,Dt=yt.subMenuOpenDelay,zt=yt.subMenuCloseDelay,Ht=yt.builtinPlacements,Ut=yt.triggerSubMenuAction,Mt=yt.forceSubMenuRender,Lt=yt.rootClassName,At=yt.motion,Ft=yt.defaultMotions,Pt=d.useState(!1),Gt=(0,A.Z)(Pt,2),Bt=Gt[0],tn=Gt[1],Kt=Nt?(0,Z.Z)((0,Z.Z)({},Ve),Ht):(0,Z.Z)((0,Z.Z)({},at),Ht),Jt=t[dt],Xt=e(dt,At,Ft),Yt=d.useRef(Xt);dt!=="inline"&&(Yt.current=Xt);var nn=(0,Z.Z)((0,Z.Z)({},Yt.current),{},{leavedClassName:"".concat(ee,"-hidden"),removeOnLeave:!1,motionAppear:!0}),rn=d.useRef();return d.useEffect(function(){return rn.current=(0,j.Z)(function(){tn(ve)}),function(){j.Z.cancel(rn.current)}},[ve]),d.createElement(Rt.Z,{prefixCls:ee,popupClassName:se()("".concat(ee,"-popup"),(0,x.Z)({},"".concat(ee,"-rtl"),Nt),_e,Lt),stretch:dt==="horizontal"?"minWidth":null,getPopupContainer:wt,builtinPlacements:Kt,popupPlacement:Jt,popupVisible:Bt,popup:ye,popupStyle:Ee,popupAlign:je&&{offset:je},action:ft?[]:[Ut],mouseEnterDelay:Dt,mouseLeaveDelay:zt,onPopupVisibleChange:bt,forceRender:Mt,popupMotion:nn,fresh:!0},Ae)}var r=i(77900);function s(re){var ee=re.id,ve=re.open,Ae=re.keyPath,ye=re.children,Ee="inline",_e=d.useContext(M),je=_e.prefixCls,ft=_e.forceSubMenuRender,dt=_e.motion,bt=_e.defaultMotions,yt=_e.mode,wt=d.useRef(!1);wt.current=yt===Ee;var Nt=d.useState(!wt.current),Dt=(0,A.Z)(Nt,2),zt=Dt[0],Ht=Dt[1],Ut=wt.current?ve:!1;d.useEffect(function(){wt.current&&Ht(!1)},[yt]);var Mt=(0,Z.Z)({},e(Ee,dt,bt));Ae.length>1&&(Mt.motionAppear=!1);var Lt=Mt.onVisibleChanged;return Mt.onVisibleChanged=function(At){return!wt.current&&!At&&Ht(!0),Lt==null?void 0:Lt(At)},zt?null:d.createElement(S,{mode:Ee,locked:!wt.current},d.createElement(r.default,(0,g.Z)({visible:Ut},Mt,{forceRender:ft,removeOnLeave:!1,leavedClassName:"".concat(je,"-hidden")}),function(At){var Ft=At.className,Pt=At.style;return d.createElement(xt,{id:ee,className:Ft,style:Pt},ye)}))}var C=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],O=["active"],we=function(ee){var ve,Ae=ee.style,ye=ee.className,Ee=ee.title,_e=ee.eventKey,je=ee.warnKey,ft=ee.disabled,dt=ee.internalPopupClose,bt=ee.children,yt=ee.itemIcon,wt=ee.expandIcon,Nt=ee.popupClassName,Dt=ee.popupOffset,zt=ee.popupStyle,Ht=ee.onClick,Ut=ee.onMouseEnter,Mt=ee.onMouseLeave,Lt=ee.onTitleClick,At=ee.onTitleMouseEnter,Ft=ee.onTitleMouseLeave,Pt=(0,f.Z)(ee,C),Gt=Ce(_e),Bt=d.useContext(M),tn=Bt.prefixCls,Kt=Bt.mode,Jt=Bt.openKeys,Xt=Bt.disabled,Yt=Bt.overflowDisabled,nn=Bt.activeKey,rn=Bt.selectedKeys,fn=Bt.itemIcon,Wt=Bt.expandIcon,an=Bt.onItemClick,lt=Bt.onOpenChange,et=Bt.onActive,Ct=d.useContext(xe),$t=Ct._internalRenderSubMenuItem,Zt=d.useContext(ue),dn=Zt.isSubPathKey,qt=X(),Qt="".concat(tn,"-submenu"),on=Xt||ft,gn=d.useRef(),hn=d.useRef(),En=yt!=null?yt:fn,en=wt!=null?wt:Wt,mn=Jt.includes(_e),yn=!Yt&&mn,$n=dn(rn,_e),xn=W(_e,on,At,Ft),bn=xn.active,zn=(0,f.Z)(xn,O),qn=d.useState(!1),Hn=(0,A.Z)(qn,2),On=Hn[0],Pn=Hn[1],kn=function(un){on||Pn(un)},vn=function(un){kn(!0),Ut==null||Ut({key:_e,domEvent:un})},jn=function(un){kn(!1),Mt==null||Mt({key:_e,domEvent:un})},Ln=d.useMemo(function(){return bn||(Kt!=="inline"?On||dn([nn],_e):!1)},[Kt,bn,nn,On,_e,dn]),Bn=Be(qt.length),Vn=function(un){on||(Lt==null||Lt({key:_e,domEvent:un}),Kt==="inline"&<(_e,!mn))},Rn=c(function(pn){Ht==null||Ht(He(pn)),an(pn)}),Dn=function(un){Kt!=="inline"&<(_e,un)},An=function(){et(_e)},Tn=Gt&&"".concat(Gt,"-popup"),In=d.createElement("div",(0,g.Z)({role:"menuitem",style:Bn,className:"".concat(Qt,"-title"),tabIndex:on?null:-1,ref:gn,title:typeof Ee=="string"?Ee:null,"data-menu-id":Yt&&Gt?null:Gt,"aria-expanded":yn,"aria-haspopup":!0,"aria-controls":Tn,"aria-disabled":on,onClick:Vn,onFocus:An},zn),Ee,d.createElement(Xe,{icon:Kt!=="horizontal"?en:void 0,props:(0,Z.Z)((0,Z.Z)({},ee),{},{isOpen:yn,isSubMenu:!0})},d.createElement("i",{className:"".concat(Qt,"-arrow")}))),cn=d.useRef(Kt);if(Kt!=="inline"&&qt.length>1?cn.current="vertical":cn.current=Kt,!Yt){var wn=cn.current;In=d.createElement(n,{mode:wn,prefixCls:Qt,visible:!dt&&yn&&Kt!=="inline",popupClassName:Nt,popupOffset:Dt,popupStyle:zt,popup:d.createElement(S,{mode:wn==="horizontal"?"vertical":wn},d.createElement(xt,{id:Tn,ref:hn},bt)),disabled:on,onVisibleChange:Dn},In)}var Sn=d.createElement(oe.Z.Item,(0,g.Z)({role:"none"},Pt,{component:"li",style:Ae,className:se()(Qt,"".concat(Qt,"-").concat(Kt),ye,(ve={},(0,x.Z)(ve,"".concat(Qt,"-open"),yn),(0,x.Z)(ve,"".concat(Qt,"-active"),Ln),(0,x.Z)(ve,"".concat(Qt,"-selected"),$n),(0,x.Z)(ve,"".concat(Qt,"-disabled"),on),ve)),onMouseEnter:vn,onMouseLeave:jn}),In,!Yt&&d.createElement(s,{id:Tn,open:yn,keyPath:qt},bt));return $t&&(Sn=$t(Sn,ee,{selected:$n,active:Ln,open:yn,disabled:on})),d.createElement(S,{onItemClick:Rn,mode:Kt==="horizontal"?"vertical":Kt,itemIcon:En,expandIcon:en},Sn)};function Se(re){var ee=re.eventKey,ve=re.children,Ae=X(ee),ye=gt(ve,Ae),Ee=I();d.useEffect(function(){if(Ee)return Ee.registerPath(ee,Ae),function(){Ee.unregisterPath(ee,Ae)}},[Ae]);var _e;return Ee?_e=ye:_e=d.createElement(we,re,ye),d.createElement(ne.Provider,{value:Ae},_e)}var De=i(43749),Qe=["className","title","eventKey","children"],ot=["children"],Ke=function(ee){var ve=ee.className,Ae=ee.title,ye=ee.eventKey,Ee=ee.children,_e=(0,f.Z)(ee,Qe),je=d.useContext(M),ft=je.prefixCls,dt="".concat(ft,"-item-group");return d.createElement("li",(0,g.Z)({role:"presentation"},_e,{onClick:function(yt){return yt.stopPropagation()},className:se()(dt,ve)}),d.createElement("div",{role:"presentation",className:"".concat(dt,"-title"),title:typeof Ae=="string"?Ae:void 0},Ae),d.createElement("ul",{role:"group",className:"".concat(dt,"-list")},Ee))};function ut(re){var ee=re.children,ve=(0,f.Z)(re,ot),Ae=X(ve.eventKey),ye=gt(ee,Ae),Ee=I();return Ee?ye:d.createElement(Ke,(0,Re.Z)(ve,["warnKey"]),ye)}function We(re){var ee=re.className,ve=re.style,Ae=d.useContext(M),ye=Ae.prefixCls,Ee=I();return Ee?null:d.createElement("li",{role:"separator",className:se()("".concat(ye,"-item-divider"),ee),style:ve})}var Oe=["label","children","key","type"];function $e(re){return(re||[]).map(function(ee,ve){if(ee&&(0,De.Z)(ee)==="object"){var Ae=ee,ye=Ae.label,Ee=Ae.children,_e=Ae.key,je=Ae.type,ft=(0,f.Z)(Ae,Oe),dt=_e!=null?_e:"tmp-".concat(ve);return Ee||je==="group"?je==="group"?d.createElement(ut,(0,g.Z)({key:dt},ft,{title:ye}),$e(Ee)):d.createElement(Se,(0,g.Z)({key:dt},ft,{title:ye}),$e(Ee)):je==="divider"?d.createElement(We,(0,g.Z)({key:dt},ft)):d.createElement(Fe,(0,g.Z)({key:dt},ft),ye)}return null}).filter(function(ee){return ee})}function nt(re,ee,ve){var Ae=re;return ee&&(Ae=$e(ee)),gt(Ae,ve)}var qe=["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"],pt=[],Tt=d.forwardRef(function(re,ee){var ve,Ae,ye=re,Ee=ye.prefixCls,_e=Ee===void 0?"rc-menu":Ee,je=ye.rootClassName,ft=ye.style,dt=ye.className,bt=ye.tabIndex,yt=bt===void 0?0:bt,wt=ye.items,Nt=ye.children,Dt=ye.direction,zt=ye.id,Ht=ye.mode,Ut=Ht===void 0?"vertical":Ht,Mt=ye.inlineCollapsed,Lt=ye.disabled,At=ye.disabledOverflow,Ft=ye.subMenuOpenDelay,Pt=Ft===void 0?.1:Ft,Gt=ye.subMenuCloseDelay,Bt=Gt===void 0?.1:Gt,tn=ye.forceSubMenuRender,Kt=ye.defaultOpenKeys,Jt=ye.openKeys,Xt=ye.activeKey,Yt=ye.defaultActiveFirst,nn=ye.selectable,rn=nn===void 0?!0:nn,fn=ye.multiple,Wt=fn===void 0?!1:fn,an=ye.defaultSelectedKeys,lt=ye.selectedKeys,et=ye.onSelect,Ct=ye.onDeselect,$t=ye.inlineIndent,Zt=$t===void 0?24:$t,dn=ye.motion,qt=ye.defaultMotions,Qt=ye.triggerSubMenuAction,on=Qt===void 0?"hover":Qt,gn=ye.builtinPlacements,hn=ye.itemIcon,En=ye.expandIcon,en=ye.overflowedIndicator,mn=en===void 0?"...":en,yn=ye.overflowedIndicatorPopupClassName,$n=ye.getPopupContainer,xn=ye.onClick,bn=ye.onOpenChange,zn=ye.onKeyDown,qn=ye.openAnimation,Hn=ye.openTransitionName,On=ye._internalRenderMenuItem,Pn=ye._internalRenderSubMenuItem,kn=(0,f.Z)(ye,qe),vn=d.useMemo(function(){return nt(Nt,wt,pt)},[Nt,wt]),jn=d.useState(!1),Ln=(0,A.Z)(jn,2),Bn=Ln[0],Vn=Ln[1],Rn=d.useRef(),Dn=F(zt),An=Dt==="rtl",Tn=(0,be.Z)(Kt,{value:Jt,postState:function(kt){return kt||pt}}),In=(0,A.Z)(Tn,2),cn=In[0],wn=In[1],Sn=function(kt){var jt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function sn(){wn(kt),bn==null||bn(kt)}jt?(0,te.flushSync)(sn):sn()},pn=d.useState(cn),un=(0,A.Z)(pn,2),mr=un[0],vr=un[1],Wn=d.useRef(!1),pr=d.useMemo(function(){return(Ut==="inline"||Ut==="vertical")&&Mt?["vertical",Mt]:[Ut,!1]},[Ut,Mt]),er=(0,A.Z)(pr,2),Kn=er[0],Gn=er[1],tr=Kn==="inline",gr=d.useState(Kn),nr=(0,A.Z)(gr,2),_n=nr[0],yr=nr[1],_r=d.useState(Gn),rr=(0,A.Z)(_r,2),Er=rr[0],br=rr[1];d.useEffect(function(){yr(Kn),br(Gn),Wn.current&&(tr?wn(mr):Sn(pt))},[Kn,Gn]);var Sr=d.useState(0),ir=(0,A.Z)(Sr,2),Fn=ir[0],Cr=ir[1],Xn=Fn>=vn.length-1||_n!=="horizontal"||At;d.useEffect(function(){tr&&vr(cn)},[cn]),d.useEffect(function(){return Wn.current=!0,function(){Wn.current=!1}},[]);var Cn=o(),ar=Cn.registerPath,or=Cn.unregisterPath,xr=Cn.refreshOverflowKeys,sr=Cn.isSubPathKey,Rr=Cn.getKeyPath,lr=Cn.getKeys,Ir=Cn.getSubPathKeys,wr=d.useMemo(function(){return{registerPath:ar,unregisterPath:or}},[ar,or]),Or=d.useMemo(function(){return{isSubPathKey:sr}},[sr]);d.useEffect(function(){xr(Xn?pt:vn.slice(Fn+1).map(function(Vt){return Vt.key}))},[Fn,Xn]);var Lr=(0,be.Z)(Xt||Yt&&((ve=vn[0])===null||ve===void 0?void 0:ve.key),{value:Xt}),dr=(0,A.Z)(Lr,2),Nn=dr[0],Yn=dr[1],Dr=c(function(Vt){Yn(Vt)}),Ar=c(function(){Yn(void 0)});(0,d.useImperativeHandle)(ee,function(){return{list:Rn.current,focus:function(kt){var jt,sn=lr(),ln=h(sn,Dn),Un=ln.elements,Qn=ln.key2element,Zr=ln.element2key,fr=m(Rn.current,Un),hr=Nn!=null?Nn:fr[0]?Zr.get(fr[0]):(jt=vn.find(function(Ur){return!Ur.props.disabled}))===null||jt===void 0?void 0:jt.key,Mn=Qn.get(hr);if(hr&&Mn){var Jn;Mn==null||(Jn=Mn.focus)===null||Jn===void 0||Jn.call(Mn,kt)}}}});var Tr=(0,be.Z)(an||[],{value:lt,postState:function(kt){return Array.isArray(kt)?kt:kt==null?pt:[kt]}}),cr=(0,A.Z)(Tr,2),Zn=cr[0],Nr=cr[1],Mr=function(kt){if(rn){var jt=kt.key,sn=Zn.includes(jt),ln;Wt?sn?ln=Zn.filter(function(Qn){return Qn!==jt}):ln=[].concat((0,Q.Z)(Zn),[jt]):ln=[jt],Nr(ln);var Un=(0,Z.Z)((0,Z.Z)({},kt),{},{selectedKeys:ln});sn?Ct==null||Ct(Un):et==null||et(Un)}!Wt&&cn.length&&_n!=="inline"&&Sn(pt)},$r=c(function(Vt){xn==null||xn(He(Vt)),Mr(Vt)}),ur=c(function(Vt,kt){var jt=cn.filter(function(ln){return ln!==Vt});if(kt)jt.push(Vt);else if(_n!=="inline"){var sn=Ir(Vt);jt=jt.filter(function(ln){return!sn.has(ln)})}(0,ce.Z)(cn,jt,!0)||Sn(jt,!0)}),Pr=function(kt,jt){var sn=jt!=null?jt:!cn.includes(kt);ur(kt,sn)},kr=a(_n,Nn,An,Dn,Rn,lr,Rr,Yn,Pr,zn);d.useEffect(function(){Vn(!0)},[]);var Br=d.useMemo(function(){return{_internalRenderMenuItem:On,_internalRenderSubMenuItem:Pn}},[On,Pn]),Kr=_n!=="horizontal"||At?vn:vn.map(function(Vt,kt){return d.createElement(S,{key:Vt.key,overflowDisabled:kt>Fn},Vt)}),Fr=d.createElement(oe.Z,(0,g.Z)({id:zt,ref:Rn,prefixCls:"".concat(_e,"-overflow"),component:"ul",itemComponent:Fe,className:se()(_e,"".concat(_e,"-root"),"".concat(_e,"-").concat(_n),dt,(Ae={},(0,x.Z)(Ae,"".concat(_e,"-inline-collapsed"),Er),(0,x.Z)(Ae,"".concat(_e,"-rtl"),An),Ae),je),dir:Dt,style:ft,role:"menu",tabIndex:yt,data:Kr,renderRawItem:function(kt){return kt},renderRawRest:function(kt){var jt=kt.length,sn=jt?vn.slice(-jt):null;return d.createElement(Se,{eventKey:p,title:mn,disabled:Xn,internalPopupClose:jt===0,popupClassName:yn},sn)},maxCount:_n!=="horizontal"||At?oe.Z.INVALIDATE:oe.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(kt){Cr(kt)},onKeyDown:kr},kn));return d.createElement(xe.Provider,{value:Br},d.createElement(q.Provider,{value:Dn},d.createElement(S,{prefixCls:_e,rootClassName:je,mode:_n,openKeys:cn,rtl:An,disabled:Lt,motion:Bn?dn:null,defaultMotions:Bn?qt:null,activeKey:Nn,onActive:Dr,onInactive:Ar,selectedKeys:Zn,inlineIndent:Zt,subMenuOpenDelay:Pt,subMenuCloseDelay:Bt,forceSubMenuRender:tn,builtinPlacements:gn,triggerSubMenuAction:on,getPopupContainer:$n,itemIcon:hn,expandIcon:En,onItemClick:$r,onOpenChange:ur},d.createElement(ue.Provider,{value:Or},Fr),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(k.Provider,{value:wr},vn)))))}),It=Tt,Ye=It;Ye.Item=Fe,Ye.SubMenu=Se,Ye.ItemGroup=ut,Ye.Divider=We;var St=Ye},83836:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return pe}});var g=i(60499),x=i(85899),Z=i(72190),Q=i(42244),A=i(59301),f=i(92310),de=i.n(f),se=i(29301),oe=i(34280),be=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ce=void 0;function $(H,le){var Y=H.prefixCls,w=H.invalidate,j=H.item,J=H.renderItem,ie=H.responsive,ge=H.responsiveDisabled,Te=H.registerSize,Pe=H.itemKey,Ie=H.className,Je=H.style,ke=H.children,ze=H.display,Ge=H.order,V=H.component,Le=V===void 0?"div":V,m=(0,Q.Z)(H,be),y=ie&&!ze;function h(l){Te(Pe,l)}A.useEffect(function(){return function(){h(null)}},[]);var a=J&&j!==ce?J(j,{index:Ge}):ke,b;w||(b={opacity:y?0:1,height:y?0:ce,overflowY:y?"hidden":ce,order:ie?Ge:ce,pointerEvents:y?"none":ce,position:y?"absolute":ce});var U={};y&&(U["aria-hidden"]=!0);var E=A.createElement(Le,(0,g.Z)({className:de()(!w&&Y,Ie),style:(0,x.Z)((0,x.Z)({},b),Je)},U,m,{ref:le}),a);return ie&&(E=A.createElement(se.Z,{onResize:function(p){var o=p.offsetWidth;h(o)},disabled:ge},E)),E}var d=A.forwardRef($);d.displayName="Item";var te=d,q=i(6089),z=i(4676),Ce=i(16089);function K(H){if(typeof MessageChannel=="undefined")(0,Ce.Z)(H);else{var le=new MessageChannel;le.port1.onmessage=function(){return H()},le.port2.postMessage(void 0)}}function T(){var H=A.useRef(null),le=function(w){H.current||(H.current=[],K(function(){(0,z.unstable_batchedUpdates)(function(){H.current.forEach(function(j){j()}),H.current=null})})),H.current.push(w)};return le}function M(H,le){var Y=A.useState(le),w=(0,Z.Z)(Y,2),j=w[0],J=w[1],ie=(0,q.Z)(function(ge){H(function(){J(ge)})});return[j,ie]}var u=A.createContext(null),S=["component"],N=["className"],k=["className"],I=function(le,Y){var w=A.useContext(u);if(!w){var j=le.component,J=j===void 0?"div":j,ie=(0,Q.Z)(le,S);return A.createElement(J,(0,g.Z)({},ie,{ref:Y}))}var ge=w.className,Te=(0,Q.Z)(w,N),Pe=le.className,Ie=(0,Q.Z)(le,k);return A.createElement(u.Provider,{value:null},A.createElement(te,(0,g.Z)({ref:Y,className:de()(ge,Pe)},Te,Ie)))},ne=A.forwardRef(I);ne.displayName="RawItem";var X=ne,ue=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],D="responsive",xe="invalidate";function R(H){return"+ ".concat(H.length," ...")}function P(H,le){var Y=H.prefixCls,w=Y===void 0?"rc-overflow":Y,j=H.data,J=j===void 0?[]:j,ie=H.renderItem,ge=H.renderRawItem,Te=H.itemKey,Pe=H.itemWidth,Ie=Pe===void 0?10:Pe,Je=H.ssr,ke=H.style,ze=H.className,Ge=H.maxCount,V=H.renderRest,Le=H.renderRawRest,m=H.prefix,y=H.suffix,h=H.component,a=h===void 0?"div":h,b=H.itemComponent,U=H.onVisibleChange,E=(0,Q.Z)(H,ue),l=Je==="full",p=T(),o=M(p,null),c=(0,Z.Z)(o,2),_=c[0],L=c[1],F=_||0,fe=M(p,new Map),ae=(0,Z.Z)(fe,2),he=ae[0],G=ae[1],Re=M(p,0),Ne=(0,Z.Z)(Re,2),W=Ne[0],Be=Ne[1],Xe=M(p,0),Ze=(0,Z.Z)(Xe,2),He=Ze[0],rt=Ze[1],_t=M(p,0),ct=(0,Z.Z)(_t,2),st=ct[0],mt=ct[1],Ue=M(p,0),Fe=(0,Z.Z)(Ue,2),tt=Fe[0],Et=Fe[1],vt=(0,A.useState)(null),xt=(0,Z.Z)(vt,2),Ot=xt[0],gt=xt[1],Rt=(0,A.useState)(null),it=(0,Z.Z)(Rt,2),at=it[0],Ve=it[1],me=A.useMemo(function(){return at===null&&l?Number.MAX_SAFE_INTEGER:at||0},[at,_]),e=(0,A.useState)(!1),t=(0,Z.Z)(e,2),n=t[0],r=t[1],s="".concat(w,"-item"),C=Math.max(W,He),O=Ge===D,we=J.length&&O,Se=Ge===xe,De=we||typeof Ge=="number"&&J.length>Ge,Qe=(0,A.useMemo)(function(){var Ee=J;return we?_===null&&l?Ee=J:Ee=J.slice(0,Math.min(J.length,F/Ie)):typeof Ge=="number"&&(Ee=J.slice(0,Ge)),Ee},[J,Ie,_,Ge,we]),ot=(0,A.useMemo)(function(){return we?J.slice(me+1):J.slice(Qe.length)},[J,Qe,we,me]),Ke=(0,A.useCallback)(function(Ee,_e){var je;return typeof Te=="function"?Te(Ee):(je=Te&&(Ee==null?void 0:Ee[Te]))!==null&&je!==void 0?je:_e},[Te]),ut=(0,A.useCallback)(ie||function(Ee){return Ee},[ie]);function We(Ee,_e,je){at===Ee&&(_e===void 0||_e===Ot)||(Ve(Ee),je||(r(Ee<J.length-1),U==null||U(Ee)),_e!==void 0&>(_e))}function Oe(Ee,_e){L(_e.clientWidth)}function $e(Ee,_e){G(function(je){var ft=new Map(je);return _e===null?ft.delete(Ee):ft.set(Ee,_e),ft})}function nt(Ee,_e){rt(_e),Be(He)}function qe(Ee,_e){mt(_e)}function pt(Ee,_e){Et(_e)}function Tt(Ee){return he.get(Ke(Qe[Ee],Ee))}(0,oe.Z)(function(){if(F&&typeof C=="number"&&Qe){var Ee=st+tt,_e=Qe.length,je=_e-1;if(!_e){We(0,null);return}for(var ft=0;ft<_e;ft+=1){var dt=Tt(ft);if(l&&(dt=dt||0),dt===void 0){We(ft-1,void 0,!0);break}if(Ee+=dt,je===0&&Ee<=F||ft===je-1&&Ee+Tt(je)<=F){We(je,null);break}else if(Ee+C>F){We(ft-1,Ee-dt-tt+He);break}}y&&Tt(0)+tt>F&>(null)}},[F,he,He,st,tt,Ke,Qe]);var It=n&&!!ot.length,Ye={};Ot!==null&&we&&(Ye={position:"absolute",left:Ot,top:0});var St={prefixCls:s,responsive:we,component:b,invalidate:Se},re=ge?function(Ee,_e){var je=Ke(Ee,_e);return A.createElement(u.Provider,{key:je,value:(0,x.Z)((0,x.Z)({},St),{},{order:_e,item:Ee,itemKey:je,registerSize:$e,display:_e<=me})},ge(Ee,_e))}:function(Ee,_e){var je=Ke(Ee,_e);return A.createElement(te,(0,g.Z)({},St,{order:_e,key:je,item:Ee,renderItem:ut,itemKey:je,registerSize:$e,display:_e<=me}))},ee={order:It?me:Number.MAX_SAFE_INTEGER,className:"".concat(s,"-rest"),registerSize:nt,display:It},ve=V||R,Ae=Le?A.createElement(u.Provider,{value:(0,x.Z)((0,x.Z)({},St),ee)},Le(ot)):A.createElement(te,(0,g.Z)({},St,ee),typeof ve=="function"?ve(ot):ve),ye=A.createElement(a,(0,g.Z)({className:de()(!Se&&w,ze),style:ke,ref:le},E),m&&A.createElement(te,(0,g.Z)({},St,{responsive:O,responsiveDisabled:!we,order:-1,className:"".concat(s,"-prefix"),registerSize:qe,display:!0}),m),Qe.map(re),De?Ae:null,y&&A.createElement(te,(0,g.Z)({},St,{responsive:O,responsiveDisabled:!we,order:me,className:"".concat(s,"-suffix"),registerSize:pt,display:!0,style:Ye}),y));return O?A.createElement(se.Z,{onResize:Oe,disabled:!we},ye):ye}var v=A.forwardRef(P);v.displayName="Overflow",v.Item=X,v.RESPONSIVE=D,v.INVALIDATE=xe;var B=v,pe=B},39417:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return I}});var g=i(60499),x=i(18642),Z=i(42244),Q=i(85899),A=i(38705),f=i(17212),de=i(15793),se=i(39153),oe=i(55401),be=i(92310),ce=i.n(be),$=i(26112),d=i(59301),te=i(39378),q=function(X){for(var ue=X.prefixCls,D=X.level,xe=X.isStart,R=X.isEnd,P="".concat(ue,"-indent-unit"),v=[],B=0;B<D;B+=1){var pe;v.push(d.createElement("span",{key:B,className:ce()(P,(pe={},(0,x.Z)(pe,"".concat(P,"-start"),xe[B]),(0,x.Z)(pe,"".concat(P,"-end"),R[B]),pe))}))}return d.createElement("span",{"aria-hidden":"true",className:"".concat(ue,"-indent")},v)},z=d.memo(q),Ce=i(67841),K=i(71430),T=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],M="open",u="close",S="---",N=function(ne){(0,se.Z)(ue,ne);var X=(0,oe.Z)(ue);function ue(){var D;(0,A.Z)(this,ue);for(var xe=arguments.length,R=new Array(xe),P=0;P<xe;P++)R[P]=arguments[P];return D=X.call.apply(X,[this].concat(R)),D.state={dragNodeHighlight:!1},D.selectHandle=void 0,D.cacheIndent=void 0,D.onSelectorClick=function(v){var B=D.props.context.onNodeClick;B(v,(0,K.F)(D.props)),D.isSelectable()?D.onSelect(v):D.onCheck(v)},D.onSelectorDoubleClick=function(v){var B=D.props.context.onNodeDoubleClick;B(v,(0,K.F)(D.props))},D.onSelect=function(v){if(!D.isDisabled()){var B=D.props.context.onNodeSelect;B(v,(0,K.F)(D.props))}},D.onCheck=function(v){if(!D.isDisabled()){var B=D.props,pe=B.disableCheckbox,H=B.checked,le=D.props.context.onNodeCheck;if(!(!D.isCheckable()||pe)){var Y=!H;le(v,(0,K.F)(D.props),Y)}}},D.onMouseEnter=function(v){var B=D.props.context.onNodeMouseEnter;B(v,(0,K.F)(D.props))},D.onMouseLeave=function(v){var B=D.props.context.onNodeMouseLeave;B(v,(0,K.F)(D.props))},D.onContextMenu=function(v){var B=D.props.context.onNodeContextMenu;B(v,(0,K.F)(D.props))},D.onDragStart=function(v){var B=D.props.context.onNodeDragStart;v.stopPropagation(),D.setState({dragNodeHighlight:!0}),B(v,(0,de.Z)(D));try{v.dataTransfer.setData("text/plain","")}catch(pe){}},D.onDragEnter=function(v){var B=D.props.context.onNodeDragEnter;v.preventDefault(),v.stopPropagation(),B(v,(0,de.Z)(D))},D.onDragOver=function(v){var B=D.props.context.onNodeDragOver;v.preventDefault(),v.stopPropagation(),B(v,(0,de.Z)(D))},D.onDragLeave=function(v){var B=D.props.context.onNodeDragLeave;v.stopPropagation(),B(v,(0,de.Z)(D))},D.onDragEnd=function(v){var B=D.props.context.onNodeDragEnd;v.stopPropagation(),D.setState({dragNodeHighlight:!1}),B(v,(0,de.Z)(D))},D.onDrop=function(v){var B=D.props.context.onNodeDrop;v.preventDefault(),v.stopPropagation(),D.setState({dragNodeHighlight:!1}),B(v,(0,de.Z)(D))},D.onExpand=function(v){var B=D.props,pe=B.loading,H=B.context.onNodeExpand;pe||H(v,(0,K.F)(D.props))},D.setSelectHandle=function(v){D.selectHandle=v},D.getNodeState=function(){var v=D.props.expanded;return D.isLeaf()?null:v?M:u},D.hasChildren=function(){var v=D.props.eventKey,B=D.props.context.keyEntities,pe=(0,Ce.Z)(B,v)||{},H=pe.children;return!!(H||[]).length},D.isLeaf=function(){var v=D.props,B=v.isLeaf,pe=v.loaded,H=D.props.context.loadData,le=D.hasChildren();return B===!1?!1:B||!H&&!le||H&&pe&&!le},D.isDisabled=function(){var v=D.props.disabled,B=D.props.context.disabled;return!!(B||v)},D.isCheckable=function(){var v=D.props.checkable,B=D.props.context.checkable;return!B||v===!1?!1:B},D.syncLoadData=function(v){var B=v.expanded,pe=v.loading,H=v.loaded,le=D.props.context,Y=le.loadData,w=le.onNodeLoad;pe||Y&&B&&!D.isLeaf()&&!D.hasChildren()&&!H&&w((0,K.F)(D.props))},D.isDraggable=function(){var v=D.props,B=v.data,pe=v.context.draggable;return!!(pe&&(!pe.nodeDraggable||pe.nodeDraggable(B)))},D.renderDragHandler=function(){var v=D.props.context,B=v.draggable,pe=v.prefixCls;return B!=null&&B.icon?d.createElement("span",{className:"".concat(pe,"-draggable-icon")},B.icon):null},D.renderSwitcherIconDom=function(v){var B=D.props.switcherIcon,pe=D.props.context.switcherIcon,H=B||pe;return typeof H=="function"?H((0,Q.Z)((0,Q.Z)({},D.props),{},{isLeaf:v})):H},D.renderSwitcher=function(){var v=D.props.expanded,B=D.props.context.prefixCls;if(D.isLeaf()){var pe=D.renderSwitcherIconDom(!0);return pe!==!1?d.createElement("span",{className:ce()("".concat(B,"-switcher"),"".concat(B,"-switcher-noop"))},pe):null}var H=ce()("".concat(B,"-switcher"),"".concat(B,"-switcher_").concat(v?M:u)),le=D.renderSwitcherIconDom(!1);return le!==!1?d.createElement("span",{onClick:D.onExpand,className:H},le):null},D.renderCheckbox=function(){var v=D.props,B=v.checked,pe=v.halfChecked,H=v.disableCheckbox,le=D.props.context.prefixCls,Y=D.isDisabled(),w=D.isCheckable();if(!w)return null;var j=typeof w!="boolean"?w:null;return d.createElement("span",{className:ce()("".concat(le,"-checkbox"),B&&"".concat(le,"-checkbox-checked"),!B&&pe&&"".concat(le,"-checkbox-indeterminate"),(Y||H)&&"".concat(le,"-checkbox-disabled")),onClick:D.onCheck},j)},D.renderIcon=function(){var v=D.props.loading,B=D.props.context.prefixCls;return d.createElement("span",{className:ce()("".concat(B,"-iconEle"),"".concat(B,"-icon__").concat(D.getNodeState()||"docu"),v&&"".concat(B,"-icon_loading"))})},D.renderSelector=function(){var v=D.state.dragNodeHighlight,B=D.props,pe=B.title,H=pe===void 0?S:pe,le=B.selected,Y=B.icon,w=B.loading,j=B.data,J=D.props.context,ie=J.prefixCls,ge=J.showIcon,Te=J.icon,Pe=J.loadData,Ie=J.titleRender,Je=D.isDisabled(),ke="".concat(ie,"-node-content-wrapper"),ze;if(ge){var Ge=Y||Te;ze=Ge?d.createElement("span",{className:ce()("".concat(ie,"-iconEle"),"".concat(ie,"-icon__customize"))},typeof Ge=="function"?Ge(D.props):Ge):D.renderIcon()}else Pe&&w&&(ze=D.renderIcon());var V;typeof H=="function"?V=H(j):Ie?V=Ie(j):V=H;var Le=d.createElement("span",{className:"".concat(ie,"-title")},V);return d.createElement("span",{ref:D.setSelectHandle,title:typeof H=="string"?H:"",className:ce()("".concat(ke),"".concat(ke,"-").concat(D.getNodeState()||"normal"),!Je&&(le||v)&&"".concat(ie,"-node-selected")),onMouseEnter:D.onMouseEnter,onMouseLeave:D.onMouseLeave,onContextMenu:D.onContextMenu,onClick:D.onSelectorClick,onDoubleClick:D.onSelectorDoubleClick},ze,Le,D.renderDropIndicator())},D.renderDropIndicator=function(){var v=D.props,B=v.disabled,pe=v.eventKey,H=D.props.context,le=H.draggable,Y=H.dropLevelOffset,w=H.dropPosition,j=H.prefixCls,J=H.indent,ie=H.dropIndicatorRender,ge=H.dragOverNodeKey,Te=H.direction,Pe=!!le,Ie=!B&&Pe&&ge===pe,Je=J!=null?J:D.cacheIndent;return D.cacheIndent=J,Ie?ie({dropPosition:w,dropLevelOffset:Y,indent:Je,prefixCls:j,direction:Te}):null},D}return(0,f.Z)(ue,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var xe=this.props.selectable,R=this.props.context.selectable;return typeof xe=="boolean"?xe:R}},{key:"render",value:function(){var xe,R=this.props,P=R.eventKey,v=R.className,B=R.style,pe=R.dragOver,H=R.dragOverGapTop,le=R.dragOverGapBottom,Y=R.isLeaf,w=R.isStart,j=R.isEnd,J=R.expanded,ie=R.selected,ge=R.checked,Te=R.halfChecked,Pe=R.loading,Ie=R.domRef,Je=R.active,ke=R.data,ze=R.onMouseMove,Ge=R.selectable,V=(0,Z.Z)(R,T),Le=this.props.context,m=Le.prefixCls,y=Le.filterTreeNode,h=Le.keyEntities,a=Le.dropContainerKey,b=Le.dropTargetKey,U=Le.draggingNodeKey,E=this.isDisabled(),l=(0,$.Z)(V,{aria:!0,data:!0}),p=(0,Ce.Z)(h,P)||{},o=p.level,c=j[j.length-1],_=this.isDraggable(),L=!E&&_,F=U===P,fe=Ge!==void 0?{"aria-selected":!!Ge}:void 0;return d.createElement("div",(0,g.Z)({ref:Ie,className:ce()(v,"".concat(m,"-treenode"),(xe={},(0,x.Z)(xe,"".concat(m,"-treenode-disabled"),E),(0,x.Z)(xe,"".concat(m,"-treenode-switcher-").concat(J?"open":"close"),!Y),(0,x.Z)(xe,"".concat(m,"-treenode-checkbox-checked"),ge),(0,x.Z)(xe,"".concat(m,"-treenode-checkbox-indeterminate"),Te),(0,x.Z)(xe,"".concat(m,"-treenode-selected"),ie),(0,x.Z)(xe,"".concat(m,"-treenode-loading"),Pe),(0,x.Z)(xe,"".concat(m,"-treenode-active"),Je),(0,x.Z)(xe,"".concat(m,"-treenode-leaf-last"),c),(0,x.Z)(xe,"".concat(m,"-treenode-draggable"),_),(0,x.Z)(xe,"dragging",F),(0,x.Z)(xe,"drop-target",b===P),(0,x.Z)(xe,"drop-container",a===P),(0,x.Z)(xe,"drag-over",!E&&pe),(0,x.Z)(xe,"drag-over-gap-top",!E&&H),(0,x.Z)(xe,"drag-over-gap-bottom",!E&&le),(0,x.Z)(xe,"filter-node",y&&y((0,K.F)(this.props))),xe)),style:B,draggable:L,"aria-grabbed":F,onDragStart:L?this.onDragStart:void 0,onDragEnter:_?this.onDragEnter:void 0,onDragOver:_?this.onDragOver:void 0,onDragLeave:_?this.onDragLeave:void 0,onDrop:_?this.onDrop:void 0,onDragEnd:_?this.onDragEnd:void 0,onMouseMove:ze},fe,l),d.createElement(z,{prefixCls:m,level:o,isStart:w,isEnd:j}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),ue}(d.Component),k=function(X){return d.createElement(te.k.Consumer,null,function(ue){return d.createElement(N,(0,g.Z)({},X,{context:ue}))})};k.displayName="TreeNode",k.isTreeNode=1;var I=k},39378:function(ht,Me,i){"use strict";i.d(Me,{k:function(){return x}});var g=i(59301),x=g.createContext(null)},38028:function(ht,Me,i){"use strict";i.d(Me,{O:function(){return I.Z},Z:function(){return Le}});var g=i(60499),x=i(18642),Z=i(43749),Q=i(85899),A=i(77654),f=i(38705),de=i(17212),se=i(15793),oe=i(39153),be=i(55401),ce=i(92310),$=i.n(ce),d=i(10228),te=i(26112),q=i(48736),z=i(59301),Ce=i(39378);function K(m){var y=m.dropPosition,h=m.dropLevelOffset,a=m.indent,b={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(y){case-1:b.top=0,b.left=-h*a;break;case 1:b.bottom=0,b.left=-h*a;break;case 0:b.bottom=0,b.left=a;break}return z.createElement("div",{style:b})}function T(m){if(m==null)throw new TypeError("Cannot destructure "+m)}var M=i(72190),u=i(42244),S=i(34280),N=i(48911),k=i(77900),I=i(39417);function ne(m,y){var h=z.useState(!1),a=(0,M.Z)(h,2),b=a[0],U=a[1];z.useLayoutEffect(function(){if(b)return m(),function(){y()}},[b]),z.useLayoutEffect(function(){return U(!0),function(){U(!1)}},[])}var X=i(71430),ue=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],D=function(y,h){var a=y.className,b=y.style,U=y.motion,E=y.motionNodes,l=y.motionType,p=y.onMotionStart,o=y.onMotionEnd,c=y.active,_=y.treeNodeRequiredProps,L=(0,u.Z)(y,ue),F=z.useState(!0),fe=(0,M.Z)(F,2),ae=fe[0],he=fe[1],G=z.useContext(Ce.k),Re=G.prefixCls,Ne=E&&l!=="hide";(0,S.Z)(function(){E&&Ne!==ae&&he(Ne)},[E]);var W=function(){E&&p()},Be=z.useRef(!1),Xe=function(){E&&!Be.current&&(Be.current=!0,o())};ne(W,Xe);var Ze=function(rt){Ne===rt&&Xe()};return E?z.createElement(k.default,(0,g.Z)({ref:h,visible:ae},U,{motionAppear:l==="show",onVisibleChanged:Ze}),function(He,rt){var _t=He.className,ct=He.style;return z.createElement("div",{ref:rt,className:$()("".concat(Re,"-treenode-motion"),_t),style:ct},E.map(function(st){var mt=(0,g.Z)({},(T(st.data),st.data)),Ue=st.title,Fe=st.key,tt=st.isStart,Et=st.isEnd;delete mt.children;var vt=(0,X.H8)(Fe,_);return z.createElement(I.Z,(0,g.Z)({},mt,vt,{title:Ue,active:c,data:st.data,key:Fe,isStart:tt,isEnd:Et}))}))}):z.createElement(I.Z,(0,g.Z)({domRef:h,className:a,style:b},L,{active:c}))};D.displayName="MotionTreeNode";var xe=z.forwardRef(D),R=xe;function P(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],h=m.length,a=y.length;if(Math.abs(h-a)!==1)return{add:!1,key:null};function b(U,E){var l=new Map;U.forEach(function(o){l.set(o,!0)});var p=E.filter(function(o){return!l.has(o)});return p.length===1?p[0]:null}return h<a?{add:!0,key:b(m,y)}:{add:!1,key:b(y,m)}}function v(m,y,h){var a=m.findIndex(function(l){return l.key===h}),b=m[a+1],U=y.findIndex(function(l){return l.key===h});if(b){var E=y.findIndex(function(l){return l.key===b.key});return y.slice(U+1,E)}return y.slice(U+1)}var B=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],pe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},H=function(){},le="RC_TREE_MOTION_".concat(Math.random()),Y={key:le},w={key:le,level:0,index:0,pos:"0",node:Y,nodes:[Y]},j={parent:null,children:[],pos:w.pos,data:Y,title:null,key:le,isStart:[],isEnd:[]};function J(m,y,h,a){return y===!1||!h?m:m.slice(0,Math.ceil(h/a)+1)}function ie(m){var y=m.key,h=m.pos;return(0,X.km)(y,h)}function ge(m){for(var y=String(m.data.key),h=m;h.parent;)h=h.parent,y="".concat(h.data.key," > ").concat(y);return y}var Te=z.forwardRef(function(m,y){var h=m.prefixCls,a=m.data,b=m.selectable,U=m.checkable,E=m.expandedKeys,l=m.selectedKeys,p=m.checkedKeys,o=m.loadedKeys,c=m.loadingKeys,_=m.halfCheckedKeys,L=m.keyEntities,F=m.disabled,fe=m.dragging,ae=m.dragOverNodeKey,he=m.dropPosition,G=m.motion,Re=m.height,Ne=m.itemHeight,W=m.virtual,Be=m.focusable,Xe=m.activeItem,Ze=m.focused,He=m.tabIndex,rt=m.onKeyDown,_t=m.onFocus,ct=m.onBlur,st=m.onActiveChange,mt=m.onListChangeStart,Ue=m.onListChangeEnd,Fe=(0,u.Z)(m,B),tt=z.useRef(null),Et=z.useRef(null);z.useImperativeHandle(y,function(){return{scrollTo:function($e){tt.current.scrollTo($e)},getIndentWidth:function(){return Et.current.offsetWidth}}});var vt=z.useState(E),xt=(0,M.Z)(vt,2),Ot=xt[0],gt=xt[1],Rt=z.useState(a),it=(0,M.Z)(Rt,2),at=it[0],Ve=it[1],me=z.useState(a),e=(0,M.Z)(me,2),t=e[0],n=e[1],r=z.useState([]),s=(0,M.Z)(r,2),C=s[0],O=s[1],we=z.useState(null),Se=(0,M.Z)(we,2),De=Se[0],Qe=Se[1],ot=z.useRef(a);ot.current=a;function Ke(){var Oe=ot.current;Ve(Oe),n(Oe),O([]),Qe(null),Ue()}(0,S.Z)(function(){gt(E);var Oe=P(Ot,E);if(Oe.key!==null)if(Oe.add){var $e=at.findIndex(function(Ye){var St=Ye.key;return St===Oe.key}),nt=J(v(at,a,Oe.key),W,Re,Ne),qe=at.slice();qe.splice($e+1,0,j),n(qe),O(nt),Qe("show")}else{var pt=a.findIndex(function(Ye){var St=Ye.key;return St===Oe.key}),Tt=J(v(a,at,Oe.key),W,Re,Ne),It=a.slice();It.splice(pt+1,0,j),n(It),O(Tt),Qe("hide")}else at!==a&&(Ve(a),n(a))},[E,a]),z.useEffect(function(){fe||Ke()},[fe]);var ut=G?t:a,We={expandedKeys:E,selectedKeys:l,loadedKeys:o,loadingKeys:c,checkedKeys:p,halfCheckedKeys:_,dragOverNodeKey:ae,dropPosition:he,keyEntities:L};return z.createElement(z.Fragment,null,Ze&&Xe&&z.createElement("span",{style:pe,"aria-live":"assertive"},ge(Xe)),z.createElement("div",null,z.createElement("input",{style:pe,disabled:Be===!1||F,tabIndex:Be!==!1?He:null,onKeyDown:rt,onFocus:_t,onBlur:ct,value:"",onChange:H,"aria-label":"for screen reader"})),z.createElement("div",{className:"".concat(h,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},z.createElement("div",{className:"".concat(h,"-indent")},z.createElement("div",{ref:Et,className:"".concat(h,"-indent-unit")}))),z.createElement(N.Z,(0,g.Z)({},Fe,{data:ut,itemKey:ie,height:Re,fullHeight:!1,virtual:W,itemHeight:Ne,prefixCls:"".concat(h,"-list"),ref:tt,onVisibleChange:function($e,nt){var qe=new Set($e),pt=nt.filter(function(Tt){return!qe.has(Tt)});pt.some(function(Tt){return ie(Tt)===le})&&Ke()}}),function(Oe){var $e=Oe.pos,nt=(0,g.Z)({},(T(Oe.data),Oe.data)),qe=Oe.title,pt=Oe.key,Tt=Oe.isStart,It=Oe.isEnd,Ye=(0,X.km)(pt,$e);delete nt.key,delete nt.children;var St=(0,X.H8)(Ye,We);return z.createElement(R,(0,g.Z)({},nt,St,{title:qe,active:!!Xe&&pt===Xe.key,pos:$e,data:Oe.data,isStart:Tt,isEnd:It,motion:G,motionNodes:pt===le?C:null,motionType:De,onMotionStart:mt,onMotionEnd:Ke,treeNodeRequiredProps:We,onMouseMove:function(){st(null)}}))}))});Te.displayName="NodeList";var Pe=Te,Ie=i(35654),Je=i(90782),ke=i(67841),ze=10,Ge=function(m){(0,oe.Z)(h,m);var y=(0,be.Z)(h);function h(){var a;(0,f.Z)(this,h);for(var b=arguments.length,U=new Array(b),E=0;E<b;E++)U[E]=arguments[E];return a=y.call.apply(y,[this].concat(U)),a.destroyed=!1,a.delayedDragEnterLogic=void 0,a.loadingRetryTimes={},a.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,X.w$)()},a.dragStartMousePosition=null,a.dragNode=void 0,a.currentMouseOverDroppableNodeKey=null,a.listRef=z.createRef(),a.onNodeDragStart=function(l,p){var o=a.state,c=o.expandedKeys,_=o.keyEntities,L=a.props.onDragStart,F=p.props.eventKey;a.dragNode=p,a.dragStartMousePosition={x:l.clientX,y:l.clientY};var fe=(0,Ie._5)(c,F);a.setState({draggingNodeKey:F,dragChildrenKeys:(0,Ie.wA)(F,_),indent:a.listRef.current.getIndentWidth()}),a.setExpandedKeys(fe),window.addEventListener("dragend",a.onWindowDragEnd),L==null||L({event:l,node:(0,X.F)(p.props)})},a.onNodeDragEnter=function(l,p){var o=a.state,c=o.expandedKeys,_=o.keyEntities,L=o.dragChildrenKeys,F=o.flattenNodes,fe=o.indent,ae=a.props,he=ae.onDragEnter,G=ae.onExpand,Re=ae.allowDrop,Ne=ae.direction,W=p.props,Be=W.pos,Xe=W.eventKey,Ze=(0,se.Z)(a),He=Ze.dragNode;if(a.currentMouseOverDroppableNodeKey!==Xe&&(a.currentMouseOverDroppableNodeKey=Xe),!He){a.resetDragState();return}var rt=(0,Ie.OM)(l,He,p,fe,a.dragStartMousePosition,Re,F,_,c,Ne),_t=rt.dropPosition,ct=rt.dropLevelOffset,st=rt.dropTargetKey,mt=rt.dropContainerKey,Ue=rt.dropTargetPos,Fe=rt.dropAllowed,tt=rt.dragOverNodeKey;if(L.indexOf(st)!==-1||!Fe){a.resetDragState();return}if(a.delayedDragEnterLogic||(a.delayedDragEnterLogic={}),Object.keys(a.delayedDragEnterLogic).forEach(function(Et){clearTimeout(a.delayedDragEnterLogic[Et])}),He.props.eventKey!==p.props.eventKey&&(l.persist(),a.delayedDragEnterLogic[Be]=window.setTimeout(function(){if(a.state.draggingNodeKey!==null){var Et=(0,A.Z)(c),vt=(0,ke.Z)(_,p.props.eventKey);vt&&(vt.children||[]).length&&(Et=(0,Ie.L0)(c,p.props.eventKey)),"expandedKeys"in a.props||a.setExpandedKeys(Et),G==null||G(Et,{node:(0,X.F)(p.props),expanded:!0,nativeEvent:l.nativeEvent})}},800)),He.props.eventKey===st&&ct===0){a.resetDragState();return}a.setState({dragOverNodeKey:tt,dropPosition:_t,dropLevelOffset:ct,dropTargetKey:st,dropContainerKey:mt,dropTargetPos:Ue,dropAllowed:Fe}),he==null||he({event:l,node:(0,X.F)(p.props),expandedKeys:c})},a.onNodeDragOver=function(l,p){var o=a.state,c=o.dragChildrenKeys,_=o.flattenNodes,L=o.keyEntities,F=o.expandedKeys,fe=o.indent,ae=a.props,he=ae.onDragOver,G=ae.allowDrop,Re=ae.direction,Ne=(0,se.Z)(a),W=Ne.dragNode;if(W){var Be=(0,Ie.OM)(l,W,p,fe,a.dragStartMousePosition,G,_,L,F,Re),Xe=Be.dropPosition,Ze=Be.dropLevelOffset,He=Be.dropTargetKey,rt=Be.dropContainerKey,_t=Be.dropAllowed,ct=Be.dropTargetPos,st=Be.dragOverNodeKey;c.indexOf(He)!==-1||!_t||(W.props.eventKey===He&&Ze===0?a.state.dropPosition===null&&a.state.dropLevelOffset===null&&a.state.dropTargetKey===null&&a.state.dropContainerKey===null&&a.state.dropTargetPos===null&&a.state.dropAllowed===!1&&a.state.dragOverNodeKey===null||a.resetDragState():Xe===a.state.dropPosition&&Ze===a.state.dropLevelOffset&&He===a.state.dropTargetKey&&rt===a.state.dropContainerKey&&ct===a.state.dropTargetPos&&_t===a.state.dropAllowed&&st===a.state.dragOverNodeKey||a.setState({dropPosition:Xe,dropLevelOffset:Ze,dropTargetKey:He,dropContainerKey:rt,dropTargetPos:ct,dropAllowed:_t,dragOverNodeKey:st}),he==null||he({event:l,node:(0,X.F)(p.props)}))}},a.onNodeDragLeave=function(l,p){a.currentMouseOverDroppableNodeKey===p.props.eventKey&&!l.currentTarget.contains(l.relatedTarget)&&(a.resetDragState(),a.currentMouseOverDroppableNodeKey=null);var o=a.props.onDragLeave;o==null||o({event:l,node:(0,X.F)(p.props)})},a.onWindowDragEnd=function(l){a.onNodeDragEnd(l,null,!0),window.removeEventListener("dragend",a.onWindowDragEnd)},a.onNodeDragEnd=function(l,p){var o=a.props.onDragEnd;a.setState({dragOverNodeKey:null}),a.cleanDragState(),o==null||o({event:l,node:(0,X.F)(p.props)}),a.dragNode=null,window.removeEventListener("dragend",a.onWindowDragEnd)},a.onNodeDrop=function(l,p){var o,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,_=a.state,L=_.dragChildrenKeys,F=_.dropPosition,fe=_.dropTargetKey,ae=_.dropTargetPos,he=_.dropAllowed;if(he){var G=a.props.onDrop;if(a.setState({dragOverNodeKey:null}),a.cleanDragState(),fe!==null){var Re=(0,Q.Z)((0,Q.Z)({},(0,X.H8)(fe,a.getTreeNodeRequiredProps())),{},{active:((o=a.getActiveItem())===null||o===void 0?void 0:o.key)===fe,data:(0,ke.Z)(a.state.keyEntities,fe).node}),Ne=L.indexOf(fe)!==-1;(0,q.ZP)(!Ne,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var W=(0,Ie.yx)(ae),Be={event:l,node:(0,X.F)(Re),dragNode:a.dragNode?(0,X.F)(a.dragNode.props):null,dragNodesKeys:[a.dragNode.props.eventKey].concat(L),dropToGap:F!==0,dropPosition:F+Number(W[W.length-1])};c||G==null||G(Be),a.dragNode=null}}},a.cleanDragState=function(){var l=a.state.draggingNodeKey;l!==null&&a.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),a.dragStartMousePosition=null,a.currentMouseOverDroppableNodeKey=null},a.triggerExpandActionExpand=function(l,p){var o=a.state,c=o.expandedKeys,_=o.flattenNodes,L=p.expanded,F=p.key,fe=p.isLeaf;if(!(fe||l.shiftKey||l.metaKey||l.ctrlKey)){var ae=_.filter(function(G){return G.key===F})[0],he=(0,X.F)((0,Q.Z)((0,Q.Z)({},(0,X.H8)(F,a.getTreeNodeRequiredProps())),{},{data:ae.data}));a.setExpandedKeys(L?(0,Ie._5)(c,F):(0,Ie.L0)(c,F)),a.onNodeExpand(l,he)}},a.onNodeClick=function(l,p){var o=a.props,c=o.onClick,_=o.expandAction;_==="click"&&a.triggerExpandActionExpand(l,p),c==null||c(l,p)},a.onNodeDoubleClick=function(l,p){var o=a.props,c=o.onDoubleClick,_=o.expandAction;_==="doubleClick"&&a.triggerExpandActionExpand(l,p),c==null||c(l,p)},a.onNodeSelect=function(l,p){var o=a.state.selectedKeys,c=a.state,_=c.keyEntities,L=c.fieldNames,F=a.props,fe=F.onSelect,ae=F.multiple,he=p.selected,G=p[L.key],Re=!he;Re?ae?o=(0,Ie.L0)(o,G):o=[G]:o=(0,Ie._5)(o,G);var Ne=o.map(function(W){var Be=(0,ke.Z)(_,W);return Be?Be.node:null}).filter(function(W){return W});a.setUncontrolledState({selectedKeys:o}),fe==null||fe(o,{event:"select",selected:Re,node:p,selectedNodes:Ne,nativeEvent:l.nativeEvent})},a.onNodeCheck=function(l,p,o){var c=a.state,_=c.keyEntities,L=c.checkedKeys,F=c.halfCheckedKeys,fe=a.props,ae=fe.checkStrictly,he=fe.onCheck,G=p.key,Re,Ne={event:"check",node:p,checked:o,nativeEvent:l.nativeEvent};if(ae){var W=o?(0,Ie.L0)(L,G):(0,Ie._5)(L,G),Be=(0,Ie._5)(F,G);Re={checked:W,halfChecked:Be},Ne.checkedNodes=W.map(function(ct){return(0,ke.Z)(_,ct)}).filter(function(ct){return ct}).map(function(ct){return ct.node}),a.setUncontrolledState({checkedKeys:W})}else{var Xe=(0,Je.S)([].concat((0,A.Z)(L),[G]),!0,_),Ze=Xe.checkedKeys,He=Xe.halfCheckedKeys;if(!o){var rt=new Set(Ze);rt.delete(G);var _t=(0,Je.S)(Array.from(rt),{checked:!1,halfCheckedKeys:He},_);Ze=_t.checkedKeys,He=_t.halfCheckedKeys}Re=Ze,Ne.checkedNodes=[],Ne.checkedNodesPositions=[],Ne.halfCheckedKeys=He,Ze.forEach(function(ct){var st=(0,ke.Z)(_,ct);if(st){var mt=st.node,Ue=st.pos;Ne.checkedNodes.push(mt),Ne.checkedNodesPositions.push({node:mt,pos:Ue})}}),a.setUncontrolledState({checkedKeys:Ze},!1,{halfCheckedKeys:He})}he==null||he(Re,Ne)},a.onNodeLoad=function(l){var p=l.key,o=new Promise(function(c,_){a.setState(function(L){var F=L.loadedKeys,fe=F===void 0?[]:F,ae=L.loadingKeys,he=ae===void 0?[]:ae,G=a.props,Re=G.loadData,Ne=G.onLoad;if(!Re||fe.indexOf(p)!==-1||he.indexOf(p)!==-1)return null;var W=Re(l);return W.then(function(){var Be=a.state.loadedKeys,Xe=(0,Ie.L0)(Be,p);Ne==null||Ne(Xe,{event:"load",node:l}),a.setUncontrolledState({loadedKeys:Xe}),a.setState(function(Ze){return{loadingKeys:(0,Ie._5)(Ze.loadingKeys,p)}}),c()}).catch(function(Be){if(a.setState(function(Ze){return{loadingKeys:(0,Ie._5)(Ze.loadingKeys,p)}}),a.loadingRetryTimes[p]=(a.loadingRetryTimes[p]||0)+1,a.loadingRetryTimes[p]>=ze){var Xe=a.state.loadedKeys;(0,q.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),a.setUncontrolledState({loadedKeys:(0,Ie.L0)(Xe,p)}),c()}_(Be)}),{loadingKeys:(0,Ie.L0)(he,p)}})});return o.catch(function(){}),o},a.onNodeMouseEnter=function(l,p){var o=a.props.onMouseEnter;o==null||o({event:l,node:p})},a.onNodeMouseLeave=function(l,p){var o=a.props.onMouseLeave;o==null||o({event:l,node:p})},a.onNodeContextMenu=function(l,p){var o=a.props.onRightClick;o&&(l.preventDefault(),o({event:l,node:p}))},a.onFocus=function(){var l=a.props.onFocus;a.setState({focused:!0});for(var p=arguments.length,o=new Array(p),c=0;c<p;c++)o[c]=arguments[c];l==null||l.apply(void 0,o)},a.onBlur=function(){var l=a.props.onBlur;a.setState({focused:!1}),a.onActiveChange(null);for(var p=arguments.length,o=new Array(p),c=0;c<p;c++)o[c]=arguments[c];l==null||l.apply(void 0,o)},a.getTreeNodeRequiredProps=function(){var l=a.state,p=l.expandedKeys,o=l.selectedKeys,c=l.loadedKeys,_=l.loadingKeys,L=l.checkedKeys,F=l.halfCheckedKeys,fe=l.dragOverNodeKey,ae=l.dropPosition,he=l.keyEntities;return{expandedKeys:p||[],selectedKeys:o||[],loadedKeys:c||[],loadingKeys:_||[],checkedKeys:L||[],halfCheckedKeys:F||[],dragOverNodeKey:fe,dropPosition:ae,keyEntities:he}},a.setExpandedKeys=function(l){var p=a.state,o=p.treeData,c=p.fieldNames,_=(0,X.oH)(o,l,c);a.setUncontrolledState({expandedKeys:l,flattenNodes:_},!0)},a.onNodeExpand=function(l,p){var o=a.state.expandedKeys,c=a.state,_=c.listChanging,L=c.fieldNames,F=a.props,fe=F.onExpand,ae=F.loadData,he=p.expanded,G=p[L.key];if(!_){var Re=o.indexOf(G),Ne=!he;if((0,q.ZP)(he&&Re!==-1||!he&&Re===-1,"Expand state not sync with index check"),Ne?o=(0,Ie.L0)(o,G):o=(0,Ie._5)(o,G),a.setExpandedKeys(o),fe==null||fe(o,{node:p,expanded:Ne,nativeEvent:l.nativeEvent}),Ne&&ae){var W=a.onNodeLoad(p);W&&W.then(function(){var Be=(0,X.oH)(a.state.treeData,o,L);a.setUncontrolledState({flattenNodes:Be})}).catch(function(){var Be=a.state.expandedKeys,Xe=(0,Ie._5)(Be,G);a.setExpandedKeys(Xe)})}}},a.onListChangeStart=function(){a.setUncontrolledState({listChanging:!0})},a.onListChangeEnd=function(){setTimeout(function(){a.setUncontrolledState({listChanging:!1})})},a.onActiveChange=function(l){var p=a.state.activeKey,o=a.props.onActiveChange;p!==l&&(a.setState({activeKey:l}),l!==null&&a.scrollTo({key:l}),o==null||o(l))},a.getActiveItem=function(){var l=a.state,p=l.activeKey,o=l.flattenNodes;return p===null?null:o.find(function(c){var _=c.key;return _===p})||null},a.offsetActiveKey=function(l){var p=a.state,o=p.flattenNodes,c=p.activeKey,_=o.findIndex(function(fe){var ae=fe.key;return ae===c});_===-1&&l<0&&(_=o.length),_=(_+l+o.length)%o.length;var L=o[_];if(L){var F=L.key;a.onActiveChange(F)}else a.onActiveChange(null)},a.onKeyDown=function(l){var p=a.state,o=p.activeKey,c=p.expandedKeys,_=p.checkedKeys,L=p.fieldNames,F=a.props,fe=F.onKeyDown,ae=F.checkable,he=F.selectable;switch(l.which){case d.Z.UP:{a.offsetActiveKey(-1),l.preventDefault();break}case d.Z.DOWN:{a.offsetActiveKey(1),l.preventDefault();break}}var G=a.getActiveItem();if(G&&G.data){var Re=a.getTreeNodeRequiredProps(),Ne=G.data.isLeaf===!1||!!(G.data[L.children]||[]).length,W=(0,X.F)((0,Q.Z)((0,Q.Z)({},(0,X.H8)(o,Re)),{},{data:G.data,active:!0}));switch(l.which){case d.Z.LEFT:{Ne&&c.includes(o)?a.onNodeExpand({},W):G.parent&&a.onActiveChange(G.parent.key),l.preventDefault();break}case d.Z.RIGHT:{Ne&&!c.includes(o)?a.onNodeExpand({},W):G.children&&G.children.length&&a.onActiveChange(G.children[0].key),l.preventDefault();break}case d.Z.ENTER:case d.Z.SPACE:{ae&&!W.disabled&&W.checkable!==!1&&!W.disableCheckbox?a.onNodeCheck({},W,!_.includes(o)):!ae&&he&&!W.disabled&&W.selectable!==!1&&a.onNodeSelect({},W);break}}}fe==null||fe(l)},a.setUncontrolledState=function(l){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!a.destroyed){var c=!1,_=!0,L={};Object.keys(l).forEach(function(F){if(F in a.props){_=!1;return}c=!0,L[F]=l[F]}),c&&(!p||_)&&a.setState((0,Q.Z)((0,Q.Z)({},L),o))}},a.scrollTo=function(l){a.listRef.current.scrollTo(l)},a}return(0,de.Z)(h,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var b=this.props.activeKey;b!==void 0&&b!==this.state.activeKey&&(this.setState({activeKey:b}),b!==null&&this.scrollTo({key:b}))}},{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 b,U=this.state,E=U.focused,l=U.flattenNodes,p=U.keyEntities,o=U.draggingNodeKey,c=U.activeKey,_=U.dropLevelOffset,L=U.dropContainerKey,F=U.dropTargetKey,fe=U.dropPosition,ae=U.dragOverNodeKey,he=U.indent,G=this.props,Re=G.prefixCls,Ne=G.className,W=G.style,Be=G.showLine,Xe=G.focusable,Ze=G.tabIndex,He=Ze===void 0?0:Ze,rt=G.selectable,_t=G.showIcon,ct=G.icon,st=G.switcherIcon,mt=G.draggable,Ue=G.checkable,Fe=G.checkStrictly,tt=G.disabled,Et=G.motion,vt=G.loadData,xt=G.filterTreeNode,Ot=G.height,gt=G.itemHeight,Rt=G.virtual,it=G.titleRender,at=G.dropIndicatorRender,Ve=G.onContextMenu,me=G.onScroll,e=G.direction,t=G.rootClassName,n=G.rootStyle,r=(0,te.Z)(this.props,{aria:!0,data:!0}),s;return mt&&((0,Z.Z)(mt)==="object"?s=mt:typeof mt=="function"?s={nodeDraggable:mt}:s={}),z.createElement(Ce.k.Provider,{value:{prefixCls:Re,selectable:rt,showIcon:_t,icon:ct,switcherIcon:st,draggable:s,draggingNodeKey:o,checkable:Ue,checkStrictly:Fe,disabled:tt,keyEntities:p,dropLevelOffset:_,dropContainerKey:L,dropTargetKey:F,dropPosition:fe,dragOverNodeKey:ae,indent:he,direction:e,dropIndicatorRender:at,loadData:vt,filterTreeNode:xt,titleRender:it,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}},z.createElement("div",{role:"tree",className:$()(Re,Ne,t,(b={},(0,x.Z)(b,"".concat(Re,"-show-line"),Be),(0,x.Z)(b,"".concat(Re,"-focused"),E),(0,x.Z)(b,"".concat(Re,"-active-focused"),c!==null),b)),style:n},z.createElement(Pe,(0,g.Z)({ref:this.listRef,prefixCls:Re,style:W,data:l,disabled:tt,selectable:rt,checkable:!!Ue,motion:Et,dragging:o!==null,height:Ot,itemHeight:gt,virtual:Rt,focusable:Xe,focused:E,tabIndex:He,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ve,onScroll:me},this.getTreeNodeRequiredProps(),r))))}}],[{key:"getDerivedStateFromProps",value:function(b,U){var E=U.prevProps,l={prevProps:b};function p(Xe){return!E&&Xe in b||E&&E[Xe]!==b[Xe]}var o,c=U.fieldNames;if(p("fieldNames")&&(c=(0,X.w$)(b.fieldNames),l.fieldNames=c),p("treeData")?o=b.treeData:p("children")&&((0,q.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),o=(0,X.zn)(b.children)),o){l.treeData=o;var _=(0,X.I8)(o,{fieldNames:c});l.keyEntities=(0,Q.Z)((0,x.Z)({},le,w),_.keyEntities)}var L=l.keyEntities||U.keyEntities;if(p("expandedKeys")||E&&p("autoExpandParent"))l.expandedKeys=b.autoExpandParent||!E&&b.defaultExpandParent?(0,Ie.r7)(b.expandedKeys,L):b.expandedKeys;else if(!E&&b.defaultExpandAll){var F=(0,Q.Z)({},L);delete F[le],l.expandedKeys=Object.keys(F).map(function(Xe){return F[Xe].key})}else!E&&b.defaultExpandedKeys&&(l.expandedKeys=b.autoExpandParent||b.defaultExpandParent?(0,Ie.r7)(b.defaultExpandedKeys,L):b.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,o||l.expandedKeys){var fe=(0,X.oH)(o||U.treeData,l.expandedKeys||U.expandedKeys,c);l.flattenNodes=fe}if(b.selectable&&(p("selectedKeys")?l.selectedKeys=(0,Ie.BT)(b.selectedKeys,b):!E&&b.defaultSelectedKeys&&(l.selectedKeys=(0,Ie.BT)(b.defaultSelectedKeys,b))),b.checkable){var ae;if(p("checkedKeys")?ae=(0,Ie.E6)(b.checkedKeys)||{}:!E&&b.defaultCheckedKeys?ae=(0,Ie.E6)(b.defaultCheckedKeys)||{}:o&&(ae=(0,Ie.E6)(b.checkedKeys)||{checkedKeys:U.checkedKeys,halfCheckedKeys:U.halfCheckedKeys}),ae){var he=ae,G=he.checkedKeys,Re=G===void 0?[]:G,Ne=he.halfCheckedKeys,W=Ne===void 0?[]:Ne;if(!b.checkStrictly){var Be=(0,Je.S)(Re,!0,L);Re=Be.checkedKeys,W=Be.halfCheckedKeys}l.checkedKeys=Re,l.halfCheckedKeys=W}}return p("loadedKeys")&&(l.loadedKeys=b.loadedKeys),l}}]),h}(z.Component);Ge.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},Ge.TreeNode=I.Z;var V=Ge,Le=V},35654:function(ht,Me,i){"use strict";i.d(Me,{BT:function(){return z},E6:function(){return T},L0:function(){return be},OM:function(){return q},_5:function(){return oe},r7:function(){return M},wA:function(){return $},yx:function(){return ce}});var g=i(77654),x=i(43749),Z=i(48736),Q=i(59301),A=i(39417),f=i(67841),de=i(71430),se=null;function oe(u,S){if(!u)return[];var N=u.slice(),k=N.indexOf(S);return k>=0&&N.splice(k,1),N}function be(u,S){var N=(u||[]).slice();return N.indexOf(S)===-1&&N.push(S),N}function ce(u){return u.split("-")}function $(u,S){var N=[],k=(0,f.Z)(S,u);function I(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ne.forEach(function(X){var ue=X.key,D=X.children;N.push(ue),I(D)})}return I(k.children),N}function d(u){if(u.parent){var S=ce(u.pos);return Number(S[S.length-1])===u.parent.children.length-1}return!1}function te(u){var S=ce(u.pos);return Number(S[S.length-1])===0}function q(u,S,N,k,I,ne,X,ue,D,xe){var R,P=u.clientX,v=u.clientY,B=u.target.getBoundingClientRect(),pe=B.top,H=B.height,le=(xe==="rtl"?-1:1)*(((I==null?void 0:I.x)||0)-P),Y=(le-12)/k,w=(0,f.Z)(ue,N.props.eventKey);if(v<pe+H/2){var j=X.findIndex(function(Le){return Le.key===w.key}),J=j<=0?0:j-1,ie=X[J].key;w=(0,f.Z)(ue,ie)}var ge=w.key,Te=w,Pe=w.key,Ie=0,Je=0;if(!D.includes(ge))for(var ke=0;ke<Y&&d(w);ke+=1)w=w.parent,Je+=1;var ze=S.props.data,Ge=w.node,V=!0;return te(w)&&w.level===0&&v<pe+H/2&&ne({dragNode:ze,dropNode:Ge,dropPosition:-1})&&w.key===N.props.eventKey?Ie=-1:(Te.children||[]).length&&D.includes(Pe)?ne({dragNode:ze,dropNode:Ge,dropPosition:0})?Ie=0:V=!1:Je===0?Y>-1.5?ne({dragNode:ze,dropNode:Ge,dropPosition:1})?Ie=1:V=!1:ne({dragNode:ze,dropNode:Ge,dropPosition:0})?Ie=0:ne({dragNode:ze,dropNode:Ge,dropPosition:1})?Ie=1:V=!1:ne({dragNode:ze,dropNode:Ge,dropPosition:1})?Ie=1:V=!1,{dropPosition:Ie,dropLevelOffset:Je,dropTargetKey:w.key,dropTargetPos:w.pos,dragOverNodeKey:Pe,dropContainerKey:Ie===0?null:((R=w.parent)===null||R===void 0?void 0:R.key)||null,dropAllowed:V}}function z(u,S){if(u){var N=S.multiple;return N?u.slice():u.length?[u[0]]:u}}var Ce=function(S){return S};function K(u,S){if(!u)return[];var N=S||{},k=N.processProps,I=k===void 0?Ce:k,ne=Array.isArray(u)?u:[u];return ne.map(function(X){var ue=X.children,D=_objectWithoutProperties(X,se),xe=K(ue,S);return React.createElement(TreeNode,_extends({key:D.key},I(D)),xe)})}function T(u){if(!u)return null;var S;if(Array.isArray(u))S={checkedKeys:u,halfCheckedKeys:void 0};else if((0,x.Z)(u)==="object")S={checkedKeys:u.checked||void 0,halfCheckedKeys:u.halfChecked||void 0};else return(0,Z.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return S}function M(u,S){var N=new Set;function k(I){if(!N.has(I)){var ne=(0,f.Z)(S,I);if(ne){N.add(I);var X=ne.parent,ue=ne.node;ue.disabled||X&&k(X.key)}}}return(u||[]).forEach(function(I){k(I)}),(0,g.Z)(N)}},90782:function(ht,Me,i){"use strict";i.d(Me,{S:function(){return de}});var g=i(48736),x=i(67841);function Z(se,oe){var be=new Set;return se.forEach(function(ce){oe.has(ce)||be.add(ce)}),be}function Q(se){var oe=se||{},be=oe.disabled,ce=oe.disableCheckbox,$=oe.checkable;return!!(be||ce)||$===!1}function A(se,oe,be,ce){for(var $=new Set(se),d=new Set,te=0;te<=be;te+=1){var q=oe.get(te)||new Set;q.forEach(function(T){var M=T.key,u=T.node,S=T.children,N=S===void 0?[]:S;$.has(M)&&!ce(u)&&N.filter(function(k){return!ce(k.node)}).forEach(function(k){$.add(k.key)})})}for(var z=new Set,Ce=be;Ce>=0;Ce-=1){var K=oe.get(Ce)||new Set;K.forEach(function(T){var M=T.parent,u=T.node;if(!(ce(u)||!T.parent||z.has(T.parent.key))){if(ce(T.parent.node)){z.add(M.key);return}var S=!0,N=!1;(M.children||[]).filter(function(k){return!ce(k.node)}).forEach(function(k){var I=k.key,ne=$.has(I);S&&!ne&&(S=!1),!N&&(ne||d.has(I))&&(N=!0)}),S&&$.add(M.key),N&&d.add(M.key),z.add(M.key)}})}return{checkedKeys:Array.from($),halfCheckedKeys:Array.from(Z(d,$))}}function f(se,oe,be,ce,$){for(var d=new Set(se),te=new Set(oe),q=0;q<=ce;q+=1){var z=be.get(q)||new Set;z.forEach(function(M){var u=M.key,S=M.node,N=M.children,k=N===void 0?[]:N;!d.has(u)&&!te.has(u)&&!$(S)&&k.filter(function(I){return!$(I.node)}).forEach(function(I){d.delete(I.key)})})}te=new Set;for(var Ce=new Set,K=ce;K>=0;K-=1){var T=be.get(K)||new Set;T.forEach(function(M){var u=M.parent,S=M.node;if(!($(S)||!M.parent||Ce.has(M.parent.key))){if($(M.parent.node)){Ce.add(u.key);return}var N=!0,k=!1;(u.children||[]).filter(function(I){return!$(I.node)}).forEach(function(I){var ne=I.key,X=d.has(ne);N&&!X&&(N=!1),!k&&(X||te.has(ne))&&(k=!0)}),N||d.delete(u.key),k&&te.add(u.key),Ce.add(u.key)}})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(Z(te,d))}}function de(se,oe,be,ce){var $=[],d;ce?d=ce:d=Q;var te=new Set(se.filter(function(K){var T=!!(0,x.Z)(be,K);return T||$.push(K),T})),q=new Map,z=0;Object.keys(be).forEach(function(K){var T=be[K],M=T.level,u=q.get(M);u||(u=new Set,q.set(M,u)),u.add(T),z=Math.max(z,M)}),(0,g.ZP)(!$.length,"Tree missing follow keys: ".concat($.slice(0,100).map(function(K){return"'".concat(K,"'")}).join(", ")));var Ce;return oe===!0?Ce=A(te,q,z,d):Ce=f(te,oe.halfCheckedKeys,q,z,d),Ce}},67841:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return g}});function g(x,Z){return x[Z]}},71430:function(ht,Me,i){"use strict";i.d(Me,{F:function(){return M},H8:function(){return T},I8:function(){return K},km:function(){return $},oH:function(){return z},w$:function(){return d},zn:function(){return q}});var g=i(43749),x=i(77654),Z=i(85899),Q=i(42244),A=i(11592),f=i(2738),de=i(48736),se=i(67841),oe=["children"];function be(u,S){return"".concat(u,"-").concat(S)}function ce(u){return u&&u.type&&u.type.isTreeNode}function $(u,S){return u!=null?u:S}function d(u){var S=u||{},N=S.title,k=S._title,I=S.key,ne=S.children,X=N||"title";return{title:X,_title:k||[X],key:I||"key",children:ne||"children"}}function te(u,S){var N=new Map;function k(I){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(I||[]).forEach(function(X){var ue=X[S.key],D=X[S.children];warning(ue!=null,"Tree node must have a certain key: [".concat(ne).concat(ue,"]"));var xe=String(ue);warning(!N.has(xe)||ue===null||ue===void 0,"Same 'key' exist in the Tree: ".concat(xe)),N.set(xe,!0),k(D,"".concat(ne).concat(xe," > "))})}k(u)}function q(u){function S(N){var k=(0,A.Z)(N);return k.map(function(I){if(!ce(I))return(0,de.ZP)(!I,"Tree/TreeNode can only accept TreeNode as children."),null;var ne=I.key,X=I.props,ue=X.children,D=(0,Q.Z)(X,oe),xe=(0,Z.Z)({key:ne},D),R=S(ue);return R.length&&(xe.children=R),xe}).filter(function(I){return I})}return S(u)}function z(u,S,N){var k=d(N),I=k._title,ne=k.key,X=k.children,ue=new Set(S===!0?[]:S),D=[];function xe(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return R.map(function(v,B){for(var pe=be(P?P.pos:"0",B),H=$(v[ne],pe),le,Y=0;Y<I.length;Y+=1){var w=I[Y];if(v[w]!==void 0){le=v[w];break}}var j=(0,Z.Z)((0,Z.Z)({},(0,f.Z)(v,[].concat((0,x.Z)(I),[ne,X]))),{},{title:le,key:H,parent:P,pos:pe,children:null,data:v,isStart:[].concat((0,x.Z)(P?P.isStart:[]),[B===0]),isEnd:[].concat((0,x.Z)(P?P.isEnd:[]),[B===R.length-1])});return D.push(j),S===!0||ue.has(H)?j.children=xe(v[X]||[],j):j.children=[],j})}return xe(u),D}function Ce(u,S,N){var k={};(0,g.Z)(N)==="object"?k=N:k={externalGetKey:N},k=k||{};var I=k,ne=I.childrenPropName,X=I.externalGetKey,ue=I.fieldNames,D=d(ue),xe=D.key,R=D.children,P=ne||R,v;X?typeof X=="string"?v=function(H){return H[X]}:typeof X=="function"&&(v=function(H){return X(H)}):v=function(H,le){return $(H[xe],le)};function B(pe,H,le,Y){var w=pe?pe[P]:u,j=pe?be(le.pos,H):"0",J=pe?[].concat((0,x.Z)(Y),[pe]):[];if(pe){var ie=v(pe,j),ge={node:pe,index:H,pos:j,key:ie,parentPos:le.node?le.pos:null,level:le.level+1,nodes:J};S(ge)}w&&w.forEach(function(Te,Pe){B(Te,Pe,{node:pe,pos:j,level:le?le.level+1:-1},J)})}B(null)}function K(u){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=S.initWrapper,k=S.processEntity,I=S.onProcessFinished,ne=S.externalGetKey,X=S.childrenPropName,ue=S.fieldNames,D=arguments.length>2?arguments[2]:void 0,xe=ne||D,R={},P={},v={posEntities:R,keyEntities:P};return N&&(v=N(v)||v),Ce(u,function(B){var pe=B.node,H=B.index,le=B.pos,Y=B.key,w=B.parentPos,j=B.level,J=B.nodes,ie={node:pe,nodes:J,index:H,key:Y,pos:le,level:j},ge=$(Y,le);R[le]=ie,P[ge]=ie,ie.parent=R[w],ie.parent&&(ie.parent.children=ie.parent.children||[],ie.parent.children.push(ie)),k&&k(ie,v)},{externalGetKey:xe,childrenPropName:X,fieldNames:ue}),I&&I(v),v}function T(u,S){var N=S.expandedKeys,k=S.selectedKeys,I=S.loadedKeys,ne=S.loadingKeys,X=S.checkedKeys,ue=S.halfCheckedKeys,D=S.dragOverNodeKey,xe=S.dropPosition,R=S.keyEntities,P=(0,se.Z)(R,u),v={eventKey:u,expanded:N.indexOf(u)!==-1,selected:k.indexOf(u)!==-1,loaded:I.indexOf(u)!==-1,loading:ne.indexOf(u)!==-1,checked:X.indexOf(u)!==-1,halfChecked:ue.indexOf(u)!==-1,pos:String(P?P.pos:""),dragOver:D===u&&xe===0,dragOverGapTop:D===u&&xe===-1,dragOverGapBottom:D===u&&xe===1};return v}function M(u){var S=u.data,N=u.expanded,k=u.selected,I=u.checked,ne=u.loaded,X=u.loading,ue=u.halfChecked,D=u.dragOver,xe=u.dragOverGapTop,R=u.dragOverGapBottom,P=u.pos,v=u.active,B=u.eventKey,pe=(0,Z.Z)((0,Z.Z)({},S),{},{expanded:N,selected:k,checked:I,loaded:ne,loading:X,halfChecked:ue,dragOver:D,dragOverGapTop:xe,dragOverGapBottom:R,pos:P,active:v,key:B});return"props"in pe||Object.defineProperty(pe,"props",{get:function(){return(0,de.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),u}}),pe}},48911:function(ht,Me,i){"use strict";i.d(Me,{Z:function(){return Ge}});var g=i(60499),x=i(43749),Z=i(85899),Q=i(18642),A=i(72190),f=i(42244),de=i(92310),se=i.n(de),oe=i(29301),be=i(70425),ce=i(34280),$=i(59301),d=i(4676),te=$.forwardRef(function(V,Le){var m=V.height,y=V.offsetY,h=V.offsetX,a=V.children,b=V.prefixCls,U=V.onInnerResize,E=V.innerProps,l=V.rtl,p=V.extra,o={},c={display:"flex",flexDirection:"column"};return y!==void 0&&(o={height:m,position:"relative",overflow:"hidden"},c=(0,Z.Z)((0,Z.Z)({},c),{},(0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)((0,Q.Z)({transform:"translateY(".concat(y,"px)")},l?"marginRight":"marginLeft",-h),"position","absolute"),"left",0),"right",0),"top",0))),$.createElement("div",{style:o},$.createElement(oe.Z,{onResize:function(L){var F=L.offsetHeight;F&&U&&U()}},$.createElement("div",(0,g.Z)({style:c,className:se()((0,Q.Z)({},"".concat(b,"-holder-inner"),b)),ref:Le},E),a,p)))});te.displayName="Filler";var q=te;function z(V){var Le=V.children,m=V.setRef,y=$.useCallback(function(h){m(h)},[]);return $.cloneElement(Le,{ref:y})}function Ce(V,Le,m,y,h,a,b,U){var E=U.getKey;return V.slice(Le,m+1).map(function(l,p){var o=Le+p,c=b(l,o,{style:{width:y},offsetX:h}),_=E(l);return $.createElement(z,{key:_,setRef:function(F){return a(l,F)}},c)})}function K(V,Le,m,y){var h=m-V,a=Le-m,b=Math.min(h,a)*2;if(y<=b){var U=Math.floor(y/2);return y%2?m+U+1:m-U}return h>a?m-(y-a):m+(y-h)}function T(V,Le,m){var y=V.length,h=Le.length,a,b;if(y===0&&h===0)return null;y<h?(a=V,b=Le):(a=Le,b=V);var U={__EMPTY_ITEM__:!0};function E(L){return L!==void 0?m(L):U}for(var l=null,p=Math.abs(y-h)!==1,o=0;o<b.length;o+=1){var c=E(a[o]),_=E(b[o]);if(c!==_){l=o,p=p||c!==E(b[o+1]);break}}return l===null?null:{index:l,multiple:p}}function M(V,Le,m){var y=$.useState(V),h=(0,A.Z)(y,2),a=h[0],b=h[1],U=$.useState(null),E=(0,A.Z)(U,2),l=E[0],p=E[1];return $.useEffect(function(){var o=T(a||[],V||[],Le);(o==null?void 0:o.index)!==void 0&&(m==null||m(o.index),p(V[o.index])),b(V)},[V]),[l]}var u=i(16089),S=(typeof navigator=="undefined"?"undefined":(0,x.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),N=S,k=function(V,Le,m,y){var h=(0,$.useRef)(!1),a=(0,$.useRef)(null);function b(){clearTimeout(a.current),h.current=!0,a.current=setTimeout(function(){h.current=!1},50)}var U=(0,$.useRef)({top:V,bottom:Le,left:m,right:y});return U.current.top=V,U.current.bottom=Le,U.current.left=m,U.current.right=y,function(E,l){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=E?l<0&&U.current.left||l>0&&U.current.right:l<0&&U.current.top||l>0&&U.current.bottom;return p&&o?(clearTimeout(a.current),h.current=!1):(!o||h.current)&&b(),!h.current&&o}};function I(V,Le,m,y,h,a,b){var U=(0,$.useRef)(0),E=(0,$.useRef)(null),l=(0,$.useRef)(null),p=(0,$.useRef)(!1),o=k(Le,m,y,h);function c(he,G){if(u.Z.cancel(E.current),!o(!1,G)){var Re=he;if(!Re._virtualHandled)Re._virtualHandled=!0;else return;U.current+=G,l.current=G,N||Re.preventDefault(),E.current=(0,u.Z)(function(){var Ne=p.current?10:1;b(U.current*Ne,!1),U.current=0})}}function _(he,G){b(G,!0),N||he.preventDefault()}var L=(0,$.useRef)(null),F=(0,$.useRef)(null);function fe(he){if(V){u.Z.cancel(F.current),F.current=(0,u.Z)(function(){L.current=null},2);var G=he.deltaX,Re=he.deltaY,Ne=he.shiftKey,W=G,Be=Re;(L.current==="sx"||!L.current&&Ne&&Re&&!G)&&(W=Re,Be=0,L.current="sx");var Xe=Math.abs(W),Ze=Math.abs(Be);L.current===null&&(L.current=a&&Xe>Ze?"x":"y"),L.current==="y"?c(he,Be):_(he,W)}}function ae(he){V&&(p.current=he.detail===l.current)}return[fe,ae]}function ne(V,Le,m,y){var h=$.useMemo(function(){return[new Map,[]]},[V,m.id,y]),a=(0,A.Z)(h,2),b=a[0],U=a[1],E=function(p){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p,c=b.get(p),_=b.get(o);if(c===void 0||_===void 0)for(var L=V.length,F=U.length;F<L;F+=1){var fe,ae=V[F],he=Le(ae);b.set(he,F);var G=(fe=m.get(he))!==null&&fe!==void 0?fe:y;if(U[F]=(U[F-1]||0)+G,he===p&&(c=F),he===o&&(_=F),c!==void 0&&_!==void 0)break}return{top:U[c-1]||0,bottom:U[_]}};return E}var X=i(38705),ue=i(17212),D=function(){function V(){(0,X.Z)(this,V),(0,Q.Z)(this,"maps",void 0),(0,Q.Z)(this,"id",0),(0,Q.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,ue.Z)(V,[{key:"set",value:function(m,y){this.diffRecords.set(m,this.maps[m]),this.maps[m]=y,this.id+=1}},{key:"get",value:function(m){return this.maps[m]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),V}(),xe=D;function R(V){var Le=parseFloat(V);return isNaN(Le)?0:Le}function P(V,Le,m){var y=$.useState(0),h=(0,A.Z)(y,2),a=h[0],b=h[1],U=(0,$.useRef)(new Map),E=(0,$.useRef)(new xe),l=(0,$.useRef)(0);function p(){l.current+=1}function o(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;p();var L=function(){var ae=!1;U.current.forEach(function(he,G){if(he&&he.offsetParent){var Re=he.offsetHeight,Ne=getComputedStyle(he),W=Ne.marginTop,Be=Ne.marginBottom,Xe=R(W),Ze=R(Be),He=Re+Xe+Ze;E.current.get(G)!==He&&(E.current.set(G,He),ae=!0)}}),ae&&b(function(he){return he+1})};if(_)L();else{l.current+=1;var F=l.current;Promise.resolve().then(function(){F===l.current&&L()})}}function c(_,L){var F=V(_),fe=U.current.get(F);L?(U.current.set(F,L),o()):U.current.delete(F),!fe!=!L&&(L?Le==null||Le(_):m==null||m(_))}return(0,$.useEffect)(function(){return p},[]),[c,o,E.current,a]}var v=14/15;function B(V,Le,m){var y=(0,$.useRef)(!1),h=(0,$.useRef)(0),a=(0,$.useRef)(0),b=(0,$.useRef)(null),U=(0,$.useRef)(null),E,l=function(_){if(y.current){var L=Math.ceil(_.touches[0].pageX),F=Math.ceil(_.touches[0].pageY),fe=h.current-L,ae=a.current-F,he=Math.abs(fe)>Math.abs(ae);he?h.current=L:a.current=F;var G=m(he,he?fe:ae,!1,_);G&&_.preventDefault(),clearInterval(U.current),G&&(U.current=setInterval(function(){he?fe*=v:ae*=v;var Re=Math.floor(he?fe:ae);(!m(he,Re,!0)||Math.abs(Re)<=.1)&&clearInterval(U.current)},16))}},p=function(){y.current=!1,E()},o=function(_){E(),_.touches.length===1&&!y.current&&(y.current=!0,h.current=Math.ceil(_.touches[0].pageX),a.current=Math.ceil(_.touches[0].pageY),b.current=_.target,b.current.addEventListener("touchmove",l,{passive:!1}),b.current.addEventListener("touchend",p,{passive:!0}))};E=function(){b.current&&(b.current.removeEventListener("touchmove",l),b.current.removeEventListener("touchend",p))},(0,ce.Z)(function(){return V&&Le.current.addEventListener("touchstart",o,{passive:!0}),function(){var c;(c=Le.current)===null||c===void 0||c.removeEventListener("touchstart",o),E(),clearInterval(U.current)}},[V])}function pe(V){return Math.floor(Math.pow(V,.5))}function H(V,Le){var m="touches"in V?V.touches[0]:V;return m[Le?"pageX":"pageY"]-window[Le?"scrollX":"scrollY"]}function le(V,Le,m){$.useEffect(function(){var y=Le.current;if(V&&y){var h=!1,a,b,U=function(){u.Z.cancel(a)},E=function c(){U(),a=(0,u.Z)(function(){m(b),c()})},l=function(){h=!1,U()},p=function(_){if(!(_.target.draggable||_.button!==0)){var L=_;L._virtualHandled||(L._virtualHandled=!0,h=!0)}},o=function(_){if(h){var L=H(_,!1),F=y.getBoundingClientRect(),fe=F.top,ae=F.bottom;if(L<=fe){var he=fe-L;b=-pe(he),E()}else if(L>=ae){var G=L-ae;b=pe(G),E()}else U()}};return y.addEventListener("mousedown",p),y.ownerDocument.addEventListener("mouseup",l),y.ownerDocument.addEventListener("mousemove",o),y.ownerDocument.addEventListener("dragend",l),function(){y.removeEventListener("mousedown",p),y.ownerDocument.removeEventListener("mouseup",l),y.ownerDocument.removeEventListener("mousemove",o),y.ownerDocument.removeEventListener("dragend",l),U()}}},[V])}var Y=10;function w(V,Le,m,y,h,a,b,U){var E=$.useRef(),l=$.useState(null),p=(0,A.Z)(l,2),o=p[0],c=p[1];return(0,ce.Z)(function(){if(o&&o.times<Y){if(!V.current){c(function(Et){return(0,Z.Z)({},Et)});return}a();var _=o.targetAlign,L=o.originAlign,F=o.index,fe=o.offset,ae=V.current.clientHeight,he=!1,G=_,Re=null;if(ae){for(var Ne=_||L,W=0,Be=0,Xe=0,Ze=Math.min(Le.length-1,F),He=0;He<=Ze;He+=1){var rt=h(Le[He]);Be=W;var _t=m.get(rt);Xe=Be+(_t===void 0?y:_t),W=Xe}for(var ct=Ne==="top"?fe:ae-fe,st=Ze;st>=0;st-=1){var mt=h(Le[st]),Ue=m.get(mt);if(Ue===void 0){he=!0;break}if(ct-=Ue,ct<=0)break}switch(Ne){case"top":Re=Be-fe;break;case"bottom":Re=Xe-ae+fe;break;default:{var Fe=V.current.scrollTop,tt=Fe+ae;Be<Fe?G="top":Xe>tt&&(G="bottom")}}Re!==null&&b(Re),Re!==o.lastTop&&(he=!0)}he&&c((0,Z.Z)((0,Z.Z)({},o),{},{times:o.times+1,targetAlign:G,lastTop:Re}))}},[o,V.current]),function(_){if(_==null){U();return}if(u.Z.cancel(E.current),typeof _=="number")b(_);else if(_&&(0,x.Z)(_)==="object"){var L,F=_.align;"index"in _?L=_.index:L=Le.findIndex(function(he){return h(he)===_.key});var fe=_.offset,ae=fe===void 0?0:fe;c({times:0,index:L,offset:ae,originAlign:F})}}}var j=$.forwardRef(function(V,Le){var m=V.prefixCls,y=V.rtl,h=V.scrollOffset,a=V.scrollRange,b=V.onStartMove,U=V.onStopMove,E=V.onScroll,l=V.horizontal,p=V.spinSize,o=V.containerSize,c=V.style,_=V.thumbStyle,L=V.showScrollBar,F=$.useState(!1),fe=(0,A.Z)(F,2),ae=fe[0],he=fe[1],G=$.useState(null),Re=(0,A.Z)(G,2),Ne=Re[0],W=Re[1],Be=$.useState(null),Xe=(0,A.Z)(Be,2),Ze=Xe[0],He=Xe[1],rt=!y,_t=$.useRef(),ct=$.useRef(),st=$.useState(L),mt=(0,A.Z)(st,2),Ue=mt[0],Fe=mt[1],tt=$.useRef(),Et=function(){L===!0||L===!1||(clearTimeout(tt.current),Fe(!0),tt.current=setTimeout(function(){Fe(!1)},3e3))},vt=a-o||0,xt=o-p||0,Ot=$.useMemo(function(){if(h===0||vt===0)return 0;var n=h/vt;return n*xt},[h,vt,xt]),gt=function(r){r.stopPropagation(),r.preventDefault()},Rt=$.useRef({top:Ot,dragging:ae,pageY:Ne,startTop:Ze});Rt.current={top:Ot,dragging:ae,pageY:Ne,startTop:Ze};var it=function(r){he(!0),W(H(r,l)),He(Rt.current.top),b(),r.stopPropagation(),r.preventDefault()};$.useEffect(function(){var n=function(O){O.preventDefault()},r=_t.current,s=ct.current;return r.addEventListener("touchstart",n,{passive:!1}),s.addEventListener("touchstart",it,{passive:!1}),function(){r.removeEventListener("touchstart",n),s.removeEventListener("touchstart",it)}},[]);var at=$.useRef();at.current=vt;var Ve=$.useRef();Ve.current=xt,$.useEffect(function(){if(ae){var n,r=function(O){var we=Rt.current,Se=we.dragging,De=we.pageY,Qe=we.startTop;u.Z.cancel(n);var ot=_t.current.getBoundingClientRect(),Ke=o/(l?ot.width:ot.height);if(Se){var ut=(H(O,l)-De)*Ke,We=Qe;!rt&&l?We-=ut:We+=ut;var Oe=at.current,$e=Ve.current,nt=$e?We/$e:0,qe=Math.ceil(nt*Oe);qe=Math.max(qe,0),qe=Math.min(qe,Oe),n=(0,u.Z)(function(){E(qe,l)})}},s=function(){he(!1),U()};return window.addEventListener("mousemove",r,{passive:!0}),window.addEventListener("touchmove",r,{passive:!0}),window.addEventListener("mouseup",s,{passive:!0}),window.addEventListener("touchend",s,{passive:!0}),function(){window.removeEventListener("mousemove",r),window.removeEventListener("touchmove",r),window.removeEventListener("mouseup",s),window.removeEventListener("touchend",s),u.Z.cancel(n)}}},[ae]),$.useEffect(function(){return Et(),function(){clearTimeout(tt.current)}},[h]),$.useImperativeHandle(Le,function(){return{delayHidden:Et}});var me="".concat(m,"-scrollbar"),e={position:"absolute",visibility:Ue?null:"hidden"},t={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return l?(Object.assign(e,{height:8,left:0,right:0,bottom:0}),Object.assign(t,(0,Q.Z)({height:"100%",width:p},rt?"left":"right",Ot))):(Object.assign(e,(0,Q.Z)({width:8,top:0,bottom:0},rt?"right":"left",0)),Object.assign(t,{width:"100%",height:p,top:Ot})),$.createElement("div",{ref:_t,className:se()(me,(0,Q.Z)((0,Q.Z)((0,Q.Z)({},"".concat(me,"-horizontal"),l),"".concat(me,"-vertical"),!l),"".concat(me,"-visible"),Ue)),style:(0,Z.Z)((0,Z.Z)({},e),c),onMouseDown:gt,onMouseMove:Et},$.createElement("div",{ref:ct,className:se()("".concat(me,"-thumb"),(0,Q.Z)({},"".concat(me,"-thumb-moving"),ae)),style:(0,Z.Z)((0,Z.Z)({},t),_),onMouseDown:it}))}),J=j,ie=20;function ge(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,m=V/Le*V;return isNaN(m)&&(m=0),m=Math.max(m,ie),Math.floor(m)}var Te=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Pe=[],Ie={overflowY:"auto",overflowAnchor:"none"};function Je(V,Le){var m=V.prefixCls,y=m===void 0?"rc-virtual-list":m,h=V.className,a=V.height,b=V.itemHeight,U=V.fullHeight,E=U===void 0?!0:U,l=V.style,p=V.data,o=V.children,c=V.itemKey,_=V.virtual,L=V.direction,F=V.scrollWidth,fe=V.component,ae=fe===void 0?"div":fe,he=V.onScroll,G=V.onVirtualScroll,Re=V.onVisibleChange,Ne=V.innerProps,W=V.extraRender,Be=V.styles,Xe=V.showScrollBar,Ze=Xe===void 0?"optional":Xe,He=(0,f.Z)(V,Te),rt=$.useCallback(function(lt){return typeof c=="function"?c(lt):lt==null?void 0:lt[c]},[c]),_t=P(rt,null,null),ct=(0,A.Z)(_t,4),st=ct[0],mt=ct[1],Ue=ct[2],Fe=ct[3],tt=!!(_!==!1&&a&&b),Et=$.useMemo(function(){return Object.values(Ue.maps).reduce(function(lt,et){return lt+et},0)},[Ue.id,Ue.maps]),vt=tt&&p&&(Math.max(b*p.length,Et)>a||!!F),xt=L==="rtl",Ot=se()(y,(0,Q.Z)({},"".concat(y,"-rtl"),xt),h),gt=p||Pe,Rt=(0,$.useRef)(),it=(0,$.useRef)(),at=(0,$.useRef)(),Ve=(0,$.useState)(0),me=(0,A.Z)(Ve,2),e=me[0],t=me[1],n=(0,$.useState)(0),r=(0,A.Z)(n,2),s=r[0],C=r[1],O=(0,$.useState)(!1),we=(0,A.Z)(O,2),Se=we[0],De=we[1],Qe=function(){De(!0)},ot=function(){De(!1)},Ke={getKey:rt};function ut(lt){t(function(et){var Ct;typeof lt=="function"?Ct=lt(et):Ct=lt;var $t=yt(Ct);return Rt.current.scrollTop=$t,$t})}var We=(0,$.useRef)({start:0,end:gt.length}),Oe=(0,$.useRef)(),$e=M(gt,rt),nt=(0,A.Z)($e,1),qe=nt[0];Oe.current=qe;var pt=$.useMemo(function(){if(!tt)return{scrollHeight:void 0,start:0,end:gt.length-1,offset:void 0};if(!vt){var lt;return{scrollHeight:((lt=it.current)===null||lt===void 0?void 0:lt.offsetHeight)||0,start:0,end:gt.length-1,offset:void 0}}for(var et=0,Ct,$t,Zt,dn=gt.length,qt=0;qt<dn;qt+=1){var Qt=gt[qt],on=rt(Qt),gn=Ue.get(on),hn=et+(gn===void 0?b:gn);hn>=e&&Ct===void 0&&(Ct=qt,$t=et),hn>e+a&&Zt===void 0&&(Zt=qt),et=hn}return Ct===void 0&&(Ct=0,$t=0,Zt=Math.ceil(a/b)),Zt===void 0&&(Zt=gt.length-1),Zt=Math.min(Zt+1,gt.length-1),{scrollHeight:et,start:Ct,end:Zt,offset:$t}},[vt,tt,e,gt,Fe,a]),Tt=pt.scrollHeight,It=pt.start,Ye=pt.end,St=pt.offset;We.current.start=It,We.current.end=Ye,$.useLayoutEffect(function(){var lt=Ue.getRecord();if(lt.size===1){var et=Array.from(lt.keys())[0],Ct=lt.get(et),$t=gt[It];if($t&&Ct===void 0){var Zt=rt($t);if(Zt===et){var dn=Ue.get(et),qt=dn-b;ut(function(Qt){return Qt+qt})}}}Ue.resetRecord()},[Tt]);var re=$.useState({width:0,height:a}),ee=(0,A.Z)(re,2),ve=ee[0],Ae=ee[1],ye=function(et){Ae({width:et.offsetWidth,height:et.offsetHeight})},Ee=(0,$.useRef)(),_e=(0,$.useRef)(),je=$.useMemo(function(){return ge(ve.width,F)},[ve.width,F]),ft=$.useMemo(function(){return ge(ve.height,Tt)},[ve.height,Tt]),dt=Tt-a,bt=(0,$.useRef)(dt);bt.current=dt;function yt(lt){var et=lt;return Number.isNaN(bt.current)||(et=Math.min(et,bt.current)),et=Math.max(et,0),et}var wt=e<=0,Nt=e>=dt,Dt=s<=0,zt=s>=F,Ht=k(wt,Nt,Dt,zt),Ut=function(){return{x:xt?-s:s,y:e}},Mt=(0,$.useRef)(Ut()),Lt=(0,be.useEvent)(function(lt){if(G){var et=(0,Z.Z)((0,Z.Z)({},Ut()),lt);(Mt.current.x!==et.x||Mt.current.y!==et.y)&&(G(et),Mt.current=et)}});function At(lt,et){var Ct=lt;et?((0,d.flushSync)(function(){C(Ct)}),Lt()):ut(Ct)}function Ft(lt){var et=lt.currentTarget.scrollTop;et!==e&&ut(et),he==null||he(lt),Lt()}var Pt=function(et){var Ct=et,$t=F?F-ve.width:0;return Ct=Math.max(Ct,0),Ct=Math.min(Ct,$t),Ct},Gt=(0,be.useEvent)(function(lt,et){et?((0,d.flushSync)(function(){C(function(Ct){var $t=Ct+(xt?-lt:lt);return Pt($t)})}),Lt()):ut(function(Ct){var $t=Ct+lt;return $t})}),Bt=I(tt,wt,Nt,Dt,zt,!!F,Gt),tn=(0,A.Z)(Bt,2),Kt=tn[0],Jt=tn[1];B(tt,Rt,function(lt,et,Ct,$t){var Zt=$t;return Ht(lt,et,Ct)?!1:!Zt||!Zt._virtualHandled?(Zt&&(Zt._virtualHandled=!0),Kt({preventDefault:function(){},deltaX:lt?et:0,deltaY:lt?0:et}),!0):!1}),le(vt,Rt,function(lt){ut(function(et){return et+lt})}),(0,ce.Z)(function(){function lt(Ct){var $t=wt&&Ct.detail<0,Zt=Nt&&Ct.detail>0;tt&&!$t&&!Zt&&Ct.preventDefault()}var et=Rt.current;return et.addEventListener("wheel",Kt,{passive:!1}),et.addEventListener("DOMMouseScroll",Jt,{passive:!0}),et.addEventListener("MozMousePixelScroll",lt,{passive:!1}),function(){et.removeEventListener("wheel",Kt),et.removeEventListener("DOMMouseScroll",Jt),et.removeEventListener("MozMousePixelScroll",lt)}},[tt,wt,Nt]),(0,ce.Z)(function(){if(F){var lt=Pt(s);C(lt),Lt({x:lt})}},[ve.width,F]);var Xt=function(){var et,Ct;(et=Ee.current)===null||et===void 0||et.delayHidden(),(Ct=_e.current)===null||Ct===void 0||Ct.delayHidden()},Yt=w(Rt,gt,Ue,b,rt,function(){return mt(!0)},ut,Xt);$.useImperativeHandle(Le,function(){return{nativeElement:at.current,getScrollInfo:Ut,scrollTo:function(et){function Ct($t){return $t&&(0,x.Z)($t)==="object"&&("left"in $t||"top"in $t)}Ct(et)?(et.left!==void 0&&C(Pt(et.left)),Yt(et.top)):Yt(et)}}}),(0,ce.Z)(function(){if(Re){var lt=gt.slice(It,Ye+1);Re(lt,gt)}},[It,Ye,gt]);var nn=ne(gt,rt,Ue,b),rn=W==null?void 0:W({start:It,end:Ye,virtual:vt,offsetX:s,offsetY:St,rtl:xt,getSize:nn}),fn=Ce(gt,It,Ye,F,s,st,o,Ke),Wt=null;a&&(Wt=(0,Z.Z)((0,Q.Z)({},E?"height":"maxHeight",a),Ie),tt&&(Wt.overflowY="hidden",F&&(Wt.overflowX="hidden"),Se&&(Wt.pointerEvents="none")));var an={};return xt&&(an.dir="rtl"),$.createElement("div",(0,g.Z)({ref:at,style:(0,Z.Z)((0,Z.Z)({},l),{},{position:"relative"}),className:Ot},an,He),$.createElement(oe.Z,{onResize:ye},$.createElement(ae,{className:"".concat(y,"-holder"),style:Wt,ref:Rt,onScroll:Ft,onMouseEnter:Xt},$.createElement(q,{prefixCls:y,height:Tt,offsetX:s,offsetY:St,scrollWidth:F,onInnerResize:mt,ref:it,innerProps:Ne,rtl:xt,extra:rn},fn))),vt&&Tt>a&&$.createElement(J,{ref:Ee,prefixCls:y,scrollOffset:e,scrollRange:Tt,rtl:xt,onScroll:At,onStartMove:Qe,onStopMove:ot,spinSize:ft,containerSize:ve.height,style:Be==null?void 0:Be.verticalScrollBar,thumbStyle:Be==null?void 0:Be.verticalScrollBarThumb,showScrollBar:Ze}),vt&&F>ve.width&&$.createElement(J,{ref:_e,prefixCls:y,scrollOffset:s,scrollRange:F,rtl:xt,onScroll:At,onStartMove:Qe,onStopMove:ot,spinSize:je,containerSize:ve.width,horizontal:!0,style:Be==null?void 0:Be.horizontalScrollBar,thumbStyle:Be==null?void 0:Be.horizontalScrollBarThumb,showScrollBar:Ze}))}var ke=$.forwardRef(Je);ke.displayName="List";var ze=ke,Ge=ze},82059:function(ht){var Me=arguments[3],i=arguments[4],g=arguments[5],x=JSON.stringify;ht.exports=function(Z,Q){for(var A,f=Object.keys(g),de=0,se=f.length;de<se;de++){var oe=f[de],be=g[oe].exports;if(be===Z||be&&be.default===Z){A=oe;break}}if(!A){A=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var ce={},de=0,se=f.length;de<se;de++){var oe=f[de];ce[oe]=oe}i[A]=["function(require,module,exports){"+Z+"(self); }",ce]}var $=Math.floor(Math.pow(16,8)*Math.random()).toString(16),d={};d[A]=A,i[$]=["function(require,module,exports){var f = require("+x(A)+");(f.default ? f.default : f)(self);}",d];var te={};q($);function q(u){te[u]=!0;for(var S in i[u][1]){var N=i[u][1][S];te[N]||q(N)}}var z="("+Me+")({"+Object.keys(te).map(function(u){return x(u)+":["+i[u][0]+","+x(i[u][1])+"]"}).join(",")+"},{},["+x($)+"])",Ce=window.URL||window.webkitURL||window.mozURL||window.msURL,K=new Blob([z],{type:"text/javascript"});if(Q&&Q.bare)return K;var T=Ce.createObjectURL(K),M=new Worker(T);return M.objectURL=T,M}}}]);
|