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(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return se}});var g=i(14809),x=i(59301),F={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=F,A=i(7657),f=function(_e,ue){return x.createElement(A.Z,(0,g.Z)({},_e,{ref:ue,icon:q}))},ce=x.forwardRef(f),se=ce},52671:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return se}});var g=i(14809),x=i(59301),F={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=F,A=i(7657),f=function(_e,ue){return x.createElement(A.Z,(0,g.Z)({},_e,{ref:ue,icon:q}))},ce=x.forwardRef(f),se=ce},8657:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return se}});var g=i(14809),x=i(59301),F={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=F,A=i(7657),f=function(_e,ue){return x.createElement(A.Z,(0,g.Z)({},_e,{ref:ue,icon:q}))},ce=x.forwardRef(f),se=ce},56082:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return se}});var g=i(14809),x=i(59301),F={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=F,A=i(7657),f=function(_e,ue){return x.createElement(A.Z,(0,g.Z)({},_e,{ref:ue,icon:q}))},ce=x.forwardRef(f),se=ce},33853:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return se}});var g=i(14809),x=i(59301),F={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=F,A=i(7657),f=function(_e,ue){return x.createElement(A.Z,(0,g.Z)({},_e,{ref:ue,icon:q}))},ce=x.forwardRef(f),se=ce},15075:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return se}});var g=i(14809),x=i(59301),F={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=F,A=i(7657),f=function(_e,ue){return x.createElement(A.Z,(0,g.Z)({},_e,{ref:ue,icon:q}))},ce=x.forwardRef(f),se=ce},43531:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return se}});var g=i(14809),x=i(59301),F={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=F,A=i(7657),f=function(_e,ue){return x.createElement(A.Z,(0,g.Z)({},_e,{ref:ue,icon:q}))},ce=x.forwardRef(f),se=ce},38819:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return se}});var g=i(14809),x=i(59301),F={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=F,A=i(7657),f=function(_e,ue){return x.createElement(A.Z,(0,g.Z)({},_e,{ref:ue,icon:q}))},ce=x.forwardRef(f),se=ce},3736:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return te}});var g=i(59301),x=i(8591),F=i(38854),q=i(30647),A=i(15360),f=i(48790),ce=i(56102),se=i(84989),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"},_e=(Z,Ee,K)=>new Promise((T,M)=>{var u=k=>{try{N(K.next(k))}catch(w){M(w)}},C=k=>{try{N(K.throw(k))}catch(w){M(w)}},N=k=>k.done?T(k.value):Promise.resolve(k.value).then(u,C);N((K=K.apply(Z,Ee)).next())});function ue(Z){if(isNaN(Z))return{minutes:"00",seconds:"00"};const Ee=new Date(Z*1e3).toISOString().substr(11,8);return{hour:Ee.substr(0,2),minutes:Ee.substr(3,2),seconds:Ee.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function $(Z,Ee){return Z-Ee}function d(Z){Z.sort($);let Ee=0;for(let K=0;K<Z.length-1;K++){let T=Math.abs(Z[K+1]-Z[K]);T<21&&(Ee+=T)}return Ee}const re=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var te=(0,g.forwardRef)(({allow_skip:Z,src:Ee,toLog:K,videoId:T,logWatchHistory:M,courseId:u=null,startTime:C,handlePause:N=()=>{},handlePlay:k=()=>{},handlePlayEnded:w=()=>{},autoPlay:ne=!1,onPlayEnded:Q=()=>{},isShowWaterMark:he=!0},D)=>{var be;const P=((be=Ee==null?void 0:Ee.split("."))==null?void 0:be.pop())==="flv",v=(0,g.useRef)(),B=(0,g.useRef)(),ve=(0,g.useRef)(),H=(0,g.useRef)(),le=(0,g.useRef)(),J=(0,g.useRef)(),O=(0,g.useRef)(),V=(0,g.useRef)(),ee=(0,g.useRef)(),ie=(0,g.useRef)(),ge=(0,g.useRef)(),Ae=(0,g.useRef)(),Pe=(0,g.useRef)(),xe=(0,g.useRef)(),Je=navigator.userAgent.toLowerCase().match(re),ke=Je?Je[0]:"pc",ze=(0,g.useRef)(!1),je=(0,f.eY)();let G=0,we=0,h=0,y=null,m=!1,a=20,b=1,z=!1,E=!1,l=[];(0,g.useImperativeHandle)(D,()=>({getLastUpdatedTime:()=>v.current.currentTime,getDuration:()=>v.current.duration})),x.ZP.config({maxCount:1,getContainer:()=>ve.current});const p=(0,g.useCallback)((ae,me=!1)=>{let Y={point:v.current.currentTime};y?(Y.log_id=y,Y.watch_duration=d(l),Y.total_duration=we):(u?(Y.video_id=parseInt(T,10),Y.course_id=u):Y.video_id=T,Y.duration=G,Y.device=ke),me&&(Y.ed="1");function Ce(){return _e(this,null,function*(){z=!0,y=yield M==null?void 0:M(Y),z=!1,ae&&ae()})}Ce()},[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&&Ee&&(Ee==null?void 0:Ee.indexOf(".m3u8"))<0?(ae=q.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:Ee,muted:!1}),v.current&&(ae.attachMediaElement(v.current),ae.load())):v.current.setAttribute("src",Ee),c(),()=>{ae&&(ae.unload(),ae.pause(),ae.destroy(),ae=null)}},[v,P,Ee]);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",Ae.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":Ae.current.style.display="block"}(0,g.useEffect)(()=>{const ae=document.getElementById("play"),me=document.querySelectorAll(".playback-icons use");function Y(){k(),C&&!ze.current&&(v.current.currentTime=C),ze.current=!0,l.push(v.current.currentTime),m||(m=!0,K&&p())}function Ce(){return _e(this,null,function*(){o(),l.push(v.current.currentTime),K&&p(()=>{y=null,h=0,m=!1,z=!1,E=!1,l=[],we=0,b=1},!0),Q()})}function Te(){J.current.value=Math.round(v.current.currentTime),O.current.value=Math.round(v.current.currentTime)}function X(){const Ke=ue(Math.round(v.current.currentTime));ee.current.innerText=`${Ke.hour>0?Ke.hour+":":""}${Ke.minutes}:${Ke.seconds}`,ee.current.setAttribute("datetime",`${Ke.hour>0?" "+Ke.hour+" ":""}${Ke.minutes}m ${Ke.seconds}s`)}function Be(){var Ke,rt,Et,mt,Ct,At,ht;const Rt=Math.round((Ke=v.current)==null?void 0:Ke.duration);(Et=(rt=J.current)==null?void 0:rt.setAttribute)==null||Et.call(rt,"max",Rt),(Ct=(mt=O.current)==null?void 0:mt.setAttribute)==null||Ct.call(mt,"max",Rt);const it=ue(Rt);V.current&&(V.current.innerText=`${it.hour>0?it.hour+":":""}${it.minutes}:${it.seconds}`,(ht=(At=V.current).setAttribute)==null||ht.call(At,"datetime",`${it.hour>0?" "+it.hour+" ":""}${it.minutes}m ${it.seconds}s`))}function Ge(){try{const Ke=Math.round(v.current.duration);J.current.setAttribute("max",Ke),O.current.setAttribute("max",Ke);const rt=ue(Ke);V.current.innerText=`${rt.hour>0?rt.hour+":":""}${rt.minutes}:${rt.seconds}`,V.current.setAttribute("datetime",`${rt.hour>0?" "+rt.hour+" ":""}${rt.minutes}m ${rt.seconds}s`),Te(),X();const{width:Et,height:mt,x:Ct,y:At}=B.current.getBoundingClientRect();if(Ct<0||At<0||!Et)return;if(!E){let ht=v.current.currentTime,Rt=ht-h;Math.abs(Rt)<10?(we+=Math.abs(Rt),h=ht,z||we-b*a>=0&&(b++,l.push(h),K&&p())):(h=ht,K&&p())}}catch(Ke){console.log(Ke)}}function Fe(){E=!0}function Ve(){v.current.playing&&l.push(v.current.currentTime,h),h=v.current.currentTime,E=!1}function nt(){G=v.current.duration,G<=20&&(a=G/3),v.current.addEventListener("play",Y)}function yt(Ke){Ke.preventDefault(),(0,se.vp)()?(v.current.style.width="100%",v.current.style.height="100%"):v.current.style.cssText=""}function st(){N()}function lt(Ke){if(!Z){x.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const rt=Ke.target.dataset.seek?Ke.target.dataset.seek:Ke.target.value;v.current.currentTime=rt,O.current.value=rt,J.current.value=rt}function pt(Ke){const rt=Math.round(Ke.offsetX/Ke.target.clientWidth*parseInt(Ke.target.getAttribute("max"),10));J.current.setAttribute("data-seek",rt);const Et=ue(rt);ie.current.textContent=`${Et.hour>0?Et.hour+":":""}${Et.minutes}:${Et.seconds}`;const mt=v.current.getBoundingClientRect();ie.current.style.left=`${Ke.pageX-mt.left}px`}function Ue(Ke){switch(Ke.code){case"Space":Ke.preventDefault(),U();break;case"ArrowRight":if(Ke.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,Te();break;case"ArrowLeft":if(Ke.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,Te();break;case"ArrowUp":Ke.preventDefault(),v.current.volume<1&&(v.current.volume=(parseInt(v.current.volume*10)+1)/10);break;case"ArrowDown":Ke.preventDefault(),v.current.volume>0&&(v.current.volume=(parseInt(v.current.volume*10)-1)/10);break}}return ve.current.addEventListener((0,se.gH)(),yt),v.current.addEventListener("canplay",nt),v.current.addEventListener("ended",Ce),v.current.addEventListener("seeking",Fe),v.current.addEventListener("seeked",Ve),v.current.addEventListener("loadedmetadata",Be),J.current.addEventListener("mousemove",pt),J.current.addEventListener("input",lt),v.current.addEventListener("timeupdate",Ge),v.current.addEventListener("pause",st),v.current.addEventListener("volumechange",c),document.addEventListener("keydown",Ue),()=>{var Ke,rt,Et,mt,Ct,At,ht,Rt,it,dt,He,pe;(Ke=v.current)==null||Ke.removeEventListener("canplay",nt),(rt=v.current)==null||rt.removeEventListener("play",Y),(Et=v.current)==null||Et.removeEventListener("ended",Ce),(mt=v.current)==null||mt.removeEventListener("seeking",Fe),(Ct=v.current)==null||Ct.removeEventListener("seeked",Ve),(At=J.current)==null||At.removeEventListener("mousemove",pt),(ht=J.current)==null||ht.removeEventListener("input",lt),(Rt=v.current)==null||Rt.removeEventListener("timeupdate",Ge),(it=v.current)==null||it.removeEventListener("pause",st),(dt=v.current)==null||dt.removeEventListener("loadedmetadata",Be),(He=v.current)==null||He.removeEventListener("volumechange",c),document.removeEventListener("keydown",Ue),(pe=v.current)!=null&&pe.playing&&(l.push(h,v.current.currentTime),K&&p())}},[v,Ee]),(0,g.useEffect)(()=>{if(v.current.onended=()=>{w(v)},v.current.oncontextmenu=()=>!1,(Ee==null?void 0:Ee.indexOf(".m3u8"))>-1){if(v.current.canPlayType("application/vnd.apple.mpegurl"))v.current.src=Ee;else if(A.ZP.isSupported()){var ae=new A.ZP;ae.loadSource(Ee),ae.attachMedia(v.current)}}},[Ee]);const[_,I]=(0,g.useState)(1),U=()=>{v.current.paused||v.current.ended?v.current.play():v.current.pause(),o()};function fe(){v.current.muted=!v.current.muted,v.current.muted?(xe.current.setAttribute("data-volume",volume.value),xe.current.value=0):xe.current.value=xe.current.dataset.volume}return g.createElement("div",{style:{position:"relative"},ref:ve},g.createElement("div",{ref:B,className:`${oe.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${oe.animate__loop}`},he&&je?je.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:U},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:ee},"00:00"),g.createElement("span",null," / "),g.createElement("time",{id:"duration",ref:V},"00:00"))),g.createElement("div",{className:oe["right-controls"]},Z&&g.createElement(F.Z,{placement:"top",overlayClassName:oe.rateOverlay,getPopupContainer:ae=>ae.parentNode,menu:{items:[{key:"1",label:g.createElement("span",{onClick:()=>{I(1),v.current.playbackRate=1}},"1.0x")},{key:"2",label:g.createElement("span",{onClick:()=>{I(1.5),v.current.playbackRate=1.5}},"1.5x")},{key:"3",label:g.createElement("span",{onClick:()=>{I(2),v.current.playbackRate=2}},"2.0x")}]}},g.createElement("div",{className:`${oe.controlText} mr5`},"\u500D\u901F")),g.createElement(ce.CopyToClipboard,{text:Ee,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:Ae,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:xe,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)(ve.current)}},g.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),g.createElement("div",{className:oe["video-progress"]},g.createElement("progress",{ref:O,value:"0",min:"0"}),g.createElement("input",{className:oe.seek,ref:J,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"})))))})},37808:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return x}});var g=i(59301);function x(F,q){const A=(0,g.useRef)();(0,g.useEffect)(()=>{A.current=F}),(0,g.useEffect)(()=>{function f(){A.current()}if(q!==null){let ce=setInterval(f,q);return()=>clearInterval(ce)}},[q])}},62904:function(vt,Ne,i){"use strict";i.r(Ne),i.d(Ne,{default:function(){return o},formatQuery:function(){return l}});var g=i(59301),x=i(25690),F=i(71418),q={bg:"bg___eq_Aq",container:"container___j770l",widthle:"widthle___ouh1T"},A=i(24334),f=i(3736),ce=i(43418),se=i(13570),oe=i(78673),_e=i(64165),ue={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(37808),d=i(69618),re=i(51257),te=i(59301),Z=Object.defineProperty,Ee=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,M=(c,_,I)=>_ in c?Z(c,_,{enumerable:!0,configurable:!0,writable:!0,value:I}):c[_]=I,u=(c,_)=>{for(var I in _||(_={}))K.call(_,I)&&M(c,I,_[I]);if(Ee)for(var I of Ee(_))T.call(_,I)&&M(c,I,_[I]);return c},C=(c,_)=>{var I={};for(var U in c)K.call(c,U)&&_.indexOf(U)<0&&(I[U]=c[U]);if(c!=null&&Ee)for(var U of Ee(c))_.indexOf(U)<0&&T.call(c,U)&&(I[U]=c[U]);return I},N=(c,_,I)=>new Promise((U,fe)=>{var ae=Ce=>{try{Y(I.next(Ce))}catch(Te){fe(Te)}},me=Ce=>{try{Y(I.throw(Ce))}catch(Te){fe(Te)}},Y=Ce=>Ce.done?U(Ce.value):Promise.resolve(Ce.value).then(ae,me);Y((I=I.apply(c,_)).next())});const k=c=>{var _=c,{videoDetail:I,globalSetting:U,loading:fe,dispatch:ae}=_,me=C(_,["videoDetail","globalSetting","loading","dispatch"]);const{queryParams:Y,selectParams:Ce,videoList:Te}=I,{subject_id:X,videoId:Be}=Y,{checkBoxValue:Ge,radioValue:Fe}=Ce,Ve={videoId:Be},nt={query:Y},yt=(0,g.useRef)(),st=(0,g.useRef)(),lt=(0,g.useRef)(),pt=(0,g.useRef)(5),{video_item:Ue}=I.detail||{};(0,$.Z)(()=>N(void 0,null,function*(){st.current&&(console.log("videoRef lastUpdatedTime: ",yt.current.getLastUpdatedTime()),console.log(yt.current),yield Ke())}),pt.current*1e3);const Ke=(it=!1)=>{const dt=it?{is_f:1}:{};return(0,d.DH)(u(u({},dt),{id:Ve.videoId,point:yt.current.getLastUpdatedTime(),total:yt.current.getDuration()}))},rt=it=>(it.ed==="1"&&(st.current=!1,Ke(!0)),!st.current&&!it.ed&&(st.current=!0,pt.current=yt.current.getDuration()<=5?1:5,Ke()),ae({type:"userDetail/logWatchHistory",payload:it})),Et=()=>{st.current=!1},mt=()=>{st.current=!0},Ct=()=>{lt.current=5,ce.default.confirm({width:600,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u8BF7\u7ED9\u672C\u89C6\u9891\u8BC4\u5206",content:te.createElement("div",{className:"tc font14"},te.createElement(se.Z,{defaultValue:lt.current,onChange:it=>lt.current=it,className:ue.modalRating})),onOk:()=>N(void 0,null,function*(){if((yield(0,d.jK)({id:Ve.videoId,star:lt.current})).status===0){const{course_id:dt}=(0,re.oP)();ae({type:"videoDetail/getVideoDetail",payload:{id:Ve.videoId,videoId:Ve.videoId,course_id:dt,subject_id:X}})}})})},At=it=>{const dt=window.filterVideoSign,He=dt.findIndex(s=>s.id===Be);if(He===dt.length-1)return;const e=dt[He+1].id,t=dt[He+1].can_view,n=dt[He+1].link,r=dt[He+1].is_public;if(window.checkBoxValue){if(n){window.open(n);return}if(!t){ce.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:te.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){ce.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:te.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)}},ht=(it,dt)=>{if(it==="checkBox"){const He=dt;window.checkBoxValue=He,ae({type:"videoDetail/setSelectValue",payload:{radioValue:Fe,checkBoxValue:He}});return}ae({type:"videoDetail/setSelectValue",payload:{checkBoxValue:Ge,radioValue:dt.target.value}})},Rt=()=>Te.findIndex(He=>He.id===Be)===Te.length-1?te.createElement("div",null,"\u5F53\u524D\u5DF2\u662F\u6700\u540E\u4E00\u4E2A\u89C6\u9891"):te.createElement("div",null,te.createElement(oe.Z,{onChange:He=>{ht("checkBox",He)},defaultChecked:Ge,size:"small"}),te.createElement("span",{className:ue.zdbf},"\u81EA\u52A8\u64AD\u653E\u4E0B\u4E00\u4E2A\u89C6\u9891"));return te.createElement("aside",{className:ue.contentWrap},te.createElement("aside",{className:ue.wrap},te.createElement("header",null),te.createElement("div",{className:ue.title},Ue==null?void 0:Ue.name),!(Ue!=null&&Ue.can_edit)&&!(Ue!=null&&Ue.is_public)?te.createElement(_e.Z,{description:"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85"}):te.createElement(f.Z,{ref:yt,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:rt,handlePause:Et,handlePlay:mt,allow_skip:Ue==null?void 0:Ue.allow_skip,handlePlayEnded:At,toLog:()=>{}}),te.createElement("div",{className:ue.footer},te.createElement("div",{className:ue.footer_left},te.createElement("div",{className:ue.pingfen},"\u8BC4\u5206"),te.createElement(se.Z,{value:Ue==null?void 0:Ue.star,disabled:!0,className:ue.rating,style:{color:"#FFA100",fontSize:12,marginLeft:10}}),te.createElement("div",{className:ue.fenshu},(Ue==null?void 0:Ue.star)||0,"\u5206")),!(Ue!=null&&Ue.can_edit)&&!(Ue!=null&&Ue.is_public)?null:te.createElement("div",null,te.createElement("div",{className:ue.checkBox},Rt()))),te.createElement("div",{className:"mt10"},(Ue==null?void 0:Ue.description)&&te.createElement("span",{className:ue.introName},"\u7B80\u4ECB\uFF1A",Ue.description))))};var w=(0,x.connect)(({videoDetail:c,loading:_,globalSetting:I})=>({videoDetail:c,globalSetting:I,loading:_}))(k),ne=i(8591),Q=i(17574),he={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(81722),be=i(75736),R=i(346),P=i(59301),v=Object.defineProperty,B=Object.defineProperties,ve=Object.getOwnPropertyDescriptors,H=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,O=(c,_,I)=>_ in c?v(c,_,{enumerable:!0,configurable:!0,writable:!0,value:I}):c[_]=I,V=(c,_)=>{for(var I in _||(_={}))le.call(_,I)&&O(c,I,_[I]);if(H)for(var I of H(_))J.call(_,I)&&O(c,I,_[I]);return c},ee=(c,_)=>B(c,ve(_)),ie=(c,_)=>{var I={};for(var U in c)le.call(c,U)&&_.indexOf(U)<0&&(I[U]=c[U]);if(c!=null&&H)for(var U of H(c))_.indexOf(U)<0&&J.call(c,U)&&(I[U]=c[U]);return I},ge=(c,_,I)=>new Promise((U,fe)=>{var ae=Ce=>{try{Y(I.next(Ce))}catch(Te){fe(Te)}},me=Ce=>{try{Y(I.throw(Ce))}catch(Te){fe(Te)}},Y=Ce=>Ce.done?U(Ce.value):Promise.resolve(Ce.value).then(ae,me);Y((I=I.apply(c,_)).next())});const Ae=[{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:he.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:he.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:he.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:I,pathsDetail:U,videoDetail:fe,user:ae}=_,me=ie(_,["dispatch","pathsDetail","videoDetail","user"]);const{queryParams:Y,stages:Ce,cust_seq:Te,active:X}=fe,{subject_id:Be,course_id:Ge}=Y,Fe=(0,x.useParams)(),[Ve]=(0,x.useSearchParams)(),[nt,yt]=(0,g.useState)([]),[st,lt]=(0,g.useState)([(X==null?void 0:X.id)||Number(Fe.videoId)]),[pt,Ue]=(0,g.useState)("\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55"),Ke=[".PDF",".DOC",".DOCX",".XLS",".XLSX",".PPT",".PPTX"];(0,g.useEffect)(()=>{I(Be?{type:"videoDetail/getStageData",payload:{subject_id:Be,page_type:"video"}}:{type:"videoDetail/getCourseStageData",payload:{coursesId:Ge}})},[]),(0,g.useEffect)(()=>{rt()},[fe==null?void 0:fe.stages]);const rt=()=>{let He=nt;Ce.forEach((pe,e)=>{He.push({title:P.createElement("div",{title:pe.stage_name,className:he.title},pe.stage_name),value:pe==null?void 0:pe.stage_id,key:pe==null?void 0:pe.stage_id,icon:P.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:Et(pe.items||[])})}),yt(He)},Et=He=>{function pe(e){var t;const n=e.children,r=Array.isArray(n)&&n.length>0,s=e==null?void 0:e.id,{name:S,item_type:L,id:Ie}=e,Se=(t=Ae.find(at=>at.type===L))==null?void 0:t.bq,Oe=he.brght,tt=X.id===Ie?`${Oe} ${he.active}`:Oe;return{title:P.createElement("div",{onClick:()=>ht(e),className:Oe,title:S},Se,P.createElement("div",{className:he.s3},S)),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(at=>pe(at)):[]}}return He==null?void 0:He.map(e=>pe(e))},mt=(He,pe)=>ge(void 0,null,function*(){I({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u7A0D\u540E..."}});const e=pe?yield(0,be.BK)({id:He}):yield(0,be.Ir)({id:He});if(I({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),e!=null&&e.game_identifier||e!=null&&e.identifier){(0,re.xg)(pe?`/tasks/${e==null?void 0:e.identifier}/jupyter`:`/tasks/${e.game_identifier}`);return}(e==null?void 0:e.status)===2?At(e==null?void 0:e.message):(e==null?void 0:e.status)===3&&Ct(e==null?void 0:e.message)}),Ct=He=>{ce.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",He,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},At=He=>{He=He!=null&&He.includes(".json")?He:`${He}.json`,ce.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 pe=yield(0,D.L8)({url:He});if(!pe)return;ne.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const e=yield(0,be.Ir)({id:pe.shixun_identifier});if(e!=null&&e.game_identifier){(0,re.xg)(`/tasks/${e.game_identifier}`);return}(e==null?void 0:e.status)===2?At(e==null?void 0:e.message):(e==null?void 0:e.status)===3&&Ct(e==null?void 0:e.message)})})},ht=He=>{var pe,e,t,n,r;if((He==null?void 0:He.item_type)==="StageCatalog")return;clearTimeout(window.videoTimer);const{id:s,item_type:S,identifier:L,is_jupyter:Ie,url:Se,link:Oe}=He;if(S==="VideoItem"&&!Oe){if(!((pe=ae.userInfo)!=null&&pe.admin)&&!((e=ae.userInfo)!=null&&e.business)&&!He.can_view){ce.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}I({type:"videoDetail/handleListItemClick",payload:{videoId:s}}),I({type:"videoDetail/getVideoDetail",payload:ee(V({id:s},Y),{videoId:s}),callback:tt=>{if(tt&&tt.video_item&&!tt.video_item.can_edit&&!He.is_public){ce.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(S==="VideoItem"&&Oe){He.link&&(0,d.DH)({is_f:1,id:He.id,point:0,total:0}),window.open(Oe);return}if(S==="Shixun"){mt(L,Ie);return}if(S==="Attachment"){if(Oe){(0,re.xg)(Oe);return}let tt=(n=He==null?void 0:He.name)==null?void 0:n.substr((t=He==null?void 0:He.name)==null?void 0:t.lastIndexOf("."));if(Ke.includes(tt.toUpperCase())){I({type:"videoDetail/handleListItemClick",payload:{attachmentId:s}});return}else{if(!((r=U.detail)!=null&&r.allow_download)){ne.ZP.info("\u6559\u5B66\u8BFE\u4EF6\u4E0D\u652F\u6301\u4E0B\u8F7D");return}(0,re.FH)(He.name,R.Z.API_SERVER+He.url);return}}window.open(R.Z.IMG_SERVER+Se)},Rt=He=>{let pe=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],e=["","\u5341","\u767E","\u5343","\u4E07"];He=parseInt(He);let t=s=>{let S=s.toString().split("").reverse(),L="";for(var Ie=0;Ie<S.length;Ie++)L=(Ie==0&&S[Ie]==0||Ie>0&&S[Ie]==0&&S[Ie-1]==0?"":pe[S[Ie]]+(S[Ie]==0?e[0]:e[Ie]))+L;return L},n=Math.floor(He/1e4),r=He%1e4;return r.toString().length<4&&(r="0"+r),n?t(n)+"\u4E07"+t(r):t(He)},it=(He,pe,e,t)=>{var n;const{name:r,item_type:s,id:S}=He,L=`${pe+1}-${e+1}-${t+1}`,Ie=(n=Ae.find(tt=>tt.type===s))==null?void 0:n.icon,Se=he.brght,Oe=X.id===S?`${Se} ${he.active}`:Se;return P.createElement("div",{key:L,onClick:()=>ht(He),className:Oe,style:{paddingLeft:52}},P.createElement("span",{className:he.s1},Ie),!!Te&&P.createElement("span",{className:he.s2},L),P.createElement("span",{className:he.s3},"\u203B ",r))},dt=(He,pe,e)=>{var t;const{name:n,item_type:r,id:s,children:S}=He,L=`${pe+1}-${e+1}`,Ie=(t=Ae.find(tt=>tt.type===r))==null?void 0:t.icon,Se=he.brght,Oe=X.id===s?`${Se} ${he.active}`:Se;return P.createElement(g.Fragment,{key:L},P.createElement("div",{onClick:()=>ht(He),className:Oe},P.createElement("span",{className:he.s1},Ie),!!Te&&P.createElement("span",{className:he.s2},L),P.createElement("span",{className:he.s3},"\u203B ",n)),!!S.length&&S.map((tt,at)=>it(tt,pe,e,at)))};return P.createElement("aside",{className:he.list},P.createElement("div",{className:he.tabs_style},P.createElement("div",{className:he.tabs_item,onClick:()=>{Ue("\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55")}},"\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55",pt=="\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55"&&P.createElement("div",{className:he.tabs_item_active}))),P.createElement("div",{className:he.tree_style},(nt==null?void 0:nt.length)>0&&P.createElement(Q.default,{selectedKeys:st,onSelect:(He,pe)=>{lt([...He])},blockNode:!0,treeData:nt,defaultExpandAll:!0,className:he.tree_line})))};var xe=(0,x.connect)(({user:c,videoDetail:_,loading:I,globalSetting:U,pathsDetail:fe})=>({user:c,videoDetail:_,globalSetting:U,loading:I,pathsDetail:fe}))(Pe),Je=i(75617),ke=i(59301),ze=Object.defineProperty,je=Object.defineProperties,G=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,m=(c,_,I)=>_ in c?ze(c,_,{enumerable:!0,configurable:!0,writable:!0,value:I}):c[_]=I,a=(c,_)=>{for(var I in _||(_={}))h.call(_,I)&&m(c,I,_[I]);if(we)for(var I of we(_))y.call(_,I)&&m(c,I,_[I]);return c},b=(c,_)=>je(c,G(_)),z=(c,_)=>{var I={};for(var U in c)h.call(c,U)&&_.indexOf(U)<0&&(I[U]=c[U]);if(c!=null&&we)for(var U of we(c))_.indexOf(U)<0&&y.call(c,U)&&(I[U]=c[U]);return I},E=(c,_,I)=>new Promise((U,fe)=>{var ae=Ce=>{try{Y(I.next(Ce))}catch(Te){fe(Te)}},me=Ce=>{try{Y(I.throw(Ce))}catch(Te){fe(Te)}},Y=Ce=>Ce.done?U(Ce.value):Promise.resolve(Ce.value).then(ae,me);Y((I=I.apply(c,_)).next())});const l=c=>{const{subject_id:_}=c;return{subject_id:_,course_id:_}},p=c=>{var _=c,{videoDetail:I,globalSetting:U,loading:fe,pathsDetail:ae,dispatch:me}=_,Y=z(_,["videoDetail","globalSetting","loading","pathsDetail","dispatch"]),Ce,Te;const{queryParams:X,videoList:Be,attachmentList:Ge,active:Fe}=I,{subject_id:Ve,videoId:nt}=X,yt={videoId:nt};(0,g.useEffect)(()=>{if(Fe){const{item_type:pt,id:Ue}=Fe;pt==="VideoItem"&&me({type:"videoDetail/getVideoDetail",payload:b(a({},X),{id:Ue})})}},[Fe.id]),console.log("---",Fe),(0,g.useEffect)(()=>{Ve&&st()},[]);function st(){return E(this,null,function*(){const pt=yield me({type:"pathsDetail/getPathsDetail",payload:{id:Ve}})})}(0,g.useEffect)(()=>{var pt,Ue;(0,re.Dk)((Ue=(pt=I.detail)==null?void 0:pt.video_item)==null?void 0:Ue.name)},[I]);let lt={width:1200};return Fe&&Fe.item_type==="Attachment"&&Fe.content_type==="application/pdf"&&(lt={width:1250,marginLeft:(document.body.clientWidth-1200)/2}),ke.createElement(F.Z,{spinning:!1},ke.createElement("section",{className:q.bg},ke.createElement("div",{className:q.container,style:lt},ke.createElement(xe,null),Fe&&Fe.item_type==="VideoItem"&&ke.createElement(w,null),Fe&&Fe.item_type==="Attachment"&&Fe.content_type==="application/pdf"&&Fe.url&&ke.createElement("div",{className:q.widthle},ke.createElement(Je.Z,{disabledDownload:!((Ce=ae.detail)!=null&&Ce.allow_download),type:"pdf",filename:Fe.name,data:R.Z.API_SERVER+Fe.url,style:{position:"absolute",zIndex:1}})),Fe&&Fe.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(Fe.content_type)&&Fe.url&&ke.createElement("div",{className:q.widthle},ke.createElement(Je.Z,{disabledDownload:!((Te=ae.detail)!=null&&Te.allow_download),type:"office",data:R.Z.API_SERVER+Fe.url,style:{position:"absolute",zIndex:1}})))))};var o=(0,x.connect)(({videoDetail:c,loading:_,globalSetting:I,pathsDetail:U})=>({videoDetail:c,globalSetting:I,loading:_,pathsDetail:U}))(p)},84989:function(vt,Ne,i){"use strict";i.d(Ne,{BU:function(){return x},Dj:function(){return g},gH:function(){return F},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 F=()=>{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}},30647:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return He}});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,F=i(86204),q=i.n(F);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 ce{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=ce;class oe{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class _e extends oe{constructor(e){super(e)}get name(){return"IllegalStateException"}}class ue 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},re={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class te{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 Ee(){let pe=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(pe)||/(opr)[\/]([\w.]+)/.exec(pe)||/(chrome)[ \/]([\w.]+)/.exec(pe)||/(iemobile)[\/]([\w.]+)/.exec(pe)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(pe)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(pe)||/(webkit)[ \/]([\w.]+)/.exec(pe)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(pe)||/(msie) ([\w.]+)/.exec(pe)||pe.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(pe)||pe.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(pe)||[],t=/(ipad)/.exec(pe)||/(ipod)/.exec(pe)||/(windows phone)/.exec(pe)||/(iphone)/.exec(pe)||/(kindle)/.exec(pe)||/(android)/.exec(pe)||/(windows)/.exec(pe)||/(mac)/.exec(pe)||/(linux)/.exec(pe)||/(cros)/.exec(pe)||[],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)}Ee();var K=Z;class T extends te{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 L=r.headers;for(let Ie in L)L.hasOwnProperty(Ie)&&s.append(Ie,L[Ie])}let S={method:"GET",headers:s,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let L in this._config.headers)s.append(L,this._config.headers[L]);e.cors===!1&&(S.mode="same-origin"),e.withCredentials&&(S.credentials="include"),e.referrerPolicy&&(S.referrerPolicy=e.referrerPolicy),this._status=d.kConnecting,self.fetch(r.url,S).then(L=>{if(this._requestAbort){this._requestAbort=!1,this._status=d.kIdle;return}if(L.ok&&L.status>=200&&L.status<=299){if(L.url!==r.url&&this._onURLRedirect){let Se=this._seekHandler.removeURLParameters(L.url);this._onURLRedirect(Se)}let Ie=L.headers.get("Content-Length");return Ie!=null&&(this._contentLength=parseInt(Ie),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,L.body.getReader())}else if(this._status=d.kError,this._onError)this._onError(re.HTTP_STATUS_CODE_INVALID,{code:L.status,msg:L.statusText});else throw new oe("FetchStreamLoader: Http code invalid, "+L.status+" "+L.statusText)}).catch(L=>{if(this._status=d.kError,this._onError)this._onError(re.EXCEPTION,{code:-1,msg:L.message});else throw L})}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=re.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=re.EARLY_EOF,r={code:t.code,msg:"Fetch stream meet Early-EOF"}):(n=re.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 te{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 S=r.headers;for(let L in S)S.hasOwnProperty(L)&&s.setRequestHeader(L,S[L])}if(typeof this._config.headers=="object"){let S=this._config.headers;for(let L in S)S.hasOwnProperty(L)&&s.setRequestHeader(L,S[L])}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(re.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=re.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=re.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new oe(n.msg)}}var C=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 S=this._reader=new self.MSStreamReader;S.onprogress=this._msrOnProgress.bind(this),S.onload=this._msrOnLoad.bind(this),S.onerror=this._msrOnError.bind(this);let L=this._xhr=new XMLHttpRequest;if(L.open("GET",s.url,!0),L.responseType="ms-stream",L.onreadystatechange=this._xhrOnReadyStateChange.bind(this),L.onerror=this._xhrOnError.bind(this),e.withCredentials&&(L.withCredentials=!0),typeof s.headers=="object"){let Ie=s.headers;for(let Se in Ie)Ie.hasOwnProperty(Se)&&L.setRequestHeader(Se,Ie[Se])}if(typeof this._config.headers=="object"){let Ie=this._config.headers;for(let Se in Ie)Ie.hasOwnProperty(Se)&&L.setRequestHeader(Se,Ie[Se])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,L.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 w extends te{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 S=r.headers;for(let L in S)S.hasOwnProperty(L)&&s.setRequestHeader(L,S[L])}if(typeof this._config.headers=="object"){let S=this._config.headers;for(let L in S)S.hasOwnProperty(L)&&s.setRequestHeader(L,S[L])}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(re.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,S=n;if(e<t[0])return t[0];for(;s<=S;){if(r=s+Math.floor((S-s)/2),r===n||e>=t[r]&&e<t[r+1])return t[r];t[r]<e?s=r+1:S=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 S=this._normalizeSpeed(t);this._currentSpeedNormalized!==S&&(this._currentSpeedNormalized=S,this._currentChunkSizeKB=S)}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=re.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=re.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new oe(n.msg)}}var ne=w;class Q extends te{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(re.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(re.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(re.EXCEPTION,t);else throw new oe(t.msg)}}var he=Q;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 be=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 S=n.split("&");for(let L=0;L<S.length;L++){let Ie=S[L].split("="),Se=L>0;Ie[0]!==this._startName&&Ie[0]!==this._endName&&(Se&&(s+="&"),s+=S[L])}}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 be(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 ue("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}else throw new ue(`Invalid seekType in config: ${e.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=he;else if(M.isSupported())this._loaderClass=M;else if(C.isSupported())this._loaderClass=C;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 ue("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,S=n;if(e<t[0])return t[0];for(;s<=S;){if(r=s+Math.floor((S-s)/2),r===n||e>=t[r]&&e<t[r+1])return t[r];t[r]<e?s=r+1:S=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 _e("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 S=this._stashBuffer.slice(0,this._stashUsed),L=this._dispatchChunks(S,this._stashByteStart);if(L<S.byteLength){if(L>0){let Ie=new Uint8Array(S,L);s.set(Ie,0),this._stashUsed=Ie.byteLength,this._stashByteStart+=L}}else this._stashUsed=0,this._stashByteStart+=L;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 S=this._dispatchChunks(e,t);if(S<e.byteLength){let L=e.byteLength-S;L>this._bufferSize&&(this._expandBuffer(L),s=new Uint8Array(this._stashBuffer,0,this._bufferSize)),s.set(new Uint8Array(e,S),0),this._stashUsed+=L,this._stashByteStart=t+S}}}else if(this._stashUsed===0){let s=this._dispatchChunks(e,t);if(s<e.byteLength){let S=e.byteLength-s;S>this._bufferSize&&this._expandBuffer(S),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,s),0),this._stashUsed+=S,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 S=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(S<this._stashUsed&&S>0){let L=new Uint8Array(this._stashBuffer,S);s.set(L,0)}this._stashUsed-=S,this._stashByteStart+=S}}_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),S=new Uint8Array(t,n);s.set(S,0),this._stashUsed=S.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=re.UNRECOVERABLE_EARLY_EOF),e){case re.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=re.UNRECOVERABLE_EARLY_EOF;break}case re.UNRECOVERABLE_EARLY_EOF:case re.CONNECTING_TIMEOUT:case re.HTTP_STATUS_CODE_INVALID:case re.EXCEPTION:break}if(this._onError)this._onError(e,t);else throw new oe("IOException: "+t.msg)}}var B=v;const ve={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({},ve)}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 J=le,V={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 ee{static get forceGlobalTag(){return f.FORCE_GLOBAL_TAG}static set forceGlobalTag(e){f.FORCE_GLOBAL_TAG=e,ee._notifyChange()}static get globalTag(){return f.GLOBAL_TAG}static set globalTag(e){f.GLOBAL_TAG=e,ee._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,ee._notifyChange()}static get enableDebug(){return f.ENABLE_DEBUG}static set enableDebug(e){f.ENABLE_DEBUG=e,ee._notifyChange()}static get enableVerbose(){return f.ENABLE_VERBOSE}static set enableVerbose(e){f.ENABLE_VERBOSE=e,ee._notifyChange()}static get enableInfo(){return f.ENABLE_INFO}static set enableInfo(e){f.ENABLE_INFO=e,ee._notifyChange()}static get enableWarn(){return f.ENABLE_WARN}static set enableWarn(e){f.ENABLE_WARN=e,ee._notifyChange()}static get enableError(){return f.ENABLE_ERROR}static set enableError(e){f.ENABLE_ERROR=e,ee._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=ee.emitter;if(e.listenerCount("change")>0){let t=ee.getConfig();e.emit("change",t)}}static registerListener(e){ee.emitter.addListener("change",e)}static removeListener(e){ee.emitter.removeListener("change",e)}static addLogListener(e){f.emitter.addListener("log",e),f.emitter.listenerCount("log")>0&&(f.ENABLE_CALLBACK=!0,ee._notifyChange())}static removeLogListener(e){f.emitter.removeListener("log",e),f.emitter.listenerCount("log")===0&&(f.ENABLE_CALLBACK=!1,ee._notifyChange())}}ee.emitter=new(q());var ie=ee;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,S=0,L=r;for(t<e[0]&&(n=0,S=L+1);S<=L;)if(s=S+Math.floor((L-S)/2),s===r||t>=e[s]&&t<e[s+1]){n=s;break}else e[s]<t?S=s+1:L=s-1;return n}}var Ae=ge;function Pe(pe,e,t){let n=pe;if(e+t<n.length){for(;t--;)if((n[++e]&192)!==128)return!1;return!0}else return!1}function xe(pe){let e=[],t=pe,n=0,r=pe.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=xe;let ke=function(){let pe=new ArrayBuffer(2);return new DataView(pe).setInt16(0,256,!0),new Int16Array(pe)[0]===256}();class ze{static parseScriptData(e,t,n){let r={};try{let s=ze.parseValue(e,t,n),S=ze.parseValue(e,t+s.size,n-s.size);r[s.data]=S.data}catch(s){f.e("AMF",s.toString())}return r}static parseObject(e,t,n){if(n<3)throw new _e("Data not enough when parse ScriptDataObject");let r=ze.parseString(e,t,n),s=ze.parseValue(e,t+r.size,n-r.size),S=s.objectEnd;return{data:{name:r.data,value:s.data},size:r.size+s.size,objectEnd:S}}static parseVariable(e,t,n){return ze.parseObject(e,t,n)}static parseString(e,t,n){if(n<2)throw new _e("Data not enough when parse String");let s=new DataView(e,t,n).getUint16(0,!ke),S;return s>0?S=Je(new Uint8Array(e,t+2,s)):S="",{data:S,size:2+s}}static parseLongString(e,t,n){if(n<4)throw new _e("Data not enough when parse LongString");let s=new DataView(e,t,n).getUint32(0,!ke),S;return s>0?S=Je(new Uint8Array(e,t+4,s)):S="",{data:S,size:4+s}}static parseDate(e,t,n){if(n<10)throw new _e("Data size invalid when parse Date");let r=new DataView(e,t,n),s=r.getFloat64(0,!ke),S=r.getInt16(8,!ke);return s+=S*60*1e3,{data:new Date(s),size:10}}static parseValue(e,t,n){if(n<1)throw new _e("Data not enough when parse Value");let r=new DataView(e,t,n),s=1,S=r.getUint8(0),L,Ie=!1;try{switch(S){case 0:L=r.getFloat64(1,!ke),s+=8;break;case 1:{L=!!r.getUint8(1),s+=1;break}case 2:{let Se=ze.parseString(e,t+1,n-1);L=Se.data,s+=Se.size;break}case 3:{L={};let Se=0;for((r.getUint32(n-4,!ke)&16777215)===9&&(Se=3);s<n-4;){let Oe=ze.parseObject(e,t+s,n-s-Se);if(Oe.objectEnd)break;L[Oe.data.name]=Oe.data.value,s+=Oe.size}s<=n-3&&(r.getUint32(s-1,!ke)&16777215)===9&&(s+=3);break}case 8:{L={},s+=4;let Se=0;for((r.getUint32(n-4,!ke)&16777215)===9&&(Se=3);s<n-8;){let Oe=ze.parseVariable(e,t+s,n-s-Se);if(Oe.objectEnd)break;L[Oe.data.name]=Oe.data.value,s+=Oe.size}s<=n-3&&(r.getUint32(s-1,!ke)&16777215)===9&&(s+=3);break}case 9:L=void 0,s=1,Ie=!0;break;case 10:{L=[];let Se=r.getUint32(1,!ke);s+=4;for(let Oe=0;Oe<Se;Oe++){let tt=ze.parseValue(e,t+s,n-s);L.push(tt.data),s+=tt.size}break}case 11:{let Se=ze.parseDate(e,t+1,n-1);L=Se.data,s+=Se.size;break}case 12:{let Se=ze.parseString(e,t+1,n-1);L=Se.data,s+=Se.size;break}default:s=n,f.w("AMF","Unsupported AMF value type "+S)}}catch(Se){f.e("AMF",Se.toString())}return{data:L,size:s,objectEnd:Ie}}}var je=ze;class G{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 _e("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 ue("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let S=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,S}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 we=G;class h{static _ebsp2rbsp(e){let t=e,n=t.byteLength,r=new Uint8Array(n),s=0;for(let S=0;S<n;S++)S>=2&&t[S]===3&&t[S-1]===0&&t[S-2]===0||(r[s]=t[S],s++);return new Uint8Array(r.buffer,0,s)}static parseSPS(e){let t=h._ebsp2rbsp(e),n=new we(t);n.readByte();let r=n.readByte();n.readByte();let s=n.readByte();n.readUEG();let S=h.getProfileString(r),L=h.getLevelString(s),Ie=1,Se=420,Oe=[0,420,422,444],tt=8;if((r===100||r===110||r===122||r===244||r===44||r===83||r===86||r===118||r===128||r===138||r===144)&&(Ie=n.readUEG(),Ie===3&&n.readBits(1),Ie<=3&&(Se=Oe[Ie]),tt=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let bt=Ie!==3?8:12;for(let _t=0;_t<bt;_t++)n.readBool()&&(_t<6?h._skipScalingList(n,16):h._skipScalingList(n,64))}n.readUEG();let at=n.readUEG();if(at===0)n.readUEG();else if(at===1){n.readBits(1),n.readSEG(),n.readSEG();let bt=n.readUEG();for(let _t=0;_t<bt;_t++)n.readSEG()}let Ze=n.readUEG();n.readBits(1);let ut=n.readUEG(),We=n.readUEG(),Re=n.readBits(1);Re===0&&n.readBits(1),n.readBits(1);let Me=0,Qe=0,qe=0,gt=0;n.readBool()&&(Me=n.readUEG(),Qe=n.readUEG(),qe=n.readUEG(),gt=n.readUEG());let It=1,Ye=1,Xe=0,j=!0,W=0,de=0;if(n.readBool()){if(n.readBool()){let bt=n.readByte(),_t=[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=_t[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),_t=n.readBits(32);j=n.readBool(),W=_t,de=bt*2,Xe=W/de}}let ye=1;(It!==1||Ye!==1)&&(ye=It/Ye);let $e=0,De=0;if(Ie===0)$e=1,De=2-Re;else{let bt=Ie===3?1:2,_t=Ie===1?2:1;$e=bt,De=_t*(2-Re)}let ct=(ut+1)*16,St=(2-Re)*((We+1)*16);ct-=(Me+Qe)*$e,St-=(qe+gt)*De;let ft=Math.ceil(ct*ye);return n.destroy(),n=null,{profile_string:S,level_string:L,bit_depth:tt,ref_frames:Ze,chroma_format:Se,chroma_format_string:h.getChromaFormatString(Se),frame_rate:{fixed:j,fps:Xe,fps_den:de,fps_num:W},sar_ratio:{width:It,height:Ye},codec_size:{width:ct,height:St},present_size:{width:ft,height:St}}}static _skipScalingList(e,t){let n=8,r=8,s=0;for(let S=0;S<t;S++)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=h,a={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function b(pe){return pe>>>8&255|(pe&255)<<8}function z(pe){return(pe&4278190080)>>>24|(pe&16711680)>>>8|(pe&65280)<<8|(pe&255)<<24}function E(pe,e){return pe[e]<<24|pe[e+1]<<16|pe[e+2]<<8|pe[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 Ae,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,S=E(t,5);return S<9?n:{match:!0,consumed:S,dataOffset:S,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 Ae}_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 _e("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 S=s.getUint8(0),L=s.getUint32(0,!r)&16777215;if(n+11+L+4>e.byteLength)break;if(S!==8&&S!==9&&S!==18){f.w(this.TAG,`Unsupported tag type ${S}, skipped`),n+=11+L+4;continue}let Ie=s.getUint8(4),Se=s.getUint8(5),Oe=s.getUint8(6),tt=s.getUint8(7),at=Oe|Se<<8|Ie<<16|tt<<24;(s.getUint32(7,!r)&16777215)!==0&&f.w(this.TAG,"Meet tag which has StreamID != 0!");let ut=n+11;switch(S){case 8:this._parseAudioData(e,ut,L,at);break;case 9:this._parseVideoData(e,ut,L,at,t+n);break;case 18:this._parseScriptData(e,ut,L);break}let We=s.getUint32(11+L,!r);We!==11+L&&f.w(this.TAG,`Invalid PrevTagSize ${We}`),n+=11+L+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=je.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 S=Math.floor(s.duration*this._timescale);this._duration=S,this._mediaInfo.duration=S}}else this._mediaInfo.duration=0;if(typeof s.framerate=="number"){let S=Math.floor(s.framerate*1e3);if(S>0){let L=S/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=L,this._referenceFrameRate.fps_num=S,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=L}}if(typeof s.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let S=s.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(S),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,L=new DataView(e,t,n).getUint8(0),Ie=L>>>4;if(Ie!==2&&Ie!==10){this._onError(a.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Ie);return}let Se=0,Oe=(L&12)>>>2;if(Oe>=0&&Oe<=4)Se=this._flvSoundRateTable[Oe];else{this._onError(a.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+Oe);return}let tt=(L&2)>>>1,at=L&1,Ze=this._audioMetadata,ut=this._audioTrack;if(Ze||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Ze=this._audioMetadata={},Ze.type="audio",Ze.id=ut.id,Ze.timescale=this._timescale,Ze.duration=this._duration,Ze.audioSampleRate=Se,Ze.channelCount=at===0?1:2),Ie===10){let We=this._parseAACAudioData(e,t+1,n-1);if(We==null)return;if(We.packetType===0){Ze.config&&f.w(this.TAG,"Found another AudioSpecificConfig!");let Re=We.data;Ze.audioSampleRate=Re.samplingRate,Ze.channelCount=Re.channelCount,Ze.codec=Re.codec,Ze.originalCodec=Re.originalCodec,Ze.config=Re.config,Ze.refSampleDuration=1024/Ze.audioSampleRate*Ze.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",Ze);let Me=this._mediaInfo;Me.audioCodec=Ze.originalCodec,Me.audioSampleRate=Ze.audioSampleRate,Me.audioChannelCount=Ze.channelCount,Me.hasVideo?Me.videoCodec!=null&&(Me.mimeType='video/x-flv; codecs="'+Me.videoCodec+","+Me.audioCodec+'"'):Me.mimeType='video/x-flv; codecs="'+Me.audioCodec+'"',Me.isComplete()&&this._onMediaInfo(Me)}else if(We.packetType===1){let Re=this._timestampBase+r,Me={unit:We.data,length:We.data.byteLength,dts:Re,pts:Re};ut.samples.push(Me),ut.length+=We.data.length}else f.e(this.TAG,`Flv: Unsupported AAC data type ${We.packetType}`)}else if(Ie===2){if(!Ze.codec){let Qe=this._parseMP3AudioData(e,t+1,n-1,!0);if(Qe==null)return;Ze.audioSampleRate=Qe.samplingRate,Ze.channelCount=Qe.channelCount,Ze.codec=Qe.codec,Ze.originalCodec=Qe.originalCodec,Ze.refSampleDuration=1152/Ze.audioSampleRate*Ze.timescale,f.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Ze);let qe=this._mediaInfo;qe.audioCodec=Ze.codec,qe.audioSampleRate=Ze.audioSampleRate,qe.audioChannelCount=Ze.channelCount,qe.audioDataRate=Qe.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 Re=this._timestampBase+r,Me={unit:We,length:We.byteLength,dts:Re,pts:Re};ut.samples.push(Me),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,S=0,L=0,Ie=null,Se=0,Oe=null;if(S=L=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 tt=this._mpegSamplingRates[Se],at=(r[1]&120)>>>3;if(at<0||at>=8){this._onError(a.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}S===5&&(Oe=(r[1]&7)<<1|r[2]>>>7,Ie=(r[2]&124)>>>2);let Ze=self.navigator.userAgent.toLowerCase();return Ze.indexOf("firefox")!==-1?Se>=6?(S=5,s=new Array(4),Oe=Se-3):(S=2,s=new Array(2),Oe=Se):Ze.indexOf("android")!==-1?(S=2,s=new Array(2),Oe=Se):(S=5,Oe=Se,s=new Array(4),Se>=6?Oe=Se-3:at===1&&(S=2,s=new Array(2),Oe=Se)),s[0]=S<<3,s[0]|=(Se&15)>>>1,s[1]=(Se&15)<<7,s[1]|=(at&15)<<3,S===5&&(s[1]|=(Oe&15)>>>1,s[2]=(Oe&1)<<7,s[2]|=8,s[3]=0),{config:s,samplingRate:tt,channelCount:at,codec:"mp4a.40."+S,originalCodec:"mp4a.40."+L}}_parseMP3AudioData(e,t,n,r){if(n<4){f.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let s=this._littleEndian,S=new Uint8Array(e,t,n),L=null;if(r){if(S[0]!==255)return;let Ie=S[1]>>>3&3,Se=(S[1]&6)>>1,Oe=(S[2]&240)>>>4,tt=(S[2]&12)>>>2,Ze=(S[3]>>>6&3)!==3?2:1,ut=0,We=0,Re=34,Me="mp3";switch(Ie){case 0:ut=this._mpegAudioV25SampleRateTable[tt];break;case 2:ut=this._mpegAudioV20SampleRateTable[tt];break;case 3:ut=this._mpegAudioV10SampleRateTable[tt];break}switch(Se){case 1:Re=34,Oe<this._mpegAudioL3BitRateTable.length&&(We=this._mpegAudioL3BitRateTable[Oe]);break;case 2:Re=33,Oe<this._mpegAudioL2BitRateTable.length&&(We=this._mpegAudioL2BitRateTable[Oe]);break;case 3:Re=32,Oe<this._mpegAudioL1BitRateTable.length&&(We=this._mpegAudioL1BitRateTable[Oe]);break}L={bitRate:We,samplingRate:ut,channelCount:Ze,codec:Me,originalCodec:Me}}else L=S;return L}_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 S=new Uint8Array(e,t,n)[0],L=(S&240)>>>4,Ie=S&15;if(Ie!==7){this._onError(a.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${Ie}`);return}this._parseAVCVideoPacket(e,t+1,n-1,r,s,L)}_parseAVCVideoPacket(e,t,n,r,s,S){if(n<4){f.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let L=this._littleEndian,Ie=new DataView(e,t,n),Se=Ie.getUint8(0),tt=(Ie.getUint32(0,!L)&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,S,tt);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,S=this._littleEndian,L=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 Ie=L.getUint8(0),Se=L.getUint8(1),Oe=L.getUint8(2),tt=L.getUint8(3);if(Ie!==1||Se===0){this._onError(a.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(L.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(a.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let at=L.getUint8(5)&31;if(at===0){this._onError(a.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else at>1&&f.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${at}`);let Ze=6;for(let We=0;We<at;We++){let Re=L.getUint16(Ze,!S);if(Ze+=2,Re===0)continue;let Me=new Uint8Array(e,t+Ze,Re);Ze+=Re;let Qe=y.parseSPS(Me);if(We!==0)continue;r.codecWidth=Qe.codec_size.width,r.codecHeight=Qe.codec_size.height,r.presentWidth=Qe.present_size.width,r.presentHeight=Qe.present_size.height,r.profile=Qe.profile_string,r.level=Qe.level_string,r.bitDepth=Qe.bit_depth,r.chromaFormat=Qe.chroma_format,r.sarRatio=Qe.sar_ratio,r.frameRate=Qe.frame_rate,(Qe.frame_rate.fixed===!1||Qe.frame_rate.fps_num===0||Qe.frame_rate.fps_den===0)&&(r.frameRate=this._referenceFrameRate);let qe=r.frameRate.fps_den,gt=r.frameRate.fps_num;r.refSampleDuration=r.timescale*(qe/gt);let Tt=Me.subarray(1,4),It="avc1.";for(let Xe=0;Xe<3;Xe++){let j=Tt[Xe].toString(16);j.length<2&&(j="0"+j),It+=j}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=Qe.ref_frames,Ye.chromaFormat=Qe.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=L.getUint8(Ze);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}`);Ze++;for(let We=0;We<ut;We++){let Re=L.getUint16(Ze,!S);Ze+=2,Re!==0&&(Ze+=Re)}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,S,L){let Ie=this._littleEndian,Se=new DataView(e,t,n),Oe=[],tt=0,at=0;const Ze=this._naluLengthSize;let ut=this._timestampBase+r,We=S===1;for(;at<n;){if(at+4>=n){f.w(this.TAG,`Malformed Nalu near timestamp ${ut}, offset = ${at}, dataSize = ${n}`);break}let Re=Se.getUint32(at,!Ie);if(Ze===3&&(Re>>>=8),Re>n-Ze){f.w(this.TAG,`Malformed Nalus near timestamp ${ut}, NaluSize > DataSize!`);return}let Me=Se.getUint8(at+Ze)&31;Me===5&&(We=!0);let Qe=new Uint8Array(e,t+at,Ze+Re),qe={type:Me,data:Qe};Oe.push(qe),tt+=Qe.byteLength,at+=Ze+Re}if(Oe.length){let Re=this._videoTrack,Me={units:Oe,length:tt,isKeyframe:We,dts:ut,cts:L,pts:ut+L};We&&(Me.fileposition=s),Re.samples.push(Me),Re.length+=tt}}}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 L=0;L<s;L++)t+=r[L].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 S=8;for(let L=0;L<s;L++)n.set(r[L],S),S+=r[L].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])),S=o.sdtp(e),L=o.trun(e,S.byteLength+16+16+8+16+8+8);return o.box(o.types.traf,r,s,L,S)}static sdtp(e){let t=e.samples||[],n=t.length,r=new Uint8Array(4+n);for(let s=0;s<n;s++){let S=t[s].flags;r[s+4]=S.isLeading<<6|S.dependsOn<<4|S.isDependedOn<<2|S.hasRedundancy}return o.box(o.types.sdtp,r)}static trun(e,t){let n=e.samples||[],r=n.length,s=12+16*r,S=new Uint8Array(s);t+=8+s,S.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 L=0;L<r;L++){let Ie=n[L].duration,Se=n[L].size,Oe=n[L].flags,tt=n[L].cts;S.set([Ie>>>24&255,Ie>>>16&255,Ie>>>8&255,Ie&255,Se>>>24&255,Se>>>16&255,Se>>>8&255,Se&255,Oe.isLeading<<2|Oe.dependsOn,Oe.isDependedOn<<6|Oe.hasRedundancy<<4|Oe.isNonSync,0,0,tt>>>24&255,tt>>>16&255,tt>>>8&255,tt&255],12+16*L)}return o.box(o.types.trun,S)}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 I=_;class U{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,S=0,L=r;for(e<t[0].dts&&(n=0,S=L+1);S<=L;)if(s=S+Math.floor((L-S)/2),s===r||e>=t[s].dts&&e<t[s+1].dts){n=s;break}else t[s].dts<e?S=s+1:L=s-1;return this._list[n]}}class me{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,S=n,L=0;if(e<t[0].originalBeginDts)return L=-1,L;for(;s<=S;)if(r=s+Math.floor((S-s)/2),r===n||e>t[r].lastSample.originalDts&&e<t[r+1].originalBeginDts){L=r;break}else t[r].originalBeginDts<e?s=r+1:S=r-1;return L}_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 Y{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 me("audio"),this._videoSegmentInfoList=new me("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 _e("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 _e("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,S=-1,L=-1,Ie=-1,Se=this._audioMeta.refSampleDuration,Oe=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,tt=this._dtsBaseInited&&this._audioNextDts===void 0,at=!1;if(!r||r.length===0||r.length===1&&!t)return;let Ze=0,ut=null,We=0;Oe?(Ze=0,We=n.length):(Ze=8,We=8+n.length);let Re=null;if(r.length>1&&(Re=r.pop(),We-=Re.length),this._audioStashedLastSample!=null){let Ye=this._audioStashedLastSample;this._audioStashedLastSample=null,r.unshift(Ye),We+=Ye.length}Re!=null&&(this._audioStashedLastSample=Re);let Me=r[0].dts-this._dtsBase;if(this._audioNextDts)s=Me-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())s=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(at=!0);else{let Ye=this._audioSegmentInfoList.getLastSampleBefore(Me);if(Ye!=null){let Xe=Me-(Ye.originalDts+Ye.duration);Xe<=3&&(Xe=0);let j=Ye.dts+Ye.duration+Xe;s=Me-j}else s=0}if(at){let Ye=Me-s,Xe=this._videoSegmentInfoList.getLastSegmentBefore(Me);if(Xe!=null&&Xe.beginDts<Ye){let j=I.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(j){let W=Xe.beginDts,de=Ye-Xe.beginDts;f.v(this.TAG,`InsertPrefixSilentAudio: dts: ${W}, duration: ${de}`),r.unshift({unit:j,dts:W,pts:W}),We+=j.byteLength}}else at=!1}let Qe=[];for(let Ye=0;Ye<r.length;Ye++){let Xe=r[Ye],j=Xe.unit,W=Xe.dts-this._dtsBase,de=W-s;S===-1&&(S=de);let Le=0;Ye!==r.length-1?Le=r[Ye+1].dts-this._dtsBase-s-de:Re!=null?Le=Re.dts-this._dtsBase-s-de:Qe.length>=1?Le=Qe[Qe.length-1].duration:Le=Math.floor(Se);let ye=!1,$e=null;if(Le>Se*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!K.safari){ye=!0;let De=Math.abs(Le-Se),ct=Math.ceil(De/Se),St=de+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: ${de+Le} ms, expected: ${de+Math.round(Se)} ms, delta: ${Math.round(De)} ms, generate: ${ct} frames`);let ft=I.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);ft==null&&(f.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),ft=j),$e=[];for(let _t=0;_t<ct;_t++){let wt=Math.round(St);if($e.length>0){let Lt=$e[$e.length-1];Lt.duration=wt-Lt.dts}let Nt={dts:wt,pts:wt,cts:0,unit:ft,size:ft.byteLength,duration:0,originalDts:W,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};$e.push(Nt),We+=Nt.size,St+=Se}let bt=$e[$e.length-1];bt.duration=de+Le-bt.dts,Le=Math.round(Se)}Qe.push({dts:de,pts:de,cts:0,unit:Xe.unit,size:Xe.unit.byteLength,duration:Le,originalDts:W,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),ye&&Qe.push.apply(Qe,$e)}Oe?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<Qe.length;Ye++){let Xe=Qe[Ye].unit;ut.set(Xe,Ze),Ze+=Xe.byteLength}let qe=Qe[Qe.length-1];L=qe.dts+qe.duration,this._audioNextDts=L;let gt=new fe;gt.beginDts=S,gt.endDts=L,gt.beginPts=S,gt.endPts=L,gt.originalBeginDts=Qe[0].originalDts,gt.originalEndDts=qe.originalDts+qe.duration,gt.firstSample=new U(Qe[0].dts,Qe[0].pts,Qe[0].duration,Qe[0].originalDts,!1),gt.lastSample=new U(qe.dts,qe.pts,qe.duration,qe.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(gt),n.samples=Qe,n.sequenceNumber++;let Tt=null;Oe?Tt=new Uint8Array:Tt=c.moof(n,S),n.samples=[],n.length=0;let It={type:"audio",data:this._mergeBoxes(Tt,ut).buffer,sampleCount:Qe.length,info:gt};Oe&&tt&&(It.timestampOffset=S),this._onMediaSegment("audio",It)}_remuxVideo(e,t){if(this._videoMeta==null)return;let n=e,r=n.samples,s,S=-1,L=-1,Ie=-1,Se=-1;if(!r||r.length===0||r.length===1&&!t)return;let Oe=8,tt=null,at=8+e.length,Ze=null;if(r.length>1&&(Ze=r.pop(),at-=Ze.length),this._videoStashedLastSample!=null){let qe=this._videoStashedLastSample;this._videoStashedLastSample=null,r.unshift(qe),at+=qe.length}Ze!=null&&(this._videoStashedLastSample=Ze);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 gt=ut-(qe.originalDts+qe.duration);gt<=3&&(gt=0);let Tt=qe.dts+qe.duration+gt;s=ut-Tt}else s=0}let We=new fe,Re=[];for(let qe=0;qe<r.length;qe++){let gt=r[qe],Tt=gt.dts-this._dtsBase,It=gt.isKeyframe,Ye=Tt-s,Xe=gt.cts,j=Ye+Xe;S===-1&&(S=Ye,Ie=j);let W=0;if(qe!==r.length-1?W=r[qe+1].dts-this._dtsBase-s-Ye:Ze!=null?W=Ze.dts-this._dtsBase-s-Ye:Re.length>=1?W=Re[Re.length-1].duration:W=Math.floor(this._videoMeta.refSampleDuration),It){let de=new U(Ye,j,W,gt.dts,!0);de.fileposition=gt.fileposition,We.appendSyncPoint(de)}Re.push({dts:Ye,pts:j,cts:Xe,units:gt.units,size:gt.length,isKeyframe:It,duration:W,originalDts:Tt,flags:{isLeading:0,dependsOn:It?2:1,isDependedOn:It?1:0,hasRedundancy:0,isNonSync:It?0:1}})}tt=new Uint8Array(at),tt[0]=at>>>24&255,tt[1]=at>>>16&255,tt[2]=at>>>8&255,tt[3]=at&255,tt.set(c.types.mdat,4);for(let qe=0;qe<Re.length;qe++){let gt=Re[qe].units;for(;gt.length;){let It=gt.shift().data;tt.set(It,Oe),Oe+=It.byteLength}}let Me=Re[Re.length-1];if(L=Me.dts+Me.duration,Se=Me.pts+Me.duration,this._videoNextDts=L,We.beginDts=S,We.endDts=L,We.beginPts=Ie,We.endPts=Se,We.originalBeginDts=Re[0].originalDts,We.originalEndDts=Me.originalDts+Me.duration,We.firstSample=new U(Re[0].dts,Re[0].pts,Re[0].duration,Re[0].originalDts,Re[0].isKeyframe),We.lastSample=new U(Me.dts,Me.pts,Me.duration,Me.originalDts,Me.isKeyframe),this._isLive||this._videoSegmentInfoList.append(We),n.samples=Re,n.sequenceNumber++,this._forceFirstIDR){let qe=Re[0].flags;qe.dependsOn=2,qe.isNonSync=0}let Qe=c.moof(n,S);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Qe,tt).buffer,sampleCount:Re.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 Ce=Y,X={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 Ce(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(X.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,Ae.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,Ae.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(X.METADATA_ARRIVED,e)}_onScriptDataArrived(e){this._emitter.emit(X.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(X.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(e){let t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e}_onIORecoveredEarlyEof(){this._emitter.emit(X.RECOVERED_EARLY_EOF)}_onIOException(e,t){f.e(this.TAG,`IOException: type = ${e}, code = ${t.code}, msg = ${t.msg}`),this._emitter.emit(X.IO_ERROR,e,t),this._disableStatisticsReporter()}_onDemuxException(e,t){f.e(this.TAG,`DemuxException: type = ${e}, info = ${t}`),this._emitter.emit(X.DEMUX_ERROR,e,t)}_onRemuxerInitSegmentArrival(e,t){this._emitter.emit(X.INIT_SEGMENT,e,t)}_onRemuxerMediaSegmentArrival(e,t){if(this._pendingSeekTime==null&&(this._emitter.emit(X.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(X.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(X.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(X.STATISTICS_INFO,e)}}var Ge=Be,Ve=function(pe){let e="TransmuxingWorker",t=null,n=We.bind(this);x.install(),pe.addEventListener("message",function(Re){switch(Re.data.cmd){case"init":t=new Ge(Re.data.param[0],Re.data.param[1]),t.on(X.IO_ERROR,at.bind(this)),t.on(X.DEMUX_ERROR,Ze.bind(this)),t.on(X.INIT_SEGMENT,r.bind(this)),t.on(X.MEDIA_SEGMENT,s.bind(this)),t.on(X.LOADING_COMPLETE,S.bind(this)),t.on(X.RECOVERED_EARLY_EOF,L.bind(this)),t.on(X.MEDIA_INFO,Ie.bind(this)),t.on(X.METADATA_ARRIVED,Se.bind(this)),t.on(X.SCRIPTDATA_ARRIVED,Oe.bind(this)),t.on(X.STATISTICS_INFO,tt.bind(this)),t.on(X.RECOMMEND_SEEKPOINT,ut.bind(this));break;case"destroy":t&&(t.destroy(),t=null),pe.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(Re.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let Me=Re.data.param;ie.applyConfig(Me),Me.enableCallback===!0?ie.addLogListener(n):ie.removeLogListener(n);break}}});function r(Re,Me){let Qe={msg:X.INIT_SEGMENT,data:{type:Re,data:Me}};pe.postMessage(Qe,[Me.data])}function s(Re,Me){let Qe={msg:X.MEDIA_SEGMENT,data:{type:Re,data:Me}};pe.postMessage(Qe,[Me.data])}function S(){let Re={msg:X.LOADING_COMPLETE};pe.postMessage(Re)}function L(){let Re={msg:X.RECOVERED_EARLY_EOF};pe.postMessage(Re)}function Ie(Re){let Me={msg:X.MEDIA_INFO,data:Re};pe.postMessage(Me)}function Se(Re){let Me={msg:X.METADATA_ARRIVED,data:Re};pe.postMessage(Me)}function Oe(Re){let Me={msg:X.SCRIPTDATA_ARRIVED,data:Re};pe.postMessage(Me)}function tt(Re){let Me={msg:X.STATISTICS_INFO,data:Re};pe.postMessage(Me)}function at(Re,Me){pe.postMessage({msg:X.IO_ERROR,data:{type:Re,info:Me}})}function Ze(Re,Me){pe.postMessage({msg:X.DEMUX_ERROR,data:{type:Re,info:Me}})}function ut(Re){pe.postMessage({msg:X.RECOMMEND_SEEKPOINT,data:Re})}function We(Re,Me){pe.postMessage({msg:"logcat_callback",data:{type:Re,logcat:Me}})}};class nt{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new(q()),t.enableWorker&&typeof Worker!="undefined")try{let n=i(82059);this._worker=n(Ve),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 Ge(e,t)}else this._controller=new Ge(e,t);if(this._controller){let n=this._controller;n.on(X.IO_ERROR,this._onIOError.bind(this)),n.on(X.DEMUX_ERROR,this._onDemuxError.bind(this)),n.on(X.INIT_SEGMENT,this._onInitSegment.bind(this)),n.on(X.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),n.on(X.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),n.on(X.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),n.on(X.MEDIA_INFO,this._onMediaInfo.bind(this)),n.on(X.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),n.on(X.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),n.on(X.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),n.on(X.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(X.INIT_SEGMENT,e,t)})}_onMediaSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(X.MEDIA_SEGMENT,e,t)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(X.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(X.RECOVERED_EARLY_EOF)})}_onMediaInfo(e){Promise.resolve().then(()=>{this._emitter.emit(X.MEDIA_INFO,e)})}_onMetaDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(X.METADATA_ARRIVED,e)})}_onScriptDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(X.SCRIPTDATA_ARRIVED,e)})}_onStatisticsInfo(e){Promise.resolve().then(()=>{this._emitter.emit(X.STATISTICS_INFO,e)})}_onIOError(e,t){Promise.resolve().then(()=>{this._emitter.emit(X.IO_ERROR,e,t)})}_onDemuxError(e,t){Promise.resolve().then(()=>{this._emitter.emit(X.DEMUX_ERROR,e,t)})}_onRecommendSeekpoint(e){Promise.resolve().then(()=>{this._emitter.emit(X.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 X.INIT_SEGMENT:case X.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case X.LOADING_COMPLETE:case X.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case X.MEDIA_INFO:Object.setPrototypeOf(n,Ae.prototype),this._emitter.emit(t.msg,n);break;case X.METADATA_ARRIVED:case X.SCRIPTDATA_ARRIVED:case X.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case X.IO_ERROR:case X.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case X.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":f.emitter.emit("log",n.type,n.logcat);break;default:break}}}var yt=nt,lt={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class pt{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 _e("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 S=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(r);S.addEventListener("error",this.e.onSourceBufferError),S.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(S){f.e(this.TAG,S.message),this._emitter.emit(lt.ERROR,{code:S.code,msg:S.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 S=n.buffered.start(s),L=n.buffered.end(s);this._pendingRemoveRanges[t].push({start:S,end:L})}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 S=0;S<r.length;S++){let L=r.start(S),Ie=r.end(S);if(L<=e&&e<Ie+3){if(e-L>=this._config.autoCleanupMaxBackwardDuration){s=!0;let Se=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:L,end:Se})}}else Ie<e&&(s=!0,this._pendingRemoveRanges[t].push({start:L,end:Ie}))}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(lt.BUFFER_FULL),this._isBufferFull=!0):(f.e(this.TAG,r.message),this._emitter.emit(lt.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(lt.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(lt.UPDATE_END)}_onSourceBufferError(e){f.e(this.TAG,`SourceBuffer Error: ${e}`)}}var Ue=pt;const Ke={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},rt={NETWORK_EXCEPTION:re.EXCEPTION,NETWORK_STATUS_CODE_INVALID:re.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:re.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:re.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 ue("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===V.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(V.MEDIA_INFO,this.mediaInfo)}):e===V.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(V.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(lt.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(lt.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(lt.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(lt.ERROR,t=>{this._emitter.emit(V.ERROR,Ke.MEDIA_ERROR,rt.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 _e("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new _e("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 yt(this._mediaDataSource,this._config),this._transmuxer.on(X.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(X.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(X.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(V.LOADING_COMPLETE)}),this._transmuxer.on(X.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(V.RECOVERED_EARLY_EOF)}),this._transmuxer.on(X.IO_ERROR,(e,t)=>{this._emitter.emit(V.ERROR,Ke.NETWORK_ERROR,e,t)}),this._transmuxer.on(X.DEMUX_ERROR,(e,t)=>{this._emitter.emit(V.ERROR,Ke.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(X.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(V.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(X.METADATA_ARRIVED,e=>{this._emitter.emit(V.METADATA_ARRIVED,e)}),this._transmuxer.on(X.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(V.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(X.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(V.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(X.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 S=e.start(s),L=e.end(s);if(S<=t&&t<L){n=S,r=L;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),S=t.end(r);if(e>=s&&e<S){e>=S-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 mt=Et;class Ct{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 ue("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new ue(`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===V.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(V.MEDIA_INFO,this.mediaInfo)}):e===V.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(V.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 _e("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(V.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(V.STATISTICS_INFO,this.statisticsInfo)}}var At=Ct;x.install();function ht(pe,e){let t=pe;if(t==null||typeof t!="object")throw new ue("MediaDataSource must be an javascript object!");if(!t.hasOwnProperty("type"))throw new ue("MediaDataSource must has type field to indicate video file type!");switch(t.type){case"flv":return new mt(t,e);default:return new At(t,e)}}function Rt(){return J.supportMSEH264Playback()}function it(){return J.getFeatureList()}let dt={};dt.createPlayer=ht,dt.isSupported=Rt,dt.getFeatureList=it,dt.BaseLoader=te,dt.LoaderStatus=d,dt.LoaderErrors=re,dt.Events=V,dt.ErrorTypes=Ke,dt.ErrorDetails=rt,dt.FlvPlayer=mt,dt.NativePlayer=At,dt.LoggingControl=ie,Object.defineProperty(dt,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var He=dt},98447:function(vt,Ne,i){"use strict";i.d(Ne,{C2:function(){return A}});var g=i(17313),x=i(37613),F=i(83116);const q=f=>{const{checkboxCls:ce}=f,se=`${ce}-wrapper`;return[{[`${ce}-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}}}),[ce]:Object.assign(Object.assign({},(0,g.Wf)(f)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:f.borderRadiusSM,alignSelf:"center",[`${ce}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ce}-inner`]:Object.assign({},(0,g.oN)(f))},[`${ce}-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),
|
|
${ce}:not(${ce}-disabled)
|
|
`]:{[`&:hover ${ce}-inner`]:{borderColor:f.colorPrimary}},[`${se}:not(${se}-disabled)`]:{[`&:hover ${ce}-checked:not(${ce}-disabled) ${ce}-inner`]:{backgroundColor:f.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ce}-checked:not(${ce}-disabled):after`]:{borderColor:f.colorPrimaryHover}}},{[`${ce}-checked`]:{[`${ce}-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),
|
|
${ce}-checked:not(${ce}-disabled)
|
|
`]:{[`&:hover ${ce}-inner`]:{backgroundColor:f.colorPrimaryHover,borderColor:"transparent"}}},{[ce]:{"&-indeterminate":{[`${ce}-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"},[`${ce}-disabled`]:{[`&, ${ce}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ce}-inner`]:{background:f.colorBgContainerDisabled,borderColor:f.colorBorder,"&:after":{borderColor:f.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:f.colorTextDisabled},[`&${ce}-indeterminate ${ce}-inner::after`]:{background:f.colorTextDisabled}}}]};function A(f,ce){const se=(0,x.TS)(ce,{checkboxCls:`.${f}`,checkboxSize:ce.controlInteractiveSize});return[q(se)]}Ne.ZP=(0,F.Z)("Checkbox",(f,ce)=>{let{prefixCls:se}=ce;return[A(se,f)]})},91857:function(vt,Ne,i){"use strict";var g=i(59301),x=i(38819),F=i(92310),q=i.n(F),A=i(31561),f=i(70425),ce=i(18929),se=i(2738),oe=i(79676),_e=i(53487),ue=i(92343),$=i(36355),d=i(20834),re=i(40875),te=i(88088),Z=i(47211);const Ee=null,K=C=>{const{menu:N,arrow:k,prefixCls:w,children:ne,trigger:Q,disabled:he,dropdownRender:D,getPopupContainer:be,overlayClassName:R,rootClassName:P,open:v,onOpenChange:B,visible:ve,onVisibleChange:H,mouseEnterDelay:le=.15,mouseLeaveDelay:J=.1,autoAdjustOverflow:O=!0,placement:V="",overlay:ee,transitionName:ie}=C,{getPopupContainer:ge,getPrefixCls:Ae,direction:Pe}=g.useContext($.E_),xe=g.useMemo(()=>{const c=Ae();return ie!==void 0?ie:V.includes("top")?`${c}-slide-down`:`${c}-slide-up`},[Ae,V,ie]),Je=g.useMemo(()=>V?V.includes("Center")?V.slice(0,V.indexOf("Center")):V:Pe==="rtl"?"bottomRight":"bottomLeft",[V,Pe]),ke=Ae("dropdown",w),[ze,je]=(0,Z.Z)(ke),[,G]=(0,te.Z)(),we=g.Children.only(ne),h=(0,ue.Tm)(we,{className:q()(`${ke}-trigger`,{[`${ke}-rtl`]:Pe==="rtl"},we.props.className),disabled:he}),y=he?[]:Q;let m;y&&y.includes("contextMenu")&&(m=!0);const[a,b]=(0,ce.Z)(!1,{value:v!=null?v:ve}),z=(0,f.useEvent)(c=>{B==null||B(c),H==null||H(c),b(c)}),E=q()(R,P,je,{[`${ke}-rtl`]:Pe==="rtl"}),l=(0,oe.Z)({arrowPointAtCenter:typeof k=="object"&&k.pointAtCenter,autoAdjustOverflow:O,offset:G.marginXXS,arrowWidth:k?G.sizePopupArrow:0,borderRadius:G.borderRadius}),p=g.useCallback(()=>{b(!1)},[]),o=()=>{let c;return N!=null&&N.items?c=g.createElement(d.default,Object.assign({},N)):typeof ee=="function"?c=ee():c=ee,D&&(c=D(c)),c=g.Children.only(typeof c=="string"?g.createElement("span",null,c):c),g.createElement(re.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:I}=_}},c)};return ze(g.createElement(A.Z,Object.assign({alignPoint:m},(0,se.Z)(C,["rootClassName"]),{mouseEnterDelay:le,mouseLeaveDelay:J,visible:a,builtinPlacements:l,arrow:!!k,overlayClassName:E,prefixCls:ke,getPopupContainer:be||ge,transitionName:xe,trigger:y,overlay:o,placement:Je,onVisibleChange:z}),h))};function T(C){return Object.assign(Object.assign({},C),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const M=(0,_e.Z)(K,"dropdown",C=>C,T),u=C=>g.createElement(M,Object.assign({},C),g.createElement("span",null));K._InternalPanelDoNotUseOrYouWillBeFired=u,Ne.Z=K},38854:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return te}});var g=i(91857),x=i(92310),F=i.n(x),q=i(59301),A=i(18785),f=i(3113),ce=i(36355),se=i(81327),oe=i(33234),_e=i(47211),ue=function(Z,Ee){var K={};for(var T in Z)Object.prototype.hasOwnProperty.call(Z,T)&&Ee.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++)Ee.indexOf(T[M])<0&&Object.prototype.propertyIsEnumerable.call(Z,T[M])&&(K[T[M]]=Z[T[M]]);return K};const $=Z=>{const{getPopupContainer:Ee,getPrefixCls:K,direction:T}=q.useContext(ce.E_),{prefixCls:M,type:u="default",danger:C,disabled:N,loading:k,onClick:w,htmlType:ne,children:Q,className:he,menu:D,arrow:be,autoFocus:R,overlay:P,trigger:v,align:B,open:ve,onOpenChange:H,placement:le,getPopupContainer:J,href:O,icon:V=q.createElement(A.Z,null),title:ee,buttonsRender:ie=o=>o,mouseEnterDelay:ge,mouseLeaveDelay:Ae,overlayClassName:Pe,overlayStyle:xe,destroyPopupOnHide:Je,dropdownRender:ke}=Z,ze=ue(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"]),je=K("dropdown",M),G=`${je}-button`,[we,h]=(0,_e.Z)(je),y={menu:D,arrow:be,autoFocus:R,align:B,disabled:N,trigger:N?[]:v,onOpenChange:H,getPopupContainer:J||Ee,mouseEnterDelay:ge,mouseLeaveDelay:Ae,overlayClassName:Pe,overlayStyle:xe,destroyPopupOnHide:Je,dropdownRender:ke},{compactSize:m,compactItemClassnames:a}=(0,oe.ri)(je,T),b=F()(G,a,he,h);"overlay"in Z&&(y.overlay=P),"open"in Z&&(y.open=ve),"placement"in Z?y.placement=le:y.placement=T==="rtl"?"bottomLeft":"bottomRight";const z=q.createElement(f.ZP,{type:u,danger:C,disabled:N,loading:k,onClick:w,htmlType:ne,href:O,title:ee},Q),E=q.createElement(f.ZP,{type:u,danger:C,icon:V}),[l,p]=ie([z,E]);return we(q.createElement(se.Z.Compact,Object.assign({className:b,size:m,block:!0},ze),l,q.createElement(g.Z,Object.assign({},y),p)))};$.__ANT_BUTTON=!0;var d=$;const re=g.Z;re.Button=d;var te=re},47211:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return ue}});var g=i(17313),x=i(13826),F=i(92899),q=i(29878),A=i(19447),f=i(83116),ce=i(37613),oe=$=>{const{componentCls:d,menuCls:re,colorError:te,colorTextLightSolid:Z}=$,Ee=`${re}-item`;return{[`${d}, ${d}-menu-submenu`]:{[`${re} ${Ee}`]:{[`&${Ee}-danger:not(${Ee}-disabled)`]:{color:te,"&:hover":{color:Z,backgroundColor:te}}}}}};const _e=$=>{const{componentCls:d,menuCls:re,zIndexPopup:te,dropdownArrowDistance:Z,sizePopupArrow:Ee,antCls:K,iconCls:T,motionDurationMid:M,dropdownPaddingVertical:u,fontSize:C,dropdownEdgeChildPadding:N,colorTextDisabled:k,fontSizeIcon:w,controlPaddingHorizontal:ne,colorBgElevated:Q}=$;return[{[d]:Object.assign(Object.assign({},(0,g.Wf)($)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:te,display:"block","&::before":{position:"absolute",insetBlock:-Z+Ee/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${K}-btn`]:{[`& > ${T}-down, & > ${K}-btn-icon > ${T}-down`]:{fontSize:w}},[`${d}-wrap`]:{position:"relative",[`${K}-btn > ${T}-down`]:{fontSize:w},[`${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:Q,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${d} ${re}`]:{position:"relative",margin:0},[`${re}-submenu-popup`]:{position:"absolute",zIndex:te,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${d}, ${d}-menu-submenu`]:{[re]:Object.assign(Object.assign({padding:N,listStyleType:"none",backgroundColor:Q,backgroundClip:"padding-box",borderRadius:$.borderRadiusLG,outline:"none",boxShadow:$.boxShadowSecondary},(0,g.Qy)($)),{[`${re}-item-group-title`]:{padding:`${u}px ${ne}px`,color:$.colorTextDescription,transition:`all ${M}`},[`${re}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${re}-item-icon`]:{minWidth:C,marginInlineEnd:$.marginXS,fontSize:$.fontSizeSM},[`${re}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${M}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${re}-item, ${re}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${u}px ${ne}px`,color:$.colorText,fontWeight:"normal",fontSize:C,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:Q,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:w,fontStyle:"normal"}}}),[`${re}-item-group-list`]:{margin:`0 ${$.marginXS}px`,padding:0,listStyle:"none"},[`${re}-submenu-title`]:{paddingInlineEnd:ne+$.fontSizeSM},[`${re}-submenu-vertical`]:{position:"relative"},[`${re}-submenu${re}-submenu-disabled ${d}-menu-submenu-title`]:{[`&, ${d}-menu-submenu-arrow-icon`]:{color:k,backgroundColor:Q,cursor:"not-allowed"}},[`${re}-submenu-selected ${d}-menu-submenu-title`]:{color:$.colorPrimary}})}},[(0,x.oN)($,"slide-up"),(0,x.oN)($,"slide-down"),(0,F.Fm)($,"move-up"),(0,F.Fm)($,"move-down"),(0,q._y)($,"zoom-big")]]};var ue=(0,f.Z)("Dropdown",($,d)=>{let{rootPrefixCls:re}=d;const{marginXXS:te,sizePopupArrow:Z,controlHeight:Ee,fontSize:K,lineHeight:T,paddingXXS:M,componentCls:u,borderRadiusLG:C}=$,N=(Ee-K*T)/2,{dropdownArrowOffset:k}=(0,A.fS)({contentRadius:C}),w=(0,ce.TS)($,{menuCls:`${u}-menu`,rootPrefixCls:re,dropdownArrowDistance:Z/2+te,dropdownArrowOffset:k,dropdownPaddingVertical:N,dropdownEdgeChildPadding:M});return[_e(w),oe(w)]},$=>({zIndexPopup:$.zIndexPopupBase+50}))},64165:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return M}});var g=i(92310),x=i.n(g),F=i(59301),q=i(36355),A=i(9763),f=i(64993),ce=i(88088),oe=()=>{const[,u]=(0,ce.Z)(),N=new f.C(u.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return F.createElement("svg",{style:N,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},F.createElement("g",{fill:"none",fillRule:"evenodd"},F.createElement("g",{transform:"translate(24 31.67)"},F.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),F.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"}),F.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)"}),F.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"}),F.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"})),F.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"}),F.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},F.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),F.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ue=()=>{const[,u]=(0,ce.Z)(),{colorFill:C,colorFillTertiary:N,colorFillQuaternary:k,colorBgContainer:w}=u,{borderColor:ne,shadowColor:Q,contentColor:he}=(0,F.useMemo)(()=>({borderColor:new f.C(C).onBackground(w).toHexShortString(),shadowColor:new f.C(N).onBackground(w).toHexShortString(),contentColor:new f.C(k).onBackground(w).toHexShortString()}),[C,N,k,w]);return F.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},F.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},F.createElement("ellipse",{fill:Q,cx:"32",cy:"33",rx:"32",ry:"7"}),F.createElement("g",{fillRule:"nonzero",stroke:ne},F.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"}),F.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:he}))))},$=i(83116),d=i(37613);const re=u=>{const{componentCls:C,margin:N,marginXS:k,marginXL:w,fontSize:ne,lineHeight:Q}=u;return{[C]:{marginInline:k,fontSize:ne,lineHeight:Q,textAlign:"center",[`${C}-image`]:{height:u.emptyImgHeight,marginBottom:k,opacity:u.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${C}-description`]:{color:u.colorText},[`${C}-footer`]:{marginTop:N},"&-normal":{marginBlock:w,color:u.colorTextDisabled,[`${C}-description`]:{color:u.colorTextDisabled},[`${C}-image`]:{height:u.emptyImgHeightMD}},"&-small":{marginBlock:k,color:u.colorTextDisabled,[`${C}-image`]:{height:u.emptyImgHeightSM}}}}};var te=(0,$.Z)("Empty",u=>{const{componentCls:C,controlHeightLG:N}=u,k=(0,d.TS)(u,{emptyImgCls:`${C}-img`,emptyImgHeight:N*2.5,emptyImgHeightMD:N,emptyImgHeightSM:N*.875});return[re(k)]}),Z=function(u,C){var N={};for(var k in u)Object.prototype.hasOwnProperty.call(u,k)&&C.indexOf(k)<0&&(N[k]=u[k]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,k=Object.getOwnPropertySymbols(u);w<k.length;w++)C.indexOf(k[w])<0&&Object.prototype.propertyIsEnumerable.call(u,k[w])&&(N[k[w]]=u[k[w]]);return N};const Ee=F.createElement(oe,null),K=F.createElement(ue,null),T=u=>{var{className:C,rootClassName:N,prefixCls:k,image:w=Ee,description:ne,children:Q,imageStyle:he,style:D}=u,be=Z(u,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:R,direction:P,empty:v}=F.useContext(q.E_),B=R("empty",k),[ve,H]=te(B),[le]=(0,A.Z)("Empty"),J=typeof ne!="undefined"?ne:le==null?void 0:le.description,O=typeof J=="string"?J:"empty";let V=null;return typeof w=="string"?V=F.createElement("img",{alt:O,src:w}):V=w,ve(F.createElement("div",Object.assign({className:x()(H,B,v==null?void 0:v.className,{[`${B}-normal`]:w===K,[`${B}-rtl`]:P==="rtl"},C,N),style:Object.assign(Object.assign({},v==null?void 0:v.style),D)},be),F.createElement("div",{className:`${B}-image`,style:he},V),J&&F.createElement("div",{className:`${B}-description`},J),Q&&F.createElement("div",{className:`${B}-footer`},Q)))};T.PRESENTED_IMAGE_DEFAULT=Ee,T.PRESENTED_IMAGE_SIMPLE=K;var M=T},45818:function(vt,Ne,i){"use strict";i.d(Ne,{D:function(){return M},Z:function(){return N}});var g=i(14809),x=i(59301),F={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=F,A=i(7657),f=function(w,ne){return x.createElement(A.Z,(0,g.Z)({},w,{ref:ne,icon:q}))},ce=x.forwardRef(f),se=ce,oe=i(33853),_e=i(38819),ue=i(92310),$=i.n(ue),d=i(2738),te=k=>!isNaN(parseFloat(k))&&isFinite(k),Z=i(36355),Ee=i(84966),K=function(k,w){var ne={};for(var Q in k)Object.prototype.hasOwnProperty.call(k,Q)&&w.indexOf(Q)<0&&(ne[Q]=k[Q]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,Q=Object.getOwnPropertySymbols(k);he<Q.length;he++)w.indexOf(Q[he])<0&&Object.prototype.propertyIsEnumerable.call(k,Q[he])&&(ne[Q[he]]=k[Q[he]]);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 w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return k+=1,`${w}${k}`}})();var N=x.forwardRef((k,w)=>{const{prefixCls:ne,className:Q,trigger:he,children:D,defaultCollapsed:be=!1,theme:R="dark",style:P={},collapsible:v=!1,reverseArrow:B=!1,width:ve=200,collapsedWidth:H=80,zeroWidthTriggerStyle:le,breakpoint:J,onCollapse:O,onBreakpoint:V}=k,ee=K(k,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ie}=(0,x.useContext)(Ee.Gs),[ge,Ae]=(0,x.useState)("collapsed"in k?k.collapsed:be),[Pe,xe]=(0,x.useState)(!1);(0,x.useEffect)(()=>{"collapsed"in k&&Ae(k.collapsed)},[k.collapsed]);const Je=(h,y)=>{"collapsed"in k||Ae(h),O==null||O(h,y)},ke=(0,x.useRef)();ke.current=h=>{xe(h.matches),V==null||V(h.matches),ge!==h.matches&&Je(h.matches,"responsive")},(0,x.useEffect)(()=>{function h(m){return ke.current(m)}let y;if(typeof window!="undefined"){const{matchMedia:m}=window;if(m&&J&&J in T){y=m(`(max-width: ${T[J]})`);try{y.addEventListener("change",h)}catch(a){y.addListener(h)}h(y)}}return()=>{try{y==null||y.removeEventListener("change",h)}catch(m){y==null||y.removeListener(h)}}},[J]),(0,x.useEffect)(()=>{const h=u("ant-sider-");return ie.addSider(h),()=>ie.removeSider(h)},[]);const ze=()=>{Je(!ge,"clickTrigger")},{getPrefixCls:je}=(0,x.useContext)(Z.E_),G=()=>{const h=je("layout-sider",ne),y=(0,d.Z)(ee,["collapsed"]),m=ge?H:ve,a=te(m)?`${m}px`:String(m),b=parseFloat(String(H||0))===0?x.createElement("span",{onClick:ze,className:$()(`${h}-zero-width-trigger`,`${h}-zero-width-trigger-${B?"right":"left"}`),style:le},he||x.createElement(se,null)):null,l={expanded:B?x.createElement(_e.Z,null):x.createElement(oe.Z,null),collapsed:B?x.createElement(oe.Z,null):x.createElement(_e.Z,null)}[ge?"collapsed":"expanded"],p=he!==null?b||x.createElement("div",{className:`${h}-trigger`,onClick:ze,style:{width:a}},he||l):null,o=Object.assign(Object.assign({},P),{flex:`0 0 ${a}`,maxWidth:a,minWidth:a,width:a}),c=$()(h,`${h}-${R}`,{[`${h}-collapsed`]:!!ge,[`${h}-has-trigger`]:v&&he!==null&&!b,[`${h}-below`]:!!Pe,[`${h}-zero-width`]:parseFloat(a)===0},Q);return x.createElement("aside",Object.assign({className:c},y,{style:o,ref:w}),x.createElement("div",{className:`${h}-children`},D),v||Pe&&b?p:null)},we=x.useMemo(()=>({siderCollapsed:ge}),[ge]);return x.createElement(M.Provider,{value:we},G())})},84966:function(vt,Ne,i){"use strict";i.d(Ne,{VY:function(){return M},$_:function(){return T},h4:function(){return K},Gs:function(){return d},ZP:function(){return u}});var g=i(95190),x=i(92310),F=i.n(x),q=i(2738),A=i(59301),f=i(36355),ce=i(83116),oe=C=>{const{componentCls:N,bodyBg:k,lightSiderBg:w,lightTriggerBg:ne,lightTriggerColor:Q}=C;return{[`${N}-sider-light`]:{background:w,[`${N}-sider-trigger`]:{color:Q,background:ne},[`${N}-sider-zero-width-trigger`]:{color:Q,background:ne,border:`1px solid ${k}`,borderInlineStart:0}}}};const _e=C=>{const{antCls:N,componentCls:k,colorText:w,triggerColor:ne,footerBg:Q,triggerBg:he,headerHeight:D,headerPadding:be,headerColor:R,footerPadding:P,triggerHeight:v,zeroTriggerHeight:B,zeroTriggerWidth:ve,motionDurationMid:H,motionDurationSlow:le,fontSize:J,borderRadius:O,bodyBg:V,headerBg:ee,siderBg:ie}=C;return{[k]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:V,"&, *":{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:he,cursor:"pointer",transition:`all ${H}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:D,insetInlineEnd:-ve,zIndex:1,width:ve,height:B,color:ne,fontSize:C.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ie,borderStartStartRadius:0,borderStartEndRadius:O,borderEndEndRadius:O,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:-ve,borderStartStartRadius:O,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:O}}}}},oe(C)),{"&-rtl":{direction:"rtl"}}),[`${k}-header`]:{height:D,padding:be,color:R,lineHeight:`${D}px`,background:ee,[`${N}-menu`]:{lineHeight:"inherit"}},[`${k}-footer`]:{padding:P,color:w,fontSize:J,background:Q},[`${k}-content`]:{flex:"auto",minHeight:0}}};var ue=(0,ce.Z)("Layout",C=>[_e(C)],C=>{const{colorBgLayout:N,controlHeight:k,controlHeightLG:w,colorText:ne,controlHeightSM:Q,marginXXS:he,colorTextLightSolid:D,colorBgContainer:be}=C,R=w*1.25;return{colorBgHeader:"#001529",colorBgBody:N,colorBgTrigger:"#002140",bodyBg:N,headerBg:"#001529",headerHeight:k*2,headerPadding:`0 ${R}px`,headerColor:ne,footerPadding:`${Q}px ${R}px`,footerBg:N,siderBg:"#001529",triggerHeight:w+he*2,triggerBg:"#002140",triggerColor:D,zeroTriggerWidth:w,zeroTriggerHeight:w,lightSiderBg:be,lightTriggerBg:be,lightTriggerColor:ne}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),$=function(C,N){var k={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&N.indexOf(w)<0&&(k[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,w=Object.getOwnPropertySymbols(C);ne<w.length;ne++)N.indexOf(w[ne])<0&&Object.prototype.propertyIsEnumerable.call(C,w[ne])&&(k[w[ne]]=C[w[ne]]);return k};const d=A.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function re(C){let{suffixCls:N,tagName:k,displayName:w}=C;return ne=>A.forwardRef((he,D)=>A.createElement(ne,Object.assign({ref:D,suffixCls:N,tagName:k},he)))}const te=A.forwardRef((C,N)=>{const{prefixCls:k,suffixCls:w,className:ne,tagName:Q}=C,he=$(C,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:D}=A.useContext(f.E_),be=D("layout",k),[R,P]=ue(be),v=w?`${be}-${w}`:be;return R(A.createElement(Q,Object.assign({className:F()(k||v,ne,P),ref:N},he)))}),Z=A.forwardRef((C,N)=>{const{direction:k}=A.useContext(f.E_),[w,ne]=A.useState([]),{prefixCls:Q,className:he,rootClassName:D,children:be,hasSider:R,tagName:P,style:v}=C,B=$(C,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ve=(0,q.Z)(B,["suffixCls"]),{getPrefixCls:H,layout:le}=A.useContext(f.E_),J=H("layout",Q),[O,V]=ue(J),ee=F()(J,{[`${J}-has-sider`]:typeof R=="boolean"?R:w.length>0,[`${J}-rtl`]:k==="rtl"},le==null?void 0:le.className,he,D,V),ie=A.useMemo(()=>({siderHook:{addSider:ge=>{ne(Ae=>[].concat((0,g.Z)(Ae),[ge]))},removeSider:ge=>{ne(Ae=>Ae.filter(Pe=>Pe!==ge))}}}),[]);return O(A.createElement(d.Provider,{value:ie},A.createElement(P,Object.assign({ref:N,className:ee,style:Object.assign(Object.assign({},le==null?void 0:le.style),v)},ve),be)))}),Ee=re({tagName:"div",displayName:"Layout"})(Z),K=re({suffixCls:"header",tagName:"header",displayName:"Header"})(te),T=re({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(te),M=re({suffixCls:"content",tagName:"main",displayName:"Content"})(te);var u=Ee},40875:function(vt,Ne,i){"use strict";i.d(Ne,{J:function(){return f}});var g=i(59301),x=i(33234),F=i(70425),q=function(ce,se){var oe={};for(var _e in ce)Object.prototype.hasOwnProperty.call(ce,_e)&&se.indexOf(_e)<0&&(oe[_e]=ce[_e]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,_e=Object.getOwnPropertySymbols(ce);ue<_e.length;ue++)se.indexOf(_e[ue])<0&&Object.prototype.propertyIsEnumerable.call(ce,_e[ue])&&(oe[_e[ue]]=ce[_e[ue]]);return oe};const A=g.createContext(null),f=g.forwardRef((ce,se)=>{const{children:oe}=ce,_e=q(ce,["children"]),ue=g.useContext(A),$=g.useMemo(()=>Object.assign(Object.assign({},ue),_e),[ue,_e.prefixCls,_e.mode,_e.selectable]);return g.createElement(A.Provider,{value:$},g.createElement(x.BR,null,(0,F.supportNodeRef)(oe)?g.cloneElement(oe,{ref:se}):oe))});Ne.Z=A},20834:function(vt,Ne,i){"use strict";i.d(Ne,{default:function(){return we}});var g=i(15285),x=i(59301),F=i(45818),q=i(92310),A=i.n(q),f=i(36355),ce=function(h,y){var m={};for(var a in h)Object.prototype.hasOwnProperty.call(h,a)&&y.indexOf(a)<0&&(m[a]=h[a]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,a=Object.getOwnPropertySymbols(h);b<a.length;b++)y.indexOf(a[b])<0&&Object.prototype.propertyIsEnumerable.call(h,a[b])&&(m[a[b]]=h[a[b]]);return m},oe=h=>{const{prefixCls:y,className:m,dashed:a}=h,b=ce(h,["prefixCls","className","dashed"]),{getPrefixCls:z}=x.useContext(f.E_),E=z("menu",y),l=A()({[`${E}-item-divider-dashed`]:!!a},m);return x.createElement(g.iz,Object.assign({className:l},b))},_e=i(11592),ue=i(2738),$=i(6848),d=i(92343),te=(0,x.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Ee=h=>{var y;const{className:m,children:a,icon:b,title:z,danger:E}=h,{prefixCls:l,firstLevel:p,direction:o,disableMenuItemTitleTooltip:c,inlineCollapsed:_}=x.useContext(te),I=Ce=>{const Te=x.createElement("span",{className:`${l}-title-content`},a);return(!b||(0,d.l$)(a)&&a.type==="span")&&a&&Ce&&p&&typeof a=="string"?x.createElement("div",{className:`${l}-inline-collapsed-noicon`},a.charAt(0)):Te},{siderCollapsed:U}=x.useContext(F.D);let fe=z;typeof z=="undefined"?fe=p?a:"":z===!1&&(fe="");const ae={title:fe};!U&&!_&&(ae.title=null,ae.open=!1);const me=(0,_e.Z)(a).length;let Y=x.createElement(g.ck,Object.assign({},(0,ue.Z)(h,["title","icon","danger"]),{className:A()({[`${l}-item-danger`]:E,[`${l}-item-only-child`]:(b?me+1:me)===1},m),title:typeof z=="string"?z: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`)}),I(_));return c||(Y=x.createElement($.Z,Object.assign({},ae,{placement:o==="rtl"?"left":"right",overlayClassName:`${l}-inline-collapsed-tooltip`}),Y)),Y},T=h=>{var y;const{popupClassName:m,icon:a,title:b,theme:z}=h,E=x.useContext(te),{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 U=(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`)}),U?b:x.createElement("span",{className:`${l}-title-content`},b))}const I=x.useMemo(()=>Object.assign(Object.assign({},E),{firstLevel:!1}),[E]);return x.createElement(te.Provider,{value:I},x.createElement(g.Wd,Object.assign({},(0,ue.Z)(h,["icon"]),{title:_,popupClassName:A()(l,m,`${l}-${z||o}`)})))},M=i(18785),u=i(70425),C=i(62892),N=i(40875),k=function(h,y){var m={};for(var a in h)Object.prototype.hasOwnProperty.call(h,a)&&y.indexOf(a)<0&&(m[a]=h[a]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,a=Object.getOwnPropertySymbols(h);b<a.length;b++)y.indexOf(a[b])<0&&Object.prototype.propertyIsEnumerable.call(h,a[b])&&(m[a[b]]=h[a[b]]);return m};function w(h){return(h||[]).map((y,m)=>{if(y&&typeof y=="object"){const a=y,{label:b,children:z,key:E,type:l}=a,p=k(a,["label","children","key","type"]),o=E!=null?E:`tmp-${m}`;return z||l==="group"?l==="group"?x.createElement(g.BW,Object.assign({key:o},p,{title:b}),w(z)):x.createElement(T,Object.assign({key:o},p,{title:b}),w(z)):l==="divider"?x.createElement(oe,Object.assign({key:o},p)):x.createElement(Ee,Object.assign({key:o},p),b)}return null}).filter(y=>y)}function ne(h){return x.useMemo(()=>h&&w(h),[h])}var Q=i(64993),he=i(17313),D=i(8378),be=i(13826),R=i(29878),P=i(83116),v=i(37613),ve=h=>{const{componentCls:y,motionDurationSlow:m,horizontalLineHeight:a,colorSplit:b,lineWidth:z,lineType:E,itemPaddingInline:l}=h;return{[`${y}-horizontal`]:{lineHeight:a,border:0,borderBottom:`${z}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 ${m}`,`background ${m}`].join(",")},[`${y}-submenu-arrow`]:{display:"none"}}}},le=h=>{let{componentCls:y,menuArrowOffset:m}=h;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(-${m})`},"&::after":{transform:`rotate(45deg) translateY(${m})`}}}}};const J=h=>Object.assign({},(0,he.oN)(h));var V=(h,y)=>{const{componentCls:m,itemColor:a,itemSelectedColor:b,groupTitleColor:z,itemBg:E,subMenuItemBg:l,itemSelectedBg:p,activeBarHeight:o,activeBarWidth:c,activeBarBorderWidth:_,motionDurationSlow:I,motionEaseInOut:U,motionEaseOut:fe,itemPaddingInline:ae,motionDurationMid:me,itemHoverColor:Y,lineType:Ce,colorSplit:Te,itemDisabledColor:X,dangerItemColor:Be,dangerItemHoverColor:Ge,dangerItemSelectedColor:Fe,dangerItemActiveBg:Ve,dangerItemSelectedBg:nt,itemHoverBg:yt,itemActiveBg:st,menuSubMenuBg:lt,horizontalItemSelectedColor:pt,horizontalItemSelectedBg:Ue,horizontalItemBorderRadius:Ke,horizontalItemHoverBg:rt,popupBg:Et}=h;return{[`${m}-${y}, ${m}-${y} > ${m}`]:{color:a,background:E,[`&${m}-root:focus-visible`]:Object.assign({},J(h)),[`${m}-item-group-title`]:{color:z},[`${m}-submenu-selected`]:{[`> ${m}-submenu-title`]:{color:b}},[`${m}-item-disabled, ${m}-submenu-disabled`]:{color:`${X} !important`},[`${m}-item:not(${m}-item-selected):not(${m}-submenu-selected)`]:{[`&:hover, > ${m}-submenu-title:hover`]:{color:Y}},[`&:not(${m}-horizontal)`]:{[`${m}-item:not(${m}-item-selected)`]:{"&:hover":{backgroundColor:yt},"&:active":{backgroundColor:st}},[`${m}-submenu-title`]:{"&:hover":{backgroundColor:yt},"&:active":{backgroundColor:st}}},[`${m}-item-danger`]:{color:Be,[`&${m}-item:hover`]:{[`&:not(${m}-item-selected):not(${m}-submenu-selected)`]:{color:Ge}},[`&${m}-item:active`]:{background:Ve}},[`${m}-item a`]:{"&, &:hover":{color:"inherit"}},[`${m}-item-selected`]:{color:b,[`&${m}-item-danger`]:{color:Fe},"a, a:hover":{color:"inherit"}},[`& ${m}-item-selected`]:{backgroundColor:p,[`&${m}-item-danger`]:{backgroundColor:nt}},[`${m}-item, ${m}-submenu-title`]:{[`&:not(${m}-item-disabled):focus-visible`]:Object.assign({},J(h))},[`&${m}-submenu > ${m}`]:{backgroundColor:lt},[`&${m}-popup > ${m}`]:{backgroundColor:Et},[`&${m}-horizontal`]:Object.assign(Object.assign({},y==="dark"?{borderBottom:0}:{}),{[`> ${m}-item, > ${m}-submenu`]:{top:_,marginTop:-_,marginBottom:0,borderRadius:Ke,"&::after":{position:"absolute",insetInline:ae,bottom:0,borderBottom:`${o}px solid transparent`,transition:`border-color ${I} ${U}`,content:'""'},"&:hover, &-active, &-open":{background:rt,"&::after":{borderBottomWidth:o,borderBottomColor:pt}},"&-selected":{color:pt,backgroundColor:Ue,"&:hover":{backgroundColor:Ue},"&::after":{borderBottomWidth:o,borderBottomColor:pt}}}}),[`&${m}-root`]:{[`&${m}-inline, &${m}-vertical`]:{borderInlineEnd:`${_}px ${Ce} ${Te}`}},[`&${m}-inline`]:{[`${m}-sub${m}-inline`]:{background:l},[`${m}-item, ${m}-submenu-title`]:_&&c?{width:`calc(100% + ${_}px)`}:{},[`${m}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${c}px solid ${b}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${me} ${fe}`,`opacity ${me} ${fe}`].join(","),content:'""'},[`&${m}-item-danger`]:{"&::after":{borderInlineEndColor:Fe}}},[`${m}-selected, ${m}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${me} ${U}`,`opacity ${me} ${U}`].join(",")}}}}}};const ee=h=>{const{componentCls:y,itemHeight:m,itemMarginInline:a,padding:b,menuArrowSize:z,marginXS:E,itemMarginBlock:l}=h,p=b+z+E;return{[`${y}-item`]:{position:"relative",overflow:"hidden"},[`${y}-item, ${y}-submenu-title`]:{height:m,lineHeight:`${m}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:m,lineHeight:`${m}px`},[`${y}-item-group-list ${y}-submenu-title,
|
|
${y}-submenu-title`]:{paddingInlineEnd:p}}};var ge=h=>{const{componentCls:y,iconCls:m,itemHeight:a,colorTextLightSolid:b,dropdownWidth:z,controlHeightLG:E,motionDurationMid:l,motionEaseOut:p,paddingXL:o,itemMarginInline:c,fontSizeLG:_,motionDurationSlow:I,paddingXS:U,boxShadowSecondary:fe,collapsedWidth:ae,collapsedIconSize:me}=h,Y={height:a,lineHeight:`${a}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[y]:{"&-inline, &-vertical":Object.assign({[`&${y}-root`]:{boxShadow:"none"}},ee(h))},[`${y}-submenu-popup`]:{[`${y}-vertical`]:Object.assign(Object.assign({},ee(h)),{boxShadow:fe})}},{[`${y}-submenu-popup ${y}-vertical${y}-sub`]:{minWidth:z,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 ${I}`,`background ${I}`,`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`]:Y,[`& ${y}-item-group-title`]:{paddingInlineStart:o}},[`${y}-item`]:Y}},{[`${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, ${m}`]:{margin:0,fontSize:me,lineHeight:`${a}px`,"+ span":{display:"inline-block",opacity:0}}},[`${y}-item-icon, ${m}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${y}-item-icon, ${m}`]:{display:"none"},"a, a:hover":{color:b}},[`${y}-item-group-title`]:Object.assign(Object.assign({},he.vS),{paddingInline:U})}}]};const Ae=h=>{const{componentCls:y,motionDurationSlow:m,motionDurationMid:a,motionEaseInOut:b,motionEaseOut:z,iconCls:E,iconSize:l,iconMarginInlineEnd:p}=h;return{[`${y}-item, ${y}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${m}`,`background ${m}`,`padding ${m} ${b}`].join(","),[`${y}-item-icon, ${E}`]:{minWidth:l,fontSize:l,transition:[`font-size ${a} ${z}`,`margin ${m} ${b}`,`color ${m}`].join(","),"+ span":{marginInlineStart:p,opacity:1,transition:[`opacity ${m} ${b}`,`margin ${m}`,`color ${m}`].join(",")}},[`${y}-item-icon`]:Object.assign({},(0,he.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=h=>{const{componentCls:y,motionDurationSlow:m,motionEaseInOut:a,borderRadius:b,menuArrowSize:z,menuArrowOffset:E}=h;return{[`${y}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:h.margin,width:z,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${m} ${a}, opacity ${m}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:z*.6,height:z*.15,backgroundColor:"currentcolor",borderRadius:b,transition:[`background ${m} ${a}`,`transform ${m} ${a}`,`top ${m} ${a}`,`color ${m} ${a}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${E})`},"&::after":{transform:`rotate(-45deg) translateY(${E})`}}}}},xe=h=>{const{antCls:y,componentCls:m,fontSize:a,motionDurationSlow:b,motionDurationMid:z,motionEaseInOut:E,paddingXS:l,padding:p,colorSplit:o,lineWidth:c,zIndexPopup:_,borderRadiusLG:I,subMenuItemBorderRadius:U,menuArrowSize:fe,menuArrowOffset:ae,lineType:me,menuPanelMaskInset:Y,groupTitleLineHeight:Ce,groupTitleFontSize:Te}=h;return[{"":{[`${m}`]:Object.assign(Object.assign({},(0,he.dF)()),{"&-hidden":{display:"none"}})},[`${m}-submenu-hidden`]:{display:"none"}},{[m]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,he.Wf)(h)),(0,he.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",[`${m}-item`]:{flex:"none"}},[`${m}-item, ${m}-submenu, ${m}-submenu-title`]:{borderRadius:h.itemBorderRadius},[`${m}-item-group-title`]:{padding:`${l}px ${p}px`,fontSize:Te,lineHeight:Ce,transition:`all ${b}`},[`&-horizontal ${m}-submenu`]:{transition:[`border-color ${b} ${E}`,`background ${b} ${E}`].join(",")},[`${m}-submenu, ${m}-submenu-inline`]:{transition:[`border-color ${b} ${E}`,`background ${b} ${E}`,`padding ${z} ${E}`].join(",")},[`${m}-submenu ${m}-sub`]:{cursor:"initial",transition:[`background ${b} ${E}`,`padding ${b} ${E}`].join(",")},[`${m}-title-content`]:{transition:`color ${b}`},[`${m}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${m}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:o,borderStyle:me,borderWidth:0,borderTopWidth:c,marginBlock:c,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ae(h)),{[`${m}-item-group`]:{[`${m}-item-group-list`]:{margin:0,padding:0,[`${m}-item, ${m}-submenu-title`]:{paddingInline:`${a*2}px ${p}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:_,borderRadius:I,boxShadow:"none",transformOrigin:"0 0",[`&${m}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Y}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Y},"\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:h.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:h.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:h.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:h.paddingXS},[`> ${m}`]:Object.assign(Object.assign(Object.assign({borderRadius:I},Ae(h)),Pe(h)),{[`${m}-item, ${m}-submenu > ${m}-submenu-title`]:{borderRadius:U},[`${m}-submenu-title::after`]:{transition:`transform ${b} ${E}`}})}}),Pe(h)),{[`&-inline-collapsed ${m}-submenu-arrow,
|
|
&-inline ${m}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ae})`},"&::after":{transform:`rotate(45deg) translateX(-${ae})`}},[`${m}-submenu-open${m}-submenu-inline > ${m}-submenu-title > ${m}-submenu-arrow`]:{transform:`translateY(-${fe*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ae})`},"&::before":{transform:`rotate(45deg) translateX(${ae})`}}})},{[`${y}-layout-header`]:{[m]:{lineHeight:"inherit"}}}]};var Je=(h,y)=>(0,P.Z)("Menu",a=>{if(y===!1)return[];const{colorBgElevated:b,colorPrimary:z,colorTextLightSolid:E,controlHeightLG:l,fontSize:p,darkItemColor:o,darkDangerItemColor:c,darkItemBg:_,darkSubMenuItemBg:I,darkItemSelectedColor:U,darkItemSelectedBg:fe,darkDangerItemSelectedBg:ae,darkItemHoverBg:me,darkGroupTitleColor:Y,darkItemHoverColor:Ce,darkItemDisabledColor:Te,darkDangerItemHoverColor:X,darkDangerItemSelectedColor:Be,darkDangerItemActiveBg:Ge}=a,Fe=p/7*5,Ve=(0,v.TS)(a,{menuArrowSize:Fe,menuHorizontalHeight:l*1.15,menuArrowOffset:`${Fe*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:b}),nt=(0,v.TS)(Ve,{itemColor:o,itemHoverColor:Ce,groupTitleColor:Y,itemSelectedColor:U,itemBg:_,popupBg:_,subMenuItemBg:I,itemActiveBg:"transparent",itemSelectedBg:fe,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:me,itemDisabledColor:Te,dangerItemColor:c,dangerItemHoverColor:X,dangerItemSelectedColor:Be,dangerItemActiveBg:Ge,dangerItemSelectedBg:ae,menuSubMenuBg:I,horizontalItemSelectedColor:E,horizontalItemSelectedBg:z});return[xe(Ve),ve(Ve),ge(Ve),V(Ve,"light"),V(nt,"dark"),le(Ve),(0,D.Z)(Ve),(0,be.oN)(Ve,"slide-up"),(0,be.oN)(Ve,"slide-down"),(0,R._y)(Ve,"zoom-big")]},a=>{const{colorPrimary:b,colorError:z,colorTextDisabled:E,colorErrorBg:l,colorText:p,colorTextDescription:o,colorBgContainer:c,colorFillAlter:_,colorFillContent:I,lineWidth:U,lineWidthBold:fe,controlItemBgActive:ae,colorBgTextHover:me,controlHeightLG:Y,lineHeight:Ce,colorBgElevated:Te,marginXXS:X,padding:Be,fontSize:Ge,controlHeightSM:Fe,fontSizeLG:Ve,colorTextLightSolid:nt,colorErrorHover:yt}=a,st=new Q.C(nt).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:me,itemHoverBg:me,colorItemBgActive:I,itemActiveBg:ae,colorSubItemBg:_,subMenuItemBg:_,colorItemBgSelected:ae,itemSelectedBg:ae,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:fe,activeBarHeight:fe,colorActiveBarBorderSize:U,activeBarBorderWidth:U,colorItemTextDisabled:E,itemDisabledColor:E,colorDangerItemText:z,dangerItemColor:z,colorDangerItemTextHover:z,dangerItemHoverColor:z,colorDangerItemTextSelected:z,dangerItemSelectedColor:z,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:a.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Y,groupTitleLineHeight:Ce,collapsedWidth:Y*2,popupBg:Te,itemMarginBlock:X,itemPaddingInline:Be,horizontalLineHeight:`${Y*1.15}px`,iconSize:Ge,iconMarginInlineEnd:Fe-Ge,collapsedIconSize:Ve,groupTitleFontSize:Ge,darkItemDisabledColor:new Q.C(nt).setAlpha(.25).toRgbString(),darkItemColor:st,darkDangerItemColor:z,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:nt,darkItemSelectedBg:b,darkDangerItemSelectedBg:z,darkItemHoverBg:"transparent",darkGroupTitleColor:st,darkItemHoverColor:nt,darkDangerItemHoverColor:yt,darkDangerItemSelectedColor:nt,darkDangerItemActiveBg:z}},{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"]]})(h),ke=function(h,y){var m={};for(var a in h)Object.prototype.hasOwnProperty.call(h,a)&&y.indexOf(a)<0&&(m[a]=h[a]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,a=Object.getOwnPropertySymbols(h);b<a.length;b++)y.indexOf(a[b])<0&&Object.prototype.propertyIsEnumerable.call(h,a[b])&&(m[a[b]]=h[a[b]]);return m},je=(0,x.forwardRef)((h,y)=>{var m,a;const b=x.useContext(N.Z),z=b||{},{getPrefixCls:E,getPopupContainer:l,direction:p,menu:o}=x.useContext(f.E_),c=E(),{prefixCls:_,className:I,style:U,theme:fe="light",expandIcon:ae,_internalDisableMenuItemTitleTooltip:me,inlineCollapsed:Y,siderCollapsed:Ce,items:Te,children:X,rootClassName:Be,mode:Ge,selectable:Fe,onClick:Ve,overflowedIndicatorPopupClassName:nt}=h,yt=ke(h,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),st=(0,ue.Z)(yt,["collapsedWidth"]),lt=ne(Te)||X;(m=z.validator)===null||m===void 0||m.call(z,{mode:Ge});const pt=(0,u.useEvent)(function(){var dt;Ve==null||Ve.apply(void 0,arguments),(dt=z.onClick)===null||dt===void 0||dt.call(z)}),Ue=z.mode||Ge,Ke=Fe!=null?Fe:z.selectable,rt=x.useMemo(()=>Ce!==void 0?Ce:Y,[Y,Ce]),Et={horizontal:{motionName:`${c}-slide-up`},inline:(0,C.Z)(c),other:{motionName:`${c}-zoom-big`}},mt=E("menu",_||z.prefixCls),[Ct,At]=Je(mt,!b),ht=A()(`${mt}-${fe}`,o==null?void 0:o.className,I);let Rt;if(typeof ae=="function")Rt=ae;else if(ae===null||ae===!1)Rt=null;else if(z.expandIcon===null||z.expandIcon===!1)Rt=null;else{const dt=ae!=null?ae:z.expandIcon;Rt=(0,d.Tm)(dt,{className:A()(`${mt}-submenu-expand-icon`,(0,d.l$)(dt)?(a=dt.props)===null||a===void 0?void 0:a.className:"")})}const it=x.useMemo(()=>({prefixCls:mt,inlineCollapsed:rt||!1,direction:p,firstLevel:!0,theme:fe,mode:Ue,disableMenuItemTitleTooltip:me}),[mt,rt,p,me,fe]);return Ct(x.createElement(N.Z.Provider,{value:null},x.createElement(te.Provider,{value:it},x.createElement(g.ZP,Object.assign({getPopupContainer:l,overflowedIndicator:x.createElement(M.Z,null),overflowedIndicatorPopupClassName:A()(mt,`${mt}-${fe}`,nt),mode:Ue,selectable:Ke,onClick:pt},st,{inlineCollapsed:rt,style:Object.assign(Object.assign({},o==null?void 0:o.style),U),className:ht,prefixCls:mt,direction:p,defaultMotions:Et,expandIcon:Rt,ref:y,rootClassName:A()(Be,At)}),lt))))});const G=(0,x.forwardRef)((h,y)=>{const m=(0,x.useRef)(null),a=x.useContext(F.D);return(0,x.useImperativeHandle)(y,()=>({menu:m.current,focus:b=>{var z;(z=m.current)===null||z===void 0||z.focus(b)}})),x.createElement(je,Object.assign({ref:m},h,a))});G.Item=Ee,G.SubMenu=T,G.Divider=oe,G.ItemGroup=g.BW;var we=G},13570:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return J}});var g=i(14809),x=i(59301),F={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=F,A=i(7657),f=function(V,ee){return x.createElement(A.Z,(0,g.Z)({},V,{ref:ee,icon:q}))},ce=x.forwardRef(f),se=ce,oe=i(92310),_e=i.n(oe),ue=i(4635),$=i(50298),d=i(62646),re=i(18929),te=i(10228),Z=i(26112);function Ee(O,V){var ee=O.disabled,ie=O.prefixCls,ge=O.character,Ae=O.characterRender,Pe=O.index,xe=O.count,Je=O.value,ke=O.allowHalf,ze=O.focused,je=O.onHover,G=O.onClick,we=function(l){je(l,Pe)},h=function(l){G(l,Pe)},y=function(l){l.keyCode===te.Z.ENTER&&G(l,Pe)},m=Pe+1,a=new Set([ie]);Je===0&&Pe===0&&ze?a.add("".concat(ie,"-focused")):ke&&Je+.5>=m&&Je<m?(a.add("".concat(ie,"-half")),a.add("".concat(ie,"-active")),ze&&a.add("".concat(ie,"-focused"))):(m<=Je?a.add("".concat(ie,"-full")):a.add("".concat(ie,"-zero")),m===Je&&ze&&a.add("".concat(ie,"-focused")));var b=typeof ge=="function"?ge(O):ge,z=x.createElement("li",{className:_e()(Array.from(a)),ref:V},x.createElement("div",{onClick:ee?null:h,onKeyDown:ee?null:y,onMouseMove:ee?null:we,role:"radio","aria-checked":Je>Pe?"true":"false","aria-posinset":Pe+1,"aria-setsize":xe,tabIndex:ee?-1:0},x.createElement("div",{className:"".concat(ie,"-first")},b),x.createElement("div",{className:"".concat(ie,"-second")},b)));return Ae&&(z=Ae(z,O)),z}var K=x.forwardRef(Ee);function T(){var O=x.useRef({});function V(ie){return O.current[ie]}function ee(ie){return function(ge){O.current[ie]=ge}}return[V,ee]}function M(O){var V=O.pageXOffset,ee="scrollLeft";if(typeof V!="number"){var ie=O.document;V=ie.documentElement[ee],typeof V!="number"&&(V=ie.body[ee])}return V}function u(O){var V,ee,ie=O.ownerDocument,ge=ie.body,Ae=ie&&ie.documentElement,Pe=O.getBoundingClientRect();return V=Pe.left,ee=Pe.top,V-=Ae.clientLeft||ge.clientLeft||0,ee-=Ae.clientTop||ge.clientTop||0,{left:V,top:ee}}function C(O){var V=u(O),ee=O.ownerDocument,ie=ee.defaultView||ee.parentWindow;return V.left+=M(ie),V.left}var N=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function k(O,V){var ee,ie=O.prefixCls,ge=ie===void 0?"rc-rate":ie,Ae=O.className,Pe=O.defaultValue,xe=O.value,Je=O.count,ke=Je===void 0?5:Je,ze=O.allowHalf,je=ze===void 0?!1:ze,G=O.allowClear,we=G===void 0?!0:G,h=O.character,y=h===void 0?"\u2605":h,m=O.characterRender,a=O.disabled,b=O.direction,z=b===void 0?"ltr":b,E=O.tabIndex,l=E===void 0?0:E,p=O.autoFocus,o=O.onHoverChange,c=O.onChange,_=O.onFocus,I=O.onBlur,U=O.onKeyDown,fe=O.onMouseLeave,ae=(0,d.Z)(O,N),me=T(),Y=(0,$.Z)(me,2),Ce=Y[0],Te=Y[1],X=x.useRef(null),Be=function(){if(!a){var L;(L=X.current)===null||L===void 0||L.focus()}};x.useImperativeHandle(V,function(){return{focus:Be,blur:function(){if(!a){var L;(L=X.current)===null||L===void 0||L.blur()}}}});var Ge=(0,re.Z)(Pe||0,{value:xe}),Fe=(0,$.Z)(Ge,2),Ve=Fe[0],nt=Fe[1],yt=(0,re.Z)(null),st=(0,$.Z)(yt,2),lt=st[0],pt=st[1],Ue=function(L,Ie){var Se=z==="rtl",Oe=L+1;if(je){var tt=Ce(L),at=C(tt),Ze=tt.clientWidth;(Se&&Ie-at>Ze/2||!Se&&Ie-at<Ze/2)&&(Oe-=.5)}return Oe},Ke=function(L){nt(L),c==null||c(L)},rt=x.useState(!1),Et=(0,$.Z)(rt,2),mt=Et[0],Ct=Et[1],At=function(){Ct(!0),_==null||_()},ht=function(){Ct(!1),I==null||I()},Rt=x.useState(null),it=(0,$.Z)(Rt,2),dt=it[0],He=it[1],pe=function(L,Ie){var Se=Ue(Ie,L.pageX);Se!==lt&&(He(Se),pt(null)),o==null||o(Se)},e=function(L){a||(He(null),pt(null),o==null||o(void 0)),L&&(fe==null||fe(L))},t=function(L,Ie){var Se=Ue(Ie,L.pageX),Oe=!1;we&&(Oe=Se===Ve),e(),Ke(Oe?0:Se),pt(Oe?Se:null)},n=function(L){var Ie=L.keyCode,Se=z==="rtl",Oe=Ve;Ie===te.Z.RIGHT&&Oe<ke&&!Se?(je?Oe+=.5:Oe+=1,Ke(Oe),L.preventDefault()):Ie===te.Z.LEFT&&Oe>0&&!Se||Ie===te.Z.RIGHT&&Oe>0&&Se?(je?Oe-=.5:Oe-=1,Ke(Oe),L.preventDefault()):Ie===te.Z.LEFT&&Oe<ke&&Se&&(je?Oe+=.5:Oe+=1,Ke(Oe),L.preventDefault()),U==null||U(L)};x.useEffect(function(){p&&!a&&Be()},[]);var r=new Array(ke).fill(0).map(function(S,L){return x.createElement(K,{ref:Te(L),index:L,count:ke,disabled:a,prefixCls:"".concat(ge,"-star"),allowHalf:je,value:dt===null?Ve:dt,onClick:t,onHover:pe,key:S||L,character:y,characterRender:m,focused:mt})}),s=_e()(ge,Ae,(ee={},(0,ue.Z)(ee,"".concat(ge,"-disabled"),a),(0,ue.Z)(ee,"".concat(ge,"-rtl"),z==="rtl"),ee));return x.createElement("ul",(0,g.Z)({className:s,onMouseLeave:e,tabIndex:a?-1:l,onFocus:a?null:At,onBlur:a?null:ht,onKeyDown:a?null:n,ref:X,role:"radiogroup"},(0,Z.Z)(ae,{aria:!0,data:!0,attr:!0})),r)}var w=x.forwardRef(k),ne=w,Q=i(36355),he=i(6848),D=i(17313),be=i(83116),R=i(37613);const P=O=>{const{componentCls:V}=O;return{[`${V}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:O.marginXS},"> div":{transition:`all ${O.motionDurationMid}, outline 0s`,"&:hover":{transform:O.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${O.lineWidth}px dashed ${O.starColor}`,transform:O.starHoverScale}},"&-first, &-second":{color:O.starBg,transition:`all ${O.motionDurationMid}`,userSelect:"none",[O.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${V}-star-first, &-half ${V}-star-second`]:{opacity:1},[`&-half ${V}-star-first, &-full ${V}-star-second`]:{color:"inherit"}}}},v=O=>({[`&-rtl${O.componentCls}`]:{direction:"rtl"}}),B=O=>{const{componentCls:V}=O;return{[V]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(O)),{display:"inline-block",margin:0,padding:0,color:O.starColor,fontSize:O.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${V} ${V}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),P(O)),{[`+ ${V}-text`]:{display:"inline-block",marginInlineStart:O.marginXS,fontSize:O.fontSize}}),v(O))}};var ve=(0,be.Z)("Rate",O=>{const V=(0,R.TS)(O,{});return[B(V)]},O=>({starColor:O.yellow6,starSize:O.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:O.colorFillContent})),H=function(O,V){var ee={};for(var ie in O)Object.prototype.hasOwnProperty.call(O,ie)&&V.indexOf(ie)<0&&(ee[ie]=O[ie]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,ie=Object.getOwnPropertySymbols(O);ge<ie.length;ge++)V.indexOf(ie[ge])<0&&Object.prototype.propertyIsEnumerable.call(O,ie[ge])&&(ee[ie[ge]]=O[ie[ge]]);return ee},J=x.forwardRef((O,V)=>{const{prefixCls:ee,className:ie,rootClassName:ge,style:Ae,tooltips:Pe,character:xe=x.createElement(se,null)}=O,Je=H(O,["prefixCls","className","rootClassName","style","tooltips","character"]),ke=(a,b)=>{let{index:z}=b;return Pe?x.createElement(he.Z,{title:Pe[z]},a):a},{getPrefixCls:ze,direction:je,rate:G}=x.useContext(Q.E_),we=ze("rate",ee),[h,y]=ve(we),m=Object.assign(Object.assign({},G==null?void 0:G.style),Ae);return h(x.createElement(ne,Object.assign({ref:V,character:xe,characterRender:ke},Je,{className:_e()(ie,ge,y,G==null?void 0:G.className),style:m,prefixCls:we,direction:je})))})},81327:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return Ee}});var g=i(59301),x=i(92310),F=i.n(x),q=i(11592),A=i(36355),f=i(33234);const ce=g.createContext({latestIndex:0}),se=ce.Provider;var _e=K=>{let{className:T,index:M,children:u,split:C,style:N}=K;const{latestIndex:k}=g.useContext(ce);return u==null?null:g.createElement(g.Fragment,null,g.createElement("div",{className:T,style:N},u),M<k&&C&&g.createElement("span",{className:`${T}-split`},C))},ue=i(2856);function $(K){return["small","middle","large"].includes(K)}function d(K){return K?typeof K=="number"&&!Number.isNaN(K):!1}var re=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 C=0,u=Object.getOwnPropertySymbols(K);C<u.length;C++)T.indexOf(u[C])<0&&Object.prototype.propertyIsEnumerable.call(K,u[C])&&(M[u[C]]=K[u[C]]);return M};const Z=g.forwardRef((K,T)=>{var M,u;const{getPrefixCls:C,space:N,direction:k}=g.useContext(A.E_),{size:w=(N==null?void 0:N.size)||"small",align:ne,className:Q,rootClassName:he,children:D,direction:be="horizontal",prefixCls:R,split:P,style:v,wrap:B=!1,classNames:ve,styles:H}=K,le=re(K,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[J,O]=Array.isArray(w)?w:[w,w],V=$(O),ee=$(J),ie=d(O),ge=d(J),Ae=(0,q.Z)(D,{keepEmpty:!0}),Pe=ne===void 0&&be==="horizontal"?"center":ne,xe=C("space",R),[Je,ke]=(0,ue.Z)(xe),ze=F()(xe,N==null?void 0:N.className,ke,`${xe}-${be}`,{[`${xe}-rtl`]:k==="rtl",[`${xe}-align-${Pe}`]:Pe,[`${xe}-gap-row-${O}`]:V,[`${xe}-gap-col-${J}`]:ee},Q,he),je=F()(`${xe}-item`,(M=ve==null?void 0:ve.item)!==null&&M!==void 0?M:(u=N==null?void 0:N.classNames)===null||u===void 0?void 0:u.item);let G=0;const we=Ae.map((m,a)=>{var b,z;m!=null&&(G=a);const E=m&&m.key||`${je}-${a}`;return g.createElement(_e,{className:je,key:E,index:a,split:P,style:(b=H==null?void 0:H.item)!==null&&b!==void 0?b:(z=N==null?void 0:N.styles)===null||z===void 0?void 0:z.item},m)}),h=g.useMemo(()=>({latestIndex:G}),[G]);if(Ae.length===0)return null;const y={};return B&&(y.flexWrap="wrap"),!ee&&ge&&(y.columnGap=J),!V&&ie&&(y.rowGap=O),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:h},we)))});Z.Compact=f.ZP;var Ee=Z},8378:function(vt,Ne){"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`}}});Ne.Z=i},92899:function(vt,Ne,i){"use strict";i.d(Ne,{Fm:function(){return $}});var g=i(93083),x=i(95406);const F=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}}),ce=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}}),_e=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}}),ue={"move-up":{inKeyframes:oe,outKeyframes:_e},"move-down":{inKeyframes:F,outKeyframes:q},"move-left":{inKeyframes:A,outKeyframes:f},"move-right":{inKeyframes:ce,outKeyframes:se}},$=(d,re)=>{const{antCls:te}=d,Z=`${te}-${re}`,{inKeyframes:Ee,outKeyframes:K}=ue[re];return[(0,x.R)(Z,Ee,K,d.motionDurationMid),{[`
|
|
${Z}-enter,
|
|
${Z}-appear
|
|
`]:{opacity:0,animationTimingFunction:d.motionEaseOutCirc},[`${Z}-leave`]:{animationTimingFunction:d.motionEaseInOutCirc}}]}},13826:function(vt,Ne,i){"use strict";i.d(Ne,{Qt:function(){return A},Uw:function(){return q},fJ:function(){return F},ly:function(){return f},oN:function(){return $}});var g=i(93083),x=i(95406);const F=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}}),ce=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}}),_e=new g.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ue={"slide-up":{inKeyframes:F,outKeyframes:q},"slide-down":{inKeyframes:A,outKeyframes:f},"slide-left":{inKeyframes:ce,outKeyframes:se},"slide-right":{inKeyframes:oe,outKeyframes:_e}},$=(d,re)=>{const{antCls:te}=d,Z=`${te}-${re}`,{inKeyframes:Ee,outKeyframes:K}=ue[re];return[(0,x.R)(Z,Ee,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(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return be}});var g=i(58617),x=i(92310),F=i.n(x),q=i(14809),A=i(4635),f=i(50298),ce=i(62646),se=i(59301),oe=i(18929),_e=i(10228),ue=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],$=se.forwardRef(function(R,P){var v,B=R.prefixCls,ve=B===void 0?"rc-switch":B,H=R.className,le=R.checked,J=R.defaultChecked,O=R.disabled,V=R.loadingIcon,ee=R.checkedChildren,ie=R.unCheckedChildren,ge=R.onClick,Ae=R.onChange,Pe=R.onKeyDown,xe=(0,ce.Z)(R,ue),Je=(0,oe.Z)(!1,{value:le,defaultValue:J}),ke=(0,f.Z)(Je,2),ze=ke[0],je=ke[1];function G(m,a){var b=ze;return O||(b=m,je(b),Ae==null||Ae(b,a)),b}function we(m){m.which===_e.Z.LEFT?G(!1,m):m.which===_e.Z.RIGHT&&G(!0,m),Pe==null||Pe(m)}function h(m){var a=G(!ze,m);ge==null||ge(a,m)}var y=F()(ve,H,(v={},(0,A.Z)(v,"".concat(ve,"-checked"),ze),(0,A.Z)(v,"".concat(ve,"-disabled"),O),v));return se.createElement("button",(0,q.Z)({},xe,{type:"button",role:"switch","aria-checked":ze,disabled:O,className:y,ref:P,onKeyDown:we,onClick:h}),V,se.createElement("span",{className:"".concat(ve,"-inner")},se.createElement("span",{className:"".concat(ve,"-inner-checked")},ee),se.createElement("span",{className:"".concat(ve,"-inner-unchecked")},ie)))});$.displayName="Switch";var d=$,re=i(14088),te=i(36355),Z=i(1684),Ee=i(19716),K=i(64993),T=i(17313),M=i(83116),u=i(37613);const C=R=>{const{componentCls:P,trackHeightSM:v,trackPadding:B,trackMinWidthSM:ve,innerMinMarginSM:H,innerMaxMarginSM:le,handleSizeSM:J}=R,O=`${P}-inner`;return{[P]:{[`&${P}-small`]:{minWidth:ve,height:v,lineHeight:`${v}px`,[`${P}-inner`]:{paddingInlineStart:le,paddingInlineEnd:H,[`${O}-checked`]:{marginInlineStart:`calc(-100% + ${J+B*2}px - ${le*2}px)`,marginInlineEnd:`calc(100% - ${J+B*2}px + ${le*2}px)`},[`${O}-unchecked`]:{marginTop:-v,marginInlineStart:0,marginInlineEnd:0}},[`${P}-handle`]:{width:J,height:J},[`${P}-loading-icon`]:{top:(J-R.switchLoadingIconSize)/2,fontSize:R.switchLoadingIconSize},[`&${P}-checked`]:{[`${P}-inner`]:{paddingInlineStart:H,paddingInlineEnd:le,[`${O}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${O}-unchecked`]:{marginInlineStart:`calc(100% - ${J+B*2}px + ${le*2}px)`,marginInlineEnd:`calc(-100% + ${J+B*2}px - ${le*2}px)`}},[`${P}-handle`]:{insetInlineStart:`calc(100% - ${J+B}px)`}},[`&:not(${P}-disabled):active`]:{[`&:not(${P}-checked) ${O}`]:{[`${O}-unchecked`]:{marginInlineStart:R.marginXXS/2,marginInlineEnd:-R.marginXXS/2}},[`&${P}-checked ${O}`]:{[`${O}-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:ve,handleShadow:H,handleSize:le}=R,J=`${P}-handle`;return{[P]:{[J]:{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:ve,borderRadius:le/2,boxShadow:H,transition:`all ${R.switchDuration} ease-in-out`,content:'""'}},[`&${P}-checked ${J}`]:{insetInlineStart:`calc(100% - ${le+B}px)`},[`&:not(${P}-disabled):active`]:v?{[`${J}::before`]:{insetInlineEnd:R.switchHandleActiveInset,insetInlineStart:0},[`&${P}-checked ${J}::before`]:{insetInlineEnd:0,insetInlineStart:R.switchHandleActiveInset}}:{}}}},w=R=>{const{componentCls:P,trackHeight:v,trackPadding:B,innerMinMargin:ve,innerMaxMargin:H,handleSize:le}=R,J=`${P}-inner`;return{[P]:{[J]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:H,paddingInlineEnd:ve,transition:`padding-inline-start ${R.switchDuration} ease-in-out, padding-inline-end ${R.switchDuration} ease-in-out`,[`${J}-checked, ${J}-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"},[`${J}-checked`]:{marginInlineStart:`calc(-100% + ${le+B*2}px - ${H*2}px)`,marginInlineEnd:`calc(100% - ${le+B*2}px + ${H*2}px)`},[`${J}-unchecked`]:{marginTop:-v,marginInlineStart:0,marginInlineEnd:0}},[`&${P}-checked ${J}`]:{paddingInlineStart:ve,paddingInlineEnd:H,[`${J}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${J}-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) ${J}`]:{[`${J}-unchecked`]:{marginInlineStart:B*2,marginInlineEnd:-B*2}},[`&${P}-checked ${J}`]:{[`${J}-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 Q=(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),w(P),k(P),N(P),C(P)]},R=>{const{fontSize:P,lineHeight:v,controlHeight:B,colorWhite:ve}=R,H=P*v,le=B/2,J=2,O=H-J*2,V=le-J*2;return{trackHeight:H,trackHeightSM:le,trackMinWidth:O*2+J*4,trackMinWidthSM:V*2+J*2,trackPadding:J,handleBg:ve,handleSize:O,handleSizeSM:V,handleShadow:`0 2px 4px 0 ${new K.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:O/2,innerMaxMargin:O+J+J*2,innerMinMarginSM:V/2,innerMaxMarginSM:V+J+J*2}}),he=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 ve=0,B=Object.getOwnPropertySymbols(R);ve<B.length;ve++)P.indexOf(B[ve])<0&&Object.prototype.propertyIsEnumerable.call(R,B[ve])&&(v[B[ve]]=R[B[ve]]);return v};const D=se.forwardRef((R,P)=>{const{prefixCls:v,size:B,disabled:ve,loading:H,className:le,rootClassName:J,style:O}=R,V=he(R,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:ee,direction:ie,switch:ge}=se.useContext(te.E_),Ae=se.useContext(Z.Z),Pe=(ve!=null?ve:Ae)||H,xe=ee("switch",v),Je=se.createElement("div",{className:`${xe}-handle`},H&&se.createElement(g.Z,{className:`${xe}-loading-icon`})),[ke,ze]=Q(xe),je=(0,Ee.Z)(B),G=F()(ge==null?void 0:ge.className,{[`${xe}-small`]:je==="small",[`${xe}-loading`]:H,[`${xe}-rtl`]:ie==="rtl"},le,J,ze),we=Object.assign(Object.assign({},ge==null?void 0:ge.style),O);return ke(se.createElement(re.Z,{component:"Switch"},se.createElement(d,Object.assign({},V,{prefixCls:xe,className:G,style:we,disabled:Pe,ref:P,loadingIcon:Je}))))});D.__ANT_SWITCH=!0;var be=D},17574:function(vt,Ne,i){"use strict";i.d(Ne,{default:function(){return le}});var g=i(79556),x=i(95190),F=i(52671),q=i(8657),A=i(14809),f=i(59301),ce={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=ce,oe=i(7657),_e=function(O,V){return f.createElement(oe.Z,(0,A.Z)({},O,{ref:V,icon:se}))},ue=f.forwardRef(_e),$=ue,d=i(92310),re=i.n(d),te=i(35654),Z=i(71430),Ee=i(36355),K=i(56082),T=i(62892),M=i(20648);const u=4;function C(J){const{dropPosition:O,dropLevelOffset:V,prefixCls:ee,indent:ie,direction:ge="ltr"}=J,Ae=ge==="ltr"?"left":"right",Pe=ge==="ltr"?"right":"left",xe={[Ae]:-V*ie+u,[Pe]:0};switch(O){case-1:xe.top=-3;break;case 1:xe.bottom=-3;break;default:xe.bottom=-3,xe[Ae]=ie+u;break}return f.createElement("div",{style:xe,className:`${ee}-drop-indicator`})}var N=i(71997),w=f.forwardRef((J,O)=>{const{getPrefixCls:V,direction:ee,virtual:ie,tree:ge}=f.useContext(Ee.E_),{prefixCls:Ae,className:Pe,showIcon:xe=!1,showLine:Je,switcherIcon:ke,blockNode:ze=!1,children:je,checkable:G=!1,selectable:we=!0,draggable:h,motion:y,style:m}=J,a=V("tree",Ae),b=V(),z=y!=null?y:Object.assign(Object.assign({},(0,T.Z)(b)),{motionAppear:!1}),E=Object.assign(Object.assign({},J),{checkable:G,selectable:we,showIcon:xe,motion:z,blockNode:ze,showLine:!!Je,dropIndicatorRender:C}),[l,p]=(0,M.ZP)(a),o=f.useMemo(()=>{if(!h)return!1;let _={};switch(typeof h){case"function":_.nodeDraggable=h;break;case"object":_=Object.assign({},h);break;default:break}return _.icon!==!1&&(_.icon=_.icon||f.createElement(K.Z,null)),_},[h]),c=_=>f.createElement(N.Z,{prefixCls:a,switcherIcon:ke,treeNodeProps:_,showLine:Je});return l(f.createElement(g.Z,Object.assign({itemHeight:20,ref:O,virtual:ie},E,{style:Object.assign(Object.assign({},ge==null?void 0:ge.style),m),prefixCls:a,className:re()({[`${a}-icon-hide`]:!xe,[`${a}-block-node`]:ze,[`${a}-unselectable`]:!we,[`${a}-rtl`]:ee==="rtl"},ge==null?void 0:ge.className,Pe,p),direction:ee,checkable:G&&f.createElement("span",{className:`${a}-checkbox-inner`}),selectable:we,switcherIcon:c,draggable:o}),je))}),ne;(function(J){J[J.None=0]="None",J[J.Start=1]="Start",J[J.End=2]="End"})(ne||(ne={}));function Q(J,O){function V(ee){const{key:ie,children:ge}=ee;O(ie,ee)!==!1&&Q(ge||[],O)}J.forEach(V)}function he(J){let{treeData:O,expandedKeys:V,startKey:ee,endKey:ie}=J;const ge=[];let Ae=ne.None;if(ee&&ee===ie)return[ee];if(!ee||!ie)return[];function Pe(xe){return xe===ee||xe===ie}return Q(O,xe=>{if(Ae===ne.End)return!1;if(Pe(xe)){if(ge.push(xe),Ae===ne.None)Ae=ne.Start;else if(Ae===ne.Start)return Ae=ne.End,!1}else Ae===ne.Start&&ge.push(xe);return V.includes(xe)}),ge}function D(J,O){const V=(0,x.Z)(O),ee=[];return Q(J,(ie,ge)=>{const Ae=V.indexOf(ie);return Ae!==-1&&(ee.push(ge),V.splice(Ae,1)),!!V.length}),ee}var be=function(J,O){var V={};for(var ee in J)Object.prototype.hasOwnProperty.call(J,ee)&&O.indexOf(ee)<0&&(V[ee]=J[ee]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,ee=Object.getOwnPropertySymbols(J);ie<ee.length;ie++)O.indexOf(ee[ie])<0&&Object.prototype.propertyIsEnumerable.call(J,ee[ie])&&(V[ee[ie]]=J[ee[ie]]);return V};function R(J){const{isLeaf:O,expanded:V}=J;return O?f.createElement(F.Z,null):V?f.createElement(q.Z,null):f.createElement($,null)}function P(J){let{treeData:O,children:V}=J;return O||(0,Z.zn)(V)}const v=(J,O)=>{var{defaultExpandAll:V,defaultExpandParent:ee,defaultExpandedKeys:ie}=J,ge=be(J,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ae=f.useRef(),Pe=f.useRef(),xe=()=>{const{keyEntities:o}=(0,Z.I8)(P(ge));let c;return V?c=Object.keys(o):ee?c=(0,te.r7)(ge.expandedKeys||ie||[],o):c=ge.expandedKeys||ie,c},[Je,ke]=f.useState(ge.selectedKeys||ge.defaultSelectedKeys||[]),[ze,je]=f.useState(()=>xe());f.useEffect(()=>{"selectedKeys"in ge&&ke(ge.selectedKeys)},[ge.selectedKeys]),f.useEffect(()=>{"expandedKeys"in ge&&je(ge.expandedKeys)},[ge.expandedKeys]);const G=(o,c)=>{var _;return"expandedKeys"in ge||je(o),(_=ge.onExpand)===null||_===void 0?void 0:_.call(ge,o,c)},we=(o,c)=>{var _;const{multiple:I}=ge,{node:U,nativeEvent:fe}=c,{key:ae=""}=U,me=P(ge),Y=Object.assign(Object.assign({},c),{selected:!0}),Ce=(fe==null?void 0:fe.ctrlKey)||(fe==null?void 0:fe.metaKey),Te=fe==null?void 0:fe.shiftKey;let X;I&&Ce?(X=o,Ae.current=ae,Pe.current=X,Y.selectedNodes=D(me,X)):I&&Te?(X=Array.from(new Set([].concat((0,x.Z)(Pe.current||[]),(0,x.Z)(he({treeData:me,expandedKeys:ze,startKey:ae,endKey:Ae.current}))))),Y.selectedNodes=D(me,X)):(X=[ae],Ae.current=ae,Pe.current=X,Y.selectedNodes=D(me,X)),(_=ge.onSelect)===null||_===void 0||_.call(ge,X,Y),"selectedKeys"in ge||ke(X)},{getPrefixCls:h,direction:y}=f.useContext(Ee.E_),{prefixCls:m,className:a,showIcon:b=!0,expandAction:z="click"}=ge,E=be(ge,["prefixCls","className","showIcon","expandAction"]),l=h("tree",m),p=re()(`${l}-directory`,{[`${l}-directory-rtl`]:y==="rtl"},a);return f.createElement(w,Object.assign({icon:R,ref:O,blockNode:!0},E,{showIcon:b,expandAction:z,prefixCls:l,className:p,expandedKeys:ze,selectedKeys:Je,onSelect:we,onExpand:G}))};var ve=f.forwardRef(v);const H=w;H.DirectoryTree=ve,H.TreeNode=g.O;var le=H},20648:function(vt,Ne,i){"use strict";i.d(Ne,{TM:function(){return d},Yk:function(){return $}});var g=i(93083),x=i(98447),F=i(17313),q=i(8378),A=i(37613),f=i(83116);const ce=new g.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),se=(re,te)=>({[`.${re}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${te.motionDurationSlow}`}}}),oe=(re,te)=>({[`.${re}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:te.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${te.lineWidthBold}px solid ${te.colorPrimary}`,borderRadius:"50%",content:'""'}}}),_e=(re,te)=>{const{treeCls:Z,treeNodeCls:Ee,treeNodePadding:K,titleHeight:T,nodeSelectedBg:M,nodeHoverBg:u}=te,C=te.paddingXS;return{[Z]:Object.assign(Object.assign({},(0,F.Wf)(te)),{background:te.colorBgContainer,borderRadius:te.borderRadius,transition:`background-color ${te.motionDurationSlow}`,[`&${Z}-rtl`]:{[`${Z}-switcher`]:{"&_close":{[`${Z}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${Z}-active-focused)`]:Object.assign({},(0,F.oN)(te)),[`${Z}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Z}-block-node`]:{[`${Z}-list-holder-inner`]:{alignItems:"stretch",[`${Z}-node-content-wrapper`]:{flex:"auto"},[`${Ee}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:K,insetInlineStart:0,border:`1px solid ${te.colorPrimary}`,opacity:0,animationName:ce,animationDuration:te.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Ee}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${K}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${Z}-node-content-wrapper`]:{color:te.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Z}-node-content-wrapper`]:Object.assign({},(0,F.oN)(te)),[`&:not(${Ee}-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 ${te.motionDurationSlow}`,[`${Ee}:hover &`]:{opacity:.45}},[`&${Ee}-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(re,te)),{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:te.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 ${te.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:T/2*.8,height:T/2,borderBottom:`1px solid ${te.colorBorder}`,content:'""'}}}),[`${Z}-checkbox`]:{top:"initial",marginInlineEnd:C},[`${Z}-node-content-wrapper, ${Z}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:T,margin:0,padding:`0 ${te.paddingXS/2}px`,color:"inherit",lineHeight:`${T}px`,background:"transparent",borderRadius:te.borderRadius,cursor:"pointer",transition:`all ${te.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(re,te)),[`${Ee}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${te.colorPrimary}`}},"&-show-line":{[`${Z}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:T/2,bottom:-K,borderInlineEnd:`1px solid ${te.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${Z}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Ee}-leaf-last`]:{[`${Z}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${T/2}px !important`}}}}})}},ue=re=>{const{treeCls:te,treeNodeCls:Z,treeNodePadding:Ee,directoryNodeSelectedBg:K,directoryNodeSelectedColor:T}=re;return{[`${te}${te}-directory`]:{[Z]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Ee,insetInlineStart:0,transition:`background-color ${re.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:re.controlItemBgHover}},"> *":{zIndex:1},[`${te}-switcher`]:{transition:`color ${re.motionDurationMid}`},[`${te}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${te}-node-selected`]:{color:T,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:K},[`${te}-switcher`]:{color:T},[`${te}-node-content-wrapper`]:{color:T,background:"transparent"}}}}}},$=(re,te)=>{const Z=`.${re}`,Ee=`${Z}-treenode`,K=te.paddingXS/2,T=(0,A.TS)(te,{treeCls:Z,treeNodeCls:Ee,treeNodePadding:K});return[_e(re,T),ue(T)]},d=re=>{const{controlHeightSM:te}=re;return{titleHeight:te,nodeHoverBg:re.controlItemBgHover,nodeSelectedBg:re.controlItemBgActive}};Ne.ZP=(0,f.Z)("Tree",(re,te)=>{let{prefixCls:Z}=te;return[{[re.componentCls]:(0,x.C2)(`${Z}-checkbox`,re)},$(Z,re),(0,q.Z)(re)]},re=>{const{colorTextLightSolid:te,colorPrimary:Z}=re;return Object.assign(Object.assign({},d(re)),{directoryNodeSelectedColor:te,directoryNodeSelectedBg:Z})})},71997:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return Ee}});var g=i(14809),x=i(59301),F={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=F,A=i(7657),f=function(T,M){return x.createElement(A.Z,(0,g.Z)({},T,{ref:M,icon:q}))},ce=x.forwardRef(f),se=ce,oe=i(52671),_e=i(58617),ue=i(15075),$=i(43531),d=i(92310),re=i.n(d),te=i(92343),Ee=K=>{const{prefixCls:T,switcherIcon:M,treeNodeProps:u,showLine:C}=K,{isLeaf:N,expanded:k,loading:w}=u;if(w)return x.createElement(_e.Z,{className:`${T}-switcher-loading-icon`});let ne;if(C&&typeof C=="object"&&(ne=C.showLeafIcon),N){if(!C)return null;if(typeof ne!="boolean"&&ne){const D=typeof ne=="function"?ne(u):ne,be=`${T}-switcher-line-custom-icon`;return(0,te.l$)(D)?(0,te.Tm)(D,{className:re()(D.props.className||"",be)}):D}return ne?x.createElement(oe.Z,{className:`${T}-switcher-line-icon`}):x.createElement("span",{className:`${T}-switcher-leaf-line`})}const Q=`${T}-switcher-icon`,he=typeof M=="function"?M(u):M;return(0,te.l$)(he)?(0,te.Tm)(he,{className:re()(he.props.className||"",Q)}):he!==void 0?he:C?k?x.createElement(ue.Z,{className:`${T}-switcher-line-icon`}):x.createElement($.Z,{className:`${T}-switcher-line-icon`}):x.createElement(se,{className:Q})}},3867:function(vt,Ne,i){var g=i(97671);(function(x,F){vt.exports=F()})(this,function(){"use strict";function x(E){var l=typeof E;return E!==null&&(l==="object"||l==="function")}function F(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,ce=void 0,se=void 0,oe=function(l,p){C[f]=l,C[f+1]=p,f+=2,f===2&&(se?se(N):w())};function _e(E){se=E}function ue(E){oe=E}var $=typeof window!="undefined"?window:void 0,d=$||{},re=d.MutationObserver||d.WebKitMutationObserver,te=typeof self=="undefined"&&typeof g!="undefined"&&{}.toString.call(g)==="[object process]",Z=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function Ee(){return function(){return g.nextTick(N)}}function K(){return typeof ce!="undefined"?function(){ce(N)}:u()}function T(){var E=0,l=new re(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 C=new Array(1e3);function N(){for(var E=0;E<f;E+=2){var l=C[E],p=C[E+1];l(p),C[E]=void 0,C[E+1]=void 0}f=0}function k(){try{var E=Function("return this")().require("vertx");return ce=E.runOnLoop||E.runOnContext,K()}catch(l){return u()}}var w=void 0;te?w=Ee():re?w=T():Z?w=M():$===void 0?w=k():w=u();function ne(E,l){var p=this,o=new this.constructor(D);o[he]===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 Q(E){var l=this;if(E&&typeof E=="object"&&E.constructor===l)return E;var p=new l(D);return O(p,E),p}var he=Math.random().toString(36).substring(2);function D(){}var be=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 ve(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,_=ve(p,l,function(I){c||(c=!0,l!==I?O(o,I):ee(o,I))},function(I){c||(c=!0,ie(o,I))},"Settle: "+(o._label||" unknown promise"));!c&&_&&(c=!0,ie(o,_))},E)}function le(E,l){l._state===R?ee(E,l._result):l._state===P?ie(E,l._result):ge(l,void 0,function(p){return O(E,p)},function(p){return ie(E,p)})}function J(E,l,p){l.constructor===E.constructor&&p===ne&&l.constructor.resolve===Q?le(E,l):p===void 0?ee(E,l):F(p)?H(E,l,p):ee(E,l)}function O(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}J(E,l,p)}else ee(E,l)}function V(E){E._onerror&&E._onerror(E._result),Ae(E)}function ee(E,l){E._state===be&&(E._result=l,E._state=R,E._subscribers.length!==0&&oe(Ae,E))}function ie(E,l){E._state===be&&(E._state=P,E._result=l,oe(V,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(Ae,E)}function Ae(E){var l=E._subscribers,p=E._state;if(l.length!==0){for(var o=void 0,c=void 0,_=E._result,I=0;I<l.length;I+=3)o=l[I],c=l[I+p],o?Pe(p,o,c,_):c(_);E._subscribers.length=0}}function Pe(E,l,p,o){var c=F(p),_=void 0,I=void 0,U=!0;if(c){try{_=p(o)}catch(fe){U=!1,I=fe}if(l===_){ie(l,B());return}}else _=o;l._state!==be||(c&&U?O(l,_):U===!1?ie(l,I):E===R?ee(l,_):E===P&&ie(l,_))}function xe(E,l){try{l(function(o){O(E,o)},function(o){ie(E,o)})}catch(p){ie(E,p)}}var Je=0;function ke(){return Je++}function ze(E){E[he]=Je++,E._state=void 0,E._result=void 0,E._subscribers=[]}function je(){return new Error("Array Methods must be provided an Array")}var G=function(){function E(l,p){this._instanceConstructor=l,this.promise=new l(D),this.promise[he]||ze(this.promise),A(p)?(this.length=p.length,this._remaining=p.length,this._result=new Array(this.length),this.length===0?ee(this.promise,this._result):(this.length=this.length||0,this._enumerate(p),this._remaining===0&&ee(this.promise,this._result))):ie(this.promise,je())}return E.prototype._enumerate=function(p){for(var o=0;this._state===be&&o<p.length;o++)this._eachEntry(p[o],o)},E.prototype._eachEntry=function(p,o){var c=this._instanceConstructor,_=c.resolve;if(_===Q){var I=void 0,U=void 0,fe=!1;try{I=p.then}catch(me){fe=!0,U=me}if(I===ne&&p._state!==be)this._settledAt(p._state,o,p._result);else if(typeof I!="function")this._remaining--,this._result[o]=p;else if(c===b){var ae=new c(D);fe?ie(ae,U):J(ae,p,I),this._willSettleAt(ae,o)}else this._willSettleAt(new c(function(me){return me(p)}),o)}else this._willSettleAt(_(p),o)},E.prototype._settledAt=function(p,o,c){var _=this.promise;_._state===be&&(this._remaining--,p===P?ie(_,c):this._result[o]=c),this._remaining===0&&ee(_,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 we(E){return new G(this,E).promise}function h(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 m(){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[he]=ke(),this._result=this._state=void 0,this._subscribers=[],D!==l&&(typeof l!="function"&&m(),this instanceof E?xe(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 F(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=we,b.race=h,b.resolve=Q,b.reject=y,b._setScheduler=_e,b._setAsap=ue,b._asap=oe;function z(){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=z,b.Promise=b,b})},86204:function(vt){"use strict";var Ne=typeof Reflect=="object"?Reflect:null,i=Ne&&typeof Ne.apply=="function"?Ne.apply:function(M,u,C){return Function.prototype.apply.call(M,u,C)},g;Ne&&typeof Ne.ownKeys=="function"?g=Ne.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 F=Number.isNaN||function(M){return M!==M};function q(){q.init.call(this)}vt.exports=q,vt.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||F(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||F(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 ce(T){return T._maxListeners===void 0?q.defaultMaxListeners:T._maxListeners}q.prototype.getMaxListeners=function(){return ce(this)},q.prototype.emit=function(M){for(var u=[],C=1;C<arguments.length;C++)u.push(arguments[C]);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 w;if(u.length>0&&(w=u[0]),w instanceof Error)throw w;var ne=new Error("Unhandled error."+(w?" ("+w.message+")":""));throw ne.context=w,ne}var Q=k[M];if(Q===void 0)return!1;if(typeof Q=="function")i(Q,this,u);else for(var he=Q.length,D=d(Q,he),C=0;C<he;++C)i(D[C],this,u);return!0};function se(T,M,u,C){var N,k,w;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),w=k[M]),w===void 0)w=k[M]=u,++T._eventsCount;else if(typeof w=="function"?w=k[M]=C?[u,w]:[w,u]:C?w.unshift(u):w.push(u),N=ce(T),N>0&&w.length>N&&!w.warned){w.warned=!0;var ne=new Error("Possible EventEmitter memory leak detected. "+w.length+" "+String(M)+" listeners added. Use emitter.setMaxListeners() to increase limit");ne.name="MaxListenersExceededWarning",ne.emitter=T,ne.type=M,ne.count=w.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 _e(T,M,u){var C={fired:!1,wrapFn:void 0,target:T,type:M,listener:u},N=oe.bind(C);return N.listener=u,C.wrapFn=N,N}q.prototype.once=function(M,u){return f(u),this.on(M,_e(this,M,u)),this},q.prototype.prependOnceListener=function(M,u){return f(u),this.prependListener(M,_e(this,M,u)),this},q.prototype.removeListener=function(M,u){var C,N,k,w,ne;if(f(u),N=this._events,N===void 0)return this;if(C=N[M],C===void 0)return this;if(C===u||C.listener===u)--this._eventsCount===0?this._events=Object.create(null):(delete N[M],N.removeListener&&this.emit("removeListener",M,C.listener||u));else if(typeof C!="function"){for(k=-1,w=C.length-1;w>=0;w--)if(C[w]===u||C[w].listener===u){ne=C[w].listener,k=w;break}if(k<0)return this;k===0?C.shift():re(C,k),C.length===1&&(N[M]=C[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,C,N;if(C=this._events,C===void 0)return this;if(C.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):C[M]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete C[M]),this;if(arguments.length===0){var k=Object.keys(C),w;for(N=0;N<k.length;++N)w=k[N],w!=="removeListener"&&this.removeAllListeners(w);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(u=C[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 ue(T,M,u){var C=T._events;if(C===void 0)return[];var N=C[M];return N===void 0?[]:typeof N=="function"?u?[N.listener||N]:[N]:u?te(N):d(N,N.length)}q.prototype.listeners=function(M){return ue(this,M,!0)},q.prototype.rawListeners=function(M){return ue(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),C=0;C<M;++C)u[C]=T[C];return u}function re(T,M){for(;M+1<T.length;M++)T[M]=T[M+1];T.pop()}function te(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,C){function N(w){T.removeListener(M,k),C(w)}function k(){typeof T.removeListener=="function"&&T.removeListener("error",N),u([].slice.call(arguments))}K(T,M,k,{once:!0}),M!=="error"&&Ee(T,N,{once:!0})})}function Ee(T,M,u){typeof T.on=="function"&&K(T,"error",M,u)}function K(T,M,u,C){if(typeof T.on=="function")C.once?T.once(M,u):T.on(M,u);else if(typeof T.addEventListener=="function")T.addEventListener(M,function N(k){C.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(vt,Ne,i){var g,x;(function(F,q){vt.exports=q(F)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof i.g!="undefined"?i.g:this,function(F){"use strict";F=F||{};var q=F.Base64,A="2.6.4",f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ce=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)}},_e=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ue=function(R){return R.replace(_e,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=F.btoa&&typeof F.btoa=="function"?function(R){return F.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,$)},re=function(R){return d(ue(String(R)))},te=function(R){return R.replace(/[+\/]/g,function(P){return P=="+"?"-":"_"}).replace(/=/g,"")},Z=function(R,P){return P?te(re(R)):re(R)},Ee=function(R){return Z(R,!0)},K;F.Uint8Array&&(K=function(R,P){for(var v="",B=0,ve=R.length;B<ve;B+=3){var H=R[B],le=R[B+1],J=R[B+2],O=H<<16|le<<8|J;v+=f.charAt(O>>>18)+f.charAt(O>>>12&63)+(typeof le!="undefined"?f.charAt(O>>>6&63):"=")+(typeof J!="undefined"?f.charAt(O&63):"=")}return P?te(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)},C=function(R){var P=R.length,v=P%4,B=(P>0?ce[R.charAt(0)]<<18:0)|(P>1?ce[R.charAt(1)]<<12:0)|(P>2?ce[R.charAt(2)]<<6:0)|(P>3?ce[R.charAt(3)]:0),ve=[se(B>>>16),se(B>>>8&255),se(B&255)];return ve.length-=[0,0,2,1][v],ve.join("")},N=F.atob&&typeof F.atob=="function"?function(R){return F.atob(R)}:function(R){return R.replace(/\S{1,4}/g,C)},k=function(R){return N(String(R).replace(/[^A-Za-z0-9\+\/]/g,""))},w=function(R){return u(N(R))},ne=function(R){return String(R).replace(/[-_]/g,function(P){return P=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Q=function(R){return w(ne(R))},he;F.Uint8Array&&(he=function(R){return Uint8Array.from(k(ne(R)),function(P){return P.charCodeAt(0)})});var D=function(){var R=F.Base64;return F.Base64=q,R};if(F.Base64={VERSION:A,atob:k,btoa:d,fromBase64:Q,toBase64:Z,utob:ue,encode:Z,encodeURI:Ee,btou:u,decode:Q,noConflict:D,fromUint8Array:K,toUint8Array:he},typeof Object.defineProperty=="function"){var be=function(R){return{value:R,enumerable:!1,writable:!0,configurable:!0}};F.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",be(function(){return Q(this)})),Object.defineProperty(String.prototype,"toBase64",be(function(R){return Z(this,R)})),Object.defineProperty(String.prototype,"toBase64URI",be(function(){return Z(this,!0)}))}}return F.Meteor&&(Base64=F.Base64),vt.exports?vt.exports.Base64=F.Base64:(g=[],x=function(){return F.Base64}.apply(Ne,g),x!==void 0&&(vt.exports=x)),{Base64:F.Base64}})},31561:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return k}});var g=i(14809),x=i(4635),F=i(50298),q=i(62646),A=i(35593),f=i(92310),ce=i.n(f),se=i(8654),oe=i(59301),_e=i(10228),ue=i(16089),$=_e.Z.ESC,d=_e.Z.TAB;function re(w){var ne=w.visible,Q=w.triggerRef,he=w.onVisibleChange,D=w.autoFocus,be=w.overlayRef,R=oe.useRef(!1),P=function(){if(ne){var H,le;(H=Q.current)===null||H===void 0||(le=H.focus)===null||le===void 0||le.call(H),he==null||he(!1)}},v=function(){var H;return(H=be.current)!==null&&H!==void 0&&H.focus?(be.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,ue.Z)(v,3),function(){window.removeEventListener("keydown",B),R.current=!1}):function(){R.current=!1}},[ne])}var te=(0,oe.forwardRef)(function(w,ne){var Q=w.overlay,he=w.arrow,D=w.prefixCls,be=(0,oe.useMemo)(function(){var P;return typeof Q=="function"?P=Q():P=Q,P},[Q]),R=(0,se.sQ)(ne,be==null?void 0:be.ref);return oe.createElement(oe.Fragment,null,he&&oe.createElement("div",{className:"".concat(D,"-arrow")}),oe.cloneElement(be,{ref:(0,se.Yr)(be)?R:void 0}))}),Z=te,Ee={adjustX:1,adjustY:1},K=[0,0],T={topLeft:{points:["bl","tl"],overflow:Ee,offset:[0,-4],targetOffset:K},top:{points:["bc","tc"],overflow:Ee,offset:[0,-4],targetOffset:K},topRight:{points:["br","tr"],overflow:Ee,offset:[0,-4],targetOffset:K},bottomLeft:{points:["tl","bl"],overflow:Ee,offset:[0,4],targetOffset:K},bottom:{points:["tc","bc"],overflow:Ee,offset:[0,4],targetOffset:K},bottomRight:{points:["tr","br"],overflow:Ee,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 C(w,ne){var Q,he=w.arrow,D=he===void 0?!1:he,be=w.prefixCls,R=be===void 0?"rc-dropdown":be,P=w.transitionName,v=w.animation,B=w.align,ve=w.placement,H=ve===void 0?"bottomLeft":ve,le=w.placements,J=le===void 0?M:le,O=w.getPopupContainer,V=w.showAction,ee=w.hideAction,ie=w.overlayClassName,ge=w.overlayStyle,Ae=w.visible,Pe=w.trigger,xe=Pe===void 0?["hover"]:Pe,Je=w.autoFocus,ke=w.overlay,ze=w.children,je=w.onVisibleChange,G=(0,q.Z)(w,u),we=oe.useState(),h=(0,F.Z)(we,2),y=h[0],m=h[1],a="visible"in w?Ae:y,b=oe.useRef(null),z=oe.useRef(null),E=oe.useRef(null);oe.useImperativeHandle(ne,function(){return b.current});var l=function(me){m(me),je==null||je(me)};re({visible:a,triggerRef:E,onVisibleChange:l,autoFocus:Je,overlayRef:z});var p=function(me){var Y=w.onOverlayClick;m(!1),Y&&Y(me)},o=function(){return oe.createElement(Z,{ref:z,overlay:ke,prefixCls:R,arrow:D})},c=function(){return typeof ke=="function"?o:o()},_=function(){var me=w.minOverlayWidthMatchTrigger,Y=w.alignPoint;return"minOverlayWidthMatchTrigger"in w?me:!Y},I=function(){var me=w.openClassName;return me!==void 0?me:"".concat(R,"-open")},U=oe.cloneElement(ze,{className:ce()((Q=ze.props)===null||Q===void 0?void 0:Q.className,a&&I()),ref:(0,se.Yr)(ze)?(0,se.sQ)(E,ze.ref):void 0}),fe=ee;return!fe&&xe.indexOf("contextMenu")!==-1&&(fe=["click"]),oe.createElement(A.Z,(0,g.Z)({builtinPlacements:J},G,{prefixCls:R,ref:b,popupClassName:ce()(ie,(0,x.Z)({},"".concat(R,"-show-arrow"),D)),popupStyle:ge,action:xe,showAction:V,hideAction:fe,popupPlacement:H,popupAlign:B,popupTransitionName:P,popupAnimation:v,popupVisible:a,stretch:_()?"minWidth":"",popup:c(),onPopupVisibleChange:l,onPopupClick:p,getPopupContainer:O}),U)}var N=oe.forwardRef(C),k=N},15285:function(vt,Ne,i){"use strict";i.d(Ne,{iz:function(){return We},ck:function(){return Ke},BW:function(){return ut},sN:function(){return Ke},Wd:function(){return Se},ZP:function(){return Xe},Xl:function(){return Q}});var g=i(14809),x=i(4635),F=i(20439),q=i(95190),A=i(50298),f=i(62646),ce=i(92310),se=i.n(ce),oe=i(11780),_e=i(18929),ue=i(13697),$=i(48736),d=i(59301),re=i(4676),te=d.createContext(null);function Z(j,W){return j===void 0?null:"".concat(j,"-").concat(W)}function Ee(j){var W=d.useContext(te);return Z(W,j)}var K=i(80547),T=["children","locked"],M=d.createContext(null);function u(j,W){var de=(0,F.Z)({},j);return Object.keys(W).forEach(function(Le){var ye=W[Le];ye!==void 0&&(de[Le]=ye)}),de}function C(j){var W=j.children,de=j.locked,Le=(0,f.Z)(j,T),ye=d.useContext(M),$e=(0,K.Z)(function(){return u(ye,Le)},[ye,Le],function(De,ct){return!de&&(De[0]!==ct[0]||!(0,ue.Z)(De[1],ct[1],!0))});return d.createElement(M.Provider,{value:$e},W)}var N=[],k=d.createContext(null);function w(){return d.useContext(k)}var ne=d.createContext(N);function Q(j){var W=d.useContext(ne);return d.useMemo(function(){return j!==void 0?[].concat((0,q.Z)(W),[j]):W},[W,j])}var he=d.createContext(null),D=d.createContext({}),be=D,R=i(29194);function P(j){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,R.Z)(j)){var de=j.nodeName.toLowerCase(),Le=["input","select","textarea","button"].includes(de)||j.isContentEditable||de==="a"&&!!j.getAttribute("href"),ye=j.getAttribute("tabindex"),$e=Number(ye),De=null;return ye&&!Number.isNaN($e)?De=$e:Le&&De===null&&(De=0),Le&&j.disabled&&(De=null),De!==null&&(De>=0||W&&De<0)}return!1}function v(j){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,de=(0,q.Z)(j.querySelectorAll("*")).filter(function(Le){return P(Le,W)});return P(j,W)&&de.unshift(j),de}var B=null;function ve(){B=document.activeElement}function H(){B=null}function le(){if(B)try{B.focus()}catch(j){}}function J(j,W){if(W.keyCode===9){var de=v(j),Le=de[W.shiftKey?0:de.length-1],ye=Le===document.activeElement||j===document.activeElement;if(ye){var $e=de[W.shiftKey?de.length-1:0];$e.focus(),W.preventDefault()}}}var O=i(10228),V=i(16089),ee=O.Z.LEFT,ie=O.Z.RIGHT,ge=O.Z.UP,Ae=O.Z.DOWN,Pe=O.Z.ENTER,xe=O.Z.ESC,Je=O.Z.HOME,ke=O.Z.END,ze=[ge,Ae,ee,ie];function je(j,W,de,Le){var ye,$e,De,ct,St="prev",ft="next",bt="children",_t="parent";if(j==="inline"&&Le===Pe)return{inlineTrigger:!0};var wt=(ye={},(0,x.Z)(ye,ge,St),(0,x.Z)(ye,Ae,ft),ye),Nt=($e={},(0,x.Z)($e,ee,de?ft:St),(0,x.Z)($e,ie,de?St:ft),(0,x.Z)($e,Ae,bt),(0,x.Z)($e,Pe,bt),$e),Lt=(De={},(0,x.Z)(De,ge,St),(0,x.Z)(De,Ae,ft),(0,x.Z)(De,Pe,bt),(0,x.Z)(De,xe,_t),(0,x.Z)(De,ee,de?bt:_t),(0,x.Z)(De,ie,de?_t:bt),De),zt={inline:wt,horizontal:Nt,vertical:Lt,inlineSub:wt,horizontalSub:Lt,verticalSub:Lt},Ht=(ct=zt["".concat(j).concat(W?"":"Sub")])===null||ct===void 0?void 0:ct[Le];switch(Ht){case St:return{offset:-1,sibling:!0};case ft:return{offset:1,sibling:!0};case _t:return{offset:-1,sibling:!1};case bt:return{offset:1,sibling:!1};default:return null}}function G(j){for(var W=j;W;){if(W.getAttribute("data-menu-list"))return W;W=W.parentElement}return null}function we(j,W){for(var de=j||document.activeElement;de;){if(W.has(de))return de;de=de.parentElement}return null}function h(j,W){var de=v(j,!0);return de.filter(function(Le){return W.has(Le)})}function y(j,W,de){var Le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!j)return null;var ye=h(j,W),$e=ye.length,De=ye.findIndex(function(ct){return de===ct});return Le<0?De===-1?De=$e-1:De-=1:Le>0&&(De+=1),De=(De+$e)%$e,ye[De]}var m=function(W,de){var Le=new Set,ye=new Map,$e=new Map;return W.forEach(function(De){var ct=document.querySelector("[data-menu-id='".concat(Z(de,De),"']"));ct&&(Le.add(ct),$e.set(ct,De),ye.set(De,ct))}),{elements:Le,key2element:ye,element2key:$e}};function a(j,W,de,Le,ye,$e,De,ct,St,ft){var bt=d.useRef(),_t=d.useRef();_t.current=W;var wt=function(){V.Z.cancel(bt.current)};return d.useEffect(function(){return function(){wt()}},[]),function(Nt){var Lt=Nt.which;if([].concat(ze,[Pe,xe,Je,ke]).includes(Lt)){var zt=$e(),Ht=m(zt,Le),Ut=Ht,Mt=Ut.elements,Ot=Ut.key2element,Dt=Ut.element2key,Ft=Ot.get(W),Pt=we(Ft,Mt),Gt=Dt.get(Pt),Bt=je(j,De(Gt,!0).length===1,de,Lt);if(!Bt&&Lt!==Je&&Lt!==ke)return;(ze.includes(Lt)||[Je,ke].includes(Lt))&&Nt.preventDefault();var tn=function(Wt){if(Wt){var an=Wt,ot=Wt.querySelector("a");ot!=null&&ot.getAttribute("href")&&(an=ot);var et=Dt.get(Wt);ct(et),wt(),bt.current=(0,V.Z)(function(){_t.current===et&&an.focus()})}};if([Je,ke].includes(Lt)||Bt.sibling||!Pt){var Kt;!Pt||j==="inline"?Kt=ye.current:Kt=G(Pt);var Jt,Xt=h(Kt,Mt);Lt===Je?Jt=Xt[0]:Lt===ke?Jt=Xt[Xt.length-1]:Jt=y(Kt,Mt,Pt,Bt.offset),tn(Jt)}else if(Bt.inlineTrigger)St(Gt);else if(Bt.offset>0)St(Gt,!0),wt(),bt.current=(0,V.Z)(function(){Ht=m(zt,Le);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=De(Gt,!0),nn=Yt[Yt.length-2],rn=Ot.get(nn);St(nn,!1),tn(rn)}}ft==null||ft(Nt)}}function b(j){Promise.resolve().then(j)}var z="__RC_UTIL_PATH_SPLIT__",E=function(W){return W.join(z)},l=function(W){return W.split(z)},p="rc-menu-more";function o(){var j=d.useState({}),W=(0,A.Z)(j,2),de=W[1],Le=(0,d.useRef)(new Map),ye=(0,d.useRef)(new Map),$e=d.useState([]),De=(0,A.Z)($e,2),ct=De[0],St=De[1],ft=(0,d.useRef)(0),bt=(0,d.useRef)(!1),_t=function(){bt.current||de({})},wt=(0,d.useCallback)(function(Ot,Dt){var Ft=E(Dt);ye.current.set(Ft,Ot),Le.current.set(Ot,Ft),ft.current+=1;var Pt=ft.current;b(function(){Pt===ft.current&&_t()})},[]),Nt=(0,d.useCallback)(function(Ot,Dt){var Ft=E(Dt);ye.current.delete(Ft),Le.current.delete(Ot)},[]),Lt=(0,d.useCallback)(function(Ot){St(Ot)},[]),zt=(0,d.useCallback)(function(Ot,Dt){var Ft=Le.current.get(Ot)||"",Pt=l(Ft);return Dt&&ct.includes(Pt[0])&&Pt.unshift(p),Pt},[ct]),Ht=(0,d.useCallback)(function(Ot,Dt){return Ot.some(function(Ft){var Pt=zt(Ft,!0);return Pt.includes(Dt)})},[zt]),Ut=function(){var Dt=(0,q.Z)(Le.current.keys());return ct.length&&Dt.push(p),Dt},Mt=(0,d.useCallback)(function(Ot){var Dt="".concat(Le.current.get(Ot)).concat(z),Ft=new Set;return(0,q.Z)(ye.current.keys()).forEach(function(Pt){Pt.startsWith(Dt)&&Ft.add(ye.current.get(Pt))}),Ft},[]);return d.useEffect(function(){return function(){bt.current=!0}},[]),{registerPath:wt,unregisterPath:Nt,refreshOverflowKeys:Lt,isSubPathKey:Ht,getKeyPath:zt,getKeys:Ut,getSubPathKeys:Mt}}function c(j){var W=d.useRef(j);W.current=j;var de=d.useCallback(function(){for(var Le,ye=arguments.length,$e=new Array(ye),De=0;De<ye;De++)$e[De]=arguments[De];return(Le=W.current)===null||Le===void 0?void 0:Le.call.apply(Le,[W].concat($e))},[]);return j?de:void 0}var _=Math.random().toFixed(5).toString().slice(2),I=0;function U(j){var W=(0,_e.Z)(j,{value:j}),de=(0,A.Z)(W,2),Le=de[0],ye=de[1];return d.useEffect(function(){I+=1;var $e="".concat(_,"-").concat(I);ye("rc-menu-uuid-".concat($e))},[]),Le}var fe=i(99153),ae=i(84851),me=i(19257),Y=i(93046),Ce=i(2738),Te=i(8654);function X(j,W,de,Le){var ye=d.useContext(M),$e=ye.activeKey,De=ye.onActive,ct=ye.onInactive,St={active:$e===j};return W||(St.onMouseEnter=function(ft){de==null||de({key:j,domEvent:ft}),De(j)},St.onMouseLeave=function(ft){Le==null||Le({key:j,domEvent:ft}),ct(j)}),St}function Be(j){var W=d.useContext(M),de=W.mode,Le=W.rtl,ye=W.inlineIndent;if(de!=="inline")return null;var $e=j;return Le?{paddingRight:$e*ye}:{paddingLeft:$e*ye}}function Ge(j){var W=j.icon,de=j.props,Le=j.children,ye;return W===null||W===!1?null:(typeof W=="function"?ye=d.createElement(W,(0,F.Z)({},de)):typeof W!="boolean"&&(ye=W),ye||Le||null)}var Fe=["item"];function Ve(j){var W=j.item,de=(0,f.Z)(j,Fe);return Object.defineProperty(de,"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."),W}}),de}var nt=["title","attribute","elementRef"],yt=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],st=["active"],lt=function(j){(0,me.Z)(de,j);var W=(0,Y.Z)(de);function de(){return(0,fe.Z)(this,de),W.apply(this,arguments)}return(0,ae.Z)(de,[{key:"render",value:function(){var ye=this.props,$e=ye.title,De=ye.attribute,ct=ye.elementRef,St=(0,f.Z)(ye,nt),ft=(0,Ce.Z)(St,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,$.ZP)(!De,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),d.createElement(oe.Z.Item,(0,g.Z)({},De,{title:typeof $e=="string"?$e:void 0},ft,{ref:ct}))}}]),de}(d.Component),pt=d.forwardRef(function(j,W){var de,Le=j.style,ye=j.className,$e=j.eventKey,De=j.warnKey,ct=j.disabled,St=j.itemIcon,ft=j.children,bt=j.role,_t=j.onMouseEnter,wt=j.onMouseLeave,Nt=j.onClick,Lt=j.onKeyDown,zt=j.onFocus,Ht=(0,f.Z)(j,yt),Ut=Ee($e),Mt=d.useContext(M),Ot=Mt.prefixCls,Dt=Mt.onItemClick,Ft=Mt.disabled,Pt=Mt.overflowDisabled,Gt=Mt.itemIcon,Bt=Mt.selectedKeys,tn=Mt.onActive,Kt=d.useContext(be),Jt=Kt._internalRenderMenuItem,Xt="".concat(Ot,"-item"),Yt=d.useRef(),nn=d.useRef(),rn=Ft||ct,fn=(0,Te.x1)(W,nn),Wt=Q($e),an=function(en){return{key:$e,keyPath:(0,q.Z)(Wt).reverse(),item:Yt.current,domEvent:en}},ot=St||Gt,et=X($e,rn,_t,wt),xt=et.active,$t=(0,f.Z)(et,st),Zt=Bt.includes($e),dn=Be(Wt.length),qt=function(en){if(!rn){var mn=an(en);Nt==null||Nt(Ve(mn)),Dt(mn)}},Qt=function(en){if(Lt==null||Lt(en),en.which===O.Z.ENTER){var mn=an(en);Nt==null||Nt(Ve(mn)),Dt(mn)}},on=function(en){tn($e),zt==null||zt(en)},gn={};j.role==="option"&&(gn["aria-selected"]=Zt);var hn=d.createElement(lt,(0,g.Z)({ref:Yt,elementRef:fn,role:bt===null?"none":bt||"menuitem",tabIndex:ct?null:-1,"data-menu-id":Pt&&Ut?null:Ut},Ht,$t,gn,{component:"li","aria-disabled":ct,style:(0,F.Z)((0,F.Z)({},dn),Le),className:se()(Xt,(de={},(0,x.Z)(de,"".concat(Xt,"-active"),xt),(0,x.Z)(de,"".concat(Xt,"-selected"),Zt),(0,x.Z)(de,"".concat(Xt,"-disabled"),rn),de),ye),onClick:qt,onKeyDown:Qt,onFocus:on}),ft,d.createElement(Ge,{props:(0,F.Z)((0,F.Z)({},j),{},{isSelected:Zt}),icon:ot}));return Jt&&(hn=Jt(hn,j,{selected:Zt})),hn});function Ue(j,W){var de=j.eventKey,Le=w(),ye=Q(de);return d.useEffect(function(){if(Le)return Le.registerPath(de,ye),function(){Le.unregisterPath(de,ye)}},[ye]),Le?null:d.createElement(pt,(0,g.Z)({},j,{ref:W}))}var Ke=d.forwardRef(Ue),rt=["className","children"],Et=function(W,de){var Le=W.className,ye=W.children,$e=(0,f.Z)(W,rt),De=d.useContext(M),ct=De.prefixCls,St=De.mode,ft=De.rtl;return d.createElement("ul",(0,g.Z)({className:se()(ct,ft&&"".concat(ct,"-rtl"),"".concat(ct,"-sub"),"".concat(ct,"-").concat(St==="inline"?"inline":"vertical"),Le),role:"menu"},$e,{"data-menu-list":!0,ref:de}),ye)},mt=d.forwardRef(Et);mt.displayName="SubMenuList";var Ct=mt,At=i(11592);function ht(j,W){return(0,At.Z)(j).map(function(de,Le){if(d.isValidElement(de)){var ye,$e,De=de.key,ct=(ye=($e=de.props)===null||$e===void 0?void 0:$e.eventKey)!==null&&ye!==void 0?ye:De,St=ct==null;St&&(ct="tmp_key-".concat([].concat((0,q.Z)(W),[Le]).join("-")));var ft={key:ct,eventKey:ct};return d.cloneElement(de,ft)}return de})}var Rt=i(35593),it={adjustX:1,adjustY:1},dt={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}},He={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}},pe=null;function e(j,W,de){if(W)return W;if(de)return de[j]||de.other}var t={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function n(j){var W=j.prefixCls,de=j.visible,Le=j.children,ye=j.popup,$e=j.popupStyle,De=j.popupClassName,ct=j.popupOffset,St=j.disabled,ft=j.mode,bt=j.onVisibleChange,_t=d.useContext(M),wt=_t.getPopupContainer,Nt=_t.rtl,Lt=_t.subMenuOpenDelay,zt=_t.subMenuCloseDelay,Ht=_t.builtinPlacements,Ut=_t.triggerSubMenuAction,Mt=_t.forceSubMenuRender,Ot=_t.rootClassName,Dt=_t.motion,Ft=_t.defaultMotions,Pt=d.useState(!1),Gt=(0,A.Z)(Pt,2),Bt=Gt[0],tn=Gt[1],Kt=Nt?(0,F.Z)((0,F.Z)({},He),Ht):(0,F.Z)((0,F.Z)({},dt),Ht),Jt=t[ft],Xt=e(ft,Dt,Ft),Yt=d.useRef(Xt);ft!=="inline"&&(Yt.current=Xt);var nn=(0,F.Z)((0,F.Z)({},Yt.current),{},{leavedClassName:"".concat(W,"-hidden"),removeOnLeave:!1,motionAppear:!0}),rn=d.useRef();return d.useEffect(function(){return rn.current=(0,V.Z)(function(){tn(de)}),function(){V.Z.cancel(rn.current)}},[de]),d.createElement(Rt.Z,{prefixCls:W,popupClassName:se()("".concat(W,"-popup"),(0,x.Z)({},"".concat(W,"-rtl"),Nt),De,Ot),stretch:ft==="horizontal"?"minWidth":null,getPopupContainer:wt,builtinPlacements:Kt,popupPlacement:Jt,popupVisible:Bt,popup:ye,popupStyle:$e,popupAlign:ct&&{offset:ct},action:St?[]:[Ut],mouseEnterDelay:Lt,mouseLeaveDelay:zt,onPopupVisibleChange:bt,forceRender:Mt,popupMotion:nn,fresh:!0},Le)}var r=i(77900);function s(j){var W=j.id,de=j.open,Le=j.keyPath,ye=j.children,$e="inline",De=d.useContext(M),ct=De.prefixCls,St=De.forceSubMenuRender,ft=De.motion,bt=De.defaultMotions,_t=De.mode,wt=d.useRef(!1);wt.current=_t===$e;var Nt=d.useState(!wt.current),Lt=(0,A.Z)(Nt,2),zt=Lt[0],Ht=Lt[1],Ut=wt.current?de:!1;d.useEffect(function(){wt.current&&Ht(!1)},[_t]);var Mt=(0,F.Z)({},e($e,ft,bt));Le.length>1&&(Mt.motionAppear=!1);var Ot=Mt.onVisibleChanged;return Mt.onVisibleChanged=function(Dt){return!wt.current&&!Dt&&Ht(!0),Ot==null?void 0:Ot(Dt)},zt?null:d.createElement(C,{mode:$e,locked:!wt.current},d.createElement(r.default,(0,g.Z)({visible:Ut},Mt,{forceRender:St,removeOnLeave:!1,leavedClassName:"".concat(ct,"-hidden")}),function(Dt){var Ft=Dt.className,Pt=Dt.style;return d.createElement(Ct,{id:W,className:Ft,style:Pt},ye)}))}var S=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],L=["active"],Ie=function(W){var de,Le=W.style,ye=W.className,$e=W.title,De=W.eventKey,ct=W.warnKey,St=W.disabled,ft=W.internalPopupClose,bt=W.children,_t=W.itemIcon,wt=W.expandIcon,Nt=W.popupClassName,Lt=W.popupOffset,zt=W.popupStyle,Ht=W.onClick,Ut=W.onMouseEnter,Mt=W.onMouseLeave,Ot=W.onTitleClick,Dt=W.onTitleMouseEnter,Ft=W.onTitleMouseLeave,Pt=(0,f.Z)(W,S),Gt=Ee(De),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,ot=Bt.onOpenChange,et=Bt.onActive,xt=d.useContext(be),$t=xt._internalRenderSubMenuItem,Zt=d.useContext(he),dn=Zt.isSubPathKey,qt=Q(),Qt="".concat(tn,"-submenu"),on=Xt||St,gn=d.useRef(),hn=d.useRef(),En=_t!=null?_t:fn,en=wt!=null?wt:Wt,mn=Jt.includes(De),yn=!Yt&&mn,$n=dn(rn,De),xn=X(De,on,Dt,Ft),bn=xn.active,zn=(0,f.Z)(xn,L),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:De,domEvent:un})},jn=function(un){kn(!1),Mt==null||Mt({key:De,domEvent:un})},Ln=d.useMemo(function(){return bn||(Kt!=="inline"?On||dn([nn],De):!1)},[Kt,bn,nn,On,De,dn]),Bn=Be(qt.length),Vn=function(un){on||(Ot==null||Ot({key:De,domEvent:un}),Kt==="inline"&&ot(De,!mn))},Rn=c(function(pn){Ht==null||Ht(Ve(pn)),an(pn)}),Dn=function(un){Kt!=="inline"&&ot(De,un)},An=function(){et(De)},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 $e=="string"?$e: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),$e,d.createElement(Ge,{icon:Kt!=="horizontal"?en:void 0,props:(0,F.Z)((0,F.Z)({},W),{},{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:!ft&&yn&&Kt!=="inline",popupClassName:Nt,popupOffset:Lt,popupStyle:zt,popup:d.createElement(C,{mode:wn==="horizontal"?"vertical":wn},d.createElement(Ct,{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:Le,className:se()(Qt,"".concat(Qt,"-").concat(Kt),ye,(de={},(0,x.Z)(de,"".concat(Qt,"-open"),yn),(0,x.Z)(de,"".concat(Qt,"-active"),Ln),(0,x.Z)(de,"".concat(Qt,"-selected"),$n),(0,x.Z)(de,"".concat(Qt,"-disabled"),on),de)),onMouseEnter:vn,onMouseLeave:jn}),In,!Yt&&d.createElement(s,{id:Tn,open:yn,keyPath:qt},bt));return $t&&(Sn=$t(Sn,W,{selected:$n,active:Ln,open:yn,disabled:on})),d.createElement(C,{onItemClick:Rn,mode:Kt==="horizontal"?"vertical":Kt,itemIcon:En,expandIcon:en},Sn)};function Se(j){var W=j.eventKey,de=j.children,Le=Q(W),ye=ht(de,Le),$e=w();d.useEffect(function(){if($e)return $e.registerPath(W,Le),function(){$e.unregisterPath(W,Le)}},[Le]);var De;return $e?De=ye:De=d.createElement(Ie,j,ye),d.createElement(ne.Provider,{value:Le},De)}var Oe=i(93664),tt=["className","title","eventKey","children"],at=["children"],Ze=function(W){var de=W.className,Le=W.title,ye=W.eventKey,$e=W.children,De=(0,f.Z)(W,tt),ct=d.useContext(M),St=ct.prefixCls,ft="".concat(St,"-item-group");return d.createElement("li",(0,g.Z)({role:"presentation"},De,{onClick:function(_t){return _t.stopPropagation()},className:se()(ft,de)}),d.createElement("div",{role:"presentation",className:"".concat(ft,"-title"),title:typeof Le=="string"?Le:void 0},Le),d.createElement("ul",{role:"group",className:"".concat(ft,"-list")},$e))};function ut(j){var W=j.children,de=(0,f.Z)(j,at),Le=Q(de.eventKey),ye=ht(W,Le),$e=w();return $e?ye:d.createElement(Ze,(0,Ce.Z)(de,["warnKey"]),ye)}function We(j){var W=j.className,de=j.style,Le=d.useContext(M),ye=Le.prefixCls,$e=w();return $e?null:d.createElement("li",{role:"separator",className:se()("".concat(ye,"-item-divider"),W),style:de})}var Re=["label","children","key","type"];function Me(j){return(j||[]).map(function(W,de){if(W&&(0,Oe.Z)(W)==="object"){var Le=W,ye=Le.label,$e=Le.children,De=Le.key,ct=Le.type,St=(0,f.Z)(Le,Re),ft=De!=null?De:"tmp-".concat(de);return $e||ct==="group"?ct==="group"?d.createElement(ut,(0,g.Z)({key:ft},St,{title:ye}),Me($e)):d.createElement(Se,(0,g.Z)({key:ft},St,{title:ye}),Me($e)):ct==="divider"?d.createElement(We,(0,g.Z)({key:ft},St)):d.createElement(Ke,(0,g.Z)({key:ft},St),ye)}return null}).filter(function(W){return W})}function Qe(j,W,de){var Le=j;return W&&(Le=Me(W)),ht(Le,de)}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"],gt=[],Tt=d.forwardRef(function(j,W){var de,Le,ye=j,$e=ye.prefixCls,De=$e===void 0?"rc-menu":$e,ct=ye.rootClassName,St=ye.style,ft=ye.className,bt=ye.tabIndex,_t=bt===void 0?0:bt,wt=ye.items,Nt=ye.children,Lt=ye.direction,zt=ye.id,Ht=ye.mode,Ut=Ht===void 0?"vertical":Ht,Mt=ye.inlineCollapsed,Ot=ye.disabled,Dt=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,ot=ye.selectedKeys,et=ye.onSelect,xt=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 Qe(Nt,wt,gt)},[Nt,wt]),jn=d.useState(!1),Ln=(0,A.Z)(jn,2),Bn=Ln[0],Vn=Ln[1],Rn=d.useRef(),Dn=U(zt),An=Lt==="rtl",Tn=(0,_e.Z)(Kt,{value:Jt,postState:function(kt){return kt||gt}}),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,re.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(gt))},[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"||Dt;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?gt:vn.slice(Fn+1).map(function(Vt){return Vt.key}))},[Fn,Xn]);var Lr=(0,_e.Z)(Xt||Yt&&((de=vn[0])===null||de===void 0?void 0:de.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)(W,function(){return{list:Rn.current,focus:function(kt){var jt,sn=lr(),ln=m(sn,Dn),Un=ln.elements,Qn=ln.key2element,Zr=ln.element2key,fr=h(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,_e.Z)(an||[],{value:ot,postState:function(kt){return Array.isArray(kt)?kt:kt==null?gt:[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,F.Z)((0,F.Z)({},kt),{},{selectedKeys:ln});sn?xt==null||xt(Un):et==null||et(Un)}!Wt&&cn.length&&_n!=="inline"&&Sn(gt)},$r=c(function(Vt){xn==null||xn(Ve(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,ue.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"||Dt?vn:vn.map(function(Vt,kt){return d.createElement(C,{key:Vt.key,overflowDisabled:kt>Fn},Vt)}),Fr=d.createElement(oe.Z,(0,g.Z)({id:zt,ref:Rn,prefixCls:"".concat(De,"-overflow"),component:"ul",itemComponent:Ke,className:se()(De,"".concat(De,"-root"),"".concat(De,"-").concat(_n),ft,(Le={},(0,x.Z)(Le,"".concat(De,"-inline-collapsed"),Er),(0,x.Z)(Le,"".concat(De,"-rtl"),An),Le),ct),dir:Lt,style:St,role:"menu",tabIndex:_t,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"||Dt?oe.Z.INVALIDATE:oe.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(kt){Cr(kt)},onKeyDown:kr},kn));return d.createElement(be.Provider,{value:Br},d.createElement(te.Provider,{value:Dn},d.createElement(C,{prefixCls:De,rootClassName:ct,mode:_n,openKeys:cn,rtl:An,disabled:Ot,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(he.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=Ke,Ye.SubMenu=Se,Ye.ItemGroup=ut,Ye.Divider=We;var Xe=Ye},11780:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return ve}});var g=i(14809),x=i(20439),F=i(50298),q=i(62646),A=i(59301),f=i(92310),ce=i.n(f),se=i(29301),oe=i(34280),_e=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],ue=void 0;function $(H,le){var J=H.prefixCls,O=H.invalidate,V=H.item,ee=H.renderItem,ie=H.responsive,ge=H.responsiveDisabled,Ae=H.registerSize,Pe=H.itemKey,xe=H.className,Je=H.style,ke=H.children,ze=H.display,je=H.order,G=H.component,we=G===void 0?"div":G,h=(0,q.Z)(H,_e),y=ie&&!ze;function m(l){Ae(Pe,l)}A.useEffect(function(){return function(){m(null)}},[]);var a=ee&&V!==ue?ee(V,{index:je}):ke,b;O||(b={opacity:y?0:1,height:y?0:ue,overflowY:y?"hidden":ue,order:ie?je:ue,pointerEvents:y?"none":ue,position:y?"absolute":ue});var z={};y&&(z["aria-hidden"]=!0);var E=A.createElement(we,(0,g.Z)({className:ce()(!O&&J,xe),style:(0,x.Z)((0,x.Z)({},b),Je)},z,h,{ref:le}),a);return ie&&(E=A.createElement(se.Z,{onResize:function(p){var o=p.offsetWidth;m(o)},disabled:ge},E)),E}var d=A.forwardRef($);d.displayName="Item";var re=d,te=i(6089),Z=i(4676),Ee=i(16089);function K(H){if(typeof MessageChannel=="undefined")(0,Ee.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(O){H.current||(H.current=[],K(function(){(0,Z.unstable_batchedUpdates)(function(){H.current.forEach(function(V){V()}),H.current=null})})),H.current.push(O)};return le}function M(H,le){var J=A.useState(le),O=(0,F.Z)(J,2),V=O[0],ee=O[1],ie=(0,te.Z)(function(ge){H(function(){ee(ge)})});return[V,ie]}var u=A.createContext(null),C=["component"],N=["className"],k=["className"],w=function(le,J){var O=A.useContext(u);if(!O){var V=le.component,ee=V===void 0?"div":V,ie=(0,q.Z)(le,C);return A.createElement(ee,(0,g.Z)({},ie,{ref:J}))}var ge=O.className,Ae=(0,q.Z)(O,N),Pe=le.className,xe=(0,q.Z)(le,k);return A.createElement(u.Provider,{value:null},A.createElement(re,(0,g.Z)({ref:J,className:ce()(ge,Pe)},Ae,xe)))},ne=A.forwardRef(w);ne.displayName="RawItem";var Q=ne,he=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],D="responsive",be="invalidate";function R(H){return"+ ".concat(H.length," ...")}function P(H,le){var J=H.prefixCls,O=J===void 0?"rc-overflow":J,V=H.data,ee=V===void 0?[]:V,ie=H.renderItem,ge=H.renderRawItem,Ae=H.itemKey,Pe=H.itemWidth,xe=Pe===void 0?10:Pe,Je=H.ssr,ke=H.style,ze=H.className,je=H.maxCount,G=H.renderRest,we=H.renderRawRest,h=H.suffix,y=H.component,m=y===void 0?"div":y,a=H.itemComponent,b=H.onVisibleChange,z=(0,q.Z)(H,he),E=Je==="full",l=T(),p=M(l,null),o=(0,F.Z)(p,2),c=o[0],_=o[1],I=c||0,U=M(l,new Map),fe=(0,F.Z)(U,2),ae=fe[0],me=fe[1],Y=M(l,0),Ce=(0,F.Z)(Y,2),Te=Ce[0],X=Ce[1],Be=M(l,0),Ge=(0,F.Z)(Be,2),Fe=Ge[0],Ve=Ge[1],nt=M(l,0),yt=(0,F.Z)(nt,2),st=yt[0],lt=yt[1],pt=(0,A.useState)(null),Ue=(0,F.Z)(pt,2),Ke=Ue[0],rt=Ue[1],Et=(0,A.useState)(null),mt=(0,F.Z)(Et,2),Ct=mt[0],At=mt[1],ht=A.useMemo(function(){return Ct===null&&E?Number.MAX_SAFE_INTEGER:Ct||0},[Ct,c]),Rt=(0,A.useState)(!1),it=(0,F.Z)(Rt,2),dt=it[0],He=it[1],pe="".concat(O,"-item"),e=Math.max(Te,Fe),t=je===D,n=ee.length&&t,r=je===be,s=n||typeof je=="number"&&ee.length>je,S=(0,A.useMemo)(function(){var Xe=ee;return n?c===null&&E?Xe=ee:Xe=ee.slice(0,Math.min(ee.length,I/xe)):typeof je=="number"&&(Xe=ee.slice(0,je)),Xe},[ee,xe,c,je,n]),L=(0,A.useMemo)(function(){return n?ee.slice(ht+1):ee.slice(S.length)},[ee,S,n,ht]),Ie=(0,A.useCallback)(function(Xe,j){var W;return typeof Ae=="function"?Ae(Xe):(W=Ae&&(Xe==null?void 0:Xe[Ae]))!==null&&W!==void 0?W:j},[Ae]),Se=(0,A.useCallback)(ie||function(Xe){return Xe},[ie]);function Oe(Xe,j,W){Ct===Xe&&(j===void 0||j===Ke)||(At(Xe),W||(He(Xe<ee.length-1),b==null||b(Xe)),j!==void 0&&rt(j))}function tt(Xe,j){_(j.clientWidth)}function at(Xe,j){me(function(W){var de=new Map(W);return j===null?de.delete(Xe):de.set(Xe,j),de})}function Ze(Xe,j){Ve(j),X(Fe)}function ut(Xe,j){lt(j)}function We(Xe){return ae.get(Ie(S[Xe],Xe))}(0,oe.Z)(function(){if(I&&typeof e=="number"&&S){var Xe=st,j=S.length,W=j-1;if(!j){Oe(0,null);return}for(var de=0;de<j;de+=1){var Le=We(de);if(E&&(Le=Le||0),Le===void 0){Oe(de-1,void 0,!0);break}if(Xe+=Le,W===0&&Xe<=I||de===W-1&&Xe+We(W)<=I){Oe(W,null);break}else if(Xe+e>I){Oe(de-1,Xe-Le-st+Fe);break}}h&&We(0)+st>I&&rt(null)}},[I,ae,Fe,st,Ie,S]);var Re=dt&&!!L.length,Me={};Ke!==null&&n&&(Me={position:"absolute",left:Ke,top:0});var Qe={prefixCls:pe,responsive:n,component:a,invalidate:r},qe=ge?function(Xe,j){var W=Ie(Xe,j);return A.createElement(u.Provider,{key:W,value:(0,x.Z)((0,x.Z)({},Qe),{},{order:j,item:Xe,itemKey:W,registerSize:at,display:j<=ht})},ge(Xe,j))}:function(Xe,j){var W=Ie(Xe,j);return A.createElement(re,(0,g.Z)({},Qe,{order:j,key:W,item:Xe,renderItem:Se,itemKey:W,registerSize:at,display:j<=ht}))},gt={order:Re?ht:Number.MAX_SAFE_INTEGER,className:"".concat(pe,"-rest"),registerSize:Ze,display:Re},Tt=G||R,It=we?A.createElement(u.Provider,{value:(0,x.Z)((0,x.Z)({},Qe),gt)},we(L)):A.createElement(re,(0,g.Z)({},Qe,gt),typeof Tt=="function"?Tt(L):Tt),Ye=A.createElement(m,(0,g.Z)({className:ce()(!r&&O,ze),style:ke,ref:le},z),S.map(qe),s?It:null,h&&A.createElement(re,(0,g.Z)({},Qe,{responsive:t,responsiveDisabled:!n,order:ht,className:"".concat(pe,"-suffix"),registerSize:ut,display:!0,style:Me}),h));return t?A.createElement(se.Z,{onResize:tt,disabled:!n},Ye):Ye}var v=A.forwardRef(P);v.displayName="Overflow",v.Item=Q,v.RESPONSIVE=D,v.INVALIDATE=be;var B=v,ve=B},39417:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return w}});var g=i(14809),x=i(4635),F=i(62646),q=i(20439),A=i(99153),f=i(84851),ce=i(13028),se=i(19257),oe=i(93046),_e=i(92310),ue=i.n(_e),$=i(26112),d=i(59301),re=i(39378),te=function(Q){for(var he=Q.prefixCls,D=Q.level,be=Q.isStart,R=Q.isEnd,P="".concat(he,"-indent-unit"),v=[],B=0;B<D;B+=1){var ve;v.push(d.createElement("span",{key:B,className:ue()(P,(ve={},(0,x.Z)(ve,"".concat(P,"-start"),be[B]),(0,x.Z)(ve,"".concat(P,"-end"),R[B]),ve))}))}return d.createElement("span",{"aria-hidden":"true",className:"".concat(he,"-indent")},v)},Z=d.memo(te),Ee=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",C="---",N=function(ne){(0,se.Z)(he,ne);var Q=(0,oe.Z)(he);function he(){var D;(0,A.Z)(this,he);for(var be=arguments.length,R=new Array(be),P=0;P<be;P++)R[P]=arguments[P];return D=Q.call.apply(Q,[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,ve=B.disableCheckbox,H=B.checked,le=D.props.context.onNodeCheck;if(!(!D.isCheckable()||ve)){var J=!H;le(v,(0,K.F)(D.props),J)}}},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,ce.Z)(D));try{v.dataTransfer.setData("text/plain","")}catch(ve){}},D.onDragEnter=function(v){var B=D.props.context.onNodeDragEnter;v.preventDefault(),v.stopPropagation(),B(v,(0,ce.Z)(D))},D.onDragOver=function(v){var B=D.props.context.onNodeDragOver;v.preventDefault(),v.stopPropagation(),B(v,(0,ce.Z)(D))},D.onDragLeave=function(v){var B=D.props.context.onNodeDragLeave;v.stopPropagation(),B(v,(0,ce.Z)(D))},D.onDragEnd=function(v){var B=D.props.context.onNodeDragEnd;v.stopPropagation(),D.setState({dragNodeHighlight:!1}),B(v,(0,ce.Z)(D))},D.onDrop=function(v){var B=D.props.context.onNodeDrop;v.preventDefault(),v.stopPropagation(),D.setState({dragNodeHighlight:!1}),B(v,(0,ce.Z)(D))},D.onExpand=function(v){var B=D.props,ve=B.loading,H=B.context.onNodeExpand;ve||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,ve=(0,Ee.Z)(B,v)||{},H=ve.children;return!!(H||[]).length},D.isLeaf=function(){var v=D.props,B=v.isLeaf,ve=v.loaded,H=D.props.context.loadData,le=D.hasChildren();return B===!1?!1:B||!H&&!le||H&&ve&&!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,ve=v.loading,H=v.loaded,le=D.props.context,J=le.loadData,O=le.onNodeLoad;ve||J&&B&&!D.isLeaf()&&!D.hasChildren()&&!H&&O((0,K.F)(D.props))},D.isDraggable=function(){var v=D.props,B=v.data,ve=v.context.draggable;return!!(ve&&(!ve.nodeDraggable||ve.nodeDraggable(B)))},D.renderDragHandler=function(){var v=D.props.context,B=v.draggable,ve=v.prefixCls;return B!=null&&B.icon?d.createElement("span",{className:"".concat(ve,"-draggable-icon")},B.icon):null},D.renderSwitcherIconDom=function(v){var B=D.props.switcherIcon,ve=D.props.context.switcherIcon,H=B||ve;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 ve=D.renderSwitcherIconDom(!0);return ve!==!1?d.createElement("span",{className:ue()("".concat(B,"-switcher"),"".concat(B,"-switcher-noop"))},ve):null}var H=ue()("".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,ve=v.halfChecked,H=v.disableCheckbox,le=D.props.context.prefixCls,J=D.isDisabled(),O=D.isCheckable();if(!O)return null;var V=typeof O!="boolean"?O:null;return d.createElement("span",{className:ue()("".concat(le,"-checkbox"),B&&"".concat(le,"-checkbox-checked"),!B&&ve&&"".concat(le,"-checkbox-indeterminate"),(J||H)&&"".concat(le,"-checkbox-disabled")),onClick:D.onCheck},V)},D.renderIcon=function(){var v=D.props.loading,B=D.props.context.prefixCls;return d.createElement("span",{className:ue()("".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,ve=B.title,H=ve===void 0?C:ve,le=B.selected,J=B.icon,O=B.loading,V=B.data,ee=D.props.context,ie=ee.prefixCls,ge=ee.showIcon,Ae=ee.icon,Pe=ee.loadData,xe=ee.titleRender,Je=D.isDisabled(),ke="".concat(ie,"-node-content-wrapper"),ze;if(ge){var je=J||Ae;ze=je?d.createElement("span",{className:ue()("".concat(ie,"-iconEle"),"".concat(ie,"-icon__customize"))},typeof je=="function"?je(D.props):je):D.renderIcon()}else Pe&&O&&(ze=D.renderIcon());var G;typeof H=="function"?G=H(V):xe?G=xe(V):G=H;var we=d.createElement("span",{className:"".concat(ie,"-title")},G);return d.createElement("span",{ref:D.setSelectHandle,title:typeof H=="string"?H:"",className:ue()("".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,we,D.renderDropIndicator())},D.renderDropIndicator=function(){var v=D.props,B=v.disabled,ve=v.eventKey,H=D.props.context,le=H.draggable,J=H.dropLevelOffset,O=H.dropPosition,V=H.prefixCls,ee=H.indent,ie=H.dropIndicatorRender,ge=H.dragOverNodeKey,Ae=H.direction,Pe=!!le,xe=!B&&Pe&&ge===ve,Je=ee!=null?ee:D.cacheIndent;return D.cacheIndent=ee,xe?ie({dropPosition:O,dropLevelOffset:J,indent:Je,prefixCls:V,direction:Ae}):null},D}return(0,f.Z)(he,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var be=this.props.selectable,R=this.props.context.selectable;return typeof be=="boolean"?be:R}},{key:"render",value:function(){var be,R=this.props,P=R.eventKey,v=R.className,B=R.style,ve=R.dragOver,H=R.dragOverGapTop,le=R.dragOverGapBottom,J=R.isLeaf,O=R.isStart,V=R.isEnd,ee=R.expanded,ie=R.selected,ge=R.checked,Ae=R.halfChecked,Pe=R.loading,xe=R.domRef,Je=R.active,ke=R.data,ze=R.onMouseMove,je=R.selectable,G=(0,F.Z)(R,T),we=this.props.context,h=we.prefixCls,y=we.filterTreeNode,m=we.keyEntities,a=we.dropContainerKey,b=we.dropTargetKey,z=we.draggingNodeKey,E=this.isDisabled(),l=(0,$.Z)(G,{aria:!0,data:!0}),p=(0,Ee.Z)(m,P)||{},o=p.level,c=V[V.length-1],_=this.isDraggable(),I=!E&&_,U=z===P,fe=je!==void 0?{"aria-selected":!!je}:void 0;return d.createElement("div",(0,g.Z)({ref:xe,className:ue()(v,"".concat(h,"-treenode"),(be={},(0,x.Z)(be,"".concat(h,"-treenode-disabled"),E),(0,x.Z)(be,"".concat(h,"-treenode-switcher-").concat(ee?"open":"close"),!J),(0,x.Z)(be,"".concat(h,"-treenode-checkbox-checked"),ge),(0,x.Z)(be,"".concat(h,"-treenode-checkbox-indeterminate"),Ae),(0,x.Z)(be,"".concat(h,"-treenode-selected"),ie),(0,x.Z)(be,"".concat(h,"-treenode-loading"),Pe),(0,x.Z)(be,"".concat(h,"-treenode-active"),Je),(0,x.Z)(be,"".concat(h,"-treenode-leaf-last"),c),(0,x.Z)(be,"".concat(h,"-treenode-draggable"),_),(0,x.Z)(be,"dragging",U),(0,x.Z)(be,"drop-target",b===P),(0,x.Z)(be,"drop-container",a===P),(0,x.Z)(be,"drag-over",!E&&ve),(0,x.Z)(be,"drag-over-gap-top",!E&&H),(0,x.Z)(be,"drag-over-gap-bottom",!E&&le),(0,x.Z)(be,"filter-node",y&&y((0,K.F)(this.props))),be)),style:B,draggable:I,"aria-grabbed":U,onDragStart:I?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:h,level:o,isStart:O,isEnd:V}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),he}(d.Component),k=function(Q){return d.createElement(re.k.Consumer,null,function(he){return d.createElement(N,(0,g.Z)({},Q,{context:he}))})};k.displayName="TreeNode",k.isTreeNode=1;var w=k},39378:function(vt,Ne,i){"use strict";i.d(Ne,{k:function(){return x}});var g=i(59301),x=g.createContext(null)},79556:function(vt,Ne,i){"use strict";i.d(Ne,{O:function(){return w.Z},Z:function(){return we}});var g=i(14809),x=i(4635),F=i(93664),q=i(20439),A=i(95190),f=i(99153),ce=i(84851),se=i(13028),oe=i(19257),_e=i(93046),ue=i(92310),$=i.n(ue),d=i(10228),re=i(26112),te=i(48736),Z=i(59301),Ee=i(39378);function K(h){var y=h.dropPosition,m=h.dropLevelOffset,a=h.indent,b={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(y){case-1:b.top=0,b.left=-m*a;break;case 1:b.bottom=0,b.left=-m*a;break;case 0:b.bottom=0,b.left=a;break}return Z.createElement("div",{style:b})}function T(h){if(h==null)throw new TypeError("Cannot destructure "+h)}var M=i(50298),u=i(62646),C=i(34280),N=i(6790),k=i(77900),w=i(39417);function ne(h,y){var m=Z.useState(!1),a=(0,M.Z)(m,2),b=a[0],z=a[1];Z.useLayoutEffect(function(){if(b)return h(),function(){y()}},[b]),Z.useLayoutEffect(function(){return z(!0),function(){z(!1)}},[])}var Q=i(71430),he=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],D=function(y,m){var a=y.className,b=y.style,z=y.motion,E=y.motionNodes,l=y.motionType,p=y.onMotionStart,o=y.onMotionEnd,c=y.active,_=y.treeNodeRequiredProps,I=(0,u.Z)(y,he),U=Z.useState(!0),fe=(0,M.Z)(U,2),ae=fe[0],me=fe[1],Y=Z.useContext(Ee.k),Ce=Y.prefixCls,Te=E&&l!=="hide";(0,C.Z)(function(){E&&Te!==ae&&me(Te)},[E]);var X=function(){E&&p()},Be=Z.useRef(!1),Ge=function(){E&&!Be.current&&(Be.current=!0,o())};ne(X,Ge);var Fe=function(nt){Te===nt&&Ge()};return E?Z.createElement(k.default,(0,g.Z)({ref:m,visible:ae},z,{motionAppear:l==="show",onVisibleChanged:Fe}),function(Ve,nt){var yt=Ve.className,st=Ve.style;return Z.createElement("div",{ref:nt,className:$()("".concat(Ce,"-treenode-motion"),yt),style:st},E.map(function(lt){var pt=(0,g.Z)({},(T(lt.data),lt.data)),Ue=lt.title,Ke=lt.key,rt=lt.isStart,Et=lt.isEnd;delete pt.children;var mt=(0,Q.H8)(Ke,_);return Z.createElement(w.Z,(0,g.Z)({},pt,mt,{title:Ue,active:c,data:lt.data,key:Ke,isStart:rt,isEnd:Et}))}))}):Z.createElement(w.Z,(0,g.Z)({domRef:m,className:a,style:b},I,{active:c}))};D.displayName="MotionTreeNode";var be=Z.forwardRef(D),R=be;function P(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],m=h.length,a=y.length;if(Math.abs(m-a)!==1)return{add:!1,key:null};function b(z,E){var l=new Map;z.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 m<a?{add:!0,key:b(h,y)}:{add:!1,key:b(y,h)}}function v(h,y,m){var a=h.findIndex(function(l){return l.key===m}),b=h[a+1],z=y.findIndex(function(l){return l.key===m});if(b){var E=y.findIndex(function(l){return l.key===b.key});return y.slice(z+1,E)}return y.slice(z+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"],ve={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()),J={key:le},O={key:le,level:0,index:0,pos:"0",node:J,nodes:[J]},V={parent:null,children:[],pos:O.pos,data:J,title:null,key:le,isStart:[],isEnd:[]};function ee(h,y,m,a){return y===!1||!m?h:h.slice(0,Math.ceil(m/a)+1)}function ie(h){var y=h.key,m=h.pos;return(0,Q.km)(y,m)}function ge(h){for(var y=String(h.data.key),m=h;m.parent;)m=m.parent,y="".concat(m.data.key," > ").concat(y);return y}var Ae=Z.forwardRef(function(h,y){var m=h.prefixCls,a=h.data,b=h.selectable,z=h.checkable,E=h.expandedKeys,l=h.selectedKeys,p=h.checkedKeys,o=h.loadedKeys,c=h.loadingKeys,_=h.halfCheckedKeys,I=h.keyEntities,U=h.disabled,fe=h.dragging,ae=h.dragOverNodeKey,me=h.dropPosition,Y=h.motion,Ce=h.height,Te=h.itemHeight,X=h.virtual,Be=h.focusable,Ge=h.activeItem,Fe=h.focused,Ve=h.tabIndex,nt=h.onKeyDown,yt=h.onFocus,st=h.onBlur,lt=h.onActiveChange,pt=h.onListChangeStart,Ue=h.onListChangeEnd,Ke=(0,u.Z)(h,B),rt=Z.useRef(null),Et=Z.useRef(null);Z.useImperativeHandle(y,function(){return{scrollTo:function(Me){rt.current.scrollTo(Me)},getIndentWidth:function(){return Et.current.offsetWidth}}});var mt=Z.useState(E),Ct=(0,M.Z)(mt,2),At=Ct[0],ht=Ct[1],Rt=Z.useState(a),it=(0,M.Z)(Rt,2),dt=it[0],He=it[1],pe=Z.useState(a),e=(0,M.Z)(pe,2),t=e[0],n=e[1],r=Z.useState([]),s=(0,M.Z)(r,2),S=s[0],L=s[1],Ie=Z.useState(null),Se=(0,M.Z)(Ie,2),Oe=Se[0],tt=Se[1],at=Z.useRef(a);at.current=a;function Ze(){var Re=at.current;He(Re),n(Re),L([]),tt(null),Ue()}(0,C.Z)(function(){ht(E);var Re=P(At,E);if(Re.key!==null)if(Re.add){var Me=dt.findIndex(function(Ye){var Xe=Ye.key;return Xe===Re.key}),Qe=ee(v(dt,a,Re.key),X,Ce,Te),qe=dt.slice();qe.splice(Me+1,0,V),n(qe),L(Qe),tt("show")}else{var gt=a.findIndex(function(Ye){var Xe=Ye.key;return Xe===Re.key}),Tt=ee(v(a,dt,Re.key),X,Ce,Te),It=a.slice();It.splice(gt+1,0,V),n(It),L(Tt),tt("hide")}else dt!==a&&(He(a),n(a))},[E,a]),Z.useEffect(function(){fe||Ze()},[fe]);var ut=Y?t:a,We={expandedKeys:E,selectedKeys:l,loadedKeys:o,loadingKeys:c,checkedKeys:p,halfCheckedKeys:_,dragOverNodeKey:ae,dropPosition:me,keyEntities:I};return Z.createElement(Z.Fragment,null,Fe&&Ge&&Z.createElement("span",{style:ve,"aria-live":"assertive"},ge(Ge)),Z.createElement("div",null,Z.createElement("input",{style:ve,disabled:Be===!1||U,tabIndex:Be!==!1?Ve:null,onKeyDown:nt,onFocus:yt,onBlur:st,value:"",onChange:H,"aria-label":"for screen reader"})),Z.createElement("div",{className:"".concat(m,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Z.createElement("div",{className:"".concat(m,"-indent")},Z.createElement("div",{ref:Et,className:"".concat(m,"-indent-unit")}))),Z.createElement(N.Z,(0,g.Z)({},Ke,{data:ut,itemKey:ie,height:Ce,fullHeight:!1,virtual:X,itemHeight:Te,prefixCls:"".concat(m,"-list"),ref:rt,onVisibleChange:function(Me,Qe){var qe=new Set(Me),gt=Qe.filter(function(Tt){return!qe.has(Tt)});gt.some(function(Tt){return ie(Tt)===le})&&Ze()}}),function(Re){var Me=Re.pos,Qe=(0,g.Z)({},(T(Re.data),Re.data)),qe=Re.title,gt=Re.key,Tt=Re.isStart,It=Re.isEnd,Ye=(0,Q.km)(gt,Me);delete Qe.key,delete Qe.children;var Xe=(0,Q.H8)(Ye,We);return Z.createElement(R,(0,g.Z)({},Qe,Xe,{title:qe,active:!!Ge&>===Ge.key,pos:Me,data:Re.data,isStart:Tt,isEnd:It,motion:Y,motionNodes:gt===le?S:null,motionType:Oe,onMotionStart:pt,onMotionEnd:Ze,treeNodeRequiredProps:We,onMouseMove:function(){lt(null)}}))}))});Ae.displayName="NodeList";var Pe=Ae,xe=i(35654),Je=i(90782),ke=i(67841),ze=10,je=function(h){(0,oe.Z)(m,h);var y=(0,_e.Z)(m);function m(){var a;(0,f.Z)(this,m);for(var b=arguments.length,z=new Array(b),E=0;E<b;E++)z[E]=arguments[E];return a=y.call.apply(y,[this].concat(z)),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,Q.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,I=a.props.onDragStart,U=p.props.eventKey;a.dragNode=p,a.dragStartMousePosition={x:l.clientX,y:l.clientY};var fe=(0,xe._5)(c,U);a.setState({draggingNodeKey:U,dragChildrenKeys:(0,xe.wA)(U,_),indent:a.listRef.current.getIndentWidth()}),a.setExpandedKeys(fe),window.addEventListener("dragend",a.onWindowDragEnd),I==null||I({event:l,node:(0,Q.F)(p.props)})},a.onNodeDragEnter=function(l,p){var o=a.state,c=o.expandedKeys,_=o.keyEntities,I=o.dragChildrenKeys,U=o.flattenNodes,fe=o.indent,ae=a.props,me=ae.onDragEnter,Y=ae.onExpand,Ce=ae.allowDrop,Te=ae.direction,X=p.props,Be=X.pos,Ge=X.eventKey,Fe=(0,se.Z)(a),Ve=Fe.dragNode;if(a.currentMouseOverDroppableNodeKey!==Ge&&(a.currentMouseOverDroppableNodeKey=Ge),!Ve){a.resetDragState();return}var nt=(0,xe.OM)(l,Ve,p,fe,a.dragStartMousePosition,Ce,U,_,c,Te),yt=nt.dropPosition,st=nt.dropLevelOffset,lt=nt.dropTargetKey,pt=nt.dropContainerKey,Ue=nt.dropTargetPos,Ke=nt.dropAllowed,rt=nt.dragOverNodeKey;if(I.indexOf(lt)!==-1||!Ke){a.resetDragState();return}if(a.delayedDragEnterLogic||(a.delayedDragEnterLogic={}),Object.keys(a.delayedDragEnterLogic).forEach(function(Et){clearTimeout(a.delayedDragEnterLogic[Et])}),Ve.props.eventKey!==p.props.eventKey&&(l.persist(),a.delayedDragEnterLogic[Be]=window.setTimeout(function(){if(a.state.draggingNodeKey!==null){var Et=(0,A.Z)(c),mt=(0,ke.Z)(_,p.props.eventKey);mt&&(mt.children||[]).length&&(Et=(0,xe.L0)(c,p.props.eventKey)),"expandedKeys"in a.props||a.setExpandedKeys(Et),Y==null||Y(Et,{node:(0,Q.F)(p.props),expanded:!0,nativeEvent:l.nativeEvent})}},800)),Ve.props.eventKey===lt&&st===0){a.resetDragState();return}a.setState({dragOverNodeKey:rt,dropPosition:yt,dropLevelOffset:st,dropTargetKey:lt,dropContainerKey:pt,dropTargetPos:Ue,dropAllowed:Ke}),me==null||me({event:l,node:(0,Q.F)(p.props),expandedKeys:c})},a.onNodeDragOver=function(l,p){var o=a.state,c=o.dragChildrenKeys,_=o.flattenNodes,I=o.keyEntities,U=o.expandedKeys,fe=o.indent,ae=a.props,me=ae.onDragOver,Y=ae.allowDrop,Ce=ae.direction,Te=(0,se.Z)(a),X=Te.dragNode;if(X){var Be=(0,xe.OM)(l,X,p,fe,a.dragStartMousePosition,Y,_,I,U,Ce),Ge=Be.dropPosition,Fe=Be.dropLevelOffset,Ve=Be.dropTargetKey,nt=Be.dropContainerKey,yt=Be.dropAllowed,st=Be.dropTargetPos,lt=Be.dragOverNodeKey;c.indexOf(Ve)!==-1||!yt||(X.props.eventKey===Ve&&Fe===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():Ge===a.state.dropPosition&&Fe===a.state.dropLevelOffset&&Ve===a.state.dropTargetKey&&nt===a.state.dropContainerKey&&st===a.state.dropTargetPos&&yt===a.state.dropAllowed&<===a.state.dragOverNodeKey||a.setState({dropPosition:Ge,dropLevelOffset:Fe,dropTargetKey:Ve,dropContainerKey:nt,dropTargetPos:st,dropAllowed:yt,dragOverNodeKey:lt}),me==null||me({event:l,node:(0,Q.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,Q.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,Q.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,I=_.dragChildrenKeys,U=_.dropPosition,fe=_.dropTargetKey,ae=_.dropTargetPos,me=_.dropAllowed;if(me){var Y=a.props.onDrop;if(a.setState({dragOverNodeKey:null}),a.cleanDragState(),fe!==null){var Ce=(0,q.Z)((0,q.Z)({},(0,Q.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}),Te=I.indexOf(fe)!==-1;(0,te.ZP)(!Te,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var X=(0,xe.yx)(ae),Be={event:l,node:(0,Q.F)(Ce),dragNode:a.dragNode?(0,Q.F)(a.dragNode.props):null,dragNodesKeys:[a.dragNode.props.eventKey].concat(I),dropToGap:U!==0,dropPosition:U+Number(X[X.length-1])};c||Y==null||Y(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,I=p.expanded,U=p.key,fe=p.isLeaf;if(!(fe||l.shiftKey||l.metaKey||l.ctrlKey)){var ae=_.filter(function(Y){return Y.key===U})[0],me=(0,Q.F)((0,q.Z)((0,q.Z)({},(0,Q.H8)(U,a.getTreeNodeRequiredProps())),{},{data:ae.data}));a.setExpandedKeys(I?(0,xe._5)(c,U):(0,xe.L0)(c,U)),a.onNodeExpand(l,me)}},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,I=c.fieldNames,U=a.props,fe=U.onSelect,ae=U.multiple,me=p.selected,Y=p[I.key],Ce=!me;Ce?ae?o=(0,xe.L0)(o,Y):o=[Y]:o=(0,xe._5)(o,Y);var Te=o.map(function(X){var Be=(0,ke.Z)(_,X);return Be?Be.node:null}).filter(function(X){return X});a.setUncontrolledState({selectedKeys:o}),fe==null||fe(o,{event:"select",selected:Ce,node:p,selectedNodes:Te,nativeEvent:l.nativeEvent})},a.onNodeCheck=function(l,p,o){var c=a.state,_=c.keyEntities,I=c.checkedKeys,U=c.halfCheckedKeys,fe=a.props,ae=fe.checkStrictly,me=fe.onCheck,Y=p.key,Ce,Te={event:"check",node:p,checked:o,nativeEvent:l.nativeEvent};if(ae){var X=o?(0,xe.L0)(I,Y):(0,xe._5)(I,Y),Be=(0,xe._5)(U,Y);Ce={checked:X,halfChecked:Be},Te.checkedNodes=X.map(function(st){return(0,ke.Z)(_,st)}).filter(function(st){return st}).map(function(st){return st.node}),a.setUncontrolledState({checkedKeys:X})}else{var Ge=(0,Je.S)([].concat((0,A.Z)(I),[Y]),!0,_),Fe=Ge.checkedKeys,Ve=Ge.halfCheckedKeys;if(!o){var nt=new Set(Fe);nt.delete(Y);var yt=(0,Je.S)(Array.from(nt),{checked:!1,halfCheckedKeys:Ve},_);Fe=yt.checkedKeys,Ve=yt.halfCheckedKeys}Ce=Fe,Te.checkedNodes=[],Te.checkedNodesPositions=[],Te.halfCheckedKeys=Ve,Fe.forEach(function(st){var lt=(0,ke.Z)(_,st);if(lt){var pt=lt.node,Ue=lt.pos;Te.checkedNodes.push(pt),Te.checkedNodesPositions.push({node:pt,pos:Ue})}}),a.setUncontrolledState({checkedKeys:Fe},!1,{halfCheckedKeys:Ve})}me==null||me(Ce,Te)},a.onNodeLoad=function(l){var p=l.key,o=new Promise(function(c,_){a.setState(function(I){var U=I.loadedKeys,fe=U===void 0?[]:U,ae=I.loadingKeys,me=ae===void 0?[]:ae,Y=a.props,Ce=Y.loadData,Te=Y.onLoad;if(!Ce||fe.indexOf(p)!==-1||me.indexOf(p)!==-1)return null;var X=Ce(l);return X.then(function(){var Be=a.state.loadedKeys,Ge=(0,xe.L0)(Be,p);Te==null||Te(Ge,{event:"load",node:l}),a.setUncontrolledState({loadedKeys:Ge}),a.setState(function(Fe){return{loadingKeys:(0,xe._5)(Fe.loadingKeys,p)}}),c()}).catch(function(Be){if(a.setState(function(Fe){return{loadingKeys:(0,xe._5)(Fe.loadingKeys,p)}}),a.loadingRetryTimes[p]=(a.loadingRetryTimes[p]||0)+1,a.loadingRetryTimes[p]>=ze){var Ge=a.state.loadedKeys;(0,te.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),a.setUncontrolledState({loadedKeys:(0,xe.L0)(Ge,p)}),c()}_(Be)}),{loadingKeys:(0,xe.L0)(me,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,I=l.checkedKeys,U=l.halfCheckedKeys,fe=l.dragOverNodeKey,ae=l.dropPosition,me=l.keyEntities;return{expandedKeys:p||[],selectedKeys:o||[],loadedKeys:c||[],loadingKeys:_||[],checkedKeys:I||[],halfCheckedKeys:U||[],dragOverNodeKey:fe,dropPosition:ae,keyEntities:me}},a.setExpandedKeys=function(l){var p=a.state,o=p.treeData,c=p.fieldNames,_=(0,Q.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,I=c.fieldNames,U=a.props,fe=U.onExpand,ae=U.loadData,me=p.expanded,Y=p[I.key];if(!_){var Ce=o.indexOf(Y),Te=!me;if((0,te.ZP)(me&&Ce!==-1||!me&&Ce===-1,"Expand state not sync with index check"),Te?o=(0,xe.L0)(o,Y):o=(0,xe._5)(o,Y),a.setExpandedKeys(o),fe==null||fe(o,{node:p,expanded:Te,nativeEvent:l.nativeEvent}),Te&&ae){var X=a.onNodeLoad(p);X&&X.then(function(){var Be=(0,Q.oH)(a.state.treeData,o,I);a.setUncontrolledState({flattenNodes:Be})}).catch(function(){var Be=a.state.expandedKeys,Ge=(0,xe._5)(Be,Y);a.setExpandedKeys(Ge)})}}},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 I=o[_];if(I){var U=I.key;a.onActiveChange(U)}else a.onActiveChange(null)},a.onKeyDown=function(l){var p=a.state,o=p.activeKey,c=p.expandedKeys,_=p.checkedKeys,I=p.fieldNames,U=a.props,fe=U.onKeyDown,ae=U.checkable,me=U.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 Y=a.getActiveItem();if(Y&&Y.data){var Ce=a.getTreeNodeRequiredProps(),Te=Y.data.isLeaf===!1||!!(Y.data[I.children]||[]).length,X=(0,Q.F)((0,q.Z)((0,q.Z)({},(0,Q.H8)(o,Ce)),{},{data:Y.data,active:!0}));switch(l.which){case d.Z.LEFT:{Te&&c.includes(o)?a.onNodeExpand({},X):Y.parent&&a.onActiveChange(Y.parent.key),l.preventDefault();break}case d.Z.RIGHT:{Te&&!c.includes(o)?a.onNodeExpand({},X):Y.children&&Y.children.length&&a.onActiveChange(Y.children[0].key),l.preventDefault();break}case d.Z.ENTER:case d.Z.SPACE:{ae&&!X.disabled&&X.checkable!==!1&&!X.disableCheckbox?a.onNodeCheck({},X,!_.includes(o)):!ae&&me&&!X.disabled&&X.selectable!==!1&&a.onNodeSelect({},X);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,I={};Object.keys(l).forEach(function(U){if(U in a.props){_=!1;return}c=!0,I[U]=l[U]}),c&&(!p||_)&&a.setState((0,q.Z)((0,q.Z)({},I),o))}},a.scrollTo=function(l){a.listRef.current.scrollTo(l)},a}return(0,ce.Z)(m,[{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,z=this.state,E=z.focused,l=z.flattenNodes,p=z.keyEntities,o=z.draggingNodeKey,c=z.activeKey,_=z.dropLevelOffset,I=z.dropContainerKey,U=z.dropTargetKey,fe=z.dropPosition,ae=z.dragOverNodeKey,me=z.indent,Y=this.props,Ce=Y.prefixCls,Te=Y.className,X=Y.style,Be=Y.showLine,Ge=Y.focusable,Fe=Y.tabIndex,Ve=Fe===void 0?0:Fe,nt=Y.selectable,yt=Y.showIcon,st=Y.icon,lt=Y.switcherIcon,pt=Y.draggable,Ue=Y.checkable,Ke=Y.checkStrictly,rt=Y.disabled,Et=Y.motion,mt=Y.loadData,Ct=Y.filterTreeNode,At=Y.height,ht=Y.itemHeight,Rt=Y.virtual,it=Y.titleRender,dt=Y.dropIndicatorRender,He=Y.onContextMenu,pe=Y.onScroll,e=Y.direction,t=Y.rootClassName,n=Y.rootStyle,r=(0,re.Z)(this.props,{aria:!0,data:!0}),s;return pt&&((0,F.Z)(pt)==="object"?s=pt:typeof pt=="function"?s={nodeDraggable:pt}:s={}),Z.createElement(Ee.k.Provider,{value:{prefixCls:Ce,selectable:nt,showIcon:yt,icon:st,switcherIcon:lt,draggable:s,draggingNodeKey:o,checkable:Ue,checkStrictly:Ke,disabled:rt,keyEntities:p,dropLevelOffset:_,dropContainerKey:I,dropTargetKey:U,dropPosition:fe,dragOverNodeKey:ae,indent:me,direction:e,dropIndicatorRender:dt,loadData:mt,filterTreeNode:Ct,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:$()(Ce,Te,t,(b={},(0,x.Z)(b,"".concat(Ce,"-show-line"),Be),(0,x.Z)(b,"".concat(Ce,"-focused"),E),(0,x.Z)(b,"".concat(Ce,"-active-focused"),c!==null),b)),style:n},Z.createElement(Pe,(0,g.Z)({ref:this.listRef,prefixCls:Ce,style:X,data:l,disabled:rt,selectable:nt,checkable:!!Ue,motion:Et,dragging:o!==null,height:At,itemHeight:ht,virtual:Rt,focusable:Ge,focused:E,tabIndex:Ve,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:He,onScroll:pe},this.getTreeNodeRequiredProps(),r))))}}],[{key:"getDerivedStateFromProps",value:function(b,z){var E=z.prevProps,l={prevProps:b};function p(Ge){return!E&&Ge in b||E&&E[Ge]!==b[Ge]}var o,c=z.fieldNames;if(p("fieldNames")&&(c=(0,Q.w$)(b.fieldNames),l.fieldNames=c),p("treeData")?o=b.treeData:p("children")&&((0,te.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),o=(0,Q.zn)(b.children)),o){l.treeData=o;var _=(0,Q.I8)(o,{fieldNames:c});l.keyEntities=(0,q.Z)((0,x.Z)({},le,O),_.keyEntities)}var I=l.keyEntities||z.keyEntities;if(p("expandedKeys")||E&&p("autoExpandParent"))l.expandedKeys=b.autoExpandParent||!E&&b.defaultExpandParent?(0,xe.r7)(b.expandedKeys,I):b.expandedKeys;else if(!E&&b.defaultExpandAll){var U=(0,q.Z)({},I);delete U[le],l.expandedKeys=Object.keys(U).map(function(Ge){return U[Ge].key})}else!E&&b.defaultExpandedKeys&&(l.expandedKeys=b.autoExpandParent||b.defaultExpandParent?(0,xe.r7)(b.defaultExpandedKeys,I):b.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,o||l.expandedKeys){var fe=(0,Q.oH)(o||z.treeData,l.expandedKeys||z.expandedKeys,c);l.flattenNodes=fe}if(b.selectable&&(p("selectedKeys")?l.selectedKeys=(0,xe.BT)(b.selectedKeys,b):!E&&b.defaultSelectedKeys&&(l.selectedKeys=(0,xe.BT)(b.defaultSelectedKeys,b))),b.checkable){var ae;if(p("checkedKeys")?ae=(0,xe.E6)(b.checkedKeys)||{}:!E&&b.defaultCheckedKeys?ae=(0,xe.E6)(b.defaultCheckedKeys)||{}:o&&(ae=(0,xe.E6)(b.checkedKeys)||{checkedKeys:z.checkedKeys,halfCheckedKeys:z.halfCheckedKeys}),ae){var me=ae,Y=me.checkedKeys,Ce=Y===void 0?[]:Y,Te=me.halfCheckedKeys,X=Te===void 0?[]:Te;if(!b.checkStrictly){var Be=(0,Je.S)(Ce,!0,I);Ce=Be.checkedKeys,X=Be.halfCheckedKeys}l.checkedKeys=Ce,l.halfCheckedKeys=X}}return p("loadedKeys")&&(l.loadedKeys=b.loadedKeys),l}}]),m}(Z.Component);je.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},je.TreeNode=w.Z;var G=je,we=G},35654:function(vt,Ne,i){"use strict";i.d(Ne,{BT:function(){return Z},E6:function(){return T},L0:function(){return _e},OM:function(){return te},_5:function(){return oe},r7:function(){return M},wA:function(){return $},yx:function(){return ue}});var g=i(95190),x=i(93664),F=i(48736),q=i(59301),A=i(39417),f=i(67841),ce=i(71430),se=null;function oe(u,C){if(!u)return[];var N=u.slice(),k=N.indexOf(C);return k>=0&&N.splice(k,1),N}function _e(u,C){var N=(u||[]).slice();return N.indexOf(C)===-1&&N.push(C),N}function ue(u){return u.split("-")}function $(u,C){var N=[],k=(0,f.Z)(C,u);function w(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ne.forEach(function(Q){var he=Q.key,D=Q.children;N.push(he),w(D)})}return w(k.children),N}function d(u){if(u.parent){var C=ue(u.pos);return Number(C[C.length-1])===u.parent.children.length-1}return!1}function re(u){var C=ue(u.pos);return Number(C[C.length-1])===0}function te(u,C,N,k,w,ne,Q,he,D,be){var R,P=u.clientX,v=u.clientY,B=u.target.getBoundingClientRect(),ve=B.top,H=B.height,le=(be==="rtl"?-1:1)*(((w==null?void 0:w.x)||0)-P),J=(le-12)/k,O=(0,f.Z)(he,N.props.eventKey);if(v<ve+H/2){var V=Q.findIndex(function(we){return we.key===O.key}),ee=V<=0?0:V-1,ie=Q[ee].key;O=(0,f.Z)(he,ie)}var ge=O.key,Ae=O,Pe=O.key,xe=0,Je=0;if(!D.includes(ge))for(var ke=0;ke<J&&d(O);ke+=1)O=O.parent,Je+=1;var ze=C.props.data,je=O.node,G=!0;return re(O)&&O.level===0&&v<ve+H/2&&ne({dragNode:ze,dropNode:je,dropPosition:-1})&&O.key===N.props.eventKey?xe=-1:(Ae.children||[]).length&&D.includes(Pe)?ne({dragNode:ze,dropNode:je,dropPosition:0})?xe=0:G=!1:Je===0?J>-1.5?ne({dragNode:ze,dropNode:je,dropPosition:1})?xe=1:G=!1:ne({dragNode:ze,dropNode:je,dropPosition:0})?xe=0:ne({dragNode:ze,dropNode:je,dropPosition:1})?xe=1:G=!1:ne({dragNode:ze,dropNode:je,dropPosition:1})?xe=1:G=!1,{dropPosition:xe,dropLevelOffset:Je,dropTargetKey:O.key,dropTargetPos:O.pos,dragOverNodeKey:Pe,dropContainerKey:xe===0?null:((R=O.parent)===null||R===void 0?void 0:R.key)||null,dropAllowed:G}}function Z(u,C){if(u){var N=C.multiple;return N?u.slice():u.length?[u[0]]:u}}var Ee=function(C){return C};function K(u,C){if(!u)return[];var N=C||{},k=N.processProps,w=k===void 0?Ee:k,ne=Array.isArray(u)?u:[u];return ne.map(function(Q){var he=Q.children,D=_objectWithoutProperties(Q,se),be=K(he,C);return React.createElement(TreeNode,_extends({key:D.key},w(D)),be)})}function T(u){if(!u)return null;var C;if(Array.isArray(u))C={checkedKeys:u,halfCheckedKeys:void 0};else if((0,x.Z)(u)==="object")C={checkedKeys:u.checked||void 0,halfCheckedKeys:u.halfChecked||void 0};else return(0,F.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return C}function M(u,C){var N=new Set;function k(w){if(!N.has(w)){var ne=(0,f.Z)(C,w);if(ne){N.add(w);var Q=ne.parent,he=ne.node;he.disabled||Q&&k(Q.key)}}}return(u||[]).forEach(function(w){k(w)}),(0,g.Z)(N)}},90782:function(vt,Ne,i){"use strict";i.d(Ne,{S:function(){return ce}});var g=i(48736),x=i(67841);function F(se,oe){var _e=new Set;return se.forEach(function(ue){oe.has(ue)||_e.add(ue)}),_e}function q(se){var oe=se||{},_e=oe.disabled,ue=oe.disableCheckbox,$=oe.checkable;return!!(_e||ue)||$===!1}function A(se,oe,_e,ue){for(var $=new Set(se),d=new Set,re=0;re<=_e;re+=1){var te=oe.get(re)||new Set;te.forEach(function(T){var M=T.key,u=T.node,C=T.children,N=C===void 0?[]:C;$.has(M)&&!ue(u)&&N.filter(function(k){return!ue(k.node)}).forEach(function(k){$.add(k.key)})})}for(var Z=new Set,Ee=_e;Ee>=0;Ee-=1){var K=oe.get(Ee)||new Set;K.forEach(function(T){var M=T.parent,u=T.node;if(!(ue(u)||!T.parent||Z.has(T.parent.key))){if(ue(T.parent.node)){Z.add(M.key);return}var C=!0,N=!1;(M.children||[]).filter(function(k){return!ue(k.node)}).forEach(function(k){var w=k.key,ne=$.has(w);C&&!ne&&(C=!1),!N&&(ne||d.has(w))&&(N=!0)}),C&&$.add(M.key),N&&d.add(M.key),Z.add(M.key)}})}return{checkedKeys:Array.from($),halfCheckedKeys:Array.from(F(d,$))}}function f(se,oe,_e,ue,$){for(var d=new Set(se),re=new Set(oe),te=0;te<=ue;te+=1){var Z=_e.get(te)||new Set;Z.forEach(function(M){var u=M.key,C=M.node,N=M.children,k=N===void 0?[]:N;!d.has(u)&&!re.has(u)&&!$(C)&&k.filter(function(w){return!$(w.node)}).forEach(function(w){d.delete(w.key)})})}re=new Set;for(var Ee=new Set,K=ue;K>=0;K-=1){var T=_e.get(K)||new Set;T.forEach(function(M){var u=M.parent,C=M.node;if(!($(C)||!M.parent||Ee.has(M.parent.key))){if($(M.parent.node)){Ee.add(u.key);return}var N=!0,k=!1;(u.children||[]).filter(function(w){return!$(w.node)}).forEach(function(w){var ne=w.key,Q=d.has(ne);N&&!Q&&(N=!1),!k&&(Q||re.has(ne))&&(k=!0)}),N||d.delete(u.key),k&&re.add(u.key),Ee.add(u.key)}})}return{checkedKeys:Array.from(d),halfCheckedKeys:Array.from(F(re,d))}}function ce(se,oe,_e,ue){var $=[],d;ue?d=ue:d=q;var re=new Set(se.filter(function(K){var T=!!(0,x.Z)(_e,K);return T||$.push(K),T})),te=new Map,Z=0;Object.keys(_e).forEach(function(K){var T=_e[K],M=T.level,u=te.get(M);u||(u=new Set,te.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 Ee;return oe===!0?Ee=A(re,te,Z,d):Ee=f(re,oe.halfCheckedKeys,te,Z,d),Ee}},67841:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return g}});function g(x,F){return x[F]}},71430:function(vt,Ne,i){"use strict";i.d(Ne,{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 te}});var g=i(93664),x=i(95190),F=i(20439),q=i(62646),A=i(11592),f=i(2738),ce=i(48736),se=i(67841),oe=["children"];function _e(u,C){return"".concat(u,"-").concat(C)}function ue(u){return u&&u.type&&u.type.isTreeNode}function $(u,C){return u!=null?u:C}function d(u){var C=u||{},N=C.title,k=C._title,w=C.key,ne=C.children,Q=N||"title";return{title:Q,_title:k||[Q],key:w||"key",children:ne||"children"}}function re(u,C){var N=new Map;function k(w){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(w||[]).forEach(function(Q){var he=Q[C.key],D=Q[C.children];warning(he!=null,"Tree node must have a certain key: [".concat(ne).concat(he,"]"));var be=String(he);warning(!N.has(be)||he===null||he===void 0,"Same 'key' exist in the Tree: ".concat(be)),N.set(be,!0),k(D,"".concat(ne).concat(be," > "))})}k(u)}function te(u){function C(N){var k=(0,A.Z)(N);return k.map(function(w){if(!ue(w))return(0,ce.ZP)(!w,"Tree/TreeNode can only accept TreeNode as children."),null;var ne=w.key,Q=w.props,he=Q.children,D=(0,q.Z)(Q,oe),be=(0,F.Z)({key:ne},D),R=C(he);return R.length&&(be.children=R),be}).filter(function(w){return w})}return C(u)}function Z(u,C,N){var k=d(N),w=k._title,ne=k.key,Q=k.children,he=new Set(C===!0?[]:C),D=[];function be(R){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return R.map(function(v,B){for(var ve=_e(P?P.pos:"0",B),H=$(v[ne],ve),le,J=0;J<w.length;J+=1){var O=w[J];if(v[O]!==void 0){le=v[O];break}}var V=(0,F.Z)((0,F.Z)({},(0,f.Z)(v,[].concat((0,x.Z)(w),[ne,Q]))),{},{title:le,key:H,parent:P,pos:ve,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(V),C===!0||he.has(H)?V.children=be(v[Q]||[],V):V.children=[],V})}return be(u),D}function Ee(u,C,N){var k={};(0,g.Z)(N)==="object"?k=N:k={externalGetKey:N},k=k||{};var w=k,ne=w.childrenPropName,Q=w.externalGetKey,he=w.fieldNames,D=d(he),be=D.key,R=D.children,P=ne||R,v;Q?typeof Q=="string"?v=function(H){return H[Q]}:typeof Q=="function"&&(v=function(H){return Q(H)}):v=function(H,le){return $(H[be],le)};function B(ve,H,le,J){var O=ve?ve[P]:u,V=ve?_e(le.pos,H):"0",ee=ve?[].concat((0,x.Z)(J),[ve]):[];if(ve){var ie=v(ve,V),ge={node:ve,index:H,pos:V,key:ie,parentPos:le.node?le.pos:null,level:le.level+1,nodes:ee};C(ge)}O&&O.forEach(function(Ae,Pe){B(Ae,Pe,{node:ve,pos:V,level:le?le.level+1:-1},ee)})}B(null)}function K(u){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},N=C.initWrapper,k=C.processEntity,w=C.onProcessFinished,ne=C.externalGetKey,Q=C.childrenPropName,he=C.fieldNames,D=arguments.length>2?arguments[2]:void 0,be=ne||D,R={},P={},v={posEntities:R,keyEntities:P};return N&&(v=N(v)||v),Ee(u,function(B){var ve=B.node,H=B.index,le=B.pos,J=B.key,O=B.parentPos,V=B.level,ee=B.nodes,ie={node:ve,nodes:ee,index:H,key:J,pos:le,level:V},ge=$(J,le);R[le]=ie,P[ge]=ie,ie.parent=R[O],ie.parent&&(ie.parent.children=ie.parent.children||[],ie.parent.children.push(ie)),k&&k(ie,v)},{externalGetKey:be,childrenPropName:Q,fieldNames:he}),w&&w(v),v}function T(u,C){var N=C.expandedKeys,k=C.selectedKeys,w=C.loadedKeys,ne=C.loadingKeys,Q=C.checkedKeys,he=C.halfCheckedKeys,D=C.dragOverNodeKey,be=C.dropPosition,R=C.keyEntities,P=(0,se.Z)(R,u),v={eventKey:u,expanded:N.indexOf(u)!==-1,selected:k.indexOf(u)!==-1,loaded:w.indexOf(u)!==-1,loading:ne.indexOf(u)!==-1,checked:Q.indexOf(u)!==-1,halfChecked:he.indexOf(u)!==-1,pos:String(P?P.pos:""),dragOver:D===u&&be===0,dragOverGapTop:D===u&&be===-1,dragOverGapBottom:D===u&&be===1};return v}function M(u){var C=u.data,N=u.expanded,k=u.selected,w=u.checked,ne=u.loaded,Q=u.loading,he=u.halfChecked,D=u.dragOver,be=u.dragOverGapTop,R=u.dragOverGapBottom,P=u.pos,v=u.active,B=u.eventKey,ve=(0,F.Z)((0,F.Z)({},C),{},{expanded:N,selected:k,checked:w,loaded:ne,loading:Q,halfChecked:he,dragOver:D,dragOverGapTop:be,dragOverGapBottom:R,pos:P,active:v,key:B});return"props"in ve||Object.defineProperty(ve,"props",{get:function(){return(0,ce.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),u}}),ve}},6790:function(vt,Ne,i){"use strict";i.d(Ne,{Z:function(){return je}});var g=i(14809),x=i(93664),F=i(20439),q=i(4635),A=i(50298),f=i(62646),ce=i(92310),se=i.n(ce),oe=i(29301),_e=i(70425),ue=i(34280),$=i(59301),d=i(4676),re=$.forwardRef(function(G,we){var h=G.height,y=G.offsetY,m=G.offsetX,a=G.children,b=G.prefixCls,z=G.onInnerResize,E=G.innerProps,l=G.rtl,p=G.extra,o={},c={display:"flex",flexDirection:"column"};return y!==void 0&&(o={height:h,position:"relative",overflow:"hidden"},c=(0,F.Z)((0,F.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",-m),"position","absolute"),"left",0),"right",0),"top",0))),$.createElement("div",{style:o},$.createElement(oe.Z,{onResize:function(I){var U=I.offsetHeight;U&&z&&z()}},$.createElement("div",(0,g.Z)({style:c,className:se()((0,q.Z)({},"".concat(b,"-holder-inner"),b)),ref:we},E),a,p)))});re.displayName="Filler";var te=re;function Z(G){var we=G.children,h=G.setRef,y=$.useCallback(function(m){h(m)},[]);return $.cloneElement(we,{ref:y})}function Ee(G,we,h,y,m,a,b,z){var E=z.getKey;return G.slice(we,h+1).map(function(l,p){var o=we+p,c=b(l,o,{style:{width:y},offsetX:m}),_=E(l);return $.createElement(Z,{key:_,setRef:function(U){return a(l,U)}},c)})}function K(G,we,h,y){var m=h-G,a=we-h,b=Math.min(m,a)*2;if(y<=b){var z=Math.floor(y/2);return y%2?h+z+1:h-z}return m>a?h-(y-a):h+(y-m)}function T(G,we,h){var y=G.length,m=we.length,a,b;if(y===0&&m===0)return null;y<m?(a=G,b=we):(a=we,b=G);var z={__EMPTY_ITEM__:!0};function E(I){return I!==void 0?h(I):z}for(var l=null,p=Math.abs(y-m)!==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(G,we,h){var y=$.useState(G),m=(0,A.Z)(y,2),a=m[0],b=m[1],z=$.useState(null),E=(0,A.Z)(z,2),l=E[0],p=E[1];return $.useEffect(function(){var o=T(a||[],G||[],we);(o==null?void 0:o.index)!==void 0&&(h==null||h(o.index),p(G[o.index])),b(G)},[G]),[l]}var u=i(16089),C=(typeof navigator=="undefined"?"undefined":(0,x.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),N=C,k=function(G,we,h,y){var m=(0,$.useRef)(!1),a=(0,$.useRef)(null);function b(){clearTimeout(a.current),m.current=!0,a.current=setTimeout(function(){m.current=!1},50)}var z=(0,$.useRef)({top:G,bottom:we,left:h,right:y});return z.current.top=G,z.current.bottom=we,z.current.left=h,z.current.right=y,function(E,l){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=E?l<0&&z.current.left||l>0&&z.current.right:l<0&&z.current.top||l>0&&z.current.bottom;return p&&o?(clearTimeout(a.current),m.current=!1):(!o||m.current)&&b(),!m.current&&o}};function w(G,we,h,y,m,a,b){var z=(0,$.useRef)(0),E=(0,$.useRef)(null),l=(0,$.useRef)(null),p=(0,$.useRef)(!1),o=k(we,h,y,m);function c(me,Y){if(u.Z.cancel(E.current),!o(!1,Y)){var Ce=me;if(!Ce._virtualHandled)Ce._virtualHandled=!0;else return;z.current+=Y,l.current=Y,N||Ce.preventDefault(),E.current=(0,u.Z)(function(){var Te=p.current?10:1;b(z.current*Te,!1),z.current=0})}}function _(me,Y){b(Y,!0),N||me.preventDefault()}var I=(0,$.useRef)(null),U=(0,$.useRef)(null);function fe(me){if(G){u.Z.cancel(U.current),U.current=(0,u.Z)(function(){I.current=null},2);var Y=me.deltaX,Ce=me.deltaY,Te=me.shiftKey,X=Y,Be=Ce;(I.current==="sx"||!I.current&&Te&&Ce&&!Y)&&(X=Ce,Be=0,I.current="sx");var Ge=Math.abs(X),Fe=Math.abs(Be);I.current===null&&(I.current=a&&Ge>Fe?"x":"y"),I.current==="y"?c(me,Be):_(me,X)}}function ae(me){G&&(p.current=me.detail===l.current)}return[fe,ae]}function ne(G,we,h,y){var m=$.useMemo(function(){return[new Map,[]]},[G,h.id,y]),a=(0,A.Z)(m,2),b=a[0],z=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 I=G.length,U=z.length;U<I;U+=1){var fe,ae=G[U],me=we(ae);b.set(me,U);var Y=(fe=h.get(me))!==null&&fe!==void 0?fe:y;if(z[U]=(z[U-1]||0)+Y,me===p&&(c=U),me===o&&(_=U),c!==void 0&&_!==void 0)break}return{top:z[c-1]||0,bottom:z[_]}};return E}var Q=i(99153),he=i(84851),D=function(){function G(){(0,Q.Z)(this,G),(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,he.Z)(G,[{key:"set",value:function(h,y){this.diffRecords.set(h,this.maps[h]),this.maps[h]=y,this.id+=1}},{key:"get",value:function(h){return this.maps[h]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),G}(),be=D;function R(G){var we=parseFloat(G);return isNaN(we)?0:we}function P(G,we,h){var y=$.useState(0),m=(0,A.Z)(y,2),a=m[0],b=m[1],z=(0,$.useRef)(new Map),E=(0,$.useRef)(new be),l=(0,$.useRef)(0);function p(){l.current+=1}function o(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;p();var I=function(){var ae=!1;z.current.forEach(function(me,Y){if(me&&me.offsetParent){var Ce=me.offsetHeight,Te=getComputedStyle(me),X=Te.marginTop,Be=Te.marginBottom,Ge=R(X),Fe=R(Be),Ve=Ce+Ge+Fe;E.current.get(Y)!==Ve&&(E.current.set(Y,Ve),ae=!0)}}),ae&&b(function(me){return me+1})};if(_)I();else{l.current+=1;var U=l.current;Promise.resolve().then(function(){U===l.current&&I()})}}function c(_,I){var U=G(_),fe=z.current.get(U);I?(z.current.set(U,I),o()):z.current.delete(U),!fe!=!I&&(I?we==null||we(_):h==null||h(_))}return(0,$.useEffect)(function(){return p},[]),[c,o,E.current,a]}var v=14/15;function B(G,we,h){var y=(0,$.useRef)(!1),m=(0,$.useRef)(0),a=(0,$.useRef)(0),b=(0,$.useRef)(null),z=(0,$.useRef)(null),E,l=function(_){if(y.current){var I=Math.ceil(_.touches[0].pageX),U=Math.ceil(_.touches[0].pageY),fe=m.current-I,ae=a.current-U,me=Math.abs(fe)>Math.abs(ae);me?m.current=I:a.current=U;var Y=h(me,me?fe:ae,!1,_);Y&&_.preventDefault(),clearInterval(z.current),Y&&(z.current=setInterval(function(){me?fe*=v:ae*=v;var Ce=Math.floor(me?fe:ae);(!h(me,Ce,!0)||Math.abs(Ce)<=.1)&&clearInterval(z.current)},16))}},p=function(){y.current=!1,E()},o=function(_){E(),_.touches.length===1&&!y.current&&(y.current=!0,m.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,ue.Z)(function(){return G&&we.current.addEventListener("touchstart",o,{passive:!0}),function(){var c;(c=we.current)===null||c===void 0||c.removeEventListener("touchstart",o),E(),clearInterval(z.current)}},[G])}function ve(G){return Math.floor(Math.pow(G,.5))}function H(G,we){var h="touches"in G?G.touches[0]:G;return h[we?"pageX":"pageY"]-window[we?"scrollX":"scrollY"]}function le(G,we,h){$.useEffect(function(){var y=we.current;if(G&&y){var m=!1,a,b,z=function(){u.Z.cancel(a)},E=function c(){z(),a=(0,u.Z)(function(){h(b),c()})},l=function(_){if(!(_.target.draggable||_.button!==0)){var I=_;I._virtualHandled||(I._virtualHandled=!0,m=!0)}},p=function(){m=!1,z()},o=function(_){if(m){var I=H(_,!1),U=y.getBoundingClientRect(),fe=U.top,ae=U.bottom;if(I<=fe){var me=fe-I;b=-ve(me),E()}else if(I>=ae){var Y=I-ae;b=ve(Y),E()}else z()}};return y.addEventListener("mousedown",l),y.ownerDocument.addEventListener("mouseup",p),y.ownerDocument.addEventListener("mousemove",o),function(){y.removeEventListener("mousedown",l),y.ownerDocument.removeEventListener("mouseup",p),y.ownerDocument.removeEventListener("mousemove",o),z()}}},[G])}var J=10;function O(G,we,h,y,m,a,b,z){var E=$.useRef(),l=$.useState(null),p=(0,A.Z)(l,2),o=p[0],c=p[1];return(0,ue.Z)(function(){if(o&&o.times<J){if(!G.current){c(function(Et){return(0,F.Z)({},Et)});return}a();var _=o.targetAlign,I=o.originAlign,U=o.index,fe=o.offset,ae=G.current.clientHeight,me=!1,Y=_,Ce=null;if(ae){for(var Te=_||I,X=0,Be=0,Ge=0,Fe=Math.min(we.length-1,U),Ve=0;Ve<=Fe;Ve+=1){var nt=m(we[Ve]);Be=X;var yt=h.get(nt);Ge=Be+(yt===void 0?y:yt),X=Ge}for(var st=Te==="top"?fe:ae-fe,lt=Fe;lt>=0;lt-=1){var pt=m(we[lt]),Ue=h.get(pt);if(Ue===void 0){me=!0;break}if(st-=Ue,st<=0)break}switch(Te){case"top":Ce=Be-fe;break;case"bottom":Ce=Ge-ae+fe;break;default:{var Ke=G.current.scrollTop,rt=Ke+ae;Be<Ke?Y="top":Ge>rt&&(Y="bottom")}}Ce!==null&&b(Ce),Ce!==o.lastTop&&(me=!0)}me&&c((0,F.Z)((0,F.Z)({},o),{},{times:o.times+1,targetAlign:Y,lastTop:Ce}))}},[o,G.current]),function(_){if(_==null){z();return}if(u.Z.cancel(E.current),typeof _=="number")b(_);else if(_&&(0,x.Z)(_)==="object"){var I,U=_.align;"index"in _?I=_.index:I=we.findIndex(function(me){return m(me)===_.key});var fe=_.offset,ae=fe===void 0?0:fe;c({times:0,index:I,offset:ae,originAlign:U})}}}var V=$.forwardRef(function(G,we){var h=G.prefixCls,y=G.rtl,m=G.scrollOffset,a=G.scrollRange,b=G.onStartMove,z=G.onStopMove,E=G.onScroll,l=G.horizontal,p=G.spinSize,o=G.containerSize,c=G.style,_=G.thumbStyle,I=G.showScrollBar,U=$.useState(!1),fe=(0,A.Z)(U,2),ae=fe[0],me=fe[1],Y=$.useState(null),Ce=(0,A.Z)(Y,2),Te=Ce[0],X=Ce[1],Be=$.useState(null),Ge=(0,A.Z)(Be,2),Fe=Ge[0],Ve=Ge[1],nt=!y,yt=$.useRef(),st=$.useRef(),lt=$.useState(I),pt=(0,A.Z)(lt,2),Ue=pt[0],Ke=pt[1],rt=$.useRef(),Et=function(){I===!0||I===!1||(clearTimeout(rt.current),Ke(!0),rt.current=setTimeout(function(){Ke(!1)},3e3))},mt=a-o||0,Ct=o-p||0,At=$.useMemo(function(){if(m===0||mt===0)return 0;var n=m/mt;return n*Ct},[m,mt,Ct]),ht=function(r){r.stopPropagation(),r.preventDefault()},Rt=$.useRef({top:At,dragging:ae,pageY:Te,startTop:Fe});Rt.current={top:At,dragging:ae,pageY:Te,startTop:Fe};var it=function(r){me(!0),X(H(r,l)),Ve(Rt.current.top),b(),r.stopPropagation(),r.preventDefault()};$.useEffect(function(){var n=function(L){L.preventDefault()},r=yt.current,s=st.current;return r.addEventListener("touchstart",n,{passive:!1}),s.addEventListener("touchstart",it,{passive:!1}),function(){r.removeEventListener("touchstart",n),s.removeEventListener("touchstart",it)}},[]);var dt=$.useRef();dt.current=mt;var He=$.useRef();He.current=Ct,$.useEffect(function(){if(ae){var n,r=function(L){var Ie=Rt.current,Se=Ie.dragging,Oe=Ie.pageY,tt=Ie.startTop;u.Z.cancel(n);var at=yt.current.getBoundingClientRect(),Ze=o/(l?at.width:at.height);if(Se){var ut=(H(L,l)-Oe)*Ze,We=tt;!nt&&l?We-=ut:We+=ut;var Re=dt.current,Me=He.current,Qe=Me?We/Me:0,qe=Math.ceil(Qe*Re);qe=Math.max(qe,0),qe=Math.min(qe,Re),n=(0,u.Z)(function(){E(qe,l)})}},s=function(){me(!1),z()};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(rt.current)}},[m]),$.useImperativeHandle(we,function(){return{delayHidden:Et}});var pe="".concat(h,"-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},nt?"left":"right",At))):(Object.assign(e,(0,q.Z)({width:8,top:0,bottom:0},nt?"right":"left",0)),Object.assign(t,{width:"100%",height:p,top:At})),$.createElement("div",{ref:yt,className:se()(pe,(0,q.Z)((0,q.Z)((0,q.Z)({},"".concat(pe,"-horizontal"),l),"".concat(pe,"-vertical"),!l),"".concat(pe,"-visible"),Ue)),style:(0,F.Z)((0,F.Z)({},e),c),onMouseDown:ht,onMouseMove:Et},$.createElement("div",{ref:st,className:se()("".concat(pe,"-thumb"),(0,q.Z)({},"".concat(pe,"-thumb-moving"),ae)),style:(0,F.Z)((0,F.Z)({},t),_),onMouseDown:it}))}),ee=V,ie=20;function ge(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,h=G/we*G;return isNaN(h)&&(h=0),h=Math.max(h,ie),Math.floor(h)}var Ae=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Pe=[],xe={overflowY:"auto",overflowAnchor:"none"};function Je(G,we){var h=G.prefixCls,y=h===void 0?"rc-virtual-list":h,m=G.className,a=G.height,b=G.itemHeight,z=G.fullHeight,E=z===void 0?!0:z,l=G.style,p=G.data,o=G.children,c=G.itemKey,_=G.virtual,I=G.direction,U=G.scrollWidth,fe=G.component,ae=fe===void 0?"div":fe,me=G.onScroll,Y=G.onVirtualScroll,Ce=G.onVisibleChange,Te=G.innerProps,X=G.extraRender,Be=G.styles,Ge=G.showScrollBar,Fe=Ge===void 0?"optional":Ge,Ve=(0,f.Z)(G,Ae),nt=$.useCallback(function(ot){return typeof c=="function"?c(ot):ot==null?void 0:ot[c]},[c]),yt=P(nt,null,null),st=(0,A.Z)(yt,4),lt=st[0],pt=st[1],Ue=st[2],Ke=st[3],rt=!!(_!==!1&&a&&b),Et=$.useMemo(function(){return Object.values(Ue.maps).reduce(function(ot,et){return ot+et},0)},[Ue.id,Ue.maps]),mt=rt&&p&&(Math.max(b*p.length,Et)>a||!!U),Ct=I==="rtl",At=se()(y,(0,q.Z)({},"".concat(y,"-rtl"),Ct),m),ht=p||Pe,Rt=(0,$.useRef)(),it=(0,$.useRef)(),dt=(0,$.useRef)(),He=(0,$.useState)(0),pe=(0,A.Z)(He,2),e=pe[0],t=pe[1],n=(0,$.useState)(0),r=(0,A.Z)(n,2),s=r[0],S=r[1],L=(0,$.useState)(!1),Ie=(0,A.Z)(L,2),Se=Ie[0],Oe=Ie[1],tt=function(){Oe(!0)},at=function(){Oe(!1)},Ze={getKey:nt};function ut(ot){t(function(et){var xt;typeof ot=="function"?xt=ot(et):xt=ot;var $t=_t(xt);return Rt.current.scrollTop=$t,$t})}var We=(0,$.useRef)({start:0,end:ht.length}),Re=(0,$.useRef)(),Me=M(ht,nt),Qe=(0,A.Z)(Me,1),qe=Qe[0];Re.current=qe;var gt=$.useMemo(function(){if(!rt)return{scrollHeight:void 0,start:0,end:ht.length-1,offset:void 0};if(!mt){var ot;return{scrollHeight:((ot=it.current)===null||ot===void 0?void 0:ot.offsetHeight)||0,start:0,end:ht.length-1,offset:void 0}}for(var et=0,xt,$t,Zt,dn=ht.length,qt=0;qt<dn;qt+=1){var Qt=ht[qt],on=nt(Qt),gn=Ue.get(on),hn=et+(gn===void 0?b:gn);hn>=e&&xt===void 0&&(xt=qt,$t=et),hn>e+a&&Zt===void 0&&(Zt=qt),et=hn}return xt===void 0&&(xt=0,$t=0,Zt=Math.ceil(a/b)),Zt===void 0&&(Zt=ht.length-1),Zt=Math.min(Zt+1,ht.length-1),{scrollHeight:et,start:xt,end:Zt,offset:$t}},[mt,rt,e,ht,Ke,a]),Tt=gt.scrollHeight,It=gt.start,Ye=gt.end,Xe=gt.offset;We.current.start=It,We.current.end=Ye,$.useLayoutEffect(function(){var ot=Ue.getRecord();if(ot.size===1){var et=Array.from(ot.keys())[0],xt=ot.get(et),$t=ht[It];if($t&&xt===void 0){var Zt=nt($t);if(Zt===et){var dn=Ue.get(et),qt=dn-b;ut(function(Qt){return Qt+qt})}}}Ue.resetRecord()},[Tt]);var j=$.useState({width:0,height:a}),W=(0,A.Z)(j,2),de=W[0],Le=W[1],ye=function(et){Le({width:et.offsetWidth,height:et.offsetHeight})},$e=(0,$.useRef)(),De=(0,$.useRef)(),ct=$.useMemo(function(){return ge(de.width,U)},[de.width,U]),St=$.useMemo(function(){return ge(de.height,Tt)},[de.height,Tt]),ft=Tt-a,bt=(0,$.useRef)(ft);bt.current=ft;function _t(ot){var et=ot;return Number.isNaN(bt.current)||(et=Math.min(et,bt.current)),et=Math.max(et,0),et}var wt=e<=0,Nt=e>=ft,Lt=s<=0,zt=s>=U,Ht=k(wt,Nt,Lt,zt),Ut=function(){return{x:Ct?-s:s,y:e}},Mt=(0,$.useRef)(Ut()),Ot=(0,_e.useEvent)(function(ot){if(Y){var et=(0,F.Z)((0,F.Z)({},Ut()),ot);(Mt.current.x!==et.x||Mt.current.y!==et.y)&&(Y(et),Mt.current=et)}});function Dt(ot,et){var xt=ot;et?((0,d.flushSync)(function(){S(xt)}),Ot()):ut(xt)}function Ft(ot){var et=ot.currentTarget.scrollTop;et!==e&&ut(et),me==null||me(ot),Ot()}var Pt=function(et){var xt=et,$t=U?U-de.width:0;return xt=Math.max(xt,0),xt=Math.min(xt,$t),xt},Gt=(0,_e.useEvent)(function(ot,et){et?((0,d.flushSync)(function(){S(function(xt){var $t=xt+(Ct?-ot:ot);return Pt($t)})}),Ot()):ut(function(xt){var $t=xt+ot;return $t})}),Bt=w(rt,wt,Nt,Lt,zt,!!U,Gt),tn=(0,A.Z)(Bt,2),Kt=tn[0],Jt=tn[1];B(rt,Rt,function(ot,et,xt,$t){var Zt=$t;return Ht(ot,et,xt)?!1:!Zt||!Zt._virtualHandled?(Zt&&(Zt._virtualHandled=!0),Kt({preventDefault:function(){},deltaX:ot?et:0,deltaY:ot?0:et}),!0):!1}),le(mt,Rt,function(ot){ut(function(et){return et+ot})}),(0,ue.Z)(function(){function ot(xt){var $t=wt&&xt.detail<0,Zt=Nt&&xt.detail>0;rt&&!$t&&!Zt&&xt.preventDefault()}var et=Rt.current;return et.addEventListener("wheel",Kt,{passive:!1}),et.addEventListener("DOMMouseScroll",Jt,{passive:!0}),et.addEventListener("MozMousePixelScroll",ot,{passive:!1}),function(){et.removeEventListener("wheel",Kt),et.removeEventListener("DOMMouseScroll",Jt),et.removeEventListener("MozMousePixelScroll",ot)}},[rt,wt,Nt]),(0,ue.Z)(function(){if(U){var ot=Pt(s);S(ot),Ot({x:ot})}},[de.width,U]);var Xt=function(){var et,xt;(et=$e.current)===null||et===void 0||et.delayHidden(),(xt=De.current)===null||xt===void 0||xt.delayHidden()},Yt=O(Rt,ht,Ue,b,nt,function(){return pt(!0)},ut,Xt);$.useImperativeHandle(we,function(){return{nativeElement:dt.current,getScrollInfo:Ut,scrollTo:function(et){function xt($t){return $t&&(0,x.Z)($t)==="object"&&("left"in $t||"top"in $t)}xt(et)?(et.left!==void 0&&S(Pt(et.left)),Yt(et.top)):Yt(et)}}}),(0,ue.Z)(function(){if(Ce){var ot=ht.slice(It,Ye+1);Ce(ot,ht)}},[It,Ye,ht]);var nn=ne(ht,nt,Ue,b),rn=X==null?void 0:X({start:It,end:Ye,virtual:mt,offsetX:s,offsetY:Xe,rtl:Ct,getSize:nn}),fn=Ee(ht,It,Ye,U,s,lt,o,Ze),Wt=null;a&&(Wt=(0,F.Z)((0,q.Z)({},E?"height":"maxHeight",a),xe),rt&&(Wt.overflowY="hidden",U&&(Wt.overflowX="hidden"),Se&&(Wt.pointerEvents="none")));var an={};return Ct&&(an.dir="rtl"),$.createElement("div",(0,g.Z)({ref:dt,style:(0,F.Z)((0,F.Z)({},l),{},{position:"relative"}),className:At},an,Ve),$.createElement(oe.Z,{onResize:ye},$.createElement(ae,{className:"".concat(y,"-holder"),style:Wt,ref:Rt,onScroll:Ft,onMouseEnter:Xt},$.createElement(te,{prefixCls:y,height:Tt,offsetX:s,offsetY:Xe,scrollWidth:U,onInnerResize:pt,ref:it,innerProps:Te,rtl:Ct,extra:rn},fn))),mt&&Tt>a&&$.createElement(ee,{ref:$e,prefixCls:y,scrollOffset:e,scrollRange:Tt,rtl:Ct,onScroll:Dt,onStartMove:tt,onStopMove:at,spinSize:St,containerSize:de.height,style:Be==null?void 0:Be.verticalScrollBar,thumbStyle:Be==null?void 0:Be.verticalScrollBarThumb,showScrollBar:Fe}),mt&&U>de.width&&$.createElement(ee,{ref:De,prefixCls:y,scrollOffset:s,scrollRange:U,rtl:Ct,onScroll:Dt,onStartMove:tt,onStopMove:at,spinSize:ct,containerSize:de.width,horizontal:!0,style:Be==null?void 0:Be.horizontalScrollBar,thumbStyle:Be==null?void 0:Be.horizontalScrollBarThumb,showScrollBar:Fe}))}var ke=$.forwardRef(Je);ke.displayName="List";var ze=ke,je=ze},82059:function(vt){var Ne=arguments[3],i=arguments[4],g=arguments[5],x=JSON.stringify;vt.exports=function(F,q){for(var A,f=Object.keys(g),ce=0,se=f.length;ce<se;ce++){var oe=f[ce],_e=g[oe].exports;if(_e===F||_e&&_e.default===F){A=oe;break}}if(!A){A=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var ue={},ce=0,se=f.length;ce<se;ce++){var oe=f[ce];ue[oe]=oe}i[A]=["function(require,module,exports){"+F+"(self); }",ue]}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 re={};te($);function te(u){re[u]=!0;for(var C in i[u][1]){var N=i[u][1][C];re[N]||te(N)}}var Z="("+Ne+")({"+Object.keys(re).map(function(u){return x(u)+":["+i[u][0]+","+x(i[u][1])+"]"}).join(",")+"},{},["+x($)+"])",Ee=window.URL||window.webkitURL||window.mozURL||window.msURL,K=new Blob([Z],{type:"text/javascript"});if(q&&q.bare)return K;var T=Ee.createObjectURL(K),M=new Worker(T);return M.objectURL=T,M}}}]);
|