(self.webpackChunk=self.webpackChunk||[]).push([[4928],{25877:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return q}});var s=o(87462),x=o(67294),T={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"},k=T,A=o(74643),g=function(u,P){return x.createElement(A.Z,(0,s.Z)({},u,{ref:P,icon:k}))},q=x.forwardRef(g)},22751:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return q}});var s=o(87462),x=o(67294),T={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"},k=T,A=o(74643),g=function(u,P){return x.createElement(A.Z,(0,s.Z)({},u,{ref:P,icon:k}))},q=x.forwardRef(g)},91034:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return q}});var s=o(87462),x=o(67294),T={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"},k=T,A=o(74643),g=function(u,P){return x.createElement(A.Z,(0,s.Z)({},u,{ref:P,icon:k}))},q=x.forwardRef(g)},6104:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return re}});var s=o(67294),x=o(2453),T=o(85418),k=o(24577),A=o(67631),g=o.n(A),q=o(52262),te=o(74855),u=o(51959),P={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"},ne=($,E,w)=>new Promise((S,L)=>{var v=M=>{try{Z(w.next(M))}catch(Q){L(Q)}},I=M=>{try{Z(w.throw(M))}catch(Q){L(Q)}},Z=M=>M.done?S(M.value):Promise.resolve(M.value).then(v,I);Z((w=w.apply($,E)).next())});function W($){if(isNaN($))return{minutes:"00",seconds:"00"};const E=new Date($*1e3).toISOString().substr(11,8);return{hour:E.substr(0,2),minutes:E.substr(3,2),seconds:E.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function O($,E){return $-E}function V($){$.sort(O);let E=0;for(let w=0;w<$.length-1;w++){let S=Math.abs($[w+1]-$[w]);S<21&&(E+=S)}return E}const me=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var re=(0,s.forwardRef)(({allow_skip:$,src:E,toLog:w,videoId:S,logWatchHistory:L,courseId:v=null,startTime:I,handlePause:Z=()=>{},handlePlay:M=()=>{},handlePlayEnded:Q=()=>{},autoPlay:ce=!1,onPlayEnded:Ae=()=>{},isShowWaterMark:De=!0},Pe)=>{var Te;const Ke=((Te=E==null?void 0:E.split("."))==null?void 0:Te.pop())==="flv",z=(0,s.useRef)(),st=(0,s.useRef)(),Qe=(0,s.useRef)(),Ie=(0,s.useRef)(),pe=(0,s.useRef)(),Me=(0,s.useRef)(),Le=(0,s.useRef)(),_e=(0,s.useRef)(),xe=(0,s.useRef)(),Ct=(0,s.useRef)(),Je=(0,s.useRef)(),ft=(0,s.useRef)(),vt=(0,s.useRef)(),at=(0,s.useRef)(),it=navigator.userAgent.toLowerCase().match(me),ot=it?it[0]:"pc",kt=(0,s.useRef)(!1),qe=(0,q.eY)();let Re=0,N=0,c=0,d=null,l=!1,m=20,R=1,h=!1,_=!1,y=[];(0,s.useImperativeHandle)(Pe,()=>({getLastUpdatedTime:()=>z.current.currentTime,getDuration:()=>z.current.duration})),x.ZP.config({maxCount:1,getContainer:()=>Qe.current});const a=(0,s.useCallback)((le,je=!1)=>{let Ue={point:z.current.currentTime};d?(Ue.log_id=d,Ue.watch_duration=V(y),Ue.total_duration=N):(v?(Ue.video_id=parseInt(S,10),Ue.course_id=v):Ue.video_id=S,Ue.duration=Re,Ue.device=ot),je&&(Ue.ed="1");function rt(){return ne(this,null,function*(){h=!0,d=yield L==null?void 0:L(Ue),h=!1,le&&le()})}rt()},[S,v]);(0,s.useEffect)(()=>{z.current&&(Ie.current.style.display="none",pe.current.style.display="block"),x.ZP.destroy();let le=null;return k.Z.isSupported&&Ke&&E&&(E==null?void 0:E.indexOf(".m3u8"))<0?(le=k.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:E,muted:!1}),z.current&&(le.attachMediaElement(z.current),le.load())):z.current.setAttribute("src",E),X(),()=>{le&&(le.unload(),le.pause(),le.destroy(),le=null)}},[z,Ke,E]);function j(){z.current.paused?(Ie.current.style.display="none",pe.current.style.display="block"):(Ie.current.style.display="block",pe.current.style.display="none")}function X(){Je.current.style.display="none",vt.current.style.display="none",ft.current.style.display="none",z.current.muted||z.current.volume===0?Je.current.style.display="block":z.current.volume>0&&z.current.volume<=.5?vt.current.style.display="block":ft.current.style.display="block"}(0,s.useEffect)(()=>{const le=document.getElementById("play"),je=document.querySelectorAll(".playback-icons use");function Ue(){M(),I&&!kt.current&&(z.current.currentTime=I),kt.current=!0,y.push(z.current.currentTime),l||(l=!0,w&&a())}function rt(){return ne(this,null,function*(){j(),y.push(z.current.currentTime),w&&a(()=>{d=null,c=0,l=!1,h=!1,_=!1,y=[],N=0,R=1},!0),Ae()})}function K(){Me.current.value=Math.round(z.current.currentTime),Le.current.value=Math.round(z.current.currentTime)}function yt(){const Ee=W(Math.round(z.current.currentTime));xe.current.innerText=`${Ee.hour>0?Ee.hour+":":""}${Ee.minutes}:${Ee.seconds}`,xe.current.setAttribute("datetime",`${Ee.hour>0?" "+Ee.hour+" ":""}${Ee.minutes}m ${Ee.seconds}s`)}function xt(){var Ee,We,lt,Pt,Zt,Wt,Lt;const Xt=Math.round((Ee=z.current)==null?void 0:Ee.duration);(lt=(We=Me.current)==null?void 0:We.setAttribute)==null||lt.call(We,"max",Xt),(Zt=(Pt=Le.current)==null?void 0:Pt.setAttribute)==null||Zt.call(Pt,"max",Xt);const ke=W(Xt);_e.current&&(_e.current.innerText=`${ke.hour>0?ke.hour+":":""}${ke.minutes}:${ke.seconds}`,(Lt=(Wt=_e.current).setAttribute)==null||Lt.call(Wt,"datetime",`${ke.hour>0?" "+ke.hour+" ":""}${ke.minutes}m ${ke.seconds}s`))}function Rt(){try{const Ee=Math.round(z.current.duration);Me.current.setAttribute("max",Ee),Le.current.setAttribute("max",Ee);const We=W(Ee);_e.current.innerText=`${We.hour>0?We.hour+":":""}${We.minutes}:${We.seconds}`,_e.current.setAttribute("datetime",`${We.hour>0?" "+We.hour+" ":""}${We.minutes}m ${We.seconds}s`),K(),yt();const{width:lt,height:Pt,x:Zt,y:Wt}=st.current.getBoundingClientRect();if(Zt<0||Wt<0||!lt)return;if(!_){let Lt=z.current.currentTime,Xt=Lt-c;Math.abs(Xt)<10?(N+=Math.abs(Xt),c=Lt,h||N-R*m>=0&&(R++,y.push(c),w&&a())):(c=Lt,w&&a())}}catch(Ee){console.log(Ee)}}function et(){_=!0}function mt(){z.current.playing&&y.push(z.current.currentTime,c),c=z.current.currentTime,_=!1}function It(){Re=z.current.duration,Re<=20&&(m=Re/3),z.current.addEventListener("play",Ue)}function Bt(Ee){Ee.preventDefault(),(0,u.vp)()?(z.current.style.width="100%",z.current.style.height="100%"):z.current.style.cssText=""}function wt(){Z()}function Ot(Ee){if(!$){x.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const We=Ee.target.dataset.seek?Ee.target.dataset.seek:Ee.target.value;z.current.currentTime=We,Le.current.value=We,Me.current.value=We}function Ht(Ee){const We=Math.round(Ee.offsetX/Ee.target.clientWidth*parseInt(Ee.target.getAttribute("max"),10));Me.current.setAttribute("data-seek",We);const lt=W(We);Ct.current.textContent=`${lt.hour>0?lt.hour+":":""}${lt.minutes}:${lt.seconds}`;const Pt=z.current.getBoundingClientRect();Ct.current.style.left=`${Ee.pageX-Pt.left}px`}function $t(Ee){switch(Ee.code){case"Space":Ee.preventDefault(),he();break;case"ArrowRight":if(Ee.preventDefault(),!$){x.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(z.current.currentTime>=z.current.duration)break;z.current.currentTime=parseInt(z.current.currentTime)+5,K();break;case"ArrowLeft":if(Ee.preventDefault(),!$){x.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(z.current.currentTime===0)break;z.current.currentTime=parseInt(z.current.currentTime)-5,K();break;case"ArrowUp":Ee.preventDefault(),z.current.volume<1&&(z.current.volume=(parseInt(z.current.volume*10)+1)/10);break;case"ArrowDown":Ee.preventDefault(),z.current.volume>0&&(z.current.volume=(parseInt(z.current.volume*10)-1)/10);break}}return Qe.current.addEventListener((0,u.gH)(),Bt),z.current.addEventListener("canplay",It),z.current.addEventListener("ended",rt),z.current.addEventListener("seeking",et),z.current.addEventListener("seeked",mt),z.current.addEventListener("loadedmetadata",xt),Me.current.addEventListener("mousemove",Ht),Me.current.addEventListener("input",Ot),z.current.addEventListener("timeupdate",Rt),z.current.addEventListener("pause",wt),z.current.addEventListener("volumechange",X),document.addEventListener("keydown",$t),()=>{var Ee,We,lt,Pt,Zt,Wt,Lt,Xt,ke,Cn,G,e;(Ee=z.current)==null||Ee.removeEventListener("canplay",It),(We=z.current)==null||We.removeEventListener("play",Ue),(lt=z.current)==null||lt.removeEventListener("ended",rt),(Pt=z.current)==null||Pt.removeEventListener("seeking",et),(Zt=z.current)==null||Zt.removeEventListener("seeked",mt),(Wt=Me.current)==null||Wt.removeEventListener("mousemove",Ht),(Lt=Me.current)==null||Lt.removeEventListener("input",Ot),(Xt=z.current)==null||Xt.removeEventListener("timeupdate",Rt),(ke=z.current)==null||ke.removeEventListener("pause",wt),(Cn=z.current)==null||Cn.removeEventListener("loadedmetadata",xt),(G=z.current)==null||G.removeEventListener("volumechange",X),document.removeEventListener("keydown",$t),(e=z.current)!=null&&e.playing&&(y.push(c,z.current.currentTime),w&&a())}},[z,E]),(0,s.useEffect)(()=>{if(z.current.onended=()=>{Q(z)},z.current.oncontextmenu=()=>!1,(E==null?void 0:E.indexOf(".m3u8"))>-1){if(z.current.canPlayType("application/vnd.apple.mpegurl"))z.current.src=E;else if(g().isSupported()){var le=new(g());le.loadSource(E),le.attachMedia(z.current)}}},[E]);const[oe,ge]=(0,s.useState)(1),he=()=>{z.current.paused||z.current.ended?z.current.play():z.current.pause(),j()};function fe(){z.current.muted=!z.current.muted,z.current.muted?(at.current.setAttribute("data-volume",volume.value),at.current.value=0):at.current.value=at.current.dataset.volume}return s.createElement("div",{style:{position:"relative"},ref:Qe},s.createElement("div",{ref:st,className:`${P.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${P.animate__loop}`},De&&qe?qe.login:" "),s.createElement("div",{className:P.container},s.createElement("div",{className:P["video-container"],id:"video-container"},s.createElement("div",{className:P["playback-animation"],id:"playback-animation"},s.createElement("svg",{className:P["playback-icons"]},s.createElement("use",{className:"hidden",href:"#play-icon"}),s.createElement("use",{href:"#pause"}))),s.createElement("video",{className:P.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:z,autoPlay:ce}),s.createElement("div",{className:`${P["video-controls"]} `,id:"video-controls"},s.createElement("div",{className:P["bottom-controls"]},s.createElement("div",{className:P["left-controls"]},s.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:he},s.createElement("svg",{className:P["playback-icons"]},s.createElement("use",{ref:pe,href:"#play-icon"}),s.createElement("use",{ref:Ie,style:{display:"none"},href:"#pause"}))),s.createElement("div",{className:P.time},s.createElement("time",{id:"time-elapsed",ref:xe},"00:00"),s.createElement("span",null," / "),s.createElement("time",{id:"duration",ref:_e},"00:00"))),s.createElement("div",{className:P["right-controls"]},$&&s.createElement(T.Z,{placement:"top",overlayClassName:P.rateOverlay,getPopupContainer:le=>le.parentNode,menu:{items:[{key:"1",label:s.createElement("span",{onClick:()=>{ge(1),z.current.playbackRate=1}},"1.0x")},{key:"2",label:s.createElement("span",{onClick:()=>{ge(1.5),z.current.playbackRate=1.5}},"1.5x")},{key:"3",label:s.createElement("span",{onClick:()=>{ge(2),z.current.playbackRate=2}},"2.0x")}]}},s.createElement("div",{className:`${P.controlText} mr5`},"\u500D\u901F")),s.createElement(te.CopyToClipboard,{text:E,onCopy:()=>x.ZP.success("\u590D\u5236\u6210\u529F")},s.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},s.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),s.createElement("div",{className:P["volume-controls"]},s.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:P["volume-button"],id:"volume-button",onClick:fe},s.createElement("i",{ref:Je,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),s.createElement("i",{ref:vt,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),s.createElement("i",{ref:ft,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),s.createElement("input",{className:P.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:at,style:{display:"none"},onClick:X})),s.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:P["fullscreen-button"],onClick:()=>{(0,u.vp)()?(0,u.BU)():(0,u.Dj)(Qe.current)}},s.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),s.createElement("div",{className:P["video-progress"]},s.createElement("progress",{ref:Le,value:"0",min:"0"}),s.createElement("input",{className:P.seek,ref:Me,value:"0",min:"0",type:"range",step:"1"}),s.createElement("div",{className:P["seek-tooltip"],ref:Ct,id:"seek-tooltip"},"00:00"))))),s.createElement("svg",{style:{display:"none"}},s.createElement("defs",null,s.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},s.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),s.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},s.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),s.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},s.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"})),s.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},s.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"})),s.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},s.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"})),s.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},s.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"})),s.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},s.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"})),s.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},s.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"})))))})},71941:function(Ye,ae,o){"use strict";o.r(ae),o.d(ae,{default:function(){return $}});var s=o(67294),x=o(35973),T=o(46303),k=o(14446),A={flex_box_center:"flex_box_center___yF0Vb",flex_space_between:"flex_space_between___vsNYO",flex_box_vertical_center:"flex_box_vertical_center___C4UqH",flex_box_center_end:"flex_box_center_end___EGtmE",flex_box_column:"flex_box_column___uX9g9",bg:"bg___sRga2",menu:"menu___s8xQl",desc:"desc___poG1Z",listItem:"listItem___ml9kN",info:"info___Z8R2Z",add:"add___jH8te",addForm:"addForm___O999t",attendanceCode:"attendanceCode___hPKyl",signInStatus:"signInStatus___usMPT",colorE02020:"colorE02020___hZvSz",color0152d9:"color0152d9___RgXzd",colorFA6400:"colorFA6400___g2yU6",iframe:"iframe___HRzMh"},g=o(52262);const q={init:[{stage_name:"\u521D\u59CB\u5B66\u4E60",parent:9999999,key:0},{stage_name:"\u7EEA\u8BBA",parent:0,key:1},{discipline_name:"\u7EEA\u8BBA",shixun_count:"1",video_count:"2",parent:1,key:"11"},{shixun_name:"\u7EEA\u8BBA1",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f066ae1a9a8f418f837e5bf8d02b2690/76df907c20efd95bea0fa23424f10693-hd.m3u8",parent:"11",key:"111"},{shixun_name:"\u7EEA\u8BBA2",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/068ca7853da448c794eeffb0dee8bed4/5bb446a882043683e37474ff408f601b-hd.m3u8",parent:"11",key:"112"},{shixun_name:"C++\u5F00\u53D1\u73AF\u5883\u5E94\u7528\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/zxb937qn/challenges",parent:"11",key:"113"},{stage_name:"\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",parent:0,key:2},{discipline_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_count:"1",video_count:"1",parent:2,key:"21"},{shixun_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f5f9c87860cb4a98ba86da37b5bfac70/8d50a9c4d5d4d3382c09bad3f4c5dcb6-hd.m3u8",parent:"21",key:"211"},{shixun_name:"C++\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lg5afhzv/challenges",parent:"21",key:"212"},{discipline_name:"\u5224\u65AD\u8BED\u53E5",shixun_count:"2",video_count:"2",parent:2,key:"22"},{shixun_name:"if\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/3b4e821b200443948c553e4c6b51d940/b9601216238e60440192c2deb58adc53-hd.m3u8",parent:"22",key:"221"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08if\u591A\u91CD\u9009\u62E9\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/23xkyrmn/challenges",parent:"22",key:"222"},{shixun_name:"switch\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/3b4e821b200443948c553e4c6b51d940/b9601216238e60440192c2deb58adc53-hd.m3u8",parent:"22",key:"223"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08\u5DE7\u7528switch\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/sm3c5a7v/challenges",parent:"22",key:"224"},{discipline_name:"\u5FAA\u73AF",shixun_count:"2",video_count:"2",parent:2,key:"23"},{shixun_name:"while\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/dda06371a1594f5d865479a0fadc77bb/cb504e3af36ebe2ba979e8fe5fbb2222-hd.m3u8",parent:"23",key:"231"},{shixun_name:"C++\u5FAA\u73AF\u7ED3\u6784\u2014\u2014\uFF08\u719F\u6089while\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/8yhf4sn6/challenges",parent:"23",key:"232"},{shixun_name:"for\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/503194c483f44ccfacc7f9ee14cda70a/36cbd964c6657d1bbc43eb33b98f0c51-hd.m3u8",parent:"23",key:"233"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08\u5DE7\u7528switch\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/sm3c5a7v/challenges",parent:"23",key:"234"},{stage_name:"\u51FD\u6570",parent:0,key:3},{discipline_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_count:"2",video_count:"1",parent:3,key:"31"},{shixun_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c10e39b3afb14ad0b890368aa1751821/ef361445294452e1d9bfacae80b3ec2f-hd.m3u8",parent:"31",key:"311"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75281",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/3q4isevr/challenges",parent:"31",key:"312"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75282",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/tlhxwo64/challenges",parent:"31",key:"313"},{discipline_name:"\u4F20\u8F93\u4F20\u9012",shixun_count:"2",video_count:"1",parent:3,key:"32"},{shixun_name:"\u51FD\u6570\u7684\u53C2\u6570",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"32",key:"321"},{shixun_name:"C++\u53C2\u6570\u4F20\u90121",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/2phrn8yk/challenges",parent:"32",key:"322"},{shixun_name:"C++\u53C2\u6570\u4F20\u90122",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xsq7p4a6/challenges",parent:"32",key:"323"},{discipline_name:"\u51FD\u6570\u91CD\u8F7D",shixun_count:"1",video_count:"1",parent:3,key:"33"},{shixun_name:"\u51FD\u6570\u91CD\u8F7D",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"33",key:"331"},{shixun_name:"C++\u51FD\u6570\u91CD\u8F7D",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/6hbqpv7e/challenges",parent:"33",key:"332"},{discipline_name:"\u9012\u5F52\u51FD\u6570",shixun_count:"2",video_count:"1",parent:3,key:"34"},{shixun_name:"\u51FD\u6570\u7684\u9012\u5F52\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/51a0935ddc884f1b9f6c1395f2011425/7308cd65a7fe1d13eebe2600054d29c7-hd.m3u8",parent:"34",key:"341"},{shixun_name:"\u9012\u5F52\u51FD\u6570\u7F16\u5199\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4qjw9t32/challenges",parent:"34",key:"342"},{shixun_name:"\u9006\u5E8F\u8F93\u51FA\uFF08\u4F7F\u7528\u9012\u5F52\u89E3\u51B3\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/oxtrf27l/challenges",parent:"34",key:"343"},{stage_name:"\u7C7B\u548C\u5BF9\u8C61",parent:0,key:4},{discipline_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_count:"2",video_count:"1",parent:4,key:"41"},{shixun_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/b4e17c1e8c8d449f862af9ea94fa9522/bad9e739addf73679a70e38a9d2cc32c-hd.m3u8",parent:"41",key:"411"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/igwom4hs/challenges",parent:"41",key:"412"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784\u4F53",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/5yo6rw3f/challenges",parent:"41",key:"413"},{stage_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",parent:0,key:5},{discipline_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_count:"1",video_count:"1",parent:5,key:"51"},{shixun_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fde33b24ff2b4bf5bc5e238dc473df8e/3cf407a74af29554226084d17fa17858-hd.m3u8",parent:"51",key:"511"},{shixun_name:"C++\u7A0B\u5E8F\u7684\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/yqbh3fx5/challenges",parent:"51",key:"512"},{stage_name:"\u6570\u7EC4\u3001\u6307\u9488\u4E0E\u5B57\u7B26\u4E32",parent:0,key:6},{discipline_name:"\u6570\u7EC4",shixun_count:"1",video_count:"1",parent:6,key:"61"},{shixun_name:"\u6570\u7EC4",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"61",key:"611"},{shixun_name:"\u5E73\u5747\u6210\u7EE9\u4E0E\u7B80\u5355\u7EDF\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4wcfgm5q/challenges",parent:"61",key:"612"},{discipline_name:"\u6307\u9488",shixun_count:"3",video_count:"1",parent:6,key:"62"},{shixun_name:"\u6307\u9488",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/00a5448862c84c42b1a369ac2be88ae9/9b9627710a725e570ede478663c2589d-hd.m3u8",parent:"62",key:"621"},{shixun_name:"\u6307\u9488\u7EC3\u624B-\u5B57\u7B26\u4E32\u5012\u5E8F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lkn6xuc3/challenges",parent:"62",key:"622"},{shixun_name:"\u6307\u9488\u6570\u7EC4-\u5355\u8BCD\u5012\u5E8F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/vtk73ny2/challenges",parent:"62",key:"623"},{shixun_name:"\u7528\u6307\u9488\u89E3\u51B3\u95EE\u9898-\u6587\u672C\u683C\u5F0F\u5904\u7406",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xfnp73fz/challenges",parent:"62",key:"624"},{stage_name:"\u7C7B\u7684\u7EE7\u627F",parent:0,key:7},{discipline_name:"\u7C7B\u7684\u7EE7\u627F",shixun_count:"1",video_count:"3",parent:7,key:"71"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/1eedcdb9ec43442c93780f04859c9aa9/631b8c88eb263877d24637d5b8d54dc5-hd.m3u8",parent:"71",key:"711"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fc1e7d8d8140469ba1bc01ee64fcc3c1/9256d13f4a14ae17ba9cac9f895b8a9d-hd.m3u8",parent:"71",key:"712"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(3)",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7806?subject_id=jpl5vs26",parent:"71",key:"713"},{shixun_name:"\u7EE7\u627F\u4E0E\u6D3E\u751F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/f83ipgyo/challenges",parent:"71",key:"714"},{stage_name:"\u591A\u6001\u6027",parent:0,key:8},{discipline_name:"\u591A\u6001\u6027",shixun_count:"1",video_count:"2",parent:8,key:"81"},{shixun_name:"\u591A\u6001\u6027(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/5a960b51ebf346d2b77afb3b70d00768/73d6fa00824f4c73b885d33f688c3294-hd.m3u8",parent:"81",key:"811"},{shixun_name:"\u591A\u6001\u6027(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/08fe97a36e184cf1bf27cdd7a24794c9/625c4e9e863840443f5332ccc02761fc-hd.m3u8",parent:"81",key:"812"},{shixun_name:"\u865A\u51FD\u6570\u4E0E\u591A\u6001\u6027",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/9pjmg7uf/challenges",parent:"81",key:"813"},{stage_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",parent:0,key:9},{discipline_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",shixun_count:"1",video_count:"3",parent:9,key:"91"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/8dcf418d2d16404d91af1780f669e549/eb538592d8a3b98e1c2f7f844f85b778-hd.m3u8",parent:"91",key:"911"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/459f2693af7b48f8b854033e666a77f8/f5b140c5adc0f24ac56b72492373306a-hd.m3u8",parent:"91",key:"912"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(3)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/ccea50bc15d2468aab99aff19eb69e16/a5ecac1ee0c07360d07880187a787085-hd.m3u8",parent:"91",key:"913"},{shixun_name:"\u7FA4\u4F53\u7C7B\u548C\u7FA4\u4F53\u6570\u636E\u7684\u7EC4\u7EC7",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/kfv3my9o/challenges",parent:"91",key:"914"},{stage_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",parent:0,key:10},{discipline_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_count:"1",video_count:"3",parent:10,key:"101"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/2f3154d695a542fbaba5c483d8d7f7a9/aea4302c51501634469ed4b91462c810-hd.m3u8",parent:"101",key:"1011"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/23be6a61e4e54db398b9172b1213a1f2/3f1e88f97957369e29ef2bde63640004-hd.m3u8",parent:"101",key:"1012"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(3)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/a5887adcc34445bba695de7dcadb781e/0fb3a6a6ad38f7a107054c5f2f0de262-hd.m3u8",parent:"101",key:"1013"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hmtw5iq6/challenges",parent:"101",key:"1014"},{stage_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA11",parent:0,key:1911},{discipline_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_count:"1",video_count:"2",parent:1911,key:9111},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(1)22222",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c9e76b949ee847fbb89a926220526692/b80ff8d09a87bfde1064f5b73ae7c34b-hd.m3u8",parent:9111,key:"91111"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/65c02365a4ad40858b69b8cbe3ca4aa1/18a2c5697d4a84a971c500565509f038-hd.m3u8",parent:"9111",key:"91112"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hsvuixpm/challenges",parent:"9111",key:"91113"},{stage_name:"\u5F02\u5E38\u5904\u7406",parent:0,key:12},{discipline_name:"\u5F02\u5E38\u5904\u7406",shixun_count:"1",video_count:"1",parent:12,key:"121"},{shixun_name:"\u5F02\u5E38\u5904\u7406",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c95499dd4c064584914e32fca9563717/98a8be24326e3eb35375713f5ccbb8bb-hd.m3u8",parent:"121",key:"1211"},{shixun_name:"\u7F16\u5199\u5F02\u5E38\u5904\u7406\u7684\u7C7B",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/nlt6f7ae/challenges",parent:"121",key:"1212"}].map(E=>(E.parent=Number(E.parent),E.key=Number(E.key),E)),review:[{stage_name:"\u590D\u4E60\u5B66\u4E60",parent:9999999,key:0},{stage_name:"\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",parent:0,key:1},{discipline_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_count:"1",video_count:"1",parent:1,key:"11"},{shixun_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f5f9c87860cb4a98ba86da37b5bfac70/8d50a9c4d5d4d3382c09bad3f4c5dcb6-hd.m3u8",parent:"11",key:"111"},{shixun_name:"C++\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lg5afhzv/challenges",parent:"11",key:"112"},{discipline_name:"\u5FAA\u73AF",shixun_count:"2",video_count:"2",parent:1,key:"12"},{shixun_name:"while\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/dda06371a1594f5d865479a0fadc77bb/cb504e3af36ebe2ba979e8fe5fbb2222-hd.m3u8",parent:"12",key:"121"},{shixun_name:"C++\u5FAA\u73AF\u7ED3\u6784\u2014\u2014\uFF08\u719F\u6089while\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/8yhf4sn6/challenges",parent:"12",key:"122"},{shixun_name:"for\u8BED\u53E5",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/503194c483f44ccfacc7f9ee14cda70a/36cbd964c6657d1bbc43eb33b98f0c51-hd.m3u8",parent:"12",key:"123"},{shixun_name:"C++\u9009\u62E9\u7ED3\u6784\u2014\u2014\uFF08\u5DE7\u7528switch\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/sm3c5a7v/challenges",parent:"12",key:"124"},{stage_name:"\u51FD\u6570",parent:0,key:2},{discipline_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_count:"2",video_count:"1",parent:2,key:"21"},{shixun_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c10e39b3afb14ad0b890368aa1751821/ef361445294452e1d9bfacae80b3ec2f-hd.m3u8",parent:"21",key:"211"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75281",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/3q4isevr/challenges",parent:"21",key:"212"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75282",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/tlhxwo64/challenges",parent:"21",key:"213"},{discipline_name:"\u4F20\u8F93\u4F20\u9012",shixun_count:"2",video_count:"1",parent:2,key:"22"},{shixun_name:"\u51FD\u6570\u7684\u53C2\u6570",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"22",key:"221"},{shixun_name:"C++\u53C2\u6570\u4F20\u90121",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/2phrn8yk/challenges",parent:"22",key:"222"},{shixun_name:"C++\u53C2\u6570\u4F20\u90122",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xsq7p4a6/challenges",parent:"22",key:"223"},{discipline_name:"\u9012\u5F52\u51FD\u6570",shixun_count:"2",video_count:"2",parent:2,key:"23"},{shixun_name:"\u51FD\u6570\u7684\u9012\u5F52\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/51a0935ddc884f1b9f6c1395f2011425/7308cd65a7fe1d13eebe2600054d29c7-hd.m3u8",parent:"23",key:"231"},{shixun_name:"\u9012\u5F52\u51FD\u6570\u7F16\u5199\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4qjw9t32/challenges",parent:"23",key:"232"},{shixun_name:"\u9006\u5E8F\u8F93\u51FA\uFF08\u4F7F\u7528\u9012\u5F52\u89E3\u51B3\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/oxtrf27l/challenges",parent:"23",key:"233"},{stage_name:"\u7C7B\u548C\u5BF9\u8C61",parent:0,key:3},{discipline_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_count:"2",video_count:"1",parent:3,key:"31"},{shixun_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/b4e17c1e8c8d449f862af9ea94fa9522/bad9e739addf73679a70e38a9d2cc32c-hd.m3u8",parent:"31",key:"311"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/igwom4hs/challenges",parent:"31",key:"312"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784\u4F53",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/5yo6rw3f/challenges",parent:"31",key:"313"},{stage_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",parent:0,key:4},{discipline_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_count:"1",video_count:"1",parent:4,key:"41"},{shixun_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fde33b24ff2b4bf5bc5e238dc473df8e/3cf407a74af29554226084d17fa17858-hd.m3u8",parent:"41",key:"411"},{shixun_name:"C++\u7A0B\u5E8F\u7684\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/yqbh3fx5/challenges",parent:"41",key:"412"},{stage_name:"\u6570\u7EC4\u3001\u6307\u9488\u4E0E\u5B57\u7B26\u4E32",parent:0,key:5},{discipline_name:"\u6570\u7EC4",shixun_count:"1",video_count:"1",parent:5,key:"51"},{shixun_name:"\u6570\u7EC4",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"51",key:"511"},{shixun_name:"\u5E73\u5747\u6210\u7EE9\u4E0E\u7B80\u5355\u7EDF\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4wcfgm5q/challenges",parent:"51",key:"512"},{discipline_name:"\u6307\u9488",shixun_count:"1",video_count:"1",parent:5,key:"52"},{shixun_name:"\u6307\u9488",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/00a5448862c84c42b1a369ac2be88ae9/9b9627710a725e570ede478663c2589d-hd.m3u8",parent:"52",key:"521"},{shixun_name:"\u7528\u6307\u9488\u89E3\u51B3\u95EE\u9898-\u6587\u672C\u683C\u5F0F\u5904\u7406",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/xfnp73fz/challenges",parent:"52",key:"522"},{stage_name:"\u7C7B\u7684\u7EE7\u627F",parent:0,key:6},{discipline_name:"\u7C7B\u7684\u7EE7\u627F",shixun_count:"0",video_count:"2",parent:6,key:"61"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/1eedcdb9ec43442c93780f04859c9aa9/631b8c88eb263877d24637d5b8d54dc5-hd.m3u8",parent:"61",key:"611"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fc1e7d8d8140469ba1bc01ee64fcc3c1/9256d13f4a14ae17ba9cac9f895b8a9d-hd.m3u8",parent:"61",key:"612"},{stage_name:"\u591A\u6001\u6027",parent:0,key:7},{discipline_name:"\u591A\u6001\u6027",shixun_count:"1",video_count:"2",parent:7,key:"71"},{shixun_name:"\u591A\u6001\u6027(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/5a960b51ebf346d2b77afb3b70d00768/73d6fa00824f4c73b885d33f688c3294-hd.m3u8",parent:"71",key:"711"},{shixun_name:"\u591A\u6001\u6027(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/08fe97a36e184cf1bf27cdd7a24794c9/625c4e9e863840443f5332ccc02761fc-hd.m3u8",parent:"71",key:"712"},{shixun_name:"\u865A\u51FD\u6570\u4E0E\u591A\u6001\u6027",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/9pjmg7uf/challenges",parent:"71",key:"713"},{stage_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",parent:0,key:8},{discipline_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",shixun_count:"1",video_count:"1",parent:8,key:"81"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/8dcf418d2d16404d91af1780f669e549/eb538592d8a3b98e1c2f7f844f85b778-hd.m3u8",parent:"81",key:"811"},{shixun_name:"\u7FA4\u4F53\u7C7B\u548C\u7FA4\u4F53\u6570\u636E\u7684\u7EC4\u7EC7",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/kfv3my9o/challenges",parent:"81",key:"812"},{stage_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",parent:0,key:9},{discipline_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_count:"1",video_count:"1",parent:9,key:"91"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/2f3154d695a542fbaba5c483d8d7f7a9/aea4302c51501634469ed4b91462c810-hd.m3u8",parent:"91",key:"911"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hmtw5iq6/challenges",parent:"91",key:"912"},{stage_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",parent:0,key:10},{discipline_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_count:"0",video_count:"2",parent:10,key:"101"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c9e76b949ee847fbb89a926220526692/b80ff8d09a87bfde1064f5b73ae7c34b-hd.m3u8",parent:"101",key:"1011"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/65c02365a4ad40858b69b8cbe3ca4aa1/18a2c5697d4a84a971c500565509f038-hd.m3u8",parent:"101",key:"1012"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/hsvuixpm/challenges",parent:"101",key:"1013"},{stage_name:"\u5F02\u5E38\u5904\u7406",parent:0,key:9911},{discipline_name:"\u5F02\u5E38\u5904\u7406",shixun_count:"1",video_count:"1",parent:9911,key:"99111"},{shixun_name:"\u5F02\u5E38\u5904\u7406",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c95499dd4c064584914e32fca9563717/98a8be24326e3eb35375713f5ccbb8bb-hd.m3u8",parent:"99111",key:"991111"},{shixun_name:"\u7F16\u5199\u5F02\u5E38\u5904\u7406\u7684\u7C7B",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/nlt6f7ae/challenges",parent:"99111",key:"991112"}].map(E=>(E.parent=Number(E.parent),E.key=Number(E.key),E)),before:[{stage_name:"\u8003\u524D\u5B66\u4E60",parent:9999999,key:0},{stage_name:"\u7EEA\u8BBA",parent:0,key:1},{discipline_name:"\u7EEA\u8BBA",shixun_count:"1",video_count:"2",parent:1,key:"11"},{shixun_name:"\u7EEA\u8BBA1",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f066ae1a9a8f418f837e5bf8d02b2690/76df907c20efd95bea0fa23424f10693-hd.m3u8",parent:"11",key:"111"},{shixun_name:"\u7EEA\u8BBA2",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/068ca7853da448c794eeffb0dee8bed4/5bb446a882043683e37474ff408f601b-hd.m3u8",parent:"11",key:"112"},{shixun_name:"C++\u5F00\u53D1\u73AF\u5883\u5E94\u7528\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/zxb937qn/challenges",parent:"11",key:"113"},{stage_name:"\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",parent:0,key:2},{discipline_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_count:"1",video_count:"1",parent:2,key:"21"},{shixun_name:"\u57FA\u7840\u6570\u636E\u7C7B\u578B\u548C\u8868\u8FBE\u5F0F",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/f5f9c87860cb4a98ba86da37b5bfac70/8d50a9c4d5d4d3382c09bad3f4c5dcb6-hd.m3u8",parent:"21",key:"211"},{shixun_name:"C++\u7B80\u5355\u7A0B\u5E8F\u8BBE\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/lg5afhzv/challenges",parent:"21",key:"212"},{stage_name:"\u51FD\u6570",parent:0,key:3},{discipline_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_count:"2",video_count:"1",parent:3,key:"31"},{shixun_name:"\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c10e39b3afb14ad0b890368aa1751821/ef361445294452e1d9bfacae80b3ec2f-hd.m3u8",parent:"31",key:"311"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75281",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/3q4isevr/challenges",parent:"31",key:"312"},{shixun_name:"C++\u51FD\u6570\u7684\u5B9A\u4E49\u4E0E\u8C03\u75282",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/tlhxwo64/challenges",parent:"31",key:"313"},{discipline_name:"\u9012\u5F52\u51FD\u6570",shixun_count:"2",video_count:"1",parent:3,key:"32"},{shixun_name:"\u51FD\u6570\u7684\u9012\u5F52\u8C03\u7528",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/51a0935ddc884f1b9f6c1395f2011425/7308cd65a7fe1d13eebe2600054d29c7-hd.m3u8",parent:"32",key:"321"},{shixun_name:"\u9012\u5F52\u51FD\u6570\u7F16\u5199\u5165\u95E8",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4qjw9t32/challenges",parent:"32",key:"322"},{shixun_name:"\u9006\u5E8F\u8F93\u51FA\uFF08\u4F7F\u7528\u9012\u5F52\u89E3\u51B3\uFF09",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/oxtrf27l/challenges",parent:"32",key:"323"},{stage_name:"\u7C7B\u548C\u5BF9\u8C61",parent:0,key:4},{discipline_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_count:"2",video_count:"1",parent:4,key:"41"},{shixun_name:"\u6784\u9020\u51FD\u6570\u548C\u6790\u6784\u51FD\u6570",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/b4e17c1e8c8d449f862af9ea94fa9522/bad9e739addf73679a70e38a9d2cc32c-hd.m3u8",parent:"41",key:"411"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/igwom4hs/challenges",parent:"41",key:"412"},{shixun_name:"\u5B9A\u4E49\u548C\u4F7F\u7528\u7ED3\u6784\u4F53",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/5yo6rw3f/challenges",parent:"41",key:"413"},{stage_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",parent:0,key:5},{discipline_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_count:"1",video_count:"1",parent:5,key:"51"},{shixun_name:"\u6570\u636E\u7684\u5171\u4EAB\u4E0E\u4FDD\u62A4",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fde33b24ff2b4bf5bc5e238dc473df8e/3cf407a74af29554226084d17fa17858-hd.m3u8",parent:"51",key:"511"},{shixun_name:"C++\u7A0B\u5E8F\u7684\u7ED3\u6784",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/yqbh3fx5/challenges",parent:"51",key:"512"},{stage_name:"\u6570\u7EC4\u3001\u6307\u9488\u4E0E\u5B57\u7B26\u4E32",parent:0,key:6},{discipline_name:"\u6570\u7EC4",shixun_count:"1",video_count:"1",parent:6,key:"61"},{shixun_name:"\u6570\u7EC4",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7785?subject_id=jpl5vs26",parent:"61",key:"611"},{shixun_name:"\u5E73\u5747\u6210\u7EE9\u4E0E\u7B80\u5355\u7EDF\u8BA1",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/4wcfgm5q/challenges",parent:"61",key:"612"},{stage_name:"\u7C7B\u7684\u7EE7\u627F",parent:0,key:7},{discipline_name:"\u7C7B\u7684\u7EE7\u627F",shixun_count:"1",video_count:"3",parent:7,key:"71"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/1eedcdb9ec43442c93780f04859c9aa9/631b8c88eb263877d24637d5b8d54dc5-hd.m3u8",parent:"71",key:"711"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/fc1e7d8d8140469ba1bc01ee64fcc3c1/9256d13f4a14ae17ba9cac9f895b8a9d-hd.m3u8",parent:"71",key:"712"},{shixun_name:"\u7C7B\u7684\u7EE7\u627F(3)",shixun_type:"\u89C6\u9891",url:"https://www.educoder.net/video/7806?subject_id=jpl5vs26",parent:"71",key:"713"},{shixun_name:"\u7EE7\u627F\u4E0E\u6D3E\u751F",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/f83ipgyo/challenges",parent:"71",key:"714"},{stage_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",parent:0,key:8},{discipline_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E",shixun_count:"0",video_count:"1",parent:8,key:"81"},{shixun_name:"\u6A21\u677F\u4E0E\u7FA4\u4F53\u6570\u636E(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/8dcf418d2d16404d91af1780f669e549/eb538592d8a3b98e1c2f7f844f85b778-hd.m3u8",parent:"81",key:"811"},{stage_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",parent:0,key:9},{discipline_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93",shixun_count:"0",video_count:"1",parent:9,key:"91"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/2f3154d695a542fbaba5c483d8d7f7a9/aea4302c51501634469ed4b91462c810-hd.m3u8",parent:"91",key:"911"},{shixun_name:"\u6CDB\u578B\u7A0B\u5E8F\u8BBE\u8BA1\u4E0EC++\u6807\u51C6\u6A21\u677F\u5E93(2)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/23be6a61e4e54db398b9172b1213a1f2/3f1e88f97957369e29ef2bde63640004-hd.m3u8",parent:"91",key:"912"},{stage_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",parent:0,key:10},{discipline_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165/\u8F93\u51FA",shixun_count:"0",video_count:"1",parent:10,key:"101"},{shixun_name:"\u6D41\u7C7B\u5E93\u4E0E\u8F93\u5165\u8F93\u51FA(1)",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c9e76b949ee847fbb89a926220526692/b80ff8d09a87bfde1064f5b73ae7c34b-hd.m3u8",parent:"101",key:"1011"},{stage_name:"\u5F02\u5E38\u5904\u7406",parent:0,key:9911},{discipline_name:"\u5F02\u5E38\u5904\u7406",shixun_count:"1",video_count:"1",parent:9911,key:"99111"},{shixun_name:"\u5F02\u5E38\u5904\u7406",shixun_type:"\u89C6\u9891",url:"https://video.educoder.net/c95499dd4c064584914e32fca9563717/98a8be24326e3eb35375713f5ccbb8bb-hd.m3u8",parent:"99111",key:"991111"},{shixun_name:"\u7F16\u5199\u5F02\u5E38\u5904\u7406\u7684\u7C7B",shixun_type:"\u5B9E\u8BAD",url:"https://www.educoder.net/shixuns/nlt6f7ae/challenges",parent:"99111",key:"991112"}].map(E=>(E.parent=Number(E.parent),E.key=Number(E.key),E))};var te=o(15070),u=o(6104),P=Object.defineProperty,ne=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,V=(E,w,S)=>w in E?P(E,w,{enumerable:!0,configurable:!0,writable:!0,value:S}):E[w]=S,me=(E,w)=>{for(var S in w||(w={}))W.call(w,S)&&V(E,S,w[S]);if(ne)for(var S of ne(w))O.call(w,S)&&V(E,S,w[S]);return E};const re=({classroomList:E,loading:w,dispatch:S})=>{const[L]=(0,x.useSearchParams)(),[v]=(0,s.useState)(me({},(0,x.useParams)())),[I,Z]=(0,s.useState)("init"),[M,Q]=(0,s.useState)(""),ce=(0,s.useRef)();(0,s.useEffect)(()=>{const Se=L.get("tabId");Se&&(Z(Se),v.status=Se)},[v.categoryId,L.get("tabId")]);const Ae=Se=>{Z(Se.key)},De=[{name:"\u521D\u59CB\u5B66\u4E60",id:"init"},{name:"\u590D\u4E60\u5B66\u4E60",id:"review"},{name:"\u8003\u524D\u5B66\u4E60",id:"before"}],Pe=Se=>{Se.data.type==="playVideo"&&Q(Se.data.url)};(0,s.useEffect)(()=>{I&&Te(),window.addEventListener("message",Pe)},[I]);const Te=()=>{var Se;(Se=ce.current.contentWindow)==null||Se.postMessage({data:q[I]},"*")};return s.createElement("section",null,s.createElement(te.Z,{isLoading:w["classroomList/getClassroomAttendancesList"],tabDataSource:De,isAdmin:(0,g.GJ)(),onTabMenuClick:Ae,defaultSelectedKeys:[I]}),s.createElement("section",null,s.createElement(T.Z,{loading:w["classroomList/getClassroomAttendancesList"],active:!0,avatar:{size:40},paragraph:{rows:5},className:"mt30"},s.createElement("iframe",{src:"/knowledgegraph/parseTree.html",onLoad:Te,className:A.iframe,ref:ce}))),s.createElement(k.default,{open:!!M,onCancel:()=>Q(""),width:800,footer:null,bodyStyle:{padding:0},centered:!0,destroyOnClose:!0},s.createElement(u.Z,{src:M,autoPlay:!0,toLog:!1})))};var $=(0,x.connect)(({classroomList:E,loading:w,globalSetting:S})=>({classroomList:E,globalSetting:S,loading:w.effects}))(re)},15070:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return W}});var s=o(67294),x=o(71230),T=o(15746),k=o(68508),A=o(85418),g=o(2453),q=o(83062),te={tabMenuContainer:"tabMenuContainer___uf5IP",control:"control___GheLs",iconH:"iconH___Wzw_r",selectBtn:"selectBtn___mfEnI",selectBtn1:"selectBtn1___rJF8S"},u=o(35973),P=o(52262),W=({isLoading:O,addText:V,tabDataSource:me,isAdmin:re,dispatch:$,classroomList:E,type:w,isExercise:S,defaultSelectedKeys:L,onTabMenuClick:v,getDropdownMenu:I,showControlButton:Z,buttonText:M,buttonIcon:Q="icon-tianjiadaohang",extraNode:ce,user:Ae,onButtonClick:De,isModelUser:Pe,menuItemWidth:Te=125})=>{var Se,Ke,z,st,Qe;const Ie=(0,u.useParams)();return s.createElement("div",{className:te.tabMenuContainer},s.createElement(x.Z,null,s.createElement(T.Z,{flex:"1"},s.createElement(k.default,{onSelect:pe=>O?{}:v(pe),mode:"horizontal",selectedKeys:L},me.map(pe=>s.createElement(k.default.Item,{style:{width:Te},key:typeof pe.index=="number"?pe.index:pe.id},s.createElement("span",{className:"c-grey-666"},pe.name),pe.total!==void 0&&re&&s.createElement("span",{className:"c-grey-999 ml20"},pe.total||0))))),re&&S&&s.createElement("i",{className:"iconfont icon-shezhi8",style:{display:"flex",alignItems:"center",cursor:"pointer"},onClick:()=>{$({type:"classroomList/setActionTabs",payload:{key:"\u5728\u7EBF\u8003\u8BD5\u8BBE\u7F6E"}})}}),re&&s.createElement(T.Z,{className:"mr20 gutter-row",style:{display:"flex",alignItems:"center",color:"#0152d9",paddingBottom:3}},S&&s.createElement(A.Z,{className:"mr15",placement:"bottom",arrow:!0,dropdownRender:()=>s.createElement(k.default,null,s.createElement(k.default.Item,{key:1,onClick:()=>{var pe;if((0,P.Rm)()&&!((pe=E.AssistantObject.exercise)!=null&&pe.can_download)){g.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}$({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u6210\u7EE9",type:w,exportType:"exercise",category_id:Ie.categoryId}})}},"\u5B66\u751F\u6210\u7EE9"),s.createElement(k.default.Item,{key:3,onClick:()=>{var pe;if((0,P.Rm)()&&!((pe=E.AssistantObject.exercise)!=null&&pe.can_download)){g.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}u.history.push(`/classrooms/${Ie==null?void 0:Ie.coursesId}/exportlist/exercise_score,export_exercise_users`)}},"\u5386\u53F2\u5BFC\u51FA"))},s.createElement("div",{className:"c-blue font16 ml20 current",style:{marginTop:2}},s.createElement("span",{style:{color:"#666666",cursor:"pointer"}},s.createElement("i",{className:"iconfont icon-xiazai6"})))),s.createElement("div",{className:te.control},s.createElement("div",{className:te.extra},ce),Z&&(M=="\u6DFB\u52A0\u76F4\u64AD"?s.createElement(A.Z,{menu:{items:(Ke=(Se=[{label:s.createElement("div",{onClick:()=>{De("\u5916\u94FE")}},"\u5916\u94FE\u76F4\u64AD"),key:"1",show:!0},Pe&&{label:s.createElement("div",{onClick:()=>{De("\u5934\u6B4C")}},"\u5934\u6B4C\u76F4\u64AD"),key:"2",show:!0}])==null?void 0:Se.filter(pe=>pe==null?void 0:pe.show))==null?void 0:Ke.map(pe=>({label:pe==null?void 0:pe.label,key:pe==null?void 0:pe.key}))}},s.createElement("span",{className:te.selectBtn},s.createElement("span",null,s.createElement("i",{className:`iconfont ${Q}`})),s.createElement("span",null,M))):s.createElement("span",{onClick:De,style:{cursor:"pointer"},className:te.selectBtn},s.createElement("span",null,s.createElement("i",{className:`iconfont ${Q}`})),s.createElement("span",null,M))),!!I&&s.createElement(A.Z,{disabled:((z=Ae==null?void 0:Ae.userInfo)==null?void 0:z.user_status)===2,className:"ml10",dropdownRender:I},s.createElement("span",{className:((st=Ae==null?void 0:Ae.userInfo)==null?void 0:st.user_status)===2?te.selectBtn1:te.selectBtn},s.createElement("span",null,s.createElement("i",{className:"iconfont icon-tianjiadaohang"})),s.createElement(q.Z,{title:((Qe=Ae==null?void 0:Ae.userInfo)==null?void 0:Qe.user_status)===2&&"\u6559\u5B66\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u5E73\u53F0\u5DF2\u6682\u505C\u63D0\u4F9B\u5728\u7EBF\u8003\u8BD5\u521B\u5EFA\u529F\u80FD"},s.createElement("span",null,V||"\u521B\u5EFA\u8BD5\u5377"))))))))}},51959:function(Ye,ae,o){"use strict";o.d(ae,{BU:function(){return x},Dj:function(){return s},gH:function(){return T},vp:function(){return k}});function s(A){try{A.mozRequestFullScreen?A.mozRequestFullScreen():A.webkitRequestFullScreen&&A.webkitRequestFullScreen()}catch(g){console.log(g,":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 T=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function k(){var A=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,g=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",A),window.isFullScreen?window.isFullScreen:A!=null}},24577:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return Cn}});class s{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Object.assign=Object.assign||function(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");let t=Object(e);for(let n=1;n ${t}`;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(k());var g=A;class q{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 te=q;class u{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class P extends u{constructor(e){super(e)}get name(){return"IllegalStateException"}}class ne extends u{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class W extends u{constructor(e){super(e)}get name(){return"NotImplementedException"}}const O={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},V={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class me{constructor(e){this._type=e||"undefined",this._status=O.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=O.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===O.kConnecting||this._status===O.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 W("Unimplemented abstract function!")}abort(){throw new W("Unimplemented abstract function!")}}let re={};function $(){let G=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(G)||/(opr)[\/]([\w.]+)/.exec(G)||/(chrome)[ \/]([\w.]+)/.exec(G)||/(iemobile)[\/]([\w.]+)/.exec(G)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(G)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(G)||/(webkit)[ \/]([\w.]+)/.exec(G)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(G)||/(msie) ([\w.]+)/.exec(G)||G.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(G)||G.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(G)||[],t=/(ipad)/.exec(G)||/(ipod)/.exec(G)||/(windows phone)/.exec(G)||/(iphone)/.exec(G)||/(kindle)/.exec(G)||/(android)/.exec(G)||/(windows)/.exec(G)||/(mac)/.exec(G)||/(linux)/.exec(G)||/(cros)/.exec(G)||[],n={browser:e[5]||e[3]||e[1]||"",version:e[2]||e[4]||"0",majorVersion:e[4]||e[2]||"0",platform:t[0]||""},i={};if(n.browser){i[n.browser]=!0;let r=n.majorVersion.split(".");i.version={major:parseInt(n.majorVersion,10),string:n.version},r.length>1&&(i.version.minor=parseInt(r[1],10)),r.length>2&&(i.version.build=parseInt(r[2],10))}if(n.platform&&(i[n.platform]=!0),(i.chrome||i.opr||i.safari)&&(i.webkit=!0),i.rv||i.iemobile){i.rv&&delete i.rv;let r="msie";n.browser=r,i[r]=!0}if(i.edge){delete i.edge;let r="msedge";n.browser=r,i[r]=!0}if(i.opr){let r="opera";n.browser=r,i[r]=!0}if(i.safari&&i.android){let r="android";n.browser=r,i[r]=!0}i.name=n.browser,i.platform=n.platform;for(let r in re)re.hasOwnProperty(r)&&delete re[r];Object.assign(re,i)}$();var E=re;class w extends me{static isSupported(){try{let e=E.msedge&&E.version.minor>=15048,t=E.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 i=this._seekHandler.getConfig(n,t),r=new self.Headers;if(typeof i.headers=="object"){let b=i.headers;for(let se in b)b.hasOwnProperty(se)&&r.append(se,b[se])}let f={method:"GET",headers:r,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let b in this._config.headers)r.append(b,this._config.headers[b]);e.cors===!1&&(f.mode="same-origin"),e.withCredentials&&(f.credentials="include"),e.referrerPolicy&&(f.referrerPolicy=e.referrerPolicy),this._status=O.kConnecting,self.fetch(i.url,f).then(b=>{if(this._requestAbort){this._requestAbort=!1,this._status=O.kIdle;return}if(b.ok&&b.status>=200&&b.status<=299){if(b.url!==i.url&&this._onURLRedirect){let J=this._seekHandler.removeURLParameters(b.url);this._onURLRedirect(J)}let se=b.headers.get("Content-Length");return se!=null&&(this._contentLength=parseInt(se),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,b.body.getReader())}else if(this._status=O.kError,this._onError)this._onError(V.HTTP_STATUS_CODE_INVALID,{code:b.status,msg:b.statusText});else throw new u("FetchStreamLoader: Http code invalid, "+b.status+" "+b.statusText)}).catch(b=>{if(this._status=O.kError,this._onError)this._onError(V.EXCEPTION,{code:-1,msg:b.message});else throw b})}abort(){this._requestAbort=!0}_pump(e){return e.read().then(t=>{if(t.done)if(this._contentLength!==null&&this._receivedLength{if(t.code===11&&E.msedge)return;this._status=O.kError;let n=0,i=null;if((t.code===19||t.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength299))if(this._status=O.kError,this._onError)this._onError(V.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new u("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);else this._status=O.kBuffering}}_onProgress(e){if(this._status===O.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===O.kError)return;this._status=O.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(e){this._status=O.kError;let t=0,n=null;if(this._contentLength&&e.loaded=200&&t.status<=299){if(this._status=LoaderStatus.kBuffering,t.responseURL!=null){let i=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&i!==this._currentRedirectedURL&&(this._currentRedirectedURL=i,this._onURLRedirect&&this._onURLRedirect(i))}let n=t.getResponseHeader("Content-Length");if(n!=null&&this._contentLength==null){let i=parseInt(n);i>0&&(this._contentLength=i,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 i=n.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=n.byteLength;let r=this._totalRange.from+this._receivedLength;this._receivedLength+=i.byteLength,this._onDataArrival&&this._onDataArrival(i,r,this._receivedLength),n.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${r+i.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength=this._contentLength&&(n=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(e,t){this._lastTimeLoaded=0;let n=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?n=this._currentRedirectedURL:e.redirectedURL!=null&&(n=e.redirectedURL));let i=this._seekHandler.getConfig(n,t);this._currentRequestURL=i.url;let r=this._xhr=new XMLHttpRequest;if(r.open("GET",i.url,!0),r.responseType="arraybuffer",r.onreadystatechange=this._onReadyStateChange.bind(this),r.onprogress=this._onProgress.bind(this),r.onload=this._onLoad.bind(this),r.onerror=this._onXhrError.bind(this),e.withCredentials&&(r.withCredentials=!0),typeof i.headers=="object"){let f=i.headers;for(let b in f)f.hasOwnProperty(b)&&r.setRequestHeader(b,f[b])}if(typeof this._config.headers=="object"){let f=this._config.headers;for(let b in f)f.hasOwnProperty(b)&&r.setRequestHeader(b,f[b])}r.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=O.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=O.kBuffering}else if(this._status=O.kError,this._onError)this._onError(V.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new u("RangeLoader: Http code invalid, "+t.status+" "+t.statusText)}}_onProgress(e){if(this._status===O.kError)return;if(this._contentLength===null){let n=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,n=!0;let i=e.total;this._internalAbort(),i!=null&i!==0&&(this._totalLength=i)}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,i=0,r=0,f=n;if(e=t[i]&&e=3&&(t=this._speedSampler.currentKBps)),t!==0){let f=this._normalizeSpeed(t);this._currentSpeedNormalized!==f&&(this._currentSpeedNormalized=f,this._currentChunkSizeKB=f)}let n=e.target.response,i=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength;let r=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength{this._dispatchArrayBuffer(t.result)},t.readAsArrayBuffer(e.data)}else{this._status=O.kError;let t={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(this._onError)this._onError(V.EXCEPTION,t);else throw new u(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=O.kError;let t={code:e.code,msg:e.message};if(this._onError)this._onError(V.EXCEPTION,t);else throw new u(t.msg)}}var Ae=ce;class De{constructor(e){this._zeroStart=e||!1}getConfig(e,t){let n={};if(t.from!==0||t.to!==-1){let i;t.to!==-1?i=`bytes=${t.from.toString()}-${t.to.toString()}`:i=`bytes=${t.from.toString()}-`,n.Range=i}else this._zeroStart&&(n.Range="bytes=0-");return{url:e,headers:n}}removeURLParameters(e){return e}}var Pe=De;class Te{constructor(e,t){this._startName=e,this._endName=t}getConfig(e,t){let n=e;if(t.from!==0||t.to!==-1){let i=!0;n.indexOf("?")===-1&&(n+="?",i=!1),i&&(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,i=e.indexOf("?");i!==-1&&(n=e.substring(i+1));let r="";if(n!=null&&n.length>0){let f=n.split("&");for(let b=0;b0;se[0]!==this._startName&&se[0]!==this._endName&&(J&&(r+="&"),r+=f[b])}}return r.length===0?t:t+"?"+r}}var Se=Te;class Ke{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 te,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===Q?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let e=this._config;if(e.seekType==="range")this._seekHandler=new Pe(this._config.rangeLoadZeroStart);else if(e.seekType==="param"){let t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new Se(t,n)}else if(e.seekType==="custom"){if(typeof e.customSeekHandler!="function")throw new ne("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}else throw new ne(`Invalid seekType in config: ${e.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=Ae;else if(S.isSupported())this._loaderClass=S;else if(v.isSupported())this._loaderClass=v;else if(Q.isSupported())this._loaderClass=Q;else throw new u("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 ne("Url must be a non-empty string!");this._dataSource.url=e}_expandBuffer(e){let t=this._stashSize;for(;t+1024*1024*10){let i=new Uint8Array(this._stashBuffer,0,this._stashUsed);new Uint8Array(n,0,t).set(i,0)}this._stashBuffer=n,this._bufferSize=t}_normalizeSpeed(e){let t=this._speedNormalizeList,n=t.length-1,i=0,r=0,f=n;if(e=t[i]&&e=512&&e<=1024?t=Math.floor(e*1.5):t=e*2,t>8192&&(t=8192);let n=t*1024+1024*1024*1;this._bufferSize0){let f=this._stashBuffer.slice(0,this._stashUsed),b=this._dispatchChunks(f,this._stashByteStart);if(b0){let se=new Uint8Array(f,b);r.set(se,0),this._stashUsed=se.byteLength,this._stashByteStart+=b}}else this._stashUsed=0,this._stashByteStart+=b;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),r=new Uint8Array(this._stashBuffer,0,this._bufferSize)),r.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{let f=this._dispatchChunks(e,t);if(fthis._bufferSize&&(this._expandBuffer(b),r=new Uint8Array(this._stashBuffer,0,this._bufferSize)),r.set(new Uint8Array(e,f),0),this._stashUsed+=b,this._stashByteStart=t+f}}}else if(this._stashUsed===0){let r=this._dispatchChunks(e,t);if(rthis._bufferSize&&this._expandBuffer(f),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,r),0),this._stashUsed+=f,this._stashByteStart=t+r}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);let r=new Uint8Array(this._stashBuffer,0,this._bufferSize);r.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;let f=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(f0){let b=new Uint8Array(this._stashBuffer,f);r.set(b,0)}this._stashUsed-=f,this._stashByteStart+=f}}_flushStashBuffer(e){if(this._stashUsed>0){let t=this._stashBuffer.slice(0,this._stashUsed),n=this._dispatchChunks(t,this._stashByteStart),i=t.byteLength-n;if(n0){let r=new Uint8Array(this._stashBuffer,0,this._bufferSize),f=new Uint8Array(t,n);r.set(f,0),this._stashUsed=f.byteLength,this._stashByteStart+=n}return 0}return this._stashUsed=0,this._stashByteStart=0,i}return 0}_onLoaderComplete(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(e,t){switch(g.e(this.TAG,`Loader error, code = ${t.code}, msg = ${t.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=V.UNRECOVERABLE_EARLY_EOF),e){case V.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let n=this._currentRange.to+1;n0){let t=_e.getConfig();e.emit("change",t)}}static registerListener(e){_e.emitter.addListener("change",e)}static removeListener(e){_e.emitter.removeListener("change",e)}static addLogListener(e){g.emitter.addListener("log",e),g.emitter.listenerCount("log")>0&&(g.ENABLE_CALLBACK=!0,_e._notifyChange())}static removeLogListener(e){g.emitter.removeListener("log",e),g.emitter.listenerCount("log")===0&&(g.ENABLE_CALLBACK=!1,_e._notifyChange())}}_e.emitter=new(k());var xe=_e;class Ct{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,i=e.length-1,r=0,f=0,b=i;for(t=e[r]&&t=128){e.push(String.fromCharCode(r&65535)),n+=2;continue}}}else if(t[n]<240){if(ft(t,n,2)){let r=(t[n]&15)<<12|(t[n+1]&63)<<6|t[n+2]&63;if(r>=2048&&(r&63488)!==55296){e.push(String.fromCharCode(r&65535)),n+=3;continue}}}else if(t[n]<248&&ft(t,n,3)){let r=(t[n]&7)<<18|(t[n+1]&63)<<12|(t[n+2]&63)<<6|t[n+3]&63;if(r>65536&&r<1114112){r-=65536,e.push(String.fromCharCode(r>>>10|55296)),e.push(String.fromCharCode(r&1023|56320)),n+=4;continue}}}e.push("\uFFFD"),++n}return e.join("")}var at=vt;let it=function(){let G=new ArrayBuffer(2);return new DataView(G).setInt16(0,256,!0),new Int16Array(G)[0]===256}();class ot{static parseScriptData(e,t,n){let i={};try{let r=ot.parseValue(e,t,n),f=ot.parseValue(e,t+r.size,n-r.size);i[r.data]=f.data}catch(r){g.e("AMF",r.toString())}return i}static parseObject(e,t,n){if(n<3)throw new P("Data not enough when parse ScriptDataObject");let i=ot.parseString(e,t,n),r=ot.parseValue(e,t+i.size,n-i.size),f=r.objectEnd;return{data:{name:i.data,value:r.data},size:i.size+r.size,objectEnd:f}}static parseVariable(e,t,n){return ot.parseObject(e,t,n)}static parseString(e,t,n){if(n<2)throw new P("Data not enough when parse String");let r=new DataView(e,t,n).getUint16(0,!it),f;return r>0?f=at(new Uint8Array(e,t+2,r)):f="",{data:f,size:2+r}}static parseLongString(e,t,n){if(n<4)throw new P("Data not enough when parse LongString");let r=new DataView(e,t,n).getUint32(0,!it),f;return r>0?f=at(new Uint8Array(e,t+4,r)):f="",{data:f,size:4+r}}static parseDate(e,t,n){if(n<10)throw new P("Data size invalid when parse Date");let i=new DataView(e,t,n),r=i.getFloat64(0,!it),f=i.getInt16(8,!it);return r+=f*60*1e3,{data:new Date(r),size:10}}static parseValue(e,t,n){if(n<1)throw new P("Data not enough when parse Value");let i=new DataView(e,t,n),r=1,f=i.getUint8(0),b,se=!1;try{switch(f){case 0:b=i.getFloat64(1,!it),r+=8;break;case 1:{b=!!i.getUint8(1),r+=1;break}case 2:{let J=ot.parseString(e,t+1,n-1);b=J.data,r+=J.size;break}case 3:{b={};let J=0;for((i.getUint32(n-4,!it)&16777215)===9&&(J=3);r32)throw new ne("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let f=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,f}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 i=Math.min(n,this._current_word_bits_left),r=this._current_word>>>32-i;return this._current_word<<=i,this._current_word_bits_left-=i,t=t<>>e)return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()}readUEG(){let e=this._skipLeadingZero();return this.readBits(e+1)-1}readSEG(){let e=this.readUEG();return e&1?e+1>>>1:-1*(e>>>1)}}var Re=qe;class N{static _ebsp2rbsp(e){let t=e,n=t.byteLength,i=new Uint8Array(n),r=0;for(let f=0;f=2&&t[f]===3&&t[f-1]===0&&t[f-2]===0||(i[r]=t[f],r++);return new Uint8Array(i.buffer,0,r)}static parseSPS(e){let t=N._ebsp2rbsp(e),n=new Re(t);n.readByte();let i=n.readByte();n.readByte();let r=n.readByte();n.readUEG();let f=N.getProfileString(i),b=N.getLevelString(r),se=1,J=420,ue=[0,420,422,444],Ne=8;if((i===100||i===110||i===122||i===244||i===44||i===83||i===86||i===118||i===128||i===138||i===144)&&(se=n.readUEG(),se===3&&n.readBits(1),se<=3&&(J=ue[se]),Ne=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let en=se!==3?8:12;for(let Qt=0;Qt0&&en<16?(Ft=Qt[en-1],ye=Qn[en-1]):en===255&&(Ft=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 en=n.readBits(32),Qt=n.readBits(32);Kt=n.readBool(),Vt=Qt,Mt=en*2,dt=Vt/Mt}}let Yn=1;(Ft!==1||ye!==1)&&(Yn=Ft/ye);let rn=0,In=0;if(se===0)rn=1,In=2-Y;else{let en=se===3?1:2,Qt=se===1?2:1;rn=en,In=Qt*(2-Y)}let Nt=(Oe+1)*16,jn=(2-Y)*((de+1)*16);Nt-=(ee+be)*rn,jn-=(Ce+ut)*In;let Zn=Math.ceil(Nt*Yn);return n.destroy(),n=null,{profile_string:f,level_string:b,bit_depth:Ne,ref_frames:ie,chroma_format:J,chroma_format_string:N.getChromaFormatString(J),frame_rate:{fixed:Kt,fps:dt,fps_den:Mt,fps_num:Vt},sar_ratio:{width:Ft,height:ye},codec_size:{width:Nt,height:jn},present_size:{width:Zn,height:jn}}}static _skipScalingList(e,t){let n=8,i=8,r=0;for(let f=0;f>>8&255|(G&255)<<8}function R(G){return(G&4278190080)>>>24|(G&16711680)>>>8|(G&65280)<<8|(G&255)<<24}function h(G,e){return G[e]<<24|G[e+1]<<16|G[e+2]<<8|G[e+3]}class _{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 Je,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 i=(t[4]&4)>>>2!==0,r=(t[4]&1)!==0,f=h(t,5);return f<9?n:{match:!0,consumed:f,dataOffset:f,hasAudioTrack:i,hasVideoTrack:r}}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 Je}_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 P("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let n=0,i=this._littleEndian;if(t===0)if(e.byteLength>13)n=_.probe(e).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,t+n!==this._dataOffset&&g.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(e,n).getUint32(0,!i)!==0&&g.w(this.TAG,"PrevTagSize0 !== 0 !!!"),n+=4);ne.byteLength)break;let f=r.getUint8(0),b=r.getUint32(0,!i)&16777215;if(n+11+b+4>e.byteLength)break;if(f!==8&&f!==9&&f!==18){g.w(this.TAG,`Unsupported tag type ${f}, skipped`),n+=11+b+4;continue}let se=r.getUint8(4),J=r.getUint8(5),ue=r.getUint8(6),Ne=r.getUint8(7),Fe=ue|J<<8|se<<16|Ne<<24;(r.getUint32(7,!i)&16777215)!==0&&g.w(this.TAG,"Meet tag which has StreamID != 0!");let Oe=n+11;switch(f){case 8:this._parseAudioData(e,Oe,b,Fe);break;case 9:this._parseVideoData(e,Oe,b,Fe,t+n);break;case 18:this._parseScriptData(e,Oe,b);break}let de=r.getUint32(11+b,!i);de!==11+b&&g.w(this.TAG,`Invalid PrevTagSize ${de}`),n+=11+b+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),n}_parseScriptData(e,t,n){let i=kt.parseScriptData(e,t,n);if(i.hasOwnProperty("onMetaData")){if(i.onMetaData==null||typeof i.onMetaData!="object"){g.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&g.w(this.TAG,"Found another onMetaData tag!"),this._metadata=i;let r=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},r)),typeof r.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=r.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof r.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=r.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof r.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=r.audiodatarate),typeof r.videodatarate=="number"&&(this._mediaInfo.videoDataRate=r.videodatarate),typeof r.width=="number"&&(this._mediaInfo.width=r.width),typeof r.height=="number"&&(this._mediaInfo.height=r.height),typeof r.duration=="number"){if(!this._durationOverrided){let f=Math.floor(r.duration*this._timescale);this._duration=f,this._mediaInfo.duration=f}}else this._mediaInfo.duration=0;if(typeof r.framerate=="number"){let f=Math.floor(r.framerate*1e3);if(f>0){let b=f/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=b,this._referenceFrameRate.fps_num=f,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=b}}if(typeof r.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let f=r.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(f),r.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=r,g.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(i).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},i))}_parseKeyframesIndex(e){let t=[],n=[];for(let i=1;i>>4;if(se!==2&&se!==10){this._onError(l.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+se);return}let J=0,ue=(b&12)>>>2;if(ue>=0&&ue<=4)J=this._flvSoundRateTable[ue];else{this._onError(l.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+ue);return}let Ne=(b&2)>>>1,Fe=b&1,ie=this._audioMetadata,Oe=this._audioTrack;if(ie||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),ie=this._audioMetadata={},ie.type="audio",ie.id=Oe.id,ie.timescale=this._timescale,ie.duration=this._duration,ie.audioSampleRate=J,ie.channelCount=Fe===0?1:2),se===10){let de=this._parseAACAudioData(e,t+1,n-1);if(de==null)return;if(de.packetType===0){ie.config&&g.w(this.TAG,"Found another AudioSpecificConfig!");let Y=de.data;ie.audioSampleRate=Y.samplingRate,ie.channelCount=Y.channelCount,ie.codec=Y.codec,ie.originalCodec=Y.originalCodec,ie.config=Y.config,ie.refSampleDuration=1024/ie.audioSampleRate*ie.timescale,g.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",ie);let ee=this._mediaInfo;ee.audioCodec=ie.originalCodec,ee.audioSampleRate=ie.audioSampleRate,ee.audioChannelCount=ie.channelCount,ee.hasVideo?ee.videoCodec!=null&&(ee.mimeType='video/x-flv; codecs="'+ee.videoCodec+","+ee.audioCodec+'"'):ee.mimeType='video/x-flv; codecs="'+ee.audioCodec+'"',ee.isComplete()&&this._onMediaInfo(ee)}else if(de.packetType===1){let Y=this._timestampBase+i,ee={unit:de.data,length:de.data.byteLength,dts:Y,pts:Y};Oe.samples.push(ee),Oe.length+=de.data.length}else g.e(this.TAG,`Flv: Unsupported AAC data type ${de.packetType}`)}else if(se===2){if(!ie.codec){let be=this._parseMP3AudioData(e,t+1,n-1,!0);if(be==null)return;ie.audioSampleRate=be.samplingRate,ie.channelCount=be.channelCount,ie.codec=be.codec,ie.originalCodec=be.originalCodec,ie.refSampleDuration=1152/ie.audioSampleRate*ie.timescale,g.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",ie);let Ce=this._mediaInfo;Ce.audioCodec=ie.codec,Ce.audioSampleRate=ie.audioSampleRate,Ce.audioChannelCount=ie.channelCount,Ce.audioDataRate=be.bitRate,Ce.hasVideo?Ce.videoCodec!=null&&(Ce.mimeType='video/x-flv; codecs="'+Ce.videoCodec+","+Ce.audioCodec+'"'):Ce.mimeType='video/x-flv; codecs="'+Ce.audioCodec+'"',Ce.isComplete()&&this._onMediaInfo(Ce)}let de=this._parseMP3AudioData(e,t+1,n-1,!1);if(de==null)return;let Y=this._timestampBase+i,ee={unit:de,length:de.byteLength,dts:Y,pts:Y};Oe.samples.push(ee),Oe.length+=de.length}}_parseAACAudioData(e,t,n){if(n<=1){g.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let i={},r=new Uint8Array(e,t,n);return i.packetType=r[0],r[0]===0?i.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):i.data=r.subarray(1),i}_parseAACAudioSpecificConfig(e,t,n){let i=new Uint8Array(e,t,n),r=null,f=0,b=0,se=null,J=0,ue=null;if(f=b=i[0]>>>3,J=(i[0]&7)<<1|i[1]>>>7,J<0||J>=this._mpegSamplingRates.length){this._onError(l.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let Ne=this._mpegSamplingRates[J],Fe=(i[1]&120)>>>3;if(Fe<0||Fe>=8){this._onError(l.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}f===5&&(ue=(i[1]&7)<<1|i[2]>>>7,se=(i[2]&124)>>>2);let ie=self.navigator.userAgent.toLowerCase();return ie.indexOf("firefox")!==-1?J>=6?(f=5,r=new Array(4),ue=J-3):(f=2,r=new Array(2),ue=J):ie.indexOf("android")!==-1?(f=2,r=new Array(2),ue=J):(f=5,ue=J,r=new Array(4),J>=6?ue=J-3:Fe===1&&(f=2,r=new Array(2),ue=J)),r[0]=f<<3,r[0]|=(J&15)>>>1,r[1]=(J&15)<<7,r[1]|=(Fe&15)<<3,f===5&&(r[1]|=(ue&15)>>>1,r[2]=(ue&1)<<7,r[2]|=8,r[3]=0),{config:r,samplingRate:Ne,channelCount:Fe,codec:"mp4a.40."+f,originalCodec:"mp4a.40."+b}}_parseMP3AudioData(e,t,n,i){if(n<4){g.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let r=this._littleEndian,f=new Uint8Array(e,t,n),b=null;if(i){if(f[0]!==255)return;let se=f[1]>>>3&3,J=(f[1]&6)>>1,ue=(f[2]&240)>>>4,Ne=(f[2]&12)>>>2,ie=(f[3]>>>6&3)!==3?2:1,Oe=0,de=0,Y=34,ee="mp3";switch(se){case 0:Oe=this._mpegAudioV25SampleRateTable[Ne];break;case 2:Oe=this._mpegAudioV20SampleRateTable[Ne];break;case 3:Oe=this._mpegAudioV10SampleRateTable[Ne];break}switch(J){case 1:Y=34,ue>>4,se=f&15;if(se!==7){this._onError(l.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${se}`);return}this._parseAVCVideoPacket(e,t+1,n-1,i,r,b)}_parseAVCVideoPacket(e,t,n,i,r,f){if(n<4){g.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let b=this._littleEndian,se=new DataView(e,t,n),J=se.getUint8(0),Ne=(se.getUint32(0,!b)&16777215)<<8>>8;if(J===0)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(J===1)this._parseAVCVideoData(e,t+4,n-4,i,r,f,Ne);else if(J!==2){this._onError(l.FORMAT_ERROR,`Flv: Invalid video packet type ${J}`);return}}_parseAVCDecoderConfigurationRecord(e,t,n){if(n<7){g.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let i=this._videoMetadata,r=this._videoTrack,f=this._littleEndian,b=new DataView(e,t,n);i?typeof i.avcc!="undefined"&&g.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),i=this._videoMetadata={},i.type="video",i.id=r.id,i.timescale=this._timescale,i.duration=this._duration);let se=b.getUint8(0),J=b.getUint8(1),ue=b.getUint8(2),Ne=b.getUint8(3);if(se!==1||J===0){this._onError(l.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(b.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(l.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let Fe=b.getUint8(5)&31;if(Fe===0){this._onError(l.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else Fe>1&&g.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${Fe}`);let ie=6;for(let de=0;de1&&g.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${Oe}`);ie++;for(let de=0;de=n){g.w(this.TAG,`Malformed Nalu near timestamp ${Oe}, offset = ${Fe}, dataSize = ${n}`);break}let Y=J.getUint32(Fe,!se);if(ie===3&&(Y>>>=8),Y>n-ie){g.w(this.TAG,`Malformed Nalus near timestamp ${Oe}, NaluSize > DataSize!`);return}let ee=J.getUint8(Fe+ie)&31;ee===5&&(de=!0);let be=new Uint8Array(e,t+Fe,ie+Y),Ce={type:ee,data:be};ue.push(Ce),Ne+=be.byteLength,Fe+=ie+Y}if(ue.length){let Y=this._videoTrack,ee={units:ue,length:Ne,isKeyframe:de,dts:Oe,cts:b,pts:Oe+b};de&&(ee.fileposition=r),Y.samples.push(ee),Y.length+=Ne}}}var y=_;class a{static init(){a.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 a.types)a.types.hasOwnProperty(t)&&(a.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let e=a.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,i=Array.prototype.slice.call(arguments,1),r=i.length;for(let b=0;b>>24&255,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n.set(e,4);let f=8;for(let b=0;b>>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 a.box(a.types.trak,a.tkhd(e),a.mdia(e))}static tkhd(e){let t=e.id,n=e.duration,i=e.presentWidth,r=e.presentHeight;return a.box(a.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,i>>>8&255,i&255,0,0,r>>>8&255,r&255,0,0]))}static mdia(e){return a.box(a.types.mdia,a.mdhd(e),a.hdlr(e),a.minf(e))}static mdhd(e){let t=e.timescale,n=e.duration;return a.box(a.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=a.constants.HDLR_AUDIO:t=a.constants.HDLR_VIDEO,a.box(a.types.hdlr,t)}static minf(e){let t=null;return e.type==="audio"?t=a.box(a.types.smhd,a.constants.SMHD):t=a.box(a.types.vmhd,a.constants.VMHD),a.box(a.types.minf,t,a.dinf(),a.stbl(e))}static dinf(){return a.box(a.types.dinf,a.box(a.types.dref,a.constants.DREF))}static stbl(e){return a.box(a.types.stbl,a.stsd(e),a.box(a.types.stts,a.constants.STTS),a.box(a.types.stsc,a.constants.STSC),a.box(a.types.stsz,a.constants.STSZ),a.box(a.types.stco,a.constants.STCO))}static stsd(e){return e.type==="audio"?e.codec==="mp3"?a.box(a.types.stsd,a.constants.STSD_PREFIX,a.mp3(e)):a.box(a.types.stsd,a.constants.STSD_PREFIX,a.mp4a(e)):a.box(a.types.stsd,a.constants.STSD_PREFIX,a.avc1(e))}static mp3(e){let t=e.channelCount,n=e.audioSampleRate,i=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 a.box(a.types[".mp3"],i)}static mp4a(e){let t=e.channelCount,n=e.audioSampleRate,i=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 a.box(a.types.mp4a,i,a.esds(e))}static esds(e){let t=e.config||[],n=t.length,i=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 a.box(a.types.esds,i)}static avc1(e){let t=e.avcc,n=e.codecWidth,i=e.codecHeight,r=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,i>>>8&255,i&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 a.box(a.types.avc1,r,a.box(a.types.avcC,t))}static mvex(e){return a.box(a.types.mvex,a.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 a.box(a.types.trex,n)}static moof(e,t){return a.box(a.types.moof,a.mfhd(e.sequenceNumber),a.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 a.box(a.types.mfhd,t)}static traf(e,t){let n=e.id,i=a.box(a.types.tfhd,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255])),r=a.box(a.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255])),f=a.sdtp(e),b=a.trun(e,f.byteLength+16+16+8+16+8+8);return a.box(a.types.traf,i,r,b,f)}static sdtp(e){let t=e.samples||[],n=t.length,i=new Uint8Array(4+n);for(let r=0;r>>24&255,i>>>16&255,i>>>8&255,i&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0);for(let b=0;b>>24&255,se>>>16&255,se>>>8&255,se&255,J>>>24&255,J>>>16&255,J>>>8&255,J&255,ue.isLeading<<2|ue.dependsOn,ue.isDependedOn<<6|ue.hasRedundancy<<4|ue.isNonSync,0,0,Ne>>>24&255,Ne>>>16&255,Ne>>>8&255,Ne&255],12+16*b)}return a.box(a.types.trun,f)}static mdat(e){return a.box(a.types.mdat,e)}}a.init();var j=a;class X{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 oe=X;class ge{constructor(e,t,n,i,r){this.dts=e,this.pts=t,this.duration=n,this.originalDts=i,this.isSyncPoint=r,this.fileposition=null}}class he{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 fe{constructor(){this._list=[]}clear(){this._list=[]}appendArray(e){let t=this._list;e.length!==0&&(t.length>0&&e[0].originalDts=t[r].dts&&et[i].lastSample.originalDts&&e=t[i].lastSample.originalDts&&(i===t.length-1||i0&&(r=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=r,this._list.splice(r,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 je{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 le("audio"),this._videoSegmentInfoList=new le("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(E.chrome&&(E.version.major<50||E.version.major===50&&E.version.build<2661)),this._fillSilentAfterSeek=E.msedge||E.msie,this._mp3UseMpegAudio=!E.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 P("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)}_onTrackMetadataReceived(e,t){let n=null,i="mp4",r=t.codec;if(e==="audio")this._audioMeta=t,t.codec==="mp3"&&this._mp3UseMpegAudio?(i="mpeg",r="",n=new Uint8Array):n=j.generateInitSegment(t);else if(e==="video")this._videoMeta=t,n=j.generateInitSegment(t);else return;if(!this._onInitSegment)throw new P("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:r,container:`${e}/${i}`,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 i={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};t!=null&&(i.samples.push(t),i.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(n,!0),this._remuxAudio(i,!0)}_remuxAudio(e,t){if(this._audioMeta==null)return;let n=e,i=n.samples,r,f=-1,b=-1,se=-1,J=this._audioMeta.refSampleDuration,ue=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Ne=this._dtsBaseInited&&this._audioNextDts===void 0,Fe=!1;if(!i||i.length===0||i.length===1&&!t)return;let ie=0,Oe=null,de=0;ue?(ie=0,de=n.length):(ie=8,de=8+n.length);let Y=null;if(i.length>1&&(Y=i.pop(),de-=Y.length),this._audioStashedLastSample!=null){let ye=this._audioStashedLastSample;this._audioStashedLastSample=null,i.unshift(ye),de+=ye.length}Y!=null&&(this._audioStashedLastSample=Y);let ee=i[0].dts-this._dtsBase;if(this._audioNextDts)r=ee-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())r=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(Fe=!0);else{let ye=this._audioSegmentInfoList.getLastSampleBefore(ee);if(ye!=null){let dt=ee-(ye.originalDts+ye.duration);dt<=3&&(dt=0);let Kt=ye.dts+ye.duration+dt;r=ee-Kt}else r=0}if(Fe){let ye=ee-r,dt=this._videoSegmentInfoList.getLastSegmentBefore(ee);if(dt!=null&&dt.beginDts=1?cn=be[be.length-1].duration:cn=Math.floor(J);let Yn=!1,rn=null;if(cn>J*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!E.safari){Yn=!0;let In=Math.abs(cn-J),Nt=Math.ceil(In/J),jn=Mt+J;g.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. dts: ${Mt+cn} ms, expected: ${Mt+Math.round(J)} ms, delta: ${Math.round(In)} ms, generate: ${Nt} frames`);let Zn=oe.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Zn==null&&(g.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Zn=Kt),rn=[];for(let Qt=0;Qt0){let _i=rn[rn.length-1];_i.duration=Qn-_i.dts}let vi={dts:Qn,pts:Qn,cts:0,unit:Zn,size:Zn.byteLength,duration:0,originalDts:Vt,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};rn.push(vi),de+=vi.size,jn+=J}let en=rn[rn.length-1];en.duration=Mt+cn-en.dts,cn=Math.round(J)}be.push({dts:Mt,pts:Mt,cts:0,unit:dt.unit,size:dt.unit.byteLength,duration:cn,originalDts:Vt,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Yn&&be.push.apply(be,rn)}ue?Oe=new Uint8Array(de):(Oe=new Uint8Array(de),Oe[0]=de>>>24&255,Oe[1]=de>>>16&255,Oe[2]=de>>>8&255,Oe[3]=de&255,Oe.set(j.types.mdat,4));for(let ye=0;ye1&&(ie=i.pop(),Fe-=ie.length),this._videoStashedLastSample!=null){let Ce=this._videoStashedLastSample;this._videoStashedLastSample=null,i.unshift(Ce),Fe+=Ce.length}ie!=null&&(this._videoStashedLastSample=ie);let Oe=i[0].dts-this._dtsBase;if(this._videoNextDts)r=Oe-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())r=0;else{let Ce=this._videoSegmentInfoList.getLastSampleBefore(Oe);if(Ce!=null){let ut=Oe-(Ce.originalDts+Ce.duration);ut<=3&&(ut=0);let dn=Ce.dts+Ce.duration+ut;r=Oe-dn}else r=0}let de=new he,Y=[];for(let Ce=0;Ce=1?Vt=Y[Y.length-1].duration:Vt=Math.floor(this._videoMeta.refSampleDuration),Ft){let Mt=new ge(ye,Kt,Vt,ut.dts,!0);Mt.fileposition=ut.fileposition,de.appendSyncPoint(Mt)}Y.push({dts:ye,pts:Kt,cts:dt,units:ut.units,size:ut.length,isKeyframe:Ft,duration:Vt,originalDts:dn,flags:{isLeading:0,dependsOn:Ft?2:1,isDependedOn:Ft?1:0,hasRedundancy:0,isNonSync:Ft?0:1}})}Ne=new Uint8Array(Fe),Ne[0]=Fe>>>24&255,Ne[1]=Fe>>>16&255,Ne[2]=Fe>>>8&255,Ne[3]=Fe&255,Ne.set(j.types.mdat,4);for(let Ce=0;Ce{i.timestampBase=n,n+=i.duration,i.cors=e.cors,i.withCredentials=e.withCredentials,t.referrerPolicy&&(i.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],i=this._ioctl=new z(n,this._config,e);i.onError=this._onIOException.bind(this),i.onSeeked=this._onIOSeeked.bind(this),i.onComplete=this._onIOComplete.bind(this),i.onRedirect=this._onIORedirect.bind(this),i.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):i.onDataArrival=this._onInitChunkArrival.bind(this),i.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 i=n.getNearestKeyframe(e);this._remuxer.seek(i.milliseconds),this._ioctl.seek(i.fileposition),this._pendingResolveSeekPoint=i.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 i=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,i.fileposition),this._pendingResolveSeekPoint=i.milliseconds,this._reportSegmentMediaInfo(t)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(e){let t=this._mediaDataSource.segments,n=t.length-1;for(let i=0;i0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,i=this._demuxer.parseChunks(e,t);else if((n=y.probe(e)).match){this._demuxer=new y(n,this._config),this._remuxer||(this._remuxer=new Ue(this._config));let r=this._mediaDataSource;r.duration!=null&&!isNaN(r.duration)&&(this._demuxer.overridedDuration=r.duration),typeof r.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=r.hasAudio),typeof r.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=r.hasVideo),this._demuxer.timestampBase=r.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),i=this._demuxer.parseChunks(e,t)}else n=null,g.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(K.DEMUX_ERROR,l.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),i=0;return i}_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,Je.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,Je.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(K.METADATA_ARRIVED,e)}_onScriptDataArrived(e){this._emitter.emit(K.SCRIPTDATA_ARRIVED,e)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(e){let n=e+1;n0&&n[0].originalDts===i&&(i=n[0].pts),this._emitter.emit(K.RECOMMEND_SEEKPOINT,i)}}_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(K.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(K.STATISTICS_INFO,e)}}var xt=yt,et=function(G){let e="TransmuxingWorker",t=null,n=de.bind(this);x.install(),G.addEventListener("message",function(Y){switch(Y.data.cmd){case"init":t=new xt(Y.data.param[0],Y.data.param[1]),t.on(K.IO_ERROR,Fe.bind(this)),t.on(K.DEMUX_ERROR,ie.bind(this)),t.on(K.INIT_SEGMENT,i.bind(this)),t.on(K.MEDIA_SEGMENT,r.bind(this)),t.on(K.LOADING_COMPLETE,f.bind(this)),t.on(K.RECOVERED_EARLY_EOF,b.bind(this)),t.on(K.MEDIA_INFO,se.bind(this)),t.on(K.METADATA_ARRIVED,J.bind(this)),t.on(K.SCRIPTDATA_ARRIVED,ue.bind(this)),t.on(K.STATISTICS_INFO,Ne.bind(this)),t.on(K.RECOMMEND_SEEKPOINT,Oe.bind(this));break;case"destroy":t&&(t.destroy(),t=null),G.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(Y.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let ee=Y.data.param;xe.applyConfig(ee),ee.enableCallback===!0?xe.addLogListener(n):xe.removeLogListener(n);break}}});function i(Y,ee){let be={msg:K.INIT_SEGMENT,data:{type:Y,data:ee}};G.postMessage(be,[ee.data])}function r(Y,ee){let be={msg:K.MEDIA_SEGMENT,data:{type:Y,data:ee}};G.postMessage(be,[ee.data])}function f(){let Y={msg:K.LOADING_COMPLETE};G.postMessage(Y)}function b(){let Y={msg:K.RECOVERED_EARLY_EOF};G.postMessage(Y)}function se(Y){let ee={msg:K.MEDIA_INFO,data:Y};G.postMessage(ee)}function J(Y){let ee={msg:K.METADATA_ARRIVED,data:Y};G.postMessage(ee)}function ue(Y){let ee={msg:K.SCRIPTDATA_ARRIVED,data:Y};G.postMessage(ee)}function Ne(Y){let ee={msg:K.STATISTICS_INFO,data:Y};G.postMessage(ee)}function Fe(Y,ee){G.postMessage({msg:K.IO_ERROR,data:{type:Y,info:ee}})}function ie(Y,ee){G.postMessage({msg:K.DEMUX_ERROR,data:{type:Y,info:ee}})}function Oe(Y){G.postMessage({msg:K.RECOMMEND_SEEKPOINT,data:Y})}function de(Y,ee){G.postMessage({msg:"logcat_callback",data:{type:Y,logcat:ee}})}};class mt{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new(k()),t.enableWorker&&typeof Worker!="undefined")try{let n=o(18034);this._worker=n(et),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)},xe.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:xe.getConfig()})}catch(n){g.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new xt(e,t)}else this._controller=new xt(e,t);if(this._controller){let n=this._controller;n.on(K.IO_ERROR,this._onIOError.bind(this)),n.on(K.DEMUX_ERROR,this._onDemuxError.bind(this)),n.on(K.INIT_SEGMENT,this._onInitSegment.bind(this)),n.on(K.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),n.on(K.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),n.on(K.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),n.on(K.MEDIA_INFO,this._onMediaInfo.bind(this)),n.on(K.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),n.on(K.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),n.on(K.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),n.on(K.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),xe.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(K.INIT_SEGMENT,e,t)})}_onMediaSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(K.MEDIA_SEGMENT,e,t)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(K.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(K.RECOVERED_EARLY_EOF)})}_onMediaInfo(e){Promise.resolve().then(()=>{this._emitter.emit(K.MEDIA_INFO,e)})}_onMetaDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(K.METADATA_ARRIVED,e)})}_onScriptDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(K.SCRIPTDATA_ARRIVED,e)})}_onStatisticsInfo(e){Promise.resolve().then(()=>{this._emitter.emit(K.STATISTICS_INFO,e)})}_onIOError(e,t){Promise.resolve().then(()=>{this._emitter.emit(K.IO_ERROR,e,t)})}_onDemuxError(e,t){Promise.resolve().then(()=>{this._emitter.emit(K.DEMUX_ERROR,e,t)})}_onRecommendSeekpoint(e){Promise.resolve().then(()=>{this._emitter.emit(K.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 K.INIT_SEGMENT:case K.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case K.LOADING_COMPLETE:case K.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case K.MEDIA_INFO:Object.setPrototypeOf(n,Je.prototype),this._emitter.emit(t.msg,n);break;case K.METADATA_ARRIVED:case K.SCRIPTDATA_ARRIVED:case K.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case K.IO_ERROR:case K.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case K.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":g.emitter.emit("log",n.type,n.logcat);break;default:break}}}var It=mt,wt={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class Ot{constructor(e){this.TAG="MSEController",this._config=e,this._emitter=new(k()),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 fe}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 P("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 i=this._sourceBuffers[t];if(i){if(e.readyState!=="closed"){try{e.removeSourceBuffer(i)}catch(r){g.e(this.TAG,r.message)}i.removeEventListener("error",this.e.onSourceBufferError),i.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[t]=null,this._sourceBuffers[t]=null}}if(e.readyState==="open")try{e.endOfStream()}catch(t){g.e(this.TAG,t.message)}e.removeEventListener("sourceopen",this.e.onSourceOpen),e.removeEventListener("sourceended",this.e.onSourceEnded),e.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment(e,t){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(e),this._pendingSegments[e.type].push(e);return}let n=e,i=`${n.container}`;n.codec&&n.codec.length>0&&(i+=`;codecs=${n.codec}`);let r=!1;if(g.v(this.TAG,"Received Initialization Segment, mimeType: "+i),this._lastInitSegments[n.type]=n,i!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])g.v(this.TAG,`Notice: ${n.type} mimeType changed, origin: ${this._mimeTypes[n.type]}, target: ${i}`);else{r=!0;try{let f=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(i);f.addEventListener("error",this.e.onSourceBufferError),f.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(f){g.e(this.TAG,f.message),this._emitter.emit(wt.ERROR,{code:f.code,msg:f.message});return}}this._mimeTypes[n.type]=i}t||this._pendingSegments[n.type].push(n),r||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),E.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(r){g.e(this.TAG,r.message)}this._idrList.clear();let i=this._pendingSegments[t];if(i.splice(0,i.length),this._mediaSource.readyState!=="closed"){for(let r=0;r=1&&e-i.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 i=n.buffered,r=!1;for(let f=0;f=this._config.autoCleanupMaxBackwardDuration){r=!0;let J=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:b,end:J})}}else se0&&(isNaN(t)||n>t)&&(g.v(this.TAG,`Update MediaSource duration from ${t} to ${n}`),this._mediaSource.duration=n),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let e in this._pendingRemoveRanges){if(!this._sourceBuffers[e]||this._sourceBuffers[e].updating)continue;let t=this._sourceBuffers[e],n=this._pendingRemoveRanges[e];for(;n.length&&!t.updating;){let i=n.shift();t.remove(i.start,i.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 i=this._sourceBuffers[t].timestampOffset,r=n.timestampOffset/1e3;Math.abs(i-r)>.1&&(g.v(this.TAG,`Update MPEG audio timestampOffset from ${i} to ${r}`),this._sourceBuffers[t].timestampOffset=r),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(i){this._pendingSegments[t].unshift(n),i.code===22?(this._isBufferFull||this._emitter.emit(wt.BUFFER_FULL),this._isBufferFull=!0):(g.e(this.TAG,i.message),this._emitter.emit(wt.ERROR,{code:i.code,msg:i.message}))}}}_onSourceOpen(){if(g.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let e=this._pendingSourceBufferInit;for(;e.length;){let t=e.shift();this.appendInitSegment(t,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(wt.SOURCE_OPEN)}_onSourceEnded(){g.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){g.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let e=this._pendingSegments;return e.video.length>0||e.audio.length>0}_hasPendingRemoveRanges(){let e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(wt.UPDATE_END)}_onSourceBufferError(e){g.e(this.TAG,`SourceBuffer Error: ${e}`)}}var Ht=Ot;const $t={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Ee={NETWORK_EXCEPTION:V.EXCEPTION,NETWORK_STATUS_CODE_INVALID:V.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:V.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:V.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:l.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:l.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:l.CODEC_UNSUPPORTED};class We{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(k()),this._config=Qe(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()!=="flv")throw new ne("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=E.chrome&&(E.version.major<50||E.version.major===50&&E.version.build<2661);this._alwaysSeekKeyframe=!!(n||E.msedge||E.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===Le.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Le.MEDIA_INFO,this.mediaInfo)}):e===Le.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Le.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 Ht(this._config),this._msectl.on(wt.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(wt.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(wt.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(wt.ERROR,t=>{this._emitter.emit(Le.ERROR,$t.MEDIA_ERROR,Ee.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 P("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new P("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 It(this._mediaDataSource,this._config),this._transmuxer.on(K.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(K.MEDIA_SEGMENT,(e,t)=>{if(this._msectl.appendMediaSegment(t),this._config.lazyLoad&&!this._config.isLive){let n=this._mediaElement.currentTime;t.info.endDts>=(n+this._config.lazyLoadMaxDuration)*1e3&&this._progressChecker==null&&(g.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(K.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(Le.LOADING_COMPLETE)}),this._transmuxer.on(K.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(Le.RECOVERED_EARLY_EOF)}),this._transmuxer.on(K.IO_ERROR,(e,t)=>{this._emitter.emit(Le.ERROR,$t.NETWORK_ERROR,e,t)}),this._transmuxer.on(K.DEMUX_ERROR,(e,t)=>{this._emitter.emit(Le.ERROR,$t.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(K.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(Le.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(K.METADATA_ARRIVED,e=>{this._emitter.emit(Le.METADATA_ARRIVED,e)}),this._transmuxer.on(K.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(Le.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(K.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(Le.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(K.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,i=0;if(this._mediaElement.getVideoPlaybackQuality){let r=this._mediaElement.getVideoPlaybackQuality();n=r.totalVideoFrames,i=r.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=i),e}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let e=this._mediaElement.buffered,t=this._mediaElement.currentTime,n=0,i=0;for(let r=0;r=t+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(g.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){g.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let e=this._mediaElement.currentTime,t=this._mediaElement.buffered,n=!1;for(let i=0;i=r&&e=f-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(g.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(e){let t=this._mediaElement.buffered;for(let n=0;n=i&&e0){let r=this._mediaElement.buffered.start(0);(r<1&&e0&&t.currentTime0){let i=n.start(0);if(i<1&&t{this._emitter.emit(Le.MEDIA_INFO,this.mediaInfo)}):e===Le.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Le.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 P("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,i=0;if(this._mediaElement.getVideoPlaybackQuality){let r=this._mediaElement.getVideoPlaybackQuality();n=r.totalVideoFrames,i=r.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(n=this._mediaElement.webkitDecodedFrameCount,i=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=n,e.droppedFrames=i),e}_onvLoadedMetadata(e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(Le.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(Le.STATISTICS_INFO,this.statisticsInfo)}}var Zt=Pt;x.install();function Wt(G,e){let t=G;if(t==null||typeof t!="object")throw new ne("MediaDataSource must be an javascript object!");if(!t.hasOwnProperty("type"))throw new ne("MediaDataSource must has type field to indicate video file type!");switch(t.type){case"flv":return new lt(t,e);default:return new Zt(t,e)}}function Lt(){return pe.supportMSEH264Playback()}function Xt(){return pe.getFeatureList()}let ke={};ke.createPlayer=Wt,ke.isSupported=Lt,ke.getFeatureList=Xt,ke.BaseLoader=me,ke.LoaderStatus=O,ke.LoaderErrors=V,ke.Events=Le,ke.ErrorTypes=$t,ke.ErrorDetails=Ee,ke.FlvPlayer=lt,ke.NativePlayer=Zt,ke.LoggingControl=xe,Object.defineProperty(ke,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Cn=ke},35874:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return d}});var s=o(67294),x=o(91034),T=o(94184),k=o.n(T),A=o(87462),g=o(4942),q=o(97685),te=o(45987),u=o(62709),P=o(71002),ne=o(12060);function W(l,m,R){var h=React.useRef({});return(!("value"in h.current)||R(h.current.condition,m))&&(h.current.value=l(),h.current.condition=m),h.current.value}function O(l,m){typeof l=="function"?l(m):(0,P.Z)(l)==="object"&&l&&"current"in l&&(l.current=m)}function V(){for(var l=arguments.length,m=new Array(l),R=0;R=$.F1&&R<=$.F12)return!1;switch(R){case $.ALT:case $.CAPS_LOCK:case $.CONTEXT_MENU:case $.CTRL:case $.DOWN:case $.END:case $.ESC:case $.HOME:case $.INSERT:case $.LEFT:case $.MAC_FF_META:case $.META:case $.NUMLOCK:case $.NUM_CENTER:case $.PAGE_DOWN:case $.PAGE_UP:case $.PAUSE:case $.PRINT_SCREEN:case $.RIGHT:case $.SHIFT:case $.UP:case $.WIN_KEY:case $.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(m){if(m>=$.ZERO&&m<=$.NINE||m>=$.NUM_ZERO&&m<=$.NUM_MULTIPLY||m>=$.A&&m<=$.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&m===0)return!0;switch(m){case $.SPACE:case $.QUESTION_MARK:case $.NUM_PLUS:case $.NUM_MINUS:case $.NUM_PERIOD:case $.NUM_DIVISION:case $.SEMICOLON:case $.DASH:case $.EQUALS:case $.COMMA:case $.PERIOD:case $.SLASH:case $.APOSTROPHE:case $.SINGLE_QUOTE:case $.OPEN_SQUARE_BRACKET:case $.BACKSLASH:case $.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},E=$,w=function(m){return+setTimeout(m,16)},S=function(m){return clearTimeout(m)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(w=function(m){return window.requestAnimationFrame(m)},S=function(m){return window.cancelAnimationFrame(m)});var L=0,v=new Map;function I(l){v.delete(l)}var Z=function(m){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;L+=1;var h=L;function _(y){if(y===0)I(h),m();else{var a=w(function(){_(y-1)});v.set(h,a)}}return _(R),h};Z.cancel=function(l){var m=v.get(l);return I(m),S(m)};var M=Z,Q=E.ESC,ce=E.TAB;function Ae(l){var m=l.visible,R=l.triggerRef,h=l.onVisibleChange,_=l.autoFocus,y=l.overlayRef,a=s.useRef(!1),j=function(){if(m){var he,fe;(he=R.current)===null||he===void 0||(fe=he.focus)===null||fe===void 0||fe.call(he),h==null||h(!1)}},X=function(){var he;return(he=y.current)!==null&&he!==void 0&&he.focus?(y.current.focus(),a.current=!0,!0):!1},oe=function(he){switch(he.keyCode){case Q:j();break;case ce:{var fe=!1;a.current||(fe=X()),fe?he.preventDefault():j();break}}};s.useEffect(function(){return m?(window.addEventListener("keydown",oe),_&&M(X,3),function(){window.removeEventListener("keydown",oe),a.current=!1}):function(){a.current=!1}},[m])}var De=(0,s.forwardRef)(function(l,m){var R=l.overlay,h=l.arrow,_=l.prefixCls,y=(0,s.useMemo)(function(){var j;return typeof R=="function"?j=R():j=R,j},[R]),a=V(m,y==null?void 0:y.ref);return s.createElement(s.Fragment,null,h&&s.createElement("div",{className:"".concat(_,"-arrow")}),s.cloneElement(y,{ref:re(y)?a:void 0}))}),Pe=De,Te={adjustX:1,adjustY:1},Se=[0,0],Ke={topLeft:{points:["bl","tl"],overflow:Te,offset:[0,-4],targetOffset:Se},top:{points:["bc","tc"],overflow:Te,offset:[0,-4],targetOffset:Se},topRight:{points:["br","tr"],overflow:Te,offset:[0,-4],targetOffset:Se},bottomLeft:{points:["tl","bl"],overflow:Te,offset:[0,4],targetOffset:Se},bottom:{points:["tc","bc"],overflow:Te,offset:[0,4],targetOffset:Se},bottomRight:{points:["tr","br"],overflow:Te,offset:[0,4],targetOffset:Se}},z=Ke,st=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Qe(l,m){var R,h=l.arrow,_=h===void 0?!1:h,y=l.prefixCls,a=y===void 0?"rc-dropdown":y,j=l.transitionName,X=l.animation,oe=l.align,ge=l.placement,he=ge===void 0?"bottomLeft":ge,fe=l.placements,le=fe===void 0?z:fe,je=l.getPopupContainer,Ue=l.showAction,rt=l.hideAction,K=l.overlayClassName,yt=l.overlayStyle,xt=l.visible,Rt=l.trigger,et=Rt===void 0?["hover"]:Rt,mt=l.autoFocus,It=l.overlay,Bt=l.children,wt=l.onVisibleChange,Ot=(0,te.Z)(l,st),Ht=s.useState(),$t=(0,q.Z)(Ht,2),Ee=$t[0],We=$t[1],lt="visible"in l?xt:Ee,Pt=s.useRef(null),Zt=s.useRef(null),Wt=s.useRef(null);s.useImperativeHandle(m,function(){return Pt.current});var Lt=function(r){We(r),wt==null||wt(r)};Ae({visible:lt,triggerRef:Wt,onVisibleChange:Lt,autoFocus:mt,overlayRef:Zt});var Xt=function(r){var f=l.onOverlayClick;We(!1),f&&f(r)},ke=function(){return s.createElement(Pe,{ref:Zt,overlay:It,prefixCls:a,arrow:_})},Cn=function(){return typeof It=="function"?ke:ke()},G=function(){var r=l.minOverlayWidthMatchTrigger,f=l.alignPoint;return"minOverlayWidthMatchTrigger"in l?r:!f},e=function(){var r=l.openClassName;return r!==void 0?r:"".concat(a,"-open")},t=s.cloneElement(Bt,{className:k()((R=Bt.props)===null||R===void 0?void 0:R.className,lt&&e()),ref:re(Bt)?V(Wt,Bt.ref):void 0}),n=rt;return!n&&et.indexOf("contextMenu")!==-1&&(n=["click"]),s.createElement(u.Z,(0,A.Z)({builtinPlacements:le},Ot,{prefixCls:a,ref:Pt,popupClassName:k()(K,(0,g.Z)({},"".concat(a,"-show-arrow"),_)),popupStyle:yt,action:et,showAction:Ue,hideAction:n,popupPlacement:he,popupAlign:oe,popupTransitionName:j,popupAnimation:X,popupVisible:lt,stretch:G()?"minWidth":"",popup:Cn(),onPopupVisibleChange:Lt,onPopupClick:Xt,getPopupContainer:je}),t)}var Ie=s.forwardRef(Qe),pe=Ie,Me=o(60276),Le=o(5663),_e=o(10366),xe=o(80636),Ct=o(8745),Je=o(96159),ft=o(53124),vt=o(68508),at=o(76529),it=o(46605),ot=o(66748);const kt=null,qe=l=>{const{menu:m,arrow:R,prefixCls:h,children:_,trigger:y,disabled:a,dropdownRender:j,getPopupContainer:X,overlayClassName:oe,rootClassName:ge,open:he,onOpenChange:fe,visible:le,onVisibleChange:je,mouseEnterDelay:Ue=.15,mouseLeaveDelay:rt=.1,autoAdjustOverflow:K=!0,placement:yt="",overlay:xt,transitionName:Rt}=l,{getPopupContainer:et,getPrefixCls:mt,direction:It}=s.useContext(ft.E_),Bt=s.useMemo(()=>{const t=mt();return Rt!==void 0?Rt:yt.includes("top")?`${t}-slide-down`:`${t}-slide-up`},[mt,yt,Rt]),wt=s.useMemo(()=>yt?yt.includes("Center")?yt.slice(0,yt.indexOf("Center")):yt:It==="rtl"?"bottomRight":"bottomLeft",[yt,It]),Ot=mt("dropdown",h),[Ht,$t]=(0,ot.Z)(Ot),[,Ee]=(0,it.Z)(),We=s.Children.only(_),lt=(0,Je.Tm)(We,{className:k()(`${Ot}-trigger`,{[`${Ot}-rtl`]:It==="rtl"},We.props.className),disabled:a}),Pt=a?[]:y;let Zt;Pt&&Pt.includes("contextMenu")&&(Zt=!0);const[Wt,Lt]=(0,Le.Z)(!1,{value:he!=null?he:le}),Xt=(0,Me.useEvent)(t=>{fe==null||fe(t),je==null||je(t),Lt(t)}),ke=k()(oe,ge,$t,{[`${Ot}-rtl`]:It==="rtl"}),Cn=(0,xe.Z)({arrowPointAtCenter:typeof R=="object"&&R.pointAtCenter,autoAdjustOverflow:K,offset:Ee.marginXXS,arrowWidth:R?Ee.sizePopupArrow:0,borderRadius:Ee.borderRadius}),G=s.useCallback(()=>{Lt(!1)},[]),e=()=>{let t;return m!=null&&m.items?t=s.createElement(vt.default,Object.assign({},m)):typeof xt=="function"?t=xt():t=xt,j&&(t=j(t)),t=s.Children.only(typeof t=="string"?s.createElement("span",null,t):t),s.createElement(at.J,{prefixCls:`${Ot}-menu`,expandIcon:s.createElement("span",{className:`${Ot}-menu-submenu-arrow`},s.createElement(x.Z,{className:`${Ot}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:G,validator:n=>{let{mode:i}=n}},t)};return Ht(s.createElement(pe,Object.assign({alignPoint:Zt},(0,_e.Z)(l,["rootClassName"]),{mouseEnterDelay:Ue,mouseLeaveDelay:rt,visible:Wt,builtinPlacements:Cn,arrow:!!R,overlayClassName:ke,prefixCls:Ot,getPopupContainer:X||et,transitionName:Bt,trigger:Pt,overlay:e,placement:wt,onVisibleChange:Xt}),lt))};function Re(l){return Object.assign(Object.assign({},l),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const N=(0,Ct.Z)(qe,"dropdown",l=>l,Re),c=l=>s.createElement(N,Object.assign({},l),s.createElement("span",null));qe._InternalPanelDoNotUseOrYouWillBeFired=c;var d=qe},85418:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return me}});var s=o(35874),x=o(94184),T=o.n(x),k=o(67294),A=o(25877),g=o(71577),q=o(53124),te=o(93421),u=o(4173),P=o(66748),ne=function(re,$){var E={};for(var w in re)Object.prototype.hasOwnProperty.call(re,w)&&$.indexOf(w)<0&&(E[w]=re[w]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,w=Object.getOwnPropertySymbols(re);S{const{getPopupContainer:$,getPrefixCls:E,direction:w}=k.useContext(q.E_),{prefixCls:S,type:L="default",danger:v,disabled:I,loading:Z,onClick:M,htmlType:Q,children:ce,className:Ae,menu:De,arrow:Pe,autoFocus:Te,overlay:Se,trigger:Ke,align:z,open:st,onOpenChange:Qe,placement:Ie,getPopupContainer:pe,href:Me,icon:Le=k.createElement(A.Z,null),title:_e,buttonsRender:xe=a=>a,mouseEnterDelay:Ct,mouseLeaveDelay:Je,overlayClassName:ft,overlayStyle:vt,destroyPopupOnHide:at,dropdownRender:it}=re,ot=ne(re,["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"]),kt=E("dropdown",S),qe=`${kt}-button`,[Re,N]=(0,P.Z)(kt),c={menu:De,arrow:Pe,autoFocus:Te,align:z,disabled:I,trigger:I?[]:Ke,onOpenChange:Qe,getPopupContainer:pe||$,mouseEnterDelay:Ct,mouseLeaveDelay:Je,overlayClassName:ft,overlayStyle:vt,destroyPopupOnHide:at,dropdownRender:it},{compactSize:d,compactItemClassnames:l}=(0,u.ri)(kt,w),m=T()(qe,l,Ae,N);"overlay"in re&&(c.overlay=Se),"open"in re&&(c.open=st),"placement"in re?c.placement=Ie:c.placement=w==="rtl"?"bottomLeft":"bottomRight";const R=k.createElement(g.ZP,{type:L,danger:v,disabled:I,loading:Z,onClick:M,htmlType:Q,href:Me,title:_e},ce),h=k.createElement(g.ZP,{type:L,danger:v,icon:Le}),[_,y]=xe([R,h]);return Re(k.createElement(te.Z.Compact,Object.assign({className:m,size:d,block:!0},ot),_,k.createElement(s.Z,Object.assign({},c),y)))};W.__ANT_BUTTON=!0;var O=W;const V=s.Z;V.Button=O;var me=V},66748:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return ne}});var s=o(14747),x=o(67771),T=o(33297),k=o(50438),A=o(97414),g=o(67968),q=o(45503),u=W=>{const{componentCls:O,menuCls:V,colorError:me,colorTextLightSolid:re}=W,$=`${V}-item`;return{[`${O}, ${O}-menu-submenu`]:{[`${V} ${$}`]:{[`&${$}-danger:not(${$}-disabled)`]:{color:me,"&:hover":{color:re,backgroundColor:me}}}}}};const P=W=>{const{componentCls:O,menuCls:V,zIndexPopup:me,dropdownArrowDistance:re,sizePopupArrow:$,antCls:E,iconCls:w,motionDurationMid:S,dropdownPaddingVertical:L,fontSize:v,dropdownEdgeChildPadding:I,colorTextDisabled:Z,fontSizeIcon:M,controlPaddingHorizontal:Q,colorBgElevated:ce}=W;return[{[O]:Object.assign(Object.assign({},(0,s.Wf)(W)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:me,display:"block","&::before":{position:"absolute",insetBlock:-re+$/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${E}-btn`]:{[`& > ${w}-down, & > ${E}-btn-icon > ${w}-down`]:{fontSize:M}},[`${O}-wrap`]:{position:"relative",[`${E}-btn > ${w}-down`]:{fontSize:M},[`${w}-down::before`]:{transition:`transform ${S}`}},[`${O}-wrap-open`]:{[`${w}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${E}-slide-down-enter${E}-slide-down-enter-active${O}-placement-bottomLeft, &${E}-slide-down-appear${E}-slide-down-appear-active${O}-placement-bottomLeft, &${E}-slide-down-enter${E}-slide-down-enter-active${O}-placement-bottom, &${E}-slide-down-appear${E}-slide-down-appear-active${O}-placement-bottom, &${E}-slide-down-enter${E}-slide-down-enter-active${O}-placement-bottomRight, &${E}-slide-down-appear${E}-slide-down-appear-active${O}-placement-bottomRight`]:{animationName:x.fJ},[`&${E}-slide-up-enter${E}-slide-up-enter-active${O}-placement-topLeft, &${E}-slide-up-appear${E}-slide-up-appear-active${O}-placement-topLeft, &${E}-slide-up-enter${E}-slide-up-enter-active${O}-placement-top, &${E}-slide-up-appear${E}-slide-up-appear-active${O}-placement-top, &${E}-slide-up-enter${E}-slide-up-enter-active${O}-placement-topRight, &${E}-slide-up-appear${E}-slide-up-appear-active${O}-placement-topRight`]:{animationName:x.Qt},[`&${E}-slide-down-leave${E}-slide-down-leave-active${O}-placement-bottomLeft, &${E}-slide-down-leave${E}-slide-down-leave-active${O}-placement-bottom, &${E}-slide-down-leave${E}-slide-down-leave-active${O}-placement-bottomRight`]:{animationName:x.Uw},[`&${E}-slide-up-leave${E}-slide-up-leave-active${O}-placement-topLeft, &${E}-slide-up-leave${E}-slide-up-leave-active${O}-placement-top, &${E}-slide-up-leave${E}-slide-up-leave-active${O}-placement-topRight`]:{animationName:x.ly}})},(0,A.ZP)(W,{colorBg:ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${O} ${V}`]:{position:"relative",margin:0},[`${V}-submenu-popup`]:{position:"absolute",zIndex:me,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${O}, ${O}-menu-submenu`]:{[V]:Object.assign(Object.assign({padding:I,listStyleType:"none",backgroundColor:ce,backgroundClip:"padding-box",borderRadius:W.borderRadiusLG,outline:"none",boxShadow:W.boxShadowSecondary},(0,s.Qy)(W)),{[`${V}-item-group-title`]:{padding:`${L}px ${Q}px`,color:W.colorTextDescription,transition:`all ${S}`},[`${V}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${V}-item-icon`]:{minWidth:v,marginInlineEnd:W.marginXS,fontSize:W.fontSizeSM},[`${V}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${S}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${V}-item, ${V}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${L}px ${Q}px`,color:W.colorText,fontWeight:"normal",fontSize:v,lineHeight:W.lineHeight,cursor:"pointer",transition:`all ${S}`,borderRadius:W.borderRadiusSM,"&:hover, &-active":{backgroundColor:W.controlItemBgHover}},(0,s.Qy)(W)),{"&-selected":{color:W.colorPrimary,backgroundColor:W.controlItemBgActive,"&:hover, &-active":{backgroundColor:W.controlItemBgActiveHover}},"&-disabled":{color:Z,cursor:"not-allowed","&:hover":{color:Z,backgroundColor:ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${W.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:W.colorSplit},[`${O}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:W.paddingXS,[`${O}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:W.colorTextDescription,fontSize:M,fontStyle:"normal"}}}),[`${V}-item-group-list`]:{margin:`0 ${W.marginXS}px`,padding:0,listStyle:"none"},[`${V}-submenu-title`]:{paddingInlineEnd:Q+W.fontSizeSM},[`${V}-submenu-vertical`]:{position:"relative"},[`${V}-submenu${V}-submenu-disabled ${O}-menu-submenu-title`]:{[`&, ${O}-menu-submenu-arrow-icon`]:{color:Z,backgroundColor:ce,cursor:"not-allowed"}},[`${V}-submenu-selected ${O}-menu-submenu-title`]:{color:W.colorPrimary}})}},[(0,x.oN)(W,"slide-up"),(0,x.oN)(W,"slide-down"),(0,T.Fm)(W,"move-up"),(0,T.Fm)(W,"move-down"),(0,k._y)(W,"zoom-big")]]};var ne=(0,g.Z)("Dropdown",(W,O)=>{let{rootPrefixCls:V}=O;const{marginXXS:me,sizePopupArrow:re,controlHeight:$,fontSize:E,lineHeight:w,paddingXXS:S,componentCls:L,borderRadiusLG:v}=W,I=($-E*w)/2,{dropdownArrowOffset:Z}=(0,A.fS)({contentRadius:v}),M=(0,q.TS)(W,{menuCls:`${L}-menu`,rootPrefixCls:V,dropdownArrowDistance:re/2+me,dropdownArrowOffset:Z,dropdownPaddingVertical:I,dropdownEdgeChildPadding:S});return[P(M),u(M)]},W=>({zIndexPopup:W.zIndexPopupBase+50}))},71322:function(Ye,ae,o){"use strict";o.d(ae,{D:function(){return w},Z:function(){return v}});var s=o(87462),x=o(67294),T={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"},k=T,A=o(74643),g=function(Z,M){return x.createElement(A.Z,(0,s.Z)({},Z,{ref:M,icon:k}))},q=x.forwardRef(g),te=o(22751),u=o(91034),P=o(94184),ne=o.n(P),W=o(10366),V=I=>!isNaN(parseFloat(I))&&isFinite(I),me=o(53124),re=o(84321),$=function(I,Z){var M={};for(var Q in I)Object.prototype.hasOwnProperty.call(I,Q)&&Z.indexOf(Q)<0&&(M[Q]=I[Q]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,Q=Object.getOwnPropertySymbols(I);ce{let I=0;return function(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return I+=1,`${Z}${I}`}})();var v=x.forwardRef((I,Z)=>{const{prefixCls:M,className:Q,trigger:ce,children:Ae,defaultCollapsed:De=!1,theme:Pe="dark",style:Te={},collapsible:Se=!1,reverseArrow:Ke=!1,width:z=200,collapsedWidth:st=80,zeroWidthTriggerStyle:Qe,breakpoint:Ie,onCollapse:pe,onBreakpoint:Me}=I,Le=$(I,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:_e}=(0,x.useContext)(re.Gs),[xe,Ct]=(0,x.useState)("collapsed"in I?I.collapsed:De),[Je,ft]=(0,x.useState)(!1);(0,x.useEffect)(()=>{"collapsed"in I&&Ct(I.collapsed)},[I.collapsed]);const vt=(Re,N)=>{"collapsed"in I||Ct(Re),pe==null||pe(Re,N)},at=(0,x.useRef)();at.current=Re=>{ft(Re.matches),Me==null||Me(Re.matches),xe!==Re.matches&&vt(Re.matches,"responsive")},(0,x.useEffect)(()=>{function Re(c){return at.current(c)}let N;if(typeof window!="undefined"){const{matchMedia:c}=window;if(c&&Ie&&Ie in E){N=c(`(max-width: ${E[Ie]})`);try{N.addEventListener("change",Re)}catch(d){N.addListener(Re)}Re(N)}}return()=>{try{N==null||N.removeEventListener("change",Re)}catch(c){N==null||N.removeListener(Re)}}},[Ie]),(0,x.useEffect)(()=>{const Re=S("ant-sider-");return _e.addSider(Re),()=>_e.removeSider(Re)},[]);const it=()=>{vt(!xe,"clickTrigger")},{getPrefixCls:ot}=(0,x.useContext)(me.E_),kt=()=>{const Re=ot("layout-sider",M),N=(0,W.Z)(Le,["collapsed"]),c=xe?st:z,d=V(c)?`${c}px`:String(c),l=parseFloat(String(st||0))===0?x.createElement("span",{onClick:it,className:ne()(`${Re}-zero-width-trigger`,`${Re}-zero-width-trigger-${Ke?"right":"left"}`),style:Qe},ce||x.createElement(q,null)):null,h={expanded:Ke?x.createElement(u.Z,null):x.createElement(te.Z,null),collapsed:Ke?x.createElement(te.Z,null):x.createElement(u.Z,null)}[xe?"collapsed":"expanded"],_=ce!==null?l||x.createElement("div",{className:`${Re}-trigger`,onClick:it,style:{width:d}},ce||h):null,y=Object.assign(Object.assign({},Te),{flex:`0 0 ${d}`,maxWidth:d,minWidth:d,width:d}),a=ne()(Re,`${Re}-${Pe}`,{[`${Re}-collapsed`]:!!xe,[`${Re}-has-trigger`]:Se&&ce!==null&&!l,[`${Re}-below`]:!!Je,[`${Re}-zero-width`]:parseFloat(d)===0},Q);return x.createElement("aside",Object.assign({className:a},N,{style:y,ref:Z}),x.createElement("div",{className:`${Re}-children`},Ae),Se||Je&&l?_:null)},qe=x.useMemo(()=>({siderCollapsed:xe}),[xe]);return x.createElement(w.Provider,{value:qe},kt())})},84321:function(Ye,ae,o){"use strict";o.d(ae,{VY:function(){return S},$_:function(){return w},h4:function(){return E},Gs:function(){return O},ZP:function(){return L}});var s=o(74902),x=o(94184),T=o.n(x),k=o(10366),A=o(67294),g=o(53124),q=o(67968),u=v=>{const{componentCls:I,bodyBg:Z,lightSiderBg:M,lightTriggerBg:Q,lightTriggerColor:ce}=v;return{[`${I}-sider-light`]:{background:M,[`${I}-sider-trigger`]:{color:ce,background:Q},[`${I}-sider-zero-width-trigger`]:{color:ce,background:Q,border:`1px solid ${Z}`,borderInlineStart:0}}}};const P=v=>{const{antCls:I,componentCls:Z,colorText:M,triggerColor:Q,footerBg:ce,triggerBg:Ae,headerHeight:De,headerPadding:Pe,headerColor:Te,footerPadding:Se,triggerHeight:Ke,zeroTriggerHeight:z,zeroTriggerWidth:st,motionDurationMid:Qe,motionDurationSlow:Ie,fontSize:pe,borderRadius:Me,bodyBg:Le,headerBg:_e,siderBg:xe}=v;return{[Z]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Le,"&, *":{boxSizing:"border-box"},[`&${Z}-has-sider`]:{flexDirection:"row",[`> ${Z}, > ${Z}-content`]:{width:0}},[`${Z}-header, &${Z}-footer`]:{flex:"0 0 auto"},[`${Z}-sider`]:{position:"relative",minWidth:0,background:xe,transition:`all ${Qe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${I}-menu${I}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ke},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ke,color:Q,lineHeight:`${Ke}px`,textAlign:"center",background:Ae,cursor:"pointer",transition:`all ${Qe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:De,insetInlineEnd:-st,zIndex:1,width:st,height:z,color:Q,fontSize:v.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:xe,borderStartStartRadius:0,borderStartEndRadius:Me,borderEndEndRadius:Me,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ie} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ie}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-st,borderStartStartRadius:Me,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Me}}}}},u(v)),{"&-rtl":{direction:"rtl"}}),[`${Z}-header`]:{height:De,padding:Pe,color:Te,lineHeight:`${De}px`,background:_e,[`${I}-menu`]:{lineHeight:"inherit"}},[`${Z}-footer`]:{padding:Se,color:M,fontSize:pe,background:ce},[`${Z}-content`]:{flex:"auto",minHeight:0}}};var ne=(0,q.Z)("Layout",v=>[P(v)],v=>{const{colorBgLayout:I,controlHeight:Z,controlHeightLG:M,colorText:Q,controlHeightSM:ce,marginXXS:Ae,colorTextLightSolid:De,colorBgContainer:Pe}=v,Te=M*1.25;return{colorBgHeader:"#001529",colorBgBody:I,colorBgTrigger:"#002140",bodyBg:I,headerBg:"#001529",headerHeight:Z*2,headerPadding:`0 ${Te}px`,headerColor:Q,footerPadding:`${ce}px ${Te}px`,footerBg:I,siderBg:"#001529",triggerHeight:M+Ae*2,triggerBg:"#002140",triggerColor:De,zeroTriggerWidth:M,zeroTriggerHeight:M,lightSiderBg:Pe,lightTriggerBg:Pe,lightTriggerColor:Q}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),W=function(v,I){var Z={};for(var M in v)Object.prototype.hasOwnProperty.call(v,M)&&I.indexOf(M)<0&&(Z[M]=v[M]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,M=Object.getOwnPropertySymbols(v);Qnull,removeSider:()=>null}});function V(v){let{suffixCls:I,tagName:Z,displayName:M}=v;return Q=>A.forwardRef((Ae,De)=>A.createElement(Q,Object.assign({ref:De,suffixCls:I,tagName:Z},Ae)))}const me=A.forwardRef((v,I)=>{const{prefixCls:Z,suffixCls:M,className:Q,tagName:ce}=v,Ae=W(v,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:De}=A.useContext(g.E_),Pe=De("layout",Z),[Te,Se]=ne(Pe),Ke=M?`${Pe}-${M}`:Pe;return Te(A.createElement(ce,Object.assign({className:T()(Z||Ke,Q,Se),ref:I},Ae)))}),re=A.forwardRef((v,I)=>{const{direction:Z}=A.useContext(g.E_),[M,Q]=A.useState([]),{prefixCls:ce,className:Ae,rootClassName:De,children:Pe,hasSider:Te,tagName:Se,style:Ke}=v,z=W(v,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),st=(0,k.Z)(z,["suffixCls"]),{getPrefixCls:Qe,layout:Ie}=A.useContext(g.E_),pe=Qe("layout",ce),[Me,Le]=ne(pe),_e=T()(pe,{[`${pe}-has-sider`]:typeof Te=="boolean"?Te:M.length>0,[`${pe}-rtl`]:Z==="rtl"},Ie==null?void 0:Ie.className,Ae,De,Le),xe=A.useMemo(()=>({siderHook:{addSider:Ct=>{Q(Je=>[].concat((0,s.Z)(Je),[Ct]))},removeSider:Ct=>{Q(Je=>Je.filter(ft=>ft!==Ct))}}}),[]);return Me(A.createElement(O.Provider,{value:xe},A.createElement(Se,Object.assign({ref:I,className:_e,style:Object.assign(Object.assign({},Ie==null?void 0:Ie.style),Ke)},st),Pe)))}),$=V({tagName:"div",displayName:"Layout"})(re),E=V({suffixCls:"header",tagName:"header",displayName:"Header"})(me),w=V({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(me),S=V({suffixCls:"content",tagName:"main",displayName:"Content"})(me);var L=$},76529:function(Ye,ae,o){"use strict";o.d(ae,{J:function(){return g}});var s=o(67294),x=o(4173),T=o(60276),k=function(q,te){var u={};for(var P in q)Object.prototype.hasOwnProperty.call(q,P)&&te.indexOf(P)<0&&(u[P]=q[P]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,P=Object.getOwnPropertySymbols(q);ne{const{children:u}=q,P=k(q,["children"]),ne=s.useContext(A),W=s.useMemo(()=>Object.assign(Object.assign({},ne),P),[ne,P.prefixCls,P.mode,P.selectable]);return s.createElement(A.Provider,{value:W},s.createElement(x.BR,null,(0,T.supportNodeRef)(u)?s.cloneElement(u,{ref:te}):u))});ae.Z=A},68508:function(Ye,ae,o){"use strict";o.d(ae,{default:function(){return Re}});var s=o(78595),x=o(67294),T=o(71322),k=o(94184),A=o.n(k),g=o(53124),q=function(N,c){var d={};for(var l in N)Object.prototype.hasOwnProperty.call(N,l)&&c.indexOf(l)<0&&(d[l]=N[l]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,l=Object.getOwnPropertySymbols(N);m{const{prefixCls:c,className:d,dashed:l}=N,m=q(N,["prefixCls","className","dashed"]),{getPrefixCls:R}=x.useContext(g.E_),h=R("menu",c),_=A()({[`${h}-item-divider-dashed`]:!!l},d);return x.createElement(s.iz,Object.assign({className:_},m))},P=o(37419),ne=o(10366),W=o(83062),O=o(96159),me=(0,x.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),$=N=>{var c;const{className:d,children:l,icon:m,title:R,danger:h}=N,{prefixCls:_,firstLevel:y,direction:a,disableMenuItemTitleTooltip:j,inlineCollapsed:X}=x.useContext(me),oe=Ue=>{const rt=x.createElement("span",{className:`${_}-title-content`},l);return(!m||(0,O.l$)(l)&&l.type==="span")&&l&&Ue&&y&&typeof l=="string"?x.createElement("div",{className:`${_}-inline-collapsed-noicon`},l.charAt(0)):rt},{siderCollapsed:ge}=x.useContext(T.D);let he=R;typeof R=="undefined"?he=y?l:"":R===!1&&(he="");const fe={title:he};!ge&&!X&&(fe.title=null,fe.open=!1);const le=(0,P.Z)(l).length;let je=x.createElement(s.ck,Object.assign({},(0,ne.Z)(N,["title","icon","danger"]),{className:A()({[`${_}-item-danger`]:h,[`${_}-item-only-child`]:(m?le+1:le)===1},d),title:typeof R=="string"?R:void 0}),(0,O.Tm)(m,{className:A()((0,O.l$)(m)?(c=m.props)===null||c===void 0?void 0:c.className:"",`${_}-item-icon`)}),oe(X));return j||(je=x.createElement(W.Z,Object.assign({},fe,{placement:a==="rtl"?"left":"right",overlayClassName:`${_}-inline-collapsed-tooltip`}),je)),je},w=N=>{var c;const{popupClassName:d,icon:l,title:m,theme:R}=N,h=x.useContext(me),{prefixCls:_,inlineCollapsed:y,theme:a}=h,j=(0,s.Xl)();let X;if(!l)X=y&&!j.length&&m&&typeof m=="string"?x.createElement("div",{className:`${_}-inline-collapsed-noicon`},m.charAt(0)):x.createElement("span",{className:`${_}-title-content`},m);else{const ge=(0,O.l$)(m)&&m.type==="span";X=x.createElement(x.Fragment,null,(0,O.Tm)(l,{className:A()((0,O.l$)(l)?(c=l.props)===null||c===void 0?void 0:c.className:"",`${_}-item-icon`)}),ge?m:x.createElement("span",{className:`${_}-title-content`},m))}const oe=x.useMemo(()=>Object.assign(Object.assign({},h),{firstLevel:!1}),[h]);return x.createElement(me.Provider,{value:oe},x.createElement(s.Wd,Object.assign({},(0,ne.Z)(N,["icon"]),{title:X,popupClassName:A()(_,d,`${_}-${R||a}`)})))},S=o(25877),L=o(60276),v=o(33603),I=o(76529),Z=function(N,c){var d={};for(var l in N)Object.prototype.hasOwnProperty.call(N,l)&&c.indexOf(l)<0&&(d[l]=N[l]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,l=Object.getOwnPropertySymbols(N);m{if(c&&typeof c=="object"){const l=c,{label:m,children:R,key:h,type:_}=l,y=Z(l,["label","children","key","type"]),a=h!=null?h:`tmp-${d}`;return R||_==="group"?_==="group"?x.createElement(s.BW,Object.assign({key:a},y,{title:m}),M(R)):x.createElement(w,Object.assign({key:a},y,{title:m}),M(R)):_==="divider"?x.createElement(u,Object.assign({key:a},y)):x.createElement($,Object.assign({key:a},y),m)}return null}).filter(c=>c)}function Q(N){return x.useMemo(()=>N&&M(N),[N])}var ce=o(84780),Ae=o(14747),De=o(33507),Pe=o(67771),Te=o(50438),Se=o(67968),Ke=o(45503),st=N=>{const{componentCls:c,motionDurationSlow:d,horizontalLineHeight:l,colorSplit:m,lineWidth:R,lineType:h,itemPaddingInline:_}=N;return{[`${c}-horizontal`]:{lineHeight:l,border:0,borderBottom:`${R}px ${h} ${m}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${c}-item, ${c}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:_},[`> ${c}-item:hover, > ${c}-item-active, > ${c}-submenu ${c}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${c}-item, ${c}-submenu-title`]:{transition:[`border-color ${d}`,`background ${d}`].join(",")},[`${c}-submenu-arrow`]:{display:"none"}}}},Ie=N=>{let{componentCls:c,menuArrowOffset:d}=N;return{[`${c}-rtl`]:{direction:"rtl"},[`${c}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${c}-rtl${c}-vertical, ${c}-submenu-rtl ${c}-vertical`]:{[`${c}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${d})`},"&::after":{transform:`rotate(45deg) translateY(${d})`}}}}};const pe=N=>Object.assign({},(0,Ae.oN)(N));var Le=(N,c)=>{const{componentCls:d,itemColor:l,itemSelectedColor:m,groupTitleColor:R,itemBg:h,subMenuItemBg:_,itemSelectedBg:y,activeBarHeight:a,activeBarWidth:j,activeBarBorderWidth:X,motionDurationSlow:oe,motionEaseInOut:ge,motionEaseOut:he,itemPaddingInline:fe,motionDurationMid:le,itemHoverColor:je,lineType:Ue,colorSplit:rt,itemDisabledColor:K,dangerItemColor:yt,dangerItemHoverColor:xt,dangerItemSelectedColor:Rt,dangerItemActiveBg:et,dangerItemSelectedBg:mt,itemHoverBg:It,itemActiveBg:Bt,menuSubMenuBg:wt,horizontalItemSelectedColor:Ot,horizontalItemSelectedBg:Ht,horizontalItemBorderRadius:$t,horizontalItemHoverBg:Ee,popupBg:We}=N;return{[`${d}-${c}, ${d}-${c} > ${d}`]:{color:l,background:h,[`&${d}-root:focus-visible`]:Object.assign({},pe(N)),[`${d}-item-group-title`]:{color:R},[`${d}-submenu-selected`]:{[`> ${d}-submenu-title`]:{color:m}},[`${d}-item-disabled, ${d}-submenu-disabled`]:{color:`${K} !important`},[`${d}-item:not(${d}-item-selected):not(${d}-submenu-selected)`]:{[`&:hover, > ${d}-submenu-title:hover`]:{color:je}},[`&:not(${d}-horizontal)`]:{[`${d}-item:not(${d}-item-selected)`]:{"&:hover":{backgroundColor:It},"&:active":{backgroundColor:Bt}},[`${d}-submenu-title`]:{"&:hover":{backgroundColor:It},"&:active":{backgroundColor:Bt}}},[`${d}-item-danger`]:{color:yt,[`&${d}-item:hover`]:{[`&:not(${d}-item-selected):not(${d}-submenu-selected)`]:{color:xt}},[`&${d}-item:active`]:{background:et}},[`${d}-item a`]:{"&, &:hover":{color:"inherit"}},[`${d}-item-selected`]:{color:m,[`&${d}-item-danger`]:{color:Rt},"a, a:hover":{color:"inherit"}},[`& ${d}-item-selected`]:{backgroundColor:y,[`&${d}-item-danger`]:{backgroundColor:mt}},[`${d}-item, ${d}-submenu-title`]:{[`&:not(${d}-item-disabled):focus-visible`]:Object.assign({},pe(N))},[`&${d}-submenu > ${d}`]:{backgroundColor:wt},[`&${d}-popup > ${d}`]:{backgroundColor:We},[`&${d}-horizontal`]:Object.assign(Object.assign({},c==="dark"?{borderBottom:0}:{}),{[`> ${d}-item, > ${d}-submenu`]:{top:X,marginTop:-X,marginBottom:0,borderRadius:$t,"&::after":{position:"absolute",insetInline:fe,bottom:0,borderBottom:`${a}px solid transparent`,transition:`border-color ${oe} ${ge}`,content:'""'},"&:hover, &-active, &-open":{background:Ee,"&::after":{borderBottomWidth:a,borderBottomColor:Ot}},"&-selected":{color:Ot,backgroundColor:Ht,"&:hover":{backgroundColor:Ht},"&::after":{borderBottomWidth:a,borderBottomColor:Ot}}}}),[`&${d}-root`]:{[`&${d}-inline, &${d}-vertical`]:{borderInlineEnd:`${X}px ${Ue} ${rt}`}},[`&${d}-inline`]:{[`${d}-sub${d}-inline`]:{background:_},[`${d}-item, ${d}-submenu-title`]:X&&j?{width:`calc(100% + ${X}px)`}:{},[`${d}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${j}px solid ${m}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${le} ${he}`,`opacity ${le} ${he}`].join(","),content:'""'},[`&${d}-item-danger`]:{"&::after":{borderInlineEndColor:Rt}}},[`${d}-selected, ${d}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${le} ${ge}`,`opacity ${le} ${ge}`].join(",")}}}}}};const _e=N=>{const{componentCls:c,itemHeight:d,itemMarginInline:l,padding:m,menuArrowSize:R,marginXS:h,itemMarginBlock:_}=N,y=m+R+h;return{[`${c}-item`]:{position:"relative",overflow:"hidden"},[`${c}-item, ${c}-submenu-title`]:{height:d,lineHeight:`${d}px`,paddingInline:m,overflow:"hidden",textOverflow:"ellipsis",marginInline:l,marginBlock:_,width:`calc(100% - ${l*2}px)`},[`> ${c}-item, > ${c}-submenu > ${c}-submenu-title`]:{height:d,lineHeight:`${d}px`},[`${c}-item-group-list ${c}-submenu-title, ${c}-submenu-title`]:{paddingInlineEnd:y}}};var Ct=N=>{const{componentCls:c,iconCls:d,itemHeight:l,colorTextLightSolid:m,dropdownWidth:R,controlHeightLG:h,motionDurationMid:_,motionEaseOut:y,paddingXL:a,itemMarginInline:j,fontSizeLG:X,motionDurationSlow:oe,paddingXS:ge,boxShadowSecondary:he,collapsedWidth:fe,collapsedIconSize:le}=N,je={height:l,lineHeight:`${l}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[c]:{"&-inline, &-vertical":Object.assign({[`&${c}-root`]:{boxShadow:"none"}},_e(N))},[`${c}-submenu-popup`]:{[`${c}-vertical`]:Object.assign(Object.assign({},_e(N)),{boxShadow:he})}},{[`${c}-submenu-popup ${c}-vertical${c}-sub`]:{minWidth:R,maxHeight:`calc(100vh - ${h*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${c}-inline`]:{width:"100%",[`&${c}-root`]:{[`${c}-item, ${c}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${oe}`,`background ${oe}`,`padding ${_} ${y}`].join(","),[`> ${c}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${c}-sub${c}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${c}-submenu > ${c}-submenu-title`]:je,[`& ${c}-item-group-title`]:{paddingInlineStart:a}},[`${c}-item`]:je}},{[`${c}-inline-collapsed`]:{width:fe,[`&${c}-root`]:{[`${c}-item, ${c}-submenu ${c}-submenu-title`]:{[`> ${c}-inline-collapsed-noicon`]:{fontSize:X,textAlign:"center"}}},[`> ${c}-item, > ${c}-item-group > ${c}-item-group-list > ${c}-item, > ${c}-item-group > ${c}-item-group-list > ${c}-submenu > ${c}-submenu-title, > ${c}-submenu > ${c}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${X/2}px - ${j}px)`,textOverflow:"clip",[` ${c}-submenu-arrow, ${c}-submenu-expand-icon `]:{opacity:0},[`${c}-item-icon, ${d}`]:{margin:0,fontSize:le,lineHeight:`${l}px`,"+ span":{display:"inline-block",opacity:0}}},[`${c}-item-icon, ${d}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${c}-item-icon, ${d}`]:{display:"none"},"a, a:hover":{color:m}},[`${c}-item-group-title`]:Object.assign(Object.assign({},Ae.vS),{paddingInline:ge})}}]};const Je=N=>{const{componentCls:c,motionDurationSlow:d,motionDurationMid:l,motionEaseInOut:m,motionEaseOut:R,iconCls:h,iconSize:_,iconMarginInlineEnd:y}=N;return{[`${c}-item, ${c}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${d}`,`background ${d}`,`padding ${d} ${m}`].join(","),[`${c}-item-icon, ${h}`]:{minWidth:_,fontSize:_,transition:[`font-size ${l} ${R}`,`margin ${d} ${m}`,`color ${d}`].join(","),"+ span":{marginInlineStart:y,opacity:1,transition:[`opacity ${d} ${m}`,`margin ${d}`,`color ${d}`].join(",")}},[`${c}-item-icon`]:Object.assign({},(0,Ae.Ro)()),[`&${c}-item-only-child`]:{[`> ${h}, > ${c}-item-icon`]:{marginInlineEnd:0}}},[`${c}-item-disabled, ${c}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${c}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ft=N=>{const{componentCls:c,motionDurationSlow:d,motionEaseInOut:l,borderRadius:m,menuArrowSize:R,menuArrowOffset:h}=N;return{[`${c}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:N.margin,width:R,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${d} ${l}, opacity ${d}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:R*.6,height:R*.15,backgroundColor:"currentcolor",borderRadius:m,transition:[`background ${d} ${l}`,`transform ${d} ${l}`,`top ${d} ${l}`,`color ${d} ${l}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${h})`},"&::after":{transform:`rotate(-45deg) translateY(${h})`}}}}},vt=N=>{const{antCls:c,componentCls:d,fontSize:l,motionDurationSlow:m,motionDurationMid:R,motionEaseInOut:h,paddingXS:_,padding:y,colorSplit:a,lineWidth:j,zIndexPopup:X,borderRadiusLG:oe,subMenuItemBorderRadius:ge,menuArrowSize:he,menuArrowOffset:fe,lineType:le,menuPanelMaskInset:je,groupTitleLineHeight:Ue,groupTitleFontSize:rt}=N;return[{"":{[`${d}`]:Object.assign(Object.assign({},(0,Ae.dF)()),{"&-hidden":{display:"none"}})},[`${d}-submenu-hidden`]:{display:"none"}},{[d]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ae.Wf)(N)),(0,Ae.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:l,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${m} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${d}-item`]:{flex:"none"}},[`${d}-item, ${d}-submenu, ${d}-submenu-title`]:{borderRadius:N.itemBorderRadius},[`${d}-item-group-title`]:{padding:`${_}px ${y}px`,fontSize:rt,lineHeight:Ue,transition:`all ${m}`},[`&-horizontal ${d}-submenu`]:{transition:[`border-color ${m} ${h}`,`background ${m} ${h}`].join(",")},[`${d}-submenu, ${d}-submenu-inline`]:{transition:[`border-color ${m} ${h}`,`background ${m} ${h}`,`padding ${R} ${h}`].join(",")},[`${d}-submenu ${d}-sub`]:{cursor:"initial",transition:[`background ${m} ${h}`,`padding ${m} ${h}`].join(",")},[`${d}-title-content`]:{transition:`color ${m}`},[`${d}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${d}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:a,borderStyle:le,borderWidth:0,borderTopWidth:j,marginBlock:j,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Je(N)),{[`${d}-item-group`]:{[`${d}-item-group-list`]:{margin:0,padding:0,[`${d}-item, ${d}-submenu-title`]:{paddingInline:`${l*2}px ${y}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:X,borderRadius:oe,boxShadow:"none",transformOrigin:"0 0",[`&${d}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${je}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:je},"\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:N.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:N.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:N.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:N.paddingXS},[`> ${d}`]:Object.assign(Object.assign(Object.assign({borderRadius:oe},Je(N)),ft(N)),{[`${d}-item, ${d}-submenu > ${d}-submenu-title`]:{borderRadius:ge},[`${d}-submenu-title::after`]:{transition:`transform ${m} ${h}`}})}}),ft(N)),{[`&-inline-collapsed ${d}-submenu-arrow, &-inline ${d}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${fe})`},"&::after":{transform:`rotate(45deg) translateX(-${fe})`}},[`${d}-submenu-open${d}-submenu-inline > ${d}-submenu-title > ${d}-submenu-arrow`]:{transform:`translateY(-${he*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${fe})`},"&::before":{transform:`rotate(45deg) translateX(${fe})`}}})},{[`${c}-layout-header`]:{[d]:{lineHeight:"inherit"}}}]};var at=(N,c)=>(0,Se.Z)("Menu",l=>{if(c===!1)return[];const{colorBgElevated:m,colorPrimary:R,colorTextLightSolid:h,controlHeightLG:_,fontSize:y,darkItemColor:a,darkDangerItemColor:j,darkItemBg:X,darkSubMenuItemBg:oe,darkItemSelectedColor:ge,darkItemSelectedBg:he,darkDangerItemSelectedBg:fe,darkItemHoverBg:le,darkGroupTitleColor:je,darkItemHoverColor:Ue,darkItemDisabledColor:rt,darkDangerItemHoverColor:K,darkDangerItemSelectedColor:yt,darkDangerItemActiveBg:xt}=l,Rt=y/7*5,et=(0,Ke.TS)(l,{menuArrowSize:Rt,menuHorizontalHeight:_*1.15,menuArrowOffset:`${Rt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:m}),mt=(0,Ke.TS)(et,{itemColor:a,itemHoverColor:Ue,groupTitleColor:je,itemSelectedColor:ge,itemBg:X,popupBg:X,subMenuItemBg:oe,itemActiveBg:"transparent",itemSelectedBg:he,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:le,itemDisabledColor:rt,dangerItemColor:j,dangerItemHoverColor:K,dangerItemSelectedColor:yt,dangerItemActiveBg:xt,dangerItemSelectedBg:fe,menuSubMenuBg:oe,horizontalItemSelectedColor:h,horizontalItemSelectedBg:R});return[vt(et),st(et),Ct(et),Le(et,"light"),Le(mt,"dark"),Ie(et),(0,De.Z)(et),(0,Pe.oN)(et,"slide-up"),(0,Pe.oN)(et,"slide-down"),(0,Te._y)(et,"zoom-big")]},l=>{const{colorPrimary:m,colorError:R,colorTextDisabled:h,colorErrorBg:_,colorText:y,colorTextDescription:a,colorBgContainer:j,colorFillAlter:X,colorFillContent:oe,lineWidth:ge,lineWidthBold:he,controlItemBgActive:fe,colorBgTextHover:le,controlHeightLG:je,lineHeight:Ue,colorBgElevated:rt,marginXXS:K,padding:yt,fontSize:xt,controlHeightSM:Rt,fontSizeLG:et,colorTextLightSolid:mt,colorErrorHover:It}=l,Bt=new ce.C(mt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:l.zIndexPopupBase+50,radiusItem:l.borderRadiusLG,itemBorderRadius:l.borderRadiusLG,radiusSubMenuItem:l.borderRadiusSM,subMenuItemBorderRadius:l.borderRadiusSM,colorItemText:y,itemColor:y,colorItemTextHover:y,itemHoverColor:y,colorItemTextHoverHorizontal:m,horizontalItemHoverColor:m,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:m,itemSelectedColor:m,colorItemTextSelectedHorizontal:m,horizontalItemSelectedColor:m,colorItemBg:j,itemBg:j,colorItemBgHover:le,itemHoverBg:le,colorItemBgActive:oe,itemActiveBg:fe,colorSubItemBg:X,subMenuItemBg:X,colorItemBgSelected:fe,itemSelectedBg:fe,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:he,activeBarHeight:he,colorActiveBarBorderSize:ge,activeBarBorderWidth:ge,colorItemTextDisabled:h,itemDisabledColor:h,colorDangerItemText:R,dangerItemColor:R,colorDangerItemTextHover:R,dangerItemHoverColor:R,colorDangerItemTextSelected:R,dangerItemSelectedColor:R,colorDangerItemBgActive:_,dangerItemActiveBg:_,colorDangerItemBgSelected:_,dangerItemSelectedBg:_,itemMarginInline:l.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:je,groupTitleLineHeight:Ue,collapsedWidth:je*2,popupBg:rt,itemMarginBlock:K,itemPaddingInline:yt,horizontalLineHeight:`${je*1.15}px`,iconSize:xt,iconMarginInlineEnd:Rt-xt,collapsedIconSize:et,groupTitleFontSize:xt,darkItemDisabledColor:new ce.C(mt).setAlpha(.25).toRgbString(),darkItemColor:Bt,darkDangerItemColor:R,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:mt,darkItemSelectedBg:m,darkDangerItemSelectedBg:R,darkItemHoverBg:"transparent",darkGroupTitleColor:Bt,darkItemHoverColor:mt,darkDangerItemHoverColor:It,darkDangerItemSelectedColor:mt,darkDangerItemActiveBg:R}},{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"]]})(N),it=function(N,c){var d={};for(var l in N)Object.prototype.hasOwnProperty.call(N,l)&&c.indexOf(l)<0&&(d[l]=N[l]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,l=Object.getOwnPropertySymbols(N);m{var d,l;const m=x.useContext(I.Z),R=m||{},{getPrefixCls:h,getPopupContainer:_,direction:y,menu:a}=x.useContext(g.E_),j=h(),{prefixCls:X,className:oe,style:ge,theme:he="light",expandIcon:fe,_internalDisableMenuItemTitleTooltip:le,inlineCollapsed:je,siderCollapsed:Ue,items:rt,children:K,rootClassName:yt,mode:xt,selectable:Rt,onClick:et,overflowedIndicatorPopupClassName:mt}=N,It=it(N,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Bt=(0,ne.Z)(It,["collapsedWidth"]),wt=Q(rt)||K;(d=R.validator)===null||d===void 0||d.call(R,{mode:xt});const Ot=(0,L.useEvent)(function(){var ke;et==null||et.apply(void 0,arguments),(ke=R.onClick)===null||ke===void 0||ke.call(R)}),Ht=R.mode||xt,$t=Rt!=null?Rt:R.selectable,Ee=x.useMemo(()=>Ue!==void 0?Ue:je,[je,Ue]),We={horizontal:{motionName:`${j}-slide-up`},inline:(0,v.Z)(j),other:{motionName:`${j}-zoom-big`}},lt=h("menu",X||R.prefixCls),[Pt,Zt]=at(lt,!m),Wt=A()(`${lt}-${he}`,a==null?void 0:a.className,oe);let Lt;if(typeof fe=="function")Lt=fe;else if(fe===null||fe===!1)Lt=null;else if(R.expandIcon===null||R.expandIcon===!1)Lt=null;else{const ke=fe!=null?fe:R.expandIcon;Lt=(0,O.Tm)(ke,{className:A()(`${lt}-submenu-expand-icon`,(0,O.l$)(ke)?(l=ke.props)===null||l===void 0?void 0:l.className:"")})}const Xt=x.useMemo(()=>({prefixCls:lt,inlineCollapsed:Ee||!1,direction:y,firstLevel:!0,theme:he,mode:Ht,disableMenuItemTitleTooltip:le}),[lt,Ee,y,le,he]);return Pt(x.createElement(I.Z.Provider,{value:null},x.createElement(me.Provider,{value:Xt},x.createElement(s.ZP,Object.assign({getPopupContainer:_,overflowedIndicator:x.createElement(S.Z,null),overflowedIndicatorPopupClassName:A()(lt,`${lt}-${he}`,mt),mode:Ht,selectable:$t,onClick:Ot},Bt,{inlineCollapsed:Ee,style:Object.assign(Object.assign({},a==null?void 0:a.style),ge),className:Wt,prefixCls:lt,direction:y,defaultMotions:We,expandIcon:Lt,ref:c,rootClassName:A()(yt,Zt)}),wt))))});const qe=(0,x.forwardRef)((N,c)=>{const d=(0,x.useRef)(null),l=x.useContext(T.D);return(0,x.useImperativeHandle)(c,()=>({menu:d.current,focus:m=>{var R;(R=d.current)===null||R===void 0||R.focus(m)}})),x.createElement(kt,Object.assign({ref:d},N,l))});qe.Item=$,qe.SubMenu=w,qe.Divider=u,qe.ItemGroup=s.BW;var Re=qe},46303:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return N}});var s=o(94184),x=o.n(s),T=o(67294),k=o(53124),A=o(10366),q=c=>{const{prefixCls:d,className:l,style:m,size:R,shape:h}=c,_=x()({[`${d}-lg`]:R==="large",[`${d}-sm`]:R==="small"}),y=x()({[`${d}-circle`]:h==="circle",[`${d}-square`]:h==="square",[`${d}-round`]:h==="round"}),a=T.useMemo(()=>typeof R=="number"?{width:R,height:R,lineHeight:`${R}px`}:{},[R]);return T.createElement("span",{className:x()(d,_,y,l),style:Object.assign(Object.assign({},a),m)})},te=o(45930),u=o(67968),P=o(45503);const ne=new te.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),W=c=>({height:c,lineHeight:`${c}px`}),O=c=>Object.assign({width:c},W(c)),V=c=>({background:c.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ne,animationDuration:c.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),me=c=>Object.assign({width:c*5,minWidth:c*5},W(c)),re=c=>{const{skeletonAvatarCls:d,gradientFromColor:l,controlHeight:m,controlHeightLG:R,controlHeightSM:h}=c;return{[`${d}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:l},O(m)),[`${d}${d}-circle`]:{borderRadius:"50%"},[`${d}${d}-lg`]:Object.assign({},O(R)),[`${d}${d}-sm`]:Object.assign({},O(h))}},$=c=>{const{controlHeight:d,borderRadiusSM:l,skeletonInputCls:m,controlHeightLG:R,controlHeightSM:h,gradientFromColor:_}=c;return{[`${m}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:_,borderRadius:l},me(d)),[`${m}-lg`]:Object.assign({},me(R)),[`${m}-sm`]:Object.assign({},me(h))}},E=c=>Object.assign({width:c},W(c)),w=c=>{const{skeletonImageCls:d,imageSizeBase:l,gradientFromColor:m,borderRadiusSM:R}=c;return{[`${d}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:m,borderRadius:R},E(l*2)),{[`${d}-path`]:{fill:"#bfbfbf"},[`${d}-svg`]:Object.assign(Object.assign({},E(l)),{maxWidth:l*4,maxHeight:l*4}),[`${d}-svg${d}-svg-circle`]:{borderRadius:"50%"}}),[`${d}${d}-circle`]:{borderRadius:"50%"}}},S=(c,d,l)=>{const{skeletonButtonCls:m}=c;return{[`${l}${m}-circle`]:{width:d,minWidth:d,borderRadius:"50%"},[`${l}${m}-round`]:{borderRadius:d}}},L=c=>Object.assign({width:c*2,minWidth:c*2},W(c)),v=c=>{const{borderRadiusSM:d,skeletonButtonCls:l,controlHeight:m,controlHeightLG:R,controlHeightSM:h,gradientFromColor:_}=c;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${l}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:_,borderRadius:d,width:m*2,minWidth:m*2},L(m))},S(c,m,l)),{[`${l}-lg`]:Object.assign({},L(R))}),S(c,R,`${l}-lg`)),{[`${l}-sm`]:Object.assign({},L(h))}),S(c,h,`${l}-sm`))},I=c=>{const{componentCls:d,skeletonAvatarCls:l,skeletonTitleCls:m,skeletonParagraphCls:R,skeletonButtonCls:h,skeletonInputCls:_,skeletonImageCls:y,controlHeight:a,controlHeightLG:j,controlHeightSM:X,gradientFromColor:oe,padding:ge,marginSM:he,borderRadius:fe,titleHeight:le,blockRadius:je,paragraphLiHeight:Ue,controlHeightXS:rt,paragraphMarginTop:K}=c;return{[`${d}`]:{display:"table",width:"100%",[`${d}-header`]:{display:"table-cell",paddingInlineEnd:ge,verticalAlign:"top",[`${l}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:oe},O(a)),[`${l}-circle`]:{borderRadius:"50%"},[`${l}-lg`]:Object.assign({},O(j)),[`${l}-sm`]:Object.assign({},O(X))},[`${d}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${m}`]:{width:"100%",height:le,background:oe,borderRadius:je,[`+ ${R}`]:{marginBlockStart:X}},[`${R}`]:{padding:0,"> li":{width:"100%",height:Ue,listStyle:"none",background:oe,borderRadius:je,"+ li":{marginBlockStart:rt}}},[`${R}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${d}-content`]:{[`${m}, ${R} > li`]:{borderRadius:fe}}},[`${d}-with-avatar ${d}-content`]:{[`${m}`]:{marginBlockStart:he,[`+ ${R}`]:{marginBlockStart:K}}},[`${d}${d}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},v(c)),re(c)),$(c)),w(c)),[`${d}${d}-block`]:{width:"100%",[`${h}`]:{width:"100%"},[`${_}`]:{width:"100%"}},[`${d}${d}-active`]:{[` ${m}, ${R} > li, ${l}, ${h}, ${_}, ${y} `]:Object.assign({},V(c))}}};var Z=(0,u.Z)("Skeleton",c=>{const{componentCls:d}=c,l=(0,P.TS)(c,{skeletonAvatarCls:`${d}-avatar`,skeletonTitleCls:`${d}-title`,skeletonParagraphCls:`${d}-paragraph`,skeletonButtonCls:`${d}-button`,skeletonInputCls:`${d}-input`,skeletonImageCls:`${d}-image`,imageSizeBase:c.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${c.gradientFromColor} 25%, ${c.gradientToColor} 37%, ${c.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[I(l)]},c=>{const{colorFillContent:d,colorFill:l}=c,m=d,R=l;return{color:m,colorGradientEnd:R,gradientFromColor:m,gradientToColor:R,titleHeight:c.controlHeight/2,blockRadius:c.borderRadiusSM,paragraphMarginTop:c.marginLG+c.marginXXS,paragraphLiHeight:c.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Q=c=>{const{prefixCls:d,className:l,rootClassName:m,active:R,shape:h="circle",size:_="default"}=c,{getPrefixCls:y}=T.useContext(k.E_),a=y("skeleton",d),[j,X]=Z(a),oe=(0,A.Z)(c,["prefixCls","className"]),ge=x()(a,`${a}-element`,{[`${a}-active`]:R},l,m,X);return j(T.createElement("div",{className:ge},T.createElement(q,Object.assign({prefixCls:`${a}-avatar`,shape:h,size:_},oe))))},Ae=c=>{const{prefixCls:d,className:l,rootClassName:m,active:R,block:h=!1,size:_="default"}=c,{getPrefixCls:y}=T.useContext(k.E_),a=y("skeleton",d),[j,X]=Z(a),oe=(0,A.Z)(c,["prefixCls"]),ge=x()(a,`${a}-element`,{[`${a}-active`]:R,[`${a}-block`]:h},l,m,X);return j(T.createElement("div",{className:ge},T.createElement(q,Object.assign({prefixCls:`${a}-button`,size:_},oe))))};const De="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var Te=c=>{const{prefixCls:d,className:l,rootClassName:m,style:R,active:h}=c,{getPrefixCls:_}=T.useContext(k.E_),y=_("skeleton",d),[a,j]=Z(y),X=x()(y,`${y}-element`,{[`${y}-active`]:h},l,m,j);return a(T.createElement("div",{className:X},T.createElement("div",{className:x()(`${y}-image`,l),style:R},T.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${y}-image-svg`},T.createElement("path",{d:De,className:`${y}-image-path`})))))},Ke=c=>{const{prefixCls:d,className:l,rootClassName:m,active:R,block:h,size:_="default"}=c,{getPrefixCls:y}=T.useContext(k.E_),a=y("skeleton",d),[j,X]=Z(a),oe=(0,A.Z)(c,["prefixCls"]),ge=x()(a,`${a}-element`,{[`${a}-active`]:R,[`${a}-block`]:h},l,m,X);return j(T.createElement("div",{className:ge},T.createElement(q,Object.assign({prefixCls:`${a}-input`,size:_},oe))))},z=o(87462),st={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},Qe=st,Ie=o(74643),pe=function(d,l){return T.createElement(Ie.Z,(0,z.Z)({},d,{ref:l,icon:Qe}))},Me=T.forwardRef(pe),_e=c=>{const{prefixCls:d,className:l,rootClassName:m,style:R,active:h,children:_}=c,{getPrefixCls:y}=T.useContext(k.E_),a=y("skeleton",d),[j,X]=Z(a),oe=x()(a,`${a}-element`,{[`${a}-active`]:h},X,l,m),ge=_!=null?_:T.createElement(Me,null);return j(T.createElement("div",{className:oe},T.createElement("div",{className:x()(`${a}-image`,l),style:R},ge)))},xe=o(74902),Je=c=>{const d=y=>{const{width:a,rows:j=2}=c;if(Array.isArray(a))return a[y];if(j-1===y)return a},{prefixCls:l,className:m,style:R,rows:h}=c,_=(0,xe.Z)(Array(h)).map((y,a)=>T.createElement("li",{key:a,style:{width:d(a)}}));return T.createElement("ul",{className:x()(l,m),style:R},_)},vt=c=>{let{prefixCls:d,className:l,width:m,style:R}=c;return T.createElement("h3",{className:x()(d,l),style:Object.assign({width:m},R)})};function at(c){return c&&typeof c=="object"?c:{}}function it(c,d){return c&&!d?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ot(c,d){return!c&&d?{width:"38%"}:c&&d?{width:"50%"}:{}}function kt(c,d){const l={};return(!c||!d)&&(l.width="61%"),!c&&d?l.rows=3:l.rows=2,l}const qe=c=>{const{prefixCls:d,loading:l,className:m,rootClassName:R,style:h,children:_,avatar:y=!1,title:a=!0,paragraph:j=!0,active:X,round:oe}=c,{getPrefixCls:ge,direction:he,skeleton:fe}=T.useContext(k.E_),le=ge("skeleton",d),[je,Ue]=Z(le);if(l||!("loading"in c)){const rt=!!y,K=!!a,yt=!!j;let xt;if(rt){const mt=Object.assign(Object.assign({prefixCls:`${le}-avatar`},it(K,yt)),at(y));xt=T.createElement("div",{className:`${le}-header`},T.createElement(q,Object.assign({},mt)))}let Rt;if(K||yt){let mt;if(K){const Bt=Object.assign(Object.assign({prefixCls:`${le}-title`},ot(rt,yt)),at(a));mt=T.createElement(vt,Object.assign({},Bt))}let It;if(yt){const Bt=Object.assign(Object.assign({prefixCls:`${le}-paragraph`},kt(rt,K)),at(j));It=T.createElement(Je,Object.assign({},Bt))}Rt=T.createElement("div",{className:`${le}-content`},mt,It)}const et=x()(le,{[`${le}-with-avatar`]:rt,[`${le}-active`]:X,[`${le}-rtl`]:he==="rtl",[`${le}-round`]:oe},fe==null?void 0:fe.className,m,R,Ue);return je(T.createElement("div",{className:et,style:Object.assign(Object.assign({},fe==null?void 0:fe.style),h)},xt,Rt))}return typeof _!="undefined"?_:null};qe.Button=Ae,qe.Avatar=Q,qe.Input=Ke,qe.Image=Te,qe.Node=_e;var Re=qe,N=Re},93421:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return $}});var s=o(67294),x=o(94184),T=o.n(x),k=o(37419),A=o(53124),g=o(4173);const q=s.createContext({latestIndex:0}),te=q.Provider;var P=E=>{let{className:w,index:S,children:L,split:v,style:I}=E;const{latestIndex:Z}=s.useContext(q);return L==null?null:s.createElement(s.Fragment,null,s.createElement("div",{className:w,style:I},L),S{var S,L;const{getPrefixCls:v,space:I,direction:Z}=s.useContext(A.E_),{size:M=(I==null?void 0:I.size)||"small",align:Q,className:ce,rootClassName:Ae,children:De,direction:Pe="horizontal",prefixCls:Te,split:Se,style:Ke,wrap:z=!1,classNames:st,styles:Qe}=E,Ie=V(E,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[pe,Me]=Array.isArray(M)?M:[M,M],Le=W(Me),_e=W(pe),xe=O(Me),Ct=O(pe),Je=(0,k.Z)(De,{keepEmpty:!0}),ft=Q===void 0&&Pe==="horizontal"?"center":Q,vt=v("space",Te),[at,it]=(0,ne.Z)(vt),ot=T()(vt,I==null?void 0:I.className,it,`${vt}-${Pe}`,{[`${vt}-rtl`]:Z==="rtl",[`${vt}-align-${ft}`]:ft,[`${vt}-gap-row-${Me}`]:Le,[`${vt}-gap-col-${pe}`]:_e},ce,Ae),kt=T()(`${vt}-item`,(S=st==null?void 0:st.item)!==null&&S!==void 0?S:(L=I==null?void 0:I.classNames)===null||L===void 0?void 0:L.item);let qe=0;const Re=Je.map((d,l)=>{var m,R;d!=null&&(qe=l);const h=d&&d.key||`${kt}-${l}`;return s.createElement(P,{className:kt,key:h,index:l,split:Se,style:(m=Qe==null?void 0:Qe.item)!==null&&m!==void 0?m:(R=I==null?void 0:I.styles)===null||R===void 0?void 0:R.item},d)}),N=s.useMemo(()=>({latestIndex:qe}),[qe]);if(Je.length===0)return null;const c={};return z&&(c.flexWrap="wrap"),!_e&&Ct&&(c.columnGap=pe),!Le&&xe&&(c.rowGap=Me),at(s.createElement("div",Object.assign({ref:w,className:ot,style:Object.assign(Object.assign(Object.assign({},c),I==null?void 0:I.style),Ke)},Ie),s.createElement(te,{value:N},Re)))});re.Compact=g.ZP;var $=re},33507:function(Ye,ae){"use strict";const o=s=>({[s.componentCls]:{[`${s.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${s.motionDurationMid} ${s.motionEaseInOut}, opacity ${s.motionDurationMid} ${s.motionEaseInOut} !important`}},[`${s.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${s.motionDurationMid} ${s.motionEaseInOut}, opacity ${s.motionDurationMid} ${s.motionEaseInOut} !important`}}});ae.Z=o},33297:function(Ye,ae,o){"use strict";o.d(ae,{Fm:function(){return W}});var s=o(45930),x=o(93590);const T=new s.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),k=new s.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 s.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new s.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),q=new s.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),te=new s.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),u=new s.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),P=new s.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ne={"move-up":{inKeyframes:u,outKeyframes:P},"move-down":{inKeyframes:T,outKeyframes:k},"move-left":{inKeyframes:A,outKeyframes:g},"move-right":{inKeyframes:q,outKeyframes:te}},W=(O,V)=>{const{antCls:me}=O,re=`${me}-${V}`,{inKeyframes:$,outKeyframes:E}=ne[V];return[(0,x.R)(re,$,E,O.motionDurationMid),{[` ${re}-enter, ${re}-appear `]:{opacity:0,animationTimingFunction:O.motionEaseOutCirc},[`${re}-leave`]:{animationTimingFunction:O.motionEaseInOutCirc}}]}},67771:function(Ye,ae,o){"use strict";o.d(ae,{Qt:function(){return A},Uw:function(){return k},fJ:function(){return T},ly:function(){return g},oN:function(){return W}});var s=o(45930),x=o(93590);const T=new s.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),k=new s.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),A=new s.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),g=new s.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),q=new s.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),te=new s.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),u=new s.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),P=new s.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ne={"slide-up":{inKeyframes:T,outKeyframes:k},"slide-down":{inKeyframes:A,outKeyframes:g},"slide-left":{inKeyframes:q,outKeyframes:te},"slide-right":{inKeyframes:u,outKeyframes:P}},W=(O,V)=>{const{antCls:me}=O,re=`${me}-${V}`,{inKeyframes:$,outKeyframes:E}=ne[V];return[(0,x.R)(re,$,E,O.motionDurationMid),{[` ${re}-enter, ${re}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:O.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${re}-leave`]:{animationTimingFunction:O.motionEaseInQuint}}]}},72665:function(Ye,ae){"use strict";var o;var s=typeof Symbol=="function"&&Symbol.for,x=s?Symbol.for("react.element"):60103,T=s?Symbol.for("react.portal"):60106,k=s?Symbol.for("react.fragment"):60107,A=s?Symbol.for("react.strict_mode"):60108,g=s?Symbol.for("react.profiler"):60114,q=s?Symbol.for("react.provider"):60109,te=s?Symbol.for("react.context"):60110,u=s?Symbol.for("react.async_mode"):60111,P=s?Symbol.for("react.concurrent_mode"):60111,ne=s?Symbol.for("react.forward_ref"):60112,W=s?Symbol.for("react.suspense"):60113,O=s?Symbol.for("react.suspense_list"):60120,V=s?Symbol.for("react.memo"):60115,me=s?Symbol.for("react.lazy"):60116,re=s?Symbol.for("react.block"):60121,$=s?Symbol.for("react.fundamental"):60117,E=s?Symbol.for("react.responder"):60118,w=s?Symbol.for("react.scope"):60119;function S(v){if(typeof v=="object"&&v!==null){var I=v.$$typeof;switch(I){case x:switch(v=v.type,v){case u:case P:case k:case g:case A:case W:return v;default:switch(v=v&&v.$$typeof,v){case te:case ne:case me:case V:case q:return v;default:return I}}case T:return I}}}function L(v){return S(v)===P}o=u,o=P,o=te,o=q,o=x,o=ne,o=k,o=me,o=V,o=T,o=g,o=A,o=W,o=function(v){return L(v)||S(v)===u},o=L,o=function(v){return S(v)===te},o=function(v){return S(v)===q},o=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===x},o=function(v){return S(v)===ne},o=function(v){return S(v)===k},o=function(v){return S(v)===me},ae.isMemo=function(v){return S(v)===V},o=function(v){return S(v)===T},o=function(v){return S(v)===g},o=function(v){return S(v)===A},o=function(v){return S(v)===W},o=function(v){return typeof v=="string"||typeof v=="function"||v===k||v===P||v===g||v===A||v===W||v===O||typeof v=="object"&&v!==null&&(v.$$typeof===me||v.$$typeof===V||v.$$typeof===q||v.$$typeof===te||v.$$typeof===ne||v.$$typeof===$||v.$$typeof===E||v.$$typeof===w||v.$$typeof===re)},o=S},12060:function(Ye,ae,o){"use strict";Ye.exports=o(72665)},82702:function(Ye,ae,o){var s=o(34155);(function(x,T){Ye.exports=T()})(this,function(){"use strict";function x(h){var _=typeof h;return h!==null&&(_==="object"||_==="function")}function T(h){return typeof h=="function"}var k=void 0;Array.isArray?k=Array.isArray:k=function(h){return Object.prototype.toString.call(h)==="[object Array]"};var A=k,g=0,q=void 0,te=void 0,u=function(_,y){v[g]=_,v[g+1]=y,g+=2,g===2&&(te?te(I):M())};function P(h){te=h}function ne(h){u=h}var W=typeof window!="undefined"?window:void 0,O=W||{},V=O.MutationObserver||O.WebKitMutationObserver,me=typeof self=="undefined"&&typeof s!="undefined"&&{}.toString.call(s)==="[object process]",re=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function $(){return function(){return s.nextTick(I)}}function E(){return typeof q!="undefined"?function(){q(I)}:L()}function w(){var h=0,_=new V(I),y=document.createTextNode("");return _.observe(y,{characterData:!0}),function(){y.data=h=++h%2}}function S(){var h=new MessageChannel;return h.port1.onmessage=I,function(){return h.port2.postMessage(0)}}function L(){var h=setTimeout;return function(){return h(I,1)}}var v=new Array(1e3);function I(){for(var h=0;h0&&(M=L[0]),M instanceof Error)throw M;var Q=new Error("Unhandled error."+(M?" ("+M.message+")":""));throw Q.context=M,Q}var ce=Z[S];if(ce===void 0)return!1;if(typeof ce=="function")o(ce,this,L);else for(var Ae=ce.length,De=O(ce,Ae),v=0;v0&&M.length>I&&!M.warned){M.warned=!0;var Q=new Error("Possible EventEmitter memory leak detected. "+M.length+" "+String(S)+" listeners added. Use emitter.setMaxListeners() to increase limit");Q.name="MaxListenersExceededWarning",Q.emitter=w,Q.type=S,Q.count=M.length,x(Q)}return w}k.prototype.addListener=function(S,L){return te(this,S,L,!1)},k.prototype.on=k.prototype.addListener,k.prototype.prependListener=function(S,L){return te(this,S,L,!0)};function u(){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 P(w,S,L){var v={fired:!1,wrapFn:void 0,target:w,type:S,listener:L},I=u.bind(v);return I.listener=L,v.wrapFn=I,I}k.prototype.once=function(S,L){return g(L),this.on(S,P(this,S,L)),this},k.prototype.prependOnceListener=function(S,L){return g(L),this.prependListener(S,P(this,S,L)),this},k.prototype.removeListener=function(S,L){var v,I,Z,M,Q;if(g(L),I=this._events,I===void 0)return this;if(v=I[S],v===void 0)return this;if(v===L||v.listener===L)--this._eventsCount===0?this._events=Object.create(null):(delete I[S],I.removeListener&&this.emit("removeListener",S,v.listener||L));else if(typeof v!="function"){for(Z=-1,M=v.length-1;M>=0;M--)if(v[M]===L||v[M].listener===L){Q=v[M].listener,Z=M;break}if(Z<0)return this;Z===0?v.shift():V(v,Z),v.length===1&&(I[S]=v[0]),I.removeListener!==void 0&&this.emit("removeListener",S,Q||L)}return this},k.prototype.off=k.prototype.removeListener,k.prototype.removeAllListeners=function(S){var L,v,I;if(v=this._events,v===void 0)return this;if(v.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):v[S]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete v[S]),this;if(arguments.length===0){var Z=Object.keys(v),M;for(I=0;I=0;I--)this.removeListener(S,L[I]);return this};function ne(w,S,L){var v=w._events;if(v===void 0)return[];var I=v[S];return I===void 0?[]:typeof I=="function"?L?[I.listener||I]:[I]:L?me(I):O(I,I.length)}k.prototype.listeners=function(S){return ne(this,S,!0)},k.prototype.rawListeners=function(S){return ne(this,S,!1)},k.listenerCount=function(w,S){return typeof w.listenerCount=="function"?w.listenerCount(S):W.call(w,S)},k.prototype.listenerCount=W;function W(w){var S=this._events;if(S!==void 0){var L=S[w];if(typeof L=="function")return 1;if(L!==void 0)return L.length}return 0}k.prototype.eventNames=function(){return this._eventsCount>0?s(this._events):[]};function O(w,S){for(var L=new Array(S),v=0;v1&&arguments[1]!==void 0?arguments[1]:1;M+=1;var F=M;function B(H){if(H===0)ce(F),C();else{var U=I(function(){B(H-1)});Q.set(F,U)}}return B(D),F};Ae.cancel=function(p){var C=Q.get(p);return ce(C),Z(C)};var De=Ae;function Pe(p){if(typeof MessageChannel=="undefined")De(p);else{var C=new MessageChannel;C.port1.onmessage=function(){return p()},C.port2.postMessage(void 0)}}function Te(){var p=u.useRef(null),C=function(F){p.current||(p.current=[],Pe(function(){(0,v.unstable_batchedUpdates)(function(){p.current.forEach(function(B){B()}),p.current=null})})),p.current.push(F)};return C}function Se(p,C){var D=u.useState(C),F=(0,A.Z)(D,2),B=F[0],H=F[1],U=L(function(ve){p(function(){H(ve)})});return[B,U]}var Ke=u.createContext(null),z=["component"],st=["className"],Qe=["className"],Ie=function(C,D){var F=u.useContext(Ke);if(!F){var B=C.component,H=B===void 0?"div":B,U=(0,g.Z)(C,z);return u.createElement(H,(0,s.Z)({},U,{ref:D}))}var ve=F.className,Be=(0,g.Z)(F,st),we=C.className,tt=(0,g.Z)(C,Qe);return u.createElement(Ke.Provider,{value:null},u.createElement(S,(0,s.Z)({ref:D,className:te()(ve,we)},Be,tt)))},pe=u.forwardRef(Ie);pe.displayName="RawItem";var Me=pe,Le=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],_e="responsive",xe="invalidate";function Ct(p){return"+ ".concat(p.length," ...")}function Je(p,C){var D=p.prefixCls,F=D===void 0?"rc-overflow":D,B=p.data,H=B===void 0?[]:B,U=p.renderItem,ve=p.renderRawItem,Be=p.itemKey,we=p.itemWidth,tt=we===void 0?10:we,He=p.ssr,gt=p.style,_t=p.className,Ze=p.maxCount,pt=p.renderRest,Et=p.renderRawRest,bt=p.suffix,Ve=p.component,Xe=Ve===void 0?"div":Ve,ze=p.itemComponent,nt=p.onVisibleChange,ct=(0,g.Z)(p,Le),Dt=He==="full",ht=Te(),sn=Se(ht,null),At=(0,A.Z)(sn,2),an=At[0],tn=At[1],Ut=an||0,ln=Se(ht,new Map),zt=(0,A.Z)(ln,2),Jt=zt[0],Yt=zt[1],xn=Se(ht,0),Dn=(0,A.Z)(xn,2),Bn=Dn[0],Tn=Dn[1],kn=Se(ht,0),wn=(0,A.Z)(kn,2),En=wn[0],Fn=wn[1],on=Se(ht,0),un=(0,A.Z)(on,2),An=un[0],Mn=un[1],Nn=(0,u.useState)(null),qt=(0,A.Z)(Nn,2),hn=qt[0],Rn=qt[1],ni=(0,u.useState)(null),$n=(0,A.Z)(ni,2),yn=$n[0],ci=$n[1],Pn=u.useMemo(function(){return yn===null&&Dt?Number.MAX_SAFE_INTEGER:yn||0},[yn,an]),hi=(0,u.useState)(!1),Kn=(0,A.Z)(hi,2),ii=Kn[0],ri=Kn[1],fn="".concat(F,"-item"),si=Math.max(Bn,En),Un=Ze===_e,mn=H.length&&Un,ai=Ze===xe,Hn=mn||typeof Ze=="number"&&H.length>Ze,vn=(0,u.useMemo)(function(){var $e=H;return mn?an===null&&Dt?$e=H:$e=H.slice(0,Math.min(H.length,Ut/tt)):typeof Ze=="number"&&($e=H.slice(0,Ze)),$e},[H,tt,an,Ze,mn]),zn=(0,u.useMemo)(function(){return mn?H.slice(Pn+1):H.slice(vn.length)},[H,vn,mn,Pn]),Ln=(0,u.useCallback)(function($e,Ge){var Gt;return typeof Be=="function"?Be($e):(Gt=Be&&($e==null?void 0:$e[Be]))!==null&&Gt!==void 0?Gt:Ge},[Be]),Vn=(0,u.useCallback)(U||function($e){return $e},[U]);function nn($e,Ge,Gt){yn===$e&&(Ge===void 0||Ge===hn)||(ci($e),Gt||(ri($eUt){nn(Sn-1,$e-Xn-An+En);break}}bt&&fi(0)+An>Ut&&Rn(null)}},[Ut,Jt,En,An,Ln,vn]);var yi=ii&&!!zn.length,oi={};hn!==null&&mn&&(oi={position:"absolute",left:hn,top:0});var Jn={prefixCls:fn,responsive:mn,component:ze,invalidate:ai},bi=ve?function($e,Ge){var Gt=Ln($e,Ge);return u.createElement(Ke.Provider,{key:Gt,value:(0,T.Z)((0,T.Z)({},Jn),{},{order:Ge,item:$e,itemKey:Gt,registerSize:On,display:Ge<=Pn})},ve($e,Ge))}:function($e,Ge){var Gt=Ln($e,Ge);return u.createElement(S,(0,s.Z)({},Jn,{order:Ge,key:Gt,item:$e,renderItem:Vn,itemKey:Gt,registerSize:On,display:Ge<=Pn}))},Wn,li={order:yi?Pn:Number.MAX_SAFE_INTEGER,className:"".concat(fn,"-rest"),registerSize:bn,display:yi};if(Et)Et&&(Wn=u.createElement(Ke.Provider,{value:(0,T.Z)((0,T.Z)({},Jn),li)},Et(zn)));else{var ui=pt||Ct;Wn=u.createElement(S,(0,s.Z)({},Jn,li),typeof ui=="function"?ui(zn):ui)}var mi=u.createElement(Xe,(0,s.Z)({className:te()(!ai&&F,_t),style:gt,ref:C},ct),vn.map(bi),Hn?Wn:null,bt&&u.createElement(S,(0,s.Z)({},Jn,{responsive:Un,responsiveDisabled:!mn,order:Pn,className:"".concat(fn,"-suffix"),registerSize:pn,display:!0,style:oi}),bt));return Un&&(mi=u.createElement(P.Z,{onResize:Gn,disabled:!mn},mi)),mi}var ft=u.forwardRef(Je);ft.displayName="Overflow",ft.Item=Me,ft.RESPONSIVE=_e,ft.INVALIDATE=xe;var vt=ft,at=vt,it=o(21770),ot=o(80334),kt=o(91881),qe=u.createContext(null);function Re(p,C){return p===void 0?null:"".concat(p,"-").concat(C)}function N(p){var C=u.useContext(qe);return Re(C,p)}var c=o(56982),d=["children","locked"],l=u.createContext(null);function m(p,C){var D=(0,T.Z)({},p);return Object.keys(C).forEach(function(F){var B=C[F];B!==void 0&&(D[F]=B)}),D}function R(p){var C=p.children,D=p.locked,F=(0,g.Z)(p,d),B=u.useContext(l),H=(0,c.Z)(function(){return m(B,F)},[B,F],function(U,ve){return!D&&(U[0]!==ve[0]||!(0,kt.Z)(U[1],ve[1],!0))});return u.createElement(l.Provider,{value:H},C)}var h=[],_=u.createContext(null);function y(){return u.useContext(_)}var a=u.createContext(h);function j(p){var C=u.useContext(a);return u.useMemo(function(){return p!==void 0?[].concat((0,k.Z)(C),[p]):C},[C,p])}var X=u.createContext(null),oe=u.createContext({}),ge=oe,he=o(15105),fe=o(75164),le=function(p){if(!p)return!1;if(p instanceof Element){if(p.offsetParent)return!0;if(p.getBBox){var C=p.getBBox(),D=C.width,F=C.height;if(D||F)return!0}if(p.getBoundingClientRect){var B=p.getBoundingClientRect(),H=B.width,U=B.height;if(H||U)return!0}}return!1};function je(p){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(le(p)){var D=p.nodeName.toLowerCase(),F=["input","select","textarea","button"].includes(D)||p.isContentEditable||D==="a"&&!!p.getAttribute("href"),B=p.getAttribute("tabindex"),H=Number(B),U=null;return B&&!Number.isNaN(H)?U=H:F&&U===null&&(U=0),F&&p.disabled&&(U=null),U!==null&&(U>=0||C&&U<0)}return!1}function Ue(p){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,D=(0,k.Z)(p.querySelectorAll("*")).filter(function(F){return je(F,C)});return je(p,C)&&D.unshift(p),D}var rt=null;function K(){rt=document.activeElement}function yt(){rt=null}function xt(){if(rt)try{rt.focus()}catch(p){}}function Rt(p,C){if(C.keyCode===9){var D=Ue(p),F=D[C.shiftKey?0:D.length-1],B=F===document.activeElement||p===document.activeElement;if(B){var H=D[C.shiftKey?D.length-1:0];H.focus(),C.preventDefault()}}}var et=he.Z.LEFT,mt=he.Z.RIGHT,It=he.Z.UP,Bt=he.Z.DOWN,wt=he.Z.ENTER,Ot=he.Z.ESC,Ht=he.Z.HOME,$t=he.Z.END,Ee=[It,Bt,et,mt];function We(p,C,D,F){var B,H,U,ve,Be="prev",we="next",tt="children",He="parent";if(p==="inline"&&F===wt)return{inlineTrigger:!0};var gt=(B={},(0,x.Z)(B,It,Be),(0,x.Z)(B,Bt,we),B),_t=(H={},(0,x.Z)(H,et,D?we:Be),(0,x.Z)(H,mt,D?Be:we),(0,x.Z)(H,Bt,tt),(0,x.Z)(H,wt,tt),H),Ze=(U={},(0,x.Z)(U,It,Be),(0,x.Z)(U,Bt,we),(0,x.Z)(U,wt,tt),(0,x.Z)(U,Ot,He),(0,x.Z)(U,et,D?tt:He),(0,x.Z)(U,mt,D?He:tt),U),pt={inline:gt,horizontal:_t,vertical:Ze,inlineSub:gt,horizontalSub:Ze,verticalSub:Ze},Et=(ve=pt["".concat(p).concat(C?"":"Sub")])===null||ve===void 0?void 0:ve[F];switch(Et){case Be:return{offset:-1,sibling:!0};case we:return{offset:1,sibling:!0};case He:return{offset:-1,sibling:!1};case tt:return{offset:1,sibling:!1};default:return null}}function lt(p){for(var C=p;C;){if(C.getAttribute("data-menu-list"))return C;C=C.parentElement}return null}function Pt(p,C){for(var D=p||document.activeElement;D;){if(C.has(D))return D;D=D.parentElement}return null}function Zt(p,C){var D=Ue(p,!0);return D.filter(function(F){return C.has(F)})}function Wt(p,C,D){var F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!p)return null;var B=Zt(p,C),H=B.length,U=B.findIndex(function(ve){return D===ve});return F<0?U===-1?U=H-1:U-=1:F>0&&(U+=1),U=(U+H)%H,B[U]}function Lt(p,C,D,F,B,H,U,ve,Be,we){var tt=u.useRef(),He=u.useRef();He.current=C;var gt=function(){fe.Z.cancel(tt.current)};return u.useEffect(function(){return function(){gt()}},[]),function(_t){var Ze=_t.which;if([].concat(Ee,[wt,Ot,Ht,$t]).includes(Ze)){var pt,Et,bt,Ve=function(){pt=new Set,Et=new Map,bt=new Map;var zt=H();return zt.forEach(function(Jt){var Yt=document.querySelector("[data-menu-id='".concat(Re(F,Jt),"']"));Yt&&(pt.add(Yt),bt.set(Yt,Jt),Et.set(Jt,Yt))}),pt};Ve();var Xe=Et.get(C),ze=Pt(Xe,pt),nt=bt.get(ze),ct=We(p,U(nt,!0).length===1,D,Ze);if(!ct&&Ze!==Ht&&Ze!==$t)return;(Ee.includes(Ze)||[Ht,$t].includes(Ze))&&_t.preventDefault();var Dt=function(zt){if(zt){var Jt=zt,Yt=zt.querySelector("a");Yt!=null&&Yt.getAttribute("href")&&(Jt=Yt);var xn=bt.get(zt);ve(xn),gt(),tt.current=(0,fe.Z)(function(){He.current===xn&&Jt.focus()})}};if([Ht,$t].includes(Ze)||ct.sibling||!ze){var ht;!ze||p==="inline"?ht=B.current:ht=lt(ze);var sn,At=Zt(ht,pt);Ze===Ht?sn=At[0]:Ze===$t?sn=At[At.length-1]:sn=Wt(ht,pt,ze,ct.offset),Dt(sn)}else if(ct.inlineTrigger)Be(nt);else if(ct.offset>0)Be(nt,!0),gt(),tt.current=(0,fe.Z)(function(){Ve();var ln=ze.getAttribute("aria-controls"),zt=document.getElementById(ln),Jt=Wt(zt,pt);Dt(Jt)},5);else if(ct.offset<0){var an=U(nt,!0),tn=an[an.length-2],Ut=Et.get(tn);Be(tn,!1),Dt(Ut)}}we==null||we(_t)}}function Xt(p){Promise.resolve().then(p)}var ke="__RC_UTIL_PATH_SPLIT__",Cn=function(C){return C.join(ke)},G=function(C){return C.split(ke)},e="rc-menu-more";function t(){var p=u.useState({}),C=(0,A.Z)(p,2),D=C[1],F=(0,u.useRef)(new Map),B=(0,u.useRef)(new Map),H=u.useState([]),U=(0,A.Z)(H,2),ve=U[0],Be=U[1],we=(0,u.useRef)(0),tt=(0,u.useRef)(!1),He=function(){tt.current||D({})},gt=(0,u.useCallback)(function(Xe,ze){var nt=Cn(ze);B.current.set(nt,Xe),F.current.set(Xe,nt),we.current+=1;var ct=we.current;Xt(function(){ct===we.current&&He()})},[]),_t=(0,u.useCallback)(function(Xe,ze){var nt=Cn(ze);B.current.delete(nt),F.current.delete(Xe)},[]),Ze=(0,u.useCallback)(function(Xe){Be(Xe)},[]),pt=(0,u.useCallback)(function(Xe,ze){var nt=F.current.get(Xe)||"",ct=G(nt);return ze&&ve.includes(ct[0])&&ct.unshift(e),ct},[ve]),Et=(0,u.useCallback)(function(Xe,ze){return Xe.some(function(nt){var ct=pt(nt,!0);return ct.includes(ze)})},[pt]),bt=function(){var ze=(0,k.Z)(F.current.keys());return ve.length&&ze.push(e),ze},Ve=(0,u.useCallback)(function(Xe){var ze="".concat(F.current.get(Xe)).concat(ke),nt=new Set;return(0,k.Z)(B.current.keys()).forEach(function(ct){ct.startsWith(ze)&&nt.add(B.current.get(ct))}),nt},[]);return u.useEffect(function(){return function(){tt.current=!0}},[]),{registerPath:gt,unregisterPath:_t,refreshOverflowKeys:Ze,isSubPathKey:Et,getKeyPath:pt,getKeys:bt,getSubPathKeys:Ve}}function n(p){var C=u.useRef(p);C.current=p;var D=u.useCallback(function(){for(var F,B=arguments.length,H=new Array(B),U=0;U1&&(Ve.motionAppear=!1);var Xe=Ve.onVisibleChanged;return Ve.onVisibleChanged=function(ze){return!gt.current&&!ze&&Et(!0),Xe==null?void 0:Xe(ze)},pt?null:u.createElement(R,{mode:H,locked:!gt.current},u.createElement(_i.Z,(0,s.Z)({visible:bt},Ve,{forceRender:Be,removeOnLeave:!1,leavedClassName:"".concat(ve,"-hidden")}),function(ze){var nt=ze.className,ct=ze.style;return u.createElement(cn,{id:C,className:nt,style:ct},B)}))}var Ni=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],$i=["active"],Pi=function(C){var D,F=C.style,B=C.className,H=C.title,U=C.eventKey,ve=C.warnKey,Be=C.disabled,we=C.internalPopupClose,tt=C.children,He=C.itemIcon,gt=C.expandIcon,_t=C.popupClassName,Ze=C.popupOffset,pt=C.popupStyle,Et=C.onClick,bt=C.onMouseEnter,Ve=C.onMouseLeave,Xe=C.onTitleClick,ze=C.onTitleMouseEnter,nt=C.onTitleMouseLeave,ct=(0,g.Z)(C,Ni),Dt=N(U),ht=u.useContext(l),sn=ht.prefixCls,At=ht.mode,an=ht.openKeys,tn=ht.disabled,Ut=ht.overflowDisabled,ln=ht.activeKey,zt=ht.selectedKeys,Jt=ht.itemIcon,Yt=ht.expandIcon,xn=ht.onItemClick,Dn=ht.onOpenChange,Bn=ht.onActive,Tn=u.useContext(ge),kn=Tn._internalRenderSubMenuItem,wn=u.useContext(X),En=wn.isSubPathKey,Fn=j(),on="".concat(sn,"-submenu"),un=tn||Be,An=u.useRef(),Mn=u.useRef(),Nn=He!=null?He:Jt,qt=gt!=null?gt:Yt,hn=an.includes(U),Rn=!Ut&&hn,ni=En(zt,U),$n=ie(U,un,ze,nt),yn=$n.active,ci=(0,g.Z)($n,$i),Pn=u.useState(!1),hi=(0,A.Z)(Pn,2),Kn=hi[0],ii=hi[1],ri=function(pn){un||ii(pn)},fn=function(pn){ri(!0),bt==null||bt({key:U,domEvent:pn})},si=function(pn){ri(!1),Ve==null||Ve({key:U,domEvent:pn})},Un=u.useMemo(function(){return yn||(At!=="inline"?Kn||En([ln],U):!1)},[At,yn,ln,Kn,U,En]),mn=Oe(Fn.length),ai=function(pn){un||(Xe==null||Xe({key:U,domEvent:pn}),At==="inline"&&Dn(U,!hn))},Hn=n(function(bn){Et==null||Et(ee(bn)),xn(bn)}),vn=function(pn){At!=="inline"&&Dn(U,pn)},zn=function(){Bn(U)},Ln=Dt&&"".concat(Dt,"-popup"),Vn=u.createElement("div",(0,s.Z)({role:"menuitem",style:mn,className:"".concat(on,"-title"),tabIndex:un?null:-1,ref:An,title:typeof H=="string"?H:null,"data-menu-id":Ut&&Dt?null:Dt,"aria-expanded":Rn,"aria-haspopup":!0,"aria-controls":Ln,"aria-disabled":un,onClick:ai,onFocus:zn},ci),H,u.createElement(de,{icon:At!=="horizontal"?qt:void 0,props:(0,T.Z)((0,T.Z)({},C),{},{isOpen:Rn,isSubMenu:!0})},u.createElement("i",{className:"".concat(on,"-arrow")}))),nn=u.useRef(At);if(At!=="inline"&&Fn.length>1?nn.current="vertical":nn.current=At,!Ut){var Gn=nn.current;Vn=u.createElement(vi,{mode:Gn,prefixCls:on,visible:!we&&Rn&&At!=="inline",popupClassName:_t,popupOffset:Ze,popupStyle:pt,popup:u.createElement(R,{mode:Gn==="horizontal"?"vertical":Gn},u.createElement(cn,{id:Ln,ref:Mn},tt)),disabled:un,onVisibleChange:vn},Vn)}var On=u.createElement(at.Item,(0,s.Z)({role:"none"},ct,{component:"li",style:F,className:te()(on,"".concat(on,"-").concat(At),B,(D={},(0,x.Z)(D,"".concat(on,"-open"),Rn),(0,x.Z)(D,"".concat(on,"-active"),Un),(0,x.Z)(D,"".concat(on,"-selected"),ni),(0,x.Z)(D,"".concat(on,"-disabled"),un),D)),onMouseEnter:fn,onMouseLeave:si}),Vn,!Ut&&u.createElement(Mi,{id:Ln,open:Rn,keyPath:Fn},tt));return kn&&(On=kn(On,C,{selected:ni,active:Un,open:Rn,disabled:un})),u.createElement(R,{onItemClick:Hn,mode:At==="horizontal"?"vertical":At,itemIcon:Nn,expandIcon:qt},On)};function Ei(p){var C=p.eventKey,D=p.children,F=j(C),B=rn(D,F),H=y();u.useEffect(function(){if(H)return H.registerPath(C,F),function(){H.unregisterPath(C,F)}},[F]);var U;return H?U=B:U=u.createElement(Pi,p,B),u.createElement(a.Provider,{value:F},U)}var Ui=o(71002),zi=["className","title","eventKey","children"],ji=["children"],Zi=function(C){var D=C.className,F=C.title,B=C.eventKey,H=C.children,U=(0,g.Z)(C,zi),ve=u.useContext(l),Be=ve.prefixCls,we="".concat(Be,"-item-group");return u.createElement("li",(0,s.Z)({role:"presentation"},U,{onClick:function(He){return He.stopPropagation()},className:te()(we,D)}),u.createElement("div",{role:"presentation",className:"".concat(we,"-title"),title:typeof F=="string"?F:void 0},F),u.createElement("ul",{role:"group",className:"".concat(we,"-list")},H))};function xi(p){var C=p.children,D=(0,g.Z)(p,ji),F=j(D.eventKey),B=rn(C,F),H=y();return H?B:u.createElement(Zi,(0,Ne.Z)(D,["warnKey"]),B)}function wi(p){var C=p.className,D=p.style,F=u.useContext(l),B=F.prefixCls,H=y();return H?null:u.createElement("li",{role:"separator",className:te()("".concat(B,"-item-divider"),C),style:D})}var Ki=["label","children","key","type"];function Ai(p){return(p||[]).map(function(C,D){if(C&&(0,Ui.Z)(C)==="object"){var F=C,B=F.label,H=F.children,U=F.key,ve=F.type,Be=(0,g.Z)(F,Ki),we=U!=null?U:"tmp-".concat(D);return H||ve==="group"?ve==="group"?u.createElement(xi,(0,s.Z)({key:we},Be,{title:B}),Ai(H)):u.createElement(Ei,(0,s.Z)({key:we},Be,{title:B}),Ai(H)):ve==="divider"?u.createElement(wi,(0,s.Z)({key:we},Be)):u.createElement(dt,(0,s.Z)({key:we},Be),B)}return null}).filter(function(C){return C})}function Hi(p,C,D){var F=p;return C&&(F=Ai(C)),rn(F,D)}var Vi=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],ti=[],Gi=u.forwardRef(function(p,C){var D,F,B=p,H=B.prefixCls,U=H===void 0?"rc-menu":H,ve=B.rootClassName,Be=B.style,we=B.className,tt=B.tabIndex,He=tt===void 0?0:tt,gt=B.items,_t=B.children,Ze=B.direction,pt=B.id,Et=B.mode,bt=Et===void 0?"vertical":Et,Ve=B.inlineCollapsed,Xe=B.disabled,ze=B.disabledOverflow,nt=B.subMenuOpenDelay,ct=nt===void 0?.1:nt,Dt=B.subMenuCloseDelay,ht=Dt===void 0?.1:Dt,sn=B.forceSubMenuRender,At=B.defaultOpenKeys,an=B.openKeys,tn=B.activeKey,Ut=B.defaultActiveFirst,ln=B.selectable,zt=ln===void 0?!0:ln,Jt=B.multiple,Yt=Jt===void 0?!1:Jt,xn=B.defaultSelectedKeys,Dn=B.selectedKeys,Bn=B.onSelect,Tn=B.onDeselect,kn=B.inlineIndent,wn=kn===void 0?24:kn,En=B.motion,Fn=B.defaultMotions,on=B.triggerSubMenuAction,un=on===void 0?"hover":on,An=B.builtinPlacements,Mn=B.itemIcon,Nn=B.expandIcon,qt=B.overflowedIndicator,hn=qt===void 0?"...":qt,Rn=B.overflowedIndicatorPopupClassName,ni=B.getPopupContainer,$n=B.onClick,yn=B.onOpenChange,ci=B.onKeyDown,Pn=B.openAnimation,hi=B.openTransitionName,Kn=B._internalRenderMenuItem,ii=B._internalRenderSubMenuItem,ri=(0,g.Z)(B,Vi),fn=u.useMemo(function(){return Hi(_t,gt,ti)},[_t,gt]),si=u.useState(!1),Un=(0,A.Z)(si,2),mn=Un[0],ai=Un[1],Hn=u.useRef(),vn=f(pt),zn=Ze==="rtl",Ln=(0,it.Z)(At,{value:an,postState:function(St){return St||ti}}),Vn=(0,A.Z)(Ln,2),nn=Vn[0],Gn=Vn[1],On=function(St){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function gn(){Gn(St),yn==null||yn(St)}Tt?(0,v.flushSync)(gn):gn()},bn=u.useState(nn),pn=(0,A.Z)(bn,2),fi=pn[0],yi=pn[1],oi=u.useRef(!1),Jn=u.useMemo(function(){return(bt==="inline"||bt==="vertical")&&Ve?["vertical",Ve]:[bt,!1]},[bt,Ve]),bi=(0,A.Z)(Jn,2),Wn=bi[0],li=bi[1],ui=Wn==="inline",mi=u.useState(Wn),$e=(0,A.Z)(mi,2),Ge=$e[0],Gt=$e[1],Sn=u.useState(li),Xn=(0,A.Z)(Sn,2),Yi=Xn[0],Qi=Xn[1];u.useEffect(function(){Gt(Wn),Qi(li),oi.current&&(ui?Gn(fi):On(ti))},[Wn,li]);var Ji=u.useState(0),Bi=(0,A.Z)(Ji,2),Si=Bi[0],qi=Bi[1],Ri=Si>=fn.length-1||Ge!=="horizontal"||ze;u.useEffect(function(){ui&&yi(nn)},[nn]),u.useEffect(function(){return oi.current=!0,function(){oi.current=!1}},[]);var qn=t(),Li=qn.registerPath,Oi=qn.unregisterPath,er=qn.refreshOverflowKeys,Di=qn.isSubPathKey,tr=qn.getKeyPath,nr=qn.getKeys,ir=qn.getSubPathKeys,rr=u.useMemo(function(){return{registerPath:Li,unregisterPath:Oi}},[Li,Oi]),sr=u.useMemo(function(){return{isSubPathKey:Di}},[Di]);u.useEffect(function(){er(Ri?ti:fn.slice(Si+1).map(function(jt){return jt.key}))},[Si,Ri]);var ar=(0,it.Z)(tn||Ut&&((D=fn[0])===null||D===void 0?void 0:D.key),{value:tn}),Ti=(0,A.Z)(ar,2),pi=Ti[0],Ii=Ti[1],or=n(function(jt){Ii(jt)}),lr=n(function(){Ii(void 0)});(0,u.useImperativeHandle)(C,function(){return{list:Hn.current,focus:function(St){var Tt,gn=pi!=null?pi:(Tt=fn.find(function(_r){return!_r.props.disabled}))===null||Tt===void 0?void 0:Tt.key;if(gn){var _n,ei,gi;(_n=Hn.current)===null||_n===void 0||(ei=_n.querySelector("li[data-menu-id='".concat(Re(vn,gn),"']")))===null||ei===void 0||(gi=ei.focus)===null||gi===void 0||gi.call(ei,St)}}}});var ur=(0,it.Z)(xn||[],{value:Dn,postState:function(St){return Array.isArray(St)?St:St==null?ti:[St]}}),ki=(0,A.Z)(ur,2),Ci=ki[0],dr=ki[1],cr=function(St){if(zt){var Tt=St.key,gn=Ci.includes(Tt),_n;Yt?gn?_n=Ci.filter(function(gi){return gi!==Tt}):_n=[].concat((0,k.Z)(Ci),[Tt]):_n=[Tt],dr(_n);var ei=(0,T.Z)((0,T.Z)({},St),{},{selectedKeys:_n});gn?Tn==null||Tn(ei):Bn==null||Bn(ei)}!Yt&&nn.length&&Ge!=="inline"&&On(ti)},hr=n(function(jt){$n==null||$n(ee(jt)),cr(jt)}),Fi=n(function(jt,St){var Tt=nn.filter(function(_n){return _n!==jt});if(St)Tt.push(jt);else if(Ge!=="inline"){var gn=ir(jt);Tt=Tt.filter(function(_n){return!gn.has(_n)})}(0,kt.Z)(nn,Tt,!0)||On(Tt,!0)}),fr=function(St,Tt){var gn=Tt!=null?Tt:!nn.includes(St);Fi(St,gn)},mr=Lt(Ge,pi,zn,vn,Hn,nr,tr,Ii,fr,ci);u.useEffect(function(){ai(!0)},[]);var pr=u.useMemo(function(){return{_internalRenderMenuItem:Kn,_internalRenderSubMenuItem:ii}},[Kn,ii]),gr=Ge!=="horizontal"||ze?fn:fn.map(function(jt,St){return u.createElement(R,{key:jt.key,overflowDisabled:St>Si},jt)}),vr=u.createElement(at,(0,s.Z)({id:pt,ref:Hn,prefixCls:"".concat(U,"-overflow"),component:"ul",itemComponent:dt,className:te()(U,"".concat(U,"-root"),"".concat(U,"-").concat(Ge),we,(F={},(0,x.Z)(F,"".concat(U,"-inline-collapsed"),Yi),(0,x.Z)(F,"".concat(U,"-rtl"),zn),F),ve),dir:Ze,style:Be,role:"menu",tabIndex:He,data:gr,renderRawItem:function(St){return St},renderRawRest:function(St){var Tt=St.length,gn=Tt?fn.slice(-Tt):null;return u.createElement(Ei,{eventKey:e,title:hn,disabled:Ri,internalPopupClose:Tt===0,popupClassName:Rn},gn)},maxCount:Ge!=="horizontal"||ze?at.INVALIDATE:at.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(St){qi(St)},onKeyDown:mr},ri));return u.createElement(ge.Provider,{value:pr},u.createElement(qe.Provider,{value:vn},u.createElement(R,{prefixCls:U,rootClassName:ve,mode:Ge,openKeys:nn,rtl:zn,disabled:Xe,motion:mn?En:null,defaultMotions:mn?Fn:null,activeKey:pi,onActive:or,onInactive:lr,selectedKeys:Ci,inlineIndent:wn,subMenuOpenDelay:ct,subMenuCloseDelay:ht,forceSubMenuRender:sn,builtinPlacements:An,triggerSubMenuAction:un,getPopupContainer:ni,itemIcon:Mn,expandIcon:Nn,onItemClick:hr,onOpenChange:Fi},u.createElement(X.Provider,{value:sr},vr),u.createElement("div",{style:{display:"none"},"aria-hidden":!0},u.createElement(_.Provider,{value:rr},fn)))))}),Wi=Gi,di=Wi;di.Item=dt,di.SubMenu=Ei,di.ItemGroup=xi,di.Divider=wi;var Xi=di},66680:function(Ye,ae,o){"use strict";o.d(ae,{Z:function(){return x}});var s=o(67294);function x(T){var k=s.useRef();k.current=T;var A=s.useCallback(function(){for(var g,q=arguments.length,te=new Array(q),u=0;u2&&arguments[2]!==void 0?arguments[2]:!1,q=new Set;function te(u,P){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,W=q.has(u);if((0,x.ZP)(!W,"Warning: There may be circular references"),W)return!1;if(u===P)return!0;if(g&&ne>1)return!1;q.add(u);var O=ne+1;if(Array.isArray(u)){if(!Array.isArray(P)||u.length!==P.length)return!1;for(var V=0;V