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.
NewEduCoderBuild/p__Question__Index__index.c...

1037 lines
1.5 MiB

!(function(){var Tl=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[9647],{65030:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return yt}});var f=_(27247),ue=_(11913),z=_(43079),ae=_(43403),B=_(92310),d=_.n(B),_e=_(29301),ne=_(76846),o=_(96452),g=_(6089),A=_(80402),p=_(34280),E=_(49658),b=_(59301),I=_(32855),j=_(77900),$=_(8654);function le(Fe){var we=Fe.prefixCls,V=Fe.align,je=Fe.arrow,Qe=Fe.arrowPos,q=je||{},M=q.className,Se=q.content,be=Qe.x,W=be===void 0?0:be,fe=Qe.y,ye=fe===void 0?0:fe,$e=b.useRef();if(!V||!V.points)return null;var Ve={position:"absolute"};if(V.autoArrow!==!1){var qe=V.points[0],Ye=V.points[1],ot=qe[0],de=qe[1],K=Ye[0],N=Ye[1];ot===K||!["t","b"].includes(ot)?Ve.top=ye:ot==="t"?Ve.top=0:Ve.bottom=0,de===N||!["l","r"].includes(de)?Ve.left=W:de==="l"?Ve.left=0:Ve.right=0}return b.createElement("div",{ref:$e,className:d()("".concat(we,"-arrow"),M),style:Ve},Se)}function F(Fe){var we=Fe.prefixCls,V=Fe.open,je=Fe.zIndex,Qe=Fe.mask,q=Fe.motion;return Qe?b.createElement(j.default,(0,I.Z)({},q,{motionAppear:!0,visible:V,removeOnLeave:!0}),function(M){var Se=M.className;return b.createElement("div",{style:{zIndex:je},className:d()("".concat(we,"-mask"),Se)})}):null}var H=b.memo(function(Fe){var we=Fe.children;return we},function(Fe,we){return we.cache}),D=H,w=b.forwardRef(function(Fe,we){var V=Fe.popup,je=Fe.className,Qe=Fe.prefixCls,q=Fe.style,M=Fe.target,Se=Fe.onVisibleChanged,be=Fe.open,W=Fe.keepDom,fe=Fe.fresh,ye=Fe.onClick,$e=Fe.mask,Ve=Fe.arrow,qe=Fe.arrowPos,Ye=Fe.align,ot=Fe.motion,de=Fe.maskMotion,K=Fe.forceRender,N=Fe.getPopupContainer,Le=Fe.autoDestroy,De=Fe.portal,Ae=Fe.zIndex,it=Fe.onMouseEnter,st=Fe.onMouseLeave,Oe=Fe.onPointerEnter,Et=Fe.onPointerDownCapture,jt=Fe.ready,wt=Fe.offsetX,Bt=Fe.offsetY,se=Fe.offsetR,ve=Fe.offsetB,Ee=Fe.onAlign,k=Fe.onPrepare,Y=Fe.stretch,he=Fe.targetWidth,ce=Fe.targetHeight,xe=typeof V=="function"?V():V,Be=be||W,Xe=(N==null?void 0:N.length)>0,ut=b.useState(!N||!Xe),nt=(0,ue.Z)(ut,2),Ue=nt[0],R=nt[1];if((0,p.Z)(function(){!Ue&&Xe&&M&&R(!0)},[Ue,Xe,M]),!Ue)return null;var U="auto",S={left:"-1000vw",top:"-1000vh",right:U,bottom:U};if(jt||!be){var ze,ke=Ye.points,Pe=Ye.dynamicInset||((ze=Ye._experimental)===null||ze===void 0?void 0:ze.dynamicInset),Ge=Pe&&ke[0][1]==="r",We=Pe&&ke[0][0]==="b";Ge?(S.right=se,S.left=U):(S.left=wt,S.right=U),We?(S.bottom=ve,S.top=U):(S.top=Bt,S.bottom=U)}var ct={};return Y&&(Y.includes("height")&&ce?ct.height=ce:Y.includes("minHeight")&&ce&&(ct.minHeight=ce),Y.includes("width")&&he?ct.width=he:Y.includes("minWidth")&&he&&(ct.minWidth=he)),be||(ct.pointerEvents="none"),b.createElement(De,{open:K||Be,getContainer:N&&function(){return N(M)},autoDestroy:Le},b.createElement(F,{prefixCls:Qe,open:be,zIndex:Ae,mask:$e,motion:de}),b.createElement(_e.Z,{onResize:Ee,disabled:!be},function(Lt){return b.createElement(j.default,(0,I.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:K,leavedClassName:"".concat(Qe,"-hidden")},ot,{onAppearPrepare:k,onEnterPrepare:k,visible:be,onVisibleChanged:function(cn){var Ne;ot==null||(Ne=ot.onVisibleChanged)===null||Ne===void 0||Ne.call(ot,cn),Se(cn)}}),function(Pt,cn){var Ne=Pt.className,Re=Pt.style,dt=d()(Qe,Ne,je);return b.createElement("div",{ref:(0,$.sQ)(Lt,we,cn),className:dt,style:(0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({"--arrow-x":"".concat(qe.x||0,"px"),"--arrow-y":"".concat(qe.y||0,"px")},S),ct),Re),{},{boxSizing:"border-box",zIndex:Ae},q),onMouseEnter:it,onMouseLeave:st,onPointerEnter:Oe,onClick:ye,onPointerDownCapture:Et},Ve&&b.createElement(le,{prefixCls:Qe,arrow:Ve,arrowPos:qe,align:Ye}),b.createElement(D,{cache:!be&&!fe},xe))})}))}),Q=w,re=b.forwardRef(function(Fe,we){var V=Fe.children,je=Fe.getTriggerDOMNode,Qe=(0,$.Yr)(V),q=b.useCallback(function(Se){(0,$.mH)(we,je?je(Se):Se)},[je]),M=(0,$.x1)(q,(0,$.C4)(V));return Qe?b.cloneElement(V,{ref:M}):V}),ee=re,oe=b.createContext(null),ge=oe;function me(Fe){return Fe?Array.isArray(Fe)?Fe:[Fe]:[]}function at(Fe,we,V,je){return b.useMemo(function(){var Qe=me(V!=null?V:we),q=me(je!=null?je:we),M=new Set(Qe),Se=new Set(q);return Fe&&(M.has("hover")&&(M.delete("hover"),M.add("click")),Se.has("hover")&&(Se.delete("hover"),Se.add("click"))),[M,Se]},[Fe,we,V,je])}var Z=_(29194);function T(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],V=arguments.length>2?arguments[2]:void 0;return V?Fe[0]===we[0]:Fe[0]===we[0]&&Fe[1]===we[1]}function P(Fe,we,V,je){for(var Qe=V.points,q=Object.keys(Fe),M=0;M<q.length;M+=1){var Se,be=q[M];if(T((Se=Fe[be])===null||Se===void 0?void 0:Se.points,Qe,je))return"".concat(we,"-placement-").concat(be)}return""}function G(Fe,we,V,je){return we||(V?{motionName:"".concat(Fe,"-").concat(V)}:je?{motionName:je}:null)}function ie(Fe){return Fe.ownerDocument.defaultView}function X(Fe){for(var we=[],V=Fe==null?void 0:Fe.parentElement,je=["hidden","scroll","clip","auto"];V;){var Qe=ie(V).getComputedStyle(V),q=Qe.overflowX,M=Qe.overflowY,Se=Qe.overflow;[q,M,Se].some(function(be){return je.includes(be)})&&we.push(V),V=V.parentElement}return we}function y(Fe){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Fe)?we:Fe}function v(Fe){return y(parseFloat(Fe),0)}function O(Fe,we){var V=(0,f.Z)({},Fe);return(we||[]).forEach(function(je){if(!(je instanceof HTMLBodyElement||je instanceof HTMLHtmlElement)){var Qe=ie(je).getComputedStyle(je),q=Qe.overflow,M=Qe.overflowClipMargin,Se=Qe.borderTopWidth,be=Qe.borderBottomWidth,W=Qe.borderLeftWidth,fe=Qe.borderRightWidth,ye=je.getBoundingClientRect(),$e=je.offsetHeight,Ve=je.clientHeight,qe=je.offsetWidth,Ye=je.clientWidth,ot=v(Se),de=v(be),K=v(W),N=v(fe),Le=y(Math.round(ye.width/qe*1e3)/1e3),De=y(Math.round(ye.height/$e*1e3)/1e3),Ae=(qe-Ye-K-N)*Le,it=($e-Ve-ot-de)*De,st=ot*De,Oe=de*De,Et=K*Le,jt=N*Le,wt=0,Bt=0;if(q==="clip"){var se=v(M);wt=se*Le,Bt=se*De}var ve=ye.x+Et-wt,Ee=ye.y+st-Bt,k=ve+ye.width+2*wt-Et-jt-Ae,Y=Ee+ye.height+2*Bt-st-Oe-it;V.left=Math.max(V.left,ve),V.top=Math.max(V.top,Ee),V.right=Math.min(V.right,k),V.bottom=Math.min(V.bottom,Y)}}),V}function pe(Fe){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,V="".concat(we),je=V.match(/^(.*)\%$/);return je?Fe*(parseFloat(je[1])/100):parseFloat(V)}function He(Fe,we){var V=we||[],je=(0,ue.Z)(V,2),Qe=je[0],q=je[1];return[pe(Fe.width,Qe),pe(Fe.height,q)]}function tt(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Fe[0],Fe[1]]}function Ct(Fe,we){var V=we[0],je=we[1],Qe,q;return V==="t"?q=Fe.y:V==="b"?q=Fe.y+Fe.height:q=Fe.y+Fe.height/2,je==="l"?Qe=Fe.x:je==="r"?Qe=Fe.x+Fe.width:Qe=Fe.x+Fe.width/2,{x:Qe,y:q}}function Rt(Fe,we){var V={t:"b",b:"t",l:"r",r:"l"};return Fe.map(function(je,Qe){return Qe===we?V[je]||"c":je}).join("")}function Ft(Fe,we,V,je,Qe,q,M){var Se=b.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Qe[je]||{}}),be=(0,ue.Z)(Se,2),W=be[0],fe=be[1],ye=b.useRef(0),$e=b.useMemo(function(){return we?X(we):[]},[we]),Ve=b.useRef({}),qe=function(){Ve.current={}};Fe||qe();var Ye=(0,g.Z)(function(){if(we&&V&&Fe){let Er=function(lr,jn){var or=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Tt,ur=Be.x+lr,fr=Be.y+jn,Sr=ur+We,Dr=fr+Ge,$r=Math.max(ur,or.left),Hn=Math.max(fr,or.top),ir=Math.min(Sr,or.right),rr=Math.min(Dr,or.bottom);return Math.max(0,(ir-$r)*(rr-Hn))},_r=function(){_t=Be.y+kn,zt=_t+Ge,Wt=Be.x+yn,It=Wt+We};var K,N,Le,De,Ae=we,it=Ae.ownerDocument,st=ie(Ae),Oe=st.getComputedStyle(Ae),Et=Oe.position,jt=Ae.style.left,wt=Ae.style.top,Bt=Ae.style.right,se=Ae.style.bottom,ve=Ae.style.overflow,Ee=(0,f.Z)((0,f.Z)({},Qe[je]),q),k=it.createElement("div");(K=Ae.parentElement)===null||K===void 0||K.appendChild(k),k.style.left="".concat(Ae.offsetLeft,"px"),k.style.top="".concat(Ae.offsetTop,"px"),k.style.position=Et,k.style.height="".concat(Ae.offsetHeight,"px"),k.style.width="".concat(Ae.offsetWidth,"px"),Ae.style.left="0",Ae.style.top="0",Ae.style.right="auto",Ae.style.bottom="auto",Ae.style.overflow="hidden";var Y;if(Array.isArray(V))Y={x:V[0],y:V[1],width:0,height:0};else{var he,ce,xe=V.getBoundingClientRect();xe.x=(he=xe.x)!==null&&he!==void 0?he:xe.left,xe.y=(ce=xe.y)!==null&&ce!==void 0?ce:xe.top,Y={x:xe.x,y:xe.y,width:xe.width,height:xe.height}}var Be=Ae.getBoundingClientRect(),Xe=st.getComputedStyle(Ae),ut=Xe.height,nt=Xe.width;Be.x=(N=Be.x)!==null&&N!==void 0?N:Be.left,Be.y=(Le=Be.y)!==null&&Le!==void 0?Le:Be.top;var Ue=it.documentElement,R=Ue.clientWidth,U=Ue.clientHeight,S=Ue.scrollWidth,ze=Ue.scrollHeight,ke=Ue.scrollTop,Pe=Ue.scrollLeft,Ge=Be.height,We=Be.width,ct=Y.height,Lt=Y.width,Pt={left:0,top:0,right:R,bottom:U},cn={left:-Pe,top:-ke,right:S-Pe,bottom:ze-ke},Ne=Ee.htmlRegion,Re="visible",dt="visibleFirst";Ne!=="scroll"&&Ne!==dt&&(Ne=Re);var mt=Ne===dt,Mt=O(cn,$e),bt=O(Pt,$e),Tt=Ne===Re?bt:Mt,Kt=mt?bt:Tt;Ae.style.left="auto",Ae.style.top="auto",Ae.style.right="0",Ae.style.bottom="0";var en=Ae.getBoundingClientRect();Ae.style.left=jt,Ae.style.top=wt,Ae.style.right=Bt,Ae.style.bottom=se,Ae.style.overflow=ve,(De=Ae.parentElement)===null||De===void 0||De.removeChild(k);var At=y(Math.round(We/parseFloat(nt)*1e3)/1e3),dn=y(Math.round(Ge/parseFloat(ut)*1e3)/1e3);if(At===0||dn===0||(0,ne.Sh)(V)&&!(0,Z.Z)(V))return;var an=Ee.offset,Jt=Ee.targetOffset,kt=He(Be,an),Ze=(0,ue.Z)(kt,2),ft=Ze[0],St=Ze[1],Ot=He(Y,Jt),tn=(0,ue.Z)(Ot,2),et=tn[0],ln=tn[1];Y.x-=et,Y.y-=ln;var xn=Ee.points||[],Tn=(0,ue.Z)(xn,2),Cn=Tn[0],Yn=Tn[1],Dn=tt(Yn),Zn=tt(Cn),On=Ct(Y,Dn),Bn=Ct(Be,Zn),In=(0,f.Z)({},Ee),yn=On.x-Bn.x+ft,kn=On.y-Bn.y+St,pn=Er(yn,kn),En=Er(yn,kn,bt),Ln=Ct(Y,["t","l"]),Mn=Ct(Be,["t","l"]),zn=Ct(Y,["b","r"]),Un=Ct(Be,["b","r"]),ar=Ee.overflow||{},Me=ar.adjustX,Ie=ar.adjustY,Te=ar.shiftX,lt=ar.shiftY,gt=function(jn){return typeof jn=="boolean"?jn:jn>=0},_t,zt,Wt,It;_r();var vt=gt(Ie),xt=Zn[0]===Dn[0];if(vt&&Zn[0]==="t"&&(zt>Kt.bottom||Ve.current.bt)){var Nt=kn;xt?Nt-=Ge-ct:Nt=Ln.y-Un.y-St;var Zt=Er(yn,Nt),nn=Er(yn,Nt,bt);Zt>pn||Zt===pn&&(!mt||nn>=En)?(Ve.current.bt=!0,kn=Nt,St=-St,In.points=[Rt(Zn,0),Rt(Dn,0)]):Ve.current.bt=!1}if(vt&&Zn[0]==="b"&&(_t<Kt.top||Ve.current.tb)){var gn=kn;xt?gn+=Ge-ct:gn=zn.y-Mn.y-St;var Kn=Er(yn,gn),mn=Er(yn,gn,bt);Kn>pn||Kn===pn&&(!mt||mn>=En)?(Ve.current.tb=!0,kn=gn,St=-St,In.points=[Rt(Zn,0),Rt(Dn,0)]):Ve.current.tb=!1}var Sn=gt(Me),Fn=Zn[1]===Dn[1];if(Sn&&Zn[1]==="l"&&(It>Kt.right||Ve.current.rl)){var Nn=yn;Fn?Nn-=We-Lt:Nn=Ln.x-Un.x-ft;var Vn=Er(Nn,kn),wn=Er(Nn,kn,bt);Vn>pn||Vn===pn&&(!mt||wn>=En)?(Ve.current.rl=!0,yn=Nn,ft=-ft,In.points=[Rt(Zn,1),Rt(Dn,1)]):Ve.current.rl=!1}if(Sn&&Zn[1]==="r"&&(Wt<Kt.left||Ve.current.lr)){var Gn=yn;Fn?Gn+=We-Lt:Gn=zn.x-Mn.x-ft;var Wn=Er(Gn,kn),er=Er(Gn,kn,bt);Wn>pn||Wn===pn&&(!mt||er>=En)?(Ve.current.lr=!0,yn=Gn,ft=-ft,In.points=[Rt(Zn,1),Rt(Dn,1)]):Ve.current.lr=!1}_r();var bn=Te===!0?0:Te;typeof bn=="number"&&(Wt<bt.left&&(yn-=Wt-bt.left-ft,Y.x+Lt<bt.left+bn&&(yn+=Y.x-bt.left+Lt-bn)),It>bt.right&&(yn-=It-bt.right-ft,Y.x>bt.right-bn&&(yn+=Y.x-bt.right+bn)));var Jn=lt===!0?0:lt;typeof Jn=="number"&&(_t<bt.top&&(kn-=_t-bt.top-St,Y.y+ct<bt.top+Jn&&(kn+=Y.y-bt.top+ct-Jn)),zt>bt.bottom&&(kn-=zt-bt.bottom-St,Y.y>bt.bottom-Jn&&(kn+=Y.y-bt.bottom+Jn)));var cr=Be.x+yn,pt=cr+We,Qt=Be.y+kn,on=Qt+Ge,Vt=Y.x,vn=Vt+Lt,Rn=Y.y,nr=Rn+ct,Xn=Math.max(cr,Vt),dr=Math.min(pt,vn),xr=(Xn+dr)/2,Ur=xr-cr,Nr=Math.max(Qt,Rn),zr=Math.min(on,nr),Vr=(Nr+zr)/2,Zr=Vr-Qt;M==null||M(we,In);var yr=en.right-Be.x-(yn+Be.width),Tr=en.bottom-Be.y-(kn+Be.height);At===1&&(yn=Math.round(yn),yr=Math.round(yr)),dn===1&&(kn=Math.round(kn),Tr=Math.round(Tr));var Wr={ready:!0,offsetX:yn/At,offsetY:kn/dn,offsetR:yr/At,offsetB:Tr/dn,arrowX:Ur/At,arrowY:Zr/dn,scaleX:At,scaleY:dn,align:In};fe(Wr)}}),ot=function(){ye.current+=1;var N=ye.current;Promise.resolve().then(function(){ye.current===N&&Ye()})},de=function(){fe(function(N){return(0,f.Z)((0,f.Z)({},N),{},{ready:!1})})};return(0,p.Z)(de,[je]),(0,p.Z)(function(){Fe||de()},[Fe]),[W.ready,W.offsetX,W.offsetY,W.offsetR,W.offsetB,W.arrowX,W.arrowY,W.scaleX,W.scaleY,W.align,ot]}var Ht=_(3300);function Ke(Fe,we,V,je,Qe){(0,p.Z)(function(){if(Fe&&we&&V){let ye=function(){je(),Qe()};var q=we,M=V,Se=X(q),be=X(M),W=ie(M),fe=new Set([W].concat((0,Ht.Z)(Se),(0,Ht.Z)(be)));return fe.forEach(function($e){$e.addEventListener("scroll",ye,{passive:!0})}),W.addEventListener("resize",ye,{passive:!0}),je(),function(){fe.forEach(function($e){$e.removeEventListener("scroll",ye),W.removeEventListener("resize",ye)})}}},[Fe,we,V])}var qt=_(48736);function Dt(Fe,we,V,je,Qe,q,M,Se){var be=b.useRef(Fe);be.current=Fe;var W=b.useRef(!1);b.useEffect(function(){if(we&&je&&(!Qe||q)){var ye=function(){W.current=!1},$e=function(Le){var De;be.current&&!M(((De=Le.composedPath)===null||De===void 0||(De=De.call(Le))===null||De===void 0?void 0:De[0])||Le.target)&&!W.current&&Se(!1)},Ve=ie(je);Ve.addEventListener("pointerdown",ye,!0),Ve.addEventListener("mousedown",$e,!0),Ve.addEventListener("contextmenu",$e,!0);var qe=(0,o.A)(V);if(qe&&(qe.addEventListener("mousedown",$e,!0),qe.addEventListener("contextmenu",$e,!0)),0)var Ye,ot,de,K;return function(){Ve.removeEventListener("pointerdown",ye,!0),Ve.removeEventListener("mousedown",$e,!0),Ve.removeEventListener("contextmenu",$e,!0),qe&&(qe.removeEventListener("mousedown",$e,!0),qe.removeEventListener("contextmenu",$e,!0))}}},[we,V,je,Qe,q]);function fe(){W.current=!0}return fe}var sn=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Je(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ae.Z,we=b.forwardRef(function(V,je){var Qe=V.prefixCls,q=Qe===void 0?"rc-trigger-popup":Qe,M=V.children,Se=V.action,be=Se===void 0?"hover":Se,W=V.showAction,fe=V.hideAction,ye=V.popupVisible,$e=V.defaultPopupVisible,Ve=V.onPopupVisibleChange,qe=V.afterPopupVisibleChange,Ye=V.mouseEnterDelay,ot=V.mouseLeaveDelay,de=ot===void 0?.1:ot,K=V.focusDelay,N=V.blurDelay,Le=V.mask,De=V.maskClosable,Ae=De===void 0?!0:De,it=V.getPopupContainer,st=V.forceRender,Oe=V.autoDestroy,Et=V.destroyPopupOnHide,jt=V.popup,wt=V.popupClassName,Bt=V.popupStyle,se=V.popupPlacement,ve=V.builtinPlacements,Ee=ve===void 0?{}:ve,k=V.popupAlign,Y=V.zIndex,he=V.stretch,ce=V.getPopupClassNameFromAlign,xe=V.fresh,Be=V.alignPoint,Xe=V.onPopupClick,ut=V.onPopupAlign,nt=V.arrow,Ue=V.popupMotion,R=V.maskMotion,U=V.popupTransitionName,S=V.popupAnimation,ze=V.maskTransitionName,ke=V.maskAnimation,Pe=V.className,Ge=V.getTriggerDOMNode,We=(0,z.Z)(V,sn),ct=Oe||Et||!1,Lt=b.useState(!1),Pt=(0,ue.Z)(Lt,2),cn=Pt[0],Ne=Pt[1];(0,p.Z)(function(){Ne((0,E.Z)())},[]);var Re=b.useRef({}),dt=b.useContext(ge),mt=b.useMemo(function(){return{registerSubPopup:function(ir,rr){Re.current[ir]=rr,dt==null||dt.registerSubPopup(ir,rr)}}},[dt]),Mt=(0,A.Z)(),bt=b.useState(null),Tt=(0,ue.Z)(bt,2),Kt=Tt[0],en=Tt[1],At=b.useRef(null),dn=(0,g.Z)(function(Hn){At.current=Hn,(0,ne.Sh)(Hn)&&Kt!==Hn&&en(Hn),dt==null||dt.registerSubPopup(Mt,Hn)}),an=b.useState(null),Jt=(0,ue.Z)(an,2),kt=Jt[0],Ze=Jt[1],ft=b.useRef(null),St=(0,g.Z)(function(Hn){(0,ne.Sh)(Hn)&&kt!==Hn&&(Ze(Hn),ft.current=Hn)}),Ot=b.Children.only(M),tn=(Ot==null?void 0:Ot.props)||{},et={},ln=(0,g.Z)(function(Hn){var ir,rr,Ar=kt;return(Ar==null?void 0:Ar.contains(Hn))||((ir=(0,o.A)(Ar))===null||ir===void 0?void 0:ir.host)===Hn||Hn===Ar||(Kt==null?void 0:Kt.contains(Hn))||((rr=(0,o.A)(Kt))===null||rr===void 0?void 0:rr.host)===Hn||Hn===Kt||Object.values(Re.current).some(function(Lr){return(Lr==null?void 0:Lr.contains(Hn))||Hn===Lr})}),xn=G(q,Ue,S,U),Tn=G(q,R,ke,ze),Cn=b.useState($e||!1),Yn=(0,ue.Z)(Cn,2),Dn=Yn[0],Zn=Yn[1],On=ye!=null?ye:Dn,Bn=(0,g.Z)(function(Hn){ye===void 0&&Zn(Hn)});(0,p.Z)(function(){Zn(ye||!1)},[ye]);var In=b.useRef(On);In.current=On;var yn=b.useRef([]);yn.current=[];var kn=(0,g.Z)(function(Hn){var ir;Bn(Hn),((ir=yn.current[yn.current.length-1])!==null&&ir!==void 0?ir:On)!==Hn&&(yn.current.push(Hn),Ve==null||Ve(Hn))}),pn=b.useRef(),En=function(){clearTimeout(pn.current)},Ln=function(ir){var rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;En(),rr===0?kn(ir):pn.current=setTimeout(function(){kn(ir)},rr*1e3)};b.useEffect(function(){return En},[]);var Mn=b.useState(!1),zn=(0,ue.Z)(Mn,2),Un=zn[0],ar=zn[1];(0,p.Z)(function(Hn){(!Hn||On)&&ar(!0)},[On]);var Me=b.useState(null),Ie=(0,ue.Z)(Me,2),Te=Ie[0],lt=Ie[1],gt=b.useState(null),_t=(0,ue.Z)(gt,2),zt=_t[0],Wt=_t[1],It=function(ir){Wt([ir.clientX,ir.clientY])},vt=Ft(On,Kt,Be&&zt!==null?zt:kt,se,Ee,k,ut),xt=(0,ue.Z)(vt,11),Nt=xt[0],Zt=xt[1],nn=xt[2],gn=xt[3],Kn=xt[4],mn=xt[5],Sn=xt[6],Fn=xt[7],Nn=xt[8],Vn=xt[9],wn=xt[10],Gn=at(cn,be,W,fe),Wn=(0,ue.Z)(Gn,2),er=Wn[0],bn=Wn[1],Jn=er.has("click"),cr=bn.has("click")||bn.has("contextMenu"),pt=(0,g.Z)(function(){Un||wn()}),Qt=function(){In.current&&Be&&cr&&Ln(!1)};Ke(On,kt,Kt,pt,Qt),(0,p.Z)(function(){pt()},[zt,se]),(0,p.Z)(function(){On&&!(Ee!=null&&Ee[se])&&pt()},[JSON.stringify(k)]);var on=b.useMemo(function(){var Hn=P(Ee,q,Vn,Be);return d()(Hn,ce==null?void 0:ce(Vn))},[Vn,ce,Ee,q,Be]);b.useImperativeHandle(je,function(){return{nativeElement:ft.current,popupElement:At.current,forceAlign:pt}});var Vt=b.useState(0),vn=(0,ue.Z)(Vt,2),Rn=vn[0],nr=vn[1],Xn=b.useState(0),dr=(0,ue.Z)(Xn,2),xr=dr[0],Ur=dr[1],Nr=function(){if(he&&kt){var ir=kt.getBoundingClientRect();nr(ir.width),Ur(ir.height)}},zr=function(){Nr(),pt()},Vr=function(ir){ar(!1),wn(),qe==null||qe(ir)},Zr=function(){return new Promise(function(ir){Nr(),lt(function(){return ir})})};(0,p.Z)(function(){Te&&(wn(),Te(),lt(null))},[Te]);function yr(Hn,ir,rr,Ar){et[Hn]=function(Lr){var Fr;Ar==null||Ar(Lr),Ln(ir,rr);for(var ni=arguments.length,si=new Array(ni>1?ni-1:0),qr=1;qr<ni;qr++)si[qr-1]=arguments[qr];(Fr=tn[Hn])===null||Fr===void 0||Fr.call.apply(Fr,[tn,Lr].concat(si))}}(Jn||cr)&&(et.onClick=function(Hn){var ir;In.current&&cr?Ln(!1):!In.current&&Jn&&(It(Hn),Ln(!0));for(var rr=arguments.length,Ar=new Array(rr>1?rr-1:0),Lr=1;Lr<rr;Lr++)Ar[Lr-1]=arguments[Lr];(ir=tn.onClick)===null||ir===void 0||ir.call.apply(ir,[tn,Hn].concat(Ar))});var Tr=Dt(On,cr,kt,Kt,Le,Ae,ln,Ln),Wr=er.has("hover"),Er=bn.has("hover"),_r,lr;Wr&&(yr("onMouseEnter",!0,Ye,function(Hn){It(Hn)}),yr("onPointerEnter",!0,Ye,function(Hn){It(Hn)}),_r=function(ir){(On||Un)&&Kt!==null&&Kt!==void 0&&Kt.contains(ir.target)&&Ln(!0,Ye)},Be&&(et.onMouseMove=function(Hn){var ir;(ir=tn.onMouseMove)===null||ir===void 0||ir.call(tn,Hn)})),Er&&(yr("onMouseLeave",!1,de),yr("onPointerLeave",!1,de),lr=function(){Ln(!1,de)}),er.has("focus")&&yr("onFocus",!0,K),bn.has("focus")&&yr("onBlur",!1,N),er.has("contextMenu")&&(et.onContextMenu=function(Hn){var ir;In.current&&bn.has("contextMenu")?Ln(!1):(It(Hn),Ln(!0)),Hn.preventDefault();for(var rr=arguments.length,Ar=new Array(rr>1?rr-1:0),Lr=1;Lr<rr;Lr++)Ar[Lr-1]=arguments[Lr];(ir=tn.onContextMenu)===null||ir===void 0||ir.call.apply(ir,[tn,Hn].concat(Ar))}),Pe&&(et.className=d()(tn.className,Pe));var jn=b.useRef(!1);jn.current||(jn.current=st||On||Un);var or=(0,f.Z)((0,f.Z)({},tn),et),ur={},fr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];fr.forEach(function(Hn){We[Hn]&&(ur[Hn]=function(){for(var ir,rr=arguments.length,Ar=new Array(rr),Lr=0;Lr<rr;Lr++)Ar[Lr]=arguments[Lr];(ir=or[Hn])===null||ir===void 0||ir.call.apply(ir,[or].concat(Ar)),We[Hn].apply(We,Ar)})});var Sr=b.cloneElement(Ot,(0,f.Z)((0,f.Z)({},or),ur)),Dr={x:mn,y:Sn},$r=nt?(0,f.Z)({},nt!==!0?nt:{}):null;return b.createElement(b.Fragment,null,b.createElement(_e.Z,{disabled:!On,ref:St,onResize:zr},b.createElement(ee,{getTriggerDOMNode:Ge},Sr)),jn.current&&b.createElement(ge.Provider,{value:mt},b.createElement(Q,{portal:Fe,ref:dn,prefixCls:q,popup:jt,className:d()(wt,on),style:Bt,target:kt,onMouseEnter:_r,onMouseLeave:lr,onPointerEnter:_r,zIndex:Y,open:On,keepDom:Un,fresh:xe,onClick:Xe,onPointerDownCapture:Tr,mask:Le,motion:xn,maskMotion:Tn,onVisibleChanged:Vr,onPrepare:Zr,forceRender:st,autoDestroy:ct,getPopupContainer:it,align:Vn,arrow:$r,arrowPos:Dr,ready:Nt,offsetX:Zt,offsetY:nn,offsetR:gn,offsetB:Kn,onAlign:pt,stretch:he,targetWidth:Rn/Fn,targetHeight:xr/Nn})))});return we}var yt=Je(ae.Z)},9164:function(Pn,Gt,_){"use strict";var f=_(59301),ue=Object.defineProperty,z=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,g,A)=>g in o?ue(o,g,{enumerable:!0,configurable:!0,writable:!0,value:A}):o[g]=A,_e=(o,g)=>{for(var A in g||(g={}))ae.call(g,A)&&d(o,A,g[A]);if(z)for(var A of z(g))B.call(g,A)&&d(o,A,g[A]);return o};const ne=o=>React.createElement("svg",_e({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},o),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));Gt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},11237:function(Pn,Gt,_){"use strict";var f=_(59301),ue=Object.defineProperty,z=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,g,A)=>g in o?ue(o,g,{enumerable:!0,configurable:!0,writable:!0,value:A}):o[g]=A,_e=(o,g)=>{for(var A in g||(g={}))ae.call(g,A)&&d(o,A,g[A]);if(z)for(var A of z(g))B.call(g,A)&&d(o,A,g[A]);return o};const ne=o=>React.createElement("svg",_e({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},o),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));Gt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},9859:function(Pn,Gt,_){"use strict";var f=_(59301),ue=Object.defineProperty,z=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,g,A)=>g in o?ue(o,g,{enumerable:!0,configurable:!0,writable:!0,value:A}):o[g]=A,_e=(o,g)=>{for(var A in g||(g={}))ae.call(g,A)&&d(o,A,g[A]);if(z)for(var A of z(g))B.call(g,A)&&d(o,A,g[A]);return o};const ne=o=>React.createElement("svg",_e({xmlns:"http://www.w3.org/2000/svg",width:14,height:18},o),React.createElement("path",{fill:"#F7B500",d:"M7 4c3.899 0 7 3.141 7 7s-3.101 7-7 7-7-3.141-7-7 3.101-7 7-7Zm1 3H6.395a3.501 3.501 0 0 1-.857 1.245c-.32.294-.752.551-1.297.772L4 9.109V10.9c.448-.154.82-.315 1.117-.483.222-.126.45-.282.685-.466l.236-.194V15H8V7ZM4.812 0c.175 0 .35.16.438.318l1.313 2.309s-2.8.16-4.463 1.672L.088.716C0 .636 0 .557 0 .478 0 .159.263 0 .525 0Zm8.663 0c.263 0 .525.239.525.478 0 .08 0 .159-.088.238L11.9 4.22c-1.662-1.433-4.463-1.592-4.463-1.592L8.75.318C8.75.16 8.925 0 9.188 0Z"}));Gt.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0Y3QjUwMCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptMSAzSDYuMzk1YTMuNTAxIDMuNTAxIDAgMCAxLS44NTcgMS4yNDVjLS4zMi4yOTQtLjc1Mi41NTEtMS4yOTcuNzcyTDQgOS4xMDlWMTAuOWMuNDQ4LS4xNTQuODItLjMxNSAxLjExNy0uNDgzLjIyMi0uMTI2LjQ1LS4yODIuNjg1LS40NjZsLjIzNi0uMTk0VjE1SDhWN1pNNC44MTIgMGMuMTc1IDAgLjM1LjE2LjQzOC4zMThsMS4zMTMgMi4zMDlzLTIuOC4xNi00LjQ2MyAxLjY3MkwuMDg4LjcxNkMwIC42MzYgMCAuNTU3IDAgLjQ3OCAwIC4xNTkuMjYzIDAgLjUyNSAwWm04LjY2MyAwYy4yNjMgMCAuNTI1LjIzOS41MjUuNDc4IDAgLjA4IDAgLjE1OS0uMDg4LjIzOEwxMS45IDQuMjJjLTEuNjYyLTEuNDMzLTQuNDYzLTEuNTkyLTQuNDYzLTEuNTkyTDguNzUuMzE4QzguNzUuMTYgOC45MjUgMCA5LjE4OCAwWiIvPjwvc3ZnPg=="},60885:function(Pn,Gt,_){"use strict";var f=_(59301),ue=Object.defineProperty,z=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,g,A)=>g in o?ue(o,g,{enumerable:!0,configurable:!0,writable:!0,value:A}):o[g]=A,_e=(o,g)=>{for(var A in g||(g={}))ae.call(g,A)&&d(o,A,g[A]);if(z)for(var A of z(g))B.call(g,A)&&d(o,A,g[A]);return o};const ne=o=>React.createElement("svg",_e({xmlns:"http://www.w3.org/2000/svg",width:14,height:18},o),React.createElement("path",{fill:"#B9C4CF",d:"M7 4c3.899 0 7 3.141 7 7s-3.101 7-7 7-7-3.141-7-7 3.101-7 7-7Zm.05 3c-.675 0-1.203.092-1.584.276a2.056 2.056 0 0 0-.887.794c-.18.296-.31.691-.394 1.186l-.038.255 2.004.177c.055-.443.164-.753.326-.928a.814.814 0 0 1 .626-.263.81.81 0 0 1 .611.255c.162.17.243.375.243.614 0 .222-.081.456-.245.703-.164.247-.539.608-1.124 1.084-.96.776-1.613 1.45-1.962 2.02a4.363 4.363 0 0 0-.588 1.552L4 15h6v-1.781H6.877c.184-.197.343-.356.479-.478.136-.122.405-.334.808-.638.677-.523 1.145-1.002 1.401-1.438.257-.437.386-.895.386-1.374 0-.45-.112-.858-.336-1.22a2.043 2.043 0 0 0-.924-.808C8.301 7.088 7.753 7 7.05 7ZM4.812 0c.175 0 .35.16.437.318l1.313 2.309s-2.8.16-4.463 1.672L.088.716C0 .636 0 .557 0 .478 0 .159.263 0 .525 0Zm8.662 0c.263 0 .525.239.525.478 0 .08 0 .159-.088.238L11.9 4.22c-1.662-1.433-4.463-1.592-4.463-1.592L8.75.318C8.75.16 8.925 0 9.188 0Z"}));Gt.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0I5QzRDRiIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptLjA1IDNjLS42NzUgMC0xLjIwMy4wOTItMS41ODQuMjc2YTIuMDU2IDIuMDU2IDAgMCAwLS44ODcuNzk0Yy0uMTguMjk2LS4zMS42OTEtLjM5NCAxLjE4NmwtLjAzOC4yNTUgMi4wMDQuMTc3Yy4wNTUtLjQ0My4xNjQtLjc1My4zMjYtLjkyOGEuODE0LjgxNCAwIDAgMSAuNjI2LS4yNjMuODEuODEgMCAwIDEgLjYxMS4yNTVjLjE2Mi4xNy4yNDMuMzc1LjI0My42MTQgMCAuMjIyLS4wODEuNDU2LS4yNDUuNzAzLS4xNjQuMjQ3LS41MzkuNjA4LTEuMTI0IDEuMDg0LS45Ni43NzYtMS42MTMgMS40NS0xLjk2MiAyLjAyYTQuMzYzIDQuMzYzIDAgMCAwLS41ODggMS41NTJMNCAxNWg2di0xLjc4MUg2Ljg3N2MuMTg0LS4xOTcuMzQzLS4zNTYuNDc5LS40NzguMTM2LS4xMjIuNDA1LS4zMzQuODA4LS42MzguNjc3LS41MjMgMS4xNDUtMS4wMDIgMS40MDEtMS40MzguMjU3LS40MzcuMzg2LS44OTUuMzg2LTEuMzc0IDAtLjQ1LS4xMTItLjg1OC0uMzM2LTEuMjJhMi4wNDMgMi4wNDMgMCAwIDAtLjkyNC0uODA4QzguMzAxIDcuMDg4IDcuNzUzIDcgNy4wNSA3Wk00LjgxMiAwYy4xNzUgMCAuMzUuMTYuNDM3LjMxOGwxLjMxMyAyLjMwOXMtMi44LjE2LTQuNDYzIDEuNjcyTC4wODguNzE2QzAgLjYzNiAwIC41NTcgMCAuNDc4IDAgLjE1OS4yNjMgMCAuNTI1IDBabTguNjYyIDBjLjI2MyAwIC41MjUuMjM5LjUyNS40NzggMCAuMDggMCAuMTU5LS4wODguMjM4TDExLjkgNC4yMmMtMS42NjItMS40MzMtNC40NjMtMS41OTItNC40NjMtMS41OTJMOC43NS4zMThDOC43NS4xNiA4LjkyNSAwIDkuMTg4IDBaIi8+PC9zdmc+"},20463:function(Pn,Gt,_){"use strict";var f=_(59301),ue=Object.defineProperty,z=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,g,A)=>g in o?ue(o,g,{enumerable:!0,configurable:!0,writable:!0,value:A}):o[g]=A,_e=(o,g)=>{for(var A in g||(g={}))ae.call(g,A)&&d(o,A,g[A]);if(z)for(var A of z(g))B.call(g,A)&&d(o,A,g[A]);return o};const ne=o=>React.createElement("svg",_e({xmlns:"http://www.w3.org/2000/svg",width:14,height:18},o),React.createElement("path",{fill:"#D09F18",d:"M7 4c3.899 0 7 3.141 7 7s-3.101 7-7 7-7-3.141-7-7 3.101-7 7-7Zm-.062 3c-.826 0-1.464.172-1.915.517-.4.307-.686.733-.856 1.278l-.058.21 1.908.364c.052-.383.153-.651.302-.804a.772.772 0 0 1 .58-.23c.23 0 .412.07.544.211.133.14.199.33.199.565a.88.88 0 0 1-.265.638.89.89 0 0 1-.662.27 1.35 1.35 0 0 1-.158-.012l-.104-.015-.105 1.536c.278-.085.496-.127.654-.127.298 0 .533.099.707.296.173.197.26.475.26.833 0 .352-.09.634-.27.845a.852.852 0 0 1-.677.316.862.862 0 0 1-.636-.25c-.143-.144-.254-.384-.333-.723l-.036-.177L4 12.826c.132.482.321.882.567 1.2.246.319.56.56.942.726.381.165.902.248 1.563.248.677 0 1.224-.112 1.64-.335.416-.223.735-.542.956-.955.221-.414.332-.845.332-1.296 0-.359-.067-.667-.2-.926a1.633 1.633 0 0 0-.563-.625c-.149-.099-.363-.185-.644-.259.347-.204.606-.441.778-.712a1.66 1.66 0 0 0 .257-.908 1.82 1.82 0 0 0-.634-1.42C8.571 7.189 7.886 7 6.938 7ZM4.813 0c.175 0 .35.17.437.338l1.313 2.453s-2.8.17-4.463 1.776L.088.761C0 .677 0 .592 0 .507 0 .17.263 0 .525 0Zm8.662 0c.263 0 .525.254.525.507 0 .085 0 .17-.088.254L11.9 4.483C10.238 2.96 7.437 2.79 7.437 2.79L8.75.338C8.75.17 8.925 0 9.188 0Z"}));Gt.Z="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxOCI+PHBhdGggZmlsbD0iI0QwOUYxOCIgZD0iTTcgNGMzLjg5OSAwIDcgMy4xNDEgNyA3cy0zLjEwMSA3LTcgNy03LTMuMTQxLTctNyAzLjEwMS03IDctN1ptLS4wNjIgM2MtLjgyNiAwLTEuNDY0LjE3Mi0xLjkxNS41MTctLjQuMzA3LS42ODYuNzMzLS44NTYgMS4yNzhsLS4wNTguMjEgMS45MDguMzY0Yy4wNTItLjM4My4xNTMtLjY1MS4zMDItLjgwNGEuNzcyLjc3MiAwIDAgMSAuNTgtLjIzYy4yMyAwIC40MTIuMDcuNTQ0LjIxMS4xMzMuMTQuMTk5LjMzLjE5OS41NjVhLjg4Ljg4IDAgMCAxLS4yNjUuNjM4Ljg5Ljg5IDAgMCAxLS42NjIuMjcgMS4zNSAxLjM1IDAgMCAxLS4xNTgtLjAxMmwtLjEwNC0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gOS4xODggMFoiLz48L3N2Zz4="},84216:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return d}});var f=_(37639),ue={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},z=_(32637),ae=_(59301),d=({type:_e,style:ne})=>{const o=ae.createElement("div",{className:ue.wrap,onClick:g=>{g.preventDefault(),g.stopPropagation()}},ae.createElement("p",null,_e==="shixun"||_e==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",ae.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",_e==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),ae.createElement("div",{className:ue.contact},ae.createElement("div",{className:ue.img},ae.createElement("img",{src:z,width:"124px",height:"124px"})),ae.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return ae.createElement(f.Z,{content:o},ae.createElement("span",{className:ue.text,style:ne},"\u9AD8\u6D88\u8017"))}},57884:function(Pn,Gt,_){"use strict";var f=_(59301),ue=_(93314),z=_(99571),ae=Object.defineProperty,B=Object.defineProperties,d=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,g=(b,I,j)=>I in b?ae(b,I,{enumerable:!0,configurable:!0,writable:!0,value:j}):b[I]=j,A=(b,I)=>{for(var j in I||(I={}))ne.call(I,j)&&g(b,j,I[j]);if(_e)for(var j of _e(I))o.call(I,j)&&g(b,j,I[j]);return b},p=(b,I)=>B(b,d(I));const E=({img:b,buttonProps:I={},styles:j={},customText:$,ButtonText:le,ButtonClick:F,Buttonclass:H,ButtonTwo:D,imgStyles:w,loading:Q=!1,className:re=""})=>f.createElement("section",{className:`tc animated fadeIn ${re}`,style:A({color:"#999",margin:"100px auto",visibility:Q?"hidden":"visible"},j)},f.createElement("img",{src:b||ue,style:p(A({},w),{pointerEvents:"none",userSelect:"none"})}),f.createElement("p",{className:"mt20 font14"},$||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),le&&f.createElement(z.ZP,A({className:H,onClick:F},I),le),D&&D);Gt.Z=E},41550:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return H}});var f=_(59301),ue={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},z=_(99571),ae=_(70557),B=_(51124),d=_(25399),_e=_(49661),ne=_(72664),o=_(57884),g=_(90524),A=_(14794),p=_(59301),E=Object.defineProperty,b=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,$=(D,w,Q)=>w in D?E(D,w,{enumerable:!0,configurable:!0,writable:!0,value:Q}):D[w]=Q,le=(D,w)=>{for(var Q in w||(w={}))I.call(w,Q)&&$(D,Q,w[Q]);if(b)for(var Q of b(w))j.call(w,Q)&&$(D,Q,w[Q]);return D},F=(D,w,Q)=>new Promise((re,ee)=>{var oe=at=>{try{me(Q.next(at))}catch(Z){ee(Z)}},ge=at=>{try{me(Q.throw(at))}catch(Z){ee(Z)}},me=at=>at.done?re(at.value):Promise.resolve(at.value).then(oe,ge);me((Q=Q.apply(D,w)).next())}),H=({editOffice:D="view",data:w,issaver:Q,onSaver:re,theme:ee,type:oe,filename:ge,monacoEditor:me,className:at,style:Z,close:T,onClose:P,hasMask:G,disabledDownload:ie,onImgDimensions:X,showNodata:y,recordInfo:v})=>{const[O,pe]=(0,f.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[He,tt]=(0,f.useState)(""),[Ct,Rt]=(0,f.useState)(),Ft=window.ENV==="build"?"/react/build":"",Ht=location.host.startsWith("localhost")?g.Z.PROXY_SERVER:g.Z.API_SERVER,qt=10*(1024*1024),Dt=(0,f.useRef)();w!=null&&w.startsWith("/api")&&oe!=="txt"&&(w=g.Z.API_SERVER+w);const sn=V=>V.substring(V.lastIndexOf("/")+1).split(".").pop();ge&&me&&(me.filename=ge),(0,f.useEffect)(()=>{var V,je;const Qe=(je=(V=document.cookie)==null?void 0:V.replace(/\s/g,""))==null?void 0:je.split(";");Qe==null||Qe.map(q=>{let M=q.split("=");M[0]==="_educoder_session"&&tt(M[1])})},[]),(0,f.useEffect)(()=>{oe==="office"&&(w.indexOf("bigfilescdn.")>-1||w.indexOf("bigfiles1")>-1?Rt({url:w,fileType:sn(w),model:w.indexOf("model=edit")?"edit":"view"}):yt())},[oe,w]);function Je(V){return F(this,null,function*(){V.data.type==="pdfdata"&&(re(V.data.data),window.removeEventListener("message",Je,!1)),console.log("mess---:",V.data)})}const yt=()=>F(void 0,null,function*(){console.log("data:",w);let V=w;w.startsWith("http")||(V=location.origin+V);let je=new URL(V).pathname.split("/").pop();const Qe=yield(0,ne.gJ)({attachment_id:je});Qe.url=Ht+Qe.url,Rt(Qe)}),Fe=()=>{if(w.startsWith("http")||w.startsWith("blob:")){we();return}(0,_e.Sv)(ge||"educoder",w,ge)},we=()=>{v&&(0,A.fc)({id:v==null?void 0:v.id,watch_type:1,course_id:v==null?void 0:v.course_id}),(0,_e.Nd)(ge||"educoder",decodeURIComponent(w))};return p.createElement("div",{style:le({},Z||{}),className:`${G&&ue.bgBlack} ${oe?ue.wrp:"hide"}`},T&&p.createElement("div",{className:ue.close,ref:Dt},!!X&&p.createElement(d.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Dt.current},p.createElement("span",{onClick:()=>{P(),X()}},p.createElement("i",{className:"icon-yulanpizhu"}))),!ie&&p.createElement(d.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Dt.current},p.createElement("span",{onClick:we},p.createElement("i",{className:"icon-quxiaozhiding"}))),Q&&p.createElement(d.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Dt.current},p.createElement("span",{className:"",onClick:()=>{const V=document.getElementById("pdfiframe");window.addEventListener("message",Je,!1),setTimeout(()=>{V.contentWindow.postMessage("getData","*")},300)}},p.createElement("i",{className:"icon-baocun"}))),p.createElement(d.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Dt.current},p.createElement("span",{className:"",onClick:()=>{P()}},p.createElement("i",{className:"icon-guanbi1"})))),p.createElement("div",{className:`${ue[at]} ${at} ${ue.monaco} ${oe==="txt"?"show":"hide"}`},oe==="txt"&&p.createElement(p.Fragment,null,p.createElement(B.ZP,le({},me)))),oe==="audio"&&p.createElement("audio",{src:`${(w==null?void 0:w.indexOf("http://"))>-1||(w==null?void 0:w.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${w}`,autoPlay:!0}),oe==="video"&&p.createElement(p.Fragment,null,(w==null?void 0:w.indexOf("http"))>-1?p.createElement("video",{controls:!0,src:`${w}`,autoPlay:!0}):p.createElement("video",{controls:!0,src:`data:video/mp4;base64,${w}`,autoPlay:!0})),oe==="office"&&Ct&&p.createElement("iframe",{src:`${Ft}/office.html?key=${Ct.key}&url=${btoa(Ct.url)}&callbackUrl=${Ht+(Ct.callbackUrl||"")}&fileType=${Ct.fileType}&title=${Ct.title||""}&model=${D}&officeServer=${g.Z.ONLYOFFICE}&disabledDownload=${!!ie}`}),oe==="html"&&p.createElement("iframe",{src:w+"&disposition=inline"}),oe==="pdf"&&p.createElement("iframe",{id:"pdfiframe",src:`${Ft}/js/pdfview/index.html?filename=${ge||"educoder.pdf"}&url=${encodeURIComponent(w)}&disabledDownload=${!!ie}&model=${D}`}),oe==="image"&&p.createElement("img",{src:`${(w==null?void 0:w.indexOf("http://"))>-1||(w==null?void 0:w.indexOf("https://"))>-1?"":"data:image/png;base64,"}${w}`}),(oe==="other"||oe==="download")&&p.createElement(p.Fragment,null,y?p.createElement(o.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:p.createElement(z.ZP,{icon:p.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Fe,disabled:ie},"\u4E0B\u8F7D")}):p.createElement(z.ZP,{type:"primary",size:"middle",onClick:Fe,disabled:ie},p.createElement(ae.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),oe==="flowChart"&&p.createElement("div",{className:"embed"},p.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${w||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},38394:function(Pn,Gt,_){"use strict";_.d(Gt,{z:function(){return me},Z:function(){return at}});var f=_(59301),ue=_(88831),z=_(90290),ae=_(64018),B=_(81098),d=_(90524),_e=_(49661),ne=_(15342),o=_(77736),g=_(99571),A=_(1012),p=_(41550),E=_(59301),I=({html:Z})=>{const T=(0,f.useRef)(null),P=(0,f.useRef)(null),G=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 56px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,f.useEffect)(()=>{const ie=T.current.attachShadow({mode:"open"});P.current=document.createElement("div"),P.current.className="markdown-body",P.current.innerHTML=Z,ie.appendChild(P.current);const X=document.createElement("style");return X.textContent=G,ie.appendChild(X),()=>{ie.innerHTML=""}},[]),(0,f.useEffect)(()=>{P.current&&(P.current.innerHTML=Z)},[Z]),E.createElement("div",{ref:T})};function j(Z){const T=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],P=new RegExp(`\\b(${T.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Z.replace(P,"").trim()}var $={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},le=Object.defineProperty,F=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,w=(Z,T,P)=>T in Z?le(Z,T,{enumerable:!0,configurable:!0,writable:!0,value:P}):Z[T]=P,Q=(Z,T)=>{for(var P in T||(T={}))H.call(T,P)&&w(Z,P,T[P]);if(F)for(var P of F(T))D.call(T,P)&&w(Z,P,T[P]);return Z};const re="@\u2581\u2581@",ee="@\u2581@",oe=/<pre[^>]*>/g;function ge(Z){let T=document.createElement("div");return T.innerHTML=Z,T.childNodes.length===0?"":T.childNodes[0].nodeValue}const me=(Z,T)=>{Z=Z||"";const P=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,G=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ie=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,X=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return T?Z.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(P,(y,v,O,pe,He,tt,Ct)=>{const Rt=v||pe||tt,Ft=O||He||Ct||"?";return d.Z.API_SERVER+"/api/attachments/"+Rt+Ft+"&t="+(0,_e.Jn)(Rt,Date.now())+(y.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Z=Z.replace(X,(y,v,O,pe,He,tt,Ct)=>{const Rt=v||pe||tt,Ft=O||He||Ct||"?";return d.Z.API_SERVER+"/attachments/download/"+Rt+Ft+"&t="+(0,_e.Jn)(Rt,Date.now())+(y.indexOf(")")>-1?")":"&")}).replace(P,(y,v,O,pe,He,tt,Ct)=>{const Rt=v||pe||tt,Ft=O||He||Ct||"?";return d.Z.API_SERVER+"/api/attachments/"+Rt+Ft+"&t="+(0,_e.Jn)(Rt,Date.now())+(y.indexOf(")")>-1?")":"&")}).replace(G,(y,v,O,pe,He)=>{const tt=v||pe,Ct=O||He||"";return'"'+d.Z.API_SERVER+"/api/attachments/"+tt+Ct+tt+Ct+"&t="+(0,_e.Jn)(tt,Date.now())}).replace(ie,(y,v,O,pe,He)=>{const tt=v||pe,Ct=O||He||"";return"("+d.Z.API_SERVER+"/files/uploads/"+tt+Ct+tt+Ct+"&t="+(0,_e.Jn)(tt,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),Z)};var at=({value:Z="",edit:T=!1,className:P,showTextOnly:G,showLines:ie,style:X={},stylesPrev:y={},highlightKeywords:v,showProgramFill:O,isProgramFill:pe,disabledFill:He=!1,programFillValue:tt,openEditor:Ct=()=>{},onFillChange:Rt=Ke=>{},onFillBlur:Ft=()=>{},onFillFocus:Ht=()=>{}})=>{let Ke=j(String(Z||""));const qt=(0,f.useRef)(),Dt=(0,f.useRef)(),[sn,Je]=(0,f.useState)(""),[yt,Fe]=(0,f.useState)("office"),[we,V]=(0,f.useState)([]),je=(0,f.useRef)("a"+(0,A.Z)()),Qe={},q=N=>/<style[\s\S]*?>/i.test(N||""),M=(N,Le,De)=>{const Ae=document.createElement(N===ee?"input":"textarea");Ae.style.width="100%",Ae.style.height=N===ee?"40px":"151px",Ae.rows=5,Ae.spellcheck=!1,Ae.name="edu-program-fill",Ae.placeholder="\u8BF7\u8F93\u5165",Ae.dataset.id=Le;const it=Object.keys(Qe).length;return Qe[it]=Ae,`<span class="edu-program-fill-wrap ${N===ee?"":"show"}" style="width:${N===ee?"600px":"100%"}" title=${De||""}><span>${Ae.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Se(N){return N=N.replace(/!\[.*?\]\(.*?\)/g,""),N=N.replace(/\[.*?\]\(.*?\)/g,""),N=N.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),N=N.replace(/<embed.*?>/g,""),N=N.replace(/<img.*?>/g,""),N=N.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),N=N.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),N=N.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),N=N.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),N}const be=N=>!G&&q(Ke)?N:N.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Le,De){let Ae=De.replace(/(\n|\r)/g,"").split("}"),it=[];return Ae.map(st=>{st!=""&&it.push(`.${je.current} ${st}`)}),`<style>${it.join("}")}</style>`}),W=(0,f.useMemo)(()=>{try{const Ae=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,it=/\"\/api\/attachments\/|\"\/attachments\/download\//g,st=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Oe=/\(\/attachments\/download\//g;Ke=Ke.replace(Oe,"("+d.Z.API_SERVER+"/attachments/download/").replace(Ae,"("+d.Z.API_SERVER+"/api/attachments/").replace(it,'"'+d.Z.API_SERVER+"/api/attachments/").replace(st,'"'+d.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),qt.current.style.display="none"}catch(Ae){}if(O){let Ae=-1;return Ke=Ke.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(it,st,Oe){var Et;return++Ae,M(it,Ae,(Et=tt==null?void 0:tt[Ae])==null?void 0:Et.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${be(Ke||"")}</pre>`}let N=be(Ke);N=(0,z.ZP)(N);const Le=(0,z.ez)();Ke.match(/\[TOC\]/)&&(N=N.replace("<p>[TOC]</p>",(0,z.Qv)()),(0,z.Iy)()),N=N.replace(/(__special_katext_id_\d+__)/g,(Ae,it)=>{const{type:st,expression:Oe}=Le[it];return(0,ne.renderToString)(ge(Oe)||"",{displayMode:st==="block",throwOnError:!1,output:"html"})}),N=N.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,z.AL)();const De=document.createElement("div");if(De.innerHTML=N,G)return De.innerText;if(v){const Ae=v.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Ve(De,Ae),De.innerHTML}return setTimeout(()=>ot(),500),De.innerHTML},[Ke,v]);(0,f.useEffect)(()=>{qe.current&&qe.current.querySelectorAll(["input","textarea"]).forEach(Le=>{Le.oninput=fe,Le.onblur=ye,Le.onfocus=$e})},[we]),(0,f.useEffect)(()=>{var N,Le,De,Ae,it;if(tt!=null&&tt.length)try{const st=qe.current.querySelectorAll(".edu-program-fill-score"),Oe=qe.current.querySelectorAll('[name="edu-program-fill"]');for(const[Et,jt]of Oe.entries())jt.value=((N=tt==null?void 0:tt[Et])==null?void 0:N.value)||"",((Le=tt==null?void 0:tt[Et])==null?void 0:Le.type)==="warning"?jt.className="program-fill-warning":((De=tt==null?void 0:tt[Et])==null?void 0:De.type)==="success"?jt.className="program-fill-success":jt.className="";for(const[Et,jt]of st.entries())jt.innerHTML=(Ae=tt==null?void 0:tt[Et])!=null&&Ae.score?`${(it=tt==null?void 0:tt[Et])==null?void 0:it.score}\u5206`:"";V(tt)}catch(st){console.log(st,"error")}},[tt]);const fe=N=>{we[N.target.dataset.id]=we[N.target.dataset.id]||{},we[N.target.dataset.id].value=N.target.value,V([...we]),Rt(we,N.target.dataset.id)},ye=N=>{we[N.target.dataset.id]=we[N.target.dataset.id]||{},we[N.target.dataset.id].value=N.target.value,V([...we]),Ft(we,N.target.dataset.id)},$e=N=>{we[N.target.dataset.id]=we[N.target.dataset.id]||{},we[N.target.dataset.id].value=N.target.value,V([...we]),Ht(we,N.target.dataset.id)};function Ve(N,Le){return N.childNodes.forEach(De=>{var Ae;if(De.childNodes.length>0)Ve(De,Le);else if(De.nodeName!=="IMG")if(De.innerHTML)De.innerHTML=(Ae=De.innerHTML)==null?void 0:Ae.replace(new RegExp(Le,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const it=document.createElement("span");it.innerHTML=De.textContent.replace(new RegExp(Le,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),De.replaceWith(it)}})}const qe=(0,f.useRef)();z.jb.WebkitLineClamp=ie,ie&&(X=Q(Q({},X),z.jb));function Ye(N){let Le=N.target;if(Le.tagName.toUpperCase()==="A"){let De=Le.getAttribute("href");if(De.indexOf("office")>-1)N.preventDefault(),Je(De),Fe("office");else if(De.indexOf("application/pdf")>-1)N.preventDefault(),Je(De),Fe("pdf");else if(De.indexOf("text/html")>-1)N.preventDefault(),Je(De),Fe("html");else if(De.startsWith("#")){N.preventDefault();let Ae=document.getElementById(De.replace("#",""));Ae&&Ae.scrollIntoView(!0)}}}const ot=()=>{var N;const Le=(N=qe.current)==null?void 0:N.querySelectorAll("video");Le==null||Le.forEach(De=>{if(De.oncontextmenu=()=>!1,De.src.indexOf(".m3u8")>-1&&!De.canPlayType("application/vnd.apple.mpegurl")){if(B.ZP.isSupported()){var Ae=new B.ZP;Ae.loadSource(De.src),Ae.attachMedia(De)}}})};(0,f.useEffect)(()=>{if(qe.current&&W&&W.match(oe)&&window.PR.prettyPrint(),qe.current)return qe.current.addEventListener("click",Ye),()=>{var N;(N=qe.current)==null||N.removeEventListener("click",Ye),(0,z.AL)(),(0,z.Iy)()}},[W,qe.current,Ye]);const de=N=>{N.target.nodeName==="IMG"&&N.target.className.indexOf("draw-flowchart")>-1?(qt.current.style.zIndex=1,qt.current.style.display="flex",qt.current.style.width=N.target.clientWidth+"px",qt.current.style.height=N.target.clientHeight+"px",qt.current.style.top=N.target.offsetTop+"px",qt.current.style.left=N.target.offsetLeft+"px",N.target.id&&(Dt.current=N.target.id)):qt.current.style.display="none"},K=()=>{qt.current.style.display="none"};return(0,f.useEffect)(()=>{var N;const Le=De=>{De.preventDefault(),De.clipboardData.setData("text",window.getSelection().toString())};return(N=qe.current)==null||N.addEventListener("copy",Le),()=>{var De;(De=qe.current)==null||De.removeEventListener("copy",Le)}},[qe.current]),f.createElement("div",{style:{position:"relative"},onMouseLeave:K},G&&f.createElement("div",{ref:qe,className:`${$.mdBody} `},W),!G&&!q(W)&&f.createElement("div",{ref:qe,style:Q({},X),onMouseOver:de,className:`${P||""} ${He?"disabled-fill":""} markdown-body ${$.mdBody} ${je.current}`,dangerouslySetInnerHTML:{__html:W}}),!G&&q(W)&&f.createElement(I,{html:W}),f.createElement("div",{ref:qt,className:`${$.button} ${T?"":$.previewFlowChart}`},f.createElement(o.Z,null,f.createElement(g.ZP,{onClick:()=>{T?Ct(Dt.current):(Je(Dt.current),Fe("flowChart"))}},T?"\u7F16\u8F91":"\u9884\u89C8"))),f.createElement(p.Z,{close:!0,data:sn,type:sn!=null&&sn.length?yt:"",style:Q({},y),onClose:()=>Je("")}))}},51124:function(Pn,Gt,_){"use strict";_.d(Gt,{SV:function(){return qt},ZP:function(){return Ke}});var f=_(59301),ue=_(76374);const z={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},ae={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},B={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},d={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},_e={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var ne=_(53184),o=_.n(ne),g=(Dt,sn,Je)=>new Promise((yt,Fe)=>{var we=Qe=>{try{je(Je.next(Qe))}catch(q){Fe(q)}},V=Qe=>{try{je(Je.throw(Qe))}catch(q){Fe(q)}},je=Qe=>Qe.done?yt(Qe.value):Promise.resolve(Qe.value).then(we,V);je((Je=Je.apply(Dt,sn)).next())});const A={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},p=(Dt,sn,Je,yt)=>{const Fe=sn.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Je.lineNumber,endColumn:Je.column});return Array.from(new Set(Fe.match(/\b\w{2,}\b/g)||[])).map(V=>({label:V,kind:Dt.languages.CompletionItemKind.Text,insertText:V,range:yt}))},E=(Dt,sn,Je,yt)=>{Dt.languages.registerCompletionItemProvider(sn,{provideCompletionItems(Fe,we){const V=Fe.getWordUntilPosition(we),je={startLineNumber:we.lineNumber,endLineNumber:we.lineNumber,startColumn:V.startColumn,endColumn:V.endColumn},Qe=Fe.getLineContent(we.lineNumber).substring(V.startColumn-2,V.endColumn);return{suggestions:[...p(Dt,Fe,we,je),...Je.map(M=>({label:M,kind:Dt.languages.CompletionItemKind.Keyword,documentation:M,insertText:M,insertTextRules:Dt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je})),...yt.map(M=>({label:M.label,kind:Dt.languages.CompletionItemKind.Snippet,documentation:M.content,insertText:Qe.startsWith("#")?M.content.replace(/#/,""):M.content,insertTextRules:Dt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:je}))]}}})};var b=Dt=>{A.languages.forEach(sn=>{Dt.languages.registerDocumentFormattingEditProvider(sn,{provideDocumentFormattingEdits(Je){return g(this,null,function*(){const yt=o()(Je.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Je.getFullModelRange(),text:yt}]})}})}),E(Dt,"java",ae.keywords,ae.quickKey),E(Dt,"cpp",B.keywords,B.quickKey),E(Dt,"c",z.keywords,[]),E(Dt,"python",d.keywords,d.quickKey),E(Dt,"scala",_e.keywords,_e.quickKey)};const I="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var j=Object.defineProperty,$=(Dt,sn,Je)=>sn in Dt?j(Dt,sn,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Dt[sn]=Je,le=(Dt,sn,Je)=>$(Dt,typeof sn!="symbol"?sn+"":sn,Je);const F=class Dl{constructor(sn,Je,yt){this.placeholder=sn,this.editor=Je,this.monaco=yt,Je.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Dl.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};le(F,"ID","editor.widget.placeholderHint");var D=F,w=_(96236),Q=_(6767),re=_(25399),ee=_(89392),oe=_(33796),ge=_(56102),me=Object.defineProperty,at=Object.defineProperties,Z=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,ie=(Dt,sn,Je)=>sn in Dt?me(Dt,sn,{enumerable:!0,configurable:!0,writable:!0,value:Je}):Dt[sn]=Je,X=(Dt,sn)=>{for(var Je in sn||(sn={}))P.call(sn,Je)&&ie(Dt,Je,sn[Je]);if(T)for(var Je of T(sn))G.call(sn,Je)&&ie(Dt,Je,sn[Je]);return Dt},y=(Dt,sn)=>at(Dt,Z(sn)),v=(Dt,sn)=>{var Je={};for(var yt in Dt)P.call(Dt,yt)&&sn.indexOf(yt)<0&&(Je[yt]=Dt[yt]);if(Dt!=null&&T)for(var yt of T(Dt))sn.indexOf(yt)<0&&G.call(Dt,yt)&&(Je[yt]=Dt[yt]);return Je},O=(Dt,sn,Je)=>new Promise((yt,Fe)=>{var we=Qe=>{try{je(Je.next(Qe))}catch(q){Fe(q)}},V=Qe=>{try{je(Je.throw(Qe))}catch(q){Fe(q)}},je=Qe=>Qe.done?yt(Qe.value):Promise.resolve(Qe.value).then(we,V);je((Je=Je.apply(Dt,sn)).next())});function pe(Dt){return/^\d+$/.test(Dt)?`${Dt}px`:Dt}function He(){}let tt=!1;const Ct={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Rt(Dt=[]){let sn=Dt;if(Array.isArray(Dt)){for(let Je=0;Je<Dt.length;Je++){let yt=Ct[Dt[Je]];if(yt)return yt}return sn[0]}return Ct[sn]||sn}let Ft=null;const Ht=()=>O(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Dt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Dt)}});var Ke=Dt=>{var sn=Dt,{width:Je="100%",height:yt="100%",value:Fe,language:we="javascript",style:V={},options:je={},overrideServices:Qe={},theme:q="vs-dark",onEditBlur:M,isCopy:Se=!1,onSave:be,autoHeight:W=!1,forbidCopy:fe=!1,onChange:ye=He,editorDidMount:$e=He,onFocus:Ve=He,onBreakPoint:qe=He,breakPointValue:Ye=[],filename:ot="educoder.txt",errorLine:de,errorContent:K="",highlightLine:N,openBreakPoint:Le=!1,placeholder:De="",showMiniMap:Ae=!0}=sn,it=v(sn,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const st=(0,f.useRef)(),Oe=(0,f.useRef)({}),Et=(0,f.useRef)(),jt=(0,f.useRef)(),wt=(0,f.useRef)([]),Bt=(0,f.useRef)(!1),se=(0,f.useRef)(),ve=(0,f.useRef)(),Ee=(0,f.useRef)(!1),[k,Y]=(0,f.useState)(!1);function he(){let We;return st.current&&(We=new ue.Z(ct=>{for(let Lt of ct)(Lt.target.offsetHeight>0||Lt.target.offsetWidth>0)&&Oe.current.instance.layout()}),We.observe(st.current)),We}function ce(){Q.ZP.warning({content:decodeURIComponent(I),key:"monaco-editor-tip"})}const xe=()=>{let We=Oe.current.instance;if(Fe!=null&&We&&k){const ct=We.getModel();ct&&Fe!==ct.getValue()&&(tt=!0,ct.setValue(Fe),We.layout(),tt=!1)}};(0,f.useEffect)(()=>{const We=oe.Z.subscribe("formatDocument",ct=>{var Lt;let Pt=Oe.current.instance;(Lt=Pt==null?void 0:Pt.getAction)==null||Lt.call(Pt,"editor.action.formatDocument").run()});return window.updateMonacoValue=ct=>{ye(ct)},We},[]),(0,f.useEffect)(()=>{var We;let ct=Oe.current.instance;jt.current&&clearTimeout(jt.current),jt.current=setTimeout(()=>{xe()},500),Fe&&(Fe!=null&&Fe.length)&&((We=ct==null?void 0:ct.updateOptions)==null||We.call(ct,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Fe.split(/\r\n|\r|\n/g).length))+3,5)}))},[Fe,k,Oe.current]),(0,f.useEffect)(()=>{if(de&&Oe.current&&Oe.current.instance){let ct=Oe.current.instance;ct.changeViewZones(function(Lt){var Pt=document.createElement("div");Pt.style.padding="10px 20px",Pt.style.width="calc(100% - 20px)",Pt.className="my-error-line-wrp",Pt.innerHTML=K,Lt.addZone({afterLineNumber:de||11,heightInLines:3,domNode:Pt})});var We={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};ct.addOverlayWidget(We),ct.revealPositionInCenter({lineNumber:20,column:1})}},[de,Oe.current,k]);const Be=(We="",ct)=>{if(!We||We.trim()==="")return!0;const Pt=Oe.current.instance.getModel().getLineTokens(ct);let cn=!1;for(let Ne=0;Ne<2;Ne++)Pt.getStandardTokenType(Ne)===1&&(cn=!0);return cn};(0,f.useEffect)(()=>{var We;const ct=(We=Oe.current)==null?void 0:We.instance;if(ct&&k&&fe){const Lt=ct.onDidBlurEditorWidget(()=>{Ee.current=!1}),Pt=ct.onDidFocusEditorText(()=>{Ee.current=!0});return()=>{Lt.dispose(),Pt.dispose()}}},[Oe.current,k,fe]),(0,f.useEffect)(()=>{var We;if((We=Oe.current)!=null&&We.instance&&k&&Le){let ct=Oe.current.instance,Lt=ct.getModel();if(!Lt)return;(()=>{var At;let dn=[],an=[];const Jt=Lt.getAllDecorations();for(let Ze of Jt)Ze.options.className==="highlighted-line"&&(dn.push((At=Ze==null?void 0:Ze.range)==null?void 0:At.startLineNumber),an.push(Ze==null?void 0:Ze.id));if(N===dn[0])return;Lt.deltaDecorations(an,[]);const kt=Lt.getLineCount();N&&N<=kt&&(ct.deltaDecorations([],[{range:new Ft.Range(N,1,N,Lt.getLineMaxColumn(N)),options:{isWholeLine:!0,className:"highlighted-line"}}]),ct.revealLineInCenter(N))})();const cn=(At=!1)=>{var dn;let an=[],Jt=[];const kt=Lt.getAllDecorations();for(let Ze of kt)Ze.options.linesDecorationsClassName==="breakpoints-select"&&(an.push((dn=Ze==null?void 0:Ze.range)==null?void 0:dn.startLineNumber),Jt.push(Ze==null?void 0:Ze.id));if(At)return{lines:an,ids:Jt};qe(an)},Ne=At=>O(void 0,null,function*(){let dn={range:new Ft.Range(At,1,At,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Lt.deltaDecorations([],[dn]),cn()}),Re=At=>O(void 0,null,function*(){let dn=[];const an=ct.getLineDecorations(At);for(let Jt of an)Jt.options.linesDecorationsClassName==="breakpoints-select"&&dn.push(Jt.id);yield Lt.deltaDecorations(dn,[]),cn()}),dt=At=>{let dn=ct.getLineDecorations(At);for(let an of dn)if(an.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ee.isEqual)(Ye,cn(!0).lines)){Lt.deltaDecorations(cn(!0).ids,[]);const At=Ye.map(dn=>({range:new Ft.Range(dn,1,dn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Lt.deltaDecorations([],At)}const mt=ct.onDidChangeModelContent(At=>{let dn=ct.getPosition();if(dn){let an=dn.lineNumber;clearTimeout(ve.current),ve.current=setTimeout(()=>{Be(Lt.getLineContent(an),an)?Re(an):dt(an)?(Re(an),Ne(an)):cn()},100)}}),Mt=ct.onMouseDown(At=>{var dn,an,Jt;if(At.target.detail&&((Jt=(an=(dn=At.target)==null?void 0:dn.element)==null?void 0:an.className)!=null&&Jt.includes("line-numbers"))){let kt=At.target.position.lineNumber;if(Be(Lt.getLineContent(kt),kt))return;dt(kt)?Re(kt):Ne(kt)}}),bt=At=>{let dn={range:new Ft.Range(At,1,At,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};wt.current=ct.deltaDecorations(wt.current,[dn])},Tt=()=>{wt.current=ct.deltaDecorations(wt.current,[])},Kt=ct.onMouseMove(At=>{var dn,an,Jt;if(Tt(),At.target.detail&&((Jt=(an=(dn=At.target)==null?void 0:dn.element)==null?void 0:an.className)!=null&&Jt.includes("line-numbers"))){let kt=At.target.position.lineNumber;if(Be(Lt.getLineContent(kt),kt))return;bt(kt)}}),en=ct.onMouseLeave(()=>{Tt()});return()=>{mt.dispose(),Mt.dispose(),Kt.dispose(),en.dispose()}}},[Oe.current,k,Ye,N,Le,we]),(0,f.useEffect)(()=>{var We;(We=Oe.current)!=null&&We.instance&&Le&&Oe.current.instance.setPosition({lineNumber:0,column:0})},[N]);function Xe(){let We=Oe.current.instance;if(We){const ct=We.getSelection(),Lt=Oe.current.pastePos||{},Pt=new Ft.Range(Lt.startLineNumber||ct.endLineNumber,Lt.startColumn||ct.endColumn,Lt.endLineNumber||ct.endLineNumber,Lt.endColumn||ct.endColumn);setTimeout(()=>{We.executeEdits("",[{range:Pt,text:""}])},300)}}function ut(We){(window.navigator.platform.match("Mac")?We.metaKey:We.ctrlKey)&&We.keyCode==83&&(We.preventDefault(),be())}const nt=()=>{if(W&&Oe.current.instance){const We=Oe.current.instance.getContentHeight();Pe(We<yt?yt:We)}else Pe(yt)};function Ue(We){var ct=document.createEvent("MouseEvents");ct.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),We.dispatchEvent(ct)}const R=We=>{if(!Ee.current)return;const{keyCode:ct,ctrlKey:Lt,metaKey:Pt,target:cn,type:Ne}=We;return(Ne==="paste"||(ct===67||ct===86)&&(Pt||Lt))&&cn.nodeName==="TEXTAREA"&&(ce(),We.preventDefault()),!1};function U(We,ct){var Lt=window.URL||window.webkitURL||window,Pt=new Blob([ct]),cn=document.createElementNS("http://www.w3.org/1999/xhtml","a");cn.href=Lt.createObjectURL(Pt),cn.download=We,Ue(cn)}(0,f.useEffect)(()=>{nt()},[nt]),(0,f.useEffect)(()=>{st.current&&!k&&Promise.all([_.e(8909),_.e(5028)]).then(_.bind(_,71448)).then(We=>{try{Ft=We,Oe.current.instance=Ft.editor.create(st.current,{value:Fe,language:Rt(we),theme:q,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ae||!1}},Qe);const ct=Oe.current.instance;let cn=[...w.BH._menuItems].find(mt=>mt[0]._debugName=="EditorContext")[1],Ne=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Re=(mt,Mt)=>{var bt,Tt;let Kt=mt._first;do Mt.includes((Tt=(bt=Kt.element)==null?void 0:bt.command)==null?void 0:Tt.id)&&mt._remove(Kt);while(Kt=Kt.next)};if($e(ct,Ft),setTimeout(()=>{nt(),Oe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{U(ot||"educoder.txt",ct.getValue())}})},500),Oe.current.subscription=ct.onDidChangeModelContent(mt=>{Bt.current?clearTimeout(se.current):(nt(),ye(ct.getValue(),mt)),se.current=setTimeout(()=>{Bt.current=!1},500)}),window.Monaco||b(Ft,Rt(we)),fe&&(Re(cn,Ne),st.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",R),window.removeEventListener("paste",R),window.addEventListener("keydown",R),window.addEventListener("paste",R)),window.Monaco=Ft,M&&ct.onDidBlurEditorWidget(()=>{M(ct.getValue())}),Ve&&ct.onDidFocusEditorText(()=>{fe&&Ht(),Ve(ct.getValue())}),fe){Ht();try{ct.onDidPaste(mt=>{const Mt=ct.getSelection(),bt=Oe.current.pastePos||{},Tt=new Ft.Range(bt.startLineNumber||Mt.endLineNumber,bt.startColumn||Mt.endColumn,bt.endLineNumber||Mt.endLineNumber,bt.endColumn||Mt.endColumn);ct.executeEdits("",[{range:mt.range,text:""}])})}catch(mt){}}let dt=he();return De&&typeof De=="string"&&new D(De,ct,Ft),Y(!0),()=>{const mt=Oe.current.instance;mt.dispose();const Mt=mt.getModel();Mt&&Mt.dispose(),Oe.current.subscription&&Oe.current.subscription.dispose(),dt.unobserve(st.current)}}catch(ct){}})},[]),(0,f.useEffect)(()=>{if(Oe.current.instance&&k)return document.addEventListener("keydown",ut,!1),()=>{document.removeEventListener("keydown",ut)}},[be,k]),(0,f.useEffect)(()=>{let We=Oe.current.instance;if(We&&k){let ct=Rt(we);Ft.editor.setModelLanguage(We.getModel(),ct)}},[we,k]),(0,f.useEffect)(()=>{Oe.current.instance&&k&&Ft.editor.setTheme(q)},[q,k]),(0,f.useEffect)(()=>{let We=Oe.current.instance;Et.current=je,We&&k&&(We.updateOptions(X({},je)),setTimeout(()=>{We.getModel().updateOptions(X({},je))},200))},[JSON.stringify(je),k]),(0,f.useEffect)(()=>{let We=Oe.current.instance;We&&k&&We.layout()},[Je,yt,k]);const[S,ze]=(0,f.useState)(pe(Je)),[ke,Pe]=(0,f.useState)(pe(yt)),Ge=y(X({},V),{width:S,height:ke,position:"relative"});return f.createElement("div",{className:"my-monaco-editor",ref:st,style:Ge},Se&&f.createElement(ge.CopyToClipboard,{text:Fe,onCopy:()=>Q.ZP.success("\u590D\u5236\u6210\u529F")},f.createElement(re.Z,{title:"\u590D\u5236\u4EE3\u7801"},f.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},f.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function qt({width:Dt="100%",height:sn="100%",original:Je,modified:yt,language:Fe,options:we={}}){const V=(0,f.useRef)(),[je,Qe]=(0,f.useState)(null);function q(W){let fe;return V.current&&(fe=new ue.Z(ye=>{for(let $e of ye)($e.target.offsetHeight>0||$e.target.offsetWidth>0)&&W.layout()}),fe.observe(V.current)),fe}(0,f.useEffect)(()=>(V.current&&Promise.all([_.e(8909),_.e(9404)]).then(_.bind(_,2550)).then(W=>{Ft=W;const fe=Ft.editor.createDiffEditor(V.current,y(X({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},we),{wordWrap:!0}));Qe(fe);let ye=q(fe);return()=>{fe.dispose();const $e=fe.getModel();$e&&$e.dispose(),ye.unobserve(V.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,f.useEffect)(()=>{je&&je.setModel({original:Ft.editor.createModel(Je,Fe),modified:Ft.editor.createModel(yt,Fe)})},[Je,yt,Fe,je]);const M=pe(Dt),Se=pe(sn),be={width:M,height:Se};return f.createElement("div",{className:"my-diff-editor",ref:V,style:be})}},929:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return p}});var f={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},ue=_(29787),z=_(25399),ae=_(60242),B=_(92310),d=_.n(B),_e=_(49661),ne=_(57884),o=_(34055),g=_(59301),p=({className:E,dataSource:b=[],col:I=4,right:j,bottom:$=23,precision:le=0,wrapWidth:F=1200,trackEventItems:H,loading:D,onRemove:w=()=>{},isCurrent:Q=!0,showProgress:re=!1,showAlias:ee=!1})=>{const oe=Math.floor((F-(I-1)*j)/I),ge=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return g.createElement(ue.Z,{spinning:D},g.createElement("div",{className:d()(f.list,E)},!!(b!=null&&b.length)&&(b==null?void 0:b.map((me,at)=>{var Z,T,P,G,ie,X;const{name:y,id:v,identifier:O,featured:pe,school_name:He,image_url:tt,excellent:Ct,is_plan:Rt}=me;return g.createElement("div",{key:v,className:Q&&re?f.wrapisCurrent:f.wrap,style:{width:oe,marginRight:(1+at)%I===0?0:j+le,marginBottom:$}},g.createElement("a",{className:f.li,onClick:Ft=>{Ft.preventDefault(),Ft.stopPropagation(),H&&(0,_e.L9)([H]),(0,_e.xg)(`/paths/${O}`)}},g.createElement("div",{className:f.img},g.createElement("img",{className:f.cover,src:`${tt}`}),Q&&(0,o.bg)()&&(me==null?void 0:me.studying)&&g.createElement("div",{className:`${f.movebq} user-path-items`,onClick:Ft=>{Ft.stopPropagation(),w(me)}},g.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),g.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Z=me==null?void 0:me.subject_tags)==null?void 0:Z.map((Ft,Ht)=>{var Ke,qt;if(Ht===0){const sn=(Ke=ge.find(Je=>Je.name==Ft))==null?void 0:Ke.swimg;return g.createElement("img",{className:f.sign,src:sn,style:{left:"-4px"}})}const Dt=(qt=ge.find(sn=>sn.name==Ft))==null?void 0:qt.ptimg;return g.createElement("img",{className:f.sign,src:Dt,style:{left:`${48+52*(Ht-1)+2*Ht}px`}})}),g.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(me==null?void 0:me.excellent)&&g.createElement("div",{className:f.bq},"\u5F00\u653E\u8BFE\u7A0B"))),g.createElement("div",{className:f.name},g.createElement(z.Z,{title:ee&&(me!=null&&me.excellent_alias_name)?g.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${y}`,g.createElement("br",null),g.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${me==null?void 0:me.excellent_alias_name}`)):y},g.createElement("span",{className:f.e},ee&&(me==null?void 0:me.excellent_alias_name)||y))),Q&&re&&((T=me==null?void 0:me.progress)==null?void 0:T.all_score)!=0&&g.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},g.createElement(ae.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((P=me==null?void 0:me.progress)==null?void 0:P.my_score)/((G=me==null?void 0:me.progress)==null?void 0:G.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(ie=me==null?void 0:me.progress)==null?void 0:ie.my_score,"/",(X=me==null?void 0:me.progress)==null?void 0:X.all_score),(!Q||!re)&&g.createElement(z.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${He}`},g.createElement("div",{className:f.unit},g.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),He)),(!Q||!re)&&g.createElement("div",{className:f.tags},g.createElement("div",null,g.createElement(z.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},g.createElement("span",null,g.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),g.createElement("span",null,me.stages_count))),g.createElement(z.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},g.createElement("span",null,g.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),g.createElement("span",null,me.members_count)))))))})),!b.length&&g.createElement(ne.Z,null)))}},71360:function(Pn,Gt,_){"use strict";_.d(Gt,{jL:function(){return B},w9:function(){return pe},QD:function(){return de},cQ:function(){return ie.Z},op:function(){return ye},O5:function(){return xe},_b:function(){return it},t7:function(){return le},Gi:function(){return Ht},YG:function(){return Rt},qp:function(){return A},vr:function(){return Le},qE:function(){return qe},Je:function(){return D},wb:function(){return G},cq:function(){return yt},tp:function(){return b}});var f=_(59301),ue={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAY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PRxDBK8E1ztw+k+njhHFTqJCTMl4Qm21eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",B=({dataSource:Be=[],img:Xe,imgWidth:ut=346,title:nt,sunTitle:Ue,bannerExtraContent:R})=>f.createElement("div",{className:ue.banner},f.createElement("div",{className:ue.content},f.createElement("aside",null,f.createElement("p",null,f.createElement("b",null,nt),f.createElement("span",null,Ue)),Be.length>0&&f.createElement("div",{className:ue.btns},Be.map((U,S)=>f.createElement("div",{key:S,onClick:U.click},U.name,U.sign?f.createElement("img",{src:z,width:39}):null))),R),Xe&&f.createElement("img",{style:{marginTop:33,marginRight:38},src:Xe,width:ut}))),d={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},_e=_(92310),ne=_.n(_e),o=_(89392),A=({dataSource:Be=[],value:Xe,onChange:ut,onTitleChange:nt,className:Ue,title:R,titleWidth:U=41,style:S={},fontColor:ze="#6A7283",showCount:ke})=>{const[Pe,Ge]=(0,f.useState)(0),[We,ct]=(0,f.useState)(!1),Lt=(0,f.useRef)(null),Pt=(0,f.useRef)(null);return(0,f.useEffect)(()=>{var cn;Be.length!==0&&(((cn=Lt==null?void 0:Lt.current)==null?void 0:cn.clientHeight)>97?Ge(1):Ge(0)),Be.length===0&&Ge(0),ct(!1)},[Be]),f.createElement("div",{className:ne()(d.row,Ue),style:S},f.createElement("div",{onClick:(0,o.throttle)(()=>nt==null?void 0:nt(),2e3),style:{width:U,marginTop:We?12:4},className:`${d.title} ${nt?"current":""}`},R),f.createElement("div",{className:We?`${d.tagsWrap} ${d.tagsBorderWrap}`:d.tagsWrap},f.createElement("div",{className:d.bar,ref:Pt,style:Pe>0?{height:Pe===1?97:"auto",overflow:Pe===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},f.createElement("div",{className:d.tag,ref:Lt},Be==null?void 0:Be.map(cn=>f.createElement("span",{onClick:()=>ut(cn.id),key:cn.id,style:{color:ze},className:Xe===cn.id?d.active:""},f.createElement("span",{title:cn.name,className:d.name},cn.name),!!ke&&f.createElement("span",{className:d.num},cn.count))))),!!Pe&&f.createElement(f.Fragment,null,Pe===1?f.createElement("div",{onClick:()=>{var cn;Ge(2),((cn=Lt==null?void 0:Lt.current)==null?void 0:cn.clientHeight)>245?ct(!0):ct(!1)},className:d.action},"\u5C55\u5F00",f.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):f.createElement("div",{onClick:()=>{Pt.current.scrollTop=0,Ge(1),ct(!1)},className:d.action},"\u6536\u8D77",f.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},p={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},b=({dataSource:Be=[],value:Xe,onChange:ut,className:nt,style:Ue={}})=>f.createElement("div",{style:Ue,className:ne()(p.tabs,nt)},Be.map(R=>f.createElement("span",{onClick:()=>ut(R.id),className:Xe===R.id?p.active:"",key:R.id},R.name))),I={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},j=_(37568),le=({dataSource:Be=[],value:Xe="",onChange:ut,onInputChange:nt=()=>{},className:Ue,style:R={},placeholder:U,allowClear:S=!1})=>{var ze;const[ke,Pe]=(0,f.useState)(""),[Ge,We]=(0,f.useState)("");(0,f.useEffect)(()=>{var Pt;let cn=Xe;(Pt=JSON.stringify(Xe))!=null&&Pt.includes("{")&&(Pe(Xe.id),cn=Xe.value||"");try{We(decodeURIComponent(cn||""))}catch(Ne){We(decodeURIComponent(cn||""))}},[Xe]);const ct=()=>{ut(encodeURIComponent(Ge),ke||null)},Lt=Pt=>{Pt!==ke&&(Pe(Pt),ut(encodeURIComponent(Ge),Pt))};return f.createElement("div",{className:ne()(I.input,Ue),style:R},!!Be.length&&f.createElement("div",{className:I.dropdown},f.createElement("div",{className:I.text},(ze=Be.find(Pt=>Pt.id===ke))==null?void 0:ze.name,f.createElement("i",{className:"iconfont icon-zhankai4"}),f.createElement("b",{className:I.b1}),f.createElement("b",{className:I.b2})),f.createElement("div",{className:I.menu},Be.map((Pt,cn)=>f.createElement("div",{key:cn,onClick:()=>Lt(Pt.id)},Pt.name)))),f.createElement(j.default,{onPressEnter:ct,value:Ge,onChange:Pt=>{We(Pt.target.value),nt(encodeURIComponent(Pt.target.value),ke||null)},placeholder:U,variant:"borderless",allowClear:S,onClear:()=>ut("",ke||null)}),f.createElement("i",{onClick:ct,className:"iconfont icon-sousuo9 font14 current"}))},F={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},D=({value:Be,onChange:Xe,className:ut,total:nt,pageSize:Ue,style:R={}})=>{const U=Be<2,S=Be>=Math.ceil(nt/Ue);return nt<=Ue?f.createElement(f.Fragment,null):f.createElement("div",{className:ne()(F.quickPager,ut),style:R},f.createElement("div",{onClick:()=>{U||Xe(Be-1,"prev")},className:U?F.disabled:""},"\u4E0A\u4E00\u9875"),f.createElement("div",{onClick:()=>{S||Xe(Be+1,"next")},className:S?F.disabled:""},"\u4E0B\u4E00\u9875"))},w={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Q=_(29787),re=_(25399),ee=_(58018),oe=_(90524),ge=_(49661),me=_(96908),at=_(57177),Z=_(81378),T=_(57884),G=({className:Be,dataSource:Xe=[],col:ut=4,right:nt,bottom:Ue=23,precision:R=0,wrapWidth:U=1200,trackEventItems:S,loading:ze})=>{const ke=Math.floor((U-(ut-1)*nt)/ut);return f.createElement(Q.Z,{spinning:ze},f.createElement("div",{className:ne()(w.list,Be)},!!Xe.length&&Xe.map((Pe,Ge)=>{const{name:We,id:ct,identifier:Lt,power:Pt,cover_image_id:cn,pic:Ne}=Pe;return f.createElement("div",{className:w.wrap,key:ct,style:{width:ke,marginRight:(1+Ge)%ut===0?0:nt+R,marginBottom:Ue}},f.createElement("a",{target:"_blank",href:`/shixuns/${Lt}/challenges`,className:w.li,onClick:Re=>{Re.preventDefault(),S&&(0,ge.L9)([S]),Pt&&(0,ge.xg)(`/shixuns/${Lt}/challenges`)}},f.createElement("div",{className:w.img},f.createElement("img",{className:w.cover,src:`${Ne}`}),Pe.is_jupyter&&f.createElement("img",{className:w.sign,src:me}),Pe.is_jupyter_lab&&f.createElement("img",{className:w.sign,src:at}),Pe.is_unity_3d&&f.createElement("img",{className:w.sign,src:Z})),f.createElement("div",{className:w.name},f.createElement(re.Z,{title:We||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},f.createElement("span",{className:w.e},We||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),f.createElement("div",{className:w.tags},f.createElement(re.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},f.createElement("span",null,f.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),f.createElement("span",null,Pe.challenges_count))),!!Pe.myshixuns_count&&f.createElement(re.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},f.createElement("span",null,f.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),f.createElement("span",null,Pe.myshixuns_count))),f.createElement(re.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},f.createElement("span",null,f.createElement("span",null,Pe.level))),f.createElement("div",{className:w.rate},f.createElement(ee.Z,{allowHalf:!0,disabled:!0,defaultValue:Pe.score_info}),f.createElement("span",null,"\xA0",Pe.score_info?`${Pe.score_info}\u5206`:"5\u5206")))),!Pt&&f.createElement("div",{className:w.lockWrap},f.createElement("img",{src:`${oe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),f.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Xe.length&&f.createElement(T.Z,null)))},ie=_(929),X={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDx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:nt,bottom:Ue=23,precision:R=0,wrapWidth:U=1200,trackEventItems:S,loading:ze,handleVery:ke=()=>!0})=>{const Pe=Math.floor((U-(ut-1)*nt)/ut);return v.createElement(Q.Z,{spinning:ze},v.createElement("div",{className:ne()(X.list,Be)},!!Xe.length&&Xe.map((Ge,We)=>{const{subject_identifier:ct,id:Lt,identifier:Pt,power:cn}=Ge,Ne=Ge.is_public!=0&&Ge.is_public;return v.createElement("div",{className:X.wrap,key:Lt,style:{width:Pe,marginRight:(1+We)%ut===0?0:nt+R,marginBottom:Ue}},v.createElement("a",{className:X.li,onClick:Re=>{Re.preventDefault(),ke(Ge==null?void 0:Ge.first_category_url)&&(S&&(0,ge.L9)([S]),(0,ge.xg)(Ge.first_category_url))}},v.createElement("div",{className:X.top},v.createElement(re.Z,{title:Ge.name},v.createElement("div",{className:X.name},Ge.name)),v.createElement("img",{className:X.img,src:oe.Z.IMG_SERVER+"/images/"+Ge.avatar_url}),v.createElement("div",{className:X.text,title:Ge.creator},Ge.creator),ct&&v.createElement("div",{className:X.btns},v.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),v.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ne&&v.createElement("div",{className:X.sign},"\u516C\u5F00")),v.createElement("div",{className:X.bottom},Ge.visits>0&&v.createElement(re.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},v.createElement("span",null,v.createElement("i",{className:"iconfont icon-liulanyan"}),v.createElement("span",null,Ge.visits))),Ge.course_members_count>0&&v.createElement(re.Z,{title:"\u6210\u5458",placement:"bottom"},v.createElement("span",null,v.createElement("i",{className:"iconfont icon-chengyuan"}),Ge.course_members_count)),Ge.tasks_count>0&&v.createElement(re.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},v.createElement("span",null,v.createElement("i",{className:"iconfont icon-zuoye"}),Ge.tasks_count)),Ge.is_end?v.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):v.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Ge.is_accessible&&v.createElement("div",{className:X.lockWrap},v.createElement("img",{src:`${oe.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),v.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Xe.length&&v.createElement(T.Z,null)))},He={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},tt=_(76560),Rt=({dataSource:Be=[],value:Xe,onChange:ut,className:nt,style:Ue={},tabBarExtraContent:R})=>f.createElement("div",{className:ne()(He.tabs,nt),style:Ue},f.createElement("div",{className:He.tabsWrap},Be.map((U,S)=>!(U!=null&&U.hide)&&f.createElement("aside",{className:He.tab,onClick:()=>{ut(U.id),U.link&&tt.history.push(U.link)},key:S},f.createElement("div",{className:Xe===U.id?He.active:""},U.name),(U==null?void 0:U.resetCount)==null&&(U==null?void 0:U.total)!==void 0&&f.createElement("span",null,"\uFF08",U==null?void 0:U.total,"\uFF09"),(U==null?void 0:U.resetCount)!==void 0&&(U==null?void 0:U.total)!==void 0&&f.createElement(re.Z,{title:(U==null?void 0:U.tip)!=null?U==null?void 0:U.tip:""},f.createElement("span",{style:{color:"#9096A3"}},"\uFF08",f.createElement("span",{style:{color:"#000"}},U==null?void 0:U.resetCount),"/",f.createElement("span",null,U==null?void 0:U.total),"\uFF09"))))),f.createElement("div",{className:He.tabBar},R)),Ht=({className:Be,style:Xe={},children:ut})=>f.createElement("div",{className:ne()(Be),style:Xe},ut),Ke={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},qt=_(75727),Dt=_(93041);const sn=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var yt=({sortValue:Be,dropValue:Xe,className:ut,onSort:nt,onDrop:Ue,dataSource:R=sn})=>{var U;return f.createElement("div",{className:ne()(Ke.orderWrap,ut)},f.createElement(qt.Z,{dropdownRender:()=>f.createElement(Dt.default,null,R.map((S,ze)=>f.createElement(Dt.default.Item,{key:ze,onClick:()=>Ue(S.id)},S.name)))},f.createElement("span",{className:Ke.orderTextWrap},(U=R.find(S=>Xe===S.id))==null?void 0:U.name)),f.createElement("span",{className:Ke.orderIconWrap},f.createElement("span",{className:Ke.orderAsc},f.createElement("i",{className:Be==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ke.cursorPointer} ${Ke.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ke.cursorPointer}`,onClick:()=>nt(Be==="asc"?"desc":"asc")})),f.createElement("span",{className:Ke.orderDesc},f.createElement("i",{className:Be==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ke.cursorPointer} ${Ke.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ke.cursorPointer}`,onClick:()=>nt(Be==="asc"?"desc":"asc")}))))},Fe={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},we=_(99571),V=Object.defineProperty,je=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,M=(Be,Xe,ut)=>Xe in Be?V(Be,Xe,{enumerable:!0,configurable:!0,writable:!0,value:ut}):Be[Xe]=ut,Se=(Be,Xe)=>{for(var ut in Xe||(Xe={}))Qe.call(Xe,ut)&&M(Be,ut,Xe[ut]);if(je)for(var ut of je(Xe))q.call(Xe,ut)&&M(Be,ut,Xe[ut]);return Be},be=(Be,Xe)=>{var ut={};for(var nt in Be)Qe.call(Be,nt)&&Xe.indexOf(nt)<0&&(ut[nt]=Be[nt]);if(Be!=null&&je)for(var nt of je(Be))Xe.indexOf(nt)<0&&q.call(Be,nt)&&(ut[nt]=Be[nt]);return ut},W=(Be,Xe,ut)=>new Promise((nt,Ue)=>{var R=ze=>{try{S(ut.next(ze))}catch(ke){Ue(ke)}},U=ze=>{try{S(ut.throw(ze))}catch(ke){Ue(ke)}},S=ze=>ze.done?nt(ze.value):Promise.resolve(ze.value).then(R,U);S((ut=ut.apply(Be,Xe)).next())}),ye=Be=>{var Xe=Be,{className:ut,style:nt,children:Ue,loading:R=!1,openLoading:U,onClick:S=()=>{},size:ze="middle",shape:ke="round"}=Xe,Pe=be(Xe,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Ge,We]=(0,f.useState)(!1);return f.createElement(we.ZP,Se({onClick:(0,o.throttle)(ct=>W(void 0,null,function*(){U&&We(!0);try{yield S(ct)}catch(Lt){console.log("error",Lt)}U&&We(!1)}),2e3,{leading:!0,trailing:!1}),className:ne()(Fe.btn,Fe[`${ze}-${ke}`],ut),style:nt,size:ze,shape:ke,loading:Ge||R},Pe),Ue)},$e={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},qe=({className:Be,style:Xe,children:ut=null,onClick:nt,title:Ue})=>f.createElement("div",{className:ne()($e.head,Be),style:Xe},f.createElement("span",{className:"primary-hover",onClick:nt},f.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),f.createElement("b",{title:Ue},Ue),f.createElement("div",{className:$e.node},ut)),Ye={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},de=({confirmShow:Be=!0,confirmTitle:Xe,confirmClick:ut,cancelShow:nt=!0,cancelTitle:Ue,cancelClick:R,className:U,style:S,confirmLoading:ze=!1})=>f.createElement("div",{className:ne()(Ye.btns,U),style:S},Be&&f.createElement(we.ZP,{loading:ze,onClick:ut,type:"primary",className:Ye.confirm},Xe),nt&&f.createElement(we.ZP,{onClick:R,className:Ye.cancel},Ue)),K={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Le=({className:Be,style:Xe={},LeftContent:ut,children:nt,RightContent:Ue})=>f.createElement("div",{className:ne()(K.fixedBottom,Be),style:Xe},f.createElement("div",{className:K.wrap},f.createElement("div",{className:K.left},ut),f.createElement("div",{className:K.center},nt),f.createElement("div",{className:K.right},Ue))),De={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},it=({className:Be,style:Xe={},dataSource:ut=[]})=>f.createElement("div",{className:ne()(De.crumbs,Be),style:Xe},ut.map((nt,Ue)=>Ue<ut.length-1?f.createElement(f.Fragment,{key:Ue},nt.path||nt.onClick?f.createElement("span",{className:De.hover,onClick:nt!=null&&nt.onClick?nt.onClick:()=>tt.history.push(nt.path)},nt.name):f.createElement("span",null,nt.name),f.createElement("span",null,"\xA0",">","\xA0")):f.createElement("span",{key:Ue,style:{color:"#5F6368"}},nt.name))),st=_(11938),Oe=Object.defineProperty,Et=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,wt=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ve=(Be,Xe,ut)=>Xe in Be?Oe(Be,Xe,{enumerable:!0,configurable:!0,writable:!0,value:ut}):Be[Xe]=ut,Ee=(Be,Xe)=>{for(var ut in Xe||(Xe={}))Bt.call(Xe,ut)&&ve(Be,ut,Xe[ut]);if(wt)for(var ut of wt(Xe))se.call(Xe,ut)&&ve(Be,ut,Xe[ut]);return Be},k=(Be,Xe)=>Et(Be,jt(Xe)),Y=(Be,Xe)=>{var ut={};for(var nt in Be)Bt.call(Be,nt)&&Xe.indexOf(nt)<0&&(ut[nt]=Be[nt]);if(Be!=null&&wt)for(var nt of wt(Be))Xe.indexOf(nt)<0&&se.call(Be,nt)&&(ut[nt]=Be[nt]);return ut};const{Countdown:he}=st.default;var xe=Be=>{var Xe=Be,{onChange:ut}=Xe,nt=Y(Xe,["onChange"]);const[Ue,R]=(0,f.useState)(null);(0,f.useEffect)(()=>{typeof Ue=="number"&&Ue>=0&&ut(Ue)},[Ue]);const U=S=>{const ze=Math.floor(S/1e3);R(ze)};return f.createElement(he,k(Ee({},nt),{onChange:U}))}},16561:function(Pn,Gt,_){"use strict";_.r(Gt),_.d(Gt,{default:function(){return Bt}});var f=_(59301),ue=_(76560),z=_(38394),ae=_(61186),B=_.n(ae),d=_(75727),_e=_(99571),ne=_(6767),o=_(62957),g=_(93041),A=_(62673),p=_(77019),E=_(5269),b=_(82326),I=_(37568),j=_(20554),$=_(54172),le=_(84022),F=_(25399),H=_(90524),D=_(82093),w={flex_box_center:"flex_box_center___OrR9_",flex_space_between:"flex_space_between___MJLUJ",flex_box_vertical_center:"flex_box_vertical_center___nb0jX",flex_box_center_end:"flex_box_center_end___SMTBe",flex_box_column:"flex_box_column___Utap_",wrap:"wrap___Pp5cX",addQuestion:"addQuestion___LsICJ",content:"content___pWPew",left:"left___axtqk",filterPoint:"filterPoint___rCDO_",filterType:"filterType___NeU0D",btnWarp:"btnWarp___dKZiG",btn:"btn___TqjCT",count:"count___OntqW",btnActive:"btnActive___l_zfx",fold:"fold___KAWcj",action:"action___zMEjv",filterOrigin:"filterOrigin___DneuH",control:"control___qchb1",search:"search___Yb8rf",searchIcon:"searchIcon___ybtbn",table:"table___uHpVy",tabWarp:"tabWarp___Pi38U",customTable:"customTable___WYwKK","btn-style-1":"btn-style-1___Knznb","btn-style-2":"btn-style-2___fEs_r","btn-style-3":"btn-style-3___CeM25",right:"right___ZJhZN",statistics:"statistics___cjSkW",title:"title___P79dp",statisticItem:"statisticItem___qmDRE",rate:"rate___H3sZf",dataName:"dataName___N7Uqb",sort:"sort___N1oiD",rankHeader:"rankHeader___LGNPx",rankIcon:"rankIcon___hbm2T",li:"li___vVOqz",myRecord:"myRecord___qv6iJ",recordPrefix:"recordPrefix____bO3_",mine:"mine___fhCrG",avatar:"avatar___vwT8k",nickname:"nickname___QA_sN",myRank:"myRank___QUd2y",questionNumber:"questionNumber___j4tJF",titleWarp:"titleWarp___Hhoy_",hov:"hov___L_H5a",statusText:"statusText___okgdj",hovBtn:"hovBtn___reyI4",tag:"tag___zifqR",problemsclose:"problemsclose___cfp5y",imgsrc:"imgsrc___E905q",sendModal:"sendModal___jrx6y",bottom:"bottom___pKnLQ",line:"line___kNxnj",del:"del___kXkXv"},Q=_(34055),re=Object.defineProperty,ee=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(se,ve,Ee)=>ve in se?re(se,ve,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[ve]=Ee,at=(se,ve)=>{for(var Ee in ve||(ve={}))oe.call(ve,Ee)&&me(se,Ee,ve[Ee]);if(ee)for(var Ee of ee(ve))ge.call(ve,Ee)&&me(se,Ee,ve[Ee]);return se};const Z=se=>React.createElement("svg",at({width:14,height:10,xmlns:"http://www.w3.org/2000/svg"},se),React.createElement("title",null,"\u89C6\u9891"),React.createElement("g",{fill:"#C1E2FF",fillRule:"nonzero"},React.createElement("path",{d:"M7.836 9.913H2.297c-.593.072-1.185-.145-1.624-.596a2.444 2.444 0 0 1-.666-1.759v-5.17A2.47 2.47 0 0 1 .679.636c.437-.45 1.025-.671 1.617-.608h5.592c.589-.072 1.176.148 1.607.603.43.454.661 1.096.63 1.757v5.17a2.443 2.443 0 0 1-.664 1.759c-.44.451-1.032.668-1.625.596ZM2.297 1.44c-.468 0-1.026.165-1.026.948v5.17c0 .258 0 .942 1.026.942h5.54c1.024 0 1.024-.684 1.024-.942v-5.17c0-.47-.116-.948-.973-.948h-5.59Z"}),React.createElement("path",{d:"M12.476 9.207a1.781 1.781 0 0 1-1.043-.382L8.86 6.93V3.003l2.575-1.891a1.78 1.78 0 0 1 1.04-.379c.367-.034.73.102 1.003.377.274.275.433.664.44 1.075v5.57c-.007.411-.166.8-.44 1.075a1.248 1.248 0 0 1-1.003.377Zm-2.35-3.036 2.01 1.48c.1.082.218.131.34.143a.29.29 0 0 0 .186-.045l-.007-5.564a.315.315 0 0 0-.179-.04.64.64 0 0 0-.339.144l-2.012 1.475v2.407Zm-5.06.212c-.698 0-1.264-.633-1.264-1.412 0-.78.566-1.411 1.265-1.412.698 0 1.264.632 1.264 1.411 0 .78-.567 1.411-1.265 1.412Z"})));var T="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGc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fnssv5ZbWHN8e+oFvUwZ238CNjSlu/OU3vpr9HwczQ6klNs8o537n+3+9yicuskKgqNco2wmwwA1SB30BWi3UbImaqqPbEaMyMueoOcHIP5/iESGZtJYsiU8QzmP+cS23JsGtYzQTQGM7MwnouyN8mSxkFGXKgjGUMTD//Cu8pSMrWtPxJWVdYOfauOkM32jgNyrkMwaIgjwEakZTe/FZHneeuvVktiRLLdV7jA/o3ddzcxK+urU+RvPQj3ytUg2oqnWajDKBaEV737953To6UtIRkeLCATzD4y6eI4Cgve+lCwgwdBbqdqGhLeLz2UYntnLll00OXNA2unrWHdYLWeogezdjK5Fa6J3Vhu6stxJJfHc3OpSbuV6A7mFmKLfTqzYa1gPNqbIwVEfKLkBa09Z6KA/164p5dcgwVGOV9VlIj4dusHUqiNSZhma02J0uDPVwt3dEMrTj9V6IXlt1nx+aPzjWg5wK5lTv6X2u38iw3+e7r/edjQ76RZv1vosAmxX5ixba7Mj/bTLwJ/OqjXyXcOSkAAAAAElFTkSuQmCC",Rt=_(92890),Ft=_(28284),Ht=_(17149),Ke=_(69219),qt=_(13747),Dt={flex_box_center:"flex_box_center___bce7B",flex_space_between:"flex_space_between____RQOw",flex_box_vertical_center:"flex_box_vertical_center___AjElL",flex_box_center_end:"flex_box_center_end___ygYIN",flex_box_column:"flex_box_column___lF_tQ",scoremodal:"scoremodal___rmaM8",selectWrapper:"selectWrapper___mvLB7",selectWrappers:"selectWrappers___eCA2w",allqingchu:"allqingchu___qrQxW",title:"title___uaw5Z",score:"score___uJAQp",close:"close___uQVq5",content:"content___JN0bk",items:"items___foPGY",bottom:"bottom___h0Pda",yes:"yes___Et867",no:"no___lWWYt",titlecount:"titlecount___MgcDd",add:"add___NJkmt",search:"search___lc68N",searchIcon:"searchIcon___BUJdX",tabWrap:"tabWrap___KEQVE",previewModal:"previewModal___i8Vh9",q_title:"q_title___k3hA1"},sn=_(37798),Je={flex_box_center:"flex_box_center___IzcTw",flex_space_between:"flex_space_between___TfxiX",flex_box_vertical_center:"flex_box_vertical_center___nDt60",flex_box_center_end:"flex_box_center_end___vHxrY",flex_box_column:"flex_box_column___N9hFV",warp:"warp___CY8df",shixunbutton:"shixunbutton___tmPbr",redio:"redio___mNtYw",redioitem:"redioitem___N2pTb",redioitemyes:"redioitemyes___ooLYK",title:"title___r3t31",titleyes:"titleyes___JiOuB",yestag:"yestag___Yj1nT",qcount:"qcount___b_Lg3",score:"score___Iq_OQ",qtitle:"qtitle___E0xrA",checkbox:"checkbox___p5WZq",checkboxitem:"checkboxitem___Kja1N",checkboxitemyes:"checkboxitemyes___zCxhF",bottom:"bottom___Dg53A",bottomitem:"bottomitem___mx8gr",left:"left___GO9h4",right:"right___IIyn8",completion:"completion___puFVe",content:"content___QCTZ8",items:"items___DN6om",simple:"simple___CjHXs",shixun:"shixun___I_Hrz",combination:"combination___xkm7F",program:"program___FiUNV"},yt=_(24334);const Fe=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var V=({qitem:se})=>{var ve,Ee,k,Y,he,ce,xe,Be,Xe,ut;return f.createElement("div",{className:Je.warp},f.createElement("div",{className:Je.mainPart},f.createElement("div",{className:Je.qcount},(se==null?void 0:se.question_type)===8&&f.createElement(z.Z,{className:Je.content,showProgramFill:!0,value:(ve=se==null?void 0:se.program_attr)==null?void 0:ve.description}),(se==null?void 0:se.question_type)!=8&&f.createElement(z.Z,{className:Je.qtitle,value:(se==null?void 0:se.name)||(se==null?void 0:se.title)})),((se==null?void 0:se.question_type)===0||(se==null?void 0:se.question_type)===2)&&f.createElement("div",null,(Ee=se==null?void 0:se.choices)==null?void 0:Ee.map((nt,Ue)=>f.createElement("div",{className:Je.redio},!(nt!=null&&nt.is_answer)&&f.createElement("span",{className:Je.redioitem}),(nt==null?void 0:nt.is_answer)&&f.createElement("i",{className:`${Je.redioitemyes} icon-duigou1`}),f.createElement(z.Z,{className:nt!=null&&nt.is_answer?Je.titleyes:Je.title,value:Fe[Ue]+(nt==null?void 0:nt.choice_text)}),(nt==null?void 0:nt.is_answer)&&f.createElement("div",{className:Je.yestag},"\u6B63\u786E\u7B54\u6848")))),(se==null?void 0:se.question_type)===1&&f.createElement("div",null,(k=se==null?void 0:se.choices)==null?void 0:k.map((nt,Ue)=>f.createElement("div",{className:Je.checkbox},!(nt!=null&&nt.is_answer)&&f.createElement("span",{className:Je.checkboxitem}),(nt==null?void 0:nt.is_answer)&&f.createElement("i",{className:`${Je.checkboxitemyes} icon-duigou1`}),f.createElement(z.Z,{className:nt!=null&&nt.is_answer?Je.titleyes:Je.title,value:Fe[Ue]+(nt==null?void 0:nt.choice_text)}),(nt==null?void 0:nt.is_answer)&&f.createElement("div",{className:Je.yestag},"\u6B63\u786E\u7B54\u6848")))),(se==null?void 0:se.question_type)===3&&f.createElement("div",{className:Je.completion},(Y=se==null?void 0:se.standard_answer)==null?void 0:Y.map((nt,Ue)=>{var R;return f.createElement("div",{style:{display:"flex"}},f.createElement("span",{className:Je.title},"\u586B\u7A7A\u9879",Ue+1),f.createElement("div",{className:Je.content},(R=nt==null?void 0:nt.answer_text)==null?void 0:R.map((U,S)=>f.createElement("div",{className:Je.items},U))))})),(se==null?void 0:se.question_type)===4&&f.createElement("div",{className:Je.simple},f.createElement("div",{className:Je.title},"\u53C2\u8003\u7B54\u6848"),f.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(he=se==null?void 0:se.answer_texts)!=null&&he[0]?f.createElement(z.Z,{className:Je.content,value:(ce=se==null?void 0:se.answer_texts)==null?void 0:ce[0]}):f.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(se==null?void 0:se.question_type)===5&&((xe=se==null?void 0:se.challenge_names)==null?void 0:xe.map((nt,Ue)=>f.createElement("div",{className:Je.shixun},f.createElement("span",{className:Je.qtitle},f.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,tt.EM)(Ue+1),"\u9898"),nt)))),(se==null?void 0:se.question_type)===6&&f.createElement("div",{className:Je.program},f.createElement(z.Z,{className:Je.content,value:((Be=se==null?void 0:se.program_attr)==null?void 0:Be.description)||"- -"})),(se==null?void 0:se.question_type)===7&&((Xe=se==null?void 0:se.sub_item_banks)==null?void 0:Xe.map((nt,Ue)=>{var R,U,S,ze,ke;return f.createElement("div",null,f.createElement("div",{className:Je.combination},f.createElement("span",{className:Je.qtitle},nt==null?void 0:nt.name)),f.createElement("div",{className:Je.warp,style:{padding:"0px",paddingTop:20}},f.createElement("div",null,((nt==null?void 0:nt.item_type)=="SINGLE"||(nt==null?void 0:nt.item_type)=="JUDGMENT")&&((R=nt==null?void 0:nt.choices)==null?void 0:R.map((Pe,Ge)=>f.createElement("div",{className:Je.redio},!(Pe!=null&&Pe.is_answer)&&f.createElement("span",{className:Je.redioitem}),(Pe==null?void 0:Pe.is_answer)&&f.createElement("i",{className:`${Je.redioitemyes} icon-duigou1`}),f.createElement(z.Z,{className:Pe!=null&&Pe.is_answer?Je.titleyes:Je.title,value:Fe[Ge]+(Pe==null?void 0:Pe.choice_text)}),(Pe==null?void 0:Pe.is_answer)&&f.createElement("div",{className:Je.yestag},"\u6B63\u786E\u7B54\u6848")))),(nt==null?void 0:nt.item_type)=="MULTIPLE"&&((U=nt==null?void 0:nt.choices)==null?void 0:U.map((Pe,Ge)=>f.createElement("div",{className:Je.checkbox},!(Pe!=null&&Pe.is_answer)&&f.createElement("span",{className:Je.checkboxitem}),(Pe==null?void 0:Pe.is_answer)&&f.createElement("i",{className:`${Je.checkboxitemyes} icon-duigou1`}),f.createElement(z.Z,{className:Pe!=null&&Pe.is_answer?Je.titleyes:Je.title,value:Fe[Ge]+(Pe==null?void 0:Pe.choice_text)}),(Pe==null?void 0:Pe.is_answer)&&f.createElement("div",{className:Je.yestag},"\u6B63\u786E\u7B54\u6848")))),(nt==null?void 0:nt.item_type)=="COMPLETION"&&f.createElement("div",{className:Je.completion},(S=nt==null?void 0:nt.standard_answer)==null?void 0:S.map((Pe,Ge)=>{var We;return f.createElement("div",{style:{display:"flex"}},f.createElement("span",{className:Je.title},"\u586B\u7A7A\u9879",Ge+1),f.createElement("div",{className:Je.content},(We=Pe==null?void 0:Pe.answer_text)==null?void 0:We.map((ct,Lt)=>f.createElement("div",{className:Je.items},ct))))})),(nt==null?void 0:nt.item_type)=="SUBJECTIVE"&&f.createElement("div",{className:Je.simple},f.createElement("div",{className:Je.title},"\u53C2\u8003\u7B54\u6848"),f.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(ze=nt==null?void 0:nt.answer_texts)!=null&&ze[0]?f.createElement(z.Z,{className:Je.content,value:(ke=nt==null?void 0:nt.answer_texts)==null?void 0:ke[0]}):f.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(se==null?void 0:se.question_type)===8&&f.createElement("div",null,f.createElement(z.Z,{disabledFill:!0,className:Je.content,showProgramFill:!0,value:yt.Base64.decode(((ut=se==null?void 0:se.program_attr)==null?void 0:ut.code)||"")})),(se==null?void 0:se.question_type)===5&&f.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},f.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},f.createElement("div",{style:{marginRight:30}},f.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),f.createElement("span",{style:{color:"#000000"}},(se==null?void 0:se.author_name)||"- -")),f.createElement("div",{style:{marginRight:30}},f.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),f.createElement("span",{style:{color:"#000000"}},(se==null?void 0:se.author_school_name)||"- -")),f.createElement("div",{style:{marginRight:30}},f.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),f.createElement("span",{style:{color:"#000000"}},(se==null?void 0:se.study_count)||"0"))),f.createElement("a",{className:Je.shixunbutton,href:`/shixuns/${se==null?void 0:se.identifier}/challenges?exercise=true`,target:"_blank"},f.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((se==null?void 0:se.question_type)<=4||[6,8].includes(se==null?void 0:se.question_type))&&f.createElement("div",{className:Je.bottom},f.createElement("div",{className:Je.bottomitem},f.createElement("span",{className:Je.left},"\u89E3\u6790"),f.createElement("span",{className:Je.right},se!=null&&se.analysis?f.createElement(z.Z,{value:se==null?void 0:se.analysis}):f.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),f.createElement("div",{className:Je.bottomitem},f.createElement("span",{className:Je.left},"\u96BE\u5EA6"),f.createElement("span",{className:Je.right},(se==null?void 0:se.difficulty)===1?"\u7B80\u5355":(se==null?void 0:se.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),f.createElement("div",{className:Je.bottomitem},f.createElement("span",{className:Je.left},"\u77E5\u8BC6\u70B9"),f.createElement("span",{className:Je.right},se!=null&&se.tag_discipline?se==null?void 0:se.tag_discipline:f.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},je=_(11237),Qe=_(9164),q=_(61485),M=_(84216),Se=_(70610),be=_(59301),W=Object.defineProperty,fe=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable,Ye=(se,ve,Ee)=>ve in se?W(se,ve,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[ve]=Ee,ot=(se,ve)=>{for(var Ee in ve||(ve={}))Ve.call(ve,Ee)&&Ye(se,Ee,ve[Ee]);if($e)for(var Ee of $e(ve))qe.call(ve,Ee)&&Ye(se,Ee,ve[Ee]);return se},de=(se,ve)=>fe(se,ye(ve)),K=(se,ve,Ee)=>new Promise((k,Y)=>{var he=Be=>{try{xe(Ee.next(Be))}catch(Xe){Y(Xe)}},ce=Be=>{try{xe(Ee.throw(Be))}catch(Xe){Y(Xe)}},xe=Be=>Be.done?k(Be.value):Promise.resolve(Be.value).then(he,ce);xe((Ee=Ee.apply(se,ve)).next())});const N=({setScoreShow:se,ScoreShow:ve,onOk:Ee,isshixuns:k,isloadings:Y,dispatch:he,isIntelligentAssistant:ce=!1,ispptModal:xe=!1,isChangeQuestion:Be=!1,newExercisePaper:Xe,shixunsDetail:ut})=>{var nt,Ue,R;let[U,S]=(0,f.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:"PROGRAM",per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,bigmodel:ce,is_smart_plan:xe,group_id:[]}),[ze,ke]=(0,f.useState)([]),[Pe,Ge]=(0,f.useState)([]),[We,ct]=(0,f.useState)([]),[Lt,Pt]=(0,f.useState)([]);const[cn,Ne]=(0,f.useState)(!1),[Re]=Ft.default.useForm(),[dt,mt]=(0,f.useState)(),[Mt,bt]=(0,f.useState)(!1);let[Tt,Kt]=(0,f.useState)(k);const[en,At]=(0,f.useState)([]),[dn,an]=(0,f.useState)(0),[Jt,kt]=(0,f.useState)(!0),[Ze,ft]=(0,f.useState)([]),[St,Ot]=(0,f.useState)([]),tn=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],et=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6}];let[ln,xn]=(0,f.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:"",per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const Tn=(0,f.useRef)(new Set),Cn=(0,f.useRef)(new Set),Yn=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Dn=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Zn=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[On,Bn]=(0,f.useState)(!1),In=()=>{Re.resetFields(),Tt=!1,Kt(!1),Bn(!1),Re.submit()};(0,f.useEffect)(()=>{var Ie,Te,lt,gt,_t,zt,Wt,It,vt,xt;(((lt=(Te=(Ie=Xe==null?void 0:Xe.editData)==null?void 0:Ie.exercise)==null?void 0:Te.exist_item_bank_ids)==null?void 0:lt.length)>0||((zt=(_t=(gt=Xe==null?void 0:Xe.editData)==null?void 0:gt.exercise)==null?void 0:_t.exist_item_bank_shixun_ids)==null?void 0:zt.length)>0)&&Ot([...(It=(Wt=Xe==null?void 0:Xe.editData)==null?void 0:Wt.exercise)==null?void 0:It.exist_item_bank_ids,...(xt=(vt=Xe==null?void 0:Xe.editData)==null?void 0:vt.exercise)==null?void 0:xt.exist_item_bank_shixun_ids])},[(Ue=(nt=Xe==null?void 0:Xe.editData)==null?void 0:nt.exercise)==null?void 0:Ue.exist_item_bank_ids]),(0,f.useEffect)(()=>{ve&&(Re.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),Jt&&Tt&&(Re.setFieldsValue({item_type:"SHIXUN"}),U.item_type="SHIXUN",S(ot({},U)),kt(!1)),yn(U),kn(),pn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}))},[ve]),(0,f.useEffect)(()=>{dn>0&&setTimeout(()=>{an(0)},2e3)},[dn]);function yn(Ie){return K(this,null,function*(){var Te,lt,gt;if(Ne(!0),S(ot({},Ie)),(We==null?void 0:We.length)<=0&&Ie.type==="5"){Pt([]),Ne(!1);return}console.log("----",We,en);let _t=Ie.type==="5"?We==null?void 0:We.filter(It=>!en.includes(It)):null,zt=Ie.type==="5"?We==null?void 0:We.filter(It=>en.includes(It)):null,Wt=yield(0,D.ZP)("/api/item_banks.json",{method:"get",params:de(ot({},Ie),{discipline_id:((Te=Ie==null?void 0:Ie.courseid)==null?void 0:Te[0])||null,sub_discipline_id:((lt=Ie==null?void 0:Ie.courseid)==null?void 0:lt[1])||null,ids:_t,shixun_ids:zt,include_shixuns:!ce,group_id:((gt=Ie.group_id)==null?void 0:gt.map(It=>It==null?void 0:It.value))||null,keyword:Ie.keyword?encodeURIComponent(Ie.keyword):Ie.keyword,type:Ie.type==="5"?null:Ie.type,clazz:Ie.type==="3"?"ItemBanksGroup":null})});Pt(Wt),Ne(!1)})}function kn(){return K(this,null,function*(){let Ie=yield(0,D.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:U.type==="5"?null:U.type,clazz:"ItemBanksGroup"}});ke((0,sn.L)(Ie==null?void 0:Ie.disciplines))})}function pn(Ie){return K(this,null,function*(){var Te;let lt=yield(0,D.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Ie}),gt=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Te=lt==null?void 0:lt.data)==null?void 0:Te.map(_t=>({title:_t.name,id:_t.id,pid:_t.id,value:_t.id,key:_t.id,isLeaf:!_t.have_child}))}];ft(gt)})}function En(Ie){return K(this,null,function*(){var Te,lt,gt,_t;Ne(!0);let zt=(Te=Ie.list)==null?void 0:Te.filter(vt=>!en.includes(vt)),Wt=(lt=Ie.list)==null?void 0:lt.filter(vt=>en.includes(vt));if(zt.length===0&&Wt.length===0){Ne(!1),Pt([]);return}let It=yield(0,D.ZP)("/api/item_banks.json",{method:"get",params:de(ot({},Ie),{discipline_id:((gt=Ie==null?void 0:Ie.courseid)==null?void 0:gt[0])||null,sub_discipline_id:((_t=Ie==null?void 0:Ie.courseid)==null?void 0:_t[1])||null,ids:zt,shixun_ids:Wt,type:Ie.type==="5"?null:Ie.type,clazz:Ie.type==="3"?"ItemBanksGroup":null})});Ne(!1),Pt(It)})}const Ln=Ie=>K(void 0,null,function*(){const Te=yield he({type:"shixunsDetail/release",payload:{id:Ie}});let lt=Te==null?void 0:Te.tag_position,gt=(Te==null?void 0:Te.evaluation_set_position)||[],_t=Te.status;return _t===0?(ne.ZP.success("\u53D1\u5E03\u6210\u529F"),yn(U),!0):(_t===2?ne.ZP.error(`\u7B2C${gt.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):_t===3?ne.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${lt.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):ne.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),Mn=Ie=>(Ie==null?void 0:Ie.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",zn=(Ie,Te,lt)=>Ie.map(gt=>gt.key===Te?ot(ot({},gt),lt):gt.children?de(ot({},gt),{children:zn(gt.children,Te,lt)}):gt),Un=Ie=>K(void 0,null,function*(){const{key:Te}=Ie;let lt=U.type;const gt=yield(0,Se.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Te),type:lt}),{data:_t,total_count:zt}=gt||{};zt>0&&ft(Wt=>zn(Wt,Te,{children:_t.map(It=>({title:It.name,id:It.id,pid:It.id,value:It.id,key:It.id,isLeaf:!It.have_child}))}))});function ar(Ie){Ie==="0"&&(ln.wcjd=ot({},U)),Ie==="5"&&(ln.yx=ot({},U)),xn(ot({},ln))}function Me(){U.type==="1"&&(U=ln.gg),U.type==="2"&&(U=ln.scj),U.type==="3"&&(U=ln.ttgx),U.type==="0"&&(U=ln.wcjd),U.type==="5"&&(U=ln.yx),Tt=!1,Kt(!1),Re.setFieldsValue(ot({},U)),S(ot({},U)),yn(ot({},U))}return be.createElement("div",null,be.createElement(o.default,{title:!1,footer:!1,open:ve,width:1200,centered:!0,className:Dt.scoremodal,onCancel:()=>{se(!1)}},be.createElement("div",{style:{display:"flex",alignItems:"center"}},be.createElement("div",{className:Dt.title},"\u9009\u62E9\u7F16\u7A0B\u9898")),be.createElement(j.default,{className:Dt.tabWrap,activeKey:U.type,onChange:Ie=>{U.show_all_share=null,Ie==="0"&&pn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),ar(U.type),U.type=Ie,Bn(!1),U.type==="5"&&(Tt=!1,Kt(!1)),Me(),kn()},items:[{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:be.createElement("div",null,"\u5DF2\u9009",We.length>0&&be.createElement("span",{className:Dt.titlecount},We.length),dn>0&&be.createElement("span",{className:Dt.add},"+",dn)),key:"5"}]}),be.createElement(Ft.default,{layout:"inline",form:Re,onValuesChange:(Ie,Te)=>{const lt=Object.values(Te).some(_t=>_t!==null&&_t!==""&&_t!==void 0),gt=Te.keyword==="";Bn(lt||!gt),U.page=1,Ie!=null&&Ie.courseid&&Re.setFieldsValue({tag_discipline_id:""}),Kt(!1),!(Ie.keyword||Ie.keyword==="")&&Re.submit()},onFinish:Ie=>{var Te;U.type==="3"&&(!Ie.group_id||((Te=Ie==null?void 0:Ie.group_id)==null?void 0:Te.length)===0)?U.show_all_share=!0:U.show_all_share=null,S(ot(ot({},U),Ie)),yn(ot(ot({},U),Ie))}},be.createElement(Ft.default.Item,{name:"courseid"},be.createElement(Ht.Z,{className:Dt.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:ze})),!Tt&&be.createElement(Ft.default.Item,{name:"tag_discipline_id"},be.createElement(b.default,{className:Dt.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(R=Lt==null?void 0:Lt.tag_disciplines)==null?void 0:R.map(Ie=>be.createElement(b.default.Option,{key:Ie.id},Ie.name)))),be.createElement(Ft.default.Item,{name:Tt?"diff":"difficulty"},be.createElement(b.default,{className:Dt.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},Yn.map(Ie=>be.createElement(b.default.Option,{key:Ie.value},Ie.name)))),Tt&&be.createElement(Ft.default.Item,{name:"shixun_publish_status"},be.createElement(b.default,{className:Dt.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Zn.map(Ie=>be.createElement(b.default.Option,{key:Ie.value},Ie.name)))),(U.type==="3"||U.type==="0")&&!Tt&&be.createElement(Ft.default.Item,{name:"group_id"},be.createElement(Ke.default,{treeDataSimpleMode:!0,style:{width:118},className:Dt.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Ie,Te)=>Te.title.toUpperCase().indexOf(Ie.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:Un,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:Ze})),On&&be.createElement("span",{className:Dt.allqingchu,onClick:In},be.createElement("i",{className:"iconfont icon-guanbi4"}),be.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),be.createElement(Ft.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},be.createElement(I.default.Search,{className:Dt.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:be.createElement("i",{className:`iconfont icon-sousuo9 font14 ${Dt.searchIcon}`,onClick:()=>Re.submit()}),onSearch:Ie=>{Re.submit()}}))),be.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},be.createElement("div",{onClick:()=>{U.updated_at==="asc"?U.updated_at="desc":U.updated_at="asc",S(de(ot({},U),{page:1})),yn(de(ot({},U),{page:1}))}}," ",U.updated_at?be.createElement("img",{src:U.updated_at==="asc"?je.Z:Qe.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):be.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),be.createElement("div",{onClick:()=>{U.quotes==="asc"?U.quotes="desc":U.quotes="asc",S(de(ot({},U),{page:1})),yn(de(ot({},U),{page:1}))},style:{marginLeft:20}}," ",U.quotes?be.createElement("img",{src:U.quotes==="asc"?je.Z:Qe.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):be.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),be.createElement($.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Lt==null?void 0:Lt.items)||(Lt==null?void 0:Lt.shixun_list),pagination:!1,loading:cn,rowKey:Ie=>Ie.id,rowSelection:{type:"checkbox",selectedRowKeys:Pe,getCheckboxProps:Ie=>({disabled:Ie==null?void 0:Ie.added_to_practice}),onSelect(Ie,Te,lt){if(Te)(Tt||Ie!=null&&Ie.challenge_names)&&At([...en,Ie.id]),Ge([...Pe,Ie.id]),Ie.identifier?Tn.current.add(Ie.id):Cn.current.add(Ie.id),an(1),ct([...We,Ie.id]);else{Ie.identifier?Tn.current.delete(Ie.id):Cn.current.delete(Ie.id);let gt=We.filter(_t=>_t!==Ie.id);if(Ge(gt),ct(gt),Tt||Ie!=null&&Ie.challenge_names){let _t=en.filter(zt=>zt!==Ie.id);At([..._t])}if(U.type==="5"){En(de(ot({},U),{list:[...gt]}));return}}},onSelectAll(Ie,Te,lt){var gt,_t;if(Ie){const zt=lt.map(It=>It.id),Wt=(_t=lt==null?void 0:lt.filter(It=>It==null?void 0:It.challenge_names))==null?void 0:_t.map(It=>It.id);At([...en,...Wt]),Ge([...Pe,...zt]),ct([...We,...zt]);for(const It of lt)It.identifier?Tn.current.add(It.id):Cn.current.add(It.id)}else{const zt=lt.map(xt=>xt.id),Wt=Pe.filter(xt=>!zt.some(Nt=>Nt===xt)),It=(gt=lt==null?void 0:lt.filter(xt=>xt==null?void 0:xt.challenge_names))==null?void 0:gt.map(xt=>xt.id);Ge([...Wt]),ct([...Wt]);let vt=en.filter(xt=>!It.some(Nt=>Nt===xt.id));At([...vt]),U.type==="5"&&En(de(ot({},U),{list:[...Wt]}));for(const xt of zt)xt.identifier?Tn.current.delete(xt):Cn.current.delete(xt)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(Ie,Te,lt)=>{var gt,_t;return be.createElement(F.Z,{title:Mn(Te)},be.createElement("div",null,Tt||Te!=null&&Te.challenge_names?"\u5B9E\u8BAD\u9898":(_t=(gt=tn==null?void 0:tn.filter(zt=>zt.value===Ie))==null?void 0:gt[0])==null?void 0:_t.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:Tt?"30%":"60%",key:"name",render:(Ie,Te,lt)=>{var gt;return be.createElement("div",{style:{display:"flex",alignItems:"center"}},be.createElement(F.Z,{title:Mn(Te)},be.createElement("div",{className:Te!=null&&Te.high_resources_consume?Dt.q_title:""},be.createElement(z.Z,{key:1,showLines:1,showTextOnly:!0,value:Tt||Te!=null&&Te.challenge_names?Te!=null&&Te.title||Ie===null?"--":Ie:(Te==null?void 0:Te.item_type)=="BPROGRAM"?(gt=Te==null?void 0:Te.program_attr)==null?void 0:gt.description:Ie}))),(Te==null?void 0:Te.high_resources_consume)&&be.createElement(M.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!Tt,render:(Ie,Te,lt)=>{var gt;return be.createElement(F.Z,{title:Mn(Te)},be.createElement("span",null,Ie?(gt=Ie==null?void 0:Ie.split("\u3001"))==null?void 0:gt[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!Tt,render:(Ie,Te,lt)=>be.createElement(F.Z,{title:Mn(Te)},be.createElement("span",null,Ie||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(Ie,Te,lt)=>{var gt,_t,zt,Wt;return be.createElement(F.Z,{title:Mn(Te)},be.createElement("div",null,Tt||Te!=null&&Te.challenge_names?(Te==null?void 0:Te.level)||((_t=(gt=Yn==null?void 0:Yn.filter(It=>It.value===Ie))==null?void 0:gt[0])==null?void 0:_t.name):(Wt=(zt=Yn==null?void 0:Yn.filter(It=>It.value===Ie))==null?void 0:zt[0])==null?void 0:Wt.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!Tt,render:(Ie,Te,lt)=>be.createElement(F.Z,{title:Mn(Te)},be.createElement("div",null,Ie||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(Ie,Te,lt)=>be.createElement(F.Z,{title:Mn(Te)},be.createElement("div",null,Tt||Te!=null&&Te.challenge_names?(Te==null?void 0:Te.study_count)||(Te==null?void 0:Te.stu_num):Ie))},{title:be.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",be.createElement(F.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},be.createElement(q.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!Tt,render:(Ie,Te,lt)=>be.createElement(F.Z,{title:Mn(Te)},be.createElement("div",null,Ie||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Ie,Te,lt)=>be.createElement(F.Z,{title:Mn(Te)},be.createElement("div",{style:{flex:1,textAlign:"start"}},be.createElement("a",{onClick:()=>{var gt,_t;mt(de(ot({},Te),{question_type:Tt||Te!=null&&Te.challenge_names?5:(_t=(gt=tn==null?void 0:tn.filter(zt=>zt.value===(Te==null?void 0:Te.item_type)))==null?void 0:gt[0])==null?void 0:_t.question_type})),bt(!0)}},"\u67E5\u770B"),(Te==null?void 0:Te.shixun_tag_num)===1&&be.createElement("a",{style:{marginLeft:10},onClick:()=>{o.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:be.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",be.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Te==null?void 0:Te.identifier}/challenges`)}},(Te==null?void 0:Te.shixun_name)||"--"),"\uFF1F"),onOk:()=>K(void 0,null,function*(){if(!Ln(Te==null?void 0:Te.identifier))return new Promise((gt,_t)=>{_t()})})})}},"\u53D1\u5E03")))}].filter(Ie=>!Ie.hidden)}),be.createElement(qt.Z,{current:U.page,total:(Lt==null?void 0:Lt.items_count)||(Lt==null?void 0:Lt.shixuns_count),style:{marginBottom:20},defaultPageSize:U.per_page,showTotal:Ie=>be.createElement("span",null,"\u5171\xA0",be.createElement("span",{style:{color:"#165DFF"}},Ie),"\xA0\u6761\u6570\u636E"),pageSize:U.per_page,onChange:(Ie,Te)=>{U.page=Ie,U.per_page=Te,S(ot({},U)),yn(ot({},U))}}),be.createElement("div",{className:Dt.bottom},be.createElement(_e.ZP,{className:Dt.no,onClick:()=>{se(!1)}},"\u53D6\u6D88"),be.createElement(_e.ZP,{loading:Y,style:{width:Y&&75},className:Dt.yes,onClick:()=>K(void 0,null,function*(){if((We==null?void 0:We.length)<=0){ne.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}Ee([...Cn.current],[...Tn.current],!0,We==null?void 0:We.length)})},"\u786E\u8BA4"))),be.createElement(o.default,{open:Mt,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:Dt.previewModal,width:1e3,centered:!0,onCancel:()=>{bt(!1)},onOk:()=>{bt(!1)}},be.createElement(V,{qitem:dt})))};var Le=(0,ue.connect)(({shixunsDetail:se,newExercisePaper:ve})=>({shixunsDetail:se,newExercisePaper:ve}))(N),De=Object.defineProperty,Ae=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,Oe=(se,ve,Ee)=>ve in se?De(se,ve,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[ve]=Ee,Et=(se,ve)=>{for(var Ee in ve||(ve={}))it.call(ve,Ee)&&Oe(se,Ee,ve[Ee]);if(Ae)for(var Ee of Ae(ve))st.call(ve,Ee)&&Oe(se,Ee,ve[Ee]);return se},jt=(se,ve,Ee)=>new Promise((k,Y)=>{var he=Be=>{try{xe(Ee.next(Be))}catch(Xe){Y(Xe)}},ce=Be=>{try{xe(Ee.throw(Be))}catch(Xe){Y(Xe)}},xe=Be=>Be.done?k(Be.value):Promise.resolve(Be.value).then(he,ce);xe((Ee=Ee.apply(se,ve)).next())});const wt=({globalSetting:se,user:ve,dispatch:Ee})=>{var k,Y,he,ce,xe,Be,Xe,ut,nt,Ue,R,U,S,ze,ke,Pe,Ge,We;const[ct]=(0,ue.useSearchParams)(),Lt=(0,ue.useLocation)(),Pt={page:1,per_page:30,tag_discipline_id:[-1],source_discipline_id:[-1],status:null,difficulty:null,search:"",save_search:"",sort_by:null,sort_direction:null,filter:ct.get("tab")||"public"},[cn,Ne]=(0,f.useState)(0),[Re,dt]=(0,f.useState)(0),[mt,Mt]=(0,f.useState)(0),[bt,Tt]=(0,f.useState)([]),[Kt,en]=(0,f.useState)([]),[At,dn]=(0,f.useState)({}),[an,Jt]=(0,f.useState)(!1),[kt,Ze]=(0,f.useState)([]),[ft,St]=(0,f.useState)(!0),[Ot,tn]=(0,f.useState)(null);let[et,ln]=(0,f.useState)(Pt);const xn=(0,f.useRef)(null),Tn=(0,f.useRef)(null),[Cn,Yn]=(0,f.useState)([]),Dn=(0,f.useMemo)(()=>["not_reviewed","under_review","review_finished"].includes(et.filter),[et.filter]),[Zn,On]=(0,f.useState)(!1),[Bn,In]=(0,f.useState)(!1),[yn,kn]=(0,f.useState)(""),[pn,En]=(0,f.useState)([]),[Ln,Mn]=(0,f.useState)(!1),[zn,Un]=(0,f.useState)([]),[ar,Me]=(0,f.useState)(!1),[Ie,Te]=(0,f.useState)(!1),[lt,gt]=(0,f.useState)(null),_t=ve.userInfo.identity==="teacher",zt=(pt,Qt,on)=>jt(void 0,null,function*(){var Vt,vn,Rn,nr;pt.persist(),(vn=(Vt=pt==null?void 0:pt.target)==null?void 0:Vt.style)!=null&&vn.pointerEvents&&(pt.target.style.pointerEvents="none");const Xn=yield(0,D.ZP)(`/api/practices/${Qt.identifier}/start`,{method:"get"});if((Xn==null?void 0:Xn.status)===0){if(on){(0,tt.xg)(`/problems/${Xn==null?void 0:Xn.identifier}/oj/${Qt==null?void 0:Qt.identifier}?tab=3`);return}(0,tt.xg)(`/problems/${Xn==null?void 0:Xn.identifier}/oj/${Qt==null?void 0:Qt.identifier}`)}(nr=(Rn=pt==null?void 0:pt.target)==null?void 0:Rn.style)!=null&&nr.pointerEvents&&(pt.target.style.pointerEvents="auto")});(0,f.useEffect)(()=>{let pt=B()().add(0,"days").unix(),Qt=localStorage.getItem("problemsclose");if(!Qt){Mn(!0);return}pt>parseInt(Qt)&&Mn(!0)},[]);const Wt=["\u672A\u53D1\u5E03","\u5DF2\u516C\u5F00","\u672A\u5BA1\u6838","\u5BA1\u6838\u4E2D","\u672A\u516C\u5F00","\u672A\u901A\u8FC7"],It=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:(pt,Qt)=>f.createElement("div",{className:w.titleWarp},(et==null?void 0:et.filter)==="mine"?f.createElement("span",{className:w.tag},Wt[Qt.practice_status]):null,f.createElement("span",{title:pt,className:w.hov,onClick:on=>zt(on,Qt)},pt))},(et==null?void 0:et.filter)==="public"?{title:"\u9898\u89E3",dataIndex:"solution_count",width:100,sorter:!0,render:(pt,Qt)=>f.createElement("span",{style:{display:"flex"}},f.createElement("span",{onClick:on=>zt(on,Qt,!0),className:"current"},pt),(Qt==null?void 0:Qt.has_video_solution)&&f.createElement("img",{style:{objectFit:"contain"},className:"ml5",src:T}))}:null,(et==null?void 0:et.filter)==="public"?{title:"\u901A\u8FC7\u7387",dataIndex:"pass_ratio",sorter:!0,width:90}:null,{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:pt=>f.createElement(f.Fragment,null,pt===1&&f.createElement("span",{className:w["btn-style-1"]},"\u7B80\u5355"),pt===2&&f.createElement("span",{className:w["btn-style-2"]},"\u9002\u4E2D"),pt===3&&f.createElement("span",{className:w["btn-style-3"]},"\u56F0\u96BE"))},(et==null?void 0:et.filter)==="public"?{title:"\u4EBA\u6570",dataIndex:"user_count",align:"center",sorter:!0,width:80}:null,(et==null?void 0:et.filter)==="public"?{title:"\u72B6\u6001",dataIndex:"status",width:94,render:(pt,Qt)=>(0,Q.bg)()?f.createElement(f.Fragment,null,Ot===(Qt==null?void 0:Qt.identifier)?f.createElement("span",{className:w.hovBtn,onClick:on=>zt(on,Qt)},"\u5F00\u542F\u5237\u9898"):f.createElement(f.Fragment,null,pt===0&&f.createElement("span",{className:w.statusText},"\u672A\u5F00\u542F"),pt===1&&f.createElement("span",{className:w.statusText},"\u8FDB\u884C\u4E2D"),pt===2&&f.createElement("span",{className:w.statusText},"\u5DF2\u901A\u8FC7"))):"-"}:null,(et==null?void 0:et.filter)!=="public"?{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_disciplines_name",ellipsis:!0,width:200,render:pt=>f.createElement("span",null,pt==null?void 0:pt.join("\u3001"))}:null,(et==null?void 0:et.filter)==="all"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:null,(et==null?void 0:et.filter)!=="public"?{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",sorter:!0,width:180}:null,(0,Q.Ny)()?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:(pt,Qt)=>f.createElement(d.Z,{className:"ml10",dropdownRender:()=>Wn(Qt==null?void 0:Qt.identifier,Qt)},f.createElement("span",{style:{cursor:"default"},onClick:on=>on.preventDefault()},f.createElement("span",null,"\u66F4\u591A"),f.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"})))}:an&&(et==null?void 0:et.filter)!=="public"?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:(pt,Qt)=>Qt!=null&&Qt.is_self&&(Qt==null?void 0:Qt.practice_status)!==1?f.createElement(d.Z,{className:"ml10",dropdownRender:()=>er(Qt==null?void 0:Qt.identifier,Qt)},f.createElement("span",{style:{cursor:"default"},onClick:on=>on.preventDefault()},f.createElement("span",null,"\u66F4\u591A"),f.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"}))):"-"}:null].filter(pt=>!!pt),vt=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:(pt,Qt)=>f.createElement("span",{className:w.hov,onClick:on=>zt(on,Qt)},pt)},{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:pt=>f.createElement(f.Fragment,null,pt===1&&f.createElement("span",{className:w["btn-style-1"]},"\u7B80\u5355"),pt===2&&f.createElement("span",{className:w["btn-style-2"]},"\u9002\u4E2D"),pt===3&&f.createElement("span",{className:w["btn-style-3"]},"\u56F0\u96BE"))},(et==null?void 0:et.filter)==="not_reviewed"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",ellipsis:!0,width:100},(et==null?void 0:et.filter)==="not_reviewed"?{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"submit_time",width:180}:null,(et==null?void 0:et.filter)==="under_review"?{title:"\u5F00\u59CB\u5BA1\u6838\u65F6\u95F4",dataIndex:"start_review_time",width:180}:null,(et==null?void 0:et.filter)==="review_finished"?{title:"\u6700\u540E\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",width:180}:null,{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"center",width:120,render:(pt,Qt)=>{let on;switch(et==null?void 0:et.filter){case"under_review":on=f.createElement("div",{style:{display:"flex"}},f.createElement(_e.ZP,{type:"link",size:"small",onClick:Vt=>zt(Vt,Qt)},"\u5BA1\u6838"),f.createElement(_e.ZP,{type:"link",style:{color:"#666"},size:"small",onClick:Vt=>nn({e:Vt,record:Qt,op:"release"})},"\u79FB\u51FA"));break;case"review_finished":on=f.createElement(_e.ZP,{type:"link",size:"small",onClick:Vt=>{On(!0),xt(Qt)}},"\u5BA1\u6838\u8BB0\u5F55");break;default:on=f.createElement(_e.ZP,{type:"link",block:!0,onClick:Vt=>nn({e:Vt,record:Qt,op:"claim"})},"\u5F00\u59CB\u5BA1\u6838");break}return on}}].filter(pt=>!!pt),xt=pt=>jt(void 0,null,function*(){En([]);const Qt=yield(0,D.ZP)(`/api/practices/${pt.identifier}/review_list`,{method:"get"});En(Qt==null?void 0:Qt.reviews_list)}),Nt=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",key:"review_time",render:(pt,Qt)=>f.createElement("span",null,B()(pt).format("YYYY-MM-DD HH:mm:ss"))},{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",key:"reviewer"},{title:"\u5BA1\u6838\u7ED3\u679C",dataIndex:"status",width:120,key:"status",render:(pt,Qt)=>pt==="5"||pt===5?f.createElement("div",{style:{display:"flex",alignItems:"center"}},f.createElement("div",{style:{color:"#333333",marginRight:"5px",whiteSpace:"nowrap"}},"\u672A\u901A\u8FC7"),f.createElement("div",{style:{color:"#0152d9",whiteSpace:"nowrap",cursor:"pointer"},onClick:()=>{kn(Qt.description),In(!0)}},"\u67E5\u770B\u539F\u56E0")):f.createElement("span",null,"\u5DF2\u901A\u8FC7")}];(0,f.useEffect)(()=>{Kn(),Zt(et)},[]),(0,f.useEffect)(()=>{var pt;bt.length!==0&&((pt=xn==null?void 0:xn.current)==null?void 0:pt.clientHeight)>98&&Ne(1)},[bt]),(0,f.useEffect)(()=>{var pt;Kt.length!==0&&((pt=Tn==null?void 0:Tn.current)==null?void 0:pt.clientHeight)>98&&dt(1)},[Kt]),(0,f.useEffect)(()=>(Ee({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),()=>{Ee({type:"globalSetting/onlyShowBackTopToggle",payload:!0})}),[]),(0,f.useEffect)(()=>{var pt;(document.title==="\u4EBA\u5DE5\u667A\u80FD\u79D1\u7814\u670D\u52A1\u5E73\u53F0"||document.title==="\u9996\u9875"||document.title==="\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0"||(pt=document.title)!=null&&pt.includes("img"))&&(document.title="\u5728\u7EBF\u5237\u9898")},[se]),(0,f.useEffect)(()=>(document.body.setAttribute("data-custom","initial"),()=>{document.body.removeAttribute("data-custom")}),[]);const Zt=pt=>jt(void 0,null,function*(){var Qt,on;pt.search=encodeURIComponent(pt.search);const Vt=He().cloneDeep(pt);Vt.tag_discipline_id=(Qt=Vt.tag_discipline_id)!=null&&Qt.includes(-1)?[]:Vt.tag_discipline_id,Vt.source_discipline_id=(on=Vt.source_discipline_id)!=null&&on.includes(-1)?[]:Vt.source_discipline_id,console.log(Vt,"sendData"),St(!0),Ze([]);const vn=yield(0,D.ZP)("/api/practices.json",{method:"get",params:Vt});Yn([]),St(!1),Mt(vn==null?void 0:vn.practices_count),Ze(vn==null?void 0:vn.practices_list),Un((vn==null?void 0:vn.recommend_subjects)||[])}),nn=pt=>jt(void 0,[pt],function*({op:Qt,description:on,record:Vt,e:vn}){const Rn={op:Qt,description:on};St(!0);const nr=yield(0,D.ZP)(`/api/practices/${Vt.identifier}/review`,{method:"post",body:Rn});St(!1),Qt==="claim"&&(nr.status===0||nr.status==="0")&&zt(vn,Vt),Zt(et)}),gn=pt=>jt(void 0,null,function*(){St(!0);const Qt=yield(0,D.ZP)(`/api/practices/${pt.identifier}/publish`,{method:"post"});St(!1),Zt(et)}),Kn=()=>jt(void 0,null,function*(){var pt;const Qt=yield(0,D.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}}),on=yield(0,D.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source",position:"index"}}),Vt=yield(0,D.ZP)("/api/mypractices/rank_list",{method:"get",params:{}});if(Qt!=null&&Qt.tag_disciplines){const vn=[{id:-1,name:"\u5168\u90E8",count:Qt==null?void 0:Qt.totalCount},...Qt==null?void 0:Qt.tag_disciplines];Tt(vn)}if(on!=null&&on.tag_disciplines){const vn=[{id:-1,name:"\u5168\u90E8",count:on==null?void 0:on.totalCount},...on==null?void 0:on.tag_disciplines];en(vn)}dn(Vt||{}),Jt((pt=Vt==null?void 0:Vt.my_record)==null?void 0:pt.outsource)}),mn=(pt,Qt)=>{var on;et.page=1;let Vt=et[`${Qt}_discipline_id`];(on=et[`${Qt}_discipline_id`])!=null&&on.includes(pt)?Vt=Vt.filter(vn=>vn!==pt):Vt.push(pt),pt===-1?Vt=[-1]:(Vt=Vt.filter(vn=>vn!==-1),Vt.length||(Vt=[-1])),et[`${Qt}_discipline_id`]=Vt,ln(Et({},et)),Zt(et)},Sn=(pt,Qt)=>{et.page=1,et[Qt]=typeof pt=="number"?pt:null,ln(Et({},et)),Zt(et)},Fn=pt=>{et.page=1,et.save_search=pt,ln(Et({},et))},Nn=(pt,Qt,on)=>{et.page=pt==null?void 0:pt.current,et.per_page=pt==null?void 0:pt.pageSize,on!=null&&on.order?(et.sort_by=on==null?void 0:on.field,et.sort_direction=(on==null?void 0:on.order)==="ascend"?"asc":"desc"):(et.sort_by=null,et.sort_direction=null),ln(Et({},et)),Zt(et)},Vn=pt=>{et.page=1,et.filter=pt,et.status=null,et.practice_status=null,ln(Et({},et)),Zt(et)},wn=(pt,Qt)=>{if((Qt==null?void 0:Qt.length)===0){ne.ZP.warning("\u8BF7\u9009\u62E9\u8BD5\u9898");return}const on=()=>jt(void 0,null,function*(){const Vt=yield(0,D.ZP)("/api/practices/batch_op.json",{method:"post",body:{identifier:Qt,op:pt}});if((Vt==null?void 0:Vt.status)===0){const vn=kt.length===1&&et.page!==1?et.page-1:et.page;et.page=vn,ln(Et({},et)),Zt(et)}});if(pt===-1){o.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5220\u9664\u786E\u8BA4",icon:null,className:"custom-modal-divider",content:"\u5220\u9664\u540E\u9898\u76EE\u5C06\u4E0D\u53EF\u518D\u627E\u56DE\u3002",onOk:on});return}on()},Gn=f.createElement(g.default,null,(et==null?void 0:et.filter)==="public"?f.createElement(g.default.Item,{onClick:()=>wn(0,Cn)},"\u6279\u91CF\u79FB\u51FA\u516C\u5171"):[f.createElement(g.default.Item,{key:2,onClick:()=>wn(1,Cn)},"\u6279\u91CF\u79FB\u5165\u516C\u5171"),f.createElement(g.default.Item,{key:1,onClick:()=>wn(0,Cn)},"\u6279\u91CF\u79FB\u51FA\u516C\u5171")],(0,Q.Ny)()&&f.createElement(g.default.Item,{onClick:()=>Jn()},"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93"),(et==null?void 0:et.filter)!=="public"&&f.createElement(g.default.Item,{onClick:()=>wn(-1,Cn)},"\u6279\u91CF\u5220\u9664")),Wn=(pt,Qt)=>f.createElement(g.default,null,(Qt==null?void 0:Qt.practice_status)===1?f.createElement(g.default.Item,{onClick:()=>wn(0,[pt])},"\u79FB\u51FA\u516C\u5171"):f.createElement(g.default.Item,{onClick:()=>wn(1,[pt])},"\u79FB\u5165\u516C\u5171"),(et==null?void 0:et.filter)==="mine"?f.createElement(g.default.Item,{onClick:()=>gn(Qt),disabled:![0,4,5].includes(Qt.practice_status)},[0,4,5].includes(Qt.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"):null,f.createElement(g.default.Item,{onClick:()=>(0,tt.xg)(`/problems/${pt}/ojedit`)},"\u7F16\u8F91"),(et==null?void 0:et.filter)!=="public"&&f.createElement(g.default.Item,{onClick:()=>wn(-1,[pt])},"\u5220\u9664")),er=(pt,Qt)=>f.createElement(g.default,null,f.createElement(g.default.Item,{onClick:()=>gn(Qt),disabled:![0,4,5].includes(Qt.practice_status)},[0,4,5].includes(Qt.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"),f.createElement(g.default.Item,{onClick:()=>(0,tt.xg)(`/problems/${pt}/ojedit`)},"\u7F16\u8F91"),f.createElement(g.default.Item,{onClick:()=>wn(-1,[pt])},"\u5220\u9664")),bn=pt=>{Yn(pt)},Jn=()=>{if(!Cn.length){ne.ZP.warning("\u8BF7\u9009\u62E9\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u7684\u7F16\u7A0B\u5237\u9898");return}let pt=null;o.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93",icon:null,className:"custom-modal-divider",content:f.createElement("div",null,f.createElement("p",{className:"mt20"},"\u5DF2\u9009",f.createElement("span",{className:"c-light-primary"},Cn.length),"\u4E2D\u4E2A\u7F16\u7A0B\u5237\u9898\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u6210\u4E3A\u7F16\u7A0B\u9898"),f.createElement("div",null,"\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898\u7684\u8BED\u8A00\uFF1A"),f.createElement(A.default.Group,{className:"mt3",onChange:Qt=>{pt=Qt,document.getElementById("send-to-modal").style.display="none"}},f.createElement(A.default,{value:"c"},"C\u8BED\u8A00"),f.createElement(A.default,{value:"c++"},"C++\u8BED\u8A00"),f.createElement(A.default,{value:"java"},"Java\u8BED\u8A00"),f.createElement(A.default,{value:"python"},"Python\u8BED\u8A00")),f.createElement("div",{id:"send-to-modal",style:{color:"#E30000",display:"none"}},"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00")),onOk:()=>jt(void 0,null,function*(){if(!(pt!=null&&pt.length))return document.getElementById("send-to-modal").style.display="block",Promise.reject();const Qt=yield(0,D.ZP)("/api/practices/send_to_item_bank.json",{method:"post",body:{identifiers:Cn,language:pt}});(Qt==null?void 0:Qt.status)===0&&ne.ZP.success("\u53D1\u9001\u6210\u529F")})})},cr={selectedRowKeys:Cn,columnWidth:40,onChange:bn};return f.createElement("section",{className:w.wrap},f.createElement(O.jL,{img:X,title:"\u7F16\u7A0B\u5237\u9898",sunTitle:"\u5FEB\u901F\u63D0\u9AD8\u7F16\u7A0B\u80FD\u529B",bannerExtraContent:f.createElement(d.Z,{dropdownRender:()=>{var pt,Qt;return f.createElement(g.default,null,f.createElement(g.default.Item,{key:1,onClick:()=>{ue.history.push("/problems/add")}},"\u65B0\u5EFA\u9898\u76EE"),f.createElement(g.default.Item,{key:2,onClick:()=>{ue.history.push("/problems/batchAdd")}},"\u6279\u91CF\u5BFC\u5165\u9898\u76EE"),!((pt=se==null?void 0:se.setting)!=null&&pt.main_site)&&!((Qt=se==null?void 0:se.setting)!=null&&Qt.is_local)&&f.createElement(g.default.Item,{key:3,onClick:()=>{gt(!0)}},"\u4ECE\u9898\u5E93\u4E2D\u9009\u9898"))}},f.createElement("div",{className:w.addQuestion,style:{visibility:(0,Q.Ny)()||an||!((k=se==null?void 0:se.setting)!=null&&k.main_site)&&!((Y=se==null?void 0:se.setting)!=null&&Y.is_local)&&(0,Q.EO)()?"visible":"hidden"}},f.createElement("span",null,"\u65B0\u5EFA\u9898\u76EE")))}),f.createElement("div",{className:w.content},f.createElement("div",{className:w.left},f.createElement(p.Z,{className:`${w.filterPoint} mb10`,align:"top"},f.createElement(E.Z,{className:w.filterType},"\u77E5\u8BC6\u70B9"),f.createElement(E.Z,{className:w.btnWarp,ref:xn,style:cn>0?{height:cn===1?76:"auto"}:{}},bt==null?void 0:bt.map(pt=>{var Qt;return f.createElement("div",{onClick:()=>mn(pt.id,"tag"),key:pt.id,className:(Qt=et==null?void 0:et.tag_discipline_id)!=null&&Qt.includes(pt.id)?`${w.btn} ${w.btnActive}`:w.btn},f.createElement("span",{title:pt.name},pt.name),f.createElement("span",{className:w.count,style:{display:pt.count?"block":"none"}},pt.count))})),!!cn&&f.createElement(E.Z,{className:w.fold},cn===1?f.createElement("div",{onClick:()=>Ne(2),className:w.action},"\u5C55\u5F00",f.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):f.createElement("div",{onClick:()=>Ne(1),className:w.action},"\u6536\u8D77",f.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"})))),!!Kt.length&&f.createElement(p.Z,{className:w.filterPoint,align:"top",style:{marginBottom:22}},f.createElement(E.Z,{className:w.filterType},"\u6765\u6E90"),f.createElement(E.Z,{className:w.btnWarp,ref:Tn,style:Re>0?{height:Re===1?76:"auto"}:{}},Kt==null?void 0:Kt.map(pt=>{var Qt;return f.createElement("div",{onClick:()=>mn(pt.id,"source"),key:pt.id,className:(Qt=et==null?void 0:et.source_discipline_id)!=null&&Qt.includes(pt.id)?`${w.btn} ${w.btnActive}`:w.btn},f.createElement("span",{title:pt.name},pt.name),f.createElement("span",{className:w.count},pt.count))}),!!Re&&f.createElement(E.Z,{className:w.fold},Re===1?f.createElement("div",{onClick:()=>dt(2),className:w.action},"\u5C55\u5F00",f.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):f.createElement("div",{onClick:()=>dt(1),className:w.action},"\u6536\u8D77",f.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"}))))),f.createElement("div",{className:w.control},f.createElement(b.default,{suffixIcon:f.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u96BE\u5EA6",value:et==null?void 0:et.difficulty,onChange:pt=>Sn(pt,"difficulty")},f.createElement(b.default.Option,{value:1},"\u7B80\u5355"),f.createElement(b.default.Option,{value:2},"\u9002\u4E2D"),f.createElement(b.default.Option,{value:3},"\u56F0\u96BE")),(0,Q.bg)()&&et.filter==="public"&&f.createElement(b.default,{suffixIcon:f.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:et==null?void 0:et.status,onChange:pt=>Sn(pt,"status")},f.createElement(b.default.Option,{value:0},"\u672A\u5F00\u542F"),f.createElement(b.default.Option,{value:1},"\u8FDB\u884C\u4E2D"),f.createElement(b.default.Option,{value:2},"\u5DF2\u901A\u8FC7")),(0,Q.bg)()&&et.filter==="mine"&&f.createElement(b.default,{suffixIcon:f.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:et==null?void 0:et.practice_status,onChange:pt=>Sn(pt,"practice_status")},f.createElement(b.default.Option,{value:0},"\u672A\u53D1\u5E03"),f.createElement(b.default.Option,{value:1},"\u5DF2\u516C\u5F00"),f.createElement(b.default.Option,{value:2},"\u672A\u5BA1\u6838"),f.createElement(b.default.Option,{value:3},"\u5BA1\u6838\u4E2D"),f.createElement(b.default.Option,{value:4},"\u672A\u516C\u5F00"),f.createElement(b.default.Option,{value:5},"\u672A\u901A\u8FC7")),(0,Q.bg)()&&et.filter==="all"&&f.createElement(b.default,{suffixIcon:f.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:et==null?void 0:et.practice_status,onChange:pt=>Sn(pt,"practice_status")},f.createElement(b.default.Option,{value:0},"\u672A\u53D1\u5E03"),f.createElement(b.default.Option,{value:1},"\u5DF2\u516C\u5F00"),f.createElement(b.default.Option,{value:2},"\u672A\u5BA1\u6838"),f.createElement(b.default.Option,{value:3},"\u5BA1\u6838\u4E2D"),f.createElement(b.default.Option,{value:4},"\u672A\u516C\u5F00"),f.createElement(b.default.Option,{value:5},"\u672A\u901A\u8FC7")),f.createElement(I.default.Search,{className:w.search,size:"large",suffix:f.createElement("i",{className:`iconfont icon-sousuo9 font14 ${w.searchIcon}`,onClick:()=>{et.page=1,et.search=et.save_search,ln(Et({},et)),et.save_search&&(0,Rt.tk)({name:et.save_search,copywriting:et.save_search,position:"Practice"}),Zt(et)}}),placeholder:(0,Q.Ny)()?"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u3001\u521B\u5EFA\u8005\u641C\u7D22":"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",value:et==null?void 0:et.save_search,onChange:pt=>Fn(pt.target.value),onSearch:pt=>{et.page=1,et.search=et.save_search,ln(Et({},et)),pt&&(0,Rt.tk)({name:pt,copywriting:pt,position:"Practice"}),Zt(et)}})),f.createElement("div",{className:w.table},f.createElement("div",{className:w.tabWarp,style:(0,Q.Ny)()||an?{}:{height:10,border:0}},(0,Q.Ny)()?f.createElement(j.default,{className:w.tab,activeKey:Dn?"not_reviewed":et.filter,onChange:Vn,tabBarExtraContent:!Dn&&f.createElement(d.Z,{dropdownRender:()=>Gn},f.createElement("span",{className:"ant-dropdown-link font14 current",onClick:pt=>pt.preventDefault()},"\u6279\u91CF\u64CD\u4F5C ",f.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"iconfont icon-xiajiantou1"})))},f.createElement(j.default.TabPane,{tab:"\u516C\u5171",key:"public"}),f.createElement(j.default.TabPane,{tab:"\u5168\u90E8",key:"all"}),f.createElement(j.default.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),f.createElement(j.default.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):an?f.createElement(j.default,{className:w.tab,activeKey:Dn?"not_reviewed":et.filter,onChange:Vn},f.createElement(j.default.TabPane,{tab:"\u516C\u5171",key:"public"}),f.createElement(j.default.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),f.createElement(j.default.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):null),Dn?f.createElement("div",{className:w.tabWarp,style:(0,Q.Ny)()||an?{}:{height:10,border:0}},f.createElement(j.default,{className:w.tab,activeKey:et.filter,onChange:Vn},f.createElement(j.default.TabPane,{tab:"\u5F85\u5BA1\u6838",key:"not_reviewed"}),f.createElement(j.default.TabPane,{tab:"\u5BA1\u6838\u4E2D",key:"under_review"}),f.createElement(j.default.TabPane,{tab:"\u5DF2\u5BA1\u6838",key:"review_finished"}))):null,!((0,Q.Ny)()||an)&&_t&&f.createElement("div",{className:w.tabWarp2,style:{justifyContent:"end"}},ar?f.createElement(p.Z,{align:"middle"},f.createElement(p.Z,{onClick:()=>Te(!0),align:"middle",className:"current"},f.createElement("i",{className:"iconfont icon-yixuan mr10 c-light-primary font20"}),f.createElement("span",null,"\u5DF2\u9009",f.createElement("span",{className:"c-light-primary"},Cn.length),"\u4E2A")),f.createElement(_e.ZP,{className:"mr20 ml40",ghost:!0,onClick:()=>{Me(!1),Yn([])},type:"primary"},"\u53D6\u6D88"),f.createElement(_e.ZP,{onClick:Jn,ghost:!0,type:"primary"},"\u786E\u8BA4\u53D1\u9001")):f.createElement(_e.ZP,{onClick:()=>Me(!0),type:"primary"},f.createElement("i",{className:"iconfont icon-fasong mr5"}),"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93")),f.createElement($.default,{rowSelection:(0,Q.Ny)()||ar?cr:void 0,className:w.customTable,dataSource:kt,bordered:!1,rowKey:pt=>pt.identifier,columns:Dn?vt:It,rowClassName:w.row,loading:ft,onRow:pt=>({onMouseEnter:Qt=>{tn(pt==null?void 0:pt.identifier)},onMouseLeave:Qt=>{tn(null)}}),onChange:Nn,pagination:{pageSize:et.per_page,total:mt,current:et.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,size:"default",position:["bottomCenter"],showTotal:pt=>f.createElement("span",{className:"mr10"},"\u5171",f.createElement("span",{className:"c-orange"},pt),"\u6761\u6570\u636E")}}))),f.createElement("div",{className:w.right},f.createElement("div",{className:w.statistics},f.createElement("img",{src:y,alt:""}),f.createElement("div",{className:w.title},"\u6211\u7684\u5237\u9898\u7EDF\u8BA1"),f.createElement(p.Z,{justify:"space-between"},f.createElement(E.Z,{className:w.statisticItem},f.createElement("div",{className:w.rate},(0,Q.bg)()?((he=At==null?void 0:At.my_record)==null?void 0:he.passed_ratio)||0:"-"),f.createElement("div",{className:w.dataName},"\u901A\u8FC7\u7387(%)")),f.createElement(E.Z,{className:w.statisticItem},f.createElement("div",{className:w.rate},(0,Q.bg)()?((ce=At==null?void 0:At.my_record)==null?void 0:ce.passed_count)||0:"-"),f.createElement("div",{className:w.dataName},"\u5237\u9898\u6570")),f.createElement(E.Z,{className:w.statisticItem},f.createElement("div",{className:w.rate},(0,Q.bg)()?(Be=(xe=At==null?void 0:At.my_record)==null?void 0:xe.time_count)==null?void 0:Be.toFixed(2):"-"),f.createElement("div",{className:w.dataName},"\u7D2F\u8BA1\u65F6\u957F(h)")))),!!((Xe=At==null?void 0:At.rank_list)!=null&&Xe.length)&&f.createElement(f.Fragment,null,((ut=ve.userInfo)==null?void 0:ut.user_id)!=2&&(0,Q.JA)()&&((nt=se==null?void 0:se.setting)==null?void 0:nt.main_site)&&Ln&&(zn==null?void 0:zn.length)>0&&f.createElement("div",{className:w.problemsclose,style:{position:"relative"}},f.createElement(le.Z,{autoplay:!0,pauseOnDotsHover:!0,style:{width:292,height:170,marginBottom:"10px",overflow:"hidden"}},zn==null?void 0:zn.map((pt,Qt)=>f.createElement("div",{style:{display:"flex"},key:Qt},f.createElement("a",{href:`/paths/${pt.identifier}`},f.createElement("img",{style:{width:"292px",height:"170px",borderRadius:"4px"},src:H.Z.IMG_SERVER+"/"+pt.image_url}))))),f.createElement("img",{className:w.imgsrc,onClick:()=>{localStorage.setItem("problemsclose",B()().add(1,"days").unix()+""),Mn(!1)},src:Ct})),f.createElement("div",{className:w.sort},f.createElement("div",{className:w.rankHeader},f.createElement("img",{src:v,className:w.rankIcon})),!!((Ue=At==null?void 0:At.my_record)!=null&&Ue.rank)&&f.createElement("div",{className:`${w.myRecord} ${w.li}`},f.createElement("span",{className:`${w.recordPrefix} ${w.mine}`},"\u6211\u7684"),f.createElement("img",{className:w.avatar,src:H.Z.IMG_SERVER+"/images/"+((R=At==null?void 0:At.my_record)==null?void 0:R.image_url)}),f.createElement("span",{title:(U=At==null?void 0:At.my_record)==null?void 0:U.nickname,className:w.nickname},(S=At==null?void 0:At.my_record)==null?void 0:S.nickname),f.createElement("span",{className:w.myRank},((ze=At==null?void 0:At.my_record)==null?void 0:ze.rank)>999?"\u7B2C999+\u540D":`\u7B2C${(ke=At==null?void 0:At.my_record)==null?void 0:ke.rank}\u540D`),f.createElement("span",{className:w.questionNumber},(Pe=At==null?void 0:At.my_record)==null?void 0:Pe.passed_count,"\u9898")),(Ge=At==null?void 0:At.rank_list)==null?void 0:Ge.map((pt,Qt)=>{let on=Qt+1;return Qt===0&&(on=P.Z),Qt===1&&(on=G.Z),Qt===2&&(on=ie.Z),f.createElement("div",{className:w.li,key:Qt},typeof on=="number"?f.createElement("span",{className:w.recordPrefix},on):f.createElement("span",{className:w.recordPrefix},f.createElement("img",{src:on})),f.createElement("img",{className:w.avatar,src:H.Z.IMG_SERVER+"/images/"+(pt==null?void 0:pt.image_url)}),f.createElement("span",{title:pt==null?void 0:pt.nickname,className:w.nickname},pt==null?void 0:pt.nickname),f.createElement("span",{className:w.questionNumber},pt.passed_count,"\u9898"))}))))),lt&&f.createElement(Le,{setScoreShow:gt,isshixuns:!1,ScoreShow:!!lt,isloadings:!1,onOk:pt=>jt(void 0,null,function*(){if(!pt.length){ne.ZP.warning("\u8BF7\u9009\u62E9\u8BD5\u9898");return}const Qt=yield(0,D.ZP)(`/api/item_banks/${pt==null?void 0:pt[0]}/send_to_practice`,{method:"post",body:{ids:pt}});(Qt==null?void 0:Qt.status)==0&&(ne.ZP.success("\u64CD\u4F5C\u6210\u529F"),et.filter="mine",ln(Et({},et)),gt(!1),Zt(et))})}),f.createElement(o.default,{title:"\u5BA1\u6838\u8BB0\u5F55",open:Zn,onOk:()=>{},onCancel:()=>{On(!1)},footer:null,closable:!0},f.createElement($.default,{dataSource:pn,columns:Nt})),f.createElement(o.default,{title:"\u672A\u901A\u8FC7\u539F\u56E0",open:Bn,onOk:()=>{},onCancel:()=>{In(!1)},footer:null,closable:!0},f.createElement(z.Z,{value:yn})),f.createElement(o.default,{open:Ie,centered:!0,width:1e3,okText:"\u786E\u5B9A\u53D1\u9001",onCancel:()=>Te(!1),cancelText:"\u8FD4\u56DE\u5217\u8868",onOk:()=>jt(void 0,null,function*(){Te(!1),Jn()}),title:"\u67E5\u770B\u5DF2\u9009"},f.createElement("div",{className:"font14 c-light-primary mb10"},"\u5DF2\u9009",Cn==null?void 0:Cn.length,"\u4E2A"),f.createElement("div",{style:{height:400,overflow:"auto"}},(We=kt==null?void 0:kt.filter(pt=>Cn.includes(pt.identifier)))==null?void 0:We.map((pt,Qt)=>{var on,Vt;return f.createElement("div",{key:Qt,className:w.sendModal},f.createElement("div",{className:w.li},f.createElement("p",null,pt==null?void 0:pt.name),f.createElement("div",{className:w.bottom},f.createElement("span",{className:"c-grey-333"},"\u7F16\u7A0B\u9898"),f.createElement("i",{className:w.line}),f.createElement("span",{className:"c-grey-333"},pt.difficulty===1&&"\u7B80\u5355",pt.difficulty===2&&"\u9002\u4E2D",pt.difficulty===3&&"\u56F0\u96BE"),f.createElement("i",{className:w.line}),f.createElement("span",null,"\u521B\u5EFA\u8005\xA0",f.createElement(F.Z,{title:pt==null?void 0:pt.creator},f.createElement("span",{className:"c-grey-333"},((on=pt==null?void 0:pt.creator)==null?void 0:on.length)>6?((Vt=pt==null?void 0:pt.creator)==null?void 0:Vt.substr(0,3))+"...":pt==null?void 0:pt.creator))),f.createElement("i",{className:w.line}),f.createElement("span",{className:w.des},"\u66F4\u65B0\xA0",f.createElement("span",{className:"c-grey-333"},pt==null?void 0:pt.updated_at)))),f.createElement("div",{className:w.del,onClick:()=>{Yn(Cn.filter(vn=>vn!==pt.identifier))}},"\u5220\u9664"))}))))};var Bt=(0,ue.connect)(({user:se,globalSetting:ve})=>({user:se,globalSetting:ve}))(wt)},90290:function(Pn,Gt,_){"use strict";_.d(Gt,{AL:function(){return D},Iy:function(){return A},Qv:function(){return b},ez:function(){return H},jb:function(){return p}});var f=_(32834),ue=_.n(f),z=_(11690),ae=_.n(z);let B=1;function d(oe,ge){const me=oe.match(/^(\s+)(?:```)/);if(me===null)return ge;const at=me[1];return ge.split(`
`).map(Z=>{const T=Z.match(/^\s+/);if(T===null)return Z;const[P]=T;return P.length>=at.length?Z.slice(at.length):Z}).join(`
`)}let _e=[],ne=["<ul>"];const o=new(ue()).Renderer,g=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function A(){_e.length=0,ne=["<ul>"]}const p={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function E(oe,ge,me,at){if(ge>=oe.length||oe[ge].level<=me)return ge;var Z=oe[ge];at.push("<li><a href='#"+B+Z.anchor+"'>"+Z.text+"</a>"),ge++;var T=[];return ge=E(oe,ge,Z.level,T),T.length>0&&(at.push("<ul>"),T.forEach(function(P){at.push(P)}),at.push("</ul>")),at.push("</li>"),ge=E(oe,ge,me,at),ge}function b(){return E(_e,0,0,ne),ne.push("</ul>"),ne.join("")}const I={heading(oe){const ge=g.exec(oe);if(B+=1,ge)return{type:"heading",raw:ge[0],depth:ge[1].length,text:ge[2]}},fences(oe){const ge=this.rules.block.fences.exec(oe);if(ge){const me=ge[0];let at=d(me,ge[3]||"");const Z=ge[2]?ge[2].trim():ge[2];if(["latex","katex","math"].indexOf(Z)>=0){const T=le(),P=at;at=T,F[T]={type:"block",expression:P}}return{type:"code",raw:me,lang:Z,text:at}}}},j=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let $=0;const le=()=>`__special_katext_id_${$++}__`;let F={};function H(){return F}function D(){$=0,F={}}function w(oe){return oe=oe.replace(j,(ge,me)=>{const at=le();return F[at]={type:"inline",expression:me},at}),oe}const Q=o.listitem;o.listitem=function(oe){return Q(w(oe))};const re=o.paragraph;o.paragraph=function(oe){return re(w(oe))};const ee=o.tablecell;o.tablecell=function(oe,ge){return ee(w(oe),ge)},o.code=function(oe,ge,me){const at=(ge||"").match(/\S*/)[0];return at?["latex","katex","math"].indexOf(at)>=0?`<p class='editormd-tex'>${oe}</p>`:`<pre class="prettyprint linenums"><code class="language-${ge}">${me?oe:(0,z.escape)(oe,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(me?oe:(0,z.escape)(oe,!0))+"</code></pre>"},o.heading=function(oe,ge,me){let at=this.options.headerPrefix+me.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return _e.push({anchor:at,level:ge,text:oe}),"<h"+ge+' id="'+B+at+'">'+oe+"</h"+ge+">"},ue().setOptions({silent:!0,gfm:!0,pedantic:!1}),ue().use({tokenizer:I,renderer:o}),Gt.ZP=ue()},84022:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return nt}});var f=_(59301),ue=_(32855),z=_(27247),ae=_(33377),B=_(93912),d=_(96994),_e=_(45533),ne=_(90029),o=_(18881),g=_(74430),A=_(34666),p=_(43079),E={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0},b=E,I=_(53280),j=_(92310),$=_.n(j),le={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(R){return f.createElement("ul",{style:{display:"block"}},R)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(R){return f.createElement("button",null,R+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null},F=le;function H(Ue,R,U){return Math.max(R,Math.min(Ue,U))}var D=function(R){var U=["onTouchStart","onTouchMove","onWheel"];U.includes(R._reactName)||R.preventDefault()},w=function(R){for(var U=[],S=re(R),ze=ee(R),ke=S;ke<ze;ke++)R.lazyLoadedList.indexOf(ke)<0&&U.push(ke);return U},Q=function(R){for(var U=[],S=re(R),ze=ee(R),ke=S;ke<ze;ke++)U.push(ke);return U},re=function(R){return R.currentSlide-oe(R)},ee=function(R){return R.currentSlide+ge(R)},oe=function(R){return R.centerMode?Math.floor(R.slidesToShow/2)+(parseInt(R.centerPadding)>0?1:0):0},ge=function(R){return R.centerMode?Math.floor((R.slidesToShow-1)/2)+1+(parseInt(R.centerPadding)>0?1:0):R.slidesToShow},me=function(R){return R&&R.offsetWidth||0},at=function(R){return R&&R.offsetHeight||0},Z=function(R){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S,ze,ke,Pe;return S=R.startX-R.curX,ze=R.startY-R.curY,ke=Math.atan2(ze,S),Pe=Math.round(ke*180/Math.PI),Pe<0&&(Pe=360-Math.abs(Pe)),Pe<=45&&Pe>=0||Pe<=360&&Pe>=315?"left":Pe>=135&&Pe<=225?"right":U===!0?Pe>=35&&Pe<=135?"up":"down":"vertical"},T=function(R){var U=!0;return R.infinite||(R.centerMode&&R.currentSlide>=R.slideCount-1||R.slideCount<=R.slidesToShow||R.currentSlide>=R.slideCount-R.slidesToShow)&&(U=!1),U},P=function(R,U){var S={};return U.forEach(function(ze){return S[ze]=R[ze]}),S},G=function(R){var U=f.Children.count(R.children),S=R.listRef,ze=Math.ceil(me(S)),ke=R.trackRef&&R.trackRef.node,Pe=Math.ceil(me(ke)),Ge;if(R.vertical)Ge=ze;else{var We=R.centerMode&&parseInt(R.centerPadding)*2;typeof R.centerPadding=="string"&&R.centerPadding.slice(-1)==="%"&&(We*=ze/100),Ge=Math.ceil((ze-We)/R.slidesToShow)}var ct=S&&at(S.querySelector('[data-index="0"]')),Lt=ct*R.slidesToShow,Pt=R.currentSlide===void 0?R.initialSlide:R.currentSlide;R.rtl&&R.currentSlide===void 0&&(Pt=U-1-R.initialSlide);var cn=R.lazyLoadedList||[],Ne=w((0,z.Z)((0,z.Z)({},R),{},{currentSlide:Pt,lazyLoadedList:cn}));cn=cn.concat(Ne);var Re={slideCount:U,slideWidth:Ge,listWidth:ze,trackWidth:Pe,currentSlide:Pt,slideHeight:ct,listHeight:Lt,lazyLoadedList:cn};return R.autoplaying===null&&R.autoplay&&(Re.autoplaying="playing"),Re},ie=function(R){var U=R.waitForAnimate,S=R.animating,ze=R.fade,ke=R.infinite,Pe=R.index,Ge=R.slideCount,We=R.lazyLoad,ct=R.currentSlide,Lt=R.centerMode,Pt=R.slidesToScroll,cn=R.slidesToShow,Ne=R.useCSS,Re=R.lazyLoadedList;if(U&&S)return{};var dt=Pe,mt,Mt,bt,Tt={},Kt={},en=ke?Pe:H(Pe,0,Ge-1);if(ze){if(!ke&&(Pe<0||Pe>=Ge))return{};Pe<0?dt=Pe+Ge:Pe>=Ge&&(dt=Pe-Ge),We&&Re.indexOf(dt)<0&&(Re=Re.concat(dt)),Tt={animating:!0,currentSlide:dt,lazyLoadedList:Re,targetSlide:dt},Kt={animating:!1,targetSlide:dt}}else mt=dt,dt<0?(mt=dt+Ge,ke?Ge%Pt!==0&&(mt=Ge-Ge%Pt):mt=0):!T(R)&&dt>ct?dt=mt=ct:Lt&&dt>=Ge?(dt=ke?Ge:Ge-1,mt=ke?0:Ge-1):dt>=Ge&&(mt=dt-Ge,ke?Ge%Pt!==0&&(mt=0):mt=Ge-cn),!ke&&dt+cn>=Ge&&(mt=Ge-cn),Mt=Ke((0,z.Z)((0,z.Z)({},R),{},{slideIndex:dt})),bt=Ke((0,z.Z)((0,z.Z)({},R),{},{slideIndex:mt})),ke||(Mt===bt&&(dt=mt),Mt=bt),We&&(Re=Re.concat(w((0,z.Z)((0,z.Z)({},R),{},{currentSlide:dt})))),Ne?(Tt={animating:!0,currentSlide:mt,trackStyle:Ht((0,z.Z)((0,z.Z)({},R),{},{left:Mt})),lazyLoadedList:Re,targetSlide:en},Kt={animating:!1,currentSlide:mt,trackStyle:Ft((0,z.Z)((0,z.Z)({},R),{},{left:bt})),swipeLeft:null,targetSlide:en}):Tt={currentSlide:mt,trackStyle:Ft((0,z.Z)((0,z.Z)({},R),{},{left:bt})),lazyLoadedList:Re,targetSlide:en};return{state:Tt,nextState:Kt}},X=function(R,U){var S,ze,ke,Pe,Ge,We=R.slidesToScroll,ct=R.slidesToShow,Lt=R.slideCount,Pt=R.currentSlide,cn=R.targetSlide,Ne=R.lazyLoad,Re=R.infinite;if(Pe=Lt%We!==0,S=Pe?0:(Lt-Pt)%We,U.message==="previous")ke=S===0?We:ct-S,Ge=Pt-ke,Ne&&!Re&&(ze=Pt-ke,Ge=ze===-1?Lt-1:ze),Re||(Ge=cn-We);else if(U.message==="next")ke=S===0?We:S,Ge=Pt+ke,Ne&&!Re&&(Ge=(Pt+We)%Lt+S),Re||(Ge=cn+We);else if(U.message==="dots")Ge=U.index*U.slidesToScroll;else if(U.message==="children"){if(Ge=U.index,Re){var dt=Je((0,z.Z)((0,z.Z)({},R),{},{targetSlide:Ge}));Ge>U.currentSlide&&dt==="left"?Ge=Ge-Lt:Ge<U.currentSlide&&dt==="right"&&(Ge=Ge+Lt)}}else U.message==="index"&&(Ge=Number(U.index));return Ge},y=function(R,U,S){return R.target.tagName.match("TEXTAREA|INPUT|SELECT")||!U?"":R.keyCode===37?S?"next":"previous":R.keyCode===39?S?"previous":"next":""},v=function(R,U,S){return R.target.tagName==="IMG"&&D(R),!U||!S&&R.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:R.touches?R.touches[0].pageX:R.clientX,startY:R.touches?R.touches[0].pageY:R.clientY,curX:R.touches?R.touches[0].pageX:R.clientX,curY:R.touches?R.touches[0].pageY:R.clientY}}},O=function(R,U){var S=U.scrolling,ze=U.animating,ke=U.vertical,Pe=U.swipeToSlide,Ge=U.verticalSwiping,We=U.rtl,ct=U.currentSlide,Lt=U.edgeFriction,Pt=U.edgeDragged,cn=U.onEdge,Ne=U.swiped,Re=U.swiping,dt=U.slideCount,mt=U.slidesToScroll,Mt=U.infinite,bt=U.touchObject,Tt=U.swipeEvent,Kt=U.listHeight,en=U.listWidth;if(!S){if(ze)return D(R);ke&&Pe&&Ge&&D(R);var At,dn={},an=Ke(U);bt.curX=R.touches?R.touches[0].pageX:R.clientX,bt.curY=R.touches?R.touches[0].pageY:R.clientY,bt.swipeLength=Math.round(Math.sqrt(Math.pow(bt.curX-bt.startX,2)));var Jt=Math.round(Math.sqrt(Math.pow(bt.curY-bt.startY,2)));if(!Ge&&!Re&&Jt>10)return{scrolling:!0};Ge&&(bt.swipeLength=Jt);var kt=(We?-1:1)*(bt.curX>bt.startX?1:-1);Ge&&(kt=bt.curY>bt.startY?1:-1);var Ze=Math.ceil(dt/mt),ft=Z(U.touchObject,Ge),St=bt.swipeLength;return Mt||(ct===0&&(ft==="right"||ft==="down")||ct+1>=Ze&&(ft==="left"||ft==="up")||!T(U)&&(ft==="left"||ft==="up"))&&(St=bt.swipeLength*Lt,Pt===!1&&cn&&(cn(ft),dn.edgeDragged=!0)),!Ne&&Tt&&(Tt(ft),dn.swiped=!0),ke?At=an+St*(Kt/en)*kt:We?At=an-St*kt:At=an+St*kt,Ge&&(At=an+St*kt),dn=(0,z.Z)((0,z.Z)({},dn),{},{touchObject:bt,swipeLeft:At,trackStyle:Ft((0,z.Z)((0,z.Z)({},U),{},{left:At}))}),Math.abs(bt.curX-bt.startX)<Math.abs(bt.curY-bt.startY)*.8||bt.swipeLength>10&&(dn.swiping=!0,D(R)),dn}},pe=function(R,U){var S=U.dragging,ze=U.swipe,ke=U.touchObject,Pe=U.listWidth,Ge=U.touchThreshold,We=U.verticalSwiping,ct=U.listHeight,Lt=U.swipeToSlide,Pt=U.scrolling,cn=U.onSwipe,Ne=U.targetSlide,Re=U.currentSlide,dt=U.infinite;if(!S)return ze&&D(R),{};var mt=We?ct/Ge:Pe/Ge,Mt=Z(ke,We),bt={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(Pt||!ke.swipeLength)return bt;if(ke.swipeLength>mt){D(R),cn&&cn(Mt);var Tt,Kt,en=dt?Re:Ne;switch(Mt){case"left":case"up":Kt=en+Ct(U),Tt=Lt?tt(U,Kt):Kt,bt.currentDirection=0;break;case"right":case"down":Kt=en-Ct(U),Tt=Lt?tt(U,Kt):Kt,bt.currentDirection=1;break;default:Tt=en}bt.triggerSlideHandler=Tt}else{var At=Ke(U);bt.trackStyle=Ht((0,z.Z)((0,z.Z)({},U),{},{left:At}))}return bt},He=function(R){for(var U=R.infinite?R.slideCount*2:R.slideCount,S=R.infinite?R.slidesToShow*-1:0,ze=R.infinite?R.slidesToShow*-1:0,ke=[];S<U;)ke.push(S),S=ze+R.slidesToScroll,ze+=Math.min(R.slidesToScroll,R.slidesToShow);return ke},tt=function(R,U){var S=He(R),ze=0;if(U>S[S.length-1])U=S[S.length-1];else for(var ke in S){if(U<S[ke]){U=ze;break}ze=S[ke]}return U},Ct=function(R){var U=R.centerMode?R.slideWidth*Math.floor(R.slidesToShow/2):0;if(R.swipeToSlide){var S,ze=R.listRef,ke=ze.querySelectorAll&&ze.querySelectorAll(".slick-slide")||[];if(Array.from(ke).every(function(We){if(R.vertical){if(We.offsetTop+at(We)/2>R.swipeLeft*-1)return S=We,!1}else if(We.offsetLeft-U+me(We)/2>R.swipeLeft*-1)return S=We,!1;return!0}),!S)return 0;var Pe=R.rtl===!0?R.slideCount-R.currentSlide:R.currentSlide,Ge=Math.abs(S.dataset.index-Pe)||1;return Ge}else return R.slidesToScroll},Rt=function(R,U){return U.reduce(function(S,ze){return S&&R.hasOwnProperty(ze)},!0)?null:console.error("Keys Missing:",R)},Ft=function(R){Rt(R,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var U,S;if(!R.vertical)U=sn(R)*R.slideWidth;else{var ze=R.unslick?R.slideCount:R.slideCount+2*R.slidesToShow;S=ze*R.slideHeight}var ke={opacity:1,transition:"",WebkitTransition:""};if(R.useTransform){var Pe=R.vertical?"translate3d(0px, "+R.left+"px, 0px)":"translate3d("+R.left+"px, 0px, 0px)",Ge=R.vertical?"translate3d(0px, "+R.left+"px, 0px)":"translate3d("+R.left+"px, 0px, 0px)",We=R.vertical?"translateY("+R.left+"px)":"translateX("+R.left+"px)";ke=(0,z.Z)((0,z.Z)({},ke),{},{WebkitTransform:Pe,transform:Ge,msTransform:We})}else R.vertical?ke.top=R.left:ke.left=R.left;return R.fade&&(ke={opacity:1}),U&&(ke.width=U),S&&(ke.height=S),window&&!window.addEventListener&&window.attachEvent&&(R.vertical?ke.marginTop=R.left+"px":ke.marginLeft=R.left+"px"),ke},Ht=function(R){Rt(R,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var U=Ft(R);return R.useTransform?(U.WebkitTransition="-webkit-transform "+R.speed+"ms "+R.cssEase,U.transition="transform "+R.speed+"ms "+R.cssEase):R.vertical?U.transition="top "+R.speed+"ms "+R.cssEase:U.transition="left "+R.speed+"ms "+R.cssEase,U},Ke=function(R){if(R.unslick)return 0;Rt(R,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var U=R.slideIndex,S=R.trackRef,ze=R.infinite,ke=R.centerMode,Pe=R.slideCount,Ge=R.slidesToShow,We=R.slidesToScroll,ct=R.slideWidth,Lt=R.listWidth,Pt=R.variableWidth,cn=R.slideHeight,Ne=R.fade,Re=R.vertical,dt=0,mt,Mt,bt=0;if(Ne||R.slideCount===1)return 0;var Tt=0;if(ze?(Tt=-qt(R),Pe%We!==0&&U+We>Pe&&(Tt=-(U>Pe?Ge-(U-Pe):Pe%We)),ke&&(Tt+=parseInt(Ge/2))):(Pe%We!==0&&U+We>Pe&&(Tt=Ge-Pe%We),ke&&(Tt=parseInt(Ge/2))),dt=Tt*ct,bt=Tt*cn,Re?mt=U*cn*-1+bt:mt=U*ct*-1+dt,Pt===!0){var Kt,en=S&&S.node;if(Kt=U+qt(R),Mt=en&&en.childNodes[Kt],mt=Mt?Mt.offsetLeft*-1:0,ke===!0){Kt=ze?U+qt(R):U,Mt=en&&en.children[Kt],mt=0;for(var At=0;At<Kt;At++)mt-=en&&en.children[At]&&en.children[At].offsetWidth;mt-=parseInt(R.centerPadding),mt+=Mt&&(Lt-Mt.offsetWidth)/2}}return mt},qt=function(R){return R.unslick||!R.infinite?0:R.variableWidth?R.slideCount:R.slidesToShow+(R.centerMode?1:0)},Dt=function(R){return R.unslick||!R.infinite?0:R.slideCount},sn=function(R){return R.slideCount===1?1:qt(R)+R.slideCount+Dt(R)},Je=function(R){return R.targetSlide>R.currentSlide?R.targetSlide>R.currentSlide+yt(R)?"left":"right":R.targetSlide<R.currentSlide-Fe(R)?"right":"left"},yt=function(R){var U=R.slidesToShow,S=R.centerMode,ze=R.rtl,ke=R.centerPadding;if(S){var Pe=(U-1)/2+1;return parseInt(ke)>0&&(Pe+=1),ze&&U%2===0&&(Pe+=1),Pe}return ze?0:U-1},Fe=function(R){var U=R.slidesToShow,S=R.centerMode,ze=R.rtl,ke=R.centerPadding;if(S){var Pe=(U-1)/2+1;return parseInt(ke)>0&&(Pe+=1),!ze&&U%2===0&&(Pe+=1),Pe}return ze?U-1:0},we=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},V=Object.keys(F);function je(Ue){return V.reduce(function(R,U){return Ue.hasOwnProperty(U)&&(R[U]=Ue[U]),R},{})}function Qe(Ue,R,U){return R=(0,ne.Z)(R),(0,d.Z)(Ue,(0,_e.Z)()?Reflect.construct(R,U||[],(0,ne.Z)(Ue).constructor):R.apply(Ue,U))}var q=function(R){var U,S,ze,ke,Pe;R.rtl?Pe=R.slideCount-1-R.index:Pe=R.index,ze=Pe<0||Pe>=R.slideCount,R.centerMode?(ke=Math.floor(R.slidesToShow/2),S=(Pe-R.currentSlide)%R.slideCount===0,Pe>R.currentSlide-ke-1&&Pe<=R.currentSlide+ke&&(U=!0)):U=R.currentSlide<=Pe&&Pe<R.currentSlide+R.slidesToShow;var Ge;R.targetSlide<0?Ge=R.targetSlide+R.slideCount:R.targetSlide>=R.slideCount?Ge=R.targetSlide-R.slideCount:Ge=R.targetSlide;var We=Pe===Ge;return{"slick-slide":!0,"slick-active":U,"slick-center":S,"slick-cloned":ze,"slick-current":We}},M=function(R){var U={};return(R.variableWidth===void 0||R.variableWidth===!1)&&(U.width=R.slideWidth),R.fade&&(U.position="relative",R.vertical&&R.slideHeight?U.top=-R.index*parseInt(R.slideHeight):U.left=-R.index*parseInt(R.slideWidth),U.opacity=R.currentSlide===R.index?1:0,U.zIndex=R.currentSlide===R.index?999:998,R.useCSS&&(U.transition="opacity "+R.speed+"ms "+R.cssEase+", visibility "+R.speed+"ms "+R.cssEase)),U},Se=function(R,U){return R.key+"-"+U},be=function(R){var U,S=[],ze=[],ke=[],Pe=f.Children.count(R.children),Ge=re(R),We=ee(R);return f.Children.forEach(R.children,function(ct,Lt){var Pt,cn={message:"children",index:Lt,slidesToScroll:R.slidesToScroll,currentSlide:R.currentSlide};!R.lazyLoad||R.lazyLoad&&R.lazyLoadedList.indexOf(Lt)>=0?Pt=ct:Pt=f.createElement("div",null);var Ne=M((0,z.Z)((0,z.Z)({},R),{},{index:Lt})),Re=Pt.props.className||"",dt=q((0,z.Z)((0,z.Z)({},R),{},{index:Lt}));if(S.push(f.cloneElement(Pt,{key:"original"+Se(Pt,Lt),"data-index":Lt,className:$()(dt,Re),tabIndex:"-1","aria-hidden":!dt["slick-active"],style:(0,z.Z)((0,z.Z)({outline:"none"},Pt.props.style||{}),Ne),onClick:function(bt){Pt.props&&Pt.props.onClick&&Pt.props.onClick(bt),R.focusOnSelect&&R.focusOnSelect(cn)}})),R.infinite&&Pe>1&&R.fade===!1&&!R.unslick){var mt=Pe-Lt;mt<=qt(R)&&(U=-mt,U>=Ge&&(Pt=ct),dt=q((0,z.Z)((0,z.Z)({},R),{},{index:U})),ze.push(f.cloneElement(Pt,{key:"precloned"+Se(Pt,U),"data-index":U,tabIndex:"-1",className:$()(dt,Re),"aria-hidden":!dt["slick-active"],style:(0,z.Z)((0,z.Z)({},Pt.props.style||{}),Ne),onClick:function(bt){Pt.props&&Pt.props.onClick&&Pt.props.onClick(bt),R.focusOnSelect&&R.focusOnSelect(cn)}}))),U=Pe+Lt,U<We&&(Pt=ct),dt=q((0,z.Z)((0,z.Z)({},R),{},{index:U})),ke.push(f.cloneElement(Pt,{key:"postcloned"+Se(Pt,U),"data-index":U,tabIndex:"-1",className:$()(dt,Re),"aria-hidden":!dt["slick-active"],style:(0,z.Z)((0,z.Z)({},Pt.props.style||{}),Ne),onClick:function(bt){Pt.props&&Pt.props.onClick&&Pt.props.onClick(bt),R.focusOnSelect&&R.focusOnSelect(cn)}}))}}),R.rtl?ze.concat(S,ke).reverse():ze.concat(S,ke)},W=function(Ue){function R(){var U;(0,ae.Z)(this,R);for(var S=arguments.length,ze=new Array(S),ke=0;ke<S;ke++)ze[ke]=arguments[ke];return U=Qe(this,R,[].concat(ze)),(0,g.Z)(U,"node",null),(0,g.Z)(U,"handleRef",function(Pe){U.node=Pe}),U}return(0,o.Z)(R,Ue),(0,B.Z)(R,[{key:"render",value:function(){var S=be(this.props),ze=this.props,ke=ze.onMouseEnter,Pe=ze.onMouseOver,Ge=ze.onMouseLeave,We={onMouseEnter:ke,onMouseOver:Pe,onMouseLeave:Ge};return f.createElement("div",(0,ue.Z)({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},We),S)}}])}(f.PureComponent);function fe(Ue,R,U){return R=(0,ne.Z)(R),(0,d.Z)(Ue,(0,_e.Z)()?Reflect.construct(R,U||[],(0,ne.Z)(Ue).constructor):R.apply(Ue,U))}var ye=function(R){var U;return R.infinite?U=Math.ceil(R.slideCount/R.slidesToScroll):U=Math.ceil((R.slideCount-R.slidesToShow)/R.slidesToScroll)+1,U},$e=function(Ue){function R(){return(0,ae.Z)(this,R),fe(this,R,arguments)}return(0,o.Z)(R,Ue),(0,B.Z)(R,[{key:"clickHandler",value:function(S,ze){ze.preventDefault(),this.props.clickHandler(S)}},{key:"render",value:function(){for(var S=this.props,ze=S.onMouseEnter,ke=S.onMouseOver,Pe=S.onMouseLeave,Ge=S.infinite,We=S.slidesToScroll,ct=S.slidesToShow,Lt=S.slideCount,Pt=S.currentSlide,cn=ye({slideCount:Lt,slidesToScroll:We,slidesToShow:ct,infinite:Ge}),Ne={onMouseEnter:ze,onMouseOver:ke,onMouseLeave:Pe},Re=[],dt=0;dt<cn;dt++){var mt=(dt+1)*We-1,Mt=Ge?mt:H(mt,0,Lt-1),bt=Mt-(We-1),Tt=Ge?bt:H(bt,0,Lt-1),Kt=$()({"slick-active":Ge?Pt>=Tt&&Pt<=Mt:Pt===Tt}),en={message:"dots",index:dt,slidesToScroll:We,currentSlide:Pt},At=this.clickHandler.bind(this,en);Re=Re.concat(f.createElement("li",{key:dt,className:Kt},f.cloneElement(this.props.customPaging(dt),{onClick:At})))}return f.cloneElement(this.props.appendDots(Re),(0,z.Z)({className:this.props.dotsClass},Ne))}}])}(f.PureComponent);function Ve(Ue,R,U){return R=(0,ne.Z)(R),(0,d.Z)(Ue,(0,_e.Z)()?Reflect.construct(R,U||[],(0,ne.Z)(Ue).constructor):R.apply(Ue,U))}var qe=function(Ue){function R(){return(0,ae.Z)(this,R),Ve(this,R,arguments)}return(0,o.Z)(R,Ue),(0,B.Z)(R,[{key:"clickHandler",value:function(S,ze){ze&&ze.preventDefault(),this.props.clickHandler(S,ze)}},{key:"render",value:function(){var S={"slick-arrow":!0,"slick-prev":!0},ze=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(S["slick-disabled"]=!0,ze=null);var ke={key:"0","data-role":"none",className:$()(S),style:{display:"block"},onClick:ze},Pe={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},Ge;return this.props.prevArrow?Ge=f.cloneElement(this.props.prevArrow,(0,z.Z)((0,z.Z)({},ke),Pe)):Ge=f.createElement("button",(0,ue.Z)({key:"0",type:"button"},ke)," ","Previous"),Ge}}])}(f.PureComponent),Ye=function(Ue){function R(){return(0,ae.Z)(this,R),Ve(this,R,arguments)}return(0,o.Z)(R,Ue),(0,B.Z)(R,[{key:"clickHandler",value:function(S,ze){ze&&ze.preventDefault(),this.props.clickHandler(S,ze)}},{key:"render",value:function(){var S={"slick-arrow":!0,"slick-next":!0},ze=this.clickHandler.bind(this,{message:"next"});T(this.props)||(S["slick-disabled"]=!0,ze=null);var ke={key:"1","data-role":"none",className:$()(S),style:{display:"block"},onClick:ze},Pe={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},Ge;return this.props.nextArrow?Ge=f.cloneElement(this.props.nextArrow,(0,z.Z)((0,z.Z)({},ke),Pe)):Ge=f.createElement("button",(0,ue.Z)({key:"1",type:"button"},ke)," ","Next"),Ge}}])}(f.PureComponent),ot=_(76374),de=["animating"];function K(Ue,R,U){return R=(0,ne.Z)(R),(0,d.Z)(Ue,(0,_e.Z)()?Reflect.construct(R,U||[],(0,ne.Z)(Ue).constructor):R.apply(Ue,U))}var N=function(Ue){function R(U){var S;(0,ae.Z)(this,R),S=K(this,R,[U]),(0,g.Z)(S,"listRefHandler",function(ke){return S.list=ke}),(0,g.Z)(S,"trackRefHandler",function(ke){return S.track=ke}),(0,g.Z)(S,"adaptHeight",function(){if(S.props.adaptiveHeight&&S.list){var ke=S.list.querySelector('[data-index="'.concat(S.state.currentSlide,'"]'));S.list.style.height=at(ke)+"px"}}),(0,g.Z)(S,"componentDidMount",function(){if(S.props.onInit&&S.props.onInit(),S.props.lazyLoad){var ke=w((0,z.Z)((0,z.Z)({},S.props),S.state));ke.length>0&&(S.setState(function(Ge){return{lazyLoadedList:Ge.lazyLoadedList.concat(ke)}}),S.props.onLazyLoad&&S.props.onLazyLoad(ke))}var Pe=(0,z.Z)({listRef:S.list,trackRef:S.track},S.props);S.updateState(Pe,!0,function(){S.adaptHeight(),S.props.autoplay&&S.autoPlay("playing")}),S.props.lazyLoad==="progressive"&&(S.lazyLoadTimer=setInterval(S.progressiveLazyLoad,1e3)),S.ro=new ot.Z(function(){S.state.animating?(S.onWindowResized(!1),S.callbackTimers.push(setTimeout(function(){return S.onWindowResized()},S.props.speed))):S.onWindowResized()}),S.ro.observe(S.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(Ge){Ge.onfocus=S.props.pauseOnFocus?S.onSlideFocus:null,Ge.onblur=S.props.pauseOnFocus?S.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",S.onWindowResized):window.attachEvent("onresize",S.onWindowResized)}),(0,g.Z)(S,"componentWillUnmount",function(){S.animationEndCallback&&clearTimeout(S.animationEndCallback),S.lazyLoadTimer&&clearInterval(S.lazyLoadTimer),S.callbackTimers.length&&(S.callbackTimers.forEach(function(ke){return clearTimeout(ke)}),S.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",S.onWindowResized):window.detachEvent("onresize",S.onWindowResized),S.autoplayTimer&&clearInterval(S.autoplayTimer),S.ro.disconnect()}),(0,g.Z)(S,"componentDidUpdate",function(ke){if(S.checkImagesLoad(),S.props.onReInit&&S.props.onReInit(),S.props.lazyLoad){var Pe=w((0,z.Z)((0,z.Z)({},S.props),S.state));Pe.length>0&&(S.setState(function(ct){return{lazyLoadedList:ct.lazyLoadedList.concat(Pe)}}),S.props.onLazyLoad&&S.props.onLazyLoad(Pe))}S.adaptHeight();var Ge=(0,z.Z)((0,z.Z)({listRef:S.list,trackRef:S.track},S.props),S.state),We=S.didPropsChange(ke);We&&S.updateState(Ge,We,function(){S.state.currentSlide>=f.Children.count(S.props.children)&&S.changeSlide({message:"index",index:f.Children.count(S.props.children)-S.props.slidesToShow,currentSlide:S.state.currentSlide}),(ke.autoplay!==S.props.autoplay||ke.autoplaySpeed!==S.props.autoplaySpeed)&&(!ke.autoplay&&S.props.autoplay?S.autoPlay("playing"):S.props.autoplay?S.autoPlay("update"):S.pause("paused"))})}),(0,g.Z)(S,"onWindowResized",function(ke){S.debouncedResize&&S.debouncedResize.cancel(),S.debouncedResize=(0,I.D)(50,function(){return S.resizeWindow(ke)}),S.debouncedResize()}),(0,g.Z)(S,"resizeWindow",function(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,Pe=!!(S.track&&S.track.node);if(Pe){var Ge=(0,z.Z)((0,z.Z)({listRef:S.list,trackRef:S.track},S.props),S.state);S.updateState(Ge,ke,function(){S.props.autoplay?S.autoPlay("update"):S.pause("paused")}),S.setState({animating:!1}),clearTimeout(S.animationEndCallback),delete S.animationEndCallback}}),(0,g.Z)(S,"updateState",function(ke,Pe,Ge){var We=G(ke);ke=(0,z.Z)((0,z.Z)((0,z.Z)({},ke),We),{},{slideIndex:We.currentSlide});var ct=Ke(ke);ke=(0,z.Z)((0,z.Z)({},ke),{},{left:ct});var Lt=Ft(ke);(Pe||f.Children.count(S.props.children)!==f.Children.count(ke.children))&&(We.trackStyle=Lt),S.setState(We,Ge)}),(0,g.Z)(S,"ssrInit",function(){if(S.props.variableWidth){var ke=0,Pe=0,Ge=[],We=qt((0,z.Z)((0,z.Z)((0,z.Z)({},S.props),S.state),{},{slideCount:S.props.children.length})),ct=Dt((0,z.Z)((0,z.Z)((0,z.Z)({},S.props),S.state),{},{slideCount:S.props.children.length}));S.props.children.forEach(function(At){Ge.push(At.props.style.width),ke+=At.props.style.width});for(var Lt=0;Lt<We;Lt++)Pe+=Ge[Ge.length-1-Lt],ke+=Ge[Ge.length-1-Lt];for(var Pt=0;Pt<ct;Pt++)ke+=Ge[Pt];for(var cn=0;cn<S.state.currentSlide;cn++)Pe+=Ge[cn];var Ne={width:ke+"px",left:-Pe+"px"};if(S.props.centerMode){var Re="".concat(Ge[S.state.currentSlide],"px");Ne.left="calc(".concat(Ne.left," + (100% - ").concat(Re,") / 2 ) ")}return{trackStyle:Ne}}var dt=f.Children.count(S.props.children),mt=(0,z.Z)((0,z.Z)((0,z.Z)({},S.props),S.state),{},{slideCount:dt}),Mt=qt(mt)+Dt(mt)+dt,bt=100/S.props.slidesToShow*Mt,Tt=100/Mt,Kt=-Tt*(qt(mt)+S.state.currentSlide)*bt/100;S.props.centerMode&&(Kt+=(100-Tt*bt/100)/2);var en={width:bt+"%",left:Kt+"%"};return{slideWidth:Tt+"%",trackStyle:en}}),(0,g.Z)(S,"checkImagesLoad",function(){var ke=S.list&&S.list.querySelectorAll&&S.list.querySelectorAll(".slick-slide img")||[],Pe=ke.length,Ge=0;Array.prototype.forEach.call(ke,function(We){var ct=function(){return++Ge&&Ge>=Pe&&S.onWindowResized()};if(!We.onclick)We.onclick=function(){return We.parentNode.focus()};else{var Lt=We.onclick;We.onclick=function(Pt){Lt(Pt),We.parentNode.focus()}}We.onload||(S.props.lazyLoad?We.onload=function(){S.adaptHeight(),S.callbackTimers.push(setTimeout(S.onWindowResized,S.props.speed))}:(We.onload=ct,We.onerror=function(){ct(),S.props.onLazyLoadError&&S.props.onLazyLoadError()}))})}),(0,g.Z)(S,"progressiveLazyLoad",function(){for(var ke=[],Pe=(0,z.Z)((0,z.Z)({},S.props),S.state),Ge=S.state.currentSlide;Ge<S.state.slideCount+Dt(Pe);Ge++)if(S.state.lazyLoadedList.indexOf(Ge)<0){ke.push(Ge);break}for(var We=S.state.currentSlide-1;We>=-qt(Pe);We--)if(S.state.lazyLoadedList.indexOf(We)<0){ke.push(We);break}ke.length>0?(S.setState(function(ct){return{lazyLoadedList:ct.lazyLoadedList.concat(ke)}}),S.props.onLazyLoad&&S.props.onLazyLoad(ke)):S.lazyLoadTimer&&(clearInterval(S.lazyLoadTimer),delete S.lazyLoadTimer)}),(0,g.Z)(S,"slideHandler",function(ke){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ge=S.props,We=Ge.asNavFor,ct=Ge.beforeChange,Lt=Ge.onLazyLoad,Pt=Ge.speed,cn=Ge.afterChange,Ne=S.state.currentSlide,Re=ie((0,z.Z)((0,z.Z)((0,z.Z)({index:ke},S.props),S.state),{},{trackRef:S.track,useCSS:S.props.useCSS&&!Pe})),dt=Re.state,mt=Re.nextState;if(dt){ct&&ct(Ne,dt.currentSlide);var Mt=dt.lazyLoadedList.filter(function(bt){return S.state.lazyLoadedList.indexOf(bt)<0});Lt&&Mt.length>0&&Lt(Mt),!S.props.waitForAnimate&&S.animationEndCallback&&(clearTimeout(S.animationEndCallback),cn&&cn(Ne),delete S.animationEndCallback),S.setState(dt,function(){We&&S.asNavForIndex!==ke&&(S.asNavForIndex=ke,We.innerSlider.slideHandler(ke)),mt&&(S.animationEndCallback=setTimeout(function(){var bt=mt.animating,Tt=(0,p.Z)(mt,de);S.setState(Tt,function(){S.callbackTimers.push(setTimeout(function(){return S.setState({animating:bt})},10)),cn&&cn(dt.currentSlide),delete S.animationEndCallback})},Pt))})}}),(0,g.Z)(S,"changeSlide",function(ke){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ge=(0,z.Z)((0,z.Z)({},S.props),S.state),We=X(Ge,ke);if(!(We!==0&&!We)&&(Pe===!0?S.slideHandler(We,Pe):S.slideHandler(We),S.props.autoplay&&S.autoPlay("update"),S.props.focusOnSelect)){var ct=S.list.querySelectorAll(".slick-current");ct[0]&&ct[0].focus()}}),(0,g.Z)(S,"clickHandler",function(ke){S.clickable===!1&&(ke.stopPropagation(),ke.preventDefault()),S.clickable=!0}),(0,g.Z)(S,"keyHandler",function(ke){var Pe=y(ke,S.props.accessibility,S.props.rtl);Pe!==""&&S.changeSlide({message:Pe})}),(0,g.Z)(S,"selectHandler",function(ke){S.changeSlide(ke)}),(0,g.Z)(S,"disableBodyScroll",function(){var ke=function(Ge){Ge=Ge||window.event,Ge.preventDefault&&Ge.preventDefault(),Ge.returnValue=!1};window.ontouchmove=ke}),(0,g.Z)(S,"enableBodyScroll",function(){window.ontouchmove=null}),(0,g.Z)(S,"swipeStart",function(ke){S.props.verticalSwiping&&S.disableBodyScroll();var Pe=v(ke,S.props.swipe,S.props.draggable);Pe!==""&&S.setState(Pe)}),(0,g.Z)(S,"swipeMove",function(ke){var Pe=O(ke,(0,z.Z)((0,z.Z)((0,z.Z)({},S.props),S.state),{},{trackRef:S.track,listRef:S.list,slideIndex:S.state.currentSlide}));Pe&&(Pe.swiping&&(S.clickable=!1),S.setState(Pe))}),(0,g.Z)(S,"swipeEnd",function(ke){var Pe=pe(ke,(0,z.Z)((0,z.Z)((0,z.Z)({},S.props),S.state),{},{trackRef:S.track,listRef:S.list,slideIndex:S.state.currentSlide}));if(Pe){var Ge=Pe.triggerSlideHandler;delete Pe.triggerSlideHandler,S.setState(Pe),Ge!==void 0&&(S.slideHandler(Ge),S.props.verticalSwiping&&S.enableBodyScroll())}}),(0,g.Z)(S,"touchEnd",function(ke){S.swipeEnd(ke),S.clickable=!0}),(0,g.Z)(S,"slickPrev",function(){S.callbackTimers.push(setTimeout(function(){return S.changeSlide({message:"previous"})},0))}),(0,g.Z)(S,"slickNext",function(){S.callbackTimers.push(setTimeout(function(){return S.changeSlide({message:"next"})},0))}),(0,g.Z)(S,"slickGoTo",function(ke){var Pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ke=Number(ke),isNaN(ke))return"";S.callbackTimers.push(setTimeout(function(){return S.changeSlide({message:"index",index:ke,currentSlide:S.state.currentSlide},Pe)},0))}),(0,g.Z)(S,"play",function(){var ke;if(S.props.rtl)ke=S.state.currentSlide-S.props.slidesToScroll;else if(T((0,z.Z)((0,z.Z)({},S.props),S.state)))ke=S.state.currentSlide+S.props.slidesToScroll;else return!1;S.slideHandler(ke)}),(0,g.Z)(S,"autoPlay",function(ke){S.autoplayTimer&&clearInterval(S.autoplayTimer);var Pe=S.state.autoplaying;if(ke==="update"){if(Pe==="hovered"||Pe==="focused"||Pe==="paused")return}else if(ke==="leave"){if(Pe==="paused"||Pe==="focused")return}else if(ke==="blur"&&(Pe==="paused"||Pe==="hovered"))return;S.autoplayTimer=setInterval(S.play,S.props.autoplaySpeed+50),S.setState({autoplaying:"playing"})}),(0,g.Z)(S,"pause",function(ke){S.autoplayTimer&&(clearInterval(S.autoplayTimer),S.autoplayTimer=null);var Pe=S.state.autoplaying;ke==="paused"?S.setState({autoplaying:"paused"}):ke==="focused"?(Pe==="hovered"||Pe==="playing")&&S.setState({autoplaying:"focused"}):Pe==="playing"&&S.setState({autoplaying:"hovered"})}),(0,g.Z)(S,"onDotsOver",function(){return S.props.autoplay&&S.pause("hovered")}),(0,g.Z)(S,"onDotsLeave",function(){return S.props.autoplay&&S.state.autoplaying==="hovered"&&S.autoPlay("leave")}),(0,g.Z)(S,"onTrackOver",function(){return S.props.autoplay&&S.pause("hovered")}),(0,g.Z)(S,"onTrackLeave",function(){return S.props.autoplay&&S.state.autoplaying==="hovered"&&S.autoPlay("leave")}),(0,g.Z)(S,"onSlideFocus",function(){return S.props.autoplay&&S.pause("focused")}),(0,g.Z)(S,"onSlideBlur",function(){return S.props.autoplay&&S.state.autoplaying==="focused"&&S.autoPlay("blur")}),(0,g.Z)(S,"render",function(){var ke=$()("slick-slider",S.props.className,{"slick-vertical":S.props.vertical,"slick-initialized":!0}),Pe=(0,z.Z)((0,z.Z)({},S.props),S.state),Ge=P(Pe,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),We=S.props.pauseOnHover;Ge=(0,z.Z)((0,z.Z)({},Ge),{},{onMouseEnter:We?S.onTrackOver:null,onMouseLeave:We?S.onTrackLeave:null,onMouseOver:We?S.onTrackOver:null,focusOnSelect:S.props.focusOnSelect&&S.clickable?S.selectHandler:null});var ct;if(S.props.dots===!0&&S.state.slideCount>=S.props.slidesToShow){var Lt=P(Pe,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),Pt=S.props.pauseOnDotsHover;Lt=(0,z.Z)((0,z.Z)({},Lt),{},{clickHandler:S.changeSlide,onMouseEnter:Pt?S.onDotsLeave:null,onMouseOver:Pt?S.onDotsOver:null,onMouseLeave:Pt?S.onDotsLeave:null}),ct=f.createElement($e,Lt)}var cn,Ne,Re=P(Pe,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);Re.clickHandler=S.changeSlide,S.props.arrows&&(cn=f.createElement(qe,Re),Ne=f.createElement(Ye,Re));var dt=null;S.props.vertical&&(dt={height:S.state.listHeight});var mt=null;S.props.vertical===!1?S.props.centerMode===!0&&(mt={padding:"0px "+S.props.centerPadding}):S.props.centerMode===!0&&(mt={padding:S.props.centerPadding+" 0px"});var Mt=(0,z.Z)((0,z.Z)({},dt),mt),bt=S.props.touchMove,Tt={className:"slick-list",style:Mt,onClick:S.clickHandler,onMouseDown:bt?S.swipeStart:null,onMouseMove:S.state.dragging&&bt?S.swipeMove:null,onMouseUp:bt?S.swipeEnd:null,onMouseLeave:S.state.dragging&&bt?S.swipeEnd:null,onTouchStart:bt?S.swipeStart:null,onTouchMove:S.state.dragging&&bt?S.swipeMove:null,onTouchEnd:bt?S.touchEnd:null,onTouchCancel:S.state.dragging&&bt?S.swipeEnd:null,onKeyDown:S.props.accessibility?S.keyHandler:null},Kt={className:ke,dir:"ltr",style:S.props.style};return S.props.unslick&&(Tt={className:"slick-list"},Kt={className:ke,style:S.props.style}),f.createElement("div",Kt,S.props.unslick?"":cn,f.createElement("div",(0,ue.Z)({ref:S.listRefHandler},Tt),f.createElement(W,(0,ue.Z)({ref:S.trackRefHandler},Ge),S.props.children)),S.props.unslick?"":Ne,S.props.unslick?"":ct)}),S.list=null,S.track=null,S.state=(0,z.Z)((0,z.Z)({},b),{},{currentSlide:S.props.initialSlide,targetSlide:S.props.initialSlide?S.props.initialSlide:0,slideCount:f.Children.count(S.props.children)}),S.callbackTimers=[],S.clickable=!0,S.debouncedResize=null;var ze=S.ssrInit();return S.state=(0,z.Z)((0,z.Z)({},S.state),ze),S}return(0,o.Z)(R,Ue),(0,B.Z)(R,[{key:"didPropsChange",value:function(S){for(var ze=!1,ke=0,Pe=Object.keys(this.props);ke<Pe.length;ke++){var Ge=Pe[ke];if(!S.hasOwnProperty(Ge)){ze=!0;break}if(!((0,A.Z)(S[Ge])==="object"||typeof S[Ge]=="function"||isNaN(S[Ge]))&&S[Ge]!==this.props[Ge]){ze=!0;break}}return ze||f.Children.count(this.props.children)!==f.Children.count(S.children)}}])}(f.Component),Le=_(7861),De=_.n(Le);function Ae(Ue,R,U){return R=(0,ne.Z)(R),(0,d.Z)(Ue,(0,_e.Z)()?Reflect.construct(R,U||[],(0,ne.Z)(Ue).constructor):R.apply(Ue,U))}var it=function(Ue){function R(U){var S;return(0,ae.Z)(this,R),S=Ae(this,R,[U]),(0,g.Z)(S,"innerSliderRefHandler",function(ze){return S.innerSlider=ze}),(0,g.Z)(S,"slickPrev",function(){return S.innerSlider.slickPrev()}),(0,g.Z)(S,"slickNext",function(){return S.innerSlider.slickNext()}),(0,g.Z)(S,"slickGoTo",function(ze){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return S.innerSlider.slickGoTo(ze,ke)}),(0,g.Z)(S,"slickPause",function(){return S.innerSlider.pause("paused")}),(0,g.Z)(S,"slickPlay",function(){return S.innerSlider.autoPlay("play")}),S.state={breakpoint:null},S._responsiveMediaHandlers=[],S}return(0,o.Z)(R,Ue),(0,B.Z)(R,[{key:"media",value:function(S,ze){var ke=window.matchMedia(S),Pe=function(We){var ct=We.matches;ct&&ze()};ke.addListener(Pe),Pe(ke),this._responsiveMediaHandlers.push({mql:ke,query:S,listener:Pe})}},{key:"componentDidMount",value:function(){var S=this;if(this.props.responsive){var ze=this.props.responsive.map(function(Pe){return Pe.breakpoint});ze.sort(function(Pe,Ge){return Pe-Ge}),ze.forEach(function(Pe,Ge){var We;Ge===0?We=De()({minWidth:0,maxWidth:Pe}):We=De()({minWidth:ze[Ge-1]+1,maxWidth:Pe}),we()&&S.media(We,function(){S.setState({breakpoint:Pe})})});var ke=De()({minWidth:ze.slice(-1)[0]});we()&&this.media(ke,function(){S.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(S){S.mql.removeListener(S.listener)})}},{key:"render",value:function(){var S=this,ze,ke;this.state.breakpoint?(ke=this.props.responsive.filter(function(dt){return dt.breakpoint===S.state.breakpoint}),ze=ke[0].settings==="unslick"?"unslick":(0,z.Z)((0,z.Z)((0,z.Z)({},F),this.props),ke[0].settings)):ze=(0,z.Z)((0,z.Z)({},F),this.props),ze.centerMode&&(ze.slidesToScroll>1,ze.slidesToScroll=1),ze.fade&&(ze.slidesToShow>1,ze.slidesToScroll>1,ze.slidesToShow=1,ze.slidesToScroll=1);var Pe=f.Children.toArray(this.props.children);Pe=Pe.filter(function(dt){return typeof dt=="string"?!!dt.trim():!!dt}),ze.variableWidth&&(ze.rows>1||ze.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),ze.variableWidth=!1);for(var Ge=[],We=null,ct=0;ct<Pe.length;ct+=ze.rows*ze.slidesPerRow){for(var Lt=[],Pt=ct;Pt<ct+ze.rows*ze.slidesPerRow;Pt+=ze.slidesPerRow){for(var cn=[],Ne=Pt;Ne<Pt+ze.slidesPerRow&&(ze.variableWidth&&Pe[Ne].props.style&&(We=Pe[Ne].props.style.width),!(Ne>=Pe.length));Ne+=1)cn.push(f.cloneElement(Pe[Ne],{key:100*ct+10*Pt+Ne,tabIndex:-1,style:{width:"".concat(100/ze.slidesPerRow,"%"),display:"inline-block"}}));Lt.push(f.createElement("div",{key:10*ct+Pt},cn))}ze.variableWidth?Ge.push(f.createElement("div",{key:ct,style:{width:We}},Lt)):Ge.push(f.createElement("div",{key:ct},Lt))}if(ze==="unslick"){var Re="regular slider "+(this.props.className||"");return f.createElement("div",{className:Re},Pe)}else Ge.length<=ze.slidesToShow&&!ze.infinite&&(ze.unslick=!0);return f.createElement(N,(0,ue.Z)({style:this.props.style,ref:this.innerSliderRefHandler},je(ze)),Ge)}}])}(f.Component),st=it,Oe=_(48755),Et=_(36237),jt=_(63356),wt=_(16931);const Bt="--dot-duration",se=Ue=>{const{componentCls:R,antCls:U}=Ue;return{[R]:Object.assign(Object.assign({},(0,jt.Wf)(Ue)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${U}-radio-input, input${U}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${U}-radio-input, input${U}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"}})}},ve=Ue=>{const{componentCls:R,motionDurationSlow:U,arrowSize:S,arrowOffset:ze}=Ue,ke=Ue.calc(S).div(Math.SQRT2).equal();return{[R]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:S,height:S,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${U}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:Ue.calc(S).sub(ke).div(2).equal(),insetInlineStart:Ue.calc(S).sub(ke).div(2).equal(),display:"inline-block",width:ke,height:ke,border:"0 solid currentcolor",borderInlineStartWidth:2,borderBlockStartWidth:2,borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:ze,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:ze,"&::after":{transform:"rotate(135deg)"}}}}},Ee=Ue=>{const{componentCls:R,dotOffset:U,dotWidth:S,dotHeight:ze,dotGap:ke,colorBgContainer:Pe,motionDurationSlow:Ge}=Ue;return{[R]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:U},"&-top":{top:U,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:S,height:ze,marginInline:ke,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${Ge}`,borderRadius:ze,overflow:"hidden","&::after":{display:"block",position:"absolute",top:0,insetInlineStart:0,width:"100%",height:ze,content:'""',background:Pe,borderRadius:ze,opacity:1,outline:"none",cursor:"pointer",overflow:"hidden",transform:"translate3d(-100%, 0, 0)"},button:{position:"relative",display:"block",width:"100%",height:ze,padding:0,color:"transparent",fontSize:0,background:Pe,border:0,borderRadius:ze,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${Ge}`,overflow:"hidden","&:hover":{opacity:.75},"&::after":{position:"absolute",inset:Ue.calc(ke).mul(-1).equal(),content:'""'}},"&.slick-active":{width:Ue.dotActiveWidth,position:"relative","&:hover":{opacity:1},"&::after":{transform:"translate3d(0, 0, 0)",transition:`transform var(${Bt}) ease-out`}}}}}}},k=Ue=>{const{componentCls:R,dotOffset:U,arrowOffset:S,marginXXS:ze}=Ue,ke={width:Ue.dotHeight,height:Ue.dotWidth};return{[`${R}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:S,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:S,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:Ue.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:U},"&-right":{insetInlineEnd:U,insetInlineStart:"auto"},li:Object.assign(Object.assign({},ke),{margin:`${(0,Et.unit)(ze)} 0`,verticalAlign:"baseline",button:ke,"&::after":Object.assign(Object.assign({},ke),{height:0}),"&.slick-active":Object.assign(Object.assign({},ke),{button:ke,"&::after":Object.assign(Object.assign({},ke),{transition:`height var(${Bt}) ease-out`})})})}}}},Y=Ue=>{const{componentCls:R}=Ue;return[{[`${R}-rtl`]:{direction:"rtl",".slick-dots":{[`${R}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${R}-vertical`]:{".slick-dots":{[`${R}-rtl&`]:{flexDirection:"column"}}}}]},he=Ue=>({arrowSize:16,arrowOffset:Ue.marginXS,dotWidth:16,dotHeight:3,dotGap:Ue.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24});var ce=(0,wt.I$)("Carousel",Ue=>[se(Ue),ve(Ue),Ee(Ue),k(Ue),Y(Ue)],he,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),xe=function(Ue,R){var U={};for(var S in Ue)Object.prototype.hasOwnProperty.call(Ue,S)&&R.indexOf(S)<0&&(U[S]=Ue[S]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,S=Object.getOwnPropertySymbols(Ue);ze<S.length;ze++)R.indexOf(S[ze])<0&&Object.prototype.propertyIsEnumerable.call(Ue,S[ze])&&(U[S[ze]]=Ue[S[ze]]);return U};const Be="slick-dots",Xe=Ue=>{var{currentSlide:R,slideCount:U}=Ue,S=xe(Ue,["currentSlide","slideCount"]);return f.createElement("button",Object.assign({type:"button"},S))};var nt=f.forwardRef((Ue,R)=>{const{dots:U=!0,arrows:S=!1,prevArrow:ze=f.createElement(Xe,{"aria-label":"prev"}),nextArrow:ke=f.createElement(Xe,{"aria-label":"next"}),draggable:Pe=!1,waitForAnimate:Ge=!1,dotPosition:We="bottom",vertical:ct=We==="left"||We==="right",rootClassName:Lt,className:Pt,style:cn,id:Ne,autoplay:Re=!1,autoplaySpeed:dt=3e3}=Ue,mt=xe(Ue,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id","autoplay","autoplaySpeed"]),{getPrefixCls:Mt,direction:bt,className:Tt,style:Kt}=(0,Oe.dj)("carousel"),en=f.useRef(null),At=function(xn){let Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;en.current.slickGoTo(xn,Tn)};f.useImperativeHandle(R,()=>({goTo:At,autoPlay:en.current.innerSlider.autoPlay,innerSlider:en.current.innerSlider,prev:en.current.slickPrev,next:en.current.slickNext}),[en.current]);const dn=f.useRef(f.Children.count(Ue.children));f.useEffect(()=>{dn.current!==f.Children.count(Ue.children)&&(At(Ue.initialSlide||0,!1),dn.current=f.Children.count(Ue.children))},[Ue.children]);const an=Object.assign({vertical:ct,className:$()(Pt,Tt),style:Object.assign(Object.assign({},Kt),cn),autoplay:!!Re},mt);an.effect==="fade"&&(an.fade=!0);const Jt=Mt("carousel",an.prefixCls),kt=!!U,Ze=$()(Be,`${Be}-${We}`,typeof U=="boolean"?!1:U==null?void 0:U.className),[ft,St,Ot]=ce(Jt),tn=$()(Jt,{[`${Jt}-rtl`]:bt==="rtl",[`${Jt}-vertical`]:an.vertical},St,Ot,Lt),ln=Re&&(typeof Re=="object"?Re.dotDuration:!1)?{[Bt]:`${dt}ms`}:{};return ft(f.createElement("div",{className:tn,id:Ne,style:ln},f.createElement(st,Object.assign({ref:en},an,{dots:kt,dotsClass:Ze,arrows:S,prevArrow:ze,nextArrow:ke,draggable:Pe,verticalSwiping:ct,autoplaySpeed:dt,waitForAnimate:Ge}))))})},64018:function(){var Pn,Gt,_,f=!1,ue,z;window.PR_SHOULD_USE_CONTINUATION=!0;var ae,B;(function(){var d=window,_e=["break,continue,do,else,for,if,return,while"],ne=[_e,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],o=[ne,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],g=[o,"alignas,alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,noexcept,noreturn,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],A=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],p=[o,"abstract,add,alias,as,ascending,async,await,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,get,global,group,implicit,in,interface,internal,into,is,join,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,remove,sbyte,sealed,select,set,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,value,var,virtual,where,yield"],E="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",b=[o,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],I="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",j=[_e,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],$=[_e,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],le=[_e,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],F=[g,p,A,b,I,j,$,le],H=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,D="str",w="kwd",Q="com",re="typ",ee="lit",oe="pun",ge="pln",me="tag",at="dec",Z="src",T="atn",P="atv",G="nocode",ie="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function X(we){for(var V=0,je=!1,Qe=!1,q=0,M=we.length;q<M;++q){var Se=we[q];if(Se.ignoreCase)Qe=!0;else if(/[a-z]/i.test(Se.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){je=!0,Qe=!1;break}}var be={b:8,t:9,n:10,v:11,f:12,r:13};function W(qe){var Ye=qe.charCodeAt(0);if(Ye!==92)return Ye;var ot=qe.charAt(1);return Ye=be[ot],Ye||("0"<=ot&&ot<="7"?parseInt(qe.substring(1),8):ot==="u"||ot==="x"?parseInt(qe.substring(2),16):qe.charCodeAt(1))}function fe(qe){if(qe<32)return(qe<16?"\\x0":"\\x")+qe.toString(16);var Ye=String.fromCharCode(qe);return Ye==="\\"||Ye==="-"||Ye==="]"||Ye==="^"?"\\"+Ye:Ye}function ye(qe){var Ye=qe.substring(1,qe.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),ot=[],de=Ye[0]==="^",K=["["];de&&K.push("^");for(var N=de?1:0,Le=Ye.length;N<Le;++N){var De=Ye[N];if(/\\[bdsw]/i.test(De))K.push(De);else{var Ae=W(De),it;N+2<Le&&Ye[N+1]==="-"?(it=W(Ye[N+2]),N+=2):it=Ae,ot.push([Ae,it]),it<65||Ae>122||(it<65||Ae>90||ot.push([Math.max(65,Ae)|32,Math.min(it,90)|32]),it<97||Ae>122||ot.push([Math.max(97,Ae)&-33,Math.min(it,122)&-33]))}}ot.sort(function(jt,wt){return jt[0]-wt[0]||wt[1]-jt[1]});for(var st=[],Oe=[],N=0;N<ot.length;++N){var Et=ot[N];Et[0]<=Oe[1]+1?Oe[1]=Math.max(Oe[1],Et[1]):st.push(Oe=Et)}for(var N=0;N<st.length;++N){var Et=st[N];K.push(fe(Et[0])),Et[1]>Et[0]&&(Et[1]+1>Et[0]&&K.push("-"),K.push(fe(Et[1])))}return K.push("]"),K.join("")}function $e(qe){for(var Ye=qe.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),ot=Ye.length,de=[],K=0,N=0;K<ot;++K){var Le=Ye[K];if(Le==="(")++N;else if(Le.charAt(0)==="\\"){var De=+Le.substring(1);De&&(De<=N?de[De]=-1:Ye[K]=fe(De))}}for(var K=1;K<de.length;++K)de[K]===-1&&(de[K]=++V);for(var K=0,N=0;K<ot;++K){var Le=Ye[K];if(Le==="(")++N,de[N]||(Ye[K]="(?:");else if(Le.charAt(0)==="\\"){var De=+Le.substring(1);De&&De<=N&&(Ye[K]="\\"+de[De])}}for(var K=0;K<ot;++K)Ye[K]==="^"&&Ye[K+1]!=="^"&&(Ye[K]="");if(qe.ignoreCase&&je)for(var K=0;K<ot;++K){var Le=Ye[K],Ae=Le.charAt(0);Le.length>=2&&Ae==="["?Ye[K]=ye(Le):Ae!=="\\"&&(Ye[K]=Le.replace(/[a-zA-Z]/g,function(Oe){var Et=Oe.charCodeAt(0);return"["+String.fromCharCode(Et&-33,Et|32)+"]"}))}return Ye.join("")}for(var Ve=[],q=0,M=we.length;q<M;++q){var Se=we[q];if(Se.global||Se.multiline)throw new Error(""+Se);Ve.push("(?:"+$e(Se)+")")}return new RegExp(Ve.join("|"),Qe?"gi":"g")}function y(we,V){var je=/(?:^|\s)nocode(?:\s|$)/,Qe=[],q=0,M=[],Se=0;function be(W){var fe=W.nodeType;if(fe==1){if(je.test(W.className))return;for(var ye=W.firstChild;ye;ye=ye.nextSibling)be(ye);var $e=W.nodeName.toLowerCase();($e==="br"||$e==="li")&&(Qe[Se]=`
`,M[Se<<1]=q++,M[Se++<<1|1]=W)}else if(fe==3||fe==4){var Ve=W.nodeValue;Ve.length&&(V?Ve=Ve.replace(/\r\n?/g,`
`):Ve=Ve.replace(/[ \t\r\n]+/g," "),Qe[Se]=Ve,M[Se<<1]=q,q+=Ve.length,M[Se++<<1|1]=W)}}return be(we),{sourceCode:Qe.join("").replace(/\n$/,""),spans:M}}function v(we,V,je,Qe,q){if(je){var M={sourceNode:we,pre:1,langExtension:null,numberLines:null,sourceCode:je,spans:null,basePos:V,decorations:null};Qe(M),q.push.apply(q,M.decorations)}}var O=/\S/;function pe(we){for(var V=void 0,je=we.firstChild;je;je=je.nextSibling){var Qe=je.nodeType;V=Qe===1?V?we:je:Qe===3&&O.test(je.nodeValue)?we:V}return V===we?void 0:V}function He(we,V){var je={},Qe;(function(){for(var Se=we.concat(V),be=[],W={},fe=0,ye=Se.length;fe<ye;++fe){var $e=Se[fe],Ve=$e[3];if(Ve)for(var qe=Ve.length;--qe>=0;)je[Ve.charAt(qe)]=$e;var Ye=$e[1],ot=""+Ye;W.hasOwnProperty(ot)||(be.push(Ye),W[ot]=null)}be.push(/[\0-\uffff]/),Qe=X(be)})();var q=V.length,M=function(Se){for(var be=Se.sourceCode,W=Se.basePos,fe=Se.sourceNode,ye=[W,ge],$e=0,Ve=be.match(Qe)||[],qe={},Ye=0,ot=Ve.length;Ye<ot;++Ye){var de=Ve[Ye],K=qe[de],N=void 0,Le;if(typeof K=="string")Le=!1;else{var De=je[de.charAt(0)];if(De)N=de.match(De[1]),K=De[0];else{for(var Ae=0;Ae<q;++Ae)if(De=V[Ae],N=de.match(De[1]),N){K=De[0];break}N||(K=ge)}Le=K.length>=5&&K.substring(0,5)==="lang-",Le&&!(N&&typeof N[1]=="string")&&(Le=!1,K=Z),Le||(qe[de]=K)}var it=$e;if($e+=de.length,!Le)ye.push(W+it,K);else{var st=N[1],Oe=de.indexOf(st),Et=Oe+st.length;N[2]&&(Et=de.length-N[2].length,Oe=Et-st.length);var jt=K.substring(5);v(fe,W+it,de.substring(0,Oe),M,ye),v(fe,W+it+Oe,st,qt(jt,st),ye),v(fe,W+it+Et,de.substring(Et),M,ye)}}Se.decorations=ye};return M}function tt(we){var V=[],je=[];we.tripleQuotedStrings?V.push([D,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):we.multiLineStrings?V.push([D,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):V.push([D,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),we.verbatimStrings&&je.push([D,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Qe=we.hashComments;Qe&&(we.cStyleComments?(Qe>1?V.push([Q,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):V.push([Q,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),je.push([D,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):V.push([Q,/^#[^\r\n]*/,null,"#"])),we.cStyleComments&&(je.push([Q,/^\/\/[^\r\n]*/,null]),je.push([Q,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var q=we.regexLiterals;if(q){var M=q>1?"":`
\r`,Se=M?".":"[\\S\\s]",be="/(?=[^/*"+M+"])(?:[^/\\x5B\\x5C"+M+"]|\\x5C"+Se+"|\\x5B(?:[^\\x5C\\x5D"+M+"]|\\x5C"+Se+")*(?:\\x5D|$))+/";je.push(["lang-regex",RegExp("^"+ie+"("+be+")")])}var W=we.types;W&&je.push([re,W]);var fe=(""+we.keywords).replace(/^ | $/g,"");fe.length&&je.push([w,new RegExp("^(?:"+fe.replace(/[\s,]+/g,"|")+")\\b"),null]),V.push([ge,/^\s+/,null,` \r
\xA0`]);var ye="^.[^\\s\\w.$@'\"`/\\\\]*";return we.regexLiterals&&(ye+="(?!s*/)"),je.push([ee,/^@[a-z_$][a-z_$@0-9]*/i,null],[re,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[ge,/^[a-z_$][a-z_$@0-9]*/i,null],[ee,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[ge,/^\\[\s\S]?/,null],[oe,new RegExp(ye),null]),He(V,je)}var Ct=tt({keywords:F,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Rt(we,V,je){for(var Qe=/(?:^|\s)nocode(?:\s|$)/,q=/\r\n?|\n/,M=we.ownerDocument,Se=M.createElement("li");we.firstChild;)Se.appendChild(we.firstChild);var be=[Se];function W(Ye){var ot=Ye.nodeType;if(ot==1&&!Qe.test(Ye.className))if(Ye.nodeName==="br")fe(Ye),Ye.parentNode&&Ye.parentNode.removeChild(Ye);else for(var de=Ye.firstChild;de;de=de.nextSibling)W(de);else if((ot==3||ot==4)&&je){var K=Ye.nodeValue,N=K.match(q);if(N){var Le=K.substring(0,N.index);Ye.nodeValue=Le;var De=K.substring(N.index+N[0].length);if(De){var Ae=Ye.parentNode;Ae.insertBefore(M.createTextNode(De),Ye.nextSibling)}fe(Ye),Le||Ye.parentNode.removeChild(Ye)}}}function fe(Ye){for(;!Ye.nextSibling;)if(Ye=Ye.parentNode,!Ye)return;function ot(N,Le){var De=Le?N.cloneNode(!1):N,Ae=N.parentNode;if(Ae){var it=ot(Ae,1),st=N.nextSibling;it.appendChild(De);for(var Oe=st;Oe;Oe=st)st=Oe.nextSibling,it.appendChild(Oe)}return De}for(var de=ot(Ye.nextSibling,0),K;(K=de.parentNode)&&K.nodeType===1;)de=K;be.push(de)}for(var ye=0;ye<be.length;++ye)W(be[ye]);V===(V|0)&&be[0].setAttribute("value",V);var $e=M.createElement("ol");$e.className="linenums";for(var Ve=Math.max(0,V-1|0)||0,ye=0,qe=be.length;ye<qe;++ye)Se=be[ye],Se.className="L"+(ye+Ve)%10,Se.firstChild||Se.appendChild(M.createTextNode("\xA0")),$e.appendChild(Se);we.appendChild($e)}function Ft(we){var V=/\bMSIE\s(\d+)/.exec(navigator.userAgent);V=V&&+V[1]<=8;var je=/\n/g,Qe=we.sourceCode,q=Qe.length,M=0,Se=we.spans,be=Se.length,W=0,fe=we.decorations,ye=fe.length,$e=0;fe[ye]=q;var Ve,qe;for(qe=Ve=0;qe<ye;)fe[qe]!==fe[qe+2]?(fe[Ve++]=fe[qe++],fe[Ve++]=fe[qe++]):qe+=2;for(ye=Ve,qe=Ve=0;qe<ye;){for(var Ye=fe[qe],ot=fe[qe+1],de=qe+2;de+2<=ye&&fe[de+1]===ot;)de+=2;fe[Ve++]=Ye,fe[Ve++]=ot,qe=de}ye=fe.length=Ve;var K=we.sourceNode,N="";K&&(N=K.style.display,K.style.display="none");try{for(var Le=null;W<be;){var De=Se[W],Ae=Se[W+2]||q,it=fe[$e+2]||q,de=Math.min(Ae,it),st=Se[W+1],Oe;if(st.nodeType!==1&&(Oe=Qe.substring(M,de))){V&&(Oe=Oe.replace(je,"\r")),st.nodeValue=Oe;var Et=st.ownerDocument,jt=Et.createElement("span");jt.className=fe[$e+1];var wt=st.parentNode;wt.replaceChild(jt,st),jt.appendChild(st),M<Ae&&(Se[W+1]=st=Et.createTextNode(Qe.substring(de,Ae)),wt.insertBefore(st,jt.nextSibling))}M=de,M>=Ae&&(W+=2),M>=it&&($e+=2)}}finally{K&&(K.style.display=N)}}var Ht={};function Ke(we,V){for(var je=V.length;--je>=0;){var Qe=V[je];Ht.hasOwnProperty(Qe)?d.console&&console.warn("cannot override language handler %s",Qe):Ht[Qe]=we}}function qt(we,V){return we&&Ht.hasOwnProperty(we)||(we=/^\s*</.test(V)?"default-markup":"default-code"),Ht[we]}Ke(Ct,["default-code"]),Ke(He([],[[ge,/^[^<?]+/],[at,/^<!\w[^>]*(?:>|$)/],[Q,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[oe,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),Ke(He([[ge,/^[\s]+/,null,` \r
`],[P,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[me,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[T,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[oe,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),Ke(He([],[[P,/^[\s\S]+/]]),["uq.val"]),Ke(tt({keywords:g,hashComments:!0,cStyleComments:!0,types:H}),["c","cc","cpp","cxx","cyc","m"]),Ke(tt({keywords:"null,true,false"}),["json"]),Ke(tt({keywords:p,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:H}),["cs"]),Ke(tt({keywords:A,cStyleComments:!0}),["java"]),Ke(tt({keywords:le,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Ke(tt({keywords:j,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Ke(tt({keywords:I,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Ke(tt({keywords:$,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Ke(tt({keywords:b,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Ke(tt({keywords:E,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Ke(He([],[[D,/^[\s\S]+/]]),["regex"]);function Dt(we){var V=we.langExtension;try{var je=y(we.sourceNode,we.pre),Qe=je.sourceCode;we.sourceCode=Qe,we.spans=je.spans,we.basePos=0,qt(V,Qe)(we),Ft(we)}catch(q){d.console&&console.log(q&&q.stack||q)}}function sn(we,V,je){var Qe=je||!1,q=V||null,M=document.createElement("div");M.innerHTML="<pre>"+we+"</pre>",M=M.firstChild,Qe&&Rt(M,Qe,!0);var Se={langExtension:q,numberLines:Qe,sourceNode:M,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Dt(Se),M.innerHTML}function Je(we,V){var je=V||document.body,Qe=je.ownerDocument||document;function q(De){return je.getElementsByTagName(De)}for(var M=[q("pre"),q("code"),q("xmp")],Se=[],be=0;be<M.length;++be)for(var W=0,fe=M[be].length;W<fe;++W)Se.push(M[be][W]);M=null;var ye=Date;ye.now||(ye={now:function(){return+new Date}});var $e=0,Ve=/\blang(?:uage)?-([\w.]+)(?!\S)/,qe=/\bprettyprint\b/,Ye=/\bprettyprinted\b/,ot=/pre|xmp/i,de=/^code$/i,K=/^(?:pre|code|xmp)$/i,N={};function Le(){for(var De=d.PR_SHOULD_USE_CONTINUATION?ye.now()+250:1/0;$e<Se.length&&ye.now()<De;$e++){for(var Ae=Se[$e],it=N,st=Ae;st=st.previousSibling;){var Oe=st.nodeType,Et=(Oe===7||Oe===8)&&st.nodeValue;if(Et?!/^\??prettify\b/.test(Et):Oe!==3||/\S/.test(st.nodeValue))break;if(Et){it={},Et.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Xe,ut,nt){it[ut]=nt});break}}var jt=Ae.className;if((it!==N||qe.test(jt))&&!Ye.test(jt)){for(var wt=!1,Bt=Ae.parentNode;Bt;Bt=Bt.parentNode){var se=Bt.tagName;if(K.test(se)&&Bt.className&&qe.test(Bt.className)){wt=!0;break}}if(!wt){Ae.className+=" prettyprinted";var ve=it.lang;if(!ve){ve=jt.match(Ve);var Ee;!ve&&(Ee=pe(Ae))&&de.test(Ee.tagName)&&(ve=Ee.className.match(Ve)),ve&&(ve=ve[1])}var k;if(ot.test(Ae.tagName))k=1;else{var Y=Ae.currentStyle,he=Qe.defaultView,ce=Y?Y.whiteSpace:he&&he.getComputedStyle?he.getComputedStyle(Ae,null).getPropertyValue("white-space"):0;k=ce&&ce.substring(0,3)==="pre"}var xe=it.linenums;(xe=xe==="true"||+xe)||(xe=jt.match(/\blinenums\b(?::(\d+))?/),xe=xe?xe[1]&&xe[1].length?+xe[1]:!0:!1),xe&&Rt(Ae,xe,k);var Be={langExtension:ve,sourceNode:Ae,numberLines:xe,pre:k,sourceCode:null,basePos:null,spans:null,decorations:null};Dt(Be)}}}$e<Se.length?d.setTimeout(Le,250):typeof we=="function"&&we()}Le()}var yt=d.PR={createSimpleLexer:He,registerLangHandler:Ke,sourceDecorator:tt,PR_ATTRIB_NAME:T,PR_ATTRIB_VALUE:P,PR_COMMENT:Q,PR_DECLARATION:at,PR_KEYWORD:w,PR_LITERAL:ee,PR_NOCODE:G,PR_PLAIN:ge,PR_PUNCTUATION:oe,PR_SOURCE:Z,PR_STRING:D,PR_TAG:me,PR_TYPE:re,prettyPrintOne:f?d.prettyPrintOne=sn:ae=sn,prettyPrint:B=f?d.prettyPrint=Je:B=Je},Fe=d.define;typeof Fe=="function"&&Fe.amd&&Fe("google-code-prettify",[],function(){return yt})})()},25769:function(Pn,Gt,_){"use strict";var f=_(98040),ue={"text/plain":"Text","text/html":"Url",default:"Text"},z="Copy to clipboard: #{key}, Enter";function ae(d){var _e=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return d.replace(/#{\s*key\s*}/g,_e)}function B(d,_e){var ne,o,g,A,p,E,b=!1;_e||(_e={}),ne=_e.debug||!1;try{g=f(),A=document.createRange(),p=document.getSelection(),E=document.createElement("span"),E.textContent=d,E.ariaHidden="true",E.style.all="unset",E.style.position="fixed",E.style.top=0,E.style.clip="rect(0, 0, 0, 0)",E.style.whiteSpace="pre",E.style.webkitUserSelect="text",E.style.MozUserSelect="text",E.style.msUserSelect="text",E.style.userSelect="text",E.addEventListener("copy",function(j){if(j.stopPropagation(),_e.format)if(j.preventDefault(),typeof j.clipboardData=="undefined"){ne&&console.warn("unable to use e.clipboardData"),ne&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var $=ue[_e.format]||ue.default;window.clipboardData.setData($,d)}else j.clipboardData.clearData(),j.clipboardData.setData(_e.format,d);_e.onCopy&&(j.preventDefault(),_e.onCopy(j.clipboardData))}),document.body.appendChild(E),A.selectNodeContents(E),p.addRange(A);var I=document.execCommand("copy");if(!I)throw new Error("copy command was unsuccessful");b=!0}catch(j){ne&&console.error("unable to copy using execCommand: ",j),ne&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(_e.format||"text",d),_e.onCopy&&_e.onCopy(window.clipboardData),b=!0}catch($){ne&&console.error("unable to copy using clipboardData: ",$),ne&&console.error("falling back to prompt"),o=ae("message"in _e?_e.message:z),window.prompt(o,d)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(A):p.removeAllRanges()),E&&document.body.removeChild(E),g()}return b}Pn.exports=B},24334:function(Pn,Gt,_){var f,ue;(function(z,ae){Pn.exports=ae(z)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof _.g!="undefined"?_.g:this,function(z){"use strict";z=z||{};var ae=z.Base64,B="2.6.4",d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_e=function(T){for(var P={},G=0,ie=T.length;G<ie;G++)P[T.charAt(G)]=G;return P}(d),ne=String.fromCharCode,o=function(T){if(T.length<2){var P=T.charCodeAt(0);return P<128?T:P<2048?ne(192|P>>>6)+ne(128|P&63):ne(224|P>>>12&15)+ne(128|P>>>6&63)+ne(128|P&63)}else{var P=65536+(T.charCodeAt(0)-55296)*1024+(T.charCodeAt(1)-56320);return ne(240|P>>>18&7)+ne(128|P>>>12&63)+ne(128|P>>>6&63)+ne(128|P&63)}},g=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,A=function(T){return T.replace(g,o)},p=function(T){var P=[0,2,1][T.length%3],G=T.charCodeAt(0)<<16|(T.length>1?T.charCodeAt(1):0)<<8|(T.length>2?T.charCodeAt(2):0),ie=[d.charAt(G>>>18),d.charAt(G>>>12&63),P>=2?"=":d.charAt(G>>>6&63),P>=1?"=":d.charAt(G&63)];return ie.join("")},E=z.btoa&&typeof z.btoa=="function"?function(T){return z.btoa(T)}:function(T){if(T.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return T.replace(/[\s\S]{1,3}/g,p)},b=function(T){return E(A(String(T)))},I=function(T){return T.replace(/[+\/]/g,function(P){return P=="+"?"-":"_"}).replace(/=/g,"")},j=function(T,P){return P?I(b(T)):b(T)},$=function(T){return j(T,!0)},le;z.Uint8Array&&(le=function(T,P){for(var G="",ie=0,X=T.length;ie<X;ie+=3){var y=T[ie],v=T[ie+1],O=T[ie+2],pe=y<<16|v<<8|O;G+=d.charAt(pe>>>18)+d.charAt(pe>>>12&63)+(typeof v!="undefined"?d.charAt(pe>>>6&63):"=")+(typeof O!="undefined"?d.charAt(pe&63):"=")}return P?I(G):G});var F=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,H=function(T){switch(T.length){case 4:var P=(7&T.charCodeAt(0))<<18|(63&T.charCodeAt(1))<<12|(63&T.charCodeAt(2))<<6|63&T.charCodeAt(3),G=P-65536;return ne((G>>>10)+55296)+ne((G&1023)+56320);case 3:return ne((15&T.charCodeAt(0))<<12|(63&T.charCodeAt(1))<<6|63&T.charCodeAt(2));default:return ne((31&T.charCodeAt(0))<<6|63&T.charCodeAt(1))}},D=function(T){return T.replace(F,H)},w=function(T){var P=T.length,G=P%4,ie=(P>0?_e[T.charAt(0)]<<18:0)|(P>1?_e[T.charAt(1)]<<12:0)|(P>2?_e[T.charAt(2)]<<6:0)|(P>3?_e[T.charAt(3)]:0),X=[ne(ie>>>16),ne(ie>>>8&255),ne(ie&255)];return X.length-=[0,0,2,1][G],X.join("")},Q=z.atob&&typeof z.atob=="function"?function(T){return z.atob(T)}:function(T){return T.replace(/\S{1,4}/g,w)},re=function(T){return Q(String(T).replace(/[^A-Za-z0-9\+\/]/g,""))},ee=function(T){return D(Q(T))},oe=function(T){return String(T).replace(/[-_]/g,function(P){return P=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ge=function(T){return ee(oe(T))},me;z.Uint8Array&&(me=function(T){return Uint8Array.from(re(oe(T)),function(P){return P.charCodeAt(0)})});var at=function(){var T=z.Base64;return z.Base64=ae,T};if(z.Base64={VERSION:B,atob:re,btoa:E,fromBase64:ge,toBase64:j,utob:A,encode:j,encodeURI:$,btou:D,decode:ge,noConflict:at,fromUint8Array:le,toUint8Array:me},typeof Object.defineProperty=="function"){var Z=function(T){return{value:T,enumerable:!1,writable:!0,configurable:!0}};z.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Z(function(){return ge(this)})),Object.defineProperty(String.prototype,"toBase64",Z(function(T){return j(this,T)})),Object.defineProperty(String.prototype,"toBase64URI",Z(function(){return j(this,!0)}))}}return z.Meteor&&(Base64=z.Base64),Pn.exports?Pn.exports.Base64=z.Base64:(f=[],ue=function(){return z.Base64}.apply(Gt,f),ue!==void 0&&(Pn.exports=ue)),{Base64:z.Base64}})},53184:function(Pn,Gt,_){"use strict";var f,ue;function z(ae,B,d){var _e=function(ne,o){return ae.js_beautify(ne,o)};return _e.js=ae.js_beautify,_e.css=B.css_beautify,_e.html=d.html_beautify,_e.js_beautify=ae.js_beautify,_e.css_beautify=B.css_beautify,_e.html_beautify=d.html_beautify,_e}f=[_(58553),_(87804),_(40998)],ue=function(ae,B,d){return z(ae,B,d)}.apply(Gt,f),ue!==void 0&&(Pn.exports=ue)},87804:function(Pn,Gt){var _,f;(function(){var ue;(function(){"use strict";var ae=[,,function(ne){function o(p){this.__parent=p,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}o.prototype.clone_empty=function(){var p=new o(this.__parent);return p.set_indent(this.__indent_count,this.__alignment_count),p},o.prototype.item=function(p){return p<0?this.__items[this.__items.length+p]:this.__items[p]},o.prototype.has_match=function(p){for(var E=this.__items.length-1;E>=0;E--)if(this.__items[E].match(p))return!0;return!1},o.prototype.set_indent=function(p,E){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=E||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},o.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(p){this.__items.push(p);var E=p.lastIndexOf(`
`);E!==-1?this.__character_count=p.length-E:this.__character_count+=p.length},o.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},o.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},o.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},o.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},o.prototype.toString=function(){var p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function g(p,E){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),E=E||"",p.indent_level>0&&(E=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=E,this.__base_string_length=E.length}g.prototype.get_indent_size=function(p,E){var b=this.__base_string_length;return E=E||0,p<0&&(b=0),b+=p*this.__indent_size,b+=E,b},g.prototype.get_indent_string=function(p,E){var b=this.__base_string;return E=E||0,p<0&&(p=0,b=""),E+=p*this.__indent_size,this.__ensure_cache(E),b+=this.__cache[E],b},g.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},g.prototype.__add_column=function(){var p=this.__cache.length,E=0,b="";this.__indent_size&&p>=this.__indent_size&&(E=Math.floor(p/this.__indent_size),p-=E*this.__indent_size,b=new Array(E+1).join(this.__indent_string)),p&&(b+=new Array(p+1).join(" ")),this.__cache.push(b)};function A(p,E){this.__indent_cache=new g(p,E),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}A.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},A.prototype.get_line_number=function(){return this.__lines.length},A.prototype.get_indent_string=function(p,E){return this.__indent_cache.get_indent_string(p,E)},A.prototype.get_indent_size=function(p,E){return this.__indent_cache.get_indent_size(p,E)},A.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},A.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},A.prototype.get_code=function(p){this.trim(!0);var E=this.current_line.pop();E&&(E[E.length-1]===`
`&&(E=E.replace(/\n+$/g,"")),this.current_line.push(E)),this._end_with_newline&&this.__add_outputline();var b=this.__lines.join(`
`);return p!==`
`&&(b=b.replace(/[\n]/g,p)),b},A.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},A.prototype.set_indent=function(p,E){return p=p||0,E=E||0,this.next_line.set_indent(p,E),this.__lines.length>1?(this.current_line.set_indent(p,E),!0):(this.current_line.set_indent(),!1)},A.prototype.add_raw_token=function(p){for(var E=0;E<p.newlines;E++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(p.whitespace_before),this.current_line.push(p.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},A.prototype.add_token=function(p){this.__add_space_before_token(),this.current_line.push(p),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},A.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},A.prototype.remove_indent=function(p){for(var E=this.__lines.length;p<E;)this.__lines[p]._remove_indent(),p++;this.current_line._remove_wrap_indent()},A.prototype.trim=function(p){for(p=p===void 0?!1:p,this.current_line.trim();p&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},A.prototype.just_added_newline=function(){return this.current_line.is_empty()},A.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},A.prototype.ensure_empty_line_above=function(p,E){for(var b=this.__lines.length-2;b>=0;){var I=this.__lines[b];if(I.is_empty())break;if(I.item(0).indexOf(p)!==0&&I.item(-1)!==E){this.__lines.splice(b+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}b--}},ne.exports.Output=A},,,,function(ne){function o(p,E){this.raw_options=g(p,E),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}o.prototype._get_array=function(p,E){var b=this.raw_options[p],I=E||[];return typeof b=="object"?b!==null&&typeof b.concat=="function"&&(I=b.concat()):typeof b=="string"&&(I=b.split(/[^a-zA-Z0-9_\/\-]+/)),I},o.prototype._get_boolean=function(p,E){var b=this.raw_options[p],I=b===void 0?!!E:!!b;return I},o.prototype._get_characters=function(p,E){var b=this.raw_options[p],I=E||"";return typeof b=="string"&&(I=b.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),I},o.prototype._get_number=function(p,E){var b=this.raw_options[p];E=parseInt(E,10),isNaN(E)&&(E=0);var I=parseInt(b,10);return isNaN(I)&&(I=E),I},o.prototype._get_selection=function(p,E,b){var I=this._get_selection_list(p,E,b);if(I.length!==1)throw new Error("Invalid Option Value: The option '"+p+`' can only be one of the following values:
`+E+`
You passed in: '`+this.raw_options[p]+"'");return I[0]},o.prototype._get_selection_list=function(p,E,b){if(!E||E.length===0)throw new Error("Selection list cannot be empty.");if(b=b||[E[0]],!this._is_valid_selection(b,E))throw new Error("Invalid Default Value!");var I=this._get_array(p,b);if(!this._is_valid_selection(I,E))throw new Error("Invalid Option Value: The option '"+p+`' can contain only the following values:
`+E+`
You passed in: '`+this.raw_options[p]+"'");return I},o.prototype._is_valid_selection=function(p,E){return p.length&&E.length&&!p.some(function(b){return E.indexOf(b)===-1})};function g(p,E){var b={};p=A(p);var I;for(I in p)I!==E&&(b[I]=p[I]);if(E&&p[E])for(I in p[E])b[I]=p[E][I];return b}function A(p){var E={},b;for(b in p){var I=b.replace(/-/g,"_");E[I]=p[b]}return E}ne.exports.Options=o,ne.exports.normalizeOpts=A,ne.exports.mergeOpts=g},,function(ne){var o=RegExp.prototype.hasOwnProperty("sticky");function g(A){this.__input=A||"",this.__input_length=this.__input.length,this.__position=0}g.prototype.restart=function(){this.__position=0},g.prototype.back=function(){this.__position>0&&(this.__position-=1)},g.prototype.hasNext=function(){return this.__position<this.__input_length},g.prototype.next=function(){var A=null;return this.hasNext()&&(A=this.__input.charAt(this.__position),this.__position+=1),A},g.prototype.peek=function(A){var p=null;return A=A||0,A+=this.__position,A>=0&&A<this.__input_length&&(p=this.__input.charAt(A)),p},g.prototype.__match=function(A,p){A.lastIndex=p;var E=A.exec(this.__input);return E&&!(o&&A.sticky)&&E.index!==p&&(E=null),E},g.prototype.test=function(A,p){return p=p||0,p+=this.__position,p>=0&&p<this.__input_length?!!this.__match(A,p):!1},g.prototype.testChar=function(A,p){var E=this.peek(p);return A.lastIndex=0,E!==null&&A.test(E)},g.prototype.match=function(A){var p=this.__match(A,this.__position);return p?this.__position+=p[0].length:p=null,p},g.prototype.read=function(A,p,E){var b="",I;return A&&(I=this.match(A),I&&(b+=I[0])),p&&(I||!A)&&(b+=this.readUntil(p,E)),b},g.prototype.readUntil=function(A,p){var E="",b=this.__position;A.lastIndex=this.__position;var I=A.exec(this.__input);return I?(b=I.index,p&&(b+=I[0].length)):b=this.__input_length,E=this.__input.substring(this.__position,b),this.__position=b,E},g.prototype.readUntilAfter=function(A){return this.readUntil(A,!0)},g.prototype.get_regexp=function(A,p){var E=null,b="g";return p&&o&&(b="y"),typeof A=="string"&&A!==""?E=new RegExp(A,b):A&&(E=new RegExp(A.source,b)),E},g.prototype.get_literal_regexp=function(A){return RegExp(A.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},g.prototype.peekUntilAfter=function(A){var p=this.__position,E=this.readUntilAfter(A);return this.__position=p,E},g.prototype.lookBack=function(A){var p=this.__position-1;return p>=A.length&&this.__input.substring(p-A.length,p).toLowerCase()===A},ne.exports.InputScanner=g},,,,,function(ne){function o(g,A){g=typeof g=="string"?g:g.source,A=typeof A=="string"?A:A.source,this.__directives_block_pattern=new RegExp(g+/ beautify( \w+[:]\w+)+ /.source+A,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(g+/\sbeautify\signore:end\s/.source+A,"g")}o.prototype.get_directives=function(g){if(!g.match(this.__directives_block_pattern))return null;var A={};this.__directive_pattern.lastIndex=0;for(var p=this.__directive_pattern.exec(g);p;)A[p[1]]=p[2],p=this.__directive_pattern.exec(g);return A},o.prototype.readIgnored=function(g){return g.readUntilAfter(this.__directives_end_ignore_pattern)},ne.exports.Directives=o},,function(ne,o,g){var A=g(16).Beautifier,p=g(17).Options;function E(b,I){var j=new A(b,I);return j.beautify()}ne.exports=E,ne.exports.defaultOptions=function(){return new p}},function(ne,o,g){var A=g(17).Options,p=g(2).Output,E=g(8).InputScanner,b=g(13).Directives,I=new b(/\/\*/,/\*\//),j=/\r\n|[\r\n]/,$=/\r\n|[\r\n]/g,le=/\s/,F=/(?:\s|\n)+/g,H=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,D=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function w(Q,re){this._source_text=Q||"",this._options=new A(re),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}w.prototype.eatString=function(Q){var re="";for(this._ch=this._input.next();this._ch;){if(re+=this._ch,this._ch==="\\")re+=this._input.next();else if(Q.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return re},w.prototype.eatWhitespace=function(Q){for(var re=le.test(this._input.peek()),ee=0;le.test(this._input.peek());)this._ch=this._input.next(),Q&&this._ch===`
`&&(ee===0||ee<this._options.max_preserve_newlines)&&(ee++,this._output.add_new_line(!0));return re},w.prototype.foundNestedPseudoClass=function(){for(var Q=0,re=1,ee=this._input.peek(re);ee;){if(ee==="{")return!0;if(ee==="(")Q+=1;else if(ee===")"){if(Q===0)return!1;Q-=1}else if(ee===";"||ee==="}")return!1;re++,ee=this._input.peek(re)}return!1},w.prototype.print_string=function(Q){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(Q)},w.prototype.preserveSingleSpace=function(Q){Q&&(this._output.space_before_token=!0)},w.prototype.indent=function(){this._indentLevel++},w.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},w.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var Q=this._source_text,re=this._options.eol;re==="auto"&&(re=`
`,Q&&j.test(Q||"")&&(re=Q.match(j)[0])),Q=Q.replace($,`
`);var ee=Q.match(/^[\t ]*/)[0];this._output=new p(this._options,ee),this._input=new E(Q),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var oe=0,ge=!1,me=!1,at=!1,Z=!1,T=!1,P=this._ch,G=!1,ie,X,y;ie=this._input.read(F),X=ie!=="",y=P,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),P=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var v=this._input.read(H),O=I.get_directives(v);O&&O.ignore==="start"&&(v+=I.readIgnored(this._input)),this.print_string(v),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(D)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(X),this.print_string(this._ch);var pe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);pe.match(/[ :]$/)&&(pe=this.eatString(": ").replace(/\s+$/,""),this.print_string(pe),this._output.space_before_token=!0),oe===0&&pe.indexOf(":")!==-1&&(me=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(X),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var He=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);He.match(/[ :]$/)&&(He=this.eatString(": ").replace(/\s+$/,""),this.print_string(He),this._output.space_before_token=!0),oe===0&&He.indexOf(":")!==-1?(me=!0,this.indent()):He in this.NESTED_AT_RULE?(this._nestedLevel+=1,He in this.CONDITIONAL_GROUP_RULE&&(at=!0)):oe===0&&!me&&(Z=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(X),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")me&&(me=!1,this.outdent()),Z=!1,at?(at=!1,ge=this._indentLevel>=this._nestedLevel):ge=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&ge&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(y==="("?this._output.space_before_token=!1:y!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),y==="{"&&this._output.trim(!0),me&&(this.outdent(),me=!1),this.print_string(this._ch),ge=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var tt=0;tt<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;tt++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[tt])){G=!0;break}(ge||at)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!Z&&oe===0?(this.print_string(":"),me||(me=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var Ct=y==='"'||y==="'";this.preserveSingleSpace(Ct||X),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")G=!1,oe===0?(me&&(this.outdent(),me=!1),Z=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),oe++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),oe&&(oe--,this.outdent()));else{var Rt=!1;this._input.lookBack("with")&&(Rt=!0),this.preserveSingleSpace(X||Rt),this.print_string(this._ch),me&&y==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),T=!0):(this.eatWhitespace(),oe++,this.indent())}else if(this._ch===")")oe&&(oe--,this.outdent()),T&&this._input.peek()===";"&&this._options.selector_separator_newline&&(T=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!me||T)&&oe===0&&!Z?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!me&&oe===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&le.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(X),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),le.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var Ft=y==='"'||y==="'";this.preserveSingleSpace(Ft||X),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&G&&this._output.add_new_line()}var Ht=this._output.get_code(re);return Ht},ne.exports.Beautifier=w},function(ne,o,g){var A=g(6).Options;function p(E){A.call(this,E,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var b=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||b;var I=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var j=0;j<I.length;j++)I[j]!=="expand"?this.brace_style="collapse":this.brace_style=I[j]}p.prototype=new A,ne.exports.Options=p}],B={};function d(ne){var o=B[ne];if(o!==void 0)return o.exports;var g=B[ne]={exports:{}};return ae[ne](g,g.exports,d),g.exports}var _e=d(15);ue=_e})();var z=ue;_=[],f=function(){return{css_beautify:z}}.apply(Gt,_),f!==void 0&&(Pn.exports=f)})()},40998:function(Pn,Gt,_){var f,ue;(function(){var z;(function(){"use strict";var _e=[,,function(A){function p(I){this.__parent=I,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}p.prototype.clone_empty=function(){var I=new p(this.__parent);return I.set_indent(this.__indent_count,this.__alignment_count),I},p.prototype.item=function(I){return I<0?this.__items[this.__items.length+I]:this.__items[I]},p.prototype.has_match=function(I){for(var j=this.__items.length-1;j>=0;j--)if(this.__items[j].match(I))return!0;return!1},p.prototype.set_indent=function(I,j){this.is_empty()&&(this.__indent_count=I||0,this.__alignment_count=j||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},p.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},p.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},p.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var I=this.__parent.current_line;return I.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),I.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),I.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,I.__items[0]===" "&&(I.__items.splice(0,1),I.__character_count-=1),!0}return!1},p.prototype.is_empty=function(){return this.__items.length===0},p.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},p.prototype.push=function(I){this.__items.push(I);var j=I.lastIndexOf(`
`);j!==-1?this.__character_count=I.length-j:this.__character_count+=I.length},p.prototype.pop=function(){var I=null;return this.is_empty()||(I=this.__items.pop(),this.__character_count-=I.length),I},p.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},p.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},p.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},p.prototype.toString=function(){var I="";return this.is_empty()?this.__parent.indent_empty_lines&&(I=this.__parent.get_indent_string(this.__indent_count)):(I=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),I+=this.__items.join("")),I};function E(I,j){this.__cache=[""],this.__indent_size=I.indent_size,this.__indent_string=I.indent_char,I.indent_with_tabs||(this.__indent_string=new Array(I.indent_size+1).join(I.indent_char)),j=j||"",I.indent_level>0&&(j=new Array(I.indent_level+1).join(this.__indent_string)),this.__base_string=j,this.__base_string_length=j.length}E.prototype.get_indent_size=function(I,j){var $=this.__base_string_length;return j=j||0,I<0&&($=0),$+=I*this.__indent_size,$+=j,$},E.prototype.get_indent_string=function(I,j){var $=this.__base_string;return j=j||0,I<0&&(I=0,$=""),j+=I*this.__indent_size,this.__ensure_cache(j),$+=this.__cache[j],$},E.prototype.__ensure_cache=function(I){for(;I>=this.__cache.length;)this.__add_column()},E.prototype.__add_column=function(){var I=this.__cache.length,j=0,$="";this.__indent_size&&I>=this.__indent_size&&(j=Math.floor(I/this.__indent_size),I-=j*this.__indent_size,$=new Array(j+1).join(this.__indent_string)),I&&($+=new Array(I+1).join(" ")),this.__cache.push($)};function b(I,j){this.__indent_cache=new E(I,j),this.raw=!1,this._end_with_newline=I.end_with_newline,this.indent_size=I.indent_size,this.wrap_line_length=I.wrap_line_length,this.indent_empty_lines=I.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new p(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}b.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},b.prototype.get_line_number=function(){return this.__lines.length},b.prototype.get_indent_string=function(I,j){return this.__indent_cache.get_indent_string(I,j)},b.prototype.get_indent_size=function(I,j){return this.__indent_cache.get_indent_size(I,j)},b.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},b.prototype.add_new_line=function(I){return this.is_empty()||!I&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},b.prototype.get_code=function(I){this.trim(!0);var j=this.current_line.pop();j&&(j[j.length-1]===`
`&&(j=j.replace(/\n+$/g,"")),this.current_line.push(j)),this._end_with_newline&&this.__add_outputline();var $=this.__lines.join(`
`);return I!==`
`&&($=$.replace(/[\n]/g,I)),$},b.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},b.prototype.set_indent=function(I,j){return I=I||0,j=j||0,this.next_line.set_indent(I,j),this.__lines.length>1?(this.current_line.set_indent(I,j),!0):(this.current_line.set_indent(),!1)},b.prototype.add_raw_token=function(I){for(var j=0;j<I.newlines;j++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(I.whitespace_before),this.current_line.push(I.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},b.prototype.add_token=function(I){this.__add_space_before_token(),this.current_line.push(I),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},b.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},b.prototype.remove_indent=function(I){for(var j=this.__lines.length;I<j;)this.__lines[I]._remove_indent(),I++;this.current_line._remove_wrap_indent()},b.prototype.trim=function(I){for(I=I===void 0?!1:I,this.current_line.trim();I&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},b.prototype.just_added_newline=function(){return this.current_line.is_empty()},b.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},b.prototype.ensure_empty_line_above=function(I,j){for(var $=this.__lines.length-2;$>=0;){var le=this.__lines[$];if(le.is_empty())break;if(le.item(0).indexOf(I)!==0&&le.item(-1)!==j){this.__lines.splice($+1,0,new p(this)),this.previous_line=this.__lines[this.__lines.length-2];break}$--}},A.exports.Output=b},function(A){function p(E,b,I,j){this.type=E,this.text=b,this.comments_before=null,this.newlines=I||0,this.whitespace_before=j||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}A.exports.Token=p},,,function(A){function p(I,j){this.raw_options=E(I,j),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}p.prototype._get_array=function(I,j){var $=this.raw_options[I],le=j||[];return typeof $=="object"?$!==null&&typeof $.concat=="function"&&(le=$.concat()):typeof $=="string"&&(le=$.split(/[^a-zA-Z0-9_\/\-]+/)),le},p.prototype._get_boolean=function(I,j){var $=this.raw_options[I],le=$===void 0?!!j:!!$;return le},p.prototype._get_characters=function(I,j){var $=this.raw_options[I],le=j||"";return typeof $=="string"&&(le=$.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),le},p.prototype._get_number=function(I,j){var $=this.raw_options[I];j=parseInt(j,10),isNaN(j)&&(j=0);var le=parseInt($,10);return isNaN(le)&&(le=j),le},p.prototype._get_selection=function(I,j,$){var le=this._get_selection_list(I,j,$);if(le.length!==1)throw new Error("Invalid Option Value: The option '"+I+`' can only be one of the following values:
`+j+`
You passed in: '`+this.raw_options[I]+"'");return le[0]},p.prototype._get_selection_list=function(I,j,$){if(!j||j.length===0)throw new Error("Selection list cannot be empty.");if($=$||[j[0]],!this._is_valid_selection($,j))throw new Error("Invalid Default Value!");var le=this._get_array(I,$);if(!this._is_valid_selection(le,j))throw new Error("Invalid Option Value: The option '"+I+`' can contain only the following values:
`+j+`
You passed in: '`+this.raw_options[I]+"'");return le},p.prototype._is_valid_selection=function(I,j){return I.length&&j.length&&!I.some(function($){return j.indexOf($)===-1})};function E(I,j){var $={};I=b(I);var le;for(le in I)le!==j&&($[le]=I[le]);if(j&&I[j])for(le in I[j])$[le]=I[j][le];return $}function b(I){var j={},$;for($ in I){var le=$.replace(/-/g,"_");j[le]=I[$]}return j}A.exports.Options=p,A.exports.normalizeOpts=b,A.exports.mergeOpts=E},,function(A){var p=RegExp.prototype.hasOwnProperty("sticky");function E(b){this.__input=b||"",this.__input_length=this.__input.length,this.__position=0}E.prototype.restart=function(){this.__position=0},E.prototype.back=function(){this.__position>0&&(this.__position-=1)},E.prototype.hasNext=function(){return this.__position<this.__input_length},E.prototype.next=function(){var b=null;return this.hasNext()&&(b=this.__input.charAt(this.__position),this.__position+=1),b},E.prototype.peek=function(b){var I=null;return b=b||0,b+=this.__position,b>=0&&b<this.__input_length&&(I=this.__input.charAt(b)),I},E.prototype.__match=function(b,I){b.lastIndex=I;var j=b.exec(this.__input);return j&&!(p&&b.sticky)&&j.index!==I&&(j=null),j},E.prototype.test=function(b,I){return I=I||0,I+=this.__position,I>=0&&I<this.__input_length?!!this.__match(b,I):!1},E.prototype.testChar=function(b,I){var j=this.peek(I);return b.lastIndex=0,j!==null&&b.test(j)},E.prototype.match=function(b){var I=this.__match(b,this.__position);return I?this.__position+=I[0].length:I=null,I},E.prototype.read=function(b,I,j){var $="",le;return b&&(le=this.match(b),le&&($+=le[0])),I&&(le||!b)&&($+=this.readUntil(I,j)),$},E.prototype.readUntil=function(b,I){var j="",$=this.__position;b.lastIndex=this.__position;var le=b.exec(this.__input);return le?($=le.index,I&&($+=le[0].length)):$=this.__input_length,j=this.__input.substring(this.__position,$),this.__position=$,j},E.prototype.readUntilAfter=function(b){return this.readUntil(b,!0)},E.prototype.get_regexp=function(b,I){var j=null,$="g";return I&&p&&($="y"),typeof b=="string"&&b!==""?j=new RegExp(b,$):b&&(j=new RegExp(b.source,$)),j},E.prototype.get_literal_regexp=function(b){return RegExp(b.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},E.prototype.peekUntilAfter=function(b){var I=this.__position,j=this.readUntilAfter(b);return this.__position=I,j},E.prototype.lookBack=function(b){var I=this.__position-1;return I>=b.length&&this.__input.substring(I-b.length,I).toLowerCase()===b},A.exports.InputScanner=E},function(A,p,E){var b=E(8).InputScanner,I=E(3).Token,j=E(10).TokenStream,$=E(11).WhitespacePattern,le={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},F=function(H,D){this._input=new b(H),this._options=D||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new $(this._input)};F.prototype.tokenize=function(){this._input.restart(),this.__tokens=new j,this._reset();for(var H,D=new I(le.START,""),w=null,Q=[],re=new j;D.type!==le.EOF;){for(H=this._get_next_token(D,w);this._is_comment(H);)re.add(H),H=this._get_next_token(D,w);re.isEmpty()||(H.comments_before=re,re=new j),H.parent=w,this._is_opening(H)?(Q.push(w),w=H):w&&this._is_closing(H,w)&&(H.opened=w,w.closed=H,w=Q.pop(),H.parent=w),H.previous=D,D.next=H,this.__tokens.add(H),D=H}return this.__tokens},F.prototype._is_first_token=function(){return this.__tokens.isEmpty()},F.prototype._reset=function(){},F.prototype._get_next_token=function(H,D){this._readWhitespace();var w=this._input.read(/.+/g);return w?this._create_token(le.RAW,w):this._create_token(le.EOF,"")},F.prototype._is_comment=function(H){return!1},F.prototype._is_opening=function(H){return!1},F.prototype._is_closing=function(H,D){return!1},F.prototype._create_token=function(H,D){var w=new I(H,D,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return w},F.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},A.exports.Tokenizer=F,A.exports.TOKEN=le},function(A){function p(E){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=E}p.prototype.restart=function(){this.__position=0},p.prototype.isEmpty=function(){return this.__tokens_length===0},p.prototype.hasNext=function(){return this.__position<this.__tokens_length},p.prototype.next=function(){var E=null;return this.hasNext()&&(E=this.__tokens[this.__position],this.__position+=1),E},p.prototype.peek=function(E){var b=null;return E=E||0,E+=this.__position,E>=0&&E<this.__tokens_length&&(b=this.__tokens[E]),b},p.prototype.add=function(E){this.__parent_token&&(E.parent=this.__parent_token),this.__tokens.push(E),this.__tokens_length+=1},A.exports.TokenStream=p},function(A,p,E){var b=E(12).Pattern;function I(j,$){b.call(this,j,$),$?this._line_regexp=this._input.get_regexp($._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}I.prototype=new b,I.prototype.__set_whitespace_patterns=function(j,$){j+="\\t ",$+="\\n\\r",this._match_pattern=this._input.get_regexp("["+j+$+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+$+"]")},I.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var j=this._input.read(this._match_pattern);if(j===" ")this.whitespace_before_token=" ";else if(j){var $=this.__split(this._newline_regexp,j);this.newline_count=$.length-1,this.whitespace_before_token=$[this.newline_count]}return j},I.prototype.matching=function(j,$){var le=this._create();return le.__set_whitespace_patterns(j,$),le._update(),le},I.prototype._create=function(){return new I(this._input,this)},I.prototype.__split=function(j,$){j.lastIndex=0;for(var le=0,F=[],H=j.exec($);H;)F.push($.substring(le,H.index)),le=H.index+H[0].length,H=j.exec($);return le<$.length?F.push($.substring(le,$.length)):F.push(""),F},A.exports.WhitespacePattern=I},function(A){function p(E,b){this._input=E,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,b&&(this._starting_pattern=this._input.get_regexp(b._starting_pattern,!0),this._match_pattern=this._input.get_regexp(b._match_pattern,!0),this._until_pattern=this._input.get_regexp(b._until_pattern),this._until_after=b._until_after)}p.prototype.read=function(){var E=this._input.read(this._starting_pattern);return(!this._starting_pattern||E)&&(E+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),E},p.prototype.read_match=function(){return this._input.match(this._match_pattern)},p.prototype.until_after=function(E){var b=this._create();return b._until_after=!0,b._until_pattern=this._input.get_regexp(E),b._update(),b},p.prototype.until=function(E){var b=this._create();return b._until_after=!1,b._until_pattern=this._input.get_regexp(E),b._update(),b},p.prototype.starting_with=function(E){var b=this._create();return b._starting_pattern=this._input.get_regexp(E,!0),b._update(),b},p.prototype.matching=function(E){var b=this._create();return b._match_pattern=this._input.get_regexp(E,!0),b._update(),b},p.prototype._create=function(){return new p(this._input,this)},p.prototype._update=function(){},A.exports.Pattern=p},function(A){function p(E,b){E=typeof E=="string"?E:E.source,b=typeof b=="string"?b:b.source,this.__directives_block_pattern=new RegExp(E+/ beautify( \w+[:]\w+)+ /.source+b,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(E+/\sbeautify\signore:end\s/.source+b,"g")}p.prototype.get_directives=function(E){if(!E.match(this.__directives_block_pattern))return null;var b={};this.__directive_pattern.lastIndex=0;for(var I=this.__directive_pattern.exec(E);I;)b[I[1]]=I[2],I=this.__directive_pattern.exec(E);return b},p.prototype.readIgnored=function(E){return E.readUntilAfter(this.__directives_end_ignore_pattern)},A.exports.Directives=p},function(A,p,E){var b=E(12).Pattern,I={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function j($,le){b.call(this,$,le),this.__template_pattern=null,this._disabled=Object.assign({},I),this._excluded=Object.assign({},I),le&&(this.__template_pattern=this._input.get_regexp(le.__template_pattern),this._excluded=Object.assign(this._excluded,le._excluded),this._disabled=Object.assign(this._disabled,le._disabled));var F=new b($);this.__patterns={handlebars_comment:F.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:F.starting_with(/{{{/).until_after(/}}}/),handlebars:F.starting_with(/{{/).until_after(/}}/),php:F.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:F.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:F.starting_with(/{%/).until_after(/%}/),django_value:F.starting_with(/{{/).until_after(/}}/),django_comment:F.starting_with(/{#/).until_after(/#}/),smarty:F.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:F.starting_with(/{\*/).until_after(/\*}/),smarty_literal:F.starting_with(/{literal}/).until_after(/{\/literal}/)}}j.prototype=new b,j.prototype._create=function(){return new j(this._input,this)},j.prototype._update=function(){this.__set_templated_pattern()},j.prototype.disable=function($){var le=this._create();return le._disabled[$]=!0,le._update(),le},j.prototype.read_options=function($){var le=this._create();for(var F in I)le._disabled[F]=$.templating.indexOf(F)===-1;return le._update(),le},j.prototype.exclude=function($){var le=this._create();return le._excluded[$]=!0,le._update(),le},j.prototype.read=function(){var $="";this._match_pattern?$=this._input.read(this._starting_pattern):$=this._input.read(this._starting_pattern,this.__template_pattern);for(var le=this._read_template();le;)this._match_pattern?le+=this._input.read(this._match_pattern):le+=this._input.readUntil(this.__template_pattern),$+=le,le=this._read_template();return this._until_after&&($+=this._input.readUntilAfter(this._until_pattern)),$},j.prototype.__set_templated_pattern=function(){var $=[];this._disabled.php||$.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||$.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||$.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||$.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||($.push(this.__patterns.django._starting_pattern.source),$.push(this.__patterns.django_value._starting_pattern.source),$.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||$.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&$.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+$.join("|")+")")},j.prototype._read_template=function(){var $="",le=this._input.peek();if(le==="<"){var F=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&F==="?"&&($=$||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&F==="%"&&($=$||this.__patterns.erb.read())}else le==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&($=$||this.__patterns.handlebars_comment.read(),$=$||this.__patterns.handlebars_unescaped.read(),$=$||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&($=$||this.__patterns.django_value.read()),this._excluded.django||($=$||this.__patterns.django_comment.read(),$=$||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&($=$||this.__patterns.smarty_comment.read(),$=$||this.__patterns.smarty_literal.read(),$=$||this.__patterns.smarty.read()));return $},A.exports.TemplatablePattern=j},,,,function(A,p,E){var b=E(19).Beautifier,I=E(20).Options;function j($,le,F,H){var D=new b($,le,F,H);return D.beautify()}A.exports=j,A.exports.defaultOptions=function(){return new I}},function(A,p,E){var b=E(20).Options,I=E(2).Output,j=E(21).Tokenizer,$=E(21).TOKEN,le=/\r\n|[\r\n]/,F=/\r\n|[\r\n]/g,H=function(Z,T){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=Z.max_preserve_newlines,this.preserve_newlines=Z.preserve_newlines,this._output=new I(Z,T)};H.prototype.current_line_has_match=function(Z){return this._output.current_line.has_match(Z)},H.prototype.set_space_before_token=function(Z,T){this._output.space_before_token=Z,this._output.non_breaking_space=T},H.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},H.prototype.add_raw_token=function(Z){this._output.add_raw_token(Z)},H.prototype.print_preserved_newlines=function(Z){var T=0;Z.type!==$.TEXT&&Z.previous.type!==$.TEXT&&(T=Z.newlines?1:0),this.preserve_newlines&&(T=Z.newlines<this.max_preserve_newlines+1?Z.newlines:this.max_preserve_newlines+1);for(var P=0;P<T;P++)this.print_newline(P>0);return T!==0},H.prototype.traverse_whitespace=function(Z){return Z.whitespace_before||Z.newlines?(this.print_preserved_newlines(Z)||(this._output.space_before_token=!0),!0):!1},H.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},H.prototype.print_newline=function(Z){this._output.add_new_line(Z)},H.prototype.print_token=function(Z){Z.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(Z.text))},H.prototype.indent=function(){this.indent_level++},H.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},H.prototype.get_full_indent=function(Z){return Z=this.indent_level+(Z||0),Z<1?"":this._output.get_indent_string(Z)};var D=function(Z){for(var T=null,P=Z.next;P.type!==$.EOF&&Z.closed!==P;){if(P.type===$.ATTRIBUTE&&P.text==="type"){P.next&&P.next.type===$.EQUALS&&P.next.next&&P.next.next.type===$.VALUE&&(T=P.next.next.text);break}P=P.next}return T},w=function(Z,T){var P=null,G=null;return T.closed?(Z==="script"?P="text/javascript":Z==="style"&&(P="text/css"),P=D(T)||P,P.search("text/css")>-1?G="css":P.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?G="javascript":P.search(/(text|application|dojo)\/(x-)?(html)/)>-1?G="html":P.search(/test\/null/)>-1&&(G="null"),G):null};function Q(Z,T){return T.indexOf(Z)!==-1}function re(Z,T,P){this.parent=Z||null,this.tag=T?T.tag_name:"",this.indent_level=P||0,this.parser_token=T||null}function ee(Z){this._printer=Z,this._current_frame=null}ee.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},ee.prototype.record_tag=function(Z){var T=new re(this._current_frame,Z,this._printer.indent_level);this._current_frame=T},ee.prototype._try_pop_frame=function(Z){var T=null;return Z&&(T=Z.parser_token,this._printer.indent_level=Z.indent_level,this._current_frame=Z.parent),T},ee.prototype._get_frame=function(Z,T){for(var P=this._current_frame;P&&Z.indexOf(P.tag)===-1;){if(T&&T.indexOf(P.tag)!==-1){P=null;break}P=P.parent}return P},ee.prototype.try_pop=function(Z,T){var P=this._get_frame([Z],T);return this._try_pop_frame(P)},ee.prototype.indent_to_tag=function(Z){var T=this._get_frame(Z);T&&(this._printer.indent_level=T.indent_level)};function oe(Z,T,P,G){this._source_text=Z||"",T=T||{},this._js_beautify=P,this._css_beautify=G,this._tag_stack=null;var ie=new b(T,"html");this._options=ie,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}oe.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var Z=this._source_text,T=this._options.eol;this._options.eol==="auto"&&(T=`
`,Z&&le.test(Z)&&(T=Z.match(le)[0])),Z=Z.replace(F,`
`);var P=Z.match(/^[\t ]*/)[0],G={text:"",type:""},ie=new ge(this._options),X=new H(this._options,P),y=new j(Z,this._options).tokenize();this._tag_stack=new ee(X);for(var v=null,O=y.next();O.type!==$.EOF;)O.type===$.TAG_OPEN||O.type===$.COMMENT?(v=this._handle_tag_open(X,O,ie,G,y),ie=v):O.type===$.ATTRIBUTE||O.type===$.EQUALS||O.type===$.VALUE||O.type===$.TEXT&&!ie.tag_complete?v=this._handle_inside_tag(X,O,ie,G):O.type===$.TAG_CLOSE?v=this._handle_tag_close(X,O,ie):O.type===$.TEXT?v=this._handle_text(X,O,ie):O.type===$.CONTROL_FLOW_OPEN?v=this._handle_control_flow_open(X,O):O.type===$.CONTROL_FLOW_CLOSE?v=this._handle_control_flow_close(X,O):X.add_raw_token(O),G=v,O=y.next();var pe=X._output.get_code(T);return pe},oe.prototype._handle_control_flow_open=function(Z,T){var P={text:T.text,type:T.type};return Z.set_space_before_token(T.newlines||T.whitespace_before!=="",!0),T.newlines?Z.print_preserved_newlines(T):Z.set_space_before_token(T.newlines||T.whitespace_before!=="",!0),Z.print_token(T),Z.indent(),P},oe.prototype._handle_control_flow_close=function(Z,T){var P={text:T.text,type:T.type};return Z.deindent(),T.newlines?Z.print_preserved_newlines(T):Z.set_space_before_token(T.newlines||T.whitespace_before!=="",!0),Z.print_token(T),P},oe.prototype._handle_tag_close=function(Z,T,P){var G={text:T.text,type:T.type};return Z.alignment_size=0,P.tag_complete=!0,Z.set_space_before_token(T.newlines||T.whitespace_before!=="",!0),P.is_unformatted?Z.add_raw_token(T):(P.tag_start_char==="<"&&(Z.set_space_before_token(T.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&P.has_wrapped_attrs&&Z.print_newline(!1)),Z.print_token(T)),P.indent_content&&!(P.is_unformatted||P.is_content_unformatted)&&(Z.indent(),P.indent_content=!1),!P.is_inline_element&&!(P.is_unformatted||P.is_content_unformatted)&&Z.set_wrap_point(),G},oe.prototype._handle_inside_tag=function(Z,T,P,G){var ie=P.has_wrapped_attrs,X={text:T.text,type:T.type};return Z.set_space_before_token(T.newlines||T.whitespace_before!=="",!0),P.is_unformatted?Z.add_raw_token(T):P.tag_start_char==="{"&&T.type===$.TEXT?Z.print_preserved_newlines(T)?(T.newlines=0,Z.add_raw_token(T)):Z.print_token(T):(T.type===$.ATTRIBUTE?Z.set_space_before_token(!0):(T.type===$.EQUALS||T.type===$.VALUE&&T.previous.type===$.EQUALS)&&Z.set_space_before_token(!1),T.type===$.ATTRIBUTE&&P.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(Z.traverse_whitespace(T),ie=ie||T.newlines!==0),this._is_wrap_attributes_force&&P.attr_count>=this._options.wrap_attributes_min_attrs&&(G.type!==$.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(Z.print_newline(!1),ie=!0)),Z.print_token(T),ie=ie||Z.previous_token_wrapped(),P.has_wrapped_attrs=ie),X},oe.prototype._handle_text=function(Z,T,P){var G={text:T.text,type:"TK_CONTENT"};return P.custom_beautifier_name?this._print_custom_beatifier_text(Z,T,P):P.is_unformatted||P.is_content_unformatted?Z.add_raw_token(T):(Z.traverse_whitespace(T),Z.print_token(T)),G},oe.prototype._print_custom_beatifier_text=function(Z,T,P){var G=this;if(T.text!==""){var ie=T.text,X,y=1,v="",O="";P.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?X=this._js_beautify:P.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?X=this._css_beautify:P.custom_beautifier_name==="html"&&(X=function(Ft,Ht){var Ke=new oe(Ft,Ht,G._js_beautify,G._css_beautify);return Ke.beautify()}),this._options.indent_scripts==="keep"?y=0:this._options.indent_scripts==="separate"&&(y=-Z.indent_level);var pe=Z.get_full_indent(y);if(ie=ie.replace(/\n[ \t]*$/,""),P.custom_beautifier_name!=="html"&&ie[0]==="<"&&ie.match(/^(<!--|<!\[CDATA\[)/)){var He=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(ie);if(!He){Z.add_raw_token(T);return}v=pe+He[1]+`
`,ie=He[4],He[5]&&(O=pe+He[5]),ie=ie.replace(/\n[ \t]*$/,""),(He[2]||He[3].indexOf(`
`)!==-1)&&(He=He[3].match(/[ \t]+$/),He&&(T.whitespace_before=He[0]))}if(ie)if(X){var tt=function(){this.eol=`
`};tt.prototype=this._options.raw_options;var Ct=new tt;ie=X(pe+ie,Ct)}else{var Rt=T.whitespace_before;Rt&&(ie=ie.replace(new RegExp(`
(`+Rt+")?","g"),`
`)),ie=pe+ie.replace(/\n/g,`
`+pe)}v&&(ie?ie=v+ie+`
`+O:ie=v+O),Z.print_newline(!1),ie&&(T.text=ie,T.whitespace_before="",T.newlines=0,Z.add_raw_token(T),Z.print_newline(!0))}},oe.prototype._handle_tag_open=function(Z,T,P,G,ie){var X=this._get_tag_open_token(T);if((P.is_unformatted||P.is_content_unformatted)&&!P.is_empty_element&&T.type===$.TAG_OPEN&&!X.is_start_tag?(Z.add_raw_token(T),X.start_tag_token=this._tag_stack.try_pop(X.tag_name)):(Z.traverse_whitespace(T),this._set_tag_position(Z,T,X,P,G),X.is_inline_element||Z.set_wrap_point(),Z.print_token(T)),X.is_start_tag&&this._is_wrap_attributes_force){var y=0,v;do v=ie.peek(y),v.type===$.ATTRIBUTE&&(X.attr_count+=1),y+=1;while(v.type!==$.EOF&&v.type!==$.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(X.alignment_size=T.text.length+1),!X.tag_complete&&!X.is_unformatted&&(Z.alignment_size=X.alignment_size),X};var ge=function(Z,T,P){if(this.parent=T||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!P)this.tag_complete=!0;else{var G;this.tag_start_char=P.text[0],this.text=P.text,this.tag_start_char==="<"?(G=P.text.match(/^<([^\s>]*)/),this.tag_check=G?G[1]:""):(G=P.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=G?G[1]:"",(P.text.startsWith("{{#>")||P.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&P.next!==null?this.tag_check=P.next.text.split(" ")[0]:this.tag_check=P.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),P.type===$.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||P.closed&&P.closed.text==="/>";var ie=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(ie=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!Z.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(ie)))}};oe.prototype._get_tag_open_token=function(Z){var T=new ge(this._options,this._tag_stack.get_parser_token(),Z);return T.alignment_size=this._options.wrap_attributes_indent_size,T.is_end_tag=T.is_end_tag||Q(T.tag_check,this._options.void_elements),T.is_empty_element=T.tag_complete||T.is_start_tag&&T.is_end_tag,T.is_unformatted=!T.tag_complete&&Q(T.tag_check,this._options.unformatted),T.is_content_unformatted=!T.is_empty_element&&Q(T.tag_check,this._options.content_unformatted),T.is_inline_element=Q(T.tag_name,this._options.inline)||this._options.inline_custom_elements&&T.tag_name.includes("-")||T.tag_start_char==="{",T},oe.prototype._set_tag_position=function(Z,T,P,G,ie){if(P.is_empty_element||(P.is_end_tag?P.start_tag_token=this._tag_stack.try_pop(P.tag_name):(this._do_optional_end_element(P)&&(P.is_inline_element||Z.print_newline(!1)),this._tag_stack.record_tag(P),(P.tag_name==="script"||P.tag_name==="style")&&!(P.is_unformatted||P.is_content_unformatted)&&(P.custom_beautifier_name=w(P.tag_check,T)))),Q(P.tag_check,this._options.extra_liners)&&(Z.print_newline(!1),Z._output.just_added_blankline()||Z.print_newline(!0)),P.is_empty_element){if(P.tag_start_char==="{"&&P.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),P.indent_content=!0;var X=Z.current_line_has_match(/{{#if/);X||Z.print_newline(!1)}P.tag_name==="!--"&&ie.type===$.TAG_CLOSE&&G.is_end_tag&&P.text.indexOf(`
`)===-1||(P.is_inline_element||P.is_unformatted||Z.print_newline(!1),this._calcluate_parent_multiline(Z,P))}else if(P.is_end_tag){var y=!1;y=P.start_tag_token&&P.start_tag_token.multiline_content,y=y||!P.is_inline_element&&!(G.is_inline_element||G.is_unformatted)&&!(ie.type===$.TAG_CLOSE&&P.start_tag_token===G)&&ie.type!=="TK_CONTENT",(P.is_content_unformatted||P.is_unformatted)&&(y=!1),y&&Z.print_newline(!1)}else P.indent_content=!P.custom_beautifier_name,P.tag_start_char==="<"&&(P.tag_name==="html"?P.indent_content=this._options.indent_inner_html:P.tag_name==="head"?P.indent_content=this._options.indent_head_inner_html:P.tag_name==="body"&&(P.indent_content=this._options.indent_body_inner_html)),!(P.is_inline_element||P.is_unformatted)&&(ie.type!=="TK_CONTENT"||P.is_content_unformatted)&&Z.print_newline(!1),this._calcluate_parent_multiline(Z,P)},oe.prototype._calcluate_parent_multiline=function(Z,T){T.parent&&Z._output.just_added_newline()&&!((T.is_inline_element||T.is_unformatted)&&T.parent.is_inline_element)&&(T.parent.multiline_content=!0)};var me=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],at=["a","audio","del","ins","map","noscript","video"];oe.prototype._do_optional_end_element=function(Z){var T=null;if(!(Z.is_empty_element||!Z.is_start_tag||!Z.parent)){if(Z.tag_name==="body")T=T||this._tag_stack.try_pop("head");else if(Z.tag_name==="li")T=T||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(Z.tag_name==="dd"||Z.tag_name==="dt")T=T||this._tag_stack.try_pop("dt",["dl"]),T=T||this._tag_stack.try_pop("dd",["dl"]);else if(Z.parent.tag_name==="p"&&me.indexOf(Z.tag_name)!==-1){var P=Z.parent.parent;(!P||at.indexOf(P.tag_name)===-1)&&(T=T||this._tag_stack.try_pop("p"))}else Z.tag_name==="rp"||Z.tag_name==="rt"?(T=T||this._tag_stack.try_pop("rt",["ruby","rtc"]),T=T||this._tag_stack.try_pop("rp",["ruby","rtc"])):Z.tag_name==="optgroup"?T=T||this._tag_stack.try_pop("optgroup",["select"]):Z.tag_name==="option"?T=T||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):Z.tag_name==="colgroup"?T=T||this._tag_stack.try_pop("caption",["table"]):Z.tag_name==="thead"?(T=T||this._tag_stack.try_pop("caption",["table"]),T=T||this._tag_stack.try_pop("colgroup",["table"])):Z.tag_name==="tbody"||Z.tag_name==="tfoot"?(T=T||this._tag_stack.try_pop("caption",["table"]),T=T||this._tag_stack.try_pop("colgroup",["table"]),T=T||this._tag_stack.try_pop("thead",["table"]),T=T||this._tag_stack.try_pop("tbody",["table"])):Z.tag_name==="tr"?(T=T||this._tag_stack.try_pop("caption",["table"]),T=T||this._tag_stack.try_pop("colgroup",["table"]),T=T||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(Z.tag_name==="th"||Z.tag_name==="td")&&(T=T||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),T=T||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return Z.parent=this._tag_stack.get_parser_token(),T}},A.exports.Beautifier=oe},function(A,p,E){var b=E(6).Options;function I(j){b.call(this,j,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}I.prototype=new b,A.exports.Options=I},function(A,p,E){var b=E(9).Tokenizer,I=E(9).TOKEN,j=E(13).Directives,$=E(14).TemplatablePattern,le=E(12).Pattern,F={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:I.START,RAW:I.RAW,EOF:I.EOF},H=new j(/<\!--/,/-->/),D=function(w,Q){b.call(this,w,Q),this._current_tag_name="";var re=new $(this._input).read_options(this._options),ee=new le(this._input);if(this.__patterns={word:re.until(/[\n\r\t <]/),word_control_flow_close_excluded:re.until(/[\n\r\t <}]/),single_quote:re.until_after(/'/),double_quote:re.until_after(/"/),attribute:re.until(/[\n\r\t =>]|\/>/),element_name:re.until(/[\n\r\t >\/]/),angular_control_flow_start:ee.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:ee.starting_with(/{{!--/).until_after(/--}}/),handlebars:ee.starting_with(/{{/).until_after(/}}/),handlebars_open:ee.until(/[\n\r\t }]/),handlebars_raw_close:ee.until(/}}/),comment:ee.starting_with(/<!--/).until_after(/-->/),cdata:ee.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:ee.starting_with(/<!\[/).until_after(/]>/),processing:ee.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var oe=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=ee.matching(oe).until_after(oe)}};D.prototype=new b,D.prototype._is_comment=function(w){return!1},D.prototype._is_opening=function(w){return w.type===F.TAG_OPEN||w.type===F.CONTROL_FLOW_OPEN},D.prototype._is_closing=function(w,Q){return w.type===F.TAG_CLOSE&&Q&&((w.text===">"||w.text==="/>")&&Q.text[0]==="<"||w.text==="}}"&&Q.text[0]==="{"&&Q.text[1]==="{")||w.type===F.CONTROL_FLOW_CLOSE&&w.text==="}"&&Q.text.endsWith("{")},D.prototype._reset=function(){this._current_tag_name=""},D.prototype._get_next_token=function(w,Q){var re=null;this._readWhitespace();var ee=this._input.peek();return ee===null?this._create_token(F.EOF,""):(re=re||this._read_open_handlebars(ee,Q),re=re||this._read_attribute(ee,w,Q),re=re||this._read_close(ee,Q),re=re||this._read_script_and_style(ee,w),re=re||this._read_control_flows(ee,Q),re=re||this._read_raw_content(ee,w,Q),re=re||this._read_content_word(ee,Q),re=re||this._read_comment_or_cdata(ee),re=re||this._read_processing(ee),re=re||this._read_open(ee,Q),re=re||this._create_token(F.UNKNOWN,this._input.next()),re)},D.prototype._read_comment_or_cdata=function(w){var Q=null,re=null,ee=null;if(w==="<"){var oe=this._input.peek(1);oe==="!"&&(re=this.__patterns.comment.read(),re?(ee=H.get_directives(re),ee&&ee.ignore==="start"&&(re+=H.readIgnored(this._input))):re=this.__patterns.cdata.read()),re&&(Q=this._create_token(F.COMMENT,re),Q.directives=ee)}return Q},D.prototype._read_processing=function(w){var Q=null,re=null,ee=null;if(w==="<"){var oe=this._input.peek(1);(oe==="!"||oe==="?")&&(re=this.__patterns.conditional_comment.read(),re=re||this.__patterns.processing.read()),re&&(Q=this._create_token(F.COMMENT,re),Q.directives=ee)}return Q},D.prototype._read_open=function(w,Q){var re=null,ee=null;return(!Q||Q.type===F.CONTROL_FLOW_OPEN)&&w==="<"&&(re=this._input.next(),this._input.peek()==="/"&&(re+=this._input.next()),re+=this.__patterns.element_name.read(),ee=this._create_token(F.TAG_OPEN,re)),ee},D.prototype._read_open_handlebars=function(w,Q){var re=null,ee=null;return(!Q||Q.type===F.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&w==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(re=this.__patterns.handlebars_comment.read(),re=re||this.__patterns.handlebars.read(),ee=this._create_token(F.COMMENT,re)):(re=this.__patterns.handlebars_open.read(),ee=this._create_token(F.TAG_OPEN,re))),ee},D.prototype._read_control_flows=function(w,Q){var re="",ee=null;if(!this._options.templating.includes("angular"))return ee;if(w==="@"){if(re=this.__patterns.angular_control_flow_start.read(),re==="")return ee;for(var oe=re.endsWith("(")?1:0,ge=0;!(re.endsWith("{")&&oe===ge);){var me=this._input.next();if(me===null)break;me==="("?oe++:me===")"&&ge++,re+=me}ee=this._create_token(F.CONTROL_FLOW_OPEN,re)}else w==="}"&&Q&&Q.type===F.CONTROL_FLOW_OPEN&&(re=this._input.next(),ee=this._create_token(F.CONTROL_FLOW_CLOSE,re));return ee},D.prototype._read_close=function(w,Q){var re=null,ee=null;return Q&&Q.type===F.TAG_OPEN&&(Q.text[0]==="<"&&(w===">"||w==="/"&&this._input.peek(1)===">")?(re=this._input.next(),w==="/"&&(re+=this._input.next()),ee=this._create_token(F.TAG_CLOSE,re)):Q.text[0]==="{"&&w==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),ee=this._create_token(F.TAG_CLOSE,"}}"))),ee},D.prototype._read_attribute=function(w,Q,re){var ee=null,oe="";if(re&&re.text[0]==="<")if(w==="=")ee=this._create_token(F.EQUALS,this._input.next());else if(w==='"'||w==="'"){var ge=this._input.next();w==='"'?ge+=this.__patterns.double_quote.read():ge+=this.__patterns.single_quote.read(),ee=this._create_token(F.VALUE,ge)}else oe=this.__patterns.attribute.read(),oe&&(Q.type===F.EQUALS?ee=this._create_token(F.VALUE,oe):ee=this._create_token(F.ATTRIBUTE,oe));return ee},D.prototype._is_content_unformatted=function(w){return this._options.void_elements.indexOf(w)===-1&&(this._options.content_unformatted.indexOf(w)!==-1||this._options.unformatted.indexOf(w)!==-1)},D.prototype._read_raw_content=function(w,Q,re){var ee="";if(re&&re.text[0]==="{")ee=this.__patterns.handlebars_raw_close.read();else if(Q.type===F.TAG_CLOSE&&Q.opened.text[0]==="<"&&Q.text[0]!=="/"){var oe=Q.opened.text.substr(1).toLowerCase();this._is_content_unformatted(oe)&&(ee=this._input.readUntil(new RegExp("</"+oe+"[\\n\\r\\t ]*?>","ig")))}return ee?this._create_token(F.TEXT,ee):null},D.prototype._read_script_and_style=function(w,Q){if(Q.type===F.TAG_CLOSE&&Q.opened.text[0]==="<"&&Q.text[0]!=="/"){var re=Q.opened.text.substr(1).toLowerCase();if(re==="script"||re==="style"){var ee=this._read_comment_or_cdata(w);if(ee)return ee.type=F.TEXT,ee;var oe=this._input.readUntil(new RegExp("</"+re+"[\\n\\r\\t ]*?>","ig"));if(oe)return this._create_token(F.TEXT,oe)}}return null},D.prototype._read_content_word=function(w,Q){var re="";return this._options.unformatted_content_delimiter&&w===this._options.unformatted_content_delimiter[0]&&(re=this.__patterns.unformatted_content_delimiter.read()),re||(re=Q&&Q.type===F.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),re?this._create_token(F.TEXT,re):null},A.exports.Tokenizer=D,A.exports.TOKEN=F}],ne={};function o(A){var p=ne[A];if(p!==void 0)return p.exports;var E=ne[A]={exports:{}};return _e[A](E,E.exports,o),E.exports}var g=o(18);z=g})();var ae=z;if(1)f=[_,_(58553),_(87804)],ue=function(_e){var ne=_(58553),o=_(87804);return{html_beautify:function(g,A){return ae(g,A,ne.js_beautify,o.css_beautify)}}}.apply(Gt,f),ue!==void 0&&(Pn.exports=ue);else var B,d})()},58553:function(Pn,Gt){var _,f;(function(){var ue;(function(){"use strict";var ae=[function(ne,o,g){var A=g(1).Beautifier,p=g(5).Options;function E(b,I){var j=new A(b,I);return j.beautify()}ne.exports=E,ne.exports.defaultOptions=function(){return new p}},function(ne,o,g){var A=g(2).Output,p=g(3).Token,E=g(4),b=g(5).Options,I=g(7).Tokenizer,j=g(7).line_starters,$=g(7).positionable_operators,le=g(7).TOKEN;function F(v,O){return O.indexOf(v)!==-1}function H(v){return v.replace(/^\s+/g,"")}function D(v){for(var O={},pe=0;pe<v.length;pe++)O[v[pe].replace(/-/g,"_")]=v[pe];return O}function w(v,O){return v&&v.type===le.RESERVED&&v.text===O}function Q(v,O){return v&&v.type===le.RESERVED&&F(v.text,O)}var re=["case","return","do","if","throw","else","await","break","continue","async"],ee=["before-newline","after-newline","preserve-newline"],oe=D(ee),ge=[oe.before_newline,oe.preserve_newline],me={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function at(v,O){O.multiline_frame||O.mode===me.ForInitializer||O.mode===me.Conditional||v.remove_indent(O.start_line_index)}function Z(v){v=v.replace(E.allLineBreaks,`
`);for(var O=[],pe=v.indexOf(`
`);pe!==-1;)O.push(v.substring(0,pe)),v=v.substring(pe+1),pe=v.indexOf(`
`);return v.length&&O.push(v),O}function T(v){return v===me.ArrayLiteral}function P(v){return F(v,[me.Expression,me.ForInitializer,me.Conditional])}function G(v,O){for(var pe=0;pe<v.length;pe++){var He=v[pe].trim();if(He.charAt(0)!==O)return!1}return!0}function ie(v,O){for(var pe=0,He=v.length,tt;pe<He;pe++)if(tt=v[pe],tt&&tt.indexOf(O)!==0)return!1;return!0}function X(v,O){O=O||{},this._source_text=v||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new b(O)}X.prototype.create_flags=function(v,O){var pe=0;v&&(pe=v.indentation_level,!this._output.just_added_newline()&&v.line_indent_level>pe&&(pe=v.line_indent_level));var He={mode:O,parent:v,last_token:v?v.last_token:new p(le.START_BLOCK,""),last_word:v?v.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:pe,alignment:0,line_indent_level:v?v.line_indent_level:pe,start_line_index:this._output.get_line_number(),ternary_depth:0};return He},X.prototype._reset=function(v){var O=v.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new A(this._options,O),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(me.BlockStatement);var pe=new I(v,this._options);return this._tokens=pe.tokenize(),v},X.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var v,O=this._reset(this._source_text),pe=this._options.eol;this._options.eol==="auto"&&(pe=`
`,O&&E.lineBreak.test(O||"")&&(pe=O.match(E.lineBreak)[0]));for(var He=this._tokens.next();He;)this.handle_token(He),this._last_last_text=this._flags.last_token.text,this._flags.last_token=He,He=this._tokens.next();return v=this._output.get_code(pe),v},X.prototype.handle_token=function(v,O){v.type===le.START_EXPR?this.handle_start_expr(v):v.type===le.END_EXPR?this.handle_end_expr(v):v.type===le.START_BLOCK?this.handle_start_block(v):v.type===le.END_BLOCK?this.handle_end_block(v):v.type===le.WORD?this.handle_word(v):v.type===le.RESERVED?this.handle_word(v):v.type===le.SEMICOLON?this.handle_semicolon(v):v.type===le.STRING?this.handle_string(v):v.type===le.EQUALS?this.handle_equals(v):v.type===le.OPERATOR?this.handle_operator(v):v.type===le.COMMA?this.handle_comma(v):v.type===le.BLOCK_COMMENT?this.handle_block_comment(v,O):v.type===le.COMMENT?this.handle_comment(v,O):v.type===le.DOT?this.handle_dot(v):v.type===le.EOF?this.handle_eof(v):v.type===le.UNKNOWN?this.handle_unknown(v,O):this.handle_unknown(v,O)},X.prototype.handle_whitespace_and_comments=function(v,O){var pe=v.newlines,He=this._options.keep_array_indentation&&T(this._flags.mode);if(v.comments_before)for(var tt=v.comments_before.next();tt;)this.handle_whitespace_and_comments(tt,O),this.handle_token(tt,O),tt=v.comments_before.next();if(He)for(var Ct=0;Ct<pe;Ct+=1)this.print_newline(Ct>0,O);else if(this._options.max_preserve_newlines&&pe>this._options.max_preserve_newlines&&(pe=this._options.max_preserve_newlines),this._options.preserve_newlines&&pe>1){this.print_newline(!1,O);for(var Rt=1;Rt<pe;Rt+=1)this.print_newline(!0,O)}};var y=["async","break","continue","return","throw","yield"];X.prototype.allow_wrap_or_preserved_newline=function(v,O){if(O=O===void 0?!1:O,!this._output.just_added_newline()){var pe=this._options.preserve_newlines&&v.newlines||O,He=F(this._flags.last_token.text,$)||F(v.text,$);if(He){var tt=F(this._flags.last_token.text,$)&&F(this._options.operator_position,ge)||F(v.text,$);pe=pe&&tt}if(pe)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(Q(this._flags.last_token,y))return;this._output.set_wrap_point()}}},X.prototype.print_newline=function(v,O){if(!O&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==le.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var pe=this._tokens.peek();this._flags.mode===me.Statement&&!(this._flags.if_block&&w(pe,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(v)&&(this._flags.multiline_frame=!0)},X.prototype.print_token_line_indentation=function(v){this._output.just_added_newline()&&(this._options.keep_array_indentation&&v.newlines&&(v.text==="["||T(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(v.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},X.prototype.print_token=function(v){if(this._output.raw){this._output.add_raw_token(v);return}if(this._options.comma_first&&v.previous&&v.previous.type===le.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var O=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(O),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(v),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(v),this._output.non_breaking_space=!0,this._output.add_token(v.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},X.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},X.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},X.prototype.set_mode=function(v){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,v),this._flags=this.create_flags(this._previous_flags,v),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},X.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===me.Statement&&at(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},X.prototype.start_of_object_property=function(){return this._flags.parent.mode===me.ObjectLiteral&&this._flags.mode===me.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||Q(this._flags.last_token,["get","set"]))},X.prototype.start_of_statement=function(v){var O=!1;return O=O||Q(this._flags.last_token,["var","let","const"])&&v.type===le.WORD,O=O||w(this._flags.last_token,"do"),O=O||!(this._flags.parent.mode===me.ObjectLiteral&&this._flags.mode===me.Statement)&&Q(this._flags.last_token,y)&&!v.newlines,O=O||w(this._flags.last_token,"else")&&!(w(v,"if")&&!v.comments_before),O=O||this._flags.last_token.type===le.END_EXPR&&(this._previous_flags.mode===me.ForInitializer||this._previous_flags.mode===me.Conditional),O=O||this._flags.last_token.type===le.WORD&&this._flags.mode===me.BlockStatement&&!this._flags.in_case&&!(v.text==="--"||v.text==="++")&&this._last_last_text!=="function"&&v.type!==le.WORD&&v.type!==le.RESERVED,O=O||this._flags.mode===me.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||Q(this._flags.last_token,["get","set"])),O?(this.set_mode(me.Statement),this.indent(),this.handle_whitespace_and_comments(v,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v,Q(v,["do","for","if","while"])),!0):!1},X.prototype.handle_start_expr=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v);var O=me.Expression;if(v.text==="["){if(this._flags.last_token.type===le.WORD||this._flags.last_token.text===")"){Q(this._flags.last_token,j)&&(this._output.space_before_token=!0),this.print_token(v),this.set_mode(O),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}O=me.ArrayLiteral,T(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),F(this._flags.last_token.type,[le.START_EXPR,le.END_EXPR,le.WORD,le.OPERATOR,le.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===le.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,O=me.ForInitializer):F(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,O=me.Conditional):F(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&v.whitespace_before===""?this._output.space_before_token=!1:(F(this._flags.last_token.text,j)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===le.EQUALS||this._flags.last_token.type===le.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v);else if(this._flags.last_token.type===le.WORD){this._output.space_before_token=!1;var pe=this._tokens.peek(-3);if(this._options.space_after_named_function&&pe){var He=this._tokens.peek(-4);Q(pe,["async","function"])||pe.text==="*"&&Q(He,["async","function"])?this._output.space_before_token=!0:this._flags.mode===me.ObjectLiteral?(pe.text==="{"||pe.text===","||pe.text==="*"&&(He.text==="{"||He.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(v);(this._flags.last_token.type===le.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(F(this._last_last_text,["function","yield"])||this._flags.mode===me.ObjectLiteral&&F(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===le.START_BLOCK?this.print_newline():(this._flags.last_token.type===le.END_EXPR||this._flags.last_token.type===le.START_EXPR||this._flags.last_token.type===le.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===le.COMMA)&&this.allow_wrap_or_preserved_newline(v,v.newlines),this.print_token(v),this.set_mode(O),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},X.prototype.handle_end_expr=function(v){for(;this._flags.mode===me.Statement;)this.restore_mode();this.handle_whitespace_and_comments(v),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(v,v.text==="]"&&T(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===le.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(v),this.restore_mode(),at(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===me.Conditional&&(this._previous_flags.mode=me.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},X.prototype.handle_start_block=function(v){this.handle_whitespace_and_comments(v);var O=this._tokens.peek(),pe=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===le.END_EXPR?(this.set_mode(me.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(me.BlockStatement):pe&&(F(pe.text,[":",","])&&F(O.type,[le.STRING,le.WORD,le.RESERVED])||F(O.text,["get","set","..."])&&F(pe.type,[le.WORD,le.RESERVED]))?F(this._last_last_text,["class","interface"])&&!F(pe.text,[":",","])?this.set_mode(me.BlockStatement):this.set_mode(me.ObjectLiteral):this._flags.last_token.type===le.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(me.BlockStatement):F(this._flags.last_token.type,[le.EQUALS,le.START_EXPR,le.COMMA,le.OPERATOR])||Q(this._flags.last_token,["return","throw","import","default"])?this.set_mode(me.ObjectLiteral):this.set_mode(me.BlockStatement),this._flags.last_token&&Q(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var He=!O.comments_before&&O.text==="}",tt=He&&this._flags.last_word==="function"&&this._flags.last_token.type===le.END_EXPR;if(this._options.brace_preserve_inline){var Ct=0,Rt=null;this._flags.inline_frame=!0;do if(Ct+=1,Rt=this._tokens.peek(Ct-1),Rt.newlines){this._flags.inline_frame=!1;break}while(Rt.type!==le.EOF&&!(Rt.type===le.END_BLOCK&&Rt.opened===v))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&v.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==le.OPERATOR&&(tt||this._flags.last_token.type===le.EQUALS||Q(this._flags.last_token,re)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(T(this._previous_flags.mode)&&(this._flags.last_token.type===le.START_EXPR||this._flags.last_token.type===le.COMMA)&&((this._flags.last_token.type===le.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===le.COMMA||this._flags.last_token.type===le.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(v),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==le.OPERATOR&&this._flags.last_token.type!==le.START_EXPR&&(F(this._flags.last_token.type,[le.START_BLOCK,le.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(v),this.indent(),!He&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},X.prototype.handle_end_block=function(v){for(this.handle_whitespace_and_comments(v);this._flags.mode===me.Statement;)this.restore_mode();var O=this._flags.last_token.type===le.START_BLOCK;this._flags.inline_frame&&!O?this._output.space_before_token=!0:this._options.brace_style==="expand"?O||this.print_newline():O||(T(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(v)},X.prototype.handle_word=function(v){if(v.type===le.RESERVED){if(F(v.text,["set","get"])&&this._flags.mode!==me.ObjectLiteral)v.type=le.WORD;else if(v.text==="import"&&F(this._tokens.peek().text,["(","."]))v.type=le.WORD;else if(F(v.text,["as","from"])&&!this._flags.import_block)v.type=le.WORD;else if(this._flags.mode===me.ObjectLiteral){var O=this._tokens.peek();O.text===":"&&(v.type=le.WORD)}}if(this.start_of_statement(v)?Q(this._flags.last_token,["var","let","const"])&&v.type===le.WORD&&(this._flags.declaration_statement=!0):v.newlines&&!P(this._flags.mode)&&(this._flags.last_token.type!==le.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==le.EQUALS&&(this._options.preserve_newlines||!Q(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(v),this.print_newline()):this.handle_whitespace_and_comments(v),this._flags.do_block&&!this._flags.do_while)if(w(v,"while")){this._output.space_before_token=!0,this.print_token(v),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&w(v,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===me.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&Q(v,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(v),this._flags.in_case=!0;return}if((this._flags.last_token.type===le.COMMA||this._flags.last_token.type===le.START_EXPR||this._flags.last_token.type===le.EQUALS||this._flags.last_token.type===le.OPERATOR)&&!this.start_of_object_property()&&!(F(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===me.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(v),w(v,"function")){(F(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(F(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===le.OPERATOR))&&!this._output.just_added_blankline()&&!v.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===le.RESERVED||this._flags.last_token.type===le.WORD?Q(this._flags.last_token,["get","set","new","export"])||Q(this._flags.last_token,y)?this._output.space_before_token=!0:w(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===le.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(P(this._flags.mode)||T(this._flags.mode))||this.print_newline(),this.print_token(v),this._flags.last_word=v.text;return}var pe="NONE";if(this._flags.last_token.type===le.END_BLOCK?this._previous_flags.inline_frame?pe="SPACE":Q(v,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&v.newlines?pe="NEWLINE":(pe="SPACE",this._output.space_before_token=!0):pe="NEWLINE":this._flags.last_token.type===le.SEMICOLON&&this._flags.mode===me.BlockStatement?pe="NEWLINE":this._flags.last_token.type===le.SEMICOLON&&P(this._flags.mode)?pe="SPACE":this._flags.last_token.type===le.STRING?pe="NEWLINE":this._flags.last_token.type===le.RESERVED||this._flags.last_token.type===le.WORD||this._flags.last_token.text==="*"&&(F(this._last_last_text,["function","yield"])||this._flags.mode===me.ObjectLiteral&&F(this._last_last_text,["{",","]))?pe="SPACE":this._flags.last_token.type===le.START_BLOCK?this._flags.inline_frame?pe="SPACE":pe="NEWLINE":this._flags.last_token.type===le.END_EXPR&&(this._output.space_before_token=!0,pe="NEWLINE"),Q(v,j)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?pe="SPACE":pe="NEWLINE"),Q(v,["else","catch","finally"]))if((!(this._flags.last_token.type===le.END_BLOCK&&this._previous_flags.mode===me.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&v.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var He=this._output.current_line;He.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else pe==="NEWLINE"?Q(this._flags.last_token,re)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&Q(v,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==le.END_EXPR?(this._flags.last_token.type!==le.START_EXPR||!Q(v,["var","let","const"]))&&this._flags.last_token.text!==":"&&(w(v,"if")&&w(v.previous,"else")?this._output.space_before_token=!0:this.print_newline()):Q(v,j)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&T(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():pe==="SPACE"&&(this._output.space_before_token=!0);v.previous&&(v.previous.type===le.WORD||v.previous.type===le.RESERVED)&&(this._output.space_before_token=!0),this.print_token(v),this._flags.last_word=v.text,v.type===le.RESERVED&&(v.text==="do"?this._flags.do_block=!0:v.text==="if"?this._flags.if_block=!0:v.text==="import"?this._flags.import_block=!0:this._flags.import_block&&w(v,"from")&&(this._flags.import_block=!1))},X.prototype.handle_semicolon=function(v){this.start_of_statement(v)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(v);for(var O=this._tokens.peek();this._flags.mode===me.Statement&&!(this._flags.if_block&&w(O,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(v)},X.prototype.handle_string=function(v){v.text.startsWith("`")&&v.newlines===0&&v.whitespace_before===""&&(v.previous.text===")"||this._flags.last_token.type===le.WORD)||(this.start_of_statement(v)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(v),this._flags.last_token.type===le.RESERVED||this._flags.last_token.type===le.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===le.COMMA||this._flags.last_token.type===le.START_EXPR||this._flags.last_token.type===le.EQUALS||this._flags.last_token.type===le.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(v):v.text.startsWith("`")&&this._flags.last_token.type===le.END_EXPR&&(v.previous.text==="]"||v.previous.text===")")&&v.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(v)},X.prototype.handle_equals=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(v),this._output.space_before_token=!0},X.prototype.handle_comma=function(v){this.handle_whitespace_and_comments(v,!0),this.print_token(v),this._output.space_before_token=!0,this._flags.declaration_statement?(P(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(v)):this._flags.mode===me.ObjectLiteral||this._flags.mode===me.Statement&&this._flags.parent.mode===me.ObjectLiteral?(this._flags.mode===me.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(v)},X.prototype.handle_operator=function(v){var O=v.text==="*"&&(Q(this._flags.last_token,["function","yield"])||F(this._flags.last_token.type,[le.START_BLOCK,le.COMMA,le.END_BLOCK,le.SEMICOLON])),pe=F(v.text,["-","+"])&&(F(this._flags.last_token.type,[le.START_BLOCK,le.START_EXPR,le.EQUALS,le.OPERATOR])||F(this._flags.last_token.text,j)||this._flags.last_token.text===",");if(!this.start_of_statement(v)){var He=!O;this.handle_whitespace_and_comments(v,He)}if(v.text==="*"&&this._flags.last_token.type===le.DOT){this.print_token(v);return}if(v.text==="::"){this.print_token(v);return}if(F(v.text,["-","+"])&&this.start_of_object_property()){this.print_token(v);return}if(this._flags.last_token.type===le.OPERATOR&&F(this._options.operator_position,ge)&&this.allow_wrap_or_preserved_newline(v),v.text===":"&&this._flags.in_case){this.print_token(v),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==le.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var tt=!0,Ct=!0,Rt=!1;if(v.text===":"?this._flags.ternary_depth===0?tt=!1:(this._flags.ternary_depth-=1,Rt=!0):v.text==="?"&&(this._flags.ternary_depth+=1),!pe&&!O&&this._options.preserve_newlines&&F(v.text,$)){var Ft=v.text===":",Ht=Ft&&Rt,Ke=Ft&&!Rt;switch(this._options.operator_position){case oe.before_newline:this._output.space_before_token=!Ke,this.print_token(v),(!Ft||Ht)&&this.allow_wrap_or_preserved_newline(v),this._output.space_before_token=!0;return;case oe.after_newline:this._output.space_before_token=!0,!Ft||Ht?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(v):this._output.space_before_token=!1,this.print_token(v),this._output.space_before_token=!0;return;case oe.preserve_newline:Ke||this.allow_wrap_or_preserved_newline(v),tt=!(this._output.just_added_newline()||Ke),this._output.space_before_token=tt,this.print_token(v),this._output.space_before_token=!0;return}}if(O){this.allow_wrap_or_preserved_newline(v),tt=!1;var qt=this._tokens.peek();Ct=qt&&F(qt.type,[le.WORD,le.RESERVED])}else if(v.text==="...")this.allow_wrap_or_preserved_newline(v),tt=this._flags.last_token.type===le.START_BLOCK,Ct=!1;else if(F(v.text,["--","++","!","~"])||pe){if((this._flags.last_token.type===le.COMMA||this._flags.last_token.type===le.START_EXPR)&&this.allow_wrap_or_preserved_newline(v),tt=!1,Ct=!1,v.newlines&&(v.text==="--"||v.text==="++"||v.text==="~")){var Dt=Q(this._flags.last_token,re)&&v.newlines;Dt&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(Dt,!0)}this._flags.last_token.text===";"&&P(this._flags.mode)&&(tt=!0),this._flags.last_token.type===le.RESERVED?tt=!0:this._flags.last_token.type===le.END_EXPR?tt=!(this._flags.last_token.text==="]"&&(v.text==="--"||v.text==="++")):this._flags.last_token.type===le.OPERATOR&&(tt=F(v.text,["--","-","++","+"])&&F(this._flags.last_token.text,["--","-","++","+"]),F(v.text,["+","-"])&&F(this._flags.last_token.text,["--","++"])&&(Ct=!0)),(this._flags.mode===me.BlockStatement&&!this._flags.inline_frame||this._flags.mode===me.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||tt,this.print_token(v),this._output.space_before_token=Ct},X.prototype.handle_block_comment=function(v,O){if(this._output.raw){this._output.add_raw_token(v),v.directives&&v.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(v.directives){this.print_newline(!1,O),this.print_token(v),v.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!E.newline.test(v.text)&&!v.newlines){this._output.space_before_token=!0,this.print_token(v),this._output.space_before_token=!0;return}else this.print_block_commment(v,O)},X.prototype.print_block_commment=function(v,O){var pe=Z(v.text),He,tt=!1,Ct=!1,Rt=v.whitespace_before,Ft=Rt.length;if(this.print_newline(!1,O),this.print_token_line_indentation(v),this._output.add_token(pe[0]),this.print_newline(!1,O),pe.length>1){for(pe=pe.slice(1),tt=G(pe,"*"),Ct=ie(pe,Rt),tt&&(this._flags.alignment=1),He=0;He<pe.length;He++)tt?(this.print_token_line_indentation(v),this._output.add_token(H(pe[He]))):Ct&&pe[He]?(this.print_token_line_indentation(v),this._output.add_token(pe[He].substring(Ft))):(this._output.current_line.set_indent(-1),this._output.add_token(pe[He])),this.print_newline(!1,O);this._flags.alignment=0}},X.prototype.handle_comment=function(v,O){v.newlines?this.print_newline(!1,O):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(v),this.print_newline(!1,O)},X.prototype.handle_dot=function(v){this.start_of_statement(v)||this.handle_whitespace_and_comments(v,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),Q(this._flags.last_token,re)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(v,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(v)},X.prototype.handle_unknown=function(v,O){this.print_token(v),v.text[v.text.length-1]===`
`&&this.print_newline(!1,O)},X.prototype.handle_eof=function(v){for(;this._flags.mode===me.Statement;)this.restore_mode();this.handle_whitespace_and_comments(v)},ne.exports.Beautifier=X},function(ne){function o(p){this.__parent=p,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}o.prototype.clone_empty=function(){var p=new o(this.__parent);return p.set_indent(this.__indent_count,this.__alignment_count),p},o.prototype.item=function(p){return p<0?this.__items[this.__items.length+p]:this.__items[p]},o.prototype.has_match=function(p){for(var E=this.__items.length-1;E>=0;E--)if(this.__items[E].match(p))return!0;return!1},o.prototype.set_indent=function(p,E){this.is_empty()&&(this.__indent_count=p||0,this.__alignment_count=E||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},o.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},o.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},o.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var p=this.__parent.current_line;return p.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),p.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),p.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,p.__items[0]===" "&&(p.__items.splice(0,1),p.__character_count-=1),!0}return!1},o.prototype.is_empty=function(){return this.__items.length===0},o.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},o.prototype.push=function(p){this.__items.push(p);var E=p.lastIndexOf(`
`);E!==-1?this.__character_count=p.length-E:this.__character_count+=p.length},o.prototype.pop=function(){var p=null;return this.is_empty()||(p=this.__items.pop(),this.__character_count-=p.length),p},o.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},o.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},o.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},o.prototype.toString=function(){var p="";return this.is_empty()?this.__parent.indent_empty_lines&&(p=this.__parent.get_indent_string(this.__indent_count)):(p=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),p+=this.__items.join("")),p};function g(p,E){this.__cache=[""],this.__indent_size=p.indent_size,this.__indent_string=p.indent_char,p.indent_with_tabs||(this.__indent_string=new Array(p.indent_size+1).join(p.indent_char)),E=E||"",p.indent_level>0&&(E=new Array(p.indent_level+1).join(this.__indent_string)),this.__base_string=E,this.__base_string_length=E.length}g.prototype.get_indent_size=function(p,E){var b=this.__base_string_length;return E=E||0,p<0&&(b=0),b+=p*this.__indent_size,b+=E,b},g.prototype.get_indent_string=function(p,E){var b=this.__base_string;return E=E||0,p<0&&(p=0,b=""),E+=p*this.__indent_size,this.__ensure_cache(E),b+=this.__cache[E],b},g.prototype.__ensure_cache=function(p){for(;p>=this.__cache.length;)this.__add_column()},g.prototype.__add_column=function(){var p=this.__cache.length,E=0,b="";this.__indent_size&&p>=this.__indent_size&&(E=Math.floor(p/this.__indent_size),p-=E*this.__indent_size,b=new Array(E+1).join(this.__indent_string)),p&&(b+=new Array(p+1).join(" ")),this.__cache.push(b)};function A(p,E){this.__indent_cache=new g(p,E),this.raw=!1,this._end_with_newline=p.end_with_newline,this.indent_size=p.indent_size,this.wrap_line_length=p.wrap_line_length,this.indent_empty_lines=p.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new o(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}A.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},A.prototype.get_line_number=function(){return this.__lines.length},A.prototype.get_indent_string=function(p,E){return this.__indent_cache.get_indent_string(p,E)},A.prototype.get_indent_size=function(p,E){return this.__indent_cache.get_indent_size(p,E)},A.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},A.prototype.add_new_line=function(p){return this.is_empty()||!p&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},A.prototype.get_code=function(p){this.trim(!0);var E=this.current_line.pop();E&&(E[E.length-1]===`
`&&(E=E.replace(/\n+$/g,"")),this.current_line.push(E)),this._end_with_newline&&this.__add_outputline();var b=this.__lines.join(`
`);return p!==`
`&&(b=b.replace(/[\n]/g,p)),b},A.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},A.prototype.set_indent=function(p,E){return p=p||0,E=E||0,this.next_line.set_indent(p,E),this.__lines.length>1?(this.current_line.set_indent(p,E),!0):(this.current_line.set_indent(),!1)},A.prototype.add_raw_token=function(p){for(var E=0;E<p.newlines;E++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(p.whitespace_before),this.current_line.push(p.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},A.prototype.add_token=function(p){this.__add_space_before_token(),this.current_line.push(p),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},A.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},A.prototype.remove_indent=function(p){for(var E=this.__lines.length;p<E;)this.__lines[p]._remove_indent(),p++;this.current_line._remove_wrap_indent()},A.prototype.trim=function(p){for(p=p===void 0?!1:p,this.current_line.trim();p&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},A.prototype.just_added_newline=function(){return this.current_line.is_empty()},A.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},A.prototype.ensure_empty_line_above=function(p,E){for(var b=this.__lines.length-2;b>=0;){var I=this.__lines[b];if(I.is_empty())break;if(I.item(0).indexOf(p)!==0&&I.item(-1)!==E){this.__lines.splice(b+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}b--}},ne.exports.Output=A},function(ne){function o(g,A,p,E){this.type=g,this.text=A,this.comments_before=null,this.newlines=p||0,this.whitespace_before=E||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}ne.exports.Token=o},function(ne,o){var g="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",A="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",p="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",E="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",b="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",I="(?:"+b+"|["+g+p+"])",j="(?:"+b+"|["+A+p+E+"])*";o.identifier=new RegExp(I+j,"g"),o.identifierStart=new RegExp(I),o.identifierMatch=new RegExp("(?:"+b+"|["+A+p+E+"])+");var $=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;o.newline=/[\n\r\u2028\u2029]/,o.lineBreak=new RegExp(`\r
|`+o.newline.source),o.allLineBreaks=new RegExp(o.lineBreak.source,"g")},function(ne,o,g){var A=g(6).Options,p=["before-newline","after-newline","preserve-newline"];function E(b){A.call(this,b,"js");var I=this.raw_options.brace_style||null;I==="expand-strict"?this.raw_options.brace_style="expand":I==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var j=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var $=0;$<j.length;$++)j[$]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=j[$];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",p),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}E.prototype=new A,ne.exports.Options=E},function(ne){function o(p,E){this.raw_options=g(p,E),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}o.prototype._get_array=function(p,E){var b=this.raw_options[p],I=E||[];return typeof b=="object"?b!==null&&typeof b.concat=="function"&&(I=b.concat()):typeof b=="string"&&(I=b.split(/[^a-zA-Z0-9_\/\-]+/)),I},o.prototype._get_boolean=function(p,E){var b=this.raw_options[p],I=b===void 0?!!E:!!b;return I},o.prototype._get_characters=function(p,E){var b=this.raw_options[p],I=E||"";return typeof b=="string"&&(I=b.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),I},o.prototype._get_number=function(p,E){var b=this.raw_options[p];E=parseInt(E,10),isNaN(E)&&(E=0);var I=parseInt(b,10);return isNaN(I)&&(I=E),I},o.prototype._get_selection=function(p,E,b){var I=this._get_selection_list(p,E,b);if(I.length!==1)throw new Error("Invalid Option Value: The option '"+p+`' can only be one of the following values:
`+E+`
You passed in: '`+this.raw_options[p]+"'");return I[0]},o.prototype._get_selection_list=function(p,E,b){if(!E||E.length===0)throw new Error("Selection list cannot be empty.");if(b=b||[E[0]],!this._is_valid_selection(b,E))throw new Error("Invalid Default Value!");var I=this._get_array(p,b);if(!this._is_valid_selection(I,E))throw new Error("Invalid Option Value: The option '"+p+`' can contain only the following values:
`+E+`
You passed in: '`+this.raw_options[p]+"'");return I},o.prototype._is_valid_selection=function(p,E){return p.length&&E.length&&!p.some(function(b){return E.indexOf(b)===-1})};function g(p,E){var b={};p=A(p);var I;for(I in p)I!==E&&(b[I]=p[I]);if(E&&p[E])for(I in p[E])b[I]=p[E][I];return b}function A(p){var E={},b;for(b in p){var I=b.replace(/-/g,"_");E[I]=p[b]}return E}ne.exports.Options=o,ne.exports.normalizeOpts=A,ne.exports.mergeOpts=g},function(ne,o,g){var A=g(8).InputScanner,p=g(9).Tokenizer,E=g(9).TOKEN,b=g(13).Directives,I=g(4),j=g(12).Pattern,$=g(14).TemplatablePattern;function le(G,ie){return ie.indexOf(G)!==-1}var F={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:E.START,RAW:E.RAW,EOF:E.EOF},H=new b(/\/\*/,/\*\//),D=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,w=/[0-9]/,Q=/[^\d\.]/,re=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),ee=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";ee=ee.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),ee="\\?\\.(?!\\d) "+ee,ee=ee.replace(/ /g,"|");var oe=new RegExp(ee),ge="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),me=ge.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),at=new RegExp("^(?:"+me.join("|")+")$"),Z,T=function(G,ie){p.call(this,G,ie),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var X=new j(this._input),y=new $(this._input).read_options(this._options);this.__patterns={template:y,identifier:y.starting_with(I.identifier).matching(I.identifierMatch),number:X.matching(D),punct:X.matching(oe),comment:X.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:X.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:X.matching(/<!--/),html_comment_end:X.matching(/-->/),include:X.starting_with(/#include/).until_after(I.lineBreak),shebang:X.starting_with(/#!/).until_after(I.lineBreak),xml:X.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:y.until(/['\\\n\r\u2028\u2029]/),double_quote:y.until(/["\\\n\r\u2028\u2029]/),template_text:y.until(/[`\\$]/),template_expression:y.until(/[`}\\]/)}};T.prototype=new p,T.prototype._is_comment=function(G){return G.type===F.COMMENT||G.type===F.BLOCK_COMMENT||G.type===F.UNKNOWN},T.prototype._is_opening=function(G){return G.type===F.START_BLOCK||G.type===F.START_EXPR},T.prototype._is_closing=function(G,ie){return(G.type===F.END_BLOCK||G.type===F.END_EXPR)&&ie&&(G.text==="]"&&ie.text==="["||G.text===")"&&ie.text==="("||G.text==="}"&&ie.text==="{")},T.prototype._reset=function(){Z=!1},T.prototype._get_next_token=function(G,ie){var X=null;this._readWhitespace();var y=this._input.peek();return y===null?this._create_token(F.EOF,""):(X=X||this._read_non_javascript(y),X=X||this._read_string(y),X=X||this._read_pair(y,this._input.peek(1)),X=X||this._read_word(G),X=X||this._read_singles(y),X=X||this._read_comment(y),X=X||this._read_regexp(y,G),X=X||this._read_xml(y,G),X=X||this._read_punctuation(),X=X||this._create_token(F.UNKNOWN,this._input.next()),X)},T.prototype._read_word=function(G){var ie;if(ie=this.__patterns.identifier.read(),ie!=="")return ie=ie.replace(I.allLineBreaks,`
`),!(G.type===F.DOT||G.type===F.RESERVED&&(G.text==="set"||G.text==="get"))&&at.test(ie)?(ie==="in"||ie==="of")&&(G.type===F.WORD||G.type===F.STRING)?this._create_token(F.OPERATOR,ie):this._create_token(F.RESERVED,ie):this._create_token(F.WORD,ie);if(ie=this.__patterns.number.read(),ie!=="")return this._create_token(F.WORD,ie)},T.prototype._read_singles=function(G){var ie=null;return G==="("||G==="["?ie=this._create_token(F.START_EXPR,G):G===")"||G==="]"?ie=this._create_token(F.END_EXPR,G):G==="{"?ie=this._create_token(F.START_BLOCK,G):G==="}"?ie=this._create_token(F.END_BLOCK,G):G===";"?ie=this._create_token(F.SEMICOLON,G):G==="."&&Q.test(this._input.peek(1))?ie=this._create_token(F.DOT,G):G===","&&(ie=this._create_token(F.COMMA,G)),ie&&this._input.next(),ie},T.prototype._read_pair=function(G,ie){var X=null;return G==="#"&&ie==="{"&&(X=this._create_token(F.START_BLOCK,G+ie)),X&&(this._input.next(),this._input.next()),X},T.prototype._read_punctuation=function(){var G=this.__patterns.punct.read();if(G!=="")return G==="="?this._create_token(F.EQUALS,G):G==="?."?this._create_token(F.DOT,G):this._create_token(F.OPERATOR,G)},T.prototype._read_non_javascript=function(G){var ie="";if(G==="#"){if(this._is_first_token()&&(ie=this.__patterns.shebang.read(),ie))return this._create_token(F.UNKNOWN,ie.trim()+`
`);if(ie=this.__patterns.include.read(),ie)return this._create_token(F.UNKNOWN,ie.trim()+`
`);G=this._input.next();var X="#";if(this._input.hasNext()&&this._input.testChar(w)){do G=this._input.next(),X+=G;while(this._input.hasNext()&&G!=="#"&&G!=="=");return G==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(X+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(X+="{}",this._input.next(),this._input.next())),this._create_token(F.WORD,X)}this._input.back()}else if(G==="<"&&this._is_first_token()){if(ie=this.__patterns.html_comment_start.read(),ie){for(;this._input.hasNext()&&!this._input.testChar(I.newline);)ie+=this._input.next();return Z=!0,this._create_token(F.COMMENT,ie)}}else if(Z&&G==="-"&&(ie=this.__patterns.html_comment_end.read(),ie))return Z=!1,this._create_token(F.COMMENT,ie);return null},T.prototype._read_comment=function(G){var ie=null;if(G==="/"){var X="";if(this._input.peek(1)==="*"){X=this.__patterns.block_comment.read();var y=H.get_directives(X);y&&y.ignore==="start"&&(X+=H.readIgnored(this._input)),X=X.replace(I.allLineBreaks,`
`),ie=this._create_token(F.BLOCK_COMMENT,X),ie.directives=y}else this._input.peek(1)==="/"&&(X=this.__patterns.comment.read(),ie=this._create_token(F.COMMENT,X))}return ie},T.prototype._read_string=function(G){if(G==="`"||G==="'"||G==='"'){var ie=this._input.next();return this.has_char_escapes=!1,G==="`"?ie+=this._read_string_recursive("`",!0,"${"):ie+=this._read_string_recursive(G),this.has_char_escapes&&this._options.unescape_strings&&(ie=P(ie)),this._input.peek()===G&&(ie+=this._input.next()),ie=ie.replace(I.allLineBreaks,`
`),this._create_token(F.STRING,ie)}return null},T.prototype._allow_regexp_or_xml=function(G){return G.type===F.RESERVED&&le(G.text,["return","case","throw","else","do","typeof","yield"])||G.type===F.END_EXPR&&G.text===")"&&G.opened.previous.type===F.RESERVED&&le(G.opened.previous.text,["if","while","for"])||le(G.type,[F.COMMENT,F.START_EXPR,F.START_BLOCK,F.START,F.END_BLOCK,F.OPERATOR,F.EQUALS,F.EOF,F.SEMICOLON,F.COMMA])},T.prototype._read_regexp=function(G,ie){if(G==="/"&&this._allow_regexp_or_xml(ie)){for(var X=this._input.next(),y=!1,v=!1;this._input.hasNext()&&(y||v||this._input.peek()!==G)&&!this._input.testChar(I.newline);)X+=this._input.peek(),y?y=!1:(y=this._input.peek()==="\\",this._input.peek()==="["?v=!0:this._input.peek()==="]"&&(v=!1)),this._input.next();return this._input.peek()===G&&(X+=this._input.next(),X+=this._input.read(I.identifier)),this._create_token(F.STRING,X)}return null},T.prototype._read_xml=function(G,ie){if(this._options.e4x&&G==="<"&&this._allow_regexp_or_xml(ie)){var X="",y=this.__patterns.xml.read_match();if(y){for(var v=y[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),O=v.indexOf("{")===0,pe=0;y;){var He=!!y[1],tt=y[2],Ct=!!y[y.length-1]||tt.slice(0,8)==="![CDATA[";if(!Ct&&(tt===v||O&&tt.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(He?--pe:++pe),X+=y[0],pe<=0)break;y=this.__patterns.xml.read_match()}return y||(X+=this._input.match(/[\s\S]*/g)[0]),X=X.replace(I.allLineBreaks,`
`),this._create_token(F.STRING,X)}}return null};function P(G){for(var ie="",X=0,y=new A(G),v=null;y.hasNext();)if(v=y.match(/([\s]|[^\\]|\\\\)+/g),v&&(ie+=v[0]),y.peek()==="\\"){if(y.next(),y.peek()==="x")v=y.match(/x([0-9A-Fa-f]{2})/g);else if(y.peek()==="u")v=y.match(/u([0-9A-Fa-f]{4})/g),v||(v=y.match(/u\{([0-9A-Fa-f]+)\}/g));else{ie+="\\",y.hasNext()&&(ie+=y.next());continue}if(!v||(X=parseInt(v[1],16),X>126&&X<=255&&v[0].indexOf("x")===0))return G;X>=0&&X<32||X>1114111?ie+="\\"+v[0]:X===34||X===39||X===92?ie+="\\"+String.fromCharCode(X):ie+=String.fromCharCode(X)}return ie}T.prototype._read_string_recursive=function(G,ie,X){var y,v;G==="'"?v=this.__patterns.single_quote:G==='"'?v=this.__patterns.double_quote:G==="`"?v=this.__patterns.template_text:G==="}"&&(v=this.__patterns.template_expression);for(var O=v.read(),pe="";this._input.hasNext();){if(pe=this._input.next(),pe===G||!ie&&I.newline.test(pe)){this._input.back();break}else pe==="\\"&&this._input.hasNext()?(y=this._input.peek(),y==="x"||y==="u"?this.has_char_escapes=!0:y==="\r"&&this._input.peek(1)===`
`&&this._input.next(),pe+=this._input.next()):X&&(X==="${"&&pe==="$"&&this._input.peek()==="{"&&(pe+=this._input.next()),X===pe&&(G==="`"?pe+=this._read_string_recursive("}",ie,"`"):pe+=this._read_string_recursive("`",ie,"${"),this._input.hasNext()&&(pe+=this._input.next())));pe+=v.read(),O+=pe}return O},ne.exports.Tokenizer=T,ne.exports.TOKEN=F,ne.exports.positionable_operators=re.slice(),ne.exports.line_starters=ge.slice()},function(ne){var o=RegExp.prototype.hasOwnProperty("sticky");function g(A){this.__input=A||"",this.__input_length=this.__input.length,this.__position=0}g.prototype.restart=function(){this.__position=0},g.prototype.back=function(){this.__position>0&&(this.__position-=1)},g.prototype.hasNext=function(){return this.__position<this.__input_length},g.prototype.next=function(){var A=null;return this.hasNext()&&(A=this.__input.charAt(this.__position),this.__position+=1),A},g.prototype.peek=function(A){var p=null;return A=A||0,A+=this.__position,A>=0&&A<this.__input_length&&(p=this.__input.charAt(A)),p},g.prototype.__match=function(A,p){A.lastIndex=p;var E=A.exec(this.__input);return E&&!(o&&A.sticky)&&E.index!==p&&(E=null),E},g.prototype.test=function(A,p){return p=p||0,p+=this.__position,p>=0&&p<this.__input_length?!!this.__match(A,p):!1},g.prototype.testChar=function(A,p){var E=this.peek(p);return A.lastIndex=0,E!==null&&A.test(E)},g.prototype.match=function(A){var p=this.__match(A,this.__position);return p?this.__position+=p[0].length:p=null,p},g.prototype.read=function(A,p,E){var b="",I;return A&&(I=this.match(A),I&&(b+=I[0])),p&&(I||!A)&&(b+=this.readUntil(p,E)),b},g.prototype.readUntil=function(A,p){var E="",b=this.__position;A.lastIndex=this.__position;var I=A.exec(this.__input);return I?(b=I.index,p&&(b+=I[0].length)):b=this.__input_length,E=this.__input.substring(this.__position,b),this.__position=b,E},g.prototype.readUntilAfter=function(A){return this.readUntil(A,!0)},g.prototype.get_regexp=function(A,p){var E=null,b="g";return p&&o&&(b="y"),typeof A=="string"&&A!==""?E=new RegExp(A,b):A&&(E=new RegExp(A.source,b)),E},g.prototype.get_literal_regexp=function(A){return RegExp(A.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},g.prototype.peekUntilAfter=function(A){var p=this.__position,E=this.readUntilAfter(A);return this.__position=p,E},g.prototype.lookBack=function(A){var p=this.__position-1;return p>=A.length&&this.__input.substring(p-A.length,p).toLowerCase()===A},ne.exports.InputScanner=g},function(ne,o,g){var A=g(8).InputScanner,p=g(3).Token,E=g(10).TokenStream,b=g(11).WhitespacePattern,I={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},j=function($,le){this._input=new A($),this._options=le||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new b(this._input)};j.prototype.tokenize=function(){this._input.restart(),this.__tokens=new E,this._reset();for(var $,le=new p(I.START,""),F=null,H=[],D=new E;le.type!==I.EOF;){for($=this._get_next_token(le,F);this._is_comment($);)D.add($),$=this._get_next_token(le,F);D.isEmpty()||($.comments_before=D,D=new E),$.parent=F,this._is_opening($)?(H.push(F),F=$):F&&this._is_closing($,F)&&($.opened=F,F.closed=$,F=H.pop(),$.parent=F),$.previous=le,le.next=$,this.__tokens.add($),le=$}return this.__tokens},j.prototype._is_first_token=function(){return this.__tokens.isEmpty()},j.prototype._reset=function(){},j.prototype._get_next_token=function($,le){this._readWhitespace();var F=this._input.read(/.+/g);return F?this._create_token(I.RAW,F):this._create_token(I.EOF,"")},j.prototype._is_comment=function($){return!1},j.prototype._is_opening=function($){return!1},j.prototype._is_closing=function($,le){return!1},j.prototype._create_token=function($,le){var F=new p($,le,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return F},j.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},ne.exports.Tokenizer=j,ne.exports.TOKEN=I},function(ne){function o(g){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=g}o.prototype.restart=function(){this.__position=0},o.prototype.isEmpty=function(){return this.__tokens_length===0},o.prototype.hasNext=function(){return this.__position<this.__tokens_length},o.prototype.next=function(){var g=null;return this.hasNext()&&(g=this.__tokens[this.__position],this.__position+=1),g},o.prototype.peek=function(g){var A=null;return g=g||0,g+=this.__position,g>=0&&g<this.__tokens_length&&(A=this.__tokens[g]),A},o.prototype.add=function(g){this.__parent_token&&(g.parent=this.__parent_token),this.__tokens.push(g),this.__tokens_length+=1},ne.exports.TokenStream=o},function(ne,o,g){var A=g(12).Pattern;function p(E,b){A.call(this,E,b),b?this._line_regexp=this._input.get_regexp(b._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}p.prototype=new A,p.prototype.__set_whitespace_patterns=function(E,b){E+="\\t ",b+="\\n\\r",this._match_pattern=this._input.get_regexp("["+E+b+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+b+"]")},p.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var E=this._input.read(this._match_pattern);if(E===" ")this.whitespace_before_token=" ";else if(E){var b=this.__split(this._newline_regexp,E);this.newline_count=b.length-1,this.whitespace_before_token=b[this.newline_count]}return E},p.prototype.matching=function(E,b){var I=this._create();return I.__set_whitespace_patterns(E,b),I._update(),I},p.prototype._create=function(){return new p(this._input,this)},p.prototype.__split=function(E,b){E.lastIndex=0;for(var I=0,j=[],$=E.exec(b);$;)j.push(b.substring(I,$.index)),I=$.index+$[0].length,$=E.exec(b);return I<b.length?j.push(b.substring(I,b.length)):j.push(""),j},ne.exports.WhitespacePattern=p},function(ne){function o(g,A){this._input=g,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,A&&(this._starting_pattern=this._input.get_regexp(A._starting_pattern,!0),this._match_pattern=this._input.get_regexp(A._match_pattern,!0),this._until_pattern=this._input.get_regexp(A._until_pattern),this._until_after=A._until_after)}o.prototype.read=function(){var g=this._input.read(this._starting_pattern);return(!this._starting_pattern||g)&&(g+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),g},o.prototype.read_match=function(){return this._input.match(this._match_pattern)},o.prototype.until_after=function(g){var A=this._create();return A._until_after=!0,A._until_pattern=this._input.get_regexp(g),A._update(),A},o.prototype.until=function(g){var A=this._create();return A._until_after=!1,A._until_pattern=this._input.get_regexp(g),A._update(),A},o.prototype.starting_with=function(g){var A=this._create();return A._starting_pattern=this._input.get_regexp(g,!0),A._update(),A},o.prototype.matching=function(g){var A=this._create();return A._match_pattern=this._input.get_regexp(g,!0),A._update(),A},o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){},ne.exports.Pattern=o},function(ne){function o(g,A){g=typeof g=="string"?g:g.source,A=typeof A=="string"?A:A.source,this.__directives_block_pattern=new RegExp(g+/ beautify( \w+[:]\w+)+ /.source+A,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(g+/\sbeautify\signore:end\s/.source+A,"g")}o.prototype.get_directives=function(g){if(!g.match(this.__directives_block_pattern))return null;var A={};this.__directive_pattern.lastIndex=0;for(var p=this.__directive_pattern.exec(g);p;)A[p[1]]=p[2],p=this.__directive_pattern.exec(g);return A},o.prototype.readIgnored=function(g){return g.readUntilAfter(this.__directives_end_ignore_pattern)},ne.exports.Directives=o},function(ne,o,g){var A=g(12).Pattern,p={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function E(b,I){A.call(this,b,I),this.__template_pattern=null,this._disabled=Object.assign({},p),this._excluded=Object.assign({},p),I&&(this.__template_pattern=this._input.get_regexp(I.__template_pattern),this._excluded=Object.assign(this._excluded,I._excluded),this._disabled=Object.assign(this._disabled,I._disabled));var j=new A(b);this.__patterns={handlebars_comment:j.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:j.starting_with(/{{{/).until_after(/}}}/),handlebars:j.starting_with(/{{/).until_after(/}}/),php:j.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:j.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:j.starting_with(/{%/).until_after(/%}/),django_value:j.starting_with(/{{/).until_after(/}}/),django_comment:j.starting_with(/{#/).until_after(/#}/),smarty:j.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:j.starting_with(/{\*/).until_after(/\*}/),smarty_literal:j.starting_with(/{literal}/).until_after(/{\/literal}/)}}E.prototype=new A,E.prototype._create=function(){return new E(this._input,this)},E.prototype._update=function(){this.__set_templated_pattern()},E.prototype.disable=function(b){var I=this._create();return I._disabled[b]=!0,I._update(),I},E.prototype.read_options=function(b){var I=this._create();for(var j in p)I._disabled[j]=b.templating.indexOf(j)===-1;return I._update(),I},E.prototype.exclude=function(b){var I=this._create();return I._excluded[b]=!0,I._update(),I},E.prototype.read=function(){var b="";this._match_pattern?b=this._input.read(this._starting_pattern):b=this._input.read(this._starting_pattern,this.__template_pattern);for(var I=this._read_template();I;)this._match_pattern?I+=this._input.read(this._match_pattern):I+=this._input.readUntil(this.__template_pattern),b+=I,I=this._read_template();return this._until_after&&(b+=this._input.readUntilAfter(this._until_pattern)),b},E.prototype.__set_templated_pattern=function(){var b=[];this._disabled.php||b.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||b.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||b.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||b.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(b.push(this.__patterns.django._starting_pattern.source),b.push(this.__patterns.django_value._starting_pattern.source),b.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||b.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&b.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+b.join("|")+")")},E.prototype._read_template=function(){var b="",I=this._input.peek();if(I==="<"){var j=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&j==="?"&&(b=b||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&j==="%"&&(b=b||this.__patterns.erb.read())}else I==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(b=b||this.__patterns.handlebars_comment.read(),b=b||this.__patterns.handlebars_unescaped.read(),b=b||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(b=b||this.__patterns.django_value.read()),this._excluded.django||(b=b||this.__patterns.django_comment.read(),b=b||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(b=b||this.__patterns.smarty_comment.read(),b=b||this.__patterns.smarty_literal.read(),b=b||this.__patterns.smarty.read()));return b},ne.exports.TemplatablePattern=E}],B={};function d(ne){var o=B[ne];if(o!==void 0)return o.exports;var g=B[ne]={exports:{}};return ae[ne](g,g.exports,d),g.exports}var _e=d(0);ue=_e})();var z=ue;_=[],f=function(){return{js_beautify:z}}.apply(Gt,_),f!==void 0&&(Pn.exports=f)})()},7861:function(Pn,Gt,_){var f=_(38710),ue=function(B){var d=/[height|width]$/;return d.test(B)},z=function(B){var d="",_e=Object.keys(B);return _e.forEach(function(ne,o){var g=B[ne];ne=f(ne),ue(ne)&&typeof g=="number"&&(g=g+"px"),g===!0?d+=ne:g===!1?d+="not "+ne:d+="("+ne+": "+g+")",o<_e.length-1&&(d+=" and ")}),d},ae=function(B){var d="";return typeof B=="string"?B:B instanceof Array?(B.forEach(function(_e,ne){d+=z(_e),ne<B.length-1&&(d+=", ")}),d):z(B)};Pn.exports=ae},32834:function(Pn){(function(Gt,_){Pn.exports=_()})(this,function(){"use strict";function Gt(se,ve){for(var Ee=0;Ee<ve.length;Ee++){var k=ve[Ee];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(se,k.key,k)}}function _(se,ve,Ee){return ve&&Gt(se.prototype,ve),Ee&&Gt(se,Ee),se}function f(se,ve){if(se){if(typeof se=="string")return ue(se,ve);var Ee=Object.prototype.toString.call(se).slice(8,-1);if(Ee==="Object"&&se.constructor&&(Ee=se.constructor.name),Ee==="Map"||Ee==="Set")return Array.from(se);if(Ee==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ee))return ue(se,ve)}}function ue(se,ve){(ve==null||ve>se.length)&&(ve=se.length);for(var Ee=0,k=new Array(ve);Ee<ve;Ee++)k[Ee]=se[Ee];return k}function z(se,ve){var Ee=typeof Symbol!="undefined"&&se[Symbol.iterator]||se["@@iterator"];if(Ee)return(Ee=Ee.call(se)).next.bind(Ee);if(Array.isArray(se)||(Ee=f(se))||ve&&se&&typeof se.length=="number"){Ee&&(se=Ee);var k=0;return function(){return k>=se.length?{done:!0}:{done:!1,value:se[k++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ae={exports:{}};function B(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function d(se){ae.exports.defaults=se}ae.exports={defaults:B(),getDefaults:B,changeDefaults:d};var _e=/[&<>"']/,ne=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,g=/[<>"']|&(?!#?\w+;)/g,A={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},p=function(ve){return A[ve]};function E(se,ve){if(ve){if(_e.test(se))return se.replace(ne,p)}else if(o.test(se))return se.replace(g,p);return se}var b=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function I(se){return se.replace(b,function(ve,Ee){return Ee=Ee.toLowerCase(),Ee==="colon"?":":Ee.charAt(0)==="#"?Ee.charAt(1)==="x"?String.fromCharCode(parseInt(Ee.substring(2),16)):String.fromCharCode(+Ee.substring(1)):""})}var j=/(^|[^\[])\^/g;function $(se,ve){se=se.source||se,ve=ve||"";var Ee={replace:function(Y,he){return he=he.source||he,he=he.replace(j,"$1"),se=se.replace(Y,he),Ee},getRegex:function(){return new RegExp(se,ve)}};return Ee}var le=/[^\w:]/g,F=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function H(se,ve,Ee){if(se){var k;try{k=decodeURIComponent(I(Ee)).replace(le,"").toLowerCase()}catch(Y){return null}if(k.indexOf("javascript:")===0||k.indexOf("vbscript:")===0||k.indexOf("data:")===0)return null}ve&&!F.test(Ee)&&(Ee=ee(ve,Ee));try{Ee=encodeURI(Ee).replace(/%25/g,"%")}catch(Y){return null}return Ee}var D={},w=/^[^:]+:\/*[^/]*$/,Q=/^([^:]+:)[\s\S]*$/,re=/^([^:]+:\/*[^/]*)[\s\S]*$/;function ee(se,ve){D[" "+se]||(w.test(se)?D[" "+se]=se+"/":D[" "+se]=at(se,"/",!0)),se=D[" "+se];var Ee=se.indexOf(":")===-1;return ve.substring(0,2)==="//"?Ee?ve:se.replace(Q,"$1")+ve:ve.charAt(0)==="/"?Ee?ve:se.replace(re,"$1")+ve:se+ve}var oe={exec:function(){}};function ge(se){for(var ve=1,Ee,k;ve<arguments.length;ve++){Ee=arguments[ve];for(k in Ee)Object.prototype.hasOwnProperty.call(Ee,k)&&(se[k]=Ee[k])}return se}function me(se,ve){var Ee=se.replace(/\|/g,function(he,ce,xe){for(var Be=!1,Xe=ce;--Xe>=0&&xe[Xe]==="\\";)Be=!Be;return Be?"|":" |"}),k=Ee.split(/ \|/),Y=0;if(k.length>ve)k.splice(ve);else for(;k.length<ve;)k.push("");for(;Y<k.length;Y++)k[Y]=k[Y].trim().replace(/\\\|/g,"|");return k}function at(se,ve,Ee){var k=se.length;if(k===0)return"";for(var Y=0;Y<k;){var he=se.charAt(k-Y-1);if(he===ve&&!Ee)Y++;else if(he!==ve&&Ee)Y++;else break}return se.substr(0,k-Y)}function Z(se,ve){if(se.indexOf(ve[1])===-1)return-1;for(var Ee=se.length,k=0,Y=0;Y<Ee;Y++)if(se[Y]==="\\")Y++;else if(se[Y]===ve[0])k++;else if(se[Y]===ve[1]&&(k--,k<0))return Y;return-1}function T(se){se&&se.sanitize&&!se.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function P(se,ve){if(ve<1)return"";for(var Ee="";ve>1;)ve&1&&(Ee+=se),ve>>=1,se+=se;return Ee+se}var G={escape:E,unescape:I,edit:$,cleanUrl:H,resolveUrl:ee,noopTest:oe,merge:ge,splitCells:me,rtrim:at,findClosingBracket:Z,checkSanitizeDeprecation:T,repeatString:P},ie=ae.exports.defaults,X=G.rtrim,y=G.splitCells,v=G.escape,O=G.findClosingBracket;function pe(se,ve,Ee){var k=ve.href,Y=ve.title?v(ve.title):null,he=se[1].replace(/\\([\[\]])/g,"$1");return se[0].charAt(0)!=="!"?{type:"link",raw:Ee,href:k,title:Y,text:he}:{type:"image",raw:Ee,href:k,title:Y,text:v(he)}}function He(se,ve){var Ee=se.match(/^(\s+)(?:```)/);if(Ee===null)return ve;var k=Ee[1];return ve.split(`
`).map(function(Y){var he=Y.match(/^\s+/);if(he===null)return Y;var ce=he[0];return ce.length>=k.length?Y.slice(k.length):Y}).join(`
`)}var tt=function(){function se(Ee){this.options=Ee||ie}var ve=se.prototype;return ve.space=function(k){var Y=this.rules.block.newline.exec(k);if(Y)return Y[0].length>1?{type:"space",raw:Y[0]}:{raw:`
`}},ve.code=function(k){var Y=this.rules.block.code.exec(k);if(Y){var he=Y[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:Y[0],codeBlockStyle:"indented",text:this.options.pedantic?he:X(he,`
`)}}},ve.fences=function(k){var Y=this.rules.block.fences.exec(k);if(Y){var he=Y[0],ce=He(he,Y[3]||"");return{type:"code",raw:he,lang:Y[2]?Y[2].trim():Y[2],text:ce}}},ve.heading=function(k){var Y=this.rules.block.heading.exec(k);if(Y){var he=Y[2].trim();if(/#$/.test(he)){var ce=X(he,"#");(this.options.pedantic||!ce||/ $/.test(ce))&&(he=ce.trim())}return{type:"heading",raw:Y[0],depth:Y[1].length,text:he}}},ve.nptable=function(k){var Y=this.rules.block.nptable.exec(k);if(Y){var he={type:"table",header:y(Y[1].replace(/^ *| *\| *$/g,"")),align:Y[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Y[3]?Y[3].replace(/\n$/,"").split(`
`):[],raw:Y[0]};if(he.header.length===he.align.length){var ce=he.align.length,xe;for(xe=0;xe<ce;xe++)/^ *-+: *$/.test(he.align[xe])?he.align[xe]="right":/^ *:-+: *$/.test(he.align[xe])?he.align[xe]="center":/^ *:-+ *$/.test(he.align[xe])?he.align[xe]="left":he.align[xe]=null;for(ce=he.cells.length,xe=0;xe<ce;xe++)he.cells[xe]=y(he.cells[xe],he.header.length);return he}}},ve.hr=function(k){var Y=this.rules.block.hr.exec(k);if(Y)return{type:"hr",raw:Y[0]}},ve.blockquote=function(k){var Y=this.rules.block.blockquote.exec(k);if(Y){var he=Y[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:Y[0],text:he}}},ve.list=function(k){var Y=this.rules.block.list.exec(k);if(Y){var he=Y[0],ce=Y[2],xe=ce.length>1,Be={type:"list",raw:he,ordered:xe,start:xe?+ce.slice(0,-1):"",loose:!1,items:[]},Xe=Y[0].match(this.rules.block.item),ut=!1,nt,Ue,R,U,S,ze,ke,Pe,Ge,We=Xe.length;R=this.rules.block.listItemStart.exec(Xe[0]);for(var ct=0;ct<We;ct++){if(nt=Xe[ct],he=nt,this.options.pedantic||(Ge=nt.match(new RegExp("\\n\\s*\\n {0,"+(R[0].length-1)+"}\\S")),Ge&&(S=nt.length-Ge.index+Xe.slice(ct+1).join(`
`).length,Be.raw=Be.raw.substring(0,Be.raw.length-S),nt=nt.substring(0,Ge.index),he=nt,We=ct+1)),ct!==We-1){if(U=this.rules.block.listItemStart.exec(Xe[ct+1]),this.options.pedantic?U[1].length>R[1].length:U[1].length>=R[0].length||U[1].length>3){Xe.splice(ct,2,Xe[ct]+(!this.options.pedantic&&U[1].length<R[0].length&&!Xe[ct].match(/\n$/)?"":`
`)+Xe[ct+1]),ct--,We--;continue}else(!this.options.pedantic||this.options.smartLists?U[2][U[2].length-1]!==ce[ce.length-1]:xe===(U[2].length===1))&&(S=Xe.slice(ct+1).join(`
`).length,Be.raw=Be.raw.substring(0,Be.raw.length-S),ct=We-1);R=U}Ue=nt.length,nt=nt.replace(/^ *([*+-]|\d+[.)]) ?/,""),~nt.indexOf(`
`)&&(Ue-=nt.length,nt=this.options.pedantic?nt.replace(/^ {1,4}/gm,""):nt.replace(new RegExp("^ {1,"+Ue+"}","gm"),"")),nt=X(nt,`
`),ct!==We-1&&(he=he+`
`),ze=ut||/\n\n(?!\s*$)/.test(he),ct!==We-1&&(ut=he.slice(-2)===`
`,ze||(ze=ut)),ze&&(Be.loose=!0),this.options.gfm&&(ke=/^\[[ xX]\] /.test(nt),Pe=void 0,ke&&(Pe=nt[1]!==" ",nt=nt.replace(/^\[[ xX]\] +/,""))),Be.items.push({type:"list_item",raw:he,task:ke,checked:Pe,loose:ze,text:nt})}return Be}},ve.html=function(k){var Y=this.rules.block.html.exec(k);if(Y)return{type:this.options.sanitize?"paragraph":"html",raw:Y[0],pre:!this.options.sanitizer&&(Y[1]==="pre"||Y[1]==="script"||Y[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(Y[0]):v(Y[0]):Y[0]}},ve.def=function(k){var Y=this.rules.block.def.exec(k);if(Y){Y[3]&&(Y[3]=Y[3].substring(1,Y[3].length-1));var he=Y[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:he,raw:Y[0],href:Y[2],title:Y[3]}}},ve.table=function(k){var Y=this.rules.block.table.exec(k);if(Y){var he={type:"table",header:y(Y[1].replace(/^ *| *\| *$/g,"")),align:Y[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:Y[3]?Y[3].replace(/\n$/,"").split(`
`):[]};if(he.header.length===he.align.length){he.raw=Y[0];var ce=he.align.length,xe;for(xe=0;xe<ce;xe++)/^ *-+: *$/.test(he.align[xe])?he.align[xe]="right":/^ *:-+: *$/.test(he.align[xe])?he.align[xe]="center":/^ *:-+ *$/.test(he.align[xe])?he.align[xe]="left":he.align[xe]=null;for(ce=he.cells.length,xe=0;xe<ce;xe++)he.cells[xe]=y(he.cells[xe].replace(/^ *\| *| *\| *$/g,""),he.header.length);return he}}},ve.lheading=function(k){var Y=this.rules.block.lheading.exec(k);if(Y)return{type:"heading",raw:Y[0],depth:Y[2].charAt(0)==="="?1:2,text:Y[1]}},ve.paragraph=function(k){var Y=this.rules.block.paragraph.exec(k);if(Y)return{type:"paragraph",raw:Y[0],text:Y[1].charAt(Y[1].length-1)===`
`?Y[1].slice(0,-1):Y[1]}},ve.text=function(k){var Y=this.rules.block.text.exec(k);if(Y)return{type:"text",raw:Y[0],text:Y[0]}},ve.escape=function(k){var Y=this.rules.inline.escape.exec(k);if(Y)return{type:"escape",raw:Y[0],text:v(Y[1])}},ve.tag=function(k,Y,he){var ce=this.rules.inline.tag.exec(k);if(ce)return!Y&&/^<a /i.test(ce[0])?Y=!0:Y&&/^<\/a>/i.test(ce[0])&&(Y=!1),!he&&/^<(pre|code|kbd|script)(\s|>)/i.test(ce[0])?he=!0:he&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ce[0])&&(he=!1),{type:this.options.sanitize?"text":"html",raw:ce[0],inLink:Y,inRawBlock:he,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ce[0]):v(ce[0]):ce[0]}},ve.link=function(k){var Y=this.rules.inline.link.exec(k);if(Y){var he=Y[2].trim();if(!this.options.pedantic&&/^</.test(he)){if(!/>$/.test(he))return;var ce=X(he.slice(0,-1),"\\");if((he.length-ce.length)%2===0)return}else{var xe=O(Y[2],"()");if(xe>-1){var Be=Y[0].indexOf("!")===0?5:4,Xe=Be+Y[1].length+xe;Y[2]=Y[2].substring(0,xe),Y[0]=Y[0].substring(0,Xe).trim(),Y[3]=""}}var ut=Y[2],nt="";if(this.options.pedantic){var Ue=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ut);Ue&&(ut=Ue[1],nt=Ue[3])}else nt=Y[3]?Y[3].slice(1,-1):"";return ut=ut.trim(),/^</.test(ut)&&(this.options.pedantic&&!/>$/.test(he)?ut=ut.slice(1):ut=ut.slice(1,-1)),pe(Y,{href:ut&&ut.replace(this.rules.inline._escapes,"$1"),title:nt&&nt.replace(this.rules.inline._escapes,"$1")},Y[0])}},ve.reflink=function(k,Y){var he;if((he=this.rules.inline.reflink.exec(k))||(he=this.rules.inline.nolink.exec(k))){var ce=(he[2]||he[1]).replace(/\s+/g," ");if(ce=Y[ce.toLowerCase()],!ce||!ce.href){var xe=he[0].charAt(0);return{type:"text",raw:xe,text:xe}}return pe(he,ce,he[0])}},ve.emStrong=function(k,Y,he){he===void 0&&(he="");var ce=this.rules.inline.emStrong.lDelim.exec(k);if(ce&&!(ce[3]&&he.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-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090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uA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uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var xe=ce[1]||ce[2]||"";if(!xe||xe&&(he===""||this.rules.inline.punctuation.exec(he))){var Be=ce[0].length-1,Xe,ut,nt=Be,Ue=0,R=ce[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(R.lastIndex=0,Y=Y.slice(-1*k.length+Be);(ce=R.exec(Y))!=null;)if(Xe=ce[1]||ce[2]||ce[3]||ce[4]||ce[5]||ce[6],!!Xe){if(ut=Xe.length,ce[3]||ce[4]){nt+=ut;continue}else if((ce[5]||ce[6])&&Be%3&&!((Be+ut)%3)){Ue+=ut;continue}if(nt-=ut,!(nt>0))return ut=Math.min(ut,ut+nt+Ue),Math.min(Be,ut)%2?{type:"em",raw:k.slice(0,Be+ce.index+ut+1),text:k.slice(1,Be+ce.index+ut)}:{type:"strong",raw:k.slice(0,Be+ce.index+ut+1),text:k.slice(2,Be+ce.index+ut-1)}}}}},ve.codespan=function(k){var Y=this.rules.inline.code.exec(k);if(Y){var he=Y[2].replace(/\n/g," "),ce=/[^ ]/.test(he),xe=/^ /.test(he)&&/ $/.test(he);return ce&&xe&&(he=he.substring(1,he.length-1)),he=v(he,!0),{type:"codespan",raw:Y[0],text:he}}},ve.br=function(k){var Y=this.rules.inline.br.exec(k);if(Y)return{type:"br",raw:Y[0]}},ve.del=function(k){var Y=this.rules.inline.del.exec(k);if(Y)return{type:"del",raw:Y[0],text:Y[2]}},ve.autolink=function(k,Y){var he=this.rules.inline.autolink.exec(k);if(he){var ce,xe;return he[2]==="@"?(ce=v(this.options.mangle?Y(he[1]):he[1]),xe="mailto:"+ce):(ce=v(he[1]),xe=ce),{type:"link",raw:he[0],text:ce,href:xe,tokens:[{type:"text",raw:ce,text:ce}]}}},ve.url=function(k,Y){var he;if(he=this.rules.inline.url.exec(k)){var ce,xe;if(he[2]==="@")ce=v(this.options.mangle?Y(he[0]):he[0]),xe="mailto:"+ce;else{var Be;do Be=he[0],he[0]=this.rules.inline._backpedal.exec(he[0])[0];while(Be!==he[0]);ce=v(he[0]),he[1]==="www."?xe="http://"+ce:xe=ce}return{type:"link",raw:he[0],text:ce,href:xe,tokens:[{type:"text",raw:ce,text:ce}]}}},ve.inlineText=function(k,Y,he){var ce=this.rules.inline.text.exec(k);if(ce){var xe;return Y?xe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ce[0]):v(ce[0]):ce[0]:xe=v(this.options.smartypants?he(ce[0]):ce[0]),{type:"text",raw:ce[0],text:xe}}},se}(),Ct=G.noopTest,Rt=G.edit,Ft=G.merge,Ht={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Ct,table:Ct,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};Ht._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Ht._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Ht.def=Rt(Ht.def).replace("label",Ht._label).replace("title",Ht._title).getRegex(),Ht.bullet=/(?:[*+-]|\d{1,9}[.)])/,Ht.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,Ht.item=Rt(Ht.item,"gm").replace(/bull/g,Ht.bullet).getRegex(),Ht.listItemStart=Rt(/^( *)(bull) */).replace("bull",Ht.bullet).getRegex(),Ht.list=Rt(Ht.list).replace(/bull/g,Ht.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Ht.def.source+")").getRegex(),Ht._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ht._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Ht.html=Rt(Ht.html,"i").replace("comment",Ht._comment).replace("tag",Ht._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ht.paragraph=Rt(Ht._paragraph).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ht._tag).getRegex(),Ht.blockquote=Rt(Ht.blockquote).replace("paragraph",Ht.paragraph).getRegex(),Ht.normal=Ft({},Ht),Ht.gfm=Ft({},Ht.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Ht.gfm.nptable=Rt(Ht.gfm.nptable).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ht._tag).getRegex(),Ht.gfm.table=Rt(Ht.gfm.table).replace("hr",Ht.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Ht._tag).getRegex(),Ht.pedantic=Ft({},Ht.normal,{html:Rt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ht._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ct,paragraph:Rt(Ht.normal._paragraph).replace("hr",Ht.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Ht.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Ke={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ct,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Ct,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};Ke._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ke.punctuation=Rt(Ke.punctuation).replace(/punctuation/g,Ke._punctuation).getRegex(),Ke.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ke.escapedEmSt=/\\\*|\\_/g,Ke._comment=Rt(Ht._comment).replace("(?:-->|$)","-->").getRegex(),Ke.emStrong.lDelim=Rt(Ke.emStrong.lDelim).replace(/punct/g,Ke._punctuation).getRegex(),Ke.emStrong.rDelimAst=Rt(Ke.emStrong.rDelimAst,"g").replace(/punct/g,Ke._punctuation).getRegex(),Ke.emStrong.rDelimUnd=Rt(Ke.emStrong.rDelimUnd,"g").replace(/punct/g,Ke._punctuation).getRegex(),Ke._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ke._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ke._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,Ke.autolink=Rt(Ke.autolink).replace("scheme",Ke._scheme).replace("email",Ke._email).getRegex(),Ke._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ke.tag=Rt(Ke.tag).replace("comment",Ke._comment).replace("attribute",Ke._attribute).getRegex(),Ke._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ke._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ke._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ke.link=Rt(Ke.link).replace("label",Ke._label).replace("href",Ke._href).replace("title",Ke._title).getRegex(),Ke.reflink=Rt(Ke.reflink).replace("label",Ke._label).getRegex(),Ke.reflinkSearch=Rt(Ke.reflinkSearch,"g").replace("reflink",Ke.reflink).replace("nolink",Ke.nolink).getRegex(),Ke.normal=Ft({},Ke),Ke.pedantic=Ft({},Ke.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Rt(/^!?\[(label)\]\((.*?)\)/).replace("label",Ke._label).getRegex(),reflink:Rt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ke._label).getRegex()}),Ke.gfm=Ft({},Ke.normal,{escape:Rt(Ke.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),Ke.gfm.url=Rt(Ke.gfm.url,"i").replace("email",Ke.gfm._extended_email).getRegex(),Ke.breaks=Ft({},Ke.gfm,{br:Rt(Ke.br).replace("{2,}","*").getRegex(),text:Rt(Ke.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var qt={block:Ht,inline:Ke},Dt=tt,sn=ae.exports.defaults,Je=qt.block,yt=qt.inline,Fe=G.repeatString;function we(se){return se.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function V(se){var ve="",Ee,k,Y=se.length;for(Ee=0;Ee<Y;Ee++)k=se.charCodeAt(Ee),Math.random()>.5&&(k="x"+k.toString(16)),ve+="&#"+k+";";return ve}var je=function(){function se(Ee){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ee||sn,this.options.tokenizer=this.options.tokenizer||new Dt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var k={block:Je.normal,inline:yt.normal};this.options.pedantic?(k.block=Je.pedantic,k.inline=yt.pedantic):this.options.gfm&&(k.block=Je.gfm,this.options.breaks?k.inline=yt.breaks:k.inline=yt.gfm),this.tokenizer.rules=k}se.lex=function(k,Y){var he=new se(Y);return he.lex(k)},se.lexInline=function(k,Y){var he=new se(Y);return he.inlineTokens(k)};var ve=se.prototype;return ve.lex=function(k){return k=k.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(k,this.tokens,!0),this.inline(this.tokens),this.tokens},ve.blockTokens=function(k,Y,he){Y===void 0&&(Y=[]),he===void 0&&(he=!0),this.options.pedantic&&(k=k.replace(/^ +$/gm,""));for(var ce,xe,Be,Xe;k;){if(ce=this.tokenizer.space(k)){k=k.substring(ce.raw.length),ce.type&&Y.push(ce);continue}if(ce=this.tokenizer.code(k)){k=k.substring(ce.raw.length),Xe=Y[Y.length-1],Xe&&Xe.type==="paragraph"?(Xe.raw+=`
`+ce.raw,Xe.text+=`
`+ce.text):Y.push(ce);continue}if(ce=this.tokenizer.fences(k)){k=k.substring(ce.raw.length),Y.push(ce);continue}if(ce=this.tokenizer.heading(k)){k=k.substring(ce.raw.length),Y.push(ce);continue}if(ce=this.tokenizer.nptable(k)){k=k.substring(ce.raw.length),Y.push(ce);continue}if(ce=this.tokenizer.hr(k)){k=k.substring(ce.raw.length),Y.push(ce);continue}if(ce=this.tokenizer.blockquote(k)){k=k.substring(ce.raw.length),ce.tokens=this.blockTokens(ce.text,[],he),Y.push(ce);continue}if(ce=this.tokenizer.list(k)){for(k=k.substring(ce.raw.length),Be=ce.items.length,xe=0;xe<Be;xe++)ce.items[xe].tokens=this.blockTokens(ce.items[xe].text,[],!1);Y.push(ce);continue}if(ce=this.tokenizer.html(k)){k=k.substring(ce.raw.length),Y.push(ce);continue}if(he&&(ce=this.tokenizer.def(k))){k=k.substring(ce.raw.length),this.tokens.links[ce.tag]||(this.tokens.links[ce.tag]={href:ce.href,title:ce.title});continue}if(ce=this.tokenizer.table(k)){k=k.substring(ce.raw.length),Y.push(ce);continue}if(ce=this.tokenizer.lheading(k)){k=k.substring(ce.raw.length),Y.push(ce);continue}if(he&&(ce=this.tokenizer.paragraph(k))){k=k.substring(ce.raw.length),Y.push(ce);continue}if(ce=this.tokenizer.text(k)){k=k.substring(ce.raw.length),Xe=Y[Y.length-1],Xe&&Xe.type==="text"?(Xe.raw+=`
`+ce.raw,Xe.text+=`
`+ce.text):Y.push(ce);continue}if(k){var ut="Infinite loop on byte: "+k.charCodeAt(0);if(this.options.silent){console.error(ut);break}else throw new Error(ut)}}return Y},ve.inline=function(k){var Y,he,ce,xe,Be,Xe,ut=k.length;for(Y=0;Y<ut;Y++)switch(Xe=k[Y],Xe.type){case"paragraph":case"text":case"heading":{Xe.tokens=[],this.inlineTokens(Xe.text,Xe.tokens);break}case"table":{for(Xe.tokens={header:[],cells:[]},xe=Xe.header.length,he=0;he<xe;he++)Xe.tokens.header[he]=[],this.inlineTokens(Xe.header[he],Xe.tokens.header[he]);for(xe=Xe.cells.length,he=0;he<xe;he++)for(Be=Xe.cells[he],Xe.tokens.cells[he]=[],ce=0;ce<Be.length;ce++)Xe.tokens.cells[he][ce]=[],this.inlineTokens(Be[ce],Xe.tokens.cells[he][ce]);break}case"blockquote":{this.inline(Xe.tokens);break}case"list":{for(xe=Xe.items.length,he=0;he<xe;he++)this.inline(Xe.items[he].tokens);break}}return k},ve.inlineTokens=function(k,Y,he,ce){Y===void 0&&(Y=[]),he===void 0&&(he=!1),ce===void 0&&(ce=!1);var xe,Be,Xe=k,ut,nt,Ue;if(this.tokens.links){var R=Object.keys(this.tokens.links);if(R.length>0)for(;(ut=this.tokenizer.rules.inline.reflinkSearch.exec(Xe))!=null;)R.includes(ut[0].slice(ut[0].lastIndexOf("[")+1,-1))&&(Xe=Xe.slice(0,ut.index)+"["+Fe("a",ut[0].length-2)+"]"+Xe.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ut=this.tokenizer.rules.inline.blockSkip.exec(Xe))!=null;)Xe=Xe.slice(0,ut.index)+"["+Fe("a",ut[0].length-2)+"]"+Xe.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(ut=this.tokenizer.rules.inline.escapedEmSt.exec(Xe))!=null;)Xe=Xe.slice(0,ut.index)+"++"+Xe.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;k;){if(nt||(Ue=""),nt=!1,xe=this.tokenizer.escape(k)){k=k.substring(xe.raw.length),Y.push(xe);continue}if(xe=this.tokenizer.tag(k,he,ce)){k=k.substring(xe.raw.length),he=xe.inLink,ce=xe.inRawBlock;var U=Y[Y.length-1];U&&xe.type==="text"&&U.type==="text"?(U.raw+=xe.raw,U.text+=xe.text):Y.push(xe);continue}if(xe=this.tokenizer.link(k)){k=k.substring(xe.raw.length),xe.type==="link"&&(xe.tokens=this.inlineTokens(xe.text,[],!0,ce)),Y.push(xe);continue}if(xe=this.tokenizer.reflink(k,this.tokens.links)){k=k.substring(xe.raw.length);var S=Y[Y.length-1];xe.type==="link"?(xe.tokens=this.inlineTokens(xe.text,[],!0,ce),Y.push(xe)):S&&xe.type==="text"&&S.type==="text"?(S.raw+=xe.raw,S.text+=xe.text):Y.push(xe);continue}if(xe=this.tokenizer.emStrong(k,Xe,Ue)){k=k.substring(xe.raw.length),xe.tokens=this.inlineTokens(xe.text,[],he,ce),Y.push(xe);continue}if(xe=this.tokenizer.codespan(k)){k=k.substring(xe.raw.length),Y.push(xe);continue}if(xe=this.tokenizer.br(k)){k=k.substring(xe.raw.length),Y.push(xe);continue}if(xe=this.tokenizer.del(k)){k=k.substring(xe.raw.length),xe.tokens=this.inlineTokens(xe.text,[],he,ce),Y.push(xe);continue}if(xe=this.tokenizer.autolink(k,V)){k=k.substring(xe.raw.length),Y.push(xe);continue}if(!he&&(xe=this.tokenizer.url(k,V))){k=k.substring(xe.raw.length),Y.push(xe);continue}if(xe=this.tokenizer.inlineText(k,ce,we)){k=k.substring(xe.raw.length),xe.raw.slice(-1)!=="_"&&(Ue=xe.raw.slice(-1)),nt=!0,Be=Y[Y.length-1],Be&&Be.type==="text"?(Be.raw+=xe.raw,Be.text+=xe.text):Y.push(xe);continue}if(k){var ze="Infinite loop on byte: "+k.charCodeAt(0);if(this.options.silent){console.error(ze);break}else throw new Error(ze)}}return Y},_(se,null,[{key:"rules",get:function(){return{block:Je,inline:yt}}}]),se}(),Qe=ae.exports.defaults,q=G.cleanUrl,M=G.escape,Se=function(){function se(Ee){this.options=Ee||Qe}var ve=se.prototype;return ve.code=function(k,Y,he){var ce=(Y||"").match(/\S*/)[0];if(this.options.highlight){var xe=this.options.highlight(k,ce);xe!=null&&xe!==k&&(he=!0,k=xe)}return k=k.replace(/\n$/,"")+`
`,ce?'<pre><code class="'+this.options.langPrefix+M(ce,!0)+'">'+(he?k:M(k,!0))+`</code></pre>
`:"<pre><code>"+(he?k:M(k,!0))+`</code></pre>
`},ve.blockquote=function(k){return`<blockquote>
`+k+`</blockquote>
`},ve.html=function(k){return k},ve.heading=function(k,Y,he,ce){return this.options.headerIds?"<h"+Y+' id="'+this.options.headerPrefix+ce.slug(he)+'">'+k+"</h"+Y+`>
`:"<h"+Y+">"+k+"</h"+Y+`>
`},ve.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},ve.list=function(k,Y,he){var ce=Y?"ol":"ul",xe=Y&&he!==1?' start="'+he+'"':"";return"<"+ce+xe+`>
`+k+"</"+ce+`>
`},ve.listitem=function(k){return"<li>"+k+`</li>
`},ve.checkbox=function(k){return"<input "+(k?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},ve.paragraph=function(k){return"<p>"+k+`</p>
`},ve.table=function(k,Y){return Y&&(Y="<tbody>"+Y+"</tbody>"),`<table>
<thead>
`+k+`</thead>
`+Y+`</table>
`},ve.tablerow=function(k){return`<tr>
`+k+`</tr>
`},ve.tablecell=function(k,Y){var he=Y.header?"th":"td",ce=Y.align?"<"+he+' align="'+Y.align+'">':"<"+he+">";return ce+k+"</"+he+`>
`},ve.strong=function(k){return"<strong>"+k+"</strong>"},ve.em=function(k){return"<em>"+k+"</em>"},ve.codespan=function(k){return"<code>"+k+"</code>"},ve.br=function(){return this.options.xhtml?"<br/>":"<br>"},ve.del=function(k){return"<del>"+k+"</del>"},ve.link=function(k,Y,he){if(k=q(this.options.sanitize,this.options.baseUrl,k),k===null)return he;var ce='<a href="'+M(k)+'"';return Y&&(ce+=' title="'+Y+'"'),ce+=">"+he+"</a>",ce},ve.image=function(k,Y,he){if(k=q(this.options.sanitize,this.options.baseUrl,k),k===null)return he;var ce='<img src="'+k+'" alt="'+he+'"';return Y&&(ce+=' title="'+Y+'"'),ce+=this.options.xhtml?"/>":">",ce},ve.text=function(k){return k},se}(),be=function(){function se(){}var ve=se.prototype;return ve.strong=function(k){return k},ve.em=function(k){return k},ve.codespan=function(k){return k},ve.del=function(k){return k},ve.html=function(k){return k},ve.text=function(k){return k},ve.link=function(k,Y,he){return""+he},ve.image=function(k,Y,he){return""+he},ve.br=function(){return""},se}(),W=function(){function se(){this.seen={}}var ve=se.prototype;return ve.serialize=function(k){return k.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},ve.getNextSafeSlug=function(k,Y){var he=k,ce=0;if(this.seen.hasOwnProperty(he)){ce=this.seen[k];do ce++,he=k+"-"+ce;while(this.seen.hasOwnProperty(he))}return Y||(this.seen[k]=ce,this.seen[he]=0),he},ve.slug=function(k,Y){Y===void 0&&(Y={});var he=this.serialize(k);return this.getNextSafeSlug(he,Y.dryrun)},se}(),fe=Se,ye=be,$e=W,Ve=ae.exports.defaults,qe=G.unescape,Ye=function(){function se(Ee){this.options=Ee||Ve,this.options.renderer=this.options.renderer||new fe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ye,this.slugger=new $e}se.parse=function(k,Y){var he=new se(Y);return he.parse(k)},se.parseInline=function(k,Y){var he=new se(Y);return he.parseInline(k)};var ve=se.prototype;return ve.parse=function(k,Y){Y===void 0&&(Y=!0);var he="",ce,xe,Be,Xe,ut,nt,Ue,R,U,S,ze,ke,Pe,Ge,We,ct,Lt,Pt,cn=k.length;for(ce=0;ce<cn;ce++)switch(S=k[ce],S.type){case"space":continue;case"hr":{he+=this.renderer.hr();continue}case"heading":{he+=this.renderer.heading(this.parseInline(S.tokens),S.depth,qe(this.parseInline(S.tokens,this.textRenderer)),this.slugger);continue}case"code":{he+=this.renderer.code(S.text,S.lang,S.escaped);continue}case"table":{for(R="",Ue="",Xe=S.header.length,xe=0;xe<Xe;xe++)Ue+=this.renderer.tablecell(this.parseInline(S.tokens.header[xe]),{header:!0,align:S.align[xe]});for(R+=this.renderer.tablerow(Ue),U="",Xe=S.cells.length,xe=0;xe<Xe;xe++){for(nt=S.tokens.cells[xe],Ue="",ut=nt.length,Be=0;Be<ut;Be++)Ue+=this.renderer.tablecell(this.parseInline(nt[Be]),{header:!1,align:S.align[Be]});U+=this.renderer.tablerow(Ue)}he+=this.renderer.table(R,U);continue}case"blockquote":{U=this.parse(S.tokens),he+=this.renderer.blockquote(U);continue}case"list":{for(ze=S.ordered,ke=S.start,Pe=S.loose,Xe=S.items.length,U="",xe=0;xe<Xe;xe++)We=S.items[xe],ct=We.checked,Lt=We.task,Ge="",We.task&&(Pt=this.renderer.checkbox(ct),Pe?We.tokens.length>0&&We.tokens[0].type==="text"?(We.tokens[0].text=Pt+" "+We.tokens[0].text,We.tokens[0].tokens&&We.tokens[0].tokens.length>0&&We.tokens[0].tokens[0].type==="text"&&(We.tokens[0].tokens[0].text=Pt+" "+We.tokens[0].tokens[0].text)):We.tokens.unshift({type:"text",text:Pt}):Ge+=Pt),Ge+=this.parse(We.tokens,Pe),U+=this.renderer.listitem(Ge,Lt,ct);he+=this.renderer.list(U,ze,ke);continue}case"html":{he+=this.renderer.html(S.text);continue}case"paragraph":{he+=this.renderer.paragraph(this.parseInline(S.tokens));continue}case"text":{for(U=S.tokens?this.parseInline(S.tokens):S.text;ce+1<cn&&k[ce+1].type==="text";)S=k[++ce],U+=`
`+(S.tokens?this.parseInline(S.tokens):S.text);he+=Y?this.renderer.paragraph(U):U;continue}default:{var Ne='Token with "'+S.type+'" type was not found.';if(this.options.silent){console.error(Ne);return}else throw new Error(Ne)}}return he},ve.parseInline=function(k,Y){Y=Y||this.renderer;var he="",ce,xe,Be=k.length;for(ce=0;ce<Be;ce++)switch(xe=k[ce],xe.type){case"escape":{he+=Y.text(xe.text);break}case"html":{he+=Y.html(xe.text);break}case"link":{he+=Y.link(xe.href,xe.title,this.parseInline(xe.tokens,Y));break}case"image":{he+=Y.image(xe.href,xe.title,xe.text);break}case"strong":{he+=Y.strong(this.parseInline(xe.tokens,Y));break}case"em":{he+=Y.em(this.parseInline(xe.tokens,Y));break}case"codespan":{he+=Y.codespan(xe.text);break}case"br":{he+=Y.br();break}case"del":{he+=Y.del(this.parseInline(xe.tokens,Y));break}case"text":{he+=Y.text(xe.text);break}default:{var Xe='Token with "'+xe.type+'" type was not found.';if(this.options.silent){console.error(Xe);return}else throw new Error(Xe)}}return he},se}(),ot=je,de=Ye,K=tt,N=Se,Le=be,De=W,Ae=G.merge,it=G.checkSanitizeDeprecation,st=G.escape,Oe=ae.exports.getDefaults,Et=ae.exports.changeDefaults,jt=ae.exports.defaults;function wt(se,ve,Ee){if(typeof se=="undefined"||se===null)throw new Error("marked(): input parameter is undefined or null");if(typeof se!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(se)+", string expected");if(typeof ve=="function"&&(Ee=ve,ve=null),ve=Ae({},wt.defaults,ve||{}),it(ve),Ee){var k=ve.highlight,Y;try{Y=ot.lex(se,ve)}catch(Be){return Ee(Be)}var he=function(Xe){var ut;if(!Xe)try{ve.walkTokens&&wt.walkTokens(Y,ve.walkTokens),ut=de.parse(Y,ve)}catch(nt){Xe=nt}return ve.highlight=k,Xe?Ee(Xe):Ee(null,ut)};if(!k||k.length<3||(delete ve.highlight,!Y.length))return he();var ce=0;wt.walkTokens(Y,function(Be){Be.type==="code"&&(ce++,setTimeout(function(){k(Be.text,Be.lang,function(Xe,ut){if(Xe)return he(Xe);ut!=null&&ut!==Be.text&&(Be.text=ut,Be.escaped=!0),ce--,ce===0&&he()})},0))}),ce===0&&he();return}try{var xe=ot.lex(se,ve);return ve.walkTokens&&wt.walkTokens(xe,ve.walkTokens),de.parse(xe,ve)}catch(Be){if(Be.message+=`
Please report this to https://github.com/markedjs/marked.`,ve.silent)return"<p>An error occurred:</p><pre>"+st(Be.message+"",!0)+"</pre>";throw Be}}wt.options=wt.setOptions=function(se){return Ae(wt.defaults,se),Et(wt.defaults),wt},wt.getDefaults=Oe,wt.defaults=jt,wt.use=function(se){var ve=Ae({},se);if(se.renderer&&function(){var k=wt.defaults.renderer||new N,Y=function(xe){var Be=k[xe];k[xe]=function(){for(var Xe=arguments.length,ut=new Array(Xe),nt=0;nt<Xe;nt++)ut[nt]=arguments[nt];var Ue=se.renderer[xe].apply(k,ut);return Ue===!1&&(Ue=Be.apply(k,ut)),Ue}};for(var he in se.renderer)Y(he);ve.renderer=k}(),se.tokenizer&&function(){var k=wt.defaults.tokenizer||new K,Y=function(xe){var Be=k[xe];k[xe]=function(){for(var Xe=arguments.length,ut=new Array(Xe),nt=0;nt<Xe;nt++)ut[nt]=arguments[nt];var Ue=se.tokenizer[xe].apply(k,ut);return Ue===!1&&(Ue=Be.apply(k,ut)),Ue}};for(var he in se.tokenizer)Y(he);ve.tokenizer=k}(),se.walkTokens){var Ee=wt.defaults.walkTokens;ve.walkTokens=function(k){se.walkTokens(k),Ee&&Ee(k)}}wt.setOptions(ve)},wt.walkTokens=function(se,ve){for(var Ee=z(se),k;!(k=Ee()).done;){var Y=k.value;switch(ve(Y),Y.type){case"table":{for(var he=z(Y.tokens.header),ce;!(ce=he()).done;){var xe=ce.value;wt.walkTokens(xe,ve)}for(var Be=z(Y.tokens.cells),Xe;!(Xe=Be()).done;)for(var ut=Xe.value,nt=z(ut),Ue;!(Ue=nt()).done;){var R=Ue.value;wt.walkTokens(R,ve)}break}case"list":{wt.walkTokens(Y.items,ve);break}default:Y.tokens&&wt.walkTokens(Y.tokens,ve)}}},wt.parseInline=function(se,ve){if(typeof se=="undefined"||se===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof se!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(se)+", string expected");ve=Ae({},wt.defaults,ve||{}),it(ve);try{var Ee=ot.lexInline(se,ve);return ve.walkTokens&&wt.walkTokens(Ee,ve.walkTokens),de.parseInline(Ee,ve)}catch(k){if(k.message+=`
Please report this to https://github.com/markedjs/marked.`,ve.silent)return"<p>An error occurred:</p><pre>"+st(k.message+"",!0)+"</pre>";throw k}},wt.Parser=de,wt.parser=de.parse,wt.Renderer=N,wt.TextRenderer=Le,wt.Lexer=ot,wt.lexer=ot.lex,wt.Tokenizer=K,wt.Slugger=De,wt.parse=wt;var Bt=wt;return Bt})},11690:function(Pn){const Gt=/[&<>"']/,_=/[&<>"']/g,f=/[<>"']|&(?!#?\w+;)/,ue=/[<>"']|&(?!#?\w+;)/g,z={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ae=ee=>z[ee];function B(ee,oe){if(oe){if(Gt.test(ee))return ee.replace(_,ae)}else if(f.test(ee))return ee.replace(ue,ae);return ee}const d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function _e(ee){return ee.replace(d,(oe,ge)=>(ge=ge.toLowerCase(),ge==="colon"?":":ge.charAt(0)==="#"?ge.charAt(1)==="x"?String.fromCharCode(parseInt(ge.substring(2),16)):String.fromCharCode(+ge.substring(1)):""))}const ne=/(^|[^\[])\^/g;function o(ee,oe){ee=ee.source||ee,oe=oe||"";const ge={replace:(me,at)=>(at=at.source||at,at=at.replace(ne,"$1"),ee=ee.replace(me,at),ge),getRegex:()=>new RegExp(ee,oe)};return ge}const g=/[^\w:]/g,A=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function p(ee,oe,ge){if(ee){let me;try{me=decodeURIComponent(_e(ge)).replace(g,"").toLowerCase()}catch(at){return null}if(me.indexOf("javascript:")===0||me.indexOf("vbscript:")===0||me.indexOf("data:")===0)return null}oe&&!A.test(ge)&&(ge=$(oe,ge));try{ge=encodeURI(ge).replace(/%25/g,"%")}catch(me){return null}return ge}const E={},b=/^[^:]+:\/*[^/]*$/,I=/^([^:]+:)[\s\S]*$/,j=/^([^:]+:\/*[^/]*)[\s\S]*$/;function $(ee,oe){E[" "+ee]||(b.test(ee)?E[" "+ee]=ee+"/":E[" "+ee]=D(ee,"/",!0)),ee=E[" "+ee];const ge=ee.indexOf(":")===-1;return oe.substring(0,2)==="//"?ge?oe:ee.replace(I,"$1")+oe:oe.charAt(0)==="/"?ge?oe:ee.replace(j,"$1")+oe:ee+oe}const le={exec:function(){}};function F(ee){let oe=1,ge,me;for(;oe<arguments.length;oe++){ge=arguments[oe];for(me in ge)Object.prototype.hasOwnProperty.call(ge,me)&&(ee[me]=ge[me])}return ee}function H(ee,oe){const ge=ee.replace(/\|/g,(Z,T,P)=>{let G=!1,ie=T;for(;--ie>=0&&P[ie]==="\\";)G=!G;return G?"|":" |"}),me=ge.split(/ \|/);let at=0;if(me.length>oe)me.splice(oe);else for(;me.length<oe;)me.push("");for(;at<me.length;at++)me[at]=me[at].trim().replace(/\\\|/g,"|");return me}function D(ee,oe,ge){const me=ee.length;if(me===0)return"";let at=0;for(;at<me;){const Z=ee.charAt(me-at-1);if(Z===oe&&!ge)at++;else if(Z!==oe&&ge)at++;else break}return ee.substr(0,me-at)}function w(ee,oe){if(ee.indexOf(oe[1])===-1)return-1;const ge=ee.length;let me=0,at=0;for(;at<ge;at++)if(ee[at]==="\\")at++;else if(ee[at]===oe[0])me++;else if(ee[at]===oe[1]&&(me--,me<0))return at;return-1}function Q(ee){ee&&ee.sanitize&&!ee.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function re(ee,oe){if(oe<1)return"";let ge="";for(;oe>1;)oe&1&&(ge+=ee),oe>>=1,ee+=ee;return ge+ee}Pn.exports={escape:B,unescape:_e,edit:o,cleanUrl:p,resolveUrl:$,noopTest:le,merge:F,splitCells:H,rtrim:D,findClosingBracket:w,checkSanitizeDeprecation:Q,repeatString:re}},75918:function(Pn,Gt,_){"use strict";_.d(Gt,{Wi:function(){return d},Z0:function(){return _e},aU:function(){return B},eZ:function(){return o},wY:function(){return ne}});var f=_(4348),ue=_(69323),z=_(13268),ae=function(g,A,p,E){function b(I){return I instanceof p?I:new p(function(j){j(I)})}return new(p||(p=Promise))(function(I,j){function $(H){try{F(E.next(H))}catch(D){j(D)}}function le(H){try{F(E.throw(H))}catch(D){j(D)}}function F(H){H.done?I(H.value):b(H.value).then($,le)}F((E=E.apply(g,A||[])).next())})};class B extends ue.JT{constructor(A,p="",E="",b=!0,I){super(),this._onDidChange=this._register(new f.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=A,this._label=p,this._cssClass=E,this._enabled=b,this._actionCallback=I}get id(){return this._id}get label(){return this._label}set label(A){this._setLabel(A)}_setLabel(A){this._label!==A&&(this._label=A,this._onDidChange.fire({label:A}))}get tooltip(){return this._tooltip||""}set tooltip(A){this._setTooltip(A)}_setTooltip(A){this._tooltip!==A&&(this._tooltip=A,this._onDidChange.fire({tooltip:A}))}get class(){return this._cssClass}set class(A){this._setClass(A)}_setClass(A){this._cssClass!==A&&(this._cssClass=A,this._onDidChange.fire({class:A}))}get enabled(){return this._enabled}set enabled(A){this._setEnabled(A)}_setEnabled(A){this._enabled!==A&&(this._enabled=A,this._onDidChange.fire({enabled:A}))}get checked(){return this._checked}set checked(A){this._setChecked(A)}_setChecked(A){this._checked!==A&&(this._checked=A,this._onDidChange.fire({checked:A}))}run(A,p){return ae(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(A))})}}class d extends ue.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new f.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new f.Q5),this.onDidRun=this._onDidRun.event}run(A,p){return ae(this,void 0,void 0,function*(){if(!A.enabled)return;this._onBeforeRun.fire({action:A});let E;try{yield this.runAction(A,p)}catch(b){E=b}this._onDidRun.fire({action:A,error:E})})}runAction(A,p){return ae(this,void 0,void 0,function*(){yield A.run(p)})}}class _e extends B{constructor(A){super(_e.ID,A,A?"separator text":"separator"),this.checked=!1,this.enabled=!1}}_e.ID="vs.actions.separator";class ne{constructor(A,p,E,b){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=A,this.label=p,this.class=b,this._actions=E}get actions(){return this._actions}dispose(){}run(){return ae(this,void 0,void 0,function*(){})}}class o extends B{constructor(){super(o.ID,z.N("submenu.empty","(empty)"),void 0,!1)}}o.ID="vs.actions.empty"},76068:function(Pn,Gt,_){"use strict";_.d(Gt,{ok:function(){return f}});function f(ue,z){if(!ue)throw new Error(z?`Assertion failed (${z})`:"Assertion Failed")}},52615:function(Pn,Gt,_){"use strict";_.d(Gt,{CM:function(){return B},JL:function(){return d},dT:function(){return ne},fK:function(){return ae},lA:function(){return _e}});var f=_(4348);class ue{constructor(){this._icons=new Map,this._onDidRegister=new f.Q5}add(g){const A=this._icons.get(g.id);A?g.description?A.description=g.description:console.error(`Duplicate registration of codicon ${g.id}`):(this._icons.set(g.id,g),this._onDidRegister.fire(g))}get(g){return this._icons.get(g)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const z=new ue,ae=z;function B(o,g){return new _e(o,g)}function d(o){return o?o.replace(/\$\((.*?)\)/g,(g,A)=>` ${A} `).trim():""}class _e{constructor(g,A,p){this.id=g,this.definition=A,this.description=p,z.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var ne;(function(o){o.iconNameSegment="[A-Za-z0-9]+",o.iconNameExpression="[A-Za-z0-9\\-]+",o.iconModifierExpression="~[A-Za-z]+";const g=new RegExp(`^(${o.iconNameExpression})(${o.iconModifierExpression})?$`);function A(b){if(b instanceof _e)return["codicon","codicon-"+b.id];const I=g.exec(b.id);if(!I)return A(_e.error);let[,j,$]=I;const le=["codicon","codicon-"+j];return $&&le.push("codicon-modifier-"+$.substr(1)),le}o.asClassNameArray=A;function p(b){return A(b).join(" ")}o.asClassName=p;function E(b){return"."+A(b).join(".")}o.asCSSSelector=E})(ne||(ne={})),function(o){o.add=new o("add",{fontCharacter:"\\ea60"}),o.plus=new o("plus",o.add.definition),o.gistNew=new o("gist-new",o.add.definition),o.repoCreate=new o("repo-create",o.add.definition),o.lightbulb=new o("lightbulb",{fontCharacter:"\\ea61"}),o.lightBulb=new o("light-bulb",{fontCharacter:"\\ea61"}),o.repo=new o("repo",{fontCharacter:"\\ea62"}),o.repoDelete=new o("repo-delete",{fontCharacter:"\\ea62"}),o.gistFork=new o("gist-fork",{fontCharacter:"\\ea63"}),o.repoForked=new o("repo-forked",{fontCharacter:"\\ea63"}),o.gitPullRequest=new o("git-pull-request",{fontCharacter:"\\ea64"}),o.gitPullRequestAbandoned=new o("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),o.recordKeys=new o("record-keys",{fontCharacter:"\\ea65"}),o.keyboard=new o("keyboard",{fontCharacter:"\\ea65"}),o.tag=new o("tag",{fontCharacter:"\\ea66"}),o.tagAdd=new o("tag-add",{fontCharacter:"\\ea66"}),o.tagRemove=new o("tag-remove",{fontCharacter:"\\ea66"}),o.person=new o("person",{fontCharacter:"\\ea67"}),o.personFollow=new o("person-follow",{fontCharacter:"\\ea67"}),o.personOutline=new o("person-outline",{fontCharacter:"\\ea67"}),o.personFilled=new o("person-filled",{fontCharacter:"\\ea67"}),o.gitBranch=new o("git-branch",{fontCharacter:"\\ea68"}),o.gitBranchCreate=new o("git-branch-create",{fontCharacter:"\\ea68"}),o.gitBranchDelete=new o("git-branch-delete",{fontCharacter:"\\ea68"}),o.sourceControl=new o("source-control",{fontCharacter:"\\ea68"}),o.mirror=new o("mirror",{fontCharacter:"\\ea69"}),o.mirrorPublic=new o("mirror-public",{fontCharacter:"\\ea69"}),o.star=new o("star",{fontCharacter:"\\ea6a"}),o.starAdd=new o("star-add",{fontCharacter:"\\ea6a"}),o.starDelete=new o("star-delete",{fontCharacter:"\\ea6a"}),o.starEmpty=new o("star-empty",{fontCharacter:"\\ea6a"}),o.comment=new o("comment",{fontCharacter:"\\ea6b"}),o.commentAdd=new o("comment-add",{fontCharacter:"\\ea6b"}),o.alert=new o("alert",{fontCharacter:"\\ea6c"}),o.warning=new o("warning",{fontCharacter:"\\ea6c"}),o.search=new o("search",{fontCharacter:"\\ea6d"}),o.searchSave=new o("search-save",{fontCharacter:"\\ea6d"}),o.logOut=new o("log-out",{fontCharacter:"\\ea6e"}),o.signOut=new o("sign-out",{fontCharacter:"\\ea6e"}),o.logIn=new o("log-in",{fontCharacter:"\\ea6f"}),o.signIn=new o("sign-in",{fontCharacter:"\\ea6f"}),o.eye=new o("eye",{fontCharacter:"\\ea70"}),o.eyeUnwatch=new o("eye-unwatch",{fontCharacter:"\\ea70"}),o.eyeWatch=new o("eye-watch",{fontCharacter:"\\ea70"}),o.circleFilled=new o("circle-filled",{fontCharacter:"\\ea71"}),o.primitiveDot=new o("primitive-dot",{fontCharacter:"\\ea71"}),o.closeDirty=new o("close-dirty",{fontCharacter:"\\ea71"}),o.debugBreakpoint=new o("debug-breakpoint",{fontCharacter:"\\ea71"}),o.debugBreakpointDisabled=new o("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),o.debugHint=new o("debug-hint",{fontCharacter:"\\ea71"}),o.primitiveSquare=new o("primitive-square",{fontCharacter:"\\ea72"}),o.edit=new o("edit",{fontCharacter:"\\ea73"}),o.pencil=new o("pencil",{fontCharacter:"\\ea73"}),o.info=new o("info",{fontCharacter:"\\ea74"}),o.issueOpened=new o("issue-opened",{fontCharacter:"\\ea74"}),o.gistPrivate=new o("gist-private",{fontCharacter:"\\ea75"}),o.gitForkPrivate=new o("git-fork-private",{fontCharacter:"\\ea75"}),o.lock=new o("lock",{fontCharacter:"\\ea75"}),o.mirrorPrivate=new o("mirror-private",{fontCharacter:"\\ea75"}),o.close=new o("close",{fontCharacter:"\\ea76"}),o.removeClose=new o("remove-close",{fontCharacter:"\\ea76"}),o.x=new o("x",{fontCharacter:"\\ea76"}),o.repoSync=new o("repo-sync",{fontCharacter:"\\ea77"}),o.sync=new o("sync",{fontCharacter:"\\ea77"}),o.clone=new o("clone",{fontCharacter:"\\ea78"}),o.desktopDownload=new o("desktop-download",{fontCharacter:"\\ea78"}),o.beaker=new o("beaker",{fontCharacter:"\\ea79"}),o.microscope=new o("microscope",{fontCharacter:"\\ea79"}),o.vm=new o("vm",{fontCharacter:"\\ea7a"}),o.deviceDesktop=new o("device-desktop",{fontCharacter:"\\ea7a"}),o.file=new o("file",{fontCharacter:"\\ea7b"}),o.fileText=new o("file-text",{fontCharacter:"\\ea7b"}),o.more=new o("more",{fontCharacter:"\\ea7c"}),o.ellipsis=new o("ellipsis",{fontCharacter:"\\ea7c"}),o.kebabHorizontal=new o("kebab-horizontal",{fontCharacter:"\\ea7c"}),o.mailReply=new o("mail-reply",{fontCharacter:"\\ea7d"}),o.reply=new o("reply",{fontCharacter:"\\ea7d"}),o.organization=new o("organization",{fontCharacter:"\\ea7e"}),o.organizationFilled=new o("organization-filled",{fontCharacter:"\\ea7e"}),o.organizationOutline=new o("organization-outline",{fontCharacter:"\\ea7e"}),o.newFile=new o("new-file",{fontCharacter:"\\ea7f"}),o.fileAdd=new o("file-add",{fontCharacter:"\\ea7f"}),o.newFolder=new o("new-folder",{fontCharacter:"\\ea80"}),o.fileDirectoryCreate=new o("file-directory-create",{fontCharacter:"\\ea80"}),o.trash=new o("trash",{fontCharacter:"\\ea81"}),o.trashcan=new o("trashcan",{fontCharacter:"\\ea81"}),o.history=new o("history",{fontCharacter:"\\ea82"}),o.clock=new o("clock",{fontCharacter:"\\ea82"}),o.folder=new o("folder",{fontCharacter:"\\ea83"}),o.fileDirectory=new o("file-directory",{fontCharacter:"\\ea83"}),o.symbolFolder=new o("symbol-folder",{fontCharacter:"\\ea83"}),o.logoGithub=new o("logo-github",{fontCharacter:"\\ea84"}),o.markGithub=new o("mark-github",{fontCharacter:"\\ea84"}),o.github=new o("github",{fontCharacter:"\\ea84"}),o.terminal=new o("terminal",{fontCharacter:"\\ea85"}),o.console=new o("console",{fontCharacter:"\\ea85"}),o.repl=new o("repl",{fontCharacter:"\\ea85"}),o.zap=new o("zap",{fontCharacter:"\\ea86"}),o.symbolEvent=new o("symbol-event",{fontCharacter:"\\ea86"}),o.error=new o("error",{fontCharacter:"\\ea87"}),o.stop=new o("stop",{fontCharacter:"\\ea87"}),o.variable=new o("variable",{fontCharacter:"\\ea88"}),o.symbolVariable=new o("symbol-variable",{fontCharacter:"\\ea88"}),o.array=new o("array",{fontCharacter:"\\ea8a"}),o.symbolArray=new o("symbol-array",{fontCharacter:"\\ea8a"}),o.symbolModule=new o("symbol-module",{fontCharacter:"\\ea8b"}),o.symbolPackage=new o("symbol-package",{fontCharacter:"\\ea8b"}),o.symbolNamespace=new o("symbol-namespace",{fontCharacter:"\\ea8b"}),o.symbolObject=new o("symbol-object",{fontCharacter:"\\ea8b"}),o.symbolMethod=new o("symbol-method",{fontCharacter:"\\ea8c"}),o.symbolFunction=new o("symbol-function",{fontCharacter:"\\ea8c"}),o.symbolConstructor=new o("symbol-constructor",{fontCharacter:"\\ea8c"}),o.symbolBoolean=new o("symbol-boolean",{fontCharacter:"\\ea8f"}),o.symbolNull=new o("symbol-null",{fontCharacter:"\\ea8f"}),o.symbolNumeric=new o("symbol-numeric",{fontCharacter:"\\ea90"}),o.symbolNumber=new o("symbol-number",{fontCharacter:"\\ea90"}),o.symbolStructure=new o("symbol-structure",{fontCharacter:"\\ea91"}),o.symbolStruct=new o("symbol-struct",{fontCharacter:"\\ea91"}),o.symbolParameter=new o("symbol-parameter",{fontCharacter:"\\ea92"}),o.symbolTypeParameter=new o("symbol-type-parameter",{fontCharacter:"\\ea92"}),o.symbolKey=new o("symbol-key",{fontCharacter:"\\ea93"}),o.symbolText=new o("symbol-text",{fontCharacter:"\\ea93"}),o.symbolReference=new o("symbol-reference",{fontCharacter:"\\ea94"}),o.goToFile=new o("go-to-file",{fontCharacter:"\\ea94"}),o.symbolEnum=new o("symbol-enum",{fontCharacter:"\\ea95"}),o.symbolValue=new o("symbol-value",{fontCharacter:"\\ea95"}),o.symbolRuler=new o("symbol-ruler",{fontCharacter:"\\ea96"}),o.symbolUnit=new o("symbol-unit",{fontCharacter:"\\ea96"}),o.activateBreakpoints=new o("activate-breakpoints",{fontCharacter:"\\ea97"}),o.archive=new o("archive",{fontCharacter:"\\ea98"}),o.arrowBoth=new o("arrow-both",{fontCharacter:"\\ea99"}),o.arrowDown=new o("arrow-down",{fontCharacter:"\\ea9a"}),o.arrowLeft=new o("arrow-left",{fontCharacter:"\\ea9b"}),o.arrowRight=new o("arrow-right",{fontCharacter:"\\ea9c"}),o.arrowSmallDown=new o("arrow-small-down",{fontCharacter:"\\ea9d"}),o.arrowSmallLeft=new o("arrow-small-left",{fontCharacter:"\\ea9e"}),o.arrowSmallRight=new o("arrow-small-right",{fontCharacter:"\\ea9f"}),o.arrowSmallUp=new o("arrow-small-up",{fontCharacter:"\\eaa0"}),o.arrowUp=new o("arrow-up",{fontCharacter:"\\eaa1"}),o.bell=new o("bell",{fontCharacter:"\\eaa2"}),o.bold=new o("bold",{fontCharacter:"\\eaa3"}),o.book=new o("book",{fontCharacter:"\\eaa4"}),o.bookmark=new o("bookmark",{fontCharacter:"\\eaa5"}),o.debugBreakpointConditionalUnverified=new o("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),o.debugBreakpointConditional=new o("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),o.debugBreakpointConditionalDisabled=new o("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),o.debugBreakpointDataUnverified=new o("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),o.debugBreakpointData=new o("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),o.debugBreakpointDataDisabled=new o("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),o.debugBreakpointLogUnverified=new o("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),o.debugBreakpointLog=new o("debug-breakpoint-log",{fontCharacter:"\\eaab"}),o.debugBreakpointLogDisabled=new o("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),o.briefcase=new o("briefcase",{fontCharacter:"\\eaac"}),o.broadcast=new o("broadcast",{fontCharacter:"\\eaad"}),o.browser=new o("browser",{fontCharacter:"\\eaae"}),o.bug=new o("bug",{fontCharacter:"\\eaaf"}),o.calendar=new o("calendar",{fontCharacter:"\\eab0"}),o.caseSensitive=new o("case-sensitive",{fontCharacter:"\\eab1"}),o.check=new o("check",{fontCharacter:"\\eab2"}),o.checklist=new o("checklist",{fontCharacter:"\\eab3"}),o.chevronDown=new o("chevron-down",{fontCharacter:"\\eab4"}),o.dropDownButton=new o("drop-down-button",o.chevronDown.definition),o.chevronLeft=new o("chevron-left",{fontCharacter:"\\eab5"}),o.chevronRight=new o("chevron-right",{fontCharacter:"\\eab6"}),o.chevronUp=new o("chevron-up",{fontCharacter:"\\eab7"}),o.chromeClose=new o("chrome-close",{fontCharacter:"\\eab8"}),o.chromeMaximize=new o("chrome-maximize",{fontCharacter:"\\eab9"}),o.chromeMinimize=new o("chrome-minimize",{fontCharacter:"\\eaba"}),o.chromeRestore=new o("chrome-restore",{fontCharacter:"\\eabb"}),o.circleOutline=new o("circle-outline",{fontCharacter:"\\eabc"}),o.debugBreakpointUnverified=new o("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),o.circleSlash=new o("circle-slash",{fontCharacter:"\\eabd"}),o.circuitBoard=new o("circuit-board",{fontCharacter:"\\eabe"}),o.clearAll=new o("clear-all",{fontCharacter:"\\eabf"}),o.clippy=new o("clippy",{fontCharacter:"\\eac0"}),o.closeAll=new o("close-all",{fontCharacter:"\\eac1"}),o.cloudDownload=new o("cloud-download",{fontCharacter:"\\eac2"}),o.cloudUpload=new o("cloud-upload",{fontCharacter:"\\eac3"}),o.code=new o("code",{fontCharacter:"\\eac4"}),o.collapseAll=new o("collapse-all",{fontCharacter:"\\eac5"}),o.colorMode=new o("color-mode",{fontCharacter:"\\eac6"}),o.commentDiscussion=new o("comment-discussion",{fontCharacter:"\\eac7"}),o.compareChanges=new o("compare-changes",{fontCharacter:"\\eafd"}),o.creditCard=new o("credit-card",{fontCharacter:"\\eac9"}),o.dash=new o("dash",{fontCharacter:"\\eacc"}),o.dashboard=new o("dashboard",{fontCharacter:"\\eacd"}),o.database=new o("database",{fontCharacter:"\\eace"}),o.debugContinue=new o("debug-continue",{fontCharacter:"\\eacf"}),o.debugDisconnect=new o("debug-disconnect",{fontCharacter:"\\ead0"}),o.debugPause=new o("debug-pause",{fontCharacter:"\\ead1"}),o.debugRestart=new o("debug-restart",{fontCharacter:"\\ead2"}),o.debugStart=new o("debug-start",{fontCharacter:"\\ead3"}),o.debugStepInto=new o("debug-step-into",{fontCharacter:"\\ead4"}),o.debugStepOut=new o("debug-step-out",{fontCharacter:"\\ead5"}),o.debugStepOver=new o("debug-step-over",{fontCharacter:"\\ead6"}),o.debugStop=new o("debug-stop",{fontCharacter:"\\ead7"}),o.debug=new o("debug",{fontCharacter:"\\ead8"}),o.deviceCameraVideo=new o("device-camera-video",{fontCharacter:"\\ead9"}),o.deviceCamera=new o("device-camera",{fontCharacter:"\\eada"}),o.deviceMobile=new o("device-mobile",{fontCharacter:"\\eadb"}),o.diffAdded=new o("diff-added",{fontCharacter:"\\eadc"}),o.diffIgnored=new o("diff-ignored",{fontCharacter:"\\eadd"}),o.diffModified=new o("diff-modified",{fontCharacter:"\\eade"}),o.diffRemoved=new o("diff-removed",{fontCharacter:"\\eadf"}),o.diffRenamed=new o("diff-renamed",{fontCharacter:"\\eae0"}),o.diff=new o("diff",{fontCharacter:"\\eae1"}),o.discard=new o("discard",{fontCharacter:"\\eae2"}),o.editorLayout=new o("editor-layout",{fontCharacter:"\\eae3"}),o.emptyWindow=new o("empty-window",{fontCharacter:"\\eae4"}),o.exclude=new o("exclude",{fontCharacter:"\\eae5"}),o.extensions=new o("extensions",{fontCharacter:"\\eae6"}),o.eyeClosed=new o("eye-closed",{fontCharacter:"\\eae7"}),o.fileBinary=new o("file-binary",{fontCharacter:"\\eae8"}),o.fileCode=new o("file-code",{fontCharacter:"\\eae9"}),o.fileMedia=new o("file-media",{fontCharacter:"\\eaea"}),o.filePdf=new o("file-pdf",{fontCharacter:"\\eaeb"}),o.fileSubmodule=new o("file-submodule",{fontCharacter:"\\eaec"}),o.fileSymlinkDirectory=new o("file-symlink-directory",{fontCharacter:"\\eaed"}),o.fileSymlinkFile=new o("file-symlink-file",{fontCharacter:"\\eaee"}),o.fileZip=new o("file-zip",{fontCharacter:"\\eaef"}),o.files=new o("files",{fontCharacter:"\\eaf0"}),o.filter=new o("filter",{fontCharacter:"\\eaf1"}),o.flame=new o("flame",{fontCharacter:"\\eaf2"}),o.foldDown=new o("fold-down",{fontCharacter:"\\eaf3"}),o.foldUp=new o("fold-up",{fontCharacter:"\\eaf4"}),o.fold=new o("fold",{fontCharacter:"\\eaf5"}),o.folderActive=new o("folder-active",{fontCharacter:"\\eaf6"}),o.folderOpened=new o("folder-opened",{fontCharacter:"\\eaf7"}),o.gear=new o("gear",{fontCharacter:"\\eaf8"}),o.gift=new o("gift",{fontCharacter:"\\eaf9"}),o.gistSecret=new o("gist-secret",{fontCharacter:"\\eafa"}),o.gist=new o("gist",{fontCharacter:"\\eafb"}),o.gitCommit=new o("git-commit",{fontCharacter:"\\eafc"}),o.gitCompare=new o("git-compare",{fontCharacter:"\\eafd"}),o.gitMerge=new o("git-merge",{fontCharacter:"\\eafe"}),o.githubAction=new o("github-action",{fontCharacter:"\\eaff"}),o.githubAlt=new o("github-alt",{fontCharacter:"\\eb00"}),o.globe=new o("globe",{fontCharacter:"\\eb01"}),o.grabber=new o("grabber",{fontCharacter:"\\eb02"}),o.graph=new o("graph",{fontCharacter:"\\eb03"}),o.gripper=new o("gripper",{fontCharacter:"\\eb04"}),o.heart=new o("heart",{fontCharacter:"\\eb05"}),o.home=new o("home",{fontCharacter:"\\eb06"}),o.horizontalRule=new o("horizontal-rule",{fontCharacter:"\\eb07"}),o.hubot=new o("hubot",{fontCharacter:"\\eb08"}),o.inbox=new o("inbox",{fontCharacter:"\\eb09"}),o.issueClosed=new o("issue-closed",{fontCharacter:"\\eba4"}),o.issueReopened=new o("issue-reopened",{fontCharacter:"\\eb0b"}),o.issues=new o("issues",{fontCharacter:"\\eb0c"}),o.italic=new o("italic",{fontCharacter:"\\eb0d"}),o.jersey=new o("jersey",{fontCharacter:"\\eb0e"}),o.json=new o("json",{fontCharacter:"\\eb0f"}),o.kebabVertical=new o("kebab-vertical",{fontCharacter:"\\eb10"}),o.key=new o("key",{fontCharacter:"\\eb11"}),o.law=new o("law",{fontCharacter:"\\eb12"}),o.lightbulbAutofix=new o("lightbulb-autofix",{fontCharacter:"\\eb13"}),o.linkExternal=new o("link-external",{fontCharacter:"\\eb14"}),o.link=new o("link",{fontCharacter:"\\eb15"}),o.listOrdered=new o("list-ordered",{fontCharacter:"\\eb16"}),o.listUnordered=new o("list-unordered",{fontCharacter:"\\eb17"}),o.liveShare=new o("live-share",{fontCharacter:"\\eb18"}),o.loading=new o("loading",{fontCharacter:"\\eb19"}),o.location=new o("location",{fontCharacter:"\\eb1a"}),o.mailRead=new o("mail-read",{fontCharacter:"\\eb1b"}),o.mail=new o("mail",{fontCharacter:"\\eb1c"}),o.markdown=new o("markdown",{fontCharacter:"\\eb1d"}),o.megaphone=new o("megaphone",{fontCharacter:"\\eb1e"}),o.mention=new o("mention",{fontCharacter:"\\eb1f"}),o.milestone=new o("milestone",{fontCharacter:"\\eb20"}),o.mortarBoard=new o("mortar-board",{fontCharacter:"\\eb21"}),o.move=new o("move",{fontCharacter:"\\eb22"}),o.multipleWindows=new o("multiple-windows",{fontCharacter:"\\eb23"}),o.mute=new o("mute",{fontCharacter:"\\eb24"}),o.noNewline=new o("no-newline",{fontCharacter:"\\eb25"}),o.note=new o("note",{fontCharacter:"\\eb26"}),o.octoface=new o("octoface",{fontCharacter:"\\eb27"}),o.openPreview=new o("open-preview",{fontCharacter:"\\eb28"}),o.package_=new o("package",{fontCharacter:"\\eb29"}),o.paintcan=new o("paintcan",{fontCharacter:"\\eb2a"}),o.pin=new o("pin",{fontCharacter:"\\eb2b"}),o.play=new o("play",{fontCharacter:"\\eb2c"}),o.run=new o("run",{fontCharacter:"\\eb2c"}),o.plug=new o("plug",{fontCharacter:"\\eb2d"}),o.preserveCase=new o("preserve-case",{fontCharacter:"\\eb2e"}),o.preview=new o("preview",{fontCharacter:"\\eb2f"}),o.project=new o("project",{fontCharacter:"\\eb30"}),o.pulse=new o("pulse",{fontCharacter:"\\eb31"}),o.question=new o("question",{fontCharacter:"\\eb32"}),o.quote=new o("quote",{fontCharacter:"\\eb33"}),o.radioTower=new o("radio-tower",{fontCharacter:"\\eb34"}),o.reactions=new o("reactions",{fontCharacter:"\\eb35"}),o.references=new o("references",{fontCharacter:"\\eb36"}),o.refresh=new o("refresh",{fontCharacter:"\\eb37"}),o.regex=new o("regex",{fontCharacter:"\\eb38"}),o.remoteExplorer=new o("remote-explorer",{fontCharacter:"\\eb39"}),o.remote=new o("remote",{fontCharacter:"\\eb3a"}),o.remove=new o("remove",{fontCharacter:"\\eb3b"}),o.replaceAll=new o("replace-all",{fontCharacter:"\\eb3c"}),o.replace=new o("replace",{fontCharacter:"\\eb3d"}),o.repoClone=new o("repo-clone",{fontCharacter:"\\eb3e"}),o.repoForcePush=new o("repo-force-push",{fontCharacter:"\\eb3f"}),o.repoPull=new o("repo-pull",{fontCharacter:"\\eb40"}),o.repoPush=new o("repo-push",{fontCharacter:"\\eb41"}),o.report=new o("report",{fontCharacter:"\\eb42"}),o.requestChanges=new o("request-changes",{fontCharacter:"\\eb43"}),o.rocket=new o("rocket",{fontCharacter:"\\eb44"}),o.rootFolderOpened=new o("root-folder-opened",{fontCharacter:"\\eb45"}),o.rootFolder=new o("root-folder",{fontCharacter:"\\eb46"}),o.rss=new o("rss",{fontCharacter:"\\eb47"}),o.ruby=new o("ruby",{fontCharacter:"\\eb48"}),o.saveAll=new o("save-all",{fontCharacter:"\\eb49"}),o.saveAs=new o("save-as",{fontCharacter:"\\eb4a"}),o.save=new o("save",{fontCharacter:"\\eb4b"}),o.screenFull=new o("screen-full",{fontCharacter:"\\eb4c"}),o.screenNormal=new o("screen-normal",{fontCharacter:"\\eb4d"}),o.searchStop=new o("search-stop",{fontCharacter:"\\eb4e"}),o.server=new o("server",{fontCharacter:"\\eb50"}),o.settingsGear=new o("settings-gear",{fontCharacter:"\\eb51"}),o.settings=new o("settings",{fontCharacter:"\\eb52"}),o.shield=new o("shield",{fontCharacter:"\\eb53"}),o.smiley=new o("smiley",{fontCharacter:"\\eb54"}),o.sortPrecedence=new o("sort-precedence",{fontCharacter:"\\eb55"}),o.splitHorizontal=new o("split-horizontal",{fontCharacter:"\\eb56"}),o.splitVertical=new o("split-vertical",{fontCharacter:"\\eb57"}),o.squirrel=new o("squirrel",{fontCharacter:"\\eb58"}),o.starFull=new o("star-full",{fontCharacter:"\\eb59"}),o.starHalf=new o("star-half",{fontCharacter:"\\eb5a"}),o.symbolClass=new o("symbol-class",{fontCharacter:"\\eb5b"}),o.symbolColor=new o("symbol-color",{fontCharacter:"\\eb5c"}),o.symbolConstant=new o("symbol-constant",{fontCharacter:"\\eb5d"}),o.symbolEnumMember=new o("symbol-enum-member",{fontCharacter:"\\eb5e"}),o.symbolField=new o("symbol-field",{fontCharacter:"\\eb5f"}),o.symbolFile=new o("symbol-file",{fontCharacter:"\\eb60"}),o.symbolInterface=new o("symbol-interface",{fontCharacter:"\\eb61"}),o.symbolKeyword=new o("symbol-keyword",{fontCharacter:"\\eb62"}),o.symbolMisc=new o("symbol-misc",{fontCharacter:"\\eb63"}),o.symbolOperator=new o("symbol-operator",{fontCharacter:"\\eb64"}),o.symbolProperty=new o("symbol-property",{fontCharacter:"\\eb65"}),o.wrench=new o("wrench",{fontCharacter:"\\eb65"}),o.wrenchSubaction=new o("wrench-subaction",{fontCharacter:"\\eb65"}),o.symbolSnippet=new o("symbol-snippet",{fontCharacter:"\\eb66"}),o.tasklist=new o("tasklist",{fontCharacter:"\\eb67"}),o.telescope=new o("telescope",{fontCharacter:"\\eb68"}),o.textSize=new o("text-size",{fontCharacter:"\\eb69"}),o.threeBars=new o("three-bars",{fontCharacter:"\\eb6a"}),o.thumbsdown=new o("thumbsdown",{fontCharacter:"\\eb6b"}),o.thumbsup=new o("thumbsup",{fontCharacter:"\\eb6c"}),o.tools=new o("tools",{fontCharacter:"\\eb6d"}),o.triangleDown=new o("triangle-down",{fontCharacter:"\\eb6e"}),o.triangleLeft=new o("triangle-left",{fontCharacter:"\\eb6f"}),o.triangleRight=new o("triangle-right",{fontCharacter:"\\eb70"}),o.triangleUp=new o("triangle-up",{fontCharacter:"\\eb71"}),o.twitter=new o("twitter",{fontCharacter:"\\eb72"}),o.unfold=new o("unfold",{fontCharacter:"\\eb73"}),o.unlock=new o("unlock",{fontCharacter:"\\eb74"}),o.unmute=new o("unmute",{fontCharacter:"\\eb75"}),o.unverified=new o("unverified",{fontCharacter:"\\eb76"}),o.verified=new o("verified",{fontCharacter:"\\eb77"}),o.versions=new o("versions",{fontCharacter:"\\eb78"}),o.vmActive=new o("vm-active",{fontCharacter:"\\eb79"}),o.vmOutline=new o("vm-outline",{fontCharacter:"\\eb7a"}),o.vmRunning=new o("vm-running",{fontCharacter:"\\eb7b"}),o.watch=new o("watch",{fontCharacter:"\\eb7c"}),o.whitespace=new o("whitespace",{fontCharacter:"\\eb7d"}),o.wholeWord=new o("whole-word",{fontCharacter:"\\eb7e"}),o.window=new o("window",{fontCharacter:"\\eb7f"}),o.wordWrap=new o("word-wrap",{fontCharacter:"\\eb80"}),o.zoomIn=new o("zoom-in",{fontCharacter:"\\eb81"}),o.zoomOut=new o("zoom-out",{fontCharacter:"\\eb82"}),o.listFilter=new o("list-filter",{fontCharacter:"\\eb83"}),o.listFlat=new o("list-flat",{fontCharacter:"\\eb84"}),o.listSelection=new o("list-selection",{fontCharacter:"\\eb85"}),o.selection=new o("selection",{fontCharacter:"\\eb85"}),o.listTree=new o("list-tree",{fontCharacter:"\\eb86"}),o.debugBreakpointFunctionUnverified=new o("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),o.debugBreakpointFunction=new o("debug-breakpoint-function",{fontCharacter:"\\eb88"}),o.debugBreakpointFunctionDisabled=new o("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),o.debugStackframeActive=new o("debug-stackframe-active",{fontCharacter:"\\eb89"}),o.debugStackframeDot=new o("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),o.debugStackframe=new o("debug-stackframe",{fontCharacter:"\\eb8b"}),o.debugStackframeFocused=new o("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),o.debugBreakpointUnsupported=new o("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),o.symbolString=new o("symbol-string",{fontCharacter:"\\eb8d"}),o.debugReverseContinue=new o("debug-reverse-continue",{fontCharacter:"\\eb8e"}),o.debugStepBack=new o("debug-step-back",{fontCharacter:"\\eb8f"}),o.debugRestartFrame=new o("debug-restart-frame",{fontCharacter:"\\eb90"}),o.callIncoming=new o("call-incoming",{fontCharacter:"\\eb92"}),o.callOutgoing=new o("call-outgoing",{fontCharacter:"\\eb93"}),o.menu=new o("menu",{fontCharacter:"\\eb94"}),o.expandAll=new o("expand-all",{fontCharacter:"\\eb95"}),o.feedback=new o("feedback",{fontCharacter:"\\eb96"}),o.groupByRefType=new o("group-by-ref-type",{fontCharacter:"\\eb97"}),o.ungroupByRefType=new o("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),o.account=new o("account",{fontCharacter:"\\eb99"}),o.bellDot=new o("bell-dot",{fontCharacter:"\\eb9a"}),o.debugConsole=new o("debug-console",{fontCharacter:"\\eb9b"}),o.library=new o("library",{fontCharacter:"\\eb9c"}),o.output=new o("output",{fontCharacter:"\\eb9d"}),o.runAll=new o("run-all",{fontCharacter:"\\eb9e"}),o.syncIgnored=new o("sync-ignored",{fontCharacter:"\\eb9f"}),o.pinned=new o("pinned",{fontCharacter:"\\eba0"}),o.githubInverted=new o("github-inverted",{fontCharacter:"\\eba1"}),o.debugAlt=new o("debug-alt",{fontCharacter:"\\eb91"}),o.serverProcess=new o("server-process",{fontCharacter:"\\eba2"}),o.serverEnvironment=new o("server-environment",{fontCharacter:"\\eba3"}),o.pass=new o("pass",{fontCharacter:"\\eba4"}),o.stopCircle=new o("stop-circle",{fontCharacter:"\\eba5"}),o.playCircle=new o("play-circle",{fontCharacter:"\\eba6"}),o.record=new o("record",{fontCharacter:"\\eba7"}),o.debugAltSmall=new o("debug-alt-small",{fontCharacter:"\\eba8"}),o.vmConnect=new o("vm-connect",{fontCharacter:"\\eba9"}),o.cloud=new o("cloud",{fontCharacter:"\\ebaa"}),o.merge=new o("merge",{fontCharacter:"\\ebab"}),o.exportIcon=new o("export",{fontCharacter:"\\ebac"}),o.graphLeft=new o("graph-left",{fontCharacter:"\\ebad"}),o.magnet=new o("magnet",{fontCharacter:"\\ebae"}),o.notebook=new o("notebook",{fontCharacter:"\\ebaf"}),o.redo=new o("redo",{fontCharacter:"\\ebb0"}),o.checkAll=new o("check-all",{fontCharacter:"\\ebb1"}),o.pinnedDirty=new o("pinned-dirty",{fontCharacter:"\\ebb2"}),o.passFilled=new o("pass-filled",{fontCharacter:"\\ebb3"}),o.circleLargeFilled=new o("circle-large-filled",{fontCharacter:"\\ebb4"}),o.circleLargeOutline=new o("circle-large-outline",{fontCharacter:"\\ebb5"}),o.combine=new o("combine",{fontCharacter:"\\ebb6"}),o.gather=new o("gather",{fontCharacter:"\\ebb6"}),o.table=new o("table",{fontCharacter:"\\ebb7"}),o.variableGroup=new o("variable-group",{fontCharacter:"\\ebb8"}),o.typeHierarchy=new o("type-hierarchy",{fontCharacter:"\\ebb9"}),o.typeHierarchySub=new o("type-hierarchy-sub",{fontCharacter:"\\ebba"}),o.typeHierarchySuper=new o("type-hierarchy-super",{fontCharacter:"\\ebbb"}),o.gitPullRequestCreate=new o("git-pull-request-create",{fontCharacter:"\\ebbc"}),o.runAbove=new o("run-above",{fontCharacter:"\\ebbd"}),o.runBelow=new o("run-below",{fontCharacter:"\\ebbe"}),o.notebookTemplate=new o("notebook-template",{fontCharacter:"\\ebbf"}),o.debugRerun=new o("debug-rerun",{fontCharacter:"\\ebc0"}),o.workspaceTrusted=new o("workspace-trusted",{fontCharacter:"\\ebc1"}),o.workspaceUntrusted=new o("workspace-untrusted",{fontCharacter:"\\ebc2"}),o.workspaceUnspecified=new o("workspace-unspecified",{fontCharacter:"\\ebc3"}),o.terminalCmd=new o("terminal-cmd",{fontCharacter:"\\ebc4"}),o.terminalDebian=new o("terminal-debian",{fontCharacter:"\\ebc5"}),o.terminalLinux=new o("terminal-linux",{fontCharacter:"\\ebc6"}),o.terminalPowershell=new o("terminal-powershell",{fontCharacter:"\\ebc7"}),o.terminalTmux=new o("terminal-tmux",{fontCharacter:"\\ebc8"}),o.terminalUbuntu=new o("terminal-ubuntu",{fontCharacter:"\\ebc9"}),o.terminalBash=new o("terminal-bash",{fontCharacter:"\\ebca"}),o.arrowSwap=new o("arrow-swap",{fontCharacter:"\\ebcb"}),o.copy=new o("copy",{fontCharacter:"\\ebcc"}),o.personAdd=new o("person-add",{fontCharacter:"\\ebcd"}),o.filterFilled=new o("filter-filled",{fontCharacter:"\\ebce"}),o.wand=new o("wand",{fontCharacter:"\\ebcf"}),o.debugLineByLine=new o("debug-line-by-line",{fontCharacter:"\\ebd0"}),o.inspect=new o("inspect",{fontCharacter:"\\ebd1"}),o.layers=new o("layers",{fontCharacter:"\\ebd2"}),o.layersDot=new o("layers-dot",{fontCharacter:"\\ebd3"}),o.layersActive=new o("layers-active",{fontCharacter:"\\ebd4"}),o.compass=new o("compass",{fontCharacter:"\\ebd5"}),o.compassDot=new o("compass-dot",{fontCharacter:"\\ebd6"}),o.compassActive=new o("compass-active",{fontCharacter:"\\ebd7"}),o.azure=new o("azure",{fontCharacter:"\\ebd8"}),o.issueDraft=new o("issue-draft",{fontCharacter:"\\ebd9"}),o.gitPullRequestClosed=new o("git-pull-request-closed",{fontCharacter:"\\ebda"}),o.gitPullRequestDraft=new o("git-pull-request-draft",{fontCharacter:"\\ebdb"}),o.debugAll=new o("debug-all",{fontCharacter:"\\ebdc"}),o.debugCoverage=new o("debug-coverage",{fontCharacter:"\\ebdd"}),o.runErrors=new o("run-errors",{fontCharacter:"\\ebde"}),o.folderLibrary=new o("folder-library",{fontCharacter:"\\ebdf"}),o.debugContinueSmall=new o("debug-continue-small",{fontCharacter:"\\ebe0"}),o.beakerStop=new o("beaker-stop",{fontCharacter:"\\ebe1"}),o.graphLine=new o("graph-line",{fontCharacter:"\\ebe2"}),o.graphScatter=new o("graph-scatter",{fontCharacter:"\\ebe3"}),o.pieChart=new o("pie-chart",{fontCharacter:"\\ebe4"}),o.bracket=new o("bracket",o.json.definition),o.bracketDot=new o("bracket-dot",{fontCharacter:"\\ebe5"}),o.bracketError=new o("bracket-error",{fontCharacter:"\\ebe6"}),o.lockSmall=new o("lock-small",{fontCharacter:"\\ebe7"}),o.azureDevops=new o("azure-devops",{fontCharacter:"\\ebe8"}),o.verifiedFilled=new o("verified-filled",{fontCharacter:"\\ebe9"})}(_e||(_e={}))},79881:function(Pn,Gt,_){"use strict";_.d(Gt,{B8:function(){return A},Cp:function(){return ae},F0:function(){return ne},L6:function(){return g},VV:function(){return _e},b1:function(){return o},dL:function(){return z},ri:function(){return B}});class f{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(E){setTimeout(()=>{throw E.stack?new Error(E.message+`
`+E.stack):E},0)}}emit(E){this.listeners.forEach(b=>{b(E)})}onUnexpectedError(E){this.unexpectedErrorHandler(E),this.emit(E)}onUnexpectedExternalError(E){this.unexpectedErrorHandler(E)}}const ue=new f;function z(p){_e(p)||ue.onUnexpectedError(p)}function ae(p){_e(p)||ue.onUnexpectedExternalError(p)}function B(p){if(p instanceof Error){let{name:E,message:b}=p;const I=p.stacktrace||p.stack;return{$isError:!0,name:E,message:b,stack:I}}return p}const d="Canceled";function _e(p){return p instanceof Error&&p.name===d&&p.message===d}function ne(){const p=new Error(d);return p.name=p.message,p}function o(p){return p?new Error(`Illegal argument: ${p}`):new Error("Illegal argument")}function g(p){return p?new Error(`Illegal state: ${p}`):new Error("Illegal state")}class A extends Error{constructor(E){super("NotSupported"),E&&(this.message=E)}}},4348:function(Pn,Gt,_){"use strict";_.d(Gt,{D0:function(){return A},E7:function(){return p},K3:function(){return g},Q5:function(){return o},ZD:function(){return E},ju:function(){return B}});var f=_(79881),ue=_(69323),z=_(34502),ae=_(95830),B;(function(b){b.None=()=>ue.JT.None;function I(P){return(G,ie=null,X)=>{let y=!1,v;return v=P(O=>{if(!y)return v?v.dispose():y=!0,G.call(ie,O)},null,X),y&&v.dispose(),v}}b.once=I;function j(P,G){return w((ie,X=null,y)=>P(v=>ie.call(X,G(v)),null,y))}b.map=j;function $(P,G){return w((ie,X=null,y)=>P(v=>{G(v),ie.call(X,v)},null,y))}b.forEach=$;function le(P,G){return w((ie,X=null,y)=>P(v=>G(v)&&ie.call(X,v),null,y))}b.filter=le;function F(P){return P}b.signal=F;function H(...P){return(G,ie=null,X)=>(0,ue.F8)(...P.map(y=>y(v=>G.call(ie,v),null,X)))}b.any=H;function D(P,G,ie){let X=ie;return j(P,y=>(X=G(X,y),X))}b.reduce=D;function w(P){let G;const ie=new o({onFirstListenerAdd(){G=P(ie.fire,ie)},onLastListenerRemove(){G.dispose()}});return ie.event}function Q(P,G,ie=100,X=!1,y){let v,O,pe,He=0;const tt=new o({leakWarningThreshold:y,onFirstListenerAdd(){v=P(Ct=>{He++,O=G(O,Ct),X&&!pe&&(tt.fire(O),O=void 0),clearTimeout(pe),pe=setTimeout(()=>{const Rt=O;O=void 0,pe=void 0,(!X||He>1)&&tt.fire(Rt),He=0},ie)})},onLastListenerRemove(){v.dispose()}});return tt.event}b.debounce=Q;function re(P,G=(ie,X)=>ie===X){let ie=!0,X;return le(P,y=>{const v=ie||!G(y,X);return ie=!1,X=y,v})}b.latch=re;function ee(P,G){return[b.filter(P,G),b.filter(P,ie=>!G(ie))]}b.split=ee;function oe(P,G=!1,ie=[]){let X=ie.slice(),y=P(pe=>{X?X.push(pe):O.fire(pe)});const v=()=>{X&&X.forEach(pe=>O.fire(pe)),X=null},O=new o({onFirstListenerAdd(){y||(y=P(pe=>O.fire(pe)))},onFirstListenerDidAdd(){X&&(G?setTimeout(v):v())},onLastListenerRemove(){y&&y.dispose(),y=null}});return O.event}b.buffer=oe;class ge{constructor(G){this.event=G}map(G){return new ge(j(this.event,G))}forEach(G){return new ge($(this.event,G))}filter(G){return new ge(le(this.event,G))}reduce(G,ie){return new ge(D(this.event,G,ie))}latch(){return new ge(re(this.event))}debounce(G,ie=100,X=!1,y){return new ge(Q(this.event,G,ie,X,y))}on(G,ie,X){return this.event(G,ie,X)}once(G,ie,X){return I(this.event)(G,ie,X)}}function me(P){return new ge(P)}b.chain=me;function at(P,G,ie=X=>X){const X=(...pe)=>O.fire(ie(...pe)),y=()=>P.on(G,X),v=()=>P.removeListener(G,X),O=new o({onFirstListenerAdd:y,onLastListenerRemove:v});return O.event}b.fromNodeEventEmitter=at;function Z(P,G,ie=X=>X){const X=(...pe)=>O.fire(ie(...pe)),y=()=>P.addEventListener(G,X),v=()=>P.removeEventListener(G,X),O=new o({onFirstListenerAdd:y,onLastListenerRemove:v});return O.event}b.fromDOMEventEmitter=Z;function T(P){return new Promise(G=>I(P)(G))}b.toPromise=T})(B||(B={}));class d{constructor(I){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${I}_${d._idPool++}`}start(I){this._stopWatch=new ae.G(!0),this._listenerCount=I}stop(){if(this._stopWatch){const I=this._stopWatch.elapsed();this._elapsedOverall+=I,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${I.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}d._idPool=0;let _e=-1;class ne{constructor(I,j=Math.random().toString(18).slice(2,5)){this.customThreshold=I,this.name=j,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(I){let j=_e;if(typeof this.customThreshold=="number"&&(j=this.customThreshold),j<=0||I<j)return;this._stacks||(this._stacks=new Map);const $=new Error().stack.split(`
`).slice(3).join(`
`),le=this._stacks.get($)||0;if(this._stacks.set($,le+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=j*.5;let F,H=0;for(const[D,w]of this._stacks)(!F||H<w)&&(F=D,H=w);console.warn(`[${this.name}] potential listener LEAK detected, having ${I} listeners already. MOST frequent listener (${H}):`),console.warn(F)}return()=>{const F=this._stacks.get($)||0;this._stacks.set($,F-1)}}}class o{constructor(I){var j;this._disposed=!1,this._options=I,this._leakageMon=_e>0?new ne(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((j=this._options)===null||j===void 0)&&j._profName?new d(this._options._profName):void 0}get event(){return this._event||(this._event=(I,j,$)=>{var le;this._listeners||(this._listeners=new z.S);const F=this._listeners.isEmpty();F&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const H=this._listeners.push(j?[I,j]:I);F&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,I,j);const D=(le=this._leakageMon)===null||le===void 0?void 0:le.check(this._listeners.size),w=(0,ue.OF)(()=>{D&&D(),this._disposed||(H(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return $ instanceof ue.SL?$.add(w):Array.isArray($)&&$.push(w),w}),this._event}fire(I){var j,$;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new z.S);for(let le of this._listeners)this._deliveryQueue.push([le,I]);for((j=this._perfMon)===null||j===void 0||j.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[le,F]=this._deliveryQueue.shift();try{typeof le=="function"?le.call(void 0,F):le[0].call(le[1],F)}catch(H){(0,f.dL)(H)}}($=this._perfMon)===null||$===void 0||$.stop()}}dispose(){var I,j,$,le,F;this._disposed||(this._disposed=!0,(I=this._listeners)===null||I===void 0||I.clear(),(j=this._deliveryQueue)===null||j===void 0||j.clear(),(le=($=this._options)===null||$===void 0?void 0:$.onLastListenerRemove)===null||le===void 0||le.call($),(F=this._leakageMon)===null||F===void 0||F.dispose())}}class g extends o{constructor(I){super(I),this._isPaused=0,this._eventQueue=new z.S,this._mergeFn=I==null?void 0:I.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const I=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(I))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(I){this._listeners&&(this._isPaused!==0?this._eventQueue.push(I):super.fire(I))}}class A extends g{constructor(I){var j;super(I),this._delay=(j=I.delay)!==null&&j!==void 0?j:100}fire(I){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(I)}}class p{constructor(){this.buffers=[]}wrapEvent(I){return(j,$,le)=>I(F=>{const H=this.buffers[this.buffers.length-1];H?H.push(()=>j.call($,F)):j.call($,F)},void 0,le)}bufferEvents(I){const j=[];this.buffers.push(j);const $=I();return this.buffers.pop(),j.forEach(le=>le()),$}}class E{constructor(){this.listening=!1,this.inputEvent=B.None,this.inputEventListener=ue.JT.None,this.emitter=new o({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(I){this.inputEvent=I,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=I(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(Pn,Gt,_){"use strict";_.d(Gt,{I:function(){return f}});function f(ue){const z=this;let ae=!1,B;return function(){return ae||(ae=!0,B=ue.apply(z,arguments)),B}}},88226:function(Pn,Gt,_){"use strict";_.d(Gt,{$:function(){return f}});var f;(function(ue){function z(H){return H&&typeof H=="object"&&typeof H[Symbol.iterator]=="function"}ue.is=z;const ae=Object.freeze([]);function B(){return ae}ue.empty=B;function*d(H){yield H}ue.single=d;function _e(H){return H||ae}ue.from=_e;function ne(H){return!H||H[Symbol.iterator]().next().done===!0}ue.isEmpty=ne;function o(H){return H[Symbol.iterator]().next().value}ue.first=o;function g(H,D){for(const w of H)if(D(w))return!0;return!1}ue.some=g;function A(H,D){for(const w of H)if(D(w))return w}ue.find=A;function*p(H,D){for(const w of H)D(w)&&(yield w)}ue.filter=p;function*E(H,D){let w=0;for(const Q of H)yield D(Q,w++)}ue.map=E;function*b(...H){for(const D of H)for(const w of D)yield w}ue.concat=b;function*I(H){for(const D of H)for(const w of D)yield w}ue.concatNested=I;function j(H,D,w){let Q=w;for(const re of H)Q=D(Q,re);return Q}ue.reduce=j;function*$(H,D,w=H.length){for(D<0&&(D+=H.length),w<0?w+=H.length:w>H.length&&(w=H.length);D<w;D++)yield H[D]}ue.slice=$;function le(H,D=Number.POSITIVE_INFINITY){const w=[];if(D===0)return[w,H];const Q=H[Symbol.iterator]();for(let re=0;re<D;re++){const ee=Q.next();if(ee.done)return[w,ue.empty()];w.push(ee.value)}return[w,{[Symbol.iterator](){return Q}}]}ue.consume=le;function F(H,D,w=(Q,re)=>Q===re){const Q=H[Symbol.iterator](),re=D[Symbol.iterator]();for(;;){const ee=Q.next(),oe=re.next();if(ee.done!==oe.done)return!1;if(ee.done)return!0;if(!w(ee.value,oe.value))return!1}}ue.equals=F})(f||(f={}))},69323:function(Pn,Gt,_){"use strict";_.d(Gt,{B9:function(){return E},F8:function(){return b},JT:function(){return $},Jz:function(){return F},OF:function(){return I},SL:function(){return j},Wf:function(){return p},XK:function(){return le},dk:function(){return g}});var f=_(17845),ue=_(88226);const z=!1;let ae=null;function B(H){ae=H}if(z){const H="__is_disposable_tracked__";B(new class{trackDisposable(D){const w=new Error("Potentially leaked disposable").stack;setTimeout(()=>{D[H]||console.log(w)},3e3)}setParent(D,w){if(D&&D!==$.None)try{D[H]=!0}catch(Q){}}markAsDisposed(D){if(D&&D!==$.None)try{D[H]=!0}catch(w){}}markAsSingleton(D){}})}function d(H){return ae==null||ae.trackDisposable(H),H}function _e(H){ae==null||ae.markAsDisposed(H)}function ne(H,D){ae==null||ae.setParent(H,D)}function o(H,D){if(ae)for(const w of H)ae.setParent(w,D)}function g(H){return ae==null||ae.markAsSingleton(H),H}class A extends Error{constructor(D){super(`Encountered errors while disposing of store. Errors: [${D.join(", ")}]`),this.errors=D}}function p(H){return typeof H.dispose=="function"&&H.dispose.length===0}function E(H){if(ue.$.is(H)){let D=[];for(const w of H)if(w)try{w.dispose()}catch(Q){D.push(Q)}if(D.length===1)throw D[0];if(D.length>1)throw new A(D);return Array.isArray(H)?[]:H}else if(H)return H.dispose(),H}function b(...H){const D=I(()=>E(H));return o(H,D),D}function I(H){const D=d({dispose:(0,f.I)(()=>{_e(D),H()})});return D}class j{constructor(){this._toDispose=new Set,this._isDisposed=!1,d(this)}dispose(){this._isDisposed||(_e(this),this._isDisposed=!0,this.clear())}clear(){try{E(this._toDispose.values())}finally{this._toDispose.clear()}}add(D){if(!D)return D;if(D===this)throw new Error("Cannot register a disposable on itself!");return ne(D,this),this._isDisposed?j.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(D),D}}j.DISABLE_DISPOSED_WARNING=!1;class ${constructor(){this._store=new j,d(this),ne(this._store,this)}dispose(){_e(this),this._store.dispose()}_register(D){if(D===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(D)}}$.None=Object.freeze({dispose(){}});class le{constructor(){this._isDisposed=!1,d(this)}get value(){return this._isDisposed?void 0:this._value}set value(D){var w;this._isDisposed||D===this._value||((w=this._value)===null||w===void 0||w.dispose(),D&&ne(D,this),this._value=D)}clear(){this.value=void 0}dispose(){var D;this._isDisposed=!0,_e(this),(D=this._value)===null||D===void 0||D.dispose(),this._value=void 0}clearAndLeak(){const D=this._value;return this._value=void 0,D&&ne(D,null),D}}class F{constructor(D){this.object=D}dispose(){}}},34502:function(Pn,Gt,_){"use strict";_.d(Gt,{S:function(){return ue}});class f{constructor(ae){this.element=ae,this.next=f.Undefined,this.prev=f.Undefined}}f.Undefined=new f(void 0);class ue{constructor(){this._first=f.Undefined,this._last=f.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===f.Undefined}clear(){let ae=this._first;for(;ae!==f.Undefined;){const B=ae.next;ae.prev=f.Undefined,ae.next=f.Undefined,ae=B}this._first=f.Undefined,this._last=f.Undefined,this._size=0}unshift(ae){return this._insert(ae,!1)}push(ae){return this._insert(ae,!0)}_insert(ae,B){const d=new f(ae);if(this._first===f.Undefined)this._first=d,this._last=d;else if(B){const ne=this._last;this._last=d,d.prev=ne,ne.next=d}else{const ne=this._first;this._first=d,d.next=ne,ne.prev=d}this._size+=1;let _e=!1;return()=>{_e||(_e=!0,this._remove(d))}}shift(){if(this._first!==f.Undefined){const ae=this._first.element;return this._remove(this._first),ae}}pop(){if(this._last!==f.Undefined){const ae=this._last.element;return this._remove(this._last),ae}}_remove(ae){if(ae.prev!==f.Undefined&&ae.next!==f.Undefined){const B=ae.prev;B.next=ae.next,ae.next.prev=B}else ae.prev===f.Undefined&&ae.next===f.Undefined?(this._first=f.Undefined,this._last=f.Undefined):ae.next===f.Undefined?(this._last=this._last.prev,this._last.next=f.Undefined):ae.prev===f.Undefined&&(this._first=this._first.next,this._first.prev=f.Undefined);this._size-=1}*[Symbol.iterator](){let ae=this._first;for(;ae!==f.Undefined;)yield ae.element,ae=ae.next}}},23345:function(Pn,Gt,_){"use strict";_.d(Gt,{$L:function(){return Q},ED:function(){return F},IJ:function(){return D},OS:function(){return ge},WE:function(){return ee},dz:function(){return H},gn:function(){return re},li:function(){return I},r:function(){return Z},tY:function(){return w},xS:function(){return oe}});var f=_(97671),ue;const z="en";let ae=!1,B=!1,d=!1,_e=!1,ne=!1,o=!1,g=!1,A,p=null,E=null,b;const I=typeof self=="object"?self:typeof _.g=="object"?_.g:{};let j;typeof I.vscode!="undefined"&&typeof I.vscode.process!="undefined"?j=I.vscode.process:typeof f!="undefined"&&(j=f);const $=typeof((ue=j==null?void 0:j.versions)===null||ue===void 0?void 0:ue.electron)=="string"&&j.type==="renderer";if(typeof navigator=="object"&&!$)b=navigator.userAgent,ae=b.indexOf("Windows")>=0,B=b.indexOf("Macintosh")>=0,g=(b.indexOf("Macintosh")>=0||b.indexOf("iPad")>=0||b.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,d=b.indexOf("Linux")>=0,o=!0,A=navigator.language,p=A;else if(typeof j=="object"){ae=j.platform==="win32",B=j.platform==="darwin",d=j.platform==="linux",_e=d&&!!j.env.SNAP&&!!j.env.SNAP_REVISION,A=z,p=z;const T=j.env.VSCODE_NLS_CONFIG;if(T)try{const P=JSON.parse(T),G=P.availableLanguages["*"];A=P.locale,p=G||z,E=P._translationsConfigFile}catch(P){}ne=!0}else console.error("Unable to resolve platform.");let le=0;B?le=1:ae?le=3:d&&(le=2);const F=ae,H=B,D=d,w=ne,Q=o,re=g,ee=b,oe=function(){if(I.setImmediate)return I.setImmediate.bind(I);if(typeof I.postMessage=="function"&&!I.importScripts){let G=[];I.addEventListener("message",X=>{if(X.data&&X.data.vscodeSetImmediateId)for(let y=0,v=G.length;y<v;y++){const O=G[y];if(O.id===X.data.vscodeSetImmediateId){G.splice(y,1),O.callback();return}}});let ie=0;return X=>{const y=++ie;G.push({id:y,callback:X}),I.postMessage({vscodeSetImmediateId:y},"*")}}if(typeof(j==null?void 0:j.nextTick)=="function")return j.nextTick.bind(j);const P=Promise.resolve();return G=>P.then(G)}(),ge=B||g?2:ae?1:3;let me=!0,at=!1;function Z(){if(!at){at=!0;const T=new Uint8Array(2);T[0]=1,T[1]=2,me=new Uint16Array(T.buffer)[0]===513}return me}},95830:function(Pn,Gt,_){"use strict";_.d(Gt,{G:function(){return z}});var f=_(23345);const ue=f.li.performance&&typeof f.li.performance.now=="function";class z{constructor(B){this._highResolution=ue&&B,this._startTime=this._now(),this._stopTime=-1}static create(B=!0){return new z(B)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?f.li.performance.now():Date.now()}}},82983:function(Pn,Gt,_){"use strict";_.d(Gt,{$i:function(){return He},C8:function(){return Ht},GF:function(){return A},HO:function(){return ie},IO:function(){return p},K7:function(){return Ft},Kw:function(){return Dt},LC:function(){return I},Mh:function(){return oe},P1:function(){return ge},PJ:function(){return sn},Qe:function(){return tt},R1:function(){return g},RP:function(){return O},S6:function(){return Je},TT:function(){return F},Ut:function(){return y},V8:function(){return j},WU:function(){return z},YK:function(){return at},YU:function(){return ae},ZG:function(){return me},ZH:function(){return T},ab:function(){return Ct},c1:function(){return Ke},df:function(){return Q},ec:function(){return B},fi:function(){return yt},fy:function(){return d},j3:function(){return _e},j_:function(){return D},m5:function(){return f},mK:function(){return w},mr:function(){return E},oH:function(){return V},oL:function(){return ne},ok:function(){return ee},ow:function(){return $},qq:function(){return re},qu:function(){return le},rL:function(){return Z},uS:function(){return qt},un:function(){return o},uq:function(){return b},vH:function(){return G},xe:function(){return Rt},zY:function(){return H}});function f(M){return!M||typeof M!="string"?!0:M.trim().length===0}const ue=/{(\d+)}/g;function z(M,...Se){return Se.length===0?M:M.replace(ue,function(be,W){const fe=parseInt(W,10);return isNaN(fe)||fe<0||fe>=Se.length?be:Se[fe]})}function ae(M){return M.replace(/[<>&]/g,function(Se){switch(Se){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return Se}})}function B(M){return M.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function d(M,Se=" "){const be=_e(M,Se);return ne(be,Se)}function _e(M,Se){if(!M||!Se)return M;const be=Se.length;if(be===0||M.length===0)return M;let W=0;for(;M.indexOf(Se,W)===W;)W=W+be;return M.substring(W)}function ne(M,Se){if(!M||!Se)return M;const be=Se.length,W=M.length;if(be===0||W===0)return M;let fe=W,ye=-1;for(;ye=M.lastIndexOf(Se,fe-1),!(ye===-1||ye+be!==fe);){if(ye===0)return"";fe=ye}return M.substring(0,fe)}function o(M){return M.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function g(M){return M.replace(/\*/g,"")}function A(M,Se,be={}){if(!M)throw new Error("Cannot create regex from empty string");Se||(M=B(M)),be.wholeWord&&(/\B/.test(M.charAt(0))||(M="\\b"+M),/\B/.test(M.charAt(M.length-1))||(M=M+"\\b"));let W="";return be.global&&(W+="g"),be.matchCase||(W+="i"),be.multiline&&(W+="m"),be.unicode&&(W+="u"),new RegExp(M,W)}function p(M){return M.source==="^"||M.source==="^$"||M.source==="$"||M.source==="^\\s*$"?!1:!!(M.exec("")&&M.lastIndex===0)}function E(M){return(M.global?"g":"")+(M.ignoreCase?"i":"")+(M.multiline?"m":"")+(M.unicode?"u":"")}function b(M){return M.split(/\r\n|\r|\n/)}function I(M){for(let Se=0,be=M.length;Se<be;Se++){const W=M.charCodeAt(Se);if(W!==32&&W!==9)return Se}return-1}function j(M,Se=0,be=M.length){for(let W=Se;W<be;W++){const fe=M.charCodeAt(W);if(fe!==32&&fe!==9)return M.substring(Se,W)}return M.substring(Se,be)}function $(M,Se=M.length-1){for(let be=Se;be>=0;be--){const W=M.charCodeAt(be);if(W!==32&&W!==9)return be}return-1}function le(M,Se){return M<Se?-1:M>Se?1:0}function F(M,Se,be=0,W=M.length,fe=0,ye=Se.length){for(;be<W&&fe<ye;be++,fe++){let qe=M.charCodeAt(be),Ye=Se.charCodeAt(fe);if(qe<Ye)return-1;if(qe>Ye)return 1}const $e=W-be,Ve=ye-fe;return $e<Ve?-1:$e>Ve?1:0}function H(M,Se){return D(M,Se,0,M.length,0,Se.length)}function D(M,Se,be=0,W=M.length,fe=0,ye=Se.length){for(;be<W&&fe<ye;be++,fe++){let qe=M.charCodeAt(be),Ye=Se.charCodeAt(fe);if(qe===Ye)continue;if(qe>=128||Ye>=128)return F(M.toLowerCase(),Se.toLowerCase(),be,W,fe,ye);w(qe)&&(qe-=32),w(Ye)&&(Ye-=32);const ot=qe-Ye;if(ot!==0)return ot}const $e=W-be,Ve=ye-fe;return $e<Ve?-1:$e>Ve?1:0}function w(M){return M>=97&&M<=122}function Q(M){return M>=65&&M<=90}function re(M,Se){return M.length===Se.length&&D(M,Se)===0}function ee(M,Se){const be=Se.length;return Se.length>M.length?!1:D(M,Se,0,be)===0}function oe(M,Se){let be,W=Math.min(M.length,Se.length);for(be=0;be<W;be++)if(M.charCodeAt(be)!==Se.charCodeAt(be))return be;return W}function ge(M,Se){let be,W=Math.min(M.length,Se.length);const fe=M.length-1,ye=Se.length-1;for(be=0;be<W;be++)if(M.charCodeAt(fe-be)!==Se.charCodeAt(ye-be))return be;return W}function me(M){return 55296<=M&&M<=56319}function at(M){return 56320<=M&&M<=57343}function Z(M,Se){return(M-55296<<10)+(Se-56320)+65536}function T(M,Se,be){const W=M.charCodeAt(be);if(me(W)&&be+1<Se){const fe=M.charCodeAt(be+1);if(at(fe))return Z(W,fe)}return W}function P(M,Se){const be=M.charCodeAt(Se-1);if(at(be)&&Se>1){const W=M.charCodeAt(Se-2);if(me(W))return Z(W,be)}return be}function G(M,Se){const be=Fe.getInstance(),W=Se,fe=M.length,ye=T(M,fe,Se);Se+=ye>=65536?2:1;let $e=be.getGraphemeBreakType(ye);for(;Se<fe;){const Ve=T(M,fe,Se),qe=be.getGraphemeBreakType(Ve);if(yt($e,qe))break;Se+=Ve>=65536?2:1,$e=qe}return Se-W}function ie(M,Se){const be=Fe.getInstance(),W=Se,fe=P(M,Se);Se-=fe>=65536?2:1;let ye=be.getGraphemeBreakType(fe);for(;Se>0;){const $e=P(M,Se),Ve=be.getGraphemeBreakType($e);if(yt(Ve,ye))break;Se-=$e>=65536?2:1,ye=Ve}return W-Se}const X=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function y(M){return X.test(M)}const v=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function O(M){return v.test(M)}const pe=/^[\t\n\r\x20-\x7E]*$/;function He(M){return pe.test(M)}const tt=/[\u2028\u2029]/;function Ct(M){return tt.test(M)}function Rt(M){for(let Se=0,be=M.length;Se<be;Se++)if(Ft(M.charCodeAt(Se)))return!0;return!1}function Ft(M){return M=+M,M>=11904&&M<=55215||M>=63744&&M<=64255||M>=65281&&M<=65374}function Ht(M){return M>=127462&&M<=127487||M===8986||M===8987||M===9200||M===9203||M>=9728&&M<=10175||M===11088||M===11093||M>=127744&&M<=128591||M>=128640&&M<=128764||M>=128992&&M<=129003||M>=129280&&M<=129535||M>=129648&&M<=129750}const Ke="\uFEFF";function qt(M){return!!(M&&M.length>0&&M.charCodeAt(0)===65279)}function Dt(M,Se=!1){return M?(Se&&(M=M.replace(/\\./g,"")),M.toLowerCase()!==M):!1}function sn(M){return M=M%(2*26),M<26?String.fromCharCode(97+M):String.fromCharCode(65+M-26)}function Je(M){return Fe.getInstance().getGraphemeBreakType(M)}function yt(M,Se){return M===0?Se!==5&&Se!==7:M===2&&Se===3?!1:M===4||M===2||M===3||Se===4||Se===2||Se===3?!0:!(M===8&&(Se===8||Se===9||Se===11||Se===12)||(M===11||M===9)&&(Se===9||Se===10)||(M===12||M===10)&&Se===10||Se===5||Se===13||Se===7||M===1||M===13&&Se===14||M===6&&Se===6)}class Fe{constructor(){this._data=we()}static getInstance(){return Fe._INSTANCE||(Fe._INSTANCE=new Fe),Fe._INSTANCE}getGraphemeBreakType(Se){if(Se<32)return Se===10?3:Se===13?2:4;if(Se<127)return 0;const be=this._data,W=be.length/3;let fe=1;for(;fe<=W;)if(Se<be[3*fe])fe=2*fe;else if(Se>be[3*fe+1])fe=2*fe+1;else return be[3*fe+2];return 0}}Fe._INSTANCE=null;function we(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function V(M,Se){if(M===0)return 0;const be=je(M,Se);if(be!==void 0)return be;const W=P(Se,M);return M-=Qe(W),M}function je(M,Se){let be=P(Se,M);for(M-=Qe(be);q(be)||be===65039||be===8419;){if(M===0)return;be=P(Se,M),M-=Qe(be)}if(Ht(be)){if(M>=0){const W=P(Se,M);W===8205&&(M-=Qe(W))}return M}}function Qe(M){return M>=65536?2:1}function q(M){return 127995<=M&&M<=127999}},72999:function(Pn,Gt,_){"use strict";_.d(Gt,{$E:function(){return I},$K:function(){return _e},D8:function(){return p},HD:function(){return ue},IU:function(){return j},Jp:function(){return ne},Kn:function(){return z},cW:function(){return g},f6:function(){return $},hj:function(){return ae},jn:function(){return B},kJ:function(){return f},mf:function(){return A},o8:function(){return d},p_:function(){return o},vE:function(){return le}});function f(F){return Array.isArray(F)}function ue(F){return typeof F=="string"}function z(F){return typeof F=="object"&&F!==null&&!Array.isArray(F)&&!(F instanceof RegExp)&&!(F instanceof Date)}function ae(F){return typeof F=="number"&&!isNaN(F)}function B(F){return F===!0||F===!1}function d(F){return typeof F=="undefined"}function _e(F){return!ne(F)}function ne(F){return d(F)||F===null}function o(F,H){if(!F)throw new Error(H?`Unexpected type, expected '${H}'`:"Unexpected type")}function g(F){if(ne(F))throw new Error("Assertion Failed: argument is undefined or null");return F}function A(F){return typeof F=="function"}function p(F,H){const D=Math.min(F.length,H.length);for(let w=0;w<D;w++)E(F[w],H[w])}function E(F,H){if(ue(H)){if(typeof F!==H)throw new Error(`argument does not match constraint: typeof ${H}`)}else if(A(H)){try{if(F instanceof H)return}catch(D){}if(!ne(F)&&F.constructor===H||H.length===1&&H.call(void 0,F)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function b(F){let H=[],D=Object.getPrototypeOf(F);for(;Object.prototype!==D;)H=H.concat(Object.getOwnPropertyNames(D)),D=Object.getPrototypeOf(D);return H}function I(F){const H=[];for(const D of b(F))typeof F[D]=="function"&&H.push(D);return H}function j(F,H){const D=Q=>function(){const re=Array.prototype.slice.call(arguments,0);return H(Q,re)};let w={};for(const Q of F)w[Q]=D(Q);return w}function $(F){return F===null?void 0:F}function le(F,H="Unreachable"){throw new Error(H)}},13268:function(Pn,Gt,_){"use strict";_.d(Gt,{N:function(){return ue}});function f(z,ae){let B;return ae.length===0?B=z:B=z.replace(/\{(\d+)\}/g,function(d,_e){const ne=_e[0];return typeof ae[ne]!="undefined"?ae[ne]:d}),B}function ue(z,ae,...B){return f(ae,B)}},96236:function(Pn,Gt,_){"use strict";_.d(Gt,{BH:function(){return j},NZ:function(){return $},U8:function(){return le},co:function(){return I},eH:function(){return b},vr:function(){return E}});var f=_(75918),ue=_(52615),z=_(4348),ae=_(88226),B=_(69323),d=_(34502),_e=_(35884),ne=_(90689),o=_(16925),g=_(49055),A=function(F,H,D,w){var Q=arguments.length,re=Q<3?H:w===null?w=Object.getOwnPropertyDescriptor(H,D):w,ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")re=Reflect.decorate(F,H,D,w);else for(var oe=F.length-1;oe>=0;oe--)(ee=F[oe])&&(re=(Q<3?ee(re):Q>3?ee(H,D,re):ee(H,D))||re);return Q>3&&re&&Object.defineProperty(H,D,re),re},p=function(F,H){return function(D,w){H(D,w,F)}};function E(F){return F.command!==void 0}class b{constructor(H){this.id=b._idPool++,this._debugName=H}}b._idPool=0,b.CommandPalette=new b("CommandPalette"),b.EditorContext=new b("EditorContext"),b.SimpleEditorContext=new b("SimpleEditorContext"),b.EditorContextCopy=new b("EditorContextCopy"),b.EditorContextPeek=new b("EditorContextPeek"),b.MenubarEditMenu=new b("MenubarEditMenu"),b.MenubarCopy=new b("MenubarCopy"),b.MenubarGoMenu=new b("MenubarGoMenu"),b.MenubarSelectionMenu=new b("MenubarSelectionMenu"),b.InlineCompletionsActions=new b("InlineCompletionsActions");const I=(0,o.yh)("menuService"),j=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new z.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:F=>F===b.CommandPalette}}addCommand(F){return this.addCommands(ae.$.single(F))}addCommands(F){for(const H of F)this._commands.set(H.id,H);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,B.OF)(()=>{let H=!1;for(const D of F)H=this._commands.delete(D.id)||H;H&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(F){return this._commands.get(F)}getCommands(){const F=new Map;return this._commands.forEach((H,D)=>F.set(D,H)),F}appendMenuItem(F,H){return this.appendMenuItems(ae.$.single({id:F,item:H}))}appendMenuItems(F){const H=new Set,D=new d.S;for(const{id:w,item:Q}of F){let re=this._menuItems.get(w);re||(re=new d.S,this._menuItems.set(w,re)),D.push(re.push(Q)),H.add(w)}return this._onDidChangeMenu.fire(H),(0,B.OF)(()=>{if(D.size>0){for(let w of D)w();this._onDidChangeMenu.fire(H),D.clear()}})}getMenuItems(F){let H;return this._menuItems.has(F)?H=[...this._menuItems.get(F)]:H=[],F===b.CommandPalette&&this._appendImplicitItems(H),H}_appendImplicitItems(F){const H=new Set;for(const D of F)E(D)&&(H.add(D.command.id),D.alt&&H.add(D.alt.id));this._commands.forEach((D,w)=>{H.has(w)||F.push({command:D})})}};class $ extends f.wY{constructor(H,D,w,Q){super(`submenuitem.${H.submenu.id}`,typeof H.title=="string"?H.title:H.title.value,[],"submenu"),this.item=H,this._menuService=D,this._contextKeyService=w,this._options=Q}get actions(){const H=[],D=this._menuService.createMenu(this.item.submenu,this._contextKeyService),w=D.getActions(this._options);D.dispose();for(const[,Q]of w)Q.length>0&&(H.push(...Q),H.push(new f.Z0));return H.length&&H.pop(),H}}let le=class Rl{constructor(H,D,w,Q,re){var ee,oe;if(this._commandService=re,this.id=H.id,this.label=w!=null&&w.renderShortTitle&&H.shortTitle?typeof H.shortTitle=="string"?H.shortTitle:H.shortTitle.value:typeof H.title=="string"?H.title:H.title.value,this.tooltip=(oe=typeof H.tooltip=="string"?H.tooltip:(ee=H.tooltip)===null||ee===void 0?void 0:ee.value)!==null&&oe!==void 0?oe:"",this.enabled=!H.precondition||Q.contextMatchesRules(H.precondition),this.checked=void 0,H.toggled){const ge=H.toggled.condition?H.toggled:{condition:H.toggled};this.checked=Q.contextMatchesRules(ge.condition),this.checked&&ge.tooltip&&(this.tooltip=typeof ge.tooltip=="string"?ge.tooltip:ge.tooltip.value),ge.title&&(this.label=typeof ge.title=="string"?ge.title:ge.title.value)}this.item=H,this.alt=D?new Rl(D,void 0,w,Q,re):void 0,this._options=w,g.kS.isThemeIcon(H.icon)&&(this.class=ue.dT.asClassName(H.icon))}dispose(){}run(...H){var D,w;let Q=[];return!((D=this._options)===null||D===void 0)&&D.arg&&(Q=[...Q,this._options.arg]),!((w=this._options)===null||w===void 0)&&w.shouldForwardArgs&&(Q=[...Q,...H]),this._commandService.executeCommand(this.id,...Q)}};le=A([p(3,ne.i6),p(4,_e.H)],le)},35884:function(Pn,Gt,_){"use strict";_.d(Gt,{H:function(){return _e},P:function(){return ne}});var f=_(4348),ue=_(88226),z=_(69323),ae=_(34502),B=_(72999),d=_(16925);const _e=(0,d.yh)("commandService"),ne=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new f.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(o,g){if(!o)throw new Error("invalid command");if(typeof o=="string"){if(!g)throw new Error("invalid command");return this.registerCommand({id:o,handler:g})}if(o.description){const I=[];for(let $ of o.description.args)I.push($.constraint);const j=o.handler;o.handler=function($,...le){return(0,B.D8)(le,I),j($,...le)}}const{id:A}=o;let p=this._commands.get(A);p||(p=new ae.S,this._commands.set(A,p));let E=p.unshift(o),b=(0,z.OF)(()=>{E();const I=this._commands.get(A);I!=null&&I.isEmpty()&&this._commands.delete(A)});return this._onDidRegisterCommand.fire(A),b}registerCommandAlias(o,g){return ne.registerCommand(o,(A,...p)=>A.get(_e).executeCommand(g,...p))}getCommand(o){const g=this._commands.get(o);if(!(!g||g.isEmpty()))return ue.$.first(g)}getCommands(){const o=new Map;for(const g of this._commands.keys()){const A=this.getCommand(g);A&&o.set(g,A)}return o}};ne.registerCommand("noop",()=>{})},90689:function(Pn,Gt,_){"use strict";_.d(Gt,{Ao:function(){return _e},Eq:function(){return Z},Fb:function(){return ne},K8:function(){return G},i6:function(){return at},uy:function(){return me}});var f=_(23345),ue=_(82983),z=_(16925);let ae=f.WE||"";const B=new Map;B.set("false",!1),B.set("true",!0),B.set("isMac",f.dz),B.set("isLinux",f.IJ),B.set("isWindows",f.ED),B.set("isWeb",f.$L),B.set("isMacNative",f.dz&&!f.$L),B.set("isEdge",ae.indexOf("Edg/")>=0),B.set("isFirefox",ae.indexOf("Firefox")>=0),B.set("isChrome",ae.indexOf("Chrome")>=0),B.set("isSafari",ae.indexOf("Safari")>=0);const d=Object.prototype.hasOwnProperty;class _e{static has(y){return p.create(y)}static equals(y,v){return E.create(y,v)}static regex(y,v){return Q.create(y,v)}static not(y){return $.create(y)}static and(...y){return oe.create(y,null)}static or(...y){return ge.create(y,null,!0)}static deserialize(y,v=!1){if(y)return this._deserializeOrExpression(y,v)}static _deserializeOrExpression(y,v){let O=y.split("||");return ge.create(O.map(pe=>this._deserializeAndExpression(pe,v)),null,!0)}static _deserializeAndExpression(y,v){let O=y.split("&&");return oe.create(O.map(pe=>this._deserializeOne(pe,v)),null)}static _deserializeOne(y,v){if(y=y.trim(),y.indexOf("!=")>=0){let O=y.split("!=");return j.create(O[0].trim(),this._deserializeValue(O[1],v))}if(y.indexOf("==")>=0){let O=y.split("==");return E.create(O[0].trim(),this._deserializeValue(O[1],v))}if(y.indexOf("=~")>=0){let O=y.split("=~");return Q.create(O[0].trim(),this._deserializeRegexValue(O[1],v))}if(y.indexOf(" in ")>=0){let O=y.split(" in ");return b.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(y)){const O=y.split(">=");return H.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(y)){const O=y.split(">");return F.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(y)){const O=y.split("<=");return w.create(O[0].trim(),O[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(y)){const O=y.split("<");return D.create(O[0].trim(),O[1].trim())}return/^\!\s*/.test(y)?$.create(y.substr(1).trim()):p.create(y)}static _deserializeValue(y,v){if(y=y.trim(),y==="true")return!0;if(y==="false")return!1;let O=/^'([^']*)'$/.exec(y);return O?O[1].trim():y}static _deserializeRegexValue(y,v){if((0,ue.m5)(y)){if(v)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let O=y.indexOf("/"),pe=y.lastIndexOf("/");if(O===pe||O<0){if(v)throw new Error(`bad regexp-value '${y}', missing /-enclosure`);return console.warn(`bad regexp-value '${y}', missing /-enclosure`),null}let He=y.slice(O+1,pe),tt=y[pe+1]==="i"?"i":"";try{return new RegExp(He,tt)}catch(Ct){if(v)throw new Error(`bad regexp-value '${y}', parse error: ${Ct}`);return console.warn(`bad regexp-value '${y}', parse error: ${Ct}`),null}}}function ne(X,y){const v=X?X.substituteConstants():void 0,O=y?y.substituteConstants():void 0;return!v&&!O?!0:!v||!O?!1:v.equals(O)}function o(X,y){return X.cmp(y)}class g{constructor(){this.type=0}cmp(y){return this.type-y.type}equals(y){return y.type===this.type}substituteConstants(){return this}evaluate(y){return!1}serialize(){return"false"}keys(){return[]}negate(){return A.INSTANCE}}g.INSTANCE=new g;class A{constructor(){this.type=1}cmp(y){return this.type-y.type}equals(y){return y.type===this.type}substituteConstants(){return this}evaluate(y){return!0}serialize(){return"true"}keys(){return[]}negate(){return g.INSTANCE}}A.INSTANCE=new A;class p{constructor(y,v){this.key=y,this.negated=v,this.type=2}static create(y,v=null){const O=B.get(y);return typeof O=="boolean"?O?A.INSTANCE:g.INSTANCE:new p(y,v)}cmp(y){return y.type!==this.type?this.type-y.type:T(this.key,y.key)}equals(y){return y.type===this.type?this.key===y.key:!1}substituteConstants(){const y=B.get(this.key);return typeof y=="boolean"?y?A.INSTANCE:g.INSTANCE:this}evaluate(y){return!!y.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=$.create(this.key,this)),this.negated}}class E{constructor(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=4}static create(y,v,O=null){if(typeof v=="boolean")return v?p.create(y,O):$.create(y,O);const pe=B.get(y);return typeof pe=="boolean"?v===(pe?"true":"false")?A.INSTANCE:g.INSTANCE:new E(y,v,O)}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){const y=B.get(this.key);if(typeof y=="boolean"){const v=y?"true":"false";return this.value===v?A.INSTANCE:g.INSTANCE}return this}evaluate(y){return y.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=j.create(this.key,this.value,this)),this.negated}}class b{constructor(y,v){this.key=y,this.valueKey=v,this.type=10,this.negated=null}static create(y,v){return new b(y,v)}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.valueKey,y.key,y.valueKey)}equals(y){return y.type===this.type?this.key===y.key&&this.valueKey===y.valueKey:!1}substituteConstants(){return this}evaluate(y){const v=y.getValue(this.valueKey),O=y.getValue(this.key);return Array.isArray(v)?v.indexOf(O)>=0:typeof O=="string"&&typeof v=="object"&&v!==null?d.call(v,O):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=I.create(this)),this.negated}}class I{constructor(y){this._actual=y,this.type=11}static create(y){return new I(y)}cmp(y){return y.type!==this.type?this.type-y.type:this._actual.cmp(y._actual)}equals(y){return y.type===this.type?this._actual.equals(y._actual):!1}substituteConstants(){return this}evaluate(y){return!this._actual.evaluate(y)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class j{constructor(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=5}static create(y,v,O=null){if(typeof v=="boolean")return v?$.create(y,O):p.create(y,O);const pe=B.get(y);return typeof pe=="boolean"?v===(pe?"true":"false")?g.INSTANCE:A.INSTANCE:new j(y,v,O)}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){const y=B.get(this.key);if(typeof y=="boolean"){const v=y?"true":"false";return this.value===v?g.INSTANCE:A.INSTANCE}return this}evaluate(y){return y.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=E.create(this.key,this.value,this)),this.negated}}class ${constructor(y,v){this.key=y,this.negated=v,this.type=3}static create(y,v=null){const O=B.get(y);return typeof O=="boolean"?O?g.INSTANCE:A.INSTANCE:new $(y,v)}cmp(y){return y.type!==this.type?this.type-y.type:T(this.key,y.key)}equals(y){return y.type===this.type?this.key===y.key:!1}substituteConstants(){const y=B.get(this.key);return typeof y=="boolean"?y?g.INSTANCE:A.INSTANCE:this}evaluate(y){return!y.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this)),this.negated}}function le(X,y){if(typeof X=="string"){const v=parseFloat(X);isNaN(v)||(X=v)}return typeof X=="string"||typeof X=="number"?y(X):g.INSTANCE}class F{constructor(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=12}static create(y,v,O=null){return le(v,pe=>new F(y,pe,O))}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=w.create(this.key,this.value,this)),this.negated}}class H{constructor(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=13}static create(y,v,O=null){return le(v,pe=>new H(y,pe,O))}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=D.create(this.key,this.value,this)),this.negated}}class D{constructor(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=14}static create(y,v,O=null){return le(v,pe=>new D(y,pe,O))}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this.key,this.value,this)),this.negated}}class w{constructor(y,v,O){this.key=y,this.value=v,this.negated=O,this.type=15}static create(y,v,O=null){return le(v,pe=>new w(y,pe,O))}cmp(y){return y.type!==this.type?this.type-y.type:P(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F.create(this.key,this.value,this)),this.negated}}class Q{constructor(y,v){this.key=y,this.regexp=v,this.type=7,this.negated=null}static create(y,v){return new Q(y,v)}cmp(y){if(y.type!==this.type)return this.type-y.type;if(this.key<y.key)return-1;if(this.key>y.key)return 1;const v=this.regexp?this.regexp.source:"",O=y.regexp?y.regexp.source:"";return v<O?-1:v>O?1:0}equals(y){if(y.type===this.type){const v=this.regexp?this.regexp.source:"",O=y.regexp?y.regexp.source:"";return this.key===y.key&&v===O}return!1}substituteConstants(){return this}evaluate(y){let v=y.getValue(this.key);return this.regexp?this.regexp.test(v):!1}serialize(){const y=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${y}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=re.create(this)),this.negated}}class re{constructor(y){this._actual=y,this.type=8}static create(y){return new re(y)}cmp(y){return y.type!==this.type?this.type-y.type:this._actual.cmp(y._actual)}equals(y){return y.type===this.type?this._actual.equals(y._actual):!1}substituteConstants(){return this}evaluate(y){return!this._actual.evaluate(y)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function ee(X){let y=null;for(let v=0,O=X.length;v<O;v++){const pe=X[v].substituteConstants();if(X[v]!==pe&&y===null){y=[];for(let He=0;He<v;He++)y[He]=X[He]}y!==null&&(y[v]=pe)}return y===null?X:y}class oe{constructor(y,v){this.expr=y,this.negated=v,this.type=6}static create(y,v){return oe._normalizeArr(y,v)}cmp(y){if(y.type!==this.type)return this.type-y.type;if(this.expr.length<y.expr.length)return-1;if(this.expr.length>y.expr.length)return 1;for(let v=0,O=this.expr.length;v<O;v++){const pe=o(this.expr[v],y.expr[v]);if(pe!==0)return pe}return 0}equals(y){if(y.type===this.type){if(this.expr.length!==y.expr.length)return!1;for(let v=0,O=this.expr.length;v<O;v++)if(!this.expr[v].equals(y.expr[v]))return!1;return!0}return!1}substituteConstants(){const y=ee(this.expr);return y===this.expr?this:oe.create(y,this.negated)}evaluate(y){for(let v=0,O=this.expr.length;v<O;v++)if(!this.expr[v].evaluate(y))return!1;return!0}static _normalizeArr(y,v){const O=[];let pe=!1;for(const He of y)if(He){if(He.type===1){pe=!0;continue}if(He.type===0)return g.INSTANCE;if(He.type===6){O.push(...He.expr);continue}O.push(He)}if(O.length===0&&pe)return A.INSTANCE;if(O.length!==0){if(O.length===1)return O[0];O.sort(o);for(let He=1;He<O.length;He++)O[He-1].equals(O[He])&&(O.splice(He,1),He--);if(O.length===1)return O[0];for(;O.length>1;){const He=O[O.length-1];if(He.type!==9)break;O.pop();const tt=O.pop(),Ct=O.length===0,Rt=ge.create(He.expr.map(Ft=>oe.create([Ft,tt],null)),null,Ct);Rt&&(O.push(Rt),O.sort(o))}return O.length===1?O[0]:new oe(O,v)}}serialize(){return this.expr.map(y=>y.serialize()).join(" && ")}keys(){const y=[];for(let v of this.expr)y.push(...v.keys());return y}negate(){if(!this.negated){const y=[];for(let v of this.expr)y.push(v.negate());this.negated=ge.create(y,this,!0)}return this.negated}}class ge{constructor(y,v){this.expr=y,this.negated=v,this.type=9}static create(y,v,O){return ge._normalizeArr(y,v,O)}cmp(y){if(y.type!==this.type)return this.type-y.type;if(this.expr.length<y.expr.length)return-1;if(this.expr.length>y.expr.length)return 1;for(let v=0,O=this.expr.length;v<O;v++){const pe=o(this.expr[v],y.expr[v]);if(pe!==0)return pe}return 0}equals(y){if(y.type===this.type){if(this.expr.length!==y.expr.length)return!1;for(let v=0,O=this.expr.length;v<O;v++)if(!this.expr[v].equals(y.expr[v]))return!1;return!0}return!1}substituteConstants(){const y=ee(this.expr);return y===this.expr?this:ge.create(y,this.negated,!1)}evaluate(y){for(let v=0,O=this.expr.length;v<O;v++)if(this.expr[v].evaluate(y))return!0;return!1}static _normalizeArr(y,v,O){let pe=[],He=!1;if(y){for(let tt=0,Ct=y.length;tt<Ct;tt++){const Rt=y[tt];if(Rt){if(Rt.type===0){He=!0;continue}if(Rt.type===1)return A.INSTANCE;if(Rt.type===9){pe=pe.concat(Rt.expr);continue}pe.push(Rt)}}if(pe.length===0&&He)return g.INSTANCE;pe.sort(o)}if(pe.length!==0){if(pe.length===1)return pe[0];for(let tt=1;tt<pe.length;tt++)pe[tt-1].equals(pe[tt])&&(pe.splice(tt,1),tt--);if(pe.length===1)return pe[0];if(O){for(let tt=0;tt<pe.length;tt++)for(let Ct=tt+1;Ct<pe.length;Ct++)G(pe[tt],pe[Ct])&&(pe.splice(Ct,1),Ct--);if(pe.length===1)return pe[0]}return new ge(pe,v)}}serialize(){return this.expr.map(y=>y.serialize()).join(" || ")}keys(){const y=[];for(let v of this.expr)y.push(...v.keys());return y}negate(){if(!this.negated){let y=[];for(let v of this.expr)y.push(v.negate());for(;y.length>1;){const v=y.shift(),O=y.shift(),pe=[];for(const tt of ie(v))for(const Ct of ie(O))pe.push(oe.create([tt,Ct],null));const He=y.length===0;y.unshift(ge.create(pe,null,He))}this.negated=y[0]}return this.negated}}class me extends p{constructor(y,v,O){super(y,null),this._defaultValue=v,typeof O=="object"?me._info.push(Object.assign(Object.assign({},O),{key:y})):O!==!0&&me._info.push({key:y,description:O,type:v!=null?typeof v:void 0})}static all(){return me._info.values()}bindTo(y){return y.createKey(this.key,this._defaultValue)}getValue(y){return y.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(y){return E.create(this.key,y)}}me._info=[];const at=(0,z.yh)("contextKeyService"),Z="setContext";function T(X,y){return X<y?-1:X>y?1:0}function P(X,y,v,O){return X<v?-1:X>v?1:y<O?-1:y>O?1:0}function G(X,y){if(y.type===6&&X.type!==9&&X.type!==6){for(const pe of y.expr)if(X.equals(pe))return!0}const v=X.negate(),O=ie(v).concat(ie(y));O.sort(o);for(let pe=0;pe<O.length;pe++){const tt=O[pe].negate();for(let Ct=pe+1;Ct<O.length;Ct++){const Rt=O[Ct];if(tt.equals(Rt))return!0}}return!1}function ie(X){return X.type===9?X.expr:[X]}},16925:function(Pn,Gt,_){"use strict";_.d(Gt,{I8:function(){return f},TG:function(){return ue},jt:function(){return B},yh:function(){return ae}});var f;(function(d){d.serviceIds=new Map,d.DI_TARGET="$di$target",d.DI_DEPENDENCIES="$di$dependencies";function _e(ne){return ne[d.DI_DEPENDENCIES]||[]}d.getServiceDependencies=_e})(f||(f={}));const ue=ae("instantiationService");function z(d,_e,ne,o){_e[f.DI_TARGET]===_e?_e[f.DI_DEPENDENCIES].push({id:d,index:ne,optional:o}):(_e[f.DI_DEPENDENCIES]=[{id:d,index:ne,optional:o}],_e[f.DI_TARGET]=_e)}function ae(d){if(f.serviceIds.has(d))return f.serviceIds.get(d);const _e=function(ne,o,g){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");z(_e,ne,g,!1)};return _e.toString=()=>d,f.serviceIds.set(d,_e),_e}function B(d){return function(_e,ne,o){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");z(d,_e,o,!0)}}},44650:function(Pn,Gt,_){"use strict";_.d(Gt,{B:function(){return ae}});var f=_(76068),ue=_(72999);class z{constructor(){this.data=new Map}add(d,_e){f.ok(ue.HD(d)),f.ok(ue.Kn(_e)),f.ok(!this.data.has(d),"There is already an extension with this id"),this.data.set(d,_e)}as(d){return this.data.get(d)||null}}const ae=new z},66213:function(Pn,Gt,_){"use strict";_.d(Gt,{e:function(){return f}});var f;(function(ue){ue.DARK="dark",ue.LIGHT="light",ue.HIGH_CONTRAST="hc"})(f||(f={}))},49055:function(Pn,Gt,_){"use strict";_.d(Gt,{EN:function(){return o},IP:function(){return p},Ic:function(){return I},XE:function(){return _e},bB:function(){return j},kS:function(){return g},m6:function(){return A}});var f=_(52615),ue=_(4348),z=_(69323),ae=_(16925),B=_(44650),d=_(66213);const _e=(0,ae.yh)("themeService");var ne;(function($){function le(F){return F&&typeof F=="object"&&typeof F.id=="string"}$.isThemeColor=le})(ne||(ne={}));function o($){return{id:$}}var g;(function($){function le(re){return re&&typeof re=="object"&&typeof re.id=="string"&&(typeof re.color=="undefined"||ne.isThemeColor(re.color))}$.isThemeIcon=le;const F=new RegExp(`^\\$\\((${f.dT.iconNameExpression}(?:${f.dT.iconModifierExpression})?)\\)$`);function H(re){const ee=F.exec(re);if(!ee)return;let[,oe]=ee;return{id:oe}}$.fromString=H;function D(re,ee){let oe=re.id;const ge=oe.lastIndexOf("~");return ge!==-1&&(oe=oe.substring(0,ge)),ee&&(oe=`${oe}~${ee}`),{id:oe}}$.modify=D;function w(re,ee){var oe,ge;return re.id===ee.id&&((oe=re.color)===null||oe===void 0?void 0:oe.id)===((ge=ee.color)===null||ge===void 0?void 0:ge.id)}$.isEqual=w;function Q(re,ee){return{id:re.id,color:ee?o(ee):void 0}}$.asThemeIcon=Q,$.asClassNameArray=f.dT.asClassNameArray,$.asClassName=f.dT.asClassName,$.asCSSSelector=f.dT.asCSSSelector})(g||(g={}));function A($){switch($){case d.e.DARK:return"vs-dark";case d.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const p={ThemingContribution:"base.contributions.theming"};class E{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new ue.Q5}onColorThemeChange(le){return this.themingParticipants.push(le),this.onThemingParticipantAddedEmitter.fire(le),(0,z.OF)(()=>{const F=this.themingParticipants.indexOf(le);this.themingParticipants.splice(F,1)})}getThemingParticipants(){return this.themingParticipants}}let b=new E;B.B.add(p.ThemingContribution,b);function I($){return b.onColorThemeChange($)}class j extends z.JT{constructor(le){super(),this.themeService=le,this.theme=le.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(F=>this.onThemeChange(F)))}onThemeChange(le){this.theme=le,this.updateStyles()}updateStyles(){}}},63727:function(Pn,Gt,_){"use strict";_.d(Gt,{s:function(){return W},default:function(){return ot}});var f=_(32855),ue=_(27247),z=_(3300),ae=_(11913),B=_(43079),d=_(37463),_e=_(6551),ne=_(6089),o=_(18929),g=_(59301),A=g.createContext({}),p=A,E=_(34666),b=_(74430),I="__rc_cascader_search_mark__",j=function(K,N,Le){var De=Le.label,Ae=De===void 0?"":De;return N.some(function(it){return String(it[Ae]).toLowerCase().includes(K.toLowerCase())})},$=function(K,N,Le,De){return N.map(function(Ae){return Ae[De.label]}).join(" / ")},le=function(K,N,Le,De,Ae,it){var st=Ae.filter,Oe=st===void 0?j:st,Et=Ae.render,jt=Et===void 0?$:Et,wt=Ae.limit,Bt=wt===void 0?50:wt,se=Ae.sort;return g.useMemo(function(){var ve=[];if(!K)return[];function Ee(k,Y){var he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;k.forEach(function(ce){if(!(!se&&Bt!==!1&&Bt>0&&ve.length>=Bt)){var xe=[].concat((0,z.Z)(Y),[ce]),Be=ce[Le.children],Xe=he||ce.disabled;if((!Be||Be.length===0||it)&&Oe(K,xe,{label:Le.label})){var ut;ve.push((0,ue.Z)((0,ue.Z)({},ce),{},(ut={disabled:Xe},(0,b.Z)(ut,Le.label,jt(K,xe,De,Le)),(0,b.Z)(ut,I,xe),(0,b.Z)(ut,Le.children,void 0),ut)))}Be&&Ee(ce[Le.children],xe,Xe)}})}return Ee(N,[]),se&&ve.sort(function(k,Y){return se(k[I],Y[I],K,Le)}),Bt!==!1&&Bt>0?ve.slice(0,Bt):ve},[K,N,Le,De,jt,it,Oe,se,Bt])},F=le,H="__RC_CASCADER_SPLIT__",D="SHOW_PARENT",w="SHOW_CHILD";function Q(de){return de.join(H)}function re(de){return de.map(Q)}function ee(de){return de.split(H)}function oe(de){var K=de||{},N=K.label,Le=K.value,De=K.children,Ae=Le||"value";return{label:N||"label",value:Ae,key:Ae,children:De||"children"}}function ge(de,K){var N,Le;return(N=de.isLeaf)!==null&&N!==void 0?N:!((Le=de[K.children])!==null&&Le!==void 0&&Le.length)}function me(de){var K=de.parentElement;if(K){var N=de.offsetTop-K.offsetTop;N-K.scrollTop<0?K.scrollTo({top:N}):N+de.offsetHeight-K.scrollTop>K.offsetHeight&&K.scrollTo({top:N+de.offsetHeight-K.offsetHeight})}}function at(de,K){return de.map(function(N){var Le;return(Le=N[I])===null||Le===void 0?void 0:Le.map(function(De){return De[K.value]})})}function Z(de){return Array.isArray(de)&&Array.isArray(de[0])}function T(de){return de?Z(de)?de:(de.length===0?[]:[de]).map(function(K){return Array.isArray(K)?K:[K]}):[]}function P(de,K,N){var Le=new Set(de),De=K();return de.filter(function(Ae){var it=De[Ae],st=it?it.parent:null,Oe=it?it.children:null;return it&&it.node.disabled?!0:N===w?!(Oe&&Oe.some(function(Et){return Et.key&&Le.has(Et.key)})):!(st&&!st.node.disabled&&Le.has(st.key))})}function G(de,K,N){for(var Le=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,De=K,Ae=[],it=function(){var Et,jt,wt,Bt=de[st],se=(Et=De)===null||Et===void 0?void 0:Et.findIndex(function(Ee){var k=Ee[N.value];return Le?String(k)===String(Bt):k===Bt}),ve=se!==-1?(jt=De)===null||jt===void 0?void 0:jt[se]:null;Ae.push({value:(wt=ve==null?void 0:ve[N.value])!==null&&wt!==void 0?wt:Bt,index:se,option:ve}),De=ve==null?void 0:ve[N.children]},st=0;st<de.length;st+=1)it();return Ae}var ie=function(de,K,N,Le,De){return g.useMemo(function(){var Ae=De||function(it){var st=Le?it.slice(-1):it,Oe=" / ";return st.every(function(Et){return["string","number"].includes((0,E.Z)(Et))})?st.join(Oe):st.reduce(function(Et,jt,wt){var Bt=g.isValidElement(jt)?g.cloneElement(jt,{key:wt}):jt;return wt===0?[Bt]:[].concat((0,z.Z)(Et),[Oe,Bt])},[])};return de.map(function(it){var st,Oe=G(it,K,N),Et=Ae(Oe.map(function(wt){var Bt,se=wt.option,ve=wt.value;return(Bt=se==null?void 0:se[N.label])!==null&&Bt!==void 0?Bt:ve}),Oe.map(function(wt){var Bt=wt.option;return Bt})),jt=Q(it);return{label:Et,value:jt,key:jt,valueCells:it,disabled:(st=Oe[Oe.length-1])===null||st===void 0||(st=st.option)===null||st===void 0?void 0:st.disabled}})},[de,K,N,De,Le])};function X(de,K){return g.useCallback(function(N){var Le=[],De=[];return N.forEach(function(Ae){var it=G(Ae,de,K);it.every(function(st){return st.option})?De.push(Ae):Le.push(Ae)}),[De,Le]},[de,K])}var y=_(34061),v=function(de,K){var N=g.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),Le=g.useCallback(function(){return N.current.options!==de&&(N.current.options=de,N.current.info=(0,y.I8)(de,{fieldNames:K,initWrapper:function(Ae){return(0,ue.Z)((0,ue.Z)({},Ae),{},{pathKeyEntities:{}})},processEntity:function(Ae,it){var st=Ae.nodes.map(function(Oe){return Oe[K.value]}).join(H);it.pathKeyEntities[st]=Ae,Ae.key=st}})),N.current.info.pathKeyEntities},[K,de]);return Le};function O(de,K){var N=g.useMemo(function(){return K||[]},[K]),Le=v(N,de),De=g.useCallback(function(Ae){var it=Le();return Ae.map(function(st){var Oe=it[st].nodes;return Oe.map(function(Et){return Et[de.value]})})},[Le,de]);return[N,Le,De]}var pe=_(48736);function He(de){return g.useMemo(function(){if(!de)return[!1,{}];var K={matchInputWidth:!0,limit:50};return de&&(0,E.Z)(de)==="object"&&(K=(0,ue.Z)((0,ue.Z)({},K),de)),K.limit<=0&&(K.limit=!1),[!0,K]},[de])}var tt=_(34643);function Ct(de,K,N,Le,De,Ae,it,st){return function(Oe){if(!de)K(Oe);else{var Et=Q(Oe),jt=re(N),wt=re(Le),Bt=jt.includes(Et),se=De.some(function(Xe){return Q(Xe)===Et}),ve=N,Ee=De;if(se&&!Bt)Ee=De.filter(function(Xe){return Q(Xe)!==Et});else{var k=Bt?jt.filter(function(Xe){return Xe!==Et}):[].concat((0,z.Z)(jt),[Et]),Y=Ae(),he;if(Bt){var ce=(0,tt.S)(k,{checked:!1,halfCheckedKeys:wt},Y);he=ce.checkedKeys}else{var xe=(0,tt.S)(k,!0,Y);he=xe.checkedKeys}var Be=P(he,Ae,st);ve=it(Be)}K([].concat((0,z.Z)(Ee),(0,z.Z)(ve)))}}}function Rt(de,K,N,Le,De){return g.useMemo(function(){var Ae=De(K),it=(0,ae.Z)(Ae,2),st=it[0],Oe=it[1];if(!de||!K.length)return[st,[],Oe];var Et=re(st),jt=N(),wt=(0,tt.S)(Et,!0,jt),Bt=wt.checkedKeys,se=wt.halfCheckedKeys;return[Le(Bt),Le(se),Oe]},[de,K,N,Le,De])}var Ft=_(92310),Ht=_.n(Ft),Ke=g.memo(function(de){var K=de.children;return K},function(de,K){return!K.open}),qt=Ke;function Dt(de){var K,N=de.prefixCls,Le=de.checked,De=de.halfChecked,Ae=de.disabled,it=de.onClick,st=de.disableCheckbox,Oe=g.useContext(p),Et=Oe.checkable,jt=typeof Et!="boolean"?Et:null;return g.createElement("span",{className:Ht()("".concat(N),(K={},(0,b.Z)(K,"".concat(N,"-checked"),Le),(0,b.Z)(K,"".concat(N,"-indeterminate"),!Le&&De),(0,b.Z)(K,"".concat(N,"-disabled"),Ae||st),K)),onClick:it},jt)}var sn="__cascader_fix_label__";function Je(de){var K=de.prefixCls,N=de.multiple,Le=de.options,De=de.activeValue,Ae=de.prevValuePath,it=de.onToggleOpen,st=de.onSelect,Oe=de.onActive,Et=de.checkedSet,jt=de.halfCheckedSet,wt=de.loadingKeys,Bt=de.isSelectable,se=de.disabled,ve="".concat(K,"-menu"),Ee="".concat(K,"-menu-item"),k=g.useContext(p),Y=k.fieldNames,he=k.changeOnSelect,ce=k.expandTrigger,xe=k.expandIcon,Be=k.loadingIcon,Xe=k.dropdownMenuColumnStyle,ut=k.optionRender,nt=ce==="hover",Ue=function(S){return se||S},R=g.useMemo(function(){return Le.map(function(U){var S,ze=U.disabled,ke=U.disableCheckbox,Pe=U[I],Ge=(S=U[sn])!==null&&S!==void 0?S:U[Y.label],We=U[Y.value],ct=ge(U,Y),Lt=Pe?Pe.map(function(dt){return dt[Y.value]}):[].concat((0,z.Z)(Ae),[We]),Pt=Q(Lt),cn=wt.includes(Pt),Ne=Et.has(Pt),Re=jt.has(Pt);return{disabled:ze,label:Ge,value:We,isLeaf:ct,isLoading:cn,checked:Ne,halfChecked:Re,option:U,disableCheckbox:ke,fullPath:Lt,fullPathKey:Pt}})},[Le,Et,Y,jt,wt,Ae]);return g.createElement("ul",{className:ve,role:"menu"},R.map(function(U){var S,ze=U.disabled,ke=U.label,Pe=U.value,Ge=U.isLeaf,We=U.isLoading,ct=U.checked,Lt=U.halfChecked,Pt=U.option,cn=U.fullPath,Ne=U.fullPathKey,Re=U.disableCheckbox,dt=function(){if(!Ue(ze)){var Tt=(0,z.Z)(cn);nt&&Ge&&Tt.pop(),Oe(Tt)}},mt=function(){Bt(Pt)&&!Ue(ze)&&st(cn,Ge)},Mt;return typeof Pt.title=="string"?Mt=Pt.title:typeof ke=="string"&&(Mt=ke),g.createElement("li",{key:Ne,className:Ht()(Ee,(S={},(0,b.Z)(S,"".concat(Ee,"-expand"),!Ge),(0,b.Z)(S,"".concat(Ee,"-active"),De===Pe||De===Ne),(0,b.Z)(S,"".concat(Ee,"-disabled"),Ue(ze)),(0,b.Z)(S,"".concat(Ee,"-loading"),We),S)),style:Xe,role:"menuitemcheckbox",title:Mt,"aria-checked":ct,"data-path-key":Ne,onClick:function(){dt(),!Re&&(!N||Ge)&&mt()},onDoubleClick:function(){he&&it(!1)},onMouseEnter:function(){nt&&dt()},onMouseDown:function(Tt){Tt.preventDefault()}},N&&g.createElement(Dt,{prefixCls:"".concat(K,"-checkbox"),checked:ct,halfChecked:Lt,disabled:Ue(ze)||Re,disableCheckbox:Re,onClick:function(Tt){Re||(Tt.stopPropagation(),mt())}}),g.createElement("div",{className:"".concat(Ee,"-content")},ut?ut(Pt):ke),!We&&xe&&!Ge&&g.createElement("div",{className:"".concat(Ee,"-expand-icon")},xe),We&&Be&&g.createElement("div",{className:"".concat(Ee,"-loading-icon")},Be))}))}var yt=function(K,N){var Le=g.useContext(p),De=Le.values,Ae=De[0],it=g.useState([]),st=(0,ae.Z)(it,2),Oe=st[0],Et=st[1];return g.useEffect(function(){K||Et(Ae||[])},[N,Ae]),[Oe,Et]},Fe=yt,we=_(10228),V=function(de,K,N,Le,De,Ae,it){var st=it.direction,Oe=it.searchValue,Et=it.toggleOpen,jt=it.open,wt=st==="rtl",Bt=g.useMemo(function(){for(var Xe=-1,ut=K,nt=[],Ue=[],R=Le.length,U=at(K,N),S=function(We){var ct=ut.findIndex(function(Lt,Pt){return(U[Pt]?Q(U[Pt]):Lt[N.value])===Le[We]});if(ct===-1)return 1;Xe=ct,nt.push(Xe),Ue.push(Le[We]),ut=ut[Xe][N.children]},ze=0;ze<R&&ut&&!S(ze);ze+=1);for(var ke=K,Pe=0;Pe<nt.length-1;Pe+=1)ke=ke[nt[Pe]][N.children];return[Ue,Xe,ke,U]},[Le,N,K]),se=(0,ae.Z)(Bt,4),ve=se[0],Ee=se[1],k=se[2],Y=se[3],he=function(ut){De(ut)},ce=function(ut){var nt=k.length,Ue=Ee;Ue===-1&&ut<0&&(Ue=nt);for(var R=0;R<nt;R+=1){Ue=(Ue+ut+nt)%nt;var U=k[Ue];if(U&&!U.disabled){var S=ve.slice(0,-1).concat(Y[Ue]?Q(Y[Ue]):U[N.value]);he(S);return}}},xe=function(){if(ve.length>1){var ut=ve.slice(0,-1);he(ut)}else Et(!1)},Be=function(){var ut,nt=((ut=k[Ee])===null||ut===void 0?void 0:ut[N.children])||[],Ue=nt.find(function(U){return!U.disabled});if(Ue){var R=[].concat((0,z.Z)(ve),[Ue[N.value]]);he(R)}};g.useImperativeHandle(de,function(){return{onKeyDown:function(ut){var nt=ut.which;switch(nt){case we.Z.UP:case we.Z.DOWN:{var Ue=0;nt===we.Z.UP?Ue=-1:nt===we.Z.DOWN&&(Ue=1),Ue!==0&&ce(Ue);break}case we.Z.LEFT:{if(Oe)break;wt?Be():xe();break}case we.Z.RIGHT:{if(Oe)break;wt?xe():Be();break}case we.Z.BACKSPACE:{Oe||xe();break}case we.Z.ENTER:{if(ve.length){var R=k[Ee],U=(R==null?void 0:R[I])||[];U.length?Ae(U.map(function(S){return S[N.value]}),U[U.length-1]):Ae(ve,k[Ee])}break}case we.Z.ESC:Et(!1),jt&&ut.stopPropagation()}},onKeyUp:function(){}}})},je=g.forwardRef(function(de,K){var N,Le,De,Ae=de.prefixCls,it=de.multiple,st=de.searchValue,Oe=de.toggleOpen,Et=de.notFoundContent,jt=de.direction,wt=de.open,Bt=de.disabled,se=g.useRef(null),ve=jt==="rtl",Ee=g.useContext(p),k=Ee.options,Y=Ee.values,he=Ee.halfValues,ce=Ee.fieldNames,xe=Ee.changeOnSelect,Be=Ee.onSelect,Xe=Ee.searchOptions,ut=Ee.dropdownPrefixCls,nt=Ee.loadData,Ue=Ee.expandTrigger,R=ut||Ae,U=g.useState([]),S=(0,ae.Z)(U,2),ze=S[0],ke=S[1],Pe=function(Jt){if(!(!nt||st)){var kt=G(Jt,k,ce),Ze=kt.map(function(Ot){var tn=Ot.option;return tn}),ft=Ze[Ze.length-1];if(ft&&!ge(ft,ce)){var St=Q(Jt);ke(function(Ot){return[].concat((0,z.Z)(Ot),[St])}),nt(Ze)}}};g.useEffect(function(){ze.length&&ze.forEach(function(an){var Jt=ee(an),kt=G(Jt,k,ce,!0).map(function(ft){var St=ft.option;return St}),Ze=kt[kt.length-1];(!Ze||Ze[ce.children]||ge(Ze,ce))&&ke(function(ft){return ft.filter(function(St){return St!==an})})})},[k,ze,ce]);var Ge=g.useMemo(function(){return new Set(re(Y))},[Y]),We=g.useMemo(function(){return new Set(re(he))},[he]),ct=Fe(it,wt),Lt=(0,ae.Z)(ct,2),Pt=Lt[0],cn=Lt[1],Ne=function(Jt){cn(Jt),Pe(Jt)},Re=function(Jt){if(Bt)return!1;var kt=Jt.disabled,Ze=ge(Jt,ce);return!kt&&(Ze||xe||it)},dt=function(Jt,kt){var Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Be(Jt),!it&&(kt||xe&&(Ue==="hover"||Ze))&&Oe(!1)},mt=g.useMemo(function(){return st?Xe:k},[st,Xe,k]),Mt=g.useMemo(function(){for(var an=[{options:mt}],Jt=mt,kt=at(Jt,ce),Ze=function(){var Ot=Pt[ft],tn=Jt.find(function(ln,xn){return(kt[xn]?Q(kt[xn]):ln[ce.value])===Ot}),et=tn==null?void 0:tn[ce.children];if(!(et!=null&&et.length))return 1;Jt=et,an.push({options:et})},ft=0;ft<Pt.length&&!Ze();ft+=1);return an},[mt,Pt,ce]),bt=function(Jt,kt){Re(kt)&&dt(Jt,ge(kt,ce),!0)};V(K,mt,ce,Pt,Ne,bt,{direction:jt,searchValue:st,toggleOpen:Oe,open:wt}),g.useEffect(function(){if(!st)for(var an=0;an<Pt.length;an+=1){var Jt,kt=Pt.slice(0,an+1),Ze=Q(kt),ft=(Jt=se.current)===null||Jt===void 0?void 0:Jt.querySelector('li[data-path-key="'.concat(Ze.replace(/\\{0,2}"/g,'\\"'),'"]'));ft&&me(ft)}},[Pt,st]);var Tt=!((N=Mt[0])!==null&&N!==void 0&&(N=N.options)!==null&&N!==void 0&&N.length),Kt=[(Le={},(0,b.Z)(Le,ce.value,"__EMPTY__"),(0,b.Z)(Le,sn,Et),(0,b.Z)(Le,"disabled",!0),Le)],en=(0,ue.Z)((0,ue.Z)({},de),{},{multiple:!Tt&&it,onSelect:dt,onActive:Ne,onToggleOpen:Oe,checkedSet:Ge,halfCheckedSet:We,loadingKeys:ze,isSelectable:Re}),At=Tt?[{options:Kt}]:Mt,dn=At.map(function(an,Jt){var kt=Pt.slice(0,Jt),Ze=Pt[Jt];return g.createElement(Je,(0,f.Z)({key:Jt},en,{prefixCls:R,options:an.options,prevValuePath:kt,activeValue:Ze}))});return g.createElement(qt,{open:wt},g.createElement("div",{className:Ht()("".concat(R,"-menus"),(De={},(0,b.Z)(De,"".concat(R,"-menu-empty"),Tt),(0,b.Z)(De,"".concat(R,"-rtl"),ve),De)),ref:se},dn))}),Qe=je,q=g.forwardRef(function(de,K){var N=(0,d.lk)();return g.createElement(Qe,(0,f.Z)({},de,N,{ref:K}))}),M=q,Se=_(70425);function be(){}function W(de){var K,N=de,Le=N.prefixCls,De=Le===void 0?"rc-cascader":Le,Ae=N.style,it=N.className,st=N.options,Oe=N.checkable,Et=N.defaultValue,jt=N.value,wt=N.fieldNames,Bt=N.changeOnSelect,se=N.onChange,ve=N.showCheckedStrategy,Ee=N.loadData,k=N.expandTrigger,Y=N.expandIcon,he=Y===void 0?">":Y,ce=N.loadingIcon,xe=N.direction,Be=N.notFoundContent,Xe=Be===void 0?"Not Found":Be,ut=N.disabled,nt=!!Oe,Ue=(0,Se.C8)(Et,{value:jt,postState:T}),R=(0,ae.Z)(Ue,2),U=R[0],S=R[1],ze=g.useMemo(function(){return oe(wt)},[JSON.stringify(wt)]),ke=O(ze,st),Pe=(0,ae.Z)(ke,3),Ge=Pe[0],We=Pe[1],ct=Pe[2],Lt=X(Ge,ze),Pt=Rt(nt,U,We,ct,Lt),cn=(0,ae.Z)(Pt,3),Ne=cn[0],Re=cn[1],dt=cn[2],mt=(0,Se.zX)(function(At){if(S(At),se){var dn=T(At),an=dn.map(function(Ze){return G(Ze,Ge,ze).map(function(ft){return ft.option})}),Jt=nt?dn:dn[0],kt=nt?an:an[0];se(Jt,kt)}}),Mt=Ct(nt,mt,Ne,Re,dt,We,ct,ve),bt=(0,Se.zX)(function(At){Mt(At)}),Tt=g.useMemo(function(){return{options:Ge,fieldNames:ze,values:Ne,halfValues:Re,changeOnSelect:Bt,onSelect:bt,checkable:Oe,searchOptions:[],dropdownPrefixCls:void 0,loadData:Ee,expandTrigger:k,expandIcon:he,loadingIcon:ce,dropdownMenuColumnStyle:void 0}},[Ge,ze,Ne,Re,Bt,bt,Oe,Ee,k,he,ce]),Kt="".concat(De,"-panel"),en=!Ge.length;return g.createElement(p.Provider,{value:Tt},g.createElement("div",{className:Ht()(Kt,(K={},(0,b.Z)(K,"".concat(Kt,"-rtl"),xe==="rtl"),(0,b.Z)(K,"".concat(Kt,"-empty"),en),K),it),style:Ae},en?Xe:g.createElement(Qe,{prefixCls:De,searchValue:"",multiple:nt,toggleOpen:be,open:!0,direction:xe,disabled:ut})))}function fe(de){var K=de.onPopupVisibleChange,N=de.popupVisible,Le=de.popupClassName,De=de.popupPlacement;warning(!K,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(N===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Le===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(De===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function ye(de,K){if(de){var N=function Le(De){for(var Ae=0;Ae<De.length;Ae++){var it=De[Ae];if(it[K==null?void 0:K.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(it[K==null?void 0:K.children])&&Le(it[K==null?void 0:K.children]))return!0}};N(de)}}var $e=null,Ve=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],qe=g.forwardRef(function(de,K){var N=de.id,Le=de.prefixCls,De=Le===void 0?"rc-cascader":Le,Ae=de.fieldNames,it=de.defaultValue,st=de.value,Oe=de.changeOnSelect,Et=de.onChange,jt=de.displayRender,wt=de.checkable,Bt=de.autoClearSearchValue,se=Bt===void 0?!0:Bt,ve=de.searchValue,Ee=de.onSearch,k=de.showSearch,Y=de.expandTrigger,he=de.options,ce=de.dropdownPrefixCls,xe=de.loadData,Be=de.popupVisible,Xe=de.open,ut=de.popupClassName,nt=de.dropdownClassName,Ue=de.dropdownMenuColumnStyle,R=de.dropdownStyle,U=de.popupPlacement,S=de.placement,ze=de.onDropdownVisibleChange,ke=de.onPopupVisibleChange,Pe=de.expandIcon,Ge=Pe===void 0?">":Pe,We=de.loadingIcon,ct=de.children,Lt=de.dropdownMatchSelectWidth,Pt=Lt===void 0?!1:Lt,cn=de.showCheckedStrategy,Ne=cn===void 0?D:cn,Re=de.optionRender,dt=(0,B.Z)(de,Ve),mt=(0,_e.ZP)(N),Mt=!!wt,bt=(0,o.Z)(it,{value:st,postState:T}),Tt=(0,ae.Z)(bt,2),Kt=Tt[0],en=Tt[1],At=g.useMemo(function(){return oe(Ae)},[JSON.stringify(Ae)]),dn=O(At,he),an=(0,ae.Z)(dn,3),Jt=an[0],kt=an[1],Ze=an[2],ft=(0,o.Z)("",{value:ve,postState:function(zt){return zt||""}}),St=(0,ae.Z)(ft,2),Ot=St[0],tn=St[1],et=function(zt,Wt){tn(zt),Wt.source!=="blur"&&Ee&&Ee(zt)},ln=He(k),xn=(0,ae.Z)(ln,2),Tn=xn[0],Cn=xn[1],Yn=F(Ot,Jt,At,ce||De,Cn,Oe||Mt),Dn=X(Jt,At),Zn=Rt(Mt,Kt,kt,Ze,Dn),On=(0,ae.Z)(Zn,3),Bn=On[0],In=On[1],yn=On[2],kn=g.useMemo(function(){var _t=re(Bn),zt=P(_t,kt,Ne);return[].concat((0,z.Z)(yn),(0,z.Z)(Ze(zt)))},[Bn,kt,Ze,yn,Ne]),pn=ie(kn,Jt,At,Mt,jt),En=(0,ne.Z)(function(_t){if(en(_t),Et){var zt=T(_t),Wt=zt.map(function(xt){return G(xt,Jt,At).map(function(Nt){return Nt.option})}),It=Mt?zt:zt[0],vt=Mt?Wt:Wt[0];Et(It,vt)}}),Ln=Ct(Mt,En,Bn,In,yn,kt,Ze,Ne),Mn=(0,ne.Z)(function(_t){(!Mt||se)&&tn(""),Ln(_t)}),zn=function(zt,Wt){if(Wt.type==="clear"){En([]);return}var It=Wt.values[0],vt=It.valueCells;Mn(vt)},Un=Xe!==void 0?Xe:Be,ar=nt||ut,Me=S||U,Ie=function(zt){ze==null||ze(zt),ke==null||ke(zt)},Te=g.useMemo(function(){return{options:Jt,fieldNames:At,values:Bn,halfValues:In,changeOnSelect:Oe,onSelect:Mn,checkable:wt,searchOptions:Yn,dropdownPrefixCls:ce,loadData:xe,expandTrigger:Y,expandIcon:Ge,loadingIcon:We,dropdownMenuColumnStyle:Ue,optionRender:Re}},[Jt,At,Bn,In,Oe,Mn,wt,Yn,ce,xe,Y,Ge,We,Ue,Re]),lt=!(Ot?Yn:Jt).length,gt=Ot&&Cn.matchInputWidth||lt?{}:{minWidth:"auto"};return g.createElement(p.Provider,{value:Te},g.createElement(d.Ac,(0,f.Z)({},dt,{ref:K,id:mt,prefixCls:De,autoClearSearchValue:se,dropdownMatchSelectWidth:Pt,dropdownStyle:(0,ue.Z)((0,ue.Z)({},gt),R),displayValues:pn,onDisplayValuesChange:zn,mode:Mt?"multiple":void 0,searchValue:Ot,onSearch:et,showSearch:Tn,OptionList:M,emptyOptions:lt,open:Un,dropdownClassName:ar,placement:Me,onDropdownVisibleChange:Ie,getRawInputElement:function(){return ct}})))});qe.SHOW_PARENT=D,qe.SHOW_CHILD=w,qe.Panel=W;var Ye=qe,ot=Ye},16632:function(Pn,Gt,_){"use strict";var f=_(32855),ue=_(27247),z=_(74430),ae=_(11913),B=_(43079),d=_(92310),_e=_.n(d),ne=_(18929),o=_(59301),g=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],A=(0,o.forwardRef)(function(p,E){var b=p.prefixCls,I=b===void 0?"rc-checkbox":b,j=p.className,$=p.style,le=p.checked,F=p.disabled,H=p.defaultChecked,D=H===void 0?!1:H,w=p.type,Q=w===void 0?"checkbox":w,re=p.title,ee=p.onChange,oe=(0,B.Z)(p,g),ge=(0,o.useRef)(null),me=(0,o.useRef)(null),at=(0,ne.Z)(D,{value:le}),Z=(0,ae.Z)(at,2),T=Z[0],P=Z[1];(0,o.useImperativeHandle)(E,function(){return{focus:function(y){var v;(v=ge.current)===null||v===void 0||v.focus(y)},blur:function(){var y;(y=ge.current)===null||y===void 0||y.blur()},input:ge.current,nativeElement:me.current}});var G=_e()(I,j,(0,z.Z)((0,z.Z)({},"".concat(I,"-checked"),T),"".concat(I,"-disabled"),F)),ie=function(y){F||("checked"in p||P(y.target.checked),ee==null||ee({target:(0,ue.Z)((0,ue.Z)({},p),{},{type:Q,checked:y.target.checked}),stopPropagation:function(){y.stopPropagation()},preventDefault:function(){y.preventDefault()},nativeEvent:y.nativeEvent}))};return o.createElement("span",{className:G,title:re,style:$,ref:me},o.createElement("input",(0,f.Z)({},oe,{className:"".concat(I,"-input"),ref:ge,onChange:ie,disabled:F,checked:!!T,type:Q})),o.createElement("span",{className:"".concat(I,"-inner")}))});Gt.Z=A},96478:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return re}});var f=_(32855),ue=_(74430),z=_(11913),ae=_(43079),B=_(65030),d=_(92310),_e=_.n(d),ne=_(8654),o=_(59301),g=_(10228),A=_(16089),p=g.Z.ESC,E=g.Z.TAB;function b(ee){var oe=ee.visible,ge=ee.triggerRef,me=ee.onVisibleChange,at=ee.autoFocus,Z=ee.overlayRef,T=o.useRef(!1),P=function(){if(oe){var y,v;(y=ge.current)===null||y===void 0||(v=y.focus)===null||v===void 0||v.call(y),me==null||me(!1)}},G=function(){var y;return(y=Z.current)!==null&&y!==void 0&&y.focus?(Z.current.focus(),T.current=!0,!0):!1},ie=function(y){switch(y.keyCode){case p:P();break;case E:{var v=!1;T.current||(v=G()),v?y.preventDefault():P();break}}};o.useEffect(function(){return oe?(window.addEventListener("keydown",ie),at&&(0,A.Z)(G,3),function(){window.removeEventListener("keydown",ie),T.current=!1}):function(){T.current=!1}},[oe])}var I=(0,o.forwardRef)(function(ee,oe){var ge=ee.overlay,me=ee.arrow,at=ee.prefixCls,Z=(0,o.useMemo)(function(){var P;return typeof ge=="function"?P=ge():P=ge,P},[ge]),T=(0,ne.sQ)(oe,(0,ne.C4)(Z));return o.createElement(o.Fragment,null,me&&o.createElement("div",{className:"".concat(at,"-arrow")}),o.cloneElement(Z,{ref:(0,ne.Yr)(Z)?T:void 0}))}),j=I,$={adjustX:1,adjustY:1},le=[0,0],F={topLeft:{points:["bl","tl"],overflow:$,offset:[0,-4],targetOffset:le},top:{points:["bc","tc"],overflow:$,offset:[0,-4],targetOffset:le},topRight:{points:["br","tr"],overflow:$,offset:[0,-4],targetOffset:le},bottomLeft:{points:["tl","bl"],overflow:$,offset:[0,4],targetOffset:le},bottom:{points:["tc","bc"],overflow:$,offset:[0,4],targetOffset:le},bottomRight:{points:["tr","br"],overflow:$,offset:[0,4],targetOffset:le}},H=F,D=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function w(ee,oe){var ge,me=ee.arrow,at=me===void 0?!1:me,Z=ee.prefixCls,T=Z===void 0?"rc-dropdown":Z,P=ee.transitionName,G=ee.animation,ie=ee.align,X=ee.placement,y=X===void 0?"bottomLeft":X,v=ee.placements,O=v===void 0?H:v,pe=ee.getPopupContainer,He=ee.showAction,tt=ee.hideAction,Ct=ee.overlayClassName,Rt=ee.overlayStyle,Ft=ee.visible,Ht=ee.trigger,Ke=Ht===void 0?["hover"]:Ht,qt=ee.autoFocus,Dt=ee.overlay,sn=ee.children,Je=ee.onVisibleChange,yt=(0,ae.Z)(ee,D),Fe=o.useState(),we=(0,z.Z)(Fe,2),V=we[0],je=we[1],Qe="visible"in ee?Ft:V,q=o.useRef(null),M=o.useRef(null),Se=o.useRef(null);o.useImperativeHandle(oe,function(){return q.current});var be=function(de){je(de),Je==null||Je(de)};b({visible:Qe,triggerRef:Se,onVisibleChange:be,autoFocus:qt,overlayRef:M});var W=function(de){var K=ee.onOverlayClick;je(!1),K&&K(de)},fe=function(){return o.createElement(j,{ref:M,overlay:Dt,prefixCls:T,arrow:at})},ye=function(){return typeof Dt=="function"?fe:fe()},$e=function(){var de=ee.minOverlayWidthMatchTrigger,K=ee.alignPoint;return"minOverlayWidthMatchTrigger"in ee?de:!K},Ve=function(){var de=ee.openClassName;return de!==void 0?de:"".concat(T,"-open")},qe=o.cloneElement(sn,{className:_e()((ge=sn.props)===null||ge===void 0?void 0:ge.className,Qe&&Ve()),ref:(0,ne.Yr)(sn)?(0,ne.sQ)(Se,(0,ne.C4)(sn)):void 0}),Ye=tt;return!Ye&&Ke.indexOf("contextMenu")!==-1&&(Ye=["click"]),o.createElement(B.Z,(0,f.Z)({builtinPlacements:O},yt,{prefixCls:T,ref:q,popupClassName:_e()(Ct,(0,ue.Z)({},"".concat(T,"-show-arrow"),at)),popupStyle:Rt,action:Ke,showAction:He,hideAction:Ye,popupPlacement:y,popupAlign:ie,popupTransitionName:P,popupAnimation:G,popupVisible:Qe,stretch:$e()?"minWidth":"",popup:ye(),onPopupVisibleChange:be,onPopupClick:W,getPopupContainer:pe}),qe)}var Q=o.forwardRef(w),re=Q},66003:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return _e}});var f=_(43079),ue=_(27247),z=_(34666),ae=_(59301),B=["show"];function d(ne,o){if(!o.max)return!0;var g=o.strategy(ne);return g<=o.max}function _e(ne,o){return ae.useMemo(function(){var g={};o&&(g.show=(0,z.Z)(o)==="object"&&o.formatter?o.formatter:!!o),g=(0,ue.Z)((0,ue.Z)({},g),ne);var A=g,p=A.show,E=(0,f.Z)(A,B);return(0,ue.Z)((0,ue.Z)({},E),{},{show:!!p,showFormatter:typeof p=="function"?p:void 0,strategy:E.strategy||function(b){return b.length}})},[ne,o])}},36901:function(Pn,Gt,_){"use strict";_.r(Gt),_.d(Gt,{BaseInput:function(){return g},default:function(){return H}});var f=_(27247),ue=_(32855),z=_(74430),ae=_(34666),B=_(92310),d=_.n(B),_e=_(59301),ne=_(30292),o=_e.forwardRef(function(D,w){var Q,re,ee,oe=D.inputElement,ge=D.children,me=D.prefixCls,at=D.prefix,Z=D.suffix,T=D.addonBefore,P=D.addonAfter,G=D.className,ie=D.style,X=D.disabled,y=D.readOnly,v=D.focused,O=D.triggerFocus,pe=D.allowClear,He=D.value,tt=D.handleReset,Ct=D.hidden,Rt=D.classes,Ft=D.classNames,Ht=D.dataAttrs,Ke=D.styles,qt=D.components,Dt=D.onClear,sn=ge!=null?ge:oe,Je=(qt==null?void 0:qt.affixWrapper)||"span",yt=(qt==null?void 0:qt.groupWrapper)||"span",Fe=(qt==null?void 0:qt.wrapper)||"span",we=(qt==null?void 0:qt.groupAddon)||"span",V=(0,_e.useRef)(null),je=function(Le){var De;(De=V.current)!==null&&De!==void 0&&De.contains(Le.target)&&(O==null||O())},Qe=(0,ne.X3)(D),q=(0,_e.cloneElement)(sn,{value:He,className:d()((Q=sn.props)===null||Q===void 0?void 0:Q.className,!Qe&&(Ft==null?void 0:Ft.variant))||null}),M=(0,_e.useRef)(null);if(_e.useImperativeHandle(w,function(){return{nativeElement:M.current||V.current}}),Qe){var Se=null;if(pe){var be=!X&&!y&&He,W="".concat(me,"-clear-icon"),fe=(0,ae.Z)(pe)==="object"&&pe!==null&&pe!==void 0&&pe.clearIcon?pe.clearIcon:"\u2716";Se=_e.createElement("button",{type:"button",tabIndex:-1,onClick:function(Le){tt==null||tt(Le),Dt==null||Dt()},onMouseDown:function(Le){return Le.preventDefault()},className:d()(W,(0,z.Z)((0,z.Z)({},"".concat(W,"-hidden"),!be),"".concat(W,"-has-suffix"),!!Z))},fe)}var ye="".concat(me,"-affix-wrapper"),$e=d()(ye,(0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)({},"".concat(me,"-disabled"),X),"".concat(ye,"-disabled"),X),"".concat(ye,"-focused"),v),"".concat(ye,"-readonly"),y),"".concat(ye,"-input-with-clear-btn"),Z&&pe&&He),Rt==null?void 0:Rt.affixWrapper,Ft==null?void 0:Ft.affixWrapper,Ft==null?void 0:Ft.variant),Ve=(Z||pe)&&_e.createElement("span",{className:d()("".concat(me,"-suffix"),Ft==null?void 0:Ft.suffix),style:Ke==null?void 0:Ke.suffix},Se,Z);q=_e.createElement(Je,(0,ue.Z)({className:$e,style:Ke==null?void 0:Ke.affixWrapper,onClick:je},Ht==null?void 0:Ht.affixWrapper,{ref:V}),at&&_e.createElement("span",{className:d()("".concat(me,"-prefix"),Ft==null?void 0:Ft.prefix),style:Ke==null?void 0:Ke.prefix},at),q,Ve)}if((0,ne.He)(D)){var qe="".concat(me,"-group"),Ye="".concat(qe,"-addon"),ot="".concat(qe,"-wrapper"),de=d()("".concat(me,"-wrapper"),qe,Rt==null?void 0:Rt.wrapper,Ft==null?void 0:Ft.wrapper),K=d()(ot,(0,z.Z)({},"".concat(ot,"-disabled"),X),Rt==null?void 0:Rt.group,Ft==null?void 0:Ft.groupWrapper);q=_e.createElement(yt,{className:K,ref:M},_e.createElement(Fe,{className:de},T&&_e.createElement(we,{className:Ye},T),q,P&&_e.createElement(we,{className:Ye},P)))}return _e.cloneElement(q,{className:d()((re=q.props)===null||re===void 0?void 0:re.className,G)||null,style:(0,f.Z)((0,f.Z)({},(ee=q.props)===null||ee===void 0?void 0:ee.style),ie),hidden:Ct})}),g=o,A=_(3300),p=_(11913),E=_(43079),b=_(18929),I=_(2738),j=_(66003),$=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],le=(0,_e.forwardRef)(function(D,w){var Q=D.autoComplete,re=D.onChange,ee=D.onFocus,oe=D.onBlur,ge=D.onPressEnter,me=D.onKeyDown,at=D.onKeyUp,Z=D.prefixCls,T=Z===void 0?"rc-input":Z,P=D.disabled,G=D.htmlSize,ie=D.className,X=D.maxLength,y=D.suffix,v=D.showCount,O=D.count,pe=D.type,He=pe===void 0?"text":pe,tt=D.classes,Ct=D.classNames,Rt=D.styles,Ft=D.onCompositionStart,Ht=D.onCompositionEnd,Ke=(0,E.Z)(D,$),qt=(0,_e.useState)(!1),Dt=(0,p.Z)(qt,2),sn=Dt[0],Je=Dt[1],yt=(0,_e.useRef)(!1),Fe=(0,_e.useRef)(!1),we=(0,_e.useRef)(null),V=(0,_e.useRef)(null),je=function(Bt){we.current&&(0,ne.nH)(we.current,Bt)},Qe=(0,b.Z)(D.defaultValue,{value:D.value}),q=(0,p.Z)(Qe,2),M=q[0],Se=q[1],be=M==null?"":String(M),W=(0,_e.useState)(null),fe=(0,p.Z)(W,2),ye=fe[0],$e=fe[1],Ve=(0,j.Z)(O,v),qe=Ve.max||X,Ye=Ve.strategy(be),ot=!!qe&&Ye>qe;(0,_e.useImperativeHandle)(w,function(){var wt;return{focus:je,blur:function(){var se;(se=we.current)===null||se===void 0||se.blur()},setSelectionRange:function(se,ve,Ee){var k;(k=we.current)===null||k===void 0||k.setSelectionRange(se,ve,Ee)},select:function(){var se;(se=we.current)===null||se===void 0||se.select()},input:we.current,nativeElement:((wt=V.current)===null||wt===void 0?void 0:wt.nativeElement)||we.current}}),(0,_e.useEffect)(function(){Fe.current&&(Fe.current=!1),Je(function(wt){return wt&&P?!1:wt})},[P]);var de=function(Bt,se,ve){var Ee=se;if(!yt.current&&Ve.exceedFormatter&&Ve.max&&Ve.strategy(se)>Ve.max){if(Ee=Ve.exceedFormatter(se,{max:Ve.max}),se!==Ee){var k,Y;$e([((k=we.current)===null||k===void 0?void 0:k.selectionStart)||0,((Y=we.current)===null||Y===void 0?void 0:Y.selectionEnd)||0])}}else if(ve.source==="compositionEnd")return;Se(Ee),we.current&&(0,ne.rJ)(we.current,Bt,re,Ee)};(0,_e.useEffect)(function(){if(ye){var wt;(wt=we.current)===null||wt===void 0||wt.setSelectionRange.apply(wt,(0,A.Z)(ye))}},[ye]);var K=function(Bt){de(Bt,Bt.target.value,{source:"change"})},N=function(Bt){yt.current=!1,de(Bt,Bt.currentTarget.value,{source:"compositionEnd"}),Ht==null||Ht(Bt)},Le=function(Bt){ge&&Bt.key==="Enter"&&!Fe.current&&(Fe.current=!0,ge(Bt)),me==null||me(Bt)},De=function(Bt){Bt.key==="Enter"&&(Fe.current=!1),at==null||at(Bt)},Ae=function(Bt){Je(!0),ee==null||ee(Bt)},it=function(Bt){Fe.current&&(Fe.current=!1),Je(!1),oe==null||oe(Bt)},st=function(Bt){Se(""),je(),we.current&&(0,ne.rJ)(we.current,Bt,re)},Oe=ot&&"".concat(T,"-out-of-range"),Et=function(){var Bt=(0,I.Z)(D,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return _e.createElement("input",(0,ue.Z)({autoComplete:Q},Bt,{onChange:K,onFocus:Ae,onBlur:it,onKeyDown:Le,onKeyUp:De,className:d()(T,(0,z.Z)({},"".concat(T,"-disabled"),P),Ct==null?void 0:Ct.input),style:Rt==null?void 0:Rt.input,ref:we,size:G,type:He,onCompositionStart:function(ve){yt.current=!0,Ft==null||Ft(ve)},onCompositionEnd:N}))},jt=function(){var Bt=Number(qe)>0;if(y||Ve.show){var se=Ve.showFormatter?Ve.showFormatter({value:be,count:Ye,maxLength:qe}):"".concat(Ye).concat(Bt?" / ".concat(qe):"");return _e.createElement(_e.Fragment,null,Ve.show&&_e.createElement("span",{className:d()("".concat(T,"-show-count-suffix"),(0,z.Z)({},"".concat(T,"-show-count-has-suffix"),!!y),Ct==null?void 0:Ct.count),style:(0,f.Z)({},Rt==null?void 0:Rt.count)},se),y)}return null};return _e.createElement(g,(0,ue.Z)({},Ke,{prefixCls:T,className:d()(ie,Oe),handleReset:st,value:be,focused:sn,triggerFocus:je,suffix:jt(),disabled:P,classes:tt,classNames:Ct,styles:Rt}),Et())}),F=le,H=F},30292:function(Pn,Gt,_){"use strict";_.d(Gt,{He:function(){return f},X3:function(){return ue},nH:function(){return B},rJ:function(){return ae}});function f(d){return!!(d.addonBefore||d.addonAfter)}function ue(d){return!!(d.prefix||d.suffix||d.allowClear)}function z(d,_e,ne){var o=_e.cloneNode(!0),g=Object.create(d,{target:{value:o},currentTarget:{value:o}});return o.value=ne,typeof _e.selectionStart=="number"&&typeof _e.selectionEnd=="number"&&(o.selectionStart=_e.selectionStart,o.selectionEnd=_e.selectionEnd),o.setSelectionRange=function(){_e.setSelectionRange.apply(_e,arguments)},g}function ae(d,_e,ne,o){if(ne){var g=_e;if(_e.type==="click"){g=z(_e,d,""),ne(g);return}if(d.type!=="file"&&o!==void 0){g=z(_e,d,o),ne(g);return}ne(g)}}function B(d,_e){if(d){d.focus(_e);var ne=_e||{},o=ne.cursor;if(o){var g=d.value.length;switch(o){case"start":d.setSelectionRange(0,0);break;case"end":d.setSelectionRange(g,g);break;default:d.setSelectionRange(0,g)}}}}},28321:function(Pn,Gt,_){"use strict";_.d(Gt,{iz:function(){return Ne},ck:function(){return Ee},BW:function(){return Mt},sN:function(){return Ee},Wd:function(){return Pt},ZP:function(){return kt},Xl:function(){return ge}});var f=_(32855),ue=_(74430),z=_(27247),ae=_(3300),B=_(11913),d=_(43079),_e=_(92310),ne=_.n(_e),o=_(11780),g=_(18929),A=_(13697),p=_(48736),E=_(59301),b=_(4676),I=E.createContext(null);function j(Ze,ft){return Ze===void 0?null:"".concat(Ze,"-").concat(ft)}function $(Ze){var ft=E.useContext(I);return j(ft,Ze)}var le=_(80547),F=["children","locked"],H=E.createContext(null);function D(Ze,ft){var St=(0,z.Z)({},Ze);return Object.keys(ft).forEach(function(Ot){var tn=ft[Ot];tn!==void 0&&(St[Ot]=tn)}),St}function w(Ze){var ft=Ze.children,St=Ze.locked,Ot=(0,d.Z)(Ze,F),tn=E.useContext(H),et=(0,le.Z)(function(){return D(tn,Ot)},[tn,Ot],function(ln,xn){return!St&&(ln[0]!==xn[0]||!(0,A.Z)(ln[1],xn[1],!0))});return E.createElement(H.Provider,{value:et},ft)}var Q=[],re=E.createContext(null);function ee(){return E.useContext(re)}var oe=E.createContext(Q);function ge(Ze){var ft=E.useContext(oe);return E.useMemo(function(){return Ze!==void 0?[].concat((0,ae.Z)(ft),[Ze]):ft},[ft,Ze])}var me=E.createContext(null),at=E.createContext({}),Z=at,T=_(29194);function P(Ze){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,T.Z)(Ze)){var St=Ze.nodeName.toLowerCase(),Ot=["input","select","textarea","button"].includes(St)||Ze.isContentEditable||St==="a"&&!!Ze.getAttribute("href"),tn=Ze.getAttribute("tabindex"),et=Number(tn),ln=null;return tn&&!Number.isNaN(et)?ln=et:Ot&&ln===null&&(ln=0),Ot&&Ze.disabled&&(ln=null),ln!==null&&(ln>=0||ft&&ln<0)}return!1}function G(Ze){var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,St=(0,ae.Z)(Ze.querySelectorAll("*")).filter(function(Ot){return P(Ot,ft)});return P(Ze,ft)&&St.unshift(Ze),St}var ie=null;function X(){ie=document.activeElement}function y(){ie=null}function v(){if(ie)try{ie.focus()}catch(Ze){}}function O(Ze,ft){if(ft.keyCode===9){var St=G(Ze),Ot=St[ft.shiftKey?0:St.length-1],tn=Ot===document.activeElement||Ze===document.activeElement;if(tn){var et=St[ft.shiftKey?St.length-1:0];et.focus(),ft.preventDefault()}}}var pe=_(10228),He=_(16089),tt=pe.Z.LEFT,Ct=pe.Z.RIGHT,Rt=pe.Z.UP,Ft=pe.Z.DOWN,Ht=pe.Z.ENTER,Ke=pe.Z.ESC,qt=pe.Z.HOME,Dt=pe.Z.END,sn=[Rt,Ft,tt,Ct];function Je(Ze,ft,St,Ot){var tn,et="prev",ln="next",xn="children",Tn="parent";if(Ze==="inline"&&Ot===Ht)return{inlineTrigger:!0};var Cn=(0,ue.Z)((0,ue.Z)({},Rt,et),Ft,ln),Yn=(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},tt,St?ln:et),Ct,St?et:ln),Ft,xn),Ht,xn),Dn=(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},Rt,et),Ft,ln),Ht,xn),Ke,Tn),tt,St?xn:Tn),Ct,St?Tn:xn),Zn={inline:Cn,horizontal:Yn,vertical:Dn,inlineSub:Cn,horizontalSub:Dn,verticalSub:Dn},On=(tn=Zn["".concat(Ze).concat(ft?"":"Sub")])===null||tn===void 0?void 0:tn[Ot];switch(On){case et:return{offset:-1,sibling:!0};case ln:return{offset:1,sibling:!0};case Tn:return{offset:-1,sibling:!1};case xn:return{offset:1,sibling:!1};default:return null}}function yt(Ze){for(var ft=Ze;ft;){if(ft.getAttribute("data-menu-list"))return ft;ft=ft.parentElement}return null}function Fe(Ze,ft){for(var St=Ze||document.activeElement;St;){if(ft.has(St))return St;St=St.parentElement}return null}function we(Ze,ft){var St=G(Ze,!0);return St.filter(function(Ot){return ft.has(Ot)})}function V(Ze,ft,St){var Ot=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Ze)return null;var tn=we(Ze,ft),et=tn.length,ln=tn.findIndex(function(xn){return St===xn});return Ot<0?ln===-1?ln=et-1:ln-=1:Ot>0&&(ln+=1),ln=(ln+et)%et,tn[ln]}var je=function(ft,St){var Ot=new Set,tn=new Map,et=new Map;return ft.forEach(function(ln){var xn=document.querySelector("[data-menu-id='".concat(j(St,ln),"']"));xn&&(Ot.add(xn),et.set(xn,ln),tn.set(ln,xn))}),{elements:Ot,key2element:tn,element2key:et}};function Qe(Ze,ft,St,Ot,tn,et,ln,xn,Tn,Cn){var Yn=E.useRef(),Dn=E.useRef();Dn.current=ft;var Zn=function(){He.Z.cancel(Yn.current)};return E.useEffect(function(){return function(){Zn()}},[]),function(On){var Bn=On.which;if([].concat(sn,[Ht,Ke,qt,Dt]).includes(Bn)){var In=et(),yn=je(In,Ot),kn=yn,pn=kn.elements,En=kn.key2element,Ln=kn.element2key,Mn=En.get(ft),zn=Fe(Mn,pn),Un=Ln.get(zn),ar=Je(Ze,ln(Un,!0).length===1,St,Bn);if(!ar&&Bn!==qt&&Bn!==Dt)return;(sn.includes(Bn)||[qt,Dt].includes(Bn))&&On.preventDefault();var Me=function(It){if(It){var vt=It,xt=It.querySelector("a");xt!=null&&xt.getAttribute("href")&&(vt=xt);var Nt=Ln.get(It);xn(Nt),Zn(),Yn.current=(0,He.Z)(function(){Dn.current===Nt&&vt.focus()})}};if([qt,Dt].includes(Bn)||ar.sibling||!zn){var Ie;!zn||Ze==="inline"?Ie=tn.current:Ie=yt(zn);var Te,lt=we(Ie,pn);Bn===qt?Te=lt[0]:Bn===Dt?Te=lt[lt.length-1]:Te=V(Ie,pn,zn,ar.offset),Me(Te)}else if(ar.inlineTrigger)Tn(Un);else if(ar.offset>0)Tn(Un,!0),Zn(),Yn.current=(0,He.Z)(function(){yn=je(In,Ot);var Wt=zn.getAttribute("aria-controls"),It=document.getElementById(Wt),vt=V(It,yn.elements);Me(vt)},5);else if(ar.offset<0){var gt=ln(Un,!0),_t=gt[gt.length-2],zt=En.get(_t);Tn(_t,!1),Me(zt)}}Cn==null||Cn(On)}}function q(Ze){Promise.resolve().then(Ze)}var M="__RC_UTIL_PATH_SPLIT__",Se=function(ft){return ft.join(M)},be=function(ft){return ft.split(M)},W="rc-menu-more";function fe(){var Ze=E.useState({}),ft=(0,B.Z)(Ze,2),St=ft[1],Ot=(0,E.useRef)(new Map),tn=(0,E.useRef)(new Map),et=E.useState([]),ln=(0,B.Z)(et,2),xn=ln[0],Tn=ln[1],Cn=(0,E.useRef)(0),Yn=(0,E.useRef)(!1),Dn=function(){Yn.current||St({})},Zn=(0,E.useCallback)(function(En,Ln){var Mn=Se(Ln);tn.current.set(Mn,En),Ot.current.set(En,Mn),Cn.current+=1;var zn=Cn.current;q(function(){zn===Cn.current&&Dn()})},[]),On=(0,E.useCallback)(function(En,Ln){var Mn=Se(Ln);tn.current.delete(Mn),Ot.current.delete(En)},[]),Bn=(0,E.useCallback)(function(En){Tn(En)},[]),In=(0,E.useCallback)(function(En,Ln){var Mn=Ot.current.get(En)||"",zn=be(Mn);return Ln&&xn.includes(zn[0])&&zn.unshift(W),zn},[xn]),yn=(0,E.useCallback)(function(En,Ln){return En.filter(function(Mn){return Mn!==void 0}).some(function(Mn){var zn=In(Mn,!0);return zn.includes(Ln)})},[In]),kn=function(){var Ln=(0,ae.Z)(Ot.current.keys());return xn.length&&Ln.push(W),Ln},pn=(0,E.useCallback)(function(En){var Ln="".concat(Ot.current.get(En)).concat(M),Mn=new Set;return(0,ae.Z)(tn.current.keys()).forEach(function(zn){zn.startsWith(Ln)&&Mn.add(tn.current.get(zn))}),Mn},[]);return E.useEffect(function(){return function(){Yn.current=!0}},[]),{registerPath:Zn,unregisterPath:On,refreshOverflowKeys:Bn,isSubPathKey:yn,getKeyPath:In,getKeys:kn,getSubPathKeys:pn}}function ye(Ze){var ft=E.useRef(Ze);ft.current=Ze;var St=E.useCallback(function(){for(var Ot,tn=arguments.length,et=new Array(tn),ln=0;ln<tn;ln++)et[ln]=arguments[ln];return(Ot=ft.current)===null||Ot===void 0?void 0:Ot.call.apply(Ot,[ft].concat(et))},[]);return Ze?St:void 0}var $e=Math.random().toFixed(5).toString().slice(2),Ve=0;function qe(Ze){var ft=(0,g.Z)(Ze,{value:Ze}),St=(0,B.Z)(ft,2),Ot=St[0],tn=St[1];return E.useEffect(function(){Ve+=1;var et="".concat($e,"-").concat(Ve);tn("rc-menu-uuid-".concat(et))},[]),Ot}var Ye=_(33377),ot=_(93912),de=_(18881),K=_(85461),N=_(2738),Le=_(8654);function De(Ze,ft,St,Ot){var tn=E.useContext(H),et=tn.activeKey,ln=tn.onActive,xn=tn.onInactive,Tn={active:et===Ze};return ft||(Tn.onMouseEnter=function(Cn){St==null||St({key:Ze,domEvent:Cn}),ln(Ze)},Tn.onMouseLeave=function(Cn){Ot==null||Ot({key:Ze,domEvent:Cn}),xn(Ze)}),Tn}function Ae(Ze){var ft=E.useContext(H),St=ft.mode,Ot=ft.rtl,tn=ft.inlineIndent;if(St!=="inline")return null;var et=Ze;return Ot?{paddingRight:et*tn}:{paddingLeft:et*tn}}function it(Ze){var ft=Ze.icon,St=Ze.props,Ot=Ze.children,tn;return ft===null||ft===!1?null:(typeof ft=="function"?tn=E.createElement(ft,(0,z.Z)({},St)):typeof ft!="boolean"&&(tn=ft),tn||Ot||null)}var st=["item"];function Oe(Ze){var ft=Ze.item,St=(0,d.Z)(Ze,st);return Object.defineProperty(St,"item",{get:function(){return(0,p.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),ft}}),St}var Et=["title","attribute","elementRef"],jt=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],wt=["active"],Bt=function(Ze){(0,de.Z)(St,Ze);var ft=(0,K.Z)(St);function St(){return(0,Ye.Z)(this,St),ft.apply(this,arguments)}return(0,ot.Z)(St,[{key:"render",value:function(){var tn=this.props,et=tn.title,ln=tn.attribute,xn=tn.elementRef,Tn=(0,d.Z)(tn,Et),Cn=(0,N.Z)(Tn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,p.ZP)(!ln,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),E.createElement(o.Z.Item,(0,f.Z)({},ln,{title:typeof et=="string"?et:void 0},Cn,{ref:xn}))}}]),St}(E.Component),se=E.forwardRef(function(Ze,ft){var St=Ze.style,Ot=Ze.className,tn=Ze.eventKey,et=Ze.warnKey,ln=Ze.disabled,xn=Ze.itemIcon,Tn=Ze.children,Cn=Ze.role,Yn=Ze.onMouseEnter,Dn=Ze.onMouseLeave,Zn=Ze.onClick,On=Ze.onKeyDown,Bn=Ze.onFocus,In=(0,d.Z)(Ze,jt),yn=$(tn),kn=E.useContext(H),pn=kn.prefixCls,En=kn.onItemClick,Ln=kn.disabled,Mn=kn.overflowDisabled,zn=kn.itemIcon,Un=kn.selectedKeys,ar=kn.onActive,Me=E.useContext(Z),Ie=Me._internalRenderMenuItem,Te="".concat(pn,"-item"),lt=E.useRef(),gt=E.useRef(),_t=Ln||ln,zt=(0,Le.x1)(ft,gt),Wt=ge(tn),It=function(wn){return{key:tn,keyPath:(0,ae.Z)(Wt).reverse(),item:lt.current,domEvent:wn}},vt=xn||zn,xt=De(tn,_t,Yn,Dn),Nt=xt.active,Zt=(0,d.Z)(xt,wt),nn=Un.includes(tn),gn=Ae(Wt.length),Kn=function(wn){if(!_t){var Gn=It(wn);Zn==null||Zn(Oe(Gn)),En(Gn)}},mn=function(wn){if(On==null||On(wn),wn.which===pe.Z.ENTER){var Gn=It(wn);Zn==null||Zn(Oe(Gn)),En(Gn)}},Sn=function(wn){ar(tn),Bn==null||Bn(wn)},Fn={};Ze.role==="option"&&(Fn["aria-selected"]=nn);var Nn=E.createElement(Bt,(0,f.Z)({ref:lt,elementRef:zt,role:Cn===null?"none":Cn||"menuitem",tabIndex:ln?null:-1,"data-menu-id":Mn&&yn?null:yn},(0,N.Z)(In,["extra"]),Zt,Fn,{component:"li","aria-disabled":ln,style:(0,z.Z)((0,z.Z)({},gn),St),className:ne()(Te,(0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(Te,"-active"),Nt),"".concat(Te,"-selected"),nn),"".concat(Te,"-disabled"),_t),Ot),onClick:Kn,onKeyDown:mn,onFocus:Sn}),Tn,E.createElement(it,{props:(0,z.Z)((0,z.Z)({},Ze),{},{isSelected:nn}),icon:vt}));return Ie&&(Nn=Ie(Nn,Ze,{selected:nn})),Nn});function ve(Ze,ft){var St=Ze.eventKey,Ot=ee(),tn=ge(St);return E.useEffect(function(){if(Ot)return Ot.registerPath(St,tn),function(){Ot.unregisterPath(St,tn)}},[tn]),Ot?null:E.createElement(se,(0,f.Z)({},Ze,{ref:ft}))}var Ee=E.forwardRef(ve),k=["className","children"],Y=function(ft,St){var Ot=ft.className,tn=ft.children,et=(0,d.Z)(ft,k),ln=E.useContext(H),xn=ln.prefixCls,Tn=ln.mode,Cn=ln.rtl;return E.createElement("ul",(0,f.Z)({className:ne()(xn,Cn&&"".concat(xn,"-rtl"),"".concat(xn,"-sub"),"".concat(xn,"-").concat(Tn==="inline"?"inline":"vertical"),Ot),role:"menu"},et,{"data-menu-list":!0,ref:St}),tn)},he=E.forwardRef(Y);he.displayName="SubMenuList";var ce=he,xe=_(11592);function Be(Ze,ft){return(0,xe.Z)(Ze).map(function(St,Ot){if(E.isValidElement(St)){var tn,et,ln=St.key,xn=(tn=(et=St.props)===null||et===void 0?void 0:et.eventKey)!==null&&tn!==void 0?tn:ln,Tn=xn==null;Tn&&(xn="tmp_key-".concat([].concat((0,ae.Z)(ft),[Ot]).join("-")));var Cn={key:xn,eventKey:xn};return E.cloneElement(St,Cn)}return St})}var Xe=_(65030),ut={adjustX:1,adjustY:1},nt={topLeft:{points:["bl","tl"],overflow:ut},topRight:{points:["br","tr"],overflow:ut},bottomLeft:{points:["tl","bl"],overflow:ut},bottomRight:{points:["tr","br"],overflow:ut},leftTop:{points:["tr","tl"],overflow:ut},leftBottom:{points:["br","bl"],overflow:ut},rightTop:{points:["tl","tr"],overflow:ut},rightBottom:{points:["bl","br"],overflow:ut}},Ue={topLeft:{points:["bl","tl"],overflow:ut},topRight:{points:["br","tr"],overflow:ut},bottomLeft:{points:["tl","bl"],overflow:ut},bottomRight:{points:["tr","br"],overflow:ut},rightTop:{points:["tr","tl"],overflow:ut},rightBottom:{points:["br","bl"],overflow:ut},leftTop:{points:["tl","tr"],overflow:ut},leftBottom:{points:["bl","br"],overflow:ut}},R=null;function U(Ze,ft,St){if(ft)return ft;if(St)return St[Ze]||St.other}var S={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function ze(Ze){var ft=Ze.prefixCls,St=Ze.visible,Ot=Ze.children,tn=Ze.popup,et=Ze.popupStyle,ln=Ze.popupClassName,xn=Ze.popupOffset,Tn=Ze.disabled,Cn=Ze.mode,Yn=Ze.onVisibleChange,Dn=E.useContext(H),Zn=Dn.getPopupContainer,On=Dn.rtl,Bn=Dn.subMenuOpenDelay,In=Dn.subMenuCloseDelay,yn=Dn.builtinPlacements,kn=Dn.triggerSubMenuAction,pn=Dn.forceSubMenuRender,En=Dn.rootClassName,Ln=Dn.motion,Mn=Dn.defaultMotions,zn=E.useState(!1),Un=(0,B.Z)(zn,2),ar=Un[0],Me=Un[1],Ie=On?(0,z.Z)((0,z.Z)({},Ue),yn):(0,z.Z)((0,z.Z)({},nt),yn),Te=S[Cn],lt=U(Cn,Ln,Mn),gt=E.useRef(lt);Cn!=="inline"&&(gt.current=lt);var _t=(0,z.Z)((0,z.Z)({},gt.current),{},{leavedClassName:"".concat(ft,"-hidden"),removeOnLeave:!1,motionAppear:!0}),zt=E.useRef();return E.useEffect(function(){return zt.current=(0,He.Z)(function(){Me(St)}),function(){He.Z.cancel(zt.current)}},[St]),E.createElement(Xe.Z,{prefixCls:ft,popupClassName:ne()("".concat(ft,"-popup"),(0,ue.Z)({},"".concat(ft,"-rtl"),On),ln,En),stretch:Cn==="horizontal"?"minWidth":null,getPopupContainer:Zn,builtinPlacements:Ie,popupPlacement:Te,popupVisible:ar,popup:tn,popupStyle:et,popupAlign:xn&&{offset:xn},action:Tn?[]:[kn],mouseEnterDelay:Bn,mouseLeaveDelay:In,onPopupVisibleChange:Yn,forceRender:pn,popupMotion:_t,fresh:!0},Ot)}var ke=_(77900);function Pe(Ze){var ft=Ze.id,St=Ze.open,Ot=Ze.keyPath,tn=Ze.children,et="inline",ln=E.useContext(H),xn=ln.prefixCls,Tn=ln.forceSubMenuRender,Cn=ln.motion,Yn=ln.defaultMotions,Dn=ln.mode,Zn=E.useRef(!1);Zn.current=Dn===et;var On=E.useState(!Zn.current),Bn=(0,B.Z)(On,2),In=Bn[0],yn=Bn[1],kn=Zn.current?St:!1;E.useEffect(function(){Zn.current&&yn(!1)},[Dn]);var pn=(0,z.Z)({},U(et,Cn,Yn));Ot.length>1&&(pn.motionAppear=!1);var En=pn.onVisibleChanged;return pn.onVisibleChanged=function(Ln){return!Zn.current&&!Ln&&yn(!0),En==null?void 0:En(Ln)},In?null:E.createElement(w,{mode:et,locked:!Zn.current},E.createElement(ke.default,(0,f.Z)({visible:kn},pn,{forceRender:Tn,removeOnLeave:!1,leavedClassName:"".concat(xn,"-hidden")}),function(Ln){var Mn=Ln.className,zn=Ln.style;return E.createElement(ce,{id:ft,className:Mn,style:zn},tn)}))}var Ge=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],We=["active"],ct=E.forwardRef(function(Ze,ft){var St=Ze.style,Ot=Ze.className,tn=Ze.title,et=Ze.eventKey,ln=Ze.warnKey,xn=Ze.disabled,Tn=Ze.internalPopupClose,Cn=Ze.children,Yn=Ze.itemIcon,Dn=Ze.expandIcon,Zn=Ze.popupClassName,On=Ze.popupOffset,Bn=Ze.popupStyle,In=Ze.onClick,yn=Ze.onMouseEnter,kn=Ze.onMouseLeave,pn=Ze.onTitleClick,En=Ze.onTitleMouseEnter,Ln=Ze.onTitleMouseLeave,Mn=(0,d.Z)(Ze,Ge),zn=$(et),Un=E.useContext(H),ar=Un.prefixCls,Me=Un.mode,Ie=Un.openKeys,Te=Un.disabled,lt=Un.overflowDisabled,gt=Un.activeKey,_t=Un.selectedKeys,zt=Un.itemIcon,Wt=Un.expandIcon,It=Un.onItemClick,vt=Un.onOpenChange,xt=Un.onActive,Nt=E.useContext(Z),Zt=Nt._internalRenderSubMenuItem,nn=E.useContext(me),gn=nn.isSubPathKey,Kn=ge(),mn="".concat(ar,"-submenu"),Sn=Te||xn,Fn=E.useRef(),Nn=E.useRef(),Vn=Yn!=null?Yn:zt,wn=Dn!=null?Dn:Wt,Gn=Ie.includes(et),Wn=!lt&&Gn,er=gn(_t,et),bn=De(et,Sn,En,Ln),Jn=bn.active,cr=(0,d.Z)(bn,We),pt=E.useState(!1),Qt=(0,B.Z)(pt,2),on=Qt[0],Vt=Qt[1],vn=function(lr){Sn||Vt(lr)},Rn=function(lr){vn(!0),yn==null||yn({key:et,domEvent:lr})},nr=function(lr){vn(!1),kn==null||kn({key:et,domEvent:lr})},Xn=E.useMemo(function(){return Jn||(Me!=="inline"?on||gn([gt],et):!1)},[Me,Jn,gt,on,et,gn]),dr=Ae(Kn.length),xr=function(lr){Sn||(pn==null||pn({key:et,domEvent:lr}),Me==="inline"&&vt(et,!Gn))},Ur=ye(function(_r){In==null||In(Oe(_r)),It(_r)}),Nr=function(lr){Me!=="inline"&&vt(et,lr)},zr=function(){xt(et)},Vr=zn&&"".concat(zn,"-popup"),Zr=E.useMemo(function(){return E.createElement(it,{icon:Me!=="horizontal"?wn:void 0,props:(0,z.Z)((0,z.Z)({},Ze),{},{isOpen:Wn,isSubMenu:!0})},E.createElement("i",{className:"".concat(mn,"-arrow")}))},[Me,wn,Ze,Wn,mn]),yr=E.createElement("div",(0,f.Z)({role:"menuitem",style:dr,className:"".concat(mn,"-title"),tabIndex:Sn?null:-1,ref:Fn,title:typeof tn=="string"?tn:null,"data-menu-id":lt&&zn?null:zn,"aria-expanded":Wn,"aria-haspopup":!0,"aria-controls":Vr,"aria-disabled":Sn,onClick:xr,onFocus:zr},cr),tn,Zr),Tr=E.useRef(Me);if(Me!=="inline"&&Kn.length>1?Tr.current="vertical":Tr.current=Me,!lt){var Wr=Tr.current;yr=E.createElement(ze,{mode:Wr,prefixCls:mn,visible:!Tn&&Wn&&Me!=="inline",popupClassName:Zn,popupOffset:On,popupStyle:Bn,popup:E.createElement(w,{mode:Wr==="horizontal"?"vertical":Wr},E.createElement(ce,{id:Vr,ref:Nn},Cn)),disabled:Sn,onVisibleChange:Nr},yr)}var Er=E.createElement(o.Z.Item,(0,f.Z)({ref:ft,role:"none"},Mn,{component:"li",style:St,className:ne()(mn,"".concat(mn,"-").concat(Me),Ot,(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(mn,"-open"),Wn),"".concat(mn,"-active"),Xn),"".concat(mn,"-selected"),er),"".concat(mn,"-disabled"),Sn)),onMouseEnter:Rn,onMouseLeave:nr}),yr,!lt&&E.createElement(Pe,{id:Vr,open:Wn,keyPath:Kn},Cn));return Zt&&(Er=Zt(Er,Ze,{selected:er,active:Xn,open:Wn,disabled:Sn})),E.createElement(w,{onItemClick:Ur,mode:Me==="horizontal"?"vertical":Me,itemIcon:Vn,expandIcon:wn},Er)}),Lt=E.forwardRef(function(Ze,ft){var St=Ze.eventKey,Ot=Ze.children,tn=ge(St),et=Be(Ot,tn),ln=ee();E.useEffect(function(){if(ln)return ln.registerPath(St,tn),function(){ln.unregisterPath(St,tn)}},[tn]);var xn;return ln?xn=et:xn=E.createElement(ct,(0,f.Z)({ref:ft},Ze),et),E.createElement(oe.Provider,{value:tn},xn)}),Pt=Lt,cn=_(34666);function Ne(Ze){var ft=Ze.className,St=Ze.style,Ot=E.useContext(H),tn=Ot.prefixCls,et=ee();return et?null:E.createElement("li",{role:"separator",className:ne()("".concat(tn,"-item-divider"),ft),style:St})}var Re=["className","title","eventKey","children"],dt=E.forwardRef(function(Ze,ft){var St=Ze.className,Ot=Ze.title,tn=Ze.eventKey,et=Ze.children,ln=(0,d.Z)(Ze,Re),xn=E.useContext(H),Tn=xn.prefixCls,Cn="".concat(Tn,"-item-group");return E.createElement("li",(0,f.Z)({ref:ft,role:"presentation"},ln,{onClick:function(Dn){return Dn.stopPropagation()},className:ne()(Cn,St)}),E.createElement("div",{role:"presentation",className:"".concat(Cn,"-title"),title:typeof Ot=="string"?Ot:void 0},Ot),E.createElement("ul",{role:"group",className:"".concat(Cn,"-list")},et))}),mt=E.forwardRef(function(Ze,ft){var St=Ze.eventKey,Ot=Ze.children,tn=ge(St),et=Be(Ot,tn),ln=ee();return ln?et:E.createElement(dt,(0,f.Z)({ref:ft},(0,N.Z)(Ze,["warnKey"])),et)}),Mt=mt,bt=["label","children","key","type","extra"];function Tt(Ze,ft,St){var Ot=ft.item,tn=ft.group,et=ft.submenu,ln=ft.divider;return(Ze||[]).map(function(xn,Tn){if(xn&&(0,cn.Z)(xn)==="object"){var Cn=xn,Yn=Cn.label,Dn=Cn.children,Zn=Cn.key,On=Cn.type,Bn=Cn.extra,In=(0,d.Z)(Cn,bt),yn=Zn!=null?Zn:"tmp-".concat(Tn);return Dn||On==="group"?On==="group"?E.createElement(tn,(0,f.Z)({key:yn},In,{title:Yn}),Tt(Dn,ft,St)):E.createElement(et,(0,f.Z)({key:yn},In,{title:Yn}),Tt(Dn,ft,St)):On==="divider"?E.createElement(ln,(0,f.Z)({key:yn},In)):E.createElement(Ot,(0,f.Z)({key:yn},In,{extra:Bn}),Yn,(!!Bn||Bn===0)&&E.createElement("span",{className:"".concat(St,"-item-extra")},Bn))}return null}).filter(function(xn){return xn})}function Kt(Ze,ft,St,Ot,tn){var et=Ze,ln=(0,z.Z)({divider:Ne,item:Ee,group:Mt,submenu:Pt},Ot);return ft&&(et=Tt(ft,ln,tn)),Be(et,St)}var en=["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","_internalComponents"],At=[],dn=E.forwardRef(function(Ze,ft){var St,Ot=Ze,tn=Ot.prefixCls,et=tn===void 0?"rc-menu":tn,ln=Ot.rootClassName,xn=Ot.style,Tn=Ot.className,Cn=Ot.tabIndex,Yn=Cn===void 0?0:Cn,Dn=Ot.items,Zn=Ot.children,On=Ot.direction,Bn=Ot.id,In=Ot.mode,yn=In===void 0?"vertical":In,kn=Ot.inlineCollapsed,pn=Ot.disabled,En=Ot.disabledOverflow,Ln=Ot.subMenuOpenDelay,Mn=Ln===void 0?.1:Ln,zn=Ot.subMenuCloseDelay,Un=zn===void 0?.1:zn,ar=Ot.forceSubMenuRender,Me=Ot.defaultOpenKeys,Ie=Ot.openKeys,Te=Ot.activeKey,lt=Ot.defaultActiveFirst,gt=Ot.selectable,_t=gt===void 0?!0:gt,zt=Ot.multiple,Wt=zt===void 0?!1:zt,It=Ot.defaultSelectedKeys,vt=Ot.selectedKeys,xt=Ot.onSelect,Nt=Ot.onDeselect,Zt=Ot.inlineIndent,nn=Zt===void 0?24:Zt,gn=Ot.motion,Kn=Ot.defaultMotions,mn=Ot.triggerSubMenuAction,Sn=mn===void 0?"hover":mn,Fn=Ot.builtinPlacements,Nn=Ot.itemIcon,Vn=Ot.expandIcon,wn=Ot.overflowedIndicator,Gn=wn===void 0?"...":wn,Wn=Ot.overflowedIndicatorPopupClassName,er=Ot.getPopupContainer,bn=Ot.onClick,Jn=Ot.onOpenChange,cr=Ot.onKeyDown,pt=Ot.openAnimation,Qt=Ot.openTransitionName,on=Ot._internalRenderMenuItem,Vt=Ot._internalRenderSubMenuItem,vn=Ot._internalComponents,Rn=(0,d.Z)(Ot,en),nr=E.useMemo(function(){return[Kt(Zn,Dn,At,vn,et),Kt(Zn,Dn,At,{},et)]},[Zn,Dn,vn]),Xn=(0,B.Z)(nr,2),dr=Xn[0],xr=Xn[1],Ur=E.useState(!1),Nr=(0,B.Z)(Ur,2),zr=Nr[0],Vr=Nr[1],Zr=E.useRef(),yr=qe(Bn),Tr=On==="rtl",Wr=(0,g.Z)(Me,{value:Ie,postState:function(Mr){return Mr||At}}),Er=(0,B.Z)(Wr,2),_r=Er[0],lr=Er[1],jn=function(Mr){var hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function ii(){lr(Mr),Jn==null||Jn(Mr)}hn?(0,b.flushSync)(ii):ii()},or=E.useState(_r),ur=(0,B.Z)(or,2),fr=ur[0],Sr=ur[1],Dr=E.useRef(!1),$r=E.useMemo(function(){return(yn==="inline"||yn==="vertical")&&kn?["vertical",kn]:[yn,!1]},[yn,kn]),Hn=(0,B.Z)($r,2),ir=Hn[0],rr=Hn[1],Ar=ir==="inline",Lr=E.useState(ir),Fr=(0,B.Z)(Lr,2),ni=Fr[0],si=Fr[1],qr=E.useState(rr),Hr=(0,B.Z)(qr,2),di=Hr[0],Ji=Hr[1];E.useEffect(function(){si(ir),Ji(rr),Dr.current&&(Ar?lr(fr):jn(At))},[ir,rr]);var Ti=E.useState(0),Ki=(0,B.Z)(Ti,2),Mi=Ki[0],Oi=Ki[1],zi=Mi>=dr.length-1||ni!=="horizontal"||En;E.useEffect(function(){Ar&&Sr(_r)},[_r]),E.useEffect(function(){return Dr.current=!0,function(){Dr.current=!1}},[]);var yi=fe(),Fi=yi.registerPath,Di=yi.unregisterPath,qi=yi.refreshOverflowKeys,ui=yi.isSubPathKey,as=yi.getKeyPath,Bi=yi.getKeys,os=yi.getSubPathKeys,ls=E.useMemo(function(){return{registerPath:Fi,unregisterPath:Di}},[Fi,Di]),us=E.useMemo(function(){return{isSubPathKey:ui}},[ui]);E.useEffect(function(){qi(zi?At:dr.slice(Mi+1).map(function(jr){return jr.key}))},[Mi,zi]);var ji=(0,g.Z)(Te||lt&&((St=dr[0])===null||St===void 0?void 0:St.key),{value:Te}),ai=(0,B.Z)(ji,2),ei=ai[0],Cr=ai[1],br=ye(function(jr){Cr(jr)}),Qr=ye(function(){Cr(void 0)});(0,E.useImperativeHandle)(ft,function(){return{list:Zr.current,focus:function(Mr){var hn,ii=Bi(),ri=je(ii,yr),bi=ri.elements,ys=ri.key2element,cs=ri.element2key,_s=we(Zr.current,bi),Es=ei!=null?ei:_s[0]?cs.get(_s[0]):(hn=dr.find(function(Ri){return!Ri.props.disabled}))===null||hn===void 0?void 0:hn.key,$i=ys.get(Es);if(Es&&$i){var Vi;$i==null||(Vi=$i.focus)===null||Vi===void 0||Vi.call($i,Mr)}}}});var Gr=(0,g.Z)(It||[],{value:vt,postState:function(Mr){return Array.isArray(Mr)?Mr:Mr==null?At:[Mr]}}),Yr=(0,B.Z)(Gr,2),Jr=Yr[0],pi=Yr[1],mi=function(Mr){if(_t){var hn=Mr.key,ii=Jr.includes(hn),ri;Wt?ii?ri=Jr.filter(function(ys){return ys!==hn}):ri=[].concat((0,ae.Z)(Jr),[hn]):ri=[hn],pi(ri);var bi=(0,z.Z)((0,z.Z)({},Mr),{},{selectedKeys:ri});ii?Nt==null||Nt(bi):xt==null||xt(bi)}!Wt&&_r.length&&ni!=="inline"&&jn(At)},_i=ye(function(jr){bn==null||bn(Oe(jr)),mi(jr)}),Xr=ye(function(jr,Mr){var hn=_r.filter(function(ri){return ri!==jr});if(Mr)hn.push(jr);else if(ni!=="inline"){var ii=os(jr);hn=hn.filter(function(ri){return!ii.has(ri)})}(0,A.Z)(_r,hn,!0)||jn(hn,!0)}),fi=function(Mr,hn){var ii=hn!=null?hn:!_r.includes(Mr);Xr(Mr,ii)},wi=Qe(ni,ei,Tr,yr,Zr,Bi,as,Cr,fi,cr);E.useEffect(function(){Vr(!0)},[]);var Ei=E.useMemo(function(){return{_internalRenderMenuItem:on,_internalRenderSubMenuItem:Vt}},[on,Vt]),gs=ni!=="horizontal"||En?dr:dr.map(function(jr,Mr){return E.createElement(w,{key:jr.key,overflowDisabled:Mr>Mi},jr)}),vs=E.createElement(o.Z,(0,f.Z)({id:Bn,ref:Zr,prefixCls:"".concat(et,"-overflow"),component:"ul",itemComponent:Ee,className:ne()(et,"".concat(et,"-root"),"".concat(et,"-").concat(ni),Tn,(0,ue.Z)((0,ue.Z)({},"".concat(et,"-inline-collapsed"),di),"".concat(et,"-rtl"),Tr),ln),dir:On,style:xn,role:"menu",tabIndex:Yn,data:gs,renderRawItem:function(Mr){return Mr},renderRawRest:function(Mr){var hn=Mr.length,ii=hn?dr.slice(-hn):null;return E.createElement(Pt,{eventKey:W,title:Gn,disabled:zi,internalPopupClose:hn===0,popupClassName:Wn},ii)},maxCount:ni!=="horizontal"||En?o.Z.INVALIDATE:o.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Mr){Oi(Mr)},onKeyDown:wi},Rn));return E.createElement(Z.Provider,{value:Ei},E.createElement(I.Provider,{value:yr},E.createElement(w,{prefixCls:et,rootClassName:ln,mode:ni,openKeys:_r,rtl:Tr,disabled:pn,motion:zr?gn:null,defaultMotions:zr?Kn:null,activeKey:ei,onActive:br,onInactive:Qr,selectedKeys:Jr,inlineIndent:nn,subMenuOpenDelay:Mn,subMenuCloseDelay:Un,forceSubMenuRender:ar,builtinPlacements:Fn,triggerSubMenuAction:Sn,getPopupContainer:er,itemIcon:Nn,expandIcon:Vn,onItemClick:_i,onOpenChange:Xr},E.createElement(me.Provider,{value:us},vs),E.createElement("div",{style:{display:"none"},"aria-hidden":!0},E.createElement(re.Provider,{value:ls},xr)))))}),an=dn,Jt=an;Jt.Item=Ee,Jt.SubMenu=Pt,Jt.ItemGroup=Mt,Jt.Divider=Ne;var kt=Jt},11780:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return X}});var f=_(32855),ue=_(27247),z=_(11913),ae=_(43079),B=_(59301),d=_(92310),_e=_.n(d),ne=_(29301),o=_(34280),g=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],A=void 0;function p(y,v){var O=y.prefixCls,pe=y.invalidate,He=y.item,tt=y.renderItem,Ct=y.responsive,Rt=y.responsiveDisabled,Ft=y.registerSize,Ht=y.itemKey,Ke=y.className,qt=y.style,Dt=y.children,sn=y.display,Je=y.order,yt=y.component,Fe=yt===void 0?"div":yt,we=(0,ae.Z)(y,g),V=Ct&&!sn;function je(be){Ft(Ht,be)}B.useEffect(function(){return function(){je(null)}},[]);var Qe=tt&&He!==A?tt(He,{index:Je}):Dt,q;pe||(q={opacity:V?0:1,height:V?0:A,overflowY:V?"hidden":A,order:Ct?Je:A,pointerEvents:V?"none":A,position:V?"absolute":A});var M={};V&&(M["aria-hidden"]=!0);var Se=B.createElement(Fe,(0,f.Z)({className:_e()(!pe&&O,Ke),style:(0,ue.Z)((0,ue.Z)({},q),qt)},M,we,{ref:v}),Qe);return Ct&&(Se=B.createElement(ne.Z,{onResize:function(W){var fe=W.offsetWidth;je(fe)},disabled:Rt},Se)),Se}var E=B.forwardRef(p);E.displayName="Item";var b=E,I=_(6089),j=_(4676),$=_(16089);function le(y){if(typeof MessageChannel=="undefined")(0,$.Z)(y);else{var v=new MessageChannel;v.port1.onmessage=function(){return y()},v.port2.postMessage(void 0)}}function F(){var y=B.useRef(null),v=function(pe){y.current||(y.current=[],le(function(){(0,j.unstable_batchedUpdates)(function(){y.current.forEach(function(He){He()}),y.current=null})})),y.current.push(pe)};return v}function H(y,v){var O=B.useState(v),pe=(0,z.Z)(O,2),He=pe[0],tt=pe[1],Ct=(0,I.Z)(function(Rt){y(function(){tt(Rt)})});return[He,Ct]}var D=B.createContext(null),w=["component"],Q=["className"],re=["className"],ee=function(v,O){var pe=B.useContext(D);if(!pe){var He=v.component,tt=He===void 0?"div":He,Ct=(0,ae.Z)(v,w);return B.createElement(tt,(0,f.Z)({},Ct,{ref:O}))}var Rt=pe.className,Ft=(0,ae.Z)(pe,Q),Ht=v.className,Ke=(0,ae.Z)(v,re);return B.createElement(D.Provider,{value:null},B.createElement(b,(0,f.Z)({ref:O,className:_e()(Rt,Ht)},Ft,Ke)))},oe=B.forwardRef(ee);oe.displayName="RawItem";var ge=oe,me=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],at="responsive",Z="invalidate";function T(y){return"+ ".concat(y.length," ...")}function P(y,v){var O=y.prefixCls,pe=O===void 0?"rc-overflow":O,He=y.data,tt=He===void 0?[]:He,Ct=y.renderItem,Rt=y.renderRawItem,Ft=y.itemKey,Ht=y.itemWidth,Ke=Ht===void 0?10:Ht,qt=y.ssr,Dt=y.style,sn=y.className,Je=y.maxCount,yt=y.renderRest,Fe=y.renderRawRest,we=y.suffix,V=y.component,je=V===void 0?"div":V,Qe=y.itemComponent,q=y.onVisibleChange,M=(0,ae.Z)(y,me),Se=qt==="full",be=F(),W=H(be,null),fe=(0,z.Z)(W,2),ye=fe[0],$e=fe[1],Ve=ye||0,qe=H(be,new Map),Ye=(0,z.Z)(qe,2),ot=Ye[0],de=Ye[1],K=H(be,0),N=(0,z.Z)(K,2),Le=N[0],De=N[1],Ae=H(be,0),it=(0,z.Z)(Ae,2),st=it[0],Oe=it[1],Et=H(be,0),jt=(0,z.Z)(Et,2),wt=jt[0],Bt=jt[1],se=(0,B.useState)(null),ve=(0,z.Z)(se,2),Ee=ve[0],k=ve[1],Y=(0,B.useState)(null),he=(0,z.Z)(Y,2),ce=he[0],xe=he[1],Be=B.useMemo(function(){return ce===null&&Se?Number.MAX_SAFE_INTEGER:ce||0},[ce,ye]),Xe=(0,B.useState)(!1),ut=(0,z.Z)(Xe,2),nt=ut[0],Ue=ut[1],R="".concat(pe,"-item"),U=Math.max(Le,st),S=Je===at,ze=tt.length&&S,ke=Je===Z,Pe=ze||typeof Je=="number"&&tt.length>Je,Ge=(0,B.useMemo)(function(){var Jt=tt;return ze?ye===null&&Se?Jt=tt:Jt=tt.slice(0,Math.min(tt.length,Ve/Ke)):typeof Je=="number"&&(Jt=tt.slice(0,Je)),Jt},[tt,Ke,ye,Je,ze]),We=(0,B.useMemo)(function(){return ze?tt.slice(Be+1):tt.slice(Ge.length)},[tt,Ge,ze,Be]),ct=(0,B.useCallback)(function(Jt,kt){var Ze;return typeof Ft=="function"?Ft(Jt):(Ze=Ft&&(Jt==null?void 0:Jt[Ft]))!==null&&Ze!==void 0?Ze:kt},[Ft]),Lt=(0,B.useCallback)(Ct||function(Jt){return Jt},[Ct]);function Pt(Jt,kt,Ze){ce===Jt&&(kt===void 0||kt===Ee)||(xe(Jt),Ze||(Ue(Jt<tt.length-1),q==null||q(Jt)),kt!==void 0&&k(kt))}function cn(Jt,kt){$e(kt.clientWidth)}function Ne(Jt,kt){de(function(Ze){var ft=new Map(Ze);return kt===null?ft.delete(Jt):ft.set(Jt,kt),ft})}function Re(Jt,kt){Oe(kt),De(st)}function dt(Jt,kt){Bt(kt)}function mt(Jt){return ot.get(ct(Ge[Jt],Jt))}(0,o.Z)(function(){if(Ve&&typeof U=="number"&&Ge){var Jt=wt,kt=Ge.length,Ze=kt-1;if(!kt){Pt(0,null);return}for(var ft=0;ft<kt;ft+=1){var St=mt(ft);if(Se&&(St=St||0),St===void 0){Pt(ft-1,void 0,!0);break}if(Jt+=St,Ze===0&&Jt<=Ve||ft===Ze-1&&Jt+mt(Ze)<=Ve){Pt(Ze,null);break}else if(Jt+U>Ve){Pt(ft-1,Jt-St-wt+st);break}}we&&mt(0)+wt>Ve&&k(null)}},[Ve,ot,st,wt,ct,Ge]);var Mt=nt&&!!We.length,bt={};Ee!==null&&ze&&(bt={position:"absolute",left:Ee,top:0});var Tt={prefixCls:R,responsive:ze,component:Qe,invalidate:ke},Kt=Rt?function(Jt,kt){var Ze=ct(Jt,kt);return B.createElement(D.Provider,{key:Ze,value:(0,ue.Z)((0,ue.Z)({},Tt),{},{order:kt,item:Jt,itemKey:Ze,registerSize:Ne,display:kt<=Be})},Rt(Jt,kt))}:function(Jt,kt){var Ze=ct(Jt,kt);return B.createElement(b,(0,f.Z)({},Tt,{order:kt,key:Ze,item:Jt,renderItem:Lt,itemKey:Ze,registerSize:Ne,display:kt<=Be}))},en={order:Mt?Be:Number.MAX_SAFE_INTEGER,className:"".concat(R,"-rest"),registerSize:Re,display:Mt},At=yt||T,dn=Fe?B.createElement(D.Provider,{value:(0,ue.Z)((0,ue.Z)({},Tt),en)},Fe(We)):B.createElement(b,(0,f.Z)({},Tt,en),typeof At=="function"?At(We):At),an=B.createElement(je,(0,f.Z)({className:_e()(!ke&&pe,sn),style:Dt,ref:v},M),Ge.map(Kt),Pe?dn:null,we&&B.createElement(b,(0,f.Z)({},Tt,{responsive:S,responsiveDisabled:!ze,order:Be,className:"".concat(R,"-suffix"),registerSize:dt,display:!0,style:bt}),we));return S?B.createElement(ne.Z,{onResize:cn,disabled:!ze},an):an}var G=B.forwardRef(P);G.displayName="Overflow",G.Item=ge,G.RESPONSIVE=at,G.INVALIDATE=Z;var ie=G,X=ie},23425:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return re}});var f=_(74430),ue=_(32855),z=_(34666),ae=_(27247),B=_(11913),d=_(92310),_e=_.n(d),ne=_(18929),o=_(10228),g=_(26112),A=_(48736),p=_(59301),E=_(17119),b=[10,20,50,100],I=function(oe){var ge=oe.pageSizeOptions,me=ge===void 0?b:ge,at=oe.locale,Z=oe.changeSize,T=oe.pageSize,P=oe.goButton,G=oe.quickGo,ie=oe.rootPrefixCls,X=oe.disabled,y=oe.buildOptionText,v=oe.showSizeChanger,O=oe.sizeChangerRender,pe=p.useState(""),He=(0,B.Z)(pe,2),tt=He[0],Ct=He[1],Rt=function(){return!tt||Number.isNaN(tt)?void 0:Number(tt)},Ft=typeof y=="function"?y:function(we){return"".concat(we," ").concat(at.items_per_page)},Ht=function(V){Ct(V.target.value)},Ke=function(V){P||tt===""||(Ct(""),!(V.relatedTarget&&(V.relatedTarget.className.indexOf("".concat(ie,"-item-link"))>=0||V.relatedTarget.className.indexOf("".concat(ie,"-item"))>=0))&&(G==null||G(Rt())))},qt=function(V){tt!==""&&(V.keyCode===o.Z.ENTER||V.type==="click")&&(Ct(""),G==null||G(Rt()))},Dt=function(){return me.some(function(V){return V.toString()===T.toString()})?me:me.concat([T]).sort(function(V,je){var Qe=Number.isNaN(Number(V))?0:Number(V),q=Number.isNaN(Number(je))?0:Number(je);return Qe-q})},sn="".concat(ie,"-options");if(!v&&!G)return null;var Je=null,yt=null,Fe=null;return v&&O&&(Je=O({disabled:X,size:T,onSizeChange:function(V){Z==null||Z(Number(V))},"aria-label":at.page_size,className:"".concat(sn,"-size-changer"),options:Dt().map(function(we){return{label:Ft(we),value:we}})})),G&&(P&&(Fe=typeof P=="boolean"?p.createElement("button",{type:"button",onClick:qt,onKeyUp:qt,disabled:X,className:"".concat(sn,"-quick-jumper-button")},at.jump_to_confirm):p.createElement("span",{onClick:qt,onKeyUp:qt},P)),yt=p.createElement("div",{className:"".concat(sn,"-quick-jumper")},at.jump_to,p.createElement("input",{disabled:X,type:"text",value:tt,onChange:Ht,onKeyUp:qt,onBlur:Ke,"aria-label":at.page}),at.page,Fe)),p.createElement("li",{className:sn},Je,yt)},j=I,$=function(oe){var ge=oe.rootPrefixCls,me=oe.page,at=oe.active,Z=oe.className,T=oe.showTitle,P=oe.onClick,G=oe.onKeyPress,ie=oe.itemRender,X="".concat(ge,"-item"),y=_e()(X,"".concat(X,"-").concat(me),(0,f.Z)((0,f.Z)({},"".concat(X,"-active"),at),"".concat(X,"-disabled"),!me),Z),v=function(){P(me)},O=function(tt){G(tt,P,me)},pe=ie(me,"page",p.createElement("a",{rel:"nofollow"},me));return pe?p.createElement("li",{title:T?String(me):null,className:y,onClick:v,onKeyDown:O,tabIndex:0},pe):null},le=$,F=function(oe,ge,me){return me};function H(){}function D(ee){var oe=Number(ee);return typeof oe=="number"&&!Number.isNaN(oe)&&isFinite(oe)&&Math.floor(oe)===oe}function w(ee,oe,ge){var me=typeof ee=="undefined"?oe:ee;return Math.floor((ge-1)/me)+1}var Q=function(oe){var ge=oe.prefixCls,me=ge===void 0?"rc-pagination":ge,at=oe.selectPrefixCls,Z=at===void 0?"rc-select":at,T=oe.className,P=oe.current,G=oe.defaultCurrent,ie=G===void 0?1:G,X=oe.total,y=X===void 0?0:X,v=oe.pageSize,O=oe.defaultPageSize,pe=O===void 0?10:O,He=oe.onChange,tt=He===void 0?H:He,Ct=oe.hideOnSinglePage,Rt=oe.align,Ft=oe.showPrevNextJumpers,Ht=Ft===void 0?!0:Ft,Ke=oe.showQuickJumper,qt=oe.showLessItems,Dt=oe.showTitle,sn=Dt===void 0?!0:Dt,Je=oe.onShowSizeChange,yt=Je===void 0?H:Je,Fe=oe.locale,we=Fe===void 0?E.Z:Fe,V=oe.style,je=oe.totalBoundaryShowSizeChanger,Qe=je===void 0?50:je,q=oe.disabled,M=oe.simple,Se=oe.showTotal,be=oe.showSizeChanger,W=be===void 0?y>Qe:be,fe=oe.sizeChangerRender,ye=oe.pageSizeOptions,$e=oe.itemRender,Ve=$e===void 0?F:$e,qe=oe.jumpPrevIcon,Ye=oe.jumpNextIcon,ot=oe.prevIcon,de=oe.nextIcon,K=p.useRef(null),N=(0,ne.Z)(10,{value:v,defaultValue:pe}),Le=(0,B.Z)(N,2),De=Le[0],Ae=Le[1],it=(0,ne.Z)(1,{value:P,defaultValue:ie,postState:function(En){return Math.max(1,Math.min(En,w(void 0,De,y)))}}),st=(0,B.Z)(it,2),Oe=st[0],Et=st[1],jt=p.useState(Oe),wt=(0,B.Z)(jt,2),Bt=wt[0],se=wt[1];(0,p.useEffect)(function(){se(Oe)},[Oe]);var ve=tt!==H,Ee="current"in oe,k=Math.max(1,Oe-(qt?3:5)),Y=Math.min(w(void 0,De,y),Oe+(qt?3:5));function he(pn,En){var Ln=pn||p.createElement("button",{type:"button","aria-label":En,className:"".concat(me,"-item-link")});return typeof pn=="function"&&(Ln=p.createElement(pn,(0,ae.Z)({},oe))),Ln}function ce(pn){var En=pn.target.value,Ln=w(void 0,De,y),Mn;return En===""?Mn=En:Number.isNaN(Number(En))?Mn=Bt:En>=Ln?Mn=Ln:Mn=Number(En),Mn}function xe(pn){return D(pn)&&pn!==Oe&&D(y)&&y>0}var Be=y>De?Ke:!1;function Xe(pn){(pn.keyCode===o.Z.UP||pn.keyCode===o.Z.DOWN)&&pn.preventDefault()}function ut(pn){var En=ce(pn);switch(En!==Bt&&se(En),pn.keyCode){case o.Z.ENTER:R(En);break;case o.Z.UP:R(En-1);break;case o.Z.DOWN:R(En+1);break;default:break}}function nt(pn){R(ce(pn))}function Ue(pn){var En=w(pn,De,y),Ln=Oe>En&&En!==0?En:Oe;Ae(pn),se(Ln),yt==null||yt(Oe,pn),Et(Ln),tt==null||tt(Ln,pn)}function R(pn){if(xe(pn)&&!q){var En=w(void 0,De,y),Ln=pn;return pn>En?Ln=En:pn<1&&(Ln=1),Ln!==Bt&&se(Ln),Et(Ln),tt==null||tt(Ln,De),Ln}return Oe}var U=Oe>1,S=Oe<w(void 0,De,y);function ze(){U&&R(Oe-1)}function ke(){S&&R(Oe+1)}function Pe(){R(k)}function Ge(){R(Y)}function We(pn,En){if(pn.key==="Enter"||pn.charCode===o.Z.ENTER||pn.keyCode===o.Z.ENTER){for(var Ln=arguments.length,Mn=new Array(Ln>2?Ln-2:0),zn=2;zn<Ln;zn++)Mn[zn-2]=arguments[zn];En.apply(void 0,Mn)}}function ct(pn){We(pn,ze)}function Lt(pn){We(pn,ke)}function Pt(pn){We(pn,Pe)}function cn(pn){We(pn,Ge)}function Ne(pn){var En=Ve(pn,"prev",he(ot,"prev page"));return p.isValidElement(En)?p.cloneElement(En,{disabled:!U}):En}function Re(pn){var En=Ve(pn,"next",he(de,"next page"));return p.isValidElement(En)?p.cloneElement(En,{disabled:!S}):En}function dt(pn){(pn.type==="click"||pn.keyCode===o.Z.ENTER)&&R(Bt)}var mt=null,Mt=(0,g.Z)(oe,{aria:!0,data:!0}),bt=Se&&p.createElement("li",{className:"".concat(me,"-total-text")},Se(y,[y===0?0:(Oe-1)*De+1,Oe*De>y?y:Oe*De])),Tt=null,Kt=w(void 0,De,y);if(Ct&&y<=De)return null;var en=[],At={rootPrefixCls:me,onClick:R,onKeyPress:We,showTitle:sn,itemRender:Ve,page:-1},dn=Oe-1>0?Oe-1:0,an=Oe+1<Kt?Oe+1:Kt,Jt=Ke&&Ke.goButton,kt=(0,z.Z)(M)==="object"?M.readOnly:!M,Ze=Jt,ft=null;M&&(Jt&&(typeof Jt=="boolean"?Ze=p.createElement("button",{type:"button",onClick:dt,onKeyUp:dt},we.jump_to_confirm):Ze=p.createElement("span",{onClick:dt,onKeyUp:dt},Jt),Ze=p.createElement("li",{title:sn?"".concat(we.jump_to).concat(Oe,"/").concat(Kt):null,className:"".concat(me,"-simple-pager")},Ze)),ft=p.createElement("li",{title:sn?"".concat(Oe,"/").concat(Kt):null,className:"".concat(me,"-simple-pager")},kt?Bt:p.createElement("input",{type:"text","aria-label":we.jump_to,value:Bt,disabled:q,onKeyDown:Xe,onKeyUp:ut,onChange:ut,onBlur:nt,size:3}),p.createElement("span",{className:"".concat(me,"-slash")},"/"),Kt));var St=qt?1:2;if(Kt<=3+St*2){Kt||en.push(p.createElement(le,(0,ue.Z)({},At,{key:"noPager",page:1,className:"".concat(me,"-item-disabled")})));for(var Ot=1;Ot<=Kt;Ot+=1)en.push(p.createElement(le,(0,ue.Z)({},At,{key:Ot,page:Ot,active:Oe===Ot})))}else{var tn=qt?we.prev_3:we.prev_5,et=qt?we.next_3:we.next_5,ln=Ve(k,"jump-prev",he(qe,"prev page")),xn=Ve(Y,"jump-next",he(Ye,"next page"));Ht&&(mt=ln?p.createElement("li",{title:sn?tn:null,key:"prev",onClick:Pe,tabIndex:0,onKeyDown:Pt,className:_e()("".concat(me,"-jump-prev"),(0,f.Z)({},"".concat(me,"-jump-prev-custom-icon"),!!qe))},ln):null,Tt=xn?p.createElement("li",{title:sn?et:null,key:"next",onClick:Ge,tabIndex:0,onKeyDown:cn,className:_e()("".concat(me,"-jump-next"),(0,f.Z)({},"".concat(me,"-jump-next-custom-icon"),!!Ye))},xn):null);var Tn=Math.max(1,Oe-St),Cn=Math.min(Oe+St,Kt);Oe-1<=St&&(Cn=1+St*2),Kt-Oe<=St&&(Tn=Kt-St*2);for(var Yn=Tn;Yn<=Cn;Yn+=1)en.push(p.createElement(le,(0,ue.Z)({},At,{key:Yn,page:Yn,active:Oe===Yn})));if(Oe-1>=St*2&&Oe!==3&&(en[0]=p.cloneElement(en[0],{className:_e()("".concat(me,"-item-after-jump-prev"),en[0].props.className)}),en.unshift(mt)),Kt-Oe>=St*2&&Oe!==Kt-2){var Dn=en[en.length-1];en[en.length-1]=p.cloneElement(Dn,{className:_e()("".concat(me,"-item-before-jump-next"),Dn.props.className)}),en.push(Tt)}Tn!==1&&en.unshift(p.createElement(le,(0,ue.Z)({},At,{key:1,page:1}))),Cn!==Kt&&en.push(p.createElement(le,(0,ue.Z)({},At,{key:Kt,page:Kt})))}var Zn=Ne(dn);if(Zn){var On=!U||!Kt;Zn=p.createElement("li",{title:sn?we.prev_page:null,onClick:ze,tabIndex:On?null:0,onKeyDown:ct,className:_e()("".concat(me,"-prev"),(0,f.Z)({},"".concat(me,"-disabled"),On)),"aria-disabled":On},Zn)}var Bn=Re(an);if(Bn){var In,yn;M?(In=!S,yn=U?0:null):(In=!S||!Kt,yn=In?null:0),Bn=p.createElement("li",{title:sn?we.next_page:null,onClick:ke,tabIndex:yn,onKeyDown:Lt,className:_e()("".concat(me,"-next"),(0,f.Z)({},"".concat(me,"-disabled"),In)),"aria-disabled":In},Bn)}var kn=_e()(me,T,(0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)((0,f.Z)({},"".concat(me,"-start"),Rt==="start"),"".concat(me,"-center"),Rt==="center"),"".concat(me,"-end"),Rt==="end"),"".concat(me,"-simple"),M),"".concat(me,"-disabled"),q));return p.createElement("ul",(0,ue.Z)({className:kn,style:V,ref:K},Mt),bt,Zn,M?ft:en,Bn,p.createElement(j,{locale:we,rootPrefixCls:me,disabled:q,selectPrefixCls:Z,changeSize:Ue,pageSize:De,pageSizeOptions:ye,quickGo:Be?R:null,goButton:Ze,showSizeChanger:W,sizeChangerRender:fe}))},re=Q},25930:function(Pn,Gt,_){"use strict";_.d(Gt,{Cd:function(){return me}});var f=_(32855),ue=_(27247),z=_(43079),ae=_(59301),B=_(92310),d=_.n(B),_e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var T=(0,ae.useRef)([]),P=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var G=Date.now(),ie=!1;T.current.forEach(function(X){if(X){ie=!0;var y=X.style;y.transitionDuration=".3s, .3s, .3s, .06s",P.current&&G-P.current<100&&(y.transitionDuration="0s, 0s")}}),ie&&(P.current=Date.now())}),T.current},o=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],g=function(T){var P=(0,ue.Z)((0,ue.Z)({},_e),T),G=P.className,ie=P.percent,X=P.prefixCls,y=P.strokeColor,v=P.strokeLinecap,O=P.strokeWidth,pe=P.style,He=P.trailColor,tt=P.trailWidth,Ct=P.transition,Rt=(0,z.Z)(P,o);delete Rt.gapPosition;var Ft=Array.isArray(ie)?ie:[ie],Ht=Array.isArray(y)?y:[y],Ke=ne(),qt=O/2,Dt=100-O/2,sn="M ".concat(v==="round"?qt:0,",").concat(qt,`
L `).concat(v==="round"?Dt:100,",").concat(qt),Je="0 0 100 ".concat(O),yt=0;return ae.createElement("svg",(0,f.Z)({className:d()("".concat(X,"-line"),G),viewBox:Je,preserveAspectRatio:"none",style:pe},Rt),ae.createElement("path",{className:"".concat(X,"-line-trail"),d:sn,strokeLinecap:v,stroke:He,strokeWidth:tt||O,fillOpacity:"0"}),Ft.map(function(Fe,we){var V=1;switch(v){case"round":V=1-O/100;break;case"square":V=1-O/2/100;break;default:V=1;break}var je={strokeDasharray:"".concat(Fe*V,"px, 100px"),strokeDashoffset:"-".concat(yt,"px"),transition:Ct||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Qe=Ht[we]||Ht[Ht.length-1];return yt+=Fe,ae.createElement("path",{key:we,className:"".concat(X,"-line-path"),d:sn,strokeLinecap:v,stroke:Qe,strokeWidth:O,fillOpacity:"0",ref:function(M){Ke[we]=M},style:je})}))},A=g,p=_(34666),E=_(11913),b=_(47273),I=0,j=(0,b.Z)();function $(){var Z;return j?(Z=I,I+=1):Z="TEST_OR_SSR",Z}var le=function(Z){var T=ae.useState(),P=(0,E.Z)(T,2),G=P[0],ie=P[1];return ae.useEffect(function(){ie("rc_progress_".concat($()))},[]),Z||G},F=function(T){var P=T.bg,G=T.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:P}},G)};function H(Z,T){return Object.keys(Z).map(function(P){var G=parseFloat(P),ie="".concat(Math.floor(G*T),"%");return"".concat(Z[P]," ").concat(ie)})}var D=ae.forwardRef(function(Z,T){var P=Z.prefixCls,G=Z.color,ie=Z.gradientId,X=Z.radius,y=Z.style,v=Z.ptg,O=Z.strokeLinecap,pe=Z.strokeWidth,He=Z.size,tt=Z.gapDegree,Ct=G&&(0,p.Z)(G)==="object",Rt=Ct?"#FFF":void 0,Ft=He/2,Ht=ae.createElement("circle",{className:"".concat(P,"-circle-path"),r:X,cx:Ft,cy:Ft,stroke:Rt,strokeLinecap:O,strokeWidth:pe,opacity:v===0?0:1,style:y,ref:T});if(!Ct)return Ht;var Ke="".concat(ie,"-conic"),qt=tt?"".concat(180+tt/2,"deg"):"0deg",Dt=H(G,(360-tt)/360),sn=H(G,1),Je="conic-gradient(from ".concat(qt,", ").concat(Dt.join(", "),")"),yt="linear-gradient(to ".concat(tt?"bottom":"top",", ").concat(sn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Ke},Ht),ae.createElement("foreignObject",{x:0,y:0,width:He,height:He,mask:"url(#".concat(Ke,")")},ae.createElement(F,{bg:yt},ae.createElement(F,{bg:Je}))))}),w=D,Q=100,re=function(T,P,G,ie,X,y,v,O,pe,He){var tt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Ct=G/100*360*((360-y)/360),Rt=y===0?0:{bottom:0,top:180,left:90,right:-90}[v],Ft=(100-ie)/100*P;pe==="round"&&ie!==100&&(Ft+=He/2,Ft>=P&&(Ft=P-.01));var Ht=Q/2;return{stroke:typeof O=="string"?O:void 0,strokeDasharray:"".concat(P,"px ").concat(T),strokeDashoffset:Ft+tt,transform:"rotate(".concat(X+Ct+Rt,"deg)"),transformOrigin:"".concat(Ht,"px ").concat(Ht,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},ee=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function oe(Z){var T=Z!=null?Z:[];return Array.isArray(T)?T:[T]}var ge=function(T){var P=(0,ue.Z)((0,ue.Z)({},_e),T),G=P.id,ie=P.prefixCls,X=P.steps,y=P.strokeWidth,v=P.trailWidth,O=P.gapDegree,pe=O===void 0?0:O,He=P.gapPosition,tt=P.trailColor,Ct=P.strokeLinecap,Rt=P.style,Ft=P.className,Ht=P.strokeColor,Ke=P.percent,qt=(0,z.Z)(P,ee),Dt=Q/2,sn=le(G),Je="".concat(sn,"-gradient"),yt=Dt-y/2,Fe=Math.PI*2*yt,we=pe>0?90+pe/2:-90,V=Fe*((360-pe)/360),je=(0,p.Z)(X)==="object"?X:{count:X,gap:2},Qe=je.count,q=je.gap,M=oe(Ke),Se=oe(Ht),be=Se.find(function(Ye){return Ye&&(0,p.Z)(Ye)==="object"}),W=be&&(0,p.Z)(be)==="object",fe=W?"butt":Ct,ye=re(Fe,V,0,100,we,pe,He,tt,fe,y),$e=ne(),Ve=function(){var ot=0;return M.map(function(de,K){var N=Se[K]||Se[Se.length-1],Le=re(Fe,V,ot,de,we,pe,He,N,fe,y);return ot+=de,ae.createElement(w,{key:K,color:N,ptg:de,radius:yt,prefixCls:ie,gradientId:Je,style:Le,strokeLinecap:fe,strokeWidth:y,gapDegree:pe,ref:function(Ae){$e[K]=Ae},size:Q})}).reverse()},qe=function(){var ot=Math.round(Qe*(M[0]/100)),de=100/Qe,K=0;return new Array(Qe).fill(null).map(function(N,Le){var De=Le<=ot-1?Se[0]:tt,Ae=De&&(0,p.Z)(De)==="object"?"url(#".concat(Je,")"):void 0,it=re(Fe,V,K,de,we,pe,He,De,"butt",y,q);return K+=(V-it.strokeDashoffset+q)*100/V,ae.createElement("circle",{key:Le,className:"".concat(ie,"-circle-path"),r:yt,cx:Dt,cy:Dt,stroke:Ae,strokeWidth:y,opacity:1,style:it,ref:function(Oe){$e[Le]=Oe}})})};return ae.createElement("svg",(0,f.Z)({className:d()("".concat(ie,"-circle"),Ft),viewBox:"0 0 ".concat(Q," ").concat(Q),style:Rt,id:G,role:"presentation"},qt),!Qe&&ae.createElement("circle",{className:"".concat(ie,"-circle-trail"),r:yt,cx:Dt,cy:Dt,stroke:tt,strokeLinecap:fe,strokeWidth:v||y,style:ye}),Qe?qe():Ve())},me=ge,at={Line:A,Circle:me}},738:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return H}});var f=_(32855),ue=_(74430),z=_(11913),ae=_(43079),B=_(92310),d=_.n(B),_e=_(18929),ne=_(10228),o=_(26112),g=_(59301);function A(D,w){var Q=D.disabled,re=D.prefixCls,ee=D.character,oe=D.characterRender,ge=D.index,me=D.count,at=D.value,Z=D.allowHalf,T=D.focused,P=D.onHover,G=D.onClick,ie=function(Ct){P(Ct,ge)},X=function(Ct){G(Ct,ge)},y=function(Ct){Ct.keyCode===ne.Z.ENTER&&G(Ct,ge)},v=ge+1,O=new Set([re]);at===0&&ge===0&&T?O.add("".concat(re,"-focused")):Z&&at+.5>=v&&at<v?(O.add("".concat(re,"-half")),O.add("".concat(re,"-active")),T&&O.add("".concat(re,"-focused"))):(v<=at?O.add("".concat(re,"-full")):O.add("".concat(re,"-zero")),v===at&&T&&O.add("".concat(re,"-focused")));var pe=typeof ee=="function"?ee(D):ee,He=g.createElement("li",{className:d()(Array.from(O)),ref:w},g.createElement("div",{onClick:Q?null:X,onKeyDown:Q?null:y,onMouseMove:Q?null:ie,role:"radio","aria-checked":at>ge?"true":"false","aria-posinset":ge+1,"aria-setsize":me,tabIndex:Q?-1:0},g.createElement("div",{className:"".concat(re,"-first")},pe),g.createElement("div",{className:"".concat(re,"-second")},pe)));return oe&&(He=oe(He,D)),He}var p=g.forwardRef(A);function E(){var D=g.useRef({});function w(re){return D.current[re]}function Q(re){return function(ee){D.current[re]=ee}}return[w,Q]}function b(D){var w=D.pageXOffset,Q="scrollLeft";if(typeof w!="number"){var re=D.document;w=re.documentElement[Q],typeof w!="number"&&(w=re.body[Q])}return w}function I(D){var w,Q,re=D.ownerDocument,ee=re.body,oe=re&&re.documentElement,ge=D.getBoundingClientRect();return w=ge.left,Q=ge.top,w-=oe.clientLeft||ee.clientLeft||0,Q-=oe.clientTop||ee.clientTop||0,{left:w,top:Q}}function j(D){var w=I(D),Q=D.ownerDocument,re=Q.defaultView||Q.parentWindow;return w.left+=b(re),w.left}var $=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function le(D,w){var Q=D.prefixCls,re=Q===void 0?"rc-rate":Q,ee=D.className,oe=D.defaultValue,ge=D.value,me=D.count,at=me===void 0?5:me,Z=D.allowHalf,T=Z===void 0?!1:Z,P=D.allowClear,G=P===void 0?!0:P,ie=D.keyboard,X=ie===void 0?!0:ie,y=D.character,v=y===void 0?"\u2605":y,O=D.characterRender,pe=D.disabled,He=D.direction,tt=He===void 0?"ltr":He,Ct=D.tabIndex,Rt=Ct===void 0?0:Ct,Ft=D.autoFocus,Ht=D.onHoverChange,Ke=D.onChange,qt=D.onFocus,Dt=D.onBlur,sn=D.onKeyDown,Je=D.onMouseLeave,yt=(0,ae.Z)(D,$),Fe=E(),we=(0,z.Z)(Fe,2),V=we[0],je=we[1],Qe=g.useRef(null),q=function(){if(!pe){var k;(k=Qe.current)===null||k===void 0||k.focus()}};g.useImperativeHandle(w,function(){return{focus:q,blur:function(){if(!pe){var k;(k=Qe.current)===null||k===void 0||k.blur()}}}});var M=(0,_e.Z)(oe||0,{value:ge}),Se=(0,z.Z)(M,2),be=Se[0],W=Se[1],fe=(0,_e.Z)(null),ye=(0,z.Z)(fe,2),$e=ye[0],Ve=ye[1],qe=function(k,Y){var he=tt==="rtl",ce=k+1;if(T){var xe=V(k),Be=j(xe),Xe=xe.clientWidth;(he&&Y-Be>Xe/2||!he&&Y-Be<Xe/2)&&(ce-=.5)}return ce},Ye=function(k){W(k),Ke==null||Ke(k)},ot=g.useState(!1),de=(0,z.Z)(ot,2),K=de[0],N=de[1],Le=function(){N(!0),qt==null||qt()},De=function(){N(!1),Dt==null||Dt()},Ae=g.useState(null),it=(0,z.Z)(Ae,2),st=it[0],Oe=it[1],Et=function(k,Y){var he=qe(Y,k.pageX);he!==$e&&(Oe(he),Ve(null)),Ht==null||Ht(he)},jt=function(k){pe||(Oe(null),Ve(null),Ht==null||Ht(void 0)),k&&(Je==null||Je(k))},wt=function(k,Y){var he=qe(Y,k.pageX),ce=!1;G&&(ce=he===be),jt(),Ye(ce?0:he),Ve(ce?he:null)},Bt=function(k){var Y=k.keyCode,he=tt==="rtl",ce=T?.5:1;X&&(Y===ne.Z.RIGHT&&be<at&&!he?(Ye(be+ce),k.preventDefault()):Y===ne.Z.LEFT&&be>0&&!he||Y===ne.Z.RIGHT&&be>0&&he?(Ye(be-ce),k.preventDefault()):Y===ne.Z.LEFT&&be<at&&he&&(Ye(be+ce),k.preventDefault())),sn==null||sn(k)};g.useEffect(function(){Ft&&!pe&&q()},[]);var se=new Array(at).fill(0).map(function(Ee,k){return g.createElement(p,{ref:je(k),index:k,count:at,disabled:pe,prefixCls:"".concat(re,"-star"),allowHalf:T,value:st===null?be:st,onClick:wt,onHover:Et,key:Ee||k,character:v,characterRender:O,focused:K})}),ve=d()(re,ee,(0,ue.Z)((0,ue.Z)({},"".concat(re,"-disabled"),pe),"".concat(re,"-rtl"),tt==="rtl"));return g.createElement("ul",(0,f.Z)({className:ve,onMouseLeave:jt,tabIndex:pe?-1:Rt,onFocus:pe?null:Le,onBlur:pe?null:De,onKeyDown:pe?null:Bt,ref:Qe},(0,o.Z)(yt,{aria:!0,data:!0,attr:!0})),se)}var F=g.forwardRef(le),H=F},29301:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return Z}});var f=_(32855),ue=_(59301),z=_(11592),ae=_(48736),B=_(27247),d=_(34666),_e=_(76846),ne=_(8654),o=ue.createContext(null);function g(T){var P=T.children,G=T.onBatchResize,ie=ue.useRef(0),X=ue.useRef([]),y=ue.useContext(o),v=ue.useCallback(function(O,pe,He){ie.current+=1;var tt=ie.current;X.current.push({size:O,element:pe,data:He}),Promise.resolve().then(function(){tt===ie.current&&(G==null||G(X.current),X.current=[])}),y==null||y(O,pe,He)},[G,y]);return ue.createElement(o.Provider,{value:v},P)}var A=_(76374),p=new Map;function E(T){T.forEach(function(P){var G,ie=P.target;(G=p.get(ie))===null||G===void 0||G.forEach(function(X){return X(ie)})})}var b=new A.Z(E),I=null,j=null;function $(T,P){p.has(T)||(p.set(T,new Set),b.observe(T)),p.get(T).add(P)}function le(T,P){p.has(T)&&(p.get(T).delete(P),p.get(T).size||(b.unobserve(T),p.delete(T)))}var F=_(33377),H=_(93912),D=_(18881),w=_(85461),Q=function(T){(0,D.Z)(G,T);var P=(0,w.Z)(G);function G(){return(0,F.Z)(this,G),P.apply(this,arguments)}return(0,H.Z)(G,[{key:"render",value:function(){return this.props.children}}]),G}(ue.Component);function re(T,P){var G=T.children,ie=T.disabled,X=ue.useRef(null),y=ue.useRef(null),v=ue.useContext(o),O=typeof G=="function",pe=O?G(X):G,He=ue.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),tt=!O&&ue.isValidElement(pe)&&(0,ne.Yr)(pe),Ct=tt?(0,ne.C4)(pe):null,Rt=(0,ne.x1)(Ct,X),Ft=function(){var Dt;return(0,_e.ZP)(X.current)||(X.current&&(0,d.Z)(X.current)==="object"?(0,_e.ZP)((Dt=X.current)===null||Dt===void 0?void 0:Dt.nativeElement):null)||(0,_e.ZP)(y.current)};ue.useImperativeHandle(P,function(){return Ft()});var Ht=ue.useRef(T);Ht.current=T;var Ke=ue.useCallback(function(qt){var Dt=Ht.current,sn=Dt.onResize,Je=Dt.data,yt=qt.getBoundingClientRect(),Fe=yt.width,we=yt.height,V=qt.offsetWidth,je=qt.offsetHeight,Qe=Math.floor(Fe),q=Math.floor(we);if(He.current.width!==Qe||He.current.height!==q||He.current.offsetWidth!==V||He.current.offsetHeight!==je){var M={width:Qe,height:q,offsetWidth:V,offsetHeight:je};He.current=M;var Se=V===Math.round(Fe)?Fe:V,be=je===Math.round(we)?we:je,W=(0,B.Z)((0,B.Z)({},M),{},{offsetWidth:Se,offsetHeight:be});v==null||v(W,qt,Je),sn&&Promise.resolve().then(function(){sn(W,qt)})}},[]);return ue.useEffect(function(){var qt=Ft();return qt&&!ie&&$(qt,Ke),function(){return le(qt,Ke)}},[X.current,ie]),ue.createElement(Q,{ref:y},tt?ue.cloneElement(pe,{ref:Rt}):pe)}var ee=ue.forwardRef(re),oe=ee,ge="rc-observer-key";function me(T,P){var G=T.children,ie=typeof G=="function"?[G]:(0,z.Z)(G);return ie.map(function(X,y){var v=(X==null?void 0:X.key)||"".concat(ge,"-").concat(y);return ue.createElement(oe,(0,f.Z)({},T,{key:v,ref:y===0?P:void 0}),X)})}var at=ue.forwardRef(me);at.Collection=g;var Z=at},6551:function(Pn,Gt,_){"use strict";_.d(Gt,{ZP:function(){return _e}});var f=_(11913),ue=_(59301),z=_(47273),ae=0,B=(0,z.Z)();function d(){var ne;return B?(ne=ae,ae+=1):ne="TEST_OR_SSR",ne}function _e(ne){var o=ue.useState(),g=(0,f.Z)(o,2),A=g[0],p=g[1];return ue.useEffect(function(){p("rc_select_".concat(d()))},[]),ne||A}},37463:function(Pn,Gt,_){"use strict";_.d(Gt,{Ac:function(){return N},Xo:function(){return De},Wx:function(){return it},ZP:function(){return cn},lk:function(){return H}});var f=_(32855),ue=_(3300),z=_(74430),ae=_(27247),B=_(11913),d=_(43079),_e=_(34666),ne=_(18929),o=_(48736),g=_(59301),A=_(92310),p=_.n(A),E=_(34280),b=_(49658),I=_(8654),j=function(Re){var dt=Re.className,mt=Re.customizeIcon,Mt=Re.customizeIconProps,bt=Re.children,Tt=Re.onMouseDown,Kt=Re.onClick,en=typeof mt=="function"?mt(Mt):mt;return g.createElement("span",{className:dt,onMouseDown:function(dn){dn.preventDefault(),Tt==null||Tt(dn)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Kt,"aria-hidden":!0},en!==void 0?en:g.createElement("span",{className:p()(dt.split(/\s+/).map(function(At){return"".concat(At,"-icon")}))},bt))},$=j,le=function(Re,dt,mt,Mt,bt){var Tt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Kt=arguments.length>6?arguments[6]:void 0,en=arguments.length>7?arguments[7]:void 0,At=g.useMemo(function(){if((0,_e.Z)(Mt)==="object")return Mt.clearIcon;if(bt)return bt},[Mt,bt]),dn=g.useMemo(function(){return!!(!Tt&&Mt&&(mt.length||Kt)&&!(en==="combobox"&&Kt===""))},[Mt,Tt,mt.length,Kt,en]);return{allowClear:dn,clearIcon:g.createElement($,{className:"".concat(Re,"-clear"),onMouseDown:dt,customizeIcon:At},"\xD7")}},F=g.createContext(null);function H(){return g.useContext(F)}function D(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Re=g.useState(!1),dt=(0,B.Z)(Re,2),mt=dt[0],Mt=dt[1],bt=g.useRef(null),Tt=function(){window.clearTimeout(bt.current)};g.useEffect(function(){return Tt},[]);var Kt=function(At,dn){Tt(),bt.current=window.setTimeout(function(){Mt(At),dn&&dn()},Ne)};return[mt,Kt,Tt]}function w(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Re=g.useRef(null),dt=g.useRef(null);g.useEffect(function(){return function(){window.clearTimeout(dt.current)}},[]);function mt(Mt){(Mt||Re.current===null)&&(Re.current=Mt),window.clearTimeout(dt.current),dt.current=window.setTimeout(function(){Re.current=null},Ne)}return[function(){return Re.current},mt]}function Q(Ne,Re,dt,mt){var Mt=g.useRef(null);Mt.current={open:Re,triggerOpen:dt,customizedTrigger:mt},g.useEffect(function(){function bt(Tt){var Kt;if(!((Kt=Mt.current)!==null&&Kt!==void 0&&Kt.customizedTrigger)){var en=Tt.target;en.shadowRoot&&Tt.composed&&(en=Tt.composedPath()[0]||en),Mt.current.open&&Ne().filter(function(At){return At}).every(function(At){return!At.contains(en)&&At!==en})&&Mt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",bt),function(){return window.removeEventListener("mousedown",bt)}},[])}var re=_(10228);function ee(Ne){return Ne&&![re.Z.ESC,re.Z.SHIFT,re.Z.BACKSPACE,re.Z.TAB,re.Z.WIN_KEY,re.Z.ALT,re.Z.META,re.Z.WIN_KEY_RIGHT,re.Z.CTRL,re.Z.SEMICOLON,re.Z.EQUALS,re.Z.CAPS_LOCK,re.Z.CONTEXT_MENU,re.Z.F1,re.Z.F2,re.Z.F3,re.Z.F4,re.Z.F5,re.Z.F6,re.Z.F7,re.Z.F8,re.Z.F9,re.Z.F10,re.Z.F11,re.Z.F12].includes(Ne)}var oe=_(26112),ge=_(11780);function me(Ne,Re,dt){var mt=(0,ae.Z)((0,ae.Z)({},Ne),dt?Re:{});return Object.keys(Re).forEach(function(Mt){var bt=Re[Mt];typeof bt=="function"&&(mt[Mt]=function(){for(var Tt,Kt=arguments.length,en=new Array(Kt),At=0;At<Kt;At++)en[At]=arguments[At];return bt.apply(void 0,en),(Tt=Ne[Mt])===null||Tt===void 0?void 0:Tt.call.apply(Tt,[Ne].concat(en))})}),mt}var at=me,Z=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],T=function(Re,dt){var mt=Re.prefixCls,Mt=Re.id,bt=Re.inputElement,Tt=Re.autoFocus,Kt=Re.autoComplete,en=Re.editable,At=Re.activeDescendantId,dn=Re.value,an=Re.open,Jt=Re.attrs,kt=(0,d.Z)(Re,Z),Ze=bt||g.createElement("input",null),ft=Ze,St=ft.ref,Ot=ft.props;return(0,o.Kp)(!("maxLength"in Ze.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Ze=g.cloneElement(Ze,(0,ae.Z)((0,ae.Z)((0,ae.Z)({type:"search"},at(kt,Ot,!0)),{},{id:Mt,ref:(0,I.sQ)(dt,St),autoComplete:Kt||"off",autoFocus:Tt,className:p()("".concat(mt,"-selection-search-input"),Ot==null?void 0:Ot.className),role:"combobox","aria-expanded":an||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Mt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Mt,"_list"),"aria-activedescendant":an?At:void 0},Jt),{},{value:en?dn:"",readOnly:!en,unselectable:en?null:"on",style:(0,ae.Z)((0,ae.Z)({},Ot.style),{},{opacity:en?null:0})})),Ze},P=g.forwardRef(T),G=P;function ie(Ne){return Array.isArray(Ne)?Ne:Ne!==void 0?[Ne]:[]}var X=typeof window!="undefined"&&window.document&&window.document.documentElement,y=X;function v(Ne){return Ne!=null}function O(Ne){return!Ne&&Ne!==0}function pe(Ne){return["string","number"].includes((0,_e.Z)(Ne))}function He(Ne){var Re=void 0;return Ne&&(pe(Ne.title)?Re=Ne.title.toString():pe(Ne.label)&&(Re=Ne.label.toString())),Re}function tt(Ne,Re){y?g.useLayoutEffect(Ne,Re):g.useEffect(Ne,Re)}function Ct(Ne){var Re;return(Re=Ne.key)!==null&&Re!==void 0?Re:Ne.value}var Rt=function(Re){Re.preventDefault(),Re.stopPropagation()},Ft=function(Re){var dt=Re.id,mt=Re.prefixCls,Mt=Re.values,bt=Re.open,Tt=Re.searchValue,Kt=Re.autoClearSearchValue,en=Re.inputRef,At=Re.placeholder,dn=Re.disabled,an=Re.mode,Jt=Re.showSearch,kt=Re.autoFocus,Ze=Re.autoComplete,ft=Re.activeDescendantId,St=Re.tabIndex,Ot=Re.removeIcon,tn=Re.maxTagCount,et=Re.maxTagTextLength,ln=Re.maxTagPlaceholder,xn=ln===void 0?function(Nt){return"+ ".concat(Nt.length," ...")}:ln,Tn=Re.tagRender,Cn=Re.onToggleOpen,Yn=Re.onRemove,Dn=Re.onInputChange,Zn=Re.onInputPaste,On=Re.onInputKeyDown,Bn=Re.onInputMouseDown,In=Re.onInputCompositionStart,yn=Re.onInputCompositionEnd,kn=Re.onInputBlur,pn=g.useRef(null),En=(0,g.useState)(0),Ln=(0,B.Z)(En,2),Mn=Ln[0],zn=Ln[1],Un=(0,g.useState)(!1),ar=(0,B.Z)(Un,2),Me=ar[0],Ie=ar[1],Te="".concat(mt,"-selection"),lt=bt||an==="multiple"&&Kt===!1||an==="tags"?Tt:"",gt=an==="tags"||an==="multiple"&&Kt===!1||Jt&&(bt||Me);tt(function(){zn(pn.current.scrollWidth)},[lt]);var _t=function(Zt,nn,gn,Kn,mn){return g.createElement("span",{title:He(Zt),className:p()("".concat(Te,"-item"),(0,z.Z)({},"".concat(Te,"-item-disabled"),gn))},g.createElement("span",{className:"".concat(Te,"-item-content")},nn),Kn&&g.createElement($,{className:"".concat(Te,"-item-remove"),onMouseDown:Rt,onClick:mn,customizeIcon:Ot},"\xD7"))},zt=function(Zt,nn,gn,Kn,mn,Sn){var Fn=function(Vn){Rt(Vn),Cn(!bt)};return g.createElement("span",{onMouseDown:Fn},Tn({label:nn,value:Zt,disabled:gn,closable:Kn,onClose:mn,isMaxTag:!!Sn}))},Wt=function(Zt){var nn=Zt.disabled,gn=Zt.label,Kn=Zt.value,mn=!dn&&!nn,Sn=gn;if(typeof et=="number"&&(typeof gn=="string"||typeof gn=="number")){var Fn=String(Sn);Fn.length>et&&(Sn="".concat(Fn.slice(0,et),"..."))}var Nn=function(wn){wn&&wn.stopPropagation(),Yn(Zt)};return typeof Tn=="function"?zt(Kn,Sn,nn,mn,Nn):_t(Zt,Sn,nn,mn,Nn)},It=function(Zt){if(!Mt.length)return null;var nn=typeof xn=="function"?xn(Zt):xn;return typeof Tn=="function"?zt(void 0,nn,!1,!1,void 0,!0):_t({title:nn},nn,!1)},vt=g.createElement("div",{className:"".concat(Te,"-search"),style:{width:Mn},onFocus:function(){Ie(!0)},onBlur:function(){Ie(!1)}},g.createElement(G,{ref:en,open:bt,prefixCls:mt,id:dt,inputElement:null,disabled:dn,autoFocus:kt,autoComplete:Ze,editable:gt,activeDescendantId:ft,value:lt,onKeyDown:On,onMouseDown:Bn,onChange:Dn,onPaste:Zn,onCompositionStart:In,onCompositionEnd:yn,onBlur:kn,tabIndex:St,attrs:(0,oe.Z)(Re,!0)}),g.createElement("span",{ref:pn,className:"".concat(Te,"-search-mirror"),"aria-hidden":!0},lt,"\xA0")),xt=g.createElement(ge.Z,{prefixCls:"".concat(Te,"-overflow"),data:Mt,renderItem:Wt,renderRest:It,suffix:vt,itemKey:Ct,maxCount:tn});return g.createElement("span",{className:"".concat(Te,"-wrap")},xt,!Mt.length&&!lt&&g.createElement("span",{className:"".concat(Te,"-placeholder")},At))},Ht=Ft,Ke=function(Re){var dt=Re.inputElement,mt=Re.prefixCls,Mt=Re.id,bt=Re.inputRef,Tt=Re.disabled,Kt=Re.autoFocus,en=Re.autoComplete,At=Re.activeDescendantId,dn=Re.mode,an=Re.open,Jt=Re.values,kt=Re.placeholder,Ze=Re.tabIndex,ft=Re.showSearch,St=Re.searchValue,Ot=Re.activeValue,tn=Re.maxLength,et=Re.onInputKeyDown,ln=Re.onInputMouseDown,xn=Re.onInputChange,Tn=Re.onInputPaste,Cn=Re.onInputCompositionStart,Yn=Re.onInputCompositionEnd,Dn=Re.onInputBlur,Zn=Re.title,On=g.useState(!1),Bn=(0,B.Z)(On,2),In=Bn[0],yn=Bn[1],kn=dn==="combobox",pn=kn||ft,En=Jt[0],Ln=St||"";kn&&Ot&&!In&&(Ln=Ot),g.useEffect(function(){kn&&yn(!1)},[kn,Ot]);var Mn=dn!=="combobox"&&!an&&!ft?!1:!!Ln,zn=Zn===void 0?He(En):Zn,Un=g.useMemo(function(){return En?null:g.createElement("span",{className:"".concat(mt,"-selection-placeholder"),style:Mn?{visibility:"hidden"}:void 0},kt)},[En,Mn,kt,mt]);return g.createElement("span",{className:"".concat(mt,"-selection-wrap")},g.createElement("span",{className:"".concat(mt,"-selection-search")},g.createElement(G,{ref:bt,prefixCls:mt,id:Mt,open:an,inputElement:dt,disabled:Tt,autoFocus:Kt,autoComplete:en,editable:pn,activeDescendantId:At,value:Ln,onKeyDown:et,onMouseDown:ln,onChange:function(Me){yn(!0),xn(Me)},onPaste:Tn,onCompositionStart:Cn,onCompositionEnd:Yn,onBlur:Dn,tabIndex:Ze,attrs:(0,oe.Z)(Re,!0),maxLength:kn?tn:void 0})),!kn&&En?g.createElement("span",{className:"".concat(mt,"-selection-item"),title:zn,style:Mn?{visibility:"hidden"}:void 0},En.label):null,Un)},qt=Ke,Dt=function(Re,dt){var mt=(0,g.useRef)(null),Mt=(0,g.useRef)(!1),bt=Re.prefixCls,Tt=Re.open,Kt=Re.mode,en=Re.showSearch,At=Re.tokenWithEnter,dn=Re.disabled,an=Re.prefix,Jt=Re.autoClearSearchValue,kt=Re.onSearch,Ze=Re.onSearchSubmit,ft=Re.onToggleOpen,St=Re.onInputKeyDown,Ot=Re.onInputBlur,tn=Re.domRef;g.useImperativeHandle(dt,function(){return{focus:function(zn){mt.current.focus(zn)},blur:function(){mt.current.blur()}}});var et=w(0),ln=(0,B.Z)(et,2),xn=ln[0],Tn=ln[1],Cn=function(zn){var Un=zn.which,ar=mt.current instanceof HTMLTextAreaElement;!ar&&Tt&&(Un===re.Z.UP||Un===re.Z.DOWN)&&zn.preventDefault(),St&&St(zn),Un===re.Z.ENTER&&Kt==="tags"&&!Mt.current&&!Tt&&(Ze==null||Ze(zn.target.value)),!(ar&&!Tt&&~[re.Z.UP,re.Z.DOWN,re.Z.LEFT,re.Z.RIGHT].indexOf(Un))&&ee(Un)&&ft(!0)},Yn=function(){Tn(!0)},Dn=(0,g.useRef)(null),Zn=function(zn){kt(zn,!0,Mt.current)!==!1&&ft(!0)},On=function(){Mt.current=!0},Bn=function(zn){Mt.current=!1,Kt!=="combobox"&&Zn(zn.target.value)},In=function(zn){var Un=zn.target.value;if(At&&Dn.current&&/[\r\n]/.test(Dn.current)){var ar=Dn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Un=Un.replace(ar,Dn.current)}Dn.current=null,Zn(Un)},yn=function(zn){var Un=zn.clipboardData,ar=Un==null?void 0:Un.getData("text");Dn.current=ar||""},kn=function(zn){var Un=zn.target;if(Un!==mt.current){var ar=document.body.style.msTouchAction!==void 0;ar?setTimeout(function(){mt.current.focus()}):mt.current.focus()}},pn=function(zn){var Un=xn();zn.target!==mt.current&&!Un&&!(Kt==="combobox"&&dn)&&zn.preventDefault(),(Kt!=="combobox"&&(!en||!Un)||!Tt)&&(Tt&&Jt!==!1&&kt("",!0,!1),ft())},En={inputRef:mt,onInputKeyDown:Cn,onInputMouseDown:Yn,onInputChange:In,onInputPaste:yn,onInputCompositionStart:On,onInputCompositionEnd:Bn,onInputBlur:Ot},Ln=Kt==="multiple"||Kt==="tags"?g.createElement(Ht,(0,f.Z)({},Re,En)):g.createElement(qt,(0,f.Z)({},Re,En));return g.createElement("div",{ref:tn,className:"".concat(bt,"-selector"),onClick:kn,onMouseDown:pn},an&&g.createElement("div",{className:"".concat(bt,"-prefix")},an),Ln)},sn=g.forwardRef(Dt),Je=sn,yt=_(65030),Fe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],we=function(Re){var dt=Re===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:dt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:dt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:dt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:dt,adjustY:1},htmlRegion:"scroll"}}},V=function(Re,dt){var mt=Re.prefixCls,Mt=Re.disabled,bt=Re.visible,Tt=Re.children,Kt=Re.popupElement,en=Re.animation,At=Re.transitionName,dn=Re.dropdownStyle,an=Re.dropdownClassName,Jt=Re.direction,kt=Jt===void 0?"ltr":Jt,Ze=Re.placement,ft=Re.builtinPlacements,St=Re.dropdownMatchSelectWidth,Ot=Re.dropdownRender,tn=Re.dropdownAlign,et=Re.getPopupContainer,ln=Re.empty,xn=Re.getTriggerDOMNode,Tn=Re.onPopupVisibleChange,Cn=Re.onPopupMouseEnter,Yn=(0,d.Z)(Re,Fe),Dn="".concat(mt,"-dropdown"),Zn=Kt;Ot&&(Zn=Ot(Kt));var On=g.useMemo(function(){return ft||we(St)},[ft,St]),Bn=en?"".concat(Dn,"-").concat(en):At,In=typeof St=="number",yn=g.useMemo(function(){return In?null:St===!1?"minWidth":"width"},[St,In]),kn=dn;In&&(kn=(0,ae.Z)((0,ae.Z)({},kn),{},{width:St}));var pn=g.useRef(null);return g.useImperativeHandle(dt,function(){return{getPopupElement:function(){var Ln;return(Ln=pn.current)===null||Ln===void 0?void 0:Ln.popupElement}}}),g.createElement(yt.Z,(0,f.Z)({},Yn,{showAction:Tn?["click"]:[],hideAction:Tn?["click"]:[],popupPlacement:Ze||(kt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:On,prefixCls:Dn,popupTransitionName:Bn,popup:g.createElement("div",{onMouseEnter:Cn},Zn),ref:pn,stretch:yn,popupAlign:tn,popupVisible:bt,getPopupContainer:et,popupClassName:p()(an,(0,z.Z)({},"".concat(Dn,"-empty"),ln)),popupStyle:kn,getTriggerDOMNode:xn,onPopupVisibleChange:Tn}),Tt)},je=g.forwardRef(V),Qe=je,q=_(40954);function M(Ne,Re){var dt=Ne.key,mt;return"value"in Ne&&(mt=Ne.value),dt!=null?dt:mt!==void 0?mt:"rc-index-key-".concat(Re)}function Se(Ne){return typeof Ne!="undefined"&&!Number.isNaN(Ne)}function be(Ne,Re){var dt=Ne||{},mt=dt.label,Mt=dt.value,bt=dt.options,Tt=dt.groupLabel,Kt=mt||(Re?"children":"label");return{label:Kt,value:Mt||"value",options:bt||"options",groupLabel:Tt||Kt}}function W(Ne){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dt=Re.fieldNames,mt=Re.childrenAsData,Mt=[],bt=be(dt,!1),Tt=bt.label,Kt=bt.value,en=bt.options,At=bt.groupLabel;function dn(an,Jt){Array.isArray(an)&&an.forEach(function(kt){if(Jt||!(en in kt)){var Ze=kt[Kt];Mt.push({key:M(kt,Mt.length),groupOption:Jt,data:kt,label:kt[Tt],value:Ze})}else{var ft=kt[At];ft===void 0&&mt&&(ft=kt.label),Mt.push({key:M(kt,Mt.length),group:!0,data:kt,label:ft}),dn(kt[en],!0)}})}return dn(Ne,!1),Mt}function fe(Ne){var Re=(0,ae.Z)({},Ne);return"props"in Re||Object.defineProperty(Re,"props",{get:function(){return(0,o.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Re}}),Re}var ye=function(Re,dt,mt){if(!dt||!dt.length)return null;var Mt=!1,bt=function Kt(en,At){var dn=(0,q.Z)(At),an=dn[0],Jt=dn.slice(1);if(!an)return[en];var kt=en.split(an);return Mt=Mt||kt.length>1,kt.reduce(function(Ze,ft){return[].concat((0,ue.Z)(Ze),(0,ue.Z)(Kt(ft,Jt)))},[]).filter(Boolean)},Tt=bt(Re,dt);return Mt?typeof mt!="undefined"?Tt.slice(0,mt):Tt:null},$e=g.createContext(null),Ve=$e;function qe(Ne){var Re=Ne.visible,dt=Ne.values;if(!Re)return null;var mt=50;return g.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(dt.slice(0,mt).map(function(Mt){var bt=Mt.label,Tt=Mt.value;return["number","string"].includes((0,_e.Z)(bt))?bt:Tt}).join(", ")),dt.length>mt?", ...":null)}var Ye=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ot=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],de=function(Re){return Re==="tags"||Re==="multiple"},K=g.forwardRef(function(Ne,Re){var dt,mt=Ne.id,Mt=Ne.prefixCls,bt=Ne.className,Tt=Ne.showSearch,Kt=Ne.tagRender,en=Ne.direction,At=Ne.omitDomProps,dn=Ne.displayValues,an=Ne.onDisplayValuesChange,Jt=Ne.emptyOptions,kt=Ne.notFoundContent,Ze=kt===void 0?"Not Found":kt,ft=Ne.onClear,St=Ne.mode,Ot=Ne.disabled,tn=Ne.loading,et=Ne.getInputElement,ln=Ne.getRawInputElement,xn=Ne.open,Tn=Ne.defaultOpen,Cn=Ne.onDropdownVisibleChange,Yn=Ne.activeValue,Dn=Ne.onActiveValueChange,Zn=Ne.activeDescendantId,On=Ne.searchValue,Bn=Ne.autoClearSearchValue,In=Ne.onSearch,yn=Ne.onSearchSplit,kn=Ne.tokenSeparators,pn=Ne.allowClear,En=Ne.prefix,Ln=Ne.suffixIcon,Mn=Ne.clearIcon,zn=Ne.OptionList,Un=Ne.animation,ar=Ne.transitionName,Me=Ne.dropdownStyle,Ie=Ne.dropdownClassName,Te=Ne.dropdownMatchSelectWidth,lt=Ne.dropdownRender,gt=Ne.dropdownAlign,_t=Ne.placement,zt=Ne.builtinPlacements,Wt=Ne.getPopupContainer,It=Ne.showAction,vt=It===void 0?[]:It,xt=Ne.onFocus,Nt=Ne.onBlur,Zt=Ne.onKeyUp,nn=Ne.onKeyDown,gn=Ne.onMouseDown,Kn=(0,d.Z)(Ne,Ye),mn=de(St),Sn=(Tt!==void 0?Tt:mn)||St==="combobox",Fn=(0,ae.Z)({},Kn);ot.forEach(function(Cr){delete Fn[Cr]}),At==null||At.forEach(function(Cr){delete Fn[Cr]});var Nn=g.useState(!1),Vn=(0,B.Z)(Nn,2),wn=Vn[0],Gn=Vn[1];g.useEffect(function(){Gn((0,b.Z)())},[]);var Wn=g.useRef(null),er=g.useRef(null),bn=g.useRef(null),Jn=g.useRef(null),cr=g.useRef(null),pt=g.useRef(!1),Qt=D(),on=(0,B.Z)(Qt,3),Vt=on[0],vn=on[1],Rn=on[2];g.useImperativeHandle(Re,function(){var Cr,br;return{focus:(Cr=Jn.current)===null||Cr===void 0?void 0:Cr.focus,blur:(br=Jn.current)===null||br===void 0?void 0:br.blur,scrollTo:function(Gr){var Yr;return(Yr=cr.current)===null||Yr===void 0?void 0:Yr.scrollTo(Gr)},nativeElement:Wn.current||er.current}});var nr=g.useMemo(function(){var Cr;if(St!=="combobox")return On;var br=(Cr=dn[0])===null||Cr===void 0?void 0:Cr.value;return typeof br=="string"||typeof br=="number"?String(br):""},[On,St,dn]),Xn=St==="combobox"&&typeof et=="function"&&et()||null,dr=typeof ln=="function"&&ln(),xr=(0,I.x1)(er,dr==null||(dt=dr.props)===null||dt===void 0?void 0:dt.ref),Ur=g.useState(!1),Nr=(0,B.Z)(Ur,2),zr=Nr[0],Vr=Nr[1];(0,E.Z)(function(){Vr(!0)},[]);var Zr=(0,ne.Z)(!1,{defaultValue:Tn,value:xn}),yr=(0,B.Z)(Zr,2),Tr=yr[0],Wr=yr[1],Er=zr?Tr:!1,_r=!Ze&&Jt;(Ot||_r&&Er&&St==="combobox")&&(Er=!1);var lr=_r?!1:Er,jn=g.useCallback(function(Cr){var br=Cr!==void 0?Cr:!Er;Ot||(Wr(br),Er!==br&&(Cn==null||Cn(br)))},[Ot,Er,Wr,Cn]),or=g.useMemo(function(){return(kn||[]).some(function(Cr){return[`
`,`\r
`].includes(Cr)})},[kn]),ur=g.useContext(Ve)||{},fr=ur.maxCount,Sr=ur.rawValues,Dr=function(br,Qr,Gr){if(!(mn&&Se(fr)&&(Sr==null?void 0:Sr.size)>=fr)){var Yr=!0,Jr=br;Dn==null||Dn(null);var pi=ye(br,kn,Se(fr)?fr-Sr.size:void 0),mi=Gr?null:pi;return St!=="combobox"&&mi&&(Jr="",yn==null||yn(mi),jn(!1),Yr=!1),In&&nr!==Jr&&In(Jr,{source:Qr?"typing":"effect"}),Yr}},$r=function(br){!br||!br.trim()||In(br,{source:"submit"})};g.useEffect(function(){!Er&&!mn&&St!=="combobox"&&Dr("",!1,!1)},[Er]),g.useEffect(function(){Tr&&Ot&&Wr(!1),Ot&&!pt.current&&vn(!1)},[Ot]);var Hn=w(),ir=(0,B.Z)(Hn,2),rr=ir[0],Ar=ir[1],Lr=g.useRef(!1),Fr=function(br){var Qr=rr(),Gr=br.key,Yr=Gr==="Enter";if(Yr&&(St!=="combobox"&&br.preventDefault(),Er||jn(!0)),Ar(!!nr),Gr==="Backspace"&&!Qr&&mn&&!nr&&dn.length){for(var Jr=(0,ue.Z)(dn),pi=null,mi=Jr.length-1;mi>=0;mi-=1){var _i=Jr[mi];if(!_i.disabled){Jr.splice(mi,1),pi=_i;break}}pi&&an(Jr,{type:"remove",values:[pi]})}for(var Xr=arguments.length,fi=new Array(Xr>1?Xr-1:0),wi=1;wi<Xr;wi++)fi[wi-1]=arguments[wi];if(Er&&(!Yr||!Lr.current)){var Ei;Yr&&(Lr.current=!0),(Ei=cr.current)===null||Ei===void 0||Ei.onKeyDown.apply(Ei,[br].concat(fi))}nn==null||nn.apply(void 0,[br].concat(fi))},ni=function(br){for(var Qr=arguments.length,Gr=new Array(Qr>1?Qr-1:0),Yr=1;Yr<Qr;Yr++)Gr[Yr-1]=arguments[Yr];if(Er){var Jr;(Jr=cr.current)===null||Jr===void 0||Jr.onKeyUp.apply(Jr,[br].concat(Gr))}br.key==="Enter"&&(Lr.current=!1),Zt==null||Zt.apply(void 0,[br].concat(Gr))},si=function(br){var Qr=dn.filter(function(Gr){return Gr!==br});an(Qr,{type:"remove",values:[br]})},qr=function(){Lr.current=!1},Hr=g.useRef(!1),di=function(){vn(!0),Ot||(xt&&!Hr.current&&xt.apply(void 0,arguments),vt.includes("focus")&&jn(!0)),Hr.current=!0},Ji=function(){pt.current=!0,vn(!1,function(){Hr.current=!1,pt.current=!1,jn(!1)}),!Ot&&(nr&&(St==="tags"?In(nr,{source:"submit"}):St==="multiple"&&In("",{source:"blur"})),Nt&&Nt.apply(void 0,arguments))},Ti=[];g.useEffect(function(){return function(){Ti.forEach(function(Cr){return clearTimeout(Cr)}),Ti.splice(0,Ti.length)}},[]);var Ki=function(br){var Qr,Gr=br.target,Yr=(Qr=bn.current)===null||Qr===void 0?void 0:Qr.getPopupElement();if(Yr&&Yr.contains(Gr)){var Jr=setTimeout(function(){var Xr=Ti.indexOf(Jr);if(Xr!==-1&&Ti.splice(Xr,1),Rn(),!wn&&!Yr.contains(document.activeElement)){var fi;(fi=Jn.current)===null||fi===void 0||fi.focus()}});Ti.push(Jr)}for(var pi=arguments.length,mi=new Array(pi>1?pi-1:0),_i=1;_i<pi;_i++)mi[_i-1]=arguments[_i];gn==null||gn.apply(void 0,[br].concat(mi))},Mi=g.useState({}),Oi=(0,B.Z)(Mi,2),zi=Oi[1];function yi(){zi({})}var Fi;dr&&(Fi=function(br){jn(br)}),Q(function(){var Cr;return[Wn.current,(Cr=bn.current)===null||Cr===void 0?void 0:Cr.getPopupElement()]},lr,jn,!!dr);var Di=g.useMemo(function(){return(0,ae.Z)((0,ae.Z)({},Ne),{},{notFoundContent:Ze,open:Er,triggerOpen:lr,id:mt,showSearch:Sn,multiple:mn,toggleOpen:jn})},[Ne,Ze,lr,Er,mt,Sn,mn,jn]),qi=!!Ln||tn,ui;qi&&(ui=g.createElement($,{className:p()("".concat(Mt,"-arrow"),(0,z.Z)({},"".concat(Mt,"-arrow-loading"),tn)),customizeIcon:Ln,customizeIconProps:{loading:tn,searchValue:nr,open:Er,focused:Vt,showSearch:Sn}}));var as=function(){var br;ft==null||ft(),(br=Jn.current)===null||br===void 0||br.focus(),an([],{type:"clear",values:dn}),Dr("",!1,!1)},Bi=le(Mt,as,dn,pn,Mn,Ot,nr,St),os=Bi.allowClear,ls=Bi.clearIcon,us=g.createElement(zn,{ref:cr}),ji=p()(Mt,bt,(0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)({},"".concat(Mt,"-focused"),Vt),"".concat(Mt,"-multiple"),mn),"".concat(Mt,"-single"),!mn),"".concat(Mt,"-allow-clear"),pn),"".concat(Mt,"-show-arrow"),qi),"".concat(Mt,"-disabled"),Ot),"".concat(Mt,"-loading"),tn),"".concat(Mt,"-open"),Er),"".concat(Mt,"-customize-input"),Xn),"".concat(Mt,"-show-search"),Sn)),ai=g.createElement(Qe,{ref:bn,disabled:Ot,prefixCls:Mt,visible:lr,popupElement:us,animation:Un,transitionName:ar,dropdownStyle:Me,dropdownClassName:Ie,direction:en,dropdownMatchSelectWidth:Te,dropdownRender:lt,dropdownAlign:gt,placement:_t,builtinPlacements:zt,getPopupContainer:Wt,empty:Jt,getTriggerDOMNode:function(br){return er.current||br},onPopupVisibleChange:Fi,onPopupMouseEnter:yi},dr?g.cloneElement(dr,{ref:xr}):g.createElement(Je,(0,f.Z)({},Ne,{domRef:er,prefixCls:Mt,inputElement:Xn,ref:Jn,id:mt,prefix:En,showSearch:Sn,autoClearSearchValue:Bn,mode:St,activeDescendantId:Zn,tagRender:Kt,values:dn,open:Er,onToggleOpen:jn,activeValue:Yn,searchValue:nr,onSearch:Dr,onSearchSubmit:$r,onRemove:si,tokenWithEnter:or,onInputBlur:qr}))),ei;return dr?ei=ai:ei=g.createElement("div",(0,f.Z)({className:ji},Fn,{ref:Wn,onMouseDown:Ki,onKeyDown:Fr,onKeyUp:ni,onFocus:di,onBlur:Ji}),g.createElement(qe,{visible:Vt&&!Er,values:dn}),ai,ui,os&&ls),g.createElement(F.Provider,{value:Di},ei)}),N=K,Le=function(){return null};Le.isSelectOptGroup=!0;var De=Le,Ae=function(){return null};Ae.isSelectOption=!0;var it=Ae,st=_(80547),Oe=_(2738),Et=_(6790);function jt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var wt=["disabled","title","children","style","className"];function Bt(Ne){return typeof Ne=="string"||typeof Ne=="number"}var se=function(Re,dt){var mt=H(),Mt=mt.prefixCls,bt=mt.id,Tt=mt.open,Kt=mt.multiple,en=mt.mode,At=mt.searchValue,dn=mt.toggleOpen,an=mt.notFoundContent,Jt=mt.onPopupScroll,kt=g.useContext(Ve),Ze=kt.maxCount,ft=kt.flattenOptions,St=kt.onActiveValue,Ot=kt.defaultActiveFirstOption,tn=kt.onSelect,et=kt.menuItemSelectedIcon,ln=kt.rawValues,xn=kt.fieldNames,Tn=kt.virtual,Cn=kt.direction,Yn=kt.listHeight,Dn=kt.listItemHeight,Zn=kt.optionRender,On="".concat(Mt,"-item"),Bn=(0,st.Z)(function(){return ft},[Tt,ft],function(It,vt){return vt[0]&&It[1]!==vt[1]}),In=g.useRef(null),yn=g.useMemo(function(){return Kt&&Se(Ze)&&(ln==null?void 0:ln.size)>=Ze},[Kt,Ze,ln==null?void 0:ln.size]),kn=function(vt){vt.preventDefault()},pn=function(vt){var xt;(xt=In.current)===null||xt===void 0||xt.scrollTo(typeof vt=="number"?{index:vt}:vt)},En=g.useCallback(function(It){return en==="combobox"?!1:ln.has(It)},[en,(0,ue.Z)(ln).toString(),ln.size]),Ln=function(vt){for(var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Nt=Bn.length,Zt=0;Zt<Nt;Zt+=1){var nn=(vt+Zt*xt+Nt)%Nt,gn=Bn[nn]||{},Kn=gn.group,mn=gn.data;if(!Kn&&!(mn!=null&&mn.disabled)&&(En(mn.value)||!yn))return nn}return-1},Mn=g.useState(function(){return Ln(0)}),zn=(0,B.Z)(Mn,2),Un=zn[0],ar=zn[1],Me=function(vt){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ar(vt);var Nt={source:xt?"keyboard":"mouse"},Zt=Bn[vt];if(!Zt){St(null,-1,Nt);return}St(Zt.value,vt,Nt)};(0,g.useEffect)(function(){Me(Ot!==!1?Ln(0):-1)},[Bn.length,At]);var Ie=g.useCallback(function(It){return en==="combobox"?String(It).toLowerCase()===At.toLowerCase():ln.has(It)},[en,At,(0,ue.Z)(ln).toString(),ln.size]);(0,g.useEffect)(function(){var It=setTimeout(function(){if(!Kt&&Tt&&ln.size===1){var xt=Array.from(ln)[0],Nt=Bn.findIndex(function(Zt){var nn=Zt.data;return At?String(nn.value).startsWith(At):nn.value===xt});Nt!==-1&&(Me(Nt),pn(Nt))}});if(Tt){var vt;(vt=In.current)===null||vt===void 0||vt.scrollTo(void 0)}return function(){return clearTimeout(It)}},[Tt,At]);var Te=function(vt){vt!==void 0&&tn(vt,{selected:!ln.has(vt)}),Kt||dn(!1)};if(g.useImperativeHandle(dt,function(){return{onKeyDown:function(vt){var xt=vt.which,Nt=vt.ctrlKey;switch(xt){case re.Z.N:case re.Z.P:case re.Z.UP:case re.Z.DOWN:{var Zt=0;if(xt===re.Z.UP?Zt=-1:xt===re.Z.DOWN?Zt=1:jt()&&Nt&&(xt===re.Z.N?Zt=1:xt===re.Z.P&&(Zt=-1)),Zt!==0){var nn=Ln(Un+Zt,Zt);pn(nn),Me(nn,!0)}break}case re.Z.TAB:case re.Z.ENTER:{var gn,Kn=Bn[Un];Kn&&!(Kn!=null&&(gn=Kn.data)!==null&&gn!==void 0&&gn.disabled)&&!yn?Te(Kn.value):Te(void 0),Tt&&vt.preventDefault();break}case re.Z.ESC:dn(!1),Tt&&vt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(vt){pn(vt)}}}),Bn.length===0)return g.createElement("div",{role:"listbox",id:"".concat(bt,"_list"),className:"".concat(On,"-empty"),onMouseDown:kn},an);var lt=Object.keys(xn).map(function(It){return xn[It]}),gt=function(vt){return vt.label};function _t(It,vt){var xt=It.group;return{role:xt?"presentation":"option",id:"".concat(bt,"_list_").concat(vt)}}var zt=function(vt){var xt=Bn[vt];if(!xt)return null;var Nt=xt.data||{},Zt=Nt.value,nn=xt.group,gn=(0,oe.Z)(Nt,!0),Kn=gt(xt);return xt?g.createElement("div",(0,f.Z)({"aria-label":typeof Kn=="string"&&!nn?Kn:null},gn,{key:vt},_t(xt,vt),{"aria-selected":Ie(Zt)}),Zt):null},Wt={role:"listbox",id:"".concat(bt,"_list")};return g.createElement(g.Fragment,null,Tn&&g.createElement("div",(0,f.Z)({},Wt,{style:{height:0,width:0,overflow:"hidden"}}),zt(Un-1),zt(Un),zt(Un+1)),g.createElement(Et.Z,{itemKey:"key",ref:In,data:Bn,height:Yn,itemHeight:Dn,fullHeight:!1,onMouseDown:kn,onScroll:Jt,virtual:Tn,direction:Cn,innerProps:Tn?null:Wt},function(It,vt){var xt=It.group,Nt=It.groupOption,Zt=It.data,nn=It.label,gn=It.value,Kn=Zt.key;if(xt){var mn,Sn=(mn=Zt.title)!==null&&mn!==void 0?mn:Bt(nn)?nn.toString():void 0;return g.createElement("div",{className:p()(On,"".concat(On,"-group"),Zt.className),title:Sn},nn!==void 0?nn:Kn)}var Fn=Zt.disabled,Nn=Zt.title,Vn=Zt.children,wn=Zt.style,Gn=Zt.className,Wn=(0,d.Z)(Zt,wt),er=(0,Oe.Z)(Wn,lt),bn=En(gn),Jn=Fn||!bn&&yn,cr="".concat(On,"-option"),pt=p()(On,cr,Gn,(0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)({},"".concat(cr,"-grouped"),Nt),"".concat(cr,"-active"),Un===vt&&!Jn),"".concat(cr,"-disabled"),Jn),"".concat(cr,"-selected"),bn)),Qt=gt(It),on=!et||typeof et=="function"||bn,Vt=typeof Qt=="number"?Qt:Qt||gn,vn=Bt(Vt)?Vt.toString():void 0;return Nn!==void 0&&(vn=Nn),g.createElement("div",(0,f.Z)({},(0,oe.Z)(er),Tn?{}:_t(It,vt),{"aria-selected":Ie(gn),className:pt,title:vn,onMouseMove:function(){Un===vt||Jn||Me(vt)},onClick:function(){Jn||Te(gn)},style:wn}),g.createElement("div",{className:"".concat(cr,"-content")},typeof Zn=="function"?Zn(It,{index:vt}):Vt),g.isValidElement(et)||bn,on&&g.createElement($,{className:"".concat(On,"-option-state"),customizeIcon:et,customizeIconProps:{value:gn,disabled:Jn,isSelected:bn}},bn?"\u2713":null))}))},ve=g.forwardRef(se),Ee=ve,k=function(Ne,Re){var dt=g.useRef({values:new Map,options:new Map}),mt=g.useMemo(function(){var bt=dt.current,Tt=bt.values,Kt=bt.options,en=Ne.map(function(an){if(an.label===void 0){var Jt;return(0,ae.Z)((0,ae.Z)({},an),{},{label:(Jt=Tt.get(an.value))===null||Jt===void 0?void 0:Jt.label})}return an}),At=new Map,dn=new Map;return en.forEach(function(an){At.set(an.value,an),dn.set(an.value,Re.get(an.value)||Kt.get(an.value))}),dt.current.values=At,dt.current.options=dn,en},[Ne,Re]),Mt=g.useCallback(function(bt){return Re.get(bt)||dt.current.options.get(bt)},[Re]);return[mt,Mt]};function Y(Ne,Re){return ie(Ne).join("").toUpperCase().includes(Re)}var he=function(Ne,Re,dt,mt,Mt){return g.useMemo(function(){if(!dt||mt===!1)return Ne;var bt=Re.options,Tt=Re.label,Kt=Re.value,en=[],At=typeof mt=="function",dn=dt.toUpperCase(),an=At?mt:function(kt,Ze){return Mt?Y(Ze[Mt],dn):Ze[bt]?Y(Ze[Tt!=="children"?Tt:"label"],dn):Y(Ze[Kt],dn)},Jt=At?function(kt){return fe(kt)}:function(kt){return kt};return Ne.forEach(function(kt){if(kt[bt]){var Ze=an(dt,Jt(kt));if(Ze)en.push(kt);else{var ft=kt[bt].filter(function(St){return an(dt,Jt(St))});ft.length&&en.push((0,ae.Z)((0,ae.Z)({},kt),{},(0,z.Z)({},bt,ft)))}return}an(dt,Jt(kt))&&en.push(kt)}),en},[Ne,mt,Mt,dt,Re])},ce=_(6551),xe=_(11592),Be=["children","value"],Xe=["children"];function ut(Ne){var Re=Ne,dt=Re.key,mt=Re.props,Mt=mt.children,bt=mt.value,Tt=(0,d.Z)(mt,Be);return(0,ae.Z)({key:dt,value:bt!==void 0?bt:dt,children:Mt},Tt)}function nt(Ne){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,xe.Z)(Ne).map(function(dt,mt){if(!g.isValidElement(dt)||!dt.type)return null;var Mt=dt,bt=Mt.type.isSelectOptGroup,Tt=Mt.key,Kt=Mt.props,en=Kt.children,At=(0,d.Z)(Kt,Xe);return Re||!bt?ut(dt):(0,ae.Z)((0,ae.Z)({key:"__RC_SELECT_GRP__".concat(Tt===null?mt:Tt,"__"),label:Tt},At),{},{options:nt(en)})}).filter(function(dt){return dt})}var Ue=function(Re,dt,mt,Mt,bt){return g.useMemo(function(){var Tt=Re,Kt=!Re;Kt&&(Tt=nt(dt));var en=new Map,At=new Map,dn=function(kt,Ze,ft){ft&&typeof ft=="string"&&kt.set(Ze[ft],Ze)},an=function Jt(kt){for(var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ft=0;ft<kt.length;ft+=1){var St=kt[ft];!St[mt.options]||Ze?(en.set(St[mt.value],St),dn(At,St,mt.label),dn(At,St,Mt),dn(At,St,bt)):Jt(St[mt.options],!0)}};return an(Tt),{options:Tt,valueOptions:en,labelOptions:At}},[Re,dt,mt,Mt,bt])},R=Ue;function U(Ne){var Re=g.useRef();Re.current=Ne;var dt=g.useCallback(function(){return Re.current.apply(Re,arguments)},[]);return dt}function S(Ne){var Re=Ne.mode,dt=Ne.options,mt=Ne.children,Mt=Ne.backfill,bt=Ne.allowClear,Tt=Ne.placeholder,Kt=Ne.getInputElement,en=Ne.showSearch,At=Ne.onSearch,dn=Ne.defaultOpen,an=Ne.autoFocus,Jt=Ne.labelInValue,kt=Ne.value,Ze=Ne.inputValue,ft=Ne.optionLabelProp,St=isMultiple(Re),Ot=en!==void 0?en:St||Re==="combobox",tn=dt||convertChildrenToData(mt);if(warning(Re!=="tags"||tn.every(function(Tn){return!Tn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Re==="tags"||Re==="combobox"){var et=tn.some(function(Tn){return Tn.options?Tn.options.some(function(Cn){return typeof("value"in Cn?Cn.value:Cn.key)=="number"}):typeof("value"in Tn?Tn.value:Tn.key)=="number"});warning(!et,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Re!=="combobox"||!ft,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Re==="combobox"||!Mt,"`backfill` only works with `combobox` mode."),warning(Re==="combobox"||!Kt,"`getInputElement` only work with `combobox` mode."),noteOnce(Re!=="combobox"||!Kt||!bt||!Tt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),At&&!Ot&&Re!=="combobox"&&Re!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!dn||an,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),kt!=null){var ln=toArray(kt);warning(!Jt||ln.every(function(Tn){return _typeof(Tn)==="object"&&("key"in Tn||"value"in Tn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!St||Array.isArray(kt),"`value` should be array when `mode` is `multiple` or `tags`")}if(mt){var xn=null;toNodeArray(mt).some(function(Tn){if(!React.isValidElement(Tn)||!Tn.type)return!1;var Cn=Tn,Yn=Cn.type;if(Yn.isSelectOption)return!1;if(Yn.isSelectOptGroup){var Dn=toNodeArray(Tn.props.children).every(function(Zn){return!React.isValidElement(Zn)||!Tn.type||Zn.type.isSelectOption?!0:(xn=Zn.type,!1)});return!Dn}return xn=Yn,!0}),xn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(xn.displayName||xn.name||xn,"`.")),warning(Ze===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ze(Ne,Re){if(Ne){var dt=function mt(Mt){for(var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tt=0;Tt<Mt.length;Tt++){var Kt=Mt[Tt];if(Kt[Re==null?void 0:Re.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!bt&&Array.isArray(Kt[Re==null?void 0:Re.options])&&mt(Kt[Re==null?void 0:Re.options],!0))break}};dt(Ne)}}var ke=null,Pe=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Ge=["inputValue"];function We(Ne){return!Ne||(0,_e.Z)(Ne)!=="object"}var ct=g.forwardRef(function(Ne,Re){var dt=Ne.id,mt=Ne.mode,Mt=Ne.prefixCls,bt=Mt===void 0?"rc-select":Mt,Tt=Ne.backfill,Kt=Ne.fieldNames,en=Ne.inputValue,At=Ne.searchValue,dn=Ne.onSearch,an=Ne.autoClearSearchValue,Jt=an===void 0?!0:an,kt=Ne.onSelect,Ze=Ne.onDeselect,ft=Ne.dropdownMatchSelectWidth,St=ft===void 0?!0:ft,Ot=Ne.filterOption,tn=Ne.filterSort,et=Ne.optionFilterProp,ln=Ne.optionLabelProp,xn=Ne.options,Tn=Ne.optionRender,Cn=Ne.children,Yn=Ne.defaultActiveFirstOption,Dn=Ne.menuItemSelectedIcon,Zn=Ne.virtual,On=Ne.direction,Bn=Ne.listHeight,In=Bn===void 0?200:Bn,yn=Ne.listItemHeight,kn=yn===void 0?20:yn,pn=Ne.labelRender,En=Ne.value,Ln=Ne.defaultValue,Mn=Ne.labelInValue,zn=Ne.onChange,Un=Ne.maxCount,ar=(0,d.Z)(Ne,Pe),Me=(0,ce.ZP)(dt),Ie=de(mt),Te=!!(!xn&&Cn),lt=g.useMemo(function(){return Ot===void 0&&mt==="combobox"?!1:Ot},[Ot,mt]),gt=g.useMemo(function(){return be(Kt,Te)},[JSON.stringify(Kt),Te]),_t=(0,ne.Z)("",{value:At!==void 0?At:en,postState:function(or){return or||""}}),zt=(0,B.Z)(_t,2),Wt=zt[0],It=zt[1],vt=R(xn,Cn,gt,et,ln),xt=vt.valueOptions,Nt=vt.labelOptions,Zt=vt.options,nn=g.useCallback(function(jn){var or=ie(jn);return or.map(function(ur){var fr,Sr,Dr,$r,Hn;if(We(ur))fr=ur;else{var ir;Dr=ur.key,Sr=ur.label,fr=(ir=ur.value)!==null&&ir!==void 0?ir:Dr}var rr=xt.get(fr);if(rr){var Ar;if(Sr===void 0&&(Sr=rr==null?void 0:rr[ln||gt.label]),Dr===void 0&&(Dr=(Ar=rr==null?void 0:rr.key)!==null&&Ar!==void 0?Ar:fr),$r=rr==null?void 0:rr.disabled,Hn=rr==null?void 0:rr.title,0)var Lr}return{label:Sr,value:fr,key:Dr,disabled:$r,title:Hn}})},[gt,ln,xt]),gn=(0,ne.Z)(Ln,{value:En}),Kn=(0,B.Z)(gn,2),mn=Kn[0],Sn=Kn[1],Fn=g.useMemo(function(){var jn,or=Ie&&mn===null?[]:mn,ur=nn(or);return mt==="combobox"&&O((jn=ur[0])===null||jn===void 0?void 0:jn.value)?[]:ur},[mn,nn,mt,Ie]),Nn=k(Fn,xt),Vn=(0,B.Z)(Nn,2),wn=Vn[0],Gn=Vn[1],Wn=g.useMemo(function(){if(!mt&&wn.length===1){var jn=wn[0];if(jn.value===null&&(jn.label===null||jn.label===void 0))return[]}return wn.map(function(or){var ur;return(0,ae.Z)((0,ae.Z)({},or),{},{label:(ur=typeof pn=="function"?pn(or):or.label)!==null&&ur!==void 0?ur:or.value})})},[mt,wn,pn]),er=g.useMemo(function(){return new Set(wn.map(function(jn){return jn.value}))},[wn]);g.useEffect(function(){if(mt==="combobox"){var jn,or=(jn=wn[0])===null||jn===void 0?void 0:jn.value;It(v(or)?String(or):"")}},[wn]);var bn=U(function(jn,or){var ur=or!=null?or:jn;return(0,z.Z)((0,z.Z)({},gt.value,jn),gt.label,ur)}),Jn=g.useMemo(function(){if(mt!=="tags")return Zt;var jn=(0,ue.Z)(Zt),or=function(fr){return xt.has(fr)};return(0,ue.Z)(wn).sort(function(ur,fr){return ur.value<fr.value?-1:1}).forEach(function(ur){var fr=ur.value;or(fr)||jn.push(bn(fr,ur.label))}),jn},[bn,Zt,xt,wn,mt]),cr=he(Jn,gt,Wt,lt,et),pt=g.useMemo(function(){return mt!=="tags"||!Wt||cr.some(function(jn){return jn[et||"value"]===Wt})||cr.some(function(jn){return jn[gt.value]===Wt})?cr:[bn(Wt)].concat((0,ue.Z)(cr))},[bn,et,mt,cr,Wt,gt]),Qt=function jn(or){var ur=(0,ue.Z)(or).sort(function(fr,Sr){return tn(fr,Sr,{searchValue:Wt})});return ur.map(function(fr){return Array.isArray(fr.options)?(0,ae.Z)((0,ae.Z)({},fr),{},{options:fr.options.length>0?jn(fr.options):fr.options}):fr})},on=g.useMemo(function(){return tn?Qt(pt):pt},[pt,tn,Wt]),Vt=g.useMemo(function(){return W(on,{fieldNames:gt,childrenAsData:Te})},[on,gt,Te]),vn=function(or){var ur=nn(or);if(Sn(ur),zn&&(ur.length!==wn.length||ur.some(function(Dr,$r){var Hn;return((Hn=wn[$r])===null||Hn===void 0?void 0:Hn.value)!==(Dr==null?void 0:Dr.value)}))){var fr=Mn?ur:ur.map(function(Dr){return Dr.value}),Sr=ur.map(function(Dr){return fe(Gn(Dr.value))});zn(Ie?fr:fr[0],Ie?Sr:Sr[0])}},Rn=g.useState(null),nr=(0,B.Z)(Rn,2),Xn=nr[0],dr=nr[1],xr=g.useState(0),Ur=(0,B.Z)(xr,2),Nr=Ur[0],zr=Ur[1],Vr=Yn!==void 0?Yn:mt!=="combobox",Zr=g.useCallback(function(jn,or){var ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},fr=ur.source,Sr=fr===void 0?"keyboard":fr;zr(or),Tt&&mt==="combobox"&&jn!==null&&Sr==="keyboard"&&dr(String(jn))},[Tt,mt]),yr=function(or,ur,fr){var Sr=function(){var si,qr=Gn(or);return[Mn?{label:qr==null?void 0:qr[gt.label],value:or,key:(si=qr==null?void 0:qr.key)!==null&&si!==void 0?si:or}:or,fe(qr)]};if(ur&&kt){var Dr=Sr(),$r=(0,B.Z)(Dr,2),Hn=$r[0],ir=$r[1];kt(Hn,ir)}else if(!ur&&Ze&&fr!=="clear"){var rr=Sr(),Ar=(0,B.Z)(rr,2),Lr=Ar[0],Fr=Ar[1];Ze(Lr,Fr)}},Tr=U(function(jn,or){var ur,fr=Ie?or.selected:!0;fr?ur=Ie?[].concat((0,ue.Z)(wn),[jn]):[jn]:ur=wn.filter(function(Sr){return Sr.value!==jn}),vn(ur),yr(jn,fr),mt==="combobox"?dr(""):(!de||Jt)&&(It(""),dr(""))}),Wr=function(or,ur){vn(or);var fr=ur.type,Sr=ur.values;(fr==="remove"||fr==="clear")&&Sr.forEach(function(Dr){yr(Dr.value,!1,fr)})},Er=function(or,ur){if(It(or),dr(null),ur.source==="submit"){var fr=(or||"").trim();if(fr){var Sr=Array.from(new Set([].concat((0,ue.Z)(er),[fr])));vn(Sr),yr(fr,!0),It("")}return}ur.source!=="blur"&&(mt==="combobox"&&vn(or),dn==null||dn(or))},_r=function(or){var ur=or;mt!=="tags"&&(ur=or.map(function(Sr){var Dr=Nt.get(Sr);return Dr==null?void 0:Dr.value}).filter(function(Sr){return Sr!==void 0}));var fr=Array.from(new Set([].concat((0,ue.Z)(er),(0,ue.Z)(ur))));vn(fr),fr.forEach(function(Sr){yr(Sr,!0)})},lr=g.useMemo(function(){var jn=Zn!==!1&&St!==!1;return(0,ae.Z)((0,ae.Z)({},vt),{},{flattenOptions:Vt,onActiveValue:Zr,defaultActiveFirstOption:Vr,onSelect:Tr,menuItemSelectedIcon:Dn,rawValues:er,fieldNames:gt,virtual:jn,direction:On,listHeight:In,listItemHeight:kn,childrenAsData:Te,maxCount:Un,optionRender:Tn})},[Un,vt,Vt,Zr,Vr,Tr,Dn,er,gt,Zn,St,On,In,kn,Te,Tn]);return g.createElement(Ve.Provider,{value:lr},g.createElement(N,(0,f.Z)({},ar,{id:Me,prefixCls:bt,ref:Re,omitDomProps:Ge,mode:mt,displayValues:Wn,onDisplayValuesChange:Wr,direction:On,searchValue:Wt,onSearch:Er,autoClearSearchValue:Jt,onSearchSplit:_r,dropdownMatchSelectWidth:St,OptionList:Ee,emptyOptions:!Vt.length,activeValue:Xn,activeDescendantId:"".concat(Me,"_list_").concat(Nr)})))}),Lt=ct;Lt.Option=it,Lt.OptGroup=De;var Pt=Lt,cn=Pt},86351:function(Pn,Gt,_){"use strict";_.d(Gt,{R:function(){return ue},w:function(){return f}});var f={},ue="rc-table-internal-hook"},97347:function(Pn,Gt,_){"use strict";_.d(Gt,{L:function(){return j},Z:function(){return D}});var f=_(11913),ue=_(74430),z=_(3300),ae=_(34666),B=_(27247),d=_(43079),_e=_(11592),ne=_(48736),o=_(59301),g=_(86351),A=_(54451);function p(w){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Q=="number"?Q:Q.endsWith("%")?w*parseFloat(Q)/100:null}function E(w,Q,re){return o.useMemo(function(){if(Q&&Q>0){var ee=0,oe=0;w.forEach(function(ie){var X=p(Q,ie.width);X?ee+=X:oe+=1});var ge=Math.max(Q,re),me=Math.max(ge-ee,oe),at=oe,Z=me/oe,T=0,P=w.map(function(ie){var X=(0,B.Z)({},ie),y=p(Q,X.width);if(y)X.width=y;else{var v=Math.floor(Z);X.width=at===1?me:v,me-=v,at-=1}return T+=X.width,X});if(T<ge){var G=ge/T;me=ge,P.forEach(function(ie,X){var y=Math.floor(ie.width*G);ie.width=X===P.length-1?me:y,me-=y})}return[P,Math.max(T,ge)]}return[w,Q]},[w,Q,re])}var b=["children"],I=["fixed"];function j(w){return(0,_e.Z)(w).filter(function(Q){return o.isValidElement(Q)}).map(function(Q){var re=Q.key,ee=Q.props,oe=ee.children,ge=(0,d.Z)(ee,b),me=(0,B.Z)({key:re},ge);return oe&&(me.children=j(oe)),me})}function $(w){return w.filter(function(Q){return Q&&(0,ae.Z)(Q)==="object"&&!Q.hidden}).map(function(Q){var re=Q.children;return re&&re.length>0?(0,B.Z)((0,B.Z)({},Q),{},{children:$(re)}):Q})}function le(w){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return w.filter(function(re){return re&&(0,ae.Z)(re)==="object"}).reduce(function(re,ee,oe){var ge=ee.fixed,me=ge===!0?"left":ge,at="".concat(Q,"-").concat(oe),Z=ee.children;return Z&&Z.length>0?[].concat((0,z.Z)(re),(0,z.Z)(le(Z,at).map(function(T){return(0,B.Z)({fixed:me},T)}))):[].concat((0,z.Z)(re),[(0,B.Z)((0,B.Z)({key:at},ee),{},{fixed:me})])},[])}function F(w){return w.map(function(Q){var re=Q.fixed,ee=(0,d.Z)(Q,I),oe=re;return re==="left"?oe="right":re==="right"&&(oe="left"),(0,B.Z)({fixed:oe},ee)})}function H(w,Q){var re=w.prefixCls,ee=w.columns,oe=w.children,ge=w.expandable,me=w.expandedKeys,at=w.columnTitle,Z=w.getRowKey,T=w.onTriggerExpand,P=w.expandIcon,G=w.rowExpandable,ie=w.expandIconColumnIndex,X=w.direction,y=w.expandRowByClick,v=w.columnWidth,O=w.fixed,pe=w.scrollWidth,He=w.clientWidth,tt=o.useMemo(function(){var Je=ee||j(oe)||[];return $(Je.slice())},[ee,oe]),Ct=o.useMemo(function(){if(ge){var Je=tt.slice();if(!Je.includes(g.w)){var yt=ie||0;yt>=0&&(yt||O==="left"||!O)&&Je.splice(yt,0,g.w),O==="right"&&Je.splice(tt.length,0,g.w)}var Fe=Je.indexOf(g.w);Je=Je.filter(function(Qe,q){return Qe!==g.w||q===Fe});var we=tt[Fe],V;O?V=O:V=we?we.fixed:null;var je=(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},A.v,{className:"".concat(re,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",at),"fixed",V),"className","".concat(re,"-row-expand-icon-cell")),"width",v),"render",function(q,M,Se){var be=Z(M,Se),W=me.has(be),fe=G?G(M):!0,ye=P({prefixCls:re,expanded:W,expandable:fe,record:M,onExpand:T});return y?o.createElement("span",{onClick:function(Ve){return Ve.stopPropagation()}},ye):ye});return Je.map(function(Qe){return Qe===g.w?je:Qe})}return tt.filter(function(Qe){return Qe!==g.w})},[ge,tt,Z,me,P,X]),Rt=o.useMemo(function(){var Je=Ct;return Q&&(Je=Q(Je)),Je.length||(Je=[{render:function(){return null}}]),Je},[Q,Ct,X]),Ft=o.useMemo(function(){return X==="rtl"?F(le(Rt)):le(Rt)},[Rt,X,pe]),Ht=o.useMemo(function(){for(var Je=-1,yt=Ft.length-1;yt>=0;yt-=1){var Fe=Ft[yt].fixed;if(Fe==="left"||Fe===!0){Je=yt;break}}if(Je>=0)for(var we=0;we<=Je;we+=1){var V=Ft[we].fixed;if(V!=="left"&&V!==!0)return!0}var je=Ft.findIndex(function(M){var Se=M.fixed;return Se==="right"});if(je>=0)for(var Qe=je;Qe<Ft.length;Qe+=1){var q=Ft[Qe].fixed;if(q!=="right")return!0}return!1},[Ft]),Ke=E(Ft,pe,He),qt=(0,f.Z)(Ke,2),Dt=qt[0],sn=qt[1];return[Rt,Dt,sn,Ht]}var D=H},4030:function(Pn,Gt,_){"use strict";_.d(Gt,{w2:function(){return f.w},vP:function(){return Bt.v},RQ:function(){return f.R},ER:function(){return be},Q$:function(){return Ot},TN:function(){return zn}});var f=_(86351),ue=_(11913),z=_(6089),ae=_(34280),B=_(13697),d=_(59301),_e=_(4676);function ne(Me){var Ie=d.createContext(void 0),Te=function(gt){var _t=gt.value,zt=gt.children,Wt=d.useRef(_t);Wt.current=_t;var It=d.useState(function(){return{getValue:function(){return Wt.current},listeners:new Set}}),vt=(0,ue.Z)(It,1),xt=vt[0];return(0,ae.Z)(function(){(0,_e.unstable_batchedUpdates)(function(){xt.listeners.forEach(function(Nt){Nt(_t)})})},[_t]),d.createElement(Ie.Provider,{value:xt},zt)};return{Context:Ie,Provider:Te,defaultValue:Me}}function o(Me,Ie){var Te=(0,z.Z)(typeof Ie=="function"?Ie:function(Nt){if(Ie===void 0)return Nt;if(!Array.isArray(Ie))return Nt[Ie];var Zt={};return Ie.forEach(function(nn){Zt[nn]=Nt[nn]}),Zt}),lt=d.useContext(Me==null?void 0:Me.Context),gt=lt||{},_t=gt.listeners,zt=gt.getValue,Wt=d.useRef();Wt.current=Te(lt?zt():Me==null?void 0:Me.defaultValue);var It=d.useState({}),vt=(0,ue.Z)(It,2),xt=vt[1];return(0,ae.Z)(function(){if(!lt)return;function Nt(Zt){var nn=Te(Zt);(0,B.Z)(Wt.current,nn,!0)||xt({})}return _t.add(Nt),function(){_t.delete(Nt)}},[lt]),Wt.current}var g=_(32855),A=_(8654);function p(){var Me=d.createContext(null);function Ie(){return d.useContext(Me)}function Te(gt,_t){var zt=(0,A.Yr)(gt),Wt=function(vt,xt){var Nt=zt?{ref:xt}:{},Zt=d.useRef(0),nn=d.useRef(vt),gn=Ie();return gn!==null?d.createElement(gt,(0,g.Z)({},vt,Nt)):((!_t||_t(nn.current,vt))&&(Zt.current+=1),nn.current=vt,d.createElement(Me.Provider,{value:Zt.current},d.createElement(gt,(0,g.Z)({},vt,Nt))))};return zt?d.forwardRef(Wt):Wt}function lt(gt,_t){var zt=(0,A.Yr)(gt),Wt=function(vt,xt){var Nt=zt?{ref:xt}:{};return Ie(),d.createElement(gt,(0,g.Z)({},vt,Nt))};return zt?d.memo(d.forwardRef(Wt),_t):d.memo(Wt,_t)}return{makeImmutable:Te,responseImmutable:lt,useImmutableMark:Ie}}var E=p(),b=E.makeImmutable,I=E.responseImmutable,j=E.useImmutableMark,$=p(),le=$.makeImmutable,F=$.responseImmutable,H=$.useImmutableMark,D=ne(),w=D;function Q(Me,Ie){var Te=React.useRef(0);Te.current+=1;var lt=React.useRef(Me),gt=[];Object.keys(Me||{}).map(function(zt){var Wt;(Me==null?void 0:Me[zt])!==((Wt=lt.current)===null||Wt===void 0?void 0:Wt[zt])&&gt.push(zt)}),lt.current=Me;var _t=React.useRef([]);return gt.length&&(_t.current=gt),React.useDebugValue(Te.current),React.useDebugValue(_t.current.join(", ")),Ie&&console.log("".concat(Ie,":"),Te.current,_t.current),Te.current}var re=null,ee=null,oe=_(34666),ge=_(27247),me=_(74430),at=_(92310),Z=_.n(at),T=_(80547),P=_(97938),G=_(48736),ie=d.createContext({renderWithProps:!1}),X=ie,y="RC_TABLE_KEY";function v(Me){return Me==null?[]:Array.isArray(Me)?Me:[Me]}function O(Me){var Ie=[],Te={};return Me.forEach(function(lt){for(var gt=lt||{},_t=gt.key,zt=gt.dataIndex,Wt=_t||v(zt).join("-")||y;Te[Wt];)Wt="".concat(Wt,"_next");Te[Wt]=!0,Ie.push(Wt)}),Ie}function pe(Me){return Me!=null}function He(Me){return typeof Me=="number"&&!Number.isNaN(Me)}function tt(Me){return Me&&(0,oe.Z)(Me)==="object"&&!Array.isArray(Me)&&!d.isValidElement(Me)}function Ct(Me,Ie,Te,lt,gt,_t){var zt=d.useContext(X),Wt=H(),It=(0,T.Z)(function(){if(pe(lt))return[lt];var vt=Ie==null||Ie===""?[]:Array.isArray(Ie)?Ie:[Ie],xt=(0,P.Z)(Me,vt),Nt=xt,Zt=void 0;if(gt){var nn=gt(xt,Me,Te);tt(nn)?(Nt=nn.children,Zt=nn.props,zt.renderWithProps=!0):Nt=nn}return[Nt,Zt]},[Wt,Me,lt,Ie,gt,Te],function(vt,xt){if(_t){var Nt=(0,ue.Z)(vt,2),Zt=Nt[1],nn=(0,ue.Z)(xt,2),gn=nn[1];return _t(gn,Zt)}return zt.renderWithProps?!0:!(0,B.Z)(vt,xt,!0)});return It}function Rt(Me,Ie,Te,lt){var gt=Me+Ie-1;return Me<=lt&&gt>=Te}function Ft(Me,Ie){return o(w,function(Te){var lt=Rt(Me,Ie||1,Te.hoverStartRow,Te.hoverEndRow);return[lt,Te.onHover]})}var Ht=_(70425),Ke=function(Ie){var Te=Ie.ellipsis,lt=Ie.rowType,gt=Ie.children,_t,zt=Te===!0?{showTitle:!0}:Te;return zt&&(zt.showTitle||lt==="header")&&(typeof gt=="string"||typeof gt=="number"?_t=gt.toString():d.isValidElement(gt)&&typeof gt.props.children=="string"&&(_t=gt.props.children)),_t};function qt(Me){var Ie,Te,lt,gt,_t,zt,Wt,It,vt=Me.component,xt=Me.children,Nt=Me.ellipsis,Zt=Me.scope,nn=Me.prefixCls,gn=Me.className,Kn=Me.align,mn=Me.record,Sn=Me.render,Fn=Me.dataIndex,Nn=Me.renderIndex,Vn=Me.shouldCellUpdate,wn=Me.index,Gn=Me.rowType,Wn=Me.colSpan,er=Me.rowSpan,bn=Me.fixLeft,Jn=Me.fixRight,cr=Me.firstFixLeft,pt=Me.lastFixLeft,Qt=Me.firstFixRight,on=Me.lastFixRight,Vt=Me.appendNode,vn=Me.additionalProps,Rn=vn===void 0?{}:vn,nr=Me.isSticky,Xn="".concat(nn,"-cell"),dr=o(w,["supportSticky","allColumnsFixedLeft","rowHoverable"]),xr=dr.supportSticky,Ur=dr.allColumnsFixedLeft,Nr=dr.rowHoverable,zr=Ct(mn,Fn,Nn,xt,Sn,Vn),Vr=(0,ue.Z)(zr,2),Zr=Vr[0],yr=Vr[1],Tr={},Wr=typeof bn=="number"&&xr,Er=typeof Jn=="number"&&xr;Wr&&(Tr.position="sticky",Tr.left=bn),Er&&(Tr.position="sticky",Tr.right=Jn);var _r=(Ie=(Te=(lt=yr==null?void 0:yr.colSpan)!==null&&lt!==void 0?lt:Rn.colSpan)!==null&&Te!==void 0?Te:Wn)!==null&&Ie!==void 0?Ie:1,lr=(gt=(_t=(zt=yr==null?void 0:yr.rowSpan)!==null&&zt!==void 0?zt:Rn.rowSpan)!==null&&_t!==void 0?_t:er)!==null&&gt!==void 0?gt:1,jn=Ft(wn,lr),or=(0,ue.Z)(jn,2),ur=or[0],fr=or[1],Sr=(0,Ht.zX)(function(Lr){var Fr;mn&&fr(wn,wn+lr-1),Rn==null||(Fr=Rn.onMouseEnter)===null||Fr===void 0||Fr.call(Rn,Lr)}),Dr=(0,Ht.zX)(function(Lr){var Fr;mn&&fr(-1,-1),Rn==null||(Fr=Rn.onMouseLeave)===null||Fr===void 0||Fr.call(Rn,Lr)});if(_r===0||lr===0)return null;var $r=(Wt=Rn.title)!==null&&Wt!==void 0?Wt:Ke({rowType:Gn,ellipsis:Nt,children:Zr}),Hn=Z()(Xn,gn,(It={},(0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)(It,"".concat(Xn,"-fix-left"),Wr&&xr),"".concat(Xn,"-fix-left-first"),cr&&xr),"".concat(Xn,"-fix-left-last"),pt&&xr),"".concat(Xn,"-fix-left-all"),pt&&Ur&&xr),"".concat(Xn,"-fix-right"),Er&&xr),"".concat(Xn,"-fix-right-first"),Qt&&xr),"".concat(Xn,"-fix-right-last"),on&&xr),"".concat(Xn,"-ellipsis"),Nt),"".concat(Xn,"-with-append"),Vt),"".concat(Xn,"-fix-sticky"),(Wr||Er)&&nr&&xr),(0,me.Z)(It,"".concat(Xn,"-row-hover"),!yr&&ur)),Rn.className,yr==null?void 0:yr.className),ir={};Kn&&(ir.textAlign=Kn);var rr=(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},yr==null?void 0:yr.style),Tr),ir),Rn.style),Ar=Zr;return(0,oe.Z)(Ar)==="object"&&!Array.isArray(Ar)&&!d.isValidElement(Ar)&&(Ar=null),Nt&&(pt||Qt)&&(Ar=d.createElement("span",{className:"".concat(Xn,"-content")},Ar)),d.createElement(vt,(0,g.Z)({},yr,Rn,{className:Hn,style:rr,title:$r,scope:Zt,onMouseEnter:Nr?Sr:void 0,onMouseLeave:Nr?Dr:void 0,colSpan:_r!==1?_r:null,rowSpan:lr!==1?lr:null}),Vt,Ar)}var Dt=d.memo(qt);function sn(Me,Ie,Te,lt,gt){var _t=Te[Me]||{},zt=Te[Ie]||{},Wt,It;_t.fixed==="left"?Wt=lt.left[gt==="rtl"?Ie:Me]:zt.fixed==="right"&&(It=lt.right[gt==="rtl"?Me:Ie]);var vt=!1,xt=!1,Nt=!1,Zt=!1,nn=Te[Ie+1],gn=Te[Me-1],Kn=nn&&!nn.fixed||gn&&!gn.fixed||Te.every(function(Vn){return Vn.fixed==="left"});if(gt==="rtl"){if(Wt!==void 0){var mn=gn&&gn.fixed==="left";Zt=!mn&&Kn}else if(It!==void 0){var Sn=nn&&nn.fixed==="right";Nt=!Sn&&Kn}}else if(Wt!==void 0){var Fn=nn&&nn.fixed==="left";vt=!Fn&&Kn}else if(It!==void 0){var Nn=gn&&gn.fixed==="right";xt=!Nn&&Kn}return{fixLeft:Wt,fixRight:It,lastFixLeft:vt,firstFixRight:xt,lastFixRight:Nt,firstFixLeft:Zt,isSticky:lt.isSticky}}var Je=d.createContext({}),yt=Je;function Fe(Me){var Ie=Me.className,Te=Me.index,lt=Me.children,gt=Me.colSpan,_t=gt===void 0?1:gt,zt=Me.rowSpan,Wt=Me.align,It=o(w,["prefixCls","direction"]),vt=It.prefixCls,xt=It.direction,Nt=d.useContext(yt),Zt=Nt.scrollColumnIndex,nn=Nt.stickyOffsets,gn=Nt.flattenColumns,Kn=Te+_t-1,mn=Kn+1===Zt?_t+1:_t,Sn=sn(Te,Te+mn-1,gn,nn,xt);return d.createElement(Dt,(0,g.Z)({className:Ie,index:Te,component:"td",prefixCls:vt,record:null,dataIndex:null,align:Wt,colSpan:mn,rowSpan:zt,render:function(){return lt}},Sn))}var we=_(43079),V=["children"];function je(Me){var Ie=Me.children,Te=(0,we.Z)(Me,V);return d.createElement("tr",Te,Ie)}function Qe(Me){var Ie=Me.children;return Ie}Qe.Row=je,Qe.Cell=Fe;var q=Qe;function M(Me){var Ie=Me.children,Te=Me.stickyOffsets,lt=Me.flattenColumns,gt=o(w,"prefixCls"),_t=lt.length-1,zt=lt[_t],Wt=d.useMemo(function(){return{stickyOffsets:Te,flattenColumns:lt,scrollColumnIndex:zt!=null&&zt.scrollbar?_t:null}},[zt,lt,_t,Te]);return d.createElement(yt.Provider,{value:Wt},d.createElement("tfoot",{className:"".concat(gt,"-summary")},Ie))}var Se=F(M),be=q,W=_(29301),fe=_(24514),ye=_(75152),$e=_(26112);function Ve(Me,Ie,Te,lt,gt,_t,zt){Me.push({record:Ie,indent:Te,index:zt});var Wt=_t(Ie),It=gt==null?void 0:gt.has(Wt);if(Ie&&Array.isArray(Ie[lt])&&It)for(var vt=0;vt<Ie[lt].length;vt+=1)Ve(Me,Ie[lt][vt],Te+1,lt,gt,_t,vt)}function qe(Me,Ie,Te,lt){var gt=d.useMemo(function(){if(Te!=null&&Te.size){for(var _t=[],zt=0;zt<(Me==null?void 0:Me.length);zt+=1){var Wt=Me[zt];Ve(_t,Wt,0,Ie,Te,lt,zt)}return _t}return Me==null?void 0:Me.map(function(It,vt){return{record:It,indent:0,index:vt}})},[Me,Ie,Te,lt]);return gt}function Ye(Me,Ie,Te,lt){var gt=o(w,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),_t=gt.flattenColumns,zt=gt.expandableType,Wt=gt.expandedKeys,It=gt.childrenColumnName,vt=gt.onTriggerExpand,xt=gt.rowExpandable,Nt=gt.onRow,Zt=gt.expandRowByClick,nn=gt.rowClassName,gn=zt==="nest",Kn=zt==="row"&&(!xt||xt(Me)),mn=Kn||gn,Sn=Wt&&Wt.has(Ie),Fn=It&&Me&&Me[It],Nn=(0,Ht.zX)(vt),Vn=Nt==null?void 0:Nt(Me,Te),wn=Vn==null?void 0:Vn.onClick,Gn=function(Jn){Zt&&mn&&vt(Me,Jn);for(var cr=arguments.length,pt=new Array(cr>1?cr-1:0),Qt=1;Qt<cr;Qt++)pt[Qt-1]=arguments[Qt];wn==null||wn.apply(void 0,[Jn].concat(pt))},Wn;typeof nn=="string"?Wn=nn:typeof nn=="function"&&(Wn=nn(Me,Te,lt));var er=O(_t);return(0,ge.Z)((0,ge.Z)({},gt),{},{columnsKey:er,nestExpandable:gn,expanded:Sn,hasNestChildren:Fn,record:Me,onTriggerExpand:Nn,rowSupportExpand:Kn,expandable:mn,rowProps:(0,ge.Z)((0,ge.Z)({},Vn),{},{className:Z()(Wn,Vn==null?void 0:Vn.className),onClick:Gn})})}function ot(Me){var Ie=Me.prefixCls,Te=Me.children,lt=Me.component,gt=Me.cellComponent,_t=Me.className,zt=Me.expanded,Wt=Me.colSpan,It=Me.isEmpty,vt=o(w,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),xt=vt.scrollbarSize,Nt=vt.fixHeader,Zt=vt.fixColumn,nn=vt.componentWidth,gn=vt.horizonScroll,Kn=Te;return(It?gn&&nn:Zt)&&(Kn=d.createElement("div",{style:{width:nn-(Nt&&!It?xt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ie,"-expanded-row-fixed")},Kn)),d.createElement(lt,{className:_t,style:{display:zt?null:"none"}},d.createElement(Dt,{component:gt,prefixCls:Ie,colSpan:Wt},Kn))}var de=ot;function K(Me){var Ie=Me.prefixCls,Te=Me.record,lt=Me.onExpand,gt=Me.expanded,_t=Me.expandable,zt="".concat(Ie,"-row-expand-icon");if(!_t)return d.createElement("span",{className:Z()(zt,"".concat(Ie,"-row-spaced"))});var Wt=function(vt){lt(Te,vt),vt.stopPropagation()};return d.createElement("span",{className:Z()(zt,(0,me.Z)((0,me.Z)({},"".concat(Ie,"-row-expanded"),gt),"".concat(Ie,"-row-collapsed"),!gt)),onClick:Wt})}function N(Me,Ie,Te){var lt=[];function gt(_t){(_t||[]).forEach(function(zt,Wt){lt.push(Ie(zt,Wt)),gt(zt[Te])})}return gt(Me),lt}function Le(Me,Ie,Te,lt){return typeof Me=="string"?Me:typeof Me=="function"?Me(Ie,Te,lt):""}function De(Me,Ie,Te,lt,gt){var _t=Me.record,zt=Me.prefixCls,Wt=Me.columnsKey,It=Me.fixedInfoList,vt=Me.expandIconColumnIndex,xt=Me.nestExpandable,Nt=Me.indentSize,Zt=Me.expandIcon,nn=Me.expanded,gn=Me.hasNestChildren,Kn=Me.onTriggerExpand,mn=Wt[Te],Sn=It[Te],Fn;Te===(vt||0)&&xt&&(Fn=d.createElement(d.Fragment,null,d.createElement("span",{style:{paddingLeft:"".concat(Nt*lt,"px")},className:"".concat(zt,"-row-indent indent-level-").concat(lt)}),Zt({prefixCls:zt,expanded:nn,expandable:gn,record:_t,onExpand:Kn})));var Nn;return Ie.onCell&&(Nn=Ie.onCell(_t,gt)),{key:mn,fixedInfo:Sn,appendCellNode:Fn,additionalCellProps:Nn||{}}}function Ae(Me){var Ie=Me.className,Te=Me.style,lt=Me.record,gt=Me.index,_t=Me.renderIndex,zt=Me.rowKey,Wt=Me.indent,It=Wt===void 0?0:Wt,vt=Me.rowComponent,xt=Me.cellComponent,Nt=Me.scopeCellComponent,Zt=Ye(lt,zt,gt,It),nn=Zt.prefixCls,gn=Zt.flattenColumns,Kn=Zt.expandedRowClassName,mn=Zt.expandedRowRender,Sn=Zt.rowProps,Fn=Zt.expanded,Nn=Zt.rowSupportExpand,Vn=d.useRef(!1);Vn.current||(Vn.current=Fn);var wn=Le(Kn,lt,gt,It),Gn=d.createElement(vt,(0,g.Z)({},Sn,{"data-row-key":zt,className:Z()(Ie,"".concat(nn,"-row"),"".concat(nn,"-row-level-").concat(It),Sn==null?void 0:Sn.className,(0,me.Z)({},wn,It>=1)),style:(0,ge.Z)((0,ge.Z)({},Te),Sn==null?void 0:Sn.style)}),gn.map(function(bn,Jn){var cr=bn.render,pt=bn.dataIndex,Qt=bn.className,on=De(Zt,bn,Jn,It,gt),Vt=on.key,vn=on.fixedInfo,Rn=on.appendCellNode,nr=on.additionalCellProps;return d.createElement(Dt,(0,g.Z)({className:Qt,ellipsis:bn.ellipsis,align:bn.align,scope:bn.rowScope,component:bn.rowScope?Nt:xt,prefixCls:nn,key:Vt,record:lt,index:gt,renderIndex:_t,dataIndex:pt,render:cr,shouldCellUpdate:bn.shouldCellUpdate},vn,{appendNode:Rn,additionalProps:nr}))})),Wn;if(Nn&&(Vn.current||Fn)){var er=mn(lt,gt,It+1,Fn);Wn=d.createElement(de,{expanded:Fn,className:Z()("".concat(nn,"-expanded-row"),"".concat(nn,"-expanded-row-level-").concat(It+1),wn),prefixCls:nn,component:vt,cellComponent:xt,colSpan:gn.length,isEmpty:!1},er)}return d.createElement(d.Fragment,null,Gn,Wn)}var it=F(Ae);function st(Me){var Ie=Me.columnKey,Te=Me.onColumnResize,lt=d.useRef();return(0,ae.Z)(function(){lt.current&&Te(Ie,lt.current.offsetWidth)},[]),d.createElement(W.Z,{data:Ie},d.createElement("td",{ref:lt,style:{padding:0,border:0,height:0}},d.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var Oe=_(29194);function Et(Me){var Ie=Me.prefixCls,Te=Me.columnsKey,lt=Me.onColumnResize,gt=d.useRef(null);return d.createElement("tr",{"aria-hidden":"true",className:"".concat(Ie,"-measure-row"),style:{height:0,fontSize:0},ref:gt},d.createElement(W.Z.Collection,{onBatchResize:function(zt){(0,Oe.Z)(gt.current)&&zt.forEach(function(Wt){var It=Wt.data,vt=Wt.size;lt(It,vt.offsetWidth)})}},Te.map(function(_t){return d.createElement(st,{key:_t,columnKey:_t,onColumnResize:lt})})))}function jt(Me){var Ie=Me.data,Te=Me.measureColumnWidth,lt=o(w,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),gt=lt.prefixCls,_t=lt.getComponent,zt=lt.onColumnResize,Wt=lt.flattenColumns,It=lt.getRowKey,vt=lt.expandedKeys,xt=lt.childrenColumnName,Nt=lt.emptyNode,Zt=qe(Ie,xt,vt,It),nn=d.useRef({renderWithProps:!1}),gn=_t(["body","wrapper"],"tbody"),Kn=_t(["body","row"],"tr"),mn=_t(["body","cell"],"td"),Sn=_t(["body","cell"],"th"),Fn;Ie.length?Fn=Zt.map(function(Vn,wn){var Gn=Vn.record,Wn=Vn.indent,er=Vn.index,bn=It(Gn,wn);return d.createElement(it,{key:bn,rowKey:bn,record:Gn,index:wn,renderIndex:er,rowComponent:Kn,cellComponent:mn,scopeCellComponent:Sn,indent:Wn})}):Fn=d.createElement(de,{expanded:!0,className:"".concat(gt,"-placeholder"),prefixCls:gt,component:Kn,cellComponent:mn,colSpan:Wt.length,isEmpty:!0},Nt);var Nn=O(Wt);return d.createElement(X.Provider,{value:nn.current},d.createElement(gn,{className:"".concat(gt,"-tbody")},Te&&d.createElement(Et,{prefixCls:gt,columnsKey:Nn,onColumnResize:zt}),Fn))}var wt=F(jt),Bt=_(54451),se=["columnType"];function ve(Me){for(var Ie=Me.colWidths,Te=Me.columns,lt=Me.columCount,gt=o(w,["tableLayout"]),_t=gt.tableLayout,zt=[],Wt=lt||Te.length,It=!1,vt=Wt-1;vt>=0;vt-=1){var xt=Ie[vt],Nt=Te&&Te[vt],Zt=void 0,nn=void 0;if(Nt&&(Zt=Nt[Bt.v],_t==="auto"&&(nn=Nt.minWidth)),xt||nn||Zt||It){var gn=Zt||{},Kn=gn.columnType,mn=(0,we.Z)(gn,se);zt.unshift(d.createElement("col",(0,g.Z)({key:vt,style:{width:xt,minWidth:nn}},mn))),It=!0}}return d.createElement("colgroup",null,zt)}var Ee=ve,k=_(3300),Y=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function he(Me,Ie){return(0,d.useMemo)(function(){for(var Te=[],lt=0;lt<Ie;lt+=1){var gt=Me[lt];if(gt!==void 0)Te[lt]=gt;else return null}return Te},[Me.join("_"),Ie])}var ce=d.forwardRef(function(Me,Ie){var Te=Me.className,lt=Me.noData,gt=Me.columns,_t=Me.flattenColumns,zt=Me.colWidths,Wt=Me.columCount,It=Me.stickyOffsets,vt=Me.direction,xt=Me.fixHeader,Nt=Me.stickyTopOffset,Zt=Me.stickyBottomOffset,nn=Me.stickyClassName,gn=Me.onScroll,Kn=Me.maxContentScroll,mn=Me.children,Sn=(0,we.Z)(Me,Y),Fn=o(w,["prefixCls","scrollbarSize","isSticky","getComponent"]),Nn=Fn.prefixCls,Vn=Fn.scrollbarSize,wn=Fn.isSticky,Gn=Fn.getComponent,Wn=Gn(["header","table"],"table"),er=wn&&!xt?0:Vn,bn=d.useRef(null),Jn=d.useCallback(function(nr){(0,A.mH)(Ie,nr),(0,A.mH)(bn,nr)},[]);d.useEffect(function(){var nr;function Xn(dr){var xr=dr,Ur=xr.currentTarget,Nr=xr.deltaX;Nr&&(gn({currentTarget:Ur,scrollLeft:Ur.scrollLeft+Nr}),dr.preventDefault())}return(nr=bn.current)===null||nr===void 0||nr.addEventListener("wheel",Xn,{passive:!1}),function(){var dr;(dr=bn.current)===null||dr===void 0||dr.removeEventListener("wheel",Xn)}},[]);var cr=d.useMemo(function(){return _t.every(function(nr){return nr.width})},[_t]),pt=_t[_t.length-1],Qt={fixed:pt?pt.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Nn,"-cell-scrollbar")}}},on=(0,d.useMemo)(function(){return er?[].concat((0,k.Z)(gt),[Qt]):gt},[er,gt]),Vt=(0,d.useMemo)(function(){return er?[].concat((0,k.Z)(_t),[Qt]):_t},[er,_t]),vn=(0,d.useMemo)(function(){var nr=It.right,Xn=It.left;return(0,ge.Z)((0,ge.Z)({},It),{},{left:vt==="rtl"?[].concat((0,k.Z)(Xn.map(function(dr){return dr+er})),[0]):Xn,right:vt==="rtl"?nr:[].concat((0,k.Z)(nr.map(function(dr){return dr+er})),[0]),isSticky:wn})},[er,It,wn]),Rn=he(zt,Wt);return d.createElement("div",{style:(0,ge.Z)({overflow:"hidden"},wn?{top:Nt,bottom:Zt}:{}),ref:Jn,className:Z()(Te,(0,me.Z)({},nn,!!nn))},d.createElement(Wn,{style:{tableLayout:"fixed",visibility:lt||Rn?null:"hidden"}},(!lt||!Kn||cr)&&d.createElement(Ee,{colWidths:Rn?[].concat((0,k.Z)(Rn),[er]):[],columCount:Wt+1,columns:Vt}),mn((0,ge.Z)((0,ge.Z)({},Sn),{},{stickyOffsets:vn,columns:on,flattenColumns:Vt}))))}),xe=d.memo(ce),Be=function(Ie){var Te=Ie.cells,lt=Ie.stickyOffsets,gt=Ie.flattenColumns,_t=Ie.rowComponent,zt=Ie.cellComponent,Wt=Ie.onHeaderRow,It=Ie.index,vt=o(w,["prefixCls","direction"]),xt=vt.prefixCls,Nt=vt.direction,Zt;Wt&&(Zt=Wt(Te.map(function(gn){return gn.column}),It));var nn=O(Te.map(function(gn){return gn.column}));return d.createElement(_t,Zt,Te.map(function(gn,Kn){var mn=gn.column,Sn=sn(gn.colStart,gn.colEnd,gt,lt,Nt),Fn;return mn&&mn.onHeaderCell&&(Fn=gn.column.onHeaderCell(mn)),d.createElement(Dt,(0,g.Z)({},gn,{scope:mn.title?gn.colSpan>1?"colgroup":"col":null,ellipsis:mn.ellipsis,align:mn.align,component:zt,prefixCls:xt,key:nn[Kn]},Sn,{additionalProps:Fn,rowType:"header"}))}))},Xe=Be;function ut(Me){var Ie=[];function Te(zt,Wt){var It=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ie[It]=Ie[It]||[];var vt=Wt,xt=zt.filter(Boolean).map(function(Nt){var Zt={key:Nt.key,className:Nt.className||"",children:Nt.title,column:Nt,colStart:vt},nn=1,gn=Nt.children;return gn&&gn.length>0&&(nn=Te(gn,vt,It+1).reduce(function(Kn,mn){return Kn+mn},0),Zt.hasSubColumns=!0),"colSpan"in Nt&&(nn=Nt.colSpan),"rowSpan"in Nt&&(Zt.rowSpan=Nt.rowSpan),Zt.colSpan=nn,Zt.colEnd=Zt.colStart+nn-1,Ie[It].push(Zt),vt+=nn,nn});return xt}Te(Me,0);for(var lt=Ie.length,gt=function(Wt){Ie[Wt].forEach(function(It){!("rowSpan"in It)&&!It.hasSubColumns&&(It.rowSpan=lt-Wt)})},_t=0;_t<lt;_t+=1)gt(_t);return Ie}var nt=function(Ie){var Te=Ie.stickyOffsets,lt=Ie.columns,gt=Ie.flattenColumns,_t=Ie.onHeaderRow,zt=o(w,["prefixCls","getComponent"]),Wt=zt.prefixCls,It=zt.getComponent,vt=d.useMemo(function(){return ut(lt)},[lt]),xt=It(["header","wrapper"],"thead"),Nt=It(["header","row"],"tr"),Zt=It(["header","cell"],"th");return d.createElement(xt,{className:"".concat(Wt,"-thead")},vt.map(function(nn,gn){var Kn=d.createElement(Xe,{key:gn,flattenColumns:gt,cells:nn,stickyOffsets:Te,rowComponent:Nt,cellComponent:Zt,onHeaderRow:_t,index:gn});return Kn}))},Ue=F(nt),R=_(97347);function U(Me,Ie,Te){var lt=(0,Bt.g)(Me),gt=lt.expandIcon,_t=lt.expandedRowKeys,zt=lt.defaultExpandedRowKeys,Wt=lt.defaultExpandAllRows,It=lt.expandedRowRender,vt=lt.onExpand,xt=lt.onExpandedRowsChange,Nt=lt.childrenColumnName,Zt=gt||K,nn=Nt||"children",gn=d.useMemo(function(){return It?"row":Me.expandable&&Me.internalHooks===f.R&&Me.expandable.__PARENT_RENDER_ICON__||Ie.some(function(wn){return wn&&(0,oe.Z)(wn)==="object"&&wn[nn]})?"nest":!1},[!!It,Ie]),Kn=d.useState(function(){return zt||(Wt?N(Ie,Te,nn):[])}),mn=(0,ue.Z)(Kn,2),Sn=mn[0],Fn=mn[1],Nn=d.useMemo(function(){return new Set(_t||Sn||[])},[_t,Sn]),Vn=d.useCallback(function(wn){var Gn=Te(wn,Ie.indexOf(wn)),Wn,er=Nn.has(Gn);er?(Nn.delete(Gn),Wn=(0,k.Z)(Nn)):Wn=[].concat((0,k.Z)(Nn),[Gn]),Fn(Wn),vt&&vt(!er,wn),xt&&xt(Wn)},[Te,Nn,Ie,vt,xt]);return[lt,gn,Nn,Zt,nn,Vn]}function S(Me,Ie,Te){var lt=Me.map(function(gt,_t){return sn(_t,_t,Me,Ie,Te)});return(0,T.Z)(function(){return lt},[lt],function(gt,_t){return!(0,B.Z)(gt,_t)})}function ze(Me){var Ie=(0,d.useRef)(Me),Te=(0,d.useState)({}),lt=(0,ue.Z)(Te,2),gt=lt[1],_t=(0,d.useRef)(null),zt=(0,d.useRef)([]);function Wt(It){zt.current.push(It);var vt=Promise.resolve();_t.current=vt,vt.then(function(){if(_t.current===vt){var xt=zt.current,Nt=Ie.current;zt.current=[],xt.forEach(function(Zt){Ie.current=Zt(Ie.current)}),_t.current=null,Nt!==Ie.current&&gt({})}})}return(0,d.useEffect)(function(){return function(){_t.current=null}},[]),[Ie.current,Wt]}function ke(Me){var Ie=(0,d.useRef)(Me||null),Te=(0,d.useRef)();function lt(){window.clearTimeout(Te.current)}function gt(zt){Ie.current=zt,lt(),Te.current=window.setTimeout(function(){Ie.current=null,Te.current=void 0},100)}function _t(){return Ie.current}return(0,d.useEffect)(function(){return lt},[]),[gt,_t]}function Pe(){var Me=d.useState(-1),Ie=(0,ue.Z)(Me,2),Te=Ie[0],lt=Ie[1],gt=d.useState(-1),_t=(0,ue.Z)(gt,2),zt=_t[0],Wt=_t[1],It=d.useCallback(function(vt,xt){lt(vt),Wt(xt)},[]);return[Te,zt,It]}var Ge=_(47273),We=(0,Ge.Z)()?window:null;function ct(Me,Ie){var Te=(0,oe.Z)(Me)==="object"?Me:{},lt=Te.offsetHeader,gt=lt===void 0?0:lt,_t=Te.offsetSummary,zt=_t===void 0?0:_t,Wt=Te.offsetScroll,It=Wt===void 0?0:Wt,vt=Te.getContainer,xt=vt===void 0?function(){return We}:vt,Nt=xt()||We,Zt=!!Me;return d.useMemo(function(){return{isSticky:Zt,stickyClassName:Zt?"".concat(Ie,"-sticky-holder"):"",offsetHeader:gt,offsetSummary:zt,offsetScroll:It,container:Nt}},[Zt,It,gt,zt,Ie,Nt])}function Lt(Me,Ie,Te){var lt=(0,d.useMemo)(function(){var gt=Ie.length,_t=function(vt,xt,Nt){for(var Zt=[],nn=0,gn=vt;gn!==xt;gn+=Nt)Zt.push(nn),Ie[gn].fixed&&(nn+=Me[gn]||0);return Zt},zt=_t(0,gt,1),Wt=_t(gt-1,-1,-1).reverse();return Te==="rtl"?{left:Wt,right:zt}:{left:zt,right:Wt}},[Me,Ie,Te]);return lt}var Pt=Lt;function cn(Me){var Ie=Me.className,Te=Me.children;return d.createElement("div",{className:Ie},Te)}var Ne=cn,Re=_(8224),dt=_(16089),mt=_(76846);function Mt(Me){var Ie=(0,mt.bn)(Me),Te=Ie.getBoundingClientRect(),lt=document.documentElement;return{left:Te.left+(window.pageXOffset||lt.scrollLeft)-(lt.clientLeft||document.body.clientLeft||0),top:Te.top+(window.pageYOffset||lt.scrollTop)-(lt.clientTop||document.body.clientTop||0)}}var bt=function(Ie,Te){var lt,gt,_t=Ie.scrollBodyRef,zt=Ie.onScroll,Wt=Ie.offsetScroll,It=Ie.container,vt=Ie.direction,xt=o(w,"prefixCls"),Nt=((lt=_t.current)===null||lt===void 0?void 0:lt.scrollWidth)||0,Zt=((gt=_t.current)===null||gt===void 0?void 0:gt.clientWidth)||0,nn=Nt&&Zt*(Zt/Nt),gn=d.useRef(),Kn=ze({scrollLeft:0,isHiddenScrollBar:!0}),mn=(0,ue.Z)(Kn,2),Sn=mn[0],Fn=mn[1],Nn=d.useRef({delta:0,x:0}),Vn=d.useState(!1),wn=(0,ue.Z)(Vn,2),Gn=wn[0],Wn=wn[1],er=d.useRef(null);d.useEffect(function(){return function(){dt.Z.cancel(er.current)}},[]);var bn=function(){Wn(!1)},Jn=function(Vt){Vt.persist(),Nn.current.delta=Vt.pageX-Sn.scrollLeft,Nn.current.x=0,Wn(!0),Vt.preventDefault()},cr=function(Vt){var vn,Rn=Vt||((vn=window)===null||vn===void 0?void 0:vn.event),nr=Rn.buttons;if(!Gn||nr===0){Gn&&Wn(!1);return}var Xn=Nn.current.x+Vt.pageX-Nn.current.x-Nn.current.delta,dr=vt==="rtl";Xn=Math.max(dr?nn-Zt:0,Math.min(dr?0:Zt-nn,Xn));var xr=!dr||Math.abs(Xn)+Math.abs(nn)<Zt;xr&&(zt({scrollLeft:Xn/Zt*(Nt+2)}),Nn.current.x=Vt.pageX)},pt=function(){dt.Z.cancel(er.current),er.current=(0,dt.Z)(function(){if(_t.current){var Vt=Mt(_t.current).top,vn=Vt+_t.current.offsetHeight,Rn=It===window?document.documentElement.scrollTop+window.innerHeight:Mt(It).top+It.clientHeight;vn-(0,ye.Z)()<=Rn||Vt>=Rn-Wt?Fn(function(nr){return(0,ge.Z)((0,ge.Z)({},nr),{},{isHiddenScrollBar:!0})}):Fn(function(nr){return(0,ge.Z)((0,ge.Z)({},nr),{},{isHiddenScrollBar:!1})})}})},Qt=function(Vt){Fn(function(vn){return(0,ge.Z)((0,ge.Z)({},vn),{},{scrollLeft:Vt/Nt*Zt||0})})};return d.useImperativeHandle(Te,function(){return{setScrollLeft:Qt,checkScrollBarVisible:pt}}),d.useEffect(function(){var on=(0,Re.Z)(document.body,"mouseup",bn,!1),Vt=(0,Re.Z)(document.body,"mousemove",cr,!1);return pt(),function(){on.remove(),Vt.remove()}},[nn,Gn]),d.useEffect(function(){if(_t.current){for(var on=[],Vt=(0,mt.bn)(_t.current);Vt;)on.push(Vt),Vt=Vt.parentElement;return on.forEach(function(vn){return vn.addEventListener("scroll",pt,!1)}),window.addEventListener("resize",pt,!1),window.addEventListener("scroll",pt,!1),It.addEventListener("scroll",pt,!1),function(){on.forEach(function(vn){return vn.removeEventListener("scroll",pt)}),window.removeEventListener("resize",pt),window.removeEventListener("scroll",pt),It.removeEventListener("scroll",pt)}}},[It]),d.useEffect(function(){Sn.isHiddenScrollBar||Fn(function(on){var Vt=_t.current;return Vt?(0,ge.Z)((0,ge.Z)({},on),{},{scrollLeft:Vt.scrollLeft/Vt.scrollWidth*Vt.clientWidth}):on})},[Sn.isHiddenScrollBar]),Nt<=Zt||!nn||Sn.isHiddenScrollBar?null:d.createElement("div",{style:{height:(0,ye.Z)(),width:Zt,bottom:Wt},className:"".concat(xt,"-sticky-scroll")},d.createElement("div",{onMouseDown:Jn,ref:gn,className:Z()("".concat(xt,"-sticky-scroll-bar"),(0,me.Z)({},"".concat(xt,"-sticky-scroll-bar-active"),Gn)),style:{width:"".concat(nn,"px"),transform:"translate3d(".concat(Sn.scrollLeft,"px, 0, 0)")}}))},Tt=d.forwardRef(bt);function Kt(Me){return null}var en=Kt;function At(Me){return null}var dn=At,an="rc-table",Jt=[],kt={};function Ze(){return"No Data"}function ft(Me,Ie){var Te=(0,ge.Z)({rowKey:"key",prefixCls:an,emptyText:Ze},Me),lt=Te.prefixCls,gt=Te.className,_t=Te.rowClassName,zt=Te.style,Wt=Te.data,It=Te.rowKey,vt=Te.scroll,xt=Te.tableLayout,Nt=Te.direction,Zt=Te.title,nn=Te.footer,gn=Te.summary,Kn=Te.caption,mn=Te.id,Sn=Te.showHeader,Fn=Te.components,Nn=Te.emptyText,Vn=Te.onRow,wn=Te.onHeaderRow,Gn=Te.onScroll,Wn=Te.internalHooks,er=Te.transformColumns,bn=Te.internalRefs,Jn=Te.tailor,cr=Te.getContainerWidth,pt=Te.sticky,Qt=Te.rowHoverable,on=Qt===void 0?!0:Qt,Vt=Wt||Jt,vn=!!Vt.length,Rn=Wn===f.R,nr=d.useCallback(function(Rr,Ir){return(0,P.Z)(Fn,Rr)||Ir},[Fn]),Xn=d.useMemo(function(){return typeof It=="function"?It:function(Rr){var Ir=Rr&&Rr[It];return Ir}},[It]),dr=nr(["body"]),xr=Pe(),Ur=(0,ue.Z)(xr,3),Nr=Ur[0],zr=Ur[1],Vr=Ur[2],Zr=U(Te,Vt,Xn),yr=(0,ue.Z)(Zr,6),Tr=yr[0],Wr=yr[1],Er=yr[2],_r=yr[3],lr=yr[4],jn=yr[5],or=vt==null?void 0:vt.x,ur=d.useState(0),fr=(0,ue.Z)(ur,2),Sr=fr[0],Dr=fr[1],$r=(0,R.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},Te),Tr),{},{expandable:!!Tr.expandedRowRender,columnTitle:Tr.columnTitle,expandedKeys:Er,getRowKey:Xn,onTriggerExpand:jn,expandIcon:_r,expandIconColumnIndex:Tr.expandIconColumnIndex,direction:Nt,scrollWidth:Rn&&Jn&&typeof or=="number"?or:null,clientWidth:Sr}),Rn?er:null),Hn=(0,ue.Z)($r,4),ir=Hn[0],rr=Hn[1],Ar=Hn[2],Lr=Hn[3],Fr=Ar!=null?Ar:or,ni=d.useMemo(function(){return{columns:ir,flattenColumns:rr}},[ir,rr]),si=d.useRef(),qr=d.useRef(),Hr=d.useRef(),di=d.useRef();d.useImperativeHandle(Ie,function(){return{nativeElement:si.current,scrollTo:function(Ir){var oi;if(Hr.current instanceof HTMLElement){var xi=Ir.index,li=Ir.top,ds=Ir.key;if(He(li)){var ts;(ts=Hr.current)===null||ts===void 0||ts.scrollTo({top:li})}else{var ns,Ss=ds!=null?ds:Xn(Vt[xi]);(ns=Hr.current.querySelector('[data-row-key="'.concat(Ss,'"]')))===null||ns===void 0||ns.scrollIntoView()}}else(oi=Hr.current)!==null&&oi!==void 0&&oi.scrollTo&&Hr.current.scrollTo(Ir)}}});var Ji=d.useRef(),Ti=d.useState(!1),Ki=(0,ue.Z)(Ti,2),Mi=Ki[0],Oi=Ki[1],zi=d.useState(!1),yi=(0,ue.Z)(zi,2),Fi=yi[0],Di=yi[1],qi=d.useState(new Map),ui=(0,ue.Z)(qi,2),as=ui[0],Bi=ui[1],os=O(rr),ls=os.map(function(Rr){return as.get(Rr)}),us=d.useMemo(function(){return ls},[ls.join("_")]),ji=Pt(us,rr,Nt),ai=vt&&pe(vt.y),ei=vt&&pe(Fr)||!!Tr.fixed,Cr=ei&&rr.some(function(Rr){var Ir=Rr.fixed;return Ir}),br=d.useRef(),Qr=ct(pt,lt),Gr=Qr.isSticky,Yr=Qr.offsetHeader,Jr=Qr.offsetSummary,pi=Qr.offsetScroll,mi=Qr.stickyClassName,_i=Qr.container,Xr=d.useMemo(function(){return gn==null?void 0:gn(Vt)},[gn,Vt]),fi=(ai||Gr)&&d.isValidElement(Xr)&&Xr.type===q&&Xr.props.fixed,wi,Ei,gs;ai&&(Ei={overflowY:vn?"scroll":"auto",maxHeight:vt.y}),ei&&(wi={overflowX:"auto"},ai||(Ei={overflowY:"hidden"}),gs={width:Fr===!0?"auto":Fr,minWidth:"100%"});var vs=d.useCallback(function(Rr,Ir){Bi(function(oi){if(oi.get(Rr)!==Ir){var xi=new Map(oi);return xi.set(Rr,Ir),xi}return oi})},[]),jr=ke(null),Mr=(0,ue.Z)(jr,2),hn=Mr[0],ii=Mr[1];function ri(Rr,Ir){Ir&&(typeof Ir=="function"?Ir(Rr):Ir.scrollLeft!==Rr&&(Ir.scrollLeft=Rr,Ir.scrollLeft!==Rr&&setTimeout(function(){Ir.scrollLeft=Rr},0)))}var bi=(0,z.Z)(function(Rr){var Ir=Rr.currentTarget,oi=Rr.scrollLeft,xi=Nt==="rtl",li=typeof oi=="number"?oi:Ir.scrollLeft,ds=Ir||kt;if(!ii()||ii()===ds){var ts;hn(ds),ri(li,qr.current),ri(li,Hr.current),ri(li,Ji.current),ri(li,(ts=br.current)===null||ts===void 0?void 0:ts.setScrollLeft)}var ns=Ir||qr.current;if(ns){var Ss=Rn&&Jn&&typeof Fr=="number"?Fr:ns.scrollWidth,Ws=ns.clientWidth;if(Ss===Ws){Oi(!1),Di(!1);return}xi?(Oi(-li<Ss-Ws),Di(-li>0)):(Oi(li>0),Di(li<Ss-Ws))}}),ys=(0,z.Z)(function(Rr){bi(Rr),Gn==null||Gn(Rr)}),cs=function(){if(ei&&Hr.current){var Ir;bi({currentTarget:(0,mt.bn)(Hr.current),scrollLeft:(Ir=Hr.current)===null||Ir===void 0?void 0:Ir.scrollLeft})}else Oi(!1),Di(!1)},_s=function(Ir){var oi,xi=Ir.width;(oi=br.current)===null||oi===void 0||oi.checkScrollBarVisible();var li=si.current?si.current.offsetWidth:xi;Rn&&cr&&si.current&&(li=cr(si.current,li)||li),li!==Sr&&(cs(),Dr(li))},Es=d.useRef(!1);d.useEffect(function(){Es.current&&cs()},[ei,Wt,ir.length]),d.useEffect(function(){Es.current=!0},[]);var $i=d.useState(0),Vi=(0,ue.Z)($i,2),Ri=Vi[0],es=Vi[1],ba=d.useState(!0),$s=(0,ue.Z)(ba,2),ea=$s[0],xa=$s[1];(0,ae.Z)(function(){(!Jn||!Rn)&&(Hr.current instanceof Element?es((0,ye.o)(Hr.current).width):es((0,ye.o)(di.current).width)),xa((0,fe.G)("position","sticky"))},[]),d.useEffect(function(){Rn&&bn&&(bn.body.current=Hr.current)});var ta=d.useCallback(function(Rr){return d.createElement(d.Fragment,null,d.createElement(Ue,Rr),fi==="top"&&d.createElement(Se,Rr,Xr))},[fi,Xr]),Us=d.useCallback(function(Rr){return d.createElement(Se,Rr,Xr)},[Xr]),bs=nr(["table"],"table"),Wi=d.useMemo(function(){return xt||(Cr?Fr==="max-content"?"auto":"fixed":ai||Gr||rr.some(function(Rr){var Ir=Rr.ellipsis;return Ir})?"fixed":"auto")},[ai,Cr,rr,xt,Gr]),Zs,Rs={colWidths:us,columCount:rr.length,stickyOffsets:ji,onHeaderRow:wn,fixHeader:ai,scroll:vt},Ks=d.useMemo(function(){return vn?null:typeof Nn=="function"?Nn():Nn},[vn,Nn]),Is=d.createElement(wt,{data:Vt,measureColumnWidth:ai||ei||Gr}),na=d.createElement(Ee,{colWidths:rr.map(function(Rr){var Ir=Rr.width;return Ir}),columns:rr}),xs=Kn!=null?d.createElement("caption",{className:"".concat(lt,"-caption")},Kn):void 0,Sa=(0,$e.Z)(Te,{data:!0}),ra=(0,$e.Z)(Te,{aria:!0});if(ai||Gr){var Ls;typeof dr=="function"?(Ls=dr(Vt,{scrollbarSize:Ri,ref:Hr,onScroll:bi}),Rs.colWidths=rr.map(function(Rr,Ir){var oi=Rr.width,xi=Ir===rr.length-1?oi-Ri:oi;return typeof xi=="number"&&!Number.isNaN(xi)?xi:0})):Ls=d.createElement("div",{style:(0,ge.Z)((0,ge.Z)({},wi),Ei),onScroll:ys,ref:Hr,className:Z()("".concat(lt,"-body"))},d.createElement(bs,(0,g.Z)({style:(0,ge.Z)((0,ge.Z)({},gs),{},{tableLayout:Wi})},ra),xs,na,Is,!fi&&Xr&&d.createElement(Se,{stickyOffsets:ji,flattenColumns:rr},Xr)));var zs=(0,ge.Z)((0,ge.Z)((0,ge.Z)({noData:!Vt.length,maxContentScroll:ei&&Fr==="max-content"},Rs),ni),{},{direction:Nt,stickyClassName:mi,onScroll:bi});Zs=d.createElement(d.Fragment,null,Sn!==!1&&d.createElement(xe,(0,g.Z)({},zs,{stickyTopOffset:Yr,className:"".concat(lt,"-header"),ref:qr}),ta),Ls,fi&&fi!=="top"&&d.createElement(xe,(0,g.Z)({},zs,{stickyBottomOffset:Jr,className:"".concat(lt,"-summary"),ref:Ji}),Us),Gr&&Hr.current&&Hr.current instanceof Element&&d.createElement(Tt,{ref:br,offsetScroll:pi,scrollBodyRef:Hr,onScroll:bi,container:_i,direction:Nt}))}else Zs=d.createElement("div",{style:(0,ge.Z)((0,ge.Z)({},wi),Ei),className:Z()("".concat(lt,"-content")),onScroll:bi,ref:Hr},d.createElement(bs,(0,g.Z)({style:(0,ge.Z)((0,ge.Z)({},gs),{},{tableLayout:Wi})},ra),xs,na,Sn!==!1&&d.createElement(Ue,(0,g.Z)({},Rs,ni)),Is,Xr&&d.createElement(Se,{stickyOffsets:ji,flattenColumns:rr},Xr)));var js=d.createElement("div",(0,g.Z)({className:Z()(lt,gt,(0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)((0,me.Z)({},"".concat(lt,"-rtl"),Nt==="rtl"),"".concat(lt,"-ping-left"),Mi),"".concat(lt,"-ping-right"),Fi),"".concat(lt,"-layout-fixed"),xt==="fixed"),"".concat(lt,"-fixed-header"),ai),"".concat(lt,"-fixed-column"),Cr),"".concat(lt,"-fixed-column-gapped"),Cr&&Lr),"".concat(lt,"-scroll-horizontal"),ei),"".concat(lt,"-has-fix-left"),rr[0]&&rr[0].fixed),"".concat(lt,"-has-fix-right"),rr[rr.length-1]&&rr[rr.length-1].fixed==="right")),style:zt,id:mn,ref:si},Sa),Zt&&d.createElement(Ne,{className:"".concat(lt,"-title")},Zt(Vt)),d.createElement("div",{ref:di,className:"".concat(lt,"-container")},Zs),nn&&d.createElement(Ne,{className:"".concat(lt,"-footer")},nn(Vt)));ei&&(js=d.createElement(W.Z,{onResize:_s},js));var Vs=S(rr,ji,Nt),wa=d.useMemo(function(){return{scrollX:Fr,prefixCls:lt,getComponent:nr,scrollbarSize:Ri,direction:Nt,fixedInfoList:Vs,isSticky:Gr,supportSticky:ea,componentWidth:Sr,fixHeader:ai,fixColumn:Cr,horizonScroll:ei,tableLayout:Wi,rowClassName:_t,expandedRowClassName:Tr.expandedRowClassName,expandIcon:_r,expandableType:Wr,expandRowByClick:Tr.expandRowByClick,expandedRowRender:Tr.expandedRowRender,onTriggerExpand:jn,expandIconColumnIndex:Tr.expandIconColumnIndex,indentSize:Tr.indentSize,allColumnsFixedLeft:rr.every(function(Rr){return Rr.fixed==="left"}),emptyNode:Ks,columns:ir,flattenColumns:rr,onColumnResize:vs,hoverStartRow:Nr,hoverEndRow:zr,onHover:Vr,rowExpandable:Tr.rowExpandable,onRow:Vn,getRowKey:Xn,expandedKeys:Er,childrenColumnName:lr,rowHoverable:on}},[Fr,lt,nr,Ri,Nt,Vs,Gr,ea,Sr,ai,Cr,ei,Wi,_t,Tr.expandedRowClassName,_r,Wr,Tr.expandRowByClick,Tr.expandedRowRender,jn,Tr.expandIconColumnIndex,Tr.indentSize,Ks,ir,rr,vs,Nr,zr,Vr,Tr.rowExpandable,Vn,Xn,Er,lr,on]);return d.createElement(w.Provider,{value:wa},js)}var St=d.forwardRef(ft);function Ot(Me){return le(St,Me)}var tn=Ot();tn.EXPAND_COLUMN=f.w,tn.INTERNAL_HOOKS=f.R,tn.Column=en,tn.ColumnGroup=dn,tn.Summary=be;var et=tn,ln=_(6790),xn=ne(null),Tn=ne(null);function Cn(Me,Ie,Te){var lt=Ie||1;return Te[Me+lt]-(Te[Me]||0)}function Yn(Me){var Ie=Me.rowInfo,Te=Me.column,lt=Me.colIndex,gt=Me.indent,_t=Me.index,zt=Me.component,Wt=Me.renderIndex,It=Me.record,vt=Me.style,xt=Me.className,Nt=Me.inverse,Zt=Me.getHeight,nn=Te.render,gn=Te.dataIndex,Kn=Te.className,mn=Te.width,Sn=o(Tn,["columnsOffset"]),Fn=Sn.columnsOffset,Nn=De(Ie,Te,lt,gt,_t),Vn=Nn.key,wn=Nn.fixedInfo,Gn=Nn.appendCellNode,Wn=Nn.additionalCellProps,er=Wn.style,bn=Wn.colSpan,Jn=bn===void 0?1:bn,cr=Wn.rowSpan,pt=cr===void 0?1:cr,Qt=lt-1,on=Cn(Qt,Jn,Fn),Vt=Jn>1?mn-on:0,vn=(0,ge.Z)((0,ge.Z)((0,ge.Z)({},er),vt),{},{flex:"0 0 ".concat(on,"px"),width:"".concat(on,"px"),marginRight:Vt,pointerEvents:"auto"}),Rn=d.useMemo(function(){return Nt?pt<=1:Jn===0||pt===0||pt>1},[pt,Jn,Nt]);Rn?vn.visibility="hidden":Nt&&(vn.height=Zt==null?void 0:Zt(pt));var nr=Rn?function(){return null}:nn,Xn={};return(pt===0||Jn===0)&&(Xn.rowSpan=1,Xn.colSpan=1),d.createElement(Dt,(0,g.Z)({className:Z()(Kn,xt),ellipsis:Te.ellipsis,align:Te.align,scope:Te.rowScope,component:zt,prefixCls:Ie.prefixCls,key:Vn,record:It,index:_t,renderIndex:Wt,dataIndex:gn,render:nr,shouldCellUpdate:Te.shouldCellUpdate},wn,{appendNode:Gn,additionalProps:(0,ge.Z)((0,ge.Z)({},Wn),{},{style:vn},Xn)}))}var Dn=Yn,Zn=["data","index","className","rowKey","style","extra","getHeight"],On=d.forwardRef(function(Me,Ie){var Te=Me.data,lt=Me.index,gt=Me.className,_t=Me.rowKey,zt=Me.style,Wt=Me.extra,It=Me.getHeight,vt=(0,we.Z)(Me,Zn),xt=Te.record,Nt=Te.indent,Zt=Te.index,nn=o(w,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),gn=nn.scrollX,Kn=nn.flattenColumns,mn=nn.prefixCls,Sn=nn.fixColumn,Fn=nn.componentWidth,Nn=o(xn,["getComponent"]),Vn=Nn.getComponent,wn=Ye(xt,_t,lt,Nt),Gn=Vn(["body","row"],"div"),Wn=Vn(["body","cell"],"div"),er=wn.rowSupportExpand,bn=wn.expanded,Jn=wn.rowProps,cr=wn.expandedRowRender,pt=wn.expandedRowClassName,Qt;if(er&&bn){var on=cr(xt,lt,Nt+1,bn),Vt=Le(pt,xt,lt,Nt),vn={};Sn&&(vn={style:(0,me.Z)({},"--virtual-width","".concat(Fn,"px"))});var Rn="".concat(mn,"-expanded-row-cell");Qt=d.createElement(Gn,{className:Z()("".concat(mn,"-expanded-row"),"".concat(mn,"-expanded-row-level-").concat(Nt+1),Vt)},d.createElement(Dt,{component:Wn,prefixCls:mn,className:Z()(Rn,(0,me.Z)({},"".concat(Rn,"-fixed"),Sn)),additionalProps:vn},on))}var nr=(0,ge.Z)((0,ge.Z)({},zt),{},{width:gn});Wt&&(nr.position="absolute",nr.pointerEvents="none");var Xn=d.createElement(Gn,(0,g.Z)({},Jn,vt,{"data-row-key":_t,ref:er?null:Ie,className:Z()(gt,"".concat(mn,"-row"),Jn==null?void 0:Jn.className,(0,me.Z)({},"".concat(mn,"-row-extra"),Wt)),style:(0,ge.Z)((0,ge.Z)({},nr),Jn==null?void 0:Jn.style)}),Kn.map(function(dr,xr){return d.createElement(Dn,{key:xr,component:Wn,rowInfo:wn,column:dr,colIndex:xr,indent:Nt,index:lt,renderIndex:Zt,record:xt,inverse:Wt,getHeight:It})}));return er?d.createElement("div",{ref:Ie},Xn,Qt):Xn}),Bn=F(On),In=Bn,yn=d.forwardRef(function(Me,Ie){var Te=Me.data,lt=Me.onScroll,gt=o(w,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),_t=gt.flattenColumns,zt=gt.onColumnResize,Wt=gt.getRowKey,It=gt.expandedKeys,vt=gt.prefixCls,xt=gt.childrenColumnName,Nt=gt.scrollX,Zt=gt.direction,nn=o(xn),gn=nn.sticky,Kn=nn.scrollY,mn=nn.listItemHeight,Sn=nn.getComponent,Fn=nn.onScroll,Nn=d.useRef(),Vn=qe(Te,xt,It,Wt),wn=d.useMemo(function(){var Qt=0;return _t.map(function(on){var Vt=on.width,vn=on.key;return Qt+=Vt,[vn,Vt,Qt]})},[_t]),Gn=d.useMemo(function(){return wn.map(function(Qt){return Qt[2]})},[wn]);d.useEffect(function(){wn.forEach(function(Qt){var on=(0,ue.Z)(Qt,2),Vt=on[0],vn=on[1];zt(Vt,vn)})},[wn]),d.useImperativeHandle(Ie,function(){var Qt,on={scrollTo:function(vn){var Rn;(Rn=Nn.current)===null||Rn===void 0||Rn.scrollTo(vn)},nativeElement:(Qt=Nn.current)===null||Qt===void 0?void 0:Qt.nativeElement};return Object.defineProperty(on,"scrollLeft",{get:function(){var vn;return((vn=Nn.current)===null||vn===void 0?void 0:vn.getScrollInfo().x)||0},set:function(vn){var Rn;(Rn=Nn.current)===null||Rn===void 0||Rn.scrollTo({left:vn})}}),on});var Wn=function(on,Vt){var vn,Rn=(vn=Vn[Vt])===null||vn===void 0?void 0:vn.record,nr=on.onCell;if(nr){var Xn,dr=nr(Rn,Vt);return(Xn=dr==null?void 0:dr.rowSpan)!==null&&Xn!==void 0?Xn:1}return 1},er=function(on){var Vt=on.start,vn=on.end,Rn=on.getSize,nr=on.offsetY;if(vn<0)return null;for(var Xn=_t.filter(function(_r){return Wn(_r,Vt)===0}),dr=Vt,xr=function(lr){if(Xn=Xn.filter(function(jn){return Wn(jn,lr)===0}),!Xn.length)return dr=lr,1},Ur=Vt;Ur>=0&&!xr(Ur);Ur-=1);for(var Nr=_t.filter(function(_r){return Wn(_r,vn)!==1}),zr=vn,Vr=function(lr){if(Nr=Nr.filter(function(jn){return Wn(jn,lr)!==1}),!Nr.length)return zr=Math.max(lr-1,vn),1},Zr=vn;Zr<Vn.length&&!Vr(Zr);Zr+=1);for(var yr=[],Tr=function(lr){var jn=Vn[lr];if(!jn)return 1;_t.some(function(or){return Wn(or,lr)>1})&&yr.push(lr)},Wr=dr;Wr<=zr;Wr+=1)Tr(Wr);var Er=yr.map(function(_r){var lr=Vn[_r],jn=Wt(lr.record,_r),or=function(Sr){var Dr=_r+Sr-1,$r=Wt(Vn[Dr].record,Dr),Hn=Rn(jn,$r);return Hn.bottom-Hn.top},ur=Rn(jn);return d.createElement(In,{key:_r,data:lr,rowKey:jn,index:_r,style:{top:-nr+ur.top},extra:!0,getHeight:or})});return Er},bn=d.useMemo(function(){return{columnsOffset:Gn}},[Gn]),Jn="".concat(vt,"-tbody"),cr=Sn(["body","wrapper"]),pt={};return gn&&(pt.position="sticky",pt.bottom=0,(0,oe.Z)(gn)==="object"&&gn.offsetScroll&&(pt.bottom=gn.offsetScroll)),d.createElement(Tn.Provider,{value:bn},d.createElement(ln.Z,{fullHeight:!1,ref:Nn,prefixCls:"".concat(Jn,"-virtual"),styles:{horizontalScrollBar:pt},className:Jn,height:Kn,itemHeight:mn||24,data:Vn,itemKey:function(on){return Wt(on.record)},component:cr,scrollWidth:Nt,direction:Zt,onVirtualScroll:function(on){var Vt,vn=on.x;lt({currentTarget:(Vt=Nn.current)===null||Vt===void 0?void 0:Vt.nativeElement,scrollLeft:vn})},onScroll:Fn,extraRender:er},function(Qt,on,Vt){var vn=Wt(Qt.record,on);return d.createElement(In,{data:Qt,rowKey:vn,index:on,style:Vt.style})}))}),kn=F(yn),pn=kn,En=function(Ie,Te){var lt=Te.ref,gt=Te.onScroll;return d.createElement(pn,{ref:lt,data:Ie,onScroll:gt})};function Ln(Me,Ie){var Te=Me.data,lt=Me.columns,gt=Me.scroll,_t=Me.sticky,zt=Me.prefixCls,Wt=zt===void 0?an:zt,It=Me.className,vt=Me.listItemHeight,xt=Me.components,Nt=Me.onScroll,Zt=gt||{},nn=Zt.x,gn=Zt.y;typeof nn!="number"&&(nn=1),typeof gn!="number"&&(gn=500);var Kn=(0,Ht.zX)(function(Fn,Nn){return(0,P.Z)(xt,Fn)||Nn}),mn=(0,Ht.zX)(Nt),Sn=d.useMemo(function(){return{sticky:_t,scrollY:gn,listItemHeight:vt,getComponent:Kn,onScroll:mn}},[_t,gn,vt,Kn,mn]);return d.createElement(xn.Provider,{value:Sn},d.createElement(et,(0,g.Z)({},Me,{className:Z()(It,"".concat(Wt,"-virtual")),scroll:(0,ge.Z)((0,ge.Z)({},gt),{},{x:nn}),components:(0,ge.Z)((0,ge.Z)({},xt),{},{body:Te!=null&&Te.length?En:void 0}),columns:lt,internalHooks:f.R,tailor:!0,ref:Ie})))}var Mn=d.forwardRef(Ln);function zn(Me){return le(Mn,Me)}var Un=zn(),ar=null},54451:function(Pn,Gt,_){"use strict";_.d(Gt,{g:function(){return d},v:function(){return B}});var f=_(27247),ue=_(43079),z=_(48736),ae=["expandable"],B="RC_TABLE_INTERNAL_COL_DEFINE";function d(_e){var ne=_e.expandable,o=(0,ue.Z)(_e,ae),g;return"expandable"in _e?g=(0,f.Z)((0,f.Z)({},o),ne):g=o,g.showExpandColumn===!1&&(g.expandIconColumnIndex=-1),g}},29443:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return de}});var f=_(32855),ue=_(74430),z=_(27247),ae=_(11913),B=_(34666),d=_(43079),_e=_(92310),ne=_.n(_e),o=_(18929),g=_(49658),A=_(59301),p=(0,A.createContext)(null),E=_(3300),b=_(29301),I=_(6089),j=_(8654),$=_(16089),le=function(N){var Le=N.activeTabOffset,De=N.horizontal,Ae=N.rtl,it=N.indicator,st=it===void 0?{}:it,Oe=st.size,Et=st.align,jt=Et===void 0?"center":Et,wt=(0,A.useState)(),Bt=(0,ae.Z)(wt,2),se=Bt[0],ve=Bt[1],Ee=(0,A.useRef)(),k=A.useCallback(function(he){return typeof Oe=="function"?Oe(he):typeof Oe=="number"?Oe:he},[Oe]);function Y(){$.Z.cancel(Ee.current)}return(0,A.useEffect)(function(){var he={};if(Le)if(De){he.width=k(Le.width);var ce=Ae?"right":"left";jt==="start"&&(he[ce]=Le[ce]),jt==="center"&&(he[ce]=Le[ce]+Le.width/2,he.transform=Ae?"translateX(50%)":"translateX(-50%)"),jt==="end"&&(he[ce]=Le[ce]+Le.width,he.transform="translateX(-100%)")}else he.height=k(Le.height),jt==="start"&&(he.top=Le.top),jt==="center"&&(he.top=Le.top+Le.height/2,he.transform="translateY(-50%)"),jt==="end"&&(he.top=Le.top+Le.height,he.transform="translateY(-100%)");return Y(),Ee.current=(0,$.Z)(function(){ve(he)}),Y},[Le,De,Ae,jt,k]),{style:se}},F=le,H={width:0,height:0,left:0,top:0};function D(K,N,Le){return(0,A.useMemo)(function(){for(var De,Ae=new Map,it=N.get((De=K[0])===null||De===void 0?void 0:De.key)||H,st=it.left+it.width,Oe=0;Oe<K.length;Oe+=1){var Et=K[Oe].key,jt=N.get(Et);if(!jt){var wt;jt=N.get((wt=K[Oe-1])===null||wt===void 0?void 0:wt.key)||H}var Bt=Ae.get(Et)||(0,z.Z)({},jt);Bt.right=st-Bt.left-Bt.width,Ae.set(Et,Bt)}return Ae},[K.map(function(De){return De.key}).join("_"),N,Le])}function w(K,N){var Le=A.useRef(K),De=A.useState({}),Ae=(0,ae.Z)(De,2),it=Ae[1];function st(Oe){var Et=typeof Oe=="function"?Oe(Le.current):Oe;Et!==Le.current&&N(Et,Le.current),Le.current=Et,it({})}return[Le.current,st]}var Q=.1,re=.01,ee=20,oe=Math.pow(.995,ee);function ge(K,N){var Le=(0,A.useState)(),De=(0,ae.Z)(Le,2),Ae=De[0],it=De[1],st=(0,A.useState)(0),Oe=(0,ae.Z)(st,2),Et=Oe[0],jt=Oe[1],wt=(0,A.useState)(0),Bt=(0,ae.Z)(wt,2),se=Bt[0],ve=Bt[1],Ee=(0,A.useState)(),k=(0,ae.Z)(Ee,2),Y=k[0],he=k[1],ce=(0,A.useRef)();function xe(R){var U=R.touches[0],S=U.screenX,ze=U.screenY;it({x:S,y:ze}),window.clearInterval(ce.current)}function Be(R){if(Ae){var U=R.touches[0],S=U.screenX,ze=U.screenY;it({x:S,y:ze});var ke=S-Ae.x,Pe=ze-Ae.y;N(ke,Pe);var Ge=Date.now();jt(Ge),ve(Ge-Et),he({x:ke,y:Pe})}}function Xe(){if(Ae&&(it(null),he(null),Y)){var R=Y.x/se,U=Y.y/se,S=Math.abs(R),ze=Math.abs(U);if(Math.max(S,ze)<Q)return;var ke=R,Pe=U;ce.current=window.setInterval(function(){if(Math.abs(ke)<re&&Math.abs(Pe)<re){window.clearInterval(ce.current);return}ke*=oe,Pe*=oe,N(ke*ee,Pe*ee)},ee)}}var ut=(0,A.useRef)();function nt(R){var U=R.deltaX,S=R.deltaY,ze=0,ke=Math.abs(U),Pe=Math.abs(S);ke===Pe?ze=ut.current==="x"?U:S:ke>Pe?(ze=U,ut.current="x"):(ze=S,ut.current="y"),N(-ze,-ze)&&R.preventDefault()}var Ue=(0,A.useRef)(null);Ue.current={onTouchStart:xe,onTouchMove:Be,onTouchEnd:Xe,onWheel:nt},A.useEffect(function(){function R(ke){Ue.current.onTouchStart(ke)}function U(ke){Ue.current.onTouchMove(ke)}function S(ke){Ue.current.onTouchEnd(ke)}function ze(ke){Ue.current.onWheel(ke)}return document.addEventListener("touchmove",U,{passive:!1}),document.addEventListener("touchend",S,{passive:!0}),K.current.addEventListener("touchstart",R,{passive:!0}),K.current.addEventListener("wheel",ze,{passive:!1}),function(){document.removeEventListener("touchmove",U),document.removeEventListener("touchend",S)}},[])}var me=_(34280);function at(K){var N=(0,A.useState)(0),Le=(0,ae.Z)(N,2),De=Le[0],Ae=Le[1],it=(0,A.useRef)(0),st=(0,A.useRef)();return st.current=K,(0,me.o)(function(){var Oe;(Oe=st.current)===null||Oe===void 0||Oe.call(st)},[De]),function(){it.current===De&&(it.current+=1,Ae(it.current))}}function Z(K){var N=(0,A.useRef)([]),Le=(0,A.useState)({}),De=(0,ae.Z)(Le,2),Ae=De[1],it=(0,A.useRef)(typeof K=="function"?K():K),st=at(function(){var Et=it.current;N.current.forEach(function(jt){Et=jt(Et)}),N.current=[],it.current=Et,Ae({})});function Oe(Et){N.current.push(Et),st()}return[it.current,Oe]}var T={width:0,height:0,left:0,top:0,right:0};function P(K,N,Le,De,Ae,it,st){var Oe=st.tabs,Et=st.tabPosition,jt=st.rtl,wt,Bt,se;return["top","bottom"].includes(Et)?(wt="width",Bt=jt?"right":"left",se=Math.abs(Le)):(wt="height",Bt="top",se=-Le),(0,A.useMemo)(function(){if(!Oe.length)return[0,0];for(var ve=Oe.length,Ee=ve,k=0;k<ve;k+=1){var Y=K.get(Oe[k].key)||T;if(Math.floor(Y[Bt]+Y[wt])>Math.floor(se+N)){Ee=k-1;break}}for(var he=0,ce=ve-1;ce>=0;ce-=1){var xe=K.get(Oe[ce].key)||T;if(xe[Bt]<se){he=ce+1;break}}return he>=Ee?[0,0]:[he,Ee]},[K,N,De,Ae,it,se,Et,Oe.map(function(ve){return ve.key}).join("_"),jt])}function G(K){var N;return K instanceof Map?(N={},K.forEach(function(Le,De){N[De]=Le})):N=K,JSON.stringify(N)}var ie="TABS_DQ";function X(K){return String(K).replace(/"/g,ie)}function y(K,N,Le,De){return!(!Le||De||K===!1||K===void 0&&(N===!1||N===null))}var v=A.forwardRef(function(K,N){var Le=K.prefixCls,De=K.editable,Ae=K.locale,it=K.style;return!De||De.showAdd===!1?null:A.createElement("button",{ref:N,type:"button",className:"".concat(Le,"-nav-add"),style:it,"aria-label":(Ae==null?void 0:Ae.addAriaLabel)||"Add tab",onClick:function(Oe){De.onEdit("add",{event:Oe})}},De.addIcon||"+")}),O=v,pe=A.forwardRef(function(K,N){var Le=K.position,De=K.prefixCls,Ae=K.extra;if(!Ae)return null;var it,st={};return(0,B.Z)(Ae)==="object"&&!A.isValidElement(Ae)?st=Ae:st.right=Ae,Le==="right"&&(it=st.right),Le==="left"&&(it=st.left),it?A.createElement("div",{className:"".concat(De,"-extra-content"),ref:N},it):null}),He=pe,tt=_(96478),Ct=_(28321),Rt=_(10228),Ft=A.forwardRef(function(K,N){var Le=K.prefixCls,De=K.id,Ae=K.tabs,it=K.locale,st=K.mobile,Oe=K.more,Et=Oe===void 0?{}:Oe,jt=K.style,wt=K.className,Bt=K.editable,se=K.tabBarGutter,ve=K.rtl,Ee=K.removeAriaLabel,k=K.onTabClick,Y=K.getPopupContainer,he=K.popupClassName,ce=(0,A.useState)(!1),xe=(0,ae.Z)(ce,2),Be=xe[0],Xe=xe[1],ut=(0,A.useState)(null),nt=(0,ae.Z)(ut,2),Ue=nt[0],R=nt[1],U=Et.icon,S=U===void 0?"More":U,ze="".concat(De,"-more-popup"),ke="".concat(Le,"-dropdown"),Pe=Ue!==null?"".concat(ze,"-").concat(Ue):null,Ge=it==null?void 0:it.dropdownAriaLabel;function We(dt,mt){dt.preventDefault(),dt.stopPropagation(),Bt.onEdit("remove",{key:mt,event:dt})}var ct=A.createElement(Ct.ZP,{onClick:function(mt){var Mt=mt.key,bt=mt.domEvent;k(Mt,bt),Xe(!1)},prefixCls:"".concat(ke,"-menu"),id:ze,tabIndex:-1,role:"listbox","aria-activedescendant":Pe,selectedKeys:[Ue],"aria-label":Ge!==void 0?Ge:"expanded dropdown"},Ae.map(function(dt){var mt=dt.closable,Mt=dt.disabled,bt=dt.closeIcon,Tt=dt.key,Kt=dt.label,en=y(mt,bt,Bt,Mt);return A.createElement(Ct.sN,{key:Tt,id:"".concat(ze,"-").concat(Tt),role:"option","aria-controls":De&&"".concat(De,"-panel-").concat(Tt),disabled:Mt},A.createElement("span",null,Kt),en&&A.createElement("button",{type:"button","aria-label":Ee||"remove",tabIndex:0,className:"".concat(ke,"-menu-item-remove"),onClick:function(dn){dn.stopPropagation(),We(dn,Tt)}},bt||Bt.removeIcon||"\xD7"))}));function Lt(dt){for(var mt=Ae.filter(function(en){return!en.disabled}),Mt=mt.findIndex(function(en){return en.key===Ue})||0,bt=mt.length,Tt=0;Tt<bt;Tt+=1){Mt=(Mt+dt+bt)%bt;var Kt=mt[Mt];if(!Kt.disabled){R(Kt.key);return}}}function Pt(dt){var mt=dt.which;if(!Be){[Rt.Z.DOWN,Rt.Z.SPACE,Rt.Z.ENTER].includes(mt)&&(Xe(!0),dt.preventDefault());return}switch(mt){case Rt.Z.UP:Lt(-1),dt.preventDefault();break;case Rt.Z.DOWN:Lt(1),dt.preventDefault();break;case Rt.Z.ESC:Xe(!1);break;case Rt.Z.SPACE:case Rt.Z.ENTER:Ue!==null&&k(Ue,dt);break}}(0,A.useEffect)(function(){var dt=document.getElementById(Pe);dt&&dt.scrollIntoView&&dt.scrollIntoView(!1)},[Ue]),(0,A.useEffect)(function(){Be||R(null)},[Be]);var cn=(0,ue.Z)({},ve?"marginRight":"marginLeft",se);Ae.length||(cn.visibility="hidden",cn.order=1);var Ne=ne()((0,ue.Z)({},"".concat(ke,"-rtl"),ve)),Re=st?null:A.createElement(tt.Z,(0,f.Z)({prefixCls:ke,overlay:ct,visible:Ae.length?Be:!1,onVisibleChange:Xe,overlayClassName:ne()(Ne,he),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Y},Et),A.createElement("button",{type:"button",className:"".concat(Le,"-nav-more"),style:cn,"aria-haspopup":"listbox","aria-controls":ze,id:"".concat(De,"-more"),"aria-expanded":Be,onKeyDown:Pt},S));return A.createElement("div",{className:ne()("".concat(Le,"-nav-operations"),wt),style:jt,ref:N},Re,A.createElement(O,{prefixCls:Le,locale:it,editable:Bt}))}),Ht=A.memo(Ft,function(K,N){return N.tabMoving}),Ke=function(N){var Le=N.prefixCls,De=N.id,Ae=N.active,it=N.focus,st=N.tab,Oe=st.key,Et=st.label,jt=st.disabled,wt=st.closeIcon,Bt=st.icon,se=N.closable,ve=N.renderWrapper,Ee=N.removeAriaLabel,k=N.editable,Y=N.onClick,he=N.onFocus,ce=N.onBlur,xe=N.onKeyDown,Be=N.onMouseDown,Xe=N.onMouseUp,ut=N.style,nt=N.tabCount,Ue=N.currentPosition,R="".concat(Le,"-tab"),U=y(se,wt,k,jt);function S(We){jt||Y(We)}function ze(We){We.preventDefault(),We.stopPropagation(),k.onEdit("remove",{key:Oe,event:We})}var ke=A.useMemo(function(){return Bt&&typeof Et=="string"?A.createElement("span",null,Et):Et},[Et,Bt]),Pe=A.useRef(null);A.useEffect(function(){it&&Pe.current&&Pe.current.focus()},[it]);var Ge=A.createElement("div",{key:Oe,"data-node-key":X(Oe),className:ne()(R,(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(R,"-with-remove"),U),"".concat(R,"-active"),Ae),"".concat(R,"-disabled"),jt),"".concat(R,"-focus"),it)),style:ut,onClick:S},A.createElement("div",{ref:Pe,role:"tab","aria-selected":Ae,id:De&&"".concat(De,"-tab-").concat(Oe),className:"".concat(R,"-btn"),"aria-controls":De&&"".concat(De,"-panel-").concat(Oe),"aria-disabled":jt,tabIndex:jt?null:Ae?0:-1,onClick:function(ct){ct.stopPropagation(),S(ct)},onKeyDown:xe,onMouseDown:Be,onMouseUp:Xe,onFocus:he,onBlur:ce},it&&A.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(Ue," of ").concat(nt)),Bt&&A.createElement("span",{className:"".concat(R,"-icon")},Bt),Et&&ke),U&&A.createElement("button",{type:"button",role:"tab","aria-label":Ee||"remove",tabIndex:Ae?0:-1,className:"".concat(R,"-remove"),onClick:function(ct){ct.stopPropagation(),ze(ct)}},wt||k.removeIcon||"\xD7"));return ve?ve(Ge):Ge},qt=Ke,Dt=function(N,Le){var De=N.offsetWidth,Ae=N.offsetHeight,it=N.offsetTop,st=N.offsetLeft,Oe=N.getBoundingClientRect(),Et=Oe.width,jt=Oe.height,wt=Oe.left,Bt=Oe.top;return Math.abs(Et-De)<1?[Et,jt,wt-Le.left,Bt-Le.top]:[De,Ae,st,it]},sn=function(N){var Le=N.current||{},De=Le.offsetWidth,Ae=De===void 0?0:De,it=Le.offsetHeight,st=it===void 0?0:it;if(N.current){var Oe=N.current.getBoundingClientRect(),Et=Oe.width,jt=Oe.height;if(Math.abs(Et-Ae)<1)return[Et,jt]}return[Ae,st]},Je=function(N,Le){return N[Le?0:1]},yt=A.forwardRef(function(K,N){var Le=K.className,De=K.style,Ae=K.id,it=K.animated,st=K.activeKey,Oe=K.rtl,Et=K.extra,jt=K.editable,wt=K.locale,Bt=K.tabPosition,se=K.tabBarGutter,ve=K.children,Ee=K.onTabClick,k=K.onTabScroll,Y=K.indicator,he=A.useContext(p),ce=he.prefixCls,xe=he.tabs,Be=(0,A.useRef)(null),Xe=(0,A.useRef)(null),ut=(0,A.useRef)(null),nt=(0,A.useRef)(null),Ue=(0,A.useRef)(null),R=(0,A.useRef)(null),U=(0,A.useRef)(null),S=Bt==="top"||Bt==="bottom",ze=w(0,function(on,Vt){S&&k&&k({direction:on>Vt?"left":"right"})}),ke=(0,ae.Z)(ze,2),Pe=ke[0],Ge=ke[1],We=w(0,function(on,Vt){!S&&k&&k({direction:on>Vt?"top":"bottom"})}),ct=(0,ae.Z)(We,2),Lt=ct[0],Pt=ct[1],cn=(0,A.useState)([0,0]),Ne=(0,ae.Z)(cn,2),Re=Ne[0],dt=Ne[1],mt=(0,A.useState)([0,0]),Mt=(0,ae.Z)(mt,2),bt=Mt[0],Tt=Mt[1],Kt=(0,A.useState)([0,0]),en=(0,ae.Z)(Kt,2),At=en[0],dn=en[1],an=(0,A.useState)([0,0]),Jt=(0,ae.Z)(an,2),kt=Jt[0],Ze=Jt[1],ft=Z(new Map),St=(0,ae.Z)(ft,2),Ot=St[0],tn=St[1],et=D(xe,Ot,bt[0]),ln=Je(Re,S),xn=Je(bt,S),Tn=Je(At,S),Cn=Je(kt,S),Yn=Math.floor(ln)<Math.floor(xn+Tn),Dn=Yn?ln-Cn:ln-Tn,Zn="".concat(ce,"-nav-operations-hidden"),On=0,Bn=0;S&&Oe?(On=0,Bn=Math.max(0,xn-Dn)):(On=Math.min(0,Dn-xn),Bn=0);function In(on){return on<On?On:on>Bn?Bn:on}var yn=(0,A.useRef)(null),kn=(0,A.useState)(),pn=(0,ae.Z)(kn,2),En=pn[0],Ln=pn[1];function Mn(){Ln(Date.now())}function zn(){yn.current&&clearTimeout(yn.current)}ge(nt,function(on,Vt){function vn(Rn,nr){Rn(function(Xn){var dr=In(Xn+nr);return dr})}return Yn?(S?vn(Ge,on):vn(Pt,Vt),zn(),Mn(),!0):!1}),(0,A.useEffect)(function(){return zn(),En&&(yn.current=setTimeout(function(){Ln(0)},100)),zn},[En]);var Un=P(et,Dn,S?Pe:Lt,xn,Tn,Cn,(0,z.Z)((0,z.Z)({},K),{},{tabs:xe})),ar=(0,ae.Z)(Un,2),Me=ar[0],Ie=ar[1],Te=(0,I.Z)(function(){var on=arguments.length>0&&arguments[0]!==void 0?arguments[0]:st,Vt=et.get(on)||{width:0,height:0,left:0,right:0,top:0};if(S){var vn=Pe;Oe?Vt.right<Pe?vn=Vt.right:Vt.right+Vt.width>Pe+Dn&&(vn=Vt.right+Vt.width-Dn):Vt.left<-Pe?vn=-Vt.left:Vt.left+Vt.width>-Pe+Dn&&(vn=-(Vt.left+Vt.width-Dn)),Pt(0),Ge(In(vn))}else{var Rn=Lt;Vt.top<-Lt?Rn=-Vt.top:Vt.top+Vt.height>-Lt+Dn&&(Rn=-(Vt.top+Vt.height-Dn)),Ge(0),Pt(In(Rn))}}),lt=(0,A.useState)(),gt=(0,ae.Z)(lt,2),_t=gt[0],zt=gt[1],Wt=(0,A.useState)(!1),It=(0,ae.Z)(Wt,2),vt=It[0],xt=It[1],Nt=xe.filter(function(on){return!on.disabled}).map(function(on){return on.key}),Zt=function(Vt){var vn=Nt.indexOf(_t||st),Rn=Nt.length,nr=(vn+Vt+Rn)%Rn,Xn=Nt[nr];zt(Xn)},nn=function(Vt){var vn=Vt.code,Rn=Oe&&S,nr=Nt[0],Xn=Nt[Nt.length-1];switch(vn){case"ArrowLeft":{S&&Zt(Rn?1:-1);break}case"ArrowRight":{S&&Zt(Rn?-1:1);break}case"ArrowUp":{Vt.preventDefault(),S||Zt(-1);break}case"ArrowDown":{Vt.preventDefault(),S||Zt(1);break}case"Home":{Vt.preventDefault(),zt(nr);break}case"End":{Vt.preventDefault(),zt(Xn);break}case"Enter":case"Space":{Vt.preventDefault(),Ee(st,Vt);break}case"Backspace":case"Delete":{var dr=Nt.indexOf(_t),xr=xe.find(function(Nr){return Nr.key===_t}),Ur=y(xr==null?void 0:xr.closable,xr==null?void 0:xr.closeIcon,jt,xr==null?void 0:xr.disabled);Ur&&(Vt.preventDefault(),Vt.stopPropagation(),jt.onEdit("remove",{key:_t,event:Vt}),dr===Nt.length-1?Zt(-1):Zt(1));break}}},gn={};S?gn[Oe?"marginRight":"marginLeft"]=se:gn.marginTop=se;var Kn=xe.map(function(on,Vt){var vn=on.key;return A.createElement(qt,{id:Ae,prefixCls:ce,key:vn,tab:on,style:Vt===0?void 0:gn,closable:on.closable,editable:jt,active:vn===st,focus:vn===_t,renderWrapper:ve,removeAriaLabel:wt==null?void 0:wt.removeAriaLabel,tabCount:Nt.length,currentPosition:Vt+1,onClick:function(nr){Ee(vn,nr)},onKeyDown:nn,onFocus:function(){vt||zt(vn),Te(vn),Mn(),nt.current&&(Oe||(nt.current.scrollLeft=0),nt.current.scrollTop=0)},onBlur:function(){zt(void 0)},onMouseDown:function(){xt(!0)},onMouseUp:function(){xt(!1)}})}),mn=function(){return tn(function(){var Vt,vn=new Map,Rn=(Vt=Ue.current)===null||Vt===void 0?void 0:Vt.getBoundingClientRect();return xe.forEach(function(nr){var Xn,dr=nr.key,xr=(Xn=Ue.current)===null||Xn===void 0?void 0:Xn.querySelector('[data-node-key="'.concat(X(dr),'"]'));if(xr){var Ur=Dt(xr,Rn),Nr=(0,ae.Z)(Ur,4),zr=Nr[0],Vr=Nr[1],Zr=Nr[2],yr=Nr[3];vn.set(dr,{width:zr,height:Vr,left:Zr,top:yr})}}),vn})};(0,A.useEffect)(function(){mn()},[xe.map(function(on){return on.key}).join("_")]);var Sn=at(function(){var on=sn(Be),Vt=sn(Xe),vn=sn(ut);dt([on[0]-Vt[0]-vn[0],on[1]-Vt[1]-vn[1]]);var Rn=sn(U);dn(Rn);var nr=sn(R);Ze(nr);var Xn=sn(Ue);Tt([Xn[0]-Rn[0],Xn[1]-Rn[1]]),mn()}),Fn=xe.slice(0,Me),Nn=xe.slice(Ie+1),Vn=[].concat((0,E.Z)(Fn),(0,E.Z)(Nn)),wn=et.get(st),Gn=F({activeTabOffset:wn,horizontal:S,indicator:Y,rtl:Oe}),Wn=Gn.style;(0,A.useEffect)(function(){Te()},[st,On,Bn,G(wn),G(et),S]),(0,A.useEffect)(function(){Sn()},[Oe]);var er=!!Vn.length,bn="".concat(ce,"-nav-wrap"),Jn,cr,pt,Qt;return S?Oe?(cr=Pe>0,Jn=Pe!==Bn):(Jn=Pe<0,cr=Pe!==On):(pt=Lt<0,Qt=Lt!==On),A.createElement(b.Z,{onResize:Sn},A.createElement("div",{ref:(0,j.x1)(N,Be),role:"tablist","aria-orientation":S?"horizontal":"vertical",className:ne()("".concat(ce,"-nav"),Le),style:De,onKeyDown:function(){Mn()}},A.createElement(He,{ref:Xe,position:"left",extra:Et,prefixCls:ce}),A.createElement(b.Z,{onResize:Sn},A.createElement("div",{className:ne()(bn,(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(bn,"-ping-left"),Jn),"".concat(bn,"-ping-right"),cr),"".concat(bn,"-ping-top"),pt),"".concat(bn,"-ping-bottom"),Qt)),ref:nt},A.createElement(b.Z,{onResize:Sn},A.createElement("div",{ref:Ue,className:"".concat(ce,"-nav-list"),style:{transform:"translate(".concat(Pe,"px, ").concat(Lt,"px)"),transition:En?"none":void 0}},Kn,A.createElement(O,{ref:U,prefixCls:ce,locale:wt,editable:jt,style:(0,z.Z)((0,z.Z)({},Kn.length===0?void 0:gn),{},{visibility:er?"hidden":null})}),A.createElement("div",{className:ne()("".concat(ce,"-ink-bar"),(0,ue.Z)({},"".concat(ce,"-ink-bar-animated"),it.inkBar)),style:Wn}))))),A.createElement(Ht,(0,f.Z)({},K,{removeAriaLabel:wt==null?void 0:wt.removeAriaLabel,ref:R,prefixCls:ce,tabs:Vn,className:!er&&Zn,tabMoving:!!En})),A.createElement(He,{ref:ut,position:"right",extra:Et,prefixCls:ce})))}),Fe=yt,we=A.forwardRef(function(K,N){var Le=K.prefixCls,De=K.className,Ae=K.style,it=K.id,st=K.active,Oe=K.tabKey,Et=K.children;return A.createElement("div",{id:it&&"".concat(it,"-panel-").concat(Oe),role:"tabpanel",tabIndex:st?0:-1,"aria-labelledby":it&&"".concat(it,"-tab-").concat(Oe),"aria-hidden":!st,style:Ae,className:ne()(Le,st&&"".concat(Le,"-active"),De),ref:N},Et)}),V=we,je=["renderTabBar"],Qe=["label","key"],q=function(N){var Le=N.renderTabBar,De=(0,d.Z)(N,je),Ae=A.useContext(p),it=Ae.tabs;if(Le){var st=(0,z.Z)((0,z.Z)({},De),{},{panes:it.map(function(Oe){var Et=Oe.label,jt=Oe.key,wt=(0,d.Z)(Oe,Qe);return A.createElement(V,(0,f.Z)({tab:Et,key:jt,tabKey:jt},wt))})});return Le(st,Fe)}return A.createElement(Fe,De)},M=q,Se=_(77900),be=["key","forceRender","style","className","destroyInactiveTabPane"],W=function(N){var Le=N.id,De=N.activeKey,Ae=N.animated,it=N.tabPosition,st=N.destroyInactiveTabPane,Oe=A.useContext(p),Et=Oe.prefixCls,jt=Oe.tabs,wt=Ae.tabPane,Bt="".concat(Et,"-tabpane");return A.createElement("div",{className:ne()("".concat(Et,"-content-holder"))},A.createElement("div",{className:ne()("".concat(Et,"-content"),"".concat(Et,"-content-").concat(it),(0,ue.Z)({},"".concat(Et,"-content-animated"),wt))},jt.map(function(se){var ve=se.key,Ee=se.forceRender,k=se.style,Y=se.className,he=se.destroyInactiveTabPane,ce=(0,d.Z)(se,be),xe=ve===De;return A.createElement(Se.default,(0,f.Z)({key:ve,visible:xe,forceRender:Ee,removeOnLeave:!!(st||he),leavedClassName:"".concat(Bt,"-hidden")},Ae.tabPaneMotion),function(Be,Xe){var ut=Be.style,nt=Be.className;return A.createElement(V,(0,f.Z)({},ce,{prefixCls:Bt,id:Le,tabKey:ve,animated:wt,active:xe,style:(0,z.Z)((0,z.Z)({},k),ut),className:ne()(Y,nt),ref:Xe}))})})))},fe=W,ye=_(48736);function $e(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},N;return K===!1?N={inkBar:!1,tabPane:!1}:K===!0?N={inkBar:!0,tabPane:!1}:N=(0,z.Z)({inkBar:!0},(0,B.Z)(K)==="object"?K:{}),N.tabPaneMotion&&N.tabPane===void 0&&(N.tabPane=!0),!N.tabPaneMotion&&N.tabPane&&(N.tabPane=!1),N}var Ve=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],qe=0,Ye=A.forwardRef(function(K,N){var Le=K.id,De=K.prefixCls,Ae=De===void 0?"rc-tabs":De,it=K.className,st=K.items,Oe=K.direction,Et=K.activeKey,jt=K.defaultActiveKey,wt=K.editable,Bt=K.animated,se=K.tabPosition,ve=se===void 0?"top":se,Ee=K.tabBarGutter,k=K.tabBarStyle,Y=K.tabBarExtraContent,he=K.locale,ce=K.more,xe=K.destroyInactiveTabPane,Be=K.renderTabBar,Xe=K.onChange,ut=K.onTabClick,nt=K.onTabScroll,Ue=K.getPopupContainer,R=K.popupClassName,U=K.indicator,S=(0,d.Z)(K,Ve),ze=A.useMemo(function(){return(st||[]).filter(function(kt){return kt&&(0,B.Z)(kt)==="object"&&"key"in kt})},[st]),ke=Oe==="rtl",Pe=$e(Bt),Ge=(0,A.useState)(!1),We=(0,ae.Z)(Ge,2),ct=We[0],Lt=We[1];(0,A.useEffect)(function(){Lt((0,g.Z)())},[]);var Pt=(0,o.Z)(function(){var kt;return(kt=ze[0])===null||kt===void 0?void 0:kt.key},{value:Et,defaultValue:jt}),cn=(0,ae.Z)(Pt,2),Ne=cn[0],Re=cn[1],dt=(0,A.useState)(function(){return ze.findIndex(function(kt){return kt.key===Ne})}),mt=(0,ae.Z)(dt,2),Mt=mt[0],bt=mt[1];(0,A.useEffect)(function(){var kt=ze.findIndex(function(ft){return ft.key===Ne});if(kt===-1){var Ze;kt=Math.max(0,Math.min(Mt,ze.length-1)),Re((Ze=ze[kt])===null||Ze===void 0?void 0:Ze.key)}bt(kt)},[ze.map(function(kt){return kt.key}).join("_"),Ne,Mt]);var Tt=(0,o.Z)(null,{value:Le}),Kt=(0,ae.Z)(Tt,2),en=Kt[0],At=Kt[1];(0,A.useEffect)(function(){Le||(At("rc-tabs-".concat(qe)),qe+=1)},[]);function dn(kt,Ze){ut==null||ut(kt,Ze);var ft=kt!==Ne;Re(kt),ft&&(Xe==null||Xe(kt))}var an={id:en,activeKey:Ne,animated:Pe,tabPosition:ve,rtl:ke,mobile:ct},Jt=(0,z.Z)((0,z.Z)({},an),{},{editable:wt,locale:he,more:ce,tabBarGutter:Ee,onTabClick:dn,onTabScroll:nt,extra:Y,style:k,panes:null,getPopupContainer:Ue,popupClassName:R,indicator:U});return A.createElement(p.Provider,{value:{tabs:ze,prefixCls:Ae}},A.createElement("div",(0,f.Z)({ref:N,id:Le,className:ne()(Ae,"".concat(Ae,"-").concat(ve),(0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(Ae,"-mobile"),ct),"".concat(Ae,"-editable"),wt),"".concat(Ae,"-rtl"),ke),it)},S),A.createElement(M,(0,f.Z)({},Jt,{renderTabBar:Be})),A.createElement(fe,(0,f.Z)({destroyInactiveTabPane:xe},an,{animated:Pe}))))}),ot=Ye,de=ot},22711:function(Pn,Gt,_){"use strict";_.r(Gt),_.d(Gt,{ResizableTextArea:function(){return at},default:function(){return G}});var f=_(32855),ue=_(74430),z=_(27247),ae=_(3300),B=_(11913),d=_(43079),_e=_(92310),ne=_.n(_e),o=_(36901),g=_(66003),A=_(30292),p=_(18929),E=_(59301),b=_(34666),I=_(29301),j=_(34280),$=_(16089),le=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,F=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],H={},D;function w(ie){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=ie.getAttribute("id")||ie.getAttribute("data-reactid")||ie.getAttribute("name");if(X&&H[y])return H[y];var v=window.getComputedStyle(ie),O=v.getPropertyValue("box-sizing")||v.getPropertyValue("-moz-box-sizing")||v.getPropertyValue("-webkit-box-sizing"),pe=parseFloat(v.getPropertyValue("padding-bottom"))+parseFloat(v.getPropertyValue("padding-top")),He=parseFloat(v.getPropertyValue("border-bottom-width"))+parseFloat(v.getPropertyValue("border-top-width")),tt=F.map(function(Rt){return"".concat(Rt,":").concat(v.getPropertyValue(Rt))}).join(";"),Ct={sizingStyle:tt,paddingSize:pe,borderSize:He,boxSizing:O};return X&&y&&(H[y]=Ct),Ct}function Q(ie){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;D||(D=document.createElement("textarea"),D.setAttribute("tab-index","-1"),D.setAttribute("aria-hidden","true"),D.setAttribute("name","hiddenTextarea"),document.body.appendChild(D)),ie.getAttribute("wrap")?D.setAttribute("wrap",ie.getAttribute("wrap")):D.removeAttribute("wrap");var O=w(ie,X),pe=O.paddingSize,He=O.borderSize,tt=O.boxSizing,Ct=O.sizingStyle;D.setAttribute("style","".concat(Ct,";").concat(le)),D.value=ie.value||ie.placeholder||"";var Rt=void 0,Ft=void 0,Ht,Ke=D.scrollHeight;if(tt==="border-box"?Ke+=He:tt==="content-box"&&(Ke-=pe),y!==null||v!==null){D.value=" ";var qt=D.scrollHeight-pe;y!==null&&(Rt=qt*y,tt==="border-box"&&(Rt=Rt+pe+He),Ke=Math.max(Rt,Ke)),v!==null&&(Ft=qt*v,tt==="border-box"&&(Ft=Ft+pe+He),Ht=Ke>Ft?"":"hidden",Ke=Math.min(Ft,Ke))}var Dt={height:Ke,overflowY:Ht,resize:"none"};return Rt&&(Dt.minHeight=Rt),Ft&&(Dt.maxHeight=Ft),Dt}var re=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ee=0,oe=1,ge=2,me=E.forwardRef(function(ie,X){var y=ie,v=y.prefixCls,O=y.defaultValue,pe=y.value,He=y.autoSize,tt=y.onResize,Ct=y.className,Rt=y.style,Ft=y.disabled,Ht=y.onChange,Ke=y.onInternalAutoSize,qt=(0,d.Z)(y,re),Dt=(0,p.Z)(O,{value:pe,postState:function(it){return it!=null?it:""}}),sn=(0,B.Z)(Dt,2),Je=sn[0],yt=sn[1],Fe=function(it){yt(it.target.value),Ht==null||Ht(it)},we=E.useRef();E.useImperativeHandle(X,function(){return{textArea:we.current}});var V=E.useMemo(function(){return He&&(0,b.Z)(He)==="object"?[He.minRows,He.maxRows]:[]},[He]),je=(0,B.Z)(V,2),Qe=je[0],q=je[1],M=!!He,Se=function(){try{if(document.activeElement===we.current){var it=we.current,st=it.selectionStart,Oe=it.selectionEnd,Et=it.scrollTop;we.current.setSelectionRange(st,Oe),we.current.scrollTop=Et}}catch(jt){}},be=E.useState(ge),W=(0,B.Z)(be,2),fe=W[0],ye=W[1],$e=E.useState(),Ve=(0,B.Z)($e,2),qe=Ve[0],Ye=Ve[1],ot=function(){ye(ee)};(0,j.Z)(function(){M&&ot()},[pe,Qe,q,M]),(0,j.Z)(function(){if(fe===ee)ye(oe);else if(fe===oe){var Ae=Q(we.current,!1,Qe,q);ye(ge),Ye(Ae)}else Se()},[fe]);var de=E.useRef(),K=function(){$.Z.cancel(de.current)},N=function(it){fe===ge&&(tt==null||tt(it),He&&(K(),de.current=(0,$.Z)(function(){ot()})))};E.useEffect(function(){return K},[]);var Le=M?qe:null,De=(0,z.Z)((0,z.Z)({},Rt),Le);return(fe===ee||fe===oe)&&(De.overflowY="hidden",De.overflowX="hidden"),E.createElement(I.Z,{onResize:N,disabled:!(He||tt)},E.createElement("textarea",(0,f.Z)({},qt,{ref:we,style:De,className:ne()(v,Ct,(0,ue.Z)({},"".concat(v,"-disabled"),Ft)),disabled:Ft,value:Je,onChange:Fe})))}),at=me,Z=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],T=E.forwardRef(function(ie,X){var y,v=ie.defaultValue,O=ie.value,pe=ie.onFocus,He=ie.onBlur,tt=ie.onChange,Ct=ie.allowClear,Rt=ie.maxLength,Ft=ie.onCompositionStart,Ht=ie.onCompositionEnd,Ke=ie.suffix,qt=ie.prefixCls,Dt=qt===void 0?"rc-textarea":qt,sn=ie.showCount,Je=ie.count,yt=ie.className,Fe=ie.style,we=ie.disabled,V=ie.hidden,je=ie.classNames,Qe=ie.styles,q=ie.onResize,M=ie.onClear,Se=ie.onPressEnter,be=ie.readOnly,W=ie.autoSize,fe=ie.onKeyDown,ye=(0,d.Z)(ie,Z),$e=(0,p.Z)(v,{value:O,defaultValue:v}),Ve=(0,B.Z)($e,2),qe=Ve[0],Ye=Ve[1],ot=qe==null?"":String(qe),de=E.useState(!1),K=(0,B.Z)(de,2),N=K[0],Le=K[1],De=E.useRef(!1),Ae=E.useState(null),it=(0,B.Z)(Ae,2),st=it[0],Oe=it[1],Et=(0,E.useRef)(null),jt=(0,E.useRef)(null),wt=function(){var Lt;return(Lt=jt.current)===null||Lt===void 0?void 0:Lt.textArea},Bt=function(){wt().focus()};(0,E.useImperativeHandle)(X,function(){var ct;return{resizableTextArea:jt.current,focus:Bt,blur:function(){wt().blur()},nativeElement:((ct=Et.current)===null||ct===void 0?void 0:ct.nativeElement)||wt()}}),(0,E.useEffect)(function(){Le(function(ct){return!we&&ct})},[we]);var se=E.useState(null),ve=(0,B.Z)(se,2),Ee=ve[0],k=ve[1];E.useEffect(function(){if(Ee){var ct;(ct=wt()).setSelectionRange.apply(ct,(0,ae.Z)(Ee))}},[Ee]);var Y=(0,g.Z)(Je,sn),he=(y=Y.max)!==null&&y!==void 0?y:Rt,ce=Number(he)>0,xe=Y.strategy(ot),Be=!!he&&xe>he,Xe=function(Lt,Pt){var cn=Pt;!De.current&&Y.exceedFormatter&&Y.max&&Y.strategy(Pt)>Y.max&&(cn=Y.exceedFormatter(Pt,{max:Y.max}),Pt!==cn&&k([wt().selectionStart||0,wt().selectionEnd||0])),Ye(cn),(0,A.rJ)(Lt.currentTarget,Lt,tt,cn)},ut=function(Lt){De.current=!0,Ft==null||Ft(Lt)},nt=function(Lt){De.current=!1,Xe(Lt,Lt.currentTarget.value),Ht==null||Ht(Lt)},Ue=function(Lt){Xe(Lt,Lt.target.value)},R=function(Lt){Lt.key==="Enter"&&Se&&Se(Lt),fe==null||fe(Lt)},U=function(Lt){Le(!0),pe==null||pe(Lt)},S=function(Lt){Le(!1),He==null||He(Lt)},ze=function(Lt){Ye(""),Bt(),(0,A.rJ)(wt(),Lt,tt)},ke=Ke,Pe;Y.show&&(Y.showFormatter?Pe=Y.showFormatter({value:ot,count:xe,maxLength:he}):Pe="".concat(xe).concat(ce?" / ".concat(he):""),ke=E.createElement(E.Fragment,null,ke,E.createElement("span",{className:ne()("".concat(Dt,"-data-count"),je==null?void 0:je.count),style:Qe==null?void 0:Qe.count},Pe)));var Ge=function(Lt){var Pt;q==null||q(Lt),(Pt=wt())!==null&&Pt!==void 0&&Pt.style.height&&Oe(!0)},We=!W&&!sn&&!Ct;return E.createElement(o.BaseInput,{ref:Et,value:ot,allowClear:Ct,handleReset:ze,suffix:ke,prefixCls:Dt,classNames:(0,z.Z)((0,z.Z)({},je),{},{affixWrapper:ne()(je==null?void 0:je.affixWrapper,(0,ue.Z)((0,ue.Z)({},"".concat(Dt,"-show-count"),sn),"".concat(Dt,"-textarea-allow-clear"),Ct))}),disabled:we,focused:N,className:ne()(yt,Be&&"".concat(Dt,"-out-of-range")),style:(0,z.Z)((0,z.Z)({},Fe),st&&!We?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Pe=="string"?Pe:void 0}},hidden:V,readOnly:be,onClear:M},E.createElement(at,(0,f.Z)({},ye,{autoSize:W,maxLength:Rt,onKeyDown:R,onChange:Ue,onFocus:U,onBlur:S,onCompositionStart:ut,onCompositionEnd:nt,className:ne()(je==null?void 0:je.textarea),style:(0,z.Z)((0,z.Z)({},Qe==null?void 0:Qe.textarea),{},{resize:Fe==null?void 0:Fe.resize}),disabled:we,prefixCls:Dt,onResize:Ge,ref:jt,readOnly:be})))}),P=T,G=P},29125:function(Pn,Gt,_){"use strict";_.d(Gt,{G:function(){return ae},Z:function(){return le}});var f=_(92310),ue=_.n(f),z=_(59301);function ae(F){var H=F.children,D=F.prefixCls,w=F.id,Q=F.overlayInnerStyle,re=F.bodyClassName,ee=F.className,oe=F.style;return z.createElement("div",{className:ue()("".concat(D,"-content"),ee),style:oe},z.createElement("div",{className:ue()("".concat(D,"-inner"),re),id:w,role:"tooltip",style:Q},typeof H=="function"?H():H))}var B=_(32855),d=_(27247),_e=_(43079),ne=_(65030),o={shiftX:64,adjustY:1},g={adjustX:1,shiftY:!0},A=[0,0],p={left:{points:["cr","cl"],overflow:g,offset:[-4,0],targetOffset:A},right:{points:["cl","cr"],overflow:g,offset:[4,0],targetOffset:A},top:{points:["bc","tc"],overflow:o,offset:[0,-4],targetOffset:A},bottom:{points:["tc","bc"],overflow:o,offset:[0,4],targetOffset:A},topLeft:{points:["bl","tl"],overflow:o,offset:[0,-4],targetOffset:A},leftTop:{points:["tr","tl"],overflow:g,offset:[-4,0],targetOffset:A},topRight:{points:["br","tr"],overflow:o,offset:[0,-4],targetOffset:A},rightTop:{points:["tl","tr"],overflow:g,offset:[4,0],targetOffset:A},bottomRight:{points:["tr","br"],overflow:o,offset:[0,4],targetOffset:A},rightBottom:{points:["bl","br"],overflow:g,offset:[4,0],targetOffset:A},bottomLeft:{points:["tl","bl"],overflow:o,offset:[0,4],targetOffset:A},leftBottom:{points:["br","bl"],overflow:g,offset:[-4,0],targetOffset:A}},E=null,b=_(80402),I=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],j=function(H,D){var w=H.overlayClassName,Q=H.trigger,re=Q===void 0?["hover"]:Q,ee=H.mouseEnterDelay,oe=ee===void 0?0:ee,ge=H.mouseLeaveDelay,me=ge===void 0?.1:ge,at=H.overlayStyle,Z=H.prefixCls,T=Z===void 0?"rc-tooltip":Z,P=H.children,G=H.onVisibleChange,ie=H.afterVisibleChange,X=H.transitionName,y=H.animation,v=H.motion,O=H.placement,pe=O===void 0?"right":O,He=H.align,tt=He===void 0?{}:He,Ct=H.destroyTooltipOnHide,Rt=Ct===void 0?!1:Ct,Ft=H.defaultVisible,Ht=H.getTooltipContainer,Ke=H.overlayInnerStyle,qt=H.arrowContent,Dt=H.overlay,sn=H.id,Je=H.showArrow,yt=Je===void 0?!0:Je,Fe=H.classNames,we=H.styles,V=(0,_e.Z)(H,I),je=(0,b.Z)(sn),Qe=(0,z.useRef)(null);(0,z.useImperativeHandle)(D,function(){return Qe.current});var q=(0,d.Z)({},V);"visible"in H&&(q.popupVisible=H.visible);var M=function(){return z.createElement(ae,{key:"content",prefixCls:T,id:je,bodyClassName:Fe==null?void 0:Fe.body,overlayInnerStyle:(0,d.Z)((0,d.Z)({},Ke),we==null?void 0:we.body)},Dt)},Se=function(){var W=z.Children.only(P),fe=(W==null?void 0:W.props)||{},ye=(0,d.Z)((0,d.Z)({},fe),{},{"aria-describedby":Dt?je:null});return z.cloneElement(P,ye)};return z.createElement(ne.Z,(0,B.Z)({popupClassName:ue()(w,Fe==null?void 0:Fe.root),prefixCls:T,popup:M,action:re,builtinPlacements:p,popupPlacement:pe,ref:Qe,popupAlign:tt,getPopupContainer:Ht,onPopupVisibleChange:G,afterPopupVisibleChange:ie,popupTransitionName:X,popupAnimation:y,popupMotion:v,defaultPopupVisible:Ft,autoDestroy:Rt,mouseLeaveDelay:me,popupStyle:(0,d.Z)((0,d.Z)({},at),we==null?void 0:we.root),mouseEnterDelay:oe,arrow:yt},q),Se())},$=(0,z.forwardRef)(j),le=$},9940:function(Pn,Gt,_){"use strict";_.d(Gt,{Qw:function(){return sn},FJ:function(){return yt},hT:function(){return Je},OF:function(){return D},ZP:function(){return be}});var f=_(32855),ue=_(3300),z=_(27247),ae=_(11913),B=_(43079),d=_(34666),_e=_(37463),ne=_(6551),o=_(34643),g=_(18929),A=_(48736),p=_(59301),E=function(W){var fe=p.useRef({valueLabels:new Map});return p.useMemo(function(){var ye=fe.current.valueLabels,$e=new Map,Ve=W.map(function(qe){var Ye=qe.value,ot=qe.label,de=ot!=null?ot:ye.get(Ye);return $e.set(Ye,de),(0,z.Z)((0,z.Z)({},qe),{},{label:de})});return fe.current.valueLabels=$e,[Ve]},[W])},b=function(fe,ye,$e,Ve){return p.useMemo(function(){var qe=function(Ae){return Ae.map(function(it){var st=it.value;return st})},Ye=qe(fe),ot=qe(ye),de=Ye.filter(function(De){return!Ve[De]}),K=Ye,N=ot;if($e){var Le=(0,o.S)(Ye,!0,Ve);K=Le.checkedKeys,N=Le.halfCheckedKeys}return[Array.from(new Set([].concat((0,ue.Z)(de),(0,ue.Z)(K)))),N]},[fe,ye,$e,Ve])},I=b,j=_(34061),$=function(W,fe){return p.useMemo(function(){var ye=(0,j.I8)(W,{fieldNames:fe,initWrapper:function(Ve){return(0,z.Z)((0,z.Z)({},Ve),{},{valueEntities:new Map})},processEntity:function(Ve,qe){var Ye=Ve.node[fe.value];if(0)var ot;qe.valueEntities.set(Ye,Ve)}});return ye},[W,fe])},le=_(74430),F=_(11592),H=function(){return null},D=H,w=["children","value"];function Q(W){return(0,F.Z)(W).map(function(fe){if(!p.isValidElement(fe)||!fe.type)return null;var ye=fe,$e=ye.key,Ve=ye.props,qe=Ve.children,Ye=Ve.value,ot=(0,B.Z)(Ve,w),de=(0,z.Z)({key:$e,value:Ye},ot),K=Q(qe);return K.length&&(de.children=K),de}).filter(function(fe){return fe})}function re(W){if(!W)return W;var fe=(0,z.Z)({},W);return"props"in fe||Object.defineProperty(fe,"props",{get:function(){return(0,A.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),fe}}),fe}function ee(W,fe,ye,$e,Ve,qe){var Ye=null,ot=null;function de(){function K(N){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return N.map(function(Ae,it){var st="".concat(Le,"-").concat(it),Oe=Ae[qe.value],Et=ye.includes(Oe),jt=K(Ae[qe.children]||[],st,Et),wt=p.createElement(D,Ae,jt.map(function(se){return se.node}));if(fe===Oe&&(Ye=wt),Et){var Bt={pos:st,node:wt,children:jt};return De||ot.push(Bt),Bt}return null}).filter(function(Ae){return Ae})}ot||(ot=[],K($e),ot.sort(function(N,Le){var De=N.node.props.value,Ae=Le.node.props.value,it=ye.indexOf(De),st=ye.indexOf(Ae);return it-st}))}Object.defineProperty(W,"triggerNode",{get:function(){return(0,A.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),de(),Ye}}),Object.defineProperty(W,"allCheckedNodes",{get:function(){return(0,A.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),de(),Ve?ot:ot.map(function(N){var Le=N.node;return Le})}})}var oe=function(fe,ye,$e){var Ve=$e.fieldNames,qe=$e.treeNodeFilterProp,Ye=$e.filterTreeNode,ot=Ve.children;return p.useMemo(function(){if(!ye||Ye===!1)return fe;var de=typeof Ye=="function"?Ye:function(N,Le){return String(Le[qe]).toUpperCase().includes(ye.toUpperCase())},K=function N(Le){var De=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Le.reduce(function(Ae,it){var st=it[ot],Oe=De||de(ye,re(it)),Et=N(st||[],Oe);return(Oe||Et.length)&&Ae.push((0,z.Z)((0,z.Z)({},it),{},(0,le.Z)({isLeaf:void 0},ot,Et))),Ae},[])};return K(fe)},[fe,ye,ot,qe,Ye])},ge=oe;function me(W){var fe=p.useRef();fe.current=W;var ye=p.useCallback(function(){return fe.current.apply(fe,arguments)},[]);return ye}function at(W,fe){var ye=fe.id,$e=fe.pId,Ve=fe.rootPId,qe=new Map,Ye=[];return W.forEach(function(ot){var de=ot[ye],K=(0,z.Z)((0,z.Z)({},ot),{},{key:ot.key||de});qe.set(de,K)}),qe.forEach(function(ot){var de=ot[$e],K=qe.get(de);K?(K.children=K.children||[],K.children.push(ot)):(de===Ve||Ve===null)&&Ye.push(ot)}),Ye}function Z(W,fe,ye){return p.useMemo(function(){if(W){if(ye){var $e=(0,z.Z)({id:"id",pId:"pId",rootPId:null},(0,d.Z)(ye)==="object"?ye:{});return at(W,$e)}return W}return Q(fe)},[fe,ye,W])}var T=p.createContext(null),P=T,G=_(93162),ie=_(89149),X=_(10228),y=_(80547),v=p.createContext(null),O=v,pe=function(fe){return Array.isArray(fe)?fe:fe!==void 0?[fe]:[]},He=function(fe){var ye=fe||{},$e=ye.label,Ve=ye.value,qe=ye.children;return{_title:$e?[$e]:["title","label"],value:Ve||"value",key:Ve||"value",children:qe||"children"}},tt=function(fe){return!fe||fe.disabled||fe.disableCheckbox||fe.checkable===!1},Ct=function(fe,ye){var $e=[],Ve=function qe(Ye){Ye.forEach(function(ot){var de=ot[ye.children];de&&($e.push(ot[ye.value]),qe(de))})};return Ve(fe),$e},Rt=function(fe){return fe==null},Ft=_(70425),Ht={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ke=function(fe,ye){var $e=(0,_e.lk)(),Ve=$e.prefixCls,qe=$e.multiple,Ye=$e.searchValue,ot=$e.toggleOpen,de=$e.open,K=$e.notFoundContent,N=p.useContext(O),Le=N.virtual,De=N.listHeight,Ae=N.listItemHeight,it=N.listItemScrollOffset,st=N.treeData,Oe=N.fieldNames,Et=N.onSelect,jt=N.dropdownMatchSelectWidth,wt=N.treeExpandAction,Bt=N.treeTitleRender,se=N.onPopupScroll,ve=N.leftMaxCount,Ee=N.leafCountOnly,k=N.valueEntities,Y=p.useContext(P),he=Y.checkable,ce=Y.checkedKeys,xe=Y.halfCheckedKeys,Be=Y.treeExpandedKeys,Xe=Y.treeDefaultExpandAll,ut=Y.treeDefaultExpandedKeys,nt=Y.onTreeExpand,Ue=Y.treeIcon,R=Y.showTreeIcon,U=Y.switcherIcon,S=Y.treeLine,ze=Y.treeNodeFilterProp,ke=Y.loadData,Pe=Y.treeLoadedKeys,Ge=Y.treeMotion,We=Y.onTreeLoad,ct=Y.keyEntities,Lt=p.useRef(),Pt=(0,y.Z)(function(){return st},[de,st],function(In,yn){return yn[0]&&In[1]!==yn[1]}),cn=p.useMemo(function(){return he?{checked:ce,halfChecked:xe}:null},[he,ce,xe]);p.useEffect(function(){if(de&&!qe&&ce.length){var In;(In=Lt.current)===null||In===void 0||In.scrollTo({key:ce[0]})}},[de]);var Ne=function(yn){yn.preventDefault()},Re=function(yn,kn){var pn=kn.node;he&&tt(pn)||(Et(pn.key,{selected:!ce.includes(pn.key)}),qe||ot(!1))},dt=p.useState(ut),mt=(0,ae.Z)(dt,2),Mt=mt[0],bt=mt[1],Tt=p.useState(null),Kt=(0,ae.Z)(Tt,2),en=Kt[0],At=Kt[1],dn=p.useMemo(function(){return Be?(0,ue.Z)(Be):Ye?en:Mt},[Mt,en,Be,Ye]),an=function(yn){bt(yn),At(yn),nt&&nt(yn)},Jt=String(Ye).toLowerCase(),kt=function(yn){return Jt?String(yn[ze]).toLowerCase().includes(Jt):!1};p.useEffect(function(){Ye&&At(Ct(st,Oe))},[Ye]);var Ze=p.useState(function(){return new Map}),ft=(0,ae.Z)(Ze,2),St=ft[0],Ot=ft[1];p.useEffect(function(){ve&&Ot(new Map)},[ve]);function tn(In){var yn=In[Oe.value];if(!St.has(yn)){var kn=k.get(yn),pn=(kn.children||[]).length===0;if(pn)St.set(yn,!1);else{var En=kn.children.filter(function(Mn){return!Mn.node.disabled&&!Mn.node.disableCheckbox&&!ce.includes(Mn.node[Oe.value])}),Ln=En.length;St.set(yn,Ln>ve)}}return St.get(yn)}var et=(0,Ft.zX)(function(In){var yn=In[Oe.value];return ce.includes(yn)||ve===null?!1:ve<=0?!0:Ee&&ve?tn(In):!1}),ln=function In(yn){var kn=(0,G.Z)(yn),pn;try{for(kn.s();!(pn=kn.n()).done;){var En=pn.value;if(!(En.disabled||En.selectable===!1)){if(Ye){if(kt(En))return En}else return En;if(En[Oe.children]){var Ln=In(En[Oe.children]);if(Ln)return Ln}}}}catch(Mn){kn.e(Mn)}finally{kn.f()}return null},xn=p.useState(null),Tn=(0,ae.Z)(xn,2),Cn=Tn[0],Yn=Tn[1],Dn=ct[Cn];p.useEffect(function(){if(de){var In=null,yn=function(){var pn=ln(Pt);return pn?pn[Oe.value]:null};!qe&&ce.length&&!Ye?In=ce[0]:In=yn(),Yn(In)}},[de,Ye]),p.useImperativeHandle(ye,function(){var In;return{scrollTo:(In=Lt.current)===null||In===void 0?void 0:In.scrollTo,onKeyDown:function(kn){var pn,En=kn.which;switch(En){case X.Z.UP:case X.Z.DOWN:case X.Z.LEFT:case X.Z.RIGHT:(pn=Lt.current)===null||pn===void 0||pn.onKeyDown(kn);break;case X.Z.ENTER:{if(Dn){var Ln=et(Dn.node),Mn=(Dn==null?void 0:Dn.node)||{},zn=Mn.selectable,Un=Mn.value,ar=Mn.disabled;zn!==!1&&!ar&&!Ln&&Re(null,{node:{key:Cn},selected:!ce.includes(Un)})}break}case X.Z.ESC:ot(!1)}},onKeyUp:function(){}}});var Zn=(0,y.Z)(function(){return!Ye},[Ye,Be||Mt],function(In,yn){var kn=(0,ae.Z)(In,1),pn=kn[0],En=(0,ae.Z)(yn,2),Ln=En[0],Mn=En[1];return pn!==Ln&&!!(Ln||Mn)}),On=Zn?ke:null;if(Pt.length===0)return p.createElement("div",{role:"listbox",className:"".concat(Ve,"-empty"),onMouseDown:Ne},K);var Bn={fieldNames:Oe};return Pe&&(Bn.loadedKeys=Pe),dn&&(Bn.expandedKeys=dn),p.createElement("div",{onMouseDown:Ne},Dn&&de&&p.createElement("span",{style:Ht,"aria-live":"assertive"},Dn.node.value),p.createElement(ie.y6.Provider,{value:{nodeDisabled:et}},p.createElement(ie.ZP,(0,f.Z)({ref:Lt,focusable:!1,prefixCls:"".concat(Ve,"-tree"),treeData:Pt,height:De,itemHeight:Ae,itemScrollOffset:it,virtual:Le!==!1&&jt!==!1,multiple:qe,icon:Ue,showIcon:R,switcherIcon:U,showLine:S,loadData:On,motion:Ge,activeKey:Cn,checkable:he,checkStrictly:!0,checkedKeys:cn,selectedKeys:he?[]:ce,defaultExpandAll:Xe,titleRender:Bt},Bn,{onActiveChange:Yn,onSelect:Re,onCheck:Re,onExpand:an,onLoad:We,filterTreeNode:kt,expandAction:wt,onScroll:se}))))},qt=p.forwardRef(Ke),Dt=qt,sn="SHOW_ALL",Je="SHOW_PARENT",yt="SHOW_CHILD";function Fe(W,fe,ye,$e){var Ve=new Set(W);return fe===yt?W.filter(function(qe){var Ye=ye[qe];return!Ye||!Ye.children||!Ye.children.some(function(ot){var de=ot.node;return Ve.has(de[$e.value])})||!Ye.children.every(function(ot){var de=ot.node;return tt(de)||Ve.has(de[$e.value])})}):fe===Je?W.filter(function(qe){var Ye=ye[qe],ot=Ye?Ye.parent:null;return!ot||tt(ot.node)||!Ve.has(ot.key)}):W}function we(W){var fe=W.searchPlaceholder,ye=W.treeCheckStrictly,$e=W.treeCheckable,Ve=W.labelInValue,qe=W.value,Ye=W.multiple,ot=W.showCheckedStrategy,de=W.maxCount;warning(!fe,"`searchPlaceholder` has been removed."),ye&&Ve===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Ve||ye)&&warning(toArray(qe).every(function(K){return K&&_typeof(K)==="object"&&"value"in K}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),ye||Ye||$e?warning(!qe||Array.isArray(qe),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(qe),"`value` should not be array when `TreeSelect` is single mode."),de&&(ot==="SHOW_ALL"&&!ye||ot==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var V=null,je=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function Qe(W){return!W||(0,d.Z)(W)!=="object"}var q=p.forwardRef(function(W,fe){var ye=W.id,$e=W.prefixCls,Ve=$e===void 0?"rc-tree-select":$e,qe=W.value,Ye=W.defaultValue,ot=W.onChange,de=W.onSelect,K=W.onDeselect,N=W.searchValue,Le=W.inputValue,De=W.onSearch,Ae=W.autoClearSearchValue,it=Ae===void 0?!0:Ae,st=W.filterTreeNode,Oe=W.treeNodeFilterProp,Et=Oe===void 0?"value":Oe,jt=W.showCheckedStrategy,wt=W.treeNodeLabelProp,Bt=W.multiple,se=W.treeCheckable,ve=W.treeCheckStrictly,Ee=W.labelInValue,k=W.maxCount,Y=W.fieldNames,he=W.treeDataSimpleMode,ce=W.treeData,xe=W.children,Be=W.loadData,Xe=W.treeLoadedKeys,ut=W.onTreeLoad,nt=W.treeDefaultExpandAll,Ue=W.treeExpandedKeys,R=W.treeDefaultExpandedKeys,U=W.onTreeExpand,S=W.treeExpandAction,ze=W.virtual,ke=W.listHeight,Pe=ke===void 0?200:ke,Ge=W.listItemHeight,We=Ge===void 0?20:Ge,ct=W.listItemScrollOffset,Lt=ct===void 0?0:ct,Pt=W.onDropdownVisibleChange,cn=W.dropdownMatchSelectWidth,Ne=cn===void 0?!0:cn,Re=W.treeLine,dt=W.treeIcon,mt=W.showTreeIcon,Mt=W.switcherIcon,bt=W.treeMotion,Tt=W.treeTitleRender,Kt=W.onPopupScroll,en=(0,B.Z)(W,je),At=(0,ne.ZP)(ye),dn=se&&!ve,an=se||ve,Jt=ve||Ee,kt=an||Bt,Ze=(0,g.Z)(Ye,{value:qe}),ft=(0,ae.Z)(Ze,2),St=ft[0],Ot=ft[1],tn=p.useMemo(function(){return se?jt||yt:sn},[jt,se]),et=p.useMemo(function(){return He(Y)},[JSON.stringify(Y)]),ln=(0,g.Z)("",{value:N!==void 0?N:Le,postState:function(Sn){return Sn||""}}),xn=(0,ae.Z)(ln,2),Tn=xn[0],Cn=xn[1],Yn=function(Sn){Cn(Sn),De==null||De(Sn)},Dn=Z(ce,xe,he),Zn=$(Dn,et),On=Zn.keyEntities,Bn=Zn.valueEntities,In=p.useCallback(function(mn){var Sn=[],Fn=[];return mn.forEach(function(Nn){Bn.has(Nn)?Fn.push(Nn):Sn.push(Nn)}),{missingRawValues:Sn,existRawValues:Fn}},[Bn]),yn=ge(Dn,Tn,{fieldNames:et,treeNodeFilterProp:Et,filterTreeNode:st}),kn=p.useCallback(function(mn){if(mn){if(wt)return mn[wt];for(var Sn=et._title,Fn=0;Fn<Sn.length;Fn+=1){var Nn=mn[Sn[Fn]];if(Nn!==void 0)return Nn}}},[et,wt]),pn=p.useCallback(function(mn){var Sn=pe(mn);return Sn.map(function(Fn){return Qe(Fn)?{value:Fn}:Fn})},[]),En=p.useCallback(function(mn){var Sn=pn(mn);return Sn.map(function(Fn){var Nn=Fn.label,Vn=Fn.value,wn=Fn.halfChecked,Gn,Wn=Bn.get(Vn);if(Wn){var er;Nn=Tt?Tt(Wn.node):(er=Nn)!==null&&er!==void 0?er:kn(Wn.node),Gn=Wn.node.disabled}else if(Nn===void 0){var bn=pn(St).find(function(Jn){return Jn.value===Vn});Nn=bn.label}return{label:Nn,value:Vn,halfChecked:wn,disabled:Gn}})},[Bn,kn,pn,St]),Ln=p.useMemo(function(){return pn(St===null?[]:St)},[pn,St]),Mn=p.useMemo(function(){var mn=[],Sn=[];return Ln.forEach(function(Fn){Fn.halfChecked?Sn.push(Fn):mn.push(Fn)}),[mn,Sn]},[Ln]),zn=(0,ae.Z)(Mn,2),Un=zn[0],ar=zn[1],Me=p.useMemo(function(){return Un.map(function(mn){return mn.value})},[Un]),Ie=I(Un,ar,dn,On),Te=(0,ae.Z)(Ie,2),lt=Te[0],gt=Te[1],_t=p.useMemo(function(){var mn=Fe(lt,tn,On,et),Sn=mn.map(function(wn){var Gn,Wn;return(Gn=(Wn=On[wn])===null||Wn===void 0||(Wn=Wn.node)===null||Wn===void 0?void 0:Wn[et.value])!==null&&Gn!==void 0?Gn:wn}),Fn=Sn.map(function(wn){var Gn=Un.find(function(er){return er.value===wn}),Wn=Ee?Gn==null?void 0:Gn.label:Tt==null?void 0:Tt(Gn);return{value:wn,label:Wn}}),Nn=En(Fn),Vn=Nn[0];return!kt&&Vn&&Rt(Vn.value)&&Rt(Vn.label)?[]:Nn.map(function(wn){var Gn;return(0,z.Z)((0,z.Z)({},wn),{},{label:(Gn=wn.label)!==null&&Gn!==void 0?Gn:wn.value})})},[et,kt,lt,Un,En,tn,On]),zt=E(_t),Wt=(0,ae.Z)(zt,1),It=Wt[0],vt=p.useMemo(function(){return kt&&(tn==="SHOW_CHILD"||ve||!se)?k:null},[k,kt,ve,tn,se]),xt=me(function(mn,Sn,Fn){var Nn=Fe(mn,tn,On,et);if(!(vt&&Nn.length>vt)){var Vn=En(mn);if(Ot(Vn),it&&Cn(""),ot){var wn=mn;dn&&(wn=Nn.map(function(Vt){var vn=Bn.get(Vt);return vn?vn.node[et.value]:Vt}));var Gn=Sn||{triggerValue:void 0,selected:void 0},Wn=Gn.triggerValue,er=Gn.selected,bn=wn;if(ve){var Jn=ar.filter(function(Vt){return!wn.includes(Vt.value)});bn=[].concat((0,ue.Z)(bn),(0,ue.Z)(Jn))}var cr=En(bn),pt={preValue:Un,triggerValue:Wn},Qt=!0;(ve||Fn==="selection"&&!er)&&(Qt=!1),ee(pt,Wn,mn,Dn,Qt,et),an?pt.checked=er:pt.selected=er;var on=Jt?cr:cr.map(function(Vt){return Vt.value});ot(kt?on:on[0],Jt?null:cr.map(function(Vt){return Vt.label}),pt)}}}),Nt=p.useCallback(function(mn,Sn){var Fn,Nn=Sn.selected,Vn=Sn.source,wn=On[mn],Gn=wn==null?void 0:wn.node,Wn=(Fn=Gn==null?void 0:Gn[et.value])!==null&&Fn!==void 0?Fn:mn;if(!kt)xt([Wn],{selected:!0,triggerValue:Wn},"option");else{var er=Nn?[].concat((0,ue.Z)(Me),[Wn]):lt.filter(function(vn){return vn!==Wn});if(dn){var bn=In(er),Jn=bn.missingRawValues,cr=bn.existRawValues,pt=cr.map(function(vn){return Bn.get(vn).key}),Qt;if(Nn){var on=(0,o.S)(pt,!0,On);Qt=on.checkedKeys}else{var Vt=(0,o.S)(pt,{checked:!1,halfCheckedKeys:gt},On);Qt=Vt.checkedKeys}er=[].concat((0,ue.Z)(Jn),(0,ue.Z)(Qt.map(function(vn){return On[vn].node[et.value]})))}xt(er,{selected:Nn,triggerValue:Wn},Vn||"option")}Nn||!kt?de==null||de(Wn,re(Gn)):K==null||K(Wn,re(Gn))},[In,Bn,On,et,kt,Me,xt,dn,de,K,lt,gt,k]),Zt=p.useCallback(function(mn){if(Pt){var Sn={};Object.defineProperty(Sn,"documentClickClose",{get:function(){return(0,A.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Pt(mn,Sn)}},[Pt]),nn=me(function(mn,Sn){var Fn=mn.map(function(Nn){return Nn.value});if(Sn.type==="clear"){xt(Fn,{},"selection");return}Sn.values.length&&Nt(Sn.values[0].value,{selected:!1,source:"selection"})}),gn=p.useMemo(function(){return{virtual:ze,dropdownMatchSelectWidth:Ne,listHeight:Pe,listItemHeight:We,listItemScrollOffset:Lt,treeData:yn,fieldNames:et,onSelect:Nt,treeExpandAction:S,treeTitleRender:Tt,onPopupScroll:Kt,leftMaxCount:k===void 0?null:k-It.length,leafCountOnly:tn==="SHOW_CHILD"&&!ve&&!!se,valueEntities:Bn}},[ze,Ne,Pe,We,Lt,yn,et,Nt,S,Tt,Kt,k,It.length,tn,ve,se,Bn]),Kn=p.useMemo(function(){return{checkable:an,loadData:Be,treeLoadedKeys:Xe,onTreeLoad:ut,checkedKeys:lt,halfCheckedKeys:gt,treeDefaultExpandAll:nt,treeExpandedKeys:Ue,treeDefaultExpandedKeys:R,onTreeExpand:U,treeIcon:dt,treeMotion:bt,showTreeIcon:mt,switcherIcon:Mt,treeLine:Re,treeNodeFilterProp:Et,keyEntities:On}},[an,Be,Xe,ut,lt,gt,nt,Ue,R,U,dt,bt,mt,Mt,Re,Et,On]);return p.createElement(O.Provider,{value:gn},p.createElement(P.Provider,{value:Kn},p.createElement(_e.Ac,(0,f.Z)({ref:fe},en,{id:At,prefixCls:Ve,mode:kt?"multiple":void 0,displayValues:It,onDisplayValuesChange:nn,searchValue:Tn,onSearch:Yn,OptionList:Dt,emptyOptions:!Dn.length,onDropdownVisibleChange:Zt,dropdownMatchSelectWidth:Ne}))))}),M=q;M.TreeNode=D,M.SHOW_ALL=sn,M.SHOW_PARENT=Je,M.SHOW_CHILD=yt;var Se=M,be=Se},639:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return H}});var f=_(32855),ue=_(74430),z=_(27247),ae=_(11913),B=_(43079),d=_(59301),_e=_(92310),ne=_.n(_e),o=_(26112),g=_(30699),A=function(w){for(var Q=w.prefixCls,re=w.level,ee=w.isStart,oe=w.isEnd,ge="".concat(Q,"-indent-unit"),me=[],at=0;at<re;at+=1)me.push(d.createElement("span",{key:at,className:ne()(ge,(0,ue.Z)((0,ue.Z)({},"".concat(ge,"-start"),ee[at]),"".concat(ge,"-end"),oe[at]))}));return d.createElement("span",{"aria-hidden":"true",className:"".concat(Q,"-indent")},me)},p=d.memo(A),E=_(65065),b=_(34061),I=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],j="open",$="close",le="---",F=function(w){var Q,re,ee,oe=w.eventKey,ge=w.className,me=w.style,at=w.dragOver,Z=w.dragOverGapTop,T=w.dragOverGapBottom,P=w.isLeaf,G=w.isStart,ie=w.isEnd,X=w.expanded,y=w.selected,v=w.checked,O=w.halfChecked,pe=w.loading,He=w.domRef,tt=w.active,Ct=w.data,Rt=w.onMouseMove,Ft=w.selectable,Ht=(0,B.Z)(w,I),Ke=d.useContext(g.k),qt=d.useContext(g.y),Dt=d.useRef(null),sn=d.useState(!1),Je=(0,ae.Z)(sn,2),yt=Je[0],Fe=Je[1],we=!!(Ke.disabled||w.disabled||(Q=qt.nodeDisabled)!==null&&Q!==void 0&&Q.call(qt,Ct)),V=d.useMemo(function(){return!Ke.checkable||w.checkable===!1?!1:Ke.checkable},[Ke.checkable,w.checkable]),je=function(xe){we||Ke.onNodeSelect(xe,(0,b.F)(w))},Qe=function(xe){we||!V||w.disableCheckbox||Ke.onNodeCheck(xe,(0,b.F)(w),!v)},q=d.useMemo(function(){return typeof Ft=="boolean"?Ft:Ke.selectable},[Ft,Ke.selectable]),M=function(xe){Ke.onNodeClick(xe,(0,b.F)(w)),q?je(xe):Qe(xe)},Se=function(xe){Ke.onNodeDoubleClick(xe,(0,b.F)(w))},be=function(xe){Ke.onNodeMouseEnter(xe,(0,b.F)(w))},W=function(xe){Ke.onNodeMouseLeave(xe,(0,b.F)(w))},fe=function(xe){Ke.onNodeContextMenu(xe,(0,b.F)(w))},ye=d.useMemo(function(){return!!(Ke.draggable&&(!Ke.draggable.nodeDraggable||Ke.draggable.nodeDraggable(Ct)))},[Ke.draggable,Ct]),$e=function(xe){xe.stopPropagation(),Fe(!0),Ke.onNodeDragStart(xe,w);try{xe.dataTransfer.setData("text/plain","")}catch(Be){}},Ve=function(xe){xe.preventDefault(),xe.stopPropagation(),Ke.onNodeDragEnter(xe,w)},qe=function(xe){xe.preventDefault(),xe.stopPropagation(),Ke.onNodeDragOver(xe,w)},Ye=function(xe){xe.stopPropagation(),Ke.onNodeDragLeave(xe,w)},ot=function(xe){xe.stopPropagation(),Fe(!1),Ke.onNodeDragEnd(xe,w)},de=function(xe){xe.preventDefault(),xe.stopPropagation(),Fe(!1),Ke.onNodeDrop(xe,w)},K=function(xe){pe||Ke.onNodeExpand(xe,(0,b.F)(w))},N=d.useMemo(function(){var ce=(0,E.Z)(Ke.keyEntities,oe)||{},xe=ce.children;return!!(xe||[]).length},[Ke.keyEntities,oe]),Le=d.useMemo(function(){return P===!1?!1:P||!Ke.loadData&&!N||Ke.loadData&&w.loaded&&!N},[P,Ke.loadData,N,w.loaded]);d.useEffect(function(){pe||typeof Ke.loadData=="function"&&X&&!Le&&!w.loaded&&Ke.onNodeLoad((0,b.F)(w))},[pe,Ke.loadData,Ke.onNodeLoad,X,Le,w]);var De=d.useMemo(function(){var ce;return(ce=Ke.draggable)!==null&&ce!==void 0&&ce.icon?d.createElement("span",{className:"".concat(Ke.prefixCls,"-draggable-icon")},Ke.draggable.icon):null},[Ke.draggable]),Ae=function(xe){var Be=w.switcherIcon||Ke.switcherIcon;return typeof Be=="function"?Be((0,z.Z)((0,z.Z)({},w),{},{isLeaf:xe})):Be},it=function(){if(Le){var xe=Ae(!0);return xe!==!1?d.createElement("span",{className:ne()("".concat(Ke.prefixCls,"-switcher"),"".concat(Ke.prefixCls,"-switcher-noop"))},xe):null}var Be=Ae(!1);return Be!==!1?d.createElement("span",{onClick:K,className:ne()("".concat(Ke.prefixCls,"-switcher"),"".concat(Ke.prefixCls,"-switcher_").concat(X?j:$))},Be):null},st=d.useMemo(function(){if(!V)return null;var ce=typeof V!="boolean"?V:null;return d.createElement("span",{className:ne()("".concat(Ke.prefixCls,"-checkbox"),(0,ue.Z)((0,ue.Z)((0,ue.Z)({},"".concat(Ke.prefixCls,"-checkbox-checked"),v),"".concat(Ke.prefixCls,"-checkbox-indeterminate"),!v&&O),"".concat(Ke.prefixCls,"-checkbox-disabled"),we||w.disableCheckbox)),onClick:Qe,role:"checkbox","aria-checked":O?"mixed":v,"aria-disabled":we||w.disableCheckbox,"aria-label":"Select ".concat(typeof w.title=="string"?w.title:"tree node")},ce)},[V,v,O,we,w.disableCheckbox,w.title]),Oe=d.useMemo(function(){return Le?null:X?j:$},[Le,X]),Et=d.useMemo(function(){return d.createElement("span",{className:ne()("".concat(Ke.prefixCls,"-iconEle"),"".concat(Ke.prefixCls,"-icon__").concat(Oe||"docu"),(0,ue.Z)({},"".concat(Ke.prefixCls,"-icon_loading"),pe))})},[Ke.prefixCls,Oe,pe]),jt=d.useMemo(function(){var ce=!!Ke.draggable,xe=!w.disabled&&ce&&Ke.dragOverNodeKey===oe;return xe?Ke.dropIndicatorRender({dropPosition:Ke.dropPosition,dropLevelOffset:Ke.dropLevelOffset,indent:Ke.indent,prefixCls:Ke.prefixCls,direction:Ke.direction}):null},[Ke.dropPosition,Ke.dropLevelOffset,Ke.indent,Ke.prefixCls,Ke.direction,Ke.draggable,Ke.dragOverNodeKey,Ke.dropIndicatorRender]),wt=d.useMemo(function(){var ce=w.title,xe=ce===void 0?le:ce,Be="".concat(Ke.prefixCls,"-node-content-wrapper"),Xe;if(Ke.showIcon){var ut=w.icon||Ke.icon;Xe=ut?d.createElement("span",{className:ne()("".concat(Ke.prefixCls,"-iconEle"),"".concat(Ke.prefixCls,"-icon__customize"))},typeof ut=="function"?ut(w):ut):Et}else Ke.loadData&&pe&&(Xe=Et);var nt;return typeof xe=="function"?nt=xe(Ct):Ke.titleRender?nt=Ke.titleRender(Ct):nt=xe,d.createElement("span",{ref:Dt,title:typeof xe=="string"?xe:"",className:ne()(Be,"".concat(Be,"-").concat(Oe||"normal"),(0,ue.Z)({},"".concat(Ke.prefixCls,"-node-selected"),!we&&(y||yt))),onMouseEnter:be,onMouseLeave:W,onContextMenu:fe,onClick:M,onDoubleClick:Se},Xe,d.createElement("span",{className:"".concat(Ke.prefixCls,"-title")},nt),jt)},[Ke.prefixCls,Ke.showIcon,w,Ke.icon,Et,Ke.titleRender,Ct,Oe,be,W,fe,M,Se]),Bt=(0,o.Z)(Ht,{aria:!0,data:!0}),se=(0,E.Z)(Ke.keyEntities,oe)||{},ve=se.level,Ee=ie[ie.length-1],k=!we&&ye,Y=Ke.draggingNodeKey===oe,he=Ft!==void 0?{"aria-selected":!!Ft}:void 0;return d.createElement("div",(0,f.Z)({ref:He,role:"treeitem","aria-expanded":P?void 0:X,className:ne()(ge,"".concat(Ke.prefixCls,"-treenode"),(ee={},(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)(ee,"".concat(Ke.prefixCls,"-treenode-disabled"),we),"".concat(Ke.prefixCls,"-treenode-switcher-").concat(X?"open":"close"),!P),"".concat(Ke.prefixCls,"-treenode-checkbox-checked"),v),"".concat(Ke.prefixCls,"-treenode-checkbox-indeterminate"),O),"".concat(Ke.prefixCls,"-treenode-selected"),y),"".concat(Ke.prefixCls,"-treenode-loading"),pe),"".concat(Ke.prefixCls,"-treenode-active"),tt),"".concat(Ke.prefixCls,"-treenode-leaf-last"),Ee),"".concat(Ke.prefixCls,"-treenode-draggable"),ye),"dragging",Y),(0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)((0,ue.Z)(ee,"drop-target",Ke.dropTargetKey===oe),"drop-container",Ke.dropContainerKey===oe),"drag-over",!we&&at),"drag-over-gap-top",!we&&Z),"drag-over-gap-bottom",!we&&T),"filter-node",(re=Ke.filterTreeNode)===null||re===void 0?void 0:re.call(Ke,(0,b.F)(w))),"".concat(Ke.prefixCls,"-treenode-leaf"),Le))),style:me,draggable:k,onDragStart:k?$e:void 0,onDragEnter:ye?Ve:void 0,onDragOver:ye?qe:void 0,onDragLeave:ye?Ye:void 0,onDrop:ye?de:void 0,onDragEnd:ye?ot:void 0,onMouseMove:Rt},he,Bt),d.createElement(p,{prefixCls:Ke.prefixCls,level:ve,isStart:G,isEnd:ie}),De,it(),st,wt)};F.isTreeNode=1;var H=F},30699:function(Pn,Gt,_){"use strict";_.d(Gt,{k:function(){return ue},y:function(){return z}});var f=_(59301),ue=f.createContext(null),z=f.createContext({})},89149:function(Pn,Gt,_){"use strict";_.d(Gt,{OF:function(){return oe.Z},y6:function(){return $.y},ZP:function(){return we}});var f=_(32855),ue=_(34666),z=_(27247),ae=_(3300),B=_(33377),d=_(93912),_e=_(83383),ne=_(18881),o=_(85461),g=_(74430),A=_(92310),p=_.n(A),E=_(10228),b=_(26112),I=_(48736),j=_(59301),$=_(30699),le=function(je){var Qe=je.dropPosition,q=je.dropLevelOffset,M=je.indent,Se={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Qe){case-1:Se.top=0,Se.left=-q*M;break;case 1:Se.bottom=0,Se.left=-q*M;break;case 0:Se.bottom=0,Se.left=M;break}return j.createElement("div",{style:Se})},F=le;function H(V){if(V==null)throw new TypeError("Cannot destructure "+V)}var D=_(11913),w=_(43079),Q=_(34280),re=_(6790),ee=_(77900),oe=_(639);function ge(V,je){var Qe=j.useState(!1),q=(0,D.Z)(Qe,2),M=q[0],Se=q[1];(0,Q.Z)(function(){if(M)return V(),function(){je()}},[M]),(0,Q.Z)(function(){return Se(!0),function(){Se(!1)}},[])}var me=ge,at=_(34061),Z=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],T=j.forwardRef(function(V,je){var Qe=V.className,q=V.style,M=V.motion,Se=V.motionNodes,be=V.motionType,W=V.onMotionStart,fe=V.onMotionEnd,ye=V.active,$e=V.treeNodeRequiredProps,Ve=(0,w.Z)(V,Z),qe=j.useState(!0),Ye=(0,D.Z)(qe,2),ot=Ye[0],de=Ye[1],K=j.useContext($.k),N=K.prefixCls,Le=Se&&be!=="hide";(0,Q.Z)(function(){Se&&Le!==ot&&de(Le)},[Se]);var De=function(){Se&&W()},Ae=j.useRef(!1),it=function(){Se&&!Ae.current&&(Ae.current=!0,fe())};me(De,it);var st=function(Et){Le===Et&&it()};return Se?j.createElement(ee.default,(0,f.Z)({ref:je,visible:ot},M,{motionAppear:be==="show",onVisibleChanged:st}),function(Oe,Et){var jt=Oe.className,wt=Oe.style;return j.createElement("div",{ref:Et,className:p()("".concat(N,"-treenode-motion"),jt),style:wt},Se.map(function(Bt){var se=Object.assign({},(H(Bt.data),Bt.data)),ve=Bt.title,Ee=Bt.key,k=Bt.isStart,Y=Bt.isEnd;delete se.children;var he=(0,at.H8)(Ee,$e);return j.createElement(oe.Z,(0,f.Z)({},se,he,{title:ve,active:ye,data:Bt.data,key:Ee,isStart:k,isEnd:Y}))}))}):j.createElement(oe.Z,(0,f.Z)({domRef:je,className:Qe,style:q},Ve,{active:ye}))}),P=T;function G(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Qe=V.length,q=je.length;if(Math.abs(Qe-q)!==1)return{add:!1,key:null};function M(Se,be){var W=new Map;Se.forEach(function(ye){W.set(ye,!0)});var fe=be.filter(function(ye){return!W.has(ye)});return fe.length===1?fe[0]:null}return Qe<q?{add:!0,key:M(V,je)}:{add:!1,key:M(je,V)}}function ie(V,je,Qe){var q=V.findIndex(function(W){return W.key===Qe}),M=V[q+1],Se=je.findIndex(function(W){return W.key===Qe});if(M){var be=je.findIndex(function(W){return W.key===M.key});return je.slice(Se+1,be)}return je.slice(Se+1)}var X=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],y={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},v=function(){},O="RC_TREE_MOTION_".concat(Math.random()),pe={key:O},He={key:O,level:0,index:0,pos:"0",node:pe,nodes:[pe]},tt={parent:null,children:[],pos:He.pos,data:pe,title:null,key:O,isStart:[],isEnd:[]};function Ct(V,je,Qe,q){return je===!1||!Qe?V:V.slice(0,Math.ceil(Qe/q)+1)}function Rt(V){var je=V.key,Qe=V.pos;return(0,at.km)(je,Qe)}function Ft(V){for(var je=String(V.data.key),Qe=V;Qe.parent;)Qe=Qe.parent,je="".concat(Qe.data.key," > ").concat(je);return je}var Ht=j.forwardRef(function(V,je){var Qe=V.prefixCls,q=V.data,M=V.selectable,Se=V.checkable,be=V.expandedKeys,W=V.selectedKeys,fe=V.checkedKeys,ye=V.loadedKeys,$e=V.loadingKeys,Ve=V.halfCheckedKeys,qe=V.keyEntities,Ye=V.disabled,ot=V.dragging,de=V.dragOverNodeKey,K=V.dropPosition,N=V.motion,Le=V.height,De=V.itemHeight,Ae=V.virtual,it=V.scrollWidth,st=V.focusable,Oe=V.activeItem,Et=V.focused,jt=V.tabIndex,wt=V.onKeyDown,Bt=V.onFocus,se=V.onBlur,ve=V.onActiveChange,Ee=V.onListChangeStart,k=V.onListChangeEnd,Y=(0,w.Z)(V,X),he=j.useRef(null),ce=j.useRef(null);j.useImperativeHandle(je,function(){return{scrollTo:function(Kt){he.current.scrollTo(Kt)},getIndentWidth:function(){return ce.current.offsetWidth}}});var xe=j.useState(be),Be=(0,D.Z)(xe,2),Xe=Be[0],ut=Be[1],nt=j.useState(q),Ue=(0,D.Z)(nt,2),R=Ue[0],U=Ue[1],S=j.useState(q),ze=(0,D.Z)(S,2),ke=ze[0],Pe=ze[1],Ge=j.useState([]),We=(0,D.Z)(Ge,2),ct=We[0],Lt=We[1],Pt=j.useState(null),cn=(0,D.Z)(Pt,2),Ne=cn[0],Re=cn[1],dt=j.useRef(q);dt.current=q;function mt(){var Tt=dt.current;U(Tt),Pe(Tt),Lt([]),Re(null),k()}(0,Q.Z)(function(){ut(be);var Tt=G(Xe,be);if(Tt.key!==null)if(Tt.add){var Kt=R.findIndex(function(kt){var Ze=kt.key;return Ze===Tt.key}),en=Ct(ie(R,q,Tt.key),Ae,Le,De),At=R.slice();At.splice(Kt+1,0,tt),Pe(At),Lt(en),Re("show")}else{var dn=q.findIndex(function(kt){var Ze=kt.key;return Ze===Tt.key}),an=Ct(ie(q,R,Tt.key),Ae,Le,De),Jt=q.slice();Jt.splice(dn+1,0,tt),Pe(Jt),Lt(an),Re("hide")}else R!==q&&(U(q),Pe(q))},[be,q]),j.useEffect(function(){ot||mt()},[ot]);var Mt=N?ke:q,bt={expandedKeys:be,selectedKeys:W,loadedKeys:ye,loadingKeys:$e,checkedKeys:fe,halfCheckedKeys:Ve,dragOverNodeKey:de,dropPosition:K,keyEntities:qe};return j.createElement(j.Fragment,null,Et&&Oe&&j.createElement("span",{style:y,"aria-live":"assertive"},Ft(Oe)),j.createElement("div",null,j.createElement("input",{style:y,disabled:st===!1||Ye,tabIndex:st!==!1?jt:null,onKeyDown:wt,onFocus:Bt,onBlur:se,value:"",onChange:v,"aria-label":"for screen reader"})),j.createElement("div",{className:"".concat(Qe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},j.createElement("div",{className:"".concat(Qe,"-indent")},j.createElement("div",{ref:ce,className:"".concat(Qe,"-indent-unit")}))),j.createElement(re.Z,(0,f.Z)({},Y,{data:Mt,itemKey:Rt,height:Le,fullHeight:!1,virtual:Ae,itemHeight:De,scrollWidth:it,prefixCls:"".concat(Qe,"-list"),ref:he,role:"tree",onVisibleChange:function(Kt){Kt.every(function(en){return Rt(en)!==O})&&mt()}}),function(Tt){var Kt=Tt.pos,en=Object.assign({},(H(Tt.data),Tt.data)),At=Tt.title,dn=Tt.key,an=Tt.isStart,Jt=Tt.isEnd,kt=(0,at.km)(dn,Kt);delete en.key,delete en.children;var Ze=(0,at.H8)(kt,bt);return j.createElement(P,(0,f.Z)({},en,Ze,{title:At,active:!!Oe&&dn===Oe.key,pos:Kt,data:Tt.data,isStart:an,isEnd:Jt,motion:N,motionNodes:dn===O?ct:null,motionType:Ne,onMotionStart:Ee,onMotionEnd:mt,treeNodeRequiredProps:bt,onMouseMove:function(){ve(null)}}))}))}),Ke=Ht,qt=_(82661),Dt=_(34643),sn=_(65065),Je=10,yt=function(V){(0,ne.Z)(Qe,V);var je=(0,o.Z)(Qe);function Qe(){var q;(0,B.Z)(this,Qe);for(var M=arguments.length,Se=new Array(M),be=0;be<M;be++)Se[be]=arguments[be];return q=je.call.apply(je,[this].concat(Se)),(0,g.Z)((0,_e.Z)(q),"destroyed",!1),(0,g.Z)((0,_e.Z)(q),"delayedDragEnterLogic",void 0),(0,g.Z)((0,_e.Z)(q),"loadingRetryTimes",{}),(0,g.Z)((0,_e.Z)(q),"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,at.w$)()}),(0,g.Z)((0,_e.Z)(q),"dragStartMousePosition",null),(0,g.Z)((0,_e.Z)(q),"dragNodeProps",null),(0,g.Z)((0,_e.Z)(q),"currentMouseOverDroppableNodeKey",null),(0,g.Z)((0,_e.Z)(q),"listRef",j.createRef()),(0,g.Z)((0,_e.Z)(q),"onNodeDragStart",function(W,fe){var ye=q.state,$e=ye.expandedKeys,Ve=ye.keyEntities,qe=q.props.onDragStart,Ye=fe.eventKey;q.dragNodeProps=fe,q.dragStartMousePosition={x:W.clientX,y:W.clientY};var ot=(0,qt._5)($e,Ye);q.setState({draggingNodeKey:Ye,dragChildrenKeys:(0,qt.wA)(Ye,Ve),indent:q.listRef.current.getIndentWidth()}),q.setExpandedKeys(ot),window.addEventListener("dragend",q.onWindowDragEnd),qe==null||qe({event:W,node:(0,at.F)(fe)})}),(0,g.Z)((0,_e.Z)(q),"onNodeDragEnter",function(W,fe){var ye=q.state,$e=ye.expandedKeys,Ve=ye.keyEntities,qe=ye.dragChildrenKeys,Ye=ye.flattenNodes,ot=ye.indent,de=q.props,K=de.onDragEnter,N=de.onExpand,Le=de.allowDrop,De=de.direction,Ae=fe.pos,it=fe.eventKey;if(q.currentMouseOverDroppableNodeKey!==it&&(q.currentMouseOverDroppableNodeKey=it),!q.dragNodeProps){q.resetDragState();return}var st=(0,qt.OM)(W,q.dragNodeProps,fe,ot,q.dragStartMousePosition,Le,Ye,Ve,$e,De),Oe=st.dropPosition,Et=st.dropLevelOffset,jt=st.dropTargetKey,wt=st.dropContainerKey,Bt=st.dropTargetPos,se=st.dropAllowed,ve=st.dragOverNodeKey;if(qe.includes(jt)||!se){q.resetDragState();return}if(q.delayedDragEnterLogic||(q.delayedDragEnterLogic={}),Object.keys(q.delayedDragEnterLogic).forEach(function(Ee){clearTimeout(q.delayedDragEnterLogic[Ee])}),q.dragNodeProps.eventKey!==fe.eventKey&&(W.persist(),q.delayedDragEnterLogic[Ae]=window.setTimeout(function(){if(q.state.draggingNodeKey!==null){var Ee=(0,ae.Z)($e),k=(0,sn.Z)(Ve,fe.eventKey);k&&(k.children||[]).length&&(Ee=(0,qt.L0)($e,fe.eventKey)),q.props.hasOwnProperty("expandedKeys")||q.setExpandedKeys(Ee),N==null||N(Ee,{node:(0,at.F)(fe),expanded:!0,nativeEvent:W.nativeEvent})}},800)),q.dragNodeProps.eventKey===jt&&Et===0){q.resetDragState();return}q.setState({dragOverNodeKey:ve,dropPosition:Oe,dropLevelOffset:Et,dropTargetKey:jt,dropContainerKey:wt,dropTargetPos:Bt,dropAllowed:se}),K==null||K({event:W,node:(0,at.F)(fe),expandedKeys:$e})}),(0,g.Z)((0,_e.Z)(q),"onNodeDragOver",function(W,fe){var ye=q.state,$e=ye.dragChildrenKeys,Ve=ye.flattenNodes,qe=ye.keyEntities,Ye=ye.expandedKeys,ot=ye.indent,de=q.props,K=de.onDragOver,N=de.allowDrop,Le=de.direction;if(q.dragNodeProps){var De=(0,qt.OM)(W,q.dragNodeProps,fe,ot,q.dragStartMousePosition,N,Ve,qe,Ye,Le),Ae=De.dropPosition,it=De.dropLevelOffset,st=De.dropTargetKey,Oe=De.dropContainerKey,Et=De.dropTargetPos,jt=De.dropAllowed,wt=De.dragOverNodeKey;$e.includes(st)||!jt||(q.dragNodeProps.eventKey===st&&it===0?q.state.dropPosition===null&&q.state.dropLevelOffset===null&&q.state.dropTargetKey===null&&q.state.dropContainerKey===null&&q.state.dropTargetPos===null&&q.state.dropAllowed===!1&&q.state.dragOverNodeKey===null||q.resetDragState():Ae===q.state.dropPosition&&it===q.state.dropLevelOffset&&st===q.state.dropTargetKey&&Oe===q.state.dropContainerKey&&Et===q.state.dropTargetPos&&jt===q.state.dropAllowed&&wt===q.state.dragOverNodeKey||q.setState({dropPosition:Ae,dropLevelOffset:it,dropTargetKey:st,dropContainerKey:Oe,dropTargetPos:Et,dropAllowed:jt,dragOverNodeKey:wt}),K==null||K({event:W,node:(0,at.F)(fe)}))}}),(0,g.Z)((0,_e.Z)(q),"onNodeDragLeave",function(W,fe){q.currentMouseOverDroppableNodeKey===fe.eventKey&&!W.currentTarget.contains(W.relatedTarget)&&(q.resetDragState(),q.currentMouseOverDroppableNodeKey=null);var ye=q.props.onDragLeave;ye==null||ye({event:W,node:(0,at.F)(fe)})}),(0,g.Z)((0,_e.Z)(q),"onWindowDragEnd",function(W){q.onNodeDragEnd(W,null,!0),window.removeEventListener("dragend",q.onWindowDragEnd)}),(0,g.Z)((0,_e.Z)(q),"onNodeDragEnd",function(W,fe){var ye=q.props.onDragEnd;q.setState({dragOverNodeKey:null}),q.cleanDragState(),ye==null||ye({event:W,node:(0,at.F)(fe)}),q.dragNodeProps=null,window.removeEventListener("dragend",q.onWindowDragEnd)}),(0,g.Z)((0,_e.Z)(q),"onNodeDrop",function(W,fe){var ye,$e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ve=q.state,qe=Ve.dragChildrenKeys,Ye=Ve.dropPosition,ot=Ve.dropTargetKey,de=Ve.dropTargetPos,K=Ve.dropAllowed;if(K){var N=q.props.onDrop;if(q.setState({dragOverNodeKey:null}),q.cleanDragState(),ot!==null){var Le=(0,z.Z)((0,z.Z)({},(0,at.H8)(ot,q.getTreeNodeRequiredProps())),{},{active:((ye=q.getActiveItem())===null||ye===void 0?void 0:ye.key)===ot,data:(0,sn.Z)(q.state.keyEntities,ot).node}),De=qe.includes(ot);(0,I.ZP)(!De,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ae=(0,qt.yx)(de),it={event:W,node:(0,at.F)(Le),dragNode:q.dragNodeProps?(0,at.F)(q.dragNodeProps):null,dragNodesKeys:[q.dragNodeProps.eventKey].concat(qe),dropToGap:Ye!==0,dropPosition:Ye+Number(Ae[Ae.length-1])};$e||N==null||N(it),q.dragNodeProps=null}}}),(0,g.Z)((0,_e.Z)(q),"cleanDragState",function(){var W=q.state.draggingNodeKey;W!==null&&q.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),q.dragStartMousePosition=null,q.currentMouseOverDroppableNodeKey=null}),(0,g.Z)((0,_e.Z)(q),"triggerExpandActionExpand",function(W,fe){var ye=q.state,$e=ye.expandedKeys,Ve=ye.flattenNodes,qe=fe.expanded,Ye=fe.key,ot=fe.isLeaf;if(!(ot||W.shiftKey||W.metaKey||W.ctrlKey)){var de=Ve.filter(function(N){return N.key===Ye})[0],K=(0,at.F)((0,z.Z)((0,z.Z)({},(0,at.H8)(Ye,q.getTreeNodeRequiredProps())),{},{data:de.data}));q.setExpandedKeys(qe?(0,qt._5)($e,Ye):(0,qt.L0)($e,Ye)),q.onNodeExpand(W,K)}}),(0,g.Z)((0,_e.Z)(q),"onNodeClick",function(W,fe){var ye=q.props,$e=ye.onClick,Ve=ye.expandAction;Ve==="click"&&q.triggerExpandActionExpand(W,fe),$e==null||$e(W,fe)}),(0,g.Z)((0,_e.Z)(q),"onNodeDoubleClick",function(W,fe){var ye=q.props,$e=ye.onDoubleClick,Ve=ye.expandAction;Ve==="doubleClick"&&q.triggerExpandActionExpand(W,fe),$e==null||$e(W,fe)}),(0,g.Z)((0,_e.Z)(q),"onNodeSelect",function(W,fe){var ye=q.state.selectedKeys,$e=q.state,Ve=$e.keyEntities,qe=$e.fieldNames,Ye=q.props,ot=Ye.onSelect,de=Ye.multiple,K=fe.selected,N=fe[qe.key],Le=!K;Le?de?ye=(0,qt.L0)(ye,N):ye=[N]:ye=(0,qt._5)(ye,N);var De=ye.map(function(Ae){var it=(0,sn.Z)(Ve,Ae);return it?it.node:null}).filter(Boolean);q.setUncontrolledState({selectedKeys:ye}),ot==null||ot(ye,{event:"select",selected:Le,node:fe,selectedNodes:De,nativeEvent:W.nativeEvent})}),(0,g.Z)((0,_e.Z)(q),"onNodeCheck",function(W,fe,ye){var $e=q.state,Ve=$e.keyEntities,qe=$e.checkedKeys,Ye=$e.halfCheckedKeys,ot=q.props,de=ot.checkStrictly,K=ot.onCheck,N=fe.key,Le,De={event:"check",node:fe,checked:ye,nativeEvent:W.nativeEvent};if(de){var Ae=ye?(0,qt.L0)(qe,N):(0,qt._5)(qe,N),it=(0,qt._5)(Ye,N);Le={checked:Ae,halfChecked:it},De.checkedNodes=Ae.map(function(Bt){return(0,sn.Z)(Ve,Bt)}).filter(Boolean).map(function(Bt){return Bt.node}),q.setUncontrolledState({checkedKeys:Ae})}else{var st=(0,Dt.S)([].concat((0,ae.Z)(qe),[N]),!0,Ve),Oe=st.checkedKeys,Et=st.halfCheckedKeys;if(!ye){var jt=new Set(Oe);jt.delete(N);var wt=(0,Dt.S)(Array.from(jt),{checked:!1,halfCheckedKeys:Et},Ve);Oe=wt.checkedKeys,Et=wt.halfCheckedKeys}Le=Oe,De.checkedNodes=[],De.checkedNodesPositions=[],De.halfCheckedKeys=Et,Oe.forEach(function(Bt){var se=(0,sn.Z)(Ve,Bt);if(se){var ve=se.node,Ee=se.pos;De.checkedNodes.push(ve),De.checkedNodesPositions.push({node:ve,pos:Ee})}}),q.setUncontrolledState({checkedKeys:Oe},!1,{halfCheckedKeys:Et})}K==null||K(Le,De)}),(0,g.Z)((0,_e.Z)(q),"onNodeLoad",function(W){var fe,ye=W.key,$e=q.state.keyEntities,Ve=(0,sn.Z)($e,ye);if(!(Ve!=null&&(fe=Ve.children)!==null&&fe!==void 0&&fe.length)){var qe=new Promise(function(Ye,ot){q.setState(function(de){var K=de.loadedKeys,N=K===void 0?[]:K,Le=de.loadingKeys,De=Le===void 0?[]:Le,Ae=q.props,it=Ae.loadData,st=Ae.onLoad;if(!it||N.includes(ye)||De.includes(ye))return null;var Oe=it(W);return Oe.then(function(){var Et=q.state.loadedKeys,jt=(0,qt.L0)(Et,ye);st==null||st(jt,{event:"load",node:W}),q.setUncontrolledState({loadedKeys:jt}),q.setState(function(wt){return{loadingKeys:(0,qt._5)(wt.loadingKeys,ye)}}),Ye()}).catch(function(Et){if(q.setState(function(wt){return{loadingKeys:(0,qt._5)(wt.loadingKeys,ye)}}),q.loadingRetryTimes[ye]=(q.loadingRetryTimes[ye]||0)+1,q.loadingRetryTimes[ye]>=Je){var jt=q.state.loadedKeys;(0,I.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),q.setUncontrolledState({loadedKeys:(0,qt.L0)(jt,ye)}),Ye()}ot(Et)}),{loadingKeys:(0,qt.L0)(De,ye)}})});return qe.catch(function(){}),qe}}),(0,g.Z)((0,_e.Z)(q),"onNodeMouseEnter",function(W,fe){var ye=q.props.onMouseEnter;ye==null||ye({event:W,node:fe})}),(0,g.Z)((0,_e.Z)(q),"onNodeMouseLeave",function(W,fe){var ye=q.props.onMouseLeave;ye==null||ye({event:W,node:fe})}),(0,g.Z)((0,_e.Z)(q),"onNodeContextMenu",function(W,fe){var ye=q.props.onRightClick;ye&&(W.preventDefault(),ye({event:W,node:fe}))}),(0,g.Z)((0,_e.Z)(q),"onFocus",function(){var W=q.props.onFocus;q.setState({focused:!0});for(var fe=arguments.length,ye=new Array(fe),$e=0;$e<fe;$e++)ye[$e]=arguments[$e];W==null||W.apply(void 0,ye)}),(0,g.Z)((0,_e.Z)(q),"onBlur",function(){var W=q.props.onBlur;q.setState({focused:!1}),q.onActiveChange(null);for(var fe=arguments.length,ye=new Array(fe),$e=0;$e<fe;$e++)ye[$e]=arguments[$e];W==null||W.apply(void 0,ye)}),(0,g.Z)((0,_e.Z)(q),"getTreeNodeRequiredProps",function(){var W=q.state,fe=W.expandedKeys,ye=W.selectedKeys,$e=W.loadedKeys,Ve=W.loadingKeys,qe=W.checkedKeys,Ye=W.halfCheckedKeys,ot=W.dragOverNodeKey,de=W.dropPosition,K=W.keyEntities;return{expandedKeys:fe||[],selectedKeys:ye||[],loadedKeys:$e||[],loadingKeys:Ve||[],checkedKeys:qe||[],halfCheckedKeys:Ye||[],dragOverNodeKey:ot,dropPosition:de,keyEntities:K}}),(0,g.Z)((0,_e.Z)(q),"setExpandedKeys",function(W){var fe=q.state,ye=fe.treeData,$e=fe.fieldNames,Ve=(0,at.oH)(ye,W,$e);q.setUncontrolledState({expandedKeys:W,flattenNodes:Ve},!0)}),(0,g.Z)((0,_e.Z)(q),"onNodeExpand",function(W,fe){var ye=q.state.expandedKeys,$e=q.state,Ve=$e.listChanging,qe=$e.fieldNames,Ye=q.props,ot=Ye.onExpand,de=Ye.loadData,K=fe.expanded,N=fe[qe.key];if(!Ve){var Le=ye.includes(N),De=!K;if((0,I.ZP)(K&&Le||!K&&!Le,"Expand state not sync with index check"),ye=De?(0,qt.L0)(ye,N):(0,qt._5)(ye,N),q.setExpandedKeys(ye),ot==null||ot(ye,{node:fe,expanded:De,nativeEvent:W.nativeEvent}),De&&de){var Ae=q.onNodeLoad(fe);Ae&&Ae.then(function(){var it=(0,at.oH)(q.state.treeData,ye,qe);q.setUncontrolledState({flattenNodes:it})}).catch(function(){var it=q.state.expandedKeys,st=(0,qt._5)(it,N);q.setExpandedKeys(st)})}}}),(0,g.Z)((0,_e.Z)(q),"onListChangeStart",function(){q.setUncontrolledState({listChanging:!0})}),(0,g.Z)((0,_e.Z)(q),"onListChangeEnd",function(){setTimeout(function(){q.setUncontrolledState({listChanging:!1})})}),(0,g.Z)((0,_e.Z)(q),"onActiveChange",function(W){var fe=q.state.activeKey,ye=q.props,$e=ye.onActiveChange,Ve=ye.itemScrollOffset,qe=Ve===void 0?0:Ve;fe!==W&&(q.setState({activeKey:W}),W!==null&&q.scrollTo({key:W,offset:qe}),$e==null||$e(W))}),(0,g.Z)((0,_e.Z)(q),"getActiveItem",function(){var W=q.state,fe=W.activeKey,ye=W.flattenNodes;return fe===null?null:ye.find(function($e){var Ve=$e.key;return Ve===fe})||null}),(0,g.Z)((0,_e.Z)(q),"offsetActiveKey",function(W){var fe=q.state,ye=fe.flattenNodes,$e=fe.activeKey,Ve=ye.findIndex(function(ot){var de=ot.key;return de===$e});Ve===-1&&W<0&&(Ve=ye.length),Ve=(Ve+W+ye.length)%ye.length;var qe=ye[Ve];if(qe){var Ye=qe.key;q.onActiveChange(Ye)}else q.onActiveChange(null)}),(0,g.Z)((0,_e.Z)(q),"onKeyDown",function(W){var fe=q.state,ye=fe.activeKey,$e=fe.expandedKeys,Ve=fe.checkedKeys,qe=fe.fieldNames,Ye=q.props,ot=Ye.onKeyDown,de=Ye.checkable,K=Ye.selectable;switch(W.which){case E.Z.UP:{q.offsetActiveKey(-1),W.preventDefault();break}case E.Z.DOWN:{q.offsetActiveKey(1),W.preventDefault();break}}var N=q.getActiveItem();if(N&&N.data){var Le=q.getTreeNodeRequiredProps(),De=N.data.isLeaf===!1||!!(N.data[qe.children]||[]).length,Ae=(0,at.F)((0,z.Z)((0,z.Z)({},(0,at.H8)(ye,Le)),{},{data:N.data,active:!0}));switch(W.which){case E.Z.LEFT:{De&&$e.includes(ye)?q.onNodeExpand({},Ae):N.parent&&q.onActiveChange(N.parent.key),W.preventDefault();break}case E.Z.RIGHT:{De&&!$e.includes(ye)?q.onNodeExpand({},Ae):N.children&&N.children.length&&q.onActiveChange(N.children[0].key),W.preventDefault();break}case E.Z.ENTER:case E.Z.SPACE:{de&&!Ae.disabled&&Ae.checkable!==!1&&!Ae.disableCheckbox?q.onNodeCheck({},Ae,!Ve.includes(ye)):!de&&K&&!Ae.disabled&&Ae.selectable!==!1&&q.onNodeSelect({},Ae);break}}}ot==null||ot(W)}),(0,g.Z)((0,_e.Z)(q),"setUncontrolledState",function(W){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!q.destroyed){var $e=!1,Ve=!0,qe={};Object.keys(W).forEach(function(Ye){if(q.props.hasOwnProperty(Ye)){Ve=!1;return}$e=!0,qe[Ye]=W[Ye]}),$e&&(!fe||Ve)&&q.setState((0,z.Z)((0,z.Z)({},qe),ye))}}),(0,g.Z)((0,_e.Z)(q),"scrollTo",function(W){q.listRef.current.scrollTo(W)}),q}return(0,d.Z)(Qe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var M=this.props,Se=M.activeKey,be=M.itemScrollOffset,W=be===void 0?0:be;Se!==void 0&&Se!==this.state.activeKey&&(this.setState({activeKey:Se}),Se!==null&&this.scrollTo({key:Se,offset:W}))}},{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 M=this.state,Se=M.focused,be=M.flattenNodes,W=M.keyEntities,fe=M.draggingNodeKey,ye=M.activeKey,$e=M.dropLevelOffset,Ve=M.dropContainerKey,qe=M.dropTargetKey,Ye=M.dropPosition,ot=M.dragOverNodeKey,de=M.indent,K=this.props,N=K.prefixCls,Le=K.className,De=K.style,Ae=K.showLine,it=K.focusable,st=K.tabIndex,Oe=st===void 0?0:st,Et=K.selectable,jt=K.showIcon,wt=K.icon,Bt=K.switcherIcon,se=K.draggable,ve=K.checkable,Ee=K.checkStrictly,k=K.disabled,Y=K.motion,he=K.loadData,ce=K.filterTreeNode,xe=K.height,Be=K.itemHeight,Xe=K.scrollWidth,ut=K.virtual,nt=K.titleRender,Ue=K.dropIndicatorRender,R=K.onContextMenu,U=K.onScroll,S=K.direction,ze=K.rootClassName,ke=K.rootStyle,Pe=(0,b.Z)(this.props,{aria:!0,data:!0}),Ge;se&&((0,ue.Z)(se)==="object"?Ge=se:typeof se=="function"?Ge={nodeDraggable:se}:Ge={});var We={prefixCls:N,selectable:Et,showIcon:jt,icon:wt,switcherIcon:Bt,draggable:Ge,draggingNodeKey:fe,checkable:ve,checkStrictly:Ee,disabled:k,keyEntities:W,dropLevelOffset:$e,dropContainerKey:Ve,dropTargetKey:qe,dropPosition:Ye,dragOverNodeKey:ot,indent:de,direction:S,dropIndicatorRender:Ue,loadData:he,filterTreeNode:ce,titleRender:nt,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};return j.createElement($.k.Provider,{value:We},j.createElement("div",{className:p()(N,Le,ze,(0,g.Z)((0,g.Z)((0,g.Z)({},"".concat(N,"-show-line"),Ae),"".concat(N,"-focused"),Se),"".concat(N,"-active-focused"),ye!==null)),style:ke},j.createElement(Ke,(0,f.Z)({ref:this.listRef,prefixCls:N,style:De,data:be,disabled:k,selectable:Et,checkable:!!ve,motion:Y,dragging:fe!==null,height:xe,itemHeight:Be,virtual:ut,focusable:it,focused:Se,tabIndex:Oe,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:R,onScroll:U,scrollWidth:Xe},this.getTreeNodeRequiredProps(),Pe))))}}],[{key:"getDerivedStateFromProps",value:function(M,Se){var be=Se.prevProps,W={prevProps:M};function fe(Oe){return!be&&M.hasOwnProperty(Oe)||be&&be[Oe]!==M[Oe]}var ye,$e=Se.fieldNames;if(fe("fieldNames")&&($e=(0,at.w$)(M.fieldNames),W.fieldNames=$e),fe("treeData")?ye=M.treeData:fe("children")&&((0,I.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ye=(0,at.zn)(M.children)),ye){W.treeData=ye;var Ve=(0,at.I8)(ye,{fieldNames:$e});W.keyEntities=(0,z.Z)((0,g.Z)({},O,He),Ve.keyEntities)}var qe=W.keyEntities||Se.keyEntities;if(fe("expandedKeys")||be&&fe("autoExpandParent"))W.expandedKeys=M.autoExpandParent||!be&&M.defaultExpandParent?(0,qt.r7)(M.expandedKeys,qe):M.expandedKeys;else if(!be&&M.defaultExpandAll){var Ye=(0,z.Z)({},qe);delete Ye[O];var ot=[];Object.keys(Ye).forEach(function(Oe){var Et=Ye[Oe];Et.children&&Et.children.length&&ot.push(Et.key)}),W.expandedKeys=ot}else!be&&M.defaultExpandedKeys&&(W.expandedKeys=M.autoExpandParent||M.defaultExpandParent?(0,qt.r7)(M.defaultExpandedKeys,qe):M.defaultExpandedKeys);if(W.expandedKeys||delete W.expandedKeys,ye||W.expandedKeys){var de=(0,at.oH)(ye||Se.treeData,W.expandedKeys||Se.expandedKeys,$e);W.flattenNodes=de}if(M.selectable&&(fe("selectedKeys")?W.selectedKeys=(0,qt.BT)(M.selectedKeys,M):!be&&M.defaultSelectedKeys&&(W.selectedKeys=(0,qt.BT)(M.defaultSelectedKeys,M))),M.checkable){var K;if(fe("checkedKeys")?K=(0,qt.E6)(M.checkedKeys)||{}:!be&&M.defaultCheckedKeys?K=(0,qt.E6)(M.defaultCheckedKeys)||{}:ye&&(K=(0,qt.E6)(M.checkedKeys)||{checkedKeys:Se.checkedKeys,halfCheckedKeys:Se.halfCheckedKeys}),K){var N=K,Le=N.checkedKeys,De=Le===void 0?[]:Le,Ae=N.halfCheckedKeys,it=Ae===void 0?[]:Ae;if(!M.checkStrictly){var st=(0,Dt.S)(De,!0,qe);De=st.checkedKeys,it=st.halfCheckedKeys}W.checkedKeys=De,W.halfCheckedKeys=it}}return fe("loadedKeys")&&(W.loadedKeys=M.loadedKeys),W}}]),Qe}(j.Component);(0,g.Z)(yt,"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:F,allowDrop:function(){return!0},expandAction:!1}),(0,g.Z)(yt,"TreeNode",oe.Z);var Fe=yt,we=Fe},82661:function(Pn,Gt,_){"use strict";_.d(Gt,{BT:function(){return j},E6:function(){return F},L0:function(){return g},OM:function(){return I},_5:function(){return o},r7:function(){return H},wA:function(){return p},yx:function(){return A}});var f=_(3300),ue=_(34666),z=_(48736),ae=_(59301),B=_(639),d=_(65065),_e=_(34061),ne=null;function o(D,w){if(!D)return[];var Q=D.slice(),re=Q.indexOf(w);return re>=0&&Q.splice(re,1),Q}function g(D,w){var Q=(D||[]).slice();return Q.indexOf(w)===-1&&Q.push(w),Q}function A(D){return D.split("-")}function p(D,w){var Q=[],re=(0,d.Z)(w,D);function ee(){var oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];oe.forEach(function(ge){var me=ge.key,at=ge.children;Q.push(me),ee(at)})}return ee(re.children),Q}function E(D){if(D.parent){var w=A(D.pos);return Number(w[w.length-1])===D.parent.children.length-1}return!1}function b(D){var w=A(D.pos);return Number(w[w.length-1])===0}function I(D,w,Q,re,ee,oe,ge,me,at,Z){var T,P=D.clientX,G=D.clientY,ie=D.target.getBoundingClientRect(),X=ie.top,y=ie.height,v=(Z==="rtl"?-1:1)*(((ee==null?void 0:ee.x)||0)-P),O=(v-12)/re,pe=at.filter(function(we){var V;return(V=me[we])===null||V===void 0||(V=V.children)===null||V===void 0?void 0:V.length}),He=(0,d.Z)(me,Q.eventKey);if(G<X+y/2){var tt=ge.findIndex(function(we){return we.key===He.key}),Ct=tt<=0?0:tt-1,Rt=ge[Ct].key;He=(0,d.Z)(me,Rt)}var Ft=He.key,Ht=He,Ke=He.key,qt=0,Dt=0;if(!pe.includes(Ft))for(var sn=0;sn<O&&E(He);sn+=1)He=He.parent,Dt+=1;var Je=w.data,yt=He.node,Fe=!0;return b(He)&&He.level===0&&G<X+y/2&&oe({dragNode:Je,dropNode:yt,dropPosition:-1})&&He.key===Q.eventKey?qt=-1:(Ht.children||[]).length&&pe.includes(Ke)?oe({dragNode:Je,dropNode:yt,dropPosition:0})?qt=0:Fe=!1:Dt===0?O>-1.5?oe({dragNode:Je,dropNode:yt,dropPosition:1})?qt=1:Fe=!1:oe({dragNode:Je,dropNode:yt,dropPosition:0})?qt=0:oe({dragNode:Je,dropNode:yt,dropPosition:1})?qt=1:Fe=!1:oe({dragNode:Je,dropNode:yt,dropPosition:1})?qt=1:Fe=!1,{dropPosition:qt,dropLevelOffset:Dt,dropTargetKey:He.key,dropTargetPos:He.pos,dragOverNodeKey:Ke,dropContainerKey:qt===0?null:((T=He.parent)===null||T===void 0?void 0:T.key)||null,dropAllowed:Fe}}function j(D,w){if(D){var Q=w.multiple;return Q?D.slice():D.length?[D[0]]:D}}var $=function(w){return w};function le(D,w){if(!D)return[];var Q=w||{},re=Q.processProps,ee=re===void 0?$:re,oe=Array.isArray(D)?D:[D];return oe.map(function(ge){var me=ge.children,at=_objectWithoutProperties(ge,ne),Z=le(me,w);return React.createElement(TreeNode,_extends({key:at.key},ee(at)),Z)})}function F(D){if(!D)return null;var w;if(Array.isArray(D))w={checkedKeys:D,halfCheckedKeys:void 0};else if((0,ue.Z)(D)==="object")w={checkedKeys:D.checked||void 0,halfCheckedKeys:D.halfChecked||void 0};else return(0,z.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return w}function H(D,w){var Q=new Set;function re(ee){if(!Q.has(ee)){var oe=(0,d.Z)(w,ee);if(oe){Q.add(ee);var ge=oe.parent,me=oe.node;me.disabled||ge&&re(ge.key)}}}return(D||[]).forEach(function(ee){re(ee)}),(0,f.Z)(Q)}},34643:function(Pn,Gt,_){"use strict";_.d(Gt,{S:function(){return _e}});var f=_(48736),ue=_(65065);function z(ne,o){var g=new Set;return ne.forEach(function(A){o.has(A)||g.add(A)}),g}function ae(ne){var o=ne||{},g=o.disabled,A=o.disableCheckbox,p=o.checkable;return!!(g||A)||p===!1}function B(ne,o,g,A){for(var p=new Set(ne),E=new Set,b=0;b<=g;b+=1){var I=o.get(b)||new Set;I.forEach(function(F){var H=F.key,D=F.node,w=F.children,Q=w===void 0?[]:w;p.has(H)&&!A(D)&&Q.filter(function(re){return!A(re.node)}).forEach(function(re){p.add(re.key)})})}for(var j=new Set,$=g;$>=0;$-=1){var le=o.get($)||new Set;le.forEach(function(F){var H=F.parent,D=F.node;if(!(A(D)||!F.parent||j.has(F.parent.key))){if(A(F.parent.node)){j.add(H.key);return}var w=!0,Q=!1;(H.children||[]).filter(function(re){return!A(re.node)}).forEach(function(re){var ee=re.key,oe=p.has(ee);w&&!oe&&(w=!1),!Q&&(oe||E.has(ee))&&(Q=!0)}),w&&p.add(H.key),Q&&E.add(H.key),j.add(H.key)}})}return{checkedKeys:Array.from(p),halfCheckedKeys:Array.from(z(E,p))}}function d(ne,o,g,A,p){for(var E=new Set(ne),b=new Set(o),I=0;I<=A;I+=1){var j=g.get(I)||new Set;j.forEach(function(H){var D=H.key,w=H.node,Q=H.children,re=Q===void 0?[]:Q;!E.has(D)&&!b.has(D)&&!p(w)&&re.filter(function(ee){return!p(ee.node)}).forEach(function(ee){E.delete(ee.key)})})}b=new Set;for(var $=new Set,le=A;le>=0;le-=1){var F=g.get(le)||new Set;F.forEach(function(H){var D=H.parent,w=H.node;if(!(p(w)||!H.parent||$.has(H.parent.key))){if(p(H.parent.node)){$.add(D.key);return}var Q=!0,re=!1;(D.children||[]).filter(function(ee){return!p(ee.node)}).forEach(function(ee){var oe=ee.key,ge=E.has(oe);Q&&!ge&&(Q=!1),!re&&(ge||b.has(oe))&&(re=!0)}),Q||E.delete(D.key),re&&b.add(D.key),$.add(D.key)}})}return{checkedKeys:Array.from(E),halfCheckedKeys:Array.from(z(b,E))}}function _e(ne,o,g,A){var p=[],E;A?E=A:E=ae;var b=new Set(ne.filter(function(le){var F=!!(0,ue.Z)(g,le);return F||p.push(le),F})),I=new Map,j=0;Object.keys(g).forEach(function(le){var F=g[le],H=F.level,D=I.get(H);D||(D=new Set,I.set(H,D)),D.add(F),j=Math.max(j,H)}),(0,f.ZP)(!p.length,"Tree missing follow keys: ".concat(p.slice(0,100).map(function(le){return"'".concat(le,"'")}).join(", ")));var $;return o===!0?$=B(b,I,j,E):$=d(b,o.halfCheckedKeys,I,j,E),$}},65065:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return f}});function f(ue,z){return ue[z]}},34061:function(Pn,Gt,_){"use strict";_.d(Gt,{F:function(){return H},H8:function(){return F},I8:function(){return le},km:function(){return p},oH:function(){return j},w$:function(){return E},zn:function(){return I}});var f=_(34666),ue=_(3300),z=_(27247),ae=_(43079),B=_(11592),d=_(2738),_e=_(48736),ne=_(65065),o=["children"];function g(D,w){return"".concat(D,"-").concat(w)}function A(D){return D&&D.type&&D.type.isTreeNode}function p(D,w){return D!=null?D:w}function E(D){var w=D||{},Q=w.title,re=w._title,ee=w.key,oe=w.children,ge=Q||"title";return{title:ge,_title:re||[ge],key:ee||"key",children:oe||"children"}}function b(D,w){var Q=new Map;function re(ee){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(ee||[]).forEach(function(ge){var me=ge[w.key],at=ge[w.children];warning(me!=null,"Tree node must have a certain key: [".concat(oe).concat(me,"]"));var Z=String(me);warning(!Q.has(Z)||me===null||me===void 0,"Same 'key' exist in the Tree: ".concat(Z)),Q.set(Z,!0),re(at,"".concat(oe).concat(Z," > "))})}re(D)}function I(D){function w(Q){var re=(0,B.Z)(Q);return re.map(function(ee){if(!A(ee))return(0,_e.ZP)(!ee,"Tree/TreeNode can only accept TreeNode as children."),null;var oe=ee.key,ge=ee.props,me=ge.children,at=(0,ae.Z)(ge,o),Z=(0,z.Z)({key:oe},at),T=w(me);return T.length&&(Z.children=T),Z}).filter(function(ee){return ee})}return w(D)}function j(D,w,Q){var re=E(Q),ee=re._title,oe=re.key,ge=re.children,me=new Set(w===!0?[]:w),at=[];function Z(T){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return T.map(function(G,ie){for(var X=g(P?P.pos:"0",ie),y=p(G[oe],X),v,O=0;O<ee.length;O+=1){var pe=ee[O];if(G[pe]!==void 0){v=G[pe];break}}var He=Object.assign((0,d.Z)(G,[].concat((0,ue.Z)(ee),[oe,ge])),{title:v,key:y,parent:P,pos:X,children:null,data:G,isStart:[].concat((0,ue.Z)(P?P.isStart:[]),[ie===0]),isEnd:[].concat((0,ue.Z)(P?P.isEnd:[]),[ie===T.length-1])});return at.push(He),w===!0||me.has(y)?He.children=Z(G[ge]||[],He):He.children=[],He})}return Z(D),at}function $(D,w,Q){var re={};(0,f.Z)(Q)==="object"?re=Q:re={externalGetKey:Q},re=re||{};var ee=re,oe=ee.childrenPropName,ge=ee.externalGetKey,me=ee.fieldNames,at=E(me),Z=at.key,T=at.children,P=oe||T,G;ge?typeof ge=="string"?G=function(y){return y[ge]}:typeof ge=="function"&&(G=function(y){return ge(y)}):G=function(y,v){return p(y[Z],v)};function ie(X,y,v,O){var pe=X?X[P]:D,He=X?g(v.pos,y):"0",tt=X?[].concat((0,ue.Z)(O),[X]):[];if(X){var Ct=G(X,He),Rt={node:X,index:y,pos:He,key:Ct,parentPos:v.node?v.pos:null,level:v.level+1,nodes:tt};w(Rt)}pe&&pe.forEach(function(Ft,Ht){ie(Ft,Ht,{node:X,pos:He,level:v?v.level+1:-1},tt)})}ie(null)}function le(D){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=w.initWrapper,re=w.processEntity,ee=w.onProcessFinished,oe=w.externalGetKey,ge=w.childrenPropName,me=w.fieldNames,at=arguments.length>2?arguments[2]:void 0,Z=oe||at,T={},P={},G={posEntities:T,keyEntities:P};return Q&&(G=Q(G)||G),$(D,function(ie){var X=ie.node,y=ie.index,v=ie.pos,O=ie.key,pe=ie.parentPos,He=ie.level,tt=ie.nodes,Ct={node:X,nodes:tt,index:y,key:O,pos:v,level:He},Rt=p(O,v);T[v]=Ct,P[Rt]=Ct,Ct.parent=T[pe],Ct.parent&&(Ct.parent.children=Ct.parent.children||[],Ct.parent.children.push(Ct)),re&&re(Ct,G)},{externalGetKey:Z,childrenPropName:ge,fieldNames:me}),ee&&ee(G),G}function F(D,w){var Q=w.expandedKeys,re=w.selectedKeys,ee=w.loadedKeys,oe=w.loadingKeys,ge=w.checkedKeys,me=w.halfCheckedKeys,at=w.dragOverNodeKey,Z=w.dropPosition,T=w.keyEntities,P=(0,ne.Z)(T,D),G={eventKey:D,expanded:Q.indexOf(D)!==-1,selected:re.indexOf(D)!==-1,loaded:ee.indexOf(D)!==-1,loading:oe.indexOf(D)!==-1,checked:ge.indexOf(D)!==-1,halfChecked:me.indexOf(D)!==-1,pos:String(P?P.pos:""),dragOver:at===D&&Z===0,dragOverGapTop:at===D&&Z===-1,dragOverGapBottom:at===D&&Z===1};return G}function H(D){var w=D.data,Q=D.expanded,re=D.selected,ee=D.checked,oe=D.loaded,ge=D.loading,me=D.halfChecked,at=D.dragOver,Z=D.dragOverGapTop,T=D.dragOverGapBottom,P=D.pos,G=D.active,ie=D.eventKey,X=(0,z.Z)((0,z.Z)({},w),{},{expanded:Q,selected:re,checked:ee,loaded:oe,loading:ge,halfChecked:me,dragOver:at,dragOverGapTop:Z,dragOverGapBottom:T,pos:P,active:G,key:ie});return"props"in X||Object.defineProperty(X,"props",{get:function(){return(0,_e.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),D}}),X}},8224:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return ue}});var f=_(4676);function ue(z,ae,B,d){var _e=f.unstable_batchedUpdates?function(o){f.unstable_batchedUpdates(B,o)}:B;return z!=null&&z.addEventListener&&z.addEventListener(ae,_e,d),{remove:function(){z!=null&&z.removeEventListener&&z.removeEventListener(ae,_e,d)}}}},24514:function(Pn,Gt,_){"use strict";_.d(Gt,{G:function(){return ae}});var f=_(47273),ue=function(d){if((0,f.Z)()&&window.document.documentElement){var _e=Array.isArray(d)?d:[d],ne=window.document.documentElement;return _e.some(function(o){return o in ne.style})}return!1},z=function(d,_e){if(!ue(d))return!1;var ne=document.createElement("div"),o=ne.style[d];return ne.style[d]=_e,ne.style[d]!==o};function ae(B,d){return!Array.isArray(B)&&d!==void 0?z(B,d):ue(B)}},49658:function(Pn,Gt){"use strict";Gt.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var _=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(_)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(_==null?void 0:_.substr(0,4))}},6790:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return Je}});var f=_(32855),ue=_(34666),z=_(27247),ae=_(74430),B=_(11913),d=_(43079),_e=_(92310),ne=_.n(_e),o=_(29301),g=_(70425),A=_(34280),p=_(59301),E=_(4676),b=p.forwardRef(function(yt,Fe){var we=yt.height,V=yt.offsetY,je=yt.offsetX,Qe=yt.children,q=yt.prefixCls,M=yt.onInnerResize,Se=yt.innerProps,be=yt.rtl,W=yt.extra,fe={},ye={display:"flex",flexDirection:"column"};return V!==void 0&&(fe={height:we,position:"relative",overflow:"hidden"},ye=(0,z.Z)((0,z.Z)({},ye),{},(0,ae.Z)((0,ae.Z)((0,ae.Z)((0,ae.Z)((0,ae.Z)({transform:"translateY(".concat(V,"px)")},be?"marginRight":"marginLeft",-je),"position","absolute"),"left",0),"right",0),"top",0))),p.createElement("div",{style:fe},p.createElement(o.Z,{onResize:function(Ve){var qe=Ve.offsetHeight;qe&&M&&M()}},p.createElement("div",(0,f.Z)({style:ye,className:ne()((0,ae.Z)({},"".concat(q,"-holder-inner"),q)),ref:Fe},Se),Qe,W)))});b.displayName="Filler";var I=b;function j(yt){var Fe=yt.children,we=yt.setRef,V=p.useCallback(function(je){we(je)},[]);return p.cloneElement(Fe,{ref:V})}function $(yt,Fe,we,V,je,Qe,q,M){var Se=M.getKey;return yt.slice(Fe,we+1).map(function(be,W){var fe=Fe+W,ye=q(be,fe,{style:{width:V},offsetX:je}),$e=Se(be);return p.createElement(j,{key:$e,setRef:function(qe){return Qe(be,qe)}},ye)})}function le(yt,Fe,we,V){var je=we-yt,Qe=Fe-we,q=Math.min(je,Qe)*2;if(V<=q){var M=Math.floor(V/2);return V%2?we+M+1:we-M}return je>Qe?we-(V-Qe):we+(V-je)}function F(yt,Fe,we){var V=yt.length,je=Fe.length,Qe,q;if(V===0&&je===0)return null;V<je?(Qe=yt,q=Fe):(Qe=Fe,q=yt);var M={__EMPTY_ITEM__:!0};function Se(Ve){return Ve!==void 0?we(Ve):M}for(var be=null,W=Math.abs(V-je)!==1,fe=0;fe<q.length;fe+=1){var ye=Se(Qe[fe]),$e=Se(q[fe]);if(ye!==$e){be=fe,W=W||ye!==Se(q[fe+1]);break}}return be===null?null:{index:be,multiple:W}}function H(yt,Fe,we){var V=p.useState(yt),je=(0,B.Z)(V,2),Qe=je[0],q=je[1],M=p.useState(null),Se=(0,B.Z)(M,2),be=Se[0],W=Se[1];return p.useEffect(function(){var fe=F(Qe||[],yt||[],Fe);(fe==null?void 0:fe.index)!==void 0&&(we==null||we(fe.index),W(yt[fe.index])),q(yt)},[yt]),[be]}var D=_(16089),w=(typeof navigator=="undefined"?"undefined":(0,ue.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Q=w,re=function(yt,Fe,we,V){var je=(0,p.useRef)(!1),Qe=(0,p.useRef)(null);function q(){clearTimeout(Qe.current),je.current=!0,Qe.current=setTimeout(function(){je.current=!1},50)}var M=(0,p.useRef)({top:yt,bottom:Fe,left:we,right:V});return M.current.top=yt,M.current.bottom=Fe,M.current.left=we,M.current.right=V,function(Se,be){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,fe=Se?be<0&&M.current.left||be>0&&M.current.right:be<0&&M.current.top||be>0&&M.current.bottom;return W&&fe?(clearTimeout(Qe.current),je.current=!1):(!fe||je.current)&&q(),!je.current&&fe}};function ee(yt,Fe,we,V,je,Qe,q){var M=(0,p.useRef)(0),Se=(0,p.useRef)(null),be=(0,p.useRef)(null),W=(0,p.useRef)(!1),fe=re(Fe,we,V,je);function ye(de,K){if(D.Z.cancel(Se.current),!fe(!1,K)){var N=de;if(!N._virtualHandled)N._virtualHandled=!0;else return;M.current+=K,be.current=K,Q||N.preventDefault(),Se.current=(0,D.Z)(function(){var Le=W.current?10:1;q(M.current*Le,!1),M.current=0})}}function $e(de,K){q(K,!0),Q||de.preventDefault()}var Ve=(0,p.useRef)(null),qe=(0,p.useRef)(null);function Ye(de){if(yt){D.Z.cancel(qe.current),qe.current=(0,D.Z)(function(){Ve.current=null},2);var K=de.deltaX,N=de.deltaY,Le=de.shiftKey,De=K,Ae=N;(Ve.current==="sx"||!Ve.current&&Le&&N&&!K)&&(De=N,Ae=0,Ve.current="sx");var it=Math.abs(De),st=Math.abs(Ae);Ve.current===null&&(Ve.current=Qe&&it>st?"x":"y"),Ve.current==="y"?ye(de,Ae):$e(de,De)}}function ot(de){yt&&(W.current=de.detail===be.current)}return[Ye,ot]}function oe(yt,Fe,we,V){var je=p.useMemo(function(){return[new Map,[]]},[yt,we.id,V]),Qe=(0,B.Z)(je,2),q=Qe[0],M=Qe[1],Se=function(W){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:W,ye=q.get(W),$e=q.get(fe);if(ye===void 0||$e===void 0)for(var Ve=yt.length,qe=M.length;qe<Ve;qe+=1){var Ye,ot=yt[qe],de=Fe(ot);q.set(de,qe);var K=(Ye=we.get(de))!==null&&Ye!==void 0?Ye:V;if(M[qe]=(M[qe-1]||0)+K,de===W&&(ye=qe),de===fe&&($e=qe),ye!==void 0&&$e!==void 0)break}return{top:M[ye-1]||0,bottom:M[$e]}};return Se}var ge=_(33377),me=_(93912),at=function(){function yt(){(0,ge.Z)(this,yt),(0,ae.Z)(this,"maps",void 0),(0,ae.Z)(this,"id",0),(0,ae.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,me.Z)(yt,[{key:"set",value:function(we,V){this.diffRecords.set(we,this.maps[we]),this.maps[we]=V,this.id+=1}},{key:"get",value:function(we){return this.maps[we]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),yt}(),Z=at;function T(yt){var Fe=parseFloat(yt);return isNaN(Fe)?0:Fe}function P(yt,Fe,we){var V=p.useState(0),je=(0,B.Z)(V,2),Qe=je[0],q=je[1],M=(0,p.useRef)(new Map),Se=(0,p.useRef)(new Z),be=(0,p.useRef)(0);function W(){be.current+=1}function fe(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;W();var Ve=function(){var ot=!1;M.current.forEach(function(de,K){if(de&&de.offsetParent){var N=de.offsetHeight,Le=getComputedStyle(de),De=Le.marginTop,Ae=Le.marginBottom,it=T(De),st=T(Ae),Oe=N+it+st;Se.current.get(K)!==Oe&&(Se.current.set(K,Oe),ot=!0)}}),ot&&q(function(de){return de+1})};if($e)Ve();else{be.current+=1;var qe=be.current;Promise.resolve().then(function(){qe===be.current&&Ve()})}}function ye($e,Ve){var qe=yt($e),Ye=M.current.get(qe);Ve?(M.current.set(qe,Ve),fe()):M.current.delete(qe),!Ye!=!Ve&&(Ve?Fe==null||Fe($e):we==null||we($e))}return(0,p.useEffect)(function(){return W},[]),[ye,fe,Se.current,Qe]}var G=14/15;function ie(yt,Fe,we){var V=(0,p.useRef)(!1),je=(0,p.useRef)(0),Qe=(0,p.useRef)(0),q=(0,p.useRef)(null),M=(0,p.useRef)(null),Se,be=function($e){if(V.current){var Ve=Math.ceil($e.touches[0].pageX),qe=Math.ceil($e.touches[0].pageY),Ye=je.current-Ve,ot=Qe.current-qe,de=Math.abs(Ye)>Math.abs(ot);de?je.current=Ve:Qe.current=qe;var K=we(de,de?Ye:ot,!1,$e);K&&$e.preventDefault(),clearInterval(M.current),K&&(M.current=setInterval(function(){de?Ye*=G:ot*=G;var N=Math.floor(de?Ye:ot);(!we(de,N,!0)||Math.abs(N)<=.1)&&clearInterval(M.current)},16))}},W=function(){V.current=!1,Se()},fe=function($e){Se(),$e.touches.length===1&&!V.current&&(V.current=!0,je.current=Math.ceil($e.touches[0].pageX),Qe.current=Math.ceil($e.touches[0].pageY),q.current=$e.target,q.current.addEventListener("touchmove",be,{passive:!1}),q.current.addEventListener("touchend",W,{passive:!0}))};Se=function(){q.current&&(q.current.removeEventListener("touchmove",be),q.current.removeEventListener("touchend",W))},(0,A.Z)(function(){return yt&&Fe.current.addEventListener("touchstart",fe,{passive:!0}),function(){var ye;(ye=Fe.current)===null||ye===void 0||ye.removeEventListener("touchstart",fe),Se(),clearInterval(M.current)}},[yt])}function X(yt){return Math.floor(Math.pow(yt,.5))}function y(yt,Fe){var we="touches"in yt?yt.touches[0]:yt;return we[Fe?"pageX":"pageY"]-window[Fe?"scrollX":"scrollY"]}function v(yt,Fe,we){p.useEffect(function(){var V=Fe.current;if(yt&&V){var je=!1,Qe,q,M=function(){D.Z.cancel(Qe)},Se=function ye(){M(),Qe=(0,D.Z)(function(){we(q),ye()})},be=function($e){if(!($e.target.draggable||$e.button!==0)){var Ve=$e;Ve._virtualHandled||(Ve._virtualHandled=!0,je=!0)}},W=function(){je=!1,M()},fe=function($e){if(je){var Ve=y($e,!1),qe=V.getBoundingClientRect(),Ye=qe.top,ot=qe.bottom;if(Ve<=Ye){var de=Ye-Ve;q=-X(de),Se()}else if(Ve>=ot){var K=Ve-ot;q=X(K),Se()}else M()}};return V.addEventListener("mousedown",be),V.ownerDocument.addEventListener("mouseup",W),V.ownerDocument.addEventListener("mousemove",fe),function(){V.removeEventListener("mousedown",be),V.ownerDocument.removeEventListener("mouseup",W),V.ownerDocument.removeEventListener("mousemove",fe),M()}}},[yt])}var O=10;function pe(yt,Fe,we,V,je,Qe,q,M){var Se=p.useRef(),be=p.useState(null),W=(0,B.Z)(be,2),fe=W[0],ye=W[1];return(0,A.Z)(function(){if(fe&&fe.times<O){if(!yt.current){ye(function(Y){return(0,z.Z)({},Y)});return}Qe();var $e=fe.targetAlign,Ve=fe.originAlign,qe=fe.index,Ye=fe.offset,ot=yt.current.clientHeight,de=!1,K=$e,N=null;if(ot){for(var Le=$e||Ve,De=0,Ae=0,it=0,st=Math.min(Fe.length-1,qe),Oe=0;Oe<=st;Oe+=1){var Et=je(Fe[Oe]);Ae=De;var jt=we.get(Et);it=Ae+(jt===void 0?V:jt),De=it}for(var wt=Le==="top"?Ye:ot-Ye,Bt=st;Bt>=0;Bt-=1){var se=je(Fe[Bt]),ve=we.get(se);if(ve===void 0){de=!0;break}if(wt-=ve,wt<=0)break}switch(Le){case"top":N=Ae-Ye;break;case"bottom":N=it-ot+Ye;break;default:{var Ee=yt.current.scrollTop,k=Ee+ot;Ae<Ee?K="top":it>k&&(K="bottom")}}N!==null&&q(N),N!==fe.lastTop&&(de=!0)}de&&ye((0,z.Z)((0,z.Z)({},fe),{},{times:fe.times+1,targetAlign:K,lastTop:N}))}},[fe,yt.current]),function($e){if($e==null){M();return}if(D.Z.cancel(Se.current),typeof $e=="number")q($e);else if($e&&(0,ue.Z)($e)==="object"){var Ve,qe=$e.align;"index"in $e?Ve=$e.index:Ve=Fe.findIndex(function(de){return je(de)===$e.key});var Ye=$e.offset,ot=Ye===void 0?0:Ye;ye({times:0,index:Ve,offset:ot,originAlign:qe})}}}var He=p.forwardRef(function(yt,Fe){var we=yt.prefixCls,V=yt.rtl,je=yt.scrollOffset,Qe=yt.scrollRange,q=yt.onStartMove,M=yt.onStopMove,Se=yt.onScroll,be=yt.horizontal,W=yt.spinSize,fe=yt.containerSize,ye=yt.style,$e=yt.thumbStyle,Ve=yt.showScrollBar,qe=p.useState(!1),Ye=(0,B.Z)(qe,2),ot=Ye[0],de=Ye[1],K=p.useState(null),N=(0,B.Z)(K,2),Le=N[0],De=N[1],Ae=p.useState(null),it=(0,B.Z)(Ae,2),st=it[0],Oe=it[1],Et=!V,jt=p.useRef(),wt=p.useRef(),Bt=p.useState(Ve),se=(0,B.Z)(Bt,2),ve=se[0],Ee=se[1],k=p.useRef(),Y=function(){Ve===!0||Ve===!1||(clearTimeout(k.current),Ee(!0),k.current=setTimeout(function(){Ee(!1)},3e3))},he=Qe-fe||0,ce=fe-W||0,xe=p.useMemo(function(){if(je===0||he===0)return 0;var ze=je/he;return ze*ce},[je,he,ce]),Be=function(ke){ke.stopPropagation(),ke.preventDefault()},Xe=p.useRef({top:xe,dragging:ot,pageY:Le,startTop:st});Xe.current={top:xe,dragging:ot,pageY:Le,startTop:st};var ut=function(ke){de(!0),De(y(ke,be)),Oe(Xe.current.top),q(),ke.stopPropagation(),ke.preventDefault()};p.useEffect(function(){var ze=function(We){We.preventDefault()},ke=jt.current,Pe=wt.current;return ke.addEventListener("touchstart",ze,{passive:!1}),Pe.addEventListener("touchstart",ut,{passive:!1}),function(){ke.removeEventListener("touchstart",ze),Pe.removeEventListener("touchstart",ut)}},[]);var nt=p.useRef();nt.current=he;var Ue=p.useRef();Ue.current=ce,p.useEffect(function(){if(ot){var ze,ke=function(We){var ct=Xe.current,Lt=ct.dragging,Pt=ct.pageY,cn=ct.startTop;D.Z.cancel(ze);var Ne=jt.current.getBoundingClientRect(),Re=fe/(be?Ne.width:Ne.height);if(Lt){var dt=(y(We,be)-Pt)*Re,mt=cn;!Et&&be?mt-=dt:mt+=dt;var Mt=nt.current,bt=Ue.current,Tt=bt?mt/bt:0,Kt=Math.ceil(Tt*Mt);Kt=Math.max(Kt,0),Kt=Math.min(Kt,Mt),ze=(0,D.Z)(function(){Se(Kt,be)})}},Pe=function(){de(!1),M()};return window.addEventListener("mousemove",ke,{passive:!0}),window.addEventListener("touchmove",ke,{passive:!0}),window.addEventListener("mouseup",Pe,{passive:!0}),window.addEventListener("touchend",Pe,{passive:!0}),function(){window.removeEventListener("mousemove",ke),window.removeEventListener("touchmove",ke),window.removeEventListener("mouseup",Pe),window.removeEventListener("touchend",Pe),D.Z.cancel(ze)}}},[ot]),p.useEffect(function(){return Y(),function(){clearTimeout(k.current)}},[je]),p.useImperativeHandle(Fe,function(){return{delayHidden:Y}});var R="".concat(we,"-scrollbar"),U={position:"absolute",visibility:ve?null:"hidden"},S={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return be?(Object.assign(U,{height:8,left:0,right:0,bottom:0}),Object.assign(S,(0,ae.Z)({height:"100%",width:W},Et?"left":"right",xe))):(Object.assign(U,(0,ae.Z)({width:8,top:0,bottom:0},Et?"right":"left",0)),Object.assign(S,{width:"100%",height:W,top:xe})),p.createElement("div",{ref:jt,className:ne()(R,(0,ae.Z)((0,ae.Z)((0,ae.Z)({},"".concat(R,"-horizontal"),be),"".concat(R,"-vertical"),!be),"".concat(R,"-visible"),ve)),style:(0,z.Z)((0,z.Z)({},U),ye),onMouseDown:Be,onMouseMove:Y},p.createElement("div",{ref:wt,className:ne()("".concat(R,"-thumb"),(0,ae.Z)({},"".concat(R,"-thumb-moving"),ot)),style:(0,z.Z)((0,z.Z)({},S),$e),onMouseDown:ut}))}),tt=He,Ct=20;function Rt(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,we=yt/Fe*yt;return isNaN(we)&&(we=0),we=Math.max(we,Ct),Math.floor(we)}var Ft=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ht=[],Ke={overflowY:"auto",overflowAnchor:"none"};function qt(yt,Fe){var we=yt.prefixCls,V=we===void 0?"rc-virtual-list":we,je=yt.className,Qe=yt.height,q=yt.itemHeight,M=yt.fullHeight,Se=M===void 0?!0:M,be=yt.style,W=yt.data,fe=yt.children,ye=yt.itemKey,$e=yt.virtual,Ve=yt.direction,qe=yt.scrollWidth,Ye=yt.component,ot=Ye===void 0?"div":Ye,de=yt.onScroll,K=yt.onVirtualScroll,N=yt.onVisibleChange,Le=yt.innerProps,De=yt.extraRender,Ae=yt.styles,it=yt.showScrollBar,st=it===void 0?"optional":it,Oe=(0,d.Z)(yt,Ft),Et=p.useCallback(function(vt){return typeof ye=="function"?ye(vt):vt==null?void 0:vt[ye]},[ye]),jt=P(Et,null,null),wt=(0,B.Z)(jt,4),Bt=wt[0],se=wt[1],ve=wt[2],Ee=wt[3],k=!!($e!==!1&&Qe&&q),Y=p.useMemo(function(){return Object.values(ve.maps).reduce(function(vt,xt){return vt+xt},0)},[ve.id,ve.maps]),he=k&&W&&(Math.max(q*W.length,Y)>Qe||!!qe),ce=Ve==="rtl",xe=ne()(V,(0,ae.Z)({},"".concat(V,"-rtl"),ce),je),Be=W||Ht,Xe=(0,p.useRef)(),ut=(0,p.useRef)(),nt=(0,p.useRef)(),Ue=(0,p.useState)(0),R=(0,B.Z)(Ue,2),U=R[0],S=R[1],ze=(0,p.useState)(0),ke=(0,B.Z)(ze,2),Pe=ke[0],Ge=ke[1],We=(0,p.useState)(!1),ct=(0,B.Z)(We,2),Lt=ct[0],Pt=ct[1],cn=function(){Pt(!0)},Ne=function(){Pt(!1)},Re={getKey:Et};function dt(vt){S(function(xt){var Nt;typeof vt=="function"?Nt=vt(xt):Nt=vt;var Zt=Yn(Nt);return Xe.current.scrollTop=Zt,Zt})}var mt=(0,p.useRef)({start:0,end:Be.length}),Mt=(0,p.useRef)(),bt=H(Be,Et),Tt=(0,B.Z)(bt,1),Kt=Tt[0];Mt.current=Kt;var en=p.useMemo(function(){if(!k)return{scrollHeight:void 0,start:0,end:Be.length-1,offset:void 0};if(!he){var vt;return{scrollHeight:((vt=ut.current)===null||vt===void 0?void 0:vt.offsetHeight)||0,start:0,end:Be.length-1,offset:void 0}}for(var xt=0,Nt,Zt,nn,gn=Be.length,Kn=0;Kn<gn;Kn+=1){var mn=Be[Kn],Sn=Et(mn),Fn=ve.get(Sn),Nn=xt+(Fn===void 0?q:Fn);Nn>=U&&Nt===void 0&&(Nt=Kn,Zt=xt),Nn>U+Qe&&nn===void 0&&(nn=Kn),xt=Nn}return Nt===void 0&&(Nt=0,Zt=0,nn=Math.ceil(Qe/q)),nn===void 0&&(nn=Be.length-1),nn=Math.min(nn+1,Be.length-1),{scrollHeight:xt,start:Nt,end:nn,offset:Zt}},[he,k,U,Be,Ee,Qe]),At=en.scrollHeight,dn=en.start,an=en.end,Jt=en.offset;mt.current.start=dn,mt.current.end=an,p.useLayoutEffect(function(){var vt=ve.getRecord();if(vt.size===1){var xt=Array.from(vt.keys())[0],Nt=vt.get(xt),Zt=Be[dn];if(Zt&&Nt===void 0){var nn=Et(Zt);if(nn===xt){var gn=ve.get(xt),Kn=gn-q;dt(function(mn){return mn+Kn})}}}ve.resetRecord()},[At]);var kt=p.useState({width:0,height:Qe}),Ze=(0,B.Z)(kt,2),ft=Ze[0],St=Ze[1],Ot=function(xt){St({width:xt.offsetWidth,height:xt.offsetHeight})},tn=(0,p.useRef)(),et=(0,p.useRef)(),ln=p.useMemo(function(){return Rt(ft.width,qe)},[ft.width,qe]),xn=p.useMemo(function(){return Rt(ft.height,At)},[ft.height,At]),Tn=At-Qe,Cn=(0,p.useRef)(Tn);Cn.current=Tn;function Yn(vt){var xt=vt;return Number.isNaN(Cn.current)||(xt=Math.min(xt,Cn.current)),xt=Math.max(xt,0),xt}var Dn=U<=0,Zn=U>=Tn,On=Pe<=0,Bn=Pe>=qe,In=re(Dn,Zn,On,Bn),yn=function(){return{x:ce?-Pe:Pe,y:U}},kn=(0,p.useRef)(yn()),pn=(0,g.zX)(function(vt){if(K){var xt=(0,z.Z)((0,z.Z)({},yn()),vt);(kn.current.x!==xt.x||kn.current.y!==xt.y)&&(K(xt),kn.current=xt)}});function En(vt,xt){var Nt=vt;xt?((0,E.flushSync)(function(){Ge(Nt)}),pn()):dt(Nt)}function Ln(vt){var xt=vt.currentTarget.scrollTop;xt!==U&&dt(xt),de==null||de(vt),pn()}var Mn=function(xt){var Nt=xt,Zt=qe?qe-ft.width:0;return Nt=Math.max(Nt,0),Nt=Math.min(Nt,Zt),Nt},zn=(0,g.zX)(function(vt,xt){xt?((0,E.flushSync)(function(){Ge(function(Nt){var Zt=Nt+(ce?-vt:vt);return Mn(Zt)})}),pn()):dt(function(Nt){var Zt=Nt+vt;return Zt})}),Un=ee(k,Dn,Zn,On,Bn,!!qe,zn),ar=(0,B.Z)(Un,2),Me=ar[0],Ie=ar[1];ie(k,Xe,function(vt,xt,Nt,Zt){var nn=Zt;return In(vt,xt,Nt)?!1:!nn||!nn._virtualHandled?(nn&&(nn._virtualHandled=!0),Me({preventDefault:function(){},deltaX:vt?xt:0,deltaY:vt?0:xt}),!0):!1}),v(he,Xe,function(vt){dt(function(xt){return xt+vt})}),(0,A.Z)(function(){function vt(Nt){var Zt=Dn&&Nt.detail<0,nn=Zn&&Nt.detail>0;k&&!Zt&&!nn&&Nt.preventDefault()}var xt=Xe.current;return xt.addEventListener("wheel",Me,{passive:!1}),xt.addEventListener("DOMMouseScroll",Ie,{passive:!0}),xt.addEventListener("MozMousePixelScroll",vt,{passive:!1}),function(){xt.removeEventListener("wheel",Me),xt.removeEventListener("DOMMouseScroll",Ie),xt.removeEventListener("MozMousePixelScroll",vt)}},[k,Dn,Zn]),(0,A.Z)(function(){if(qe){var vt=Mn(Pe);Ge(vt),pn({x:vt})}},[ft.width,qe]);var Te=function(){var xt,Nt;(xt=tn.current)===null||xt===void 0||xt.delayHidden(),(Nt=et.current)===null||Nt===void 0||Nt.delayHidden()},lt=pe(Xe,Be,ve,q,Et,function(){return se(!0)},dt,Te);p.useImperativeHandle(Fe,function(){return{nativeElement:nt.current,getScrollInfo:yn,scrollTo:function(xt){function Nt(Zt){return Zt&&(0,ue.Z)(Zt)==="object"&&("left"in Zt||"top"in Zt)}Nt(xt)?(xt.left!==void 0&&Ge(Mn(xt.left)),lt(xt.top)):lt(xt)}}}),(0,A.Z)(function(){if(N){var vt=Be.slice(dn,an+1);N(vt,Be)}},[dn,an,Be]);var gt=oe(Be,Et,ve,q),_t=De==null?void 0:De({start:dn,end:an,virtual:he,offsetX:Pe,offsetY:Jt,rtl:ce,getSize:gt}),zt=$(Be,dn,an,qe,Pe,Bt,fe,Re),Wt=null;Qe&&(Wt=(0,z.Z)((0,ae.Z)({},Se?"height":"maxHeight",Qe),Ke),k&&(Wt.overflowY="hidden",qe&&(Wt.overflowX="hidden"),Lt&&(Wt.pointerEvents="none")));var It={};return ce&&(It.dir="rtl"),p.createElement("div",(0,f.Z)({ref:nt,style:(0,z.Z)((0,z.Z)({},be),{},{position:"relative"}),className:xe},It,Oe),p.createElement(o.Z,{onResize:Ot},p.createElement(ot,{className:"".concat(V,"-holder"),style:Wt,ref:Xe,onScroll:Ln,onMouseEnter:Te},p.createElement(I,{prefixCls:V,height:At,offsetX:Pe,offsetY:Jt,scrollWidth:qe,onInnerResize:se,ref:ut,innerProps:Le,rtl:ce,extra:_t},zt))),he&&At>Qe&&p.createElement(tt,{ref:tn,prefixCls:V,scrollOffset:U,scrollRange:At,rtl:ce,onScroll:En,onStartMove:cn,onStopMove:Ne,spinSize:xn,containerSize:ft.height,style:Ae==null?void 0:Ae.verticalScrollBar,thumbStyle:Ae==null?void 0:Ae.verticalScrollBarThumb,showScrollBar:st}),he&&qe>ft.width&&p.createElement(tt,{ref:et,prefixCls:V,scrollOffset:Pe,scrollRange:qe,rtl:ce,onScroll:En,onStartMove:cn,onStopMove:Ne,spinSize:ln,containerSize:ft.width,horizontal:!0,style:Ae==null?void 0:Ae.horizontalScrollBar,thumbStyle:Ae==null?void 0:Ae.horizontalScrollBarThumb,showScrollBar:st}))}var Dt=p.forwardRef(qt);Dt.displayName="List";var sn=Dt,Je=sn},83145:function(Pn,Gt,_){"use strict";Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.CopyToClipboard=void 0;var f=z(_(59301)),ue=z(_(25769));function z(F){return F&&F.__esModule?F:{default:F}}function ae(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ae=function(D){return typeof D}:ae=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},ae(F)}function B(F,H){var D=Object.keys(F);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(F);H&&(w=w.filter(function(Q){return Object.getOwnPropertyDescriptor(F,Q).enumerable})),D.push.apply(D,w)}return D}function d(F){for(var H=1;H<arguments.length;H++){var D=arguments[H]!=null?arguments[H]:{};H%2?B(D,!0).forEach(function(w){$(F,w,D[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(F,Object.getOwnPropertyDescriptors(D)):B(D).forEach(function(w){Object.defineProperty(F,w,Object.getOwnPropertyDescriptor(D,w))})}return F}function _e(F,H){if(F==null)return{};var D=ne(F,H),w,Q;if(Object.getOwnPropertySymbols){var re=Object.getOwnPropertySymbols(F);for(Q=0;Q<re.length;Q++)w=re[Q],!(H.indexOf(w)>=0)&&Object.prototype.propertyIsEnumerable.call(F,w)&&(D[w]=F[w])}return D}function ne(F,H){if(F==null)return{};var D={},w=Object.keys(F),Q,re;for(re=0;re<w.length;re++)Q=w[re],!(H.indexOf(Q)>=0)&&(D[Q]=F[Q]);return D}function o(F,H){if(!(F instanceof H))throw new TypeError("Cannot call a class as a function")}function g(F,H){for(var D=0;D<H.length;D++){var w=H[D];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(F,w.key,w)}}function A(F,H,D){return H&&g(F.prototype,H),D&&g(F,D),F}function p(F,H){return H&&(ae(H)==="object"||typeof H=="function")?H:b(F)}function E(F){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},E(F)}function b(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function I(F,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(H&&H.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),H&&j(F,H)}function j(F,H){return j=Object.setPrototypeOf||function(w,Q){return w.__proto__=Q,w},j(F,H)}function $(F,H,D){return H in F?Object.defineProperty(F,H,{value:D,enumerable:!0,configurable:!0,writable:!0}):F[H]=D,F}var le=function(F){I(H,F);function H(){var D,w;o(this,H);for(var Q=arguments.length,re=new Array(Q),ee=0;ee<Q;ee++)re[ee]=arguments[ee];return w=p(this,(D=E(H)).call.apply(D,[this].concat(re))),$(b(w),"onClick",function(oe){var ge=w.props,me=ge.text,at=ge.onCopy,Z=ge.children,T=ge.options,P=f.default.Children.only(Z),G=(0,ue.default)(me,T);at&&at(me,G),P&&P.props&&typeof P.props.onClick=="function"&&P.props.onClick(oe)}),w}return A(H,[{key:"render",value:function(){var w=this.props,Q=w.text,re=w.onCopy,ee=w.options,oe=w.children,ge=_e(w,["text","onCopy","options","children"]),me=f.default.Children.only(oe);return f.default.cloneElement(me,d({},ge,{onClick:this.onClick}))}}]),H}(f.default.PureComponent);Gt.CopyToClipboard=le,$(le,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Pn,Gt,_){"use strict";var f=_(83145),ue=f.CopyToClipboard;ue.CopyToClipboard=ue,Pn.exports=ue},76374:function(Pn,Gt,_){"use strict";var f=function(){if(typeof Map!="undefined")return Map;function Z(T,P){var G=-1;return T.some(function(ie,X){return ie[0]===P?(G=X,!0):!1}),G}return function(){function T(){this.__entries__=[]}return Object.defineProperty(T.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),T.prototype.get=function(P){var G=Z(this.__entries__,P),ie=this.__entries__[G];return ie&&ie[1]},T.prototype.set=function(P,G){var ie=Z(this.__entries__,P);~ie?this.__entries__[ie][1]=G:this.__entries__.push([P,G])},T.prototype.delete=function(P){var G=this.__entries__,ie=Z(G,P);~ie&&G.splice(ie,1)},T.prototype.has=function(P){return!!~Z(this.__entries__,P)},T.prototype.clear=function(){this.__entries__.splice(0)},T.prototype.forEach=function(P,G){G===void 0&&(G=null);for(var ie=0,X=this.__entries__;ie<X.length;ie++){var y=X[ie];P.call(G,y[1],y[0])}},T}()}(),ue=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,z=function(){return typeof _.g!="undefined"&&_.g.Math===Math?_.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),ae=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(z):function(Z){return setTimeout(function(){return Z(Date.now())},1e3/60)}}(),B=2;function d(Z,T){var P=!1,G=!1,ie=0;function X(){P&&(P=!1,Z()),G&&v()}function y(){ae(X)}function v(){var O=Date.now();if(P){if(O-ie<B)return;G=!0}else P=!0,G=!1,setTimeout(y,T);ie=O}return v}var _e=20,ne=["top","right","bottom","left","width","height","size","weight"],o=typeof MutationObserver!="undefined",g=function(){function Z(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=d(this.refresh.bind(this),_e)}return Z.prototype.addObserver=function(T){~this.observers_.indexOf(T)||this.observers_.push(T),this.connected_||this.connect_()},Z.prototype.removeObserver=function(T){var P=this.observers_,G=P.indexOf(T);~G&&P.splice(G,1),!P.length&&this.connected_&&this.disconnect_()},Z.prototype.refresh=function(){var T=this.updateObservers_();T&&this.refresh()},Z.prototype.updateObservers_=function(){var T=this.observers_.filter(function(P){return P.gatherActive(),P.hasActive()});return T.forEach(function(P){return P.broadcastActive()}),T.length>0},Z.prototype.connect_=function(){!ue||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),o?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},Z.prototype.disconnect_=function(){!ue||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},Z.prototype.onTransitionEnd_=function(T){var P=T.propertyName,G=P===void 0?"":P,ie=ne.some(function(X){return!!~G.indexOf(X)});ie&&this.refresh()},Z.getInstance=function(){return this.instance_||(this.instance_=new Z),this.instance_},Z.instance_=null,Z}(),A=function(Z,T){for(var P=0,G=Object.keys(T);P<G.length;P++){var ie=G[P];Object.defineProperty(Z,ie,{value:T[ie],enumerable:!1,writable:!1,configurable:!0})}return Z},p=function(Z){var T=Z&&Z.ownerDocument&&Z.ownerDocument.defaultView;return T||z},E=Q(0,0,0,0);function b(Z){return parseFloat(Z)||0}function I(Z){for(var T=[],P=1;P<arguments.length;P++)T[P-1]=arguments[P];return T.reduce(function(G,ie){var X=Z["border-"+ie+"-width"];return G+b(X)},0)}function j(Z){for(var T=["top","right","bottom","left"],P={},G=0,ie=T;G<ie.length;G++){var X=ie[G],y=Z["padding-"+X];P[X]=b(y)}return P}function $(Z){var T=Z.getBBox();return Q(0,0,T.width,T.height)}function le(Z){var T=Z.clientWidth,P=Z.clientHeight;if(!T&&!P)return E;var G=p(Z).getComputedStyle(Z),ie=j(G),X=ie.left+ie.right,y=ie.top+ie.bottom,v=b(G.width),O=b(G.height);if(G.boxSizing==="border-box"&&(Math.round(v+X)!==T&&(v-=I(G,"left","right")+X),Math.round(O+y)!==P&&(O-=I(G,"top","bottom")+y)),!H(Z)){var pe=Math.round(v+X)-T,He=Math.round(O+y)-P;Math.abs(pe)!==1&&(v-=pe),Math.abs(He)!==1&&(O-=He)}return Q(ie.left,ie.top,v,O)}var F=function(){return typeof SVGGraphicsElement!="undefined"?function(Z){return Z instanceof p(Z).SVGGraphicsElement}:function(Z){return Z instanceof p(Z).SVGElement&&typeof Z.getBBox=="function"}}();function H(Z){return Z===p(Z).document.documentElement}function D(Z){return ue?F(Z)?$(Z):le(Z):E}function w(Z){var T=Z.x,P=Z.y,G=Z.width,ie=Z.height,X=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,y=Object.create(X.prototype);return A(y,{x:T,y:P,width:G,height:ie,top:P,right:T+G,bottom:ie+P,left:T}),y}function Q(Z,T,P,G){return{x:Z,y:T,width:P,height:G}}var re=function(){function Z(T){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Q(0,0,0,0),this.target=T}return Z.prototype.isActive=function(){var T=D(this.target);return this.contentRect_=T,T.width!==this.broadcastWidth||T.height!==this.broadcastHeight},Z.prototype.broadcastRect=function(){var T=this.contentRect_;return this.broadcastWidth=T.width,this.broadcastHeight=T.height,T},Z}(),ee=function(){function Z(T,P){var G=w(P);A(this,{target:T,contentRect:G})}return Z}(),oe=function(){function Z(T,P,G){if(this.activeObservations_=[],this.observations_=new f,typeof T!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=T,this.controller_=P,this.callbackCtx_=G}return Z.prototype.observe=function(T){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(T instanceof p(T).Element))throw new TypeError('parameter 1 is not of type "Element".');var P=this.observations_;P.has(T)||(P.set(T,new re(T)),this.controller_.addObserver(this),this.controller_.refresh())}},Z.prototype.unobserve=function(T){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(T instanceof p(T).Element))throw new TypeError('parameter 1 is not of type "Element".');var P=this.observations_;P.has(T)&&(P.delete(T),P.size||this.controller_.removeObserver(this))}},Z.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},Z.prototype.gatherActive=function(){var T=this;this.clearActive(),this.observations_.forEach(function(P){P.isActive()&&T.activeObservations_.push(P)})},Z.prototype.broadcastActive=function(){if(this.hasActive()){var T=this.callbackCtx_,P=this.activeObservations_.map(function(G){return new ee(G.target,G.broadcastRect())});this.callback_.call(T,P,T),this.clearActive()}},Z.prototype.clearActive=function(){this.activeObservations_.splice(0)},Z.prototype.hasActive=function(){return this.activeObservations_.length>0},Z}(),ge=typeof WeakMap!="undefined"?new WeakMap:new f,me=function(){function Z(T){if(!(this instanceof Z))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var P=g.getInstance(),G=new oe(T,P,this);ge.set(this,G)}return Z}();["observe","unobserve","disconnect"].forEach(function(Z){me.prototype[Z]=function(){var T;return(T=ge.get(this))[Z].apply(T,arguments)}});var at=function(){return typeof z.ResizeObserver!="undefined"?z.ResizeObserver:me}();Gt.Z=at},38710:function(Pn){var Gt=function(_){return _.replace(/[A-Z]/g,function(f){return"-"+f.toLowerCase()}).toLowerCase()};Pn.exports=Gt},98040:function(Pn){Pn.exports=function(){var Gt=document.getSelection();if(!Gt.rangeCount)return function(){};for(var _=document.activeElement,f=[],ue=0;ue<Gt.rangeCount;ue++)f.push(Gt.getRangeAt(ue));switch(_.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":_.blur();break;default:_=null;break}return Gt.removeAllRanges(),function(){Gt.type==="Caret"&&Gt.removeAllRanges(),Gt.rangeCount||f.forEach(function(z){Gt.addRange(z)}),_&&_.focus()}}},32637:function(Pn,Gt,_){"use strict";Pn.exports=_.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(Pn){"use strict";Pn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp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hsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+IKw609hIpxv8+mAWp0O0+ZftanLo0hOKRyUYrBl4aG5mvKOWo6ojtRY+72x+z3+Lz8egOhrofOxhXpUd8+h+tc9oS7g9EAF0EYvwJLNJc6n/qQOW3bb0SVS3XhTyYK5LjUL6vlUXJNSaLixlOrSnHZ55MeSaU5fE1pjrEilPNOiqkMtSiSmc/1oNxbXDPJSFxp6P23AZgRx17vu/HCtAD5mo/5t3Rpp2p6aFHji4VBgdaIwd0SsFN2YlE/tZAEfIAuB848lRxbQUq9Plo0ts3hxp7+HY3ti33ANi19fbUvsor0GFoRZHOvk1Y6FIC7q5dSPzcw4Gv8iZ4mnNtBQp0l9BlcHzFAAeu0h8B48V+JdQjQri2D57a/VyBBkMNanSOw1WNCt0bSUh82FZXHgD3cwM81VxbAT10yNWlQm+6vceupKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},93162:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return ue}});var f=_(15417);function ue(z,ae){var B=typeof Symbol!="undefined"&&z[Symbol.iterator]||z["@@iterator"];if(!B){if(Array.isArray(z)||(B=(0,f.Z)(z))||ae&&z&&typeof z.length=="number"){B&&(z=B);var d=0,_e=function(){};return{s:_e,n:function(){return d>=z.length?{done:!0}:{done:!1,value:z[d++]}},e:function(p){throw p},f:_e}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ne,o=!0,g=!1;return{s:function(){B=B.call(z)},n:function(){var p=B.next();return o=p.done,p},e:function(p){g=!0,ne=p},f:function(){try{o||B.return==null||B.return()}finally{if(g)throw ne}}}}},81098:function(Pn,Gt,_){"use strict";_.d(Gt,{ZP:function(){return ms}});const f=Number.isFinite||function(a){return typeof a=="number"&&isFinite(a)},ue=Number.isSafeInteger||function(a){return typeof a=="number"&&Math.abs(a)<=z},z=Number.MAX_SAFE_INTEGER||9007199254740991;let ae=function(a){return a.NETWORK_ERROR="networkError",a.MEDIA_ERROR="mediaError",a.KEY_SYSTEM_ERROR="keySystemError",a.MUX_ERROR="muxError",a.OTHER_ERROR="otherError",a}({}),B=function(a){return a.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",a.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",a.KEY_SYSTEM_NO_SESSION="keySystemNoSession",a.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",a.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",a.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",a.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",a.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",a.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",a.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",a.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",a.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",a.MANIFEST_LOAD_ERROR="manifestLoadError",a.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",a.MANIFEST_PARSING_ERROR="manifestParsingError",a.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",a.LEVEL_EMPTY_ERROR="levelEmptyError",a.LEVEL_LOAD_ERROR="levelLoadError",a.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",a.LEVEL_PARSING_ERROR="levelParsingError",a.LEVEL_SWITCH_ERROR="levelSwitchError",a.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",a.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",a.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",a.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",a.FRAG_LOAD_ERROR="fragLoadError",a.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",a.FRAG_DECRYPT_ERROR="fragDecryptError",a.FRAG_PARSING_ERROR="fragParsingError",a.FRAG_GAP="fragGap",a.REMUX_ALLOC_ERROR="remuxAllocError",a.KEY_LOAD_ERROR="keyLoadError",a.KEY_LOAD_TIMEOUT="keyLoadTimeOut",a.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",a.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",a.BUFFER_APPEND_ERROR="bufferAppendError",a.BUFFER_APPENDING_ERROR="bufferAppendingError",a.BUFFER_STALLED_ERROR="bufferStalledError",a.BUFFER_FULL_ERROR="bufferFullError",a.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",a.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",a.ASSET_LIST_LOAD_ERROR="assetListLoadError",a.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",a.ASSET_LIST_PARSING_ERROR="assetListParsingError",a.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",a.INTERNAL_EXCEPTION="internalException",a.INTERNAL_ABORTED="aborted",a.ATTACH_MEDIA_ERROR="attachMediaError",a.UNKNOWN="unknown",a}({}),d=function(a){return a.MEDIA_ATTACHING="hlsMediaAttaching",a.MEDIA_ATTACHED="hlsMediaAttached",a.MEDIA_DETACHING="hlsMediaDetaching",a.MEDIA_DETACHED="hlsMediaDetached",a.MEDIA_ENDED="hlsMediaEnded",a.STALL_RESOLVED="hlsStallResolved",a.BUFFER_RESET="hlsBufferReset",a.BUFFER_CODECS="hlsBufferCodecs",a.BUFFER_CREATED="hlsBufferCreated",a.BUFFER_APPENDING="hlsBufferAppending",a.BUFFER_APPENDED="hlsBufferAppended",a.BUFFER_EOS="hlsBufferEos",a.BUFFERED_TO_END="hlsBufferedToEnd",a.BUFFER_FLUSHING="hlsBufferFlushing",a.BUFFER_FLUSHED="hlsBufferFlushed",a.MANIFEST_LOADING="hlsManifestLoading",a.MANIFEST_LOADED="hlsManifestLoaded",a.MANIFEST_PARSED="hlsManifestParsed",a.LEVEL_SWITCHING="hlsLevelSwitching",a.LEVEL_SWITCHED="hlsLevelSwitched",a.LEVEL_LOADING="hlsLevelLoading",a.LEVEL_LOADED="hlsLevelLoaded",a.LEVEL_UPDATED="hlsLevelUpdated",a.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",a.LEVELS_UPDATED="hlsLevelsUpdated",a.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",a.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",a.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",a.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",a.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",a.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",a.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",a.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",a.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",a.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",a.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",a.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",a.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",a.CUES_PARSED="hlsCuesParsed",a.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",a.INIT_PTS_FOUND="hlsInitPtsFound",a.FRAG_LOADING="hlsFragLoading",a.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",a.FRAG_LOADED="hlsFragLoaded",a.FRAG_DECRYPTED="hlsFragDecrypted",a.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",a.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",a.FRAG_PARSING_METADATA="hlsFragParsingMetadata",a.FRAG_PARSED="hlsFragParsed",a.FRAG_BUFFERED="hlsFragBuffered",a.FRAG_CHANGED="hlsFragChanged",a.FPS_DROP="hlsFpsDrop",a.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",a.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",a.ERROR="hlsError",a.DESTROYING="hlsDestroying",a.KEY_LOADING="hlsKeyLoading",a.KEY_LOADED="hlsKeyLoaded",a.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",a.BACK_BUFFER_REACHED="hlsBackBufferReached",a.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",a.ASSET_LIST_LOADING="hlsAssetListLoading",a.ASSET_LIST_LOADED="hlsAssetListLoaded",a.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",a.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",a.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",a.INTERSTITIAL_STARTED="hlsInterstitialStarted",a.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",a.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",a.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",a.INTERSTITIAL_ENDED="hlsInterstitialEnded",a.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",a.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",a.EVENT_CUE_ENTER="hlsEventCueEnter",a}({});var _e={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},ne={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class o{constructor(e,t=0,n=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=e,this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=t,this.totalWeight_=n}sample(e,t){const n=Math.pow(this.alpha_,e);this.estimate_=t*(1-n)+n*this.estimate_,this.totalWeight_+=e}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const e=1-Math.pow(this.alpha_,this.totalWeight_);if(e)return this.estimate_/e}return this.estimate_}}class g{constructor(e,t,n,r=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new o(e),this.fast_=new o(t),this.defaultTTFB_=r,this.ttfb_=new o(e)}update(e,t){const{slow_:n,fast_:r,ttfb_:i}=this;n.halfLife!==e&&(this.slow_=new o(e,n.getEstimate(),n.getTotalWeight())),r.halfLife!==t&&(this.fast_=new o(t,r.getEstimate(),r.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new o(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const n=8*t,r=e/1e3,i=n/r;this.fast_.sample(r,i),this.slow_.sample(r,i)}sampleTTFB(e){const t=e/1e3,n=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(n,Math.max(e,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function A(a,e,t){return(e=j(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function p(){return p=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)({}).hasOwnProperty.call(t,n)&&(a[n]=t[n])}return a},p.apply(null,arguments)}function E(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(a);e&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(a,r).enumerable})),t.push.apply(t,n)}return t}function b(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?E(Object(t),!0).forEach(function(n){A(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):E(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function I(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var n=t.call(a,e);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function j(a){var e=I(a,"string");return typeof e=="symbol"?e:e+""}class ${constructor(e,t){this.trace=void 0,this.debug=void 0,this.log=void 0,this.warn=void 0,this.info=void 0,this.error=void 0;const n=`[${e}]:`;this.trace=le,this.debug=t.debug.bind(null,n),this.log=t.log.bind(null,n),this.warn=t.warn.bind(null,n),this.info=t.info.bind(null,n),this.error=t.error.bind(null,n)}}const le=function(){},F={trace:le,debug:le,log:le,warn:le,info:le,error:le};function H(){return p({},F)}function D(a,e){const t=self.console[a];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${a}] >`):le}function w(a,e,t){return e[a]?e[a].bind(e):D(a,t)}const Q=H();function re(a,e,t){const n=H();if(typeof console=="object"&&a===!0||typeof a=="object"){const r=["debug","log","info","warn","error"];r.forEach(i=>{n[i]=w(i,a,t)});try{n.log(`Debug logs enabled for "${e}" in hls.js version 1.6.10`)}catch(i){return H()}r.forEach(i=>{Q[i]=w(i,a)})}else p(Q,n);return n}const ee=Q;function oe(a=!0){return typeof self=="undefined"?void 0:(a||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function ge(a){return typeof self!="undefined"&&a===self.ManagedMediaSource}function me(a,e){const t=Object.keys(a),n=Object.keys(e),r=t.length,i=n.length;return!r||!i||r===i&&!t.some(s=>n.indexOf(s)===-1)}function at(a,e=!1){if(typeof TextDecoder!="undefined"){const u=new TextDecoder("utf-8").decode(a);if(e){const h=u.indexOf("\0");return h!==-1?u.substring(0,h):u}return u.replace(/\0/g,"")}const t=a.length;let n,r,i,s="",l=0;for(;l<t;){if(n=a[l++],n===0&&e)return s;if(n===0||n===3)continue;switch(n>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:s+=String.fromCharCode(n);break;case 12:case 13:r=a[l++],s+=String.fromCharCode((n&31)<<6|r&63);break;case 14:r=a[l++],i=a[l++],s+=String.fromCharCode((n&15)<<12|(r&63)<<6|(i&63)<<0);break}}return s}const Z={hexDump:function(a){let e="";for(let t=0;t<a.length;t++){let n=a[t].toString(16);n.length<2&&(n="0"+n),e+=n}return e}};function T(a){return Uint8Array.from(a.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}function P(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var G={exports:{}},ie;function X(){return ie||(ie=1,function(a,e){(function(t){var n=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,l={buildAbsoluteURL:function(c,u,h){if(h=h||{},c=c.trim(),u=u.trim(),!u){if(!h.alwaysNormalize)return c;var m=l.parseURL(c);if(!m)throw new Error("Error trying to parse base URL.");return m.path=l.normalizePath(m.path),l.buildURLFromParts(m)}var x=l.parseURL(u);if(!x)throw new Error("Error trying to parse relative URL.");if(x.scheme)return h.alwaysNormalize?(x.path=l.normalizePath(x.path),l.buildURLFromParts(x)):u;var C=l.parseURL(c);if(!C)throw new Error("Error trying to parse base URL.");if(!C.netLoc&&C.path&&C.path[0]!=="/"){var L=r.exec(C.path);C.netLoc=L[1],C.path=L[2]}C.netLoc&&!C.path&&(C.path="/");var te={scheme:C.scheme,netLoc:x.netLoc,path:null,params:x.params,query:x.query,fragment:x.fragment};if(!x.netLoc&&(te.netLoc=C.netLoc,x.path[0]!=="/"))if(!x.path)te.path=C.path,x.params||(te.params=C.params,x.query||(te.query=C.query));else{var J=C.path,Ce=J.substring(0,J.lastIndexOf("/")+1)+x.path;te.path=l.normalizePath(Ce)}return te.path===null&&(te.path=h.alwaysNormalize?l.normalizePath(x.path):x.path),l.buildURLFromParts(te)},parseURL:function(c){var u=n.exec(c);return u?{scheme:u[1]||"",netLoc:u[2]||"",path:u[3]||"",params:u[4]||"",query:u[5]||"",fragment:u[6]||""}:null},normalizePath:function(c){for(c=c.split("").reverse().join("").replace(i,"");c.length!==(c=c.replace(s,"")).length;);return c.split("").reverse().join("")},buildURLFromParts:function(c){return c.scheme+c.netLoc+c.path+c.params+c.query+c.fragment}};a.exports=l})()}(G)),G.exports}var y=X();class v{constructor(){this.aborted=!1,this.loaded=0,this.retry=0,this.total=0,this.chunkCount=0,this.bwEstimate=0,this.loading={start:0,first:0,end:0},this.parsing={start:0,end:0},this.buffering={start:0,first:0,end:0}}}var O={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class pe{constructor(e){this._byteRange=null,this._url=null,this._stats=null,this._streams=null,this.base=void 0,this.relurl=void 0,typeof e=="string"&&(e={url:e}),this.base=e,Ft(this,"stats")}setByteRange(e,t){const n=e.split("@",2);let r;n.length===1?r=(t==null?void 0:t.byteRangeEndOffset)||0:r=parseInt(n[1]),this._byteRange=[r,parseInt(n[0])+r]}get baseurl(){return this.base.url}get byteRange(){return this._byteRange===null?[]:this._byteRange}get byteRangeStartOffset(){return this.byteRange[0]}get byteRangeEndOffset(){return this.byteRange[1]}get elementaryStreams(){return this._streams===null&&(this._streams={[O.AUDIO]:null,[O.VIDEO]:null,[O.AUDIOVIDEO]:null}),this._streams}set elementaryStreams(e){this._streams=e}get hasStats(){return this._stats!==null}get hasStreams(){return this._streams!==null}get stats(){return this._stats===null&&(this._stats=new v),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=y.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[O.AUDIO]=null,e[O.VIDEO]=null,e[O.AUDIOVIDEO]=null}}function He(a){return a.sn!=="initSegment"}class tt extends pe{constructor(e,t){super(t),this._decryptdata=null,this._programDateTime=null,this._ref=null,this._bitrate=void 0,this.rawProgramDateTime=null,this.tagList=[],this.duration=0,this.sn=0,this.levelkeys=void 0,this.type=void 0,this.loader=null,this.keyLoader=null,this.level=-1,this.cc=0,this.startPTS=void 0,this.endPTS=void 0,this.startDTS=void 0,this.endDTS=void 0,this.start=0,this.playlistOffset=0,this.deltaPTS=void 0,this.maxStartPTS=void 0,this.minEndPTS=void 0,this.data=void 0,this.bitrateTest=!1,this.title=null,this.initSegment=null,this.endList=void 0,this.gap=void 0,this.urlId=0,this.type=e}get byteLength(){if(this.hasStats){const e=this.stats.total;if(e)return e}if(this.byteRange.length){const e=this.byteRange[0],t=this.byteRange[1];if(f(e)&&f(t))return t-e}return null}get bitrate(){return this.byteLength?this.byteLength*8/this.duration:this._bitrate?this._bitrate:null}set bitrate(e){this._bitrate=e}get decryptdata(){const{levelkeys:e}=this;if(!e&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkeys&&!this.levelkeys.NONE){const t=this.levelkeys.identity;if(t)this._decryptdata=t.getDecryptData(this.sn);else{const n=Object.keys(this.levelkeys);if(n.length===1){const r=this._decryptdata=this.levelkeys[n[0]]||null;if(r)return r.getDecryptData(this.sn)}}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null)return null;const e=f(this.duration)?this.duration:0;return this.programDateTime+e*1e3}get encrypted(){var e;if((e=this._decryptdata)!=null&&e.encrypted)return!0;if(this.levelkeys){var t;const n=Object.keys(this.levelkeys),r=n.length;if(r>1||r===1&&(t=this.levelkeys[n[0]])!=null&&t.encrypted)return!0}return!1}get programDateTime(){return this._programDateTime===null&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(e){if(!f(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return He(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(e){this.setStart(this.start+e)}setStart(e){this.start=e,this._ref&&(this._ref.start=e)}setDuration(e){this.duration=e,this._ref&&(this._ref.duration=e)}setKeyFormat(e){if(this.levelkeys){const t=this.levelkeys[e];t&&!this._decryptdata&&(this._decryptdata=t.getDecryptData(this.sn))}}abortRequests(){var e,t;(e=this.loader)==null||e.abort(),(t=this.keyLoader)==null||t.abort()}setElementaryStreamInfo(e,t,n,r,i,s=!1){const{elementaryStreams:l}=this,c=l[e];if(!c){l[e]={startPTS:t,endPTS:n,startDTS:r,endDTS:i,partial:s};return}c.startPTS=Math.min(c.startPTS,t),c.endPTS=Math.max(c.endPTS,n),c.startDTS=Math.min(c.startDTS,r),c.endDTS=Math.max(c.endDTS,i)}}class Ct extends pe{constructor(e,t,n,r,i){super(n),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=e.decimalFloatingPoint("DURATION"),this.gap=e.bool("GAP"),this.independent=e.bool("INDEPENDENT"),this.relurl=e.enumeratedString("URI"),this.fragment=t,this.index=r;const s=e.enumeratedString("BYTERANGE");s&&this.setByteRange(s,i),i&&(this.fragOffset=i.fragOffset+i.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:e}=this;return!!(e.audio||e.video||e.audiovideo)}}function Rt(a,e){const t=Object.getPrototypeOf(a);if(t){const n=Object.getOwnPropertyDescriptor(t,e);return n||Rt(t,e)}}function Ft(a,e){const t=Rt(a,e);t&&(t.enumerable=!0,Object.defineProperty(a,e,t))}const Ht=Math.pow(2,32)-1,Ke=[].push,qt={video:1,audio:2,id3:3,text:4};function Dt(a){return String.fromCharCode.apply(null,a)}function sn(a,e){const t=a[e]<<8|a[e+1];return t<0?65536+t:t}function Je(a,e){const t=Fe(a,e);return t<0?4294967296+t:t}function yt(a,e){let t=Je(a,e);return t*=Math.pow(2,32),t+=Je(a,e+4),t}function Fe(a,e){return a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3]}function we(a){const e=a.byteLength;for(let t=0;t<e;){const n=Je(a,t);if(n>8&&a[t+4]===109&&a[t+5]===111&&a[t+6]===111&&a[t+7]===102)return!0;t=n>1?t+n:e}return!1}function V(a,e){const t=[];if(!e.length)return t;const n=a.byteLength;for(let r=0;r<n;){const i=Je(a,r),s=Dt(a.subarray(r+4,r+8)),l=i>1?r+i:n;if(s===e[0])if(e.length===1)t.push(a.subarray(r+8,l));else{const c=V(a.subarray(r+8,l),e.slice(1));c.length&&Ke.apply(t,c)}r=l}return t}function je(a){const e=[],t=a[0];let n=8;const r=Je(a,n);n+=4;let i=0,s=0;t===0?(i=Je(a,n),s=Je(a,n+4),n+=8):(i=yt(a,n),s=yt(a,n+8),n+=16),n+=2;let l=a.length+s;const c=sn(a,n);n+=2;for(let u=0;u<c;u++){let h=n;const m=Je(a,h);h+=4;const x=m&2147483647;if((m&2147483648)>>>31===1)return ee.warn("SIDX has hierarchical references (not supported)"),null;const L=Je(a,h);h+=4,e.push({referenceSize:x,subsegmentDuration:L,info:{duration:L/r,start:l,end:l+x-1}}),l+=x,h+=4,n=h}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:c,references:e}}function Qe(a){const e=[],t=V(a,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],s=V(i,["tkhd"])[0];if(s){let l=s[0];const c=Je(s,l===0?12:20),u=V(i,["mdia","mdhd"])[0];if(u){l=u[0];const h=Je(u,l===0?12:20),m=V(i,["mdia","hdlr"])[0];if(m){const x=Dt(m.subarray(8,12)),C={soun:O.AUDIO,vide:O.VIDEO}[x],L=V(i,["mdia","minf","stbl","stsd"])[0],te=q(L);C?(e[c]={timescale:h,type:C,stsd:te},e[C]=b({timescale:h,id:c},te)):e[c]={timescale:h,type:x,stsd:te}}}}}return V(a,["moov","mvex","trex"]).forEach(r=>{const i=Je(r,4),s=e[i];s&&(s.default={duration:Je(r,12),flags:Je(r,20)})}),e}function q(a){const e=a.subarray(8),t=e.subarray(86),n=Dt(e.subarray(4,8));let r=n,i;const s=n==="enca"||n==="encv";if(s){const u=V(e,[n])[0].subarray(n==="enca"?28:78);V(u,["sinf"]).forEach(m=>{const x=V(m,["schm"])[0];if(x){const C=Dt(x.subarray(4,8));if(C==="cbcs"||C==="cenc"){const L=V(m,["frma"])[0];L&&(r=Dt(L))}}})}const l=r;switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const c=V(t,["avcC"])[0];c&&c.length>3&&(r+="."+W(c[1])+W(c[2])+W(c[3]),i=M(l==="avc1"?"dva1":"dvav",t));break}case"mp4a":{const c=V(e,[n])[0],u=V(c.subarray(28),["esds"])[0];if(u&&u.length>7){let h=4;if(u[h++]!==3)break;h=be(u,h),h+=2;const m=u[h++];if(m&128&&(h+=2),m&64&&(h+=u[h++]),u[h++]!==4)break;h=be(u,h);const x=u[h++];if(x===64)r+="."+W(x);else break;if(h+=12,u[h++]!==5)break;h=be(u,h);const C=u[h++];let L=(C&248)>>3;L===31&&(L+=1+((C&7)<<3)+((u[h]&224)>>5)),r+="."+L}break}case"hvc1":case"hev1":{const c=V(t,["hvcC"])[0];if(c&&c.length>12){const u=c[1],h=["","A","B","C"][u>>6],m=u&31,x=Je(c,2),C=(u&32)>>5?"H":"L",L=c[12],te=c.subarray(6,12);r+="."+h+m,r+="."+Se(x).toString(16).toUpperCase(),r+="."+C+L;let J="";for(let Ce=te.length;Ce--;){const ht=te[Ce];(ht||J)&&(J="."+ht.toString(16).toUpperCase()+J)}r+=J}i=M(l=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{r=M(r,t)||r;break}case"vp09":{const c=V(t,["vpcC"])[0];if(c&&c.length>6){const u=c[4],h=c[5],m=c[6]>>4&15;r+="."+fe(u)+"."+fe(h)+"."+fe(m)}break}case"av01":{const c=V(t,["av1C"])[0];if(c&&c.length>2){const u=c[1]>>>5,h=c[1]&31,m=c[2]>>>7?"H":"M",x=(c[2]&64)>>6,C=(c[2]&32)>>5,L=u===2&&x?C?12:10:x?10:8,te=(c[2]&16)>>4,J=(c[2]&8)>>3,Ce=(c[2]&4)>>2,ht=c[2]&3;r+="."+u+"."+fe(h)+m+"."+fe(L)+"."+te+"."+J+Ce+ht+"."+fe(1)+"."+fe(1)+"."+fe(1)+"."+0,i=M("dav1",t)}break}}return{codec:r,encrypted:s,supplemental:i}}function M(a,e){const t=V(e,["dvvC"]),n=t.length?t[0]:V(e,["dvcC"])[0];if(n){const r=n[2]>>1&127,i=n[2]<<5&32|n[3]>>3&31;return a+"."+fe(r)+"."+fe(i)}}function Se(a){let e=0;for(let t=0;t<32;t++)e|=(a>>t&1)<<31-t;return e>>>0}function be(a,e){const t=e+5;for(;a[e++]&128&&e<t;);return e}function W(a){return("0"+a.toString(16).toUpperCase()).slice(-2)}function fe(a){return(a<10?"0":"")+a}function ye(a,e){if(!a||!e)return;const t=e.keyId;t&&e.isCommonEncryption&&V(a,["moov","trak"]).forEach(r=>{const s=V(r,["mdia","minf","stbl","stsd"])[0].subarray(8);let l=V(s,["enca"]);const c=l.length>0;c||(l=V(s,["encv"])),l.forEach(u=>{const h=c?u.subarray(28):u.subarray(78);V(h,["sinf"]).forEach(x=>{const C=$e(x);if(C){const L=C.subarray(8,24);L.some(te=>te!==0)||(ee.log(`[eme] Patching keyId in 'enc${c?"a":"v"}>sinf>>tenc' box: ${Z.hexDump(L)} -> ${Z.hexDump(t)}`),C.set(t,8))}})})})}function $e(a){const e=V(a,["schm"])[0];if(e){const t=Dt(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return V(a,["schi","tenc"])[0]}return null}function Ve(a,e,t){const n={},r=V(a,["moof","traf"]);for(let i=0;i<r.length;i++){const s=r[i],l=V(s,["tfhd"])[0],c=Je(l,4),u=e[c];if(!u)continue;n[c]||(n[c]={start:NaN,duration:0,sampleCount:0,timescale:u.timescale,type:u.type});const h=n[c],m=V(s,["tfdt"])[0];if(m){const rt=m[0];let Ut=Je(m,4);rt===1&&(Ut===Ht?t.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(Ut*=Ht+1,Ut+=Je(m,8))),f(Ut)&&(!f(h.start)||Ut<h.start)&&(h.start=Ut)}const x=u.default,C=Je(l,0)|(x==null?void 0:x.flags);let L=(x==null?void 0:x.duration)||0;C&8&&(C&2?L=Je(l,12):L=Je(l,8));const te=V(s,["trun"]);let J=h.start||0,Ce=0,ht=L;for(let rt=0;rt<te.length;rt++){const Ut=te[rt],$t=Je(Ut,4),_n=h.sampleCount;h.sampleCount+=$t;const Yt=Ut[3]&1,un=Ut[3]&4,fn=Ut[2]&1,Xt=Ut[2]&2,An=Ut[2]&4,tr=Ut[2]&8;let hr=8,vr=$t;for(Yt&&(hr+=4),un&&$t&&(!(Ut[hr+1]&1)&&h.keyFrameIndex===void 0&&(h.keyFrameIndex=_n),hr+=4,fn?(ht=Je(Ut,hr),hr+=4):ht=L,Xt&&(hr+=4),tr&&(hr+=4),J+=ht,Ce+=ht,vr--);vr--;)fn?(ht=Je(Ut,hr),hr+=4):ht=L,Xt&&(hr+=4),An&&(Ut[hr+1]&1||h.keyFrameIndex===void 0&&(h.keyFrameIndex=h.sampleCount-(vr+1),h.keyFrameStart=J),hr+=4),tr&&(hr+=4),J+=ht,Ce+=ht;!Ce&&L&&(Ce+=L*$t)}h.duration+=Ce}if(!Object.keys(n).some(i=>n[i].duration)){let i=1/0,s=0;const l=V(a,["sidx"]);for(let c=0;c<l.length;c++){const u=je(l[c]);if(u!=null&&u.references){i=Math.min(i,u.earliestPresentationTime/u.timescale);const h=u.references.reduce((m,x)=>m+x.info.duration||0,0);s=Math.max(s,h+u.earliestPresentationTime/u.timescale)}}s&&f(s)&&Object.keys(n).forEach(c=>{n[c].duration||(n[c].duration=s*n[c].timescale-n[c].start)})}return n}function qe(a){const e={valid:null,remainder:null},t=V(a,["moof"]);if(t.length<2)return e.remainder=a,e;const n=t[t.length-1];return e.valid=a.slice(0,n.byteOffset-8),e.remainder=a.slice(n.byteOffset-8),e}function Ye(a,e){const t=new Uint8Array(a.length+e.length);return t.set(a),t.set(e,a.length),t}function ot(a,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let s=!1;return V(n,["moof"]).map(c=>{const u=c.byteOffset-8;V(c,["traf"]).map(m=>{const x=V(m,["tfdt"]).map(C=>{const L=C[0];let te=Je(C,4);return L===1&&(te*=Math.pow(2,32),te+=Je(C,8)),te/r})[0];return x!==void 0&&(a=x),V(m,["tfhd"]).map(C=>{const L=Je(C,4),te=Je(C,0)&16777215,J=(te&1)!==0,Ce=(te&2)!==0,ht=(te&8)!==0;let rt=0;const Ut=(te&16)!==0;let $t=0;const _n=(te&32)!==0;let Yt=8;L===i&&(J&&(Yt+=8),Ce&&(Yt+=4),ht&&(rt=Je(C,Yt),Yt+=4),Ut&&($t=Je(C,Yt),Yt+=4),_n&&(Yt+=4),e.type==="video"&&(s=de(e.codec)),V(m,["trun"]).map(un=>{const fn=un[0],Xt=Je(un,0)&16777215,An=(Xt&1)!==0;let tr=0;const hr=(Xt&4)!==0,vr=(Xt&256)!==0;let pr=0;const Qn=(Xt&512)!==0;let mr=0;const sr=(Xt&1024)!==0,gr=(Xt&2048)!==0;let wr=0;const qn=Je(un,4);let $n=8;An&&(tr=Je(un,$n),$n+=4),hr&&($n+=4);let kr=tr+u;for(let Kr=0;Kr<qn;Kr++){if(vr?(pr=Je(un,$n),$n+=4):pr=rt,Qn?(mr=Je(un,$n),$n+=4):mr=$t,sr&&($n+=4),gr&&(fn===0?wr=Je(un,$n):wr=Fe(un,$n),$n+=4),e.type===O.VIDEO){let Pr=0;for(;Pr<mr;){const Or=Je(n,kr);if(kr+=4,K(s,n[kr])){const gi=n.subarray(kr,kr+Or);N(gi,s?2:1,a+wr/r,t)}kr+=Or,Pr+=Or+4}}a+=pr/r}}))})})}),t}function de(a){if(!a)return!1;const e=a.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function K(a,e){if(a){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function N(a,e,t,n){const r=Le(a);let i=0;i+=e;let s=0,l=0,c=0;for(;i<r.length;){s=0;do{if(i>=r.length)break;c=r[i++],s+=c}while(c===255);l=0;do{if(i>=r.length)break;c=r[i++],l+=c}while(c===255);const u=r.length-i;let h=i;if(l<u)i+=l;else if(l>u){ee.error(`Malformed SEI payload. ${l} is too small, only ${u} bytes left to parse.`);break}if(s===4){if(r[h++]===181){const x=sn(r,h);if(h+=2,x===49){const C=Je(r,h);if(h+=4,C===1195456820){const L=r[h++];if(L===3){const te=r[h++],J=31&te,Ce=64&te,ht=Ce?2+J*3:0,rt=new Uint8Array(ht);if(Ce){rt[0]=te;for(let Ut=1;Ut<ht;Ut++)rt[Ut]=r[h++]}n.push({type:L,payloadType:s,pts:t,bytes:rt})}}}}}else if(s===5&&l>16){const m=[];for(let L=0;L<16;L++){const te=r[h++].toString(16);m.push(te.length==1?"0"+te:te),(L===3||L===5||L===7||L===9)&&m.push("-")}const x=l-16,C=new Uint8Array(x);for(let L=0;L<x;L++)C[L]=r[h++];n.push({payloadType:s,pts:t,uuid:m.join(""),userData:at(C),userDataBytes:C})}}}function Le(a){const e=a.byteLength,t=[];let n=1;for(;n<e-2;)a[n]===0&&a[n+1]===0&&a[n+2]===3?(t.push(n+2),n+=2):n++;if(t.length===0)return a;const r=e-t.length,i=new Uint8Array(r);let s=0;for(n=0;n<r;s++,n++)s===t[0]&&(s++,t.shift()),i[n]=a[s];return i}function De(a){const e=a[0];let t="",n="",r=0,i=0,s=0,l=0,c=0,u=0;if(e===0){for(;Dt(a.subarray(u,u+1))!=="\0";)t+=Dt(a.subarray(u,u+1)),u+=1;for(t+=Dt(a.subarray(u,u+1)),u+=1;Dt(a.subarray(u,u+1))!=="\0";)n+=Dt(a.subarray(u,u+1)),u+=1;n+=Dt(a.subarray(u,u+1)),u+=1,r=Je(a,12),i=Je(a,16),l=Je(a,20),c=Je(a,24),u=28}else if(e===1){u+=4,r=Je(a,u),u+=4;const m=Je(a,u);u+=4;const x=Je(a,u);for(u+=4,s=Tl(2,32)*m+x,ue(s)||(s=Number.MAX_SAFE_INTEGER,ee.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),l=Je(a,u),u+=4,c=Je(a,u),u+=4;Dt(a.subarray(u,u+1))!=="\0";)t+=Dt(a.subarray(u,u+1)),u+=1;for(t+=Dt(a.subarray(u,u+1)),u+=1;Dt(a.subarray(u,u+1))!=="\0";)n+=Dt(a.subarray(u,u+1)),u+=1;n+=Dt(a.subarray(u,u+1)),u+=1}const h=a.subarray(u,a.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:s,presentationTimeDelta:i,eventDuration:l,id:c,payload:h}}function Ae(a,...e){const t=e.length;let n=8,r=t;for(;r--;)n+=e[r].byteLength;const i=new Uint8Array(n);for(i[0]=n>>24&255,i[1]=n>>16&255,i[2]=n>>8&255,i[3]=n&255,i.set(a,4),r=0,n=8;r<t;r++)i.set(e[r],n),n+=e[r].byteLength;return i}function it(a,e,t){if(a.byteLength!==16)throw new RangeError("Invalid system id");let n,r;n=0,r=new Uint8Array;let i;n>0?(i=new Uint8Array(4),e.length>0&&new DataView(i.buffer).setUint32(0,e.length,!1)):i=new Uint8Array;const s=new Uint8Array(4);return t.byteLength>0&&new DataView(s.buffer).setUint32(0,t.byteLength,!1),Ae([112,115,115,104],new Uint8Array([n,0,0,0]),a,i,r,s,t)}const st=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),Oe={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function Et(a,e){const t=Oe[e];return!!t&&!!t[a.slice(0,4)]}function jt(a,e,t=!0){return!a.split(",").some(n=>!wt(n,e,t))}function wt(a,e,t=!0){var n;const r=oe(t);return(n=r==null?void 0:r.isTypeSupported(Bt(a,e)))!=null?n:!1}function Bt(a,e){return`${e}/mp4;codecs=${a}`}function se(a){if(a){const e=a.substring(0,4);return Oe.video[e]}return 2}function ve(a){const e=st();return a.split(",").reduce((t,n)=>{const i=e&&de(n)?9:Oe.video[n];return i?(i*2+t)/(t?3:2):(Oe.audio[n]+t)/(t?2:1)},0)}const Ee={};function k(a,e=!0){if(Ee[a])return Ee[a];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[a];for(let r=0;r<t.length;r++){var n;if(wt(t[r],"audio",e))return Ee[a]=t[r],t[r];if(t[r]==="mp3"&&(n=oe(e))!=null&&n.isTypeSupported("audio/mpeg"))return""}return a}const Y=/flac|opus|mp4a\.40\.34/i;function he(a,e=!0){return a.replace(Y,t=>k(t.toLowerCase(),e))}function ce(a,e){const t=[];if(a){const n=a.split(",");for(let r=0;r<n.length;r++)Et(n[r],"video")||t.push(n[r])}return e&&t.push(e),t.join(",")}function xe(a,e){if(a&&(a.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(a)!==-1)&&(Be(a,"audio")||Be(a,"video")))return a;if(e){const t=e.split(",");if(t.length>1){if(a){for(let n=t.length;n--;)if(t[n].substring(0,4)===a.substring(0,4))return t[n]}return t[0]}}return e||a}function Be(a,e){return Et(a,e)&&wt(a,e)}function Xe(a){const e=a.split(",");for(let t=0;t<e.length;t++){const n=e[t].split(".");n.length>2&&n[0]==="avc1"&&(e[t]=`avc1.${parseInt(n[1]).toString(16)}${("000"+parseInt(n[2]).toString(16)).slice(-4)}`)}return e.join(",")}function ut(a){if(a.startsWith("av01.")){const e=a.split("."),t=["0","111","01","01","01","0"];for(let n=e.length;n>4&&n<10;n++)e[n]=t[n-4];return e.join(".")}return a}function nt(a){const e=oe(a)||{isTypeSupported:()=>!1};return{mpeg:e.isTypeSupported("audio/mpeg"),mp3:e.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:e.isTypeSupported('audio/mp4; codecs="ac-3"')}}function Ue(a){return a.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const R={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function U(a,e){return{supported:!1,configurations:e,decodingInfoResults:[{supported:!1,smooth:!1,powerEfficient:!1}],error:a}}function S(a,e,t,n,r,i){const s=a.videoCodec,l=a.audioCodec?a.audioGroups:null,c=i==null?void 0:i.audioCodec,u=i==null?void 0:i.channels,h=u?parseInt(u):c?1/0:2;let m=null;if(l!=null&&l.length)try{l.length===1&&l[0]?m=e.groups[l[0]].channels:m=l.reduce((x,C)=>{if(C){const L=e.groups[C];if(!L)throw new Error(`Audio track group ${C} not found`);Object.keys(L.channels).forEach(te=>{x[te]=(x[te]||0)+L.channels[te]})}return x},{2:0})}catch(x){return!0}return s!==void 0&&(s.split(",").some(x=>de(x))||a.width>1920&&a.height>1088||a.height>1920&&a.width>1088||a.frameRate>Math.max(n,30)||a.videoRange!=="SDR"&&a.videoRange!==t||a.bitrate>Math.max(r,8e6))||!!m&&f(h)&&Object.keys(m).some(x=>parseInt(x)>h)}function ze(a,e,t,n={}){const r=a.videoCodec;if(!r&&!a.audioCodec||!t)return Promise.resolve(R);const i=[],s=ke(a),l=s.length,c=Pe(a,e,l>0),u=c.length;for(let h=l||1*u||1;h--;){const m={type:"media-source"};if(l&&(m.video=s[h%l]),u){m.audio=c[h%u];const x=m.audio.bitrate;m.video&&x&&(m.video.bitrate-=x)}i.push(m)}if(r){const h=navigator.userAgent;if(r.split(",").some(m=>de(m))&&st())return Promise.resolve(U(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${h})`),i))}return Promise.all(i.map(h=>{const m=ct(h);return n[m]||(n[m]=t.decodingInfo(h))})).then(h=>({supported:!h.some(m=>!m.supported),configurations:i,decodingInfoResults:h})).catch(h=>({supported:!1,configurations:i,decodingInfoResults:[],error:h}))}function ke(a){var e;const t=(e=a.videoCodec)==null?void 0:e.split(","),n=We(a),r=a.width||640,i=a.height||480,s=a.frameRate||30,l=a.videoRange.toLowerCase();return t?t.map(c=>{const u={contentType:Bt(ut(c),"video"),width:r,height:i,bitrate:n,framerate:s};return l!=="sdr"&&(u.transferFunction=l),u}):[]}function Pe(a,e,t){var n;const r=(n=a.audioCodec)==null?void 0:n.split(","),i=We(a);return r&&a.audioGroups?a.audioGroups.reduce((s,l)=>{var c;const u=l?(c=e.groups[l])==null?void 0:c.tracks:null;return u?u.reduce((h,m)=>{if(m.groupId===l){const x=parseFloat(m.channels||"");r.forEach(C=>{const L={contentType:Bt(C,"audio"),bitrate:t?Ge(C,i):i};x&&(L.channels=""+x),h.push(L)})}return h},s):s},[]):[]}function Ge(a,e){if(e<=1)return 1;let t=128e3;return a==="ec-3"?t=768e3:a==="ac-3"&&(t=64e4),Math.min(e/2,t)}function We(a){return Math.ceil(Math.max(a.bitrate*.9,a.averageBitrate)/1e3)*1e3||1}function ct(a){let e="";const{audio:t,video:n}=a;if(n){const r=Ue(n.contentType);e+=`${r}_r${n.height}x${n.width}f${Math.ceil(n.framerate)}${n.transferFunction||"sd"}_${Math.ceil(n.bitrate/1e5)}`}if(t){const r=Ue(t.contentType);e+=`${n?"_":""}${r}_c${t.channels}`}return e}const Lt=["NONE","TYPE-0","TYPE-1",null];function Pt(a){return Lt.indexOf(a)>-1}const cn=["SDR","PQ","HLG"];function Ne(a){return!!a&&cn.indexOf(a)>-1}var Re={No:"",Yes:"YES",v2:"v2"};function dt(a){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=a,r=n<e/2;return e&&r?t?Re.v2:Re.Yes:Re.No}class mt{constructor(e,t,n){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=n}addDirectives(e){const t=new self.URL(e);return this.msn!==void 0&&t.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&t.searchParams.set("_HLS_part",this.part.toString()),this.skip&&t.searchParams.set("_HLS_skip",this.skip),t.href}}class Mt{constructor(e){if(this._attrs=void 0,this.audioCodec=void 0,this.bitrate=void 0,this.codecSet=void 0,this.url=void 0,this.frameRate=void 0,this.height=void 0,this.id=void 0,this.name=void 0,this.supplemental=void 0,this.videoCodec=void 0,this.width=void 0,this.details=void 0,this.fragmentError=0,this.loadError=0,this.loaded=void 0,this.realBitrate=0,this.supportedPromise=void 0,this.supportedResult=void 0,this._avgBitrate=0,this._audioGroups=void 0,this._subtitleGroups=void 0,this._urlId=0,this.url=[e.url],this._attrs=[e.attrs],this.bitrate=e.bitrate,e.details&&(this.details=e.details),this.id=e.id||0,this.name=e.name,this.width=e.width||0,this.height=e.height||0,this.frameRate=e.attrs.optionalFloat("FRAME-RATE",0),this._avgBitrate=e.attrs.decimalInteger("AVERAGE-BANDWIDTH"),this.audioCodec=e.audioCodec,this.videoCodec=e.videoCodec,this.codecSet=[e.videoCodec,e.audioCodec].filter(n=>!!n).map(n=>n.substring(0,4)).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const n=(t=e.supplemental)==null?void 0:t.videoCodec;n&&n!==e.videoCodec&&(this.codecSet+=`,${n.substring(0,4)}`)}this.addGroupId("audio",e.attrs.AUDIO),this.addGroupId("text",e.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(e){return bt(this._audioGroups,e)}hasSubtitleGroup(e){return bt(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if(e==="audio"){let n=this._audioGroups;n||(n=this._audioGroups=[]),n.indexOf(t)===-1&&n.push(t)}else if(e==="text"){let n=this._subtitleGroups;n||(n=this._subtitleGroups=[]),n.indexOf(t)===-1&&n.push(t)}}}get urlId(){return 0}set urlId(e){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var e;return(e=this.audioGroups)==null?void 0:e[0]}get textGroupId(){var e;return(e=this.subtitleGroups)==null?void 0:e[0]}addFallback(){}}function bt(a,e){return!e||!a?!1:a.indexOf(e)!==-1}function Tt(){if(typeof matchMedia=="function"){const a=matchMedia("(dynamic-range: high)"),e=matchMedia("bad query");if(a.media!==e.media)return a.matches===!0}return!1}function Kt(a,e){let t=!1,n=[];if(a&&(t=a!=="SDR",n=[a]),e){n=e.allowedVideoRanges||cn.slice(0);const r=n.join("")!=="SDR"&&!e.videoCodec;t=e.preferHDR!==void 0?e.preferHDR:r&&Tt(),t||(n=["SDR"])}return{preferHDR:t,allowedVideoRanges:n}}const en=a=>{const e=new WeakSet;return(t,n)=>{if(a&&(n=a(t,n)),typeof n=="object"&&n!==null){if(e.has(n))return;e.add(n)}return n}},At=(a,e)=>JSON.stringify(a,en(e));function dn(a,e,t,n,r){const i=Object.keys(a),s=n==null?void 0:n.channels,l=n==null?void 0:n.audioCodec,c=r==null?void 0:r.videoCodec,u=s&&parseInt(s)===2;let h=!1,m=!1,x=1/0,C=1/0,L=1/0,te=1/0,J=0,Ce=[];const{preferHDR:ht,allowedVideoRanges:rt}=Kt(e,r);for(let un=i.length;un--;){const fn=a[i[un]];h||(h=fn.channels[2]>0),x=Math.min(x,fn.minHeight),C=Math.min(C,fn.minFramerate),L=Math.min(L,fn.minBitrate),rt.filter(An=>fn.videoRanges[An]>0).length>0&&(m=!0)}x=f(x)?x:0,C=f(C)?C:0;const Ut=Math.max(1080,x),$t=Math.max(30,C);L=f(L)?L:t,t=Math.max(L,t),m||(e=void 0);const _n=i.length>1;return{codecSet:i.reduce((un,fn)=>{const Xt=a[fn];if(fn===un)return un;if(Ce=m?rt.filter(An=>Xt.videoRanges[An]>0):[],_n){if(Xt.minBitrate>t)return an(fn,`min bitrate of ${Xt.minBitrate} > current estimate of ${t}`),un;if(!Xt.hasDefaultAudio)return an(fn,"no renditions with default or auto-select sound found"),un;if(l&&fn.indexOf(l.substring(0,4))%5!==0)return an(fn,`audio codec preference "${l}" not found`),un;if(s&&!u){if(!Xt.channels[s])return an(fn,`no renditions with ${s} channel sound found (channels options: ${Object.keys(Xt.channels)})`),un}else if((!l||u)&&h&&Xt.channels[2]===0)return an(fn,"no renditions with stereo sound found"),un;if(Xt.minHeight>Ut)return an(fn,`min resolution of ${Xt.minHeight} > maximum of ${Ut}`),un;if(Xt.minFramerate>$t)return an(fn,`min framerate of ${Xt.minFramerate} > maximum of ${$t}`),un;if(!Ce.some(An=>Xt.videoRanges[An]>0))return an(fn,`no variants with VIDEO-RANGE of ${At(Ce)} found`),un;if(c&&fn.indexOf(c.substring(0,4))%5!==0)return an(fn,`video codec preference "${c}" not found`),un;if(Xt.maxScore<J)return an(fn,`max score of ${Xt.maxScore} < selected max of ${J}`),un}return un&&(ve(fn)>=ve(un)||Xt.fragmentError>a[un].fragmentError)?un:(te=Xt.minIndex,J=Xt.maxScore,fn)},void 0),videoRanges:Ce,preferHDR:ht,minFramerate:C,minBitrate:L,minIndex:te}}function an(a,e){ee.log(`[abr] start candidates with "${a}" ignored because ${e}`)}function Jt(a){return a.reduce((e,t)=>{let n=e.groups[t.groupId];n||(n=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),n.tracks.push(t);const r=t.channels||"2";return n.channels[r]=(n.channels[r]||0)+1,n.hasDefault=n.hasDefault||t.default,n.hasAutoSelect=n.hasAutoSelect||t.autoselect,n.hasDefault&&(e.hasDefaultAudio=!0),n.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function kt(a,e,t,n){return a.slice(t,n+1).reduce((r,i,s)=>{if(!i.codecSet)return r;const l=i.audioGroups;let c=r[i.codecSet];c||(r[i.codecSet]=c={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:s,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!l,fragmentError:0}),c.minBitrate=Math.min(c.minBitrate,i.bitrate);const u=Math.min(i.height,i.width);return c.minHeight=Math.min(c.minHeight,u),c.minFramerate=Math.min(c.minFramerate,i.frameRate),c.minIndex=Math.min(c.minIndex,s),c.maxScore=Math.max(c.maxScore,i.score),c.fragmentError+=i.fragmentError,c.videoRanges[i.videoRange]=(c.videoRanges[i.videoRange]||0)+1,l&&l.forEach(h=>{if(!h)return;const m=e.groups[h];m&&(c.hasDefaultAudio=c.hasDefaultAudio||e.hasDefaultAudio?m.hasDefault:m.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(m.channels).forEach(x=>{c.channels[x]=(c.channels[x]||0)+m.channels[x]}))}),r},{})}function Ze(a){if(!a)return a;const{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:i}=a;return{lang:e,assocLang:t,characteristics:n,channels:r,audioCodec:i}}function ft(a,e,t){if("attrs"in a){const n=e.indexOf(a);if(n!==-1)return n}for(let n=0;n<e.length;n++){const r=e[n];if(St(a,r,t))return n}return-1}function St(a,e,t){const{groupId:n,name:r,lang:i,assocLang:s,default:l}=a,c=a.forced;return(n===void 0||e.groupId===n)&&(r===void 0||e.name===r)&&(i===void 0||Ot(i,e.lang))&&(i===void 0||e.assocLang===s)&&(l===void 0||e.default===l)&&(c===void 0||e.forced===c)&&(!("characteristics"in a)||tn(a.characteristics||"",e.characteristics))&&(t===void 0||t(a,e))}function Ot(a,e="--"){return a.length===e.length?a===e:a.startsWith(e)||e.startsWith(a)}function tn(a,e=""){const t=a.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function et(a,e){const{audioCodec:t,channels:n}=a;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(n===void 0||n===(e.channels||"2"))}function ln(a,e,t,n,r){const i=e[n],l=e.reduce((x,C,L)=>{const te=C.uri;return(x[te]||(x[te]=[])).push(L),x},{})[i.uri];l.length>1&&(n=Math.max.apply(Math,l));const c=i.videoRange,u=i.frameRate,h=i.codecSet.substring(0,4),m=xn(e,n,x=>{if(x.videoRange!==c||x.frameRate!==u||x.codecSet.substring(0,4)!==h)return!1;const C=x.audioGroups,L=t.filter(te=>!C||C.indexOf(te.groupId)!==-1);return ft(a,L,r)>-1});return m>-1?m:xn(e,n,x=>{const C=x.audioGroups,L=t.filter(te=>!C||C.indexOf(te.groupId)!==-1);return ft(a,L,r)>-1})}function xn(a,e,t){for(let n=e;n>-1;n--)if(t(a[n]))return n;for(let n=e+1;n<a.length;n++)if(t(a[n]))return n;return-1}function Tn(a,e){var t;return!!a&&a!==((t=e.loadLevelObj)==null?void 0:t.uri)}class Cn extends ${constructor(e){super("abr",e.logger),this.hls=void 0,this.lastLevelLoadSec=0,this.lastLoadedFragLevel=-1,this.firstSelection=-1,this._nextAutoLevel=-1,this.nextAutoLevelKey="",this.audioTracksByGroup=null,this.codecTiers=null,this.timer=-1,this.fragCurrent=null,this.partCurrent=null,this.bitrateTestDelay=0,this.rebufferNotice=-1,this.supportedCache={},this.bwEstimator=void 0,this._abandonRulesCheck=t=>{var n;const{fragCurrent:r,partCurrent:i,hls:s}=this,{autoLevelEnabled:l,media:c}=s;if(!r||!c)return;const u=performance.now(),h=i?i.stats:r.stats,m=i?i.duration:r.duration,x=u-h.loading.start,C=s.minAutoLevel,L=r.level,te=this._nextAutoLevel;if(h.aborted||h.loaded&&h.loaded===h.total||L<=C){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const J=te>-1&&te!==L,Ce=!!t||J;if(!Ce&&(c.paused||!c.playbackRate||!c.readyState))return;const ht=s.mainForwardBufferInfo;if(!Ce&&ht===null)return;const rt=this.bwEstimator.getEstimateTTFB(),Ut=Math.abs(c.playbackRate);if(x<=Math.max(rt,1e3*(m/(Ut*2))))return;const $t=ht?ht.len/Ut:0,_n=h.loading.first?h.loading.first-h.loading.start:-1,Yt=h.loaded&&_n>-1,un=this.getBwEstimate(),fn=s.levels,Xt=fn[L],An=Math.max(h.loaded,Math.round(m*(r.bitrate||Xt.averageBitrate)/8));let tr=Yt?x-_n:x;tr<1&&Yt&&(tr=Math.min(x,h.loaded*8/un));const hr=Yt?h.loaded*1e3/tr:0,vr=rt/1e3,pr=hr?(An-h.loaded)/hr:An*8/un+vr;if(pr<=$t)return;const Qn=hr?hr*8:un,mr=((n=(t==null?void 0:t.details)||this.hls.latestLevelDetails)==null?void 0:n.live)===!0,sr=this.hls.config.abrBandWidthUpFactor;let gr=Number.POSITIVE_INFINITY,wr;for(wr=L-1;wr>C;wr--){const Kr=fn[wr].maxBitrate,Pr=!fn[wr].details||mr;if(gr=this.getTimeToLoadFrag(vr,Qn,m*Kr,Pr),gr<Math.min($t,m+vr))break}if(gr>=pr||gr>m*10)return;Yt?this.bwEstimator.sample(x-Math.min(rt,_n),h.loaded):this.bwEstimator.sampleTTFB(x);const qn=fn[wr].maxBitrate;this.getBwEstimate()*sr>qn&&this.resetEstimator(qn);const $n=this.findBestLevel(qn,C,wr,0,$t,1,1);$n>-1&&(wr=$n),this.warn(`Fragment ${r.sn}${i?" part "+i.index:""} of level ${L} is loading too slowly;
Fragment duration: ${r.duration.toFixed(3)}
Time to underbuffer: ${$t.toFixed(3)} s
Estimated load time for current fragment: ${pr.toFixed(3)} s
Estimated load time for down switch fragment: ${gr.toFixed(3)} s
TTFB estimate: ${_n|0} ms
Current BW estimate: ${f(un)?un|0:"Unknown"} bps
New BW estimate: ${this.getBwEstimate()|0} bps
Switching to level ${wr} @ ${qn|0} bps`),s.nextLoadLevel=s.nextAutoLevel=wr,this.clearTimer();const kr=()=>{if(this.clearTimer(),this.fragCurrent===r&&this.hls.loadLevel===wr&&wr>0){const Kr=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${wr>0?"and switching down":""}
Fragment duration: ${r.duration.toFixed(3)} s
Time to underbuffer: ${Kr.toFixed(3)} s`),r.abortRequests(),this.fragCurrent=this.partCurrent=null,wr>C){let Pr=this.findBestLevel(this.hls.levels[C].bitrate,C,wr,0,Kr,1,1);Pr===-1&&(Pr=C),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Pr,this.resetEstimator(this.hls.levels[Pr].bitrate)}}};J||pr>gr*2?kr():this.timer=self.setInterval(kr,gr*1e3),s.trigger(d.FRAG_LOAD_EMERGENCY_ABORTED,{frag:r,part:i,stats:h})},this.hls=e,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(e){e&&(this.log(`setting initial bwe to ${e}`),this.hls.config.abrEwmaDefaultEstimate=e),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const e=this.hls.config;return new g(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.FRAG_LOADING,this.onFragLoading,this),e.on(d.FRAG_LOADED,this.onFragLoaded,this),e.on(d.FRAG_BUFFERED,this.onFragBuffered,this),e.on(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(d.LEVEL_LOADED,this.onLevelLoaded,this),e.on(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(d.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.FRAG_LOADING,this.onFragLoading,this),e.off(d.FRAG_LOADED,this.onFragLoaded,this),e.off(d.FRAG_BUFFERED,this.onFragBuffered,this),e.off(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(d.LEVEL_LOADED,this.onLevelLoaded,this),e.off(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(d.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(d.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=this.supportedCache=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.supportedCache={},this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(e,t){const n=t.frag;if(!this.ignoreFragment(n)){if(!n.bitrateTest){var r;this.fragCurrent=n,this.partCurrent=(r=t.part)!=null?r:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(e,t){this.clearTimer()}onError(e,t){if(!t.fatal)switch(t.details){case B.BUFFER_ADD_CODEC_ERROR:case B.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case B.FRAG_LOAD_TIMEOUT:{const n=t.frag,{fragCurrent:r,partCurrent:i}=this;if(n&&r&&n.sn===r.sn&&n.level===r.level){const s=performance.now(),l=i?i.stats:n.stats,c=s-l.loading.start,u=l.loading.first?l.loading.first-l.loading.start:-1;if(l.loaded&&u>-1){const m=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(c-Math.min(m,u),l.loaded)}else this.bwEstimator.sampleTTFB(c)}break}}}getTimeToLoadFrag(e,t,n,r){const i=e+n/t,s=r?e+this.lastLevelLoadSec:0;return i+s}onLevelLoaded(e,t){const n=this.hls.config,{loading:r}=t.stats,i=r.end-r.first;f(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(n.abrEwmaSlowLive,n.abrEwmaFastLive):this.bwEstimator.update(n.abrEwmaSlowVoD,n.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,{frag:t,part:n}){const r=n?n.stats:t.stats;if(t.type===ne.MAIN&&this.bwEstimator.sampleTTFB(r.loading.first-r.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const i=n?n.duration:t.duration,s=this.hls.levels[t.level],l=(s.loaded?s.loaded.bytes:0)+r.loaded,c=(s.loaded?s.loaded.duration:0)+i;s.loaded={bytes:l,duration:c},s.realBitrate=Math.round(8*l/c)}if(t.bitrateTest){const i={stats:r,frag:t,part:n,id:t.type};this.onFragBuffered(d.FRAG_BUFFERED,i),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:n,part:r}=t,i=r!=null&&r.stats.loaded?r.stats:n.stats;if(i.aborted||this.ignoreFragment(n))return;const s=i.parsing.end-i.loading.start-Math.min(i.loading.first-i.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,i.loaded),i.bwEstimate=this.getBwEstimate(),n.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==ne.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,n=this.getBwEstimate(),r=this.hls.config.maxStarvationDelay,i=this.findBestLevel(n,t,e,0,r,1,1);if(i>-1)return i;const s=this.hls.firstLevel,l=Math.min(Math.max(s,t),e);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${l}`),l}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const e=this.forcedAutoLevel,n=this.bwEstimator.canEstimate(),r=this.lastLoadedFragLevel>-1;if(e!==-1&&(!n||!r||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const i=n&&r?this.getNextABRAutoLevel():this.firstAutoLevel;if(e!==-1){const s=this.hls.levels;if(s.length>Math.max(e,i)&&s[e].loadError<=s[i].loadError)return e}return this._nextAutoLevel=i,this.nextAutoLevelKey=this.getAutoLevelKey(),i}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:e,partCurrent:t,hls:n}=this;if(n.levels.length<=1)return n.loadLevel;const{maxAutoLevel:r,config:i,minAutoLevel:s}=n,l=t?t.duration:e?e.duration:0,c=this.getBwEstimate(),u=this.getStarvationDelay();let h=i.abrBandWidthFactor,m=i.abrBandWidthUpFactor;if(u){const J=this.findBestLevel(c,s,r,u,0,h,m);if(J>=0)return this.rebufferNotice=-1,J}let x=l?Math.min(l,i.maxStarvationDelay):i.maxStarvationDelay;if(!u){const J=this.bitrateTestDelay;J&&(x=(l?Math.min(l,i.maxLoadingDelay):i.maxLoadingDelay)-J,this.info(`bitrate test took ${Math.round(1e3*J)}ms, set first fragment max fetchDuration to ${Math.round(1e3*x)} ms`),h=m=1)}const C=this.findBestLevel(c,s,r,u,x,h,m);if(this.rebufferNotice!==C&&(this.rebufferNotice=C,this.info(`${u?"rebuffering expected":"buffer is empty"}, optimal quality level ${C}`)),C>-1)return C;const L=n.levels[s],te=n.loadLevelObj;return te&&(L==null?void 0:L.bitrate)<te.bitrate?s:n.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const n=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,r=e.mainForwardBufferInfo;return(r?r.len:0)/n}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,n,r,i,s,l){var c;const u=r+i,h=this.lastLoadedFragLevel,m=h===-1?this.hls.firstLevel:h,{fragCurrent:x,partCurrent:C}=this,{levels:L,allAudioTracks:te,loadLevel:J,config:Ce}=this.hls;if(L.length===1)return 0;const ht=L[m],rt=!!((c=this.hls.latestLevelDetails)!=null&&c.live),Ut=J===-1||h===-1;let $t,_n="SDR",Yt=(ht==null?void 0:ht.frameRate)||0;const{audioPreference:un,videoPreference:fn}=Ce,Xt=this.audioTracksByGroup||(this.audioTracksByGroup=Jt(te));let An=-1;if(Ut){if(this.firstSelection!==-1)return this.firstSelection;const Qn=this.codecTiers||(this.codecTiers=kt(L,Xt,t,n)),mr=dn(Qn,_n,e,un,fn),{codecSet:sr,videoRanges:gr,minFramerate:wr,minBitrate:qn,minIndex:$n,preferHDR:kr}=mr;An=$n,$t=sr,_n=kr?gr[gr.length-1]:gr[0],Yt=wr,e=Math.max(e,qn),this.log(`picked start tier ${At(mr)}`)}else $t=ht==null?void 0:ht.codecSet,_n=ht==null?void 0:ht.videoRange;const tr=C?C.duration:x?x.duration:0,hr=this.bwEstimator.getEstimateTTFB()/1e3,vr=[];for(let Qn=n;Qn>=t;Qn--){var pr;const mr=L[Qn],sr=Qn>m;if(!mr)continue;if(Ce.useMediaCapabilities&&!mr.supportedResult&&!mr.supportedPromise){const Pr=navigator.mediaCapabilities;typeof(Pr==null?void 0:Pr.decodingInfo)=="function"&&S(mr,Xt,_n,Yt,e,un)?(mr.supportedPromise=ze(mr,Xt,Pr,this.supportedCache),mr.supportedPromise.then(Or=>{if(!this.hls)return;mr.supportedResult=Or;const gi=this.hls.levels,hi=gi.indexOf(mr);Or.error?this.warn(`MediaCapabilities decodingInfo error: "${Or.error}" for level ${hi} ${At(Or)}`):Or.supported?Or.decodingInfoResults.some(Pi=>Pi.smooth===!1||Pi.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${hi} not smooth or powerEfficient: ${At(Or)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${hi} ${At(Or)}`),hi>-1&&gi.length>1&&(this.log(`Removing unsupported level ${hi}`),this.hls.removeLevel(hi),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))})):mr.supportedResult=R}if(($t&&mr.codecSet!==$t||_n&&mr.videoRange!==_n||sr&&Yt>mr.frameRate||!sr&&Yt>0&&Yt<mr.frameRate||(pr=mr.supportedResult)!=null&&(pr=pr.decodingInfoResults)!=null&&pr.some(Pr=>Pr.smooth===!1))&&(!Ut||Qn!==An)){vr.push(Qn);continue}const gr=mr.details,wr=(C?gr==null?void 0:gr.partTarget:gr==null?void 0:gr.averagetargetduration)||tr;let qn;sr?qn=l*e:qn=s*e;const $n=tr&&r>=tr*2&&i===0?mr.averageBitrate:mr.maxBitrate,kr=this.getTimeToLoadFrag(hr,qn,$n*wr,gr===void 0);if(qn>=$n&&(Qn===h||mr.loadError===0&&mr.fragmentError===0)&&(kr<=hr||!f(kr)||rt&&!this.bitrateTestDelay||kr<u)){const Pr=this.forcedAutoLevel;return Qn!==J&&(Pr===-1||Pr!==J)&&(vr.length&&this.trace(`Skipped level(s) ${vr.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${L[vr[0]].codecs}" ${L[vr[0]].videoRange}; not compatible with "${$t}" ${_n}`),this.info(`switch candidate:${m}->${Qn} adjustedbw(${Math.round(qn)})-bitrate=${Math.round(qn-$n)} ttfb:${hr.toFixed(1)} avgDuration:${wr.toFixed(1)} maxFetchDuration:${u.toFixed(1)} fetchDuration:${kr.toFixed(1)} firstSelection:${Ut} codecSet:${mr.codecSet} videoRange:${mr.videoRange} hls.loadLevel:${J}`)),Ut&&(this.firstSelection=Qn),Qn}}return-1}set nextAutoLevel(e){const t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:n}=this.hls;return Math.min(Math.max(e,n),t)}}const Yn={search:function(a,e){let t=0,n=a.length-1,r=null,i=null;for(;t<=n;){r=(t+n)/2|0,i=a[r];const s=e(i);if(s>0)t=r+1;else if(s<0)n=r-1;else return i}return null}};function Dn(a,e,t){if(e===null||!Array.isArray(a)||!a.length||!f(e))return null;const n=a[0].programDateTime;if(e<(n||0))return null;const r=a[a.length-1].endProgramDateTime;if(e>=(r||0))return null;for(let i=0;i<a.length;++i){const s=a[i];if(In(e,t,s))return s}return null}function Zn(a,e,t=0,n=0,r=.005){let i=null;if(a){i=e[1+a.sn-e[0].sn]||null;const l=a.endDTS-t;l>0&&l<15e-7&&(t+=15e-7),i&&a.level!==i.level&&i.end<=a.end&&(i=e[2+a.sn-e[0].sn]||null)}else t===0&&e[0].start===0&&(i=e[0]);if(i&&((!a||a.level===i.level)&&Bn(t,n,i)===0||On(i,a,Math.min(r,n))))return i;const s=Yn.search(e,Bn.bind(null,t,n));return s&&(s!==a||!i)?s:i}function On(a,e,t){if(e&&e.start===0&&e.level<a.level&&(e.endPTS||0)>0){const n=e.tagList.reduce((r,i)=>(i[0]==="INF"&&(r+=parseFloat(i[1])),r),t);return a.start<=n}return!1}function Bn(a=0,e=0,t){if(t.start<=a&&t.start+t.duration>a)return 0;const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-n<=a?1:t.start-n>a&&t.start?-1:0}function In(a,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>a}function yn(a,e,t){if(a&&a.startCC<=e&&a.endCC>=e){let n=a.fragments;const{fragmentHint:r}=a;r&&(n=n.concat(r));let i;return Yn.search(n,s=>s.cc<e?1:s.cc>e?-1:(i=s,s.end<=t?1:s.start>t?-1:0)),i||null}return null}function kn(a){switch(a.details){case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_TIMEOUT:case B.LEVEL_LOAD_TIMEOUT:case B.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function pn(a,e){const t=kn(e);return a.default[`${t?"timeout":"error"}Retry`]}function En(a,e){const t=a.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*a.retryDelayMs,a.maxRetryDelayMs)}function Ln(a){return b(b({},a),{errorRetry:null,timeoutRetry:null})}function Mn(a,e,t,n){if(!a)return!1;const r=n==null?void 0:n.code,i=e<a.maxNumRetry&&(zn(r)||!!t);return a.shouldRetry?a.shouldRetry(a,e,t,n,i):i}function zn(a){return a===0&&navigator.onLine===!1||!!a&&(a<400||a>499)}var Un={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},ar={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class Me extends ${constructor(e){super("error-controller",e.logger),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(d.ERROR,this.onError,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(d.ERROR,this.onError,this),e.off(d.ERROR,this.onErrorOut,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null,this.penalizedRenditions={}}startLoad(e){}stopLoad(){this.playlistError=0}getVariantLevelIndex(e){return(e==null?void 0:e.type)===ne.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var n;if(t.fatal)return;const r=this.hls,i=t.context;switch(t.details){case B.FRAG_LOAD_ERROR:case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_ERROR:case B.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case B.FRAG_PARSING_ERROR:if((n=t.frag)!=null&&n.gap){t.errorAction=Ie();return}case B.FRAG_GAP:case B.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Un.SendAlternateToPenaltyBox;return}case B.LEVEL_EMPTY_ERROR:case B.LEVEL_PARSING_ERROR:{var s;const c=t.parent===ne.MAIN?t.level:r.loadLevel;t.details===B.LEVEL_EMPTY_ERROR&&((s=t.context)!=null&&(s=s.levelDetails)!=null&&s.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,c):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,c))}return;case B.LEVEL_LOAD_ERROR:case B.LEVEL_LOAD_TIMEOUT:typeof(i==null?void 0:i.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.level));return;case B.AUDIO_TRACK_LOAD_ERROR:case B.AUDIO_TRACK_LOAD_TIMEOUT:case B.SUBTITLE_LOAD_ERROR:case B.SUBTITLE_TRACK_LOAD_TIMEOUT:if(i){const c=r.loadLevelObj;if(c&&(i.type===_e.AUDIO_TRACK&&c.hasAudioGroup(i.groupId)||i.type===_e.SUBTITLE_TRACK&&c.hasSubtitleGroup(i.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.loadLevel),t.errorAction.action=Un.SendAlternateToPenaltyBox,t.errorAction.flags=ar.MoveAllAlternatesMatchingHost;return}}return;case B.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const c=r.loadLevelObj,u=c==null?void 0:c.attrs["HDCP-LEVEL"];u?t.errorAction={action:Un.SendAlternateToPenaltyBox,flags:ar.MoveAllAlternatesMatchingHDCP,hdcpLevel:u}:this.keySystemError(t)}return;case B.BUFFER_ADD_CODEC_ERROR:case B.REMUX_ALLOC_ERROR:case B.BUFFER_APPEND_ERROR:if(!t.errorAction){var l;t.errorAction=this.getLevelSwitchAction(t,(l=t.level)!=null?l:r.loadLevel)}return;case B.INTERNAL_EXCEPTION:case B.BUFFER_APPENDING_ERROR:case B.BUFFER_FULL_ERROR:case B.LEVEL_SWITCH_ERROR:case B.BUFFER_STALLED_ERROR:case B.BUFFER_SEEK_OVER_HOLE:case B.BUFFER_NUDGE_ON_STALL:t.errorAction=Ie();return}t.type===ae.KEY_SYSTEM_ERROR&&this.keySystemError(t)}keySystemError(e){const t=this.getVariantLevelIndex(e.frag);e.levelRetry=!1,e.errorAction=this.getLevelSwitchAction(e,t)}getPlaylistRetryOrSwitchAction(e,t){const n=this.hls,r=pn(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(Mn(r,i,kn(e),e.response))return{action:Un.RetryRequest,flags:ar.None,retryConfig:r,retryCount:i};const l=this.getLevelSwitchAction(e,t);return r&&(l.retryConfig=r,l.retryCount=i),l}getFragRetryOrSwitchAction(e){const t=this.hls,n=this.getVariantLevelIndex(e.frag),r=t.levels[n],{fragLoadPolicy:i,keyLoadPolicy:s}=t.config,l=pn(e.details.startsWith("key")?s:i,e),c=t.levels.reduce((h,m)=>h+m.fragmentError,0);if(r&&(e.details!==B.FRAG_GAP&&r.fragmentError++,Mn(l,c,kn(e),e.response)))return{action:Un.RetryRequest,flags:ar.None,retryConfig:l,retryCount:c};const u=this.getLevelSwitchAction(e,n);return l&&(u.retryConfig=l,u.retryCount=c),u}getLevelSwitchAction(e,t){const n=this.hls;t==null&&(t=n.loadLevel);const r=this.hls.levels[t];if(r){var i,s;const u=e.details;r.loadError++,u===B.BUFFER_APPEND_ERROR&&r.fragmentError++;let h=-1;const{levels:m,loadLevel:x,minAutoLevel:C,maxAutoLevel:L}=n;!n.autoLevelEnabled&&!n.config.preserveManualLevelOnError&&(n.loadLevel=-1);const te=(i=e.frag)==null?void 0:i.type,Ce=(te===ne.AUDIO&&u===B.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(u===B.BUFFER_ADD_CODEC_ERROR||u===B.BUFFER_APPEND_ERROR))&&m.some(({audioCodec:_n})=>r.audioCodec!==_n),rt=e.sourceBufferName==="video"&&(u===B.BUFFER_ADD_CODEC_ERROR||u===B.BUFFER_APPEND_ERROR)&&m.some(({codecSet:_n,audioCodec:Yt})=>r.codecSet!==_n&&r.audioCodec===Yt),{type:Ut,groupId:$t}=(s=e.context)!=null?s:{};for(let _n=m.length;_n--;){const Yt=(_n+x)%m.length;if(Yt!==x&&Yt>=C&&Yt<=L&&m[Yt].loadError===0){var l,c;const un=m[Yt];if(u===B.FRAG_GAP&&te===ne.MAIN&&e.frag){const fn=m[Yt].details;if(fn){const Xt=Zn(e.frag,fn.fragments,e.frag.start);if(Xt!=null&&Xt.gap)continue}}else{if(Ut===_e.AUDIO_TRACK&&un.hasAudioGroup($t)||Ut===_e.SUBTITLE_TRACK&&un.hasSubtitleGroup($t))continue;if(te===ne.AUDIO&&(l=r.audioGroups)!=null&&l.some(fn=>un.hasAudioGroup(fn))||te===ne.SUBTITLE&&(c=r.subtitleGroups)!=null&&c.some(fn=>un.hasSubtitleGroup(fn))||Ce&&r.audioCodec===un.audioCodec||rt&&r.codecSet===un.codecSet||!Ce&&r.codecSet!==un.codecSet)continue}h=Yt;break}}if(h>-1&&n.loadLevel!==h)return e.levelRetry=!0,this.playlistError=0,{action:Un.SendAlternateToPenaltyBox,flags:ar.None,nextAutoLevel:h}}return{action:Un.SendAlternateToPenaltyBox,flags:ar.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case Un.DoNothing:break;case Un.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==B.FRAG_GAP?t.fatal=!0:/MediaSource readyState: ended/.test(t.error.message)&&(this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break;case Un.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,n=e.errorAction;if(!n)return;const{flags:r,hdcpLevel:i,nextAutoLevel:s}=n;switch(r){case ar.None:this.switchLevel(e,s);break;case ar.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=Lt[Lt.indexOf(i)-1],n.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}n.resolved||this.switchLevel(e,s)}switchLevel(e,t){if(t!==void 0&&e.errorAction&&(this.warn(`switching to level ${t} after ${e.details}`),this.hls.nextAutoLevel=t,e.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel,e.details===B.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&e.sourceBufferName!=="audiovideo")){const n=Ue(e.mimeType),r=this.hls.levels;for(let i=r.length;i--;)r[i][`${e.sourceBufferName}Codec`]===n&&this.hls.removeLevel(i)}}}function Ie(a){const e={action:Un.DoNothing,flags:ar.None};return a&&(e.resolved=!0),e}var Te={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class lt{constructor(e){this.activePartLists=Object.create(null),this.endListFragments=Object.create(null),this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.bufferPadding=.2,this.hls=void 0,this.hasGaps=!1,this.hls=e,this._registerListeners()}_registerListeners(){const{hls:e}=this;e&&(e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.BUFFER_APPENDED,this.onBufferAppended,this),e.on(d.FRAG_BUFFERED,this.onFragBuffered,this),e.on(d.FRAG_LOADED,this.onFragLoaded,this))}_unregisterListeners(){const{hls:e}=this;e&&(e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.BUFFER_APPENDED,this.onBufferAppended,this),e.off(d.FRAG_BUFFERED,this.onFragBuffered,this),e.off(d.FRAG_LOADED,this.onFragLoaded,this))}destroy(){this._unregisterListeners(),this.hls=this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const n=this.activePartLists[t];if(n)for(let r=n.length;r--;){const i=n[r];if(!i)break;if(i.start<=e&&e<=i.end&&i.loaded)return i}return this.getBufferedFrag(e,t)}getBufferedFrag(e,t){return this.getFragAtPos(e,t,!0)}getFragAtPos(e,t,n){const{fragments:r}=this,i=Object.keys(r);for(let s=i.length;s--;){const l=r[i[s]];if((l==null?void 0:l.body.type)===t&&(!n||l.buffered)){const c=l.body;if(c.start<=e&&e<=c.end)return c}}return null}detectEvictedFragments(e,t,n,r,i){this.timeRanges&&(this.timeRanges[e]=t);const s=(r==null?void 0:r.fragment.sn)||-1;Object.keys(this.fragments).forEach(l=>{const c=this.fragments[l];if(!c||s>=c.body.sn)return;if(!c.buffered&&(!c.loaded||i)){c.body.type===n&&this.removeFragment(c.body);return}const u=c.range[e];if(u){if(u.time.length===0){this.removeFragment(c.body);return}u.time.some(h=>{const m=!this.isTimeBuffered(h.startPTS,h.endPTS,t);return m&&this.removeFragment(c.body),m})}})}detectPartialFragments(e){const t=this.timeRanges;if(!t||e.frag.sn==="initSegment")return;const n=e.frag,r=_t(n),i=this.fragments[r];if(!i||i.buffered&&n.gap)return;const s=!n.relurl;Object.keys(t).forEach(l=>{const c=n.elementaryStreams[l];if(!c)return;const u=t[l],h=s||c.partial===!0;i.range[l]=this.getBufferedTimes(n,e.part,h,u)}),i.loaded=null,Object.keys(i.range).length?(i.buffered=!0,(i.body.endList=n.endList||i.body.endList)&&(this.endListFragments[i.body.type]=i),gt(i)||this.removeParts(n.sn-1,n.type)):this.removeFragment(i.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=zt(n,r=>r.fragment.sn>=e))}fragBuffered(e,t){const n=_t(e);let r=this.fragments[n];!r&&t&&(r=this.fragments[n]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),r&&(r.loaded=null,r.buffered=!0)}getBufferedTimes(e,t,n,r){const i={time:[],partial:n},s=e.start,l=e.end,c=e.minEndPTS||l,u=e.maxStartPTS||s;for(let h=0;h<r.length;h++){const m=r.start(h)-this.bufferPadding,x=r.end(h)+this.bufferPadding;if(u>=m&&c<=x){i.time.push({startPTS:Math.max(s,r.start(h)),endPTS:Math.min(l,r.end(h))});break}else if(s<x&&l>m){const C=Math.max(s,r.start(h)),L=Math.min(l,r.end(h));L>C&&(i.partial=!0,i.time.push({startPTS:C,endPTS:L}))}else if(l<=m)break}return i}getPartialFragment(e){let t=null,n,r,i,s=0;const{bufferPadding:l,fragments:c}=this;return Object.keys(c).forEach(u=>{const h=c[u];h&&gt(h)&&(r=h.body.start-l,i=h.body.end+l,e>=r&&e<=i&&(n=Math.min(e-r,i-e),s<=n&&(t=h.body,s=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||gt(t))}getState(e){const t=_t(e),n=this.fragments[t];return n?n.buffered?gt(n)?Te.PARTIAL:Te.OK:Te.APPENDING:Te.NOT_LOADED}isTimeBuffered(e,t,n){let r,i;for(let s=0;s<n.length;s++){if(r=n.start(s)-this.bufferPadding,i=n.end(s)+this.bufferPadding,e>=r&&t<=i)return!0;if(t<=r)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if(t.frag.sn==="initSegment"||t.frag.bitrateTest)return;const n=t.frag,r=t.part?null:t,i=_t(n);this.fragments[i]={body:n,appendedPTS:null,loaded:r,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:n,part:r,timeRanges:i,type:s}=t;if(n.sn==="initSegment")return;const l=n.type;if(r){let u=this.activePartLists[l];u||(this.activePartLists[l]=u=[]),u.push(r)}this.timeRanges=i;const c=i[s];this.detectEvictedFragments(s,c,l,r)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=_t(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,n=Object.keys(t);if(!e)return n.length>0;for(let r=n.length;r--;){const i=t[n[r]];if((i==null?void 0:i.body.type)===e)return!0}return!1}hasParts(e){var t;return!!((t=this.activePartLists[e])!=null&&t.length)}removeFragmentsInRange(e,t,n,r,i){r&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const l=this.fragments[s];if(!l)return;const c=l.body;c.type!==n||r&&!c.gap||c.start<t&&c.end>e&&(l.buffered||i)&&this.removeFragment(c)})}removeFragment(e){const t=_t(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const r=e.sn;this.activePartLists[e.type]=zt(n,i=>i.fragment.sn!==r)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const t=(e=this.hls)==null||(e=e.latestLevelDetails)==null?void 0:e.partList;t&&t.forEach(n=>n.clearElementaryStreamInfo())}}function gt(a){var e,t,n;return a.buffered&&!!(a.body.gap||(e=a.range.video)!=null&&e.partial||(t=a.range.audio)!=null&&t.partial||(n=a.range.audiovideo)!=null&&n.partial)}function _t(a){return`${a.type}_${a.level}_${a.sn}`}function zt(a,e){return a.filter(t=>{const n=e(t);return n||t.clearElementaryStreamInfo(),n})}var Wt={cbc:0,ctr:1};class It{constructor(e,t,n){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=n}decrypt(e,t){switch(this.aesMode){case Wt.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case Wt.ctr:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},t,e);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}function vt(a){const e=a.byteLength,t=e&&new DataView(a.buffer).getUint8(e-1);return t?a.slice(0,e-t):a}class xt{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(e){const t=new DataView(e),n=new Uint32Array(4);for(let r=0;r<4;r++)n[r]=t.getUint32(r*4);return n}initTable(){const e=this.sBox,t=this.invSBox,n=this.subMix,r=n[0],i=n[1],s=n[2],l=n[3],c=this.invSubMix,u=c[0],h=c[1],m=c[2],x=c[3],C=new Uint32Array(256);let L=0,te=0,J=0;for(J=0;J<256;J++)J<128?C[J]=J<<1:C[J]=J<<1^283;for(J=0;J<256;J++){let Ce=te^te<<1^te<<2^te<<3^te<<4;Ce=Ce>>>8^Ce&255^99,e[L]=Ce,t[Ce]=L;const ht=C[L],rt=C[ht],Ut=C[rt];let $t=C[Ce]*257^Ce*16843008;r[L]=$t<<24|$t>>>8,i[L]=$t<<16|$t>>>16,s[L]=$t<<8|$t>>>24,l[L]=$t,$t=Ut*16843009^rt*65537^ht*257^L*16843008,u[Ce]=$t<<24|$t>>>8,h[Ce]=$t<<16|$t>>>16,m[Ce]=$t<<8|$t>>>24,x[Ce]=$t,L?(L=ht^C[C[C[Ut^ht]]],te^=C[C[te]]):L=te=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let n=!0,r=0;for(;r<t.length&&n;)n=t[r]===this.key[r],r++;if(n)return;this.key=t;const i=this.keySize=t.length;if(i!==4&&i!==6&&i!==8)throw new Error("Invalid aes key size="+i);const s=this.ksRows=(i+6+1)*4;let l,c;const u=this.keySchedule=new Uint32Array(s),h=this.invKeySchedule=new Uint32Array(s),m=this.sBox,x=this.rcon,C=this.invSubMix,L=C[0],te=C[1],J=C[2],Ce=C[3];let ht,rt;for(l=0;l<s;l++){if(l<i){ht=u[l]=t[l];continue}rt=ht,l%i===0?(rt=rt<<8|rt>>>24,rt=m[rt>>>24]<<24|m[rt>>>16&255]<<16|m[rt>>>8&255]<<8|m[rt&255],rt^=x[l/i|0]<<24):i>6&&l%i===4&&(rt=m[rt>>>24]<<24|m[rt>>>16&255]<<16|m[rt>>>8&255]<<8|m[rt&255]),u[l]=ht=(u[l-i]^rt)>>>0}for(c=0;c<s;c++)l=s-c,c&3?rt=u[l]:rt=u[l-4],c<4||l<=4?h[c]=rt:h[c]=L[m[rt>>>24]]^te[m[rt>>>16&255]]^J[m[rt>>>8&255]]^Ce[m[rt&255]],h[c]=h[c]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,n){const r=this.keySize+6,i=this.invKeySchedule,s=this.invSBox,l=this.invSubMix,c=l[0],u=l[1],h=l[2],m=l[3],x=this.uint8ArrayToUint32Array_(n);let C=x[0],L=x[1],te=x[2],J=x[3];const Ce=new Int32Array(e),ht=new Int32Array(Ce.length);let rt,Ut,$t,_n,Yt,un,fn,Xt,An,tr,hr,vr,pr,Qn;const mr=this.networkToHostOrderSwap;for(;t<Ce.length;){for(An=mr(Ce[t]),tr=mr(Ce[t+1]),hr=mr(Ce[t+2]),vr=mr(Ce[t+3]),Yt=An^i[0],un=vr^i[1],fn=hr^i[2],Xt=tr^i[3],pr=4,Qn=1;Qn<r;Qn++)rt=c[Yt>>>24]^u[un>>16&255]^h[fn>>8&255]^m[Xt&255]^i[pr],Ut=c[un>>>24]^u[fn>>16&255]^h[Xt>>8&255]^m[Yt&255]^i[pr+1],$t=c[fn>>>24]^u[Xt>>16&255]^h[Yt>>8&255]^m[un&255]^i[pr+2],_n=c[Xt>>>24]^u[Yt>>16&255]^h[un>>8&255]^m[fn&255]^i[pr+3],Yt=rt,un=Ut,fn=$t,Xt=_n,pr=pr+4;rt=s[Yt>>>24]<<24^s[un>>16&255]<<16^s[fn>>8&255]<<8^s[Xt&255]^i[pr],Ut=s[un>>>24]<<24^s[fn>>16&255]<<16^s[Xt>>8&255]<<8^s[Yt&255]^i[pr+1],$t=s[fn>>>24]<<24^s[Xt>>16&255]<<16^s[Yt>>8&255]<<8^s[un&255]^i[pr+2],_n=s[Xt>>>24]<<24^s[Yt>>16&255]<<16^s[un>>8&255]<<8^s[fn&255]^i[pr+3],ht[t]=mr(rt^C),ht[t+1]=mr(_n^L),ht[t+2]=mr($t^te),ht[t+3]=mr(Ut^J),C=An,L=tr,te=hr,J=vr,t=t+4}return ht.buffer}}class Nt{constructor(e,t,n){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=n}expandKey(){const e=Zt(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function Zt(a){switch(a){case Wt.cbc:return"AES-CBC";case Wt.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${a}`)}}const nn=16;class gn{constructor(e,{removePKCS7Padding:t=!0}={}){if(this.logEnabled=!0,this.removePKCS7Padding=void 0,this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null,this.useSoftware=void 0,this.enableSoftwareAES=void 0,this.enableSoftwareAES=e.enableSoftwareAES,this.removePKCS7Padding=t,t)try{const n=self.crypto;n&&(this.subtle=n.subtle||n.webkitSubtle)}catch(n){}this.useSoftware=!this.subtle}destroy(){this.subtle=null,this.softwareDecrypter=null,this.key=null,this.fastAesKey=null,this.remainderData=null,this.currentIV=null,this.currentResult=null}isSync(){return this.useSoftware}flush(){const{currentResult:e,remainderData:t}=this;if(!e||t)return this.reset(),null;const n=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?vt(n):n}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,n,r){return this.useSoftware?new Promise((i,s)=>{const l=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(l,t,n,r);const c=this.flush();c?i(c.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,n,r)}softwareDecrypt(e,t,n,r){const{currentIV:i,currentResult:s,remainderData:l}=this;if(r!==Wt.cbc||t.byteLength!==16)return ee.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(e=Ye(l,e),this.remainderData=null);const c=this.getValidChunk(e);if(!c.length)return null;i&&(n=i);let u=this.softwareDecrypter;u||(u=this.softwareDecrypter=new xt),u.expandKey(t);const h=s;return this.currentResult=u.decrypt(c.buffer,0,n),this.currentIV=c.slice(-16).buffer,h||null}webCryptoDecrypt(e,t,n,r){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,n,r));this.key=t,this.fastAesKey=new Nt(this.subtle,t,r)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new It(this.subtle,new Uint8Array(n),r).decrypt(e.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(ee.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(e,t,n,r)))}onWebCryptoError(e,t,n,r){const i=this.enableSoftwareAES;if(i){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,n,r);const s=this.flush();if(s)return s.buffer}throw new Error("WebCrypto"+(i?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(e){let t=e;const n=e.length-e.length%nn;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(ee.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const Kn=Math.pow(2,17);class mn{constructor(e){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=e}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(e,t){const n=e.url;if(!n)return Promise.reject(new Vn({type:ae.NETWORK_ERROR,details:B.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${n?"part list":"url"}`),networkDetails:null}));this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((l,c)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(L=>L[0]==="GAP")){c(Fn(e));return}else e.gap=!1;const u=this.loader=i?new i(r):new s(r),h=Sn(e);e.loader=u;const m=Ln(r.fragLoadPolicy.default),x={loadPolicy:m,timeout:m.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:Kn};e.stats=u.stats;const C={onSuccess:(L,te,J,Ce)=>{this.resetLoader(e,u);let ht=L.data;J.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(ht.slice(0,16)),ht=ht.slice(16)),l({frag:e,part:null,payload:ht,networkDetails:Ce})},onError:(L,te,J,Ce)=>{this.resetLoader(e,u),c(new Vn({type:ae.NETWORK_ERROR,details:B.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:b({url:n,data:void 0},L),error:new Error(`HTTP Error ${L.code} ${L.text}`),networkDetails:J,stats:Ce}))},onAbort:(L,te,J)=>{this.resetLoader(e,u),c(new Vn({type:ae.NETWORK_ERROR,details:B.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:J,stats:L}))},onTimeout:(L,te,J)=>{this.resetLoader(e,u),c(new Vn({type:ae.NETWORK_ERROR,details:B.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${x.timeout}ms`),networkDetails:J,stats:L}))}};t&&(C.onProgress=(L,te,J,Ce)=>t({frag:e,part:null,payload:J,networkDetails:Ce})),u.load(h,x,C)})}loadPart(e,t,n){this.abort();const r=this.config,i=r.fLoader,s=r.loader;return new Promise((l,c)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){c(Fn(e,t));return}const u=this.loader=i?new i(r):new s(r),h=Sn(e,t);e.loader=u;const m=Ln(r.fragLoadPolicy.default),x={loadPolicy:m,timeout:m.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Kn};t.stats=u.stats,u.load(h,x,{onSuccess:(C,L,te,J)=>{this.resetLoader(e,u),this.updateStatsFromPart(e,t);const Ce={frag:e,part:t,payload:C.data,networkDetails:J};n(Ce),l(Ce)},onError:(C,L,te,J)=>{this.resetLoader(e,u),c(new Vn({type:ae.NETWORK_ERROR,details:B.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:b({url:h.url,data:void 0},C),error:new Error(`HTTP Error ${C.code} ${C.text}`),networkDetails:te,stats:J}))},onAbort:(C,L,te)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,u),c(new Vn({type:ae.NETWORK_ERROR,details:B.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:te,stats:C}))},onTimeout:(C,L,te)=>{this.resetLoader(e,u),c(new Vn({type:ae.NETWORK_ERROR,details:B.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${x.timeout}ms`),networkDetails:te,stats:C}))}})})}updateStatsFromPart(e,t){const n=e.stats,r=t.stats,i=r.total;if(n.loaded+=r.loaded,i){const c=Math.round(e.duration/t.duration),u=Math.min(Math.round(n.loaded/i),c),m=(c-u)*Math.round(n.loaded/u);n.total=n.loaded+m}else n.total=Math.max(n.loaded,n.total);const s=n.loading,l=r.loading;s.start?s.first+=l.first-l.start:(s.start=l.start,s.first=l.first),s.end=l.end}resetLoader(e,t){e.loader=null,this.loader===t&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),t.destroy()}}function Sn(a,e=null){const t=e||a,n={frag:a,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},r=t.byteRangeStartOffset,i=t.byteRangeEndOffset;if(f(r)&&f(i)){var s;let l=r,c=i;if(a.sn==="initSegment"&&Nn((s=a.decryptdata)==null?void 0:s.method)){const u=i-r;u%16&&(c=i+(16-u%16)),r!==0&&(n.resetIV=!0,l=r-16)}n.rangeStart=l,n.rangeEnd=c}return n}function Fn(a,e){const t=new Error(`GAP ${a.gap?"tag":"attribute"} found`),n={type:ae.MEDIA_ERROR,details:B.FRAG_GAP,fatal:!1,frag:a,error:t,networkDetails:null};return e&&(n.part=e),(e||a).stats.aborted=!0,new Vn(n)}function Nn(a){return a==="AES-128"||a==="AES-256"}class Vn extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class wn extends ${constructor(e,t){super(e,t),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class Gn{constructor(e,t,n,r=0,i=-1,s=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=Wn(),this.buffering={audio:Wn(),video:Wn(),audiovideo:Wn()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=s}}function Wn(){return{start:0,executeStart:0,executeEnd:0,end:0}}const er={length:0,start:()=>0,end:()=>0};class bn{static isBuffered(e,t){if(e){const n=bn.getBuffered(e);for(let r=n.length;r--;)if(t>=n.start(r)&&t<=n.end(r))return!0}return!1}static bufferedRanges(e){if(e){const t=bn.getBuffered(e);return bn.timeRangesToArray(t)}return[]}static timeRangesToArray(e){const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t}static bufferInfo(e,t,n){if(e){const r=bn.bufferedRanges(e);if(r.length)return bn.bufferedInfo(r,t,n)}return{len:0,start:t,end:t,bufferedIndex:-1}}static bufferedInfo(e,t,n){t=Math.max(0,t),e.length>1&&e.sort((h,m)=>h.start-m.start||m.end-h.end);let r=-1,i=[];if(n)for(let h=0;h<e.length;h++){t>=e[h].start&&t<=e[h].end&&(r=h);const m=i.length;if(m){const x=i[m-1].end;e[h].start-x<n?e[h].end>x&&(i[m-1].end=e[h].end):i.push(e[h])}else i.push(e[h])}else i=e;let s=0,l,c=t,u=t;for(let h=0;h<i.length;h++){const m=i[h].start,x=i[h].end;if(r===-1&&t>=m&&t<=x&&(r=h),t+n>=m&&t<x)c=m,u=x,s=u-t;else if(t+n<m){l=m;break}}return{len:s,start:c||0,end:u||0,nextStart:l,buffered:e,bufferedIndex:r}}static getBuffered(e){try{return e.buffered||er}catch(t){return ee.log("failed to get media.buffered",t),er}}}const Jn=/\{\$([a-zA-Z0-9-_]+)\}/g;function cr(a){return Jn.test(a)}function pt(a,e){if(a.variableList!==null||a.hasVariableRefs){const t=a.variableList;return e.replace(Jn,n=>{const r=n.substring(2,n.length-1),i=t==null?void 0:t[r];return i===void 0?(a.playlistParsingError||(a.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${r}"`)),n):i})}return e}function Qt(a,e,t){let n=a.variableList;n||(a.variableList=n={});let r,i;if("QUERYPARAM"in e){r=e.QUERYPARAM;try{const s=new self.URL(t).searchParams;if(s.has(r))i=s.get(r);else throw new Error(`"${r}" does not match any query parameter in URI: "${t}"`)}catch(s){a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else r=e.NAME,i=e.VALUE;r in n?a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${r}"`)):n[r]=i||""}function on(a,e,t){const n=e.IMPORT;if(t&&n in t){let r=a.variableList;r||(a.variableList=r={}),r[n]=t[n]}else a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${n}"`))}const Vt=/^(\d+)x(\d+)$/,vn=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Rn{constructor(e,t){typeof e=="string"&&(e=Rn.parseAttrList(e,t)),p(this,e)}get clientAttrs(){return Object.keys(this).filter(e=>e.substring(0,2)==="X-")}decimalInteger(e){const t=parseInt(this[e],10);return t>Number.MAX_SAFE_INTEGER?1/0:t}hexadecimalInteger(e){if(this[e]){let t=(this[e]||"0x").slice(2);t=(t.length&1?"0":"")+t;const n=new Uint8Array(t.length/2);for(let r=0;r<t.length/2;r++)n[r]=parseInt(t.slice(r*2,r*2+2),16);return n}return null}hexadecimalIntegerAsNumber(e){const t=parseInt(this[e],16);return t>Number.MAX_SAFE_INTEGER?1/0:t}decimalFloatingPoint(e){return parseFloat(this[e])}optionalFloat(e,t){const n=this[e];return n?parseFloat(n):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){const n=this[e];return(n?n.split(/[ ,]+/):[]).reduce((r,i)=>(r[i.toLowerCase()]=!0,r),t)}bool(e){return this[e]==="YES"}decimalResolution(e){const t=Vt.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let n;const r={},i='"';for(vn.lastIndex=0;(n=vn.exec(e))!==null;){const s=n[1].trim();let l=n[2];const c=l.indexOf(i)===0&&l.lastIndexOf(i)===l.length-1;let u=!1;if(c)l=l.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":u=!0}if(t&&(c||u))l=pt(t,l);else if(!u&&!c)switch(s){case"CLOSED-CAPTIONS":if(l==="NONE")break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":ee.warn(`${e}: attribute ${s} is missing quotes`)}r[s]=l}return r}}const nr="com.apple.hls.interstitial";function Xn(a){return a!=="ID"&&a!=="CLASS"&&a!=="CUE"&&a!=="START-DATE"&&a!=="DURATION"&&a!=="END-DATE"&&a!=="END-ON-NEXT"}function dr(a){return a==="SCTE35-OUT"||a==="SCTE35-IN"||a==="SCTE35-CMD"}class xr{constructor(e,t,n=0){var r;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=(t==null?void 0:t.tagAnchor)||null,this.tagOrder=(r=t==null?void 0:t.tagOrder)!=null?r:n,t){const i=t.attr;for(const s in i)if(Object.prototype.hasOwnProperty.call(e,s)&&e[s]!==i[s]){ee.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=s;break}e=p(new Rn({}),i,e)}if(this.attr=e,t?(this._startDate=t._startDate,this._cue=t._cue,this._endDate=t._endDate,this._dateAtEnd=t._dateAtEnd):this._startDate=new Date(e["START-DATE"]),"END-DATE"in this.attr){const i=(t==null?void 0:t.endDate)||new Date(this.attr["END-DATE"]);f(i.getTime())&&(this._endDate=i)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const e=this._cue;return e===void 0?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):e}get startTime(){const{tagAnchor:e}=this;return e===null||e.programDateTime===null?(ee.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${e}`),NaN):e.start+(this.startDate.getTime()-e.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const e=this._endDate||this._dateAtEnd;if(e)return e;const t=this.duration;return t!==null?this._dateAtEnd=new Date(this._startDate.getTime()+t*1e3):null}get duration(){if("DURATION"in this.attr){const e=this.attr.decimalFloatingPoint("DURATION");if(f(e))return e}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return this.class===nr}get isValid(){return!!this.id&&!this._badValueForSameId&&f(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}const Ur=10;class Nr{constructor(e){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=e}reloaded(e){if(!e){this.advanced=!0,this.updated=!0;return}const t=this.lastPartSn-e.lastPartSn,n=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!n||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&n>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1}get hasProgramDateTime(){return this.fragments.length?f(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||Ur}get drift(){const e=this.driftEndTime-this.driftStartTime;return e>0?(this.driftEnd-this.driftStart)*1e3/e:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){return this.fragments.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){return this.fragments.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const e=this.partList;if(e){const t=this.lastPartIndex;if(t!==-1){for(let n=e.length;n--;)if(e[n].index>t)return e[n].index;return t}}return 0}get lastPartSn(){var e;return(e=this.partList)!=null&&e.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const e=this.partEnd-this.fragmentStart;return this.age>Math.max(e,this.totalduration)+this.levelTargetDuration}return!1}}function zr(a){return a==="AES-128"||a==="AES-256"||a==="AES-256-CTR"}function Vr(a){switch(a){case"AES-128":case"AES-256":return Wt.cbc;case"AES-256-CTR":return Wt.ctr;default:throw new Error(`invalid full segment method ${a}`)}}function Zr(a){return Uint8Array.from(atob(a),e=>e.charCodeAt(0))}function yr(a){return Uint8Array.from(unescape(encodeURIComponent(a)),e=>e.charCodeAt(0))}function Tr(a){const e=yr(a).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function Wr(a){const e=function(n,r,i){const s=n[r];n[r]=n[i],n[i]=s};e(a,0,3),e(a,1,2),e(a,4,5),e(a,6,7)}function Er(a){const e=a.split(":");let t=null;if(e[0]==="data"&&e.length===2){const n=e[1].split(";"),r=n[n.length-1].split(",");if(r.length===2){const i=r[0]==="base64",s=r[1];i?(n.splice(-1,1),t=Zr(s)):t=Tr(s)}}return t}const _r=typeof self!="undefined"?self:void 0;var lr={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},jn={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function or(a){switch(a){case jn.FAIRPLAY:return lr.FAIRPLAY;case jn.PLAYREADY:return lr.PLAYREADY;case jn.WIDEVINE:return lr.WIDEVINE;case jn.CLEARKEY:return lr.CLEARKEY}}function ur(a){switch(a){case lr.FAIRPLAY:return jn.FAIRPLAY;case lr.PLAYREADY:return jn.PLAYREADY;case lr.WIDEVINE:return jn.WIDEVINE;case lr.CLEARKEY:return jn.CLEARKEY}}function fr(a){const{drmSystems:e,widevineLicenseUrl:t}=a,n=e?[lr.FAIRPLAY,lr.WIDEVINE,lr.PLAYREADY,lr.CLEARKEY].filter(r=>!!e[r]):[];return!n[lr.WIDEVINE]&&t&&n.push(lr.WIDEVINE),n}const Sr=function(a){return _r!=null&&(a=_r.navigator)!=null&&a.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Dr(a,e,t,n){let r;switch(a){case lr.FAIRPLAY:r=["cenc","sinf"];break;case lr.WIDEVINE:case lr.PLAYREADY:r=["cenc"];break;case lr.CLEARKEY:r=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${a}`)}return $r(r,e,t,n)}function $r(a,e,t,n){return[{initDataTypes:a,persistentState:n.persistentState||"optional",distinctiveIdentifier:n.distinctiveIdentifier||"optional",sessionTypes:n.sessionTypes||[n.sessionType||"temporary"],audioCapabilities:e.map(i=>({contentType:`audio/mp4; codecs=${i}`,robustness:n.audioRobustness||"",encryptionScheme:n.audioEncryptionScheme||null})),videoCapabilities:t.map(i=>({contentType:`video/mp4; codecs=${i}`,robustness:n.videoRobustness||"",encryptionScheme:n.videoEncryptionScheme||null}))}]}function Hn(a){var e;return a.sessionType==="persistent-license"||!!((e=a.sessionTypes)!=null&&e.some(t=>t==="persistent-license"))}function ir(a){const e=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),n=t.substring(t.indexOf("<"),t.length),s=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("KID")[0];if(s){const l=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(l){const c=Zr(l).subarray(0,16);return Wr(c),c}}return null}let rr={};class Ar{static clearKeyUriToKeyIdMap(){rr={}}constructor(e,t,n,r=[1],i=null,s){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=e,this.uri=t,this.keyFormat=n,this.keyFormatVersions=r,this.iv=i,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!zr(e),s!=null&&s.startsWith("0x")&&(this.keyId=new Uint8Array(T(s)))}matches(e){var t,n;return e.uri===this.uri&&e.method===this.method&&e.encrypted===this.encrypted&&e.keyFormat===this.keyFormat&&e.keyFormatVersions.join(",")===this.keyFormatVersions.join(",")&&((t=e.iv)==null?void 0:t.join(","))===((n=this.iv)==null?void 0:n.join(","))}isSupported(){if(this.method){if(zr(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case jn.FAIRPLAY:case jn.WIDEVINE:case jn.PLAYREADY:case jn.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(zr(this.method)&&this.uri&&!this.iv){typeof e!="number"&&(ee.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const n=Lr(e);return new Ar(this.method,this.uri,"identity",this.keyFormatVersions,n)}if(this.pssh&&this.keyId)return this;const t=Er(this.uri);if(t)switch(this.keyFormat){case jn.WIDEVINE:if(this.pssh=t,!this.keyId&&t.length>=22){const n=t.length-22;this.keyId=t.subarray(n,n+16)}break;case jn.PLAYREADY:{const n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=it(n,null,t),this.keyId=ir(t);break}default:{let n=t.subarray(0,16);if(n.length!==16){const r=new Uint8Array(16);r.set(n,16-n.length),n=r}this.keyId=n;break}}if(!this.keyId||this.keyId.byteLength!==16){let n=rr[this.uri];if(!n){const r=Object.keys(rr).length%Number.MAX_SAFE_INTEGER;n=new Uint8Array(16),new DataView(n.buffer,12,4).setUint32(0,r),rr[this.uri]=n}this.keyId=n}return this}}function Lr(a){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=a>>8*(15-t)&255;return e}const Fr=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,ni=/#EXT-X-MEDIA:(.*)/g,si=/^#EXT(?:INF|-X-TARGETDURATION):/m,qr=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),Hr=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class di{static findGroup(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(r.id===t)return r}}static resolve(e,t){return y.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return si.test(e)}static parseMasterPlaylist(e,t){const n=cr(e),r={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:n},i=[];Fr.lastIndex=0;let s;for(;(s=Fr.exec(e))!=null;)if(s[1]){var l;const u=new Rn(s[1],r),h=pt(r,s[2]),m={attrs:u,bitrate:u.decimalInteger("BANDWIDTH")||u.decimalInteger("AVERAGE-BANDWIDTH"),name:u.NAME,url:di.resolve(h,t)},x=u.decimalResolution("RESOLUTION");x&&(m.width=x.width,m.height=x.height),Oi(u.CODECS,m);const C=u["SUPPLEMENTAL-CODECS"];C&&(m.supplemental={},Oi(C,m.supplemental)),(l=m.unknownCodecs)!=null&&l.length||i.push(m),r.levels.push(m)}else if(s[3]){const u=s[3],h=s[4];switch(u){case"SESSION-DATA":{const m=new Rn(h,r),x=m["DATA-ID"];x&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[x]=m);break}case"SESSION-KEY":{const m=Ki(h,t,r);m.encrypted&&m.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(m)):ee.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${h}"`);break}case"DEFINE":{{const m=new Rn(h,r);Qt(r,m,t)}break}case"CONTENT-STEERING":{const m=new Rn(h,r);r.contentSteering={uri:di.resolve(m["SERVER-URI"],t),pathwayId:m["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=Mi(h);break}}}const c=i.length>0&&i.length<r.levels.length;return r.levels=c?i:r.levels,r.levels.length===0&&(r.playlistParsingError=new Error("no levels found in manifest")),r}static parseMasterPlaylistMedia(e,t,n){let r;const i={},s=n.levels,l={AUDIO:s.map(u=>({id:u.attrs.AUDIO,audioCodec:u.audioCodec})),SUBTITLES:s.map(u=>({id:u.attrs.SUBTITLES,textCodec:u.textCodec})),"CLOSED-CAPTIONS":[]};let c=0;for(ni.lastIndex=0;(r=ni.exec(e))!==null;){const u=new Rn(r[1],n),h=u.TYPE;if(h){const m=l[h],x=i[h]||[];i[h]=x;const C=u.LANGUAGE,L=u["ASSOC-LANGUAGE"],te=u.CHANNELS,J=u.CHARACTERISTICS,Ce=u["INSTREAM-ID"],ht={attrs:u,bitrate:0,id:c++,groupId:u["GROUP-ID"]||"",name:u.NAME||C||"",type:h,default:u.bool("DEFAULT"),autoselect:u.bool("AUTOSELECT"),forced:u.bool("FORCED"),lang:C,url:u.URI?di.resolve(u.URI,t):""};if(L&&(ht.assocLang=L),te&&(ht.channels=te),J&&(ht.characteristics=J),Ce&&(ht.instreamId=Ce),m!=null&&m.length){const rt=di.findGroup(m,ht.groupId)||m[0];zi(ht,rt,"audioCodec"),zi(ht,rt,"textCodec")}x.push(ht)}}return i}static parseLevelPlaylist(e,t,n,r,i,s){var l;const c={url:t},u=new Nr(t),h=u.fragments,m=[];let x=null,C=0,L=0,te=0,J=0,Ce=0,ht=null,rt=new tt(r,c),Ut,$t,_n,Yt=-1,un=!1,fn=null,Xt;if(qr.lastIndex=0,u.m3u8=e,u.hasVariableRefs=cr(e),((l=qr.exec(e))==null?void 0:l[0])!=="#EXTM3U")return u.playlistParsingError=new Error("Missing format identifier #EXTM3U"),u;for(;(Ut=qr.exec(e))!==null;){un&&(un=!1,rt=new tt(r,c),rt.playlistOffset=te,rt.setStart(te),rt.sn=C,rt.cc=J,Ce&&(rt.bitrate=Ce),rt.level=n,x&&(rt.initSegment=x,x.rawProgramDateTime&&(rt.rawProgramDateTime=x.rawProgramDateTime,x.rawProgramDateTime=null),fn&&(rt.setByteRange(fn),fn=null)));const vr=Ut[1];if(vr){rt.duration=parseFloat(vr);const pr=(" "+Ut[2]).slice(1);rt.title=pr||null,rt.tagList.push(pr?["INF",vr,pr]:["INF",vr])}else if(Ut[3]){if(f(rt.duration)){rt.playlistOffset=te,rt.setStart(te),_n&&qi(rt,_n,u),rt.sn=C,rt.level=n,rt.cc=J,h.push(rt);const pr=(" "+Ut[3]).slice(1);rt.relurl=pt(u,pr),Fi(rt,ht,m),ht=rt,te+=rt.duration,C++,L=0,un=!0}}else{if(Ut=Ut[0].match(Hr),!Ut){ee.warn("No matches on slow regex match for level playlist!");continue}for($t=1;$t<Ut.length&&Ut[$t]===void 0;$t++);const pr=(" "+Ut[$t]).slice(1),Qn=(" "+Ut[$t+1]).slice(1),mr=Ut[$t+2]?(" "+Ut[$t+2]).slice(1):null;switch(pr){case"BYTERANGE":ht?rt.setByteRange(Qn,ht):rt.setByteRange(Qn);break;case"PROGRAM-DATE-TIME":rt.rawProgramDateTime=Qn,rt.tagList.push(["PROGRAM-DATE-TIME",Qn]),Yt===-1&&(Yt=h.length);break;case"PLAYLIST-TYPE":u.type&&ui(u,pr,Ut),u.type=Qn.toUpperCase();break;case"MEDIA-SEQUENCE":u.startSN!==0?ui(u,pr,Ut):h.length>0&&as(u,pr,Ut),C=u.startSN=parseInt(Qn);break;case"SKIP":{u.skippedSegments&&ui(u,pr,Ut);const sr=new Rn(Qn,u),gr=sr.decimalInteger("SKIPPED-SEGMENTS");if(f(gr)){u.skippedSegments+=gr;for(let qn=gr;qn--;)h.push(null);C+=gr}const wr=sr.enumeratedString("RECENTLY-REMOVED-DATERANGES");wr&&(u.recentlyRemovedDateranges=(u.recentlyRemovedDateranges||[]).concat(wr.split(" ")));break}case"TARGETDURATION":u.targetduration!==0&&ui(u,pr,Ut),u.targetduration=Math.max(parseInt(Qn),1);break;case"VERSION":u.version!==null&&ui(u,pr,Ut),u.version=parseInt(Qn);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":u.live||ui(u,pr,Ut),u.live=!1;break;case"#":(Qn||mr)&&rt.tagList.push(mr?[Qn,mr]:[Qn]);break;case"DISCONTINUITY":J++,rt.tagList.push(["DIS"]);break;case"GAP":rt.gap=!0,rt.tagList.push([pr]);break;case"BITRATE":rt.tagList.push([pr,Qn]),Ce=parseInt(Qn)*1e3,f(Ce)?rt.bitrate=Ce:Ce=0;break;case"DATERANGE":{const sr=new Rn(Qn,u),gr=new xr(sr,u.dateRanges[sr.ID],u.dateRangeTagCount);u.dateRangeTagCount++,gr.isValid||u.skippedSegments?u.dateRanges[gr.id]=gr:ee.warn(`Ignoring invalid DATERANGE tag: "${Qn}"`),rt.tagList.push(["EXT-X-DATERANGE",Qn]);break}case"DEFINE":{{const sr=new Rn(Qn,u);"IMPORT"in sr?on(u,sr,s):Qt(u,sr,t)}break}case"DISCONTINUITY-SEQUENCE":u.startCC!==0?ui(u,pr,Ut):h.length>0&&as(u,pr,Ut),u.startCC=J=parseInt(Qn);break;case"KEY":{const sr=Ki(Qn,t,u);if(sr.isSupported()){if(sr.method==="NONE"){_n=void 0;break}_n||(_n={});const gr=_n[sr.keyFormat];gr!=null&&gr.matches(sr)||(gr&&(_n=p({},_n)),_n[sr.keyFormat]=sr)}else ee.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${Qn}"`);break}case"START":u.startTimeOffset=Mi(Qn);break;case"MAP":{const sr=new Rn(Qn,u);if(rt.duration){const gr=new tt(r,c);Di(gr,sr,n,_n),x=gr,rt.initSegment=x,x.rawProgramDateTime&&!rt.rawProgramDateTime&&(rt.rawProgramDateTime=x.rawProgramDateTime)}else{const gr=rt.byteRangeEndOffset;if(gr){const wr=rt.byteRangeStartOffset;fn=`${gr-wr}@${wr}`}else fn=null;Di(rt,sr,n,_n),x=rt,un=!0}x.cc=J;break}case"SERVER-CONTROL":{Xt&&ui(u,pr,Ut),Xt=new Rn(Qn),u.canBlockReload=Xt.bool("CAN-BLOCK-RELOAD"),u.canSkipUntil=Xt.optionalFloat("CAN-SKIP-UNTIL",0),u.canSkipDateRanges=u.canSkipUntil>0&&Xt.bool("CAN-SKIP-DATERANGES"),u.partHoldBack=Xt.optionalFloat("PART-HOLD-BACK",0),u.holdBack=Xt.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{u.partTarget&&ui(u,pr,Ut);const sr=new Rn(Qn);u.partTarget=sr.decimalFloatingPoint("PART-TARGET");break}case"PART":{let sr=u.partList;sr||(sr=u.partList=[]);const gr=L>0?sr[sr.length-1]:void 0,wr=L++,qn=new Rn(Qn,u),$n=new Ct(qn,rt,c,wr,gr);sr.push($n),rt.duration+=$n.duration;break}case"PRELOAD-HINT":{const sr=new Rn(Qn,u);u.preloadHint=sr;break}case"RENDITION-REPORT":{const sr=new Rn(Qn,u);u.renditionReports=u.renditionReports||[],u.renditionReports.push(sr);break}default:ee.warn(`line parsed but not handled: ${Ut}`);break}}}ht&&!ht.relurl?(h.pop(),te-=ht.duration,u.partList&&(u.fragmentHint=ht)):u.partList&&(Fi(rt,ht,m),rt.cc=J,u.fragmentHint=rt,_n&&qi(rt,_n,u)),u.targetduration||(u.playlistParsingError=new Error("#EXT-X-TARGETDURATION is required"));const An=h.length,tr=h[0],hr=h[An-1];if(te+=u.skippedSegments*u.targetduration,te>0&&An&&hr){u.averagetargetduration=te/An;const vr=hr.sn;u.endSN=vr!=="initSegment"?vr:0,u.live||(hr.endList=!0),Yt>0&&(yi(h,Yt),tr&&m.unshift(tr))}return u.fragmentHint&&(te+=u.fragmentHint.duration),u.totalduration=te,m.length&&u.dateRangeTagCount&&tr&&Ji(m,u),u.endCC=J,u}}function Ji(a,e){let t=a.length;if(!t)if(e.hasProgramDateTime){const l=e.fragments[e.fragments.length-1];a.push(l),t++}else return;const n=a[t-1],r=e.live?1/0:e.totalduration,i=Object.keys(e.dateRanges);for(let l=i.length;l--;){const c=e.dateRanges[i[l]],u=c.startDate.getTime();c.tagAnchor=n.ref;for(let h=t;h--;){var s;if(((s=a[h])==null?void 0:s.sn)<e.startSN)break;const m=Ti(e,u,a,h,r);if(m!==-1){c.tagAnchor=e.fragments[m].ref;break}}}}function Ti(a,e,t,n,r){const i=t[n];if(i){const l=i.programDateTime;if(e>=l||n===0){var s;const c=(((s=t[n+1])==null?void 0:s.start)||r)-i.start;if(e<=l+c*1e3){const u=t[n].sn-a.startSN;if(u<0)return-1;const h=a.fragments;if(h.length>t.length){const x=(t[n+1]||h[h.length-1]).sn-a.startSN;for(let C=x;C>u;C--){const L=h[C].programDateTime;if(e>=L&&e<L+h[C].duration*1e3)return C}}return u}}}return-1}function Ki(a,e,t){var n,r;const i=new Rn(a,t),s=(n=i.METHOD)!=null?n:"",l=i.URI,c=i.hexadecimalInteger("IV"),u=i.KEYFORMATVERSIONS,h=(r=i.KEYFORMAT)!=null?r:"identity";l&&i.IV&&!c&&ee.error(`Invalid IV: ${i.IV}`);const m=l?di.resolve(l,e):"",x=(u||"1").split("/").map(Number).filter(Number.isFinite);return new Ar(s,m,h,x,c,i.KEYID)}function Mi(a){const t=new Rn(a).decimalFloatingPoint("TIME-OFFSET");return f(t)?t:null}function Oi(a,e){let t=(a||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>Et(i,n));r.length&&(e[`${n}Codec`]=r.map(i=>i.split("/")[0]).join(","),t=t.filter(i=>r.indexOf(i)===-1))}),e.unknownCodecs=t}function zi(a,e,t){const n=e[t];n&&(a[t]=n)}function yi(a,e){let t=a[e];for(let n=e;n--;){const r=a[n];if(!r)return;r.programDateTime=t.programDateTime-r.duration*1e3,t=r}}function Fi(a,e,t){a.rawProgramDateTime?t.push(a):e!=null&&e.programDateTime&&(a.programDateTime=e.endProgramDateTime)}function Di(a,e,t,n){a.relurl=e.URI,e.BYTERANGE&&a.setByteRange(e.BYTERANGE),a.level=t,a.sn="initSegment",n&&(a.levelkeys=n),a.initSegment=null}function qi(a,e,t){a.levelkeys=e;const{encryptedFragments:n}=t;(!n.length||n[n.length-1].levelkeys!==e)&&Object.keys(e).some(r=>e[r].isCommonEncryption)&&n.push(a)}function ui(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${t[0]})`)}function as(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${t[0]})`)}function Bi(a,e){const t=e.startPTS;if(f(t)){let n=0,r;e.sn>a.sn?(n=t-a.start,r=a):(n=a.start-t,r=e),r.duration!==n&&r.setDuration(n)}else e.sn>a.sn?a.cc===e.cc&&a.minEndPTS?e.setStart(a.start+(a.minEndPTS-a.start)):e.setStart(a.start+a.duration):e.setStart(Math.max(a.start-e.duration,0))}function os(a,e,t,n,r,i,s){n-t<=0&&(s.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let c=t,u=n;const h=e.startPTS,m=e.endPTS;if(f(h)){const Ce=Math.abs(h-t);a&&Ce>a.totalduration?s.warn(`media timestamps and playlist times differ by ${Ce}s for level ${e.level} ${a.url}`):f(e.deltaPTS)?e.deltaPTS=Math.max(Ce,e.deltaPTS):e.deltaPTS=Ce,c=Math.max(t,h),t=Math.min(t,h),r=e.startDTS!==void 0?Math.min(r,e.startDTS):r,u=Math.min(n,m),n=Math.max(n,m),i=e.endDTS!==void 0?Math.max(i,e.endDTS):i}const x=t-e.start;e.start!==0&&e.setStart(t),e.setDuration(n-e.start),e.startPTS=t,e.maxStartPTS=c,e.startDTS=r,e.endPTS=n,e.minEndPTS=u,e.endDTS=i;const C=e.sn;if(!a||C<a.startSN||C>a.endSN)return 0;let L;const te=C-a.startSN,J=a.fragments;for(J[te]=e,L=te;L>0;L--)Bi(J[L],J[L-1]);for(L=te;L<J.length-1;L++)Bi(J[L],J[L+1]);return a.fragmentHint&&Bi(J[J.length-1],a.fragmentHint),a.PTSKnown=a.alignedSliding=!0,x}function ls(a,e,t){if(a===e)return;let n=null;const r=a.fragments;for(let h=r.length-1;h>=0;h--){const m=r[h].initSegment;if(m){n=m;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;let i;ai(a,e,(h,m,x,C)=>{if((!e.startCC||e.skippedSegments)&&m.cc!==h.cc){const L=h.cc-m.cc;for(let te=x;te<C.length;te++)C[te].cc+=L;e.endCC=C[C.length-1].cc}f(h.startPTS)&&f(h.endPTS)&&(m.setStart(m.startPTS=h.startPTS),m.startDTS=h.startDTS,m.maxStartPTS=h.maxStartPTS,m.endPTS=h.endPTS,m.endDTS=h.endDTS,m.minEndPTS=h.minEndPTS,m.setDuration(h.endPTS-h.startPTS),m.duration&&(i=m),e.PTSKnown=e.alignedSliding=!0),h.hasStreams&&(m.elementaryStreams=h.elementaryStreams),m.loader=h.loader,h.hasStats&&(m.stats=h.stats),h.initSegment&&(m.initSegment=h.initSegment,n=h.initSegment)});const s=e.fragments,l=e.fragmentHint?s.concat(e.fragmentHint):s;if(n&&l.forEach(h=>{var m;h&&(!h.initSegment||h.initSegment.relurl===((m=n)==null?void 0:m.relurl))&&(h.initSegment=n)}),e.skippedSegments){if(e.deltaUpdateFailed=s.some(h=>!h),e.deltaUpdateFailed){t.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let h=e.skippedSegments;h--;)s.shift();e.startSN=s[0].sn}else{e.canSkipDateRanges&&(e.dateRanges=us(a.dateRanges,e,t));const h=a.fragments.filter(m=>m.rawProgramDateTime);if(a.hasProgramDateTime&&!e.hasProgramDateTime)for(let m=1;m<l.length;m++)l[m].programDateTime===null&&Fi(l[m],l[m-1],h);Ji(h,e)}e.endCC=s[s.length-1].cc}if(!e.startCC){var c;const h=Gr(a,e.startSN-1);e.startCC=(c=h==null?void 0:h.cc)!=null?c:s[0].cc}ji(a.partList,e.partList,(h,m)=>{m.elementaryStreams=h.elementaryStreams,m.stats=h.stats}),i?os(e,i,i.startPTS,i.endPTS,i.startDTS,i.endDTS,t):Cr(a,e),s.length&&(e.totalduration=e.edge-s[0].start),e.driftStartTime=a.driftStartTime,e.driftStart=a.driftStart;const u=e.advancedDateTime;if(e.advanced&&u){const h=e.edge;e.driftStart||(e.driftStartTime=u,e.driftStart=h),e.driftEndTime=u,e.driftEnd=h}else e.driftEndTime=a.driftEndTime,e.driftEnd=a.driftEnd,e.advancedDateTime=a.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=a.requestScheduled)}function us(a,e,t){const{dateRanges:n,recentlyRemovedDateranges:r}=e,i=p({},a);r&&r.forEach(c=>{delete i[c]});const l=Object.keys(i).length;return l?(Object.keys(n).forEach(c=>{const u=i[c],h=new xr(n[c].attr,u);h.isValid?(i[c]=h,u||(h.tagOrder+=l)):t.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${At(n[c].attr)}"`)}),i):n}function ji(a,e,t){if(a&&e){let n=0;for(let r=0,i=a.length;r<=i;r++){const s=a[r],l=e[r+n];s&&l&&s.index===l.index&&s.fragment.sn===l.fragment.sn?t(s,l):n--}}}function ai(a,e,t){const n=e.skippedSegments,r=Math.max(a.startSN,e.startSN)-e.startSN,i=(a.fragmentHint?1:0)+(n?e.endSN:Math.min(a.endSN,e.endSN))-e.startSN,s=e.startSN-a.startSN,l=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments,c=a.fragmentHint?a.fragments.concat(a.fragmentHint):a.fragments;for(let u=r;u<=i;u++){const h=c[s+u];let m=l[u];if(n&&!m&&h&&(m=e.fragments[u]=h),h&&m){t(h,m,u,l);const x=h.relurl,C=m.relurl;if(x&&mi(x,C)){e.playlistParsingError=ei(`media sequence mismatch ${m.sn}:`,a,e,h,m);return}else if(h.cc!==m.cc){e.playlistParsingError=ei(`discontinuity sequence mismatch (${h.cc}!=${m.cc})`,a,e,h,m);return}}}}function ei(a,e,t,n,r){return new Error(`${a} ${r.url}
Playlist starting @${e.startSN}
${e.m3u8}
Playlist starting @${t.startSN}
${t.m3u8}`)}function Cr(a,e,t=!0){const n=e.startSN+e.skippedSegments-a.startSN,r=a.fragments,i=n>=0;let s=0;if(i&&n<r.length)s=r[n].start;else if(i&&e.startSN===a.endSN+1)s=a.fragmentEnd;else if(i&&t)s=a.fragmentStart+n*e.levelTargetDuration;else if(!e.skippedSegments&&e.fragmentStart===0)s=a.fragmentStart;else return;br(e,s)}function br(a,e){if(e){const t=a.fragments;for(let n=a.skippedSegments;n<t.length;n++)t[n].addStart(e);a.fragmentHint&&a.fragmentHint.addStart(e)}}function Qr(a,e=1/0){let t=1e3*a.targetduration;if(a.updated){const n=a.fragments;if(n.length&&t*4>e){const i=n[n.length-1].duration*1e3;i<t&&(t=i)}}else t/=2;return Math.round(t)}function Gr(a,e,t){if(!a)return null;let n=a.fragments[e-a.startSN];return n||(n=a.fragmentHint,n&&n.sn===e)?n:e<a.startSN&&t&&t.sn===e?t:null}function Yr(a,e,t){return a?Jr(a.partList,e,t):null}function Jr(a,e,t){if(a)for(let n=a.length;n--;){const r=a[n];if(r.index===t&&r.fragment.sn===e)return r}return null}function pi(a){a.forEach((e,t)=>{var n;(n=e.details)==null||n.fragments.forEach(r=>{r.level=t,r.initSegment&&(r.initSegment.level=t)})})}function mi(a,e){return a!==e&&e?_i(a)!==_i(e):!1}function _i(a){return a.replace(/\?[^?]*$/,"")}function Xr(a,e){for(let n=0,r=a.length;n<r;n++){var t;if(((t=a[n])==null?void 0:t.cc)===e)return a[n]}return null}function fi(a,e){return!!(a&&e.startCC<a.endCC&&e.endCC>a.startCC)}function wi(a,e){const t=a.start+e;a.startPTS=t,a.setStart(t),a.endPTS=t+a.duration}function Ei(a,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)wi(t[n],a);e.fragmentHint&&wi(e.fragmentHint,a),e.alignedSliding=!0}function gs(a,e){a&&(vs(e,a),e.alignedSliding||jr(e,a),!e.alignedSliding&&!e.skippedSegments&&Cr(a,e,!1))}function vs(a,e){if(!fi(e,a))return;const t=Math.min(e.endCC,a.endCC),n=Xr(e.fragments,t),r=Xr(a.fragments,t);if(!n||!r)return;ee.log(`Aligning playlist at start of dicontinuity sequence ${t}`);const i=n.start-r.start;Ei(i,a)}function jr(a,e){if(!a.hasProgramDateTime||!e.hasProgramDateTime)return;const t=a.fragments,n=e.fragments;if(!t.length||!n.length)return;let r,i;const s=Math.min(e.endCC,a.endCC);e.startCC<s&&a.startCC<s&&(r=Xr(n,s),i=Xr(t,s)),(!r||!i)&&(r=n[Math.floor(n.length/2)],i=Xr(t,r.cc)||t[Math.floor(t.length/2)]);const l=r.programDateTime,c=i.programDateTime;if(!l||!c)return;const u=(c-l)/1e3-(i.start-r.start);Ei(u,a)}const Mr={toString:function(a){let e="";const t=a.length;for(let n=0;n<t;n++)e+=`[${a.start(n).toFixed(3)}-${a.end(n).toFixed(3)}]`;return e}},hn={STOPPED:"STOPPED",IDLE:"IDLE",KEY_LOADING:"KEY_LOADING",FRAG_LOADING:"FRAG_LOADING",FRAG_LOADING_WAITING_RETRY:"FRAG_LOADING_WAITING_RETRY",WAITING_TRACK:"WAITING_TRACK",PARSING:"PARSING",PARSED:"PARSED",ENDED:"ENDED",ERROR:"ERROR",WAITING_INIT_PTS:"WAITING_INIT_PTS",WAITING_LEVEL:"WAITING_LEVEL"};class ii extends wn{constructor(e,t,n,r,i){super(r,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=hn.STOPPED,this.playlistType=void 0,this.media=null,this.mediaBuffer=null,this.config=void 0,this.bitrateTest=!1,this.lastCurrentTime=0,this.nextLoadPosition=0,this.startPosition=0,this.startTimeOffset=null,this.retryDate=0,this.levels=null,this.fragmentLoader=void 0,this.keyLoader=void 0,this.levelLastLoaded=null,this.startFragRequested=!1,this.decrypter=void 0,this.initPTS=[],this.buffering=!0,this.loadingParts=!1,this.loopSn=void 0,this.onMediaSeeking=()=>{const{config:s,fragCurrent:l,media:c,mediaBuffer:u,state:h}=this,m=c?c.currentTime:0,x=bn.bufferInfo(u||c,m,s.maxBufferHole),C=!x.len;if(this.log(`Media seeking to ${f(m)?m.toFixed(3):m}, state: ${h}, ${C?"out of":"in"} buffer`),this.state===hn.ENDED)this.resetLoadingState();else if(l){const L=s.maxFragLookUpTolerance,te=l.start-L,J=l.start+l.duration+L;if(C||J<x.start||te>x.end){const Ce=m>J;(m<te||Ce)&&(Ce&&l.loader&&(this.log(`Cancelling fragment load for seek (sn: ${l.sn})`),l.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(c){this.fragmentTracker.removeFragmentsInRange(m,1/0,this.playlistType,!0);const L=this.lastCurrentTime;if(m>L&&(this.lastCurrentTime=m),!this.loadingParts){const te=Math.max(x.end,m),J=this.shouldLoadParts(this.getLevelDetails(),te);J&&(this.log(`LL-Part loading ON after seeking to ${m.toFixed(2)} with buffer @${te.toFixed(2)}`),this.loadingParts=J)}}this.hls.hasEnoughToStart||(this.log(`Setting ${C?"startPosition":"nextLoadPosition"} to ${m} for seek without enough to start`),this.nextLoadPosition=m,C&&(this.startPosition=m)),this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=i,this.hls=e,this.fragmentLoader=new mn(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new gn(e.config)}registerListeners(){const{hls:e}=this;e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(d.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===hn.STOPPED)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const e=this.fragCurrent;e!=null&&e.loader&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=hn.STOPPED}get startPositionValue(){const{nextLoadPosition:e,startPosition:t}=this;return t===-1&&e?e:t}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(e,t){if(t.live||!this.media)return!1;const n=e.end||0,r=this.config.timelineOffset||0;if(n<=r)return!1;const i=e.buffered;this.config.maxBufferHole&&i&&i.length>1&&(e=bn.bufferedInfo(i,e.start,0));const s=e.nextStart;if(s&&s>r&&s<t.edge||this.media.currentTime<e.start)return!1;const c=t.partList;if(c!=null&&c.length){const h=c[c.length-1];return bn.isBuffered(this.media,h.start+h.duration/2)}const u=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(u)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null)return this.levelLastLoaded.details}get timelineOffset(){const e=this.config.timelineOffset;if(e){var t;return((t=this.getLevelDetails())==null?void 0:t.appliedTimelineOffset)||e}return 0}onMediaAttached(e,t){const n=this.media=this.mediaBuffer=t.media;n.removeEventListener("seeking",this.onMediaSeeking),n.removeEventListener("ended",this.onMediaEnded),n.addEventListener("seeking",this.onMediaSeeking),n.addEventListener("ended",this.onMediaEnded);const r=this.config;this.levels&&r.autoStartLoad&&this.state===hn.STOPPED&&this.startLoad(r.startPosition)}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(r!==null){if(r.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),r.removeEventListener("seeking",this.onMediaSeeking),r.removeEventListener("ended",this.onMediaEnded),this.keyLoader&&!n&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,n){this.resetLoadingState(),this.resetTransmuxer();return}this.loadingParts=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()}}onManifestLoading(){this.initPTS=[],this.levels=this.levelLastLoaded=this.fragCurrent=null,this.lastCurrentTime=this.startPosition=0,this.startFragRequested=!1}onError(e,t){}onManifestLoaded(e,t){this.startTimeOffset=t.startTimeOffset}onHandlerDestroying(){this.stopLoad(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),super.onHandlerDestroying(),this.hls=this.onMediaSeeking=this.onMediaEnded=null}onHandlerDestroyed(){this.state=hn.STOPPED,this.fragmentLoader&&this.fragmentLoader.destroy(),this.keyLoader&&this.keyLoader.destroy(),this.decrypter&&this.decrypter.destroy(),this.hls=this.log=this.warn=this.decrypter=this.keyLoader=this.fragmentLoader=this.fragmentTracker=null,super.onHandlerDestroyed()}loadFragment(e,t,n){this.startFragRequested=!0,this._loadFragForPlayback(e,t,n)}_loadFragForPlayback(e,t,n){const r=i=>{const s=i.frag;if(this.fragContextChanged(s)){this.warn(`${s.type} sn: ${s.sn}${i.part?" part: "+i.part.index:""} of ${this.fragInfo(s,!1,i.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(s);return}s.stats.chunkCount++,this._handleFragmentLoadProgress(i)};this._doFragLoad(e,t,n,r).then(i=>{if(!i)return;const s=this.state,l=i.frag;if(this.fragContextChanged(l)){(s===hn.FRAG_LOADING||!this.fragCurrent&&s===hn.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=hn.IDLE);return}"payload"in i&&(this.log(`Loaded ${l.type} sn: ${l.sn} of ${this.playlistLabel()} ${l.level}`),this.hls.trigger(d.FRAG_LOADED,i)),this._handleFragmentLoadComplete(i)}).catch(i=>{this.state===hn.STOPPED||this.state===hn.ERROR||(this.warn(`Frag error: ${(i==null?void 0:i.message)||i}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:n}=this;if(n.getState(e)===Te.APPENDING){const i=e.type,s=this.getFwdBufferInfo(this.mediaBuffer,i),l=Math.max(e.duration,s?s.len:this.config.maxBufferLength),c=this.backtrackFragment;((c?e.sn-c.sn:0)===1||this.reduceMaxBufferLength(l,e.duration))&&n.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?n.removeAllFragments():n.hasParts(e.type)&&(n.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),n.getState(e)===Te.PARTIAL&&n.removeFragment(e))}checkLiveUpdate(e){if(e.updated&&!e.live){const t=e.fragments[e.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type})}e.fragments[0]||(e.deltaUpdateFailed=!0)}waitForLive(e){const t=e.details;return(t==null?void 0:t.live)&&t.type!=="EVENT"&&(this.levelLastLoaded!==e||t.expired)}flushMainBuffer(e,t,n=null){if(!(e-t))return;const r={startOffset:e,endOffset:t,type:n};this.hls.trigger(d.BUFFER_FLUSHING,r)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(n=>{const r=n==null?void 0:n.frag;if(!r||this.fragContextChanged(r)||!this.levels)throw new Error("init load aborted");return n}).then(n=>{const{hls:r}=this,{frag:i,payload:s}=n,l=i.decryptdata;if(s&&s.byteLength>0&&l!=null&&l.key&&l.iv&&zr(l.method)){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,Vr(l.method)).catch(u=>{throw r.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.FRAG_DECRYPT_ERROR,fatal:!1,error:u,reason:u.message,frag:i}),u}).then(u=>{const h=self.performance.now();return r.trigger(d.FRAG_DECRYPTED,{frag:i,payload:u,stats:{tstart:c,tdecrypt:h}}),n.payload=u,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===hn.STOPPED||this.state===hn.ERROR||(this.warn(n),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const n=e.frag.stats;this.state!==hn.STOPPED&&(this.state=hn.IDLE),e.frag.data=new Uint8Array(e.payload),n.parsing.start=n.buffering.start=self.performance.now(),n.parsing.end=n.buffering.end=self.performance.now(),this.tick()}unhandledEncryptionError(e,t){var n,r;const i=e.tracks;if(i&&!t.encrypted&&((n=i.audio)!=null&&n.encrypted||(r=i.video)!=null&&r.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){const s=this.media,l=new Error(`Encrypted track with no key in ${this.fragInfo(t)} (media ${s?"attached mediaKeys: "+s.mediaKeys:"detached"})`);return this.warn(l.message),!s||s.mediaKeys?!1:(this.hls.trigger(d.ERROR,{type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_KEYS,fatal:!1,error:l,frag:t}),this.resetTransmuxer(),!0)}return!1}fragContextChanged(e){const{fragCurrent:t}=this;return!e||!t||e.sn!==t.sn||e.level!==t.level}fragBufferedComplete(e,t){const n=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)} > buffer:${n?Mr.toString(bn.getBuffered(n)):"(detached)"})`),He(e)){var r;if(e.type!==ne.SUBTITLE){const s=e.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=hn.IDLE;return}}const i=(r=this.levels)==null?void 0:r[e.level];i!=null&&i.fragmentError&&(this.log(`Resetting level fragment error count of ${i.fragmentError} on frag buffered`),i.fragmentError=0)}this.state=hn.IDLE}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:n,part:r,partsLoaded:i}=e,s=!i||i.length===0||i.some(c=>!c),l=new Gn(n.level,n.sn,n.stats.chunkCount+1,0,r?r.index:-1,!s);t.flush(l)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,n=null,r){var i;this.fragCurrent=e;const s=t.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let l=null;e.encrypted&&!((i=e.decryptdata)!=null&&i.key)?(this.log(`Loading key for ${e.sn} of [${s.startSN}-${s.endSN}], ${this.playlistLabel()} ${e.level}`),this.state=hn.KEY_LOADING,this.fragCurrent=e,l=this.keyLoader.load(e).then(x=>{if(!this.fragContextChanged(x.frag))return this.hls.trigger(d.KEY_LOADED,x),this.state===hn.KEY_LOADING&&(this.state=hn.IDLE),x}),this.hls.trigger(d.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(l=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):e.encrypted||(l=this.keyLoader.loadClear(e,s.encryptedFragments,this.startFragRequested),l&&this.log("[eme] blocking frag load until media-keys acquired"));const c=this.fragPrevious;if(He(e)&&(!c||e.sn!==c.sn)){const x=this.shouldLoadParts(t.details,e.end);x!==this.loadingParts&&(this.log(`LL-Part loading ${x?"ON":"OFF"} loading sn ${c==null?void 0:c.sn}->${e.sn}`),this.loadingParts=x)}if(n=Math.max(e.start,n||0),this.loadingParts&&He(e)){const x=s.partList;if(x&&r){n>s.fragmentEnd&&s.fragmentHint&&(e=s.fragmentHint);const C=this.getNextPart(x,e,n);if(C>-1){const L=x[C];e=this.fragCurrent=L.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${L.index} (${C}/${x.length-1}) of ${this.fragInfo(e,!1,L)}) cc: ${e.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=L.start+L.duration,this.state=hn.FRAG_LOADING;let te;return l?te=l.then(J=>!J||this.fragContextChanged(J.frag)?null:this.doFragPartsLoad(e,L,t,r)).catch(J=>this.handleFragLoadError(J)):te=this.doFragPartsLoad(e,L,t,r).catch(J=>this.handleFragLoadError(J)),this.hls.trigger(d.FRAG_LOADING,{frag:e,part:L,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):te}else if(!e.url||this.loadedEndOfParts(x,n))return Promise.resolve(null)}}if(He(e)&&this.loadingParts){var u;this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)} Check buffer at sn: ${e.sn} loaded parts: ${(u=s.partList)==null?void 0:u.filter(x=>x.loaded).map(x=>`[${x.start}-${x.end}]`)}`),this.loadingParts=!1}else if(!e.url)return Promise.resolve(null);this.log(`Loading ${e.type} sn: ${e.sn} of ${this.fragInfo(e,!1)}) cc: ${e.cc} ${"["+s.startSN+"-"+s.endSN+"]"}, target: ${parseFloat(n.toFixed(3))}`),f(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=hn.FRAG_LOADING;const h=this.config.progressive;let m;return h&&l?m=l.then(x=>!x||this.fragContextChanged(x.frag)?null:this.fragmentLoader.load(e,r)).catch(x=>this.handleFragLoadError(x)):m=Promise.all([this.fragmentLoader.load(e,h?r:void 0),l]).then(([x])=>(!h&&r&&r(x),x)).catch(x=>this.handleFragLoadError(x)),this.hls.trigger(d.FRAG_LOADING,{frag:e,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):m}doFragPartsLoad(e,t,n,r){return new Promise((i,s)=>{var l;const c=[],u=(l=n.details)==null?void 0:l.partList,h=m=>{this.fragmentLoader.loadPart(e,m,r).then(x=>{c[m.index]=x;const C=x.part;this.hls.trigger(d.FRAG_LOADED,x);const L=Yr(n.details,e.sn,m.index+1)||Jr(u,e.sn,m.index+1);if(L)h(L);else return i({frag:e,part:C,partsLoaded:c})}).catch(s)};h(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;t&&t.details===B.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(d.ERROR,t)}else this.hls.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==hn.PARSING){!this.fragCurrent&&this.state!==hn.STOPPED&&this.state!==hn.ERROR&&(this.state=hn.IDLE);return}const{frag:n,part:r,level:i}=t,s=self.performance.now();n.stats.parsing.end=s,r&&(r.stats.parsing.end=s);const l=this.getLevelDetails(),u=l&&n.sn>l.endSN||this.shouldLoadParts(l,n.end);u!==this.loadingParts&&(this.log(`LL-Part loading ${u?"ON":"OFF"} after parsing segment ending @${n.end.toFixed(2)}`),this.loadingParts=u),this.updateLevelTiming(n,r,i,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e.partList){var n;const i=e.partList[0];if(i.fragment.type===ne.SUBTITLE)return!1;const s=i.end+(((n=e.fragmentHint)==null?void 0:n.duration)||0);if(t>=s){var r;if((this.hls.hasEnoughToStart?((r=this.media)==null?void 0:r.currentTime)||this.lastCurrentTime:this.getLoadPosition())>i.start-i.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:n}=this,{level:r,sn:i,part:s}=e;if(!(t!=null&&t[r]))return this.warn(`Levels object was unset while buffering fragment ${i} of ${this.playlistLabel()} ${r}. The current chunk will not be buffered.`),null;const l=t[r],c=l.details,u=s>-1?Yr(c,i,s):null,h=u?u.fragment:Gr(c,i,n);return h?(n&&n!==h&&(h.stats=n.stats),{frag:h,part:u,level:l}):null}bufferFragmentData(e,t,n,r,i){if(this.state!==hn.PARSING)return;const{data1:s,data2:l}=e;let c=s;if(l&&(c=Ye(s,l)),!c.length)return;const u=this.initPTS[t.cc],h=u?-u.baseTime/u.timescale:void 0,m={type:e.type,frag:t,part:n,chunkMeta:r,offset:h,parent:t.type,data:c};if(this.hls.trigger(d.BUFFER_APPENDING,m),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!bn.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=bn.bufferInfo(t,n,0),i=e.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,i*.25),l=Math.max(Math.min(e.start-s,r.end-s),n+s);e.start-l>s&&this.flushMainBuffer(l,e.start)}getFwdBufferInfo(e,t){var n;const r=this.getLoadPosition();if(!f(r))return null;const s=this.lastCurrentTime>r||(n=this.media)!=null&&n.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,r,t,s)}getFwdBufferInfoAtPos(e,t,n,r){const i=bn.bufferInfo(e,t,r);if(i.len===0&&i.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(t,n);if(s&&(i.nextStart<=s.end||s.gap)){const l=Math.max(Math.min(i.nextStart,s.end)-t,r);return bn.bufferInfo(e,t,l)}}return i}getMaxBufferLength(e){const{config:t}=this;let n;return e?n=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):n=t.maxBufferLength,Math.min(n,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const n=this.config,r=Math.max(Math.min(e-t,n.maxBufferLength),t),i=Math.max(e-t*3,n.maxMaxBufferLength/2,r);return i>=r?(n.maxMaxBufferLength=i,this.warn(`Reduce max buffer length to ${i}s`),!0):!1}getAppendedFrag(e,t=ne.MAIN){const n=this.fragmentTracker?this.fragmentTracker.getAppendedFrag(e,t):null;return n&&"fragment"in n?n.fragment:n}getNextFragment(e,t){const n=t.fragments,r=n.length;if(!r)return null;const{config:i}=this,s=n[0].start,l=i.lowLatencyMode&&!!t.partList;let c=null;if(t.live){const m=i.initialLiveManifestSize;if(r<m)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${m})`),null;if(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<s){var u;l&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),c=this.getInitialLiveFragment(t);const x=this.hls.startPosition,C=this.hls.liveSyncPosition,L=c?(x!==-1&&x>=s?x:C)||c.start:e;this.log(`Setting startPosition to ${L} to match start frag at live edge. mainStart: ${x} liveSyncPosition: ${C} frag.start: ${(u=c)==null?void 0:u.start}`),this.startPosition=this.nextLoadPosition=L}}else e<=s&&(c=n[0]);if(!c){const m=this.loadingParts?t.partEnd:t.fragmentEnd;c=this.getFragmentAtPosition(e,m,t)}let h=this.filterReplacedPrimary(c,t);if(!h&&c){const m=c.sn-t.startSN;h=this.filterReplacedPrimary(n[m+1]||null,t)}return this.mapToInitFragWhenRequired(h)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===Te.OK||n===Te.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,n,r,i){let s=null;if(e.gap&&(s=this.getNextFragment(this.nextLoadPosition,t),s&&!s.gap&&n.nextStart)){const l=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,n.nextStart,r,0);if(l!==null&&n.len+l.len>=i){const c=s.sn;return this.loopSn!==c&&(this.log(`buffer full after gaps in "${r}" playlist starting at sn: ${c}`),this.loopSn=c),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(ri(this.config)){var e;if((e=this.hls.interstitialsManager)==null||(e=e.playingItem)==null?void 0:e.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(ri(this.config)&&e.type!==ne.SUBTITLE){const n=this.hls.interstitialsManager,r=n==null?void 0:n.bufferingItem;if(r){const s=r.event;if(s){if(s.appendInPlace||Math.abs(e.start-r.start)>1||r.start===0)return null}else if(e.end<=r.start&&(t==null?void 0:t.live)===!1||e.start>r.end&&r.nextEvent&&(r.nextEvent.appendInPlace||e.start-r.end>1))return null}const i=n==null?void 0:n.playerQueue;if(i)for(let s=i.length;s--;){const l=i[s].interstitial;if(l.appendInPlace&&e.start>=l.startTime&&e.end<=l.resumeTime)return null}}return e}mapToInitFragWhenRequired(e){return e!=null&&e.initSegment&&!e.initSegment.data&&!this.bitrateTest?e.initSegment:e}getNextPart(e,t,n){let r=-1,i=!1,s=!0;for(let l=0,c=e.length;l<c;l++){const u=e[l];if(s=s&&!u.independent,r>-1&&n<u.start)break;const h=u.loaded;h?r=-1:(i||(u.independent||s)&&u.fragment===t)&&(u.fragment!==t&&this.warn(`Need buffer at ${n} but next unloaded part starts at ${u.start}`),r=l),i=h}return r}loadedEndOfParts(e,t){let n;for(let r=e.length;r--;){if(n=e[r],!n.loaded)return!1;if(t>n.start)return!0}return!1}getInitialLiveFragment(e){const t=e.fragments,n=this.fragPrevious;let r=null;if(n){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${n.programDateTime}`),r=Dn(t,n.endProgramDateTime,this.config.maxFragLookUpTolerance)),!r){const i=n.sn+1;if(i>=e.startSN&&i<=e.endSN){const s=t[i-e.startSN];n.cc===s.cc&&(r=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${r.sn}`))}r||(r=yn(e,n.cc,n.end),r&&this.log(`Live playlist, switching playlist, load frag with same CC: ${r.sn}`))}}else{const i=this.hls.liveSyncPosition;i!==null&&(r=this.getFragmentAtPosition(i,this.bitrateTest?e.fragmentEnd:e.edge,e))}return r}getFragmentAtPosition(e,t,n){const{config:r}=this;let{fragPrevious:i}=this,{fragments:s,endSN:l}=n;const{fragmentHint:c}=n,{maxFragLookUpTolerance:u}=r,h=n.partList,m=!!(this.loadingParts&&h!=null&&h.length&&c);m&&!this.bitrateTest&&h[h.length-1].fragment.sn===c.sn&&(s=s.concat(c),l=c.sn);let x;if(e<t){var C;const te=e<this.lastCurrentTime||e>t-u||(C=this.media)!=null&&C.paused||!this.startFragRequested?0:u;x=Zn(i,s,e,te)}else x=s[s.length-1];if(x){const L=x.sn-n.startSN,te=this.fragmentTracker.getState(x);if((te===Te.OK||te===Te.PARTIAL&&x.gap)&&(i=x),i&&x.sn===i.sn&&(!m||h[0].fragment.sn>x.sn||!n.live)&&x.level===i.level){const Ce=s[L+1];x.sn<l&&this.fragmentTracker.getState(Ce)!==Te.OK?x=Ce:x=null}}return x}alignPlaylists(e,t,n){const r=e.fragments.length;if(!r)return this.warn("No fragments in live playlist"),0;const i=e.fragmentStart,s=!t,l=e.alignedSliding&&f(i);if(s||!l&&!i){gs(n,e);const c=e.fragmentStart;return this.log(`Live playlist sliding: ${c.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${r}`),c}return i}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let n=this.startPosition;n<t&&(n=-1);const r=this.timelineOffset;if(n===-1){const i=this.startTimeOffset!==null,s=i?this.startTimeOffset:e.startTimeOffset;s!==null&&f(s)?(n=t+s,s<0&&(n+=e.edge),n=Math.min(Math.max(t,n),t+e.totalduration),this.log(`Setting startPosition to ${n} for start time offset ${s} found in ${i?"multivariant":"media"} playlist`),this.startPosition=n):e.live?(n=this.hls.liveSyncPosition||t,this.log(`Setting startPosition to -1 to start at live edge ${n}`),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=n=0),this.lastCurrentTime=n+r}this.nextLoadPosition=n+r}getLoadPosition(){var e;const{media:t}=this;let n=0;return(e=this.hls)!=null&&e.hasEnoughToStart&&t?n=t.currentTime:this.nextLoadPosition>=0&&(n=this.nextLoadPosition),n}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&He(e)&&e.stats.aborted&&(this.log(`Fragment ${e.sn}${t?" part "+t.index:""} of ${this.playlistLabel()} ${e.level} was aborted`),this.resetFragmentLoading(e))}resetFragmentLoading(e){(!this.fragCurrent||!this.fragContextChanged(e)&&this.state!==hn.FRAG_LOADING_WAITING_RETRY)&&(this.state=hn.IDLE)}onFragmentOrKeyLoadError(e,t){var n;if(t.chunkMeta&&!t.frag){const J=this.getCurrentContext(t.chunkMeta);J&&(t.frag=J.frag)}const r=t.frag;if(!r||r.type!==e||!this.levels)return;if(this.fragContextChanged(r)){var i;this.warn(`Frag load error must match current frag to retry ${r.url} > ${(i=this.fragCurrent)==null?void 0:i.url}`);return}const s=t.details===B.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(r,!0);const l=t.errorAction,{action:c,flags:u,retryCount:h=0,retryConfig:m}=l||{},x=!!l&&!!m,C=x&&c===Un.RetryRequest,L=x&&!l.resolved&&u===ar.MoveAllAlternatesMatchingHost,te=((n=t.response)==null?void 0:n.code)||0;if(!C&&L&&He(r)&&!r.endList&&te!==0)this.resetFragmentErrors(e),this.treatAsGap(r),l.resolved=!0;else if((C||L)&&h<m.maxNumRetry){this.resetStartWhenNotLoaded(this.levelLastLoaded);const J=En(m,h);this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${t.details}, retrying loading ${h+1}/${m.maxNumRetry} in ${J}ms`),l.resolved=!0,this.retryDate=self.performance.now()+J,this.state=hn.FRAG_LOADING_WAITING_RETRY}else if(m&&l)if(this.resetFragmentErrors(e),h<m.maxNumRetry)!s&&c!==Un.RemoveAlternatePermanently&&(l.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${h})`);return}else c===Un.SendAlternateToPenaltyBox?this.state=hn.WAITING_LEVEL:this.state=hn.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===hn.PARSING||this.state===hn.PARSED){const t=e.frag,n=e.parent,r=this.getFwdBufferInfo(this.mediaBuffer,n),i=r&&r.len>.5;i&&this.reduceMaxBufferLength(r.len,(t==null?void 0:t.duration)||10);const s=!i;return s&&this.warn(`Buffer full error while media.currentTime (${this.getLoadPosition()}) is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(e){e===ne.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==hn.STOPPED&&(this.state=hn.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=bn.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===hn.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==hn.STOPPED&&(this.state=hn.IDLE)}resetStartWhenNotLoaded(e){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const t=e?e.details:null;t!=null&&t.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(t,t.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(e){this.warn(`The loading context changed while buffering fragment ${e.sn} of ${this.playlistLabel()} ${e.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState()}removeUnbufferedFrags(e=0){this.fragmentTracker.removeFragmentsInRange(e,1/0,this.playlistType,!1,!0)}updateLevelTiming(e,t,n,r){const i=n.details;if(!i){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((c,u)=>{const h=e.elementaryStreams[u];if(h){const m=h.endPTS-h.startPTS;if(m<=0)return this.warn(`Could not parse fragment ${e.sn} ${u} duration reliably (${m})`),c||!1;const x=r?0:os(i,e,h.startPTS,h.endPTS,h.startDTS,h.endDTS,this);return this.hls.trigger(d.LEVEL_PTS_UPDATED,{details:i,level:n,drift:x,type:u,frag:e,start:h.startPTS,end:h.endPTS}),!0}return c},!1)){var l;if(n.fragmentError===0&&this.treatAsGap(e,n),((l=this.transmuxer)==null?void 0:l.error)===null){const c=new Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(c.message),this.hls.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!1,error:c,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${n.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=hn.PARSED,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(d.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===ne.MAIN?"level":"track"}fragInfo(e,t=!0,n){var r,i;return`${this.playlistLabel()} ${e.level} (${n?"part":"frag"}:[${((r=t&&!n?e.startPTS:(n||e).start)!=null?r:NaN).toFixed(3)}-${((i=t&&!n?e.endPTS:(n||e).end)!=null?i:NaN).toFixed(3)}]${n&&e.type==="main"?"INDEPENDENT="+(n.independent?"YES":"NO"):""}`}treatAsGap(e,t){t&&t.fragmentError++,e.gap=!0,this.fragmentTracker.removeFragment(e),this.fragmentTracker.fragBuffered(e,!0)}resetTransmuxer(){var e;(e=this.transmuxer)==null||e.reset()}recoverWorkerError(e){e.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(this.levelLastLoaded),this.resetLoadingState())}set state(e){const t=this._state;t!==e&&(this._state=e,this.log(`${t}->${e}`))}get state(){return this._state}}function ri(a){return!!a.interstitialsController&&a.enableInterstitialPlayback!==!1}class bi{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let n;if(e.length)e.length===1?n=e[0]:n=ys(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function ys(a,e){const t=new Uint8Array(e);let n=0;for(let r=0;r<a.length;r++){const i=a[r];t.set(i,n),n+=i.length}return t}var cs={exports:{}},_s;function Es(){return _s||(_s=1,function(a){var e=Object.prototype.hasOwnProperty,t="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(t=!1));function r(c,u,h){this.fn=c,this.context=u,this.once=h||!1}function i(c,u,h,m,x){if(typeof h!="function")throw new TypeError("The listener must be a function");var C=new r(h,m||c,x),L=t?t+u:u;return c._events[L]?c._events[L].fn?c._events[L]=[c._events[L],C]:c._events[L].push(C):(c._events[L]=C,c._eventsCount++),c}function s(c,u){--c._eventsCount===0?c._events=new n:delete c._events[u]}function l(){this._events=new n,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],h,m;if(this._eventsCount===0)return u;for(m in h=this._events)e.call(h,m)&&u.push(t?m.slice(1):m);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(h)):u},l.prototype.listeners=function(u){var h=t?t+u:u,m=this._events[h];if(!m)return[];if(m.fn)return[m.fn];for(var x=0,C=m.length,L=new Array(C);x<C;x++)L[x]=m[x].fn;return L},l.prototype.listenerCount=function(u){var h=t?t+u:u,m=this._events[h];return m?m.fn?1:m.length:0},l.prototype.emit=function(u,h,m,x,C,L){var te=t?t+u:u;if(!this._events[te])return!1;var J=this._events[te],Ce=arguments.length,ht,rt;if(J.fn){switch(J.once&&this.removeListener(u,J.fn,void 0,!0),Ce){case 1:return J.fn.call(J.context),!0;case 2:return J.fn.call(J.context,h),!0;case 3:return J.fn.call(J.context,h,m),!0;case 4:return J.fn.call(J.context,h,m,x),!0;case 5:return J.fn.call(J.context,h,m,x,C),!0;case 6:return J.fn.call(J.context,h,m,x,C,L),!0}for(rt=1,ht=new Array(Ce-1);rt<Ce;rt++)ht[rt-1]=arguments[rt];J.fn.apply(J.context,ht)}else{var Ut=J.length,$t;for(rt=0;rt<Ut;rt++)switch(J[rt].once&&this.removeListener(u,J[rt].fn,void 0,!0),Ce){case 1:J[rt].fn.call(J[rt].context);break;case 2:J[rt].fn.call(J[rt].context,h);break;case 3:J[rt].fn.call(J[rt].context,h,m);break;case 4:J[rt].fn.call(J[rt].context,h,m,x);break;default:if(!ht)for($t=1,ht=new Array(Ce-1);$t<Ce;$t++)ht[$t-1]=arguments[$t];J[rt].fn.apply(J[rt].context,ht)}}return!0},l.prototype.on=function(u,h,m){return i(this,u,h,m,!1)},l.prototype.once=function(u,h,m){return i(this,u,h,m,!0)},l.prototype.removeListener=function(u,h,m,x){var C=t?t+u:u;if(!this._events[C])return this;if(!h)return s(this,C),this;var L=this._events[C];if(L.fn)L.fn===h&&(!x||L.once)&&(!m||L.context===m)&&s(this,C);else{for(var te=0,J=[],Ce=L.length;te<Ce;te++)(L[te].fn!==h||x&&!L[te].once||m&&L[te].context!==m)&&J.push(L[te]);J.length?this._events[C]=J.length===1?J[0]:J:s(this,C)}return this},l.prototype.removeAllListeners=function(u){var h;return u?(h=t?t+u:u,this._events[h]&&s(this,h)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=t,l.EventEmitter=l,a.exports=l}(cs)),cs.exports}var $i=Es(),Vi=P($i);const Ri="1.6.10",es={};function ba(){return typeof __HLS_WORKER_BUNDLE__=="function"}function $s(){const a=es[Ri];if(a)return a.clientCount++,a;const e=new self.Blob([`var exports={};var module={exports:exports};function define(f){f()};define.amd=true;(${__HLS_WORKER_BUNDLE__.toString()})(true);`],{type:"text/javascript"}),t=self.URL.createObjectURL(e),r={worker:new self.Worker(t),objectURL:t,clientCount:1};return es[Ri]=r,r}function ea(a){const e=es[a];if(e)return e.clientCount++,e;const t=new self.URL(a,self.location.href).href,r={worker:new self.Worker(t),scriptURL:t,clientCount:1};return es[a]=r,r}function xa(a){const e=es[a||Ri];if(e&&e.clientCount--===1){const{worker:n,objectURL:r}=e;delete es[a||Ri],r&&self.URL.revokeObjectURL(r),n.terminate()}}function ta(a,e){return e+10<=a.length&&a[e]===51&&a[e+1]===68&&a[e+2]===73&&a[e+3]<255&&a[e+4]<255&&a[e+6]<128&&a[e+7]<128&&a[e+8]<128&&a[e+9]<128}function Us(a,e){return e+10<=a.length&&a[e]===73&&a[e+1]===68&&a[e+2]===51&&a[e+3]<255&&a[e+4]<255&&a[e+6]<128&&a[e+7]<128&&a[e+8]<128&&a[e+9]<128}function bs(a,e){let t=0;return t=(a[e]&127)<<21,t|=(a[e+1]&127)<<14,t|=(a[e+2]&127)<<7,t|=a[e+3]&127,t}function Wi(a,e){const t=e;let n=0;for(;Us(a,e);){n+=10;const r=bs(a,e+6);n+=r,ta(a,e+10)&&(n+=10),e+=n}if(n>0)return a.subarray(t,t+n)}function Zs(a,e,t,n){const r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=e[t+2],s=i>>2&15;if(s>12){const C=new Error(`invalid ADTS sampling index:${s}`);a.emit(d.ERROR,d.ERROR,{type:ae.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!0,error:C,reason:C.message});return}const l=(i>>6&3)+1,c=e[t+3]>>6&3|(i&1)<<2,u="mp4a.40."+l,h=r[s];let m=s;(l===5||l===29)&&(m-=3);const x=[l<<3|(m&14)>>1,(m&1)<<7|c<<3];return ee.log(`manifest codec:${n}, parsed codec:${u}, channels:${c}, rate:${h} (ADTS object type:${l} sampling index:${s})`),{config:x,samplerate:h,channelCount:c,codec:u,parsedCodec:u,manifestCodec:n}}function Rs(a,e){return a[e]===255&&(a[e+1]&246)===240}function Ks(a,e){return a[e+1]&1?7:9}function Is(a,e){return(a[e+3]&3)<<11|a[e+4]<<3|(a[e+5]&224)>>>5}function na(a,e){return e+5<a.length}function xs(a,e){return e+1<a.length&&Rs(a,e)}function Sa(a,e){return na(a,e)&&Rs(a,e)&&Is(a,e)<=a.length-e}function ra(a,e){if(xs(a,e)){const t=Ks(a,e);if(e+t>=a.length)return!1;const n=Is(a,e);if(n<=t)return!1;const r=e+n;return r===a.length||xs(a,r)}return!1}function Ls(a,e,t,n,r){if(!a.samplerate){const i=Zs(e,t,n,r);if(!i)return;p(a,i)}}function zs(a){return 1024*9e4/a}function js(a,e){const t=Ks(a,e);if(e+t<=a.length){const n=Is(a,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function Vs(a,e,t,n,r){const i=zs(a.samplerate),s=n+r*i,l=js(e,t);let c;if(l){const{frameLength:m,headerLength:x}=l,C=x+m,L=Math.max(0,t+C-e.length);L?(c=new Uint8Array(C-x),c.set(e.subarray(t+x,e.length),0)):c=e.subarray(t+x,t+C);const te={unit:c,pts:s};return L||a.samples.push(te),{sample:te,length:C,missing:L}}const u=e.length-t;return c=new Uint8Array(u),c.set(e.subarray(t,e.length),0),{sample:{unit:c,pts:s},length:u,missing:-1}}function wa(a,e){return Us(a,e)&&bs(a,e+6)+10<=a.length-e}function Rr(a){return a instanceof ArrayBuffer?a:a.byteOffset==0&&a.byteLength==a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer}function Ir(a,e=0,t=1/0){return oi(a,e,t,Uint8Array)}function oi(a,e,t,n){const r=xi(a);let i=1;"BYTES_PER_ELEMENT"in n&&(i=n.BYTES_PER_ELEMENT);const s=li(a)?a.byteOffset:0,l=(s+a.byteLength)/i,c=(s+e)/i,u=Math.floor(Math.max(0,Math.min(c,l))),h=Math.floor(Math.min(u+Math.max(t,0),l));return new n(r,u,h-u)}function xi(a){return a instanceof ArrayBuffer?a:a.buffer}function li(a){return a&&a.buffer instanceof ArrayBuffer&&a.byteLength!==void 0&&a.byteOffset!==void 0}function ds(a){const e={key:a.type,description:"",data:"",mimeType:null,pictureType:null},t=3;if(a.size<2)return;if(a.data[0]!==t){console.log("Ignore frame with unrecognized character encoding");return}const n=a.data.subarray(1).indexOf(0);if(n===-1)return;const r=at(Ir(a.data,1,n)),i=a.data[2+n],s=a.data.subarray(3+n).indexOf(0);if(s===-1)return;const l=at(Ir(a.data,3+n,s));let c;return r==="-->"?c=at(Ir(a.data,4+n+s)):c=Rr(a.data.subarray(4+n+s)),e.mimeType=r,e.pictureType=i,e.description=l,e.data=c,e}function ts(a){if(a.size<2)return;const e=at(a.data,!0),t=new Uint8Array(a.data.subarray(e.length+1));return{key:a.type,info:e,data:t.buffer}}function ns(a){if(a.size<2)return;if(a.type==="TXXX"){let t=1;const n=at(a.data.subarray(t),!0);t+=n.length+1;const r=at(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=at(a.data.subarray(1));return{key:a.type,info:"",data:e}}function Ss(a){if(a.type==="WXXX"){if(a.size<2)return;let t=1;const n=at(a.data.subarray(t),!0);t+=n.length+1;const r=at(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=at(a.data);return{key:a.type,info:"",data:e}}function Ws(a){return a.type==="PRIV"?ts(a):a.type[0]==="W"?Ss(a):a.type==="APIC"?ds(a):ns(a)}function Il(a){const e=String.fromCharCode(a[0],a[1],a[2],a[3]),t=bs(a,4),n=10;return{type:e,size:t,data:a.subarray(n,n+t)}}const ia=10,Ll=10;function oo(a){let e=0;const t=[];for(;Us(a,e);){const n=bs(a,e+6);a[e+5]>>6&1&&(e+=ia),e+=ia;const r=e+n;for(;e+Ll<r;){const i=Il(a.subarray(e)),s=Ws(i);s&&t.push(s),e+=i.size+ia}ta(a,e)&&(e+=ia)}return t}function lo(a){return a&&a.key==="PRIV"&&a.info==="com.apple.streaming.transportStreamTimestamp"}function kl(a){if(a.data.byteLength===8){const e=new Uint8Array(a.data),t=e[3]&1;let n=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return n/=45,t&&(n+=4772185884e-2),Math.round(n)}}function Aa(a){const e=oo(a);for(let t=0;t<e.length;t++){const n=e[t];if(lo(n))return kl(n)}}let Ai=function(a){return a.audioId3="org.id3",a.dateRange="com.apple.quicktime.HLS",a.emsg="https://aomedia.org/emsg/ID3",a.misbklv="urn:misb:KLV:bin:1910.1",a}({});function Gi(a="",e=9e4){return{type:a,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Ca{constructor(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.basePTS=null,this.initPTS=null,this.lastPTS=null}resetInitSegment(e,t,n,r){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}}resetTimeStamp(e){this.initPTS=e,this.resetContiguity()}resetContiguity(){this.basePTS=null,this.lastPTS=null,this.frameIndex=0}canParse(e,t){return!1}appendFrame(e,t,n){}demux(e,t){this.cachedData&&(e=Ye(this.cachedData,e),this.cachedData=null);let n=Wi(e,0),r=n?n.length:0,i;const s=this._audioTrack,l=this._id3Track,c=n?Aa(n):void 0,u=e.length;for((this.basePTS===null||this.frameIndex===0&&f(c))&&(this.basePTS=Pl(c,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),n&&n.length>0&&l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Ai.audioId3,duration:Number.POSITIVE_INFINITY});r<u;){if(this.canParse(e,r)){const h=this.appendFrame(s,e,r);h?(this.frameIndex++,this.lastPTS=h.sample.pts,r+=h.length,i=r):r=u}else wa(e,r)?(n=Wi(e,r),l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:Ai.audioId3,duration:Number.POSITIVE_INFINITY}),r+=n.length,i=r):r++;if(r===u&&i!==u){const h=e.slice(i);this.cachedData?this.cachedData=Ye(this.cachedData,h):this.cachedData=h}}return{audioTrack:s,videoTrack:Gi(),id3Track:l,textTrack:Gi()}}demuxSampleAes(e,t,n){return Promise.reject(new Error(`[${this}] This demuxer does not support Sample-AES decryption`))}flush(e){const t=this.cachedData;return t&&(this.cachedData=null,this.demux(t,0)),{audioTrack:this._audioTrack,videoTrack:Gi(),id3Track:this._id3Track,textTrack:Gi()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const Pl=(a,e,t)=>{if(f(a))return a*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};let sa=null;const Nl=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],Ml=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Ol=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Fl=[0,1,1,4];function uo(a,e,t,n,r){if(t+24>e.length)return;const i=co(e,t);if(i&&t+i.frameLength<=e.length){const s=i.samplesPerFrame*9e4/i.sampleRate,l=n+r*s,c={unit:e.subarray(t,t+i.frameLength),pts:l,dts:l};return a.config=[],a.channelCount=i.channelCount,a.samplerate=i.sampleRate,a.samples.push(c),{sample:c,length:i.frameLength,missing:0}}}function co(a,e){const t=a[e+1]>>3&3,n=a[e+1]>>1&3,r=a[e+2]>>4&15,i=a[e+2]>>2&3;if(t!==1&&r!==0&&r!==15&&i!==3){const s=a[e+2]>>1&1,l=a[e+3]>>6,c=t===3?3-n:n===3?3:4,u=Nl[c*14+r-1]*1e3,m=Ml[(t===3?0:t===2?1:2)*3+i],x=l===3?1:2,C=Ol[t][n],L=Fl[n],te=C*8*L,J=Math.floor(C*u/m+s)*L;if(sa===null){const rt=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);sa=rt?parseInt(rt[1]):0}return!!sa&&sa<=87&&n===2&&u>=224e3&&l===0&&(a[e+3]=a[e+3]|128),{sampleRate:m,channelCount:x,frameLength:J,samplesPerFrame:te}}}function Ta(a,e){return a[e]===255&&(a[e+1]&224)===224&&(a[e+1]&6)!==0}function fo(a,e){return e+1<a.length&&Ta(a,e)}function Bl(a,e){return Ta(a,e)&&4<=a.length-e}function ho(a,e){if(e+1<a.length&&Ta(a,e)){const n=co(a,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const i=e+r;return i===a.length||fo(a,i)}return!1}class Ul extends Ca{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const n=Wi(e,0);let r=(n==null?void 0:n.length)||0;if(ho(e,r))return!1;for(let i=e.length;r<i;r++)if(ra(e,r))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return Sa(e,t)}appendFrame(e,t,n){Ls(e,this.observer,t,n,e.manifestCodec);const r=Vs(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const po=(a,e)=>{let t=0,n=5;e+=n;const r=new Uint32Array(1),i=new Uint32Array(1),s=new Uint8Array(1);for(;n>0;){s[0]=a[e];const l=Math.min(n,8),c=8-l;i[0]=4278190080>>>24+c<<c,r[0]=(s[0]&i[0])>>c,t=t?t<<l|r[0]:r[0],e+=1,n-=l}return t};class Zl extends Ca{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,n){const r=mo(e,t,n,this.basePTS,this.frameIndex);if(r!==-1)return{sample:e.samples[e.samples.length-1],length:r,missing:0}}static probe(e){if(!e)return!1;const t=Wi(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&Aa(t)!==void 0&&po(e,n)<16}}function mo(a,e,t,n,r){if(t+8>e.length||e[t]!==11||e[t+1]!==119)return-1;const i=e[t+4]>>6;if(i>=3)return-1;const l=[48e3,44100,32e3][i],c=e[t+4]&63,h=[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][c*3+i]*2;if(t+h>e.length)return-1;const m=e[t+6]>>5;let x=0;m===2?x+=2:(m&1&&m!==1&&(x+=2),m&4&&(x+=2));const C=(e[t+6]<<8|e[t+7])>>12-x&1,te=[2,1,2,3,3,4,4,5][m]+C,J=e[t+5]>>3,Ce=e[t+5]&7,ht=new Uint8Array([i<<6|J<<1|Ce>>2,(Ce&3)<<6|m<<3|C<<2|c>>4,c<<4&224]),rt=1536/l*9e4,Ut=n+r*rt,$t=e.subarray(t,t+h);return a.config=ht,a.channelCount=te,a.samplerate=l,a.samples.push({unit:$t,pts:Ut}),h}class Kl extends Ca{resetInitSegment(e,t,n,r){super.resetInitSegment(e,t,n,r),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:r,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=Wi(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&Aa(t)!==void 0&&po(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(ho(e,n))return ee.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Bl(e,t)}appendFrame(e,t,n){if(this.basePTS!==null)return uo(e,t,n,this.basePTS,this.frameIndex)}}const zl=/\/emsg[-/]ID3/i;class jl{constructor(e,t){this.remainderData=null,this.timeOffset=0,this.config=void 0,this.videoTrack=void 0,this.audioTrack=void 0,this.id3Track=void 0,this.txtTrack=void 0,this.config=t}resetTimeStamp(){}resetInitSegment(e,t,n,r){const i=this.videoTrack=Gi("video",1),s=this.audioTrack=Gi("audio",1),l=this.txtTrack=Gi("text",1);if(this.id3Track=Gi("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const c=Qe(e);if(c.video){const{id:u,timescale:h,codec:m,supplemental:x}=c.video;i.id=u,i.timescale=l.timescale=h,i.codec=m,i.supplemental=x}if(c.audio){const{id:u,timescale:h,codec:m}=c.audio;s.id=u,s.timescale=h,s.codec=m}l.id=qt.text,i.sampleDuration=0,i.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return we(e)}demux(e,t){this.timeOffset=t;let n=e;const r=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(n=Ye(this.remainderData,e));const l=qe(n);this.remainderData=l.remainder,r.samples=l.valid||new Uint8Array}else r.samples=n;const s=this.extractID3Track(r,t);return i.samples=ot(t,r),{videoTrack:r,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,n=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const r=this.extractID3Track(t,this.timeOffset);return n.samples=ot(e,t),{videoTrack:t,audioTrack:Gi(),id3Track:r,textTrack:Gi()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=V(e.samples,["emsg"]);r&&r.forEach(i=>{const s=De(i);if(zl.test(s.schemeIdUri)){const l=go(s,t);let c=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;c<=.001&&(c=Number.POSITIVE_INFINITY);const u=s.payload;n.samples.push({data:u,len:u.byteLength,dts:l,pts:l,type:Ai.emsg,duration:c})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=go(s,t);n.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:Ai.misbklv,duration:Number.POSITIVE_INFINITY})}})}return n}demuxSampleAes(e,t,n){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}}function go(a,e){return f(a.presentationTime)?a.presentationTime/a.timeScale:e+a.presentationTimeDelta/a.timeScale}class Vl{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new gn(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,Wt.cbc)}decryptAacSample(e,t,n){const r=e[t].unit;if(r.length<=16)return;const i=r.subarray(16,r.length-r.length%16),s=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(s).then(l=>{const c=new Uint8Array(l);r.set(c,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,n)})}decryptAacSamples(e,t,n){for(;;t++){if(t>=e.length){n();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,n),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,n=new Int8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)n.set(e.subarray(i,i+16),r);return n}getAvcDecryptedUnit(e,t){const n=new Uint8Array(t);let r=0;for(let i=32;i<e.length-16;i+=160,r+=16)e.set(n.subarray(r,r+16),i);return e}decryptAvcSample(e,t,n,r,i){const s=Le(i.data),l=this.getAvcEncryptedData(s);this.decryptBuffer(l.buffer).then(c=>{i.data=this.getAvcDecryptedUnit(s,c),this.decrypter.isSync()||this.decryptAvcSamples(e,t,n+1,r)})}decryptAvcSamples(e,t,n,r){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,n=0){if(t>=e.length){r();return}const i=e[t].units;for(;!(n>=i.length);n++){const s=i[n];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(e,t,n,r,s),!this.decrypter.isSync()))return}}}}class vo{constructor(){this.VideoSample=null}createVideoSample(e,t,n){return{key:e,frame:!1,pts:t,dts:n,units:[],length:0}}getLastNalUnit(e){var t;let n=this.VideoSample,r;if((!n||n.units.length===0)&&(n=e[e.length-1]),(t=n)!=null&&t.units){const i=n.units;r=i[i.length-1]}return r}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const n=t.samples,r=n.length;if(r){const i=n[r-1];e.pts=i.pts,e.dts=i.dts}else{t.dropped++;return}}t.samples.push(e)}}parseNALu(e,t,n){const r=t.byteLength;let i=e.naluState||0;const s=i,l=[];let c=0,u,h,m,x=-1,C=0;for(i===-1&&(x=0,C=this.getNALuType(t,0),i=0,c=1);c<r;){if(u=t[c++],!i){i=u?0:1;continue}if(i===1){i=u?0:2;continue}if(!u)i=3;else if(u===1){if(h=c-i-1,x>=0){const L={data:t.subarray(x,h),type:C};l.push(L)}else{const L=this.getLastNalUnit(e.samples);L&&(s&&c<=4-s&&L.state&&(L.data=L.data.subarray(0,L.data.byteLength-s)),h>0&&(L.data=Ye(L.data,t.subarray(0,h)),L.state=0))}c<r?(m=this.getNALuType(t,c),x=c,C=m,i=0):i=-1}else i=0}if(x>=0&&i>=0){const L={data:t.subarray(x,r),type:C,state:i};l.push(L)}if(l.length===0){const L=this.getLastNalUnit(e.samples);L&&(L.data=Ye(L.data,t))}return e.naluState=i,l}}class Gs{constructor(e){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const e=this.data,t=this.bytesAvailable,n=e.byteLength-t,r=new Uint8Array(4),i=Math.min(4,t);if(i===0)throw new Error("no bytes available");r.set(e.subarray(n,n+i)),this.word=new DataView(r.buffer).getUint32(0),this.bitsAvailable=i*8,this.bytesAvailable-=i}skipBits(e){let t;e=Math.min(e,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>e?(this.word<<=e,this.bitsAvailable-=e):(e-=this.bitsAvailable,t=e>>3,e-=t<<3,this.bytesAvailable-=t,this.loadWord(),this.word<<=e,this.bitsAvailable-=e)}readBits(e){let t=Math.min(this.bitsAvailable,e);const n=this.word>>>32-t;if(e>32&&ee.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=t,this.bitsAvailable>0)this.word<<=t;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return t=e-t,t>0&&this.bitsAvailable?n<<t|this.readBits(t):n}skipLZ(){let e;for(e=0;e<this.bitsAvailable;++e)if(this.word&2147483648>>>e)return this.word<<=e,this.bitsAvailable-=e,e;return this.loadWord(),e+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const e=this.skipLZ();return this.readBits(e+1)-1}readEG(){const e=this.readUEG();return 1&e?1+e>>>1:-1*(e>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class Wl extends vo{parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let s=this.VideoSample,l,c=!1;n.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach(u=>{var h,m;switch(u.type){case 1:{let te=!1;l=!0;const J=u.data;if(c&&J.length>4){const Ce=this.readSliceType(J);(Ce===2||Ce===4||Ce===7||Ce===9)&&(te=!0)}if(te){var x;(x=s)!=null&&x.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.frame=!0,s.key=te;break}case 5:l=!0,(h=s)!=null&&h.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 6:{l=!0,N(u.data,1,n.pts,t.samples);break}case 7:{var C,L;l=!0,c=!0;const te=u.data,J=this.readSPS(te);if(!e.sps||e.width!==J.width||e.height!==J.height||((C=e.pixelRatio)==null?void 0:C[0])!==J.pixelRatio[0]||((L=e.pixelRatio)==null?void 0:L[1])!==J.pixelRatio[1]){e.width=J.width,e.height=J.height,e.pixelRatio=J.pixelRatio,e.sps=[te];const Ce=te.subarray(1,4);let ht="avc1.";for(let rt=0;rt<3;rt++){let Ut=Ce[rt].toString(16);Ut.length<2&&(Ut="0"+Ut),ht+=Ut}e.codec=ht}break}case 8:l=!0,e.pps=[u.data];break;case 9:l=!0,e.audFound=!0,(m=s)!=null&&m.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;case 12:l=!0;break;default:l=!1;break}s&&l&&s.units.push(u)}),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}getNALuType(e,t){return e[t]&31}readSliceType(e){const t=new Gs(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let n=8,r=8,i;for(let s=0;s<e;s++)r!==0&&(i=t.readEG(),r=(n+i+256)%256),n=r===0?n:r}readSPS(e){const t=new Gs(e);let n=0,r=0,i=0,s=0,l,c,u;const h=t.readUByte.bind(t),m=t.readBits.bind(t),x=t.readUEG.bind(t),C=t.readBoolean.bind(t),L=t.skipBits.bind(t),te=t.skipEG.bind(t),J=t.skipUEG.bind(t),Ce=this.skipScalingList.bind(this);h();const ht=h();if(m(5),L(3),h(),J(),ht===100||ht===110||ht===122||ht===244||ht===44||ht===83||ht===86||ht===118||ht===128){const un=x();if(un===3&&L(1),J(),J(),L(1),C())for(c=un!==3?8:12,u=0;u<c;u++)C()&&(u<6?Ce(16,t):Ce(64,t))}J();const rt=x();if(rt===0)x();else if(rt===1)for(L(1),te(),te(),l=x(),u=0;u<l;u++)te();J(),L(1);const Ut=x(),$t=x(),_n=m(1);_n===0&&L(1),L(1),C()&&(n=x(),r=x(),i=x(),s=x());let Yt=[1,1];if(C()&&C())switch(h()){case 1:Yt=[1,1];break;case 2:Yt=[12,11];break;case 3:Yt=[10,11];break;case 4:Yt=[16,11];break;case 5:Yt=[40,33];break;case 6:Yt=[24,11];break;case 7:Yt=[20,11];break;case 8:Yt=[32,11];break;case 9:Yt=[80,33];break;case 10:Yt=[18,11];break;case 11:Yt=[15,11];break;case 12:Yt=[64,33];break;case 13:Yt=[160,99];break;case 14:Yt=[4,3];break;case 15:Yt=[3,2];break;case 16:Yt=[2,1];break;case 255:{Yt=[h()<<8|h(),h()<<8|h()];break}}return{width:Math.ceil((Ut+1)*16-n*2-r*2),height:(2-_n)*($t+1)*16-(_n?2:4)*(i+s),pixelRatio:Yt}}}class Gl extends vo{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,n,r){const i=this.parseNALu(e,n.data,r);let s=this.VideoSample,l,c=!1;n.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),i.forEach(u=>{var h,m;switch(u.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts)),s.frame=!0,l=!0;break;case 16:case 17:case 18:case 21:if(l=!0,c){var x;(x=s)!=null&&x.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 19:case 20:l=!0,(h=s)!=null&&h.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0,s.frame=!0;break;case 39:l=!0,N(u.data,2,n.pts,t.samples);break;case 32:l=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=p(e.params,this.readVPS(u.data)),this.initVPS=u.data),e.vps=[u.data];break;case 33:if(l=!0,c=!0,e.vps!==void 0&&e.vps[0]!==this.initVPS&&e.sps!==void 0&&!this.matchSPS(e.sps[0],u.data)&&(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const C=this.readSPS(u.data);e.width=C.width,e.height=C.height,e.pixelRatio=C.pixelRatio,e.codec=C.codecString,e.sps=[],typeof e.params!="object"&&(e.params={});for(const L in C.params)e.params[L]=C.params[L]}this.pushParameterSet(e.sps,u.data,e.vps),s||(s=this.VideoSample=this.createVideoSample(!0,n.pts,n.dts)),s.key=!0;break;case 34:if(l=!0,typeof e.params=="object"){if(!e.pps){e.pps=[];const C=this.readPPS(u.data);for(const L in C)e.params[L]=C[L]}this.pushParameterSet(e.pps,u.data,e.vps)}break;case 35:l=!0,e.audFound=!0,(m=s)!=null&&m.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,n.pts,n.dts));break;default:l=!1;break}s&&l&&s.units.push(u)}),r&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}pushParameterSet(e,t,n){(n&&n[0]===this.initVPS||!n&&!e.length)&&e.push(t)}getNALuType(e,t){return(e[t]&126)>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let n=0;for(let r=0;r<e.byteLength;r++)r>=2&&e[r]===3&&e[r-1]===0&&e[r-2]===0||(t[n]=e[r],n++);return new Uint8Array(t.buffer,0,n)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new Gs(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);const n=t.readBits(3),r=t.readBoolean();return{numTemporalLayers:n+1,temporalIdNested:r}}readSPS(e){const t=new Gs(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const n=t.readBits(3);t.readBoolean();const r=t.readBits(2),i=t.readBoolean(),s=t.readBits(5),l=t.readUByte(),c=t.readUByte(),u=t.readUByte(),h=t.readUByte(),m=t.readUByte(),x=t.readUByte(),C=t.readUByte(),L=t.readUByte(),te=t.readUByte(),J=t.readUByte(),Ce=t.readUByte(),ht=[],rt=[];for(let Br=0;Br<n;Br++)ht.push(t.readBoolean()),rt.push(t.readBoolean());if(n>0)for(let Br=n;Br<8;Br++)t.readBits(2);for(let Br=0;Br<n;Br++)ht[Br]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),rt[Br]&&t.readUByte();t.readUEG();const Ut=t.readUEG();Ut==3&&t.skipBits(1);const $t=t.readUEG(),_n=t.readUEG(),Yt=t.readBoolean();let un=0,fn=0,Xt=0,An=0;Yt&&(un+=t.readUEG(),fn+=t.readUEG(),Xt+=t.readUEG(),An+=t.readUEG());const tr=t.readUEG(),hr=t.readUEG(),vr=t.readUEG(),pr=t.readBoolean();for(let Br=pr?0:n;Br<=n;Br++)t.skipUEG(),t.skipUEG(),t.skipUEG();if(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG(),t.readBoolean()&&t.readBoolean())for(let vi=0;vi<4;vi++)for(let Ni=0;Ni<(vi===3?2:6);Ni++)if(!t.readBoolean())t.readUEG();else{const Zi=Math.min(64,1<<4+(vi<<1));vi>1&&t.readEG();for(let Bs=0;Bs<Zi;Bs++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const sr=t.readUEG();let gr=0;for(let Br=0;Br<sr;Br++){let vi=!1;if(Br!==0&&(vi=t.readBoolean()),vi){Br===sr&&t.readUEG(),t.readBoolean(),t.readUEG();let Ni=0;for(let Ts=0;Ts<=gr;Ts++){const Zi=t.readBoolean();let Bs=!1;Zi||(Bs=t.readBoolean()),(Zi||Bs)&&Ni++}gr=Ni}else{const Ni=t.readUEG(),Ts=t.readUEG();gr=Ni+Ts;for(let Zi=0;Zi<Ni;Zi++)t.readUEG(),t.readBoolean();for(let Zi=0;Zi<Ts;Zi++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const Br=t.readUEG();for(let vi=0;vi<Br;vi++){for(let Ni=0;Ni<vr+4;Ni++)t.readBits(1);t.readBits(1)}}let qn=0,$n=1,kr=1,Kr=!0,Pr=1,Or=0;t.readBoolean(),t.readBoolean();let gi=!1;if(t.readBoolean()){if(t.readBoolean()){const Ds=t.readUByte(),xl=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],Ea=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];Ds>0&&Ds<16?($n=xl[Ds-1],kr=Ea[Ds-1]):Ds===255&&($n=t.readBits(16),kr=t.readBits(16))}if(t.readBoolean()&&t.readBoolean(),t.readBoolean()&&(t.readBits(3),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.readUByte(),t.readUByte())),t.readBoolean()&&(t.readUEG(),t.readUEG()),t.readBoolean(),t.readBoolean(),t.readBoolean(),gi=t.readBoolean(),gi&&(t.skipUEG(),t.skipUEG(),t.skipUEG(),t.skipUEG()),t.readBoolean()&&(Pr=t.readBits(32),Or=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const Ea=t.readBoolean(),Sl=t.readBoolean();let Js=!1;(Ea||Sl)&&(Js=t.readBoolean(),Js&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),Js&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let wl=0;wl<=n;wl++){Kr=t.readBoolean();const Ad=Kr||t.readBoolean();let Al=!1;Ad?t.readEG():Al=t.readBoolean();const Cl=Al?1:t.readUEG()+1;if(Ea)for(let qs=0;qs<Cl;qs++)t.readUEG(),t.readUEG(),Js&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(Sl)for(let qs=0;qs<Cl;qs++)t.readUEG(),t.readUEG(),Js&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),qn=t.readUEG())}let Pi=$t,Qi=_n;if(Yt){let Br=1,vi=1;Ut===1?Br=vi=2:Ut==2&&(Br=2),Pi=$t-Br*fn-Br*un,Qi=_n-vi*An-vi*Xt}const Cs=r?["A","B","C"][r]:"",wd=l<<24|c<<16|u<<8|h;let so=0;for(let Br=0;Br<32;Br++)so=(so|(wd>>Br&1)<<31-Br)>>>0;let ao=so.toString(16);return s===1&&ao==="2"&&(ao="6"),{codecString:`hvc1.${Cs}${s}.${ao}.${i?"H":"L"}${Ce}.B0`,params:{general_tier_flag:i,general_profile_idc:s,general_profile_space:r,general_profile_compatibility_flags:[l,c,u,h],general_constraint_indicator_flags:[m,x,C,L,te,J],general_level_idc:Ce,bit_depth:tr+8,bit_depth_luma_minus8:tr,bit_depth_chroma_minus8:hr,min_spatial_segmentation_idc:qn,chroma_format_idc:Ut,frame_rate:{fixed:Kr,fps:Or/Pr}},width:Pi,height:Qi,pixelRatio:[$n,kr]}}readPPS(e){const t=new Gs(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.skipUEG(),t.skipUEG(),t.skipBits(2),t.skipBits(3),t.skipBits(2),t.skipUEG(),t.skipUEG(),t.skipEG(),t.skipBits(2),t.readBoolean()&&t.skipUEG(),t.skipEG(),t.skipEG(),t.skipBits(4);const r=t.readBoolean(),i=t.readBoolean();let s=1;return i&&r?s=0:i?s=3:r&&(s=2),{parallelismType:s}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const ci=188;class fs{constructor(e,t,n,r){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.logger=r,this.videoParser=null}static probe(e,t){const n=fs.syncOffset(e);return n>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${n}`),n!==-1}static syncOffset(e){const t=e.length;let n=Math.min(ci*5,t-ci)+1,r=0;for(;r<n;){let i=!1,s=-1,l=0;for(let c=r;c<t;c+=ci)if(e[c]===71&&(t-c===ci||e[c+ci]===71)){if(l++,s===-1&&(s=c,s!==0&&(n=Math.min(s+ci*99,e.length-ci)+1)),i||(i=Da(e,c)===0),i&&l>1&&(s===0&&l>2||c+ci>n))return s}else{if(l)return-1;break}r++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:qt[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,n,r){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=fs.createTrack("video"),this._videoTrack.duration=r,this._audioTrack=fs.createTrack("audio",r),this._id3Track=fs.createTrack("id3"),this._txtTrack=fs.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=n}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:n}=this;e&&(e.pesData=null),t&&(t.pesData=null),n&&(n.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,n=!1,r=!1){n||(this.sampleAes=null);let i;const s=this._videoTrack,l=this._audioTrack,c=this._id3Track,u=this._txtTrack;let h=s.pid,m=s.pesData,x=l.pid,C=c.pid,L=l.pesData,te=c.pesData,J=null,Ce=this.pmtParsed,ht=this._pmtId,rt=e.length;if(this.remainderData&&(e=Ye(this.remainderData,e),rt=e.length,this.remainderData=null),rt<ci&&!r)return this.remainderData=e,{audioTrack:l,videoTrack:s,id3Track:c,textTrack:u};const Ut=Math.max(0,fs.syncOffset(e));rt-=(rt-Ut)%ci,rt<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,rt,e.buffer.byteLength-rt));let $t=0;for(let Yt=Ut;Yt<rt;Yt+=ci)if(e[Yt]===71){const un=!!(e[Yt+1]&64),fn=Da(e,Yt),Xt=(e[Yt+3]&48)>>4;let An;if(Xt>1){if(An=Yt+5+e[Yt+4],An===Yt+ci)continue}else An=Yt+4;switch(fn){case h:un&&(m&&(i=ks(m,this.logger))&&(this.readyVideoParser(s.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(s,u,i,!1)),m={data:[],size:0}),m&&(m.data.push(e.subarray(An,Yt+ci)),m.size+=Yt+ci-An);break;case x:if(un){if(L&&(i=ks(L,this.logger)))switch(l.segmentCodec){case"aac":this.parseAACPES(l,i);break;case"mp3":this.parseMPEGPES(l,i);break;case"ac3":this.parseAC3PES(l,i);break}L={data:[],size:0}}L&&(L.data.push(e.subarray(An,Yt+ci)),L.size+=Yt+ci-An);break;case C:un&&(te&&(i=ks(te,this.logger))&&this.parseID3PES(c,i),te={data:[],size:0}),te&&(te.data.push(e.subarray(An,Yt+ci)),te.size+=Yt+ci-An);break;case 0:un&&(An+=e[An]+1),ht=this._pmtId=Hl(e,An);break;case ht:{un&&(An+=e[An]+1);const tr=Yl(e,An,this.typeSupported,n,this.observer,this.logger);h=tr.videoPid,h>0&&(s.pid=h,s.segmentCodec=tr.segmentVideoCodec),x=tr.audioPid,x>0&&(l.pid=x,l.segmentCodec=tr.segmentAudioCodec),C=tr.id3Pid,C>0&&(c.pid=C),J!==null&&!Ce&&(this.logger.warn(`MPEG-TS PMT found at ${Yt} after unknown PID '${J}'. Backtracking to sync byte @${Ut} to parse all TS packets.`),J=null,Yt=Ut-188),Ce=this.pmtParsed=!0;break}case 17:case 8191:break;default:J=fn;break}}else $t++;$t>0&&Ra(this.observer,new Error(`Found ${$t} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=m,l.pesData=L,c.pesData=te;const _n={audioTrack:l,videoTrack:s,id3Track:c,textTrack:u};return r&&this.extractRemainingSamples(_n),_n}flush(){const{remainderData:e}=this;this.remainderData=null;let t;return e?t=this.demux(e,-1,!1,!0):t={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(t),this.sampleAes?this.decrypt(t,this.sampleAes):t}extractRemainingSamples(e){const{audioTrack:t,videoTrack:n,id3Track:r,textTrack:i}=e,s=n.pesData,l=t.pesData,c=r.pesData;let u;if(s&&(u=ks(s,this.logger))?(this.readyVideoParser(n.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(n,i,u,!0),n.pesData=null)):n.pesData=s,l&&(u=ks(l,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,u);break;case"mp3":this.parseMPEGPES(t,u);break;case"ac3":this.parseAC3PES(t,u);break}t.pesData=null}else l!=null&&l.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=l;c&&(u=ks(c,this.logger))?(this.parseID3PES(r,u),r.pesData=null):r.pesData=c}demuxSampleAes(e,t,n){const r=this.demux(e,n,!0,!this.config.progressive),i=this.sampleAes=new Vl(this.observer,this.config,t);return this.decrypt(r,i)}readyVideoParser(e){this.videoParser===null&&(e==="avc"?this.videoParser=new Wl:e==="hevc"&&(this.videoParser=new Gl))}decrypt(e,t){return new Promise(n=>{const{audioTrack:r,videoTrack:i}=e;r.samples&&r.segmentCodec==="aac"?t.decryptAacSamples(r.samples,0,()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,()=>{n(e)}):n(e)}):i.samples&&t.decryptAvcSamples(i.samples,0,0,()=>{n(e)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(e,t){let n=0;const r=this.aacOverFlow;let i=t.data;if(r){this.aacOverFlow=null;const m=r.missing,x=r.sample.unit.byteLength;if(m===-1)i=Ye(r.sample.unit,i);else{const C=x-m;r.sample.unit.set(i.subarray(0,m),C),e.samples.push(r.sample),n=r.missing}}let s,l;for(s=n,l=i.length;s<l-1&&!xs(i,s);s++);if(s!==n){let m;const x=s<l-1;if(x?m=`AAC PES did not start with ADTS header,offset:${s}`:m="No ADTS header found in AAC PES",Ra(this.observer,new Error(m),x,this.logger),!x)return}Ls(e,this.observer,i,s,this.audioCodec);let c;if(t.pts!==void 0)c=t.pts;else if(r){const m=zs(e.samplerate);c=r.sample.pts+m}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let u=0,h;for(;s<l;)if(h=Vs(e,i,s,c,u),s+=h.length,h.missing){this.aacOverFlow=h;break}else for(u++;s<l-1&&!xs(i,s);s++);}parseMPEGPES(e,t){const n=t.data,r=n.length;let i=0,s=0;const l=t.pts;if(l===void 0){this.logger.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;s<r;)if(fo(n,s)){const c=uo(e,n,s,l,i);if(c)s+=c.length,i++;else break}else s++}parseAC3PES(e,t){{const n=t.data,r=t.pts;if(r===void 0){this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const i=n.length;let s=0,l=0,c;for(;l<i&&(c=mo(e,n,l,r,s++))>0;)l+=c}}parseID3PES(e,t){if(t.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const n=p({},t,{type:this._videoTrack?Ai.emsg:Ai.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function Da(a,e){return((a[e+1]&31)<<8)+a[e+2]}function Hl(a,e){return(a[e+10]&31)<<8|a[e+11]}function Yl(a,e,t,n,r,i){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},l=(a[e+1]&15)<<8|a[e+2],c=e+3+l-4,u=(a[e+10]&15)<<8|a[e+11];for(e+=12+u;e<c;){const h=Da(a,e),m=(a[e+3]&15)<<8|a[e+4];switch(a[e]){case 207:if(!n){Ia("ADTS AAC",i);break}case 15:s.audioPid===-1&&(s.audioPid=h);break;case 21:s.id3Pid===-1&&(s.id3Pid=h);break;case 219:if(!n){Ia("H.264",i);break}case 27:s.videoPid===-1&&(s.videoPid=h);break;case 3:case 4:!t.mpeg&&!t.mp3?i.log("MPEG audio found, not supported in this browser"):s.audioPid===-1&&(s.audioPid=h,s.segmentAudioCodec="mp3");break;case 193:if(!n){Ia("AC-3",i);break}case 129:t.ac3?s.audioPid===-1&&(s.audioPid=h,s.segmentAudioCodec="ac3"):i.log("AC-3 audio found, not supported in this browser");break;case 6:if(s.audioPid===-1&&m>0){let x=e+5,C=m;for(;C>2;){switch(a[x]){case 106:t.ac3!==!0?i.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=h,s.segmentAudioCodec="ac3");break}const te=a[x+1]+2;x+=te,C-=te}}break;case 194:case 135:return Ra(r,new Error("Unsupported EC-3 in M2TS found"),void 0,i),s;case 36:s.videoPid===-1&&(s.videoPid=h,s.segmentVideoCodec="hevc",i.log("HEVC in M2TS found"));break}e+=m+5}return s}function Ra(a,e,t,n){n.warn(`parsing error: ${e.message}`),a.emit(d.ERROR,d.ERROR,{type:ae.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Ia(a,e){e.log(`${a} with AES-128-CBC encryption found in unencrypted stream`)}function ks(a,e){let t=0,n,r,i,s,l;const c=a.data;if(!a||a.size===0)return null;for(;c[0].length<19&&c.length>1;)c[0]=Ye(c[0],c[1]),c.splice(1,1);if(n=c[0],(n[0]<<16)+(n[1]<<8)+n[2]===1){if(r=(n[4]<<8)+n[5],r&&r>a.size-6)return null;const h=n[7];h&192&&(s=(n[9]&14)*536870912+(n[10]&255)*4194304+(n[11]&254)*16384+(n[12]&255)*128+(n[13]&254)/2,h&64?(l=(n[14]&14)*536870912+(n[15]&255)*4194304+(n[16]&254)*16384+(n[17]&255)*128+(n[18]&254)/2,s-l>60*9e4&&(e.warn(`${Math.round((s-l)/9e4)}s delta between PTS and DTS, align them`),s=l)):l=s),i=n[8];let m=i+9;if(a.size<=m)return null;a.size-=m;const x=new Uint8Array(a.size);for(let C=0,L=c.length;C<L;C++){n=c[C];let te=n.byteLength;if(m)if(m>te){m-=te;continue}else n=n.subarray(m),te-=m,m=0;x.set(n,t),t+=te}return r&&(r-=i+3),{data:x,pts:s,dts:l,len:r}}return null}class Xl{static getSilentFrame(e,t){switch(e){case"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]);break;default: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]);break}}}const hs=Math.pow(2,32)-1;class rn{static init(){rn.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let e;for(e in rn.types)rn.types.hasOwnProperty(e)&&(rn.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);const t=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]),n=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]);rn.HDLR_TYPES={video:t,audio:n};const r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),i=new Uint8Array([0,0,0,0,0,0,0,0]);rn.STTS=rn.STSC=rn.STCO=i,rn.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),rn.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),rn.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),rn.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),l=new Uint8Array([97,118,99,49]),c=new Uint8Array([0,0,0,1]);rn.FTYP=rn.box(rn.types.ftyp,s,c,s,l),rn.DINF=rn.box(rn.types.dinf,rn.box(rn.types.dref,r))}static box(e,...t){let n=8,r=t.length;const i=r;for(;r--;)n+=t[r].byteLength;const s=new Uint8Array(n);for(s[0]=n>>24&255,s[1]=n>>16&255,s[2]=n>>8&255,s[3]=n&255,s.set(e,4),r=0,n=8;r<i;r++)s.set(t[r],n),n+=t[r].byteLength;return s}static hdlr(e){return rn.box(rn.types.hdlr,rn.HDLR_TYPES[e])}static mdat(e){return rn.box(rn.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(hs+1)),r=Math.floor(t%(hs+1));return rn.box(rn.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&255,85,196,0,0]))}static mdia(e){return rn.box(rn.types.mdia,rn.mdhd(e.timescale||0,e.duration||0),rn.hdlr(e.type),rn.minf(e))}static mfhd(e){return rn.box(rn.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,e&255]))}static minf(e){return e.type==="audio"?rn.box(rn.types.minf,rn.box(rn.types.smhd,rn.SMHD),rn.DINF,rn.stbl(e)):rn.box(rn.types.minf,rn.box(rn.types.vmhd,rn.VMHD),rn.DINF,rn.stbl(e))}static moof(e,t,n){return rn.box(rn.types.moof,rn.mfhd(e),rn.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=rn.trak(e[t]);return rn.box.apply(null,[rn.types.moov,rn.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(rn.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=rn.trex(e[t]);return rn.box.apply(null,[rn.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(hs+1)),r=Math.floor(t%(hs+1)),i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,e&255,n>>24,n>>16&255,n>>8&255,n&255,r>>24,r>>16&255,r>>8&255,r&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]);return rn.box(rn.types.mvhd,i)}static sdtp(e){const t=e.samples||[],n=new Uint8Array(4+t.length);let r,i;for(r=0;r<t.length;r++)i=t[r].flags,n[r+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return rn.box(rn.types.sdtp,n)}static stbl(e){return rn.box(rn.types.stbl,rn.stsd(e),rn.box(rn.types.stts,rn.STTS),rn.box(rn.types.stsc,rn.STSC),rn.box(rn.types.stsz,rn.STSZ),rn.box(rn.types.stco,rn.STCO))}static avc1(e){let t=[],n=[],r,i,s;for(r=0;r<e.sps.length;r++)i=e.sps[r],s=i.byteLength,t.push(s>>>8&255),t.push(s&255),t=t.concat(Array.prototype.slice.call(i));for(r=0;r<e.pps.length;r++)i=e.pps[r],s=i.byteLength,n.push(s>>>8&255),n.push(s&255),n=n.concat(Array.prototype.slice.call(i));const l=rn.box(rn.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(n))),c=e.width,u=e.height,h=e.pixelRatio[0],m=e.pixelRatio[1];return rn.box(rn.types.avc1,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,c>>8&255,c&255,u>>8&255,u&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l,rn.box(rn.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),rn.box(rn.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,h&255,m>>24,m>>16&255,m>>8&255,m&255])))}static esds(e){const t=e.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...t,6,1,2])}static audioStsd(e){const t=e.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount||0,0,16,0,0,0,0,t>>8&255,t&255,0,0])}static mp4a(e){return rn.box(rn.types.mp4a,rn.audioStsd(e),rn.box(rn.types.esds,rn.esds(e)))}static mp3(e){return rn.box(rn.types[".mp3"],rn.audioStsd(e))}static ac3(e){return rn.box(rn.types["ac-3"],rn.audioStsd(e),rn.box(rn.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if(e.type==="audio"){if(t==="aac")return rn.box(rn.types.stsd,rn.STSD,rn.mp4a(e));if(t==="ac3"&&e.config)return rn.box(rn.types.stsd,rn.STSD,rn.ac3(e));if(t==="mp3"&&e.codec==="mp3")return rn.box(rn.types.stsd,rn.STSD,rn.mp3(e))}else if(e.pps&&e.sps){if(t==="avc")return rn.box(rn.types.stsd,rn.STSD,rn.avc1(e));if(t==="hevc"&&e.vps)return rn.box(rn.types.stsd,rn.STSD,rn.hvc1(e))}else throw new Error("video track missing pps or sps");throw new Error(`unsupported ${e.type} segment codec (${t}/${e.codec})`)}static tkhd(e){const t=e.id,n=(e.duration||0)*(e.timescale||0),r=e.width||0,i=e.height||0,s=Math.floor(n/(hs+1)),l=Math.floor(n%(hs+1));return rn.box(rn.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,l>>24,l>>16&255,l>>8&255,l&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,r&255,0,0,i>>8&255,i&255,0,0]))}static traf(e,t){const n=rn.sdtp(e),r=e.id,i=Math.floor(t/(hs+1)),s=Math.floor(t%(hs+1));return rn.box(rn.types.traf,rn.box(rn.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),rn.box(rn.types.tfdt,new Uint8Array([1,0,0,0,i>>24,i>>16&255,i>>8&255,i&255,s>>24,s>>16&255,s>>8&255,s&255])),rn.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,rn.box(rn.types.trak,rn.tkhd(e),rn.mdia(e))}static trex(e){const t=e.id;return rn.box(rn.types.trex,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(e,t){const n=e.samples||[],r=n.length,i=12+16*r,s=new Uint8Array(i);let l,c,u,h,m,x;for(t+=8+i,s.set([e.type==="video"?1:0,0,15,1,r>>>24&255,r>>>16&255,r>>>8&255,r&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),l=0;l<r;l++)c=n[l],u=c.duration,h=c.size,m=c.flags,x=c.cts,s.set([u>>>24&255,u>>>16&255,u>>>8&255,u&255,h>>>24&255,h>>>16&255,h>>>8&255,h&255,m.isLeading<<2|m.dependsOn,m.isDependedOn<<6|m.hasRedundancy<<4|m.paddingValue<<1|m.isNonSync,m.degradPrio&61440,m.degradPrio&15,x>>>24&255,x>>>16&255,x>>>8&255,x&255],12+16*l);return rn.box(rn.types.trun,s)}static initSegment(e){rn.types||rn.init();const t=rn.moov(e);return Ye(rn.FTYP,t)}static hvc1(e){const t=e.params,n=[e.vps,e.sps,e.pps],r=4,i=new Uint8Array([1,t.general_profile_space<<6|(t.general_tier_flag?32:0)|t.general_profile_idc,t.general_profile_compatibility_flags[0],t.general_profile_compatibility_flags[1],t.general_profile_compatibility_flags[2],t.general_profile_compatibility_flags[3],t.general_constraint_indicator_flags[0],t.general_constraint_indicator_flags[1],t.general_constraint_indicator_flags[2],t.general_constraint_indicator_flags[3],t.general_constraint_indicator_flags[4],t.general_constraint_indicator_flags[5],t.general_level_idc,240|t.min_spatial_segmentation_idc>>8,255&t.min_spatial_segmentation_idc,252|t.parallelismType,252|t.chroma_format_idc,248|t.bit_depth_luma_minus8,248|t.bit_depth_chroma_minus8,0,parseInt(t.frame_rate.fps),r-1|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),n.length]);let s=i.length;for(let L=0;L<n.length;L+=1){s+=3;for(let te=0;te<n[L].length;te+=1)s+=2+n[L][te].length}const l=new Uint8Array(s);l.set(i,0),s=i.length;const c=n.length-1;for(let L=0;L<n.length;L+=1){l.set(new Uint8Array([32+L|(L===c?128:0),0,n[L].length]),s),s+=3;for(let te=0;te<n[L].length;te+=1)l.set(new Uint8Array([n[L][te].length>>8,n[L][te].length&255]),s),s+=2,l.set(n[L][te],s),s+=n[L][te].length}const u=rn.box(rn.types.hvcC,l),h=e.width,m=e.height,x=e.pixelRatio[0],C=e.pixelRatio[1];return rn.box(rn.types.hvc1,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,h>>8&255,h&255,m>>8&255,m&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),u,rn.box(rn.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),rn.box(rn.types.pasp,new Uint8Array([x>>24,x>>16&255,x>>8&255,x&255,C>>24,C>>16&255,C>>8&255,C&255])))}}rn.types=void 0,rn.HDLR_TYPES=void 0,rn.STTS=void 0,rn.STSC=void 0,rn.STCO=void 0,rn.STSZ=void 0,rn.VMHD=void 0,rn.SMHD=void 0,rn.STSD=void 0,rn.FTYP=void 0,rn.DINF=void 0;const yo=9e4;function La(a,e,t=1,n=!1){const r=a*e*t;return n?Math.round(r):r}function Ql(a,e,t=1,n=!1){return La(a,e,1/t,n)}function Hs(a,e=!1){return La(a,1e3,1/yo,e)}function Jl(a,e=1){return La(a,yo,1/e)}const ql=10*1e3,$l=1024,eu=1152,tu=1536;let Ps=null,ka=null;function _o(a,e,t,n){return{duration:e,size:t,cts:n,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:a?2:1,isNonSync:a?0:1}}}class aa extends ${constructor(e,t,n,r){if(super("mp4-remuxer",r),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextVideoTs=null,this.nextAudioTs=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=n,this.ISGenerated=!1,Ps===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ps=s?parseInt(s[1]):0}if(ka===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);ka=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){this.log("initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.log("reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.log("ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const n=e[0].pts,r=e.reduce((i,s)=>{let l=s.pts,c=l-i;return c<-4294967296&&(t=!0,l=Ii(l,n),c=l-i),c>0?i:l},n);return t&&this.debug("PTS rollover detected"),r}remux(e,t,n,r,i,s,l,c){let u,h,m,x,C,L,te=i,J=i;const Ce=e.pid>-1,ht=t.pid>-1,rt=t.samples.length,Ut=e.samples.length>0,$t=l&&rt>0||rt>1;if((!Ce||Ut)&&(!ht||$t)||this.ISGenerated||l){if(this.ISGenerated){var Yt,un,fn,Xt;const vr=this.videoTrackConfig;(vr&&(t.width!==vr.width||t.height!==vr.height||((Yt=t.pixelRatio)==null?void 0:Yt[0])!==((un=vr.pixelRatio)==null?void 0:un[0])||((fn=t.pixelRatio)==null?void 0:fn[1])!==((Xt=vr.pixelRatio)==null?void 0:Xt[1]))||!vr&&$t||this.nextAudioTs===null&&Ut)&&this.resetInitSegment()}this.ISGenerated||(m=this.generateIS(e,t,i,s));const An=this.isVideoContiguous;let tr=-1,hr;if($t&&(tr=nu(t.samples),!An&&this.config.forceKeyFrameOnDiscontinuity))if(L=!0,tr>0){this.warn(`Dropped ${tr} out of ${rt} video samples due to a missing keyframe`);const vr=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(tr),t.dropped+=tr,J+=(t.samples[0].pts-vr)/t.inputTimeScale,hr=J}else tr===-1&&(this.warn(`No keyframe found out of ${rt} video samples`),L=!1);if(this.ISGenerated){if(Ut&&$t){const vr=this.getVideoStartPts(t.samples),Qn=(Ii(e.samples[0].pts,vr)-vr)/t.inputTimeScale;te+=Math.max(0,Qn),J+=Math.max(0,-Qn)}if(Ut){if(e.samplerate||(this.warn("regenerate InitSegment as audio detected"),m=this.generateIS(e,t,i,s)),h=this.remuxAudio(e,te,this.isAudioContiguous,s,ht||$t||c===ne.AUDIO?J:void 0),$t){const vr=h?h.endPTS-h.startPTS:0;t.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),m=this.generateIS(e,t,i,s)),u=this.remuxVideo(t,J,An,vr)}}else $t&&(u=this.remuxVideo(t,J,An,0));u&&(u.firstKeyFrame=tr,u.independent=tr!==-1,u.firstKeyFramePTS=hr)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(C=Eo(n,i,this._initPTS,this._initDTS)),r.samples.length&&(x=bo(r,i,this._initPTS))),{audio:h,video:u,initSegment:m,independent:L,text:x,id3:C}}generateIS(e,t,n,r){const i=e.samples,s=t.samples,l=this.typeSupported,c={},u=this._initPTS;let h=!u||r,m="audio/mp4",x,C,L,te=-1;if(h&&(x=C=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":l.mpeg?(m="audio/mpeg",e.codec=""):l.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}c.audio={id:"audio",container:m,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&l.mpeg?new Uint8Array(0):rn.initSegment([e]),metadata:{channelCount:e.channelCount}},h&&(te=e.id,L=e.inputTimeScale,!u||L!==u.timescale?x=C=i[0].pts-Math.round(L*n):h=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,c.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:rn.initSegment([t]),metadata:{width:t.width,height:t.height}},h)if(te=t.id,L=t.inputTimeScale,!u||L!==u.timescale){const J=this.getVideoStartPts(s),Ce=Math.round(L*n);C=Math.min(C,Ii(s[0].dts,J)-Ce),x=Math.min(x,J-Ce)}else h=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(c).length)return this.ISGenerated=!0,h?(u&&this.warn(`Timestamps at playlist time: ${r?"":"~"}${n} ${x/L} != initPTS: ${u.baseTime/u.timescale} (${u.baseTime}/${u.timescale}) trackId: ${u.trackId}`),this.log(`Found initPTS at playlist time: ${n} offset: ${x/L} (${x}/${L}) trackId: ${te}`),this._initPTS={baseTime:x,timescale:L,trackId:te},this._initDTS={baseTime:C,timescale:L,trackId:te}):x=L=void 0,{tracks:c,initPTS:x,timescale:L,trackId:te}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,s=e.samples,l=[],c=s.length,u=this._initPTS,h=u.baseTime*i/u.timescale;let m=this.nextVideoTs,x=8,C=this.videoSampleDuration,L,te,J=Number.POSITIVE_INFINITY,Ce=Number.NEGATIVE_INFINITY,ht=!1;if(!n||m===null){const qn=h+t*i,$n=s[0].pts-Ii(s[0].dts,s[0].pts);Ps&&m!==null&&Math.abs(qn-$n-(m+h))<15e3?n=!0:m=qn-$n-h}const rt=m+h;for(let qn=0;qn<c;qn++){const $n=s[qn];$n.pts=Ii($n.pts,rt),$n.dts=Ii($n.dts,rt),$n.dts<s[qn>0?qn-1:qn].dts&&(ht=!0)}ht&&s.sort(function(qn,$n){const kr=qn.dts-$n.dts,Kr=qn.pts-$n.pts;return kr||Kr}),L=s[0].dts,te=s[s.length-1].dts;const Ut=te-L,$t=Ut?Math.round(Ut/(c-1)):C||e.inputTimeScale/30;if(n){const qn=L-rt,$n=qn>$t,kr=qn<-1;if(($n||kr)&&($n?this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Hs(qn,!0)} ms (${qn}dts) hole between fragments detected at ${t.toFixed(3)}`):this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${Hs(-qn,!0)} ms (${qn}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!kr||rt>=s[0].pts||Ps)){L=rt;const Kr=s[0].pts-qn;if($n)s[0].dts=L,s[0].pts=Kr;else{let Pr=!0;for(let Or=0;Or<s.length&&!(s[Or].dts>Kr&&Pr);Or++){const gi=s[Or].pts;if(s[Or].dts-=qn,s[Or].pts-=qn,Or<s.length-1){const hi=s[Or+1].pts,Pi=s[Or].pts,Qi=hi<=Pi,Cs=hi<=gi;Pr=Qi==Cs}}}this.log(`Video: Initial PTS/DTS adjusted: ${Hs(Kr,!0)}/${Hs(L,!0)}, delta: ${Hs(qn,!0)} ms`)}}L=Math.max(0,L);let _n=0,Yt=0,un=L;for(let qn=0;qn<c;qn++){const $n=s[qn],kr=$n.units,Kr=kr.length;let Pr=0;for(let Or=0;Or<Kr;Or++)Pr+=kr[Or].data.length;Yt+=Pr,_n+=Kr,$n.length=Pr,$n.dts<un?($n.dts=un,un+=$t/4|0||1):un=$n.dts,J=Math.min($n.pts,J),Ce=Math.max($n.pts,Ce)}te=s[c-1].dts;const fn=Yt+4*_n+8;let Xt;try{Xt=new Uint8Array(fn)}catch(qn){this.observer.emit(d.ERROR,d.ERROR,{type:ae.MUX_ERROR,details:B.REMUX_ALLOC_ERROR,fatal:!1,error:qn,bytes:fn,reason:`fail allocating video mdat ${fn}`});return}const An=new DataView(Xt.buffer);An.setUint32(0,fn),Xt.set(rn.types.mdat,4);let tr=!1,hr=Number.POSITIVE_INFINITY,vr=Number.POSITIVE_INFINITY,pr=Number.NEGATIVE_INFINITY,Qn=Number.NEGATIVE_INFINITY;for(let qn=0;qn<c;qn++){const $n=s[qn],kr=$n.units;let Kr=0;for(let gi=0,hi=kr.length;gi<hi;gi++){const Pi=kr[gi],Qi=Pi.data,Cs=Pi.data.byteLength;An.setUint32(x,Cs),x+=4,Xt.set(Qi,x),x+=Cs,Kr+=4+Cs}let Pr;if(qn<c-1)C=s[qn+1].dts-$n.dts,Pr=s[qn+1].pts-$n.pts;else{const gi=this.config,hi=qn>0?$n.dts-s[qn-1].dts:$t;if(Pr=qn>0?$n.pts-s[qn-1].pts:$t,gi.stretchShortVideoTrack&&this.nextAudioTs!==null){const Pi=Math.floor(gi.maxBufferHole*i),Qi=(r?J+r*i:this.nextAudioTs+h)-$n.pts;Qi>Pi?(C=Qi-hi,C<0?C=hi:tr=!0,this.log(`It is approximately ${Qi/90} ms to the next segment; using duration ${C/90} ms for the last video frame.`)):C=hi}else C=hi}const Or=Math.round($n.pts-$n.dts);hr=Math.min(hr,C),pr=Math.max(pr,C),vr=Math.min(vr,Pr),Qn=Math.max(Qn,Pr),l.push(_o($n.key,C,Kr,Or))}if(l.length){if(Ps){if(Ps<70){const qn=l[0].flags;qn.dependsOn=2,qn.isNonSync=0}}else if(ka&&Qn-vr<pr-hr&&$t/pr<.025&&l[0].cts===0){this.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let qn=L;for(let $n=0,kr=l.length;$n<kr;$n++){const Kr=qn+l[$n].duration,Pr=qn+l[$n].cts;if($n<kr-1){const Or=Kr+l[$n+1].cts;l[$n].duration=Or-Pr}else l[$n].duration=$n?l[$n-1].duration:$t;l[$n].cts=0,qn=Kr}}}C=tr||!C?$t:C;const mr=te+C;this.nextVideoTs=m=mr-h,this.videoSampleDuration=C,this.isVideoContiguous=!0;const wr={data1:rn.moof(e.sequenceNumber++,L,p(e,{samples:l})),data2:Xt,startPTS:(J-h)/i,endPTS:(Ce+C-h)/i,startDTS:(L-h)/i,endDTS:m/i,type:"video",hasAudio:!1,hasVideo:!0,nb:l.length,dropped:e.dropped};return e.samples=[],e.dropped=0,wr}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return eu;case"ac3":return tu;default:return $l}}remuxAudio(e,t,n,r,i){const s=e.inputTimeScale,l=e.samplerate?e.samplerate:s,c=s/l,u=this.getSamplesPerFrame(e),h=u*c,m=this._initPTS,x=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,C=[],L=i!==void 0;let te=e.samples,J=x?0:8,Ce=this.nextAudioTs||-1;const ht=m.baseTime*s/m.timescale,rt=ht+t*s;if(this.isAudioContiguous=n=n||te.length&&Ce>0&&(r&&Math.abs(rt-(Ce+ht))<9e3||Math.abs(Ii(te[0].pts,rt)-(Ce+ht))<20*h),te.forEach(function(Qn){Qn.pts=Ii(Qn.pts,rt)}),!n||Ce<0){if(te=te.filter(Qn=>Qn.pts>=0),!te.length)return;i===0?Ce=0:r&&!L?Ce=Math.max(0,rt-ht):Ce=te[0].pts-ht}if(e.segmentCodec==="aac"){const Qn=this.config.maxAudioFramesDrift;for(let mr=0,sr=Ce+ht;mr<te.length;mr++){const gr=te[mr],wr=gr.pts,qn=wr-sr,$n=Math.abs(1e3*qn/s);if(qn<=-Qn*h&&L)mr===0&&(this.warn(`Audio frame @ ${(wr/s).toFixed(3)}s overlaps marker by ${Math.round(1e3*qn/s)} ms.`),this.nextAudioTs=Ce=wr-ht,sr=wr);else if(qn>=Qn*h&&$n<ql&&L){let kr=Math.round(qn/h);for(sr=wr-kr*h;sr<0&&kr&&h;)kr--,sr+=h;mr===0&&(this.nextAudioTs=Ce=sr-ht),this.warn(`Injecting ${kr} audio frames @ ${((sr-ht)/s).toFixed(3)}s due to ${Math.round(1e3*qn/s)} ms gap.`);for(let Kr=0;Kr<kr;Kr++){let Pr=Xl.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);Pr||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),Pr=gr.unit.subarray()),te.splice(mr,0,{unit:Pr,pts:sr}),sr+=h,mr++}}gr.pts=sr,sr+=h}}let Ut=null,$t=null,_n,Yt=0,un=te.length;for(;un--;)Yt+=te[un].unit.byteLength;for(let Qn=0,mr=te.length;Qn<mr;Qn++){const sr=te[Qn],gr=sr.unit;let wr=sr.pts;if($t!==null){const $n=C[Qn-1];$n.duration=Math.round((wr-$t)/c)}else if(n&&e.segmentCodec==="aac"&&(wr=Ce+ht),Ut=wr,Yt>0){Yt+=J;try{_n=new Uint8Array(Yt)}catch($n){this.observer.emit(d.ERROR,d.ERROR,{type:ae.MUX_ERROR,details:B.REMUX_ALLOC_ERROR,fatal:!1,error:$n,bytes:Yt,reason:`fail allocating audio mdat ${Yt}`});return}x||(new DataView(_n.buffer).setUint32(0,Yt),_n.set(rn.types.mdat,4))}else return;_n.set(gr,J);const qn=gr.byteLength;J+=qn,C.push(_o(!0,u,qn,0)),$t=wr}const fn=C.length;if(!fn)return;const Xt=C[C.length-1];Ce=$t-ht,this.nextAudioTs=Ce+c*Xt.duration;const An=x?new Uint8Array(0):rn.moof(e.sequenceNumber++,Ut/c,p({},e,{samples:C}));e.samples=[];const tr=(Ut-ht)/s,hr=Ce/s,pr={data1:An,data2:_n,startPTS:tr,endPTS:hr,startDTS:tr,endDTS:hr,type:"audio",hasAudio:!0,hasVideo:!1,nb:fn};return this.isAudioContiguous=!0,pr}}function Ii(a,e){let t;if(e===null)return a;for(e<a?t=-8589934592:t=8589934592;Math.abs(a-e)>4294967296;)a+=t;return a}function nu(a){for(let e=0;e<a.length;e++)if(a[e].key)return e;return-1}function Eo(a,e,t,n){const r=a.samples.length;if(!r)return;const i=a.inputTimeScale;for(let l=0;l<r;l++){const c=a.samples[l];c.pts=Ii(c.pts-t.baseTime*i/t.timescale,e*i)/i,c.dts=Ii(c.dts-n.baseTime*i/n.timescale,e*i)/i}const s=a.samples;return a.samples=[],{samples:s}}function bo(a,e,t){const n=a.samples.length;if(!n)return;const r=a.inputTimeScale;for(let s=0;s<n;s++){const l=a.samples[s];l.pts=Ii(l.pts-t.baseTime*r/t.timescale,e*r)/r}a.samples.sort((s,l)=>s.pts-l.pts);const i=a.samples;return a.samples=[],{samples:i}}class ru extends ${constructor(e,t,n,r){super("passthrough-remuxer",r),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.isVideoContiguous=!1}destroy(){}resetTimeStamp(e){this.lastEndTime=null;const t=this.initPTS;t&&e&&t.baseTime===e.baseTime&&t.timescale===e.timescale||(this.initPTS=e)}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(e,t,n,r){this.audioCodec=t,this.videoCodec=n,this.generateInitSegment(e,r),this.emitInitSegment=!0}generateInitSegment(e,t){let{audioCodec:n,videoCodec:r}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const{audio:i,video:s}=this.initData=Qe(e);if(t)ye(e,t);else{const c=i||s;c!=null&&c.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${c.codec}")!`)}i&&(n=xo(i,O.AUDIO,this)),s&&(r=xo(s,O.VIDEO,this));const l={};i&&s?l.audiovideo={container:"video/mp4",codec:n+","+r,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:i?l.audio={container:"audio/mp4",codec:n,encrypted:i.encrypted,initSegment:e,id:"audio"}:s?l.video={container:"video/mp4",codec:r,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:e,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=l}remux(e,t,n,r,i,s){var l,c;let{initPTS:u,lastEndTime:h}=this;const m={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};f(h)||(h=this.lastEndTime=i||0);const x=t.samples;if(!x.length)return m;const C={initPTS:void 0,timescale:void 0,trackId:void 0};let L=this.initData;if((l=L)!=null&&l.length||(this.generateInitSegment(x),L=this.initData),!((c=L)!=null&&c.length))return this.warn("Failed to generate initSegment."),m;this.emitInitSegment&&(C.tracks=this.initTracks,this.emitInitSegment=!1);const te=Ve(x,L,this),J=L.audio?te[L.audio.id]:null,Ce=L.video?te[L.video.id]:null,ht=oa(Ce,1/0),rt=oa(J,1/0),Ut=oa(Ce,0,!0),$t=oa(J,0,!0);let _n=i,Yt=0;const un=J&&(!Ce||!u&&rt<ht||u&&u.trackId===L.audio.id),fn=un?J:Ce;if(fn){const sr=fn.timescale,gr=fn.start-i*sr,wr=un?L.audio.id:L.video.id;_n=fn.start/sr,Yt=un?$t-rt:Ut-ht,(s||!u)&&(iu(u,_n,i,Yt)||sr!==u.timescale)&&(u&&this.warn(`Timestamps at playlist time: ${s?"":"~"}${i} ${gr/sr} != initPTS: ${u.baseTime/u.timescale} (${u.baseTime}/${u.timescale}) trackId: ${u.trackId}`),this.log(`Found initPTS at playlist time: ${i} offset: ${_n-i} (${gr}/${sr}) trackId: ${wr}`),u=null,C.initPTS=gr,C.timescale=sr,C.trackId=wr)}else this.warn(`No audio or video samples found for initPTS at playlist time: ${i}`);u?(C.initPTS=u.baseTime,C.timescale=u.timescale,C.trackId=u.trackId):((!C.timescale||C.trackId===void 0||C.initPTS===void 0)&&(this.warn("Could not set initPTS"),C.initPTS=_n,C.timescale=1,C.trackId=-1),this.initPTS=u={baseTime:C.initPTS,timescale:C.timescale,trackId:C.trackId});const Xt=_n-u.baseTime/u.timescale,An=Xt+Yt;Yt>0?this.lastEndTime=An:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const tr=!!L.audio,hr=!!L.video;let vr="";tr&&(vr+="audio"),hr&&(vr+="video");const pr=(L.audio?L.audio.encrypted:!1)||(L.video?L.video.encrypted:!1),Qn={data1:x,startPTS:Xt,startDTS:Xt,endPTS:An,endDTS:An,type:vr,hasAudio:tr,hasVideo:hr,nb:1,dropped:0,encrypted:pr};m.audio=tr&&!hr?Qn:void 0,m.video=hr?Qn:void 0;const mr=Ce==null?void 0:Ce.sampleCount;if(mr){const sr=Ce.keyFrameIndex,gr=sr!==-1;Qn.nb=mr,Qn.dropped=sr===0||this.isVideoContiguous?0:gr?sr:mr,Qn.independent=gr,Qn.firstKeyFrame=sr,gr&&Ce.keyFrameStart&&(Qn.firstKeyFramePTS=(Ce.keyFrameStart-u.baseTime)/u.timescale),this.isVideoContiguous||(m.independent=gr),this.isVideoContiguous||(this.isVideoContiguous=gr),Qn.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${sr}/${mr} dropped: ${Qn.dropped} start: ${Qn.firstKeyFramePTS||"NA"}`)}return m.initSegment=C,m.id3=Eo(n,i,u,u),r.samples.length&&(m.text=bo(r,i,u)),m}}function oa(a,e,t=!1){return(a==null?void 0:a.start)!==void 0?(a.start+(t?a.duration:0))/a.timescale:e}function iu(a,e,t,n){if(a===null)return!0;const r=Math.max(n,1),i=e-a.baseTime/a.timescale;return Math.abs(i-t)>r}function xo(a,e,t){const n=a.codec;return n&&n.length>4?n:e===O.AUDIO?n==="ec-3"||n==="ac-3"||n==="alac"?n:n==="fLaC"||n==="Opus"?he(n,!1):(t.warn(`Unhandled audio codec "${n}" in mp4 MAP`),n||"mp4a"):(t.warn(`Unhandled video codec "${n}" in mp4 MAP`),n||"avc1")}let rs;try{rs=self.performance.now.bind(self.performance)}catch(a){rs=Date.now}const la=[{demux:jl,remux:ru},{demux:fs,remux:aa},{demux:Ul,remux:aa},{demux:Kl,remux:aa}];la.splice(2,0,{demux:Zl,remux:aa});class So{constructor(e,t,n,r,i,s){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=e,this.typeSupported=t,this.config=n,this.id=i,this.logger=s}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,n,r){const i=n.transmuxing;i.executeStart=rs();let s=new Uint8Array(e);const{currentTransmuxState:l,transmuxConfig:c}=this;r&&(this.currentTransmuxState=r);const{contiguous:u,discontinuity:h,trackSwitch:m,accurateTimeOffset:x,timeOffset:C,initSegmentChange:L}=r||l,{audioCodec:te,videoCodec:J,defaultInitPts:Ce,duration:ht,initSegmentData:rt}=c,Ut=su(s,t);if(Ut&&zr(Ut.method)){const un=this.getDecrypter(),fn=Vr(Ut.method);if(un.isSync()){let Xt=un.softwareDecrypt(s,Ut.key.buffer,Ut.iv.buffer,fn);if(n.part>-1){const tr=un.flush();Xt=tr&&tr.buffer}if(!Xt)return i.executeEnd=rs(),Pa(n);s=new Uint8Array(Xt)}else return this.asyncResult=!0,this.decryptionPromise=un.webCryptoDecrypt(s,Ut.key.buffer,Ut.iv.buffer,fn).then(Xt=>{const An=this.push(Xt,null,n);return this.decryptionPromise=null,An}),this.decryptionPromise}const $t=this.needsProbing(h,m);if($t){const un=this.configureTransmuxer(s);if(un)return this.logger.warn(`[transmuxer] ${un.message}`),this.observer.emit(d.ERROR,d.ERROR,{type:ae.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!1,error:un,reason:un.message}),i.executeEnd=rs(),Pa(n)}(h||m||L||$t)&&this.resetInitSegment(rt,te,J,ht,t),(h||L||$t)&&this.resetInitialTimestamp(Ce),u||this.resetContiguity();const _n=this.transmux(s,Ut,C,x,n);this.asyncResult=Ys(_n);const Yt=this.currentTransmuxState;return Yt.contiguous=!0,Yt.discontinuity=!1,Yt.trackSwitch=!1,i.executeEnd=rs(),_n}flush(e){const t=e.transmuxing;t.executeStart=rs();const{decrypter:n,currentTransmuxState:r,decryptionPromise:i}=this;if(i)return this.asyncResult=!0,i.then(()=>this.flush(e));const s=[],{timeOffset:l}=r;if(n){const m=n.flush();m&&s.push(this.push(m.buffer,null,e))}const{demuxer:c,remuxer:u}=this;if(!c||!u){t.executeEnd=rs();const m=[Pa(e)];return this.asyncResult?Promise.resolve(m):m}const h=c.flush(l);return Ys(h)?(this.asyncResult=!0,h.then(m=>(this.flushRemux(s,m,e),s))):(this.flushRemux(s,h,e),this.asyncResult?Promise.resolve(s):s)}flushRemux(e,t,n){const{audioTrack:r,videoTrack:i,id3Track:s,textTrack:l}=t,{accurateTimeOffset:c,timeOffset:u}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${n.sn}${n.part>-1?" part: "+n.part:""} of ${this.id===ne.MAIN?"level":"track"} ${n.level}`);const h=this.remuxer.remux(r,i,s,l,u,c,!0,this.id);e.push({remuxResult:h,chunkMeta:n}),n.transmuxing.executeEnd=rs()}resetInitialTimestamp(e){const{demuxer:t,remuxer:n}=this;!t||!n||(t.resetTimeStamp(e),n.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,n,r,i){const{demuxer:s,remuxer:l}=this;!s||!l||(s.resetInitSegment(e,t,n,r),l.resetInitSegment(e,t,n,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,n,r,i){let s;return t&&t.method==="SAMPLE-AES"?s=this.transmuxSampleAes(e,t,n,r,i):s=this.transmuxUnencrypted(e,n,r,i),s}transmuxUnencrypted(e,t,n,r){const{audioTrack:i,videoTrack:s,id3Track:l,textTrack:c}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,s,l,c,t,n,!1,this.id),chunkMeta:r}}transmuxSampleAes(e,t,n,r,i){return this.demuxer.demuxSampleAes(e,t,n).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,n,r,!1,this.id),chunkMeta:i}))}configureTransmuxer(e){const{config:t,observer:n,typeSupported:r}=this;let i;for(let m=0,x=la.length;m<x;m++){var s;if((s=la[m].demux)!=null&&s.probe(e,this.logger)){i=la[m];break}}if(!i)return new Error("Failed to find demuxer by probing fragment data");const l=this.demuxer,c=this.remuxer,u=i.remux,h=i.demux;(!c||!(c instanceof u))&&(this.remuxer=new u(n,t,r,this.logger)),(!l||!(l instanceof h))&&(this.demuxer=new h(n,t,r,this.logger),this.probe=h.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new gn(this.config)),e}}function su(a,e){let t=null;return a.byteLength>0&&(e==null?void 0:e.key)!=null&&e.iv!==null&&e.method!=null&&(t=e),t}const Pa=a=>({remuxResult:{},chunkMeta:a});function Ys(a){return"then"in a&&a.then instanceof Function}class au{constructor(e,t,n,r,i){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=e,this.videoCodec=t,this.initSegmentData=n,this.duration=r,this.defaultInitPts=i||null}}class ou{constructor(e,t,n,r,i,s){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=e,this.contiguous=t,this.accurateTimeOffset=n,this.trackSwitch=r,this.timeOffset=i,this.initSegmentChange=s}}let wo=0;class Ao{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=wo++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=c=>{const u=c.data,h=this.hls;if(!(!h||!(u!=null&&u.event)||u.instanceNo!==this.instanceNo))switch(u.event){case"init":{var m;const x=(m=this.workerContext)==null?void 0:m.objectURL;x&&self.URL.revokeObjectURL(x);break}case"transmuxComplete":{this.handleTransmuxComplete(u.data);break}case"flush":{this.onFlush(u.data);break}case"workerLog":{h.logger[u.data.logType]&&h.logger[u.data.logType](u.data.message);break}default:{u.data=u.data||{},u.data.frag=this.frag,u.data.part=this.part,u.data.id=this.id,h.trigger(u.event,u.data);break}}},this.onWorkerError=c=>{if(!this.hls)return;const u=new Error(`${c.message} (${c.filename}:${c.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:u})};const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=n,this.onFlush=r;const s=(c,u)=>{u=u||{},u.frag=this.frag||void 0,c===d.ERROR&&(u=u,u.parent=this.id,u.part=this.part,this.error=u.error),this.hls.trigger(c,u)};this.observer=new Vi,this.observer.on(d.FRAG_DECRYPTED,s),this.observer.on(d.ERROR,s);const l=nt(i.preferManagedMediaSource);if(this.useWorker&&typeof Worker!="undefined"){const c=this.hls.logger;if(i.workerPath||ba()){try{i.workerPath?(c.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=ea(i.workerPath)):(c.log(`injecting Web Worker for "${t}"`),this.workerContext=$s());const{worker:h}=this.workerContext;h.addEventListener("message",this.onWorkerMessage),h.addEventListener("error",this.onWorkerError),h.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:l,id:t,config:At(i)})}catch(h){c.warn(`Error setting up "${t}" Web Worker, fallback to inline`,h),this.terminateWorker(),this.error=null,this.transmuxer=new So(this.observer,l,i,"",t,e.logger)}return}}this.transmuxer=new So(this.observer,l,i,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=wo++;const t=this.hls.config,n=nt(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,config:At(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),xa(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const t=this.transmuxer;t&&(t.destroy(),this.transmuxer=null)}const e=this.observer;e&&e.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(e,t,n,r,i,s,l,c,u,h){var m,x;u.transmuxing.start=self.performance.now();const{instanceNo:C,transmuxer:L}=this,te=s?s.start:i.start,J=i.decryptdata,Ce=this.frag,ht=!(Ce&&i.cc===Ce.cc),rt=!(Ce&&u.level===Ce.level),Ut=Ce?u.sn-Ce.sn:-1,$t=this.part?u.part-this.part.index:-1,_n=Ut===0&&u.id>1&&u.id===(Ce==null?void 0:Ce.stats.chunkCount),Yt=!rt&&(Ut===1||Ut===0&&($t===1||_n&&$t<=0)),un=self.performance.now();(rt||Ut||i.stats.parsing.start===0)&&(i.stats.parsing.start=un),s&&($t||!Yt)&&(s.stats.parsing.start=un);const fn=!(Ce&&((m=i.initSegment)==null?void 0:m.url)===((x=Ce.initSegment)==null?void 0:x.url)),Xt=new ou(ht,Yt,c,rt,te,fn);if(!Yt||ht||fn){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${i.type} sn: ${u.sn}${u.part>-1?" part: "+u.part:""} ${this.id===ne.MAIN?"level":"track"}: ${u.level} id: ${u.id}
discontinuity: ${ht}
trackSwitch: ${rt}
contiguous: ${Yt}
accurateTimeOffset: ${c}
timeOffset: ${te}
initSegmentChange: ${fn}`);const An=new au(n,r,t,l,h);this.configureTransmuxer(An)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:C,cmd:"demux",data:e,decryptdata:J,chunkMeta:u,state:Xt},e instanceof ArrayBuffer?[e]:[]);else if(L){const An=L.push(e,J,u,Xt);Ys(An)?An.then(tr=>{this.handleTransmuxComplete(tr)}).catch(tr=>{this.transmuxerError(tr,u,"transmuxer-interface push error")}):this.handleTransmuxComplete(An)}}flush(e){e.transmuxing.start=self.performance.now();const{instanceNo:t,transmuxer:n}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(n){const r=n.flush(e);Ys(r)?r.then(i=>{this.handleFlushResult(i,e)}).catch(i=>{this.transmuxerError(i,e,"transmuxer-interface flush error")}):this.handleFlushResult(r,e)}}transmuxerError(e,t,n){this.hls&&(this.error=e,this.hls.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:n}))}handleFlushResult(e,t){e.forEach(n=>{this.handleTransmuxComplete(n)}),this.onFlush(t)}configureTransmuxer(e){const{instanceNo:t,transmuxer:n}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):n&&n.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const Co=100;class lu extends ii{constructor(e,t,n){super(e,t,n,"audio-stream-controller",ne.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(d.LEVEL_LOADED,this.onLevelLoaded,this),e.on(d.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(d.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(d.BUFFER_RESET,this.onBufferReset,this),e.on(d.BUFFER_CREATED,this.onBufferCreated,this),e.on(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(d.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(d.FRAG_LOADING,this.onFragLoading,this),e.on(d.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:e}=this;e&&(super.unregisterListeners(),e.off(d.LEVEL_LOADED,this.onLevelLoaded,this),e.off(d.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(d.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(d.BUFFER_RESET,this.onBufferReset,this),e.off(d.BUFFER_CREATED,this.onBufferCreated,this),e.off(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(d.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(d.FRAG_LOADING,this.onFragLoading,this),e.off(d.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i,trackId:s}){if(n===ne.MAIN){const l=t.cc,c=this.fragCurrent;if(this.initPTS[l]={baseTime:r,timescale:i,trackId:s},this.log(`InitPTS for cc: ${l} found from main: ${r/i} (${r}/${i}) trackId: ${s}`),this.mainAnchor=t,this.state===hn.WAITING_INIT_PTS){const u=this.waitingData;(!u&&!this.loadingParts||u&&u.frag.cc!==l)&&this.syncWithAnchor(t,u==null?void 0:u.frag)}else!this.hls.hasEnoughToStart&&c&&c.cc!==l?(c.abortRequests(),this.syncWithAnchor(t,c)):this.state===hn.IDLE&&this.tick()}}getLoadPosition(){return!this.startFragRequested&&this.nextLoadPosition>=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(e,t){var n;const r=((n=this.mainFragLoading)==null?void 0:n.frag)||null;if(t&&(r==null?void 0:r.cc)===t.cc)return;const i=(r||e).cc,s=this.getLevelDetails(),l=this.getLoadPosition(),c=yn(s,i,l);c&&(this.log(`Syncing with main frag at ${c.start} cc ${c.cc}`),this.startFragRequested=!1,this.nextLoadPosition=c.start,this.resetLoadingState(),this.state===hn.IDLE&&this.doTickIdle())}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=hn.STOPPED;return}const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(Co),n>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=hn.IDLE):this.state=hn.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case hn.IDLE:this.doTickIdle();break;case hn.WAITING_TRACK:{const{levels:t,trackId:n}=this,r=t==null?void 0:t[n],i=r==null?void 0:r.details;if(i&&!this.waitForLive(r)){if(this.waitForCdnTuneIn(i))break;this.state=hn.WAITING_INIT_PTS}break}case hn.FRAG_LOADING_WAITING_RETRY:{var e;const t=performance.now(),n=this.retryDate;if(!n||t>=n||(e=this.media)!=null&&e.seeking){const{levels:r,trackId:i}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((r==null?void 0:r[i])||null),this.state=hn.IDLE}break}case hn.WAITING_INIT_PTS:{const t=this.waitingData;if(t){const{frag:n,part:r,cache:i,complete:s}=t,l=this.mainAnchor;if(this.initPTS[n.cc]!==void 0){this.waitingData=null,this.state=hn.FRAG_LOADING;const c=i.flush().buffer,u={frag:n,part:r,payload:c,networkDetails:null};this._handleFragmentLoadProgress(u),s&&super._handleFragmentLoadComplete(u)}else l&&l.cc!==t.frag.cc&&this.syncWithAnchor(l,t.frag)}else this.state=hn.IDLE}}this.onTickEnd()}resetLoadingState(){const e=this.waitingData;e&&(this.fragmentTracker.removeFragment(e.frag),this.waitingData=null),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){var e;const{hls:t,levels:n,media:r,trackId:i}=this,s=t.config;if(!this.buffering||!r&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||!(n!=null&&n[i]))return;const l=n[i],c=l.details;if(!c||this.waitForLive(l)||this.waitForCdnTuneIn(c)){this.state=hn.WAITING_TRACK,this.startFragRequested=!1;return}const u=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&u&&(this.bufferFlushed=!1,this.afterBufferFlushed(u,O.AUDIO,ne.AUDIO));const h=this.getFwdBufferInfo(u,ne.AUDIO);if(h===null)return;if(!this.switchingTrack&&this._streamEnded(h,c)){t.trigger(d.BUFFER_EOS,{type:"audio"}),this.state=hn.ENDED;return}const m=h.len,x=t.maxBufferLength,C=c.fragments,L=C[0].start,te=this.getLoadPosition(),J=this.flushing?te:h.end;if(this.switchingTrack&&r){const rt=te;c.PTSKnown&&rt<L&&(h.end>L||h.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=L+.05)}if(m>=x&&!this.switchingTrack&&J<C[C.length-1].start)return;let Ce=this.getNextFragment(J,c);if(Ce&&this.isLoopLoading(Ce,J)&&(Ce=this.getNextFragmentLoopLoading(Ce,c,h,ne.MAIN,x)),!Ce){this.bufferFlushed=!0;return}let ht=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&ht&&He(Ce)&&!Ce.endList&&(!c.live||!this.loadingParts&&J<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(ht)===Te.OK&&(this.mainFragLoading=ht=null),ht&&He(ht))){if(Ce.start>ht.end){const Ut=this.fragmentTracker.getFragAtPos(J,ne.MAIN);Ut&&Ut.end>ht.end&&(ht=Ut,this.mainFragLoading={frag:Ut,targetBufferTime:null})}if(Ce.start>ht.end)return}this.loadFragment(Ce,l,J)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new Mt(n))}onAudioTrackSwitching(e,t){const n=!!t.url;this.trackId=t.id;const{fragCurrent:r}=this;r&&(r.abortRequests(),this.removeUnbufferedFrags(r.start)),this.resetLoadingState(),n?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==hn.STOPPED&&(this.setInterval(Co),this.state=hn.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=t,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(e,t){this.mainDetails=t.details;const n=this.cachedTrackLoadedData;n&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(d.AUDIO_TRACK_LOADED,n))}onAudioTrackLoaded(e,t){var n;const{levels:r}=this,{details:i,id:s,groupId:l,track:c}=t;if(!r){this.warn(`Audio tracks reset while loading track ${s} "${c.name}" of "${l}"`);return}const u=this.mainDetails;if(!u||i.endCC>u.endCC||u.expired){this.cachedTrackLoadedData=t,this.state!==hn.STOPPED&&(this.state=hn.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${c.name}" of "${l}" loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const h=r[s];let m=0;if(i.live||(n=h.details)!=null&&n.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;if(h.details){var x;m=this.alignPlaylists(i,h.details,(x=this.levelLastLoaded)==null?void 0:x.details)}i.alignedSliding||(vs(i,u),i.alignedSliding||jr(i,u),m=i.fragmentStart)}h.details=i,this.levelLastLoaded=h,this.startFragRequested||this.setStartPosition(u,m),this.hls.trigger(d.AUDIO_TRACK_UPDATED,{details:i,id:s,groupId:t.groupId}),this.state===hn.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=hn.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{config:s,trackId:l,levels:c}=this;if(!c){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const u=c[l];if(!u){this.warn("Audio track is undefined on fragment load progress");return}const h=u.details;if(!h){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}const m=s.defaultAudioCodec||u.audioCodec||"mp4a.40.2";let x=this.transmuxer;x||(x=this.transmuxer=new Ao(this.hls,ne.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const C=this.initPTS[n.cc],L=(t=n.initSegment)==null?void 0:t.data;if(C!==void 0){const J=r?r.index:-1,Ce=J!==-1,ht=new Gn(n.level,n.sn,n.stats.chunkCount,i.byteLength,J,Ce);x.push(i,L,m,"",n,r,h.totalduration,!1,ht,C)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${h.startSN} ,${h.endSN}],track ${l}`);const{cache:te}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new bi,complete:!1};te.push(new Uint8Array(i)),this.state!==hn.STOPPED&&(this.state=hn.WAITING_INIT_PTS)}}_handleFragmentLoadComplete(e){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(e)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(e,t){this.bufferFlushed=this.flushing=!1;const n=t.tracks.audio;n&&(this.mediaBuffer=n.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===ne.MAIN&&He(t.frag)&&(this.mainFragLoading=t,this.state===hn.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==ne.AUDIO){!this.audioOnly&&n.type===ne.MAIN&&!n.elementaryStreams.video&&!n.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(He(n)){this.fragPrevious=n;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(d.AUDIO_TRACK_SWITCHED,b({},i)))}this.fragBufferedComplete(n,r),this.media&&this.tick()}onError(e,t){var n;if(t.fatal){this.state=hn.ERROR;return}switch(t.details){case B.FRAG_GAP:case B.FRAG_PARSING_ERROR:case B.FRAG_DECRYPT_ERROR:case B.FRAG_LOAD_ERROR:case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_ERROR:case B.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(ne.AUDIO,t);break;case B.AUDIO_TRACK_LOAD_ERROR:case B.AUDIO_TRACK_LOAD_TIMEOUT:case B.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===hn.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===_e.AUDIO_TRACK&&(this.state=hn.IDLE);break;case B.BUFFER_ADD_CODEC_ERROR:case B.BUFFER_APPEND_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)||this.resetLoadingState();break;case B.BUFFER_FULL_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case B.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==O.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==O.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===hn.ENDED&&(this.state=hn.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,ne.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const n="audio",{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,l=this.getCurrentContext(s);if(!l){this.resetWhenMissingContext(s);return}const{frag:c,part:u,level:h}=l,{details:m}=h,{audio:x,text:C,id3:L,initSegment:te}=i;if(this.fragContextChanged(c)||!m){this.fragmentTracker.removeFragment(c);return}if(this.state=hn.PARSING,this.switchingTrack&&x&&this.completeAudioSwitch(this.switchingTrack),te!=null&&te.tracks){const J=c.initSegment||c;if(this.unhandledEncryptionError(te,c))return;this._bufferInitSegment(h,te.tracks,J,s),r.trigger(d.FRAG_PARSING_INIT_SEGMENT,{frag:J,id:n,tracks:te.tracks})}if(x){const{startPTS:J,endPTS:Ce,startDTS:ht,endDTS:rt}=x;u&&(u.elementaryStreams[O.AUDIO]={startPTS:J,endPTS:Ce,startDTS:ht,endDTS:rt}),c.setElementaryStreamInfo(O.AUDIO,J,Ce,ht,rt),this.bufferFragmentData(x,c,u,s)}if(L!=null&&(t=L.samples)!=null&&t.length){const J=p({id:n,frag:c,details:m},L);r.trigger(d.FRAG_PARSING_METADATA,J)}if(C){const J=p({id:n,frag:c,details:m},C);r.trigger(d.FRAG_PARSING_USERDATA,J)}}_bufferInitSegment(e,t,n,r){if(this.state!==hn.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const i=t.audio;i.id=ne.AUDIO;const s=e.audioCodec;this.log(`Init audio buffer, container:${i.container}, codecs[level/parsed]=[${s}/${i.codec}]`),s&&s.split(",").length===1&&(i.levelCodec=s),this.hls.trigger(d.BUFFER_CODECS,t);const l=i.initSegment;if(l!=null&&l.byteLength){const c={type:"audio",frag:n,part:null,chunkMeta:r,parent:n.type,data:l};this.hls.trigger(d.BUFFER_APPENDING,c)}this.tickImmediate()}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);if(this.switchingTrack||r===Te.NOT_LOADED||r===Te.PARTIAL){var i;if(!He(e))this._loadInitSegment(e,t);else if((i=t.details)!=null&&i.live&&!this.initPTS[e.cc]){this.log(`Waiting for video PTS in continuity counter ${e.cc} of live stream before loading audio fragment ${e.sn} of level ${this.trackId}`),this.state=hn.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==t.details.fragmentStart&&jr(t.details,s)}else super.loadFragment(e,t,n)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:l}=this.bufferedTrack;St({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:l},e,et)||(Tn(e.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=e)}}completeAudioSwitch(e){const{hls:t}=this;this.flushAudioIfNeeded(e),this.bufferedTrack=e,this.switchingTrack=null,t.trigger(d.AUDIO_TRACK_SWITCHED,b({},e))}}class Na extends ${constructor(e,t){super(t,e.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=e}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(e,t,n){const r=t==null?void 0:t.renditionReports;if(r){let i=-1;for(let s=0;s<r.length;s++){const l=r[s];let c;try{c=new self.URL(l.URI,t.url).href}catch(u){this.warn(`Could not construct new URL for Rendition Report: ${u}`),c=l.URI||""}if(c===e){i=s;break}else c===e.substring(0,c.length)&&(i=s)}if(i!==-1){const s=r[i],l=parseInt(s["LAST-MSN"])||t.lastPartSn;let c=parseInt(s["LAST-PART"])||t.lastPartIndex;if(this.hls.config.lowLatencyMode){const h=Math.min(t.age-t.partTarget,t.targetduration);c>=0&&h>t.partTarget&&(c+=1)}const u=n&&dt(n);return new mt(l,c>=0?c:void 0,u)}}}loadPlaylist(e){this.clearTimer()}loadingPlaylist(e,t){this.clearTimer()}shouldLoadPlaylist(e){return this.canLoad&&!!e&&!!e.url&&(!e.details||e.details.live)}getUrlWithDirectives(e,t){if(t)try{return t.addDirectives(e)}catch(n){this.warn(`Could not construct new URL with HLS Delivery Directives: ${n}`)}return e}playlistLoaded(e,t,n){const{details:r,stats:i}=t,s=self.performance.now(),l=i.loading.first?Math.max(0,s-i.loading.first):0;r.advancedDateTime=Date.now()-l;const c=this.hls.config.timelineOffset;if(c!==r.appliedTimelineOffset){const h=Math.max(c||0,0);r.appliedTimelineOffset=h,r.fragments.forEach(m=>{m.setStart(m.playlistOffset+h)})}if(r.live||n!=null&&n.live){const h="levelInfo"in t?t.levelInfo:t.track;if(r.reloaded(n),n&&r.fragments.length>0){ls(n,r,this);const ht=r.playlistParsingError;if(ht){this.warn(ht);const rt=this.hls;if(!rt.config.ignorePlaylistParsingErrors){var u;const{networkDetails:Ut}=t;rt.trigger(d.ERROR,{type:ae.NETWORK_ERROR,details:B.LEVEL_PARSING_ERROR,fatal:!1,url:r.url,error:ht,reason:ht.message,level:t.level||void 0,parent:(u=r.fragments[0])==null?void 0:u.type,networkDetails:Ut,stats:i});return}r.playlistParsingError=null}}r.requestScheduled===-1&&(r.requestScheduled=i.loading.start);const m=this.hls.mainForwardBufferInfo,x=m?m.end-m.len:0,C=(r.edge-x)*1e3,L=Qr(r,C);if(r.requestScheduled+L<s?r.requestScheduled=s:r.requestScheduled+=L,this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),!this.canLoad||!r.live)return;let te,J,Ce;if(r.canBlockReload&&r.endSN&&r.advanced){const ht=this.hls.config.lowLatencyMode,rt=r.lastPartSn,Ut=r.endSN,$t=r.lastPartIndex,_n=$t!==-1,Yt=rt===Ut;_n?Yt?(J=Ut+1,Ce=ht?0:$t):(J=rt,Ce=ht?$t+1:r.maxPartIndex):J=Ut+1;const un=r.age,fn=un+r.ageHeader;let Xt=Math.min(fn-r.partTarget,r.targetduration*1.5);if(Xt>0){if(fn>r.targetduration*3)this.log(`Playlist last advanced ${un.toFixed(2)}s ago. Omitting segment and part directives.`),J=void 0,Ce=void 0;else if(n!=null&&n.tuneInGoal&&fn-r.partTarget>n.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${n.tuneInGoal} to: ${Xt} with playlist age: ${r.age}`),Xt=0;else{const An=Math.floor(Xt/r.targetduration);if(J+=An,Ce!==void 0){const tr=Math.round(Xt%r.targetduration/r.partTarget);Ce+=tr}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${un.toFixed(2)}s goal: ${Xt} skip sn ${An} to part ${Ce}`)}r.tuneInGoal=Xt}if(te=this.getDeliveryDirectives(r,t.deliveryDirectives,J,Ce),ht||!Yt){r.requestScheduled=s,this.loadingPlaylist(h,te);return}}else(r.canBlockReload||r.canSkipUntil)&&(te=this.getDeliveryDirectives(r,t.deliveryDirectives,J,Ce));te&&J!==void 0&&r.canBlockReload&&(r.requestScheduled=i.loading.first+Math.max(L-l*2,L/2)),this.scheduleLoading(h,te,r)}else this.clearTimer()}scheduleLoading(e,t,n){const r=n||e.details;if(!r){this.loadingPlaylist(e,t);return}const i=self.performance.now(),s=r.requestScheduled;if(i>=s){this.loadingPlaylist(e,t);return}const l=s-i;this.log(`reload live playlist ${e.name||e.bitrate+"bps"} in ${Math.round(l)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(e,t),l)}getDeliveryDirectives(e,t,n,r){let i=dt(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=Re.No),new mt(n,r,i)}checkRetry(e){const t=e.details,n=kn(e),r=e.errorAction,{action:i,retryCount:s=0,retryConfig:l}=r||{},c=!!r&&!!l&&(i===Un.RetryRequest||!r.resolved&&i===Un.SendAlternateToPenaltyBox);if(c){var u;if(s>=l.maxNumRetry)return!1;if(n&&(u=e.context)!=null&&u.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const h=En(l,s);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),h),this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${t}" in ${h}ms`)}e.levelRetry=!0,r.resolved=!0}return c}}function To(a,e){if(a.length!==e.length)return!1;for(let t=0;t<a.length;t++)if(!Xs(a[t].attrs,e[t].attrs))return!1;return!0}function Xs(a,e,t){const n=a["STABLE-RENDITION-ID"];return n&&!t?n===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(r=>a[r]!==e[r])}function Ma(a,e){return e.label.toLowerCase()===a.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(a.lang||"").toLowerCase())}class uu extends Na{constructor(e){super(e,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:e}=this;e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.LEVEL_LOADING,this.onLevelLoading,this),e.on(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(d.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.LEVEL_LOADING,this.onLevelLoading,this),e.off(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(d.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(d.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.audioTracks||[]}onAudioTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r){this.warn(`Audio track with id:${n} and group:${r} not found in active group ${s==null?void 0:s.groupId}`);return}const l=s.details;s.details=t.details,this.log(`Audio track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,l)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.audioGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(l=>(r==null?void 0:r.indexOf(l))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const l=this.tracks.filter(x=>!n||n.indexOf(x.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(x=>x.default)&&(this.selectDefaultTrack=!1),l.forEach((x,C)=>{x.id=C});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const c=this.hls.config.audioPreference;if(!i&&c){const x=ft(c,l,et);if(x>-1)i=l[x];else{const C=ft(c,this.tracks);i=this.tracks[C]}}let u=this.findTrackId(i);u===-1&&i&&(u=this.findTrackId(null));const h={audioTracks:l};this.log(`Updating audio tracks, ${l.length} track(s) found in group(s): ${n==null?void 0:n.join(",")}`),this.hls.trigger(d.AUDIO_TRACKS_UPDATED,h);const m=this.trackId;if(u!==-1&&m===-1)this.setAudioTrack(u);else if(l.length&&m===-1){var s;const x=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${l.length}`);this.warn(x.message),this.hls.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:x})}}}onError(e,t){t.fatal||!t.context||t.context.type===_e.AUDIO_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(e){this.selectDefaultTrack=!1,this.setAudioTrack(e)}setAudioOption(e){const t=this.hls;if(t.config.audioPreference=e,e){const n=this.allAudioTracks;if(this.selectDefaultTrack=!1,n.length){const r=this.currentTrack;if(r&&St(e,r,et))return r;const i=ft(e,this.tracksInGroup,et);if(i>-1){const s=this.tracksInGroup[i];return this.setAudioTrack(i),s}else if(r){let s=t.loadLevel;s===-1&&(s=t.firstAutoLevel);const l=ln(e,t.levels,n,s,et);if(l===-1)return null;t.nextLoadLevel=l}if(e.channels||e.audioCodec){const s=ft(e,n);if(s>-1)return n[s]}}}return null}setAudioTrack(e){const t=this.tracksInGroup;if(e<0||e>=t.length){this.warn(`Invalid audio track id: ${e}`);return}this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e],i=r.details&&!r.details.live;if(e===this.trackId&&r===n&&i||(this.log(`Switching to audio-track ${e} "${r.name}" lang:${r.lang} group:${r.groupId} channels:${r.channels}`),this.trackId=e,this.currentTrack=r,this.hls.trigger(d.AUDIO_TRACK_SWITCHING,b({},r)),i))return;const s=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(s)}findTrackId(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(!(this.selectDefaultTrack&&!r.default)&&(!e||St(e,r,et)))return n}if(e){const{name:n,lang:r,assocLang:i,characteristics:s,audioCodec:l,channels:c}=e;for(let u=0;u<t.length;u++){const h=t[u];if(St({name:n,lang:r,assocLang:i,characteristics:s,audioCodec:l,channels:c},h,et))return u}for(let u=0;u<t.length;u++){const h=t[u];if(Xs(e.attrs,h.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return u}for(let u=0;u<t.length;u++){const h=t[u];if(Xs(e.attrs,h.attrs,["LANGUAGE"]))return u}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&Tn(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),s=e.details,l=s==null?void 0:s.age;this.log(`Loading audio-track ${n} "${e.name}" lang:${e.lang} group:${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${l&&s.live?" age "+l.toFixed(1)+(s.type?" "+s.type||0:""):""} ${i}`),this.hls.trigger(d.AUDIO_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}}class cu{constructor(e){this.tracks=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.tracks=e}destroy(){this.tracks=this.queues=null}append(e,t,n){if(this.queues===null||this.tracks===null)return;const r=this.queues[t];r.push(e),r.length===1&&!n&&this.executeNext(t)}appendBlocker(e){return new Promise(t=>{const n={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(n,e)})}prependBlocker(e){return new Promise(t=>{if(this.queues){const n={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(n)}})}removeBlockers(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(e=>{var t;const n=(t=e[0])==null?void 0:t.label;(n==="async-blocker"||n==="async-blocker-prepend")&&(e[0].execute(),e.splice(0,1))})}unblockAudio(e){if(this.queues===null)return;this.queues.audio[0]===e&&this.shiftAndExecuteNext("audio")}executeNext(e){if(this.queues===null||this.tracks===null)return;const t=this.queues[e];if(t.length){const r=t[0];try{r.execute()}catch(i){var n;if(r.onError(i),this.queues===null||this.tracks===null)return;const s=(n=this.tracks[e])==null?void 0:n.buffer;s!=null&&s.updating||this.shiftAndExecuteNext(e)}}}shiftAndExecuteNext(e){this.queues!==null&&(this.queues[e].shift(),this.executeNext(e))}current(e){var t;return((t=this.queues)==null?void 0:t[e][0])||null}toString(){const{queues:e,tracks:t}=this;return e===null||t===null?"<destroyed>":`
${this.list("video")}
${this.list("audio")}
${this.list("audiovideo")}}`}list(e){var t,n;return(t=this.queues)!=null&&t[e]||(n=this.tracks)!=null&&n[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;const n=(t=this.tracks)==null?void 0:t[e],r=n==null?void 0:n.buffer;return r?`SourceBuffer${r.updating?" updating":""}${n.ended?" ended":""}${n.ending?" ending":""}`:"none"}listOps(e){var t;return((t=this.queues)==null?void 0:t[e].map(n=>n.label).join(", "))||""}}const Do=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,Ro="HlsJsTrackRemovedError";class du extends Error{constructor(e){super(e),this.name=Ro}}class fu extends ${constructor(e,t){super("buffer-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=n=>{var r;this.hls&&((r=this.mediaSource)==null?void 0:r.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=n=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=n=>{const{media:r,mediaSource:i}=this;n&&this.log("Media source opened"),!(!r||!i)&&(i.removeEventListener("sourceopen",this._onMediaSourceOpen),r.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(d.MEDIA_ATTACHED,{media:r,mediaSource:i}),this.mediaSource!==null&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:n,_objectUrl:r}=this;n!==r&&this.error(`Media element src was set while attaching MediaSource (${r} > ${n})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=ge(oe(e.config.preferManagedMediaSource)),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:e}=this;e.on(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.BUFFER_RESET,this.onBufferReset,this),e.on(d.BUFFER_APPENDING,this.onBufferAppending,this),e.on(d.BUFFER_CODECS,this.onBufferCodecs,this),e.on(d.BUFFER_EOS,this.onBufferEos,this),e.on(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(d.FRAG_PARSED,this.onFragParsed,this),e.on(d.FRAG_CHANGED,this.onFragChanged,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.BUFFER_RESET,this.onBufferReset,this),e.off(d.BUFFER_APPENDING,this.onBufferAppending,this),e.off(d.BUFFER_CODECS,this.onBufferCodecs,this),e.off(d.BUFFER_EOS,this.onBufferEos,this),e.off(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(d.FRAG_PARSED,this.onFragParsed,this),e.off(d.FRAG_CHANGED,this.onFragChanged,this),e.off(d.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const n={};if(this.operationQueue){const i=this.isUpdating();i||this.operationQueue.removeBlockers();const s=this.isQueued();(i||s)&&this.warn(`Transfering MediaSource with${s?" operations in queue":""}${i?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const r=this.transferData;return!this.sourceBufferCount&&r&&r.mediaSource===t?p(n,r.tracks):this.sourceBuffers.forEach(i=>{const[s]=i;s&&(n[s]=p({},this.tracks[s]),this.removeBuffer(s)),i[0]=i[1]=null}),{media:e,mediaSource:t,tracks:n}}initTracks(){const e={};this.sourceBuffers=[[null,null],[null,null]],this.tracks=e,this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(e,t){var n;let r=2;(t.audio&&!t.video||!t.altAudio)&&(r=1),this.bufferCodecEventsTotal=r,this.log(`${r} bufferCodec event(s) expected.`),(n=this.transferData)!=null&&n.mediaSource&&this.sourceBufferCount&&r&&this.bufferCreated()}onMediaAttaching(e,t){const n=this.media=t.media;this.transferData=this.overrides=void 0;const r=oe(this.appendSource);if(r){const i=!!t.mediaSource;(i||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const s=this.mediaSource=t.mediaSource||new r;if(this.assignMediaSource(s),i)this._objectUrl=n.src,this.attachTransferred();else{const l=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{n.removeAttribute("src");const c=self.ManagedMediaSource;n.disableRemotePlayback=n.disableRemotePlayback||c&&s instanceof c,Io(n),hu(n,l),n.load()}catch(c){n.src=l}else n.src=l}n.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,n;this.log(`${((t=this.transferData)==null?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${(n=e.constructor)==null?void 0:n.name}`),e.addEventListener("sourceopen",this._onMediaSourceOpen),e.addEventListener("sourceended",this._onMediaSourceEnded),e.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(e.addEventListener("startstreaming",this._onStartStreaming),e.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const e=this.media,t=this.transferData;if(!t||!e)return;const n=this.tracks,r=t.tracks,i=r?Object.keys(r):null,s=i?i.length:0,l=()=>{Promise.resolve().then(()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()})};if(r&&i&&s){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal})
required tracks: ${At(n,(c,u)=>c==="initSegment"?void 0:u)};
transfer tracks: ${At(r,(c,u)=>c==="initSegment"?void 0:u)}}`),!me(r,n)){t.mediaSource=null,t.tracks=void 0;const c=e.currentTime,u=this.details,h=Math.max(c,(u==null?void 0:u.fragments[0].start)||0);if(h-c>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${c} -> ${h}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(r)}"->"${Object.keys(n)}") start time: ${h} currentTime: ${c}`),this.onMediaDetaching(d.MEDIA_DETACHING,{}),this.onMediaAttaching(d.MEDIA_ATTACHING,t),e.currentTime=h;return}this.transferData=void 0,i.forEach(c=>{const u=c,h=r[u];if(h){const m=h.buffer;if(m){const x=this.fragmentTracker,C=h.id;if(x.hasFragments(C)||x.hasParts(C)){const J=bn.getBuffered(m);x.detectEvictedFragments(u,J,C,null,!0)}const L=Oa(u),te=[u,m];this.sourceBuffers[L]=te,m.updating&&this.operationQueue&&this.operationQueue.prependBlocker(u),this.trackSourceBuffer(u,h)}}}),l(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),l()}get mediaSourceOpenOrEnded(){var e;const t=(e=this.mediaSource)==null?void 0:e.readyState;return t==="open"||t==="ended"}onMediaDetaching(e,t){const n=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:r,mediaSource:i,_objectUrl:s}=this;if(i){if(this.log(`media source ${n?"transferring":"detaching"}`),n)this.sourceBuffers.forEach(([l])=>{l&&this.removeBuffer(l)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const l=i.readyState==="open";try{const c=i.sourceBuffers;for(let u=c.length;u--;)l&&c[u].abort(),i.removeSourceBuffer(c[u]);l&&i.endOfStream()}catch(c){this.warn(`onMediaDetaching: ${c.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}i.removeEventListener("sourceopen",this._onMediaSourceOpen),i.removeEventListener("sourceended",this._onMediaSourceEnded),i.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(i.removeEventListener("startstreaming",this._onStartStreaming),i.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}r&&(r.removeEventListener("emptied",this._onMediaEmptied),n||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(r.removeAttribute("src"),this.appendSource&&Io(r),r.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(d.MEDIA_DETACHED,t)}onBufferReset(){this.sourceBuffers.forEach(([e])=>{e&&this.resetBuffer(e)}),this.initTracks()}resetBuffer(e){var t;const n=(t=this.tracks[e])==null?void 0:t.buffer;if(this.removeBuffer(e),n)try{var r;(r=this.mediaSource)!=null&&r.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(n)}catch(i){this.warn(`onBufferReset ${e}`,i)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[Oa(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new cu(this.tracks)}onBufferCodecs(e,t){const n=this.tracks,r=Object.keys(t);this.log(`BUFFER_CODECS: "${r}" (current SB count ${this.sourceBufferCount})`);const i="audiovideo"in t&&(n.audio||n.video)||n.audiovideo&&("audio"in t||"video"in t),s=!i&&this.sourceBufferCount&&this.media&&r.some(l=>!n[l]);if(i||s){this.warn(`Unsupported transition between "${Object.keys(n)}" and "${r}" SourceBuffers`);return}r.forEach(l=>{var c,u;const h=t[l],{id:m,codec:x,levelCodec:C,container:L,metadata:te,supplemental:J}=h;let Ce=n[l];const ht=(c=this.transferData)==null||(c=c.tracks)==null?void 0:c[l],rt=ht!=null&&ht.buffer?ht:Ce,Ut=(rt==null?void 0:rt.pendingCodec)||(rt==null?void 0:rt.codec),$t=rt==null?void 0:rt.levelCodec;Ce||(Ce=n[l]={buffer:void 0,listeners:[],codec:x,supplemental:J,container:L,levelCodec:C,metadata:te,id:m});const _n=xe(Ut,$t),Yt=_n==null?void 0:_n.replace(Do,"$1");let un=xe(x,C);const fn=(u=un)==null?void 0:u.replace(Do,"$1");un&&_n&&Yt!==fn&&(l.slice(0,5)==="audio"&&(un=he(un,this.appendSource)),this.log(`switching codec ${Ut} to ${un}`),un!==(Ce.pendingCodec||Ce.codec)&&(Ce.pendingCodec=un),Ce.container=L,this.appendChangeType(l,L,un))}),(this.tracksReady||this.sourceBufferCount)&&(t.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&this.mediaSourceOpenOrEnded&&this.checkPendingTracks()}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((e,t)=>{const n=this.tracks[t];return e[t]={id:n.id,container:n.container,codec:n.codec,levelCodec:n.levelCodec},e},{})}appendChangeType(e,t,n){const r=`${t};codecs=${n}`,i={label:`change-type=${r}`,execute:()=>{const s=this.tracks[e];if(s){const l=s.buffer;l!=null&&l.changeType&&(this.log(`changing ${e} sourceBuffer type to ${r}`),l.changeType(r),s.codec=n,s.container=t)}this.shiftAndExecuteNext(e)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${e} SourceBuffer type`,s)}};this.append(i,e,this.isPending(this.tracks[e]))}blockAudio(e){var t;const n=e.start,r=n+e.duration*.05;if(((t=this.fragmentTracker.getAppendedFrag(n,ne.MAIN))==null?void 0:t.gap)===!0)return;const s={label:"block-audio",execute:()=>{var l;const c=this.tracks.video;(this.lastVideoAppendEnd>r||c!=null&&c.buffer&&bn.isBuffered(c.buffer,r)||((l=this.fragmentTracker.getAppendedFrag(r,ne.MAIN))==null?void 0:l.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:l=>{this.warn("Error executing block-audio operation",l)}};this.blockedAudioAppend={op:s,frag:e},this.append(s,"audio",!0)}unblockAudio(){const{blockedAudioAppend:e,operationQueue:t}=this;e&&t&&(this.blockedAudioAppend=null,t.unblockAudio(e.op))}onBufferAppending(e,t){const{tracks:n}=this,{data:r,type:i,parent:s,frag:l,part:c,chunkMeta:u,offset:h}=t,m=u.buffering[i],{sn:x,cc:C}=l,L=self.performance.now();m.start=L;const te=l.stats.buffering,J=c?c.stats.buffering:null;te.start===0&&(te.start=L),J&&J.start===0&&(J.start=L);const Ce=n.audio;let ht=!1;i==="audio"&&(Ce==null?void 0:Ce.container)==="audio/mpeg"&&(ht=!this.lastMpegAudioChunk||u.id===1||this.lastMpegAudioChunk.sn!==u.sn,this.lastMpegAudioChunk=u);const rt=n.video,Ut=rt==null?void 0:rt.buffer;if(Ut&&x!=="initSegment"){const Yt=c||l,un=this.blockedAudioAppend;if(i==="audio"&&s!=="main"&&!this.blockedAudioAppend&&!(rt.ending||rt.ended)){const Xt=Yt.start+Yt.duration*.05,An=Ut.buffered,tr=this.currentOp("video");!An.length&&!tr?this.blockAudio(Yt):!tr&&!bn.isBuffered(Ut,Xt)&&this.lastVideoAppendEnd<Xt&&this.blockAudio(Yt)}else if(i==="video"){const fn=Yt.end;if(un){const Xt=un.frag.start;(fn>Xt||fn<this.lastVideoAppendEnd||bn.isBuffered(Ut,Xt))&&this.unblockAudio()}this.lastVideoAppendEnd=fn}}const $t=(c||l).start,_n={label:`append-${i}`,execute:()=>{var Yt;m.executeStart=self.performance.now();const un=(Yt=this.tracks[i])==null?void 0:Yt.buffer;un&&(ht?this.updateTimestampOffset(un,$t,.1,i,x,C):h!==void 0&&f(h)&&this.updateTimestampOffset(un,h,1e-6,i,x,C)),this.appendExecutor(r,i)},onStart:()=>{},onComplete:()=>{const Yt=self.performance.now();m.executeEnd=m.end=Yt,te.first===0&&(te.first=Yt),J&&J.first===0&&(J.first=Yt);const un={};this.sourceBuffers.forEach(([fn,Xt])=>{fn&&(un[fn]=bn.getBuffered(Xt))}),this.appendErrors[i]=0,i==="audio"||i==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(d.BUFFER_APPENDED,{type:i,frag:l,part:c,chunkMeta:u,parent:l.type,timeRanges:un})},onError:Yt=>{var un;const fn={type:ae.MEDIA_ERROR,parent:l.type,details:B.BUFFER_APPEND_ERROR,sourceBufferName:i,frag:l,part:c,chunkMeta:u,error:Yt,err:Yt,fatal:!1},Xt=(un=this.media)==null?void 0:un.error;if(Yt.code===DOMException.QUOTA_EXCEEDED_ERR||Yt.name=="QuotaExceededError"||"quota"in Yt)fn.details=B.BUFFER_FULL_ERROR;else if(Yt.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!Xt)fn.errorAction=Ie(!0);else if(Yt.name===Ro&&this.sourceBufferCount===0)fn.errorAction=Ie(!0);else{const An=++this.appendErrors[i];this.warn(`Failed ${An}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${i}" sourceBuffer (${Xt||"no media error"})`),(An>=this.hls.config.appendErrorMaxRetry||Xt)&&(fn.fatal=!0)}this.hls.trigger(d.ERROR,fn)}};this.append(_n,i,this.isPending(this.tracks[i]))}getFlushOp(e,t,n){return this.log(`queuing "${e}" remove ${t}-${n}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,n)},onStart:()=>{},onComplete:()=>{this.hls.trigger(d.BUFFER_FLUSHED,{type:e})},onError:r=>{this.warn(`Failed to remove ${t}-${n} from "${e}" SourceBuffer`,r)}}}onBufferFlushing(e,t){const{type:n,startOffset:r,endOffset:i}=t;n?this.append(this.getFlushOp(n,r,i),n):this.sourceBuffers.forEach(([s])=>{s&&this.append(this.getFlushOp(s,r,i),s)})}onFragParsed(e,t){const{frag:n,part:r}=t,i=[],s=r?r.elementaryStreams:n.elementaryStreams;s[O.AUDIOVIDEO]?i.push("audiovideo"):(s[O.AUDIO]&&i.push("audio"),s[O.VIDEO]&&i.push("video"));const l=()=>{const c=self.performance.now();n.stats.buffering.end=c,r&&(r.stats.buffering.end=c);const u=r?r.stats:n.stats;this.hls.trigger(d.FRAG_BUFFERED,{frag:n,part:r,stats:u,id:n.type})};i.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${n.type} level: ${n.level} sn: ${n.sn}`),this.blockBuffers(l,i).catch(c=>{this.warn(`Fragment buffered callback ${c}`),this.stepOperationQueue(this.sourceBufferTypes)})}onFragChanged(e,t){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([e])=>{if(e){const t=this.tracks[e];if(t)return!t.ended||t.ending}return!1})}onBufferEos(e,t){var n;this.sourceBuffers.forEach(([s])=>{if(s){const l=this.tracks[s];(!t.type||t.type===s)&&(l.ending=!0,l.ended||(l.ended=!0,this.log(`${s} buffer reached EOS`)))}});const r=((n=this.overrides)==null?void 0:n.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([s])=>{var l;return s&&!((l=this.tracks[s])!=null&&l.ended)})?r?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:s}=this;if(!s||s.readyState!=="open"){s&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${s.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),s.endOfStream(),this.hls.trigger(d.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(d.BUFFERED_TO_END,void 0)):t.type==="video"&&this.unblockAudio()}tracksEnded(){this.sourceBuffers.forEach(([e])=>{if(e!==null){const t=this.tracks[e];t&&(t.ending=!1)}})}onLevelUpdated(e,{details:t}){t.fragments.length&&(this.details=t,this.updateDuration())}updateDuration(){this.blockUntilOpen(()=>{const e=this.getDurationAndRange();e&&this.updateMediaSource(e)})}onError(e,t){if(t.details===B.BUFFER_APPEND_ERROR&&t.frag){var n;const r=(n=t.errorAction)==null?void 0:n.nextAutoLevel;f(r)&&r!==t.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:e,details:t,media:n}=this;if(!n||t===null||!this.sourceBufferCount)return;const r=e.config,i=n.currentTime,s=t.levelTargetDuration,l=t.live&&r.liveBackBufferLength!==null?r.liveBackBufferLength:r.backBufferLength;if(f(l)&&l>=0){const u=Math.max(l,s),h=Math.floor(i/s)*s-u;this.flushBackBuffer(i,s,h)}const c=r.frontBufferFlushThreshold;if(f(c)&&c>0){const u=Math.max(r.maxBufferLength,c),h=Math.max(u,s),m=Math.floor(i/s)*s+h;this.flushFrontBuffer(i,s,m)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach(([r,i])=>{if(i){const l=bn.getBuffered(i);if(l.length>0&&n>l.start(0)){var s;this.hls.trigger(d.BACK_BUFFER_REACHED,{bufferEnd:n});const c=this.tracks[r];if((s=this.details)!=null&&s.live)this.hls.trigger(d.LIVE_BACK_BUFFER_REACHED,{bufferEnd:n});else if(c!=null&&c.ended){this.log(`Cannot flush ${r} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(d.BUFFER_FLUSHING,{startOffset:0,endOffset:n,type:r})}}})}flushFrontBuffer(e,t,n){this.sourceBuffers.forEach(([r,i])=>{if(i){const s=bn.getBuffered(i),l=s.length;if(l<2)return;const c=s.start(l-1),u=s.end(l-1);if(n>c||e>=c&&e<=u)return;this.hls.trigger(d.BUFFER_FLUSHING,{startOffset:c,endOffset:1/0,type:r})}})}getDurationAndRange(){var e;const{details:t,mediaSource:n}=this;if(!t||!this.media||(n==null?void 0:n.readyState)!=="open")return null;const r=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&n.setLiveSeekableRange){const u=Math.max(0,t.fragmentStart),h=Math.max(u,r);return{duration:1/0,start:u,end:h}}return{duration:1/0}}const i=(e=this.overrides)==null?void 0:e.duration;if(i)return f(i)?{duration:i}:null;const s=this.media.duration,l=f(n.duration)?n.duration:0;return r>l&&r>s||!f(s)?{duration:r}:null}updateMediaSource({duration:e,start:t,end:n}){const r=this.mediaSource;!this.media||!r||r.readyState!=="open"||(r.duration!==e&&(f(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),r.duration=e),t!==void 0&&n!==void 0&&(this.log(`MediaSource duration is set to ${r.duration}. Setting seekable range to ${t}-${n}.`),r.setLiveSeekableRange(t,n)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:n}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${At(n)}`),this.tracksReady){var r;const i=(r=this.transferData)==null?void 0:r.tracks;i&&Object.keys(i).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach(([t,n])=>{if(t){const r=this.tracks[t];e[t]={buffer:n,container:r.container,codec:r.codec,supplemental:r.supplemental,levelCodec:r.levelCodec,id:r.id,metadata:r.metadata}}}),this.hls.trigger(d.BUFFER_CREATED,{tracks:e}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([t])=>{this.executeNext(t)})}else{const e=new Error("could not create source buffer for media codec(s)");this.hls.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:n}=this;if(!n)throw new Error("createSourceBuffers called when mediaSource was null");for(const i in e){const s=i,l=e[s];if(this.isPending(l)){const c=this.getTrackCodec(l,s),u=`${l.container};codecs=${c}`;l.codec=c,this.log(`creating sourceBuffer(${u})${this.currentOp(s)?" Queued":""} ${At(l)}`);try{const h=n.addSourceBuffer(u),m=Oa(s),x=[s,h];t[m]=x,l.buffer=h}catch(h){var r;this.error(`error while trying to add sourceBuffer: ${h.message}`),this.shiftAndExecuteNext(s),(r=this.operationQueue)==null||r.removeBlockers(),delete this.tracks[s],this.hls.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:h,sourceBufferName:s,mimeType:u,parent:l.id});return}this.trackSourceBuffer(s,l)}}this.bufferCreated()}getTrackCodec(e,t){const n=e.supplemental;let r=e.codec;n&&(t==="video"||t==="audiovideo")&&jt(n,"video")&&(r=ce(r,n));const i=xe(r,e.levelCodec);return i?t.slice(0,5)==="audio"?he(i,this.appendSource):i:""}trackSourceBuffer(e,t){const n=t.buffer;if(!n)return;const r=this.getTrackCodec(t,e);this.tracks[e]={buffer:n,codec:r,container:t.container,levelCodec:t.levelCodec,supplemental:t.supplemental,metadata:t.metadata,id:t.id,listeners:[]},this.removeBufferListeners(e),this.addBufferListener(e,"updatestart",this.onSBUpdateStart),this.addBufferListener(e,"updateend",this.onSBUpdateEnd),this.addBufferListener(e,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(e,"bufferedchange",(i,s)=>{const l=s.removedRanges;l!=null&&l.length&&this.hls.trigger(d.BUFFER_FLUSHED,{type:i})})}get mediaSrc(){var e,t;const n=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return n==null?void 0:n.src}onSBUpdateStart(e){const t=this.currentOp(e);t&&t.onStart()}onSBUpdateEnd(e){var t;if(((t=this.mediaSource)==null?void 0:t.readyState)==="closed"){this.resetBuffer(e);return}const n=this.currentOp(e);n&&(n.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var n;const r=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(n=this.mediaSource)==null?void 0:n.readyState}`);this.error(`${r}`,t),this.hls.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:r,fatal:!1});const i=this.currentOp(e);i&&i.onError(r)}updateTimestampOffset(e,t,n,r,i,s){const l=t-e.timestampOffset;Math.abs(l)>=n&&(this.log(`Updating ${r} SourceBuffer timestampOffset to ${t} (sn: ${i} cc: ${s})`),e.timestampOffset=t)}removeExecutor(e,t,n){const{media:r,mediaSource:i}=this,s=this.tracks[e],l=s==null?void 0:s.buffer;if(!r||!i||!l){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(e);return}const c=f(r.duration)?r.duration:1/0,u=f(i.duration)?i.duration:1/0,h=Math.max(0,t),m=Math.min(n,c,u);m>h&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${h},${m}] from the ${e} SourceBuffer`),l.remove(h,m)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],r=n==null?void 0:n.buffer;if(!r)throw new du(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);n.ending=!1,n.ended=!1,r.appendBuffer(e)}blockUntilOpen(e){if(this.isUpdating()||this.isQueued())this.blockBuffers(e).catch(t=>{this.warn(`SourceBuffer blocked callback ${t}`),this.stepOperationQueue(this.sourceBufferTypes)});else try{e()}catch(t){this.warn(`Callback run without blocking ${this.operationQueue} ${t}`)}}isUpdating(){return this.sourceBuffers.some(([e,t])=>e&&t.updating)}isQueued(){return this.sourceBuffers.some(([e])=>e&&!!this.currentOp(e))}isPending(e){return!!e&&!e.buffer}blockBuffers(e,t=this.sourceBufferTypes){if(!t.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);const{operationQueue:n}=this,r=t.map(s=>this.appendBlocker(s));return t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(r).then(s=>{n===this.operationQueue&&(e(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(e){e.forEach(t=>{var n;const r=(n=this.tracks[t])==null?void 0:n.buffer;!r||r.updating||this.shiftAndExecuteNext(t)})}append(e,t,n){this.operationQueue&&this.operationQueue.append(e,t,n)}appendBlocker(e){if(this.operationQueue)return this.operationQueue.appendBlocker(e)}currentOp(e){return this.operationQueue?this.operationQueue.current(e):null}executeNext(e){e&&this.operationQueue&&this.operationQueue.executeNext(e)}shiftAndExecuteNext(e){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(e)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((e,t)=>e+(this.isPending(this.tracks[t])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((e,[t])=>e+(t?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([e])=>e).filter(e=>!!e)}addBufferListener(e,t,n){const r=this.tracks[e];if(!r)return;const i=r.buffer;if(!i)return;const s=n.bind(this,e);r.listeners.push({event:t,listener:s}),i.addEventListener(t,s)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const n=t.buffer;n&&(t.listeners.forEach(r=>{n.removeEventListener(r.event,r.listener)}),t.listeners.length=0)}}function Io(a){const e=a.querySelectorAll("source");[].slice.call(e).forEach(t=>{a.removeChild(t)})}function hu(a,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,a.appendChild(t)}function Oa(a){return a==="audio"?1:0}class Fa{constructor(e){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=e,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(e){this.streamController=e}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:e}=this;e.on(d.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(d.BUFFER_CODECS,this.onBufferCodecs,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(d.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(d.BUFFER_CODECS,this.onBufferCodecs,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const n=this.hls.levels[t.droppedLevel];this.isLevelAllowed(n)&&this.restrictedLevels.push({bitrate:n.bitrate,height:n.height,width:n.width})}onMediaAttaching(e,t){this.media=t.media instanceof HTMLVideoElement?t.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(e,t){const n=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,n.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&f(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(e,t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const e=this.hls.levels;if(e.length){const t=this.hls,n=this.getMaxLevel(e.length-1);n!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${n}: ${e[n].height}p@${e[n].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=n,t.autoLevelEnabled&&t.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=t.autoLevelCapping}}}getMaxLevel(e){const t=this.hls.levels;if(!t.length)return-1;const n=t.filter((r,i)=>this.isLevelAllowed(r)&&i<=e);return this.clientRect=null,Fa.getMaxLevelByMediaSize(n,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const e=this.media,t={width:0,height:0};if(e){const n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,!t.width&&!t.height&&(t.width=n.right-n.left||e.width||0,t.height=n.bottom-n.top||e.height||0)}return this.clientRect=t,t}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let e=1;if(!this.hls.config.ignoreDevicePixelRatio)try{e=self.devicePixelRatio}catch(t){}return Math.min(e,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(e){return!this.restrictedLevels.some(n=>e.bitrate===n.bitrate&&e.width===n.width&&e.height===n.height)}static getMaxLevelByMediaSize(e,t,n){if(!(e!=null&&e.length))return-1;const r=(l,c)=>c?l.width!==c.width||l.height!==c.height:!0;let i=e.length-1;const s=Math.max(t,n);for(let l=0;l<e.length;l+=1){const c=e[l];if((c.width>=s||c.height>=s)&&r(c,e[l+1])){i=l;break}}return i}}const Si={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},pu={HLS:"h"};class Hi{constructor(e,t){Array.isArray(e)&&(e=e.map(n=>n instanceof Hi?n:new Hi(n))),this.value=e,this.params=t}}const mu="Dict";function gu(a){return Array.isArray(a)?JSON.stringify(a):a instanceof Map?"Map{}":a instanceof Set?"Set{}":typeof a=="object"?JSON.stringify(a):String(a)}function vu(a,e,t,n){return new Error(`failed to ${a} "${gu(e)}" as ${t}`,{cause:n})}function Yi(a,e,t){return vu("serialize",a,e,t)}class Lo{constructor(e){this.description=e}}const ko="Bare Item",yu="Boolean";function _u(a){if(typeof a!="boolean")throw Yi(a,yu);return a?"?1":"?0"}function Eu(a){return btoa(String.fromCharCode(...a))}const bu="Byte Sequence";function xu(a){if(ArrayBuffer.isView(a)===!1)throw Yi(a,bu);return`:${Eu(a)}:`}const Su="Integer";function wu(a){return a<-999999999999999||999999999999999<a}function Po(a){if(wu(a))throw Yi(a,Su);return a.toString()}function Au(a){return`@${Po(a.getTime()/1e3)}`}function No(a,e){if(a<0)return-No(-a,e);const t=Math.pow(10,e);if(Math.abs(a*t%1-.5)<Number.EPSILON){const r=Math.floor(a*t);return(r%2===0?r:r+1)/t}else return Math.round(a*t)/t}const Cu="Decimal";function Tu(a){const e=No(a,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Yi(a,Cu);const t=e.toString();return t.includes(".")?t:`${t}.0`}const Du="String",Ru=/[\x00-\x1f\x7f]+/;function Iu(a){if(Ru.test(a))throw Yi(a,Du);return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function Lu(a){return a.description||a.toString().slice(7,-1)}const ku="Token";function Mo(a){const e=Lu(a);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Yi(e,ku);return e}function Ba(a){switch(typeof a){case"number":if(!f(a))throw Yi(a,ko);return Number.isInteger(a)?Po(a):Tu(a);case"string":return Iu(a);case"symbol":return Mo(a);case"boolean":return _u(a);case"object":if(a instanceof Date)return Au(a);if(a instanceof Uint8Array)return xu(a);if(a instanceof Lo)return Mo(a);default:throw Yi(a,ko)}}const Pu="Key";function Ua(a){if(/^[a-z*][a-z0-9\-_.*]*$/.test(a)===!1)throw Yi(a,Pu);return a}function Za(a){return a==null?"":Object.entries(a).map(([e,t])=>t===!0?`;${Ua(e)}`:`;${Ua(e)}=${Ba(t)}`).join("")}function Oo(a){return a instanceof Hi?`${Ba(a.value)}${Za(a.params)}`:Ba(a)}function Nu(a){return`(${a.value.map(Oo).join(" ")})${Za(a.params)}`}function Mu(a,e={whitespace:!0}){if(typeof a!="object"||a==null)throw Yi(a,mu);const t=a instanceof Map?a.entries():Object.entries(a),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,i])=>{i instanceof Hi||(i=new Hi(i));let s=Ua(r);return i.value===!0?s+=Za(i.params):(s+="=",Array.isArray(i.value)?s+=Nu(i):s+=Oo(i)),s}).join(`,${n}`)}function Fo(a,e){return Mu(a,e)}const Xi="CMCD-Object",ti="CMCD-Request",ws="CMCD-Session",ps="CMCD-Status",Ou={br:Xi,ab:Xi,d:Xi,ot:Xi,tb:Xi,tpb:Xi,lb:Xi,tab:Xi,lab:Xi,url:Xi,pb:ti,bl:ti,tbl:ti,dl:ti,ltc:ti,mtp:ti,nor:ti,nrr:ti,rc:ti,sn:ti,sta:ti,su:ti,ttfb:ti,ttfbb:ti,ttlb:ti,cmsdd:ti,cmsds:ti,smrt:ti,df:ti,cs:ti,ts:ti,cid:ws,pr:ws,sf:ws,sid:ws,st:ws,v:ws,msd:ws,bs:ps,bsd:ps,cdn:ps,rtp:ps,bg:ps,pt:ps,ec:ps,e:ps},Fu={REQUEST:ti};function Bu(a){return Object.keys(a).reduce((e,t)=>{var n;return(n=a[t])===null||n===void 0||n.forEach(r=>e[r]=t),e},{})}function Uu(a,e){const t={};if(!a)return t;const n=Object.keys(a),r=e?Bu(e):{};return n.reduce((i,s)=>{var l;const c=Ou[s]||r[s]||Fu.REQUEST,u=(l=i[c])!==null&&l!==void 0?l:i[c]={};return u[s]=a[s],i},t)}function Zu(a){return["ot","sf","st","e","sta"].includes(a)}function Ku(a){return typeof a=="number"?f(a):a!=null&&a!==""&&a!==!1}const Bo="event";function zu(a,e){const t=new URL(a),n=new URL(e);if(t.origin!==n.origin)return a;const r=t.pathname.split("/").slice(1),i=n.pathname.split("/").slice(1,-1);for(;r[0]===i[0];)r.shift(),i.shift();for(;i.length;)i.shift(),r.unshift("..");return r.join("/")+t.search+t.hash}const ua=a=>Math.round(a),Ka=(a,e)=>Array.isArray(a)?a.map(t=>Ka(t,e)):a instanceof Hi&&typeof a.value=="string"?new Hi(Ka(a.value,e),a.params):(e.baseUrl&&(a=zu(a,e.baseUrl)),e.version===1?encodeURIComponent(a):a),ca=a=>ua(a/100)*100,ju={br:ua,d:ua,bl:ca,dl:ca,mtp:ca,nor:(a,e)=>{let t=a;return e.version>=2&&(a instanceof Hi&&typeof a.value=="string"?t=new Hi([a]):typeof a=="string"&&(t=[a])),Ka(t,e)},rtp:ca,tb:ua},Uo="request",Zo="response",za=["ab","bg","bl","br","bs","bsd","cdn","cid","cs","df","ec","lab","lb","ltc","msd","mtp","pb","pr","pt","sf","sid","sn","st","sta","tab","tb","tbl","tpb","ts","v"],Vu=["e"],Wu=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function da(a){return Wu.test(a)}function Gu(a){return za.includes(a)||Vu.includes(a)||da(a)}const Ko=["d","dl","nor","ot","rtp","su"];function Hu(a){return za.includes(a)||Ko.includes(a)||da(a)}const Yu=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function Xu(a){return za.includes(a)||Ko.includes(a)||Yu.includes(a)||da(a)}const Qu=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function Ju(a){return Qu.includes(a)||da(a)}const qu={[Zo]:Xu,[Bo]:Gu,[Uo]:Hu};function zo(a,e={}){const t={};if(a==null||typeof a!="object")return t;const n=e.version||a.v||1,r=e.reportingMode||Uo,i=n===1?Ju:qu[r];let s=Object.keys(a).filter(i);const l=e.filter;typeof l=="function"&&(s=s.filter(l));const c=r===Zo||r===Bo;c&&!s.includes("ts")&&s.push("ts"),n>1&&!s.includes("v")&&s.push("v");const u=p({},ju,e.formatters),h={version:n,reportingMode:r,baseUrl:e.baseUrl};return s.sort().forEach(m=>{let x=a[m];const C=u[m];if(typeof C=="function"&&(x=C(x,h)),m==="v"){if(n===1)return;x=n}m=="pr"&&x===1||(c&&m==="ts"&&!f(x)&&(x=Date.now()),Ku(x)&&(Zu(m)&&typeof x=="string"&&(x=new Lo(x)),t[m]=x))}),t}function $u(a,e={}){const t={};if(!a)return t;const n=zo(a,e),r=Uu(n,e==null?void 0:e.customHeaderMap);return Object.entries(r).reduce((i,[s,l])=>{const c=Fo(l,{whitespace:!1});return c&&(i[s]=c),i},t)}function ec(a,e,t){return p(a,$u(e,t))}const tc="CMCD";function nc(a,e={}){return a?Fo(zo(a,e),{whitespace:!1}):""}function rc(a,e={}){if(!a)return"";const t=nc(a,e);return encodeURIComponent(t)}function ic(a,e={}){if(!a)return"";const t=rc(a,e);return`${tc}=${t}`}const jo=/CMCD=[^&#]+/;function sc(a,e,t){const n=ic(e,t);if(!n)return a;if(jo.test(a))return a.replace(jo,n);const r=a.includes("?")?"&":"?";return`${a}${r}${n}`}class ac{constructor(e){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=r=>{try{this.apply(r,{ot:Si.MANIFEST,su:!this.initialized})}catch(i){this.hls.logger.warn("Could not generate manifest CMCD data.",i)}},this.applyFragmentData=r=>{try{const{frag:i,part:s}=r,l=this.hls.levels[i.level],c=this.getObjectType(i),u={d:(s||i).duration*1e3,ot:c};(c===Si.VIDEO||c===Si.AUDIO||c==Si.MUXED)&&(u.br=l.bitrate/1e3,u.tb=this.getTopBandwidth(c)/1e3,u.bl=this.getBufferLength(c));const h=s?this.getNextPart(s):this.getNextFrag(i);h!=null&&h.url&&h.url!==i.url&&(u.nor=h.url),this.apply(r,u)}catch(i){this.hls.logger.warn("Could not generate segment CMCD data.",i)}},this.hls=e;const t=this.config=e.config,{cmcd:n}=t;n!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=n.sessionId||e.sessionId,this.cid=n.contentId,this.useHeaders=n.useHeaders===!0,this.includeKeys=n.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHED,this.onMediaDetached,this),e.on(d.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHED,this.onMediaDetached,this),e.off(d.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(e,t){var n,r;this.audioBuffer=(n=t.tracks.audio)==null?void 0:n.buffer,this.videoBuffer=(r=t.tracks.video)==null?void 0:r.buffer}createData(){var e;return{v:1,sf:pu.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){p(t,this.createData());const n=t.ot===Si.INIT||t.ot===Si.VIDEO||t.ot===Si.MUXED;this.starved&&n&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:r}=this;r&&(t=Object.keys(t).reduce((s,l)=>(r.includes(l)&&(s[l]=t[l]),s),{}));const i={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),ec(e.headers,t,i)):e.url=sc(e.url,t,i)}getNextFrag(e){var t;const n=(t=this.hls.levels[e.level])==null?void 0:t.details;if(n){const r=e.sn-n.startSN;return n.fragments[r+1]}}getNextPart(e){var t;const{index:n,fragment:r}=e,i=(t=this.hls.levels[r.level])==null||(t=t.details)==null?void 0:t.partList;if(i){const{sn:s}=r;for(let l=i.length-1;l>=0;l--){const c=i[l];if(c.index===n&&c.fragment.sn===s)return i[l+1]}}}getObjectType(e){const{type:t}=e;if(t==="subtitle")return Si.TIMED_TEXT;if(e.sn==="initSegment")return Si.INIT;if(t==="audio")return Si.AUDIO;if(t==="main")return this.hls.audioTracks.length?Si.VIDEO:Si.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===Si.AUDIO)n=r.audioTracks;else{const i=r.maxAutoLevel,s=i>-1?i+1:r.levels.length;n=r.levels.slice(0,s)}return n.forEach(i=>{i.bitrate>t&&(t=i.bitrate)}),t>0?t:NaN}getBufferLength(e){const t=this.media,n=e===Si.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:bn.bufferInfo(n,t.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,l){t(i),this.loader.load(i,s,l)}}}createFragmentLoader(){const{fLoader:e}=this.config,t=this.applyFragmentData,n=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new n(i)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(i,s,l){t(i),this.loader.load(i,s,l)}}}}const oc=3e5;class lc extends ${constructor(e){super("content-steering",e.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=e,this.registerListeners()}registerListeners(){const e=this.hls;e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((e,t)=>(e.indexOf(t.pathwayId)===-1&&e.push(t.pathwayId),e),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(e){this.updatePathwayPriority(e)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const e=this.timeToLoad*1e3-(performance.now()-this.updated);if(e>0){this.scheduleRefresh(this.uri,e);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(e){const t=this.levels;t&&(this.levels=t.filter(n=>n!==e))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(e,t){const{contentSteering:n}=t;n!==null&&(this.pathwayId=n.pathwayId,this.uri=n.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:n}=t;if((n==null?void 0:n.action)===Un.SendAlternateToPenaltyBox&&n.flags===ar.MoveAllAlternatesMatchingHost){const r=this.levels;let i=this._pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:l,pathwayId:c,type:u}=t.context;l&&r?s=this.getPathwayForGroupId(l,u,s):c&&(s=c)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!i&&r&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),n.resolved=this.pathwayId!==s),t.details===B.BUFFER_APPEND_ERROR&&!t.fatal?n.resolved=!0:n.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${r&&r.length} priorities: ${At(i)} penalized: ${At(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const n=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${n}"`),t=this.getLevelsForPathway(n),this.pathwayId=n}return t.length!==e.length&&this.log(`Found ${t.length}/${e.length} levels in Pathway "${this.pathwayId}"`),t}getLevelsForPathway(e){return this.levels===null?[]:this.levels.filter(t=>e===t.pathwayId)}updatePathwayPriority(e){this._pathwayPriority=e;let t;const n=this.penalizedPathways,r=performance.now();Object.keys(n).forEach(i=>{r-n[i]>oc&&delete n[i]});for(let i=0;i<e.length;i++){const s=e[i];if(s in n)continue;if(s===this.pathwayId)return;const l=this.hls.nextLoadLevel,c=this.hls.levels[l];if(t=this.getLevelsForPathway(s),t.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,pi(t),this.hls.trigger(d.LEVELS_UPDATED,{levels:t});const u=this.hls.levels[l];c&&u&&this.levels&&(u.attrs["STABLE-VARIANT-ID"]!==c.attrs["STABLE-VARIANT-ID"]&&u.bitrate!==c.bitrate&&this.log(`Unstable Pathways change from bitrate ${c.bitrate} to ${u.bitrate}`),this.hls.nextLoadLevel=l);break}}}getPathwayForGroupId(e,t,n){const r=this.getLevelsForPathway(n).concat(this.levels||[]);for(let i=0;i<r.length;i++)if(t===_e.AUDIO_TRACK&&r[i].hasAudioGroup(e)||t===_e.SUBTITLE_TRACK&&r[i].hasSubtitleGroup(e))return r[i].pathwayId;return n}clonePathways(e){const t=this.levels;if(!t)return;const n={},r={};e.forEach(i=>{const{ID:s,"BASE-ID":l,"URI-REPLACEMENT":c}=i;if(t.some(h=>h.pathwayId===s))return;const u=this.getLevelsForPathway(l).map(h=>{const m=new Rn(h.attrs);m["PATHWAY-ID"]=s;const x=m.AUDIO&&`${m.AUDIO}_clone_${s}`,C=m.SUBTITLES&&`${m.SUBTITLES}_clone_${s}`;x&&(n[m.AUDIO]=x,m.AUDIO=x),C&&(r[m.SUBTITLES]=C,m.SUBTITLES=C);const L=Wo(h.uri,m["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",c),te=new Mt({attrs:m,audioCodec:h.audioCodec,bitrate:h.bitrate,height:h.height,name:h.name,url:L,videoCodec:h.videoCodec,width:h.width});if(h.audioGroups)for(let J=1;J<h.audioGroups.length;J++)te.addGroupId("audio",`${h.audioGroups[J]}_clone_${s}`);if(h.subtitleGroups)for(let J=1;J<h.subtitleGroups.length;J++)te.addGroupId("text",`${h.subtitleGroups[J]}_clone_${s}`);return te});t.push(...u),Vo(this.audioTracks,n,c,s),Vo(this.subtitleTracks,r,c,s)})}loadSteeringManifest(e){const t=this.hls.config,n=t.loader;this.loader&&this.loader.destroy(),this.loader=new n(t);let r;try{r=new self.URL(e)}catch(h){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(r.protocol!=="data:"){const h=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;r.searchParams.set("_HLS_pathway",this.pathwayId),r.searchParams.set("_HLS_throughput",""+h)}const i={responseType:"json",url:r.href},s=t.steeringManifestLoadPolicy.default,l=s.errorRetry||s.timeoutRetry||{},c={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:l.maxNumRetry||0,retryDelay:l.retryDelayMs||0,maxRetryDelay:l.maxRetryDelayMs||0},u={onSuccess:(h,m,x,C)=>{this.log(`Loaded steering manifest: "${r}"`);const L=h.data;if((L==null?void 0:L.VERSION)!==1){this.log(`Steering VERSION ${L.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=L.TTL;const{"RELOAD-URI":te,"PATHWAY-CLONES":J,"PATHWAY-PRIORITY":Ce}=L;if(te)try{this.uri=new self.URL(te,r).href}catch(rt){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${te}`);return}this.scheduleRefresh(this.uri||x.url),J&&this.clonePathways(J);const ht={steeringManifest:L,url:r.toString()};this.hls.trigger(d.STEERING_MANIFEST_LOADED,ht),Ce&&this.updatePathwayPriority(Ce)},onError:(h,m,x,C)=>{if(this.log(`Error loading steering manifest: ${h.code} ${h.text} (${m.url})`),this.stopLoad(),h.code===410){this.enabled=!1,this.log(`Steering manifest ${m.url} no longer available`);return}let L=this.timeToLoad*1e3;if(h.code===429){const te=this.loader;if(typeof(te==null?void 0:te.getResponseHeader)=="function"){const J=te.getResponseHeader("Retry-After");J&&(L=parseFloat(J)*1e3)}this.log(`Steering manifest ${m.url} rate limited`);return}this.scheduleRefresh(this.uri||m.url,L)},onTimeout:(h,m,x)=>{this.log(`Timeout loading steering manifest (${m.url})`),this.scheduleRefresh(this.uri||m.url)}};this.log(`Requesting steering manifest: ${r}`),this.loader.load(i,c,u)}scheduleRefresh(e,t=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var n;const r=(n=this.hls)==null?void 0:n.media;if(r&&!r.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},t)}}function Vo(a,e,t,n){a&&Object.keys(e).forEach(r=>{const i=a.filter(s=>s.groupId===r).map(s=>{const l=p({},s);return l.details=void 0,l.attrs=new Rn(l.attrs),l.url=l.attrs.URI=Wo(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),l.groupId=l.attrs["GROUP-ID"]=e[r],l.attrs["PATHWAY-ID"]=n,l});a.push(...i)})}function Wo(a,e,t,n){const{HOST:r,PARAMS:i,[t]:s}=n;let l;e&&(l=s==null?void 0:s[e],l&&(a=l));const c=new self.URL(a);return r&&!l&&(c.host=r),i&&Object.keys(i).sort().forEach(u=>{u&&c.searchParams.set(u,i[u])}),c.href}function Ci(a,e,t){Li(a,e,t),a.addEventListener(e,t)}function Li(a,e,t){a.removeEventListener(e,t)}class Ns extends ${constructor(e){super("eme",e.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.mediaKeys=null,this.setMediaKeysQueue=Ns.CDMCleanupPromise?[Ns.CDMCleanupPromise]:[],this.onMediaEncrypted=t=>{const{initDataType:n,initData:r}=t,i=`"${t.type}" event: init data type: "${n}"`;if(this.debug(i),r!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=fr(this.config));const l=s.map(ur).filter(c=>!!c);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=or(s);if(n!=="sinf"||l!==lr.FAIRPLAY){this.log(`Ignoring "${t.type}" event with init data type: "${n}" for selected key-system ${l}`);return}let c;try{const C=Dt(new Uint8Array(r)),L=Zr(JSON.parse(C).sinf),te=$e(L);if(!te)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");c=new Uint8Array(te.subarray(8,24))}catch(C){this.warn(`${i} Failed to parse sinf: ${C}`);return}const u=Z.hexDump(c),{keyIdToKeySessionPromise:h,mediaKeySessions:m}=this;let x=h[u];for(let C=0;C<m.length;C++){const L=m[C],te=L.decryptdata;if(!te.keyId)continue;const J=Z.hexDump(te.keyId);if(u===J||te.uri.replace(/-/g,"").indexOf(u)!==-1){if(x=h[J],!x)continue;if(te.pssh)break;delete h[J],te.pssh=new Uint8Array(r),te.keyId=c,x=h[u]=x.then(()=>this.generateRequestWithPreferredKeySession(L,n,r,"encrypted-event-key-match")),x.catch(Ce=>this.handleError(Ce));break}}x||this.handleError(new Error(`Key ID ${u} not encountered in playlist. Key-system sessions ${m.length}.`))}).catch(s=>this.handleError(s))}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();const e=this.config;e.requestMediaKeySystemAccessFunc=null,e.licenseXhrSetup=e.licenseResponseCallback=void 0,e.drmSystems=e.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onWaitingForKey=null}registerListeners(){this.hls.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(d.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(d.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(d.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(d.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(d.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(d.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(d.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(d.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:n}=this.config,r=t[e];if(r)return r.licenseUrl;if(e===lr.WIDEVINE&&n)return n}getLicenseServerUrlOrThrow(e){const t=this.getLicenseServerUrl(e);if(t===void 0)throw new Error(`no license server URL configured for key-system "${e}"`);return t}getServerCertificateUrl(e){const{drmSystems:t}=this.config,n=t[e];if(n)return n.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,n=(s,l,c)=>!!s&&c.indexOf(s)===l,r=t.map(s=>s.audioCodec).filter(n),i=t.map(s=>s.videoCodec).filter(n);return r.length+i.length===0&&i.push("avc1.42e01e"),new Promise((s,l)=>{const c=u=>{const h=u.shift();this.getMediaKeysPromise(h,r,i).then(m=>s({keySystem:h,mediaKeys:m})).catch(m=>{u.length?c(u):m instanceof ki?l(m):l(new ki({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_ACCESS,error:m,fatal:!0},m.message))})};c(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:n}=this.config;if(typeof n!="function"){let r=`Configured requestMediaKeySystemAccess is not a function ${n}`;return Sr===null&&self.location.protocol==="http:"&&(r=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(r))}return n(e,t)}getMediaKeysPromise(e,t,n){const r=Dr(e,t,n,this.config.drmSystemOptions),i=this.keySystemAccessPromises[e];let s=i==null?void 0:i.keySystemAccess;if(!s){this.log(`Requesting encrypted media "${e}" key-system access with config: ${At(r)}`),s=this.requestMediaKeySystemAccess(e,r);const l=this.keySystemAccessPromises[e]={keySystemAccess:s};return s.catch(c=>{this.log(`Failed to obtain access to key-system "${e}": ${c}`)}),s.then(c=>{this.log(`Access for key-system "${c.keySystem}" obtained`);const u=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),l.mediaKeys=c.createMediaKeys().then(h=>(this.log(`Media-keys created for "${e}"`),l.hasMediaKeys=!0,u.then(m=>m?this.setMediaKeysServerCertificate(h,e,m):h))),l.mediaKeys.catch(h=>{this.error(`Failed to create media-keys for "${e}"}: ${h}`)}),l.mediaKeys})}return s.then(()=>i.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:n}){this.log(`Creating key-system session "${t}" keyId: ${Z.hexDump(e.keyId||[])}`);const r=n.createSession(),i={decryptdata:e,keySystem:t,mediaKeys:n,mediaKeysSession:r,keyStatus:"status-pending"};return this.mediaKeySessions.push(i),i}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const n=this.createMediaKeySessionContext(e),r=this.getKeyIdString(t),i="cenc";this.keyIdToKeySessionPromise[r]=this.generateRequestWithPreferredKeySession(n,i,t.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(e)}getKeyIdString(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return Z.hexDump(e.keyId)}updateKeySession(e,t){var n;const r=e.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyID ${Z.hexDump(((n=e.decryptdata)==null?void 0:n.keyId)||[])}
} (data length: ${t&&t.byteLength})`),r.update(t)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map(e=>({keySystem:e,hasMediaKeys:this.keySystemAccessPromises[e].hasMediaKeys})).filter(({hasMediaKeys:e})=>!!e).map(({keySystem:e})=>ur(e)).filter(e=>!!e)}getKeySystemAccess(e){return this.getKeySystemSelectionPromise(e).then(({keySystem:t,mediaKeys:n})=>this.attemptSetMediaKeys(t,n))}selectKeySystem(e){return new Promise((t,n)=>this.getKeySystemSelectionPromise(e).then(({keySystem:r})=>{const i=ur(r);i?t(i):n(new Error(`Unable to find format for key-system "${r}"`))}).catch(n))}selectKeySystemFormat(e){const t=Object.keys(e.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${e.sn} ${e.type}: ${e.level}) key formats ${t.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(t)),this.keyFormatPromise}getKeyFormatPromise(e){const t=fr(this.config),n=e.map(or).filter(r=>!!r&&t.indexOf(r)!==-1);return this.selectKeySystem(n)}loadKey(e){const t=e.keyInfo.decryptdata,n=this.getKeyIdString(t),r=`(keyId: ${n} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${r}`);let i=this.keyIdToKeySessionPromise[n];return i||(i=this.getKeySystemForKeyPromise(t).then(({keySystem:l,mediaKeys:c})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${r}`),this.attemptSetMediaKeys(l,c).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:l,mediaKeys:c,decryptdata:t}))))),(this.keyIdToKeySessionPromise[n]=i.then(l=>{const c="cenc",u=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(l,c,u,"playlist-key")})).catch(l=>this.handleError(l))),i}throwIfDestroyed(e="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(e){this.hls&&(this.error(e.message),e instanceof ki?this.hls.trigger(d.ERROR,e.data):this.hls.trigger(d.ERROR,{type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),n=this.keyIdToKeySessionPromise[t];if(!n){const r=or(e.keyFormat),i=r?[r]:fr(this.config);return this.attemptKeySystemAccess(i)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=fr(this.config)),e.length===0)throw new ki({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${At({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){if(this.mediaKeys===t)return Promise.resolve();const n=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const r=Promise.all(n).then(()=>{if(!this.media)throw this.mediaKeys=null,new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)});return this.mediaKeys=t,this.setMediaKeysQueue.push(r),r.then(()=>{this.log(`Media-keys set for "${e}"`),n.push(r),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(i=>n.indexOf(i)===-1)})}generateRequestWithPreferredKeySession(e,t,n,r){var i;const s=(i=this.config.drmSystems)==null||(i=i[e.keySystem])==null?void 0:i.generateRequest;if(s)try{const C=s.call(this.hls,t,n,e);if(!C)throw new Error("Invalid response from configured generateRequest filter");t=C.initDataType,n=C.initData?C.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(C){var l;if(this.warn(C.message),(l=this.hls)!=null&&l.config.debug)throw C}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const c=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${r}": ${c} (init data type: ${t} length: ${n?n.byteLength:null})`);const u=new Vi,h=e._onmessage=C=>{const L=e.mediaKeysSession;if(!L){u.emit("error",new Error("invalid state"));return}const{messageType:te,message:J}=C;this.log(`"${te}" message event for session "${L.sessionId}" message size: ${J.byteLength}`),te==="license-request"||te==="license-renewal"?this.renewLicense(e,J).catch(Ce=>{u.eventNames().length?u.emit("error",Ce):this.handleError(Ce)}):te==="license-release"?e.keySystem===lr.FAIRPLAY&&(this.updateKeySession(e,yr("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${te}"`)},m=e._onkeystatuseschange=C=>{if(!e.mediaKeysSession){u.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const te=e.keyStatus;u.emit("keyStatus",te),te==="expired"&&(this.warn(`${e.keySystem} expired for key ${c}`),this.renewKeySession(e))};Ci(e.mediaKeysSession,"message",h),Ci(e.mediaKeysSession,"keystatuseschange",m);const x=new Promise((C,L)=>{u.on("error",L),u.on("keyStatus",te=>{te.startsWith("usable")?C():te==="output-restricted"?L(new ki({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):te==="internal-error"?L(new ki({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${te}"`)):te==="expired"?L(new Error("key expired while generating request")):this.warn(`unhandled key status change "${te}"`)})});return e.mediaKeysSession.generateRequest(t,n).then(()=>{var C;this.log(`Request generated for key-session "${(C=e.mediaKeysSession)==null?void 0:C.sessionId}" keyId: ${c}`)}).catch(C=>{throw new ki({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_SESSION,error:C,fatal:!1},`Error generating key-session request: ${C}`)}).then(()=>x).catch(C=>{throw u.removeAllListeners(),this.removeSession(e),C}).then(()=>(u.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,n)=>{if(typeof n=="string"&&typeof t=="object"){const r=n;n=t,t=r}this.log(`key status change "${t}" for keyStatuses keyId: ${Z.hexDump("buffer"in n?new Uint8Array(n.buffer,n.byteOffset,n.byteLength):new Uint8Array(n))} session keyId: ${Z.hexDump(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t})}fetchServerCertificate(e){const t=this.config,n=t.loader,r=new n(t),i=this.getServerCertificateUrl(e);return i?(this.log(`Fetching server certificate for "${e}"`),new Promise((s,l)=>{const c={responseType:"arraybuffer",url:i},u=t.certLoadPolicy.default,h={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},m={onSuccess:(x,C,L,te)=>{s(x.data)},onError:(x,C,L,te)=>{l(new ki({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:L,response:b({url:c.url,data:void 0},x)},`"${e}" certificate request failed (${i}). Status: ${x.code} (${x.text})`))},onTimeout:(x,C,L)=>{l(new ki({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:L,response:{url:c.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(x,C,L)=>{l(new Error("aborted"))}};r.load(c,h,m)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,n){return new Promise((r,i)=>{e.setServerCertificate(n).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${n==null?void 0:n.byteLength}) on "${t}"`),r(e)}).catch(s=>{i(new ki({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(n=>this.updateKeySession(e,new Uint8Array(n)).catch(r=>{throw new ki({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:r,fatal:!0},r.message)}))}unpackPlayReadyKeyMessage(e,t){const n=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!n.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const r=new DOMParser().parseFromString(n,"application/xml"),i=r.querySelectorAll("HttpHeader");if(i.length>0){let h;for(let m=0,x=i.length;m<x;m++){var s,l;h=i[m];const C=(s=h.querySelector("name"))==null?void 0:s.textContent,L=(l=h.querySelector("value"))==null?void 0:l.textContent;C&&L&&e.setRequestHeader(C,L)}}const c=r.querySelector("Challenge"),u=c==null?void 0:c.textContent;if(!u)throw new Error("Cannot find <Challenge> in key message");return yr(atob(u))}setupLicenseXHR(e,t,n,r){const i=this.config.licenseXhrSetup;return i?Promise.resolve().then(()=>{if(!n.decryptdata)throw new Error("Key removed");return i.call(this.hls,e,t,n,r)}).catch(s=>{if(!n.decryptdata)throw s;return e.open("POST",t,!0),i.call(this.hls,e,t,n,r)}).then(s=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:s||r})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:r}))}requestLicense(e,t){const n=this.config.keyLoadPolicy.default;return new Promise((r,i)=>{const s=this.getLicenseServerUrlOrThrow(e.keySystem);this.log(`Sending license request to URL: ${s}`);const l=new XMLHttpRequest;l.responseType="arraybuffer",l.onreadystatechange=()=>{if(!this.hls||!e.mediaKeysSession)return i(new Error("invalid state"));if(l.readyState===4)if(l.status===200){this._requestLicenseFailureCount=0;let c=l.response;this.log(`License received ${c instanceof ArrayBuffer?c.byteLength:c}`);const u=this.config.licenseResponseCallback;if(u)try{c=u.call(this.hls,l,s,e)}catch(h){this.error(h)}r(c)}else{const c=n.errorRetry,u=c?c.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>u||l.status>=400&&l.status<500)i(new ki({type:ae.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:l,response:{url:s,data:void 0,code:l.status,text:l.statusText}},`License Request XHR failed (${s}). Status: ${l.status} (${l.statusText})`));else{const h=u-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${h} attempts left`),this.requestLicense(e,t).then(r,i)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=l,this.setupLicenseXHR(l,s,e,t).then(({xhr:c,licenseChallenge:u})=>{e.keySystem==lr.PLAYREADY&&(u=this.unpackPlayReadyKeyMessage(c,u)),c.send(u)})})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const n=t.media;this.media=n,Ci(n,"encrypted",this.onMediaEncrypted),Ci(n,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media;e&&(Li(e,"encrypted",this.onMediaEncrypted),Li(e,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var e;if(this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},!this.mediaKeys&&!this.mediaKeySessions.length)return;const t=this.media,n=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,Ar.clearKeyUriToKeyIdMap();const r=n.length;Ns.CDMCleanupPromise=Promise.all(n.map(i=>this.removeSession(i)).concat(t==null||(e=t.setMediaKeys(null))==null?void 0:e.catch(i=>{var s;this.log(`Could not clear media keys: ${i}`),(s=this.hls)==null||s.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${i}`)})}))).catch(i=>{var s;this.log(`Could not close sessions and clear media keys: ${i}`),(s=this.hls)==null||s.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${i}`)})}).then(()=>{r&&this.log("finished closing key sessions and clearing media keys")})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const n=t.reduce((r,i)=>(r.indexOf(i.keyFormat)===-1&&r.push(i.keyFormat),r),[]);this.log(`Selecting key-system from session-keys ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:n}=e;if(t){this.log(`Remove licenses and keys and close session ${t.sessionId}`),e._onmessage&&(t.removeEventListener("message",e._onmessage),e._onmessage=void 0),e._onkeystatuseschange&&(t.removeEventListener("keystatuseschange",e._onkeystatuseschange),e._onkeystatuseschange=void 0),n&&n.readyState!==XMLHttpRequest.DONE&&n.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const r=this.mediaKeySessions.indexOf(e);r>-1&&this.mediaKeySessions.splice(r,1);const{drmSystemOptions:i}=this.config;return(Hn(i)?new Promise((l,c)=>{self.setTimeout(()=>c(new Error("MediaKeySession.remove() timeout")),8e3),t.remove().then(l)}):Promise.resolve()).catch(l=>{var c;this.log(`Could not remove session: ${l}`),(c=this.hls)==null||c.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${l}`)})}).then(()=>t.close()).catch(l=>{var c;this.log(`Could not close session: ${l}`),(c=this.hls)==null||c.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${l}`)})})}}}Ns.CDMCleanupPromise=void 0;class ki extends Error{constructor(e,t){super(t),this.data=void 0,e.error||(e.error=new Error(t)),this.data=e,e.err=e.error}}class uc{constructor(e){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=e,this.registerListeners()}setStreamController(e){this.streamController=e}registerListeners(){this.hls.on(d.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(d.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(d.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const n=this.hls.config;if(n.capLevelOnFPSDrop){const r=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=r,r&&typeof r.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),n.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,n){const r=performance.now();if(t){if(this.lastTime){const i=r-this.lastTime,s=n-this.lastDroppedFrames,l=t-this.lastDecodedFrames,c=1e3*s/i,u=this.hls;if(u.trigger(d.FPS_DROP,{currentDropped:s,currentDecoded:l,totalDroppedFrames:n}),c>0&&s>u.config.fpsDroppedMonitoringThreshold*l){let h=u.currentLevel;u.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+h),h>0&&(u.autoLevelCapping===-1||u.autoLevelCapping>=h)&&(h=h-1,u.trigger(d.FPS_DROP_LEVEL_CAPPING,{level:h,droppedLevel:u.currentLevel}),u.autoLevelCapping=h,this.streamController.nextLevelSwitch())}}this.lastTime=r,this.lastDroppedFrames=n,this.lastDecodedFrames=t}}checkFPSInterval(){const e=this.media;if(e)if(this.isVideoPlaybackQualityAvailable){const t=e.getVideoPlaybackQuality();this.checkFPS(e,t.totalVideoFrames,t.droppedVideoFrames)}else this.checkFPS(e,e.webkitDecodedFrameCount,e.webkitDroppedFrameCount)}}function Go(a,e){let t;try{t=new Event("addtrack")}catch(n){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=a,e.dispatchEvent(t)}function Ho(a,e){const t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues&&!a.cues.getCueById(e.id))try{if(a.addCue(e),!a.cues.getCueById(e.id))throw new Error(`addCue is failed for: ${e}`)}catch(n){ee.debug(`[texttrack-utils]: ${n}`);try{const r=new self.TextTrackCue(e.startTime,e.endTime,e.text);r.id=e.id,a.addCue(r)}catch(r){ee.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(a.mode=t)}function Ms(a,e){const t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues)for(let n=a.cues.length;n--;)e&&a.cues[n].removeEventListener("enter",e),a.removeCue(a.cues[n]);t==="disabled"&&(a.mode=t)}function ja(a,e,t,n){const r=a.mode;if(r==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0){const i=dc(a.cues,e,t);for(let s=0;s<i.length;s++)(!n||n(i[s]))&&a.removeCue(i[s])}r==="disabled"&&(a.mode=r)}function cc(a,e){if(e<=a[0].startTime)return 0;const t=a.length-1;if(e>a[t].endTime)return-1;let n=0,r=t,i;for(;n<=r;)if(i=Math.floor((r+n)/2),e<a[i].startTime)r=i-1;else if(e>a[i].startTime&&n<t)n=i+1;else return i;return a[n].startTime-e<e-a[r].startTime?n:r}function dc(a,e,t){const n=[],r=cc(a,e);if(r>-1)for(let i=r,s=a.length;i<s;i++){const l=a[i];if(l.startTime>=e&&l.endTime<=t)n.push(l);else if(l.startTime>t)return n}return n}function fa(a){const e=[];for(let t=0;t<a.length;t++){const n=a[t];(n.kind==="subtitles"||n.kind==="captions")&&n.label&&e.push(a[t])}return e}class fc extends Na{constructor(e){super(e,"subtitle-track-controller"),this.media=null,this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.queuedDefaultTrack=-1,this.useTextTrackPolling=!1,this.subtitlePollingInterval=-1,this._subtitleDisplay=!0,this.asyncPollTrackChange=()=>this.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let t=null;const n=fa(this.media.textTracks);for(let i=0;i<n.length;i++)if(n[i].mode==="hidden")t=n[i];else if(n[i].mode==="showing"){t=n[i];break}const r=this.findTrackForTextTrack(t);this.subtitleTrack!==r&&this.setSubtitleTrack(r)},this.registerListeners()}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,this.onTextTracksChanged=this.asyncPollTrackChange=null,super.destroy()}get subtitleDisplay(){return this._subtitleDisplay}set subtitleDisplay(e){this._subtitleDisplay=e,this.trackId>-1&&this.toggleTrackModes()}registerListeners(){const{hls:e}=this;e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.LEVEL_LOADING,this.onLevelLoading,this),e.on(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(d.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(d.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.LEVEL_LOADING,this.onLevelLoading,this),e.off(d.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(d.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(d.ERROR,this.onError,this)}onMediaAttached(e,t){this.media=t.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(e){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,e)}onMediaDetaching(e,t){const n=this.media;if(!n)return;const r=!!t.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||n.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,r)return;fa(n.textTracks).forEach(s=>{Ms(s)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(e,t){this.tracks=t.subtitleTracks}onSubtitleTrackLoaded(e,t){const{id:n,groupId:r,details:i}=t,s=this.tracksInGroup[n];if(!s||s.groupId!==r){this.warn(`Subtitle track with id:${n} and group:${r} not found in active group ${s==null?void 0:s.groupId}`);return}const l=s.details;s.details=t.details,this.log(`Subtitle track ${n} "${s.name}" lang:${s.lang} group:${r} loaded [${i.startSN}-${i.endSN}]`),n===this.trackId&&this.playlistLoaded(n,t,l)}onLevelLoading(e,t){this.switchLevel(t.level)}onLevelSwitching(e,t){this.switchLevel(t.level)}switchLevel(e){const t=this.hls.levels[e];if(!t)return;const n=t.subtitleGroups||null,r=this.groupIds;let i=this.currentTrack;if(!n||(r==null?void 0:r.length)!==(n==null?void 0:n.length)||n!=null&&n.some(s=>(r==null?void 0:r.indexOf(s))===-1)){this.groupIds=n,this.trackId=-1,this.currentTrack=null;const s=this.tracks.filter(h=>!n||n.indexOf(h.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(h=>h.default)&&(this.selectDefaultTrack=!1),s.forEach((h,m)=>{h.id=m});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const l=this.hls.config.subtitlePreference;if(!i&&l){this.selectDefaultTrack=!1;const h=ft(l,s);if(h>-1)i=s[h];else{const m=ft(l,this.tracks);i=this.tracks[m]}}let c=this.findTrackId(i);c===-1&&i&&(c=this.findTrackId(null));const u={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${n==null?void 0:n.join(",")}" group-id`),this.hls.trigger(d.SUBTITLE_TRACKS_UPDATED,u),c!==-1&&this.trackId===-1&&this.setSubtitleTrack(c)}}findTrackId(e){const t=this.tracksInGroup,n=this.selectDefaultTrack;for(let r=0;r<t.length;r++){const i=t[r];if(!(n&&!i.default||!n&&!e)&&(!e||St(i,e)))return r}if(e){for(let r=0;r<t.length;r++){const i=t[r];if(Xs(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const i=t[r];if(Xs(e.attrs,i.attrs,["LANGUAGE"]))return r}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let n=0;n<t.length;n++){const r=t[n];if(Ma(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===_e.SUBTITLE_TRACK&&t.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(t.context.groupId)!==-1)&&this.checkRetry(t)}get allSubtitleTracks(){return this.tracks}get subtitleTracks(){return this.tracksInGroup}get subtitleTrack(){return this.trackId}set subtitleTrack(e){this.selectDefaultTrack=!1,this.setSubtitleTrack(e)}setSubtitleOption(e){if(this.hls.config.subtitlePreference=e,e){if(e.id===-1)return this.setSubtitleTrack(-1),null;const t=this.allSubtitleTracks;if(this.selectDefaultTrack=!1,t.length){const n=this.currentTrack;if(n&&St(e,n))return n;const r=ft(e,this.tracksInGroup);if(r>-1){const i=this.tracksInGroup[r];return this.setSubtitleTrack(r),i}else{if(n)return null;{const i=ft(e,t);if(i>-1)return t[i]}}}}return null}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=e.id,r=e.groupId,i=this.getUrlWithDirectives(e.url,t),s=e.details,l=s==null?void 0:s.age;this.log(`Loading subtitle ${n} "${e.name}" lang:${e.lang} group:${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${l&&s.live?" age "+l.toFixed(1)+(s.type?" "+s.type||0:""):""} ${i}`),this.hls.trigger(d.SUBTITLE_TRACK_LOADING,{url:i,id:n,groupId:r,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=fa(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(i=>Ma(n,i))[0],r||this.warn(`Unable to find subtitle TextTrack with name "${n.name}" and language "${n.lang}"`)),[].slice.call(t).forEach(i=>{i.mode!=="disabled"&&i!==r&&(i.mode="disabled")}),r){const i=this.subtitleDisplay?"showing":"hidden";r.mode!==i&&(r.mode=i)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!f(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.selectDefaultTrack=!1;const n=this.currentTrack,r=t[e]||null;if(this.trackId=e,this.currentTrack=r,this.toggleTrackModes(),!r){this.hls.trigger(d.SUBTITLE_TRACK_SWITCH,{id:e});return}const i=!!r.details&&!r.details.live;if(e===this.trackId&&r===n&&i)return;this.log(`Switching to subtitle-track ${e}`+(r?` "${r.name}" lang:${r.lang} group:${r.groupId}`:""));const{id:s,groupId:l="",name:c,type:u,url:h}=r;this.hls.trigger(d.SUBTITLE_TRACK_SWITCH,{id:s,groupId:l,name:c,type:u,url:h});const m=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(m)}}function hc(){try{return crypto.randomUUID()}catch(a){try{const e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.slice(t.lastIndexOf("/")+1)}catch(e){let t=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const i=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(r=="x"?i:i&3|8).toString(16)})}}}function Qs(a){let e=5381,t=a.length;for(;t;)e=e*33^a.charCodeAt(--t);return(e>>>0).toString()}const Os=.025;let ha=function(a){return a[a.Point=0]="Point",a[a.Range=1]="Range",a}({});function pc(a,e,t){return`${a.identifier}-${t+1}-${Qs(e)}`}class mc{constructor(e,t){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=t,this.dateRange=e,this.setDateRange(e)}setDateRange(e){this.dateRange=e,this.resumeOffset=e.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=e.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=e.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=e.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var e;this.appendInPlaceStarted=!1,(e=this.assetListLoader)==null||e.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(e){var t;if(e>0&&e>=this.assetList.length)return!0;const n=this.playoutLimit;return e<=0||isNaN(n)?!1:n===0?!0:(((t=this.assetList[e])==null?void 0:t.startOffset)||0)>n}findAssetIndex(e){return this.assetList.indexOf(e)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const e=this.dateRange.startTime;if(this.snapOptions.out){const t=this.dateRange.tagAnchor;if(t)return Va(e,t)}return e}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(this.startTime===0||this.snapOptions.out)return!0;const e=this.dateRange.tagAnchor;if(e){const t=this.dateRange.startTime,n=Va(t,e);return t-n<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=f(e)?e:this.duration;return this.cumulativeDuration+t}get resumeTime(){const e=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const t=this.resumeAnchor;if(t)return Va(e,t)}return e}get appendInPlace(){return this.appendInPlaceStarted?!0:this.appendInPlaceDisabled?!1:!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)<Os))}set appendInPlace(e){if(this.appendInPlaceStarted){this.resetOnResume=!e;return}this.appendInPlaceDisabled=!e}get timelineStart(){return this._timelineStart!==null?this._timelineStart:this.startTime}set timelineStart(e){this._timelineStart=e}get duration(){const e=this.playoutLimit;let t;return this._duration!==null?t=this._duration:this.dateRange.duration?t=this.dateRange.duration:t=this.dateRange.plannedDuration||0,!isNaN(e)&&e<t&&(t=e),t}set duration(e){this._duration=e}get cue(){return this.dateRange.cue}get timelineOccupancy(){return this.dateRange.attr["X-TIMELINE-OCCUPIES"]==="RANGE"?ha.Range:ha.Point}get supplementsPrimary(){return this.dateRange.attr["X-TIMELINE-STYLE"]==="PRIMARY"}get contentMayVary(){return this.dateRange.attr["X-CONTENT-MAY-VARY"]!=="NO"}get assetUrl(){return this.dateRange.attr["X-ASSET-URI"]}get assetListUrl(){return this.dateRange.attr["X-ASSET-LIST"]}get baseUrl(){return this.base.url}get assetListLoaded(){return this.assetList.length>0||this.assetListResponse!==null}toString(){return gc(this)}}function Va(a,e){return a-e.start<e.duration/2&&!(Math.abs(a-(e.start+e.duration))<Os)?e.start:e.start+e.duration}function Yo(a,e,t){const n=new self.URL(a,t);return n.protocol!=="data:"&&n.searchParams.set("_HLS_primary_id",e),n}function Wa(a,e){for(;(t=a.assetList[++e])!=null&&t.error;)var t;return e}function gc(a){return`["${a.identifier}" ${a.cue.pre?"<pre>":a.cue.post?"<post>":""}${a.timelineStart.toFixed(2)}-${a.resumeTime.toFixed(2)}]`}function Fs(a){const e=a.timelineStart,t=a.duration||0;return`["${a.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class vc{constructor(e,t,n,r){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetails=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{this.reachedPlayout(this.currentTime)&&this.hls&&this.hls.trigger(d.PLAYOUT_LIMIT_REACHED,{})};const i=this.hls=new e(t);this.interstitial=n,this.assetItem=r;const s=()=>{this.hasDetails=!0};i.once(d.LEVEL_LOADED,s),i.once(d.AUDIO_TRACK_LOADED,s),i.once(d.SUBTITLE_TRACK_LOADED,s),i.on(d.MEDIA_ATTACHING,(l,{media:c})=>{this.removeMediaListeners(),this.mediaAttached=c,this.interstitial.playoutLimit&&(c.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&i.on(d.BUFFER_APPENDED,()=>{const h=this.bufferedEnd;this.reachedPlayout(h)&&(this._bufferedEosTime=h,i.trigger(d.BUFFERED_TO_END,void 0))}))})}get appendInPlace(){return this.interstitial.appendInPlace}loadSource(){const e=this.hls;if(e)if(e.url)e.levels.length&&!e.started&&e.startLoad(-1,!0);else{let t=this.assetItem.uri;try{t=Yo(t,e.config.primarySessionId||"").href}catch(n){}e.loadSource(t)}}bufferedInPlaceToEnd(e){var t;if(!this.appendInPlace)return!1;if((t=this.hls)!=null&&t.bufferedToEnd)return!0;if(!e)return!1;const n=Math.min(this._bufferedEosTime||1/0,this.duration),r=this.timelineOffset,i=bn.bufferInfo(e,r,0);return this.getAssetTime(i.end)>=n-.02}reachedPlayout(e){const n=this.interstitial.playoutLimit;return this.startOffset+e>=n}get destroyed(){var e;return!((e=this.hls)!=null&&e.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var e;return((e=this.hls)==null?void 0:e.media)||null}get bufferedEnd(){const e=this.media||this.mediaAttached;if(!e)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const t=bn.bufferInfo(e,e.currentTime,.001);return this.getAssetTime(t.end)}get currentTime(){const e=this.media||this.mediaAttached;return e?this.getAssetTime(e.currentTime):this._currentTime||0}get duration(){const e=this.assetItem.duration;if(!e)return 0;const t=this.interstitial.playoutLimit;if(t){const n=t-this.startOffset;if(n>0&&n<e)return n}return e}get remaining(){const e=this.duration;return e?Math.max(0,e-this.currentTime):0}get startOffset(){return this.assetItem.startOffset}get timelineOffset(){var e;return((e=this.hls)==null?void 0:e.config.timelineOffset)||0}set timelineOffset(e){const t=this.timelineOffset;if(e!==t){const n=e-t;if(Math.abs(n)>1/9e4&&this.hls){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=e}}}getAssetTime(e){const t=this.timelineOffset,n=this.duration;return Math.min(Math.max(0,e-t),n)}removeMediaListeners(){const e=this.mediaAttached;e&&(this._currentTime=e.currentTime,this.bufferSnapShot(),e.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var e;(e=this.hls)!=null&&e.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls&&this.hls.destroy(),this.hls=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){var t;this.loadSource(),(t=this.hls)==null||t.attachMedia(e)}detachMedia(){var e;this.removeMediaListeners(),this.mediaAttached=null,(e=this.hls)==null||e.detachMedia()}resumeBuffering(){var e;(e=this.hls)==null||e.resumeBuffering()}pauseBuffering(){var e;(e=this.hls)==null||e.pauseBuffering()}transferMedia(){var e;return this.bufferSnapShot(),((e=this.hls)==null?void 0:e.transferMedia())||null}resetDetails(){const e=this.hls;if(e&&this.hasDetails){e.stopLoad();const t=n=>delete n.details;e.levels.forEach(t),e.allAudioTracks.forEach(t),e.allSubtitleTracks.forEach(t),this.hasDetails=!1}}on(e,t,n){var r;(r=this.hls)==null||r.on(e,t)}once(e,t,n){var r;(r=this.hls)==null||r.once(e,t)}off(e,t,n){var r;(r=this.hls)==null||r.off(e,t)}toString(){var e;return`HlsAssetPlayer: ${Fs(this.assetItem)} ${(e=this.hls)==null?void 0:e.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const Xo=.033;class yc extends ${constructor(e,t){super("interstitials-sched",t),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=e}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach(e=>e.reset()),this.events=this.items=null}resetErrorsInRange(e,t){return this.events?this.events.reduce((n,r)=>e<=r.startOffset&&t>r.startOffset?(delete r.error,n+1):n,0):0}get duration(){const e=this.items;return e?e[e.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(e){return e&&this.eventMap[e]||null}hasEvent(e){return e in this.eventMap}findItemIndex(e,t){if(e.event)return this.findEventIndex(e.event.identifier);let n=-1;e.nextEvent?n=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(n=this.findEventIndex(e.previousEvent.identifier)+1);const r=this.items;if(r)for(r[n]||(t===void 0&&(t=e.start),n=this.findItemIndexAtTime(t));n>=0&&(i=r[n])!=null&&i.event;){var i;n--}return n}findItemIndexAtTime(e,t){const n=this.items;if(n)for(let r=0;r<n.length;r++){let i=n[r];if(t&&t!=="primary"&&(i=i[t]),e===i.start||e>i.start&&e<i.end)return r}return-1}findJumpRestrictedIndex(e,t){const n=this.items;if(n)for(let r=e;r<=t&&n[r];r++){const i=n[r].event;if(i!=null&&i.restrictions.jump&&!i.appendInPlace)return r}return-1}findEventIndex(e){const t=this.items;if(t)for(let r=t.length;r--;){var n;if(((n=t[r].event)==null?void 0:n.identifier)===e)return r}return-1}findAssetIndex(e,t){const n=e.assetList,r=n.length;if(r>1)for(let i=0;i<r;i++){const s=n[i];if(!s.error){const l=s.timelineStart;if(t===l||t>l&&(t<l+(s.duration||0)||i===r-1))return i}}return 0}get assetIdAtEnd(){var e;const t=(e=this.items)==null||(e=e[this.length-1])==null?void 0:e.event;if(t){const n=t.assetList,r=n[n.length-1];if(r)return r.identifier}return null}parseInterstitialDateRanges(e,t){const n=e.main.details,{dateRanges:r}=n,i=this.events,s=this.parseDateRanges(r,{url:n.url},t),l=Object.keys(r),c=i?i.filter(u=>!l.includes(u.identifier)):[];s.length&&s.sort((u,h)=>{const m=u.cue.pre,x=u.cue.post,C=h.cue.pre,L=h.cue.post;if(m&&!C)return-1;if(C&&!m||x&&!L)return 1;if(L&&!x)return-1;if(!m&&!C&&!x&&!L){const te=u.startTime,J=h.startTime;if(te!==J)return te-J}return u.dateRange.tagOrder-h.dateRange.tagOrder}),this.events=s,c.forEach(u=>{this.removeEvent(u)}),this.updateSchedule(e,c)}updateSchedule(e,t=[],n=!1){const r=this.events||[];if(r.length||t.length||this.length<2){const i=this.items,s=this.parseSchedule(r,e);(n||t.length||(i==null?void 0:i.length)!==s.length||s.some((c,u)=>Math.abs(c.playout.start-i[u].playout.start)>.005||Math.abs(c.playout.end-i[u].playout.end)>.005))&&(this.items=s,this.onScheduleUpdate(t,i))}}parseDateRanges(e,t,n){const r=[],i=Object.keys(e);for(let s=0;s<i.length;s++){const l=i[s],c=e[l];if(c.isInterstitial){let u=this.eventMap[l];u?u.setDateRange(c):(u=new mc(c,t),this.eventMap[l]=u,n===!1&&(u.appendInPlace=n)),r.push(u)}}return r}parseSchedule(e,t){const n=[],r=t.main.details,i=r.live?1/0:r.edge;let s=0;if(e=e.filter(c=>!c.error&&!(c.cue.once&&c.hasPlayed)),e.length){this.resolveOffsets(e,t);let c=0,u=0;if(e.forEach((h,m)=>{const x=h.cue.pre,C=h.cue.post,L=e[m-1]||null,te=h.appendInPlace,J=C?i:h.startOffset,Ce=h.duration,ht=h.timelineOccupancy===ha.Range?Ce:0,rt=h.resumptionOffset,Ut=(L==null?void 0:L.startTime)===J,$t=J+h.cumulativeDuration;let _n=te?$t+Ce:J+rt;if(x||!C&&J<=0){const un=u;u+=ht,h.timelineStart=$t;const fn=s;s+=Ce,n.push({event:h,start:$t,end:_n,playout:{start:fn,end:s},integrated:{start:un,end:u}})}else if(J<=i){if(!Ut){const Xt=J-c;if(Xt>Xo){const An=c,tr=u;u+=Xt;const hr=s;s+=Xt;const vr={previousEvent:e[m-1]||null,nextEvent:h,start:An,end:An+Xt,playout:{start:hr,end:s},integrated:{start:tr,end:u}};n.push(vr)}else Xt>0&&L&&(L.cumulativeDuration+=Xt,n[n.length-1].end=J)}C&&(_n=$t),h.timelineStart=$t;const un=u;u+=ht;const fn=s;s+=Ce,n.push({event:h,start:$t,end:_n,playout:{start:fn,end:s},integrated:{start:un,end:u}})}else return;const Yt=h.resumeTime;C||Yt>i?c=i:c=Yt}),c<i){var l;const h=c,m=u,x=i-c;u+=x;const C=s;s+=x,n.push({previousEvent:((l=n[n.length-1])==null?void 0:l.event)||null,nextEvent:null,start:c,end:h+x,playout:{start:C,end:s},integrated:{start:m,end:u}})}this.setDurations(i,s,u)}else n.push({previousEvent:null,nextEvent:null,start:0,end:i,playout:{start:0,end:i},integrated:{start:0,end:i}}),this.setDurations(i,i,i);return n}setDurations(e,t,n){this.durations={primary:e,playout:t,integrated:n}}resolveOffsets(e,t){const n=t.main.details,r=n.live?1/0:n.edge;let i=0,s=-1;e.forEach((l,c)=>{const u=l.cue.pre,h=l.cue.post,m=u?0:h?r:l.startTime;this.updateAssetDurations(l),s===m?l.cumulativeDuration=i:(i=0,s=m),!h&&l.snapOptions.in&&(l.resumeAnchor=Zn(null,n.fragments,l.startOffset+l.resumptionOffset,0,0)||void 0),l.appendInPlace&&!l.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(l,t)||(l.appendInPlace=!1)),!l.appendInPlace&&c+1<e.length&&e[c+1].startTime-e[c].resumeTime<Xo&&(e[c+1].appendInPlace=!1,e[c+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${l}`));const C=f(l.resumeOffset)?l.resumeOffset:l.duration;i+=C})}primaryCanResumeInPlaceAt(e,t){const n=e.resumeTime,r=e.startTime+e.resumptionOffset;return Math.abs(n-r)>Os?(this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${r}`),!1):!Object.keys(t).some(s=>{const l=t[s].details,c=l.edge;if(n>=c)return this.log(`"${e.identifier}" resumption ${n} past ${s} playlist end ${c}`),!1;const u=Zn(null,l.fragments,n);if(!u)return this.log(`"${e.identifier}" resumption ${n} does not align with any fragments in ${s} playlist (${l.fragStart}-${l.fragmentEnd})`),!0;const h=s==="audio"?.175:0;return Math.abs(u.start-n)<Os+h||Math.abs(u.end-n)<Os+h?!1:(this.log(`"${e.identifier}" resumption ${n} not aligned with ${s} fragment bounds (${u.start}-${u.end} sn: ${u.sn} cc: ${u.cc})`),!0)})}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,r=!1,i=!1;for(let s=0;s<e.assetList.length;s++){const l=e.assetList[s],c=t+n;l.startOffset=n,l.timelineStart=c,r||(r=l.duration===null),i||(i=!!l.error);const u=l.error?0:l.duration||0;n+=u}r&&!i?e.duration=Math.max(n,e.duration):e.duration=n}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function is(a){return`[${a.event?'"'+a.event.identifier+'"':"primary"}: ${a.start.toFixed(2)}-${a.end.toFixed(2)}]`}class _c{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let r;try{r=Yo(n,this.hls.sessionId,e.baseUrl)}catch(x){const C=this.assignAssetListError(e,B.ASSET_LIST_LOAD_ERROR,x,n);this.hls.trigger(d.ERROR,C);return}t&&r.protocol!=="data:"&&r.searchParams.set("_HLS_start_offset",""+t);const i=this.hls.config,s=i.loader,l=new s(i),c={responseType:"json",url:r.href},u=i.interstitialAssetListLoadPolicy.default,h={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},m={onSuccess:(x,C,L,te)=>{const J=x.data,Ce=J==null?void 0:J.ASSETS;if(!Array.isArray(Ce)){const ht=this.assignAssetListError(e,B.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),L.url,C,te);this.hls.trigger(d.ERROR,ht);return}e.assetListResponse=J,this.hls.trigger(d.ASSET_LIST_LOADED,{event:e,assetListResponse:J,networkDetails:te})},onError:(x,C,L,te)=>{const J=this.assignAssetListError(e,B.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${x.code} ${x.text} (${C.url})`),C.url,te,L);this.hls.trigger(d.ERROR,J)},onTimeout:(x,C,L)=>{const te=this.assignAssetListError(e,B.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${C.url})`),C.url,x,L);this.hls.trigger(d.ERROR,te)}};return l.load(c,h,m),this.hls.trigger(d.ASSET_LIST_LOADING,{event:e}),l}assignAssetListError(e,t,n,r,i,s){return e.error=n,{type:ae.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:r,error:n,networkDetails:s,stats:i}}}function Qo(a){a==null||a.play().catch(()=>{})}class Ec extends ${constructor(e,t){super("interstitials",e.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const n=this.currentTime;if(n===void 0||this.playbackDisabled||!this.schedule)return;const r=n-this.timelinePos;if(Math.abs(r)<1/7056e5)return;const s=r<=-.01;this.timelinePos=n,this.bufferedPos=n;const l=this.playingItem;if(!l){this.checkBuffer();return}if(s&&this.schedule.resetErrorsInRange(n,n-r)&&this.updateSchedule(!0),this.checkBuffer(),s&&n<l.start||n>=l.end){var c;const C=this.findItemIndex(l);let L=this.schedule.findItemIndexAtTime(n);if(L===-1&&(L=C+(s?-1:1),this.log(`seeked ${s?"back ":""}to position not covered by schedule ${n} (resolving from ${C} to ${L})`)),!this.isInterstitial(l)&&(c=this.media)!=null&&c.paused&&(this.shouldPlay=!1),!s&&L>C){const te=this.schedule.findJumpRestrictedIndex(C+1,L);if(te>C){this.setSchedulePosition(te);return}}this.setSchedulePosition(L);return}const u=this.playingAsset;if(!u){if(this.playingLastItem&&this.isInterstitial(l)){const C=l.event.assetList[0];C&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(n,C))}return}const h=u.timelineStart,m=u.duration||0;if(s&&n<h||n>=h+m){var x;(x=l.event)!=null&&x.appendInPlace&&(this.clearInterstitial(l.event,l),this.flushFrontBuffer(n)),this.setScheduleToAssetAtTime(n,u)}},this.onTimeupdate=()=>{const n=this.currentTime;if(n===void 0||this.playbackDisabled)return;if(n>this.timelinePos)this.timelinePos=n,n>this.bufferedPos&&this.checkBuffer();else return;const r=this.playingItem;if(!r||this.playingLastItem)return;if(n>=r.end){this.timelinePos=r.end;const l=this.findItemIndex(r);this.setSchedulePosition(l+1)}const i=this.playingAsset;if(!i)return;const s=i.timelineStart+(i.duration||0);n>=s&&this.setScheduleToAssetAtTime(n,i)},this.onScheduleUpdate=(n,r)=>{const i=this.schedule;if(!i)return;const s=this.playingItem,l=i.events||[],c=i.items||[],u=i.durations,h=n.map(te=>te.identifier),m=!!(l.length||h.length);(m||r)&&this.log(`INTERSTITIALS_UPDATED (${l.length}): ${l}
Schedule: ${c.map(te=>is(te))} pos: ${this.timelinePos}`),h.length&&this.log(`Removed events ${h}`);let x=null,C=null;s&&(x=this.updateItem(s,this.timelinePos),this.itemsMatch(s,x)?this.playingItem=x:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const L=this.bufferingItem;if(L&&(C=this.updateItem(L,this.bufferedPos),this.itemsMatch(L,C)?this.bufferingItem=C:L.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(L.event,null))),n.forEach(te=>{te.assetList.forEach(J=>{this.clearAssetPlayer(J.identifier,null)})}),this.playerQueue.forEach(te=>{if(te.interstitial.appendInPlace){const J=te.assetItem.timelineStart,Ce=te.timelineOffset-J;if(Ce)try{te.timelineOffset=J}catch(ht){Math.abs(Ce)>Os&&this.warn(`${ht} ("${te.assetId}" ${te.timelineOffset}->${J})`)}}}),m||r){if(this.hls.trigger(d.INTERSTITIALS_UPDATED,{events:l.slice(0),schedule:c.slice(0),durations:u,removedIds:h}),this.isInterstitial(s)&&h.includes(s.event.identifier)){this.warn(`Interstitial "${s.event.identifier}" removed while playing`),this.primaryFallback(s.event);return}s&&this.trimInPlace(x,s),L&&this.trimInPlace(C,L),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new _c(e),this.schedule=new yc(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e&&(e.on(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(d.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(d.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(d.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(d.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(d.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(d.BUFFER_APPENDED,this.onBufferAppended,this),e.on(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(d.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(d.MEDIA_ENDED,this.onMediaEnded,this),e.on(d.ERROR,this.onError,this),e.on(d.DESTROYING,this.onDestroying,this))}unregisterListeners(){const e=this.hls;e&&(e.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(d.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(d.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(d.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(d.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(d.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(d.BUFFER_CODECS,this.onBufferCodecs,this),e.off(d.BUFFER_APPENDED,this.onBufferAppended,this),e.off(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(d.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(d.MEDIA_ENDED,this.onMediaEnded,this),e.off(d.ERROR,this.onError,this),e.off(d.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var e;(e=this.getBufferingPlayer())==null||e.resumeBuffering()}pauseBuffering(){var e;(e=this.getBufferingPlayer())==null||e.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.schedule=this.manager=null,this.hls=this.HlsPlayerClass=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const e=this.primaryMedia||this.media;e&&this.removeMediaListeners(e)}removeMediaListeners(e){Li(e,"play",this.onPlay),Li(e,"pause",this.onPause),Li(e,"seeking",this.onSeeking),Li(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;Ci(n,"seeking",this.onSeeking),Ci(n,"timeupdate",this.onTimeupdate),Ci(n,"play",this.onPlay),Ci(n,"pause",this.onPause)}onMediaAttached(e,t){const n=this.effectivePlayingItem,r=this.detachedData;if(this.detachedData=null,n===null)this.checkStart();else if(!r){this.clearScheduleState();const i=this.findItemIndex(n);this.setSchedulePosition(i)}}clearScheduleState(){this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){const n=!!t.transferMedia,r=this.media;if(this.media=null,!n&&(r&&this.removeMediaListeners(r),this.detachedData)){const i=this.getBufferingPlayer();i&&(this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,i.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.hls)return null;if(this.manager)return this.manager;const e=this,t=()=>e.bufferingItem||e.waitingItem,n=m=>m&&e.getAssetPlayer(m.identifier),r=(m,x,C,L,te)=>{if(m){let J=m[x].start;const Ce=m.event;if(Ce){if(x==="playout"||Ce.timelineOccupancy!==ha.Point){const ht=n(C);(ht==null?void 0:ht.interstitial)===Ce&&(J+=ht.assetItem.startOffset+ht[te])}}else{const ht=L==="bufferedPos"?s():e[L];J+=ht-m.start}return J}return 0},i=(m,x)=>{var C;if(m!==0&&x!=="primary"&&(C=e.schedule)!=null&&C.length){var L;const te=e.schedule.findItemIndexAtTime(m),J=(L=e.schedule.items)==null?void 0:L[te];if(J){const Ce=J[x].start-J.start;return m+Ce}}return m},s=()=>{const m=e.bufferedPos;return m===Number.MAX_VALUE?l("primary"):Math.max(m,0)},l=m=>{var x,C;return(x=e.primaryDetails)!=null&&x.live?e.primaryDetails.edge:((C=e.schedule)==null?void 0:C.durations[m])||0},c=(m,x)=>{var C,L;const te=e.effectivePlayingItem;if(te!=null&&(C=te.event)!=null&&C.restrictions.skip||!e.schedule)return;e.log(`seek to ${m} "${x}"`);const J=e.effectivePlayingItem,Ce=e.schedule.findItemIndexAtTime(m,x),ht=(L=e.schedule.items)==null?void 0:L[Ce],rt=e.getBufferingPlayer(),Ut=rt==null?void 0:rt.interstitial,$t=Ut==null?void 0:Ut.appendInPlace,_n=J&&e.itemsMatch(J,ht);if(J&&($t||_n)){const Yt=n(e.playingAsset),un=(Yt==null?void 0:Yt.media)||e.primaryMedia;if(un){const fn=x==="primary"?un.currentTime:r(J,x,e.playingAsset,"timelinePos","currentTime"),Xt=m-fn,An=($t?fn:un.currentTime)+Xt;if(An>=0&&(!Yt||$t||An<=Yt.duration)){un.currentTime=An;return}}}if(ht){let Yt=m;if(x!=="primary"){const fn=ht[x].start,Xt=m-fn;Yt=ht.start+Xt}const un=!e.isInterstitial(ht);if((!e.isInterstitial(J)||J.event.appendInPlace)&&(un||ht.event.appendInPlace)){const fn=e.media||($t?rt==null?void 0:rt.media:null);fn&&(fn.currentTime=Yt)}else if(J){const fn=e.findItemIndex(J);if(Ce>fn){const An=e.schedule.findJumpRestrictedIndex(fn+1,Ce);if(An>fn){e.setSchedulePosition(An);return}}let Xt=0;if(un)e.timelinePos=Yt,e.checkBuffer();else{const An=ht.event.assetList,tr=m-(ht[x]||ht).start;for(let hr=An.length;hr--;){const vr=An[hr];if(vr.duration&&tr>=vr.startOffset&&tr<vr.startOffset+vr.duration){Xt=hr;break}}}e.setSchedulePosition(Ce,Xt)}}},u=()=>{const m=e.effectivePlayingItem;if(e.isInterstitial(m))return m;const x=t();return e.isInterstitial(x)?x:null},h={get bufferedEnd(){const m=t(),x=e.bufferingItem;if(x&&x===m){var C;return r(x,"playout",e.bufferingAsset,"bufferedPos","bufferedEnd")-x.playout.start||((C=e.bufferingAsset)==null?void 0:C.startOffset)||0}return 0},get currentTime(){const m=u(),x=e.effectivePlayingItem;return x&&x===m?r(x,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-x.playout.start:0},set currentTime(m){const x=u(),C=e.effectivePlayingItem;C&&C===x&&c(m+C.playout.start,"playout")},get duration(){const m=u();return m?m.playout.end-m.playout.start:0},get assetPlayers(){var m;const x=(m=u())==null?void 0:m.event.assetList;return x?x.map(C=>e.getAssetPlayer(C.identifier)):[]},get playingIndex(){var m;const x=(m=u())==null?void 0:m.event;return x&&e.effectivePlayingAsset?x.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return u()}};return this.manager={get events(){var m;return((m=e.schedule)==null||(m=m.events)==null?void 0:m.slice(0))||[]},get schedule(){var m;return((m=e.schedule)==null||(m=m.items)==null?void 0:m.slice(0))||[]},get interstitialPlayer(){return u()?h:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const m=t();return e.findItemIndex(m)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const m=e.effectivePlayingItem;return e.findItemIndex(m)},primary:{get bufferedEnd(){return s()},get currentTime(){const m=e.timelinePos;return m>0?m:0},set currentTime(m){c(m,"primary")},get duration(){return l("primary")},get seekableStart(){var m;return((m=e.primaryDetails)==null?void 0:m.fragmentStart)||0}},integrated:{get bufferedEnd(){return r(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return r(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(m){c(m,"integrated")},get duration(){return l("integrated")},get seekableStart(){var m;return i(((m=e.primaryDetails)==null?void 0:m.fragmentStart)||0,"integrated")}},skip:()=>{const m=e.effectivePlayingItem,x=m==null?void 0:m.event;if(x&&!x.restrictions.skip){const C=e.findItemIndex(m);if(x.appendInPlace){const L=m.playout.start+m.event.duration;c(L+.001,"playout")}else e.advanceAfterAssetEnded(x,C,1/0)}}}}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var e;const t=this.playingItem,n=(e=this.schedule)==null?void 0:e.items;return!this.playbackStarted||!t||!n?!1:this.findItemIndex(t)===n.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var e,t;if(this.mediaSelection===null)return;const n=this.waitingItem||this.playingItem;if(this.isInterstitial(n)&&!n.event.appendInPlace)return;let r=this.media;!r&&(e=this.bufferingItem)!=null&&(e=e.event)!=null&&e.appendInPlace&&(r=this.primaryMedia);const i=(t=r)==null?void 0:t.currentTime;if(!(i===void 0||!f(i)))return i}get primaryMedia(){var e;return this.media||((e=this.detachedData)==null?void 0:e.media)||null}isInterstitial(e){return!!(e!=null&&e.event)}retreiveMediaSource(e,t){const n=this.getAssetPlayer(e);n&&this.transferMediaFromPlayer(n,t)}transferMediaFromPlayer(e,t){const n=e.interstitial.appendInPlace,r=e.media;if(n&&r===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&r){this.detachedData={media:r};return}const i=e.transferMedia();this.log(`transfer MediaSource from ${e} ${At(i)}`),this.detachedData=i}else t&&r&&(this.shouldPlay||(this.shouldPlay=!r.paused))}transferMediaTo(e,t){var n,r;if(e.media===t)return;let i=null;const s=this.hls,l=e!==s,c=l&&e.interstitial.appendInPlace,u=(n=this.detachedData)==null?void 0:n.mediaSource;let h;if(s.media)c&&(i=s.transferMedia(),this.detachedData=i),h="Primary";else if(u){const L=this.getBufferingPlayer();L?(i=L.transferMedia(),h=`${L}`):h="detached MediaSource"}else h="detached media";if(!i){if(u)i=this.detachedData,this.log(`using detachedData: MediaSource ${At(i)}`);else if(!this.detachedData||s.media===t){const L=this.playerQueue;L.length>1&&L.forEach(te=>{if(l&&te.interstitial.appendInPlace!==c){const J=te.interstitial;this.clearInterstitial(te.interstitial,null),J.appendInPlace=!1,J.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${J}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const m=i&&"mediaSource"in i&&((r=i.mediaSource)==null?void 0:r.readyState)!=="closed",x=m&&i?i:t;this.log(`${m?"transfering MediaSource":"attaching media"} to ${l?e:"Primary"} from ${h} (media.currentTime: ${t.currentTime})`);const C=this.schedule;if(x===i&&C){const L=l&&e.assetId===C.assetIdAtEnd;x.overrides={duration:C.duration,endOfStream:!l||L,cueRemoval:!l}}e.attachMedia(x)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=e==null?void 0:e.events;if(!t||this.playbackDisabled||!this.media)return;this.bufferedPos===-1&&(this.bufferedPos=0);const n=this.timelinePos,r=this.effectivePlayingItem;if(n===-1){const i=this.hls.startPosition;if(this.timelinePos=i,t.length&&t[0].cue.pre){const s=e.findEventIndex(t[0].identifier);this.setSchedulePosition(s)}else if(i>=0||!this.primaryLive){const s=this.timelinePos=i>0?i:0,l=e.findItemIndexAtTime(s);this.setSchedulePosition(l)}}else if(r&&!this.playingItem){const i=e.findItemIndex(r);this.setSchedulePosition(i)}}advanceAssetBuffering(e,t){const n=e.event,r=n.findAssetIndex(t),i=Wa(n,r);if(!n.isAssetPastPlayoutLimit(i))this.bufferedToEvent(e,i);else if(this.schedule){var s;const l=(s=this.schedule.items)==null?void 0:s[this.findItemIndex(e)+1];l&&this.bufferedToItem(l)}}advanceAfterAssetEnded(e,t,n){const r=Wa(e,n);if(e.isAssetPastPlayoutLimit(r)){if(this.schedule){const i=this.schedule.items;if(i){const s=t+1,l=i.length;if(s>=l){this.setSchedulePosition(-1);return}const c=e.resumeTime;this.timelinePos<c&&(this.timelinePos=c,e.appendInPlace&&this.advanceInPlace(c),this.checkBuffer(this.bufferedPos<c)),this.setSchedulePosition(s)}}}else{if(e.appendInPlace){const i=e.assetList[r];i&&this.advanceInPlace(i.timelineStart)}this.setSchedulePosition(t,r)}}setScheduleToAssetAtTime(e,t){const n=this.schedule;if(!n)return;const r=t.parentIdentifier,i=n.getEvent(r);if(i){const s=n.findEventIndex(r),l=n.findAssetIndex(i,e);this.advanceAfterAssetEnded(i,s,l-1)}}setSchedulePosition(e,t){var n;const r=(n=this.schedule)==null?void 0:n.items;if(!r||this.playbackDisabled)return;const i=e>=0?r[e]:null;this.log(`setSchedulePosition ${e}, ${t} (${i&&is(i)})`);const s=this.waitingItem||this.playingItem,l=this.playingLastItem;if(this.isInterstitial(s)){const h=s.event,m=this.playingAsset,x=m==null?void 0:m.identifier,C=x?this.getAssetPlayer(x):null;if(C&&x&&(!this.eventItemsMatch(s,i)||t!==void 0&&x!==h.assetList[t].identifier)){var c;const L=h.findAssetIndex(m);if(this.log(`INTERSTITIAL_ASSET_ENDED ${L+1}/${h.assetList.length} ${Fs(m)}`),this.endedAsset=m,this.playingAsset=null,this.hls.trigger(d.INTERSTITIAL_ASSET_ENDED,{asset:m,assetListIndex:L,event:h,schedule:r.slice(0),scheduleIndex:e,player:C}),s!==this.playingItem){this.itemsMatch(s,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(h,this.findItemIndex(this.playingItem),L);return}this.retreiveMediaSource(x,i),C.media&&!((c=this.detachedData)!=null&&c.mediaSource)&&C.detachMedia()}if(!this.eventItemsMatch(s,i)&&(this.endedItem=s,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${h} ${is(s)}`),h.hasPlayed=!0,this.hls.trigger(d.INTERSTITIAL_ENDED,{event:h,schedule:r.slice(0),scheduleIndex:e}),h.cue.once)){var u;this.updateSchedule();const L=(u=this.schedule)==null?void 0:u.items;if(i&&L){const te=this.findItemIndex(i);this.advanceSchedule(te,L,t,s,l)}return}}this.advanceSchedule(e,r,t,s,l)}advanceSchedule(e,t,n,r,i){const s=this.schedule;if(!s)return;const l=e>=0?t[e]:null,c=this.primaryMedia,u=this.playerQueue;if(u.length&&u.forEach(h=>{const m=h.interstitial,x=s.findEventIndex(m.identifier);(x<e||x>e+1)&&this.clearInterstitial(m,l)}),this.isInterstitial(l)){this.timelinePos=Math.min(Math.max(this.timelinePos,l.start),l.end);const h=l.event;if(n===void 0){n=s.findAssetIndex(h,this.timelinePos);const L=Wa(h,n-1);if(h.isAssetPastPlayoutLimit(L)||h.appendInPlace&&this.timelinePos===l.end){this.advanceAfterAssetEnded(h,e,n);return}n=L}const m=this.waitingItem;this.assetsBuffered(l,c)||this.setBufferingItem(l);let x=this.preloadAssets(h,n);if(this.eventItemsMatch(l,m||r)||(this.waitingItem=l,this.log(`INTERSTITIAL_STARTED ${is(l)} ${h.appendInPlace?"append in place":""}`),this.hls.trigger(d.INTERSTITIAL_STARTED,{event:h,schedule:t.slice(0),scheduleIndex:e})),!h.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${h}`);return}if(h.assetListLoader&&(h.assetListLoader.destroy(),h.assetListLoader=void 0),!c){this.log(`Waiting for attachMedia to start Interstitial ${h}`);return}this.waitingItem=this.endedItem=null,this.playingItem=l;const C=h.assetList[n];if(!C){this.advanceAfterAssetEnded(h,e,n||0);return}if(x||(x=this.getAssetPlayer(C.identifier)),x===null||x.destroyed){const L=h.assetList.length;this.warn(`asset ${n+1}/${L} player destroyed ${h}`),x=this.createAssetPlayer(h,C,n),x.loadSource()}if(!this.eventItemsMatch(l,this.bufferingItem)&&h.appendInPlace&&this.isAssetBuffered(C))return;this.startAssetPlayer(x,n,t,e,c),this.shouldPlay&&Qo(x.media)}else l!==null?(this.resumePrimary(l,e,r),this.shouldPlay&&Qo(this.hls.media)):i&&this.isInterstitial(r)&&(this.endedItem=null,this.playingItem=r,r.event.appendInPlace||this.attachPrimary(s.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var e;return(e=this.mediaSelection)==null?void 0:e.main.details}get primaryLive(){var e;return!!((e=this.primaryDetails)!=null&&e.live)}resumePrimary(e,t,n){var r,i;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${is(e)}`),!((r=this.detachedData)!=null&&r.mediaSource)){let l=this.timelinePos;(l<e.start||l>=e.end)&&(l=this.getPrimaryResumption(e,t),this.timelinePos=l),this.attachPrimary(l,e)}if(!n)return;const s=(i=this.schedule)==null?void 0:i.items;s&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${is(e)}`),this.hls.trigger(d.INTERSTITIALS_PRIMARY_RESUMED,{schedule:s.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){const n=e.start;if(this.primaryLive){const r=this.primaryDetails;if(t===0)return this.hls.startPosition;if(r&&(n<r.fragmentStart||n>r.edge))return this.hls.liveSyncPosition||-1}return n}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);return t!=null&&t.hls?t.hls.bufferedToEnd:bn.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,n){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const r=this.primaryMedia;if(!r)return;const i=this.hls;i.media?this.checkBuffer():(this.transferMediaTo(i,r),n&&this.startLoadingPrimaryAt(e,n)),n||(this.timelinePos=e,this.startLoadingPrimaryAt(e,n))}startLoadingPrimaryAt(e,t){var n;const r=this.hls;!r.loadingEnabled||!r.media||Math.abs((((n=r.mainForwardBufferInfo)==null?void 0:n.start)||r.media.currentTime)-e)>.5?r.startLoad(e,t):r.bufferingEnabled||r.resumeBuffering()}onManifestLoading(){var e;this.stopLoad(),(e=this.schedule)==null||e.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(d.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(d.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(t.level===-1||!this.schedule)return;const n=this.hls.levels[t.level],r=b(b({},this.mediaSelection||this.altSelection),{},{main:n});this.mediaSelection=r,this.schedule.parseInterstitialDateRanges(r,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const n=this.hls.audioTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=b(b({},this.altSelection),{},{audio:n});return}const i=b(b({},r),{},{audio:n});this.mediaSelection=i}onSubtitleTrackUpdated(e,t){const n=this.hls.subtitleTracks[t.id],r=this.mediaSelection;if(!r){this.altSelection=b(b({},this.altSelection),{},{subtitles:n});return}const i=b(b({},r),{},{subtitles:n});this.mediaSelection=i}onAudioTrackSwitching(e,t){const n=Ze(t);this.playerQueue.forEach(({hls:r})=>r&&(r.setAudioOption(t)||r.setAudioOption(n)))}onSubtitleTrackSwitch(e,t){const n=Ze(t);this.playerQueue.forEach(({hls:r})=>r&&(r.setSubtitleOption(t)||t.id!==-1&&r.setSubtitleOption(n)))}onBufferCodecs(e,t){const n=t.tracks;n&&(this.requiredTracks=n)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){const n=this.playingItem;if(n&&!this.itemsMatch(n,this.bufferingItem)&&!this.isInterstitial(n)){const r=this.timelinePos;this.bufferedPos=r,this.checkBuffer()}}onBufferedToEnd(e){if(!this.schedule)return;const t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let r=0;r<t.length;r++){const i=t[r];if(i.cue.post){var n;const s=this.schedule.findEventIndex(i.identifier),l=(n=this.schedule.items)==null?void 0:n[s];this.isInterstitial(l)&&this.eventItemsMatch(l,this.bufferingItem)&&this.bufferedToItem(l,0);break}}this.bufferedPos=Number.MAX_VALUE}}onMediaEnded(e){const t=this.playingItem;if(!this.playingLastItem&&t){const n=this.findItemIndex(t);this.setSchedulePosition(n+1)}else this.shouldPlay=!1}updateItem(e,t){var n;const r=(n=this.schedule)==null?void 0:n.items;if(e&&r){const i=this.findItemIndex(e,t);return r[i]||null}return null}trimInPlace(e,t){if(this.isInterstitial(e)&&e.event.appendInPlace&&t.end-e.end>.25){e.event.assetList.forEach((i,s)=>{e.event.isAssetPastPlayoutLimit(s)&&this.clearAssetPlayer(i.identifier,null)});const n=e.end+.25,r=bn.bufferInfo(this.primaryMedia,n,0);(r.end>n||(r.nextStart||0)>n)&&(this.attachPrimary(n,null),this.flushFrontBuffer(n))}}itemsMatch(e,t){return!!t&&(e===t||e.event&&t.event&&this.eventItemsMatch(e,t)||!e.event&&!t.event&&this.findItemIndex(e)===this.findItemIndex(t))}eventItemsMatch(e,t){var n;return!!t&&(e===t||e.event.identifier===((n=t.event)==null?void 0:n.identifier))}findItemIndex(e,t){return e&&this.schedule?this.schedule.findItemIndex(e,t):-1}updateSchedule(e=!1){var t;const n=this.mediaSelection;n&&((t=this.schedule)==null||t.updateSchedule(n,[],e))}checkBuffer(e){var t;const n=(t=this.schedule)==null?void 0:t.items;if(!n)return;const r=bn.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=r.len<1),this.updateBufferedPos(r.end,n,e)}updateBufferedPos(e,t,n){const r=this.schedule,i=this.bufferingItem;if(this.bufferedPos>e||!r)return;if(t.length===1&&this.itemsMatch(t[0],i)){this.bufferedPos=e;return}const s=this.playingItem,l=this.findItemIndex(s);let c=r.findItemIndexAtTime(e);if(this.bufferedPos<e){var u;const h=this.findItemIndex(i),m=Math.min(h+1,t.length-1),x=t[m];if((c===-1&&i&&e>=i.end||(u=x.event)!=null&&u.appendInPlace&&e+.01>=x.start)&&(c=m),this.isInterstitial(i)){const C=i.event;if(m-l>1&&C.appendInPlace===!1||C.assetList.length===0&&C.assetListLoader)return}if(this.bufferedPos=e,c>h&&c>l)this.bufferedToItem(x);else{const C=this.primaryDetails;this.primaryLive&&C&&e>C.edge-C.targetduration&&x.start<C.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(x)&&this.preloadAssets(x.event,0)}}else n&&s&&!this.itemsMatch(s,i)&&(c===l?this.bufferedToItem(s):c===l+1&&this.bufferedToItem(t[c]))}assetsBuffered(e,t){return e.event.assetList.length===0?!1:!e.event.assetList.some(r=>{const i=this.getAssetPlayer(r.identifier);return!(i!=null&&i.bufferedInPlaceToEnd(t))})}setBufferingItem(e){const t=this.bufferingItem,n=this.schedule;if(!this.itemsMatch(e,t)&&n){const{items:r,events:i}=n;if(!r||!i)return t;const s=this.isInterstitial(e),l=this.getBufferingPlayer();this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos));const c=l?l.remaining:t?t.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${is(e)}`+(t?` (${c.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(s){const u=n.findAssetIndex(e.event,this.bufferedPos);e.event.assetList.forEach((h,m)=>{const x=this.getAssetPlayer(h.identifier);x&&(m===u&&x.loadSource(),x.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(u=>u.pauseBuffering());this.hls.trigger(d.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:i.slice(0),schedule:r.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}else this.bufferingItem!==e&&(this.bufferingItem=e);return t}bufferedToItem(e,t=0){const n=this.setBufferingItem(e);if(!this.playbackDisabled){if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(n!==null){this.bufferingAsset=null;const r=this.detachedData;r?r.mediaSource?this.attachPrimary(e.start,e,!0):this.preloadPrimary(e):this.preloadPrimary(e)}}}preloadPrimary(e){const t=this.findItemIndex(e),n=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(n)}bufferedToEvent(e,t){const n=e.event,r=n.assetList.length===0&&!n.assetListLoader,i=n.cue.once;if(r||!i){const s=this.preloadAssets(n,t);if(s!=null&&s.interstitial.appendInPlace){const l=this.primaryMedia;l&&this.bufferAssetPlayer(s,l)}}}preloadAssets(e,t){const n=e.assetUrl,r=e.assetList.length,i=r===0&&!e.assetListLoader,s=e.cue.once;if(i){const c=e.timelineStart;if(e.appendInPlace){var l;const x=this.playingItem;!this.isInterstitial(x)&&(x==null||(l=x.nextEvent)==null?void 0:l.identifier)===e.identifier&&this.flushFrontBuffer(c+.25)}let u,h=0;if(!this.playingItem&&this.primaryLive&&(h=this.hls.startPosition,h===-1&&(h=this.hls.liveSyncPosition||0)),h&&!(e.cue.pre||e.cue.post)){const x=h-c;x>0&&(u=Math.round(x*1e3)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:r} ${e}${u?` live-start: ${h} start-offset: ${u}`:""}`),n)return this.createAsset(e,0,0,c,e.duration,n);const m=this.assetListLoader.loadAssetList(e,u);m&&(e.assetListLoader=m)}else if(!s&&r){for(let u=t;u<r;u++){const h=e.assetList[u],m=this.getAssetPlayerQueueIndex(h.identifier);(m===-1||this.playerQueue[m].destroyed)&&!h.error&&this.createAssetPlayer(e,h,u)}const c=e.assetList[t];if(c){const u=this.getAssetPlayer(c.identifier);return u&&u.loadSource(),u}}return null}flushFrontBuffer(e){const t=this.requiredTracks;if(!t)return;this.log(`Removing front buffer starting at ${e}`),Object.keys(t).forEach(r=>{this.hls.trigger(d.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:r})})}getAssetPlayerQueueIndex(e){const t=this.playerQueue;for(let n=0;n<t.length;n++)if(e===t[n].assetId)return n;return-1}getAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);return this.playerQueue[t]||null}getBufferingPlayer(){const{playerQueue:e,primaryMedia:t}=this;if(t){for(let n=0;n<e.length;n++)if(e[n].media===t)return e[n]}return null}createAsset(e,t,n,r,i,s){const l={parentIdentifier:e.identifier,identifier:pc(e,s,t),duration:i,startOffset:n,timelineStart:r,uri:s};return this.createAssetPlayer(e,l,t)}createAssetPlayer(e,t,n){const r=this.hls,i=r.userConfig;let s=i.videoPreference;const l=r.loadLevelObj||r.levels[r.currentLevel];(s||l)&&(s=p({},s),l.videoCodec&&(s.videoCodec=l.videoCodec),l.videoRange&&(s.allowedVideoRanges=[l.videoRange]));const c=r.audioTracks[r.audioTrack],u=r.subtitleTracks[r.subtitleTrack];let h=0;if(this.primaryLive||e.appendInPlace){const Ut=this.timelinePos-t.timelineStart;if(Ut>1){const $t=t.duration;$t&&Ut<$t&&(h=Ut)}}const m=t.identifier,x=b(b({},i),{},{maxMaxBufferLength:Math.min(180,r.config.maxMaxBufferLength),autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:r.sessionId,assetPlayerId:m,abrEwmaDefaultEstimate:r.bandwidthEstimate,interstitialsController:void 0,startPosition:h,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:s,audioPreference:c||i.audioPreference,subtitlePreference:u||i.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(x.timelineOffset=t.timelineStart));const C=x.cmcd;C!=null&&C.sessionId&&C.contentId&&(x.cmcd=p({},C,{contentId:Qs(t.uri)})),this.getAssetPlayer(m)&&this.warn(`Duplicate date range identifier ${e} and asset ${m}`);const L=new vc(this.HlsPlayerClass,x,e,t);this.playerQueue.push(L),e.assetList[n]=t;let te=!0;const J=Ut=>{if(Ut.live){var $t;const un=new Error(`Interstitials MUST be VOD assets ${e}`),fn={fatal:!0,type:ae.OTHER_ERROR,details:B.INTERSTITIAL_ASSET_ITEM_ERROR,error:un},Xt=(($t=this.schedule)==null?void 0:$t.findEventIndex(e.identifier))||-1;this.handleAssetItemError(fn,e,Xt,n,un.message);return}const _n=Ut.edge-Ut.fragmentStart,Yt=t.duration;(te||Yt===null||_n>Yt)&&(te=!1,this.log(`Interstitial asset "${m}" duration change ${Yt} > ${_n}`),t.duration=_n,this.updateSchedule())};L.on(d.LEVEL_UPDATED,(Ut,{details:$t})=>J($t)),L.on(d.LEVEL_PTS_UPDATED,(Ut,{details:$t})=>J($t)),L.on(d.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const Ce=(Ut,$t)=>{const _n=this.getAssetPlayer(m);if(_n&&$t.tracks){_n.off(d.BUFFER_CODECS,Ce),_n.tracks=$t.tracks;const Yt=this.primaryMedia;this.bufferingAsset===_n.assetItem&&Yt&&!_n.media&&this.bufferAssetPlayer(_n,Yt)}};L.on(d.BUFFER_CODECS,Ce);const ht=()=>{var Ut;const $t=this.getAssetPlayer(m);if(this.log(`buffered to end of asset ${$t}`),!$t||!this.schedule)return;const _n=this.schedule.findEventIndex(e.identifier),Yt=(Ut=this.schedule.items)==null?void 0:Ut[_n];this.isInterstitial(Yt)&&this.advanceAssetBuffering(Yt,t)};L.on(d.BUFFERED_TO_END,ht);const rt=Ut=>()=>{if(!this.getAssetPlayer(m)||!this.schedule)return;this.shouldPlay=!0;const _n=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,_n,Ut)};return L.once(d.MEDIA_ENDED,rt(n)),L.once(d.PLAYOUT_LIMIT_REACHED,rt(1/0)),L.on(d.ERROR,(Ut,$t)=>{if(!this.schedule)return;const _n=this.getAssetPlayer(m);if($t.details===B.BUFFER_STALLED_ERROR){if(_n!=null&&_n.appendInPlace){this.handleInPlaceStall(e);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError($t,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${$t.error} ${e}`)}),L.on(d.DESTROYING,()=>{if(!this.getAssetPlayer(m)||!this.schedule)return;const $t=new Error(`Asset player destroyed unexpectedly ${m}`),_n={fatal:!0,type:ae.OTHER_ERROR,details:B.INTERSTITIAL_ASSET_ITEM_ERROR,error:$t};this.handleAssetItemError(_n,e,this.schedule.findEventIndex(e.identifier),n,$t.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${Fs(t)}`),this.hls.trigger(d.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:L}),L}clearInterstitial(e,t){e.assetList.forEach(n=>{this.clearAssetPlayer(n.identifier,t)}),e.reset()}resetAssetPlayer(e){const t=this.getAssetPlayerQueueIndex(e);if(t!==-1){this.log(`reset asset player "${e}" after error`);const n=this.playerQueue[t];this.transferMediaFromPlayer(n,null),n.resetDetails()}}clearAssetPlayer(e,t){const n=this.getAssetPlayerQueueIndex(e);if(n!==-1){this.log(`clear asset player "${e}" toSegment: ${t&&is(t)}`);const r=this.playerQueue[n];this.transferMediaFromPlayer(r,t),this.playerQueue.splice(n,1),r.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,n,r,i){const{interstitial:s,assetItem:l,assetId:c}=e,u=s.assetList.length,h=this.playingAsset;this.endedAsset=null,this.playingAsset=l,(!h||h.identifier!==c)&&(h&&(this.clearAssetPlayer(h.identifier,n[r]),delete h.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${u} ${Fs(l)}`),this.hls.trigger(d.INTERSTITIAL_ASSET_STARTED,{asset:l,assetListIndex:t,event:s,schedule:n.slice(0),scheduleIndex:r,player:e})),this.bufferAssetPlayer(e,i)}bufferAssetPlayer(e,t){var n,r;if(!this.schedule)return;const{interstitial:i,assetItem:s}=e,l=this.schedule.findEventIndex(i.identifier),c=(n=this.schedule.items)==null?void 0:n[l];if(!c)return;e.loadSource(),this.setBufferingItem(c),this.bufferingAsset=s;const u=this.getBufferingPlayer();if(u===e)return;const h=i.appendInPlace;if(h&&(u==null?void 0:u.interstitial.appendInPlace)===!1)return;const m=(u==null?void 0:u.tracks)||((r=this.detachedData)==null?void 0:r.tracks)||this.requiredTracks;if(h&&s!==this.playingAsset){if(!e.tracks){this.log(`Waiting for track info before buffering ${e}`);return}if(m&&!me(m,e.tracks)){const x=new Error(`Asset ${Fs(s)} SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(m)}')`),C={fatal:!0,type:ae.OTHER_ERROR,details:B.INTERSTITIAL_ASSET_ITEM_ERROR,error:x},L=i.findAssetIndex(s);this.handleAssetItemError(C,i,l,L,x.message);return}}this.transferMediaTo(e,t)}handleInPlaceStall(e){const t=this.schedule,n=this.primaryMedia;if(!t||!n)return;const r=n.currentTime,i=t.findAssetIndex(e,r),s=e.assetList[i];if(s){const l=this.getAssetPlayer(s.identifier);if(l){const c=l.currentTime||r-s.timelineStart,u=l.duration-c;if(this.warn(`Stalled at ${c} of ${c+u} in ${l} ${e} (media.currentTime: ${r})`),c&&(u/n.playbackRate<.5||l.bufferedInPlaceToEnd(n))&&l.hls){const h=t.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,h,i)}}}}advanceInPlace(e){const t=this.primaryMedia;t&&t.currentTime<e&&(t.currentTime=e)}handleAssetItemError(e,t,n,r,i){if(e.details===B.BUFFER_STALLED_ERROR)return;const s=t.assetList[r]||null;if(this.warn(`INTERSTITIAL_ASSET_ERROR ${s&&Fs(s)} ${e.error}`),!this.schedule)return;const l=(s==null?void 0:s.identifier)||"",c=this.getAssetPlayerQueueIndex(l),u=this.playerQueue[c]||null,h=this.schedule.items,m=p({},e,{fatal:!1,errorAction:Ie(!0),asset:s,assetListIndex:r,event:t,schedule:h,scheduleIndex:n,player:u});if(this.hls.trigger(d.INTERSTITIAL_ASSET_ERROR,m),!e.fatal)return;const x=this.playingAsset,C=this.bufferingAsset,L=new Error(i);if(s&&(this.clearAssetPlayer(l,null),s.error=L),!t.assetList.some(te=>!te.error))t.error=L;else for(let te=r;te<t.assetList.length;te++)this.resetAssetPlayer(t.assetList[te].identifier);this.updateSchedule(!0),t.error?this.primaryFallback(t):x&&x.identifier===l?this.advanceAfterAssetEnded(t,n,r):C&&C.identifier===l&&this.isInterstitial(this.bufferingItem)&&this.advanceAssetBuffering(this.bufferingItem,C)}primaryFallback(e){const t=e.timelineStart,n=this.effectivePlayingItem;if(n){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${this.timelinePos} playing: ${is(n)} error: ${e.error}`);let r=this.timelinePos;r===-1&&(r=this.hls.startPosition);const i=this.updateItem(n,r);if(this.itemsMatch(n,i)&&this.clearInterstitial(e,null),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t)),!this.schedule)return;const s=this.schedule.findItemIndexAtTime(r);this.setSchedulePosition(s)}else this.checkStart()}onAssetListLoaded(e,t){var n,r;const i=t.event,s=i.identifier,l=t.assetListResponse.ASSETS;if(!((n=this.schedule)!=null&&n.hasEvent(s)))return;const c=i.timelineStart,u=i.duration;let h=0;l.forEach((te,J)=>{const Ce=parseFloat(te.DURATION);this.createAsset(i,J,h,c+h,Ce,te.URI),h+=Ce}),i.duration=h,this.log(`Loaded asset-list with duration: ${h} (was: ${u}) ${i}`);const m=this.waitingItem,x=(m==null?void 0:m.event.identifier)===s;this.updateSchedule();const C=(r=this.bufferingItem)==null?void 0:r.event;if(x){var L;const te=this.schedule.findEventIndex(s),J=(L=this.schedule.items)==null?void 0:L[te];if(J){if(!this.playingItem&&this.timelinePos>J.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==te){i.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${i}`),this.updateSchedule(!0),this.primaryFallback(i);return}this.setBufferingItem(J)}this.setSchedulePosition(te)}else if((C==null?void 0:C.identifier)===s){const te=i.assetList[0];if(te){const J=this.getAssetPlayer(te.identifier);if(C.appendInPlace){const Ce=this.primaryMedia;J&&Ce&&this.bufferAssetPlayer(J,Ce)}else J&&J.loadSource()}}}onError(e,t){if(this.schedule)switch(t.details){case B.ASSET_LIST_PARSING_ERROR:case B.ASSET_LIST_LOAD_ERROR:case B.ASSET_LIST_LOAD_TIMEOUT:{const n=t.interstitial;n&&(this.updateSchedule(!0),this.primaryFallback(n));break}case B.BUFFER_STALLED_ERROR:{const n=this.endedItem||this.waitingItem||this.playingItem;if(this.isInterstitial(n)&&n.event.appendInPlace){this.handleInPlaceStall(n.event);return}this.log(`Primary player stall @${this.timelinePos} bufferedPos: ${this.bufferedPos}`),this.onTimeupdate(),this.checkBuffer(!0);break}}}}const Jo=500;class bc extends ii{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",ne.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(d.LEVEL_LOADED,this.onLevelLoaded,this),e.on(d.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(d.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(d.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(d.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(d.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(d.LEVEL_LOADED,this.onLevelLoaded,this),e.off(d.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(d.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(d.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(d.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(d.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=hn.IDLE,this.setInterval(Jo),this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(e,t){this.tracksBuffered=[],super.onMediaDetaching(e,t)}onLevelLoaded(e,t){this.mainDetails=t.details}onSubtitleFragProcessed(e,t){const{frag:n,success:r}=t;if(this.fragContextChanged(n)||(He(n)&&(this.fragPrevious=n),this.state=hn.IDLE),!r)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let s;const l=n.start;for(let u=0;u<i.length;u++)if(l>=i[u].start&&l<=i[u].end){s=i[u];break}const c=n.start+n.duration;s?s.end=c:(s={start:l,end:c},i.push(s)),this.fragmentTracker.fragBuffered(n),this.fragBufferedComplete(n,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:n,endOffset:r}=t;if(n===0&&r!==Number.POSITIVE_INFINITY){const i=r-1;if(i<=0)return;t.endOffsetSubtitles=Math.max(0,i),this.tracksBuffered.forEach(s=>{for(let l=0;l<s.length;){if(s[l].end<=i){s.shift();continue}else if(s[l].start<i)s[l].start=i;else break;l++}}),this.fragmentTracker.removeFragmentsInRange(n,i,ne.SUBTITLE)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===ne.SUBTITLE&&(t.details===B.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==hn.STOPPED&&(this.state=hn.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&To(this.levels,t)){this.levels=t.map(n=>new Mt(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new Mt(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,ne.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var n;if(this.currentTrackId=t.id,!((n=this.levels)!=null&&n.length)||this.currentTrackId===-1){this.clearInterval();return}const r=this.levels[this.currentTrackId];r!=null&&r.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,r&&this.state!==hn.STOPPED&&this.setInterval(Jo)}onSubtitleTrackLoaded(e,t){var n;const{currentTrackId:r,levels:i}=this,{details:s,id:l}=t;if(!i){this.warn(`Subtitle tracks were reset while loading level ${l}`);return}const c=i[l];if(l>=i.length||!c)return;this.log(`Subtitle track ${l} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let u=0;if(s.live||(n=c.details)!=null&&n.live){if(s.deltaUpdateFailed)return;const m=this.mainDetails;if(!m){this.startFragRequested=!1;return}const x=m.fragments[0];if(!c.details)s.hasProgramDateTime&&m.hasProgramDateTime?(jr(s,m),u=s.fragmentStart):x&&(u=x.start,br(s,u));else{var h;u=this.alignPlaylists(s,c.details,(h=this.levelLastLoaded)==null?void 0:h.details),u===0&&x&&(u=x.start,br(s,u))}m&&!this.startFragRequested&&this.setStartPosition(m,u)}c.details=s,this.levelLastLoaded=c,l===r&&(this.hls.trigger(d.SUBTITLE_TRACK_UPDATED,{details:s,id:l,groupId:t.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===hn.IDLE&&(Zn(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),c.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:t,payload:n}=e,r=t.decryptdata,i=this.hls;if(!this.fragContextChanged(t)&&n&&n.byteLength>0&&r!=null&&r.key&&r.iv&&zr(r.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer,Vr(r.method)).catch(l=>{throw i.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.FRAG_DECRYPT_ERROR,fatal:!1,error:l,reason:l.message,frag:t}),l}).then(l=>{const c=performance.now();i.trigger(d.FRAG_DECRYPTED,{frag:t,payload:l,stats:{tstart:s,tdecrypt:c}})}).catch(l=>{this.warn(`${l.name}: ${l.message}`),this.state=hn.IDLE})}}doTick(){if(!this.media){this.state=hn.IDLE;return}if(this.state===hn.IDLE){const{currentTrackId:e,levels:t}=this,n=t==null?void 0:t[e];if(!n||!t.length||!n.details||this.waitForLive(n))return;const{config:r}=this,i=this.getLoadPosition(),s=bn.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),{end:l,len:c}=s,u=n.details,h=this.hls.maxBufferLength+u.levelTargetDuration;if(c>h)return;const m=u.fragments,x=m.length,C=u.edge;let L=null;const te=this.fragPrevious;if(l<C){const ht=r.maxFragLookUpTolerance,rt=l>C-ht?0:ht;L=Zn(te,m,Math.max(m[0].start,l),rt),!L&&te&&te.start<m[0].start&&(L=m[0])}else L=m[x-1];if(L=this.filterReplacedPrimary(L,n.details),!L)return;const J=L.sn-u.startSN,Ce=m[J-1];if(Ce&&Ce.cc===L.cc&&this.fragmentTracker.getState(Ce)===Te.NOT_LOADED&&(L=Ce),this.fragmentTracker.getState(L)===Te.NOT_LOADED){const ht=this.mapToInitFragWhenRequired(L);ht&&this.loadFragment(ht,n,l)}}}loadFragment(e,t,n){He(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new xc(this.tracksBuffered[this.currentTrackId]||[])}}class xc{constructor(e){this.buffered=void 0;const t=(n,r,i)=>{if(r=r>>>0,r>i-1)throw new DOMException(`Failed to execute '${n}' on 'TimeRanges': The index provided (${r}) is greater than the maximum bound (${i})`);return e[r][n]};this.buffered={get length(){return e.length},end(n){return t("end",n,e.length)},start(n){return t("start",n,e.length)}}}}const Sc={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},qo=a=>String.fromCharCode(Sc[a]||a),Ui=15,ss=100,wc={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Ac={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Cc={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},Tc={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Dc=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class Rc{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;ee.log(`${this.time} [${e}] ${n}`)}}}const As=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class $o{constructor(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}reset(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1}setStyles(e){const t=["foreground","underline","italics","background","flash"];for(let n=0;n<t.length;n++){const r=t[n];e.hasOwnProperty(r)&&(this[r]=e[r])}}isDefault(){return this.foreground==="white"&&!this.underline&&!this.italics&&this.background==="black"&&!this.flash}equals(e){return this.foreground===e.foreground&&this.underline===e.underline&&this.italics===e.italics&&this.background===e.background&&this.flash===e.flash}copy(e){this.foreground=e.foreground,this.underline=e.underline,this.italics=e.italics,this.background=e.background,this.flash=e.flash}toString(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash}}class Ic{constructor(){this.uchar=" ",this.penState=new $o}reset(){this.uchar=" ",this.penState.reset()}setChar(e,t){this.uchar=e,this.penState.copy(t)}setPenState(e){this.penState.copy(e)}equals(e){return this.uchar===e.uchar&&this.penState.equals(e.penState)}copy(e){this.uchar=e.uchar,this.penState.copy(e.penState)}isEmpty(){return this.uchar===" "&&this.penState.isDefault()}}class Lc{constructor(e){this.chars=[],this.pos=0,this.currPenState=new $o,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<ss;t++)this.chars.push(new Ic);this.logger=e}equals(e){for(let t=0;t<ss;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<ss;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<ss;t++)if(!this.chars[t].isEmpty()){e=!1;break}return e}setCursor(e){this.pos!==e&&(this.pos=e),this.pos<0?(this.logger.log(3,"Negative cursor position "+this.pos),this.pos=0):this.pos>ss&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=ss)}moveCursor(e){const t=this.pos+e;if(e>1)for(let n=this.pos+1;n<t+1;n++)this.chars[n].setPenState(this.currPenState);this.setCursor(t)}backSpace(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}insertChar(e){e>=144&&this.backSpace();const t=qo(e);if(this.pos>=ss){this.logger.log(0,()=>"Cannot insert "+e.toString(16)+" ("+t+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(t,this.currPenState),this.moveCursor(1)}clearFromPos(e){let t;for(t=e;t<ss;t++)this.chars[t].reset()}clear(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()}clearToEndOfRow(){this.clearFromPos(this.pos)}getTextString(){const e=[];let t=!0;for(let n=0;n<ss;n++){const r=this.chars[n].uchar;r!==" "&&(t=!1),e.push(r)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class Ga{constructor(e){this.rows=[],this.currRow=Ui-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Ui;t++)this.rows.push(new Lc(e));this.logger=e}reset(){for(let e=0;e<Ui;e++)this.rows[e].clear();this.currRow=Ui-1}equals(e){let t=!0;for(let n=0;n<Ui;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<Ui;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Ui;t++)if(!this.rows[t].isEmpty()){e=!1;break}return e}backSpace(){this.rows[this.currRow].backSpace()}clearToEndOfRow(){this.rows[this.currRow].clearToEndOfRow()}insertChar(e){this.rows[this.currRow].insertChar(e)}setPen(e){this.rows[this.currRow].setPenStyles(e)}moveCursor(e){this.rows[this.currRow].moveCursor(e)}setCursor(e){this.logger.log(2,"setCursor: "+e),this.rows[this.currRow].setCursor(e)}setPAC(e){this.logger.log(2,()=>"pacData = "+At(e));let t=e.row-1;if(this.nrRollUpRows&&t<this.nrRollUpRows-1&&(t=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==t){for(let l=0;l<Ui;l++)this.rows[l].clear();const i=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const l=s.rows[i].cueStartTime,c=this.logger.time;if(l!==null&&c!==null&&l<c)for(let u=0;u<this.nrRollUpRows;u++)this.rows[t-this.nrRollUpRows+u+1].copy(s.rows[i+u])}}this.currRow=t;const n=this.rows[this.currRow];if(e.indent!==null){const i=e.indent,s=Math.max(i-1,0);n.setCursor(e.indent),e.color=n.chars[s].penState.foreground}const r={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(r)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+At(e)),this.backSpace(),this.setPen(e),this.insertChar(32)}setRollUpRows(e){this.nrRollUpRows=e}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const e=this.currRow+1-this.nrRollUpRows,t=this.rows.splice(e,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(2,"Rolling up")}getDisplayText(e){e=e||!1;const t=[];let n="",r=-1;for(let i=0;i<Ui;i++){const s=this.rows[i].getTextString();s&&(r=i+1,e?t.push("Row "+r+": '"+s+"'"):t.push(s.trim()))}return t.length>0&&(e?n="["+t.join(" | ")+"]":n=t.join(`
`)),n}getTextAndFormat(){return this.rows}}class el{constructor(e,t,n){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=e,this.outputFilter=t,this.mode=null,this.verbose=0,this.displayedMemory=new Ga(n),this.nonDisplayedMemory=new Ga(n),this.lastOutputScreen=new Ga(n),this.currRollUpRow=this.displayedMemory.rows[Ui-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=n}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[Ui-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(e){this.outputFilter=e}setPAC(e){this.writeScreen.setPAC(e)}setBkgData(e){this.writeScreen.setBkgData(e)}setMode(e){e!==this.mode&&(this.mode=e,this.logger.log(2,()=>"MODE="+e),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=e)}insertChars(e){for(let n=0;n<e.length;n++)this.writeScreen.insertChar(e[n]);const t=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,()=>t+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(e){this.logger.log(2,"RU("+e+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(e)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const e=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=e,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(e){this.logger.log(2,"TO("+e+") - Tab Offset"),this.writeScreen.moveCursor(e)}ccMIDROW(e){const t={flash:!1};if(t.underline=e%2===1,t.italics=e>=46,t.italics)t.foreground="white";else{const n=Math.floor(e/2)-16,r=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=r[n]}this.logger.log(2,"MIDROW: "+At(t)),this.writeScreen.setPen(t)}outputDataUpdate(e=!1){const t=this.logger.time;t!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=t:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,t,this.lastOutputScreen),e&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:t),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(e){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,e,this.displayedMemory),this.cueStartTime=e))}}class tl{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=Pc(),this.logger=void 0;const r=this.logger=new Rc;this.channels=[null,new el(e,t,r),new el(e+1,n,r)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let n=0;n<t.length;n+=2){const r=t[n]&127,i=t[n+1]&127;let s=!1,l=null;if(r===0&&i===0)continue;this.logger.log(3,()=>"["+As([t[n],t[n+1]])+"] -> ("+As([r,i])+")");const c=this.cmdHistory;if(r>=16&&r<=31){if(kc(r,i,c)){pa(null,null,c),this.logger.log(3,()=>"Repeated command ("+As([r,i])+") is dropped");continue}pa(r,i,this.cmdHistory),s=this.parseCmd(r,i),s||(s=this.parseMidrow(r,i)),s||(s=this.parsePAC(r,i)),s||(s=this.parseBackgroundAttributes(r,i))}else pa(null,null,c);if(!s&&(l=this.parseChars(r,i),l)){const h=this.currentChannel;h&&h>0?this.channels[h].insertChars(l):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!l&&this.logger.log(2,()=>"Couldn't parse cleaned data "+As([r,i])+" orig: "+As([t[n],t[n+1]]))}}parseCmd(e,t){const n=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=33&&t<=35;if(!(n||r))return!1;const i=e===20||e===21||e===23?1:2,s=this.channels[i];return e===20||e===21||e===28||e===29?t===32?s.ccRCL():t===33?s.ccBS():t===34?s.ccAOF():t===35?s.ccAON():t===36?s.ccDER():t===37?s.ccRU(2):t===38?s.ccRU(3):t===39?s.ccRU(4):t===40?s.ccFON():t===41?s.ccRDC():t===42?s.ccTR():t===43?s.ccRTD():t===44?s.ccEDM():t===45?s.ccCR():t===46?s.ccENM():t===47&&s.ccEOC():s.ccTO(t-32),this.currentChannel=i,!0}parseMidrow(e,t){let n=0;if((e===17||e===25)&&t>=32&&t<=47){if(e===17?n=1:n=2,n!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const r=this.channels[n];return r?(r.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+As([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let n;const r=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,i=(e===16||e===24)&&t>=64&&t<=95;if(!(r||i))return!1;const s=e<=23?1:2;t>=64&&t<=95?n=s===1?wc[e]:Cc[e]:n=s===1?Ac[e]:Tc[e];const l=this.channels[s];return l?(l.setPAC(this.interpretPAC(n,t)),this.currentChannel=s,!0):!1}interpretPAC(e,t){let n;const r={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?n=t-96:n=t-64,r.underline=(n&1)===1,n<=13?r.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(n/2)]:n<=15?(r.italics=!0,r.color="white"):r.indent=Math.floor((n-16)/2)*4,r}parseChars(e,t){let n,r=null,i=null;if(e>=25?(n=2,i=e-8):(n=1,i=e),i>=17&&i<=19){let s;i===17?s=t+80:i===18?s=t+112:s=t+144,this.logger.log(2,()=>"Special char '"+qo(s)+"' in channel "+n),r=[s]}else e>=32&&e<=127&&(r=t===0?[e]:[e,t]);return r&&this.logger.log(3,()=>"Char codes = "+As(r).join(",")),r}parseBackgroundAttributes(e,t){const n=(e===16||e===24)&&t>=32&&t<=47,r=(e===23||e===31)&&t>=45&&t<=47;if(!(n||r))return!1;let i;const s={};e===16||e===24?(i=Math.floor((t-32)/2),s.background=Dc[i],t%2===1&&(s.background=s.background+"_semi")):t===45?s.background="transparent":(s.foreground="black",t===47&&(s.underline=!0));const l=e<=23?1:2;return this.channels[l].setBkgData(s),!0}reset(){for(let e=0;e<Object.keys(this.channels).length;e++){const t=this.channels[e];t&&t.reset()}pa(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){const n=this.channels[t];n&&n.cueSplitAtTime(e)}}}function pa(a,e,t){t.a=a,t.b=e}function kc(a,e,t){return t.a===a&&t.b===e}function Pc(){return{a:null,b:null}}var Ha=function(){if(_r!=null&&_r.VTTCue)return self.VTTCue;const a=["","lr","rl"],e=["start","middle","end","left","right"];function t(l,c){if(typeof c!="string"||!Array.isArray(l))return!1;const u=c.toLowerCase();return~l.indexOf(u)?u:!1}function n(l){return t(a,l)}function r(l){return t(e,l)}function i(l,...c){let u=1;for(;u<arguments.length;u++){const h=arguments[u];for(const m in h)l[m]=h[m]}return l}function s(l,c,u){const h=this,m={enumerable:!0};h.hasBeenReset=!1;let x="",C=!1,L=l,te=c,J=u,Ce=null,ht="",rt=!0,Ut="auto",$t="start",_n=50,Yt="middle",un=50,fn="middle";Object.defineProperty(h,"id",i({},m,{get:function(){return x},set:function(Xt){x=""+Xt}})),Object.defineProperty(h,"pauseOnExit",i({},m,{get:function(){return C},set:function(Xt){C=!!Xt}})),Object.defineProperty(h,"startTime",i({},m,{get:function(){return L},set:function(Xt){if(typeof Xt!="number")throw new TypeError("Start time must be set to a number.");L=Xt,this.hasBeenReset=!0}})),Object.defineProperty(h,"endTime",i({},m,{get:function(){return te},set:function(Xt){if(typeof Xt!="number")throw new TypeError("End time must be set to a number.");te=Xt,this.hasBeenReset=!0}})),Object.defineProperty(h,"text",i({},m,{get:function(){return J},set:function(Xt){J=""+Xt,this.hasBeenReset=!0}})),Object.defineProperty(h,"region",i({},m,{get:function(){return Ce},set:function(Xt){Ce=Xt,this.hasBeenReset=!0}})),Object.defineProperty(h,"vertical",i({},m,{get:function(){return ht},set:function(Xt){const An=n(Xt);if(An===!1)throw new SyntaxError("An invalid or illegal string was specified.");ht=An,this.hasBeenReset=!0}})),Object.defineProperty(h,"snapToLines",i({},m,{get:function(){return rt},set:function(Xt){rt=!!Xt,this.hasBeenReset=!0}})),Object.defineProperty(h,"line",i({},m,{get:function(){return Ut},set:function(Xt){if(typeof Xt!="number"&&Xt!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");Ut=Xt,this.hasBeenReset=!0}})),Object.defineProperty(h,"lineAlign",i({},m,{get:function(){return $t},set:function(Xt){const An=r(Xt);if(!An)throw new SyntaxError("An invalid or illegal string was specified.");$t=An,this.hasBeenReset=!0}})),Object.defineProperty(h,"position",i({},m,{get:function(){return _n},set:function(Xt){if(Xt<0||Xt>100)throw new Error("Position must be between 0 and 100.");_n=Xt,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",i({},m,{get:function(){return Yt},set:function(Xt){const An=r(Xt);if(!An)throw new SyntaxError("An invalid or illegal string was specified.");Yt=An,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",i({},m,{get:function(){return un},set:function(Xt){if(Xt<0||Xt>100)throw new Error("Size must be between 0 and 100.");un=Xt,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",i({},m,{get:function(){return fn},set:function(Xt){const An=r(Xt);if(!An)throw new SyntaxError("An invalid or illegal string was specified.");fn=An,this.hasBeenReset=!0}})),h.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class Nc{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function nl(a){function e(n,r,i,s){return(n|0)*3600+(r|0)*60+(i|0)+parseFloat(s||0)}const t=a.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return t?parseFloat(t[2])>59?e(t[2],t[3],0,t[4]):e(t[1],t[2],t[3],t[4]):null}class Mc{constructor(){this.values=Object.create(null)}set(e,t){!this.get(e)&&t!==""&&(this.values[e]=t)}get(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,n){for(let r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}}integer(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))}percent(e,t){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(t)){const n=parseFloat(t);if(n>=0&&n<=100)return this.set(e,n),!0}return!1}}function rl(a,e,t,n){const r=n?a.split(n):[a];for(const i in r){if(typeof r[i]!="string")continue;const s=r[i].split(t);if(s.length!==2)continue;const l=s[0],c=s[1];e(l,c)}}const Ya=new Ha(0,0,""),ma=Ya.align==="middle"?"middle":"center";function Oc(a,e,t){const n=a;function r(){const l=nl(a);if(l===null)throw new Error("Malformed timestamp: "+n);return a=a.replace(/^[^\sa-zA-Z-]+/,""),l}function i(l,c){const u=new Mc;rl(l,function(x,C){let L;switch(x){case"region":for(let te=t.length-1;te>=0;te--)if(t[te].id===C){u.set(x,t[te].region);break}break;case"vertical":u.alt(x,C,["rl","lr"]);break;case"line":L=C.split(","),u.integer(x,L[0]),u.percent(x,L[0])&&u.set("snapToLines",!1),u.alt(x,L[0],["auto"]),L.length===2&&u.alt("lineAlign",L[1],["start",ma,"end"]);break;case"position":L=C.split(","),u.percent(x,L[0]),L.length===2&&u.alt("positionAlign",L[1],["start",ma,"end","line-left","line-right","auto"]);break;case"size":u.percent(x,C);break;case"align":u.alt(x,C,["start",ma,"end","left","right"]);break}},/:/,/\s/),c.region=u.get("region",null),c.vertical=u.get("vertical","");let h=u.get("line","auto");h==="auto"&&Ya.line===-1&&(h=-1),c.line=h,c.lineAlign=u.get("lineAlign","start"),c.snapToLines=u.get("snapToLines",!0),c.size=u.get("size",100),c.align=u.get("align",ma);let m=u.get("position","auto");m==="auto"&&Ya.position===50&&(m=c.align==="start"||c.align==="left"?0:c.align==="end"||c.align==="right"?100:50),c.position=m}function s(){a=a.replace(/^\s+/,"")}if(s(),e.startTime=r(),s(),a.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+n);a=a.slice(3),s(),e.endTime=r(),s(),i(a,e)}function il(a){return a.replace(/<br(?: \/)?>/gi,`
`)}class Fc{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new Nc,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(e){const t=this;e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));function n(){let i=t.buffer,s=0;for(i=il(i);s<i.length&&i[s]!=="\r"&&i[s]!==`
`;)++s;const l=i.slice(0,s);return i[s]==="\r"&&++s,i[s]===`
`&&++s,t.buffer=i.slice(s),l}function r(i){rl(i,function(s,l){},/:/)}try{let i="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;i=n();const l=i.match(/^()?WEBVTT([ \t].*)?$/);if(!(l!=null&&l[0]))throw new Error("Malformed WebVTT signature.");t.state="HEADER"}let s=!1;for(;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(s?s=!1:i=n(),t.state){case"HEADER":/:/.test(i)?r(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;if(t.cue=new Ha(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{Oc(i,t.cue,t.regionList)}catch(l){t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":{const l=i.indexOf("-->")!==-1;if(!i||l&&(s=!0)){t.oncue&&t.cue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}if(t.cue===null)continue;t.cue.text&&(t.cue.text+=`
`),t.cue.text+=i}continue;case"BADCUE":i||(t.state="ID")}}}catch(i){t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const e=this;try{if((e.cue||e.state==="HEADER")&&(e.buffer+=`
`,e.parse()),e.state==="INITIAL"||e.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(t){e.onparsingerror&&e.onparsingerror(t)}return e.onflush&&e.onflush(),this}}const Bc=/\r\n|\n\r|\n|\r/g,Xa=function(e,t,n=0){return e.slice(n,n+t.length)===t},Uc=function(e){let t=parseInt(e.slice(-3));const n=parseInt(e.slice(-6,-4)),r=parseInt(e.slice(-9,-7)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!f(t)||!f(n)||!f(r)||!f(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*i,t};function Qa(a,e,t){return Qs(a.toString())+Qs(e.toString())+Qs(t)}const Zc=function(e,t,n){let r=e[t],i=e[r.prevCC];if(!i||!i.new&&r.new){e.ccOffset=e.presentationOffset=r.start,r.new=!1;return}for(;(s=i)!=null&&s.new;){var s;e.ccOffset+=r.start-i.start,r.new=!1,r=i,i=e[r.prevCC]}e.presentationOffset=n};function Kc(a,e,t,n,r,i,s){const l=new Fc,c=at(new Uint8Array(a)).trim().replace(Bc,`
`).split(`
`),u=[],h=e?Jl(e.baseTime,e.timescale):0;let m="00:00.000",x=0,C=0,L,te=!0;l.oncue=function(J){const Ce=t[n];let ht=t.ccOffset;const rt=(x-h)/9e4;if(Ce!=null&&Ce.new&&(C!==void 0?ht=t.ccOffset=Ce.start:Zc(t,n,rt)),rt){if(!e){L=new Error("Missing initPTS for VTT MPEGTS");return}ht=rt-t.presentationOffset}const Ut=J.endTime-J.startTime,$t=Ii((J.startTime+ht-C)*9e4,r*9e4)/9e4;J.startTime=Math.max($t,0),J.endTime=Math.max($t+Ut,0);const _n=J.text.trim();J.text=decodeURIComponent(encodeURIComponent(_n)),J.id||(J.id=Qa(J.startTime,J.endTime,_n)),J.endTime>0&&u.push(J)},l.onparsingerror=function(J){L=J},l.onflush=function(){if(L){s(L);return}i(u)},c.forEach(J=>{if(te)if(Xa(J,"X-TIMESTAMP-MAP=")){te=!1,J.slice(16).split(",").forEach(Ce=>{Xa(Ce,"LOCAL:")?m=Ce.slice(6):Xa(Ce,"MPEGTS:")&&(x=parseInt(Ce.slice(7)))});try{C=Uc(m)/1e3}catch(Ce){L=Ce}return}else J===""&&(te=!1);l.parse(J+`
`)}),l.flush()}const Ja="stpp.ttml.im1t",sl=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,al=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,zc={left:"start",center:"center",right:"end",start:"start",end:"end"};function ol(a,e,t,n){const r=V(new Uint8Array(a),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const i=r.map(l=>at(l)),s=Ql(e.baseTime,1,e.timescale);try{i.forEach(l=>t(jc(l,s)))}catch(l){n(l)}}function jc(a,e){const r=new DOMParser().parseFromString(a,"text/xml").getElementsByTagName("tt")[0];if(!r)throw new Error("Invalid ttml");const i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(i).reduce((m,x)=>(m[x]=r.getAttribute(`ttp:${x}`)||i[x],m),{}),l=r.getAttribute("xml:space")!=="preserve",c=ll(qa(r,"styling","style")),u=ll(qa(r,"layout","region")),h=qa(r,"body","[begin]");return[].map.call(h,m=>{const x=ul(m,l);if(!x||!m.hasAttribute("begin"))return null;const C=eo(m.getAttribute("begin"),s),L=eo(m.getAttribute("dur"),s);let te=eo(m.getAttribute("end"),s);if(C===null)throw cl(m);if(te===null){if(L===null)throw cl(m);te=C+L}const J=new Ha(C-e,te-e,x);J.id=Qa(J.startTime,J.endTime,J.text);const Ce=u[m.getAttribute("region")],ht=c[m.getAttribute("style")],rt=Vc(Ce,ht,c),{textAlign:Ut}=rt;if(Ut){const $t=zc[Ut];$t&&(J.lineAlign=$t),J.align=Ut}return p(J,rt),J}).filter(m=>m!==null)}function qa(a,e,t){const n=a.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function ll(a){return a.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function ul(a,e){return[].slice.call(a.childNodes).reduce((t,n,r)=>{var i;return n.nodeName==="br"&&r?t+`
`:(i=n.childNodes)!=null&&i.length?ul(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function Vc(a,e,t){const n="http://www.w3.org/ns/ttml#styling";let r=null;const i=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=a!=null&&a.hasAttribute("style")?a.getAttribute("style"):null;return s&&t.hasOwnProperty(s)&&(r=t[s]),i.reduce((l,c)=>{const u=$a(e,n,c)||$a(a,n,c)||$a(r,n,c);return u&&(l[c]=u),l},{})}function $a(a,e,t){return a&&a.hasAttributeNS(e,t)?a.getAttributeNS(e,t):null}function cl(a){return new Error(`Could not parse ttml timestamp ${a}`)}function eo(a,e){if(!a)return null;let t=nl(a);return t===null&&(sl.test(a)?t=Wc(a,e):al.test(a)&&(t=Gc(a,e))),t}function Wc(a,e){const t=sl.exec(a),n=(t[4]|0)+(t[5]|0)/e.subFrameRate;return(t[1]|0)*3600+(t[2]|0)*60+(t[3]|0)+n/e.frameRate}function Gc(a,e){const t=al.exec(a),n=Number(t[1]);switch(t[2]){case"h":return n*3600;case"m":return n*60;case"ms":return n*1e3;case"f":return n/e.frameRate;case"t":return n/e.tickRate}return n}class ga{constructor(e,t){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=e,this.trackName=t}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(e,t,n){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=n,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class Hc{constructor(e){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=hl(),this.captionsProperties=void 0,this.hls=e,this.config=e.config,this.Cues=e.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},e.on(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(d.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(d.FRAG_LOADING,this.onFragLoading,this),e.on(d.FRAG_LOADED,this.onFragLoaded,this),e.on(d.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(d.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(d.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(d.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(d.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(d.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(d.FRAG_LOADING,this.onFragLoading,this),e.off(d.FRAG_LOADED,this.onFragLoaded,this),e.off(d.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(d.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(d.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(d.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(d.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new ga(this,"textTrack1"),t=new ga(this,"textTrack2"),n=new ga(this,"textTrack3"),r=new ga(this,"textTrack4");this.cea608Parser1=new tl(1,e,t),this.cea608Parser2=new tl(3,n,r)}addCues(e,t,n,r,i){let s=!1;for(let l=i.length;l--;){const c=i[l],u=Yc(c[0],c[1],t,n);if(u>=0&&(c[0]=Math.min(c[0],t),c[1]=Math.max(c[1],n),s=!0,u/(n-t)>.5))return}if(s||i.push([t,n]),this.config.renderTextTracksNatively){const l=this.captionsTracks[e];this.Cues.newCue(l,t,n,r)}else{const l=this.Cues.newCue(null,t,n,r);this.hls.trigger(d.CUES_PARSED,{type:"captions",cues:l,track:e})}}onInitPtsFound(e,{frag:t,id:n,initPTS:r,timescale:i,trackId:s}){const{unparsedVttFrags:l}=this;n===ne.MAIN&&(this.initPTS[t.cc]={baseTime:r,timescale:i,trackId:s}),l.length&&(this.unparsedVttFrags=[],l.forEach(c=>{this.initPTS[c.frag.cc]?this.onFragLoaded(d.FRAG_LOADED,c):this.hls.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:c.frag,error:new Error("Subtitle discontinuity domain does not match main")})}))}getExistingTrack(e,t){const{media:n}=this;if(n)for(let r=0;r<n.textTracks.length;r++){const i=n.textTracks[r];if(fl(i,{name:e,lang:t,characteristics:"transcribes-spoken-dialog,describes-music-and-sound"}))return i}return null}createCaptionsTrack(e){this.config.renderTextTracksNatively?this.createNativeTrack(e):this.createNonNativeTrack(e)}createNativeTrack(e){if(this.captionsTracks[e])return;const{captionsProperties:t,captionsTracks:n,media:r}=this,{label:i,languageCode:s}=t[e],l=this.getExistingTrack(i,s);if(l)n[e]=l,Ms(n[e]),Go(n[e],r);else{const c=this.createTextTrack("captions",i,s);c&&(c[e]=!0,n[e]=c)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const n=t.label,r={_id:e,label:n,kind:"captions",default:t.media?!!t.media.default:!1,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=r,this.hls.trigger(d.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[r]})}createTextTrack(e,t,n){const r=this.media;if(r)return r.addTextTrack(e,t,n)}onMediaAttaching(e,t){this.media=t.media,t.mediaSource||this._cleanTracks()}onMediaDetaching(e,t){const n=!!t.transferMedia;if(this.media=null,n)return;const{captionsTracks:r}=this;Object.keys(r).forEach(i=>{Ms(r[i]),delete r[i]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=hl(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:e}=this;if(!e)return;const t=e.textTracks;if(t)for(let n=0;n<t.length;n++)Ms(t[n])}onSubtitleTracksUpdated(e,t){const n=t.subtitleTracks||[],r=n.some(i=>i.textCodec===Ja);if(this.config.enableWebVTT||r&&this.config.enableIMSC1){if(To(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,l=s?fa(s.textTracks):null;if(this.tracks.forEach((c,u)=>{let h;if(l){let m=null;for(let x=0;x<l.length;x++)if(l[x]&&fl(l[x],c)){m=l[x],l[x]=null;break}m&&(h=m)}if(h)Ms(h);else{const m=dl(c);h=this.createTextTrack(m,c.name,c.lang),h&&(h.mode="disabled")}h&&this.textTracks.push(h)}),l!=null&&l.length){const c=l.filter(u=>u!==null).map(u=>u.label);c.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${c.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(l=>({label:l.name,kind:l.type.toLowerCase(),default:l.default,subtitleTrack:l}));this.hls.trigger(d.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(n=>{const r=/(?:CC|SERVICE)([1-4])/.exec(n.instreamId);if(!r)return;const i=`textTrack${r[1]}`,s=this.captionsProperties[i];s&&(s.label=n.name,n.lang&&(s.languageCode=n.lang),s.media=n)})}closedCaptionsForLevel(e){const t=this.hls.levels[e.level];return t==null?void 0:t.attrs["CLOSED-CAPTIONS"]}onFragLoading(e,t){if(this.enabled&&t.frag.type===ne.MAIN){var n,r;const{cea608Parser1:i,cea608Parser2:s,lastSn:l}=this,{cc:c,sn:u}=t.frag,h=(n=(r=t.part)==null?void 0:r.index)!=null?n:-1;i&&s&&(u!==l+1||u===l&&h!==this.lastPartIndex+1||c!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=c,this.lastSn=u,this.lastPartIndex=h}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===ne.SUBTITLE)if(r.byteLength){const i=n.decryptdata,s="stats"in t;if(i==null||!i.encrypted||s){const l=this.tracks[n.level],c=this.vttCCs;c[n.cc]||(c[n.cc]={start:n.start,prevCC:this.prevCC,new:!0},this.prevCC=n.cc),l&&l.textCodec===Ja?this._parseIMSC1(n,r):this._parseVTTs(t)}}else this.hls.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const n=this.hls;ol(t,this.initPTS[e.cc],r=>{this._appendCues(r,e.level),n.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},r=>{n.logger.log(`Failed to parse IMSC1: ${r}`),n.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:r})})}_parseVTTs(e){var t;const{frag:n,payload:r}=e,{initPTS:i,unparsedVttFrags:s}=this,l=i.length-1;if(!i[n.cc]&&l===-1){s.push(e);return}const c=this.hls,u=(t=n.initSegment)!=null&&t.data?Ye(n.initSegment.data,new Uint8Array(r)).buffer:r;Kc(u,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,h=>{this._appendCues(h,n.level),c.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},h=>{const m=h.message==="Missing initPTS for VTT MPEGTS";m?s.push(e):this._fallbackToIMSC1(n,r),c.logger.log(`Failed to parse VTT cue: ${h}`),!(m&&l>n.cc)&&c.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:h})})}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||ol(t,this.initPTS[e.cc],()=>{n.textCodec=Ja,this._parseIMSC1(e,t)},()=>{n.textCodec="wvtt"})}_appendCues(e,t){const n=this.hls;if(this.config.renderTextTracksNatively){const r=this.textTracks[t];if(!r||r.mode==="disabled")return;e.forEach(i=>Ho(r,i))}else{const r=this.tracks[t];if(!r)return;const i=r.default?"default":"subtitles"+t;n.trigger(d.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){const{frag:n}=t;n.type===ne.SUBTITLE&&this.onFragLoaded(d.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:n,samples:r}=t;if(!(n.type===ne.MAIN&&this.closedCaptionsForLevel(n)==="NONE"))for(let i=0;i<r.length;i++){const s=r[i].bytes;if(s){this.cea608Parser1||this.initCea608Parsers();const l=this.extractCea608Data(s);this.cea608Parser1.addData(r[i].pts,l[0]),this.cea608Parser2.addData(r[i].pts,l[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:n,endOffsetSubtitles:r,type:i}){const{media:s}=this;if(!(!s||s.currentTime<n)){if(!i||i==="video"){const{captionsTracks:l}=this;Object.keys(l).forEach(c=>ja(l[c],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(c=>ja(l[c],t,r))}}}extractCea608Data(e){const t=[[],[]],n=e[0]&31;let r=2;for(let i=0;i<n;i++){const s=e[r++],l=127&e[r++],c=127&e[r++];if(l===0&&c===0)continue;if((4&s)!==0){const h=3&s;(h===0||h===1)&&(t[h].push(l),t[h].push(c))}}return t}}function dl(a){return a.characteristics&&/transcribes-spoken-dialog/gi.test(a.characteristics)&&/describes-music-and-sound/gi.test(a.characteristics)?"captions":"subtitles"}function fl(a,e){return!!a&&a.kind===dl(e)&&Ma(e,a)}function Yc(a,e,t,n){return Math.min(e,n)-Math.max(a,t)}function hl(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const Xc=/\s/,Qc={newCue(a,e,t,n){const r=[];let i,s,l,c,u;const h=self.VTTCue||self.TextTrackCue;for(let x=0;x<n.rows.length;x++)if(i=n.rows[x],l=!0,c=0,u="",!i.isEmpty()){var m;for(let te=0;te<i.chars.length;te++)Xc.test(i.chars[te].uchar)&&l?c++:(u+=i.chars[te].uchar,l=!1);i.cueStartTime=e,e===t&&(t+=1e-4),c>=16?c--:c++;const C=il(u.trim()),L=Qa(e,t,C);a!=null&&(m=a.cues)!=null&&m.getCueById(L)||(s=new h(e,t,C),s.id=L,s.line=x+1,s.align="left",s.position=10+Math.min(80,Math.floor(c*8/32)*10),r.push(s))}return a&&r.length&&(r.sort((x,C)=>x.line==="auto"||C.line==="auto"?0:x.line>8&&C.line>8?C.line-x.line:x.line-C.line),r.forEach(x=>Ho(a,x))),r}};function Jc(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(a){}return!1}const qc=/(\d+)-(\d+)\/(\d+)/;class pl{constructor(e){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=e.fetchSetup||nd,this.controller=new self.AbortController,this.stats=new v}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(e,t,n){const r=this.stats;if(r.loading.start)throw new Error("Loader can only be used once.");r.loading.start=self.performance.now();const i=$c(e,this.controller.signal),s=e.responseType==="arraybuffer",l=s?"byteLength":"length",{maxTimeToFirstByteMs:c,maxLoadTimeMs:u}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=n,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=c&&f(c)?c:u,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},t.timeout),(Ys(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(m=>{var x;this.response=this.loader=m;const C=Math.max(self.performance.now(),r.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=u,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},u-(C-r.loading.start)),!m.ok){const{status:te,statusText:J}=m;throw new rd(J||"fetch, bad network response",te,m)}r.loading.first=C,r.total=td(m.headers)||r.total;const L=(x=this.callbacks)==null?void 0:x.onProgress;return L&&f(t.highWaterMark)?this.loadProgressively(m,r,e,t.highWaterMark,L):s?m.arrayBuffer():e.responseType==="json"?m.json():m.text()}).then(m=>{var x,C;const L=this.response;if(!L)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const te=m[l];te&&(r.loaded=r.total=te);const J={url:L.url,data:m,code:L.status},Ce=(x=this.callbacks)==null?void 0:x.onProgress;Ce&&!f(t.highWaterMark)&&Ce(r,e,m,L),(C=this.callbacks)==null||C.onSuccess(J,r,e,L)}).catch(m=>{var x;if(self.clearTimeout(this.requestTimeout),r.aborted)return;const C=m&&m.code||0,L=m?m.message:null;(x=this.callbacks)==null||x.onError({code:C,text:L},e,m?m.details:null,r)})}getCacheAge(){let e=null;if(this.response){const t=this.response.headers.get("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.response?this.response.headers.get(e):null}loadProgressively(e,t,n,r=0,i){const s=new bi,l=e.body.getReader(),c=()=>l.read().then(u=>{if(u.done)return s.dataLength&&i(t,n,s.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const h=u.value,m=h.length;return t.loaded+=m,m<r||s.dataLength?(s.push(h),s.dataLength>=r&&i(t,n,s.flush().buffer,e)):i(t,n,h.buffer,e),c()}).catch(()=>Promise.reject());return c()}}function $c(a,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(p({},a.headers))};return a.rangeEnd&&t.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),t}function ed(a){const e=qc.exec(a);if(e)return parseInt(e[2])-parseInt(e[1])+1}function td(a){const e=a.get("Content-Range");if(e){const n=ed(e);if(f(n))return n}const t=a.get("Content-Length");if(t)return parseInt(t)}function nd(a,e){return new self.Request(a.url,e)}class rd extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const id=/^age:\s*[\d.]+\s*$/im;class ml{constructor(e){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=e&&e.xhrSetup||null,this.stats=new v,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const e=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),e&&(e.onreadystatechange=null,e.onprogress=null,e.readyState!==4&&(this.stats.aborted=!0,e.abort()))}abort(){var e;this.abortInternal(),(e=this.callbacks)!=null&&e.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(e,t,n){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=e,this.config=t,this.callbacks=n,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const n=this.loader=new self.XMLHttpRequest,r=this.stats;r.loading.first=0,r.loaded=0,r.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then(()=>{if(!(this.loader!==n||this.stats.aborted))return i(n,t.url)}).catch(s=>{if(!(this.loader!==n||this.stats.aborted))return n.open("GET",t.url,!0),i(n,t.url)}).then(()=>{this.loader!==n||this.stats.aborted||this.openAndSendXhr(n,t,e)}).catch(s=>{var l;(l=this.callbacks)==null||l.onError({code:n.status,text:s.message},t,n,r)}):this.openAndSendXhr(n,t,e)}openAndSendXhr(e,t,n){e.readyState||e.open("GET",t.url,!0);const r=t.headers,{maxTimeToFirstByteMs:i,maxLoadTimeMs:s}=n.loadPolicy;if(r)for(const l in r)e.setRequestHeader(l,r[l]);t.rangeEnd&&e.setRequestHeader("Range","bytes="+t.rangeStart+"-"+(t.rangeEnd-1)),e.onreadystatechange=this.readystatechange.bind(this),e.onprogress=this.loadprogress.bind(this),e.responseType=t.responseType,self.clearTimeout(this.requestTimeout),n.timeout=i&&f(i)?i:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:n}=this;if(!e||!t)return;const r=t.readyState,i=this.config;if(!n.aborted&&r>=2&&(n.loading.first===0&&(n.loading.first=Math.max(self.performance.now(),n.loading.start),i.timeout!==i.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),i.timeout=i.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),i.loadPolicy.maxLoadTimeMs-(n.loading.first-n.loading.start)))),r===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const u=t.status,h=t.responseType==="text"?t.responseText:null;if(u>=200&&u<300){const L=h!=null?h:t.response;if(L!=null){var s,l;n.loading.end=Math.max(self.performance.now(),n.loading.first);const te=t.responseType==="arraybuffer"?L.byteLength:L.length;n.loaded=n.total=te,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first);const J=(s=this.callbacks)==null?void 0:s.onProgress;J&&J(n,e,L,t);const Ce={url:t.responseURL,data:L,code:u};(l=this.callbacks)==null||l.onSuccess(Ce,n,e,t);return}}const m=i.loadPolicy.errorRetry,x=n.retry,C={url:e.url,data:void 0,code:u};if(Mn(m,x,!1,C))this.retry(m);else{var c;ee.error(`${u} while loading ${e.url}`),(c=this.callbacks)==null||c.onError({code:u,text:t.statusText},e,t,n)}}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(Mn(e,t,!0))this.retry(e);else{var n;ee.warn(`timeout while loading ${(n=this.context)==null?void 0:n.url}`);const r=this.callbacks;r&&(this.abortInternal(),r.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:n}=this;this.retryDelay=En(e,n.retry),n.retry++,ee.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${t==null?void 0:t.url}, retrying ${n.retry}/${e.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(e){const t=this.stats;t.loaded=e.loaded,e.lengthComputable&&(t.total=e.total)}getCacheAge(){let e=null;if(this.loader&&id.test(this.loader.getAllResponseHeaders())){const t=this.loader.getResponseHeader("age");e=t?parseFloat(t):null}return e}getResponseHeader(e){return this.loader&&new RegExp(`^${e}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(e):null}}const sd={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},ad=b(b({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:ml,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Cn,bufferController:fu,capLevelController:Fa,errorController:Me,fpsController:uc,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:Sr,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,preserveManualLevelOnError:!1,certLoadPolicy:{default:sd},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},od()),{},{subtitleStreamController:bc,subtitleTrackController:fc,timelineController:Hc,audioStreamController:lu,audioTrackController:uu,emeController:Ns,cmcdController:ac,contentSteeringController:lc,interstitialsController:Ec});function od(){return{cueHandler:Qc,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function ld(a,e,t){if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(e.liveMaxLatencyDurationCount!==void 0&&(e.liveSyncDurationCount===void 0||e.liveMaxLatencyDurationCount<=e.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(e.liveMaxLatencyDuration!==void 0&&(e.liveSyncDuration===void 0||e.liveMaxLatencyDuration<=e.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const n=to(a),r=["manifest","level","frag"],i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return r.forEach(s=>{const l=`${s==="level"?"playlist":s}LoadPolicy`,c=e[l]===void 0,u=[];i.forEach(h=>{const m=`${s}Loading${h}`,x=e[m];if(x!==void 0&&c){u.push(m);const C=n[l].default;switch(e[l]={default:C},h){case"TimeOut":C.maxLoadTimeMs=x,C.maxTimeToFirstByteMs=x;break;case"MaxRetry":C.errorRetry.maxNumRetry=x,C.timeoutRetry.maxNumRetry=x;break;case"RetryDelay":C.errorRetry.retryDelayMs=x,C.timeoutRetry.retryDelayMs=x;break;case"MaxRetryTimeout":C.errorRetry.maxRetryDelayMs=x,C.timeoutRetry.maxRetryDelayMs=x;break}}}),u.length&&t.warn(`hls.js config: "${u.join('", "')}" setting(s) are deprecated, use "${l}": ${At(e[l])}`)}),b(b({},n),e)}function to(a){return a&&typeof a=="object"?Array.isArray(a)?a.map(to):Object.keys(a).reduce((e,t)=>(e[t]=to(a[t]),e),{}):a}function ud(a,e){const t=a.loader;t!==pl&&t!==ml?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),a.progressive=!1):Jc()&&(a.loader=pl,a.progressive=!0,a.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}const va=2,cd=.1,dd=.05,fd=100;class hd extends wn{constructor(e,t){super("gap-controller",e.logger),this.hls=void 0,this.fragmentTracker=void 0,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var n;(n=this.media)!=null&&n.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var n;this.ended=((n=this.media)==null?void 0:n.currentTime)||1,this.hls.trigger(d.MEDIA_ENDED,{stalled:!1})}},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){const{hls:e}=this;e&&(e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(e,t){this.setInterval(fd),this.mediaSource=t.mediaSource;const n=this.media=t.media;Ci(n,"playing",this.onMediaPlaying),Ci(n,"waiting",this.onMediaWaiting),Ci(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(Li(n,"playing",this.onMediaPlaying),Li(n,"waiting",this.onMediaWaiting),Li(n,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(e,t){this.buffered=t.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var e;if(!((e=this.media)!=null&&e.readyState)||!this.hasBuffered)return;const t=this.media.currentTime;this.poll(t,this.lastCurrentTime),this.lastCurrentTime=t}poll(e,t){var n,r;const i=(n=this.hls)==null?void 0:n.config;if(!i)return;const s=this.media;if(!s)return;const{seeking:l}=s,c=this.seeking&&!l,u=!this.seeking&&l,h=s.paused&&!l||s.ended||s.playbackRate===0;if(this.seeking=l,e!==t){t&&(this.ended=0),this.moved=!0,l||(this.nudgeRetry=0,i.nudgeOnVideoHole&&!h&&e>t&&this.nudgeOnVideoHole(e,t)),this.waiting===0&&this.stallResolved(e);return}if(u||c){c&&this.stallResolved(e);return}if(h){this.nudgeRetry=0,this.stallResolved(e),!this.ended&&s.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(d.MEDIA_ENDED,{stalled:!1}));return}if(!bn.getBuffered(s).length){this.nudgeRetry=0;return}const m=bn.bufferInfo(s,e,0),x=m.nextStart||0,C=this.fragmentTracker;if(l&&C&&this.hls){const _n=gl(this.hls.inFlightFragments,e),Yt=m.len>va,un=!x||_n||x-e>va&&!C.getPartialFragment(e);if(Yt||un)return;this.moved=!1}const L=(r=this.hls)==null?void 0:r.latestLevelDetails;if(!this.moved&&this.stalled!==null&&C){if(!(m.len>0)&&!x)return;const Yt=Math.max(x,m.start||0)-e,fn=!!(L!=null&&L.live)?L.targetduration*2:va,Xt=ya(e,C);if(Yt>0&&(Yt<=fn||Xt)){s.paused||this._trySkipBufferHole(Xt);return}}const te=i.detectStallWithCurrentTimeMs,J=self.performance.now(),Ce=this.waiting;let ht=this.stalled;if(ht===null)if(Ce>0&&J-Ce<te)ht=this.stalled=Ce;else{this.stalled=J;return}const rt=J-ht;if(!l&&(rt>=te||Ce)&&this.hls){var Ut;if(((Ut=this.mediaSource)==null?void 0:Ut.readyState)==="ended"&&!(L!=null&&L.live)&&Math.abs(e-((L==null?void 0:L.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(d.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(m),!this.media||!this.hls)return}const $t=bn.bufferInfo(s,e,i.maxBufferHole);this._tryFixBufferStall($t,rt,e)}stallResolved(e){const t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){const n=self.performance.now()-t;this.log(`playback not stuck anymore @${e}, after ${Math.round(n)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(d.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var n;const r=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(n=this.buffered.audio)!=null&&n.length&&r&&r.length>1&&e>r.end(0)){const i=bn.bufferedInfo(bn.timeRangesToArray(this.buffered.audio),e,0);if(i.len>1&&t>=i.start){const s=bn.timeRangesToArray(r),l=bn.bufferedInfo(s,t,0).bufferedIndex;if(l>-1&&l<s.length-1){const c=bn.bufferedInfo(s,e,0).bufferedIndex,u=s[l].end,h=s[l+1].start;if((c===-1||c>l)&&h-u<1&&e-u<2){const m=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${u} -> ${h} buffered index: ${c}`);this.warn(m.message),this.media.currentTime+=1e-6;let x=ya(e,this.fragmentTracker);x&&"fragment"in x?x=x.fragment:x||(x=void 0);const C=bn.bufferInfo(this.media,e,0);this.hls.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:m,reason:m.message,frag:x,buffer:C.len,bufferInfo:C})}}}}}_tryFixBufferStall(e,t,n){var r,i;const{fragmentTracker:s,media:l}=this,c=(r=this.hls)==null?void 0:r.config;if(!l||!s||!c)return;const u=(i=this.hls)==null?void 0:i.latestLevelDetails,h=ya(n,s);if((h||u!=null&&u.live&&n<u.fragmentStart)&&(this._trySkipBufferHole(h)||!this.media))return;const m=e.buffered,x=this.adjacentTraversal(e,n);(m&&m.length>1&&e.len>c.maxBufferHole||e.nextStart&&(e.nextStart-n<c.maxBufferHole||x))&&(t>c.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}adjacentTraversal(e,t){const n=this.fragmentTracker,r=e.nextStart;if(n&&r){const i=n.getFragAtPos(t,ne.MAIN),s=n.getFragAtPos(r,ne.MAIN);if(i&&s)return s.sn-i.sn<2}return!1}_reportStall(e){const{hls:t,media:n,stallReported:r,stalled:i}=this;if(!r&&i!==null&&n&&t){this.stallReported=!0;const s=new Error(`Playback stalling at @${n.currentTime} due to low buffer (${At(e)})`);this.warn(s.message),t.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:e.len,bufferInfo:e,stalled:{start:i}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:n,media:r}=this,i=(t=this.hls)==null?void 0:t.config;if(!r||!n||!i)return 0;const s=r.currentTime,l=bn.bufferInfo(r,s,0),c=s<l.start?l.start:l.nextStart;if(c&&this.hls){const h=l.len<=i.maxBufferHole,m=l.len>0&&l.len<1&&r.readyState<3,x=c-s;if(x>0&&(h||m)){if(x>i.maxBufferHole){let L=!1;if(s===0){const te=n.getAppendedFrag(0,ne.MAIN);te&&c<te.end&&(L=!0)}if(!L&&e){var u;if(!((u=this.hls.loadLevelObj)!=null&&u.details)||gl(this.hls.inFlightFragments,c))return 0;let J=!1,Ce=e.end;for(;Ce<c;){const ht=ya(Ce,n);if(ht)Ce+=ht.duration;else{J=!0;break}}if(J)return 0}}const C=Math.max(c+dd,s+cd);if(this.warn(`skipping hole, adjusting currentTime from ${s} to ${C}`),this.moved=!0,r.currentTime=C,!(e!=null&&e.gap)){const L=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${C}`),te={type:ae.MEDIA_ERROR,details:B.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:L,reason:L.message,buffer:l.len,bufferInfo:l};e&&("fragment"in e?te.part=e:te.frag=e),this.hls.trigger(d.ERROR,te)}return C}}return 0}_tryNudgeBuffer(e){const{hls:t,media:n,nudgeRetry:r}=this,i=t==null?void 0:t.config;if(!n||!i)return 0;const s=n.currentTime;if(this.nudgeRetry++,r<i.nudgeMaxRetry){const l=s+(r+1)*i.nudgeOffset,c=new Error(`Nudging 'currentTime' from ${s} to ${l}`);this.warn(c.message),n.currentTime=l,t.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.BUFFER_NUDGE_ON_STALL,error:c,fatal:!1,buffer:e.len,bufferInfo:e})}else{const l=new Error(`Playhead still not moving while enough data buffered @${s} after ${i.nudgeMaxRetry} nudges`);this.error(l.message),t.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.BUFFER_STALLED_ERROR,error:l,fatal:!0,buffer:e.len,bufferInfo:e})}}}function gl(a,e){const t=vl(a.main);if(t&&t.start<=e)return t;const n=vl(a.audio);return n&&n.start<=e?n:null}function vl(a){if(!a)return null;switch(a.state){case hn.IDLE:case hn.STOPPED:case hn.ENDED:case hn.ERROR:return null}return a.frag}function ya(a,e){return e.getAppendedFrag(a,ne.MAIN)||e.getPartialFragment(a)}const pd=.25;function no(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function ro(a,e,t,n,r){let i=new a(e,t,"");try{i.value=n,r&&(i.type=r)}catch(s){i=new a(e,t,At(r?b({type:r},n):n))}return i}const _a=(()=>{const a=no();try{a&&new a(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class md{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.assetCue=void 0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(d.EVENT_CUE_ENTER,{})},this.hls=e,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:e}=this;e&&(e.on(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(d.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:e}=this;e&&(e.off(d.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(d.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(d.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}onMediaAttaching(e,t){var n;this.media=t.media,((n=t.overrides)==null?void 0:n.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){var e;const t=(e=this.hls)==null?void 0:e.latestLevelDetails;t&&this.updateDateRangeCues(t)}onMediaDetaching(e,t){this.media=null,!t.transferMedia&&(this.id3Track&&(this.removeCues&&Ms(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(e){const t=this.getID3Track(e.textTracks);return t.mode="hidden",t}getID3Track(e){if(this.media){for(let t=0;t<e.length;t++){const n=e[t];if(n.kind==="metadata"&&n.label==="id3")return Go(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media||!this.hls)return;const{enableEmsgMetadataCues:n,enableID3MetadataCues:r}=this.hls.config;if(!n&&!r)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=no();if(s)for(let l=0;l<i.length;l++){const c=i[l].type;if(c===Ai.emsg&&!n||!r)continue;const u=oo(i[l].data),h=i[l].pts;let m=h+i[l].duration;m>_a&&(m=_a),m-h<=0&&(m=h+pd);for(let C=0;C<u.length;C++){const L=u[C];if(!lo(L)){this.updateId3CueEnds(h,c);const te=ro(s,h,m,L,c);te&&this.id3Track.addCue(te)}}}}updateId3CueEnds(e,t){var n;const r=(n=this.id3Track)==null?void 0:n.cues;if(r)for(let i=r.length;i--;){const s=r[i];s.type===t&&s.startTime<e&&s.endTime===_a&&(s.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:n,type:r}){const{id3Track:i,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:l,enableID3MetadataCues:c}}=s;if(i&&(l||c)){let u;r==="audio"?u=h=>h.type===Ai.audioId3&&c:r==="video"?u=h=>h.type===Ai.emsg&&l:u=h=>h.type===Ai.audioId3&&c||h.type===Ai.emsg&&l,ja(i,t,n,u)}}onLevelUpdated(e,{details:t}){this.updateDateRangeCues(t,!0)}onLevelPtsUpdated(e,t){Math.abs(t.drift)>.01&&this.updateDateRangeCues(t.details)}updateDateRangeCues(e,t){if(!this.hls||!this.media)return;const{assetPlayerId:n,timelineOffset:r,enableDateRangeMetadataCues:i,interstitialsController:s}=this.hls.config;if(!i)return;const l=no();if(n&&r&&!s){const{fragmentStart:te,fragmentEnd:J}=e;let Ce=this.assetCue;Ce?(Ce.startTime=te,Ce.endTime=J):l&&(Ce=this.assetCue=ro(l,te,J,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),Ce&&(Ce.id=n,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(Ce),Ce.addEventListener("enter",this.onEventCueEnter)))}if(!e.hasProgramDateTime)return;const{id3Track:c}=this,{dateRanges:u}=e,h=Object.keys(u);let m=this.dateRangeCuesAppended;if(c&&t){var x;if((x=c.cues)!=null&&x.length){const te=Object.keys(m).filter(J=>!h.includes(J));for(let J=te.length;J--;){var C;const Ce=te[J],ht=(C=m[Ce])==null?void 0:C.cues;delete m[Ce],ht&&Object.keys(ht).forEach(rt=>{const Ut=ht[rt];if(Ut){Ut.removeEventListener("enter",this.onEventCueEnter);try{c.removeCue(Ut)}catch($t){}}})}}else m=this.dateRangeCuesAppended={}}const L=e.fragments[e.fragments.length-1];if(!(h.length===0||!f(L==null?void 0:L.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let te=0;te<h.length;te++){const J=h[te],Ce=u[J],ht=Ce.startTime,rt=m[J],Ut=(rt==null?void 0:rt.cues)||{};let $t=(rt==null?void 0:rt.durationKnown)||!1,_n=_a;const{duration:Yt,endDate:un}=Ce;if(un&&Yt!==null)_n=ht+Yt,$t=!0;else if(Ce.endOnNext&&!$t){const Xt=h.reduce((An,tr)=>{if(tr!==Ce.id){const hr=u[tr];if(hr.class===Ce.class&&hr.startDate>Ce.startDate&&(!An||Ce.startDate<An.startDate))return hr}return An},null);Xt&&(_n=Xt.startTime,$t=!0)}const fn=Object.keys(Ce.attr);for(let Xt=0;Xt<fn.length;Xt++){const An=fn[Xt];if(!Xn(An))continue;const tr=Ut[An];if(tr)$t&&!(rt!=null&&rt.durationKnown)?tr.endTime=_n:Math.abs(tr.startTime-ht)>.01&&(tr.startTime=ht,tr.endTime=_n);else if(l){let hr=Ce.attr[An];dr(An)&&(hr=T(hr));const pr=ro(l,ht,_n,{key:An,data:hr},Ai.dateRange);pr&&(pr.id=J,this.id3Track.addCue(pr),Ut[An]=pr,s&&(An==="X-ASSET-LIST"||An==="X-ASSET-URL")&&pr.addEventListener("enter",this.onEventCueEnter))}}m[J]={cues:Ut,dateRange:Ce,durationKnown:$t}}}}}class gd{constructor(e){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:t}=this,n=this.levelDetails;if(!t||!n)return;this.currentTime=t.currentTime;const r=this.computeLatency();if(r===null)return;this._latency=r;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:s}=this.config;if(!i||s===1||!n.live)return;const l=this.targetLatency;if(l===null)return;const c=r-l,u=Math.min(this.maxLatency,l+n.targetduration);if(c<u&&c>.05&&this.forwardBufferLength>1){const m=Math.min(2,Math.max(1,s)),x=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20,C=Math.min(m,Math.max(1,x));this.changeMediaPlaybackRate(t,C)}else t.playbackRate!==1&&t.playbackRate!==0&&this.changeMediaPlaybackRate(t,1)},this.hls=e,this.config=e.config,this.registerListeners()}get levelDetails(){var e;return((e=this.hls)==null?void 0:e.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:e}=this;if(e.liveMaxLatencyDuration!==void 0)return e.liveMaxLatencyDuration;const t=this.levelDetails;return t?e.liveMaxLatencyDurationCount*t.targetduration:0}get targetLatency(){const e=this.levelDetails;if(e===null||this.hls===null)return null;const{holdBack:t,partHoldBack:n,targetduration:r}=e,{liveSyncDuration:i,liveSyncDurationCount:s,lowLatencyMode:l}=this.config,c=this.hls.userConfig;let u=l&&n||t;(this._targetLatencyUpdated||c.liveSyncDuration||c.liveSyncDurationCount||u===0)&&(u=i!==void 0?i:s*r);const h=r;return u+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,h)}set targetLatency(e){this.stallCount=0,this.config.liveSyncDuration=e,this._targetLatencyUpdated=!0}get liveSyncPosition(){const e=this.estimateLiveEdge(),t=this.targetLatency;if(e===null||t===null)return null;const n=this.levelDetails;if(n===null)return null;const r=n.edge,i=e-t-this.edgeStalled,s=r-n.totalduration,l=r-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(s,i),l)}get drift(){const e=this.levelDetails;return e===null?1:e.drift}get edgeStalled(){const e=this.levelDetails;if(e===null)return 0;const t=(this.config.lowLatencyMode&&e.partTarget||e.targetduration)*3;return Math.max(e.age-t,0)}get forwardBufferLength(){const{media:e}=this,t=this.levelDetails;if(!e||!t)return 0;const n=e.buffered.length;return(n?e.buffered.end(n-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:e}=this;e&&(e.on(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(d.ERROR,this.onError,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(d.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(d.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(d.ERROR,this.onError,this))}onMediaAttached(e,t){this.media=t.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(e,{details:t}){t.advanced&&this.onTimeupdate(),!t.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(e,t){var n;t.details===B.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(n=this.levelDetails)!=null&&n.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var n,r;e.playbackRate!==t&&((n=this.hls)==null||n.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(r=this.targetLatency)==null?void 0:r.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${e.playbackRate} to ${t}`),e.playbackRate=t)}estimateLiveEdge(){const e=this.levelDetails;return e===null?null:e.edge+e.age}computeLatency(){const e=this.estimateLiveEdge();return e===null?null:e-this.currentTime}}class vd extends Na{constructor(e,t){super(e,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=t,this._registerListeners()}_registerListeners(){const{hls:e}=this;e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(d.LEVEL_LOADED,this.onLevelLoaded,this),e.on(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(d.FRAG_BUFFERED,this.onFragBuffered,this),e.on(d.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(d.LEVEL_LOADED,this.onLevelLoaded,this),e.off(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(d.FRAG_BUFFERED,this.onFragBuffered,this),e.off(d.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(t=>{t.loadError=0,t.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(e,t){this.resetLevels()}onManifestLoaded(e,t){const n=this.hls.config.preferManagedMediaSource,r=[],i={},s={};let l=!1,c=!1,u=!1;t.levels.forEach(h=>{const m=h.attrs;let{audioCodec:x,videoCodec:C}=h;x&&(h.audioCodec=x=he(x,n)||void 0),C&&(C=h.videoCodec=Xe(C));const{width:L,height:te,unknownCodecs:J}=h;let Ce=J?J.length:0;if(J)for(let Xt=Ce;Xt--;){const An=J[Xt];this.isAudioSupported(An)?(h.audioCodec=x=x?`${x},${An}`:An,Ce--,Oe.audio[x.substring(0,4)]=2):this.isVideoSupported(An)&&(h.videoCodec=C=C?`${C},${An}`:An,Ce--,Oe.video[C.substring(0,4)]=2)}if(l||(l=!!(L&&te)),c||(c=!!C),u||(u=!!x),Ce||x&&!this.isAudioSupported(x)||C&&!this.isVideoSupported(C)){this.log(`Some or all CODECS not supported "${m.CODECS}"`);return}const{CODECS:ht,"FRAME-RATE":rt,"HDCP-LEVEL":Ut,"PATHWAY-ID":$t,RESOLUTION:_n,"VIDEO-RANGE":Yt}=m,fn=`${`${$t||"."}-`}${h.bitrate}-${_n}-${rt}-${ht}-${Yt}-${Ut}`;if(i[fn])if(i[fn].uri!==h.url&&!h.attrs["PATHWAY-ID"]){const Xt=s[fn]+=1;h.attrs["PATHWAY-ID"]=new Array(Xt+1).join(".");const An=this.createLevel(h);i[fn]=An,r.push(An)}else i[fn].addGroupId("audio",m.AUDIO),i[fn].addGroupId("text",m.SUBTITLES);else{const Xt=this.createLevel(h);i[fn]=Xt,s[fn]=1,r.push(Xt)}}),this.filterAndSortMediaOptions(r,t,l,c,u)}createLevel(e){const t=new Mt(e),n=e.supplemental;if(n!=null&&n.videoCodec&&!this.isVideoSupported(n.videoCodec)){const r=new Error(`SUPPLEMENTAL-CODECS not supported "${n.videoCodec}"`);this.log(r.message),t.supportedResult=U(r,[])}return t}isAudioSupported(e){return jt(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return jt(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,n,r,i){let s=[],l=[],c=e;if((n||r)&&i&&(c=c.filter(({videoCodec:J,videoRange:Ce,width:ht,height:rt})=>(!!J||!!(ht&&rt))&&Ne(Ce))),c.length===0){Promise.resolve().then(()=>{if(this.hls){let J="no level with compatible codecs found in manifest",Ce=J;t.levels.length&&(Ce=`one or more CODECS in variant not supported: ${At(t.levels.map(rt=>rt.attrs.CODECS).filter((rt,Ut,$t)=>$t.indexOf(rt)===Ut))}`,this.warn(Ce),J+=` (${Ce})`);const ht=new Error(J);this.hls.trigger(d.ERROR,{type:ae.MEDIA_ERROR,details:B.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:ht,reason:Ce})}});return}t.audioTracks&&(s=t.audioTracks.filter(J=>!J.audioCodec||this.isAudioSupported(J.audioCodec)),yl(s)),t.subtitles&&(l=t.subtitles,yl(l));const u=c.slice(0);c.sort((J,Ce)=>{if(J.attrs["HDCP-LEVEL"]!==Ce.attrs["HDCP-LEVEL"])return(J.attrs["HDCP-LEVEL"]||"")>(Ce.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&J.height!==Ce.height)return J.height-Ce.height;if(J.frameRate!==Ce.frameRate)return J.frameRate-Ce.frameRate;if(J.videoRange!==Ce.videoRange)return cn.indexOf(J.videoRange)-cn.indexOf(Ce.videoRange);if(J.videoCodec!==Ce.videoCodec){const ht=se(J.videoCodec),rt=se(Ce.videoCodec);if(ht!==rt)return rt-ht}if(J.uri===Ce.uri&&J.codecSet!==Ce.codecSet){const ht=ve(J.codecSet),rt=ve(Ce.codecSet);if(ht!==rt)return rt-ht}return J.averageBitrate!==Ce.averageBitrate?J.averageBitrate-Ce.averageBitrate:0});let h=u[0];if(this.steering&&(c=this.steering.filterParsedLevels(c),c.length!==u.length)){for(let J=0;J<u.length;J++)if(u[J].pathwayId===c[0].pathwayId){h=u[J];break}}this._levels=c;for(let J=0;J<c.length;J++)if(c[J]===h){var m;this._firstLevel=J;const Ce=h.bitrate,ht=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${c.length} level(s) found, first bitrate: ${Ce}`),((m=this.hls.userConfig)==null?void 0:m.abrEwmaDefaultEstimate)===void 0){const rt=Math.min(Ce,this.hls.config.abrEwmaDefaultEstimateMax);rt>ht&&ht===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=rt)}break}const x=i&&!r,C=this.hls.config,L=!!(C.audioStreamController&&C.audioTrackController),te={levels:c,audioTracks:s,subtitleTracks:l,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:r,altAudio:L&&!x&&s.some(J=>!!J.url)};this.hls.trigger(d.MANIFEST_PARSED,te)}get levels(){return this._levels.length===0?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(e){const t=this._levels;if(t.length===0)return;if(e<0||e>=t.length){const h=new Error("invalid level idx"),m=e<0;if(this.hls.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.LEVEL_SWITCH_ERROR,level:e,fatal:m,error:h,reason:h.message}),m)return;e=Math.min(e,t.length-1)}const n=this.currentLevelIndex,r=this.currentLevel,i=r?r.attrs["PATHWAY-ID"]:void 0,s=t[e],l=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,n===e&&r&&i===l)return;this.log(`Switching to level ${e} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${l?" with Pathway "+l:""} from level ${n}${i?" with Pathway "+i:""}`);const c={level:e,attrs:s.attrs,details:s.details,bitrate:s.bitrate,averageBitrate:s.averageBitrate,maxBitrate:s.maxBitrate,realBitrate:s.realBitrate,width:s.width,height:s.height,codecSet:s.codecSet,audioCodec:s.audioCodec,videoCodec:s.videoCodec,audioGroups:s.audioGroups,subtitleGroups:s.subtitleGroups,loaded:s.loaded,loadError:s.loadError,fragmentError:s.fragmentError,name:s.name,id:s.id,uri:s.uri,url:s.url,urlId:0,audioGroupIds:s.audioGroupIds,textGroupIds:s.textGroupIds};this.hls.trigger(d.LEVEL_SWITCHING,c);const u=s.details;if(!u||u.live){const h=this.switchParams(s.uri,r==null?void 0:r.details,u);this.loadPlaylist(h)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(e){this.manualLevelIndex=e,this._startLevel===void 0&&(this._startLevel=e),e!==-1&&(this.level=e)}get firstLevel(){return this._firstLevel}set firstLevel(e){this._firstLevel=e}get startLevel(){if(this._startLevel===void 0){const e=this.hls.config.startLevel;return e!==void 0?e:this.hls.firstAutoLevel}return this._startLevel}set startLevel(e){this._startLevel=e}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(e){if(this.steering){const t=this.steering.pathways(),n=e.filter(r=>t.indexOf(r)!==-1);if(e.length<1){this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);return}this.steering.pathwayPriority=n}}onError(e,t){t.fatal||!t.context||t.context.type===_e.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===ne.MAIN){const n=t.elementaryStreams;if(!Object.keys(n).some(i=>!!n[i]))return;const r=this._levels[t.level];r!=null&&r.loadError&&(this.log(`Resetting level error count of ${r.loadError} on frag buffered`),r.loadError=0)}}onLevelLoaded(e,t){var n;const{level:r,details:i}=t,s=t.levelInfo;if(!s){var l;this.warn(`Invalid level index ${r}`),(l=t.deliveryDirectives)!=null&&l.skip&&(i.deltaUpdateFailed=!0);return}if(s===this.currentLevel||t.withoutMultiVariant){s.fragmentError===0&&(s.loadError=0);let c=s.details;c===t.details&&c.advanced&&(c=void 0),this.playlistLoaded(r,t,c)}else(n=t.deliveryDirectives)!=null&&n.skip&&(i.deltaUpdateFailed=!0)}loadPlaylist(e){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const n=this.getUrlWithDirectives(e.uri,t),r=this.currentLevelIndex,i=e.attrs["PATHWAY-ID"],s=e.details,l=s==null?void 0:s.age;this.log(`Loading level index ${r}${(t==null?void 0:t.msn)!==void 0?" at sn "+t.msn+" part "+t.part:""}${i?" Pathway "+i:""}${l&&s.live?" age "+l.toFixed(1)+(s.type?" "+s.type||0:""):""} ${n}`),this.hls.trigger(d.LEVEL_LOADING,{url:n,level:r,levelInfo:e,pathwayId:e.attrs["PATHWAY-ID"],id:0,deliveryDirectives:t||null})}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(e){this.level=e,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=e)}removeLevel(e){var t;if(this._levels.length===1)return;const n=this._levels.filter((i,s)=>s!==e?!0:(this.steering&&this.steering.removeLevel(i),i===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,i.details&&i.details.fragments.forEach(l=>l.level=-1)),!1));pi(n),this._levels=n,this.currentLevelIndex>-1&&(t=this.currentLevel)!=null&&t.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const r=n.length-1;this._firstLevel=Math.min(this._firstLevel,r),this._startLevel&&(this._startLevel=Math.min(this._startLevel,r)),this.hls.trigger(d.LEVELS_UPDATED,{levels:n})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:n}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(d.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:n}))}}function yl(a){const e={};a.forEach(t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++})}function _l(){return self.SourceBuffer||self.WebKitSourceBuffer}function El(){if(!oe())return!1;const e=_l();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function yd(){if(!El())return!1;const a=oe();return typeof(a==null?void 0:a.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(e=>a.isTypeSupported(Bt(e,"video")))||["mp4a.40.2","fLaC"].some(e=>a.isTypeSupported(Bt(e,"audio"))))}function _d(){var a;const e=_l();return typeof(e==null||(a=e.prototype)==null?void 0:a.changeType)=="function"}const Ed=100;class bd extends ii{constructor(e,t,n){super(e,t,n,"stream-controller",ne.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const r=this.media,i=r?r.currentTime:null;if(i===null||!f(i)||(this.log(`Media seeked to ${i.toFixed(3)}`),!this.getBufferedFrag(i)))return;const s=this.getFwdBufferInfoAtPos(r,i,ne.MAIN,0);if(s===null||s.len===0){this.warn(`Main forward buffer length at ${i} on "seeked" event ${s?s.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:e}=this;e.on(d.MANIFEST_PARSED,this.onManifestParsed,this),e.on(d.LEVEL_LOADING,this.onLevelLoading,this),e.on(d.LEVEL_LOADED,this.onLevelLoaded,this),e.on(d.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(d.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(d.BUFFER_CREATED,this.onBufferCreated,this),e.on(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(d.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(d.MANIFEST_PARSED,this.onManifestParsed,this),e.off(d.LEVEL_LOADED,this.onLevelLoaded,this),e.off(d.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(d.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(d.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(d.BUFFER_CREATED,this.onBufferCreated,this),e.off(d.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(d.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(d.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(e,t){if(this.levels){const{lastCurrentTime:n,hls:r}=this;if(this.stopLoad(),this.setInterval(Ed),this.level=-1,!this.startFragRequested){let i=r.startLevel;i===-1&&(r.config.testBandwidth&&this.levels.length>1?(i=0,this.bitrateTest=!0):i=r.firstAutoLevel),r.nextLoadLevel=i,this.level=r.loadLevel,this._hasEnoughToStart=!!t}n>0&&e===-1&&!t&&(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n),this.state=hn.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=hn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case hn.WAITING_LEVEL:{const{levels:t,level:n}=this,r=t==null?void 0:t[n],i=r==null?void 0:r.details;if(i&&(!i.live||this.levelLastLoaded===r&&!this.waitForLive(r))){if(this.waitForCdnTuneIn(i))break;this.state=hn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=hn.IDLE;break}break}case hn.FRAG_LOADING_WAITING_RETRY:{var e;const t=self.performance.now(),n=this.retryDate;if(!n||t>=n||(e=this.media)!=null&&e.seeking){const{levels:r,level:i}=this,s=r==null?void 0:r[i];this.resetStartWhenNotLoaded(s||null),this.state=hn.IDLE}}break}this.state===hn.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var e;super.onTickEnd(),(e=this.media)!=null&&e.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:e,levelLastLoaded:t,levels:n,media:r}=this;if(t===null||!r&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const i=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(n!=null&&n[i]))return;const s=n[i],l=this.getMainFwdBufferInfo();if(l===null)return;const c=this.getLevelDetails();if(c&&this._streamEnded(l,c)){const te={};this.altAudio===2&&(te.type="video"),this.hls.trigger(d.BUFFER_EOS,te),this.state=hn.ENDED;return}if(!this.buffering)return;e.loadLevel!==i&&e.manualLevel===-1&&this.log(`Adapting to level ${i} from level ${this.level}`),this.level=e.nextLoadLevel=i;const u=s.details;if(!u||this.state===hn.WAITING_LEVEL||this.waitForLive(s)){this.level=i,this.state=hn.WAITING_LEVEL,this.startFragRequested=!1;return}const h=l.len,m=this.getMaxBufferLength(s.maxBitrate);if(h>=m)return;this.backtrackFragment&&this.backtrackFragment.start>l.end&&(this.backtrackFragment=null);const x=this.backtrackFragment?this.backtrackFragment.start:l.end;let C=this.getNextFragment(x,u);if(this.couldBacktrack&&!this.fragPrevious&&C&&He(C)&&this.fragmentTracker.getState(C)!==Te.OK){var L;const J=((L=this.backtrackFragment)!=null?L:C).sn-u.startSN,Ce=u.fragments[J-1];Ce&&C.cc===Ce.cc&&(C=Ce,this.fragmentTracker.removeFragment(Ce))}else this.backtrackFragment&&l.len&&(this.backtrackFragment=null);if(C&&this.isLoopLoading(C,x)){if(!C.gap){const J=this.audioOnly&&!this.altAudio?O.AUDIO:O.VIDEO,Ce=(J===O.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ce&&this.afterBufferFlushed(Ce,J,ne.MAIN)}C=this.getNextFragmentLoopLoading(C,u,l,ne.MAIN,m)}C&&(C.initSegment&&!C.initSegment.data&&!this.bitrateTest&&(C=C.initSegment),this.loadFragment(C,s,x))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);r===Te.NOT_LOADED||r===Te.PARTIAL?He(e)?this.bitrateTest?(this.log(`Fragment ${e.sn} of level ${e.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(e,t)):super.loadFragment(e,t,n):this._loadInitSegment(e,t):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,ne.MAIN)}followingBufferedFrag(e){return e?this.getBufferedFrag(e.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:e,media:t}=this;if(t!=null&&t.readyState){let n;const r=this.getAppendedFrag(t.currentTime);r&&r.start>1&&this.flushMainBuffer(0,r.start-1);const i=this.getLevelDetails();if(i!=null&&i.live){const l=this.getMainFwdBufferInfo();if(!l||l.len<i.targetduration*2)return}if(!t.paused&&e){const l=this.hls.nextLoadLevel,c=e[l],u=this.fragLastKbps;u&&this.fragCurrent?n=this.fragCurrent.duration*c.maxBitrate/(1e3*u)+1:n=0}else n=0;const s=this.getBufferedFrag(t.currentTime+n);if(s){const l=this.followingBufferedFrag(s);if(l){this.abortCurrentFrag();const c=l.maxStartPTS?l.maxStartPTS:l.start,u=l.duration,h=Math.max(s.end,c+Math.min(Math.max(u-this.config.maxFragLookUpTolerance,u*(this.couldBacktrack?.5:.125)),u*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(h,Number.POSITIVE_INFINITY)}}}}abortCurrentFrag(){const e=this.fragCurrent;switch(this.fragCurrent=null,this.backtrackFragment=null,e&&(e.abortRequests(),this.fragmentTracker.removeFragment(e)),this.state){case hn.KEY_LOADING:case hn.FRAG_LOADING:case hn.FRAG_LOADING_WAITING_RETRY:case hn.PARSING:case hn.PARSED:this.state=hn.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}flushMainBuffer(e,t){super.flushMainBuffer(e,t,this.altAudio===2?"video":null)}onMediaAttached(e,t){super.onMediaAttached(e,t);const n=t.media;Ci(n,"playing",this.onMediaPlaying),Ci(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(Li(n,"playing",this.onMediaPlaying),Li(n,"seeked",this.onMediaSeeked)),this.videoBuffer=null,this.fragPlaying=null,super.onMediaDetaching(e,t),!t.transferMedia&&(this._hasEnoughToStart=!1)}onManifestLoading(){super.onManifestLoading(),this.log("Trigger BUFFER_RESET"),this.hls.trigger(d.BUFFER_RESET,void 0),this.couldBacktrack=!1,this.fragLastKbps=0,this.fragPlaying=this.backtrackFragment=null,this.altAudio=0,this.audioOnly=!1}onManifestParsed(e,t){let n=!1,r=!1;for(let i=0;i<t.levels.length;i++){const s=t.levels[i].audioCodec;s&&(n=n||s.indexOf("mp4a.40.2")!==-1,r=r||s.indexOf("mp4a.40.5")!==-1)}this.audioCodecSwitch=n&&r&&!_d(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=t.levels,this.startFragRequested=!1}onLevelLoading(e,t){const{levels:n}=this;if(!n||this.state!==hn.IDLE)return;const r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=hn.WAITING_LEVEL)}onLevelLoaded(e,t){var n;const{levels:r,startFragRequested:i}=this,s=t.level,l=t.details,c=l.totalduration;if(!r){this.warn(`Levels were reset while loading level ${s}`);return}this.log(`Level ${s} loaded [${l.startSN},${l.endSN}]${l.lastPartSn?`[part-${l.lastPartSn}-${l.lastPartIndex}]`:""}, cc [${l.startCC}, ${l.endCC}] duration:${c}`);const u=t.levelInfo,h=this.fragCurrent;h&&(this.state===hn.FRAG_LOADING||this.state===hn.FRAG_LOADING_WAITING_RETRY)&&h.level!==t.level&&h.loader&&this.abortCurrentFrag();let m=0;if(l.live||(n=u.details)!=null&&n.live){var x;if(this.checkLiveUpdate(l),l.deltaUpdateFailed)return;m=this.alignPlaylists(l,u.details,(x=this.levelLastLoaded)==null?void 0:x.details)}if(u.details=l,this.levelLastLoaded=u,i||this.setStartPosition(l,m),this.hls.trigger(d.LEVEL_UPDATED,{details:l,level:s}),this.state===hn.WAITING_LEVEL){if(this.waitForCdnTuneIn(l))return;this.state=hn.IDLE}i&&l.live&&this.synchronizeToLiveEdge(l),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:n}=this;if(!n)return;const r=this.hls.liveSyncPosition,i=this.getLoadPosition(),s=e.fragmentStart,l=e.edge,c=i>=s-t.maxFragLookUpTolerance&&i<=l;if(r!==null&&n.duration>r&&(i<r||!c)){const h=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;if((!c&&n.readyState<4||i<l-h)&&(this._hasEnoughToStart||(this.nextLoadPosition=r),n.readyState))if(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${l}, reset currentTime to : ${r.toFixed(3)}`),this.config.liveSyncMode==="buffered"){var u;const m=bn.bufferInfo(n,r,0);if(!((u=m.buffered)!=null&&u.length)){n.currentTime=r;return}if(m.start<=i){n.currentTime=r;return}const{nextStart:C}=bn.bufferedInfo(m.buffered,i,0);C&&(n.currentTime=C)}else n.currentTime=r}}_handleFragmentLoadProgress(e){var t;const n=e.frag,{part:r,payload:i}=e,{levels:s}=this;if(!s){this.warn(`Levels were reset while fragment load was in progress. Fragment ${n.sn} of level ${n.level} will not be buffered`);return}const l=s[n.level];if(!l){this.warn(`Level ${n.level} not found on progress`);return}const c=l.details;if(!c){this.warn(`Dropping fragment ${n.sn} of level ${n.level} after level details were reset`),this.fragmentTracker.removeFragment(n);return}const u=l.videoCodec,h=c.PTSKnown||!c.live,m=(t=n.initSegment)==null?void 0:t.data,x=this._getAudioCodec(l),C=this.transmuxer=this.transmuxer||new Ao(this.hls,ne.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),L=r?r.index:-1,te=L!==-1,J=new Gn(n.level,n.sn,n.stats.chunkCount,i.byteLength,L,te),Ce=this.initPTS[n.cc];C.push(i,m,x,u,n,r,c.totalduration,h,J,Ce)}onAudioTrackSwitching(e,t){const n=this.hls,r=this.altAudio===2;if(Tn(t.url,n))this.altAudio=1;else{if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;const s=this.fragCurrent;s&&(this.log("Switching to main audio track, cancel main fragment load"),s.abortRequests(),this.fragmentTracker.removeFragment(s)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();if(r){this.fragmentTracker.removeAllFragments(),n.once(d.BUFFER_FLUSHED,()=>{this.hls&&this.hls.trigger(d.AUDIO_TRACK_SWITCHED,t)}),n.trigger(d.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}n.trigger(d.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const n=Tn(t.url,this.hls);if(n){const r=this.videoBuffer;r&&this.mediaBuffer!==r&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=r)}this.altAudio=n?2:0,this.tick()}onBufferCreated(e,t){const n=t.tracks;let r,i,s=!1;for(const l in n){const c=n[l];if(c.id==="main"){if(i=l,r=c,l==="video"){const u=n[l];u&&(this.videoBuffer=u.buffer)}}else s=!0}s&&r?(this.log(`Alternate track found, use ${i}.buffered to schedule main fragment loading`),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:n,part:r}=t,i=n.type===ne.MAIN;if(i){if(this.fragContextChanged(n)){this.warn(`Fragment ${n.sn}${r?" p: "+r.index:""} of level ${n.level} finished buffering, but was aborted. state: ${this.state}`),this.state===hn.PARSED&&(this.state=hn.IDLE);return}const l=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),He(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}const s=this.media;s&&(!this._hasEnoughToStart&&bn.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),i&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var n;if(t.fatal){this.state=hn.ERROR;return}switch(t.details){case B.FRAG_GAP:case B.FRAG_PARSING_ERROR:case B.FRAG_DECRYPT_ERROR:case B.FRAG_LOAD_ERROR:case B.FRAG_LOAD_TIMEOUT:case B.KEY_LOAD_ERROR:case B.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(ne.MAIN,t);break;case B.LEVEL_LOAD_ERROR:case B.LEVEL_LOAD_TIMEOUT:case B.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===hn.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===_e.LEVEL&&(this.state=hn.IDLE);break;case B.BUFFER_ADD_CODEC_ERROR:case B.BUFFER_APPEND_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&this.resetLoadingState();break;case B.BUFFER_FULL_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&(!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY));break;case B.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=hn.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==O.AUDIO||!this.altAudio){const n=(t===O.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;n&&(this.afterBufferFlushed(n,t,ne.MAIN),this.tick())}}onLevelsUpdated(e,t){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=t.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:e}=this;if(!e)return;const t=e.currentTime;let n=this.startPosition;if(n>=0&&t<n){if(e.seeking){this.log(`could not seek to ${n}, already seeking at ${t}`);return}const r=this.timelineOffset;r&&n&&(n+=r);const i=this.getLevelDetails(),s=bn.getBuffered(e),l=s.length?s.start(0):0,c=l-n,u=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);(this.config.startOnSegmentBoundary||c>0&&(c<u||this.loadingParts&&c<2*((i==null?void 0:i.partTarget)||0)))&&(this.log(`adjusting start position by ${c} to match buffer start`),n+=c,this.startPosition=n),t<n&&(this.log(`seek to target start position ${n} from current time ${t} buffer start ${l}`),e.currentTime=n)}}_getAudioCodec(e){let t=this.config.defaultAudioCodec||e.audioCodec;return this.audioCodecSwap&&t&&(this.log("Swapping audio codec"),t.indexOf("mp4a.40.5")!==-1?t="mp4a.40.2":t="mp4a.40.5"),t}_loadBitrateTestFrag(e,t){e.bitrateTest=!0,this._doFragLoad(e,t).then(n=>{const{hls:r}=this,i=n==null?void 0:n.frag;if(!i||this.fragContextChanged(i))return;t.fragmentError=0,this.state=hn.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=i.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),r.trigger(d.FRAG_LOADED,n),i.bitrateTest=!1})}_handleTransmuxComplete(e){const t=this.playlistType,{hls:n}=this,{remuxResult:r,chunkMeta:i}=e,s=this.getCurrentContext(i);if(!s){this.resetWhenMissingContext(i);return}const{frag:l,part:c,level:u}=s,{video:h,text:m,id3:x,initSegment:C}=r,{details:L}=u,te=this.altAudio?void 0:r.audio;if(this.fragContextChanged(l)){this.fragmentTracker.removeFragment(l);return}if(this.state=hn.PARSING,C){const J=C.tracks;if(J){const Ut=l.initSegment||l;if(this.unhandledEncryptionError(C,l))return;this._bufferInitSegment(u,J,Ut,i),n.trigger(d.FRAG_PARSING_INIT_SEGMENT,{frag:Ut,id:t,tracks:J})}const Ce=C.initPTS,ht=C.timescale,rt=this.initPTS[l.cc];if(f(Ce)&&(!rt||rt.baseTime!==Ce||rt.timescale!==ht)){const Ut=C.trackId;this.initPTS[l.cc]={baseTime:Ce,timescale:ht,trackId:Ut},n.trigger(d.INIT_PTS_FOUND,{frag:l,id:t,initPTS:Ce,timescale:ht,trackId:Ut})}}if(h&&L){te&&h.type==="audiovideo"&&this.logMuxedErr(l);const J=L.fragments[l.sn-1-L.startSN],Ce=l.sn===L.startSN,ht=!J||l.cc>J.cc;if(r.independent!==!1){const{startPTS:rt,endPTS:Ut,startDTS:$t,endDTS:_n}=h;if(c)c.elementaryStreams[h.type]={startPTS:rt,endPTS:Ut,startDTS:$t,endDTS:_n};else if(h.firstKeyFrame&&h.independent&&i.id===1&&!ht&&(this.couldBacktrack=!0),h.dropped&&h.independent){const Yt=this.getMainFwdBufferInfo(),un=(Yt?Yt.end:this.getLoadPosition())+this.config.maxBufferHole,fn=h.firstKeyFramePTS?h.firstKeyFramePTS:rt;if(!Ce&&un<fn-this.config.maxBufferHole&&!ht){this.backtrack(l);return}else ht&&(l.gap=!0);l.setElementaryStreamInfo(h.type,l.start,Ut,l.start,_n,!0)}else Ce&&rt-(L.appliedTimelineOffset||0)>va&&(l.gap=!0);l.setElementaryStreamInfo(h.type,rt,Ut,$t,_n),this.backtrackFragment&&(this.backtrackFragment=l),this.bufferFragmentData(h,l,c,i,Ce||ht)}else if(Ce||ht)l.gap=!0;else{this.backtrack(l);return}}if(te){const{startPTS:J,endPTS:Ce,startDTS:ht,endDTS:rt}=te;c&&(c.elementaryStreams[O.AUDIO]={startPTS:J,endPTS:Ce,startDTS:ht,endDTS:rt}),l.setElementaryStreamInfo(O.AUDIO,J,Ce,ht,rt),this.bufferFragmentData(te,l,c,i)}if(L&&x!=null&&x.samples.length){const J={id:t,frag:l,details:L,samples:x.samples};n.trigger(d.FRAG_PARSING_METADATA,J)}if(L&&m){const J={id:t,frag:l,details:L,samples:m.samples};n.trigger(d.FRAG_PARSING_USERDATA,J)}}logMuxedErr(e){this.warn(`${He(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,r){if(this.state!==hn.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&(delete t.audio,t.audiovideo&&this.logMuxedErr(n));const{audio:i,video:s,audiovideo:l}=t;if(i){const u=e.audioCodec;let h=xe(i.codec,u);h==="mp4a"&&(h="mp4a.40.5");const m=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){h&&(h.indexOf("mp4a.40.5")!==-1?h="mp4a.40.2":h="mp4a.40.5");const x=i.metadata;x&&"channelCount"in x&&(x.channelCount||1)!==1&&m.indexOf("firefox")===-1&&(h="mp4a.40.5")}h&&h.indexOf("mp4a.40.5")!==-1&&m.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(h="mp4a.40.2",this.log(`Android: force audio codec to ${h}`)),u&&u!==h&&this.log(`Swapping manifest audio codec "${u}" for "${h}"`),i.levelCodec=h,i.id=ne.MAIN,this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${h||""}/${u||""}/${i.codec}]`),delete t.audiovideo}if(s){s.levelCodec=e.videoCodec,s.id=ne.MAIN;const u=s.codec;if((u==null?void 0:u.length)===4)switch(u){case"hvc1":case"hev1":s.codec="hvc1.1.6.L120.90";break;case"av01":s.codec="av01.0.04M.08";break;case"avc1":s.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${e.videoCodec||""}/${u}]${s.codec!==u?" parsed-corrected="+s.codec:""}${s.supplemental?" supplemental="+s.supplemental:""}`),delete t.audiovideo}l&&(this.log(`Init audiovideo buffer, container:${l.container}, codecs[level/parsed]=[${e.codecs}/${l.codec}]`),delete t.video,delete t.audio);const c=Object.keys(t);if(c.length){if(this.hls.trigger(d.BUFFER_CODECS,t),!this.hls)return;c.forEach(u=>{const m=t[u].initSegment;m!=null&&m.byteLength&&this.hls.trigger(d.BUFFER_APPENDING,{type:u,data:m,frag:n,part:null,chunkMeta:r,parent:n.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,ne.MAIN)}get maxBufferLength(){const{levels:e,level:t}=this,n=e==null?void 0:e[t];return n?this.getMaxBufferLength(n.maxBitrate):this.config.maxBufferLength}backtrack(e){this.couldBacktrack=!0,this.backtrackFragment=e,this.resetTransmuxer(),this.flushBufferGap(e),this.fragmentTracker.removeFragment(e),this.fragPrevious=null,this.nextLoadPosition=e.start,this.state=hn.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(bn.isBuffered(e,n)?t=this.getAppendedFrag(n):bn.isBuffered(e,n+.1)&&(t=this.getAppendedFrag(n+.1)),t){this.backtrackFragment=null;const r=this.fragPlaying,i=t.level;(!r||t.sn!==r.sn||r.level!==i)&&(this.fragPlaying=t,this.hls.trigger(d.FRAG_CHANGED,{frag:t}),(!r||r.level!==i)&&this.hls.trigger(d.LEVEL_SWITCHED,{level:i}))}}}get nextLevel(){const e=this.nextBufferedFrag;return e?e.level:-1}get currentFrag(){var e;if(this.fragPlaying)return this.fragPlaying;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;return f(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(f(t)){const n=this.getLevelDetails(),r=this.currentFrag||(n?Zn(null,n.fragments,t):null);if(r){const i=r.programDateTime;if(i!==null){const s=i+(t-r.start)*1e3;return new Date(s)}}}return null}get currentLevel(){const e=this.currentFrag;return e?e.level:-1}get nextBufferedFrag(){const e=this.currentFrag;return e?this.followingBufferedFrag(e):null}get forceStartLoad(){return this._forceStartLoad}}class xd{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const n in this.keyUriToKeyInfo){const r=this.keyUriToKeyInfo[n].loader;if(r){var t;if(e&&e!==((t=r.context)==null?void 0:t.frag.type))return;r.abort()}}}detach(){for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e];(t.mediaKeySessionContext||t.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[e]}}destroy(){this.detach();for(const e in this.keyUriToKeyInfo){const t=this.keyUriToKeyInfo[e].loader;t&&t.destroy()}this.keyUriToKeyInfo={}}createKeyLoadError(e,t=B.KEY_LOAD_ERROR,n,r,i){return new Vn({type:ae.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:n,networkDetails:r})}loadClear(e,t,n){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(t.length)for(let r=0,i=t.length;r<i;r++){const s=t[r];if(e.cc<=s.cc&&(!He(e)||!He(s)||e.sn<s.sn)||!n&&r==i-1)return this.emeController.selectKeySystemFormat(s).then(l=>{if(!this.emeController)return;s.setKeyFormat(l);const c=or(l);if(c)return this.emeController.getKeySystemAccess([c])})}if(this.config.requireKeySystemAccessOnStart){const r=fr(this.config);if(r.length)return this.emeController.getKeySystemAccess(r)}}return null}load(e){return!e.decryptdata&&e.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(e).then(t=>this.loadInternal(e,t)):this.loadInternal(e)}loadInternal(e,t){var n,r;t&&e.setKeyFormat(t);const i=e.decryptdata;if(!i){const u=new Error(t?`Expected frag.decryptdata to be defined after setting format ${t}`:"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(e,B.KEY_LOAD_ERROR,u))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,B.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));let l=this.keyUriToKeyInfo[s];if((n=l)!=null&&n.decryptdata.key)return i.key=l.decryptdata.key,Promise.resolve({frag:e,keyInfo:l});if((r=l)!=null&&r.keyLoadPromise){var c;switch((c=l.mediaKeySessionContext)==null?void 0:c.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return l.keyLoadPromise.then(u=>(i.key=u.keyInfo.decryptdata.key,{frag:e,keyInfo:l}))}}switch(l=this.keyUriToKeyInfo[s]={decryptdata:i,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},i.method){case"ISO-23001-7":case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return i.keyFormat==="identity"?this.loadKeyHTTP(l,e):this.loadKeyEME(l,e);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(l,e);default:return Promise.reject(this.createKeyLoadError(e,B.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${i.method}"`)))}}loadKeyEME(e,t){const n={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const r=this.emeController.loadKey(n);if(r)return(e.keyLoadPromise=r.then(i=>(e.mediaKeySessionContext=i,n))).catch(i=>{throw e.keyLoadPromise=null,i})}return Promise.resolve(n)}loadKeyHTTP(e,t){const n=this.config,r=n.loader,i=new r(n);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise((s,l)=>{const c={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},u=n.keyLoadPolicy.default,h={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},m={onSuccess:(x,C,L,te)=>{const{frag:J,keyInfo:Ce,url:ht}=L;if(!J.decryptdata||Ce!==this.keyUriToKeyInfo[ht])return l(this.createKeyLoadError(J,B.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),te));Ce.decryptdata.key=J.decryptdata.key=new Uint8Array(x.data),J.keyLoader=null,Ce.loader=null,s({frag:J,keyInfo:Ce})},onError:(x,C,L,te)=>{this.resetLoader(C),l(this.createKeyLoadError(t,B.KEY_LOAD_ERROR,new Error(`HTTP Error ${x.code} loading key ${x.text}`),L,b({url:c.url,data:void 0},x)))},onTimeout:(x,C,L)=>{this.resetLoader(C),l(this.createKeyLoadError(t,B.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),L))},onAbort:(x,C,L)=>{this.resetLoader(C),l(this.createKeyLoadError(t,B.INTERNAL_ABORTED,new Error("key loading aborted"),L))}};i.load(c,h,m)})}resetLoader(e){const{frag:t,keyInfo:n,url:r}=e,i=n.loader;t.keyLoader===i&&(t.keyLoader=null,n.loader=null),delete this.keyUriToKeyInfo[r],i&&i.destroy()}}function bl(a){const{type:e}=a;switch(e){case _e.AUDIO_TRACK:return ne.AUDIO;case _e.SUBTITLE_TRACK:return ne.SUBTITLE;default:return ne.MAIN}}function io(a,e){let t=a.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class Sd{constructor(e){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=e,this.registerListeners()}startLoad(e){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:e}=this;e.on(d.MANIFEST_LOADING,this.onManifestLoading,this),e.on(d.LEVEL_LOADING,this.onLevelLoading,this),e.on(d.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(d.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(d.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(d.MANIFEST_LOADING,this.onManifestLoading,this),e.off(d.LEVEL_LOADING,this.onLevelLoading,this),e.off(d.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(d.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(d.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,n=t.pLoader,r=t.loader,i=n||r,s=new i(t);return this.loaders[e.type]=s,s}getInternalLoader(e){return this.loaders[e.type]}resetInternalLoader(e){this.loaders[e]&&delete this.loaders[e]}destroyInternalLoaders(){for(const e in this.loaders){const t=this.loaders[e];t&&t.destroy(),this.resetInternalLoader(e)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(e,t){const{url:n}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:_e.MANIFEST,url:n,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:n,level:r,pathwayId:i,url:s,deliveryDirectives:l,levelInfo:c}=t;this.load({id:n,level:r,pathwayId:i,responseType:"text",type:_e.LEVEL,url:s,deliveryDirectives:l,levelOrTrack:c})}onAudioTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s,track:l}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:_e.AUDIO_TRACK,url:i,deliveryDirectives:s,levelOrTrack:l})}onSubtitleTrackLoading(e,t){const{id:n,groupId:r,url:i,deliveryDirectives:s,track:l}=t;this.load({id:n,groupId:r,level:null,responseType:"text",type:_e.SUBTITLE_TRACK,url:i,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(e,t){const n=this.loaders[_e.LEVEL];if(n){const r=n.context;r&&!t.levels.some(i=>i===r.levelOrTrack)&&(n.abort(),delete this.loaders[_e.LEVEL])}}load(e){var t;const n=this.hls.config;let r=this.getInternalLoader(e);if(r){const u=this.hls.logger,h=r.context;if(h&&h.levelOrTrack===e.levelOrTrack&&(h.url===e.url||h.deliveryDirectives&&!e.deliveryDirectives)){h.url===e.url?u.log(`[playlist-loader]: ignore ${e.url} ongoing request`):u.log(`[playlist-loader]: ignore ${e.url} in favor of ${h.url}`);return}u.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let i;if(e.type===_e.MANIFEST?i=n.manifestLoadPolicy.default:i=p({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),f((t=e.deliveryDirectives)==null?void 0:t.part)){let u;if(e.type===_e.LEVEL&&e.level!==null?u=this.hls.levels[e.level].details:e.type===_e.AUDIO_TRACK&&e.id!==null?u=this.hls.audioTracks[e.id].details:e.type===_e.SUBTITLE_TRACK&&e.id!==null&&(u=this.hls.subtitleTracks[e.id].details),u){const h=u.partTarget,m=u.targetduration;if(h&&m){const x=Math.max(h*3,m*.8)*1e3;i=p({},i,{maxTimeToFirstByteMs:Math.min(x,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(x,i.maxTimeToFirstByteMs)})}}}const s=i.errorRetry||i.timeoutRetry||{},l={loadPolicy:i,timeout:i.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},c={onSuccess:(u,h,m,x)=>{const C=this.getInternalLoader(m);this.resetInternalLoader(m.type);const L=u.data;if(L.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(u,m,new Error("no EXTM3U delimiter"),x||null,h);return}h.parsing.start=performance.now(),di.isMediaPlaylist(L)||m.type!==_e.MANIFEST?this.handleTrackOrLevelPlaylist(u,h,m,x||null,C):this.handleMasterPlaylist(u,h,m,x)},onError:(u,h,m,x)=>{this.handleNetworkError(h,m,!1,u,x)},onTimeout:(u,h,m)=>{this.handleNetworkError(h,m,!0,void 0,u)}};r.load(e,l,c)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:e,startPosition:t},forceStartLoad:n}=this.hls;(e||n)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,n,r){const i=this.hls,s=e.data,l=io(e,n),c=di.parseMasterPlaylist(s,l);if(c.playlistParsingError){this.handleManifestParsingError(e,n,c.playlistParsingError,r,t);return}const{contentSteering:u,levels:h,sessionData:m,sessionKeys:x,startTimeOffset:C,variableList:L}=c;this.variableList=L;const{AUDIO:te=[],SUBTITLES:J,"CLOSED-CAPTIONS":Ce}=di.parseMasterPlaylistMedia(s,l,c);te.length&&!te.some(rt=>!rt.url)&&h[0].audioCodec&&!h[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),te.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Rn({}),bitrate:0,url:""})),i.trigger(d.MANIFEST_LOADED,{levels:h,audioTracks:te,subtitles:J,captions:Ce,contentSteering:u,url:l,stats:t,networkDetails:r,sessionData:m,sessionKeys:x,startTimeOffset:C,variableList:L})}handleTrackOrLevelPlaylist(e,t,n,r,i){const s=this.hls,{id:l,level:c,type:u}=n,h=io(e,n),m=f(c)?c:f(l)?l:0,x=bl(n),C=di.parseLevelPlaylist(e.data,h,m,x,0,this.variableList);if(u===_e.MANIFEST){const L={attrs:new Rn({}),bitrate:0,details:C,name:"",url:h};C.requestScheduled=t.loading.start+Qr(C,0),s.trigger(d.MANIFEST_LOADED,{levels:[L],audioTracks:[],url:h,stats:t,networkDetails:r,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),n.levelDetails=C,this.handlePlaylistLoaded(C,e,t,n,r,i)}handleManifestParsingError(e,t,n,r,i){this.hls.trigger(d.ERROR,{type:ae.NETWORK_ERROR,details:B.MANIFEST_PARSING_ERROR,fatal:t.type===_e.MANIFEST,url:e.url,err:n,error:n,reason:n.message,response:e,context:t,networkDetails:r,stats:i})}handleNetworkError(e,t,n=!1,r,i){let s=`A network ${n?"timeout":"error"+(r?" (status "+r.code+")":"")} occurred while loading ${e.type}`;e.type===_e.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===_e.AUDIO_TRACK||e.type===_e.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const l=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let c=B.UNKNOWN,u=!1;const h=this.getInternalLoader(e);switch(e.type){case _e.MANIFEST:c=n?B.MANIFEST_LOAD_TIMEOUT:B.MANIFEST_LOAD_ERROR,u=!0;break;case _e.LEVEL:c=n?B.LEVEL_LOAD_TIMEOUT:B.LEVEL_LOAD_ERROR,u=!1;break;case _e.AUDIO_TRACK:c=n?B.AUDIO_TRACK_LOAD_TIMEOUT:B.AUDIO_TRACK_LOAD_ERROR,u=!1;break;case _e.SUBTITLE_TRACK:c=n?B.SUBTITLE_TRACK_LOAD_TIMEOUT:B.SUBTITLE_LOAD_ERROR,u=!1;break}h&&this.resetInternalLoader(e.type);const m={type:ae.NETWORK_ERROR,details:c,fatal:u,url:e.url,loader:h,context:e,error:l,networkDetails:t,stats:i};if(r){const x=(t==null?void 0:t.url)||e.url;m.response=b({url:x,data:void 0},r)}this.hls.trigger(d.ERROR,m)}handlePlaylistLoaded(e,t,n,r,i,s){const l=this.hls,{type:c,level:u,id:h,groupId:m,deliveryDirectives:x}=r,C=io(t,r),L=bl(r),te=typeof r.level=="number"&&L===ne.MAIN?u:void 0;if(!e.fragments.length){const Ce=e.playlistParsingError=new Error("No Segments found in Playlist");l.trigger(d.ERROR,{type:ae.NETWORK_ERROR,details:B.LEVEL_EMPTY_ERROR,fatal:!1,url:C,error:Ce,reason:Ce.message,response:t,context:r,level:te,parent:L,networkDetails:i,stats:n});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const J=e.playlistParsingError;if(J){if(this.hls.logger.warn(`${J} ${e.url}`),!l.config.ignorePlaylistParsingErrors){l.trigger(d.ERROR,{type:ae.NETWORK_ERROR,details:B.LEVEL_PARSING_ERROR,fatal:!1,url:C,error:J,reason:J.message,response:t,context:r,level:te,parent:L,networkDetails:i,stats:n});return}e.playlistParsingError=null}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),c){case _e.MANIFEST:case _e.LEVEL:l.trigger(d.LEVEL_LOADED,{details:e,levelInfo:r.levelOrTrack||l.levels[0],level:te||0,id:h||0,stats:n,networkDetails:i,deliveryDirectives:x,withoutMultiVariant:c===_e.MANIFEST});break;case _e.AUDIO_TRACK:l.trigger(d.AUDIO_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:h||0,groupId:m||"",stats:n,networkDetails:i,deliveryDirectives:x});break;case _e.SUBTITLE_TRACK:l.trigger(d.SUBTITLE_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:h||0,groupId:m||"",stats:n,networkDetails:i,deliveryDirectives:x});break}}}class ms{static get version(){return Ri}static isMSESupported(){return El()}static isSupported(){return yd()}static getMediaSource(){return oe()}static get Events(){return d}static get MetadataSchema(){return Ai}static get ErrorTypes(){return ae}static get ErrorDetails(){return B}static get DefaultConfig(){return ms.defaultConfig?ms.defaultConfig:ad}static set DefaultConfig(e){ms.defaultConfig=e}constructor(e={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new Vi,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const t=this.logger=re(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=ld(ms.DefaultConfig,e,t);this.userConfig=e,n.progressive&&ud(n,t);const{abrController:r,bufferController:i,capLevelController:s,errorController:l,fpsController:c}=n,u=new l(this),h=this.abrController=new r(this),m=new lt(this),x=n.interstitialsController,C=x?this.interstitialsController=new x(this,ms):null,L=this.bufferController=new i(this,m),te=this.capLevelController=new s(this),J=new c(this),Ce=new Sd(this),ht=n.contentSteeringController,rt=ht?new ht(this):null,Ut=this.levelController=new vd(this,rt),$t=new md(this),_n=new xd(this.config),Yt=this.streamController=new bd(this,m,_n),un=this.gapController=new hd(this,m);te.setStreamController(Yt),J.setStreamController(Yt);const fn=[Ce,Ut,Yt];C&&fn.splice(1,0,C),rt&&fn.splice(1,0,rt),this.networkControllers=fn;const Xt=[h,L,un,te,J,$t,m];this.audioTrackController=this.createController(n.audioTrackController,fn);const An=n.audioStreamController;An&&fn.push(this.audioStreamController=new An(this,m,_n)),this.subtitleTrackController=this.createController(n.subtitleTrackController,fn);const tr=n.subtitleStreamController;tr&&fn.push(this.subtititleStreamController=new tr(this,m,_n)),this.createController(n.timelineController,Xt),_n.emeController=this.emeController=this.createController(n.emeController,Xt),this.cmcdController=this.createController(n.cmcdController,Xt),this.latencyController=this.createController(gd,Xt),this.coreComponents=Xt,fn.push(u);const hr=u.onErrorOut;typeof hr=="function"&&this.on(d.ERROR,hr,u),this.on(d.MANIFEST_LOADED,Ce.onManifestLoaded,Ce)}createController(e,t){if(e){const n=new e(this);return t&&t.push(n),n}return null}on(e,t,n=this){this._emitter.on(e,t,n)}once(e,t,n=this){this._emitter.once(e,t,n)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,n=this,r){this._emitter.off(e,t,n,r)}listeners(e){return this._emitter.listeners(e)}emit(e,t,n){return this._emitter.emit(e,t,n)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(n){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+n.message+'". Here is a stacktrace:',n),!this.triggeringException){this.triggeringException=!0;const r=e===d.ERROR;this.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.INTERNAL_EXCEPTION,fatal:r,event:e,error:n}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(d.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(t=>t.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(t=>t.destroy()),this.coreComponents.length=0;const e=this.config;e.xhrSetup=e.fetchSetup=void 0,this.userConfig=null}attachMedia(e){if(!e||"media"in e&&!e.media){const i=new Error(`attachMedia failed: invalid argument (${e})`);this.trigger(d.ERROR,{type:ae.OTHER_ERROR,details:B.ATTACH_MEDIA_ERROR,fatal:!0,error:i});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const t="media"in e,n=t?e.media:e,r=t?e:{media:n};this._media=n,this.trigger(d.MEDIA_ATTACHING,r)}detachMedia(){this.logger.log("detachMedia"),this.trigger(d.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const e=this.bufferController.transferMedia();return this.trigger(d.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();const t=this.media,n=this._url,r=this._url=y.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${r}`),t&&n&&(n!==r||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(d.MANIFEST_LOADING,{url:e})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(e=-1,t){this.logger.log(`startLoad(${e+(t?", <skip seek to start>":"")})`),this.started=!0,this.resumeBuffering();for(let n=0;n<this.networkControllers.length&&(this.networkControllers[n].startLoad(e,t),!(!this.started||!this.networkControllers));n++);}stopLoad(){this.logger.log("stopLoad"),this.started=!1;for(let e=0;e<this.networkControllers.length&&(this.networkControllers[e].stopLoad(),!(this.started||!this.networkControllers));e++);}get loadingEnabled(){return this.started}get bufferingEnabled(){return this.streamController.bufferingEnabled}resumeBuffering(){this.bufferingEnabled||(this.logger.log("resume buffering"),this.networkControllers.forEach(e=>{e.resumeBuffering&&e.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(e=>{e.pauseBuffering&&e.pauseBuffering()}))}get inFlightFragments(){const e={[ne.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[ne.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[ne.SUBTITLE]=this.subtititleStreamController.inFlightFrag),e}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const e=this._media,t=e==null?void 0:e.currentTime;this.detachMedia(),e&&(this.attachMedia(e),t&&this.startLoad(t))}removeLevel(e){this.levelController.removeLevel(e)}get sessionId(){let e=this._sessionId;return e||(e=this._sessionId=hc()),e}get levels(){const e=this.levelController.levels;return e||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(e){this.logger.log(`set currentLevel:${e}`),this.levelController.manualLevel=e,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(e){this.logger.log(`set nextLevel:${e}`),this.levelController.manualLevel=e,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(e){this.logger.log(`set loadLevel:${e}`),this.levelController.manualLevel=e}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(e){this.levelController.nextLoadLevel=e}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(e){this.logger.log(`set firstLevel:${e}`),this.levelController.firstLevel=e}get startLevel(){const e=this.levelController.startLevel;return e===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:e}set startLevel(e){this.logger.log(`set startLevel:${e}`),e!==-1&&(e=Math.max(e,this.minAutoLevel)),this.levelController.startLevel=e}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(e){const t=!!e;t!==this.config.capLevelToPlayerSize&&(t?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=t)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimate():NaN}set bandwidthEstimate(e){this.abrController.resetEstimator(e)}get abrEwmaDefaultEstimate(){const{bwEstimator:e}=this.abrController;return e?e.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:e}=this.abrController;return e?e.getEstimateTTFB():NaN}set autoLevelCapping(e){this._autoLevelCapping!==e&&(this.logger.log(`set autoLevelCapping:${e}`),this._autoLevelCapping=e,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(e){Pt(e)&&this._maxHdcpLevel!==e&&(this._maxHdcpLevel=e,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:e,config:{minAutoBitrate:t}}=this;if(!e)return 0;const n=e.length;for(let r=0;r<n;r++)if(e[r].maxBitrate>=t)return r;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:n}=this;let r;if(t===-1&&e!=null&&e.length?r=e.length-1:r=t,n)for(let i=r;i--;){const s=e[i].attrs["HDCP-LEVEL"];if(s&&s<=n)return i}return r}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(e){this.abrController.nextAutoLevel=e}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(e){var t;return((t=this.audioTrackController)==null?void 0:t.setAudioOption(e))||null}setSubtitleOption(e){var t;return((t=this.subtitleTrackController)==null?void 0:t.setSubtitleOption(e))||null}get allAudioTracks(){const e=this.audioTrackController;return e?e.allAudioTracks:[]}get audioTracks(){const e=this.audioTrackController;return e?e.audioTracks:[]}get audioTrack(){const e=this.audioTrackController;return e?e.audioTrack:-1}set audioTrack(e){const t=this.audioTrackController;t&&(t.audioTrack=e)}get allSubtitleTracks(){const e=this.subtitleTrackController;return e?e.allSubtitleTracks:[]}get subtitleTracks(){const e=this.subtitleTrackController;return e?e.subtitleTracks:[]}get subtitleTrack(){const e=this.subtitleTrackController;return e?e.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(e){const t=this.subtitleTrackController;t&&(t.subtitleTrack=e)}get subtitleDisplay(){const e=this.subtitleTrackController;return e?e.subtitleDisplay:!1}set subtitleDisplay(e){const t=this.subtitleTrackController;t&&(t.subtitleDisplay=e)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(e){this.config.lowLatencyMode=e}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(e){this.latencyController.targetLatency=e}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(e){this.levelController.pathwayPriority=e}get bufferedToEnd(){var e;return!!((e=this.bufferController)!=null&&e.bufferedToEnd)}get interstitialsManager(){var e;return((e=this.interstitialsController)==null?void 0:e.interstitialsManager)||null}getMediaDecodingInfo(e,t=this.allAudioTracks){const n=Jt(t);return ze(e,n,navigator.mediaCapabilities)}}ms.defaultConfig=void 0},16722:function(Pn,Gt,_){"use strict";_.d(Gt,{Z:function(){return ne}});const f=o=>typeof o=="object"&&o!=null&&o.nodeType===1,ue=(o,g)=>(!g||o!=="hidden")&&o!=="visible"&&o!=="clip",z=(o,g)=>{if(o.clientHeight<o.scrollHeight||o.clientWidth<o.scrollWidth){const A=getComputedStyle(o,null);return ue(A.overflowY,g)||ue(A.overflowX,g)||(p=>{const E=(b=>{if(!b.ownerDocument||!b.ownerDocument.defaultView)return null;try{return b.ownerDocument.defaultView.frameElement}catch(I){return null}})(p);return!!E&&(E.clientHeight<p.scrollHeight||E.clientWidth<p.scrollWidth)})(o)}return!1},ae=(o,g,A,p,E,b,I,j)=>b<o&&I>g||b>o&&I<g?0:b<=o&&j<=A||I>=g&&j>=A?b-o-p:I>g&&j<A||b<o&&j>A?I-g+E:0,B=o=>{const g=o.parentElement;return g==null?o.getRootNode().host||null:g},d=(o,g)=>{var A,p,E,b;if(typeof document=="undefined")return[];const{scrollMode:I,block:j,inline:$,boundary:le,skipOverflowHiddenElements:F}=g,H=typeof le=="function"?le:tt=>tt!==le;if(!f(o))throw new TypeError("Invalid target");const D=document.scrollingElement||document.documentElement,w=[];let Q=o;for(;f(Q)&&H(Q);){if(Q=B(Q),Q===D){w.push(Q);break}Q!=null&&Q===document.body&&z(Q)&&!z(document.documentElement)||Q!=null&&z(Q,F)&&w.push(Q)}const re=(p=(A=window.visualViewport)==null?void 0:A.width)!=null?p:innerWidth,ee=(b=(E=window.visualViewport)==null?void 0:E.height)!=null?b:innerHeight,{scrollX:oe,scrollY:ge}=window,{height:me,width:at,top:Z,right:T,bottom:P,left:G}=o.getBoundingClientRect(),{top:ie,right:X,bottom:y,left:v}=(tt=>{const Ct=window.getComputedStyle(tt);return{top:parseFloat(Ct.scrollMarginTop)||0,right:parseFloat(Ct.scrollMarginRight)||0,bottom:parseFloat(Ct.scrollMarginBottom)||0,left:parseFloat(Ct.scrollMarginLeft)||0}})(o);let O=j==="start"||j==="nearest"?Z-ie:j==="end"?P+y:Z+me/2-ie+y,pe=$==="center"?G+at/2-v+X:$==="end"?T+X:G-v;const He=[];for(let tt=0;tt<w.length;tt++){const Ct=w[tt],{height:Rt,width:Ft,top:Ht,right:Ke,bottom:qt,left:Dt}=Ct.getBoundingClientRect();if(I==="if-needed"&&Z>=0&&G>=0&&P<=ee&&T<=re&&(Ct===D&&!z(Ct)||Z>=Ht&&P<=qt&&G>=Dt&&T<=Ke))return He;const sn=getComputedStyle(Ct),Je=parseInt(sn.borderLeftWidth,10),yt=parseInt(sn.borderTopWidth,10),Fe=parseInt(sn.borderRightWidth,10),we=parseInt(sn.borderBottomWidth,10);let V=0,je=0;const Qe="offsetWidth"in Ct?Ct.offsetWidth-Ct.clientWidth-Je-Fe:0,q="offsetHeight"in Ct?Ct.offsetHeight-Ct.clientHeight-yt-we:0,M="offsetWidth"in Ct?Ct.offsetWidth===0?0:Ft/Ct.offsetWidth:0,Se="offsetHeight"in Ct?Ct.offsetHeight===0?0:Rt/Ct.offsetHeight:0;if(D===Ct)V=j==="start"?O:j==="end"?O-ee:j==="nearest"?ae(ge,ge+ee,ee,yt,we,ge+O,ge+O+me,me):O-ee/2,je=$==="start"?pe:$==="center"?pe-re/2:$==="end"?pe-re:ae(oe,oe+re,re,Je,Fe,oe+pe,oe+pe+at,at),V=Math.max(0,V+ge),je=Math.max(0,je+oe);else{V=j==="start"?O-Ht-yt:j==="end"?O-qt+we+q:j==="nearest"?ae(Ht,qt,Rt,yt,we+q,O,O+me,me):O-(Ht+Rt/2)+q/2,je=$==="start"?pe-Dt-Je:$==="center"?pe-(Dt+Ft/2)+Qe/2:$==="end"?pe-Ke+Fe+Qe:ae(Dt,Ke,Ft,Je,Fe+Qe,pe,pe+at,at);const{scrollLeft:be,scrollTop:W}=Ct;V=Se===0?0:Math.max(0,Math.min(W+V/Se,Ct.scrollHeight-Rt/Se+q)),je=M===0?0:Math.max(0,Math.min(be+je/M,Ct.scrollWidth-Ft/M+Qe)),O+=W-V,pe+=be-je}He.push({el:Ct,top:V,left:je})}return He},_e=o=>o===!1?{block:"end",inline:"nearest"}:(g=>g===Object(g)&&Object.keys(g).length!==0)(o)?o:{block:"start",inline:"nearest"};function ne(o,g){if(!o.isConnected||!(E=>{let b=E;for(;b&&b.parentNode;){if(b.parentNode===document)return!0;b=b.parentNode instanceof ShadowRoot?b.parentNode.host:b.parentNode}return!1})(o))return;const A=(E=>{const b=window.getComputedStyle(E);return{top:parseFloat(b.scrollMarginTop)||0,right:parseFloat(b.scrollMarginRight)||0,bottom:parseFloat(b.scrollMarginBottom)||0,left:parseFloat(b.scrollMarginLeft)||0}})(o);if((E=>typeof E=="object"&&typeof E.behavior=="function")(g))return g.behavior(d(o,g));const p=typeof g=="boolean"||g==null?void 0:g.behavior;for(const{el:E,top:b,left:I}of d(o,_e(g))){const j=b-A.top+A.bottom,$=I-A.left+A.right;E.scroll({top:j,left:$,behavior:p})}}}}]);
}());