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.1...

1036 lines
1.4 MiB

!(function(){var gl=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[9647],{65030:function(Rn,Gt,E){"use strict";E.d(Gt,{Z:function(){return tt}});var h=E(98506),le=E(16886),ne=E(33346),oe=E(43403),B=E(92310),d=E.n(B),me=E(29301),re=E(76846),o=E(96452),y=E(6089),T=E(80402),m=E(34280),_=E(49658),b=E(59301),L=E(67711),K=E(77900),W=E(8654);function $(Te){var pe=Te.prefixCls,N=Te.align,xe=Te.arrow,Pe=Te.arrowPos,z=xe||{},P=z.className,ce=z.content,Ce=Pe.x,de=Ce===void 0?0:Ce,Q=Pe.y,he=Q===void 0?0:Q,Oe=b.useRef();if(!N||!N.points)return null;var Re={position:"absolute"};if(N.autoArrow!==!1){var qe=N.points[0],Ye=N.points[1],Et=qe[0],dt=qe[1],ge=Ye[0],Ae=Ye[1];Et===ge||!["t","b"].includes(Et)?Re.top=he:Et==="t"?Re.top=0:Re.bottom=0,dt===Ae||!["l","r"].includes(dt)?Re.left=de:dt==="l"?Re.left=0:Re.right=0}return b.createElement("div",{ref:Oe,className:d()("".concat(pe,"-arrow"),P),style:Re},ce)}function O(Te){var pe=Te.prefixCls,N=Te.open,xe=Te.zIndex,Pe=Te.mask,z=Te.motion;return Pe?b.createElement(K.default,(0,L.Z)({},z,{motionAppear:!0,visible:N,removeOnLeave:!0}),function(P){var ce=P.className;return b.createElement("div",{style:{zIndex:xe},className:d()("".concat(pe,"-mask"),ce)})}):null}var U=b.memo(function(Te){var pe=Te.children;return pe},function(Te,pe){return pe.cache}),R=U,x=b.forwardRef(function(Te,pe){var N=Te.popup,xe=Te.className,Pe=Te.prefixCls,z=Te.style,P=Te.target,ce=Te.onVisibleChanged,Ce=Te.open,de=Te.keepDom,Q=Te.fresh,he=Te.onClick,Oe=Te.mask,Re=Te.arrow,qe=Te.arrowPos,Ye=Te.align,Et=Te.motion,dt=Te.maskMotion,ge=Te.forceRender,Ae=Te.getPopupContainer,at=Te.autoDestroy,et=Te.portal,Qe=Te.zIndex,St=Te.onMouseEnter,Tt=Te.onMouseLeave,He=Te.onPointerEnter,Wt=Te.onPointerDownCapture,fn=Te.ready,Rt=Te.offsetX,qt=Te.offsetY,Ke=Te.offsetR,ke=Te.offsetB,Ne=Te.onAlign,I=Te.onPrepare,ee=Te.stretch,fe=Te.targetWidth,ve=Te.targetHeight,ye=typeof N=="function"?N():N,Ue=Ce||de,$e=(Ae==null?void 0:Ae.length)>0,ut=b.useState(!Ae||!$e),At=(0,le.Z)(ut,2),Ge=At[0],w=At[1];if((0,m.Z)(function(){!Ge&&$e&&P&&w(!0)},[Ge,$e,P]),!Ge)return null;var ae="auto",A={left:"-1000vw",top:"-1000vh",right:ae,bottom:ae};if(fn||!Ce){var Ze,Ee=Ye.points,Le=Ye.dynamicInset||((Ze=Ye._experimental)===null||Ze===void 0?void 0:Ze.dynamicInset),ze=Le&&Ee[0][1]==="r",Ve=Le&&Ee[0][0]==="b";ze?(A.right=Ke,A.left=ae):(A.left=Rt,A.right=ae),Ve?(A.bottom=ke,A.top=ae):(A.top=qt,A.bottom=ae)}var it={};return ee&&(ee.includes("height")&&ve?it.height=ve:ee.includes("minHeight")&&ve&&(it.minHeight=ve),ee.includes("width")&&fe?it.width=fe:ee.includes("minWidth")&&fe&&(it.minWidth=fe)),Ce||(it.pointerEvents="none"),b.createElement(et,{open:ge||Ue,getContainer:Ae&&function(){return Ae(P)},autoDestroy:at},b.createElement(O,{prefixCls:Pe,open:Ce,zIndex:Qe,mask:Oe,motion:dt}),b.createElement(me.Z,{onResize:Ne,disabled:!Ce},function(Pt){return b.createElement(K.default,(0,L.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:ge,leavedClassName:"".concat(Pe,"-hidden")},Et,{onAppearPrepare:I,onEnterPrepare:I,visible:Ce,onVisibleChanged:function(mn){var De;Et==null||(De=Et.onVisibleChanged)===null||De===void 0||De.call(Et,mn),ce(mn)}}),function(Kt,mn){var De=Kt.className,Se=Kt.style,nt=d()(Pe,De,xe);return b.createElement("div",{ref:(0,W.sQ)(Pt,pe,mn),className:nt,style:(0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)({"--arrow-x":"".concat(qe.x||0,"px"),"--arrow-y":"".concat(qe.y||0,"px")},A),it),Se),{},{boxSizing:"border-box",zIndex:Qe},z),onMouseEnter:St,onMouseLeave:Tt,onPointerEnter:He,onClick:he,onPointerDownCapture:Wt},Re&&b.createElement($,{prefixCls:Pe,arrow:Re,arrowPos:qe,align:Ye}),b.createElement(R,{cache:!Ce&&!Q},ye))})}))}),V=x,X=b.forwardRef(function(Te,pe){var N=Te.children,xe=Te.getTriggerDOMNode,Pe=(0,W.Yr)(N),z=b.useCallback(function(ce){(0,W.mH)(pe,xe?xe(ce):ce)},[xe]),P=(0,W.x1)(z,(0,W.C4)(N));return Pe?b.cloneElement(N,{ref:P}):N}),H=X,q=b.createContext(null),se=q;function ie(Te){return Te?Array.isArray(Te)?Te:[Te]:[]}function Fe(Te,pe,N,xe){return b.useMemo(function(){var Pe=ie(N!=null?N:pe),z=ie(xe!=null?xe:pe),P=new Set(Pe),ce=new Set(z);return Te&&(P.has("hover")&&(P.delete("hover"),P.add("click")),ce.has("hover")&&(ce.delete("hover"),ce.add("click"))),[P,ce]},[Te,pe,N,xe])}var Z=E(29194);function k(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],N=arguments.length>2?arguments[2]:void 0;return N?Te[0]===pe[0]:Te[0]===pe[0]&&Te[1]===pe[1]}function F(Te,pe,N,xe){for(var Pe=N.points,z=Object.keys(Te),P=0;P<z.length;P+=1){var ce,Ce=z[P];if(k((ce=Te[Ce])===null||ce===void 0?void 0:ce.points,Pe,xe))return"".concat(pe,"-placement-").concat(Ce)}return""}function G(Te,pe,N,xe){return pe||(N?{motionName:"".concat(Te,"-").concat(N)}:xe?{motionName:xe}:null)}function J(Te){return Te.ownerDocument.defaultView}function j(Te){for(var pe=[],N=Te==null?void 0:Te.parentElement,xe=["hidden","scroll","clip","auto"];N;){var Pe=J(N).getComputedStyle(N),z=Pe.overflowX,P=Pe.overflowY,ce=Pe.overflow;[z,P,ce].some(function(Ce){return xe.includes(Ce)})&&pe.push(N),N=N.parentElement}return pe}function v(Te){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(Te)?pe:Te}function g(Te){return v(parseFloat(Te),0)}function M(Te,pe){var N=(0,h.Z)({},Te);return(pe||[]).forEach(function(xe){if(!(xe instanceof HTMLBodyElement||xe instanceof HTMLHtmlElement)){var Pe=J(xe).getComputedStyle(xe),z=Pe.overflow,P=Pe.overflowClipMargin,ce=Pe.borderTopWidth,Ce=Pe.borderBottomWidth,de=Pe.borderLeftWidth,Q=Pe.borderRightWidth,he=xe.getBoundingClientRect(),Oe=xe.offsetHeight,Re=xe.clientHeight,qe=xe.offsetWidth,Ye=xe.clientWidth,Et=g(ce),dt=g(Ce),ge=g(de),Ae=g(Q),at=v(Math.round(he.width/qe*1e3)/1e3),et=v(Math.round(he.height/Oe*1e3)/1e3),Qe=(qe-Ye-ge-Ae)*at,St=(Oe-Re-Et-dt)*et,Tt=Et*et,He=dt*et,Wt=ge*at,fn=Ae*at,Rt=0,qt=0;if(z==="clip"){var Ke=g(P);Rt=Ke*at,qt=Ke*et}var ke=he.x+Wt-Rt,Ne=he.y+Tt-qt,I=ke+he.width+2*Rt-Wt-fn-Qe,ee=Ne+he.height+2*qt-Tt-He-St;N.left=Math.max(N.left,ke),N.top=Math.max(N.top,Ne),N.right=Math.min(N.right,I),N.bottom=Math.min(N.bottom,ee)}}),N}function ue(Te){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,N="".concat(pe),xe=N.match(/^(.*)\%$/);return xe?Te*(parseFloat(xe[1])/100):parseFloat(N)}function Ie(Te,pe){var N=pe||[],xe=(0,le.Z)(N,2),Pe=xe[0],z=xe[1];return[ue(Te.width,Pe),ue(Te.height,z)]}function Je(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[Te[0],Te[1]]}function Dt(Te,pe){var N=pe[0],xe=pe[1],Pe,z;return N==="t"?z=Te.y:N==="b"?z=Te.y+Te.height:z=Te.y+Te.height/2,xe==="l"?Pe=Te.x:xe==="r"?Pe=Te.x+Te.width:Pe=Te.x+Te.width/2,{x:Pe,y:z}}function vt(Te,pe){var N={t:"b",b:"t",l:"r",r:"l"};return Te.map(function(xe,Pe){return Pe===pe?N[xe]||"c":xe}).join("")}function Mt(Te,pe,N,xe,Pe,z,P){var ce=b.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Pe[xe]||{}}),Ce=(0,le.Z)(ce,2),de=Ce[0],Q=Ce[1],he=b.useRef(0),Oe=b.useMemo(function(){return pe?j(pe):[]},[pe]),Re=b.useRef({}),qe=function(){Re.current={}};Te||qe();var Ye=(0,y.Z)(function(){if(pe&&N&&Te){let yr=function(nr,Ln){var tr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ot,sr=Ue.x+nr,lr=Ue.y+Ln,Sr=sr+Ve,Dr=lr+ze,$r=Math.max(sr,tr.left),Fn=Math.max(lr,tr.top),Jn=Math.min(Sr,tr.right),Vn=Math.min(Dr,tr.bottom);return Math.max(0,(Jn-$r)*(Vn-Fn))},vr=function(){kt=Ue.y+On,nn=kt+ze,Qt=Ue.x+Mn,zt=Qt+Ve};var ge,Ae,at,et,Qe=pe,St=Qe.ownerDocument,Tt=J(Qe),He=Tt.getComputedStyle(Qe),Wt=He.position,fn=Qe.style.left,Rt=Qe.style.top,qt=Qe.style.right,Ke=Qe.style.bottom,ke=Qe.style.overflow,Ne=(0,h.Z)((0,h.Z)({},Pe[xe]),z),I=St.createElement("div");(ge=Qe.parentElement)===null||ge===void 0||ge.appendChild(I),I.style.left="".concat(Qe.offsetLeft,"px"),I.style.top="".concat(Qe.offsetTop,"px"),I.style.position=Wt,I.style.height="".concat(Qe.offsetHeight,"px"),I.style.width="".concat(Qe.offsetWidth,"px"),Qe.style.left="0",Qe.style.top="0",Qe.style.right="auto",Qe.style.bottom="auto",Qe.style.overflow="hidden";var ee;if(Array.isArray(N))ee={x:N[0],y:N[1],width:0,height:0};else{var fe,ve,ye=N.getBoundingClientRect();ye.x=(fe=ye.x)!==null&&fe!==void 0?fe:ye.left,ye.y=(ve=ye.y)!==null&&ve!==void 0?ve:ye.top,ee={x:ye.x,y:ye.y,width:ye.width,height:ye.height}}var Ue=Qe.getBoundingClientRect(),$e=Tt.getComputedStyle(Qe),ut=$e.height,At=$e.width;Ue.x=(Ae=Ue.x)!==null&&Ae!==void 0?Ae:Ue.left,Ue.y=(at=Ue.y)!==null&&at!==void 0?at:Ue.top;var Ge=St.documentElement,w=Ge.clientWidth,ae=Ge.clientHeight,A=Ge.scrollWidth,Ze=Ge.scrollHeight,Ee=Ge.scrollTop,Le=Ge.scrollLeft,ze=Ue.height,Ve=Ue.width,it=ee.height,Pt=ee.width,Kt={left:0,top:0,right:w,bottom:ae},mn={left:-Le,top:-Ee,right:A-Le,bottom:Ze-Ee},De=Ne.htmlRegion,Se="visible",nt="visibleFirst";De!=="scroll"&&De!==nt&&(De=Se);var st=De===nt,Ct=M(mn,Oe),ft=M(Kt,Oe),Ot=De===Se?ft:Ct,Zt=st?ft:Ot;Qe.style.left="auto",Qe.style.top="auto",Qe.style.right="0",Qe.style.bottom="0";var tn=Qe.getBoundingClientRect();Qe.style.left=fn,Qe.style.top=Rt,Qe.style.right=qt,Qe.style.bottom=Ke,Qe.style.overflow=ke,(et=Qe.parentElement)===null||et===void 0||et.removeChild(I);var Nt=v(Math.round(Ve/parseFloat(At)*1e3)/1e3),un=v(Math.round(ze/parseFloat(ut)*1e3)/1e3);if(Nt===0||un===0||(0,re.Sh)(N)&&!(0,Z.Z)(N))return;var gn=Ne.offset,ln=Ne.targetOffset,jt=Ie(Ue,gn),Be=(0,le.Z)(jt,2),ot=Be[0],gt=Be[1],wt=Ie(ee,ln),$t=(0,le.Z)(wt,2),rn=$t[0],cn=$t[1];ee.x-=rn,ee.y-=cn;var En=Ne.points||[],wn=(0,le.Z)(En,2),Pn=wn[0],ar=wn[1],Dn=Je(ar),In=Je(Pn),Nn=Dt(ee,Dn),zn=Dt(Ue,In),Wn=(0,h.Z)({},Ne),Mn=Nn.x-zn.x+ot,On=Nn.y-zn.y+gt,yn=yr(Mn,On),xn=yr(Mn,On,ft),je=Dt(ee,["t","l"]),Ft=Dt(Ue,["t","l"]),on=Dt(ee,["b","r"]),pn=Dt(Ue,["b","r"]),Un=Ne.overflow||{},_e=Un.adjustX,ct=Un.adjustY,We=Un.shiftX,ht=Un.shiftY,bt=function(Ln){return typeof Ln=="boolean"?Ln:Ln>=0},kt,nn,Qt,zt;vr();var rt=bt(ct),pt=In[0]===Dn[0];if(rt&&In[0]==="t"&&(nn>Zt.bottom||Re.current.bt)){var yt=On;pt?yt-=ze-it:yt=je.y-pn.y-gt;var Lt=yr(Mn,yt),Vt=yr(Mn,yt,ft);Lt>yn||Lt===yn&&(!st||Vt>=xn)?(Re.current.bt=!0,On=yt,gt=-gt,Wn.points=[vt(In,0),vt(Dn,0)]):Re.current.bt=!1}if(rt&&In[0]==="b"&&(kt<Zt.top||Re.current.tb)){var dn=On;pt?dn+=ze-it:dn=on.y-Ft.y-gt;var Cn=yr(Mn,dn),bn=yr(Mn,dn,ft);Cn>yn||Cn===yn&&(!st||bn>=xn)?(Re.current.tb=!0,On=dn,gt=-gt,Wn.points=[vt(In,0),vt(Dn,0)]):Re.current.tb=!1}var Bn=bt(_e),Yn=In[1]===Dn[1];if(Bn&&In[1]==="l"&&(zt>Zt.right||Re.current.rl)){var Zn=Mn;Yn?Zn-=Ve-Pt:Zn=je.x-pn.x-ot;var Hn=yr(Zn,On),kn=yr(Zn,On,ft);Hn>yn||Hn===yn&&(!st||kn>=xn)?(Re.current.rl=!0,Mn=Zn,ot=-ot,Wn.points=[vt(In,1),vt(Dn,1)]):Re.current.rl=!1}if(Bn&&In[1]==="r"&&(Qt<Zt.left||Re.current.lr)){var fr=Mn;Yn?fr+=Ve-Pt:fr=on.x-Ft.x-ot;var rr=yr(fr,On),hr=yr(fr,On,ft);rr>yn||rr===yn&&(!st||hr>=xn)?(Re.current.lr=!0,Mn=fr,ot=-ot,Wn.points=[vt(In,1),vt(Dn,1)]):Re.current.lr=!1}vr();var vn=We===!0?0:We;typeof vn=="number"&&(Qt<ft.left&&(Mn-=Qt-ft.left-ot,ee.x+Pt<ft.left+vn&&(Mn+=ee.x-ft.left+Pt-vn)),zt>ft.right&&(Mn-=zt-ft.right-ot,ee.x>ft.right-vn&&(Mn+=ee.x-ft.right+vn)));var er=ht===!0?0:ht;typeof er=="number"&&(kt<ft.top&&(On-=kt-ft.top-gt,ee.y+it<ft.top+er&&(On+=ee.y-ft.top+it-er)),nn>ft.bottom&&(On-=nn-ft.bottom-gt,ee.y>ft.bottom-er&&(On+=ee.y-ft.bottom+er)));var pr=Ue.x+Mn,or=pr+Ve,dr=Ue.y+On,Tn=dr+ze,an=ee.x,Sn=an+Pt,_n=ee.y,qn=_n+it,Qn=Math.max(pr,an),ir=Math.min(or,Sn),xr=(Qn+ir)/2,Ur=xr-pr,Pr=Math.max(dr,_n),Kr=Math.min(Tn,qn),Gr=(Pr+Kr)/2,zr=Gr-dr;P==null||P(pe,Wn);var mr=tn.right-Ue.x-(Mn+Ue.width),Cr=tn.bottom-Ue.y-(On+Ue.height);Nt===1&&(Mn=Math.round(Mn),mr=Math.round(mr)),un===1&&(On=Math.round(On),Cr=Math.round(Cr));var Wr={ready:!0,offsetX:Mn/Nt,offsetY:On/un,offsetR:mr/Nt,offsetB:Cr/un,arrowX:Ur/Nt,arrowY:zr/un,scaleX:Nt,scaleY:un,align:Wn};Q(Wr)}}),Et=function(){he.current+=1;var Ae=he.current;Promise.resolve().then(function(){he.current===Ae&&Ye()})},dt=function(){Q(function(Ae){return(0,h.Z)((0,h.Z)({},Ae),{},{ready:!1})})};return(0,m.Z)(dt,[xe]),(0,m.Z)(function(){Te||dt()},[Te]),[de.ready,de.offsetX,de.offsetY,de.offsetR,de.offsetB,de.arrowX,de.arrowY,de.scaleX,de.scaleY,de.align,Et]}var Bt=E(15142);function we(Te,pe,N,xe,Pe){(0,m.Z)(function(){if(Te&&pe&&N){let he=function(){xe(),Pe()};var z=pe,P=N,ce=j(z),Ce=j(P),de=J(P),Q=new Set([de].concat((0,Bt.Z)(ce),(0,Bt.Z)(Ce)));return Q.forEach(function(Oe){Oe.addEventListener("scroll",he,{passive:!0})}),de.addEventListener("resize",he,{passive:!0}),xe(),function(){Q.forEach(function(Oe){Oe.removeEventListener("scroll",he),de.removeEventListener("resize",he)})}}},[Te,pe,N])}var Yt=E(48736);function _t(Te,pe,N,xe,Pe,z,P,ce){var Ce=b.useRef(Te);Ce.current=Te;var de=b.useRef(!1);b.useEffect(function(){if(pe&&xe&&(!Pe||z)){var he=function(){de.current=!1},Oe=function(at){var et;Ce.current&&!P(((et=at.composedPath)===null||et===void 0||(et=et.call(at))===null||et===void 0?void 0:et[0])||at.target)&&!de.current&&ce(!1)},Re=J(xe);Re.addEventListener("pointerdown",he,!0),Re.addEventListener("mousedown",Oe,!0),Re.addEventListener("contextmenu",Oe,!0);var qe=(0,o.A)(N);if(qe&&(qe.addEventListener("mousedown",Oe,!0),qe.addEventListener("contextmenu",Oe,!0)),0)var Ye,Et,dt,ge;return function(){Re.removeEventListener("pointerdown",he,!0),Re.removeEventListener("mousedown",Oe,!0),Re.removeEventListener("contextmenu",Oe,!0),qe&&(qe.removeEventListener("mousedown",Oe,!0),qe.removeEventListener("contextmenu",Oe,!0))}}},[pe,N,xe,Pe,z]);function Q(){de.current=!0}return Q}var Xt=["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 lt(){var Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:oe.Z,pe=b.forwardRef(function(N,xe){var Pe=N.prefixCls,z=Pe===void 0?"rc-trigger-popup":Pe,P=N.children,ce=N.action,Ce=ce===void 0?"hover":ce,de=N.showAction,Q=N.hideAction,he=N.popupVisible,Oe=N.defaultPopupVisible,Re=N.onPopupVisibleChange,qe=N.afterPopupVisibleChange,Ye=N.mouseEnterDelay,Et=N.mouseLeaveDelay,dt=Et===void 0?.1:Et,ge=N.focusDelay,Ae=N.blurDelay,at=N.mask,et=N.maskClosable,Qe=et===void 0?!0:et,St=N.getPopupContainer,Tt=N.forceRender,He=N.autoDestroy,Wt=N.destroyPopupOnHide,fn=N.popup,Rt=N.popupClassName,qt=N.popupStyle,Ke=N.popupPlacement,ke=N.builtinPlacements,Ne=ke===void 0?{}:ke,I=N.popupAlign,ee=N.zIndex,fe=N.stretch,ve=N.getPopupClassNameFromAlign,ye=N.fresh,Ue=N.alignPoint,$e=N.onPopupClick,ut=N.onPopupAlign,At=N.arrow,Ge=N.popupMotion,w=N.maskMotion,ae=N.popupTransitionName,A=N.popupAnimation,Ze=N.maskTransitionName,Ee=N.maskAnimation,Le=N.className,ze=N.getTriggerDOMNode,Ve=(0,ne.Z)(N,Xt),it=He||Wt||!1,Pt=b.useState(!1),Kt=(0,le.Z)(Pt,2),mn=Kt[0],De=Kt[1];(0,m.Z)(function(){De((0,_.Z)())},[]);var Se=b.useRef({}),nt=b.useContext(se),st=b.useMemo(function(){return{registerSubPopup:function(Jn,Vn){Se.current[Jn]=Vn,nt==null||nt.registerSubPopup(Jn,Vn)}}},[nt]),Ct=(0,T.Z)(),ft=b.useState(null),Ot=(0,le.Z)(ft,2),Zt=Ot[0],tn=Ot[1],Nt=b.useRef(null),un=(0,y.Z)(function(Fn){Nt.current=Fn,(0,re.Sh)(Fn)&&Zt!==Fn&&tn(Fn),nt==null||nt.registerSubPopup(Ct,Fn)}),gn=b.useState(null),ln=(0,le.Z)(gn,2),jt=ln[0],Be=ln[1],ot=b.useRef(null),gt=(0,y.Z)(function(Fn){(0,re.Sh)(Fn)&&jt!==Fn&&(Be(Fn),ot.current=Fn)}),wt=b.Children.only(P),$t=(wt==null?void 0:wt.props)||{},rn={},cn=(0,y.Z)(function(Fn){var Jn,Vn,Ar=jt;return(Ar==null?void 0:Ar.contains(Fn))||((Jn=(0,o.A)(Ar))===null||Jn===void 0?void 0:Jn.host)===Fn||Fn===Ar||(Zt==null?void 0:Zt.contains(Fn))||((Vn=(0,o.A)(Zt))===null||Vn===void 0?void 0:Vn.host)===Fn||Fn===Zt||Object.values(Se.current).some(function(Lr){return(Lr==null?void 0:Lr.contains(Fn))||Fn===Lr})}),En=G(z,Ge,A,ae),wn=G(z,w,Ee,Ze),Pn=b.useState(Oe||!1),ar=(0,le.Z)(Pn,2),Dn=ar[0],In=ar[1],Nn=he!=null?he:Dn,zn=(0,y.Z)(function(Fn){he===void 0&&In(Fn)});(0,m.Z)(function(){In(he||!1)},[he]);var Wn=b.useRef(Nn);Wn.current=Nn;var Mn=b.useRef([]);Mn.current=[];var On=(0,y.Z)(function(Fn){var Jn;zn(Fn),((Jn=Mn.current[Mn.current.length-1])!==null&&Jn!==void 0?Jn:Nn)!==Fn&&(Mn.current.push(Fn),Re==null||Re(Fn))}),yn=b.useRef(),xn=function(){clearTimeout(yn.current)},je=function(Jn){var Vn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;xn(),Vn===0?On(Jn):yn.current=setTimeout(function(){On(Jn)},Vn*1e3)};b.useEffect(function(){return xn},[]);var Ft=b.useState(!1),on=(0,le.Z)(Ft,2),pn=on[0],Un=on[1];(0,m.Z)(function(Fn){(!Fn||Nn)&&Un(!0)},[Nn]);var _e=b.useState(null),ct=(0,le.Z)(_e,2),We=ct[0],ht=ct[1],bt=b.useState(null),kt=(0,le.Z)(bt,2),nn=kt[0],Qt=kt[1],zt=function(Jn){Qt([Jn.clientX,Jn.clientY])},rt=Mt(Nn,Zt,Ue&&nn!==null?nn:jt,Ke,Ne,I,ut),pt=(0,le.Z)(rt,11),yt=pt[0],Lt=pt[1],Vt=pt[2],dn=pt[3],Cn=pt[4],bn=pt[5],Bn=pt[6],Yn=pt[7],Zn=pt[8],Hn=pt[9],kn=pt[10],fr=Fe(mn,Ce,de,Q),rr=(0,le.Z)(fr,2),hr=rr[0],vn=rr[1],er=hr.has("click"),pr=vn.has("click")||vn.has("contextMenu"),or=(0,y.Z)(function(){pn||kn()}),dr=function(){Wn.current&&Ue&&pr&&je(!1)};we(Nn,jt,Zt,or,dr),(0,m.Z)(function(){or()},[nn,Ke]),(0,m.Z)(function(){Nn&&!(Ne!=null&&Ne[Ke])&&or()},[JSON.stringify(I)]);var Tn=b.useMemo(function(){var Fn=F(Ne,z,Hn,Ue);return d()(Fn,ve==null?void 0:ve(Hn))},[Hn,ve,Ne,z,Ue]);b.useImperativeHandle(xe,function(){return{nativeElement:ot.current,popupElement:Nt.current,forceAlign:or}});var an=b.useState(0),Sn=(0,le.Z)(an,2),_n=Sn[0],qn=Sn[1],Qn=b.useState(0),ir=(0,le.Z)(Qn,2),xr=ir[0],Ur=ir[1],Pr=function(){if(fe&&jt){var Jn=jt.getBoundingClientRect();qn(Jn.width),Ur(Jn.height)}},Kr=function(){Pr(),or()},Gr=function(Jn){Un(!1),kn(),qe==null||qe(Jn)},zr=function(){return new Promise(function(Jn){Pr(),ht(function(){return Jn})})};(0,m.Z)(function(){We&&(kn(),We(),ht(null))},[We]);function mr(Fn,Jn,Vn,Ar){rn[Fn]=function(Lr){var Fr;Ar==null||Ar(Lr),je(Jn,Vn);for(var ni=arguments.length,si=new Array(ni>1?ni-1:0),Jr=1;Jr<ni;Jr++)si[Jr-1]=arguments[Jr];(Fr=$t[Fn])===null||Fr===void 0||Fr.call.apply(Fr,[$t,Lr].concat(si))}}(er||pr)&&(rn.onClick=function(Fn){var Jn;Wn.current&&pr?je(!1):!Wn.current&&er&&(zt(Fn),je(!0));for(var Vn=arguments.length,Ar=new Array(Vn>1?Vn-1:0),Lr=1;Lr<Vn;Lr++)Ar[Lr-1]=arguments[Lr];(Jn=$t.onClick)===null||Jn===void 0||Jn.call.apply(Jn,[$t,Fn].concat(Ar))});var Cr=_t(Nn,pr,jt,Zt,at,Qe,cn,je),Wr=hr.has("hover"),yr=vn.has("hover"),vr,nr;Wr&&(mr("onMouseEnter",!0,Ye,function(Fn){zt(Fn)}),mr("onPointerEnter",!0,Ye,function(Fn){zt(Fn)}),vr=function(Jn){(Nn||pn)&&Zt!==null&&Zt!==void 0&&Zt.contains(Jn.target)&&je(!0,Ye)},Ue&&(rn.onMouseMove=function(Fn){var Jn;(Jn=$t.onMouseMove)===null||Jn===void 0||Jn.call($t,Fn)})),yr&&(mr("onMouseLeave",!1,dt),mr("onPointerLeave",!1,dt),nr=function(){je(!1,dt)}),hr.has("focus")&&mr("onFocus",!0,ge),vn.has("focus")&&mr("onBlur",!1,Ae),hr.has("contextMenu")&&(rn.onContextMenu=function(Fn){var Jn;Wn.current&&vn.has("contextMenu")?je(!1):(zt(Fn),je(!0)),Fn.preventDefault();for(var Vn=arguments.length,Ar=new Array(Vn>1?Vn-1:0),Lr=1;Lr<Vn;Lr++)Ar[Lr-1]=arguments[Lr];(Jn=$t.onContextMenu)===null||Jn===void 0||Jn.call.apply(Jn,[$t,Fn].concat(Ar))}),Le&&(rn.className=d()($t.className,Le));var Ln=b.useRef(!1);Ln.current||(Ln.current=Tt||Nn||pn);var tr=(0,h.Z)((0,h.Z)({},$t),rn),sr={},lr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];lr.forEach(function(Fn){Ve[Fn]&&(sr[Fn]=function(){for(var Jn,Vn=arguments.length,Ar=new Array(Vn),Lr=0;Lr<Vn;Lr++)Ar[Lr]=arguments[Lr];(Jn=tr[Fn])===null||Jn===void 0||Jn.call.apply(Jn,[tr].concat(Ar)),Ve[Fn].apply(Ve,Ar)})});var Sr=b.cloneElement(wt,(0,h.Z)((0,h.Z)({},tr),sr)),Dr={x:bn,y:Bn},$r=At?(0,h.Z)({},At!==!0?At:{}):null;return b.createElement(b.Fragment,null,b.createElement(me.Z,{disabled:!Nn,ref:gt,onResize:Kr},b.createElement(H,{getTriggerDOMNode:ze},Sr)),Ln.current&&b.createElement(se.Provider,{value:st},b.createElement(V,{portal:Te,ref:un,prefixCls:z,popup:fn,className:d()(Rt,Tn),style:qt,target:jt,onMouseEnter:vr,onMouseLeave:nr,onPointerEnter:vr,zIndex:ee,open:Nn,keepDom:pn,fresh:ye,onClick:$e,onPointerDownCapture:Cr,mask:at,motion:En,maskMotion:wn,onVisibleChanged:Gr,onPrepare:zr,forceRender:Tt,autoDestroy:it,getPopupContainer:St,align:Hn,arrow:$r,arrowPos:Dr,ready:yt,offsetX:Lt,offsetY:Vt,offsetR:dn,offsetB:Cn,onAlign:or,stretch:fe,targetWidth:_n/Yn,targetHeight:xr/Zn})))});return pe}var tt=lt(oe.Z)},68385:function(Rn,Gt,E){"use strict";var h=E(59301),le=Object.defineProperty,ne=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,y,T)=>y in o?le(o,y,{enumerable:!0,configurable:!0,writable:!0,value:T}):o[y]=T,me=(o,y)=>{for(var T in y||(y={}))oe.call(y,T)&&d(o,T,y[T]);if(ne)for(var T of ne(y))B.call(y,T)&&d(o,T,y[T]);return o};const re=o=>React.createElement("svg",me({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=="},83358:function(Rn,Gt,E){"use strict";var h=E(59301),le=Object.defineProperty,ne=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,y,T)=>y in o?le(o,y,{enumerable:!0,configurable:!0,writable:!0,value:T}):o[y]=T,me=(o,y)=>{for(var T in y||(y={}))oe.call(y,T)&&d(o,T,y[T]);if(ne)for(var T of ne(y))B.call(y,T)&&d(o,T,y[T]);return o};const re=o=>React.createElement("svg",me({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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNC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guMjM4TDExLjkgNC4yMmMtMS42NjItMS40MzMtNC40NjMtMS41OTItNC40NjMtMS41OTJMOC43NS4zMThDOC43NS4xNiA4LjkyNSAwIDkuMTg4IDBaIi8+PC9zdmc+"},62830:function(Rn,Gt,E){"use strict";var h=E(59301),le=Object.defineProperty,ne=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable,d=(o,y,T)=>y in o?le(o,y,{enumerable:!0,configurable:!0,writable:!0,value:T}):o[y]=T,me=(o,y)=>{for(var T in y||(y={}))oe.call(y,T)&&d(o,T,y[T]);if(ne)for(var T of ne(y))B.call(y,T)&&d(o,T,y[T]);return o};const re=o=>React.createElement("svg",me({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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jM4MS4xNjUuOTAyLjI0OCAxLjU2My4yNDguNjc3IDAgMS4yMjQtLjExMiAxLjY0LS4zMzUuNDE2LS4yMjMuNzM1LS41NDIuOTU2LS45NTUuMjIxLS40MTQuMzMyLS44NDUuMzMyLTEuMjk2IDAtLjM1OS0uMDY3LS42NjctLjItLjkyNmExLjYzMyAxLjYzMyAwIDAgMC0uNTYzLS42MjVjLS4xNDktLjA5OS0uMzYzLS4xODUtLjY0NC0uMjU5LjM0Ny0uMjA0LjYwNi0uNDQxLjc3OC0uNzEyYTEuNjYgMS42NiAwIDAgMCAuMjU3LS45MDggMS44MiAxLjgyIDAgMCAwLS42MzQtMS40MkM4LjU3MSA3LjE4OSA3Ljg4NiA3IDYuOTM4IDdaTTQuODEzIDBjLjE3NSAwIC4zNS4xNy40MzcuMzM4bDEuMzEzIDIuNDUzcy0yLjguMTctNC40NjMgMS43NzZMLjA4OC43NjFDMCAuNjc3IDAgLjU5MiAwIC41MDcgMCAuMTcuMjYzIDAgLjUyNSAwWm04LjY2MiAwYy4yNjMgMCAuNTI1LjI1NC41MjUuNTA3IDAgLjA4NSAwIC4xNy0uMDg4LjI1NEwxMS45IDQuNDgzQzEwLjIzOCAyLjk2IDcuNDM3IDIuNzkgNy40MzcgMi43OUw4Ljc1LjMzOEM4Ljc1LjE3IDguOTI1IDAgOS4xODggMFoiLz48L3N2Zz4="},28426:function(Rn,Gt,E){"use strict";var h=E(59301),le=E(93314),ne=E(99571),oe=Object.defineProperty,B=Object.defineProperties,d=Object.getOwnPropertyDescriptors,me=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,y=(b,L,K)=>L in b?oe(b,L,{enumerable:!0,configurable:!0,writable:!0,value:K}):b[L]=K,T=(b,L)=>{for(var K in L||(L={}))re.call(L,K)&&y(b,K,L[K]);if(me)for(var K of me(L))o.call(L,K)&&y(b,K,L[K]);return b},m=(b,L)=>B(b,d(L));const _=({img:b,buttonProps:L={},styles:K={},customText:W,ButtonText:$,ButtonClick:O,Buttonclass:U,ButtonTwo:R,imgStyles:x,loading:V=!1,className:X=""})=>h.createElement("section",{className:`tc animated fadeIn ${X}`,style:T({color:"#999",margin:"100px auto",visibility:V?"hidden":"visible"},K)},h.createElement("img",{src:b||le,style:m(T({},x),{pointerEvents:"none",userSelect:"none"})}),h.createElement("p",{className:"mt20 font14"},W||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),$&&h.createElement(ne.ZP,T({className:U,onClick:O},L),$),R&&R);Gt.Z=_},45677:function(Rn,Gt,E){"use strict";E.d(Gt,{Z:function(){return U}});var h=E(59301),le={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},ne=E(99571),oe=E(70557),B=E(75975),d=E(25399),me=E(51257),re=E(81722),o=E(28426),y=E(346),T=E(44203),m=E(59301),_=Object.defineProperty,b=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,W=(R,x,V)=>x in R?_(R,x,{enumerable:!0,configurable:!0,writable:!0,value:V}):R[x]=V,$=(R,x)=>{for(var V in x||(x={}))L.call(x,V)&&W(R,V,x[V]);if(b)for(var V of b(x))K.call(x,V)&&W(R,V,x[V]);return R},O=(R,x,V)=>new Promise((X,H)=>{var q=Fe=>{try{ie(V.next(Fe))}catch(Z){H(Z)}},se=Fe=>{try{ie(V.throw(Fe))}catch(Z){H(Z)}},ie=Fe=>Fe.done?X(Fe.value):Promise.resolve(Fe.value).then(q,se);ie((V=V.apply(R,x)).next())}),U=({editOffice:R="view",data:x,issaver:V,onSaver:X,theme:H,type:q,filename:se,monacoEditor:ie,className:Fe,style:Z,close:k,onClose:F,hasMask:G,disabledDownload:J,onImgDimensions:j,showNodata:v,recordInfo:g})=>{const[M,ue]=(0,h.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Ie,Je]=(0,h.useState)(""),[Dt,vt]=(0,h.useState)(),Mt=window.ENV==="build"?"/react/build":"",Bt=location.host.startsWith("localhost")?y.Z.PROXY_SERVER:y.Z.API_SERVER,Yt=10*(1024*1024),_t=(0,h.useRef)();x!=null&&x.startsWith("/api")&&q!=="txt"&&(x=y.Z.API_SERVER+x);const Xt=N=>N.substring(N.lastIndexOf("/")+1).split(".").pop();se&&ie&&(ie.filename=se),(0,h.useEffect)(()=>{var N,xe;const Pe=(xe=(N=document.cookie)==null?void 0:N.replace(/\s/g,""))==null?void 0:xe.split(";");Pe==null||Pe.map(z=>{let P=z.split("=");P[0]==="_educoder_session"&&Je(P[1])})},[]),(0,h.useEffect)(()=>{q==="office"&&(x.indexOf("bigfilescdn.")>-1||x.indexOf("bigfiles1")>-1?vt({url:x,fileType:Xt(x),model:x.indexOf("model=edit")?"edit":"view"}):tt())},[q,x]);function lt(N){return O(this,null,function*(){N.data.type==="pdfdata"&&(X(N.data.data),window.removeEventListener("message",lt,!1)),console.log("mess---:",N.data)})}const tt=()=>O(void 0,null,function*(){console.log("data:",x);let N=x;x.startsWith("http")||(N=location.origin+N);let xe=new URL(N).pathname.split("/").pop();const Pe=yield(0,re.gJ)({attachment_id:xe});Pe.url=Bt+Pe.url,vt(Pe)}),Te=()=>{if(x.startsWith("http")||x.startsWith("blob:")){pe();return}(0,me.Sv)(se||"educoder",x,se)},pe=()=>{g&&(0,T.fc)({id:g==null?void 0:g.id,watch_type:1,course_id:g==null?void 0:g.course_id}),(0,me.Nd)(se||"educoder",decodeURIComponent(x))};return m.createElement("div",{style:$({},Z||{}),className:`${G&&le.bgBlack} ${q?le.wrp:"hide"}`},k&&m.createElement("div",{className:le.close,ref:_t},!!j&&m.createElement(d.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>_t.current},m.createElement("span",{onClick:()=>{F(),j()}},m.createElement("i",{className:"icon-yulanpizhu"}))),!J&&m.createElement(d.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>_t.current},m.createElement("span",{onClick:pe},m.createElement("i",{className:"icon-quxiaozhiding"}))),V&&m.createElement(d.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>_t.current},m.createElement("span",{className:"",onClick:()=>{const N=document.getElementById("pdfiframe");window.addEventListener("message",lt,!1),setTimeout(()=>{N.contentWindow.postMessage("getData","*")},300)}},m.createElement("i",{className:"icon-baocun"}))),m.createElement(d.Z,{title:"\u5173\u95ED",getPopupContainer:()=>_t.current},m.createElement("span",{className:"",onClick:()=>{F()}},m.createElement("i",{className:"icon-guanbi1"})))),m.createElement("div",{className:`${le[Fe]} ${Fe} ${le.monaco} ${q==="txt"?"show":"hide"}`},q==="txt"&&m.createElement(m.Fragment,null,m.createElement(B.ZP,$({},ie)))),q==="audio"&&m.createElement("audio",{src:`${(x==null?void 0:x.indexOf("http://"))>-1||(x==null?void 0:x.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${x}`,autoPlay:!0}),q==="video"&&m.createElement(m.Fragment,null,(x==null?void 0:x.indexOf("http"))>-1?m.createElement("video",{controls:!0,src:`${x}`,autoPlay:!0}):m.createElement("video",{controls:!0,src:`data:video/mp4;base64,${x}`,autoPlay:!0})),q==="office"&&Dt&&m.createElement("iframe",{src:`${Mt}/office.html?key=${Dt.key}&url=${btoa(Dt.url)}&callbackUrl=${Bt+(Dt.callbackUrl||"")}&fileType=${Dt.fileType}&title=${Dt.title||""}&model=${R}&officeServer=${y.Z.ONLYOFFICE}&disabledDownload=${!!J}`}),q==="html"&&m.createElement("iframe",{src:x+"&disposition=inline"}),q==="pdf"&&m.createElement("iframe",{id:"pdfiframe",src:`${Mt}/js/pdfview/index.html?filename=${se||"educoder.pdf"}&url=${encodeURIComponent(x)}&disabledDownload=${!!J}&model=${R}`}),q==="image"&&m.createElement("img",{src:`${(x==null?void 0:x.indexOf("http://"))>-1||(x==null?void 0:x.indexOf("https://"))>-1?"":"data:image/png;base64,"}${x}`}),(q==="other"||q==="download")&&m.createElement(m.Fragment,null,v?m.createElement(o.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:m.createElement(ne.ZP,{icon:m.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Te,disabled:J},"\u4E0B\u8F7D")}):m.createElement(ne.ZP,{type:"primary",size:"middle",onClick:Te,disabled:J},m.createElement(oe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},76902:function(Rn,Gt,E){"use strict";E.d(Gt,{z:function(){return H},Z:function(){return q}});var h=E(59301),le=E(8944),ne=E(81428),oe=E(64018),B=E(81168),d=E(346),me=E(51257),re=E(15342),o=E(1012),y=E(45677),T=E(59301),_=({html:se})=>{const ie=(0,h.useRef)(null),Fe=(0,h.useRef)(null),Z=`.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,h.useEffect)(()=>{const k=ie.current.attachShadow({mode:"open"});Fe.current=document.createElement("div"),Fe.current.className="markdown-body",Fe.current.innerHTML=se,k.appendChild(Fe.current);const F=document.createElement("style");return F.textContent=Z,k.appendChild(F),()=>{k.innerHTML=""}},[]),(0,h.useEffect)(()=>{Fe.current&&(Fe.current.innerHTML=se)},[se]),T.createElement("div",{ref:ie})};function b(se){const ie=["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"],Fe=new RegExp(`\\b(${ie.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return se.replace(Fe,"").trim()}var L=Object.defineProperty,K=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,O=(se,ie,Fe)=>ie in se?L(se,ie,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):se[ie]=Fe,U=(se,ie)=>{for(var Fe in ie||(ie={}))W.call(ie,Fe)&&O(se,Fe,ie[Fe]);if(K)for(var Fe of K(ie))$.call(ie,Fe)&&O(se,Fe,ie[Fe]);return se};const R="@\u2581\u2581@",x="@\u2581@",V=/<pre[^>]*>/g;function X(se){let ie=document.createElement("div");return ie.innerHTML=se,ie.childNodes.length===0?"":ie.childNodes[0].nodeValue}const H=(se,ie)=>{se=se||"";const Fe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Z=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,k=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,F=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ie?se.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Fe,(G,J,j,v,g,M,ue)=>{const Ie=J||v||M,Je=j||g||ue||"?";return d.Z.API_SERVER+"/api/attachments/"+Ie+Je+"&t="+(0,me.Jn)(Ie,Date.now())+(G.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(se=se.replace(F,(G,J,j,v,g,M,ue)=>{const Ie=J||v||M,Je=j||g||ue||"?";return d.Z.API_SERVER+"/attachments/download/"+Ie+Je+"&t="+(0,me.Jn)(Ie,Date.now())+(G.indexOf(")")>-1?")":"&")}).replace(Fe,(G,J,j,v,g,M,ue)=>{const Ie=J||v||M,Je=j||g||ue||"?";return d.Z.API_SERVER+"/api/attachments/"+Ie+Je+"&t="+(0,me.Jn)(Ie,Date.now())+(G.indexOf(")")>-1?")":"&")}).replace(Z,(G,J,j,v,g)=>{const M=J||v,ue=j||g||"";return'"'+d.Z.API_SERVER+"/api/attachments/"+M+ue+M+ue+"&t="+(0,me.Jn)(M,Date.now())}).replace(k,(G,J,j,v,g)=>{const M=J||v,ue=j||g||"";return"("+d.Z.API_SERVER+"/files/uploads/"+M+ue+M+ue+"&t="+(0,me.Jn)(M,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,`
`),se)};var q=({value:se="",className:ie,showTextOnly:Fe,showLines:Z,style:k={},stylesPrev:F={},highlightKeywords:G,showProgramFill:J,isProgramFill:j,disabledFill:v=!1,programFillValue:g,onFillChange:M=Je=>{},onFillBlur:ue=()=>{},onFillFocus:Ie=()=>{}})=>{let Je=b(String(se||""));const[Dt,vt]=(0,h.useState)(""),[Mt,Bt]=(0,h.useState)("office"),[we,Yt]=(0,h.useState)([]),_t=(0,h.useRef)("a"+(0,o.Z)()),Xt={},lt=Q=>/<style[\s\S]*?>/i.test(Q||""),tt=(Q,he,Oe)=>{const Re=document.createElement(Q===x?"input":"textarea");Re.style.width="100%",Re.style.height=Q===x?"40px":"151px",Re.rows=5,Re.spellcheck=!1,Re.name="edu-program-fill",Re.placeholder="\u8BF7\u8F93\u5165",Re.dataset.id=he;const qe=Object.keys(Xt).length;return Xt[qe]=Re,`<span class="edu-program-fill-wrap ${Q===x?"":"show"}" style="width:${Q===x?"600px":"100%"}" title=${Oe||""}><span>${Re.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Te(Q){return Q=Q.replace(/!\[.*?\]\(.*?\)/g,""),Q=Q.replace(/\[.*?\]\(.*?\)/g,""),Q=Q.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Q=Q.replace(/<embed.*?>/g,""),Q=Q.replace(/<img.*?>/g,""),Q=Q.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Q=Q.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Q=Q.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Q=Q.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Q}const pe=Q=>!Fe&&lt(Je)?Q:Q.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(he,Oe){let Re=Oe.replace(/(\n|\r)/g,"").split("}"),qe=[];return Re.map(Ye=>{Ye!=""&&qe.push(`.${_t.current} ${Ye}`)}),`<style>${qe.join("}")}</style>`}),N=(0,h.useMemo)(()=>{try{const Re=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,qe=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ye=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Et=/\(\/attachments\/download\//g;Je=Je.replace(Et,"("+d.Z.API_SERVER+"/attachments/download/").replace(Re,"("+d.Z.API_SERVER+"/api/attachments/").replace(qe,'"'+d.Z.API_SERVER+"/api/attachments/").replace(Ye,'"'+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,`
`)}catch(Re){}if(J){let Re=-1;return Je=Je.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(qe,Ye,Et){var dt;return++Re,tt(qe,Re,(dt=g==null?void 0:g[Re])==null?void 0:dt.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${pe(Je||"")}</pre>`}let Q=pe(Je);Q=(0,ne.ZP)(Q);const he=(0,ne.ez)();Je.match(/\[TOC\]/)&&(Q=Q.replace("<p>[TOC]</p>",(0,ne.Qv)()),(0,ne.Iy)()),Q=Q.replace(/(__special_katext_id_\d+__)/g,(Re,qe)=>{const{type:Ye,expression:Et}=he[qe];return(0,re.renderToString)(X(Et)||"",{displayMode:Ye==="block",throwOnError:!1,output:"html"})}),Q=Q.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ne.AL)();const Oe=document.createElement("div");if(Oe.innerHTML=Q,Fe)return Oe.innerText;if(G){const Re=G.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return P(Oe,Re),Oe.innerHTML}return setTimeout(()=>de(),500),Oe.innerHTML},[Je,G]);(0,h.useEffect)(()=>{ce.current&&ce.current.querySelectorAll(["input","textarea"]).forEach(he=>{he.oninput=xe,he.onblur=Pe,he.onfocus=z})},[we]),(0,h.useEffect)(()=>{var Q,he,Oe,Re,qe;if(g!=null&&g.length)try{const Ye=ce.current.querySelectorAll(".edu-program-fill-score"),Et=ce.current.querySelectorAll('[name="edu-program-fill"]');for(const[dt,ge]of Et.entries())ge.value=((Q=g==null?void 0:g[dt])==null?void 0:Q.value)||"",((he=g==null?void 0:g[dt])==null?void 0:he.type)==="warning"?ge.className="program-fill-warning":((Oe=g==null?void 0:g[dt])==null?void 0:Oe.type)==="success"?ge.className="program-fill-success":ge.className="";for(const[dt,ge]of Ye.entries())ge.innerHTML=(Re=g==null?void 0:g[dt])!=null&&Re.score?`${(qe=g==null?void 0:g[dt])==null?void 0:qe.score}\u5206`:"";Yt(g)}catch(Ye){console.log(Ye,"error")}},[g]);const xe=Q=>{we[Q.target.dataset.id]=we[Q.target.dataset.id]||{},we[Q.target.dataset.id].value=Q.target.value,Yt([...we]),M(we,Q.target.dataset.id)},Pe=Q=>{we[Q.target.dataset.id]=we[Q.target.dataset.id]||{},we[Q.target.dataset.id].value=Q.target.value,Yt([...we]),ue(we,Q.target.dataset.id)},z=Q=>{we[Q.target.dataset.id]=we[Q.target.dataset.id]||{},we[Q.target.dataset.id].value=Q.target.value,Yt([...we]),Ie(we,Q.target.dataset.id)};function P(Q,he){return Q.childNodes.forEach(Oe=>{var Re;if(Oe.childNodes.length>0)P(Oe,he);else if(Oe.nodeName!=="IMG")if(Oe.innerHTML)Oe.innerHTML=(Re=Oe.innerHTML)==null?void 0:Re.replace(new RegExp(he,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const qe=document.createElement("span");qe.innerHTML=Oe.textContent.replace(new RegExp(he,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Oe.replaceWith(qe)}})}const ce=(0,h.useRef)();ne.jb.WebkitLineClamp=Z,Z&&(k=U(U({},k),ne.jb));function Ce(Q){let he=Q.target;if(he.tagName.toUpperCase()==="A"){let Oe=he.getAttribute("href");if(Oe.indexOf("office")>-1)Q.preventDefault(),vt(Oe),Bt("office");else if(Oe.indexOf("application/pdf")>-1)Q.preventDefault(),vt(Oe),Bt("pdf");else if(Oe.indexOf("text/html")>-1)Q.preventDefault(),vt(Oe),Bt("html");else if(Oe.startsWith("#")){Q.preventDefault();let Re=document.getElementById(Oe.replace("#",""));Re&&Re.scrollIntoView(!0)}}}const de=()=>{var Q;const he=(Q=ce.current)==null?void 0:Q.querySelectorAll("video");he==null||he.forEach(Oe=>{if(Oe.oncontextmenu=()=>!1,Oe.src.indexOf(".m3u8")>-1&&!Oe.canPlayType("application/vnd.apple.mpegurl")){if(B.ZP.isSupported()){var Re=new B.ZP;Re.loadSource(Oe.src),Re.attachMedia(Oe)}}})};return(0,h.useEffect)(()=>{if(ce.current&&N&&N.match(V)&&window.PR.prettyPrint(),ce.current)return ce.current.addEventListener("click",Ce),()=>{var Q;(Q=ce.current)==null||Q.removeEventListener("click",Ce),(0,ne.AL)(),(0,ne.Iy)()}},[N,ce.current,Ce]),(0,h.useEffect)(()=>{var Q;const he=Oe=>{Oe.preventDefault(),Oe.clipboardData.setData("text",window.getSelection().toString())};return(Q=ce.current)==null||Q.addEventListener("copy",he),()=>{var Oe;(Oe=ce.current)==null||Oe.removeEventListener("copy",he)}},[ce.current]),h.createElement(h.Fragment,null,Fe&&h.createElement("div",{ref:ce},N),!Fe&&!lt(N)&&h.createElement("div",{ref:ce,style:U({},k),className:`${ie||""} ${v?"disabled-fill":""} markdown-body ${_t.current}`,dangerouslySetInnerHTML:{__html:N}}),!Fe&&lt(N)&&h.createElement(_,{html:N}),h.createElement(y.Z,{close:!0,data:Dt,type:Dt!=null&&Dt.length?Mt:"",style:U({},F),onClose:()=>vt("")}))}},75975:function(Rn,Gt,E){"use strict";E.d(Gt,{SV:function(){return Yt},ZP:function(){return we}});var h=E(59301),le=E(76374);const ne={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"]},oe={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(`
`)}]},me={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 re=E(53184),o=E.n(re),y=(_t,Xt,lt)=>new Promise((tt,Te)=>{var pe=Pe=>{try{xe(lt.next(Pe))}catch(z){Te(z)}},N=Pe=>{try{xe(lt.throw(Pe))}catch(z){Te(z)}},xe=Pe=>Pe.done?tt(Pe.value):Promise.resolve(Pe.value).then(pe,N);xe((lt=lt.apply(_t,Xt)).next())});const T={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"]}},m=(_t,Xt,lt,tt)=>{const Te=Xt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:lt.lineNumber,endColumn:lt.column});return Array.from(new Set(Te.match(/\b\w{2,}\b/g)||[])).map(N=>({label:N,kind:_t.languages.CompletionItemKind.Text,insertText:N,range:tt}))},_=(_t,Xt,lt,tt)=>{_t.languages.registerCompletionItemProvider(Xt,{provideCompletionItems(Te,pe){const N=Te.getWordUntilPosition(pe),xe={startLineNumber:pe.lineNumber,endLineNumber:pe.lineNumber,startColumn:N.startColumn,endColumn:N.endColumn},Pe=Te.getLineContent(pe.lineNumber).substring(N.startColumn-2,N.endColumn);return{suggestions:[...m(_t,Te,pe,xe),...lt.map(P=>({label:P,kind:_t.languages.CompletionItemKind.Keyword,documentation:P,insertText:P,insertTextRules:_t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xe})),...tt.map(P=>({label:P.label,kind:_t.languages.CompletionItemKind.Snippet,documentation:P.content,insertText:Pe.startsWith("#")?P.content.replace(/#/,""):P.content,insertTextRules:_t.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:xe}))]}}})};var b=_t=>{T.languages.forEach(Xt=>{_t.languages.registerDocumentFormattingEditProvider(Xt,{provideDocumentFormattingEdits(lt){return y(this,null,function*(){const tt=o()(lt.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:lt.getFullModelRange(),text:tt}]})}})}),_(_t,"java",oe.keywords,oe.quickKey),_(_t,"cpp",B.keywords,B.quickKey),_(_t,"c",ne.keywords,[]),_(_t,"python",d.keywords,d.quickKey),_(_t,"scala",me.keywords,me.quickKey)};const L="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var K=Object.defineProperty,W=(_t,Xt,lt)=>Xt in _t?K(_t,Xt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):_t[Xt]=lt,$=(_t,Xt,lt)=>W(_t,typeof Xt!="symbol"?Xt+"":Xt,lt);const O=class vl{constructor(Xt,lt,tt){this.placeholder=Xt,this.editor=lt,this.monaco=tt,lt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return vl.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)}};$(O,"ID","editor.widget.placeholderHint");var R=O,x=E(96236),V=E(6767),X=E(25399),H=E(89392),q=E(49535),se=E(56102),ie=Object.defineProperty,Fe=Object.defineProperties,Z=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertySymbols,F=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,J=(_t,Xt,lt)=>Xt in _t?ie(_t,Xt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):_t[Xt]=lt,j=(_t,Xt)=>{for(var lt in Xt||(Xt={}))F.call(Xt,lt)&&J(_t,lt,Xt[lt]);if(k)for(var lt of k(Xt))G.call(Xt,lt)&&J(_t,lt,Xt[lt]);return _t},v=(_t,Xt)=>Fe(_t,Z(Xt)),g=(_t,Xt)=>{var lt={};for(var tt in _t)F.call(_t,tt)&&Xt.indexOf(tt)<0&&(lt[tt]=_t[tt]);if(_t!=null&&k)for(var tt of k(_t))Xt.indexOf(tt)<0&&G.call(_t,tt)&&(lt[tt]=_t[tt]);return lt},M=(_t,Xt,lt)=>new Promise((tt,Te)=>{var pe=Pe=>{try{xe(lt.next(Pe))}catch(z){Te(z)}},N=Pe=>{try{xe(lt.throw(Pe))}catch(z){Te(z)}},xe=Pe=>Pe.done?tt(Pe.value):Promise.resolve(Pe.value).then(pe,N);xe((lt=lt.apply(_t,Xt)).next())});function ue(_t){return/^\d+$/.test(_t)?`${_t}px`:_t}function Ie(){}let Je=!1;const Dt={"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 vt(_t=[]){let Xt=_t;if(Array.isArray(_t)){for(let lt=0;lt<_t.length;lt++){let tt=Dt[_t[lt]];if(tt)return tt}return Xt[0]}return Dt[Xt]||Xt}let Mt=null;const Bt=()=>M(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(_t){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",_t)}});var we=_t=>{var Xt=_t,{width:lt="100%",height:tt="100%",value:Te,language:pe="javascript",style:N={},options:xe={},overrideServices:Pe={},theme:z="vs-dark",onEditBlur:P,isCopy:ce=!1,onSave:Ce,autoHeight:de=!1,forbidCopy:Q=!1,onChange:he=Ie,editorDidMount:Oe=Ie,onFocus:Re=Ie,onBreakPoint:qe=Ie,breakPointValue:Ye=[],filename:Et="educoder.txt",errorLine:dt,errorContent:ge="",highlightLine:Ae,openBreakPoint:at=!1,placeholder:et="",showMiniMap:Qe=!0}=Xt,St=g(Xt,["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 Tt=(0,h.useRef)(),He=(0,h.useRef)({}),Wt=(0,h.useRef)(),fn=(0,h.useRef)(),Rt=(0,h.useRef)([]),qt=(0,h.useRef)(!1),Ke=(0,h.useRef)(),ke=(0,h.useRef)(),Ne=(0,h.useRef)(!1),[I,ee]=(0,h.useState)(!1);function fe(){let Ve;return Tt.current&&(Ve=new le.Z(it=>{for(let Pt of it)(Pt.target.offsetHeight>0||Pt.target.offsetWidth>0)&&He.current.instance.layout()}),Ve.observe(Tt.current)),Ve}function ve(){V.ZP.warning({content:decodeURIComponent(L),key:"monaco-editor-tip"})}const ye=()=>{let Ve=He.current.instance;if(Te!=null&&Ve&&I){const it=Ve.getModel();it&&Te!==it.getValue()&&(Je=!0,it.setValue(Te),Ve.layout(),Je=!1)}};(0,h.useEffect)(()=>{const Ve=q.Z.subscribe("formatDocument",it=>{var Pt;let Kt=He.current.instance;(Pt=Kt==null?void 0:Kt.getAction)==null||Pt.call(Kt,"editor.action.formatDocument").run()});return window.updateMonacoValue=it=>{he(it)},Ve},[]),(0,h.useEffect)(()=>{var Ve;let it=He.current.instance;fn.current&&clearTimeout(fn.current),fn.current=setTimeout(()=>{ye()},500),Te&&(Te!=null&&Te.length)&&((Ve=it==null?void 0:it.updateOptions)==null||Ve.call(it,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Te.split(/\r\n|\r|\n/g).length))+3,5)}))},[Te,I,He.current]),(0,h.useEffect)(()=>{if(dt&&He.current&&He.current.instance){let it=He.current.instance;it.changeViewZones(function(Pt){var Kt=document.createElement("div");Kt.style.padding="10px 20px",Kt.style.width="calc(100% - 20px)",Kt.className="my-error-line-wrp",Kt.innerHTML=ge,Pt.addZone({afterLineNumber:dt||11,heightInLines:3,domNode:Kt})});var Ve={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}};it.addOverlayWidget(Ve),it.revealPositionInCenter({lineNumber:20,column:1})}},[dt,He.current,I]);const Ue=(Ve="",it)=>{if(!Ve||Ve.trim()==="")return!0;const Kt=He.current.instance.getModel().getLineTokens(it);let mn=!1;for(let De=0;De<2;De++)Kt.getStandardTokenType(De)===1&&(mn=!0);return mn};(0,h.useEffect)(()=>{var Ve;const it=(Ve=He.current)==null?void 0:Ve.instance;if(it&&I&&Q){const Pt=it.onDidBlurEditorWidget(()=>{Ne.current=!1}),Kt=it.onDidFocusEditorText(()=>{Ne.current=!0});return()=>{Pt.dispose(),Kt.dispose()}}},[He.current,I,Q]),(0,h.useEffect)(()=>{var Ve;if((Ve=He.current)!=null&&Ve.instance&&I&&at){let it=He.current.instance,Pt=it.getModel();if(!Pt)return;(()=>{var Nt;let un=[],gn=[];const ln=Pt.getAllDecorations();for(let Be of ln)Be.options.className==="highlighted-line"&&(un.push((Nt=Be==null?void 0:Be.range)==null?void 0:Nt.startLineNumber),gn.push(Be==null?void 0:Be.id));if(Ae===un[0])return;Pt.deltaDecorations(gn,[]);const jt=Pt.getLineCount();Ae&&Ae<=jt&&(it.deltaDecorations([],[{range:new Mt.Range(Ae,1,Ae,Pt.getLineMaxColumn(Ae)),options:{isWholeLine:!0,className:"highlighted-line"}}]),it.revealLineInCenter(Ae))})();const mn=(Nt=!1)=>{var un;let gn=[],ln=[];const jt=Pt.getAllDecorations();for(let Be of jt)Be.options.linesDecorationsClassName==="breakpoints-select"&&(gn.push((un=Be==null?void 0:Be.range)==null?void 0:un.startLineNumber),ln.push(Be==null?void 0:Be.id));if(Nt)return{lines:gn,ids:ln};qe(gn)},De=Nt=>M(void 0,null,function*(){let un={range:new Mt.Range(Nt,1,Nt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Pt.deltaDecorations([],[un]),mn()}),Se=Nt=>M(void 0,null,function*(){let un=[];const gn=it.getLineDecorations(Nt);for(let ln of gn)ln.options.linesDecorationsClassName==="breakpoints-select"&&un.push(ln.id);yield Pt.deltaDecorations(un,[]),mn()}),nt=Nt=>{let un=it.getLineDecorations(Nt);for(let gn of un)if(gn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,H.isEqual)(Ye,mn(!0).lines)){Pt.deltaDecorations(mn(!0).ids,[]);const Nt=Ye.map(un=>({range:new Mt.Range(un,1,un,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Pt.deltaDecorations([],Nt)}const st=it.onDidChangeModelContent(Nt=>{let un=it.getPosition();if(un){let gn=un.lineNumber;clearTimeout(ke.current),ke.current=setTimeout(()=>{Ue(Pt.getLineContent(gn),gn)?Se(gn):nt(gn)?(Se(gn),De(gn)):mn()},100)}}),Ct=it.onMouseDown(Nt=>{var un,gn,ln;if(Nt.target.detail&&((ln=(gn=(un=Nt.target)==null?void 0:un.element)==null?void 0:gn.className)!=null&&ln.includes("line-numbers"))){let jt=Nt.target.position.lineNumber;if(Ue(Pt.getLineContent(jt),jt))return;nt(jt)?Se(jt):De(jt)}}),ft=Nt=>{let un={range:new Mt.Range(Nt,1,Nt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Rt.current=it.deltaDecorations(Rt.current,[un])},Ot=()=>{Rt.current=it.deltaDecorations(Rt.current,[])},Zt=it.onMouseMove(Nt=>{var un,gn,ln;if(Ot(),Nt.target.detail&&((ln=(gn=(un=Nt.target)==null?void 0:un.element)==null?void 0:gn.className)!=null&&ln.includes("line-numbers"))){let jt=Nt.target.position.lineNumber;if(Ue(Pt.getLineContent(jt),jt))return;ft(jt)}}),tn=it.onMouseLeave(()=>{Ot()});return()=>{st.dispose(),Ct.dispose(),Zt.dispose(),tn.dispose()}}},[He.current,I,Ye,Ae,at,pe]),(0,h.useEffect)(()=>{var Ve;(Ve=He.current)!=null&&Ve.instance&&at&&He.current.instance.setPosition({lineNumber:0,column:0})},[Ae]);function $e(){let Ve=He.current.instance;if(Ve){const it=Ve.getSelection(),Pt=He.current.pastePos||{},Kt=new Mt.Range(Pt.startLineNumber||it.endLineNumber,Pt.startColumn||it.endColumn,Pt.endLineNumber||it.endLineNumber,Pt.endColumn||it.endColumn);setTimeout(()=>{Ve.executeEdits("",[{range:Kt,text:""}])},300)}}function ut(Ve){(window.navigator.platform.match("Mac")?Ve.metaKey:Ve.ctrlKey)&&Ve.keyCode==83&&(Ve.preventDefault(),Ce())}const At=()=>{if(de&&He.current.instance){const Ve=He.current.instance.getContentHeight();Le(Ve<tt?tt:Ve)}else Le(tt)};function Ge(Ve){var it=document.createEvent("MouseEvents");it.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ve.dispatchEvent(it)}const w=Ve=>{if(!Ne.current)return;const{keyCode:it,ctrlKey:Pt,metaKey:Kt,target:mn,type:De}=Ve;return(De==="paste"||(it===67||it===86)&&(Kt||Pt))&&mn.nodeName==="TEXTAREA"&&(ve(),Ve.preventDefault()),!1};function ae(Ve,it){var Pt=window.URL||window.webkitURL||window,Kt=new Blob([it]),mn=document.createElementNS("http://www.w3.org/1999/xhtml","a");mn.href=Pt.createObjectURL(Kt),mn.download=Ve,Ge(mn)}(0,h.useEffect)(()=>{At()},[At]),(0,h.useEffect)(()=>{Tt.current&&!I&&Promise.all([E.e(8909),E.e(6656)]).then(E.bind(E,71448)).then(Ve=>{try{Mt=Ve,He.current.instance=Mt.editor.create(Tt.current,{value:Te,language:vt(pe),theme:z,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Qe||!1}},Pe);const it=He.current.instance;let mn=[...x.BH._menuItems].find(st=>st[0]._debugName=="EditorContext")[1],De=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Se=(st,Ct)=>{var ft,Ot;let Zt=st._first;do Ct.includes((Ot=(ft=Zt.element)==null?void 0:ft.command)==null?void 0:Ot.id)&&st._remove(Zt);while(Zt=Zt.next)};if(Oe(it,Mt),setTimeout(()=>{At(),He.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{ae(Et||"educoder.txt",it.getValue())}})},500),He.current.subscription=it.onDidChangeModelContent(st=>{qt.current?clearTimeout(Ke.current):(At(),he(it.getValue(),st)),Ke.current=setTimeout(()=>{qt.current=!1},500)}),window.Monaco||b(Mt,vt(pe)),Q&&(Se(mn,De),Tt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",w),window.removeEventListener("paste",w),window.addEventListener("keydown",w),window.addEventListener("paste",w)),window.Monaco=Mt,P&&it.onDidBlurEditorWidget(()=>{P(it.getValue())}),Re&&it.onDidFocusEditorText(()=>{Q&&Bt(),Re(it.getValue())}),Q){Bt();try{it.onDidPaste(st=>{const Ct=it.getSelection(),ft=He.current.pastePos||{},Ot=new Mt.Range(ft.startLineNumber||Ct.endLineNumber,ft.startColumn||Ct.endColumn,ft.endLineNumber||Ct.endLineNumber,ft.endColumn||Ct.endColumn);it.executeEdits("",[{range:st.range,text:""}])})}catch(st){}}let nt=fe();return et&&typeof et=="string"&&new R(et,it,Mt),ee(!0),()=>{const st=He.current.instance;st.dispose();const Ct=st.getModel();Ct&&Ct.dispose(),He.current.subscription&&He.current.subscription.dispose(),nt.unobserve(Tt.current)}}catch(it){}})},[]),(0,h.useEffect)(()=>{if(He.current.instance&&I)return document.addEventListener("keydown",ut,!1),()=>{document.removeEventListener("keydown",ut)}},[Ce,I]),(0,h.useEffect)(()=>{let Ve=He.current.instance;if(Ve&&I){let it=vt(pe);Mt.editor.setModelLanguage(Ve.getModel(),it)}},[pe,I]),(0,h.useEffect)(()=>{He.current.instance&&I&&Mt.editor.setTheme(z)},[z,I]),(0,h.useEffect)(()=>{let Ve=He.current.instance;Wt.current=xe,Ve&&I&&(Ve.updateOptions(j({},xe)),setTimeout(()=>{Ve.getModel().updateOptions(j({},xe))},200))},[JSON.stringify(xe),I]),(0,h.useEffect)(()=>{let Ve=He.current.instance;Ve&&I&&Ve.layout()},[lt,tt,I]);const[A,Ze]=(0,h.useState)(ue(lt)),[Ee,Le]=(0,h.useState)(ue(tt)),ze=v(j({},N),{width:A,height:Ee,position:"relative"});return h.createElement("div",{className:"my-monaco-editor",ref:Tt,style:ze},ce&&h.createElement(se.CopyToClipboard,{text:Te,onCopy:()=>V.ZP.success("\u590D\u5236\u6210\u529F")},h.createElement(X.Z,{title:"\u590D\u5236\u4EE3\u7801"},h.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},h.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Yt({width:_t="100%",height:Xt="100%",original:lt,modified:tt,language:Te,options:pe={}}){const N=(0,h.useRef)(),[xe,Pe]=(0,h.useState)(null);function z(de){let Q;return N.current&&(Q=new le.Z(he=>{for(let Oe of he)(Oe.target.offsetHeight>0||Oe.target.offsetWidth>0)&&de.layout()}),Q.observe(N.current)),Q}(0,h.useEffect)(()=>(N.current&&Promise.all([E.e(8909),E.e(9404)]).then(E.bind(E,2550)).then(de=>{Mt=de;const Q=Mt.editor.createDiffEditor(N.current,v(j({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},pe),{wordWrap:!0}));Pe(Q);let he=z(Q);return()=>{Q.dispose();const Oe=Q.getModel();Oe&&Oe.dispose(),he.unobserve(N.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,h.useEffect)(()=>{xe&&xe.setModel({original:Mt.editor.createModel(lt,Te),modified:Mt.editor.createModel(tt,Te)})},[lt,tt,Te,xe]);const P=ue(_t),ce=ue(Xt),Ce={width:P,height:ce};return h.createElement("div",{className:"my-diff-editor",ref:N,style:Ce})}},10661:function(Rn,Gt,E){"use strict";E.d(Gt,{Z:function(){return m}});var h={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"},le=E(29787),ne=E(25399),oe=E(60242),B=E(92310),d=E.n(B),me=E(51257),re=E(28426),o=E(48790),y=E(59301),m=({className:_,dataSource:b=[],col:L=4,right:K,bottom:W=23,precision:$=0,wrapWidth:O=1200,trackEventItems:U,loading:R,onRemove:x=()=>{},isCurrent:V=!0,showProgress:X=!1,showAlias:H=!1})=>{const q=Math.floor((O-(L-1)*K)/L),se=[{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 y.createElement(le.Z,{spinning:R},y.createElement("div",{className:d()(h.list,_)},!!(b!=null&&b.length)&&(b==null?void 0:b.map((ie,Fe)=>{var Z,k,F,G,J,j;const{name:v,id:g,identifier:M,featured:ue,school_name:Ie,image_url:Je,excellent:Dt,is_plan:vt}=ie;return y.createElement("div",{key:g,className:V&&X?h.wrapisCurrent:h.wrap,style:{width:q,marginRight:(1+Fe)%L===0?0:K+$,marginBottom:W}},y.createElement("a",{className:h.li,onClick:Mt=>{Mt.preventDefault(),Mt.stopPropagation(),U&&(0,me.L9)([U]),(0,me.xg)(`/paths/${M}`)}},y.createElement("div",{className:h.img},y.createElement("img",{className:h.cover,src:`${Je}`}),V&&(0,o.bg)()&&(ie==null?void 0:ie.studying)&&y.createElement("div",{className:`${h.movebq} user-path-items`,onClick:Mt=>{Mt.stopPropagation(),x(ie)}},y.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),y.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Z=ie==null?void 0:ie.subject_tags)==null?void 0:Z.map((Mt,Bt)=>{var we,Yt;if(Bt===0){const Xt=(we=se.find(lt=>lt.name==Mt))==null?void 0:we.swimg;return y.createElement("img",{className:h.sign,src:Xt,style:{left:"-4px"}})}const _t=(Yt=se.find(Xt=>Xt.name==Mt))==null?void 0:Yt.ptimg;return y.createElement("img",{className:h.sign,src:_t,style:{left:`${48+52*(Bt-1)+2*Bt}px`}})}),y.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(ie==null?void 0:ie.excellent)&&y.createElement("div",{className:h.bq},"\u5F00\u653E\u8BFE\u7A0B"))),y.createElement("div",{className:h.name},y.createElement(ne.Z,{title:H&&(ie!=null&&ie.excellent_alias_name)?y.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${v}`,y.createElement("br",null),y.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${ie==null?void 0:ie.excellent_alias_name}`)):v},y.createElement("span",{className:h.e},H&&(ie==null?void 0:ie.excellent_alias_name)||v))),V&&X&&((k=ie==null?void 0:ie.progress)==null?void 0:k.all_score)!=0&&y.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},y.createElement(oe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((F=ie==null?void 0:ie.progress)==null?void 0:F.my_score)/((G=ie==null?void 0:ie.progress)==null?void 0:G.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(J=ie==null?void 0:ie.progress)==null?void 0:J.my_score,"/",(j=ie==null?void 0:ie.progress)==null?void 0:j.all_score),(!V||!X)&&y.createElement(ne.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Ie}`},y.createElement("div",{className:h.unit},y.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ie)),(!V||!X)&&y.createElement("div",{className:h.tags},y.createElement("div",null,y.createElement(ne.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},y.createElement("span",null,y.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),y.createElement("span",null,ie.stages_count))),y.createElement(ne.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},y.createElement("span",null,y.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),y.createElement("span",null,ie.members_count)))))))})),!b.length&&y.createElement(re.Z,null)))}},9148:function(Rn,Gt,E){"use strict";E.d(Gt,{jL:function(){return B},w9:function(){return ue},QD:function(){return dt},cQ:function(){return J.Z},op:function(){return he},O5:function(){return ye},_b:function(){return St},t7:function(){return $},Gi:function(){return Bt},YG:function(){return vt},qp:function(){return T},vr:function(){return at},qE:function(){return qe},Je:function(){return R},wb:function(){return G},cq:function(){return tt},tp:function(){return b}});var h=E(59301),le={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"},ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0a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dsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",B=({dataSource:Ue=[],img:$e,imgWidth:ut=346,title:At,sunTitle:Ge,bannerExtraContent:w})=>h.createElement("div",{className:le.banner},h.createElement("div",{className:le.content},h.createElement("aside",null,h.createElement("p",null,h.createElement("b",null,At),h.createElement("span",null,Ge)),Ue.length>0&&h.createElement("div",{className:le.btns},Ue.map((ae,A)=>h.createElement("div",{key:A,onClick:ae.click},ae.name,ae.sign?h.createElement("img",{src:ne,width:39}):null))),w),$e&&h.createElement("img",{style:{marginTop:33,marginRight:38},src:$e,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"},me=E(92310),re=E.n(me),o=E(89392),T=({dataSource:Ue=[],value:$e,onChange:ut,onTitleChange:At,className:Ge,title:w,titleWidth:ae=41,style:A={},fontColor:Ze="#6A7283",showCount:Ee})=>{const[Le,ze]=(0,h.useState)(0),[Ve,it]=(0,h.useState)(!1),Pt=(0,h.useRef)(null),Kt=(0,h.useRef)(null);return(0,h.useEffect)(()=>{var mn;Ue.length!==0&&(((mn=Pt==null?void 0:Pt.current)==null?void 0:mn.clientHeight)>97?ze(1):ze(0)),Ue.length===0&&ze(0),it(!1)},[Ue]),h.createElement("div",{className:re()(d.row,Ge),style:A},h.createElement("div",{onClick:(0,o.throttle)(()=>At==null?void 0:At(),2e3),style:{width:ae,marginTop:Ve?12:4},className:`${d.title} ${At?"current":""}`},w),h.createElement("div",{className:Ve?`${d.tagsWrap} ${d.tagsBorderWrap}`:d.tagsWrap},h.createElement("div",{className:d.bar,ref:Kt,style:Le>0?{height:Le===1?97:"auto",overflow:Le===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},h.createElement("div",{className:d.tag,ref:Pt},Ue==null?void 0:Ue.map(mn=>h.createElement("span",{onClick:()=>ut(mn.id),key:mn.id,style:{color:Ze},className:$e===mn.id?d.active:""},h.createElement("span",{title:mn.name,className:d.name},mn.name),!!Ee&&h.createElement("span",{className:d.num},mn.count))))),!!Le&&h.createElement(h.Fragment,null,Le===1?h.createElement("div",{onClick:()=>{var mn;ze(2),((mn=Pt==null?void 0:Pt.current)==null?void 0:mn.clientHeight)>245?it(!0):it(!1)},className:d.action},"\u5C55\u5F00",h.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):h.createElement("div",{onClick:()=>{Kt.current.scrollTop=0,ze(1),it(!1)},className:d.action},"\u6536\u8D77",h.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},m={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:Ue=[],value:$e,onChange:ut,className:At,style:Ge={}})=>h.createElement("div",{style:Ge,className:re()(m.tabs,At)},Ue.map(w=>h.createElement("span",{onClick:()=>ut(w.id),className:$e===w.id?m.active:"",key:w.id},w.name))),L={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"},K=E(37568),$=({dataSource:Ue=[],value:$e="",onChange:ut,onInputChange:At=()=>{},className:Ge,style:w={},placeholder:ae,allowClear:A=!1})=>{var Ze;const[Ee,Le]=(0,h.useState)(""),[ze,Ve]=(0,h.useState)("");(0,h.useEffect)(()=>{var Kt;let mn=$e;(Kt=JSON.stringify($e))!=null&&Kt.includes("{")&&(Le($e.id),mn=$e.value||"");try{Ve(decodeURIComponent(mn||""))}catch(De){Ve(decodeURIComponent(mn||""))}},[$e]);const it=()=>{ut(encodeURIComponent(ze),Ee||null)},Pt=Kt=>{Kt!==Ee&&(Le(Kt),ut(encodeURIComponent(ze),Kt))};return h.createElement("div",{className:re()(L.input,Ge),style:w},!!Ue.length&&h.createElement("div",{className:L.dropdown},h.createElement("div",{className:L.text},(Ze=Ue.find(Kt=>Kt.id===Ee))==null?void 0:Ze.name,h.createElement("i",{className:"iconfont icon-zhankai4"}),h.createElement("b",{className:L.b1}),h.createElement("b",{className:L.b2})),h.createElement("div",{className:L.menu},Ue.map((Kt,mn)=>h.createElement("div",{key:mn,onClick:()=>Pt(Kt.id)},Kt.name)))),h.createElement(K.default,{onPressEnter:it,value:ze,onChange:Kt=>{Ve(Kt.target.value),At(encodeURIComponent(Kt.target.value),Ee||null)},bordered:!1,placeholder:ae}),h.createElement("i",{onClick:it,className:"iconfont icon-sousuo9 font14 pl10 current"}))},O={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"},R=({value:Ue,onChange:$e,className:ut,total:At,pageSize:Ge,style:w={}})=>{const ae=Ue<2,A=Ue>=Math.ceil(At/Ge);return At<=Ge?h.createElement(h.Fragment,null):h.createElement("div",{className:re()(O.quickPager,ut),style:w},h.createElement("div",{onClick:()=>{ae||$e(Ue-1,"prev")},className:ae?O.disabled:""},"\u4E0A\u4E00\u9875"),h.createElement("div",{onClick:()=>{A||$e(Ue+1,"next")},className:A?O.disabled:""},"\u4E0B\u4E00\u9875"))},x={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"},V=E(29787),X=E(25399),H=E(58018),q=E(346),se=E(51257),ie=E(96908),Fe=E(57177),Z=E(81378),k=E(28426),G=({className:Ue,dataSource:$e=[],col:ut=4,right:At,bottom:Ge=23,precision:w=0,wrapWidth:ae=1200,trackEventItems:A,loading:Ze})=>{const Ee=Math.floor((ae-(ut-1)*At)/ut);return h.createElement(V.Z,{spinning:Ze},h.createElement("div",{className:re()(x.list,Ue)},!!$e.length&&$e.map((Le,ze)=>{const{name:Ve,id:it,identifier:Pt,power:Kt,cover_image_id:mn,pic:De}=Le;return h.createElement("div",{className:x.wrap,key:it,style:{width:Ee,marginRight:(1+ze)%ut===0?0:At+w,marginBottom:Ge}},h.createElement("a",{target:"_blank",href:`/shixuns/${Pt}/challenges`,className:x.li,onClick:Se=>{Se.preventDefault(),A&&(0,se.L9)([A]),Kt&&(0,se.xg)(`/shixuns/${Pt}/challenges`)}},h.createElement("div",{className:x.img},h.createElement("img",{className:x.cover,src:`${De}`}),Le.is_jupyter&&h.createElement("img",{className:x.sign,src:ie}),Le.is_jupyter_lab&&h.createElement("img",{className:x.sign,src:Fe}),Le.is_unity_3d&&h.createElement("img",{className:x.sign,src:Z})),h.createElement("div",{className:x.name},h.createElement(X.Z,{title:Ve||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},h.createElement("span",{className:x.e},Ve||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),h.createElement("div",{className:x.tags},h.createElement(X.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},h.createElement("span",null,h.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),h.createElement("span",null,Le.challenges_count))),!!Le.myshixuns_count&&h.createElement(X.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},h.createElement("span",null,h.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),h.createElement("span",null,Le.myshixuns_count))),h.createElement(X.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},h.createElement("span",null,h.createElement("span",null,Le.level))),h.createElement("div",{className:x.rate},h.createElement(H.Z,{allowHalf:!0,disabled:!0,defaultValue:Le.score_info}),h.createElement("span",null,"\xA0",Le.score_info?`${Le.score_info}\u5206`:"5\u5206")))),!Kt&&h.createElement("div",{className:x.lockWrap},h.createElement("img",{src:`${q.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),h.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!$e.length&&h.createElement(k.Z,null)))},J=E(10661),j={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___Fp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STqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",g=E(59301),ue=({className:Ue,dataSource:$e=[],col:ut=4,right:At,bottom:Ge=23,precision:w=0,wrapWidth:ae=1200,trackEventItems:A,loading:Ze,handleVery:Ee=()=>!0})=>{const Le=Math.floor((ae-(ut-1)*At)/ut);return g.createElement(V.Z,{spinning:Ze},g.createElement("div",{className:re()(j.list,Ue)},!!$e.length&&$e.map((ze,Ve)=>{const{subject_identifier:it,id:Pt,identifier:Kt,power:mn}=ze,De=ze.is_public!=0&&ze.is_public;return g.createElement("div",{className:j.wrap,key:Pt,style:{width:Le,marginRight:(1+Ve)%ut===0?0:At+w,marginBottom:Ge}},g.createElement("a",{className:j.li,onClick:Se=>{Se.preventDefault(),Ee(ze==null?void 0:ze.first_category_url)&&(A&&(0,se.L9)([A]),(0,se.xg)(ze.first_category_url))}},g.createElement("div",{className:j.top},g.createElement(X.Z,{title:ze.name},g.createElement("div",{className:j.name},ze.name)),g.createElement("img",{className:j.img,src:q.Z.IMG_SERVER+"/images/"+ze.avatar_url}),g.createElement("div",{className:j.text,title:ze.creator},ze.creator),it&&g.createElement("div",{className:j.btns},g.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),g.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),De&&g.createElement("div",{className:j.sign},"\u516C\u5F00")),g.createElement("div",{className:j.bottom},ze.visits>0&&g.createElement(X.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},g.createElement("span",null,g.createElement("i",{className:"iconfont icon-liulanyan"}),g.createElement("span",null,ze.visits))),ze.course_members_count>0&&g.createElement(X.Z,{title:"\u6210\u5458",placement:"bottom"},g.createElement("span",null,g.createElement("i",{className:"iconfont icon-chengyuan"}),ze.course_members_count)),ze.tasks_count>0&&g.createElement(X.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},g.createElement("span",null,g.createElement("i",{className:"iconfont icon-zuoye"}),ze.tasks_count)),ze.is_end?g.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):g.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!ze.is_accessible&&g.createElement("div",{className:j.lockWrap},g.createElement("img",{src:`${q.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),g.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!$e.length&&g.createElement(k.Z,null)))},Ie={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"},Je=E(25690),vt=({dataSource:Ue=[],value:$e,onChange:ut,className:At,style:Ge={},tabBarExtraContent:w})=>h.createElement("div",{className:re()(Ie.tabs,At),style:Ge},h.createElement("div",{className:Ie.tabsWrap},Ue.map((ae,A)=>!(ae!=null&&ae.hide)&&h.createElement("aside",{className:Ie.tab,onClick:()=>{ut(ae.id),ae.link&&Je.history.push(ae.link)},key:A},h.createElement("div",{className:$e===ae.id?Ie.active:""},ae.name),(ae==null?void 0:ae.resetCount)==null&&(ae==null?void 0:ae.total)!==void 0&&h.createElement("span",null,"\uFF08",ae==null?void 0:ae.total,"\uFF09"),(ae==null?void 0:ae.resetCount)!==void 0&&(ae==null?void 0:ae.total)!==void 0&&h.createElement(X.Z,{title:(ae==null?void 0:ae.tip)!=null?ae==null?void 0:ae.tip:""},h.createElement("span",{style:{color:"#9096A3"}},"\uFF08",h.createElement("span",{style:{color:"#000"}},ae==null?void 0:ae.resetCount),"/",h.createElement("span",null,ae==null?void 0:ae.total),"\uFF09"))))),h.createElement("div",{className:Ie.tabBar},w)),Bt=({className:Ue,style:$e={},children:ut})=>h.createElement("div",{className:re()(Ue),style:$e},ut),we={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"},Yt=E(75727),_t=E(93041);const Xt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var tt=({sortValue:Ue,dropValue:$e,className:ut,onSort:At,onDrop:Ge,dataSource:w=Xt})=>{var ae;return h.createElement("div",{className:re()(we.orderWrap,ut)},h.createElement(Yt.Z,{dropdownRender:()=>h.createElement(_t.default,null,w.map((A,Ze)=>h.createElement(_t.default.Item,{key:Ze,onClick:()=>Ge(A.id)},A.name)))},h.createElement("span",{className:we.orderTextWrap},(ae=w.find(A=>$e===A.id))==null?void 0:ae.name)),h.createElement("span",{className:we.orderIconWrap},h.createElement("span",{className:we.orderAsc},h.createElement("i",{className:Ue==="asc"?`iconfont icon-sanjiaoxing-up font12 ${we.cursorPointer} ${we.active}`:`iconfont icon-sanjiaoxing-up font12 ${we.cursorPointer}`,onClick:()=>At(Ue==="asc"?"desc":"asc")})),h.createElement("span",{className:we.orderDesc},h.createElement("i",{className:Ue==="desc"?`iconfont icon-sanjiaoxing-down font12 ${we.cursorPointer} ${we.active}`:`iconfont icon-sanjiaoxing-down font12 ${we.cursorPointer}`,onClick:()=>At(Ue==="asc"?"desc":"asc")}))))},Te={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"},pe=E(99571),N=Object.defineProperty,xe=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,P=(Ue,$e,ut)=>$e in Ue?N(Ue,$e,{enumerable:!0,configurable:!0,writable:!0,value:ut}):Ue[$e]=ut,ce=(Ue,$e)=>{for(var ut in $e||($e={}))Pe.call($e,ut)&&P(Ue,ut,$e[ut]);if(xe)for(var ut of xe($e))z.call($e,ut)&&P(Ue,ut,$e[ut]);return Ue},Ce=(Ue,$e)=>{var ut={};for(var At in Ue)Pe.call(Ue,At)&&$e.indexOf(At)<0&&(ut[At]=Ue[At]);if(Ue!=null&&xe)for(var At of xe(Ue))$e.indexOf(At)<0&&z.call(Ue,At)&&(ut[At]=Ue[At]);return ut},de=(Ue,$e,ut)=>new Promise((At,Ge)=>{var w=Ze=>{try{A(ut.next(Ze))}catch(Ee){Ge(Ee)}},ae=Ze=>{try{A(ut.throw(Ze))}catch(Ee){Ge(Ee)}},A=Ze=>Ze.done?At(Ze.value):Promise.resolve(Ze.value).then(w,ae);A((ut=ut.apply(Ue,$e)).next())}),he=Ue=>{var $e=Ue,{className:ut,style:At,children:Ge,loading:w=!1,openLoading:ae,onClick:A=()=>{},size:Ze="middle",shape:Ee="round"}=$e,Le=Ce($e,["className","style","children","loading","openLoading","onClick","size","shape"]);const[ze,Ve]=(0,h.useState)(!1);return h.createElement(pe.ZP,ce({onClick:(0,o.throttle)(it=>de(void 0,null,function*(){ae&&Ve(!0);try{yield A(it)}catch(Pt){console.log("error",Pt)}ae&&Ve(!1)}),2e3,{leading:!0,trailing:!1}),className:re()(Te.btn,Te[`${Ze}-${Ee}`],ut),style:At,size:Ze,shape:Ee,loading:ze||w},Le),Ge)},Oe={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:Ue,style:$e,children:ut=null,onClick:At,title:Ge})=>h.createElement("div",{className:re()(Oe.head,Ue),style:$e},h.createElement("span",{className:"primary-hover",onClick:At},h.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),h.createElement("b",{title:Ge},Ge),h.createElement("div",{className:Oe.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"},dt=({confirmShow:Ue=!0,confirmTitle:$e,confirmClick:ut,cancelShow:At=!0,cancelTitle:Ge,cancelClick:w,className:ae,style:A,confirmLoading:Ze=!1})=>h.createElement("div",{className:re()(Ye.btns,ae),style:A},Ue&&h.createElement(pe.ZP,{loading:Ze,onClick:ut,type:"primary",className:Ye.confirm},$e),At&&h.createElement(pe.ZP,{onClick:w,className:Ye.cancel},Ge)),ge={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"},at=({className:Ue,style:$e={},LeftContent:ut,children:At,RightContent:Ge})=>h.createElement("div",{className:re()(ge.fixedBottom,Ue),style:$e},h.createElement("div",{className:ge.wrap},h.createElement("div",{className:ge.left},ut),h.createElement("div",{className:ge.center},At),h.createElement("div",{className:ge.right},Ge))),et={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"},St=({className:Ue,style:$e={},dataSource:ut=[]})=>h.createElement("div",{className:re()(et.crumbs,Ue),style:$e},ut.map((At,Ge)=>Ge<ut.length-1?h.createElement(h.Fragment,{key:Ge},At.path||At.onClick?h.createElement("span",{className:et.hover,onClick:At!=null&&At.onClick?At.onClick:()=>Je.history.push(At.path)},At.name):h.createElement("span",null,At.name),h.createElement("span",null,"\xA0",">","\xA0")):h.createElement("span",{key:Ge,style:{color:"#5F6368"}},At.name))),Tt=E(11938),He=Object.defineProperty,Wt=Object.defineProperties,fn=Object.getOwnPropertyDescriptors,Rt=Object.getOwnPropertySymbols,qt=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,ke=(Ue,$e,ut)=>$e in Ue?He(Ue,$e,{enumerable:!0,configurable:!0,writable:!0,value:ut}):Ue[$e]=ut,Ne=(Ue,$e)=>{for(var ut in $e||($e={}))qt.call($e,ut)&&ke(Ue,ut,$e[ut]);if(Rt)for(var ut of Rt($e))Ke.call($e,ut)&&ke(Ue,ut,$e[ut]);return Ue},I=(Ue,$e)=>Wt(Ue,fn($e)),ee=(Ue,$e)=>{var ut={};for(var At in Ue)qt.call(Ue,At)&&$e.indexOf(At)<0&&(ut[At]=Ue[At]);if(Ue!=null&&Rt)for(var At of Rt(Ue))$e.indexOf(At)<0&&Ke.call(Ue,At)&&(ut[At]=Ue[At]);return ut};const{Countdown:fe}=Tt.default;var ye=Ue=>{var $e=Ue,{onChange:ut}=$e,At=ee($e,["onChange"]);const[Ge,w]=(0,h.useState)(null);(0,h.useEffect)(()=>{typeof Ge=="number"&&Ge>=0&&ut(Ge)},[Ge]);const ae=A=>{const Ze=Math.floor(A/1e3);w(Ze)};return h.createElement(fe,I(Ne({},At),{onChange:ae}))}},3447:function(Rn,Gt,E){"use strict";E.r(Gt),E.d(Gt,{default:function(){return Te}});var h=E(59301),le=E(25690),ne=E(76902),oe=E(61186),B=E.n(oe),d=E(75727),me=E(99571),re=E(6767),o=E(62957),y=E(93041),T=E(62673),m=E(77019),_=E(5269),b=E(82326),L=E(37568),K=E(20554),W=E(54172),$=E(84022),O=E(25399),U=E(346),R=E(38986),x={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"},V=E(48790),X=Object.defineProperty,H=Object.getOwnPropertySymbols,q=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ie=(pe,N,xe)=>N in pe?X(pe,N,{enumerable:!0,configurable:!0,writable:!0,value:xe}):pe[N]=xe,Fe=(pe,N)=>{for(var xe in N||(N={}))q.call(N,xe)&&ie(pe,xe,N[xe]);if(H)for(var xe of H(N))se.call(N,xe)&&ie(pe,xe,N[xe]);return pe};const Z=pe=>React.createElement("svg",Fe({width:14,height:10,xmlns:"http://www.w3.org/2000/svg"},pe),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 k="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI0MxRTJGRiIgZmlsbC1ydWxlPSJub256ZXJvIj48cGF0aCBkPSJNNy44MzYgOS45MTNIMi4yOTdjLS41OTMuMDcyLTEuMTg1LS4xNDUtMS42MjQtLjU5NmEyLjQ0NCAyLjQ0NCAwIDAgMS0uNjY2LTEuNzU5di01LjE3QTIuNDcgMi40NyAwIDAgMSAuNjc5LjYzNmMuNDM3LS40NSAxLjAyNS0uNjcxIDEuNjE3LS42MDhoNS41OTJjLjU4OS0uMDcyIDEuMTc2LjE0OCAxLjYwNy42MDMuNDMuNDU0LjY2MSAxLjA5Ni42MyAxLjc1N3Y1LjE3YTIuNDQzIDIuNDQzIDAgMCAxLS42NjQgMS43NTljLS40NC40NTEtMS4wMzIuNjY4LTEuNjI1LjU5NlpNMi4yOTcgMS40NGMtLjQ2OCAwLTEuMDI2LjE2NS0xLjAyNi45NDh2NS4xN2MwIC4yNTggMCAuOTQyIDEuMDI2Ljk0Mmg1LjU0YzEuMDI0IDAgMS4wMjQtLjY4NCAxLjAyNC0uOTQydi01LjE3YzAtLjQ3LS4xMTYtLjk0OC0uOTczLS45NDhoLTUuNTlaIi8+PHBhdGggZD0iTTEyLjQ3NiA5LjIwN2ExLjc4MSAxLjc4MSAwIDAgMS0xLjA0My0uMzgyTDguODYgNi45M1YzLjAwM2wyLjU3NS0xLjg5MWExLjc4IDEuNzggMCAwIDEgMS4wNC0uMzc5Y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KEYqTuPDin6EeUdSvz17TGC0ngl8FLitcIJQfvN93jni+/5DShqljLWKNdn4cBjG9toQ4Bu8XIYxR+o5P3lZTJtyYQkN4Havqd5cHSERmkxLqC9Q6c1ZSDGqoiFSMVI0BKnNC6tmcEur9B68WXetZJODBTOUI6OUqZaYCueXfh+xdwXoNc+K2BMXkU+3R++k6vvu537O5bMO4x1mD27eWL+OP9pHuEb/gJAEGeu46bJbVx78BCvGY1VGlszlB98zvtvf8pPKQvpbgvKEbCD2mhgAJ+j6w7T7pAhybVg5LknuWvqEnYWJZkLmNKSTV/Fnssv5ZbWHN8e+oFvUwZ238CNjSlu/OU3vpr9HwczQ6klNs8o537n+3+9yicuskKgqNco2wmwwA1SB30BWi3UbImaqqPbEaMyMueoOcHIP5/iESGZtJYsiU8QzmP+cS23JsGtYzQTQGM7MwnouyN8mSxkFGXKgjGUMTD//Cu8pSMrWtPxJWVdYOfauOkM32jgNyrkMwaIgjwEakZTe/FZHneeuvVktiRLLdV7jA/o3ddzcxK+urU+RvPQj3ytUg2oqnWajDKBaEV737953To6UtIRkeLCATzD4y6eI4Cgve+lCwgwdBbqdqGhLeLz2UYntnLll00OXNA2unrWHdYLWeogezdjK5Fa6J3Vhu6stxJJfHc3OpSbuV6A7mFmKLfTqzYa1gPNqbIwVEfKLkBa09Z6KA/164p5dcgwVGOV9VlIj4dusHUqiNSZhma02J0uDPVwt3dEMrTj9V6IXlt1nx+aPzjWg5wK5lTv6X2u38iw3+e7r/edjQ76RZv1vosAmxX5ixba7Mj/bTLwJ/OqjXyXcOSkAAAAAElFTkSuQmCC",vt=E(22072),Mt=Object.defineProperty,Bt=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,_t=(pe,N,xe)=>N in pe?Mt(pe,N,{enumerable:!0,configurable:!0,writable:!0,value:xe}):pe[N]=xe,Xt=(pe,N)=>{for(var xe in N||(N={}))we.call(N,xe)&&_t(pe,xe,N[xe]);if(Bt)for(var xe of Bt(N))Yt.call(N,xe)&&_t(pe,xe,N[xe]);return pe},lt=(pe,N,xe)=>new Promise((Pe,z)=>{var P=de=>{try{Ce(xe.next(de))}catch(Q){z(Q)}},ce=de=>{try{Ce(xe.throw(de))}catch(Q){z(Q)}},Ce=de=>de.done?Pe(de.value):Promise.resolve(de.value).then(P,ce);Ce((xe=xe.apply(pe,N)).next())});const tt=({globalSetting:pe,user:N,dispatch:xe})=>{var Pe,z,P,ce,Ce,de,Q,he,Oe,Re,qe,Ye,Et,dt,ge,Ae;const[at]=(0,le.useSearchParams)(),et=(0,le.useLocation)(),Qe={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:at.get("tab")||"public"},[St,Tt]=(0,h.useState)(0),[He,Wt]=(0,h.useState)(0),[fn,Rt]=(0,h.useState)(0),[qt,Ke]=(0,h.useState)([]),[ke,Ne]=(0,h.useState)([]),[I,ee]=(0,h.useState)({}),[fe,ve]=(0,h.useState)(!1),[ye,Ue]=(0,h.useState)([]),[$e,ut]=(0,h.useState)(!0),[At,Ge]=(0,h.useState)(null);let[w,ae]=(0,h.useState)(Qe);const A=(0,h.useRef)(null),Ze=(0,h.useRef)(null),[Ee,Le]=(0,h.useState)([]),ze=(0,h.useMemo)(()=>["not_reviewed","under_review","review_finished"].includes(w.filter),[w.filter]),[Ve,it]=(0,h.useState)(!1),[Pt,Kt]=(0,h.useState)(!1),[mn,De]=(0,h.useState)(""),[Se,nt]=(0,h.useState)([]),[st,Ct]=(0,h.useState)(!1),[ft,Ot]=(0,h.useState)([]),[Zt,tn]=(0,h.useState)(!1),[Nt,un]=(0,h.useState)(!1),gn=N.userInfo.identity==="teacher",ln=(je,Ft,on)=>lt(void 0,null,function*(){var pn,Un,_e,ct;je.persist(),(Un=(pn=je==null?void 0:je.target)==null?void 0:pn.style)!=null&&Un.pointerEvents&&(je.target.style.pointerEvents="none");const We=yield(0,R.ZP)(`/api/practices/${Ft.identifier}/start`,{method:"get"});if((We==null?void 0:We.status)===0){if(on){(0,Je.xg)(`/problems/${We==null?void 0:We.identifier}/oj/${Ft==null?void 0:Ft.identifier}?tab=3`);return}(0,Je.xg)(`/problems/${We==null?void 0:We.identifier}/oj/${Ft==null?void 0:Ft.identifier}`)}(ct=(_e=je==null?void 0:je.target)==null?void 0:_e.style)!=null&&ct.pointerEvents&&(je.target.style.pointerEvents="auto")});(0,h.useEffect)(()=>{let je=B()().add(0,"days").unix(),Ft=localStorage.getItem("problemsclose");if(!Ft){Ct(!0);return}je>parseInt(Ft)&&Ct(!0)},[]);const jt=["\u672A\u53D1\u5E03","\u5DF2\u516C\u5F00","\u672A\u5BA1\u6838","\u5BA1\u6838\u4E2D","\u672A\u516C\u5F00","\u672A\u901A\u8FC7"],Be=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:(je,Ft)=>h.createElement("div",{className:x.titleWarp},(w==null?void 0:w.filter)==="mine"?h.createElement("span",{className:x.tag},jt[Ft.practice_status]):null,h.createElement("span",{title:je,className:x.hov,onClick:on=>ln(on,Ft)},je))},(w==null?void 0:w.filter)==="public"?{title:"\u9898\u89E3",dataIndex:"solution_count",width:100,sorter:!0,render:(je,Ft)=>h.createElement("span",{style:{display:"flex"}},h.createElement("span",{onClick:on=>ln(on,Ft,!0),className:"current"},je),(Ft==null?void 0:Ft.has_video_solution)&&h.createElement("img",{style:{objectFit:"contain"},className:"ml5",src:k}))}:null,(w==null?void 0:w.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:je=>h.createElement(h.Fragment,null,je===1&&h.createElement("span",{className:x["btn-style-1"]},"\u7B80\u5355"),je===2&&h.createElement("span",{className:x["btn-style-2"]},"\u9002\u4E2D"),je===3&&h.createElement("span",{className:x["btn-style-3"]},"\u56F0\u96BE"))},(w==null?void 0:w.filter)==="public"?{title:"\u4EBA\u6570",dataIndex:"user_count",align:"center",sorter:!0,width:80}:null,(w==null?void 0:w.filter)==="public"?{title:"\u72B6\u6001",dataIndex:"status",width:94,render:(je,Ft)=>(0,V.bg)()?h.createElement(h.Fragment,null,At===(Ft==null?void 0:Ft.identifier)?h.createElement("span",{className:x.hovBtn,onClick:on=>ln(on,Ft)},"\u5F00\u542F\u5237\u9898"):h.createElement(h.Fragment,null,je===0&&h.createElement("span",{className:x.statusText},"\u672A\u5F00\u542F"),je===1&&h.createElement("span",{className:x.statusText},"\u8FDB\u884C\u4E2D"),je===2&&h.createElement("span",{className:x.statusText},"\u5DF2\u901A\u8FC7"))):"-"}:null,(w==null?void 0:w.filter)!=="public"?{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_disciplines_name",ellipsis:!0,width:200,render:je=>h.createElement("span",null,je==null?void 0:je.join("\u3001"))}:null,(w==null?void 0:w.filter)==="all"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:null,(w==null?void 0:w.filter)!=="public"?{title:"\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",sorter:!0,width:180}:null,(0,V.Ny)()?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:(je,Ft)=>h.createElement(d.Z,{className:"ml10",dropdownRender:()=>Wn(Ft==null?void 0:Ft.identifier,Ft)},h.createElement("span",{style:{cursor:"default"},onClick:on=>on.preventDefault()},h.createElement("span",null,"\u66F4\u591A"),h.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"})))}:fe&&(w==null?void 0:w.filter)!=="public"?{title:"\u64CD\u4F5C",dataIndex:"action",key:"action",align:"right",width:80,render:(je,Ft)=>Ft!=null&&Ft.is_self&&(Ft==null?void 0:Ft.practice_status)!==1?h.createElement(d.Z,{className:"ml10",dropdownRender:()=>Mn(Ft==null?void 0:Ft.identifier,Ft)},h.createElement("span",{style:{cursor:"default"},onClick:on=>on.preventDefault()},h.createElement("span",null,"\u66F4\u591A"),h.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"c-grey-c iconfont icon-xiajiantou1"}))):"-"}:null].filter(je=>!!je),ot=[{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:(je,Ft)=>h.createElement("span",{className:x.hov,onClick:on=>ln(on,Ft)},je)},{title:"\u96BE\u5EA6",dataIndex:"difficulty",sorter:!0,align:"left",width:90,render:je=>h.createElement(h.Fragment,null,je===1&&h.createElement("span",{className:x["btn-style-1"]},"\u7B80\u5355"),je===2&&h.createElement("span",{className:x["btn-style-2"]},"\u9002\u4E2D"),je===3&&h.createElement("span",{className:x["btn-style-3"]},"\u56F0\u96BE"))},(w==null?void 0:w.filter)==="not_reviewed"?{title:"\u521B\u5EFA\u8005",dataIndex:"creator",ellipsis:!0,width:100}:{title:"\u5BA1\u6838\u8005",dataIndex:"reviewer",ellipsis:!0,width:100},(w==null?void 0:w.filter)==="not_reviewed"?{title:"\u53D1\u5E03\u65F6\u95F4",dataIndex:"submit_time",width:180}:null,(w==null?void 0:w.filter)==="under_review"?{title:"\u5F00\u59CB\u5BA1\u6838\u65F6\u95F4",dataIndex:"start_review_time",width:180}:null,(w==null?void 0:w.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:(je,Ft)=>{let on;switch(w==null?void 0:w.filter){case"under_review":on=h.createElement("div",{style:{display:"flex"}},h.createElement(me.ZP,{type:"link",size:"small",onClick:pn=>ln(pn,Ft)},"\u5BA1\u6838"),h.createElement(me.ZP,{type:"link",style:{color:"#666"},size:"small",onClick:pn=>rn({e:pn,record:Ft,op:"release"})},"\u79FB\u51FA"));break;case"review_finished":on=h.createElement(me.ZP,{type:"link",size:"small",onClick:pn=>{it(!0),gt(Ft)}},"\u5BA1\u6838\u8BB0\u5F55");break;default:on=h.createElement(me.ZP,{type:"link",block:!0,onClick:pn=>rn({e:pn,record:Ft,op:"claim"})},"\u5F00\u59CB\u5BA1\u6838");break}return on}}].filter(je=>!!je),gt=je=>lt(void 0,null,function*(){nt([]);const Ft=yield(0,R.ZP)(`/api/practices/${je.identifier}/review_list`,{method:"get"});nt(Ft==null?void 0:Ft.reviews_list)}),wt=[{title:"\u5BA1\u6838\u65F6\u95F4",dataIndex:"review_time",key:"review_time",render:(je,Ft)=>h.createElement("span",null,B()(je).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:(je,Ft)=>je==="5"||je===5?h.createElement("div",{style:{display:"flex",alignItems:"center"}},h.createElement("div",{style:{color:"#333333",marginRight:"5px",whiteSpace:"nowrap"}},"\u672A\u901A\u8FC7"),h.createElement("div",{style:{color:"#0152d9",whiteSpace:"nowrap",cursor:"pointer"},onClick:()=>{De(Ft.description),Kt(!0)}},"\u67E5\u770B\u539F\u56E0")):h.createElement("span",null,"\u5DF2\u901A\u8FC7")}];(0,h.useEffect)(()=>{En(),$t(w)},[]),(0,h.useEffect)(()=>{var je;qt.length!==0&&((je=A==null?void 0:A.current)==null?void 0:je.clientHeight)>98&&Tt(1)},[qt]),(0,h.useEffect)(()=>{var je;ke.length!==0&&((je=Ze==null?void 0:Ze.current)==null?void 0:je.clientHeight)>98&&Wt(1)},[ke]),(0,h.useEffect)(()=>(xe({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),()=>{xe({type:"globalSetting/onlyShowBackTopToggle",payload:!0})}),[]),(0,h.useEffect)(()=>{var je;(document.title==="\u4EBA\u5DE5\u667A\u80FD\u79D1\u7814\u670D\u52A1\u5E73\u53F0"||document.title==="\u9996\u9875"||document.title==="\u5B9E\u8DF5\u6559\u5B66\u5E73\u53F0"||(je=document.title)!=null&&je.includes("img"))&&(document.title="\u5728\u7EBF\u5237\u9898")},[pe]),(0,h.useEffect)(()=>(document.body.setAttribute("data-custom","initial"),()=>{document.body.removeAttribute("data-custom")}),[]);const $t=je=>lt(void 0,null,function*(){var Ft,on;je.search=encodeURIComponent(je.search);const pn=Ie().cloneDeep(je);pn.tag_discipline_id=(Ft=pn.tag_discipline_id)!=null&&Ft.includes(-1)?[]:pn.tag_discipline_id,pn.source_discipline_id=(on=pn.source_discipline_id)!=null&&on.includes(-1)?[]:pn.source_discipline_id,console.log(pn,"sendData"),ut(!0),Ue([]);const Un=yield(0,R.ZP)("/api/practices.json",{method:"get",params:pn});Le([]),ut(!1),Rt(Un==null?void 0:Un.practices_count),Ue(Un==null?void 0:Un.practices_list),Ot((Un==null?void 0:Un.recommend_subjects)||[])}),rn=je=>lt(void 0,[je],function*({op:Ft,description:on,record:pn,e:Un}){const _e={op:Ft,description:on};ut(!0);const ct=yield(0,R.ZP)(`/api/practices/${pn.identifier}/review`,{method:"post",body:_e});ut(!1),Ft==="claim"&&(ct.status===0||ct.status==="0")&&ln(Un,pn),$t(w)}),cn=je=>lt(void 0,null,function*(){ut(!0);const Ft=yield(0,R.ZP)(`/api/practices/${je.identifier}/publish`,{method:"post"});ut(!1),$t(w)}),En=()=>lt(void 0,null,function*(){var je;const Ft=yield(0,R.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice",position:"index"}}),on=yield(0,R.ZP)("/api/tag_disciplines.json",{method:"get",params:{target:"practice_source",position:"index"}}),pn=yield(0,R.ZP)("/api/mypractices/rank_list",{method:"get",params:{}});if(Ft!=null&&Ft.tag_disciplines){const Un=[{id:-1,name:"\u5168\u90E8",count:Ft==null?void 0:Ft.totalCount},...Ft==null?void 0:Ft.tag_disciplines];Ke(Un)}if(on!=null&&on.tag_disciplines){const Un=[{id:-1,name:"\u5168\u90E8",count:on==null?void 0:on.totalCount},...on==null?void 0:on.tag_disciplines];Ne(Un)}ee(pn||{}),ve((je=pn==null?void 0:pn.my_record)==null?void 0:je.outsource)}),wn=(je,Ft)=>{var on;w.page=1;let pn=w[`${Ft}_discipline_id`];(on=w[`${Ft}_discipline_id`])!=null&&on.includes(je)?pn=pn.filter(Un=>Un!==je):pn.push(je),je===-1?pn=[-1]:(pn=pn.filter(Un=>Un!==-1),pn.length||(pn=[-1])),w[`${Ft}_discipline_id`]=pn,ae(Xt({},w)),$t(w)},Pn=(je,Ft)=>{w.page=1,w[Ft]=typeof je=="number"?je:null,ae(Xt({},w)),$t(w)},ar=je=>{w.page=1,w.save_search=je,ae(Xt({},w))},Dn=(je,Ft,on)=>{w.page=je==null?void 0:je.current,w.per_page=je==null?void 0:je.pageSize,on!=null&&on.order?(w.sort_by=on==null?void 0:on.field,w.sort_direction=(on==null?void 0:on.order)==="ascend"?"asc":"desc"):(w.sort_by=null,w.sort_direction=null),ae(Xt({},w)),$t(w)},In=je=>{w.page=1,w.filter=je,w.status=null,w.practice_status=null,ae(Xt({},w)),$t(w)},Nn=(je,Ft)=>{if((Ft==null?void 0:Ft.length)===0){re.ZP.warning("\u8BF7\u9009\u62E9\u8BD5\u9898");return}const on=()=>lt(void 0,null,function*(){const pn=yield(0,R.ZP)("/api/practices/batch_op.json",{method:"post",body:{identifier:Ft,op:je}});if((pn==null?void 0:pn.status)===0){const Un=ye.length===1&&w.page!==1?w.page-1:w.page;w.page=Un,ae(Xt({},w)),$t(w)}});if(je===-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()},zn=h.createElement(y.default,null,(w==null?void 0:w.filter)==="public"?h.createElement(y.default.Item,{onClick:()=>Nn(0,Ee)},"\u6279\u91CF\u79FB\u51FA\u516C\u5171"):[h.createElement(y.default.Item,{key:2,onClick:()=>Nn(1,Ee)},"\u6279\u91CF\u79FB\u5165\u516C\u5171"),h.createElement(y.default.Item,{key:1,onClick:()=>Nn(0,Ee)},"\u6279\u91CF\u79FB\u51FA\u516C\u5171")],(0,V.Ny)()&&h.createElement(y.default.Item,{onClick:()=>yn()},"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93"),(w==null?void 0:w.filter)!=="public"&&h.createElement(y.default.Item,{onClick:()=>Nn(-1,Ee)},"\u6279\u91CF\u5220\u9664")),Wn=(je,Ft)=>h.createElement(y.default,null,(Ft==null?void 0:Ft.practice_status)===1?h.createElement(y.default.Item,{onClick:()=>Nn(0,[je])},"\u79FB\u51FA\u516C\u5171"):h.createElement(y.default.Item,{onClick:()=>Nn(1,[je])},"\u79FB\u5165\u516C\u5171"),(w==null?void 0:w.filter)==="mine"?h.createElement(y.default.Item,{onClick:()=>cn(Ft),disabled:![0,4,5].includes(Ft.practice_status)},[0,4,5].includes(Ft.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"):null,h.createElement(y.default.Item,{onClick:()=>(0,Je.xg)(`/problems/${je}/ojedit`)},"\u7F16\u8F91"),(w==null?void 0:w.filter)!=="public"&&h.createElement(y.default.Item,{onClick:()=>Nn(-1,[je])},"\u5220\u9664")),Mn=(je,Ft)=>h.createElement(y.default,null,h.createElement(y.default.Item,{onClick:()=>cn(Ft),disabled:![0,4,5].includes(Ft.practice_status)},[0,4,5].includes(Ft.practice_status)?"\u53D1\u5E03\u5BA1\u6838":"\u5DF2\u53D1\u5E03\u5BA1\u6838"),h.createElement(y.default.Item,{onClick:()=>(0,Je.xg)(`/problems/${je}/ojedit`)},"\u7F16\u8F91"),h.createElement(y.default.Item,{onClick:()=>Nn(-1,[je])},"\u5220\u9664")),On=je=>{Le(je)},yn=()=>{if(!Ee.length){re.ZP.warning("\u8BF7\u9009\u62E9\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u7684\u7F16\u7A0B\u5237\u9898");return}let je=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:h.createElement("div",null,h.createElement("p",{className:"mt20"},"\u5DF2\u9009",h.createElement("span",{className:"c-light-primary"},Ee.length),"\u4E2D\u4E2A\u7F16\u7A0B\u5237\u9898\u53D1\u9001\u81F3\u8BD5\u9898\u5E93\u6210\u4E3A\u7F16\u7A0B\u9898"),h.createElement("div",null,"\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898\u7684\u8BED\u8A00\uFF1A"),h.createElement(T.default.Group,{className:"mt3",onChange:Ft=>{je=Ft,document.getElementById("send-to-modal").style.display="none"}},h.createElement(T.default,{value:"c"},"C\u8BED\u8A00"),h.createElement(T.default,{value:"c++"},"C++\u8BED\u8A00"),h.createElement(T.default,{value:"java"},"Java\u8BED\u8A00"),h.createElement(T.default,{value:"python"},"Python\u8BED\u8A00")),h.createElement("div",{id:"send-to-modal",style:{color:"#E30000",display:"none"}},"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00")),onOk:()=>lt(void 0,null,function*(){if(!(je!=null&&je.length))return document.getElementById("send-to-modal").style.display="block",Promise.reject();const Ft=yield(0,R.ZP)("/api/practices/send_to_item_bank.json",{method:"post",body:{identifiers:Ee,language:je}});(Ft==null?void 0:Ft.status)===0&&re.ZP.success("\u53D1\u9001\u6210\u529F")})})},xn={selectedRowKeys:Ee,columnWidth:40,onChange:On};return h.createElement("section",{className:x.wrap},h.createElement(M.jL,{img:j,title:"\u7F16\u7A0B\u5237\u9898",sunTitle:"\u5FEB\u901F\u63D0\u9AD8\u7F16\u7A0B\u80FD\u529B",bannerExtraContent:h.createElement(d.Z,{dropdownRender:()=>h.createElement(y.default,null,h.createElement(y.default.Item,{key:1,onClick:()=>{le.history.push("/problems/add")}},"\u65B0\u5EFA\u9898\u76EE"),h.createElement(y.default.Item,{key:2,onClick:()=>{le.history.push("/problems/batchAdd")}},"\u6279\u91CF\u5BFC\u5165\u9898\u76EE"))},h.createElement("div",{className:x.addQuestion,style:{visibility:(0,V.Ny)()||fe?"visible":"hidden"}},h.createElement("span",null,"\u65B0\u5EFA\u9898\u76EE")))}),h.createElement("div",{className:x.content},h.createElement("div",{className:x.left},h.createElement(m.Z,{className:`${x.filterPoint} mb10`,align:"top"},h.createElement(_.Z,{className:x.filterType},"\u77E5\u8BC6\u70B9"),h.createElement(_.Z,{className:x.btnWarp,ref:A,style:St>0?{height:St===1?76:"auto"}:{}},qt==null?void 0:qt.map(je=>{var Ft;return h.createElement("div",{onClick:()=>wn(je.id,"tag"),key:je.id,className:(Ft=w==null?void 0:w.tag_discipline_id)!=null&&Ft.includes(je.id)?`${x.btn} ${x.btnActive}`:x.btn},h.createElement("span",{title:je.name},je.name),h.createElement("span",{className:x.count,style:{display:je.count?"block":"none"}},je.count))})),!!St&&h.createElement(_.Z,{className:x.fold},St===1?h.createElement("div",{onClick:()=>Tt(2),className:x.action},"\u5C55\u5F00",h.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):h.createElement("div",{onClick:()=>Tt(1),className:x.action},"\u6536\u8D77",h.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"})))),!!ke.length&&h.createElement(m.Z,{className:x.filterPoint,align:"top",style:{marginBottom:22}},h.createElement(_.Z,{className:x.filterType},"\u6765\u6E90"),h.createElement(_.Z,{className:x.btnWarp,ref:Ze,style:He>0?{height:He===1?76:"auto"}:{}},ke==null?void 0:ke.map(je=>{var Ft;return h.createElement("div",{onClick:()=>wn(je.id,"source"),key:je.id,className:(Ft=w==null?void 0:w.source_discipline_id)!=null&&Ft.includes(je.id)?`${x.btn} ${x.btnActive}`:x.btn},h.createElement("span",{title:je.name},je.name),h.createElement("span",{className:x.count},je.count))}),!!He&&h.createElement(_.Z,{className:x.fold},He===1?h.createElement("div",{onClick:()=>Wt(2),className:x.action},"\u5C55\u5F00",h.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-zhankai4"})):h.createElement("div",{onClick:()=>Wt(1),className:x.action},"\u6536\u8D77",h.createElement("i",{style:{transform:"scale(0.5)"},className:"iconfont icon-shouqi3"}))))),h.createElement("div",{className:x.control},h.createElement(b.default,{suffixIcon:h.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u96BE\u5EA6",value:w==null?void 0:w.difficulty,onChange:je=>Pn(je,"difficulty")},h.createElement(b.default.Option,{value:1},"\u7B80\u5355"),h.createElement(b.default.Option,{value:2},"\u9002\u4E2D"),h.createElement(b.default.Option,{value:3},"\u56F0\u96BE")),(0,V.bg)()&&w.filter==="public"&&h.createElement(b.default,{suffixIcon:h.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:w==null?void 0:w.status,onChange:je=>Pn(je,"status")},h.createElement(b.default.Option,{value:0},"\u672A\u5F00\u542F"),h.createElement(b.default.Option,{value:1},"\u8FDB\u884C\u4E2D"),h.createElement(b.default.Option,{value:2},"\u5DF2\u901A\u8FC7")),(0,V.bg)()&&w.filter==="mine"&&h.createElement(b.default,{suffixIcon:h.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:w==null?void 0:w.practice_status,onChange:je=>Pn(je,"practice_status")},h.createElement(b.default.Option,{value:0},"\u672A\u53D1\u5E03"),h.createElement(b.default.Option,{value:1},"\u5DF2\u516C\u5F00"),h.createElement(b.default.Option,{value:2},"\u672A\u5BA1\u6838"),h.createElement(b.default.Option,{value:3},"\u5BA1\u6838\u4E2D"),h.createElement(b.default.Option,{value:4},"\u672A\u516C\u5F00"),h.createElement(b.default.Option,{value:5},"\u672A\u901A\u8FC7")),(0,V.bg)()&&w.filter==="all"&&h.createElement(b.default,{suffixIcon:h.createElement("i",{className:"iconfont icon-a-bianzu11"}),allowClear:!0,placeholder:"\u72B6\u6001",value:w==null?void 0:w.practice_status,onChange:je=>Pn(je,"practice_status")},h.createElement(b.default.Option,{value:0},"\u672A\u53D1\u5E03"),h.createElement(b.default.Option,{value:1},"\u5DF2\u516C\u5F00"),h.createElement(b.default.Option,{value:2},"\u672A\u5BA1\u6838"),h.createElement(b.default.Option,{value:3},"\u5BA1\u6838\u4E2D"),h.createElement(b.default.Option,{value:4},"\u672A\u516C\u5F00"),h.createElement(b.default.Option,{value:5},"\u672A\u901A\u8FC7")),h.createElement(L.default.Search,{className:x.search,size:"large",suffix:h.createElement("i",{className:`iconfont icon-sousuo9 font14 ${x.searchIcon}`,onClick:()=>{w.page=1,w.search=w.save_search,ae(Xt({},w)),w.save_search&&(0,vt.tk)({name:w.save_search,copywriting:w.save_search,position:"Practice"}),$t(w)}}),placeholder:(0,V.Ny)()?"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u3001\u521B\u5EFA\u8005\u641C\u7D22":"\u8BF7\u8F93\u5165\u9898\u76EE\u540D\u79F0\u641C\u7D22",value:w==null?void 0:w.save_search,onChange:je=>ar(je.target.value),onSearch:je=>{w.page=1,w.search=w.save_search,ae(Xt({},w)),je&&(0,vt.tk)({name:je,copywriting:je,position:"Practice"}),$t(w)}})),h.createElement("div",{className:x.table},h.createElement("div",{className:x.tabWarp,style:(0,V.Ny)()||fe?{}:{height:10,border:0}},(0,V.Ny)()?h.createElement(K.default,{className:x.tab,activeKey:ze?"not_reviewed":w.filter,onChange:In,tabBarExtraContent:!ze&&h.createElement(d.Z,{dropdownRender:()=>zn},h.createElement("span",{className:"ant-dropdown-link font14 current",onClick:je=>je.preventDefault()},"\u6279\u91CF\u64CD\u4F5C ",h.createElement("i",{style:{display:"inline-block",transform:"scale(0.6)",fontSize:12},className:"iconfont icon-xiajiantou1"})))},h.createElement(K.default.TabPane,{tab:"\u516C\u5171",key:"public"}),h.createElement(K.default.TabPane,{tab:"\u5168\u90E8",key:"all"}),h.createElement(K.default.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),h.createElement(K.default.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):fe?h.createElement(K.default,{className:x.tab,activeKey:ze?"not_reviewed":w.filter,onChange:In},h.createElement(K.default.TabPane,{tab:"\u516C\u5171",key:"public"}),h.createElement(K.default.TabPane,{tab:"\u6211\u521B\u5EFA\u7684",key:"mine"}),h.createElement(K.default.TabPane,{tab:"\u5BA1\u6838\u5217\u8868",key:"not_reviewed"})):null),ze?h.createElement("div",{className:x.tabWarp,style:(0,V.Ny)()||fe?{}:{height:10,border:0}},h.createElement(K.default,{className:x.tab,activeKey:w.filter,onChange:In},h.createElement(K.default.TabPane,{tab:"\u5F85\u5BA1\u6838",key:"not_reviewed"}),h.createElement(K.default.TabPane,{tab:"\u5BA1\u6838\u4E2D",key:"under_review"}),h.createElement(K.default.TabPane,{tab:"\u5DF2\u5BA1\u6838",key:"review_finished"}))):null,!((0,V.Ny)()||fe)&&gn&&h.createElement("div",{className:x.tabWarp2,style:{justifyContent:"end"}},Zt?h.createElement(m.Z,{align:"middle"},h.createElement(m.Z,{onClick:()=>un(!0),align:"middle",className:"current"},h.createElement("i",{className:"iconfont icon-yixuan mr10 c-light-primary font20"}),h.createElement("span",null,"\u5DF2\u9009",h.createElement("span",{className:"c-light-primary"},Ee.length),"\u4E2A")),h.createElement(me.ZP,{className:"mr20 ml40",ghost:!0,onClick:()=>{tn(!1),Le([])},type:"primary"},"\u53D6\u6D88"),h.createElement(me.ZP,{onClick:yn,ghost:!0,type:"primary"},"\u786E\u8BA4\u53D1\u9001")):h.createElement(me.ZP,{onClick:()=>tn(!0),type:"primary"},h.createElement("i",{className:"iconfont icon-fasong mr5"}),"\u53D1\u9001\u81F3\u8BD5\u9898\u5E93")),h.createElement(W.default,{rowSelection:(0,V.Ny)()||Zt?xn:void 0,className:x.customTable,dataSource:ye,bordered:!1,rowKey:je=>je.identifier,columns:ze?ot:Be,rowClassName:x.row,loading:$e,onRow:je=>({onMouseEnter:Ft=>{Ge(je==null?void 0:je.identifier)},onMouseLeave:Ft=>{Ge(null)}}),onChange:Dn,pagination:{pageSize:w.per_page,total:fn,current:w.page,showQuickJumper:!0,hideOnSinglePage:!0,showSizeChanger:!1,size:"default",position:["bottomCenter"],showTotal:je=>h.createElement("span",{className:"mr10"},"\u5171",h.createElement("span",{className:"c-orange"},je),"\u6761\u6570\u636E")}}))),h.createElement("div",{className:x.right},h.createElement("div",{className:x.statistics},h.createElement("img",{src:v,alt:""}),h.createElement("div",{className:x.title},"\u6211\u7684\u5237\u9898\u7EDF\u8BA1"),h.createElement(m.Z,{justify:"space-between"},h.createElement(_.Z,{className:x.statisticItem},h.createElement("div",{className:x.rate},(0,V.bg)()?((Pe=I==null?void 0:I.my_record)==null?void 0:Pe.passed_ratio)||0:"-"),h.createElement("div",{className:x.dataName},"\u901A\u8FC7\u7387(%)")),h.createElement(_.Z,{className:x.statisticItem},h.createElement("div",{className:x.rate},(0,V.bg)()?((z=I==null?void 0:I.my_record)==null?void 0:z.passed_count)||0:"-"),h.createElement("div",{className:x.dataName},"\u5237\u9898\u6570")),h.createElement(_.Z,{className:x.statisticItem},h.createElement("div",{className:x.rate},(0,V.bg)()?(ce=(P=I==null?void 0:I.my_record)==null?void 0:P.time_count)==null?void 0:ce.toFixed(2):"-"),h.createElement("div",{className:x.dataName},"\u7D2F\u8BA1\u65F6\u957F(h)")))),!!((Ce=I==null?void 0:I.rank_list)!=null&&Ce.length)&&h.createElement(h.Fragment,null,((de=N.userInfo)==null?void 0:de.user_id)!=2&&(0,V.JA)()&&((Q=pe==null?void 0:pe.setting)==null?void 0:Q.main_site)&&st&&(ft==null?void 0:ft.length)>0&&h.createElement("div",{className:x.problemsclose,style:{position:"relative"}},h.createElement($.Z,{autoplay:!0,pauseOnDotsHover:!0,style:{width:292,height:170,marginBottom:"10px",overflow:"hidden"}},ft==null?void 0:ft.map((je,Ft)=>h.createElement("div",{style:{display:"flex"},key:Ft},h.createElement("a",{href:`/paths/${je.identifier}`},h.createElement("img",{style:{width:"292px",height:"170px",borderRadius:"4px"},src:U.Z.IMG_SERVER+"/"+je.image_url}))))),h.createElement("img",{className:x.imgsrc,onClick:()=>{localStorage.setItem("problemsclose",B()().add(1,"days").unix()+""),Ct(!1)},src:Dt})),h.createElement("div",{className:x.sort},h.createElement("div",{className:x.rankHeader},h.createElement("img",{src:g,className:x.rankIcon})),!!((he=I==null?void 0:I.my_record)!=null&&he.rank)&&h.createElement("div",{className:`${x.myRecord} ${x.li}`},h.createElement("span",{className:`${x.recordPrefix} ${x.mine}`},"\u6211\u7684"),h.createElement("img",{className:x.avatar,src:U.Z.IMG_SERVER+"/images/"+((Oe=I==null?void 0:I.my_record)==null?void 0:Oe.image_url)}),h.createElement("span",{title:(Re=I==null?void 0:I.my_record)==null?void 0:Re.nickname,className:x.nickname},(qe=I==null?void 0:I.my_record)==null?void 0:qe.nickname),h.createElement("span",{className:x.myRank},((Ye=I==null?void 0:I.my_record)==null?void 0:Ye.rank)>999?"\u7B2C999+\u540D":`\u7B2C${(Et=I==null?void 0:I.my_record)==null?void 0:Et.rank}\u540D`),h.createElement("span",{className:x.questionNumber},(dt=I==null?void 0:I.my_record)==null?void 0:dt.passed_count,"\u9898")),(ge=I==null?void 0:I.rank_list)==null?void 0:ge.map((je,Ft)=>{let on=Ft+1;return Ft===0&&(on=F.Z),Ft===1&&(on=G.Z),Ft===2&&(on=J.Z),h.createElement("div",{className:x.li,key:Ft},typeof on=="number"?h.createElement("span",{className:x.recordPrefix},on):h.createElement("span",{className:x.recordPrefix},h.createElement("img",{src:on})),h.createElement("img",{className:x.avatar,src:U.Z.IMG_SERVER+"/images/"+(je==null?void 0:je.image_url)}),h.createElement("span",{title:je==null?void 0:je.nickname,className:x.nickname},je==null?void 0:je.nickname),h.createElement("span",{className:x.questionNumber},je.passed_count,"\u9898"))}))))),h.createElement(o.default,{title:"\u5BA1\u6838\u8BB0\u5F55",open:Ve,onOk:()=>{},onCancel:()=>{it(!1)},footer:null,closable:!0},h.createElement(W.default,{dataSource:Se,columns:wt})),h.createElement(o.default,{title:"\u672A\u901A\u8FC7\u539F\u56E0",open:Pt,onOk:()=>{},onCancel:()=>{Kt(!1)},footer:null,closable:!0},h.createElement(ne.Z,{value:mn})),h.createElement(o.default,{open:Nt,centered:!0,width:1e3,okText:"\u786E\u5B9A\u53D1\u9001",onCancel:()=>un(!1),cancelText:"\u8FD4\u56DE\u5217\u8868",onOk:()=>lt(void 0,null,function*(){un(!1),yn()}),title:"\u67E5\u770B\u5DF2\u9009"},h.createElement("div",{className:"font14 c-light-primary mb10"},"\u5DF2\u9009",Ee==null?void 0:Ee.length,"\u4E2A"),h.createElement("div",{style:{height:400,overflow:"auto"}},(Ae=ye==null?void 0:ye.filter(je=>Ee.includes(je.identifier)))==null?void 0:Ae.map((je,Ft)=>{var on,pn;return h.createElement("div",{key:Ft,className:x.sendModal},h.createElement("div",{className:x.li},h.createElement("p",null,je==null?void 0:je.name),h.createElement("div",{className:x.bottom},h.createElement("span",{className:"c-grey-333"},"\u7F16\u7A0B\u9898"),h.createElement("i",{className:x.line}),h.createElement("span",{className:"c-grey-333"},je.difficulty===1&&"\u7B80\u5355",je.difficulty===2&&"\u9002\u4E2D",je.difficulty===3&&"\u56F0\u96BE"),h.createElement("i",{className:x.line}),h.createElement("span",null,"\u521B\u5EFA\u8005\xA0",h.createElement(O.Z,{title:je==null?void 0:je.creator},h.createElement("span",{className:"c-grey-333"},((on=je==null?void 0:je.creator)==null?void 0:on.length)>6?((pn=je==null?void 0:je.creator)==null?void 0:pn.substr(0,3))+"...":je==null?void 0:je.creator))),h.createElement("i",{className:x.line}),h.createElement("span",{className:x.des},"\u66F4\u65B0\xA0",h.createElement("span",{className:"c-grey-333"},je==null?void 0:je.updated_at)))),h.createElement("div",{className:x.del,onClick:()=>{Le(Ee.filter(Un=>Un!==je.identifier))}},"\u5220\u9664"))}))))};var Te=(0,le.connect)(({user:pe,globalSetting:N})=>({user:pe,globalSetting:N}))(tt)},81428:function(Rn,Gt,E){"use strict";E.d(Gt,{AL:function(){return R},Iy:function(){return T},Qv:function(){return b},ez:function(){return U},jb:function(){return m}});var h=E(32834),le=E.n(h),ne=E(11690),oe=E.n(ne);let B=1;function d(q,se){const ie=q.match(/^(\s+)(?:```)/);if(ie===null)return se;const Fe=ie[1];return se.split(`
`).map(Z=>{const k=Z.match(/^\s+/);if(k===null)return Z;const[F]=k;return F.length>=Fe.length?Z.slice(Fe.length):Z}).join(`
`)}let me=[],re=["<ul>"];const o=new(le()).Renderer,y=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function T(){me.length=0,re=["<ul>"]}const m={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function _(q,se,ie,Fe){if(se>=q.length||q[se].level<=ie)return se;var Z=q[se];Fe.push("<li><a href='#"+B+Z.anchor+"'>"+Z.text+"</a>"),se++;var k=[];return se=_(q,se,Z.level,k),k.length>0&&(Fe.push("<ul>"),k.forEach(function(F){Fe.push(F)}),Fe.push("</ul>")),Fe.push("</li>"),se=_(q,se,ie,Fe),se}function b(){return _(me,0,0,re),re.push("</ul>"),re.join("")}const L={heading(q){const se=y.exec(q);if(B+=1,se)return{type:"heading",raw:se[0],depth:se[1].length,text:se[2]}},fences(q){const se=this.rules.block.fences.exec(q);if(se){const ie=se[0];let Fe=d(ie,se[3]||"");const Z=se[2]?se[2].trim():se[2];if(["latex","katex","math"].indexOf(Z)>=0){const k=$(),F=Fe;Fe=k,O[k]={type:"block",expression:F}}return{type:"code",raw:ie,lang:Z,text:Fe}}}},K=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let W=0;const $=()=>`__special_katext_id_${W++}__`;let O={};function U(){return O}function R(){W=0,O={}}function x(q){return q=q.replace(K,(se,ie)=>{const Fe=$();return O[Fe]={type:"inline",expression:ie},Fe}),q}const V=o.listitem;o.listitem=function(q){return V(x(q))};const X=o.paragraph;o.paragraph=function(q){return X(x(q))};const H=o.tablecell;o.tablecell=function(q,se){return H(x(q),se)},o.code=function(q,se,ie){const Fe=(se||"").match(/\S*/)[0];return Fe?["latex","katex","math"].indexOf(Fe)>=0?`<p class='editormd-tex'>${q}</p>`:`<pre class="prettyprint linenums"><code class="language-${se}">${ie?q:(0,ne.escape)(q,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(ie?q:(0,ne.escape)(q,!0))+"</code></pre>"},o.heading=function(q,se,ie){let Fe=this.options.headerPrefix+ie.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return me.push({anchor:Fe,level:se,text:q}),"<h"+se+' id="'+B+Fe+'">'+q+"</h"+se+">"},le().setOptions({silent:!0,gfm:!0,pedantic:!1}),le().use({tokenizer:L,renderer:o}),Gt.ZP=le()},84022:function(Rn,Gt,E){"use strict";E.d(Gt,{Z:function(){return At}});var h=E(59301),le=E(67711),ne=E(98506),oe=E(42573),B=E(58698),d=E(43011),me=E(87042),re=E(20456),o=E(74700),y=E(52873),T=E(26420),m=E(33346),_={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=_,L=E(53280),K=E(92310),W=E.n(K),$={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(w){return h.createElement("ul",{style:{display:"block"}},w)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(w){return h.createElement("button",null,w+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},O=$;function U(Ge,w,ae){return Math.max(w,Math.min(Ge,ae))}var R=function(w){var ae=["onTouchStart","onTouchMove","onWheel"];ae.includes(w._reactName)||w.preventDefault()},x=function(w){for(var ae=[],A=X(w),Ze=H(w),Ee=A;Ee<Ze;Ee++)w.lazyLoadedList.indexOf(Ee)<0&&ae.push(Ee);return ae},V=function(w){for(var ae=[],A=X(w),Ze=H(w),Ee=A;Ee<Ze;Ee++)ae.push(Ee);return ae},X=function(w){return w.currentSlide-q(w)},H=function(w){return w.currentSlide+se(w)},q=function(w){return w.centerMode?Math.floor(w.slidesToShow/2)+(parseInt(w.centerPadding)>0?1:0):0},se=function(w){return w.centerMode?Math.floor((w.slidesToShow-1)/2)+1+(parseInt(w.centerPadding)>0?1:0):w.slidesToShow},ie=function(w){return w&&w.offsetWidth||0},Fe=function(w){return w&&w.offsetHeight||0},Z=function(w){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,A,Ze,Ee,Le;return A=w.startX-w.curX,Ze=w.startY-w.curY,Ee=Math.atan2(Ze,A),Le=Math.round(Ee*180/Math.PI),Le<0&&(Le=360-Math.abs(Le)),Le<=45&&Le>=0||Le<=360&&Le>=315?"left":Le>=135&&Le<=225?"right":ae===!0?Le>=35&&Le<=135?"up":"down":"vertical"},k=function(w){var ae=!0;return w.infinite||(w.centerMode&&w.currentSlide>=w.slideCount-1||w.slideCount<=w.slidesToShow||w.currentSlide>=w.slideCount-w.slidesToShow)&&(ae=!1),ae},F=function(w,ae){var A={};return ae.forEach(function(Ze){return A[Ze]=w[Ze]}),A},G=function(w){var ae=h.Children.count(w.children),A=w.listRef,Ze=Math.ceil(ie(A)),Ee=w.trackRef&&w.trackRef.node,Le=Math.ceil(ie(Ee)),ze;if(w.vertical)ze=Ze;else{var Ve=w.centerMode&&parseInt(w.centerPadding)*2;typeof w.centerPadding=="string"&&w.centerPadding.slice(-1)==="%"&&(Ve*=Ze/100),ze=Math.ceil((Ze-Ve)/w.slidesToShow)}var it=A&&Fe(A.querySelector('[data-index="0"]')),Pt=it*w.slidesToShow,Kt=w.currentSlide===void 0?w.initialSlide:w.currentSlide;w.rtl&&w.currentSlide===void 0&&(Kt=ae-1-w.initialSlide);var mn=w.lazyLoadedList||[],De=x((0,ne.Z)((0,ne.Z)({},w),{},{currentSlide:Kt,lazyLoadedList:mn}));mn=mn.concat(De);var Se={slideCount:ae,slideWidth:ze,listWidth:Ze,trackWidth:Le,currentSlide:Kt,slideHeight:it,listHeight:Pt,lazyLoadedList:mn};return w.autoplaying===null&&w.autoplay&&(Se.autoplaying="playing"),Se},J=function(w){var ae=w.waitForAnimate,A=w.animating,Ze=w.fade,Ee=w.infinite,Le=w.index,ze=w.slideCount,Ve=w.lazyLoad,it=w.currentSlide,Pt=w.centerMode,Kt=w.slidesToScroll,mn=w.slidesToShow,De=w.useCSS,Se=w.lazyLoadedList;if(ae&&A)return{};var nt=Le,st,Ct,ft,Ot={},Zt={},tn=Ee?Le:U(Le,0,ze-1);if(Ze){if(!Ee&&(Le<0||Le>=ze))return{};Le<0?nt=Le+ze:Le>=ze&&(nt=Le-ze),Ve&&Se.indexOf(nt)<0&&(Se=Se.concat(nt)),Ot={animating:!0,currentSlide:nt,lazyLoadedList:Se,targetSlide:nt},Zt={animating:!1,targetSlide:nt}}else st=nt,nt<0?(st=nt+ze,Ee?ze%Kt!==0&&(st=ze-ze%Kt):st=0):!k(w)&&nt>it?nt=st=it:Pt&&nt>=ze?(nt=Ee?ze:ze-1,st=Ee?0:ze-1):nt>=ze&&(st=nt-ze,Ee?ze%Kt!==0&&(st=0):st=ze-mn),!Ee&&nt+mn>=ze&&(st=ze-mn),Ct=we((0,ne.Z)((0,ne.Z)({},w),{},{slideIndex:nt})),ft=we((0,ne.Z)((0,ne.Z)({},w),{},{slideIndex:st})),Ee||(Ct===ft&&(nt=st),Ct=ft),Ve&&(Se=Se.concat(x((0,ne.Z)((0,ne.Z)({},w),{},{currentSlide:nt})))),De?(Ot={animating:!0,currentSlide:st,trackStyle:Bt((0,ne.Z)((0,ne.Z)({},w),{},{left:Ct})),lazyLoadedList:Se,targetSlide:tn},Zt={animating:!1,currentSlide:st,trackStyle:Mt((0,ne.Z)((0,ne.Z)({},w),{},{left:ft})),swipeLeft:null,targetSlide:tn}):Ot={currentSlide:st,trackStyle:Mt((0,ne.Z)((0,ne.Z)({},w),{},{left:ft})),lazyLoadedList:Se,targetSlide:tn};return{state:Ot,nextState:Zt}},j=function(w,ae){var A,Ze,Ee,Le,ze,Ve=w.slidesToScroll,it=w.slidesToShow,Pt=w.slideCount,Kt=w.currentSlide,mn=w.targetSlide,De=w.lazyLoad,Se=w.infinite;if(Le=Pt%Ve!==0,A=Le?0:(Pt-Kt)%Ve,ae.message==="previous")Ee=A===0?Ve:it-A,ze=Kt-Ee,De&&!Se&&(Ze=Kt-Ee,ze=Ze===-1?Pt-1:Ze),Se||(ze=mn-Ve);else if(ae.message==="next")Ee=A===0?Ve:A,ze=Kt+Ee,De&&!Se&&(ze=(Kt+Ve)%Pt+A),Se||(ze=mn+Ve);else if(ae.message==="dots")ze=ae.index*ae.slidesToScroll;else if(ae.message==="children"){if(ze=ae.index,Se){var nt=lt((0,ne.Z)((0,ne.Z)({},w),{},{targetSlide:ze}));ze>ae.currentSlide&&nt==="left"?ze=ze-Pt:ze<ae.currentSlide&&nt==="right"&&(ze=ze+Pt)}}else ae.message==="index"&&(ze=Number(ae.index));return ze},v=function(w,ae,A){return w.target.tagName.match("TEXTAREA|INPUT|SELECT")||!ae?"":w.keyCode===37?A?"next":"previous":w.keyCode===39?A?"previous":"next":""},g=function(w,ae,A){return w.target.tagName==="IMG"&&R(w),!ae||!A&&w.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:w.touches?w.touches[0].pageX:w.clientX,startY:w.touches?w.touches[0].pageY:w.clientY,curX:w.touches?w.touches[0].pageX:w.clientX,curY:w.touches?w.touches[0].pageY:w.clientY}}},M=function(w,ae){var A=ae.scrolling,Ze=ae.animating,Ee=ae.vertical,Le=ae.swipeToSlide,ze=ae.verticalSwiping,Ve=ae.rtl,it=ae.currentSlide,Pt=ae.edgeFriction,Kt=ae.edgeDragged,mn=ae.onEdge,De=ae.swiped,Se=ae.swiping,nt=ae.slideCount,st=ae.slidesToScroll,Ct=ae.infinite,ft=ae.touchObject,Ot=ae.swipeEvent,Zt=ae.listHeight,tn=ae.listWidth;if(!A){if(Ze)return R(w);Ee&&Le&&ze&&R(w);var Nt,un={},gn=we(ae);ft.curX=w.touches?w.touches[0].pageX:w.clientX,ft.curY=w.touches?w.touches[0].pageY:w.clientY,ft.swipeLength=Math.round(Math.sqrt(Math.pow(ft.curX-ft.startX,2)));var ln=Math.round(Math.sqrt(Math.pow(ft.curY-ft.startY,2)));if(!ze&&!Se&&ln>10)return{scrolling:!0};ze&&(ft.swipeLength=ln);var jt=(Ve?-1:1)*(ft.curX>ft.startX?1:-1);ze&&(jt=ft.curY>ft.startY?1:-1);var Be=Math.ceil(nt/st),ot=Z(ae.touchObject,ze),gt=ft.swipeLength;return Ct||(it===0&&(ot==="right"||ot==="down")||it+1>=Be&&(ot==="left"||ot==="up")||!k(ae)&&(ot==="left"||ot==="up"))&&(gt=ft.swipeLength*Pt,Kt===!1&&mn&&(mn(ot),un.edgeDragged=!0)),!De&&Ot&&(Ot(ot),un.swiped=!0),Ee?Nt=gn+gt*(Zt/tn)*jt:Ve?Nt=gn-gt*jt:Nt=gn+gt*jt,ze&&(Nt=gn+gt*jt),un=(0,ne.Z)((0,ne.Z)({},un),{},{touchObject:ft,swipeLeft:Nt,trackStyle:Mt((0,ne.Z)((0,ne.Z)({},ae),{},{left:Nt}))}),Math.abs(ft.curX-ft.startX)<Math.abs(ft.curY-ft.startY)*.8||ft.swipeLength>10&&(un.swiping=!0,R(w)),un}},ue=function(w,ae){var A=ae.dragging,Ze=ae.swipe,Ee=ae.touchObject,Le=ae.listWidth,ze=ae.touchThreshold,Ve=ae.verticalSwiping,it=ae.listHeight,Pt=ae.swipeToSlide,Kt=ae.scrolling,mn=ae.onSwipe,De=ae.targetSlide,Se=ae.currentSlide,nt=ae.infinite;if(!A)return Ze&&R(w),{};var st=Ve?it/ze:Le/ze,Ct=Z(Ee,Ve),ft={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(Kt||!Ee.swipeLength)return ft;if(Ee.swipeLength>st){R(w),mn&&mn(Ct);var Ot,Zt,tn=nt?Se:De;switch(Ct){case"left":case"up":Zt=tn+Dt(ae),Ot=Pt?Je(ae,Zt):Zt,ft.currentDirection=0;break;case"right":case"down":Zt=tn-Dt(ae),Ot=Pt?Je(ae,Zt):Zt,ft.currentDirection=1;break;default:Ot=tn}ft.triggerSlideHandler=Ot}else{var Nt=we(ae);ft.trackStyle=Bt((0,ne.Z)((0,ne.Z)({},ae),{},{left:Nt}))}return ft},Ie=function(w){for(var ae=w.infinite?w.slideCount*2:w.slideCount,A=w.infinite?w.slidesToShow*-1:0,Ze=w.infinite?w.slidesToShow*-1:0,Ee=[];A<ae;)Ee.push(A),A=Ze+w.slidesToScroll,Ze+=Math.min(w.slidesToScroll,w.slidesToShow);return Ee},Je=function(w,ae){var A=Ie(w),Ze=0;if(ae>A[A.length-1])ae=A[A.length-1];else for(var Ee in A){if(ae<A[Ee]){ae=Ze;break}Ze=A[Ee]}return ae},Dt=function(w){var ae=w.centerMode?w.slideWidth*Math.floor(w.slidesToShow/2):0;if(w.swipeToSlide){var A,Ze=w.listRef,Ee=Ze.querySelectorAll&&Ze.querySelectorAll(".slick-slide")||[];if(Array.from(Ee).every(function(Ve){if(w.vertical){if(Ve.offsetTop+Fe(Ve)/2>w.swipeLeft*-1)return A=Ve,!1}else if(Ve.offsetLeft-ae+ie(Ve)/2>w.swipeLeft*-1)return A=Ve,!1;return!0}),!A)return 0;var Le=w.rtl===!0?w.slideCount-w.currentSlide:w.currentSlide,ze=Math.abs(A.dataset.index-Le)||1;return ze}else return w.slidesToScroll},vt=function(w,ae){return ae.reduce(function(A,Ze){return A&&w.hasOwnProperty(Ze)},!0)?null:console.error("Keys Missing:",w)},Mt=function(w){vt(w,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var ae,A;if(!w.vertical)ae=Xt(w)*w.slideWidth;else{var Ze=w.unslick?w.slideCount:w.slideCount+2*w.slidesToShow;A=Ze*w.slideHeight}var Ee={opacity:1,transition:"",WebkitTransition:""};if(w.useTransform){var Le=w.vertical?"translate3d(0px, "+w.left+"px, 0px)":"translate3d("+w.left+"px, 0px, 0px)",ze=w.vertical?"translate3d(0px, "+w.left+"px, 0px)":"translate3d("+w.left+"px, 0px, 0px)",Ve=w.vertical?"translateY("+w.left+"px)":"translateX("+w.left+"px)";Ee=(0,ne.Z)((0,ne.Z)({},Ee),{},{WebkitTransform:Le,transform:ze,msTransform:Ve})}else w.vertical?Ee.top=w.left:Ee.left=w.left;return w.fade&&(Ee={opacity:1}),ae&&(Ee.width=ae),A&&(Ee.height=A),window&&!window.addEventListener&&window.attachEvent&&(w.vertical?Ee.marginTop=w.left+"px":Ee.marginLeft=w.left+"px"),Ee},Bt=function(w){vt(w,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var ae=Mt(w);return w.useTransform?(ae.WebkitTransition="-webkit-transform "+w.speed+"ms "+w.cssEase,ae.transition="transform "+w.speed+"ms "+w.cssEase):w.vertical?ae.transition="top "+w.speed+"ms "+w.cssEase:ae.transition="left "+w.speed+"ms "+w.cssEase,ae},we=function(w){if(w.unslick)return 0;vt(w,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var ae=w.slideIndex,A=w.trackRef,Ze=w.infinite,Ee=w.centerMode,Le=w.slideCount,ze=w.slidesToShow,Ve=w.slidesToScroll,it=w.slideWidth,Pt=w.listWidth,Kt=w.variableWidth,mn=w.slideHeight,De=w.fade,Se=w.vertical,nt=0,st,Ct,ft=0;if(De||w.slideCount===1)return 0;var Ot=0;if(Ze?(Ot=-Yt(w),Le%Ve!==0&&ae+Ve>Le&&(Ot=-(ae>Le?ze-(ae-Le):Le%Ve)),Ee&&(Ot+=parseInt(ze/2))):(Le%Ve!==0&&ae+Ve>Le&&(Ot=ze-Le%Ve),Ee&&(Ot=parseInt(ze/2))),nt=Ot*it,ft=Ot*mn,Se?st=ae*mn*-1+ft:st=ae*it*-1+nt,Kt===!0){var Zt,tn=A&&A.node;if(Zt=ae+Yt(w),Ct=tn&&tn.childNodes[Zt],st=Ct?Ct.offsetLeft*-1:0,Ee===!0){Zt=Ze?ae+Yt(w):ae,Ct=tn&&tn.children[Zt],st=0;for(var Nt=0;Nt<Zt;Nt++)st-=tn&&tn.children[Nt]&&tn.children[Nt].offsetWidth;st-=parseInt(w.centerPadding),st+=Ct&&(Pt-Ct.offsetWidth)/2}}return st},Yt=function(w){return w.unslick||!w.infinite?0:w.variableWidth?w.slideCount:w.slidesToShow+(w.centerMode?1:0)},_t=function(w){return w.unslick||!w.infinite?0:w.slideCount},Xt=function(w){return w.slideCount===1?1:Yt(w)+w.slideCount+_t(w)},lt=function(w){return w.targetSlide>w.currentSlide?w.targetSlide>w.currentSlide+tt(w)?"left":"right":w.targetSlide<w.currentSlide-Te(w)?"right":"left"},tt=function(w){var ae=w.slidesToShow,A=w.centerMode,Ze=w.rtl,Ee=w.centerPadding;if(A){var Le=(ae-1)/2+1;return parseInt(Ee)>0&&(Le+=1),Ze&&ae%2===0&&(Le+=1),Le}return Ze?0:ae-1},Te=function(w){var ae=w.slidesToShow,A=w.centerMode,Ze=w.rtl,Ee=w.centerPadding;if(A){var Le=(ae-1)/2+1;return parseInt(Ee)>0&&(Le+=1),!Ze&&ae%2===0&&(Le+=1),Le}return Ze?ae-1:0},pe=function(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)},N=Object.keys(O);function xe(Ge){return N.reduce(function(w,ae){return Ge.hasOwnProperty(ae)&&(w[ae]=Ge[ae]),w},{})}function Pe(Ge,w,ae){return w=(0,re.Z)(w),(0,d.Z)(Ge,(0,me.Z)()?Reflect.construct(w,ae||[],(0,re.Z)(Ge).constructor):w.apply(Ge,ae))}var z=function(w){var ae,A,Ze,Ee,Le;w.rtl?Le=w.slideCount-1-w.index:Le=w.index,Ze=Le<0||Le>=w.slideCount,w.centerMode?(Ee=Math.floor(w.slidesToShow/2),A=(Le-w.currentSlide)%w.slideCount===0,Le>w.currentSlide-Ee-1&&Le<=w.currentSlide+Ee&&(ae=!0)):ae=w.currentSlide<=Le&&Le<w.currentSlide+w.slidesToShow;var ze;w.targetSlide<0?ze=w.targetSlide+w.slideCount:w.targetSlide>=w.slideCount?ze=w.targetSlide-w.slideCount:ze=w.targetSlide;var Ve=Le===ze;return{"slick-slide":!0,"slick-active":ae,"slick-center":A,"slick-cloned":Ze,"slick-current":Ve}},P=function(w){var ae={};return(w.variableWidth===void 0||w.variableWidth===!1)&&(ae.width=w.slideWidth),w.fade&&(ae.position="relative",w.vertical&&w.slideHeight?ae.top=-w.index*parseInt(w.slideHeight):ae.left=-w.index*parseInt(w.slideWidth),ae.opacity=w.currentSlide===w.index?1:0,ae.zIndex=w.currentSlide===w.index?999:998,w.useCSS&&(ae.transition="opacity "+w.speed+"ms "+w.cssEase+", visibility "+w.speed+"ms "+w.cssEase)),ae},ce=function(w,ae){return w.key+"-"+ae},Ce=function(w){var ae,A=[],Ze=[],Ee=[],Le=h.Children.count(w.children),ze=X(w),Ve=H(w);return h.Children.forEach(w.children,function(it,Pt){var Kt,mn={message:"children",index:Pt,slidesToScroll:w.slidesToScroll,currentSlide:w.currentSlide};!w.lazyLoad||w.lazyLoad&&w.lazyLoadedList.indexOf(Pt)>=0?Kt=it:Kt=h.createElement("div",null);var De=P((0,ne.Z)((0,ne.Z)({},w),{},{index:Pt})),Se=Kt.props.className||"",nt=z((0,ne.Z)((0,ne.Z)({},w),{},{index:Pt}));if(A.push(h.cloneElement(Kt,{key:"original"+ce(Kt,Pt),"data-index":Pt,className:W()(nt,Se),tabIndex:"-1","aria-hidden":!nt["slick-active"],style:(0,ne.Z)((0,ne.Z)({outline:"none"},Kt.props.style||{}),De),onClick:function(ft){Kt.props&&Kt.props.onClick&&Kt.props.onClick(ft),w.focusOnSelect&&w.focusOnSelect(mn)}})),w.infinite&&Le>1&&w.fade===!1&&!w.unslick){var st=Le-Pt;st<=Yt(w)&&(ae=-st,ae>=ze&&(Kt=it),nt=z((0,ne.Z)((0,ne.Z)({},w),{},{index:ae})),Ze.push(h.cloneElement(Kt,{key:"precloned"+ce(Kt,ae),"data-index":ae,tabIndex:"-1",className:W()(nt,Se),"aria-hidden":!nt["slick-active"],style:(0,ne.Z)((0,ne.Z)({},Kt.props.style||{}),De),onClick:function(ft){Kt.props&&Kt.props.onClick&&Kt.props.onClick(ft),w.focusOnSelect&&w.focusOnSelect(mn)}}))),ae=Le+Pt,ae<Ve&&(Kt=it),nt=z((0,ne.Z)((0,ne.Z)({},w),{},{index:ae})),Ee.push(h.cloneElement(Kt,{key:"postcloned"+ce(Kt,ae),"data-index":ae,tabIndex:"-1",className:W()(nt,Se),"aria-hidden":!nt["slick-active"],style:(0,ne.Z)((0,ne.Z)({},Kt.props.style||{}),De),onClick:function(ft){Kt.props&&Kt.props.onClick&&Kt.props.onClick(ft),w.focusOnSelect&&w.focusOnSelect(mn)}}))}}),w.rtl?Ze.concat(A,Ee).reverse():Ze.concat(A,Ee)},de=function(Ge){function w(){var ae;(0,oe.Z)(this,w);for(var A=arguments.length,Ze=new Array(A),Ee=0;Ee<A;Ee++)Ze[Ee]=arguments[Ee];return ae=Pe(this,w,[].concat(Ze)),(0,y.Z)(ae,"node",null),(0,y.Z)(ae,"handleRef",function(Le){ae.node=Le}),ae}return(0,o.Z)(w,Ge),(0,B.Z)(w,[{key:"render",value:function(){var A=Ce(this.props),Ze=this.props,Ee=Ze.onMouseEnter,Le=Ze.onMouseOver,ze=Ze.onMouseLeave,Ve={onMouseEnter:Ee,onMouseOver:Le,onMouseLeave:ze};return h.createElement("div",(0,le.Z)({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},Ve),A)}}])}(h.PureComponent);function Q(Ge,w,ae){return w=(0,re.Z)(w),(0,d.Z)(Ge,(0,me.Z)()?Reflect.construct(w,ae||[],(0,re.Z)(Ge).constructor):w.apply(Ge,ae))}var he=function(w){var ae;return w.infinite?ae=Math.ceil(w.slideCount/w.slidesToScroll):ae=Math.ceil((w.slideCount-w.slidesToShow)/w.slidesToScroll)+1,ae},Oe=function(Ge){function w(){return(0,oe.Z)(this,w),Q(this,w,arguments)}return(0,o.Z)(w,Ge),(0,B.Z)(w,[{key:"clickHandler",value:function(A,Ze){Ze.preventDefault(),this.props.clickHandler(A)}},{key:"render",value:function(){for(var A=this.props,Ze=A.onMouseEnter,Ee=A.onMouseOver,Le=A.onMouseLeave,ze=A.infinite,Ve=A.slidesToScroll,it=A.slidesToShow,Pt=A.slideCount,Kt=A.currentSlide,mn=he({slideCount:Pt,slidesToScroll:Ve,slidesToShow:it,infinite:ze}),De={onMouseEnter:Ze,onMouseOver:Ee,onMouseLeave:Le},Se=[],nt=0;nt<mn;nt++){var st=(nt+1)*Ve-1,Ct=ze?st:U(st,0,Pt-1),ft=Ct-(Ve-1),Ot=ze?ft:U(ft,0,Pt-1),Zt=W()({"slick-active":ze?Kt>=Ot&&Kt<=Ct:Kt===Ot}),tn={message:"dots",index:nt,slidesToScroll:Ve,currentSlide:Kt},Nt=this.clickHandler.bind(this,tn);Se=Se.concat(h.createElement("li",{key:nt,className:Zt},h.cloneElement(this.props.customPaging(nt),{onClick:Nt})))}return h.cloneElement(this.props.appendDots(Se),(0,ne.Z)({className:this.props.dotsClass},De))}}])}(h.PureComponent);function Re(Ge,w,ae){return w=(0,re.Z)(w),(0,d.Z)(Ge,(0,me.Z)()?Reflect.construct(w,ae||[],(0,re.Z)(Ge).constructor):w.apply(Ge,ae))}var qe=function(Ge){function w(){return(0,oe.Z)(this,w),Re(this,w,arguments)}return(0,o.Z)(w,Ge),(0,B.Z)(w,[{key:"clickHandler",value:function(A,Ze){Ze&&Ze.preventDefault(),this.props.clickHandler(A,Ze)}},{key:"render",value:function(){var A={"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)&&(A["slick-disabled"]=!0,Ze=null);var Ee={key:"0","data-role":"none",className:W()(A),style:{display:"block"},onClick:Ze},Le={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},ze;return this.props.prevArrow?ze=h.cloneElement(this.props.prevArrow,(0,ne.Z)((0,ne.Z)({},Ee),Le)):ze=h.createElement("button",(0,le.Z)({key:"0",type:"button"},Ee)," ","Previous"),ze}}])}(h.PureComponent),Ye=function(Ge){function w(){return(0,oe.Z)(this,w),Re(this,w,arguments)}return(0,o.Z)(w,Ge),(0,B.Z)(w,[{key:"clickHandler",value:function(A,Ze){Ze&&Ze.preventDefault(),this.props.clickHandler(A,Ze)}},{key:"render",value:function(){var A={"slick-arrow":!0,"slick-next":!0},Ze=this.clickHandler.bind(this,{message:"next"});k(this.props)||(A["slick-disabled"]=!0,Ze=null);var Ee={key:"1","data-role":"none",className:W()(A),style:{display:"block"},onClick:Ze},Le={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},ze;return this.props.nextArrow?ze=h.cloneElement(this.props.nextArrow,(0,ne.Z)((0,ne.Z)({},Ee),Le)):ze=h.createElement("button",(0,le.Z)({key:"1",type:"button"},Ee)," ","Next"),ze}}])}(h.PureComponent),Et=E(76374),dt=["animating"];function ge(Ge,w,ae){return w=(0,re.Z)(w),(0,d.Z)(Ge,(0,me.Z)()?Reflect.construct(w,ae||[],(0,re.Z)(Ge).constructor):w.apply(Ge,ae))}var Ae=function(Ge){function w(ae){var A;(0,oe.Z)(this,w),A=ge(this,w,[ae]),(0,y.Z)(A,"listRefHandler",function(Ee){return A.list=Ee}),(0,y.Z)(A,"trackRefHandler",function(Ee){return A.track=Ee}),(0,y.Z)(A,"adaptHeight",function(){if(A.props.adaptiveHeight&&A.list){var Ee=A.list.querySelector('[data-index="'.concat(A.state.currentSlide,'"]'));A.list.style.height=Fe(Ee)+"px"}}),(0,y.Z)(A,"componentDidMount",function(){if(A.props.onInit&&A.props.onInit(),A.props.lazyLoad){var Ee=x((0,ne.Z)((0,ne.Z)({},A.props),A.state));Ee.length>0&&(A.setState(function(ze){return{lazyLoadedList:ze.lazyLoadedList.concat(Ee)}}),A.props.onLazyLoad&&A.props.onLazyLoad(Ee))}var Le=(0,ne.Z)({listRef:A.list,trackRef:A.track},A.props);A.updateState(Le,!0,function(){A.adaptHeight(),A.props.autoplay&&A.autoPlay("playing")}),A.props.lazyLoad==="progressive"&&(A.lazyLoadTimer=setInterval(A.progressiveLazyLoad,1e3)),A.ro=new Et.Z(function(){A.state.animating?(A.onWindowResized(!1),A.callbackTimers.push(setTimeout(function(){return A.onWindowResized()},A.props.speed))):A.onWindowResized()}),A.ro.observe(A.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(ze){ze.onfocus=A.props.pauseOnFocus?A.onSlideFocus:null,ze.onblur=A.props.pauseOnFocus?A.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",A.onWindowResized):window.attachEvent("onresize",A.onWindowResized)}),(0,y.Z)(A,"componentWillUnmount",function(){A.animationEndCallback&&clearTimeout(A.animationEndCallback),A.lazyLoadTimer&&clearInterval(A.lazyLoadTimer),A.callbackTimers.length&&(A.callbackTimers.forEach(function(Ee){return clearTimeout(Ee)}),A.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",A.onWindowResized):window.detachEvent("onresize",A.onWindowResized),A.autoplayTimer&&clearInterval(A.autoplayTimer),A.ro.disconnect()}),(0,y.Z)(A,"componentDidUpdate",function(Ee){if(A.checkImagesLoad(),A.props.onReInit&&A.props.onReInit(),A.props.lazyLoad){var Le=x((0,ne.Z)((0,ne.Z)({},A.props),A.state));Le.length>0&&(A.setState(function(it){return{lazyLoadedList:it.lazyLoadedList.concat(Le)}}),A.props.onLazyLoad&&A.props.onLazyLoad(Le))}A.adaptHeight();var ze=(0,ne.Z)((0,ne.Z)({listRef:A.list,trackRef:A.track},A.props),A.state),Ve=A.didPropsChange(Ee);Ve&&A.updateState(ze,Ve,function(){A.state.currentSlide>=h.Children.count(A.props.children)&&A.changeSlide({message:"index",index:h.Children.count(A.props.children)-A.props.slidesToShow,currentSlide:A.state.currentSlide}),(Ee.autoplay!==A.props.autoplay||Ee.autoplaySpeed!==A.props.autoplaySpeed)&&(!Ee.autoplay&&A.props.autoplay?A.autoPlay("playing"):A.props.autoplay?A.autoPlay("update"):A.pause("paused"))})}),(0,y.Z)(A,"onWindowResized",function(Ee){A.debouncedResize&&A.debouncedResize.cancel(),A.debouncedResize=(0,L.D)(50,function(){return A.resizeWindow(Ee)}),A.debouncedResize()}),(0,y.Z)(A,"resizeWindow",function(){var Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,Le=!!(A.track&&A.track.node);if(Le){var ze=(0,ne.Z)((0,ne.Z)({listRef:A.list,trackRef:A.track},A.props),A.state);A.updateState(ze,Ee,function(){A.props.autoplay?A.autoPlay("update"):A.pause("paused")}),A.setState({animating:!1}),clearTimeout(A.animationEndCallback),delete A.animationEndCallback}}),(0,y.Z)(A,"updateState",function(Ee,Le,ze){var Ve=G(Ee);Ee=(0,ne.Z)((0,ne.Z)((0,ne.Z)({},Ee),Ve),{},{slideIndex:Ve.currentSlide});var it=we(Ee);Ee=(0,ne.Z)((0,ne.Z)({},Ee),{},{left:it});var Pt=Mt(Ee);(Le||h.Children.count(A.props.children)!==h.Children.count(Ee.children))&&(Ve.trackStyle=Pt),A.setState(Ve,ze)}),(0,y.Z)(A,"ssrInit",function(){if(A.props.variableWidth){var Ee=0,Le=0,ze=[],Ve=Yt((0,ne.Z)((0,ne.Z)((0,ne.Z)({},A.props),A.state),{},{slideCount:A.props.children.length})),it=_t((0,ne.Z)((0,ne.Z)((0,ne.Z)({},A.props),A.state),{},{slideCount:A.props.children.length}));A.props.children.forEach(function(Nt){ze.push(Nt.props.style.width),Ee+=Nt.props.style.width});for(var Pt=0;Pt<Ve;Pt++)Le+=ze[ze.length-1-Pt],Ee+=ze[ze.length-1-Pt];for(var Kt=0;Kt<it;Kt++)Ee+=ze[Kt];for(var mn=0;mn<A.state.currentSlide;mn++)Le+=ze[mn];var De={width:Ee+"px",left:-Le+"px"};if(A.props.centerMode){var Se="".concat(ze[A.state.currentSlide],"px");De.left="calc(".concat(De.left," + (100% - ").concat(Se,") / 2 ) ")}return{trackStyle:De}}var nt=h.Children.count(A.props.children),st=(0,ne.Z)((0,ne.Z)((0,ne.Z)({},A.props),A.state),{},{slideCount:nt}),Ct=Yt(st)+_t(st)+nt,ft=100/A.props.slidesToShow*Ct,Ot=100/Ct,Zt=-Ot*(Yt(st)+A.state.currentSlide)*ft/100;A.props.centerMode&&(Zt+=(100-Ot*ft/100)/2);var tn={width:ft+"%",left:Zt+"%"};return{slideWidth:Ot+"%",trackStyle:tn}}),(0,y.Z)(A,"checkImagesLoad",function(){var Ee=A.list&&A.list.querySelectorAll&&A.list.querySelectorAll(".slick-slide img")||[],Le=Ee.length,ze=0;Array.prototype.forEach.call(Ee,function(Ve){var it=function(){return++ze&&ze>=Le&&A.onWindowResized()};if(!Ve.onclick)Ve.onclick=function(){return Ve.parentNode.focus()};else{var Pt=Ve.onclick;Ve.onclick=function(Kt){Pt(Kt),Ve.parentNode.focus()}}Ve.onload||(A.props.lazyLoad?Ve.onload=function(){A.adaptHeight(),A.callbackTimers.push(setTimeout(A.onWindowResized,A.props.speed))}:(Ve.onload=it,Ve.onerror=function(){it(),A.props.onLazyLoadError&&A.props.onLazyLoadError()}))})}),(0,y.Z)(A,"progressiveLazyLoad",function(){for(var Ee=[],Le=(0,ne.Z)((0,ne.Z)({},A.props),A.state),ze=A.state.currentSlide;ze<A.state.slideCount+_t(Le);ze++)if(A.state.lazyLoadedList.indexOf(ze)<0){Ee.push(ze);break}for(var Ve=A.state.currentSlide-1;Ve>=-Yt(Le);Ve--)if(A.state.lazyLoadedList.indexOf(Ve)<0){Ee.push(Ve);break}Ee.length>0?(A.setState(function(it){return{lazyLoadedList:it.lazyLoadedList.concat(Ee)}}),A.props.onLazyLoad&&A.props.onLazyLoad(Ee)):A.lazyLoadTimer&&(clearInterval(A.lazyLoadTimer),delete A.lazyLoadTimer)}),(0,y.Z)(A,"slideHandler",function(Ee){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ze=A.props,Ve=ze.asNavFor,it=ze.beforeChange,Pt=ze.onLazyLoad,Kt=ze.speed,mn=ze.afterChange,De=A.state.currentSlide,Se=J((0,ne.Z)((0,ne.Z)((0,ne.Z)({index:Ee},A.props),A.state),{},{trackRef:A.track,useCSS:A.props.useCSS&&!Le})),nt=Se.state,st=Se.nextState;if(nt){it&&it(De,nt.currentSlide);var Ct=nt.lazyLoadedList.filter(function(ft){return A.state.lazyLoadedList.indexOf(ft)<0});Pt&&Ct.length>0&&Pt(Ct),!A.props.waitForAnimate&&A.animationEndCallback&&(clearTimeout(A.animationEndCallback),mn&&mn(De),delete A.animationEndCallback),A.setState(nt,function(){Ve&&A.asNavForIndex!==Ee&&(A.asNavForIndex=Ee,Ve.innerSlider.slideHandler(Ee)),st&&(A.animationEndCallback=setTimeout(function(){var ft=st.animating,Ot=(0,m.Z)(st,dt);A.setState(Ot,function(){A.callbackTimers.push(setTimeout(function(){return A.setState({animating:ft})},10)),mn&&mn(nt.currentSlide),delete A.animationEndCallback})},Kt))})}}),(0,y.Z)(A,"changeSlide",function(Ee){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ze=(0,ne.Z)((0,ne.Z)({},A.props),A.state),Ve=j(ze,Ee);if(!(Ve!==0&&!Ve)&&(Le===!0?A.slideHandler(Ve,Le):A.slideHandler(Ve),A.props.autoplay&&A.autoPlay("update"),A.props.focusOnSelect)){var it=A.list.querySelectorAll(".slick-current");it[0]&&it[0].focus()}}),(0,y.Z)(A,"clickHandler",function(Ee){A.clickable===!1&&(Ee.stopPropagation(),Ee.preventDefault()),A.clickable=!0}),(0,y.Z)(A,"keyHandler",function(Ee){var Le=v(Ee,A.props.accessibility,A.props.rtl);Le!==""&&A.changeSlide({message:Le})}),(0,y.Z)(A,"selectHandler",function(Ee){A.changeSlide(Ee)}),(0,y.Z)(A,"disableBodyScroll",function(){var Ee=function(ze){ze=ze||window.event,ze.preventDefault&&ze.preventDefault(),ze.returnValue=!1};window.ontouchmove=Ee}),(0,y.Z)(A,"enableBodyScroll",function(){window.ontouchmove=null}),(0,y.Z)(A,"swipeStart",function(Ee){A.props.verticalSwiping&&A.disableBodyScroll();var Le=g(Ee,A.props.swipe,A.props.draggable);Le!==""&&A.setState(Le)}),(0,y.Z)(A,"swipeMove",function(Ee){var Le=M(Ee,(0,ne.Z)((0,ne.Z)((0,ne.Z)({},A.props),A.state),{},{trackRef:A.track,listRef:A.list,slideIndex:A.state.currentSlide}));Le&&(Le.swiping&&(A.clickable=!1),A.setState(Le))}),(0,y.Z)(A,"swipeEnd",function(Ee){var Le=ue(Ee,(0,ne.Z)((0,ne.Z)((0,ne.Z)({},A.props),A.state),{},{trackRef:A.track,listRef:A.list,slideIndex:A.state.currentSlide}));if(Le){var ze=Le.triggerSlideHandler;delete Le.triggerSlideHandler,A.setState(Le),ze!==void 0&&(A.slideHandler(ze),A.props.verticalSwiping&&A.enableBodyScroll())}}),(0,y.Z)(A,"touchEnd",function(Ee){A.swipeEnd(Ee),A.clickable=!0}),(0,y.Z)(A,"slickPrev",function(){A.callbackTimers.push(setTimeout(function(){return A.changeSlide({message:"previous"})},0))}),(0,y.Z)(A,"slickNext",function(){A.callbackTimers.push(setTimeout(function(){return A.changeSlide({message:"next"})},0))}),(0,y.Z)(A,"slickGoTo",function(Ee){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Ee=Number(Ee),isNaN(Ee))return"";A.callbackTimers.push(setTimeout(function(){return A.changeSlide({message:"index",index:Ee,currentSlide:A.state.currentSlide},Le)},0))}),(0,y.Z)(A,"play",function(){var Ee;if(A.props.rtl)Ee=A.state.currentSlide-A.props.slidesToScroll;else if(k((0,ne.Z)((0,ne.Z)({},A.props),A.state)))Ee=A.state.currentSlide+A.props.slidesToScroll;else return!1;A.slideHandler(Ee)}),(0,y.Z)(A,"autoPlay",function(Ee){A.autoplayTimer&&clearInterval(A.autoplayTimer);var Le=A.state.autoplaying;if(Ee==="update"){if(Le==="hovered"||Le==="focused"||Le==="paused")return}else if(Ee==="leave"){if(Le==="paused"||Le==="focused")return}else if(Ee==="blur"&&(Le==="paused"||Le==="hovered"))return;A.autoplayTimer=setInterval(A.play,A.props.autoplaySpeed+50),A.setState({autoplaying:"playing"})}),(0,y.Z)(A,"pause",function(Ee){A.autoplayTimer&&(clearInterval(A.autoplayTimer),A.autoplayTimer=null);var Le=A.state.autoplaying;Ee==="paused"?A.setState({autoplaying:"paused"}):Ee==="focused"?(Le==="hovered"||Le==="playing")&&A.setState({autoplaying:"focused"}):Le==="playing"&&A.setState({autoplaying:"hovered"})}),(0,y.Z)(A,"onDotsOver",function(){return A.props.autoplay&&A.pause("hovered")}),(0,y.Z)(A,"onDotsLeave",function(){return A.props.autoplay&&A.state.autoplaying==="hovered"&&A.autoPlay("leave")}),(0,y.Z)(A,"onTrackOver",function(){return A.props.autoplay&&A.pause("hovered")}),(0,y.Z)(A,"onTrackLeave",function(){return A.props.autoplay&&A.state.autoplaying==="hovered"&&A.autoPlay("leave")}),(0,y.Z)(A,"onSlideFocus",function(){return A.props.autoplay&&A.pause("focused")}),(0,y.Z)(A,"onSlideBlur",function(){return A.props.autoplay&&A.state.autoplaying==="focused"&&A.autoPlay("blur")}),(0,y.Z)(A,"render",function(){var Ee=W()("slick-slider",A.props.className,{"slick-vertical":A.props.vertical,"slick-initialized":!0}),Le=(0,ne.Z)((0,ne.Z)({},A.props),A.state),ze=F(Le,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),Ve=A.props.pauseOnHover;ze=(0,ne.Z)((0,ne.Z)({},ze),{},{onMouseEnter:Ve?A.onTrackOver:null,onMouseLeave:Ve?A.onTrackLeave:null,onMouseOver:Ve?A.onTrackOver:null,focusOnSelect:A.props.focusOnSelect&&A.clickable?A.selectHandler:null});var it;if(A.props.dots===!0&&A.state.slideCount>=A.props.slidesToShow){var Pt=F(Le,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),Kt=A.props.pauseOnDotsHover;Pt=(0,ne.Z)((0,ne.Z)({},Pt),{},{clickHandler:A.changeSlide,onMouseEnter:Kt?A.onDotsLeave:null,onMouseOver:Kt?A.onDotsOver:null,onMouseLeave:Kt?A.onDotsLeave:null}),it=h.createElement(Oe,Pt)}var mn,De,Se=F(Le,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);Se.clickHandler=A.changeSlide,A.props.arrows&&(mn=h.createElement(qe,Se),De=h.createElement(Ye,Se));var nt=null;A.props.vertical&&(nt={height:A.state.listHeight});var st=null;A.props.vertical===!1?A.props.centerMode===!0&&(st={padding:"0px "+A.props.centerPadding}):A.props.centerMode===!0&&(st={padding:A.props.centerPadding+" 0px"});var Ct=(0,ne.Z)((0,ne.Z)({},nt),st),ft=A.props.touchMove,Ot={className:"slick-list",style:Ct,onClick:A.clickHandler,onMouseDown:ft?A.swipeStart:null,onMouseMove:A.state.dragging&&ft?A.swipeMove:null,onMouseUp:ft?A.swipeEnd:null,onMouseLeave:A.state.dragging&&ft?A.swipeEnd:null,onTouchStart:ft?A.swipeStart:null,onTouchMove:A.state.dragging&&ft?A.swipeMove:null,onTouchEnd:ft?A.touchEnd:null,onTouchCancel:A.state.dragging&&ft?A.swipeEnd:null,onKeyDown:A.props.accessibility?A.keyHandler:null},Zt={className:Ee,dir:"ltr",style:A.props.style};return A.props.unslick&&(Ot={className:"slick-list"},Zt={className:Ee,style:A.props.style}),h.createElement("div",Zt,A.props.unslick?"":mn,h.createElement("div",(0,le.Z)({ref:A.listRefHandler},Ot),h.createElement(de,(0,le.Z)({ref:A.trackRefHandler},ze),A.props.children)),A.props.unslick?"":De,A.props.unslick?"":it)}),A.list=null,A.track=null,A.state=(0,ne.Z)((0,ne.Z)({},b),{},{currentSlide:A.props.initialSlide,targetSlide:A.props.initialSlide?A.props.initialSlide:0,slideCount:h.Children.count(A.props.children)}),A.callbackTimers=[],A.clickable=!0,A.debouncedResize=null;var Ze=A.ssrInit();return A.state=(0,ne.Z)((0,ne.Z)({},A.state),Ze),A}return(0,o.Z)(w,Ge),(0,B.Z)(w,[{key:"didPropsChange",value:function(A){for(var Ze=!1,Ee=0,Le=Object.keys(this.props);Ee<Le.length;Ee++){var ze=Le[Ee];if(!A.hasOwnProperty(ze)){Ze=!0;break}if(!((0,T.Z)(A[ze])==="object"||typeof A[ze]=="function"||isNaN(A[ze]))&&A[ze]!==this.props[ze]){Ze=!0;break}}return Ze||h.Children.count(this.props.children)!==h.Children.count(A.children)}}])}(h.Component),at=E(7861),et=E.n(at);function Qe(Ge,w,ae){return w=(0,re.Z)(w),(0,d.Z)(Ge,(0,me.Z)()?Reflect.construct(w,ae||[],(0,re.Z)(Ge).constructor):w.apply(Ge,ae))}var St=function(Ge){function w(ae){var A;return(0,oe.Z)(this,w),A=Qe(this,w,[ae]),(0,y.Z)(A,"innerSliderRefHandler",function(Ze){return A.innerSlider=Ze}),(0,y.Z)(A,"slickPrev",function(){return A.innerSlider.slickPrev()}),(0,y.Z)(A,"slickNext",function(){return A.innerSlider.slickNext()}),(0,y.Z)(A,"slickGoTo",function(Ze){var Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return A.innerSlider.slickGoTo(Ze,Ee)}),(0,y.Z)(A,"slickPause",function(){return A.innerSlider.pause("paused")}),(0,y.Z)(A,"slickPlay",function(){return A.innerSlider.autoPlay("play")}),A.state={breakpoint:null},A._responsiveMediaHandlers=[],A}return(0,o.Z)(w,Ge),(0,B.Z)(w,[{key:"media",value:function(A,Ze){var Ee=window.matchMedia(A),Le=function(Ve){var it=Ve.matches;it&&Ze()};Ee.addListener(Le),Le(Ee),this._responsiveMediaHandlers.push({mql:Ee,query:A,listener:Le})}},{key:"componentDidMount",value:function(){var A=this;if(this.props.responsive){var Ze=this.props.responsive.map(function(Le){return Le.breakpoint});Ze.sort(function(Le,ze){return Le-ze}),Ze.forEach(function(Le,ze){var Ve;ze===0?Ve=et()({minWidth:0,maxWidth:Le}):Ve=et()({minWidth:Ze[ze-1]+1,maxWidth:Le}),pe()&&A.media(Ve,function(){A.setState({breakpoint:Le})})});var Ee=et()({minWidth:Ze.slice(-1)[0]});pe()&&this.media(Ee,function(){A.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(A){A.mql.removeListener(A.listener)})}},{key:"render",value:function(){var A=this,Ze,Ee;this.state.breakpoint?(Ee=this.props.responsive.filter(function(nt){return nt.breakpoint===A.state.breakpoint}),Ze=Ee[0].settings==="unslick"?"unslick":(0,ne.Z)((0,ne.Z)((0,ne.Z)({},O),this.props),Ee[0].settings)):Ze=(0,ne.Z)((0,ne.Z)({},O),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 Le=h.Children.toArray(this.props.children);Le=Le.filter(function(nt){return typeof nt=="string"?!!nt.trim():!!nt}),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 ze=[],Ve=null,it=0;it<Le.length;it+=Ze.rows*Ze.slidesPerRow){for(var Pt=[],Kt=it;Kt<it+Ze.rows*Ze.slidesPerRow;Kt+=Ze.slidesPerRow){for(var mn=[],De=Kt;De<Kt+Ze.slidesPerRow&&(Ze.variableWidth&&Le[De].props.style&&(Ve=Le[De].props.style.width),!(De>=Le.length));De+=1)mn.push(h.cloneElement(Le[De],{key:100*it+10*Kt+De,tabIndex:-1,style:{width:"".concat(100/Ze.slidesPerRow,"%"),display:"inline-block"}}));Pt.push(h.createElement("div",{key:10*it+Kt},mn))}Ze.variableWidth?ze.push(h.createElement("div",{key:it,style:{width:Ve}},Pt)):ze.push(h.createElement("div",{key:it},Pt))}if(Ze==="unslick"){var Se="regular slider "+(this.props.className||"");return h.createElement("div",{className:Se},Le)}else ze.length<=Ze.slidesToShow&&!Ze.infinite&&(Ze.unslick=!0);return h.createElement(Ae,(0,le.Z)({style:this.props.style,ref:this.innerSliderRefHandler},xe(Ze)),ze)}}])}(h.Component),Tt=St,He=E(48755),Wt=E(36237),fn=E(63356),Rt=E(16931);const qt="--dot-duration",Ke=Ge=>{const{componentCls:w,antCls:ae}=Ge;return{[w]:Object.assign(Object.assign({},(0,fn.Wf)(Ge)),{".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${ae}-radio-input, input${ae}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${ae}-radio-input, input${ae}-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"}})}},ke=Ge=>{const{componentCls:w,motionDurationSlow:ae,arrowSize:A,arrowOffset:Ze}=Ge,Ee=Ge.calc(A).div(Math.SQRT2).equal();return{[w]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:A,height:A,transform:"translateY(-50%)",color:"#fff",opacity:.4,background:"transparent",padding:0,lineHeight:0,border:0,outline:"none",cursor:"pointer",zIndex:1,transition:`opacity ${ae}`,"&:hover, &:focus":{opacity:1},"&.slick-disabled":{pointerEvents:"none",opacity:0},"&::after":{boxSizing:"border-box",position:"absolute",top:Ge.calc(A).sub(Ee).div(2).equal(),insetInlineStart:Ge.calc(A).sub(Ee).div(2).equal(),display:"inline-block",width:Ee,height:Ee,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)"}}}}},Ne=Ge=>{const{componentCls:w,dotOffset:ae,dotWidth:A,dotHeight:Ze,dotGap:Ee,colorBgContainer:Le,motionDurationSlow:ze}=Ge;return{[w]:{".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:ae},"&-top":{top:ae,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:A,height:Ze,marginInline:Ee,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${ze}`,borderRadius:Ze,overflow:"hidden","&::after":{display:"block",position:"absolute",top:0,insetInlineStart:0,width:"100%",height:Ze,content:'""',background:Le,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:Le,border:0,borderRadius:Ze,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${ze}`,overflow:"hidden","&:hover":{opacity:.75},"&::after":{position:"absolute",inset:Ge.calc(Ee).mul(-1).equal(),content:'""'}},"&.slick-active":{width:Ge.dotActiveWidth,position:"relative","&:hover":{opacity:1},"&::after":{transform:"translate3d(0, 0, 0)",transition:`transform var(${qt}) ease-out`}}}}}}},I=Ge=>{const{componentCls:w,dotOffset:ae,arrowOffset:A,marginXXS:Ze}=Ge,Ee={width:Ge.dotHeight,height:Ge.dotWidth};return{[`${w}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:A,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:A,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:Ge.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:ae},"&-right":{insetInlineEnd:ae,insetInlineStart:"auto"},li:Object.assign(Object.assign({},Ee),{margin:`${(0,Wt.unit)(Ze)} 0`,verticalAlign:"baseline",button:Ee,"&::after":Object.assign(Object.assign({},Ee),{height:0}),"&.slick-active":Object.assign(Object.assign({},Ee),{button:Ee,"&::after":Object.assign(Object.assign({},Ee),{transition:`height var(${qt}) ease-out`})})})}}}},ee=Ge=>{const{componentCls:w}=Ge;return[{[`${w}-rtl`]:{direction:"rtl",".slick-dots":{[`${w}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${w}-vertical`]:{".slick-dots":{[`${w}-rtl&`]:{flexDirection:"column"}}}}]},fe=Ge=>({arrowSize:16,arrowOffset:Ge.marginXS,dotWidth:16,dotHeight:3,dotGap:Ge.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24});var ve=(0,Rt.I$)("Carousel",Ge=>[Ke(Ge),ke(Ge),Ne(Ge),I(Ge),ee(Ge)],fe,{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]}),ye=function(Ge,w){var ae={};for(var A in Ge)Object.prototype.hasOwnProperty.call(Ge,A)&&w.indexOf(A)<0&&(ae[A]=Ge[A]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,A=Object.getOwnPropertySymbols(Ge);Ze<A.length;Ze++)w.indexOf(A[Ze])<0&&Object.prototype.propertyIsEnumerable.call(Ge,A[Ze])&&(ae[A[Ze]]=Ge[A[Ze]]);return ae};const Ue="slick-dots",$e=Ge=>{var{currentSlide:w,slideCount:ae}=Ge,A=ye(Ge,["currentSlide","slideCount"]);return h.createElement("button",Object.assign({type:"button"},A))};var At=h.forwardRef((Ge,w)=>{const{dots:ae=!0,arrows:A=!1,prevArrow:Ze=h.createElement($e,{"aria-label":"prev"}),nextArrow:Ee=h.createElement($e,{"aria-label":"next"}),draggable:Le=!1,waitForAnimate:ze=!1,dotPosition:Ve="bottom",vertical:it=Ve==="left"||Ve==="right",rootClassName:Pt,className:Kt,style:mn,id:De,autoplay:Se=!1,autoplaySpeed:nt=3e3}=Ge,st=ye(Ge,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id","autoplay","autoplaySpeed"]),{getPrefixCls:Ct,direction:ft,className:Ot,style:Zt}=(0,He.dj)("carousel"),tn=h.useRef(null),Nt=function(En){let wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;tn.current.slickGoTo(En,wn)};h.useImperativeHandle(w,()=>({goTo:Nt,autoPlay:tn.current.innerSlider.autoPlay,innerSlider:tn.current.innerSlider,prev:tn.current.slickPrev,next:tn.current.slickNext}),[tn.current]);const un=h.useRef(h.Children.count(Ge.children));h.useEffect(()=>{un.current!==h.Children.count(Ge.children)&&(Nt(Ge.initialSlide||0,!1),un.current=h.Children.count(Ge.children))},[Ge.children]);const gn=Object.assign({vertical:it,className:W()(Kt,Ot),style:Object.assign(Object.assign({},Zt),mn),autoplay:!!Se},st);gn.effect==="fade"&&(gn.fade=!0);const ln=Ct("carousel",gn.prefixCls),jt=!!ae,Be=W()(Ue,`${Ue}-${Ve}`,typeof ae=="boolean"?!1:ae==null?void 0:ae.className),[ot,gt,wt]=ve(ln),$t=W()(ln,{[`${ln}-rtl`]:ft==="rtl",[`${ln}-vertical`]:gn.vertical},gt,wt,Pt),cn=Se&&(typeof Se=="object"?Se.dotDuration:!1)?{[qt]:`${nt}ms`}:{};return ot(h.createElement("div",{className:$t,id:De,style:cn},h.createElement(Tt,Object.assign({ref:tn},gn,{dots:jt,dotsClass:Be,arrows:A,prevArrow:Ze,nextArrow:Ee,draggable:Le,verticalSwiping:it,autoplaySpeed:nt,waitForAnimate:ze}))))})},64018:function(){var Rn,Gt,E,h=!1,le,ne;window.PR_SHOULD_USE_CONTINUATION=!0;var oe,B;(function(){var d=window,me=["break,continue,do,else,for,if,return,while"],re=[me,"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=[re,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],y=[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"],T=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],m=[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"],_="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"],L="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",K=[me,"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"],W=[me,"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"],$=[me,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],O=[y,m,T,b,L,K,W,$],U=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,R="str",x="kwd",V="com",X="typ",H="lit",q="pun",se="pln",ie="tag",Fe="dec",Z="src",k="atn",F="atv",G="nocode",J="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function j(pe){for(var N=0,xe=!1,Pe=!1,z=0,P=pe.length;z<P;++z){var ce=pe[z];if(ce.ignoreCase)Pe=!0;else if(/[a-z]/i.test(ce.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){xe=!0,Pe=!1;break}}var Ce={b:8,t:9,n:10,v:11,f:12,r:13};function de(qe){var Ye=qe.charCodeAt(0);if(Ye!==92)return Ye;var Et=qe.charAt(1);return Ye=Ce[Et],Ye||("0"<=Et&&Et<="7"?parseInt(qe.substring(1),8):Et==="u"||Et==="x"?parseInt(qe.substring(2),16):qe.charCodeAt(1))}function Q(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 he(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")),Et=[],dt=Ye[0]==="^",ge=["["];dt&&ge.push("^");for(var Ae=dt?1:0,at=Ye.length;Ae<at;++Ae){var et=Ye[Ae];if(/\\[bdsw]/i.test(et))ge.push(et);else{var Qe=de(et),St;Ae+2<at&&Ye[Ae+1]==="-"?(St=de(Ye[Ae+2]),Ae+=2):St=Qe,Et.push([Qe,St]),St<65||Qe>122||(St<65||Qe>90||Et.push([Math.max(65,Qe)|32,Math.min(St,90)|32]),St<97||Qe>122||Et.push([Math.max(97,Qe)&-33,Math.min(St,122)&-33]))}}Et.sort(function(fn,Rt){return fn[0]-Rt[0]||Rt[1]-fn[1]});for(var Tt=[],He=[],Ae=0;Ae<Et.length;++Ae){var Wt=Et[Ae];Wt[0]<=He[1]+1?He[1]=Math.max(He[1],Wt[1]):Tt.push(He=Wt)}for(var Ae=0;Ae<Tt.length;++Ae){var Wt=Tt[Ae];ge.push(Q(Wt[0])),Wt[1]>Wt[0]&&(Wt[1]+1>Wt[0]&&ge.push("-"),ge.push(Q(Wt[1])))}return ge.push("]"),ge.join("")}function Oe(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")),Et=Ye.length,dt=[],ge=0,Ae=0;ge<Et;++ge){var at=Ye[ge];if(at==="(")++Ae;else if(at.charAt(0)==="\\"){var et=+at.substring(1);et&&(et<=Ae?dt[et]=-1:Ye[ge]=Q(et))}}for(var ge=1;ge<dt.length;++ge)dt[ge]===-1&&(dt[ge]=++N);for(var ge=0,Ae=0;ge<Et;++ge){var at=Ye[ge];if(at==="(")++Ae,dt[Ae]||(Ye[ge]="(?:");else if(at.charAt(0)==="\\"){var et=+at.substring(1);et&&et<=Ae&&(Ye[ge]="\\"+dt[et])}}for(var ge=0;ge<Et;++ge)Ye[ge]==="^"&&Ye[ge+1]!=="^"&&(Ye[ge]="");if(qe.ignoreCase&&xe)for(var ge=0;ge<Et;++ge){var at=Ye[ge],Qe=at.charAt(0);at.length>=2&&Qe==="["?Ye[ge]=he(at):Qe!=="\\"&&(Ye[ge]=at.replace(/[a-zA-Z]/g,function(He){var Wt=He.charCodeAt(0);return"["+String.fromCharCode(Wt&-33,Wt|32)+"]"}))}return Ye.join("")}for(var Re=[],z=0,P=pe.length;z<P;++z){var ce=pe[z];if(ce.global||ce.multiline)throw new Error(""+ce);Re.push("(?:"+Oe(ce)+")")}return new RegExp(Re.join("|"),Pe?"gi":"g")}function v(pe,N){var xe=/(?:^|\s)nocode(?:\s|$)/,Pe=[],z=0,P=[],ce=0;function Ce(de){var Q=de.nodeType;if(Q==1){if(xe.test(de.className))return;for(var he=de.firstChild;he;he=he.nextSibling)Ce(he);var Oe=de.nodeName.toLowerCase();(Oe==="br"||Oe==="li")&&(Pe[ce]=`
`,P[ce<<1]=z++,P[ce++<<1|1]=de)}else if(Q==3||Q==4){var Re=de.nodeValue;Re.length&&(N?Re=Re.replace(/\r\n?/g,`
`):Re=Re.replace(/[ \t\r\n]+/g," "),Pe[ce]=Re,P[ce<<1]=z,z+=Re.length,P[ce++<<1|1]=de)}}return Ce(pe),{sourceCode:Pe.join("").replace(/\n$/,""),spans:P}}function g(pe,N,xe,Pe,z){if(xe){var P={sourceNode:pe,pre:1,langExtension:null,numberLines:null,sourceCode:xe,spans:null,basePos:N,decorations:null};Pe(P),z.push.apply(z,P.decorations)}}var M=/\S/;function ue(pe){for(var N=void 0,xe=pe.firstChild;xe;xe=xe.nextSibling){var Pe=xe.nodeType;N=Pe===1?N?pe:xe:Pe===3&&M.test(xe.nodeValue)?pe:N}return N===pe?void 0:N}function Ie(pe,N){var xe={},Pe;(function(){for(var ce=pe.concat(N),Ce=[],de={},Q=0,he=ce.length;Q<he;++Q){var Oe=ce[Q],Re=Oe[3];if(Re)for(var qe=Re.length;--qe>=0;)xe[Re.charAt(qe)]=Oe;var Ye=Oe[1],Et=""+Ye;de.hasOwnProperty(Et)||(Ce.push(Ye),de[Et]=null)}Ce.push(/[\0-\uffff]/),Pe=j(Ce)})();var z=N.length,P=function(ce){for(var Ce=ce.sourceCode,de=ce.basePos,Q=ce.sourceNode,he=[de,se],Oe=0,Re=Ce.match(Pe)||[],qe={},Ye=0,Et=Re.length;Ye<Et;++Ye){var dt=Re[Ye],ge=qe[dt],Ae=void 0,at;if(typeof ge=="string")at=!1;else{var et=xe[dt.charAt(0)];if(et)Ae=dt.match(et[1]),ge=et[0];else{for(var Qe=0;Qe<z;++Qe)if(et=N[Qe],Ae=dt.match(et[1]),Ae){ge=et[0];break}Ae||(ge=se)}at=ge.length>=5&&ge.substring(0,5)==="lang-",at&&!(Ae&&typeof Ae[1]=="string")&&(at=!1,ge=Z),at||(qe[dt]=ge)}var St=Oe;if(Oe+=dt.length,!at)he.push(de+St,ge);else{var Tt=Ae[1],He=dt.indexOf(Tt),Wt=He+Tt.length;Ae[2]&&(Wt=dt.length-Ae[2].length,He=Wt-Tt.length);var fn=ge.substring(5);g(Q,de+St,dt.substring(0,He),P,he),g(Q,de+St+He,Tt,Yt(fn,Tt),he),g(Q,de+St+Wt,dt.substring(Wt),P,he)}}ce.decorations=he};return P}function Je(pe){var N=[],xe=[];pe.tripleQuotedStrings?N.push([R,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):pe.multiLineStrings?N.push([R,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):N.push([R,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),pe.verbatimStrings&&xe.push([R,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var Pe=pe.hashComments;Pe&&(pe.cStyleComments?(Pe>1?N.push([V,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):N.push([V,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),xe.push([R,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):N.push([V,/^#[^\r\n]*/,null,"#"])),pe.cStyleComments&&(xe.push([V,/^\/\/[^\r\n]*/,null]),xe.push([V,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var z=pe.regexLiterals;if(z){var P=z>1?"":`
\r`,ce=P?".":"[\\S\\s]",Ce="/(?=[^/*"+P+"])(?:[^/\\x5B\\x5C"+P+"]|\\x5C"+ce+"|\\x5B(?:[^\\x5C\\x5D"+P+"]|\\x5C"+ce+")*(?:\\x5D|$))+/";xe.push(["lang-regex",RegExp("^"+J+"("+Ce+")")])}var de=pe.types;de&&xe.push([X,de]);var Q=(""+pe.keywords).replace(/^ | $/g,"");Q.length&&xe.push([x,new RegExp("^(?:"+Q.replace(/[\s,]+/g,"|")+")\\b"),null]),N.push([se,/^\s+/,null,` \r
\xA0`]);var he="^.[^\\s\\w.$@'\"`/\\\\]*";return pe.regexLiterals&&(he+="(?!s*/)"),xe.push([H,/^@[a-z_$][a-z_$@0-9]*/i,null],[X,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[se,/^[a-z_$][a-z_$@0-9]*/i,null],[H,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[se,/^\\[\s\S]?/,null],[q,new RegExp(he),null]),Ie(N,xe)}var Dt=Je({keywords:O,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function vt(pe,N,xe){for(var Pe=/(?:^|\s)nocode(?:\s|$)/,z=/\r\n?|\n/,P=pe.ownerDocument,ce=P.createElement("li");pe.firstChild;)ce.appendChild(pe.firstChild);var Ce=[ce];function de(Ye){var Et=Ye.nodeType;if(Et==1&&!Pe.test(Ye.className))if(Ye.nodeName==="br")Q(Ye),Ye.parentNode&&Ye.parentNode.removeChild(Ye);else for(var dt=Ye.firstChild;dt;dt=dt.nextSibling)de(dt);else if((Et==3||Et==4)&&xe){var ge=Ye.nodeValue,Ae=ge.match(z);if(Ae){var at=ge.substring(0,Ae.index);Ye.nodeValue=at;var et=ge.substring(Ae.index+Ae[0].length);if(et){var Qe=Ye.parentNode;Qe.insertBefore(P.createTextNode(et),Ye.nextSibling)}Q(Ye),at||Ye.parentNode.removeChild(Ye)}}}function Q(Ye){for(;!Ye.nextSibling;)if(Ye=Ye.parentNode,!Ye)return;function Et(Ae,at){var et=at?Ae.cloneNode(!1):Ae,Qe=Ae.parentNode;if(Qe){var St=Et(Qe,1),Tt=Ae.nextSibling;St.appendChild(et);for(var He=Tt;He;He=Tt)Tt=He.nextSibling,St.appendChild(He)}return et}for(var dt=Et(Ye.nextSibling,0),ge;(ge=dt.parentNode)&&ge.nodeType===1;)dt=ge;Ce.push(dt)}for(var he=0;he<Ce.length;++he)de(Ce[he]);N===(N|0)&&Ce[0].setAttribute("value",N);var Oe=P.createElement("ol");Oe.className="linenums";for(var Re=Math.max(0,N-1|0)||0,he=0,qe=Ce.length;he<qe;++he)ce=Ce[he],ce.className="L"+(he+Re)%10,ce.firstChild||ce.appendChild(P.createTextNode("\xA0")),Oe.appendChild(ce);pe.appendChild(Oe)}function Mt(pe){var N=/\bMSIE\s(\d+)/.exec(navigator.userAgent);N=N&&+N[1]<=8;var xe=/\n/g,Pe=pe.sourceCode,z=Pe.length,P=0,ce=pe.spans,Ce=ce.length,de=0,Q=pe.decorations,he=Q.length,Oe=0;Q[he]=z;var Re,qe;for(qe=Re=0;qe<he;)Q[qe]!==Q[qe+2]?(Q[Re++]=Q[qe++],Q[Re++]=Q[qe++]):qe+=2;for(he=Re,qe=Re=0;qe<he;){for(var Ye=Q[qe],Et=Q[qe+1],dt=qe+2;dt+2<=he&&Q[dt+1]===Et;)dt+=2;Q[Re++]=Ye,Q[Re++]=Et,qe=dt}he=Q.length=Re;var ge=pe.sourceNode,Ae="";ge&&(Ae=ge.style.display,ge.style.display="none");try{for(var at=null;de<Ce;){var et=ce[de],Qe=ce[de+2]||z,St=Q[Oe+2]||z,dt=Math.min(Qe,St),Tt=ce[de+1],He;if(Tt.nodeType!==1&&(He=Pe.substring(P,dt))){N&&(He=He.replace(xe,"\r")),Tt.nodeValue=He;var Wt=Tt.ownerDocument,fn=Wt.createElement("span");fn.className=Q[Oe+1];var Rt=Tt.parentNode;Rt.replaceChild(fn,Tt),fn.appendChild(Tt),P<Qe&&(ce[de+1]=Tt=Wt.createTextNode(Pe.substring(dt,Qe)),Rt.insertBefore(Tt,fn.nextSibling))}P=dt,P>=Qe&&(de+=2),P>=St&&(Oe+=2)}}finally{ge&&(ge.style.display=Ae)}}var Bt={};function we(pe,N){for(var xe=N.length;--xe>=0;){var Pe=N[xe];Bt.hasOwnProperty(Pe)?d.console&&console.warn("cannot override language handler %s",Pe):Bt[Pe]=pe}}function Yt(pe,N){return pe&&Bt.hasOwnProperty(pe)||(pe=/^\s*</.test(N)?"default-markup":"default-code"),Bt[pe]}we(Dt,["default-code"]),we(Ie([],[[se,/^[^<?]+/],[Fe,/^<!\w[^>]*(?:>|$)/],[V,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[q,/^(?:<[%?]|[%?]>)/],["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"]),we(Ie([[se,/^[\s]+/,null,` \r
`],[F,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[ie,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[k,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[q,/^[=<>\/]+/],["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"]),we(Ie([],[[F,/^[\s\S]+/]]),["uq.val"]),we(Je({keywords:y,hashComments:!0,cStyleComments:!0,types:U}),["c","cc","cpp","cxx","cyc","m"]),we(Je({keywords:"null,true,false"}),["json"]),we(Je({keywords:m,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:U}),["cs"]),we(Je({keywords:T,cStyleComments:!0}),["java"]),we(Je({keywords:$,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),we(Je({keywords:K,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),we(Je({keywords:L,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),we(Je({keywords:W,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),we(Je({keywords:b,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),we(Je({keywords:_,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),we(Ie([],[[R,/^[\s\S]+/]]),["regex"]);function _t(pe){var N=pe.langExtension;try{var xe=v(pe.sourceNode,pe.pre),Pe=xe.sourceCode;pe.sourceCode=Pe,pe.spans=xe.spans,pe.basePos=0,Yt(N,Pe)(pe),Mt(pe)}catch(z){d.console&&console.log(z&&z.stack||z)}}function Xt(pe,N,xe){var Pe=xe||!1,z=N||null,P=document.createElement("div");P.innerHTML="<pre>"+pe+"</pre>",P=P.firstChild,Pe&&vt(P,Pe,!0);var ce={langExtension:z,numberLines:Pe,sourceNode:P,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return _t(ce),P.innerHTML}function lt(pe,N){var xe=N||document.body,Pe=xe.ownerDocument||document;function z(et){return xe.getElementsByTagName(et)}for(var P=[z("pre"),z("code"),z("xmp")],ce=[],Ce=0;Ce<P.length;++Ce)for(var de=0,Q=P[Ce].length;de<Q;++de)ce.push(P[Ce][de]);P=null;var he=Date;he.now||(he={now:function(){return+new Date}});var Oe=0,Re=/\blang(?:uage)?-([\w.]+)(?!\S)/,qe=/\bprettyprint\b/,Ye=/\bprettyprinted\b/,Et=/pre|xmp/i,dt=/^code$/i,ge=/^(?:pre|code|xmp)$/i,Ae={};function at(){for(var et=d.PR_SHOULD_USE_CONTINUATION?he.now()+250:1/0;Oe<ce.length&&he.now()<et;Oe++){for(var Qe=ce[Oe],St=Ae,Tt=Qe;Tt=Tt.previousSibling;){var He=Tt.nodeType,Wt=(He===7||He===8)&&Tt.nodeValue;if(Wt?!/^\??prettify\b/.test(Wt):He!==3||/\S/.test(Tt.nodeValue))break;if(Wt){St={},Wt.replace(/\b(\w+)=([\w:.%+-]+)/g,function($e,ut,At){St[ut]=At});break}}var fn=Qe.className;if((St!==Ae||qe.test(fn))&&!Ye.test(fn)){for(var Rt=!1,qt=Qe.parentNode;qt;qt=qt.parentNode){var Ke=qt.tagName;if(ge.test(Ke)&&qt.className&&qe.test(qt.className)){Rt=!0;break}}if(!Rt){Qe.className+=" prettyprinted";var ke=St.lang;if(!ke){ke=fn.match(Re);var Ne;!ke&&(Ne=ue(Qe))&&dt.test(Ne.tagName)&&(ke=Ne.className.match(Re)),ke&&(ke=ke[1])}var I;if(Et.test(Qe.tagName))I=1;else{var ee=Qe.currentStyle,fe=Pe.defaultView,ve=ee?ee.whiteSpace:fe&&fe.getComputedStyle?fe.getComputedStyle(Qe,null).getPropertyValue("white-space"):0;I=ve&&ve.substring(0,3)==="pre"}var ye=St.linenums;(ye=ye==="true"||+ye)||(ye=fn.match(/\blinenums\b(?::(\d+))?/),ye=ye?ye[1]&&ye[1].length?+ye[1]:!0:!1),ye&&vt(Qe,ye,I);var Ue={langExtension:ke,sourceNode:Qe,numberLines:ye,pre:I,sourceCode:null,basePos:null,spans:null,decorations:null};_t(Ue)}}}Oe<ce.length?d.setTimeout(at,250):typeof pe=="function"&&pe()}at()}var tt=d.PR={createSimpleLexer:Ie,registerLangHandler:we,sourceDecorator:Je,PR_ATTRIB_NAME:k,PR_ATTRIB_VALUE:F,PR_COMMENT:V,PR_DECLARATION:Fe,PR_KEYWORD:x,PR_LITERAL:H,PR_NOCODE:G,PR_PLAIN:se,PR_PUNCTUATION:q,PR_SOURCE:Z,PR_STRING:R,PR_TAG:ie,PR_TYPE:X,prettyPrintOne:h?d.prettyPrintOne=Xt:oe=Xt,prettyPrint:B=h?d.prettyPrint=lt:B=lt},Te=d.define;typeof Te=="function"&&Te.amd&&Te("google-code-prettify",[],function(){return tt})})()},25769:function(Rn,Gt,E){"use strict";var h=E(98040),le={"text/plain":"Text","text/html":"Url",default:"Text"},ne="Copy to clipboard: #{key}, Enter";function oe(d){var me=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return d.replace(/#{\s*key\s*}/g,me)}function B(d,me){var re,o,y,T,m,_,b=!1;me||(me={}),re=me.debug||!1;try{y=h(),T=document.createRange(),m=document.getSelection(),_=document.createElement("span"),_.textContent=d,_.ariaHidden="true",_.style.all="unset",_.style.position="fixed",_.style.top=0,_.style.clip="rect(0, 0, 0, 0)",_.style.whiteSpace="pre",_.style.webkitUserSelect="text",_.style.MozUserSelect="text",_.style.msUserSelect="text",_.style.userSelect="text",_.addEventListener("copy",function(K){if(K.stopPropagation(),me.format)if(K.preventDefault(),typeof K.clipboardData=="undefined"){re&&console.warn("unable to use e.clipboardData"),re&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var W=le[me.format]||le.default;window.clipboardData.setData(W,d)}else K.clipboardData.clearData(),K.clipboardData.setData(me.format,d);me.onCopy&&(K.preventDefault(),me.onCopy(K.clipboardData))}),document.body.appendChild(_),T.selectNodeContents(_),m.addRange(T);var L=document.execCommand("copy");if(!L)throw new Error("copy command was unsuccessful");b=!0}catch(K){re&&console.error("unable to copy using execCommand: ",K),re&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(me.format||"text",d),me.onCopy&&me.onCopy(window.clipboardData),b=!0}catch(W){re&&console.error("unable to copy using clipboardData: ",W),re&&console.error("falling back to prompt"),o=oe("message"in me?me.message:ne),window.prompt(o,d)}}finally{m&&(typeof m.removeRange=="function"?m.removeRange(T):m.removeAllRanges()),_&&document.body.removeChild(_),y()}return b}Rn.exports=B},53184:function(Rn,Gt,E){"use strict";var h,le;function ne(oe,B,d){var me=function(re,o){return oe.js_beautify(re,o)};return me.js=oe.js_beautify,me.css=B.css_beautify,me.html=d.html_beautify,me.js_beautify=oe.js_beautify,me.css_beautify=B.css_beautify,me.html_beautify=d.html_beautify,me}h=[E(58553),E(87804),E(40998)],le=function(oe,B,d){return ne(oe,B,d)}.apply(Gt,h),le!==void 0&&(Rn.exports=le)},87804:function(Rn,Gt){var E,h;(function(){var le;(function(){"use strict";var oe=[,,function(re){function o(m){this.__parent=m,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 m=new o(this.__parent);return m.set_indent(this.__indent_count,this.__alignment_count),m},o.prototype.item=function(m){return m<0?this.__items[this.__items.length+m]:this.__items[m]},o.prototype.has_match=function(m){for(var _=this.__items.length-1;_>=0;_--)if(this.__items[_].match(m))return!0;return!1},o.prototype.set_indent=function(m,_){this.is_empty()&&(this.__indent_count=m||0,this.__alignment_count=_||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 m=this.__parent.current_line;return m.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),m.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),m.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,m.__items[0]===" "&&(m.__items.splice(0,1),m.__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(m){this.__items.push(m);var _=m.lastIndexOf(`
`);_!==-1?this.__character_count=m.length-_:this.__character_count+=m.length},o.prototype.pop=function(){var m=null;return this.is_empty()||(m=this.__items.pop(),this.__character_count-=m.length),m},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 m="";return this.is_empty()?this.__parent.indent_empty_lines&&(m=this.__parent.get_indent_string(this.__indent_count)):(m=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),m+=this.__items.join("")),m};function y(m,_){this.__cache=[""],this.__indent_size=m.indent_size,this.__indent_string=m.indent_char,m.indent_with_tabs||(this.__indent_string=new Array(m.indent_size+1).join(m.indent_char)),_=_||"",m.indent_level>0&&(_=new Array(m.indent_level+1).join(this.__indent_string)),this.__base_string=_,this.__base_string_length=_.length}y.prototype.get_indent_size=function(m,_){var b=this.__base_string_length;return _=_||0,m<0&&(b=0),b+=m*this.__indent_size,b+=_,b},y.prototype.get_indent_string=function(m,_){var b=this.__base_string;return _=_||0,m<0&&(m=0,b=""),_+=m*this.__indent_size,this.__ensure_cache(_),b+=this.__cache[_],b},y.prototype.__ensure_cache=function(m){for(;m>=this.__cache.length;)this.__add_column()},y.prototype.__add_column=function(){var m=this.__cache.length,_=0,b="";this.__indent_size&&m>=this.__indent_size&&(_=Math.floor(m/this.__indent_size),m-=_*this.__indent_size,b=new Array(_+1).join(this.__indent_string)),m&&(b+=new Array(m+1).join(" ")),this.__cache.push(b)};function T(m,_){this.__indent_cache=new y(m,_),this.raw=!1,this._end_with_newline=m.end_with_newline,this.indent_size=m.indent_size,this.wrap_line_length=m.wrap_line_length,this.indent_empty_lines=m.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()}T.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},T.prototype.get_line_number=function(){return this.__lines.length},T.prototype.get_indent_string=function(m,_){return this.__indent_cache.get_indent_string(m,_)},T.prototype.get_indent_size=function(m,_){return this.__indent_cache.get_indent_size(m,_)},T.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},T.prototype.add_new_line=function(m){return this.is_empty()||!m&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},T.prototype.get_code=function(m){this.trim(!0);var _=this.current_line.pop();_&&(_[_.length-1]===`
`&&(_=_.replace(/\n+$/g,"")),this.current_line.push(_)),this._end_with_newline&&this.__add_outputline();var b=this.__lines.join(`
`);return m!==`
`&&(b=b.replace(/[\n]/g,m)),b},T.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},T.prototype.set_indent=function(m,_){return m=m||0,_=_||0,this.next_line.set_indent(m,_),this.__lines.length>1?(this.current_line.set_indent(m,_),!0):(this.current_line.set_indent(),!1)},T.prototype.add_raw_token=function(m){for(var _=0;_<m.newlines;_++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(m.whitespace_before),this.current_line.push(m.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},T.prototype.add_token=function(m){this.__add_space_before_token(),this.current_line.push(m),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},T.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(" "))},T.prototype.remove_indent=function(m){for(var _=this.__lines.length;m<_;)this.__lines[m]._remove_indent(),m++;this.current_line._remove_wrap_indent()},T.prototype.trim=function(m){for(m=m===void 0?!1:m,this.current_line.trim();m&&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},T.prototype.just_added_newline=function(){return this.current_line.is_empty()},T.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},T.prototype.ensure_empty_line_above=function(m,_){for(var b=this.__lines.length-2;b>=0;){var L=this.__lines[b];if(L.is_empty())break;if(L.item(0).indexOf(m)!==0&&L.item(-1)!==_){this.__lines.splice(b+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}b--}},re.exports.Output=T},,,,function(re){function o(m,_){this.raw_options=y(m,_),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(m,_){var b=this.raw_options[m],L=_||[];return typeof b=="object"?b!==null&&typeof b.concat=="function"&&(L=b.concat()):typeof b=="string"&&(L=b.split(/[^a-zA-Z0-9_\/\-]+/)),L},o.prototype._get_boolean=function(m,_){var b=this.raw_options[m],L=b===void 0?!!_:!!b;return L},o.prototype._get_characters=function(m,_){var b=this.raw_options[m],L=_||"";return typeof b=="string"&&(L=b.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),L},o.prototype._get_number=function(m,_){var b=this.raw_options[m];_=parseInt(_,10),isNaN(_)&&(_=0);var L=parseInt(b,10);return isNaN(L)&&(L=_),L},o.prototype._get_selection=function(m,_,b){var L=this._get_selection_list(m,_,b);if(L.length!==1)throw new Error("Invalid Option Value: The option '"+m+`' can only be one of the following values:
`+_+`
You passed in: '`+this.raw_options[m]+"'");return L[0]},o.prototype._get_selection_list=function(m,_,b){if(!_||_.length===0)throw new Error("Selection list cannot be empty.");if(b=b||[_[0]],!this._is_valid_selection(b,_))throw new Error("Invalid Default Value!");var L=this._get_array(m,b);if(!this._is_valid_selection(L,_))throw new Error("Invalid Option Value: The option '"+m+`' can contain only the following values:
`+_+`
You passed in: '`+this.raw_options[m]+"'");return L},o.prototype._is_valid_selection=function(m,_){return m.length&&_.length&&!m.some(function(b){return _.indexOf(b)===-1})};function y(m,_){var b={};m=T(m);var L;for(L in m)L!==_&&(b[L]=m[L]);if(_&&m[_])for(L in m[_])b[L]=m[_][L];return b}function T(m){var _={},b;for(b in m){var L=b.replace(/-/g,"_");_[L]=m[b]}return _}re.exports.Options=o,re.exports.normalizeOpts=T,re.exports.mergeOpts=y},,function(re){var o=RegExp.prototype.hasOwnProperty("sticky");function y(T){this.__input=T||"",this.__input_length=this.__input.length,this.__position=0}y.prototype.restart=function(){this.__position=0},y.prototype.back=function(){this.__position>0&&(this.__position-=1)},y.prototype.hasNext=function(){return this.__position<this.__input_length},y.prototype.next=function(){var T=null;return this.hasNext()&&(T=this.__input.charAt(this.__position),this.__position+=1),T},y.prototype.peek=function(T){var m=null;return T=T||0,T+=this.__position,T>=0&&T<this.__input_length&&(m=this.__input.charAt(T)),m},y.prototype.__match=function(T,m){T.lastIndex=m;var _=T.exec(this.__input);return _&&!(o&&T.sticky)&&_.index!==m&&(_=null),_},y.prototype.test=function(T,m){return m=m||0,m+=this.__position,m>=0&&m<this.__input_length?!!this.__match(T,m):!1},y.prototype.testChar=function(T,m){var _=this.peek(m);return T.lastIndex=0,_!==null&&T.test(_)},y.prototype.match=function(T){var m=this.__match(T,this.__position);return m?this.__position+=m[0].length:m=null,m},y.prototype.read=function(T,m,_){var b="",L;return T&&(L=this.match(T),L&&(b+=L[0])),m&&(L||!T)&&(b+=this.readUntil(m,_)),b},y.prototype.readUntil=function(T,m){var _="",b=this.__position;T.lastIndex=this.__position;var L=T.exec(this.__input);return L?(b=L.index,m&&(b+=L[0].length)):b=this.__input_length,_=this.__input.substring(this.__position,b),this.__position=b,_},y.prototype.readUntilAfter=function(T){return this.readUntil(T,!0)},y.prototype.get_regexp=function(T,m){var _=null,b="g";return m&&o&&(b="y"),typeof T=="string"&&T!==""?_=new RegExp(T,b):T&&(_=new RegExp(T.source,b)),_},y.prototype.get_literal_regexp=function(T){return RegExp(T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},y.prototype.peekUntilAfter=function(T){var m=this.__position,_=this.readUntilAfter(T);return this.__position=m,_},y.prototype.lookBack=function(T){var m=this.__position-1;return m>=T.length&&this.__input.substring(m-T.length,m).toLowerCase()===T},re.exports.InputScanner=y},,,,,function(re){function o(y,T){y=typeof y=="string"?y:y.source,T=typeof T=="string"?T:T.source,this.__directives_block_pattern=new RegExp(y+/ beautify( \w+[:]\w+)+ /.source+T,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(y+/\sbeautify\signore:end\s/.source+T,"g")}o.prototype.get_directives=function(y){if(!y.match(this.__directives_block_pattern))return null;var T={};this.__directive_pattern.lastIndex=0;for(var m=this.__directive_pattern.exec(y);m;)T[m[1]]=m[2],m=this.__directive_pattern.exec(y);return T},o.prototype.readIgnored=function(y){return y.readUntilAfter(this.__directives_end_ignore_pattern)},re.exports.Directives=o},,function(re,o,y){var T=y(16).Beautifier,m=y(17).Options;function _(b,L){var K=new T(b,L);return K.beautify()}re.exports=_,re.exports.defaultOptions=function(){return new m}},function(re,o,y){var T=y(17).Options,m=y(2).Output,_=y(8).InputScanner,b=y(13).Directives,L=new b(/\/\*/,/\*\//),K=/\r\n|[\r\n]/,W=/\r\n|[\r\n]/g,$=/\s/,O=/(?:\s|\n)+/g,U=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,R=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function x(V,X){this._source_text=V||"",this._options=new T(X),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"]}x.prototype.eatString=function(V){var X="";for(this._ch=this._input.next();this._ch;){if(X+=this._ch,this._ch==="\\")X+=this._input.next();else if(V.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return X},x.prototype.eatWhitespace=function(V){for(var X=$.test(this._input.peek()),H=0;$.test(this._input.peek());)this._ch=this._input.next(),V&&this._ch===`
`&&(H===0||H<this._options.max_preserve_newlines)&&(H++,this._output.add_new_line(!0));return X},x.prototype.foundNestedPseudoClass=function(){for(var V=0,X=1,H=this._input.peek(X);H;){if(H==="{")return!0;if(H==="(")V+=1;else if(H===")"){if(V===0)return!1;V-=1}else if(H===";"||H==="}")return!1;X++,H=this._input.peek(X)}return!1},x.prototype.print_string=function(V){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(V)},x.prototype.preserveSingleSpace=function(V){V&&(this._output.space_before_token=!0)},x.prototype.indent=function(){this._indentLevel++},x.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},x.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var V=this._source_text,X=this._options.eol;X==="auto"&&(X=`
`,V&&K.test(V||"")&&(X=V.match(K)[0])),V=V.replace(W,`
`);var H=V.match(/^[\t ]*/)[0];this._output=new m(this._options,H),this._input=new _(V),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var q=0,se=!1,ie=!1,Fe=!1,Z=!1,k=!1,F=this._ch,G=!1,J,j,v;J=this._input.read(O),j=J!=="",v=F,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),F=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var g=this._input.read(U),M=L.get_directives(g);M&&M.ignore==="start"&&(g+=L.readIgnored(this._input)),this.print_string(g),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(R)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(j),this.print_string(this._ch);var ue=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ue.match(/[ :]$/)&&(ue=this.eatString(": ").replace(/\s+$/,""),this.print_string(ue),this._output.space_before_token=!0),q===0&&ue.indexOf(":")!==-1&&(ie=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(j),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Ie=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Ie.match(/[ :]$/)&&(Ie=this.eatString(": ").replace(/\s+$/,""),this.print_string(Ie),this._output.space_before_token=!0),q===0&&Ie.indexOf(":")!==-1?(ie=!0,this.indent()):Ie in this.NESTED_AT_RULE?(this._nestedLevel+=1,Ie in this.CONDITIONAL_GROUP_RULE&&(Fe=!0)):q===0&&!ie&&(Z=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(j),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")ie&&(ie=!1,this.outdent()),Z=!1,Fe?(Fe=!1,se=this._indentLevel>=this._nestedLevel):se=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&se&&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)):(v==="("?this._output.space_before_token=!1:v!==","&&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(),v==="{"&&this._output.trim(!0),ie&&(this.outdent(),ie=!1),this.print_string(this._ch),se=!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 Je=0;Je<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Je++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Je])){G=!0;break}(se||Fe)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!Z&&q===0?(this.print_string(":"),ie||(ie=!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 Dt=v==='"'||v==="'";this.preserveSingleSpace(Dt||j),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")G=!1,q===0?(ie&&(this.outdent(),ie=!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(),q++,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(")")),q&&(q--,this.outdent()));else{var vt=!1;this._input.lookBack("with")&&(vt=!0),this.preserveSingleSpace(j||vt),this.print_string(this._ch),ie&&v==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),k=!0):(this.eatWhitespace(),q++,this.indent())}else if(this._ch===")")q&&(q--,this.outdent()),k&&this._input.peek()===";"&&this._options.selector_separator_newline&&(k=!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&&(!ie||k)&&q===0&&!Z?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!ie&&q===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&&$.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(j),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),$.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 Mt=v==='"'||v==="'";this.preserveSingleSpace(Mt||j),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&G&&this._output.add_new_line()}var Bt=this._output.get_code(X);return Bt},re.exports.Beautifier=x},function(re,o,y){var T=y(6).Options;function m(_){T.call(this,_,"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 L=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var K=0;K<L.length;K++)L[K]!=="expand"?this.brace_style="collapse":this.brace_style=L[K]}m.prototype=new T,re.exports.Options=m}],B={};function d(re){var o=B[re];if(o!==void 0)return o.exports;var y=B[re]={exports:{}};return oe[re](y,y.exports,d),y.exports}var me=d(15);le=me})();var ne=le;E=[],h=function(){return{css_beautify:ne}}.apply(Gt,E),h!==void 0&&(Rn.exports=h)})()},40998:function(Rn,Gt,E){var h,le;(function(){var ne;(function(){"use strict";var me=[,,function(T){function m(L){this.__parent=L,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=[]}m.prototype.clone_empty=function(){var L=new m(this.__parent);return L.set_indent(this.__indent_count,this.__alignment_count),L},m.prototype.item=function(L){return L<0?this.__items[this.__items.length+L]:this.__items[L]},m.prototype.has_match=function(L){for(var K=this.__items.length-1;K>=0;K--)if(this.__items[K].match(L))return!0;return!1},m.prototype.set_indent=function(L,K){this.is_empty()&&(this.__indent_count=L||0,this.__alignment_count=K||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},m.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)},m.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},m.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var L=this.__parent.current_line;return L.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),L.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),L.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,L.__items[0]===" "&&(L.__items.splice(0,1),L.__character_count-=1),!0}return!1},m.prototype.is_empty=function(){return this.__items.length===0},m.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},m.prototype.push=function(L){this.__items.push(L);var K=L.lastIndexOf(`
`);K!==-1?this.__character_count=L.length-K:this.__character_count+=L.length},m.prototype.pop=function(){var L=null;return this.is_empty()||(L=this.__items.pop(),this.__character_count-=L.length),L},m.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},m.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},m.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},m.prototype.toString=function(){var L="";return this.is_empty()?this.__parent.indent_empty_lines&&(L=this.__parent.get_indent_string(this.__indent_count)):(L=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),L+=this.__items.join("")),L};function _(L,K){this.__cache=[""],this.__indent_size=L.indent_size,this.__indent_string=L.indent_char,L.indent_with_tabs||(this.__indent_string=new Array(L.indent_size+1).join(L.indent_char)),K=K||"",L.indent_level>0&&(K=new Array(L.indent_level+1).join(this.__indent_string)),this.__base_string=K,this.__base_string_length=K.length}_.prototype.get_indent_size=function(L,K){var W=this.__base_string_length;return K=K||0,L<0&&(W=0),W+=L*this.__indent_size,W+=K,W},_.prototype.get_indent_string=function(L,K){var W=this.__base_string;return K=K||0,L<0&&(L=0,W=""),K+=L*this.__indent_size,this.__ensure_cache(K),W+=this.__cache[K],W},_.prototype.__ensure_cache=function(L){for(;L>=this.__cache.length;)this.__add_column()},_.prototype.__add_column=function(){var L=this.__cache.length,K=0,W="";this.__indent_size&&L>=this.__indent_size&&(K=Math.floor(L/this.__indent_size),L-=K*this.__indent_size,W=new Array(K+1).join(this.__indent_string)),L&&(W+=new Array(L+1).join(" ")),this.__cache.push(W)};function b(L,K){this.__indent_cache=new _(L,K),this.raw=!1,this._end_with_newline=L.end_with_newline,this.indent_size=L.indent_size,this.wrap_line_length=L.wrap_line_length,this.indent_empty_lines=L.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new m(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(L,K){return this.__indent_cache.get_indent_string(L,K)},b.prototype.get_indent_size=function(L,K){return this.__indent_cache.get_indent_size(L,K)},b.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},b.prototype.add_new_line=function(L){return this.is_empty()||!L&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},b.prototype.get_code=function(L){this.trim(!0);var K=this.current_line.pop();K&&(K[K.length-1]===`
`&&(K=K.replace(/\n+$/g,"")),this.current_line.push(K)),this._end_with_newline&&this.__add_outputline();var W=this.__lines.join(`
`);return L!==`
`&&(W=W.replace(/[\n]/g,L)),W},b.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},b.prototype.set_indent=function(L,K){return L=L||0,K=K||0,this.next_line.set_indent(L,K),this.__lines.length>1?(this.current_line.set_indent(L,K),!0):(this.current_line.set_indent(),!1)},b.prototype.add_raw_token=function(L){for(var K=0;K<L.newlines;K++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(L.whitespace_before),this.current_line.push(L.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},b.prototype.add_token=function(L){this.__add_space_before_token(),this.current_line.push(L),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(L){for(var K=this.__lines.length;L<K;)this.__lines[L]._remove_indent(),L++;this.current_line._remove_wrap_indent()},b.prototype.trim=function(L){for(L=L===void 0?!1:L,this.current_line.trim();L&&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(L,K){for(var W=this.__lines.length-2;W>=0;){var $=this.__lines[W];if($.is_empty())break;if($.item(0).indexOf(L)!==0&&$.item(-1)!==K){this.__lines.splice(W+1,0,new m(this)),this.previous_line=this.__lines[this.__lines.length-2];break}W--}},T.exports.Output=b},function(T){function m(_,b,L,K){this.type=_,this.text=b,this.comments_before=null,this.newlines=L||0,this.whitespace_before=K||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}T.exports.Token=m},,,function(T){function m(L,K){this.raw_options=_(L,K),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"])}m.prototype._get_array=function(L,K){var W=this.raw_options[L],$=K||[];return typeof W=="object"?W!==null&&typeof W.concat=="function"&&($=W.concat()):typeof W=="string"&&($=W.split(/[^a-zA-Z0-9_\/\-]+/)),$},m.prototype._get_boolean=function(L,K){var W=this.raw_options[L],$=W===void 0?!!K:!!W;return $},m.prototype._get_characters=function(L,K){var W=this.raw_options[L],$=K||"";return typeof W=="string"&&($=W.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),$},m.prototype._get_number=function(L,K){var W=this.raw_options[L];K=parseInt(K,10),isNaN(K)&&(K=0);var $=parseInt(W,10);return isNaN($)&&($=K),$},m.prototype._get_selection=function(L,K,W){var $=this._get_selection_list(L,K,W);if($.length!==1)throw new Error("Invalid Option Value: The option '"+L+`' can only be one of the following values:
`+K+`
You passed in: '`+this.raw_options[L]+"'");return $[0]},m.prototype._get_selection_list=function(L,K,W){if(!K||K.length===0)throw new Error("Selection list cannot be empty.");if(W=W||[K[0]],!this._is_valid_selection(W,K))throw new Error("Invalid Default Value!");var $=this._get_array(L,W);if(!this._is_valid_selection($,K))throw new Error("Invalid Option Value: The option '"+L+`' can contain only the following values:
`+K+`
You passed in: '`+this.raw_options[L]+"'");return $},m.prototype._is_valid_selection=function(L,K){return L.length&&K.length&&!L.some(function(W){return K.indexOf(W)===-1})};function _(L,K){var W={};L=b(L);var $;for($ in L)$!==K&&(W[$]=L[$]);if(K&&L[K])for($ in L[K])W[$]=L[K][$];return W}function b(L){var K={},W;for(W in L){var $=W.replace(/-/g,"_");K[$]=L[W]}return K}T.exports.Options=m,T.exports.normalizeOpts=b,T.exports.mergeOpts=_},,function(T){var m=RegExp.prototype.hasOwnProperty("sticky");function _(b){this.__input=b||"",this.__input_length=this.__input.length,this.__position=0}_.prototype.restart=function(){this.__position=0},_.prototype.back=function(){this.__position>0&&(this.__position-=1)},_.prototype.hasNext=function(){return this.__position<this.__input_length},_.prototype.next=function(){var b=null;return this.hasNext()&&(b=this.__input.charAt(this.__position),this.__position+=1),b},_.prototype.peek=function(b){var L=null;return b=b||0,b+=this.__position,b>=0&&b<this.__input_length&&(L=this.__input.charAt(b)),L},_.prototype.__match=function(b,L){b.lastIndex=L;var K=b.exec(this.__input);return K&&!(m&&b.sticky)&&K.index!==L&&(K=null),K},_.prototype.test=function(b,L){return L=L||0,L+=this.__position,L>=0&&L<this.__input_length?!!this.__match(b,L):!1},_.prototype.testChar=function(b,L){var K=this.peek(L);return b.lastIndex=0,K!==null&&b.test(K)},_.prototype.match=function(b){var L=this.__match(b,this.__position);return L?this.__position+=L[0].length:L=null,L},_.prototype.read=function(b,L,K){var W="",$;return b&&($=this.match(b),$&&(W+=$[0])),L&&($||!b)&&(W+=this.readUntil(L,K)),W},_.prototype.readUntil=function(b,L){var K="",W=this.__position;b.lastIndex=this.__position;var $=b.exec(this.__input);return $?(W=$.index,L&&(W+=$[0].length)):W=this.__input_length,K=this.__input.substring(this.__position,W),this.__position=W,K},_.prototype.readUntilAfter=function(b){return this.readUntil(b,!0)},_.prototype.get_regexp=function(b,L){var K=null,W="g";return L&&m&&(W="y"),typeof b=="string"&&b!==""?K=new RegExp(b,W):b&&(K=new RegExp(b.source,W)),K},_.prototype.get_literal_regexp=function(b){return RegExp(b.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},_.prototype.peekUntilAfter=function(b){var L=this.__position,K=this.readUntilAfter(b);return this.__position=L,K},_.prototype.lookBack=function(b){var L=this.__position-1;return L>=b.length&&this.__input.substring(L-b.length,L).toLowerCase()===b},T.exports.InputScanner=_},function(T,m,_){var b=_(8).InputScanner,L=_(3).Token,K=_(10).TokenStream,W=_(11).WhitespacePattern,$={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},O=function(U,R){this._input=new b(U),this._options=R||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new W(this._input)};O.prototype.tokenize=function(){this._input.restart(),this.__tokens=new K,this._reset();for(var U,R=new L($.START,""),x=null,V=[],X=new K;R.type!==$.EOF;){for(U=this._get_next_token(R,x);this._is_comment(U);)X.add(U),U=this._get_next_token(R,x);X.isEmpty()||(U.comments_before=X,X=new K),U.parent=x,this._is_opening(U)?(V.push(x),x=U):x&&this._is_closing(U,x)&&(U.opened=x,x.closed=U,x=V.pop(),U.parent=x),U.previous=R,R.next=U,this.__tokens.add(U),R=U}return this.__tokens},O.prototype._is_first_token=function(){return this.__tokens.isEmpty()},O.prototype._reset=function(){},O.prototype._get_next_token=function(U,R){this._readWhitespace();var x=this._input.read(/.+/g);return x?this._create_token($.RAW,x):this._create_token($.EOF,"")},O.prototype._is_comment=function(U){return!1},O.prototype._is_opening=function(U){return!1},O.prototype._is_closing=function(U,R){return!1},O.prototype._create_token=function(U,R){var x=new L(U,R,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return x},O.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},T.exports.Tokenizer=O,T.exports.TOKEN=$},function(T){function m(_){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=_}m.prototype.restart=function(){this.__position=0},m.prototype.isEmpty=function(){return this.__tokens_length===0},m.prototype.hasNext=function(){return this.__position<this.__tokens_length},m.prototype.next=function(){var _=null;return this.hasNext()&&(_=this.__tokens[this.__position],this.__position+=1),_},m.prototype.peek=function(_){var b=null;return _=_||0,_+=this.__position,_>=0&&_<this.__tokens_length&&(b=this.__tokens[_]),b},m.prototype.add=function(_){this.__parent_token&&(_.parent=this.__parent_token),this.__tokens.push(_),this.__tokens_length+=1},T.exports.TokenStream=m},function(T,m,_){var b=_(12).Pattern;function L(K,W){b.call(this,K,W),W?this._line_regexp=this._input.get_regexp(W._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}L.prototype=new b,L.prototype.__set_whitespace_patterns=function(K,W){K+="\\t ",W+="\\n\\r",this._match_pattern=this._input.get_regexp("["+K+W+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+W+"]")},L.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var K=this._input.read(this._match_pattern);if(K===" ")this.whitespace_before_token=" ";else if(K){var W=this.__split(this._newline_regexp,K);this.newline_count=W.length-1,this.whitespace_before_token=W[this.newline_count]}return K},L.prototype.matching=function(K,W){var $=this._create();return $.__set_whitespace_patterns(K,W),$._update(),$},L.prototype._create=function(){return new L(this._input,this)},L.prototype.__split=function(K,W){K.lastIndex=0;for(var $=0,O=[],U=K.exec(W);U;)O.push(W.substring($,U.index)),$=U.index+U[0].length,U=K.exec(W);return $<W.length?O.push(W.substring($,W.length)):O.push(""),O},T.exports.WhitespacePattern=L},function(T){function m(_,b){this._input=_,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)}m.prototype.read=function(){var _=this._input.read(this._starting_pattern);return(!this._starting_pattern||_)&&(_+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),_},m.prototype.read_match=function(){return this._input.match(this._match_pattern)},m.prototype.until_after=function(_){var b=this._create();return b._until_after=!0,b._until_pattern=this._input.get_regexp(_),b._update(),b},m.prototype.until=function(_){var b=this._create();return b._until_after=!1,b._until_pattern=this._input.get_regexp(_),b._update(),b},m.prototype.starting_with=function(_){var b=this._create();return b._starting_pattern=this._input.get_regexp(_,!0),b._update(),b},m.prototype.matching=function(_){var b=this._create();return b._match_pattern=this._input.get_regexp(_,!0),b._update(),b},m.prototype._create=function(){return new m(this._input,this)},m.prototype._update=function(){},T.exports.Pattern=m},function(T){function m(_,b){_=typeof _=="string"?_:_.source,b=typeof b=="string"?b:b.source,this.__directives_block_pattern=new RegExp(_+/ beautify( \w+[:]\w+)+ /.source+b,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(_+/\sbeautify\signore:end\s/.source+b,"g")}m.prototype.get_directives=function(_){if(!_.match(this.__directives_block_pattern))return null;var b={};this.__directive_pattern.lastIndex=0;for(var L=this.__directive_pattern.exec(_);L;)b[L[1]]=L[2],L=this.__directive_pattern.exec(_);return b},m.prototype.readIgnored=function(_){return _.readUntilAfter(this.__directives_end_ignore_pattern)},T.exports.Directives=m},function(T,m,_){var b=_(12).Pattern,L={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function K(W,$){b.call(this,W,$),this.__template_pattern=null,this._disabled=Object.assign({},L),this._excluded=Object.assign({},L),$&&(this.__template_pattern=this._input.get_regexp($.__template_pattern),this._excluded=Object.assign(this._excluded,$._excluded),this._disabled=Object.assign(this._disabled,$._disabled));var O=new b(W);this.__patterns={handlebars_comment:O.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:O.starting_with(/{{{/).until_after(/}}}/),handlebars:O.starting_with(/{{/).until_after(/}}/),php:O.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:O.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:O.starting_with(/{%/).until_after(/%}/),django_value:O.starting_with(/{{/).until_after(/}}/),django_comment:O.starting_with(/{#/).until_after(/#}/),smarty:O.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:O.starting_with(/{\*/).until_after(/\*}/),smarty_literal:O.starting_with(/{literal}/).until_after(/{\/literal}/)}}K.prototype=new b,K.prototype._create=function(){return new K(this._input,this)},K.prototype._update=function(){this.__set_templated_pattern()},K.prototype.disable=function(W){var $=this._create();return $._disabled[W]=!0,$._update(),$},K.prototype.read_options=function(W){var $=this._create();for(var O in L)$._disabled[O]=W.templating.indexOf(O)===-1;return $._update(),$},K.prototype.exclude=function(W){var $=this._create();return $._excluded[W]=!0,$._update(),$},K.prototype.read=function(){var W="";this._match_pattern?W=this._input.read(this._starting_pattern):W=this._input.read(this._starting_pattern,this.__template_pattern);for(var $=this._read_template();$;)this._match_pattern?$+=this._input.read(this._match_pattern):$+=this._input.readUntil(this.__template_pattern),W+=$,$=this._read_template();return this._until_after&&(W+=this._input.readUntilAfter(this._until_pattern)),W},K.prototype.__set_templated_pattern=function(){var W=[];this._disabled.php||W.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||W.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||W.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||W.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(W.push(this.__patterns.django._starting_pattern.source),W.push(this.__patterns.django_value._starting_pattern.source),W.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||W.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&W.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+W.join("|")+")")},K.prototype._read_template=function(){var W="",$=this._input.peek();if($==="<"){var O=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&O==="?"&&(W=W||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&O==="%"&&(W=W||this.__patterns.erb.read())}else $==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(W=W||this.__patterns.handlebars_comment.read(),W=W||this.__patterns.handlebars_unescaped.read(),W=W||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(W=W||this.__patterns.django_value.read()),this._excluded.django||(W=W||this.__patterns.django_comment.read(),W=W||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(W=W||this.__patterns.smarty_comment.read(),W=W||this.__patterns.smarty_literal.read(),W=W||this.__patterns.smarty.read()));return W},T.exports.TemplatablePattern=K},,,,function(T,m,_){var b=_(19).Beautifier,L=_(20).Options;function K(W,$,O,U){var R=new b(W,$,O,U);return R.beautify()}T.exports=K,T.exports.defaultOptions=function(){return new L}},function(T,m,_){var b=_(20).Options,L=_(2).Output,K=_(21).Tokenizer,W=_(21).TOKEN,$=/\r\n|[\r\n]/,O=/\r\n|[\r\n]/g,U=function(Z,k){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 L(Z,k)};U.prototype.current_line_has_match=function(Z){return this._output.current_line.has_match(Z)},U.prototype.set_space_before_token=function(Z,k){this._output.space_before_token=Z,this._output.non_breaking_space=k},U.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},U.prototype.add_raw_token=function(Z){this._output.add_raw_token(Z)},U.prototype.print_preserved_newlines=function(Z){var k=0;Z.type!==W.TEXT&&Z.previous.type!==W.TEXT&&(k=Z.newlines?1:0),this.preserve_newlines&&(k=Z.newlines<this.max_preserve_newlines+1?Z.newlines:this.max_preserve_newlines+1);for(var F=0;F<k;F++)this.print_newline(F>0);return k!==0},U.prototype.traverse_whitespace=function(Z){return Z.whitespace_before||Z.newlines?(this.print_preserved_newlines(Z)||(this._output.space_before_token=!0),!0):!1},U.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},U.prototype.print_newline=function(Z){this._output.add_new_line(Z)},U.prototype.print_token=function(Z){Z.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(Z.text))},U.prototype.indent=function(){this.indent_level++},U.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},U.prototype.get_full_indent=function(Z){return Z=this.indent_level+(Z||0),Z<1?"":this._output.get_indent_string(Z)};var R=function(Z){for(var k=null,F=Z.next;F.type!==W.EOF&&Z.closed!==F;){if(F.type===W.ATTRIBUTE&&F.text==="type"){F.next&&F.next.type===W.EQUALS&&F.next.next&&F.next.next.type===W.VALUE&&(k=F.next.next.text);break}F=F.next}return k},x=function(Z,k){var F=null,G=null;return k.closed?(Z==="script"?F="text/javascript":Z==="style"&&(F="text/css"),F=R(k)||F,F.search("text/css")>-1?G="css":F.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?G="javascript":F.search(/(text|application|dojo)\/(x-)?(html)/)>-1?G="html":F.search(/test\/null/)>-1&&(G="null"),G):null};function V(Z,k){return k.indexOf(Z)!==-1}function X(Z,k,F){this.parent=Z||null,this.tag=k?k.tag_name:"",this.indent_level=F||0,this.parser_token=k||null}function H(Z){this._printer=Z,this._current_frame=null}H.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},H.prototype.record_tag=function(Z){var k=new X(this._current_frame,Z,this._printer.indent_level);this._current_frame=k},H.prototype._try_pop_frame=function(Z){var k=null;return Z&&(k=Z.parser_token,this._printer.indent_level=Z.indent_level,this._current_frame=Z.parent),k},H.prototype._get_frame=function(Z,k){for(var F=this._current_frame;F&&Z.indexOf(F.tag)===-1;){if(k&&k.indexOf(F.tag)!==-1){F=null;break}F=F.parent}return F},H.prototype.try_pop=function(Z,k){var F=this._get_frame([Z],k);return this._try_pop_frame(F)},H.prototype.indent_to_tag=function(Z){var k=this._get_frame(Z);k&&(this._printer.indent_level=k.indent_level)};function q(Z,k,F,G){this._source_text=Z||"",k=k||{},this._js_beautify=F,this._css_beautify=G,this._tag_stack=null;var J=new b(k,"html");this._options=J,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"}q.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var Z=this._source_text,k=this._options.eol;this._options.eol==="auto"&&(k=`
`,Z&&$.test(Z)&&(k=Z.match($)[0])),Z=Z.replace(O,`
`);var F=Z.match(/^[\t ]*/)[0],G={text:"",type:""},J=new se(this._options),j=new U(this._options,F),v=new K(Z,this._options).tokenize();this._tag_stack=new H(j);for(var g=null,M=v.next();M.type!==W.EOF;)M.type===W.TAG_OPEN||M.type===W.COMMENT?(g=this._handle_tag_open(j,M,J,G,v),J=g):M.type===W.ATTRIBUTE||M.type===W.EQUALS||M.type===W.VALUE||M.type===W.TEXT&&!J.tag_complete?g=this._handle_inside_tag(j,M,J,G):M.type===W.TAG_CLOSE?g=this._handle_tag_close(j,M,J):M.type===W.TEXT?g=this._handle_text(j,M,J):M.type===W.CONTROL_FLOW_OPEN?g=this._handle_control_flow_open(j,M):M.type===W.CONTROL_FLOW_CLOSE?g=this._handle_control_flow_close(j,M):j.add_raw_token(M),G=g,M=v.next();var ue=j._output.get_code(k);return ue},q.prototype._handle_control_flow_open=function(Z,k){var F={text:k.text,type:k.type};return Z.set_space_before_token(k.newlines||k.whitespace_before!=="",!0),k.newlines?Z.print_preserved_newlines(k):Z.set_space_before_token(k.newlines||k.whitespace_before!=="",!0),Z.print_token(k),Z.indent(),F},q.prototype._handle_control_flow_close=function(Z,k){var F={text:k.text,type:k.type};return Z.deindent(),k.newlines?Z.print_preserved_newlines(k):Z.set_space_before_token(k.newlines||k.whitespace_before!=="",!0),Z.print_token(k),F},q.prototype._handle_tag_close=function(Z,k,F){var G={text:k.text,type:k.type};return Z.alignment_size=0,F.tag_complete=!0,Z.set_space_before_token(k.newlines||k.whitespace_before!=="",!0),F.is_unformatted?Z.add_raw_token(k):(F.tag_start_char==="<"&&(Z.set_space_before_token(k.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&F.has_wrapped_attrs&&Z.print_newline(!1)),Z.print_token(k)),F.indent_content&&!(F.is_unformatted||F.is_content_unformatted)&&(Z.indent(),F.indent_content=!1),!F.is_inline_element&&!(F.is_unformatted||F.is_content_unformatted)&&Z.set_wrap_point(),G},q.prototype._handle_inside_tag=function(Z,k,F,G){var J=F.has_wrapped_attrs,j={text:k.text,type:k.type};return Z.set_space_before_token(k.newlines||k.whitespace_before!=="",!0),F.is_unformatted?Z.add_raw_token(k):F.tag_start_char==="{"&&k.type===W.TEXT?Z.print_preserved_newlines(k)?(k.newlines=0,Z.add_raw_token(k)):Z.print_token(k):(k.type===W.ATTRIBUTE?Z.set_space_before_token(!0):(k.type===W.EQUALS||k.type===W.VALUE&&k.previous.type===W.EQUALS)&&Z.set_space_before_token(!1),k.type===W.ATTRIBUTE&&F.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(Z.traverse_whitespace(k),J=J||k.newlines!==0),this._is_wrap_attributes_force&&F.attr_count>=this._options.wrap_attributes_min_attrs&&(G.type!==W.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(Z.print_newline(!1),J=!0)),Z.print_token(k),J=J||Z.previous_token_wrapped(),F.has_wrapped_attrs=J),j},q.prototype._handle_text=function(Z,k,F){var G={text:k.text,type:"TK_CONTENT"};return F.custom_beautifier_name?this._print_custom_beatifier_text(Z,k,F):F.is_unformatted||F.is_content_unformatted?Z.add_raw_token(k):(Z.traverse_whitespace(k),Z.print_token(k)),G},q.prototype._print_custom_beatifier_text=function(Z,k,F){var G=this;if(k.text!==""){var J=k.text,j,v=1,g="",M="";F.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?j=this._js_beautify:F.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?j=this._css_beautify:F.custom_beautifier_name==="html"&&(j=function(Mt,Bt){var we=new q(Mt,Bt,G._js_beautify,G._css_beautify);return we.beautify()}),this._options.indent_scripts==="keep"?v=0:this._options.indent_scripts==="separate"&&(v=-Z.indent_level);var ue=Z.get_full_indent(v);if(J=J.replace(/\n[ \t]*$/,""),F.custom_beautifier_name!=="html"&&J[0]==="<"&&J.match(/^(<!--|<!\[CDATA\[)/)){var Ie=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(J);if(!Ie){Z.add_raw_token(k);return}g=ue+Ie[1]+`
`,J=Ie[4],Ie[5]&&(M=ue+Ie[5]),J=J.replace(/\n[ \t]*$/,""),(Ie[2]||Ie[3].indexOf(`
`)!==-1)&&(Ie=Ie[3].match(/[ \t]+$/),Ie&&(k.whitespace_before=Ie[0]))}if(J)if(j){var Je=function(){this.eol=`
`};Je.prototype=this._options.raw_options;var Dt=new Je;J=j(ue+J,Dt)}else{var vt=k.whitespace_before;vt&&(J=J.replace(new RegExp(`
(`+vt+")?","g"),`
`)),J=ue+J.replace(/\n/g,`
`+ue)}g&&(J?J=g+J+`
`+M:J=g+M),Z.print_newline(!1),J&&(k.text=J,k.whitespace_before="",k.newlines=0,Z.add_raw_token(k),Z.print_newline(!0))}},q.prototype._handle_tag_open=function(Z,k,F,G,J){var j=this._get_tag_open_token(k);if((F.is_unformatted||F.is_content_unformatted)&&!F.is_empty_element&&k.type===W.TAG_OPEN&&!j.is_start_tag?(Z.add_raw_token(k),j.start_tag_token=this._tag_stack.try_pop(j.tag_name)):(Z.traverse_whitespace(k),this._set_tag_position(Z,k,j,F,G),j.is_inline_element||Z.set_wrap_point(),Z.print_token(k)),j.is_start_tag&&this._is_wrap_attributes_force){var v=0,g;do g=J.peek(v),g.type===W.ATTRIBUTE&&(j.attr_count+=1),v+=1;while(g.type!==W.EOF&&g.type!==W.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(j.alignment_size=k.text.length+1),!j.tag_complete&&!j.is_unformatted&&(Z.alignment_size=j.alignment_size),j};var se=function(Z,k,F){if(this.parent=k||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="",!F)this.tag_complete=!0;else{var G;this.tag_start_char=F.text[0],this.text=F.text,this.tag_start_char==="<"?(G=F.text.match(/^<([^\s>]*)/),this.tag_check=G?G[1]:""):(G=F.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=G?G[1]:"",(F.text.startsWith("{{#>")||F.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&F.next!==null?this.tag_check=F.next.text.split(" ")[0]:this.tag_check=F.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),F.type===W.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||F.closed&&F.closed.text==="/>";var J=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(J=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!Z.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(J)))}};q.prototype._get_tag_open_token=function(Z){var k=new se(this._options,this._tag_stack.get_parser_token(),Z);return k.alignment_size=this._options.wrap_attributes_indent_size,k.is_end_tag=k.is_end_tag||V(k.tag_check,this._options.void_elements),k.is_empty_element=k.tag_complete||k.is_start_tag&&k.is_end_tag,k.is_unformatted=!k.tag_complete&&V(k.tag_check,this._options.unformatted),k.is_content_unformatted=!k.is_empty_element&&V(k.tag_check,this._options.content_unformatted),k.is_inline_element=V(k.tag_name,this._options.inline)||this._options.inline_custom_elements&&k.tag_name.includes("-")||k.tag_start_char==="{",k},q.prototype._set_tag_position=function(Z,k,F,G,J){if(F.is_empty_element||(F.is_end_tag?F.start_tag_token=this._tag_stack.try_pop(F.tag_name):(this._do_optional_end_element(F)&&(F.is_inline_element||Z.print_newline(!1)),this._tag_stack.record_tag(F),(F.tag_name==="script"||F.tag_name==="style")&&!(F.is_unformatted||F.is_content_unformatted)&&(F.custom_beautifier_name=x(F.tag_check,k)))),V(F.tag_check,this._options.extra_liners)&&(Z.print_newline(!1),Z._output.just_added_blankline()||Z.print_newline(!0)),F.is_empty_element){if(F.tag_start_char==="{"&&F.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),F.indent_content=!0;var j=Z.current_line_has_match(/{{#if/);j||Z.print_newline(!1)}F.tag_name==="!--"&&J.type===W.TAG_CLOSE&&G.is_end_tag&&F.text.indexOf(`
`)===-1||(F.is_inline_element||F.is_unformatted||Z.print_newline(!1),this._calcluate_parent_multiline(Z,F))}else if(F.is_end_tag){var v=!1;v=F.start_tag_token&&F.start_tag_token.multiline_content,v=v||!F.is_inline_element&&!(G.is_inline_element||G.is_unformatted)&&!(J.type===W.TAG_CLOSE&&F.start_tag_token===G)&&J.type!=="TK_CONTENT",(F.is_content_unformatted||F.is_unformatted)&&(v=!1),v&&Z.print_newline(!1)}else F.indent_content=!F.custom_beautifier_name,F.tag_start_char==="<"&&(F.tag_name==="html"?F.indent_content=this._options.indent_inner_html:F.tag_name==="head"?F.indent_content=this._options.indent_head_inner_html:F.tag_name==="body"&&(F.indent_content=this._options.indent_body_inner_html)),!(F.is_inline_element||F.is_unformatted)&&(J.type!=="TK_CONTENT"||F.is_content_unformatted)&&Z.print_newline(!1),this._calcluate_parent_multiline(Z,F)},q.prototype._calcluate_parent_multiline=function(Z,k){k.parent&&Z._output.just_added_newline()&&!((k.is_inline_element||k.is_unformatted)&&k.parent.is_inline_element)&&(k.parent.multiline_content=!0)};var ie=["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"],Fe=["a","audio","del","ins","map","noscript","video"];q.prototype._do_optional_end_element=function(Z){var k=null;if(!(Z.is_empty_element||!Z.is_start_tag||!Z.parent)){if(Z.tag_name==="body")k=k||this._tag_stack.try_pop("head");else if(Z.tag_name==="li")k=k||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(Z.tag_name==="dd"||Z.tag_name==="dt")k=k||this._tag_stack.try_pop("dt",["dl"]),k=k||this._tag_stack.try_pop("dd",["dl"]);else if(Z.parent.tag_name==="p"&&ie.indexOf(Z.tag_name)!==-1){var F=Z.parent.parent;(!F||Fe.indexOf(F.tag_name)===-1)&&(k=k||this._tag_stack.try_pop("p"))}else Z.tag_name==="rp"||Z.tag_name==="rt"?(k=k||this._tag_stack.try_pop("rt",["ruby","rtc"]),k=k||this._tag_stack.try_pop("rp",["ruby","rtc"])):Z.tag_name==="optgroup"?k=k||this._tag_stack.try_pop("optgroup",["select"]):Z.tag_name==="option"?k=k||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):Z.tag_name==="colgroup"?k=k||this._tag_stack.try_pop("caption",["table"]):Z.tag_name==="thead"?(k=k||this._tag_stack.try_pop("caption",["table"]),k=k||this._tag_stack.try_pop("colgroup",["table"])):Z.tag_name==="tbody"||Z.tag_name==="tfoot"?(k=k||this._tag_stack.try_pop("caption",["table"]),k=k||this._tag_stack.try_pop("colgroup",["table"]),k=k||this._tag_stack.try_pop("thead",["table"]),k=k||this._tag_stack.try_pop("tbody",["table"])):Z.tag_name==="tr"?(k=k||this._tag_stack.try_pop("caption",["table"]),k=k||this._tag_stack.try_pop("colgroup",["table"]),k=k||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(Z.tag_name==="th"||Z.tag_name==="td")&&(k=k||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),k=k||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return Z.parent=this._tag_stack.get_parser_token(),k}},T.exports.Beautifier=q},function(T,m,_){var b=_(6).Options;function L(K){b.call(this,K,"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"])}L.prototype=new b,T.exports.Options=L},function(T,m,_){var b=_(9).Tokenizer,L=_(9).TOKEN,K=_(13).Directives,W=_(14).TemplatablePattern,$=_(12).Pattern,O={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:L.START,RAW:L.RAW,EOF:L.EOF},U=new K(/<\!--/,/-->/),R=function(x,V){b.call(this,x,V),this._current_tag_name="";var X=new W(this._input).read_options(this._options),H=new $(this._input);if(this.__patterns={word:X.until(/[\n\r\t <]/),word_control_flow_close_excluded:X.until(/[\n\r\t <}]/),single_quote:X.until_after(/'/),double_quote:X.until_after(/"/),attribute:X.until(/[\n\r\t =>]|\/>/),element_name:X.until(/[\n\r\t >\/]/),angular_control_flow_start:H.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:H.starting_with(/{{!--/).until_after(/--}}/),handlebars:H.starting_with(/{{/).until_after(/}}/),handlebars_open:H.until(/[\n\r\t }]/),handlebars_raw_close:H.until(/}}/),comment:H.starting_with(/<!--/).until_after(/-->/),cdata:H.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:H.starting_with(/<!\[/).until_after(/]>/),processing:H.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 q=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=H.matching(q).until_after(q)}};R.prototype=new b,R.prototype._is_comment=function(x){return!1},R.prototype._is_opening=function(x){return x.type===O.TAG_OPEN||x.type===O.CONTROL_FLOW_OPEN},R.prototype._is_closing=function(x,V){return x.type===O.TAG_CLOSE&&V&&((x.text===">"||x.text==="/>")&&V.text[0]==="<"||x.text==="}}"&&V.text[0]==="{"&&V.text[1]==="{")||x.type===O.CONTROL_FLOW_CLOSE&&x.text==="}"&&V.text.endsWith("{")},R.prototype._reset=function(){this._current_tag_name=""},R.prototype._get_next_token=function(x,V){var X=null;this._readWhitespace();var H=this._input.peek();return H===null?this._create_token(O.EOF,""):(X=X||this._read_open_handlebars(H,V),X=X||this._read_attribute(H,x,V),X=X||this._read_close(H,V),X=X||this._read_script_and_style(H,x),X=X||this._read_control_flows(H,V),X=X||this._read_raw_content(H,x,V),X=X||this._read_content_word(H,V),X=X||this._read_comment_or_cdata(H),X=X||this._read_processing(H),X=X||this._read_open(H,V),X=X||this._create_token(O.UNKNOWN,this._input.next()),X)},R.prototype._read_comment_or_cdata=function(x){var V=null,X=null,H=null;if(x==="<"){var q=this._input.peek(1);q==="!"&&(X=this.__patterns.comment.read(),X?(H=U.get_directives(X),H&&H.ignore==="start"&&(X+=U.readIgnored(this._input))):X=this.__patterns.cdata.read()),X&&(V=this._create_token(O.COMMENT,X),V.directives=H)}return V},R.prototype._read_processing=function(x){var V=null,X=null,H=null;if(x==="<"){var q=this._input.peek(1);(q==="!"||q==="?")&&(X=this.__patterns.conditional_comment.read(),X=X||this.__patterns.processing.read()),X&&(V=this._create_token(O.COMMENT,X),V.directives=H)}return V},R.prototype._read_open=function(x,V){var X=null,H=null;return(!V||V.type===O.CONTROL_FLOW_OPEN)&&x==="<"&&(X=this._input.next(),this._input.peek()==="/"&&(X+=this._input.next()),X+=this.__patterns.element_name.read(),H=this._create_token(O.TAG_OPEN,X)),H},R.prototype._read_open_handlebars=function(x,V){var X=null,H=null;return(!V||V.type===O.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&x==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(X=this.__patterns.handlebars_comment.read(),X=X||this.__patterns.handlebars.read(),H=this._create_token(O.COMMENT,X)):(X=this.__patterns.handlebars_open.read(),H=this._create_token(O.TAG_OPEN,X))),H},R.prototype._read_control_flows=function(x,V){var X="",H=null;if(!this._options.templating.includes("angular"))return H;if(x==="@"){if(X=this.__patterns.angular_control_flow_start.read(),X==="")return H;for(var q=X.endsWith("(")?1:0,se=0;!(X.endsWith("{")&&q===se);){var ie=this._input.next();if(ie===null)break;ie==="("?q++:ie===")"&&se++,X+=ie}H=this._create_token(O.CONTROL_FLOW_OPEN,X)}else x==="}"&&V&&V.type===O.CONTROL_FLOW_OPEN&&(X=this._input.next(),H=this._create_token(O.CONTROL_FLOW_CLOSE,X));return H},R.prototype._read_close=function(x,V){var X=null,H=null;return V&&V.type===O.TAG_OPEN&&(V.text[0]==="<"&&(x===">"||x==="/"&&this._input.peek(1)===">")?(X=this._input.next(),x==="/"&&(X+=this._input.next()),H=this._create_token(O.TAG_CLOSE,X)):V.text[0]==="{"&&x==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),H=this._create_token(O.TAG_CLOSE,"}}"))),H},R.prototype._read_attribute=function(x,V,X){var H=null,q="";if(X&&X.text[0]==="<")if(x==="=")H=this._create_token(O.EQUALS,this._input.next());else if(x==='"'||x==="'"){var se=this._input.next();x==='"'?se+=this.__patterns.double_quote.read():se+=this.__patterns.single_quote.read(),H=this._create_token(O.VALUE,se)}else q=this.__patterns.attribute.read(),q&&(V.type===O.EQUALS?H=this._create_token(O.VALUE,q):H=this._create_token(O.ATTRIBUTE,q));return H},R.prototype._is_content_unformatted=function(x){return this._options.void_elements.indexOf(x)===-1&&(this._options.content_unformatted.indexOf(x)!==-1||this._options.unformatted.indexOf(x)!==-1)},R.prototype._read_raw_content=function(x,V,X){var H="";if(X&&X.text[0]==="{")H=this.__patterns.handlebars_raw_close.read();else if(V.type===O.TAG_CLOSE&&V.opened.text[0]==="<"&&V.text[0]!=="/"){var q=V.opened.text.substr(1).toLowerCase();this._is_content_unformatted(q)&&(H=this._input.readUntil(new RegExp("</"+q+"[\\n\\r\\t ]*?>","ig")))}return H?this._create_token(O.TEXT,H):null},R.prototype._read_script_and_style=function(x,V){if(V.type===O.TAG_CLOSE&&V.opened.text[0]==="<"&&V.text[0]!=="/"){var X=V.opened.text.substr(1).toLowerCase();if(X==="script"||X==="style"){var H=this._read_comment_or_cdata(x);if(H)return H.type=O.TEXT,H;var q=this._input.readUntil(new RegExp("</"+X+"[\\n\\r\\t ]*?>","ig"));if(q)return this._create_token(O.TEXT,q)}}return null},R.prototype._read_content_word=function(x,V){var X="";return this._options.unformatted_content_delimiter&&x===this._options.unformatted_content_delimiter[0]&&(X=this.__patterns.unformatted_content_delimiter.read()),X||(X=V&&V.type===O.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),X?this._create_token(O.TEXT,X):null},T.exports.Tokenizer=R,T.exports.TOKEN=O}],re={};function o(T){var m=re[T];if(m!==void 0)return m.exports;var _=re[T]={exports:{}};return me[T](_,_.exports,o),_.exports}var y=o(18);ne=y})();var oe=ne;if(1)h=[E,E(58553),E(87804)],le=function(me){var re=E(58553),o=E(87804);return{html_beautify:function(y,T){return oe(y,T,re.js_beautify,o.css_beautify)}}}.apply(Gt,h),le!==void 0&&(Rn.exports=le);else var B,d})()},58553:function(Rn,Gt){var E,h;(function(){var le;(function(){"use strict";var oe=[function(re,o,y){var T=y(1).Beautifier,m=y(5).Options;function _(b,L){var K=new T(b,L);return K.beautify()}re.exports=_,re.exports.defaultOptions=function(){return new m}},function(re,o,y){var T=y(2).Output,m=y(3).Token,_=y(4),b=y(5).Options,L=y(7).Tokenizer,K=y(7).line_starters,W=y(7).positionable_operators,$=y(7).TOKEN;function O(g,M){return M.indexOf(g)!==-1}function U(g){return g.replace(/^\s+/g,"")}function R(g){for(var M={},ue=0;ue<g.length;ue++)M[g[ue].replace(/-/g,"_")]=g[ue];return M}function x(g,M){return g&&g.type===$.RESERVED&&g.text===M}function V(g,M){return g&&g.type===$.RESERVED&&O(g.text,M)}var X=["case","return","do","if","throw","else","await","break","continue","async"],H=["before-newline","after-newline","preserve-newline"],q=R(H),se=[q.before_newline,q.preserve_newline],ie={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Fe(g,M){M.multiline_frame||M.mode===ie.ForInitializer||M.mode===ie.Conditional||g.remove_indent(M.start_line_index)}function Z(g){g=g.replace(_.allLineBreaks,`
`);for(var M=[],ue=g.indexOf(`
`);ue!==-1;)M.push(g.substring(0,ue)),g=g.substring(ue+1),ue=g.indexOf(`
`);return g.length&&M.push(g),M}function k(g){return g===ie.ArrayLiteral}function F(g){return O(g,[ie.Expression,ie.ForInitializer,ie.Conditional])}function G(g,M){for(var ue=0;ue<g.length;ue++){var Ie=g[ue].trim();if(Ie.charAt(0)!==M)return!1}return!0}function J(g,M){for(var ue=0,Ie=g.length,Je;ue<Ie;ue++)if(Je=g[ue],Je&&Je.indexOf(M)!==0)return!1;return!0}function j(g,M){M=M||{},this._source_text=g||"",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(M)}j.prototype.create_flags=function(g,M){var ue=0;g&&(ue=g.indentation_level,!this._output.just_added_newline()&&g.line_indent_level>ue&&(ue=g.line_indent_level));var Ie={mode:M,parent:g,last_token:g?g.last_token:new m($.START_BLOCK,""),last_word:g?g.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:ue,alignment:0,line_indent_level:g?g.line_indent_level:ue,start_line_index:this._output.get_line_number(),ternary_depth:0};return Ie},j.prototype._reset=function(g){var M=g.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new T(this._options,M),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(ie.BlockStatement);var ue=new L(g,this._options);return this._tokens=ue.tokenize(),g},j.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var g,M=this._reset(this._source_text),ue=this._options.eol;this._options.eol==="auto"&&(ue=`
`,M&&_.lineBreak.test(M||"")&&(ue=M.match(_.lineBreak)[0]));for(var Ie=this._tokens.next();Ie;)this.handle_token(Ie),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Ie,Ie=this._tokens.next();return g=this._output.get_code(ue),g},j.prototype.handle_token=function(g,M){g.type===$.START_EXPR?this.handle_start_expr(g):g.type===$.END_EXPR?this.handle_end_expr(g):g.type===$.START_BLOCK?this.handle_start_block(g):g.type===$.END_BLOCK?this.handle_end_block(g):g.type===$.WORD?this.handle_word(g):g.type===$.RESERVED?this.handle_word(g):g.type===$.SEMICOLON?this.handle_semicolon(g):g.type===$.STRING?this.handle_string(g):g.type===$.EQUALS?this.handle_equals(g):g.type===$.OPERATOR?this.handle_operator(g):g.type===$.COMMA?this.handle_comma(g):g.type===$.BLOCK_COMMENT?this.handle_block_comment(g,M):g.type===$.COMMENT?this.handle_comment(g,M):g.type===$.DOT?this.handle_dot(g):g.type===$.EOF?this.handle_eof(g):g.type===$.UNKNOWN?this.handle_unknown(g,M):this.handle_unknown(g,M)},j.prototype.handle_whitespace_and_comments=function(g,M){var ue=g.newlines,Ie=this._options.keep_array_indentation&&k(this._flags.mode);if(g.comments_before)for(var Je=g.comments_before.next();Je;)this.handle_whitespace_and_comments(Je,M),this.handle_token(Je,M),Je=g.comments_before.next();if(Ie)for(var Dt=0;Dt<ue;Dt+=1)this.print_newline(Dt>0,M);else if(this._options.max_preserve_newlines&&ue>this._options.max_preserve_newlines&&(ue=this._options.max_preserve_newlines),this._options.preserve_newlines&&ue>1){this.print_newline(!1,M);for(var vt=1;vt<ue;vt+=1)this.print_newline(!0,M)}};var v=["async","break","continue","return","throw","yield"];j.prototype.allow_wrap_or_preserved_newline=function(g,M){if(M=M===void 0?!1:M,!this._output.just_added_newline()){var ue=this._options.preserve_newlines&&g.newlines||M,Ie=O(this._flags.last_token.text,W)||O(g.text,W);if(Ie){var Je=O(this._flags.last_token.text,W)&&O(this._options.operator_position,se)||O(g.text,W);ue=ue&&Je}if(ue)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(V(this._flags.last_token,v))return;this._output.set_wrap_point()}}},j.prototype.print_newline=function(g,M){if(!M&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==$.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var ue=this._tokens.peek();this._flags.mode===ie.Statement&&!(this._flags.if_block&&x(ue,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(g)&&(this._flags.multiline_frame=!0)},j.prototype.print_token_line_indentation=function(g){this._output.just_added_newline()&&(this._options.keep_array_indentation&&g.newlines&&(g.text==="["||k(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(g.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))},j.prototype.print_token=function(g){if(this._output.raw){this._output.add_raw_token(g);return}if(this._options.comma_first&&g.previous&&g.previous.type===$.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var M=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(M),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(g),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(g),this._output.non_breaking_space=!0,this._output.add_token(g.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},j.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},j.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))},j.prototype.set_mode=function(g){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,g),this._flags=this.create_flags(this._previous_flags,g),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},j.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===ie.Statement&&Fe(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},j.prototype.start_of_object_property=function(){return this._flags.parent.mode===ie.ObjectLiteral&&this._flags.mode===ie.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||V(this._flags.last_token,["get","set"]))},j.prototype.start_of_statement=function(g){var M=!1;return M=M||V(this._flags.last_token,["var","let","const"])&&g.type===$.WORD,M=M||x(this._flags.last_token,"do"),M=M||!(this._flags.parent.mode===ie.ObjectLiteral&&this._flags.mode===ie.Statement)&&V(this._flags.last_token,v)&&!g.newlines,M=M||x(this._flags.last_token,"else")&&!(x(g,"if")&&!g.comments_before),M=M||this._flags.last_token.type===$.END_EXPR&&(this._previous_flags.mode===ie.ForInitializer||this._previous_flags.mode===ie.Conditional),M=M||this._flags.last_token.type===$.WORD&&this._flags.mode===ie.BlockStatement&&!this._flags.in_case&&!(g.text==="--"||g.text==="++")&&this._last_last_text!=="function"&&g.type!==$.WORD&&g.type!==$.RESERVED,M=M||this._flags.mode===ie.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||V(this._flags.last_token,["get","set"])),M?(this.set_mode(ie.Statement),this.indent(),this.handle_whitespace_and_comments(g,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g,V(g,["do","for","if","while"])),!0):!1},j.prototype.handle_start_expr=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g);var M=ie.Expression;if(g.text==="["){if(this._flags.last_token.type===$.WORD||this._flags.last_token.text===")"){V(this._flags.last_token,K)&&(this._output.space_before_token=!0),this.print_token(g),this.set_mode(M),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}M=ie.ArrayLiteral,k(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()),O(this._flags.last_token.type,[$.START_EXPR,$.END_EXPR,$.WORD,$.OPERATOR,$.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===$.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,M=ie.ForInitializer):O(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,M=ie.Conditional):O(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&g.whitespace_before===""?this._output.space_before_token=!1:(O(this._flags.last_token.text,K)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===$.EQUALS||this._flags.last_token.type===$.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g);else if(this._flags.last_token.type===$.WORD){this._output.space_before_token=!1;var ue=this._tokens.peek(-3);if(this._options.space_after_named_function&&ue){var Ie=this._tokens.peek(-4);V(ue,["async","function"])||ue.text==="*"&&V(Ie,["async","function"])?this._output.space_before_token=!0:this._flags.mode===ie.ObjectLiteral?(ue.text==="{"||ue.text===","||ue.text==="*"&&(Ie.text==="{"||Ie.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(g);(this._flags.last_token.type===$.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(O(this._last_last_text,["function","yield"])||this._flags.mode===ie.ObjectLiteral&&O(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===$.START_BLOCK?this.print_newline():(this._flags.last_token.type===$.END_EXPR||this._flags.last_token.type===$.START_EXPR||this._flags.last_token.type===$.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===$.COMMA)&&this.allow_wrap_or_preserved_newline(g,g.newlines),this.print_token(g),this.set_mode(M),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},j.prototype.handle_end_expr=function(g){for(;this._flags.mode===ie.Statement;)this.restore_mode();this.handle_whitespace_and_comments(g),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(g,g.text==="]"&&k(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===$.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(g),this.restore_mode(),Fe(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===ie.Conditional&&(this._previous_flags.mode=ie.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},j.prototype.handle_start_block=function(g){this.handle_whitespace_and_comments(g);var M=this._tokens.peek(),ue=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===$.END_EXPR?(this.set_mode(ie.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(ie.BlockStatement):ue&&(O(ue.text,[":",","])&&O(M.type,[$.STRING,$.WORD,$.RESERVED])||O(M.text,["get","set","..."])&&O(ue.type,[$.WORD,$.RESERVED]))?O(this._last_last_text,["class","interface"])&&!O(ue.text,[":",","])?this.set_mode(ie.BlockStatement):this.set_mode(ie.ObjectLiteral):this._flags.last_token.type===$.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(ie.BlockStatement):O(this._flags.last_token.type,[$.EQUALS,$.START_EXPR,$.COMMA,$.OPERATOR])||V(this._flags.last_token,["return","throw","import","default"])?this.set_mode(ie.ObjectLiteral):this.set_mode(ie.BlockStatement),this._flags.last_token&&V(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var Ie=!M.comments_before&&M.text==="}",Je=Ie&&this._flags.last_word==="function"&&this._flags.last_token.type===$.END_EXPR;if(this._options.brace_preserve_inline){var Dt=0,vt=null;this._flags.inline_frame=!0;do if(Dt+=1,vt=this._tokens.peek(Dt-1),vt.newlines){this._flags.inline_frame=!1;break}while(vt.type!==$.EOF&&!(vt.type===$.END_BLOCK&&vt.opened===g))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&g.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==$.OPERATOR&&(Je||this._flags.last_token.type===$.EQUALS||V(this._flags.last_token,X)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(k(this._previous_flags.mode)&&(this._flags.last_token.type===$.START_EXPR||this._flags.last_token.type===$.COMMA)&&((this._flags.last_token.type===$.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===$.COMMA||this._flags.last_token.type===$.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(g),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==$.OPERATOR&&this._flags.last_token.type!==$.START_EXPR&&(O(this._flags.last_token.type,[$.START_BLOCK,$.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(g),this.indent(),!Ie&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},j.prototype.handle_end_block=function(g){for(this.handle_whitespace_and_comments(g);this._flags.mode===ie.Statement;)this.restore_mode();var M=this._flags.last_token.type===$.START_BLOCK;this._flags.inline_frame&&!M?this._output.space_before_token=!0:this._options.brace_style==="expand"?M||this.print_newline():M||(k(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(g)},j.prototype.handle_word=function(g){if(g.type===$.RESERVED){if(O(g.text,["set","get"])&&this._flags.mode!==ie.ObjectLiteral)g.type=$.WORD;else if(g.text==="import"&&O(this._tokens.peek().text,["(","."]))g.type=$.WORD;else if(O(g.text,["as","from"])&&!this._flags.import_block)g.type=$.WORD;else if(this._flags.mode===ie.ObjectLiteral){var M=this._tokens.peek();M.text===":"&&(g.type=$.WORD)}}if(this.start_of_statement(g)?V(this._flags.last_token,["var","let","const"])&&g.type===$.WORD&&(this._flags.declaration_statement=!0):g.newlines&&!F(this._flags.mode)&&(this._flags.last_token.type!==$.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==$.EQUALS&&(this._options.preserve_newlines||!V(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(g),this.print_newline()):this.handle_whitespace_and_comments(g),this._flags.do_block&&!this._flags.do_while)if(x(g,"while")){this._output.space_before_token=!0,this.print_token(g),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&&x(g,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===ie.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&V(g,["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(g),this._flags.in_case=!0;return}if((this._flags.last_token.type===$.COMMA||this._flags.last_token.type===$.START_EXPR||this._flags.last_token.type===$.EQUALS||this._flags.last_token.type===$.OPERATOR)&&!this.start_of_object_property()&&!(O(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===ie.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(g),x(g,"function")){(O(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(O(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===$.OPERATOR))&&!this._output.just_added_blankline()&&!g.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===$.RESERVED||this._flags.last_token.type===$.WORD?V(this._flags.last_token,["get","set","new","export"])||V(this._flags.last_token,v)?this._output.space_before_token=!0:x(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===$.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(F(this._flags.mode)||k(this._flags.mode))||this.print_newline(),this.print_token(g),this._flags.last_word=g.text;return}var ue="NONE";if(this._flags.last_token.type===$.END_BLOCK?this._previous_flags.inline_frame?ue="SPACE":V(g,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&g.newlines?ue="NEWLINE":(ue="SPACE",this._output.space_before_token=!0):ue="NEWLINE":this._flags.last_token.type===$.SEMICOLON&&this._flags.mode===ie.BlockStatement?ue="NEWLINE":this._flags.last_token.type===$.SEMICOLON&&F(this._flags.mode)?ue="SPACE":this._flags.last_token.type===$.STRING?ue="NEWLINE":this._flags.last_token.type===$.RESERVED||this._flags.last_token.type===$.WORD||this._flags.last_token.text==="*"&&(O(this._last_last_text,["function","yield"])||this._flags.mode===ie.ObjectLiteral&&O(this._last_last_text,["{",","]))?ue="SPACE":this._flags.last_token.type===$.START_BLOCK?this._flags.inline_frame?ue="SPACE":ue="NEWLINE":this._flags.last_token.type===$.END_EXPR&&(this._output.space_before_token=!0,ue="NEWLINE"),V(g,K)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?ue="SPACE":ue="NEWLINE"),V(g,["else","catch","finally"]))if((!(this._flags.last_token.type===$.END_BLOCK&&this._previous_flags.mode===ie.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&g.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Ie=this._output.current_line;Ie.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else ue==="NEWLINE"?V(this._flags.last_token,X)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&V(g,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==$.END_EXPR?(this._flags.last_token.type!==$.START_EXPR||!V(g,["var","let","const"]))&&this._flags.last_token.text!==":"&&(x(g,"if")&&x(g.previous,"else")?this._output.space_before_token=!0:this.print_newline()):V(g,K)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&k(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():ue==="SPACE"&&(this._output.space_before_token=!0);g.previous&&(g.previous.type===$.WORD||g.previous.type===$.RESERVED)&&(this._output.space_before_token=!0),this.print_token(g),this._flags.last_word=g.text,g.type===$.RESERVED&&(g.text==="do"?this._flags.do_block=!0:g.text==="if"?this._flags.if_block=!0:g.text==="import"?this._flags.import_block=!0:this._flags.import_block&&x(g,"from")&&(this._flags.import_block=!1))},j.prototype.handle_semicolon=function(g){this.start_of_statement(g)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(g);for(var M=this._tokens.peek();this._flags.mode===ie.Statement&&!(this._flags.if_block&&x(M,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(g)},j.prototype.handle_string=function(g){g.text.startsWith("`")&&g.newlines===0&&g.whitespace_before===""&&(g.previous.text===")"||this._flags.last_token.type===$.WORD)||(this.start_of_statement(g)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(g),this._flags.last_token.type===$.RESERVED||this._flags.last_token.type===$.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===$.COMMA||this._flags.last_token.type===$.START_EXPR||this._flags.last_token.type===$.EQUALS||this._flags.last_token.type===$.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(g):g.text.startsWith("`")&&this._flags.last_token.type===$.END_EXPR&&(g.previous.text==="]"||g.previous.text===")")&&g.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(g)},j.prototype.handle_equals=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0},j.prototype.handle_comma=function(g){this.handle_whitespace_and_comments(g,!0),this.print_token(g),this._output.space_before_token=!0,this._flags.declaration_statement?(F(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(g)):this._flags.mode===ie.ObjectLiteral||this._flags.mode===ie.Statement&&this._flags.parent.mode===ie.ObjectLiteral?(this._flags.mode===ie.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(g)},j.prototype.handle_operator=function(g){var M=g.text==="*"&&(V(this._flags.last_token,["function","yield"])||O(this._flags.last_token.type,[$.START_BLOCK,$.COMMA,$.END_BLOCK,$.SEMICOLON])),ue=O(g.text,["-","+"])&&(O(this._flags.last_token.type,[$.START_BLOCK,$.START_EXPR,$.EQUALS,$.OPERATOR])||O(this._flags.last_token.text,K)||this._flags.last_token.text===",");if(!this.start_of_statement(g)){var Ie=!M;this.handle_whitespace_and_comments(g,Ie)}if(g.text==="*"&&this._flags.last_token.type===$.DOT){this.print_token(g);return}if(g.text==="::"){this.print_token(g);return}if(O(g.text,["-","+"])&&this.start_of_object_property()){this.print_token(g);return}if(this._flags.last_token.type===$.OPERATOR&&O(this._options.operator_position,se)&&this.allow_wrap_or_preserved_newline(g),g.text===":"&&this._flags.in_case){this.print_token(g),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==$.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 Je=!0,Dt=!0,vt=!1;if(g.text===":"?this._flags.ternary_depth===0?Je=!1:(this._flags.ternary_depth-=1,vt=!0):g.text==="?"&&(this._flags.ternary_depth+=1),!ue&&!M&&this._options.preserve_newlines&&O(g.text,W)){var Mt=g.text===":",Bt=Mt&&vt,we=Mt&&!vt;switch(this._options.operator_position){case q.before_newline:this._output.space_before_token=!we,this.print_token(g),(!Mt||Bt)&&this.allow_wrap_or_preserved_newline(g),this._output.space_before_token=!0;return;case q.after_newline:this._output.space_before_token=!0,!Mt||Bt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(g):this._output.space_before_token=!1,this.print_token(g),this._output.space_before_token=!0;return;case q.preserve_newline:we||this.allow_wrap_or_preserved_newline(g),Je=!(this._output.just_added_newline()||we),this._output.space_before_token=Je,this.print_token(g),this._output.space_before_token=!0;return}}if(M){this.allow_wrap_or_preserved_newline(g),Je=!1;var Yt=this._tokens.peek();Dt=Yt&&O(Yt.type,[$.WORD,$.RESERVED])}else if(g.text==="...")this.allow_wrap_or_preserved_newline(g),Je=this._flags.last_token.type===$.START_BLOCK,Dt=!1;else if(O(g.text,["--","++","!","~"])||ue){if((this._flags.last_token.type===$.COMMA||this._flags.last_token.type===$.START_EXPR)&&this.allow_wrap_or_preserved_newline(g),Je=!1,Dt=!1,g.newlines&&(g.text==="--"||g.text==="++"||g.text==="~")){var _t=V(this._flags.last_token,X)&&g.newlines;_t&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(_t,!0)}this._flags.last_token.text===";"&&F(this._flags.mode)&&(Je=!0),this._flags.last_token.type===$.RESERVED?Je=!0:this._flags.last_token.type===$.END_EXPR?Je=!(this._flags.last_token.text==="]"&&(g.text==="--"||g.text==="++")):this._flags.last_token.type===$.OPERATOR&&(Je=O(g.text,["--","-","++","+"])&&O(this._flags.last_token.text,["--","-","++","+"]),O(g.text,["+","-"])&&O(this._flags.last_token.text,["--","++"])&&(Dt=!0)),(this._flags.mode===ie.BlockStatement&&!this._flags.inline_frame||this._flags.mode===ie.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Je,this.print_token(g),this._output.space_before_token=Dt},j.prototype.handle_block_comment=function(g,M){if(this._output.raw){this._output.add_raw_token(g),g.directives&&g.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(g.directives){this.print_newline(!1,M),this.print_token(g),g.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!_.newline.test(g.text)&&!g.newlines){this._output.space_before_token=!0,this.print_token(g),this._output.space_before_token=!0;return}else this.print_block_commment(g,M)},j.prototype.print_block_commment=function(g,M){var ue=Z(g.text),Ie,Je=!1,Dt=!1,vt=g.whitespace_before,Mt=vt.length;if(this.print_newline(!1,M),this.print_token_line_indentation(g),this._output.add_token(ue[0]),this.print_newline(!1,M),ue.length>1){for(ue=ue.slice(1),Je=G(ue,"*"),Dt=J(ue,vt),Je&&(this._flags.alignment=1),Ie=0;Ie<ue.length;Ie++)Je?(this.print_token_line_indentation(g),this._output.add_token(U(ue[Ie]))):Dt&&ue[Ie]?(this.print_token_line_indentation(g),this._output.add_token(ue[Ie].substring(Mt))):(this._output.current_line.set_indent(-1),this._output.add_token(ue[Ie])),this.print_newline(!1,M);this._flags.alignment=0}},j.prototype.handle_comment=function(g,M){g.newlines?this.print_newline(!1,M):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(g),this.print_newline(!1,M)},j.prototype.handle_dot=function(g){this.start_of_statement(g)||this.handle_whitespace_and_comments(g,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),V(this._flags.last_token,X)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(g,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(g)},j.prototype.handle_unknown=function(g,M){this.print_token(g),g.text[g.text.length-1]===`
`&&this.print_newline(!1,M)},j.prototype.handle_eof=function(g){for(;this._flags.mode===ie.Statement;)this.restore_mode();this.handle_whitespace_and_comments(g)},re.exports.Beautifier=j},function(re){function o(m){this.__parent=m,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 m=new o(this.__parent);return m.set_indent(this.__indent_count,this.__alignment_count),m},o.prototype.item=function(m){return m<0?this.__items[this.__items.length+m]:this.__items[m]},o.prototype.has_match=function(m){for(var _=this.__items.length-1;_>=0;_--)if(this.__items[_].match(m))return!0;return!1},o.prototype.set_indent=function(m,_){this.is_empty()&&(this.__indent_count=m||0,this.__alignment_count=_||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 m=this.__parent.current_line;return m.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),m.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),m.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,m.__items[0]===" "&&(m.__items.splice(0,1),m.__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(m){this.__items.push(m);var _=m.lastIndexOf(`
`);_!==-1?this.__character_count=m.length-_:this.__character_count+=m.length},o.prototype.pop=function(){var m=null;return this.is_empty()||(m=this.__items.pop(),this.__character_count-=m.length),m},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 m="";return this.is_empty()?this.__parent.indent_empty_lines&&(m=this.__parent.get_indent_string(this.__indent_count)):(m=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),m+=this.__items.join("")),m};function y(m,_){this.__cache=[""],this.__indent_size=m.indent_size,this.__indent_string=m.indent_char,m.indent_with_tabs||(this.__indent_string=new Array(m.indent_size+1).join(m.indent_char)),_=_||"",m.indent_level>0&&(_=new Array(m.indent_level+1).join(this.__indent_string)),this.__base_string=_,this.__base_string_length=_.length}y.prototype.get_indent_size=function(m,_){var b=this.__base_string_length;return _=_||0,m<0&&(b=0),b+=m*this.__indent_size,b+=_,b},y.prototype.get_indent_string=function(m,_){var b=this.__base_string;return _=_||0,m<0&&(m=0,b=""),_+=m*this.__indent_size,this.__ensure_cache(_),b+=this.__cache[_],b},y.prototype.__ensure_cache=function(m){for(;m>=this.__cache.length;)this.__add_column()},y.prototype.__add_column=function(){var m=this.__cache.length,_=0,b="";this.__indent_size&&m>=this.__indent_size&&(_=Math.floor(m/this.__indent_size),m-=_*this.__indent_size,b=new Array(_+1).join(this.__indent_string)),m&&(b+=new Array(m+1).join(" ")),this.__cache.push(b)};function T(m,_){this.__indent_cache=new y(m,_),this.raw=!1,this._end_with_newline=m.end_with_newline,this.indent_size=m.indent_size,this.wrap_line_length=m.wrap_line_length,this.indent_empty_lines=m.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()}T.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},T.prototype.get_line_number=function(){return this.__lines.length},T.prototype.get_indent_string=function(m,_){return this.__indent_cache.get_indent_string(m,_)},T.prototype.get_indent_size=function(m,_){return this.__indent_cache.get_indent_size(m,_)},T.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},T.prototype.add_new_line=function(m){return this.is_empty()||!m&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},T.prototype.get_code=function(m){this.trim(!0);var _=this.current_line.pop();_&&(_[_.length-1]===`
`&&(_=_.replace(/\n+$/g,"")),this.current_line.push(_)),this._end_with_newline&&this.__add_outputline();var b=this.__lines.join(`
`);return m!==`
`&&(b=b.replace(/[\n]/g,m)),b},T.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},T.prototype.set_indent=function(m,_){return m=m||0,_=_||0,this.next_line.set_indent(m,_),this.__lines.length>1?(this.current_line.set_indent(m,_),!0):(this.current_line.set_indent(),!1)},T.prototype.add_raw_token=function(m){for(var _=0;_<m.newlines;_++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(m.whitespace_before),this.current_line.push(m.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},T.prototype.add_token=function(m){this.__add_space_before_token(),this.current_line.push(m),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},T.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(" "))},T.prototype.remove_indent=function(m){for(var _=this.__lines.length;m<_;)this.__lines[m]._remove_indent(),m++;this.current_line._remove_wrap_indent()},T.prototype.trim=function(m){for(m=m===void 0?!1:m,this.current_line.trim();m&&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},T.prototype.just_added_newline=function(){return this.current_line.is_empty()},T.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},T.prototype.ensure_empty_line_above=function(m,_){for(var b=this.__lines.length-2;b>=0;){var L=this.__lines[b];if(L.is_empty())break;if(L.item(0).indexOf(m)!==0&&L.item(-1)!==_){this.__lines.splice(b+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}b--}},re.exports.Output=T},function(re){function o(y,T,m,_){this.type=y,this.text=T,this.comments_before=null,this.newlines=m||0,this.whitespace_before=_||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}re.exports.Token=o},function(re,o){var y="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",T="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",m="\\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",_="\\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]+\\}",L="(?:"+b+"|["+y+m+"])",K="(?:"+b+"|["+T+m+_+"])*";o.identifier=new RegExp(L+K,"g"),o.identifierStart=new RegExp(L),o.identifierMatch=new RegExp("(?:"+b+"|["+T+m+_+"])+");var W=/[\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(re,o,y){var T=y(6).Options,m=["before-newline","after-newline","preserve-newline"];function _(b){T.call(this,b,"js");var L=this.raw_options.brace_style||null;L==="expand-strict"?this.raw_options.brace_style="expand":L==="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 K=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var W=0;W<K.length;W++)K[W]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=K[W];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",m),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}_.prototype=new T,re.exports.Options=_},function(re){function o(m,_){this.raw_options=y(m,_),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(m,_){var b=this.raw_options[m],L=_||[];return typeof b=="object"?b!==null&&typeof b.concat=="function"&&(L=b.concat()):typeof b=="string"&&(L=b.split(/[^a-zA-Z0-9_\/\-]+/)),L},o.prototype._get_boolean=function(m,_){var b=this.raw_options[m],L=b===void 0?!!_:!!b;return L},o.prototype._get_characters=function(m,_){var b=this.raw_options[m],L=_||"";return typeof b=="string"&&(L=b.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),L},o.prototype._get_number=function(m,_){var b=this.raw_options[m];_=parseInt(_,10),isNaN(_)&&(_=0);var L=parseInt(b,10);return isNaN(L)&&(L=_),L},o.prototype._get_selection=function(m,_,b){var L=this._get_selection_list(m,_,b);if(L.length!==1)throw new Error("Invalid Option Value: The option '"+m+`' can only be one of the following values:
`+_+`
You passed in: '`+this.raw_options[m]+"'");return L[0]},o.prototype._get_selection_list=function(m,_,b){if(!_||_.length===0)throw new Error("Selection list cannot be empty.");if(b=b||[_[0]],!this._is_valid_selection(b,_))throw new Error("Invalid Default Value!");var L=this._get_array(m,b);if(!this._is_valid_selection(L,_))throw new Error("Invalid Option Value: The option '"+m+`' can contain only the following values:
`+_+`
You passed in: '`+this.raw_options[m]+"'");return L},o.prototype._is_valid_selection=function(m,_){return m.length&&_.length&&!m.some(function(b){return _.indexOf(b)===-1})};function y(m,_){var b={};m=T(m);var L;for(L in m)L!==_&&(b[L]=m[L]);if(_&&m[_])for(L in m[_])b[L]=m[_][L];return b}function T(m){var _={},b;for(b in m){var L=b.replace(/-/g,"_");_[L]=m[b]}return _}re.exports.Options=o,re.exports.normalizeOpts=T,re.exports.mergeOpts=y},function(re,o,y){var T=y(8).InputScanner,m=y(9).Tokenizer,_=y(9).TOKEN,b=y(13).Directives,L=y(4),K=y(12).Pattern,W=y(14).TemplatablePattern;function $(G,J){return J.indexOf(G)!==-1}var O={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:_.START,RAW:_.RAW,EOF:_.EOF},U=new b(/\/\*/,/\*\//),R=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,x=/[0-9]/,V=/[^\d\.]/,X=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),H=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";H=H.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),H="\\?\\.(?!\\d) "+H,H=H.replace(/ /g,"|");var q=new RegExp(H),se="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),ie=se.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),Fe=new RegExp("^(?:"+ie.join("|")+")$"),Z,k=function(G,J){m.call(this,G,J),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var j=new K(this._input),v=new W(this._input).read_options(this._options);this.__patterns={template:v,identifier:v.starting_with(L.identifier).matching(L.identifierMatch),number:j.matching(R),punct:j.matching(q),comment:j.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:j.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:j.matching(/<!--/),html_comment_end:j.matching(/-->/),include:j.starting_with(/#include/).until_after(L.lineBreak),shebang:j.starting_with(/#!/).until_after(L.lineBreak),xml:j.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:v.until(/['\\\n\r\u2028\u2029]/),double_quote:v.until(/["\\\n\r\u2028\u2029]/),template_text:v.until(/[`\\$]/),template_expression:v.until(/[`}\\]/)}};k.prototype=new m,k.prototype._is_comment=function(G){return G.type===O.COMMENT||G.type===O.BLOCK_COMMENT||G.type===O.UNKNOWN},k.prototype._is_opening=function(G){return G.type===O.START_BLOCK||G.type===O.START_EXPR},k.prototype._is_closing=function(G,J){return(G.type===O.END_BLOCK||G.type===O.END_EXPR)&&J&&(G.text==="]"&&J.text==="["||G.text===")"&&J.text==="("||G.text==="}"&&J.text==="{")},k.prototype._reset=function(){Z=!1},k.prototype._get_next_token=function(G,J){var j=null;this._readWhitespace();var v=this._input.peek();return v===null?this._create_token(O.EOF,""):(j=j||this._read_non_javascript(v),j=j||this._read_string(v),j=j||this._read_pair(v,this._input.peek(1)),j=j||this._read_word(G),j=j||this._read_singles(v),j=j||this._read_comment(v),j=j||this._read_regexp(v,G),j=j||this._read_xml(v,G),j=j||this._read_punctuation(),j=j||this._create_token(O.UNKNOWN,this._input.next()),j)},k.prototype._read_word=function(G){var J;if(J=this.__patterns.identifier.read(),J!=="")return J=J.replace(L.allLineBreaks,`
`),!(G.type===O.DOT||G.type===O.RESERVED&&(G.text==="set"||G.text==="get"))&&Fe.test(J)?(J==="in"||J==="of")&&(G.type===O.WORD||G.type===O.STRING)?this._create_token(O.OPERATOR,J):this._create_token(O.RESERVED,J):this._create_token(O.WORD,J);if(J=this.__patterns.number.read(),J!=="")return this._create_token(O.WORD,J)},k.prototype._read_singles=function(G){var J=null;return G==="("||G==="["?J=this._create_token(O.START_EXPR,G):G===")"||G==="]"?J=this._create_token(O.END_EXPR,G):G==="{"?J=this._create_token(O.START_BLOCK,G):G==="}"?J=this._create_token(O.END_BLOCK,G):G===";"?J=this._create_token(O.SEMICOLON,G):G==="."&&V.test(this._input.peek(1))?J=this._create_token(O.DOT,G):G===","&&(J=this._create_token(O.COMMA,G)),J&&this._input.next(),J},k.prototype._read_pair=function(G,J){var j=null;return G==="#"&&J==="{"&&(j=this._create_token(O.START_BLOCK,G+J)),j&&(this._input.next(),this._input.next()),j},k.prototype._read_punctuation=function(){var G=this.__patterns.punct.read();if(G!=="")return G==="="?this._create_token(O.EQUALS,G):G==="?."?this._create_token(O.DOT,G):this._create_token(O.OPERATOR,G)},k.prototype._read_non_javascript=function(G){var J="";if(G==="#"){if(this._is_first_token()&&(J=this.__patterns.shebang.read(),J))return this._create_token(O.UNKNOWN,J.trim()+`
`);if(J=this.__patterns.include.read(),J)return this._create_token(O.UNKNOWN,J.trim()+`
`);G=this._input.next();var j="#";if(this._input.hasNext()&&this._input.testChar(x)){do G=this._input.next(),j+=G;while(this._input.hasNext()&&G!=="#"&&G!=="=");return G==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(j+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(j+="{}",this._input.next(),this._input.next())),this._create_token(O.WORD,j)}this._input.back()}else if(G==="<"&&this._is_first_token()){if(J=this.__patterns.html_comment_start.read(),J){for(;this._input.hasNext()&&!this._input.testChar(L.newline);)J+=this._input.next();return Z=!0,this._create_token(O.COMMENT,J)}}else if(Z&&G==="-"&&(J=this.__patterns.html_comment_end.read(),J))return Z=!1,this._create_token(O.COMMENT,J);return null},k.prototype._read_comment=function(G){var J=null;if(G==="/"){var j="";if(this._input.peek(1)==="*"){j=this.__patterns.block_comment.read();var v=U.get_directives(j);v&&v.ignore==="start"&&(j+=U.readIgnored(this._input)),j=j.replace(L.allLineBreaks,`
`),J=this._create_token(O.BLOCK_COMMENT,j),J.directives=v}else this._input.peek(1)==="/"&&(j=this.__patterns.comment.read(),J=this._create_token(O.COMMENT,j))}return J},k.prototype._read_string=function(G){if(G==="`"||G==="'"||G==='"'){var J=this._input.next();return this.has_char_escapes=!1,G==="`"?J+=this._read_string_recursive("`",!0,"${"):J+=this._read_string_recursive(G),this.has_char_escapes&&this._options.unescape_strings&&(J=F(J)),this._input.peek()===G&&(J+=this._input.next()),J=J.replace(L.allLineBreaks,`
`),this._create_token(O.STRING,J)}return null},k.prototype._allow_regexp_or_xml=function(G){return G.type===O.RESERVED&&$(G.text,["return","case","throw","else","do","typeof","yield"])||G.type===O.END_EXPR&&G.text===")"&&G.opened.previous.type===O.RESERVED&&$(G.opened.previous.text,["if","while","for"])||$(G.type,[O.COMMENT,O.START_EXPR,O.START_BLOCK,O.START,O.END_BLOCK,O.OPERATOR,O.EQUALS,O.EOF,O.SEMICOLON,O.COMMA])},k.prototype._read_regexp=function(G,J){if(G==="/"&&this._allow_regexp_or_xml(J)){for(var j=this._input.next(),v=!1,g=!1;this._input.hasNext()&&(v||g||this._input.peek()!==G)&&!this._input.testChar(L.newline);)j+=this._input.peek(),v?v=!1:(v=this._input.peek()==="\\",this._input.peek()==="["?g=!0:this._input.peek()==="]"&&(g=!1)),this._input.next();return this._input.peek()===G&&(j+=this._input.next(),j+=this._input.read(L.identifier)),this._create_token(O.STRING,j)}return null},k.prototype._read_xml=function(G,J){if(this._options.e4x&&G==="<"&&this._allow_regexp_or_xml(J)){var j="",v=this.__patterns.xml.read_match();if(v){for(var g=v[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),M=g.indexOf("{")===0,ue=0;v;){var Ie=!!v[1],Je=v[2],Dt=!!v[v.length-1]||Je.slice(0,8)==="![CDATA[";if(!Dt&&(Je===g||M&&Je.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Ie?--ue:++ue),j+=v[0],ue<=0)break;v=this.__patterns.xml.read_match()}return v||(j+=this._input.match(/[\s\S]*/g)[0]),j=j.replace(L.allLineBreaks,`
`),this._create_token(O.STRING,j)}}return null};function F(G){for(var J="",j=0,v=new T(G),g=null;v.hasNext();)if(g=v.match(/([\s]|[^\\]|\\\\)+/g),g&&(J+=g[0]),v.peek()==="\\"){if(v.next(),v.peek()==="x")g=v.match(/x([0-9A-Fa-f]{2})/g);else if(v.peek()==="u")g=v.match(/u([0-9A-Fa-f]{4})/g),g||(g=v.match(/u\{([0-9A-Fa-f]+)\}/g));else{J+="\\",v.hasNext()&&(J+=v.next());continue}if(!g||(j=parseInt(g[1],16),j>126&&j<=255&&g[0].indexOf("x")===0))return G;j>=0&&j<32||j>1114111?J+="\\"+g[0]:j===34||j===39||j===92?J+="\\"+String.fromCharCode(j):J+=String.fromCharCode(j)}return J}k.prototype._read_string_recursive=function(G,J,j){var v,g;G==="'"?g=this.__patterns.single_quote:G==='"'?g=this.__patterns.double_quote:G==="`"?g=this.__patterns.template_text:G==="}"&&(g=this.__patterns.template_expression);for(var M=g.read(),ue="";this._input.hasNext();){if(ue=this._input.next(),ue===G||!J&&L.newline.test(ue)){this._input.back();break}else ue==="\\"&&this._input.hasNext()?(v=this._input.peek(),v==="x"||v==="u"?this.has_char_escapes=!0:v==="\r"&&this._input.peek(1)===`
`&&this._input.next(),ue+=this._input.next()):j&&(j==="${"&&ue==="$"&&this._input.peek()==="{"&&(ue+=this._input.next()),j===ue&&(G==="`"?ue+=this._read_string_recursive("}",J,"`"):ue+=this._read_string_recursive("`",J,"${"),this._input.hasNext()&&(ue+=this._input.next())));ue+=g.read(),M+=ue}return M},re.exports.Tokenizer=k,re.exports.TOKEN=O,re.exports.positionable_operators=X.slice(),re.exports.line_starters=se.slice()},function(re){var o=RegExp.prototype.hasOwnProperty("sticky");function y(T){this.__input=T||"",this.__input_length=this.__input.length,this.__position=0}y.prototype.restart=function(){this.__position=0},y.prototype.back=function(){this.__position>0&&(this.__position-=1)},y.prototype.hasNext=function(){return this.__position<this.__input_length},y.prototype.next=function(){var T=null;return this.hasNext()&&(T=this.__input.charAt(this.__position),this.__position+=1),T},y.prototype.peek=function(T){var m=null;return T=T||0,T+=this.__position,T>=0&&T<this.__input_length&&(m=this.__input.charAt(T)),m},y.prototype.__match=function(T,m){T.lastIndex=m;var _=T.exec(this.__input);return _&&!(o&&T.sticky)&&_.index!==m&&(_=null),_},y.prototype.test=function(T,m){return m=m||0,m+=this.__position,m>=0&&m<this.__input_length?!!this.__match(T,m):!1},y.prototype.testChar=function(T,m){var _=this.peek(m);return T.lastIndex=0,_!==null&&T.test(_)},y.prototype.match=function(T){var m=this.__match(T,this.__position);return m?this.__position+=m[0].length:m=null,m},y.prototype.read=function(T,m,_){var b="",L;return T&&(L=this.match(T),L&&(b+=L[0])),m&&(L||!T)&&(b+=this.readUntil(m,_)),b},y.prototype.readUntil=function(T,m){var _="",b=this.__position;T.lastIndex=this.__position;var L=T.exec(this.__input);return L?(b=L.index,m&&(b+=L[0].length)):b=this.__input_length,_=this.__input.substring(this.__position,b),this.__position=b,_},y.prototype.readUntilAfter=function(T){return this.readUntil(T,!0)},y.prototype.get_regexp=function(T,m){var _=null,b="g";return m&&o&&(b="y"),typeof T=="string"&&T!==""?_=new RegExp(T,b):T&&(_=new RegExp(T.source,b)),_},y.prototype.get_literal_regexp=function(T){return RegExp(T.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},y.prototype.peekUntilAfter=function(T){var m=this.__position,_=this.readUntilAfter(T);return this.__position=m,_},y.prototype.lookBack=function(T){var m=this.__position-1;return m>=T.length&&this.__input.substring(m-T.length,m).toLowerCase()===T},re.exports.InputScanner=y},function(re,o,y){var T=y(8).InputScanner,m=y(3).Token,_=y(10).TokenStream,b=y(11).WhitespacePattern,L={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},K=function(W,$){this._input=new T(W),this._options=$||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new b(this._input)};K.prototype.tokenize=function(){this._input.restart(),this.__tokens=new _,this._reset();for(var W,$=new m(L.START,""),O=null,U=[],R=new _;$.type!==L.EOF;){for(W=this._get_next_token($,O);this._is_comment(W);)R.add(W),W=this._get_next_token($,O);R.isEmpty()||(W.comments_before=R,R=new _),W.parent=O,this._is_opening(W)?(U.push(O),O=W):O&&this._is_closing(W,O)&&(W.opened=O,O.closed=W,O=U.pop(),W.parent=O),W.previous=$,$.next=W,this.__tokens.add(W),$=W}return this.__tokens},K.prototype._is_first_token=function(){return this.__tokens.isEmpty()},K.prototype._reset=function(){},K.prototype._get_next_token=function(W,$){this._readWhitespace();var O=this._input.read(/.+/g);return O?this._create_token(L.RAW,O):this._create_token(L.EOF,"")},K.prototype._is_comment=function(W){return!1},K.prototype._is_opening=function(W){return!1},K.prototype._is_closing=function(W,$){return!1},K.prototype._create_token=function(W,$){var O=new m(W,$,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return O},K.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},re.exports.Tokenizer=K,re.exports.TOKEN=L},function(re){function o(y){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=y}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 y=null;return this.hasNext()&&(y=this.__tokens[this.__position],this.__position+=1),y},o.prototype.peek=function(y){var T=null;return y=y||0,y+=this.__position,y>=0&&y<this.__tokens_length&&(T=this.__tokens[y]),T},o.prototype.add=function(y){this.__parent_token&&(y.parent=this.__parent_token),this.__tokens.push(y),this.__tokens_length+=1},re.exports.TokenStream=o},function(re,o,y){var T=y(12).Pattern;function m(_,b){T.call(this,_,b),b?this._line_regexp=this._input.get_regexp(b._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}m.prototype=new T,m.prototype.__set_whitespace_patterns=function(_,b){_+="\\t ",b+="\\n\\r",this._match_pattern=this._input.get_regexp("["+_+b+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+b+"]")},m.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var _=this._input.read(this._match_pattern);if(_===" ")this.whitespace_before_token=" ";else if(_){var b=this.__split(this._newline_regexp,_);this.newline_count=b.length-1,this.whitespace_before_token=b[this.newline_count]}return _},m.prototype.matching=function(_,b){var L=this._create();return L.__set_whitespace_patterns(_,b),L._update(),L},m.prototype._create=function(){return new m(this._input,this)},m.prototype.__split=function(_,b){_.lastIndex=0;for(var L=0,K=[],W=_.exec(b);W;)K.push(b.substring(L,W.index)),L=W.index+W[0].length,W=_.exec(b);return L<b.length?K.push(b.substring(L,b.length)):K.push(""),K},re.exports.WhitespacePattern=m},function(re){function o(y,T){this._input=y,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,T&&(this._starting_pattern=this._input.get_regexp(T._starting_pattern,!0),this._match_pattern=this._input.get_regexp(T._match_pattern,!0),this._until_pattern=this._input.get_regexp(T._until_pattern),this._until_after=T._until_after)}o.prototype.read=function(){var y=this._input.read(this._starting_pattern);return(!this._starting_pattern||y)&&(y+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),y},o.prototype.read_match=function(){return this._input.match(this._match_pattern)},o.prototype.until_after=function(y){var T=this._create();return T._until_after=!0,T._until_pattern=this._input.get_regexp(y),T._update(),T},o.prototype.until=function(y){var T=this._create();return T._until_after=!1,T._until_pattern=this._input.get_regexp(y),T._update(),T},o.prototype.starting_with=function(y){var T=this._create();return T._starting_pattern=this._input.get_regexp(y,!0),T._update(),T},o.prototype.matching=function(y){var T=this._create();return T._match_pattern=this._input.get_regexp(y,!0),T._update(),T},o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){},re.exports.Pattern=o},function(re){function o(y,T){y=typeof y=="string"?y:y.source,T=typeof T=="string"?T:T.source,this.__directives_block_pattern=new RegExp(y+/ beautify( \w+[:]\w+)+ /.source+T,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(y+/\sbeautify\signore:end\s/.source+T,"g")}o.prototype.get_directives=function(y){if(!y.match(this.__directives_block_pattern))return null;var T={};this.__directive_pattern.lastIndex=0;for(var m=this.__directive_pattern.exec(y);m;)T[m[1]]=m[2],m=this.__directive_pattern.exec(y);return T},o.prototype.readIgnored=function(y){return y.readUntilAfter(this.__directives_end_ignore_pattern)},re.exports.Directives=o},function(re,o,y){var T=y(12).Pattern,m={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function _(b,L){T.call(this,b,L),this.__template_pattern=null,this._disabled=Object.assign({},m),this._excluded=Object.assign({},m),L&&(this.__template_pattern=this._input.get_regexp(L.__template_pattern),this._excluded=Object.assign(this._excluded,L._excluded),this._disabled=Object.assign(this._disabled,L._disabled));var K=new T(b);this.__patterns={handlebars_comment:K.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:K.starting_with(/{{{/).until_after(/}}}/),handlebars:K.starting_with(/{{/).until_after(/}}/),php:K.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:K.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:K.starting_with(/{%/).until_after(/%}/),django_value:K.starting_with(/{{/).until_after(/}}/),django_comment:K.starting_with(/{#/).until_after(/#}/),smarty:K.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:K.starting_with(/{\*/).until_after(/\*}/),smarty_literal:K.starting_with(/{literal}/).until_after(/{\/literal}/)}}_.prototype=new T,_.prototype._create=function(){return new _(this._input,this)},_.prototype._update=function(){this.__set_templated_pattern()},_.prototype.disable=function(b){var L=this._create();return L._disabled[b]=!0,L._update(),L},_.prototype.read_options=function(b){var L=this._create();for(var K in m)L._disabled[K]=b.templating.indexOf(K)===-1;return L._update(),L},_.prototype.exclude=function(b){var L=this._create();return L._excluded[b]=!0,L._update(),L},_.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 L=this._read_template();L;)this._match_pattern?L+=this._input.read(this._match_pattern):L+=this._input.readUntil(this.__template_pattern),b+=L,L=this._read_template();return this._until_after&&(b+=this._input.readUntilAfter(this._until_pattern)),b},_.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("|")+")")},_.prototype._read_template=function(){var b="",L=this._input.peek();if(L==="<"){var K=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&K==="?"&&(b=b||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&K==="%"&&(b=b||this.__patterns.erb.read())}else L==="{"&&(!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},re.exports.TemplatablePattern=_}],B={};function d(re){var o=B[re];if(o!==void 0)return o.exports;var y=B[re]={exports:{}};return oe[re](y,y.exports,d),y.exports}var me=d(0);le=me})();var ne=le;E=[],h=function(){return{js_beautify:ne}}.apply(Gt,E),h!==void 0&&(Rn.exports=h)})()},7861:function(Rn,Gt,E){var h=E(38710),le=function(B){var d=/[height|width]$/;return d.test(B)},ne=function(B){var d="",me=Object.keys(B);return me.forEach(function(re,o){var y=B[re];re=h(re),le(re)&&typeof y=="number"&&(y=y+"px"),y===!0?d+=re:y===!1?d+="not "+re:d+="("+re+": "+y+")",o<me.length-1&&(d+=" and ")}),d},oe=function(B){var d="";return typeof B=="string"?B:B instanceof Array?(B.forEach(function(me,re){d+=ne(me),re<B.length-1&&(d+=", ")}),d):ne(B)};Rn.exports=oe},32834:function(Rn){(function(Gt,E){Rn.exports=E()})(this,function(){"use strict";function Gt(Ke,ke){for(var Ne=0;Ne<ke.length;Ne++){var I=ke[Ne];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(Ke,I.key,I)}}function E(Ke,ke,Ne){return ke&&Gt(Ke.prototype,ke),Ne&&Gt(Ke,Ne),Ke}function h(Ke,ke){if(Ke){if(typeof Ke=="string")return le(Ke,ke);var Ne=Object.prototype.toString.call(Ke).slice(8,-1);if(Ne==="Object"&&Ke.constructor&&(Ne=Ke.constructor.name),Ne==="Map"||Ne==="Set")return Array.from(Ke);if(Ne==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ne))return le(Ke,ke)}}function le(Ke,ke){(ke==null||ke>Ke.length)&&(ke=Ke.length);for(var Ne=0,I=new Array(ke);Ne<ke;Ne++)I[Ne]=Ke[Ne];return I}function ne(Ke,ke){var Ne=typeof Symbol!="undefined"&&Ke[Symbol.iterator]||Ke["@@iterator"];if(Ne)return(Ne=Ne.call(Ke)).next.bind(Ne);if(Array.isArray(Ke)||(Ne=h(Ke))||ke&&Ke&&typeof Ke.length=="number"){Ne&&(Ke=Ne);var I=0;return function(){return I>=Ke.length?{done:!0}:{done:!1,value:Ke[I++]}}}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 oe={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(Ke){oe.exports.defaults=Ke}oe.exports={defaults:B(),getDefaults:B,changeDefaults:d};var me=/[&<>"']/,re=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,y=/[<>"']|&(?!#?\w+;)/g,T={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},m=function(ke){return T[ke]};function _(Ke,ke){if(ke){if(me.test(Ke))return Ke.replace(re,m)}else if(o.test(Ke))return Ke.replace(y,m);return Ke}var b=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function L(Ke){return Ke.replace(b,function(ke,Ne){return Ne=Ne.toLowerCase(),Ne==="colon"?":":Ne.charAt(0)==="#"?Ne.charAt(1)==="x"?String.fromCharCode(parseInt(Ne.substring(2),16)):String.fromCharCode(+Ne.substring(1)):""})}var K=/(^|[^\[])\^/g;function W(Ke,ke){Ke=Ke.source||Ke,ke=ke||"";var Ne={replace:function(ee,fe){return fe=fe.source||fe,fe=fe.replace(K,"$1"),Ke=Ke.replace(ee,fe),Ne},getRegex:function(){return new RegExp(Ke,ke)}};return Ne}var $=/[^\w:]/g,O=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function U(Ke,ke,Ne){if(Ke){var I;try{I=decodeURIComponent(L(Ne)).replace($,"").toLowerCase()}catch(ee){return null}if(I.indexOf("javascript:")===0||I.indexOf("vbscript:")===0||I.indexOf("data:")===0)return null}ke&&!O.test(Ne)&&(Ne=H(ke,Ne));try{Ne=encodeURI(Ne).replace(/%25/g,"%")}catch(ee){return null}return Ne}var R={},x=/^[^:]+:\/*[^/]*$/,V=/^([^:]+:)[\s\S]*$/,X=/^([^:]+:\/*[^/]*)[\s\S]*$/;function H(Ke,ke){R[" "+Ke]||(x.test(Ke)?R[" "+Ke]=Ke+"/":R[" "+Ke]=Fe(Ke,"/",!0)),Ke=R[" "+Ke];var Ne=Ke.indexOf(":")===-1;return ke.substring(0,2)==="//"?Ne?ke:Ke.replace(V,"$1")+ke:ke.charAt(0)==="/"?Ne?ke:Ke.replace(X,"$1")+ke:Ke+ke}var q={exec:function(){}};function se(Ke){for(var ke=1,Ne,I;ke<arguments.length;ke++){Ne=arguments[ke];for(I in Ne)Object.prototype.hasOwnProperty.call(Ne,I)&&(Ke[I]=Ne[I])}return Ke}function ie(Ke,ke){var Ne=Ke.replace(/\|/g,function(fe,ve,ye){for(var Ue=!1,$e=ve;--$e>=0&&ye[$e]==="\\";)Ue=!Ue;return Ue?"|":" |"}),I=Ne.split(/ \|/),ee=0;if(I.length>ke)I.splice(ke);else for(;I.length<ke;)I.push("");for(;ee<I.length;ee++)I[ee]=I[ee].trim().replace(/\\\|/g,"|");return I}function Fe(Ke,ke,Ne){var I=Ke.length;if(I===0)return"";for(var ee=0;ee<I;){var fe=Ke.charAt(I-ee-1);if(fe===ke&&!Ne)ee++;else if(fe!==ke&&Ne)ee++;else break}return Ke.substr(0,I-ee)}function Z(Ke,ke){if(Ke.indexOf(ke[1])===-1)return-1;for(var Ne=Ke.length,I=0,ee=0;ee<Ne;ee++)if(Ke[ee]==="\\")ee++;else if(Ke[ee]===ke[0])I++;else if(Ke[ee]===ke[1]&&(I--,I<0))return ee;return-1}function k(Ke){Ke&&Ke.sanitize&&!Ke.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 F(Ke,ke){if(ke<1)return"";for(var Ne="";ke>1;)ke&1&&(Ne+=Ke),ke>>=1,Ke+=Ke;return Ne+Ke}var G={escape:_,unescape:L,edit:W,cleanUrl:U,resolveUrl:H,noopTest:q,merge:se,splitCells:ie,rtrim:Fe,findClosingBracket:Z,checkSanitizeDeprecation:k,repeatString:F},J=oe.exports.defaults,j=G.rtrim,v=G.splitCells,g=G.escape,M=G.findClosingBracket;function ue(Ke,ke,Ne){var I=ke.href,ee=ke.title?g(ke.title):null,fe=Ke[1].replace(/\\([\[\]])/g,"$1");return Ke[0].charAt(0)!=="!"?{type:"link",raw:Ne,href:I,title:ee,text:fe}:{type:"image",raw:Ne,href:I,title:ee,text:g(fe)}}function Ie(Ke,ke){var Ne=Ke.match(/^(\s+)(?:```)/);if(Ne===null)return ke;var I=Ne[1];return ke.split(`
`).map(function(ee){var fe=ee.match(/^\s+/);if(fe===null)return ee;var ve=fe[0];return ve.length>=I.length?ee.slice(I.length):ee}).join(`
`)}var Je=function(){function Ke(Ne){this.options=Ne||J}var ke=Ke.prototype;return ke.space=function(I){var ee=this.rules.block.newline.exec(I);if(ee)return ee[0].length>1?{type:"space",raw:ee[0]}:{raw:`
`}},ke.code=function(I){var ee=this.rules.block.code.exec(I);if(ee){var fe=ee[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:ee[0],codeBlockStyle:"indented",text:this.options.pedantic?fe:j(fe,`
`)}}},ke.fences=function(I){var ee=this.rules.block.fences.exec(I);if(ee){var fe=ee[0],ve=Ie(fe,ee[3]||"");return{type:"code",raw:fe,lang:ee[2]?ee[2].trim():ee[2],text:ve}}},ke.heading=function(I){var ee=this.rules.block.heading.exec(I);if(ee){var fe=ee[2].trim();if(/#$/.test(fe)){var ve=j(fe,"#");(this.options.pedantic||!ve||/ $/.test(ve))&&(fe=ve.trim())}return{type:"heading",raw:ee[0],depth:ee[1].length,text:fe}}},ke.nptable=function(I){var ee=this.rules.block.nptable.exec(I);if(ee){var fe={type:"table",header:v(ee[1].replace(/^ *| *\| *$/g,"")),align:ee[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ee[3]?ee[3].replace(/\n$/,"").split(`
`):[],raw:ee[0]};if(fe.header.length===fe.align.length){var ve=fe.align.length,ye;for(ye=0;ye<ve;ye++)/^ *-+: *$/.test(fe.align[ye])?fe.align[ye]="right":/^ *:-+: *$/.test(fe.align[ye])?fe.align[ye]="center":/^ *:-+ *$/.test(fe.align[ye])?fe.align[ye]="left":fe.align[ye]=null;for(ve=fe.cells.length,ye=0;ye<ve;ye++)fe.cells[ye]=v(fe.cells[ye],fe.header.length);return fe}}},ke.hr=function(I){var ee=this.rules.block.hr.exec(I);if(ee)return{type:"hr",raw:ee[0]}},ke.blockquote=function(I){var ee=this.rules.block.blockquote.exec(I);if(ee){var fe=ee[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:ee[0],text:fe}}},ke.list=function(I){var ee=this.rules.block.list.exec(I);if(ee){var fe=ee[0],ve=ee[2],ye=ve.length>1,Ue={type:"list",raw:fe,ordered:ye,start:ye?+ve.slice(0,-1):"",loose:!1,items:[]},$e=ee[0].match(this.rules.block.item),ut=!1,At,Ge,w,ae,A,Ze,Ee,Le,ze,Ve=$e.length;w=this.rules.block.listItemStart.exec($e[0]);for(var it=0;it<Ve;it++){if(At=$e[it],fe=At,this.options.pedantic||(ze=At.match(new RegExp("\\n\\s*\\n {0,"+(w[0].length-1)+"}\\S")),ze&&(A=At.length-ze.index+$e.slice(it+1).join(`
`).length,Ue.raw=Ue.raw.substring(0,Ue.raw.length-A),At=At.substring(0,ze.index),fe=At,Ve=it+1)),it!==Ve-1){if(ae=this.rules.block.listItemStart.exec($e[it+1]),this.options.pedantic?ae[1].length>w[1].length:ae[1].length>=w[0].length||ae[1].length>3){$e.splice(it,2,$e[it]+(!this.options.pedantic&&ae[1].length<w[0].length&&!$e[it].match(/\n$/)?"":`
`)+$e[it+1]),it--,Ve--;continue}else(!this.options.pedantic||this.options.smartLists?ae[2][ae[2].length-1]!==ve[ve.length-1]:ye===(ae[2].length===1))&&(A=$e.slice(it+1).join(`
`).length,Ue.raw=Ue.raw.substring(0,Ue.raw.length-A),it=Ve-1);w=ae}Ge=At.length,At=At.replace(/^ *([*+-]|\d+[.)]) ?/,""),~At.indexOf(`
`)&&(Ge-=At.length,At=this.options.pedantic?At.replace(/^ {1,4}/gm,""):At.replace(new RegExp("^ {1,"+Ge+"}","gm"),"")),At=j(At,`
`),it!==Ve-1&&(fe=fe+`
`),Ze=ut||/\n\n(?!\s*$)/.test(fe),it!==Ve-1&&(ut=fe.slice(-2)===`
`,Ze||(Ze=ut)),Ze&&(Ue.loose=!0),this.options.gfm&&(Ee=/^\[[ xX]\] /.test(At),Le=void 0,Ee&&(Le=At[1]!==" ",At=At.replace(/^\[[ xX]\] +/,""))),Ue.items.push({type:"list_item",raw:fe,task:Ee,checked:Le,loose:Ze,text:At})}return Ue}},ke.html=function(I){var ee=this.rules.block.html.exec(I);if(ee)return{type:this.options.sanitize?"paragraph":"html",raw:ee[0],pre:!this.options.sanitizer&&(ee[1]==="pre"||ee[1]==="script"||ee[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ee[0]):g(ee[0]):ee[0]}},ke.def=function(I){var ee=this.rules.block.def.exec(I);if(ee){ee[3]&&(ee[3]=ee[3].substring(1,ee[3].length-1));var fe=ee[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:fe,raw:ee[0],href:ee[2],title:ee[3]}}},ke.table=function(I){var ee=this.rules.block.table.exec(I);if(ee){var fe={type:"table",header:v(ee[1].replace(/^ *| *\| *$/g,"")),align:ee[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:ee[3]?ee[3].replace(/\n$/,"").split(`
`):[]};if(fe.header.length===fe.align.length){fe.raw=ee[0];var ve=fe.align.length,ye;for(ye=0;ye<ve;ye++)/^ *-+: *$/.test(fe.align[ye])?fe.align[ye]="right":/^ *:-+: *$/.test(fe.align[ye])?fe.align[ye]="center":/^ *:-+ *$/.test(fe.align[ye])?fe.align[ye]="left":fe.align[ye]=null;for(ve=fe.cells.length,ye=0;ye<ve;ye++)fe.cells[ye]=v(fe.cells[ye].replace(/^ *\| *| *\| *$/g,""),fe.header.length);return fe}}},ke.lheading=function(I){var ee=this.rules.block.lheading.exec(I);if(ee)return{type:"heading",raw:ee[0],depth:ee[2].charAt(0)==="="?1:2,text:ee[1]}},ke.paragraph=function(I){var ee=this.rules.block.paragraph.exec(I);if(ee)return{type:"paragraph",raw:ee[0],text:ee[1].charAt(ee[1].length-1)===`
`?ee[1].slice(0,-1):ee[1]}},ke.text=function(I){var ee=this.rules.block.text.exec(I);if(ee)return{type:"text",raw:ee[0],text:ee[0]}},ke.escape=function(I){var ee=this.rules.inline.escape.exec(I);if(ee)return{type:"escape",raw:ee[0],text:g(ee[1])}},ke.tag=function(I,ee,fe){var ve=this.rules.inline.tag.exec(I);if(ve)return!ee&&/^<a /i.test(ve[0])?ee=!0:ee&&/^<\/a>/i.test(ve[0])&&(ee=!1),!fe&&/^<(pre|code|kbd|script)(\s|>)/i.test(ve[0])?fe=!0:fe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ve[0])&&(fe=!1),{type:this.options.sanitize?"text":"html",raw:ve[0],inLink:ee,inRawBlock:fe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ve[0]):g(ve[0]):ve[0]}},ke.link=function(I){var ee=this.rules.inline.link.exec(I);if(ee){var fe=ee[2].trim();if(!this.options.pedantic&&/^</.test(fe)){if(!/>$/.test(fe))return;var ve=j(fe.slice(0,-1),"\\");if((fe.length-ve.length)%2===0)return}else{var ye=M(ee[2],"()");if(ye>-1){var Ue=ee[0].indexOf("!")===0?5:4,$e=Ue+ee[1].length+ye;ee[2]=ee[2].substring(0,ye),ee[0]=ee[0].substring(0,$e).trim(),ee[3]=""}}var ut=ee[2],At="";if(this.options.pedantic){var Ge=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(ut);Ge&&(ut=Ge[1],At=Ge[3])}else At=ee[3]?ee[3].slice(1,-1):"";return ut=ut.trim(),/^</.test(ut)&&(this.options.pedantic&&!/>$/.test(fe)?ut=ut.slice(1):ut=ut.slice(1,-1)),ue(ee,{href:ut&&ut.replace(this.rules.inline._escapes,"$1"),title:At&&At.replace(this.rules.inline._escapes,"$1")},ee[0])}},ke.reflink=function(I,ee){var fe;if((fe=this.rules.inline.reflink.exec(I))||(fe=this.rules.inline.nolink.exec(I))){var ve=(fe[2]||fe[1]).replace(/\s+/g," ");if(ve=ee[ve.toLowerCase()],!ve||!ve.href){var ye=fe[0].charAt(0);return{type:"text",raw:ye,text:ye}}return ue(fe,ve,fe[0])}},ke.emStrong=function(I,ee,fe){fe===void 0&&(fe="");var ve=this.rules.inline.emStrong.lDelim.exec(I);if(ve&&!(ve[3]&&fe.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-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\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-\uAB69\uAB70-\uABE2\uABF0-\uABF9\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\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uD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D805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\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\uD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C00-\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 ye=ve[1]||ve[2]||"";if(!ye||ye&&(fe===""||this.rules.inline.punctuation.exec(fe))){var Ue=ve[0].length-1,$e,ut,At=Ue,Ge=0,w=ve[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(w.lastIndex=0,ee=ee.slice(-1*I.length+Ue);(ve=w.exec(ee))!=null;)if($e=ve[1]||ve[2]||ve[3]||ve[4]||ve[5]||ve[6],!!$e){if(ut=$e.length,ve[3]||ve[4]){At+=ut;continue}else if((ve[5]||ve[6])&&Ue%3&&!((Ue+ut)%3)){Ge+=ut;continue}if(At-=ut,!(At>0))return ut=Math.min(ut,ut+At+Ge),Math.min(Ue,ut)%2?{type:"em",raw:I.slice(0,Ue+ve.index+ut+1),text:I.slice(1,Ue+ve.index+ut)}:{type:"strong",raw:I.slice(0,Ue+ve.index+ut+1),text:I.slice(2,Ue+ve.index+ut-1)}}}}},ke.codespan=function(I){var ee=this.rules.inline.code.exec(I);if(ee){var fe=ee[2].replace(/\n/g," "),ve=/[^ ]/.test(fe),ye=/^ /.test(fe)&&/ $/.test(fe);return ve&&ye&&(fe=fe.substring(1,fe.length-1)),fe=g(fe,!0),{type:"codespan",raw:ee[0],text:fe}}},ke.br=function(I){var ee=this.rules.inline.br.exec(I);if(ee)return{type:"br",raw:ee[0]}},ke.del=function(I){var ee=this.rules.inline.del.exec(I);if(ee)return{type:"del",raw:ee[0],text:ee[2]}},ke.autolink=function(I,ee){var fe=this.rules.inline.autolink.exec(I);if(fe){var ve,ye;return fe[2]==="@"?(ve=g(this.options.mangle?ee(fe[1]):fe[1]),ye="mailto:"+ve):(ve=g(fe[1]),ye=ve),{type:"link",raw:fe[0],text:ve,href:ye,tokens:[{type:"text",raw:ve,text:ve}]}}},ke.url=function(I,ee){var fe;if(fe=this.rules.inline.url.exec(I)){var ve,ye;if(fe[2]==="@")ve=g(this.options.mangle?ee(fe[0]):fe[0]),ye="mailto:"+ve;else{var Ue;do Ue=fe[0],fe[0]=this.rules.inline._backpedal.exec(fe[0])[0];while(Ue!==fe[0]);ve=g(fe[0]),fe[1]==="www."?ye="http://"+ve:ye=ve}return{type:"link",raw:fe[0],text:ve,href:ye,tokens:[{type:"text",raw:ve,text:ve}]}}},ke.inlineText=function(I,ee,fe){var ve=this.rules.inline.text.exec(I);if(ve){var ye;return ee?ye=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ve[0]):g(ve[0]):ve[0]:ye=g(this.options.smartypants?fe(ve[0]):ve[0]),{type:"text",raw:ve[0],text:ye}}},Ke}(),Dt=G.noopTest,vt=G.edit,Mt=G.merge,Bt={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:Dt,table:Dt,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};Bt._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Bt._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Bt.def=vt(Bt.def).replace("label",Bt._label).replace("title",Bt._title).getRegex(),Bt.bullet=/(?:[*+-]|\d{1,9}[.)])/,Bt.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,Bt.item=vt(Bt.item,"gm").replace(/bull/g,Bt.bullet).getRegex(),Bt.listItemStart=vt(/^( *)(bull) */).replace("bull",Bt.bullet).getRegex(),Bt.list=vt(Bt.list).replace(/bull/g,Bt.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Bt.def.source+")").getRegex(),Bt._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",Bt._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Bt.html=vt(Bt.html,"i").replace("comment",Bt._comment).replace("tag",Bt._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Bt.paragraph=vt(Bt._paragraph).replace("hr",Bt.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",Bt._tag).getRegex(),Bt.blockquote=vt(Bt.blockquote).replace("paragraph",Bt.paragraph).getRegex(),Bt.normal=Mt({},Bt),Bt.gfm=Mt({},Bt.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*|$)"}),Bt.gfm.nptable=vt(Bt.gfm.nptable).replace("hr",Bt.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",Bt._tag).getRegex(),Bt.gfm.table=vt(Bt.gfm.table).replace("hr",Bt.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",Bt._tag).getRegex(),Bt.pedantic=Mt({},Bt.normal,{html:vt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Bt._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:Dt,paragraph:vt(Bt.normal._paragraph).replace("hr",Bt.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Bt.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var we={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Dt,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:Dt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};we._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",we.punctuation=vt(we.punctuation).replace(/punctuation/g,we._punctuation).getRegex(),we.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,we.escapedEmSt=/\\\*|\\_/g,we._comment=vt(Bt._comment).replace("(?:-->|$)","-->").getRegex(),we.emStrong.lDelim=vt(we.emStrong.lDelim).replace(/punct/g,we._punctuation).getRegex(),we.emStrong.rDelimAst=vt(we.emStrong.rDelimAst,"g").replace(/punct/g,we._punctuation).getRegex(),we.emStrong.rDelimUnd=vt(we.emStrong.rDelimUnd,"g").replace(/punct/g,we._punctuation).getRegex(),we._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,we._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,we._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])?)+(?![-_])/,we.autolink=vt(we.autolink).replace("scheme",we._scheme).replace("email",we._email).getRegex(),we._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,we.tag=vt(we.tag).replace("comment",we._comment).replace("attribute",we._attribute).getRegex(),we._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,we._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,we._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,we.link=vt(we.link).replace("label",we._label).replace("href",we._href).replace("title",we._title).getRegex(),we.reflink=vt(we.reflink).replace("label",we._label).getRegex(),we.reflinkSearch=vt(we.reflinkSearch,"g").replace("reflink",we.reflink).replace("nolink",we.nolink).getRegex(),we.normal=Mt({},we),we.pedantic=Mt({},we.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:vt(/^!?\[(label)\]\((.*?)\)/).replace("label",we._label).getRegex(),reflink:vt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",we._label).getRegex()}),we.gfm=Mt({},we.normal,{escape:vt(we.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),we.gfm.url=vt(we.gfm.url,"i").replace("email",we.gfm._extended_email).getRegex(),we.breaks=Mt({},we.gfm,{br:vt(we.br).replace("{2,}","*").getRegex(),text:vt(we.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Yt={block:Bt,inline:we},_t=Je,Xt=oe.exports.defaults,lt=Yt.block,tt=Yt.inline,Te=G.repeatString;function pe(Ke){return Ke.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 N(Ke){var ke="",Ne,I,ee=Ke.length;for(Ne=0;Ne<ee;Ne++)I=Ke.charCodeAt(Ne),Math.random()>.5&&(I="x"+I.toString(16)),ke+="&#"+I+";";return ke}var xe=function(){function Ke(Ne){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ne||Xt,this.options.tokenizer=this.options.tokenizer||new _t,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var I={block:lt.normal,inline:tt.normal};this.options.pedantic?(I.block=lt.pedantic,I.inline=tt.pedantic):this.options.gfm&&(I.block=lt.gfm,this.options.breaks?I.inline=tt.breaks:I.inline=tt.gfm),this.tokenizer.rules=I}Ke.lex=function(I,ee){var fe=new Ke(ee);return fe.lex(I)},Ke.lexInline=function(I,ee){var fe=new Ke(ee);return fe.inlineTokens(I)};var ke=Ke.prototype;return ke.lex=function(I){return I=I.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(I,this.tokens,!0),this.inline(this.tokens),this.tokens},ke.blockTokens=function(I,ee,fe){ee===void 0&&(ee=[]),fe===void 0&&(fe=!0),this.options.pedantic&&(I=I.replace(/^ +$/gm,""));for(var ve,ye,Ue,$e;I;){if(ve=this.tokenizer.space(I)){I=I.substring(ve.raw.length),ve.type&&ee.push(ve);continue}if(ve=this.tokenizer.code(I)){I=I.substring(ve.raw.length),$e=ee[ee.length-1],$e&&$e.type==="paragraph"?($e.raw+=`
`+ve.raw,$e.text+=`
`+ve.text):ee.push(ve);continue}if(ve=this.tokenizer.fences(I)){I=I.substring(ve.raw.length),ee.push(ve);continue}if(ve=this.tokenizer.heading(I)){I=I.substring(ve.raw.length),ee.push(ve);continue}if(ve=this.tokenizer.nptable(I)){I=I.substring(ve.raw.length),ee.push(ve);continue}if(ve=this.tokenizer.hr(I)){I=I.substring(ve.raw.length),ee.push(ve);continue}if(ve=this.tokenizer.blockquote(I)){I=I.substring(ve.raw.length),ve.tokens=this.blockTokens(ve.text,[],fe),ee.push(ve);continue}if(ve=this.tokenizer.list(I)){for(I=I.substring(ve.raw.length),Ue=ve.items.length,ye=0;ye<Ue;ye++)ve.items[ye].tokens=this.blockTokens(ve.items[ye].text,[],!1);ee.push(ve);continue}if(ve=this.tokenizer.html(I)){I=I.substring(ve.raw.length),ee.push(ve);continue}if(fe&&(ve=this.tokenizer.def(I))){I=I.substring(ve.raw.length),this.tokens.links[ve.tag]||(this.tokens.links[ve.tag]={href:ve.href,title:ve.title});continue}if(ve=this.tokenizer.table(I)){I=I.substring(ve.raw.length),ee.push(ve);continue}if(ve=this.tokenizer.lheading(I)){I=I.substring(ve.raw.length),ee.push(ve);continue}if(fe&&(ve=this.tokenizer.paragraph(I))){I=I.substring(ve.raw.length),ee.push(ve);continue}if(ve=this.tokenizer.text(I)){I=I.substring(ve.raw.length),$e=ee[ee.length-1],$e&&$e.type==="text"?($e.raw+=`
`+ve.raw,$e.text+=`
`+ve.text):ee.push(ve);continue}if(I){var ut="Infinite loop on byte: "+I.charCodeAt(0);if(this.options.silent){console.error(ut);break}else throw new Error(ut)}}return ee},ke.inline=function(I){var ee,fe,ve,ye,Ue,$e,ut=I.length;for(ee=0;ee<ut;ee++)switch($e=I[ee],$e.type){case"paragraph":case"text":case"heading":{$e.tokens=[],this.inlineTokens($e.text,$e.tokens);break}case"table":{for($e.tokens={header:[],cells:[]},ye=$e.header.length,fe=0;fe<ye;fe++)$e.tokens.header[fe]=[],this.inlineTokens($e.header[fe],$e.tokens.header[fe]);for(ye=$e.cells.length,fe=0;fe<ye;fe++)for(Ue=$e.cells[fe],$e.tokens.cells[fe]=[],ve=0;ve<Ue.length;ve++)$e.tokens.cells[fe][ve]=[],this.inlineTokens(Ue[ve],$e.tokens.cells[fe][ve]);break}case"blockquote":{this.inline($e.tokens);break}case"list":{for(ye=$e.items.length,fe=0;fe<ye;fe++)this.inline($e.items[fe].tokens);break}}return I},ke.inlineTokens=function(I,ee,fe,ve){ee===void 0&&(ee=[]),fe===void 0&&(fe=!1),ve===void 0&&(ve=!1);var ye,Ue,$e=I,ut,At,Ge;if(this.tokens.links){var w=Object.keys(this.tokens.links);if(w.length>0)for(;(ut=this.tokenizer.rules.inline.reflinkSearch.exec($e))!=null;)w.includes(ut[0].slice(ut[0].lastIndexOf("[")+1,-1))&&($e=$e.slice(0,ut.index)+"["+Te("a",ut[0].length-2)+"]"+$e.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(ut=this.tokenizer.rules.inline.blockSkip.exec($e))!=null;)$e=$e.slice(0,ut.index)+"["+Te("a",ut[0].length-2)+"]"+$e.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(ut=this.tokenizer.rules.inline.escapedEmSt.exec($e))!=null;)$e=$e.slice(0,ut.index)+"++"+$e.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;I;){if(At||(Ge=""),At=!1,ye=this.tokenizer.escape(I)){I=I.substring(ye.raw.length),ee.push(ye);continue}if(ye=this.tokenizer.tag(I,fe,ve)){I=I.substring(ye.raw.length),fe=ye.inLink,ve=ye.inRawBlock;var ae=ee[ee.length-1];ae&&ye.type==="text"&&ae.type==="text"?(ae.raw+=ye.raw,ae.text+=ye.text):ee.push(ye);continue}if(ye=this.tokenizer.link(I)){I=I.substring(ye.raw.length),ye.type==="link"&&(ye.tokens=this.inlineTokens(ye.text,[],!0,ve)),ee.push(ye);continue}if(ye=this.tokenizer.reflink(I,this.tokens.links)){I=I.substring(ye.raw.length);var A=ee[ee.length-1];ye.type==="link"?(ye.tokens=this.inlineTokens(ye.text,[],!0,ve),ee.push(ye)):A&&ye.type==="text"&&A.type==="text"?(A.raw+=ye.raw,A.text+=ye.text):ee.push(ye);continue}if(ye=this.tokenizer.emStrong(I,$e,Ge)){I=I.substring(ye.raw.length),ye.tokens=this.inlineTokens(ye.text,[],fe,ve),ee.push(ye);continue}if(ye=this.tokenizer.codespan(I)){I=I.substring(ye.raw.length),ee.push(ye);continue}if(ye=this.tokenizer.br(I)){I=I.substring(ye.raw.length),ee.push(ye);continue}if(ye=this.tokenizer.del(I)){I=I.substring(ye.raw.length),ye.tokens=this.inlineTokens(ye.text,[],fe,ve),ee.push(ye);continue}if(ye=this.tokenizer.autolink(I,N)){I=I.substring(ye.raw.length),ee.push(ye);continue}if(!fe&&(ye=this.tokenizer.url(I,N))){I=I.substring(ye.raw.length),ee.push(ye);continue}if(ye=this.tokenizer.inlineText(I,ve,pe)){I=I.substring(ye.raw.length),ye.raw.slice(-1)!=="_"&&(Ge=ye.raw.slice(-1)),At=!0,Ue=ee[ee.length-1],Ue&&Ue.type==="text"?(Ue.raw+=ye.raw,Ue.text+=ye.text):ee.push(ye);continue}if(I){var Ze="Infinite loop on byte: "+I.charCodeAt(0);if(this.options.silent){console.error(Ze);break}else throw new Error(Ze)}}return ee},E(Ke,null,[{key:"rules",get:function(){return{block:lt,inline:tt}}}]),Ke}(),Pe=oe.exports.defaults,z=G.cleanUrl,P=G.escape,ce=function(){function Ke(Ne){this.options=Ne||Pe}var ke=Ke.prototype;return ke.code=function(I,ee,fe){var ve=(ee||"").match(/\S*/)[0];if(this.options.highlight){var ye=this.options.highlight(I,ve);ye!=null&&ye!==I&&(fe=!0,I=ye)}return I=I.replace(/\n$/,"")+`
`,ve?'<pre><code class="'+this.options.langPrefix+P(ve,!0)+'">'+(fe?I:P(I,!0))+`</code></pre>
`:"<pre><code>"+(fe?I:P(I,!0))+`</code></pre>
`},ke.blockquote=function(I){return`<blockquote>
`+I+`</blockquote>
`},ke.html=function(I){return I},ke.heading=function(I,ee,fe,ve){return this.options.headerIds?"<h"+ee+' id="'+this.options.headerPrefix+ve.slug(fe)+'">'+I+"</h"+ee+`>
`:"<h"+ee+">"+I+"</h"+ee+`>
`},ke.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},ke.list=function(I,ee,fe){var ve=ee?"ol":"ul",ye=ee&&fe!==1?' start="'+fe+'"':"";return"<"+ve+ye+`>
`+I+"</"+ve+`>
`},ke.listitem=function(I){return"<li>"+I+`</li>
`},ke.checkbox=function(I){return"<input "+(I?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},ke.paragraph=function(I){return"<p>"+I+`</p>
`},ke.table=function(I,ee){return ee&&(ee="<tbody>"+ee+"</tbody>"),`<table>
<thead>
`+I+`</thead>
`+ee+`</table>
`},ke.tablerow=function(I){return`<tr>
`+I+`</tr>
`},ke.tablecell=function(I,ee){var fe=ee.header?"th":"td",ve=ee.align?"<"+fe+' align="'+ee.align+'">':"<"+fe+">";return ve+I+"</"+fe+`>
`},ke.strong=function(I){return"<strong>"+I+"</strong>"},ke.em=function(I){return"<em>"+I+"</em>"},ke.codespan=function(I){return"<code>"+I+"</code>"},ke.br=function(){return this.options.xhtml?"<br/>":"<br>"},ke.del=function(I){return"<del>"+I+"</del>"},ke.link=function(I,ee,fe){if(I=z(this.options.sanitize,this.options.baseUrl,I),I===null)return fe;var ve='<a href="'+P(I)+'"';return ee&&(ve+=' title="'+ee+'"'),ve+=">"+fe+"</a>",ve},ke.image=function(I,ee,fe){if(I=z(this.options.sanitize,this.options.baseUrl,I),I===null)return fe;var ve='<img src="'+I+'" alt="'+fe+'"';return ee&&(ve+=' title="'+ee+'"'),ve+=this.options.xhtml?"/>":">",ve},ke.text=function(I){return I},Ke}(),Ce=function(){function Ke(){}var ke=Ke.prototype;return ke.strong=function(I){return I},ke.em=function(I){return I},ke.codespan=function(I){return I},ke.del=function(I){return I},ke.html=function(I){return I},ke.text=function(I){return I},ke.link=function(I,ee,fe){return""+fe},ke.image=function(I,ee,fe){return""+fe},ke.br=function(){return""},Ke}(),de=function(){function Ke(){this.seen={}}var ke=Ke.prototype;return ke.serialize=function(I){return I.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},ke.getNextSafeSlug=function(I,ee){var fe=I,ve=0;if(this.seen.hasOwnProperty(fe)){ve=this.seen[I];do ve++,fe=I+"-"+ve;while(this.seen.hasOwnProperty(fe))}return ee||(this.seen[I]=ve,this.seen[fe]=0),fe},ke.slug=function(I,ee){ee===void 0&&(ee={});var fe=this.serialize(I);return this.getNextSafeSlug(fe,ee.dryrun)},Ke}(),Q=ce,he=Ce,Oe=de,Re=oe.exports.defaults,qe=G.unescape,Ye=function(){function Ke(Ne){this.options=Ne||Re,this.options.renderer=this.options.renderer||new Q,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new he,this.slugger=new Oe}Ke.parse=function(I,ee){var fe=new Ke(ee);return fe.parse(I)},Ke.parseInline=function(I,ee){var fe=new Ke(ee);return fe.parseInline(I)};var ke=Ke.prototype;return ke.parse=function(I,ee){ee===void 0&&(ee=!0);var fe="",ve,ye,Ue,$e,ut,At,Ge,w,ae,A,Ze,Ee,Le,ze,Ve,it,Pt,Kt,mn=I.length;for(ve=0;ve<mn;ve++)switch(A=I[ve],A.type){case"space":continue;case"hr":{fe+=this.renderer.hr();continue}case"heading":{fe+=this.renderer.heading(this.parseInline(A.tokens),A.depth,qe(this.parseInline(A.tokens,this.textRenderer)),this.slugger);continue}case"code":{fe+=this.renderer.code(A.text,A.lang,A.escaped);continue}case"table":{for(w="",Ge="",$e=A.header.length,ye=0;ye<$e;ye++)Ge+=this.renderer.tablecell(this.parseInline(A.tokens.header[ye]),{header:!0,align:A.align[ye]});for(w+=this.renderer.tablerow(Ge),ae="",$e=A.cells.length,ye=0;ye<$e;ye++){for(At=A.tokens.cells[ye],Ge="",ut=At.length,Ue=0;Ue<ut;Ue++)Ge+=this.renderer.tablecell(this.parseInline(At[Ue]),{header:!1,align:A.align[Ue]});ae+=this.renderer.tablerow(Ge)}fe+=this.renderer.table(w,ae);continue}case"blockquote":{ae=this.parse(A.tokens),fe+=this.renderer.blockquote(ae);continue}case"list":{for(Ze=A.ordered,Ee=A.start,Le=A.loose,$e=A.items.length,ae="",ye=0;ye<$e;ye++)Ve=A.items[ye],it=Ve.checked,Pt=Ve.task,ze="",Ve.task&&(Kt=this.renderer.checkbox(it),Le?Ve.tokens.length>0&&Ve.tokens[0].type==="text"?(Ve.tokens[0].text=Kt+" "+Ve.tokens[0].text,Ve.tokens[0].tokens&&Ve.tokens[0].tokens.length>0&&Ve.tokens[0].tokens[0].type==="text"&&(Ve.tokens[0].tokens[0].text=Kt+" "+Ve.tokens[0].tokens[0].text)):Ve.tokens.unshift({type:"text",text:Kt}):ze+=Kt),ze+=this.parse(Ve.tokens,Le),ae+=this.renderer.listitem(ze,Pt,it);fe+=this.renderer.list(ae,Ze,Ee);continue}case"html":{fe+=this.renderer.html(A.text);continue}case"paragraph":{fe+=this.renderer.paragraph(this.parseInline(A.tokens));continue}case"text":{for(ae=A.tokens?this.parseInline(A.tokens):A.text;ve+1<mn&&I[ve+1].type==="text";)A=I[++ve],ae+=`
`+(A.tokens?this.parseInline(A.tokens):A.text);fe+=ee?this.renderer.paragraph(ae):ae;continue}default:{var De='Token with "'+A.type+'" type was not found.';if(this.options.silent){console.error(De);return}else throw new Error(De)}}return fe},ke.parseInline=function(I,ee){ee=ee||this.renderer;var fe="",ve,ye,Ue=I.length;for(ve=0;ve<Ue;ve++)switch(ye=I[ve],ye.type){case"escape":{fe+=ee.text(ye.text);break}case"html":{fe+=ee.html(ye.text);break}case"link":{fe+=ee.link(ye.href,ye.title,this.parseInline(ye.tokens,ee));break}case"image":{fe+=ee.image(ye.href,ye.title,ye.text);break}case"strong":{fe+=ee.strong(this.parseInline(ye.tokens,ee));break}case"em":{fe+=ee.em(this.parseInline(ye.tokens,ee));break}case"codespan":{fe+=ee.codespan(ye.text);break}case"br":{fe+=ee.br();break}case"del":{fe+=ee.del(this.parseInline(ye.tokens,ee));break}case"text":{fe+=ee.text(ye.text);break}default:{var $e='Token with "'+ye.type+'" type was not found.';if(this.options.silent){console.error($e);return}else throw new Error($e)}}return fe},Ke}(),Et=xe,dt=Ye,ge=Je,Ae=ce,at=Ce,et=de,Qe=G.merge,St=G.checkSanitizeDeprecation,Tt=G.escape,He=oe.exports.getDefaults,Wt=oe.exports.changeDefaults,fn=oe.exports.defaults;function Rt(Ke,ke,Ne){if(typeof Ke=="undefined"||Ke===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Ke!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Ke)+", string expected");if(typeof ke=="function"&&(Ne=ke,ke=null),ke=Qe({},Rt.defaults,ke||{}),St(ke),Ne){var I=ke.highlight,ee;try{ee=Et.lex(Ke,ke)}catch(Ue){return Ne(Ue)}var fe=function($e){var ut;if(!$e)try{ke.walkTokens&&Rt.walkTokens(ee,ke.walkTokens),ut=dt.parse(ee,ke)}catch(At){$e=At}return ke.highlight=I,$e?Ne($e):Ne(null,ut)};if(!I||I.length<3||(delete ke.highlight,!ee.length))return fe();var ve=0;Rt.walkTokens(ee,function(Ue){Ue.type==="code"&&(ve++,setTimeout(function(){I(Ue.text,Ue.lang,function($e,ut){if($e)return fe($e);ut!=null&&ut!==Ue.text&&(Ue.text=ut,Ue.escaped=!0),ve--,ve===0&&fe()})},0))}),ve===0&&fe();return}try{var ye=Et.lex(Ke,ke);return ke.walkTokens&&Rt.walkTokens(ye,ke.walkTokens),dt.parse(ye,ke)}catch(Ue){if(Ue.message+=`
Please report this to https://github.com/markedjs/marked.`,ke.silent)return"<p>An error occurred:</p><pre>"+Tt(Ue.message+"",!0)+"</pre>";throw Ue}}Rt.options=Rt.setOptions=function(Ke){return Qe(Rt.defaults,Ke),Wt(Rt.defaults),Rt},Rt.getDefaults=He,Rt.defaults=fn,Rt.use=function(Ke){var ke=Qe({},Ke);if(Ke.renderer&&function(){var I=Rt.defaults.renderer||new Ae,ee=function(ye){var Ue=I[ye];I[ye]=function(){for(var $e=arguments.length,ut=new Array($e),At=0;At<$e;At++)ut[At]=arguments[At];var Ge=Ke.renderer[ye].apply(I,ut);return Ge===!1&&(Ge=Ue.apply(I,ut)),Ge}};for(var fe in Ke.renderer)ee(fe);ke.renderer=I}(),Ke.tokenizer&&function(){var I=Rt.defaults.tokenizer||new ge,ee=function(ye){var Ue=I[ye];I[ye]=function(){for(var $e=arguments.length,ut=new Array($e),At=0;At<$e;At++)ut[At]=arguments[At];var Ge=Ke.tokenizer[ye].apply(I,ut);return Ge===!1&&(Ge=Ue.apply(I,ut)),Ge}};for(var fe in Ke.tokenizer)ee(fe);ke.tokenizer=I}(),Ke.walkTokens){var Ne=Rt.defaults.walkTokens;ke.walkTokens=function(I){Ke.walkTokens(I),Ne&&Ne(I)}}Rt.setOptions(ke)},Rt.walkTokens=function(Ke,ke){for(var Ne=ne(Ke),I;!(I=Ne()).done;){var ee=I.value;switch(ke(ee),ee.type){case"table":{for(var fe=ne(ee.tokens.header),ve;!(ve=fe()).done;){var ye=ve.value;Rt.walkTokens(ye,ke)}for(var Ue=ne(ee.tokens.cells),$e;!($e=Ue()).done;)for(var ut=$e.value,At=ne(ut),Ge;!(Ge=At()).done;){var w=Ge.value;Rt.walkTokens(w,ke)}break}case"list":{Rt.walkTokens(ee.items,ke);break}default:ee.tokens&&Rt.walkTokens(ee.tokens,ke)}}},Rt.parseInline=function(Ke,ke){if(typeof Ke=="undefined"||Ke===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof Ke!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(Ke)+", string expected");ke=Qe({},Rt.defaults,ke||{}),St(ke);try{var Ne=Et.lexInline(Ke,ke);return ke.walkTokens&&Rt.walkTokens(Ne,ke.walkTokens),dt.parseInline(Ne,ke)}catch(I){if(I.message+=`
Please report this to https://github.com/markedjs/marked.`,ke.silent)return"<p>An error occurred:</p><pre>"+Tt(I.message+"",!0)+"</pre>";throw I}},Rt.Parser=dt,Rt.parser=dt.parse,Rt.Renderer=Ae,Rt.TextRenderer=at,Rt.Lexer=Et,Rt.lexer=Et.lex,Rt.Tokenizer=ge,Rt.Slugger=et,Rt.parse=Rt;var qt=Rt;return qt})},11690:function(Rn){const Gt=/[&<>"']/,E=/[&<>"']/g,h=/[<>"']|&(?!#?\w+;)/,le=/[<>"']|&(?!#?\w+;)/g,ne={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},oe=H=>ne[H];function B(H,q){if(q){if(Gt.test(H))return H.replace(E,oe)}else if(h.test(H))return H.replace(le,oe);return H}const d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function me(H){return H.replace(d,(q,se)=>(se=se.toLowerCase(),se==="colon"?":":se.charAt(0)==="#"?se.charAt(1)==="x"?String.fromCharCode(parseInt(se.substring(2),16)):String.fromCharCode(+se.substring(1)):""))}const re=/(^|[^\[])\^/g;function o(H,q){H=H.source||H,q=q||"";const se={replace:(ie,Fe)=>(Fe=Fe.source||Fe,Fe=Fe.replace(re,"$1"),H=H.replace(ie,Fe),se),getRegex:()=>new RegExp(H,q)};return se}const y=/[^\w:]/g,T=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(H,q,se){if(H){let ie;try{ie=decodeURIComponent(me(se)).replace(y,"").toLowerCase()}catch(Fe){return null}if(ie.indexOf("javascript:")===0||ie.indexOf("vbscript:")===0||ie.indexOf("data:")===0)return null}q&&!T.test(se)&&(se=W(q,se));try{se=encodeURI(se).replace(/%25/g,"%")}catch(ie){return null}return se}const _={},b=/^[^:]+:\/*[^/]*$/,L=/^([^:]+:)[\s\S]*$/,K=/^([^:]+:\/*[^/]*)[\s\S]*$/;function W(H,q){_[" "+H]||(b.test(H)?_[" "+H]=H+"/":_[" "+H]=R(H,"/",!0)),H=_[" "+H];const se=H.indexOf(":")===-1;return q.substring(0,2)==="//"?se?q:H.replace(L,"$1")+q:q.charAt(0)==="/"?se?q:H.replace(K,"$1")+q:H+q}const $={exec:function(){}};function O(H){let q=1,se,ie;for(;q<arguments.length;q++){se=arguments[q];for(ie in se)Object.prototype.hasOwnProperty.call(se,ie)&&(H[ie]=se[ie])}return H}function U(H,q){const se=H.replace(/\|/g,(Z,k,F)=>{let G=!1,J=k;for(;--J>=0&&F[J]==="\\";)G=!G;return G?"|":" |"}),ie=se.split(/ \|/);let Fe=0;if(ie.length>q)ie.splice(q);else for(;ie.length<q;)ie.push("");for(;Fe<ie.length;Fe++)ie[Fe]=ie[Fe].trim().replace(/\\\|/g,"|");return ie}function R(H,q,se){const ie=H.length;if(ie===0)return"";let Fe=0;for(;Fe<ie;){const Z=H.charAt(ie-Fe-1);if(Z===q&&!se)Fe++;else if(Z!==q&&se)Fe++;else break}return H.substr(0,ie-Fe)}function x(H,q){if(H.indexOf(q[1])===-1)return-1;const se=H.length;let ie=0,Fe=0;for(;Fe<se;Fe++)if(H[Fe]==="\\")Fe++;else if(H[Fe]===q[0])ie++;else if(H[Fe]===q[1]&&(ie--,ie<0))return Fe;return-1}function V(H){H&&H.sanitize&&!H.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 X(H,q){if(q<1)return"";let se="";for(;q>1;)q&1&&(se+=H),q>>=1,H+=H;return se+H}Rn.exports={escape:B,unescape:me,edit:o,cleanUrl:m,resolveUrl:W,noopTest:$,merge:O,splitCells:U,rtrim:R,findClosingBracket:x,checkSanitizeDeprecation:V,repeatString:X}},75918:function(Rn,Gt,E){"use strict";E.d(Gt,{Wi:function(){return d},Z0:function(){return me},aU:function(){return B},eZ:function(){return o},wY:function(){return re}});var h=E(4348),le=E(69323),ne=E(13268),oe=function(y,T,m,_){function b(L){return L instanceof m?L:new m(function(K){K(L)})}return new(m||(m=Promise))(function(L,K){function W(U){try{O(_.next(U))}catch(R){K(R)}}function $(U){try{O(_.throw(U))}catch(R){K(R)}}function O(U){U.done?L(U.value):b(U.value).then(W,$)}O((_=_.apply(y,T||[])).next())})};class B extends le.JT{constructor(T,m="",_="",b=!0,L){super(),this._onDidChange=this._register(new h.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=T,this._label=m,this._cssClass=_,this._enabled=b,this._actionCallback=L}get id(){return this._id}get label(){return this._label}set label(T){this._setLabel(T)}_setLabel(T){this._label!==T&&(this._label=T,this._onDidChange.fire({label:T}))}get tooltip(){return this._tooltip||""}set tooltip(T){this._setTooltip(T)}_setTooltip(T){this._tooltip!==T&&(this._tooltip=T,this._onDidChange.fire({tooltip:T}))}get class(){return this._cssClass}set class(T){this._setClass(T)}_setClass(T){this._cssClass!==T&&(this._cssClass=T,this._onDidChange.fire({class:T}))}get enabled(){return this._enabled}set enabled(T){this._setEnabled(T)}_setEnabled(T){this._enabled!==T&&(this._enabled=T,this._onDidChange.fire({enabled:T}))}get checked(){return this._checked}set checked(T){this._setChecked(T)}_setChecked(T){this._checked!==T&&(this._checked=T,this._onDidChange.fire({checked:T}))}run(T,m){return oe(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(T))})}}class d extends le.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new h.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new h.Q5),this.onDidRun=this._onDidRun.event}run(T,m){return oe(this,void 0,void 0,function*(){if(!T.enabled)return;this._onBeforeRun.fire({action:T});let _;try{yield this.runAction(T,m)}catch(b){_=b}this._onDidRun.fire({action:T,error:_})})}runAction(T,m){return oe(this,void 0,void 0,function*(){yield T.run(m)})}}class me extends B{constructor(T){super(me.ID,T,T?"separator text":"separator"),this.checked=!1,this.enabled=!1}}me.ID="vs.actions.separator";class re{constructor(T,m,_,b){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=T,this.label=m,this.class=b,this._actions=_}get actions(){return this._actions}dispose(){}run(){return oe(this,void 0,void 0,function*(){})}}class o extends B{constructor(){super(o.ID,ne.N("submenu.empty","(empty)"),void 0,!1)}}o.ID="vs.actions.empty"},76068:function(Rn,Gt,E){"use strict";E.d(Gt,{ok:function(){return h}});function h(le,ne){if(!le)throw new Error(ne?`Assertion failed (${ne})`:"Assertion Failed")}},52615:function(Rn,Gt,E){"use strict";E.d(Gt,{CM:function(){return B},JL:function(){return d},dT:function(){return re},fK:function(){return oe},lA:function(){return me}});var h=E(4348);class le{constructor(){this._icons=new Map,this._onDidRegister=new h.Q5}add(y){const T=this._icons.get(y.id);T?y.description?T.description=y.description:console.error(`Duplicate registration of codicon ${y.id}`):(this._icons.set(y.id,y),this._onDidRegister.fire(y))}get(y){return this._icons.get(y)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const ne=new le,oe=ne;function B(o,y){return new me(o,y)}function d(o){return o?o.replace(/\$\((.*?)\)/g,(y,T)=>` ${T} `).trim():""}class me{constructor(y,T,m){this.id=y,this.definition=T,this.description=m,ne.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var re;(function(o){o.iconNameSegment="[A-Za-z0-9]+",o.iconNameExpression="[A-Za-z0-9\\-]+",o.iconModifierExpression="~[A-Za-z]+";const y=new RegExp(`^(${o.iconNameExpression})(${o.iconModifierExpression})?$`);function T(b){if(b instanceof me)return["codicon","codicon-"+b.id];const L=y.exec(b.id);if(!L)return T(me.error);let[,K,W]=L;const $=["codicon","codicon-"+K];return W&&$.push("codicon-modifier-"+W.substr(1)),$}o.asClassNameArray=T;function m(b){return T(b).join(" ")}o.asClassName=m;function _(b){return"."+T(b).join(".")}o.asCSSSelector=_})(re||(re={})),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"})}(me||(me={}))},79881:function(Rn,Gt,E){"use strict";E.d(Gt,{B8:function(){return T},Cp:function(){return oe},F0:function(){return re},L6:function(){return y},VV:function(){return me},b1:function(){return o},dL:function(){return ne},ri:function(){return B}});class h{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(_){setTimeout(()=>{throw _.stack?new Error(_.message+`
`+_.stack):_},0)}}emit(_){this.listeners.forEach(b=>{b(_)})}onUnexpectedError(_){this.unexpectedErrorHandler(_),this.emit(_)}onUnexpectedExternalError(_){this.unexpectedErrorHandler(_)}}const le=new h;function ne(m){me(m)||le.onUnexpectedError(m)}function oe(m){me(m)||le.onUnexpectedExternalError(m)}function B(m){if(m instanceof Error){let{name:_,message:b}=m;const L=m.stacktrace||m.stack;return{$isError:!0,name:_,message:b,stack:L}}return m}const d="Canceled";function me(m){return m instanceof Error&&m.name===d&&m.message===d}function re(){const m=new Error(d);return m.name=m.message,m}function o(m){return m?new Error(`Illegal argument: ${m}`):new Error("Illegal argument")}function y(m){return m?new Error(`Illegal state: ${m}`):new Error("Illegal state")}class T extends Error{constructor(_){super("NotSupported"),_&&(this.message=_)}}},4348:function(Rn,Gt,E){"use strict";E.d(Gt,{D0:function(){return T},E7:function(){return m},K3:function(){return y},Q5:function(){return o},ZD:function(){return _},ju:function(){return B}});var h=E(79881),le=E(69323),ne=E(34502),oe=E(95830),B;(function(b){b.None=()=>le.JT.None;function L(F){return(G,J=null,j)=>{let v=!1,g;return g=F(M=>{if(!v)return g?g.dispose():v=!0,G.call(J,M)},null,j),v&&g.dispose(),g}}b.once=L;function K(F,G){return x((J,j=null,v)=>F(g=>J.call(j,G(g)),null,v))}b.map=K;function W(F,G){return x((J,j=null,v)=>F(g=>{G(g),J.call(j,g)},null,v))}b.forEach=W;function $(F,G){return x((J,j=null,v)=>F(g=>G(g)&&J.call(j,g),null,v))}b.filter=$;function O(F){return F}b.signal=O;function U(...F){return(G,J=null,j)=>(0,le.F8)(...F.map(v=>v(g=>G.call(J,g),null,j)))}b.any=U;function R(F,G,J){let j=J;return K(F,v=>(j=G(j,v),j))}b.reduce=R;function x(F){let G;const J=new o({onFirstListenerAdd(){G=F(J.fire,J)},onLastListenerRemove(){G.dispose()}});return J.event}function V(F,G,J=100,j=!1,v){let g,M,ue,Ie=0;const Je=new o({leakWarningThreshold:v,onFirstListenerAdd(){g=F(Dt=>{Ie++,M=G(M,Dt),j&&!ue&&(Je.fire(M),M=void 0),clearTimeout(ue),ue=setTimeout(()=>{const vt=M;M=void 0,ue=void 0,(!j||Ie>1)&&Je.fire(vt),Ie=0},J)})},onLastListenerRemove(){g.dispose()}});return Je.event}b.debounce=V;function X(F,G=(J,j)=>J===j){let J=!0,j;return $(F,v=>{const g=J||!G(v,j);return J=!1,j=v,g})}b.latch=X;function H(F,G){return[b.filter(F,G),b.filter(F,J=>!G(J))]}b.split=H;function q(F,G=!1,J=[]){let j=J.slice(),v=F(ue=>{j?j.push(ue):M.fire(ue)});const g=()=>{j&&j.forEach(ue=>M.fire(ue)),j=null},M=new o({onFirstListenerAdd(){v||(v=F(ue=>M.fire(ue)))},onFirstListenerDidAdd(){j&&(G?setTimeout(g):g())},onLastListenerRemove(){v&&v.dispose(),v=null}});return M.event}b.buffer=q;class se{constructor(G){this.event=G}map(G){return new se(K(this.event,G))}forEach(G){return new se(W(this.event,G))}filter(G){return new se($(this.event,G))}reduce(G,J){return new se(R(this.event,G,J))}latch(){return new se(X(this.event))}debounce(G,J=100,j=!1,v){return new se(V(this.event,G,J,j,v))}on(G,J,j){return this.event(G,J,j)}once(G,J,j){return L(this.event)(G,J,j)}}function ie(F){return new se(F)}b.chain=ie;function Fe(F,G,J=j=>j){const j=(...ue)=>M.fire(J(...ue)),v=()=>F.on(G,j),g=()=>F.removeListener(G,j),M=new o({onFirstListenerAdd:v,onLastListenerRemove:g});return M.event}b.fromNodeEventEmitter=Fe;function Z(F,G,J=j=>j){const j=(...ue)=>M.fire(J(...ue)),v=()=>F.addEventListener(G,j),g=()=>F.removeEventListener(G,j),M=new o({onFirstListenerAdd:v,onLastListenerRemove:g});return M.event}b.fromDOMEventEmitter=Z;function k(F){return new Promise(G=>L(F)(G))}b.toPromise=k})(B||(B={}));class d{constructor(L){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${L}_${d._idPool++}`}start(L){this._stopWatch=new oe.G(!0),this._listenerCount=L}stop(){if(this._stopWatch){const L=this._stopWatch.elapsed();this._elapsedOverall+=L,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${L.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}d._idPool=0;let me=-1;class re{constructor(L,K=Math.random().toString(18).slice(2,5)){this.customThreshold=L,this.name=K,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(L){let K=me;if(typeof this.customThreshold=="number"&&(K=this.customThreshold),K<=0||L<K)return;this._stacks||(this._stacks=new Map);const W=new Error().stack.split(`
`).slice(3).join(`
`),$=this._stacks.get(W)||0;if(this._stacks.set(W,$+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=K*.5;let O,U=0;for(const[R,x]of this._stacks)(!O||U<x)&&(O=R,U=x);console.warn(`[${this.name}] potential listener LEAK detected, having ${L} listeners already. MOST frequent listener (${U}):`),console.warn(O)}return()=>{const O=this._stacks.get(W)||0;this._stacks.set(W,O-1)}}}class o{constructor(L){var K;this._disposed=!1,this._options=L,this._leakageMon=me>0?new re(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((K=this._options)===null||K===void 0)&&K._profName?new d(this._options._profName):void 0}get event(){return this._event||(this._event=(L,K,W)=>{var $;this._listeners||(this._listeners=new ne.S);const O=this._listeners.isEmpty();O&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const U=this._listeners.push(K?[L,K]:L);O&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,L,K);const R=($=this._leakageMon)===null||$===void 0?void 0:$.check(this._listeners.size),x=(0,le.OF)(()=>{R&&R(),this._disposed||(U(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return W instanceof le.SL?W.add(x):Array.isArray(W)&&W.push(x),x}),this._event}fire(L){var K,W;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new ne.S);for(let $ of this._listeners)this._deliveryQueue.push([$,L]);for((K=this._perfMon)===null||K===void 0||K.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[$,O]=this._deliveryQueue.shift();try{typeof $=="function"?$.call(void 0,O):$[0].call($[1],O)}catch(U){(0,h.dL)(U)}}(W=this._perfMon)===null||W===void 0||W.stop()}}dispose(){var L,K,W,$,O;this._disposed||(this._disposed=!0,(L=this._listeners)===null||L===void 0||L.clear(),(K=this._deliveryQueue)===null||K===void 0||K.clear(),($=(W=this._options)===null||W===void 0?void 0:W.onLastListenerRemove)===null||$===void 0||$.call(W),(O=this._leakageMon)===null||O===void 0||O.dispose())}}class y extends o{constructor(L){super(L),this._isPaused=0,this._eventQueue=new ne.S,this._mergeFn=L==null?void 0:L.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const L=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(L))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(L){this._listeners&&(this._isPaused!==0?this._eventQueue.push(L):super.fire(L))}}class T extends y{constructor(L){var K;super(L),this._delay=(K=L.delay)!==null&&K!==void 0?K:100}fire(L){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(L)}}class m{constructor(){this.buffers=[]}wrapEvent(L){return(K,W,$)=>L(O=>{const U=this.buffers[this.buffers.length-1];U?U.push(()=>K.call(W,O)):K.call(W,O)},void 0,$)}bufferEvents(L){const K=[];this.buffers.push(K);const W=L();return this.buffers.pop(),K.forEach($=>$()),W}}class _{constructor(){this.listening=!1,this.inputEvent=B.None,this.inputEventListener=le.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(L){this.inputEvent=L,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=L(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(Rn,Gt,E){"use strict";E.d(Gt,{I:function(){return h}});function h(le){const ne=this;let oe=!1,B;return function(){return oe||(oe=!0,B=le.apply(ne,arguments)),B}}},88226:function(Rn,Gt,E){"use strict";E.d(Gt,{$:function(){return h}});var h;(function(le){function ne(U){return U&&typeof U=="object"&&typeof U[Symbol.iterator]=="function"}le.is=ne;const oe=Object.freeze([]);function B(){return oe}le.empty=B;function*d(U){yield U}le.single=d;function me(U){return U||oe}le.from=me;function re(U){return!U||U[Symbol.iterator]().next().done===!0}le.isEmpty=re;function o(U){return U[Symbol.iterator]().next().value}le.first=o;function y(U,R){for(const x of U)if(R(x))return!0;return!1}le.some=y;function T(U,R){for(const x of U)if(R(x))return x}le.find=T;function*m(U,R){for(const x of U)R(x)&&(yield x)}le.filter=m;function*_(U,R){let x=0;for(const V of U)yield R(V,x++)}le.map=_;function*b(...U){for(const R of U)for(const x of R)yield x}le.concat=b;function*L(U){for(const R of U)for(const x of R)yield x}le.concatNested=L;function K(U,R,x){let V=x;for(const X of U)V=R(V,X);return V}le.reduce=K;function*W(U,R,x=U.length){for(R<0&&(R+=U.length),x<0?x+=U.length:x>U.length&&(x=U.length);R<x;R++)yield U[R]}le.slice=W;function $(U,R=Number.POSITIVE_INFINITY){const x=[];if(R===0)return[x,U];const V=U[Symbol.iterator]();for(let X=0;X<R;X++){const H=V.next();if(H.done)return[x,le.empty()];x.push(H.value)}return[x,{[Symbol.iterator](){return V}}]}le.consume=$;function O(U,R,x=(V,X)=>V===X){const V=U[Symbol.iterator](),X=R[Symbol.iterator]();for(;;){const H=V.next(),q=X.next();if(H.done!==q.done)return!1;if(H.done)return!0;if(!x(H.value,q.value))return!1}}le.equals=O})(h||(h={}))},69323:function(Rn,Gt,E){"use strict";E.d(Gt,{B9:function(){return _},F8:function(){return b},JT:function(){return W},Jz:function(){return O},OF:function(){return L},SL:function(){return K},Wf:function(){return m},XK:function(){return $},dk:function(){return y}});var h=E(17845),le=E(88226);const ne=!1;let oe=null;function B(U){oe=U}if(ne){const U="__is_disposable_tracked__";B(new class{trackDisposable(R){const x=new Error("Potentially leaked disposable").stack;setTimeout(()=>{R[U]||console.log(x)},3e3)}setParent(R,x){if(R&&R!==W.None)try{R[U]=!0}catch(V){}}markAsDisposed(R){if(R&&R!==W.None)try{R[U]=!0}catch(x){}}markAsSingleton(R){}})}function d(U){return oe==null||oe.trackDisposable(U),U}function me(U){oe==null||oe.markAsDisposed(U)}function re(U,R){oe==null||oe.setParent(U,R)}function o(U,R){if(oe)for(const x of U)oe.setParent(x,R)}function y(U){return oe==null||oe.markAsSingleton(U),U}class T extends Error{constructor(R){super(`Encountered errors while disposing of store. Errors: [${R.join(", ")}]`),this.errors=R}}function m(U){return typeof U.dispose=="function"&&U.dispose.length===0}function _(U){if(le.$.is(U)){let R=[];for(const x of U)if(x)try{x.dispose()}catch(V){R.push(V)}if(R.length===1)throw R[0];if(R.length>1)throw new T(R);return Array.isArray(U)?[]:U}else if(U)return U.dispose(),U}function b(...U){const R=L(()=>_(U));return o(U,R),R}function L(U){const R=d({dispose:(0,h.I)(()=>{me(R),U()})});return R}class K{constructor(){this._toDispose=new Set,this._isDisposed=!1,d(this)}dispose(){this._isDisposed||(me(this),this._isDisposed=!0,this.clear())}clear(){try{_(this._toDispose.values())}finally{this._toDispose.clear()}}add(R){if(!R)return R;if(R===this)throw new Error("Cannot register a disposable on itself!");return re(R,this),this._isDisposed?K.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(R),R}}K.DISABLE_DISPOSED_WARNING=!1;class W{constructor(){this._store=new K,d(this),re(this._store,this)}dispose(){me(this),this._store.dispose()}_register(R){if(R===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(R)}}W.None=Object.freeze({dispose(){}});class ${constructor(){this._isDisposed=!1,d(this)}get value(){return this._isDisposed?void 0:this._value}set value(R){var x;this._isDisposed||R===this._value||((x=this._value)===null||x===void 0||x.dispose(),R&&re(R,this),this._value=R)}clear(){this.value=void 0}dispose(){var R;this._isDisposed=!0,me(this),(R=this._value)===null||R===void 0||R.dispose(),this._value=void 0}clearAndLeak(){const R=this._value;return this._value=void 0,R&&re(R,null),R}}class O{constructor(R){this.object=R}dispose(){}}},34502:function(Rn,Gt,E){"use strict";E.d(Gt,{S:function(){return le}});class h{constructor(oe){this.element=oe,this.next=h.Undefined,this.prev=h.Undefined}}h.Undefined=new h(void 0);class le{constructor(){this._first=h.Undefined,this._last=h.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===h.Undefined}clear(){let oe=this._first;for(;oe!==h.Undefined;){const B=oe.next;oe.prev=h.Undefined,oe.next=h.Undefined,oe=B}this._first=h.Undefined,this._last=h.Undefined,this._size=0}unshift(oe){return this._insert(oe,!1)}push(oe){return this._insert(oe,!0)}_insert(oe,B){const d=new h(oe);if(this._first===h.Undefined)this._first=d,this._last=d;else if(B){const re=this._last;this._last=d,d.prev=re,re.next=d}else{const re=this._first;this._first=d,d.next=re,re.prev=d}this._size+=1;let me=!1;return()=>{me||(me=!0,this._remove(d))}}shift(){if(this._first!==h.Undefined){const oe=this._first.element;return this._remove(this._first),oe}}pop(){if(this._last!==h.Undefined){const oe=this._last.element;return this._remove(this._last),oe}}_remove(oe){if(oe.prev!==h.Undefined&&oe.next!==h.Undefined){const B=oe.prev;B.next=oe.next,oe.next.prev=B}else oe.prev===h.Undefined&&oe.next===h.Undefined?(this._first=h.Undefined,this._last=h.Undefined):oe.next===h.Undefined?(this._last=this._last.prev,this._last.next=h.Undefined):oe.prev===h.Undefined&&(this._first=this._first.next,this._first.prev=h.Undefined);this._size-=1}*[Symbol.iterator](){let oe=this._first;for(;oe!==h.Undefined;)yield oe.element,oe=oe.next}}},23345:function(Rn,Gt,E){"use strict";E.d(Gt,{$L:function(){return V},ED:function(){return O},IJ:function(){return R},OS:function(){return se},WE:function(){return H},dz:function(){return U},gn:function(){return X},li:function(){return L},r:function(){return Z},tY:function(){return x},xS:function(){return q}});var h=E(97671),le;const ne="en";let oe=!1,B=!1,d=!1,me=!1,re=!1,o=!1,y=!1,T,m=null,_=null,b;const L=typeof self=="object"?self:typeof E.g=="object"?E.g:{};let K;typeof L.vscode!="undefined"&&typeof L.vscode.process!="undefined"?K=L.vscode.process:typeof h!="undefined"&&(K=h);const W=typeof((le=K==null?void 0:K.versions)===null||le===void 0?void 0:le.electron)=="string"&&K.type==="renderer";if(typeof navigator=="object"&&!W)b=navigator.userAgent,oe=b.indexOf("Windows")>=0,B=b.indexOf("Macintosh")>=0,y=(b.indexOf("Macintosh")>=0||b.indexOf("iPad")>=0||b.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,d=b.indexOf("Linux")>=0,o=!0,T=navigator.language,m=T;else if(typeof K=="object"){oe=K.platform==="win32",B=K.platform==="darwin",d=K.platform==="linux",me=d&&!!K.env.SNAP&&!!K.env.SNAP_REVISION,T=ne,m=ne;const k=K.env.VSCODE_NLS_CONFIG;if(k)try{const F=JSON.parse(k),G=F.availableLanguages["*"];T=F.locale,m=G||ne,_=F._translationsConfigFile}catch(F){}re=!0}else console.error("Unable to resolve platform.");let $=0;B?$=1:oe?$=3:d&&($=2);const O=oe,U=B,R=d,x=re,V=o,X=y,H=b,q=function(){if(L.setImmediate)return L.setImmediate.bind(L);if(typeof L.postMessage=="function"&&!L.importScripts){let G=[];L.addEventListener("message",j=>{if(j.data&&j.data.vscodeSetImmediateId)for(let v=0,g=G.length;v<g;v++){const M=G[v];if(M.id===j.data.vscodeSetImmediateId){G.splice(v,1),M.callback();return}}});let J=0;return j=>{const v=++J;G.push({id:v,callback:j}),L.postMessage({vscodeSetImmediateId:v},"*")}}if(typeof(K==null?void 0:K.nextTick)=="function")return K.nextTick.bind(K);const F=Promise.resolve();return G=>F.then(G)}(),se=B||y?2:oe?1:3;let ie=!0,Fe=!1;function Z(){if(!Fe){Fe=!0;const k=new Uint8Array(2);k[0]=1,k[1]=2,ie=new Uint16Array(k.buffer)[0]===513}return ie}},95830:function(Rn,Gt,E){"use strict";E.d(Gt,{G:function(){return ne}});var h=E(23345);const le=h.li.performance&&typeof h.li.performance.now=="function";class ne{constructor(B){this._highResolution=le&&B,this._startTime=this._now(),this._stopTime=-1}static create(B=!0){return new ne(B)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?h.li.performance.now():Date.now()}}},82983:function(Rn,Gt,E){"use strict";E.d(Gt,{$i:function(){return Ie},C8:function(){return Bt},GF:function(){return T},HO:function(){return J},IO:function(){return m},K7:function(){return Mt},Kw:function(){return _t},LC:function(){return L},Mh:function(){return q},P1:function(){return se},PJ:function(){return Xt},Qe:function(){return Je},R1:function(){return y},RP:function(){return M},S6:function(){return lt},TT:function(){return O},Ut:function(){return v},V8:function(){return K},WU:function(){return ne},YK:function(){return Fe},YU:function(){return oe},ZG:function(){return ie},ZH:function(){return k},ab:function(){return Dt},c1:function(){return we},df:function(){return V},ec:function(){return B},fi:function(){return tt},fy:function(){return d},j3:function(){return me},j_:function(){return R},m5:function(){return h},mK:function(){return x},mr:function(){return _},oH:function(){return N},oL:function(){return re},ok:function(){return H},ow:function(){return W},qq:function(){return X},qu:function(){return $},rL:function(){return Z},uS:function(){return Yt},un:function(){return o},uq:function(){return b},vH:function(){return G},xe:function(){return vt},zY:function(){return U}});function h(P){return!P||typeof P!="string"?!0:P.trim().length===0}const le=/{(\d+)}/g;function ne(P,...ce){return ce.length===0?P:P.replace(le,function(Ce,de){const Q=parseInt(de,10);return isNaN(Q)||Q<0||Q>=ce.length?Ce:ce[Q]})}function oe(P){return P.replace(/[<>&]/g,function(ce){switch(ce){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return ce}})}function B(P){return P.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function d(P,ce=" "){const Ce=me(P,ce);return re(Ce,ce)}function me(P,ce){if(!P||!ce)return P;const Ce=ce.length;if(Ce===0||P.length===0)return P;let de=0;for(;P.indexOf(ce,de)===de;)de=de+Ce;return P.substring(de)}function re(P,ce){if(!P||!ce)return P;const Ce=ce.length,de=P.length;if(Ce===0||de===0)return P;let Q=de,he=-1;for(;he=P.lastIndexOf(ce,Q-1),!(he===-1||he+Ce!==Q);){if(he===0)return"";Q=he}return P.substring(0,Q)}function o(P){return P.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function y(P){return P.replace(/\*/g,"")}function T(P,ce,Ce={}){if(!P)throw new Error("Cannot create regex from empty string");ce||(P=B(P)),Ce.wholeWord&&(/\B/.test(P.charAt(0))||(P="\\b"+P),/\B/.test(P.charAt(P.length-1))||(P=P+"\\b"));let de="";return Ce.global&&(de+="g"),Ce.matchCase||(de+="i"),Ce.multiline&&(de+="m"),Ce.unicode&&(de+="u"),new RegExp(P,de)}function m(P){return P.source==="^"||P.source==="^$"||P.source==="$"||P.source==="^\\s*$"?!1:!!(P.exec("")&&P.lastIndex===0)}function _(P){return(P.global?"g":"")+(P.ignoreCase?"i":"")+(P.multiline?"m":"")+(P.unicode?"u":"")}function b(P){return P.split(/\r\n|\r|\n/)}function L(P){for(let ce=0,Ce=P.length;ce<Ce;ce++){const de=P.charCodeAt(ce);if(de!==32&&de!==9)return ce}return-1}function K(P,ce=0,Ce=P.length){for(let de=ce;de<Ce;de++){const Q=P.charCodeAt(de);if(Q!==32&&Q!==9)return P.substring(ce,de)}return P.substring(ce,Ce)}function W(P,ce=P.length-1){for(let Ce=ce;Ce>=0;Ce--){const de=P.charCodeAt(Ce);if(de!==32&&de!==9)return Ce}return-1}function $(P,ce){return P<ce?-1:P>ce?1:0}function O(P,ce,Ce=0,de=P.length,Q=0,he=ce.length){for(;Ce<de&&Q<he;Ce++,Q++){let qe=P.charCodeAt(Ce),Ye=ce.charCodeAt(Q);if(qe<Ye)return-1;if(qe>Ye)return 1}const Oe=de-Ce,Re=he-Q;return Oe<Re?-1:Oe>Re?1:0}function U(P,ce){return R(P,ce,0,P.length,0,ce.length)}function R(P,ce,Ce=0,de=P.length,Q=0,he=ce.length){for(;Ce<de&&Q<he;Ce++,Q++){let qe=P.charCodeAt(Ce),Ye=ce.charCodeAt(Q);if(qe===Ye)continue;if(qe>=128||Ye>=128)return O(P.toLowerCase(),ce.toLowerCase(),Ce,de,Q,he);x(qe)&&(qe-=32),x(Ye)&&(Ye-=32);const Et=qe-Ye;if(Et!==0)return Et}const Oe=de-Ce,Re=he-Q;return Oe<Re?-1:Oe>Re?1:0}function x(P){return P>=97&&P<=122}function V(P){return P>=65&&P<=90}function X(P,ce){return P.length===ce.length&&R(P,ce)===0}function H(P,ce){const Ce=ce.length;return ce.length>P.length?!1:R(P,ce,0,Ce)===0}function q(P,ce){let Ce,de=Math.min(P.length,ce.length);for(Ce=0;Ce<de;Ce++)if(P.charCodeAt(Ce)!==ce.charCodeAt(Ce))return Ce;return de}function se(P,ce){let Ce,de=Math.min(P.length,ce.length);const Q=P.length-1,he=ce.length-1;for(Ce=0;Ce<de;Ce++)if(P.charCodeAt(Q-Ce)!==ce.charCodeAt(he-Ce))return Ce;return de}function ie(P){return 55296<=P&&P<=56319}function Fe(P){return 56320<=P&&P<=57343}function Z(P,ce){return(P-55296<<10)+(ce-56320)+65536}function k(P,ce,Ce){const de=P.charCodeAt(Ce);if(ie(de)&&Ce+1<ce){const Q=P.charCodeAt(Ce+1);if(Fe(Q))return Z(de,Q)}return de}function F(P,ce){const Ce=P.charCodeAt(ce-1);if(Fe(Ce)&&ce>1){const de=P.charCodeAt(ce-2);if(ie(de))return Z(de,Ce)}return Ce}function G(P,ce){const Ce=Te.getInstance(),de=ce,Q=P.length,he=k(P,Q,ce);ce+=he>=65536?2:1;let Oe=Ce.getGraphemeBreakType(he);for(;ce<Q;){const Re=k(P,Q,ce),qe=Ce.getGraphemeBreakType(Re);if(tt(Oe,qe))break;ce+=Re>=65536?2:1,Oe=qe}return ce-de}function J(P,ce){const Ce=Te.getInstance(),de=ce,Q=F(P,ce);ce-=Q>=65536?2:1;let he=Ce.getGraphemeBreakType(Q);for(;ce>0;){const Oe=F(P,ce),Re=Ce.getGraphemeBreakType(Oe);if(tt(Re,he))break;ce-=Oe>=65536?2:1,he=Re}return de-ce}const j=/(?:[\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 v(P){return j.test(P)}const g=/(?:[\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 M(P){return g.test(P)}const ue=/^[\t\n\r\x20-\x7E]*$/;function Ie(P){return ue.test(P)}const Je=/[\u2028\u2029]/;function Dt(P){return Je.test(P)}function vt(P){for(let ce=0,Ce=P.length;ce<Ce;ce++)if(Mt(P.charCodeAt(ce)))return!0;return!1}function Mt(P){return P=+P,P>=11904&&P<=55215||P>=63744&&P<=64255||P>=65281&&P<=65374}function Bt(P){return P>=127462&&P<=127487||P===8986||P===8987||P===9200||P===9203||P>=9728&&P<=10175||P===11088||P===11093||P>=127744&&P<=128591||P>=128640&&P<=128764||P>=128992&&P<=129003||P>=129280&&P<=129535||P>=129648&&P<=129750}const we="\uFEFF";function Yt(P){return!!(P&&P.length>0&&P.charCodeAt(0)===65279)}function _t(P,ce=!1){return P?(ce&&(P=P.replace(/\\./g,"")),P.toLowerCase()!==P):!1}function Xt(P){return P=P%(2*26),P<26?String.fromCharCode(97+P):String.fromCharCode(65+P-26)}function lt(P){return Te.getInstance().getGraphemeBreakType(P)}function tt(P,ce){return P===0?ce!==5&&ce!==7:P===2&&ce===3?!1:P===4||P===2||P===3||ce===4||ce===2||ce===3?!0:!(P===8&&(ce===8||ce===9||ce===11||ce===12)||(P===11||P===9)&&(ce===9||ce===10)||(P===12||P===10)&&ce===10||ce===5||ce===13||ce===7||P===1||P===13&&ce===14||P===6&&ce===6)}class Te{constructor(){this._data=pe()}static getInstance(){return Te._INSTANCE||(Te._INSTANCE=new Te),Te._INSTANCE}getGraphemeBreakType(ce){if(ce<32)return ce===10?3:ce===13?2:4;if(ce<127)return 0;const Ce=this._data,de=Ce.length/3;let Q=1;for(;Q<=de;)if(ce<Ce[3*Q])Q=2*Q;else if(ce>Ce[3*Q+1])Q=2*Q+1;else return Ce[3*Q+2];return 0}}Te._INSTANCE=null;function pe(){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 N(P,ce){if(P===0)return 0;const Ce=xe(P,ce);if(Ce!==void 0)return Ce;const de=F(ce,P);return P-=Pe(de),P}function xe(P,ce){let Ce=F(ce,P);for(P-=Pe(Ce);z(Ce)||Ce===65039||Ce===8419;){if(P===0)return;Ce=F(ce,P),P-=Pe(Ce)}if(Bt(Ce)){if(P>=0){const de=F(ce,P);de===8205&&(P-=Pe(de))}return P}}function Pe(P){return P>=65536?2:1}function z(P){return 127995<=P&&P<=127999}},72999:function(Rn,Gt,E){"use strict";E.d(Gt,{$E:function(){return L},$K:function(){return me},D8:function(){return m},HD:function(){return le},IU:function(){return K},Jp:function(){return re},Kn:function(){return ne},cW:function(){return y},f6:function(){return W},hj:function(){return oe},jn:function(){return B},kJ:function(){return h},mf:function(){return T},o8:function(){return d},p_:function(){return o},vE:function(){return $}});function h(O){return Array.isArray(O)}function le(O){return typeof O=="string"}function ne(O){return typeof O=="object"&&O!==null&&!Array.isArray(O)&&!(O instanceof RegExp)&&!(O instanceof Date)}function oe(O){return typeof O=="number"&&!isNaN(O)}function B(O){return O===!0||O===!1}function d(O){return typeof O=="undefined"}function me(O){return!re(O)}function re(O){return d(O)||O===null}function o(O,U){if(!O)throw new Error(U?`Unexpected type, expected '${U}'`:"Unexpected type")}function y(O){if(re(O))throw new Error("Assertion Failed: argument is undefined or null");return O}function T(O){return typeof O=="function"}function m(O,U){const R=Math.min(O.length,U.length);for(let x=0;x<R;x++)_(O[x],U[x])}function _(O,U){if(le(U)){if(typeof O!==U)throw new Error(`argument does not match constraint: typeof ${U}`)}else if(T(U)){try{if(O instanceof U)return}catch(R){}if(!re(O)&&O.constructor===U||U.length===1&&U.call(void 0,O)===!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(O){let U=[],R=Object.getPrototypeOf(O);for(;Object.prototype!==R;)U=U.concat(Object.getOwnPropertyNames(R)),R=Object.getPrototypeOf(R);return U}function L(O){const U=[];for(const R of b(O))typeof O[R]=="function"&&U.push(R);return U}function K(O,U){const R=V=>function(){const X=Array.prototype.slice.call(arguments,0);return U(V,X)};let x={};for(const V of O)x[V]=R(V);return x}function W(O){return O===null?void 0:O}function $(O,U="Unreachable"){throw new Error(U)}},13268:function(Rn,Gt,E){"use strict";E.d(Gt,{N:function(){return le}});function h(ne,oe){let B;return oe.length===0?B=ne:B=ne.replace(/\{(\d+)\}/g,function(d,me){const re=me[0];return typeof oe[re]!="undefined"?oe[re]:d}),B}function le(ne,oe,...B){return h(oe,B)}},96236:function(Rn,Gt,E){"use strict";E.d(Gt,{BH:function(){return K},NZ:function(){return W},U8:function(){return $},co:function(){return L},eH:function(){return b},vr:function(){return _}});var h=E(75918),le=E(52615),ne=E(4348),oe=E(88226),B=E(69323),d=E(34502),me=E(35884),re=E(90689),o=E(16925),y=E(49055),T=function(O,U,R,x){var V=arguments.length,X=V<3?U:x===null?x=Object.getOwnPropertyDescriptor(U,R):x,H;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")X=Reflect.decorate(O,U,R,x);else for(var q=O.length-1;q>=0;q--)(H=O[q])&&(X=(V<3?H(X):V>3?H(U,R,X):H(U,R))||X);return V>3&&X&&Object.defineProperty(U,R,X),X},m=function(O,U){return function(R,x){U(R,x,O)}};function _(O){return O.command!==void 0}class b{constructor(U){this.id=b._idPool++,this._debugName=U}}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 L=(0,o.yh)("menuService"),K=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new ne.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:O=>O===b.CommandPalette}}addCommand(O){return this.addCommands(oe.$.single(O))}addCommands(O){for(const U of O)this._commands.set(U.id,U);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,B.OF)(()=>{let U=!1;for(const R of O)U=this._commands.delete(R.id)||U;U&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(O){return this._commands.get(O)}getCommands(){const O=new Map;return this._commands.forEach((U,R)=>O.set(R,U)),O}appendMenuItem(O,U){return this.appendMenuItems(oe.$.single({id:O,item:U}))}appendMenuItems(O){const U=new Set,R=new d.S;for(const{id:x,item:V}of O){let X=this._menuItems.get(x);X||(X=new d.S,this._menuItems.set(x,X)),R.push(X.push(V)),U.add(x)}return this._onDidChangeMenu.fire(U),(0,B.OF)(()=>{if(R.size>0){for(let x of R)x();this._onDidChangeMenu.fire(U),R.clear()}})}getMenuItems(O){let U;return this._menuItems.has(O)?U=[...this._menuItems.get(O)]:U=[],O===b.CommandPalette&&this._appendImplicitItems(U),U}_appendImplicitItems(O){const U=new Set;for(const R of O)_(R)&&(U.add(R.command.id),R.alt&&U.add(R.alt.id));this._commands.forEach((R,x)=>{U.has(x)||O.push({command:R})})}};class W extends h.wY{constructor(U,R,x,V){super(`submenuitem.${U.submenu.id}`,typeof U.title=="string"?U.title:U.title.value,[],"submenu"),this.item=U,this._menuService=R,this._contextKeyService=x,this._options=V}get actions(){const U=[],R=this._menuService.createMenu(this.item.submenu,this._contextKeyService),x=R.getActions(this._options);R.dispose();for(const[,V]of x)V.length>0&&(U.push(...V),U.push(new h.Z0));return U.length&&U.pop(),U}}let $=class yl{constructor(U,R,x,V,X){var H,q;if(this._commandService=X,this.id=U.id,this.label=x!=null&&x.renderShortTitle&&U.shortTitle?typeof U.shortTitle=="string"?U.shortTitle:U.shortTitle.value:typeof U.title=="string"?U.title:U.title.value,this.tooltip=(q=typeof U.tooltip=="string"?U.tooltip:(H=U.tooltip)===null||H===void 0?void 0:H.value)!==null&&q!==void 0?q:"",this.enabled=!U.precondition||V.contextMatchesRules(U.precondition),this.checked=void 0,U.toggled){const se=U.toggled.condition?U.toggled:{condition:U.toggled};this.checked=V.contextMatchesRules(se.condition),this.checked&&se.tooltip&&(this.tooltip=typeof se.tooltip=="string"?se.tooltip:se.tooltip.value),se.title&&(this.label=typeof se.title=="string"?se.title:se.title.value)}this.item=U,this.alt=R?new yl(R,void 0,x,V,X):void 0,this._options=x,y.kS.isThemeIcon(U.icon)&&(this.class=le.dT.asClassName(U.icon))}dispose(){}run(...U){var R,x;let V=[];return!((R=this._options)===null||R===void 0)&&R.arg&&(V=[...V,this._options.arg]),!((x=this._options)===null||x===void 0)&&x.shouldForwardArgs&&(V=[...V,...U]),this._commandService.executeCommand(this.id,...V)}};$=T([m(3,re.i6),m(4,me.H)],$)},35884:function(Rn,Gt,E){"use strict";E.d(Gt,{H:function(){return me},P:function(){return re}});var h=E(4348),le=E(88226),ne=E(69323),oe=E(34502),B=E(72999),d=E(16925);const me=(0,d.yh)("commandService"),re=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new h.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(o,y){if(!o)throw new Error("invalid command");if(typeof o=="string"){if(!y)throw new Error("invalid command");return this.registerCommand({id:o,handler:y})}if(o.description){const L=[];for(let W of o.description.args)L.push(W.constraint);const K=o.handler;o.handler=function(W,...$){return(0,B.D8)($,L),K(W,...$)}}const{id:T}=o;let m=this._commands.get(T);m||(m=new oe.S,this._commands.set(T,m));let _=m.unshift(o),b=(0,ne.OF)(()=>{_();const L=this._commands.get(T);L!=null&&L.isEmpty()&&this._commands.delete(T)});return this._onDidRegisterCommand.fire(T),b}registerCommandAlias(o,y){return re.registerCommand(o,(T,...m)=>T.get(me).executeCommand(y,...m))}getCommand(o){const y=this._commands.get(o);if(!(!y||y.isEmpty()))return le.$.first(y)}getCommands(){const o=new Map;for(const y of this._commands.keys()){const T=this.getCommand(y);T&&o.set(y,T)}return o}};re.registerCommand("noop",()=>{})},90689:function(Rn,Gt,E){"use strict";E.d(Gt,{Ao:function(){return me},Eq:function(){return Z},Fb:function(){return re},K8:function(){return G},i6:function(){return Fe},uy:function(){return ie}});var h=E(23345),le=E(82983),ne=E(16925);let oe=h.WE||"";const B=new Map;B.set("false",!1),B.set("true",!0),B.set("isMac",h.dz),B.set("isLinux",h.IJ),B.set("isWindows",h.ED),B.set("isWeb",h.$L),B.set("isMacNative",h.dz&&!h.$L),B.set("isEdge",oe.indexOf("Edg/")>=0),B.set("isFirefox",oe.indexOf("Firefox")>=0),B.set("isChrome",oe.indexOf("Chrome")>=0),B.set("isSafari",oe.indexOf("Safari")>=0);const d=Object.prototype.hasOwnProperty;class me{static has(v){return m.create(v)}static equals(v,g){return _.create(v,g)}static regex(v,g){return V.create(v,g)}static not(v){return W.create(v)}static and(...v){return q.create(v,null)}static or(...v){return se.create(v,null,!0)}static deserialize(v,g=!1){if(v)return this._deserializeOrExpression(v,g)}static _deserializeOrExpression(v,g){let M=v.split("||");return se.create(M.map(ue=>this._deserializeAndExpression(ue,g)),null,!0)}static _deserializeAndExpression(v,g){let M=v.split("&&");return q.create(M.map(ue=>this._deserializeOne(ue,g)),null)}static _deserializeOne(v,g){if(v=v.trim(),v.indexOf("!=")>=0){let M=v.split("!=");return K.create(M[0].trim(),this._deserializeValue(M[1],g))}if(v.indexOf("==")>=0){let M=v.split("==");return _.create(M[0].trim(),this._deserializeValue(M[1],g))}if(v.indexOf("=~")>=0){let M=v.split("=~");return V.create(M[0].trim(),this._deserializeRegexValue(M[1],g))}if(v.indexOf(" in ")>=0){let M=v.split(" in ");return b.create(M[0].trim(),M[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(v)){const M=v.split(">=");return U.create(M[0].trim(),M[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(v)){const M=v.split(">");return O.create(M[0].trim(),M[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(v)){const M=v.split("<=");return x.create(M[0].trim(),M[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(v)){const M=v.split("<");return R.create(M[0].trim(),M[1].trim())}return/^\!\s*/.test(v)?W.create(v.substr(1).trim()):m.create(v)}static _deserializeValue(v,g){if(v=v.trim(),v==="true")return!0;if(v==="false")return!1;let M=/^'([^']*)'$/.exec(v);return M?M[1].trim():v}static _deserializeRegexValue(v,g){if((0,le.m5)(v)){if(g)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let M=v.indexOf("/"),ue=v.lastIndexOf("/");if(M===ue||M<0){if(g)throw new Error(`bad regexp-value '${v}', missing /-enclosure`);return console.warn(`bad regexp-value '${v}', missing /-enclosure`),null}let Ie=v.slice(M+1,ue),Je=v[ue+1]==="i"?"i":"";try{return new RegExp(Ie,Je)}catch(Dt){if(g)throw new Error(`bad regexp-value '${v}', parse error: ${Dt}`);return console.warn(`bad regexp-value '${v}', parse error: ${Dt}`),null}}}function re(j,v){const g=j?j.substituteConstants():void 0,M=v?v.substituteConstants():void 0;return!g&&!M?!0:!g||!M?!1:g.equals(M)}function o(j,v){return j.cmp(v)}class y{constructor(){this.type=0}cmp(v){return this.type-v.type}equals(v){return v.type===this.type}substituteConstants(){return this}evaluate(v){return!1}serialize(){return"false"}keys(){return[]}negate(){return T.INSTANCE}}y.INSTANCE=new y;class T{constructor(){this.type=1}cmp(v){return this.type-v.type}equals(v){return v.type===this.type}substituteConstants(){return this}evaluate(v){return!0}serialize(){return"true"}keys(){return[]}negate(){return y.INSTANCE}}T.INSTANCE=new T;class m{constructor(v,g){this.key=v,this.negated=g,this.type=2}static create(v,g=null){const M=B.get(v);return typeof M=="boolean"?M?T.INSTANCE:y.INSTANCE:new m(v,g)}cmp(v){return v.type!==this.type?this.type-v.type:k(this.key,v.key)}equals(v){return v.type===this.type?this.key===v.key:!1}substituteConstants(){const v=B.get(this.key);return typeof v=="boolean"?v?T.INSTANCE:y.INSTANCE:this}evaluate(v){return!!v.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=W.create(this.key,this)),this.negated}}class _{constructor(v,g,M){this.key=v,this.value=g,this.negated=M,this.type=4}static create(v,g,M=null){if(typeof g=="boolean")return g?m.create(v,M):W.create(v,M);const ue=B.get(v);return typeof ue=="boolean"?g===(ue?"true":"false")?T.INSTANCE:y.INSTANCE:new _(v,g,M)}cmp(v){return v.type!==this.type?this.type-v.type:F(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){const v=B.get(this.key);if(typeof v=="boolean"){const g=v?"true":"false";return this.value===g?T.INSTANCE:y.INSTANCE}return this}evaluate(v){return v.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=K.create(this.key,this.value,this)),this.negated}}class b{constructor(v,g){this.key=v,this.valueKey=g,this.type=10,this.negated=null}static create(v,g){return new b(v,g)}cmp(v){return v.type!==this.type?this.type-v.type:F(this.key,this.valueKey,v.key,v.valueKey)}equals(v){return v.type===this.type?this.key===v.key&&this.valueKey===v.valueKey:!1}substituteConstants(){return this}evaluate(v){const g=v.getValue(this.valueKey),M=v.getValue(this.key);return Array.isArray(g)?g.indexOf(M)>=0:typeof M=="string"&&typeof g=="object"&&g!==null?d.call(g,M):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=L.create(this)),this.negated}}class L{constructor(v){this._actual=v,this.type=11}static create(v){return new L(v)}cmp(v){return v.type!==this.type?this.type-v.type:this._actual.cmp(v._actual)}equals(v){return v.type===this.type?this._actual.equals(v._actual):!1}substituteConstants(){return this}evaluate(v){return!this._actual.evaluate(v)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class K{constructor(v,g,M){this.key=v,this.value=g,this.negated=M,this.type=5}static create(v,g,M=null){if(typeof g=="boolean")return g?W.create(v,M):m.create(v,M);const ue=B.get(v);return typeof ue=="boolean"?g===(ue?"true":"false")?y.INSTANCE:T.INSTANCE:new K(v,g,M)}cmp(v){return v.type!==this.type?this.type-v.type:F(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){const v=B.get(this.key);if(typeof v=="boolean"){const g=v?"true":"false";return this.value===g?y.INSTANCE:T.INSTANCE}return this}evaluate(v){return v.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=_.create(this.key,this.value,this)),this.negated}}class W{constructor(v,g){this.key=v,this.negated=g,this.type=3}static create(v,g=null){const M=B.get(v);return typeof M=="boolean"?M?y.INSTANCE:T.INSTANCE:new W(v,g)}cmp(v){return v.type!==this.type?this.type-v.type:k(this.key,v.key)}equals(v){return v.type===this.type?this.key===v.key:!1}substituteConstants(){const v=B.get(this.key);return typeof v=="boolean"?v?y.INSTANCE:T.INSTANCE:this}evaluate(v){return!v.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this)),this.negated}}function $(j,v){if(typeof j=="string"){const g=parseFloat(j);isNaN(g)||(j=g)}return typeof j=="string"||typeof j=="number"?v(j):y.INSTANCE}class O{constructor(v,g,M){this.key=v,this.value=g,this.negated=M,this.type=12}static create(v,g,M=null){return $(g,ue=>new O(v,ue,M))}cmp(v){return v.type!==this.type?this.type-v.type:F(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){return this}evaluate(v){return typeof this.value=="string"?!1:parseFloat(v.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=x.create(this.key,this.value,this)),this.negated}}class U{constructor(v,g,M){this.key=v,this.value=g,this.negated=M,this.type=13}static create(v,g,M=null){return $(g,ue=>new U(v,ue,M))}cmp(v){return v.type!==this.type?this.type-v.type:F(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){return this}evaluate(v){return typeof this.value=="string"?!1:parseFloat(v.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R.create(this.key,this.value,this)),this.negated}}class R{constructor(v,g,M){this.key=v,this.value=g,this.negated=M,this.type=14}static create(v,g,M=null){return $(g,ue=>new R(v,ue,M))}cmp(v){return v.type!==this.type?this.type-v.type:F(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){return this}evaluate(v){return typeof this.value=="string"?!1:parseFloat(v.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=U.create(this.key,this.value,this)),this.negated}}class x{constructor(v,g,M){this.key=v,this.value=g,this.negated=M,this.type=15}static create(v,g,M=null){return $(g,ue=>new x(v,ue,M))}cmp(v){return v.type!==this.type?this.type-v.type:F(this.key,this.value,v.key,v.value)}equals(v){return v.type===this.type?this.key===v.key&&this.value===v.value:!1}substituteConstants(){return this}evaluate(v){return typeof this.value=="string"?!1:parseFloat(v.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=O.create(this.key,this.value,this)),this.negated}}class V{constructor(v,g){this.key=v,this.regexp=g,this.type=7,this.negated=null}static create(v,g){return new V(v,g)}cmp(v){if(v.type!==this.type)return this.type-v.type;if(this.key<v.key)return-1;if(this.key>v.key)return 1;const g=this.regexp?this.regexp.source:"",M=v.regexp?v.regexp.source:"";return g<M?-1:g>M?1:0}equals(v){if(v.type===this.type){const g=this.regexp?this.regexp.source:"",M=v.regexp?v.regexp.source:"";return this.key===v.key&&g===M}return!1}substituteConstants(){return this}evaluate(v){let g=v.getValue(this.key);return this.regexp?this.regexp.test(g):!1}serialize(){const v=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${v}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=X.create(this)),this.negated}}class X{constructor(v){this._actual=v,this.type=8}static create(v){return new X(v)}cmp(v){return v.type!==this.type?this.type-v.type:this._actual.cmp(v._actual)}equals(v){return v.type===this.type?this._actual.equals(v._actual):!1}substituteConstants(){return this}evaluate(v){return!this._actual.evaluate(v)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function H(j){let v=null;for(let g=0,M=j.length;g<M;g++){const ue=j[g].substituteConstants();if(j[g]!==ue&&v===null){v=[];for(let Ie=0;Ie<g;Ie++)v[Ie]=j[Ie]}v!==null&&(v[g]=ue)}return v===null?j:v}class q{constructor(v,g){this.expr=v,this.negated=g,this.type=6}static create(v,g){return q._normalizeArr(v,g)}cmp(v){if(v.type!==this.type)return this.type-v.type;if(this.expr.length<v.expr.length)return-1;if(this.expr.length>v.expr.length)return 1;for(let g=0,M=this.expr.length;g<M;g++){const ue=o(this.expr[g],v.expr[g]);if(ue!==0)return ue}return 0}equals(v){if(v.type===this.type){if(this.expr.length!==v.expr.length)return!1;for(let g=0,M=this.expr.length;g<M;g++)if(!this.expr[g].equals(v.expr[g]))return!1;return!0}return!1}substituteConstants(){const v=H(this.expr);return v===this.expr?this:q.create(v,this.negated)}evaluate(v){for(let g=0,M=this.expr.length;g<M;g++)if(!this.expr[g].evaluate(v))return!1;return!0}static _normalizeArr(v,g){const M=[];let ue=!1;for(const Ie of v)if(Ie){if(Ie.type===1){ue=!0;continue}if(Ie.type===0)return y.INSTANCE;if(Ie.type===6){M.push(...Ie.expr);continue}M.push(Ie)}if(M.length===0&&ue)return T.INSTANCE;if(M.length!==0){if(M.length===1)return M[0];M.sort(o);for(let Ie=1;Ie<M.length;Ie++)M[Ie-1].equals(M[Ie])&&(M.splice(Ie,1),Ie--);if(M.length===1)return M[0];for(;M.length>1;){const Ie=M[M.length-1];if(Ie.type!==9)break;M.pop();const Je=M.pop(),Dt=M.length===0,vt=se.create(Ie.expr.map(Mt=>q.create([Mt,Je],null)),null,Dt);vt&&(M.push(vt),M.sort(o))}return M.length===1?M[0]:new q(M,g)}}serialize(){return this.expr.map(v=>v.serialize()).join(" && ")}keys(){const v=[];for(let g of this.expr)v.push(...g.keys());return v}negate(){if(!this.negated){const v=[];for(let g of this.expr)v.push(g.negate());this.negated=se.create(v,this,!0)}return this.negated}}class se{constructor(v,g){this.expr=v,this.negated=g,this.type=9}static create(v,g,M){return se._normalizeArr(v,g,M)}cmp(v){if(v.type!==this.type)return this.type-v.type;if(this.expr.length<v.expr.length)return-1;if(this.expr.length>v.expr.length)return 1;for(let g=0,M=this.expr.length;g<M;g++){const ue=o(this.expr[g],v.expr[g]);if(ue!==0)return ue}return 0}equals(v){if(v.type===this.type){if(this.expr.length!==v.expr.length)return!1;for(let g=0,M=this.expr.length;g<M;g++)if(!this.expr[g].equals(v.expr[g]))return!1;return!0}return!1}substituteConstants(){const v=H(this.expr);return v===this.expr?this:se.create(v,this.negated,!1)}evaluate(v){for(let g=0,M=this.expr.length;g<M;g++)if(this.expr[g].evaluate(v))return!0;return!1}static _normalizeArr(v,g,M){let ue=[],Ie=!1;if(v){for(let Je=0,Dt=v.length;Je<Dt;Je++){const vt=v[Je];if(vt){if(vt.type===0){Ie=!0;continue}if(vt.type===1)return T.INSTANCE;if(vt.type===9){ue=ue.concat(vt.expr);continue}ue.push(vt)}}if(ue.length===0&&Ie)return y.INSTANCE;ue.sort(o)}if(ue.length!==0){if(ue.length===1)return ue[0];for(let Je=1;Je<ue.length;Je++)ue[Je-1].equals(ue[Je])&&(ue.splice(Je,1),Je--);if(ue.length===1)return ue[0];if(M){for(let Je=0;Je<ue.length;Je++)for(let Dt=Je+1;Dt<ue.length;Dt++)G(ue[Je],ue[Dt])&&(ue.splice(Dt,1),Dt--);if(ue.length===1)return ue[0]}return new se(ue,g)}}serialize(){return this.expr.map(v=>v.serialize()).join(" || ")}keys(){const v=[];for(let g of this.expr)v.push(...g.keys());return v}negate(){if(!this.negated){let v=[];for(let g of this.expr)v.push(g.negate());for(;v.length>1;){const g=v.shift(),M=v.shift(),ue=[];for(const Je of J(g))for(const Dt of J(M))ue.push(q.create([Je,Dt],null));const Ie=v.length===0;v.unshift(se.create(ue,null,Ie))}this.negated=v[0]}return this.negated}}class ie extends m{constructor(v,g,M){super(v,null),this._defaultValue=g,typeof M=="object"?ie._info.push(Object.assign(Object.assign({},M),{key:v})):M!==!0&&ie._info.push({key:v,description:M,type:g!=null?typeof g:void 0})}static all(){return ie._info.values()}bindTo(v){return v.createKey(this.key,this._defaultValue)}getValue(v){return v.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(v){return _.create(this.key,v)}}ie._info=[];const Fe=(0,ne.yh)("contextKeyService"),Z="setContext";function k(j,v){return j<v?-1:j>v?1:0}function F(j,v,g,M){return j<g?-1:j>g?1:v<M?-1:v>M?1:0}function G(j,v){if(v.type===6&&j.type!==9&&j.type!==6){for(const ue of v.expr)if(j.equals(ue))return!0}const g=j.negate(),M=J(g).concat(J(v));M.sort(o);for(let ue=0;ue<M.length;ue++){const Je=M[ue].negate();for(let Dt=ue+1;Dt<M.length;Dt++){const vt=M[Dt];if(Je.equals(vt))return!0}}return!1}function J(j){return j.type===9?j.expr:[j]}},16925:function(Rn,Gt,E){"use strict";E.d(Gt,{I8:function(){return h},TG:function(){return le},jt:function(){return B},yh:function(){return oe}});var h;(function(d){d.serviceIds=new Map,d.DI_TARGET="$di$target",d.DI_DEPENDENCIES="$di$dependencies";function me(re){return re[d.DI_DEPENDENCIES]||[]}d.getServiceDependencies=me})(h||(h={}));const le=oe("instantiationService");function ne(d,me,re,o){me[h.DI_TARGET]===me?me[h.DI_DEPENDENCIES].push({id:d,index:re,optional:o}):(me[h.DI_DEPENDENCIES]=[{id:d,index:re,optional:o}],me[h.DI_TARGET]=me)}function oe(d){if(h.serviceIds.has(d))return h.serviceIds.get(d);const me=function(re,o,y){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");ne(me,re,y,!1)};return me.toString=()=>d,h.serviceIds.set(d,me),me}function B(d){return function(me,re,o){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");ne(d,me,o,!0)}}},44650:function(Rn,Gt,E){"use strict";E.d(Gt,{B:function(){return oe}});var h=E(76068),le=E(72999);class ne{constructor(){this.data=new Map}add(d,me){h.ok(le.HD(d)),h.ok(le.Kn(me)),h.ok(!this.data.has(d),"There is already an extension with this id"),this.data.set(d,me)}as(d){return this.data.get(d)||null}}const oe=new ne},66213:function(Rn,Gt,E){"use strict";E.d(Gt,{e:function(){return h}});var h;(function(le){le.DARK="dark",le.LIGHT="light",le.HIGH_CONTRAST="hc"})(h||(h={}))},49055:function(Rn,Gt,E){"use strict";E.d(Gt,{EN:function(){return o},IP:function(){return m},Ic:function(){return L},XE:function(){return me},bB:function(){return K},kS:function(){return y},m6:function(){return T}});var h=E(52615),le=E(4348),ne=E(69323),oe=E(16925),B=E(44650),d=E(66213);const me=(0,oe.yh)("themeService");var re;(function(W){function $(O){return O&&typeof O=="object"&&typeof O.id=="string"}W.isThemeColor=$})(re||(re={}));function o(W){return{id:W}}var y;(function(W){function $(X){return X&&typeof X=="object"&&typeof X.id=="string"&&(typeof X.color=="undefined"||re.isThemeColor(X.color))}W.isThemeIcon=$;const O=new RegExp(`^\\$\\((${h.dT.iconNameExpression}(?:${h.dT.iconModifierExpression})?)\\)$`);function U(X){const H=O.exec(X);if(!H)return;let[,q]=H;return{id:q}}W.fromString=U;function R(X,H){let q=X.id;const se=q.lastIndexOf("~");return se!==-1&&(q=q.substring(0,se)),H&&(q=`${q}~${H}`),{id:q}}W.modify=R;function x(X,H){var q,se;return X.id===H.id&&((q=X.color)===null||q===void 0?void 0:q.id)===((se=H.color)===null||se===void 0?void 0:se.id)}W.isEqual=x;function V(X,H){return{id:X.id,color:H?o(H):void 0}}W.asThemeIcon=V,W.asClassNameArray=h.dT.asClassNameArray,W.asClassName=h.dT.asClassName,W.asCSSSelector=h.dT.asCSSSelector})(y||(y={}));function T(W){switch(W){case d.e.DARK:return"vs-dark";case d.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const m={ThemingContribution:"base.contributions.theming"};class _{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new le.Q5}onColorThemeChange($){return this.themingParticipants.push($),this.onThemingParticipantAddedEmitter.fire($),(0,ne.OF)(()=>{const O=this.themingParticipants.indexOf($);this.themingParticipants.splice(O,1)})}getThemingParticipants(){return this.themingParticipants}}let b=new _;B.B.add(m.ThemingContribution,b);function L(W){return b.onColorThemeChange(W)}class K extends ne.JT{constructor($){super(),this.themeService=$,this.theme=$.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(O=>this.onThemeChange(O)))}onThemeChange($){this.theme=$,this.updateStyles()}updateStyles(){}}},16632:function(Rn,Gt,E){"use strict";var h=E(67711),le=E(98506),ne=E(52873),oe=E(16886),B=E(33346),d=E(92310),me=E.n(d),re=E(18929),o=E(59301),y=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],T=(0,o.forwardRef)(function(m,_){var b=m.prefixCls,L=b===void 0?"rc-checkbox":b,K=m.className,W=m.style,$=m.checked,O=m.disabled,U=m.defaultChecked,R=U===void 0?!1:U,x=m.type,V=x===void 0?"checkbox":x,X=m.title,H=m.onChange,q=(0,B.Z)(m,y),se=(0,o.useRef)(null),ie=(0,o.useRef)(null),Fe=(0,re.Z)(R,{value:$}),Z=(0,oe.Z)(Fe,2),k=Z[0],F=Z[1];(0,o.useImperativeHandle)(_,function(){return{focus:function(v){var g;(g=se.current)===null||g===void 0||g.focus(v)},blur:function(){var v;(v=se.current)===null||v===void 0||v.blur()},input:se.current,nativeElement:ie.current}});var G=me()(L,K,(0,ne.Z)((0,ne.Z)({},"".concat(L,"-checked"),k),"".concat(L,"-disabled"),O)),J=function(v){O||("checked"in m||F(v.target.checked),H==null||H({target:(0,le.Z)((0,le.Z)({},m),{},{type:V,checked:v.target.checked}),stopPropagation:function(){v.stopPropagation()},preventDefault:function(){v.preventDefault()},nativeEvent:v.nativeEvent}))};return o.createElement("span",{className:G,title:X,style:W,ref:ie},o.createElement("input",(0,h.Z)({},q,{className:"".concat(L,"-input"),ref:se,onChange:J,disabled:O,checked:!!k,type:V})),o.createElement("span",{className:"".concat(L,"-inner")}))});Gt.Z=T},96478:function(Rn,Gt,E){"use strict";E.d(Gt,{Z:function(){return X}});var h=E(67711),le=E(52873),ne=E(16886),oe=E(33346),B=E(65030),d=E(92310),me=E.n(d),re=E(8654),o=E(59301),y=E(10228),T=E(16089),m=y.Z.ESC,_=y.Z.TAB;function b(H){var q=H.visible,se=H.triggerRef,ie=H.onVisibleChange,Fe=H.autoFocus,Z=H.overlayRef,k=o.useRef(!1),F=function(){if(q){var v,g;(v=se.current)===null||v===void 0||(g=v.focus)===null||g===void 0||g.call(v),ie==null||ie(!1)}},G=function(){var v;return(v=Z.current)!==null&&v!==void 0&&v.focus?(Z.current.focus(),k.current=!0,!0):!1},J=function(v){switch(v.keyCode){case m:F();break;case _:{var g=!1;k.current||(g=G()),g?v.preventDefault():F();break}}};o.useEffect(function(){return q?(window.addEventListener("keydown",J),Fe&&(0,T.Z)(G,3),function(){window.removeEventListener("keydown",J),k.current=!1}):function(){k.current=!1}},[q])}var L=(0,o.forwardRef)(function(H,q){var se=H.overlay,ie=H.arrow,Fe=H.prefixCls,Z=(0,o.useMemo)(function(){var F;return typeof se=="function"?F=se():F=se,F},[se]),k=(0,re.sQ)(q,(0,re.C4)(Z));return o.createElement(o.Fragment,null,ie&&o.createElement("div",{className:"".concat(Fe,"-arrow")}),o.cloneElement(Z,{ref:(0,re.Yr)(Z)?k:void 0}))}),K=L,W={adjustX:1,adjustY:1},$=[0,0],O={topLeft:{points:["bl","tl"],overflow:W,offset:[0,-4],targetOffset:$},top:{points:["bc","tc"],overflow:W,offset:[0,-4],targetOffset:$},topRight:{points:["br","tr"],overflow:W,offset:[0,-4],targetOffset:$},bottomLeft:{points:["tl","bl"],overflow:W,offset:[0,4],targetOffset:$},bottom:{points:["tc","bc"],overflow:W,offset:[0,4],targetOffset:$},bottomRight:{points:["tr","br"],overflow:W,offset:[0,4],targetOffset:$}},U=O,R=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function x(H,q){var se,ie=H.arrow,Fe=ie===void 0?!1:ie,Z=H.prefixCls,k=Z===void 0?"rc-dropdown":Z,F=H.transitionName,G=H.animation,J=H.align,j=H.placement,v=j===void 0?"bottomLeft":j,g=H.placements,M=g===void 0?U:g,ue=H.getPopupContainer,Ie=H.showAction,Je=H.hideAction,Dt=H.overlayClassName,vt=H.overlayStyle,Mt=H.visible,Bt=H.trigger,we=Bt===void 0?["hover"]:Bt,Yt=H.autoFocus,_t=H.overlay,Xt=H.children,lt=H.onVisibleChange,tt=(0,oe.Z)(H,R),Te=o.useState(),pe=(0,ne.Z)(Te,2),N=pe[0],xe=pe[1],Pe="visible"in H?Mt:N,z=o.useRef(null),P=o.useRef(null),ce=o.useRef(null);o.useImperativeHandle(q,function(){return z.current});var Ce=function(dt){xe(dt),lt==null||lt(dt)};b({visible:Pe,triggerRef:ce,onVisibleChange:Ce,autoFocus:Yt,overlayRef:P});var de=function(dt){var ge=H.onOverlayClick;xe(!1),ge&&ge(dt)},Q=function(){return o.createElement(K,{ref:P,overlay:_t,prefixCls:k,arrow:Fe})},he=function(){return typeof _t=="function"?Q:Q()},Oe=function(){var dt=H.minOverlayWidthMatchTrigger,ge=H.alignPoint;return"minOverlayWidthMatchTrigger"in H?dt:!ge},Re=function(){var dt=H.openClassName;return dt!==void 0?dt:"".concat(k,"-open")},qe=o.cloneElement(Xt,{className:me()((se=Xt.props)===null||se===void 0?void 0:se.className,Pe&&Re()),ref:(0,re.Yr)(Xt)?(0,re.sQ)(ce,(0,re.C4)(Xt)):void 0}),Ye=Je;return!Ye&&we.indexOf("contextMenu")!==-1&&(Ye=["click"]),o.createElement(B.Z,(0,h.Z)({builtinPlacements:M},tt,{prefixCls:k,ref:z,popupClassName:me()(Dt,(0,le.Z)({},"".concat(k,"-show-arrow"),Fe)),popupStyle:vt,action:we,showAction:Ie,hideAction:Ye,popupPlacement:v,popupAlign:J,popupTransitionName:F,popupAnimation:G,popupVisible:Pe,stretch:Oe()?"minWidth":"",popup:he(),onPopupVisibleChange:Ce,onPopupClick:de,getPopupContainer:ue}),qe)}var V=o.forwardRef(x),X=V},66003:function(Rn,Gt,E){"use strict";E.d(Gt,{Z:function(){return me}});var h=E(33346),le=E(98506),ne=E(26420),oe=E(59301),B=["show"];function d(re,o){if(!o.max)return!0;var y=o.strategy(re);return y<=o.max}function me(re,o){return oe.useMemo(function(){var y={};o&&(y.show=(0,ne.Z)(o)==="object"&&o.formatter?o.formatter:!!o),y=(0,le.Z)((0,le.Z)({},y),re);var T=y,m=T.show,_=(0,h.Z)(T,B);return(0,le.Z)((0,le.Z)({},_),{},{show:!!m,showFormatter:typeof m=="function"?m:void 0,strategy:_.strategy||function(b){return b.length}})},[re,o])}},36901:function(Rn,Gt,E){"use strict";E.r(Gt),E.d(Gt,{BaseInput:function(){return y},default:function(){return U}});var h=E(98506),le=E(67711),ne=E(52873),oe=E(26420),B=E(92310),d=E.n(B),me=E(59301),re=E(30292),o=me.forwardRef(function(R,x){var V,X,H,q=R.inputElement,se=R.children,ie=R.prefixCls,Fe=R.prefix,Z=R.suffix,k=R.addonBefore,F=R.addonAfter,G=R.className,J=R.style,j=R.disabled,v=R.readOnly,g=R.focused,M=R.triggerFocus,ue=R.allowClear,Ie=R.value,Je=R.handleReset,Dt=R.hidden,vt=R.classes,Mt=R.classNames,Bt=R.dataAttrs,we=R.styles,Yt=R.components,_t=R.onClear,Xt=se!=null?se:q,lt=(Yt==null?void 0:Yt.affixWrapper)||"span",tt=(Yt==null?void 0:Yt.groupWrapper)||"span",Te=(Yt==null?void 0:Yt.wrapper)||"span",pe=(Yt==null?void 0:Yt.groupAddon)||"span",N=(0,me.useRef)(null),xe=function(at){var et;(et=N.current)!==null&&et!==void 0&&et.contains(at.target)&&(M==null||M())},Pe=(0,re.X3)(R),z=(0,me.cloneElement)(Xt,{value:Ie,className:d()((V=Xt.props)===null||V===void 0?void 0:V.className,!Pe&&(Mt==null?void 0:Mt.variant))||null}),P=(0,me.useRef)(null);if(me.useImperativeHandle(x,function(){return{nativeElement:P.current||N.current}}),Pe){var ce=null;if(ue){var Ce=!j&&!v&&Ie,de="".concat(ie,"-clear-icon"),Q=(0,oe.Z)(ue)==="object"&&ue!==null&&ue!==void 0&&ue.clearIcon?ue.clearIcon:"\u2716";ce=me.createElement("button",{type:"button",tabIndex:-1,onClick:function(at){Je==null||Je(at),_t==null||_t()},onMouseDown:function(at){return at.preventDefault()},className:d()(de,(0,ne.Z)((0,ne.Z)({},"".concat(de,"-hidden"),!Ce),"".concat(de,"-has-suffix"),!!Z))},Q)}var he="".concat(ie,"-affix-wrapper"),Oe=d()(he,(0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)({},"".concat(ie,"-disabled"),j),"".concat(he,"-disabled"),j),"".concat(he,"-focused"),g),"".concat(he,"-readonly"),v),"".concat(he,"-input-with-clear-btn"),Z&&ue&&Ie),vt==null?void 0:vt.affixWrapper,Mt==null?void 0:Mt.affixWrapper,Mt==null?void 0:Mt.variant),Re=(Z||ue)&&me.createElement("span",{className:d()("".concat(ie,"-suffix"),Mt==null?void 0:Mt.suffix),style:we==null?void 0:we.suffix},ce,Z);z=me.createElement(lt,(0,le.Z)({className:Oe,style:we==null?void 0:we.affixWrapper,onClick:xe},Bt==null?void 0:Bt.affixWrapper,{ref:N}),Fe&&me.createElement("span",{className:d()("".concat(ie,"-prefix"),Mt==null?void 0:Mt.prefix),style:we==null?void 0:we.prefix},Fe),z,Re)}if((0,re.He)(R)){var qe="".concat(ie,"-group"),Ye="".concat(qe,"-addon"),Et="".concat(qe,"-wrapper"),dt=d()("".concat(ie,"-wrapper"),qe,vt==null?void 0:vt.wrapper,Mt==null?void 0:Mt.wrapper),ge=d()(Et,(0,ne.Z)({},"".concat(Et,"-disabled"),j),vt==null?void 0:vt.group,Mt==null?void 0:Mt.groupWrapper);z=me.createElement(tt,{className:ge,ref:P},me.createElement(Te,{className:dt},k&&me.createElement(pe,{className:Ye},k),z,F&&me.createElement(pe,{className:Ye},F)))}return me.cloneElement(z,{className:d()((X=z.props)===null||X===void 0?void 0:X.className,G)||null,style:(0,h.Z)((0,h.Z)({},(H=z.props)===null||H===void 0?void 0:H.style),J),hidden:Dt})}),y=o,T=E(15142),m=E(16886),_=E(33346),b=E(18929),L=E(2738),K=E(66003),W=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],$=(0,me.forwardRef)(function(R,x){var V=R.autoComplete,X=R.onChange,H=R.onFocus,q=R.onBlur,se=R.onPressEnter,ie=R.onKeyDown,Fe=R.onKeyUp,Z=R.prefixCls,k=Z===void 0?"rc-input":Z,F=R.disabled,G=R.htmlSize,J=R.className,j=R.maxLength,v=R.suffix,g=R.showCount,M=R.count,ue=R.type,Ie=ue===void 0?"text":ue,Je=R.classes,Dt=R.classNames,vt=R.styles,Mt=R.onCompositionStart,Bt=R.onCompositionEnd,we=(0,_.Z)(R,W),Yt=(0,me.useState)(!1),_t=(0,m.Z)(Yt,2),Xt=_t[0],lt=_t[1],tt=(0,me.useRef)(!1),Te=(0,me.useRef)(!1),pe=(0,me.useRef)(null),N=(0,me.useRef)(null),xe=function(qt){pe.current&&(0,re.nH)(pe.current,qt)},Pe=(0,b.Z)(R.defaultValue,{value:R.value}),z=(0,m.Z)(Pe,2),P=z[0],ce=z[1],Ce=P==null?"":String(P),de=(0,me.useState)(null),Q=(0,m.Z)(de,2),he=Q[0],Oe=Q[1],Re=(0,K.Z)(M,g),qe=Re.max||j,Ye=Re.strategy(Ce),Et=!!qe&&Ye>qe;(0,me.useImperativeHandle)(x,function(){var Rt;return{focus:xe,blur:function(){var Ke;(Ke=pe.current)===null||Ke===void 0||Ke.blur()},setSelectionRange:function(Ke,ke,Ne){var I;(I=pe.current)===null||I===void 0||I.setSelectionRange(Ke,ke,Ne)},select:function(){var Ke;(Ke=pe.current)===null||Ke===void 0||Ke.select()},input:pe.current,nativeElement:((Rt=N.current)===null||Rt===void 0?void 0:Rt.nativeElement)||pe.current}}),(0,me.useEffect)(function(){Te.current&&(Te.current=!1),lt(function(Rt){return Rt&&F?!1:Rt})},[F]);var dt=function(qt,Ke,ke){var Ne=Ke;if(!tt.current&&Re.exceedFormatter&&Re.max&&Re.strategy(Ke)>Re.max){if(Ne=Re.exceedFormatter(Ke,{max:Re.max}),Ke!==Ne){var I,ee;Oe([((I=pe.current)===null||I===void 0?void 0:I.selectionStart)||0,((ee=pe.current)===null||ee===void 0?void 0:ee.selectionEnd)||0])}}else if(ke.source==="compositionEnd")return;ce(Ne),pe.current&&(0,re.rJ)(pe.current,qt,X,Ne)};(0,me.useEffect)(function(){if(he){var Rt;(Rt=pe.current)===null||Rt===void 0||Rt.setSelectionRange.apply(Rt,(0,T.Z)(he))}},[he]);var ge=function(qt){dt(qt,qt.target.value,{source:"change"})},Ae=function(qt){tt.current=!1,dt(qt,qt.currentTarget.value,{source:"compositionEnd"}),Bt==null||Bt(qt)},at=function(qt){se&&qt.key==="Enter"&&!Te.current&&(Te.current=!0,se(qt)),ie==null||ie(qt)},et=function(qt){qt.key==="Enter"&&(Te.current=!1),Fe==null||Fe(qt)},Qe=function(qt){lt(!0),H==null||H(qt)},St=function(qt){Te.current&&(Te.current=!1),lt(!1),q==null||q(qt)},Tt=function(qt){ce(""),xe(),pe.current&&(0,re.rJ)(pe.current,qt,X)},He=Et&&"".concat(k,"-out-of-range"),Wt=function(){var qt=(0,L.Z)(R,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return me.createElement("input",(0,le.Z)({autoComplete:V},qt,{onChange:ge,onFocus:Qe,onBlur:St,onKeyDown:at,onKeyUp:et,className:d()(k,(0,ne.Z)({},"".concat(k,"-disabled"),F),Dt==null?void 0:Dt.input),style:vt==null?void 0:vt.input,ref:pe,size:G,type:Ie,onCompositionStart:function(ke){tt.current=!0,Mt==null||Mt(ke)},onCompositionEnd:Ae}))},fn=function(){var qt=Number(qe)>0;if(v||Re.show){var Ke=Re.showFormatter?Re.showFormatter({value:Ce,count:Ye,maxLength:qe}):"".concat(Ye).concat(qt?" / ".concat(qe):"");return me.createElement(me.Fragment,null,Re.show&&me.createElement("span",{className:d()("".concat(k,"-show-count-suffix"),(0,ne.Z)({},"".concat(k,"-show-count-has-suffix"),!!v),Dt==null?void 0:Dt.count),style:(0,h.Z)({},vt==null?void 0:vt.count)},Ke),v)}return null};return me.createElement(y,(0,le.Z)({},we,{prefixCls:k,className:d()(J,He),handleReset:Tt,value:Ce,focused:Xt,triggerFocus:xe,suffix:fn(),disabled:F,classes:Je,classNames:Dt,styles:vt}),Wt())}),O=$,U=O},30292:function(Rn,Gt,E){"use strict";E.d(Gt,{He:function(){return h},X3:function(){return le},nH:function(){return B},rJ:function(){return oe}});function h(d){return!!(d.addonBefore||d.addonAfter)}function le(d){return!!(d.prefix||d.suffix||d.allowClear)}function ne(d,me,re){var o=me.cloneNode(!0),y=Object.create(d,{target:{value:o},currentTarget:{value:o}});return o.value=re,typeof me.selectionStart=="number"&&typeof me.selectionEnd=="number"&&(o.selectionStart=me.selectionStart,o.selectionEnd=me.selectionEnd),o.setSelectionRange=function(){me.setSelectionRange.apply(me,arguments)},y}function oe(d,me,re,o){if(re){var y=me;if(me.type==="click"){y=ne(me,d,""),re(y);return}if(d.type!=="file"&&o!==void 0){y=ne(me,d,o),re(y);return}re(y)}}function B(d,me){if(d){d.focus(me);var re=me||{},o=re.cursor;if(o){var y=d.value.length;switch(o){case"start":d.setSelectionRange(0,0);break;case"end":d.setSelectionRange(y,y);break;default:d.setSelectionRange(0,y)}}}}},28321:function(Rn,Gt,E){"use strict";E.d(Gt,{iz:function(){return De},ck:function(){return Ne},BW:function(){return Ct},sN:function(){return Ne},Wd:function(){return Kt},ZP:function(){return jt},Xl:function(){return se}});var h=E(67711),le=E(52873),ne=E(98506),oe=E(15142),B=E(16886),d=E(33346),me=E(92310),re=E.n(me),o=E(11780),y=E(18929),T=E(13697),m=E(48736),_=E(59301),b=E(4676),L=_.createContext(null);function K(Be,ot){return Be===void 0?null:"".concat(Be,"-").concat(ot)}function W(Be){var ot=_.useContext(L);return K(ot,Be)}var $=E(80547),O=["children","locked"],U=_.createContext(null);function R(Be,ot){var gt=(0,ne.Z)({},Be);return Object.keys(ot).forEach(function(wt){var $t=ot[wt];$t!==void 0&&(gt[wt]=$t)}),gt}function x(Be){var ot=Be.children,gt=Be.locked,wt=(0,d.Z)(Be,O),$t=_.useContext(U),rn=(0,$.Z)(function(){return R($t,wt)},[$t,wt],function(cn,En){return!gt&&(cn[0]!==En[0]||!(0,T.Z)(cn[1],En[1],!0))});return _.createElement(U.Provider,{value:rn},ot)}var V=[],X=_.createContext(null);function H(){return _.useContext(X)}var q=_.createContext(V);function se(Be){var ot=_.useContext(q);return _.useMemo(function(){return Be!==void 0?[].concat((0,oe.Z)(ot),[Be]):ot},[ot,Be])}var ie=_.createContext(null),Fe=_.createContext({}),Z=Fe,k=E(29194);function F(Be){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,k.Z)(Be)){var gt=Be.nodeName.toLowerCase(),wt=["input","select","textarea","button"].includes(gt)||Be.isContentEditable||gt==="a"&&!!Be.getAttribute("href"),$t=Be.getAttribute("tabindex"),rn=Number($t),cn=null;return $t&&!Number.isNaN(rn)?cn=rn:wt&&cn===null&&(cn=0),wt&&Be.disabled&&(cn=null),cn!==null&&(cn>=0||ot&&cn<0)}return!1}function G(Be){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,gt=(0,oe.Z)(Be.querySelectorAll("*")).filter(function(wt){return F(wt,ot)});return F(Be,ot)&&gt.unshift(Be),gt}var J=null;function j(){J=document.activeElement}function v(){J=null}function g(){if(J)try{J.focus()}catch(Be){}}function M(Be,ot){if(ot.keyCode===9){var gt=G(Be),wt=gt[ot.shiftKey?0:gt.length-1],$t=wt===document.activeElement||Be===document.activeElement;if($t){var rn=gt[ot.shiftKey?gt.length-1:0];rn.focus(),ot.preventDefault()}}}var ue=E(10228),Ie=E(16089),Je=ue.Z.LEFT,Dt=ue.Z.RIGHT,vt=ue.Z.UP,Mt=ue.Z.DOWN,Bt=ue.Z.ENTER,we=ue.Z.ESC,Yt=ue.Z.HOME,_t=ue.Z.END,Xt=[vt,Mt,Je,Dt];function lt(Be,ot,gt,wt){var $t,rn="prev",cn="next",En="children",wn="parent";if(Be==="inline"&&wt===Bt)return{inlineTrigger:!0};var Pn=(0,le.Z)((0,le.Z)({},vt,rn),Mt,cn),ar=(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)({},Je,gt?cn:rn),Dt,gt?rn:cn),Mt,En),Bt,En),Dn=(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)({},vt,rn),Mt,cn),Bt,En),we,wn),Je,gt?En:wn),Dt,gt?wn:En),In={inline:Pn,horizontal:ar,vertical:Dn,inlineSub:Pn,horizontalSub:Dn,verticalSub:Dn},Nn=($t=In["".concat(Be).concat(ot?"":"Sub")])===null||$t===void 0?void 0:$t[wt];switch(Nn){case rn:return{offset:-1,sibling:!0};case cn:return{offset:1,sibling:!0};case wn:return{offset:-1,sibling:!1};case En:return{offset:1,sibling:!1};default:return null}}function tt(Be){for(var ot=Be;ot;){if(ot.getAttribute("data-menu-list"))return ot;ot=ot.parentElement}return null}function Te(Be,ot){for(var gt=Be||document.activeElement;gt;){if(ot.has(gt))return gt;gt=gt.parentElement}return null}function pe(Be,ot){var gt=G(Be,!0);return gt.filter(function(wt){return ot.has(wt)})}function N(Be,ot,gt){var wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Be)return null;var $t=pe(Be,ot),rn=$t.length,cn=$t.findIndex(function(En){return gt===En});return wt<0?cn===-1?cn=rn-1:cn-=1:wt>0&&(cn+=1),cn=(cn+rn)%rn,$t[cn]}var xe=function(ot,gt){var wt=new Set,$t=new Map,rn=new Map;return ot.forEach(function(cn){var En=document.querySelector("[data-menu-id='".concat(K(gt,cn),"']"));En&&(wt.add(En),rn.set(En,cn),$t.set(cn,En))}),{elements:wt,key2element:$t,element2key:rn}};function Pe(Be,ot,gt,wt,$t,rn,cn,En,wn,Pn){var ar=_.useRef(),Dn=_.useRef();Dn.current=ot;var In=function(){Ie.Z.cancel(ar.current)};return _.useEffect(function(){return function(){In()}},[]),function(Nn){var zn=Nn.which;if([].concat(Xt,[Bt,we,Yt,_t]).includes(zn)){var Wn=rn(),Mn=xe(Wn,wt),On=Mn,yn=On.elements,xn=On.key2element,je=On.element2key,Ft=xn.get(ot),on=Te(Ft,yn),pn=je.get(on),Un=lt(Be,cn(pn,!0).length===1,gt,zn);if(!Un&&zn!==Yt&&zn!==_t)return;(Xt.includes(zn)||[Yt,_t].includes(zn))&&Nn.preventDefault();var _e=function(zt){if(zt){var rt=zt,pt=zt.querySelector("a");pt!=null&&pt.getAttribute("href")&&(rt=pt);var yt=je.get(zt);En(yt),In(),ar.current=(0,Ie.Z)(function(){Dn.current===yt&&rt.focus()})}};if([Yt,_t].includes(zn)||Un.sibling||!on){var ct;!on||Be==="inline"?ct=$t.current:ct=tt(on);var We,ht=pe(ct,yn);zn===Yt?We=ht[0]:zn===_t?We=ht[ht.length-1]:We=N(ct,yn,on,Un.offset),_e(We)}else if(Un.inlineTrigger)wn(pn);else if(Un.offset>0)wn(pn,!0),In(),ar.current=(0,Ie.Z)(function(){Mn=xe(Wn,wt);var Qt=on.getAttribute("aria-controls"),zt=document.getElementById(Qt),rt=N(zt,Mn.elements);_e(rt)},5);else if(Un.offset<0){var bt=cn(pn,!0),kt=bt[bt.length-2],nn=xn.get(kt);wn(kt,!1),_e(nn)}}Pn==null||Pn(Nn)}}function z(Be){Promise.resolve().then(Be)}var P="__RC_UTIL_PATH_SPLIT__",ce=function(ot){return ot.join(P)},Ce=function(ot){return ot.split(P)},de="rc-menu-more";function Q(){var Be=_.useState({}),ot=(0,B.Z)(Be,2),gt=ot[1],wt=(0,_.useRef)(new Map),$t=(0,_.useRef)(new Map),rn=_.useState([]),cn=(0,B.Z)(rn,2),En=cn[0],wn=cn[1],Pn=(0,_.useRef)(0),ar=(0,_.useRef)(!1),Dn=function(){ar.current||gt({})},In=(0,_.useCallback)(function(xn,je){var Ft=ce(je);$t.current.set(Ft,xn),wt.current.set(xn,Ft),Pn.current+=1;var on=Pn.current;z(function(){on===Pn.current&&Dn()})},[]),Nn=(0,_.useCallback)(function(xn,je){var Ft=ce(je);$t.current.delete(Ft),wt.current.delete(xn)},[]),zn=(0,_.useCallback)(function(xn){wn(xn)},[]),Wn=(0,_.useCallback)(function(xn,je){var Ft=wt.current.get(xn)||"",on=Ce(Ft);return je&&En.includes(on[0])&&on.unshift(de),on},[En]),Mn=(0,_.useCallback)(function(xn,je){return xn.filter(function(Ft){return Ft!==void 0}).some(function(Ft){var on=Wn(Ft,!0);return on.includes(je)})},[Wn]),On=function(){var je=(0,oe.Z)(wt.current.keys());return En.length&&je.push(de),je},yn=(0,_.useCallback)(function(xn){var je="".concat(wt.current.get(xn)).concat(P),Ft=new Set;return(0,oe.Z)($t.current.keys()).forEach(function(on){on.startsWith(je)&&Ft.add($t.current.get(on))}),Ft},[]);return _.useEffect(function(){return function(){ar.current=!0}},[]),{registerPath:In,unregisterPath:Nn,refreshOverflowKeys:zn,isSubPathKey:Mn,getKeyPath:Wn,getKeys:On,getSubPathKeys:yn}}function he(Be){var ot=_.useRef(Be);ot.current=Be;var gt=_.useCallback(function(){for(var wt,$t=arguments.length,rn=new Array($t),cn=0;cn<$t;cn++)rn[cn]=arguments[cn];return(wt=ot.current)===null||wt===void 0?void 0:wt.call.apply(wt,[ot].concat(rn))},[]);return Be?gt:void 0}var Oe=Math.random().toFixed(5).toString().slice(2),Re=0;function qe(Be){var ot=(0,y.Z)(Be,{value:Be}),gt=(0,B.Z)(ot,2),wt=gt[0],$t=gt[1];return _.useEffect(function(){Re+=1;var rn="".concat(Oe,"-").concat(Re);$t("rc-menu-uuid-".concat(rn))},[]),wt}var Ye=E(42573),Et=E(58698),dt=E(74700),ge=E(45080),Ae=E(2738),at=E(8654);function et(Be,ot,gt,wt){var $t=_.useContext(U),rn=$t.activeKey,cn=$t.onActive,En=$t.onInactive,wn={active:rn===Be};return ot||(wn.onMouseEnter=function(Pn){gt==null||gt({key:Be,domEvent:Pn}),cn(Be)},wn.onMouseLeave=function(Pn){wt==null||wt({key:Be,domEvent:Pn}),En(Be)}),wn}function Qe(Be){var ot=_.useContext(U),gt=ot.mode,wt=ot.rtl,$t=ot.inlineIndent;if(gt!=="inline")return null;var rn=Be;return wt?{paddingRight:rn*$t}:{paddingLeft:rn*$t}}function St(Be){var ot=Be.icon,gt=Be.props,wt=Be.children,$t;return ot===null||ot===!1?null:(typeof ot=="function"?$t=_.createElement(ot,(0,ne.Z)({},gt)):typeof ot!="boolean"&&($t=ot),$t||wt||null)}var Tt=["item"];function He(Be){var ot=Be.item,gt=(0,d.Z)(Be,Tt);return Object.defineProperty(gt,"item",{get:function(){return(0,m.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),ot}}),gt}var Wt=["title","attribute","elementRef"],fn=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Rt=["active"],qt=function(Be){(0,dt.Z)(gt,Be);var ot=(0,ge.Z)(gt);function gt(){return(0,Ye.Z)(this,gt),ot.apply(this,arguments)}return(0,Et.Z)(gt,[{key:"render",value:function(){var $t=this.props,rn=$t.title,cn=$t.attribute,En=$t.elementRef,wn=(0,d.Z)($t,Wt),Pn=(0,Ae.Z)(wn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,m.ZP)(!cn,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),_.createElement(o.Z.Item,(0,h.Z)({},cn,{title:typeof rn=="string"?rn:void 0},Pn,{ref:En}))}}]),gt}(_.Component),Ke=_.forwardRef(function(Be,ot){var gt=Be.style,wt=Be.className,$t=Be.eventKey,rn=Be.warnKey,cn=Be.disabled,En=Be.itemIcon,wn=Be.children,Pn=Be.role,ar=Be.onMouseEnter,Dn=Be.onMouseLeave,In=Be.onClick,Nn=Be.onKeyDown,zn=Be.onFocus,Wn=(0,d.Z)(Be,fn),Mn=W($t),On=_.useContext(U),yn=On.prefixCls,xn=On.onItemClick,je=On.disabled,Ft=On.overflowDisabled,on=On.itemIcon,pn=On.selectedKeys,Un=On.onActive,_e=_.useContext(Z),ct=_e._internalRenderMenuItem,We="".concat(yn,"-item"),ht=_.useRef(),bt=_.useRef(),kt=je||cn,nn=(0,at.x1)(ot,bt),Qt=se($t),zt=function(kn){return{key:$t,keyPath:(0,oe.Z)(Qt).reverse(),item:ht.current,domEvent:kn}},rt=En||on,pt=et($t,kt,ar,Dn),yt=pt.active,Lt=(0,d.Z)(pt,Rt),Vt=pn.includes($t),dn=Qe(Qt.length),Cn=function(kn){if(!kt){var fr=zt(kn);In==null||In(He(fr)),xn(fr)}},bn=function(kn){if(Nn==null||Nn(kn),kn.which===ue.Z.ENTER){var fr=zt(kn);In==null||In(He(fr)),xn(fr)}},Bn=function(kn){Un($t),zn==null||zn(kn)},Yn={};Be.role==="option"&&(Yn["aria-selected"]=Vt);var Zn=_.createElement(qt,(0,h.Z)({ref:ht,elementRef:nn,role:Pn===null?"none":Pn||"menuitem",tabIndex:cn?null:-1,"data-menu-id":Ft&&Mn?null:Mn},(0,Ae.Z)(Wn,["extra"]),Lt,Yn,{component:"li","aria-disabled":cn,style:(0,ne.Z)((0,ne.Z)({},dn),gt),className:re()(We,(0,le.Z)((0,le.Z)((0,le.Z)({},"".concat(We,"-active"),yt),"".concat(We,"-selected"),Vt),"".concat(We,"-disabled"),kt),wt),onClick:Cn,onKeyDown:bn,onFocus:Bn}),wn,_.createElement(St,{props:(0,ne.Z)((0,ne.Z)({},Be),{},{isSelected:Vt}),icon:rt}));return ct&&(Zn=ct(Zn,Be,{selected:Vt})),Zn});function ke(Be,ot){var gt=Be.eventKey,wt=H(),$t=se(gt);return _.useEffect(function(){if(wt)return wt.registerPath(gt,$t),function(){wt.unregisterPath(gt,$t)}},[$t]),wt?null:_.createElement(Ke,(0,h.Z)({},Be,{ref:ot}))}var Ne=_.forwardRef(ke),I=["className","children"],ee=function(ot,gt){var wt=ot.className,$t=ot.children,rn=(0,d.Z)(ot,I),cn=_.useContext(U),En=cn.prefixCls,wn=cn.mode,Pn=cn.rtl;return _.createElement("ul",(0,h.Z)({className:re()(En,Pn&&"".concat(En,"-rtl"),"".concat(En,"-sub"),"".concat(En,"-").concat(wn==="inline"?"inline":"vertical"),wt),role:"menu"},rn,{"data-menu-list":!0,ref:gt}),$t)},fe=_.forwardRef(ee);fe.displayName="SubMenuList";var ve=fe,ye=E(11592);function Ue(Be,ot){return(0,ye.Z)(Be).map(function(gt,wt){if(_.isValidElement(gt)){var $t,rn,cn=gt.key,En=($t=(rn=gt.props)===null||rn===void 0?void 0:rn.eventKey)!==null&&$t!==void 0?$t:cn,wn=En==null;wn&&(En="tmp_key-".concat([].concat((0,oe.Z)(ot),[wt]).join("-")));var Pn={key:En,eventKey:En};return _.cloneElement(gt,Pn)}return gt})}var $e=E(65030),ut={adjustX:1,adjustY:1},At={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}},Ge={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}},w=null;function ae(Be,ot,gt){if(ot)return ot;if(gt)return gt[Be]||gt.other}var A={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ze(Be){var ot=Be.prefixCls,gt=Be.visible,wt=Be.children,$t=Be.popup,rn=Be.popupStyle,cn=Be.popupClassName,En=Be.popupOffset,wn=Be.disabled,Pn=Be.mode,ar=Be.onVisibleChange,Dn=_.useContext(U),In=Dn.getPopupContainer,Nn=Dn.rtl,zn=Dn.subMenuOpenDelay,Wn=Dn.subMenuCloseDelay,Mn=Dn.builtinPlacements,On=Dn.triggerSubMenuAction,yn=Dn.forceSubMenuRender,xn=Dn.rootClassName,je=Dn.motion,Ft=Dn.defaultMotions,on=_.useState(!1),pn=(0,B.Z)(on,2),Un=pn[0],_e=pn[1],ct=Nn?(0,ne.Z)((0,ne.Z)({},Ge),Mn):(0,ne.Z)((0,ne.Z)({},At),Mn),We=A[Pn],ht=ae(Pn,je,Ft),bt=_.useRef(ht);Pn!=="inline"&&(bt.current=ht);var kt=(0,ne.Z)((0,ne.Z)({},bt.current),{},{leavedClassName:"".concat(ot,"-hidden"),removeOnLeave:!1,motionAppear:!0}),nn=_.useRef();return _.useEffect(function(){return nn.current=(0,Ie.Z)(function(){_e(gt)}),function(){Ie.Z.cancel(nn.current)}},[gt]),_.createElement($e.Z,{prefixCls:ot,popupClassName:re()("".concat(ot,"-popup"),(0,le.Z)({},"".concat(ot,"-rtl"),Nn),cn,xn),stretch:Pn==="horizontal"?"minWidth":null,getPopupContainer:In,builtinPlacements:ct,popupPlacement:We,popupVisible:Un,popup:$t,popupStyle:rn,popupAlign:En&&{offset:En},action:wn?[]:[On],mouseEnterDelay:zn,mouseLeaveDelay:Wn,onPopupVisibleChange:ar,forceRender:yn,popupMotion:kt,fresh:!0},wt)}var Ee=E(77900);function Le(Be){var ot=Be.id,gt=Be.open,wt=Be.keyPath,$t=Be.children,rn="inline",cn=_.useContext(U),En=cn.prefixCls,wn=cn.forceSubMenuRender,Pn=cn.motion,ar=cn.defaultMotions,Dn=cn.mode,In=_.useRef(!1);In.current=Dn===rn;var Nn=_.useState(!In.current),zn=(0,B.Z)(Nn,2),Wn=zn[0],Mn=zn[1],On=In.current?gt:!1;_.useEffect(function(){In.current&&Mn(!1)},[Dn]);var yn=(0,ne.Z)({},ae(rn,Pn,ar));wt.length>1&&(yn.motionAppear=!1);var xn=yn.onVisibleChanged;return yn.onVisibleChanged=function(je){return!In.current&&!je&&Mn(!0),xn==null?void 0:xn(je)},Wn?null:_.createElement(x,{mode:rn,locked:!In.current},_.createElement(Ee.default,(0,h.Z)({visible:On},yn,{forceRender:wn,removeOnLeave:!1,leavedClassName:"".concat(En,"-hidden")}),function(je){var Ft=je.className,on=je.style;return _.createElement(ve,{id:ot,className:Ft,style:on},$t)}))}var ze=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ve=["active"],it=_.forwardRef(function(Be,ot){var gt=Be.style,wt=Be.className,$t=Be.title,rn=Be.eventKey,cn=Be.warnKey,En=Be.disabled,wn=Be.internalPopupClose,Pn=Be.children,ar=Be.itemIcon,Dn=Be.expandIcon,In=Be.popupClassName,Nn=Be.popupOffset,zn=Be.popupStyle,Wn=Be.onClick,Mn=Be.onMouseEnter,On=Be.onMouseLeave,yn=Be.onTitleClick,xn=Be.onTitleMouseEnter,je=Be.onTitleMouseLeave,Ft=(0,d.Z)(Be,ze),on=W(rn),pn=_.useContext(U),Un=pn.prefixCls,_e=pn.mode,ct=pn.openKeys,We=pn.disabled,ht=pn.overflowDisabled,bt=pn.activeKey,kt=pn.selectedKeys,nn=pn.itemIcon,Qt=pn.expandIcon,zt=pn.onItemClick,rt=pn.onOpenChange,pt=pn.onActive,yt=_.useContext(Z),Lt=yt._internalRenderSubMenuItem,Vt=_.useContext(ie),dn=Vt.isSubPathKey,Cn=se(),bn="".concat(Un,"-submenu"),Bn=We||En,Yn=_.useRef(),Zn=_.useRef(),Hn=ar!=null?ar:nn,kn=Dn!=null?Dn:Qt,fr=ct.includes(rn),rr=!ht&&fr,hr=dn(kt,rn),vn=et(rn,Bn,xn,je),er=vn.active,pr=(0,d.Z)(vn,Ve),or=_.useState(!1),dr=(0,B.Z)(or,2),Tn=dr[0],an=dr[1],Sn=function(nr){Bn||an(nr)},_n=function(nr){Sn(!0),Mn==null||Mn({key:rn,domEvent:nr})},qn=function(nr){Sn(!1),On==null||On({key:rn,domEvent:nr})},Qn=_.useMemo(function(){return er||(_e!=="inline"?Tn||dn([bt],rn):!1)},[_e,er,bt,Tn,rn,dn]),ir=Qe(Cn.length),xr=function(nr){Bn||(yn==null||yn({key:rn,domEvent:nr}),_e==="inline"&&rt(rn,!fr))},Ur=he(function(vr){Wn==null||Wn(He(vr)),zt(vr)}),Pr=function(nr){_e!=="inline"&&rt(rn,nr)},Kr=function(){pt(rn)},Gr=on&&"".concat(on,"-popup"),zr=_.useMemo(function(){return _.createElement(St,{icon:_e!=="horizontal"?kn:void 0,props:(0,ne.Z)((0,ne.Z)({},Be),{},{isOpen:rr,isSubMenu:!0})},_.createElement("i",{className:"".concat(bn,"-arrow")}))},[_e,kn,Be,rr,bn]),mr=_.createElement("div",(0,h.Z)({role:"menuitem",style:ir,className:"".concat(bn,"-title"),tabIndex:Bn?null:-1,ref:Yn,title:typeof $t=="string"?$t:null,"data-menu-id":ht&&on?null:on,"aria-expanded":rr,"aria-haspopup":!0,"aria-controls":Gr,"aria-disabled":Bn,onClick:xr,onFocus:Kr},pr),$t,zr),Cr=_.useRef(_e);if(_e!=="inline"&&Cn.length>1?Cr.current="vertical":Cr.current=_e,!ht){var Wr=Cr.current;mr=_.createElement(Ze,{mode:Wr,prefixCls:bn,visible:!wn&&rr&&_e!=="inline",popupClassName:In,popupOffset:Nn,popupStyle:zn,popup:_.createElement(x,{mode:Wr==="horizontal"?"vertical":Wr},_.createElement(ve,{id:Gr,ref:Zn},Pn)),disabled:Bn,onVisibleChange:Pr},mr)}var yr=_.createElement(o.Z.Item,(0,h.Z)({ref:ot,role:"none"},Ft,{component:"li",style:gt,className:re()(bn,"".concat(bn,"-").concat(_e),wt,(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)({},"".concat(bn,"-open"),rr),"".concat(bn,"-active"),Qn),"".concat(bn,"-selected"),hr),"".concat(bn,"-disabled"),Bn)),onMouseEnter:_n,onMouseLeave:qn}),mr,!ht&&_.createElement(Le,{id:Gr,open:rr,keyPath:Cn},Pn));return Lt&&(yr=Lt(yr,Be,{selected:hr,active:Qn,open:rr,disabled:Bn})),_.createElement(x,{onItemClick:Ur,mode:_e==="horizontal"?"vertical":_e,itemIcon:Hn,expandIcon:kn},yr)}),Pt=_.forwardRef(function(Be,ot){var gt=Be.eventKey,wt=Be.children,$t=se(gt),rn=Ue(wt,$t),cn=H();_.useEffect(function(){if(cn)return cn.registerPath(gt,$t),function(){cn.unregisterPath(gt,$t)}},[$t]);var En;return cn?En=rn:En=_.createElement(it,(0,h.Z)({ref:ot},Be),rn),_.createElement(q.Provider,{value:$t},En)}),Kt=Pt,mn=E(26420);function De(Be){var ot=Be.className,gt=Be.style,wt=_.useContext(U),$t=wt.prefixCls,rn=H();return rn?null:_.createElement("li",{role:"separator",className:re()("".concat($t,"-item-divider"),ot),style:gt})}var Se=["className","title","eventKey","children"],nt=_.forwardRef(function(Be,ot){var gt=Be.className,wt=Be.title,$t=Be.eventKey,rn=Be.children,cn=(0,d.Z)(Be,Se),En=_.useContext(U),wn=En.prefixCls,Pn="".concat(wn,"-item-group");return _.createElement("li",(0,h.Z)({ref:ot,role:"presentation"},cn,{onClick:function(Dn){return Dn.stopPropagation()},className:re()(Pn,gt)}),_.createElement("div",{role:"presentation",className:"".concat(Pn,"-title"),title:typeof wt=="string"?wt:void 0},wt),_.createElement("ul",{role:"group",className:"".concat(Pn,"-list")},rn))}),st=_.forwardRef(function(Be,ot){var gt=Be.eventKey,wt=Be.children,$t=se(gt),rn=Ue(wt,$t),cn=H();return cn?rn:_.createElement(nt,(0,h.Z)({ref:ot},(0,Ae.Z)(Be,["warnKey"])),rn)}),Ct=st,ft=["label","children","key","type","extra"];function Ot(Be,ot,gt){var wt=ot.item,$t=ot.group,rn=ot.submenu,cn=ot.divider;return(Be||[]).map(function(En,wn){if(En&&(0,mn.Z)(En)==="object"){var Pn=En,ar=Pn.label,Dn=Pn.children,In=Pn.key,Nn=Pn.type,zn=Pn.extra,Wn=(0,d.Z)(Pn,ft),Mn=In!=null?In:"tmp-".concat(wn);return Dn||Nn==="group"?Nn==="group"?_.createElement($t,(0,h.Z)({key:Mn},Wn,{title:ar}),Ot(Dn,ot,gt)):_.createElement(rn,(0,h.Z)({key:Mn},Wn,{title:ar}),Ot(Dn,ot,gt)):Nn==="divider"?_.createElement(cn,(0,h.Z)({key:Mn},Wn)):_.createElement(wt,(0,h.Z)({key:Mn},Wn,{extra:zn}),ar,(!!zn||zn===0)&&_.createElement("span",{className:"".concat(gt,"-item-extra")},zn))}return null}).filter(function(En){return En})}function Zt(Be,ot,gt,wt,$t){var rn=Be,cn=(0,ne.Z)({divider:De,item:Ne,group:Ct,submenu:Kt},wt);return ot&&(rn=Ot(ot,cn,$t)),Ue(rn,gt)}var tn=["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"],Nt=[],un=_.forwardRef(function(Be,ot){var gt,wt=Be,$t=wt.prefixCls,rn=$t===void 0?"rc-menu":$t,cn=wt.rootClassName,En=wt.style,wn=wt.className,Pn=wt.tabIndex,ar=Pn===void 0?0:Pn,Dn=wt.items,In=wt.children,Nn=wt.direction,zn=wt.id,Wn=wt.mode,Mn=Wn===void 0?"vertical":Wn,On=wt.inlineCollapsed,yn=wt.disabled,xn=wt.disabledOverflow,je=wt.subMenuOpenDelay,Ft=je===void 0?.1:je,on=wt.subMenuCloseDelay,pn=on===void 0?.1:on,Un=wt.forceSubMenuRender,_e=wt.defaultOpenKeys,ct=wt.openKeys,We=wt.activeKey,ht=wt.defaultActiveFirst,bt=wt.selectable,kt=bt===void 0?!0:bt,nn=wt.multiple,Qt=nn===void 0?!1:nn,zt=wt.defaultSelectedKeys,rt=wt.selectedKeys,pt=wt.onSelect,yt=wt.onDeselect,Lt=wt.inlineIndent,Vt=Lt===void 0?24:Lt,dn=wt.motion,Cn=wt.defaultMotions,bn=wt.triggerSubMenuAction,Bn=bn===void 0?"hover":bn,Yn=wt.builtinPlacements,Zn=wt.itemIcon,Hn=wt.expandIcon,kn=wt.overflowedIndicator,fr=kn===void 0?"...":kn,rr=wt.overflowedIndicatorPopupClassName,hr=wt.getPopupContainer,vn=wt.onClick,er=wt.onOpenChange,pr=wt.onKeyDown,or=wt.openAnimation,dr=wt.openTransitionName,Tn=wt._internalRenderMenuItem,an=wt._internalRenderSubMenuItem,Sn=wt._internalComponents,_n=(0,d.Z)(wt,tn),qn=_.useMemo(function(){return[Zt(In,Dn,Nt,Sn,rn),Zt(In,Dn,Nt,{},rn)]},[In,Dn,Sn]),Qn=(0,B.Z)(qn,2),ir=Qn[0],xr=Qn[1],Ur=_.useState(!1),Pr=(0,B.Z)(Ur,2),Kr=Pr[0],Gr=Pr[1],zr=_.useRef(),mr=qe(zn),Cr=Nn==="rtl",Wr=(0,y.Z)(_e,{value:ct,postState:function(Mr){return Mr||Nt}}),yr=(0,B.Z)(Wr,2),vr=yr[0],nr=yr[1],Ln=function(Mr){var jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function oi(){nr(Mr),er==null||er(Mr)}jr?(0,b.flushSync)(oi):oi()},tr=_.useState(vr),sr=(0,B.Z)(tr,2),lr=sr[0],Sr=sr[1],Dr=_.useRef(!1),$r=_.useMemo(function(){return(Mn==="inline"||Mn==="vertical")&&On?["vertical",On]:[Mn,!1]},[Mn,On]),Fn=(0,B.Z)($r,2),Jn=Fn[0],Vn=Fn[1],Ar=Jn==="inline",Lr=_.useState(Jn),Fr=(0,B.Z)(Lr,2),ni=Fr[0],si=Fr[1],Jr=_.useState(Vn),Vr=(0,B.Z)(Jr,2),hi=Vr[0],Yi=Vr[1];_.useEffect(function(){si(Jn),Yi(Vn),Dr.current&&(Ar?nr(lr):Ln(Nt))},[Jn,Vn]);var Di=_.useState(0),zi=(0,B.Z)(Di,2),Mi=zi[0],Oi=zi[1],ji=Mi>=ir.length-1||ni!=="horizontal"||xn;_.useEffect(function(){Ar&&Sr(vr)},[vr]),_.useEffect(function(){return Dr.current=!0,function(){Dr.current=!1}},[]);var yi=Q(),Fi=yi.registerPath,Ri=yi.unregisterPath,Xi=yi.refreshOverflowKeys,ci=yi.isSubPathKey,ts=yi.getKeyPath,Bi=yi.getKeys,ns=yi.getSubPathKeys,rs=_.useMemo(function(){return{registerPath:Fi,unregisterPath:Ri}},[Fi,Ri]),is=_.useMemo(function(){return{isSubPathKey:ci}},[ci]);_.useEffect(function(){Xi(ji?Nt:ir.slice(Mi+1).map(function(sn){return sn.key}))},[Mi,ji]);var Gi=(0,y.Z)(We||ht&&((gt=ir[0])===null||gt===void 0?void 0:gt.key),{value:We}),ai=(0,B.Z)(Gi,2),ei=ai[0],wr=ai[1],_r=he(function(sn){wr(sn)}),Xr=he(function(){wr(void 0)});(0,_.useImperativeHandle)(ot,function(){return{list:zr.current,focus:function(Mr){var jr,oi=Bi(),ii=xe(oi,mr),vi=ii.elements,ss=ii.key2element,Ss=ii.element2key,As=pe(zr.current,vi),Qi=ei!=null?ei:As[0]?Ss.get(As[0]):(jr=ir.find(function(as){return!as.props.disabled}))===null||jr===void 0?void 0:jr.key,Si=ss.get(Qi);if(Qi&&Si){var Ai;Si==null||(Ai=Si.focus)===null||Ai===void 0||Ai.call(Si,Mr)}}}});var Hr=(0,y.Z)(zt||[],{value:rt,postState:function(Mr){return Array.isArray(Mr)?Mr:Mr==null?Nt:[Mr]}}),Yr=(0,B.Z)(Hr,2),Qr=Yr[0],pi=Yr[1],ri=function(Mr){if(kt){var jr=Mr.key,oi=Qr.includes(jr),ii;Qt?oi?ii=Qr.filter(function(ss){return ss!==jr}):ii=[].concat((0,oe.Z)(Qr),[jr]):ii=[jr],pi(ii);var vi=(0,ne.Z)((0,ne.Z)({},Mr),{},{selectedKeys:ii});oi?yt==null||yt(vi):pt==null||pt(vi)}!Qt&&vr.length&&ni!=="inline"&&Ln(Nt)},xi=he(function(sn){vn==null||vn(He(sn)),ri(sn)}),qr=he(function(sn,Mr){var jr=vr.filter(function(ii){return ii!==sn});if(Mr)jr.push(sn);else if(ni!=="inline"){var oi=ns(sn);jr=jr.filter(function(ii){return!oi.has(ii)})}(0,T.Z)(vr,jr,!0)||Ln(jr,!0)}),di=function(Mr,jr){var oi=jr!=null?jr:!vr.includes(Mr);qr(Mr,oi)},Li=Pe(ni,ei,Cr,mr,zr,Bi,ts,wr,di,pr);_.useEffect(function(){Gr(!0)},[]);var _i=_.useMemo(function(){return{_internalRenderMenuItem:Tn,_internalRenderSubMenuItem:an}},[Tn,an]),Wi=ni!=="horizontal"||xn?ir:ir.map(function(sn,Mr){return _.createElement(x,{key:sn.key,overflowDisabled:Mr>Mi},sn)}),xs=_.createElement(o.Z,(0,h.Z)({id:zn,ref:zr,prefixCls:"".concat(rn,"-overflow"),component:"ul",itemComponent:Ne,className:re()(rn,"".concat(rn,"-root"),"".concat(rn,"-").concat(ni),wn,(0,le.Z)((0,le.Z)({},"".concat(rn,"-inline-collapsed"),hi),"".concat(rn,"-rtl"),Cr),cn),dir:Nn,style:En,role:"menu",tabIndex:ar,data:Wi,renderRawItem:function(Mr){return Mr},renderRawRest:function(Mr){var jr=Mr.length,oi=jr?ir.slice(-jr):null;return _.createElement(Kt,{eventKey:de,title:fr,disabled:ji,internalPopupClose:jr===0,popupClassName:rr},oi)},maxCount:ni!=="horizontal"||xn?o.Z.INVALIDATE:o.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Mr){Oi(Mr)},onKeyDown:Li},_n));return _.createElement(Z.Provider,{value:_i},_.createElement(L.Provider,{value:mr},_.createElement(x,{prefixCls:rn,rootClassName:cn,mode:ni,openKeys:vr,rtl:Cr,disabled:yn,motion:Kr?dn:null,defaultMotions:Kr?Cn:null,activeKey:ei,onActive:_r,onInactive:Xr,selectedKeys:Qr,inlineIndent:Vt,subMenuOpenDelay:Ft,subMenuCloseDelay:pn,forceSubMenuRender:Un,builtinPlacements:Yn,triggerSubMenuAction:Bn,getPopupContainer:hr,itemIcon:Zn,expandIcon:Hn,onItemClick:xi,onOpenChange:qr},_.createElement(ie.Provider,{value:is},xs),_.createElement("div",{style:{display:"none"},"aria-hidden":!0},_.createElement(X.Provider,{value:rs},xr)))))}),gn=un,ln=gn;ln.Item=Ne,ln.SubMenu=Kt,ln.ItemGroup=Ct,ln.Divider=De;var jt=ln},11780:function(Rn,Gt,E){"use strict";E.d(Gt,{Z:function(){return j}});var h=E(67711),le=E(98506),ne=E(16886),oe=E(33346),B=E(59301),d=E(92310),me=E.n(d),re=E(29301),o=E(34280),y=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],T=void 0;function m(v,g){var M=v.prefixCls,ue=v.invalidate,Ie=v.item,Je=v.renderItem,Dt=v.responsive,vt=v.responsiveDisabled,Mt=v.registerSize,Bt=v.itemKey,we=v.className,Yt=v.style,_t=v.children,Xt=v.display,lt=v.order,tt=v.component,Te=tt===void 0?"div":tt,pe=(0,oe.Z)(v,y),N=Dt&&!Xt;function xe(Ce){Mt(Bt,Ce)}B.useEffect(function(){return function(){xe(null)}},[]);var Pe=Je&&Ie!==T?Je(Ie,{index:lt}):_t,z;ue||(z={opacity:N?0:1,height:N?0:T,overflowY:N?"hidden":T,order:Dt?lt:T,pointerEvents:N?"none":T,position:N?"absolute":T});var P={};N&&(P["aria-hidden"]=!0);var ce=B.createElement(Te,(0,h.Z)({className:me()(!ue&&M,we),style:(0,le.Z)((0,le.Z)({},z),Yt)},P,pe,{ref:g}),Pe);return Dt&&(ce=B.createElement(re.Z,{onResize:function(de){var Q=de.offsetWidth;xe(Q)},disabled:vt},ce)),ce}var _=B.forwardRef(m);_.displayName="Item";var b=_,L=E(6089),K=E(4676),W=E(16089);function $(v){if(typeof MessageChannel=="undefined")(0,W.Z)(v);else{var g=new MessageChannel;g.port1.onmessage=function(){return v()},g.port2.postMessage(void 0)}}function O(){var v=B.useRef(null),g=function(ue){v.current||(v.current=[],$(function(){(0,K.unstable_batchedUpdates)(function(){v.current.forEach(function(Ie){Ie()}),v.current=null})})),v.current.push(ue)};return g}function U(v,g){var M=B.useState(g),ue=(0,ne.Z)(M,2),Ie=ue[0],Je=ue[1],Dt=(0,L.Z)(function(vt){v(function(){Je(vt)})});return[Ie,Dt]}var R=B.createContext(null),x=["component"],V=["className"],X=["className"],H=function(g,M){var ue=B.useContext(R);if(!ue){var Ie=g.component,Je=Ie===void 0?"div":Ie,Dt=(0,oe.Z)(g,x);return B.createElement(Je,(0,h.Z)({},Dt,{ref:M}))}var vt=ue.className,Mt=(0,oe.Z)(ue,V),Bt=g.className,we=(0,oe.Z)(g,X);return B.createElement(R.Provider,{value:null},B.createElement(b,(0,h.Z)({ref:M,className:me()(vt,Bt)},Mt,we)))},q=B.forwardRef(H);q.displayName="RawItem";var se=q,ie=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Fe="responsive",Z="invalidate";function k(v){return"+ ".concat(v.length," ...")}function F(v,g){var M=v.prefixCls,ue=M===void 0?"rc-overflow":M,Ie=v.data,Je=Ie===void 0?[]:Ie,Dt=v.renderItem,vt=v.renderRawItem,Mt=v.itemKey,Bt=v.itemWidth,we=Bt===void 0?10:Bt,Yt=v.ssr,_t=v.style,Xt=v.className,lt=v.maxCount,tt=v.renderRest,Te=v.renderRawRest,pe=v.suffix,N=v.component,xe=N===void 0?"div":N,Pe=v.itemComponent,z=v.onVisibleChange,P=(0,oe.Z)(v,ie),ce=Yt==="full",Ce=O(),de=U(Ce,null),Q=(0,ne.Z)(de,2),he=Q[0],Oe=Q[1],Re=he||0,qe=U(Ce,new Map),Ye=(0,ne.Z)(qe,2),Et=Ye[0],dt=Ye[1],ge=U(Ce,0),Ae=(0,ne.Z)(ge,2),at=Ae[0],et=Ae[1],Qe=U(Ce,0),St=(0,ne.Z)(Qe,2),Tt=St[0],He=St[1],Wt=U(Ce,0),fn=(0,ne.Z)(Wt,2),Rt=fn[0],qt=fn[1],Ke=(0,B.useState)(null),ke=(0,ne.Z)(Ke,2),Ne=ke[0],I=ke[1],ee=(0,B.useState)(null),fe=(0,ne.Z)(ee,2),ve=fe[0],ye=fe[1],Ue=B.useMemo(function(){return ve===null&&ce?Number.MAX_SAFE_INTEGER:ve||0},[ve,he]),$e=(0,B.useState)(!1),ut=(0,ne.Z)($e,2),At=ut[0],Ge=ut[1],w="".concat(ue,"-item"),ae=Math.max(at,Tt),A=lt===Fe,Ze=Je.length&&A,Ee=lt===Z,Le=Ze||typeof lt=="number"&&Je.length>lt,ze=(0,B.useMemo)(function(){var ln=Je;return Ze?he===null&&ce?ln=Je:ln=Je.slice(0,Math.min(Je.length,Re/we)):typeof lt=="number"&&(ln=Je.slice(0,lt)),ln},[Je,we,he,lt,Ze]),Ve=(0,B.useMemo)(function(){return Ze?Je.slice(Ue+1):Je.slice(ze.length)},[Je,ze,Ze,Ue]),it=(0,B.useCallback)(function(ln,jt){var Be;return typeof Mt=="function"?Mt(ln):(Be=Mt&&(ln==null?void 0:ln[Mt]))!==null&&Be!==void 0?Be:jt},[Mt]),Pt=(0,B.useCallback)(Dt||function(ln){return ln},[Dt]);function Kt(ln,jt,Be){ve===ln&&(jt===void 0||jt===Ne)||(ye(ln),Be||(Ge(ln<Je.length-1),z==null||z(ln)),jt!==void 0&&I(jt))}function mn(ln,jt){Oe(jt.clientWidth)}function De(ln,jt){dt(function(Be){var ot=new Map(Be);return jt===null?ot.delete(ln):ot.set(ln,jt),ot})}function Se(ln,jt){He(jt),et(Tt)}function nt(ln,jt){qt(jt)}function st(ln){return Et.get(it(ze[ln],ln))}(0,o.Z)(function(){if(Re&&typeof ae=="number"&&ze){var ln=Rt,jt=ze.length,Be=jt-1;if(!jt){Kt(0,null);return}for(var ot=0;ot<jt;ot+=1){var gt=st(ot);if(ce&&(gt=gt||0),gt===void 0){Kt(ot-1,void 0,!0);break}if(ln+=gt,Be===0&&ln<=Re||ot===Be-1&&ln+st(Be)<=Re){Kt(Be,null);break}else if(ln+ae>Re){Kt(ot-1,ln-gt-Rt+Tt);break}}pe&&st(0)+Rt>Re&&I(null)}},[Re,Et,Tt,Rt,it,ze]);var Ct=At&&!!Ve.length,ft={};Ne!==null&&Ze&&(ft={position:"absolute",left:Ne,top:0});var Ot={prefixCls:w,responsive:Ze,component:Pe,invalidate:Ee},Zt=vt?function(ln,jt){var Be=it(ln,jt);return B.createElement(R.Provider,{key:Be,value:(0,le.Z)((0,le.Z)({},Ot),{},{order:jt,item:ln,itemKey:Be,registerSize:De,display:jt<=Ue})},vt(ln,jt))}:function(ln,jt){var Be=it(ln,jt);return B.createElement(b,(0,h.Z)({},Ot,{order:jt,key:Be,item:ln,renderItem:Pt,itemKey:Be,registerSize:De,display:jt<=Ue}))},tn={order:Ct?Ue:Number.MAX_SAFE_INTEGER,className:"".concat(w,"-rest"),registerSize:Se,display:Ct},Nt=tt||k,un=Te?B.createElement(R.Provider,{value:(0,le.Z)((0,le.Z)({},Ot),tn)},Te(Ve)):B.createElement(b,(0,h.Z)({},Ot,tn),typeof Nt=="function"?Nt(Ve):Nt),gn=B.createElement(xe,(0,h.Z)({className:me()(!Ee&&ue,Xt),style:_t,ref:g},P),ze.map(Zt),Le?un:null,pe&&B.createElement(b,(0,h.Z)({},Ot,{responsive:A,responsiveDisabled:!Ze,order:Ue,className:"".concat(w,"-suffix"),registerSize:nt,display:!0,style:ft}),pe));return A?B.createElement(re.Z,{onResize:mn,disabled:!Ze},gn):gn}var G=B.forwardRef(F);G.displayName="Overflow",G.Item=se,G.RESPONSIVE=Fe,G.INVALIDATE=Z;var J=G,j=J},23425:function(Rn,Gt,E){"use strict";E.d(Gt,{Z:function(){return X}});var h=E(52873),le=E(67711),ne=E(26420),oe=E(98506),B=E(16886),d=E(92310),me=E.n(d),re=E(18929),o=E(10228),y=E(26112),T=E(48736),m=E(59301),_=E(17119),b=[10,20,50,100],L=function(q){var se=q.pageSizeOptions,ie=se===void 0?b:se,Fe=q.locale,Z=q.changeSize,k=q.pageSize,F=q.goButton,G=q.quickGo,J=q.rootPrefixCls,j=q.disabled,v=q.buildOptionText,g=q.showSizeChanger,M=q.sizeChangerRender,ue=m.useState(""),Ie=(0,B.Z)(ue,2),Je=Ie[0],Dt=Ie[1],vt=function(){return!Je||Number.isNaN(Je)?void 0:Number(Je)},Mt=typeof v=="function"?v:function(pe){return"".concat(pe," ").concat(Fe.items_per_page)},Bt=function(N){Dt(N.target.value)},we=function(N){F||Je===""||(Dt(""),!(N.relatedTarget&&(N.relatedTarget.className.indexOf("".concat(J,"-item-link"))>=0||N.relatedTarget.className.indexOf("".concat(J,"-item"))>=0))&&(G==null||G(vt())))},Yt=function(N){Je!==""&&(N.keyCode===o.Z.ENTER||N.type==="click")&&(Dt(""),G==null||G(vt()))},_t=function(){return ie.some(function(N){return N.toString()===k.toString()})?ie:ie.concat([k]).sort(function(N,xe){var Pe=Number.isNaN(Number(N))?0:Number(N),z=Number.isNaN(Number(xe))?0:Number(xe);return Pe-z})},Xt="".concat(J,"-options");if(!g&&!G)return null;var lt=null,tt=null,Te=null;return g&&M&&(lt=M({disabled:j,size:k,onSizeChange:function(N){Z==null||Z(Number(N))},"aria-label":Fe.page_size,className:"".concat(Xt,"-size-changer"),options:_t().map(function(pe){return{label:Mt(pe),value:pe}})})),G&&(F&&(Te=typeof F=="boolean"?m.createElement("button",{type:"button",onClick:Yt,onKeyUp:Yt,disabled:j,className:"".concat(Xt,"-quick-jumper-button")},Fe.jump_to_confirm):m.createElement("span",{onClick:Yt,onKeyUp:Yt},F)),tt=m.createElement("div",{className:"".concat(Xt,"-quick-jumper")},Fe.jump_to,m.createElement("input",{disabled:j,type:"text",value:Je,onChange:Bt,onKeyUp:Yt,onBlur:we,"aria-label":Fe.page}),Fe.page,Te)),m.createElement("li",{className:Xt},lt,tt)},K=L,W=function(q){var se=q.rootPrefixCls,ie=q.page,Fe=q.active,Z=q.className,k=q.showTitle,F=q.onClick,G=q.onKeyPress,J=q.itemRender,j="".concat(se,"-item"),v=me()(j,"".concat(j,"-").concat(ie),(0,h.Z)((0,h.Z)({},"".concat(j,"-active"),Fe),"".concat(j,"-disabled"),!ie),Z),g=function(){F(ie)},M=function(Je){G(Je,F,ie)},ue=J(ie,"page",m.createElement("a",{rel:"nofollow"},ie));return ue?m.createElement("li",{title:k?String(ie):null,className:v,onClick:g,onKeyDown:M,tabIndex:0},ue):null},$=W,O=function(q,se,ie){return ie};function U(){}function R(H){var q=Number(H);return typeof q=="number"&&!Number.isNaN(q)&&isFinite(q)&&Math.floor(q)===q}function x(H,q,se){var ie=typeof H=="undefined"?q:H;return Math.floor((se-1)/ie)+1}var V=function(q){var se=q.prefixCls,ie=se===void 0?"rc-pagination":se,Fe=q.selectPrefixCls,Z=Fe===void 0?"rc-select":Fe,k=q.className,F=q.current,G=q.defaultCurrent,J=G===void 0?1:G,j=q.total,v=j===void 0?0:j,g=q.pageSize,M=q.defaultPageSize,ue=M===void 0?10:M,Ie=q.onChange,Je=Ie===void 0?U:Ie,Dt=q.hideOnSinglePage,vt=q.align,Mt=q.showPrevNextJumpers,Bt=Mt===void 0?!0:Mt,we=q.showQuickJumper,Yt=q.showLessItems,_t=q.showTitle,Xt=_t===void 0?!0:_t,lt=q.onShowSizeChange,tt=lt===void 0?U:lt,Te=q.locale,pe=Te===void 0?_.Z:Te,N=q.style,xe=q.totalBoundaryShowSizeChanger,Pe=xe===void 0?50:xe,z=q.disabled,P=q.simple,ce=q.showTotal,Ce=q.showSizeChanger,de=Ce===void 0?v>Pe:Ce,Q=q.sizeChangerRender,he=q.pageSizeOptions,Oe=q.itemRender,Re=Oe===void 0?O:Oe,qe=q.jumpPrevIcon,Ye=q.jumpNextIcon,Et=q.prevIcon,dt=q.nextIcon,ge=m.useRef(null),Ae=(0,re.Z)(10,{value:g,defaultValue:ue}),at=(0,B.Z)(Ae,2),et=at[0],Qe=at[1],St=(0,re.Z)(1,{value:F,defaultValue:J,postState:function(xn){return Math.max(1,Math.min(xn,x(void 0,et,v)))}}),Tt=(0,B.Z)(St,2),He=Tt[0],Wt=Tt[1],fn=m.useState(He),Rt=(0,B.Z)(fn,2),qt=Rt[0],Ke=Rt[1];(0,m.useEffect)(function(){Ke(He)},[He]);var ke=Je!==U,Ne="current"in q,I=Math.max(1,He-(Yt?3:5)),ee=Math.min(x(void 0,et,v),He+(Yt?3:5));function fe(yn,xn){var je=yn||m.createElement("button",{type:"button","aria-label":xn,className:"".concat(ie,"-item-link")});return typeof yn=="function"&&(je=m.createElement(yn,(0,oe.Z)({},q))),je}function ve(yn){var xn=yn.target.value,je=x(void 0,et,v),Ft;return xn===""?Ft=xn:Number.isNaN(Number(xn))?Ft=qt:xn>=je?Ft=je:Ft=Number(xn),Ft}function ye(yn){return R(yn)&&yn!==He&&R(v)&&v>0}var Ue=v>et?we:!1;function $e(yn){(yn.keyCode===o.Z.UP||yn.keyCode===o.Z.DOWN)&&yn.preventDefault()}function ut(yn){var xn=ve(yn);switch(xn!==qt&&Ke(xn),yn.keyCode){case o.Z.ENTER:w(xn);break;case o.Z.UP:w(xn-1);break;case o.Z.DOWN:w(xn+1);break;default:break}}function At(yn){w(ve(yn))}function Ge(yn){var xn=x(yn,et,v),je=He>xn&&xn!==0?xn:He;Qe(yn),Ke(je),tt==null||tt(He,yn),Wt(je),Je==null||Je(je,yn)}function w(yn){if(ye(yn)&&!z){var xn=x(void 0,et,v),je=yn;return yn>xn?je=xn:yn<1&&(je=1),je!==qt&&Ke(je),Wt(je),Je==null||Je(je,et),je}return He}var ae=He>1,A=He<x(void 0,et,v);function Ze(){ae&&w(He-1)}function Ee(){A&&w(He+1)}function Le(){w(I)}function ze(){w(ee)}function Ve(yn,xn){if(yn.key==="Enter"||yn.charCode===o.Z.ENTER||yn.keyCode===o.Z.ENTER){for(var je=arguments.length,Ft=new Array(je>2?je-2:0),on=2;on<je;on++)Ft[on-2]=arguments[on];xn.apply(void 0,Ft)}}function it(yn){Ve(yn,Ze)}function Pt(yn){Ve(yn,Ee)}function Kt(yn){Ve(yn,Le)}function mn(yn){Ve(yn,ze)}function De(yn){var xn=Re(yn,"prev",fe(Et,"prev page"));return m.isValidElement(xn)?m.cloneElement(xn,{disabled:!ae}):xn}function Se(yn){var xn=Re(yn,"next",fe(dt,"next page"));return m.isValidElement(xn)?m.cloneElement(xn,{disabled:!A}):xn}function nt(yn){(yn.type==="click"||yn.keyCode===o.Z.ENTER)&&w(qt)}var st=null,Ct=(0,y.Z)(q,{aria:!0,data:!0}),ft=ce&&m.createElement("li",{className:"".concat(ie,"-total-text")},ce(v,[v===0?0:(He-1)*et+1,He*et>v?v:He*et])),Ot=null,Zt=x(void 0,et,v);if(Dt&&v<=et)return null;var tn=[],Nt={rootPrefixCls:ie,onClick:w,onKeyPress:Ve,showTitle:Xt,itemRender:Re,page:-1},un=He-1>0?He-1:0,gn=He+1<Zt?He+1:Zt,ln=we&&we.goButton,jt=(0,ne.Z)(P)==="object"?P.readOnly:!P,Be=ln,ot=null;P&&(ln&&(typeof ln=="boolean"?Be=m.createElement("button",{type:"button",onClick:nt,onKeyUp:nt},pe.jump_to_confirm):Be=m.createElement("span",{onClick:nt,onKeyUp:nt},ln),Be=m.createElement("li",{title:Xt?"".concat(pe.jump_to).concat(He,"/").concat(Zt):null,className:"".concat(ie,"-simple-pager")},Be)),ot=m.createElement("li",{title:Xt?"".concat(He,"/").concat(Zt):null,className:"".concat(ie,"-simple-pager")},jt?qt:m.createElement("input",{type:"text","aria-label":pe.jump_to,value:qt,disabled:z,onKeyDown:$e,onKeyUp:ut,onChange:ut,onBlur:At,size:3}),m.createElement("span",{className:"".concat(ie,"-slash")},"/"),Zt));var gt=Yt?1:2;if(Zt<=3+gt*2){Zt||tn.push(m.createElement($,(0,le.Z)({},Nt,{key:"noPager",page:1,className:"".concat(ie,"-item-disabled")})));for(var wt=1;wt<=Zt;wt+=1)tn.push(m.createElement($,(0,le.Z)({},Nt,{key:wt,page:wt,active:He===wt})))}else{var $t=Yt?pe.prev_3:pe.prev_5,rn=Yt?pe.next_3:pe.next_5,cn=Re(I,"jump-prev",fe(qe,"prev page")),En=Re(ee,"jump-next",fe(Ye,"next page"));Bt&&(st=cn?m.createElement("li",{title:Xt?$t:null,key:"prev",onClick:Le,tabIndex:0,onKeyDown:Kt,className:me()("".concat(ie,"-jump-prev"),(0,h.Z)({},"".concat(ie,"-jump-prev-custom-icon"),!!qe))},cn):null,Ot=En?m.createElement("li",{title:Xt?rn:null,key:"next",onClick:ze,tabIndex:0,onKeyDown:mn,className:me()("".concat(ie,"-jump-next"),(0,h.Z)({},"".concat(ie,"-jump-next-custom-icon"),!!Ye))},En):null);var wn=Math.max(1,He-gt),Pn=Math.min(He+gt,Zt);He-1<=gt&&(Pn=1+gt*2),Zt-He<=gt&&(wn=Zt-gt*2);for(var ar=wn;ar<=Pn;ar+=1)tn.push(m.createElement($,(0,le.Z)({},Nt,{key:ar,page:ar,active:He===ar})));if(He-1>=gt*2&&He!==3&&(tn[0]=m.cloneElement(tn[0],{className:me()("".concat(ie,"-item-after-jump-prev"),tn[0].props.className)}),tn.unshift(st)),Zt-He>=gt*2&&He!==Zt-2){var Dn=tn[tn.length-1];tn[tn.length-1]=m.cloneElement(Dn,{className:me()("".concat(ie,"-item-before-jump-next"),Dn.props.className)}),tn.push(Ot)}wn!==1&&tn.unshift(m.createElement($,(0,le.Z)({},Nt,{key:1,page:1}))),Pn!==Zt&&tn.push(m.createElement($,(0,le.Z)({},Nt,{key:Zt,page:Zt})))}var In=De(un);if(In){var Nn=!ae||!Zt;In=m.createElement("li",{title:Xt?pe.prev_page:null,onClick:Ze,tabIndex:Nn?null:0,onKeyDown:it,className:me()("".concat(ie,"-prev"),(0,h.Z)({},"".concat(ie,"-disabled"),Nn)),"aria-disabled":Nn},In)}var zn=Se(gn);if(zn){var Wn,Mn;P?(Wn=!A,Mn=ae?0:null):(Wn=!A||!Zt,Mn=Wn?null:0),zn=m.createElement("li",{title:Xt?pe.next_page:null,onClick:Ee,tabIndex:Mn,onKeyDown:Pt,className:me()("".concat(ie,"-next"),(0,h.Z)({},"".concat(ie,"-disabled"),Wn)),"aria-disabled":Wn},zn)}var On=me()(ie,k,(0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)((0,h.Z)({},"".concat(ie,"-start"),vt==="start"),"".concat(ie,"-center"),vt==="center"),"".concat(ie,"-end"),vt==="end"),"".concat(ie,"-simple"),P),"".concat(ie,"-disabled"),z));return m.createElement("ul",(0,le.Z)({className:On,style:N,ref:ge},Ct),ft,In,P?ot:tn,zn,m.createElement(K,{locale:pe,rootPrefixCls:ie,disabled:z,selectPrefixCls:Z,changeSize:Ge,pageSize:et,pageSizeOptions:he,quickGo:Ue?w:null,goButton:Be,showSizeChanger:de,sizeChangerRender:Q}))},X=V},25930:function(Rn,Gt,E){"use strict";E.d(Gt,{Cd:function(){return ie}});var h=E(67711),le=E(98506),ne=E(33346),oe=E(59301),B=E(92310),d=E.n(B),me={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},re=function(){var k=(0,oe.useRef)([]),F=(0,oe.useRef)(null);return(0,oe.useEffect)(function(){var G=Date.now(),J=!1;k.current.forEach(function(j){if(j){J=!0;var v=j.style;v.transitionDuration=".3s, .3s, .3s, .06s",F.current&&G-F.current<100&&(v.transitionDuration="0s, 0s")}}),J&&(F.current=Date.now())}),k.current},o=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(k){var F=(0,le.Z)((0,le.Z)({},me),k),G=F.className,J=F.percent,j=F.prefixCls,v=F.strokeColor,g=F.strokeLinecap,M=F.strokeWidth,ue=F.style,Ie=F.trailColor,Je=F.trailWidth,Dt=F.transition,vt=(0,ne.Z)(F,o);delete vt.gapPosition;var Mt=Array.isArray(J)?J:[J],Bt=Array.isArray(v)?v:[v],we=re(),Yt=M/2,_t=100-M/2,Xt="M ".concat(g==="round"?Yt:0,",").concat(Yt,`
L `).concat(g==="round"?_t:100,",").concat(Yt),lt="0 0 100 ".concat(M),tt=0;return oe.createElement("svg",(0,h.Z)({className:d()("".concat(j,"-line"),G),viewBox:lt,preserveAspectRatio:"none",style:ue},vt),oe.createElement("path",{className:"".concat(j,"-line-trail"),d:Xt,strokeLinecap:g,stroke:Ie,strokeWidth:Je||M,fillOpacity:"0"}),Mt.map(function(Te,pe){var N=1;switch(g){case"round":N=1-M/100;break;case"square":N=1-M/2/100;break;default:N=1;break}var xe={strokeDasharray:"".concat(Te*N,"px, 100px"),strokeDashoffset:"-".concat(tt,"px"),transition:Dt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Pe=Bt[pe]||Bt[Bt.length-1];return tt+=Te,oe.createElement("path",{key:pe,className:"".concat(j,"-line-path"),d:Xt,strokeLinecap:g,stroke:Pe,strokeWidth:M,fillOpacity:"0",ref:function(P){we[pe]=P},style:xe})}))},T=y,m=E(26420),_=E(16886),b=E(47273),L=0,K=(0,b.Z)();function W(){var Z;return K?(Z=L,L+=1):Z="TEST_OR_SSR",Z}var $=function(Z){var k=oe.useState(),F=(0,_.Z)(k,2),G=F[0],J=F[1];return oe.useEffect(function(){J("rc_progress_".concat(W()))},[]),Z||G},O=function(k){var F=k.bg,G=k.children;return oe.createElement("div",{style:{width:"100%",height:"100%",background:F}},G)};function U(Z,k){return Object.keys(Z).map(function(F){var G=parseFloat(F),J="".concat(Math.floor(G*k),"%");return"".concat(Z[F]," ").concat(J)})}var R=oe.forwardRef(function(Z,k){var F=Z.prefixCls,G=Z.color,J=Z.gradientId,j=Z.radius,v=Z.style,g=Z.ptg,M=Z.strokeLinecap,ue=Z.strokeWidth,Ie=Z.size,Je=Z.gapDegree,Dt=G&&(0,m.Z)(G)==="object",vt=Dt?"#FFF":void 0,Mt=Ie/2,Bt=oe.createElement("circle",{className:"".concat(F,"-circle-path"),r:j,cx:Mt,cy:Mt,stroke:vt,strokeLinecap:M,strokeWidth:ue,opacity:g===0?0:1,style:v,ref:k});if(!Dt)return Bt;var we="".concat(J,"-conic"),Yt=Je?"".concat(180+Je/2,"deg"):"0deg",_t=U(G,(360-Je)/360),Xt=U(G,1),lt="conic-gradient(from ".concat(Yt,", ").concat(_t.join(", "),")"),tt="linear-gradient(to ".concat(Je?"bottom":"top",", ").concat(Xt.join(", "),")");return oe.createElement(oe.Fragment,null,oe.createElement("mask",{id:we},Bt),oe.createElement("foreignObject",{x:0,y:0,width:Ie,height:Ie,mask:"url(#".concat(we,")")},oe.createElement(O,{bg:tt},oe.createElement(O,{bg:lt}))))}),x=R,V=100,X=function(k,F,G,J,j,v,g,M,ue,Ie){var Je=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Dt=G/100*360*((360-v)/360),vt=v===0?0:{bottom:0,top:180,left:90,right:-90}[g],Mt=(100-J)/100*F;ue==="round"&&J!==100&&(Mt+=Ie/2,Mt>=F&&(Mt=F-.01));var Bt=V/2;return{stroke:typeof M=="string"?M:void 0,strokeDasharray:"".concat(F,"px ").concat(k),strokeDashoffset:Mt+Je,transform:"rotate(".concat(j+Dt+vt,"deg)"),transformOrigin:"".concat(Bt,"px ").concat(Bt,"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}},H=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function q(Z){var k=Z!=null?Z:[];return Array.isArray(k)?k:[k]}var se=function(k){var F=(0,le.Z)((0,le.Z)({},me),k),G=F.id,J=F.prefixCls,j=F.steps,v=F.strokeWidth,g=F.trailWidth,M=F.gapDegree,ue=M===void 0?0:M,Ie=F.gapPosition,Je=F.trailColor,Dt=F.strokeLinecap,vt=F.style,Mt=F.className,Bt=F.strokeColor,we=F.percent,Yt=(0,ne.Z)(F,H),_t=V/2,Xt=$(G),lt="".concat(Xt,"-gradient"),tt=_t-v/2,Te=Math.PI*2*tt,pe=ue>0?90+ue/2:-90,N=Te*((360-ue)/360),xe=(0,m.Z)(j)==="object"?j:{count:j,gap:2},Pe=xe.count,z=xe.gap,P=q(we),ce=q(Bt),Ce=ce.find(function(Ye){return Ye&&(0,m.Z)(Ye)==="object"}),de=Ce&&(0,m.Z)(Ce)==="object",Q=de?"butt":Dt,he=X(Te,N,0,100,pe,ue,Ie,Je,Q,v),Oe=re(),Re=function(){var Et=0;return P.map(function(dt,ge){var Ae=ce[ge]||ce[ce.length-1],at=X(Te,N,Et,dt,pe,ue,Ie,Ae,Q,v);return Et+=dt,oe.createElement(x,{key:ge,color:Ae,ptg:dt,radius:tt,prefixCls:J,gradientId:lt,style:at,strokeLinecap:Q,strokeWidth:v,gapDegree:ue,ref:function(Qe){Oe[ge]=Qe},size:V})}).reverse()},qe=function(){var Et=Math.round(Pe*(P[0]/100)),dt=100/Pe,ge=0;return new Array(Pe).fill(null).map(function(Ae,at){var et=at<=Et-1?ce[0]:Je,Qe=et&&(0,m.Z)(et)==="object"?"url(#".concat(lt,")"):void 0,St=X(Te,N,ge,dt,pe,ue,Ie,et,"butt",v,z);return ge+=(N-St.strokeDashoffset+z)*100/N,oe.createElement("circle",{key:at,className:"".concat(J,"-circle-path"),r:tt,cx:_t,cy:_t,stroke:Qe,strokeWidth:v,opacity:1,style:St,ref:function(He){Oe[at]=He}})})};return oe.createElement("svg",(0,h.Z)({className:d()("".concat(J,"-circle"),Mt),viewBox:"0 0 ".concat(V," ").concat(V),style:vt,id:G,role:"presentation"},Yt),!Pe&&oe.createElement("circle",{className:"".concat(J,"-circle-trail"),r:tt,cx:_t,cy:_t,stroke:Je,strokeLinecap:Q,strokeWidth:g||v,style:he}),Pe?qe():Re())},ie=se,Fe={Line:T,Circle:ie}},738:function(Rn,Gt,E){"use strict";E.d(Gt,{Z:function(){return U}});var h=E(67711),le=E(52873),ne=E(16886),oe=E(33346),B=E(92310),d=E.n(B),me=E(18929),re=E(10228),o=E(26112),y=E(59301);function T(R,x){var V=R.disabled,X=R.prefixCls,H=R.character,q=R.characterRender,se=R.index,ie=R.count,Fe=R.value,Z=R.allowHalf,k=R.focused,F=R.onHover,G=R.onClick,J=function(Dt){F(Dt,se)},j=function(Dt){G(Dt,se)},v=function(Dt){Dt.keyCode===re.Z.ENTER&&G(Dt,se)},g=se+1,M=new Set([X]);Fe===0&&se===0&&k?M.add("".concat(X,"-focused")):Z&&Fe+.5>=g&&Fe<g?(M.add("".concat(X,"-half")),M.add("".concat(X,"-active")),k&&M.add("".concat(X,"-focused"))):(g<=Fe?M.add("".concat(X,"-full")):M.add("".concat(X,"-zero")),g===Fe&&k&&M.add("".concat(X,"-focused")));var ue=typeof H=="function"?H(R):H,Ie=y.createElement("li",{className:d()(Array.from(M)),ref:x},y.createElement("div",{onClick:V?null:j,onKeyDown:V?null:v,onMouseMove:V?null:J,role:"radio","aria-checked":Fe>se?"true":"false","aria-posinset":se+1,"aria-setsize":ie,tabIndex:V?-1:0},y.createElement("div",{className:"".concat(X,"-first")},ue),y.createElement("div",{className:"".concat(X,"-second")},ue)));return q&&(Ie=q(Ie,R)),Ie}var m=y.forwardRef(T);function _(){var R=y.useRef({});function x(X){return R.current[X]}function V(X){return function(H){R.current[X]=H}}return[x,V]}function b(R){var x=R.pageXOffset,V="scrollLeft";if(typeof x!="number"){var X=R.document;x=X.documentElement[V],typeof x!="number"&&(x=X.body[V])}return x}function L(R){var x,V,X=R.ownerDocument,H=X.body,q=X&&X.documentElement,se=R.getBoundingClientRect();return x=se.left,V=se.top,x-=q.clientLeft||H.clientLeft||0,V-=q.clientTop||H.clientTop||0,{left:x,top:V}}function K(R){var x=L(R),V=R.ownerDocument,X=V.defaultView||V.parentWindow;return x.left+=b(X),x.left}var W=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function $(R,x){var V=R.prefixCls,X=V===void 0?"rc-rate":V,H=R.className,q=R.defaultValue,se=R.value,ie=R.count,Fe=ie===void 0?5:ie,Z=R.allowHalf,k=Z===void 0?!1:Z,F=R.allowClear,G=F===void 0?!0:F,J=R.keyboard,j=J===void 0?!0:J,v=R.character,g=v===void 0?"\u2605":v,M=R.characterRender,ue=R.disabled,Ie=R.direction,Je=Ie===void 0?"ltr":Ie,Dt=R.tabIndex,vt=Dt===void 0?0:Dt,Mt=R.autoFocus,Bt=R.onHoverChange,we=R.onChange,Yt=R.onFocus,_t=R.onBlur,Xt=R.onKeyDown,lt=R.onMouseLeave,tt=(0,oe.Z)(R,W),Te=_(),pe=(0,ne.Z)(Te,2),N=pe[0],xe=pe[1],Pe=y.useRef(null),z=function(){if(!ue){var I;(I=Pe.current)===null||I===void 0||I.focus()}};y.useImperativeHandle(x,function(){return{focus:z,blur:function(){if(!ue){var I;(I=Pe.current)===null||I===void 0||I.blur()}}}});var P=(0,me.Z)(q||0,{value:se}),ce=(0,ne.Z)(P,2),Ce=ce[0],de=ce[1],Q=(0,me.Z)(null),he=(0,ne.Z)(Q,2),Oe=he[0],Re=he[1],qe=function(I,ee){var fe=Je==="rtl",ve=I+1;if(k){var ye=N(I),Ue=K(ye),$e=ye.clientWidth;(fe&&ee-Ue>$e/2||!fe&&ee-Ue<$e/2)&&(ve-=.5)}return ve},Ye=function(I){de(I),we==null||we(I)},Et=y.useState(!1),dt=(0,ne.Z)(Et,2),ge=dt[0],Ae=dt[1],at=function(){Ae(!0),Yt==null||Yt()},et=function(){Ae(!1),_t==null||_t()},Qe=y.useState(null),St=(0,ne.Z)(Qe,2),Tt=St[0],He=St[1],Wt=function(I,ee){var fe=qe(ee,I.pageX);fe!==Oe&&(He(fe),Re(null)),Bt==null||Bt(fe)},fn=function(I){ue||(He(null),Re(null),Bt==null||Bt(void 0)),I&&(lt==null||lt(I))},Rt=function(I,ee){var fe=qe(ee,I.pageX),ve=!1;G&&(ve=fe===Ce),fn(),Ye(ve?0:fe),Re(ve?fe:null)},qt=function(I){var ee=I.keyCode,fe=Je==="rtl",ve=k?.5:1;j&&(ee===re.Z.RIGHT&&Ce<Fe&&!fe?(Ye(Ce+ve),I.preventDefault()):ee===re.Z.LEFT&&Ce>0&&!fe||ee===re.Z.RIGHT&&Ce>0&&fe?(Ye(Ce-ve),I.preventDefault()):ee===re.Z.LEFT&&Ce<Fe&&fe&&(Ye(Ce+ve),I.preventDefault())),Xt==null||Xt(I)};y.useEffect(function(){Mt&&!ue&&z()},[]);var Ke=new Array(Fe).fill(0).map(function(Ne,I){return y.createElement(m,{ref:xe(I),index:I,count:Fe,disabled:ue,prefixCls:"".concat(X,"-star"),allowHalf:k,value:Tt===null?Ce:Tt,onClick:Rt,onHover:Wt,key:Ne||I,character:g,characterRender:M,focused:ge})}),ke=d()(X,H,(0,le.Z)((0,le.Z)({},"".concat(X,"-disabled"),ue),"".concat(X,"-rtl"),Je==="rtl"));return y.createElement("ul",(0,h.Z)({className:ke,onMouseLeave:fn,tabIndex:ue?-1:vt,onFocus:ue?null:at,onBlur:ue?null:et,onKeyDown:ue?null:qt,ref:Pe},(0,o.Z)(tt,{aria:!0,data:!0,attr:!0})),Ke)}var O=y.forwardRef($),U=O},29301:function(Rn,Gt,E){"use strict";E.d(Gt,{Z:function(){return Z}});var h=E(67711),le=E(59301),ne=E(11592),oe=E(48736),B=E(98506),d=E(26420),me=E(76846),re=E(8654),o=le.createContext(null);function y(k){var F=k.children,G=k.onBatchResize,J=le.useRef(0),j=le.useRef([]),v=le.useContext(o),g=le.useCallback(function(M,ue,Ie){J.current+=1;var Je=J.current;j.current.push({size:M,element:ue,data:Ie}),Promise.resolve().then(function(){Je===J.current&&(G==null||G(j.current),j.current=[])}),v==null||v(M,ue,Ie)},[G,v]);return le.createElement(o.Provider,{value:g},F)}var T=E(76374),m=new Map;function _(k){k.forEach(function(F){var G,J=F.target;(G=m.get(J))===null||G===void 0||G.forEach(function(j){return j(J)})})}var b=new T.Z(_),L=null,K=null;function W(k,F){m.has(k)||(m.set(k,new Set),b.observe(k)),m.get(k).add(F)}function $(k,F){m.has(k)&&(m.get(k).delete(F),m.get(k).size||(b.unobserve(k),m.delete(k)))}var O=E(42573),U=E(58698),R=E(74700),x=E(45080),V=function(k){(0,R.Z)(G,k);var F=(0,x.Z)(G);function G(){return(0,O.Z)(this,G),F.apply(this,arguments)}return(0,U.Z)(G,[{key:"render",value:function(){return this.props.children}}]),G}(le.Component);function X(k,F){var G=k.children,J=k.disabled,j=le.useRef(null),v=le.useRef(null),g=le.useContext(o),M=typeof G=="function",ue=M?G(j):G,Ie=le.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Je=!M&&le.isValidElement(ue)&&(0,re.Yr)(ue),Dt=Je?(0,re.C4)(ue):null,vt=(0,re.x1)(Dt,j),Mt=function(){var _t;return(0,me.ZP)(j.current)||(j.current&&(0,d.Z)(j.current)==="object"?(0,me.ZP)((_t=j.current)===null||_t===void 0?void 0:_t.nativeElement):null)||(0,me.ZP)(v.current)};le.useImperativeHandle(F,function(){return Mt()});var Bt=le.useRef(k);Bt.current=k;var we=le.useCallback(function(Yt){var _t=Bt.current,Xt=_t.onResize,lt=_t.data,tt=Yt.getBoundingClientRect(),Te=tt.width,pe=tt.height,N=Yt.offsetWidth,xe=Yt.offsetHeight,Pe=Math.floor(Te),z=Math.floor(pe);if(Ie.current.width!==Pe||Ie.current.height!==z||Ie.current.offsetWidth!==N||Ie.current.offsetHeight!==xe){var P={width:Pe,height:z,offsetWidth:N,offsetHeight:xe};Ie.current=P;var ce=N===Math.round(Te)?Te:N,Ce=xe===Math.round(pe)?pe:xe,de=(0,B.Z)((0,B.Z)({},P),{},{offsetWidth:ce,offsetHeight:Ce});g==null||g(de,Yt,lt),Xt&&Promise.resolve().then(function(){Xt(de,Yt)})}},[]);return le.useEffect(function(){var Yt=Mt();return Yt&&!J&&W(Yt,we),function(){return $(Yt,we)}},[j.current,J]),le.createElement(V,{ref:v},Je?le.cloneElement(ue,{ref:vt}):ue)}var H=le.forwardRef(X),q=H,se="rc-observer-key";function ie(k,F){var G=k.children,J=typeof G=="function"?[G]:(0,ne.Z)(G);return J.map(function(j,v){var g=(j==null?void 0:j.key)||"".concat(se,"-").concat(v);return le.createElement(q,(0,h.Z)({},k,{key:g,ref:v===0?F:void 0}),j)})}var Fe=le.forwardRef(ie);Fe.Collection=y;var Z=Fe},6551:function(Rn,Gt,E){"use strict";E.d(Gt,{ZP:function(){return me}});var h=E(16886),le=E(59301),ne=E(47273),oe=0,B=(0,ne.Z)();function d(){var re;return B?(re=oe,oe+=1):re="TEST_OR_SSR",re}function me(re){var o=le.useState(),y=(0,h.Z)(o,2),T=y[0],m=y[1];return le.useEffect(function(){m("rc_select_".concat(d()))},[]),re||T}},37463:function(Rn,Gt,E){"use strict";E.d(Gt,{Ac:function(){return Ae},Xo:function(){return et},Wx:function(){return St},ZP:function(){return mn},lk:function(){return U}});var h=E(67711),le=E(15142),ne=E(52873),oe=E(98506),B=E(16886),d=E(33346),me=E(26420),re=E(18929),o=E(48736),y=E(59301),T=E(92310),m=E.n(T),_=E(34280),b=E(49658),L=E(8654),K=function(Se){var nt=Se.className,st=Se.customizeIcon,Ct=Se.customizeIconProps,ft=Se.children,Ot=Se.onMouseDown,Zt=Se.onClick,tn=typeof st=="function"?st(Ct):st;return y.createElement("span",{className:nt,onMouseDown:function(un){un.preventDefault(),Ot==null||Ot(un)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Zt,"aria-hidden":!0},tn!==void 0?tn:y.createElement("span",{className:m()(nt.split(/\s+/).map(function(Nt){return"".concat(Nt,"-icon")}))},ft))},W=K,$=function(Se,nt,st,Ct,ft){var Ot=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Zt=arguments.length>6?arguments[6]:void 0,tn=arguments.length>7?arguments[7]:void 0,Nt=y.useMemo(function(){if((0,me.Z)(Ct)==="object")return Ct.clearIcon;if(ft)return ft},[Ct,ft]),un=y.useMemo(function(){return!!(!Ot&&Ct&&(st.length||Zt)&&!(tn==="combobox"&&Zt===""))},[Ct,Ot,st.length,Zt,tn]);return{allowClear:un,clearIcon:y.createElement(W,{className:"".concat(Se,"-clear"),onMouseDown:nt,customizeIcon:Nt},"\xD7")}},O=y.createContext(null);function U(){return y.useContext(O)}function R(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Se=y.useState(!1),nt=(0,B.Z)(Se,2),st=nt[0],Ct=nt[1],ft=y.useRef(null),Ot=function(){window.clearTimeout(ft.current)};y.useEffect(function(){return Ot},[]);var Zt=function(Nt,un){Ot(),ft.current=window.setTimeout(function(){Ct(Nt),un&&un()},De)};return[st,Zt,Ot]}function x(){var De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Se=y.useRef(null),nt=y.useRef(null);y.useEffect(function(){return function(){window.clearTimeout(nt.current)}},[]);function st(Ct){(Ct||Se.current===null)&&(Se.current=Ct),window.clearTimeout(nt.current),nt.current=window.setTimeout(function(){Se.current=null},De)}return[function(){return Se.current},st]}function V(De,Se,nt,st){var Ct=y.useRef(null);Ct.current={open:Se,triggerOpen:nt,customizedTrigger:st},y.useEffect(function(){function ft(Ot){var Zt;if(!((Zt=Ct.current)!==null&&Zt!==void 0&&Zt.customizedTrigger)){var tn=Ot.target;tn.shadowRoot&&Ot.composed&&(tn=Ot.composedPath()[0]||tn),Ct.current.open&&De().filter(function(Nt){return Nt}).every(function(Nt){return!Nt.contains(tn)&&Nt!==tn})&&Ct.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ft),function(){return window.removeEventListener("mousedown",ft)}},[])}var X=E(10228);function H(De){return De&&![X.Z.ESC,X.Z.SHIFT,X.Z.BACKSPACE,X.Z.TAB,X.Z.WIN_KEY,X.Z.ALT,X.Z.META,X.Z.WIN_KEY_RIGHT,X.Z.CTRL,X.Z.SEMICOLON,X.Z.EQUALS,X.Z.CAPS_LOCK,X.Z.CONTEXT_MENU,X.Z.F1,X.Z.F2,X.Z.F3,X.Z.F4,X.Z.F5,X.Z.F6,X.Z.F7,X.Z.F8,X.Z.F9,X.Z.F10,X.Z.F11,X.Z.F12].includes(De)}var q=E(26112),se=E(11780);function ie(De,Se,nt){var st=(0,oe.Z)((0,oe.Z)({},De),nt?Se:{});return Object.keys(Se).forEach(function(Ct){var ft=Se[Ct];typeof ft=="function"&&(st[Ct]=function(){for(var Ot,Zt=arguments.length,tn=new Array(Zt),Nt=0;Nt<Zt;Nt++)tn[Nt]=arguments[Nt];return ft.apply(void 0,tn),(Ot=De[Ct])===null||Ot===void 0?void 0:Ot.call.apply(Ot,[De].concat(tn))})}),st}var Fe=ie,Z=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],k=function(Se,nt){var st=Se.prefixCls,Ct=Se.id,ft=Se.inputElement,Ot=Se.autoFocus,Zt=Se.autoComplete,tn=Se.editable,Nt=Se.activeDescendantId,un=Se.value,gn=Se.open,ln=Se.attrs,jt=(0,d.Z)(Se,Z),Be=ft||y.createElement("input",null),ot=Be,gt=ot.ref,wt=ot.props;return(0,o.Kp)(!("maxLength"in Be.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Be=y.cloneElement(Be,(0,oe.Z)((0,oe.Z)((0,oe.Z)({type:"search"},Fe(jt,wt,!0)),{},{id:Ct,ref:(0,L.sQ)(nt,gt),autoComplete:Zt||"off",autoFocus:Ot,className:m()("".concat(st,"-selection-search-input"),wt==null?void 0:wt.className),role:"combobox","aria-expanded":gn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ct,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ct,"_list"),"aria-activedescendant":gn?Nt:void 0},ln),{},{value:tn?un:"",readOnly:!tn,unselectable:tn?null:"on",style:(0,oe.Z)((0,oe.Z)({},wt.style),{},{opacity:tn?null:0})})),Be},F=y.forwardRef(k),G=F;function J(De){return Array.isArray(De)?De:De!==void 0?[De]:[]}var j=typeof window!="undefined"&&window.document&&window.document.documentElement,v=j;function g(De){return De!=null}function M(De){return!De&&De!==0}function ue(De){return["string","number"].includes((0,me.Z)(De))}function Ie(De){var Se=void 0;return De&&(ue(De.title)?Se=De.title.toString():ue(De.label)&&(Se=De.label.toString())),Se}function Je(De,Se){v?y.useLayoutEffect(De,Se):y.useEffect(De,Se)}function Dt(De){var Se;return(Se=De.key)!==null&&Se!==void 0?Se:De.value}var vt=function(Se){Se.preventDefault(),Se.stopPropagation()},Mt=function(Se){var nt=Se.id,st=Se.prefixCls,Ct=Se.values,ft=Se.open,Ot=Se.searchValue,Zt=Se.autoClearSearchValue,tn=Se.inputRef,Nt=Se.placeholder,un=Se.disabled,gn=Se.mode,ln=Se.showSearch,jt=Se.autoFocus,Be=Se.autoComplete,ot=Se.activeDescendantId,gt=Se.tabIndex,wt=Se.removeIcon,$t=Se.maxTagCount,rn=Se.maxTagTextLength,cn=Se.maxTagPlaceholder,En=cn===void 0?function(yt){return"+ ".concat(yt.length," ...")}:cn,wn=Se.tagRender,Pn=Se.onToggleOpen,ar=Se.onRemove,Dn=Se.onInputChange,In=Se.onInputPaste,Nn=Se.onInputKeyDown,zn=Se.onInputMouseDown,Wn=Se.onInputCompositionStart,Mn=Se.onInputCompositionEnd,On=Se.onInputBlur,yn=y.useRef(null),xn=(0,y.useState)(0),je=(0,B.Z)(xn,2),Ft=je[0],on=je[1],pn=(0,y.useState)(!1),Un=(0,B.Z)(pn,2),_e=Un[0],ct=Un[1],We="".concat(st,"-selection"),ht=ft||gn==="multiple"&&Zt===!1||gn==="tags"?Ot:"",bt=gn==="tags"||gn==="multiple"&&Zt===!1||ln&&(ft||_e);Je(function(){on(yn.current.scrollWidth)},[ht]);var kt=function(Lt,Vt,dn,Cn,bn){return y.createElement("span",{title:Ie(Lt),className:m()("".concat(We,"-item"),(0,ne.Z)({},"".concat(We,"-item-disabled"),dn))},y.createElement("span",{className:"".concat(We,"-item-content")},Vt),Cn&&y.createElement(W,{className:"".concat(We,"-item-remove"),onMouseDown:vt,onClick:bn,customizeIcon:wt},"\xD7"))},nn=function(Lt,Vt,dn,Cn,bn,Bn){var Yn=function(Hn){vt(Hn),Pn(!ft)};return y.createElement("span",{onMouseDown:Yn},wn({label:Vt,value:Lt,disabled:dn,closable:Cn,onClose:bn,isMaxTag:!!Bn}))},Qt=function(Lt){var Vt=Lt.disabled,dn=Lt.label,Cn=Lt.value,bn=!un&&!Vt,Bn=dn;if(typeof rn=="number"&&(typeof dn=="string"||typeof dn=="number")){var Yn=String(Bn);Yn.length>rn&&(Bn="".concat(Yn.slice(0,rn),"..."))}var Zn=function(kn){kn&&kn.stopPropagation(),ar(Lt)};return typeof wn=="function"?nn(Cn,Bn,Vt,bn,Zn):kt(Lt,Bn,Vt,bn,Zn)},zt=function(Lt){if(!Ct.length)return null;var Vt=typeof En=="function"?En(Lt):En;return typeof wn=="function"?nn(void 0,Vt,!1,!1,void 0,!0):kt({title:Vt},Vt,!1)},rt=y.createElement("div",{className:"".concat(We,"-search"),style:{width:Ft},onFocus:function(){ct(!0)},onBlur:function(){ct(!1)}},y.createElement(G,{ref:tn,open:ft,prefixCls:st,id:nt,inputElement:null,disabled:un,autoFocus:jt,autoComplete:Be,editable:bt,activeDescendantId:ot,value:ht,onKeyDown:Nn,onMouseDown:zn,onChange:Dn,onPaste:In,onCompositionStart:Wn,onCompositionEnd:Mn,onBlur:On,tabIndex:gt,attrs:(0,q.Z)(Se,!0)}),y.createElement("span",{ref:yn,className:"".concat(We,"-search-mirror"),"aria-hidden":!0},ht,"\xA0")),pt=y.createElement(se.Z,{prefixCls:"".concat(We,"-overflow"),data:Ct,renderItem:Qt,renderRest:zt,suffix:rt,itemKey:Dt,maxCount:$t});return y.createElement("span",{className:"".concat(We,"-wrap")},pt,!Ct.length&&!ht&&y.createElement("span",{className:"".concat(We,"-placeholder")},Nt))},Bt=Mt,we=function(Se){var nt=Se.inputElement,st=Se.prefixCls,Ct=Se.id,ft=Se.inputRef,Ot=Se.disabled,Zt=Se.autoFocus,tn=Se.autoComplete,Nt=Se.activeDescendantId,un=Se.mode,gn=Se.open,ln=Se.values,jt=Se.placeholder,Be=Se.tabIndex,ot=Se.showSearch,gt=Se.searchValue,wt=Se.activeValue,$t=Se.maxLength,rn=Se.onInputKeyDown,cn=Se.onInputMouseDown,En=Se.onInputChange,wn=Se.onInputPaste,Pn=Se.onInputCompositionStart,ar=Se.onInputCompositionEnd,Dn=Se.onInputBlur,In=Se.title,Nn=y.useState(!1),zn=(0,B.Z)(Nn,2),Wn=zn[0],Mn=zn[1],On=un==="combobox",yn=On||ot,xn=ln[0],je=gt||"";On&&wt&&!Wn&&(je=wt),y.useEffect(function(){On&&Mn(!1)},[On,wt]);var Ft=un!=="combobox"&&!gn&&!ot?!1:!!je,on=In===void 0?Ie(xn):In,pn=y.useMemo(function(){return xn?null:y.createElement("span",{className:"".concat(st,"-selection-placeholder"),style:Ft?{visibility:"hidden"}:void 0},jt)},[xn,Ft,jt,st]);return y.createElement("span",{className:"".concat(st,"-selection-wrap")},y.createElement("span",{className:"".concat(st,"-selection-search")},y.createElement(G,{ref:ft,prefixCls:st,id:Ct,open:gn,inputElement:nt,disabled:Ot,autoFocus:Zt,autoComplete:tn,editable:yn,activeDescendantId:Nt,value:je,onKeyDown:rn,onMouseDown:cn,onChange:function(_e){Mn(!0),En(_e)},onPaste:wn,onCompositionStart:Pn,onCompositionEnd:ar,onBlur:Dn,tabIndex:Be,attrs:(0,q.Z)(Se,!0),maxLength:On?$t:void 0})),!On&&xn?y.createElement("span",{className:"".concat(st,"-selection-item"),title:on,style:Ft?{visibility:"hidden"}:void 0},xn.label):null,pn)},Yt=we,_t=function(Se,nt){var st=(0,y.useRef)(null),Ct=(0,y.useRef)(!1),ft=Se.prefixCls,Ot=Se.open,Zt=Se.mode,tn=Se.showSearch,Nt=Se.tokenWithEnter,un=Se.disabled,gn=Se.prefix,ln=Se.autoClearSearchValue,jt=Se.onSearch,Be=Se.onSearchSubmit,ot=Se.onToggleOpen,gt=Se.onInputKeyDown,wt=Se.onInputBlur,$t=Se.domRef;y.useImperativeHandle(nt,function(){return{focus:function(on){st.current.focus(on)},blur:function(){st.current.blur()}}});var rn=x(0),cn=(0,B.Z)(rn,2),En=cn[0],wn=cn[1],Pn=function(on){var pn=on.which,Un=st.current instanceof HTMLTextAreaElement;!Un&&Ot&&(pn===X.Z.UP||pn===X.Z.DOWN)&&on.preventDefault(),gt&&gt(on),pn===X.Z.ENTER&&Zt==="tags"&&!Ct.current&&!Ot&&(Be==null||Be(on.target.value)),!(Un&&!Ot&&~[X.Z.UP,X.Z.DOWN,X.Z.LEFT,X.Z.RIGHT].indexOf(pn))&&H(pn)&&ot(!0)},ar=function(){wn(!0)},Dn=(0,y.useRef)(null),In=function(on){jt(on,!0,Ct.current)!==!1&&ot(!0)},Nn=function(){Ct.current=!0},zn=function(on){Ct.current=!1,Zt!=="combobox"&&In(on.target.value)},Wn=function(on){var pn=on.target.value;if(Nt&&Dn.current&&/[\r\n]/.test(Dn.current)){var Un=Dn.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");pn=pn.replace(Un,Dn.current)}Dn.current=null,In(pn)},Mn=function(on){var pn=on.clipboardData,Un=pn==null?void 0:pn.getData("text");Dn.current=Un||""},On=function(on){var pn=on.target;if(pn!==st.current){var Un=document.body.style.msTouchAction!==void 0;Un?setTimeout(function(){st.current.focus()}):st.current.focus()}},yn=function(on){var pn=En();on.target!==st.current&&!pn&&!(Zt==="combobox"&&un)&&on.preventDefault(),(Zt!=="combobox"&&(!tn||!pn)||!Ot)&&(Ot&&ln!==!1&&jt("",!0,!1),ot())},xn={inputRef:st,onInputKeyDown:Pn,onInputMouseDown:ar,onInputChange:Wn,onInputPaste:Mn,onInputCompositionStart:Nn,onInputCompositionEnd:zn,onInputBlur:wt},je=Zt==="multiple"||Zt==="tags"?y.createElement(Bt,(0,h.Z)({},Se,xn)):y.createElement(Yt,(0,h.Z)({},Se,xn));return y.createElement("div",{ref:$t,className:"".concat(ft,"-selector"),onClick:On,onMouseDown:yn},gn&&y.createElement("div",{className:"".concat(ft,"-prefix")},gn),je)},Xt=y.forwardRef(_t),lt=Xt,tt=E(65030),Te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],pe=function(Se){var nt=Se===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:nt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:nt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:nt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:nt,adjustY:1},htmlRegion:"scroll"}}},N=function(Se,nt){var st=Se.prefixCls,Ct=Se.disabled,ft=Se.visible,Ot=Se.children,Zt=Se.popupElement,tn=Se.animation,Nt=Se.transitionName,un=Se.dropdownStyle,gn=Se.dropdownClassName,ln=Se.direction,jt=ln===void 0?"ltr":ln,Be=Se.placement,ot=Se.builtinPlacements,gt=Se.dropdownMatchSelectWidth,wt=Se.dropdownRender,$t=Se.dropdownAlign,rn=Se.getPopupContainer,cn=Se.empty,En=Se.getTriggerDOMNode,wn=Se.onPopupVisibleChange,Pn=Se.onPopupMouseEnter,ar=(0,d.Z)(Se,Te),Dn="".concat(st,"-dropdown"),In=Zt;wt&&(In=wt(Zt));var Nn=y.useMemo(function(){return ot||pe(gt)},[ot,gt]),zn=tn?"".concat(Dn,"-").concat(tn):Nt,Wn=typeof gt=="number",Mn=y.useMemo(function(){return Wn?null:gt===!1?"minWidth":"width"},[gt,Wn]),On=un;Wn&&(On=(0,oe.Z)((0,oe.Z)({},On),{},{width:gt}));var yn=y.useRef(null);return y.useImperativeHandle(nt,function(){return{getPopupElement:function(){var je;return(je=yn.current)===null||je===void 0?void 0:je.popupElement}}}),y.createElement(tt.Z,(0,h.Z)({},ar,{showAction:wn?["click"]:[],hideAction:wn?["click"]:[],popupPlacement:Be||(jt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Nn,prefixCls:Dn,popupTransitionName:zn,popup:y.createElement("div",{onMouseEnter:Pn},In),ref:yn,stretch:Mn,popupAlign:$t,popupVisible:ft,getPopupContainer:rn,popupClassName:m()(gn,(0,ne.Z)({},"".concat(Dn,"-empty"),cn)),popupStyle:On,getTriggerDOMNode:En,onPopupVisibleChange:wn}),Ot)},xe=y.forwardRef(N),Pe=xe,z=E(57879);function P(De,Se){var nt=De.key,st;return"value"in De&&(st=De.value),nt!=null?nt:st!==void 0?st:"rc-index-key-".concat(Se)}function ce(De){return typeof De!="undefined"&&!Number.isNaN(De)}function Ce(De,Se){var nt=De||{},st=nt.label,Ct=nt.value,ft=nt.options,Ot=nt.groupLabel,Zt=st||(Se?"children":"label");return{label:Zt,value:Ct||"value",options:ft||"options",groupLabel:Ot||Zt}}function de(De){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nt=Se.fieldNames,st=Se.childrenAsData,Ct=[],ft=Ce(nt,!1),Ot=ft.label,Zt=ft.value,tn=ft.options,Nt=ft.groupLabel;function un(gn,ln){Array.isArray(gn)&&gn.forEach(function(jt){if(ln||!(tn in jt)){var Be=jt[Zt];Ct.push({key:P(jt,Ct.length),groupOption:ln,data:jt,label:jt[Ot],value:Be})}else{var ot=jt[Nt];ot===void 0&&st&&(ot=jt.label),Ct.push({key:P(jt,Ct.length),group:!0,data:jt,label:ot}),un(jt[tn],!0)}})}return un(De,!1),Ct}function Q(De){var Se=(0,oe.Z)({},De);return"props"in Se||Object.defineProperty(Se,"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`."),Se}}),Se}var he=function(Se,nt,st){if(!nt||!nt.length)return null;var Ct=!1,ft=function Zt(tn,Nt){var un=(0,z.Z)(Nt),gn=un[0],ln=un.slice(1);if(!gn)return[tn];var jt=tn.split(gn);return Ct=Ct||jt.length>1,jt.reduce(function(Be,ot){return[].concat((0,le.Z)(Be),(0,le.Z)(Zt(ot,ln)))},[]).filter(Boolean)},Ot=ft(Se,nt);return Ct?typeof st!="undefined"?Ot.slice(0,st):Ot:null},Oe=y.createContext(null),Re=Oe;function qe(De){var Se=De.visible,nt=De.values;if(!Se)return null;var st=50;return y.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(nt.slice(0,st).map(function(Ct){var ft=Ct.label,Ot=Ct.value;return["number","string"].includes((0,me.Z)(ft))?ft:Ot}).join(", ")),nt.length>st?", ...":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"],Et=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],dt=function(Se){return Se==="tags"||Se==="multiple"},ge=y.forwardRef(function(De,Se){var nt,st=De.id,Ct=De.prefixCls,ft=De.className,Ot=De.showSearch,Zt=De.tagRender,tn=De.direction,Nt=De.omitDomProps,un=De.displayValues,gn=De.onDisplayValuesChange,ln=De.emptyOptions,jt=De.notFoundContent,Be=jt===void 0?"Not Found":jt,ot=De.onClear,gt=De.mode,wt=De.disabled,$t=De.loading,rn=De.getInputElement,cn=De.getRawInputElement,En=De.open,wn=De.defaultOpen,Pn=De.onDropdownVisibleChange,ar=De.activeValue,Dn=De.onActiveValueChange,In=De.activeDescendantId,Nn=De.searchValue,zn=De.autoClearSearchValue,Wn=De.onSearch,Mn=De.onSearchSplit,On=De.tokenSeparators,yn=De.allowClear,xn=De.prefix,je=De.suffixIcon,Ft=De.clearIcon,on=De.OptionList,pn=De.animation,Un=De.transitionName,_e=De.dropdownStyle,ct=De.dropdownClassName,We=De.dropdownMatchSelectWidth,ht=De.dropdownRender,bt=De.dropdownAlign,kt=De.placement,nn=De.builtinPlacements,Qt=De.getPopupContainer,zt=De.showAction,rt=zt===void 0?[]:zt,pt=De.onFocus,yt=De.onBlur,Lt=De.onKeyUp,Vt=De.onKeyDown,dn=De.onMouseDown,Cn=(0,d.Z)(De,Ye),bn=dt(gt),Bn=(Ot!==void 0?Ot:bn)||gt==="combobox",Yn=(0,oe.Z)({},Cn);Et.forEach(function(wr){delete Yn[wr]}),Nt==null||Nt.forEach(function(wr){delete Yn[wr]});var Zn=y.useState(!1),Hn=(0,B.Z)(Zn,2),kn=Hn[0],fr=Hn[1];y.useEffect(function(){fr((0,b.Z)())},[]);var rr=y.useRef(null),hr=y.useRef(null),vn=y.useRef(null),er=y.useRef(null),pr=y.useRef(null),or=y.useRef(!1),dr=R(),Tn=(0,B.Z)(dr,3),an=Tn[0],Sn=Tn[1],_n=Tn[2];y.useImperativeHandle(Se,function(){var wr,_r;return{focus:(wr=er.current)===null||wr===void 0?void 0:wr.focus,blur:(_r=er.current)===null||_r===void 0?void 0:_r.blur,scrollTo:function(Hr){var Yr;return(Yr=pr.current)===null||Yr===void 0?void 0:Yr.scrollTo(Hr)},nativeElement:rr.current||hr.current}});var qn=y.useMemo(function(){var wr;if(gt!=="combobox")return Nn;var _r=(wr=un[0])===null||wr===void 0?void 0:wr.value;return typeof _r=="string"||typeof _r=="number"?String(_r):""},[Nn,gt,un]),Qn=gt==="combobox"&&typeof rn=="function"&&rn()||null,ir=typeof cn=="function"&&cn(),xr=(0,L.x1)(hr,ir==null||(nt=ir.props)===null||nt===void 0?void 0:nt.ref),Ur=y.useState(!1),Pr=(0,B.Z)(Ur,2),Kr=Pr[0],Gr=Pr[1];(0,_.Z)(function(){Gr(!0)},[]);var zr=(0,re.Z)(!1,{defaultValue:wn,value:En}),mr=(0,B.Z)(zr,2),Cr=mr[0],Wr=mr[1],yr=Kr?Cr:!1,vr=!Be&&ln;(wt||vr&&yr&&gt==="combobox")&&(yr=!1);var nr=vr?!1:yr,Ln=y.useCallback(function(wr){var _r=wr!==void 0?wr:!yr;wt||(Wr(_r),yr!==_r&&(Pn==null||Pn(_r)))},[wt,yr,Wr,Pn]),tr=y.useMemo(function(){return(On||[]).some(function(wr){return[`
`,`\r
`].includes(wr)})},[On]),sr=y.useContext(Re)||{},lr=sr.maxCount,Sr=sr.rawValues,Dr=function(_r,Xr,Hr){if(!(bn&&ce(lr)&&(Sr==null?void 0:Sr.size)>=lr)){var Yr=!0,Qr=_r;Dn==null||Dn(null);var pi=he(_r,On,ce(lr)?lr-Sr.size:void 0),ri=Hr?null:pi;return gt!=="combobox"&&ri&&(Qr="",Mn==null||Mn(ri),Ln(!1),Yr=!1),Wn&&qn!==Qr&&Wn(Qr,{source:Xr?"typing":"effect"}),Yr}},$r=function(_r){!_r||!_r.trim()||Wn(_r,{source:"submit"})};y.useEffect(function(){!yr&&!bn&&gt!=="combobox"&&Dr("",!1,!1)},[yr]),y.useEffect(function(){Cr&&wt&&Wr(!1),wt&&!or.current&&Sn(!1)},[wt]);var Fn=x(),Jn=(0,B.Z)(Fn,2),Vn=Jn[0],Ar=Jn[1],Lr=y.useRef(!1),Fr=function(_r){var Xr=Vn(),Hr=_r.key,Yr=Hr==="Enter";if(Yr&&(gt!=="combobox"&&_r.preventDefault(),yr||Ln(!0)),Ar(!!qn),Hr==="Backspace"&&!Xr&&bn&&!qn&&un.length){for(var Qr=(0,le.Z)(un),pi=null,ri=Qr.length-1;ri>=0;ri-=1){var xi=Qr[ri];if(!xi.disabled){Qr.splice(ri,1),pi=xi;break}}pi&&gn(Qr,{type:"remove",values:[pi]})}for(var qr=arguments.length,di=new Array(qr>1?qr-1:0),Li=1;Li<qr;Li++)di[Li-1]=arguments[Li];if(yr&&(!Yr||!Lr.current)){var _i;Yr&&(Lr.current=!0),(_i=pr.current)===null||_i===void 0||_i.onKeyDown.apply(_i,[_r].concat(di))}Vt==null||Vt.apply(void 0,[_r].concat(di))},ni=function(_r){for(var Xr=arguments.length,Hr=new Array(Xr>1?Xr-1:0),Yr=1;Yr<Xr;Yr++)Hr[Yr-1]=arguments[Yr];if(yr){var Qr;(Qr=pr.current)===null||Qr===void 0||Qr.onKeyUp.apply(Qr,[_r].concat(Hr))}_r.key==="Enter"&&(Lr.current=!1),Lt==null||Lt.apply(void 0,[_r].concat(Hr))},si=function(_r){var Xr=un.filter(function(Hr){return Hr!==_r});gn(Xr,{type:"remove",values:[_r]})},Jr=function(){Lr.current=!1},Vr=y.useRef(!1),hi=function(){Sn(!0),wt||(pt&&!Vr.current&&pt.apply(void 0,arguments),rt.includes("focus")&&Ln(!0)),Vr.current=!0},Yi=function(){or.current=!0,Sn(!1,function(){Vr.current=!1,or.current=!1,Ln(!1)}),!wt&&(qn&&(gt==="tags"?Wn(qn,{source:"submit"}):gt==="multiple"&&Wn("",{source:"blur"})),yt&&yt.apply(void 0,arguments))},Di=[];y.useEffect(function(){return function(){Di.forEach(function(wr){return clearTimeout(wr)}),Di.splice(0,Di.length)}},[]);var zi=function(_r){var Xr,Hr=_r.target,Yr=(Xr=vn.current)===null||Xr===void 0?void 0:Xr.getPopupElement();if(Yr&&Yr.contains(Hr)){var Qr=setTimeout(function(){var qr=Di.indexOf(Qr);if(qr!==-1&&Di.splice(qr,1),_n(),!kn&&!Yr.contains(document.activeElement)){var di;(di=er.current)===null||di===void 0||di.focus()}});Di.push(Qr)}for(var pi=arguments.length,ri=new Array(pi>1?pi-1:0),xi=1;xi<pi;xi++)ri[xi-1]=arguments[xi];dn==null||dn.apply(void 0,[_r].concat(ri))},Mi=y.useState({}),Oi=(0,B.Z)(Mi,2),ji=Oi[1];function yi(){ji({})}var Fi;ir&&(Fi=function(_r){Ln(_r)}),V(function(){var wr;return[rr.current,(wr=vn.current)===null||wr===void 0?void 0:wr.getPopupElement()]},nr,Ln,!!ir);var Ri=y.useMemo(function(){return(0,oe.Z)((0,oe.Z)({},De),{},{notFoundContent:Be,open:yr,triggerOpen:nr,id:st,showSearch:Bn,multiple:bn,toggleOpen:Ln})},[De,Be,nr,yr,st,Bn,bn,Ln]),Xi=!!je||$t,ci;Xi&&(ci=y.createElement(W,{className:m()("".concat(Ct,"-arrow"),(0,ne.Z)({},"".concat(Ct,"-arrow-loading"),$t)),customizeIcon:je,customizeIconProps:{loading:$t,searchValue:qn,open:yr,focused:an,showSearch:Bn}}));var ts=function(){var _r;ot==null||ot(),(_r=er.current)===null||_r===void 0||_r.focus(),gn([],{type:"clear",values:un}),Dr("",!1,!1)},Bi=$(Ct,ts,un,yn,Ft,wt,qn,gt),ns=Bi.allowClear,rs=Bi.clearIcon,is=y.createElement(on,{ref:pr}),Gi=m()(Ct,ft,(0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)({},"".concat(Ct,"-focused"),an),"".concat(Ct,"-multiple"),bn),"".concat(Ct,"-single"),!bn),"".concat(Ct,"-allow-clear"),yn),"".concat(Ct,"-show-arrow"),Xi),"".concat(Ct,"-disabled"),wt),"".concat(Ct,"-loading"),$t),"".concat(Ct,"-open"),yr),"".concat(Ct,"-customize-input"),Qn),"".concat(Ct,"-show-search"),Bn)),ai=y.createElement(Pe,{ref:vn,disabled:wt,prefixCls:Ct,visible:nr,popupElement:is,animation:pn,transitionName:Un,dropdownStyle:_e,dropdownClassName:ct,direction:tn,dropdownMatchSelectWidth:We,dropdownRender:ht,dropdownAlign:bt,placement:kt,builtinPlacements:nn,getPopupContainer:Qt,empty:ln,getTriggerDOMNode:function(_r){return hr.current||_r},onPopupVisibleChange:Fi,onPopupMouseEnter:yi},ir?y.cloneElement(ir,{ref:xr}):y.createElement(lt,(0,h.Z)({},De,{domRef:hr,prefixCls:Ct,inputElement:Qn,ref:er,id:st,prefix:xn,showSearch:Bn,autoClearSearchValue:zn,mode:gt,activeDescendantId:In,tagRender:Zt,values:un,open:yr,onToggleOpen:Ln,activeValue:ar,searchValue:qn,onSearch:Dr,onSearchSubmit:$r,onRemove:si,tokenWithEnter:tr,onInputBlur:Jr}))),ei;return ir?ei=ai:ei=y.createElement("div",(0,h.Z)({className:Gi},Yn,{ref:rr,onMouseDown:zi,onKeyDown:Fr,onKeyUp:ni,onFocus:hi,onBlur:Yi}),y.createElement(qe,{visible:an&&!yr,values:un}),ai,ci,ns&&rs),y.createElement(O.Provider,{value:Ri},ei)}),Ae=ge,at=function(){return null};at.isSelectOptGroup=!0;var et=at,Qe=function(){return null};Qe.isSelectOption=!0;var St=Qe,Tt=E(80547),He=E(2738),Wt=E(6790);function fn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Rt=["disabled","title","children","style","className"];function qt(De){return typeof De=="string"||typeof De=="number"}var Ke=function(Se,nt){var st=U(),Ct=st.prefixCls,ft=st.id,Ot=st.open,Zt=st.multiple,tn=st.mode,Nt=st.searchValue,un=st.toggleOpen,gn=st.notFoundContent,ln=st.onPopupScroll,jt=y.useContext(Re),Be=jt.maxCount,ot=jt.flattenOptions,gt=jt.onActiveValue,wt=jt.defaultActiveFirstOption,$t=jt.onSelect,rn=jt.menuItemSelectedIcon,cn=jt.rawValues,En=jt.fieldNames,wn=jt.virtual,Pn=jt.direction,ar=jt.listHeight,Dn=jt.listItemHeight,In=jt.optionRender,Nn="".concat(Ct,"-item"),zn=(0,Tt.Z)(function(){return ot},[Ot,ot],function(zt,rt){return rt[0]&&zt[1]!==rt[1]}),Wn=y.useRef(null),Mn=y.useMemo(function(){return Zt&&ce(Be)&&(cn==null?void 0:cn.size)>=Be},[Zt,Be,cn==null?void 0:cn.size]),On=function(rt){rt.preventDefault()},yn=function(rt){var pt;(pt=Wn.current)===null||pt===void 0||pt.scrollTo(typeof rt=="number"?{index:rt}:rt)},xn=y.useCallback(function(zt){return tn==="combobox"?!1:cn.has(zt)},[tn,(0,le.Z)(cn).toString(),cn.size]),je=function(rt){for(var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,yt=zn.length,Lt=0;Lt<yt;Lt+=1){var Vt=(rt+Lt*pt+yt)%yt,dn=zn[Vt]||{},Cn=dn.group,bn=dn.data;if(!Cn&&!(bn!=null&&bn.disabled)&&(xn(bn.value)||!Mn))return Vt}return-1},Ft=y.useState(function(){return je(0)}),on=(0,B.Z)(Ft,2),pn=on[0],Un=on[1],_e=function(rt){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Un(rt);var yt={source:pt?"keyboard":"mouse"},Lt=zn[rt];if(!Lt){gt(null,-1,yt);return}gt(Lt.value,rt,yt)};(0,y.useEffect)(function(){_e(wt!==!1?je(0):-1)},[zn.length,Nt]);var ct=y.useCallback(function(zt){return tn==="combobox"?String(zt).toLowerCase()===Nt.toLowerCase():cn.has(zt)},[tn,Nt,(0,le.Z)(cn).toString(),cn.size]);(0,y.useEffect)(function(){var zt=setTimeout(function(){if(!Zt&&Ot&&cn.size===1){var pt=Array.from(cn)[0],yt=zn.findIndex(function(Lt){var Vt=Lt.data;return Nt?String(Vt.value).startsWith(Nt):Vt.value===pt});yt!==-1&&(_e(yt),yn(yt))}});if(Ot){var rt;(rt=Wn.current)===null||rt===void 0||rt.scrollTo(void 0)}return function(){return clearTimeout(zt)}},[Ot,Nt]);var We=function(rt){rt!==void 0&&$t(rt,{selected:!cn.has(rt)}),Zt||un(!1)};if(y.useImperativeHandle(nt,function(){return{onKeyDown:function(rt){var pt=rt.which,yt=rt.ctrlKey;switch(pt){case X.Z.N:case X.Z.P:case X.Z.UP:case X.Z.DOWN:{var Lt=0;if(pt===X.Z.UP?Lt=-1:pt===X.Z.DOWN?Lt=1:fn()&&yt&&(pt===X.Z.N?Lt=1:pt===X.Z.P&&(Lt=-1)),Lt!==0){var Vt=je(pn+Lt,Lt);yn(Vt),_e(Vt,!0)}break}case X.Z.TAB:case X.Z.ENTER:{var dn,Cn=zn[pn];Cn&&!(Cn!=null&&(dn=Cn.data)!==null&&dn!==void 0&&dn.disabled)&&!Mn?We(Cn.value):We(void 0),Ot&&rt.preventDefault();break}case X.Z.ESC:un(!1),Ot&&rt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(rt){yn(rt)}}}),zn.length===0)return y.createElement("div",{role:"listbox",id:"".concat(ft,"_list"),className:"".concat(Nn,"-empty"),onMouseDown:On},gn);var ht=Object.keys(En).map(function(zt){return En[zt]}),bt=function(rt){return rt.label};function kt(zt,rt){var pt=zt.group;return{role:pt?"presentation":"option",id:"".concat(ft,"_list_").concat(rt)}}var nn=function(rt){var pt=zn[rt];if(!pt)return null;var yt=pt.data||{},Lt=yt.value,Vt=pt.group,dn=(0,q.Z)(yt,!0),Cn=bt(pt);return pt?y.createElement("div",(0,h.Z)({"aria-label":typeof Cn=="string"&&!Vt?Cn:null},dn,{key:rt},kt(pt,rt),{"aria-selected":ct(Lt)}),Lt):null},Qt={role:"listbox",id:"".concat(ft,"_list")};return y.createElement(y.Fragment,null,wn&&y.createElement("div",(0,h.Z)({},Qt,{style:{height:0,width:0,overflow:"hidden"}}),nn(pn-1),nn(pn),nn(pn+1)),y.createElement(Wt.Z,{itemKey:"key",ref:Wn,data:zn,height:ar,itemHeight:Dn,fullHeight:!1,onMouseDown:On,onScroll:ln,virtual:wn,direction:Pn,innerProps:wn?null:Qt},function(zt,rt){var pt=zt.group,yt=zt.groupOption,Lt=zt.data,Vt=zt.label,dn=zt.value,Cn=Lt.key;if(pt){var bn,Bn=(bn=Lt.title)!==null&&bn!==void 0?bn:qt(Vt)?Vt.toString():void 0;return y.createElement("div",{className:m()(Nn,"".concat(Nn,"-group"),Lt.className),title:Bn},Vt!==void 0?Vt:Cn)}var Yn=Lt.disabled,Zn=Lt.title,Hn=Lt.children,kn=Lt.style,fr=Lt.className,rr=(0,d.Z)(Lt,Rt),hr=(0,He.Z)(rr,ht),vn=xn(dn),er=Yn||!vn&&Mn,pr="".concat(Nn,"-option"),or=m()(Nn,pr,fr,(0,ne.Z)((0,ne.Z)((0,ne.Z)((0,ne.Z)({},"".concat(pr,"-grouped"),yt),"".concat(pr,"-active"),pn===rt&&!er),"".concat(pr,"-disabled"),er),"".concat(pr,"-selected"),vn)),dr=bt(zt),Tn=!rn||typeof rn=="function"||vn,an=typeof dr=="number"?dr:dr||dn,Sn=qt(an)?an.toString():void 0;return Zn!==void 0&&(Sn=Zn),y.createElement("div",(0,h.Z)({},(0,q.Z)(hr),wn?{}:kt(zt,rt),{"aria-selected":ct(dn),className:or,title:Sn,onMouseMove:function(){pn===rt||er||_e(rt)},onClick:function(){er||We(dn)},style:kn}),y.createElement("div",{className:"".concat(pr,"-content")},typeof In=="function"?In(zt,{index:rt}):an),y.isValidElement(rn)||vn,Tn&&y.createElement(W,{className:"".concat(Nn,"-option-state"),customizeIcon:rn,customizeIconProps:{value:dn,disabled:er,isSelected:vn}},vn?"\u2713":null))}))},ke=y.forwardRef(Ke),Ne=ke,I=function(De,Se){var nt=y.useRef({values:new Map,options:new Map}),st=y.useMemo(function(){var ft=nt.current,Ot=ft.values,Zt=ft.options,tn=De.map(function(gn){if(gn.label===void 0){var ln;return(0,oe.Z)((0,oe.Z)({},gn),{},{label:(ln=Ot.get(gn.value))===null||ln===void 0?void 0:ln.label})}return gn}),Nt=new Map,un=new Map;return tn.forEach(function(gn){Nt.set(gn.value,gn),un.set(gn.value,Se.get(gn.value)||Zt.get(gn.value))}),nt.current.values=Nt,nt.current.options=un,tn},[De,Se]),Ct=y.useCallback(function(ft){return Se.get(ft)||nt.current.options.get(ft)},[Se]);return[st,Ct]};function ee(De,Se){return J(De).join("").toUpperCase().includes(Se)}var fe=function(De,Se,nt,st,Ct){return y.useMemo(function(){if(!nt||st===!1)return De;var ft=Se.options,Ot=Se.label,Zt=Se.value,tn=[],Nt=typeof st=="function",un=nt.toUpperCase(),gn=Nt?st:function(jt,Be){return Ct?ee(Be[Ct],un):Be[ft]?ee(Be[Ot!=="children"?Ot:"label"],un):ee(Be[Zt],un)},ln=Nt?function(jt){return Q(jt)}:function(jt){return jt};return De.forEach(function(jt){if(jt[ft]){var Be=gn(nt,ln(jt));if(Be)tn.push(jt);else{var ot=jt[ft].filter(function(gt){return gn(nt,ln(gt))});ot.length&&tn.push((0,oe.Z)((0,oe.Z)({},jt),{},(0,ne.Z)({},ft,ot)))}return}gn(nt,ln(jt))&&tn.push(jt)}),tn},[De,st,Ct,nt,Se])},ve=E(6551),ye=E(11592),Ue=["children","value"],$e=["children"];function ut(De){var Se=De,nt=Se.key,st=Se.props,Ct=st.children,ft=st.value,Ot=(0,d.Z)(st,Ue);return(0,oe.Z)({key:nt,value:ft!==void 0?ft:nt,children:Ct},Ot)}function At(De){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ye.Z)(De).map(function(nt,st){if(!y.isValidElement(nt)||!nt.type)return null;var Ct=nt,ft=Ct.type.isSelectOptGroup,Ot=Ct.key,Zt=Ct.props,tn=Zt.children,Nt=(0,d.Z)(Zt,$e);return Se||!ft?ut(nt):(0,oe.Z)((0,oe.Z)({key:"__RC_SELECT_GRP__".concat(Ot===null?st:Ot,"__"),label:Ot},Nt),{},{options:At(tn)})}).filter(function(nt){return nt})}var Ge=function(Se,nt,st,Ct,ft){return y.useMemo(function(){var Ot=Se,Zt=!Se;Zt&&(Ot=At(nt));var tn=new Map,Nt=new Map,un=function(jt,Be,ot){ot&&typeof ot=="string"&&jt.set(Be[ot],Be)},gn=function ln(jt){for(var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot=0;ot<jt.length;ot+=1){var gt=jt[ot];!gt[st.options]||Be?(tn.set(gt[st.value],gt),un(Nt,gt,st.label),un(Nt,gt,Ct),un(Nt,gt,ft)):ln(gt[st.options],!0)}};return gn(Ot),{options:Ot,valueOptions:tn,labelOptions:Nt}},[Se,nt,st,Ct,ft])},w=Ge;function ae(De){var Se=y.useRef();Se.current=De;var nt=y.useCallback(function(){return Se.current.apply(Se,arguments)},[]);return nt}function A(De){var Se=De.mode,nt=De.options,st=De.children,Ct=De.backfill,ft=De.allowClear,Ot=De.placeholder,Zt=De.getInputElement,tn=De.showSearch,Nt=De.onSearch,un=De.defaultOpen,gn=De.autoFocus,ln=De.labelInValue,jt=De.value,Be=De.inputValue,ot=De.optionLabelProp,gt=isMultiple(Se),wt=tn!==void 0?tn:gt||Se==="combobox",$t=nt||convertChildrenToData(st);if(warning(Se!=="tags"||$t.every(function(wn){return!wn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Se==="tags"||Se==="combobox"){var rn=$t.some(function(wn){return wn.options?wn.options.some(function(Pn){return typeof("value"in Pn?Pn.value:Pn.key)=="number"}):typeof("value"in wn?wn.value:wn.key)=="number"});warning(!rn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Se!=="combobox"||!ot,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Se==="combobox"||!Ct,"`backfill` only works with `combobox` mode."),warning(Se==="combobox"||!Zt,"`getInputElement` only work with `combobox` mode."),noteOnce(Se!=="combobox"||!Zt||!ft||!Ot,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Nt&&!wt&&Se!=="combobox"&&Se!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!un||gn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),jt!=null){var cn=toArray(jt);warning(!ln||cn.every(function(wn){return _typeof(wn)==="object"&&("key"in wn||"value"in wn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!gt||Array.isArray(jt),"`value` should be array when `mode` is `multiple` or `tags`")}if(st){var En=null;toNodeArray(st).some(function(wn){if(!React.isValidElement(wn)||!wn.type)return!1;var Pn=wn,ar=Pn.type;if(ar.isSelectOption)return!1;if(ar.isSelectOptGroup){var Dn=toNodeArray(wn.props.children).every(function(In){return!React.isValidElement(In)||!wn.type||In.type.isSelectOption?!0:(En=In.type,!1)});return!Dn}return En=ar,!0}),En&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(En.displayName||En.name||En,"`.")),warning(Be===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ze(De,Se){if(De){var nt=function st(Ct){for(var ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ot=0;Ot<Ct.length;Ot++){var Zt=Ct[Ot];if(Zt[Se==null?void 0:Se.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!ft&&Array.isArray(Zt[Se==null?void 0:Se.options])&&st(Zt[Se==null?void 0:Se.options],!0))break}};nt(De)}}var Ee=null,Le=["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"],ze=["inputValue"];function Ve(De){return!De||(0,me.Z)(De)!=="object"}var it=y.forwardRef(function(De,Se){var nt=De.id,st=De.mode,Ct=De.prefixCls,ft=Ct===void 0?"rc-select":Ct,Ot=De.backfill,Zt=De.fieldNames,tn=De.inputValue,Nt=De.searchValue,un=De.onSearch,gn=De.autoClearSearchValue,ln=gn===void 0?!0:gn,jt=De.onSelect,Be=De.onDeselect,ot=De.dropdownMatchSelectWidth,gt=ot===void 0?!0:ot,wt=De.filterOption,$t=De.filterSort,rn=De.optionFilterProp,cn=De.optionLabelProp,En=De.options,wn=De.optionRender,Pn=De.children,ar=De.defaultActiveFirstOption,Dn=De.menuItemSelectedIcon,In=De.virtual,Nn=De.direction,zn=De.listHeight,Wn=zn===void 0?200:zn,Mn=De.listItemHeight,On=Mn===void 0?20:Mn,yn=De.labelRender,xn=De.value,je=De.defaultValue,Ft=De.labelInValue,on=De.onChange,pn=De.maxCount,Un=(0,d.Z)(De,Le),_e=(0,ve.ZP)(nt),ct=dt(st),We=!!(!En&&Pn),ht=y.useMemo(function(){return wt===void 0&&st==="combobox"?!1:wt},[wt,st]),bt=y.useMemo(function(){return Ce(Zt,We)},[JSON.stringify(Zt),We]),kt=(0,re.Z)("",{value:Nt!==void 0?Nt:tn,postState:function(tr){return tr||""}}),nn=(0,B.Z)(kt,2),Qt=nn[0],zt=nn[1],rt=w(En,Pn,bt,rn,cn),pt=rt.valueOptions,yt=rt.labelOptions,Lt=rt.options,Vt=y.useCallback(function(Ln){var tr=J(Ln);return tr.map(function(sr){var lr,Sr,Dr,$r,Fn;if(Ve(sr))lr=sr;else{var Jn;Dr=sr.key,Sr=sr.label,lr=(Jn=sr.value)!==null&&Jn!==void 0?Jn:Dr}var Vn=pt.get(lr);if(Vn){var Ar;if(Sr===void 0&&(Sr=Vn==null?void 0:Vn[cn||bt.label]),Dr===void 0&&(Dr=(Ar=Vn==null?void 0:Vn.key)!==null&&Ar!==void 0?Ar:lr),$r=Vn==null?void 0:Vn.disabled,Fn=Vn==null?void 0:Vn.title,0)var Lr}return{label:Sr,value:lr,key:Dr,disabled:$r,title:Fn}})},[bt,cn,pt]),dn=(0,re.Z)(je,{value:xn}),Cn=(0,B.Z)(dn,2),bn=Cn[0],Bn=Cn[1],Yn=y.useMemo(function(){var Ln,tr=ct&&bn===null?[]:bn,sr=Vt(tr);return st==="combobox"&&M((Ln=sr[0])===null||Ln===void 0?void 0:Ln.value)?[]:sr},[bn,Vt,st,ct]),Zn=I(Yn,pt),Hn=(0,B.Z)(Zn,2),kn=Hn[0],fr=Hn[1],rr=y.useMemo(function(){if(!st&&kn.length===1){var Ln=kn[0];if(Ln.value===null&&(Ln.label===null||Ln.label===void 0))return[]}return kn.map(function(tr){var sr;return(0,oe.Z)((0,oe.Z)({},tr),{},{label:(sr=typeof yn=="function"?yn(tr):tr.label)!==null&&sr!==void 0?sr:tr.value})})},[st,kn,yn]),hr=y.useMemo(function(){return new Set(kn.map(function(Ln){return Ln.value}))},[kn]);y.useEffect(function(){if(st==="combobox"){var Ln,tr=(Ln=kn[0])===null||Ln===void 0?void 0:Ln.value;zt(g(tr)?String(tr):"")}},[kn]);var vn=ae(function(Ln,tr){var sr=tr!=null?tr:Ln;return(0,ne.Z)((0,ne.Z)({},bt.value,Ln),bt.label,sr)}),er=y.useMemo(function(){if(st!=="tags")return Lt;var Ln=(0,le.Z)(Lt),tr=function(lr){return pt.has(lr)};return(0,le.Z)(kn).sort(function(sr,lr){return sr.value<lr.value?-1:1}).forEach(function(sr){var lr=sr.value;tr(lr)||Ln.push(vn(lr,sr.label))}),Ln},[vn,Lt,pt,kn,st]),pr=fe(er,bt,Qt,ht,rn),or=y.useMemo(function(){return st!=="tags"||!Qt||pr.some(function(Ln){return Ln[rn||"value"]===Qt})||pr.some(function(Ln){return Ln[bt.value]===Qt})?pr:[vn(Qt)].concat((0,le.Z)(pr))},[vn,rn,st,pr,Qt,bt]),dr=function Ln(tr){var sr=(0,le.Z)(tr).sort(function(lr,Sr){return $t(lr,Sr,{searchValue:Qt})});return sr.map(function(lr){return Array.isArray(lr.options)?(0,oe.Z)((0,oe.Z)({},lr),{},{options:lr.options.length>0?Ln(lr.options):lr.options}):lr})},Tn=y.useMemo(function(){return $t?dr(or):or},[or,$t,Qt]),an=y.useMemo(function(){return de(Tn,{fieldNames:bt,childrenAsData:We})},[Tn,bt,We]),Sn=function(tr){var sr=Vt(tr);if(Bn(sr),on&&(sr.length!==kn.length||sr.some(function(Dr,$r){var Fn;return((Fn=kn[$r])===null||Fn===void 0?void 0:Fn.value)!==(Dr==null?void 0:Dr.value)}))){var lr=Ft?sr:sr.map(function(Dr){return Dr.value}),Sr=sr.map(function(Dr){return Q(fr(Dr.value))});on(ct?lr:lr[0],ct?Sr:Sr[0])}},_n=y.useState(null),qn=(0,B.Z)(_n,2),Qn=qn[0],ir=qn[1],xr=y.useState(0),Ur=(0,B.Z)(xr,2),Pr=Ur[0],Kr=Ur[1],Gr=ar!==void 0?ar:st!=="combobox",zr=y.useCallback(function(Ln,tr){var sr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},lr=sr.source,Sr=lr===void 0?"keyboard":lr;Kr(tr),Ot&&st==="combobox"&&Ln!==null&&Sr==="keyboard"&&ir(String(Ln))},[Ot,st]),mr=function(tr,sr,lr){var Sr=function(){var si,Jr=fr(tr);return[Ft?{label:Jr==null?void 0:Jr[bt.label],value:tr,key:(si=Jr==null?void 0:Jr.key)!==null&&si!==void 0?si:tr}:tr,Q(Jr)]};if(sr&&jt){var Dr=Sr(),$r=(0,B.Z)(Dr,2),Fn=$r[0],Jn=$r[1];jt(Fn,Jn)}else if(!sr&&Be&&lr!=="clear"){var Vn=Sr(),Ar=(0,B.Z)(Vn,2),Lr=Ar[0],Fr=Ar[1];Be(Lr,Fr)}},Cr=ae(function(Ln,tr){var sr,lr=ct?tr.selected:!0;lr?sr=ct?[].concat((0,le.Z)(kn),[Ln]):[Ln]:sr=kn.filter(function(Sr){return Sr.value!==Ln}),Sn(sr),mr(Ln,lr),st==="combobox"?ir(""):(!dt||ln)&&(zt(""),ir(""))}),Wr=function(tr,sr){Sn(tr);var lr=sr.type,Sr=sr.values;(lr==="remove"||lr==="clear")&&Sr.forEach(function(Dr){mr(Dr.value,!1,lr)})},yr=function(tr,sr){if(zt(tr),ir(null),sr.source==="submit"){var lr=(tr||"").trim();if(lr){var Sr=Array.from(new Set([].concat((0,le.Z)(hr),[lr])));Sn(Sr),mr(lr,!0),zt("")}return}sr.source!=="blur"&&(st==="combobox"&&Sn(tr),un==null||un(tr))},vr=function(tr){var sr=tr;st!=="tags"&&(sr=tr.map(function(Sr){var Dr=yt.get(Sr);return Dr==null?void 0:Dr.value}).filter(function(Sr){return Sr!==void 0}));var lr=Array.from(new Set([].concat((0,le.Z)(hr),(0,le.Z)(sr))));Sn(lr),lr.forEach(function(Sr){mr(Sr,!0)})},nr=y.useMemo(function(){var Ln=In!==!1&&gt!==!1;return(0,oe.Z)((0,oe.Z)({},rt),{},{flattenOptions:an,onActiveValue:zr,defaultActiveFirstOption:Gr,onSelect:Cr,menuItemSelectedIcon:Dn,rawValues:hr,fieldNames:bt,virtual:Ln,direction:Nn,listHeight:Wn,listItemHeight:On,childrenAsData:We,maxCount:pn,optionRender:wn})},[pn,rt,an,zr,Gr,Cr,Dn,hr,bt,In,gt,Nn,Wn,On,We,wn]);return y.createElement(Re.Provider,{value:nr},y.createElement(Ae,(0,h.Z)({},Un,{id:_e,prefixCls:ft,ref:Se,omitDomProps:ze,mode:st,displayValues:rr,onDisplayValuesChange:Wr,direction:Nn,searchValue:Qt,onSearch:yr,autoClearSearchValue:ln,onSearchSplit:vr,dropdownMatchSelectWidth:gt,OptionList:Ne,emptyOptions:!an.length,activeValue:Qn,activeDescendantId:"".concat(_e,"_list_").concat(Pr)})))}),Pt=it;Pt.Option=St,Pt.OptGroup=et;var Kt=Pt,mn=Kt},86351:function(Rn,Gt,E){"use strict";E.d(Gt,{R:function(){return le},w:function(){return h}});var h={},le="rc-table-internal-hook"},97347:function(Rn,Gt,E){"use strict";E.d(Gt,{L:function(){return K},Z:function(){return R}});var h=E(16886),le=E(52873),ne=E(15142),oe=E(26420),B=E(98506),d=E(33346),me=E(11592),re=E(48736),o=E(59301),y=E(86351),T=E(54451);function m(x){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof V=="number"?V:V.endsWith("%")?x*parseFloat(V)/100:null}function _(x,V,X){return o.useMemo(function(){if(V&&V>0){var H=0,q=0;x.forEach(function(J){var j=m(V,J.width);j?H+=j:q+=1});var se=Math.max(V,X),ie=Math.max(se-H,q),Fe=q,Z=ie/q,k=0,F=x.map(function(J){var j=(0,B.Z)({},J),v=m(V,j.width);if(v)j.width=v;else{var g=Math.floor(Z);j.width=Fe===1?ie:g,ie-=g,Fe-=1}return k+=j.width,j});if(k<se){var G=se/k;ie=se,F.forEach(function(J,j){var v=Math.floor(J.width*G);J.width=j===F.length-1?ie:v,ie-=v})}return[F,Math.max(k,se)]}return[x,V]},[x,V,X])}var b=["children"],L=["fixed"];function K(x){return(0,me.Z)(x).filter(function(V){return o.isValidElement(V)}).map(function(V){var X=V.key,H=V.props,q=H.children,se=(0,d.Z)(H,b),ie=(0,B.Z)({key:X},se);return q&&(ie.children=K(q)),ie})}function W(x){return x.filter(function(V){return V&&(0,oe.Z)(V)==="object"&&!V.hidden}).map(function(V){var X=V.children;return X&&X.length>0?(0,B.Z)((0,B.Z)({},V),{},{children:W(X)}):V})}function $(x){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return x.filter(function(X){return X&&(0,oe.Z)(X)==="object"}).reduce(function(X,H,q){var se=H.fixed,ie=se===!0?"left":se,Fe="".concat(V,"-").concat(q),Z=H.children;return Z&&Z.length>0?[].concat((0,ne.Z)(X),(0,ne.Z)($(Z,Fe).map(function(k){return(0,B.Z)({fixed:ie},k)}))):[].concat((0,ne.Z)(X),[(0,B.Z)((0,B.Z)({key:Fe},H),{},{fixed:ie})])},[])}function O(x){return x.map(function(V){var X=V.fixed,H=(0,d.Z)(V,L),q=X;return X==="left"?q="right":X==="right"&&(q="left"),(0,B.Z)({fixed:q},H)})}function U(x,V){var X=x.prefixCls,H=x.columns,q=x.children,se=x.expandable,ie=x.expandedKeys,Fe=x.columnTitle,Z=x.getRowKey,k=x.onTriggerExpand,F=x.expandIcon,G=x.rowExpandable,J=x.expandIconColumnIndex,j=x.direction,v=x.expandRowByClick,g=x.columnWidth,M=x.fixed,ue=x.scrollWidth,Ie=x.clientWidth,Je=o.useMemo(function(){var lt=H||K(q)||[];return W(lt.slice())},[H,q]),Dt=o.useMemo(function(){if(se){var lt=Je.slice();if(!lt.includes(y.w)){var tt=J||0;tt>=0&&(tt||M==="left"||!M)&&lt.splice(tt,0,y.w),M==="right"&&lt.splice(Je.length,0,y.w)}var Te=lt.indexOf(y.w);lt=lt.filter(function(Pe,z){return Pe!==y.w||z===Te});var pe=Je[Te],N;M?N=M:N=pe?pe.fixed:null;var xe=(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)({},T.v,{className:"".concat(X,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Fe),"fixed",N),"className","".concat(X,"-row-expand-icon-cell")),"width",g),"render",function(z,P,ce){var Ce=Z(P,ce),de=ie.has(Ce),Q=G?G(P):!0,he=F({prefixCls:X,expanded:de,expandable:Q,record:P,onExpand:k});return v?o.createElement("span",{onClick:function(Re){return Re.stopPropagation()}},he):he});return lt.map(function(Pe){return Pe===y.w?xe:Pe})}return Je.filter(function(Pe){return Pe!==y.w})},[se,Je,Z,ie,F,j]),vt=o.useMemo(function(){var lt=Dt;return V&&(lt=V(lt)),lt.length||(lt=[{render:function(){return null}}]),lt},[V,Dt,j]),Mt=o.useMemo(function(){return j==="rtl"?O($(vt)):$(vt)},[vt,j,ue]),Bt=o.useMemo(function(){for(var lt=-1,tt=Mt.length-1;tt>=0;tt-=1){var Te=Mt[tt].fixed;if(Te==="left"||Te===!0){lt=tt;break}}if(lt>=0)for(var pe=0;pe<=lt;pe+=1){var N=Mt[pe].fixed;if(N!=="left"&&N!==!0)return!0}var xe=Mt.findIndex(function(P){var ce=P.fixed;return ce==="right"});if(xe>=0)for(var Pe=xe;Pe<Mt.length;Pe+=1){var z=Mt[Pe].fixed;if(z!=="right")return!0}return!1},[Mt]),we=_(Mt,ue,Ie),Yt=(0,h.Z)(we,2),_t=Yt[0],Xt=Yt[1];return[vt,_t,Xt,Bt]}var R=U},4030:function(Rn,Gt,E){"use strict";E.d(Gt,{w2:function(){return h.w},vP:function(){return qt.v},RQ:function(){return h.R},ER:function(){return Ce},Q$:function(){return wt},TN:function(){return on}});var h=E(86351),le=E(16886),ne=E(6089),oe=E(34280),B=E(13697),d=E(59301),me=E(4676);function re(_e){var ct=d.createContext(void 0),We=function(bt){var kt=bt.value,nn=bt.children,Qt=d.useRef(kt);Qt.current=kt;var zt=d.useState(function(){return{getValue:function(){return Qt.current},listeners:new Set}}),rt=(0,le.Z)(zt,1),pt=rt[0];return(0,oe.Z)(function(){(0,me.unstable_batchedUpdates)(function(){pt.listeners.forEach(function(yt){yt(kt)})})},[kt]),d.createElement(ct.Provider,{value:pt},nn)};return{Context:ct,Provider:We,defaultValue:_e}}function o(_e,ct){var We=(0,ne.Z)(typeof ct=="function"?ct:function(yt){if(ct===void 0)return yt;if(!Array.isArray(ct))return yt[ct];var Lt={};return ct.forEach(function(Vt){Lt[Vt]=yt[Vt]}),Lt}),ht=d.useContext(_e==null?void 0:_e.Context),bt=ht||{},kt=bt.listeners,nn=bt.getValue,Qt=d.useRef();Qt.current=We(ht?nn():_e==null?void 0:_e.defaultValue);var zt=d.useState({}),rt=(0,le.Z)(zt,2),pt=rt[1];return(0,oe.Z)(function(){if(!ht)return;function yt(Lt){var Vt=We(Lt);(0,B.Z)(Qt.current,Vt,!0)||pt({})}return kt.add(yt),function(){kt.delete(yt)}},[ht]),Qt.current}var y=E(67711),T=E(8654);function m(){var _e=d.createContext(null);function ct(){return d.useContext(_e)}function We(bt,kt){var nn=(0,T.Yr)(bt),Qt=function(rt,pt){var yt=nn?{ref:pt}:{},Lt=d.useRef(0),Vt=d.useRef(rt),dn=ct();return dn!==null?d.createElement(bt,(0,y.Z)({},rt,yt)):((!kt||kt(Vt.current,rt))&&(Lt.current+=1),Vt.current=rt,d.createElement(_e.Provider,{value:Lt.current},d.createElement(bt,(0,y.Z)({},rt,yt))))};return nn?d.forwardRef(Qt):Qt}function ht(bt,kt){var nn=(0,T.Yr)(bt),Qt=function(rt,pt){var yt=nn?{ref:pt}:{};return ct(),d.createElement(bt,(0,y.Z)({},rt,yt))};return nn?d.memo(d.forwardRef(Qt),kt):d.memo(Qt,kt)}return{makeImmutable:We,responseImmutable:ht,useImmutableMark:ct}}var _=m(),b=_.makeImmutable,L=_.responseImmutable,K=_.useImmutableMark,W=m(),$=W.makeImmutable,O=W.responseImmutable,U=W.useImmutableMark,R=re(),x=R;function V(_e,ct){var We=React.useRef(0);We.current+=1;var ht=React.useRef(_e),bt=[];Object.keys(_e||{}).map(function(nn){var Qt;(_e==null?void 0:_e[nn])!==((Qt=ht.current)===null||Qt===void 0?void 0:Qt[nn])&&bt.push(nn)}),ht.current=_e;var kt=React.useRef([]);return bt.length&&(kt.current=bt),React.useDebugValue(We.current),React.useDebugValue(kt.current.join(", ")),ct&&console.log("".concat(ct,":"),We.current,kt.current),We.current}var X=null,H=null,q=E(26420),se=E(98506),ie=E(52873),Fe=E(92310),Z=E.n(Fe),k=E(80547),F=E(97938),G=E(48736),J=d.createContext({renderWithProps:!1}),j=J,v="RC_TABLE_KEY";function g(_e){return _e==null?[]:Array.isArray(_e)?_e:[_e]}function M(_e){var ct=[],We={};return _e.forEach(function(ht){for(var bt=ht||{},kt=bt.key,nn=bt.dataIndex,Qt=kt||g(nn).join("-")||v;We[Qt];)Qt="".concat(Qt,"_next");We[Qt]=!0,ct.push(Qt)}),ct}function ue(_e){return _e!=null}function Ie(_e){return typeof _e=="number"&&!Number.isNaN(_e)}function Je(_e){return _e&&(0,q.Z)(_e)==="object"&&!Array.isArray(_e)&&!d.isValidElement(_e)}function Dt(_e,ct,We,ht,bt,kt){var nn=d.useContext(j),Qt=U(),zt=(0,k.Z)(function(){if(ue(ht))return[ht];var rt=ct==null||ct===""?[]:Array.isArray(ct)?ct:[ct],pt=(0,F.Z)(_e,rt),yt=pt,Lt=void 0;if(bt){var Vt=bt(pt,_e,We);Je(Vt)?(yt=Vt.children,Lt=Vt.props,nn.renderWithProps=!0):yt=Vt}return[yt,Lt]},[Qt,_e,ht,ct,bt,We],function(rt,pt){if(kt){var yt=(0,le.Z)(rt,2),Lt=yt[1],Vt=(0,le.Z)(pt,2),dn=Vt[1];return kt(dn,Lt)}return nn.renderWithProps?!0:!(0,B.Z)(rt,pt,!0)});return zt}function vt(_e,ct,We,ht){var bt=_e+ct-1;return _e<=ht&&bt>=We}function Mt(_e,ct){return o(x,function(We){var ht=vt(_e,ct||1,We.hoverStartRow,We.hoverEndRow);return[ht,We.onHover]})}var Bt=E(70425),we=function(ct){var We=ct.ellipsis,ht=ct.rowType,bt=ct.children,kt,nn=We===!0?{showTitle:!0}:We;return nn&&(nn.showTitle||ht==="header")&&(typeof bt=="string"||typeof bt=="number"?kt=bt.toString():d.isValidElement(bt)&&typeof bt.props.children=="string"&&(kt=bt.props.children)),kt};function Yt(_e){var ct,We,ht,bt,kt,nn,Qt,zt,rt=_e.component,pt=_e.children,yt=_e.ellipsis,Lt=_e.scope,Vt=_e.prefixCls,dn=_e.className,Cn=_e.align,bn=_e.record,Bn=_e.render,Yn=_e.dataIndex,Zn=_e.renderIndex,Hn=_e.shouldCellUpdate,kn=_e.index,fr=_e.rowType,rr=_e.colSpan,hr=_e.rowSpan,vn=_e.fixLeft,er=_e.fixRight,pr=_e.firstFixLeft,or=_e.lastFixLeft,dr=_e.firstFixRight,Tn=_e.lastFixRight,an=_e.appendNode,Sn=_e.additionalProps,_n=Sn===void 0?{}:Sn,qn=_e.isSticky,Qn="".concat(Vt,"-cell"),ir=o(x,["supportSticky","allColumnsFixedLeft","rowHoverable"]),xr=ir.supportSticky,Ur=ir.allColumnsFixedLeft,Pr=ir.rowHoverable,Kr=Dt(bn,Yn,Zn,pt,Bn,Hn),Gr=(0,le.Z)(Kr,2),zr=Gr[0],mr=Gr[1],Cr={},Wr=typeof vn=="number"&&xr,yr=typeof er=="number"&&xr;Wr&&(Cr.position="sticky",Cr.left=vn),yr&&(Cr.position="sticky",Cr.right=er);var vr=(ct=(We=(ht=mr==null?void 0:mr.colSpan)!==null&&ht!==void 0?ht:_n.colSpan)!==null&&We!==void 0?We:rr)!==null&&ct!==void 0?ct:1,nr=(bt=(kt=(nn=mr==null?void 0:mr.rowSpan)!==null&&nn!==void 0?nn:_n.rowSpan)!==null&&kt!==void 0?kt:hr)!==null&&bt!==void 0?bt:1,Ln=Mt(kn,nr),tr=(0,le.Z)(Ln,2),sr=tr[0],lr=tr[1],Sr=(0,Bt.zX)(function(Lr){var Fr;bn&&lr(kn,kn+nr-1),_n==null||(Fr=_n.onMouseEnter)===null||Fr===void 0||Fr.call(_n,Lr)}),Dr=(0,Bt.zX)(function(Lr){var Fr;bn&&lr(-1,-1),_n==null||(Fr=_n.onMouseLeave)===null||Fr===void 0||Fr.call(_n,Lr)});if(vr===0||nr===0)return null;var $r=(Qt=_n.title)!==null&&Qt!==void 0?Qt:we({rowType:fr,ellipsis:yt,children:zr}),Fn=Z()(Qn,dn,(zt={},(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)(zt,"".concat(Qn,"-fix-left"),Wr&&xr),"".concat(Qn,"-fix-left-first"),pr&&xr),"".concat(Qn,"-fix-left-last"),or&&xr),"".concat(Qn,"-fix-left-all"),or&&Ur&&xr),"".concat(Qn,"-fix-right"),yr&&xr),"".concat(Qn,"-fix-right-first"),dr&&xr),"".concat(Qn,"-fix-right-last"),Tn&&xr),"".concat(Qn,"-ellipsis"),yt),"".concat(Qn,"-with-append"),an),"".concat(Qn,"-fix-sticky"),(Wr||yr)&&qn&&xr),(0,ie.Z)(zt,"".concat(Qn,"-row-hover"),!mr&&sr)),_n.className,mr==null?void 0:mr.className),Jn={};Cn&&(Jn.textAlign=Cn);var Vn=(0,se.Z)((0,se.Z)((0,se.Z)((0,se.Z)({},mr==null?void 0:mr.style),Cr),Jn),_n.style),Ar=zr;return(0,q.Z)(Ar)==="object"&&!Array.isArray(Ar)&&!d.isValidElement(Ar)&&(Ar=null),yt&&(or||dr)&&(Ar=d.createElement("span",{className:"".concat(Qn,"-content")},Ar)),d.createElement(rt,(0,y.Z)({},mr,_n,{className:Fn,style:Vn,title:$r,scope:Lt,onMouseEnter:Pr?Sr:void 0,onMouseLeave:Pr?Dr:void 0,colSpan:vr!==1?vr:null,rowSpan:nr!==1?nr:null}),an,Ar)}var _t=d.memo(Yt);function Xt(_e,ct,We,ht,bt){var kt=We[_e]||{},nn=We[ct]||{},Qt,zt;kt.fixed==="left"?Qt=ht.left[bt==="rtl"?ct:_e]:nn.fixed==="right"&&(zt=ht.right[bt==="rtl"?_e:ct]);var rt=!1,pt=!1,yt=!1,Lt=!1,Vt=We[ct+1],dn=We[_e-1],Cn=Vt&&!Vt.fixed||dn&&!dn.fixed||We.every(function(Hn){return Hn.fixed==="left"});if(bt==="rtl"){if(Qt!==void 0){var bn=dn&&dn.fixed==="left";Lt=!bn&&Cn}else if(zt!==void 0){var Bn=Vt&&Vt.fixed==="right";yt=!Bn&&Cn}}else if(Qt!==void 0){var Yn=Vt&&Vt.fixed==="left";rt=!Yn&&Cn}else if(zt!==void 0){var Zn=dn&&dn.fixed==="right";pt=!Zn&&Cn}return{fixLeft:Qt,fixRight:zt,lastFixLeft:rt,firstFixRight:pt,lastFixRight:yt,firstFixLeft:Lt,isSticky:ht.isSticky}}var lt=d.createContext({}),tt=lt;function Te(_e){var ct=_e.className,We=_e.index,ht=_e.children,bt=_e.colSpan,kt=bt===void 0?1:bt,nn=_e.rowSpan,Qt=_e.align,zt=o(x,["prefixCls","direction"]),rt=zt.prefixCls,pt=zt.direction,yt=d.useContext(tt),Lt=yt.scrollColumnIndex,Vt=yt.stickyOffsets,dn=yt.flattenColumns,Cn=We+kt-1,bn=Cn+1===Lt?kt+1:kt,Bn=Xt(We,We+bn-1,dn,Vt,pt);return d.createElement(_t,(0,y.Z)({className:ct,index:We,component:"td",prefixCls:rt,record:null,dataIndex:null,align:Qt,colSpan:bn,rowSpan:nn,render:function(){return ht}},Bn))}var pe=E(33346),N=["children"];function xe(_e){var ct=_e.children,We=(0,pe.Z)(_e,N);return d.createElement("tr",We,ct)}function Pe(_e){var ct=_e.children;return ct}Pe.Row=xe,Pe.Cell=Te;var z=Pe;function P(_e){var ct=_e.children,We=_e.stickyOffsets,ht=_e.flattenColumns,bt=o(x,"prefixCls"),kt=ht.length-1,nn=ht[kt],Qt=d.useMemo(function(){return{stickyOffsets:We,flattenColumns:ht,scrollColumnIndex:nn!=null&&nn.scrollbar?kt:null}},[nn,ht,kt,We]);return d.createElement(tt.Provider,{value:Qt},d.createElement("tfoot",{className:"".concat(bt,"-summary")},ct))}var ce=O(P),Ce=z,de=E(29301),Q=E(24514),he=E(75152),Oe=E(26112);function Re(_e,ct,We,ht,bt,kt,nn){_e.push({record:ct,indent:We,index:nn});var Qt=kt(ct),zt=bt==null?void 0:bt.has(Qt);if(ct&&Array.isArray(ct[ht])&&zt)for(var rt=0;rt<ct[ht].length;rt+=1)Re(_e,ct[ht][rt],We+1,ht,bt,kt,rt)}function qe(_e,ct,We,ht){var bt=d.useMemo(function(){if(We!=null&&We.size){for(var kt=[],nn=0;nn<(_e==null?void 0:_e.length);nn+=1){var Qt=_e[nn];Re(kt,Qt,0,ct,We,ht,nn)}return kt}return _e==null?void 0:_e.map(function(zt,rt){return{record:zt,indent:0,index:rt}})},[_e,ct,We,ht]);return bt}function Ye(_e,ct,We,ht){var bt=o(x,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),kt=bt.flattenColumns,nn=bt.expandableType,Qt=bt.expandedKeys,zt=bt.childrenColumnName,rt=bt.onTriggerExpand,pt=bt.rowExpandable,yt=bt.onRow,Lt=bt.expandRowByClick,Vt=bt.rowClassName,dn=nn==="nest",Cn=nn==="row"&&(!pt||pt(_e)),bn=Cn||dn,Bn=Qt&&Qt.has(ct),Yn=zt&&_e&&_e[zt],Zn=(0,Bt.zX)(rt),Hn=yt==null?void 0:yt(_e,We),kn=Hn==null?void 0:Hn.onClick,fr=function(er){Lt&&bn&&rt(_e,er);for(var pr=arguments.length,or=new Array(pr>1?pr-1:0),dr=1;dr<pr;dr++)or[dr-1]=arguments[dr];kn==null||kn.apply(void 0,[er].concat(or))},rr;typeof Vt=="string"?rr=Vt:typeof Vt=="function"&&(rr=Vt(_e,We,ht));var hr=M(kt);return(0,se.Z)((0,se.Z)({},bt),{},{columnsKey:hr,nestExpandable:dn,expanded:Bn,hasNestChildren:Yn,record:_e,onTriggerExpand:Zn,rowSupportExpand:Cn,expandable:bn,rowProps:(0,se.Z)((0,se.Z)({},Hn),{},{className:Z()(rr,Hn==null?void 0:Hn.className),onClick:fr})})}function Et(_e){var ct=_e.prefixCls,We=_e.children,ht=_e.component,bt=_e.cellComponent,kt=_e.className,nn=_e.expanded,Qt=_e.colSpan,zt=_e.isEmpty,rt=o(x,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),pt=rt.scrollbarSize,yt=rt.fixHeader,Lt=rt.fixColumn,Vt=rt.componentWidth,dn=rt.horizonScroll,Cn=We;return(zt?dn&&Vt:Lt)&&(Cn=d.createElement("div",{style:{width:Vt-(yt&&!zt?pt:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ct,"-expanded-row-fixed")},Cn)),d.createElement(ht,{className:kt,style:{display:nn?null:"none"}},d.createElement(_t,{component:bt,prefixCls:ct,colSpan:Qt},Cn))}var dt=Et;function ge(_e){var ct=_e.prefixCls,We=_e.record,ht=_e.onExpand,bt=_e.expanded,kt=_e.expandable,nn="".concat(ct,"-row-expand-icon");if(!kt)return d.createElement("span",{className:Z()(nn,"".concat(ct,"-row-spaced"))});var Qt=function(rt){ht(We,rt),rt.stopPropagation()};return d.createElement("span",{className:Z()(nn,(0,ie.Z)((0,ie.Z)({},"".concat(ct,"-row-expanded"),bt),"".concat(ct,"-row-collapsed"),!bt)),onClick:Qt})}function Ae(_e,ct,We){var ht=[];function bt(kt){(kt||[]).forEach(function(nn,Qt){ht.push(ct(nn,Qt)),bt(nn[We])})}return bt(_e),ht}function at(_e,ct,We,ht){return typeof _e=="string"?_e:typeof _e=="function"?_e(ct,We,ht):""}function et(_e,ct,We,ht,bt){var kt=_e.record,nn=_e.prefixCls,Qt=_e.columnsKey,zt=_e.fixedInfoList,rt=_e.expandIconColumnIndex,pt=_e.nestExpandable,yt=_e.indentSize,Lt=_e.expandIcon,Vt=_e.expanded,dn=_e.hasNestChildren,Cn=_e.onTriggerExpand,bn=Qt[We],Bn=zt[We],Yn;We===(rt||0)&&pt&&(Yn=d.createElement(d.Fragment,null,d.createElement("span",{style:{paddingLeft:"".concat(yt*ht,"px")},className:"".concat(nn,"-row-indent indent-level-").concat(ht)}),Lt({prefixCls:nn,expanded:Vt,expandable:dn,record:kt,onExpand:Cn})));var Zn;return ct.onCell&&(Zn=ct.onCell(kt,bt)),{key:bn,fixedInfo:Bn,appendCellNode:Yn,additionalCellProps:Zn||{}}}function Qe(_e){var ct=_e.className,We=_e.style,ht=_e.record,bt=_e.index,kt=_e.renderIndex,nn=_e.rowKey,Qt=_e.indent,zt=Qt===void 0?0:Qt,rt=_e.rowComponent,pt=_e.cellComponent,yt=_e.scopeCellComponent,Lt=Ye(ht,nn,bt,zt),Vt=Lt.prefixCls,dn=Lt.flattenColumns,Cn=Lt.expandedRowClassName,bn=Lt.expandedRowRender,Bn=Lt.rowProps,Yn=Lt.expanded,Zn=Lt.rowSupportExpand,Hn=d.useRef(!1);Hn.current||(Hn.current=Yn);var kn=at(Cn,ht,bt,zt),fr=d.createElement(rt,(0,y.Z)({},Bn,{"data-row-key":nn,className:Z()(ct,"".concat(Vt,"-row"),"".concat(Vt,"-row-level-").concat(zt),Bn==null?void 0:Bn.className,(0,ie.Z)({},kn,zt>=1)),style:(0,se.Z)((0,se.Z)({},We),Bn==null?void 0:Bn.style)}),dn.map(function(vn,er){var pr=vn.render,or=vn.dataIndex,dr=vn.className,Tn=et(Lt,vn,er,zt,bt),an=Tn.key,Sn=Tn.fixedInfo,_n=Tn.appendCellNode,qn=Tn.additionalCellProps;return d.createElement(_t,(0,y.Z)({className:dr,ellipsis:vn.ellipsis,align:vn.align,scope:vn.rowScope,component:vn.rowScope?yt:pt,prefixCls:Vt,key:an,record:ht,index:bt,renderIndex:kt,dataIndex:or,render:pr,shouldCellUpdate:vn.shouldCellUpdate},Sn,{appendNode:_n,additionalProps:qn}))})),rr;if(Zn&&(Hn.current||Yn)){var hr=bn(ht,bt,zt+1,Yn);rr=d.createElement(dt,{expanded:Yn,className:Z()("".concat(Vt,"-expanded-row"),"".concat(Vt,"-expanded-row-level-").concat(zt+1),kn),prefixCls:Vt,component:rt,cellComponent:pt,colSpan:dn.length,isEmpty:!1},hr)}return d.createElement(d.Fragment,null,fr,rr)}var St=O(Qe);function Tt(_e){var ct=_e.columnKey,We=_e.onColumnResize,ht=d.useRef();return(0,oe.Z)(function(){ht.current&&We(ct,ht.current.offsetWidth)},[]),d.createElement(de.Z,{data:ct},d.createElement("td",{ref:ht,style:{padding:0,border:0,height:0}},d.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var He=E(29194);function Wt(_e){var ct=_e.prefixCls,We=_e.columnsKey,ht=_e.onColumnResize,bt=d.useRef(null);return d.createElement("tr",{"aria-hidden":"true",className:"".concat(ct,"-measure-row"),style:{height:0,fontSize:0},ref:bt},d.createElement(de.Z.Collection,{onBatchResize:function(nn){(0,He.Z)(bt.current)&&nn.forEach(function(Qt){var zt=Qt.data,rt=Qt.size;ht(zt,rt.offsetWidth)})}},We.map(function(kt){return d.createElement(Tt,{key:kt,columnKey:kt,onColumnResize:ht})})))}function fn(_e){var ct=_e.data,We=_e.measureColumnWidth,ht=o(x,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),bt=ht.prefixCls,kt=ht.getComponent,nn=ht.onColumnResize,Qt=ht.flattenColumns,zt=ht.getRowKey,rt=ht.expandedKeys,pt=ht.childrenColumnName,yt=ht.emptyNode,Lt=qe(ct,pt,rt,zt),Vt=d.useRef({renderWithProps:!1}),dn=kt(["body","wrapper"],"tbody"),Cn=kt(["body","row"],"tr"),bn=kt(["body","cell"],"td"),Bn=kt(["body","cell"],"th"),Yn;ct.length?Yn=Lt.map(function(Hn,kn){var fr=Hn.record,rr=Hn.indent,hr=Hn.index,vn=zt(fr,kn);return d.createElement(St,{key:vn,rowKey:vn,record:fr,index:kn,renderIndex:hr,rowComponent:Cn,cellComponent:bn,scopeCellComponent:Bn,indent:rr})}):Yn=d.createElement(dt,{expanded:!0,className:"".concat(bt,"-placeholder"),prefixCls:bt,component:Cn,cellComponent:bn,colSpan:Qt.length,isEmpty:!0},yt);var Zn=M(Qt);return d.createElement(j.Provider,{value:Vt.current},d.createElement(dn,{className:"".concat(bt,"-tbody")},We&&d.createElement(Wt,{prefixCls:bt,columnsKey:Zn,onColumnResize:nn}),Yn))}var Rt=O(fn),qt=E(54451),Ke=["columnType"];function ke(_e){for(var ct=_e.colWidths,We=_e.columns,ht=_e.columCount,bt=o(x,["tableLayout"]),kt=bt.tableLayout,nn=[],Qt=ht||We.length,zt=!1,rt=Qt-1;rt>=0;rt-=1){var pt=ct[rt],yt=We&&We[rt],Lt=void 0,Vt=void 0;if(yt&&(Lt=yt[qt.v],kt==="auto"&&(Vt=yt.minWidth)),pt||Vt||Lt||zt){var dn=Lt||{},Cn=dn.columnType,bn=(0,pe.Z)(dn,Ke);nn.unshift(d.createElement("col",(0,y.Z)({key:rt,style:{width:pt,minWidth:Vt}},bn))),zt=!0}}return d.createElement("colgroup",null,nn)}var Ne=ke,I=E(15142),ee=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function fe(_e,ct){return(0,d.useMemo)(function(){for(var We=[],ht=0;ht<ct;ht+=1){var bt=_e[ht];if(bt!==void 0)We[ht]=bt;else return null}return We},[_e.join("_"),ct])}var ve=d.forwardRef(function(_e,ct){var We=_e.className,ht=_e.noData,bt=_e.columns,kt=_e.flattenColumns,nn=_e.colWidths,Qt=_e.columCount,zt=_e.stickyOffsets,rt=_e.direction,pt=_e.fixHeader,yt=_e.stickyTopOffset,Lt=_e.stickyBottomOffset,Vt=_e.stickyClassName,dn=_e.onScroll,Cn=_e.maxContentScroll,bn=_e.children,Bn=(0,pe.Z)(_e,ee),Yn=o(x,["prefixCls","scrollbarSize","isSticky","getComponent"]),Zn=Yn.prefixCls,Hn=Yn.scrollbarSize,kn=Yn.isSticky,fr=Yn.getComponent,rr=fr(["header","table"],"table"),hr=kn&&!pt?0:Hn,vn=d.useRef(null),er=d.useCallback(function(qn){(0,T.mH)(ct,qn),(0,T.mH)(vn,qn)},[]);d.useEffect(function(){var qn;function Qn(ir){var xr=ir,Ur=xr.currentTarget,Pr=xr.deltaX;Pr&&(dn({currentTarget:Ur,scrollLeft:Ur.scrollLeft+Pr}),ir.preventDefault())}return(qn=vn.current)===null||qn===void 0||qn.addEventListener("wheel",Qn,{passive:!1}),function(){var ir;(ir=vn.current)===null||ir===void 0||ir.removeEventListener("wheel",Qn)}},[]);var pr=d.useMemo(function(){return kt.every(function(qn){return qn.width})},[kt]),or=kt[kt.length-1],dr={fixed:or?or.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Zn,"-cell-scrollbar")}}},Tn=(0,d.useMemo)(function(){return hr?[].concat((0,I.Z)(bt),[dr]):bt},[hr,bt]),an=(0,d.useMemo)(function(){return hr?[].concat((0,I.Z)(kt),[dr]):kt},[hr,kt]),Sn=(0,d.useMemo)(function(){var qn=zt.right,Qn=zt.left;return(0,se.Z)((0,se.Z)({},zt),{},{left:rt==="rtl"?[].concat((0,I.Z)(Qn.map(function(ir){return ir+hr})),[0]):Qn,right:rt==="rtl"?qn:[].concat((0,I.Z)(qn.map(function(ir){return ir+hr})),[0]),isSticky:kn})},[hr,zt,kn]),_n=fe(nn,Qt);return d.createElement("div",{style:(0,se.Z)({overflow:"hidden"},kn?{top:yt,bottom:Lt}:{}),ref:er,className:Z()(We,(0,ie.Z)({},Vt,!!Vt))},d.createElement(rr,{style:{tableLayout:"fixed",visibility:ht||_n?null:"hidden"}},(!ht||!Cn||pr)&&d.createElement(Ne,{colWidths:_n?[].concat((0,I.Z)(_n),[hr]):[],columCount:Qt+1,columns:an}),bn((0,se.Z)((0,se.Z)({},Bn),{},{stickyOffsets:Sn,columns:Tn,flattenColumns:an}))))}),ye=d.memo(ve),Ue=function(ct){var We=ct.cells,ht=ct.stickyOffsets,bt=ct.flattenColumns,kt=ct.rowComponent,nn=ct.cellComponent,Qt=ct.onHeaderRow,zt=ct.index,rt=o(x,["prefixCls","direction"]),pt=rt.prefixCls,yt=rt.direction,Lt;Qt&&(Lt=Qt(We.map(function(dn){return dn.column}),zt));var Vt=M(We.map(function(dn){return dn.column}));return d.createElement(kt,Lt,We.map(function(dn,Cn){var bn=dn.column,Bn=Xt(dn.colStart,dn.colEnd,bt,ht,yt),Yn;return bn&&bn.onHeaderCell&&(Yn=dn.column.onHeaderCell(bn)),d.createElement(_t,(0,y.Z)({},dn,{scope:bn.title?dn.colSpan>1?"colgroup":"col":null,ellipsis:bn.ellipsis,align:bn.align,component:nn,prefixCls:pt,key:Vt[Cn]},Bn,{additionalProps:Yn,rowType:"header"}))}))},$e=Ue;function ut(_e){var ct=[];function We(nn,Qt){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ct[zt]=ct[zt]||[];var rt=Qt,pt=nn.filter(Boolean).map(function(yt){var Lt={key:yt.key,className:yt.className||"",children:yt.title,column:yt,colStart:rt},Vt=1,dn=yt.children;return dn&&dn.length>0&&(Vt=We(dn,rt,zt+1).reduce(function(Cn,bn){return Cn+bn},0),Lt.hasSubColumns=!0),"colSpan"in yt&&(Vt=yt.colSpan),"rowSpan"in yt&&(Lt.rowSpan=yt.rowSpan),Lt.colSpan=Vt,Lt.colEnd=Lt.colStart+Vt-1,ct[zt].push(Lt),rt+=Vt,Vt});return pt}We(_e,0);for(var ht=ct.length,bt=function(Qt){ct[Qt].forEach(function(zt){!("rowSpan"in zt)&&!zt.hasSubColumns&&(zt.rowSpan=ht-Qt)})},kt=0;kt<ht;kt+=1)bt(kt);return ct}var At=function(ct){var We=ct.stickyOffsets,ht=ct.columns,bt=ct.flattenColumns,kt=ct.onHeaderRow,nn=o(x,["prefixCls","getComponent"]),Qt=nn.prefixCls,zt=nn.getComponent,rt=d.useMemo(function(){return ut(ht)},[ht]),pt=zt(["header","wrapper"],"thead"),yt=zt(["header","row"],"tr"),Lt=zt(["header","cell"],"th");return d.createElement(pt,{className:"".concat(Qt,"-thead")},rt.map(function(Vt,dn){var Cn=d.createElement($e,{key:dn,flattenColumns:bt,cells:Vt,stickyOffsets:We,rowComponent:yt,cellComponent:Lt,onHeaderRow:kt,index:dn});return Cn}))},Ge=O(At),w=E(97347);function ae(_e,ct,We){var ht=(0,qt.g)(_e),bt=ht.expandIcon,kt=ht.expandedRowKeys,nn=ht.defaultExpandedRowKeys,Qt=ht.defaultExpandAllRows,zt=ht.expandedRowRender,rt=ht.onExpand,pt=ht.onExpandedRowsChange,yt=ht.childrenColumnName,Lt=bt||ge,Vt=yt||"children",dn=d.useMemo(function(){return zt?"row":_e.expandable&&_e.internalHooks===h.R&&_e.expandable.__PARENT_RENDER_ICON__||ct.some(function(kn){return kn&&(0,q.Z)(kn)==="object"&&kn[Vt]})?"nest":!1},[!!zt,ct]),Cn=d.useState(function(){return nn||(Qt?Ae(ct,We,Vt):[])}),bn=(0,le.Z)(Cn,2),Bn=bn[0],Yn=bn[1],Zn=d.useMemo(function(){return new Set(kt||Bn||[])},[kt,Bn]),Hn=d.useCallback(function(kn){var fr=We(kn,ct.indexOf(kn)),rr,hr=Zn.has(fr);hr?(Zn.delete(fr),rr=(0,I.Z)(Zn)):rr=[].concat((0,I.Z)(Zn),[fr]),Yn(rr),rt&&rt(!hr,kn),pt&&pt(rr)},[We,Zn,ct,rt,pt]);return[ht,dn,Zn,Lt,Vt,Hn]}function A(_e,ct,We){var ht=_e.map(function(bt,kt){return Xt(kt,kt,_e,ct,We)});return(0,k.Z)(function(){return ht},[ht],function(bt,kt){return!(0,B.Z)(bt,kt)})}function Ze(_e){var ct=(0,d.useRef)(_e),We=(0,d.useState)({}),ht=(0,le.Z)(We,2),bt=ht[1],kt=(0,d.useRef)(null),nn=(0,d.useRef)([]);function Qt(zt){nn.current.push(zt);var rt=Promise.resolve();kt.current=rt,rt.then(function(){if(kt.current===rt){var pt=nn.current,yt=ct.current;nn.current=[],pt.forEach(function(Lt){ct.current=Lt(ct.current)}),kt.current=null,yt!==ct.current&&bt({})}})}return(0,d.useEffect)(function(){return function(){kt.current=null}},[]),[ct.current,Qt]}function Ee(_e){var ct=(0,d.useRef)(_e||null),We=(0,d.useRef)();function ht(){window.clearTimeout(We.current)}function bt(nn){ct.current=nn,ht(),We.current=window.setTimeout(function(){ct.current=null,We.current=void 0},100)}function kt(){return ct.current}return(0,d.useEffect)(function(){return ht},[]),[bt,kt]}function Le(){var _e=d.useState(-1),ct=(0,le.Z)(_e,2),We=ct[0],ht=ct[1],bt=d.useState(-1),kt=(0,le.Z)(bt,2),nn=kt[0],Qt=kt[1],zt=d.useCallback(function(rt,pt){ht(rt),Qt(pt)},[]);return[We,nn,zt]}var ze=E(47273),Ve=(0,ze.Z)()?window:null;function it(_e,ct){var We=(0,q.Z)(_e)==="object"?_e:{},ht=We.offsetHeader,bt=ht===void 0?0:ht,kt=We.offsetSummary,nn=kt===void 0?0:kt,Qt=We.offsetScroll,zt=Qt===void 0?0:Qt,rt=We.getContainer,pt=rt===void 0?function(){return Ve}:rt,yt=pt()||Ve,Lt=!!_e;return d.useMemo(function(){return{isSticky:Lt,stickyClassName:Lt?"".concat(ct,"-sticky-holder"):"",offsetHeader:bt,offsetSummary:nn,offsetScroll:zt,container:yt}},[Lt,zt,bt,nn,ct,yt])}function Pt(_e,ct,We){var ht=(0,d.useMemo)(function(){var bt=ct.length,kt=function(rt,pt,yt){for(var Lt=[],Vt=0,dn=rt;dn!==pt;dn+=yt)Lt.push(Vt),ct[dn].fixed&&(Vt+=_e[dn]||0);return Lt},nn=kt(0,bt,1),Qt=kt(bt-1,-1,-1).reverse();return We==="rtl"?{left:Qt,right:nn}:{left:nn,right:Qt}},[_e,ct,We]);return ht}var Kt=Pt;function mn(_e){var ct=_e.className,We=_e.children;return d.createElement("div",{className:ct},We)}var De=mn,Se=E(8224),nt=E(16089),st=E(76846);function Ct(_e){var ct=(0,st.bn)(_e),We=ct.getBoundingClientRect(),ht=document.documentElement;return{left:We.left+(window.pageXOffset||ht.scrollLeft)-(ht.clientLeft||document.body.clientLeft||0),top:We.top+(window.pageYOffset||ht.scrollTop)-(ht.clientTop||document.body.clientTop||0)}}var ft=function(ct,We){var ht,bt,kt=ct.scrollBodyRef,nn=ct.onScroll,Qt=ct.offsetScroll,zt=ct.container,rt=ct.direction,pt=o(x,"prefixCls"),yt=((ht=kt.current)===null||ht===void 0?void 0:ht.scrollWidth)||0,Lt=((bt=kt.current)===null||bt===void 0?void 0:bt.clientWidth)||0,Vt=yt&&Lt*(Lt/yt),dn=d.useRef(),Cn=Ze({scrollLeft:0,isHiddenScrollBar:!0}),bn=(0,le.Z)(Cn,2),Bn=bn[0],Yn=bn[1],Zn=d.useRef({delta:0,x:0}),Hn=d.useState(!1),kn=(0,le.Z)(Hn,2),fr=kn[0],rr=kn[1],hr=d.useRef(null);d.useEffect(function(){return function(){nt.Z.cancel(hr.current)}},[]);var vn=function(){rr(!1)},er=function(an){an.persist(),Zn.current.delta=an.pageX-Bn.scrollLeft,Zn.current.x=0,rr(!0),an.preventDefault()},pr=function(an){var Sn,_n=an||((Sn=window)===null||Sn===void 0?void 0:Sn.event),qn=_n.buttons;if(!fr||qn===0){fr&&rr(!1);return}var Qn=Zn.current.x+an.pageX-Zn.current.x-Zn.current.delta,ir=rt==="rtl";Qn=Math.max(ir?Vt-Lt:0,Math.min(ir?0:Lt-Vt,Qn));var xr=!ir||Math.abs(Qn)+Math.abs(Vt)<Lt;xr&&(nn({scrollLeft:Qn/Lt*(yt+2)}),Zn.current.x=an.pageX)},or=function(){nt.Z.cancel(hr.current),hr.current=(0,nt.Z)(function(){if(kt.current){var an=Ct(kt.current).top,Sn=an+kt.current.offsetHeight,_n=zt===window?document.documentElement.scrollTop+window.innerHeight:Ct(zt).top+zt.clientHeight;Sn-(0,he.Z)()<=_n||an>=_n-Qt?Yn(function(qn){return(0,se.Z)((0,se.Z)({},qn),{},{isHiddenScrollBar:!0})}):Yn(function(qn){return(0,se.Z)((0,se.Z)({},qn),{},{isHiddenScrollBar:!1})})}})},dr=function(an){Yn(function(Sn){return(0,se.Z)((0,se.Z)({},Sn),{},{scrollLeft:an/yt*Lt||0})})};return d.useImperativeHandle(We,function(){return{setScrollLeft:dr,checkScrollBarVisible:or}}),d.useEffect(function(){var Tn=(0,Se.Z)(document.body,"mouseup",vn,!1),an=(0,Se.Z)(document.body,"mousemove",pr,!1);return or(),function(){Tn.remove(),an.remove()}},[Vt,fr]),d.useEffect(function(){if(kt.current){for(var Tn=[],an=(0,st.bn)(kt.current);an;)Tn.push(an),an=an.parentElement;return Tn.forEach(function(Sn){return Sn.addEventListener("scroll",or,!1)}),window.addEventListener("resize",or,!1),window.addEventListener("scroll",or,!1),zt.addEventListener("scroll",or,!1),function(){Tn.forEach(function(Sn){return Sn.removeEventListener("scroll",or)}),window.removeEventListener("resize",or),window.removeEventListener("scroll",or),zt.removeEventListener("scroll",or)}}},[zt]),d.useEffect(function(){Bn.isHiddenScrollBar||Yn(function(Tn){var an=kt.current;return an?(0,se.Z)((0,se.Z)({},Tn),{},{scrollLeft:an.scrollLeft/an.scrollWidth*an.clientWidth}):Tn})},[Bn.isHiddenScrollBar]),yt<=Lt||!Vt||Bn.isHiddenScrollBar?null:d.createElement("div",{style:{height:(0,he.Z)(),width:Lt,bottom:Qt},className:"".concat(pt,"-sticky-scroll")},d.createElement("div",{onMouseDown:er,ref:dn,className:Z()("".concat(pt,"-sticky-scroll-bar"),(0,ie.Z)({},"".concat(pt,"-sticky-scroll-bar-active"),fr)),style:{width:"".concat(Vt,"px"),transform:"translate3d(".concat(Bn.scrollLeft,"px, 0, 0)")}}))},Ot=d.forwardRef(ft);function Zt(_e){return null}var tn=Zt;function Nt(_e){return null}var un=Nt,gn="rc-table",ln=[],jt={};function Be(){return"No Data"}function ot(_e,ct){var We=(0,se.Z)({rowKey:"key",prefixCls:gn,emptyText:Be},_e),ht=We.prefixCls,bt=We.className,kt=We.rowClassName,nn=We.style,Qt=We.data,zt=We.rowKey,rt=We.scroll,pt=We.tableLayout,yt=We.direction,Lt=We.title,Vt=We.footer,dn=We.summary,Cn=We.caption,bn=We.id,Bn=We.showHeader,Yn=We.components,Zn=We.emptyText,Hn=We.onRow,kn=We.onHeaderRow,fr=We.onScroll,rr=We.internalHooks,hr=We.transformColumns,vn=We.internalRefs,er=We.tailor,pr=We.getContainerWidth,or=We.sticky,dr=We.rowHoverable,Tn=dr===void 0?!0:dr,an=Qt||ln,Sn=!!an.length,_n=rr===h.R,qn=d.useCallback(function(Rr,Ir){return(0,F.Z)(Yn,Rr)||Ir},[Yn]),Qn=d.useMemo(function(){return typeof zt=="function"?zt:function(Rr){var Ir=Rr&&Rr[zt];return Ir}},[zt]),ir=qn(["body"]),xr=Le(),Ur=(0,le.Z)(xr,3),Pr=Ur[0],Kr=Ur[1],Gr=Ur[2],zr=ae(We,an,Qn),mr=(0,le.Z)(zr,6),Cr=mr[0],Wr=mr[1],yr=mr[2],vr=mr[3],nr=mr[4],Ln=mr[5],tr=rt==null?void 0:rt.x,sr=d.useState(0),lr=(0,le.Z)(sr,2),Sr=lr[0],Dr=lr[1],$r=(0,w.Z)((0,se.Z)((0,se.Z)((0,se.Z)({},We),Cr),{},{expandable:!!Cr.expandedRowRender,columnTitle:Cr.columnTitle,expandedKeys:yr,getRowKey:Qn,onTriggerExpand:Ln,expandIcon:vr,expandIconColumnIndex:Cr.expandIconColumnIndex,direction:yt,scrollWidth:_n&&er&&typeof tr=="number"?tr:null,clientWidth:Sr}),_n?hr:null),Fn=(0,le.Z)($r,4),Jn=Fn[0],Vn=Fn[1],Ar=Fn[2],Lr=Fn[3],Fr=Ar!=null?Ar:tr,ni=d.useMemo(function(){return{columns:Jn,flattenColumns:Vn}},[Jn,Vn]),si=d.useRef(),Jr=d.useRef(),Vr=d.useRef(),hi=d.useRef();d.useImperativeHandle(ct,function(){return{nativeElement:si.current,scrollTo:function(Ir){var li;if(Vr.current instanceof HTMLElement){var Ei=Ir.index,ui=Ir.top,os=Ir.key;if(Ie(ui)){var Ji;(Ji=Vr.current)===null||Ji===void 0||Ji.scrollTo({top:ui})}else{var qi,vs=os!=null?os:Qn(an[Ei]);(qi=Vr.current.querySelector('[data-row-key="'.concat(vs,'"]')))===null||qi===void 0||qi.scrollIntoView()}}else(li=Vr.current)!==null&&li!==void 0&&li.scrollTo&&Vr.current.scrollTo(Ir)}}});var Yi=d.useRef(),Di=d.useState(!1),zi=(0,le.Z)(Di,2),Mi=zi[0],Oi=zi[1],ji=d.useState(!1),yi=(0,le.Z)(ji,2),Fi=yi[0],Ri=yi[1],Xi=d.useState(new Map),ci=(0,le.Z)(Xi,2),ts=ci[0],Bi=ci[1],ns=M(Vn),rs=ns.map(function(Rr){return ts.get(Rr)}),is=d.useMemo(function(){return rs},[rs.join("_")]),Gi=Kt(is,Vn,yt),ai=rt&&ue(rt.y),ei=rt&&ue(Fr)||!!Cr.fixed,wr=ei&&Vn.some(function(Rr){var Ir=Rr.fixed;return Ir}),_r=d.useRef(),Xr=it(or,ht),Hr=Xr.isSticky,Yr=Xr.offsetHeader,Qr=Xr.offsetSummary,pi=Xr.offsetScroll,ri=Xr.stickyClassName,xi=Xr.container,qr=d.useMemo(function(){return dn==null?void 0:dn(an)},[dn,an]),di=(ai||Hr)&&d.isValidElement(qr)&&qr.type===z&&qr.props.fixed,Li,_i,Wi;ai&&(_i={overflowY:Sn?"scroll":"auto",maxHeight:rt.y}),ei&&(Li={overflowX:"auto"},ai||(_i={overflowY:"hidden"}),Wi={width:Fr===!0?"auto":Fr,minWidth:"100%"});var xs=d.useCallback(function(Rr,Ir){Bi(function(li){if(li.get(Rr)!==Ir){var Ei=new Map(li);return Ei.set(Rr,Ir),Ei}return li})},[]),sn=Ee(null),Mr=(0,le.Z)(sn,2),jr=Mr[0],oi=Mr[1];function ii(Rr,Ir){Ir&&(typeof Ir=="function"?Ir(Rr):Ir.scrollLeft!==Rr&&(Ir.scrollLeft=Rr,Ir.scrollLeft!==Rr&&setTimeout(function(){Ir.scrollLeft=Rr},0)))}var vi=(0,ne.Z)(function(Rr){var Ir=Rr.currentTarget,li=Rr.scrollLeft,Ei=yt==="rtl",ui=typeof li=="number"?li:Ir.scrollLeft,os=Ir||jt;if(!oi()||oi()===os){var Ji;jr(os),ii(ui,Jr.current),ii(ui,Vr.current),ii(ui,Yi.current),ii(ui,(Ji=_r.current)===null||Ji===void 0?void 0:Ji.setScrollLeft)}var qi=Ir||Jr.current;if(qi){var vs=_n&&er&&typeof Fr=="number"?Fr:qi.scrollWidth,ls=qi.clientWidth;if(vs===ls){Oi(!1),Ri(!1);return}Ei?(Oi(-ui<vs-ls),Ri(-ui>0)):(Oi(ui>0),Ri(ui<vs-ls))}}),ss=(0,ne.Z)(function(Rr){vi(Rr),fr==null||fr(Rr)}),Ss=function(){if(ei&&Vr.current){var Ir;vi({currentTarget:(0,st.bn)(Vr.current),scrollLeft:(Ir=Vr.current)===null||Ir===void 0?void 0:Ir.scrollLeft})}else Oi(!1),Ri(!1)},As=function(Ir){var li,Ei=Ir.width;(li=_r.current)===null||li===void 0||li.checkScrollBarVisible();var ui=si.current?si.current.offsetWidth:Ei;_n&&pr&&si.current&&(ui=pr(si.current,ui)||ui),ui!==Sr&&(Ss(),Dr(ui))},Qi=d.useRef(!1);d.useEffect(function(){Qi.current&&Ss()},[ei,Qt,Jn.length]),d.useEffect(function(){Qi.current=!0},[]);var Si=d.useState(0),Ai=(0,le.Z)(Si,2),as=Ai[0],Qs=Ai[1],ya=d.useState(!0),Js=(0,le.Z)(ya,2),Ms=Js[0],Os=Js[1];(0,oe.Z)(function(){(!er||!_n)&&(Vr.current instanceof Element?Qs((0,he.o)(Vr.current).width):Qs((0,he.o)(hi.current).width)),Os((0,Q.G)("position","sticky"))},[]),d.useEffect(function(){_n&&vn&&(vn.body.current=Vr.current)});var ws=d.useCallback(function(Rr){return d.createElement(d.Fragment,null,d.createElement(Ge,Rr),di==="top"&&d.createElement(ce,Rr,qr))},[di,qr]),hs=d.useCallback(function(Rr){return d.createElement(ce,Rr,qr)},[qr]),qs=qn(["table"],"table"),ps=d.useMemo(function(){return pt||(wr?Fr==="max-content"?"auto":"fixed":ai||Hr||Vn.some(function(Rr){var Ir=Rr.ellipsis;return Ir})?"fixed":"auto")},[ai,wr,Vn,pt,Hr]),Ts,ms={colWidths:is,columCount:Vn.length,stickyOffsets:Gi,onHeaderRow:kn,fixHeader:ai,scroll:rt},$s=d.useMemo(function(){return Sn?null:typeof Zn=="function"?Zn():Zn},[Sn,Zn]),gs=d.createElement(Rt,{data:an,measureColumnWidth:ai||ei||Hr}),ea=d.createElement(Ne,{colWidths:Vn.map(function(Rr){var Ir=Rr.width;return Ir}),columns:Vn}),ta=Cn!=null?d.createElement("caption",{className:"".concat(ht,"-caption")},Cn):void 0,na=(0,Oe.Z)(We,{data:!0}),Fs=(0,Oe.Z)(We,{aria:!0});if(ai||Hr){var Bs;typeof ir=="function"?(Bs=ir(an,{scrollbarSize:as,ref:Vr,onScroll:vi}),ms.colWidths=Vn.map(function(Rr,Ir){var li=Rr.width,Ei=Ir===Vn.length-1?li-as:li;return typeof Ei=="number"&&!Number.isNaN(Ei)?Ei:0})):Bs=d.createElement("div",{style:(0,se.Z)((0,se.Z)({},Li),_i),onScroll:ss,ref:Vr,className:Z()("".concat(ht,"-body"))},d.createElement(qs,(0,y.Z)({style:(0,se.Z)((0,se.Z)({},Wi),{},{tableLayout:ps})},Fs),ta,ea,gs,!di&&qr&&d.createElement(ce,{stickyOffsets:Gi,flattenColumns:Vn},qr)));var Us=(0,se.Z)((0,se.Z)((0,se.Z)({noData:!an.length,maxContentScroll:ei&&Fr==="max-content"},ms),ni),{},{direction:yt,stickyClassName:ri,onScroll:vi});Ts=d.createElement(d.Fragment,null,Bn!==!1&&d.createElement(ye,(0,y.Z)({},Us,{stickyTopOffset:Yr,className:"".concat(ht,"-header"),ref:Jr}),ws),Bs,di&&di!=="top"&&d.createElement(ye,(0,y.Z)({},Us,{stickyBottomOffset:Qr,className:"".concat(ht,"-summary"),ref:Yi}),hs),Hr&&Vr.current&&Vr.current instanceof Element&&d.createElement(Ot,{ref:_r,offsetScroll:pi,scrollBodyRef:Vr,onScroll:vi,container:xi,direction:yt}))}else Ts=d.createElement("div",{style:(0,se.Z)((0,se.Z)({},Li),_i),className:Z()("".concat(ht,"-content")),onScroll:vi,ref:Vr},d.createElement(qs,(0,y.Z)({style:(0,se.Z)((0,se.Z)({},Wi),{},{tableLayout:ps})},Fs),ta,ea,Bn!==!1&&d.createElement(Ge,(0,y.Z)({},ms,ni)),gs,qr&&d.createElement(ce,{stickyOffsets:Gi,flattenColumns:Vn},qr)));var Zs=d.createElement("div",(0,y.Z)({className:Z()(ht,bt,(0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)((0,ie.Z)({},"".concat(ht,"-rtl"),yt==="rtl"),"".concat(ht,"-ping-left"),Mi),"".concat(ht,"-ping-right"),Fi),"".concat(ht,"-layout-fixed"),pt==="fixed"),"".concat(ht,"-fixed-header"),ai),"".concat(ht,"-fixed-column"),wr),"".concat(ht,"-fixed-column-gapped"),wr&&Lr),"".concat(ht,"-scroll-horizontal"),ei),"".concat(ht,"-has-fix-left"),Vn[0]&&Vn[0].fixed),"".concat(ht,"-has-fix-right"),Vn[Vn.length-1]&&Vn[Vn.length-1].fixed==="right")),style:nn,id:bn,ref:si},na),Lt&&d.createElement(De,{className:"".concat(ht,"-title")},Lt(an)),d.createElement("div",{ref:hi,className:"".concat(ht,"-container")},Ts),Vt&&d.createElement(De,{className:"".concat(ht,"-footer")},Vt(an)));ei&&(Zs=d.createElement(de.Z,{onResize:As},Zs));var ra=A(Vn,Gi,yt),Ks=d.useMemo(function(){return{scrollX:Fr,prefixCls:ht,getComponent:qn,scrollbarSize:as,direction:yt,fixedInfoList:ra,isSticky:Hr,supportSticky:Ms,componentWidth:Sr,fixHeader:ai,fixColumn:wr,horizonScroll:ei,tableLayout:ps,rowClassName:kt,expandedRowClassName:Cr.expandedRowClassName,expandIcon:vr,expandableType:Wr,expandRowByClick:Cr.expandRowByClick,expandedRowRender:Cr.expandedRowRender,onTriggerExpand:Ln,expandIconColumnIndex:Cr.expandIconColumnIndex,indentSize:Cr.indentSize,allColumnsFixedLeft:Vn.every(function(Rr){return Rr.fixed==="left"}),emptyNode:$s,columns:Jn,flattenColumns:Vn,onColumnResize:xs,hoverStartRow:Pr,hoverEndRow:Kr,onHover:Gr,rowExpandable:Cr.rowExpandable,onRow:Hn,getRowKey:Qn,expandedKeys:yr,childrenColumnName:nr,rowHoverable:Tn}},[Fr,ht,qn,as,yt,ra,Hr,Ms,Sr,ai,wr,ei,ps,kt,Cr.expandedRowClassName,vr,Wr,Cr.expandRowByClick,Cr.expandedRowRender,Ln,Cr.expandIconColumnIndex,Cr.indentSize,$s,Jn,Vn,xs,Pr,Kr,Gr,Cr.rowExpandable,Hn,Qn,yr,nr,Tn]);return d.createElement(x.Provider,{value:Ks},Zs)}var gt=d.forwardRef(ot);function wt(_e){return $(gt,_e)}var $t=wt();$t.EXPAND_COLUMN=h.w,$t.INTERNAL_HOOKS=h.R,$t.Column=tn,$t.ColumnGroup=un,$t.Summary=Ce;var rn=$t,cn=E(6790),En=re(null),wn=re(null);function Pn(_e,ct,We){var ht=ct||1;return We[_e+ht]-(We[_e]||0)}function ar(_e){var ct=_e.rowInfo,We=_e.column,ht=_e.colIndex,bt=_e.indent,kt=_e.index,nn=_e.component,Qt=_e.renderIndex,zt=_e.record,rt=_e.style,pt=_e.className,yt=_e.inverse,Lt=_e.getHeight,Vt=We.render,dn=We.dataIndex,Cn=We.className,bn=We.width,Bn=o(wn,["columnsOffset"]),Yn=Bn.columnsOffset,Zn=et(ct,We,ht,bt,kt),Hn=Zn.key,kn=Zn.fixedInfo,fr=Zn.appendCellNode,rr=Zn.additionalCellProps,hr=rr.style,vn=rr.colSpan,er=vn===void 0?1:vn,pr=rr.rowSpan,or=pr===void 0?1:pr,dr=ht-1,Tn=Pn(dr,er,Yn),an=er>1?bn-Tn:0,Sn=(0,se.Z)((0,se.Z)((0,se.Z)({},hr),rt),{},{flex:"0 0 ".concat(Tn,"px"),width:"".concat(Tn,"px"),marginRight:an,pointerEvents:"auto"}),_n=d.useMemo(function(){return yt?or<=1:er===0||or===0||or>1},[or,er,yt]);_n?Sn.visibility="hidden":yt&&(Sn.height=Lt==null?void 0:Lt(or));var qn=_n?function(){return null}:Vt,Qn={};return(or===0||er===0)&&(Qn.rowSpan=1,Qn.colSpan=1),d.createElement(_t,(0,y.Z)({className:Z()(Cn,pt),ellipsis:We.ellipsis,align:We.align,scope:We.rowScope,component:nn,prefixCls:ct.prefixCls,key:Hn,record:zt,index:kt,renderIndex:Qt,dataIndex:dn,render:qn,shouldCellUpdate:We.shouldCellUpdate},kn,{appendNode:fr,additionalProps:(0,se.Z)((0,se.Z)({},rr),{},{style:Sn},Qn)}))}var Dn=ar,In=["data","index","className","rowKey","style","extra","getHeight"],Nn=d.forwardRef(function(_e,ct){var We=_e.data,ht=_e.index,bt=_e.className,kt=_e.rowKey,nn=_e.style,Qt=_e.extra,zt=_e.getHeight,rt=(0,pe.Z)(_e,In),pt=We.record,yt=We.indent,Lt=We.index,Vt=o(x,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),dn=Vt.scrollX,Cn=Vt.flattenColumns,bn=Vt.prefixCls,Bn=Vt.fixColumn,Yn=Vt.componentWidth,Zn=o(En,["getComponent"]),Hn=Zn.getComponent,kn=Ye(pt,kt,ht,yt),fr=Hn(["body","row"],"div"),rr=Hn(["body","cell"],"div"),hr=kn.rowSupportExpand,vn=kn.expanded,er=kn.rowProps,pr=kn.expandedRowRender,or=kn.expandedRowClassName,dr;if(hr&&vn){var Tn=pr(pt,ht,yt+1,vn),an=at(or,pt,ht,yt),Sn={};Bn&&(Sn={style:(0,ie.Z)({},"--virtual-width","".concat(Yn,"px"))});var _n="".concat(bn,"-expanded-row-cell");dr=d.createElement(fr,{className:Z()("".concat(bn,"-expanded-row"),"".concat(bn,"-expanded-row-level-").concat(yt+1),an)},d.createElement(_t,{component:rr,prefixCls:bn,className:Z()(_n,(0,ie.Z)({},"".concat(_n,"-fixed"),Bn)),additionalProps:Sn},Tn))}var qn=(0,se.Z)((0,se.Z)({},nn),{},{width:dn});Qt&&(qn.position="absolute",qn.pointerEvents="none");var Qn=d.createElement(fr,(0,y.Z)({},er,rt,{"data-row-key":kt,ref:hr?null:ct,className:Z()(bt,"".concat(bn,"-row"),er==null?void 0:er.className,(0,ie.Z)({},"".concat(bn,"-row-extra"),Qt)),style:(0,se.Z)((0,se.Z)({},qn),er==null?void 0:er.style)}),Cn.map(function(ir,xr){return d.createElement(Dn,{key:xr,component:rr,rowInfo:kn,column:ir,colIndex:xr,indent:yt,index:ht,renderIndex:Lt,record:pt,inverse:Qt,getHeight:zt})}));return hr?d.createElement("div",{ref:ct},Qn,dr):Qn}),zn=O(Nn),Wn=zn,Mn=d.forwardRef(function(_e,ct){var We=_e.data,ht=_e.onScroll,bt=o(x,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),kt=bt.flattenColumns,nn=bt.onColumnResize,Qt=bt.getRowKey,zt=bt.expandedKeys,rt=bt.prefixCls,pt=bt.childrenColumnName,yt=bt.scrollX,Lt=bt.direction,Vt=o(En),dn=Vt.sticky,Cn=Vt.scrollY,bn=Vt.listItemHeight,Bn=Vt.getComponent,Yn=Vt.onScroll,Zn=d.useRef(),Hn=qe(We,pt,zt,Qt),kn=d.useMemo(function(){var dr=0;return kt.map(function(Tn){var an=Tn.width,Sn=Tn.key;return dr+=an,[Sn,an,dr]})},[kt]),fr=d.useMemo(function(){return kn.map(function(dr){return dr[2]})},[kn]);d.useEffect(function(){kn.forEach(function(dr){var Tn=(0,le.Z)(dr,2),an=Tn[0],Sn=Tn[1];nn(an,Sn)})},[kn]),d.useImperativeHandle(ct,function(){var dr,Tn={scrollTo:function(Sn){var _n;(_n=Zn.current)===null||_n===void 0||_n.scrollTo(Sn)},nativeElement:(dr=Zn.current)===null||dr===void 0?void 0:dr.nativeElement};return Object.defineProperty(Tn,"scrollLeft",{get:function(){var Sn;return((Sn=Zn.current)===null||Sn===void 0?void 0:Sn.getScrollInfo().x)||0},set:function(Sn){var _n;(_n=Zn.current)===null||_n===void 0||_n.scrollTo({left:Sn})}}),Tn});var rr=function(Tn,an){var Sn,_n=(Sn=Hn[an])===null||Sn===void 0?void 0:Sn.record,qn=Tn.onCell;if(qn){var Qn,ir=qn(_n,an);return(Qn=ir==null?void 0:ir.rowSpan)!==null&&Qn!==void 0?Qn:1}return 1},hr=function(Tn){var an=Tn.start,Sn=Tn.end,_n=Tn.getSize,qn=Tn.offsetY;if(Sn<0)return null;for(var Qn=kt.filter(function(vr){return rr(vr,an)===0}),ir=an,xr=function(nr){if(Qn=Qn.filter(function(Ln){return rr(Ln,nr)===0}),!Qn.length)return ir=nr,1},Ur=an;Ur>=0&&!xr(Ur);Ur-=1);for(var Pr=kt.filter(function(vr){return rr(vr,Sn)!==1}),Kr=Sn,Gr=function(nr){if(Pr=Pr.filter(function(Ln){return rr(Ln,nr)!==1}),!Pr.length)return Kr=Math.max(nr-1,Sn),1},zr=Sn;zr<Hn.length&&!Gr(zr);zr+=1);for(var mr=[],Cr=function(nr){var Ln=Hn[nr];if(!Ln)return 1;kt.some(function(tr){return rr(tr,nr)>1})&&mr.push(nr)},Wr=ir;Wr<=Kr;Wr+=1)Cr(Wr);var yr=mr.map(function(vr){var nr=Hn[vr],Ln=Qt(nr.record,vr),tr=function(Sr){var Dr=vr+Sr-1,$r=Qt(Hn[Dr].record,Dr),Fn=_n(Ln,$r);return Fn.bottom-Fn.top},sr=_n(Ln);return d.createElement(Wn,{key:vr,data:nr,rowKey:Ln,index:vr,style:{top:-qn+sr.top},extra:!0,getHeight:tr})});return yr},vn=d.useMemo(function(){return{columnsOffset:fr}},[fr]),er="".concat(rt,"-tbody"),pr=Bn(["body","wrapper"]),or={};return dn&&(or.position="sticky",or.bottom=0,(0,q.Z)(dn)==="object"&&dn.offsetScroll&&(or.bottom=dn.offsetScroll)),d.createElement(wn.Provider,{value:vn},d.createElement(cn.Z,{fullHeight:!1,ref:Zn,prefixCls:"".concat(er,"-virtual"),styles:{horizontalScrollBar:or},className:er,height:Cn,itemHeight:bn||24,data:Hn,itemKey:function(Tn){return Qt(Tn.record)},component:pr,scrollWidth:yt,direction:Lt,onVirtualScroll:function(Tn){var an,Sn=Tn.x;ht({currentTarget:(an=Zn.current)===null||an===void 0?void 0:an.nativeElement,scrollLeft:Sn})},onScroll:Yn,extraRender:hr},function(dr,Tn,an){var Sn=Qt(dr.record,Tn);return d.createElement(Wn,{data:dr,rowKey:Sn,index:Tn,style:an.style})}))}),On=O(Mn),yn=On,xn=function(ct,We){var ht=We.ref,bt=We.onScroll;return d.createElement(yn,{ref:ht,data:ct,onScroll:bt})};function je(_e,ct){var We=_e.data,ht=_e.columns,bt=_e.scroll,kt=_e.sticky,nn=_e.prefixCls,Qt=nn===void 0?gn:nn,zt=_e.className,rt=_e.listItemHeight,pt=_e.components,yt=_e.onScroll,Lt=bt||{},Vt=Lt.x,dn=Lt.y;typeof Vt!="number"&&(Vt=1),typeof dn!="number"&&(dn=500);var Cn=(0,Bt.zX)(function(Yn,Zn){return(0,F.Z)(pt,Yn)||Zn}),bn=(0,Bt.zX)(yt),Bn=d.useMemo(function(){return{sticky:kt,scrollY:dn,listItemHeight:rt,getComponent:Cn,onScroll:bn}},[kt,dn,rt,Cn,bn]);return d.createElement(En.Provider,{value:Bn},d.createElement(rn,(0,y.Z)({},_e,{className:Z()(zt,"".concat(Qt,"-virtual")),scroll:(0,se.Z)((0,se.Z)({},bt),{},{x:Vt}),components:(0,se.Z)((0,se.Z)({},pt),{},{body:We!=null&&We.length?xn:void 0}),columns:ht,internalHooks:h.R,tailor:!0,ref:ct})))}var Ft=d.forwardRef(je);function on(_e){return $(Ft,_e)}var pn=on(),Un=null},54451:function(Rn,Gt,E){"use strict";E.d(Gt,{g:function(){return d},v:function(){return B}});var h=E(98506),le=E(33346),ne=E(48736),oe=["expandable"],B="RC_TABLE_INTERNAL_COL_DEFINE";function d(me){var re=me.expandable,o=(0,le.Z)(me,oe),y;return"expandable"in me?y=(0,h.Z)((0,h.Z)({},o),re):y=o,y.showExpandColumn===!1&&(y.expandIconColumnIndex=-1),y}},29443:function(Rn,Gt,E){"use strict";E.d(Gt,{Z:function(){return dt}});var h=E(67711),le=E(52873),ne=E(98506),oe=E(16886),B=E(26420),d=E(33346),me=E(92310),re=E.n(me),o=E(18929),y=E(49658),T=E(59301),m=(0,T.createContext)(null),_=E(15142),b=E(29301),L=E(6089),K=E(8654),W=E(16089),$=function(Ae){var at=Ae.activeTabOffset,et=Ae.horizontal,Qe=Ae.rtl,St=Ae.indicator,Tt=St===void 0?{}:St,He=Tt.size,Wt=Tt.align,fn=Wt===void 0?"center":Wt,Rt=(0,T.useState)(),qt=(0,oe.Z)(Rt,2),Ke=qt[0],ke=qt[1],Ne=(0,T.useRef)(),I=T.useCallback(function(fe){return typeof He=="function"?He(fe):typeof He=="number"?He:fe},[He]);function ee(){W.Z.cancel(Ne.current)}return(0,T.useEffect)(function(){var fe={};if(at)if(et){fe.width=I(at.width);var ve=Qe?"right":"left";fn==="start"&&(fe[ve]=at[ve]),fn==="center"&&(fe[ve]=at[ve]+at.width/2,fe.transform=Qe?"translateX(50%)":"translateX(-50%)"),fn==="end"&&(fe[ve]=at[ve]+at.width,fe.transform="translateX(-100%)")}else fe.height=I(at.height),fn==="start"&&(fe.top=at.top),fn==="center"&&(fe.top=at.top+at.height/2,fe.transform="translateY(-50%)"),fn==="end"&&(fe.top=at.top+at.height,fe.transform="translateY(-100%)");return ee(),Ne.current=(0,W.Z)(function(){ke(fe)}),ee},[at,et,Qe,fn,I]),{style:Ke}},O=$,U={width:0,height:0,left:0,top:0};function R(ge,Ae,at){return(0,T.useMemo)(function(){for(var et,Qe=new Map,St=Ae.get((et=ge[0])===null||et===void 0?void 0:et.key)||U,Tt=St.left+St.width,He=0;He<ge.length;He+=1){var Wt=ge[He].key,fn=Ae.get(Wt);if(!fn){var Rt;fn=Ae.get((Rt=ge[He-1])===null||Rt===void 0?void 0:Rt.key)||U}var qt=Qe.get(Wt)||(0,ne.Z)({},fn);qt.right=Tt-qt.left-qt.width,Qe.set(Wt,qt)}return Qe},[ge.map(function(et){return et.key}).join("_"),Ae,at])}function x(ge,Ae){var at=T.useRef(ge),et=T.useState({}),Qe=(0,oe.Z)(et,2),St=Qe[1];function Tt(He){var Wt=typeof He=="function"?He(at.current):He;Wt!==at.current&&Ae(Wt,at.current),at.current=Wt,St({})}return[at.current,Tt]}var V=.1,X=.01,H=20,q=Math.pow(.995,H);function se(ge,Ae){var at=(0,T.useState)(),et=(0,oe.Z)(at,2),Qe=et[0],St=et[1],Tt=(0,T.useState)(0),He=(0,oe.Z)(Tt,2),Wt=He[0],fn=He[1],Rt=(0,T.useState)(0),qt=(0,oe.Z)(Rt,2),Ke=qt[0],ke=qt[1],Ne=(0,T.useState)(),I=(0,oe.Z)(Ne,2),ee=I[0],fe=I[1],ve=(0,T.useRef)();function ye(w){var ae=w.touches[0],A=ae.screenX,Ze=ae.screenY;St({x:A,y:Ze}),window.clearInterval(ve.current)}function Ue(w){if(Qe){var ae=w.touches[0],A=ae.screenX,Ze=ae.screenY;St({x:A,y:Ze});var Ee=A-Qe.x,Le=Ze-Qe.y;Ae(Ee,Le);var ze=Date.now();fn(ze),ke(ze-Wt),fe({x:Ee,y:Le})}}function $e(){if(Qe&&(St(null),fe(null),ee)){var w=ee.x/Ke,ae=ee.y/Ke,A=Math.abs(w),Ze=Math.abs(ae);if(Math.max(A,Ze)<V)return;var Ee=w,Le=ae;ve.current=window.setInterval(function(){if(Math.abs(Ee)<X&&Math.abs(Le)<X){window.clearInterval(ve.current);return}Ee*=q,Le*=q,Ae(Ee*H,Le*H)},H)}}var ut=(0,T.useRef)();function At(w){var ae=w.deltaX,A=w.deltaY,Ze=0,Ee=Math.abs(ae),Le=Math.abs(A);Ee===Le?Ze=ut.current==="x"?ae:A:Ee>Le?(Ze=ae,ut.current="x"):(Ze=A,ut.current="y"),Ae(-Ze,-Ze)&&w.preventDefault()}var Ge=(0,T.useRef)(null);Ge.current={onTouchStart:ye,onTouchMove:Ue,onTouchEnd:$e,onWheel:At},T.useEffect(function(){function w(Ee){Ge.current.onTouchStart(Ee)}function ae(Ee){Ge.current.onTouchMove(Ee)}function A(Ee){Ge.current.onTouchEnd(Ee)}function Ze(Ee){Ge.current.onWheel(Ee)}return document.addEventListener("touchmove",ae,{passive:!1}),document.addEventListener("touchend",A,{passive:!0}),ge.current.addEventListener("touchstart",w,{passive:!0}),ge.current.addEventListener("wheel",Ze,{passive:!1}),function(){document.removeEventListener("touchmove",ae),document.removeEventListener("touchend",A)}},[])}var ie=E(34280);function Fe(ge){var Ae=(0,T.useState)(0),at=(0,oe.Z)(Ae,2),et=at[0],Qe=at[1],St=(0,T.useRef)(0),Tt=(0,T.useRef)();return Tt.current=ge,(0,ie.o)(function(){var He;(He=Tt.current)===null||He===void 0||He.call(Tt)},[et]),function(){St.current===et&&(St.current+=1,Qe(St.current))}}function Z(ge){var Ae=(0,T.useRef)([]),at=(0,T.useState)({}),et=(0,oe.Z)(at,2),Qe=et[1],St=(0,T.useRef)(typeof ge=="function"?ge():ge),Tt=Fe(function(){var Wt=St.current;Ae.current.forEach(function(fn){Wt=fn(Wt)}),Ae.current=[],St.current=Wt,Qe({})});function He(Wt){Ae.current.push(Wt),Tt()}return[St.current,He]}var k={width:0,height:0,left:0,top:0,right:0};function F(ge,Ae,at,et,Qe,St,Tt){var He=Tt.tabs,Wt=Tt.tabPosition,fn=Tt.rtl,Rt,qt,Ke;return["top","bottom"].includes(Wt)?(Rt="width",qt=fn?"right":"left",Ke=Math.abs(at)):(Rt="height",qt="top",Ke=-at),(0,T.useMemo)(function(){if(!He.length)return[0,0];for(var ke=He.length,Ne=ke,I=0;I<ke;I+=1){var ee=ge.get(He[I].key)||k;if(Math.floor(ee[qt]+ee[Rt])>Math.floor(Ke+Ae)){Ne=I-1;break}}for(var fe=0,ve=ke-1;ve>=0;ve-=1){var ye=ge.get(He[ve].key)||k;if(ye[qt]<Ke){fe=ve+1;break}}return fe>=Ne?[0,0]:[fe,Ne]},[ge,Ae,et,Qe,St,Ke,Wt,He.map(function(ke){return ke.key}).join("_"),fn])}function G(ge){var Ae;return ge instanceof Map?(Ae={},ge.forEach(function(at,et){Ae[et]=at})):Ae=ge,JSON.stringify(Ae)}var J="TABS_DQ";function j(ge){return String(ge).replace(/"/g,J)}function v(ge,Ae,at,et){return!(!at||et||ge===!1||ge===void 0&&(Ae===!1||Ae===null))}var g=T.forwardRef(function(ge,Ae){var at=ge.prefixCls,et=ge.editable,Qe=ge.locale,St=ge.style;return!et||et.showAdd===!1?null:T.createElement("button",{ref:Ae,type:"button",className:"".concat(at,"-nav-add"),style:St,"aria-label":(Qe==null?void 0:Qe.addAriaLabel)||"Add tab",onClick:function(He){et.onEdit("add",{event:He})}},et.addIcon||"+")}),M=g,ue=T.forwardRef(function(ge,Ae){var at=ge.position,et=ge.prefixCls,Qe=ge.extra;if(!Qe)return null;var St,Tt={};return(0,B.Z)(Qe)==="object"&&!T.isValidElement(Qe)?Tt=Qe:Tt.right=Qe,at==="right"&&(St=Tt.right),at==="left"&&(St=Tt.left),St?T.createElement("div",{className:"".concat(et,"-extra-content"),ref:Ae},St):null}),Ie=ue,Je=E(96478),Dt=E(28321),vt=E(10228),Mt=T.forwardRef(function(ge,Ae){var at=ge.prefixCls,et=ge.id,Qe=ge.tabs,St=ge.locale,Tt=ge.mobile,He=ge.more,Wt=He===void 0?{}:He,fn=ge.style,Rt=ge.className,qt=ge.editable,Ke=ge.tabBarGutter,ke=ge.rtl,Ne=ge.removeAriaLabel,I=ge.onTabClick,ee=ge.getPopupContainer,fe=ge.popupClassName,ve=(0,T.useState)(!1),ye=(0,oe.Z)(ve,2),Ue=ye[0],$e=ye[1],ut=(0,T.useState)(null),At=(0,oe.Z)(ut,2),Ge=At[0],w=At[1],ae=Wt.icon,A=ae===void 0?"More":ae,Ze="".concat(et,"-more-popup"),Ee="".concat(at,"-dropdown"),Le=Ge!==null?"".concat(Ze,"-").concat(Ge):null,ze=St==null?void 0:St.dropdownAriaLabel;function Ve(nt,st){nt.preventDefault(),nt.stopPropagation(),qt.onEdit("remove",{key:st,event:nt})}var it=T.createElement(Dt.ZP,{onClick:function(st){var Ct=st.key,ft=st.domEvent;I(Ct,ft),$e(!1)},prefixCls:"".concat(Ee,"-menu"),id:Ze,tabIndex:-1,role:"listbox","aria-activedescendant":Le,selectedKeys:[Ge],"aria-label":ze!==void 0?ze:"expanded dropdown"},Qe.map(function(nt){var st=nt.closable,Ct=nt.disabled,ft=nt.closeIcon,Ot=nt.key,Zt=nt.label,tn=v(st,ft,qt,Ct);return T.createElement(Dt.sN,{key:Ot,id:"".concat(Ze,"-").concat(Ot),role:"option","aria-controls":et&&"".concat(et,"-panel-").concat(Ot),disabled:Ct},T.createElement("span",null,Zt),tn&&T.createElement("button",{type:"button","aria-label":Ne||"remove",tabIndex:0,className:"".concat(Ee,"-menu-item-remove"),onClick:function(un){un.stopPropagation(),Ve(un,Ot)}},ft||qt.removeIcon||"\xD7"))}));function Pt(nt){for(var st=Qe.filter(function(tn){return!tn.disabled}),Ct=st.findIndex(function(tn){return tn.key===Ge})||0,ft=st.length,Ot=0;Ot<ft;Ot+=1){Ct=(Ct+nt+ft)%ft;var Zt=st[Ct];if(!Zt.disabled){w(Zt.key);return}}}function Kt(nt){var st=nt.which;if(!Ue){[vt.Z.DOWN,vt.Z.SPACE,vt.Z.ENTER].includes(st)&&($e(!0),nt.preventDefault());return}switch(st){case vt.Z.UP:Pt(-1),nt.preventDefault();break;case vt.Z.DOWN:Pt(1),nt.preventDefault();break;case vt.Z.ESC:$e(!1);break;case vt.Z.SPACE:case vt.Z.ENTER:Ge!==null&&I(Ge,nt);break}}(0,T.useEffect)(function(){var nt=document.getElementById(Le);nt&&nt.scrollIntoView&&nt.scrollIntoView(!1)},[Ge]),(0,T.useEffect)(function(){Ue||w(null)},[Ue]);var mn=(0,le.Z)({},ke?"marginRight":"marginLeft",Ke);Qe.length||(mn.visibility="hidden",mn.order=1);var De=re()((0,le.Z)({},"".concat(Ee,"-rtl"),ke)),Se=Tt?null:T.createElement(Je.Z,(0,h.Z)({prefixCls:Ee,overlay:it,visible:Qe.length?Ue:!1,onVisibleChange:$e,overlayClassName:re()(De,fe),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:ee},Wt),T.createElement("button",{type:"button",className:"".concat(at,"-nav-more"),style:mn,"aria-haspopup":"listbox","aria-controls":Ze,id:"".concat(et,"-more"),"aria-expanded":Ue,onKeyDown:Kt},A));return T.createElement("div",{className:re()("".concat(at,"-nav-operations"),Rt),style:fn,ref:Ae},Se,T.createElement(M,{prefixCls:at,locale:St,editable:qt}))}),Bt=T.memo(Mt,function(ge,Ae){return Ae.tabMoving}),we=function(Ae){var at=Ae.prefixCls,et=Ae.id,Qe=Ae.active,St=Ae.focus,Tt=Ae.tab,He=Tt.key,Wt=Tt.label,fn=Tt.disabled,Rt=Tt.closeIcon,qt=Tt.icon,Ke=Ae.closable,ke=Ae.renderWrapper,Ne=Ae.removeAriaLabel,I=Ae.editable,ee=Ae.onClick,fe=Ae.onFocus,ve=Ae.onBlur,ye=Ae.onKeyDown,Ue=Ae.onMouseDown,$e=Ae.onMouseUp,ut=Ae.style,At=Ae.tabCount,Ge=Ae.currentPosition,w="".concat(at,"-tab"),ae=v(Ke,Rt,I,fn);function A(Ve){fn||ee(Ve)}function Ze(Ve){Ve.preventDefault(),Ve.stopPropagation(),I.onEdit("remove",{key:He,event:Ve})}var Ee=T.useMemo(function(){return qt&&typeof Wt=="string"?T.createElement("span",null,Wt):Wt},[Wt,qt]),Le=T.useRef(null);T.useEffect(function(){St&&Le.current&&Le.current.focus()},[St]);var ze=T.createElement("div",{key:He,"data-node-key":j(He),className:re()(w,(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)({},"".concat(w,"-with-remove"),ae),"".concat(w,"-active"),Qe),"".concat(w,"-disabled"),fn),"".concat(w,"-focus"),St)),style:ut,onClick:A},T.createElement("div",{ref:Le,role:"tab","aria-selected":Qe,id:et&&"".concat(et,"-tab-").concat(He),className:"".concat(w,"-btn"),"aria-controls":et&&"".concat(et,"-panel-").concat(He),"aria-disabled":fn,tabIndex:fn?null:Qe?0:-1,onClick:function(it){it.stopPropagation(),A(it)},onKeyDown:ye,onMouseDown:Ue,onMouseUp:$e,onFocus:fe,onBlur:ve},St&&T.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(Ge," of ").concat(At)),qt&&T.createElement("span",{className:"".concat(w,"-icon")},qt),Wt&&Ee),ae&&T.createElement("button",{type:"button",role:"tab","aria-label":Ne||"remove",tabIndex:Qe?0:-1,className:"".concat(w,"-remove"),onClick:function(it){it.stopPropagation(),Ze(it)}},Rt||I.removeIcon||"\xD7"));return ke?ke(ze):ze},Yt=we,_t=function(Ae,at){var et=Ae.offsetWidth,Qe=Ae.offsetHeight,St=Ae.offsetTop,Tt=Ae.offsetLeft,He=Ae.getBoundingClientRect(),Wt=He.width,fn=He.height,Rt=He.left,qt=He.top;return Math.abs(Wt-et)<1?[Wt,fn,Rt-at.left,qt-at.top]:[et,Qe,Tt,St]},Xt=function(Ae){var at=Ae.current||{},et=at.offsetWidth,Qe=et===void 0?0:et,St=at.offsetHeight,Tt=St===void 0?0:St;if(Ae.current){var He=Ae.current.getBoundingClientRect(),Wt=He.width,fn=He.height;if(Math.abs(Wt-Qe)<1)return[Wt,fn]}return[Qe,Tt]},lt=function(Ae,at){return Ae[at?0:1]},tt=T.forwardRef(function(ge,Ae){var at=ge.className,et=ge.style,Qe=ge.id,St=ge.animated,Tt=ge.activeKey,He=ge.rtl,Wt=ge.extra,fn=ge.editable,Rt=ge.locale,qt=ge.tabPosition,Ke=ge.tabBarGutter,ke=ge.children,Ne=ge.onTabClick,I=ge.onTabScroll,ee=ge.indicator,fe=T.useContext(m),ve=fe.prefixCls,ye=fe.tabs,Ue=(0,T.useRef)(null),$e=(0,T.useRef)(null),ut=(0,T.useRef)(null),At=(0,T.useRef)(null),Ge=(0,T.useRef)(null),w=(0,T.useRef)(null),ae=(0,T.useRef)(null),A=qt==="top"||qt==="bottom",Ze=x(0,function(Tn,an){A&&I&&I({direction:Tn>an?"left":"right"})}),Ee=(0,oe.Z)(Ze,2),Le=Ee[0],ze=Ee[1],Ve=x(0,function(Tn,an){!A&&I&&I({direction:Tn>an?"top":"bottom"})}),it=(0,oe.Z)(Ve,2),Pt=it[0],Kt=it[1],mn=(0,T.useState)([0,0]),De=(0,oe.Z)(mn,2),Se=De[0],nt=De[1],st=(0,T.useState)([0,0]),Ct=(0,oe.Z)(st,2),ft=Ct[0],Ot=Ct[1],Zt=(0,T.useState)([0,0]),tn=(0,oe.Z)(Zt,2),Nt=tn[0],un=tn[1],gn=(0,T.useState)([0,0]),ln=(0,oe.Z)(gn,2),jt=ln[0],Be=ln[1],ot=Z(new Map),gt=(0,oe.Z)(ot,2),wt=gt[0],$t=gt[1],rn=R(ye,wt,ft[0]),cn=lt(Se,A),En=lt(ft,A),wn=lt(Nt,A),Pn=lt(jt,A),ar=Math.floor(cn)<Math.floor(En+wn),Dn=ar?cn-Pn:cn-wn,In="".concat(ve,"-nav-operations-hidden"),Nn=0,zn=0;A&&He?(Nn=0,zn=Math.max(0,En-Dn)):(Nn=Math.min(0,Dn-En),zn=0);function Wn(Tn){return Tn<Nn?Nn:Tn>zn?zn:Tn}var Mn=(0,T.useRef)(null),On=(0,T.useState)(),yn=(0,oe.Z)(On,2),xn=yn[0],je=yn[1];function Ft(){je(Date.now())}function on(){Mn.current&&clearTimeout(Mn.current)}se(At,function(Tn,an){function Sn(_n,qn){_n(function(Qn){var ir=Wn(Qn+qn);return ir})}return ar?(A?Sn(ze,Tn):Sn(Kt,an),on(),Ft(),!0):!1}),(0,T.useEffect)(function(){return on(),xn&&(Mn.current=setTimeout(function(){je(0)},100)),on},[xn]);var pn=F(rn,Dn,A?Le:Pt,En,wn,Pn,(0,ne.Z)((0,ne.Z)({},ge),{},{tabs:ye})),Un=(0,oe.Z)(pn,2),_e=Un[0],ct=Un[1],We=(0,L.Z)(function(){var Tn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tt,an=rn.get(Tn)||{width:0,height:0,left:0,right:0,top:0};if(A){var Sn=Le;He?an.right<Le?Sn=an.right:an.right+an.width>Le+Dn&&(Sn=an.right+an.width-Dn):an.left<-Le?Sn=-an.left:an.left+an.width>-Le+Dn&&(Sn=-(an.left+an.width-Dn)),Kt(0),ze(Wn(Sn))}else{var _n=Pt;an.top<-Pt?_n=-an.top:an.top+an.height>-Pt+Dn&&(_n=-(an.top+an.height-Dn)),ze(0),Kt(Wn(_n))}}),ht=(0,T.useState)(),bt=(0,oe.Z)(ht,2),kt=bt[0],nn=bt[1],Qt=(0,T.useState)(!1),zt=(0,oe.Z)(Qt,2),rt=zt[0],pt=zt[1],yt=ye.filter(function(Tn){return!Tn.disabled}).map(function(Tn){return Tn.key}),Lt=function(an){var Sn=yt.indexOf(kt||Tt),_n=yt.length,qn=(Sn+an+_n)%_n,Qn=yt[qn];nn(Qn)},Vt=function(an){var Sn=an.code,_n=He&&A,qn=yt[0],Qn=yt[yt.length-1];switch(Sn){case"ArrowLeft":{A&&Lt(_n?1:-1);break}case"ArrowRight":{A&&Lt(_n?-1:1);break}case"ArrowUp":{an.preventDefault(),A||Lt(-1);break}case"ArrowDown":{an.preventDefault(),A||Lt(1);break}case"Home":{an.preventDefault(),nn(qn);break}case"End":{an.preventDefault(),nn(Qn);break}case"Enter":case"Space":{an.preventDefault(),Ne(Tt,an);break}case"Backspace":case"Delete":{var ir=yt.indexOf(kt),xr=ye.find(function(Pr){return Pr.key===kt}),Ur=v(xr==null?void 0:xr.closable,xr==null?void 0:xr.closeIcon,fn,xr==null?void 0:xr.disabled);Ur&&(an.preventDefault(),an.stopPropagation(),fn.onEdit("remove",{key:kt,event:an}),ir===yt.length-1?Lt(-1):Lt(1));break}}},dn={};A?dn[He?"marginRight":"marginLeft"]=Ke:dn.marginTop=Ke;var Cn=ye.map(function(Tn,an){var Sn=Tn.key;return T.createElement(Yt,{id:Qe,prefixCls:ve,key:Sn,tab:Tn,style:an===0?void 0:dn,closable:Tn.closable,editable:fn,active:Sn===Tt,focus:Sn===kt,renderWrapper:ke,removeAriaLabel:Rt==null?void 0:Rt.removeAriaLabel,tabCount:yt.length,currentPosition:an+1,onClick:function(qn){Ne(Sn,qn)},onKeyDown:Vt,onFocus:function(){rt||nn(Sn),We(Sn),Ft(),At.current&&(He||(At.current.scrollLeft=0),At.current.scrollTop=0)},onBlur:function(){nn(void 0)},onMouseDown:function(){pt(!0)},onMouseUp:function(){pt(!1)}})}),bn=function(){return $t(function(){var an,Sn=new Map,_n=(an=Ge.current)===null||an===void 0?void 0:an.getBoundingClientRect();return ye.forEach(function(qn){var Qn,ir=qn.key,xr=(Qn=Ge.current)===null||Qn===void 0?void 0:Qn.querySelector('[data-node-key="'.concat(j(ir),'"]'));if(xr){var Ur=_t(xr,_n),Pr=(0,oe.Z)(Ur,4),Kr=Pr[0],Gr=Pr[1],zr=Pr[2],mr=Pr[3];Sn.set(ir,{width:Kr,height:Gr,left:zr,top:mr})}}),Sn})};(0,T.useEffect)(function(){bn()},[ye.map(function(Tn){return Tn.key}).join("_")]);var Bn=Fe(function(){var Tn=Xt(Ue),an=Xt($e),Sn=Xt(ut);nt([Tn[0]-an[0]-Sn[0],Tn[1]-an[1]-Sn[1]]);var _n=Xt(ae);un(_n);var qn=Xt(w);Be(qn);var Qn=Xt(Ge);Ot([Qn[0]-_n[0],Qn[1]-_n[1]]),bn()}),Yn=ye.slice(0,_e),Zn=ye.slice(ct+1),Hn=[].concat((0,_.Z)(Yn),(0,_.Z)(Zn)),kn=rn.get(Tt),fr=O({activeTabOffset:kn,horizontal:A,indicator:ee,rtl:He}),rr=fr.style;(0,T.useEffect)(function(){We()},[Tt,Nn,zn,G(kn),G(rn),A]),(0,T.useEffect)(function(){Bn()},[He]);var hr=!!Hn.length,vn="".concat(ve,"-nav-wrap"),er,pr,or,dr;return A?He?(pr=Le>0,er=Le!==zn):(er=Le<0,pr=Le!==Nn):(or=Pt<0,dr=Pt!==Nn),T.createElement(b.Z,{onResize:Bn},T.createElement("div",{ref:(0,K.x1)(Ae,Ue),role:"tablist","aria-orientation":A?"horizontal":"vertical",className:re()("".concat(ve,"-nav"),at),style:et,onKeyDown:function(){Ft()}},T.createElement(Ie,{ref:$e,position:"left",extra:Wt,prefixCls:ve}),T.createElement(b.Z,{onResize:Bn},T.createElement("div",{className:re()(vn,(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)({},"".concat(vn,"-ping-left"),er),"".concat(vn,"-ping-right"),pr),"".concat(vn,"-ping-top"),or),"".concat(vn,"-ping-bottom"),dr)),ref:At},T.createElement(b.Z,{onResize:Bn},T.createElement("div",{ref:Ge,className:"".concat(ve,"-nav-list"),style:{transform:"translate(".concat(Le,"px, ").concat(Pt,"px)"),transition:xn?"none":void 0}},Cn,T.createElement(M,{ref:ae,prefixCls:ve,locale:Rt,editable:fn,style:(0,ne.Z)((0,ne.Z)({},Cn.length===0?void 0:dn),{},{visibility:hr?"hidden":null})}),T.createElement("div",{className:re()("".concat(ve,"-ink-bar"),(0,le.Z)({},"".concat(ve,"-ink-bar-animated"),St.inkBar)),style:rr}))))),T.createElement(Bt,(0,h.Z)({},ge,{removeAriaLabel:Rt==null?void 0:Rt.removeAriaLabel,ref:w,prefixCls:ve,tabs:Hn,className:!hr&&In,tabMoving:!!xn})),T.createElement(Ie,{ref:ut,position:"right",extra:Wt,prefixCls:ve})))}),Te=tt,pe=T.forwardRef(function(ge,Ae){var at=ge.prefixCls,et=ge.className,Qe=ge.style,St=ge.id,Tt=ge.active,He=ge.tabKey,Wt=ge.children;return T.createElement("div",{id:St&&"".concat(St,"-panel-").concat(He),role:"tabpanel",tabIndex:Tt?0:-1,"aria-labelledby":St&&"".concat(St,"-tab-").concat(He),"aria-hidden":!Tt,style:Qe,className:re()(at,Tt&&"".concat(at,"-active"),et),ref:Ae},Wt)}),N=pe,xe=["renderTabBar"],Pe=["label","key"],z=function(Ae){var at=Ae.renderTabBar,et=(0,d.Z)(Ae,xe),Qe=T.useContext(m),St=Qe.tabs;if(at){var Tt=(0,ne.Z)((0,ne.Z)({},et),{},{panes:St.map(function(He){var Wt=He.label,fn=He.key,Rt=(0,d.Z)(He,Pe);return T.createElement(N,(0,h.Z)({tab:Wt,key:fn,tabKey:fn},Rt))})});return at(Tt,Te)}return T.createElement(Te,et)},P=z,ce=E(77900),Ce=["key","forceRender","style","className","destroyInactiveTabPane"],de=function(Ae){var at=Ae.id,et=Ae.activeKey,Qe=Ae.animated,St=Ae.tabPosition,Tt=Ae.destroyInactiveTabPane,He=T.useContext(m),Wt=He.prefixCls,fn=He.tabs,Rt=Qe.tabPane,qt="".concat(Wt,"-tabpane");return T.createElement("div",{className:re()("".concat(Wt,"-content-holder"))},T.createElement("div",{className:re()("".concat(Wt,"-content"),"".concat(Wt,"-content-").concat(St),(0,le.Z)({},"".concat(Wt,"-content-animated"),Rt))},fn.map(function(Ke){var ke=Ke.key,Ne=Ke.forceRender,I=Ke.style,ee=Ke.className,fe=Ke.destroyInactiveTabPane,ve=(0,d.Z)(Ke,Ce),ye=ke===et;return T.createElement(ce.default,(0,h.Z)({key:ke,visible:ye,forceRender:Ne,removeOnLeave:!!(Tt||fe),leavedClassName:"".concat(qt,"-hidden")},Qe.tabPaneMotion),function(Ue,$e){var ut=Ue.style,At=Ue.className;return T.createElement(N,(0,h.Z)({},ve,{prefixCls:qt,id:at,tabKey:ke,animated:Rt,active:ye,style:(0,ne.Z)((0,ne.Z)({},I),ut),className:re()(ee,At),ref:$e}))})})))},Q=de,he=E(48736);function Oe(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Ae;return ge===!1?Ae={inkBar:!1,tabPane:!1}:ge===!0?Ae={inkBar:!0,tabPane:!1}:Ae=(0,ne.Z)({inkBar:!0},(0,B.Z)(ge)==="object"?ge:{}),Ae.tabPaneMotion&&Ae.tabPane===void 0&&(Ae.tabPane=!0),!Ae.tabPaneMotion&&Ae.tabPane&&(Ae.tabPane=!1),Ae}var Re=["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=T.forwardRef(function(ge,Ae){var at=ge.id,et=ge.prefixCls,Qe=et===void 0?"rc-tabs":et,St=ge.className,Tt=ge.items,He=ge.direction,Wt=ge.activeKey,fn=ge.defaultActiveKey,Rt=ge.editable,qt=ge.animated,Ke=ge.tabPosition,ke=Ke===void 0?"top":Ke,Ne=ge.tabBarGutter,I=ge.tabBarStyle,ee=ge.tabBarExtraContent,fe=ge.locale,ve=ge.more,ye=ge.destroyInactiveTabPane,Ue=ge.renderTabBar,$e=ge.onChange,ut=ge.onTabClick,At=ge.onTabScroll,Ge=ge.getPopupContainer,w=ge.popupClassName,ae=ge.indicator,A=(0,d.Z)(ge,Re),Ze=T.useMemo(function(){return(Tt||[]).filter(function(jt){return jt&&(0,B.Z)(jt)==="object"&&"key"in jt})},[Tt]),Ee=He==="rtl",Le=Oe(qt),ze=(0,T.useState)(!1),Ve=(0,oe.Z)(ze,2),it=Ve[0],Pt=Ve[1];(0,T.useEffect)(function(){Pt((0,y.Z)())},[]);var Kt=(0,o.Z)(function(){var jt;return(jt=Ze[0])===null||jt===void 0?void 0:jt.key},{value:Wt,defaultValue:fn}),mn=(0,oe.Z)(Kt,2),De=mn[0],Se=mn[1],nt=(0,T.useState)(function(){return Ze.findIndex(function(jt){return jt.key===De})}),st=(0,oe.Z)(nt,2),Ct=st[0],ft=st[1];(0,T.useEffect)(function(){var jt=Ze.findIndex(function(ot){return ot.key===De});if(jt===-1){var Be;jt=Math.max(0,Math.min(Ct,Ze.length-1)),Se((Be=Ze[jt])===null||Be===void 0?void 0:Be.key)}ft(jt)},[Ze.map(function(jt){return jt.key}).join("_"),De,Ct]);var Ot=(0,o.Z)(null,{value:at}),Zt=(0,oe.Z)(Ot,2),tn=Zt[0],Nt=Zt[1];(0,T.useEffect)(function(){at||(Nt("rc-tabs-".concat(qe)),qe+=1)},[]);function un(jt,Be){ut==null||ut(jt,Be);var ot=jt!==De;Se(jt),ot&&($e==null||$e(jt))}var gn={id:tn,activeKey:De,animated:Le,tabPosition:ke,rtl:Ee,mobile:it},ln=(0,ne.Z)((0,ne.Z)({},gn),{},{editable:Rt,locale:fe,more:ve,tabBarGutter:Ne,onTabClick:un,onTabScroll:At,extra:ee,style:I,panes:null,getPopupContainer:Ge,popupClassName:w,indicator:ae});return T.createElement(m.Provider,{value:{tabs:Ze,prefixCls:Qe}},T.createElement("div",(0,h.Z)({ref:Ae,id:at,className:re()(Qe,"".concat(Qe,"-").concat(ke),(0,le.Z)((0,le.Z)((0,le.Z)({},"".concat(Qe,"-mobile"),it),"".concat(Qe,"-editable"),Rt),"".concat(Qe,"-rtl"),Ee),St)},A),T.createElement(P,(0,h.Z)({},ln,{renderTabBar:Ue})),T.createElement(Q,(0,h.Z)({destroyInactiveTabPane:ye},gn,{animated:Le}))))}),Et=Ye,dt=Et},22711:function(Rn,Gt,E){"use strict";E.r(Gt),E.d(Gt,{ResizableTextArea:function(){return Fe},default:function(){return G}});var h=E(67711),le=E(52873),ne=E(98506),oe=E(15142),B=E(16886),d=E(33346),me=E(92310),re=E.n(me),o=E(36901),y=E(66003),T=E(30292),m=E(18929),_=E(59301),b=E(26420),L=E(29301),K=E(34280),W=E(16089),$=`
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;
`,O=["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"],U={},R;function x(J){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=J.getAttribute("id")||J.getAttribute("data-reactid")||J.getAttribute("name");if(j&&U[v])return U[v];var g=window.getComputedStyle(J),M=g.getPropertyValue("box-sizing")||g.getPropertyValue("-moz-box-sizing")||g.getPropertyValue("-webkit-box-sizing"),ue=parseFloat(g.getPropertyValue("padding-bottom"))+parseFloat(g.getPropertyValue("padding-top")),Ie=parseFloat(g.getPropertyValue("border-bottom-width"))+parseFloat(g.getPropertyValue("border-top-width")),Je=O.map(function(vt){return"".concat(vt,":").concat(g.getPropertyValue(vt))}).join(";"),Dt={sizingStyle:Je,paddingSize:ue,borderSize:Ie,boxSizing:M};return j&&v&&(U[v]=Dt),Dt}function V(J){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;R||(R=document.createElement("textarea"),R.setAttribute("tab-index","-1"),R.setAttribute("aria-hidden","true"),R.setAttribute("name","hiddenTextarea"),document.body.appendChild(R)),J.getAttribute("wrap")?R.setAttribute("wrap",J.getAttribute("wrap")):R.removeAttribute("wrap");var M=x(J,j),ue=M.paddingSize,Ie=M.borderSize,Je=M.boxSizing,Dt=M.sizingStyle;R.setAttribute("style","".concat(Dt,";").concat($)),R.value=J.value||J.placeholder||"";var vt=void 0,Mt=void 0,Bt,we=R.scrollHeight;if(Je==="border-box"?we+=Ie:Je==="content-box"&&(we-=ue),v!==null||g!==null){R.value=" ";var Yt=R.scrollHeight-ue;v!==null&&(vt=Yt*v,Je==="border-box"&&(vt=vt+ue+Ie),we=Math.max(vt,we)),g!==null&&(Mt=Yt*g,Je==="border-box"&&(Mt=Mt+ue+Ie),Bt=we>Mt?"":"hidden",we=Math.min(Mt,we))}var _t={height:we,overflowY:Bt,resize:"none"};return vt&&(_t.minHeight=vt),Mt&&(_t.maxHeight=Mt),_t}var X=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],H=0,q=1,se=2,ie=_.forwardRef(function(J,j){var v=J,g=v.prefixCls,M=v.defaultValue,ue=v.value,Ie=v.autoSize,Je=v.onResize,Dt=v.className,vt=v.style,Mt=v.disabled,Bt=v.onChange,we=v.onInternalAutoSize,Yt=(0,d.Z)(v,X),_t=(0,m.Z)(M,{value:ue,postState:function(St){return St!=null?St:""}}),Xt=(0,B.Z)(_t,2),lt=Xt[0],tt=Xt[1],Te=function(St){tt(St.target.value),Bt==null||Bt(St)},pe=_.useRef();_.useImperativeHandle(j,function(){return{textArea:pe.current}});var N=_.useMemo(function(){return Ie&&(0,b.Z)(Ie)==="object"?[Ie.minRows,Ie.maxRows]:[]},[Ie]),xe=(0,B.Z)(N,2),Pe=xe[0],z=xe[1],P=!!Ie,ce=function(){try{if(document.activeElement===pe.current){var St=pe.current,Tt=St.selectionStart,He=St.selectionEnd,Wt=St.scrollTop;pe.current.setSelectionRange(Tt,He),pe.current.scrollTop=Wt}}catch(fn){}},Ce=_.useState(se),de=(0,B.Z)(Ce,2),Q=de[0],he=de[1],Oe=_.useState(),Re=(0,B.Z)(Oe,2),qe=Re[0],Ye=Re[1],Et=function(){he(H)};(0,K.Z)(function(){P&&Et()},[ue,Pe,z,P]),(0,K.Z)(function(){if(Q===H)he(q);else if(Q===q){var Qe=V(pe.current,!1,Pe,z);he(se),Ye(Qe)}else ce()},[Q]);var dt=_.useRef(),ge=function(){W.Z.cancel(dt.current)},Ae=function(St){Q===se&&(Je==null||Je(St),Ie&&(ge(),dt.current=(0,W.Z)(function(){Et()})))};_.useEffect(function(){return ge},[]);var at=P?qe:null,et=(0,ne.Z)((0,ne.Z)({},vt),at);return(Q===H||Q===q)&&(et.overflowY="hidden",et.overflowX="hidden"),_.createElement(L.Z,{onResize:Ae,disabled:!(Ie||Je)},_.createElement("textarea",(0,h.Z)({},Yt,{ref:pe,style:et,className:re()(g,Dt,(0,le.Z)({},"".concat(g,"-disabled"),Mt)),disabled:Mt,value:lt,onChange:Te})))}),Fe=ie,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"],k=_.forwardRef(function(J,j){var v,g=J.defaultValue,M=J.value,ue=J.onFocus,Ie=J.onBlur,Je=J.onChange,Dt=J.allowClear,vt=J.maxLength,Mt=J.onCompositionStart,Bt=J.onCompositionEnd,we=J.suffix,Yt=J.prefixCls,_t=Yt===void 0?"rc-textarea":Yt,Xt=J.showCount,lt=J.count,tt=J.className,Te=J.style,pe=J.disabled,N=J.hidden,xe=J.classNames,Pe=J.styles,z=J.onResize,P=J.onClear,ce=J.onPressEnter,Ce=J.readOnly,de=J.autoSize,Q=J.onKeyDown,he=(0,d.Z)(J,Z),Oe=(0,m.Z)(g,{value:M,defaultValue:g}),Re=(0,B.Z)(Oe,2),qe=Re[0],Ye=Re[1],Et=qe==null?"":String(qe),dt=_.useState(!1),ge=(0,B.Z)(dt,2),Ae=ge[0],at=ge[1],et=_.useRef(!1),Qe=_.useState(null),St=(0,B.Z)(Qe,2),Tt=St[0],He=St[1],Wt=(0,_.useRef)(null),fn=(0,_.useRef)(null),Rt=function(){var Pt;return(Pt=fn.current)===null||Pt===void 0?void 0:Pt.textArea},qt=function(){Rt().focus()};(0,_.useImperativeHandle)(j,function(){var it;return{resizableTextArea:fn.current,focus:qt,blur:function(){Rt().blur()},nativeElement:((it=Wt.current)===null||it===void 0?void 0:it.nativeElement)||Rt()}}),(0,_.useEffect)(function(){at(function(it){return!pe&&it})},[pe]);var Ke=_.useState(null),ke=(0,B.Z)(Ke,2),Ne=ke[0],I=ke[1];_.useEffect(function(){if(Ne){var it;(it=Rt()).setSelectionRange.apply(it,(0,oe.Z)(Ne))}},[Ne]);var ee=(0,y.Z)(lt,Xt),fe=(v=ee.max)!==null&&v!==void 0?v:vt,ve=Number(fe)>0,ye=ee.strategy(Et),Ue=!!fe&&ye>fe,$e=function(Pt,Kt){var mn=Kt;!et.current&&ee.exceedFormatter&&ee.max&&ee.strategy(Kt)>ee.max&&(mn=ee.exceedFormatter(Kt,{max:ee.max}),Kt!==mn&&I([Rt().selectionStart||0,Rt().selectionEnd||0])),Ye(mn),(0,T.rJ)(Pt.currentTarget,Pt,Je,mn)},ut=function(Pt){et.current=!0,Mt==null||Mt(Pt)},At=function(Pt){et.current=!1,$e(Pt,Pt.currentTarget.value),Bt==null||Bt(Pt)},Ge=function(Pt){$e(Pt,Pt.target.value)},w=function(Pt){Pt.key==="Enter"&&ce&&ce(Pt),Q==null||Q(Pt)},ae=function(Pt){at(!0),ue==null||ue(Pt)},A=function(Pt){at(!1),Ie==null||Ie(Pt)},Ze=function(Pt){Ye(""),qt(),(0,T.rJ)(Rt(),Pt,Je)},Ee=we,Le;ee.show&&(ee.showFormatter?Le=ee.showFormatter({value:Et,count:ye,maxLength:fe}):Le="".concat(ye).concat(ve?" / ".concat(fe):""),Ee=_.createElement(_.Fragment,null,Ee,_.createElement("span",{className:re()("".concat(_t,"-data-count"),xe==null?void 0:xe.count),style:Pe==null?void 0:Pe.count},Le)));var ze=function(Pt){var Kt;z==null||z(Pt),(Kt=Rt())!==null&&Kt!==void 0&&Kt.style.height&&He(!0)},Ve=!de&&!Xt&&!Dt;return _.createElement(o.BaseInput,{ref:Wt,value:Et,allowClear:Dt,handleReset:Ze,suffix:Ee,prefixCls:_t,classNames:(0,ne.Z)((0,ne.Z)({},xe),{},{affixWrapper:re()(xe==null?void 0:xe.affixWrapper,(0,le.Z)((0,le.Z)({},"".concat(_t,"-show-count"),Xt),"".concat(_t,"-textarea-allow-clear"),Dt))}),disabled:pe,focused:Ae,className:re()(tt,Ue&&"".concat(_t,"-out-of-range")),style:(0,ne.Z)((0,ne.Z)({},Te),Tt&&!Ve?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Le=="string"?Le:void 0}},hidden:N,readOnly:Ce,onClear:P},_.createElement(Fe,(0,h.Z)({},he,{autoSize:de,maxLength:vt,onKeyDown:w,onChange:Ge,onFocus:ae,onBlur:A,onCompositionStart:ut,onCompositionEnd:At,className:re()(xe==null?void 0:xe.textarea),style:(0,ne.Z)((0,ne.Z)({},Pe==null?void 0:Pe.textarea),{},{resize:Te==null?void 0:Te.resize}),disabled:pe,prefixCls:_t,onResize:ze,ref:fn,readOnly:Ce})))}),F=k,G=F},29125:function(Rn,Gt,E){"use strict";E.d(Gt,{G:function(){return oe},Z:function(){return $}});var h=E(92310),le=E.n(h),ne=E(59301);function oe(O){var U=O.children,R=O.prefixCls,x=O.id,V=O.overlayInnerStyle,X=O.bodyClassName,H=O.className,q=O.style;return ne.createElement("div",{className:le()("".concat(R,"-content"),H),style:q},ne.createElement("div",{className:le()("".concat(R,"-inner"),X),id:x,role:"tooltip",style:V},typeof U=="function"?U():U))}var B=E(67711),d=E(98506),me=E(33346),re=E(65030),o={shiftX:64,adjustY:1},y={adjustX:1,shiftY:!0},T=[0,0],m={left:{points:["cr","cl"],overflow:y,offset:[-4,0],targetOffset:T},right:{points:["cl","cr"],overflow:y,offset:[4,0],targetOffset:T},top:{points:["bc","tc"],overflow:o,offset:[0,-4],targetOffset:T},bottom:{points:["tc","bc"],overflow:o,offset:[0,4],targetOffset:T},topLeft:{points:["bl","tl"],overflow:o,offset:[0,-4],targetOffset:T},leftTop:{points:["tr","tl"],overflow:y,offset:[-4,0],targetOffset:T},topRight:{points:["br","tr"],overflow:o,offset:[0,-4],targetOffset:T},rightTop:{points:["tl","tr"],overflow:y,offset:[4,0],targetOffset:T},bottomRight:{points:["tr","br"],overflow:o,offset:[0,4],targetOffset:T},rightBottom:{points:["bl","br"],overflow:y,offset:[4,0],targetOffset:T},bottomLeft:{points:["tl","bl"],overflow:o,offset:[0,4],targetOffset:T},leftBottom:{points:["br","bl"],overflow:y,offset:[-4,0],targetOffset:T}},_=null,b=E(80402),L=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],K=function(U,R){var x=U.overlayClassName,V=U.trigger,X=V===void 0?["hover"]:V,H=U.mouseEnterDelay,q=H===void 0?0:H,se=U.mouseLeaveDelay,ie=se===void 0?.1:se,Fe=U.overlayStyle,Z=U.prefixCls,k=Z===void 0?"rc-tooltip":Z,F=U.children,G=U.onVisibleChange,J=U.afterVisibleChange,j=U.transitionName,v=U.animation,g=U.motion,M=U.placement,ue=M===void 0?"right":M,Ie=U.align,Je=Ie===void 0?{}:Ie,Dt=U.destroyTooltipOnHide,vt=Dt===void 0?!1:Dt,Mt=U.defaultVisible,Bt=U.getTooltipContainer,we=U.overlayInnerStyle,Yt=U.arrowContent,_t=U.overlay,Xt=U.id,lt=U.showArrow,tt=lt===void 0?!0:lt,Te=U.classNames,pe=U.styles,N=(0,me.Z)(U,L),xe=(0,b.Z)(Xt),Pe=(0,ne.useRef)(null);(0,ne.useImperativeHandle)(R,function(){return Pe.current});var z=(0,d.Z)({},N);"visible"in U&&(z.popupVisible=U.visible);var P=function(){return ne.createElement(oe,{key:"content",prefixCls:k,id:xe,bodyClassName:Te==null?void 0:Te.body,overlayInnerStyle:(0,d.Z)((0,d.Z)({},we),pe==null?void 0:pe.body)},_t)},ce=function(){var de=ne.Children.only(F),Q=(de==null?void 0:de.props)||{},he=(0,d.Z)((0,d.Z)({},Q),{},{"aria-describedby":_t?xe:null});return ne.cloneElement(F,he)};return ne.createElement(re.Z,(0,B.Z)({popupClassName:le()(x,Te==null?void 0:Te.root),prefixCls:k,popup:P,action:X,builtinPlacements:m,popupPlacement:ue,ref:Pe,popupAlign:Je,getPopupContainer:Bt,onPopupVisibleChange:G,afterPopupVisibleChange:J,popupTransitionName:j,popupAnimation:v,popupMotion:g,defaultPopupVisible:Mt,autoDestroy:vt,mouseLeaveDelay:ie,popupStyle:(0,d.Z)((0,d.Z)({},Fe),pe==null?void 0:pe.root),mouseEnterDelay:q,arrow:tt},z),ce())},W=(0,ne.forwardRef)(K),$=W},639:function(Rn,Gt,E){"use strict";E.d(Gt,{Z:function(){return U}});var h=E(67711),le=E(52873),ne=E(98506),oe=E(16886),B=E(33346),d=E(59301),me=E(92310),re=E.n(me),o=E(26112),y=E(30699),T=function(x){for(var V=x.prefixCls,X=x.level,H=x.isStart,q=x.isEnd,se="".concat(V,"-indent-unit"),ie=[],Fe=0;Fe<X;Fe+=1)ie.push(d.createElement("span",{key:Fe,className:re()(se,(0,le.Z)((0,le.Z)({},"".concat(se,"-start"),H[Fe]),"".concat(se,"-end"),q[Fe]))}));return d.createElement("span",{"aria-hidden":"true",className:"".concat(V,"-indent")},ie)},m=d.memo(T),_=E(65065),b=E(34061),L=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],K="open",W="close",$="---",O=function(x){var V,X,H,q=x.eventKey,se=x.className,ie=x.style,Fe=x.dragOver,Z=x.dragOverGapTop,k=x.dragOverGapBottom,F=x.isLeaf,G=x.isStart,J=x.isEnd,j=x.expanded,v=x.selected,g=x.checked,M=x.halfChecked,ue=x.loading,Ie=x.domRef,Je=x.active,Dt=x.data,vt=x.onMouseMove,Mt=x.selectable,Bt=(0,B.Z)(x,L),we=d.useContext(y.k),Yt=d.useContext(y.y),_t=d.useRef(null),Xt=d.useState(!1),lt=(0,oe.Z)(Xt,2),tt=lt[0],Te=lt[1],pe=!!(we.disabled||x.disabled||(V=Yt.nodeDisabled)!==null&&V!==void 0&&V.call(Yt,Dt)),N=d.useMemo(function(){return!we.checkable||x.checkable===!1?!1:we.checkable},[we.checkable,x.checkable]),xe=function(ye){pe||we.onNodeSelect(ye,(0,b.F)(x))},Pe=function(ye){pe||!N||x.disableCheckbox||we.onNodeCheck(ye,(0,b.F)(x),!g)},z=d.useMemo(function(){return typeof Mt=="boolean"?Mt:we.selectable},[Mt,we.selectable]),P=function(ye){we.onNodeClick(ye,(0,b.F)(x)),z?xe(ye):Pe(ye)},ce=function(ye){we.onNodeDoubleClick(ye,(0,b.F)(x))},Ce=function(ye){we.onNodeMouseEnter(ye,(0,b.F)(x))},de=function(ye){we.onNodeMouseLeave(ye,(0,b.F)(x))},Q=function(ye){we.onNodeContextMenu(ye,(0,b.F)(x))},he=d.useMemo(function(){return!!(we.draggable&&(!we.draggable.nodeDraggable||we.draggable.nodeDraggable(Dt)))},[we.draggable,Dt]),Oe=function(ye){ye.stopPropagation(),Te(!0),we.onNodeDragStart(ye,x);try{ye.dataTransfer.setData("text/plain","")}catch(Ue){}},Re=function(ye){ye.preventDefault(),ye.stopPropagation(),we.onNodeDragEnter(ye,x)},qe=function(ye){ye.preventDefault(),ye.stopPropagation(),we.onNodeDragOver(ye,x)},Ye=function(ye){ye.stopPropagation(),we.onNodeDragLeave(ye,x)},Et=function(ye){ye.stopPropagation(),Te(!1),we.onNodeDragEnd(ye,x)},dt=function(ye){ye.preventDefault(),ye.stopPropagation(),Te(!1),we.onNodeDrop(ye,x)},ge=function(ye){ue||we.onNodeExpand(ye,(0,b.F)(x))},Ae=d.useMemo(function(){var ve=(0,_.Z)(we.keyEntities,q)||{},ye=ve.children;return!!(ye||[]).length},[we.keyEntities,q]),at=d.useMemo(function(){return F===!1?!1:F||!we.loadData&&!Ae||we.loadData&&x.loaded&&!Ae},[F,we.loadData,Ae,x.loaded]);d.useEffect(function(){ue||typeof we.loadData=="function"&&j&&!at&&!x.loaded&&we.onNodeLoad((0,b.F)(x))},[ue,we.loadData,we.onNodeLoad,j,at,x]);var et=d.useMemo(function(){var ve;return(ve=we.draggable)!==null&&ve!==void 0&&ve.icon?d.createElement("span",{className:"".concat(we.prefixCls,"-draggable-icon")},we.draggable.icon):null},[we.draggable]),Qe=function(ye){var Ue=x.switcherIcon||we.switcherIcon;return typeof Ue=="function"?Ue((0,ne.Z)((0,ne.Z)({},x),{},{isLeaf:ye})):Ue},St=function(){if(at){var ye=Qe(!0);return ye!==!1?d.createElement("span",{className:re()("".concat(we.prefixCls,"-switcher"),"".concat(we.prefixCls,"-switcher-noop"))},ye):null}var Ue=Qe(!1);return Ue!==!1?d.createElement("span",{onClick:ge,className:re()("".concat(we.prefixCls,"-switcher"),"".concat(we.prefixCls,"-switcher_").concat(j?K:W))},Ue):null},Tt=d.useMemo(function(){if(!N)return null;var ve=typeof N!="boolean"?N:null;return d.createElement("span",{className:re()("".concat(we.prefixCls,"-checkbox"),(0,le.Z)((0,le.Z)((0,le.Z)({},"".concat(we.prefixCls,"-checkbox-checked"),g),"".concat(we.prefixCls,"-checkbox-indeterminate"),!g&&M),"".concat(we.prefixCls,"-checkbox-disabled"),pe||x.disableCheckbox)),onClick:Pe,role:"checkbox","aria-checked":M?"mixed":g,"aria-disabled":pe||x.disableCheckbox,"aria-label":"Select ".concat(typeof x.title=="string"?x.title:"tree node")},ve)},[N,g,M,pe,x.disableCheckbox,x.title]),He=d.useMemo(function(){return at?null:j?K:W},[at,j]),Wt=d.useMemo(function(){return d.createElement("span",{className:re()("".concat(we.prefixCls,"-iconEle"),"".concat(we.prefixCls,"-icon__").concat(He||"docu"),(0,le.Z)({},"".concat(we.prefixCls,"-icon_loading"),ue))})},[we.prefixCls,He,ue]),fn=d.useMemo(function(){var ve=!!we.draggable,ye=!x.disabled&&ve&&we.dragOverNodeKey===q;return ye?we.dropIndicatorRender({dropPosition:we.dropPosition,dropLevelOffset:we.dropLevelOffset,indent:we.indent,prefixCls:we.prefixCls,direction:we.direction}):null},[we.dropPosition,we.dropLevelOffset,we.indent,we.prefixCls,we.direction,we.draggable,we.dragOverNodeKey,we.dropIndicatorRender]),Rt=d.useMemo(function(){var ve=x.title,ye=ve===void 0?$:ve,Ue="".concat(we.prefixCls,"-node-content-wrapper"),$e;if(we.showIcon){var ut=x.icon||we.icon;$e=ut?d.createElement("span",{className:re()("".concat(we.prefixCls,"-iconEle"),"".concat(we.prefixCls,"-icon__customize"))},typeof ut=="function"?ut(x):ut):Wt}else we.loadData&&ue&&($e=Wt);var At;return typeof ye=="function"?At=ye(Dt):we.titleRender?At=we.titleRender(Dt):At=ye,d.createElement("span",{ref:_t,title:typeof ye=="string"?ye:"",className:re()(Ue,"".concat(Ue,"-").concat(He||"normal"),(0,le.Z)({},"".concat(we.prefixCls,"-node-selected"),!pe&&(v||tt))),onMouseEnter:Ce,onMouseLeave:de,onContextMenu:Q,onClick:P,onDoubleClick:ce},$e,d.createElement("span",{className:"".concat(we.prefixCls,"-title")},At),fn)},[we.prefixCls,we.showIcon,x,we.icon,Wt,we.titleRender,Dt,He,Ce,de,Q,P,ce]),qt=(0,o.Z)(Bt,{aria:!0,data:!0}),Ke=(0,_.Z)(we.keyEntities,q)||{},ke=Ke.level,Ne=J[J.length-1],I=!pe&&he,ee=we.draggingNodeKey===q,fe=Mt!==void 0?{"aria-selected":!!Mt}:void 0;return d.createElement("div",(0,h.Z)({ref:Ie,role:"treeitem","aria-expanded":F?void 0:j,className:re()(se,"".concat(we.prefixCls,"-treenode"),(H={},(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)(H,"".concat(we.prefixCls,"-treenode-disabled"),pe),"".concat(we.prefixCls,"-treenode-switcher-").concat(j?"open":"close"),!F),"".concat(we.prefixCls,"-treenode-checkbox-checked"),g),"".concat(we.prefixCls,"-treenode-checkbox-indeterminate"),M),"".concat(we.prefixCls,"-treenode-selected"),v),"".concat(we.prefixCls,"-treenode-loading"),ue),"".concat(we.prefixCls,"-treenode-active"),Je),"".concat(we.prefixCls,"-treenode-leaf-last"),Ne),"".concat(we.prefixCls,"-treenode-draggable"),he),"dragging",ee),(0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)((0,le.Z)(H,"drop-target",we.dropTargetKey===q),"drop-container",we.dropContainerKey===q),"drag-over",!pe&&Fe),"drag-over-gap-top",!pe&&Z),"drag-over-gap-bottom",!pe&&k),"filter-node",(X=we.filterTreeNode)===null||X===void 0?void 0:X.call(we,(0,b.F)(x))),"".concat(we.prefixCls,"-treenode-leaf"),at))),style:ie,draggable:I,onDragStart:I?Oe:void 0,onDragEnter:he?Re:void 0,onDragOver:he?qe:void 0,onDragLeave:he?Ye:void 0,onDrop:he?dt:void 0,onDragEnd:he?Et:void 0,onMouseMove:vt},fe,qt),d.createElement(m,{prefixCls:we.prefixCls,level:ke,isStart:G,isEnd:J}),et,St(),Tt,Rt)};O.isTreeNode=1;var U=O},30699:function(Rn,Gt,E){"use strict";E.d(Gt,{k:function(){return le},y:function(){return ne}});var h=E(59301),le=h.createContext(null),ne=h.createContext({})},71598:function(Rn,Gt,E){"use strict";E.d(Gt,{OF:function(){return q.Z},y6:function(){return W.y},ZP:function(){return pe}});var h=E(67711),le=E(26420),ne=E(98506),oe=E(15142),B=E(42573),d=E(58698),me=E(62437),re=E(74700),o=E(45080),y=E(52873),T=E(92310),m=E.n(T),_=E(10228),b=E(26112),L=E(48736),K=E(59301),W=E(30699),$=function(xe){var Pe=xe.dropPosition,z=xe.dropLevelOffset,P=xe.indent,ce={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Pe){case-1:ce.top=0,ce.left=-z*P;break;case 1:ce.bottom=0,ce.left=-z*P;break;case 0:ce.bottom=0,ce.left=P;break}return K.createElement("div",{style:ce})},O=$;function U(N){if(N==null)throw new TypeError("Cannot destructure "+N)}var R=E(16886),x=E(33346),V=E(34280),X=E(6790),H=E(77900),q=E(639);function se(N,xe){var Pe=K.useState(!1),z=(0,R.Z)(Pe,2),P=z[0],ce=z[1];(0,V.Z)(function(){if(P)return N(),function(){xe()}},[P]),(0,V.Z)(function(){return ce(!0),function(){ce(!1)}},[])}var ie=se,Fe=E(34061),Z=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],k=K.forwardRef(function(N,xe){var Pe=N.className,z=N.style,P=N.motion,ce=N.motionNodes,Ce=N.motionType,de=N.onMotionStart,Q=N.onMotionEnd,he=N.active,Oe=N.treeNodeRequiredProps,Re=(0,x.Z)(N,Z),qe=K.useState(!0),Ye=(0,R.Z)(qe,2),Et=Ye[0],dt=Ye[1],ge=K.useContext(W.k),Ae=ge.prefixCls,at=ce&&Ce!=="hide";(0,V.Z)(function(){ce&&at!==Et&&dt(at)},[ce]);var et=function(){ce&&de()},Qe=K.useRef(!1),St=function(){ce&&!Qe.current&&(Qe.current=!0,Q())};ie(et,St);var Tt=function(Wt){at===Wt&&St()};return ce?K.createElement(H.default,(0,h.Z)({ref:xe,visible:Et},P,{motionAppear:Ce==="show",onVisibleChanged:Tt}),function(He,Wt){var fn=He.className,Rt=He.style;return K.createElement("div",{ref:Wt,className:m()("".concat(Ae,"-treenode-motion"),fn),style:Rt},ce.map(function(qt){var Ke=Object.assign({},(U(qt.data),qt.data)),ke=qt.title,Ne=qt.key,I=qt.isStart,ee=qt.isEnd;delete Ke.children;var fe=(0,Fe.H8)(Ne,Oe);return K.createElement(q.Z,(0,h.Z)({},Ke,fe,{title:ke,active:he,data:qt.data,key:Ne,isStart:I,isEnd:ee}))}))}):K.createElement(q.Z,(0,h.Z)({domRef:xe,className:Pe,style:z},Re,{active:he}))}),F=k;function G(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Pe=N.length,z=xe.length;if(Math.abs(Pe-z)!==1)return{add:!1,key:null};function P(ce,Ce){var de=new Map;ce.forEach(function(he){de.set(he,!0)});var Q=Ce.filter(function(he){return!de.has(he)});return Q.length===1?Q[0]:null}return Pe<z?{add:!0,key:P(N,xe)}:{add:!1,key:P(xe,N)}}function J(N,xe,Pe){var z=N.findIndex(function(de){return de.key===Pe}),P=N[z+1],ce=xe.findIndex(function(de){return de.key===Pe});if(P){var Ce=xe.findIndex(function(de){return de.key===P.key});return xe.slice(ce+1,Ce)}return xe.slice(ce+1)}var j=["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"],v={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},g=function(){},M="RC_TREE_MOTION_".concat(Math.random()),ue={key:M},Ie={key:M,level:0,index:0,pos:"0",node:ue,nodes:[ue]},Je={parent:null,children:[],pos:Ie.pos,data:ue,title:null,key:M,isStart:[],isEnd:[]};function Dt(N,xe,Pe,z){return xe===!1||!Pe?N:N.slice(0,Math.ceil(Pe/z)+1)}function vt(N){var xe=N.key,Pe=N.pos;return(0,Fe.km)(xe,Pe)}function Mt(N){for(var xe=String(N.data.key),Pe=N;Pe.parent;)Pe=Pe.parent,xe="".concat(Pe.data.key," > ").concat(xe);return xe}var Bt=K.forwardRef(function(N,xe){var Pe=N.prefixCls,z=N.data,P=N.selectable,ce=N.checkable,Ce=N.expandedKeys,de=N.selectedKeys,Q=N.checkedKeys,he=N.loadedKeys,Oe=N.loadingKeys,Re=N.halfCheckedKeys,qe=N.keyEntities,Ye=N.disabled,Et=N.dragging,dt=N.dragOverNodeKey,ge=N.dropPosition,Ae=N.motion,at=N.height,et=N.itemHeight,Qe=N.virtual,St=N.scrollWidth,Tt=N.focusable,He=N.activeItem,Wt=N.focused,fn=N.tabIndex,Rt=N.onKeyDown,qt=N.onFocus,Ke=N.onBlur,ke=N.onActiveChange,Ne=N.onListChangeStart,I=N.onListChangeEnd,ee=(0,x.Z)(N,j),fe=K.useRef(null),ve=K.useRef(null);K.useImperativeHandle(xe,function(){return{scrollTo:function(Zt){fe.current.scrollTo(Zt)},getIndentWidth:function(){return ve.current.offsetWidth}}});var ye=K.useState(Ce),Ue=(0,R.Z)(ye,2),$e=Ue[0],ut=Ue[1],At=K.useState(z),Ge=(0,R.Z)(At,2),w=Ge[0],ae=Ge[1],A=K.useState(z),Ze=(0,R.Z)(A,2),Ee=Ze[0],Le=Ze[1],ze=K.useState([]),Ve=(0,R.Z)(ze,2),it=Ve[0],Pt=Ve[1],Kt=K.useState(null),mn=(0,R.Z)(Kt,2),De=mn[0],Se=mn[1],nt=K.useRef(z);nt.current=z;function st(){var Ot=nt.current;ae(Ot),Le(Ot),Pt([]),Se(null),I()}(0,V.Z)(function(){ut(Ce);var Ot=G($e,Ce);if(Ot.key!==null)if(Ot.add){var Zt=w.findIndex(function(jt){var Be=jt.key;return Be===Ot.key}),tn=Dt(J(w,z,Ot.key),Qe,at,et),Nt=w.slice();Nt.splice(Zt+1,0,Je),Le(Nt),Pt(tn),Se("show")}else{var un=z.findIndex(function(jt){var Be=jt.key;return Be===Ot.key}),gn=Dt(J(z,w,Ot.key),Qe,at,et),ln=z.slice();ln.splice(un+1,0,Je),Le(ln),Pt(gn),Se("hide")}else w!==z&&(ae(z),Le(z))},[Ce,z]),K.useEffect(function(){Et||st()},[Et]);var Ct=Ae?Ee:z,ft={expandedKeys:Ce,selectedKeys:de,loadedKeys:he,loadingKeys:Oe,checkedKeys:Q,halfCheckedKeys:Re,dragOverNodeKey:dt,dropPosition:ge,keyEntities:qe};return K.createElement(K.Fragment,null,Wt&&He&&K.createElement("span",{style:v,"aria-live":"assertive"},Mt(He)),K.createElement("div",null,K.createElement("input",{style:v,disabled:Tt===!1||Ye,tabIndex:Tt!==!1?fn:null,onKeyDown:Rt,onFocus:qt,onBlur:Ke,value:"",onChange:g,"aria-label":"for screen reader"})),K.createElement("div",{className:"".concat(Pe,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},K.createElement("div",{className:"".concat(Pe,"-indent")},K.createElement("div",{ref:ve,className:"".concat(Pe,"-indent-unit")}))),K.createElement(X.Z,(0,h.Z)({},ee,{data:Ct,itemKey:vt,height:at,fullHeight:!1,virtual:Qe,itemHeight:et,scrollWidth:St,prefixCls:"".concat(Pe,"-list"),ref:fe,role:"tree",onVisibleChange:function(Zt){Zt.every(function(tn){return vt(tn)!==M})&&st()}}),function(Ot){var Zt=Ot.pos,tn=Object.assign({},(U(Ot.data),Ot.data)),Nt=Ot.title,un=Ot.key,gn=Ot.isStart,ln=Ot.isEnd,jt=(0,Fe.km)(un,Zt);delete tn.key,delete tn.children;var Be=(0,Fe.H8)(jt,ft);return K.createElement(F,(0,h.Z)({},tn,Be,{title:Nt,active:!!He&&un===He.key,pos:Zt,data:Ot.data,isStart:gn,isEnd:ln,motion:Ae,motionNodes:un===M?it:null,motionType:De,onMotionStart:Ne,onMotionEnd:st,treeNodeRequiredProps:ft,onMouseMove:function(){ke(null)}}))}))}),we=Bt,Yt=E(82661),_t=E(34643),Xt=E(65065),lt=10,tt=function(N){(0,re.Z)(Pe,N);var xe=(0,o.Z)(Pe);function Pe(){var z;(0,B.Z)(this,Pe);for(var P=arguments.length,ce=new Array(P),Ce=0;Ce<P;Ce++)ce[Ce]=arguments[Ce];return z=xe.call.apply(xe,[this].concat(ce)),(0,y.Z)((0,me.Z)(z),"destroyed",!1),(0,y.Z)((0,me.Z)(z),"delayedDragEnterLogic",void 0),(0,y.Z)((0,me.Z)(z),"loadingRetryTimes",{}),(0,y.Z)((0,me.Z)(z),"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,Fe.w$)()}),(0,y.Z)((0,me.Z)(z),"dragStartMousePosition",null),(0,y.Z)((0,me.Z)(z),"dragNodeProps",null),(0,y.Z)((0,me.Z)(z),"currentMouseOverDroppableNodeKey",null),(0,y.Z)((0,me.Z)(z),"listRef",K.createRef()),(0,y.Z)((0,me.Z)(z),"onNodeDragStart",function(de,Q){var he=z.state,Oe=he.expandedKeys,Re=he.keyEntities,qe=z.props.onDragStart,Ye=Q.eventKey;z.dragNodeProps=Q,z.dragStartMousePosition={x:de.clientX,y:de.clientY};var Et=(0,Yt._5)(Oe,Ye);z.setState({draggingNodeKey:Ye,dragChildrenKeys:(0,Yt.wA)(Ye,Re),indent:z.listRef.current.getIndentWidth()}),z.setExpandedKeys(Et),window.addEventListener("dragend",z.onWindowDragEnd),qe==null||qe({event:de,node:(0,Fe.F)(Q)})}),(0,y.Z)((0,me.Z)(z),"onNodeDragEnter",function(de,Q){var he=z.state,Oe=he.expandedKeys,Re=he.keyEntities,qe=he.dragChildrenKeys,Ye=he.flattenNodes,Et=he.indent,dt=z.props,ge=dt.onDragEnter,Ae=dt.onExpand,at=dt.allowDrop,et=dt.direction,Qe=Q.pos,St=Q.eventKey;if(z.currentMouseOverDroppableNodeKey!==St&&(z.currentMouseOverDroppableNodeKey=St),!z.dragNodeProps){z.resetDragState();return}var Tt=(0,Yt.OM)(de,z.dragNodeProps,Q,Et,z.dragStartMousePosition,at,Ye,Re,Oe,et),He=Tt.dropPosition,Wt=Tt.dropLevelOffset,fn=Tt.dropTargetKey,Rt=Tt.dropContainerKey,qt=Tt.dropTargetPos,Ke=Tt.dropAllowed,ke=Tt.dragOverNodeKey;if(qe.includes(fn)||!Ke){z.resetDragState();return}if(z.delayedDragEnterLogic||(z.delayedDragEnterLogic={}),Object.keys(z.delayedDragEnterLogic).forEach(function(Ne){clearTimeout(z.delayedDragEnterLogic[Ne])}),z.dragNodeProps.eventKey!==Q.eventKey&&(de.persist(),z.delayedDragEnterLogic[Qe]=window.setTimeout(function(){if(z.state.draggingNodeKey!==null){var Ne=(0,oe.Z)(Oe),I=(0,Xt.Z)(Re,Q.eventKey);I&&(I.children||[]).length&&(Ne=(0,Yt.L0)(Oe,Q.eventKey)),z.props.hasOwnProperty("expandedKeys")||z.setExpandedKeys(Ne),Ae==null||Ae(Ne,{node:(0,Fe.F)(Q),expanded:!0,nativeEvent:de.nativeEvent})}},800)),z.dragNodeProps.eventKey===fn&&Wt===0){z.resetDragState();return}z.setState({dragOverNodeKey:ke,dropPosition:He,dropLevelOffset:Wt,dropTargetKey:fn,dropContainerKey:Rt,dropTargetPos:qt,dropAllowed:Ke}),ge==null||ge({event:de,node:(0,Fe.F)(Q),expandedKeys:Oe})}),(0,y.Z)((0,me.Z)(z),"onNodeDragOver",function(de,Q){var he=z.state,Oe=he.dragChildrenKeys,Re=he.flattenNodes,qe=he.keyEntities,Ye=he.expandedKeys,Et=he.indent,dt=z.props,ge=dt.onDragOver,Ae=dt.allowDrop,at=dt.direction;if(z.dragNodeProps){var et=(0,Yt.OM)(de,z.dragNodeProps,Q,Et,z.dragStartMousePosition,Ae,Re,qe,Ye,at),Qe=et.dropPosition,St=et.dropLevelOffset,Tt=et.dropTargetKey,He=et.dropContainerKey,Wt=et.dropTargetPos,fn=et.dropAllowed,Rt=et.dragOverNodeKey;Oe.includes(Tt)||!fn||(z.dragNodeProps.eventKey===Tt&&St===0?z.state.dropPosition===null&&z.state.dropLevelOffset===null&&z.state.dropTargetKey===null&&z.state.dropContainerKey===null&&z.state.dropTargetPos===null&&z.state.dropAllowed===!1&&z.state.dragOverNodeKey===null||z.resetDragState():Qe===z.state.dropPosition&&St===z.state.dropLevelOffset&&Tt===z.state.dropTargetKey&&He===z.state.dropContainerKey&&Wt===z.state.dropTargetPos&&fn===z.state.dropAllowed&&Rt===z.state.dragOverNodeKey||z.setState({dropPosition:Qe,dropLevelOffset:St,dropTargetKey:Tt,dropContainerKey:He,dropTargetPos:Wt,dropAllowed:fn,dragOverNodeKey:Rt}),ge==null||ge({event:de,node:(0,Fe.F)(Q)}))}}),(0,y.Z)((0,me.Z)(z),"onNodeDragLeave",function(de,Q){z.currentMouseOverDroppableNodeKey===Q.eventKey&&!de.currentTarget.contains(de.relatedTarget)&&(z.resetDragState(),z.currentMouseOverDroppableNodeKey=null);var he=z.props.onDragLeave;he==null||he({event:de,node:(0,Fe.F)(Q)})}),(0,y.Z)((0,me.Z)(z),"onWindowDragEnd",function(de){z.onNodeDragEnd(de,null,!0),window.removeEventListener("dragend",z.onWindowDragEnd)}),(0,y.Z)((0,me.Z)(z),"onNodeDragEnd",function(de,Q){var he=z.props.onDragEnd;z.setState({dragOverNodeKey:null}),z.cleanDragState(),he==null||he({event:de,node:(0,Fe.F)(Q)}),z.dragNodeProps=null,window.removeEventListener("dragend",z.onWindowDragEnd)}),(0,y.Z)((0,me.Z)(z),"onNodeDrop",function(de,Q){var he,Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Re=z.state,qe=Re.dragChildrenKeys,Ye=Re.dropPosition,Et=Re.dropTargetKey,dt=Re.dropTargetPos,ge=Re.dropAllowed;if(ge){var Ae=z.props.onDrop;if(z.setState({dragOverNodeKey:null}),z.cleanDragState(),Et!==null){var at=(0,ne.Z)((0,ne.Z)({},(0,Fe.H8)(Et,z.getTreeNodeRequiredProps())),{},{active:((he=z.getActiveItem())===null||he===void 0?void 0:he.key)===Et,data:(0,Xt.Z)(z.state.keyEntities,Et).node}),et=qe.includes(Et);(0,L.ZP)(!et,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Qe=(0,Yt.yx)(dt),St={event:de,node:(0,Fe.F)(at),dragNode:z.dragNodeProps?(0,Fe.F)(z.dragNodeProps):null,dragNodesKeys:[z.dragNodeProps.eventKey].concat(qe),dropToGap:Ye!==0,dropPosition:Ye+Number(Qe[Qe.length-1])};Oe||Ae==null||Ae(St),z.dragNodeProps=null}}}),(0,y.Z)((0,me.Z)(z),"cleanDragState",function(){var de=z.state.draggingNodeKey;de!==null&&z.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),z.dragStartMousePosition=null,z.currentMouseOverDroppableNodeKey=null}),(0,y.Z)((0,me.Z)(z),"triggerExpandActionExpand",function(de,Q){var he=z.state,Oe=he.expandedKeys,Re=he.flattenNodes,qe=Q.expanded,Ye=Q.key,Et=Q.isLeaf;if(!(Et||de.shiftKey||de.metaKey||de.ctrlKey)){var dt=Re.filter(function(Ae){return Ae.key===Ye})[0],ge=(0,Fe.F)((0,ne.Z)((0,ne.Z)({},(0,Fe.H8)(Ye,z.getTreeNodeRequiredProps())),{},{data:dt.data}));z.setExpandedKeys(qe?(0,Yt._5)(Oe,Ye):(0,Yt.L0)(Oe,Ye)),z.onNodeExpand(de,ge)}}),(0,y.Z)((0,me.Z)(z),"onNodeClick",function(de,Q){var he=z.props,Oe=he.onClick,Re=he.expandAction;Re==="click"&&z.triggerExpandActionExpand(de,Q),Oe==null||Oe(de,Q)}),(0,y.Z)((0,me.Z)(z),"onNodeDoubleClick",function(de,Q){var he=z.props,Oe=he.onDoubleClick,Re=he.expandAction;Re==="doubleClick"&&z.triggerExpandActionExpand(de,Q),Oe==null||Oe(de,Q)}),(0,y.Z)((0,me.Z)(z),"onNodeSelect",function(de,Q){var he=z.state.selectedKeys,Oe=z.state,Re=Oe.keyEntities,qe=Oe.fieldNames,Ye=z.props,Et=Ye.onSelect,dt=Ye.multiple,ge=Q.selected,Ae=Q[qe.key],at=!ge;at?dt?he=(0,Yt.L0)(he,Ae):he=[Ae]:he=(0,Yt._5)(he,Ae);var et=he.map(function(Qe){var St=(0,Xt.Z)(Re,Qe);return St?St.node:null}).filter(Boolean);z.setUncontrolledState({selectedKeys:he}),Et==null||Et(he,{event:"select",selected:at,node:Q,selectedNodes:et,nativeEvent:de.nativeEvent})}),(0,y.Z)((0,me.Z)(z),"onNodeCheck",function(de,Q,he){var Oe=z.state,Re=Oe.keyEntities,qe=Oe.checkedKeys,Ye=Oe.halfCheckedKeys,Et=z.props,dt=Et.checkStrictly,ge=Et.onCheck,Ae=Q.key,at,et={event:"check",node:Q,checked:he,nativeEvent:de.nativeEvent};if(dt){var Qe=he?(0,Yt.L0)(qe,Ae):(0,Yt._5)(qe,Ae),St=(0,Yt._5)(Ye,Ae);at={checked:Qe,halfChecked:St},et.checkedNodes=Qe.map(function(qt){return(0,Xt.Z)(Re,qt)}).filter(Boolean).map(function(qt){return qt.node}),z.setUncontrolledState({checkedKeys:Qe})}else{var Tt=(0,_t.S)([].concat((0,oe.Z)(qe),[Ae]),!0,Re),He=Tt.checkedKeys,Wt=Tt.halfCheckedKeys;if(!he){var fn=new Set(He);fn.delete(Ae);var Rt=(0,_t.S)(Array.from(fn),{checked:!1,halfCheckedKeys:Wt},Re);He=Rt.checkedKeys,Wt=Rt.halfCheckedKeys}at=He,et.checkedNodes=[],et.checkedNodesPositions=[],et.halfCheckedKeys=Wt,He.forEach(function(qt){var Ke=(0,Xt.Z)(Re,qt);if(Ke){var ke=Ke.node,Ne=Ke.pos;et.checkedNodes.push(ke),et.checkedNodesPositions.push({node:ke,pos:Ne})}}),z.setUncontrolledState({checkedKeys:He},!1,{halfCheckedKeys:Wt})}ge==null||ge(at,et)}),(0,y.Z)((0,me.Z)(z),"onNodeLoad",function(de){var Q,he=de.key,Oe=z.state.keyEntities,Re=(0,Xt.Z)(Oe,he);if(!(Re!=null&&(Q=Re.children)!==null&&Q!==void 0&&Q.length)){var qe=new Promise(function(Ye,Et){z.setState(function(dt){var ge=dt.loadedKeys,Ae=ge===void 0?[]:ge,at=dt.loadingKeys,et=at===void 0?[]:at,Qe=z.props,St=Qe.loadData,Tt=Qe.onLoad;if(!St||Ae.includes(he)||et.includes(he))return null;var He=St(de);return He.then(function(){var Wt=z.state.loadedKeys,fn=(0,Yt.L0)(Wt,he);Tt==null||Tt(fn,{event:"load",node:de}),z.setUncontrolledState({loadedKeys:fn}),z.setState(function(Rt){return{loadingKeys:(0,Yt._5)(Rt.loadingKeys,he)}}),Ye()}).catch(function(Wt){if(z.setState(function(Rt){return{loadingKeys:(0,Yt._5)(Rt.loadingKeys,he)}}),z.loadingRetryTimes[he]=(z.loadingRetryTimes[he]||0)+1,z.loadingRetryTimes[he]>=lt){var fn=z.state.loadedKeys;(0,L.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),z.setUncontrolledState({loadedKeys:(0,Yt.L0)(fn,he)}),Ye()}Et(Wt)}),{loadingKeys:(0,Yt.L0)(et,he)}})});return qe.catch(function(){}),qe}}),(0,y.Z)((0,me.Z)(z),"onNodeMouseEnter",function(de,Q){var he=z.props.onMouseEnter;he==null||he({event:de,node:Q})}),(0,y.Z)((0,me.Z)(z),"onNodeMouseLeave",function(de,Q){var he=z.props.onMouseLeave;he==null||he({event:de,node:Q})}),(0,y.Z)((0,me.Z)(z),"onNodeContextMenu",function(de,Q){var he=z.props.onRightClick;he&&(de.preventDefault(),he({event:de,node:Q}))}),(0,y.Z)((0,me.Z)(z),"onFocus",function(){var de=z.props.onFocus;z.setState({focused:!0});for(var Q=arguments.length,he=new Array(Q),Oe=0;Oe<Q;Oe++)he[Oe]=arguments[Oe];de==null||de.apply(void 0,he)}),(0,y.Z)((0,me.Z)(z),"onBlur",function(){var de=z.props.onBlur;z.setState({focused:!1}),z.onActiveChange(null);for(var Q=arguments.length,he=new Array(Q),Oe=0;Oe<Q;Oe++)he[Oe]=arguments[Oe];de==null||de.apply(void 0,he)}),(0,y.Z)((0,me.Z)(z),"getTreeNodeRequiredProps",function(){var de=z.state,Q=de.expandedKeys,he=de.selectedKeys,Oe=de.loadedKeys,Re=de.loadingKeys,qe=de.checkedKeys,Ye=de.halfCheckedKeys,Et=de.dragOverNodeKey,dt=de.dropPosition,ge=de.keyEntities;return{expandedKeys:Q||[],selectedKeys:he||[],loadedKeys:Oe||[],loadingKeys:Re||[],checkedKeys:qe||[],halfCheckedKeys:Ye||[],dragOverNodeKey:Et,dropPosition:dt,keyEntities:ge}}),(0,y.Z)((0,me.Z)(z),"setExpandedKeys",function(de){var Q=z.state,he=Q.treeData,Oe=Q.fieldNames,Re=(0,Fe.oH)(he,de,Oe);z.setUncontrolledState({expandedKeys:de,flattenNodes:Re},!0)}),(0,y.Z)((0,me.Z)(z),"onNodeExpand",function(de,Q){var he=z.state.expandedKeys,Oe=z.state,Re=Oe.listChanging,qe=Oe.fieldNames,Ye=z.props,Et=Ye.onExpand,dt=Ye.loadData,ge=Q.expanded,Ae=Q[qe.key];if(!Re){var at=he.includes(Ae),et=!ge;if((0,L.ZP)(ge&&at||!ge&&!at,"Expand state not sync with index check"),he=et?(0,Yt.L0)(he,Ae):(0,Yt._5)(he,Ae),z.setExpandedKeys(he),Et==null||Et(he,{node:Q,expanded:et,nativeEvent:de.nativeEvent}),et&&dt){var Qe=z.onNodeLoad(Q);Qe&&Qe.then(function(){var St=(0,Fe.oH)(z.state.treeData,he,qe);z.setUncontrolledState({flattenNodes:St})}).catch(function(){var St=z.state.expandedKeys,Tt=(0,Yt._5)(St,Ae);z.setExpandedKeys(Tt)})}}}),(0,y.Z)((0,me.Z)(z),"onListChangeStart",function(){z.setUncontrolledState({listChanging:!0})}),(0,y.Z)((0,me.Z)(z),"onListChangeEnd",function(){setTimeout(function(){z.setUncontrolledState({listChanging:!1})})}),(0,y.Z)((0,me.Z)(z),"onActiveChange",function(de){var Q=z.state.activeKey,he=z.props,Oe=he.onActiveChange,Re=he.itemScrollOffset,qe=Re===void 0?0:Re;Q!==de&&(z.setState({activeKey:de}),de!==null&&z.scrollTo({key:de,offset:qe}),Oe==null||Oe(de))}),(0,y.Z)((0,me.Z)(z),"getActiveItem",function(){var de=z.state,Q=de.activeKey,he=de.flattenNodes;return Q===null?null:he.find(function(Oe){var Re=Oe.key;return Re===Q})||null}),(0,y.Z)((0,me.Z)(z),"offsetActiveKey",function(de){var Q=z.state,he=Q.flattenNodes,Oe=Q.activeKey,Re=he.findIndex(function(Et){var dt=Et.key;return dt===Oe});Re===-1&&de<0&&(Re=he.length),Re=(Re+de+he.length)%he.length;var qe=he[Re];if(qe){var Ye=qe.key;z.onActiveChange(Ye)}else z.onActiveChange(null)}),(0,y.Z)((0,me.Z)(z),"onKeyDown",function(de){var Q=z.state,he=Q.activeKey,Oe=Q.expandedKeys,Re=Q.checkedKeys,qe=Q.fieldNames,Ye=z.props,Et=Ye.onKeyDown,dt=Ye.checkable,ge=Ye.selectable;switch(de.which){case _.Z.UP:{z.offsetActiveKey(-1),de.preventDefault();break}case _.Z.DOWN:{z.offsetActiveKey(1),de.preventDefault();break}}var Ae=z.getActiveItem();if(Ae&&Ae.data){var at=z.getTreeNodeRequiredProps(),et=Ae.data.isLeaf===!1||!!(Ae.data[qe.children]||[]).length,Qe=(0,Fe.F)((0,ne.Z)((0,ne.Z)({},(0,Fe.H8)(he,at)),{},{data:Ae.data,active:!0}));switch(de.which){case _.Z.LEFT:{et&&Oe.includes(he)?z.onNodeExpand({},Qe):Ae.parent&&z.onActiveChange(Ae.parent.key),de.preventDefault();break}case _.Z.RIGHT:{et&&!Oe.includes(he)?z.onNodeExpand({},Qe):Ae.children&&Ae.children.length&&z.onActiveChange(Ae.children[0].key),de.preventDefault();break}case _.Z.ENTER:case _.Z.SPACE:{dt&&!Qe.disabled&&Qe.checkable!==!1&&!Qe.disableCheckbox?z.onNodeCheck({},Qe,!Re.includes(he)):!dt&&ge&&!Qe.disabled&&Qe.selectable!==!1&&z.onNodeSelect({},Qe);break}}}Et==null||Et(de)}),(0,y.Z)((0,me.Z)(z),"setUncontrolledState",function(de){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!z.destroyed){var Oe=!1,Re=!0,qe={};Object.keys(de).forEach(function(Ye){if(z.props.hasOwnProperty(Ye)){Re=!1;return}Oe=!0,qe[Ye]=de[Ye]}),Oe&&(!Q||Re)&&z.setState((0,ne.Z)((0,ne.Z)({},qe),he))}}),(0,y.Z)((0,me.Z)(z),"scrollTo",function(de){z.listRef.current.scrollTo(de)}),z}return(0,d.Z)(Pe,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var P=this.props,ce=P.activeKey,Ce=P.itemScrollOffset,de=Ce===void 0?0:Ce;ce!==void 0&&ce!==this.state.activeKey&&(this.setState({activeKey:ce}),ce!==null&&this.scrollTo({key:ce,offset:de}))}},{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 P=this.state,ce=P.focused,Ce=P.flattenNodes,de=P.keyEntities,Q=P.draggingNodeKey,he=P.activeKey,Oe=P.dropLevelOffset,Re=P.dropContainerKey,qe=P.dropTargetKey,Ye=P.dropPosition,Et=P.dragOverNodeKey,dt=P.indent,ge=this.props,Ae=ge.prefixCls,at=ge.className,et=ge.style,Qe=ge.showLine,St=ge.focusable,Tt=ge.tabIndex,He=Tt===void 0?0:Tt,Wt=ge.selectable,fn=ge.showIcon,Rt=ge.icon,qt=ge.switcherIcon,Ke=ge.draggable,ke=ge.checkable,Ne=ge.checkStrictly,I=ge.disabled,ee=ge.motion,fe=ge.loadData,ve=ge.filterTreeNode,ye=ge.height,Ue=ge.itemHeight,$e=ge.scrollWidth,ut=ge.virtual,At=ge.titleRender,Ge=ge.dropIndicatorRender,w=ge.onContextMenu,ae=ge.onScroll,A=ge.direction,Ze=ge.rootClassName,Ee=ge.rootStyle,Le=(0,b.Z)(this.props,{aria:!0,data:!0}),ze;Ke&&((0,le.Z)(Ke)==="object"?ze=Ke:typeof Ke=="function"?ze={nodeDraggable:Ke}:ze={});var Ve={prefixCls:Ae,selectable:Wt,showIcon:fn,icon:Rt,switcherIcon:qt,draggable:ze,draggingNodeKey:Q,checkable:ke,checkStrictly:Ne,disabled:I,keyEntities:de,dropLevelOffset:Oe,dropContainerKey:Re,dropTargetKey:qe,dropPosition:Ye,dragOverNodeKey:Et,indent:dt,direction:A,dropIndicatorRender:Ge,loadData:fe,filterTreeNode:ve,titleRender:At,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 K.createElement(W.k.Provider,{value:Ve},K.createElement("div",{className:m()(Ae,at,Ze,(0,y.Z)((0,y.Z)((0,y.Z)({},"".concat(Ae,"-show-line"),Qe),"".concat(Ae,"-focused"),ce),"".concat(Ae,"-active-focused"),he!==null)),style:Ee},K.createElement(we,(0,h.Z)({ref:this.listRef,prefixCls:Ae,style:et,data:Ce,disabled:I,selectable:Wt,checkable:!!ke,motion:ee,dragging:Q!==null,height:ye,itemHeight:Ue,virtual:ut,focusable:St,focused:ce,tabIndex:He,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:w,onScroll:ae,scrollWidth:$e},this.getTreeNodeRequiredProps(),Le))))}}],[{key:"getDerivedStateFromProps",value:function(P,ce){var Ce=ce.prevProps,de={prevProps:P};function Q(He){return!Ce&&P.hasOwnProperty(He)||Ce&&Ce[He]!==P[He]}var he,Oe=ce.fieldNames;if(Q("fieldNames")&&(Oe=(0,Fe.w$)(P.fieldNames),de.fieldNames=Oe),Q("treeData")?he=P.treeData:Q("children")&&((0,L.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),he=(0,Fe.zn)(P.children)),he){de.treeData=he;var Re=(0,Fe.I8)(he,{fieldNames:Oe});de.keyEntities=(0,ne.Z)((0,y.Z)({},M,Ie),Re.keyEntities)}var qe=de.keyEntities||ce.keyEntities;if(Q("expandedKeys")||Ce&&Q("autoExpandParent"))de.expandedKeys=P.autoExpandParent||!Ce&&P.defaultExpandParent?(0,Yt.r7)(P.expandedKeys,qe):P.expandedKeys;else if(!Ce&&P.defaultExpandAll){var Ye=(0,ne.Z)({},qe);delete Ye[M];var Et=[];Object.keys(Ye).forEach(function(He){var Wt=Ye[He];Wt.children&&Wt.children.length&&Et.push(Wt.key)}),de.expandedKeys=Et}else!Ce&&P.defaultExpandedKeys&&(de.expandedKeys=P.autoExpandParent||P.defaultExpandParent?(0,Yt.r7)(P.defaultExpandedKeys,qe):P.defaultExpandedKeys);if(de.expandedKeys||delete de.expandedKeys,he||de.expandedKeys){var dt=(0,Fe.oH)(he||ce.treeData,de.expandedKeys||ce.expandedKeys,Oe);de.flattenNodes=dt}if(P.selectable&&(Q("selectedKeys")?de.selectedKeys=(0,Yt.BT)(P.selectedKeys,P):!Ce&&P.defaultSelectedKeys&&(de.selectedKeys=(0,Yt.BT)(P.defaultSelectedKeys,P))),P.checkable){var ge;if(Q("checkedKeys")?ge=(0,Yt.E6)(P.checkedKeys)||{}:!Ce&&P.defaultCheckedKeys?ge=(0,Yt.E6)(P.defaultCheckedKeys)||{}:he&&(ge=(0,Yt.E6)(P.checkedKeys)||{checkedKeys:ce.checkedKeys,halfCheckedKeys:ce.halfCheckedKeys}),ge){var Ae=ge,at=Ae.checkedKeys,et=at===void 0?[]:at,Qe=Ae.halfCheckedKeys,St=Qe===void 0?[]:Qe;if(!P.checkStrictly){var Tt=(0,_t.S)(et,!0,qe);et=Tt.checkedKeys,St=Tt.halfCheckedKeys}de.checkedKeys=et,de.halfCheckedKeys=St}}return Q("loadedKeys")&&(de.loadedKeys=P.loadedKeys),de}}]),Pe}(K.Component);(0,y.Z)(tt,"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:O,allowDrop:function(){return!0},expandAction:!1}),(0,y.Z)(tt,"TreeNode",q.Z);var Te=tt,pe=Te},82661:function(Rn,Gt,E){"use strict";E.d(Gt,{BT:function(){return K},E6:function(){return O},L0:function(){return y},OM:function(){return L},_5:function(){return o},r7:function(){return U},wA:function(){return m},yx:function(){return T}});var h=E(15142),le=E(26420),ne=E(48736),oe=E(59301),B=E(639),d=E(65065),me=E(34061),re=null;function o(R,x){if(!R)return[];var V=R.slice(),X=V.indexOf(x);return X>=0&&V.splice(X,1),V}function y(R,x){var V=(R||[]).slice();return V.indexOf(x)===-1&&V.push(x),V}function T(R){return R.split("-")}function m(R,x){var V=[],X=(0,d.Z)(x,R);function H(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];q.forEach(function(se){var ie=se.key,Fe=se.children;V.push(ie),H(Fe)})}return H(X.children),V}function _(R){if(R.parent){var x=T(R.pos);return Number(x[x.length-1])===R.parent.children.length-1}return!1}function b(R){var x=T(R.pos);return Number(x[x.length-1])===0}function L(R,x,V,X,H,q,se,ie,Fe,Z){var k,F=R.clientX,G=R.clientY,J=R.target.getBoundingClientRect(),j=J.top,v=J.height,g=(Z==="rtl"?-1:1)*(((H==null?void 0:H.x)||0)-F),M=(g-12)/X,ue=Fe.filter(function(pe){var N;return(N=ie[pe])===null||N===void 0||(N=N.children)===null||N===void 0?void 0:N.length}),Ie=(0,d.Z)(ie,V.eventKey);if(G<j+v/2){var Je=se.findIndex(function(pe){return pe.key===Ie.key}),Dt=Je<=0?0:Je-1,vt=se[Dt].key;Ie=(0,d.Z)(ie,vt)}var Mt=Ie.key,Bt=Ie,we=Ie.key,Yt=0,_t=0;if(!ue.includes(Mt))for(var Xt=0;Xt<M&&_(Ie);Xt+=1)Ie=Ie.parent,_t+=1;var lt=x.data,tt=Ie.node,Te=!0;return b(Ie)&&Ie.level===0&&G<j+v/2&&q({dragNode:lt,dropNode:tt,dropPosition:-1})&&Ie.key===V.eventKey?Yt=-1:(Bt.children||[]).length&&ue.includes(we)?q({dragNode:lt,dropNode:tt,dropPosition:0})?Yt=0:Te=!1:_t===0?M>-1.5?q({dragNode:lt,dropNode:tt,dropPosition:1})?Yt=1:Te=!1:q({dragNode:lt,dropNode:tt,dropPosition:0})?Yt=0:q({dragNode:lt,dropNode:tt,dropPosition:1})?Yt=1:Te=!1:q({dragNode:lt,dropNode:tt,dropPosition:1})?Yt=1:Te=!1,{dropPosition:Yt,dropLevelOffset:_t,dropTargetKey:Ie.key,dropTargetPos:Ie.pos,dragOverNodeKey:we,dropContainerKey:Yt===0?null:((k=Ie.parent)===null||k===void 0?void 0:k.key)||null,dropAllowed:Te}}function K(R,x){if(R){var V=x.multiple;return V?R.slice():R.length?[R[0]]:R}}var W=function(x){return x};function $(R,x){if(!R)return[];var V=x||{},X=V.processProps,H=X===void 0?W:X,q=Array.isArray(R)?R:[R];return q.map(function(se){var ie=se.children,Fe=_objectWithoutProperties(se,re),Z=$(ie,x);return React.createElement(TreeNode,_extends({key:Fe.key},H(Fe)),Z)})}function O(R){if(!R)return null;var x;if(Array.isArray(R))x={checkedKeys:R,halfCheckedKeys:void 0};else if((0,le.Z)(R)==="object")x={checkedKeys:R.checked||void 0,halfCheckedKeys:R.halfChecked||void 0};else return(0,ne.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return x}function U(R,x){var V=new Set;function X(H){if(!V.has(H)){var q=(0,d.Z)(x,H);if(q){V.add(H);var se=q.parent,ie=q.node;ie.disabled||se&&X(se.key)}}}return(R||[]).forEach(function(H){X(H)}),(0,h.Z)(V)}},34643:function(Rn,Gt,E){"use strict";E.d(Gt,{S:function(){return me}});var h=E(48736),le=E(65065);function ne(re,o){var y=new Set;return re.forEach(function(T){o.has(T)||y.add(T)}),y}function oe(re){var o=re||{},y=o.disabled,T=o.disableCheckbox,m=o.checkable;return!!(y||T)||m===!1}function B(re,o,y,T){for(var m=new Set(re),_=new Set,b=0;b<=y;b+=1){var L=o.get(b)||new Set;L.forEach(function(O){var U=O.key,R=O.node,x=O.children,V=x===void 0?[]:x;m.has(U)&&!T(R)&&V.filter(function(X){return!T(X.node)}).forEach(function(X){m.add(X.key)})})}for(var K=new Set,W=y;W>=0;W-=1){var $=o.get(W)||new Set;$.forEach(function(O){var U=O.parent,R=O.node;if(!(T(R)||!O.parent||K.has(O.parent.key))){if(T(O.parent.node)){K.add(U.key);return}var x=!0,V=!1;(U.children||[]).filter(function(X){return!T(X.node)}).forEach(function(X){var H=X.key,q=m.has(H);x&&!q&&(x=!1),!V&&(q||_.has(H))&&(V=!0)}),x&&m.add(U.key),V&&_.add(U.key),K.add(U.key)}})}return{checkedKeys:Array.from(m),halfCheckedKeys:Array.from(ne(_,m))}}function d(re,o,y,T,m){for(var _=new Set(re),b=new Set(o),L=0;L<=T;L+=1){var K=y.get(L)||new Set;K.forEach(function(U){var R=U.key,x=U.node,V=U.children,X=V===void 0?[]:V;!_.has(R)&&!b.has(R)&&!m(x)&&X.filter(function(H){return!m(H.node)}).forEach(function(H){_.delete(H.key)})})}b=new Set;for(var W=new Set,$=T;$>=0;$-=1){var O=y.get($)||new Set;O.forEach(function(U){var R=U.parent,x=U.node;if(!(m(x)||!U.parent||W.has(U.parent.key))){if(m(U.parent.node)){W.add(R.key);return}var V=!0,X=!1;(R.children||[]).filter(function(H){return!m(H.node)}).forEach(function(H){var q=H.key,se=_.has(q);V&&!se&&(V=!1),!X&&(se||b.has(q))&&(X=!0)}),V||_.delete(R.key),X&&b.add(R.key),W.add(R.key)}})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(ne(b,_))}}function me(re,o,y,T){var m=[],_;T?_=T:_=oe;var b=new Set(re.filter(function($){var O=!!(0,le.Z)(y,$);return O||m.push($),O})),L=new Map,K=0;Object.keys(y).forEach(function($){var O=y[$],U=O.level,R=L.get(U);R||(R=new Set,L.set(U,R)),R.add(O),K=Math.max(K,U)}),(0,h.ZP)(!m.length,"Tree missing follow keys: ".concat(m.slice(0,100).map(function($){return"'".concat($,"'")}).join(", ")));var W;return o===!0?W=B(b,L,K,_):W=d(b,o.halfCheckedKeys,L,K,_),W}},65065:function(Rn,Gt,E){"use strict";E.d(Gt,{Z:function(){return h}});function h(le,ne){return le[ne]}},34061:function(Rn,Gt,E){"use strict";E.d(Gt,{F:function(){return U},H8:function(){return O},I8:function(){return $},km:function(){return m},oH:function(){return K},w$:function(){return _},zn:function(){return L}});var h=E(26420),le=E(15142),ne=E(98506),oe=E(33346),B=E(11592),d=E(2738),me=E(48736),re=E(65065),o=["children"];function y(R,x){return"".concat(R,"-").concat(x)}function T(R){return R&&R.type&&R.type.isTreeNode}function m(R,x){return R!=null?R:x}function _(R){var x=R||{},V=x.title,X=x._title,H=x.key,q=x.children,se=V||"title";return{title:se,_title:X||[se],key:H||"key",children:q||"children"}}function b(R,x){var V=new Map;function X(H){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(H||[]).forEach(function(se){var ie=se[x.key],Fe=se[x.children];warning(ie!=null,"Tree node must have a certain key: [".concat(q).concat(ie,"]"));var Z=String(ie);warning(!V.has(Z)||ie===null||ie===void 0,"Same 'key' exist in the Tree: ".concat(Z)),V.set(Z,!0),X(Fe,"".concat(q).concat(Z," > "))})}X(R)}function L(R){function x(V){var X=(0,B.Z)(V);return X.map(function(H){if(!T(H))return(0,me.ZP)(!H,"Tree/TreeNode can only accept TreeNode as children."),null;var q=H.key,se=H.props,ie=se.children,Fe=(0,oe.Z)(se,o),Z=(0,ne.Z)({key:q},Fe),k=x(ie);return k.length&&(Z.children=k),Z}).filter(function(H){return H})}return x(R)}function K(R,x,V){var X=_(V),H=X._title,q=X.key,se=X.children,ie=new Set(x===!0?[]:x),Fe=[];function Z(k){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return k.map(function(G,J){for(var j=y(F?F.pos:"0",J),v=m(G[q],j),g,M=0;M<H.length;M+=1){var ue=H[M];if(G[ue]!==void 0){g=G[ue];break}}var Ie=Object.assign((0,d.Z)(G,[].concat((0,le.Z)(H),[q,se])),{title:g,key:v,parent:F,pos:j,children:null,data:G,isStart:[].concat((0,le.Z)(F?F.isStart:[]),[J===0]),isEnd:[].concat((0,le.Z)(F?F.isEnd:[]),[J===k.length-1])});return Fe.push(Ie),x===!0||ie.has(v)?Ie.children=Z(G[se]||[],Ie):Ie.children=[],Ie})}return Z(R),Fe}function W(R,x,V){var X={};(0,h.Z)(V)==="object"?X=V:X={externalGetKey:V},X=X||{};var H=X,q=H.childrenPropName,se=H.externalGetKey,ie=H.fieldNames,Fe=_(ie),Z=Fe.key,k=Fe.children,F=q||k,G;se?typeof se=="string"?G=function(v){return v[se]}:typeof se=="function"&&(G=function(v){return se(v)}):G=function(v,g){return m(v[Z],g)};function J(j,v,g,M){var ue=j?j[F]:R,Ie=j?y(g.pos,v):"0",Je=j?[].concat((0,le.Z)(M),[j]):[];if(j){var Dt=G(j,Ie),vt={node:j,index:v,pos:Ie,key:Dt,parentPos:g.node?g.pos:null,level:g.level+1,nodes:Je};x(vt)}ue&&ue.forEach(function(Mt,Bt){J(Mt,Bt,{node:j,pos:Ie,level:g?g.level+1:-1},Je)})}J(null)}function $(R){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},V=x.initWrapper,X=x.processEntity,H=x.onProcessFinished,q=x.externalGetKey,se=x.childrenPropName,ie=x.fieldNames,Fe=arguments.length>2?arguments[2]:void 0,Z=q||Fe,k={},F={},G={posEntities:k,keyEntities:F};return V&&(G=V(G)||G),W(R,function(J){var j=J.node,v=J.index,g=J.pos,M=J.key,ue=J.parentPos,Ie=J.level,Je=J.nodes,Dt={node:j,nodes:Je,index:v,key:M,pos:g,level:Ie},vt=m(M,g);k[g]=Dt,F[vt]=Dt,Dt.parent=k[ue],Dt.parent&&(Dt.parent.children=Dt.parent.children||[],Dt.parent.children.push(Dt)),X&&X(Dt,G)},{externalGetKey:Z,childrenPropName:se,fieldNames:ie}),H&&H(G),G}function O(R,x){var V=x.expandedKeys,X=x.selectedKeys,H=x.loadedKeys,q=x.loadingKeys,se=x.checkedKeys,ie=x.halfCheckedKeys,Fe=x.dragOverNodeKey,Z=x.dropPosition,k=x.keyEntities,F=(0,re.Z)(k,R),G={eventKey:R,expanded:V.indexOf(R)!==-1,selected:X.indexOf(R)!==-1,loaded:H.indexOf(R)!==-1,loading:q.indexOf(R)!==-1,checked:se.indexOf(R)!==-1,halfChecked:ie.indexOf(R)!==-1,pos:String(F?F.pos:""),dragOver:Fe===R&&Z===0,dragOverGapTop:Fe===R&&Z===-1,dragOverGapBottom:Fe===R&&Z===1};return G}function U(R){var x=R.data,V=R.expanded,X=R.selected,H=R.checked,q=R.loaded,se=R.loading,ie=R.halfChecked,Fe=R.dragOver,Z=R.dragOverGapTop,k=R.dragOverGapBottom,F=R.pos,G=R.active,J=R.eventKey,j=(0,ne.Z)((0,ne.Z)({},x),{},{expanded:V,selected:X,checked:H,loaded:q,loading:se,halfChecked:ie,dragOver:Fe,dragOverGapTop:Z,dragOverGapBottom:k,pos:F,active:G,key:J});return"props"in j||Object.defineProperty(j,"props",{get:function(){return(0,me.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),R}}),j}},8224:function(Rn,Gt,E){"use strict";E.d(Gt,{Z:function(){return le}});var h=E(4676);function le(ne,oe,B,d){var me=h.unstable_batchedUpdates?function(o){h.unstable_batchedUpdates(B,o)}:B;return ne!=null&&ne.addEventListener&&ne.addEventListener(oe,me,d),{remove:function(){ne!=null&&ne.removeEventListener&&ne.removeEventListener(oe,me,d)}}}},24514:function(Rn,Gt,E){"use strict";E.d(Gt,{G:function(){return oe}});var h=E(47273),le=function(d){if((0,h.Z)()&&window.document.documentElement){var me=Array.isArray(d)?d:[d],re=window.document.documentElement;return me.some(function(o){return o in re.style})}return!1},ne=function(d,me){if(!le(d))return!1;var re=document.createElement("div"),o=re.style[d];return re.style[d]=me,re.style[d]!==o};function oe(B,d){return!Array.isArray(B)&&d!==void 0?ne(B,d):le(B)}},49658:function(Rn,Gt){"use strict";Gt.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var E=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(E)||/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(E==null?void 0:E.substr(0,4))}},6790:function(Rn,Gt,E){"use strict";E.d(Gt,{Z:function(){return lt}});var h=E(67711),le=E(26420),ne=E(98506),oe=E(52873),B=E(16886),d=E(33346),me=E(92310),re=E.n(me),o=E(29301),y=E(70425),T=E(34280),m=E(59301),_=E(4676),b=m.forwardRef(function(tt,Te){var pe=tt.height,N=tt.offsetY,xe=tt.offsetX,Pe=tt.children,z=tt.prefixCls,P=tt.onInnerResize,ce=tt.innerProps,Ce=tt.rtl,de=tt.extra,Q={},he={display:"flex",flexDirection:"column"};return N!==void 0&&(Q={height:pe,position:"relative",overflow:"hidden"},he=(0,ne.Z)((0,ne.Z)({},he),{},(0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)((0,oe.Z)({transform:"translateY(".concat(N,"px)")},Ce?"marginRight":"marginLeft",-xe),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:Q},m.createElement(o.Z,{onResize:function(Re){var qe=Re.offsetHeight;qe&&P&&P()}},m.createElement("div",(0,h.Z)({style:he,className:re()((0,oe.Z)({},"".concat(z,"-holder-inner"),z)),ref:Te},ce),Pe,de)))});b.displayName="Filler";var L=b;function K(tt){var Te=tt.children,pe=tt.setRef,N=m.useCallback(function(xe){pe(xe)},[]);return m.cloneElement(Te,{ref:N})}function W(tt,Te,pe,N,xe,Pe,z,P){var ce=P.getKey;return tt.slice(Te,pe+1).map(function(Ce,de){var Q=Te+de,he=z(Ce,Q,{style:{width:N},offsetX:xe}),Oe=ce(Ce);return m.createElement(K,{key:Oe,setRef:function(qe){return Pe(Ce,qe)}},he)})}function $(tt,Te,pe,N){var xe=pe-tt,Pe=Te-pe,z=Math.min(xe,Pe)*2;if(N<=z){var P=Math.floor(N/2);return N%2?pe+P+1:pe-P}return xe>Pe?pe-(N-Pe):pe+(N-xe)}function O(tt,Te,pe){var N=tt.length,xe=Te.length,Pe,z;if(N===0&&xe===0)return null;N<xe?(Pe=tt,z=Te):(Pe=Te,z=tt);var P={__EMPTY_ITEM__:!0};function ce(Re){return Re!==void 0?pe(Re):P}for(var Ce=null,de=Math.abs(N-xe)!==1,Q=0;Q<z.length;Q+=1){var he=ce(Pe[Q]),Oe=ce(z[Q]);if(he!==Oe){Ce=Q,de=de||he!==ce(z[Q+1]);break}}return Ce===null?null:{index:Ce,multiple:de}}function U(tt,Te,pe){var N=m.useState(tt),xe=(0,B.Z)(N,2),Pe=xe[0],z=xe[1],P=m.useState(null),ce=(0,B.Z)(P,2),Ce=ce[0],de=ce[1];return m.useEffect(function(){var Q=O(Pe||[],tt||[],Te);(Q==null?void 0:Q.index)!==void 0&&(pe==null||pe(Q.index),de(tt[Q.index])),z(tt)},[tt]),[Ce]}var R=E(16089),x=(typeof navigator=="undefined"?"undefined":(0,le.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),V=x,X=function(tt,Te,pe,N){var xe=(0,m.useRef)(!1),Pe=(0,m.useRef)(null);function z(){clearTimeout(Pe.current),xe.current=!0,Pe.current=setTimeout(function(){xe.current=!1},50)}var P=(0,m.useRef)({top:tt,bottom:Te,left:pe,right:N});return P.current.top=tt,P.current.bottom=Te,P.current.left=pe,P.current.right=N,function(ce,Ce){var de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Q=ce?Ce<0&&P.current.left||Ce>0&&P.current.right:Ce<0&&P.current.top||Ce>0&&P.current.bottom;return de&&Q?(clearTimeout(Pe.current),xe.current=!1):(!Q||xe.current)&&z(),!xe.current&&Q}};function H(tt,Te,pe,N,xe,Pe,z){var P=(0,m.useRef)(0),ce=(0,m.useRef)(null),Ce=(0,m.useRef)(null),de=(0,m.useRef)(!1),Q=X(Te,pe,N,xe);function he(dt,ge){if(R.Z.cancel(ce.current),!Q(!1,ge)){var Ae=dt;if(!Ae._virtualHandled)Ae._virtualHandled=!0;else return;P.current+=ge,Ce.current=ge,V||Ae.preventDefault(),ce.current=(0,R.Z)(function(){var at=de.current?10:1;z(P.current*at,!1),P.current=0})}}function Oe(dt,ge){z(ge,!0),V||dt.preventDefault()}var Re=(0,m.useRef)(null),qe=(0,m.useRef)(null);function Ye(dt){if(tt){R.Z.cancel(qe.current),qe.current=(0,R.Z)(function(){Re.current=null},2);var ge=dt.deltaX,Ae=dt.deltaY,at=dt.shiftKey,et=ge,Qe=Ae;(Re.current==="sx"||!Re.current&&at&&Ae&&!ge)&&(et=Ae,Qe=0,Re.current="sx");var St=Math.abs(et),Tt=Math.abs(Qe);Re.current===null&&(Re.current=Pe&&St>Tt?"x":"y"),Re.current==="y"?he(dt,Qe):Oe(dt,et)}}function Et(dt){tt&&(de.current=dt.detail===Ce.current)}return[Ye,Et]}function q(tt,Te,pe,N){var xe=m.useMemo(function(){return[new Map,[]]},[tt,pe.id,N]),Pe=(0,B.Z)(xe,2),z=Pe[0],P=Pe[1],ce=function(de){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:de,he=z.get(de),Oe=z.get(Q);if(he===void 0||Oe===void 0)for(var Re=tt.length,qe=P.length;qe<Re;qe+=1){var Ye,Et=tt[qe],dt=Te(Et);z.set(dt,qe);var ge=(Ye=pe.get(dt))!==null&&Ye!==void 0?Ye:N;if(P[qe]=(P[qe-1]||0)+ge,dt===de&&(he=qe),dt===Q&&(Oe=qe),he!==void 0&&Oe!==void 0)break}return{top:P[he-1]||0,bottom:P[Oe]}};return ce}var se=E(42573),ie=E(58698),Fe=function(){function tt(){(0,se.Z)(this,tt),(0,oe.Z)(this,"maps",void 0),(0,oe.Z)(this,"id",0),(0,oe.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,ie.Z)(tt,[{key:"set",value:function(pe,N){this.diffRecords.set(pe,this.maps[pe]),this.maps[pe]=N,this.id+=1}},{key:"get",value:function(pe){return this.maps[pe]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),tt}(),Z=Fe;function k(tt){var Te=parseFloat(tt);return isNaN(Te)?0:Te}function F(tt,Te,pe){var N=m.useState(0),xe=(0,B.Z)(N,2),Pe=xe[0],z=xe[1],P=(0,m.useRef)(new Map),ce=(0,m.useRef)(new Z),Ce=(0,m.useRef)(0);function de(){Ce.current+=1}function Q(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;de();var Re=function(){var Et=!1;P.current.forEach(function(dt,ge){if(dt&&dt.offsetParent){var Ae=dt.offsetHeight,at=getComputedStyle(dt),et=at.marginTop,Qe=at.marginBottom,St=k(et),Tt=k(Qe),He=Ae+St+Tt;ce.current.get(ge)!==He&&(ce.current.set(ge,He),Et=!0)}}),Et&&z(function(dt){return dt+1})};if(Oe)Re();else{Ce.current+=1;var qe=Ce.current;Promise.resolve().then(function(){qe===Ce.current&&Re()})}}function he(Oe,Re){var qe=tt(Oe),Ye=P.current.get(qe);Re?(P.current.set(qe,Re),Q()):P.current.delete(qe),!Ye!=!Re&&(Re?Te==null||Te(Oe):pe==null||pe(Oe))}return(0,m.useEffect)(function(){return de},[]),[he,Q,ce.current,Pe]}var G=14/15;function J(tt,Te,pe){var N=(0,m.useRef)(!1),xe=(0,m.useRef)(0),Pe=(0,m.useRef)(0),z=(0,m.useRef)(null),P=(0,m.useRef)(null),ce,Ce=function(Oe){if(N.current){var Re=Math.ceil(Oe.touches[0].pageX),qe=Math.ceil(Oe.touches[0].pageY),Ye=xe.current-Re,Et=Pe.current-qe,dt=Math.abs(Ye)>Math.abs(Et);dt?xe.current=Re:Pe.current=qe;var ge=pe(dt,dt?Ye:Et,!1,Oe);ge&&Oe.preventDefault(),clearInterval(P.current),ge&&(P.current=setInterval(function(){dt?Ye*=G:Et*=G;var Ae=Math.floor(dt?Ye:Et);(!pe(dt,Ae,!0)||Math.abs(Ae)<=.1)&&clearInterval(P.current)},16))}},de=function(){N.current=!1,ce()},Q=function(Oe){ce(),Oe.touches.length===1&&!N.current&&(N.current=!0,xe.current=Math.ceil(Oe.touches[0].pageX),Pe.current=Math.ceil(Oe.touches[0].pageY),z.current=Oe.target,z.current.addEventListener("touchmove",Ce,{passive:!1}),z.current.addEventListener("touchend",de,{passive:!0}))};ce=function(){z.current&&(z.current.removeEventListener("touchmove",Ce),z.current.removeEventListener("touchend",de))},(0,T.Z)(function(){return tt&&Te.current.addEventListener("touchstart",Q,{passive:!0}),function(){var he;(he=Te.current)===null||he===void 0||he.removeEventListener("touchstart",Q),ce(),clearInterval(P.current)}},[tt])}function j(tt){return Math.floor(Math.pow(tt,.5))}function v(tt,Te){var pe="touches"in tt?tt.touches[0]:tt;return pe[Te?"pageX":"pageY"]-window[Te?"scrollX":"scrollY"]}function g(tt,Te,pe){m.useEffect(function(){var N=Te.current;if(tt&&N){var xe=!1,Pe,z,P=function(){R.Z.cancel(Pe)},ce=function he(){P(),Pe=(0,R.Z)(function(){pe(z),he()})},Ce=function(Oe){if(!(Oe.target.draggable||Oe.button!==0)){var Re=Oe;Re._virtualHandled||(Re._virtualHandled=!0,xe=!0)}},de=function(){xe=!1,P()},Q=function(Oe){if(xe){var Re=v(Oe,!1),qe=N.getBoundingClientRect(),Ye=qe.top,Et=qe.bottom;if(Re<=Ye){var dt=Ye-Re;z=-j(dt),ce()}else if(Re>=Et){var ge=Re-Et;z=j(ge),ce()}else P()}};return N.addEventListener("mousedown",Ce),N.ownerDocument.addEventListener("mouseup",de),N.ownerDocument.addEventListener("mousemove",Q),function(){N.removeEventListener("mousedown",Ce),N.ownerDocument.removeEventListener("mouseup",de),N.ownerDocument.removeEventListener("mousemove",Q),P()}}},[tt])}var M=10;function ue(tt,Te,pe,N,xe,Pe,z,P){var ce=m.useRef(),Ce=m.useState(null),de=(0,B.Z)(Ce,2),Q=de[0],he=de[1];return(0,T.Z)(function(){if(Q&&Q.times<M){if(!tt.current){he(function(ee){return(0,ne.Z)({},ee)});return}Pe();var Oe=Q.targetAlign,Re=Q.originAlign,qe=Q.index,Ye=Q.offset,Et=tt.current.clientHeight,dt=!1,ge=Oe,Ae=null;if(Et){for(var at=Oe||Re,et=0,Qe=0,St=0,Tt=Math.min(Te.length-1,qe),He=0;He<=Tt;He+=1){var Wt=xe(Te[He]);Qe=et;var fn=pe.get(Wt);St=Qe+(fn===void 0?N:fn),et=St}for(var Rt=at==="top"?Ye:Et-Ye,qt=Tt;qt>=0;qt-=1){var Ke=xe(Te[qt]),ke=pe.get(Ke);if(ke===void 0){dt=!0;break}if(Rt-=ke,Rt<=0)break}switch(at){case"top":Ae=Qe-Ye;break;case"bottom":Ae=St-Et+Ye;break;default:{var Ne=tt.current.scrollTop,I=Ne+Et;Qe<Ne?ge="top":St>I&&(ge="bottom")}}Ae!==null&&z(Ae),Ae!==Q.lastTop&&(dt=!0)}dt&&he((0,ne.Z)((0,ne.Z)({},Q),{},{times:Q.times+1,targetAlign:ge,lastTop:Ae}))}},[Q,tt.current]),function(Oe){if(Oe==null){P();return}if(R.Z.cancel(ce.current),typeof Oe=="number")z(Oe);else if(Oe&&(0,le.Z)(Oe)==="object"){var Re,qe=Oe.align;"index"in Oe?Re=Oe.index:Re=Te.findIndex(function(dt){return xe(dt)===Oe.key});var Ye=Oe.offset,Et=Ye===void 0?0:Ye;he({times:0,index:Re,offset:Et,originAlign:qe})}}}var Ie=m.forwardRef(function(tt,Te){var pe=tt.prefixCls,N=tt.rtl,xe=tt.scrollOffset,Pe=tt.scrollRange,z=tt.onStartMove,P=tt.onStopMove,ce=tt.onScroll,Ce=tt.horizontal,de=tt.spinSize,Q=tt.containerSize,he=tt.style,Oe=tt.thumbStyle,Re=tt.showScrollBar,qe=m.useState(!1),Ye=(0,B.Z)(qe,2),Et=Ye[0],dt=Ye[1],ge=m.useState(null),Ae=(0,B.Z)(ge,2),at=Ae[0],et=Ae[1],Qe=m.useState(null),St=(0,B.Z)(Qe,2),Tt=St[0],He=St[1],Wt=!N,fn=m.useRef(),Rt=m.useRef(),qt=m.useState(Re),Ke=(0,B.Z)(qt,2),ke=Ke[0],Ne=Ke[1],I=m.useRef(),ee=function(){Re===!0||Re===!1||(clearTimeout(I.current),Ne(!0),I.current=setTimeout(function(){Ne(!1)},3e3))},fe=Pe-Q||0,ve=Q-de||0,ye=m.useMemo(function(){if(xe===0||fe===0)return 0;var Ze=xe/fe;return Ze*ve},[xe,fe,ve]),Ue=function(Ee){Ee.stopPropagation(),Ee.preventDefault()},$e=m.useRef({top:ye,dragging:Et,pageY:at,startTop:Tt});$e.current={top:ye,dragging:Et,pageY:at,startTop:Tt};var ut=function(Ee){dt(!0),et(v(Ee,Ce)),He($e.current.top),z(),Ee.stopPropagation(),Ee.preventDefault()};m.useEffect(function(){var Ze=function(Ve){Ve.preventDefault()},Ee=fn.current,Le=Rt.current;return Ee.addEventListener("touchstart",Ze,{passive:!1}),Le.addEventListener("touchstart",ut,{passive:!1}),function(){Ee.removeEventListener("touchstart",Ze),Le.removeEventListener("touchstart",ut)}},[]);var At=m.useRef();At.current=fe;var Ge=m.useRef();Ge.current=ve,m.useEffect(function(){if(Et){var Ze,Ee=function(Ve){var it=$e.current,Pt=it.dragging,Kt=it.pageY,mn=it.startTop;R.Z.cancel(Ze);var De=fn.current.getBoundingClientRect(),Se=Q/(Ce?De.width:De.height);if(Pt){var nt=(v(Ve,Ce)-Kt)*Se,st=mn;!Wt&&Ce?st-=nt:st+=nt;var Ct=At.current,ft=Ge.current,Ot=ft?st/ft:0,Zt=Math.ceil(Ot*Ct);Zt=Math.max(Zt,0),Zt=Math.min(Zt,Ct),Ze=(0,R.Z)(function(){ce(Zt,Ce)})}},Le=function(){dt(!1),P()};return window.addEventListener("mousemove",Ee,{passive:!0}),window.addEventListener("touchmove",Ee,{passive:!0}),window.addEventListener("mouseup",Le,{passive:!0}),window.addEventListener("touchend",Le,{passive:!0}),function(){window.removeEventListener("mousemove",Ee),window.removeEventListener("touchmove",Ee),window.removeEventListener("mouseup",Le),window.removeEventListener("touchend",Le),R.Z.cancel(Ze)}}},[Et]),m.useEffect(function(){return ee(),function(){clearTimeout(I.current)}},[xe]),m.useImperativeHandle(Te,function(){return{delayHidden:ee}});var w="".concat(pe,"-scrollbar"),ae={position:"absolute",visibility:ke?null:"hidden"},A={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Ce?(Object.assign(ae,{height:8,left:0,right:0,bottom:0}),Object.assign(A,(0,oe.Z)({height:"100%",width:de},Wt?"left":"right",ye))):(Object.assign(ae,(0,oe.Z)({width:8,top:0,bottom:0},Wt?"right":"left",0)),Object.assign(A,{width:"100%",height:de,top:ye})),m.createElement("div",{ref:fn,className:re()(w,(0,oe.Z)((0,oe.Z)((0,oe.Z)({},"".concat(w,"-horizontal"),Ce),"".concat(w,"-vertical"),!Ce),"".concat(w,"-visible"),ke)),style:(0,ne.Z)((0,ne.Z)({},ae),he),onMouseDown:Ue,onMouseMove:ee},m.createElement("div",{ref:Rt,className:re()("".concat(w,"-thumb"),(0,oe.Z)({},"".concat(w,"-thumb-moving"),Et)),style:(0,ne.Z)((0,ne.Z)({},A),Oe),onMouseDown:ut}))}),Je=Ie,Dt=20;function vt(){var tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,pe=tt/Te*tt;return isNaN(pe)&&(pe=0),pe=Math.max(pe,Dt),Math.floor(pe)}var Mt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Bt=[],we={overflowY:"auto",overflowAnchor:"none"};function Yt(tt,Te){var pe=tt.prefixCls,N=pe===void 0?"rc-virtual-list":pe,xe=tt.className,Pe=tt.height,z=tt.itemHeight,P=tt.fullHeight,ce=P===void 0?!0:P,Ce=tt.style,de=tt.data,Q=tt.children,he=tt.itemKey,Oe=tt.virtual,Re=tt.direction,qe=tt.scrollWidth,Ye=tt.component,Et=Ye===void 0?"div":Ye,dt=tt.onScroll,ge=tt.onVirtualScroll,Ae=tt.onVisibleChange,at=tt.innerProps,et=tt.extraRender,Qe=tt.styles,St=tt.showScrollBar,Tt=St===void 0?"optional":St,He=(0,d.Z)(tt,Mt),Wt=m.useCallback(function(rt){return typeof he=="function"?he(rt):rt==null?void 0:rt[he]},[he]),fn=F(Wt,null,null),Rt=(0,B.Z)(fn,4),qt=Rt[0],Ke=Rt[1],ke=Rt[2],Ne=Rt[3],I=!!(Oe!==!1&&Pe&&z),ee=m.useMemo(function(){return Object.values(ke.maps).reduce(function(rt,pt){return rt+pt},0)},[ke.id,ke.maps]),fe=I&&de&&(Math.max(z*de.length,ee)>Pe||!!qe),ve=Re==="rtl",ye=re()(N,(0,oe.Z)({},"".concat(N,"-rtl"),ve),xe),Ue=de||Bt,$e=(0,m.useRef)(),ut=(0,m.useRef)(),At=(0,m.useRef)(),Ge=(0,m.useState)(0),w=(0,B.Z)(Ge,2),ae=w[0],A=w[1],Ze=(0,m.useState)(0),Ee=(0,B.Z)(Ze,2),Le=Ee[0],ze=Ee[1],Ve=(0,m.useState)(!1),it=(0,B.Z)(Ve,2),Pt=it[0],Kt=it[1],mn=function(){Kt(!0)},De=function(){Kt(!1)},Se={getKey:Wt};function nt(rt){A(function(pt){var yt;typeof rt=="function"?yt=rt(pt):yt=rt;var Lt=ar(yt);return $e.current.scrollTop=Lt,Lt})}var st=(0,m.useRef)({start:0,end:Ue.length}),Ct=(0,m.useRef)(),ft=U(Ue,Wt),Ot=(0,B.Z)(ft,1),Zt=Ot[0];Ct.current=Zt;var tn=m.useMemo(function(){if(!I)return{scrollHeight:void 0,start:0,end:Ue.length-1,offset:void 0};if(!fe){var rt;return{scrollHeight:((rt=ut.current)===null||rt===void 0?void 0:rt.offsetHeight)||0,start:0,end:Ue.length-1,offset:void 0}}for(var pt=0,yt,Lt,Vt,dn=Ue.length,Cn=0;Cn<dn;Cn+=1){var bn=Ue[Cn],Bn=Wt(bn),Yn=ke.get(Bn),Zn=pt+(Yn===void 0?z:Yn);Zn>=ae&&yt===void 0&&(yt=Cn,Lt=pt),Zn>ae+Pe&&Vt===void 0&&(Vt=Cn),pt=Zn}return yt===void 0&&(yt=0,Lt=0,Vt=Math.ceil(Pe/z)),Vt===void 0&&(Vt=Ue.length-1),Vt=Math.min(Vt+1,Ue.length-1),{scrollHeight:pt,start:yt,end:Vt,offset:Lt}},[fe,I,ae,Ue,Ne,Pe]),Nt=tn.scrollHeight,un=tn.start,gn=tn.end,ln=tn.offset;st.current.start=un,st.current.end=gn,m.useLayoutEffect(function(){var rt=ke.getRecord();if(rt.size===1){var pt=Array.from(rt.keys())[0],yt=rt.get(pt),Lt=Ue[un];if(Lt&&yt===void 0){var Vt=Wt(Lt);if(Vt===pt){var dn=ke.get(pt),Cn=dn-z;nt(function(bn){return bn+Cn})}}}ke.resetRecord()},[Nt]);var jt=m.useState({width:0,height:Pe}),Be=(0,B.Z)(jt,2),ot=Be[0],gt=Be[1],wt=function(pt){gt({width:pt.offsetWidth,height:pt.offsetHeight})},$t=(0,m.useRef)(),rn=(0,m.useRef)(),cn=m.useMemo(function(){return vt(ot.width,qe)},[ot.width,qe]),En=m.useMemo(function(){return vt(ot.height,Nt)},[ot.height,Nt]),wn=Nt-Pe,Pn=(0,m.useRef)(wn);Pn.current=wn;function ar(rt){var pt=rt;return Number.isNaN(Pn.current)||(pt=Math.min(pt,Pn.current)),pt=Math.max(pt,0),pt}var Dn=ae<=0,In=ae>=wn,Nn=Le<=0,zn=Le>=qe,Wn=X(Dn,In,Nn,zn),Mn=function(){return{x:ve?-Le:Le,y:ae}},On=(0,m.useRef)(Mn()),yn=(0,y.zX)(function(rt){if(ge){var pt=(0,ne.Z)((0,ne.Z)({},Mn()),rt);(On.current.x!==pt.x||On.current.y!==pt.y)&&(ge(pt),On.current=pt)}});function xn(rt,pt){var yt=rt;pt?((0,_.flushSync)(function(){ze(yt)}),yn()):nt(yt)}function je(rt){var pt=rt.currentTarget.scrollTop;pt!==ae&&nt(pt),dt==null||dt(rt),yn()}var Ft=function(pt){var yt=pt,Lt=qe?qe-ot.width:0;return yt=Math.max(yt,0),yt=Math.min(yt,Lt),yt},on=(0,y.zX)(function(rt,pt){pt?((0,_.flushSync)(function(){ze(function(yt){var Lt=yt+(ve?-rt:rt);return Ft(Lt)})}),yn()):nt(function(yt){var Lt=yt+rt;return Lt})}),pn=H(I,Dn,In,Nn,zn,!!qe,on),Un=(0,B.Z)(pn,2),_e=Un[0],ct=Un[1];J(I,$e,function(rt,pt,yt,Lt){var Vt=Lt;return Wn(rt,pt,yt)?!1:!Vt||!Vt._virtualHandled?(Vt&&(Vt._virtualHandled=!0),_e({preventDefault:function(){},deltaX:rt?pt:0,deltaY:rt?0:pt}),!0):!1}),g(fe,$e,function(rt){nt(function(pt){return pt+rt})}),(0,T.Z)(function(){function rt(yt){var Lt=Dn&&yt.detail<0,Vt=In&&yt.detail>0;I&&!Lt&&!Vt&&yt.preventDefault()}var pt=$e.current;return pt.addEventListener("wheel",_e,{passive:!1}),pt.addEventListener("DOMMouseScroll",ct,{passive:!0}),pt.addEventListener("MozMousePixelScroll",rt,{passive:!1}),function(){pt.removeEventListener("wheel",_e),pt.removeEventListener("DOMMouseScroll",ct),pt.removeEventListener("MozMousePixelScroll",rt)}},[I,Dn,In]),(0,T.Z)(function(){if(qe){var rt=Ft(Le);ze(rt),yn({x:rt})}},[ot.width,qe]);var We=function(){var pt,yt;(pt=$t.current)===null||pt===void 0||pt.delayHidden(),(yt=rn.current)===null||yt===void 0||yt.delayHidden()},ht=ue($e,Ue,ke,z,Wt,function(){return Ke(!0)},nt,We);m.useImperativeHandle(Te,function(){return{nativeElement:At.current,getScrollInfo:Mn,scrollTo:function(pt){function yt(Lt){return Lt&&(0,le.Z)(Lt)==="object"&&("left"in Lt||"top"in Lt)}yt(pt)?(pt.left!==void 0&&ze(Ft(pt.left)),ht(pt.top)):ht(pt)}}}),(0,T.Z)(function(){if(Ae){var rt=Ue.slice(un,gn+1);Ae(rt,Ue)}},[un,gn,Ue]);var bt=q(Ue,Wt,ke,z),kt=et==null?void 0:et({start:un,end:gn,virtual:fe,offsetX:Le,offsetY:ln,rtl:ve,getSize:bt}),nn=W(Ue,un,gn,qe,Le,qt,Q,Se),Qt=null;Pe&&(Qt=(0,ne.Z)((0,oe.Z)({},ce?"height":"maxHeight",Pe),we),I&&(Qt.overflowY="hidden",qe&&(Qt.overflowX="hidden"),Pt&&(Qt.pointerEvents="none")));var zt={};return ve&&(zt.dir="rtl"),m.createElement("div",(0,h.Z)({ref:At,style:(0,ne.Z)((0,ne.Z)({},Ce),{},{position:"relative"}),className:ye},zt,He),m.createElement(o.Z,{onResize:wt},m.createElement(Et,{className:"".concat(N,"-holder"),style:Qt,ref:$e,onScroll:je,onMouseEnter:We},m.createElement(L,{prefixCls:N,height:Nt,offsetX:Le,offsetY:ln,scrollWidth:qe,onInnerResize:Ke,ref:ut,innerProps:at,rtl:ve,extra:kt},nn))),fe&&Nt>Pe&&m.createElement(Je,{ref:$t,prefixCls:N,scrollOffset:ae,scrollRange:Nt,rtl:ve,onScroll:xn,onStartMove:mn,onStopMove:De,spinSize:En,containerSize:ot.height,style:Qe==null?void 0:Qe.verticalScrollBar,thumbStyle:Qe==null?void 0:Qe.verticalScrollBarThumb,showScrollBar:Tt}),fe&&qe>ot.width&&m.createElement(Je,{ref:rn,prefixCls:N,scrollOffset:Le,scrollRange:qe,rtl:ve,onScroll:xn,onStartMove:mn,onStopMove:De,spinSize:cn,containerSize:ot.width,horizontal:!0,style:Qe==null?void 0:Qe.horizontalScrollBar,thumbStyle:Qe==null?void 0:Qe.horizontalScrollBarThumb,showScrollBar:Tt}))}var _t=m.forwardRef(Yt);_t.displayName="List";var Xt=_t,lt=Xt},83145:function(Rn,Gt,E){"use strict";Object.defineProperty(Gt,"__esModule",{value:!0}),Gt.CopyToClipboard=void 0;var h=ne(E(59301)),le=ne(E(25769));function ne(O){return O&&O.__esModule?O:{default:O}}function oe(O){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?oe=function(R){return typeof R}:oe=function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},oe(O)}function B(O,U){var R=Object.keys(O);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(O);U&&(x=x.filter(function(V){return Object.getOwnPropertyDescriptor(O,V).enumerable})),R.push.apply(R,x)}return R}function d(O){for(var U=1;U<arguments.length;U++){var R=arguments[U]!=null?arguments[U]:{};U%2?B(R,!0).forEach(function(x){W(O,x,R[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(R)):B(R).forEach(function(x){Object.defineProperty(O,x,Object.getOwnPropertyDescriptor(R,x))})}return O}function me(O,U){if(O==null)return{};var R=re(O,U),x,V;if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(O);for(V=0;V<X.length;V++)x=X[V],!(U.indexOf(x)>=0)&&Object.prototype.propertyIsEnumerable.call(O,x)&&(R[x]=O[x])}return R}function re(O,U){if(O==null)return{};var R={},x=Object.keys(O),V,X;for(X=0;X<x.length;X++)V=x[X],!(U.indexOf(V)>=0)&&(R[V]=O[V]);return R}function o(O,U){if(!(O instanceof U))throw new TypeError("Cannot call a class as a function")}function y(O,U){for(var R=0;R<U.length;R++){var x=U[R];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(O,x.key,x)}}function T(O,U,R){return U&&y(O.prototype,U),R&&y(O,R),O}function m(O,U){return U&&(oe(U)==="object"||typeof U=="function")?U:b(O)}function _(O){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},_(O)}function b(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function L(O,U){if(typeof U!="function"&&U!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(U&&U.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),U&&K(O,U)}function K(O,U){return K=Object.setPrototypeOf||function(x,V){return x.__proto__=V,x},K(O,U)}function W(O,U,R){return U in O?Object.defineProperty(O,U,{value:R,enumerable:!0,configurable:!0,writable:!0}):O[U]=R,O}var $=function(O){L(U,O);function U(){var R,x;o(this,U);for(var V=arguments.length,X=new Array(V),H=0;H<V;H++)X[H]=arguments[H];return x=m(this,(R=_(U)).call.apply(R,[this].concat(X))),W(b(x),"onClick",function(q){var se=x.props,ie=se.text,Fe=se.onCopy,Z=se.children,k=se.options,F=h.default.Children.only(Z),G=(0,le.default)(ie,k);Fe&&Fe(ie,G),F&&F.props&&typeof F.props.onClick=="function"&&F.props.onClick(q)}),x}return T(U,[{key:"render",value:function(){var x=this.props,V=x.text,X=x.onCopy,H=x.options,q=x.children,se=me(x,["text","onCopy","options","children"]),ie=h.default.Children.only(q);return h.default.cloneElement(ie,d({},se,{onClick:this.onClick}))}}]),U}(h.default.PureComponent);Gt.CopyToClipboard=$,W($,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Rn,Gt,E){"use strict";var h=E(83145),le=h.CopyToClipboard;le.CopyToClipboard=le,Rn.exports=le},76374:function(Rn,Gt,E){"use strict";var h=function(){if(typeof Map!="undefined")return Map;function Z(k,F){var G=-1;return k.some(function(J,j){return J[0]===F?(G=j,!0):!1}),G}return function(){function k(){this.__entries__=[]}return Object.defineProperty(k.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),k.prototype.get=function(F){var G=Z(this.__entries__,F),J=this.__entries__[G];return J&&J[1]},k.prototype.set=function(F,G){var J=Z(this.__entries__,F);~J?this.__entries__[J][1]=G:this.__entries__.push([F,G])},k.prototype.delete=function(F){var G=this.__entries__,J=Z(G,F);~J&&G.splice(J,1)},k.prototype.has=function(F){return!!~Z(this.__entries__,F)},k.prototype.clear=function(){this.__entries__.splice(0)},k.prototype.forEach=function(F,G){G===void 0&&(G=null);for(var J=0,j=this.__entries__;J<j.length;J++){var v=j[J];F.call(G,v[1],v[0])}},k}()}(),le=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,ne=function(){return typeof E.g!="undefined"&&E.g.Math===Math?E.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),oe=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ne):function(Z){return setTimeout(function(){return Z(Date.now())},1e3/60)}}(),B=2;function d(Z,k){var F=!1,G=!1,J=0;function j(){F&&(F=!1,Z()),G&&g()}function v(){oe(j)}function g(){var M=Date.now();if(F){if(M-J<B)return;G=!0}else F=!0,G=!1,setTimeout(v,k);J=M}return g}var me=20,re=["top","right","bottom","left","width","height","size","weight"],o=typeof MutationObserver!="undefined",y=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),me)}return Z.prototype.addObserver=function(k){~this.observers_.indexOf(k)||this.observers_.push(k),this.connected_||this.connect_()},Z.prototype.removeObserver=function(k){var F=this.observers_,G=F.indexOf(k);~G&&F.splice(G,1),!F.length&&this.connected_&&this.disconnect_()},Z.prototype.refresh=function(){var k=this.updateObservers_();k&&this.refresh()},Z.prototype.updateObservers_=function(){var k=this.observers_.filter(function(F){return F.gatherActive(),F.hasActive()});return k.forEach(function(F){return F.broadcastActive()}),k.length>0},Z.prototype.connect_=function(){!le||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(){!le||!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(k){var F=k.propertyName,G=F===void 0?"":F,J=re.some(function(j){return!!~G.indexOf(j)});J&&this.refresh()},Z.getInstance=function(){return this.instance_||(this.instance_=new Z),this.instance_},Z.instance_=null,Z}(),T=function(Z,k){for(var F=0,G=Object.keys(k);F<G.length;F++){var J=G[F];Object.defineProperty(Z,J,{value:k[J],enumerable:!1,writable:!1,configurable:!0})}return Z},m=function(Z){var k=Z&&Z.ownerDocument&&Z.ownerDocument.defaultView;return k||ne},_=V(0,0,0,0);function b(Z){return parseFloat(Z)||0}function L(Z){for(var k=[],F=1;F<arguments.length;F++)k[F-1]=arguments[F];return k.reduce(function(G,J){var j=Z["border-"+J+"-width"];return G+b(j)},0)}function K(Z){for(var k=["top","right","bottom","left"],F={},G=0,J=k;G<J.length;G++){var j=J[G],v=Z["padding-"+j];F[j]=b(v)}return F}function W(Z){var k=Z.getBBox();return V(0,0,k.width,k.height)}function $(Z){var k=Z.clientWidth,F=Z.clientHeight;if(!k&&!F)return _;var G=m(Z).getComputedStyle(Z),J=K(G),j=J.left+J.right,v=J.top+J.bottom,g=b(G.width),M=b(G.height);if(G.boxSizing==="border-box"&&(Math.round(g+j)!==k&&(g-=L(G,"left","right")+j),Math.round(M+v)!==F&&(M-=L(G,"top","bottom")+v)),!U(Z)){var ue=Math.round(g+j)-k,Ie=Math.round(M+v)-F;Math.abs(ue)!==1&&(g-=ue),Math.abs(Ie)!==1&&(M-=Ie)}return V(J.left,J.top,g,M)}var O=function(){return typeof SVGGraphicsElement!="undefined"?function(Z){return Z instanceof m(Z).SVGGraphicsElement}:function(Z){return Z instanceof m(Z).SVGElement&&typeof Z.getBBox=="function"}}();function U(Z){return Z===m(Z).document.documentElement}function R(Z){return le?O(Z)?W(Z):$(Z):_}function x(Z){var k=Z.x,F=Z.y,G=Z.width,J=Z.height,j=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,v=Object.create(j.prototype);return T(v,{x:k,y:F,width:G,height:J,top:F,right:k+G,bottom:J+F,left:k}),v}function V(Z,k,F,G){return{x:Z,y:k,width:F,height:G}}var X=function(){function Z(k){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=V(0,0,0,0),this.target=k}return Z.prototype.isActive=function(){var k=R(this.target);return this.contentRect_=k,k.width!==this.broadcastWidth||k.height!==this.broadcastHeight},Z.prototype.broadcastRect=function(){var k=this.contentRect_;return this.broadcastWidth=k.width,this.broadcastHeight=k.height,k},Z}(),H=function(){function Z(k,F){var G=x(F);T(this,{target:k,contentRect:G})}return Z}(),q=function(){function Z(k,F,G){if(this.activeObservations_=[],this.observations_=new h,typeof k!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=k,this.controller_=F,this.callbackCtx_=G}return Z.prototype.observe=function(k){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(k instanceof m(k).Element))throw new TypeError('parameter 1 is not of type "Element".');var F=this.observations_;F.has(k)||(F.set(k,new X(k)),this.controller_.addObserver(this),this.controller_.refresh())}},Z.prototype.unobserve=function(k){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(k instanceof m(k).Element))throw new TypeError('parameter 1 is not of type "Element".');var F=this.observations_;F.has(k)&&(F.delete(k),F.size||this.controller_.removeObserver(this))}},Z.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},Z.prototype.gatherActive=function(){var k=this;this.clearActive(),this.observations_.forEach(function(F){F.isActive()&&k.activeObservations_.push(F)})},Z.prototype.broadcastActive=function(){if(this.hasActive()){var k=this.callbackCtx_,F=this.activeObservations_.map(function(G){return new H(G.target,G.broadcastRect())});this.callback_.call(k,F,k),this.clearActive()}},Z.prototype.clearActive=function(){this.activeObservations_.splice(0)},Z.prototype.hasActive=function(){return this.activeObservations_.length>0},Z}(),se=typeof WeakMap!="undefined"?new WeakMap:new h,ie=function(){function Z(k){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 F=y.getInstance(),G=new q(k,F,this);se.set(this,G)}return Z}();["observe","unobserve","disconnect"].forEach(function(Z){ie.prototype[Z]=function(){var k;return(k=se.get(this))[Z].apply(k,arguments)}});var Fe=function(){return typeof ne.ResizeObserver!="undefined"?ne.ResizeObserver:ie}();Gt.Z=Fe},38710:function(Rn){var Gt=function(E){return E.replace(/[A-Z]/g,function(h){return"-"+h.toLowerCase()}).toLowerCase()};Rn.exports=Gt},98040:function(Rn){Rn.exports=function(){var Gt=document.getSelection();if(!Gt.rangeCount)return function(){};for(var E=document.activeElement,h=[],le=0;le<Gt.rangeCount;le++)h.push(Gt.getRangeAt(le));switch(E.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":E.blur();break;default:E=null;break}return Gt.removeAllRanges(),function(){Gt.type==="Caret"&&Gt.removeAllRanges(),Gt.rangeCount||h.forEach(function(ne){Gt.addRange(ne)}),E&&E.focus()}}},93314:function(Rn){"use strict";Rn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/Vx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DGaSUZedGMnuM7jwYA3yP7CdeXzT0RgMX+xjU7myBWAy7y0+EA3/0V649Hw9Lu3qSZ2nQKA7ahLYD6pYEkXiHVtSivqztrmv5RqSKzv/AzX70/fxN4ToYFL0XdBk3rJBThvy/rnzMhT62TNyahTpMtFhsO1OF9aEfsYgHKFTfoeVDh8PbuHANJCJj4ewC0QIGOQgEMvh6i+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="},81168:function(Rn,Gt,E){"use strict";E.d(Gt,{ZP:function(){return fs}});const h=Number.isFinite||function(a){return typeof a=="number"&&isFinite(a)},le=Number.isSafeInteger||function(a){return typeof a=="number"&&Math.abs(a)<=ne},ne=Number.MAX_SAFE_INTEGER||9007199254740991;let oe=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 me={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},re={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 y{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 T(a,e,t){return(e=K(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function m(){return m=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},m.apply(null,arguments)}function _(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?_(Object(t),!0).forEach(function(n){T(a,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):_(Object(t)).forEach(function(n){Object.defineProperty(a,n,Object.getOwnPropertyDescriptor(t,n))})}return a}function L(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 K(a){var e=L(a,"string");return typeof e=="symbol"?e:e+""}class W{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=$,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 $=function(){},O={trace:$,debug:$,log:$,warn:$,info:$,error:$};function U(){return m({},O)}function R(a,e){const t=self.console[a];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${a}] >`):$}function x(a,e,t){return e[a]?e[a].bind(e):R(a,t)}const V=U();function X(a,e,t){const n=U();if(typeof console=="object"&&a===!0||typeof a=="object"){const r=["debug","log","info","warn","error"];r.forEach(i=>{n[i]=x(i,a,t)});try{n.log(`Debug logs enabled for "${e}" in hls.js version 1.6.7`)}catch(i){return U()}r.forEach(i=>{V[i]=x(i,a)})}else m(V,n);return n}const H=V;function q(a=!0){return typeof self=="undefined"?void 0:(a||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function se(a){return typeof self!="undefined"&&a===self.ManagedMediaSource}function ie(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 Fe(a,e=!1){if(typeof TextDecoder!="undefined"){const u=new TextDecoder("utf-8").decode(a);if(e){const f=u.indexOf("\0");return f!==-1?u.substring(0,f):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 k(a){return Uint8Array.from(a.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}function F(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var G={exports:{}},J;function j(){return J||(J=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,f){if(f=f||{},c=c.trim(),u=u.trim(),!u){if(!f.alwaysNormalize)return c;var p=l.parseURL(c);if(!p)throw new Error("Error trying to parse base URL.");return p.path=l.normalizePath(p.path),l.buildURLFromParts(p)}var S=l.parseURL(u);if(!S)throw new Error("Error trying to parse relative URL.");if(S.scheme)return f.alwaysNormalize?(S.path=l.normalizePath(S.path),l.buildURLFromParts(S)):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 D=r.exec(C.path);C.netLoc=D[1],C.path=D[2]}C.netLoc&&!C.path&&(C.path="/");var te={scheme:C.scheme,netLoc:S.netLoc,path:null,params:S.params,query:S.query,fragment:S.fragment};if(!S.netLoc&&(te.netLoc=C.netLoc,S.path[0]!=="/"))if(!S.path)te.path=C.path,S.params||(te.params=C.params,S.query||(te.query=C.query));else{var Y=C.path,be=Y.substring(0,Y.lastIndexOf("/")+1)+S.path;te.path=l.normalizePath(be)}return te.path===null&&(te.path=f.alwaysNormalize?l.normalizePath(S.path):S.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 v=j();class g{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 M={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class ue{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,Mt(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={[M.AUDIO]:null,[M.VIDEO]:null,[M.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 g),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=v.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[M.AUDIO]=null,e[M.VIDEO]=null,e[M.AUDIOVIDEO]=null}}function Ie(a){return a.sn!=="initSegment"}class Je extends ue{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){const e=this.byteRange[0],t=this.byteRange[1];if(h(e)&&h(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)return this._decryptdata=this.levelkeys[n[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null)return null;const e=h(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){const t=Object.keys(this.levelkeys),n=t.length;if(n>1||n===1&&this.levelkeys[t[0]].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(!h(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return Ie(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 Dt extends ue{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 vt(a,e){const t=Object.getPrototypeOf(a);if(t){const n=Object.getOwnPropertyDescriptor(t,e);return n||vt(t,e)}}function Mt(a,e){const t=vt(a,e);t&&(t.enumerable=!0,Object.defineProperty(a,e,t))}const Bt=Math.pow(2,32)-1,we=[].push,Yt={video:1,audio:2,id3:3,text:4};function _t(a){return String.fromCharCode.apply(null,a)}function Xt(a,e){const t=a[e]<<8|a[e+1];return t<0?65536+t:t}function lt(a,e){const t=Te(a,e);return t<0?4294967296+t:t}function tt(a,e){let t=lt(a,e);return t*=Math.pow(2,32),t+=lt(a,e+4),t}function Te(a,e){return a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3]}function pe(a){const e=a.byteLength;for(let t=0;t<e;){const n=lt(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 N(a,e){const t=[];if(!e.length)return t;const n=a.byteLength;for(let r=0;r<n;){const i=lt(a,r),s=_t(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=N(a.subarray(r+8,l),e.slice(1));c.length&&we.apply(t,c)}r=l}return t}function xe(a){const e=[],t=a[0];let n=8;const r=lt(a,n);n+=4;let i=0,s=0;t===0?(i=lt(a,n),s=lt(a,n+4),n+=8):(i=tt(a,n),s=tt(a,n+8),n+=16),n+=2;let l=a.length+s;const c=Xt(a,n);n+=2;for(let u=0;u<c;u++){let f=n;const p=lt(a,f);f+=4;const S=p&2147483647;if((p&2147483648)>>>31===1)return H.warn("SIDX has hierarchical references (not supported)"),null;const D=lt(a,f);f+=4,e.push({referenceSize:S,subsegmentDuration:D,info:{duration:D/r,start:l,end:l+S-1}}),l+=S,f+=4,n=f}return{earliestPresentationTime:i,timescale:r,version:t,referencesCount:c,references:e}}function Pe(a){const e=[],t=N(a,["moov","trak"]);for(let r=0;r<t.length;r++){const i=t[r],s=N(i,["tkhd"])[0];if(s){let l=s[0];const c=lt(s,l===0?12:20),u=N(i,["mdia","mdhd"])[0];if(u){l=u[0];const f=lt(u,l===0?12:20),p=N(i,["mdia","hdlr"])[0];if(p){const S=_t(p.subarray(8,12)),C={soun:M.AUDIO,vide:M.VIDEO}[S],D=N(i,["mdia","minf","stbl","stsd"])[0],te=z(D);C?(e[c]={timescale:f,type:C,stsd:te},e[C]=b({timescale:f,id:c},te)):e[c]={timescale:f,type:S,stsd:te}}}}}return N(a,["moov","mvex","trex"]).forEach(r=>{const i=lt(r,4),s=e[i];s&&(s.default={duration:lt(r,12),flags:lt(r,20)})}),e}function z(a){const e=a.subarray(8),t=e.subarray(86),n=_t(e.subarray(4,8));let r=n,i;const s=n==="enca"||n==="encv";if(s){const u=N(e,[n])[0].subarray(n==="enca"?28:78);N(u,["sinf"]).forEach(p=>{const S=N(p,["schm"])[0];if(S){const C=_t(S.subarray(4,8));if(C==="cbcs"||C==="cenc"){const D=N(p,["frma"])[0];D&&(r=_t(D))}}})}const l=r;switch(r){case"avc1":case"avc2":case"avc3":case"avc4":{const c=N(t,["avcC"])[0];c&&c.length>3&&(r+="."+de(c[1])+de(c[2])+de(c[3]),i=P(l==="avc1"?"dva1":"dvav",t));break}case"mp4a":{const c=N(e,[n])[0],u=N(c.subarray(28),["esds"])[0];if(u&&u.length>7){let f=4;if(u[f++]!==3)break;f=Ce(u,f),f+=2;const p=u[f++];if(p&128&&(f+=2),p&64&&(f+=u[f++]),u[f++]!==4)break;f=Ce(u,f);const S=u[f++];if(S===64)r+="."+de(S);else break;if(f+=12,u[f++]!==5)break;f=Ce(u,f);const C=u[f++];let D=(C&248)>>3;D===31&&(D+=1+((C&7)<<3)+((u[f]&224)>>5)),r+="."+D}break}case"hvc1":case"hev1":{const c=N(t,["hvcC"])[0];if(c&&c.length>12){const u=c[1],f=["","A","B","C"][u>>6],p=u&31,S=lt(c,2),C=(u&32)>>5?"H":"L",D=c[12],te=c.subarray(6,12);r+="."+f+p,r+="."+ce(S).toString(16).toUpperCase(),r+="."+C+D;let Y="";for(let be=te.length;be--;){const Xe=te[be];(Xe||Y)&&(Y="."+Xe.toString(16).toUpperCase()+Y)}r+=Y}i=P(l=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{r=P(r,t)||r;break}case"vp09":{const c=N(t,["vpcC"])[0];if(c&&c.length>6){const u=c[4],f=c[5],p=c[6]>>4&15;r+="."+Q(u)+"."+Q(f)+"."+Q(p)}break}case"av01":{const c=N(t,["av1C"])[0];if(c&&c.length>2){const u=c[1]>>>5,f=c[1]&31,p=c[2]>>>7?"H":"M",S=(c[2]&64)>>6,C=(c[2]&32)>>5,D=u===2&&S?C?12:10:S?10:8,te=(c[2]&16)>>4,Y=(c[2]&8)>>3,be=(c[2]&4)>>2,Xe=c[2]&3;r+="."+u+"."+Q(f)+p+"."+Q(D)+"."+te+"."+Y+be+Xe+"."+Q(1)+"."+Q(1)+"."+Q(1)+"."+0,i=P("dav1",t)}break}}return{codec:r,encrypted:s,supplemental:i}}function P(a,e){const t=N(e,["dvvC"]),n=t.length?t[0]:N(e,["dvcC"])[0];if(n){const r=n[2]>>1&127,i=n[2]<<5&32|n[3]>>3&31;return a+"."+Q(r)+"."+Q(i)}}function ce(a){let e=0;for(let t=0;t<32;t++)e|=(a>>t&1)<<31-t;return e>>>0}function Ce(a,e){const t=e+5;for(;a[e++]&128&&e<t;);return e}function de(a){return("0"+a.toString(16).toUpperCase()).slice(-2)}function Q(a){return(a<10?"0":"")+a}function he(a,e){if(!a||!e)return a;const t=e.keyId;return t&&e.isCommonEncryption&&N(a,["moov","trak"]).forEach(r=>{const s=N(r,["mdia","minf","stbl","stsd"])[0].subarray(8);let l=N(s,["enca"]);const c=l.length>0;c||(l=N(s,["encv"])),l.forEach(u=>{const f=c?u.subarray(28):u.subarray(78);N(f,["sinf"]).forEach(S=>{const C=Oe(S);if(C){const D=C.subarray(8,24);D.some(te=>te!==0)||(H.log(`[eme] Patching keyId in 'enc${c?"a":"v"}>sinf>>tenc' box: ${Z.hexDump(D)} -> ${Z.hexDump(t)}`),C.set(t,8))}})})}),a}function Oe(a){const e=N(a,["schm"])[0];if(e){const t=_t(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return N(a,["schi","tenc"])[0]}return null}function Re(a,e,t){const n={},r=N(a,["moof","traf"]);for(let i=0;i<r.length;i++){const s=r[i],l=N(s,["tfhd"])[0],c=lt(l,4),u=e[c];if(!u)continue;const f=n[c]||(n[c]={start:NaN,duration:0,sampleCount:0,timescale:u.timescale,type:u.type}),p=N(s,["tfdt"])[0];if(p){const Me=p[0];let mt=lt(p,4);Me===1&&(mt===Bt?t.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"):(mt*=Bt+1,mt+=lt(p,8))),h(mt)&&(!h(f.start)||mt<f.start)&&(f.start=mt)}const S=u.default,C=lt(l,0)|(S==null?void 0:S.flags);let D=(S==null?void 0:S.duration)||0;C&8&&(C&2?D=lt(l,12):D=lt(l,8));const te=N(s,["trun"]);let Y=f.start||0,be=0,Xe=D;for(let Me=0;Me<te.length;Me++){const mt=te[Me],Ut=lt(mt,4),hn=f.sampleCount;f.sampleCount+=Ut;const It=mt[3]&1,Jt=mt[3]&4,en=mt[2]&1,xt=mt[2]&2,An=mt[2]&4,jn=mt[2]&8;let gr=8,cr=Ut;for(It&&(gr+=4),Jt&&Ut&&(!(mt[gr+1]&1)&&f.keyFrameIndex===void 0&&(f.keyFrameIndex=hn),gr+=4,en?(Xe=lt(mt,gr),gr+=4):Xe=D,xt&&(gr+=4),jn&&(gr+=4),Y+=Xe,be+=Xe,cr--);cr--;)en?(Xe=lt(mt,gr),gr+=4):Xe=D,xt&&(gr+=4),An&&(mt[gr+1]&1||f.keyFrameIndex===void 0&&(f.keyFrameIndex=f.sampleCount-(cr+1),f.keyFrameStart=Y),gr+=4),jn&&(gr+=4),Y+=Xe,be+=Xe;!be&&D&&(be+=D*Ut)}f.duration+=be}if(!Object.keys(n).some(i=>n[i].duration)){let i=1/0,s=0;const l=N(a,["sidx"]);for(let c=0;c<l.length;c++){const u=xe(l[c]);if(u!=null&&u.references){i=Math.min(i,u.earliestPresentationTime/u.timescale);const f=u.references.reduce((p,S)=>p+S.info.duration||0,0);s=Math.max(s,f+u.earliestPresentationTime/u.timescale)}}s&&h(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=N(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 Et(a,e){const t=[],n=e.samples,r=e.timescale,i=e.id;let s=!1;return N(n,["moof"]).map(c=>{const u=c.byteOffset-8;N(c,["traf"]).map(p=>{const S=N(p,["tfdt"]).map(C=>{const D=C[0];let te=lt(C,4);return D===1&&(te*=Math.pow(2,32),te+=lt(C,8)),te/r})[0];return S!==void 0&&(a=S),N(p,["tfhd"]).map(C=>{const D=lt(C,4),te=lt(C,0)&16777215,Y=(te&1)!==0,be=(te&2)!==0,Xe=(te&8)!==0;let Me=0;const mt=(te&16)!==0;let Ut=0;const hn=(te&32)!==0;let It=8;D===i&&(Y&&(It+=8),be&&(It+=4),Xe&&(Me=lt(C,It),It+=4),mt&&(Ut=lt(C,It),It+=4),hn&&(It+=4),e.type==="video"&&(s=dt(e.codec)),N(p,["trun"]).map(Jt=>{const en=Jt[0],xt=lt(Jt,0)&16777215,An=(xt&1)!==0;let jn=0;const gr=(xt&4)!==0,cr=(xt&256)!==0;let ur=0;const $n=(xt&512)!==0;let Er=0;const Gn=(xt&1024)!==0,Tr=(xt&2048)!==0;let br=0;const Xn=lt(Jt,4);let Kn=8;An&&(jn=lt(Jt,Kn),Kn+=4),gr&&(Kn+=4);let kr=jn+u;for(let Nr=0;Nr<Xn;Nr++){if(cr?(ur=lt(Jt,Kn),Kn+=4):ur=Me,$n?(Er=lt(Jt,Kn),Kn+=4):Er=Ut,Gn&&(Kn+=4),Tr&&(en===0?br=lt(Jt,Kn):br=Te(Jt,Kn),Kn+=4),e.type===M.VIDEO){let Zr=0;for(;Zr<Er;){const Or=lt(n,kr);if(kr+=4,ge(s,n[kr])){const ti=n.subarray(kr,kr+Or);Ae(ti,s?2:1,a+br/r,t)}kr+=Or,Zr+=Or+4}}a+=ur/r}}))})})}),t}function dt(a){if(!a)return!1;const e=a.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function ge(a,e){if(a){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function Ae(a,e,t,n){const r=at(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 f=i;if(l<u)i+=l;else if(l>u){H.error(`Malformed SEI payload. ${l} is too small, only ${u} bytes left to parse.`);break}if(s===4){if(r[f++]===181){const S=Xt(r,f);if(f+=2,S===49){const C=lt(r,f);if(f+=4,C===1195456820){const D=r[f++];if(D===3){const te=r[f++],Y=31&te,be=64&te,Xe=be?2+Y*3:0,Me=new Uint8Array(Xe);if(be){Me[0]=te;for(let mt=1;mt<Xe;mt++)Me[mt]=r[f++]}n.push({type:D,payloadType:s,pts:t,bytes:Me})}}}}}else if(s===5&&l>16){const p=[];for(let D=0;D<16;D++){const te=r[f++].toString(16);p.push(te.length==1?"0"+te:te),(D===3||D===5||D===7||D===9)&&p.push("-")}const S=l-16,C=new Uint8Array(S);for(let D=0;D<S;D++)C[D]=r[f++];n.push({payloadType:s,pts:t,uuid:p.join(""),userData:Fe(C),userDataBytes:C})}}}function at(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 et(a){const e=a[0];let t="",n="",r=0,i=0,s=0,l=0,c=0,u=0;if(e===0){for(;_t(a.subarray(u,u+1))!=="\0";)t+=_t(a.subarray(u,u+1)),u+=1;for(t+=_t(a.subarray(u,u+1)),u+=1;_t(a.subarray(u,u+1))!=="\0";)n+=_t(a.subarray(u,u+1)),u+=1;n+=_t(a.subarray(u,u+1)),u+=1,r=lt(a,12),i=lt(a,16),l=lt(a,20),c=lt(a,24),u=28}else if(e===1){u+=4,r=lt(a,u),u+=4;const p=lt(a,u);u+=4;const S=lt(a,u);for(u+=4,s=gl(2,32)*p+S,le(s)||(s=Number.MAX_SAFE_INTEGER,H.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),l=lt(a,u),u+=4,c=lt(a,u),u+=4;_t(a.subarray(u,u+1))!=="\0";)t+=_t(a.subarray(u,u+1)),u+=1;for(t+=_t(a.subarray(u,u+1)),u+=1;_t(a.subarray(u,u+1))!=="\0";)n+=_t(a.subarray(u,u+1)),u+=1;n+=_t(a.subarray(u,u+1)),u+=1}const f=a.subarray(u,a.byteLength);return{schemeIdUri:t,value:n,timeScale:r,presentationTime:s,presentationTimeDelta:i,eventDuration:l,id:c,payload:f}}function Qe(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 St(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&&t.byteLength>0&&new DataView(s.buffer).setUint32(0,t.byteLength,!1),Qe([112,115,115,104],new Uint8Array([n,0,0,0]),a,i,r,s,t||new Uint8Array)}const Tt=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),He={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 Wt(a,e){const t=He[e];return!!t&&!!t[a.slice(0,4)]}function fn(a,e,t=!0){return!a.split(",").some(n=>!Rt(n,e,t))}function Rt(a,e,t=!0){var n;const r=q(t);return(n=r==null?void 0:r.isTypeSupported(qt(a,e)))!=null?n:!1}function qt(a,e){return`${e}/mp4;codecs=${a}`}function Ke(a){if(a){const e=a.substring(0,4);return He.video[e]}return 2}function ke(a){const e=Tt();return a.split(",").reduce((t,n)=>{const i=e&&dt(n)?9:He.video[n];return i?(i*2+t)/(t?3:2):(He.audio[n]+t)/(t?2:1)},0)}const Ne={};function I(a,e=!0){if(Ne[a])return Ne[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(Rt(t[r],"audio",e))return Ne[a]=t[r],t[r];if(t[r]==="mp3"&&(n=q(e))!=null&&n.isTypeSupported("audio/mpeg"))return""}return a}const ee=/flac|opus|mp4a\.40\.34/i;function fe(a,e=!0){return a.replace(ee,t=>I(t.toLowerCase(),e))}function ve(a,e){const t=[];if(a){const n=a.split(",");for(let r=0;r<n.length;r++)Wt(n[r],"video")||t.push(n[r])}return e&&t.push(e),t.join(",")}function ye(a,e){if(a&&(a.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(a)!==-1)&&(Ue(a,"audio")||Ue(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 Ue(a,e){return Wt(a,e)&&Rt(a,e)}function $e(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 At(a){const e=q(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 Ge(a){return a.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const w={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function ae(a,e){return{supported:!1,configurations:e,decodingInfoResults:[{supported:!1,smooth:!1,powerEfficient:!1}],error:a}}function A(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,f=u?parseInt(u):c?1/0:2;let p=null;if(l!=null&&l.length)try{l.length===1&&l[0]?p=e.groups[l[0]].channels:p=l.reduce((S,C)=>{if(C){const D=e.groups[C];if(!D)throw new Error(`Audio track group ${C} not found`);Object.keys(D.channels).forEach(te=>{S[te]=(S[te]||0)+D.channels[te]})}return S},{2:0})}catch(S){return!0}return s!==void 0&&(s.split(",").some(S=>dt(S))||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))||!!p&&h(f)&&Object.keys(p).some(S=>parseInt(S)>f)}function Ze(a,e,t,n={}){const r=a.videoCodec;if(!r&&!a.audioCodec||!t)return Promise.resolve(w);const i=[],s=Ee(a),l=s.length,c=Le(a,e,l>0),u=c.length;for(let f=l||1*u||1;f--;){const p={type:"media-source"};if(l&&(p.video=s[f%l]),u){p.audio=c[f%u];const S=p.audio.bitrate;p.video&&S&&(p.video.bitrate-=S)}i.push(p)}if(r){const f=navigator.userAgent;if(r.split(",").some(p=>dt(p))&&Tt())return Promise.resolve(ae(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${f})`),i))}return Promise.all(i.map(f=>{const p=it(f);return n[p]||(n[p]=t.decodingInfo(f))})).then(f=>({supported:!f.some(p=>!p.supported),configurations:i,decodingInfoResults:f})).catch(f=>({supported:!1,configurations:i,decodingInfoResults:[],error:f}))}function Ee(a){var e;const t=(e=a.videoCodec)==null?void 0:e.split(","),n=Ve(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:qt(ut(c),"video"),width:r,height:i,bitrate:n,framerate:s};return l!=="sdr"&&(u.transferFunction=l),u}):[]}function Le(a,e,t){var n;const r=(n=a.audioCodec)==null?void 0:n.split(","),i=Ve(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((f,p)=>{if(p.groupId===l){const S=parseFloat(p.channels||"");r.forEach(C=>{const D={contentType:qt(C,"audio"),bitrate:t?ze(C,i):i};S&&(D.channels=""+S),f.push(D)})}return f},s):s},[]):[]}function ze(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 Ve(a){return Math.ceil(Math.max(a.bitrate*.9,a.averageBitrate)/1e3)*1e3||1}function it(a){let e="";const{audio:t,video:n}=a;if(n){const r=Ge(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=Ge(t.contentType);e+=`${n?"_":""}${r}_c${t.channels}`}return e}const Pt=["NONE","TYPE-0","TYPE-1",null];function Kt(a){return Pt.indexOf(a)>-1}const mn=["SDR","PQ","HLG"];function De(a){return!!a&&mn.indexOf(a)>-1}var Se={No:"",Yes:"YES",v2:"v2"};function nt(a){const{canSkipUntil:e,canSkipDateRanges:t,age:n}=a,r=n<e/2;return e&&r?t?Se.v2:Se.Yes:Se.No}class st{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 Ct{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 ft(this._audioGroups,e)}hasSubtitleGroup(e){return ft(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 ft(a,e){return!e||!a?!1:a.indexOf(e)!==-1}function Ot(){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 Zt(a,e){let t=!1,n=[];if(a&&(t=a!=="SDR",n=[a]),e){n=e.allowedVideoRanges||mn.slice(0);const r=n.join("")!=="SDR"&&!e.videoCodec;t=e.preferHDR!==void 0?e.preferHDR:r&&Ot(),t||(n=["SDR"])}return{preferHDR:t,allowedVideoRanges:n}}const tn=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}},Nt=(a,e)=>JSON.stringify(a,tn(e));function un(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 f=!1,p=!1,S=1/0,C=1/0,D=1/0,te=1/0,Y=0,be=[];const{preferHDR:Xe,allowedVideoRanges:Me}=Zt(e,r);for(let Jt=i.length;Jt--;){const en=a[i[Jt]];f||(f=en.channels[2]>0),S=Math.min(S,en.minHeight),C=Math.min(C,en.minFramerate),D=Math.min(D,en.minBitrate),Me.filter(An=>en.videoRanges[An]>0).length>0&&(p=!0)}S=h(S)?S:0,C=h(C)?C:0;const mt=Math.max(1080,S),Ut=Math.max(30,C);D=h(D)?D:t,t=Math.max(D,t),p||(e=void 0);const hn=i.length>1;return{codecSet:i.reduce((Jt,en)=>{const xt=a[en];if(en===Jt)return Jt;if(be=p?Me.filter(An=>xt.videoRanges[An]>0):[],hn){if(xt.minBitrate>t)return gn(en,`min bitrate of ${xt.minBitrate} > current estimate of ${t}`),Jt;if(!xt.hasDefaultAudio)return gn(en,"no renditions with default or auto-select sound found"),Jt;if(l&&en.indexOf(l.substring(0,4))%5!==0)return gn(en,`audio codec preference "${l}" not found`),Jt;if(s&&!u){if(!xt.channels[s])return gn(en,`no renditions with ${s} channel sound found (channels options: ${Object.keys(xt.channels)})`),Jt}else if((!l||u)&&f&&xt.channels[2]===0)return gn(en,"no renditions with stereo sound found"),Jt;if(xt.minHeight>mt)return gn(en,`min resolution of ${xt.minHeight} > maximum of ${mt}`),Jt;if(xt.minFramerate>Ut)return gn(en,`min framerate of ${xt.minFramerate} > maximum of ${Ut}`),Jt;if(!be.some(An=>xt.videoRanges[An]>0))return gn(en,`no variants with VIDEO-RANGE of ${Nt(be)} found`),Jt;if(c&&en.indexOf(c.substring(0,4))%5!==0)return gn(en,`video codec preference "${c}" not found`),Jt;if(xt.maxScore<Y)return gn(en,`max score of ${xt.maxScore} < selected max of ${Y}`),Jt}return Jt&&(ke(en)>=ke(Jt)||xt.fragmentError>a[Jt].fragmentError)?Jt:(te=xt.minIndex,Y=xt.maxScore,en)},void 0),videoRanges:be,preferHDR:Xe,minFramerate:C,minBitrate:D,minIndex:te}}function gn(a,e){H.log(`[abr] start candidates with "${a}" ignored because ${e}`)}function ln(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 jt(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(f=>{if(!f)return;const p=e.groups[f];p&&(c.hasDefaultAudio=c.hasDefaultAudio||e.hasDefaultAudio?p.hasDefault:p.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(p.channels).forEach(S=>{c.channels[S]=(c.channels[S]||0)+p.channels[S]}))}),r},{})}function Be(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 ot(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(gt(a,r,t))return n}return-1}function gt(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||wt(i,e.lang))&&(i===void 0||e.assocLang===s)&&(l===void 0||e.default===l)&&(c===void 0||e.forced===c)&&(!("characteristics"in a)||$t(a.characteristics||"",e.characteristics))&&(t===void 0||t(a,e))}function wt(a,e="--"){return a.length===e.length?a===e:a.startsWith(e)||e.startsWith(a)}function $t(a,e=""){const t=a.split(","),n=e.split(",");return t.length===n.length&&!t.some(r=>n.indexOf(r)===-1)}function rn(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 cn(a,e,t,n,r){const i=e[n],l=e.reduce((S,C,D)=>{const te=C.uri;return(S[te]||(S[te]=[])).push(D),S},{})[i.uri];l.length>1&&(n=Math.max.apply(Math,l));const c=i.videoRange,u=i.frameRate,f=i.codecSet.substring(0,4),p=En(e,n,S=>{if(S.videoRange!==c||S.frameRate!==u||S.codecSet.substring(0,4)!==f)return!1;const C=S.audioGroups,D=t.filter(te=>!C||C.indexOf(te.groupId)!==-1);return ot(a,D,r)>-1});return p>-1?p:En(e,n,S=>{const C=S.audioGroups,D=t.filter(te=>!C||C.indexOf(te.groupId)!==-1);return ot(a,D,r)>-1})}function En(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 wn(a,e){var t;return!!a&&a!==((t=e.loadLevelObj)==null?void 0:t.uri)}class Pn extends W{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(),f=i?i.stats:r.stats,p=i?i.duration:r.duration,S=u-f.loading.start,C=s.minAutoLevel,D=r.level,te=this._nextAutoLevel;if(f.aborted||f.loaded&&f.loaded===f.total||D<=C){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const Y=te>-1&&te!==D,be=!!t||Y;if(!be&&(c.paused||!c.playbackRate||!c.readyState))return;const Xe=s.mainForwardBufferInfo;if(!be&&Xe===null)return;const Me=this.bwEstimator.getEstimateTTFB(),mt=Math.abs(c.playbackRate);if(S<=Math.max(Me,1e3*(p/(mt*2))))return;const Ut=Xe?Xe.len/mt:0,hn=f.loading.first?f.loading.first-f.loading.start:-1,It=f.loaded&&hn>-1,Jt=this.getBwEstimate(),en=s.levels,xt=en[D],An=Math.max(f.loaded,Math.round(p*(r.bitrate||xt.averageBitrate)/8));let jn=It?S-hn:S;jn<1&&It&&(jn=Math.min(S,f.loaded*8/Jt));const gr=It?f.loaded*1e3/jn:0,cr=Me/1e3,ur=gr?(An-f.loaded)/gr:An*8/Jt+cr;if(ur<=Ut)return;const $n=gr?gr*8:Jt,Er=((n=(t==null?void 0:t.details)||this.hls.latestLevelDetails)==null?void 0:n.live)===!0,Gn=this.hls.config.abrBandWidthUpFactor;let Tr=Number.POSITIVE_INFINITY,br;for(br=D-1;br>C;br--){const Nr=en[br].maxBitrate,Zr=!en[br].details||Er;if(Tr=this.getTimeToLoadFrag(cr,$n,p*Nr,Zr),Tr<Math.min(Ut,p+cr))break}if(Tr>=ur||Tr>p*10)return;It?this.bwEstimator.sample(S-Math.min(Me,hn),f.loaded):this.bwEstimator.sampleTTFB(S);const Xn=en[br].maxBitrate;this.getBwEstimate()*Gn>Xn&&this.resetEstimator(Xn);const Kn=this.findBestLevel(Xn,C,br,0,Ut,1,1);Kn>-1&&(br=Kn),this.warn(`Fragment ${r.sn}${i?" part "+i.index:""} of level ${D} is loading too slowly;
Fragment duration: ${r.duration.toFixed(3)}
Time to underbuffer: ${Ut.toFixed(3)} s
Estimated load time for current fragment: ${ur.toFixed(3)} s
Estimated load time for down switch fragment: ${Tr.toFixed(3)} s
TTFB estimate: ${hn|0} ms
Current BW estimate: ${h(Jt)?Jt|0:"Unknown"} bps
New BW estimate: ${this.getBwEstimate()|0} bps
Switching to level ${br} @ ${Xn|0} bps`),s.nextLoadLevel=s.nextAutoLevel=br,this.clearTimer();const kr=()=>{if(this.clearTimer(),this.fragCurrent===r&&this.hls.loadLevel===br&&br>0){const Nr=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${br>0?"and switching down":""}
Fragment duration: ${r.duration.toFixed(3)} s
Time to underbuffer: ${Nr.toFixed(3)} s`),r.abortRequests(),this.fragCurrent=this.partCurrent=null,br>C){let Zr=this.findBestLevel(this.hls.levels[C].bitrate,C,br,0,Nr,1,1);Zr===-1&&(Zr=C),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Zr,this.resetEstimator(this.hls.levels[Zr].bitrate)}}};Y||ur>Tr*2?kr():this.timer=self.setInterval(kr,Tr*1e3),s.trigger(d.FRAG_LOAD_EMERGENCY_ABORTED,{frag:r,part:i,stats:f})},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 y(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 p=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(c-Math.min(p,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;h(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===re.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!==re.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 f=i.abrBandWidthFactor,p=i.abrBandWidthUpFactor;if(u){const Y=this.findBestLevel(c,s,r,u,0,f,p);if(Y>=0)return this.rebufferNotice=-1,Y}let S=l?Math.min(l,i.maxStarvationDelay):i.maxStarvationDelay;if(!u){const Y=this.bitrateTestDelay;Y&&(S=(l?Math.min(l,i.maxLoadingDelay):i.maxLoadingDelay)-Y,this.info(`bitrate test took ${Math.round(1e3*Y)}ms, set first fragment max fetchDuration to ${Math.round(1e3*S)} ms`),f=p=1)}const C=this.findBestLevel(c,s,r,u,S,f,p);if(this.rebufferNotice!==C&&(this.rebufferNotice=C,this.info(`${u?"rebuffering expected":"buffer is empty"}, optimal quality level ${C}`)),C>-1)return C;const D=n.levels[s],te=n.loadLevelObj;return te&&(D==null?void 0:D.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,f=this.lastLoadedFragLevel,p=f===-1?this.hls.firstLevel:f,{fragCurrent:S,partCurrent:C}=this,{levels:D,allAudioTracks:te,loadLevel:Y,config:be}=this.hls;if(D.length===1)return 0;const Xe=D[p],Me=!!((c=this.hls.latestLevelDetails)!=null&&c.live),mt=Y===-1||f===-1;let Ut,hn="SDR",It=(Xe==null?void 0:Xe.frameRate)||0;const{audioPreference:Jt,videoPreference:en}=be,xt=this.audioTracksByGroup||(this.audioTracksByGroup=ln(te));let An=-1;if(mt){if(this.firstSelection!==-1)return this.firstSelection;const Er=this.codecTiers||(this.codecTiers=jt(D,xt,t,n)),Gn=un(Er,hn,e,Jt,en),{codecSet:Tr,videoRanges:br,minFramerate:Xn,minBitrate:Kn,minIndex:kr,preferHDR:Nr}=Gn;An=kr,Ut=Tr,hn=Nr?br[br.length-1]:br[0],It=Xn,e=Math.max(e,Kn),this.log(`picked start tier ${Nt(Gn)}`)}else Ut=Xe==null?void 0:Xe.codecSet,hn=Xe==null?void 0:Xe.videoRange;const jn=C?C.duration:S?S.duration:0,gr=this.bwEstimator.getEstimateTTFB()/1e3,cr=[];for(let Er=n;Er>=t;Er--){var ur,$n;const Gn=D[Er],Tr=Er>p;if(!Gn)continue;if(be.useMediaCapabilities&&!Gn.supportedResult&&!Gn.supportedPromise){const Or=navigator.mediaCapabilities;typeof(Or==null?void 0:Or.decodingInfo)=="function"&&A(Gn,xt,hn,It,e,Jt)?(Gn.supportedPromise=Ze(Gn,xt,Or,this.supportedCache),Gn.supportedPromise.then(ti=>{if(!this.hls)return;Gn.supportedResult=ti;const Ti=this.hls.levels,mi=Ti.indexOf(Gn);ti.error?this.warn(`MediaCapabilities decodingInfo error: "${ti.error}" for level ${mi} ${Nt(ti)}`):ti.supported?ti.decodingInfoResults.some(Ci=>Ci.smooth===!1||Ci.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${mi} not smooth or powerEfficient: ${Nt(ti)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${mi} ${Nt(ti)}`),mi>-1&&Ti.length>1&&(this.log(`Removing unsupported level ${mi}`),this.hls.removeLevel(mi),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))})):Gn.supportedResult=w}if((Ut&&Gn.codecSet!==Ut||hn&&Gn.videoRange!==hn||Tr&&It>Gn.frameRate||!Tr&&It>0&&It<Gn.frameRate||(ur=Gn.supportedResult)!=null&&($n=ur.decodingInfoResults)!=null&&$n.some(Or=>Or.smooth===!1))&&(!mt||Er!==An)){cr.push(Er);continue}const br=Gn.details,Xn=(C?br==null?void 0:br.partTarget:br==null?void 0:br.averagetargetduration)||jn;let Kn;Tr?Kn=l*e:Kn=s*e;const kr=jn&&r>=jn*2&&i===0?Gn.averageBitrate:Gn.maxBitrate,Nr=this.getTimeToLoadFrag(gr,Kn,kr*Xn,br===void 0);if(Kn>=kr&&(Er===f||Gn.loadError===0&&Gn.fragmentError===0)&&(Nr<=gr||!h(Nr)||Me&&!this.bitrateTestDelay||Nr<u)){const Or=this.forcedAutoLevel;return Er!==Y&&(Or===-1||Or!==Y)&&(cr.length&&this.trace(`Skipped level(s) ${cr.join(",")} of ${n} max with CODECS and VIDEO-RANGE:"${D[cr[0]].codecs}" ${D[cr[0]].videoRange}; not compatible with "${Ut}" ${hn}`),this.info(`switch candidate:${p}->${Er} adjustedbw(${Math.round(Kn)})-bitrate=${Math.round(Kn-kr)} ttfb:${gr.toFixed(1)} avgDuration:${Xn.toFixed(1)} maxFetchDuration:${u.toFixed(1)} fetchDuration:${Nr.toFixed(1)} firstSelection:${mt} codecSet:${Gn.codecSet} videoRange:${Gn.videoRange} hls.loadLevel:${Y}`)),mt&&(this.firstSelection=Er),Er}}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 ar={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||!h(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(Wn(e,t,s))return s}return null}function In(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)&&zn(t,n,i)===0||Nn(i,a,Math.min(r,n))))return i;const s=ar.search(e,zn.bind(null,t,n));return s&&(s!==a||!i)?s:i}function Nn(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 zn(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 Wn(a,e,t){const n=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-n>a}function Mn(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 ar.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 On(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 yn(a,e){const t=On(e);return a.default[`${t?"timeout":"error"}Retry`]}function xn(a,e){const t=a.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*a.retryDelayMs,a.maxRetryDelayMs)}function je(a){return b(b({},a),{errorRetry:null,timeoutRetry:null})}function Ft(a,e,t,n){if(!a)return!1;const r=n==null?void 0:n.code,i=e<a.maxNumRetry&&(on(r)||!!t);return a.shouldRetry?a.shouldRetry(a,e,t,n,i):i}function on(a){return a===0&&navigator.onLine===!1||!!a&&(a<400||a>499)}var pn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},Un={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class _e extends W{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)===re.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=ct();return}case B.FRAG_GAP:case B.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=pn.SendAlternateToPenaltyBox;return}case B.LEVEL_EMPTY_ERROR:case B.LEVEL_PARSING_ERROR:{var s,l;const u=t.parent===re.MAIN?t.level:r.loadLevel;t.details===B.LEVEL_EMPTY_ERROR&&((s=t.context)!=null&&(l=s.levelDetails)!=null&&l.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,u):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,u))}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 u=r.loadLevelObj;if(u&&(i.type===me.AUDIO_TRACK&&u.hasAudioGroup(i.groupId)||i.type===me.SUBTITLE_TRACK&&u.hasSubtitleGroup(i.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,r.loadLevel),t.errorAction.action=pn.SendAlternateToPenaltyBox,t.errorAction.flags=Un.MoveAllAlternatesMatchingHost;return}}return;case B.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const u=r.loadLevelObj,f=u==null?void 0:u.attrs["HDCP-LEVEL"];f?t.errorAction={action:pn.SendAlternateToPenaltyBox,flags:Un.MoveAllAlternatesMatchingHDCP,hdcpLevel:f}:this.keySystemError(t)}return;case B.BUFFER_ADD_CODEC_ERROR:case B.REMUX_ALLOC_ERROR:case B.BUFFER_APPEND_ERROR:if(!t.errorAction){var c;t.errorAction=this.getLevelSwitchAction(t,(c=t.level)!=null?c: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=ct();return}t.type===oe.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=yn(n.config.playlistLoadPolicy,e),i=this.playlistError++;if(Ft(r,i,On(e),e.response))return{action:pn.RetryRequest,flags:Un.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=yn(e.details.startsWith("key")?s:i,e),c=t.levels.reduce((f,p)=>f+p.fragmentError,0);if(r&&(e.details!==B.FRAG_GAP&&r.fragmentError++,Ft(l,c,On(e),e.response)))return{action:pn.RetryRequest,flags:Un.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 f=-1;const{levels:p,loadLevel:S,minAutoLevel:C,maxAutoLevel:D}=n;!n.autoLevelEnabled&&!n.config.preserveManualLevelOnError&&(n.loadLevel=-1);const te=(i=e.frag)==null?void 0:i.type,be=(te===re.AUDIO&&u===B.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(u===B.BUFFER_ADD_CODEC_ERROR||u===B.BUFFER_APPEND_ERROR))&&p.some(({audioCodec:hn})=>r.audioCodec!==hn),Me=e.sourceBufferName==="video"&&(u===B.BUFFER_ADD_CODEC_ERROR||u===B.BUFFER_APPEND_ERROR)&&p.some(({codecSet:hn,audioCodec:It})=>r.codecSet!==hn&&r.audioCodec===It),{type:mt,groupId:Ut}=(s=e.context)!=null?s:{};for(let hn=p.length;hn--;){const It=(hn+S)%p.length;if(It!==S&&It>=C&&It<=D&&p[It].loadError===0){var l,c;const Jt=p[It];if(u===B.FRAG_GAP&&te===re.MAIN&&e.frag){const en=p[It].details;if(en){const xt=In(e.frag,en.fragments,e.frag.start);if(xt!=null&&xt.gap)continue}}else{if(mt===me.AUDIO_TRACK&&Jt.hasAudioGroup(Ut)||mt===me.SUBTITLE_TRACK&&Jt.hasSubtitleGroup(Ut))continue;if(te===re.AUDIO&&(l=r.audioGroups)!=null&&l.some(en=>Jt.hasAudioGroup(en))||te===re.SUBTITLE&&(c=r.subtitleGroups)!=null&&c.some(en=>Jt.hasSubtitleGroup(en))||be&&r.audioCodec===Jt.audioCodec||!be&&r.audioCodec!==Jt.audioCodec||Me&&r.codecSet===Jt.codecSet)continue}f=It;break}}if(f>-1&&n.loadLevel!==f)return e.levelRetry=!0,this.playlistError=0,{action:pn.SendAlternateToPenaltyBox,flags:Un.None,nextAutoLevel:f}}return{action:pn.SendAlternateToPenaltyBox,flags:Un.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var n;switch((n=t.errorAction)==null?void 0:n.action){case pn.DoNothing:break;case pn.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 pn.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 Un.None:this.switchLevel(e,s);break;case Un.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=Pt[Pt.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=Ge(e.mimeType),r=this.hls.levels;for(let i=r.length;i--;)r[i][`${e.sourceBufferName}Codec`]===n&&this.hls.removeLevel(i)}}}function ct(a){const e={action:pn.DoNothing,flags:Un.None};return a&&(e.resolved=!0),e}var We={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class ht{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.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.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.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;const s=i.end;if(i.start<=e&&s!==null&&e<=s)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(f=>{const p=!this.isTimeBuffered(f.startPTS,f.endPTS,t);return p&&this.removeFragment(c.body),p})}})}detectPartialFragments(e){const t=this.timeRanges;if(!t||e.frag.sn==="initSegment")return;const n=e.frag,r=kt(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],f=s||c.partial===!0;i.range[l]=this.getBufferedTimes(n,e.part,f,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),bt(i)||this.removeParts(n.sn-1,n.type)):this.removeFragment(i.body)}removeParts(e,t){const n=this.activePartLists[t];n&&(this.activePartLists[t]=nn(n,r=>r.fragment.sn>=e))}fragBuffered(e,t){const n=kt(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 f=0;f<r.length;f++){const p=r.start(f)-this.bufferPadding,S=r.end(f)+this.bufferPadding;if(u>=p&&c<=S){i.time.push({startPTS:Math.max(s,r.start(f)),endPTS:Math.min(l,r.end(f))});break}else if(s<S&&l>p){const C=Math.max(s,r.start(f)),D=Math.min(l,r.end(f));D>C&&(i.partial=!0,i.time.push({startPTS:C,endPTS:D}))}else if(l<=p)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 f=c[u];f&&bt(f)&&(r=f.body.start-l,i=f.body.end+l,e>=r&&e<=i&&(n=Math.min(e-r,i-e),s<=n&&(t=f.body,s=n)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||bt(t))}getState(e){const t=kt(e),n=this.fragments[t];return n?n.buffered?bt(n)?We.PARTIAL:We.OK:We.APPENDING:We.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=kt(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=kt(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=kt(e);e.clearElementaryStreamInfo();const n=this.activePartLists[e.type];if(n){const r=e.sn;this.activePartLists[e.type]=nn(n,i=>i.fragment.sn!==r)}delete this.fragments[t],e.endList&&delete this.endListFragments[e.type]}removeAllFragments(){var e,t;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const n=(e=this.hls)==null||(t=e.latestLevelDetails)==null?void 0:t.partList;n&&n.forEach(r=>r.clearElementaryStreamInfo())}}function bt(a){var e,t,n;return a.buffered&&(a.body.gap||((e=a.range.video)==null?void 0:e.partial)||((t=a.range.audio)==null?void 0:t.partial)||((n=a.range.audiovideo)==null?void 0:n.partial))}function kt(a){return`${a.type}_${a.level}_${a.sn}`}function nn(a,e){return a.filter(t=>{const n=e(t);return n||t.clearElementaryStreamInfo(),n})}var Qt={cbc:0,ctr:1};class zt{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 Qt.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case Qt.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 rt(a){const e=a.byteLength,t=e&&new DataView(a.buffer).getUint8(e-1);return t?a.slice(0,e-t):a}class pt{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],f=c[1],p=c[2],S=c[3],C=new Uint32Array(256);let D=0,te=0,Y=0;for(Y=0;Y<256;Y++)Y<128?C[Y]=Y<<1:C[Y]=Y<<1^283;for(Y=0;Y<256;Y++){let be=te^te<<1^te<<2^te<<3^te<<4;be=be>>>8^be&255^99,e[D]=be,t[be]=D;const Xe=C[D],Me=C[Xe],mt=C[Me];let Ut=C[be]*257^be*16843008;r[D]=Ut<<24|Ut>>>8,i[D]=Ut<<16|Ut>>>16,s[D]=Ut<<8|Ut>>>24,l[D]=Ut,Ut=mt*16843009^Me*65537^Xe*257^D*16843008,u[be]=Ut<<24|Ut>>>8,f[be]=Ut<<16|Ut>>>16,p[be]=Ut<<8|Ut>>>24,S[be]=Ut,D?(D=Xe^C[C[C[mt^Xe]]],te^=C[C[te]]):D=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),f=this.invKeySchedule=new Uint32Array(s),p=this.sBox,S=this.rcon,C=this.invSubMix,D=C[0],te=C[1],Y=C[2],be=C[3];let Xe,Me;for(l=0;l<s;l++){if(l<i){Xe=u[l]=t[l];continue}Me=Xe,l%i===0?(Me=Me<<8|Me>>>24,Me=p[Me>>>24]<<24|p[Me>>>16&255]<<16|p[Me>>>8&255]<<8|p[Me&255],Me^=S[l/i|0]<<24):i>6&&l%i===4&&(Me=p[Me>>>24]<<24|p[Me>>>16&255]<<16|p[Me>>>8&255]<<8|p[Me&255]),u[l]=Xe=(u[l-i]^Me)>>>0}for(c=0;c<s;c++)l=s-c,c&3?Me=u[l]:Me=u[l-4],c<4||l<=4?f[c]=Me:f[c]=D[p[Me>>>24]]^te[p[Me>>>16&255]]^Y[p[Me>>>8&255]]^be[p[Me&255]],f[c]=f[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],f=l[2],p=l[3],S=this.uint8ArrayToUint32Array_(n);let C=S[0],D=S[1],te=S[2],Y=S[3];const be=new Int32Array(e),Xe=new Int32Array(be.length);let Me,mt,Ut,hn,It,Jt,en,xt,An,jn,gr,cr,ur,$n;const Er=this.networkToHostOrderSwap;for(;t<be.length;){for(An=Er(be[t]),jn=Er(be[t+1]),gr=Er(be[t+2]),cr=Er(be[t+3]),It=An^i[0],Jt=cr^i[1],en=gr^i[2],xt=jn^i[3],ur=4,$n=1;$n<r;$n++)Me=c[It>>>24]^u[Jt>>16&255]^f[en>>8&255]^p[xt&255]^i[ur],mt=c[Jt>>>24]^u[en>>16&255]^f[xt>>8&255]^p[It&255]^i[ur+1],Ut=c[en>>>24]^u[xt>>16&255]^f[It>>8&255]^p[Jt&255]^i[ur+2],hn=c[xt>>>24]^u[It>>16&255]^f[Jt>>8&255]^p[en&255]^i[ur+3],It=Me,Jt=mt,en=Ut,xt=hn,ur=ur+4;Me=s[It>>>24]<<24^s[Jt>>16&255]<<16^s[en>>8&255]<<8^s[xt&255]^i[ur],mt=s[Jt>>>24]<<24^s[en>>16&255]<<16^s[xt>>8&255]<<8^s[It&255]^i[ur+1],Ut=s[en>>>24]<<24^s[xt>>16&255]<<16^s[It>>8&255]<<8^s[Jt&255]^i[ur+2],hn=s[xt>>>24]<<24^s[It>>16&255]<<16^s[Jt>>8&255]<<8^s[en&255]^i[ur+3],Xe[t]=Er(Me^C),Xe[t+1]=Er(hn^D),Xe[t+2]=Er(Ut^te),Xe[t+3]=Er(mt^Y),C=An,D=jn,te=gr,Y=cr,t=t+4}return Xe.buffer}}class yt{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=Lt(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function Lt(a){switch(a){case Qt.cbc:return"AES-CBC";case Qt.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${a}`)}}const Vt=16;class dn{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?rt(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!==Qt.cbc||t.byteLength!==16)return H.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 pt),u.expandKey(t);const f=s;return this.currentResult=u.decrypt(c.buffer,0,n),this.currentIV=c.slice(-16).buffer,f||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 yt(this.subtle,t,r)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new zt(this.subtle,new Uint8Array(n),r).decrypt(e.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(H.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%Vt;return n!==e.length&&(t=e.slice(0,n),this.remainderData=e.slice(n)),t}logOnce(e){this.logEnabled&&(H.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const Cn=Math.pow(2,17);class bn{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 Hn({type:oe.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(D=>D[0]==="GAP")){c(Yn(e));return}else e.gap=!1;const u=this.loader=i?new i(r):new s(r),f=Bn(e);e.loader=u;const p=je(r.fragLoadPolicy.default),S={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:Cn};e.stats=u.stats;const C={onSuccess:(D,te,Y,be)=>{this.resetLoader(e,u);let Xe=D.data;Y.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(Xe.slice(0,16)),Xe=Xe.slice(16)),l({frag:e,part:null,payload:Xe,networkDetails:be})},onError:(D,te,Y,be)=>{this.resetLoader(e,u),c(new Hn({type:oe.NETWORK_ERROR,details:B.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:b({url:n,data:void 0},D),error:new Error(`HTTP Error ${D.code} ${D.text}`),networkDetails:Y,stats:be}))},onAbort:(D,te,Y)=>{this.resetLoader(e,u),c(new Hn({type:oe.NETWORK_ERROR,details:B.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:Y,stats:D}))},onTimeout:(D,te,Y)=>{this.resetLoader(e,u),c(new Hn({type:oe.NETWORK_ERROR,details:B.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${S.timeout}ms`),networkDetails:Y,stats:D}))}};t&&(C.onProgress=(D,te,Y,be)=>t({frag:e,part:null,payload:Y,networkDetails:be})),u.load(f,S,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(Yn(e,t));return}const u=this.loader=i?new i(r):new s(r),f=Bn(e,t);e.loader=u;const p=je(r.fragLoadPolicy.default),S={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Cn};t.stats=u.stats,u.load(f,S,{onSuccess:(C,D,te,Y)=>{this.resetLoader(e,u),this.updateStatsFromPart(e,t);const be={frag:e,part:t,payload:C.data,networkDetails:Y};n(be),l(be)},onError:(C,D,te,Y)=>{this.resetLoader(e,u),c(new Hn({type:oe.NETWORK_ERROR,details:B.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:b({url:f.url,data:void 0},C),error:new Error(`HTTP Error ${C.code} ${C.text}`),networkDetails:te,stats:Y}))},onAbort:(C,D,te)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,u),c(new Hn({type:oe.NETWORK_ERROR,details:B.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:te,stats:C}))},onTimeout:(C,D,te)=>{this.resetLoader(e,u),c(new Hn({type:oe.NETWORK_ERROR,details:B.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${S.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),p=(c-u)*Math.round(n.loaded/u);n.total=n.loaded+p}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 Bn(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(h(r)&&h(i)){var s;let l=r,c=i;if(a.sn==="initSegment"&&Zn((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 Yn(a,e){const t=new Error(`GAP ${a.gap?"tag":"attribute"} found`),n={type:oe.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 Hn(n)}function Zn(a){return a==="AES-128"||a==="AES-256"}class Hn extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class kn extends W{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 fr{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=rr(),this.buffering={audio:rr(),video:rr(),audiovideo:rr()},this.level=e,this.sn=t,this.id=n,this.size=r,this.part=i,this.partial=s}}function rr(){return{start:0,executeStart:0,executeEnd:0,end:0}}const hr={length:0,start:()=>0,end:()=>0};class vn{static isBuffered(e,t){if(e){const n=vn.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=vn.getBuffered(e);return vn.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=vn.bufferedRanges(e);if(r.length)return vn.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((f,p)=>f.start-p.start||p.end-f.end);let r=-1,i=[];if(n)for(let f=0;f<e.length;f++){t>=e[f].start&&t<=e[f].end&&(r=f);const p=i.length;if(p){const S=i[p-1].end;e[f].start-S<n?e[f].end>S&&(i[p-1].end=e[f].end):i.push(e[f])}else i.push(e[f])}else i=e;let s=0,l,c=t,u=t;for(let f=0;f<i.length;f++){const p=i[f].start,S=i[f].end;if(r===-1&&t>=p&&t<=S&&(r=f),t+n>=p&&t<S)c=p,u=S,s=u-t;else if(t+n<p){l=p;break}}return{len:s,start:c||0,end:u||0,nextStart:l,buffered:e,bufferedIndex:r}}static getBuffered(e){try{return e.buffered||hr}catch(t){return H.log("failed to get media.buffered",t),hr}}}const er=/\{\$([a-zA-Z0-9-_]+)\}/g;function pr(a){return er.test(a)}function or(a,e){if(a.variableList!==null||a.hasVariableRefs){const t=a.variableList;return e.replace(er,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 dr(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 Tn(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 an=/^(\d+)x(\d+)$/,Sn=/(.+?)=(".*?"|.*?)(?:,|$)/g;class _n{constructor(e,t){typeof e=="string"&&(e=_n.parseAttrList(e,t)),m(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=an.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(Sn.lastIndex=0;(n=Sn.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=or(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":H.warn(`${e}: attribute ${s} is missing quotes`)}r[s]=l}return r}}const qn="com.apple.hls.interstitial";function Qn(a){return a!=="ID"&&a!=="CLASS"&&a!=="CUE"&&a!=="START-DATE"&&a!=="DURATION"&&a!=="END-DATE"&&a!=="END-ON-NEXT"}function ir(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]){H.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=s;break}e=m(new _n({}),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"]);h(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?(H.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(h(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===qn}get isValid(){return!!this.id&&!this._badValueForSameId&&h(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 Pr{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?h(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(){var e;return(e=this.fragments)!=null&&e.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){var e;return(e=this.fragments)!=null&&e.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 Kr(a){return a==="AES-128"||a==="AES-256"||a==="AES-256-CTR"}function Gr(a){switch(a){case"AES-128":case"AES-256":return Qt.cbc;case"AES-256-CTR":return Qt.ctr;default:throw new Error(`invalid full segment method ${a}`)}}function zr(a){return Uint8Array.from(atob(a),e=>e.charCodeAt(0))}function mr(a){return Uint8Array.from(unescape(encodeURIComponent(a)),e=>e.charCodeAt(0))}function Cr(a){const e=mr(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 yr(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=Cr(s)}}return t}const vr=typeof self!="undefined"?self:void 0;var nr={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Ln={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function tr(a){switch(a){case Ln.FAIRPLAY:return nr.FAIRPLAY;case Ln.PLAYREADY:return nr.PLAYREADY;case Ln.WIDEVINE:return nr.WIDEVINE;case Ln.CLEARKEY:return nr.CLEARKEY}}function sr(a){switch(a){case nr.FAIRPLAY:return Ln.FAIRPLAY;case nr.PLAYREADY:return Ln.PLAYREADY;case nr.WIDEVINE:return Ln.WIDEVINE;case nr.CLEARKEY:return Ln.CLEARKEY}}function lr(a){const{drmSystems:e,widevineLicenseUrl:t}=a,n=e?[nr.FAIRPLAY,nr.WIDEVINE,nr.PLAYREADY,nr.CLEARKEY].filter(r=>!!e[r]):[];return!n[nr.WIDEVINE]&&t&&n.push(nr.WIDEVINE),n}const Sr=function(a){return vr!=null&&(a=vr.navigator)!=null&&a.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Dr(a,e,t,n){let r;switch(a){case nr.FAIRPLAY:r=["cenc","sinf"];break;case nr.WIDEVINE:case nr.PLAYREADY:r=["cenc"];break;case nr.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 Fn(a){var e;return a.sessionType==="persistent-license"||!!((e=a.sessionTypes)!=null&&e.some(t=>t==="persistent-license"))}function Jn(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 Vn={};class Ar{static clearKeyUriToKeyIdMap(){Vn={}}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&&!Kr(e),s!=null&&s.startsWith("0x")&&(this.keyId=new Uint8Array(k(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(Kr(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Ln.FAIRPLAY:case Ln.WIDEVINE:case Ln.PLAYREADY:case Ln.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(Kr(this.method)&&this.uri&&!this.iv){typeof e!="number"&&(H.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=yr(this.uri);if(t)switch(this.keyFormat){case Ln.WIDEVINE:if(this.pssh=t,!this.keyId&&t.length>=22){const n=t.length-22;this.keyId=t.subarray(n,n+16)}break;case Ln.PLAYREADY:{const n=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=St(n,null,t),this.keyId=Jn(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=Vn[this.uri];if(!n){const r=Object.keys(Vn).length%Number.MAX_SAFE_INTEGER;n=new Uint8Array(16),new DataView(n.buffer,12,4).setUint32(0,r),Vn[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,Jr=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),Vr=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 hi{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 v.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return si.test(e)}static parseMasterPlaylist(e,t){const n=pr(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 _n(s[1],r),f=or(r,s[2]),p={attrs:u,bitrate:u.decimalInteger("BANDWIDTH")||u.decimalInteger("AVERAGE-BANDWIDTH"),name:u.NAME,url:hi.resolve(f,t)},S=u.decimalResolution("RESOLUTION");S&&(p.width=S.width,p.height=S.height),Oi(u.CODECS,p);const C=u["SUPPLEMENTAL-CODECS"];C&&(p.supplemental={},Oi(C,p.supplemental)),(l=p.unknownCodecs)!=null&&l.length||i.push(p),r.levels.push(p)}else if(s[3]){const u=s[3],f=s[4];switch(u){case"SESSION-DATA":{const p=new _n(f,r),S=p["DATA-ID"];S&&(r.sessionData===null&&(r.sessionData={}),r.sessionData[S]=p);break}case"SESSION-KEY":{const p=zi(f,t,r);p.encrypted&&p.isSupported()?(r.sessionKeys===null&&(r.sessionKeys=[]),r.sessionKeys.push(p)):H.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${f}"`);break}case"DEFINE":{{const p=new _n(f,r);dr(r,p,t)}break}case"CONTENT-STEERING":{const p=new _n(f,r);r.contentSteering={uri:hi.resolve(p["SERVER-URI"],t),pathwayId:p["PATHWAY-ID"]||"."};break}case"START":{r.startTimeOffset=Mi(f);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 _n(r[1],n),f=u.TYPE;if(f){const p=l[f],S=i[f]||[];i[f]=S;const C=u.LANGUAGE,D=u["ASSOC-LANGUAGE"],te=u.CHANNELS,Y=u.CHARACTERISTICS,be=u["INSTREAM-ID"],Xe={attrs:u,bitrate:0,id:c++,groupId:u["GROUP-ID"]||"",name:u.NAME||C||"",type:f,default:u.bool("DEFAULT"),autoselect:u.bool("AUTOSELECT"),forced:u.bool("FORCED"),lang:C,url:u.URI?hi.resolve(u.URI,t):""};if(D&&(Xe.assocLang=D),te&&(Xe.channels=te),Y&&(Xe.characteristics=Y),be&&(Xe.instreamId=be),p!=null&&p.length){const Me=hi.findGroup(p,Xe.groupId)||p[0];ji(Xe,Me,"audioCodec"),ji(Xe,Me,"textCodec")}S.push(Xe)}}return i}static parseLevelPlaylist(e,t,n,r,i,s){var l;const c={url:t},u=new Pr(t),f=u.fragments,p=[];let S=null,C=0,D=0,te=0,Y=0,be=0,Xe=null,Me=new Je(r,c),mt,Ut,hn,It=-1,Jt=!1,en=null,xt;if(Jr.lastIndex=0,u.m3u8=e,u.hasVariableRefs=pr(e),((l=Jr.exec(e))==null?void 0:l[0])!=="#EXTM3U")return u.playlistParsingError=new Error("Missing format identifier #EXTM3U"),u;for(;(mt=Jr.exec(e))!==null;){Jt&&(Jt=!1,Me=new Je(r,c),Me.playlistOffset=te,Me.start=te,Me.sn=C,Me.cc=Y,be&&(Me.bitrate=be),Me.level=n,S&&(Me.initSegment=S,S.rawProgramDateTime&&(Me.rawProgramDateTime=S.rawProgramDateTime,S.rawProgramDateTime=null),en&&(Me.setByteRange(en),en=null)));const cr=mt[1];if(cr){Me.duration=parseFloat(cr);const ur=(" "+mt[2]).slice(1);Me.title=ur||null,Me.tagList.push(ur?["INF",cr,ur]:["INF",cr])}else if(mt[3]){if(h(Me.duration)){Me.playlistOffset=te,Me.start=te,hn&&Xi(Me,hn,u),Me.sn=C,Me.level=n,Me.cc=Y,f.push(Me);const ur=(" "+mt[3]).slice(1);Me.relurl=or(u,ur),Fi(Me,Xe,p),Xe=Me,te+=Me.duration,C++,D=0,Jt=!0}}else{if(mt=mt[0].match(Vr),!mt){H.warn("No matches on slow regex match for level playlist!");continue}for(Ut=1;Ut<mt.length&&mt[Ut]===void 0;Ut++);const ur=(" "+mt[Ut]).slice(1),$n=(" "+mt[Ut+1]).slice(1),Er=mt[Ut+2]?(" "+mt[Ut+2]).slice(1):null;switch(ur){case"BYTERANGE":Xe?Me.setByteRange($n,Xe):Me.setByteRange($n);break;case"PROGRAM-DATE-TIME":Me.rawProgramDateTime=$n,Me.tagList.push(["PROGRAM-DATE-TIME",$n]),It===-1&&(It=f.length);break;case"PLAYLIST-TYPE":u.type&&ci(u,ur,mt),u.type=$n.toUpperCase();break;case"MEDIA-SEQUENCE":u.startSN!==0?ci(u,ur,mt):f.length>0&&ts(u,ur,mt),C=u.startSN=parseInt($n);break;case"SKIP":{u.skippedSegments&&ci(u,ur,mt);const Gn=new _n($n,u),Tr=Gn.decimalInteger("SKIPPED-SEGMENTS");if(h(Tr)){u.skippedSegments+=Tr;for(let Xn=Tr;Xn--;)f.push(null);C+=Tr}const br=Gn.enumeratedString("RECENTLY-REMOVED-DATERANGES");br&&(u.recentlyRemovedDateranges=(u.recentlyRemovedDateranges||[]).concat(br.split(" ")));break}case"TARGETDURATION":u.targetduration!==0&&ci(u,ur,mt),u.targetduration=Math.max(parseInt($n),1);break;case"VERSION":u.version!==null&&ci(u,ur,mt),u.version=parseInt($n);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":u.live||ci(u,ur,mt),u.live=!1;break;case"#":($n||Er)&&Me.tagList.push(Er?[$n,Er]:[$n]);break;case"DISCONTINUITY":Y++,Me.tagList.push(["DIS"]);break;case"GAP":Me.gap=!0,Me.tagList.push([ur]);break;case"BITRATE":Me.tagList.push([ur,$n]),be=parseInt($n)*1e3,h(be)?Me.bitrate=be:be=0;break;case"DATERANGE":{const Gn=new _n($n,u),Tr=new xr(Gn,u.dateRanges[Gn.ID],u.dateRangeTagCount);u.dateRangeTagCount++,Tr.isValid||u.skippedSegments?u.dateRanges[Tr.id]=Tr:H.warn(`Ignoring invalid DATERANGE tag: "${$n}"`),Me.tagList.push(["EXT-X-DATERANGE",$n]);break}case"DEFINE":{{const Gn=new _n($n,u);"IMPORT"in Gn?Tn(u,Gn,s):dr(u,Gn,t)}break}case"DISCONTINUITY-SEQUENCE":u.startCC!==0?ci(u,ur,mt):f.length>0&&ts(u,ur,mt),u.startCC=Y=parseInt($n);break;case"KEY":{const Gn=zi($n,t,u);if(Gn.isSupported()){if(Gn.method==="NONE"){hn=void 0;break}hn||(hn={});const Tr=hn[Gn.keyFormat];Tr!=null&&Tr.matches(Gn)||(Tr&&(hn=m({},hn)),hn[Gn.keyFormat]=Gn)}else H.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${$n}"`);break}case"START":u.startTimeOffset=Mi($n);break;case"MAP":{const Gn=new _n($n,u);if(Me.duration){const Tr=new Je(r,c);Ri(Tr,Gn,n,hn),S=Tr,Me.initSegment=S,S.rawProgramDateTime&&!Me.rawProgramDateTime&&(Me.rawProgramDateTime=S.rawProgramDateTime)}else{const Tr=Me.byteRangeEndOffset;if(Tr){const br=Me.byteRangeStartOffset;en=`${Tr-br}@${br}`}else en=null;Ri(Me,Gn,n,hn),S=Me,Jt=!0}S.cc=Y;break}case"SERVER-CONTROL":{xt&&ci(u,ur,mt),xt=new _n($n),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&&ci(u,ur,mt);const Gn=new _n($n);u.partTarget=Gn.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Gn=u.partList;Gn||(Gn=u.partList=[]);const Tr=D>0?Gn[Gn.length-1]:void 0,br=D++,Xn=new _n($n,u),Kn=new Dt(Xn,Me,c,br,Tr);Gn.push(Kn),Me.duration+=Kn.duration;break}case"PRELOAD-HINT":{const Gn=new _n($n,u);u.preloadHint=Gn;break}case"RENDITION-REPORT":{const Gn=new _n($n,u);u.renditionReports=u.renditionReports||[],u.renditionReports.push(Gn);break}default:H.warn(`line parsed but not handled: ${mt}`);break}}}Xe&&!Xe.relurl?(f.pop(),te-=Xe.duration,u.partList&&(u.fragmentHint=Xe)):u.partList&&(Fi(Me,Xe,p),Me.cc=Y,u.fragmentHint=Me,hn&&Xi(Me,hn,u)),u.targetduration||(u.playlistParsingError=new Error("#EXT-X-TARGETDURATION is required"));const An=f.length,jn=f[0],gr=f[An-1];if(te+=u.skippedSegments*u.targetduration,te>0&&An&&gr){u.averagetargetduration=te/An;const cr=gr.sn;u.endSN=cr!=="initSegment"?cr:0,u.live||(gr.endList=!0),jn&&u.startCC===void 0&&(u.startCC=jn.cc),It>0&&(yi(f,It),jn&&p.unshift(jn))}else u.endSN=0,u.startCC=0;return u.fragmentHint&&(te+=u.fragmentHint.duration),u.totalduration=te,p.length&&u.dateRangeTagCount&&jn&&Yi(p,u),u.endCC=Y,u}}function Yi(a,e){const t=a.length;if(!t)return;const n=a[t-1],r=e.live?1/0:e.totalduration,i=Object.keys(e.dateRanges);for(let s=i.length;s--;){const l=e.dateRanges[i[s]],c=l.startDate.getTime();l.tagAnchor=n.ref;for(let u=t;u--;){const f=Di(e,c,a,u,r);if(f!==-1){l.tagAnchor=e.fragments[f].ref;break}}}}function Di(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,f=a.fragments;if(f.length>t.length){const S=(t[n+1]||f[f.length-1]).sn-a.startSN;for(let C=S;C>u;C--){const D=f[C].programDateTime;if(e>=D&&e<D+f[C].duration*1e3)return C}}return u}}}return-1}function zi(a,e,t){var n,r;const i=new _n(a,t),s=(n=i.METHOD)!=null?n:"",l=i.URI,c=i.hexadecimalInteger("IV"),u=i.KEYFORMATVERSIONS,f=(r=i.KEYFORMAT)!=null?r:"identity";l&&i.IV&&!c&&H.error(`Invalid IV: ${i.IV}`);const p=l?hi.resolve(l,e):"",S=(u||"1").split("/").map(Number).filter(Number.isFinite);return new Ar(s,p,f,S,c,i.KEYID)}function Mi(a){const t=new _n(a).decimalFloatingPoint("TIME-OFFSET");return h(t)?t:null}function Oi(a,e){let t=(a||"").split(/[ ,]+/).filter(n=>n);["video","audio","text"].forEach(n=>{const r=t.filter(i=>Wt(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 ji(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 Ri(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 Xi(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 ci(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${t[0]})`)}function ts(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(h(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 ns(a,e,t,n,r,i){n-t<=0&&(H.warn("Fragment should have a positive duration",e),n=t+e.duration,i=r+e.duration);let l=t,c=n;const u=e.startPTS,f=e.endPTS;if(h(u)){const Y=Math.abs(u-t);h(e.deltaPTS)?e.deltaPTS=Math.max(Y,e.deltaPTS):e.deltaPTS=Y,l=Math.max(t,u),t=Math.min(t,u),r=Math.min(r,e.startDTS),c=Math.min(n,f),n=Math.max(n,f),i=Math.max(i,e.endDTS)}const p=t-e.start;e.start!==0&&e.setStart(t),e.setDuration(n-e.start),e.startPTS=t,e.maxStartPTS=l,e.startDTS=r,e.endPTS=n,e.minEndPTS=c,e.endDTS=i;const S=e.sn;if(!a||S<a.startSN||S>a.endSN)return 0;let C;const D=S-a.startSN,te=a.fragments;for(te[D]=e,C=D;C>0;C--)Bi(te[C],te[C-1]);for(C=D;C<te.length-1;C++)Bi(te[C],te[C+1]);return a.fragmentHint&&Bi(te[te.length-1],a.fragmentHint),a.PTSKnown=a.alignedSliding=!0,p}function rs(a,e){if(a===e)return;let t=null;const n=a.fragments;for(let u=n.length-1;u>=0;u--){const f=n[u].initSegment;if(f){t=f;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;let r;ai(a,e,(u,f,p,S)=>{if((!e.startCC||e.skippedSegments)&&f.cc!==u.cc){const C=u.cc-f.cc;for(let D=p;D<S.length;D++)S[D].cc+=C;e.endCC=S[S.length-1].cc}h(u.startPTS)&&h(u.endPTS)&&(f.setStart(f.startPTS=u.startPTS),f.startDTS=u.startDTS,f.maxStartPTS=u.maxStartPTS,f.endPTS=u.endPTS,f.endDTS=u.endDTS,f.minEndPTS=u.minEndPTS,f.setDuration(u.endPTS-u.startPTS),f.duration&&(r=f),e.PTSKnown=e.alignedSliding=!0),u.hasStreams&&(f.elementaryStreams=u.elementaryStreams),f.loader=u.loader,u.hasStats&&(f.stats=u.stats),u.initSegment&&(f.initSegment=u.initSegment,t=u.initSegment)});const i=e.fragments,s=e.fragmentHint?i.concat(e.fragmentHint):i;if(t&&s.forEach(u=>{var f;u&&(!u.initSegment||u.initSegment.relurl===((f=t)==null?void 0:f.relurl))&&(u.initSegment=t)}),e.skippedSegments){if(e.deltaUpdateFailed=i.some(u=>!u),e.deltaUpdateFailed){H.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let u=e.skippedSegments;u--;)i.shift();e.startSN=i[0].sn}else{e.canSkipDateRanges&&(e.dateRanges=is(a.dateRanges,e));const u=a.fragments.filter(f=>f.rawProgramDateTime);if(a.hasProgramDateTime&&!e.hasProgramDateTime)for(let f=1;f<s.length;f++)s[f].programDateTime===null&&Fi(s[f],s[f-1],u);Yi(u,e)}e.endCC=i[i.length-1].cc}if(!e.startCC){var l;const u=Hr(a,e.startSN-1);e.startCC=(l=u==null?void 0:u.cc)!=null?l:i[0].cc}Gi(a.partList,e.partList,(u,f)=>{f.elementaryStreams=u.elementaryStreams,f.stats=u.stats}),r?ns(e,r,r.startPTS,r.endPTS,r.startDTS,r.endDTS):wr(a,e),i.length&&(e.totalduration=e.edge-i[0].start),e.driftStartTime=a.driftStartTime,e.driftStart=a.driftStart;const c=e.advancedDateTime;if(e.advanced&&c){const u=e.edge;e.driftStart||(e.driftStartTime=c,e.driftStart=u),e.driftEndTime=c,e.driftEnd=u}else e.driftEndTime=a.driftEndTime,e.driftEnd=a.driftEnd,e.advancedDateTime=a.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=a.requestScheduled)}function is(a,e){const{dateRanges:t,recentlyRemovedDateranges:n}=e,r=m({},a);n&&n.forEach(l=>{delete r[l]});const s=Object.keys(r).length;return s&&Object.keys(t).forEach(l=>{const c=r[l],u=new xr(t[l].attr,c);u.isValid?(r[l]=u,c||(u.tagOrder+=s)):H.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${Nt(t[l].attr)}"`)}),r}function Gi(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 f=c[s+u];let p=l[u];if(n&&!p&&f&&(p=e.fragments[u]=f),f&&p){if(t(f,p,u,l),f.url&&f.url!==p.url){e.playlistParsingError=ei(`media sequence mismatch ${p.sn}:`,a,e,f,p);return}else if(f.cc!==p.cc){e.playlistParsingError=ei(`discontinuity sequence mismatch (${f.cc}!=${p.cc})`,a,e,f,p);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 wr(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;_r(e,s)}function _r(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 Xr(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 Hr(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?Qr(a.partList,e,t):null}function Qr(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 ri(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 xi(a,e){return!!(a&&e.startCC<a.endCC&&e.endCC>a.startCC)}function qr(a,e){if(a){const t=a.start+e;a.start=a.startPTS=t,a.endPTS=t+a.duration}}function di(a,e){const t=e.fragments;for(let n=0,r=t.length;n<r;n++)qr(t[n],a);e.fragmentHint&&qr(e.fragmentHint,a),e.alignedSliding=!0}function Li(a,e){a&&(_i(e,a),!e.alignedSliding&&a&&Wi(e,a),!e.alignedSliding&&a&&!e.skippedSegments&&wr(a,e,!1))}function _i(a,e){if(!xi(e,a))return;const t=Math.min(e.endCC,a.endCC),n=ri(e.fragments,t),r=ri(a.fragments,t);if(!n||!r)return;H.log(`Aligning playlist at start of dicontinuity sequence ${t}`);const i=n.start-r.start;di(i,a)}function Wi(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=ri(n,s),i=ri(t,s)),(!r||!i)&&(r=n[Math.floor(n.length/2)],i=ri(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);di(u,a)}const xs={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}},sn={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 Mr extends kn{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=sn.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:f}=this,p=c?c.currentTime:0,S=vn.bufferInfo(u||c,p,s.maxBufferHole),C=!S.len;if(this.log(`Media seeking to ${h(p)?p.toFixed(3):p}, state: ${f}, ${C?"out of":"in"} buffer`),this.state===sn.ENDED)this.resetLoadingState();else if(l){const D=s.maxFragLookUpTolerance,te=l.start-D,Y=l.start+l.duration+D;if(C||Y<S.start||te>S.end){const be=p>Y;(p<te||be)&&(be&&l.loader&&(this.log(`Cancelling fragment load for seek (sn: ${l.sn})`),l.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(c){this.fragmentTracker.removeFragmentsInRange(p,1/0,this.playlistType,!0);const D=this.lastCurrentTime;if(p>D&&(this.lastCurrentTime=p),!this.loadingParts){const te=Math.max(S.end,p),Y=this.shouldLoadParts(this.getLevelDetails(),te);Y&&(this.log(`LL-Part loading ON after seeking to ${p.toFixed(2)} with buffer @${te.toFixed(2)}`),this.loadingParts=Y)}}this.hls.hasEnoughToStart||(this.log(`Setting ${C?"startPosition":"nextLoadPosition"} to ${p} for seek without enough to start`),this.nextLoadPosition=p,C&&(this.startPosition=p)),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 bn(e.config),this.keyLoader=n,this.fragmentTracker=t,this.config=e.config,this.decrypter=new dn(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===sn.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=sn.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=vn.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 f=c[c.length-1];return vn.isBuffered(this.media,f.start+f.duration/2)}const u=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(u)}getLevelDetails(){if(this.levels&&this.levelLastLoaded!==null){var e;return(e=this.levelLastLoaded)==null?void 0:e.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===sn.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=sn.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===sn.FRAG_LOADING||!this.fragCurrent&&s===sn.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=sn.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===sn.STOPPED||this.state===sn.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)===We.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)===We.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&&Kr(l.method)){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,Gr(l.method)).catch(u=>{throw r.trigger(d.ERROR,{type:oe.MEDIA_ERROR,details:B.FRAG_DECRYPT_ERROR,fatal:!1,error:u,reason:u.message,frag:i}),u}).then(u=>{const f=self.performance.now();return r.trigger(d.FRAG_DECRYPTED,{frag:i,payload:u,stats:{tstart:c,tdecrypt:f}}),n.payload=u,this.completeInitSegmentLoad(n)})}return this.completeInitSegmentLoad(n)}).catch(n=>{this.state===sn.STOPPED||this.state===sn.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!==sn.STOPPED&&(this.state=sn.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()}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?xs.toString(vn.getBuffered(n)):"(detached)"})`),Ie(e)){var r;if(e.type!==re.SUBTITLE){const s=e.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=sn.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=sn.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 fr(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==null?void 0: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=sn.KEY_LOADING,this.fragCurrent=e,l=this.keyLoader.load(e).then(p=>{if(!this.fragContextChanged(p.frag))return this.hls.trigger(d.KEY_LOADED,p),this.state===sn.KEY_LOADING&&(this.state=sn.IDLE),p}),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(Ie(e)&&(!c||e.sn!==c.sn)){const p=this.shouldLoadParts(t.details,e.end);p!==this.loadingParts&&(this.log(`LL-Part loading ${p?"ON":"OFF"} loading sn ${c==null?void 0:c.sn}->${e.sn}`),this.loadingParts=p)}if(n=Math.max(e.start,n||0),this.loadingParts&&Ie(e)){const p=s.partList;if(p&&r){n>e.end&&s.fragmentHint&&(e=s.fragmentHint);const S=this.getNextPart(p,e,n);if(S>-1){const C=p[S];e=this.fragCurrent=C.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${C.index} (${S}/${p.length-1}) of ${this.fragInfo(e,!1,C)}) cc: ${e.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(n.toFixed(3))}`),this.nextLoadPosition=C.start+C.duration,this.state=sn.FRAG_LOADING;let D;return l?D=l.then(te=>!te||this.fragContextChanged(te.frag)?null:this.doFragPartsLoad(e,C,t,r)).catch(te=>this.handleFragLoadError(te)):D=this.doFragPartsLoad(e,C,t,r).catch(te=>this.handleFragLoadError(te)),this.hls.trigger(d.FRAG_LOADING,{frag:e,part:C,targetBufferTime:n}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):D}else if(!e.url||this.loadedEndOfParts(p,n))return Promise.resolve(null)}}if(Ie(e)&&this.loadingParts)this.log(`LL-Part loading OFF after next part miss @${n.toFixed(2)}`),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?"["+s.startSN+"-"+s.endSN+"]":""}, target: ${parseFloat(n.toFixed(3))}`),h(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=sn.FRAG_LOADING;const u=this.config.progressive;let f;return u&&l?f=l.then(p=>!p||this.fragContextChanged(p==null?void 0:p.frag)?null:this.fragmentLoader.load(e,r)).catch(p=>this.handleFragLoadError(p)):f=Promise.all([this.fragmentLoader.load(e,u?r:void 0),l]).then(([p])=>(!u&&p&&r&&r(p),p)).catch(p=>this.handleFragLoadError(p)),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")):f}doFragPartsLoad(e,t,n,r){return new Promise((i,s)=>{var l;const c=[],u=(l=n.details)==null?void 0:l.partList,f=p=>{this.fragmentLoader.loadPart(e,p,r).then(S=>{c[p.index]=S;const C=S.part;this.hls.trigger(d.FRAG_LOADED,S);const D=Yr(n.details,e.sn,p.index+1)||Qr(u,e.sn,p.index+1);if(D)f(D);else return i({frag:e,part:C,partsLoaded:c})}).catch(s)};f(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===B.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(d.ERROR,t)}else this.hls.trigger(d.ERROR,{type:oe.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!==sn.PARSING){!this.fragCurrent&&this.state!==sn.STOPPED&&this.state!==sn.ERROR&&(this.state=sn.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!=null&&e.partList){var n;const i=e.partList[0],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,f=u?u.fragment:Hr(c,i,n);return f?(n&&n!==f&&(f.stats=n.stats),{frag:f,part:u,level:l}):null}bufferFragmentData(e,t,n,r,i){var s;if(!e||this.state!==sn.PARSING)return;const{data1:l,data2:c}=e;let u=l;if(l&&c&&(u=Ye(l,c)),!((s=u)!=null&&s.length))return;const f=this.initPTS[t.cc],p=f?-f.baseTime/f.timescale:void 0,S={type:e.type,frag:t,part:n,chunkMeta:r,offset:p,parent:t.type,data:u};if(this.hls.trigger(d.BUFFER_APPENDING,S),e.dropped&&e.independent&&!n){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!vn.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const n=t.currentTime,r=vn.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(!h(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=vn.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 vn.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=re.MAIN){var n;const r=(n=this.fragmentTracker)==null?void 0:n.getAppendedFrag(e,t);return r&&"fragment"in r?r.fragment:r}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 p=i.initialLiveManifestSize;if(r<p)return this.warn(`Not enough fragments to start playback (have: ${r}, need: ${p})`),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 S=this.hls.startPosition,C=this.hls.liveSyncPosition,D=c?(S!==-1&&S>=s?S:C)||c.start:e;this.log(`Setting startPosition to ${D} to match start frag at live edge. mainStart: ${S} liveSyncPosition: ${C} frag.start: ${(u=c)==null?void 0:u.start}`),this.startPosition=this.nextLoadPosition=D}}else e<=s&&(c=n[0]);if(!c){const p=this.loadingParts?t.partEnd:t.fragmentEnd;c=this.getFragmentAtPosition(e,p,t)}let f=this.filterReplacedPrimary(c,t);if(!f&&c){const p=c.sn-t.startSN;f=this.filterReplacedPrimary(n[p+1]||null,t)}return this.mapToInitFragWhenRequired(f)}isLoopLoading(e,t){const n=this.fragmentTracker.getState(e);return(n===We.OK||n===We.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(jr(this.hls.config)){var e,t;if((e=this.hls.interstitialsManager)==null||(t=e.playingItem)==null?void 0:t.event)return!0}return!1}filterReplacedPrimary(e,t){if(!e)return e;if(jr(this.hls.config)&&e.type!==re.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!=null&&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 f=u.loaded;f?r=-1:(i||u.independent||s)&&u.fragment===t&&(r=l),i=f}return r}loadedEndOfParts(e,t){const n=e[e.length-1];return n&&t>n.start&&n.loaded}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=Mn(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,f=n.partList,p=!!(this.loadingParts&&f!=null&&f.length&&c);p&&c&&!this.bitrateTest&&f[f.length-1].fragment.sn===c.sn&&(s=s.concat(c),l=c.sn);let S;if(e<t){var C;const te=e<this.lastCurrentTime||e>t-u||(C=this.media)!=null&&C.paused||!this.startFragRequested?0:u;S=In(i,s,e,te)}else S=s[s.length-1];if(S){const D=S.sn-n.startSN,te=this.fragmentTracker.getState(S);if((te===We.OK||te===We.PARTIAL&&S.gap)&&(i=S),i&&S.sn===i.sn&&(!p||f[0].fragment.sn>S.sn||!n.live&&!p)&&i&&S.level===i.level){const be=s[D+1];S.sn<l&&this.fragmentTracker.getState(be)!==We.OK?S=be:S=null}}return S}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&&h(i);if(s||!l&&!i){Li(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&&h(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&&Ie(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!==sn.FRAG_LOADING_WAITING_RETRY)&&(this.state=sn.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const D=this.getCurrentContext(t.chunkMeta);D&&(t.frag=D.frag)}const n=t.frag;if(!n||n.type!==e||!this.levels)return;if(this.fragContextChanged(n)){var r;this.warn(`Frag load error must match current frag to retry ${n.url} > ${(r=this.fragCurrent)==null?void 0:r.url}`);return}const i=t.details===B.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(n,!0);const s=t.errorAction,{action:l,flags:c,retryCount:u=0,retryConfig:f}=s||{},p=!!s&&!!f,S=p&&l===pn.RetryRequest,C=p&&!s.resolved&&c===Un.MoveAllAlternatesMatchingHost;if(!S&&C&&Ie(n)&&!n.endList)this.resetFragmentErrors(e),this.treatAsGap(n),s.resolved=!0;else if((S||C)&&u<f.maxNumRetry){this.resetStartWhenNotLoaded(this.levelLastLoaded);const D=xn(f,u);this.warn(`Fragment ${n.sn} of ${e} ${n.level} errored with ${t.details}, retrying loading ${u+1}/${f.maxNumRetry} in ${D}ms`),s.resolved=!0,this.retryDate=self.performance.now()+D,this.state=sn.FRAG_LOADING_WAITING_RETRY}else if(f&&s)if(this.resetFragmentErrors(e),u<f.maxNumRetry)!i&&l!==pn.RemoveAlternatePermanently&&(s.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${u})`);return}else l===pn.SendAlternateToPenaltyBox?this.state=sn.WAITING_LEVEL:this.state=sn.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===sn.PARSING||this.state===sn.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 is not buffered, flush ${n} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(e){e===re.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==sn.STOPPED&&(this.state=sn.IDLE)}afterBufferFlushed(e,t,n){if(!e)return;const r=vn.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,r,n),this.state===sn.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==sn.STOPPED&&(this.state=sn.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 f=e.elementaryStreams[u];if(f){const p=f.endPTS-f.startPTS;if(p<=0)return this.warn(`Could not parse fragment ${e.sn} ${u} duration reliably (${p})`),c||!1;const S=r?0:ns(i,e,f.startPTS,f.endPTS,f.startDTS,f.endDTS);return this.hls.trigger(d.LEVEL_PTS_UPDATED,{details:i,level:n,drift:S,type:u,frag:e,start:f.startPTS,end:f.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:oe.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=sn.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===re.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 jr(a){return!!a.interstitialsController&&a.enableInterstitialPlayback!==!1}class oi{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=ii(e,t);else return new Uint8Array(0);return this.reset(),n}reset(){this.chunks.length=0,this.dataLength=0}}function ii(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 vi={exports:{}},ss;function Ss(){return ss||(ss=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,f){this.fn=c,this.context=u,this.once=f||!1}function i(c,u,f,p,S){if(typeof f!="function")throw new TypeError("The listener must be a function");var C=new r(f,p||c,S),D=t?t+u:u;return c._events[D]?c._events[D].fn?c._events[D]=[c._events[D],C]:c._events[D].push(C):(c._events[D]=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=[],f,p;if(this._eventsCount===0)return u;for(p in f=this._events)e.call(f,p)&&u.push(t?p.slice(1):p);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u){var f=t?t+u:u,p=this._events[f];if(!p)return[];if(p.fn)return[p.fn];for(var S=0,C=p.length,D=new Array(C);S<C;S++)D[S]=p[S].fn;return D},l.prototype.listenerCount=function(u){var f=t?t+u:u,p=this._events[f];return p?p.fn?1:p.length:0},l.prototype.emit=function(u,f,p,S,C,D){var te=t?t+u:u;if(!this._events[te])return!1;var Y=this._events[te],be=arguments.length,Xe,Me;if(Y.fn){switch(Y.once&&this.removeListener(u,Y.fn,void 0,!0),be){case 1:return Y.fn.call(Y.context),!0;case 2:return Y.fn.call(Y.context,f),!0;case 3:return Y.fn.call(Y.context,f,p),!0;case 4:return Y.fn.call(Y.context,f,p,S),!0;case 5:return Y.fn.call(Y.context,f,p,S,C),!0;case 6:return Y.fn.call(Y.context,f,p,S,C,D),!0}for(Me=1,Xe=new Array(be-1);Me<be;Me++)Xe[Me-1]=arguments[Me];Y.fn.apply(Y.context,Xe)}else{var mt=Y.length,Ut;for(Me=0;Me<mt;Me++)switch(Y[Me].once&&this.removeListener(u,Y[Me].fn,void 0,!0),be){case 1:Y[Me].fn.call(Y[Me].context);break;case 2:Y[Me].fn.call(Y[Me].context,f);break;case 3:Y[Me].fn.call(Y[Me].context,f,p);break;case 4:Y[Me].fn.call(Y[Me].context,f,p,S);break;default:if(!Xe)for(Ut=1,Xe=new Array(be-1);Ut<be;Ut++)Xe[Ut-1]=arguments[Ut];Y[Me].fn.apply(Y[Me].context,Xe)}}return!0},l.prototype.on=function(u,f,p){return i(this,u,f,p,!1)},l.prototype.once=function(u,f,p){return i(this,u,f,p,!0)},l.prototype.removeListener=function(u,f,p,S){var C=t?t+u:u;if(!this._events[C])return this;if(!f)return s(this,C),this;var D=this._events[C];if(D.fn)D.fn===f&&(!S||D.once)&&(!p||D.context===p)&&s(this,C);else{for(var te=0,Y=[],be=D.length;te<be;te++)(D[te].fn!==f||S&&!D[te].once||p&&D[te].context!==p)&&Y.push(D[te]);Y.length?this._events[C]=Y.length===1?Y[0]:Y:s(this,C)}return this},l.prototype.removeAllListeners=function(u){var f;return u?(f=t?t+u:u,this._events[f]&&s(this,f)):(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}(vi)),vi.exports}var As=Ss(),Qi=F(As);const Si="1.6.7",Ai={};function as(){return typeof __HLS_WORKER_BUNDLE__=="function"}function Qs(){const a=Ai[Si];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 Ai[Si]=r,r}function ya(a){const e=Ai[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 Ai[a]=r,r}function Js(a){const e=Ai[a||Si];if(e&&e.clientCount--===1){const{worker:n,objectURL:r}=e;delete Ai[a||Si],r&&self.URL.revokeObjectURL(r),n.terminate()}}function Ms(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 Os(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 ws(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 hs(a,e){const t=e;let n=0;for(;Os(a,e);){n+=10;const r=ws(a,e+6);n+=r,Ms(a,e+10)&&(n+=10),e+=n}if(n>0)return a.subarray(t,t+n)}function qs(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:oe.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,f=r[s];let p=s;(l===5||l===29)&&(p-=3);const S=[l<<3|(p&14)>>1,(p&1)<<7|c<<3];return H.log(`manifest codec:${n}, parsed codec:${u}, channels:${c}, rate:${f} (ADTS object type:${l} sampling index:${s})`),{config:S,samplerate:f,channelCount:c,codec:u,parsedCodec:u,manifestCodec:n}}function ps(a,e){return a[e]===255&&(a[e+1]&246)===240}function Ts(a,e){return a[e+1]&1?7:9}function ms(a,e){return(a[e+3]&3)<<11|a[e+4]<<3|(a[e+5]&224)>>>5}function $s(a,e){return e+5<a.length}function gs(a,e){return e+1<a.length&&ps(a,e)}function ea(a,e){return $s(a,e)&&ps(a,e)&&ms(a,e)<=a.length-e}function ta(a,e){if(gs(a,e)){const t=Ts(a,e);if(e+t>=a.length)return!1;const n=ms(a,e);if(n<=t)return!1;const r=e+n;return r===a.length||gs(a,r)}return!1}function na(a,e,t,n,r){if(!a.samplerate){const i=qs(e,t,n,r);if(!i)return;m(a,i)}}function Fs(a){return 1024*9e4/a}function Bs(a,e){const t=Ts(a,e);if(e+t<=a.length){const n=ms(a,e)-t;if(n>0)return{headerLength:t,frameLength:n}}}function Us(a,e,t,n,r){const i=Fs(a.samplerate),s=n+r*i,l=Bs(e,t);let c;if(l){const{frameLength:p,headerLength:S}=l,C=S+p,D=Math.max(0,t+C-e.length);D?(c=new Uint8Array(C-S),c.set(e.subarray(t+S,e.length),0)):c=e.subarray(t+S,t+C);const te={unit:c,pts:s};return D||a.samples.push(te),{sample:te,length:C,missing:D}}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 Zs(a,e){return Os(a,e)&&ws(a,e+6)+10<=a.length-e}function ra(a){return a instanceof ArrayBuffer?a:a.byteOffset==0&&a.byteLength==a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer}function Ks(a,e=0,t=1/0){return Rr(a,e,t,Uint8Array)}function Rr(a,e,t,n){const r=Ir(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))),f=Math.floor(Math.min(u+Math.max(t,0),l));return new n(r,u,f-u)}function Ir(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 Ei(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=Fe(Ks(a.data,1,n)),i=a.data[2+n],s=a.data.subarray(3+n).indexOf(0);if(s===-1)return;const l=Fe(Ks(a.data,3+n,s));let c;return r==="-->"?c=Fe(Ks(a.data,4+n+s)):c=ra(a.data.subarray(4+n+s)),e.mimeType=r,e.pictureType=i,e.description=l,e.data=c,e}function ui(a){if(a.size<2)return;const e=Fe(a.data,!0),t=new Uint8Array(a.data.subarray(e.length+1));return{key:a.type,info:e,data:t.buffer}}function os(a){if(a.size<2)return;if(a.type==="TXXX"){let t=1;const n=Fe(a.data.subarray(t),!0);t+=n.length+1;const r=Fe(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=Fe(a.data.subarray(1));return{key:a.type,info:"",data:e}}function Ji(a){if(a.type==="WXXX"){if(a.size<2)return;let t=1;const n=Fe(a.data.subarray(t),!0);t+=n.length+1;const r=Fe(a.data.subarray(t));return{key:a.type,info:n,data:r}}const e=Fe(a.data);return{key:a.type,info:"",data:e}}function qi(a){return a.type==="PRIV"?ui(a):a.type[0]==="W"?Ji(a):a.type==="APIC"?Ei(a):os(a)}function vs(a){const e=String.fromCharCode(a[0],a[1],a[2],a[3]),t=ws(a,4),n=10;return{type:e,size:t,data:a.subarray(n,n+t)}}const ls=10,_l=10;function qa(a){let e=0;const t=[];for(;Os(a,e);){const n=ws(a,e+6);a[e+5]>>6&1&&(e+=ls),e+=ls;const r=e+n;for(;e+_l<r;){const i=vs(a.subarray(e)),s=qi(i);s&&t.push(s),e+=i.size+ls}Ms(a,e)&&(e+=ls)}return t}function $a(a){return a&&a.key==="PRIV"&&a.info==="com.apple.streaming.transportStreamTimestamp"}function El(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 _a(a){const e=qa(a);for(let t=0;t<e.length;t++){const n=e[t];if($a(n))return El(n)}}let wi=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 Hi(a="",e=9e4){return{type:a,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Ea{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=hs(e,0),r=n?n.length:0,i;const s=this._audioTrack,l=this._id3Track,c=n?_a(n):void 0,u=e.length;for((this.basePTS===null||this.frameIndex===0&&h(c))&&(this.basePTS=bl(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:wi.audioId3,duration:Number.POSITIVE_INFINITY});r<u;){if(this.canParse(e,r)){const f=this.appendFrame(s,e,r);f?(this.frameIndex++,this.lastPTS=f.sample.pts,r+=f.length,i=r):r=u}else Zs(e,r)?(n=hs(e,r),l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:n,type:wi.audioId3,duration:Number.POSITIVE_INFINITY}),r+=n.length,i=r):r++;if(r===u&&i!==u){const f=e.slice(i);this.cachedData?this.cachedData=Ye(this.cachedData,f):this.cachedData=f}}return{audioTrack:s,videoTrack:Hi(),id3Track:l,textTrack:Hi()}}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:Hi(),id3Track:this._id3Track,textTrack:Hi()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const bl=(a,e,t)=>{if(h(a))return a*90;const n=t?t.baseTime*9e4/t.timescale:0;return e*9e4+n};let ia=null;const xl=[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],Sl=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Al=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],wl=[0,1,1,4];function eo(a,e,t,n,r){if(t+24>e.length)return;const i=to(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 to(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=xl[c*14+r-1]*1e3,p=Sl[(t===3?0:t===2?1:2)*3+i],S=l===3?1:2,C=Al[t][n],D=wl[n],te=C*8*D,Y=Math.floor(C*u/p+s)*D;if(ia===null){const Me=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);ia=Me?parseInt(Me[1]):0}return!!ia&&ia<=87&&n===2&&u>=224e3&&l===0&&(a[e+3]=a[e+3]|128),{sampleRate:p,channelCount:S,frameLength:Y,samplesPerFrame:te}}}function ba(a,e){return a[e]===255&&(a[e+1]&224)===224&&(a[e+1]&6)!==0}function no(a,e){return e+1<a.length&&ba(a,e)}function Tl(a,e){return ba(a,e)&&4<=a.length-e}function ro(a,e){if(e+1<a.length&&ba(a,e)){const n=to(a,e);let r=4;n!=null&&n.frameLength&&(r=n.frameLength);const i=e+r;return i===a.length||no(a,i)}return!1}class Cl extends Ea{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=hs(e,0);let r=(n==null?void 0:n.length)||0;if(ro(e,r))return!1;for(let i=e.length;r<i;r++)if(ta(e,r))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return ea(e,t)}appendFrame(e,t,n){na(e,this.observer,t,n,e.manifestCodec);const r=Us(e,t,n,this.basePTS,this.frameIndex);if(r&&r.missing===0)return r}}const io=(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 Dl extends Ea{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=so(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=hs(e,0);if(!t)return!1;const n=t.length;return e[n]===11&&e[n+1]===119&&_a(t)!==void 0&&io(e,n)<16}}function so(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,f=[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+f>e.length)return-1;const p=e[t+6]>>5;let S=0;p===2?S+=2:(p&1&&p!==1&&(S+=2),p&4&&(S+=2));const C=(e[t+6]<<8|e[t+7])>>12-S&1,te=[2,1,2,3,3,4,4,5][p]+C,Y=e[t+5]>>3,be=e[t+5]&7,Xe=new Uint8Array([i<<6|Y<<1|be>>2,(be&3)<<6|p<<3|C<<2|c>>4,c<<4&224]),Me=1536/l*9e4,mt=n+r*Me,Ut=e.subarray(t,t+f);return a.config=Xe,a.channelCount=te,a.samplerate=l,a.samples.push({unit:Ut,pts:mt}),f}class Rl extends Ea{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=hs(e,0);let n=(t==null?void 0:t.length)||0;if(t&&e[n]===11&&e[n+1]===119&&_a(t)!==void 0&&io(e,n)<=16)return!1;for(let r=e.length;n<r;n++)if(ro(e,n))return H.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return Tl(e,t)}appendFrame(e,t,n){if(this.basePTS!==null)return eo(e,t,n,this.basePTS,this.frameIndex)}}const Ll=/\/emsg[-/]ID3/i;class Il{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=Hi("video",1),s=this.audioTrack=Hi("audio",1),l=this.txtTrack=Hi("text",1);if(this.id3Track=Hi("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const c=Pe(e);if(c.video){const{id:u,timescale:f,codec:p,supplemental:S}=c.video;i.id=u,i.timescale=l.timescale=f,i.codec=p,i.supplemental=S}if(c.audio){const{id:u,timescale:f,codec:p}=c.audio;s.id=u,s.timescale=f,s.codec=p}l.id=Yt.text,i.sampleDuration=0,i.duration=s.duration=r}resetContiguity(){this.remainderData=null}static probe(e){return pe(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=Et(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=Et(e,t),{videoTrack:t,audioTrack:Hi(),id3Track:r,textTrack:Hi()}}extractID3Track(e,t){const n=this.id3Track;if(e.samples.length){const r=N(e.samples,["emsg"]);r&&r.forEach(i=>{const s=et(i);if(Ll.test(s.schemeIdUri)){const l=ao(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:wi.emsg,duration:c})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=ao(s,t);n.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:wi.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 ao(a,e){return h(a.presentationTime)?a.presentationTime/a.timeScale:e+a.presentationTimeDelta/a.timeScale}class kl{constructor(e,t,n){this.keyData=void 0,this.decrypter=void 0,this.keyData=n,this.decrypter=new dn(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,Qt.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=at(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 oo{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,f,p,S=-1,C=0;for(i===-1&&(S=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(f=c-i-1,S>=0){const D={data:t.subarray(S,f),type:C};l.push(D)}else{const D=this.getLastNalUnit(e.samples);D&&(s&&c<=4-s&&D.state&&(D.data=D.data.subarray(0,D.data.byteLength-s)),f>0&&(D.data=Ye(D.data,t.subarray(0,f)),D.state=0))}c<r?(p=this.getNALuType(t,c),S=c,C=p,i=0):i=-1}else i=0}if(S>=0&&i>=0){const D={data:t.subarray(S,r),type:C,state:i};l.push(D)}if(l.length===0){const D=this.getLastNalUnit(e.samples);D&&(D.data=Ye(D.data,t))}return e.naluState=i,l}}class zs{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&&H.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 lo extends oo{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 f,p;switch(u.type){case 1:{let te=!1;l=!0;const Y=u.data;if(c&&Y.length>4){const be=this.readSliceType(Y);(be===2||be===4||be===7||be===9)&&(te=!0)}if(te){var S;(S=s)!=null&&S.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,(f=s)!=null&&f.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,Ae(u.data,1,n.pts,t.samples);break}case 7:{var C,D;l=!0,c=!0;const te=u.data,Y=this.readSPS(te);if(!e.sps||e.width!==Y.width||e.height!==Y.height||((C=e.pixelRatio)==null?void 0:C[0])!==Y.pixelRatio[0]||((D=e.pixelRatio)==null?void 0:D[1])!==Y.pixelRatio[1]){e.width=Y.width,e.height=Y.height,e.pixelRatio=Y.pixelRatio,e.sps=[te];const be=te.subarray(1,4);let Xe="avc1.";for(let Me=0;Me<3;Me++){let mt=be[Me].toString(16);mt.length<2&&(mt="0"+mt),Xe+=mt}e.codec=Xe}break}case 8:l=!0,e.pps=[u.data];break;case 9:l=!0,e.audFound=!0,(p=s)!=null&&p.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 zs(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 zs(e);let n=0,r=0,i=0,s=0,l,c,u;const f=t.readUByte.bind(t),p=t.readBits.bind(t),S=t.readUEG.bind(t),C=t.readBoolean.bind(t),D=t.skipBits.bind(t),te=t.skipEG.bind(t),Y=t.skipUEG.bind(t),be=this.skipScalingList.bind(this);f();const Xe=f();if(p(5),D(3),f(),Y(),Xe===100||Xe===110||Xe===122||Xe===244||Xe===44||Xe===83||Xe===86||Xe===118||Xe===128){const Jt=S();if(Jt===3&&D(1),Y(),Y(),D(1),C())for(c=Jt!==3?8:12,u=0;u<c;u++)C()&&(u<6?be(16,t):be(64,t))}Y();const Me=S();if(Me===0)S();else if(Me===1)for(D(1),te(),te(),l=S(),u=0;u<l;u++)te();Y(),D(1);const mt=S(),Ut=S(),hn=p(1);hn===0&&D(1),D(1),C()&&(n=S(),r=S(),i=S(),s=S());let It=[1,1];if(C()&&C())switch(f()){case 1:It=[1,1];break;case 2:It=[12,11];break;case 3:It=[10,11];break;case 4:It=[16,11];break;case 5:It=[40,33];break;case 6:It=[24,11];break;case 7:It=[20,11];break;case 8:It=[32,11];break;case 9:It=[80,33];break;case 10:It=[18,11];break;case 11:It=[15,11];break;case 12:It=[64,33];break;case 13:It=[160,99];break;case 14:It=[4,3];break;case 15:It=[3,2];break;case 16:It=[2,1];break;case 255:{It=[f()<<8|f(),f()<<8|f()];break}}return{width:Math.ceil((mt+1)*16-n*2-r*2),height:(2-hn)*(Ut+1)*16-(hn?2:4)*(i+s),pixelRatio:It}}}class uo extends oo{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 f,p;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 S;(S=s)!=null&&S.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,(f=s)!=null&&f.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,Ae(u.data,2,n.pts,t.samples);break;case 32:l=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=m(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 D in C.params)e.params[D]=C.params[D]}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 D in C)e.params[D]=C[D]}this.pushParameterSet(e.pps,u.data,e.vps)}break;case 35:l=!0,e.audFound=!0,(p=s)!=null&&p.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 zs(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 zs(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(),f=t.readUByte(),p=t.readUByte(),S=t.readUByte(),C=t.readUByte(),D=t.readUByte(),te=t.readUByte(),Y=t.readUByte(),be=t.readUByte(),Xe=[],Me=[];for(let Br=0;Br<n;Br++)Xe.push(t.readBoolean()),Me.push(t.readBoolean());if(n>0)for(let Br=n;Br<8;Br++)t.readBits(2);for(let Br=0;Br<n;Br++)Xe[Br]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),Me[Br]&&t.readUByte();t.readUEG();const mt=t.readUEG();mt==3&&t.skipBits(1);const Ut=t.readUEG(),hn=t.readUEG(),It=t.readBoolean();let Jt=0,en=0,xt=0,An=0;It&&(Jt+=t.readUEG(),en+=t.readUEG(),xt+=t.readUEG(),An+=t.readUEG());const jn=t.readUEG(),gr=t.readUEG(),cr=t.readUEG(),ur=t.readBoolean();for(let Br=ur?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 gi=0;gi<4;gi++)for(let Ni=0;Ni<(gi===3?2:6);Ni++)if(!t.readBoolean())t.readUEG();else{const Ki=Math.min(64,1<<4+(gi<<1));gi>1&&t.readEG();for(let Ns=0;Ns<Ki;Ns++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const Gn=t.readUEG();let Tr=0;for(let Br=0;Br<Gn;Br++){let gi=!1;if(Br!==0&&(gi=t.readBoolean()),gi){Br===Gn&&t.readUEG(),t.readBoolean(),t.readUEG();let Ni=0;for(let Es=0;Es<=Tr;Es++){const Ki=t.readBoolean();let Ns=!1;Ki||(Ns=t.readBoolean()),(Ki||Ns)&&Ni++}Tr=Ni}else{const Ni=t.readUEG(),Es=t.readUEG();Tr=Ni+Es;for(let Ki=0;Ki<Ni;Ki++)t.readUEG(),t.readBoolean();for(let Ki=0;Ki<Es;Ki++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const Br=t.readUEG();for(let gi=0;gi<Br;gi++){for(let Ni=0;Ni<cr+4;Ni++)t.readBits(1);t.readBits(1)}}let Xn=0,Kn=1,kr=1,Nr=!0,Zr=1,Or=0;t.readBoolean(),t.readBoolean();let ti=!1;if(t.readBoolean()){if(t.readBoolean()){const bs=t.readUByte(),dl=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],va=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];bs>0&&bs<16?(Kn=dl[bs-1],kr=va[bs-1]):bs===255&&(Kn=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(),ti=t.readBoolean(),ti&&(Jt+=t.readUEG(),en+=t.readUEG(),xt+=t.readUEG(),An+=t.readUEG()),t.readBoolean()&&(Zr=t.readBits(32),Or=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const va=t.readBoolean(),fl=t.readBoolean();let Ys=!1;(va||fl)&&(Ys=t.readBoolean(),Ys&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),Ys&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let hl=0;hl<=n;hl++){Nr=t.readBoolean();const ed=Nr||t.readBoolean();let pl=!1;ed?t.readEG():pl=t.readBoolean();const ml=pl?1:t.readUEG()+1;if(va)for(let Xs=0;Xs<ml;Xs++)t.readUEG(),t.readUEG(),Ys&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(fl)for(let Xs=0;Xs<ml;Xs++)t.readUEG(),t.readUEG(),Ys&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),Xn=t.readUEG())}let mi=Ut,Ci=hn;if(It||ti){let Br=1,gi=1;mt===1?Br=gi=2:mt==2&&(Br=2),mi=Ut-Br*en-Br*Jt,Ci=hn-gi*An-gi*xt}const _s=r?["A","B","C"][r]:"",$c=l<<24|c<<16|u<<8|f;let Qa=0;for(let Br=0;Br<32;Br++)Qa=(Qa|($c>>Br&1)<<31-Br)>>>0;let Ja=Qa.toString(16);return s===1&&Ja==="2"&&(Ja="6"),{codecString:`hvc1.${_s}${s}.${Ja}.${i?"H":"L"}${be}.B0`,params:{general_tier_flag:i,general_profile_idc:s,general_profile_space:r,general_profile_compatibility_flags:[l,c,u,f],general_constraint_indicator_flags:[p,S,C,D,te,Y],general_level_idc:be,bit_depth:jn+8,bit_depth_luma_minus8:jn,bit_depth_chroma_minus8:gr,min_spatial_segmentation_idc:Xn,chroma_format_idc:mt,frame_rate:{fixed:Nr,fps:Or/Zr}},width:mi,height:Ci,pixelRatio:[Kn,kr]}}readPPS(e){const t=new zs(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 fi=188;class us{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=us.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(fi*5,t-fi)+1,r=0;for(;r<n;){let i=!1,s=-1,l=0;for(let c=r;c<t;c+=fi)if(e[c]===71&&(t-c===fi||e[c+fi]===71)){if(l++,s===-1&&(s=c,s!==0&&(n=Math.min(s+fi*99,e.length-fi)+1)),i||(i=xa(e,c)===0),i&&l>1&&(s===0&&l>2||c+fi>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:Yt[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=us.createTrack("video"),this._videoTrack.duration=r,this._audioTrack=us.createTrack("audio",r),this._id3Track=us.createTrack("id3"),this._txtTrack=us.createTrack("text"),this._audioTrack.segmentCodec="aac",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 f=s.pid,p=s.pesData,S=l.pid,C=c.pid,D=l.pesData,te=c.pesData,Y=null,be=this.pmtParsed,Xe=this._pmtId,Me=e.length;if(this.remainderData&&(e=Ye(this.remainderData,e),Me=e.length,this.remainderData=null),Me<fi&&!r)return this.remainderData=e,{audioTrack:l,videoTrack:s,id3Track:c,textTrack:u};const mt=Math.max(0,us.syncOffset(e));Me-=(Me-mt)%fi,Me<e.byteLength&&!r&&(this.remainderData=new Uint8Array(e.buffer,Me,e.buffer.byteLength-Me));let Ut=0;for(let It=mt;It<Me;It+=fi)if(e[It]===71){const Jt=!!(e[It+1]&64),en=xa(e,It),xt=(e[It+3]&48)>>4;let An;if(xt>1){if(An=It+5+e[It+4],An===It+fi)continue}else An=It+4;switch(en){case f:if(Jt){if(p&&(i=Cs(p,this.logger))){if(this.videoParser===null)switch(s.segmentCodec){case"avc":this.videoParser=new lo;break;case"hevc":this.videoParser=new uo;break}this.videoParser!==null&&this.videoParser.parsePES(s,u,i,!1)}p={data:[],size:0}}p&&(p.data.push(e.subarray(An,It+fi)),p.size+=It+fi-An);break;case S:if(Jt){if(D&&(i=Cs(D,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}D={data:[],size:0}}D&&(D.data.push(e.subarray(An,It+fi)),D.size+=It+fi-An);break;case C:Jt&&(te&&(i=Cs(te,this.logger))&&this.parseID3PES(c,i),te={data:[],size:0}),te&&(te.data.push(e.subarray(An,It+fi)),te.size+=It+fi-An);break;case 0:Jt&&(An+=e[An]+1),Xe=this._pmtId=Pl(e,An);break;case Xe:{Jt&&(An+=e[An]+1);const jn=Nl(e,An,this.typeSupported,n,this.observer,this.logger);f=jn.videoPid,f>0&&(s.pid=f,s.segmentCodec=jn.segmentVideoCodec),S=jn.audioPid,S>0&&(l.pid=S,l.segmentCodec=jn.segmentAudioCodec),C=jn.id3Pid,C>0&&(c.pid=C),Y!==null&&!be&&(this.logger.warn(`MPEG-TS PMT found at ${It} after unknown PID '${Y}'. Backtracking to sync byte @${mt} to parse all TS packets.`),Y=null,It=mt-188),be=this.pmtParsed=!0;break}case 17:case 8191:break;default:Y=en;break}}else Ut++;Ut>0&&Sa(this.observer,new Error(`Found ${Ut} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=p,l.pesData=D,c.pesData=te;const hn={audioTrack:l,videoTrack:s,id3Track:c,textTrack:u};return r&&this.extractRemainingSamples(hn),hn}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=Cs(s,this.logger))){if(this.videoParser===null)switch(n.segmentCodec){case"avc":this.videoParser=new lo;break;case"hevc":this.videoParser=new uo;break}this.videoParser!==null&&(this.videoParser.parsePES(n,i,u,!0),n.pesData=null)}else n.pesData=s;if(l&&(u=Cs(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=Cs(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 kl(this.observer,this.config,t);return this.decrypt(r,i)}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 p=r.missing,S=r.sample.unit.byteLength;if(p===-1)i=Ye(r.sample.unit,i);else{const C=S-p;r.sample.unit.set(i.subarray(0,p),C),e.samples.push(r.sample),n=r.missing}}let s,l;for(s=n,l=i.length;s<l-1&&!gs(i,s);s++);if(s!==n){let p;const S=s<l-1;if(S?p=`AAC PES did not start with ADTS header,offset:${s}`:p="No ADTS header found in AAC PES",Sa(this.observer,new Error(p),S,this.logger),!S)return}na(e,this.observer,i,s,this.audioCodec);let c;if(t.pts!==void 0)c=t.pts;else if(r){const p=Fs(e.samplerate);c=r.sample.pts+p}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let u=0,f;for(;s<l;)if(f=Us(e,i,s,c,u),s+=f.length,f.missing){this.aacOverFlow=f;break}else for(u++;s<l-1&&!gs(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(no(n,s)){const c=eo(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=so(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=m({},t,{type:this._videoTrack?wi.emsg:wi.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(n)}}function xa(a,e){return((a[e+1]&31)<<8)+a[e+2]}function Pl(a,e){return(a[e+10]&31)<<8|a[e+11]}function Nl(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 f=xa(a,e),p=(a[e+3]&15)<<8|a[e+4];switch(a[e]){case 207:if(!n){Aa("ADTS AAC",i);break}case 15:s.audioPid===-1&&(s.audioPid=f);break;case 21:s.id3Pid===-1&&(s.id3Pid=f);break;case 219:if(!n){Aa("H.264",i);break}case 27:s.videoPid===-1&&(s.videoPid=f);break;case 3:case 4:!t.mpeg&&!t.mp3?i.log("MPEG audio found, not supported in this browser"):s.audioPid===-1&&(s.audioPid=f,s.segmentAudioCodec="mp3");break;case 193:if(!n){Aa("AC-3",i);break}case 129:t.ac3?s.audioPid===-1&&(s.audioPid=f,s.segmentAudioCodec="ac3"):i.log("AC-3 audio found, not supported in this browser");break;case 6:if(s.audioPid===-1&&p>0){let S=e+5,C=p;for(;C>2;){switch(a[S]){case 106:t.ac3!==!0?i.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=f,s.segmentAudioCodec="ac3");break}const te=a[S+1]+2;S+=te,C-=te}}break;case 194:case 135:return Sa(r,new Error("Unsupported EC-3 in M2TS found"),void 0,i),s;case 36:s.videoPid===-1&&(s.videoPid=f,s.segmentVideoCodec="hevc",i.log("HEVC in M2TS found"));break}e+=p+5}return s}function Sa(a,e,t,n){n.warn(`parsing error: ${e.message}`),a.emit(d.ERROR,d.ERROR,{type:oe.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Aa(a,e){e.log(`${a} with AES-128-CBC encryption found in unencrypted stream`)}function Cs(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 f=n[7];f&192&&(s=(n[9]&14)*536870912+(n[10]&255)*4194304+(n[11]&254)*16384+(n[12]&255)*128+(n[13]&254)/2,f&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 p=i+9;if(a.size<=p)return null;a.size-=p;const S=new Uint8Array(a.size);for(let C=0,D=c.length;C<D;C++){n=c[C];let te=n.byteLength;if(p)if(p>te){p-=te;continue}else n=n.subarray(p),te-=p,p=0;S.set(n,t),t+=te}return r&&(r-=i+3),{data:S,pts:s,dts:l,len:r}}return null}class Ml{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 cs=Math.pow(2,32)-1;class Ht{static init(){Ht.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 Ht.types)Ht.types.hasOwnProperty(e)&&(Ht.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]);Ht.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]);Ht.STTS=Ht.STSC=Ht.STCO=i,Ht.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ht.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Ht.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ht.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]);Ht.FTYP=Ht.box(Ht.types.ftyp,s,c,s,l),Ht.DINF=Ht.box(Ht.types.dinf,Ht.box(Ht.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 Ht.box(Ht.types.hdlr,Ht.HDLR_TYPES[e])}static mdat(e){return Ht.box(Ht.types.mdat,e)}static mdhd(e,t){t*=e;const n=Math.floor(t/(cs+1)),r=Math.floor(t%(cs+1));return Ht.box(Ht.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 Ht.box(Ht.types.mdia,Ht.mdhd(e.timescale||0,e.duration||0),Ht.hdlr(e.type),Ht.minf(e))}static mfhd(e){return Ht.box(Ht.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"?Ht.box(Ht.types.minf,Ht.box(Ht.types.smhd,Ht.SMHD),Ht.DINF,Ht.stbl(e)):Ht.box(Ht.types.minf,Ht.box(Ht.types.vmhd,Ht.VMHD),Ht.DINF,Ht.stbl(e))}static moof(e,t,n){return Ht.box(Ht.types.moof,Ht.mfhd(e),Ht.traf(n,t))}static moov(e){let t=e.length;const n=[];for(;t--;)n[t]=Ht.trak(e[t]);return Ht.box.apply(null,[Ht.types.moov,Ht.mvhd(e[0].timescale||0,e[0].duration||0)].concat(n).concat(Ht.mvex(e)))}static mvex(e){let t=e.length;const n=[];for(;t--;)n[t]=Ht.trex(e[t]);return Ht.box.apply(null,[Ht.types.mvex,...n])}static mvhd(e,t){t*=e;const n=Math.floor(t/(cs+1)),r=Math.floor(t%(cs+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 Ht.box(Ht.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 Ht.box(Ht.types.sdtp,n)}static stbl(e){return Ht.box(Ht.types.stbl,Ht.stsd(e),Ht.box(Ht.types.stts,Ht.STTS),Ht.box(Ht.types.stsc,Ht.STSC),Ht.box(Ht.types.stsz,Ht.STSZ),Ht.box(Ht.types.stco,Ht.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=Ht.box(Ht.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,f=e.pixelRatio[0],p=e.pixelRatio[1];return Ht.box(Ht.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,Ht.box(Ht.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Ht.box(Ht.types.pasp,new Uint8Array([f>>24,f>>16&255,f>>8&255,f&255,p>>24,p>>16&255,p>>8&255,p&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 Ht.box(Ht.types.mp4a,Ht.audioStsd(e),Ht.box(Ht.types.esds,Ht.esds(e)))}static mp3(e){return Ht.box(Ht.types[".mp3"],Ht.audioStsd(e))}static ac3(e){return Ht.box(Ht.types["ac-3"],Ht.audioStsd(e),Ht.box(Ht.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if(e.type==="audio"){if(t==="aac")return Ht.box(Ht.types.stsd,Ht.STSD,Ht.mp4a(e));if(t==="ac3"&&e.config)return Ht.box(Ht.types.stsd,Ht.STSD,Ht.ac3(e));if(t==="mp3"&&e.codec==="mp3")return Ht.box(Ht.types.stsd,Ht.STSD,Ht.mp3(e))}else if(e.pps&&e.sps){if(t==="avc")return Ht.box(Ht.types.stsd,Ht.STSD,Ht.avc1(e));if(t==="hevc"&&e.vps)return Ht.box(Ht.types.stsd,Ht.STSD,Ht.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/(cs+1)),l=Math.floor(n%(cs+1));return Ht.box(Ht.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=Ht.sdtp(e),r=e.id,i=Math.floor(t/(cs+1)),s=Math.floor(t%(cs+1));return Ht.box(Ht.types.traf,Ht.box(Ht.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,r&255])),Ht.box(Ht.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])),Ht.trun(e,n.length+16+20+8+16+8+8),n)}static trak(e){return e.duration=e.duration||4294967295,Ht.box(Ht.types.trak,Ht.tkhd(e),Ht.mdia(e))}static trex(e){const t=e.id;return Ht.box(Ht.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,f,p,S;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,f=c.size,p=c.flags,S=c.cts,s.set([u>>>24&255,u>>>16&255,u>>>8&255,u&255,f>>>24&255,f>>>16&255,f>>>8&255,f&255,p.isLeading<<2|p.dependsOn,p.isDependedOn<<6|p.hasRedundancy<<4|p.paddingValue<<1|p.isNonSync,p.degradPrio&61440,p.degradPrio&15,S>>>24&255,S>>>16&255,S>>>8&255,S&255],12+16*l);return Ht.box(Ht.types.trun,s)}static initSegment(e){Ht.types||Ht.init();const t=Ht.moov(e);return Ye(Ht.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 D=0;D<n.length;D+=1){s+=3;for(let te=0;te<n[D].length;te+=1)s+=2+n[D][te].length}const l=new Uint8Array(s);l.set(i,0),s=i.length;const c=n.length-1;for(let D=0;D<n.length;D+=1){l.set(new Uint8Array([32+D|(D===c?128:0),0,n[D].length]),s),s+=3;for(let te=0;te<n[D].length;te+=1)l.set(new Uint8Array([n[D][te].length>>8,n[D][te].length&255]),s),s+=2,l.set(n[D][te],s),s+=n[D][te].length}const u=Ht.box(Ht.types.hvcC,l),f=e.width,p=e.height,S=e.pixelRatio[0],C=e.pixelRatio[1];return Ht.box(Ht.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,f>>8&255,f&255,p>>8&255,p&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,Ht.box(Ht.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Ht.box(Ht.types.pasp,new Uint8Array([S>>24,S>>16&255,S>>8&255,S&255,C>>24,C>>16&255,C>>8&255,C&255])))}}Ht.types=void 0,Ht.HDLR_TYPES=void 0,Ht.STTS=void 0,Ht.STSC=void 0,Ht.STCO=void 0,Ht.STSZ=void 0,Ht.VMHD=void 0,Ht.SMHD=void 0,Ht.STSD=void 0,Ht.FTYP=void 0,Ht.DINF=void 0;const co=9e4;function wa(a,e,t=1,n=!1){const r=a*e*t;return n?Math.round(r):r}function Ol(a,e,t=1,n=!1){return wa(a,e,1/t,n)}function js(a,e=!1){return wa(a,1e3,1/co,e)}function Fl(a,e=1){return wa(a,co,1/e)}const Bl=10*1e3,Ul=1024,Zl=1152,Kl=1536;let Ds=null,Ta=null;function fo(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 sa extends W{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,Ds===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);Ds=s?parseInt(s[1]):0}if(Ta===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);Ta=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,f,p,S,C,D,te=i,Y=i;const be=e.pid>-1,Xe=t.pid>-1,Me=t.samples.length,mt=e.samples.length>0,Ut=l&&Me>0||Me>1;if((!be||mt)&&(!Xe||Ut)||this.ISGenerated||l){if(this.ISGenerated){var It,Jt,en,xt;const cr=this.videoTrackConfig;(cr&&(t.width!==cr.width||t.height!==cr.height||((It=t.pixelRatio)==null?void 0:It[0])!==((Jt=cr.pixelRatio)==null?void 0:Jt[0])||((en=t.pixelRatio)==null?void 0:en[1])!==((xt=cr.pixelRatio)==null?void 0:xt[1]))||!cr&&Ut||this.nextAudioTs===null&&mt)&&this.resetInitSegment()}this.ISGenerated||(p=this.generateIS(e,t,i,s));const An=this.isVideoContiguous;let jn=-1,gr;if(Ut&&(jn=zl(t.samples),!An&&this.config.forceKeyFrameOnDiscontinuity))if(D=!0,jn>0){this.warn(`Dropped ${jn} out of ${Me} video samples due to a missing keyframe`);const cr=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(jn),t.dropped+=jn,Y+=(t.samples[0].pts-cr)/t.inputTimeScale,gr=Y}else jn===-1&&(this.warn(`No keyframe found out of ${Me} video samples`),D=!1);if(this.ISGenerated){if(mt&&Ut){const cr=this.getVideoStartPts(t.samples),$n=(Ii(e.samples[0].pts,cr)-cr)/t.inputTimeScale;te+=Math.max(0,$n),Y+=Math.max(0,-$n)}if(mt){if(e.samplerate||(this.warn("regenerate InitSegment as audio detected"),p=this.generateIS(e,t,i,s)),f=this.remuxAudio(e,te,this.isAudioContiguous,s,Xe||Ut||c===re.AUDIO?Y:void 0),Ut){const cr=f?f.endPTS-f.startPTS:0;t.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),p=this.generateIS(e,t,i,s)),u=this.remuxVideo(t,Y,An,cr)}}else Ut&&(u=this.remuxVideo(t,Y,An,0));u&&(u.firstKeyFrame=jn,u.independent=jn!==-1,u.firstKeyFramePTS=gr)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(n.samples.length&&(C=ho(n,i,this._initPTS,this._initDTS)),r.samples.length&&(S=po(r,i,this._initPTS))),{audio:f,video:u,initSegment:p,independent:D,text:S,id3:C}}generateIS(e,t,n,r){const i=e.samples,s=t.samples,l=this.typeSupported,c={},u=this._initPTS;let f=!u||r,p="audio/mp4",S,C,D,te;if(f&&(S=C=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":l.mpeg?(p="audio/mpeg",e.codec=""):l.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}c.audio={id:"audio",container:p,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&l.mpeg?new Uint8Array(0):Ht.initSegment([e]),metadata:{channelCount:e.channelCount}},f&&(te=e.id,D=e.inputTimeScale,!u||D!==u.timescale?S=C=i[0].pts-Math.round(D*n):f=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,c.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:Ht.initSegment([t]),metadata:{width:t.width,height:t.height}},f)if(te=t.id,D=t.inputTimeScale,!u||D!==u.timescale){const Y=this.getVideoStartPts(s),be=Math.round(D*n);C=Math.min(C,Ii(s[0].dts,Y)-be),S=Math.min(S,Y-be)}else f=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(c).length)return this.ISGenerated=!0,f?(this._initPTS={baseTime:S,timescale:D},this._initDTS={baseTime:C,timescale:D}):S=D=void 0,{tracks:c,initPTS:S,timescale:D,trackId:te}}remuxVideo(e,t,n,r){const i=e.inputTimeScale,s=e.samples,l=[],c=s.length,u=this._initPTS,f=u.baseTime*i/u.timescale;let p=this.nextVideoTs,S=8,C=this.videoSampleDuration,D,te,Y=Number.POSITIVE_INFINITY,be=Number.NEGATIVE_INFINITY,Xe=!1;if(!n||p===null){const Xn=f+t*i,Kn=s[0].pts-Ii(s[0].dts,s[0].pts);Ds&&p!==null&&Math.abs(Xn-Kn-(p+f))<15e3?n=!0:p=Xn-Kn-f}const Me=p+f;for(let Xn=0;Xn<c;Xn++){const Kn=s[Xn];Kn.pts=Ii(Kn.pts,Me),Kn.dts=Ii(Kn.dts,Me),Kn.dts<s[Xn>0?Xn-1:Xn].dts&&(Xe=!0)}Xe&&s.sort(function(Xn,Kn){const kr=Xn.dts-Kn.dts,Nr=Xn.pts-Kn.pts;return kr||Nr}),D=s[0].dts,te=s[s.length-1].dts;const mt=te-D,Ut=mt?Math.round(mt/(c-1)):C||e.inputTimeScale/30;if(n){const Xn=D-Me,Kn=Xn>Ut,kr=Xn<-1;if((Kn||kr)&&(Kn?this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${js(Xn,!0)} ms (${Xn}dts) hole between fragments detected at ${t.toFixed(3)}`):this.warn(`${(e.segmentCodec||"").toUpperCase()}: ${js(-Xn,!0)} ms (${Xn}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!kr||Me>=s[0].pts||Ds)){D=Me;const Nr=s[0].pts-Xn;if(Kn)s[0].dts=D,s[0].pts=Nr;else{let Zr=!0;for(let Or=0;Or<s.length&&!(s[Or].dts>Nr&&Zr);Or++){const ti=s[Or].pts;if(s[Or].dts-=Xn,s[Or].pts-=Xn,Or<s.length-1){const Ti=s[Or+1].pts,mi=s[Or].pts,Ci=Ti<=mi,_s=Ti<=ti;Zr=Ci==_s}}}this.log(`Video: Initial PTS/DTS adjusted: ${js(Nr,!0)}/${js(D,!0)}, delta: ${js(Xn,!0)} ms`)}}D=Math.max(0,D);let hn=0,It=0,Jt=D;for(let Xn=0;Xn<c;Xn++){const Kn=s[Xn],kr=Kn.units,Nr=kr.length;let Zr=0;for(let Or=0;Or<Nr;Or++)Zr+=kr[Or].data.length;It+=Zr,hn+=Nr,Kn.length=Zr,Kn.dts<Jt?(Kn.dts=Jt,Jt+=Ut/4|0||1):Jt=Kn.dts,Y=Math.min(Kn.pts,Y),be=Math.max(Kn.pts,be)}te=s[c-1].dts;const en=It+4*hn+8;let xt;try{xt=new Uint8Array(en)}catch(Xn){this.observer.emit(d.ERROR,d.ERROR,{type:oe.MUX_ERROR,details:B.REMUX_ALLOC_ERROR,fatal:!1,error:Xn,bytes:en,reason:`fail allocating video mdat ${en}`});return}const An=new DataView(xt.buffer);An.setUint32(0,en),xt.set(Ht.types.mdat,4);let jn=!1,gr=Number.POSITIVE_INFINITY,cr=Number.POSITIVE_INFINITY,ur=Number.NEGATIVE_INFINITY,$n=Number.NEGATIVE_INFINITY;for(let Xn=0;Xn<c;Xn++){const Kn=s[Xn],kr=Kn.units;let Nr=0;for(let ti=0,Ti=kr.length;ti<Ti;ti++){const mi=kr[ti],Ci=mi.data,_s=mi.data.byteLength;An.setUint32(S,_s),S+=4,xt.set(Ci,S),S+=_s,Nr+=4+_s}let Zr;if(Xn<c-1)C=s[Xn+1].dts-Kn.dts,Zr=s[Xn+1].pts-Kn.pts;else{const ti=this.config,Ti=Xn>0?Kn.dts-s[Xn-1].dts:Ut;if(Zr=Xn>0?Kn.pts-s[Xn-1].pts:Ut,ti.stretchShortVideoTrack&&this.nextAudioTs!==null){const mi=Math.floor(ti.maxBufferHole*i),Ci=(r?Y+r*i:this.nextAudioTs+f)-Kn.pts;Ci>mi?(C=Ci-Ti,C<0?C=Ti:jn=!0,this.log(`It is approximately ${Ci/90} ms to the next segment; using duration ${C/90} ms for the last video frame.`)):C=Ti}else C=Ti}const Or=Math.round(Kn.pts-Kn.dts);gr=Math.min(gr,C),ur=Math.max(ur,C),cr=Math.min(cr,Zr),$n=Math.max($n,Zr),l.push(fo(Kn.key,C,Nr,Or))}if(l.length){if(Ds){if(Ds<70){const Xn=l[0].flags;Xn.dependsOn=2,Xn.isNonSync=0}}else if(Ta&&$n-cr<ur-gr&&Ut/ur<.025&&l[0].cts===0){this.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let Xn=D;for(let Kn=0,kr=l.length;Kn<kr;Kn++){const Nr=Xn+l[Kn].duration,Zr=Xn+l[Kn].cts;if(Kn<kr-1){const Or=Nr+l[Kn+1].cts;l[Kn].duration=Or-Zr}else l[Kn].duration=Kn?l[Kn-1].duration:Ut;l[Kn].cts=0,Xn=Nr}}}C=jn||!C?Ut:C;const Er=te+C;this.nextVideoTs=p=Er-f,this.videoSampleDuration=C,this.isVideoContiguous=!0;const br={data1:Ht.moof(e.sequenceNumber++,D,m(e,{samples:l})),data2:xt,startPTS:(Y-f)/i,endPTS:(be+C-f)/i,startDTS:(D-f)/i,endDTS:p/i,type:"video",hasAudio:!1,hasVideo:!0,nb:l.length,dropped:e.dropped};return e.samples=[],e.dropped=0,br}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return Zl;case"ac3":return Kl;default:return Ul}}remuxAudio(e,t,n,r,i){const s=e.inputTimeScale,l=e.samplerate?e.samplerate:s,c=s/l,u=this.getSamplesPerFrame(e),f=u*c,p=this._initPTS,S=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,C=[],D=i!==void 0;let te=e.samples,Y=S?0:8,be=this.nextAudioTs||-1;const Xe=p.baseTime*s/p.timescale,Me=Xe+t*s;if(this.isAudioContiguous=n=n||te.length&&be>0&&(r&&Math.abs(Me-(be+Xe))<9e3||Math.abs(Ii(te[0].pts,Me)-(be+Xe))<20*f),te.forEach(function($n){$n.pts=Ii($n.pts,Me)}),!n||be<0){if(te=te.filter($n=>$n.pts>=0),!te.length)return;i===0?be=0:r&&!D?be=Math.max(0,Me-Xe):be=te[0].pts-Xe}if(e.segmentCodec==="aac"){const $n=this.config.maxAudioFramesDrift;for(let Er=0,Gn=be+Xe;Er<te.length;Er++){const Tr=te[Er],br=Tr.pts,Xn=br-Gn,Kn=Math.abs(1e3*Xn/s);if(Xn<=-$n*f&&D)Er===0&&(this.warn(`Audio frame @ ${(br/s).toFixed(3)}s overlaps marker by ${Math.round(1e3*Xn/s)} ms.`),this.nextAudioTs=be=br-Xe,Gn=br);else if(Xn>=$n*f&&Kn<Bl&&D){let kr=Math.round(Xn/f);for(Gn=br-kr*f;Gn<0&&kr&&f;)kr--,Gn+=f;Er===0&&(this.nextAudioTs=be=Gn-Xe),this.warn(`Injecting ${kr} audio frames @ ${((Gn-Xe)/s).toFixed(3)}s due to ${Math.round(1e3*Xn/s)} ms gap.`);for(let Nr=0;Nr<kr;Nr++){let Zr=Ml.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);Zr||(this.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),Zr=Tr.unit.subarray()),te.splice(Er,0,{unit:Zr,pts:Gn}),Gn+=f,Er++}}Tr.pts=Gn,Gn+=f}}let mt=null,Ut=null,hn,It=0,Jt=te.length;for(;Jt--;)It+=te[Jt].unit.byteLength;for(let $n=0,Er=te.length;$n<Er;$n++){const Gn=te[$n],Tr=Gn.unit;let br=Gn.pts;if(Ut!==null){const Kn=C[$n-1];Kn.duration=Math.round((br-Ut)/c)}else if(n&&e.segmentCodec==="aac"&&(br=be+Xe),mt=br,It>0){It+=Y;try{hn=new Uint8Array(It)}catch(Kn){this.observer.emit(d.ERROR,d.ERROR,{type:oe.MUX_ERROR,details:B.REMUX_ALLOC_ERROR,fatal:!1,error:Kn,bytes:It,reason:`fail allocating audio mdat ${It}`});return}S||(new DataView(hn.buffer).setUint32(0,It),hn.set(Ht.types.mdat,4))}else return;hn.set(Tr,Y);const Xn=Tr.byteLength;Y+=Xn,C.push(fo(!0,u,Xn,0)),Ut=br}const en=C.length;if(!en)return;const xt=C[C.length-1];be=Ut-Xe,this.nextAudioTs=be+c*xt.duration;const An=S?new Uint8Array(0):Ht.moof(e.sequenceNumber++,mt/c,m({},e,{samples:C}));e.samples=[];const jn=(mt-Xe)/s,gr=be/s,ur={data1:An,data2:hn,startPTS:jn,endPTS:gr,startDTS:jn,endDTS:gr,type:"audio",hasAudio:!0,hasVideo:!1,nb:en};return this.isAudioContiguous=!0,ur}}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 zl(a){for(let e=0;e<a.length;e++)if(a[e].key)return e;return-1}function ho(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 po(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 jl extends W{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(he(e,r)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:n}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const r=this.initData=Pe(e);r.audio&&(t=mo(r.audio,M.AUDIO,this)),r.video&&(n=mo(r.video,M.VIDEO,this));const i={};r.audio&&r.video?i.audiovideo={container:"video/mp4",codec:t+","+n,supplemental:r.video.supplemental,initSegment:e,id:"main"}:r.audio?i.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:r.video?i.video={container:"video/mp4",codec:n,supplemental:r.video.supplemental,initSegment:e,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=i}remux(e,t,n,r,i,s){var l,c;let{initPTS:u,lastEndTime:f}=this;const p={audio:void 0,video:void 0,text:r,id3:n,initSegment:void 0};h(f)||(f=this.lastEndTime=i||0);const S=t.samples;if(!(S!=null&&S.length))return p;const C={initPTS:void 0,timescale:void 0,trackId:void 0};let D=this.initData;if((l=D)!=null&&l.length||(this.generateInitSegment(S),D=this.initData),!((c=D)!=null&&c.length))return this.warn("Failed to generate initSegment."),p;this.emitInitSegment&&(C.tracks=this.initTracks,this.emitInitSegment=!1);const te=Re(S,D,this),Y=D.audio?te[D.audio.id]:null,be=D.video?te[D.video.id]:null,Xe=aa(be,1/0),Me=aa(Y,1/0),mt=aa(be,0,!0),Ut=aa(Y,0,!0);let hn,It=i,Jt=0;if(Y&&(!be||!u&&Me<Xe||u&&u.trackId===D.audio.id)?(C.trackId=D.audio.id,hn=Y,Jt=Ut-Me):be&&(C.trackId=D.video.id,hn=be,Jt=mt-Xe),hn){const $n=hn.timescale;It=hn.start/$n,C.initPTS=hn.start-i*$n,C.timescale=$n,u||(this.initPTS=u={baseTime:C.initPTS,timescale:$n,trackId:C.trackId})}(s||!u)&&(Gl(u,It,i,Jt)||C.timescale!==u.timescale)&&(C.initPTS=It-i,C.timescale=1,u&&u.timescale===1&&this.warn(`Adjusting initPTS @${i} from ${u.baseTime/u.timescale} to ${C.initPTS}`),this.initPTS=u={baseTime:C.initPTS,timescale:1});const en=e?It-u.baseTime/u.timescale:f,xt=en+Jt;Jt>0?this.lastEndTime=xt:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const An=!!D.audio,jn=!!D.video;let gr="";An&&(gr+="audio"),jn&&(gr+="video");const cr={data1:S,startPTS:en,startDTS:en,endPTS:xt,endDTS:xt,type:gr,hasAudio:An,hasVideo:jn,nb:1,dropped:0};p.audio=An&&!jn?cr:void 0,p.video=jn?cr:void 0;const ur=be==null?void 0:be.sampleCount;if(ur){const $n=be.keyFrameIndex,Er=$n!==-1;cr.nb=ur,cr.dropped=$n===0||this.isVideoContiguous?0:Er?$n:ur,cr.independent=Er,cr.firstKeyFrame=$n,Er&&be.keyFrameStart&&(cr.firstKeyFramePTS=(be.keyFrameStart-u.baseTime)/u.timescale),this.isVideoContiguous||(p.independent=Er),this.isVideoContiguous||(this.isVideoContiguous=Er),cr.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${$n}/${ur} dropped: ${cr.dropped} start: ${cr.firstKeyFramePTS||"NA"}`)}return p.initSegment=C,p.id3=ho(n,i,u,u),r.samples.length&&(p.text=po(r,i,u)),p}}function aa(a,e,t=!1){return(a==null?void 0:a.start)!==void 0?(a.start+(t?a.duration:0))/a.timescale:e}function Gl(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 mo(a,e,t){const n=a==null?void 0:a.codec;return n&&n.length>4?n:e===M.AUDIO?n==="ec-3"||n==="ac-3"||n==="alac"?n:n==="fLaC"||n==="Opus"?fe(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 $i;try{$i=self.performance.now.bind(self.performance)}catch(a){$i=Date.now}const oa=[{demux:Il,remux:jl},{demux:us,remux:sa},{demux:Cl,remux:sa},{demux:Rl,remux:sa}];oa.splice(2,0,{demux:Dl,remux:sa});class go{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=$i();let s=new Uint8Array(e);const{currentTransmuxState:l,transmuxConfig:c}=this;r&&(this.currentTransmuxState=r);const{contiguous:u,discontinuity:f,trackSwitch:p,accurateTimeOffset:S,timeOffset:C,initSegmentChange:D}=r||l,{audioCodec:te,videoCodec:Y,defaultInitPts:be,duration:Xe,initSegmentData:Me}=c,mt=Wl(s,t);if(mt&&Kr(mt.method)){const Jt=this.getDecrypter(),en=Gr(mt.method);if(Jt.isSync()){let xt=Jt.softwareDecrypt(s,mt.key.buffer,mt.iv.buffer,en);if(n.part>-1){const jn=Jt.flush();xt=jn&&jn.buffer}if(!xt)return i.executeEnd=$i(),Ca(n);s=new Uint8Array(xt)}else return this.asyncResult=!0,this.decryptionPromise=Jt.webCryptoDecrypt(s,mt.key.buffer,mt.iv.buffer,en).then(xt=>{const An=this.push(xt,null,n);return this.decryptionPromise=null,An}),this.decryptionPromise}const Ut=this.needsProbing(f,p);if(Ut){const Jt=this.configureTransmuxer(s);if(Jt)return this.logger.warn(`[transmuxer] ${Jt.message}`),this.observer.emit(d.ERROR,d.ERROR,{type:oe.MEDIA_ERROR,details:B.FRAG_PARSING_ERROR,fatal:!1,error:Jt,reason:Jt.message}),i.executeEnd=$i(),Ca(n)}(f||p||D||Ut)&&this.resetInitSegment(Me,te,Y,Xe,t),(f||D||Ut)&&this.resetInitialTimestamp(be),u||this.resetContiguity();const hn=this.transmux(s,mt,C,S,n);this.asyncResult=Gs(hn);const It=this.currentTransmuxState;return It.contiguous=!0,It.discontinuity=!1,It.trackSwitch=!1,i.executeEnd=$i(),hn}flush(e){const t=e.transmuxing;t.executeStart=$i();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 p=n.flush();p&&s.push(this.push(p.buffer,null,e))}const{demuxer:c,remuxer:u}=this;if(!c||!u){t.executeEnd=$i();const p=[Ca(e)];return this.asyncResult?Promise.resolve(p):p}const f=c.flush(l);return Gs(f)?(this.asyncResult=!0,f.then(p=>(this.flushRemux(s,p,e),s))):(this.flushRemux(s,f,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===re.MAIN?"level":"track"} ${n.level}`);const f=this.remuxer.remux(r,i,s,l,u,c,!0,this.id);e.push({remuxResult:f,chunkMeta:n}),n.transmuxing.executeEnd=$i()}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 p=0,S=oa.length;p<S;p++){var s;if((s=oa[p].demux)!=null&&s.probe(e,this.logger)){i=oa[p];break}}if(!i)return new Error("Failed to find demuxer by probing fragment data");const l=this.demuxer,c=this.remuxer,u=i.remux,f=i.demux;(!c||!(c instanceof u))&&(this.remuxer=new u(n,t,r,this.logger)),(!l||!(l instanceof f))&&(this.demuxer=new f(n,t,r,this.logger),this.probe=f.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new dn(this.config)),e}}function Wl(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 Ca=a=>({remuxResult:{},chunkMeta:a});function Gs(a){return"then"in a&&a.then instanceof Function}class Hl{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 Vl{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 vo=0;class yo{constructor(e,t,n,r){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=vo++,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,f=this.hls;if(!(!f||!(u!=null&&u.event)||u.instanceNo!==this.instanceNo))switch(u.event){case"init":{var p;const S=(p=this.workerContext)==null?void 0:p.objectURL;S&&self.URL.revokeObjectURL(S);break}case"transmuxComplete":{this.handleTransmuxComplete(u.data);break}case"flush":{this.onFlush(u.data);break}case"workerLog":{f.logger[u.data.logType]&&f.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,f.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:oe.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 Qi,this.observer.on(d.FRAG_DECRYPTED,s),this.observer.on(d.ERROR,s);const l=At(i.preferManagedMediaSource);if(this.useWorker&&typeof Worker!="undefined"){const c=this.hls.logger;if(i.workerPath||as()){try{i.workerPath?(c.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=ya(i.workerPath)):(c.log(`injecting Web Worker for "${t}"`),this.workerContext=Qs());const{worker:f}=this.workerContext;f.addEventListener("message",this.onWorkerMessage),f.addEventListener("error",this.onWorkerError),f.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:l,id:t,config:Nt(i)})}catch(f){c.warn(`Error setting up "${t}" Web Worker, fallback to inline`,f),this.terminateWorker(),this.error=null,this.transmuxer=new go(this.observer,l,i,"",t,e.logger)}return}}this.transmuxer=new go(this.observer,l,i,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=vo++;const t=this.hls.config,n=At(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:n,id:this.id,config:Nt(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),Js(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,f){var p,S;u.transmuxing.start=self.performance.now();const{instanceNo:C,transmuxer:D}=this,te=s?s.start:i.start,Y=i.decryptdata,be=this.frag,Xe=!(be&&i.cc===be.cc),Me=!(be&&u.level===be.level),mt=be?u.sn-be.sn:-1,Ut=this.part?u.part-this.part.index:-1,hn=mt===0&&u.id>1&&u.id===(be==null?void 0:be.stats.chunkCount),It=!Me&&(mt===1||mt===0&&(Ut===1||hn&&Ut<=0)),Jt=self.performance.now();(Me||mt||i.stats.parsing.start===0)&&(i.stats.parsing.start=Jt),s&&(Ut||!It)&&(s.stats.parsing.start=Jt);const en=!(be&&((p=i.initSegment)==null?void 0:p.url)===((S=be.initSegment)==null?void 0:S.url)),xt=new Vl(Xe,It,c,Me,te,en);if(!It||Xe||en){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${i.type} sn: ${u.sn}${u.part>-1?" part: "+u.part:""} ${this.id===re.MAIN?"level":"track"}: ${u.level} id: ${u.id}
discontinuity: ${Xe}
trackSwitch: ${Me}
contiguous: ${It}
accurateTimeOffset: ${c}
timeOffset: ${te}
initSegmentChange: ${en}`);const An=new Hl(n,r,t,l,f);this.configureTransmuxer(An)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:C,cmd:"demux",data:e,decryptdata:Y,chunkMeta:u,state:xt},e instanceof ArrayBuffer?[e]:[]);else if(D){const An=D.push(e,Y,u,xt);Gs(An)?An.then(jn=>{this.handleTransmuxComplete(jn)}).catch(jn=>{this.transmuxerError(jn,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);Gs(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:oe.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 _o=100;class Yl extends Mr{constructor(e,t,n){super(e,t,n,"audio-stream-controller",re.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}){if(n===re.MAIN){const s=t.cc,l=this.fragCurrent;if(this.initPTS[s]={baseTime:r,timescale:i},this.log(`InitPTS for cc: ${s} found from main: ${r}/${i}`),this.mainAnchor=t,this.state===sn.WAITING_INIT_PTS){const c=this.waitingData;(!c&&!this.loadingParts||c&&c.frag.cc!==s)&&this.syncWithAnchor(t,c==null?void 0:c.frag)}else!this.hls.hasEnoughToStart&&l&&l.cc!==s?(l.abortRequests(),this.syncWithAnchor(t,l)):this.state===sn.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=Mn(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===sn.IDLE&&this.doTickIdle())}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=sn.STOPPED;return}const n=this.lastCurrentTime;this.stopLoad(),this.setInterval(_o),n>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${n.toFixed(3)}`),e=n,this.state=sn.IDLE):this.state=sn.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case sn.IDLE:this.doTickIdle();break;case sn.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=sn.WAITING_INIT_PTS}break}case sn.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=sn.IDLE}break}case sn.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=sn.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=sn.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=sn.WAITING_TRACK,this.startFragRequested=!1;return}const u=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&u&&(this.bufferFlushed=!1,this.afterBufferFlushed(u,M.AUDIO,re.AUDIO));const f=this.getFwdBufferInfo(u,re.AUDIO);if(f===null)return;if(!this.switchingTrack&&this._streamEnded(f,c)){t.trigger(d.BUFFER_EOS,{type:"audio"}),this.state=sn.ENDED;return}const p=f.len,S=t.maxBufferLength,C=c.fragments,D=C[0].start,te=this.getLoadPosition(),Y=this.flushing?te:f.end;if(this.switchingTrack&&r){const Me=te;c.PTSKnown&&Me<D&&(f.end>D||f.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),r.currentTime=D+.05)}if(p>=S&&!this.switchingTrack&&Y<C[C.length-1].start)return;let be=this.getNextFragment(Y,c);if(be&&this.isLoopLoading(be,Y)&&(be=this.getNextFragmentLoopLoading(be,c,f,re.MAIN,S)),!be){this.bufferFlushed=!0;return}let Xe=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&Xe&&Ie(be)&&!be.endList&&(!c.live||!this.loadingParts&&Y<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(Xe)===We.OK&&(this.mainFragLoading=Xe=null),Xe&&Ie(Xe))){if(be.start>Xe.end){const mt=this.fragmentTracker.getFragAtPos(Y,re.MAIN);mt&&mt.end>Xe.end&&(Xe=mt,this.mainFragLoading={frag:mt,targetBufferTime:null})}if(be.start>Xe.end)return}this.loadFragment(be,l,Y)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(n=>new Ct(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!==sn.STOPPED&&(this.setInterval(_o),this.state=sn.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!==sn.STOPPED&&(this.state=sn.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 f=r[s];let p=0;if(i.live||(n=f.details)!=null&&n.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;if(f.details){var S;p=this.alignPlaylists(i,f.details,(S=this.levelLastLoaded)==null?void 0:S.details)}i.alignedSliding||(_i(i,u),i.alignedSliding||Wi(i,u),p=i.fragmentStart)}f.details=i,this.levelLastLoaded=f,this.startFragRequested||this.setStartPosition(u,p),this.hls.trigger(d.AUDIO_TRACK_UPDATED,{details:i,id:s,groupId:t.groupId}),this.state===sn.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=sn.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 f=u.details;if(!f){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(n.start);return}const p=s.defaultAudioCodec||u.audioCodec||"mp4a.40.2";let S=this.transmuxer;S||(S=this.transmuxer=new yo(this.hls,re.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const C=this.initPTS[n.cc],D=(t=n.initSegment)==null?void 0:t.data;if(C!==void 0){const Y=r?r.index:-1,be=Y!==-1,Xe=new fr(n.level,n.sn,n.stats.chunkCount,i.byteLength,Y,be);S.push(i,D,p,"",n,r,f.totalduration,!1,Xe,C)}else{this.log(`Unknown video PTS for cc ${n.cc}, waiting for video PTS before demuxing audio frag ${n.sn} of [${f.startSN} ,${f.endSN}],track ${l}`);const{cache:te}=this.waitingData=this.waitingData||{frag:n,part:r,cache:new oi,complete:!1};te.push(new Uint8Array(i)),this.state!==sn.STOPPED&&(this.state=sn.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===re.MAIN&&Ie(t.frag)&&(this.mainFragLoading=t,this.state===sn.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:n,part:r}=t;if(n.type!==re.AUDIO){!this.audioOnly&&n.type===re.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(Ie(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=sn.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(re.AUDIO,t);break;case B.AUDIO_TRACK_LOAD_ERROR:case B.AUDIO_TRACK_LOAD_TIMEOUT:case B.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===sn.WAITING_TRACK&&((n=t.context)==null?void 0:n.type)===me.AUDIO_TRACK&&(this.state=sn.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!==M.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==M.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===sn.ENDED&&(this.state=sn.IDLE);const n=this.mediaBuffer||this.media;n&&(this.afterBufferFlushed(n,t,re.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:f}=l,{details:p}=f,{audio:S,text:C,id3:D,initSegment:te}=i;if(this.fragContextChanged(c)||!p){this.fragmentTracker.removeFragment(c);return}if(this.state=sn.PARSING,this.switchingTrack&&S&&this.completeAudioSwitch(this.switchingTrack),te!=null&&te.tracks){const Y=c.initSegment||c;this._bufferInitSegment(f,te.tracks,Y,s),r.trigger(d.FRAG_PARSING_INIT_SEGMENT,{frag:Y,id:n,tracks:te.tracks})}if(S){const{startPTS:Y,endPTS:be,startDTS:Xe,endDTS:Me}=S;u&&(u.elementaryStreams[M.AUDIO]={startPTS:Y,endPTS:be,startDTS:Xe,endDTS:Me}),c.setElementaryStreamInfo(M.AUDIO,Y,be,Xe,Me),this.bufferFragmentData(S,c,u,s)}if(D!=null&&(t=D.samples)!=null&&t.length){const Y=m({id:n,frag:c,details:p},D);r.trigger(d.FRAG_PARSING_METADATA,Y)}if(C){const Y=m({id:n,frag:c,details:p},C);r.trigger(d.FRAG_PARSING_USERDATA,Y)}}_bufferInitSegment(e,t,n,r){if(this.state!==sn.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const i=t.audio;i.id=re.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===We.NOT_LOADED||r===We.PARTIAL){var i;if(!Ie(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=sn.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==t.details.fragmentStart&&Wi(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;gt({name:t,lang:n,assocLang:r,characteristics:i,audioCodec:s,channels:l},e,rn)||(wn(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 Da extends W{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==null?void 0:t.lastPartSn);let c=parseInt(s["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const f=Math.min(t.age-t.partTarget,t.targetduration);c>=0&&f>t.partTarget&&(c+=1)}const u=n&&nt(n);return new st(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 f=Math.max(c||0,0);r.appliedTimelineOffset=f,r.fragments.forEach(p=>{p.start=p.playlistOffset+f})}if(r.live||n!=null&&n.live){const f="levelInfo"in t?t.levelInfo:t.track;if(r.reloaded(n),n&&r.fragments.length>0){rs(n,r);const Xe=r.playlistParsingError;if(Xe){this.warn(Xe);const Me=this.hls;if(!Me.config.ignorePlaylistParsingErrors){var u;const{networkDetails:mt}=t;Me.trigger(d.ERROR,{type:oe.NETWORK_ERROR,details:B.LEVEL_PARSING_ERROR,fatal:!1,url:r.url,error:Xe,reason:Xe.message,level:t.level||void 0,parent:(u=r.fragments[0])==null?void 0:u.type,networkDetails:mt,stats:i});return}r.playlistParsingError=null}}r.requestScheduled===-1&&(r.requestScheduled=i.loading.start);const p=this.hls.mainForwardBufferInfo,S=p?p.end-p.len:0,C=(r.edge-S)*1e3,D=Xr(r,C);if(r.requestScheduled+D<s?r.requestScheduled=s:r.requestScheduled+=D,this.log(`live playlist ${e} ${r.advanced?"REFRESHED "+r.lastPartSn+"-"+r.lastPartIndex:r.updated?"UPDATED":"MISSED"}`),!this.canLoad||!r.live)return;let te,Y,be;if(r.canBlockReload&&r.endSN&&r.advanced){const Xe=this.hls.config.lowLatencyMode,Me=r.lastPartSn,mt=r.endSN,Ut=r.lastPartIndex,hn=Ut!==-1,It=Me===mt;hn?It?(Y=mt+1,be=Xe?0:Ut):(Y=Me,be=Xe?Ut+1:r.maxPartIndex):Y=mt+1;const Jt=r.age,en=Jt+r.ageHeader;let xt=Math.min(en-r.partTarget,r.targetduration*1.5);if(xt>0){if(en>r.targetduration*3)this.log(`Playlist last advanced ${Jt.toFixed(2)}s ago. Omitting segment and part directives.`),Y=void 0,be=void 0;else if(n!=null&&n.tuneInGoal&&en-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(Y+=An,be!==void 0){const jn=Math.round(xt%r.targetduration/r.partTarget);be+=jn}this.log(`CDN Tune-in age: ${r.ageHeader}s last advanced ${Jt.toFixed(2)}s goal: ${xt} skip sn ${An} to part ${be}`)}r.tuneInGoal=xt}if(te=this.getDeliveryDirectives(r,t.deliveryDirectives,Y,be),Xe||!It){r.requestScheduled=s,this.loadingPlaylist(f,te);return}}else(r.canBlockReload||r.canSkipUntil)&&(te=this.getDeliveryDirectives(r,t.deliveryDirectives,Y,be));te&&Y!==void 0&&r.canBlockReload&&(r.requestScheduled=i.loading.first+Math.max(D-l*2,D/2)),this.scheduleLoading(f,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=nt(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(n=t.msn,r=t.part,i=Se.No),new st(n,r,i)}checkRetry(e){const t=e.details,n=On(e),r=e.errorAction,{action:i,retryCount:s=0,retryConfig:l}=r||{},c=!!r&&!!l&&(i===pn.RetryRequest||!r.resolved&&i===pn.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 f=xn(l,s);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),f),this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${t}" in ${f}ms`)}e.levelRetry=!0,r.resolved=!0}return c}}function Eo(a,e){if(a.length!==e.length)return!1;for(let t=0;t<a.length;t++)if(!Ws(a[t].attrs,e[t].attrs))return!1;return!0}function Ws(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 Ra(a,e){return e.label.toLowerCase()===a.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(a.lang||"").toLowerCase())}class Xl extends Da{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(S=>!n||n.indexOf(S.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(S=>S.default)&&(this.selectDefaultTrack=!1),l.forEach((S,C)=>{S.id=C});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const c=this.hls.config.audioPreference;if(!i&&c){const S=ot(c,l,rn);if(S>-1)i=l[S];else{const C=ot(c,this.tracks);i=this.tracks[C]}}let u=this.findTrackId(i);u===-1&&i&&(u=this.findTrackId(null));const f={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,f);const p=this.trackId;if(u!==-1&&p===-1)this.setAudioTrack(u);else if(l.length&&p===-1){var s;const S=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(S.message),this.hls.trigger(d.ERROR,{type:oe.MEDIA_ERROR,details:B.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:S})}}}onError(e,t){t.fatal||!t.context||t.context.type===me.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&&gt(e,r,rn))return r;const i=ot(e,this.tracksInGroup,rn);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=cn(e,t.levels,n,s,rn);if(l===-1)return null;t.nextLoadLevel=l}if(e.channels||e.audioCodec){const s=ot(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||gt(e,r,rn)))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 f=t[u];if(gt({name:n,lang:r,assocLang:i,characteristics:s,audioCodec:l,channels:c},f,rn))return u}for(let u=0;u<t.length;u++){const f=t[u];if(Ws(e.attrs,f.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return u}for(let u=0;u<t.length;u++){const f=t[u];if(Ws(e.attrs,f.attrs,["LANGUAGE"]))return u}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&wn(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 Ql{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 bo=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,xo="HlsJsTrackRemovedError";class Jl extends Error{constructor(e){super(e),this.name=xo}}class ql extends W{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=se(q(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?m(n,r.tracks):this.sourceBuffers.forEach(i=>{const[s]=i;s&&(n[s]=m({},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,r=q(this.appendSource);if(this.transferData=this.overrides=void 0,n&&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,So(n),$l(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=()=>{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: ${Nt(n,(c,u)=>c==="initSegment"?void 0:u)};
transfer tracks: ${Nt(r,(c,u)=>c==="initSegment"?void 0:u)}}`),!ie(r,n)){t.mediaSource=null,t.tracks=void 0;const c=e.currentTime,u=this.details,f=Math.max(c,(u==null?void 0:u.fragments[0].start)||0);if(f-c>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${c} -> ${f}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(r)}"->"${Object.keys(n)}") start time: ${f} currentTime: ${c}`),this.onMediaDetaching(d.MEDIA_DETACHING,{}),this.onMediaAttaching(d.MEDIA_ATTACHING,t),e.currentTime=f;return}this.transferData=void 0,i.forEach(c=>{const u=c,f=r[u];if(f){const p=f.buffer;if(p){const S=this.fragmentTracker,C=f.id;if(S.hasFragments(C)||S.hasParts(C)){const Y=vn.getBuffered(p);S.detectEvictedFragments(u,Y,C,null,!0)}const D=La(u),te=[u,p];this.sourceBuffers[D]=te,p.updating&&this.operationQueue&&this.operationQueue.prependBlocker(u),this.trackSourceBuffer(u,f)}}}),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&&So(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[La(e)]=[null,null];const t=this.tracks[e];t&&(t.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new Ql(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,f;const p=t[l],{id:S,codec:C,levelCodec:D,container:te,metadata:Y,supplemental:be}=p;let Xe=n[l];const Me=(c=this.transferData)==null||(u=c.tracks)==null?void 0:u[l],mt=Me!=null&&Me.buffer?Me:Xe,Ut=(mt==null?void 0:mt.pendingCodec)||(mt==null?void 0:mt.codec),hn=mt==null?void 0:mt.levelCodec;Xe||(Xe=n[l]={buffer:void 0,listeners:[],codec:C,supplemental:be,container:te,levelCodec:D,metadata:Y,id:S});const It=ye(Ut,hn),Jt=It==null?void 0:It.replace(bo,"$1");let en=ye(C,D);const xt=(f=en)==null?void 0:f.replace(bo,"$1");en&&It&&Jt!==xt&&(l.slice(0,5)==="audio"&&(en=fe(en,this.appendSource)),this.log(`switching codec ${Ut} to ${en}`),en!==(Xe.pendingCodec||Xe.codec)&&(Xe.pendingCodec=en),Xe.container=te,this.appendChangeType(l,te,en))}),(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,re.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&&vn.isBuffered(c.buffer,r)||((l=this.fragmentTracker.getAppendedFrag(r,re.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:f}=t,p=u.buffering[i],{sn:S,cc:C}=l,D=self.performance.now();p.start=D;const te=l.stats.buffering,Y=c?c.stats.buffering:null;te.start===0&&(te.start=D),Y&&Y.start===0&&(Y.start=D);const be=n.audio;let Xe=!1;i==="audio"&&(be==null?void 0:be.container)==="audio/mpeg"&&(Xe=!this.lastMpegAudioChunk||u.id===1||this.lastMpegAudioChunk.sn!==u.sn,this.lastMpegAudioChunk=u);const Me=n.video,mt=Me==null?void 0:Me.buffer;if(mt&&S!=="initSegment"){const It=c||l,Jt=this.blockedAudioAppend;if(i==="audio"&&s!=="main"&&!this.blockedAudioAppend){const xt=It.start+It.duration*.05,An=mt.buffered,jn=this.currentOp("video");!An.length&&!jn?this.blockAudio(It):!jn&&!vn.isBuffered(mt,xt)&&this.lastVideoAppendEnd<xt&&this.blockAudio(It)}else if(i==="video"){const en=It.end;if(Jt){const xt=Jt.frag.start;(en>xt||en<this.lastVideoAppendEnd||vn.isBuffered(mt,xt))&&this.unblockAudio()}this.lastVideoAppendEnd=en}}const Ut=(c||l).start,hn={label:`append-${i}`,execute:()=>{var It;p.executeStart=self.performance.now();const Jt=(It=this.tracks[i])==null?void 0:It.buffer;Jt&&(Xe?this.updateTimestampOffset(Jt,Ut,.1,i,S,C):f!==void 0&&h(f)&&this.updateTimestampOffset(Jt,f,1e-6,i,S,C)),this.appendExecutor(r,i)},onStart:()=>{},onComplete:()=>{const It=self.performance.now();p.executeEnd=p.end=It,te.first===0&&(te.first=It),Y&&Y.first===0&&(Y.first=It);const Jt={};this.sourceBuffers.forEach(([en,xt])=>{en&&(Jt[en]=vn.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:Jt})},onError:It=>{var Jt;const en={type:oe.MEDIA_ERROR,parent:l.type,details:B.BUFFER_APPEND_ERROR,sourceBufferName:i,frag:l,part:c,chunkMeta:u,error:It,err:It,fatal:!1},xt=(Jt=this.media)==null?void 0:Jt.error;if(It.code===DOMException.QUOTA_EXCEEDED_ERR||It.name=="QuotaExceededError"||"quota"in It)en.details=B.BUFFER_FULL_ERROR;else if(It.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!xt)en.errorAction=ct(!0);else if(It.name===xo&&this.sourceBufferCount===0)en.errorAction=ct(!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)&&(en.fatal=!0)}this.hls.trigger(d.ERROR,en)}};this.append(hn,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[M.AUDIOVIDEO]?i.push("audiovideo"):(s[M.AUDIO]&&i.push("audio"),s[M.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])=>{var t,n;return e&&(!((t=this.tracks[e])!=null&&t.ended)||((n=this.tracks[e])==null?void 0:n.ending))})}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)))}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;h(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(h(l)&&l>=0){const c=Math.max(l,s),u=Math.floor(i/s)*s-c;this.flushBackBuffer(i,s,u)}if(h(r.frontBufferFlushThreshold)&&r.frontBufferFlushThreshold>0){const c=Math.max(r.maxBufferLength,r.frontBufferFlushThreshold),u=Math.max(c,s),f=Math.floor(i/s)*s+u;this.flushFrontBuffer(i,s,f)}}flushBackBuffer(e,t,n){this.sourceBuffers.forEach(([r,i])=>{if(i){const l=vn.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=vn.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&&t.live&&n.setLiveSeekableRange){const u=Math.max(0,t.fragmentStart),f=Math.max(u,r);return{duration:1/0,start:u,end:f}}return{duration:1/0}}const i=(e=this.overrides)==null?void 0:e.duration;if(i)return h(i)?{duration:i}:null;const s=this.media.duration,l=h(n.duration)?n.duration:0;return r>l&&r>s||!h(s)?{duration:r}:null}updateMediaSource({duration:e,start:t,end:n}){const r=this.mediaSource;!this.media||!r||r.readyState!=="open"||(r.duration!==e&&(h(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}) ${Nt(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:oe.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":""} ${Nt(l)}`);try{const f=n.addSourceBuffer(u),p=La(s),S=[s,f];t[p]=S,l.buffer=f}catch(f){var r;this.error(`error while trying to add sourceBuffer: ${f.message}`),this.shiftAndExecuteNext(s),(r=this.operationQueue)==null||r.removeBlockers(),delete this.tracks[s],this.hls.trigger(d.ERROR,{type:oe.MEDIA_ERROR,details:B.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:f,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")&&fn(n,"video")&&(r=ve(r,n));const i=ye(r,e.levelCodec);return i?t.slice(0,5)==="audio"?fe(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:oe.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=h(r.duration)?r.duration:1/0,u=h(i.duration)?i.duration:1/0,f=Math.max(0,t),p=Math.min(n,c,u);p>f&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${f},${p}] from the ${e} SourceBuffer`),l.remove(f,p)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const n=this.tracks[t],r=n==null?void 0:n.buffer;if(!r)throw new Jl(`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 So(a){const e=a.querySelectorAll("source");[].slice.call(e).forEach(t=>{a.removeChild(t)})}function $l(a,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,a.appendChild(t)}function La(a){return a==="audio"?1:0}class Ia{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&&h(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,Ia.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 bi={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},eu={HLS:"h"},Hs={OBJECT:"CMCD-Object",REQUEST:"CMCD-Request",SESSION:"CMCD-Session",STATUS:"CMCD-Status"},tu={[Hs.OBJECT]:["br","ab","d","ot","tb","tpb","lb","tab","lab","url"],[Hs.REQUEST]:["pb","bl","tbl","dl","ltc","mtp","nor","nrr","rc","sn","sta","su","ttfb","ttfbb","ttlb","cmsdd","cmsds","smrt","df","cs"],[Hs.SESSION]:["cid","pr","sf","sid","st","v","msd"],[Hs.STATUS]:["bs","bsd","cdn","rtp","bg","pt","ec","e"]};class Rs{constructor(e,t){Array.isArray(e)&&(e=e.map(n=>n instanceof Rs?n:new Rs(n))),this.value=e,this.params=t}}const nu="Dict";function ru(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 iu(a,e,t,n){return new Error(`failed to ${a} "${ru(e)}" as ${t}`,{cause:n})}function Vi(a,e,t){return iu("serialize",a,e,t)}class Ao{constructor(e){this.description=e}}const wo="Bare Item",su="Boolean";function au(a){if(typeof a!="boolean")throw Vi(a,su);return a?"?1":"?0"}function ou(a){return btoa(String.fromCharCode(...a))}const lu="Byte Sequence";function uu(a){if(ArrayBuffer.isView(a)===!1)throw Vi(a,lu);return`:${ou(a)}:`}const cu="Integer";function du(a){return a<-999999999999999||999999999999999<a}function To(a){if(du(a))throw Vi(a,cu);return a.toString()}function fu(a){return`@${To(a.getTime()/1e3)}`}function Co(a,e){if(a<0)return-Co(-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 hu="Decimal";function pu(a){const e=Co(a,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Vi(a,hu);const t=e.toString();return t.includes(".")?t:`${t}.0`}const mu="String",gu=/[\x00-\x1f\x7f]+/;function vu(a){if(gu.test(a))throw Vi(a,mu);return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function yu(a){return a.description||a.toString().slice(7,-1)}const _u="Token";function Do(a){const e=yu(a);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Vi(e,_u);return e}function ka(a){switch(typeof a){case"number":if(!h(a))throw Vi(a,wo);return Number.isInteger(a)?To(a):pu(a);case"string":return vu(a);case"symbol":return Do(a);case"boolean":return au(a);case"object":if(a instanceof Date)return fu(a);if(a instanceof Uint8Array)return uu(a);if(a instanceof Ao)return Do(a);default:throw Vi(a,wo)}}const Eu="Key";function Pa(a){if(/^[a-z*][a-z0-9\-_.*]*$/.test(a)===!1)throw Vi(a,Eu);return a}function Na(a){return a==null?"":Object.entries(a).map(([e,t])=>t===!0?`;${Pa(e)}`:`;${Pa(e)}=${ka(t)}`).join("")}function Ro(a){return a instanceof Rs?`${ka(a.value)}${Na(a.params)}`:ka(a)}function bu(a){return`(${a.value.map(Ro).join(" ")})${Na(a.params)}`}function xu(a,e={whitespace:!0}){if(typeof a!="object")throw Vi(a,nu);const t=a instanceof Map?a.entries():Object.entries(a),n=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([r,i])=>{i instanceof Rs||(i=new Rs(i));let s=Pa(r);return i.value===!0?s+=Na(i.params):(s+="=",Array.isArray(i.value)?s+=bu(i):s+=Ro(i)),s}).join(`,${n}`)}function Su(a,e){return xu(a,e)}function Au(a){return["ot","sf","st","e","sta"].includes(a)}function wu(a){return typeof a=="number"?h(a):a!=null&&a!==""&&a!==!1}function Tu(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("/")}const la=a=>Math.round(a),Cu=(a,e)=>(e!=null&&e.baseUrl&&(a=Tu(a,e.baseUrl)),encodeURIComponent(a)),ua=a=>la(a/100)*100,Du={br:la,d:la,bl:ua,dl:ua,mtp:ua,nor:Cu,rtp:ua,tb:la};function Ru(a,e){const t={};if(a==null||typeof a!="object")return t;const n=Object.keys(a).sort(),r=m({},Du,e==null?void 0:e.formatters),i=e==null?void 0:e.filter;return n.forEach(s=>{if((i==null?void 0:i(s))===!1)return;let l=a[s];const c=r[s];c&&(l=c(l,e)),!(s==="v"&&l===1)&&(s=="pr"&&l===1||wu(l)&&(Au(s)&&typeof l=="string"&&(l=new Ao(l)),t[s]=l))}),t}function Lo(a,e={}){return a?Su(Ru(a,e),m({whitespace:!1},e)):""}function Lu(a,e={}){const t={};if(!a)return t;const n=Object.entries(a),r=Object.entries(tu).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),i=n.reduce((s,l)=>{var c,u;const[f,p]=l,S=((c=r.find(C=>C[1].includes(f)))===null||c===void 0?void 0:c[0])||Hs.REQUEST;return(u=s[S])!==null&&u!==void 0||(s[S]={}),s[S][f]=p,s},{});return Object.entries(i).reduce((s,[l,c])=>(s[l]=Lo(c,e),s),t)}function Iu(a,e,t){return m(a,Lu(e,t))}const ku="CMCD";function Pu(a,e={}){if(!a)return"";const t=Lo(a,e);return`${ku}=${encodeURIComponent(t)}`}const Io=/CMCD=[^&#]+/;function Nu(a,e,t){const n=Pu(e,t);if(!n)return a;if(Io.test(a))return a.replace(Io,n);const r=a.includes("?")?"&":"?";return`${a}${r}${n}`}class Mu{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:bi.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===bi.VIDEO||c===bi.AUDIO||c==bi.MUXED)&&(u.br=l.bitrate/1e3,u.tb=this.getTopBandwidth(c)/1e3,u.bl=this.getBufferLength(c));const f=s?this.getNextPart(s):this.getNextFrag(i);f!=null&&f.url&&f.url!==i.url&&(u.nor=f.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:eu.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){m(t,this.createData());const n=t.ot===bi.INIT||t.ot===bi.VIDEO||t.ot===bi.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={}),Iu(e.headers,t,i)):e.url=Nu(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,n;const{index:r,fragment:i}=e,s=(t=this.hls.levels[i.level])==null||(n=t.details)==null?void 0:n.partList;if(s){const{sn:l}=i;for(let c=s.length-1;c>=0;c--){const u=s[c];if(u.index===r&&u.fragment.sn===l)return s[c+1]}}}getObjectType(e){const{type:t}=e;if(t==="subtitle")return bi.TIMED_TEXT;if(e.sn==="initSegment")return bi.INIT;if(t==="audio")return bi.AUDIO;if(t==="main")return this.hls.audioTracks.length?bi.VIDEO:bi.MUXED}getTopBandwidth(e){let t=0,n;const r=this.hls;if(e===bi.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===bi.AUDIO?this.audioBuffer:this.videoBuffer;return!n||!t?NaN:vn.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 Ou=3e5;class Fu extends W{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)===pn.SendAlternateToPenaltyBox&&n.flags===Un.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: ${Nt(i)} penalized: ${Nt(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]>Ou&&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===me.AUDIO_TRACK&&r[i].hasAudioGroup(e)||t===me.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(f=>f.pathwayId===s))return;const u=this.getLevelsForPathway(l).map(f=>{const p=new _n(f.attrs);p["PATHWAY-ID"]=s;const S=p.AUDIO&&`${p.AUDIO}_clone_${s}`,C=p.SUBTITLES&&`${p.SUBTITLES}_clone_${s}`;S&&(n[p.AUDIO]=S,p.AUDIO=S),C&&(r[p.SUBTITLES]=C,p.SUBTITLES=C);const D=Po(f.uri,p["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",c),te=new Ct({attrs:p,audioCodec:f.audioCodec,bitrate:f.bitrate,height:f.height,name:f.name,url:D,videoCodec:f.videoCodec,width:f.width});if(f.audioGroups)for(let Y=1;Y<f.audioGroups.length;Y++)te.addGroupId("audio",`${f.audioGroups[Y]}_clone_${s}`);if(f.subtitleGroups)for(let Y=1;Y<f.subtitleGroups.length;Y++)te.addGroupId("text",`${f.subtitleGroups[Y]}_clone_${s}`);return te});t.push(...u),ko(this.audioTracks,n,c,s),ko(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(f){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(r.protocol!=="data:"){const f=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;r.searchParams.set("_HLS_pathway",this.pathwayId),r.searchParams.set("_HLS_throughput",""+f)}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:(f,p,S,C)=>{this.log(`Loaded steering manifest: "${r}"`);const D=f.data;if((D==null?void 0:D.VERSION)!==1){this.log(`Steering VERSION ${D.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=D.TTL;const{"RELOAD-URI":te,"PATHWAY-CLONES":Y,"PATHWAY-PRIORITY":be}=D;if(te)try{this.uri=new self.URL(te,r).href}catch(Me){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${te}`);return}this.scheduleRefresh(this.uri||S.url),Y&&this.clonePathways(Y);const Xe={steeringManifest:D,url:r.toString()};this.hls.trigger(d.STEERING_MANIFEST_LOADED,Xe),be&&this.updatePathwayPriority(be)},onError:(f,p,S,C)=>{if(this.log(`Error loading steering manifest: ${f.code} ${f.text} (${p.url})`),this.stopLoad(),f.code===410){this.enabled=!1,this.log(`Steering manifest ${p.url} no longer available`);return}let D=this.timeToLoad*1e3;if(f.code===429){const te=this.loader;if(typeof(te==null?void 0:te.getResponseHeader)=="function"){const Y=te.getResponseHeader("Retry-After");Y&&(D=parseFloat(Y)*1e3)}this.log(`Steering manifest ${p.url} rate limited`);return}this.scheduleRefresh(this.uri||p.url,D)},onTimeout:(f,p,S)=>{this.log(`Timeout loading steering manifest (${p.url})`),this.scheduleRefresh(this.uri||p.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 ko(a,e,t,n){a&&Object.keys(e).forEach(r=>{const i=a.filter(s=>s.groupId===r).map(s=>{const l=m({},s);return l.details=void 0,l.attrs=new _n(l.attrs),l.url=l.attrs.URI=Po(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 Po(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 ki(a,e,t){Ui(a,e,t),a.addEventListener(e,t)}function Ui(a,e,t){a.removeEventListener(e,t)}class Ls extends W{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=Ls.CDMCleanupPromise?[Ls.CDMCleanupPromise]:[],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===nr.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 f=u.shift();this.getMediaKeysPromise(f,r,i).then(p=>s({keySystem:f,mediaKeys:p})).catch(p=>{u.length?c(u):p instanceof Pi?l(p):l(new Pi({type:oe.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_ACCESS,error:p,fatal:!0},p.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: ${Nt(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(f=>(this.log(`Media-keys created for "${e}"`),l.hasMediaKeys=!0,u.then(p=>p?this.setMediaKeysServerCertificate(f,e,p):f))),l.mediaKeys.catch(f=>{this.error(`Failed to create media-keys for "${e}"}: ${f}`)}),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})=>sr(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=sr(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=lr(this.config),n=e.map(tr).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 Pi?this.hls.trigger(d.ERROR,e.data):this.hls.trigger(d.ERROR,{type:oe.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=tr(e.keyFormat),i=r?[r]:lr(this.config);return this.attemptKeySystemAccess(i)}return n}getKeySystemSelectionPromise(e){if(e.length||(e=lr(this.config)),e.length===0)throw new Pi({type:oe.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${Nt({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,s;const l=(i=this.config.drmSystems)==null||(s=i[e.keySystem])==null?void 0:s.generateRequest;if(l)try{const D=l.call(this.hls,t,n,e);if(!D)throw new Error("Invalid response from configured generateRequest filter");t=D.initDataType,n=D.initData?D.initData:null,e.decryptdata.pssh=n?new Uint8Array(n):null}catch(D){var c;if(this.warn(D.message),(c=this.hls)!=null&&c.config.debug)throw D}if(n===null)return this.log(`Skipping key-session request for "${r}" (no initData)`),Promise.resolve(e);const u=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${r}": ${u} (init data type: ${t} length: ${n?n.byteLength:null})`);const f=new Qi,p=e._onmessage=D=>{const te=e.mediaKeysSession;if(!te){f.emit("error",new Error("invalid state"));return}const{messageType:Y,message:be}=D;this.log(`"${Y}" message event for session "${te.sessionId}" message size: ${be.byteLength}`),Y==="license-request"||Y==="license-renewal"?this.renewLicense(e,be).catch(Xe=>{f.eventNames().length?f.emit("error",Xe):this.handleError(Xe)}):Y==="license-release"?e.keySystem===nr.FAIRPLAY&&(this.updateKeySession(e,mr("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${Y}"`)},S=e._onkeystatuseschange=D=>{if(!e.mediaKeysSession){f.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const Y=e.keyStatus;f.emit("keyStatus",Y),Y==="expired"&&(this.warn(`${e.keySystem} expired for key ${u}`),this.renewKeySession(e))};ki(e.mediaKeysSession,"message",p),ki(e.mediaKeysSession,"keystatuseschange",S);const C=new Promise((D,te)=>{f.on("error",te),f.on("keyStatus",Y=>{Y.startsWith("usable")?D():Y==="output-restricted"?te(new Pi({type:oe.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):Y==="internal-error"?te(new Pi({type:oe.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${Y}"`)):Y==="expired"?te(new Error("key expired while generating request")):this.warn(`unhandled key status change "${Y}"`)})});return e.mediaKeysSession.generateRequest(t,n).then(()=>{var D;this.log(`Request generated for key-session "${(D=e.mediaKeysSession)==null?void 0:D.sessionId}" keyId: ${u}`)}).catch(D=>{throw new Pi({type:oe.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_NO_SESSION,error:D,fatal:!1},`Error generating key-session request: ${D}`)}).then(()=>C).catch(D=>{throw f.removeAllListeners(),this.removeSession(e),D}).then(()=>(f.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,f={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},p={onSuccess:(S,C,D,te)=>{s(S.data)},onError:(S,C,D,te)=>{l(new Pi({type:oe.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:D,response:b({url:c.url,data:void 0},S)},`"${e}" certificate request failed (${i}). Status: ${S.code} (${S.text})`))},onTimeout:(S,C,D)=>{l(new Pi({type:oe.KEY_SYSTEM_ERROR,details:B.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:D,response:{url:c.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(S,C,D)=>{l(new Error("aborted"))}};r.load(c,f,p)})):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 Pi({type:oe.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 Pi({type:oe.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 f;for(let p=0,S=i.length;p<S;p++){var s,l;f=i[p];const C=(s=f.querySelector("name"))==null?void 0:s.textContent,D=(l=f.querySelector("value"))==null?void 0:l.textContent;C&&D&&e.setRequestHeader(C,D)}}const c=r.querySelector("Challenge"),u=c==null?void 0:c.textContent;if(!u)throw new Error("Cannot find <Challenge> in key message");return mr(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(f){this.error(f)}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 Pi({type:oe.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 f=u-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${f} 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==nr.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,ki(n,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media;e&&(Ui(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;Ls.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:oe.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:oe.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(Fn(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:oe.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:oe.OTHER_ERROR,details:B.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${l}`)})})}}}Ls.CDMCleanupPromise=void 0;class Pi 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 Bu{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 f=u.currentLevel;u.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+f),f>0&&(u.autoLevelCapping===-1||u.autoLevelCapping>=f)&&(f=f-1,u.trigger(d.FPS_DROP_LEVEL_CAPPING,{level:f,droppedLevel:u.currentLevel}),u.autoLevelCapping=f,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 No(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 Mo(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){H.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){H.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${r}`)}}t==="disabled"&&(a.mode=t)}function Is(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 Ma(a,e,t,n){const r=a.mode;if(r==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0){const i=Zu(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 Uu(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 Zu(a,e,t){const n=[],r=Uu(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 ca(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 Ku extends Da{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=ca(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;ca(n.textTracks).forEach(s=>{Is(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(f=>!n||n.indexOf(f.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(f=>f.default)&&(this.selectDefaultTrack=!1),s.forEach((f,p)=>{f.id=p});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const l=this.hls.config.subtitlePreference;if(!i&&l){this.selectDefaultTrack=!1;const f=ot(l,s);if(f>-1)i=s[f];else{const p=ot(l,this.tracks);i=this.tracks[p]}}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||gt(i,e)))return r}if(e){for(let r=0;r<t.length;r++){const i=t[r];if(Ws(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return r}for(let r=0;r<t.length;r++){const i=t[r];if(Ws(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(Ra(r,e))return n}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===me.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&&gt(e,n))return n;const r=ot(e,this.tracksInGroup);if(r>-1){const i=this.tracksInGroup[r];return this.setSubtitleTrack(r),i}else{if(n)return null;{const i=ot(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=ca(e.textTracks),n=this.currentTrack;let r;if(n&&(r=t.filter(i=>Ra(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||!h(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:f}=r;this.hls.trigger(d.SUBTITLE_TRACK_SWITCH,{id:s,groupId:l,name:c,type:u,url:f});const p=this.switchParams(r.url,n==null?void 0:n.details,r.details);this.loadPlaylist(p)}}function zu(){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 Vs(a){let e=5381,t=a.length;for(;t;)e=e*33^a.charCodeAt(--t);return(e>>>0).toString()}const ks=.025;let da=function(a){return a[a.Point=0]="Point",a[a.Range=1]="Range",a}({});function ju(a,e,t){return`${a.identifier}-${t+1}-${Vs(e)}`}class Gu{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 Oa(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=Oa(t,e);return t-n<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=h(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 Oa(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)<ks))}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"?da.Range:da.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 Wu(this)}}function Oa(a,e){return a-e.start<e.duration/2&&!(Math.abs(a-(e.start+e.duration))<ks)?e.start:e.start+e.duration}function Oo(a,e,t){const n=new self.URL(a,t);return n.protocol!=="data:"&&n.searchParams.set("_HLS_primary_id",e),n}function Fa(a,e){for(;(t=a.assetList[++e])!=null&&t.error;)var t;return e}function Wu(a){return`["${a.identifier}" ${a.cue.pre?"<pre>":a.cue.post?"<post>":""}${a.timelineStart.toFixed(2)}-${a.resumeTime.toFixed(2)}]`}function Ps(a){const e=a.timelineStart,t=a.duration||0;return`["${a.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class Hu{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.trigger(d.PLAYOUT_LIMIT_REACHED,{})};const i=this.hls=new e(t);this.interstitial=n,this.assetItem=r;let s=r.uri;try{s=Oo(s,t.primarySessionId).href}catch(c){}i.loadSource(s);const l=()=>{this.hasDetails=!0};i.once(d.LEVEL_LOADED,l),i.once(d.AUDIO_TRACK_LOADED,l),i.once(d.SUBTITLE_TRACK_LOADED,l),i.on(d.MEDIA_ATTACHING,(c,{media:u})=>{this.removeMediaListeners(),this.mediaAttached=u,this.interstitial.playoutLimit&&(u.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&i.on(d.BUFFER_APPENDED,()=>{const p=this.bufferedEnd;this.reachedPlayout(p)&&(this._bufferedEosTime=p,i.trigger(d.BUFFERED_TO_END,void 0))}))})}get appendInPlace(){var e;return((e=this.interstitial)==null?void 0:e.appendInPlace)||!1}bufferedInPlaceToEnd(e){var t;if(!this.appendInPlace)return!1;if((t=this.hls)!=null&&t.bufferedToEnd)return!0;if(!e||!this._bufferedEosTime)return!1;const n=this.timelineOffset,r=vn.bufferInfo(e,n,0);return this.getAssetTime(r.end)>=this._bufferedEosTime-.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=vn.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;return e||0}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){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.destroy(),this.hls=this.interstitial=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(e){this.hls.attachMedia(e)}detachMedia(){this.removeMediaListeners(),this.mediaAttached=null,this.hls.detachMedia()}resumeBuffering(){this.hls.resumeBuffering()}pauseBuffering(){this.hls.pauseBuffering()}transferMedia(){return this.bufferSnapShot(),this.hls.transferMedia()}resetDetails(){const e=this.hls;if(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){this.hls.on(e,t)}once(e,t,n){this.hls.once(e,t)}off(e,t,n){this.hls.off(e,t)}toString(){var e;return`HlsAssetPlayer: ${Ps(this.assetItem)} ${(e=this.hls)==null?void 0:e.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const Fo=.033;class Vu extends W{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))return i}}return 0}get assetIdAtEnd(){var e,t;const n=(e=this.items)==null||(t=e[this.length-1])==null?void 0:t.event;if(n){const r=n.assetList,i=r[r.length-1];if(i)return i.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,f)=>{const p=u.cue.pre,S=u.cue.post,C=f.cue.pre,D=f.cue.post;if(p&&!C)return-1;if(C&&!p||S&&!D)return 1;if(D&&!S)return-1;if(!p&&!C&&!S&&!D){const te=u.startTime,Y=f.startTime;if(te!==Y)return te-Y}return u.dateRange.tagOrder-f.dateRange.tagOrder}),this.events=s,c.forEach(u=>{this.removeEvent(u)}),this.updateSchedule(e,c)}updateSchedule(e,t=[]){const n=this.events||[];if(n.length||t.length||this.length<2){const r=this.items,i=this.parseSchedule(n,e);(t.length||(r==null?void 0:r.length)!==i.length||i.some((l,c)=>Math.abs(l.playout.start-r[c].playout.start)>.005||Math.abs(l.playout.end-r[c].playout.end)>.005))&&(this.items=i,this.onScheduleUpdate(t,r))}}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 Gu(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((f,p)=>{const S=f.cue.pre,C=f.cue.post,D=e[p-1]||null,te=f.appendInPlace,Y=C?i:f.startOffset,be=f.duration,Xe=f.timelineOccupancy===da.Range?be:0,Me=f.resumptionOffset,mt=(D==null?void 0:D.startTime)===Y,Ut=Y+f.cumulativeDuration;let hn=te?Ut+be:Y+Me;if(S||!C&&Y<=0){const Jt=u;u+=Xe,f.timelineStart=Ut;const en=s;s+=be,n.push({event:f,start:Ut,end:hn,playout:{start:en,end:s},integrated:{start:Jt,end:u}})}else if(Y<=i){if(!mt){const xt=Y-c;if(xt>Fo){const An=c,jn=u;u+=xt;const gr=s;s+=xt;const cr={previousEvent:e[p-1]||null,nextEvent:f,start:An,end:An+xt,playout:{start:gr,end:s},integrated:{start:jn,end:u}};n.push(cr)}else xt>0&&D&&(D.cumulativeDuration+=xt,n[n.length-1].end=Y)}C&&(hn=Ut),f.timelineStart=Ut;const Jt=u;u+=Xe;const en=s;s+=be,n.push({event:f,start:Ut,end:hn,playout:{start:en,end:s},integrated:{start:Jt,end:u}})}else return;const It=f.resumeTime;C||It>i?c=i:c=It}),c<i){var l;const f=c,p=u,S=i-c;u+=S;const C=s;s+=S,n.push({previousEvent:((l=n[n.length-1])==null?void 0:l.event)||null,nextEvent:null,start:c,end:f+S,playout:{start:C,end:s},integrated:{start:p,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,f=l.cue.post,p=u?0:f?r:l.startTime;this.updateAssetDurations(l),s===p?l.cumulativeDuration=i:(i=0,s=p),!f&&l.snapOptions.in&&(l.resumeAnchor=In(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<Fo&&(e[c+1].appendInPlace=!1,e[c+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${l}`));const C=h(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)>ks?(this.log(`"${e.identifier}" resumption ${n} not aligned with estimated timeline end ${r}`),!1):t?!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=In(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 f=s==="audio"?.175:0;return Math.abs(u.start-n)<ks+f||Math.abs(u.end-n)<ks+f?!1:(this.log(`"${e.identifier}" resumption ${n} not aligned with ${s} fragment bounds (${u.start}-${u.end} sn: ${u.sn} cc: ${u.cc})`),!0)}):(this.log(`"${e.identifier}" resumption ${n} can not be aligned with media (none selected)`),!1)}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let n=0,r=!1,i=!1;e.assetList.forEach((s,l)=>{const c=t+n;s.startOffset=n,s.timelineStart=c,r||(r=s.duration===null),i||(i=!!s.error);const u=s.error?0:s.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 ds(a){return`[${a.event?'"'+a.event.identifier+'"':"primary"}: ${a.start.toFixed(2)}-${a.end.toFixed(2)}]`}class Yu{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const n=e.assetListUrl;let r;try{r=Oo(n,this.hls.sessionId,e.baseUrl)}catch(S){const C=this.assignAssetListError(e,B.ASSET_LIST_LOAD_ERROR,S,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,f={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},p={onSuccess:(S,C,D,te)=>{const Y=S.data,be=Y==null?void 0:Y.ASSETS;if(!Array.isArray(be)){const Xe=this.assignAssetListError(e,B.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),D.url,C,te);this.hls.trigger(d.ERROR,Xe);return}e.assetListResponse=Y,this.hls.trigger(d.ASSET_LIST_LOADED,{event:e,assetListResponse:Y,networkDetails:te})},onError:(S,C,D,te)=>{const Y=this.assignAssetListError(e,B.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${S.code} ${S.text} (${C.url})`),C.url,te,D);this.hls.trigger(d.ERROR,Y)},onTimeout:(S,C,D)=>{const te=this.assignAssetListError(e,B.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${C.url})`),C.url,S,D);this.hls.trigger(d.ERROR,te)}};return l.load(c,f,p),this.hls.trigger(d.ASSET_LIST_LOADING,{event:e}),l}assignAssetListError(e,t,n,r,i,s){return e.error=n,{type:oe.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:r,error:n,networkDetails:s,stats:i}}}function Bo(a){a==null||a.play().catch(()=>{})}class Xu extends W{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)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(),this.checkBuffer(),s&&n<l.start||n>=l.end){var c;const S=this.schedule.findItemIndexAtTime(this.timelinePos);if(!this.isInterstitial(l)&&(c=this.media)!=null&&c.paused&&(this.shouldPlay=!1),!s){const C=this.findItemIndex(l);if(S>C){const D=this.schedule.findJumpRestrictedIndex(C+1,S);if(D>C){this.setSchedulePosition(D);return}}}this.setSchedulePosition(S);return}const u=this.playingAsset;if(!u){if(this.playingLastItem&&this.isInterstitial(l)){const S=l.event.assetList[0];S&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(n,S))}return}const f=u.timelineStart,p=u.duration||0;(s&&n<f||n>=f+p)&&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,s=this.playingItem,l=i.events||[],c=i.items||[],u=i.durations,f=n.map(D=>D.identifier),p=!!(l.length||f.length);(p||r)&&this.log(`INTERSTITIALS_UPDATED (${l.length}): ${l}
Schedule: ${c.map(D=>ds(D))} pos: ${this.timelinePos}`),f.length&&this.log(`Removed events ${f}`),this.playerQueue.forEach(D=>{if(D.interstitial.appendInPlace){const te=D.assetItem.timelineStart,Y=D.timelineOffset-te;if(Y)try{D.timelineOffset=te}catch(be){Math.abs(Y)>ks&&this.warn(`${be} ("${D.assetId}" ${D.timelineOffset}->${te})`)}}});let S=null;if(s){const D=this.updateItem(s,this.timelinePos);this.itemsMatch(s,D)&&(this.playingItem=D,this.waitingItem=this.endedItem=null,S=()=>this.trimInPlace(D,s))}else this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const C=this.bufferingItem;if(C){const D=this.updateItem(C,this.bufferedPos);this.itemsMatch(C,D)?(this.bufferingItem=D,S||(S=()=>this.trimInPlace(D,C))):C.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(C.event,null))}if(n.forEach(D=>{D.assetList.forEach(te=>{this.clearAssetPlayer(te.identifier,null)})}),p||r){if(this.hls.trigger(d.INTERSTITIALS_UPDATED,{events:l.slice(0),schedule:c.slice(0),durations:u,removedIds:f}),this.isInterstitial(s)&&f.includes(s.event.identifier)){this.warn(`Interstitial "${s.event.identifier}" removed while playing`),this.primaryFallback(s.event);return}S&&S(),this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Yu(e),this.schedule=new Vu(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;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.manager=null,this.hls=this.HlsPlayerClass=this.schedule=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){Ui(e,"play",this.onPlay),Ui(e,"pause",this.onPause),Ui(e,"seeking",this.onSeeking),Ui(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const n=this.media=t.media;ki(n,"seeking",this.onSeeking),ki(n,"timeupdate",this.onTimeupdate),ki(n,"play",this.onPlay),ki(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.manager){if(!this.hls)return null;const e=this,t=()=>e.bufferingItem||e.waitingItem,n=p=>p&&e.getAssetPlayer(p.identifier),r=(p,S,C,D,te)=>{if(p){let Y=p[S].start;const be=p.event;if(be){if(S==="playout"||be.timelineOccupancy!==da.Point){const Xe=n(C);(Xe==null?void 0:Xe.interstitial)===be&&(Y+=Xe.assetItem.startOffset+Xe[te])}}else{const Xe=D==="bufferedPos"?s():e[D];Y+=Xe-p.start}return Y}return 0},i=(p,S)=>{if(p!==0&&S!=="primary"&&e.schedule.length){var C;const D=e.schedule.findItemIndexAtTime(p),te=(C=e.schedule.items)==null?void 0:C[D];if(te){const Y=te[S].start-te.start;return p+Y}}return p},s=()=>{const p=e.bufferedPos;return p===Number.MAX_VALUE?l("primary"):Math.max(p,0)},l=p=>{var S;return(S=e.primaryDetails)!=null&&S.live?e.primaryDetails.edge:e.schedule.durations[p]},c=(p,S)=>{var C,D;const te=e.effectivePlayingItem;if(te!=null&&(C=te.event)!=null&&C.restrictions.skip)return;e.log(`seek to ${p} "${S}"`);const Y=e.effectivePlayingItem,be=e.schedule.findItemIndexAtTime(p,S),Xe=(D=e.schedule.items)==null?void 0:D[be],Me=e.getBufferingPlayer(),mt=Me==null?void 0:Me.interstitial,Ut=mt==null?void 0:mt.appendInPlace,hn=Y&&e.itemsMatch(Y,Xe);if(Y&&(Ut||hn)){const Jt=n(e.playingAsset),en=(Jt==null?void 0:Jt.media)||e.primaryMedia;if(en){const xt=S==="primary"?en.currentTime:r(Y,S,e.playingAsset,"timelinePos","currentTime"),An=p-xt,jn=(Ut?xt:en.currentTime)+An;if(jn>=0&&(!Jt||Ut||jn<=Jt.duration)){en.currentTime=jn;return}}}if(Xe){let Jt=p;if(S!=="primary"){const xt=Xe[S].start,An=p-xt;Jt=Xe.start+An}const en=!e.isInterstitial(Xe);if((!e.isInterstitial(Y)||Y.event.appendInPlace)&&(en||Xe.event.appendInPlace)){const xt=e.media||(Ut?Me==null?void 0:Me.media:null);xt&&(xt.currentTime=Jt)}else if(Y){const xt=e.findItemIndex(Y);if(be>xt){const jn=e.schedule.findJumpRestrictedIndex(xt+1,be);if(jn>xt){e.setSchedulePosition(jn);return}}let An=0;if(en)e.timelinePos=Jt,e.checkBuffer();else{var It;const jn=Xe==null||(It=Xe.event)==null?void 0:It.assetList;if(jn){const gr=p-(Xe[S]||Xe).start;for(let cr=jn.length;cr--;){const ur=jn[cr];if(ur.duration&&gr>=ur.startOffset&&gr<ur.startOffset+ur.duration){An=cr;break}}}}e.setSchedulePosition(be,An)}}},u=()=>{const p=e.effectivePlayingItem;if(e.isInterstitial(p))return p;const S=t();return e.isInterstitial(S)?S:null},f={get currentTime(){const p=u(),S=e.effectivePlayingItem;return S&&S===p?r(S,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-S.playout.start:0},set currentTime(p){const S=u(),C=e.effectivePlayingItem;C&&C===S&&c(p+C.playout.start,"playout")},get duration(){const p=u();return p?p.playout.end-p.playout.start:0},get assetPlayers(){var p;const S=(p=u())==null?void 0:p.event.assetList;return S?S.map(C=>e.getAssetPlayer(C.identifier)):[]},get playingIndex(){var p;const S=(p=u())==null?void 0:p.event;return S&&e.effectivePlayingAsset?S.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return u()}};this.manager={get events(){var p,S;return((p=e.schedule)==null||(S=p.events)==null?void 0:S.slice(0))||[]},get schedule(){var p,S;return((p=e.schedule)==null||(S=p.items)==null?void 0:S.slice(0))||[]},get interstitialPlayer(){return u()?f:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const p=t();return e.findItemIndex(p)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const p=e.effectivePlayingItem;return e.findItemIndex(p)},primary:{get bufferedEnd(){return s()},get currentTime(){const p=e.timelinePos;return p>0?p:0},set currentTime(p){c(p,"primary")},get duration(){return l("primary")},get seekableStart(){var p;return((p=e.primaryDetails)==null?void 0:p.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(p){c(p,"integrated")},get duration(){return l("integrated")},get seekableStart(){var p;return i(((p=e.primaryDetails)==null?void 0:p.fragmentStart)||0,"integrated")}},skip:()=>{const p=e.effectivePlayingItem,S=p==null?void 0:p.event;if(S&&!S.restrictions.skip){const C=e.findItemIndex(p);if(S.appendInPlace){const D=p.playout.start+p.event.duration;c(D+.001,"playout")}else e.advanceAfterAssetEnded(S,C,1/0)}}}}return this.manager}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,n;if(this.mediaSelection===null)return;const r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let i=this.media;!i&&(e=this.bufferingItem)!=null&&(t=e.event)!=null&&t.appendInPlace&&(i=this.primaryMedia);const s=(n=i)==null?void 0:n.currentTime;if(!(s===void 0||!h(s)))return s}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} ${Nt(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 f;if(s.media)c&&(i=s.transferMedia(),this.detachedData=i),f="Primary";else if(u){const C=this.getBufferingPlayer();C?(i=C.transferMedia(),f=`${C}`):f="detached MediaSource"}else f="detached media";if(!i){if(u)i=this.detachedData,this.log(`using detachedData: MediaSource ${Nt(i)}`);else if(!this.detachedData||s.media===t){const C=this.playerQueue;C.length>1&&C.forEach(D=>{if(l&&D.interstitial.appendInPlace!==c){const te=D.interstitial;this.clearInterstitial(D.interstitial,null),te.appendInPlace=!1,te.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${te}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const p=i&&"mediaSource"in i&&((r=i.mediaSource)==null?void 0:r.readyState)!=="closed",S=p&&i?i:t;if(this.log(`${p?"transfering MediaSource":"attaching media"} to ${l?e:"Primary"} from ${f}`),S===i){const C=l&&e.assetId===this.schedule.assetIdAtEnd;S.overrides={duration:this.schedule.duration,endOfStream:!l||C,cueRemoval:!l}}e.attachMedia(S)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const e=this.schedule,t=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)}}advanceAfterAssetEnded(e,t,n){const r=Fa(e,n);if(!e.isAssetPastPlayoutLimit(r))this.setSchedulePosition(t,r);else{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,this.checkBuffer()),this.setSchedulePosition(s)}}}setScheduleToAssetAtTime(e,t){const n=this.schedule,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){const n=this.schedule.items;if(!n||this.playbackDisabled)return;this.log(`setSchedulePosition ${e}, ${t}`);const r=e>=0?n[e]:null,i=this.playingItem,s=this.playingLastItem;if(this.isInterstitial(i)){var l;const u=i.event,f=this.playingAsset,p=f==null?void 0:f.identifier,S=p?this.getAssetPlayer(p):null;if(S&&p&&(!this.eventItemsMatch(i,r)||t!==void 0&&p!==((l=u.assetList)==null?void 0:l[t].identifier))){var c;const C=u.findAssetIndex(f);if(this.log(`INTERSTITIAL_ASSET_ENDED ${C+1}/${u.assetList.length} ${Ps(f)}`),this.endedAsset=f,this.playingAsset=null,this.hls.trigger(d.INTERSTITIAL_ASSET_ENDED,{asset:f,assetListIndex:C,event:u,schedule:n.slice(0),scheduleIndex:e,player:S}),i!==this.playingItem){this.itemsMatch(i,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(u,this.findItemIndex(this.playingItem),C);return}this.retreiveMediaSource(p,r),S.media&&!((c=this.detachedData)!=null&&c.mediaSource)&&S.detachMedia()}if(!this.eventItemsMatch(i,r)&&(this.endedItem=i,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${u} ${ds(i)}`),u.hasPlayed=!0,this.hls.trigger(d.INTERSTITIAL_ENDED,{event:u,schedule:n.slice(0),scheduleIndex:e}),u.cue.once)){this.updateSchedule();const C=this.schedule.items;if(r&&C){const D=this.findItemIndex(r);this.advanceSchedule(D,C,t,i,s)}return}}this.advanceSchedule(e,n,t,i,s)}advanceSchedule(e,t,n,r,i){const s=e>=0?t[e]:null,l=this.primaryMedia,c=this.playerQueue;if(c.length&&c.forEach(u=>{const f=u.interstitial,p=this.schedule.findEventIndex(f.identifier);(p<e||p>e+1)&&this.clearInterstitial(f,s)}),this.isInterstitial(s)){this.timelinePos=Math.min(Math.max(this.timelinePos,s.start),s.end);const u=s.event;if(n===void 0){n=this.schedule.findAssetIndex(u,this.timelinePos);const C=Fa(u,n-1);if(u.isAssetPastPlayoutLimit(C)){this.advanceAfterAssetEnded(u,e,n);return}n=C}const f=this.waitingItem;this.assetsBuffered(s,l)||this.setBufferingItem(s);let p=this.preloadAssets(u,n);if(this.eventItemsMatch(s,f||r)||(this.waitingItem=s,this.log(`INTERSTITIAL_STARTED ${ds(s)} ${u.appendInPlace?"append in place":""}`),this.hls.trigger(d.INTERSTITIAL_STARTED,{event:u,schedule:t.slice(0),scheduleIndex:e})),!u.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${u}`);return}if(u.assetListLoader&&(u.assetListLoader.destroy(),u.assetListLoader=void 0),!l){this.log(`Waiting for attachMedia to start Interstitial ${u}`);return}this.waitingItem=this.endedItem=null,this.playingItem=s;const S=u.assetList[n];if(!S){const C=t[e+1],D=this.media;C&&D&&!this.isInterstitial(C)&&D.currentTime<C.start&&(D.currentTime=this.timelinePos=C.start),this.advanceAfterAssetEnded(u,e,n||0);return}if(p||(p=this.getAssetPlayer(S.identifier)),p===null||p.destroyed){const C=u.assetList.length;this.warn(`asset ${n+1}/${C} player destroyed ${u}`),p=this.createAssetPlayer(u,S,n)}if(!this.eventItemsMatch(s,this.bufferingItem)&&u.appendInPlace&&this.isAssetBuffered(S))return;this.startAssetPlayer(p,n,t,e,l),this.shouldPlay&&Bo(p.media)}else s!==null?(this.resumePrimary(s,e,r),this.shouldPlay&&Bo(this.hls.media)):i&&this.isInterstitial(r)&&(this.endedItem=null,this.playingItem=r,r.event.appendInPlace||this.attachPrimary(this.schedule.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var e,t;return(e=this.mediaSelection)==null||(t=e.main)==null?void 0:t.details}get primaryLive(){var e;return!!((e=this.primaryDetails)!=null&&e.live)}resumePrimary(e,t,n){var r;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${ds(e)}`),!((r=this.detachedData)!=null&&r.mediaSource)){let s=this.timelinePos;(s<e.start||s>=e.end)&&(s=this.getPrimaryResumption(e,t),this.timelinePos=s),this.attachPrimary(s,e)}if(!n)return;const i=this.schedule.items;i&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${ds(e)}`),this.hls.trigger(d.INTERSTITIALS_PRIMARY_RESUMED,{schedule:i.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:vn.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(){this.stopLoad(),this.schedule.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)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=Be(t);this.playerQueue.forEach(r=>r.hls.setAudioOption(t)||r.hls.setAudioOption(n))}onSubtitleTrackSwitch(e,t){const n=Be(t);this.playerQueue.forEach(r=>r.hls.setSubtitleOption(t)||t.id!==-1&&r.hls.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){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){const n=this.schedule.items;if(e&&n){const r=this.findItemIndex(e,t);return n[r]||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=vn.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.findItemIndex(e,t):-1}updateSchedule(){const e=this.mediaSelection;e&&this.schedule.updateSchedule(e,[])}checkBuffer(e){const t=this.schedule.items;if(!t)return;const n=vn.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=n.len<1),this.updateBufferedPos(n.end,t,e)}updateBufferedPos(e,t,n){const r=this.schedule,i=this.bufferingItem;if(this.bufferedPos>e)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,f;const p=this.findItemIndex(i),S=Math.min(p+1,t.length-1),C=t[S];if((c===-1&&i&&e>=i.end||(u=C.event)!=null&&u.appendInPlace&&e+.01>=C.start)&&(c=S),S-l>1&&(i==null||(f=i.event)==null?void 0:f.appendInPlace)===!1)return;if(this.bufferedPos=e,c>p&&c>l)this.bufferedToItem(C);else{const D=this.primaryDetails;this.primaryLive&&D&&e>D.edge-D.targetduration&&C.start<D.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(C)&&this.preloadAssets(C.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))this.bufferingItem!==e&&(this.bufferingItem=e);else{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;this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${ds(e)}`+(t?` (${c.toFixed(2)} remaining)`:"")),this.playbackDisabled||(s?e.event.assetList.forEach(u=>{const f=this.getAssetPlayer(u.identifier);f&&f.resumeBuffering()}):(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)})}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=n.assetList[t],c=this.primaryMedia;l&&c&&this.bufferAssetPlayer(s,c)}}}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 S=this.playingItem;!this.isInterstitial(S)&&(S==null||(l=S.nextEvent)==null?void 0:l.identifier)===e.identifier&&this.flushFrontBuffer(c+.25)}let u,f=0;if(!this.playingItem&&this.primaryLive&&(f=this.hls.startPosition,f===-1&&(f=this.hls.liveSyncPosition||0)),f&&!(e.cue.pre||e.cue.post)){const S=f-c;S>0&&(u=Math.round(S*1e3)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${n?1:r} ${e}${u?` live-start: ${f} start-offset: ${u}`:""}`),n)return this.createAsset(e,0,0,c,e.duration,n);const p=this.assetListLoader.loadAssetList(e,u);p&&(e.assetListLoader=p)}else if(!s&&r){for(let c=t;c<r;c++){const u=e.assetList[c],f=this.getAssetPlayerQueueIndex(u.identifier);(f===-1||this.playerQueue[f].destroyed)&&!u.error&&this.createAssetPlayer(e,u,c)}return this.getAssetPlayer(e.assetList[t].identifier)}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:ju(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=m({},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 f=0;if(this.primaryLive||e.appendInPlace){const Me=this.timelinePos-t.timelineStart;if(Me>1){const mt=t.duration;mt&&Me<mt&&(f=Me)}}const p=t.identifier,S=b(b({},i),{},{autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:r.sessionId,assetPlayerId:p,abrEwmaDefaultEstimate:r.bandwidthEstimate,interstitialsController:void 0,startPosition:f,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:s,audioPreference:c||i.audioPreference,subtitlePreference:u||i.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(S.timelineOffset=t.timelineStart));const C=S.cmcd;C!=null&&C.sessionId&&C.contentId&&(S.cmcd=m({},C,{contentId:Vs(t.uri)})),this.getAssetPlayer(p)&&this.warn(`Duplicate date range identifier ${e} and asset ${p}`);const D=new Hu(this.HlsPlayerClass,S,e,t);this.playerQueue.push(D),e.assetList[n]=t;const te=Me=>{if(Me.live){const hn=new Error(`Interstitials MUST be VOD assets ${e}`),It={fatal:!0,type:oe.OTHER_ERROR,details:B.INTERSTITIAL_ASSET_ITEM_ERROR,error:hn};this.handleAssetItemError(It,e,this.schedule.findEventIndex(e.identifier),n,hn.message);return}const mt=Me.edge-Me.fragmentStart,Ut=t.duration;(Ut===null||mt>Ut)&&(this.log(`Interstitial asset "${p}" duration change ${Ut} > ${mt}`),t.duration=mt,this.updateSchedule())};D.on(d.LEVEL_UPDATED,(Me,{details:mt})=>te(mt)),D.on(d.LEVEL_PTS_UPDATED,(Me,{details:mt})=>te(mt));const Y=(Me,mt)=>{const Ut=this.getAssetPlayer(p);if(Ut&&mt.tracks){Ut.off(d.BUFFER_CODECS,Y),Ut.tracks=mt.tracks;const hn=this.primaryMedia;this.bufferingAsset===Ut.assetItem&&hn&&!Ut.media&&this.bufferAssetPlayer(Ut,hn)}};D.on(d.BUFFER_CODECS,Y);const be=()=>{var Me;const mt=this.getAssetPlayer(p);if(this.log(`buffered to end of asset ${mt}`),!mt)return;const Ut=this.schedule.findEventIndex(e.identifier),hn=(Me=this.schedule.items)==null?void 0:Me[Ut];if(this.isInterstitial(hn)){const Jt=e.findAssetIndex(t),en=Fa(e,Jt);if(!e.isAssetPastPlayoutLimit(en))this.bufferedToItem(hn,en);else{var It;const xt=(It=this.schedule.items)==null?void 0:It[Ut+1];xt&&this.bufferedToItem(xt)}}};D.on(d.BUFFERED_TO_END,be);const Xe=Me=>()=>{if(!this.getAssetPlayer(p))return;this.shouldPlay=!0;const Ut=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,Ut,Me)};return D.once(d.MEDIA_ENDED,Xe(n)),D.once(d.PLAYOUT_LIMIT_REACHED,Xe(1/0)),D.on(d.ERROR,(Me,mt)=>{const Ut=this.getAssetPlayer(p);if(mt.details===B.BUFFER_STALLED_ERROR){if(Ut!=null&&Ut.media){const hn=Ut.currentTime,It=Ut.duration-hn;hn&&e.appendInPlace&&It/Ut.media.playbackRate<.5?(this.log(`Advancing buffer past end of asset ${p} ${e} at ${Ut.media.currentTime}`),be()):(this.warn(`Stalled at ${hn} of ${hn+It} in asset ${p} ${e}`),this.onTimeupdate(),this.checkBuffer(!0))}return}this.handleAssetItemError(mt,e,this.schedule.findEventIndex(e.identifier),n,`Asset player error ${mt.error} ${e}`)}),D.on(d.DESTROYING,()=>{if(!this.getAssetPlayer(p))return;const mt=new Error(`Asset player destroyed unexpectedly ${p}`),Ut={fatal:!0,type:oe.OTHER_ERROR,details:B.INTERSTITIAL_ASSET_ITEM_ERROR,error:mt};this.handleAssetItemError(Ut,e,this.schedule.findEventIndex(e.identifier),n,mt.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${Ps(t)}`),this.hls.trigger(d.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:n,event:e,player:D}),D}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&&ds(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,f=this.playingAsset;this.endedAsset=null,this.playingAsset=l,(!f||f.identifier!==c)&&(f&&(this.clearAssetPlayer(f.identifier,n[r]),delete f.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${u} ${Ps(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;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;this.setBufferingItem(c),this.bufferingAsset=s;const u=this.getBufferingPlayer();if(u===e)return;const f=i.appendInPlace;if(f&&(u==null?void 0:u.interstitial.appendInPlace)===!1)return;const p=(u==null?void 0:u.tracks)||((r=this.detachedData)==null?void 0:r.tracks)||this.requiredTracks;if(f&&s!==this.playingAsset){if(!e.tracks)return;if(p&&!ie(p,e.tracks)){const S=new Error(`Asset ${Ps(s)} SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(p)}')`),C={fatal:!0,type:oe.OTHER_ERROR,details:B.INTERSTITIAL_ASSET_ITEM_ERROR,error:S},D=i.findAssetIndex(s);this.handleAssetItemError(C,i,l,D,S.message);return}}this.transferMediaTo(e,t)}handleAssetItemError(e,t,n,r,i){if(e.details===B.BUFFER_STALLED_ERROR)return;const s=t.assetList[r];this.warn(`INTERSTITIAL_ASSET_ERROR ${s&&Ps(s)} ${e.error}`);const l=s==null?void 0:s.identifier,c=this.getAssetPlayerQueueIndex(l),u=this.playerQueue[c]||null,f=this.schedule.items,p=m({},e,{fatal:!1,errorAction:ct(!0),asset:s,assetListIndex:r,event:t,schedule:f,scheduleIndex:n,player:u});if(this.hls.trigger(d.INTERSTITIAL_ASSET_ERROR,p),!e.fatal)return;const S=this.playingAsset,C=new Error(i);if(s&&(this.clearAssetPlayer(l,null),s.error=C),!t.assetList.some(D=>!D.error))t.error=C;else{for(let D=r;D<t.assetList.length;D++)this.resetAssetPlayer(t.assetList[D].identifier);this.updateSchedule()}t.error?this.primaryFallback(t):S&&S.identifier===l&&this.advanceAfterAssetEnded(t,n,r)}primaryFallback(e){const t=e.timelineStart,n=this.effectivePlayingItem;if(this.updateSchedule(),n){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${this.timelinePos} playing: ${n?ds(n):"<none>"} error: ${e.error}`);let r=this.timelinePos;r===-1&&(r=this.hls.startPosition);const i=this.updateItem(n,r);this.itemsMatch(n,i)&&this.clearInterstitial(e,null),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t));const s=this.schedule.findItemIndexAtTime(r);this.setSchedulePosition(s)}else this.checkStart()}onAssetListLoaded(e,t){var n;const r=t.event,i=r.identifier,s=t.assetListResponse.ASSETS;if(!this.schedule.hasEvent(i))return;const l=r.timelineStart,c=r.duration;let u=0;s.forEach((D,te)=>{const Y=parseFloat(D.DURATION);this.createAsset(r,te,u,l+u,Y,D.URI),u+=Y}),r.duration=u,this.log(`Loaded asset-list with duration: ${u} (was: ${c}) ${r}`);const f=this.waitingItem,p=(f==null?void 0:f.event.identifier)===i;this.updateSchedule();const S=(n=this.bufferingItem)==null?void 0:n.event;if(p){var C;const D=this.schedule.findEventIndex(i),te=(C=this.schedule.items)==null?void 0:C[D];if(te){if(!this.playingItem&&this.timelinePos>te.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==D){r.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${r}`),this.primaryFallback(r);return}this.setBufferingItem(te)}this.setSchedulePosition(D)}else if((S==null?void 0:S.identifier)===i&&S.appendInPlace){const D=r.assetList[0],te=this.getAssetPlayer(D.identifier),Y=this.primaryMedia;D&&te&&Y&&this.bufferAssetPlayer(te,Y)}}onError(e,t){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.primaryFallback(n);break}case B.BUFFER_STALLED_ERROR:{this.onTimeupdate(),this.checkBuffer(!0);break}}}}const Uo=500;class Qu extends Mr{constructor(e,t,n){super(e,t,n,"subtitle-stream-controller",re.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=sn.IDLE,this.setInterval(Uo),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)||(Ie(n)&&(this.fragPrevious=n),this.state=sn.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,re.SUBTITLE)}}onError(e,t){const n=t.frag;(n==null?void 0:n.type)===re.SUBTITLE&&(t.details===B.FRAG_GAP&&this.fragmentTracker.fragBuffered(n,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==sn.STOPPED&&(this.state=sn.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&Eo(this.levels,t)){this.levels=t.map(n=>new Ct(n));return}this.tracksBuffered=[],this.levels=t.map(n=>{const r=new Ct(n);return this.tracksBuffered[r.id]=[],r}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,re.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!==sn.STOPPED&&this.setInterval(Uo)}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 p=this.mainDetails;if(!p){this.startFragRequested=!1;return}const S=p.fragments[0];if(!c.details)s.hasProgramDateTime&&p.hasProgramDateTime?(Wi(s,p),u=s.fragmentStart):S&&(u=S.start,_r(s,u));else{var f;u=this.alignPlaylists(s,c.details,(f=this.levelLastLoaded)==null?void 0:f.details),u===0&&S&&(u=S.start,_r(s,u))}p&&!this.startFragRequested&&this.setStartPosition(p,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===sn.IDLE&&(In(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&&Kr(r.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(n),r.key.buffer,r.iv.buffer,Gr(r.method)).catch(l=>{throw i.trigger(d.ERROR,{type:oe.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=sn.IDLE})}}doTick(){if(!this.media){this.state=sn.IDLE;return}if(this.state===sn.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=vn.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,r.maxBufferHole),{end:l,len:c}=s,u=n.details,f=this.hls.maxBufferLength+u.levelTargetDuration;if(c>f)return;const p=u.fragments,S=p.length,C=u.edge;let D=null;const te=this.fragPrevious;if(l<C){const Xe=r.maxFragLookUpTolerance,Me=l>C-Xe?0:Xe;D=In(te,p,Math.max(p[0].start,l),Me),!D&&te&&te.start<p[0].start&&(D=p[0])}else D=p[S-1];if(D=this.filterReplacedPrimary(D,n.details),!D)return;const Y=D.sn-u.startSN,be=p[Y-1];if(be&&be.cc===D.cc&&this.fragmentTracker.getState(be)===We.NOT_LOADED&&(D=be),this.fragmentTracker.getState(D)===We.NOT_LOADED){const Xe=this.mapToInitFragWhenRequired(D);Xe&&this.loadFragment(Xe,n,l)}}}loadFragment(e,t,n){Ie(e)?super.loadFragment(e,t,n):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new Ju(this.tracksBuffered[this.currentTrackId]||[])}}class Ju{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 qu={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},Zo=a=>String.fromCharCode(qu[a]||a),Zi=15,es=100,$u={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},ec={17:2,18:4,21:6,22:8,23:10,19:13,20:15},tc={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},nc={25:2,26:4,29:6,30:8,31:10,27:13,28:15},rc=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class ic{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const n=typeof t=="function"?t():t;H.log(`${this.time} [${e}] ${n}`)}}}const ys=function(e){const t=[];for(let n=0;n<e.length;n++)t.push(e[n].toString(16));return t};class Ko{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 sc{constructor(){this.uchar=" ",this.penState=new Ko}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 ac{constructor(e){this.chars=[],this.pos=0,this.currPenState=new Ko,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<es;t++)this.chars.push(new sc);this.logger=e}equals(e){for(let t=0;t<es;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<es;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<es;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>es&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=es)}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=Zo(e);if(this.pos>=es){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<es;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<es;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 Ba{constructor(e){this.rows=[],this.currRow=Zi-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<Zi;t++)this.rows.push(new ac(e));this.logger=e}reset(){for(let e=0;e<Zi;e++)this.rows[e].clear();this.currRow=Zi-1}equals(e){let t=!0;for(let n=0;n<Zi;n++)if(!this.rows[n].equals(e.rows[n])){t=!1;break}return t}copy(e){for(let t=0;t<Zi;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<Zi;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 = "+Nt(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<Zi;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 = "+Nt(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<Zi;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 zo{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 Ba(n),this.nonDisplayedMemory=new Ba(n),this.lastOutputScreen=new Ba(n),this.currRollUpRow=this.displayedMemory.rows[Zi-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[Zi-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: "+Nt(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 jo{constructor(e,t,n){this.channels=void 0,this.currentChannel=0,this.cmdHistory=lc(),this.logger=void 0;const r=this.logger=new ic;this.channels=[null,new zo(e,t,r),new zo(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,()=>"["+ys([t[n],t[n+1]])+"] -> ("+ys([r,i])+")");const c=this.cmdHistory;if(r>=16&&r<=31){if(oc(r,i,c)){fa(null,null,c),this.logger.log(3,()=>"Repeated command ("+ys([r,i])+") is dropped");continue}fa(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 fa(null,null,c);if(!s&&(l=this.parseChars(r,i),l)){const f=this.currentChannel;f&&f>0?this.channels[f].insertChars(l):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!l&&this.logger.log(2,()=>"Couldn't parse cleaned data "+ys([r,i])+" orig: "+ys([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 ("+ys([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?$u[e]:tc[e]:n=s===1?ec[e]:nc[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 '"+Zo(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 = "+ys(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=rc[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()}fa(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 fa(a,e,t){t.a=a,t.b=e}function oc(a,e,t){return t.a===a&&t.b===e}function lc(){return{a:null,b:null}}var Ua=function(){if(vr!=null&&vr.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 f=arguments[u];for(const p in f)l[p]=f[p]}return l}function s(l,c,u){const f=this,p={enumerable:!0};f.hasBeenReset=!1;let S="",C=!1,D=l,te=c,Y=u,be=null,Xe="",Me=!0,mt="auto",Ut="start",hn=50,It="middle",Jt=50,en="middle";Object.defineProperty(f,"id",i({},p,{get:function(){return S},set:function(xt){S=""+xt}})),Object.defineProperty(f,"pauseOnExit",i({},p,{get:function(){return C},set:function(xt){C=!!xt}})),Object.defineProperty(f,"startTime",i({},p,{get:function(){return D},set:function(xt){if(typeof xt!="number")throw new TypeError("Start time must be set to a number.");D=xt,this.hasBeenReset=!0}})),Object.defineProperty(f,"endTime",i({},p,{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(f,"text",i({},p,{get:function(){return Y},set:function(xt){Y=""+xt,this.hasBeenReset=!0}})),Object.defineProperty(f,"region",i({},p,{get:function(){return be},set:function(xt){be=xt,this.hasBeenReset=!0}})),Object.defineProperty(f,"vertical",i({},p,{get:function(){return Xe},set:function(xt){const An=n(xt);if(An===!1)throw new SyntaxError("An invalid or illegal string was specified.");Xe=An,this.hasBeenReset=!0}})),Object.defineProperty(f,"snapToLines",i({},p,{get:function(){return Me},set:function(xt){Me=!!xt,this.hasBeenReset=!0}})),Object.defineProperty(f,"line",i({},p,{get:function(){return mt},set:function(xt){if(typeof xt!="number"&&xt!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");mt=xt,this.hasBeenReset=!0}})),Object.defineProperty(f,"lineAlign",i({},p,{get:function(){return Ut},set:function(xt){const An=r(xt);if(!An)throw new SyntaxError("An invalid or illegal string was specified.");Ut=An,this.hasBeenReset=!0}})),Object.defineProperty(f,"position",i({},p,{get:function(){return hn},set:function(xt){if(xt<0||xt>100)throw new Error("Position must be between 0 and 100.");hn=xt,this.hasBeenReset=!0}})),Object.defineProperty(f,"positionAlign",i({},p,{get:function(){return It},set:function(xt){const An=r(xt);if(!An)throw new SyntaxError("An invalid or illegal string was specified.");It=An,this.hasBeenReset=!0}})),Object.defineProperty(f,"size",i({},p,{get:function(){return Jt},set:function(xt){if(xt<0||xt>100)throw new Error("Size must be between 0 and 100.");Jt=xt,this.hasBeenReset=!0}})),Object.defineProperty(f,"align",i({},p,{get:function(){return en},set:function(xt){const An=r(xt);if(!An)throw new SyntaxError("An invalid or illegal string was specified.");en=An,this.hasBeenReset=!0}})),f.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class uc{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function Go(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 cc{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 Wo(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 Za=new Ua(0,0,""),ha=Za.align==="middle"?"middle":"center";function dc(a,e,t){const n=a;function r(){const l=Go(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 cc;Wo(l,function(S,C){let D;switch(S){case"region":for(let te=t.length-1;te>=0;te--)if(t[te].id===C){u.set(S,t[te].region);break}break;case"vertical":u.alt(S,C,["rl","lr"]);break;case"line":D=C.split(","),u.integer(S,D[0]),u.percent(S,D[0])&&u.set("snapToLines",!1),u.alt(S,D[0],["auto"]),D.length===2&&u.alt("lineAlign",D[1],["start",ha,"end"]);break;case"position":D=C.split(","),u.percent(S,D[0]),D.length===2&&u.alt("positionAlign",D[1],["start",ha,"end","line-left","line-right","auto"]);break;case"size":u.percent(S,C);break;case"align":u.alt(S,C,["start",ha,"end","left","right"]);break}},/:/,/\s/),c.region=u.get("region",null),c.vertical=u.get("vertical","");let f=u.get("line","auto");f==="auto"&&Za.line===-1&&(f=-1),c.line=f,c.lineAlign=u.get("lineAlign","start"),c.snapToLines=u.get("snapToLines",!0),c.size=u.get("size",100),c.align=u.get("align",ha);let p=u.get("position","auto");p==="auto"&&Za.position===50&&(p=c.align==="start"||c.align==="left"?0:c.align==="end"||c.align==="right"?100:50),c.position=p}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 Ho(a){return a.replace(/<br(?: \/)?>/gi,`
`)}class fc{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new uc,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=Ho(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){Wo(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 Ua(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{dc(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 hc=/\r\n|\n\r|\n|\r/g,Ka=function(e,t,n=0){return e.slice(n,n+t.length)===t},pc=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(!h(t)||!h(n)||!h(r)||!h(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*n,t+=60*1e3*r,t+=60*60*1e3*i,t};function za(a,e,t){return Vs(a.toString())+Vs(e.toString())+Vs(t)}const mc=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 gc(a,e,t,n,r,i,s){const l=new fc,c=Fe(new Uint8Array(a)).trim().replace(hc,`
`).split(`
`),u=[],f=e?Fl(e.baseTime,e.timescale):0;let p="00:00.000",S=0,C=0,D,te=!0;l.oncue=function(Y){const be=t[n];let Xe=t.ccOffset;const Me=(S-f)/9e4;if(be!=null&&be.new&&(C!==void 0?Xe=t.ccOffset=be.start:mc(t,n,Me)),Me){if(!e){D=new Error("Missing initPTS for VTT MPEGTS");return}Xe=Me-t.presentationOffset}const mt=Y.endTime-Y.startTime,Ut=Ii((Y.startTime+Xe-C)*9e4,r*9e4)/9e4;Y.startTime=Math.max(Ut,0),Y.endTime=Math.max(Ut+mt,0);const hn=Y.text.trim();Y.text=decodeURIComponent(encodeURIComponent(hn)),Y.id||(Y.id=za(Y.startTime,Y.endTime,hn)),Y.endTime>0&&u.push(Y)},l.onparsingerror=function(Y){D=Y},l.onflush=function(){if(D){s(D);return}i(u)},c.forEach(Y=>{if(te)if(Ka(Y,"X-TIMESTAMP-MAP=")){te=!1,Y.slice(16).split(",").forEach(be=>{Ka(be,"LOCAL:")?p=be.slice(6):Ka(be,"MPEGTS:")&&(S=parseInt(be.slice(7)))});try{C=pc(p)/1e3}catch(be){D=be}return}else Y===""&&(te=!1);l.parse(Y+`
`)}),l.flush()}const ja="stpp.ttml.im1t",Vo=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Yo=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,vc={left:"start",center:"center",right:"end",start:"start",end:"end"};function Xo(a,e,t,n){const r=N(new Uint8Array(a),["mdat"]);if(r.length===0){n(new Error("Could not parse IMSC1 mdat"));return}const i=r.map(l=>Fe(l)),s=Ol(e.baseTime,1,e.timescale);try{i.forEach(l=>t(yc(l,s)))}catch(l){n(l)}}function yc(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((p,S)=>(p[S]=r.getAttribute(`ttp:${S}`)||i[S],p),{}),l=r.getAttribute("xml:space")!=="preserve",c=Qo(Ga(r,"styling","style")),u=Qo(Ga(r,"layout","region")),f=Ga(r,"body","[begin]");return[].map.call(f,p=>{const S=Jo(p,l);if(!S||!p.hasAttribute("begin"))return null;const C=Ha(p.getAttribute("begin"),s),D=Ha(p.getAttribute("dur"),s);let te=Ha(p.getAttribute("end"),s);if(C===null)throw qo(p);if(te===null){if(D===null)throw qo(p);te=C+D}const Y=new Ua(C-e,te-e,S);Y.id=za(Y.startTime,Y.endTime,Y.text);const be=u[p.getAttribute("region")],Xe=c[p.getAttribute("style")],Me=_c(be,Xe,c),{textAlign:mt}=Me;if(mt){const Ut=vc[mt];Ut&&(Y.lineAlign=Ut),Y.align=mt}return m(Y,Me),Y}).filter(p=>p!==null)}function Ga(a,e,t){const n=a.getElementsByTagName(e)[0];return n?[].slice.call(n.querySelectorAll(t)):[]}function Qo(a){return a.reduce((e,t)=>{const n=t.getAttribute("xml:id");return n&&(e[n]=t),e},{})}function Jo(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?Jo(n,e):e?t+n.textContent.trim().replace(/\s+/g," "):t+n.textContent},"")}function _c(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=Wa(e,n,c)||Wa(a,n,c)||Wa(r,n,c);return u&&(l[c]=u),l},{})}function Wa(a,e,t){return a&&a.hasAttributeNS(e,t)?a.getAttributeNS(e,t):null}function qo(a){return new Error(`Could not parse ttml timestamp ${a}`)}function Ha(a,e){if(!a)return null;let t=Go(a);return t===null&&(Vo.test(a)?t=Ec(a,e):Yo.test(a)&&(t=bc(a,e))),t}function Ec(a,e){const t=Vo.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 bc(a,e){const t=Yo.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 pa{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 xc{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=tl(),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 pa(this,"textTrack1"),t=new pa(this,"textTrack2"),n=new pa(this,"textTrack3"),r=new pa(this,"textTrack4");this.cea608Parser1=new jo(1,e,t),this.cea608Parser2=new jo(3,n,r)}addCues(e,t,n,r,i){let s=!1;for(let l=i.length;l--;){const c=i[l],u=Sc(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}){const{unparsedVttFrags:s}=this;n===re.MAIN&&(this.initPTS[t.cc]={baseTime:r,timescale:i}),s.length&&(this.unparsedVttFrags=[],s.forEach(l=>{this.initPTS[l.frag.cc]?this.onFragLoaded(d.FRAG_LOADED,l):this.hls.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:l.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(el(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,Is(n[e]),No(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=>{Is(r[i]),delete r[i]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=tl(),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++)Is(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(Eo(this.tracks,n)){this.tracks=n;return}if(this.textTracks=[],this.tracks=n,this.config.renderTextTracksNatively){const s=this.media,l=s?ca(s.textTracks):null;if(this.tracks.forEach((c,u)=>{let f;if(l){let p=null;for(let S=0;S<l.length;S++)if(l[S]&&el(l[S],c)){p=l[S],l[S]=null;break}p&&(f=p)}if(f)Is(f);else{const p=$o(c);f=this.createTextTrack(p,c.name,c.lang),f&&(f.mode="disabled")}f&&this.textTracks.push(f)}),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===re.MAIN){var n,r;const{cea608Parser1:i,cea608Parser2:s,lastSn:l}=this,{cc:c,sn:u}=t.frag,f=(n=(r=t.part)==null?void 0:r.index)!=null?n:-1;i&&s&&(u!==l+1||u===l&&f!==this.lastPartIndex+1||c!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=c,this.lastSn=u,this.lastPartIndex=f}}onFragLoaded(e,t){const{frag:n,payload:r}=t;if(n.type===re.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;Xo(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;gc(u,this.initPTS[n.cc],this.vttCCs,n.cc,n.start,f=>{this._appendCues(f,n.level),c.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:n})},f=>{const p=f.message==="Missing initPTS for VTT MPEGTS";p?s.push(e):this._fallbackToIMSC1(n,r),c.logger.log(`Failed to parse VTT cue: ${f}`),!(p&&l>n.cc)&&c.trigger(d.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:n,error:f})})}_fallbackToIMSC1(e,t){const n=this.tracks[e.level];n.textCodec||Xo(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=>Mo(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===re.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===re.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=>Ma(l[c],t,n))}if(this.config.renderTextTracksNatively&&t===0&&r!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(c=>Ma(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 f=3&s;(f===0||f===1)&&(t[f].push(l),t[f].push(c))}}return t}}function $o(a){return a.characteristics&&/transcribes-spoken-dialog/gi.test(a.characteristics)&&/describes-music-and-sound/gi.test(a.characteristics)?"captions":"subtitles"}function el(a,e){return!!a&&a.kind===$o(e)&&Ra(e,a)}function Sc(a,e,t,n){return Math.min(e,n)-Math.max(a,t)}function tl(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const Ac=/\s/,wc={newCue(a,e,t,n){const r=[];let i,s,l,c,u;const f=self.VTTCue||self.TextTrackCue;for(let S=0;S<n.rows.length;S++)if(i=n.rows[S],l=!0,c=0,u="",!i.isEmpty()){var p;for(let te=0;te<i.chars.length;te++)Ac.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=Ho(u.trim()),D=za(e,t,C);a!=null&&(p=a.cues)!=null&&p.getCueById(D)||(s=new f(e,t,C),s.id=D,s.line=S+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((S,C)=>S.line==="auto"||C.line==="auto"?0:S.line>8&&C.line>8?C.line-S.line:S.line-C.line),r.forEach(S=>Mo(a,S))),r}};function Tc(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(a){}return!1}const Cc=/(\d+)-(\d+)\/(\d+)/;class nl{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||Ic,this.controller=new self.AbortController,this.stats=new g}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=Dc(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&&h(c)?c:u,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(r,e,this.response))},t.timeout),(Gs(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(p=>{var S;this.response=this.loader=p;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)),!p.ok){const{status:te,statusText:Y}=p;throw new kc(Y||"fetch, bad network response",te,p)}r.loading.first=C,r.total=Lc(p.headers)||r.total;const D=(S=this.callbacks)==null?void 0:S.onProgress;return D&&h(t.highWaterMark)?this.loadProgressively(p,r,e,t.highWaterMark,D):s?p.arrayBuffer():e.responseType==="json"?p.json():p.text()}).then(p=>{var S,C;const D=this.response;if(!D)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),r.loading.end=Math.max(self.performance.now(),r.loading.first);const te=p[l];te&&(r.loaded=r.total=te);const Y={url:D.url,data:p,code:D.status},be=(S=this.callbacks)==null?void 0:S.onProgress;be&&!h(t.highWaterMark)&&be(r,e,p,D),(C=this.callbacks)==null||C.onSuccess(Y,r,e,D)}).catch(p=>{var S;if(self.clearTimeout(this.requestTimeout),r.aborted)return;const C=p&&p.code||0,D=p?p.message:null;(S=this.callbacks)==null||S.onError({code:C,text:D},e,p?p.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 oi,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 f=u.value,p=f.length;return t.loaded+=p,p<r||s.dataLength?(s.push(f),s.dataLength>=r&&i(t,n,s.flush().buffer,e)):i(t,n,f.buffer,e),c()}).catch(()=>Promise.reject());return c()}}function Dc(a,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(m({},a.headers))};return a.rangeEnd&&t.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),t}function Rc(a){const e=Cc.exec(a);if(e)return parseInt(e[2])-parseInt(e[1])+1}function Lc(a){const e=a.get("Content-Range");if(e){const n=Rc(e);if(h(n))return n}const t=a.get("Content-Length");if(t)return parseInt(t)}function Ic(a,e){return new self.Request(a.url,e)}class kc extends Error{constructor(e,t,n){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=n}}const Pc=/^age:\s*[\d.]+\s*$/im;class rl{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 g,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&&h(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,f=t.responseType==="text"?t.responseText:null;if(u>=200&&u<300){const D=f!=null?f:t.response;if(D!=null){var s,l;n.loading.end=Math.max(self.performance.now(),n.loading.first);const te=t.responseType==="arraybuffer"?D.byteLength:D.length;n.loaded=n.total=te,n.bwEstimate=n.total*8e3/(n.loading.end-n.loading.first);const Y=(s=this.callbacks)==null?void 0:s.onProgress;Y&&Y(n,e,D,t);const be={url:t.responseURL,data:D,code:u};(l=this.callbacks)==null||l.onSuccess(be,n,e,t);return}}const p=i.loadPolicy.errorRetry,S=n.retry,C={url:e.url,data:void 0,code:u};if(Ft(p,S,!1,C))this.retry(p);else{var c;H.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(Ft(e,t,!0))this.retry(e);else{var n;H.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=xn(e,n.retry),n.retry++,H.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&&Pc.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 Nc={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Mc=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:rl,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Pn,bufferController:ql,capLevelController:Ia,errorController:_e,fpsController:Bu,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:Nc},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},Oc()),{},{subtitleStreamController:Qu,subtitleTrackController:Ku,timelineController:xc,audioStreamController:Yl,audioTrackController:Xl,emeController:Ls,cmcdController:Mu,contentSteeringController:Fu,interstitialsController:Xu});function Oc(){return{cueHandler:wc,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 Fc(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=Va(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(f=>{const p=`${s}Loading${f}`,S=e[p];if(S!==void 0&&c){u.push(p);const C=n[l].default;switch(e[l]={default:C},f){case"TimeOut":C.maxLoadTimeMs=S,C.maxTimeToFirstByteMs=S;break;case"MaxRetry":C.errorRetry.maxNumRetry=S,C.timeoutRetry.maxNumRetry=S;break;case"RetryDelay":C.errorRetry.retryDelayMs=S,C.timeoutRetry.retryDelayMs=S;break;case"MaxRetryTimeout":C.errorRetry.maxRetryDelayMs=S,C.timeoutRetry.maxRetryDelayMs=S;break}}}),u.length&&t.warn(`hls.js config: "${u.join('", "')}" setting(s) are deprecated, use "${l}": ${Nt(e[l])}`)}),b(b({},n),e)}function Va(a){return a&&typeof a=="object"?Array.isArray(a)?a.map(Va):Object.keys(a).reduce((e,t)=>(e[t]=Va(a[t]),e),{}):a}function Bc(a,e){const t=a.loader;t!==nl&&t!==rl?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),a.progressive=!1):Tc()&&(a.loader=nl,a.progressive=!0,a.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}const ma=2,Uc=.1,Zc=.05,Kc=100;class zc extends kn{constructor(e,t){super("gap-controller",e.logger),this.hls=null,this.fragmentTracker=null,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(Kc),this.mediaSource=t.mediaSource;const n=this.media=t.media;ki(n,"playing",this.onMediaPlaying),ki(n,"waiting",this.onMediaWaiting),ki(n,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:n}=this;n&&(Ui(n,"playing",this.onMediaPlaying),Ui(n,"waiting",this.onMediaWaiting),Ui(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,f=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&&!f&&e>t&&this.nudgeOnVideoHole(e,t)),this.waiting===0&&this.stallResolved(e);return}if(u||c){c&&this.stallResolved(e);return}if(f){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(!vn.getBuffered(s).length){this.nudgeRetry=0;return}const p=vn.bufferInfo(s,e,0),S=p.nextStart||0,C=this.fragmentTracker;if(l&&C&&this.hls){const hn=il(this.hls.inFlightFragments,e),It=p.len>ma,Jt=!S||hn||S-e>ma&&!C.getPartialFragment(e);if(It||Jt)return;this.moved=!1}const D=(r=this.hls)==null?void 0:r.latestLevelDetails;if(!this.moved&&this.stalled!==null&&C){if(!(p.len>0)&&!S)return;const It=Math.max(S,p.start||0)-e,en=!!(D!=null&&D.live)?D.targetduration*2:ma,xt=C.getPartialFragment(e);if(It>0&&(It<=en||xt)){s.paused||this._trySkipBufferHole(xt);return}}const te=i.detectStallWithCurrentTimeMs,Y=self.performance.now(),be=this.waiting;let Xe=this.stalled;if(Xe===null)if(be>0&&Y-be<te)Xe=this.stalled=be;else{this.stalled=Y;return}const Me=Y-Xe;if(!l&&(Me>=te||be)&&this.hls){var mt;if(((mt=this.mediaSource)==null?void 0:mt.readyState)==="ended"&&!(D!=null&&D.live)&&Math.abs(e-((D==null?void 0:D.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(d.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(p),!this.media||!this.hls)return}const Ut=vn.bufferInfo(s,e,i.maxBufferHole);this._tryFixBufferStall(Ut,Me,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=vn.bufferedInfo(vn.timeRangesToArray(this.buffered.audio),e,0);if(i.len>1&&t>=i.start){const s=vn.timeRangesToArray(r),l=vn.bufferedInfo(s,t,0).bufferedIndex;if(l>-1&&l<s.length-1){const c=vn.bufferedInfo(s,e,0).bufferedIndex,u=s[l].end,f=s[l+1].start;if((c===-1||c>l)&&f-u<1&&e-u<2){const p=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${u} -> ${f} buffered index: ${c}`);this.warn(p.message),this.media.currentTime+=1e-6;const S=this.fragmentTracker.getPartialFragment(e)||void 0,C=vn.bufferInfo(this.media,e,0);this.hls.trigger(d.ERROR,{type:oe.MEDIA_ERROR,details:B.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:p,reason:p.message,frag:S,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,f=s.getPartialFragment(n);if((f||u!=null&&u.live&&n<u.fragmentStart)&&(this._trySkipBufferHole(f)||!this.media))return;const p=e.buffered,S=this.adjacentTraversal(e,n);(p&&p.length>1&&e.len>c.maxBufferHole||e.nextStart&&(e.nextStart-n<c.maxBufferHole||S))&&(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,re.MAIN),s=n.getFragAtPos(r,re.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 (${Nt(e)})`);this.warn(s.message),t.trigger(d.ERROR,{type:oe.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=vn.bufferInfo(r,s,0),c=s<l.start?l.start:l.nextStart;if(c&&this.hls){const f=l.len<=i.maxBufferHole,p=l.len>0&&l.len<1&&r.readyState<3,S=c-s;if(S>0&&(f||p)){if(S>i.maxBufferHole){let D=!1;if(s===0){const te=n.getAppendedFrag(0,re.MAIN);te&&c<te.end&&(D=!0)}if(!D){const te=e||n.getAppendedFrag(s,re.MAIN);if(te){var u;if(!((u=this.hls.loadLevelObj)!=null&&u.details)||il(this.hls.inFlightFragments,c))return 0;let be=!1,Xe=te.end;for(;Xe<c;){const Me=n.getAppendedFrag(Xe,re.MAIN)||n.getPartialFragment(Xe);if(Me)Xe+=Me.duration;else{be=!0;break}}if(be)return 0}}}const C=Math.max(c+Zc,s+Uc);if(this.warn(`skipping hole, adjusting currentTime from ${s} to ${C}`),this.moved=!0,r.currentTime=C,!(e!=null&&e.gap)){const D=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${C}`);this.hls.trigger(d.ERROR,{type:oe.MEDIA_ERROR,details:B.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:D,reason:D.message,frag:e||void 0,buffer:l.len,bufferInfo:l})}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:oe.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:oe.MEDIA_ERROR,details:B.BUFFER_STALLED_ERROR,error:l,fatal:!0,buffer:e.len,bufferInfo:e})}}}function il(a,e){const t=sl(a.main);if(t&&t.start<=e)return t;const n=sl(a.audio);return n&&n.start<=e?n:null}function sl(a){if(!a)return null;switch(a.state){case sn.IDLE:case sn.STOPPED:case sn.ENDED:case sn.ERROR:return null}return a.frag}const jc=.25;function Ya(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function al(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,Nt(r?b({type:r},n):n))}return i}const ga=(()=>{const a=Ya();try{a&&new a(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class Gc{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!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.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.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(){const e=this.hls.latestLevelDetails;e&&this.updateDateRangeCues(e)}onMediaDetaching(e,t){this.media=null,!t.transferMedia&&(this.id3Track&&(this.removeCues&&Is(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 No(n,this.media),n}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:n,enableID3MetadataCues:r}}}=this;if(!n&&!r)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=Ya();if(s)for(let l=0;l<i.length;l++){const c=i[l].type;if(c===wi.emsg&&!n||!r)continue;const u=qa(i[l].data);if(u){const f=i[l].pts;let p=f+i[l].duration;p>ga&&(p=ga),p-f<=0&&(p=f+jc);for(let C=0;C<u.length;C++){const D=u[C];if(!$a(D)){this.updateId3CueEnds(f,c);const te=al(s,f,p,D,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===ga&&(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=f=>f.type===wi.audioId3&&c:r==="video"?u=f=>f.type===wi.emsg&&l:u=f=>f.type===wi.audioId3&&c||f.type===wi.emsg&&l,Ma(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.media||!e.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;const{id3Track:n}=this,{dateRanges:r}=e,i=Object.keys(r);let s=this.dateRangeCuesAppended;if(n&&t){var l;if((l=n.cues)!=null&&l.length){const f=Object.keys(s).filter(p=>!i.includes(p));for(let p=f.length;p--;){const S=f[p],C=s[S].cues;delete s[S],Object.keys(C).forEach(D=>{try{const te=C[D];te.removeEventListener("enter",this.onEventCueEnter),n.removeCue(te)}catch(te){}})}}else s=this.dateRangeCuesAppended={}}const c=e.fragments[e.fragments.length-1];if(i.length===0||!h(c==null?void 0:c.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const u=Ya();for(let f=0;f<i.length;f++){const p=i[f],S=r[p],C=S.startTime,D=s[p],te=(D==null?void 0:D.cues)||{};let Y=(D==null?void 0:D.durationKnown)||!1,be=ga;const{duration:Xe,endDate:Me}=S;if(Me&&Xe!==null)be=C+Xe,Y=!0;else if(S.endOnNext&&!Y){const Ut=i.reduce((hn,It)=>{if(It!==S.id){const Jt=r[It];if(Jt.class===S.class&&Jt.startDate>S.startDate&&(!hn||S.startDate<hn.startDate))return Jt}return hn},null);Ut&&(be=Ut.startTime,Y=!0)}const mt=Object.keys(S.attr);for(let Ut=0;Ut<mt.length;Ut++){const hn=mt[Ut];if(!Qn(hn))continue;const It=te[hn];if(It)Y&&!D.durationKnown?It.endTime=be:Math.abs(It.startTime-C)>.01&&(It.startTime=C,It.endTime=be);else if(u){let Jt=S.attr[hn];ir(hn)&&(Jt=k(Jt));const xt=al(u,C,be,{key:hn,data:Jt},wi.dateRange);xt&&(xt.id=p,this.id3Track.addCue(xt),te[hn]=xt,this.hls.config.interstitialsController&&(hn==="X-ASSET-LIST"||hn==="X-ASSET-URL")&&xt.addEventListener("enter",this.onEventCueEnter))}}s[p]={cues:te,dateRange:S,durationKnown:Y}}}}class Wc{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 p=Math.min(2,Math.max(1,s)),S=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20,C=Math.min(p,Math.max(1,S));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 f=r;return u+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,f)}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 Hc extends Da{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(f=>{const p=f.attrs;let{audioCodec:S,videoCodec:C}=f;S&&(f.audioCodec=S=fe(S,n)||void 0),C&&(C=f.videoCodec=$e(C));const{width:D,height:te,unknownCodecs:Y}=f;let be=Y?Y.length:0;if(Y)for(let xt=be;xt--;){const An=Y[xt];this.isAudioSupported(An)?(f.audioCodec=S=S?`${S},${An}`:An,be--,He.audio[S.substring(0,4)]=2):this.isVideoSupported(An)&&(f.videoCodec=C=C?`${C},${An}`:An,be--,He.video[C.substring(0,4)]=2)}if(l||(l=!!(D&&te)),c||(c=!!C),u||(u=!!S),be||S&&!this.isAudioSupported(S)||C&&!this.isVideoSupported(C)){this.log(`Some or all CODECS not supported "${p.CODECS}"`);return}const{CODECS:Xe,"FRAME-RATE":Me,"HDCP-LEVEL":mt,"PATHWAY-ID":Ut,RESOLUTION:hn,"VIDEO-RANGE":It}=p,en=`${`${Ut||"."}-`}${f.bitrate}-${hn}-${Me}-${Xe}-${It}-${mt}`;if(i[en])if(i[en].uri!==f.url&&!f.attrs["PATHWAY-ID"]){const xt=s[en]+=1;f.attrs["PATHWAY-ID"]=new Array(xt+1).join(".");const An=this.createLevel(f);i[en]=An,r.push(An)}else i[en].addGroupId("audio",p.AUDIO),i[en].addGroupId("text",p.SUBTITLES);else{const xt=this.createLevel(f);i[en]=xt,s[en]=1,r.push(xt)}}),this.filterAndSortMediaOptions(r,t,l,c,u)}createLevel(e){const t=new Ct(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=ae(r,[])}return t}isAudioSupported(e){return fn(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return fn(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:Y,videoRange:be,width:Xe,height:Me})=>(!!Y||!!(Xe&&Me))&&De(be))),c.length===0){Promise.resolve().then(()=>{if(this.hls){let Y="no level with compatible codecs found in manifest",be=Y;t.levels.length&&(be=`one or more CODECS in variant not supported: ${Nt(t.levels.map(Me=>Me.attrs.CODECS).filter((Me,mt,Ut)=>Ut.indexOf(Me)===mt))}`,this.warn(be),Y+=` (${be})`);const Xe=new Error(Y);this.hls.trigger(d.ERROR,{type:oe.MEDIA_ERROR,details:B.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:Xe,reason:be})}});return}t.audioTracks&&(s=t.audioTracks.filter(Y=>!Y.audioCodec||this.isAudioSupported(Y.audioCodec)),ol(s)),t.subtitles&&(l=t.subtitles,ol(l));const u=c.slice(0);c.sort((Y,be)=>{if(Y.attrs["HDCP-LEVEL"]!==be.attrs["HDCP-LEVEL"])return(Y.attrs["HDCP-LEVEL"]||"")>(be.attrs["HDCP-LEVEL"]||"")?1:-1;if(n&&Y.height!==be.height)return Y.height-be.height;if(Y.frameRate!==be.frameRate)return Y.frameRate-be.frameRate;if(Y.videoRange!==be.videoRange)return mn.indexOf(Y.videoRange)-mn.indexOf(be.videoRange);if(Y.videoCodec!==be.videoCodec){const Xe=Ke(Y.videoCodec),Me=Ke(be.videoCodec);if(Xe!==Me)return Me-Xe}if(Y.uri===be.uri&&Y.codecSet!==be.codecSet){const Xe=ke(Y.codecSet),Me=ke(be.codecSet);if(Xe!==Me)return Me-Xe}return Y.averageBitrate!==be.averageBitrate?Y.averageBitrate-be.averageBitrate:0});let f=u[0];if(this.steering&&(c=this.steering.filterParsedLevels(c),c.length!==u.length)){for(let Y=0;Y<u.length;Y++)if(u[Y].pathwayId===c[0].pathwayId){f=u[Y];break}}this._levels=c;for(let Y=0;Y<c.length;Y++)if(c[Y]===f){var p;this._firstLevel=Y;const be=f.bitrate,Xe=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${c.length} level(s) found, first bitrate: ${be}`),((p=this.hls.userConfig)==null?void 0:p.abrEwmaDefaultEstimate)===void 0){const Me=Math.min(be,this.hls.config.abrEwmaDefaultEstimateMax);Me>Xe&&Xe===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Me)}break}const S=i&&!r,C=this.hls.config,D=!!(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:D&&!S&&s.some(Y=>!!Y.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 f=new Error("invalid level idx"),p=e<0;if(this.hls.trigger(d.ERROR,{type:oe.OTHER_ERROR,details:B.LEVEL_SWITCH_ERROR,level:e,fatal:p,error:f,reason:f.message}),p)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 f=this.switchParams(s.uri,r==null?void 0:r.details,u);this.loadPlaylist(f)}}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===me.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===re.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 ol(a){const e={};a.forEach(t=>{const n=t.groupId||"";t.id=e[n]=e[n]||0,e[n]++})}function ll(){return self.SourceBuffer||self.WebKitSourceBuffer}function ul(){if(!q())return!1;const e=ll();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function Vc(){if(!ul())return!1;const a=q();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(qt(e,"video")))||["mp4a.40.2","fLaC"].some(e=>a.isTypeSupported(qt(e,"audio"))))}function Yc(){var a;const e=ll();return typeof(e==null||(a=e.prototype)==null?void 0:a.changeType)=="function"}const Xc=100;class Qc extends Mr{constructor(e,t,n){super(e,t,n,"stream-controller",re.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||!h(i)||(this.log(`Media seeked to ${i.toFixed(3)}`),!this.getBufferedFrag(i)))return;const s=this.getFwdBufferInfoAtPos(r,i,re.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(Xc),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=sn.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=sn.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case sn.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=sn.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=sn.IDLE;break}break}case sn.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=sn.IDLE}}break}this.state===sn.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=sn.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===sn.WAITING_LEVEL||this.waitForLive(s)){this.level=i,this.state=sn.WAITING_LEVEL,this.startFragRequested=!1;return}const f=l.len,p=this.getMaxBufferLength(s.maxBitrate);if(f>=p)return;this.backtrackFragment&&this.backtrackFragment.start>l.end&&(this.backtrackFragment=null);const S=this.backtrackFragment?this.backtrackFragment.start:l.end;let C=this.getNextFragment(S,u);if(this.couldBacktrack&&!this.fragPrevious&&C&&Ie(C)&&this.fragmentTracker.getState(C)!==We.OK){var D;const Y=((D=this.backtrackFragment)!=null?D:C).sn-u.startSN,be=u.fragments[Y-1];be&&C.cc===be.cc&&(C=be,this.fragmentTracker.removeFragment(be))}else this.backtrackFragment&&l.len&&(this.backtrackFragment=null);if(C&&this.isLoopLoading(C,S)){if(!C.gap){const Y=this.audioOnly&&!this.altAudio?M.AUDIO:M.VIDEO,be=(Y===M.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;be&&this.afterBufferFlushed(be,Y,re.MAIN)}C=this.getNextFragmentLoopLoading(C,u,l,re.MAIN,p)}C&&(C.initSegment&&!C.initSegment.data&&!this.bitrateTest&&(C=C.initSegment),this.loadFragment(C,s,S))}loadFragment(e,t,n){const r=this.fragmentTracker.getState(e);r===We.NOT_LOADED||r===We.PARTIAL?Ie(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,re.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,f=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(f,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 sn.KEY_LOADING:case sn.FRAG_LOADING:case sn.FRAG_LOADING_WAITING_RETRY:case sn.PARSING:case sn.PARSED:this.state=sn.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;ki(n,"playing",this.onMediaPlaying),ki(n,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:n}=this;n&&(Ui(n,"playing",this.onMediaPlaying),Ui(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;t.levels.forEach(i=>{const s=i.audioCodec;s&&(n=n||s.indexOf("mp4a.40.2")!==-1,r=r||s.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=n&&r&&!Yc(),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!==sn.IDLE)return;const r=t.levelInfo;(!r.details||r.details.live&&(this.levelLastLoaded!==r||r.details.expired)||this.waitForCdnTuneIn(r.details))&&(this.state=sn.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,f=this.fragCurrent;f&&(this.state===sn.FRAG_LOADING||this.state===sn.FRAG_LOADING_WAITING_RETRY)&&f.level!==t.level&&f.loader&&this.abortCurrentFrag();let p=0;if(l.live||(n=u.details)!=null&&n.live){var S;if(this.checkLiveUpdate(l),l.deltaUpdateFailed)return;p=this.alignPlaylists(l,u.details,(S=this.levelLastLoaded)==null?void 0:S.details)}if(u.details=l,this.levelLastLoaded=u,i||this.setStartPosition(l,p),this.hls.trigger(d.LEVEL_UPDATED,{details:l,level:s}),this.state===sn.WAITING_LEVEL){if(this.waitForCdnTuneIn(l))return;this.state=sn.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 f=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;if((!c&&n.readyState<4||i<l-f)&&(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 p=vn.bufferInfo(n,r,0);if(!(p!=null&&(u=p.buffered)!=null&&u.length)){n.currentTime=r;return}if(p.start<=i){n.currentTime=r;return}const{nextStart:C}=vn.bufferedInfo(p.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,f=c.PTSKnown||!c.live,p=(t=n.initSegment)==null?void 0:t.data,S=this._getAudioCodec(l),C=this.transmuxer=this.transmuxer||new yo(this.hls,re.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),D=r?r.index:-1,te=D!==-1,Y=new fr(n.level,n.sn,n.stats.chunkCount,i.byteLength,D,te),be=this.initPTS[n.cc];C.push(i,p,S,u,n,r,c.totalduration,f,Y,be)}onAudioTrackSwitching(e,t){const n=this.hls,r=this.altAudio===2;if(wn(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,()=>{var s;(s=this.hls)==null||s.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=wn(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===re.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===sn.PARSED&&(this.state=sn.IDLE);return}const l=r?r.stats:n.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),Ie(n)&&(this.fragPrevious=n),this.fragBufferedComplete(n,r)}const s=this.media;s&&(!this._hasEnoughToStart&&vn.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=sn.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(re.MAIN,t);break;case B.LEVEL_LOAD_ERROR:case B.LEVEL_LOAD_TIMEOUT:case B.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===sn.WAITING_LEVEL&&((n=t.context)==null?void 0:n.type)===me.LEVEL&&(this.state=sn.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.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case B.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=sn.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==M.AUDIO||!this.altAudio){const n=(t===M.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;n&&(this.afterBufferFlushed(n,t,re.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=vn.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=sn.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){var t;const n=this.playlistType,{hls:r}=this,{remuxResult:i,chunkMeta:s}=e,l=this.getCurrentContext(s);if(!l){this.resetWhenMissingContext(s);return}const{frag:c,part:u,level:f}=l,{video:p,text:S,id3:C,initSegment:D}=i,{details:te}=f,Y=this.altAudio?void 0:i.audio;if(this.fragContextChanged(c)){this.fragmentTracker.removeFragment(c);return}if(this.state=sn.PARSING,D){if(D!=null&&D.tracks){const mt=c.initSegment||c;this._bufferInitSegment(f,D.tracks,mt,s),r.trigger(d.FRAG_PARSING_INIT_SEGMENT,{frag:mt,id:n,tracks:D.tracks})}const be=D.initPTS,Xe=D.timescale,Me=this.initPTS[c.cc];h(be)&&(!Me||Me.baseTime!==be||Me.timescale!==Xe)&&(this.initPTS[c.cc]={baseTime:be,timescale:Xe},r.trigger(d.INIT_PTS_FOUND,{frag:c,id:n,initPTS:be,timescale:Xe}))}if(p&&te){Y&&p.type==="audiovideo"&&this.logMuxedErr(c);const be=te.fragments[c.sn-1-te.startSN],Xe=c.sn===te.startSN,Me=!be||c.cc>be.cc;if(i.independent!==!1){const{startPTS:mt,endPTS:Ut,startDTS:hn,endDTS:It}=p;if(u)u.elementaryStreams[p.type]={startPTS:mt,endPTS:Ut,startDTS:hn,endDTS:It};else if(p.firstKeyFrame&&p.independent&&s.id===1&&!Me&&(this.couldBacktrack=!0),p.dropped&&p.independent){const Jt=this.getMainFwdBufferInfo(),en=(Jt?Jt.end:this.getLoadPosition())+this.config.maxBufferHole,xt=p.firstKeyFramePTS?p.firstKeyFramePTS:mt;if(!Xe&&en<xt-this.config.maxBufferHole&&!Me){this.backtrack(c);return}else Me&&(c.gap=!0);c.setElementaryStreamInfo(p.type,c.start,Ut,c.start,It,!0)}else Xe&&mt-(te.appliedTimelineOffset||0)>ma&&(c.gap=!0);c.setElementaryStreamInfo(p.type,mt,Ut,hn,It),this.backtrackFragment&&(this.backtrackFragment=c),this.bufferFragmentData(p,c,u,s,Xe||Me)}else if(Xe||Me)c.gap=!0;else{this.backtrack(c);return}}if(Y){const{startPTS:be,endPTS:Xe,startDTS:Me,endDTS:mt}=Y;u&&(u.elementaryStreams[M.AUDIO]={startPTS:be,endPTS:Xe,startDTS:Me,endDTS:mt}),c.setElementaryStreamInfo(M.AUDIO,be,Xe,Me,mt),this.bufferFragmentData(Y,c,u,s)}if(te&&C!=null&&(t=C.samples)!=null&&t.length){const be={id:n,frag:c,details:te,samples:C.samples};r.trigger(d.FRAG_PARSING_METADATA,be)}if(te&&S){const be={id:n,frag:c,details:te,samples:S.samples};r.trigger(d.FRAG_PARSING_USERDATA,be)}}logMuxedErr(e){this.warn(`${Ie(e)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${e.url}`)}_bufferInitSegment(e,t,n,r){if(this.state!==sn.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 f=ye(i.codec,u);f==="mp4a"&&(f="mp4a.40.5");const p=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){f&&(f.indexOf("mp4a.40.5")!==-1?f="mp4a.40.2":f="mp4a.40.5");const S=i.metadata;S&&"channelCount"in S&&(S.channelCount||1)!==1&&p.indexOf("firefox")===-1&&(f="mp4a.40.5")}f&&f.indexOf("mp4a.40.5")!==-1&&p.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(f="mp4a.40.2",this.log(`Android: force audio codec to ${f}`)),u&&u!==f&&this.log(`Swapping manifest audio codec "${u}" for "${f}"`),i.levelCodec=f,i.id=re.MAIN,this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${f||""}/${u||""}/${i.codec}]`),delete t.audiovideo}if(s){s.levelCodec=e.videoCodec,s.id=re.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 p=t[u].initSegment;p!=null&&p.byteLength&&this.hls.trigger(d.BUFFER_APPENDING,{type:u,data:p,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,re.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=sn.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const n=e.currentTime;if(vn.isBuffered(e,n)?t=this.getAppendedFrag(n):vn.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 h(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(h(t)){const n=this.getLevelDetails(),r=this.currentFrag||(n?In(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 Jc{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 Hn({type:oe.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&&(!Ie(e)||!Ie(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=tr(l);if(c)return this.emeController.getKeySystemAccess([c])})}if(this.config.requireKeySystemAccessOnStart){const r=lr(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,f={loadPolicy:u,timeout:u.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},p={onSuccess:(S,C,D,te)=>{const{frag:Y,keyInfo:be,url:Xe}=D;if(!Y.decryptdata||be!==this.keyUriToKeyInfo[Xe])return l(this.createKeyLoadError(Y,B.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),te));be.decryptdata.key=Y.decryptdata.key=new Uint8Array(S.data),Y.keyLoader=null,be.loader=null,s({frag:Y,keyInfo:be})},onError:(S,C,D,te)=>{this.resetLoader(C),l(this.createKeyLoadError(t,B.KEY_LOAD_ERROR,new Error(`HTTP Error ${S.code} loading key ${S.text}`),D,b({url:c.url,data:void 0},S)))},onTimeout:(S,C,D)=>{this.resetLoader(C),l(this.createKeyLoadError(t,B.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),D))},onAbort:(S,C,D)=>{this.resetLoader(C),l(this.createKeyLoadError(t,B.INTERNAL_ABORTED,new Error("key loading aborted"),D))}};i.load(c,f,p)})}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 cl(a){const{type:e}=a;switch(e){case me.AUDIO_TRACK:return re.AUDIO;case me.SUBTITLE_TRACK:return re.SUBTITLE;default:return re.MAIN}}function Xa(a,e){let t=a.url;return(t===void 0||t.indexOf("data:")===0)&&(t=e.url),t}class qc{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:me.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:me.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:me.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:me.SUBTITLE_TRACK,url:i,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(e,t){const n=this.loaders[me.LEVEL];if(n){const r=n.context;r&&!t.levels.some(i=>i===r.levelOrTrack)&&(n.abort(),delete this.loaders[me.LEVEL])}}load(e){var t;const n=this.hls.config;let r=this.getInternalLoader(e);if(r){const u=this.hls.logger,f=r.context;if(f&&f.levelOrTrack===e.levelOrTrack&&(f.url===e.url||f.deliveryDirectives&&!e.deliveryDirectives)){f.url===e.url?u.log(`[playlist-loader]: ignore ${e.url} ongoing request`):u.log(`[playlist-loader]: ignore ${e.url} in favor of ${f.url}`);return}u.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),r.abort()}let i;if(e.type===me.MANIFEST?i=n.manifestLoadPolicy.default:i=m({},n.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),r=this.createInternalLoader(e),h((t=e.deliveryDirectives)==null?void 0:t.part)){let u;if(e.type===me.LEVEL&&e.level!==null?u=this.hls.levels[e.level].details:e.type===me.AUDIO_TRACK&&e.id!==null?u=this.hls.audioTracks[e.id].details:e.type===me.SUBTITLE_TRACK&&e.id!==null&&(u=this.hls.subtitleTracks[e.id].details),u){const f=u.partTarget,p=u.targetduration;if(f&&p){const S=Math.max(f*3,p*.8)*1e3;i=m({},i,{maxTimeToFirstByteMs:Math.min(S,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(S,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,f,p,S)=>{const C=this.getInternalLoader(p);this.resetInternalLoader(p.type);const D=u.data;if(D.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(u,p,new Error("no EXTM3U delimiter"),S||null,f);return}f.parsing.start=performance.now(),hi.isMediaPlaylist(D)||p.type!==me.MANIFEST?this.handleTrackOrLevelPlaylist(u,f,p,S||null,C):this.handleMasterPlaylist(u,f,p,S)},onError:(u,f,p,S)=>{this.handleNetworkError(f,p,!1,u,S)},onTimeout:(u,f,p)=>{this.handleNetworkError(f,p,!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=Xa(e,n),c=hi.parseMasterPlaylist(s,l);if(c.playlistParsingError){this.handleManifestParsingError(e,n,c.playlistParsingError,r,t);return}const{contentSteering:u,levels:f,sessionData:p,sessionKeys:S,startTimeOffset:C,variableList:D}=c;this.variableList=D;const{AUDIO:te=[],SUBTITLES:Y,"CLOSED-CAPTIONS":be}=hi.parseMasterPlaylistMedia(s,l,c);te.length&&!te.some(Me=>!Me.url)&&f[0].audioCodec&&!f[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 _n({}),bitrate:0,url:""})),i.trigger(d.MANIFEST_LOADED,{levels:f,audioTracks:te,subtitles:Y,captions:be,contentSteering:u,url:l,stats:t,networkDetails:r,sessionData:p,sessionKeys:S,startTimeOffset:C,variableList:D})}handleTrackOrLevelPlaylist(e,t,n,r,i){const s=this.hls,{id:l,level:c,type:u}=n,f=Xa(e,n),p=h(c)?c:h(l)?l:0,S=cl(n),C=hi.parseLevelPlaylist(e.data,f,p,S,0,this.variableList);if(u===me.MANIFEST){const D={attrs:new _n({}),bitrate:0,details:C,name:"",url:f};C.requestScheduled=t.loading.start+Xr(C,0),s.trigger(d.MANIFEST_LOADED,{levels:[D],audioTracks:[],url:f,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:oe.NETWORK_ERROR,details:B.MANIFEST_PARSING_ERROR,fatal:t.type===me.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===me.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===me.AUDIO_TRACK||e.type===me.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 f=this.getInternalLoader(e);switch(e.type){case me.MANIFEST:c=n?B.MANIFEST_LOAD_TIMEOUT:B.MANIFEST_LOAD_ERROR,u=!0;break;case me.LEVEL:c=n?B.LEVEL_LOAD_TIMEOUT:B.LEVEL_LOAD_ERROR,u=!1;break;case me.AUDIO_TRACK:c=n?B.AUDIO_TRACK_LOAD_TIMEOUT:B.AUDIO_TRACK_LOAD_ERROR,u=!1;break;case me.SUBTITLE_TRACK:c=n?B.SUBTITLE_TRACK_LOAD_TIMEOUT:B.SUBTITLE_LOAD_ERROR,u=!1;break}f&&this.resetInternalLoader(e.type);const p={type:oe.NETWORK_ERROR,details:c,fatal:u,url:e.url,loader:f,context:e,error:l,networkDetails:t,stats:i};if(r){const S=(t==null?void 0:t.url)||e.url;p.response=b({url:S,data:void 0},r)}this.hls.trigger(d.ERROR,p)}handlePlaylistLoaded(e,t,n,r,i,s){const l=this.hls,{type:c,level:u,id:f,groupId:p,deliveryDirectives:S}=r,C=Xa(t,r),D=cl(r),te=typeof r.level=="number"&&D===re.MAIN?u:void 0;if(!e.fragments.length){const be=e.playlistParsingError=new Error("No Segments found in Playlist");l.trigger(d.ERROR,{type:oe.NETWORK_ERROR,details:B.LEVEL_EMPTY_ERROR,fatal:!1,url:C,error:be,reason:be.message,response:t,context:r,level:te,parent:D,networkDetails:i,stats:n});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const Y=e.playlistParsingError;if(Y){if(this.hls.logger.warn(Y),!l.config.ignorePlaylistParsingErrors){l.trigger(d.ERROR,{type:oe.NETWORK_ERROR,details:B.LEVEL_PARSING_ERROR,fatal:!1,url:C,error:Y,reason:Y.message,response:t,context:r,level:te,parent:D,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 me.MANIFEST:case me.LEVEL:l.trigger(d.LEVEL_LOADED,{details:e,levelInfo:r.levelOrTrack||l.levels[0],level:te||0,id:f||0,stats:n,networkDetails:i,deliveryDirectives:S,withoutMultiVariant:c===me.MANIFEST});break;case me.AUDIO_TRACK:l.trigger(d.AUDIO_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:f||0,groupId:p||"",stats:n,networkDetails:i,deliveryDirectives:S});break;case me.SUBTITLE_TRACK:l.trigger(d.SUBTITLE_TRACK_LOADED,{details:e,track:r.levelOrTrack,id:f||0,groupId:p||"",stats:n,networkDetails:i,deliveryDirectives:S});break}}}class fs{static get version(){return Si}static isMSESupported(){return ul()}static isSupported(){return Vc()}static getMediaSource(){return q()}static get Events(){return d}static get MetadataSchema(){return wi}static get ErrorTypes(){return oe}static get ErrorDetails(){return B}static get DefaultConfig(){return fs.defaultConfig?fs.defaultConfig:Mc}static set DefaultConfig(e){fs.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 Qi,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=X(e.debug||!1,"Hls instance",e.assetPlayerId),n=this.config=Fc(fs.DefaultConfig,e,t);this.userConfig=e,n.progressive&&Bc(n,t);const{abrController:r,bufferController:i,capLevelController:s,errorController:l,fpsController:c}=n,u=new l(this),f=this.abrController=new r(this),p=new ht(this),S=n.interstitialsController,C=S?this.interstitialsController=new S(this,fs):null,D=this.bufferController=new i(this,p),te=this.capLevelController=new s(this),Y=new c(this),be=new qc(this),Xe=n.contentSteeringController,Me=Xe?new Xe(this):null,mt=this.levelController=new Hc(this,Me),Ut=new Gc(this),hn=new Jc(this.config),It=this.streamController=new Qc(this,p,hn),Jt=this.gapController=new zc(this,p);te.setStreamController(It),Y.setStreamController(It);const en=[be,mt,It];C&&en.splice(1,0,C),Me&&en.splice(1,0,Me),this.networkControllers=en;const xt=[f,D,Jt,te,Y,Ut,p];this.audioTrackController=this.createController(n.audioTrackController,en);const An=n.audioStreamController;An&&en.push(this.audioStreamController=new An(this,p,hn)),this.subtitleTrackController=this.createController(n.subtitleTrackController,en);const jn=n.subtitleStreamController;jn&&en.push(this.subtititleStreamController=new jn(this,p,hn)),this.createController(n.timelineController,xt),hn.emeController=this.emeController=this.createController(n.emeController,xt),this.cmcdController=this.createController(n.cmcdController,xt),this.latencyController=this.createController(Wc,xt),this.coreComponents=xt,en.push(u);const gr=u.onErrorOut;typeof gr=="function"&&this.on(d.ERROR,gr,u),this.on(d.MANIFEST_LOADED,be.onManifestLoaded,be)}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:oe.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:oe.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=v.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={[re.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[re.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[re.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=zu()),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){Kt(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=ln(t);return Ze(e,n,navigator.mediaCapabilities)}}fs.defaultConfig=void 0}}]);
}());