You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
389 KiB
79 lines
389 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[96444],{25877:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return x}});var l=r(87462),E=r(67294),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},M=z,L=r(84089),v=function(d,X){return E.createElement(L.Z,(0,l.Z)({},d,{ref:X,icon:M}))},x=E.forwardRef(v)},73148:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return x}});var l=r(87462),E=r(67294),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},M=z,L=r(84089),v=function(d,X){return E.createElement(L.Z,(0,l.Z)({},d,{ref:X,icon:M}))},x=E.forwardRef(v)},56747:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return x}});var l=r(87462),E=r(67294),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},M=z,L=r(84089),v=function(d,X){return E.createElement(L.Z,(0,l.Z)({},d,{ref:X,icon:M}))},x=E.forwardRef(v)},50881:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return x}});var l=r(87462),E=r(67294),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},M=z,L=r(84089),v=function(d,X){return E.createElement(L.Z,(0,l.Z)({},d,{ref:X,icon:M}))},x=E.forwardRef(v)},22751:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return x}});var l=r(87462),E=r(67294),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},M=z,L=r(84089),v=function(d,X){return E.createElement(L.Z,(0,l.Z)({},d,{ref:X,icon:M}))},x=E.forwardRef(v)},34182:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return x}});var l=r(87462),E=r(67294),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},M=z,L=r(84089),v=function(d,X){return E.createElement(L.Z,(0,l.Z)({},d,{ref:X,icon:M}))},x=E.forwardRef(v)},74664:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return x}});var l=r(87462),E=r(67294),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},M=z,L=r(84089),v=function(d,X){return E.createElement(L.Z,(0,l.Z)({},d,{ref:X,icon:M}))},x=E.forwardRef(v)},91034:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return x}});var l=r(87462),E=r(67294),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},M=z,L=r(84089),v=function(d,X){return E.createElement(L.Z,(0,l.Z)({},d,{ref:X,icon:M}))},x=E.forwardRef(v)},6104:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return ae}});var l=r(67294),E=r(2453),z=r(85418),M=r(24577),L=r(67631),v=r.n(L),x=r(52262),se=r(74855),d=r(51959),X={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"},ie=(c,j,P)=>new Promise((T,A)=>{var f=Z=>{try{H(P.next(Z))}catch(re){A(re)}},R=Z=>{try{H(P.throw(Z))}catch(re){A(re)}},H=Z=>Z.done?T(Z.value):Promise.resolve(Z.value).then(f,R);H((P=P.apply(c,j)).next())});function de(c){if(isNaN(c))return{minutes:"00",seconds:"00"};const j=new Date(c*1e3).toISOString().substr(11,8);return{hour:j.substr(0,2),minutes:j.substr(3,2),seconds:j.substr(6,2)}}Object.defineProperty(HTMLMediaElement.prototype,"playing",{get:function(){return this.currentTime>0&&!this.paused&&!this.ended&&this.readyState>2}});function I(c,j){return c-j}function Y(c){c.sort(I);let j=0;for(let P=0;P<c.length-1;P++){let T=Math.abs(c[P+1]-c[P]);T<21&&(j+=T)}return j}const ne=/(android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini)/i;var ae=(0,l.forwardRef)(({allow_skip:c,src:j,toLog:P,videoId:T,logWatchHistory:A,courseId:f=null,startTime:R,handlePause:H=()=>{},handlePlay:Z=()=>{},handlePlayEnded:re=()=>{},autoPlay:ye=!1,onPlayEnded:we=()=>{},isShowWaterMark:$=!0},Ke)=>{var Q;const D=((Q=j==null?void 0:j.split("."))==null?void 0:Q.pop())==="flv",O=(0,l.useRef)(),Be=(0,l.useRef)(),Fe=(0,l.useRef)(),Ne=(0,l.useRef)(),ee=(0,l.useRef)(),Ee=(0,l.useRef)(),Te=(0,l.useRef)(),xe=(0,l.useRef)(),$e=(0,l.useRef)(),Tt=(0,l.useRef)(),dt=(0,l.useRef)(),Mt=(0,l.useRef)(),Dt=(0,l.useRef)(),Nt=(0,l.useRef)(),xt=navigator.userAgent.toLowerCase().match(ne),Rt=xt?xt[0]:"pc",It=(0,l.useRef)(!1),Pt=(0,x.eY)();let at=0,fe=0,J=0,o=null,s=!1,_=20,k=1,S=!1,B=!1,K=[];(0,l.useImperativeHandle)(Ke,()=>({getLastUpdatedTime:()=>O.current.currentTime,getDuration:()=>O.current.duration})),E.ZP.config({maxCount:1,getContainer:()=>Fe.current});const g=(0,l.useCallback)((ut,ht=!1)=>{let et={point:O.current.currentTime};o?(et.log_id=o,et.watch_duration=Y(K),et.total_duration=fe):(f?(et.video_id=parseInt(T,10),et.course_id=f):et.video_id=T,et.duration=at,et.device=Rt),ht&&(et.ed="1");function bt(){return ie(this,null,function*(){S=!0,o=yield A==null?void 0:A(et),S=!1,ut&&ut()})}bt()},[T,f]);(0,l.useEffect)(()=>{O.current&&(Ne.current.style.display="none",ee.current.style.display="block"),E.ZP.destroy();let ut=null;return M.Z.isSupported&&D&&j&&(j==null?void 0:j.indexOf(".m3u8"))<0?(ut=M.Z.createPlayer({type:"flv",volume:.8,cors:!0,url:j,muted:!1}),O.current&&(ut.attachMediaElement(O.current),ut.load())):O.current.setAttribute("src",j),G(),()=>{ut&&(ut.unload(),ut.pause(),ut.destroy(),ut=null)}},[O,D,j]);function F(){O.current.paused?(Ne.current.style.display="none",ee.current.style.display="block"):(Ne.current.style.display="block",ee.current.style.display="none")}function G(){dt.current.style.display="none",Dt.current.style.display="none",Mt.current.style.display="none",O.current.muted||O.current.volume===0?dt.current.style.display="block":O.current.volume>0&&O.current.volume<=.5?Dt.current.style.display="block":Mt.current.style.display="block"}(0,l.useEffect)(()=>{const ut=document.getElementById("play"),ht=document.querySelectorAll(".playback-icons use");function et(){Z(),R&&!It.current&&(O.current.currentTime=R),It.current=!0,K.push(O.current.currentTime),s||(s=!0,P&&g())}function bt(){return ie(this,null,function*(){F(),K.push(O.current.currentTime),P&&g(()=>{o=null,J=0,s=!1,S=!1,B=!1,K=[],fe=0,k=1},!0),we()})}function Ce(){Ee.current.value=Math.round(O.current.currentTime),Te.current.value=Math.round(O.current.currentTime)}function Kt(){const yt=de(Math.round(O.current.currentTime));$e.current.innerText=`${yt.hour>0?yt.hour+":":""}${yt.minutes}:${yt.seconds}`,$e.current.setAttribute("datetime",`${yt.hour>0?" "+yt.hour+" ":""}${yt.minutes}m ${yt.seconds}s`)}function Ft(){var yt,N,ce,me,_e,He,Me;const Pe=Math.round((yt=O.current)==null?void 0:yt.duration);(ce=(N=Ee.current)==null?void 0:N.setAttribute)==null||ce.call(N,"max",Pe),(_e=(me=Te.current)==null?void 0:me.setAttribute)==null||_e.call(me,"max",Pe);const Ae=de(Pe);xe.current&&(xe.current.innerText=`${Ae.hour>0?Ae.hour+":":""}${Ae.minutes}:${Ae.seconds}`,(Me=(He=xe.current).setAttribute)==null||Me.call(He,"datetime",`${Ae.hour>0?" "+Ae.hour+" ":""}${Ae.minutes}m ${Ae.seconds}s`))}function At(){try{const yt=Math.round(O.current.duration);Ee.current.setAttribute("max",yt),Te.current.setAttribute("max",yt);const N=de(yt);xe.current.innerText=`${N.hour>0?N.hour+":":""}${N.minutes}:${N.seconds}`,xe.current.setAttribute("datetime",`${N.hour>0?" "+N.hour+" ":""}${N.minutes}m ${N.seconds}s`),Ce(),Kt();const{width:ce,height:me,x:_e,y:He}=Be.current.getBoundingClientRect();if(_e<0||He<0||!ce)return;if(!B){let Me=O.current.currentTime,Pe=Me-J;Math.abs(Pe)<10?(fe+=Math.abs(Pe),J=Me,S||fe-k*_>=0&&(k++,K.push(J),P&&g())):(J=Me,P&&g())}}catch(yt){console.log(yt)}}function Bt(){B=!0}function Wt(){O.current.playing&&K.push(O.current.currentTime,J),J=O.current.currentTime,B=!1}function kt(){at=O.current.duration,at<=20&&(_=at/3),O.current.addEventListener("play",et)}function Zt(yt){yt.preventDefault(),(0,d.vp)()?(O.current.style.width="100%",O.current.style.height="100%"):O.current.style.cssText=""}function $t(){H()}function Ht(yt){if(!c){E.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");return}const N=yt.target.dataset.seek?yt.target.dataset.seek:yt.target.value;O.current.currentTime=N,Te.current.value=N,Ee.current.value=N}function mt(yt){const N=Math.round(yt.offsetX/yt.target.clientWidth*parseInt(yt.target.getAttribute("max"),10));Ee.current.setAttribute("data-seek",N);const ce=de(N);Tt.current.textContent=`${ce.hour>0?ce.hour+":":""}${ce.minutes}:${ce.seconds}`;const me=O.current.getBoundingClientRect();Tt.current.style.left=`${yt.pageX-me.left}px`}function en(yt){switch(yt.code){case"Space":yt.preventDefault(),Ze();break;case"ArrowRight":if(yt.preventDefault(),!c){E.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(O.current.currentTime>=O.current.duration)break;O.current.currentTime=parseInt(O.current.currentTime)+5,Ce();break;case"ArrowLeft":if(yt.preventDefault(),!c){E.ZP.warning("\u8BE5\u89C6\u9891\u7981\u6B62\u5FEB\u8FDB/\u540E\u9000\u64AD\u653E");break}if(O.current.currentTime===0)break;O.current.currentTime=parseInt(O.current.currentTime)-5,Ce();break;case"ArrowUp":yt.preventDefault(),O.current.volume<1&&(O.current.volume=(parseInt(O.current.volume*10)+1)/10);break;case"ArrowDown":yt.preventDefault(),O.current.volume>0&&(O.current.volume=(parseInt(O.current.volume*10)-1)/10);break}}return Fe.current.addEventListener((0,d.gH)(),Zt),O.current.addEventListener("canplay",kt),O.current.addEventListener("ended",bt),O.current.addEventListener("seeking",Bt),O.current.addEventListener("seeked",Wt),O.current.addEventListener("loadedmetadata",Ft),Ee.current.addEventListener("mousemove",mt),Ee.current.addEventListener("input",Ht),O.current.addEventListener("timeupdate",At),O.current.addEventListener("pause",$t),O.current.addEventListener("volumechange",G),document.addEventListener("keydown",en),()=>{var yt,N,ce,me,_e,He,Me,Pe,Ae,Ie,q,e;(yt=O.current)==null||yt.removeEventListener("canplay",kt),(N=O.current)==null||N.removeEventListener("play",et),(ce=O.current)==null||ce.removeEventListener("ended",bt),(me=O.current)==null||me.removeEventListener("seeking",Bt),(_e=O.current)==null||_e.removeEventListener("seeked",Wt),(He=Ee.current)==null||He.removeEventListener("mousemove",mt),(Me=Ee.current)==null||Me.removeEventListener("input",Ht),(Pe=O.current)==null||Pe.removeEventListener("timeupdate",At),(Ae=O.current)==null||Ae.removeEventListener("pause",$t),(Ie=O.current)==null||Ie.removeEventListener("loadedmetadata",Ft),(q=O.current)==null||q.removeEventListener("volumechange",G),document.removeEventListener("keydown",en),(e=O.current)!=null&&e.playing&&(K.push(J,O.current.currentTime),P&&g())}},[O,j]),(0,l.useEffect)(()=>{if(O.current.onended=()=>{re(O)},O.current.oncontextmenu=()=>!1,(j==null?void 0:j.indexOf(".m3u8"))>-1){if(O.current.canPlayType("application/vnd.apple.mpegurl"))O.current.src=j;else if(v().isSupported()){var ut=new(v());ut.loadSource(j),ut.attachMedia(O.current)}}},[j]);const[le,Le]=(0,l.useState)(1),Ze=()=>{O.current.paused||O.current.ended?O.current.play():O.current.pause(),F()};function Ye(){O.current.muted=!O.current.muted,O.current.muted?(Nt.current.setAttribute("data-volume",volume.value),Nt.current.value=0):Nt.current.value=Nt.current.dataset.volume}return l.createElement("div",{style:{position:"relative"},ref:Fe},l.createElement("div",{ref:Be,className:`${X.watermark} animated_alternate animate__animated_10s animate__infinite animate__stepstart ${X.animate__loop}`},$&&Pt?Pt.login:" "),l.createElement("div",{className:X.container},l.createElement("div",{className:X["video-container"],id:"video-container"},l.createElement("div",{className:X["playback-animation"],id:"playback-animation"},l.createElement("svg",{className:X["playback-icons"]},l.createElement("use",{className:"hidden",href:"#play-icon"}),l.createElement("use",{href:"#pause"}))),l.createElement("video",{className:X.video,id:"video",preload:"auto",disablePictureInPicture:!0,ref:O,autoPlay:ye}),l.createElement("div",{className:`${X["video-controls"]} `,id:"video-controls"},l.createElement("div",{className:X["bottom-controls"]},l.createElement("div",{className:X["left-controls"]},l.createElement("button",{"data-title":"\u64AD\u653E/\u6682\u505C",id:"play",onClick:Ze},l.createElement("svg",{className:X["playback-icons"]},l.createElement("use",{ref:ee,href:"#play-icon"}),l.createElement("use",{ref:Ne,style:{display:"none"},href:"#pause"}))),l.createElement("div",{className:X.time},l.createElement("time",{id:"time-elapsed",ref:$e},"00:00"),l.createElement("span",null," / "),l.createElement("time",{id:"duration",ref:xe},"00:00"))),l.createElement("div",{className:X["right-controls"]},c&&l.createElement(z.Z,{placement:"top",overlayClassName:X.rateOverlay,getPopupContainer:ut=>ut.parentNode,menu:{items:[{key:"1",label:l.createElement("span",{onClick:()=>{Le(1),O.current.playbackRate=1}},"1.0x")},{key:"2",label:l.createElement("span",{onClick:()=>{Le(1.5),O.current.playbackRate=1.5}},"1.5x")},{key:"3",label:l.createElement("span",{onClick:()=>{Le(2),O.current.playbackRate=2}},"2.0x")}]}},l.createElement("div",{className:`${X.controlText} mr5`},"\u500D\u901F")),l.createElement(se.CopyToClipboard,{text:j,onCopy:()=>E.ZP.success("\u590D\u5236\u6210\u529F")},l.createElement("button",{"data-title":"\u590D\u5236\u94FE\u63A5"},l.createElement("i",{className:"icon-lianjie2 iconfont",style:{fontSize:"12px",color:"white"}}))),l.createElement("div",{className:X["volume-controls"]},l.createElement("button",{"data-title":"\u5F00\u542F/\u5173\u95ED\u58F0\u97F3",className:X["volume-button"],id:"volume-button",onClick:Ye},l.createElement("i",{ref:dt,className:"icon-a-bianzu8 iconfont",style:{fontSize:"14px",color:"white"}}),l.createElement("i",{ref:Dt,className:"icon-shengyinkaibeifen iconfont",style:{fontSize:"14px",color:"white"}}),l.createElement("i",{ref:Mt,className:"icon-shengyinkai iconfont",style:{fontSize:"14px",color:"white"}})),l.createElement("input",{className:X.volume,id:"volume",value:"1","data-mute":"0.5",type:"range",max:"1",min:"0",step:"0.01",ref:Nt,style:{display:"none"},onClick:G})),l.createElement("button",{"data-title":"\u5168\u5C4F/\u9000\u51FA\u5168\u5C4F",className:X["fullscreen-button"],onClick:()=>{(0,d.vp)()?(0,d.BU)():(0,d.Dj)(Fe.current)}},l.createElement("i",{className:"icon-fangda1 iconfont",style:{fontSize:"12px",color:"white"}})))),l.createElement("div",{className:X["video-progress"]},l.createElement("progress",{ref:Te,value:"0",min:"0"}),l.createElement("input",{className:X.seek,ref:Ee,value:"0",min:"0",type:"range",step:"1"}),l.createElement("div",{className:X["seek-tooltip"],ref:Tt,id:"seek-tooltip"},"00:00"))))),l.createElement("svg",{style:{display:"none"}},l.createElement("defs",null,l.createElement("symbol",{id:"pause",viewBox:"0 0 24 24"},l.createElement("path",{d:"M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"})),l.createElement("symbol",{id:"play-icon",viewBox:"0 0 24 24"},l.createElement("path",{d:"M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"})),l.createElement("symbol",{id:"volume-high",viewBox:"0 0 24 24"},l.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"})),l.createElement("symbol",{id:"volume-low",viewBox:"0 0 24 24"},l.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"})),l.createElement("symbol",{id:"volume-mute",viewBox:"0 0 24 24"},l.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"})),l.createElement("symbol",{id:"fullscreen",viewBox:"0 0 24 24"},l.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"})),l.createElement("symbol",{id:"fullscreen-exit",viewBox:"0 0 24 24"},l.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"})),l.createElement("symbol",{id:"pip",viewBox:"0 0 24 24"},l.createElement("path",{d:"M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"})))))})},99914:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return E}});var l=r(67294);function E(z,M){const L=(0,l.useRef)();(0,l.useEffect)(()=>{L.current=z}),(0,l.useEffect)(()=>{function v(){L.current()}if(M!==null){let x=setInterval(v,M);return()=>clearInterval(x)}},[M])}},28805:function(St,Oe,r){"use strict";r.r(Oe),r.d(Oe,{default:function(){return g},formatQuery:function(){return B}});var l=r(67294),E=r(35973),z=r(57953),M={bg:"bg___eq_Aq",container:"container___j770l",widthle:"widthle___ouh1T"},L=r(19575),v=r(6104),x=r(14446),se=r(12604),d=r(47897),X=r(32983),ie={contentWrap:"contentWrap___xMJQi",title:"title___z4t4P",footer:"footer___CLzrT",footer_left:"footer_left___N2sZZ",footer_bfcs:"footer_bfcs___UmvUE",footer_bfcs_value:"footer_bfcs_value___yiYga",pingfen:"pingfen___aEEMe",fenshu:"fenshu___I6HCo",radioGroup:"radioGroup___RT1dL",wrap:"wrap___QZGSJ",introName:"introName___m17tA",rating:"rating___MXLBr",modalRating:"modalRating___aluwj",zdbf:"zdbf___9PNEF"},de=r(99914),I=r(56188),Y=r(28706),ne=r(67294),ae=Object.defineProperty,c=Object.getOwnPropertySymbols,j=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,T=(F,G,le)=>G in F?ae(F,G,{enumerable:!0,configurable:!0,writable:!0,value:le}):F[G]=le,A=(F,G)=>{for(var le in G||(G={}))j.call(G,le)&&T(F,le,G[le]);if(c)for(var le of c(G))P.call(G,le)&&T(F,le,G[le]);return F},f=(F,G)=>{var le={};for(var Le in F)j.call(F,Le)&&G.indexOf(Le)<0&&(le[Le]=F[Le]);if(F!=null&&c)for(var Le of c(F))G.indexOf(Le)<0&&P.call(F,Le)&&(le[Le]=F[Le]);return le},R=(F,G,le)=>new Promise((Le,Ze)=>{var Ye=et=>{try{ht(le.next(et))}catch(bt){Ze(bt)}},ut=et=>{try{ht(le.throw(et))}catch(bt){Ze(bt)}},ht=et=>et.done?Le(et.value):Promise.resolve(et.value).then(Ye,ut);ht((le=le.apply(F,G)).next())});const H=F=>{var G=F,{videoDetail:le,globalSetting:Le,loading:Ze,dispatch:Ye}=G,ut=f(G,["videoDetail","globalSetting","loading","dispatch"]);const{queryParams:ht,selectParams:et,videoList:bt}=le,{subject_id:Ce,videoId:Kt}=ht,{checkBoxValue:Ft,radioValue:At}=et,Bt={videoId:Kt},Wt={query:ht},kt=(0,l.useRef)(),Zt=(0,l.useRef)(),$t=(0,l.useRef)(),Ht=(0,l.useRef)(5),{video_item:mt}=le.detail||{};(0,de.Z)(()=>R(void 0,null,function*(){Zt.current&&(console.log("videoRef lastUpdatedTime: ",kt.current.getLastUpdatedTime()),console.log(kt.current),yield en())}),Ht.current*1e3);const en=(Pe=!1)=>{const Ae=Pe?{is_f:1}:{};return(0,I.DH)(A(A({},Ae),{id:Bt.videoId,point:kt.current.getLastUpdatedTime(),total:kt.current.getDuration()}))},yt=Pe=>(Pe.ed==="1"&&(Zt.current=!1,en(!0)),!Zt.current&&!Pe.ed&&(Zt.current=!0,Ht.current=kt.current.getDuration()<=5?1:5,en()),Ye({type:"userDetail/logWatchHistory",payload:Pe})),N=()=>{Zt.current=!1},ce=()=>{Zt.current=!0},me=()=>{$t.current=5,x.default.confirm({width:600,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u8BF7\u7ED9\u672C\u89C6\u9891\u8BC4\u5206",content:ne.createElement("div",{className:"tc font14"},ne.createElement(se.Z,{defaultValue:$t.current,onChange:Pe=>$t.current=Pe,className:ie.modalRating})),onOk:()=>R(void 0,null,function*(){if((yield(0,I.jK)({id:Bt.videoId,star:$t.current})).status===0){const{course_id:Ae}=(0,Y.oP)();Ye({type:"videoDetail/getVideoDetail",payload:{id:Bt.videoId,videoId:Bt.videoId,course_id:Ae,subject_id:Ce}})}})})},_e=Pe=>{const Ae=window.filterVideoSign,Ie=Ae.findIndex(a=>a.id===Kt);if(Ie===Ae.length-1)return;const e=Ae[Ie+1].id,t=Ae[Ie+1].can_view,n=Ae[Ie+1].link,i=Ae[Ie+1].is_public;if(window.checkBoxValue){if(n){window.open(n);return}if(!t){x.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:ne.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});return}if(!i){x.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:ne.createElement("div",{className:"tc font14"},"\u4E0B\u4E00\u6761\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}Ye({type:"videoDetail/handleListItemClick",payload:{videoId:e}}),window.videoTimer=setTimeout(()=>{Pe.current.play()},2e3)}},He=(Pe,Ae)=>{if(Pe==="checkBox"){const Ie=Ae;window.checkBoxValue=Ie,Ye({type:"videoDetail/setSelectValue",payload:{radioValue:At,checkBoxValue:Ie}});return}Ye({type:"videoDetail/setSelectValue",payload:{checkBoxValue:Ft,radioValue:Ae.target.value}})},Me=()=>bt.findIndex(Ie=>Ie.id===Kt)===bt.length-1?ne.createElement("div",null,"\u5F53\u524D\u5DF2\u662F\u6700\u540E\u4E00\u4E2A\u89C6\u9891"):ne.createElement("div",null,ne.createElement(d.Z,{onChange:Ie=>{He("checkBox",Ie)},defaultChecked:Ft,size:"small"}),ne.createElement("span",{className:ie.zdbf},"\u81EA\u52A8\u64AD\u653E\u4E0B\u4E00\u4E2A\u89C6\u9891"));return ne.createElement("aside",{className:ie.contentWrap},ne.createElement("aside",{className:ie.wrap},ne.createElement("header",null),ne.createElement("div",{className:ie.title},mt==null?void 0:mt.name),!(mt!=null&&mt.can_edit)&&!(mt!=null&&mt.is_public)?ne.createElement(X.Z,{description:"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85"}):ne.createElement(v.Z,{ref:kt,startTime:mt==null?void 0:mt.last_point,src:mt!=null&&mt.is_link?mt==null?void 0:mt.link:(mt==null?void 0:mt.play_url)&&L.Base64.decode(mt==null?void 0:mt.play_url),videoId:mt==null?void 0:mt.video_id,logWatchHistory:yt,handlePause:N,handlePlay:ce,allow_skip:mt==null?void 0:mt.allow_skip,handlePlayEnded:_e,toLog:()=>{}}),ne.createElement("div",{className:ie.footer},ne.createElement("div",{className:ie.footer_left},ne.createElement("div",{className:ie.pingfen},"\u8BC4\u5206"),ne.createElement(se.Z,{value:mt==null?void 0:mt.star,disabled:!0,className:ie.rating,style:{color:"#FFA100",fontSize:12,marginLeft:10}}),ne.createElement("div",{className:ie.fenshu},(mt==null?void 0:mt.star)||0,"\u5206")),!(mt!=null&&mt.can_edit)&&!(mt!=null&&mt.is_public)?null:ne.createElement("div",null,ne.createElement("div",{className:ie.checkBox},Me()))),ne.createElement("div",{className:"mt10"},(mt==null?void 0:mt.description)&&ne.createElement("span",{className:ie.introName},"\u7B80\u4ECB\uFF1A",mt.description))))};var Z=(0,E.connect)(({videoDetail:F,loading:G,globalSetting:le})=>({videoDetail:F,globalSetting:le,loading:G}))(H),re=r(2453),ye=r(79870),we={flex_box_center:"flex_box_center___yWqSL",flex_space_between:"flex_space_between___LgFmv",flex_box_vertical_center:"flex_box_vertical_center____lt6U",flex_box_center_end:"flex_box_center_end___UqkaD",flex_box_column:"flex_box_column___V8XLF",list:"list___8tjfT",tree_style:"tree_style___ZzDvO",title:"title___IVfkQ",gray:"gray___RnyYk",brght:"brght___EWRNa",s1:"s1___dPBQg",s3:"s3___SRBBG",active:"active___hsNCX",tree_line:"tree_line___EGn30",tabs_style:"tabs_style___Nwkiq",tabs_item:"tabs_item___Vzu_U",tabs_item_active:"tabs_item_active___BcIwZ"},$=r(15835),Ke=r(93686),Q=r(11320),ue=r(67294),D=Object.defineProperty,O=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,Fe=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,Ee=(F,G,le)=>G in F?D(F,G,{enumerable:!0,configurable:!0,writable:!0,value:le}):F[G]=le,Te=(F,G)=>{for(var le in G||(G={}))Ne.call(G,le)&&Ee(F,le,G[le]);if(Fe)for(var le of Fe(G))ee.call(G,le)&&Ee(F,le,G[le]);return F},xe=(F,G)=>O(F,Be(G)),$e=(F,G)=>{var le={};for(var Le in F)Ne.call(F,Le)&&G.indexOf(Le)<0&&(le[Le]=F[Le]);if(F!=null&&Fe)for(var Le of Fe(F))G.indexOf(Le)<0&&ee.call(F,Le)&&(le[Le]=F[Le]);return le},Tt=(F,G,le)=>new Promise((Le,Ze)=>{var Ye=et=>{try{ht(le.next(et))}catch(bt){Ze(bt)}},ut=et=>{try{ht(le.throw(et))}catch(bt){Ze(bt)}},ht=et=>et.done?Le(et.value):Promise.resolve(et.value).then(Ye,ut);ht((le=le.apply(F,G)).next())});const dt=[{name:"\u5B9E\u8DF5\u9879\u76EE",type:"Shixun",icon:ue.createElement("i",{className:"iconfont icon-shixun2 font20"}),bq:ue.createElement("span",{style:{border:"1px solid #FF9D18",color:"#FF9D18"},className:we.s1},"\u5B9E\u8BAD")},{name:"\u89C6\u9891\u9879\u76EE",type:"VideoItem",icon:ue.createElement("i",{className:"iconfont icon-shipin font20"}),bq:ue.createElement("span",{style:{border:"1px solid #9B18FF",color:"#9B18FF"},className:we.s1},"\u89C6\u9891")},{name:"\u6559\u5B66\u8BFE\u4EF6",type:"Attachment",icon:ue.createElement("i",{className:"iconfont icon-jiaoxueanli font20"}),bq:ue.createElement("span",{style:{border:"1px solid #3061D0",color:"#3061D0"},className:we.s1},"\u8D44\u6599")},{name:"\u7A7A\u76EE\u5F55",type:"StageCatalog",icon:ue.createElement("i",{className:"iconfont icon-kongbai font20"}),bq:ue.createElement("span",null)}],Mt=F=>{var G=F,{dispatch:le,pathsDetail:Le,videoDetail:Ze,user:Ye}=G,ut=$e(G,["dispatch","pathsDetail","videoDetail","user"]);const{queryParams:ht,stages:et,cust_seq:bt,active:Ce}=Ze,{subject_id:Kt,course_id:Ft}=ht,At=(0,E.useParams)(),[Bt]=(0,E.useSearchParams)(),[Wt,kt]=(0,l.useState)([]),[Zt,$t]=(0,l.useState)([(Ce==null?void 0:Ce.id)||Number(At.videoId)]),[Ht,mt]=(0,l.useState)("\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55"),en=[".PDF",".DOC",".DOCX",".XLS",".XLSX",".PPT",".PPTX"];(0,l.useEffect)(()=>{le(Kt?{type:"videoDetail/getStageData",payload:{subject_id:Kt,page_type:"video"}}:{type:"videoDetail/getCourseStageData",payload:{coursesId:Ft}})},[]),(0,l.useEffect)(()=>{yt()},[Ze==null?void 0:Ze.stages]);const yt=()=>{let Ie=Wt;et.forEach((q,e)=>{Ie.push({title:ue.createElement("div",{title:q.stage_name,className:we.title},q.stage_name),value:q==null?void 0:q.stage_id,key:q==null?void 0:q.stage_id,icon:ue.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:N(q.items||[])})}),kt(Ie)},N=Ie=>{function q(e){var t;const n=e.children,i=Array.isArray(n)&&n.length>0,a=e==null?void 0:e.id,{name:m,item_type:w,id:pe}=e,oe=(t=dt.find(gt=>gt.type===w))==null?void 0:t.bq,ke=we.brght,Qe=Ce.id===pe?`${ke} ${we.active}`:ke;return{title:ue.createElement("div",{onClick:()=>He(e),className:ke,title:m},oe,ue.createElement("div",{className:we.s3},m)),value:a,key:a,icon:ue.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:i?n==null?void 0:n.map(gt=>q(gt)):[]}}return Ie==null?void 0:Ie.map(e=>q(e))},ce=(Ie,q)=>Tt(void 0,null,function*(){le({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u7A0D\u540E..."}});const e=q?yield(0,Ke.BK)({id:Ie}):yield(0,Ke.Ir)({id:Ie});if(le({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),e!=null&&e.game_identifier||e!=null&&e.identifier){(0,Y.xg)(q?`/tasks/${e==null?void 0:e.identifier}/jupyter`:`/tasks/${e.game_identifier}`);return}(e==null?void 0:e.status)===2?_e(e==null?void 0:e.message):(e==null?void 0:e.status)===3&&me(e==null?void 0:e.message)}),me=Ie=>{x.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ue.createElement("div",{className:"tc font16"},"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",Ie,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},_e=Ie=>{Ie=Ie!=null&&Ie.includes(".json")?Ie:`${Ie}.json`,x.default.confirm({centered:!0,title:"\u63D0\u793A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:ue.createElement("div",{className:"tc font16"},"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>Tt(void 0,null,function*(){const q=yield(0,$.L8)({url:Ie});if(!q)return;re.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const e=yield(0,Ke.Ir)({id:q.shixun_identifier});if(e!=null&&e.game_identifier){(0,Y.xg)(`/tasks/${e.game_identifier}`);return}(e==null?void 0:e.status)===2?_e(e==null?void 0:e.message):(e==null?void 0:e.status)===3&&me(e==null?void 0:e.message)})})},He=Ie=>{var q,e,t,n,i;if((Ie==null?void 0:Ie.item_type)==="StageCatalog")return;clearTimeout(window.videoTimer);const{id:a,item_type:m,identifier:w,is_jupyter:pe,url:oe,link:ke}=Ie;if(m==="VideoItem"&&!ke){if(!((q=Ye.userInfo)!=null&&q.admin)&&!((e=Ye.userInfo)!=null&&e.business)&&!Ie.can_view){x.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:ue.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u4E3A\u521B\u5EFA\u8005\u6240\u5C5E\u5355\u4F4D\u5185\u90E8\u6559\u5B66\u8D44\u6599\uFF0C\u5916\u5355\u4F4D\u7528\u6237\u65E0\u89C2\u770B\u6743\u9650")});return}le({type:"videoDetail/handleListItemClick",payload:{videoId:a}}),le({type:"videoDetail/getVideoDetail",payload:xe(Te({id:a},ht),{videoId:a}),callback:Qe=>{if(Qe&&Qe.video_item&&!Qe.video_item.can_edit&&!Ie.is_public){x.default.info({centered:!0,width:400,okText:"\u77E5\u9053\u5566",icon:null,content:ue.createElement("div",{className:"tc font14"},"\u5F53\u524D\u89C6\u9891\u6682\u672A\u516C\u5F00\uFF0C\u656C\u8BF7\u671F\u5F85")});return}}});return}if(m==="VideoItem"&&ke){Ie.link&&(0,I.DH)({is_f:1,id:Ie.id,point:0,total:0}),window.open(ke);return}if(m==="Shixun"){ce(w,pe);return}if(m==="Attachment"){if(ke){(0,Y.xg)(ke);return}let Qe=(n=Ie==null?void 0:Ie.name)==null?void 0:n.substr((t=Ie==null?void 0:Ie.name)==null?void 0:t.lastIndexOf("."));if(en.includes(Qe.toUpperCase())){le({type:"videoDetail/handleListItemClick",payload:{attachmentId:a}});return}else{if(!((i=Le.detail)!=null&&i.allow_download)){re.ZP.info("\u6559\u5B66\u8BFE\u4EF6\u4E0D\u652F\u6301\u4E0B\u8F7D");return}(0,Y.FH)(Ie.name,Q.Z.API_SERVER+Ie.url);return}}window.open(Q.Z.IMG_SERVER+oe)},Me=Ie=>{let q=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],e=["","\u5341","\u767E","\u5343","\u4E07"];Ie=parseInt(Ie);let t=a=>{let m=a.toString().split("").reverse(),w="";for(var pe=0;pe<m.length;pe++)w=(pe==0&&m[pe]==0||pe>0&&m[pe]==0&&m[pe-1]==0?"":q[m[pe]]+(m[pe]==0?e[0]:e[pe]))+w;return w},n=Math.floor(Ie/1e4),i=Ie%1e4;return i.toString().length<4&&(i="0"+i),n?t(n)+"\u4E07"+t(i):t(Ie)},Pe=(Ie,q,e,t)=>{var n;const{name:i,item_type:a,id:m}=Ie,w=`${q+1}-${e+1}-${t+1}`,pe=(n=dt.find(Qe=>Qe.type===a))==null?void 0:n.icon,oe=we.brght,ke=Ce.id===m?`${oe} ${we.active}`:oe;return ue.createElement("div",{key:w,onClick:()=>He(Ie),className:ke,style:{paddingLeft:52}},ue.createElement("span",{className:we.s1},pe),!!bt&&ue.createElement("span",{className:we.s2},w),ue.createElement("span",{className:we.s3},"\u203B ",i))},Ae=(Ie,q,e)=>{var t;const{name:n,item_type:i,id:a,children:m}=Ie,w=`${q+1}-${e+1}`,pe=(t=dt.find(Qe=>Qe.type===i))==null?void 0:t.icon,oe=we.brght,ke=Ce.id===a?`${oe} ${we.active}`:oe;return ue.createElement(l.Fragment,{key:w},ue.createElement("div",{onClick:()=>He(Ie),className:ke},ue.createElement("span",{className:we.s1},pe),!!bt&&ue.createElement("span",{className:we.s2},w),ue.createElement("span",{className:we.s3},"\u203B ",n)),!!m.length&&m.map((Qe,gt)=>Pe(Qe,q,e,gt)))};return ue.createElement("aside",{className:we.list},ue.createElement("div",{className:we.tabs_style},ue.createElement("div",{className:we.tabs_item,onClick:()=>{mt("\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55")}},"\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55",Ht=="\u8BFE\u7A0B\u8D44\u6E90\u76EE\u5F55"&&ue.createElement("div",{className:we.tabs_item_active}))),ue.createElement("div",{className:we.tree_style},(Wt==null?void 0:Wt.length)>0&&ue.createElement(ye.default,{selectedKeys:Zt,onSelect:(Ie,q)=>{$t([...Ie])},blockNode:!0,treeData:Wt,defaultExpandAll:!0,className:we.tree_line})))};var Dt=(0,E.connect)(({user:F,videoDetail:G,loading:le,globalSetting:Le,pathsDetail:Ze})=>({user:F,videoDetail:G,globalSetting:Le,loading:le,pathsDetail:Ze}))(Mt),Nt=r(91613),xt=r(67294),Rt=Object.defineProperty,It=Object.defineProperties,Pt=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,J=Object.prototype.propertyIsEnumerable,o=(F,G,le)=>G in F?Rt(F,G,{enumerable:!0,configurable:!0,writable:!0,value:le}):F[G]=le,s=(F,G)=>{for(var le in G||(G={}))fe.call(G,le)&&o(F,le,G[le]);if(at)for(var le of at(G))J.call(G,le)&&o(F,le,G[le]);return F},_=(F,G)=>It(F,Pt(G)),k=(F,G)=>{var le={};for(var Le in F)fe.call(F,Le)&&G.indexOf(Le)<0&&(le[Le]=F[Le]);if(F!=null&&at)for(var Le of at(F))G.indexOf(Le)<0&&J.call(F,Le)&&(le[Le]=F[Le]);return le},S=(F,G,le)=>new Promise((Le,Ze)=>{var Ye=et=>{try{ht(le.next(et))}catch(bt){Ze(bt)}},ut=et=>{try{ht(le.throw(et))}catch(bt){Ze(bt)}},ht=et=>et.done?Le(et.value):Promise.resolve(et.value).then(Ye,ut);ht((le=le.apply(F,G)).next())});const B=F=>{const{subject_id:G}=F;return{subject_id:G,course_id:G}},K=F=>{var G=F,{videoDetail:le,globalSetting:Le,loading:Ze,pathsDetail:Ye,dispatch:ut}=G,ht=k(G,["videoDetail","globalSetting","loading","pathsDetail","dispatch"]),et,bt;const{queryParams:Ce,videoList:Kt,attachmentList:Ft,active:At}=le,{subject_id:Bt,videoId:Wt}=Ce,kt={videoId:Wt};(0,l.useEffect)(()=>{if(At){const{item_type:Ht,id:mt}=At;Ht==="VideoItem"&&ut({type:"videoDetail/getVideoDetail",payload:_(s({},Ce),{id:mt})})}},[At.id]),console.log("---",At),(0,l.useEffect)(()=>{Bt&&Zt()},[]);function Zt(){return S(this,null,function*(){const Ht=yield ut({type:"pathsDetail/getPathsDetail",payload:{id:Bt}})})}(0,l.useEffect)(()=>{var Ht,mt;(0,Y.Dk)((mt=(Ht=le.detail)==null?void 0:Ht.video_item)==null?void 0:mt.name)},[le]);let $t={width:1200};return At&&At.item_type==="Attachment"&&At.content_type==="application/pdf"&&($t={width:1250,marginLeft:(document.body.clientWidth-1200)/2}),xt.createElement(z.Z,{spinning:!1},xt.createElement("section",{className:M.bg},xt.createElement("div",{className:M.container,style:$t},xt.createElement(Dt,null),At&&At.item_type==="VideoItem"&&xt.createElement(Z,null),At&&At.item_type==="Attachment"&&At.content_type==="application/pdf"&&At.url&&xt.createElement("div",{className:M.widthle},xt.createElement(Nt.Z,{disabledDownload:!((et=Ye.detail)!=null&&et.allow_download),type:"pdf",filename:At.name,data:Q.Z.API_SERVER+At.url,style:{position:"absolute",zIndex:1}})),At&&At.item_type==="Attachment"&&["application/msword","application/vnd.ms-excel","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.wordprocessingml.document"].includes(At.content_type)&&At.url&&xt.createElement("div",{className:M.widthle},xt.createElement(Nt.Z,{disabledDownload:!((bt=Ye.detail)!=null&&bt.allow_download),type:"office",data:Q.Z.API_SERVER+At.url,style:{position:"absolute",zIndex:1}})))))};var g=(0,E.connect)(({videoDetail:F,loading:G,globalSetting:le,pathsDetail:Le})=>({videoDetail:F,globalSetting:le,loading:G,pathsDetail:Le}))(K)},51959:function(St,Oe,r){"use strict";r.d(Oe,{BU:function(){return E},Dj:function(){return l},gH:function(){return z},vp:function(){return M}});function l(L){try{L.mozRequestFullScreen?L.mozRequestFullScreen():L.webkitRequestFullScreen&&L.webkitRequestFullScreen()}catch(v){console.log(v,":e")}}function E(){window.top.document.webkitExitFullscreen?window.top.document.webkitExitFullscreen():document.exitFullscreen?window.top.document.exitFullscreen():document.msExitFullscreen?window.top.document.msExitFullscreen():document.mozCancelFullScreen&&window.top.document.mozCancelFullScreen()}const z=()=>{if(document.webkitExitFullscreen)return"webkitfullscreenchange";if(document.exitFullscreen)return"fullscreenchange";if(document.msExitFullscreen)return"msfullscreenchange";if(document.mozCancelFullScreen)return"mozfullscreenchange"};function M(){var L=window.top.document.fullscreenElement||window.top.document.mozFullscreenElement||window.top.document.webkitFullscreenElement,v=document.fullscreenEnabled||document.mozFullscreenEnabled||document.webkitFullscreenEnabled;return console.log("fullscreenElement",L),window.isFullScreen?window.isFullScreen:L!=null}},24577:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return Ie}});class l{static install(){Object.setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Object.assign=Object.assign||function(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");let t=Object(e);for(let n=1;n<arguments.length;n++){let i=arguments[n];if(i!=null)for(let a in i)i.hasOwnProperty(a)&&(t[a]=i[a])}return t},typeof self.Promise!="function"&&r(82702).polyfill()}}l.install();var E=l,z=r(17187),M=r.n(z);class L{static e(e,t){(!e||L.FORCE_GLOBAL_TAG)&&(e=L.GLOBAL_TAG);let n=`[${e}] > ${t}`;L.ENABLE_CALLBACK&&L.emitter.emit("log","error",n),L.ENABLE_ERROR&&(console.error?console.error(n):console.warn?console.warn(n):console.log(n))}static i(e,t){(!e||L.FORCE_GLOBAL_TAG)&&(e=L.GLOBAL_TAG);let n=`[${e}] > ${t}`;L.ENABLE_CALLBACK&&L.emitter.emit("log","info",n),L.ENABLE_INFO&&(console.info?console.info(n):console.log(n))}static w(e,t){(!e||L.FORCE_GLOBAL_TAG)&&(e=L.GLOBAL_TAG);let n=`[${e}] > ${t}`;L.ENABLE_CALLBACK&&L.emitter.emit("log","warn",n),L.ENABLE_WARN&&(console.warn?console.warn(n):console.log(n))}static d(e,t){(!e||L.FORCE_GLOBAL_TAG)&&(e=L.GLOBAL_TAG);let n=`[${e}] > ${t}`;L.ENABLE_CALLBACK&&L.emitter.emit("log","debug",n),L.ENABLE_DEBUG&&(console.debug?console.debug(n):console.log(n))}static v(e,t){(!e||L.FORCE_GLOBAL_TAG)&&(e=L.GLOBAL_TAG);let n=`[${e}] > ${t}`;L.ENABLE_CALLBACK&&L.emitter.emit("log","verbose",n),L.ENABLE_VERBOSE&&console.log(n)}}L.GLOBAL_TAG="flv.js",L.FORCE_GLOBAL_TAG=!1,L.ENABLE_ERROR=!0,L.ENABLE_INFO=!0,L.ENABLE_WARN=!0,L.ENABLE_DEBUG=!0,L.ENABLE_VERBOSE=!0,L.ENABLE_CALLBACK=!1,L.emitter=new(M());var v=L;class x{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(e){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let e=(this._now()-this._lastCheckpoint)/1e3;return e==0&&(e=1),this._intervalBytes/e/1024}get lastSecondKBps(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024}}var se=x;class d{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class X extends d{constructor(e){super(e)}get name(){return"IllegalStateException"}}class ie extends d{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class de extends d{constructor(e){super(e)}get name(){return"NotImplementedException"}}const I={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},Y={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class ne{constructor(e){this._type=e||"undefined",this._status=I.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=I.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===I.kConnecting||this._status===I.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(e){this._onContentLengthKnown=e}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(e){this._onURLRedirect=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}open(e,t){throw new de("Unimplemented abstract function!")}abort(){throw new de("Unimplemented abstract function!")}}let ae={};function c(){let q=self.navigator.userAgent.toLowerCase(),e=/(edge)\/([\w.]+)/.exec(q)||/(opr)[\/]([\w.]+)/.exec(q)||/(chrome)[ \/]([\w.]+)/.exec(q)||/(iemobile)[\/]([\w.]+)/.exec(q)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(q)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(q)||/(webkit)[ \/]([\w.]+)/.exec(q)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(q)||/(msie) ([\w.]+)/.exec(q)||q.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(q)||q.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(q)||[],t=/(ipad)/.exec(q)||/(ipod)/.exec(q)||/(windows phone)/.exec(q)||/(iphone)/.exec(q)||/(kindle)/.exec(q)||/(android)/.exec(q)||/(windows)/.exec(q)||/(mac)/.exec(q)||/(linux)/.exec(q)||/(cros)/.exec(q)||[],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 a=n.majorVersion.split(".");i.version={major:parseInt(n.majorVersion,10),string:n.version},a.length>1&&(i.version.minor=parseInt(a[1],10)),a.length>2&&(i.version.build=parseInt(a[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 a="msie";n.browser=a,i[a]=!0}if(i.edge){delete i.edge;let a="msedge";n.browser=a,i[a]=!0}if(i.opr){let a="opera";n.browser=a,i[a]=!0}if(i.safari&&i.android){let a="android";n.browser=a,i[a]=!0}i.name=n.browser,i.platform=n.platform;for(let a in ae)ae.hasOwnProperty(a)&&delete ae[a];Object.assign(ae,i)}c();var j=ae;class P extends ne{static isSupported(){try{let e=j.msedge&&j.version.minor>=15048,t=j.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),a=new self.Headers;if(typeof i.headers=="object"){let w=i.headers;for(let pe in w)w.hasOwnProperty(pe)&&a.append(pe,w[pe])}let m={method:"GET",headers:a,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(let w in this._config.headers)a.append(w,this._config.headers[w]);e.cors===!1&&(m.mode="same-origin"),e.withCredentials&&(m.credentials="include"),e.referrerPolicy&&(m.referrerPolicy=e.referrerPolicy),this._status=I.kConnecting,self.fetch(i.url,m).then(w=>{if(this._requestAbort){this._requestAbort=!1,this._status=I.kIdle;return}if(w.ok&&w.status>=200&&w.status<=299){if(w.url!==i.url&&this._onURLRedirect){let oe=this._seekHandler.removeURLParameters(w.url);this._onURLRedirect(oe)}let pe=w.headers.get("Content-Length");return pe!=null&&(this._contentLength=parseInt(pe),this._contentLength!==0&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,w.body.getReader())}else if(this._status=I.kError,this._onError)this._onError(Y.HTTP_STATUS_CODE_INVALID,{code:w.status,msg:w.statusText});else throw new d("FetchStreamLoader: Http code invalid, "+w.status+" "+w.statusText)}).catch(w=>{if(this._status=I.kError,this._onError)this._onError(Y.EXCEPTION,{code:-1,msg:w.message});else throw w})}abort(){this._requestAbort=!0}_pump(e){return e.read().then(t=>{if(t.done)if(this._contentLength!==null&&this._receivedLength<this._contentLength){this._status=I.kError;let n=Y.EARLY_EOF,i={code:-1,msg:"Fetch stream meet Early-EOF"};if(this._onError)this._onError(n,i);else throw new d(i.msg)}else this._status=I.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1);else{if(this._requestAbort===!0)return this._requestAbort=!1,this._status=I.kComplete,e.cancel();this._status=I.kBuffering;let n=t.value.buffer,i=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength,this._onDataArrival&&this._onDataArrival(n,i,this._receivedLength),this._pump(e)}}).catch(t=>{if(t.code===11&&j.msedge)return;this._status=I.kError;let n=0,i=null;if((t.code===19||t.message==="network error")&&(this._contentLength===null||this._contentLength!==null&&this._receivedLength<this._contentLength)?(n=Y.EARLY_EOF,i={code:t.code,msg:"Fetch stream meet Early-EOF"}):(n=Y.EXCEPTION,i={code:t.code,msg:t.message}),this._onError)this._onError(n,i);else throw new d(i.msg)})}}var T=P;class A extends ne{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="moz-chunked-arraybuffer",e.responseType==="moz-chunked-arraybuffer"}catch(e){return v.w("MozChunkedLoader",e.message),!1}}constructor(e,t){super("xhr-moz-chunked-loader"),this.TAG="MozChunkedLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}open(e,t){this._dataSource=e,this._range=t;let n=e.url;this._config.reuseRedirectedURL&&e.redirectedURL!=null&&(n=e.redirectedURL);let i=this._seekHandler.getConfig(n,t);this._requestURL=i.url;let a=this._xhr=new XMLHttpRequest;if(a.open("GET",i.url,!0),a.responseType="moz-chunked-arraybuffer",a.onreadystatechange=this._onReadyStateChange.bind(this),a.onprogress=this._onProgress.bind(this),a.onloadend=this._onLoadEnd.bind(this),a.onerror=this._onXhrError.bind(this),e.withCredentials&&(a.withCredentials=!0),typeof i.headers=="object"){let m=i.headers;for(let w in m)m.hasOwnProperty(w)&&a.setRequestHeader(w,m[w])}if(typeof this._config.headers=="object"){let m=this._config.headers;for(let w in m)m.hasOwnProperty(w)&&a.setRequestHeader(w,m[w])}this._status=I.kConnecting,a.send()}abort(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=I.kComplete}_onReadyStateChange(e){let t=e.target;if(t.readyState===2){if(t.responseURL!=null&&t.responseURL!==this._requestURL&&this._onURLRedirect){let n=this._seekHandler.removeURLParameters(t.responseURL);this._onURLRedirect(n)}if(t.status!==0&&(t.status<200||t.status>299))if(this._status=I.kError,this._onError)this._onError(Y.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new d("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);else this._status=I.kBuffering}}_onProgress(e){if(this._status===I.kError)return;this._contentLength===null&&e.total!==null&&e.total!==0&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let t=e.target.response,n=this._range.from+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}_onLoadEnd(e){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===I.kError)return;this._status=I.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)}_onXhrError(e){this._status=I.kError;let t=0,n=null;if(this._contentLength&&e.loaded<this._contentLength?(t=Y.EARLY_EOF,n={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(t=Y.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new d(n.msg)}}var f=A;class R extends null{static isSupported(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="ms-stream",e.responseType==="ms-stream"}catch(e){return Log.w("MSStreamLoader",e.message),!1}}constructor(e,t){super("xhr-msstream-loader"),this.TAG="MSStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._xhr=null,this._reader=null,this._totalRange=null,this._currentRange=null,this._currentRequestURL=null,this._currentRedirectedURL=null,this._contentLength=null,this._receivedLength=0,this._bufferLimit=16*1024*1024,this._lastTimeBufferSize=0,this._isReconnecting=!1}destroy(){this.isWorking()&&this.abort(),this._reader&&(this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr=null),super.destroy()}open(e,t){this._internalOpen(e,t,!1)}_internalOpen(e,t,n){this._dataSource=e,n?this._currentRange=t:this._totalRange=t;let i=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?i=this._currentRedirectedURL:e.redirectedURL!=null&&(i=e.redirectedURL));let a=this._seekHandler.getConfig(i,t);this._currentRequestURL=a.url;let m=this._reader=new self.MSStreamReader;m.onprogress=this._msrOnProgress.bind(this),m.onload=this._msrOnLoad.bind(this),m.onerror=this._msrOnError.bind(this);let w=this._xhr=new XMLHttpRequest;if(w.open("GET",a.url,!0),w.responseType="ms-stream",w.onreadystatechange=this._xhrOnReadyStateChange.bind(this),w.onerror=this._xhrOnError.bind(this),e.withCredentials&&(w.withCredentials=!0),typeof a.headers=="object"){let pe=a.headers;for(let oe in pe)pe.hasOwnProperty(oe)&&w.setRequestHeader(oe,pe[oe])}if(typeof this._config.headers=="object"){let pe=this._config.headers;for(let oe in pe)pe.hasOwnProperty(oe)&&w.setRequestHeader(oe,pe[oe])}this._isReconnecting?this._isReconnecting=!1:this._status=LoaderStatus.kConnecting,w.send()}abort(){this._internalAbort(),this._status=LoaderStatus.kComplete}_internalAbort(){this._reader&&(this._reader.readyState===1&&this._reader.abort(),this._reader.onprogress=null,this._reader.onload=null,this._reader.onerror=null,this._reader=null),this._xhr&&(this._xhr.abort(),this._xhr.onreadystatechange=null,this._xhr=null)}_xhrOnReadyStateChange(e){let t=e.target;if(t.readyState===2)if(t.status>=200&&t.status<=299){if(this._status=LoaderStatus.kBuffering,t.responseURL!=null){let 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 a=this._totalRange.from+this._receivedLength;this._receivedLength+=i.byteLength,this._onDataArrival&&this._onDataArrival(i,a,this._receivedLength),n.byteLength>=this._bufferLimit&&(Log.v(this.TAG,`MSStream buffer exceeded max size near ${a+i.byteLength}, reconnecting...`),this._doReconnectIfNeeded())}_doReconnectIfNeeded(){if(this._contentLength==null||this._receivedLength<this._contentLength){this._isReconnecting=!0,this._lastTimeBufferSize=0,this._internalAbort();let e={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,e,!0)}}_msrOnLoad(e){this._status=LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}_msrOnError(e){this._status=LoaderStatus.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength<this._contentLength?(t=LoaderErrors.EARLY_EOF,n={code:-1,msg:"MSStream meet Early-Eof"}):(t=LoaderErrors.EARLY_EOF,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new RuntimeException(n.msg)}}var H=null;class Z extends ne{static isSupported(){try{let e=new XMLHttpRequest;return e.open("GET","https://example.com",!0),e.responseType="arraybuffer",e.responseType==="arraybuffer"}catch(e){return v.w("RangeLoader",e.message),!1}}constructor(e,t){super("xhr-range-loader"),this.TAG="RangeLoader",this._seekHandler=e,this._config=t,this._needStash=!1,this._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],this._currentChunkSizeKB=384,this._currentSpeedNormalized=0,this._zeroSpeedChunkCount=0,this._xhr=null,this._speedSampler=new se,this._requestAbort=!1,this._waitForTotalLength=!1,this._totalLengthReceived=!1,this._currentRequestURL=null,this._currentRedirectedURL=null,this._currentRequestRange=null,this._totalLength=null,this._contentLength=null,this._receivedLength=0,this._lastTimeLoaded=0}destroy(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr=null),super.destroy()}get currentSpeed(){return this._speedSampler.lastSecondKBps}open(e,t){this._dataSource=e,this._range=t,this._status=I.kConnecting;let n=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(n=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!n?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}_openSubRange(){let e=this._currentChunkSizeKB*1024,t=this._range.from+this._receivedLength,n=t+e;this._contentLength!=null&&n-this._range.from>=this._contentLength&&(n=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:n},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(e,t){this._lastTimeLoaded=0;let n=e.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?n=this._currentRedirectedURL:e.redirectedURL!=null&&(n=e.redirectedURL));let i=this._seekHandler.getConfig(n,t);this._currentRequestURL=i.url;let a=this._xhr=new XMLHttpRequest;if(a.open("GET",i.url,!0),a.responseType="arraybuffer",a.onreadystatechange=this._onReadyStateChange.bind(this),a.onprogress=this._onProgress.bind(this),a.onload=this._onLoad.bind(this),a.onerror=this._onXhrError.bind(this),e.withCredentials&&(a.withCredentials=!0),typeof i.headers=="object"){let m=i.headers;for(let w in m)m.hasOwnProperty(w)&&a.setRequestHeader(w,m[w])}if(typeof this._config.headers=="object"){let m=this._config.headers;for(let w in m)m.hasOwnProperty(w)&&a.setRequestHeader(w,m[w])}a.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=I.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(e){let t=e.target;if(t.readyState===2){if(t.responseURL!=null){let n=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&n!==this._currentRedirectedURL&&(this._currentRedirectedURL=n,this._onURLRedirect&&this._onURLRedirect(n))}if(t.status>=200&&t.status<=299){if(this._waitForTotalLength)return;this._status=I.kBuffering}else if(this._status=I.kError,this._onError)this._onError(Y.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText});else throw new d("RangeLoader: Http code invalid, "+t.status+" "+t.statusText)}}_onProgress(e){if(this._status===I.kError)return;if(this._contentLength===null){let n=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,n=!0;let 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,a=0,m=n;if(e<t[0])return t[0];for(;a<=m;){if(i=a+Math.floor((m-a)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?a=i+1:m=i-1}}_onLoad(e){if(this._status===I.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;let t=this._speedSampler.lastSecondKBps;if(t===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(t=this._speedSampler.currentKBps)),t!==0){let m=this._normalizeSpeed(t);this._currentSpeedNormalized!==m&&(this._currentSpeedNormalized=m,this._currentChunkSizeKB=m)}let n=e.target.response,i=this._range.from+this._receivedLength;this._receivedLength+=n.byteLength;let a=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():a=!0,this._onDataArrival&&this._onDataArrival(n,i,this._receivedLength),a&&(this._status=I.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}_onXhrError(e){this._status=I.kError;let t=0,n=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(t=Y.EARLY_EOF,n={code:-1,msg:"RangeLoader meet Early-Eof"}):(t=Y.EXCEPTION,n={code:-1,msg:e.constructor.name+" "+e.type}),this._onError)this._onError(t,n);else throw new d(n.msg)}}var re=Z;class ye extends ne{static isSupported(){try{return typeof self.WebSocket!="undefined"}catch(e){return!1}}constructor(){super("websocket-loader"),this.TAG="WebSocketLoader",this._needStash=!0,this._ws=null,this._requestAbort=!1,this._receivedLength=0}destroy(){this._ws&&this.abort(),super.destroy()}open(e){try{let t=this._ws=new self.WebSocket(e.url);t.binaryType="arraybuffer",t.onopen=this._onWebSocketOpen.bind(this),t.onclose=this._onWebSocketClose.bind(this),t.onmessage=this._onWebSocketMessage.bind(this),t.onerror=this._onWebSocketError.bind(this),this._status=I.kConnecting}catch(t){this._status=I.kError;let n={code:t.code,msg:t.message};if(this._onError)this._onError(Y.EXCEPTION,n);else throw new d(n.msg)}}abort(){let e=this._ws;e&&(e.readyState===0||e.readyState===1)&&(this._requestAbort=!0,e.close()),this._ws=null,this._status=I.kComplete}_onWebSocketOpen(e){this._status=I.kBuffering}_onWebSocketClose(e){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=I.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}_onWebSocketMessage(e){if(e.data instanceof ArrayBuffer)this._dispatchArrayBuffer(e.data);else if(e.data instanceof Blob){let t=new FileReader;t.onload=()=>{this._dispatchArrayBuffer(t.result)},t.readAsArrayBuffer(e.data)}else{this._status=I.kError;let t={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(this._onError)this._onError(Y.EXCEPTION,t);else throw new d(t.msg)}}_dispatchArrayBuffer(e){let t=e,n=this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,n,this._receivedLength)}_onWebSocketError(e){this._status=I.kError;let t={code:e.code,msg:e.message};if(this._onError)this._onError(Y.EXCEPTION,t);else throw new d(t.msg)}}var we=ye;class ${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 Ke=$;class Q{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 a="";if(n!=null&&n.length>0){let m=n.split("&");for(let w=0;w<m.length;w++){let pe=m[w].split("="),oe=w>0;pe[0]!==this._startName&&pe[0]!==this._endName&&(oe&&(a+="&"),a+=m[w])}}return a.length===0?t:t+"?"+a}}var ue=Q;class D{constructor(e,t,n){this.TAG="IOController",this._config=t,this._extraData=n,this._stashInitialSize=1024*384,t.stashInitialSize!=null&&t.stashInitialSize>0&&(this._stashInitialSize=t.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,t.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(e.url),this._refTotalLength=e.filesize?e.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new se,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData(e){this._extraData=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onSeeked(){return this._onSeeked}set onSeeked(e){this._onSeeked=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}get onRedirect(){return this._onRedirect}set onRedirect(e){this._onRedirect=e}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(e){this._onRecoveredEarlyEof=e}get currentURL(){return this._dataSource.url}get hasRedirect(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null}get currentRedirectedURL(){return this._redirectedURL||this._dataSource.redirectedURL}get currentSpeed(){return this._loaderClass===re?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let e=this._config;if(e.seekType==="range")this._seekHandler=new Ke(this._config.rangeLoadZeroStart);else if(e.seekType==="param"){let t=e.seekParamStart||"bstart",n=e.seekParamEnd||"bend";this._seekHandler=new ue(t,n)}else if(e.seekType==="custom"){if(typeof e.customSeekHandler!="function")throw new ie("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}else throw new ie(`Invalid seekType in config: ${e.seekType}`)}_selectLoader(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=we;else if(T.isSupported())this._loaderClass=T;else if(f.isSupported())this._loaderClass=f;else if(re.isSupported())this._loaderClass=re;else throw new d("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 ie("Url must be a non-empty string!");this._dataSource.url=e}_expandBuffer(e){let t=this._stashSize;for(;t+1024*1024*1<e;)t*=2;if(t+=1024*1024*1,t===this._bufferSize)return;let n=new ArrayBuffer(t);if(this._stashUsed>0){let 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,a=0,m=n;if(e<t[0])return t[0];for(;a<=m;){if(i=a+Math.floor((m-a)/2),i===n||e>=t[i]&&e<t[i+1])return t[i];t[i]<e?a=i+1:m=i-1}}_adjustStashSize(e){let t=0;this._config.isLive||e<512?t=e:e>=512&&e<=1024?t=Math.floor(e*1.5):t=e*2,t>8192&&(t=8192);let n=t*1024+1024*1024*1;this._bufferSize<n&&this._expandBuffer(n),this._stashSize=t*1024}_dispatchChunks(e,t){return this._currentRange.to=t+e.byteLength-1,this._onDataArrival(e,t)}_onURLRedirect(e){this._redirectedURL=e,this._onRedirect&&this._onRedirect(e)}_onContentLengthKnown(e){e&&this._fullRequestFlag&&(this._totalLength=e,this._fullRequestFlag=!1)}_onLoaderChunkArrival(e,t,n){if(!this._onDataArrival)throw new X("IOController: No existing consumer (onDataArrival) callback!");if(this._paused)return;this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,this._onRecoveredEarlyEof&&this._onRecoveredEarlyEof()),this._speedSampler.addBytes(e.byteLength);let i=this._speedSampler.lastSecondKBps;if(i!==0){let a=this._normalizeSpeed(i);this._speedNormalized!==a&&(this._speedNormalized=a,this._adjustStashSize(a))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=t),this._stashUsed+e.byteLength<=this._stashSize)new Uint8Array(this._stashBuffer,0,this._stashSize).set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;else{let a=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){let m=this._stashBuffer.slice(0,this._stashUsed),w=this._dispatchChunks(m,this._stashByteStart);if(w<m.byteLength){if(w>0){let pe=new Uint8Array(m,w);a.set(pe,0),this._stashUsed=pe.byteLength,this._stashByteStart+=w}}else this._stashUsed=0,this._stashByteStart+=w;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{let m=this._dispatchChunks(e,t);if(m<e.byteLength){let w=e.byteLength-m;w>this._bufferSize&&(this._expandBuffer(w),a=new Uint8Array(this._stashBuffer,0,this._bufferSize)),a.set(new Uint8Array(e,m),0),this._stashUsed+=w,this._stashByteStart=t+m}}}else if(this._stashUsed===0){let a=this._dispatchChunks(e,t);if(a<e.byteLength){let m=e.byteLength-a;m>this._bufferSize&&this._expandBuffer(m),new Uint8Array(this._stashBuffer,0,this._bufferSize).set(new Uint8Array(e,a),0),this._stashUsed+=m,this._stashByteStart=t+a}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);let a=new Uint8Array(this._stashBuffer,0,this._bufferSize);a.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;let m=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(m<this._stashUsed&&m>0){let w=new Uint8Array(this._stashBuffer,m);a.set(w,0)}this._stashUsed-=m,this._stashByteStart+=m}}_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(n<t.byteLength)if(e)v.w(this.TAG,`${i} bytes unconsumed data remain when flush buffer, dropped`);else{if(n>0){let a=new Uint8Array(this._stashBuffer,0,this._bufferSize),m=new Uint8Array(t,n);a.set(m,0),this._stashUsed=m.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(v.e(this.TAG,`Loader error, code = ${t.code}, msg = ${t.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=Y.UNRECOVERABLE_EARLY_EOF),e){case Y.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){let n=this._currentRange.to+1;n<this._totalLength&&(v.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(n,!1));return}e=Y.UNRECOVERABLE_EARLY_EOF;break}case Y.UNRECOVERABLE_EARLY_EOF:case Y.CONNECTING_TIMEOUT:case Y.HTTP_STATUS_CODE_INVALID:case Y.EXCEPTION:break}if(this._onError)this._onError(e,t);else throw new d("IOException: "+t.msg)}}var O=D;const Be={enableWorker:!1,enableStashBuffer:!0,stashInitialSize:void 0,isLive:!1,lazyLoad:!0,lazyLoadMaxDuration:3*60,lazyLoadRecoverDuration:30,deferLoadAfterSourceOpen:!0,autoCleanupMaxBackwardDuration:3*60,autoCleanupMinBackwardDuration:2*60,statisticsInfoReportInterval:600,fixAudioTimestampGap:!0,accurateSeek:!1,seekType:"range",seekParamStart:"bstart",seekParamEnd:"bend",rangeLoadZeroStart:!1,customSeekHandler:void 0,reuseRedirectedURL:!1,headers:void 0,customLoader:void 0};function Fe(){return Object.assign({},Be)}class Ne{static supportMSEH264Playback(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}static supportNetworkStreamIO(){let e=new O({},Fe()),t=e.loaderType;return e.destroy(),t=="fetch-stream-loader"||t=="xhr-moz-chunked-loader"}static getNetworkLoaderTypeName(){let e=new O({},Fe()),t=e.loaderType;return e.destroy(),t}static supportNativeMediaPlayback(e){Ne.videoElement==null&&(Ne.videoElement=window.document.createElement("video"));let t=Ne.videoElement.canPlayType(e);return t==="probably"||t=="maybe"}static getFeatureList(){let e={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return e.mseFlvPlayback=Ne.supportMSEH264Playback(),e.networkStreamIO=Ne.supportNetworkStreamIO(),e.networkLoaderName=Ne.getNetworkLoaderTypeName(),e.mseLiveFlvPlayback=e.mseFlvPlayback&&e.networkStreamIO,e.nativeMP4H264Playback=Ne.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e.nativeWebmVP8Playback=Ne.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),e.nativeWebmVP9Playback=Ne.supportNativeMediaPlayback('video/webm; codecs="vp9"'),e}}var ee=Ne,Te={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};class xe{static get forceGlobalTag(){return v.FORCE_GLOBAL_TAG}static set forceGlobalTag(e){v.FORCE_GLOBAL_TAG=e,xe._notifyChange()}static get globalTag(){return v.GLOBAL_TAG}static set globalTag(e){v.GLOBAL_TAG=e,xe._notifyChange()}static get enableAll(){return v.ENABLE_VERBOSE&&v.ENABLE_DEBUG&&v.ENABLE_INFO&&v.ENABLE_WARN&&v.ENABLE_ERROR}static set enableAll(e){v.ENABLE_VERBOSE=e,v.ENABLE_DEBUG=e,v.ENABLE_INFO=e,v.ENABLE_WARN=e,v.ENABLE_ERROR=e,xe._notifyChange()}static get enableDebug(){return v.ENABLE_DEBUG}static set enableDebug(e){v.ENABLE_DEBUG=e,xe._notifyChange()}static get enableVerbose(){return v.ENABLE_VERBOSE}static set enableVerbose(e){v.ENABLE_VERBOSE=e,xe._notifyChange()}static get enableInfo(){return v.ENABLE_INFO}static set enableInfo(e){v.ENABLE_INFO=e,xe._notifyChange()}static get enableWarn(){return v.ENABLE_WARN}static set enableWarn(e){v.ENABLE_WARN=e,xe._notifyChange()}static get enableError(){return v.ENABLE_ERROR}static set enableError(e){v.ENABLE_ERROR=e,xe._notifyChange()}static getConfig(){return{globalTag:v.GLOBAL_TAG,forceGlobalTag:v.FORCE_GLOBAL_TAG,enableVerbose:v.ENABLE_VERBOSE,enableDebug:v.ENABLE_DEBUG,enableInfo:v.ENABLE_INFO,enableWarn:v.ENABLE_WARN,enableError:v.ENABLE_ERROR,enableCallback:v.ENABLE_CALLBACK}}static applyConfig(e){v.GLOBAL_TAG=e.globalTag,v.FORCE_GLOBAL_TAG=e.forceGlobalTag,v.ENABLE_VERBOSE=e.enableVerbose,v.ENABLE_DEBUG=e.enableDebug,v.ENABLE_INFO=e.enableInfo,v.ENABLE_WARN=e.enableWarn,v.ENABLE_ERROR=e.enableError,v.ENABLE_CALLBACK=e.enableCallback}static _notifyChange(){let e=xe.emitter;if(e.listenerCount("change")>0){let t=xe.getConfig();e.emit("change",t)}}static registerListener(e){xe.emitter.addListener("change",e)}static removeListener(e){xe.emitter.removeListener("change",e)}static addLogListener(e){v.emitter.addListener("log",e),v.emitter.listenerCount("log")>0&&(v.ENABLE_CALLBACK=!0,xe._notifyChange())}static removeLogListener(e){v.emitter.removeListener("log",e),v.emitter.listenerCount("log")===0&&(v.ENABLE_CALLBACK=!1,xe._notifyChange())}}xe.emitter=new(M());var $e=xe;class Tt{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,a=0,m=0,w=i;for(t<e[0]&&(n=0,m=w+1);m<=w;)if(a=m+Math.floor((w-m)/2),a===i||t>=e[a]&&t<e[a+1]){n=a;break}else e[a]<t?m=a+1:w=a-1;return n}}var dt=Tt;function Mt(q,e,t){let n=q;if(e+t<n.length){for(;t--;)if((n[++e]&192)!==128)return!1;return!0}else return!1}function Dt(q){let e=[],t=q,n=0,i=q.length;for(;n<i;){if(t[n]<128){e.push(String.fromCharCode(t[n])),++n;continue}else if(!(t[n]<192)){if(t[n]<224){if(Mt(t,n,1)){let a=(t[n]&31)<<6|t[n+1]&63;if(a>=128){e.push(String.fromCharCode(a&65535)),n+=2;continue}}}else if(t[n]<240){if(Mt(t,n,2)){let a=(t[n]&15)<<12|(t[n+1]&63)<<6|t[n+2]&63;if(a>=2048&&(a&63488)!==55296){e.push(String.fromCharCode(a&65535)),n+=3;continue}}}else if(t[n]<248&&Mt(t,n,3)){let a=(t[n]&7)<<18|(t[n+1]&63)<<12|(t[n+2]&63)<<6|t[n+3]&63;if(a>65536&&a<1114112){a-=65536,e.push(String.fromCharCode(a>>>10|55296)),e.push(String.fromCharCode(a&1023|56320)),n+=4;continue}}}e.push("\uFFFD"),++n}return e.join("")}var Nt=Dt;let xt=function(){let q=new ArrayBuffer(2);return new DataView(q).setInt16(0,256,!0),new Int16Array(q)[0]===256}();class Rt{static parseScriptData(e,t,n){let i={};try{let a=Rt.parseValue(e,t,n),m=Rt.parseValue(e,t+a.size,n-a.size);i[a.data]=m.data}catch(a){v.e("AMF",a.toString())}return i}static parseObject(e,t,n){if(n<3)throw new X("Data not enough when parse ScriptDataObject");let i=Rt.parseString(e,t,n),a=Rt.parseValue(e,t+i.size,n-i.size),m=a.objectEnd;return{data:{name:i.data,value:a.data},size:i.size+a.size,objectEnd:m}}static parseVariable(e,t,n){return Rt.parseObject(e,t,n)}static parseString(e,t,n){if(n<2)throw new X("Data not enough when parse String");let a=new DataView(e,t,n).getUint16(0,!xt),m;return a>0?m=Nt(new Uint8Array(e,t+2,a)):m="",{data:m,size:2+a}}static parseLongString(e,t,n){if(n<4)throw new X("Data not enough when parse LongString");let a=new DataView(e,t,n).getUint32(0,!xt),m;return a>0?m=Nt(new Uint8Array(e,t+4,a)):m="",{data:m,size:4+a}}static parseDate(e,t,n){if(n<10)throw new X("Data size invalid when parse Date");let i=new DataView(e,t,n),a=i.getFloat64(0,!xt),m=i.getInt16(8,!xt);return a+=m*60*1e3,{data:new Date(a),size:10}}static parseValue(e,t,n){if(n<1)throw new X("Data not enough when parse Value");let i=new DataView(e,t,n),a=1,m=i.getUint8(0),w,pe=!1;try{switch(m){case 0:w=i.getFloat64(1,!xt),a+=8;break;case 1:{w=!!i.getUint8(1),a+=1;break}case 2:{let oe=Rt.parseString(e,t+1,n-1);w=oe.data,a+=oe.size;break}case 3:{w={};let oe=0;for((i.getUint32(n-4,!xt)&16777215)===9&&(oe=3);a<n-4;){let ke=Rt.parseObject(e,t+a,n-a-oe);if(ke.objectEnd)break;w[ke.data.name]=ke.data.value,a+=ke.size}a<=n-3&&(i.getUint32(a-1,!xt)&16777215)===9&&(a+=3);break}case 8:{w={},a+=4;let oe=0;for((i.getUint32(n-4,!xt)&16777215)===9&&(oe=3);a<n-8;){let ke=Rt.parseVariable(e,t+a,n-a-oe);if(ke.objectEnd)break;w[ke.data.name]=ke.data.value,a+=ke.size}a<=n-3&&(i.getUint32(a-1,!xt)&16777215)===9&&(a+=3);break}case 9:w=void 0,a=1,pe=!0;break;case 10:{w=[];let oe=i.getUint32(1,!xt);a+=4;for(let ke=0;ke<oe;ke++){let Qe=Rt.parseValue(e,t+a,n-a);w.push(Qe.data),a+=Qe.size}break}case 11:{let oe=Rt.parseDate(e,t+1,n-1);w=oe.data,a+=oe.size;break}case 12:{let oe=Rt.parseString(e,t+1,n-1);w=oe.data,a+=oe.size;break}default:a=n,v.w("AMF","Unsupported AMF value type "+m)}}catch(oe){v.e("AMF",oe.toString())}return{data:w,size:a,objectEnd:pe}}}var It=Rt;class Pt{constructor(e){this.TAG="ExpGolomb",this._buffer=e,this._buffer_index=0,this._total_bytes=e.byteLength,this._total_bits=e.byteLength*8,this._current_word=0,this._current_word_bits_left=0}destroy(){this._buffer=null}_fillCurrentWord(){let e=this._total_bytes-this._buffer_index;if(e<=0)throw new X("ExpGolomb: _fillCurrentWord() but no bytes available");let t=Math.min(4,e),n=new Uint8Array(4);n.set(this._buffer.subarray(this._buffer_index,this._buffer_index+t)),this._current_word=new DataView(n.buffer).getUint32(0,!1),this._buffer_index+=t,this._current_word_bits_left=t*8}readBits(e){if(e>32)throw new ie("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let m=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,m}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),a=this._current_word>>>32-i;return this._current_word<<=i,this._current_word_bits_left-=i,t=t<<i|a,t}readBool(){return this.readBits(1)===1}readByte(){return this.readBits(8)}_skipLeadingZero(){let e;for(e=0;e<this._current_word_bits_left;e++)if(this._current_word&2147483648>>>e)return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()}readUEG(){let e=this._skipLeadingZero();return this.readBits(e+1)-1}readSEG(){let e=this.readUEG();return e&1?e+1>>>1:-1*(e>>>1)}}var at=Pt;class fe{static _ebsp2rbsp(e){let t=e,n=t.byteLength,i=new Uint8Array(n),a=0;for(let m=0;m<n;m++)m>=2&&t[m]===3&&t[m-1]===0&&t[m-2]===0||(i[a]=t[m],a++);return new Uint8Array(i.buffer,0,a)}static parseSPS(e){let t=fe._ebsp2rbsp(e),n=new at(t);n.readByte();let i=n.readByte();n.readByte();let a=n.readByte();n.readUEG();let m=fe.getProfileString(i),w=fe.getLevelString(a),pe=1,oe=420,ke=[0,420,422,444],Qe=8;if((i===100||i===110||i===122||i===244||i===44||i===83||i===86||i===118||i===128||i===138||i===144)&&(pe=n.readUEG(),pe===3&&n.readBits(1),pe<=3&&(oe=ke[pe]),Qe=n.readUEG()+8,n.readUEG(),n.readBits(1),n.readBool())){let vn=pe!==3?8:12;for(let ln=0;ln<vn;ln++)n.readBool()&&(ln<6?fe._skipScalingList(n,16):fe._skipScalingList(n,64))}n.readUEG();let gt=n.readUEG();if(gt===0)n.readUEG();else if(gt===1){n.readBits(1),n.readSEG(),n.readSEG();let vn=n.readUEG();for(let ln=0;ln<vn;ln++)n.readSEG()}let Xe=n.readUEG();n.readBits(1);let pt=n.readUEG(),ct=n.readUEG(),De=n.readBits(1);De===0&&n.readBits(1),n.readBits(1);let Ve=0,vt=0,Ct=0,Je=0;n.readBool()&&(Ve=n.readUEG(),vt=n.readUEG(),Ct=n.readUEG(),Je=n.readUEG());let Qt=1,_t=1,Ut=0,Jt=!0,rn=0,an=0;if(n.readBool()){if(n.readBool()){let vn=n.readByte(),ln=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],dn=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];vn>0&&vn<16?(Qt=ln[vn-1],_t=dn[vn-1]):vn===255&&(Qt=n.readByte()<<8|n.readByte(),_t=n.readByte()<<8|n.readByte())}if(n.readBool()&&n.readBool(),n.readBool()&&(n.readBits(4),n.readBool()&&n.readBits(24)),n.readBool()&&(n.readUEG(),n.readUEG()),n.readBool()){let vn=n.readBits(32),ln=n.readBits(32);Jt=n.readBool(),rn=ln,an=vn*2,Ut=rn/an}}let Mn=1;(Qt!==1||_t!==1)&&(Mn=Qt/_t);let un=0,Fn=0;if(pe===0)un=1,Fn=2-De;else{let vn=pe===3?1:2,ln=pe===1?2:1;un=vn,Fn=ln*(2-De)}let on=(pt+1)*16,Un=(2-De)*((ct+1)*16);on-=(Ve+vt)*un,Un-=(Ct+Je)*Fn;let Pn=Math.ceil(on*Mn);return n.destroy(),n=null,{profile_string:m,level_string:w,bit_depth:Qe,ref_frames:Xe,chroma_format:oe,chroma_format_string:fe.getChromaFormatString(oe),frame_rate:{fixed:Jt,fps:Ut,fps_den:an,fps_num:rn},sar_ratio:{width:Qt,height:_t},codec_size:{width:on,height:Un},present_size:{width:Pn,height:Un}}}static _skipScalingList(e,t){let n=8,i=8,a=0;for(let m=0;m<t;m++)i!==0&&(a=e.readSEG(),i=(n+a+256)%256),n=i===0?n:i}static getProfileString(e){switch(e){case 66:return"Baseline";case 77:return"Main";case 88:return"Extended";case 100:return"High";case 110:return"High10";case 122:return"High422";case 244:return"High444";default:return"Unknown"}}static getLevelString(e){return(e/10).toFixed(1)}static getChromaFormatString(e){switch(e){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}var J=fe,s={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"};function _(q){return q>>>8&255|(q&255)<<8}function k(q){return(q&4278190080)>>>24|(q&16711680)>>>8|(q&65280)<<8|(q&255)<<24}function S(q,e){return q[e]<<24|q[e+1]<<16|q[e+2]<<8|q[e+3]}class B{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 dt,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,a=(t[4]&1)!==0,m=S(t,5);return m<9?n:{match:!0,consumed:m,dataOffset:m,hasAudioTrack:i,hasVideoTrack:a}}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 dt}_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 X("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let n=0,i=this._littleEndian;if(t===0)if(e.byteLength>13)n=B.probe(e).dataOffset;else return 0;for(this._firstParse&&(this._firstParse=!1,t+n!==this._dataOffset&&v.w(this.TAG,"First time parsing but chunk byteStart invalid!"),new DataView(e,n).getUint32(0,!i)!==0&&v.w(this.TAG,"PrevTagSize0 !== 0 !!!"),n+=4);n<e.byteLength;){this._dispatch=!0;let a=new DataView(e,n);if(n+11+4>e.byteLength)break;let m=a.getUint8(0),w=a.getUint32(0,!i)&16777215;if(n+11+w+4>e.byteLength)break;if(m!==8&&m!==9&&m!==18){v.w(this.TAG,`Unsupported tag type ${m}, skipped`),n+=11+w+4;continue}let pe=a.getUint8(4),oe=a.getUint8(5),ke=a.getUint8(6),Qe=a.getUint8(7),gt=ke|oe<<8|pe<<16|Qe<<24;(a.getUint32(7,!i)&16777215)!==0&&v.w(this.TAG,"Meet tag which has StreamID != 0!");let pt=n+11;switch(m){case 8:this._parseAudioData(e,pt,w,gt);break;case 9:this._parseVideoData(e,pt,w,gt,t+n);break;case 18:this._parseScriptData(e,pt,w);break}let ct=a.getUint32(11+w,!i);ct!==11+w&&v.w(this.TAG,`Invalid PrevTagSize ${ct}`),n+=11+w+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=It.parseScriptData(e,t,n);if(i.hasOwnProperty("onMetaData")){if(i.onMetaData==null||typeof i.onMetaData!="object"){v.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&v.w(this.TAG,"Found another onMetaData tag!"),this._metadata=i;let a=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},a)),typeof a.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=a.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof a.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=a.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof a.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=a.audiodatarate),typeof a.videodatarate=="number"&&(this._mediaInfo.videoDataRate=a.videodatarate),typeof a.width=="number"&&(this._mediaInfo.width=a.width),typeof a.height=="number"&&(this._mediaInfo.height=a.height),typeof a.duration=="number"){if(!this._durationOverrided){let m=Math.floor(a.duration*this._timescale);this._duration=m,this._mediaInfo.duration=m}}else this._mediaInfo.duration=0;if(typeof a.framerate=="number"){let m=Math.floor(a.framerate*1e3);if(m>0){let w=m/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=w,this._referenceFrameRate.fps_num=m,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=w}}if(typeof a.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;let m=a.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(m),a.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=a,v.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<e.times.length;i++){let a=this._timestampBase+Math.floor(e.times[i]*1e3);t.push(a),n.push(e.filepositions[i])}return{times:t,filepositions:n}}_parseAudioData(e,t,n,i){if(n<=1){v.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;let a=this._littleEndian,w=new DataView(e,t,n).getUint8(0),pe=w>>>4;if(pe!==2&&pe!==10){this._onError(s.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+pe);return}let oe=0,ke=(w&12)>>>2;if(ke>=0&&ke<=4)oe=this._flvSoundRateTable[ke];else{this._onError(s.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+ke);return}let Qe=(w&2)>>>1,gt=w&1,Xe=this._audioMetadata,pt=this._audioTrack;if(Xe||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),Xe=this._audioMetadata={},Xe.type="audio",Xe.id=pt.id,Xe.timescale=this._timescale,Xe.duration=this._duration,Xe.audioSampleRate=oe,Xe.channelCount=gt===0?1:2),pe===10){let ct=this._parseAACAudioData(e,t+1,n-1);if(ct==null)return;if(ct.packetType===0){Xe.config&&v.w(this.TAG,"Found another AudioSpecificConfig!");let De=ct.data;Xe.audioSampleRate=De.samplingRate,Xe.channelCount=De.channelCount,Xe.codec=De.codec,Xe.originalCodec=De.originalCodec,Xe.config=De.config,Xe.refSampleDuration=1024/Xe.audioSampleRate*Xe.timescale,v.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",Xe);let Ve=this._mediaInfo;Ve.audioCodec=Xe.originalCodec,Ve.audioSampleRate=Xe.audioSampleRate,Ve.audioChannelCount=Xe.channelCount,Ve.hasVideo?Ve.videoCodec!=null&&(Ve.mimeType='video/x-flv; codecs="'+Ve.videoCodec+","+Ve.audioCodec+'"'):Ve.mimeType='video/x-flv; codecs="'+Ve.audioCodec+'"',Ve.isComplete()&&this._onMediaInfo(Ve)}else if(ct.packetType===1){let De=this._timestampBase+i,Ve={unit:ct.data,length:ct.data.byteLength,dts:De,pts:De};pt.samples.push(Ve),pt.length+=ct.data.length}else v.e(this.TAG,`Flv: Unsupported AAC data type ${ct.packetType}`)}else if(pe===2){if(!Xe.codec){let vt=this._parseMP3AudioData(e,t+1,n-1,!0);if(vt==null)return;Xe.audioSampleRate=vt.samplingRate,Xe.channelCount=vt.channelCount,Xe.codec=vt.codec,Xe.originalCodec=vt.originalCodec,Xe.refSampleDuration=1152/Xe.audioSampleRate*Xe.timescale,v.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",Xe);let Ct=this._mediaInfo;Ct.audioCodec=Xe.codec,Ct.audioSampleRate=Xe.audioSampleRate,Ct.audioChannelCount=Xe.channelCount,Ct.audioDataRate=vt.bitRate,Ct.hasVideo?Ct.videoCodec!=null&&(Ct.mimeType='video/x-flv; codecs="'+Ct.videoCodec+","+Ct.audioCodec+'"'):Ct.mimeType='video/x-flv; codecs="'+Ct.audioCodec+'"',Ct.isComplete()&&this._onMediaInfo(Ct)}let ct=this._parseMP3AudioData(e,t+1,n-1,!1);if(ct==null)return;let De=this._timestampBase+i,Ve={unit:ct,length:ct.byteLength,dts:De,pts:De};pt.samples.push(Ve),pt.length+=ct.length}}_parseAACAudioData(e,t,n){if(n<=1){v.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}let i={},a=new Uint8Array(e,t,n);return i.packetType=a[0],a[0]===0?i.data=this._parseAACAudioSpecificConfig(e,t+1,n-1):i.data=a.subarray(1),i}_parseAACAudioSpecificConfig(e,t,n){let i=new Uint8Array(e,t,n),a=null,m=0,w=0,pe=null,oe=0,ke=null;if(m=w=i[0]>>>3,oe=(i[0]&7)<<1|i[1]>>>7,oe<0||oe>=this._mpegSamplingRates.length){this._onError(s.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}let Qe=this._mpegSamplingRates[oe],gt=(i[1]&120)>>>3;if(gt<0||gt>=8){this._onError(s.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}m===5&&(ke=(i[1]&7)<<1|i[2]>>>7,pe=(i[2]&124)>>>2);let Xe=self.navigator.userAgent.toLowerCase();return Xe.indexOf("firefox")!==-1?oe>=6?(m=5,a=new Array(4),ke=oe-3):(m=2,a=new Array(2),ke=oe):Xe.indexOf("android")!==-1?(m=2,a=new Array(2),ke=oe):(m=5,ke=oe,a=new Array(4),oe>=6?ke=oe-3:gt===1&&(m=2,a=new Array(2),ke=oe)),a[0]=m<<3,a[0]|=(oe&15)>>>1,a[1]=(oe&15)<<7,a[1]|=(gt&15)<<3,m===5&&(a[1]|=(ke&15)>>>1,a[2]=(ke&1)<<7,a[2]|=8,a[3]=0),{config:a,samplingRate:Qe,channelCount:gt,codec:"mp4a.40."+m,originalCodec:"mp4a.40."+w}}_parseMP3AudioData(e,t,n,i){if(n<4){v.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}let a=this._littleEndian,m=new Uint8Array(e,t,n),w=null;if(i){if(m[0]!==255)return;let pe=m[1]>>>3&3,oe=(m[1]&6)>>1,ke=(m[2]&240)>>>4,Qe=(m[2]&12)>>>2,Xe=(m[3]>>>6&3)!==3?2:1,pt=0,ct=0,De=34,Ve="mp3";switch(pe){case 0:pt=this._mpegAudioV25SampleRateTable[Qe];break;case 2:pt=this._mpegAudioV20SampleRateTable[Qe];break;case 3:pt=this._mpegAudioV10SampleRateTable[Qe];break}switch(oe){case 1:De=34,ke<this._mpegAudioL3BitRateTable.length&&(ct=this._mpegAudioL3BitRateTable[ke]);break;case 2:De=33,ke<this._mpegAudioL2BitRateTable.length&&(ct=this._mpegAudioL2BitRateTable[ke]);break;case 3:De=32,ke<this._mpegAudioL1BitRateTable.length&&(ct=this._mpegAudioL1BitRateTable[ke]);break}w={bitRate:ct,samplingRate:pt,channelCount:Xe,codec:Ve,originalCodec:Ve}}else w=m;return w}_parseVideoData(e,t,n,i,a){if(n<=1){v.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;let m=new Uint8Array(e,t,n)[0],w=(m&240)>>>4,pe=m&15;if(pe!==7){this._onError(s.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${pe}`);return}this._parseAVCVideoPacket(e,t+1,n-1,i,a,w)}_parseAVCVideoPacket(e,t,n,i,a,m){if(n<4){v.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}let w=this._littleEndian,pe=new DataView(e,t,n),oe=pe.getUint8(0),Qe=(pe.getUint32(0,!w)&16777215)<<8>>8;if(oe===0)this._parseAVCDecoderConfigurationRecord(e,t+4,n-4);else if(oe===1)this._parseAVCVideoData(e,t+4,n-4,i,a,m,Qe);else if(oe!==2){this._onError(s.FORMAT_ERROR,`Flv: Invalid video packet type ${oe}`);return}}_parseAVCDecoderConfigurationRecord(e,t,n){if(n<7){v.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}let i=this._videoMetadata,a=this._videoTrack,m=this._littleEndian,w=new DataView(e,t,n);i?typeof i.avcc!="undefined"&&v.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=a.id,i.timescale=this._timescale,i.duration=this._duration);let pe=w.getUint8(0),oe=w.getUint8(1),ke=w.getUint8(2),Qe=w.getUint8(3);if(pe!==1||oe===0){this._onError(s.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(w.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(s.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);return}let gt=w.getUint8(5)&31;if(gt===0){this._onError(s.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else gt>1&&v.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${gt}`);let Xe=6;for(let ct=0;ct<gt;ct++){let De=w.getUint16(Xe,!m);if(Xe+=2,De===0)continue;let Ve=new Uint8Array(e,t+Xe,De);Xe+=De;let vt=J.parseSPS(Ve);if(ct!==0)continue;i.codecWidth=vt.codec_size.width,i.codecHeight=vt.codec_size.height,i.presentWidth=vt.present_size.width,i.presentHeight=vt.present_size.height,i.profile=vt.profile_string,i.level=vt.level_string,i.bitDepth=vt.bit_depth,i.chromaFormat=vt.chroma_format,i.sarRatio=vt.sar_ratio,i.frameRate=vt.frame_rate,(vt.frame_rate.fixed===!1||vt.frame_rate.fps_num===0||vt.frame_rate.fps_den===0)&&(i.frameRate=this._referenceFrameRate);let Ct=i.frameRate.fps_den,Je=i.frameRate.fps_num;i.refSampleDuration=i.timescale*(Ct/Je);let sn=Ve.subarray(1,4),Qt="avc1.";for(let Ut=0;Ut<3;Ut++){let Jt=sn[Ut].toString(16);Jt.length<2&&(Jt="0"+Jt),Qt+=Jt}i.codec=Qt;let _t=this._mediaInfo;_t.width=i.codecWidth,_t.height=i.codecHeight,_t.fps=i.frameRate.fps,_t.profile=i.profile,_t.level=i.level,_t.refFrames=vt.ref_frames,_t.chromaFormat=vt.chroma_format_string,_t.sarNum=i.sarRatio.width,_t.sarDen=i.sarRatio.height,_t.videoCodec=Qt,_t.hasAudio?_t.audioCodec!=null&&(_t.mimeType='video/x-flv; codecs="'+_t.videoCodec+","+_t.audioCodec+'"'):_t.mimeType='video/x-flv; codecs="'+_t.videoCodec+'"',_t.isComplete()&&this._onMediaInfo(_t)}let pt=w.getUint8(Xe);if(pt===0){this._onError(s.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else pt>1&&v.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${pt}`);Xe++;for(let ct=0;ct<pt;ct++){let De=w.getUint16(Xe,!m);Xe+=2,De!==0&&(Xe+=De)}i.avcc=new Uint8Array(n),i.avcc.set(new Uint8Array(e,t,n),0),v.v(this.TAG,"Parsed AVCDecoderConfigurationRecord"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._videoInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("video",i)}_parseAVCVideoData(e,t,n,i,a,m,w){let pe=this._littleEndian,oe=new DataView(e,t,n),ke=[],Qe=0,gt=0;const Xe=this._naluLengthSize;let pt=this._timestampBase+i,ct=m===1;for(;gt<n;){if(gt+4>=n){v.w(this.TAG,`Malformed Nalu near timestamp ${pt}, offset = ${gt}, dataSize = ${n}`);break}let De=oe.getUint32(gt,!pe);if(Xe===3&&(De>>>=8),De>n-Xe){v.w(this.TAG,`Malformed Nalus near timestamp ${pt}, NaluSize > DataSize!`);return}let Ve=oe.getUint8(gt+Xe)&31;Ve===5&&(ct=!0);let vt=new Uint8Array(e,t+gt,Xe+De),Ct={type:Ve,data:vt};ke.push(Ct),Qe+=vt.byteLength,gt+=Xe+De}if(ke.length){let De=this._videoTrack,Ve={units:ke,length:Qe,isKeyframe:ct,dts:pt,cts:w,pts:pt+w};ct&&(Ve.fileposition=a),De.samples.push(Ve),De.length+=Qe}}}var K=B;class g{static init(){g.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 g.types)g.types.hasOwnProperty(t)&&(g.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let e=g.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),a=i.length;for(let w=0;w<a;w++)t+=i[w].byteLength;n=new Uint8Array(t),n[0]=t>>>24&255,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n.set(e,4);let m=8;for(let w=0;w<a;w++)n.set(i[w],m),m+=i[w].byteLength;return n}static generateInitSegment(e){let t=g.box(g.types.ftyp,g.constants.FTYP),n=g.moov(e),i=new Uint8Array(t.byteLength+n.byteLength);return i.set(t,0),i.set(n,t.byteLength),i}static moov(e){let t=g.mvhd(e.timescale,e.duration),n=g.trak(e),i=g.mvex(e);return g.box(g.types.moov,t,n,i)}static mvhd(e,t){return g.box(g.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,e&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}static trak(e){return g.box(g.types.trak,g.tkhd(e),g.mdia(e))}static tkhd(e){let t=e.id,n=e.duration,i=e.presentWidth,a=e.presentHeight;return g.box(g.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,a>>>8&255,a&255,0,0]))}static mdia(e){return g.box(g.types.mdia,g.mdhd(e),g.hdlr(e),g.minf(e))}static mdhd(e){let t=e.timescale,n=e.duration;return g.box(g.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=g.constants.HDLR_AUDIO:t=g.constants.HDLR_VIDEO,g.box(g.types.hdlr,t)}static minf(e){let t=null;return e.type==="audio"?t=g.box(g.types.smhd,g.constants.SMHD):t=g.box(g.types.vmhd,g.constants.VMHD),g.box(g.types.minf,t,g.dinf(),g.stbl(e))}static dinf(){return g.box(g.types.dinf,g.box(g.types.dref,g.constants.DREF))}static stbl(e){return g.box(g.types.stbl,g.stsd(e),g.box(g.types.stts,g.constants.STTS),g.box(g.types.stsc,g.constants.STSC),g.box(g.types.stsz,g.constants.STSZ),g.box(g.types.stco,g.constants.STCO))}static stsd(e){return e.type==="audio"?e.codec==="mp3"?g.box(g.types.stsd,g.constants.STSD_PREFIX,g.mp3(e)):g.box(g.types.stsd,g.constants.STSD_PREFIX,g.mp4a(e)):g.box(g.types.stsd,g.constants.STSD_PREFIX,g.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 g.box(g.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 g.box(g.types.mp4a,i,g.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 g.box(g.types.esds,i)}static avc1(e){let t=e.avcc,n=e.codecWidth,i=e.codecHeight,a=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 g.box(g.types.avc1,a,g.box(g.types.avcC,t))}static mvex(e){return g.box(g.types.mvex,g.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 g.box(g.types.trex,n)}static moof(e,t){return g.box(g.types.moof,g.mfhd(e.sequenceNumber),g.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 g.box(g.types.mfhd,t)}static traf(e,t){let n=e.id,i=g.box(g.types.tfhd,new Uint8Array([0,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,n&255])),a=g.box(g.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,t&255])),m=g.sdtp(e),w=g.trun(e,m.byteLength+16+16+8+16+8+8);return g.box(g.types.traf,i,a,w,m)}static sdtp(e){let t=e.samples||[],n=t.length,i=new Uint8Array(4+n);for(let a=0;a<n;a++){let m=t[a].flags;i[a+4]=m.isLeading<<6|m.dependsOn<<4|m.isDependedOn<<2|m.hasRedundancy}return g.box(g.types.sdtp,i)}static trun(e,t){let n=e.samples||[],i=n.length,a=12+16*i,m=new Uint8Array(a);t+=8+a,m.set([0,0,15,1,i>>>24&255,i>>>16&255,i>>>8&255,i&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0);for(let w=0;w<i;w++){let pe=n[w].duration,oe=n[w].size,ke=n[w].flags,Qe=n[w].cts;m.set([pe>>>24&255,pe>>>16&255,pe>>>8&255,pe&255,oe>>>24&255,oe>>>16&255,oe>>>8&255,oe&255,ke.isLeading<<2|ke.dependsOn,ke.isDependedOn<<6|ke.hasRedundancy<<4|ke.isNonSync,0,0,Qe>>>24&255,Qe>>>16&255,Qe>>>8&255,Qe&255],12+16*w)}return g.box(g.types.trun,m)}static mdat(e){return g.box(g.types.mdat,e)}}g.init();var F=g;class G{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 le=G;class Le{constructor(e,t,n,i,a){this.dts=e,this.pts=t,this.duration=n,this.originalDts=i,this.isSyncPoint=a,this.fileposition=null}}class Ze{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 Ye{constructor(){this._list=[]}clear(){this._list=[]}appendArray(e){let t=this._list;e.length!==0&&(t.length>0&&e[0].originalDts<t[t.length-1].originalDts&&this.clear(),Array.prototype.push.apply(t,e))}getLastSyncPointBeforeDts(e){if(this._list.length==0)return null;let t=this._list,n=0,i=t.length-1,a=0,m=0,w=i;for(e<t[0].dts&&(n=0,m=w+1);m<=w;)if(a=m+Math.floor((w-m)/2),a===i||e>=t[a].dts&&e<t[a+1].dts){n=a;break}else t[a].dts<e?m=a+1:w=a-1;return this._list[n]}}class ut{constructor(e){this._type=e,this._list=[],this._lastAppendLocation=-1}get type(){return this._type}get length(){return this._list.length}isEmpty(){return this._list.length===0}clear(){this._list=[],this._lastAppendLocation=-1}_searchNearestSegmentBefore(e){let t=this._list;if(t.length===0)return-2;let n=t.length-1,i=0,a=0,m=n,w=0;if(e<t[0].originalBeginDts)return w=-1,w;for(;a<=m;)if(i=a+Math.floor((m-a)/2),i===n||e>t[i].lastSample.originalDts&&e<t[i+1].originalBeginDts){w=i;break}else t[i].originalBeginDts<e?a=i+1:m=i-1;return w}_searchNearestSegmentAfter(e){return this._searchNearestSegmentBefore(e)+1}append(e){let t=this._list,n=e,i=this._lastAppendLocation,a=0;i!==-1&&i<t.length&&n.originalBeginDts>=t[i].lastSample.originalDts&&(i===t.length-1||i<t.length-1&&n.originalBeginDts<t[i+1].originalBeginDts)?a=i+1:t.length>0&&(a=this._searchNearestSegmentBefore(n.originalBeginDts)+1),this._lastAppendLocation=a,this._list.splice(a,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 ht{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 ut("audio"),this._videoSegmentInfoList=new ut("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(j.chrome&&(j.version.major<50||j.version.major===50&&j.version.build<2661)),this._fillSilentAfterSeek=j.msedge||j.msie,this._mp3UseMpegAudio=!j.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 X("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",a=t.codec;if(e==="audio")this._audioMeta=t,t.codec==="mp3"&&this._mp3UseMpegAudio?(i="mpeg",a="",n=new Uint8Array):n=F.generateInitSegment(t);else if(e==="video")this._videoMeta=t,n=F.generateInitSegment(t);else return;if(!this._onInitSegment)throw new X("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:n.buffer,codec:a,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,a,m=-1,w=-1,pe=-1,oe=this._audioMeta.refSampleDuration,ke=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Qe=this._dtsBaseInited&&this._audioNextDts===void 0,gt=!1;if(!i||i.length===0||i.length===1&&!t)return;let Xe=0,pt=null,ct=0;ke?(Xe=0,ct=n.length):(Xe=8,ct=8+n.length);let De=null;if(i.length>1&&(De=i.pop(),ct-=De.length),this._audioStashedLastSample!=null){let _t=this._audioStashedLastSample;this._audioStashedLastSample=null,i.unshift(_t),ct+=_t.length}De!=null&&(this._audioStashedLastSample=De);let Ve=i[0].dts-this._dtsBase;if(this._audioNextDts)a=Ve-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())a=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(gt=!0);else{let _t=this._audioSegmentInfoList.getLastSampleBefore(Ve);if(_t!=null){let Ut=Ve-(_t.originalDts+_t.duration);Ut<=3&&(Ut=0);let Jt=_t.dts+_t.duration+Ut;a=Ve-Jt}else a=0}if(gt){let _t=Ve-a,Ut=this._videoSegmentInfoList.getLastSegmentBefore(Ve);if(Ut!=null&&Ut.beginDts<_t){let Jt=le.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(Jt){let rn=Ut.beginDts,an=_t-Ut.beginDts;v.v(this.TAG,`InsertPrefixSilentAudio: dts: ${rn}, duration: ${an}`),i.unshift({unit:Jt,dts:rn,pts:rn}),ct+=Jt.byteLength}}else gt=!1}let vt=[];for(let _t=0;_t<i.length;_t++){let Ut=i[_t],Jt=Ut.unit,rn=Ut.dts-this._dtsBase,an=rn-a;m===-1&&(m=an);let _n=0;_t!==i.length-1?_n=i[_t+1].dts-this._dtsBase-a-an:De!=null?_n=De.dts-this._dtsBase-a-an:vt.length>=1?_n=vt[vt.length-1].duration:_n=Math.floor(oe);let Mn=!1,un=null;if(_n>oe*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!j.safari){Mn=!0;let Fn=Math.abs(_n-oe),on=Math.ceil(Fn/oe),Un=an+oe;v.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.
|
|
dts: ${an+_n} ms, expected: ${an+Math.round(oe)} ms, delta: ${Math.round(Fn)} ms, generate: ${on} frames`);let Pn=le.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Pn==null&&(v.w(this.TAG,`Unable to generate silent frame for ${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),Pn=Jt),un=[];for(let ln=0;ln<on;ln++){let dn=Math.round(Un);if(un.length>0){let Sn=un[un.length-1];Sn.duration=dn-Sn.dts}let Nn={dts:dn,pts:dn,cts:0,unit:Pn,size:Pn.byteLength,duration:0,originalDts:rn,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};un.push(Nn),ct+=Nn.size,Un+=oe}let vn=un[un.length-1];vn.duration=an+_n-vn.dts,_n=Math.round(oe)}vt.push({dts:an,pts:an,cts:0,unit:Ut.unit,size:Ut.unit.byteLength,duration:_n,originalDts:rn,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Mn&&vt.push.apply(vt,un)}ke?pt=new Uint8Array(ct):(pt=new Uint8Array(ct),pt[0]=ct>>>24&255,pt[1]=ct>>>16&255,pt[2]=ct>>>8&255,pt[3]=ct&255,pt.set(F.types.mdat,4));for(let _t=0;_t<vt.length;_t++){let Ut=vt[_t].unit;pt.set(Ut,Xe),Xe+=Ut.byteLength}let Ct=vt[vt.length-1];w=Ct.dts+Ct.duration,this._audioNextDts=w;let Je=new Ze;Je.beginDts=m,Je.endDts=w,Je.beginPts=m,Je.endPts=w,Je.originalBeginDts=vt[0].originalDts,Je.originalEndDts=Ct.originalDts+Ct.duration,Je.firstSample=new Le(vt[0].dts,vt[0].pts,vt[0].duration,vt[0].originalDts,!1),Je.lastSample=new Le(Ct.dts,Ct.pts,Ct.duration,Ct.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(Je),n.samples=vt,n.sequenceNumber++;let sn=null;ke?sn=new Uint8Array:sn=F.moof(n,m),n.samples=[],n.length=0;let Qt={type:"audio",data:this._mergeBoxes(sn,pt).buffer,sampleCount:vt.length,info:Je};ke&&Qe&&(Qt.timestampOffset=m),this._onMediaSegment("audio",Qt)}_remuxVideo(e,t){if(this._videoMeta==null)return;let n=e,i=n.samples,a,m=-1,w=-1,pe=-1,oe=-1;if(!i||i.length===0||i.length===1&&!t)return;let ke=8,Qe=null,gt=8+e.length,Xe=null;if(i.length>1&&(Xe=i.pop(),gt-=Xe.length),this._videoStashedLastSample!=null){let Ct=this._videoStashedLastSample;this._videoStashedLastSample=null,i.unshift(Ct),gt+=Ct.length}Xe!=null&&(this._videoStashedLastSample=Xe);let pt=i[0].dts-this._dtsBase;if(this._videoNextDts)a=pt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())a=0;else{let Ct=this._videoSegmentInfoList.getLastSampleBefore(pt);if(Ct!=null){let Je=pt-(Ct.originalDts+Ct.duration);Je<=3&&(Je=0);let sn=Ct.dts+Ct.duration+Je;a=pt-sn}else a=0}let ct=new Ze,De=[];for(let Ct=0;Ct<i.length;Ct++){let Je=i[Ct],sn=Je.dts-this._dtsBase,Qt=Je.isKeyframe,_t=sn-a,Ut=Je.cts,Jt=_t+Ut;m===-1&&(m=_t,pe=Jt);let rn=0;if(Ct!==i.length-1?rn=i[Ct+1].dts-this._dtsBase-a-_t:Xe!=null?rn=Xe.dts-this._dtsBase-a-_t:De.length>=1?rn=De[De.length-1].duration:rn=Math.floor(this._videoMeta.refSampleDuration),Qt){let an=new Le(_t,Jt,rn,Je.dts,!0);an.fileposition=Je.fileposition,ct.appendSyncPoint(an)}De.push({dts:_t,pts:Jt,cts:Ut,units:Je.units,size:Je.length,isKeyframe:Qt,duration:rn,originalDts:sn,flags:{isLeading:0,dependsOn:Qt?2:1,isDependedOn:Qt?1:0,hasRedundancy:0,isNonSync:Qt?0:1}})}Qe=new Uint8Array(gt),Qe[0]=gt>>>24&255,Qe[1]=gt>>>16&255,Qe[2]=gt>>>8&255,Qe[3]=gt&255,Qe.set(F.types.mdat,4);for(let Ct=0;Ct<De.length;Ct++){let Je=De[Ct].units;for(;Je.length;){let Qt=Je.shift().data;Qe.set(Qt,ke),ke+=Qt.byteLength}}let Ve=De[De.length-1];if(w=Ve.dts+Ve.duration,oe=Ve.pts+Ve.duration,this._videoNextDts=w,ct.beginDts=m,ct.endDts=w,ct.beginPts=pe,ct.endPts=oe,ct.originalBeginDts=De[0].originalDts,ct.originalEndDts=Ve.originalDts+Ve.duration,ct.firstSample=new Le(De[0].dts,De[0].pts,De[0].duration,De[0].originalDts,De[0].isKeyframe),ct.lastSample=new Le(Ve.dts,Ve.pts,Ve.duration,Ve.originalDts,Ve.isKeyframe),this._isLive||this._videoSegmentInfoList.append(ct),n.samples=De,n.sequenceNumber++,this._forceFirstIDR){let Ct=De[0].flags;Ct.dependsOn=2,Ct.isNonSync=0}let vt=F.moof(n,m);n.samples=[],n.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(vt,Qe).buffer,sampleCount:De.length,info:ct})}_mergeBoxes(e,t){let n=new Uint8Array(e.byteLength+t.byteLength);return n.set(e,0),n.set(t,e.byteLength),n}}var et=ht,Ce={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};class Kt{constructor(e,t){this.TAG="TransmuxingController",this._emitter=new(M()),this._config=t,e.segments||(e.segments=[{duration:e.duration,filesize:e.filesize,url:e.url}]),typeof e.cors!="boolean"&&(e.cors=!0),typeof e.withCredentials!="boolean"&&(e.withCredentials=!1),this._mediaDataSource=e,this._currentSegmentIndex=0;let n=0;this._mediaDataSource.segments.forEach(i=>{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 O(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;i<t.length;i++)if(e<t[i].timestampBase){n=i-1;break}return n}_onInitChunkArrival(e,t){let n=null,i=0;if(t>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,i=this._demuxer.parseChunks(e,t);else if((n=K.probe(e)).match){this._demuxer=new K(n,this._config),this._remuxer||(this._remuxer=new et(this._config));let a=this._mediaDataSource;a.duration!=null&&!isNaN(a.duration)&&(this._demuxer.overridedDuration=a.duration),typeof a.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=a.hasAudio),typeof a.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=a.hasVideo),this._demuxer.timestampBase=a.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,v.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Ce.DEMUX_ERROR,s.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,dt.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,dt.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(Ce.METADATA_ARRIVED,e)}_onScriptDataArrived(e){this._emitter.emit(Ce.SCRIPTDATA_ARRIVED,e)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(e){let n=e+1;n<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(n)):(this._remuxer.flushStashedSamples(),this._emitter.emit(Ce.LOADING_COMPLETE),this._disableStatisticsReporter())}_onIORedirect(e){let t=this._ioctl.extraData;this._mediaDataSource.segments[t].redirectedURL=e}_onIORecoveredEarlyEof(){this._emitter.emit(Ce.RECOVERED_EARLY_EOF)}_onIOException(e,t){v.e(this.TAG,`IOException: type = ${e}, code = ${t.code}, msg = ${t.msg}`),this._emitter.emit(Ce.IO_ERROR,e,t),this._disableStatisticsReporter()}_onDemuxException(e,t){v.e(this.TAG,`DemuxException: type = ${e}, info = ${t}`),this._emitter.emit(Ce.DEMUX_ERROR,e,t)}_onRemuxerInitSegmentArrival(e,t){this._emitter.emit(Ce.INIT_SEGMENT,e,t)}_onRemuxerMediaSegmentArrival(e,t){if(this._pendingSeekTime==null&&(this._emitter.emit(Ce.MEDIA_SEGMENT,e,t),this._pendingResolveSeekPoint!=null&&e==="video")){let n=t.info.syncPoints,i=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,j.safari&&n.length>0&&n[0].originalDts===i&&(i=n[0].pts),this._emitter.emit(Ce.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(Ce.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(Ce.STATISTICS_INFO,e)}}var Ft=Kt,Bt=function(q){let e="TransmuxingWorker",t=null,n=ct.bind(this);E.install(),q.addEventListener("message",function(De){switch(De.data.cmd){case"init":t=new Ft(De.data.param[0],De.data.param[1]),t.on(Ce.IO_ERROR,gt.bind(this)),t.on(Ce.DEMUX_ERROR,Xe.bind(this)),t.on(Ce.INIT_SEGMENT,i.bind(this)),t.on(Ce.MEDIA_SEGMENT,a.bind(this)),t.on(Ce.LOADING_COMPLETE,m.bind(this)),t.on(Ce.RECOVERED_EARLY_EOF,w.bind(this)),t.on(Ce.MEDIA_INFO,pe.bind(this)),t.on(Ce.METADATA_ARRIVED,oe.bind(this)),t.on(Ce.SCRIPTDATA_ARRIVED,ke.bind(this)),t.on(Ce.STATISTICS_INFO,Qe.bind(this)),t.on(Ce.RECOMMEND_SEEKPOINT,pt.bind(this));break;case"destroy":t&&(t.destroy(),t=null),q.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(De.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let Ve=De.data.param;$e.applyConfig(Ve),Ve.enableCallback===!0?$e.addLogListener(n):$e.removeLogListener(n);break}}});function i(De,Ve){let vt={msg:Ce.INIT_SEGMENT,data:{type:De,data:Ve}};q.postMessage(vt,[Ve.data])}function a(De,Ve){let vt={msg:Ce.MEDIA_SEGMENT,data:{type:De,data:Ve}};q.postMessage(vt,[Ve.data])}function m(){let De={msg:Ce.LOADING_COMPLETE};q.postMessage(De)}function w(){let De={msg:Ce.RECOVERED_EARLY_EOF};q.postMessage(De)}function pe(De){let Ve={msg:Ce.MEDIA_INFO,data:De};q.postMessage(Ve)}function oe(De){let Ve={msg:Ce.METADATA_ARRIVED,data:De};q.postMessage(Ve)}function ke(De){let Ve={msg:Ce.SCRIPTDATA_ARRIVED,data:De};q.postMessage(Ve)}function Qe(De){let Ve={msg:Ce.STATISTICS_INFO,data:De};q.postMessage(Ve)}function gt(De,Ve){q.postMessage({msg:Ce.IO_ERROR,data:{type:De,info:Ve}})}function Xe(De,Ve){q.postMessage({msg:Ce.DEMUX_ERROR,data:{type:De,info:Ve}})}function pt(De){q.postMessage({msg:Ce.RECOMMEND_SEEKPOINT,data:De})}function ct(De,Ve){q.postMessage({msg:"logcat_callback",data:{type:De,logcat:Ve}})}};class Wt{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new(M()),t.enableWorker&&typeof Worker!="undefined")try{let n=r(18034);this._worker=n(Bt),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)},$e.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:$e.getConfig()})}catch(n){v.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Ft(e,t)}else this._controller=new Ft(e,t);if(this._controller){let n=this._controller;n.on(Ce.IO_ERROR,this._onIOError.bind(this)),n.on(Ce.DEMUX_ERROR,this._onDemuxError.bind(this)),n.on(Ce.INIT_SEGMENT,this._onInitSegment.bind(this)),n.on(Ce.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),n.on(Ce.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),n.on(Ce.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),n.on(Ce.MEDIA_INFO,this._onMediaInfo.bind(this)),n.on(Ce.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),n.on(Ce.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),n.on(Ce.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),n.on(Ce.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),$e.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(Ce.INIT_SEGMENT,e,t)})}_onMediaSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(Ce.MEDIA_SEGMENT,e,t)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Ce.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Ce.RECOVERED_EARLY_EOF)})}_onMediaInfo(e){Promise.resolve().then(()=>{this._emitter.emit(Ce.MEDIA_INFO,e)})}_onMetaDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(Ce.METADATA_ARRIVED,e)})}_onScriptDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(Ce.SCRIPTDATA_ARRIVED,e)})}_onStatisticsInfo(e){Promise.resolve().then(()=>{this._emitter.emit(Ce.STATISTICS_INFO,e)})}_onIOError(e,t){Promise.resolve().then(()=>{this._emitter.emit(Ce.IO_ERROR,e,t)})}_onDemuxError(e,t){Promise.resolve().then(()=>{this._emitter.emit(Ce.DEMUX_ERROR,e,t)})}_onRecommendSeekpoint(e){Promise.resolve().then(()=>{this._emitter.emit(Ce.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 Ce.INIT_SEGMENT:case Ce.MEDIA_SEGMENT:this._emitter.emit(t.msg,n.type,n.data);break;case Ce.LOADING_COMPLETE:case Ce.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case Ce.MEDIA_INFO:Object.setPrototypeOf(n,dt.prototype),this._emitter.emit(t.msg,n);break;case Ce.METADATA_ARRIVED:case Ce.SCRIPTDATA_ARRIVED:case Ce.STATISTICS_INFO:this._emitter.emit(t.msg,n);break;case Ce.IO_ERROR:case Ce.DEMUX_ERROR:this._emitter.emit(t.msg,n.type,n.info);break;case Ce.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,n);break;case"logcat_callback":v.emitter.emit("log",n.type,n.logcat);break;default:break}}}var kt=Wt,$t={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};class Ht{constructor(e){this.TAG="MSEController",this._config=e,this._emitter=new(M()),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 Ye}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 X("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(a){v.e(this.TAG,a.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){v.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 a=!1;if(v.v(this.TAG,"Received Initialization Segment, mimeType: "+i),this._lastInitSegments[n.type]=n,i!==this._mimeTypes[n.type]){if(this._mimeTypes[n.type])v.v(this.TAG,`Notice: ${n.type} mimeType changed, origin: ${this._mimeTypes[n.type]}, target: ${i}`);else{a=!0;try{let m=this._sourceBuffers[n.type]=this._mediaSource.addSourceBuffer(i);m.addEventListener("error",this.e.onSourceBufferError),m.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(m){v.e(this.TAG,m.message),this._emitter.emit($t.ERROR,{code:m.code,msg:m.message});return}}this._mimeTypes[n.type]=i}t||this._pendingSegments[n.type].push(n),a||this._sourceBuffers[n.type]&&!this._sourceBuffers[n.type].updating&&this._doAppendSegments(),j.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(a){v.e(this.TAG,a.message)}this._idrList.clear();let i=this._pendingSegments[t];if(i.splice(0,i.length),this._mediaSource.readyState!=="closed"){for(let a=0;a<n.buffered.length;a++){let m=n.buffered.start(a),w=n.buffered.end(a);this._pendingRemoveRanges[t].push({start:m,end:w})}if(n.updating||this._doRemoveRanges(),j.safari){let a=this._lastInitSegments[t];a&&(this._pendingSegments[t].push(a),n.updating||this._doAppendSegments())}}}}endOfStream(){let e=this._mediaSource,t=this._sourceBuffers;if(!e||e.readyState!=="open"){e&&e.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}t.video&&t.video.updating||t.audio&&t.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,e.endOfStream())}getNearestKeyframe(e){return this._idrList.getLastSyncPointBeforeDts(e)}_needCleanupSourceBuffer(){if(!this._config.autoCleanupSourceBuffer)return!1;let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let n=this._sourceBuffers[t];if(n){let i=n.buffered;if(i.length>=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,a=!1;for(let m=0;m<i.length;m++){let w=i.start(m),pe=i.end(m);if(w<=e&&e<pe+3){if(e-w>=this._config.autoCleanupMaxBackwardDuration){a=!0;let oe=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:w,end:oe})}}else pe<e&&(a=!0,this._pendingRemoveRanges[t].push({start:w,end:pe}))}a&&!n.updating&&this._doRemoveRanges()}}}_updateMediaSourceDuration(){let e=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open"||e.video&&e.video.updating||e.audio&&e.audio.updating)return;let t=this._mediaSource.duration,n=this._pendingMediaDuration;n>0&&(isNaN(t)||n>t)&&(v.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,a=n.timestampOffset/1e3;Math.abs(i-a)>.1&&(v.v(this.TAG,`Update MPEG audio timestampOffset from ${i} to ${a}`),this._sourceBuffers[t].timestampOffset=a),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($t.BUFFER_FULL),this._isBufferFull=!0):(v.e(this.TAG,i.message),this._emitter.emit($t.ERROR,{code:i.code,msg:i.message}))}}}_onSourceOpen(){if(v.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($t.SOURCE_OPEN)}_onSourceEnded(){v.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){v.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($t.UPDATE_END)}_onSourceBufferError(e){v.e(this.TAG,`SourceBuffer Error: ${e}`)}}var mt=Ht;const en={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},yt={NETWORK_EXCEPTION:Y.EXCEPTION,NETWORK_STATUS_CODE_INVALID:Y.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:Y.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:Y.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:s.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:s.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:s.CODEC_UNSUPPORTED};class N{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new(M()),this._config=Fe(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()!=="flv")throw new ie("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=j.chrome&&(j.version.major<50||j.version.major===50&&j.version.build<2661);this._alwaysSeekKeyframe=!!(n||j.msedge||j.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===Te.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Te.MEDIA_INFO,this.mediaInfo)}):e===Te.STATISTICS_INFO&&this._statisticsInfo!=null&&Promise.resolve().then(()=>{this._emitter.emit(Te.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 mt(this._config),this._msectl.on($t.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on($t.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on($t.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on($t.ERROR,t=>{this._emitter.emit(Te.ERROR,en.MEDIA_ERROR,yt.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 X("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new X("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 kt(this._mediaDataSource,this._config),this._transmuxer.on(Ce.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(Ce.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&&(v.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(Ce.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(Te.LOADING_COMPLETE)}),this._transmuxer.on(Ce.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(Te.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Ce.IO_ERROR,(e,t)=>{this._emitter.emit(Te.ERROR,en.NETWORK_ERROR,e,t)}),this._transmuxer.on(Ce.DEMUX_ERROR,(e,t)=>{this._emitter.emit(Te.ERROR,en.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(Ce.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(Te.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(Ce.METADATA_ARRIVED,e=>{this._emitter.emit(Te.METADATA_ARRIVED,e)}),this._transmuxer.on(Ce.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(Te.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(Ce.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(Te.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Ce.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 a=this._mediaElement.getVideoPlaybackQuality();n=a.totalVideoFrames,i=a.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 a=0;a<e.length;a++){let m=e.start(a),w=e.end(a);if(m<=t&&t<w){n=m,i=w;break}}i>=t+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(v.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){v.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<t.length;i++){let a=t.start(i),m=t.end(i);if(e>=a&&e<m){e>=m-this._config.lazyLoadRecoverDuration&&(n=!0);break}}n&&(window.clearInterval(this._progressChecker),this._progressChecker=null,n&&(v.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(e){let t=this._mediaElement.buffered;for(let n=0;n<t.length;n++){let i=t.start(n),a=t.end(n);if(e>=i&&e<a)return!0}return!1}_internalSeek(e){let t=this._isTimepointBuffered(e),n=!1,i=0;if(e<1&&this._mediaElement.buffered.length>0){let a=this._mediaElement.buffered.start(0);(a<1&&e<a||j.safari)&&(n=!0,i=j.safari?.1:a)}if(n)this._requestSetTime=!0,this._mediaElement.currentTime=i;else if(t){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=e;else{let a=this._msectl.getNearestKeyframe(Math.floor(e*1e3));this._requestSetTime=!0,a!=null?this._mediaElement.currentTime=a.dts/1e3:this._mediaElement.currentTime=e}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(e*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e)}_checkAndApplyUnbufferedSeekpoint(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){let e=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(e)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(e),this._transmuxer.seek(Math.floor(e*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_checkAndResumeStuckPlayback(e){let t=this._mediaElement;if(e||!this._receivedCanPlay||t.readyState<2){let n=t.buffered;n.length>0&&t.currentTime<n.start(0)&&(v.w(this.TAG,`Playback seems stuck at ${t.currentTime}, seek to ${n.start(0)}`),this._requestSetTime=!0,this._mediaElement.currentTime=n.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}_onvLoadedMetadata(e){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}_onvSeeking(e){let t=this._mediaElement.currentTime,n=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(t<1&&n.length>0){let i=n.start(0);if(i<1&&t<i||j.safari){this._requestSetTime=!0,this._mediaElement.currentTime=j.safari?.1:i;return}}if(this._isTimepointBuffered(t)){if(this._alwaysSeekKeyframe){let i=this._msectl.getNearestKeyframe(Math.floor(t*1e3));i!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=i.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:t,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}_onvCanPlay(e){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}_onvStalled(e){this._checkAndResumeStuckPlayback(!0)}_onvProgress(e){this._checkAndResumeStuckPlayback()}}var ce=N;class me{constructor(e,t){if(this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new(M()),this._config=Fe(),typeof t=="object"&&Object.assign(this._config,t),e.type.toLowerCase()==="flv")throw new ie("NativePlayer does't support flv MediaDataSource input!");if(e.hasOwnProperty("segments"))throw new ie(`NativePlayer(${e.type}) doesn't support multipart playback!`);this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=e,this._mediaElement=null}destroy(){this._mediaElement&&(this.unload(),this.detachMediaElement()),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){e===Te.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Te.MEDIA_INFO,this.mediaInfo)}):e===Te.STATISTICS_INFO&&this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(()=>{this._emitter.emit(Te.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 X("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 a=this._mediaElement.getVideoPlaybackQuality();n=a.totalVideoFrames,i=a.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(Te.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(Te.STATISTICS_INFO,this.statisticsInfo)}}var _e=me;E.install();function He(q,e){let t=q;if(t==null||typeof t!="object")throw new ie("MediaDataSource must be an javascript object!");if(!t.hasOwnProperty("type"))throw new ie("MediaDataSource must has type field to indicate video file type!");switch(t.type){case"flv":return new ce(t,e);default:return new _e(t,e)}}function Me(){return ee.supportMSEH264Playback()}function Pe(){return ee.getFeatureList()}let Ae={};Ae.createPlayer=He,Ae.isSupported=Me,Ae.getFeatureList=Pe,Ae.BaseLoader=ne,Ae.LoaderStatus=I,Ae.LoaderErrors=Y,Ae.Events=Te,Ae.ErrorTypes=en,Ae.ErrorDetails=yt,Ae.FlvPlayer=ce,Ae.NativePlayer=_e,Ae.LoggingControl=$e,Object.defineProperty(Ae,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Ie=Ae},63185:function(St,Oe,r){"use strict";r.d(Oe,{C2:function(){return L}});var l=r(14747),E=r(45503),z=r(67968);const M=v=>{const{checkboxCls:x}=v,se=`${x}-wrapper`;return[{[`${x}-group`]:Object.assign(Object.assign({},(0,l.Wf)(v)),{display:"inline-flex",flexWrap:"wrap",columnGap:v.marginXS,[`> ${v.antCls}-row`]:{flex:1}}),[se]:Object.assign(Object.assign({},(0,l.Wf)(v)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${se}`]:{marginInlineStart:0},[`&${se}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[x]:Object.assign(Object.assign({},(0,l.Wf)(v)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:v.borderRadiusSM,alignSelf:"center",[`${x}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${x}-inner`]:Object.assign({},(0,l.oN)(v))},[`${x}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:v.checkboxSize,height:v.checkboxSize,direction:"ltr",backgroundColor:v.colorBgContainer,border:`${v.lineWidth}px ${v.lineType} ${v.colorBorder}`,borderRadius:v.borderRadiusSM,borderCollapse:"separate",transition:`all ${v.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:v.checkboxSize/14*5,height:v.checkboxSize/14*8,border:`${v.lineWidthBold}px solid ${v.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${v.motionDurationFast} ${v.motionEaseInBack}, opacity ${v.motionDurationFast}`}},"& + span":{paddingInlineStart:v.paddingXS,paddingInlineEnd:v.paddingXS}})},{[`
|
|
${se}:not(${se}-disabled),
|
|
${x}:not(${x}-disabled)
|
|
`]:{[`&:hover ${x}-inner`]:{borderColor:v.colorPrimary}},[`${se}:not(${se}-disabled)`]:{[`&:hover ${x}-checked:not(${x}-disabled) ${x}-inner`]:{backgroundColor:v.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${x}-checked:not(${x}-disabled):after`]:{borderColor:v.colorPrimaryHover}}},{[`${x}-checked`]:{[`${x}-inner`]:{backgroundColor:v.colorPrimary,borderColor:v.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${v.motionDurationMid} ${v.motionEaseOutBack} ${v.motionDurationFast}`}}},[`
|
|
${se}-checked:not(${se}-disabled),
|
|
${x}-checked:not(${x}-disabled)
|
|
`]:{[`&:hover ${x}-inner`]:{backgroundColor:v.colorPrimaryHover,borderColor:"transparent"}}},{[x]:{"&-indeterminate":{[`${x}-inner`]:{backgroundColor:v.colorBgContainer,borderColor:v.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:v.fontSizeLG/2,height:v.fontSizeLG/2,backgroundColor:v.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${se}-disabled`]:{cursor:"not-allowed"},[`${x}-disabled`]:{[`&, ${x}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${x}-inner`]:{background:v.colorBgContainerDisabled,borderColor:v.colorBorder,"&:after":{borderColor:v.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:v.colorTextDisabled},[`&${x}-indeterminate ${x}-inner::after`]:{background:v.colorTextDisabled}}}]};function L(v,x){const se=(0,E.TS)(x,{checkboxCls:`.${v}`,checkboxSize:x.controlInteractiveSize});return[M(se)]}Oe.ZP=(0,z.Z)("Checkbox",(v,x)=>{let{prefixCls:se}=x;return[L(se,v)]})},35874:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return o}});var l=r(67294),E=r(91034),z=r(94184),M=r.n(z),L=r(87462),v=r(4942),x=r(97685),se=r(45987),d=r(62709),X=r(71002),ie=r(12060);function de(s,_,k){var S=React.useRef({});return(!("value"in S.current)||k(S.current.condition,_))&&(S.current.value=s(),S.current.condition=_),S.current.value}function I(s,_){typeof s=="function"?s(_):(0,X.Z)(s)==="object"&&s&&"current"in s&&(s.current=_)}function Y(){for(var s=arguments.length,_=new Array(s),k=0;k<s;k++)_[k]=arguments[k];var S=_.filter(function(B){return B});return S.length<=1?S[0]:function(B){_.forEach(function(K){I(K,B)})}}function ne(){for(var s=arguments.length,_=new Array(s),k=0;k<s;k++)_[k]=arguments[k];return useMemo(function(){return Y.apply(void 0,_)},_,function(S,B){return S.length===B.length&&S.every(function(K,g){return K===B[g]})})}function ae(s){var _,k,S=(0,ie.isMemo)(s)?s.type.type:s.type;return!(typeof S=="function"&&!((_=S.prototype)!==null&&_!==void 0&&_.render)||typeof s=="function"&&!((k=s.prototype)!==null&&k!==void 0&&k.render))}var c={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(_){var k=_.keyCode;if(_.altKey&&!_.ctrlKey||_.metaKey||k>=c.F1&&k<=c.F12)return!1;switch(k){case c.ALT:case c.CAPS_LOCK:case c.CONTEXT_MENU:case c.CTRL:case c.DOWN:case c.END:case c.ESC:case c.HOME:case c.INSERT:case c.LEFT:case c.MAC_FF_META:case c.META:case c.NUMLOCK:case c.NUM_CENTER:case c.PAGE_DOWN:case c.PAGE_UP:case c.PAUSE:case c.PRINT_SCREEN:case c.RIGHT:case c.SHIFT:case c.UP:case c.WIN_KEY:case c.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(_){if(_>=c.ZERO&&_<=c.NINE||_>=c.NUM_ZERO&&_<=c.NUM_MULTIPLY||_>=c.A&&_<=c.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&_===0)return!0;switch(_){case c.SPACE:case c.QUESTION_MARK:case c.NUM_PLUS:case c.NUM_MINUS:case c.NUM_PERIOD:case c.NUM_DIVISION:case c.SEMICOLON:case c.DASH:case c.EQUALS:case c.COMMA:case c.PERIOD:case c.SLASH:case c.APOSTROPHE:case c.SINGLE_QUOTE:case c.OPEN_SQUARE_BRACKET:case c.BACKSLASH:case c.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},j=c,P=function(_){return+setTimeout(_,16)},T=function(_){return clearTimeout(_)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(P=function(_){return window.requestAnimationFrame(_)},T=function(_){return window.cancelAnimationFrame(_)});var A=0,f=new Map;function R(s){f.delete(s)}var H=function(_){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;A+=1;var S=A;function B(K){if(K===0)R(S),_();else{var g=P(function(){B(K-1)});f.set(S,g)}}return B(k),S};H.cancel=function(s){var _=f.get(s);return R(_),T(_)};var Z=H,re=j.ESC,ye=j.TAB;function we(s){var _=s.visible,k=s.triggerRef,S=s.onVisibleChange,B=s.autoFocus,K=s.overlayRef,g=l.useRef(!1),F=function(){if(_){var Ze,Ye;(Ze=k.current)===null||Ze===void 0||(Ye=Ze.focus)===null||Ye===void 0||Ye.call(Ze),S==null||S(!1)}},G=function(){var Ze;return(Ze=K.current)!==null&&Ze!==void 0&&Ze.focus?(K.current.focus(),g.current=!0,!0):!1},le=function(Ze){switch(Ze.keyCode){case re:F();break;case ye:{var Ye=!1;g.current||(Ye=G()),Ye?Ze.preventDefault():F();break}}};l.useEffect(function(){return _?(window.addEventListener("keydown",le),B&&Z(G,3),function(){window.removeEventListener("keydown",le),g.current=!1}):function(){g.current=!1}},[_])}var $=(0,l.forwardRef)(function(s,_){var k=s.overlay,S=s.arrow,B=s.prefixCls,K=(0,l.useMemo)(function(){var F;return typeof k=="function"?F=k():F=k,F},[k]),g=Y(_,K==null?void 0:K.ref);return l.createElement(l.Fragment,null,S&&l.createElement("div",{className:"".concat(B,"-arrow")}),l.cloneElement(K,{ref:ae(K)?g:void 0}))}),Ke=$,Q={adjustX:1,adjustY:1},ue=[0,0],D={topLeft:{points:["bl","tl"],overflow:Q,offset:[0,-4],targetOffset:ue},top:{points:["bc","tc"],overflow:Q,offset:[0,-4],targetOffset:ue},topRight:{points:["br","tr"],overflow:Q,offset:[0,-4],targetOffset:ue},bottomLeft:{points:["tl","bl"],overflow:Q,offset:[0,4],targetOffset:ue},bottom:{points:["tc","bc"],overflow:Q,offset:[0,4],targetOffset:ue},bottomRight:{points:["tr","br"],overflow:Q,offset:[0,4],targetOffset:ue}},O=D,Be=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Fe(s,_){var k,S=s.arrow,B=S===void 0?!1:S,K=s.prefixCls,g=K===void 0?"rc-dropdown":K,F=s.transitionName,G=s.animation,le=s.align,Le=s.placement,Ze=Le===void 0?"bottomLeft":Le,Ye=s.placements,ut=Ye===void 0?O:Ye,ht=s.getPopupContainer,et=s.showAction,bt=s.hideAction,Ce=s.overlayClassName,Kt=s.overlayStyle,Ft=s.visible,At=s.trigger,Bt=At===void 0?["hover"]:At,Wt=s.autoFocus,kt=s.overlay,Zt=s.children,$t=s.onVisibleChange,Ht=(0,se.Z)(s,Be),mt=l.useState(),en=(0,x.Z)(mt,2),yt=en[0],N=en[1],ce="visible"in s?Ft:yt,me=l.useRef(null),_e=l.useRef(null),He=l.useRef(null);l.useImperativeHandle(_,function(){return me.current});var Me=function(a){N(a),$t==null||$t(a)};we({visible:ce,triggerRef:He,onVisibleChange:Me,autoFocus:Wt,overlayRef:_e});var Pe=function(a){var m=s.onOverlayClick;N(!1),m&&m(a)},Ae=function(){return l.createElement(Ke,{ref:_e,overlay:kt,prefixCls:g,arrow:B})},Ie=function(){return typeof kt=="function"?Ae:Ae()},q=function(){var a=s.minOverlayWidthMatchTrigger,m=s.alignPoint;return"minOverlayWidthMatchTrigger"in s?a:!m},e=function(){var a=s.openClassName;return a!==void 0?a:"".concat(g,"-open")},t=l.cloneElement(Zt,{className:M()((k=Zt.props)===null||k===void 0?void 0:k.className,ce&&e()),ref:ae(Zt)?Y(He,Zt.ref):void 0}),n=bt;return!n&&Bt.indexOf("contextMenu")!==-1&&(n=["click"]),l.createElement(d.Z,(0,L.Z)({builtinPlacements:ut},Ht,{prefixCls:g,ref:me,popupClassName:M()(Ce,(0,v.Z)({},"".concat(g,"-show-arrow"),B)),popupStyle:Kt,action:Bt,showAction:et,hideAction:n,popupPlacement:Ze,popupAlign:le,popupTransitionName:F,popupAnimation:G,popupVisible:ce,stretch:q()?"minWidth":"",popup:Ie(),onPopupVisibleChange:Me,onPopupClick:Pe,getPopupContainer:ht}),t)}var Ne=l.forwardRef(Fe),ee=Ne,Ee=r(60276),Te=r(5663),xe=r(10366),$e=r(80636),Tt=r(8745),dt=r(96159),Mt=r(53124),Dt=r(68508),Nt=r(76529),xt=r(29691),Rt=r(66748);const It=null,Pt=s=>{const{menu:_,arrow:k,prefixCls:S,children:B,trigger:K,disabled:g,dropdownRender:F,getPopupContainer:G,overlayClassName:le,rootClassName:Le,open:Ze,onOpenChange:Ye,visible:ut,onVisibleChange:ht,mouseEnterDelay:et=.15,mouseLeaveDelay:bt=.1,autoAdjustOverflow:Ce=!0,placement:Kt="",overlay:Ft,transitionName:At}=s,{getPopupContainer:Bt,getPrefixCls:Wt,direction:kt}=l.useContext(Mt.E_),Zt=l.useMemo(()=>{const t=Wt();return At!==void 0?At:Kt.includes("top")?`${t}-slide-down`:`${t}-slide-up`},[Wt,Kt,At]),$t=l.useMemo(()=>Kt?Kt.includes("Center")?Kt.slice(0,Kt.indexOf("Center")):Kt:kt==="rtl"?"bottomRight":"bottomLeft",[Kt,kt]),Ht=Wt("dropdown",S),[mt,en]=(0,Rt.Z)(Ht),[,yt]=(0,xt.Z)(),N=l.Children.only(B),ce=(0,dt.Tm)(N,{className:M()(`${Ht}-trigger`,{[`${Ht}-rtl`]:kt==="rtl"},N.props.className),disabled:g}),me=g?[]:K;let _e;me&&me.includes("contextMenu")&&(_e=!0);const[He,Me]=(0,Te.Z)(!1,{value:Ze!=null?Ze:ut}),Pe=(0,Ee.useEvent)(t=>{Ye==null||Ye(t),ht==null||ht(t),Me(t)}),Ae=M()(le,Le,en,{[`${Ht}-rtl`]:kt==="rtl"}),Ie=(0,$e.Z)({arrowPointAtCenter:typeof k=="object"&&k.pointAtCenter,autoAdjustOverflow:Ce,offset:yt.marginXXS,arrowWidth:k?yt.sizePopupArrow:0,borderRadius:yt.borderRadius}),q=l.useCallback(()=>{Me(!1)},[]),e=()=>{let t;return _!=null&&_.items?t=l.createElement(Dt.default,Object.assign({},_)):typeof Ft=="function"?t=Ft():t=Ft,F&&(t=F(t)),t=l.Children.only(typeof t=="string"?l.createElement("span",null,t):t),l.createElement(Nt.J,{prefixCls:`${Ht}-menu`,expandIcon:l.createElement("span",{className:`${Ht}-menu-submenu-arrow`},l.createElement(E.Z,{className:`${Ht}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:q,validator:n=>{let{mode:i}=n}},t)};return mt(l.createElement(ee,Object.assign({alignPoint:_e},(0,xe.Z)(s,["rootClassName"]),{mouseEnterDelay:et,mouseLeaveDelay:bt,visible:He,builtinPlacements:Ie,arrow:!!k,overlayClassName:Ae,prefixCls:Ht,getPopupContainer:G||Bt,transitionName:Zt,trigger:me,overlay:e,placement:$t,onVisibleChange:Pe}),ce))};function at(s){return Object.assign(Object.assign({},s),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const fe=(0,Tt.Z)(Pt,"dropdown",s=>s,at),J=s=>l.createElement(fe,Object.assign({},s),l.createElement("span",null));Pt._InternalPanelDoNotUseOrYouWillBeFired=J;var o=Pt},85418:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return ne}});var l=r(35874),E=r(94184),z=r.n(E),M=r(67294),L=r(25877),v=r(71577),x=r(53124),se=r(93421),d=r(4173),X=r(66748),ie=function(ae,c){var j={};for(var P in ae)Object.prototype.hasOwnProperty.call(ae,P)&&c.indexOf(P)<0&&(j[P]=ae[P]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var T=0,P=Object.getOwnPropertySymbols(ae);T<P.length;T++)c.indexOf(P[T])<0&&Object.prototype.propertyIsEnumerable.call(ae,P[T])&&(j[P[T]]=ae[P[T]]);return j};const de=ae=>{const{getPopupContainer:c,getPrefixCls:j,direction:P}=M.useContext(x.E_),{prefixCls:T,type:A="default",danger:f,disabled:R,loading:H,onClick:Z,htmlType:re,children:ye,className:we,menu:$,arrow:Ke,autoFocus:Q,overlay:ue,trigger:D,align:O,open:Be,onOpenChange:Fe,placement:Ne,getPopupContainer:ee,href:Ee,icon:Te=M.createElement(L.Z,null),title:xe,buttonsRender:$e=g=>g,mouseEnterDelay:Tt,mouseLeaveDelay:dt,overlayClassName:Mt,overlayStyle:Dt,destroyPopupOnHide:Nt,dropdownRender:xt}=ae,Rt=ie(ae,["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"]),It=j("dropdown",T),Pt=`${It}-button`,[at,fe]=(0,X.Z)(It),J={menu:$,arrow:Ke,autoFocus:Q,align:O,disabled:R,trigger:R?[]:D,onOpenChange:Fe,getPopupContainer:ee||c,mouseEnterDelay:Tt,mouseLeaveDelay:dt,overlayClassName:Mt,overlayStyle:Dt,destroyPopupOnHide:Nt,dropdownRender:xt},{compactSize:o,compactItemClassnames:s}=(0,d.ri)(It,P),_=z()(Pt,s,we,fe);"overlay"in ae&&(J.overlay=ue),"open"in ae&&(J.open=Be),"placement"in ae?J.placement=Ne:J.placement=P==="rtl"?"bottomLeft":"bottomRight";const k=M.createElement(v.ZP,{type:A,danger:f,disabled:R,loading:H,onClick:Z,htmlType:re,href:Ee,title:xe},ye),S=M.createElement(v.ZP,{type:A,danger:f,icon:Te}),[B,K]=$e([k,S]);return at(M.createElement(se.Z.Compact,Object.assign({className:_,size:o,block:!0},Rt),B,M.createElement(l.Z,Object.assign({},J),K)))};de.__ANT_BUTTON=!0;var I=de;const Y=l.Z;Y.Button=I;var ne=Y},66748:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return ie}});var l=r(14747),E=r(67771),z=r(33297),M=r(50438),L=r(97414),v=r(67968),x=r(45503),d=de=>{const{componentCls:I,menuCls:Y,colorError:ne,colorTextLightSolid:ae}=de,c=`${Y}-item`;return{[`${I}, ${I}-menu-submenu`]:{[`${Y} ${c}`]:{[`&${c}-danger:not(${c}-disabled)`]:{color:ne,"&:hover":{color:ae,backgroundColor:ne}}}}}};const X=de=>{const{componentCls:I,menuCls:Y,zIndexPopup:ne,dropdownArrowDistance:ae,sizePopupArrow:c,antCls:j,iconCls:P,motionDurationMid:T,dropdownPaddingVertical:A,fontSize:f,dropdownEdgeChildPadding:R,colorTextDisabled:H,fontSizeIcon:Z,controlPaddingHorizontal:re,colorBgElevated:ye}=de;return[{[I]:Object.assign(Object.assign({},(0,l.Wf)(de)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ne,display:"block","&::before":{position:"absolute",insetBlock:-ae+c/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${j}-btn`]:{[`& > ${P}-down, & > ${j}-btn-icon > ${P}-down`]:{fontSize:Z}},[`${I}-wrap`]:{position:"relative",[`${j}-btn > ${P}-down`]:{fontSize:Z},[`${P}-down::before`]:{transition:`transform ${T}`}},[`${I}-wrap-open`]:{[`${P}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${j}-slide-down-enter${j}-slide-down-enter-active${I}-placement-bottomLeft,
|
|
&${j}-slide-down-appear${j}-slide-down-appear-active${I}-placement-bottomLeft,
|
|
&${j}-slide-down-enter${j}-slide-down-enter-active${I}-placement-bottom,
|
|
&${j}-slide-down-appear${j}-slide-down-appear-active${I}-placement-bottom,
|
|
&${j}-slide-down-enter${j}-slide-down-enter-active${I}-placement-bottomRight,
|
|
&${j}-slide-down-appear${j}-slide-down-appear-active${I}-placement-bottomRight`]:{animationName:E.fJ},[`&${j}-slide-up-enter${j}-slide-up-enter-active${I}-placement-topLeft,
|
|
&${j}-slide-up-appear${j}-slide-up-appear-active${I}-placement-topLeft,
|
|
&${j}-slide-up-enter${j}-slide-up-enter-active${I}-placement-top,
|
|
&${j}-slide-up-appear${j}-slide-up-appear-active${I}-placement-top,
|
|
&${j}-slide-up-enter${j}-slide-up-enter-active${I}-placement-topRight,
|
|
&${j}-slide-up-appear${j}-slide-up-appear-active${I}-placement-topRight`]:{animationName:E.Qt},[`&${j}-slide-down-leave${j}-slide-down-leave-active${I}-placement-bottomLeft,
|
|
&${j}-slide-down-leave${j}-slide-down-leave-active${I}-placement-bottom,
|
|
&${j}-slide-down-leave${j}-slide-down-leave-active${I}-placement-bottomRight`]:{animationName:E.Uw},[`&${j}-slide-up-leave${j}-slide-up-leave-active${I}-placement-topLeft,
|
|
&${j}-slide-up-leave${j}-slide-up-leave-active${I}-placement-top,
|
|
&${j}-slide-up-leave${j}-slide-up-leave-active${I}-placement-topRight`]:{animationName:E.ly}})},(0,L.ZP)(de,{colorBg:ye,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${I} ${Y}`]:{position:"relative",margin:0},[`${Y}-submenu-popup`]:{position:"absolute",zIndex:ne,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${I}, ${I}-menu-submenu`]:{[Y]:Object.assign(Object.assign({padding:R,listStyleType:"none",backgroundColor:ye,backgroundClip:"padding-box",borderRadius:de.borderRadiusLG,outline:"none",boxShadow:de.boxShadowSecondary},(0,l.Qy)(de)),{[`${Y}-item-group-title`]:{padding:`${A}px ${re}px`,color:de.colorTextDescription,transition:`all ${T}`},[`${Y}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Y}-item-icon`]:{minWidth:f,marginInlineEnd:de.marginXS,fontSize:de.fontSizeSM},[`${Y}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${T}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Y}-item, ${Y}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${A}px ${re}px`,color:de.colorText,fontWeight:"normal",fontSize:f,lineHeight:de.lineHeight,cursor:"pointer",transition:`all ${T}`,borderRadius:de.borderRadiusSM,"&:hover, &-active":{backgroundColor:de.controlItemBgHover}},(0,l.Qy)(de)),{"&-selected":{color:de.colorPrimary,backgroundColor:de.controlItemBgActive,"&:hover, &-active":{backgroundColor:de.controlItemBgActiveHover}},"&-disabled":{color:H,cursor:"not-allowed","&:hover":{color:H,backgroundColor:ye,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${de.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:de.colorSplit},[`${I}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:de.paddingXS,[`${I}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:de.colorTextDescription,fontSize:Z,fontStyle:"normal"}}}),[`${Y}-item-group-list`]:{margin:`0 ${de.marginXS}px`,padding:0,listStyle:"none"},[`${Y}-submenu-title`]:{paddingInlineEnd:re+de.fontSizeSM},[`${Y}-submenu-vertical`]:{position:"relative"},[`${Y}-submenu${Y}-submenu-disabled ${I}-menu-submenu-title`]:{[`&, ${I}-menu-submenu-arrow-icon`]:{color:H,backgroundColor:ye,cursor:"not-allowed"}},[`${Y}-submenu-selected ${I}-menu-submenu-title`]:{color:de.colorPrimary}})}},[(0,E.oN)(de,"slide-up"),(0,E.oN)(de,"slide-down"),(0,z.Fm)(de,"move-up"),(0,z.Fm)(de,"move-down"),(0,M._y)(de,"zoom-big")]]};var ie=(0,v.Z)("Dropdown",(de,I)=>{let{rootPrefixCls:Y}=I;const{marginXXS:ne,sizePopupArrow:ae,controlHeight:c,fontSize:j,lineHeight:P,paddingXXS:T,componentCls:A,borderRadiusLG:f}=de,R=(c-j*P)/2,{dropdownArrowOffset:H}=(0,L.fS)({contentRadius:f}),Z=(0,x.TS)(de,{menuCls:`${A}-menu`,rootPrefixCls:Y,dropdownArrowDistance:ae/2+ne,dropdownArrowOffset:H,dropdownPaddingVertical:R,dropdownEdgeChildPadding:T});return[X(Z),d(Z)]},de=>({zIndexPopup:de.zIndexPopupBase+50}))},32983:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return T}});var l=r(94184),E=r.n(l),z=r(67294),M=r(53124),L=r(10110),v=r(84780),x=r(29691),d=()=>{const[,A]=(0,x.Z)(),R=new v.C(A.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:R,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("g",{fill:"none",fillRule:"evenodd"},z.createElement("g",{transform:"translate(24 31.67)"},z.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),z.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),z.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),z.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),z.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),z.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),z.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},z.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),z.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ie=()=>{const[,A]=(0,x.Z)(),{colorFill:f,colorFillTertiary:R,colorFillQuaternary:H,colorBgContainer:Z}=A,{borderColor:re,shadowColor:ye,contentColor:we}=(0,z.useMemo)(()=>({borderColor:new v.C(f).onBackground(Z).toHexShortString(),shadowColor:new v.C(R).onBackground(Z).toHexShortString(),contentColor:new v.C(H).onBackground(Z).toHexShortString()}),[f,R,H,Z]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:ye,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke:re},z.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),z.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:we}))))},de=r(67968),I=r(45503);const Y=A=>{const{componentCls:f,margin:R,marginXS:H,marginXL:Z,fontSize:re,lineHeight:ye}=A;return{[f]:{marginInline:H,fontSize:re,lineHeight:ye,textAlign:"center",[`${f}-image`]:{height:A.emptyImgHeight,marginBottom:H,opacity:A.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${f}-description`]:{color:A.colorText},[`${f}-footer`]:{marginTop:R},"&-normal":{marginBlock:Z,color:A.colorTextDisabled,[`${f}-description`]:{color:A.colorTextDisabled},[`${f}-image`]:{height:A.emptyImgHeightMD}},"&-small":{marginBlock:H,color:A.colorTextDisabled,[`${f}-image`]:{height:A.emptyImgHeightSM}}}}};var ne=(0,de.Z)("Empty",A=>{const{componentCls:f,controlHeightLG:R}=A,H=(0,I.TS)(A,{emptyImgCls:`${f}-img`,emptyImgHeight:R*2.5,emptyImgHeightMD:R,emptyImgHeightSM:R*.875});return[Y(H)]}),ae=function(A,f){var R={};for(var H in A)Object.prototype.hasOwnProperty.call(A,H)&&f.indexOf(H)<0&&(R[H]=A[H]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,H=Object.getOwnPropertySymbols(A);Z<H.length;Z++)f.indexOf(H[Z])<0&&Object.prototype.propertyIsEnumerable.call(A,H[Z])&&(R[H[Z]]=A[H[Z]]);return R};const c=z.createElement(d,null),j=z.createElement(ie,null),P=A=>{var{className:f,rootClassName:R,prefixCls:H,image:Z=c,description:re,children:ye,imageStyle:we,style:$}=A,Ke=ae(A,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Q,direction:ue,empty:D}=z.useContext(M.E_),O=Q("empty",H),[Be,Fe]=ne(O),[Ne]=(0,L.Z)("Empty"),ee=typeof re!="undefined"?re:Ne==null?void 0:Ne.description,Ee=typeof ee=="string"?ee:"empty";let Te=null;return typeof Z=="string"?Te=z.createElement("img",{alt:Ee,src:Z}):Te=Z,Be(z.createElement("div",Object.assign({className:E()(Fe,O,D==null?void 0:D.className,{[`${O}-normal`]:Z===j,[`${O}-rtl`]:ue==="rtl"},f,R),style:Object.assign(Object.assign({},D==null?void 0:D.style),$)},Ke),z.createElement("div",{className:`${O}-image`,style:we},Te),ee&&z.createElement("div",{className:`${O}-description`},ee),ye&&z.createElement("div",{className:`${O}-footer`},ye)))};P.PRESENTED_IMAGE_DEFAULT=c,P.PRESENTED_IMAGE_SIMPLE=j;var T=P},71322:function(St,Oe,r){"use strict";r.d(Oe,{D:function(){return P},Z:function(){return f}});var l=r(87462),E=r(67294),z={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},M=z,L=r(84089),v=function(H,Z){return E.createElement(L.Z,(0,l.Z)({},H,{ref:Z,icon:M}))},x=E.forwardRef(v),se=r(22751),d=r(91034),X=r(94184),ie=r.n(X),de=r(10366),Y=R=>!isNaN(parseFloat(R))&&isFinite(R),ne=r(53124),ae=r(84321),c=function(R,H){var Z={};for(var re in R)Object.prototype.hasOwnProperty.call(R,re)&&H.indexOf(re)<0&&(Z[re]=R[re]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,re=Object.getOwnPropertySymbols(R);ye<re.length;ye++)H.indexOf(re[ye])<0&&Object.prototype.propertyIsEnumerable.call(R,re[ye])&&(Z[re[ye]]=R[re[ye]]);return Z};const j={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},P=E.createContext({}),T=(()=>{let R=0;return function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return R+=1,`${H}${R}`}})();var f=E.forwardRef((R,H)=>{const{prefixCls:Z,className:re,trigger:ye,children:we,defaultCollapsed:$=!1,theme:Ke="dark",style:Q={},collapsible:ue=!1,reverseArrow:D=!1,width:O=200,collapsedWidth:Be=80,zeroWidthTriggerStyle:Fe,breakpoint:Ne,onCollapse:ee,onBreakpoint:Ee}=R,Te=c(R,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:xe}=(0,E.useContext)(ae.Gs),[$e,Tt]=(0,E.useState)("collapsed"in R?R.collapsed:$),[dt,Mt]=(0,E.useState)(!1);(0,E.useEffect)(()=>{"collapsed"in R&&Tt(R.collapsed)},[R.collapsed]);const Dt=(at,fe)=>{"collapsed"in R||Tt(at),ee==null||ee(at,fe)},Nt=(0,E.useRef)();Nt.current=at=>{Mt(at.matches),Ee==null||Ee(at.matches),$e!==at.matches&&Dt(at.matches,"responsive")},(0,E.useEffect)(()=>{function at(J){return Nt.current(J)}let fe;if(typeof window!="undefined"){const{matchMedia:J}=window;if(J&&Ne&&Ne in j){fe=J(`(max-width: ${j[Ne]})`);try{fe.addEventListener("change",at)}catch(o){fe.addListener(at)}at(fe)}}return()=>{try{fe==null||fe.removeEventListener("change",at)}catch(J){fe==null||fe.removeListener(at)}}},[Ne]),(0,E.useEffect)(()=>{const at=T("ant-sider-");return xe.addSider(at),()=>xe.removeSider(at)},[]);const xt=()=>{Dt(!$e,"clickTrigger")},{getPrefixCls:Rt}=(0,E.useContext)(ne.E_),It=()=>{const at=Rt("layout-sider",Z),fe=(0,de.Z)(Te,["collapsed"]),J=$e?Be:O,o=Y(J)?`${J}px`:String(J),s=parseFloat(String(Be||0))===0?E.createElement("span",{onClick:xt,className:ie()(`${at}-zero-width-trigger`,`${at}-zero-width-trigger-${D?"right":"left"}`),style:Fe},ye||E.createElement(x,null)):null,S={expanded:D?E.createElement(d.Z,null):E.createElement(se.Z,null),collapsed:D?E.createElement(se.Z,null):E.createElement(d.Z,null)}[$e?"collapsed":"expanded"],B=ye!==null?s||E.createElement("div",{className:`${at}-trigger`,onClick:xt,style:{width:o}},ye||S):null,K=Object.assign(Object.assign({},Q),{flex:`0 0 ${o}`,maxWidth:o,minWidth:o,width:o}),g=ie()(at,`${at}-${Ke}`,{[`${at}-collapsed`]:!!$e,[`${at}-has-trigger`]:ue&&ye!==null&&!s,[`${at}-below`]:!!dt,[`${at}-zero-width`]:parseFloat(o)===0},re);return E.createElement("aside",Object.assign({className:g},fe,{style:K,ref:H}),E.createElement("div",{className:`${at}-children`},we),ue||dt&&s?B:null)},Pt=E.useMemo(()=>({siderCollapsed:$e}),[$e]);return E.createElement(P.Provider,{value:Pt},It())})},84321:function(St,Oe,r){"use strict";r.d(Oe,{VY:function(){return T},$_:function(){return P},h4:function(){return j},Gs:function(){return I},ZP:function(){return A}});var l=r(74902),E=r(94184),z=r.n(E),M=r(10366),L=r(67294),v=r(53124),x=r(67968),d=f=>{const{componentCls:R,bodyBg:H,lightSiderBg:Z,lightTriggerBg:re,lightTriggerColor:ye}=f;return{[`${R}-sider-light`]:{background:Z,[`${R}-sider-trigger`]:{color:ye,background:re},[`${R}-sider-zero-width-trigger`]:{color:ye,background:re,border:`1px solid ${H}`,borderInlineStart:0}}}};const X=f=>{const{antCls:R,componentCls:H,colorText:Z,triggerColor:re,footerBg:ye,triggerBg:we,headerHeight:$,headerPadding:Ke,headerColor:Q,footerPadding:ue,triggerHeight:D,zeroTriggerHeight:O,zeroTriggerWidth:Be,motionDurationMid:Fe,motionDurationSlow:Ne,fontSize:ee,borderRadius:Ee,bodyBg:Te,headerBg:xe,siderBg:$e}=f;return{[H]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Te,"&, *":{boxSizing:"border-box"},[`&${H}-has-sider`]:{flexDirection:"row",[`> ${H}, > ${H}-content`]:{width:0}},[`${H}-header, &${H}-footer`]:{flex:"0 0 auto"},[`${H}-sider`]:{position:"relative",minWidth:0,background:$e,transition:`all ${Fe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${R}-menu${R}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:D},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:D,color:re,lineHeight:`${D}px`,textAlign:"center",background:we,cursor:"pointer",transition:`all ${Fe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:$,insetInlineEnd:-Be,zIndex:1,width:Be,height:O,color:re,fontSize:f.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:$e,borderStartStartRadius:0,borderStartEndRadius:Ee,borderEndEndRadius:Ee,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ne} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ne}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Be,borderStartStartRadius:Ee,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ee}}}}},d(f)),{"&-rtl":{direction:"rtl"}}),[`${H}-header`]:{height:$,padding:Ke,color:Q,lineHeight:`${$}px`,background:xe,[`${R}-menu`]:{lineHeight:"inherit"}},[`${H}-footer`]:{padding:ue,color:Z,fontSize:ee,background:ye},[`${H}-content`]:{flex:"auto",minHeight:0}}};var ie=(0,x.Z)("Layout",f=>[X(f)],f=>{const{colorBgLayout:R,controlHeight:H,controlHeightLG:Z,colorText:re,controlHeightSM:ye,marginXXS:we,colorTextLightSolid:$,colorBgContainer:Ke}=f,Q=Z*1.25;return{colorBgHeader:"#001529",colorBgBody:R,colorBgTrigger:"#002140",bodyBg:R,headerBg:"#001529",headerHeight:H*2,headerPadding:`0 ${Q}px`,headerColor:re,footerPadding:`${ye}px ${Q}px`,footerBg:R,siderBg:"#001529",triggerHeight:Z+we*2,triggerBg:"#002140",triggerColor:$,zeroTriggerWidth:Z,zeroTriggerHeight:Z,lightSiderBg:Ke,lightTriggerBg:Ke,lightTriggerColor:re}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),de=function(f,R){var H={};for(var Z in f)Object.prototype.hasOwnProperty.call(f,Z)&&R.indexOf(Z)<0&&(H[Z]=f[Z]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,Z=Object.getOwnPropertySymbols(f);re<Z.length;re++)R.indexOf(Z[re])<0&&Object.prototype.propertyIsEnumerable.call(f,Z[re])&&(H[Z[re]]=f[Z[re]]);return H};const I=L.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Y(f){let{suffixCls:R,tagName:H,displayName:Z}=f;return re=>L.forwardRef((we,$)=>L.createElement(re,Object.assign({ref:$,suffixCls:R,tagName:H},we)))}const ne=L.forwardRef((f,R)=>{const{prefixCls:H,suffixCls:Z,className:re,tagName:ye}=f,we=de(f,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:$}=L.useContext(v.E_),Ke=$("layout",H),[Q,ue]=ie(Ke),D=Z?`${Ke}-${Z}`:Ke;return Q(L.createElement(ye,Object.assign({className:z()(H||D,re,ue),ref:R},we)))}),ae=L.forwardRef((f,R)=>{const{direction:H}=L.useContext(v.E_),[Z,re]=L.useState([]),{prefixCls:ye,className:we,rootClassName:$,children:Ke,hasSider:Q,tagName:ue,style:D}=f,O=de(f,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Be=(0,M.Z)(O,["suffixCls"]),{getPrefixCls:Fe,layout:Ne}=L.useContext(v.E_),ee=Fe("layout",ye),[Ee,Te]=ie(ee),xe=z()(ee,{[`${ee}-has-sider`]:typeof Q=="boolean"?Q:Z.length>0,[`${ee}-rtl`]:H==="rtl"},Ne==null?void 0:Ne.className,we,$,Te),$e=L.useMemo(()=>({siderHook:{addSider:Tt=>{re(dt=>[].concat((0,l.Z)(dt),[Tt]))},removeSider:Tt=>{re(dt=>dt.filter(Mt=>Mt!==Tt))}}}),[]);return Ee(L.createElement(I.Provider,{value:$e},L.createElement(ue,Object.assign({ref:R,className:xe,style:Object.assign(Object.assign({},Ne==null?void 0:Ne.style),D)},Be),Ke)))}),c=Y({tagName:"div",displayName:"Layout"})(ae),j=Y({suffixCls:"header",tagName:"header",displayName:"Header"})(ne),P=Y({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ne),T=Y({suffixCls:"content",tagName:"main",displayName:"Content"})(ne);var A=c},76529:function(St,Oe,r){"use strict";r.d(Oe,{J:function(){return v}});var l=r(67294),E=r(4173),z=r(60276),M=function(x,se){var d={};for(var X in x)Object.prototype.hasOwnProperty.call(x,X)&&se.indexOf(X)<0&&(d[X]=x[X]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,X=Object.getOwnPropertySymbols(x);ie<X.length;ie++)se.indexOf(X[ie])<0&&Object.prototype.propertyIsEnumerable.call(x,X[ie])&&(d[X[ie]]=x[X[ie]]);return d};const L=l.createContext(null),v=l.forwardRef((x,se)=>{const{children:d}=x,X=M(x,["children"]),ie=l.useContext(L),de=l.useMemo(()=>Object.assign(Object.assign({},ie),X),[ie,X.prefixCls,X.mode,X.selectable]);return l.createElement(L.Provider,{value:de},l.createElement(E.BR,null,(0,z.supportNodeRef)(d)?l.cloneElement(d,{ref:se}):d))});Oe.Z=L},68508:function(St,Oe,r){"use strict";r.d(Oe,{default:function(){return at}});var l=r(78595),E=r(67294),z=r(71322),M=r(94184),L=r.n(M),v=r(53124),x=function(fe,J){var o={};for(var s in fe)Object.prototype.hasOwnProperty.call(fe,s)&&J.indexOf(s)<0&&(o[s]=fe[s]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,s=Object.getOwnPropertySymbols(fe);_<s.length;_++)J.indexOf(s[_])<0&&Object.prototype.propertyIsEnumerable.call(fe,s[_])&&(o[s[_]]=fe[s[_]]);return o},d=fe=>{const{prefixCls:J,className:o,dashed:s}=fe,_=x(fe,["prefixCls","className","dashed"]),{getPrefixCls:k}=E.useContext(v.E_),S=k("menu",J),B=L()({[`${S}-item-divider-dashed`]:!!s},o);return E.createElement(l.iz,Object.assign({className:B},_))},X=r(37419),ie=r(10366),de=r(83062),I=r(96159),ne=(0,E.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),c=fe=>{var J;const{className:o,children:s,icon:_,title:k,danger:S}=fe,{prefixCls:B,firstLevel:K,direction:g,disableMenuItemTitleTooltip:F,inlineCollapsed:G}=E.useContext(ne),le=et=>{const bt=E.createElement("span",{className:`${B}-title-content`},s);return(!_||(0,I.l$)(s)&&s.type==="span")&&s&&et&&K&&typeof s=="string"?E.createElement("div",{className:`${B}-inline-collapsed-noicon`},s.charAt(0)):bt},{siderCollapsed:Le}=E.useContext(z.D);let Ze=k;typeof k=="undefined"?Ze=K?s:"":k===!1&&(Ze="");const Ye={title:Ze};!Le&&!G&&(Ye.title=null,Ye.open=!1);const ut=(0,X.Z)(s).length;let ht=E.createElement(l.ck,Object.assign({},(0,ie.Z)(fe,["title","icon","danger"]),{className:L()({[`${B}-item-danger`]:S,[`${B}-item-only-child`]:(_?ut+1:ut)===1},o),title:typeof k=="string"?k:void 0}),(0,I.Tm)(_,{className:L()((0,I.l$)(_)?(J=_.props)===null||J===void 0?void 0:J.className:"",`${B}-item-icon`)}),le(G));return F||(ht=E.createElement(de.Z,Object.assign({},Ye,{placement:g==="rtl"?"left":"right",overlayClassName:`${B}-inline-collapsed-tooltip`}),ht)),ht},P=fe=>{var J;const{popupClassName:o,icon:s,title:_,theme:k}=fe,S=E.useContext(ne),{prefixCls:B,inlineCollapsed:K,theme:g}=S,F=(0,l.Xl)();let G;if(!s)G=K&&!F.length&&_&&typeof _=="string"?E.createElement("div",{className:`${B}-inline-collapsed-noicon`},_.charAt(0)):E.createElement("span",{className:`${B}-title-content`},_);else{const Le=(0,I.l$)(_)&&_.type==="span";G=E.createElement(E.Fragment,null,(0,I.Tm)(s,{className:L()((0,I.l$)(s)?(J=s.props)===null||J===void 0?void 0:J.className:"",`${B}-item-icon`)}),Le?_:E.createElement("span",{className:`${B}-title-content`},_))}const le=E.useMemo(()=>Object.assign(Object.assign({},S),{firstLevel:!1}),[S]);return E.createElement(ne.Provider,{value:le},E.createElement(l.Wd,Object.assign({},(0,ie.Z)(fe,["icon"]),{title:G,popupClassName:L()(B,o,`${B}-${k||g}`)})))},T=r(25877),A=r(60276),f=r(33603),R=r(76529),H=function(fe,J){var o={};for(var s in fe)Object.prototype.hasOwnProperty.call(fe,s)&&J.indexOf(s)<0&&(o[s]=fe[s]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,s=Object.getOwnPropertySymbols(fe);_<s.length;_++)J.indexOf(s[_])<0&&Object.prototype.propertyIsEnumerable.call(fe,s[_])&&(o[s[_]]=fe[s[_]]);return o};function Z(fe){return(fe||[]).map((J,o)=>{if(J&&typeof J=="object"){const s=J,{label:_,children:k,key:S,type:B}=s,K=H(s,["label","children","key","type"]),g=S!=null?S:`tmp-${o}`;return k||B==="group"?B==="group"?E.createElement(l.BW,Object.assign({key:g},K,{title:_}),Z(k)):E.createElement(P,Object.assign({key:g},K,{title:_}),Z(k)):B==="divider"?E.createElement(d,Object.assign({key:g},K)):E.createElement(c,Object.assign({key:g},K),_)}return null}).filter(J=>J)}function re(fe){return E.useMemo(()=>fe&&Z(fe),[fe])}var ye=r(84780),we=r(14747),$=r(33507),Ke=r(67771),Q=r(50438),ue=r(67968),D=r(45503),Be=fe=>{const{componentCls:J,motionDurationSlow:o,horizontalLineHeight:s,colorSplit:_,lineWidth:k,lineType:S,itemPaddingInline:B}=fe;return{[`${J}-horizontal`]:{lineHeight:s,border:0,borderBottom:`${k}px ${S} ${_}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${J}-item, ${J}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:B},[`> ${J}-item:hover,
|
|
> ${J}-item-active,
|
|
> ${J}-submenu ${J}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${J}-item, ${J}-submenu-title`]:{transition:[`border-color ${o}`,`background ${o}`].join(",")},[`${J}-submenu-arrow`]:{display:"none"}}}},Ne=fe=>{let{componentCls:J,menuArrowOffset:o}=fe;return{[`${J}-rtl`]:{direction:"rtl"},[`${J}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${J}-rtl${J}-vertical,
|
|
${J}-submenu-rtl ${J}-vertical`]:{[`${J}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${o})`},"&::after":{transform:`rotate(45deg) translateY(${o})`}}}}};const ee=fe=>Object.assign({},(0,we.oN)(fe));var Te=(fe,J)=>{const{componentCls:o,itemColor:s,itemSelectedColor:_,groupTitleColor:k,itemBg:S,subMenuItemBg:B,itemSelectedBg:K,activeBarHeight:g,activeBarWidth:F,activeBarBorderWidth:G,motionDurationSlow:le,motionEaseInOut:Le,motionEaseOut:Ze,itemPaddingInline:Ye,motionDurationMid:ut,itemHoverColor:ht,lineType:et,colorSplit:bt,itemDisabledColor:Ce,dangerItemColor:Kt,dangerItemHoverColor:Ft,dangerItemSelectedColor:At,dangerItemActiveBg:Bt,dangerItemSelectedBg:Wt,itemHoverBg:kt,itemActiveBg:Zt,menuSubMenuBg:$t,horizontalItemSelectedColor:Ht,horizontalItemSelectedBg:mt,horizontalItemBorderRadius:en,horizontalItemHoverBg:yt,popupBg:N}=fe;return{[`${o}-${J}, ${o}-${J} > ${o}`]:{color:s,background:S,[`&${o}-root:focus-visible`]:Object.assign({},ee(fe)),[`${o}-item-group-title`]:{color:k},[`${o}-submenu-selected`]:{[`> ${o}-submenu-title`]:{color:_}},[`${o}-item-disabled, ${o}-submenu-disabled`]:{color:`${Ce} !important`},[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]:{[`&:hover, > ${o}-submenu-title:hover`]:{color:ht}},[`&:not(${o}-horizontal)`]:{[`${o}-item:not(${o}-item-selected)`]:{"&:hover":{backgroundColor:kt},"&:active":{backgroundColor:Zt}},[`${o}-submenu-title`]:{"&:hover":{backgroundColor:kt},"&:active":{backgroundColor:Zt}}},[`${o}-item-danger`]:{color:Kt,[`&${o}-item:hover`]:{[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]:{color:Ft}},[`&${o}-item:active`]:{background:Bt}},[`${o}-item a`]:{"&, &:hover":{color:"inherit"}},[`${o}-item-selected`]:{color:_,[`&${o}-item-danger`]:{color:At},"a, a:hover":{color:"inherit"}},[`& ${o}-item-selected`]:{backgroundColor:K,[`&${o}-item-danger`]:{backgroundColor:Wt}},[`${o}-item, ${o}-submenu-title`]:{[`&:not(${o}-item-disabled):focus-visible`]:Object.assign({},ee(fe))},[`&${o}-submenu > ${o}`]:{backgroundColor:$t},[`&${o}-popup > ${o}`]:{backgroundColor:N},[`&${o}-horizontal`]:Object.assign(Object.assign({},J==="dark"?{borderBottom:0}:{}),{[`> ${o}-item, > ${o}-submenu`]:{top:G,marginTop:-G,marginBottom:0,borderRadius:en,"&::after":{position:"absolute",insetInline:Ye,bottom:0,borderBottom:`${g}px solid transparent`,transition:`border-color ${le} ${Le}`,content:'""'},"&:hover, &-active, &-open":{background:yt,"&::after":{borderBottomWidth:g,borderBottomColor:Ht}},"&-selected":{color:Ht,backgroundColor:mt,"&:hover":{backgroundColor:mt},"&::after":{borderBottomWidth:g,borderBottomColor:Ht}}}}),[`&${o}-root`]:{[`&${o}-inline, &${o}-vertical`]:{borderInlineEnd:`${G}px ${et} ${bt}`}},[`&${o}-inline`]:{[`${o}-sub${o}-inline`]:{background:B},[`${o}-item, ${o}-submenu-title`]:G&&F?{width:`calc(100% + ${G}px)`}:{},[`${o}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${F}px solid ${_}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ut} ${Ze}`,`opacity ${ut} ${Ze}`].join(","),content:'""'},[`&${o}-item-danger`]:{"&::after":{borderInlineEndColor:At}}},[`${o}-selected, ${o}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ut} ${Le}`,`opacity ${ut} ${Le}`].join(",")}}}}}};const xe=fe=>{const{componentCls:J,itemHeight:o,itemMarginInline:s,padding:_,menuArrowSize:k,marginXS:S,itemMarginBlock:B}=fe,K=_+k+S;return{[`${J}-item`]:{position:"relative",overflow:"hidden"},[`${J}-item, ${J}-submenu-title`]:{height:o,lineHeight:`${o}px`,paddingInline:_,overflow:"hidden",textOverflow:"ellipsis",marginInline:s,marginBlock:B,width:`calc(100% - ${s*2}px)`},[`> ${J}-item,
|
|
> ${J}-submenu > ${J}-submenu-title`]:{height:o,lineHeight:`${o}px`},[`${J}-item-group-list ${J}-submenu-title,
|
|
${J}-submenu-title`]:{paddingInlineEnd:K}}};var Tt=fe=>{const{componentCls:J,iconCls:o,itemHeight:s,colorTextLightSolid:_,dropdownWidth:k,controlHeightLG:S,motionDurationMid:B,motionEaseOut:K,paddingXL:g,itemMarginInline:F,fontSizeLG:G,motionDurationSlow:le,paddingXS:Le,boxShadowSecondary:Ze,collapsedWidth:Ye,collapsedIconSize:ut}=fe,ht={height:s,lineHeight:`${s}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[J]:{"&-inline, &-vertical":Object.assign({[`&${J}-root`]:{boxShadow:"none"}},xe(fe))},[`${J}-submenu-popup`]:{[`${J}-vertical`]:Object.assign(Object.assign({},xe(fe)),{boxShadow:Ze})}},{[`${J}-submenu-popup ${J}-vertical${J}-sub`]:{minWidth:k,maxHeight:`calc(100vh - ${S*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${J}-inline`]:{width:"100%",[`&${J}-root`]:{[`${J}-item, ${J}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${le}`,`background ${le}`,`padding ${B} ${K}`].join(","),[`> ${J}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${J}-sub${J}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${J}-submenu > ${J}-submenu-title`]:ht,[`& ${J}-item-group-title`]:{paddingInlineStart:g}},[`${J}-item`]:ht}},{[`${J}-inline-collapsed`]:{width:Ye,[`&${J}-root`]:{[`${J}-item, ${J}-submenu ${J}-submenu-title`]:{[`> ${J}-inline-collapsed-noicon`]:{fontSize:G,textAlign:"center"}}},[`> ${J}-item,
|
|
> ${J}-item-group > ${J}-item-group-list > ${J}-item,
|
|
> ${J}-item-group > ${J}-item-group-list > ${J}-submenu > ${J}-submenu-title,
|
|
> ${J}-submenu > ${J}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${G/2}px - ${F}px)`,textOverflow:"clip",[`
|
|
${J}-submenu-arrow,
|
|
${J}-submenu-expand-icon
|
|
`]:{opacity:0},[`${J}-item-icon, ${o}`]:{margin:0,fontSize:ut,lineHeight:`${s}px`,"+ span":{display:"inline-block",opacity:0}}},[`${J}-item-icon, ${o}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${J}-item-icon, ${o}`]:{display:"none"},"a, a:hover":{color:_}},[`${J}-item-group-title`]:Object.assign(Object.assign({},we.vS),{paddingInline:Le})}}]};const dt=fe=>{const{componentCls:J,motionDurationSlow:o,motionDurationMid:s,motionEaseInOut:_,motionEaseOut:k,iconCls:S,iconSize:B,iconMarginInlineEnd:K}=fe;return{[`${J}-item, ${J}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${_}`].join(","),[`${J}-item-icon, ${S}`]:{minWidth:B,fontSize:B,transition:[`font-size ${s} ${k}`,`margin ${o} ${_}`,`color ${o}`].join(","),"+ span":{marginInlineStart:K,opacity:1,transition:[`opacity ${o} ${_}`,`margin ${o}`,`color ${o}`].join(",")}},[`${J}-item-icon`]:Object.assign({},(0,we.Ro)()),[`&${J}-item-only-child`]:{[`> ${S}, > ${J}-item-icon`]:{marginInlineEnd:0}}},[`${J}-item-disabled, ${J}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${J}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Mt=fe=>{const{componentCls:J,motionDurationSlow:o,motionEaseInOut:s,borderRadius:_,menuArrowSize:k,menuArrowOffset:S}=fe;return{[`${J}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:fe.margin,width:k,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${o} ${s}, opacity ${o}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:k*.6,height:k*.15,backgroundColor:"currentcolor",borderRadius:_,transition:[`background ${o} ${s}`,`transform ${o} ${s}`,`top ${o} ${s}`,`color ${o} ${s}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${S})`},"&::after":{transform:`rotate(-45deg) translateY(${S})`}}}}},Dt=fe=>{const{antCls:J,componentCls:o,fontSize:s,motionDurationSlow:_,motionDurationMid:k,motionEaseInOut:S,paddingXS:B,padding:K,colorSplit:g,lineWidth:F,zIndexPopup:G,borderRadiusLG:le,subMenuItemBorderRadius:Le,menuArrowSize:Ze,menuArrowOffset:Ye,lineType:ut,menuPanelMaskInset:ht,groupTitleLineHeight:et,groupTitleFontSize:bt}=fe;return[{"":{[`${o}`]:Object.assign(Object.assign({},(0,we.dF)()),{"&-hidden":{display:"none"}})},[`${o}-submenu-hidden`]:{display:"none"}},{[o]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,we.Wf)(fe)),(0,we.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:s,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${_} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${o}-item`]:{flex:"none"}},[`${o}-item, ${o}-submenu, ${o}-submenu-title`]:{borderRadius:fe.itemBorderRadius},[`${o}-item-group-title`]:{padding:`${B}px ${K}px`,fontSize:bt,lineHeight:et,transition:`all ${_}`},[`&-horizontal ${o}-submenu`]:{transition:[`border-color ${_} ${S}`,`background ${_} ${S}`].join(",")},[`${o}-submenu, ${o}-submenu-inline`]:{transition:[`border-color ${_} ${S}`,`background ${_} ${S}`,`padding ${k} ${S}`].join(",")},[`${o}-submenu ${o}-sub`]:{cursor:"initial",transition:[`background ${_} ${S}`,`padding ${_} ${S}`].join(",")},[`${o}-title-content`]:{transition:`color ${_}`},[`${o}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${o}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:g,borderStyle:ut,borderWidth:0,borderTopWidth:F,marginBlock:F,padding:0,"&-dashed":{borderStyle:"dashed"}}}),dt(fe)),{[`${o}-item-group`]:{[`${o}-item-group-list`]:{margin:0,padding:0,[`${o}-item, ${o}-submenu-title`]:{paddingInline:`${s*2}px ${K}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:G,borderRadius:le,boxShadow:"none",transformOrigin:"0 0",[`&${o}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ht}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ht},"\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:fe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:fe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:fe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:fe.paddingXS},[`> ${o}`]:Object.assign(Object.assign(Object.assign({borderRadius:le},dt(fe)),Mt(fe)),{[`${o}-item, ${o}-submenu > ${o}-submenu-title`]:{borderRadius:Le},[`${o}-submenu-title::after`]:{transition:`transform ${_} ${S}`}})}}),Mt(fe)),{[`&-inline-collapsed ${o}-submenu-arrow,
|
|
&-inline ${o}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ye})`},"&::after":{transform:`rotate(45deg) translateX(-${Ye})`}},[`${o}-submenu-open${o}-submenu-inline > ${o}-submenu-title > ${o}-submenu-arrow`]:{transform:`translateY(-${Ze*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ye})`},"&::before":{transform:`rotate(45deg) translateX(${Ye})`}}})},{[`${J}-layout-header`]:{[o]:{lineHeight:"inherit"}}}]};var Nt=(fe,J)=>(0,ue.Z)("Menu",s=>{if(J===!1)return[];const{colorBgElevated:_,colorPrimary:k,colorTextLightSolid:S,controlHeightLG:B,fontSize:K,darkItemColor:g,darkDangerItemColor:F,darkItemBg:G,darkSubMenuItemBg:le,darkItemSelectedColor:Le,darkItemSelectedBg:Ze,darkDangerItemSelectedBg:Ye,darkItemHoverBg:ut,darkGroupTitleColor:ht,darkItemHoverColor:et,darkItemDisabledColor:bt,darkDangerItemHoverColor:Ce,darkDangerItemSelectedColor:Kt,darkDangerItemActiveBg:Ft}=s,At=K/7*5,Bt=(0,D.TS)(s,{menuArrowSize:At,menuHorizontalHeight:B*1.15,menuArrowOffset:`${At*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:_}),Wt=(0,D.TS)(Bt,{itemColor:g,itemHoverColor:et,groupTitleColor:ht,itemSelectedColor:Le,itemBg:G,popupBg:G,subMenuItemBg:le,itemActiveBg:"transparent",itemSelectedBg:Ze,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ut,itemDisabledColor:bt,dangerItemColor:F,dangerItemHoverColor:Ce,dangerItemSelectedColor:Kt,dangerItemActiveBg:Ft,dangerItemSelectedBg:Ye,menuSubMenuBg:le,horizontalItemSelectedColor:S,horizontalItemSelectedBg:k});return[Dt(Bt),Be(Bt),Tt(Bt),Te(Bt,"light"),Te(Wt,"dark"),Ne(Bt),(0,$.Z)(Bt),(0,Ke.oN)(Bt,"slide-up"),(0,Ke.oN)(Bt,"slide-down"),(0,Q._y)(Bt,"zoom-big")]},s=>{const{colorPrimary:_,colorError:k,colorTextDisabled:S,colorErrorBg:B,colorText:K,colorTextDescription:g,colorBgContainer:F,colorFillAlter:G,colorFillContent:le,lineWidth:Le,lineWidthBold:Ze,controlItemBgActive:Ye,colorBgTextHover:ut,controlHeightLG:ht,lineHeight:et,colorBgElevated:bt,marginXXS:Ce,padding:Kt,fontSize:Ft,controlHeightSM:At,fontSizeLG:Bt,colorTextLightSolid:Wt,colorErrorHover:kt}=s,Zt=new ye.C(Wt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:s.zIndexPopupBase+50,radiusItem:s.borderRadiusLG,itemBorderRadius:s.borderRadiusLG,radiusSubMenuItem:s.borderRadiusSM,subMenuItemBorderRadius:s.borderRadiusSM,colorItemText:K,itemColor:K,colorItemTextHover:K,itemHoverColor:K,colorItemTextHoverHorizontal:_,horizontalItemHoverColor:_,colorGroupTitle:g,groupTitleColor:g,colorItemTextSelected:_,itemSelectedColor:_,colorItemTextSelectedHorizontal:_,horizontalItemSelectedColor:_,colorItemBg:F,itemBg:F,colorItemBgHover:ut,itemHoverBg:ut,colorItemBgActive:le,itemActiveBg:Ye,colorSubItemBg:G,subMenuItemBg:G,colorItemBgSelected:Ye,itemSelectedBg:Ye,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ze,activeBarHeight:Ze,colorActiveBarBorderSize:Le,activeBarBorderWidth:Le,colorItemTextDisabled:S,itemDisabledColor:S,colorDangerItemText:k,dangerItemColor:k,colorDangerItemTextHover:k,dangerItemHoverColor:k,colorDangerItemTextSelected:k,dangerItemSelectedColor:k,colorDangerItemBgActive:B,dangerItemActiveBg:B,colorDangerItemBgSelected:B,dangerItemSelectedBg:B,itemMarginInline:s.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ht,groupTitleLineHeight:et,collapsedWidth:ht*2,popupBg:bt,itemMarginBlock:Ce,itemPaddingInline:Kt,horizontalLineHeight:`${ht*1.15}px`,iconSize:Ft,iconMarginInlineEnd:At-Ft,collapsedIconSize:Bt,groupTitleFontSize:Ft,darkItemDisabledColor:new ye.C(Wt).setAlpha(.25).toRgbString(),darkItemColor:Zt,darkDangerItemColor:k,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Wt,darkItemSelectedBg:_,darkDangerItemSelectedBg:k,darkItemHoverBg:"transparent",darkGroupTitleColor:Zt,darkItemHoverColor:Wt,darkDangerItemHoverColor:kt,darkDangerItemSelectedColor:Wt,darkDangerItemActiveBg:k}},{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"]]})(fe),xt=function(fe,J){var o={};for(var s in fe)Object.prototype.hasOwnProperty.call(fe,s)&&J.indexOf(s)<0&&(o[s]=fe[s]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,s=Object.getOwnPropertySymbols(fe);_<s.length;_++)J.indexOf(s[_])<0&&Object.prototype.propertyIsEnumerable.call(fe,s[_])&&(o[s[_]]=fe[s[_]]);return o},It=(0,E.forwardRef)((fe,J)=>{var o,s;const _=E.useContext(R.Z),k=_||{},{getPrefixCls:S,getPopupContainer:B,direction:K,menu:g}=E.useContext(v.E_),F=S(),{prefixCls:G,className:le,style:Le,theme:Ze="light",expandIcon:Ye,_internalDisableMenuItemTitleTooltip:ut,inlineCollapsed:ht,siderCollapsed:et,items:bt,children:Ce,rootClassName:Kt,mode:Ft,selectable:At,onClick:Bt,overflowedIndicatorPopupClassName:Wt}=fe,kt=xt(fe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Zt=(0,ie.Z)(kt,["collapsedWidth"]),$t=re(bt)||Ce;(o=k.validator)===null||o===void 0||o.call(k,{mode:Ft});const Ht=(0,A.useEvent)(function(){var Ae;Bt==null||Bt.apply(void 0,arguments),(Ae=k.onClick)===null||Ae===void 0||Ae.call(k)}),mt=k.mode||Ft,en=At!=null?At:k.selectable,yt=E.useMemo(()=>et!==void 0?et:ht,[ht,et]),N={horizontal:{motionName:`${F}-slide-up`},inline:(0,f.Z)(F),other:{motionName:`${F}-zoom-big`}},ce=S("menu",G||k.prefixCls),[me,_e]=Nt(ce,!_),He=L()(`${ce}-${Ze}`,g==null?void 0:g.className,le);let Me;if(typeof Ye=="function")Me=Ye;else if(Ye===null||Ye===!1)Me=null;else if(k.expandIcon===null||k.expandIcon===!1)Me=null;else{const Ae=Ye!=null?Ye:k.expandIcon;Me=(0,I.Tm)(Ae,{className:L()(`${ce}-submenu-expand-icon`,(0,I.l$)(Ae)?(s=Ae.props)===null||s===void 0?void 0:s.className:"")})}const Pe=E.useMemo(()=>({prefixCls:ce,inlineCollapsed:yt||!1,direction:K,firstLevel:!0,theme:Ze,mode:mt,disableMenuItemTitleTooltip:ut}),[ce,yt,K,ut,Ze]);return me(E.createElement(R.Z.Provider,{value:null},E.createElement(ne.Provider,{value:Pe},E.createElement(l.ZP,Object.assign({getPopupContainer:B,overflowedIndicator:E.createElement(T.Z,null),overflowedIndicatorPopupClassName:L()(ce,`${ce}-${Ze}`,Wt),mode:mt,selectable:en,onClick:Ht},Zt,{inlineCollapsed:yt,style:Object.assign(Object.assign({},g==null?void 0:g.style),Le),className:He,prefixCls:ce,direction:K,defaultMotions:N,expandIcon:Me,ref:J,rootClassName:L()(Kt,_e)}),$t))))});const Pt=(0,E.forwardRef)((fe,J)=>{const o=(0,E.useRef)(null),s=E.useContext(z.D);return(0,E.useImperativeHandle)(J,()=>({menu:o.current,focus:_=>{var k;(k=o.current)===null||k===void 0||k.focus(_)}})),E.createElement(It,Object.assign({ref:o},fe,s))});Pt.Item=c,Pt.SubMenu=P,Pt.Divider=d,Pt.ItemGroup=l.BW;var at=Pt},12604:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return Ne}});var l=r(87462),E=r(67294),z={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},M=z,L=r(84089),v=function(Ee,Te){return E.createElement(L.Z,(0,l.Z)({},Ee,{ref:Te,icon:M}))},x=E.forwardRef(v),se=r(94184),d=r.n(se),X=r(4942),ie=r(97685),de=r(45987),I=r(21770),Y=r(15105),ne=r(64217);function ae(ee,Ee){var Te=ee.disabled,xe=ee.prefixCls,$e=ee.character,Tt=ee.characterRender,dt=ee.index,Mt=ee.count,Dt=ee.value,Nt=ee.allowHalf,xt=ee.focused,Rt=ee.onHover,It=ee.onClick,Pt=function(S){Rt(S,dt)},at=function(S){It(S,dt)},fe=function(S){S.keyCode===Y.Z.ENTER&&It(S,dt)},J=dt+1,o=new Set([xe]);Dt===0&&dt===0&&xt?o.add("".concat(xe,"-focused")):Nt&&Dt+.5>=J&&Dt<J?(o.add("".concat(xe,"-half")),o.add("".concat(xe,"-active")),xt&&o.add("".concat(xe,"-focused"))):(J<=Dt?o.add("".concat(xe,"-full")):o.add("".concat(xe,"-zero")),J===Dt&&xt&&o.add("".concat(xe,"-focused")));var s=typeof $e=="function"?$e(ee):$e,_=E.createElement("li",{className:d()(Array.from(o)),ref:Ee},E.createElement("div",{onClick:Te?null:at,onKeyDown:Te?null:fe,onMouseMove:Te?null:Pt,role:"radio","aria-checked":Dt>dt?"true":"false","aria-posinset":dt+1,"aria-setsize":Mt,tabIndex:Te?-1:0},E.createElement("div",{className:"".concat(xe,"-first")},s),E.createElement("div",{className:"".concat(xe,"-second")},s)));return Tt&&(_=Tt(_,ee)),_}var c=E.forwardRef(ae);function j(){var ee=E.useRef({});function Ee(xe){return ee.current[xe]}function Te(xe){return function($e){ee.current[xe]=$e}}return[Ee,Te]}function P(ee){var Ee=ee.pageXOffset,Te="scrollLeft";if(typeof Ee!="number"){var xe=ee.document;Ee=xe.documentElement[Te],typeof Ee!="number"&&(Ee=xe.body[Te])}return Ee}function T(ee){var Ee,Te,xe=ee.ownerDocument,$e=xe.body,Tt=xe&&xe.documentElement,dt=ee.getBoundingClientRect();return Ee=dt.left,Te=dt.top,Ee-=Tt.clientLeft||$e.clientLeft||0,Te-=Tt.clientTop||$e.clientTop||0,{left:Ee,top:Te}}function A(ee){var Ee=T(ee),Te=ee.ownerDocument,xe=Te.defaultView||Te.parentWindow;return Ee.left+=P(xe),Ee.left}var f=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function R(ee,Ee){var Te,xe=ee.prefixCls,$e=xe===void 0?"rc-rate":xe,Tt=ee.className,dt=ee.defaultValue,Mt=ee.value,Dt=ee.count,Nt=Dt===void 0?5:Dt,xt=ee.allowHalf,Rt=xt===void 0?!1:xt,It=ee.allowClear,Pt=It===void 0?!0:It,at=ee.character,fe=at===void 0?"\u2605":at,J=ee.characterRender,o=ee.disabled,s=ee.direction,_=s===void 0?"ltr":s,k=ee.tabIndex,S=k===void 0?0:k,B=ee.autoFocus,K=ee.onHoverChange,g=ee.onChange,F=ee.onFocus,G=ee.onBlur,le=ee.onKeyDown,Le=ee.onMouseLeave,Ze=(0,de.Z)(ee,f),Ye=j(),ut=(0,ie.Z)(Ye,2),ht=ut[0],et=ut[1],bt=E.useRef(null),Ce=function(){if(!o){var m;(m=bt.current)===null||m===void 0||m.focus()}};E.useImperativeHandle(Ee,function(){return{focus:Ce,blur:function(){if(!o){var m;(m=bt.current)===null||m===void 0||m.blur()}}}});var Kt=(0,I.Z)(dt||0,{value:Mt}),Ft=(0,ie.Z)(Kt,2),At=Ft[0],Bt=Ft[1],Wt=(0,I.Z)(null),kt=(0,ie.Z)(Wt,2),Zt=kt[0],$t=kt[1],Ht=function(m,w){var pe=_==="rtl",oe=m+1;if(Rt){var ke=ht(m),Qe=A(ke),gt=ke.clientWidth;(pe&&w-Qe>gt/2||!pe&&w-Qe<gt/2)&&(oe-=.5)}return oe},mt=function(m){Bt(m),g==null||g(m)},en=E.useState(!1),yt=(0,ie.Z)(en,2),N=yt[0],ce=yt[1],me=function(){ce(!0),F==null||F()},_e=function(){ce(!1),G==null||G()},He=E.useState(null),Me=(0,ie.Z)(He,2),Pe=Me[0],Ae=Me[1],Ie=function(m,w){var pe=Ht(w,m.pageX);pe!==Zt&&(Ae(pe),$t(null)),K==null||K(pe)},q=function(m){o||(Ae(null),$t(null),K==null||K(void 0)),m&&(Le==null||Le(m))},e=function(m,w){var pe=Ht(w,m.pageX),oe=!1;Pt&&(oe=pe===At),q(),mt(oe?0:pe),$t(oe?pe:null)},t=function(m){var w=m.keyCode,pe=_==="rtl",oe=At;w===Y.Z.RIGHT&&oe<Nt&&!pe?(Rt?oe+=.5:oe+=1,mt(oe),m.preventDefault()):w===Y.Z.LEFT&&oe>0&&!pe||w===Y.Z.RIGHT&&oe>0&&pe?(Rt?oe-=.5:oe-=1,mt(oe),m.preventDefault()):w===Y.Z.LEFT&&oe<Nt&&pe&&(Rt?oe+=.5:oe+=1,mt(oe),m.preventDefault()),le==null||le(m)};E.useEffect(function(){B&&!o&&Ce()},[]);var n=new Array(Nt).fill(0).map(function(a,m){return E.createElement(c,{ref:et(m),index:m,count:Nt,disabled:o,prefixCls:"".concat($e,"-star"),allowHalf:Rt,value:Pe===null?At:Pe,onClick:e,onHover:Ie,key:a||m,character:fe,characterRender:J,focused:N})}),i=d()($e,Tt,(Te={},(0,X.Z)(Te,"".concat($e,"-disabled"),o),(0,X.Z)(Te,"".concat($e,"-rtl"),_==="rtl"),Te));return E.createElement("ul",(0,l.Z)({className:i,onMouseLeave:q,tabIndex:o?-1:S,onFocus:o?null:me,onBlur:o?null:_e,onKeyDown:o?null:t,ref:bt,role:"radiogroup"},(0,ne.Z)(Ze,{aria:!0,data:!0,attr:!0})),n)}var H=E.forwardRef(R),Z=H,re=r(53124),ye=r(83062),we=r(14747),$=r(67968),Ke=r(45503);const Q=ee=>{const{componentCls:Ee}=ee;return{[`${Ee}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:ee.marginXS},"> div":{transition:`all ${ee.motionDurationMid}, outline 0s`,"&:hover":{transform:ee.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${ee.lineWidth}px dashed ${ee.starColor}`,transform:ee.starHoverScale}},"&-first, &-second":{color:ee.starBg,transition:`all ${ee.motionDurationMid}`,userSelect:"none",[ee.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Ee}-star-first, &-half ${Ee}-star-second`]:{opacity:1},[`&-half ${Ee}-star-first, &-full ${Ee}-star-second`]:{color:"inherit"}}}},ue=ee=>({[`&-rtl${ee.componentCls}`]:{direction:"rtl"}}),D=ee=>{const{componentCls:Ee}=ee;return{[Ee]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,we.Wf)(ee)),{display:"inline-block",margin:0,padding:0,color:ee.starColor,fontSize:ee.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Ee} ${Ee}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Q(ee)),{[`+ ${Ee}-text`]:{display:"inline-block",marginInlineStart:ee.marginXS,fontSize:ee.fontSize}}),ue(ee))}};var O=(0,$.Z)("Rate",ee=>{const Ee=(0,Ke.TS)(ee,{});return[D(Ee)]},ee=>({starColor:ee.yellow6,starSize:ee.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:ee.colorFillContent})),Be=function(ee,Ee){var Te={};for(var xe in ee)Object.prototype.hasOwnProperty.call(ee,xe)&&Ee.indexOf(xe)<0&&(Te[xe]=ee[xe]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,xe=Object.getOwnPropertySymbols(ee);$e<xe.length;$e++)Ee.indexOf(xe[$e])<0&&Object.prototype.propertyIsEnumerable.call(ee,xe[$e])&&(Te[xe[$e]]=ee[xe[$e]]);return Te},Ne=E.forwardRef((ee,Ee)=>{const{prefixCls:Te,className:xe,rootClassName:$e,style:Tt,tooltips:dt,character:Mt=E.createElement(x,null)}=ee,Dt=Be(ee,["prefixCls","className","rootClassName","style","tooltips","character"]),Nt=(o,s)=>{let{index:_}=s;return dt?E.createElement(ye.Z,{title:dt[_]},o):o},{getPrefixCls:xt,direction:Rt,rate:It}=E.useContext(re.E_),Pt=xt("rate",Te),[at,fe]=O(Pt),J=Object.assign(Object.assign({},It==null?void 0:It.style),Tt);return at(E.createElement(Z,Object.assign({ref:Ee,character:Mt,characterRender:Nt},Dt,{className:d()(xe,$e,fe,It==null?void 0:It.className),style:J,prefixCls:Pt,direction:Rt})))})},33507:function(St,Oe){"use strict";const r=l=>({[l.componentCls]:{[`${l.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${l.motionDurationMid} ${l.motionEaseInOut},
|
|
opacity ${l.motionDurationMid} ${l.motionEaseInOut} !important`}},[`${l.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${l.motionDurationMid} ${l.motionEaseInOut},
|
|
opacity ${l.motionDurationMid} ${l.motionEaseInOut} !important`}}});Oe.Z=r},33297:function(St,Oe,r){"use strict";r.d(Oe,{Fm:function(){return de}});var l=r(34367),E=r(93590);const z=new l.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),M=new l.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),L=new l.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),v=new l.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),x=new l.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),se=new l.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),d=new l.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),X=new l.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),ie={"move-up":{inKeyframes:d,outKeyframes:X},"move-down":{inKeyframes:z,outKeyframes:M},"move-left":{inKeyframes:L,outKeyframes:v},"move-right":{inKeyframes:x,outKeyframes:se}},de=(I,Y)=>{const{antCls:ne}=I,ae=`${ne}-${Y}`,{inKeyframes:c,outKeyframes:j}=ie[Y];return[(0,E.R)(ae,c,j,I.motionDurationMid),{[`
|
|
${ae}-enter,
|
|
${ae}-appear
|
|
`]:{opacity:0,animationTimingFunction:I.motionEaseOutCirc},[`${ae}-leave`]:{animationTimingFunction:I.motionEaseInOutCirc}}]}},67771:function(St,Oe,r){"use strict";r.d(Oe,{Qt:function(){return L},Uw:function(){return M},fJ:function(){return z},ly:function(){return v},oN:function(){return de}});var l=r(34367),E=r(93590);const z=new l.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),M=new l.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),L=new l.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),v=new l.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),x=new l.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),se=new l.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),d=new l.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),X=new l.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),ie={"slide-up":{inKeyframes:z,outKeyframes:M},"slide-down":{inKeyframes:L,outKeyframes:v},"slide-left":{inKeyframes:x,outKeyframes:se},"slide-right":{inKeyframes:d,outKeyframes:X}},de=(I,Y)=>{const{antCls:ne}=I,ae=`${ne}-${Y}`,{inKeyframes:c,outKeyframes:j}=ie[Y];return[(0,E.R)(ae,c,j,I.motionDurationMid),{[`
|
|
${ae}-enter,
|
|
${ae}-appear
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:I.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${ae}-leave`]:{animationTimingFunction:I.motionEaseInQuint}}]}},47897:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return J}});var l=r(3407),E=r(94184),z=r.n(E);function M(){return M=Object.assign?Object.assign.bind():function(o){for(var s=1;s<arguments.length;s++){var _=arguments[s];for(var k in _)Object.prototype.hasOwnProperty.call(_,k)&&(o[k]=_[k])}return o},M.apply(this,arguments)}function L(o){"@babel/helpers - typeof";return L=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},L(o)}function v(o,s){if(L(o)!=="object"||o===null)return o;var _=o[Symbol.toPrimitive];if(_!==void 0){var k=_.call(o,s||"default");if(L(k)!=="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}function x(o){var s=v(o,"string");return L(s)==="symbol"?s:String(s)}function se(o,s,_){return s=x(s),s in o?Object.defineProperty(o,s,{value:_,enumerable:!0,configurable:!0,writable:!0}):o[s]=_,o}function d(o){if(Array.isArray(o))return o}function X(o,s){var _=o==null?null:typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(_!=null){var k,S,B,K,g=[],F=!0,G=!1;try{if(B=(_=_.call(o)).next,s===0){if(Object(_)!==_)return;F=!1}else for(;!(F=(k=B.call(_)).done)&&(g.push(k.value),g.length!==s);F=!0);}catch(le){G=!0,S=le}finally{try{if(!F&&_.return!=null&&(K=_.return(),Object(K)!==K))return}finally{if(G)throw S}}return g}}function ie(o,s){(s==null||s>o.length)&&(s=o.length);for(var _=0,k=new Array(s);_<s;_++)k[_]=o[_];return k}function de(o,s){if(o){if(typeof o=="string")return ie(o,s);var _=Object.prototype.toString.call(o).slice(8,-1);if(_==="Object"&&o.constructor&&(_=o.constructor.name),_==="Map"||_==="Set")return Array.from(o);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return ie(o,s)}}function I(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y(o,s){return d(o)||X(o,s)||de(o,s)||I()}function ne(o,s){if(o==null)return{};var _={},k=Object.keys(o),S,B;for(B=0;B<k.length;B++)S=k[B],!(s.indexOf(S)>=0)&&(_[S]=o[S]);return _}function ae(o,s){if(o==null)return{};var _=ne(o,s),k,S;if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(o);for(S=0;S<B.length;S++)k=B[S],!(s.indexOf(k)>=0)&&Object.prototype.propertyIsEnumerable.call(o,k)&&(_[k]=o[k])}return _}var c=r(67294);function j(o){if(Array.isArray(o))return o}function P(o,s){var _=o==null?null:typeof Symbol!="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(_!=null){var k,S,B,K,g=[],F=!0,G=!1;try{if(B=(_=_.call(o)).next,s===0){if(Object(_)!==_)return;F=!1}else for(;!(F=(k=B.call(_)).done)&&(g.push(k.value),g.length!==s);F=!0);}catch(le){G=!0,S=le}finally{try{if(!F&&_.return!=null&&(K=_.return(),Object(K)!==K))return}finally{if(G)throw S}}return g}}function T(o,s){(s==null||s>o.length)&&(s=o.length);for(var _=0,k=new Array(s);_<s;_++)k[_]=o[_];return k}function A(o,s){if(o){if(typeof o=="string")return T(o,s);var _=Object.prototype.toString.call(o).slice(8,-1);if(_==="Object"&&o.constructor&&(_=o.constructor.name),_==="Map"||_==="Set")return Array.from(o);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return T(o,s)}}function f(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R(o,s){return j(o)||P(o,s)||A(o,s)||f()}function H(o){var s=c.useRef();s.current=o;var _=c.useCallback(function(){for(var k,S=arguments.length,B=new Array(S),K=0;K<S;K++)B[K]=arguments[K];return(k=s.current)===null||k===void 0?void 0:k.call.apply(k,[s].concat(B))},[]);return _}function Z(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var re=Z()?c.useLayoutEffect:c.useEffect,ye=function(s,_){var k=c.useRef(!0);re(function(){return s(k.current)},_),re(function(){return k.current=!1,function(){k.current=!0}},[])},we=function(s,_){ye(function(k){if(!k)return s()},_)},$=null;function Ke(o){var s=c.useRef(!1),_=c.useState(o),k=R(_,2),S=k[0],B=k[1];c.useEffect(function(){return s.current=!1,function(){s.current=!0}},[]);function K(g,F){F&&s.current||B(g)}return[S,K]}function Q(o){return o!==void 0}function ue(o,s){var _=s||{},k=_.defaultValue,S=_.value,B=_.onChange,K=_.postState,g=Ke(function(){return Q(S)?S:Q(k)?typeof k=="function"?k():k:typeof o=="function"?o():o}),F=R(g,2),G=F[0],le=F[1],Le=S!==void 0?S:G,Ze=K?K(Le):Le,Ye=H(B),ut=Ke([Le]),ht=R(ut,2),et=ht[0],bt=ht[1];we(function(){var Kt=et[0];G!==Kt&&Ye(G,Kt)},[et]),we(function(){Q(S)||le(S)},[S]);var Ce=H(function(Kt,Ft){le(Kt,Ft),bt([Le],Ft)});return[Ze,Ce]}var D={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(s){var _=s.keyCode;if(s.altKey&&!s.ctrlKey||s.metaKey||_>=D.F1&&_<=D.F12)return!1;switch(_){case D.ALT:case D.CAPS_LOCK:case D.CONTEXT_MENU:case D.CTRL:case D.DOWN:case D.END:case D.ESC:case D.HOME:case D.INSERT:case D.LEFT:case D.MAC_FF_META:case D.META:case D.NUMLOCK:case D.NUM_CENTER:case D.PAGE_DOWN:case D.PAGE_UP:case D.PAUSE:case D.PRINT_SCREEN:case D.RIGHT:case D.SHIFT:case D.UP:case D.WIN_KEY:case D.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(s){if(s>=D.ZERO&&s<=D.NINE||s>=D.NUM_ZERO&&s<=D.NUM_MULTIPLY||s>=D.A&&s<=D.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&s===0)return!0;switch(s){case D.SPACE:case D.QUESTION_MARK:case D.NUM_PLUS:case D.NUM_MINUS:case D.NUM_PERIOD:case D.NUM_DIVISION:case D.SEMICOLON:case D.DASH:case D.EQUALS:case D.COMMA:case D.PERIOD:case D.SLASH:case D.APOSTROPHE:case D.SINGLE_QUOTE:case D.OPEN_SQUARE_BRACKET:case D.BACKSLASH:case D.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},O=D,Be=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Fe=c.forwardRef(function(o,s){var _,k=o.prefixCls,S=k===void 0?"rc-switch":k,B=o.className,K=o.checked,g=o.defaultChecked,F=o.disabled,G=o.loadingIcon,le=o.checkedChildren,Le=o.unCheckedChildren,Ze=o.onClick,Ye=o.onChange,ut=o.onKeyDown,ht=ae(o,Be),et=ue(!1,{value:K,defaultValue:g}),bt=Y(et,2),Ce=bt[0],Kt=bt[1];function Ft(kt,Zt){var $t=Ce;return F||($t=kt,Kt($t),Ye==null||Ye($t,Zt)),$t}function At(kt){kt.which===O.LEFT?Ft(!1,kt):kt.which===O.RIGHT&&Ft(!0,kt),ut==null||ut(kt)}function Bt(kt){var Zt=Ft(!Ce,kt);Ze==null||Ze(Zt,kt)}var Wt=z()(S,B,(_={},se(_,"".concat(S,"-checked"),Ce),se(_,"".concat(S,"-disabled"),F),_));return c.createElement("button",M({},ht,{type:"button",role:"switch","aria-checked":Ce,disabled:F,className:Wt,ref:s,onKeyDown:At,onClick:Bt}),G,c.createElement("span",{className:"".concat(S,"-inner")},c.createElement("span",{className:"".concat(S,"-inner-checked")},le),c.createElement("span",{className:"".concat(S,"-inner-unchecked")},Le)))});Fe.displayName="Switch";var Ne=Fe,ee=r(45353),Ee=r(53124),Te=r(98866),xe=r(98675),$e=r(84780),Tt=r(14747),dt=r(67968),Mt=r(45503);const Dt=o=>{const{componentCls:s,trackHeightSM:_,trackPadding:k,trackMinWidthSM:S,innerMinMarginSM:B,innerMaxMarginSM:K,handleSizeSM:g}=o,F=`${s}-inner`;return{[s]:{[`&${s}-small`]:{minWidth:S,height:_,lineHeight:`${_}px`,[`${s}-inner`]:{paddingInlineStart:K,paddingInlineEnd:B,[`${F}-checked`]:{marginInlineStart:`calc(-100% + ${g+k*2}px - ${K*2}px)`,marginInlineEnd:`calc(100% - ${g+k*2}px + ${K*2}px)`},[`${F}-unchecked`]:{marginTop:-_,marginInlineStart:0,marginInlineEnd:0}},[`${s}-handle`]:{width:g,height:g},[`${s}-loading-icon`]:{top:(g-o.switchLoadingIconSize)/2,fontSize:o.switchLoadingIconSize},[`&${s}-checked`]:{[`${s}-inner`]:{paddingInlineStart:B,paddingInlineEnd:K,[`${F}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${F}-unchecked`]:{marginInlineStart:`calc(100% - ${g+k*2}px + ${K*2}px)`,marginInlineEnd:`calc(-100% + ${g+k*2}px - ${K*2}px)`}},[`${s}-handle`]:{insetInlineStart:`calc(100% - ${g+k}px)`}},[`&:not(${s}-disabled):active`]:{[`&:not(${s}-checked) ${F}`]:{[`${F}-unchecked`]:{marginInlineStart:o.marginXXS/2,marginInlineEnd:-o.marginXXS/2}},[`&${s}-checked ${F}`]:{[`${F}-checked`]:{marginInlineStart:-o.marginXXS/2,marginInlineEnd:o.marginXXS/2}}}}}}},Nt=o=>{const{componentCls:s,handleSize:_}=o;return{[s]:{[`${s}-loading-icon${o.iconCls}`]:{position:"relative",top:(_-o.fontSize)/2,color:o.switchLoadingIconColor,verticalAlign:"top"},[`&${s}-checked ${s}-loading-icon`]:{color:o.switchColor}}}},xt=o=>{const{componentCls:s,motion:_,trackPadding:k,handleBg:S,handleShadow:B,handleSize:K}=o,g=`${s}-handle`;return{[s]:{[g]:{position:"absolute",top:k,insetInlineStart:k,width:K,height:K,transition:`all ${o.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:S,borderRadius:K/2,boxShadow:B,transition:`all ${o.switchDuration} ease-in-out`,content:'""'}},[`&${s}-checked ${g}`]:{insetInlineStart:`calc(100% - ${K+k}px)`},[`&:not(${s}-disabled):active`]:_?{[`${g}::before`]:{insetInlineEnd:o.switchHandleActiveInset,insetInlineStart:0},[`&${s}-checked ${g}::before`]:{insetInlineEnd:0,insetInlineStart:o.switchHandleActiveInset}}:{}}}},Rt=o=>{const{componentCls:s,trackHeight:_,trackPadding:k,innerMinMargin:S,innerMaxMargin:B,handleSize:K}=o,g=`${s}-inner`;return{[s]:{[g]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:B,paddingInlineEnd:S,transition:`padding-inline-start ${o.switchDuration} ease-in-out, padding-inline-end ${o.switchDuration} ease-in-out`,[`${g}-checked, ${g}-unchecked`]:{display:"block",color:o.colorTextLightSolid,fontSize:o.fontSizeSM,transition:`margin-inline-start ${o.switchDuration} ease-in-out, margin-inline-end ${o.switchDuration} ease-in-out`,pointerEvents:"none"},[`${g}-checked`]:{marginInlineStart:`calc(-100% + ${K+k*2}px - ${B*2}px)`,marginInlineEnd:`calc(100% - ${K+k*2}px + ${B*2}px)`},[`${g}-unchecked`]:{marginTop:-_,marginInlineStart:0,marginInlineEnd:0}},[`&${s}-checked ${g}`]:{paddingInlineStart:S,paddingInlineEnd:B,[`${g}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${g}-unchecked`]:{marginInlineStart:`calc(100% - ${K+k*2}px + ${B*2}px)`,marginInlineEnd:`calc(-100% + ${K+k*2}px - ${B*2}px)`}},[`&:not(${s}-disabled):active`]:{[`&:not(${s}-checked) ${g}`]:{[`${g}-unchecked`]:{marginInlineStart:k*2,marginInlineEnd:-k*2}},[`&${s}-checked ${g}`]:{[`${g}-checked`]:{marginInlineStart:-k*2,marginInlineEnd:k*2}}}}}},It=o=>{const{componentCls:s,trackHeight:_,trackMinWidth:k}=o;return{[s]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Tt.Wf)(o)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:k,height:_,lineHeight:`${_}px`,verticalAlign:"middle",background:o.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${o.motionDurationMid}`,userSelect:"none",[`&:hover:not(${s}-disabled)`]:{background:o.colorTextTertiary}}),(0,Tt.Qy)(o)),{[`&${s}-checked`]:{background:o.switchColor,[`&:hover:not(${s}-disabled)`]:{background:o.colorPrimaryHover}},[`&${s}-loading, &${s}-disabled`]:{cursor:"not-allowed",opacity:o.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${s}-rtl`]:{direction:"rtl"}})}};var Pt=(0,dt.Z)("Switch",o=>{const s=(0,Mt.TS)(o,{switchDuration:o.motionDurationMid,switchColor:o.colorPrimary,switchDisabledOpacity:o.opacityLoading,switchLoadingIconSize:o.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${o.opacityLoading})`,switchHandleActiveInset:"-30%"});return[It(s),Rt(s),xt(s),Nt(s),Dt(s)]},o=>{const{fontSize:s,lineHeight:_,controlHeight:k,colorWhite:S}=o,B=s*_,K=k/2,g=2,F=B-g*2,G=K-g*2;return{trackHeight:B,trackHeightSM:K,trackMinWidth:F*2+g*4,trackMinWidthSM:G*2+g*2,trackPadding:g,handleBg:S,handleSize:F,handleSizeSM:G,handleShadow:`0 2px 4px 0 ${new $e.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:F/2,innerMaxMargin:F+g+g*2,innerMinMarginSM:G/2,innerMaxMarginSM:G+g+g*2}}),at=function(o,s){var _={};for(var k in o)Object.prototype.hasOwnProperty.call(o,k)&&s.indexOf(k)<0&&(_[k]=o[k]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,k=Object.getOwnPropertySymbols(o);S<k.length;S++)s.indexOf(k[S])<0&&Object.prototype.propertyIsEnumerable.call(o,k[S])&&(_[k[S]]=o[k[S]]);return _};const fe=c.forwardRef((o,s)=>{const{prefixCls:_,size:k,disabled:S,loading:B,className:K,rootClassName:g,style:F}=o,G=at(o,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:le,direction:Le,switch:Ze}=c.useContext(Ee.E_),Ye=c.useContext(Te.Z),ut=(S!=null?S:Ye)||B,ht=le("switch",_),et=c.createElement("div",{className:`${ht}-handle`},B&&c.createElement(l.Z,{className:`${ht}-loading-icon`})),[bt,Ce]=Pt(ht),Kt=(0,xe.Z)(k),Ft=z()(Ze==null?void 0:Ze.className,{[`${ht}-small`]:Kt==="small",[`${ht}-loading`]:B,[`${ht}-rtl`]:Le==="rtl"},K,g,Ce),At=Object.assign(Object.assign({},Ze==null?void 0:Ze.style),F);return bt(c.createElement(ee.Z,{component:"Switch"},c.createElement(Ne,Object.assign({},G,{prefixCls:ht,className:Ft,style:At,disabled:ut,ref:s,loadingIcon:et}))))});fe.__ANT_SWITCH=!0;var J=fe},79870:function(St,Oe,r){"use strict";r.d(Oe,{default:function(){return gr}});var l=r(87462),E=r(4942),z=r(71002),M=r(1413),L=r(74902),v=r(15671),x=r(43144),se=r(97326),d=r(60136),X=r(51630),ie=r(94184),de=r.n(ie),I={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(te){var ve=te.keyCode;if(te.altKey&&!te.ctrlKey||te.metaKey||ve>=I.F1&&ve<=I.F12)return!1;switch(ve){case I.ALT:case I.CAPS_LOCK:case I.CONTEXT_MENU:case I.CTRL:case I.DOWN:case I.END:case I.ESC:case I.HOME:case I.INSERT:case I.LEFT:case I.MAC_FF_META:case I.META:case I.NUMLOCK:case I.NUM_CENTER:case I.PAGE_DOWN:case I.PAGE_UP:case I.PAUSE:case I.PRINT_SCREEN:case I.RIGHT:case I.SHIFT:case I.UP:case I.WIN_KEY:case I.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(te){if(te>=I.ZERO&&te<=I.NINE||te>=I.NUM_ZERO&&te<=I.NUM_MULTIPLY||te>=I.A&&te<=I.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&te===0)return!0;switch(te){case I.SPACE:case I.QUESTION_MARK:case I.NUM_PLUS:case I.NUM_MINUS:case I.NUM_PERIOD:case I.NUM_DIVISION:case I.SEMICOLON:case I.DASH:case I.EQUALS:case I.COMMA:case I.PERIOD:case I.SLASH:case I.APOSTROPHE:case I.SINGLE_QUOTE:case I.OPEN_SQUARE_BRACKET:case I.BACKSLASH:case I.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Y=I,ne=r(34952),ae=r(72978),c=r(67294),j=r(69610);function P(W){var te=W.dropPosition,ve=W.dropLevelOffset,u=W.indent,he={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(te){case-1:he.top=0,he.left=-ve*u;break;case 1:he.bottom=0,he.left=-ve*u;break;case 0:he.bottom=0,he.left=u;break}return c.createElement("div",{style:he})}var T=r(36459),A=r(97685),f=r(45987);function R(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var H=R()?c.useLayoutEffect:c.useEffect,Z=H,re=function(te,ve){var u=React.useRef(!0);H(function(){if(!u.current)return te()},ve),H(function(){return u.current=!1,function(){u.current=!0}},[])},ye=r(73299),we=r(73935);function $(W){return W instanceof HTMLElement||W instanceof SVGElement}function Ke(W){return $(W)?W:W instanceof c.Component?we.findDOMNode(W):null}var Q=r(28580);function ue(W,te,ve){var u=React.useRef({});return(!("value"in u.current)||ve(u.current.condition,te))&&(u.current.value=W(),u.current.condition=te),u.current.value}function D(W,te){typeof W=="function"?W(te):(0,z.Z)(W)==="object"&&W&&"current"in W&&(W.current=te)}function O(){for(var W=arguments.length,te=new Array(W),ve=0;ve<W;ve++)te[ve]=arguments[ve];var u=te.filter(function(he){return he});return u.length<=1?u[0]:function(he){te.forEach(function(h){D(h,he)})}}function Be(){for(var W=arguments.length,te=new Array(W),ve=0;ve<W;ve++)te[ve]=arguments[ve];return useMemo(function(){return O.apply(void 0,te)},te,function(u,he){return u.length===he.length&&u.every(function(h,b){return h===he[b]})})}function Fe(W){var te,ve,u=(0,Q.isMemo)(W)?W.type.type:W.type;return!(typeof u=="function"&&!((te=u.prototype)!==null&&te!==void 0&&te.render)||typeof W=="function"&&!((ve=W.prototype)!==null&&ve!==void 0&&ve.render))}function Ne(W,te){var ve={};return ve[W.toLowerCase()]=te.toLowerCase(),ve["Webkit".concat(W)]="webkit".concat(te),ve["Moz".concat(W)]="moz".concat(te),ve["ms".concat(W)]="MS".concat(te),ve["O".concat(W)]="o".concat(te.toLowerCase()),ve}function ee(W,te){var ve={animationend:Ne("Animation","AnimationEnd"),transitionend:Ne("Transition","TransitionEnd")};return W&&("AnimationEvent"in te||delete ve.animationend.animation,"TransitionEvent"in te||delete ve.transitionend.transition),ve}var Ee=ee(R(),typeof window!="undefined"?window:{}),Te={};if(R()){var xe=document.createElement("div");Te=xe.style}var $e={};function Tt(W){if($e[W])return $e[W];var te=Ee[W];if(te)for(var ve=Object.keys(te),u=ve.length,he=0;he<u;he+=1){var h=ve[he];if(Object.prototype.hasOwnProperty.call(te,h)&&h in Te)return $e[W]=te[h],$e[W]}return""}var dt=Tt("animationend"),Mt=Tt("transitionend"),Dt=!!(dt&&Mt),Nt=dt||"animationend",xt=Mt||"transitionend";function Rt(W,te){if(!W)return null;if((0,z.Z)(W)==="object"){var ve=te.replace(/-\w/g,function(u){return u[1].toUpperCase()});return W[ve]}return"".concat(W,"-").concat(te)}var It="none",Pt="appear",at="enter",fe="leave",J="none",o="prepare",s="start",_="active",k="end";function S(W){var te=c.useRef(!1),ve=c.useState(W),u=(0,A.Z)(ve,2),he=u[0],h=u[1];c.useEffect(function(){return te.current=!1,function(){te.current=!0}},[]);function b(y,C){C&&te.current||h(y)}return[he,b]}var B=function(te){return+setTimeout(te,16)},K=function(te){return clearTimeout(te)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(B=function(te){return window.requestAnimationFrame(te)},K=function(te){return window.cancelAnimationFrame(te)});var g=0,F=new Map;function G(W){F.delete(W)}var le=function(te){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;g+=1;var u=g;function he(h){if(h===0)G(u),te();else{var b=B(function(){he(h-1)});F.set(u,b)}}return he(ve),u};le.cancel=function(W){var te=F.get(W);return G(te),K(te)};var Le=le,Ze=function(){var W=c.useRef(null);function te(){Le.cancel(W.current)}function ve(u){var he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;te();var h=Le(function(){he<=1?u({isCanceled:function(){return h!==W.current}}):ve(u,he-1)});W.current=h}return c.useEffect(function(){return function(){te()}},[]),[ve,te]},Ye=R()?c.useLayoutEffect:c.useEffect,ut=Ye,ht=[o,s,_,k],et=!1,bt=!0;function Ce(W){return W===_||W===k}var Kt=function(W,te){var ve=S(J),u=(0,A.Z)(ve,2),he=u[0],h=u[1],b=Ze(),y=(0,A.Z)(b,2),C=y[0],p=y[1];function U(){h(o,!0)}return ut(function(){if(he!==J&&he!==k){var V=ht.indexOf(he),ge=ht[V+1],Se=te(he);Se===et?h(ge,!0):C(function(Re){function Ue(){Re.isCanceled()||h(ge,!0)}Se===!0?Ue():Promise.resolve(Se).then(Ue)})}},[W,he]),c.useEffect(function(){return function(){p()}},[]),[U,he]},Ft=function(W){var te=(0,c.useRef)(),ve=(0,c.useRef)(W);ve.current=W;var u=c.useCallback(function(b){ve.current(b)},[]);function he(b){b&&(b.removeEventListener(xt,u),b.removeEventListener(Nt,u))}function h(b){te.current&&te.current!==b&&he(te.current),b&&b!==te.current&&(b.addEventListener(xt,u),b.addEventListener(Nt,u),te.current=b)}return c.useEffect(function(){return function(){he(te.current)}},[]),[h,he]};function At(W,te,ve,u){var he=u.motionEnter,h=he===void 0?!0:he,b=u.motionAppear,y=b===void 0?!0:b,C=u.motionLeave,p=C===void 0?!0:C,U=u.motionDeadline,V=u.motionLeaveImmediately,ge=u.onAppearPrepare,Se=u.onEnterPrepare,Re=u.onLeavePrepare,Ue=u.onAppearStart,ze=u.onEnterStart,be=u.onLeaveStart,Ge=u.onAppearActive,je=u.onEnterActive,We=u.onLeaveActive,tt=u.onAppearEnd,ot=u.onEnterEnd,ft=u.onLeaveEnd,rt=u.onVisibleChanged,qe=S(),lt=(0,A.Z)(qe,2),it=lt[0],Lt=lt[1],Et=S(It),jt=(0,A.Z)(Et,2),Ot=jt[0],Vt=jt[1],Gt=S(null),nt=(0,A.Z)(Gt,2),st=nt[0],wt=nt[1],zt=(0,c.useRef)(!1),tn=(0,c.useRef)(null);function bn(){return ve()}var mn=(0,c.useRef)(!1);function wn(Yt){var nn=bn();if(!(Yt&&!Yt.deadline&&Yt.target!==nn)){var gn=mn.current,Hn;Ot===Pt&&gn?Hn=tt==null?void 0:tt(nn,Yt):Ot===at&&gn?Hn=ot==null?void 0:ot(nn,Yt):Ot===fe&&gn&&(Hn=ft==null?void 0:ft(nn,Yt)),Ot!==It&&gn&&Hn!==!1&&(Vt(It,!0),wt(null,!0))}}var Bn=Ft(wn),On=(0,A.Z)(Bn,1),In=On[0],pn=c.useMemo(function(){var Yt,nn,gn;switch(Ot){case Pt:return Yt={},(0,E.Z)(Yt,o,ge),(0,E.Z)(Yt,s,Ue),(0,E.Z)(Yt,_,Ge),Yt;case at:return nn={},(0,E.Z)(nn,o,Se),(0,E.Z)(nn,s,ze),(0,E.Z)(nn,_,je),nn;case fe:return gn={},(0,E.Z)(gn,o,Re),(0,E.Z)(gn,s,be),(0,E.Z)(gn,_,We),gn;default:return{}}},[Ot]),zn=Kt(Ot,function(Yt){if(Yt===o){var nn=pn[o];return nn?nn(bn()):et}if(Cn in pn){var gn;wt(((gn=pn[Cn])===null||gn===void 0?void 0:gn.call(pn,bn(),null))||null)}return Cn===_&&(In(bn()),U>0&&(clearTimeout(tn.current),tn.current=setTimeout(function(){wn({deadline:!0})},U))),bt}),fn=(0,A.Z)(zn,2),Ln=fn[0],Cn=fn[1],nr=Ce(Cn);mn.current=nr,ut(function(){Lt(te);var Yt=zt.current;if(zt.current=!0,!!W){var nn;!Yt&&te&&y&&(nn=Pt),Yt&&te&&h&&(nn=at),(Yt&&!te&&p||!Yt&&V&&!te&&p)&&(nn=fe),nn&&(Vt(nn),Ln())}},[te]),(0,c.useEffect)(function(){(Ot===Pt&&!y||Ot===at&&!h||Ot===fe&&!p)&&Vt(It)},[y,h,p]),(0,c.useEffect)(function(){return function(){zt.current=!1,clearTimeout(tn.current)}},[]);var Zn=c.useRef(!1);(0,c.useEffect)(function(){it&&(Zn.current=!0),it!==void 0&&Ot===It&&((Zn.current||it)&&(rt==null||rt(it)),Zn.current=!0)},[it,Ot]);var yn=st;return pn[o]&&Cn===s&&(yn=(0,M.Z)({transition:"none"},yn)),[Ot,Cn,yn,it!=null?it:te]}var Bt=function(W){(0,d.Z)(ve,W);var te=(0,X.Z)(ve);function ve(){return(0,v.Z)(this,ve),te.apply(this,arguments)}return(0,x.Z)(ve,[{key:"render",value:function(){return this.props.children}}]),ve}(c.Component),Wt=Bt;function kt(W){var te=W;(0,z.Z)(W)==="object"&&(te=W.transitionSupport);function ve(he){return!!(he.motionName&&te)}var u=c.forwardRef(function(he,h){var b=he.visible,y=b===void 0?!0:b,C=he.removeOnLeave,p=C===void 0?!0:C,U=he.forceRender,V=he.children,ge=he.motionName,Se=he.leavedClassName,Re=he.eventProps,Ue=ve(he),ze=(0,c.useRef)(),be=(0,c.useRef)();function Ge(){try{return ze.current instanceof HTMLElement?ze.current:Ke(be.current)}catch(Gt){return null}}var je=At(Ue,y,Ge,he),We=(0,A.Z)(je,4),tt=We[0],ot=We[1],ft=We[2],rt=We[3],qe=c.useRef(rt);rt&&(qe.current=!0);var lt=c.useCallback(function(Gt){ze.current=Gt,D(h,Gt)},[h]),it,Lt=(0,M.Z)((0,M.Z)({},Re),{},{visible:y});if(!V)it=null;else if(tt===It||!ve(he))rt?it=V((0,M.Z)({},Lt),lt):!p&&qe.current&&Se?it=V((0,M.Z)((0,M.Z)({},Lt),{},{className:Se}),lt):U||!p&&!Se?it=V((0,M.Z)((0,M.Z)({},Lt),{},{style:{display:"none"}}),lt):it=null;else{var Et,jt;ot===o?jt="prepare":Ce(ot)?jt="active":ot===s&&(jt="start"),it=V((0,M.Z)((0,M.Z)({},Lt),{},{className:de()(Rt(ge,tt),(Et={},(0,E.Z)(Et,Rt(ge,"".concat(tt,"-").concat(jt)),jt),(0,E.Z)(Et,ge,typeof ge=="string"),Et)),style:ft}),lt)}if(c.isValidElement(it)&&Fe(it)){var Ot=it,Vt=Ot.ref;Vt||(it=c.cloneElement(it,{ref:lt}))}return c.createElement(Wt,{ref:be},it)});return u.displayName="CSSMotion",u}var Zt=kt(Dt),$t="add",Ht="keep",mt="remove",en="removed";function yt(W){var te;return W&&(0,z.Z)(W)==="object"&&"key"in W?te=W:te={key:W},(0,M.Z)((0,M.Z)({},te),{},{key:String(te.key)})}function N(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return W.map(yt)}function ce(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ve=[],u=0,he=te.length,h=N(W),b=N(te);h.forEach(function(p){for(var U=!1,V=u;V<he;V+=1){var ge=b[V];if(ge.key===p.key){u<V&&(ve=ve.concat(b.slice(u,V).map(function(Se){return(0,M.Z)((0,M.Z)({},Se),{},{status:$t})})),u=V),ve.push((0,M.Z)((0,M.Z)({},ge),{},{status:Ht})),u+=1,U=!0;break}}U||ve.push((0,M.Z)((0,M.Z)({},p),{},{status:mt}))}),u<he&&(ve=ve.concat(b.slice(u).map(function(p){return(0,M.Z)((0,M.Z)({},p),{},{status:$t})})));var y={};ve.forEach(function(p){var U=p.key;y[U]=(y[U]||0)+1});var C=Object.keys(y).filter(function(p){return y[p]>1});return C.forEach(function(p){ve=ve.filter(function(U){var V=U.key,ge=U.status;return V!==p||ge!==mt}),ve.forEach(function(U){U.key===p&&(U.status=Ht)})}),ve}var me=["component","children","onVisibleChanged","onAllRemoved"],_e=["status"],He=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Me(W){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Zt,ve=function(u){(0,d.Z)(h,u);var he=(0,X.Z)(h);function h(){var b;(0,v.Z)(this,h);for(var y=arguments.length,C=new Array(y),p=0;p<y;p++)C[p]=arguments[p];return b=he.call.apply(he,[this].concat(C)),(0,E.Z)((0,se.Z)(b),"state",{keyEntities:[]}),(0,E.Z)((0,se.Z)(b),"removeKey",function(U){var V=b.state.keyEntities,ge=V.map(function(Se){return Se.key!==U?Se:(0,M.Z)((0,M.Z)({},Se),{},{status:en})});return b.setState({keyEntities:ge}),ge.filter(function(Se){var Re=Se.status;return Re!==en}).length}),b}return(0,x.Z)(h,[{key:"render",value:function(){var y=this,C=this.state.keyEntities,p=this.props,U=p.component,V=p.children,ge=p.onVisibleChanged,Se=p.onAllRemoved,Re=(0,f.Z)(p,me),Ue=U||c.Fragment,ze={};return He.forEach(function(be){ze[be]=Re[be],delete Re[be]}),delete Re.keys,c.createElement(Ue,Re,C.map(function(be){var Ge=be.status,je=(0,f.Z)(be,_e),We=Ge===$t||Ge===Ht;return c.createElement(te,(0,l.Z)({},ze,{key:je.key,visible:We,eventProps:je,onVisibleChanged:function(ot){if(ge==null||ge(ot,{key:je.key}),!ot){var ft=y.removeKey(je.key);ft===0&&Se&&Se()}}}),V)}))}}],[{key:"getDerivedStateFromProps",value:function(y,C){var p=y.keys,U=C.keyEntities,V=N(p),ge=ce(U,V);return{keyEntities:ge.filter(function(Se){var Re=U.find(function(Ue){var ze=Ue.key;return Se.key===ze});return!(Re&&Re.status===en&&Se.status===mt)})}}}]),h}(c.Component);return(0,E.Z)(ve,"defaultProps",{component:"div"}),ve}var Pe=Me(Dt),Ae=Zt,Ie=r(56261);function q(W,te){var ve=c.useState(!1),u=(0,A.Z)(ve,2),he=u[0],h=u[1];c.useLayoutEffect(function(){if(he)return W(),function(){te()}},[he]),c.useLayoutEffect(function(){return h(!0),function(){h(!1)}},[])}var e=r(83898),t=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],n=function(te,ve){var u=te.className,he=te.style,h=te.motion,b=te.motionNodes,y=te.motionType,C=te.onMotionStart,p=te.onMotionEnd,U=te.active,V=te.treeNodeRequiredProps,ge=(0,f.Z)(te,t),Se=c.useState(!0),Re=(0,A.Z)(Se,2),Ue=Re[0],ze=Re[1],be=c.useContext(j.k),Ge=be.prefixCls,je=b&&y!=="hide";Z(function(){b&&je!==Ue&&ze(je)},[b]);var We=function(){b&&C()},tt=c.useRef(!1),ot=function(){b&&!tt.current&&(tt.current=!0,p())};q(We,ot);var ft=function(qe){je===qe&&ot()};return b?c.createElement(Ae,(0,l.Z)({ref:ve,visible:Ue},h,{motionAppear:y==="show",onVisibleChanged:ft}),function(rt,qe){var lt=rt.className,it=rt.style;return c.createElement("div",{ref:qe,className:de()("".concat(Ge,"-treenode-motion"),lt),style:it},b.map(function(Lt){var Et=(0,l.Z)({},((0,T.Z)(Lt.data),Lt.data)),jt=Lt.title,Ot=Lt.key,Vt=Lt.isStart,Gt=Lt.isEnd;delete Et.children;var nt=(0,e.H8)(Ot,V);return c.createElement(Ie.Z,(0,l.Z)({},Et,nt,{title:jt,active:U,data:Lt.data,key:Ot,isStart:Vt,isEnd:Gt}))}))}):c.createElement(Ie.Z,(0,l.Z)({domRef:ve,className:u,style:he},ge,{active:U}))};n.displayName="MotionTreeNode";var i=c.forwardRef(n),a=i;function m(){var W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ve=W.length,u=te.length;if(Math.abs(ve-u)!==1)return{add:!1,key:null};function he(h,b){var y=new Map;h.forEach(function(p){y.set(p,!0)});var C=b.filter(function(p){return!y.has(p)});return C.length===1?C[0]:null}return ve<u?{add:!0,key:he(W,te)}:{add:!1,key:he(te,W)}}function w(W,te,ve){var u=W.findIndex(function(y){return y.key===ve}),he=W[u+1],h=te.findIndex(function(y){return y.key===ve});if(he){var b=te.findIndex(function(y){return y.key===he.key});return te.slice(h+1,b)}return te.slice(h+1)}var pe=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],oe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ke=function(){},Qe="RC_TREE_MOTION_".concat(Math.random()),gt={key:Qe},Xe={key:Qe,level:0,index:0,pos:"0",node:gt,nodes:[gt]},pt={parent:null,children:[],pos:Xe.pos,data:gt,title:null,key:Qe,isStart:[],isEnd:[]};function ct(W,te,ve,u){return te===!1||!ve?W:W.slice(0,Math.ceil(ve/u)+1)}function De(W){var te=W.key,ve=W.pos;return(0,e.km)(te,ve)}function Ve(W){for(var te=String(W.data.key),ve=W;ve.parent;)ve=ve.parent,te="".concat(ve.data.key," > ").concat(te);return te}var vt=c.forwardRef(function(W,te){var ve=W.prefixCls,u=W.data,he=W.selectable,h=W.checkable,b=W.expandedKeys,y=W.selectedKeys,C=W.checkedKeys,p=W.loadedKeys,U=W.loadingKeys,V=W.halfCheckedKeys,ge=W.keyEntities,Se=W.disabled,Re=W.dragging,Ue=W.dragOverNodeKey,ze=W.dropPosition,be=W.motion,Ge=W.height,je=W.itemHeight,We=W.virtual,tt=W.focusable,ot=W.activeItem,ft=W.focused,rt=W.tabIndex,qe=W.onKeyDown,lt=W.onFocus,it=W.onBlur,Lt=W.onActiveChange,Et=W.onListChangeStart,jt=W.onListChangeEnd,Ot=(0,f.Z)(W,pe),Vt=c.useRef(null),Gt=c.useRef(null);c.useImperativeHandle(te,function(){return{scrollTo:function(Dn){Vt.current.scrollTo(Dn)},getIndentWidth:function(){return Gt.current.offsetWidth}}});var nt=c.useState(b),st=(0,A.Z)(nt,2),wt=st[0],zt=st[1],tn=c.useState(u),bn=(0,A.Z)(tn,2),mn=bn[0],wn=bn[1],Bn=c.useState(u),On=(0,A.Z)(Bn,2),In=On[0],pn=On[1],zn=c.useState([]),fn=(0,A.Z)(zn,2),Ln=fn[0],Cn=fn[1],nr=c.useState(null),Zn=(0,A.Z)(nr,2),yn=Zn[0],Yt=Zn[1],nn=c.useRef(u);nn.current=u;function gn(){var hn=nn.current;wn(hn),pn(hn),Cn([]),Yt(null),jt()}Z(function(){zt(b);var hn=m(wt,b);if(hn.key!==null)if(hn.add){var Dn=mn.findIndex(function(lr){var Wn=lr.key;return Wn===hn.key}),rr=ct(w(mn,u,hn.key),We,Ge,je),Vn=mn.slice();Vn.splice(Dn+1,0,pt),pn(Vn),Cn(rr),Yt("show")}else{var Jn=u.findIndex(function(lr){var Wn=lr.key;return Wn===hn.key}),qn=ct(w(u,mn,hn.key),We,Ge,je),Tn=u.slice();Tn.splice(Jn+1,0,pt),pn(Tn),Cn(qn),Yt("hide")}else mn!==u&&(wn(u),pn(u))},[b,u]),c.useEffect(function(){Re||gn()},[Re]);var Hn=be?In:u,jn={expandedKeys:b,selectedKeys:y,loadedKeys:p,loadingKeys:U,checkedKeys:C,halfCheckedKeys:V,dragOverNodeKey:Ue,dropPosition:ze,keyEntities:ge};return c.createElement(c.Fragment,null,ft&&ot&&c.createElement("span",{style:oe,"aria-live":"assertive"},Ve(ot)),c.createElement("div",null,c.createElement("input",{style:oe,disabled:tt===!1||Se,tabIndex:tt!==!1?rt:null,onKeyDown:qe,onFocus:lt,onBlur:it,value:"",onChange:ke,"aria-label":"for screen reader"})),c.createElement("div",{className:"".concat(ve,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},c.createElement("div",{className:"".concat(ve,"-indent")},c.createElement("div",{ref:Gt,className:"".concat(ve,"-indent-unit")}))),c.createElement(ye.Z,(0,l.Z)({},Ot,{data:Hn,itemKey:De,height:Ge,fullHeight:!1,virtual:We,itemHeight:je,prefixCls:"".concat(ve,"-list"),ref:Vt,onVisibleChange:function(Dn,rr){var Vn=new Set(Dn),Jn=rr.filter(function(qn){return!Vn.has(qn)});Jn.some(function(qn){return De(qn)===Qe})&&gn()}}),function(hn){var Dn=hn.pos,rr=(0,l.Z)({},((0,T.Z)(hn.data),hn.data)),Vn=hn.title,Jn=hn.key,qn=hn.isStart,Tn=hn.isEnd,lr=(0,e.km)(Jn,Dn);delete rr.key,delete rr.children;var Wn=(0,e.H8)(lr,jn);return c.createElement(a,(0,l.Z)({},rr,Wn,{title:Vn,active:!!ot&&Jn===ot.key,pos:Dn,data:hn.data,isStart:qn,isEnd:Tn,motion:be,motionNodes:Jn===Qe?Ln:null,motionType:yn,onMotionStart:Et,onMotionEnd:gn,treeNodeRequiredProps:jn,onMouseMove:function(){Lt(null)}}))}))});vt.displayName="NodeList";var Ct=vt,Je=r(29873),sn=r(97153),Qt=r(3596),_t=10,Ut=function(W){(0,d.Z)(ve,W);var te=(0,X.Z)(ve);function ve(){var u;(0,v.Z)(this,ve);for(var he=arguments.length,h=new Array(he),b=0;b<he;b++)h[b]=arguments[b];return u=te.call.apply(te,[this].concat(h)),u.destroyed=!1,u.delayedDragEnterLogic=void 0,u.loadingRetryTimes={},u.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,e.w$)()},u.dragStartMousePosition=null,u.dragNode=void 0,u.currentMouseOverDroppableNodeKey=null,u.listRef=c.createRef(),u.onNodeDragStart=function(y,C){var p=u.state,U=p.expandedKeys,V=p.keyEntities,ge=u.props.onDragStart,Se=C.props.eventKey;u.dragNode=C,u.dragStartMousePosition={x:y.clientX,y:y.clientY};var Re=(0,Je._5)(U,Se);u.setState({draggingNodeKey:Se,dragChildrenKeys:(0,Je.wA)(Se,V),indent:u.listRef.current.getIndentWidth()}),u.setExpandedKeys(Re),window.addEventListener("dragend",u.onWindowDragEnd),ge==null||ge({event:y,node:(0,e.F)(C.props)})},u.onNodeDragEnter=function(y,C){var p=u.state,U=p.expandedKeys,V=p.keyEntities,ge=p.dragChildrenKeys,Se=p.flattenNodes,Re=p.indent,Ue=u.props,ze=Ue.onDragEnter,be=Ue.onExpand,Ge=Ue.allowDrop,je=Ue.direction,We=C.props,tt=We.pos,ot=We.eventKey,ft=(0,se.Z)(u),rt=ft.dragNode;if(u.currentMouseOverDroppableNodeKey!==ot&&(u.currentMouseOverDroppableNodeKey=ot),!rt){u.resetDragState();return}var qe=(0,Je.OM)(y,rt,C,Re,u.dragStartMousePosition,Ge,Se,V,U,je),lt=qe.dropPosition,it=qe.dropLevelOffset,Lt=qe.dropTargetKey,Et=qe.dropContainerKey,jt=qe.dropTargetPos,Ot=qe.dropAllowed,Vt=qe.dragOverNodeKey;if(ge.indexOf(Lt)!==-1||!Ot){u.resetDragState();return}if(u.delayedDragEnterLogic||(u.delayedDragEnterLogic={}),Object.keys(u.delayedDragEnterLogic).forEach(function(Gt){clearTimeout(u.delayedDragEnterLogic[Gt])}),rt.props.eventKey!==C.props.eventKey&&(y.persist(),u.delayedDragEnterLogic[tt]=window.setTimeout(function(){if(u.state.draggingNodeKey!==null){var Gt=(0,L.Z)(U),nt=(0,Qt.Z)(V,C.props.eventKey);nt&&(nt.children||[]).length&&(Gt=(0,Je.L0)(U,C.props.eventKey)),"expandedKeys"in u.props||u.setExpandedKeys(Gt),be==null||be(Gt,{node:(0,e.F)(C.props),expanded:!0,nativeEvent:y.nativeEvent})}},800)),rt.props.eventKey===Lt&&it===0){u.resetDragState();return}u.setState({dragOverNodeKey:Vt,dropPosition:lt,dropLevelOffset:it,dropTargetKey:Lt,dropContainerKey:Et,dropTargetPos:jt,dropAllowed:Ot}),ze==null||ze({event:y,node:(0,e.F)(C.props),expandedKeys:U})},u.onNodeDragOver=function(y,C){var p=u.state,U=p.dragChildrenKeys,V=p.flattenNodes,ge=p.keyEntities,Se=p.expandedKeys,Re=p.indent,Ue=u.props,ze=Ue.onDragOver,be=Ue.allowDrop,Ge=Ue.direction,je=(0,se.Z)(u),We=je.dragNode;if(We){var tt=(0,Je.OM)(y,We,C,Re,u.dragStartMousePosition,be,V,ge,Se,Ge),ot=tt.dropPosition,ft=tt.dropLevelOffset,rt=tt.dropTargetKey,qe=tt.dropContainerKey,lt=tt.dropAllowed,it=tt.dropTargetPos,Lt=tt.dragOverNodeKey;U.indexOf(rt)!==-1||!lt||(We.props.eventKey===rt&&ft===0?u.state.dropPosition===null&&u.state.dropLevelOffset===null&&u.state.dropTargetKey===null&&u.state.dropContainerKey===null&&u.state.dropTargetPos===null&&u.state.dropAllowed===!1&&u.state.dragOverNodeKey===null||u.resetDragState():ot===u.state.dropPosition&&ft===u.state.dropLevelOffset&&rt===u.state.dropTargetKey&&qe===u.state.dropContainerKey&&it===u.state.dropTargetPos&<===u.state.dropAllowed&&Lt===u.state.dragOverNodeKey||u.setState({dropPosition:ot,dropLevelOffset:ft,dropTargetKey:rt,dropContainerKey:qe,dropTargetPos:it,dropAllowed:lt,dragOverNodeKey:Lt}),ze==null||ze({event:y,node:(0,e.F)(C.props)}))}},u.onNodeDragLeave=function(y,C){u.currentMouseOverDroppableNodeKey===C.props.eventKey&&!y.currentTarget.contains(y.relatedTarget)&&(u.resetDragState(),u.currentMouseOverDroppableNodeKey=null);var p=u.props.onDragLeave;p==null||p({event:y,node:(0,e.F)(C.props)})},u.onWindowDragEnd=function(y){u.onNodeDragEnd(y,null,!0),window.removeEventListener("dragend",u.onWindowDragEnd)},u.onNodeDragEnd=function(y,C){var p=u.props.onDragEnd;u.setState({dragOverNodeKey:null}),u.cleanDragState(),p==null||p({event:y,node:(0,e.F)(C.props)}),u.dragNode=null,window.removeEventListener("dragend",u.onWindowDragEnd)},u.onNodeDrop=function(y,C){var p,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,V=u.state,ge=V.dragChildrenKeys,Se=V.dropPosition,Re=V.dropTargetKey,Ue=V.dropTargetPos,ze=V.dropAllowed;if(ze){var be=u.props.onDrop;if(u.setState({dragOverNodeKey:null}),u.cleanDragState(),Re!==null){var Ge=(0,M.Z)((0,M.Z)({},(0,e.H8)(Re,u.getTreeNodeRequiredProps())),{},{active:((p=u.getActiveItem())===null||p===void 0?void 0:p.key)===Re,data:(0,Qt.Z)(u.state.keyEntities,Re).node}),je=ge.indexOf(Re)!==-1;(0,ae.ZP)(!je,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var We=(0,Je.yx)(Ue),tt={event:y,node:(0,e.F)(Ge),dragNode:u.dragNode?(0,e.F)(u.dragNode.props):null,dragNodesKeys:[u.dragNode.props.eventKey].concat(ge),dropToGap:Se!==0,dropPosition:Se+Number(We[We.length-1])};U||be==null||be(tt),u.dragNode=null}}},u.cleanDragState=function(){var y=u.state.draggingNodeKey;y!==null&&u.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),u.dragStartMousePosition=null,u.currentMouseOverDroppableNodeKey=null},u.triggerExpandActionExpand=function(y,C){var p=u.state,U=p.expandedKeys,V=p.flattenNodes,ge=C.expanded,Se=C.key,Re=C.isLeaf;if(!(Re||y.shiftKey||y.metaKey||y.ctrlKey)){var Ue=V.filter(function(be){return be.key===Se})[0],ze=(0,e.F)((0,M.Z)((0,M.Z)({},(0,e.H8)(Se,u.getTreeNodeRequiredProps())),{},{data:Ue.data}));u.setExpandedKeys(ge?(0,Je._5)(U,Se):(0,Je.L0)(U,Se)),u.onNodeExpand(y,ze)}},u.onNodeClick=function(y,C){var p=u.props,U=p.onClick,V=p.expandAction;V==="click"&&u.triggerExpandActionExpand(y,C),U==null||U(y,C)},u.onNodeDoubleClick=function(y,C){var p=u.props,U=p.onDoubleClick,V=p.expandAction;V==="doubleClick"&&u.triggerExpandActionExpand(y,C),U==null||U(y,C)},u.onNodeSelect=function(y,C){var p=u.state.selectedKeys,U=u.state,V=U.keyEntities,ge=U.fieldNames,Se=u.props,Re=Se.onSelect,Ue=Se.multiple,ze=C.selected,be=C[ge.key],Ge=!ze;Ge?Ue?p=(0,Je.L0)(p,be):p=[be]:p=(0,Je._5)(p,be);var je=p.map(function(We){var tt=(0,Qt.Z)(V,We);return tt?tt.node:null}).filter(function(We){return We});u.setUncontrolledState({selectedKeys:p}),Re==null||Re(p,{event:"select",selected:Ge,node:C,selectedNodes:je,nativeEvent:y.nativeEvent})},u.onNodeCheck=function(y,C,p){var U=u.state,V=U.keyEntities,ge=U.checkedKeys,Se=U.halfCheckedKeys,Re=u.props,Ue=Re.checkStrictly,ze=Re.onCheck,be=C.key,Ge,je={event:"check",node:C,checked:p,nativeEvent:y.nativeEvent};if(Ue){var We=p?(0,Je.L0)(ge,be):(0,Je._5)(ge,be),tt=(0,Je._5)(Se,be);Ge={checked:We,halfChecked:tt},je.checkedNodes=We.map(function(it){return(0,Qt.Z)(V,it)}).filter(function(it){return it}).map(function(it){return it.node}),u.setUncontrolledState({checkedKeys:We})}else{var ot=(0,sn.S)([].concat((0,L.Z)(ge),[be]),!0,V),ft=ot.checkedKeys,rt=ot.halfCheckedKeys;if(!p){var qe=new Set(ft);qe.delete(be);var lt=(0,sn.S)(Array.from(qe),{checked:!1,halfCheckedKeys:rt},V);ft=lt.checkedKeys,rt=lt.halfCheckedKeys}Ge=ft,je.checkedNodes=[],je.checkedNodesPositions=[],je.halfCheckedKeys=rt,ft.forEach(function(it){var Lt=(0,Qt.Z)(V,it);if(Lt){var Et=Lt.node,jt=Lt.pos;je.checkedNodes.push(Et),je.checkedNodesPositions.push({node:Et,pos:jt})}}),u.setUncontrolledState({checkedKeys:ft},!1,{halfCheckedKeys:rt})}ze==null||ze(Ge,je)},u.onNodeLoad=function(y){var C=y.key,p=new Promise(function(U,V){u.setState(function(ge){var Se=ge.loadedKeys,Re=Se===void 0?[]:Se,Ue=ge.loadingKeys,ze=Ue===void 0?[]:Ue,be=u.props,Ge=be.loadData,je=be.onLoad;if(!Ge||Re.indexOf(C)!==-1||ze.indexOf(C)!==-1)return null;var We=Ge(y);return We.then(function(){var tt=u.state.loadedKeys,ot=(0,Je.L0)(tt,C);je==null||je(ot,{event:"load",node:y}),u.setUncontrolledState({loadedKeys:ot}),u.setState(function(ft){return{loadingKeys:(0,Je._5)(ft.loadingKeys,C)}}),U()}).catch(function(tt){if(u.setState(function(ft){return{loadingKeys:(0,Je._5)(ft.loadingKeys,C)}}),u.loadingRetryTimes[C]=(u.loadingRetryTimes[C]||0)+1,u.loadingRetryTimes[C]>=_t){var ot=u.state.loadedKeys;(0,ae.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),u.setUncontrolledState({loadedKeys:(0,Je.L0)(ot,C)}),U()}V(tt)}),{loadingKeys:(0,Je.L0)(ze,C)}})});return p.catch(function(){}),p},u.onNodeMouseEnter=function(y,C){var p=u.props.onMouseEnter;p==null||p({event:y,node:C})},u.onNodeMouseLeave=function(y,C){var p=u.props.onMouseLeave;p==null||p({event:y,node:C})},u.onNodeContextMenu=function(y,C){var p=u.props.onRightClick;p&&(y.preventDefault(),p({event:y,node:C}))},u.onFocus=function(){var y=u.props.onFocus;u.setState({focused:!0});for(var C=arguments.length,p=new Array(C),U=0;U<C;U++)p[U]=arguments[U];y==null||y.apply(void 0,p)},u.onBlur=function(){var y=u.props.onBlur;u.setState({focused:!1}),u.onActiveChange(null);for(var C=arguments.length,p=new Array(C),U=0;U<C;U++)p[U]=arguments[U];y==null||y.apply(void 0,p)},u.getTreeNodeRequiredProps=function(){var y=u.state,C=y.expandedKeys,p=y.selectedKeys,U=y.loadedKeys,V=y.loadingKeys,ge=y.checkedKeys,Se=y.halfCheckedKeys,Re=y.dragOverNodeKey,Ue=y.dropPosition,ze=y.keyEntities;return{expandedKeys:C||[],selectedKeys:p||[],loadedKeys:U||[],loadingKeys:V||[],checkedKeys:ge||[],halfCheckedKeys:Se||[],dragOverNodeKey:Re,dropPosition:Ue,keyEntities:ze}},u.setExpandedKeys=function(y){var C=u.state,p=C.treeData,U=C.fieldNames,V=(0,e.oH)(p,y,U);u.setUncontrolledState({expandedKeys:y,flattenNodes:V},!0)},u.onNodeExpand=function(y,C){var p=u.state.expandedKeys,U=u.state,V=U.listChanging,ge=U.fieldNames,Se=u.props,Re=Se.onExpand,Ue=Se.loadData,ze=C.expanded,be=C[ge.key];if(!V){var Ge=p.indexOf(be),je=!ze;if((0,ae.ZP)(ze&&Ge!==-1||!ze&&Ge===-1,"Expand state not sync with index check"),je?p=(0,Je.L0)(p,be):p=(0,Je._5)(p,be),u.setExpandedKeys(p),Re==null||Re(p,{node:C,expanded:je,nativeEvent:y.nativeEvent}),je&&Ue){var We=u.onNodeLoad(C);We&&We.then(function(){var tt=(0,e.oH)(u.state.treeData,p,ge);u.setUncontrolledState({flattenNodes:tt})}).catch(function(){var tt=u.state.expandedKeys,ot=(0,Je._5)(tt,be);u.setExpandedKeys(ot)})}}},u.onListChangeStart=function(){u.setUncontrolledState({listChanging:!0})},u.onListChangeEnd=function(){setTimeout(function(){u.setUncontrolledState({listChanging:!1})})},u.onActiveChange=function(y){var C=u.state.activeKey,p=u.props.onActiveChange;C!==y&&(u.setState({activeKey:y}),y!==null&&u.scrollTo({key:y}),p==null||p(y))},u.getActiveItem=function(){var y=u.state,C=y.activeKey,p=y.flattenNodes;return C===null?null:p.find(function(U){var V=U.key;return V===C})||null},u.offsetActiveKey=function(y){var C=u.state,p=C.flattenNodes,U=C.activeKey,V=p.findIndex(function(Re){var Ue=Re.key;return Ue===U});V===-1&&y<0&&(V=p.length),V=(V+y+p.length)%p.length;var ge=p[V];if(ge){var Se=ge.key;u.onActiveChange(Se)}else u.onActiveChange(null)},u.onKeyDown=function(y){var C=u.state,p=C.activeKey,U=C.expandedKeys,V=C.checkedKeys,ge=C.fieldNames,Se=u.props,Re=Se.onKeyDown,Ue=Se.checkable,ze=Se.selectable;switch(y.which){case Y.UP:{u.offsetActiveKey(-1),y.preventDefault();break}case Y.DOWN:{u.offsetActiveKey(1),y.preventDefault();break}}var be=u.getActiveItem();if(be&&be.data){var Ge=u.getTreeNodeRequiredProps(),je=be.data.isLeaf===!1||!!(be.data[ge.children]||[]).length,We=(0,e.F)((0,M.Z)((0,M.Z)({},(0,e.H8)(p,Ge)),{},{data:be.data,active:!0}));switch(y.which){case Y.LEFT:{je&&U.includes(p)?u.onNodeExpand({},We):be.parent&&u.onActiveChange(be.parent.key),y.preventDefault();break}case Y.RIGHT:{je&&!U.includes(p)?u.onNodeExpand({},We):be.children&&be.children.length&&u.onActiveChange(be.children[0].key),y.preventDefault();break}case Y.ENTER:case Y.SPACE:{Ue&&!We.disabled&&We.checkable!==!1&&!We.disableCheckbox?u.onNodeCheck({},We,!V.includes(p)):!Ue&&ze&&!We.disabled&&We.selectable!==!1&&u.onNodeSelect({},We);break}}}Re==null||Re(y)},u.setUncontrolledState=function(y){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!u.destroyed){var U=!1,V=!0,ge={};Object.keys(y).forEach(function(Se){if(Se in u.props){V=!1;return}U=!0,ge[Se]=y[Se]}),U&&(!C||V)&&u.setState((0,M.Z)((0,M.Z)({},ge),p))}},u.scrollTo=function(y){u.listRef.current.scrollTo(y)},u}return(0,x.Z)(ve,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var he=this.props.activeKey;he!==void 0&&he!==this.state.activeKey&&(this.setState({activeKey:he}),he!==null&&this.scrollTo({key:he}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var he,h=this.state,b=h.focused,y=h.flattenNodes,C=h.keyEntities,p=h.draggingNodeKey,U=h.activeKey,V=h.dropLevelOffset,ge=h.dropContainerKey,Se=h.dropTargetKey,Re=h.dropPosition,Ue=h.dragOverNodeKey,ze=h.indent,be=this.props,Ge=be.prefixCls,je=be.className,We=be.style,tt=be.showLine,ot=be.focusable,ft=be.tabIndex,rt=ft===void 0?0:ft,qe=be.selectable,lt=be.showIcon,it=be.icon,Lt=be.switcherIcon,Et=be.draggable,jt=be.checkable,Ot=be.checkStrictly,Vt=be.disabled,Gt=be.motion,nt=be.loadData,st=be.filterTreeNode,wt=be.height,zt=be.itemHeight,tn=be.virtual,bn=be.titleRender,mn=be.dropIndicatorRender,wn=be.onContextMenu,Bn=be.onScroll,On=be.direction,In=be.rootClassName,pn=be.rootStyle,zn=(0,ne.Z)(this.props,{aria:!0,data:!0}),fn;return Et&&((0,z.Z)(Et)==="object"?fn=Et:typeof Et=="function"?fn={nodeDraggable:Et}:fn={}),c.createElement(j.k.Provider,{value:{prefixCls:Ge,selectable:qe,showIcon:lt,icon:it,switcherIcon:Lt,draggable:fn,draggingNodeKey:p,checkable:jt,checkStrictly:Ot,disabled:Vt,keyEntities:C,dropLevelOffset:V,dropContainerKey:ge,dropTargetKey:Se,dropPosition:Re,dragOverNodeKey:Ue,indent:ze,direction:On,dropIndicatorRender:mn,loadData:nt,filterTreeNode:st,titleRender:bn,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},c.createElement("div",{role:"tree",className:de()(Ge,je,In,(he={},(0,E.Z)(he,"".concat(Ge,"-show-line"),tt),(0,E.Z)(he,"".concat(Ge,"-focused"),b),(0,E.Z)(he,"".concat(Ge,"-active-focused"),U!==null),he)),style:pn},c.createElement(Ct,(0,l.Z)({ref:this.listRef,prefixCls:Ge,style:We,data:y,disabled:Vt,selectable:qe,checkable:!!jt,motion:Gt,dragging:p!==null,height:wt,itemHeight:zt,virtual:tn,focusable:ot,focused:b,tabIndex:rt,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:wn,onScroll:Bn},this.getTreeNodeRequiredProps(),zn))))}}],[{key:"getDerivedStateFromProps",value:function(he,h){var b=h.prevProps,y={prevProps:he};function C(ot){return!b&&ot in he||b&&b[ot]!==he[ot]}var p,U=h.fieldNames;if(C("fieldNames")&&(U=(0,e.w$)(he.fieldNames),y.fieldNames=U),C("treeData")?p=he.treeData:C("children")&&((0,ae.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),p=(0,e.zn)(he.children)),p){y.treeData=p;var V=(0,e.I8)(p,{fieldNames:U});y.keyEntities=(0,M.Z)((0,E.Z)({},Qe,Xe),V.keyEntities)}var ge=y.keyEntities||h.keyEntities;if(C("expandedKeys")||b&&C("autoExpandParent"))y.expandedKeys=he.autoExpandParent||!b&&he.defaultExpandParent?(0,Je.r7)(he.expandedKeys,ge):he.expandedKeys;else if(!b&&he.defaultExpandAll){var Se=(0,M.Z)({},ge);delete Se[Qe],y.expandedKeys=Object.keys(Se).map(function(ot){return Se[ot].key})}else!b&&he.defaultExpandedKeys&&(y.expandedKeys=he.autoExpandParent||he.defaultExpandParent?(0,Je.r7)(he.defaultExpandedKeys,ge):he.defaultExpandedKeys);if(y.expandedKeys||delete y.expandedKeys,p||y.expandedKeys){var Re=(0,e.oH)(p||h.treeData,y.expandedKeys||h.expandedKeys,U);y.flattenNodes=Re}if(he.selectable&&(C("selectedKeys")?y.selectedKeys=(0,Je.BT)(he.selectedKeys,he):!b&&he.defaultSelectedKeys&&(y.selectedKeys=(0,Je.BT)(he.defaultSelectedKeys,he))),he.checkable){var Ue;if(C("checkedKeys")?Ue=(0,Je.E6)(he.checkedKeys)||{}:!b&&he.defaultCheckedKeys?Ue=(0,Je.E6)(he.defaultCheckedKeys)||{}:p&&(Ue=(0,Je.E6)(he.checkedKeys)||{checkedKeys:h.checkedKeys,halfCheckedKeys:h.halfCheckedKeys}),Ue){var ze=Ue,be=ze.checkedKeys,Ge=be===void 0?[]:be,je=ze.halfCheckedKeys,We=je===void 0?[]:je;if(!he.checkStrictly){var tt=(0,sn.S)(Ge,!0,ge);Ge=tt.checkedKeys,We=tt.halfCheckedKeys}y.checkedKeys=Ge,y.halfCheckedKeys=We}}return C("loadedKeys")&&(y.loadedKeys=he.loadedKeys),y}}]),ve}(c.Component);Ut.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:P,allowDrop:function(){return!0},expandAction:!1},Ut.TreeNode=Ie.Z;var Jt=Ut,rn=Jt,an=r(73148),_n=r(56747),Mn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},un=Mn,Fn=r(84089),on=function(te,ve){return c.createElement(Fn.Z,(0,l.Z)({},te,{ref:ve,icon:un}))},Un=c.forwardRef(on),Pn=r(53124),vn=r(50881),ln=r(33603),dn=r(32157);const Nn=4;function Sn(W){const{dropPosition:te,dropLevelOffset:ve,prefixCls:u,indent:he,direction:h="ltr"}=W,b=h==="ltr"?"left":"right",y=h==="ltr"?"right":"left",C={[b]:-ve*he+Nn,[y]:0};switch(te){case-1:C.top=-3;break;case 1:C.bottom=-3;break;default:C.bottom=-3,C[b]=he+Nn;break}return c.createElement("div",{style:C,className:`${u}-drop-indicator`})}var xn=r(99184),vr=c.forwardRef((W,te)=>{const{getPrefixCls:ve,direction:u,virtual:he,tree:h}=c.useContext(Pn.E_),{prefixCls:b,className:y,showIcon:C=!1,showLine:p,switcherIcon:U,blockNode:V=!1,children:ge,checkable:Se=!1,selectable:Re=!0,draggable:Ue,motion:ze,style:be}=W,Ge=ve("tree",b),je=ve(),We=ze!=null?ze:Object.assign(Object.assign({},(0,ln.Z)(je)),{motionAppear:!1}),tt=Object.assign(Object.assign({},W),{checkable:Se,selectable:Re,showIcon:C,motion:We,blockNode:V,showLine:!!p,dropIndicatorRender:Sn}),[ot,ft]=(0,dn.ZP)(Ge),rt=c.useMemo(()=>{if(!Ue)return!1;let lt={};switch(typeof Ue){case"function":lt.nodeDraggable=Ue;break;case"object":lt=Object.assign({},Ue);break;default:break}return lt.icon!==!1&&(lt.icon=lt.icon||c.createElement(vn.Z,null)),lt},[Ue]),qe=lt=>c.createElement(xn.Z,{prefixCls:Ge,switcherIcon:U,treeNodeProps:lt,showLine:p});return ot(c.createElement(rn,Object.assign({itemHeight:20,ref:te,virtual:he},tt,{style:Object.assign(Object.assign({},h==null?void 0:h.style),be),prefixCls:Ge,className:de()({[`${Ge}-icon-hide`]:!C,[`${Ge}-block-node`]:V,[`${Ge}-unselectable`]:!Re,[`${Ge}-rtl`]:u==="rtl"},h==null?void 0:h.className,y,ft),direction:u,checkable:Se&&c.createElement("span",{className:`${Ge}-checkbox-inner`}),selectable:Re,switcherIcon:qe,draggable:rt}),ge))}),$n;(function(W){W[W.None=0]="None",W[W.Start=1]="Start",W[W.End=2]="End"})($n||($n={}));function Xn(W,te){function ve(u){const{key:he,children:h}=u;te(he,u)!==!1&&Xn(h||[],te)}W.forEach(ve)}function xr(W){let{treeData:te,expandedKeys:ve,startKey:u,endKey:he}=W;const h=[];let b=$n.None;if(u&&u===he)return[u];if(!u||!he)return[];function y(C){return C===u||C===he}return Xn(te,C=>{if(b===$n.End)return!1;if(y(C)){if(h.push(C),b===$n.None)b=$n.Start;else if(b===$n.Start)return b=$n.End,!1}else b===$n.Start&&h.push(C);return ve.includes(C)}),h}function sr(W,te){const ve=(0,L.Z)(te),u=[];return Xn(W,(he,h)=>{const b=ve.indexOf(he);return b!==-1&&(u.push(h),ve.splice(b,1)),!!ve.length}),u}var Er=function(W,te){var ve={};for(var u in W)Object.prototype.hasOwnProperty.call(W,u)&&te.indexOf(u)<0&&(ve[u]=W[u]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,u=Object.getOwnPropertySymbols(W);he<u.length;he++)te.indexOf(u[he])<0&&Object.prototype.propertyIsEnumerable.call(W,u[he])&&(ve[u[he]]=W[u[he]]);return ve};function pr(W){const{isLeaf:te,expanded:ve}=W;return te?c.createElement(an.Z,null):ve?c.createElement(_n.Z,null):c.createElement(Un,null)}function Yn(W){let{treeData:te,children:ve}=W;return te||(0,e.zn)(ve)}const dr=(W,te)=>{var{defaultExpandAll:ve,defaultExpandParent:u,defaultExpandedKeys:he}=W,h=Er(W,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const b=c.useRef(),y=c.useRef(),C=()=>{const{keyEntities:rt}=(0,e.I8)(Yn(h));let qe;return ve?qe=Object.keys(rt):u?qe=(0,Je.r7)(h.expandedKeys||he||[],rt):qe=h.expandedKeys||he,qe},[p,U]=c.useState(h.selectedKeys||h.defaultSelectedKeys||[]),[V,ge]=c.useState(()=>C());c.useEffect(()=>{"selectedKeys"in h&&U(h.selectedKeys)},[h.selectedKeys]),c.useEffect(()=>{"expandedKeys"in h&&ge(h.expandedKeys)},[h.expandedKeys]);const Se=(rt,qe)=>{var lt;return"expandedKeys"in h||ge(rt),(lt=h.onExpand)===null||lt===void 0?void 0:lt.call(h,rt,qe)},Re=(rt,qe)=>{var lt;const{multiple:it}=h,{node:Lt,nativeEvent:Et}=qe,{key:jt=""}=Lt,Ot=Yn(h),Vt=Object.assign(Object.assign({},qe),{selected:!0}),Gt=(Et==null?void 0:Et.ctrlKey)||(Et==null?void 0:Et.metaKey),nt=Et==null?void 0:Et.shiftKey;let st;it&&Gt?(st=rt,b.current=jt,y.current=st,Vt.selectedNodes=sr(Ot,st)):it&&nt?(st=Array.from(new Set([].concat((0,L.Z)(y.current||[]),(0,L.Z)(xr({treeData:Ot,expandedKeys:V,startKey:jt,endKey:b.current}))))),Vt.selectedNodes=sr(Ot,st)):(st=[jt],b.current=jt,y.current=st,Vt.selectedNodes=sr(Ot,st)),(lt=h.onSelect)===null||lt===void 0||lt.call(h,st,Vt),"selectedKeys"in h||U(st)},{getPrefixCls:Ue,direction:ze}=c.useContext(Pn.E_),{prefixCls:be,className:Ge,showIcon:je=!0,expandAction:We="click"}=h,tt=Er(h,["prefixCls","className","showIcon","expandAction"]),ot=Ue("tree",be),ft=de()(`${ot}-directory`,{[`${ot}-directory-rtl`]:ze==="rtl"},Ge);return c.createElement(vr,Object.assign({icon:pr,ref:te,blockNode:!0},tt,{showIcon:je,expandAction:We,prefixCls:ot,className:ft,expandedKeys:V,selectedKeys:p,onSelect:Re,onExpand:Se}))};var Qn=c.forwardRef(dr);const kn=vr;kn.DirectoryTree=Qn,kn.TreeNode=Ie.Z;var gr=kn},32157:function(St,Oe,r){"use strict";r.d(Oe,{TM:function(){return I},Yk:function(){return de}});var l=r(34367),E=r(63185),z=r(14747),M=r(33507),L=r(45503),v=r(67968);const x=new l.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),se=(Y,ne)=>({[`.${Y}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${ne.motionDurationSlow}`}}}),d=(Y,ne)=>({[`.${Y}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:ne.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${ne.lineWidthBold}px solid ${ne.colorPrimary}`,borderRadius:"50%",content:'""'}}}),X=(Y,ne)=>{const{treeCls:ae,treeNodeCls:c,treeNodePadding:j,titleHeight:P,nodeSelectedBg:T,nodeHoverBg:A}=ne,f=ne.paddingXS;return{[ae]:Object.assign(Object.assign({},(0,z.Wf)(ne)),{background:ne.colorBgContainer,borderRadius:ne.borderRadius,transition:`background-color ${ne.motionDurationSlow}`,[`&${ae}-rtl`]:{[`${ae}-switcher`]:{"&_close":{[`${ae}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${ae}-active-focused)`]:Object.assign({},(0,z.oN)(ne)),[`${ae}-list-holder-inner`]:{alignItems:"flex-start"},[`&${ae}-block-node`]:{[`${ae}-list-holder-inner`]:{alignItems:"stretch",[`${ae}-node-content-wrapper`]:{flex:"auto"},[`${c}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:j,insetInlineStart:0,border:`1px solid ${ne.colorPrimary}`,opacity:0,animationName:x,animationDuration:ne.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${c}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${j}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${ae}-node-content-wrapper`]:{color:ne.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${ae}-node-content-wrapper`]:Object.assign({},(0,z.oN)(ne)),[`&:not(${c}-disabled).filter-node ${ae}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${ae}-draggable-icon`]:{flexShrink:0,width:P,lineHeight:`${P}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${ne.motionDurationSlow}`,[`${c}:hover &`]:{opacity:.45}},[`&${c}-disabled`]:{[`${ae}-draggable-icon`]:{visibility:"hidden"}}}},[`${ae}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:P}},[`${ae}-draggable-icon`]:{visibility:"hidden"},[`${ae}-switcher`]:Object.assign(Object.assign({},se(Y,ne)),{position:"relative",flex:"none",alignSelf:"stretch",width:P,margin:0,lineHeight:`${P}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${ae}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:ne.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:P/2,bottom:-j,marginInlineStart:-1,borderInlineEnd:`1px solid ${ne.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:P/2*.8,height:P/2,borderBottom:`1px solid ${ne.colorBorder}`,content:'""'}}}),[`${ae}-checkbox`]:{top:"initial",marginInlineEnd:f},[`${ae}-node-content-wrapper, ${ae}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:P,margin:0,padding:`0 ${ne.paddingXS/2}px`,color:"inherit",lineHeight:`${P}px`,background:"transparent",borderRadius:ne.borderRadius,cursor:"pointer",transition:`all ${ne.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:A},[`&${ae}-node-selected`]:{backgroundColor:T},[`${ae}-iconEle`]:{display:"inline-block",width:P,height:P,lineHeight:`${P}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${ae}-unselectable ${ae}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${ae}-node-content-wrapper`]:Object.assign({lineHeight:`${P}px`,userSelect:"none"},d(Y,ne)),[`${c}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${ne.colorPrimary}`}},"&-show-line":{[`${ae}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:P/2,bottom:-j,borderInlineEnd:`1px solid ${ne.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${ae}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${c}-leaf-last`]:{[`${ae}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${P/2}px !important`}}}}})}},ie=Y=>{const{treeCls:ne,treeNodeCls:ae,treeNodePadding:c,directoryNodeSelectedBg:j,directoryNodeSelectedColor:P}=Y;return{[`${ne}${ne}-directory`]:{[ae]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:c,insetInlineStart:0,transition:`background-color ${Y.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Y.controlItemBgHover}},"> *":{zIndex:1},[`${ne}-switcher`]:{transition:`color ${Y.motionDurationMid}`},[`${ne}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${ne}-node-selected`]:{color:P,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:j},[`${ne}-switcher`]:{color:P},[`${ne}-node-content-wrapper`]:{color:P,background:"transparent"}}}}}},de=(Y,ne)=>{const ae=`.${Y}`,c=`${ae}-treenode`,j=ne.paddingXS/2,P=(0,L.TS)(ne,{treeCls:ae,treeNodeCls:c,treeNodePadding:j});return[X(Y,P),ie(P)]},I=Y=>{const{controlHeightSM:ne}=Y;return{titleHeight:ne,nodeHoverBg:Y.controlItemBgHover,nodeSelectedBg:Y.controlItemBgActive}};Oe.ZP=(0,v.Z)("Tree",(Y,ne)=>{let{prefixCls:ae}=ne;return[{[Y.componentCls]:(0,E.C2)(`${ae}-checkbox`,Y)},de(ae,Y),(0,M.Z)(Y)]},Y=>{const{colorTextLightSolid:ne,colorPrimary:ae}=Y;return Object.assign(Object.assign({},I(Y)),{directoryNodeSelectedColor:ne,directoryNodeSelectedBg:ae})})},99184:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return ae}});var l=r(87462),E=r(67294),z={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},M=z,L=r(84089),v=function(j,P){return E.createElement(L.Z,(0,l.Z)({},j,{ref:P,icon:M}))},x=E.forwardRef(v),se=r(73148),d=r(3407),X=r(34182),ie=r(74664),de=r(94184),I=r.n(de),Y=r(96159),ae=c=>{const{prefixCls:j,switcherIcon:P,treeNodeProps:T,showLine:A}=c,{isLeaf:f,expanded:R,loading:H}=T;if(H)return E.createElement(d.Z,{className:`${j}-switcher-loading-icon`});let Z;if(A&&typeof A=="object"&&(Z=A.showLeafIcon),f){if(!A)return null;if(typeof Z!="boolean"&&Z){const we=typeof Z=="function"?Z(T):Z,$=`${j}-switcher-line-custom-icon`;return(0,Y.l$)(we)?(0,Y.Tm)(we,{className:I()(we.props.className||"",$)}):we}return Z?E.createElement(se.Z,{className:`${j}-switcher-line-icon`}):E.createElement("span",{className:`${j}-switcher-leaf-line`})}const re=`${j}-switcher-icon`,ye=typeof P=="function"?P(T):P;return(0,Y.l$)(ye)?(0,Y.Tm)(ye,{className:I()(ye.props.className||"",re)}):ye!==void 0?ye:A?R?E.createElement(X.Z,{className:`${j}-switcher-line-icon`}):E.createElement(ie.Z,{className:`${j}-switcher-line-icon`}):E.createElement(x,{className:re})}},72665:function(St,Oe){"use strict";var r;var l=typeof Symbol=="function"&&Symbol.for,E=l?Symbol.for("react.element"):60103,z=l?Symbol.for("react.portal"):60106,M=l?Symbol.for("react.fragment"):60107,L=l?Symbol.for("react.strict_mode"):60108,v=l?Symbol.for("react.profiler"):60114,x=l?Symbol.for("react.provider"):60109,se=l?Symbol.for("react.context"):60110,d=l?Symbol.for("react.async_mode"):60111,X=l?Symbol.for("react.concurrent_mode"):60111,ie=l?Symbol.for("react.forward_ref"):60112,de=l?Symbol.for("react.suspense"):60113,I=l?Symbol.for("react.suspense_list"):60120,Y=l?Symbol.for("react.memo"):60115,ne=l?Symbol.for("react.lazy"):60116,ae=l?Symbol.for("react.block"):60121,c=l?Symbol.for("react.fundamental"):60117,j=l?Symbol.for("react.responder"):60118,P=l?Symbol.for("react.scope"):60119;function T(f){if(typeof f=="object"&&f!==null){var R=f.$$typeof;switch(R){case E:switch(f=f.type,f){case d:case X:case M:case v:case L:case de:return f;default:switch(f=f&&f.$$typeof,f){case se:case ie:case ne:case Y:case x:return f;default:return R}}case z:return R}}}function A(f){return T(f)===X}r=d,r=X,r=se,r=x,r=E,r=ie,r=M,r=ne,r=Y,r=z,r=v,r=L,r=de,r=function(f){return A(f)||T(f)===d},r=A,r=function(f){return T(f)===se},r=function(f){return T(f)===x},r=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===E},r=function(f){return T(f)===ie},r=function(f){return T(f)===M},r=function(f){return T(f)===ne},Oe.isMemo=function(f){return T(f)===Y},r=function(f){return T(f)===z},r=function(f){return T(f)===v},r=function(f){return T(f)===L},r=function(f){return T(f)===de},r=function(f){return typeof f=="string"||typeof f=="function"||f===M||f===X||f===v||f===L||f===de||f===I||typeof f=="object"&&f!==null&&(f.$$typeof===ne||f.$$typeof===Y||f.$$typeof===x||f.$$typeof===se||f.$$typeof===ie||f.$$typeof===c||f.$$typeof===j||f.$$typeof===P||f.$$typeof===ae)},r=T},12060:function(St,Oe,r){"use strict";St.exports=r(72665)},56261:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return Z}});var l=r(87462),E=r(4942),z=r(45987),M=r(1413),L=r(15671),v=r(43144),x=r(97326),se=r(60136),d=r(51630),X=r(94184),ie=r.n(X),de=r(34952),I=r(67294),Y=r(69610),ne=function(ye){for(var we=ye.prefixCls,$=ye.level,Ke=ye.isStart,Q=ye.isEnd,ue="".concat(we,"-indent-unit"),D=[],O=0;O<$;O+=1){var Be;D.push(I.createElement("span",{key:O,className:ie()(ue,(Be={},(0,E.Z)(Be,"".concat(ue,"-start"),Ke[O]),(0,E.Z)(Be,"".concat(ue,"-end"),Q[O]),Be))}))}return I.createElement("span",{"aria-hidden":"true",className:"".concat(we,"-indent")},D)},ae=I.memo(ne),c=r(3596),j=r(83898),P=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],T="open",A="close",f="---",R=function(re){(0,se.Z)(we,re);var ye=(0,d.Z)(we);function we(){var $;(0,L.Z)(this,we);for(var Ke=arguments.length,Q=new Array(Ke),ue=0;ue<Ke;ue++)Q[ue]=arguments[ue];return $=ye.call.apply(ye,[this].concat(Q)),$.state={dragNodeHighlight:!1},$.selectHandle=void 0,$.cacheIndent=void 0,$.onSelectorClick=function(D){var O=$.props.context.onNodeClick;O(D,(0,j.F)($.props)),$.isSelectable()?$.onSelect(D):$.onCheck(D)},$.onSelectorDoubleClick=function(D){var O=$.props.context.onNodeDoubleClick;O(D,(0,j.F)($.props))},$.onSelect=function(D){if(!$.isDisabled()){var O=$.props.context.onNodeSelect;O(D,(0,j.F)($.props))}},$.onCheck=function(D){if(!$.isDisabled()){var O=$.props,Be=O.disableCheckbox,Fe=O.checked,Ne=$.props.context.onNodeCheck;if(!(!$.isCheckable()||Be)){var ee=!Fe;Ne(D,(0,j.F)($.props),ee)}}},$.onMouseEnter=function(D){var O=$.props.context.onNodeMouseEnter;O(D,(0,j.F)($.props))},$.onMouseLeave=function(D){var O=$.props.context.onNodeMouseLeave;O(D,(0,j.F)($.props))},$.onContextMenu=function(D){var O=$.props.context.onNodeContextMenu;O(D,(0,j.F)($.props))},$.onDragStart=function(D){var O=$.props.context.onNodeDragStart;D.stopPropagation(),$.setState({dragNodeHighlight:!0}),O(D,(0,x.Z)($));try{D.dataTransfer.setData("text/plain","")}catch(Be){}},$.onDragEnter=function(D){var O=$.props.context.onNodeDragEnter;D.preventDefault(),D.stopPropagation(),O(D,(0,x.Z)($))},$.onDragOver=function(D){var O=$.props.context.onNodeDragOver;D.preventDefault(),D.stopPropagation(),O(D,(0,x.Z)($))},$.onDragLeave=function(D){var O=$.props.context.onNodeDragLeave;D.stopPropagation(),O(D,(0,x.Z)($))},$.onDragEnd=function(D){var O=$.props.context.onNodeDragEnd;D.stopPropagation(),$.setState({dragNodeHighlight:!1}),O(D,(0,x.Z)($))},$.onDrop=function(D){var O=$.props.context.onNodeDrop;D.preventDefault(),D.stopPropagation(),$.setState({dragNodeHighlight:!1}),O(D,(0,x.Z)($))},$.onExpand=function(D){var O=$.props,Be=O.loading,Fe=O.context.onNodeExpand;Be||Fe(D,(0,j.F)($.props))},$.setSelectHandle=function(D){$.selectHandle=D},$.getNodeState=function(){var D=$.props.expanded;return $.isLeaf()?null:D?T:A},$.hasChildren=function(){var D=$.props.eventKey,O=$.props.context.keyEntities,Be=(0,c.Z)(O,D)||{},Fe=Be.children;return!!(Fe||[]).length},$.isLeaf=function(){var D=$.props,O=D.isLeaf,Be=D.loaded,Fe=$.props.context.loadData,Ne=$.hasChildren();return O===!1?!1:O||!Fe&&!Ne||Fe&&Be&&!Ne},$.isDisabled=function(){var D=$.props.disabled,O=$.props.context.disabled;return!!(O||D)},$.isCheckable=function(){var D=$.props.checkable,O=$.props.context.checkable;return!O||D===!1?!1:O},$.syncLoadData=function(D){var O=D.expanded,Be=D.loading,Fe=D.loaded,Ne=$.props.context,ee=Ne.loadData,Ee=Ne.onNodeLoad;Be||ee&&O&&!$.isLeaf()&&!$.hasChildren()&&!Fe&&Ee((0,j.F)($.props))},$.isDraggable=function(){var D=$.props,O=D.data,Be=D.context.draggable;return!!(Be&&(!Be.nodeDraggable||Be.nodeDraggable(O)))},$.renderDragHandler=function(){var D=$.props.context,O=D.draggable,Be=D.prefixCls;return O!=null&&O.icon?I.createElement("span",{className:"".concat(Be,"-draggable-icon")},O.icon):null},$.renderSwitcherIconDom=function(D){var O=$.props.switcherIcon,Be=$.props.context.switcherIcon,Fe=O||Be;return typeof Fe=="function"?Fe((0,M.Z)((0,M.Z)({},$.props),{},{isLeaf:D})):Fe},$.renderSwitcher=function(){var D=$.props.expanded,O=$.props.context.prefixCls;if($.isLeaf()){var Be=$.renderSwitcherIconDom(!0);return Be!==!1?I.createElement("span",{className:ie()("".concat(O,"-switcher"),"".concat(O,"-switcher-noop"))},Be):null}var Fe=ie()("".concat(O,"-switcher"),"".concat(O,"-switcher_").concat(D?T:A)),Ne=$.renderSwitcherIconDom(!1);return Ne!==!1?I.createElement("span",{onClick:$.onExpand,className:Fe},Ne):null},$.renderCheckbox=function(){var D=$.props,O=D.checked,Be=D.halfChecked,Fe=D.disableCheckbox,Ne=$.props.context.prefixCls,ee=$.isDisabled(),Ee=$.isCheckable();if(!Ee)return null;var Te=typeof Ee!="boolean"?Ee:null;return I.createElement("span",{className:ie()("".concat(Ne,"-checkbox"),O&&"".concat(Ne,"-checkbox-checked"),!O&&Be&&"".concat(Ne,"-checkbox-indeterminate"),(ee||Fe)&&"".concat(Ne,"-checkbox-disabled")),onClick:$.onCheck},Te)},$.renderIcon=function(){var D=$.props.loading,O=$.props.context.prefixCls;return I.createElement("span",{className:ie()("".concat(O,"-iconEle"),"".concat(O,"-icon__").concat($.getNodeState()||"docu"),D&&"".concat(O,"-icon_loading"))})},$.renderSelector=function(){var D=$.state.dragNodeHighlight,O=$.props,Be=O.title,Fe=Be===void 0?f:Be,Ne=O.selected,ee=O.icon,Ee=O.loading,Te=O.data,xe=$.props.context,$e=xe.prefixCls,Tt=xe.showIcon,dt=xe.icon,Mt=xe.loadData,Dt=xe.titleRender,Nt=$.isDisabled(),xt="".concat($e,"-node-content-wrapper"),Rt;if(Tt){var It=ee||dt;Rt=It?I.createElement("span",{className:ie()("".concat($e,"-iconEle"),"".concat($e,"-icon__customize"))},typeof It=="function"?It($.props):It):$.renderIcon()}else Mt&&Ee&&(Rt=$.renderIcon());var Pt;typeof Fe=="function"?Pt=Fe(Te):Dt?Pt=Dt(Te):Pt=Fe;var at=I.createElement("span",{className:"".concat($e,"-title")},Pt);return I.createElement("span",{ref:$.setSelectHandle,title:typeof Fe=="string"?Fe:"",className:ie()("".concat(xt),"".concat(xt,"-").concat($.getNodeState()||"normal"),!Nt&&(Ne||D)&&"".concat($e,"-node-selected")),onMouseEnter:$.onMouseEnter,onMouseLeave:$.onMouseLeave,onContextMenu:$.onContextMenu,onClick:$.onSelectorClick,onDoubleClick:$.onSelectorDoubleClick},Rt,at,$.renderDropIndicator())},$.renderDropIndicator=function(){var D=$.props,O=D.disabled,Be=D.eventKey,Fe=$.props.context,Ne=Fe.draggable,ee=Fe.dropLevelOffset,Ee=Fe.dropPosition,Te=Fe.prefixCls,xe=Fe.indent,$e=Fe.dropIndicatorRender,Tt=Fe.dragOverNodeKey,dt=Fe.direction,Mt=!!Ne,Dt=!O&&Mt&&Tt===Be,Nt=xe!=null?xe:$.cacheIndent;return $.cacheIndent=xe,Dt?$e({dropPosition:Ee,dropLevelOffset:ee,indent:Nt,prefixCls:Te,direction:dt}):null},$}return(0,v.Z)(we,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ke=this.props.selectable,Q=this.props.context.selectable;return typeof Ke=="boolean"?Ke:Q}},{key:"render",value:function(){var Ke,Q=this.props,ue=Q.eventKey,D=Q.className,O=Q.style,Be=Q.dragOver,Fe=Q.dragOverGapTop,Ne=Q.dragOverGapBottom,ee=Q.isLeaf,Ee=Q.isStart,Te=Q.isEnd,xe=Q.expanded,$e=Q.selected,Tt=Q.checked,dt=Q.halfChecked,Mt=Q.loading,Dt=Q.domRef,Nt=Q.active,xt=Q.data,Rt=Q.onMouseMove,It=Q.selectable,Pt=(0,z.Z)(Q,P),at=this.props.context,fe=at.prefixCls,J=at.filterTreeNode,o=at.keyEntities,s=at.dropContainerKey,_=at.dropTargetKey,k=at.draggingNodeKey,S=this.isDisabled(),B=(0,de.Z)(Pt,{aria:!0,data:!0}),K=(0,c.Z)(o,ue)||{},g=K.level,F=Te[Te.length-1],G=this.isDraggable(),le=!S&&G,Le=k===ue,Ze=It!==void 0?{"aria-selected":!!It}:void 0;return I.createElement("div",(0,l.Z)({ref:Dt,className:ie()(D,"".concat(fe,"-treenode"),(Ke={},(0,E.Z)(Ke,"".concat(fe,"-treenode-disabled"),S),(0,E.Z)(Ke,"".concat(fe,"-treenode-switcher-").concat(xe?"open":"close"),!ee),(0,E.Z)(Ke,"".concat(fe,"-treenode-checkbox-checked"),Tt),(0,E.Z)(Ke,"".concat(fe,"-treenode-checkbox-indeterminate"),dt),(0,E.Z)(Ke,"".concat(fe,"-treenode-selected"),$e),(0,E.Z)(Ke,"".concat(fe,"-treenode-loading"),Mt),(0,E.Z)(Ke,"".concat(fe,"-treenode-active"),Nt),(0,E.Z)(Ke,"".concat(fe,"-treenode-leaf-last"),F),(0,E.Z)(Ke,"".concat(fe,"-treenode-draggable"),G),(0,E.Z)(Ke,"dragging",Le),(0,E.Z)(Ke,"drop-target",_===ue),(0,E.Z)(Ke,"drop-container",s===ue),(0,E.Z)(Ke,"drag-over",!S&&Be),(0,E.Z)(Ke,"drag-over-gap-top",!S&&Fe),(0,E.Z)(Ke,"drag-over-gap-bottom",!S&&Ne),(0,E.Z)(Ke,"filter-node",J&&J((0,j.F)(this.props))),Ke)),style:O,draggable:le,"aria-grabbed":Le,onDragStart:le?this.onDragStart:void 0,onDragEnter:G?this.onDragEnter:void 0,onDragOver:G?this.onDragOver:void 0,onDragLeave:G?this.onDragLeave:void 0,onDrop:G?this.onDrop:void 0,onDragEnd:G?this.onDragEnd:void 0,onMouseMove:Rt},Ze,B),I.createElement(ae,{prefixCls:fe,level:g,isStart:Ee,isEnd:Te}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),we}(I.Component),H=function(ye){return I.createElement(Y.k.Consumer,null,function(we){return I.createElement(R,(0,l.Z)({},ye,{context:we}))})};H.displayName="TreeNode",H.isTreeNode=1;var Z=H},69610:function(St,Oe,r){"use strict";r.d(Oe,{k:function(){return E}});var l=r(67294),E=l.createContext(null)},29873:function(St,Oe,r){"use strict";r.d(Oe,{BT:function(){return ae},E6:function(){return P},L0:function(){return X},OM:function(){return ne},_5:function(){return d},r7:function(){return T},wA:function(){return de},yx:function(){return ie}});var l=r(74902),E=r(71002),z=r(72978),M=r(67294),L=r(56261),v=r(3596),x=r(83898),se=null;function d(A,f){if(!A)return[];var R=A.slice(),H=R.indexOf(f);return H>=0&&R.splice(H,1),R}function X(A,f){var R=(A||[]).slice();return R.indexOf(f)===-1&&R.push(f),R}function ie(A){return A.split("-")}function de(A,f){var R=[],H=(0,v.Z)(f,A);function Z(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];re.forEach(function(ye){var we=ye.key,$=ye.children;R.push(we),Z($)})}return Z(H.children),R}function I(A){if(A.parent){var f=ie(A.pos);return Number(f[f.length-1])===A.parent.children.length-1}return!1}function Y(A){var f=ie(A.pos);return Number(f[f.length-1])===0}function ne(A,f,R,H,Z,re,ye,we,$,Ke){var Q,ue=A.clientX,D=A.clientY,O=A.target.getBoundingClientRect(),Be=O.top,Fe=O.height,Ne=(Ke==="rtl"?-1:1)*(((Z==null?void 0:Z.x)||0)-ue),ee=(Ne-12)/H,Ee=(0,v.Z)(we,R.props.eventKey);if(D<Be+Fe/2){var Te=ye.findIndex(function(at){return at.key===Ee.key}),xe=Te<=0?0:Te-1,$e=ye[xe].key;Ee=(0,v.Z)(we,$e)}var Tt=Ee.key,dt=Ee,Mt=Ee.key,Dt=0,Nt=0;if(!$.includes(Tt))for(var xt=0;xt<ee&&I(Ee);xt+=1)Ee=Ee.parent,Nt+=1;var Rt=f.props.data,It=Ee.node,Pt=!0;return Y(Ee)&&Ee.level===0&&D<Be+Fe/2&&re({dragNode:Rt,dropNode:It,dropPosition:-1})&&Ee.key===R.props.eventKey?Dt=-1:(dt.children||[]).length&&$.includes(Mt)?re({dragNode:Rt,dropNode:It,dropPosition:0})?Dt=0:Pt=!1:Nt===0?ee>-1.5?re({dragNode:Rt,dropNode:It,dropPosition:1})?Dt=1:Pt=!1:re({dragNode:Rt,dropNode:It,dropPosition:0})?Dt=0:re({dragNode:Rt,dropNode:It,dropPosition:1})?Dt=1:Pt=!1:re({dragNode:Rt,dropNode:It,dropPosition:1})?Dt=1:Pt=!1,{dropPosition:Dt,dropLevelOffset:Nt,dropTargetKey:Ee.key,dropTargetPos:Ee.pos,dragOverNodeKey:Mt,dropContainerKey:Dt===0?null:((Q=Ee.parent)===null||Q===void 0?void 0:Q.key)||null,dropAllowed:Pt}}function ae(A,f){if(A){var R=f.multiple;return R?A.slice():A.length?[A[0]]:A}}var c=function(f){return f};function j(A,f){if(!A)return[];var R=f||{},H=R.processProps,Z=H===void 0?c:H,re=Array.isArray(A)?A:[A];return re.map(function(ye){var we=ye.children,$=_objectWithoutProperties(ye,se),Ke=j(we,f);return React.createElement(TreeNode,_extends({key:$.key},Z($)),Ke)})}function P(A){if(!A)return null;var f;if(Array.isArray(A))f={checkedKeys:A,halfCheckedKeys:void 0};else if((0,E.Z)(A)==="object")f={checkedKeys:A.checked||void 0,halfCheckedKeys:A.halfChecked||void 0};else return(0,z.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return f}function T(A,f){var R=new Set;function H(Z){if(!R.has(Z)){var re=(0,v.Z)(f,Z);if(re){R.add(Z);var ye=re.parent,we=re.node;we.disabled||ye&&H(ye.key)}}}return(A||[]).forEach(function(Z){H(Z)}),(0,l.Z)(R)}},97153:function(St,Oe,r){"use strict";r.d(Oe,{S:function(){return x}});var l=r(72978),E=r(3596);function z(se,d){var X=new Set;return se.forEach(function(ie){d.has(ie)||X.add(ie)}),X}function M(se){var d=se||{},X=d.disabled,ie=d.disableCheckbox,de=d.checkable;return!!(X||ie)||de===!1}function L(se,d,X,ie){for(var de=new Set(se),I=new Set,Y=0;Y<=X;Y+=1){var ne=d.get(Y)||new Set;ne.forEach(function(P){var T=P.key,A=P.node,f=P.children,R=f===void 0?[]:f;de.has(T)&&!ie(A)&&R.filter(function(H){return!ie(H.node)}).forEach(function(H){de.add(H.key)})})}for(var ae=new Set,c=X;c>=0;c-=1){var j=d.get(c)||new Set;j.forEach(function(P){var T=P.parent,A=P.node;if(!(ie(A)||!P.parent||ae.has(P.parent.key))){if(ie(P.parent.node)){ae.add(T.key);return}var f=!0,R=!1;(T.children||[]).filter(function(H){return!ie(H.node)}).forEach(function(H){var Z=H.key,re=de.has(Z);f&&!re&&(f=!1),!R&&(re||I.has(Z))&&(R=!0)}),f&&de.add(T.key),R&&I.add(T.key),ae.add(T.key)}})}return{checkedKeys:Array.from(de),halfCheckedKeys:Array.from(z(I,de))}}function v(se,d,X,ie,de){for(var I=new Set(se),Y=new Set(d),ne=0;ne<=ie;ne+=1){var ae=X.get(ne)||new Set;ae.forEach(function(T){var A=T.key,f=T.node,R=T.children,H=R===void 0?[]:R;!I.has(A)&&!Y.has(A)&&!de(f)&&H.filter(function(Z){return!de(Z.node)}).forEach(function(Z){I.delete(Z.key)})})}Y=new Set;for(var c=new Set,j=ie;j>=0;j-=1){var P=X.get(j)||new Set;P.forEach(function(T){var A=T.parent,f=T.node;if(!(de(f)||!T.parent||c.has(T.parent.key))){if(de(T.parent.node)){c.add(A.key);return}var R=!0,H=!1;(A.children||[]).filter(function(Z){return!de(Z.node)}).forEach(function(Z){var re=Z.key,ye=I.has(re);R&&!ye&&(R=!1),!H&&(ye||Y.has(re))&&(H=!0)}),R||I.delete(A.key),H&&Y.add(A.key),c.add(A.key)}})}return{checkedKeys:Array.from(I),halfCheckedKeys:Array.from(z(Y,I))}}function x(se,d,X,ie){var de=[],I;ie?I=ie:I=M;var Y=new Set(se.filter(function(j){var P=!!(0,E.Z)(X,j);return P||de.push(j),P})),ne=new Map,ae=0;Object.keys(X).forEach(function(j){var P=X[j],T=P.level,A=ne.get(T);A||(A=new Set,ne.set(T,A)),A.add(P),ae=Math.max(ae,T)}),(0,l.ZP)(!de.length,"Tree missing follow keys: ".concat(de.slice(0,100).map(function(j){return"'".concat(j,"'")}).join(", ")));var c;return d===!0?c=L(Y,ne,ae,I):c=v(Y,d.halfCheckedKeys,ne,ae,I),c}},3596:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return l}});function l(E,z){return E[z]}},83898:function(St,Oe,r){"use strict";r.d(Oe,{I8:function(){return T},F:function(){return f},zn:function(){return c},w$:function(){return ne},oH:function(){return j},km:function(){return Y},H8:function(){return A}});var l=r(71002),E=r(74902),z=r(1413),M=r(45987),L=r(67294),v=r(28580);function x(R){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=[];return L.Children.forEach(R,function(re){re==null&&!H.keepEmpty||(Array.isArray(re)?Z=Z.concat(x(re)):(0,v.isFragment)(re)&&re.props?Z=Z.concat(x(re.props.children,H)):Z.push(re))}),Z}function se(R,H){var Z=(0,z.Z)({},R);return Array.isArray(H)&&H.forEach(function(re){delete Z[re]}),Z}var d=r(72978),X=r(3596),ie=["children"];function de(R,H){return"".concat(R,"-").concat(H)}function I(R){return R&&R.type&&R.type.isTreeNode}function Y(R,H){return R!=null?R:H}function ne(R){var H=R||{},Z=H.title,re=H._title,ye=H.key,we=H.children,$=Z||"title";return{title:$,_title:re||[$],key:ye||"key",children:we||"children"}}function ae(R,H){var Z=new Map;function re(ye){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ye||[]).forEach(function($){var Ke=$[H.key],Q=$[H.children];warning(Ke!=null,"Tree node must have a certain key: [".concat(we).concat(Ke,"]"));var ue=String(Ke);warning(!Z.has(ue)||Ke===null||Ke===void 0,"Same 'key' exist in the Tree: ".concat(ue)),Z.set(ue,!0),re(Q,"".concat(we).concat(ue," > "))})}re(R)}function c(R){function H(Z){var re=x(Z);return re.map(function(ye){if(!I(ye))return(0,d.ZP)(!ye,"Tree/TreeNode can only accept TreeNode as children."),null;var we=ye.key,$=ye.props,Ke=$.children,Q=(0,M.Z)($,ie),ue=(0,z.Z)({key:we},Q),D=H(Ke);return D.length&&(ue.children=D),ue}).filter(function(ye){return ye})}return H(R)}function j(R,H,Z){var re=ne(Z),ye=re._title,we=re.key,$=re.children,Ke=new Set(H===!0?[]:H),Q=[];function ue(D){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return D.map(function(Be,Fe){for(var Ne=de(O?O.pos:"0",Fe),ee=Y(Be[we],Ne),Ee,Te=0;Te<ye.length;Te+=1){var xe=ye[Te];if(Be[xe]!==void 0){Ee=Be[xe];break}}var $e=(0,z.Z)((0,z.Z)({},se(Be,[].concat((0,E.Z)(ye),[we,$]))),{},{title:Ee,key:ee,parent:O,pos:Ne,children:null,data:Be,isStart:[].concat((0,E.Z)(O?O.isStart:[]),[Fe===0]),isEnd:[].concat((0,E.Z)(O?O.isEnd:[]),[Fe===D.length-1])});return Q.push($e),H===!0||Ke.has(ee)?$e.children=ue(Be[$]||[],$e):$e.children=[],$e})}return ue(R),Q}function P(R,H,Z){var re={};(0,l.Z)(Z)==="object"?re=Z:re={externalGetKey:Z},re=re||{};var ye=re,we=ye.childrenPropName,$=ye.externalGetKey,Ke=ye.fieldNames,Q=ne(Ke),ue=Q.key,D=Q.children,O=we||D,Be;$?typeof $=="string"?Be=function(ee){return ee[$]}:typeof $=="function"&&(Be=function(ee){return $(ee)}):Be=function(ee,Ee){return Y(ee[ue],Ee)};function Fe(Ne,ee,Ee,Te){var xe=Ne?Ne[O]:R,$e=Ne?de(Ee.pos,ee):"0",Tt=Ne?[].concat((0,E.Z)(Te),[Ne]):[];if(Ne){var dt=Be(Ne,$e),Mt={node:Ne,index:ee,pos:$e,key:dt,parentPos:Ee.node?Ee.pos:null,level:Ee.level+1,nodes:Tt};H(Mt)}xe&&xe.forEach(function(Dt,Nt){Fe(Dt,Nt,{node:Ne,pos:$e,level:Ee?Ee.level+1:-1},Tt)})}Fe(null)}function T(R){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=H.initWrapper,re=H.processEntity,ye=H.onProcessFinished,we=H.externalGetKey,$=H.childrenPropName,Ke=H.fieldNames,Q=arguments.length>2?arguments[2]:void 0,ue=we||Q,D={},O={},Be={posEntities:D,keyEntities:O};return Z&&(Be=Z(Be)||Be),P(R,function(Fe){var Ne=Fe.node,ee=Fe.index,Ee=Fe.pos,Te=Fe.key,xe=Fe.parentPos,$e=Fe.level,Tt=Fe.nodes,dt={node:Ne,nodes:Tt,index:ee,key:Te,pos:Ee,level:$e},Mt=Y(Te,Ee);D[Ee]=dt,O[Mt]=dt,dt.parent=D[xe],dt.parent&&(dt.parent.children=dt.parent.children||[],dt.parent.children.push(dt)),re&&re(dt,Be)},{externalGetKey:ue,childrenPropName:$,fieldNames:Ke}),ye&&ye(Be),Be}function A(R,H){var Z=H.expandedKeys,re=H.selectedKeys,ye=H.loadedKeys,we=H.loadingKeys,$=H.checkedKeys,Ke=H.halfCheckedKeys,Q=H.dragOverNodeKey,ue=H.dropPosition,D=H.keyEntities,O=(0,X.Z)(D,R),Be={eventKey:R,expanded:Z.indexOf(R)!==-1,selected:re.indexOf(R)!==-1,loaded:ye.indexOf(R)!==-1,loading:we.indexOf(R)!==-1,checked:$.indexOf(R)!==-1,halfChecked:Ke.indexOf(R)!==-1,pos:String(O?O.pos:""),dragOver:Q===R&&ue===0,dragOverGapTop:Q===R&&ue===-1,dragOverGapBottom:Q===R&&ue===1};return Be}function f(R){var H=R.data,Z=R.expanded,re=R.selected,ye=R.checked,we=R.loaded,$=R.loading,Ke=R.halfChecked,Q=R.dragOver,ue=R.dragOverGapTop,D=R.dragOverGapBottom,O=R.pos,Be=R.active,Fe=R.eventKey,Ne=(0,z.Z)((0,z.Z)({},H),{},{expanded:Z,selected:re,checked:ye,loaded:we,loading:$,halfChecked:Ke,dragOver:Q,dragOverGapTop:ue,dragOverGapBottom:D,pos:O,active:Be,key:Fe});return"props"in Ne||Object.defineProperty(Ne,"props",{get:function(){return(0,d.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),R}}),Ne}},34952:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return se}});var l=r(1413),E=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,z=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,M="".concat(E," ").concat(z).split(/[\s\n]+/),L="aria-",v="data-";function x(d,X){return d.indexOf(X)===0}function se(d){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie;X===!1?ie={aria:!0,data:!0,attr:!0}:X===!0?ie={aria:!0}:ie=(0,l.Z)({},X);var de={};return Object.keys(d).forEach(function(I){(ie.aria&&(I==="role"||x(I,L))||ie.data&&x(I,v)||ie.attr&&M.includes(I))&&(de[I]=d[I])}),de}},72978:function(St,Oe,r){"use strict";var l={};function E(se,d){}function z(se,d){}function M(){l={}}function L(se,d,X){!d&&!l[X]&&(se(!1,X),l[X]=!0)}function v(se,d){L(E,se,d)}function x(se,d){L(z,se,d)}Oe.ZP=v},81533:function(St,Oe){"use strict";var r;var l=typeof Symbol=="function"&&Symbol.for,E=l?Symbol.for("react.element"):60103,z=l?Symbol.for("react.portal"):60106,M=l?Symbol.for("react.fragment"):60107,L=l?Symbol.for("react.strict_mode"):60108,v=l?Symbol.for("react.profiler"):60114,x=l?Symbol.for("react.provider"):60109,se=l?Symbol.for("react.context"):60110,d=l?Symbol.for("react.async_mode"):60111,X=l?Symbol.for("react.concurrent_mode"):60111,ie=l?Symbol.for("react.forward_ref"):60112,de=l?Symbol.for("react.suspense"):60113,I=l?Symbol.for("react.suspense_list"):60120,Y=l?Symbol.for("react.memo"):60115,ne=l?Symbol.for("react.lazy"):60116,ae=l?Symbol.for("react.block"):60121,c=l?Symbol.for("react.fundamental"):60117,j=l?Symbol.for("react.responder"):60118,P=l?Symbol.for("react.scope"):60119;function T(f){if(typeof f=="object"&&f!==null){var R=f.$$typeof;switch(R){case E:switch(f=f.type,f){case d:case X:case M:case v:case L:case de:return f;default:switch(f=f&&f.$$typeof,f){case se:case ie:case ne:case Y:case x:return f;default:return R}}case z:return R}}}function A(f){return T(f)===X}r=d,r=X,r=se,r=x,r=E,r=ie,r=M,r=ne,r=Y,r=z,r=v,r=L,r=de,r=function(f){return A(f)||T(f)===d},r=A,r=function(f){return T(f)===se},r=function(f){return T(f)===x},r=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===E},r=function(f){return T(f)===ie},Oe.isFragment=function(f){return T(f)===M},r=function(f){return T(f)===ne},Oe.isMemo=function(f){return T(f)===Y},r=function(f){return T(f)===z},r=function(f){return T(f)===v},r=function(f){return T(f)===L},r=function(f){return T(f)===de},r=function(f){return typeof f=="string"||typeof f=="function"||f===M||f===X||f===v||f===L||f===de||f===I||typeof f=="object"&&f!==null&&(f.$$typeof===ne||f.$$typeof===Y||f.$$typeof===x||f.$$typeof===se||f.$$typeof===ie||f.$$typeof===c||f.$$typeof===j||f.$$typeof===P||f.$$typeof===ae)},r=T},28580:function(St,Oe,r){"use strict";St.exports=r(81533)},82702:function(St,Oe,r){var l=r(34155);(function(E,z){St.exports=z()})(this,function(){"use strict";function E(S){var B=typeof S;return S!==null&&(B==="object"||B==="function")}function z(S){return typeof S=="function"}var M=void 0;Array.isArray?M=Array.isArray:M=function(S){return Object.prototype.toString.call(S)==="[object Array]"};var L=M,v=0,x=void 0,se=void 0,d=function(B,K){f[v]=B,f[v+1]=K,v+=2,v===2&&(se?se(R):Z())};function X(S){se=S}function ie(S){d=S}var de=typeof window!="undefined"?window:void 0,I=de||{},Y=I.MutationObserver||I.WebKitMutationObserver,ne=typeof self=="undefined"&&typeof l!="undefined"&&{}.toString.call(l)==="[object process]",ae=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function c(){return function(){return l.nextTick(R)}}function j(){return typeof x!="undefined"?function(){x(R)}:A()}function P(){var S=0,B=new Y(R),K=document.createTextNode("");return B.observe(K,{characterData:!0}),function(){K.data=S=++S%2}}function T(){var S=new MessageChannel;return S.port1.onmessage=R,function(){return S.port2.postMessage(0)}}function A(){var S=setTimeout;return function(){return S(R,1)}}var f=new Array(1e3);function R(){for(var S=0;S<v;S+=2){var B=f[S],K=f[S+1];B(K),f[S]=void 0,f[S+1]=void 0}v=0}function H(){try{var S=Function("return this")().require("vertx");return x=S.runOnLoop||S.runOnContext,j()}catch(B){return A()}}var Z=void 0;ne?Z=c():Y?Z=P():ae?Z=T():de===void 0?Z=H():Z=A();function re(S,B){var K=this,g=new this.constructor($);g[we]===void 0&&Rt(g);var F=K._state;if(F){var G=arguments[F-1];d(function(){return Mt(F,g,G,K._result)})}else Tt(K,g,S,B);return g}function ye(S){var B=this;if(S&&typeof S=="object"&&S.constructor===B)return S;var K=new B($);return Ee(K,S),K}var we=Math.random().toString(36).substring(2);function $(){}var Ke=void 0,Q=1,ue=2;function D(){return new TypeError("You cannot resolve a promise with itself")}function O(){return new TypeError("A promises callback cannot return that same promise.")}function Be(S,B,K,g){try{S.call(B,K,g)}catch(F){return F}}function Fe(S,B,K){d(function(g){var F=!1,G=Be(K,B,function(le){F||(F=!0,B!==le?Ee(g,le):xe(g,le))},function(le){F||(F=!0,$e(g,le))},"Settle: "+(g._label||" unknown promise"));!F&&G&&(F=!0,$e(g,G))},S)}function Ne(S,B){B._state===Q?xe(S,B._result):B._state===ue?$e(S,B._result):Tt(B,void 0,function(K){return Ee(S,K)},function(K){return $e(S,K)})}function ee(S,B,K){B.constructor===S.constructor&&K===re&&B.constructor.resolve===ye?Ne(S,B):K===void 0?xe(S,B):z(K)?Fe(S,B,K):xe(S,B)}function Ee(S,B){if(S===B)$e(S,D());else if(E(B)){var K=void 0;try{K=B.then}catch(g){$e(S,g);return}ee(S,B,K)}else xe(S,B)}function Te(S){S._onerror&&S._onerror(S._result),dt(S)}function xe(S,B){S._state===Ke&&(S._result=B,S._state=Q,S._subscribers.length!==0&&d(dt,S))}function $e(S,B){S._state===Ke&&(S._state=ue,S._result=B,d(Te,S))}function Tt(S,B,K,g){var F=S._subscribers,G=F.length;S._onerror=null,F[G]=B,F[G+Q]=K,F[G+ue]=g,G===0&&S._state&&d(dt,S)}function dt(S){var B=S._subscribers,K=S._state;if(B.length!==0){for(var g=void 0,F=void 0,G=S._result,le=0;le<B.length;le+=3)g=B[le],F=B[le+K],g?Mt(K,g,F,G):F(G);S._subscribers.length=0}}function Mt(S,B,K,g){var F=z(K),G=void 0,le=void 0,Le=!0;if(F){try{G=K(g)}catch(Ze){Le=!1,le=Ze}if(B===G){$e(B,O());return}}else G=g;B._state!==Ke||(F&&Le?Ee(B,G):Le===!1?$e(B,le):S===Q?xe(B,G):S===ue&&$e(B,G))}function Dt(S,B){try{B(function(g){Ee(S,g)},function(g){$e(S,g)})}catch(K){$e(S,K)}}var Nt=0;function xt(){return Nt++}function Rt(S){S[we]=Nt++,S._state=void 0,S._result=void 0,S._subscribers=[]}function It(){return new Error("Array Methods must be provided an Array")}var Pt=function(){function S(B,K){this._instanceConstructor=B,this.promise=new B($),this.promise[we]||Rt(this.promise),L(K)?(this.length=K.length,this._remaining=K.length,this._result=new Array(this.length),this.length===0?xe(this.promise,this._result):(this.length=this.length||0,this._enumerate(K),this._remaining===0&&xe(this.promise,this._result))):$e(this.promise,It())}return S.prototype._enumerate=function(K){for(var g=0;this._state===Ke&&g<K.length;g++)this._eachEntry(K[g],g)},S.prototype._eachEntry=function(K,g){var F=this._instanceConstructor,G=F.resolve;if(G===ye){var le=void 0,Le=void 0,Ze=!1;try{le=K.then}catch(ut){Ze=!0,Le=ut}if(le===re&&K._state!==Ke)this._settledAt(K._state,g,K._result);else if(typeof le!="function")this._remaining--,this._result[g]=K;else if(F===_){var Ye=new F($);Ze?$e(Ye,Le):ee(Ye,K,le),this._willSettleAt(Ye,g)}else this._willSettleAt(new F(function(ut){return ut(K)}),g)}else this._willSettleAt(G(K),g)},S.prototype._settledAt=function(K,g,F){var G=this.promise;G._state===Ke&&(this._remaining--,K===ue?$e(G,F):this._result[g]=F),this._remaining===0&&xe(G,this._result)},S.prototype._willSettleAt=function(K,g){var F=this;Tt(K,void 0,function(G){return F._settledAt(Q,g,G)},function(G){return F._settledAt(ue,g,G)})},S}();function at(S){return new Pt(this,S).promise}function fe(S){var B=this;return L(S)?new B(function(K,g){for(var F=S.length,G=0;G<F;G++)B.resolve(S[G]).then(K,g)}):new B(function(K,g){return g(new TypeError("You must pass an array to race."))})}function J(S){var B=this,K=new B($);return $e(K,S),K}function o(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function s(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var _=function(){function S(B){this[we]=xt(),this._result=this._state=void 0,this._subscribers=[],$!==B&&(typeof B!="function"&&o(),this instanceof S?Dt(this,B):s())}return S.prototype.catch=function(K){return this.then(null,K)},S.prototype.finally=function(K){var g=this,F=g.constructor;return z(K)?g.then(function(G){return F.resolve(K()).then(function(){return G})},function(G){return F.resolve(K()).then(function(){throw G})}):g.then(K,K)},S}();_.prototype.then=re,_.all=at,_.race=fe,_.resolve=ye,_.reject=J,_._setScheduler=X,_._setAsap=ie,_._asap=d;function k(){var S=void 0;if(typeof r.g!="undefined")S=r.g;else if(typeof self!="undefined")S=self;else try{S=Function("return this")()}catch(g){throw new Error("polyfill failed because global object is unavailable in this environment")}var B=S.Promise;if(B){var K=null;try{K=Object.prototype.toString.call(B.resolve())}catch(g){}if(K==="[object Promise]"&&!B.cast)return}S.Promise=_}return _.polyfill=k,_.Promise=_,_})},17187:function(St){"use strict";var Oe=typeof Reflect=="object"?Reflect:null,r=Oe&&typeof Oe.apply=="function"?Oe.apply:function(T,A,f){return Function.prototype.apply.call(T,A,f)},l;Oe&&typeof Oe.ownKeys=="function"?l=Oe.ownKeys:Object.getOwnPropertySymbols?l=function(T){return Object.getOwnPropertyNames(T).concat(Object.getOwnPropertySymbols(T))}:l=function(T){return Object.getOwnPropertyNames(T)};function E(P){console&&console.warn&&console.warn(P)}var z=Number.isNaN||function(T){return T!==T};function M(){M.init.call(this)}St.exports=M,St.exports.once=ae,M.EventEmitter=M,M.prototype._events=void 0,M.prototype._eventsCount=0,M.prototype._maxListeners=void 0;var L=10;function v(P){if(typeof P!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof P)}Object.defineProperty(M,"defaultMaxListeners",{enumerable:!0,get:function(){return L},set:function(P){if(typeof P!="number"||P<0||z(P))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+P+".");L=P}}),M.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},M.prototype.setMaxListeners=function(T){if(typeof T!="number"||T<0||z(T))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+T+".");return this._maxListeners=T,this};function x(P){return P._maxListeners===void 0?M.defaultMaxListeners:P._maxListeners}M.prototype.getMaxListeners=function(){return x(this)},M.prototype.emit=function(T){for(var A=[],f=1;f<arguments.length;f++)A.push(arguments[f]);var R=T==="error",H=this._events;if(H!==void 0)R=R&&H.error===void 0;else if(!R)return!1;if(R){var Z;if(A.length>0&&(Z=A[0]),Z instanceof Error)throw Z;var re=new Error("Unhandled error."+(Z?" ("+Z.message+")":""));throw re.context=Z,re}var ye=H[T];if(ye===void 0)return!1;if(typeof ye=="function")r(ye,this,A);else for(var we=ye.length,$=I(ye,we),f=0;f<we;++f)r($[f],this,A);return!0};function se(P,T,A,f){var R,H,Z;if(v(A),H=P._events,H===void 0?(H=P._events=Object.create(null),P._eventsCount=0):(H.newListener!==void 0&&(P.emit("newListener",T,A.listener?A.listener:A),H=P._events),Z=H[T]),Z===void 0)Z=H[T]=A,++P._eventsCount;else if(typeof Z=="function"?Z=H[T]=f?[A,Z]:[Z,A]:f?Z.unshift(A):Z.push(A),R=x(P),R>0&&Z.length>R&&!Z.warned){Z.warned=!0;var re=new Error("Possible EventEmitter memory leak detected. "+Z.length+" "+String(T)+" listeners added. Use emitter.setMaxListeners() to increase limit");re.name="MaxListenersExceededWarning",re.emitter=P,re.type=T,re.count=Z.length,E(re)}return P}M.prototype.addListener=function(T,A){return se(this,T,A,!1)},M.prototype.on=M.prototype.addListener,M.prototype.prependListener=function(T,A){return se(this,T,A,!0)};function d(){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 X(P,T,A){var f={fired:!1,wrapFn:void 0,target:P,type:T,listener:A},R=d.bind(f);return R.listener=A,f.wrapFn=R,R}M.prototype.once=function(T,A){return v(A),this.on(T,X(this,T,A)),this},M.prototype.prependOnceListener=function(T,A){return v(A),this.prependListener(T,X(this,T,A)),this},M.prototype.removeListener=function(T,A){var f,R,H,Z,re;if(v(A),R=this._events,R===void 0)return this;if(f=R[T],f===void 0)return this;if(f===A||f.listener===A)--this._eventsCount===0?this._events=Object.create(null):(delete R[T],R.removeListener&&this.emit("removeListener",T,f.listener||A));else if(typeof f!="function"){for(H=-1,Z=f.length-1;Z>=0;Z--)if(f[Z]===A||f[Z].listener===A){re=f[Z].listener,H=Z;break}if(H<0)return this;H===0?f.shift():Y(f,H),f.length===1&&(R[T]=f[0]),R.removeListener!==void 0&&this.emit("removeListener",T,re||A)}return this},M.prototype.off=M.prototype.removeListener,M.prototype.removeAllListeners=function(T){var A,f,R;if(f=this._events,f===void 0)return this;if(f.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):f[T]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete f[T]),this;if(arguments.length===0){var H=Object.keys(f),Z;for(R=0;R<H.length;++R)Z=H[R],Z!=="removeListener"&&this.removeAllListeners(Z);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(A=f[T],typeof A=="function")this.removeListener(T,A);else if(A!==void 0)for(R=A.length-1;R>=0;R--)this.removeListener(T,A[R]);return this};function ie(P,T,A){var f=P._events;if(f===void 0)return[];var R=f[T];return R===void 0?[]:typeof R=="function"?A?[R.listener||R]:[R]:A?ne(R):I(R,R.length)}M.prototype.listeners=function(T){return ie(this,T,!0)},M.prototype.rawListeners=function(T){return ie(this,T,!1)},M.listenerCount=function(P,T){return typeof P.listenerCount=="function"?P.listenerCount(T):de.call(P,T)},M.prototype.listenerCount=de;function de(P){var T=this._events;if(T!==void 0){var A=T[P];if(typeof A=="function")return 1;if(A!==void 0)return A.length}return 0}M.prototype.eventNames=function(){return this._eventsCount>0?l(this._events):[]};function I(P,T){for(var A=new Array(T),f=0;f<T;++f)A[f]=P[f];return A}function Y(P,T){for(;T+1<P.length;T++)P[T]=P[T+1];P.pop()}function ne(P){for(var T=new Array(P.length),A=0;A<T.length;++A)T[A]=P[A].listener||P[A];return T}function ae(P,T){return new Promise(function(A,f){function R(Z){P.removeListener(T,H),f(Z)}function H(){typeof P.removeListener=="function"&&P.removeListener("error",R),A([].slice.call(arguments))}j(P,T,H,{once:!0}),T!=="error"&&c(P,R,{once:!0})})}function c(P,T,A){typeof P.on=="function"&&j(P,"error",T,A)}function j(P,T,A,f){if(typeof P.on=="function")f.once?P.once(T,A):P.on(T,A);else if(typeof P.addEventListener=="function")P.addEventListener(T,function R(H){f.once&&P.removeEventListener(T,R),A(H)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof P)}},19575:function(St,Oe,r){var l,E;(function(z,M){St.exports=M(z)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof r.g!="undefined"?r.g:this,function(z){"use strict";z=z||{};var M=z.Base64,L="2.6.4",v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",x=function(Q){for(var ue={},D=0,O=Q.length;D<O;D++)ue[Q.charAt(D)]=D;return ue}(v),se=String.fromCharCode,d=function(Q){if(Q.length<2){var ue=Q.charCodeAt(0);return ue<128?Q:ue<2048?se(192|ue>>>6)+se(128|ue&63):se(224|ue>>>12&15)+se(128|ue>>>6&63)+se(128|ue&63)}else{var ue=65536+(Q.charCodeAt(0)-55296)*1024+(Q.charCodeAt(1)-56320);return se(240|ue>>>18&7)+se(128|ue>>>12&63)+se(128|ue>>>6&63)+se(128|ue&63)}},X=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ie=function(Q){return Q.replace(X,d)},de=function(Q){var ue=[0,2,1][Q.length%3],D=Q.charCodeAt(0)<<16|(Q.length>1?Q.charCodeAt(1):0)<<8|(Q.length>2?Q.charCodeAt(2):0),O=[v.charAt(D>>>18),v.charAt(D>>>12&63),ue>=2?"=":v.charAt(D>>>6&63),ue>=1?"=":v.charAt(D&63)];return O.join("")},I=z.btoa&&typeof z.btoa=="function"?function(Q){return z.btoa(Q)}:function(Q){if(Q.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Q.replace(/[\s\S]{1,3}/g,de)},Y=function(Q){return I(ie(String(Q)))},ne=function(Q){return Q.replace(/[+\/]/g,function(ue){return ue=="+"?"-":"_"}).replace(/=/g,"")},ae=function(Q,ue){return ue?ne(Y(Q)):Y(Q)},c=function(Q){return ae(Q,!0)},j;z.Uint8Array&&(j=function(Q,ue){for(var D="",O=0,Be=Q.length;O<Be;O+=3){var Fe=Q[O],Ne=Q[O+1],ee=Q[O+2],Ee=Fe<<16|Ne<<8|ee;D+=v.charAt(Ee>>>18)+v.charAt(Ee>>>12&63)+(typeof Ne!="undefined"?v.charAt(Ee>>>6&63):"=")+(typeof ee!="undefined"?v.charAt(Ee&63):"=")}return ue?ne(D):D});var P=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,T=function(Q){switch(Q.length){case 4:var ue=(7&Q.charCodeAt(0))<<18|(63&Q.charCodeAt(1))<<12|(63&Q.charCodeAt(2))<<6|63&Q.charCodeAt(3),D=ue-65536;return se((D>>>10)+55296)+se((D&1023)+56320);case 3:return se((15&Q.charCodeAt(0))<<12|(63&Q.charCodeAt(1))<<6|63&Q.charCodeAt(2));default:return se((31&Q.charCodeAt(0))<<6|63&Q.charCodeAt(1))}},A=function(Q){return Q.replace(P,T)},f=function(Q){var ue=Q.length,D=ue%4,O=(ue>0?x[Q.charAt(0)]<<18:0)|(ue>1?x[Q.charAt(1)]<<12:0)|(ue>2?x[Q.charAt(2)]<<6:0)|(ue>3?x[Q.charAt(3)]:0),Be=[se(O>>>16),se(O>>>8&255),se(O&255)];return Be.length-=[0,0,2,1][D],Be.join("")},R=z.atob&&typeof z.atob=="function"?function(Q){return z.atob(Q)}:function(Q){return Q.replace(/\S{1,4}/g,f)},H=function(Q){return R(String(Q).replace(/[^A-Za-z0-9\+\/]/g,""))},Z=function(Q){return A(R(Q))},re=function(Q){return String(Q).replace(/[-_]/g,function(ue){return ue=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ye=function(Q){return Z(re(Q))},we;z.Uint8Array&&(we=function(Q){return Uint8Array.from(H(re(Q)),function(ue){return ue.charCodeAt(0)})});var $=function(){var Q=z.Base64;return z.Base64=M,Q};if(z.Base64={VERSION:L,atob:H,btoa:I,fromBase64:ye,toBase64:ae,utob:ie,encode:ae,encodeURI:c,btou:A,decode:ye,noConflict:$,fromUint8Array:j,toUint8Array:we},typeof Object.defineProperty=="function"){var Ke=function(Q){return{value:Q,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ke(function(){return ye(this)})),Object.defineProperty(String.prototype,"toBase64",Ke(function(Q){return ae(this,Q)})),Object.defineProperty(String.prototype,"toBase64URI",Ke(function(){return ae(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),St.exports?St.exports.Base64=z.Base64:(l=[],E=function(){return z.Base64}.apply(Oe,l),E!==void 0&&(St.exports=E)),{Base64:z.Base64}})},78595:function(St,Oe,r){"use strict";r.d(Oe,{iz:function(){return dr},ck:function(){return Ut},BW:function(){return Yn},sN:function(){return Ut},Wd:function(){return Xn},ZP:function(){return he},Xl:function(){return F}});var l=r(87462),E=r(4942),z=r(1413),M=r(74902),L=r(97685),v=r(45987),x=r(94184),se=r.n(x),d=r(67294),X=r(48555);function ie(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var de=ie()?d.useLayoutEffect:d.useEffect,I=function(b,y){var C=d.useRef(!0);de(function(){return b(C.current)},y),de(function(){return C.current=!1,function(){C.current=!0}},[])},Y=function(b,y){I(function(C){if(!C)return b()},y)},ne=I,ae=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],c=void 0;function j(h,b){var y=h.prefixCls,C=h.invalidate,p=h.item,U=h.renderItem,V=h.responsive,ge=h.responsiveDisabled,Se=h.registerSize,Re=h.itemKey,Ue=h.className,ze=h.style,be=h.children,Ge=h.display,je=h.order,We=h.component,tt=We===void 0?"div":We,ot=(0,v.Z)(h,ae),ft=V&&!Ge;function rt(Et){Se(Re,Et)}d.useEffect(function(){return function(){rt(null)}},[]);var qe=U&&p!==c?U(p):be,lt;C||(lt={opacity:ft?0:1,height:ft?0:c,overflowY:ft?"hidden":c,order:V?je:c,pointerEvents:ft?"none":c,position:ft?"absolute":c});var it={};ft&&(it["aria-hidden"]=!0);var Lt=d.createElement(tt,(0,l.Z)({className:se()(!C&&y,Ue),style:(0,z.Z)((0,z.Z)({},lt),ze)},it,ot,{ref:b}),qe);return V&&(Lt=d.createElement(X.Z,{onResize:function(jt){var Ot=jt.offsetWidth;rt(Ot)},disabled:ge},Lt)),Lt}var P=d.forwardRef(j);P.displayName="Item";var T=P;function A(h){var b=d.useRef();b.current=h;var y=d.useCallback(function(){for(var C,p=arguments.length,U=new Array(p),V=0;V<p;V++)U[V]=arguments[V];return(C=b.current)===null||C===void 0?void 0:C.call.apply(C,[b].concat(U))},[]);return y}var f=r(73935),R=function(b){return+setTimeout(b,16)},H=function(b){return clearTimeout(b)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(R=function(b){return window.requestAnimationFrame(b)},H=function(b){return window.cancelAnimationFrame(b)});var Z=0,re=new Map;function ye(h){re.delete(h)}var we=function(b){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Z+=1;var C=Z;function p(U){if(U===0)ye(C),b();else{var V=R(function(){p(U-1)});re.set(C,V)}}return p(y),C};we.cancel=function(h){var b=re.get(h);return ye(b),H(b)};var $=we;function Ke(h){if(typeof MessageChannel=="undefined")$(h);else{var b=new MessageChannel;b.port1.onmessage=function(){return h()},b.port2.postMessage(void 0)}}function Q(){var h=d.useRef(null),b=function(C){h.current||(h.current=[],Ke(function(){(0,f.unstable_batchedUpdates)(function(){h.current.forEach(function(p){p()}),h.current=null})})),h.current.push(C)};return b}function ue(h,b){var y=d.useState(b),C=(0,L.Z)(y,2),p=C[0],U=C[1],V=A(function(ge){h(function(){U(ge)})});return[p,V]}var D=d.createContext(null),O=["component"],Be=["className"],Fe=["className"],Ne=function(b,y){var C=d.useContext(D);if(!C){var p=b.component,U=p===void 0?"div":p,V=(0,v.Z)(b,O);return d.createElement(U,(0,l.Z)({},V,{ref:y}))}var ge=C.className,Se=(0,v.Z)(C,Be),Re=b.className,Ue=(0,v.Z)(b,Fe);return d.createElement(D.Provider,{value:null},d.createElement(T,(0,l.Z)({ref:y,className:se()(ge,Re)},Se,Ue)))},ee=d.forwardRef(Ne);ee.displayName="RawItem";var Ee=ee,Te=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],xe="responsive",$e="invalidate";function Tt(h){return"+ ".concat(h.length," ...")}function dt(h,b){var y=h.prefixCls,C=y===void 0?"rc-overflow":y,p=h.data,U=p===void 0?[]:p,V=h.renderItem,ge=h.renderRawItem,Se=h.itemKey,Re=h.itemWidth,Ue=Re===void 0?10:Re,ze=h.ssr,be=h.style,Ge=h.className,je=h.maxCount,We=h.renderRest,tt=h.renderRawRest,ot=h.suffix,ft=h.component,rt=ft===void 0?"div":ft,qe=h.itemComponent,lt=h.onVisibleChange,it=(0,v.Z)(h,Te),Lt=ze==="full",Et=Q(),jt=ue(Et,null),Ot=(0,L.Z)(jt,2),Vt=Ot[0],Gt=Ot[1],nt=Vt||0,st=ue(Et,new Map),wt=(0,L.Z)(st,2),zt=wt[0],tn=wt[1],bn=ue(Et,0),mn=(0,L.Z)(bn,2),wn=mn[0],Bn=mn[1],On=ue(Et,0),In=(0,L.Z)(On,2),pn=In[0],zn=In[1],fn=ue(Et,0),Ln=(0,L.Z)(fn,2),Cn=Ln[0],nr=Ln[1],Zn=(0,d.useState)(null),yn=(0,L.Z)(Zn,2),Yt=yn[0],nn=yn[1],gn=(0,d.useState)(null),Hn=(0,L.Z)(gn,2),jn=Hn[0],hn=Hn[1],Dn=d.useMemo(function(){return jn===null&&Lt?Number.MAX_SAFE_INTEGER:jn||0},[jn,Vt]),rr=(0,d.useState)(!1),Vn=(0,L.Z)(rr,2),Jn=Vn[0],qn=Vn[1],Tn="".concat(C,"-item"),lr=Math.max(wn,pn),Wn=je===xe,Gn=U.length&&Wn,Or=je===$e,_r=Gn||typeof je=="number"&&U.length>je,ir=(0,d.useMemo)(function(){var Xt=U;return Gn?Vt===null&&Lt?Xt=U:Xt=U.slice(0,Math.min(U.length,nt/Ue)):typeof je=="number"&&(Xt=U.slice(0,je)),Xt},[U,Ue,Vt,je,Gn]),yr=(0,d.useMemo)(function(){return Gn?U.slice(Dn+1):U.slice(ir.length)},[U,ir,Gn,Dn]),hr=(0,d.useCallback)(function(Xt,qt){var An;return typeof Se=="function"?Se(Xt):(An=Se&&(Xt==null?void 0:Xt[Se]))!==null&&An!==void 0?An:qt},[Se]),Sr=(0,d.useCallback)(V||function(Xt){return Xt},[V]);function Kn(Xt,qt,An){jn===Xt&&(qt===void 0||qt===Yt)||(hn(Xt),An||(qn(Xt<U.length-1),lt==null||lt(Xt)),qt!==void 0&&nn(qt))}function br(Xt,qt){Gt(qt.clientWidth)}function mr(Xt,qt){tn(function(An){var cr=new Map(An);return qt===null?cr.delete(Xt):cr.set(Xt,qt),cr})}function ur(Xt,qt){zn(qt),Bn(pn)}function er(Xt,qt){nr(qt)}function Dr(Xt){return zt.get(hr(ir[Xt],Xt))}ne(function(){if(nt&&typeof lr=="number"&&ir){var Xt=Cn,qt=ir.length,An=qt-1;if(!qt){Kn(0,null);return}for(var cr=0;cr<qt;cr+=1){var Rr=Dr(cr);if(Lt&&(Rr=Rr||0),Rr===void 0){Kn(cr-1,void 0,!0);break}if(Xt+=Rr,An===0&&Xt<=nt||cr===An-1&&Xt+Dr(An)<=nt){Kn(An,null);break}else if(Xt+lr>nt){Kn(cr-1,Xt-Rr-Cn+pn);break}}ot&&Dr(0)+Cn>nt&&nn(null)}},[nt,zt,pn,Cn,hr,ir]);var kr=Jn&&!!yr.length,Lr={};Yt!==null&&Gn&&(Lr={position:"absolute",left:Yt,top:0});var Ir={prefixCls:Tn,responsive:Gn,component:qe,invalidate:Or},Br=ge?function(Xt,qt){var An=hr(Xt,qt);return d.createElement(D.Provider,{key:An,value:(0,z.Z)((0,z.Z)({},Ir),{},{order:qt,item:Xt,itemKey:An,registerSize:mr,display:qt<=Dn})},ge(Xt,qt))}:function(Xt,qt){var An=hr(Xt,qt);return d.createElement(T,(0,l.Z)({},Ir,{order:qt,key:An,item:Xt,renderItem:Sr,itemKey:An,registerSize:mr,display:qt<=Dn}))},Cr,Tr={order:kr?Dn:Number.MAX_SAFE_INTEGER,className:"".concat(Tn,"-rest"),registerSize:ur,display:kr};if(tt)tt&&(Cr=d.createElement(D.Provider,{value:(0,z.Z)((0,z.Z)({},Ir),Tr)},tt(yr)));else{var Nr=We||Tt;Cr=d.createElement(T,(0,l.Z)({},Ir,Tr),typeof Nr=="function"?Nr(yr):Nr)}var Mr=d.createElement(rt,(0,l.Z)({className:se()(!Or&&C,Ge),style:be,ref:b},it),ir.map(Br),_r?Cr:null,ot&&d.createElement(T,(0,l.Z)({},Ir,{responsive:Wn,responsiveDisabled:!Gn,order:Dn,className:"".concat(Tn,"-suffix"),registerSize:er,display:!0,style:Lr}),ot));return Wn&&(Mr=d.createElement(X.Z,{onResize:br,disabled:!Gn},Mr)),Mr}var Mt=d.forwardRef(dt);Mt.displayName="Overflow",Mt.Item=Ee,Mt.RESPONSIVE=xe,Mt.INVALIDATE=$e;var Dt=Mt,Nt=Dt,xt=r(21770),Rt=r(80334),It=r(91881),Pt=d.createContext(null);function at(h,b){return h===void 0?null:"".concat(h,"-").concat(b)}function fe(h){var b=d.useContext(Pt);return at(b,h)}var J=r(56982),o=["children","locked"],s=d.createContext(null);function _(h,b){var y=(0,z.Z)({},h);return Object.keys(b).forEach(function(C){var p=b[C];p!==void 0&&(y[C]=p)}),y}function k(h){var b=h.children,y=h.locked,C=(0,v.Z)(h,o),p=d.useContext(s),U=(0,J.Z)(function(){return _(p,C)},[p,C],function(V,ge){return!y&&(V[0]!==ge[0]||!(0,It.Z)(V[1],ge[1],!0))});return d.createElement(s.Provider,{value:U},b)}var S=[],B=d.createContext(null);function K(){return d.useContext(B)}var g=d.createContext(S);function F(h){var b=d.useContext(g);return d.useMemo(function(){return h!==void 0?[].concat((0,M.Z)(b),[h]):b},[b,h])}var G=d.createContext(null),le=d.createContext({}),Le=le,Ze=r(15105),Ye=r(75164),ut=function(h){if(!h)return!1;if(h instanceof Element){if(h.offsetParent)return!0;if(h.getBBox){var b=h.getBBox(),y=b.width,C=b.height;if(y||C)return!0}if(h.getBoundingClientRect){var p=h.getBoundingClientRect(),U=p.width,V=p.height;if(U||V)return!0}}return!1};function ht(h){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ut(h)){var y=h.nodeName.toLowerCase(),C=["input","select","textarea","button"].includes(y)||h.isContentEditable||y==="a"&&!!h.getAttribute("href"),p=h.getAttribute("tabindex"),U=Number(p),V=null;return p&&!Number.isNaN(U)?V=U:C&&V===null&&(V=0),C&&h.disabled&&(V=null),V!==null&&(V>=0||b&&V<0)}return!1}function et(h){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=(0,M.Z)(h.querySelectorAll("*")).filter(function(C){return ht(C,b)});return ht(h,b)&&y.unshift(h),y}var bt=null;function Ce(){bt=document.activeElement}function Kt(){bt=null}function Ft(){if(bt)try{bt.focus()}catch(h){}}function At(h,b){if(b.keyCode===9){var y=et(h),C=y[b.shiftKey?0:y.length-1],p=C===document.activeElement||h===document.activeElement;if(p){var U=y[b.shiftKey?y.length-1:0];U.focus(),b.preventDefault()}}}var Bt=Ze.Z.LEFT,Wt=Ze.Z.RIGHT,kt=Ze.Z.UP,Zt=Ze.Z.DOWN,$t=Ze.Z.ENTER,Ht=Ze.Z.ESC,mt=Ze.Z.HOME,en=Ze.Z.END,yt=[kt,Zt,Bt,Wt];function N(h,b,y,C){var p,U,V,ge,Se="prev",Re="next",Ue="children",ze="parent";if(h==="inline"&&C===$t)return{inlineTrigger:!0};var be=(p={},(0,E.Z)(p,kt,Se),(0,E.Z)(p,Zt,Re),p),Ge=(U={},(0,E.Z)(U,Bt,y?Re:Se),(0,E.Z)(U,Wt,y?Se:Re),(0,E.Z)(U,Zt,Ue),(0,E.Z)(U,$t,Ue),U),je=(V={},(0,E.Z)(V,kt,Se),(0,E.Z)(V,Zt,Re),(0,E.Z)(V,$t,Ue),(0,E.Z)(V,Ht,ze),(0,E.Z)(V,Bt,y?Ue:ze),(0,E.Z)(V,Wt,y?ze:Ue),V),We={inline:be,horizontal:Ge,vertical:je,inlineSub:be,horizontalSub:je,verticalSub:je},tt=(ge=We["".concat(h).concat(b?"":"Sub")])===null||ge===void 0?void 0:ge[C];switch(tt){case Se:return{offset:-1,sibling:!0};case Re:return{offset:1,sibling:!0};case ze:return{offset:-1,sibling:!1};case Ue:return{offset:1,sibling:!1};default:return null}}function ce(h){for(var b=h;b;){if(b.getAttribute("data-menu-list"))return b;b=b.parentElement}return null}function me(h,b){for(var y=h||document.activeElement;y;){if(b.has(y))return y;y=y.parentElement}return null}function _e(h,b){var y=et(h,!0);return y.filter(function(C){return b.has(C)})}function He(h,b,y){var C=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!h)return null;var p=_e(h,b),U=p.length,V=p.findIndex(function(ge){return y===ge});return C<0?V===-1?V=U-1:V-=1:C>0&&(V+=1),V=(V+U)%U,p[V]}function Me(h,b,y,C,p,U,V,ge,Se,Re){var Ue=d.useRef(),ze=d.useRef();ze.current=b;var be=function(){Ye.Z.cancel(Ue.current)};return d.useEffect(function(){return function(){be()}},[]),function(Ge){var je=Ge.which;if([].concat(yt,[$t,Ht,mt,en]).includes(je)){var We,tt,ot,ft=function(){We=new Set,tt=new Map,ot=new Map;var wt=U();return wt.forEach(function(zt){var tn=document.querySelector("[data-menu-id='".concat(at(C,zt),"']"));tn&&(We.add(tn),ot.set(tn,zt),tt.set(zt,tn))}),We};ft();var rt=tt.get(b),qe=me(rt,We),lt=ot.get(qe),it=N(h,V(lt,!0).length===1,y,je);if(!it&&je!==mt&&je!==en)return;(yt.includes(je)||[mt,en].includes(je))&&Ge.preventDefault();var Lt=function(wt){if(wt){var zt=wt,tn=wt.querySelector("a");tn!=null&&tn.getAttribute("href")&&(zt=tn);var bn=ot.get(wt);ge(bn),be(),Ue.current=(0,Ye.Z)(function(){ze.current===bn&&zt.focus()})}};if([mt,en].includes(je)||it.sibling||!qe){var Et;!qe||h==="inline"?Et=p.current:Et=ce(qe);var jt,Ot=_e(Et,We);je===mt?jt=Ot[0]:je===en?jt=Ot[Ot.length-1]:jt=He(Et,We,qe,it.offset),Lt(jt)}else if(it.inlineTrigger)Se(lt);else if(it.offset>0)Se(lt,!0),be(),Ue.current=(0,Ye.Z)(function(){ft();var st=qe.getAttribute("aria-controls"),wt=document.getElementById(st),zt=He(wt,We);Lt(zt)},5);else if(it.offset<0){var Vt=V(lt,!0),Gt=Vt[Vt.length-2],nt=tt.get(Gt);Se(Gt,!1),Lt(nt)}}Re==null||Re(Ge)}}function Pe(h){Promise.resolve().then(h)}var Ae="__RC_UTIL_PATH_SPLIT__",Ie=function(b){return b.join(Ae)},q=function(b){return b.split(Ae)},e="rc-menu-more";function t(){var h=d.useState({}),b=(0,L.Z)(h,2),y=b[1],C=(0,d.useRef)(new Map),p=(0,d.useRef)(new Map),U=d.useState([]),V=(0,L.Z)(U,2),ge=V[0],Se=V[1],Re=(0,d.useRef)(0),Ue=(0,d.useRef)(!1),ze=function(){Ue.current||y({})},be=(0,d.useCallback)(function(rt,qe){var lt=Ie(qe);p.current.set(lt,rt),C.current.set(rt,lt),Re.current+=1;var it=Re.current;Pe(function(){it===Re.current&&ze()})},[]),Ge=(0,d.useCallback)(function(rt,qe){var lt=Ie(qe);p.current.delete(lt),C.current.delete(rt)},[]),je=(0,d.useCallback)(function(rt){Se(rt)},[]),We=(0,d.useCallback)(function(rt,qe){var lt=C.current.get(rt)||"",it=q(lt);return qe&&ge.includes(it[0])&&it.unshift(e),it},[ge]),tt=(0,d.useCallback)(function(rt,qe){return rt.some(function(lt){var it=We(lt,!0);return it.includes(qe)})},[We]),ot=function(){var qe=(0,M.Z)(C.current.keys());return ge.length&&qe.push(e),qe},ft=(0,d.useCallback)(function(rt){var qe="".concat(C.current.get(rt)).concat(Ae),lt=new Set;return(0,M.Z)(p.current.keys()).forEach(function(it){it.startsWith(qe)&<.add(p.current.get(it))}),lt},[]);return d.useEffect(function(){return function(){Ue.current=!0}},[]),{registerPath:be,unregisterPath:Ge,refreshOverflowKeys:je,isSubPathKey:tt,getKeyPath:We,getKeys:ot,getSubPathKeys:ft}}function n(h){var b=d.useRef(h);b.current=h;var y=d.useCallback(function(){for(var C,p=arguments.length,U=new Array(p),V=0;V<p;V++)U[V]=arguments[V];return(C=b.current)===null||C===void 0?void 0:C.call.apply(C,[b].concat(U))},[]);return h?y:void 0}var i=Math.random().toFixed(5).toString().slice(2),a=0;function m(h){var b=(0,xt.Z)(h,{value:h}),y=(0,L.Z)(b,2),C=y[0],p=y[1];return d.useEffect(function(){a+=1;var U="".concat(i,"-").concat(a);p("rc-menu-uuid-".concat(U))},[]),C}var w=r(15671),pe=r(43144),oe=r(60136),ke=r(51630),Qe=r(98423),gt=r(42550);function Xe(h,b,y,C){var p=d.useContext(s),U=p.activeKey,V=p.onActive,ge=p.onInactive,Se={active:U===h};return b||(Se.onMouseEnter=function(Re){y==null||y({key:h,domEvent:Re}),V(h)},Se.onMouseLeave=function(Re){C==null||C({key:h,domEvent:Re}),ge(h)}),Se}function pt(h){var b=d.useContext(s),y=b.mode,C=b.rtl,p=b.inlineIndent;if(y!=="inline")return null;var U=h;return C?{paddingRight:U*p}:{paddingLeft:U*p}}function ct(h){var b=h.icon,y=h.props,C=h.children,p;return b===null||b===!1?null:(typeof b=="function"?p=d.createElement(b,(0,z.Z)({},y)):typeof b!="boolean"&&(p=b),p||C||null)}var De=["item"];function Ve(h){var b=h.item,y=(0,v.Z)(h,De);return Object.defineProperty(y,"item",{get:function(){return(0,Rt.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),b}}),y}var vt=["title","attribute","elementRef"],Ct=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Je=["active"],sn=function(h){(0,oe.Z)(y,h);var b=(0,ke.Z)(y);function y(){return(0,w.Z)(this,y),b.apply(this,arguments)}return(0,pe.Z)(y,[{key:"render",value:function(){var p=this.props,U=p.title,V=p.attribute,ge=p.elementRef,Se=(0,v.Z)(p,vt),Re=(0,Qe.Z)(Se,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,Rt.ZP)(!V,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),d.createElement(Nt.Item,(0,l.Z)({},V,{title:typeof U=="string"?U:void 0},Re,{ref:ge}))}}]),y}(d.Component),Qt=d.forwardRef(function(h,b){var y,C=h.style,p=h.className,U=h.eventKey,V=h.warnKey,ge=h.disabled,Se=h.itemIcon,Re=h.children,Ue=h.role,ze=h.onMouseEnter,be=h.onMouseLeave,Ge=h.onClick,je=h.onKeyDown,We=h.onFocus,tt=(0,v.Z)(h,Ct),ot=fe(U),ft=d.useContext(s),rt=ft.prefixCls,qe=ft.onItemClick,lt=ft.disabled,it=ft.overflowDisabled,Lt=ft.itemIcon,Et=ft.selectedKeys,jt=ft.onActive,Ot=d.useContext(Le),Vt=Ot._internalRenderMenuItem,Gt="".concat(rt,"-item"),nt=d.useRef(),st=d.useRef(),wt=lt||ge,zt=(0,gt.x1)(b,st),tn=F(U),bn=function(yn){return{key:U,keyPath:(0,M.Z)(tn).reverse(),item:nt.current,domEvent:yn}},mn=Se||Lt,wn=Xe(U,wt,ze,be),Bn=wn.active,On=(0,v.Z)(wn,Je),In=Et.includes(U),pn=pt(tn.length),zn=function(yn){if(!wt){var Yt=bn(yn);Ge==null||Ge(Ve(Yt)),qe(Yt)}},fn=function(yn){if(je==null||je(yn),yn.which===Ze.Z.ENTER){var Yt=bn(yn);Ge==null||Ge(Ve(Yt)),qe(Yt)}},Ln=function(yn){jt(U),We==null||We(yn)},Cn={};h.role==="option"&&(Cn["aria-selected"]=In);var nr=d.createElement(sn,(0,l.Z)({ref:nt,elementRef:zt,role:Ue===null?"none":Ue||"menuitem",tabIndex:ge?null:-1,"data-menu-id":it&&ot?null:ot},tt,On,Cn,{component:"li","aria-disabled":ge,style:(0,z.Z)((0,z.Z)({},pn),C),className:se()(Gt,(y={},(0,E.Z)(y,"".concat(Gt,"-active"),Bn),(0,E.Z)(y,"".concat(Gt,"-selected"),In),(0,E.Z)(y,"".concat(Gt,"-disabled"),wt),y),p),onClick:zn,onKeyDown:fn,onFocus:Ln}),Re,d.createElement(ct,{props:(0,z.Z)((0,z.Z)({},h),{},{isSelected:In}),icon:mn}));return Vt&&(nr=Vt(nr,h,{selected:In})),nr});function _t(h,b){var y=h.eventKey,C=K(),p=F(y);return d.useEffect(function(){if(C)return C.registerPath(y,p),function(){C.unregisterPath(y,p)}},[p]),C?null:d.createElement(Qt,(0,l.Z)({},h,{ref:b}))}var Ut=d.forwardRef(_t),Jt=["className","children"],rn=function(b,y){var C=b.className,p=b.children,U=(0,v.Z)(b,Jt),V=d.useContext(s),ge=V.prefixCls,Se=V.mode,Re=V.rtl;return d.createElement("ul",(0,l.Z)({className:se()(ge,Re&&"".concat(ge,"-rtl"),"".concat(ge,"-sub"),"".concat(ge,"-").concat(Se==="inline"?"inline":"vertical"),C),role:"menu"},U,{"data-menu-list":!0,ref:y}),p)},an=d.forwardRef(rn);an.displayName="SubMenuList";var _n=an,Mn=r(50344);function un(h,b){return(0,Mn.Z)(h).map(function(y,C){if(d.isValidElement(y)){var p,U,V=y.key,ge=(p=(U=y.props)===null||U===void 0?void 0:U.eventKey)!==null&&p!==void 0?p:V,Se=ge==null;Se&&(ge="tmp_key-".concat([].concat((0,M.Z)(b),[C]).join("-")));var Re={key:ge,eventKey:ge};return d.cloneElement(y,Re)}return y})}var Fn=r(62709),on={adjustX:1,adjustY:1},Un={topLeft:{points:["bl","tl"],overflow:on},topRight:{points:["br","tr"],overflow:on},bottomLeft:{points:["tl","bl"],overflow:on},bottomRight:{points:["tr","br"],overflow:on},leftTop:{points:["tr","tl"],overflow:on},leftBottom:{points:["br","bl"],overflow:on},rightTop:{points:["tl","tr"],overflow:on},rightBottom:{points:["bl","br"],overflow:on}},Pn={topLeft:{points:["bl","tl"],overflow:on},topRight:{points:["br","tr"],overflow:on},bottomLeft:{points:["tl","bl"],overflow:on},bottomRight:{points:["tr","br"],overflow:on},rightTop:{points:["tr","tl"],overflow:on},rightBottom:{points:["br","bl"],overflow:on},leftTop:{points:["tl","tr"],overflow:on},leftBottom:{points:["bl","br"],overflow:on}},vn=null;function ln(h,b,y){if(b)return b;if(y)return y[h]||y.other}var dn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Nn(h){var b=h.prefixCls,y=h.visible,C=h.children,p=h.popup,U=h.popupStyle,V=h.popupClassName,ge=h.popupOffset,Se=h.disabled,Re=h.mode,Ue=h.onVisibleChange,ze=d.useContext(s),be=ze.getPopupContainer,Ge=ze.rtl,je=ze.subMenuOpenDelay,We=ze.subMenuCloseDelay,tt=ze.builtinPlacements,ot=ze.triggerSubMenuAction,ft=ze.forceSubMenuRender,rt=ze.rootClassName,qe=ze.motion,lt=ze.defaultMotions,it=d.useState(!1),Lt=(0,L.Z)(it,2),Et=Lt[0],jt=Lt[1],Ot=Ge?(0,z.Z)((0,z.Z)({},Pn),tt):(0,z.Z)((0,z.Z)({},Un),tt),Vt=dn[Re],Gt=ln(Re,qe,lt),nt=d.useRef(Gt);Re!=="inline"&&(nt.current=Gt);var st=(0,z.Z)((0,z.Z)({},nt.current),{},{leavedClassName:"".concat(b,"-hidden"),removeOnLeave:!1,motionAppear:!0}),wt=d.useRef();return d.useEffect(function(){return wt.current=(0,Ye.Z)(function(){jt(y)}),function(){Ye.Z.cancel(wt.current)}},[y]),d.createElement(Fn.Z,{prefixCls:b,popupClassName:se()("".concat(b,"-popup"),(0,E.Z)({},"".concat(b,"-rtl"),Ge),V,rt),stretch:Re==="horizontal"?"minWidth":null,getPopupContainer:be,builtinPlacements:Ot,popupPlacement:Vt,popupVisible:Et,popup:p,popupStyle:U,popupAlign:ge&&{offset:ge},action:Se?[]:[ot],mouseEnterDelay:je,mouseLeaveDelay:We,onPopupVisibleChange:Ue,forceRender:ft,popupMotion:st,fresh:!0},C)}var Sn=r(62874);function xn(h){var b=h.id,y=h.open,C=h.keyPath,p=h.children,U="inline",V=d.useContext(s),ge=V.prefixCls,Se=V.forceSubMenuRender,Re=V.motion,Ue=V.defaultMotions,ze=V.mode,be=d.useRef(!1);be.current=ze===U;var Ge=d.useState(!be.current),je=(0,L.Z)(Ge,2),We=je[0],tt=je[1],ot=be.current?y:!1;d.useEffect(function(){be.current&&tt(!1)},[ze]);var ft=(0,z.Z)({},ln(U,Re,Ue));C.length>1&&(ft.motionAppear=!1);var rt=ft.onVisibleChanged;return ft.onVisibleChanged=function(qe){return!be.current&&!qe&&tt(!0),rt==null?void 0:rt(qe)},We?null:d.createElement(k,{mode:U,locked:!be.current},d.createElement(Sn.Z,(0,l.Z)({visible:ot},ft,{forceRender:Se,removeOnLeave:!1,leavedClassName:"".concat(ge,"-hidden")}),function(qe){var lt=qe.className,it=qe.style;return d.createElement(_n,{id:b,className:lt,style:it},p)}))}var or=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],vr=["active"],$n=function(b){var y,C=b.style,p=b.className,U=b.title,V=b.eventKey,ge=b.warnKey,Se=b.disabled,Re=b.internalPopupClose,Ue=b.children,ze=b.itemIcon,be=b.expandIcon,Ge=b.popupClassName,je=b.popupOffset,We=b.popupStyle,tt=b.onClick,ot=b.onMouseEnter,ft=b.onMouseLeave,rt=b.onTitleClick,qe=b.onTitleMouseEnter,lt=b.onTitleMouseLeave,it=(0,v.Z)(b,or),Lt=fe(V),Et=d.useContext(s),jt=Et.prefixCls,Ot=Et.mode,Vt=Et.openKeys,Gt=Et.disabled,nt=Et.overflowDisabled,st=Et.activeKey,wt=Et.selectedKeys,zt=Et.itemIcon,tn=Et.expandIcon,bn=Et.onItemClick,mn=Et.onOpenChange,wn=Et.onActive,Bn=d.useContext(Le),On=Bn._internalRenderSubMenuItem,In=d.useContext(G),pn=In.isSubPathKey,zn=F(),fn="".concat(jt,"-submenu"),Ln=Gt||Se,Cn=d.useRef(),nr=d.useRef(),Zn=ze!=null?ze:zt,yn=be!=null?be:tn,Yt=Vt.includes(V),nn=!nt&&Yt,gn=pn(wt,V),Hn=Xe(V,Ln,qe,lt),jn=Hn.active,hn=(0,v.Z)(Hn,vr),Dn=d.useState(!1),rr=(0,L.Z)(Dn,2),Vn=rr[0],Jn=rr[1],qn=function(er){Ln||Jn(er)},Tn=function(er){qn(!0),ot==null||ot({key:V,domEvent:er})},lr=function(er){qn(!1),ft==null||ft({key:V,domEvent:er})},Wn=d.useMemo(function(){return jn||(Ot!=="inline"?Vn||pn([st],V):!1)},[Ot,jn,st,Vn,V,pn]),Gn=pt(zn.length),Or=function(er){Ln||(rt==null||rt({key:V,domEvent:er}),Ot==="inline"&&mn(V,!Yt))},_r=n(function(ur){tt==null||tt(Ve(ur)),bn(ur)}),ir=function(er){Ot!=="inline"&&mn(V,er)},yr=function(){wn(V)},hr=Lt&&"".concat(Lt,"-popup"),Sr=d.createElement("div",(0,l.Z)({role:"menuitem",style:Gn,className:"".concat(fn,"-title"),tabIndex:Ln?null:-1,ref:Cn,title:typeof U=="string"?U:null,"data-menu-id":nt&&Lt?null:Lt,"aria-expanded":nn,"aria-haspopup":!0,"aria-controls":hr,"aria-disabled":Ln,onClick:Or,onFocus:yr},hn),U,d.createElement(ct,{icon:Ot!=="horizontal"?yn:void 0,props:(0,z.Z)((0,z.Z)({},b),{},{isOpen:nn,isSubMenu:!0})},d.createElement("i",{className:"".concat(fn,"-arrow")}))),Kn=d.useRef(Ot);if(Ot!=="inline"&&zn.length>1?Kn.current="vertical":Kn.current=Ot,!nt){var br=Kn.current;Sr=d.createElement(Nn,{mode:br,prefixCls:fn,visible:!Re&&nn&&Ot!=="inline",popupClassName:Ge,popupOffset:je,popupStyle:We,popup:d.createElement(k,{mode:br==="horizontal"?"vertical":br},d.createElement(_n,{id:hr,ref:nr},Ue)),disabled:Ln,onVisibleChange:ir},Sr)}var mr=d.createElement(Nt.Item,(0,l.Z)({role:"none"},it,{component:"li",style:C,className:se()(fn,"".concat(fn,"-").concat(Ot),p,(y={},(0,E.Z)(y,"".concat(fn,"-open"),nn),(0,E.Z)(y,"".concat(fn,"-active"),Wn),(0,E.Z)(y,"".concat(fn,"-selected"),gn),(0,E.Z)(y,"".concat(fn,"-disabled"),Ln),y)),onMouseEnter:Tn,onMouseLeave:lr}),Sr,!nt&&d.createElement(xn,{id:hr,open:nn,keyPath:zn},Ue));return On&&(mr=On(mr,b,{selected:gn,active:Wn,open:nn,disabled:Ln})),d.createElement(k,{onItemClick:_r,mode:Ot==="horizontal"?"vertical":Ot,itemIcon:Zn,expandIcon:yn},mr)};function Xn(h){var b=h.eventKey,y=h.children,C=F(b),p=un(y,C),U=K();d.useEffect(function(){if(U)return U.registerPath(b,C),function(){U.unregisterPath(b,C)}},[C]);var V;return U?V=p:V=d.createElement($n,h,p),d.createElement(g.Provider,{value:C},V)}var xr=r(71002),sr=["className","title","eventKey","children"],Er=["children"],pr=function(b){var y=b.className,C=b.title,p=b.eventKey,U=b.children,V=(0,v.Z)(b,sr),ge=d.useContext(s),Se=ge.prefixCls,Re="".concat(Se,"-item-group");return d.createElement("li",(0,l.Z)({role:"presentation"},V,{onClick:function(ze){return ze.stopPropagation()},className:se()(Re,y)}),d.createElement("div",{role:"presentation",className:"".concat(Re,"-title"),title:typeof C=="string"?C:void 0},C),d.createElement("ul",{role:"group",className:"".concat(Re,"-list")},U))};function Yn(h){var b=h.children,y=(0,v.Z)(h,Er),C=F(y.eventKey),p=un(b,C),U=K();return U?p:d.createElement(pr,(0,Qe.Z)(y,["warnKey"]),p)}function dr(h){var b=h.className,y=h.style,C=d.useContext(s),p=C.prefixCls,U=K();return U?null:d.createElement("li",{role:"separator",className:se()("".concat(p,"-item-divider"),b),style:y})}var fr=["label","children","key","type"];function Qn(h){return(h||[]).map(function(b,y){if(b&&(0,xr.Z)(b)==="object"){var C=b,p=C.label,U=C.children,V=C.key,ge=C.type,Se=(0,v.Z)(C,fr),Re=V!=null?V:"tmp-".concat(y);return U||ge==="group"?ge==="group"?d.createElement(Yn,(0,l.Z)({key:Re},Se,{title:p}),Qn(U)):d.createElement(Xn,(0,l.Z)({key:Re},Se,{title:p}),Qn(U)):ge==="divider"?d.createElement(dr,(0,l.Z)({key:Re},Se)):d.createElement(Ut,(0,l.Z)({key:Re},Se),p)}return null}).filter(function(b){return b})}function kn(h,b,y){var C=h;return b&&(C=Qn(b)),un(C,y)}var gr=["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"],W=[],te=d.forwardRef(function(h,b){var y,C,p=h,U=p.prefixCls,V=U===void 0?"rc-menu":U,ge=p.rootClassName,Se=p.style,Re=p.className,Ue=p.tabIndex,ze=Ue===void 0?0:Ue,be=p.items,Ge=p.children,je=p.direction,We=p.id,tt=p.mode,ot=tt===void 0?"vertical":tt,ft=p.inlineCollapsed,rt=p.disabled,qe=p.disabledOverflow,lt=p.subMenuOpenDelay,it=lt===void 0?.1:lt,Lt=p.subMenuCloseDelay,Et=Lt===void 0?.1:Lt,jt=p.forceSubMenuRender,Ot=p.defaultOpenKeys,Vt=p.openKeys,Gt=p.activeKey,nt=p.defaultActiveFirst,st=p.selectable,wt=st===void 0?!0:st,zt=p.multiple,tn=zt===void 0?!1:zt,bn=p.defaultSelectedKeys,mn=p.selectedKeys,wn=p.onSelect,Bn=p.onDeselect,On=p.inlineIndent,In=On===void 0?24:On,pn=p.motion,zn=p.defaultMotions,fn=p.triggerSubMenuAction,Ln=fn===void 0?"hover":fn,Cn=p.builtinPlacements,nr=p.itemIcon,Zn=p.expandIcon,yn=p.overflowedIndicator,Yt=yn===void 0?"...":yn,nn=p.overflowedIndicatorPopupClassName,gn=p.getPopupContainer,Hn=p.onClick,jn=p.onOpenChange,hn=p.onKeyDown,Dn=p.openAnimation,rr=p.openTransitionName,Vn=p._internalRenderMenuItem,Jn=p._internalRenderSubMenuItem,qn=(0,v.Z)(p,gr),Tn=d.useMemo(function(){return kn(Ge,be,W)},[Ge,be]),lr=d.useState(!1),Wn=(0,L.Z)(lr,2),Gn=Wn[0],Or=Wn[1],_r=d.useRef(),ir=m(We),yr=je==="rtl",hr=(0,xt.Z)(Ot,{value:Vt,postState:function(cn){return cn||W}}),Sr=(0,L.Z)(hr,2),Kn=Sr[0],br=Sr[1],mr=function(cn){var En=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function tr(){br(cn),jn==null||jn(cn)}En?(0,f.flushSync)(tr):tr()},ur=d.useState(Kn),er=(0,L.Z)(ur,2),Dr=er[0],kr=er[1],Lr=d.useRef(!1),Ir=d.useMemo(function(){return(ot==="inline"||ot==="vertical")&&ft?["vertical",ft]:[ot,!1]},[ot,ft]),Br=(0,L.Z)(Ir,2),Cr=Br[0],Tr=Br[1],Nr=Cr==="inline",Mr=d.useState(Cr),Xt=(0,L.Z)(Mr,2),qt=Xt[0],An=Xt[1],cr=d.useState(Tr),Rr=(0,L.Z)(cr,2),Yr=Rr[0],Qr=Rr[1];d.useEffect(function(){An(Cr),Qr(Tr),Lr.current&&(Nr?br(Dr):mr(W))},[Cr,Tr]);var Jr=d.useState(0),Hr=(0,L.Z)(Jr,2),Kr=Hr[0],qr=Hr[1],Ur=Kr>=Tn.length-1||qt!=="horizontal"||qe;d.useEffect(function(){Nr&&kr(Kn)},[Kn]),d.useEffect(function(){return Lr.current=!0,function(){Lr.current=!1}},[]);var wr=t(),zr=wr.registerPath,jr=wr.unregisterPath,ei=wr.refreshOverflowKeys,Vr=wr.isSubPathKey,ti=wr.getKeyPath,ni=wr.getKeys,ri=wr.getSubPathKeys,ii=d.useMemo(function(){return{registerPath:zr,unregisterPath:jr}},[zr,jr]),ai=d.useMemo(function(){return{isSubPathKey:Vr}},[Vr]);d.useEffect(function(){ei(Ur?W:Tn.slice(Kr+1).map(function(Rn){return Rn.key}))},[Kr,Ur]);var oi=(0,xt.Z)(Gt||nt&&((y=Tn[0])===null||y===void 0?void 0:y.key),{value:Gt}),Wr=(0,L.Z)(oi,2),Pr=Wr[0],Zr=Wr[1],si=n(function(Rn){Zr(Rn)}),li=n(function(){Zr(void 0)});(0,d.useImperativeHandle)(b,function(){return{list:_r.current,focus:function(cn){var En,tr=Pr!=null?Pr:(En=Tn.find(function(yi){return!yi.props.disabled}))===null||En===void 0?void 0:En.key;if(tr){var ar,Ar,$r;(ar=_r.current)===null||ar===void 0||(Ar=ar.querySelector("li[data-menu-id='".concat(at(ir,tr),"']")))===null||Ar===void 0||($r=Ar.focus)===null||$r===void 0||$r.call(Ar,cn)}}}});var ui=(0,xt.Z)(bn||[],{value:mn,postState:function(cn){return Array.isArray(cn)?cn:cn==null?W:[cn]}}),Gr=(0,L.Z)(ui,2),Fr=Gr[0],ci=Gr[1],di=function(cn){if(wt){var En=cn.key,tr=Fr.includes(En),ar;tn?tr?ar=Fr.filter(function($r){return $r!==En}):ar=[].concat((0,M.Z)(Fr),[En]):ar=[En],ci(ar);var Ar=(0,z.Z)((0,z.Z)({},cn),{},{selectedKeys:ar});tr?Bn==null||Bn(Ar):wn==null||wn(Ar)}!tn&&Kn.length&&qt!=="inline"&&mr(W)},fi=n(function(Rn){Hn==null||Hn(Ve(Rn)),di(Rn)}),Xr=n(function(Rn,cn){var En=Kn.filter(function(ar){return ar!==Rn});if(cn)En.push(Rn);else if(qt!=="inline"){var tr=ri(Rn);En=En.filter(function(ar){return!tr.has(ar)})}(0,It.Z)(Kn,En,!0)||mr(En,!0)}),hi=function(cn,En){var tr=En!=null?En:!Kn.includes(cn);Xr(cn,tr)},mi=Me(qt,Pr,yr,ir,_r,ni,ti,Zr,hi,hn);d.useEffect(function(){Or(!0)},[]);var vi=d.useMemo(function(){return{_internalRenderMenuItem:Vn,_internalRenderSubMenuItem:Jn}},[Vn,Jn]),pi=qt!=="horizontal"||qe?Tn:Tn.map(function(Rn,cn){return d.createElement(k,{key:Rn.key,overflowDisabled:cn>Kr},Rn)}),gi=d.createElement(Nt,(0,l.Z)({id:We,ref:_r,prefixCls:"".concat(V,"-overflow"),component:"ul",itemComponent:Ut,className:se()(V,"".concat(V,"-root"),"".concat(V,"-").concat(qt),Re,(C={},(0,E.Z)(C,"".concat(V,"-inline-collapsed"),Yr),(0,E.Z)(C,"".concat(V,"-rtl"),yr),C),ge),dir:je,style:Se,role:"menu",tabIndex:ze,data:pi,renderRawItem:function(cn){return cn},renderRawRest:function(cn){var En=cn.length,tr=En?Tn.slice(-En):null;return d.createElement(Xn,{eventKey:e,title:Yt,disabled:Ur,internalPopupClose:En===0,popupClassName:nn},tr)},maxCount:qt!=="horizontal"||qe?Nt.INVALIDATE:Nt.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(cn){qr(cn)},onKeyDown:mi},qn));return d.createElement(Le.Provider,{value:vi},d.createElement(Pt.Provider,{value:ir},d.createElement(k,{prefixCls:V,rootClassName:ge,mode:qt,openKeys:Kn,rtl:yr,disabled:rt,motion:Gn?pn:null,defaultMotions:Gn?zn:null,activeKey:Pr,onActive:si,onInactive:li,selectedKeys:Fr,inlineIndent:In,subMenuOpenDelay:it,subMenuCloseDelay:Et,forceSubMenuRender:jt,builtinPlacements:Cn,triggerSubMenuAction:Ln,getPopupContainer:gn,itemIcon:nr,expandIcon:Zn,onItemClick:fi,onOpenChange:Xr},d.createElement(G.Provider,{value:ai},gi),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(B.Provider,{value:ii},Tn)))))}),ve=te,u=ve;u.Item=Ut,u.SubMenu=Xn,u.ItemGroup=Yn,u.Divider=dr;var he=u},66680:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return E}});var l=r(67294);function E(z){var M=l.useRef();M.current=z;var L=l.useCallback(function(){for(var v,x=arguments.length,se=new Array(x),d=0;d<x;d++)se[d]=arguments[d];return(v=M.current)===null||v===void 0?void 0:v.call.apply(v,[M].concat(se))},[]);return L}},21770:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return v}});var l=r(97685),E=r(66680),z=r(8410),M=r(63896);function L(x){return x!==void 0}function v(x,se){var d=se||{},X=d.defaultValue,ie=d.value,de=d.onChange,I=d.postState,Y=(0,M.Z)(function(){return L(ie)?ie:L(X)?typeof X=="function"?X():X:typeof x=="function"?x():x}),ne=(0,l.Z)(Y,2),ae=ne[0],c=ne[1],j=ie!==void 0?ie:ae,P=I?I(j):j,T=(0,E.Z)(de),A=(0,M.Z)([j]),f=(0,l.Z)(A,2),R=f[0],H=f[1];(0,z.o)(function(){var re=R[0];ae!==re&&T(ae,re)},[R]),(0,z.o)(function(){L(ie)||c(ie)},[ie]);var Z=(0,E.Z)(function(re,ye){c(re,ye),H([j],ye)});return[P,Z]}},91881:function(St,Oe,r){"use strict";var l=r(71002),E=r(80334);function z(M,L){var v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,x=new Set;function se(d,X){var ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,de=x.has(d);if((0,E.ZP)(!de,"Warning: There may be circular references"),de)return!1;if(d===X)return!0;if(v&&ie>1)return!1;x.add(d);var I=ie+1;if(Array.isArray(d)){if(!Array.isArray(X)||d.length!==X.length)return!1;for(var Y=0;Y<d.length;Y++)if(!se(d[Y],X[Y],I))return!1;return!0}if(d&&X&&(0,l.Z)(d)==="object"&&(0,l.Z)(X)==="object"){var ne=Object.keys(d);return ne.length!==Object.keys(X).length?!1:ne.every(function(ae){return se(d[ae],X[ae],I)})}return!1}return se(M,L)}Oe.Z=z},98423:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return E}});var l=r(1413);function E(z,M){var L=(0,l.Z)({},z);return Array.isArray(M)&&M.forEach(function(v){delete L[v]}),L}},64217:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return se}});var l=r(1413),E=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,z=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,M="".concat(E," ").concat(z).split(/[\s\n]+/),L="aria-",v="data-";function x(d,X){return d.indexOf(X)===0}function se(d){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie;X===!1?ie={aria:!0,data:!0,attr:!0}:X===!0?ie={aria:!0}:ie=(0,l.Z)({},X);var de={};return Object.keys(d).forEach(function(I){(ie.aria&&(I==="role"||x(I,L))||ie.data&&x(I,v)||ie.attr&&M.includes(I))&&(de[I]=d[I])}),de}},73299:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return yt}});var l=r(87462),E=r(1413),z=r(71002),M=r(97685),L=r(4942),v=r(45987),x=r(67294),se=r(73935),d=r(94184),X=r.n(d),ie=r(48555),de=x.forwardRef(function(N,ce){var me=N.height,_e=N.offsetY,He=N.offsetX,Me=N.children,Pe=N.prefixCls,Ae=N.onInnerResize,Ie=N.innerProps,q=N.rtl,e=N.extra,t={},n={display:"flex",flexDirection:"column"};if(_e!==void 0){var i;t={height:me,position:"relative",overflow:"hidden"},n=(0,E.Z)((0,E.Z)({},n),{},(i={transform:"translateY(".concat(_e,"px)")},(0,L.Z)(i,q?"marginRight":"marginLeft",-He),(0,L.Z)(i,"position","absolute"),(0,L.Z)(i,"left",0),(0,L.Z)(i,"right",0),(0,L.Z)(i,"top",0),i))}return x.createElement("div",{style:t},x.createElement(ie.Z,{onResize:function(m){var w=m.offsetHeight;w&&Ae&&Ae()}},x.createElement("div",(0,l.Z)({style:n,className:X()((0,L.Z)({},"".concat(Pe,"-holder-inner"),Pe)),ref:ce},Ie),Me,e)))});de.displayName="Filler";var I=de,Y=function(ce){return+setTimeout(ce,16)},ne=function(ce){return clearTimeout(ce)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Y=function(ce){return window.requestAnimationFrame(ce)},ne=function(ce){return window.cancelAnimationFrame(ce)});var ae=0,c=new Map;function j(N){c.delete(N)}var P=function(ce){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ae+=1;var _e=ae;function He(Me){if(Me===0)j(_e),ce();else{var Pe=Y(function(){He(Me-1)});c.set(_e,Pe)}}return He(me),_e};P.cancel=function(N){var ce=c.get(N);return j(ce),ne(ce)};var T=P;function A(N,ce){var me="touches"in N?N.touches[0]:N;return me[ce?"pageX":"pageY"]}var f=x.forwardRef(function(N,ce){var me,_e=N.prefixCls,He=N.rtl,Me=N.scrollOffset,Pe=N.scrollRange,Ae=N.onStartMove,Ie=N.onStopMove,q=N.onScroll,e=N.horizontal,t=N.spinSize,n=N.containerSize,i=N.style,a=N.thumbStyle,m=x.useState(!1),w=(0,M.Z)(m,2),pe=w[0],oe=w[1],ke=x.useState(null),Qe=(0,M.Z)(ke,2),gt=Qe[0],Xe=Qe[1],pt=x.useState(null),ct=(0,M.Z)(pt,2),De=ct[0],Ve=ct[1],vt=!He,Ct=x.useRef(),Je=x.useRef(),sn=x.useState(!1),Qt=(0,M.Z)(sn,2),_t=Qt[0],Ut=Qt[1],Jt=x.useRef(),rn=function(){clearTimeout(Jt.current),Ut(!0),Jt.current=setTimeout(function(){Ut(!1)},3e3)},an=Pe-n||0,_n=n-t||0,Mn=an>0,un=x.useMemo(function(){if(Me===0||an===0)return 0;var Sn=Me/an;return Sn*_n},[Me,an,_n]),Fn=function(xn){xn.stopPropagation(),xn.preventDefault()},on=x.useRef({top:un,dragging:pe,pageY:gt,startTop:De});on.current={top:un,dragging:pe,pageY:gt,startTop:De};var Un=function(xn){oe(!0),Xe(A(xn,e)),Ve(on.current.top),Ae(),xn.stopPropagation(),xn.preventDefault()};x.useEffect(function(){var Sn=function($n){$n.preventDefault()},xn=Ct.current,or=Je.current;return xn.addEventListener("touchstart",Sn),or.addEventListener("touchstart",Un),function(){xn.removeEventListener("touchstart",Sn),or.removeEventListener("touchstart",Un)}},[]);var Pn=x.useRef();Pn.current=an;var vn=x.useRef();vn.current=_n,x.useEffect(function(){if(pe){var Sn,xn=function($n){var Xn=on.current,xr=Xn.dragging,sr=Xn.pageY,Er=Xn.startTop;if(T.cancel(Sn),xr){var pr=A($n,e)-sr,Yn=Er;!vt&&e?Yn-=pr:Yn+=pr;var dr=Pn.current,fr=vn.current,Qn=fr?Yn/fr:0,kn=Math.ceil(Qn*dr);kn=Math.max(kn,0),kn=Math.min(kn,dr),Sn=T(function(){q(kn,e)})}},or=function(){oe(!1),Ie()};return window.addEventListener("mousemove",xn),window.addEventListener("touchmove",xn),window.addEventListener("mouseup",or),window.addEventListener("touchend",or),function(){window.removeEventListener("mousemove",xn),window.removeEventListener("touchmove",xn),window.removeEventListener("mouseup",or),window.removeEventListener("touchend",or),T.cancel(Sn)}}},[pe]),x.useEffect(function(){rn()},[Me]),x.useImperativeHandle(ce,function(){return{delayHidden:rn}});var ln="".concat(_e,"-scrollbar"),dn={position:"absolute",visibility:_t&&Mn?null:"hidden"},Nn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return e?(dn.height=8,dn.left=0,dn.right=0,dn.bottom=0,Nn.height="100%",Nn.width=t,vt?Nn.left=un:Nn.right=un):(dn.width=8,dn.top=0,dn.bottom=0,vt?dn.right=0:dn.left=0,Nn.width="100%",Nn.height=t,Nn.top=un),x.createElement("div",{ref:Ct,className:X()(ln,(me={},(0,L.Z)(me,"".concat(ln,"-horizontal"),e),(0,L.Z)(me,"".concat(ln,"-vertical"),!e),(0,L.Z)(me,"".concat(ln,"-visible"),_t),me)),style:(0,E.Z)((0,E.Z)({},dn),i),onMouseDown:Fn,onMouseMove:rn},x.createElement("div",{ref:Je,className:X()("".concat(ln,"-thumb"),(0,L.Z)({},"".concat(ln,"-thumb-moving"),pe)),style:(0,E.Z)((0,E.Z)({},Nn),a),onMouseDown:Un}))}),R=f;function H(N){var ce=N.children,me=N.setRef,_e=x.useCallback(function(He){me(He)},[]);return x.cloneElement(ce,{ref:_e})}function Z(N,ce,me,_e,He,Me,Pe){var Ae=Pe.getKey;return N.slice(ce,me+1).map(function(Ie,q){var e=ce+q,t=Me(Ie,e,{style:{width:_e}}),n=Ae(Ie);return x.createElement(H,{key:n,setRef:function(a){return He(Ie,a)}},t)})}function re(N){return N instanceof HTMLElement||N instanceof SVGElement}function ye(N){return re(N)?N:N instanceof x.Component?se.findDOMNode(N):null}var we=r(15671),$=r(43144),Ke=function(){function N(){(0,we.Z)(this,N),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,$.Z)(N,[{key:"set",value:function(me,_e){this.maps[me]=_e,this.id+=1}},{key:"get",value:function(me){return this.maps[me]}}]),N}(),Q=Ke;function ue(N,ce,me){var _e=x.useState(0),He=(0,M.Z)(_e,2),Me=He[0],Pe=He[1],Ae=(0,x.useRef)(new Map),Ie=(0,x.useRef)(new Q),q=(0,x.useRef)();function e(){T.cancel(q.current)}function t(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;e();var a=function(){Ae.current.forEach(function(w,pe){if(w&&w.offsetParent){var oe=ye(w),ke=oe.offsetHeight;Ie.current.get(pe)!==ke&&Ie.current.set(pe,oe.offsetHeight)}}),Pe(function(w){return w+1})};i?a():q.current=T(a)}function n(i,a){var m=N(i),w=Ae.current.get(m);a?(Ae.current.set(m,a),t()):Ae.current.delete(m),!w!=!a&&(a?ce==null||ce(i):me==null||me(i))}return(0,x.useEffect)(function(){return e},[]),[n,t,Ie.current,Me]}function D(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var O=D()?x.useLayoutEffect:x.useEffect,Be=function(ce,me){var _e=x.useRef(!0);O(function(){return ce(_e.current)},me),O(function(){return _e.current=!1,function(){_e.current=!0}},[])},Fe=function(ce,me){Be(function(_e){if(!_e)return ce()},me)},Ne=Be;function ee(N){var ce=x.useRef();ce.current=N;var me=x.useCallback(function(){for(var _e,He=arguments.length,Me=new Array(He),Pe=0;Pe<He;Pe++)Me[Pe]=arguments[Pe];return(_e=ce.current)===null||_e===void 0?void 0:_e.call.apply(_e,[ce].concat(Me))},[]);return me}function Ee(N){var ce=React.useRef(!1),me=React.useState(N),_e=_slicedToArray(me,2),He=_e[0],Me=_e[1];React.useEffect(function(){return ce.current=!1,function(){ce.current=!0}},[]);function Pe(Ae,Ie){Ie&&ce.current||Me(Ae)}return[He,Pe]}function Te(N){return N!==void 0}function xe(N,ce){var me=ce||{},_e=me.defaultValue,He=me.value,Me=me.onChange,Pe=me.postState,Ae=useState(function(){return Te(He)?He:Te(_e)?typeof _e=="function"?_e():_e:typeof N=="function"?N():N}),Ie=_slicedToArray(Ae,2),q=Ie[0],e=Ie[1],t=He!==void 0?He:q,n=Pe?Pe(t):t,i=useEvent(Me),a=useState([t]),m=_slicedToArray(a,2),w=m[0],pe=m[1];useLayoutUpdateEffect(function(){var ke=w[0];q!==ke&&i(q,ke)},[w]),useLayoutUpdateEffect(function(){Te(He)||e(He)},[He]);var oe=useEvent(function(ke,Qe){e(ke,Qe),pe([t],Qe)});return[n,oe]}var $e=r(31461);function Tt(N,ce,me){var _e=React.useRef({});return(!("value"in _e.current)||me(_e.current.condition,ce))&&(_e.current.value=N(),_e.current.condition=ce),_e.current.value}function dt(N,ce){typeof N=="function"?N(ce):_typeof(N)==="object"&&N&&"current"in N&&(N.current=ce)}function Mt(){for(var N=arguments.length,ce=new Array(N),me=0;me<N;me++)ce[me]=arguments[me];var _e=ce.filter(function(He){return He});return _e.length<=1?_e[0]:function(He){ce.forEach(function(Me){dt(Me,He)})}}function Dt(){for(var N=arguments.length,ce=new Array(N),me=0;me<N;me++)ce[me]=arguments[me];return useMemo(function(){return Mt.apply(void 0,ce)},ce,function(_e,He){return _e.length!==He.length||_e.every(function(Me,Pe){return Me!==He[Pe]})})}function Nt(N){var ce,me,_e=isMemo(N)?N.type.type:N.type;return!(typeof _e=="function"&&!((ce=_e.prototype)!==null&&ce!==void 0&&ce.render)||typeof N=="function"&&!((me=N.prototype)!==null&&me!==void 0&&me.render))}function xt(N){return!isValidElement(N)||isFragment(N)?!1:Nt(N)}function Rt(N,ce,me,_e){if(!ce.length)return me;var He=_toArray(ce),Me=He[0],Pe=He.slice(1),Ae;return!N&&typeof Me=="number"?Ae=[]:Array.isArray(N)?Ae=_toConsumableArray(N):Ae=_objectSpread({},N),_e&&me===void 0&&Pe.length===1?delete Ae[Me][Pe[0]]:Ae[Me]=Rt(Ae[Me],Pe,me,_e),Ae}function It(N,ce,me){var _e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return ce.length&&_e&&me===void 0&&!get(N,ce.slice(0,-1))?N:Rt(N,ce,me,_e)}function Pt(N){return _typeof(N)==="object"&&N!==null&&Object.getPrototypeOf(N)===Object.prototype}function at(N){return Array.isArray(N)?[]:{}}var fe=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function J(){for(var N=arguments.length,ce=new Array(N),me=0;me<N;me++)ce[me]=arguments[me];var _e=at(ce[0]);return ce.forEach(function(He){function Me(Pe,Ae){var Ie=new Set(Ae),q=get(He,Pe),e=Array.isArray(q);if(e||Pt(q)){if(!Ie.has(q)){Ie.add(q);var t=get(_e,Pe);e?_e=It(_e,Pe,[]):(!t||_typeof(t)!=="object")&&(_e=It(_e,Pe,at(q))),fe(q).forEach(function(n){Me([].concat(_toConsumableArray(Pe),[n]),Ie)})}}else _e=It(_e,Pe,q)}Me([])}),_e}var o={},s=[],_=function(ce){s.push(ce)};function k(N,ce){if(0)var me}function S(N,ce){if(0)var me}function B(){o={}}function K(N,ce,me){!ce&&!o[me]&&(N(!1,me),o[me]=!0)}function g(N,ce){K(k,N,ce)}function F(N,ce){K(S,N,ce)}g.preMessage=_,g.resetWarned=B,g.noteOnce=F;var G=null,le=10;function Le(N,ce,me,_e,He,Me,Pe,Ae){var Ie=x.useRef(),q=x.useState(null),e=(0,M.Z)(q,2),t=e[0],n=e[1];return Ne(function(){if(t&&t.times<le){if(!N.current){n(function(rn){return(0,E.Z)({},rn)});return}Me();var i=t.targetAlign,a=t.originAlign,m=t.index,w=t.offset,pe=N.current.clientHeight,oe=!1,ke=i,Qe=null;if(pe){for(var gt=i||a,Xe=0,pt=0,ct=0,De=Math.min(ce.length-1,m),Ve=0;Ve<=De;Ve+=1){var vt=He(ce[Ve]);pt=Xe;var Ct=me.get(vt);ct=pt+(Ct===void 0?_e:Ct),Xe=ct}for(var Je=gt==="top"?w:pe-w,sn=De;sn>=0;sn-=1){var Qt=He(ce[sn]),_t=me.get(Qt);if(_t===void 0){oe=!0;break}if(Je-=_t,Je<=0)break}switch(gt){case"top":Qe=pt-w;break;case"bottom":Qe=ct-pe+w;break;default:{var Ut=N.current.scrollTop,Jt=Ut+pe;pt<Ut?ke="top":ct>Jt&&(ke="bottom")}}Qe!==null&&Pe(Qe),Qe!==t.lastTop&&(oe=!0)}oe&&n(function(rn){return(0,E.Z)((0,E.Z)({},rn),{},{times:rn.times+1,targetAlign:ke,lastTop:Qe})})}},[t,N.current]),function(i){if(i==null){Ae();return}if(T.cancel(Ie.current),typeof i=="number")Pe(i);else if(i&&(0,z.Z)(i)==="object"){var a,m=i.align;"index"in i?a=i.index:a=ce.findIndex(function(oe){return He(oe)===i.key});var w=i.offset,pe=w===void 0?0:w;n({times:0,index:a,offset:pe,originAlign:m})}}}function Ze(N,ce,me,_e){var He=me-N,Me=ce-me,Pe=Math.min(He,Me)*2;if(_e<=Pe){var Ae=Math.floor(_e/2);return _e%2?me+Ae+1:me-Ae}return He>Me?me-(_e-Me):me+(_e-He)}function Ye(N,ce,me){var _e=N.length,He=ce.length,Me,Pe;if(_e===0&&He===0)return null;_e<He?(Me=N,Pe=ce):(Me=ce,Pe=N);var Ae={__EMPTY_ITEM__:!0};function Ie(a){return a!==void 0?me(a):Ae}for(var q=null,e=Math.abs(_e-He)!==1,t=0;t<Pe.length;t+=1){var n=Ie(Me[t]),i=Ie(Pe[t]);if(n!==i){q=t,e=e||n!==Ie(Pe[t+1]);break}}return q===null?null:{index:q,multiple:e}}function ut(N,ce,me){var _e=x.useState(N),He=(0,M.Z)(_e,2),Me=He[0],Pe=He[1],Ae=x.useState(null),Ie=(0,M.Z)(Ae,2),q=Ie[0],e=Ie[1];return x.useEffect(function(){var t=Ye(Me||[],N||[],ce);(t==null?void 0:t.index)!==void 0&&(me==null||me(t.index),e(N[t.index])),Pe(N)},[N]),[q]}var ht=(typeof navigator=="undefined"?"undefined":(0,z.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),et=ht,bt=function(N,ce){var me=(0,x.useRef)(!1),_e=(0,x.useRef)(null);function He(){clearTimeout(_e.current),me.current=!0,_e.current=setTimeout(function(){me.current=!1},50)}var Me=(0,x.useRef)({top:N,bottom:ce});return Me.current.top=N,Me.current.bottom=ce,function(Pe){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ie=Pe<0&&Me.current.top||Pe>0&&Me.current.bottom;return Ae&&Ie?(clearTimeout(_e.current),me.current=!1):(!Ie||me.current)&&He(),!me.current&&Ie}};function Ce(N,ce,me,_e,He){var Me=(0,x.useRef)(0),Pe=(0,x.useRef)(null),Ae=(0,x.useRef)(null),Ie=(0,x.useRef)(!1),q=bt(ce,me);function e(w,pe){T.cancel(Pe.current),Me.current+=pe,Ae.current=pe,!q(pe)&&(et||w.preventDefault(),Pe.current=T(function(){var oe=Ie.current?10:1;He(Me.current*oe),Me.current=0}))}function t(w,pe){He(pe,!0),et||w.preventDefault()}var n=(0,x.useRef)(null),i=(0,x.useRef)(null);function a(w){if(N){T.cancel(i.current),i.current=T(function(){n.current=null},2);var pe=w.deltaX,oe=w.deltaY,ke=w.shiftKey,Qe=pe,gt=oe;(n.current==="sx"||!n.current&&ke&&oe&&!pe)&&(Qe=oe,gt=0,n.current="sx");var Xe=Math.abs(Qe),pt=Math.abs(gt);n.current===null&&(n.current=_e&&Xe>pt?"x":"y"),n.current==="y"?e(w,gt):t(w,Qe)}}function m(w){N&&(Ie.current=w.detail===Ae.current)}return[a,m]}var Kt=14/15;function Ft(N,ce,me){var _e=(0,x.useRef)(!1),He=(0,x.useRef)(0),Me=(0,x.useRef)(null),Pe=(0,x.useRef)(null),Ae,Ie=function(n){if(_e.current){var i=Math.ceil(n.touches[0].pageY),a=He.current-i;He.current=i,me(a)&&n.preventDefault(),clearInterval(Pe.current),Pe.current=setInterval(function(){a*=Kt,(!me(a,!0)||Math.abs(a)<=.1)&&clearInterval(Pe.current)},16)}},q=function(){_e.current=!1,Ae()},e=function(n){Ae(),n.touches.length===1&&!_e.current&&(_e.current=!0,He.current=Math.ceil(n.touches[0].pageY),Me.current=n.target,Me.current.addEventListener("touchmove",Ie),Me.current.addEventListener("touchend",q))};Ae=function(){Me.current&&(Me.current.removeEventListener("touchmove",Ie),Me.current.removeEventListener("touchend",q))},Ne(function(){return N&&ce.current.addEventListener("touchstart",e),function(){var t;(t=ce.current)===null||t===void 0||t.removeEventListener("touchstart",e),Ae(),clearInterval(Pe.current)}},[N])}var At=20;function Bt(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,me=N/ce*100;return isNaN(me)&&(me=0),me=Math.max(me,At),me=Math.min(me,N/2),Math.floor(me)}function Wt(N,ce,me,_e){var He=x.useMemo(function(){return[new Map,[]]},[N,me.id,_e]),Me=(0,M.Z)(He,2),Pe=Me[0],Ae=Me[1],Ie=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=Pe.get(e),i=Pe.get(t);if(n===void 0||i===void 0)for(var a=N.length,m=Ae.length;m<a;m+=1){var w,pe=N[m],oe=ce(pe);Pe.set(oe,m);var ke=(w=me.get(oe))!==null&&w!==void 0?w:_e;if(Ae[m]=(Ae[m-1]||0)+ke,oe===e&&(n=m),oe===t&&(i=m),n!==void 0&&i!==void 0)break}return{top:Ae[n-1]||0,bottom:Ae[i]}};return Ie}var kt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Zt=[],$t={overflowY:"auto",overflowAnchor:"none"};function Ht(N,ce){var me=N.prefixCls,_e=me===void 0?"rc-virtual-list":me,He=N.className,Me=N.height,Pe=N.itemHeight,Ae=N.fullHeight,Ie=Ae===void 0?!0:Ae,q=N.style,e=N.data,t=N.children,n=N.itemKey,i=N.virtual,a=N.direction,m=N.scrollWidth,w=N.component,pe=w===void 0?"div":w,oe=N.onScroll,ke=N.onVirtualScroll,Qe=N.onVisibleChange,gt=N.innerProps,Xe=N.extraRender,pt=N.styles,ct=(0,v.Z)(N,kt),De=!!(i!==!1&&Me&&Pe),Ve=De&&e&&(Pe*e.length>Me||!!m),vt=a==="rtl",Ct=X()(_e,(0,L.Z)({},"".concat(_e,"-rtl"),vt),He),Je=e||Zt,sn=(0,x.useRef)(),Qt=(0,x.useRef)(),_t=(0,x.useState)(0),Ut=(0,M.Z)(_t,2),Jt=Ut[0],rn=Ut[1],an=(0,x.useState)(0),_n=(0,M.Z)(an,2),Mn=_n[0],un=_n[1],Fn=(0,x.useState)(!1),on=(0,M.Z)(Fn,2),Un=on[0],Pn=on[1],vn=function(){Pn(!0)},ln=function(){Pn(!1)},dn=x.useCallback(function(nt){return typeof n=="function"?n(nt):nt==null?void 0:nt[n]},[n]),Nn={getKey:dn};function Sn(nt){rn(function(st){var wt;typeof nt=="function"?wt=nt(st):wt=nt;var zt=ge(wt);return sn.current.scrollTop=zt,zt})}var xn=(0,x.useRef)({start:0,end:Je.length}),or=(0,x.useRef)(),vr=ut(Je,dn),$n=(0,M.Z)(vr,1),Xn=$n[0];or.current=Xn;var xr=ue(dn,null,null),sr=(0,M.Z)(xr,4),Er=sr[0],pr=sr[1],Yn=sr[2],dr=sr[3],fr=x.useMemo(function(){if(!De)return{scrollHeight:void 0,start:0,end:Je.length-1,offset:void 0};if(!Ve){var nt;return{scrollHeight:((nt=Qt.current)===null||nt===void 0?void 0:nt.offsetHeight)||0,start:0,end:Je.length-1,offset:void 0}}for(var st=0,wt,zt,tn,bn=Je.length,mn=0;mn<bn;mn+=1){var wn=Je[mn],Bn=dn(wn),On=Yn.get(Bn),In=st+(On===void 0?Pe:On);In>=Jt&&wt===void 0&&(wt=mn,zt=st),In>Jt+Me&&tn===void 0&&(tn=mn),st=In}return wt===void 0&&(wt=0,zt=0,tn=Math.ceil(Me/Pe)),tn===void 0&&(tn=Je.length-1),tn=Math.min(tn+1,Je.length-1),{scrollHeight:st,start:wt,end:tn,offset:zt}},[Ve,De,Jt,Je,dr,Me]),Qn=fr.scrollHeight,kn=fr.start,gr=fr.end,W=fr.offset;xn.current.start=kn,xn.current.end=gr;var te=x.useState({width:0,height:Me}),ve=(0,M.Z)(te,2),u=ve[0],he=ve[1],h=function(st){he({width:st.width||st.offsetWidth,height:st.height||st.offsetHeight})},b=(0,x.useRef)(),y=(0,x.useRef)(),C=x.useMemo(function(){return Bt(u.width,m)},[u.width,m]),p=x.useMemo(function(){return Bt(u.height,Qn)},[u.height,Qn]),U=Qn-Me,V=(0,x.useRef)(U);V.current=U;function ge(nt){var st=nt;return Number.isNaN(V.current)||(st=Math.min(st,V.current)),st=Math.max(st,0),st}var Se=Jt<=0,Re=Jt>=U,Ue=bt(Se,Re),ze=function(){return{x:vt?-Mn:Mn,y:Jt}},be=(0,x.useRef)(ze()),Ge=ee(function(){if(ke){var nt=ze();(be.current.x!==nt.x||be.current.y!==nt.y)&&(ke(nt),be.current=nt)}});function je(nt,st){var wt=nt;st?((0,se.flushSync)(function(){un(wt)}),Ge()):Sn(wt)}function We(nt){var st=nt.currentTarget.scrollTop;st!==Jt&&Sn(st),oe==null||oe(nt),Ge()}var tt=function(st){var wt=st,zt=m-u.width;return wt=Math.max(wt,0),wt=Math.min(wt,zt),wt},ot=ee(function(nt,st){st?((0,se.flushSync)(function(){un(function(wt){var zt=wt+(vt?-nt:nt);return tt(zt)})}),Ge()):Sn(function(wt){var zt=wt+nt;return zt})}),ft=Ce(De,Se,Re,!!m,ot),rt=(0,M.Z)(ft,2),qe=rt[0],lt=rt[1];Ft(De,sn,function(nt,st){return Ue(nt,st)?!1:(qe({preventDefault:function(){},deltaY:nt}),!0)}),Ne(function(){function nt(wt){De&&wt.preventDefault()}var st=sn.current;return st.addEventListener("wheel",qe),st.addEventListener("DOMMouseScroll",lt),st.addEventListener("MozMousePixelScroll",nt),function(){st.removeEventListener("wheel",qe),st.removeEventListener("DOMMouseScroll",lt),st.removeEventListener("MozMousePixelScroll",nt)}},[De]),Ne(function(){m&&un(function(nt){return tt(nt)})},[u.width,m]);var it=function(){var st,wt;(st=b.current)===null||st===void 0||st.delayHidden(),(wt=y.current)===null||wt===void 0||wt.delayHidden()},Lt=Le(sn,Je,Yn,Pe,dn,function(){return pr(!0)},Sn,it);x.useImperativeHandle(ce,function(){return{getScrollInfo:ze,scrollTo:function(st){function wt(zt){return zt&&(0,z.Z)(zt)==="object"&&("left"in zt||"top"in zt)}wt(st)?(st.left!==void 0&&un(tt(st.left)),Lt(st.top)):Lt(st)}}}),Ne(function(){if(Qe){var nt=Je.slice(kn,gr+1);Qe(nt,Je)}},[kn,gr,Je]);var Et=Wt(Je,dn,Yn,Pe),jt=Xe==null?void 0:Xe({start:kn,end:gr,virtual:Ve,offsetX:Mn,offsetY:W,rtl:vt,getSize:Et}),Ot=Z(Je,kn,gr,m,Er,t,Nn),Vt=null;Me&&(Vt=(0,E.Z)((0,L.Z)({},Ie?"height":"maxHeight",Me),$t),De&&(Vt.overflowY="hidden",m&&(Vt.overflowX="hidden"),Un&&(Vt.pointerEvents="none")));var Gt={};return vt&&(Gt.dir="rtl"),x.createElement("div",(0,l.Z)({style:(0,E.Z)((0,E.Z)({},q),{},{position:"relative"}),className:Ct},Gt,ct),x.createElement(ie.Z,{onResize:h},x.createElement(pe,{className:"".concat(_e,"-holder"),style:Vt,ref:sn,onScroll:We,onMouseEnter:it},x.createElement(I,{prefixCls:_e,height:Qn,offsetX:Mn,offsetY:W,scrollWidth:m,onInnerResize:pr,ref:Qt,innerProps:gt,rtl:vt,extra:jt},Ot))),Ve&&Qn>Me&&x.createElement(R,{ref:b,prefixCls:_e,scrollOffset:Jt,scrollRange:Qn,rtl:vt,onScroll:je,onStartMove:vn,onStopMove:ln,spinSize:p,containerSize:u.height,style:pt==null?void 0:pt.verticalScrollBar,thumbStyle:pt==null?void 0:pt.verticalScrollBarThumb}),Ve&&m&&x.createElement(R,{ref:y,prefixCls:_e,scrollOffset:Mn,scrollRange:m,rtl:vt,onScroll:je,onStartMove:vn,onStopMove:ln,spinSize:C,containerSize:u.width,horizontal:!0,style:pt==null?void 0:pt.horizontalScrollBar,thumbStyle:pt==null?void 0:pt.horizontalScrollBarThumb}))}var mt=x.forwardRef(Ht);mt.displayName="List";var en=mt,yt=en},66392:function(St,Oe){"use strict";var r;var l=Symbol.for("react.element"),E=Symbol.for("react.portal"),z=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),x=Symbol.for("react.context"),se=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),Y=Symbol.for("react.offscreen"),ne;ne=Symbol.for("react.module.reference");function ae(c){if(typeof c=="object"&&c!==null){var j=c.$$typeof;switch(j){case l:switch(c=c.type,c){case z:case L:case M:case X:case ie:return c;default:switch(c=c&&c.$$typeof,c){case se:case x:case d:case I:case de:case v:return c;default:return j}}case E:return j}}}r=x,r=v,r=l,r=d,r=z,r=I,r=de,r=E,r=L,r=M,r=X,r=ie,r=function(){return!1},r=function(){return!1},r=function(c){return ae(c)===x},r=function(c){return ae(c)===v},r=function(c){return typeof c=="object"&&c!==null&&c.$$typeof===l},r=function(c){return ae(c)===d},r=function(c){return ae(c)===z},r=function(c){return ae(c)===I},r=function(c){return ae(c)===de},r=function(c){return ae(c)===E},r=function(c){return ae(c)===L},r=function(c){return ae(c)===M},r=function(c){return ae(c)===X},r=function(c){return ae(c)===ie},r=function(c){return typeof c=="string"||typeof c=="function"||c===z||c===L||c===M||c===X||c===ie||c===Y||typeof c=="object"&&c!==null&&(c.$$typeof===I||c.$$typeof===de||c.$$typeof===v||c.$$typeof===x||c.$$typeof===d||c.$$typeof===ne||c.getModuleId!==void 0)},r=ae},31461:function(St,Oe,r){"use strict";r(66392)},18034:function(St){var Oe=arguments[3],r=arguments[4],l=arguments[5],E=JSON.stringify;St.exports=function(z,M){for(var L,v=Object.keys(l),x=0,se=v.length;x<se;x++){var d=v[x],X=l[d].exports;if(X===z||X&&X.default===z){L=d;break}}if(!L){L=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var ie={},x=0,se=v.length;x<se;x++){var d=v[x];ie[d]=d}r[L]=["function(require,module,exports){"+z+"(self); }",ie]}var de=Math.floor(Math.pow(16,8)*Math.random()).toString(16),I={};I[L]=L,r[de]=["function(require,module,exports){var f = require("+E(L)+");(f.default ? f.default : f)(self);}",I];var Y={};ne(de);function ne(A){Y[A]=!0;for(var f in r[A][1]){var R=r[A][1][f];Y[R]||ne(R)}}var ae="("+Oe+")({"+Object.keys(Y).map(function(A){return E(A)+":["+r[A][0]+","+E(r[A][1])+"]"}).join(",")+"},{},["+E(de)+"])",c=window.URL||window.webkitURL||window.mozURL||window.msURL,j=new Blob([ae],{type:"text/javascript"});if(M&&M.bare)return j;var P=c.createObjectURL(j),T=new Worker(P);return T.objectURL=P,T}},36459:function(St,Oe,r){"use strict";r.d(Oe,{Z:function(){return l}});function l(E){if(E==null)throw new TypeError("Cannot destructure "+E)}}}]);
|