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

1339 lines
1.5 MiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

!(function(){var Vl=Math.pow;(self.webpackChunk=self.webpackChunk||[]).push([[5238],{70557:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return oe}});var v=x(72308),q=x(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},pe=xe,O=x(7657),p=function(ne,N){return q.createElement(O.Z,(0,v.Z)({},ne,{ref:N,icon:pe}))},ce=q.forwardRef(p),oe=ce},40001:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return oe}});var v=x(72308),q=x(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},pe=xe,O=x(7657),p=function(ne,N){return q.createElement(O.Z,(0,v.Z)({},ne,{ref:N,icon:pe}))},ce=q.forwardRef(p),oe=ce},26227:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return oe}});var v=x(72308),q=x(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},pe=xe,O=x(7657),p=function(ne,N){return q.createElement(O.Z,(0,v.Z)({},ne,{ref:N,icon:pe}))},ce=q.forwardRef(p),oe=ce},41464:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return oe}});var v=x(72308),q=x(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},pe=xe,O=x(7657),p=function(ne,N){return q.createElement(O.Z,(0,v.Z)({},ne,{ref:N,icon:pe}))},ce=q.forwardRef(p),oe=ce},18785:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return oe}});var v=x(72308),q=x(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},pe=xe,O=x(7657),p=function(ne,N){return q.createElement(O.Z,(0,v.Z)({},ne,{ref:N,icon:pe}))},ce=q.forwardRef(p),oe=ce},73331:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return oe}});var v=x(72308),q=x(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},pe=xe,O=x(7657),p=function(ne,N){return q.createElement(O.Z,(0,v.Z)({},ne,{ref:N,icon:pe}))},ce=q.forwardRef(p),oe=ce},15277:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return oe}});var v=x(72308),q=x(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},pe=xe,O=x(7657),p=function(ne,N){return q.createElement(O.Z,(0,v.Z)({},ne,{ref:N,icon:pe}))},ce=q.forwardRef(p),oe=ce},33853:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return oe}});var v=x(72308),q=x(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},pe=xe,O=x(7657),p=function(ne,N){return q.createElement(O.Z,(0,v.Z)({},ne,{ref:N,icon:pe}))},ce=q.forwardRef(p),oe=ce},61485:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return oe}});var v=x(72308),q=x(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},pe=xe,O=x(7657),p=function(ne,N){return q.createElement(O.Z,(0,v.Z)({},ne,{ref:N,icon:pe}))},ce=q.forwardRef(p),oe=ce},38819:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return oe}});var v=x(72308),q=x(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},pe=xe,O=x(7657),p=function(ne,N){return q.createElement(O.Z,(0,v.Z)({},ne,{ref:N,icon:pe}))},ce=q.forwardRef(p),oe=ce},47472:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return oe}});var v=x(72308),q=x(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},pe=xe,O=x(7657),p=function(ne,N){return q.createElement(O.Z,(0,v.Z)({},ne,{ref:N,icon:pe}))},ce=q.forwardRef(p),oe=ce},35593:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return er}});var v=x(77321),q=x(52487),xe=x(74416),pe=x(43403),O=x(92310),p=x.n(O),ce=x(29301),oe=x(76846),o=x(96452),ne=x(6089),N=x(80402),S=x(34280),b=x(49658),A=x(59301),I=x(72308),X=x(77900),ie=x(8654);function P(ge){var fe=ge.prefixCls,U=ge.align,ye=ge.arrow,Re=ge.arrowPos,M=ye||{},se=M.className,ve=M.content,Ee=Re.x,ke=Ee===void 0?0:Ee,Fe=Re.y,qe=Fe===void 0?0:Fe,gt=A.useRef();if(!U||!U.points)return null;var ht={position:"absolute"};if(U.autoArrow!==!1){var Qe=U.points[0],Ft=U.points[1],Lt=Qe[0],Le=Qe[1],Ke=Ft[0],lt=Ft[1];Lt===Ke||!["t","b"].includes(Lt)?ht.top=qe:Lt==="t"?ht.top=0:ht.bottom=0,Le===lt||!["l","r"].includes(Le)?ht.left=ke:Le==="l"?ht.left=0:ht.right=0}return A.createElement("div",{ref:gt,className:p()("".concat(fe,"-arrow"),se),style:ht},ve)}function B(ge){var fe=ge.prefixCls,U=ge.open,ye=ge.zIndex,Re=ge.mask,M=ge.motion;return Re?A.createElement(X.default,(0,I.Z)({},M,{motionAppear:!0,visible:U,removeOnLeave:!0}),function(se){var ve=se.className;return A.createElement("div",{style:{zIndex:ye},className:p()("".concat(fe,"-mask"),ve)})}):null}var H=A.memo(function(ge){var fe=ge.children;return fe},function(ge,fe){return fe.cache}),le=H,k=A.forwardRef(function(ge,fe){var U=ge.popup,ye=ge.className,Re=ge.prefixCls,M=ge.style,se=ge.target,ve=ge.onVisibleChanged,Ee=ge.open,ke=ge.keepDom,Fe=ge.fresh,qe=ge.onClick,gt=ge.mask,ht=ge.arrow,Qe=ge.arrowPos,Ft=ge.align,Lt=ge.motion,Le=ge.maskMotion,Ke=ge.forceRender,lt=ge.getPopupContainer,vt=ge.autoDestroy,Rt=ge.portal,Gt=ge.zIndex,E=ge.onMouseEnter,T=ge.onMouseLeave,nt=ge.onPointerEnter,W=ge.ready,be=ge.offsetX,rr=ge.offsetY,$e=ge.offsetR,je=ge.offsetB,Ze=ge.onAlign,re=ge.onPrepare,me=ge.stretch,we=ge.targetWidth,ze=ge.targetHeight,K=typeof U=="function"?U():U,Bt=Ee||ke,Ce=(lt==null?void 0:lt.length)>0,qt=A.useState(!lt||!Ce),cr=(0,q.Z)(qt,2),Pt=cr[0],Ot=cr[1];if((0,S.Z)(function(){!Pt&&Ce&&se&&Ot(!0)},[Pt,Ce,se]),!Pt)return null;var xt="auto",Tt={left:"-1000vw",top:"-1000vh",right:xt,bottom:xt};if(W||!Ee){var Ie,ut=Ft.points,ct=Ft.dynamicInset||((Ie=Ft._experimental)===null||Ie===void 0?void 0:Ie.dynamicInset),bt=ct&&ut[0][1]==="r",et=ct&&ut[0][0]==="b";bt?(Tt.right=$e,Tt.left=xt):(Tt.left=be,Tt.right=xt),et?(Tt.bottom=je,Tt.top=xt):(Tt.top=rr,Tt.bottom=xt)}var Nt={};return me&&(me.includes("height")&&ze?Nt.height=ze:me.includes("minHeight")&&ze&&(Nt.minHeight=ze),me.includes("width")&&we?Nt.width=we:me.includes("minWidth")&&we&&(Nt.minWidth=we)),Ee||(Nt.pointerEvents="none"),A.createElement(Rt,{open:Ke||Bt,getContainer:lt&&function(){return lt(se)},autoDestroy:vt},A.createElement(B,{prefixCls:Re,open:Ee,zIndex:Gt,mask:gt,motion:Le}),A.createElement(ce.Z,{onResize:Ze,disabled:!Ee},function(Vt){return A.createElement(X.default,(0,I.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Ke,leavedClassName:"".concat(Re,"-hidden")},Lt,{onAppearPrepare:re,onEnterPrepare:re,visible:Ee,onVisibleChanged:function(vr){var yr;Lt==null||(yr=Lt.onVisibleChanged)===null||yr===void 0||yr.call(Lt,vr),ve(vr)}}),function(Zt,vr){var yr=Zt.className,or=Zt.style,br=p()(Re,yr,ye);return A.createElement("div",{ref:(0,ie.sQ)(Vt,fe,vr),className:br,style:(0,v.Z)((0,v.Z)((0,v.Z)((0,v.Z)({"--arrow-x":"".concat(Qe.x||0,"px"),"--arrow-y":"".concat(Qe.y||0,"px")},Tt),Nt),or),{},{boxSizing:"border-box",zIndex:Gt},M),onMouseEnter:E,onMouseLeave:T,onPointerEnter:nt,onClick:qe},ht&&A.createElement(P,{prefixCls:Re,arrow:ht,arrowPos:Qe,align:Ft}),A.createElement(le,{cache:!Ee&&!Fe},K))})}))}),j=k,J=A.forwardRef(function(ge,fe){var U=ge.children,ye=ge.getTriggerDOMNode,Re=(0,ie.Yr)(U),M=A.useCallback(function(ve){(0,ie.mH)(fe,ye?ye(ve):ve)},[ye]),se=(0,ie.x1)(M,U.ref);return Re?A.cloneElement(U,{ref:se}):U}),Q=J,de=A.createContext(null),Se=de;function Ae(ge){return ge?Array.isArray(ge)?ge:[ge]:[]}function Me(ge,fe,U,ye){return A.useMemo(function(){var Re=Ae(U!=null?U:fe),M=Ae(ye!=null?ye:fe),se=new Set(Re),ve=new Set(M);return ge&&(se.has("hover")&&(se.delete("hover"),se.add("click")),ve.has("hover")&&(ve.delete("hover"),ve.add("click"))),[se,ve]},[ge,fe,U,ye])}var ee=x(29194);function F(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],U=arguments.length>2?arguments[2]:void 0;return U?ge[0]===fe[0]:ge[0]===fe[0]&&ge[1]===fe[1]}function Y(ge,fe,U,ye){for(var Re=U.points,M=Object.keys(ge),se=0;se<M.length;se+=1){var ve,Ee=M[se];if(F((ve=ge[Ee])===null||ve===void 0?void 0:ve.points,Re,ye))return"".concat(fe,"-placement-").concat(Ee)}return""}function V(ge,fe,U,ye){return fe||(U?{motionName:"".concat(ge,"-").concat(U)}:ye?{motionName:ye}:null)}function ue(ge){return ge.ownerDocument.defaultView}function te(ge){for(var fe=[],U=ge==null?void 0:ge.parentElement,ye=["hidden","scroll","clip","auto"];U;){var Re=ue(U).getComputedStyle(U),M=Re.overflowX,se=Re.overflowY,ve=Re.overflow;[M,se,ve].some(function(Ee){return ye.includes(Ee)})&&fe.push(U),U=U.parentElement}return fe}function y(ge){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(ge)?fe:ge}function w(ge){return y(parseFloat(ge),0)}function Z(ge,fe){var U=(0,v.Z)({},ge);return(fe||[]).forEach(function(ye){if(!(ye instanceof HTMLBodyElement||ye instanceof HTMLHtmlElement)){var Re=ue(ye).getComputedStyle(ye),M=Re.overflow,se=Re.overflowClipMargin,ve=Re.borderTopWidth,Ee=Re.borderBottomWidth,ke=Re.borderLeftWidth,Fe=Re.borderRightWidth,qe=ye.getBoundingClientRect(),gt=ye.offsetHeight,ht=ye.clientHeight,Qe=ye.offsetWidth,Ft=ye.clientWidth,Lt=w(ve),Le=w(Ee),Ke=w(ke),lt=w(Fe),vt=y(Math.round(qe.width/Qe*1e3)/1e3),Rt=y(Math.round(qe.height/gt*1e3)/1e3),Gt=(Qe-Ft-Ke-lt)*vt,E=(gt-ht-Lt-Le)*Rt,T=Lt*Rt,nt=Le*Rt,W=Ke*vt,be=lt*vt,rr=0,$e=0;if(M==="clip"){var je=w(se);rr=je*vt,$e=je*Rt}var Ze=qe.x+W-rr,re=qe.y+T-$e,me=Ze+qe.width+2*rr-W-be-Gt,we=re+qe.height+2*$e-T-nt-E;U.left=Math.max(U.left,Ze),U.top=Math.max(U.top,re),U.right=Math.min(U.right,me),U.bottom=Math.min(U.bottom,we)}}),U}function G(ge){var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,U="".concat(fe),ye=U.match(/^(.*)\%$/);return ye?ge*(parseFloat(ye[1])/100):parseFloat(U)}function Pe(ge,fe){var U=fe||[],ye=(0,q.Z)(U,2),Re=ye[0],M=ye[1];return[G(ge.width,Re),G(ge.height,M)]}function Ue(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[ge[0],ge[1]]}function Ve(ge,fe){var U=fe[0],ye=fe[1],Re,M;return U==="t"?M=ge.y:U==="b"?M=ge.y+ge.height:M=ge.y+ge.height/2,ye==="l"?Re=ge.x:ye==="r"?Re=ge.x+ge.width:Re=ge.x+ge.width/2,{x:Re,y:M}}function Xe(ge,fe){var U={t:"b",b:"t",l:"r",r:"l"};return ge.map(function(ye,Re){return Re===fe?U[ye]||"c":ye}).join("")}function tt(ge,fe,U,ye,Re,M,se){var ve=A.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:Re[ye]||{}}),Ee=(0,q.Z)(ve,2),ke=Ee[0],Fe=Ee[1],qe=A.useRef(0),gt=A.useMemo(function(){return fe?te(fe):[]},[fe]),ht=A.useRef({}),Qe=function(){ht.current={}};ge||Qe();var Ft=(0,ne.Z)(function(){if(fe&&U&&ge){let kn=function(Nn,ui){var ci=arguments.length>2&&arguments[2]!==void 0?arguments[2]:br,ri=K.x+Nn,Vn=K.y+ui,vn=ri+Ie,Jn=Vn+Tt,Li=Math.max(ri,ci.left),Oi=Math.max(Vn,ci.top),Pi=Math.min(vn,ci.right),Ci=Math.min(Jn,ci.bottom);return Math.max(0,(Pi-Li)*(Ci-Oi))},mn=function(){Cr=K.y+ur,Zr=Cr+Tt,Br=K.x+mr,fn=Br+Ie};var Ke,lt,vt=fe,Rt=vt.ownerDocument,Gt=ue(vt),E=Gt.getComputedStyle(vt),T=E.width,nt=E.height,W=E.position,be=vt.style.left,rr=vt.style.top,$e=vt.style.right,je=vt.style.bottom,Ze=vt.style.overflow,re=(0,v.Z)((0,v.Z)({},Re[ye]),M),me=Rt.createElement("div");(Ke=vt.parentElement)===null||Ke===void 0||Ke.appendChild(me),me.style.left="".concat(vt.offsetLeft,"px"),me.style.top="".concat(vt.offsetTop,"px"),me.style.position=W,me.style.height="".concat(vt.offsetHeight,"px"),me.style.width="".concat(vt.offsetWidth,"px"),vt.style.left="0",vt.style.top="0",vt.style.right="auto",vt.style.bottom="auto",vt.style.overflow="hidden";var we;if(Array.isArray(U))we={x:U[0],y:U[1],width:0,height:0};else{var ze=U.getBoundingClientRect();we={x:ze.x,y:ze.y,width:ze.width,height:ze.height}}var K=vt.getBoundingClientRect(),Bt=Rt.documentElement,Ce=Bt.clientWidth,qt=Bt.clientHeight,cr=Bt.scrollWidth,Pt=Bt.scrollHeight,Ot=Bt.scrollTop,xt=Bt.scrollLeft,Tt=K.height,Ie=K.width,ut=we.height,ct=we.width,bt={left:0,top:0,right:Ce,bottom:qt},et={left:-xt,top:-Ot,right:cr-xt,bottom:Pt-Ot},Nt=re.htmlRegion,Vt="visible",Zt="visibleFirst";Nt!=="scroll"&&Nt!==Zt&&(Nt=Vt);var vr=Nt===Zt,yr=Z(et,gt),or=Z(bt,gt),br=Nt===Vt?or:yr,xr=vr?or:br;vt.style.left="auto",vt.style.top="auto",vt.style.right="0",vt.style.bottom="0";var zr=vt.getBoundingClientRect();vt.style.left=be,vt.style.top=rr,vt.style.right=$e,vt.style.bottom=je,vt.style.overflow=Ze,(lt=vt.parentElement)===null||lt===void 0||lt.removeChild(me);var sr=y(Math.round(Ie/parseFloat(T)*1e3)/1e3),Be=y(Math.round(Tt/parseFloat(nt)*1e3)/1e3);if(sr===0||Be===0||(0,oe.Sh)(U)&&!(0,ee.Z)(U))return;var pt=re.offset,it=re.targetOffset,st=Pe(K,pt),zt=(0,q.Z)(st,2),kt=zt[0],yt=zt[1],Te=Pe(we,it),Ge=(0,q.Z)(Te,2),rt=Ge[0],wt=Ge[1];we.x-=rt,we.y-=wt;var _t=re.points||[],Wt=(0,q.Z)(_t,2),Dt=Wt[0],ir=Wt[1],lr=Ue(ir),dr=Ue(Dt),Sr=Ve(we,lr),Tr=Ve(K,dr),kr=(0,v.Z)({},re),mr=Sr.x-Tr.x+kt,ur=Sr.y-Tr.y+yt,Gr=kn(mr,ur),$r=kn(mr,ur,or),Wr=Ve(we,["t","l"]),Rr=Ve(K,["t","l"]),Dr=Ve(we,["b","r"]),Pr=Ve(K,["b","r"]),jr=re.overflow||{},Qr=jr.adjustX,ln=jr.adjustY,Yr=jr.shiftX,Fr=jr.shiftY,dt=function(ui){return typeof ui=="boolean"?ui:ui>=0},Cr,Zr,Br,fn;mn();var An=dt(ln),Ir=dr[0]===lr[0];if(An&&dr[0]==="t"&&(Zr>xr.bottom||ht.current.bt)){var Ar=ur;Ir?Ar-=Tt-ut:Ar=Wr.y-Pr.y-yt;var rn=kn(mr,Ar),nn=kn(mr,Ar,or);rn>Gr||rn===Gr&&(!vr||nn>=$r)?(ht.current.bt=!0,ur=Ar,yt=-yt,kr.points=[Xe(dr,0),Xe(lr,0)]):ht.current.bt=!1}if(An&&dr[0]==="b"&&(Cr<xr.top||ht.current.tb)){var sn=ur;Ir?sn+=Tt-ut:sn=Dr.y-Rr.y-yt;var In=kn(mr,sn),ai=kn(mr,sn,or);In>Gr||In===Gr&&(!vr||ai>=$r)?(ht.current.tb=!0,ur=sn,yt=-yt,kr.points=[Xe(dr,0),Xe(lr,0)]):ht.current.tb=!1}var Hn=dt(Qr),un=dr[1]===lr[1];if(Hn&&dr[1]==="l"&&(fn>xr.right||ht.current.rl)){var fr=mr;un?fr-=Ie-ct:fr=Wr.x-Pr.x-kt;var pn=kn(fr,ur),hn=kn(fr,ur,or);pn>Gr||pn===Gr&&(!vr||hn>=$r)?(ht.current.rl=!0,mr=fr,kt=-kt,kr.points=[Xe(dr,1),Xe(lr,1)]):ht.current.rl=!1}if(Hn&&dr[1]==="r"&&(Br<xr.left||ht.current.lr)){var Bn=mr;un?Bn+=Ie-ct:Bn=Dr.x-Rr.x-kt;var hi=kn(Bn,ur),$n=kn(Bn,ur,or);hi>Gr||hi===Gr&&(!vr||$n>=$r)?(ht.current.lr=!0,mr=Bn,kt=-kt,kr.points=[Xe(dr,1),Xe(lr,1)]):ht.current.lr=!1}mn();var Rn=Yr===!0?0:Yr;typeof Rn=="number"&&(Br<or.left&&(mr-=Br-or.left-kt,we.x+ct<or.left+Rn&&(mr+=we.x-or.left+ct-Rn)),fn>or.right&&(mr-=fn-or.right-kt,we.x>or.right-Rn&&(mr+=we.x-or.right+Rn)));var Gn=Fr===!0?0:Fr;typeof Gn=="number"&&(Cr<or.top&&(ur-=Cr-or.top-yt,we.y+ut<or.top+Gn&&(ur+=we.y-or.top+ut-Gn)),Zr>or.bottom&&(ur-=Zr-or.bottom-yt,we.y>or.bottom-Gn&&(ur+=we.y-or.bottom+Gn)));var yn=K.x+mr,li=yn+Ie,Nr=K.y+ur,ni=Nr+Tt,ti=we.x,Qn=ti+ct,cn=we.y,fi=cn+ut,mi=Math.max(yn,ti),Xr=Math.min(li,Qn),Er=(mi+Xr)/2,bn=Er-yn,en=Math.max(Nr,cn),Jt=Math.min(ni,fi),gn=(en+Jt)/2,Zn=gn-Nr;se==null||se(fe,kr);var qn=zr.right-K.x-(mr+K.width),En=zr.bottom-K.y-(ur+K.height);Fe({ready:!0,offsetX:mr/sr,offsetY:ur/Be,offsetR:qn/sr,offsetB:En/Be,arrowX:bn/sr,arrowY:Zn/Be,scaleX:sr,scaleY:Be,align:kr})}}),Lt=function(){qe.current+=1;var lt=qe.current;Promise.resolve().then(function(){qe.current===lt&&Ft()})},Le=function(){Fe(function(lt){return(0,v.Z)((0,v.Z)({},lt),{},{ready:!1})})};return(0,S.Z)(Le,[ye]),(0,S.Z)(function(){ge||Le()},[ge]),[ke.ready,ke.offsetX,ke.offsetY,ke.offsetR,ke.offsetB,ke.arrowX,ke.arrowY,ke.scaleX,ke.scaleY,ke.align,Lt]}var at=x(80702);function mt(ge,fe,U,ye,Re){(0,S.Z)(function(){if(ge&&fe&&U){let qe=function(){ye(),Re()};var M=fe,se=U,ve=te(M),Ee=te(se),ke=ue(se),Fe=new Set([ke].concat((0,at.Z)(ve),(0,at.Z)(Ee)));return Fe.forEach(function(gt){gt.addEventListener("scroll",qe,{passive:!0})}),ke.addEventListener("resize",qe,{passive:!0}),ye(),function(){Fe.forEach(function(gt){gt.removeEventListener("scroll",qe),ke.removeEventListener("resize",qe)})}}},[ge,fe,U])}var Ut=x(48736),tr=x(16089);function Mt(ge,fe,U,ye,Re,M,se,ve){var Ee=A.useRef(ge),ke=A.useRef(!1);Ee.current!==ge&&(ke.current=!0,Ee.current=ge),A.useEffect(function(){var Fe=(0,tr.Z)(function(){ke.current=!1});return function(){tr.Z.cancel(Fe)}},[ge]),A.useEffect(function(){if(fe&&ye&&(!Re||M)){var Fe=function(){var W=!1,be=function(je){var Ze=je.target;W=se(Ze)},rr=function(je){var Ze=je.target;!ke.current&&Ee.current&&!W&&!se(Ze)&&ve(!1)};return[be,rr]},qe=Fe(),gt=(0,q.Z)(qe,2),ht=gt[0],Qe=gt[1],Ft=Fe(),Lt=(0,q.Z)(Ft,2),Le=Lt[0],Ke=Lt[1],lt=ue(ye);lt.addEventListener("mousedown",ht,!0),lt.addEventListener("click",Qe,!0),lt.addEventListener("contextmenu",Qe,!0);var vt=(0,o.A)(U);if(vt&&(vt.addEventListener("mousedown",Le,!0),vt.addEventListener("click",Ke,!0),vt.addEventListener("contextmenu",Ke,!0)),0)var Rt,Gt,E,T;return function(){lt.removeEventListener("mousedown",ht,!0),lt.removeEventListener("click",Qe,!0),lt.removeEventListener("contextmenu",Qe,!0),vt&&(vt.removeEventListener("mousedown",Le,!0),vt.removeEventListener("click",Ke,!0),vt.removeEventListener("contextmenu",Ke,!0))}}},[fe,U,ye,Re,M])}var jt=["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 Yt(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:pe.Z,fe=A.forwardRef(function(U,ye){var Re=U.prefixCls,M=Re===void 0?"rc-trigger-popup":Re,se=U.children,ve=U.action,Ee=ve===void 0?"hover":ve,ke=U.showAction,Fe=U.hideAction,qe=U.popupVisible,gt=U.defaultPopupVisible,ht=U.onPopupVisibleChange,Qe=U.afterPopupVisibleChange,Ft=U.mouseEnterDelay,Lt=U.mouseLeaveDelay,Le=Lt===void 0?.1:Lt,Ke=U.focusDelay,lt=U.blurDelay,vt=U.mask,Rt=U.maskClosable,Gt=Rt===void 0?!0:Rt,E=U.getPopupContainer,T=U.forceRender,nt=U.autoDestroy,W=U.destroyPopupOnHide,be=U.popup,rr=U.popupClassName,$e=U.popupStyle,je=U.popupPlacement,Ze=U.builtinPlacements,re=Ze===void 0?{}:Ze,me=U.popupAlign,we=U.zIndex,ze=U.stretch,K=U.getPopupClassNameFromAlign,Bt=U.fresh,Ce=U.alignPoint,qt=U.onPopupClick,cr=U.onPopupAlign,Pt=U.arrow,Ot=U.popupMotion,xt=U.maskMotion,Tt=U.popupTransitionName,Ie=U.popupAnimation,ut=U.maskTransitionName,ct=U.maskAnimation,bt=U.className,et=U.getTriggerDOMNode,Nt=(0,xe.Z)(U,jt),Vt=nt||W||!1,Zt=A.useState(!1),vr=(0,q.Z)(Zt,2),yr=vr[0],or=vr[1];(0,S.Z)(function(){or((0,b.Z)())},[]);var br=A.useRef({}),xr=A.useContext(Se),zr=A.useMemo(function(){return{registerSubPopup:function(Ur,Pn){br.current[Ur]=Pn,xr==null||xr.registerSubPopup(Ur,Pn)}}},[xr]),sr=(0,N.Z)(),Be=A.useState(null),pt=(0,q.Z)(Be,2),it=pt[0],st=pt[1],zt=(0,ne.Z)(function(Lr){(0,oe.Sh)(Lr)&&it!==Lr&&st(Lr),xr==null||xr.registerSubPopup(sr,Lr)}),kt=A.useState(null),yt=(0,q.Z)(kt,2),Te=yt[0],Ge=yt[1],rt=A.useRef(null),wt=(0,ne.Z)(function(Lr){(0,oe.Sh)(Lr)&&Te!==Lr&&(Ge(Lr),rt.current=Lr)}),_t=A.Children.only(se),Wt=(_t==null?void 0:_t.props)||{},Dt={},ir=(0,ne.Z)(function(Lr){var Ur,Pn,zn=Te;return(zn==null?void 0:zn.contains(Lr))||((Ur=(0,o.A)(zn))===null||Ur===void 0?void 0:Ur.host)===Lr||Lr===zn||(it==null?void 0:it.contains(Lr))||((Pn=(0,o.A)(it))===null||Pn===void 0?void 0:Pn.host)===Lr||Lr===it||Object.values(br.current).some(function(wn){return(wn==null?void 0:wn.contains(Lr))||Lr===wn})}),lr=V(M,Ot,Ie,Tt),dr=V(M,xt,ct,ut),Sr=A.useState(gt||!1),Tr=(0,q.Z)(Sr,2),kr=Tr[0],mr=Tr[1],ur=qe!=null?qe:kr,Gr=(0,ne.Z)(function(Lr){qe===void 0&&mr(Lr)});(0,S.Z)(function(){mr(qe||!1)},[qe]);var $r=A.useRef(ur);$r.current=ur;var Wr=A.useRef([]);Wr.current=[];var Rr=(0,ne.Z)(function(Lr){var Ur;Gr(Lr),((Ur=Wr.current[Wr.current.length-1])!==null&&Ur!==void 0?Ur:ur)!==Lr&&(Wr.current.push(Lr),ht==null||ht(Lr))}),Dr=A.useRef(),Pr=function(){clearTimeout(Dr.current)},jr=function(Ur){var Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Pr(),Pn===0?Rr(Ur):Dr.current=setTimeout(function(){Rr(Ur)},Pn*1e3)};A.useEffect(function(){return Pr},[]);var Qr=A.useState(!1),ln=(0,q.Z)(Qr,2),Yr=ln[0],Fr=ln[1];(0,S.Z)(function(Lr){(!Lr||ur)&&Fr(!0)},[ur]);var dt=A.useState(null),Cr=(0,q.Z)(dt,2),Zr=Cr[0],Br=Cr[1],fn=A.useState([0,0]),An=(0,q.Z)(fn,2),Ir=An[0],Ar=An[1],rn=function(Ur){Ar([Ur.clientX,Ur.clientY])},nn=tt(ur,it,Ce?Ir:Te,je,re,me,cr),sn=(0,q.Z)(nn,11),In=sn[0],ai=sn[1],Hn=sn[2],un=sn[3],fr=sn[4],pn=sn[5],hn=sn[6],Bn=sn[7],hi=sn[8],$n=sn[9],Rn=sn[10],Gn=Me(yr,Ee,ke,Fe),yn=(0,q.Z)(Gn,2),li=yn[0],Nr=yn[1],ni=li.has("click"),ti=Nr.has("click")||Nr.has("contextMenu"),Qn=(0,ne.Z)(function(){Yr||Rn()}),cn=function(){$r.current&&Ce&&ti&&jr(!1)};mt(ur,Te,it,Qn,cn),(0,S.Z)(function(){Qn()},[Ir,je]),(0,S.Z)(function(){ur&&!(re!=null&&re[je])&&Qn()},[JSON.stringify(me)]);var fi=A.useMemo(function(){var Lr=Y(re,M,$n,Ce);return p()(Lr,K==null?void 0:K($n))},[$n,K,re,M,Ce]);A.useImperativeHandle(ye,function(){return{nativeElement:rt.current,forceAlign:Qn}});var mi=A.useState(0),Xr=(0,q.Z)(mi,2),Er=Xr[0],bn=Xr[1],en=A.useState(0),Jt=(0,q.Z)(en,2),gn=Jt[0],Zn=Jt[1],qn=function(){if(ze&&Te){var Ur=Te.getBoundingClientRect();bn(Ur.width),Zn(Ur.height)}},En=function(){qn(),Qn()},kn=function(Ur){Fr(!1),Rn(),Qe==null||Qe(Ur)},mn=function(){return new Promise(function(Ur){qn(),Br(function(){return Ur})})};(0,S.Z)(function(){Zr&&(Rn(),Zr(),Br(null))},[Zr]);function Nn(Lr,Ur,Pn,zn){Dt[Lr]=function(wn){var gi;zn==null||zn(wn),jr(Ur,Pn);for(var Di=arguments.length,Gi=new Array(Di>1?Di-1:0),xi=1;xi<Di;xi++)Gi[xi-1]=arguments[xi];(gi=Wt[Lr])===null||gi===void 0||gi.call.apply(gi,[Wt,wn].concat(Gi))}}(ni||ti)&&(Dt.onClick=function(Lr){var Ur;$r.current&&ti?jr(!1):!$r.current&&ni&&(rn(Lr),jr(!0));for(var Pn=arguments.length,zn=new Array(Pn>1?Pn-1:0),wn=1;wn<Pn;wn++)zn[wn-1]=arguments[wn];(Ur=Wt.onClick)===null||Ur===void 0||Ur.call.apply(Ur,[Wt,Lr].concat(zn))}),Mt(ur,ti,Te,it,vt,Gt,ir,jr);var ui=li.has("hover"),ci=Nr.has("hover"),ri,Vn;ui&&(Nn("onMouseEnter",!0,Ft,function(Lr){rn(Lr)}),Nn("onPointerEnter",!0,Ft,function(Lr){rn(Lr)}),ri=function(Ur){(ur||Yr)&&it!==null&&it!==void 0&&it.contains(Ur.target)&&jr(!0,Ft)},Ce&&(Dt.onMouseMove=function(Lr){var Ur;(Ur=Wt.onMouseMove)===null||Ur===void 0||Ur.call(Wt,Lr)})),ci&&(Nn("onMouseLeave",!1,Le),Nn("onPointerLeave",!1,Le),Vn=function(){jr(!1,Le)}),li.has("focus")&&Nn("onFocus",!0,Ke),Nr.has("focus")&&Nn("onBlur",!1,lt),li.has("contextMenu")&&(Dt.onContextMenu=function(Lr){var Ur;$r.current&&Nr.has("contextMenu")?jr(!1):(rn(Lr),jr(!0)),Lr.preventDefault();for(var Pn=arguments.length,zn=new Array(Pn>1?Pn-1:0),wn=1;wn<Pn;wn++)zn[wn-1]=arguments[wn];(Ur=Wt.onContextMenu)===null||Ur===void 0||Ur.call.apply(Ur,[Wt,Lr].concat(zn))}),bt&&(Dt.className=p()(Wt.className,bt));var vn=(0,v.Z)((0,v.Z)({},Wt),Dt),Jn={},Li=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Li.forEach(function(Lr){Nt[Lr]&&(Jn[Lr]=function(){for(var Ur,Pn=arguments.length,zn=new Array(Pn),wn=0;wn<Pn;wn++)zn[wn]=arguments[wn];(Ur=vn[Lr])===null||Ur===void 0||Ur.call.apply(Ur,[vn].concat(zn)),Nt[Lr].apply(Nt,zn)})});var Oi=A.cloneElement(_t,(0,v.Z)((0,v.Z)({},vn),Jn)),Pi={x:pn,y:hn},Ci=Pt?(0,v.Z)({},Pt!==!0?Pt:{}):null;return A.createElement(A.Fragment,null,A.createElement(ce.Z,{disabled:!ur,ref:wt,onResize:En},A.createElement(Q,{getTriggerDOMNode:et},Oi)),A.createElement(Se.Provider,{value:zr},A.createElement(j,{portal:ge,ref:zt,prefixCls:M,popup:be,className:p()(rr,fi),style:$e,target:Te,onMouseEnter:ri,onMouseLeave:Vn,onPointerEnter:ri,zIndex:we,open:ur,keepDom:Yr,fresh:Bt,onClick:qt,mask:vt,motion:lr,maskMotion:dr,onVisibleChanged:kn,onPrepare:mn,forceRender:T,autoDestroy:Vt,getPopupContainer:E,align:$n,arrow:Ci,arrowPos:Pi,ready:In,offsetX:ai,offsetY:Hn,offsetR:un,offsetB:fr,onAlign:Qn,stretch:ze,targetWidth:Er/Bn,targetHeight:gn/hi})))});return fe}var er=Yt(pe.Z)},50304:function(){"use strict"},76895:function(nr,ot){"use strict";ot.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},8797:function(nr,ot,x){"use strict";var v=x(59301),q=x(93314),xe=x(3113),pe=Object.defineProperty,O=Object.defineProperties,p=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,ne=(A,I,X)=>I in A?pe(A,I,{enumerable:!0,configurable:!0,writable:!0,value:X}):A[I]=X,N=(A,I)=>{for(var X in I||(I={}))oe.call(I,X)&&ne(A,X,I[X]);if(ce)for(var X of ce(I))o.call(I,X)&&ne(A,X,I[X]);return A},S=(A,I)=>O(A,p(I));const b=({img:A,buttonProps:I={},styles:X={},customText:ie,ButtonText:P,ButtonClick:B,Buttonclass:H,ButtonTwo:le,imgStyles:k,loading:j=!1,className:J=""})=>v.createElement("section",{className:`tc animated fadeIn ${J}`,style:N({color:"#999",margin:"100px auto",visibility:j?"hidden":"visible"},X)},v.createElement("img",{src:A||q,style:S(N({},k),{pointerEvents:"none",userSelect:"none"})}),v.createElement("p",{className:"mt20 font14"},ie||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),P&&v.createElement(xe.ZP,N({className:H,onClick:B},I),P),le&&le);ot.Z=b},23210:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return H}});var v=x(59301),q={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},xe=x(3113),pe=x(70557),O=x(23954),p=x(6848),ce=x(955),oe=x(94941),o=x(8797),ne=x(3294),N=x(19381),S=x(59301),b=Object.defineProperty,A=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable,ie=(le,k,j)=>k in le?b(le,k,{enumerable:!0,configurable:!0,writable:!0,value:j}):le[k]=j,P=(le,k)=>{for(var j in k||(k={}))I.call(k,j)&&ie(le,j,k[j]);if(A)for(var j of A(k))X.call(k,j)&&ie(le,j,k[j]);return le},B=(le,k,j)=>new Promise((J,Q)=>{var de=Me=>{try{Ae(j.next(Me))}catch(ee){Q(ee)}},Se=Me=>{try{Ae(j.throw(Me))}catch(ee){Q(ee)}},Ae=Me=>Me.done?J(Me.value):Promise.resolve(Me.value).then(de,Se);Ae((j=j.apply(le,k)).next())}),H=({editOffice:le="view",data:k,theme:j,type:J,filename:Q,monacoEditor:de,className:Se,style:Ae,close:Me,onClose:ee,hasMask:F,disabledDownload:Y,onImgDimensions:V,showNodata:ue,recordInfo:te})=>{const[y,w]=(0,v.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Z,G]=(0,v.useState)(""),[Pe,Ue]=(0,v.useState)(),Ve=window.ENV==="build"?"/react/build":"",Xe=location.host.startsWith("localhost")?ne.Z.PROXY_SERVER:ne.Z.API_SERVER,at=10*(1024*1024),mt=(0,v.useRef)();k!=null&&k.startsWith("/api")&&J!=="txt"&&(k=ne.Z.API_SERVER+k);const Ut=Yt=>Yt.substring(Yt.lastIndexOf("/")+1).split(".").pop();Q&&de&&(de.filename=Q),(0,v.useEffect)(()=>{var Yt,er;const ge=(er=(Yt=document.cookie)==null?void 0:Yt.replace(/\s/g,""))==null?void 0:er.split(";");ge==null||ge.map(fe=>{let U=fe.split("=");U[0]==="_educoder_session"&&G(U[1])})},[]),(0,v.useEffect)(()=>{J==="office"&&(k.indexOf("bigfilescdn.")>-1||k.indexOf("bigfiles1")>-1?Ue({url:k,fileType:Ut(k),model:k.indexOf("model=edit")?"edit":"view"}):tr())},[J,k]);const tr=()=>B(void 0,null,function*(){console.log("data:",k);let Yt=k;k.startsWith("http")||(Yt=location.origin+Yt);let er=new URL(Yt).pathname.split("/").pop();const ge=yield(0,oe.gJ)({attachment_id:er});ge.url=Xe+ge.url,Ue(ge)}),Mt=()=>{if(k.startsWith("http")||k.startsWith("blob:")){jt();return}(0,ce.Sv)(Q||"educoder",k,Q)},jt=()=>{te&&(0,N.fc)({id:te==null?void 0:te.id,watch_type:1,course_id:te==null?void 0:te.course_id}),(0,ce.Nd)(Q||"educoder",decodeURIComponent(k))};return S.createElement("div",{style:P({},Ae||{}),className:`${F&&q.bgBlack} ${J?q.wrp:"hide"}`},Me&&S.createElement("div",{className:q.close,ref:mt},!!V&&S.createElement(p.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>mt.current},S.createElement("span",{onClick:()=>{ee(),V()}},S.createElement("i",{className:"icon-yulanpizhu"}))),!Y&&S.createElement(p.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>mt.current},S.createElement("span",{onClick:jt},S.createElement("i",{className:"icon-quxiaozhiding"}))),S.createElement(p.Z,{title:"\u5173\u95ED",getPopupContainer:()=>mt.current},S.createElement("span",{className:"",onClick:ee},S.createElement("i",{className:"icon-guanbi1"})))),S.createElement("div",{className:`${q[Se]} ${Se} ${q.monaco} ${J==="txt"?"show":"hide"}`},J==="txt"&&S.createElement(S.Fragment,null,S.createElement(O.ZP,P({},de)))),J==="audio"&&S.createElement("audio",{src:`${(k==null?void 0:k.indexOf("http://"))>-1||(k==null?void 0:k.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${k}`,autoPlay:!0}),J==="video"&&S.createElement(S.Fragment,null,(k==null?void 0:k.indexOf("http"))>-1?S.createElement("video",{controls:!0,src:`${k}`,autoPlay:!0}):S.createElement("video",{controls:!0,src:`data:video/mp4;base64,${k}`,autoPlay:!0})),J==="office"&&Pe&&S.createElement("iframe",{src:`${Ve}/office.html?key=${Pe.key}&url=${btoa(Pe.url)}&callbackUrl=${Xe+(Pe.callbackUrl||"")}&fileType=${Pe.fileType}&title=${Pe.title||""}&model=${le}&officeServer=${ne.Z.ONLYOFFICE}&disabledDownload=${!!Y}`}),J==="html"&&S.createElement("iframe",{src:k+"&disposition=inline"}),J==="pdf"&&S.createElement("iframe",{src:`${Ve}/js/pdfview/index.html?filename=${Q||"educoder.pdf"}&url=${encodeURIComponent(k)}&disabledDownload=${!!Y}`}),J==="image"&&S.createElement("img",{src:`${(k==null?void 0:k.indexOf("http://"))>-1||(k==null?void 0:k.indexOf("https://"))>-1?"":"data:image/png;base64,"}${k}`}),(J==="other"||J==="download")&&S.createElement(S.Fragment,null,ue?S.createElement(o.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:S.createElement(xe.ZP,{icon:S.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Mt,disabled:Y},"\u4E0B\u8F7D")}):S.createElement(xe.ZP,{type:"primary",size:"middle",onClick:Mt,disabled:Y},S.createElement(pe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},85149:function(nr,ot,x){"use strict";x.d(ot,{z:function(){return J},Z:function(){return Q}});var v=x(59301),q=x(50304),xe=x(24768),pe=x(64018),O=x(65157),p=x(3294),ce=x(955),oe=x(15342),o=x(1012),ne=x(23210),N=x(59301),b=({html:de})=>{const Se=(0,v.useRef)(null),Ae=(0,v.useRef)(null),Me=`.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 36px !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,v.useEffect)(()=>{const ee=Se.current.attachShadow({mode:"open"});Ae.current=document.createElement("div"),Ae.current.className="markdown-body",Ae.current.innerHTML=de,ee.appendChild(Ae.current);const F=document.createElement("style");return F.textContent=Me,ee.appendChild(F),()=>{ee.innerHTML=""}},[]),(0,v.useEffect)(()=>{Ae.current&&(Ae.current.innerHTML=de)},[de]),N.createElement("div",{ref:Se})},A=Object.defineProperty,I=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,P=(de,Se,Ae)=>Se in de?A(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):de[Se]=Ae,B=(de,Se)=>{for(var Ae in Se||(Se={}))X.call(Se,Ae)&&P(de,Ae,Se[Ae]);if(I)for(var Ae of I(Se))ie.call(Se,Ae)&&P(de,Ae,Se[Ae]);return de};const H="@\u2581\u2581@",le="@\u2581@",k=/<pre[^>]*>/g;function j(de){let Se=document.createElement("div");return Se.innerHTML=de,Se.childNodes.length===0?"":Se.childNodes[0].nodeValue}const J=(de,Se)=>{de=de||"";const Ae=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Me=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ee=/\(\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 Se?de.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Ae,(Y,V,ue,te,y,w,Z)=>{const G=V||te||w,Pe=ue||y||Z||"?";return p.Z.API_SERVER+"/api/attachments/"+G+Pe+"&t="+(0,ce.Jn)(G,Date.now())+(Y.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(de=de.replace(F,(Y,V,ue,te,y,w,Z)=>{const G=V||te||w,Pe=ue||y||Z||"?";return p.Z.API_SERVER+"/attachments/download/"+G+Pe+"&t="+(0,ce.Jn)(G,Date.now())+(Y.indexOf(")")>-1?")":"&")}).replace(Ae,(Y,V,ue,te,y,w,Z)=>{const G=V||te||w,Pe=ue||y||Z||"?";return p.Z.API_SERVER+"/api/attachments/"+G+Pe+"&t="+(0,ce.Jn)(G,Date.now())+(Y.indexOf(")")>-1?")":"&")}).replace(Me,(Y,V,ue,te,y)=>{const w=V||te,Z=ue||y||"";return'"'+p.Z.API_SERVER+"/api/attachments/"+w+Z+w+Z+"&t="+(0,ce.Jn)(w,Date.now())}).replace(ee,(Y,V,ue,te,y)=>{const w=V||te,Z=ue||y||"";return"("+p.Z.API_SERVER+"/files/uploads/"+w+Z+w+Z+"&t="+(0,ce.Jn)(w,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,`
`),de)};var Q=({value:de="",className:Se,showTextOnly:Ae,showLines:Me,style:ee={},stylesPrev:F={},highlightKeywords:Y,showProgramFill:V,isProgramFill:ue,disabledFill:te=!1,programFillValue:y,onFillChange:w=Pe=>{},onFillBlur:Z=()=>{},onFillFocus:G=()=>{}})=>{let Pe=String(de);const[Ue,Ve]=(0,v.useState)(""),[Xe,tt]=(0,v.useState)("office"),[at,mt]=(0,v.useState)([]),Ut=(0,v.useRef)("a"+(0,o.Z)()),tr={},Mt=(Ee,ke,Fe)=>{const qe=document.createElement(Ee===le?"input":"textarea");qe.style.width="100%",qe.style.height=Ee===le?"40px":"151px",qe.rows=5,qe.spellcheck=!1,qe.name="edu-program-fill",qe.placeholder="\u8BF7\u8F93\u5165",qe.dataset.id=ke;const gt=Object.keys(tr).length;return tr[gt]=qe,`<span class="edu-program-fill-wrap ${Ee===le?"":"show"}" style="width:${Ee===le?"400px":"100%"}" title=${Fe||""}><span>${qe.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function jt(Ee){return Ee=Ee.replace(/!\[.*?\]\(.*?\)/g,""),Ee=Ee.replace(/\[.*?\]\(.*?\)/g,""),Ee=Ee.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ee=Ee.replace(/<embed.*?>/g,""),Ee=Ee.replace(/<img.*?>/g,""),Ee=Ee.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ee=Ee.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ee=Ee.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ee=Ee.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ee}const Yt=Ee=>Ee.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(ke,Fe){let qe=Fe.replace(/(\n|\r)/g,"").split("}"),gt=[];return qe.map(ht=>{ht!=""&&gt.push(`.${Ut.current} ${ht}`)}),`<style>${gt.join("}")}</style>`}),er=(0,v.useMemo)(()=>{try{const qe=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,gt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ht=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Qe=/\(\/attachments\/download\//g;Pe=Pe.replace(Qe,"("+p.Z.API_SERVER+"/attachments/download/").replace(qe,"("+p.Z.API_SERVER+"/api/attachments/").replace(gt,'"'+p.Z.API_SERVER+"/api/attachments/").replace(ht,'"'+p.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(qe){}if(V){let qe=-1;return Pe=Pe.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(gt,ht,Qe){var Ft;return++qe,Mt(gt,qe,(Ft=y==null?void 0:y[qe])==null?void 0:Ft.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Yt(Pe||"")}</pre>`}let Ee=Yt(Pe);Ee=(0,xe.ZP)(Ee);const ke=(0,xe.ez)();Pe.match(/\[TOC\]/)&&(Ee=Ee.replace("<p>[TOC]</p>",(0,xe.Qv)()),(0,xe.Iy)()),Ee=Ee.replace(/(__special_katext_id_\d+__)/g,(qe,gt)=>{const{type:ht,expression:Qe}=ke[gt];return(0,oe.renderToString)(j(Qe)||"",{displayMode:ht==="block",throwOnError:!1,output:"html"})}),Ee=Ee.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,xe.AL)();const Fe=document.createElement("div");if(Fe.innerHTML=Ee,Ae)return Fe.innerText;if(Y){const qe=Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return ye(Fe,qe),Fe.innerHTML}return setTimeout(()=>se(),500),Fe.innerHTML},[Pe,Y]);(0,v.useEffect)(()=>{Re.current&&Re.current.querySelectorAll(["input","textarea"]).forEach(ke=>{ke.oninput=ge,ke.onblur=fe,ke.onfocus=U})},[at]),(0,v.useEffect)(()=>{var Ee,ke,Fe,qe,gt;if(y!=null&&y.length)try{const ht=Re.current.querySelectorAll(".edu-program-fill-score"),Qe=Re.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ft,Lt]of Qe.entries())Lt.value=((Ee=y==null?void 0:y[Ft])==null?void 0:Ee.value)||"",((ke=y==null?void 0:y[Ft])==null?void 0:ke.type)==="warning"?Lt.className="program-fill-warning":((Fe=y==null?void 0:y[Ft])==null?void 0:Fe.type)==="success"?Lt.className="program-fill-success":Lt.className="";for(const[Ft,Lt]of ht.entries())Lt.innerHTML=(qe=y==null?void 0:y[Ft])!=null&&qe.score?`${(gt=y==null?void 0:y[Ft])==null?void 0:gt.score}\u5206`:"";mt(y)}catch(ht){console.log(ht,"error")}},[y]);const ge=Ee=>{at[Ee.target.dataset.id]=at[Ee.target.dataset.id]||{},at[Ee.target.dataset.id].value=Ee.target.value,mt([...at]),w(at,Ee.target.dataset.id)},fe=Ee=>{at[Ee.target.dataset.id]=at[Ee.target.dataset.id]||{},at[Ee.target.dataset.id].value=Ee.target.value,mt([...at]),Z(at,Ee.target.dataset.id)},U=Ee=>{at[Ee.target.dataset.id]=at[Ee.target.dataset.id]||{},at[Ee.target.dataset.id].value=Ee.target.value,mt([...at]),G(at,Ee.target.dataset.id)};function ye(Ee,ke){return Ee.childNodes.forEach(Fe=>{var qe;if(Fe.childNodes.length>0)ye(Fe,ke);else if(Fe.nodeName!=="IMG")if(Fe.innerHTML)Fe.innerHTML=(qe=Fe.innerHTML)==null?void 0:qe.replace(new RegExp(ke,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const gt=document.createElement("span");gt.innerHTML=Fe.textContent.replace(new RegExp(ke,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Fe.replaceWith(gt)}})}const Re=(0,v.useRef)();xe.jb.WebkitLineClamp=Me,Me&&(ee=B(B({},ee),xe.jb));function M(Ee){let ke=Ee.target;if(ke.tagName.toUpperCase()==="A"){let Fe=ke.getAttribute("href");if(Fe.indexOf("office")>-1)Ee.preventDefault(),Ve(Fe),tt("office");else if(Fe.indexOf("application/pdf")>-1)Ee.preventDefault(),Ve(Fe),tt("pdf");else if(Fe.indexOf("text/html")>-1)Ee.preventDefault(),Ve(Fe),tt("html");else if(Fe.startsWith("#")){Ee.preventDefault();let qe=document.getElementById(Fe.replace("#",""));qe&&qe.scrollIntoView(!0)}}}const se=()=>{var Ee;const ke=(Ee=Re.current)==null?void 0:Ee.querySelectorAll("video");ke==null||ke.forEach(Fe=>{if(Fe.oncontextmenu=()=>!1,Fe.src.indexOf(".m3u8")>-1&&!Fe.canPlayType("application/vnd.apple.mpegurl")){if(O.ZP.isSupported()){var qe=new O.ZP;qe.loadSource(Fe.src),qe.attachMedia(Fe)}}})};(0,v.useEffect)(()=>{if(Re.current&&er&&er.match(k)&&window.PR.prettyPrint(),Re.current)return Re.current.addEventListener("click",M),()=>{var Ee;(Ee=Re.current)==null||Ee.removeEventListener("click",M),(0,xe.AL)(),(0,xe.Iy)()}},[er,Re.current,M]),(0,v.useEffect)(()=>{var Ee;const ke=Fe=>{Fe.preventDefault(),Fe.clipboardData.setData("text",window.getSelection().toString())};return(Ee=Re.current)==null||Ee.addEventListener("copy",ke),()=>{var Fe;(Fe=Re.current)==null||Fe.removeEventListener("copy",ke)}},[Re.current]);const ve=Ee=>/<style[\s\S]*?>/i.test(Ee||"");return v.createElement(v.Fragment,null,Ae&&v.createElement("div",{ref:Re},er),!Ae&&!ve(er)&&v.createElement("div",{ref:Re,style:B({},ee),className:`${Se||""} ${te?"disabled-fill":""} markdown-body ${Ut.current}`,dangerouslySetInnerHTML:{__html:er}}),!Ae&&ve(er)&&v.createElement(b,{html:er}),v.createElement(ne.Z,{close:!0,data:Ue,type:Ue!=null&&Ue.length?Xe:"",style:B({},F),onClose:()=>Ve("")}))}},23954:function(nr,ot,x){"use strict";x.d(ot,{SV:function(){return Re},ZP:function(){return ye}});var v=x(59301),q=x(76374);const xe={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"]},pe={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"]},O={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(`
`)}]},p={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(`
`)}]},ce={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 oe=x(53184),o=x.n(oe),ne=Object.defineProperty,N=Object.defineProperties,S=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,X=(M,se,ve)=>se in M?ne(M,se,{enumerable:!0,configurable:!0,writable:!0,value:ve}):M[se]=ve,ie=(M,se)=>{for(var ve in se||(se={}))A.call(se,ve)&&X(M,ve,se[ve]);if(b)for(var ve of b(se))I.call(se,ve)&&X(M,ve,se[ve]);return M},P=(M,se)=>N(M,S(se)),B=(M,se,ve)=>new Promise((Ee,ke)=>{var Fe=ht=>{try{gt(ve.next(ht))}catch(Qe){ke(Qe)}},qe=ht=>{try{gt(ve.throw(ht))}catch(Qe){ke(Qe)}},gt=ht=>ht.done?Ee(ht.value):Promise.resolve(ht.value).then(Fe,qe);gt((ve=ve.apply(M,se)).next())});const H={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"]}},le=(M,se)=>se.map(ve=>({label:ve,kind:M.languages.CompletionItemKind.Keyword,insertText:ve})),k=M=>Object.keys(H.tables).map(se=>({label:se,kind:M.languages.CompletionItemKind.Variable,insertText:se})),j=(M,se)=>{const ve=H.tables[M];return ve?ve.map(Ee=>({label:Ee,kind:se.languages.CompletionItemKind.Field,insertText:Ee})):[]};function J(M,se,ve,Ee,ke){let Fe=se.getWordUntilPosition(ve),qe={startLineNumber:ve.lineNumber,endLineNumber:ve.lineNumber,startColumn:Fe.startColumn,endColumn:Fe.endColumn},gt=Ee.map(ht=>({label:ht,kind:M.languages.CompletionItemKind.Keyword,insertText:ht,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:qe}));return ke.map(ht=>{gt.push(P(ie({},ht),{range:qe}))}),gt}var Q=M=>{H.languages.map(ke=>(M.languages.registerDocumentFormattingEditProvider(ke,{provideDocumentFormattingEdits(Fe,qe,gt){return B(this,null,function*(){const ht=o()(Fe.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:Fe.getFullModelRange(),text:ht}]})}}),ke));const se=O.quickKey.map(ke=>({label:ke.label,kind:M.languages.CompletionItemKind.Method,insertText:ke.content,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet})),ve=p.quickKey.map(ke=>({label:ke.label,kind:M.languages.CompletionItemKind.Method,insertText:ke.content,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ee=pe.quickKey.map(ke=>({label:ke.label,kind:M.languages.CompletionItemKind.Method,insertText:ke.content,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet}));M.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(ke,Fe){var qe=ke.getWordUntilPosition(Fe),gt={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:qe.startColumn,endColumn:qe.endColumn},ht=ke.getLineContent(Fe.lineNumber).substring(qe.startColumn-2,qe.endColumn);return{suggestions:[...O.keywords.map(Qe=>({label:Qe,kind:M.languages.CompletionItemKind.Function,documentation:Qe,insertText:Qe,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt})),...O.quickKey.map(Qe=>({label:Qe.label,kind:M.languages.CompletionItemKind.Function,documentation:Qe.content,insertText:ht.startsWith("#")?Qe.content.replace(/#/,""):Qe.content,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt}))]}}}),M.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(ke,Fe){var qe=ke.getWordUntilPosition(Fe),gt={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:qe.startColumn,endColumn:qe.endColumn};return{suggestions:[...xe.keywords.map(ht=>({label:ht,kind:M.languages.CompletionItemKind.Function,documentation:ht,insertText:ht,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt}))]}}}),M.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(ke,Fe){var qe=ke.getWordUntilPosition(Fe),gt={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:qe.startColumn,endColumn:qe.endColumn},ht=ke.getLineContent(Fe.lineNumber).substring(qe.startColumn-2,qe.endColumn);return{suggestions:[...pe.keywords.map(Qe=>({label:Qe,kind:M.languages.CompletionItemKind.Function,documentation:Qe,insertText:Qe,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt})),...pe.quickKey.map(Qe=>({label:Qe.label,kind:M.languages.CompletionItemKind.Function,documentation:Qe.content,insertText:ht.startsWith("#")?Qe.content.replace(/#/,""):Qe.content,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt}))]}}}),M.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(ke,Fe){var qe=ke.getWordUntilPosition(Fe),gt={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:qe.startColumn,endColumn:qe.endColumn},ht=ke.getLineContent(Fe.lineNumber).substring(qe.startColumn-2,qe.endColumn);return{suggestions:[...ce.keywords.map(Qe=>({label:Qe,kind:M.languages.CompletionItemKind.Function,documentation:Qe,insertText:Qe,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt})),...ce.quickKey.map(Qe=>({label:Qe.label,kind:M.languages.CompletionItemKind.Function,documentation:Qe.content,insertText:ht.startsWith("#")?Qe.content.replace(/#/,""):Qe.content,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt}))]}}}),M.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(ke,Fe){var qe=ke.getWordUntilPosition(Fe),gt={startLineNumber:Fe.lineNumber,endLineNumber:Fe.lineNumber,startColumn:qe.startColumn,endColumn:qe.endColumn},ht=ke.getLineContent(Fe.lineNumber).substring(qe.startColumn-2,qe.endColumn);return{suggestions:[...p.keywords.map(Qe=>({label:Qe,kind:M.languages.CompletionItemKind.Function,documentation:Qe,insertText:Qe,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt})),...p.quickKey.map(Qe=>({label:Qe.label,kind:M.languages.CompletionItemKind.Function,documentation:Qe.content,insertText:ht.startsWith("#")?Qe.content.replace(/#/,""):Qe.content,insertTextRules:M.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:gt}))]}}})};const de="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Se=Object.defineProperty,Ae=(M,se,ve)=>se in M?Se(M,se,{enumerable:!0,configurable:!0,writable:!0,value:ve}):M[se]=ve,Me=(M,se,ve)=>Ae(M,typeof se!="symbol"?se+"":se,ve);const ee=class Zl{constructor(se,ve,Ee){this.placeholder=se,this.editor=ve,this.monaco=Ee,ve.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Zl.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)}};Me(ee,"ID","editor.widget.placeholderHint");var Y=ee,V=x(96236),ue=x(8591),te=x(6848),y=x(89392),w=x(34604),Z=x(56102),G=Object.defineProperty,Pe=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,at=(M,se,ve)=>se in M?G(M,se,{enumerable:!0,configurable:!0,writable:!0,value:ve}):M[se]=ve,mt=(M,se)=>{for(var ve in se||(se={}))Xe.call(se,ve)&&at(M,ve,se[ve]);if(Ve)for(var ve of Ve(se))tt.call(se,ve)&&at(M,ve,se[ve]);return M},Ut=(M,se)=>Pe(M,Ue(se)),tr=(M,se)=>{var ve={};for(var Ee in M)Xe.call(M,Ee)&&se.indexOf(Ee)<0&&(ve[Ee]=M[Ee]);if(M!=null&&Ve)for(var Ee of Ve(M))se.indexOf(Ee)<0&&tt.call(M,Ee)&&(ve[Ee]=M[Ee]);return ve},Mt=(M,se,ve)=>new Promise((Ee,ke)=>{var Fe=ht=>{try{gt(ve.next(ht))}catch(Qe){ke(Qe)}},qe=ht=>{try{gt(ve.throw(ht))}catch(Qe){ke(Qe)}},gt=ht=>ht.done?Ee(ht.value):Promise.resolve(ht.value).then(Fe,qe);gt((ve=ve.apply(M,se)).next())});function jt(M){return/^\d+$/.test(M)?`${M}px`:M}function Yt(){}let er=!1;const ge={"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 fe(M=[]){let se=M;if(Array.isArray(M)){for(let ve=0;ve<M.length;ve++){let Ee=ge[M[ve]];if(Ee)return Ee}return se[0]}return ge[se]||se}let U=null;var ye=M=>{var se=M,{width:ve="100%",height:Ee="100%",value:ke,language:Fe="javascript",style:qe={},options:gt={},overrideServices:ht={},theme:Qe="vs-dark",onEditBlur:Ft,isCopy:Lt=!1,onSave:Le,autoHeight:Ke=!1,forbidCopy:lt=!1,onChange:vt=Yt,editorDidMount:Rt=Yt,onFocus:Gt=Yt,onBreakPoint:E=Yt,breakPointValue:T=[],filename:nt="educoder.txt",errorLine:W,errorContent:be="",highlightLine:rr,openBreakPoint:$e=!1,placeholder:je="",showMiniMap:Ze=!0}=se,re=tr(se,["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 me=(0,v.useRef)(),we=(0,v.useRef)({}),ze=(0,v.useRef)(),K=(0,v.useRef)(),Bt=(0,v.useRef)([]),Ce=(0,v.useRef)(!1),qt=(0,v.useRef)(),cr=(0,v.useRef)(),Pt=(0,v.useRef)(!1),[Ot,xt]=(0,v.useState)(!1);function Tt(){let sr;return me.current&&(sr=new q.Z(Be=>{for(let pt of Be)(pt.target.offsetHeight>0||pt.target.offsetWidth>0)&&we.current.instance.layout()}),sr.observe(me.current)),sr}function Ie(){ue.ZP.warning({content:decodeURIComponent(de),key:"monaco-editor-tip"})}const ut=()=>{let sr=we.current.instance;if(ke!=null&&sr&&Ot){const Be=sr.getModel();Be&&ke!==Be.getValue()&&(er=!0,Be.setValue(ke),sr.layout(),er=!1)}};(0,v.useEffect)(()=>{const sr=w.Z.subscribe("formatDocument",Be=>{var pt;let it=we.current.instance;(pt=it==null?void 0:it.getAction)==null||pt.call(it,"editor.action.formatDocument").run()});return window.updateMonacoValue=Be=>{vt(Be)},sr},[]),(0,v.useEffect)(()=>{var sr;let Be=we.current.instance;K.current&&clearTimeout(K.current),K.current=setTimeout(()=>{ut()},500),ke&&(ke!=null&&ke.length)&&((sr=Be==null?void 0:Be.updateOptions)==null||sr.call(Be,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ke.split(/\r\n|\r|\n/g).length))+3,5)}))},[ke,Ot,we.current]),(0,v.useEffect)(()=>{if(W&&we.current&&we.current.instance){let Be=we.current.instance;Be.changeViewZones(function(pt){var it=document.createElement("div");it.style.padding="10px 20px",it.style.width="calc(100% - 20px)",it.className="my-error-line-wrp",it.innerHTML=be,pt.addZone({afterLineNumber:W||11,heightInLines:3,domNode:it})});var sr={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}};Be.addOverlayWidget(sr),Be.revealPositionInCenter({lineNumber:20,column:1})}},[W,we.current,Ot]);const ct=(sr="",Be)=>{if(!sr||sr.trim()==="")return!0;const it=we.current.instance.getModel().getLineTokens(Be);let st=!1;for(let zt=0;zt<2;zt++)it.getStandardTokenType(zt)===1&&(st=!0);return st};(0,v.useEffect)(()=>{var sr;const Be=(sr=we.current)==null?void 0:sr.instance;if(Be&&Ot&&lt){const pt=Be.onDidBlurEditorWidget(()=>{Pt.current=!1}),it=Be.onDidFocusEditorText(()=>{Pt.current=!0});return()=>{pt.dispose(),it.dispose()}}},[we.current,Ot,lt]),(0,v.useEffect)(()=>{var sr;if((sr=we.current)!=null&&sr.instance&&Ot&&$e){let Be=we.current.instance,pt=Be.getModel();if(!pt)return;(()=>{var Dt;let ir=[],lr=[];const dr=pt.getAllDecorations();for(let Tr of dr)Tr.options.className==="highlighted-line"&&(ir.push((Dt=Tr==null?void 0:Tr.range)==null?void 0:Dt.startLineNumber),lr.push(Tr==null?void 0:Tr.id));if(rr===ir[0])return;pt.deltaDecorations(lr,[]);const Sr=pt.getLineCount();rr&&rr<=Sr&&(Be.deltaDecorations([],[{range:new U.Range(rr,1,rr,pt.getLineMaxColumn(rr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Be.revealLineInCenter(rr))})();const st=(Dt=!1)=>{var ir;let lr=[],dr=[];const Sr=pt.getAllDecorations();for(let Tr of Sr)Tr.options.linesDecorationsClassName==="breakpoints-select"&&(lr.push((ir=Tr==null?void 0:Tr.range)==null?void 0:ir.startLineNumber),dr.push(Tr==null?void 0:Tr.id));if(Dt)return{lines:lr,ids:dr};E(lr)},zt=Dt=>Mt(void 0,null,function*(){let ir={range:new U.Range(Dt,1,Dt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield pt.deltaDecorations([],[ir]),st()}),kt=Dt=>Mt(void 0,null,function*(){let ir=[];const lr=Be.getLineDecorations(Dt);for(let dr of lr)dr.options.linesDecorationsClassName==="breakpoints-select"&&ir.push(dr.id);yield pt.deltaDecorations(ir,[]),st()}),yt=Dt=>{let ir=Be.getLineDecorations(Dt);for(let lr of ir)if(lr.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,y.isEqual)(T,st(!0).lines)){pt.deltaDecorations(st(!0).ids,[]);const Dt=T.map(ir=>({range:new U.Range(ir,1,ir,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));pt.deltaDecorations([],Dt)}const Te=Be.onDidChangeModelContent(Dt=>{let ir=Be.getPosition();if(ir){let lr=ir.lineNumber;clearTimeout(cr.current),cr.current=setTimeout(()=>{ct(pt.getLineContent(lr),lr)?kt(lr):yt(lr)?(kt(lr),zt(lr)):st()},100)}}),Ge=Be.onMouseDown(Dt=>{var ir,lr,dr;if(Dt.target.detail&&((dr=(lr=(ir=Dt.target)==null?void 0:ir.element)==null?void 0:lr.className)!=null&&dr.includes("line-numbers"))){let Sr=Dt.target.position.lineNumber;if(ct(pt.getLineContent(Sr),Sr))return;yt(Sr)?kt(Sr):zt(Sr)}}),rt=Dt=>{let ir={range:new U.Range(Dt,1,Dt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Bt.current=Be.deltaDecorations(Bt.current,[ir])},wt=()=>{Bt.current=Be.deltaDecorations(Bt.current,[])},_t=Be.onMouseMove(Dt=>{var ir,lr,dr;if(wt(),Dt.target.detail&&((dr=(lr=(ir=Dt.target)==null?void 0:ir.element)==null?void 0:lr.className)!=null&&dr.includes("line-numbers"))){let Sr=Dt.target.position.lineNumber;if(ct(pt.getLineContent(Sr),Sr))return;rt(Sr)}}),Wt=Be.onMouseLeave(()=>{wt()});return()=>{Te.dispose(),Ge.dispose(),_t.dispose(),Wt.dispose()}}},[we.current,Ot,T,rr,$e,Fe]),(0,v.useEffect)(()=>{var sr;(sr=we.current)!=null&&sr.instance&&$e&&we.current.instance.setPosition({lineNumber:0,column:0})},[rr]);function bt(){let sr=we.current.instance;if(sr){const Be=sr.getSelection(),pt=we.current.pastePos||{},it=new U.Range(pt.startLineNumber||Be.endLineNumber,pt.startColumn||Be.endColumn,pt.endLineNumber||Be.endLineNumber,pt.endColumn||Be.endColumn);setTimeout(()=>{sr.executeEdits("",[{range:it,text:""}])},300)}}function et(sr){(window.navigator.platform.match("Mac")?sr.metaKey:sr.ctrlKey)&&sr.keyCode==83&&(sr.preventDefault(),Le())}const Nt=()=>{if(Ke&&we.current.instance){const sr=we.current.instance.getContentHeight();xr(sr<Ee?Ee:sr)}else xr(Ee)};function Vt(sr){var Be=document.createEvent("MouseEvents");Be.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),sr.dispatchEvent(Be)}const Zt=sr=>{if(!Pt.current)return;const{keyCode:Be,ctrlKey:pt,metaKey:it,target:st,type:zt}=sr;return(zt==="paste"||(Be===67||Be===86)&&(it||pt))&&st.nodeName==="TEXTAREA"&&(Ie(),sr.preventDefault()),!1};function vr(sr,Be){var pt=window.URL||window.webkitURL||window,it=new Blob([Be]),st=document.createElementNS("http://www.w3.org/1999/xhtml","a");st.href=pt.createObjectURL(it),st.download=sr,Vt(st)}(0,v.useEffect)(()=>{Nt()},[Nt]),(0,v.useEffect)(()=>{me.current&&!Ot&&Promise.all([x.e(8909),x.e(3267)]).then(x.bind(x,71448)).then(sr=>{try{U=sr,we.current.instance=U.editor.create(me.current,{value:ke,language:fe(Fe),theme:Qe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ze||!1}},ht);const Be=we.current.instance;let st=[...V.BH._menuItems].find(Te=>Te[0]._debugName=="EditorContext")[1],zt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],kt=(Te,Ge)=>{var rt,wt;let _t=Te._first;do Ge.includes((wt=(rt=_t.element)==null?void 0:rt.command)==null?void 0:wt.id)&&Te._remove(_t);while(_t=_t.next)};if(Rt(Be,U),setTimeout(()=>{Nt(),we.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{vr(nt||"educoder.txt",Be.getValue())}})},500),we.current.subscription=Be.onDidChangeModelContent(Te=>{Ce.current?clearTimeout(qt.current):(Nt(),vt(Be.getValue(),Te)),qt.current=setTimeout(()=>{Ce.current=!1},500)}),window.Monaco||Q(U,fe(Fe)),lt&&(kt(st,zt),me.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Zt),window.removeEventListener("paste",Zt),window.addEventListener("keydown",Zt),window.addEventListener("paste",Zt)),window.Monaco=U,Ft&&Be.onDidBlurEditorWidget(()=>{Ft(Be.getValue())}),Gt&&Be.onDidFocusEditorText(()=>{Gt(Be.getValue())}),lt)try{Be.onDidPaste(Te=>{const Ge=Be.getSelection(),rt=we.current.pastePos||{},wt=new U.Range(rt.startLineNumber||Ge.endLineNumber,rt.startColumn||Ge.endColumn,rt.endLineNumber||Ge.endLineNumber,rt.endColumn||Ge.endColumn);Be.executeEdits("",[{range:Te.range,text:""}])})}catch(Te){}let yt=Tt();return je&&typeof je=="string"&&new Y(je,Be,U),xt(!0),()=>{const Te=we.current.instance;Te.dispose();const Ge=Te.getModel();Ge&&Ge.dispose(),we.current.subscription&&we.current.subscription.dispose(),yt.unobserve(me.current)}}catch(Be){}})},[]),(0,v.useEffect)(()=>{if(we.current.instance&&Ot)return document.addEventListener("keydown",et,!1),()=>{document.removeEventListener("keydown",et)}},[Le,Ot]),(0,v.useEffect)(()=>{let sr=we.current.instance;if(sr&&Ot){let Be=fe(Fe);U.editor.setModelLanguage(sr.getModel(),Be)}},[Fe,Ot]),(0,v.useEffect)(()=>{we.current.instance&&Ot&&U.editor.setTheme(Qe)},[Qe,Ot]),(0,v.useEffect)(()=>{let sr=we.current.instance;ze.current=gt,sr&&Ot&&(sr.updateOptions(mt({},gt)),setTimeout(()=>{sr.getModel().updateOptions(mt({},gt))},200))},[JSON.stringify(gt),Ot]),(0,v.useEffect)(()=>{let sr=we.current.instance;sr&&Ot&&sr.layout()},[ve,Ee,Ot]);const[yr,or]=(0,v.useState)(jt(ve)),[br,xr]=(0,v.useState)(jt(Ee)),zr=Ut(mt({},qe),{width:yr,height:br,position:"relative"});return v.createElement("div",{className:"my-monaco-editor",ref:me,style:zr},Lt&&v.createElement(Z.CopyToClipboard,{text:ke,onCopy:()=>ue.ZP.success("\u590D\u5236\u6210\u529F")},v.createElement(te.Z,{title:"\u590D\u5236\u4EE3\u7801"},v.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},v.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Re({width:M="100%",height:se="100%",original:ve,modified:Ee,language:ke,options:Fe={}}){const qe=(0,v.useRef)(),[gt,ht]=(0,v.useState)(null);function Qe(Ke){let lt;return qe.current&&(lt=new q.Z(vt=>{for(let Rt of vt)(Rt.target.offsetHeight>0||Rt.target.offsetWidth>0)&&Ke.layout()}),lt.observe(qe.current)),lt}(0,v.useEffect)(()=>(qe.current&&Promise.all([x.e(8909),x.e(9404)]).then(x.bind(x,2550)).then(Ke=>{U=Ke;const lt=U.editor.createDiffEditor(qe.current,Ut(mt({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},Fe),{wordWrap:!0}));ht(lt);let vt=Qe(lt);return()=>{lt.dispose();const Rt=lt.getModel();Rt&&Rt.dispose(),vt.unobserve(qe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,v.useEffect)(()=>{gt&&gt.setModel({original:U.editor.createModel(ve,ke),modified:U.editor.createModel(Ee,ke)})},[ve,Ee,ke,gt]);const Ft=jt(M),Lt=jt(se),Le={width:Ft,height:Lt};return v.createElement("div",{className:"my-diff-editor",ref:qe,style:Le})}},85057:function(nr,ot,x){"use strict";x.d(ot,{jL:function(){return O},w9:function(){return Xe},QD:function(){return vt},cQ:function(){return Z},op:function(){return Qe},O5:function(){return cr},_b:function(){return W},t7:function(){return P},Gi:function(){return Mt},YG:function(){return Ut},qp:function(){return N},vr:function(){return E},qE:function(){return Le},Je:function(){return le},wb:function(){return V},cq:function(){return U},tp:function(){return A}});var v=x(59301),q={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"},xe="data:image/png;base64,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",O=({dataSource:Pt=[],img:Ot,imgWidth:xt=346,title:Tt,sunTitle:Ie,bannerExtraContent:ut})=>v.createElement("div",{className:q.banner},v.createElement("div",{className:q.content},v.createElement("aside",null,v.createElement("p",null,v.createElement("b",null,Tt),v.createElement("span",null,Ie)),Pt.length>0&&v.createElement("div",{className:q.btns},Pt.map((ct,bt)=>v.createElement("div",{key:bt,onClick:ct.click},ct.name,ct.sign?v.createElement("img",{src:xe,width:39}):null))),ut),Ot&&v.createElement("img",{style:{marginTop:33,marginRight:38},src:Ot,width:xt}))),p={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"},ce=x(92310),oe=x.n(ce),o=x(89392),N=({dataSource:Pt=[],value:Ot,onChange:xt,onTitleChange:Tt,className:Ie,title:ut,titleWidth:ct=41,style:bt={},fontColor:et="#6A7283",showCount:Nt})=>{const[Vt,Zt]=(0,v.useState)(0),[vr,yr]=(0,v.useState)(!1),or=(0,v.useRef)(null),br=(0,v.useRef)(null);return(0,v.useEffect)(()=>{var xr;Pt.length!==0&&(((xr=or==null?void 0:or.current)==null?void 0:xr.clientHeight)>97?Zt(1):Zt(0)),Pt.length===0&&Zt(0),yr(!1)},[Pt]),v.createElement("div",{className:oe()(p.row,Ie),style:bt},v.createElement("div",{onClick:(0,o.throttle)(()=>Tt==null?void 0:Tt(),2e3),style:{width:ct,marginTop:vr?12:4},className:`${p.title} ${Tt?"current":""}`},ut),v.createElement("div",{className:vr?`${p.tagsWrap} ${p.tagsBorderWrap}`:p.tagsWrap},v.createElement("div",{className:p.bar,ref:br,style:Vt>0?{height:Vt===1?97:"auto",overflow:Vt===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},v.createElement("div",{className:p.tag,ref:or},Pt==null?void 0:Pt.map(xr=>v.createElement("span",{onClick:()=>xt(xr.id),key:xr.id,style:{color:et},className:Ot===xr.id?p.active:""},v.createElement("span",{title:xr.name,className:p.name},xr.name),!!Nt&&v.createElement("span",{className:p.num},xr.count))))),!!Vt&&v.createElement(v.Fragment,null,Vt===1?v.createElement("div",{onClick:()=>{var xr;Zt(2),((xr=or==null?void 0:or.current)==null?void 0:xr.clientHeight)>245?yr(!0):yr(!1)},className:p.action},"\u5C55\u5F00",v.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):v.createElement("div",{onClick:()=>{br.current.scrollTop=0,Zt(1),yr(!1)},className:p.action},"\u6536\u8D77",v.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},S={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"},A=({dataSource:Pt=[],value:Ot,onChange:xt,className:Tt,style:Ie={}})=>v.createElement("div",{style:Ie,className:oe()(S.tabs,Tt)},Pt.map(ut=>v.createElement("span",{onClick:()=>xt(ut.id),className:Ot===ut.id?S.active:"",key:ut.id},ut.name))),I={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},X=x(92832),P=({dataSource:Pt=[],value:Ot="",onChange:xt,onInputChange:Tt=()=>{},className:Ie,style:ut={},placeholder:ct,allowClear:bt=!1})=>{var et;const[Nt,Vt]=(0,v.useState)(""),[Zt,vr]=(0,v.useState)("");(0,v.useEffect)(()=>{var br;let xr=Ot;(br=JSON.stringify(Ot))!=null&&br.includes("{")&&(Vt(Ot.id),xr=Ot.value||"");try{vr(decodeURIComponent(xr||""))}catch(zr){vr(decodeURIComponent(xr||""))}},[Ot]);const yr=()=>{xt(encodeURIComponent(Zt),Nt||null)},or=br=>{br!==Nt&&(Vt(br),xt(encodeURIComponent(Zt),br))};return v.createElement("div",{className:oe()(I.input,Ie),style:ut},!!Pt.length&&v.createElement("div",{className:I.dropdown},v.createElement("div",{className:I.text},(et=Pt.find(br=>br.id===Nt))==null?void 0:et.name,v.createElement("i",{className:"iconfont icon-zhankai4"}),v.createElement("b",{className:I.b1}),v.createElement("b",{className:I.b2})),v.createElement("div",{className:I.menu},Pt.map((br,xr)=>v.createElement("div",{key:xr,onClick:()=>or(br.id)},br.name)))),v.createElement(X.default,{onPressEnter:yr,value:Zt,onChange:br=>{vr(br.target.value),Tt(encodeURIComponent(br.target.value),Nt||null)},bordered:!1,placeholder:ct}),v.createElement("i",{onClick:yr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},B={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"},le=({value:Pt,onChange:Ot,className:xt,total:Tt,pageSize:Ie,style:ut={}})=>{const ct=Pt<2,bt=Pt>=Math.ceil(Tt/Ie);return Tt<=Ie?v.createElement(v.Fragment,null):v.createElement("div",{className:oe()(B.quickPager,xt),style:ut},v.createElement("div",{onClick:()=>{ct||Ot(Pt-1,"prev")},className:ct?B.disabled:""},"\u4E0A\u4E00\u9875"),v.createElement("div",{onClick:()=>{bt||Ot(Pt+1,"next")},className:bt?B.disabled:""},"\u4E0B\u4E00\u9875"))},k={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"},j=x(71418),J=x(6848),Q=x(13570),de=x(3294),Se=x(955),Ae=x(96908),Me=x(57177),ee=x(81378),F=x(8797),V=({className:Pt,dataSource:Ot=[],col:xt=4,right:Tt,bottom:Ie=23,precision:ut=0,wrapWidth:ct=1200,trackEventItems:bt,loading:et})=>{const Nt=Math.floor((ct-(xt-1)*Tt)/xt);return v.createElement(j.Z,{spinning:et},v.createElement("div",{className:oe()(k.list,Pt)},!!Ot.length&&Ot.map((Vt,Zt)=>{const{name:vr,id:yr,identifier:or,power:br,cover_image_id:xr,pic:zr}=Vt;return v.createElement("div",{className:k.wrap,key:yr,style:{width:Nt,marginRight:(1+Zt)%xt===0?0:Tt+ut,marginBottom:Ie}},v.createElement("a",{target:"_blank",href:`/shixuns/${or}/challenges`,className:k.li,onClick:sr=>{sr.preventDefault(),bt&&(0,Se.L9)([bt]),br&&(0,Se.xg)(`/shixuns/${or}/challenges`)}},v.createElement("div",{className:k.img},v.createElement("img",{className:k.cover,src:`${zr}`}),Vt.is_jupyter&&v.createElement("img",{className:k.sign,src:Ae}),Vt.is_jupyter_lab&&v.createElement("img",{className:k.sign,src:Me}),Vt.is_unity_3d&&v.createElement("img",{className:k.sign,src:ee})),v.createElement("div",{className:k.name},v.createElement(J.Z,{title:vr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},v.createElement("span",{className:k.e},vr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),v.createElement("div",{className:k.tags},v.createElement(J.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},v.createElement("span",null,v.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),v.createElement("span",null,Vt.challenges_count))),!!Vt.myshixuns_count&&v.createElement(J.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},v.createElement("span",null,v.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),v.createElement("span",null,Vt.myshixuns_count))),v.createElement(J.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},v.createElement("span",null,v.createElement("span",null,Vt.level))),v.createElement("div",{className:k.rate},v.createElement(Q.Z,{allowHalf:!0,disabled:!0,defaultValue:Vt.score_info}),v.createElement("span",null,"\xA0",Vt.score_info?`${Vt.score_info}\u5206`:"5\u5206")))),!br&&v.createElement("div",{className:k.lockWrap},v.createElement("img",{src:`${de.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),v.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ot.length&&v.createElement(F.Z,null)))},ue={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"},te=x(24065),y=x(59301),Z=({className:Pt,dataSource:Ot=[],col:xt=4,right:Tt,bottom:Ie=23,precision:ut=0,wrapWidth:ct=1200,trackEventItems:bt,loading:et,onRemove:Nt=()=>{},isCurrent:Vt=!0,showAlias:Zt=!1})=>{const vr=Math.floor((ct-(xt-1)*Tt)/xt),yr=[{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(j.Z,{spinning:et},y.createElement("div",{className:oe()(ue.list,Pt)},!!(Ot!=null&&Ot.length)&&(Ot==null?void 0:Ot.map((or,br)=>{var xr;const{name:zr,id:sr,identifier:Be,featured:pt,school_name:it,image_url:st,excellent:zt,is_plan:kt}=or;return y.createElement("div",{key:sr,className:ue.wrap,style:{width:vr,marginRight:(1+br)%xt===0?0:Tt+ut,marginBottom:Ie}},y.createElement("a",{className:ue.li,onClick:yt=>{yt.preventDefault(),yt.stopPropagation(),bt&&(0,Se.L9)([bt]),(0,Se.xg)(`/paths/${Be}`)}},y.createElement("div",{className:ue.img},y.createElement("img",{className:ue.cover,src:`${st}`}),Vt&&(0,te.bg)()&&(or==null?void 0:or.studying)&&y.createElement("div",{className:`${ue.movebq} user-path-items`,onClick:yt=>{yt.stopPropagation(),Nt(or)}},y.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),y.createElement("span",{className:"c-red"},"\u79FB\u9664")),(xr=or==null?void 0:or.subject_tags)==null?void 0:xr.map((yt,Te)=>{var Ge,rt;if(Te===0){const _t=(Ge=yr.find(Wt=>Wt.name==yt))==null?void 0:Ge.swimg;return y.createElement("img",{className:ue.sign,src:_t,style:{left:"-4px"}})}const wt=(rt=yr.find(_t=>_t.name==yt))==null?void 0:rt.ptimg;return y.createElement("img",{className:ue.sign,src:wt,style:{left:`${48+52*(Te-1)+2*Te}px`}})}),y.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(or==null?void 0:or.excellent)&&y.createElement("div",{className:ue.bq},"\u5F00\u653E\u8BFE\u7A0B"))),y.createElement("div",{className:ue.name},y.createElement(J.Z,{title:Zt&&(or!=null&&or.excellent_alias_name)?y.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${zr}`,y.createElement("br",null),y.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${or==null?void 0:or.excellent_alias_name}`)):zr},y.createElement("span",{className:ue.e},Zt&&(or==null?void 0:or.excellent_alias_name)||zr))),y.createElement(J.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${it}`},y.createElement("div",{className:ue.unit},y.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),it)),y.createElement("div",{className:ue.tags},y.createElement("div",null,y.createElement(J.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},y.createElement("span",null,y.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),y.createElement("span",null,or.stages_count))),y.createElement(J.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,or.members_count)))))))})),!Ot.length&&y.createElement(F.Z,null)))},G={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Pe="data:image/png;base64,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",Ue=x(59301),Xe=({className:Pt,dataSource:Ot=[],col:xt=4,right:Tt,bottom:Ie=23,precision:ut=0,wrapWidth:ct=1200,trackEventItems:bt,loading:et,handleVery:Nt=()=>!0})=>{const Vt=Math.floor((ct-(xt-1)*Tt)/xt);return Ue.createElement(j.Z,{spinning:et},Ue.createElement("div",{className:oe()(G.list,Pt)},!!Ot.length&&Ot.map((Zt,vr)=>{const{subject_identifier:yr,id:or,identifier:br,power:xr}=Zt,zr=Zt.is_public!=0&&Zt.is_public;return Ue.createElement("div",{className:G.wrap,key:or,style:{width:Vt,marginRight:(1+vr)%xt===0?0:Tt+ut,marginBottom:Ie}},Ue.createElement("a",{className:G.li,onClick:sr=>{sr.preventDefault(),Nt(Zt==null?void 0:Zt.first_category_url)&&(bt&&(0,Se.L9)([bt]),(0,Se.xg)(Zt.first_category_url))}},Ue.createElement("div",{className:G.top},Ue.createElement(J.Z,{title:Zt.name},Ue.createElement("div",{className:G.name},Zt.name)),Ue.createElement("img",{className:G.img,src:de.Z.IMG_SERVER+"/images/"+Zt.avatar_url}),Ue.createElement("div",{className:G.text,title:Zt.creator},Zt.creator),yr&&Ue.createElement("div",{className:G.btns},Ue.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Ue.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),zr&&Ue.createElement("div",{className:G.sign},"\u516C\u5F00")),Ue.createElement("div",{className:G.bottom},Zt.visits>0&&Ue.createElement(J.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-liulanyan"}),Ue.createElement("span",null,Zt.visits))),Zt.course_members_count>0&&Ue.createElement(J.Z,{title:"\u6210\u5458",placement:"bottom"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-chengyuan"}),Zt.course_members_count)),Zt.tasks_count>0&&Ue.createElement(J.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-zuoye"}),Zt.tasks_count)),Zt.is_end?Ue.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Ue.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Zt.is_accessible&&Ue.createElement("div",{className:G.lockWrap},Ue.createElement("img",{src:`${de.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Ue.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ot.length&&Ue.createElement(F.Z,null)))},tt={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"},at=x(89070),Ut=({dataSource:Pt=[],value:Ot,onChange:xt,className:Tt,style:Ie={},tabBarExtraContent:ut})=>v.createElement("div",{className:oe()(tt.tabs,Tt),style:Ie},v.createElement("div",{className:tt.tabsWrap},Pt.map((ct,bt)=>!(ct!=null&&ct.hide)&&v.createElement("aside",{className:tt.tab,onClick:()=>{xt(ct.id),ct.link&&at.history.push(ct.link)},key:bt},v.createElement("div",{className:Ot===ct.id?tt.active:""},ct.name),(ct==null?void 0:ct.resetCount)==null&&(ct==null?void 0:ct.total)!==void 0&&v.createElement("span",null,"\uFF08",ct==null?void 0:ct.total,"\uFF09"),(ct==null?void 0:ct.resetCount)!==void 0&&(ct==null?void 0:ct.total)!==void 0&&v.createElement(J.Z,{title:(ct==null?void 0:ct.tip)!=null?ct==null?void 0:ct.tip:""},v.createElement("span",{style:{color:"#9096A3"}},"\uFF08",v.createElement("span",{style:{color:"#000"}},ct==null?void 0:ct.resetCount),"/",v.createElement("span",null,ct==null?void 0:ct.total),"\uFF09"))))),v.createElement("div",{className:tt.tabBar},ut)),Mt=({className:Pt,style:Ot={},children:xt})=>v.createElement("div",{className:oe()(Pt),style:Ot},xt),jt={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=x(38854),er=x(20834);const ge=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var U=({sortValue:Pt,dropValue:Ot,className:xt,onSort:Tt,onDrop:Ie,dataSource:ut=ge})=>{var ct;return v.createElement("div",{className:oe()(jt.orderWrap,xt)},v.createElement(Yt.Z,{dropdownRender:()=>v.createElement(er.default,null,ut.map((bt,et)=>v.createElement(er.default.Item,{key:et,onClick:()=>Ie(bt.id)},bt.name)))},v.createElement("span",{className:jt.orderTextWrap},(ct=ut.find(bt=>Ot===bt.id))==null?void 0:ct.name)),v.createElement("span",{className:jt.orderIconWrap},v.createElement("span",{className:jt.orderAsc},v.createElement("i",{className:Pt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${jt.cursorPointer} ${jt.active}`:`iconfont icon-sanjiaoxing-up font12 ${jt.cursorPointer}`,onClick:()=>Tt(Pt==="asc"?"desc":"asc")})),v.createElement("span",{className:jt.orderDesc},v.createElement("i",{className:Pt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${jt.cursorPointer} ${jt.active}`:`iconfont icon-sanjiaoxing-down font12 ${jt.cursorPointer}`,onClick:()=>Tt(Pt==="asc"?"desc":"asc")}))))},ye={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"},Re=x(3113),M=Object.defineProperty,se=Object.getOwnPropertySymbols,ve=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,ke=(Pt,Ot,xt)=>Ot in Pt?M(Pt,Ot,{enumerable:!0,configurable:!0,writable:!0,value:xt}):Pt[Ot]=xt,Fe=(Pt,Ot)=>{for(var xt in Ot||(Ot={}))ve.call(Ot,xt)&&ke(Pt,xt,Ot[xt]);if(se)for(var xt of se(Ot))Ee.call(Ot,xt)&&ke(Pt,xt,Ot[xt]);return Pt},qe=(Pt,Ot)=>{var xt={};for(var Tt in Pt)ve.call(Pt,Tt)&&Ot.indexOf(Tt)<0&&(xt[Tt]=Pt[Tt]);if(Pt!=null&&se)for(var Tt of se(Pt))Ot.indexOf(Tt)<0&&Ee.call(Pt,Tt)&&(xt[Tt]=Pt[Tt]);return xt},gt=(Pt,Ot,xt)=>new Promise((Tt,Ie)=>{var ut=et=>{try{bt(xt.next(et))}catch(Nt){Ie(Nt)}},ct=et=>{try{bt(xt.throw(et))}catch(Nt){Ie(Nt)}},bt=et=>et.done?Tt(et.value):Promise.resolve(et.value).then(ut,ct);bt((xt=xt.apply(Pt,Ot)).next())}),Qe=Pt=>{var Ot=Pt,{className:xt,style:Tt,children:Ie,loading:ut=!1,openLoading:ct,onClick:bt=()=>{},size:et="middle",shape:Nt="round"}=Ot,Vt=qe(Ot,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Zt,vr]=(0,v.useState)(!1);return v.createElement(Re.ZP,Fe({onClick:(0,o.throttle)(yr=>gt(void 0,null,function*(){ct&&vr(!0);try{yield bt(yr)}catch(or){console.log("error",or)}ct&&vr(!1)}),2e3,{leading:!0,trailing:!1}),className:oe()(ye.btn,ye[`${et}-${Nt}`],xt),style:Tt,size:et,shape:Nt,loading:Zt||ut},Vt),Ie)},Ft={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"},Le=({className:Pt,style:Ot,children:xt=null,onClick:Tt,title:Ie})=>v.createElement("div",{className:oe()(Ft.head,Pt),style:Ot},v.createElement("span",{className:"primary-hover",onClick:Tt},v.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),v.createElement("b",{title:Ie},Ie),v.createElement("div",{className:Ft.node},xt)),Ke={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"},vt=({confirmShow:Pt=!0,confirmTitle:Ot,confirmClick:xt,cancelShow:Tt=!0,cancelTitle:Ie,cancelClick:ut,className:ct,style:bt,confirmLoading:et=!1})=>v.createElement("div",{className:oe()(Ke.btns,ct),style:bt},Pt&&v.createElement(Re.ZP,{loading:et,onClick:xt,type:"primary",className:Ke.confirm},Ot),Tt&&v.createElement(Re.ZP,{onClick:ut,className:Ke.cancel},Ie)),Rt={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"},E=({className:Pt,style:Ot={},LeftContent:xt,children:Tt,RightContent:Ie})=>v.createElement("div",{className:oe()(Rt.fixedBottom,Pt),style:Ot},v.createElement("div",{className:Rt.wrap},v.createElement("div",{className:Rt.left},xt),v.createElement("div",{className:Rt.center},Tt),v.createElement("div",{className:Rt.right},Ie))),T={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"},W=({className:Pt,style:Ot={},dataSource:xt=[]})=>v.createElement("div",{className:oe()(T.crumbs,Pt),style:Ot},xt.map((Tt,Ie)=>Ie<xt.length-1?v.createElement(v.Fragment,{key:Ie},Tt.path||Tt.onClick?v.createElement("span",{className:T.hover,onClick:Tt!=null&&Tt.onClick?Tt.onClick:()=>at.history.push(Tt.path)},Tt.name):v.createElement("span",null,Tt.name),v.createElement("span",null,"\xA0",">","\xA0")):v.createElement("span",{key:Ie,style:{color:"#5F6368"}},Tt.name))),be=x(31797),rr=Object.defineProperty,$e=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,we=(Pt,Ot,xt)=>Ot in Pt?rr(Pt,Ot,{enumerable:!0,configurable:!0,writable:!0,value:xt}):Pt[Ot]=xt,ze=(Pt,Ot)=>{for(var xt in Ot||(Ot={}))re.call(Ot,xt)&&we(Pt,xt,Ot[xt]);if(Ze)for(var xt of Ze(Ot))me.call(Ot,xt)&&we(Pt,xt,Ot[xt]);return Pt},K=(Pt,Ot)=>$e(Pt,je(Ot)),Bt=(Pt,Ot)=>{var xt={};for(var Tt in Pt)re.call(Pt,Tt)&&Ot.indexOf(Tt)<0&&(xt[Tt]=Pt[Tt]);if(Pt!=null&&Ze)for(var Tt of Ze(Pt))Ot.indexOf(Tt)<0&&me.call(Pt,Tt)&&(xt[Tt]=Pt[Tt]);return xt};const{Countdown:Ce}=be.default;var cr=Pt=>{var Ot=Pt,{onChange:xt}=Ot,Tt=Bt(Ot,["onChange"]);const[Ie,ut]=(0,v.useState)(null);(0,v.useEffect)(()=>{typeof Ie=="number"&&Ie>=0&&xt(Ie)},[Ie]);const ct=bt=>{const et=Math.floor(bt/1e3);ut(et)};return v.createElement(Ce,K(ze({},Tt),{onChange:ct}))}},66703:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return j}});var v=x(59301),q=x(78241),xe=x(8591),pe=x(43418),O=x(92832),p=x(54580),ce={flex_box_center:"flex_box_center___eFoM9",flex_space_between:"flex_space_between___Wg6Gr",flex_box_vertical_center:"flex_box_vertical_center___TqrrQ",flex_box_center_end:"flex_box_center_end___L9c4u",flex_box_column:"flex_box_column___SvH8v",form:"form___LQCl5",btn:"btn___l3d4K",img:"img___CeTIL"},oe=x(76895),o=x(3294),ne=x(19248),N=x(85057),S=Object.defineProperty,b=Object.defineProperties,A=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,X=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,P=(J,Q,de)=>Q in J?S(J,Q,{enumerable:!0,configurable:!0,writable:!0,value:de}):J[Q]=de,B=(J,Q)=>{for(var de in Q||(Q={}))X.call(Q,de)&&P(J,de,Q[de]);if(I)for(var de of I(Q))ie.call(Q,de)&&P(J,de,Q[de]);return J},H=(J,Q)=>b(J,A(Q)),le=(J,Q,de)=>new Promise((Se,Ae)=>{var Me=Y=>{try{F(de.next(Y))}catch(V){Ae(V)}},ee=Y=>{try{F(de.throw(Y))}catch(V){Ae(V)}},F=Y=>Y.done?Se(Y.value):Promise.resolve(Y.value).then(Me,ee);F((de=de.apply(J,Q)).next())}),j=({visible:J,onOk:Q,onCancel:de,title:Se=""})=>{var Ae,Me;const[ee]=q.default.useForm(),[F,Y]=(0,v.useState)(!1),[V,ue]=(0,v.useState)([]),[te,y]=(0,v.useState)(!1);console.log(J,22),(0,v.useEffect)(()=>{var tt,at;if(J!=null&&J.id){ee.setFieldsValue(H(B({},J),{attachment_id:(tt=J==null?void 0:J.attachment)==null?void 0:tt.id}));const mt=[H(B({},J==null?void 0:J.attachment),{response:{id:(at=J==null?void 0:J.attachment)==null?void 0:at.id}})];ue(mt)}},[J]);const w=()=>{ee.submit()},Z=()=>{de()},G=tt=>le(void 0,null,function*(){var at,mt;Y(!0);const Ut=H(B({},tt),{attachment_id:((mt=(at=V==null?void 0:V[0])==null?void 0:at.response)==null?void 0:mt.id)||""});Q(Ut)}),Pe=tt=>{var at,mt,Ut;ee.setFieldsValue({attachment_id:""}),["uploading","done","removed"].includes(tt.file.status)&&(tt.file.status==="uploading"&&y(!0),tt.file.status==="done"&&y(!1),ue(tt.fileList),ee.setFieldsValue({attachment_id:(Ut=(mt=(at=tt.fileList)==null?void 0:at[0])==null?void 0:mt.response)==null?void 0:Ut.id}))},Ue=tt=>{ue([])},Ve=tt=>tt.type==="image/jpeg"||tt.type==="image/png"?tt.size/1024/1024>2?(xe.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E2MB"),Promise.reject()):(ue([]),!0):(xe.ZP.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),Promise.reject()),Xe=()=>{var tt,at;return v.createElement("div",{className:ce.img},v.createElement("img",{src:o.Z.API_SERVER+"/api/attachments/"+((at=(tt=V==null?void 0:V[0])==null?void 0:tt.response)==null?void 0:at.id),alt:"avatar",style:{width:"100%"}}),v.createElement("div",null,v.createElement(ne.Z,{onClick:()=>{ue([]),ee.setFieldsValue({attachment_id:""})},style:{fontSize:"16px",color:"red"}})))};return v.createElement(pe.default,{title:`${J!=null&&J.id?"\u7F16\u8F91":"\u65B0\u5EFA"}${Se}`,open:J,onOk:w,centered:!0,onCancel:Z,confirmLoading:F,okButtonProps:{disabled:te},width:686,afterClose:()=>{Y(!1),ue([]),ee.resetFields()},okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",wrapClassName:oe.Z.CustomCss},v.createElement(q.default,{form:ee,colon:!1,labelCol:{span:4},wrapperCol:{span:18},onFinish:G,className:ce.form},v.createElement(q.default.Item,{label:`${Se}\u540D\u79F0`,name:"name",rules:[{required:!0,message:`\u8BF7\u8F93\u5165${Se}\u540D\u79F0`},{whitespace:!0,message:`\u8BF7\u8F93\u5165${Se}\u540D\u79F0`},{max:100,message:"\u53EA\u80FD\u8F93\u516560\u4E2A\u5B57\u7B26"}]},v.createElement(O.default,{maxLength:100,placeholder:`\u8BF7\u8F93\u5165${Se}\u540D\u79F0`})),v.createElement(q.default.Item,{label:"\u4F5C\u8005",name:"author",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u8005"},{max:50,message:"\u53EA\u80FD\u8F93\u516550\u4E2A\u5B57\u7B26"}]},v.createElement(O.default,{maxLength:50,placeholder:"\u8BF7\u8F93\u5165\u4F5C\u8005"})),v.createElement(q.default.Item,{label:"\u51FA\u7248\u793E",name:"publisher",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u51FA\u7248\u793E"},{whitespace:!0,message:"\u5B9E\u8DF5\u51FA\u7248\u793E"},{max:50,message:"\u53EA\u80FD\u8F93\u516550\u4E2A\u5B57\u7B26"}]},v.createElement(O.default,{maxLength:50,placeholder:"\u8BF7\u8F93\u5165\u51FA\u7248\u793E"})),v.createElement(q.default.Item,{label:"\u51FA\u7248\u65F6\u95F4",name:"publication_time",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u51FA\u7248\u65F6\u95F4"},{whitespace:!0,message:"\u8BF7\u8F93\u5165\u51FA\u7248\u65F6\u95F4"}]},v.createElement(O.default,{maxLength:60,placeholder:"\u8BF7\u8F93\u5165\u51FA\u7248\u65F6\u95F4"})),v.createElement(q.default.Item,{label:"ISBN",name:"number",rules:[{required:!0,message:"\u8BF7\u8F93\u5165ISBN"},{whitespace:!0,message:"\u8BF7\u8F93\u5165ISBN"}]},v.createElement(O.default,{maxLength:60,placeholder:"\u8BF7\u8F93\u5165ISBN"})),v.createElement(q.default.Item,{name:"attachment_id",label:"\u5C01\u9762\u56FE\u7247",rules:[{required:!0,message:"\u8BF7\u4E0A\u4F20\u5C01\u9762\u56FE\u7247"}]},v.createElement("div",{className:ce.upload},(Me=(Ae=V==null?void 0:V[0])==null?void 0:Ae.response)!=null&&Me.id?Xe():v.createElement(p.default,{fileList:V,action:`${o.Z.API_SERVER}/api/attachments.json`,onChange:tt=>Pe(tt),onRemove:tt=>Ue(tt),beforeUpload:tt=>Ve(tt),withCredentials:!0,accept:"image/*"},v.createElement(N.op,{style:{borderRadius:"2px",marginLeft:4,marginTop:3}},v.createElement("i",{className:"iconfont icon-shangchuantupian2 mr5"}),"\u4E0A\u4F20\u56FE\u7247")))),v.createElement(q.default.Item,{label:"\u8D2D\u4E66\u94FE\u63A5",name:"buy_url",rules:[{type:"url",message:"\u8D2D\u4E66\u94FE\u63A5\u683C\u5F0F\u4E0D\u6B63\u786E"}]},v.createElement(O.default,{placeholder:"\u8BF7\u8F93\u5165\u8D2D\u4E66\u94FE\u63A5",maxLength:150})),v.createElement(q.default.Item,{label:"\u76F8\u5173\u8BFE\u7A0B\u94FE\u63A5",name:"relevance_url",rules:[{type:"url",message:"\u76F8\u5173\u8BFE\u7A0B\u94FE\u63A5\u683C\u5F0F\u4E0D\u6B63\u786E"}]},v.createElement(O.default,{placeholder:"\u8BF7\u8F93\u5165\u76F8\u5173\u8BFE\u7A0B\u94FE\u63A5",maxLength:150}))))}},75431:function(nr,ot,x){"use strict";x.r(ot),x.d(ot,{default:function(){return de}});var v=x(59301),q=x(89070),xe=x(95237),pe=x(43604),O=x(61621),p=x(6848),ce=x(8797),oe={flex_box_center:"flex_box_center___ib72a",flex_space_between:"flex_space_between___QmDfb",flex_box_vertical_center:"flex_box_vertical_center___XXhZp",flex_box_center_end:"flex_box_center_end___HeMGP",flex_box_column:"flex_box_column___g0Y22",Onerow:"Onerow___vo6jS",MultiLine:"MultiLine___W7Vel",wrap:"wrap___VxAa4",list:"list___BOHb1",left:"left___KgBuF",right:"right___bBZU2",title:"title___uBnVu",des:"des___MgP7x",PieceFenbuList:"PieceFenbuList___gzTyL",PieceFenbuItem:"PieceFenbuItem___Z9J18",MultiLine3:"MultiLine3___KeM07"},o=x(99064),ne=x(85057),N="data:image/png;base64,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",S="data:image/png;base64,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",b=x(66703),A=x(85149),I=x(3294),X=x(24065),ie=x(955),P=Object.defineProperty,B=Object.getOwnPropertySymbols,H=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,k=(Se,Ae,Me)=>Ae in Se?P(Se,Ae,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Se[Ae]=Me,j=(Se,Ae)=>{for(var Me in Ae||(Ae={}))H.call(Ae,Me)&&k(Se,Me,Ae[Me]);if(B)for(var Me of B(Ae))le.call(Ae,Me)&&k(Se,Me,Ae[Me]);return Se},J=(Se,Ae,Me)=>new Promise((ee,F)=>{var Y=te=>{try{ue(Me.next(te))}catch(y){F(y)}},V=te=>{try{ue(Me.throw(te))}catch(y){F(y)}},ue=te=>te.done?ee(te.value):Promise.resolve(te.value).then(Y,V);ue((Me=Me.apply(Se,Ae)).next())});const Q=({globalSetting:Se,dispatch:Ae,virtualSpaces:Me})=>{const[ee,F]=(0,v.useState)(!0),[Y,V]=(0,v.useState)(!1),[ue,te]=(0,v.useState)(parseInt(localStorage.getItem("isMaterPieceFenbu")||"1")),[y,w]=(0,v.useState)([]),{virtualSpacesDetails:Z}=Me,G=(0,q.useParams)(),[Pe,Ue]=(0,v.useState)("1"),Ve=(Z==null?void 0:Z.is_member)||(0,X.Ny)();(0,v.useEffect)(()=>{Xe()},[Pe,window.localStorage.getItem("vtrsModuleId")]);const Xe=()=>J(void 0,null,function*(){F(!0);const mt=yield(0,o.ZP)(`/api/virtual_classrooms/${G.virtual_spacesId}/subject_materials/list.json`,{method:"get",params:{material_type:Pe,virtual_module_id:window.localStorage.getItem("vtrsModuleId")}});(mt==null?void 0:mt.status)!==-1&&w((mt==null?void 0:mt.list)||[]),F(!1)}),tt=[{id:"1",name:"\u4E3B\u6559\u6750"},{id:"2",name:"\u5B9E\u8DF5\u6559\u6750"}],at=mt=>J(void 0,null,function*(){const Ut=yield(0,o.ZP)(`/api/virtual_classrooms/${G.virtual_spacesId}/subject_materials.json`,{method:"post",body:j({material_type:Pe,virtual_module_id:window.localStorage.getItem("vtrsModuleId")},mt)});(Ut==null?void 0:Ut.status)!==-1&&(Xe(),V(!1))});return v.createElement("section",{className:oe.wrap},v.createElement(ne.YG,{value:Pe,onChange:mt=>{Ue(mt)},tabBarExtraContent:Ve&&v.createElement(xe.Z,{align:"middle"},v.createElement(pe.Z,{className:"mr20"},v.createElement("i",{className:`iconfont ${ue!=1?"icon-fenbu-2":"icon-fenbu"}`,onClick:()=>{te(ue!=1?1:2),localStorage.setItem("isMaterPieceFenbu",`${ue!=1?1:2}`)}})),Pe==="1"&&v.createElement(ne.op,{onClick:()=>V(!0)},v.createElement("img",{className:"mr5",width:20,style:{marginTop:-2},src:N}),"\u65B0\u5EFA\u4E3B\u6559\u6750"),Pe==="2"&&v.createElement(ne.op,{onClick:()=>V(!0)},v.createElement("img",{className:"mr5",width:20,style:{marginTop:-2},src:S}),"\u65B0\u5EFA\u5B9E\u8DF5\u6559\u6750")),dataSource:tt}),v.createElement(O.Z,{className:"mt20",loading:ee},!y.length&&v.createElement(ce.Z,null),ue!=1?v.createElement("div",{className:oe.PieceFenbuList},y.map(mt=>{const{name:Ut,id:tr,attachment:Mt,author:jt,publisher:Yt,number:er,publication_time:ge,description:fe}=mt;return v.createElement(xe.Z,{key:tr,className:oe.PieceFenbuItem,wrap:!1,onClick:()=>q.history.push(`/${ie.AS}/${G.virtual_spacesId}/material/${tr}/detail?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},v.createElement(xe.Z,{style:{flexDirection:"column",width:171}},v.createElement("img",{width:171,height:215,src:I.Z.API_SERVER+(Mt==null?void 0:Mt.url)}),v.createElement(pe.Z,{className:"font12",style:{marginTop:"15px"}},"\u4F5C\u8005\uFF1A",jt),v.createElement(pe.Z,{className:"mt10 font12"},"\u51FA\u7248\u793E\uFF1A",Yt),v.createElement(pe.Z,{className:"mt10 font12"},"ISBN\uFF1A",er),v.createElement(pe.Z,{className:"mt10 font12"},"\u51FA\u7248\u65F6\u95F4\uFF1A",ge)),v.createElement(xe.Z,{className:"ml20",style:{flexDirection:"column",flex:1,position:"relative"}},v.createElement(p.Z,{placement:"topLeft",title:Ut},v.createElement(pe.Z,{className:`${oe.MultiLine} font16`,style:{marginTop:"13px",fontWeight:500}},Ut)),v.createElement(pe.Z,{className:oe.MultiLine3},v.createElement(A.Z,{showTextOnly:!0,value:"\u7B80\u4ECB\uFF1A"+(fe||"\u6682\u672A\u586B\u5199\u5185\u5BB9\uFF5E")}))))})):v.createElement(v.Fragment,null,y.map(mt=>{const{name:Ut,id:tr,attachment:Mt,author:jt,publisher:Yt,number:er,publication_time:ge,description:fe}=mt;return v.createElement("div",{key:tr,className:oe.list,onClick:()=>q.history.push(`/${ie.AS}/${G.virtual_spacesId}/material/${tr}/detail?leftMenuId=${window.localStorage.getItem("vtrsModuleId")}`)},v.createElement("div",{className:oe.left},v.createElement("img",{src:I.Z.API_SERVER+(Mt==null?void 0:Mt.url)})),v.createElement("div",{className:oe.right},v.createElement("div",{className:oe.title},Ut),v.createElement("aside",null,v.createElement(p.Z,{title:jt},v.createElement("span",null,"\u4F5C\u8005\uFF1A",jt)),v.createElement(p.Z,{title:Yt},v.createElement("span",null,"\u51FA\u7248\u793E\uFF1A",Yt))),v.createElement("aside",null,v.createElement(p.Z,{title:er},v.createElement("span",null,"ISBN\uFF1A",er)),v.createElement("span",null,"\u51FA\u7248\u65F6\u95F4\uFF1A",ge)),v.createElement("div",{className:"c-grey-666 font14 mb5"},"\u7B80\u4ECB\uFF1A"),v.createElement("div",{className:oe.des},v.createElement(A.Z,{showTextOnly:!0,showLines:3,value:fe||""}))))}))),v.createElement(b.Z,{visible:Y,title:Pe==="1"?"\u4E3B\u6559\u6750":"\u5B9E\u8DF5\u6559\u6750",onCancel:()=>V(!1),onOk:at}))};var de=(0,q.connect)(({virtualSpaces:Se,globalSetting:Ae})=>({globalSetting:Ae,virtualSpaces:Se}))(Q)},24768:function(nr,ot,x){"use strict";x.d(ot,{AL:function(){return le},Iy:function(){return N},Qv:function(){return A},ez:function(){return H},jb:function(){return S}});var v=x(32834),q=x.n(v),xe=x(11690),pe=x.n(xe);let O=1;function p(de,Se){const Ae=de.match(/^(\s+)(?:```)/);if(Ae===null)return Se;const Me=Ae[1];return Se.split(`
`).map(ee=>{const F=ee.match(/^\s+/);if(F===null)return ee;const[Y]=F;return Y.length>=Me.length?ee.slice(Me.length):ee}).join(`
`)}let ce=[],oe=["<ul>"];const o=new(q()).Renderer,ne=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function N(){ce.length=0,oe=["<ul>"]}const S={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function b(de,Se,Ae,Me){if(Se>=de.length||de[Se].level<=Ae)return Se;var ee=de[Se];Me.push("<li><a href='#"+O+ee.anchor+"'>"+ee.text+"</a>"),Se++;var F=[];return Se=b(de,Se,ee.level,F),F.length>0&&(Me.push("<ul>"),F.forEach(function(Y){Me.push(Y)}),Me.push("</ul>")),Me.push("</li>"),Se=b(de,Se,Ae,Me),Se}function A(){return b(ce,0,0,oe),oe.push("</ul>"),oe.join("")}const I={heading(de){const Se=ne.exec(de);if(O+=1,Se)return{type:"heading",raw:Se[0],depth:Se[1].length,text:Se[2]}},fences(de){const Se=this.rules.block.fences.exec(de);if(Se){const Ae=Se[0];let Me=p(Ae,Se[3]||"");const ee=Se[2]?Se[2].trim():Se[2];if(["latex","katex","math"].indexOf(ee)>=0){const F=P(),Y=Me;Me=F,B[F]={type:"block",expression:Y}}return{type:"code",raw:Ae,lang:ee,text:Me}}}},X=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ie=0;const P=()=>`__special_katext_id_${ie++}__`;let B={};function H(){return B}function le(){ie=0,B={}}function k(de){return de=de.replace(X,(Se,Ae)=>{const Me=P();return B[Me]={type:"inline",expression:Ae},Me}),de}const j=o.listitem;o.listitem=function(de){return j(k(de))};const J=o.paragraph;o.paragraph=function(de){return J(k(de))};const Q=o.tablecell;o.tablecell=function(de,Se){return Q(k(de),Se)},o.code=function(de,Se,Ae){const Me=(Se||"").match(/\S*/)[0];return Me?["latex","katex","math"].indexOf(Me)>=0?`<p class='editormd-tex'>${de}</p>`:`<pre class="prettyprint linenums"><code class="language-${Se}">${Ae?de:(0,xe.escape)(de,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Ae?de:(0,xe.escape)(de,!0))+"</code></pre>"},o.heading=function(de,Se,Ae){let Me=this.options.headerPrefix+Ae.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ce.push({anchor:Me,level:Se,text:de}),"<h"+Se+' id="'+O+Me+'">'+de+"</h"+Se+">"},q().setOptions({silent:!0,gfm:!0,pedantic:!1}),q().use({tokenizer:I,renderer:o}),ot.ZP=q()},36785:function(nr,ot,x){"use strict";x.d(ot,{o2:function(){return O},yT:function(){return p}});var v=x(80702),q=x(33166);const xe=q.i.map(ce=>`${ce}-inverse`),pe=["success","processing","error","default","warning"];function O(ce){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,v.Z)(xe),(0,v.Z)(q.i)).includes(ce):q.i.includes(ce)}function p(ce){return pe.includes(ce)}},56762:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return q}});var v=x(59301);function q(){const[,xe]=v.useReducer(pe=>pe+1,0);return xe}},79676:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return p}});var v=x(19447);function q(ce,oe,o,ne){if(ne===!1)return{adjustX:!1,adjustY:!1};const N=ne&&typeof ne=="object"?ne:{},S={};switch(ce){case"top":case"bottom":S.shiftX=oe.dropdownArrowOffset*2+o;break;case"left":case"right":S.shiftY=oe.dropdownArrowOffsetVertical*2+o;break}const b=Object.assign(Object.assign({},S),N);return b.shiftX||(b.adjustX=!0),b.shiftY||(b.adjustY=!0),b}const xe={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},pe={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},O=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function p(ce){const{arrowWidth:oe,autoAdjustOverflow:o,arrowPointAtCenter:ne,offset:N,borderRadius:S,visibleFirst:b}=ce,A=oe/2,I={};return Object.keys(xe).forEach(X=>{const ie=ne&&pe[X]||xe[X],P=Object.assign(Object.assign({},ie),{offset:[0,0]});switch(I[X]=P,O.has(X)&&(P.autoArrow=!1),X){case"top":case"topLeft":case"topRight":P.offset[1]=-A-N;break;case"bottom":case"bottomLeft":case"bottomRight":P.offset[1]=A+N;break;case"left":case"leftTop":case"leftBottom":P.offset[0]=-A-N;break;case"right":case"rightTop":case"rightBottom":P.offset[0]=A+N;break}const B=(0,v.fS)({contentRadius:S,limitVerticalRadius:!0});if(ne)switch(X){case"topLeft":case"bottomLeft":P.offset[0]=-B.dropdownArrowOffset-A;break;case"topRight":case"bottomRight":P.offset[0]=B.dropdownArrowOffset+A;break;case"leftTop":case"rightTop":P.offset[1]=-B.dropdownArrowOffset-A;break;case"leftBottom":case"rightBottom":P.offset[1]=B.dropdownArrowOffset+A;break}P.overflow=q(X,B,oe,o),b&&(P.htmlRegion="visibleFirst")}),I}},19080:function(nr,ot,x){"use strict";x.d(ot,{F:function(){return O},Z:function(){return pe}});var v=x(92310),q=x.n(v);const xe=null;function pe(p,ce,oe){return q()({[`${p}-status-success`]:ce==="success",[`${p}-status-warning`]:ce==="warning",[`${p}-status-error`]:ce==="error",[`${p}-status-validating`]:ce==="validating",[`${p}-has-feedback`]:oe})}const O=(p,ce)=>ce||p},91857:function(nr,ot,x){"use strict";var v=x(59301),q=x(38819),xe=x(92310),pe=x.n(xe),O=x(31561),p=x(70425),ce=x(18929),oe=x(2738),o=x(79676),ne=x(53487),N=x(92343),S=x(36355),b=x(20834),A=x(40875),I=x(88088),X=x(47211);const ie=null,P=k=>{const{menu:j,arrow:J,prefixCls:Q,children:de,trigger:Se,disabled:Ae,dropdownRender:Me,getPopupContainer:ee,overlayClassName:F,rootClassName:Y,open:V,onOpenChange:ue,visible:te,onVisibleChange:y,mouseEnterDelay:w=.15,mouseLeaveDelay:Z=.1,autoAdjustOverflow:G=!0,placement:Pe="",overlay:Ue,transitionName:Ve}=k,{getPopupContainer:Xe,getPrefixCls:tt,direction:at}=v.useContext(S.E_),mt=v.useMemo(()=>{const Fe=tt();return Ve!==void 0?Ve:Pe.includes("top")?`${Fe}-slide-down`:`${Fe}-slide-up`},[tt,Pe,Ve]),Ut=v.useMemo(()=>Pe?Pe.includes("Center")?Pe.slice(0,Pe.indexOf("Center")):Pe:at==="rtl"?"bottomRight":"bottomLeft",[Pe,at]),tr=tt("dropdown",Q),[Mt,jt]=(0,X.Z)(tr),[,Yt]=(0,I.Z)(),er=v.Children.only(de),ge=(0,N.Tm)(er,{className:pe()(`${tr}-trigger`,{[`${tr}-rtl`]:at==="rtl"},er.props.className),disabled:Ae}),fe=Ae?[]:Se;let U;fe&&fe.includes("contextMenu")&&(U=!0);const[ye,Re]=(0,ce.Z)(!1,{value:V!=null?V:te}),M=(0,p.useEvent)(Fe=>{ue==null||ue(Fe),y==null||y(Fe),Re(Fe)}),se=pe()(F,Y,jt,{[`${tr}-rtl`]:at==="rtl"}),ve=(0,o.Z)({arrowPointAtCenter:typeof J=="object"&&J.pointAtCenter,autoAdjustOverflow:G,offset:Yt.marginXXS,arrowWidth:J?Yt.sizePopupArrow:0,borderRadius:Yt.borderRadius}),Ee=v.useCallback(()=>{Re(!1)},[]),ke=()=>{let Fe;return j!=null&&j.items?Fe=v.createElement(b.default,Object.assign({},j)):typeof Ue=="function"?Fe=Ue():Fe=Ue,Me&&(Fe=Me(Fe)),Fe=v.Children.only(typeof Fe=="string"?v.createElement("span",null,Fe):Fe),v.createElement(A.J,{prefixCls:`${tr}-menu`,expandIcon:v.createElement("span",{className:`${tr}-menu-submenu-arrow`},v.createElement(q.Z,{className:`${tr}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ee,validator:qe=>{let{mode:gt}=qe}},Fe)};return Mt(v.createElement(O.Z,Object.assign({alignPoint:U},(0,oe.Z)(k,["rootClassName"]),{mouseEnterDelay:w,mouseLeaveDelay:Z,visible:ye,builtinPlacements:ve,arrow:!!J,overlayClassName:se,prefixCls:tr,getPopupContainer:ee||Xe,transitionName:mt,trigger:fe,overlay:ke,placement:Ut,onVisibleChange:M}),ge))};function B(k){return Object.assign(Object.assign({},k),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const H=(0,ne.Z)(P,"dropdown",k=>k,B),le=k=>v.createElement(H,Object.assign({},k),v.createElement("span",null));P._InternalPanelDoNotUseOrYouWillBeFired=le,ot.Z=P},38854:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return I}});var v=x(91857),q=x(92310),xe=x.n(q),pe=x(59301),O=x(18785),p=x(3113),ce=x(36355),oe=x(81327),o=x(33234),ne=x(47211),N=function(X,ie){var P={};for(var B in X)Object.prototype.hasOwnProperty.call(X,B)&&ie.indexOf(B)<0&&(P[B]=X[B]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,B=Object.getOwnPropertySymbols(X);H<B.length;H++)ie.indexOf(B[H])<0&&Object.prototype.propertyIsEnumerable.call(X,B[H])&&(P[B[H]]=X[B[H]]);return P};const S=X=>{const{getPopupContainer:ie,getPrefixCls:P,direction:B}=pe.useContext(ce.E_),{prefixCls:H,type:le="default",danger:k,disabled:j,loading:J,onClick:Q,htmlType:de,children:Se,className:Ae,menu:Me,arrow:ee,autoFocus:F,overlay:Y,trigger:V,align:ue,open:te,onOpenChange:y,placement:w,getPopupContainer:Z,href:G,icon:Pe=pe.createElement(O.Z,null),title:Ue,buttonsRender:Ve=ke=>ke,mouseEnterDelay:Xe,mouseLeaveDelay:tt,overlayClassName:at,overlayStyle:mt,destroyPopupOnHide:Ut,dropdownRender:tr}=X,Mt=N(X,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),jt=P("dropdown",H),Yt=`${jt}-button`,[er,ge]=(0,ne.Z)(jt),fe={menu:Me,arrow:ee,autoFocus:F,align:ue,disabled:j,trigger:j?[]:V,onOpenChange:y,getPopupContainer:Z||ie,mouseEnterDelay:Xe,mouseLeaveDelay:tt,overlayClassName:at,overlayStyle:mt,destroyPopupOnHide:Ut,dropdownRender:tr},{compactSize:U,compactItemClassnames:ye}=(0,o.ri)(jt,B),Re=xe()(Yt,ye,Ae,ge);"overlay"in X&&(fe.overlay=Y),"open"in X&&(fe.open=te),"placement"in X?fe.placement=w:fe.placement=B==="rtl"?"bottomLeft":"bottomRight";const M=pe.createElement(p.ZP,{type:le,danger:k,disabled:j,loading:J,onClick:Q,htmlType:de,href:G,title:Ue},Se),se=pe.createElement(p.ZP,{type:le,danger:k,icon:Pe}),[ve,Ee]=Ve([M,se]);return er(pe.createElement(oe.Z.Compact,Object.assign({className:Re,size:U,block:!0},Mt),ve,pe.createElement(v.Z,Object.assign({},fe),Ee)))};S.__ANT_BUTTON=!0;var b=S;const A=v.Z;A.Button=b;var I=A},47211:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return N}});var v=x(17313),q=x(13826),xe=x(92899),pe=x(29878),O=x(19447),p=x(83116),ce=x(37613),o=S=>{const{componentCls:b,menuCls:A,colorError:I,colorTextLightSolid:X}=S,ie=`${A}-item`;return{[`${b}, ${b}-menu-submenu`]:{[`${A} ${ie}`]:{[`&${ie}-danger:not(${ie}-disabled)`]:{color:I,"&:hover":{color:X,backgroundColor:I}}}}}};const ne=S=>{const{componentCls:b,menuCls:A,zIndexPopup:I,dropdownArrowDistance:X,sizePopupArrow:ie,antCls:P,iconCls:B,motionDurationMid:H,dropdownPaddingVertical:le,fontSize:k,dropdownEdgeChildPadding:j,colorTextDisabled:J,fontSizeIcon:Q,controlPaddingHorizontal:de,colorBgElevated:Se}=S;return[{[b]:Object.assign(Object.assign({},(0,v.Wf)(S)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:I,display:"block","&::before":{position:"absolute",insetBlock:-X+ie/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${P}-btn`]:{[`& > ${B}-down, & > ${P}-btn-icon > ${B}-down`]:{fontSize:Q}},[`${b}-wrap`]:{position:"relative",[`${P}-btn > ${B}-down`]:{fontSize:Q},[`${B}-down::before`]:{transition:`transform ${H}`}},[`${b}-wrap-open`]:{[`${B}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${P}-slide-down-enter${P}-slide-down-enter-active${b}-placement-bottomLeft,
&${P}-slide-down-appear${P}-slide-down-appear-active${b}-placement-bottomLeft,
&${P}-slide-down-enter${P}-slide-down-enter-active${b}-placement-bottom,
&${P}-slide-down-appear${P}-slide-down-appear-active${b}-placement-bottom,
&${P}-slide-down-enter${P}-slide-down-enter-active${b}-placement-bottomRight,
&${P}-slide-down-appear${P}-slide-down-appear-active${b}-placement-bottomRight`]:{animationName:q.fJ},[`&${P}-slide-up-enter${P}-slide-up-enter-active${b}-placement-topLeft,
&${P}-slide-up-appear${P}-slide-up-appear-active${b}-placement-topLeft,
&${P}-slide-up-enter${P}-slide-up-enter-active${b}-placement-top,
&${P}-slide-up-appear${P}-slide-up-appear-active${b}-placement-top,
&${P}-slide-up-enter${P}-slide-up-enter-active${b}-placement-topRight,
&${P}-slide-up-appear${P}-slide-up-appear-active${b}-placement-topRight`]:{animationName:q.Qt},[`&${P}-slide-down-leave${P}-slide-down-leave-active${b}-placement-bottomLeft,
&${P}-slide-down-leave${P}-slide-down-leave-active${b}-placement-bottom,
&${P}-slide-down-leave${P}-slide-down-leave-active${b}-placement-bottomRight`]:{animationName:q.Uw},[`&${P}-slide-up-leave${P}-slide-up-leave-active${b}-placement-topLeft,
&${P}-slide-up-leave${P}-slide-up-leave-active${b}-placement-top,
&${P}-slide-up-leave${P}-slide-up-leave-active${b}-placement-topRight`]:{animationName:q.ly}})},(0,O.ZP)(S,{colorBg:Se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${b} ${A}`]:{position:"relative",margin:0},[`${A}-submenu-popup`]:{position:"absolute",zIndex:I,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${b}, ${b}-menu-submenu`]:{[A]:Object.assign(Object.assign({padding:j,listStyleType:"none",backgroundColor:Se,backgroundClip:"padding-box",borderRadius:S.borderRadiusLG,outline:"none",boxShadow:S.boxShadowSecondary},(0,v.Qy)(S)),{[`${A}-item-group-title`]:{padding:`${le}px ${de}px`,color:S.colorTextDescription,transition:`all ${H}`},[`${A}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${A}-item-icon`]:{minWidth:k,marginInlineEnd:S.marginXS,fontSize:S.fontSizeSM},[`${A}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${H}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${A}-item, ${A}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${le}px ${de}px`,color:S.colorText,fontWeight:"normal",fontSize:k,lineHeight:S.lineHeight,cursor:"pointer",transition:`all ${H}`,borderRadius:S.borderRadiusSM,"&:hover, &-active":{backgroundColor:S.controlItemBgHover}},(0,v.Qy)(S)),{"&-selected":{color:S.colorPrimary,backgroundColor:S.controlItemBgActive,"&:hover, &-active":{backgroundColor:S.controlItemBgActiveHover}},"&-disabled":{color:J,cursor:"not-allowed","&:hover":{color:J,backgroundColor:Se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${S.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:S.colorSplit},[`${b}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:S.paddingXS,[`${b}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:S.colorTextDescription,fontSize:Q,fontStyle:"normal"}}}),[`${A}-item-group-list`]:{margin:`0 ${S.marginXS}px`,padding:0,listStyle:"none"},[`${A}-submenu-title`]:{paddingInlineEnd:de+S.fontSizeSM},[`${A}-submenu-vertical`]:{position:"relative"},[`${A}-submenu${A}-submenu-disabled ${b}-menu-submenu-title`]:{[`&, ${b}-menu-submenu-arrow-icon`]:{color:J,backgroundColor:Se,cursor:"not-allowed"}},[`${A}-submenu-selected ${b}-menu-submenu-title`]:{color:S.colorPrimary}})}},[(0,q.oN)(S,"slide-up"),(0,q.oN)(S,"slide-down"),(0,xe.Fm)(S,"move-up"),(0,xe.Fm)(S,"move-down"),(0,pe._y)(S,"zoom-big")]]};var N=(0,p.Z)("Dropdown",(S,b)=>{let{rootPrefixCls:A}=b;const{marginXXS:I,sizePopupArrow:X,controlHeight:ie,fontSize:P,lineHeight:B,paddingXXS:H,componentCls:le,borderRadiusLG:k}=S,j=(ie-P*B)/2,{dropdownArrowOffset:J}=(0,O.fS)({contentRadius:k}),Q=(0,ce.TS)(S,{menuCls:`${le}-menu`,rootPrefixCls:A,dropdownArrowDistance:X/2+I,dropdownArrowOffset:J,dropdownPaddingVertical:j,dropdownEdgeChildPadding:H});return[ne(Q),o(Q)]},S=>({zIndexPopup:S.zIndexPopupBase+50}))},78241:function(nr,ot,x){"use strict";x.d(ot,{default:function(){return Tt}});var v=x(80702),q=x(92310),xe=x.n(q),pe=x(77900),O=x(59301),p=x(62892),ce=x(32441);function oe(Ie){const[ut,ct]=O.useState(Ie);return O.useEffect(()=>{const bt=setTimeout(()=>{ct(Ie)},Ie.length?0:10);return()=>{clearTimeout(bt)}},[Ie]),ut}var o=x(17313),ne=x(29878),N=x(8378),S=x(37613),b=x(83116),I=Ie=>{const{componentCls:ut}=Ie,ct=`${ut}-show-help`,bt=`${ut}-show-help-item`;return{[ct]:{transition:`opacity ${Ie.motionDurationSlow} ${Ie.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[bt]:{overflow:"hidden",transition:`height ${Ie.motionDurationSlow} ${Ie.motionEaseInOut},
opacity ${Ie.motionDurationSlow} ${Ie.motionEaseInOut},
transform ${Ie.motionDurationSlow} ${Ie.motionEaseInOut} !important`,[`&${bt}-appear, &${bt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${bt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const X=Ie=>({legend:{display:"block",width:"100%",marginBottom:Ie.marginLG,padding:0,color:Ie.colorTextDescription,fontSize:Ie.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Ie.lineWidth}px ${Ie.lineType} ${Ie.colorBorder}`},label:{fontSize:Ie.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${Ie.controlOutlineWidth}px ${Ie.controlOutline}`},output:{display:"block",paddingTop:15,color:Ie.colorText,fontSize:Ie.fontSize,lineHeight:Ie.lineHeight}}),ie=(Ie,ut)=>{const{formItemCls:ct}=Ie;return{[ct]:{[`${ct}-label > label`]:{height:ut},[`${ct}-control-input`]:{minHeight:ut}}}},P=Ie=>{const{componentCls:ut}=Ie;return{[Ie.componentCls]:Object.assign(Object.assign(Object.assign({},(0,o.Wf)(Ie)),X(Ie)),{[`${ut}-text`]:{display:"inline-block",paddingInlineEnd:Ie.paddingSM},"&-small":Object.assign({},ie(Ie,Ie.controlHeightSM)),"&-large":Object.assign({},ie(Ie,Ie.controlHeightLG))})}},B=Ie=>{const{formItemCls:ut,iconCls:ct,componentCls:bt,rootPrefixCls:et,labelRequiredMarkColor:Nt,labelColor:Vt,labelFontSize:Zt,labelHeight:vr,labelColonMarginInlineStart:yr,labelColonMarginInlineEnd:or,itemMarginBottom:br}=Ie;return{[ut]:Object.assign(Object.assign({},(0,o.Wf)(Ie)),{marginBottom:br,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${et}-row`]:{display:"none"},"&-has-warning":{[`${ut}-split`]:{color:Ie.colorError}},"&-has-error":{[`${ut}-split`]:{color:Ie.colorWarning}},[`${ut}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Ie.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:vr,color:Vt,fontSize:Zt,[`> ${ct}`]:{fontSize:Ie.fontSize,verticalAlign:"top"},[`&${ut}-required:not(${ut}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Ie.marginXXS,color:Nt,fontSize:Ie.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${bt}-hide-required-mark &`]:{display:"none"}},[`${ut}-optional`]:{display:"inline-block",marginInlineStart:Ie.marginXXS,color:Ie.colorTextDescription,[`${bt}-hide-required-mark &`]:{display:"none"}},[`${ut}-tooltip`]:{color:Ie.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ie.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:yr,marginInlineEnd:or},[`&${ut}-no-colon::after`]:{content:'"\\a0"'}}},[`${ut}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${et}-col-'"]):not([class*="' ${et}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ie.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[ut]:{"&-explain, &-extra":{clear:"both",color:Ie.colorTextDescription,fontSize:Ie.fontSize,lineHeight:Ie.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ie.controlHeightSM,transition:`color ${Ie.motionDurationMid} ${Ie.motionEaseOut}`},"&-explain":{"&-error":{color:Ie.colorError},"&-warning":{color:Ie.colorWarning}}},[`&-with-help ${ut}-explain`]:{height:"auto",opacity:1},[`${ut}-feedback-icon`]:{fontSize:Ie.fontSize,textAlign:"center",visibility:"visible",animationName:ne.kr,animationDuration:Ie.motionDurationMid,animationTimingFunction:Ie.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ie.colorSuccess},"&-error":{color:Ie.colorError},"&-warning":{color:Ie.colorWarning},"&-validating":{color:Ie.colorPrimary}}})}},H=Ie=>{const{componentCls:ut,formItemCls:ct}=Ie;return{[`${ut}-horizontal`]:{[`${ct}-label`]:{flexGrow:0},[`${ct}-control`]:{flex:"1 1 0",minWidth:0},[`${ct}-label[class$='-24'], ${ct}-label[class*='-24 ']`]:{[`& + ${ct}-control`]:{minWidth:"unset"}}}}},le=Ie=>{const{componentCls:ut,formItemCls:ct}=Ie;return{[`${ut}-inline`]:{display:"flex",flexWrap:"wrap",[ct]:{flex:"none",marginInlineEnd:Ie.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${ct}-label,
> ${ct}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${ct}-label`]:{flex:"none"},[`${ut}-text`]:{display:"inline-block"},[`${ct}-has-feedback`]:{display:"inline-block"}}}}},k=Ie=>({padding:Ie.verticalLabelPadding,margin:Ie.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),j=Ie=>{const{componentCls:ut,formItemCls:ct,rootPrefixCls:bt}=Ie;return{[`${ct} ${ct}-label`]:k(Ie),[ut]:{[ct]:{flexWrap:"wrap",[`${ct}-label, ${ct}-control`]:{[`&:not([class*=" ${bt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},J=Ie=>{const{componentCls:ut,formItemCls:ct,rootPrefixCls:bt}=Ie;return{[`${ut}-vertical`]:{[ct]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${ut}-item-control`]:{width:"100%"}}},[`${ut}-vertical ${ct}-label,
.${bt}-col-24${ct}-label,
.${bt}-col-xl-24${ct}-label`]:k(Ie),[`@media (max-width: ${Ie.screenXSMax}px)`]:[j(Ie),{[ut]:{[`.${bt}-col-xs-24${ct}-label`]:k(Ie)}}],[`@media (max-width: ${Ie.screenSMMax}px)`]:{[ut]:{[`.${bt}-col-sm-24${ct}-label`]:k(Ie)}},[`@media (max-width: ${Ie.screenMDMax}px)`]:{[ut]:{[`.${bt}-col-md-24${ct}-label`]:k(Ie)}},[`@media (max-width: ${Ie.screenLGMax}px)`]:{[ut]:{[`.${bt}-col-lg-24${ct}-label`]:k(Ie)}}}},Q=(Ie,ut)=>(0,S.TS)(Ie,{formItemCls:`${Ie.componentCls}-item`,rootPrefixCls:ut});var de=(0,b.Z)("Form",(Ie,ut)=>{let{rootPrefixCls:ct}=ut;const bt=Q(Ie,ct);return[P(bt),B(bt),I(bt),H(bt),le(bt),J(bt),(0,N.Z)(bt),ne.kr]},Ie=>({labelRequiredMarkColor:Ie.colorError,labelColor:Ie.colorTextHeading,labelFontSize:Ie.fontSize,labelHeight:Ie.controlHeight,labelColonMarginInlineStart:Ie.marginXXS/2,labelColonMarginInlineEnd:Ie.marginXS,itemMarginBottom:Ie.marginLG,verticalLabelPadding:`0 0 ${Ie.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Se=[];function Ae(Ie,ut,ct){let bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ie=="string"?Ie:`${ut}-${bt}`,error:Ie,errorStatus:ct}}var ee=Ie=>{let{help:ut,helpStatus:ct,errors:bt=Se,warnings:et=Se,className:Nt,fieldId:Vt,onVisibleChanged:Zt}=Ie;const{prefixCls:vr}=O.useContext(ce.Rk),yr=`${vr}-item-explain`,[,or]=de(vr),br=(0,O.useMemo)(()=>(0,p.Z)(vr),[vr]),xr=oe(bt),zr=oe(et),sr=O.useMemo(()=>ut!=null?[Ae(ut,"help",ct)]:[].concat((0,v.Z)(xr.map((pt,it)=>Ae(pt,"error","error",it))),(0,v.Z)(zr.map((pt,it)=>Ae(pt,"warning","warning",it)))),[ut,ct,xr,zr]),Be={};return Vt&&(Be.id=`${Vt}_help`),O.createElement(pe.default,{motionDeadline:br.motionDeadline,motionName:`${vr}-show-help`,visible:!!sr.length,onVisibleChanged:Zt},pt=>{const{className:it,style:st}=pt;return O.createElement("div",Object.assign({},Be,{className:xe()(yr,it,Nt,or),style:st,role:"alert"}),O.createElement(pe.CSSMotionList,Object.assign({keys:sr},(0,p.Z)(vr),{motionName:`${vr}-show-help-item`,component:!1}),zt=>{const{key:kt,error:yt,errorStatus:Te,className:Ge,style:rt}=zt;return O.createElement("div",{key:kt,className:xe()(Ge,{[`${yr}-${Te}`]:Te}),style:rt},yt)}))})},F=x(95013),Y=x(36355),V=x(1684),ue=x(52946),te=x(19716),y=x(16722);const w=["parentNode"],Z="form_item";function G(Ie){return Ie===void 0||Ie===!1?[]:Array.isArray(Ie)?Ie:[Ie]}function Pe(Ie,ut){if(!Ie.length)return;const ct=Ie.join("_");return ut?`${ut}_${ct}`:w.includes(ct)?`${Z}_${ct}`:ct}function Ue(Ie,ut,ct,bt,et,Nt){let Vt=bt;return Nt!==void 0?Vt=Nt:ct.validating?Vt="validating":Ie.length?Vt="error":ut.length?Vt="warning":(ct.touched||et&&ct.validated)&&(Vt="success"),Vt}function Ve(Ie){return G(Ie).join("_")}function Xe(Ie){const[ut]=(0,F.useForm)(),ct=O.useRef({}),bt=O.useMemo(()=>Ie!=null?Ie:Object.assign(Object.assign({},ut),{__INTERNAL__:{itemRef:et=>Nt=>{const Vt=Ve(et);Nt?ct.current[Vt]=Nt:delete ct.current[Vt]}},scrollToField:function(et){let Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Vt=G(et),Zt=Pe(Vt,bt.__INTERNAL__.name),vr=Zt?document.getElementById(Zt):null;vr&&(0,y.Z)(vr,Object.assign({scrollMode:"if-needed",block:"nearest"},Nt))},getFieldInstance:et=>{const Nt=Ve(et);return ct.current[Nt]}}),[Ie,ut]);return[bt]}var tt=x(28726),at=function(Ie,ut){var ct={};for(var bt in Ie)Object.prototype.hasOwnProperty.call(Ie,bt)&&ut.indexOf(bt)<0&&(ct[bt]=Ie[bt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,bt=Object.getOwnPropertySymbols(Ie);et<bt.length;et++)ut.indexOf(bt[et])<0&&Object.prototype.propertyIsEnumerable.call(Ie,bt[et])&&(ct[bt[et]]=Ie[bt[et]]);return ct};const mt=(Ie,ut)=>{const ct=O.useContext(V.Z),{getPrefixCls:bt,direction:et,form:Nt}=O.useContext(Y.E_),{prefixCls:Vt,className:Zt,rootClassName:vr,size:yr,disabled:or=ct,form:br,colon:xr,labelAlign:zr,labelWrap:sr,labelCol:Be,wrapperCol:pt,hideRequiredMark:it,layout:st="horizontal",scrollToFirstError:zt,requiredMark:kt,onFinishFailed:yt,name:Te,style:Ge,feedbackIcons:rt}=Ie,wt=at(Ie,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),_t=(0,te.Z)(yr),Wt=O.useContext(tt.Z),Dt=(0,O.useMemo)(()=>kt!==void 0?kt:Nt&&Nt.requiredMark!==void 0?Nt.requiredMark:!it,[it,kt,Nt]),ir=xr!=null?xr:Nt==null?void 0:Nt.colon,lr=bt("form",Vt),[dr,Sr]=de(lr),Tr=xe()(lr,`${lr}-${st}`,{[`${lr}-hide-required-mark`]:Dt===!1,[`${lr}-rtl`]:et==="rtl",[`${lr}-${_t}`]:_t},Sr,Nt==null?void 0:Nt.className,Zt,vr),[kr]=Xe(br),{__INTERNAL__:mr}=kr;mr.name=Te;const ur=(0,O.useMemo)(()=>({name:Te,labelAlign:zr,labelCol:Be,labelWrap:sr,wrapperCol:pt,vertical:st==="vertical",colon:ir,requiredMark:Dt,itemRef:mr.itemRef,form:kr,feedbackIcons:rt}),[Te,zr,Be,pt,st,ir,Dt,kr,rt]);O.useImperativeHandle(ut,()=>kr);const Gr=(Wr,Rr)=>{if(Wr){let Dr={block:"nearest"};typeof Wr=="object"&&(Dr=Wr),kr.scrollToField(Rr,Dr)}},$r=Wr=>{if(yt==null||yt(Wr),Wr.errorFields.length){const Rr=Wr.errorFields[0].name;if(zt!==void 0){Gr(zt,Rr);return}Nt&&Nt.scrollToFirstError!==void 0&&Gr(Nt.scrollToFirstError,Rr)}};return dr(O.createElement(V.n,{disabled:or},O.createElement(ue.q,{size:_t},O.createElement(ce.RV,Object.assign({},{validateMessages:Wt}),O.createElement(ce.q3.Provider,{value:ur},O.createElement(F.default,Object.assign({id:Te},wt,{name:Te,onFinishFailed:$r,form:kr,style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),Ge),className:Tr})))))))};var tr=O.forwardRef(mt),Mt=x(41799),jt=x(8654),Yt=x(92343),er=x(11592);function ge(Ie){if(typeof Ie=="function")return Ie;const ut=(0,er.Z)(Ie);return ut.length<=1?ut[0]:ut}const fe=()=>{const{status:Ie,errors:ut=[],warnings:ct=[]}=(0,O.useContext)(ce.aM);return{status:Ie,errors:ut,warnings:ct}};fe.Context=ce.aM;var U=fe,ye=x(16089);function Re(Ie){const[ut,ct]=O.useState(Ie),bt=(0,O.useRef)(null),et=(0,O.useRef)([]),Nt=(0,O.useRef)(!1);O.useEffect(()=>(Nt.current=!1,()=>{Nt.current=!0,ye.Z.cancel(bt.current),bt.current=null}),[]);function Vt(Zt){Nt.current||(bt.current===null&&(et.current=[],bt.current=(0,ye.Z)(()=>{bt.current=null,ct(vr=>{let yr=vr;return et.current.forEach(or=>{yr=or(yr)}),yr})})),et.current.push(Zt))}return[ut,Vt]}function M(){const{itemRef:Ie}=O.useContext(ce.q3),ut=O.useRef({});function ct(bt,et){const Nt=et&&typeof et=="object"&&et.ref,Vt=bt.join("_");return(ut.current.name!==Vt||ut.current.originRef!==Nt)&&(ut.current.name=Vt,ut.current.originRef=Nt,ut.current.ref=(0,jt.sQ)(Ie(bt),Nt)),ut.current.ref}return ct}var se=x(29194),ve=x(34280),Ee=x(2738),ke=x(27382),Fe=x(37028);const qe=Ie=>{const{formItemCls:ut}=Ie;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${ut}-control`]:{display:"flex"}}}};var gt=(0,b.b)(["Form","item-item"],(Ie,ut)=>{let{rootPrefixCls:ct}=ut;const bt=Q(Ie,ct);return[qe(bt)]}),Qe=Ie=>{const{prefixCls:ut,status:ct,wrapperCol:bt,children:et,errors:Nt,warnings:Vt,_internalItemRender:Zt,extra:vr,help:yr,fieldId:or,marginBottom:br,onErrorVisibleChanged:xr}=Ie,zr=`${ut}-item`,sr=O.useContext(ce.q3),Be=bt||sr.wrapperCol||{},pt=xe()(`${zr}-control`,Be.className),it=O.useMemo(()=>Object.assign({},sr),[sr]);delete it.labelCol,delete it.wrapperCol;const st=O.createElement("div",{className:`${zr}-control-input`},O.createElement("div",{className:`${zr}-control-input-content`},et)),zt=O.useMemo(()=>({prefixCls:ut,status:ct}),[ut,ct]),kt=br!==null||Nt.length||Vt.length?O.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},O.createElement(ce.Rk.Provider,{value:zt},O.createElement(ee,{fieldId:or,errors:Nt,warnings:Vt,help:yr,helpStatus:ct,className:`${zr}-explain-connected`,onVisibleChanged:xr})),!!br&&O.createElement("div",{style:{width:0,height:br}})):null,yt={};or&&(yt.id=`${or}_extra`);const Te=vr?O.createElement("div",Object.assign({},yt,{className:`${zr}-extra`}),vr):null,Ge=Zt&&Zt.mark==="pro_table_render"&&Zt.render?Zt.render(Ie,{input:st,errorList:kt,extra:Te}):O.createElement(O.Fragment,null,st,kt,Te);return O.createElement(ce.q3.Provider,{value:it},O.createElement(Fe.Z,Object.assign({},Be,{className:pt}),Ge),O.createElement(gt,{prefixCls:ut}))},Ft=x(61485),Lt=x(31724),Le=x(9763),Ke=x(6848),lt=function(Ie,ut){var ct={};for(var bt in Ie)Object.prototype.hasOwnProperty.call(Ie,bt)&&ut.indexOf(bt)<0&&(ct[bt]=Ie[bt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,bt=Object.getOwnPropertySymbols(Ie);et<bt.length;et++)ut.indexOf(bt[et])<0&&Object.prototype.propertyIsEnumerable.call(Ie,bt[et])&&(ct[bt[et]]=Ie[bt[et]]);return ct};function vt(Ie){return Ie?typeof Ie=="object"&&!O.isValidElement(Ie)?Ie:{title:Ie}:null}var Gt=Ie=>{let{prefixCls:ut,label:ct,htmlFor:bt,labelCol:et,labelAlign:Nt,colon:Vt,required:Zt,requiredMark:vr,tooltip:yr}=Ie;var or;const[br]=(0,Le.Z)("Form"),{vertical:xr,labelAlign:zr,labelCol:sr,labelWrap:Be,colon:pt}=O.useContext(ce.q3);if(!ct)return null;const it=et||sr||{},st=Nt||zr,zt=`${ut}-item-label`,kt=xe()(zt,st==="left"&&`${zt}-left`,it.className,{[`${zt}-wrap`]:!!Be});let yt=ct;const Te=Vt===!0||pt!==!1&&Vt!==!1;Te&&!xr&&typeof ct=="string"&&ct.trim()!==""&&(yt=ct.replace(/[:|]\s*$/,""));const rt=vt(yr);if(rt){const{icon:Dt=O.createElement(Ft.Z,null)}=rt,ir=lt(rt,["icon"]),lr=O.createElement(Ke.Z,Object.assign({},ir),O.cloneElement(Dt,{className:`${ut}-item-tooltip`,title:""}));yt=O.createElement(O.Fragment,null,yt,lr)}const wt=vr==="optional",_t=typeof vr=="function";_t?yt=vr(yt,{required:!!Zt}):wt&&!Zt&&(yt=O.createElement(O.Fragment,null,yt,O.createElement("span",{className:`${ut}-item-optional`,title:""},(br==null?void 0:br.optional)||((or=Lt.Z.Form)===null||or===void 0?void 0:or.optional))));const Wt=xe()({[`${ut}-item-required`]:Zt,[`${ut}-item-required-mark-optional`]:wt||_t,[`${ut}-item-no-colon`]:!Te});return O.createElement(Fe.Z,Object.assign({},it,{className:kt}),O.createElement("label",{htmlFor:bt,className:Wt,title:typeof ct=="string"?ct:""},yt))},E=x(29679),T=x(19248),nt=x(96512),W=x(58617);const be={success:E.Z,warning:nt.Z,error:T.Z,validating:W.Z};function rr(Ie){let{children:ut,errors:ct,warnings:bt,hasFeedback:et,validateStatus:Nt,prefixCls:Vt,meta:Zt,noStyle:vr}=Ie;const yr=`${Vt}-item`,{feedbackIcons:or}=O.useContext(ce.q3),br=Ue(ct,bt,Zt,null,!!et,Nt),{isFormItemInput:xr,status:zr}=O.useContext(ce.aM),sr=O.useMemo(()=>{var Be;let pt;if(et){const zt=et!==!0&&et.icons||or,kt=br&&((Be=zt==null?void 0:zt({status:br,errors:ct,warnings:bt}))===null||Be===void 0?void 0:Be[br]),yt=br&&be[br];pt=kt!==!1&&yt?O.createElement("span",{className:xe()(`${yr}-feedback-icon`,`${yr}-feedback-icon-${br}`)},kt||O.createElement(yt,null)):null}let it=!0,st=br||"";return vr&&(it=xr,st=(br!=null?br:zr)||""),{status:st,errors:ct,warnings:bt,hasFeedback:!!et,feedbackIcon:pt,isFormItemInput:it}},[br,et,vr,xr,zr]);return O.createElement(ce.aM.Provider,{value:sr},ut)}var $e=function(Ie,ut){var ct={};for(var bt in Ie)Object.prototype.hasOwnProperty.call(Ie,bt)&&ut.indexOf(bt)<0&&(ct[bt]=Ie[bt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,bt=Object.getOwnPropertySymbols(Ie);et<bt.length;et++)ut.indexOf(bt[et])<0&&Object.prototype.propertyIsEnumerable.call(Ie,bt[et])&&(ct[bt[et]]=Ie[bt[et]]);return ct};function je(Ie){const{prefixCls:ut,className:ct,rootClassName:bt,style:et,help:Nt,errors:Vt,warnings:Zt,validateStatus:vr,meta:yr,hasFeedback:or,hidden:br,children:xr,fieldId:zr,required:sr,isRequired:Be,onSubItemMetaChange:pt}=Ie,it=$e(Ie,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),st=`${ut}-item`,{requiredMark:zt}=O.useContext(ce.q3),kt=O.useRef(null),yt=oe(Vt),Te=oe(Zt),Ge=Nt!=null,rt=!!(Ge||Vt.length||Zt.length),wt=!!kt.current&&(0,se.Z)(kt.current),[_t,Wt]=O.useState(null);(0,ve.Z)(()=>{if(rt&&kt.current){const Sr=getComputedStyle(kt.current);Wt(parseInt(Sr.marginBottom,10))}},[rt,wt]);const Dt=Sr=>{Sr||Wt(null)},lr=function(){let Sr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Tr=Sr?yt:yr.errors,kr=Sr?Te:yr.warnings;return Ue(Tr,kr,yr,"",!!or,vr)}(),dr=xe()(st,ct,bt,{[`${st}-with-help`]:Ge||yt.length||Te.length,[`${st}-has-feedback`]:lr&&or,[`${st}-has-success`]:lr==="success",[`${st}-has-warning`]:lr==="warning",[`${st}-has-error`]:lr==="error",[`${st}-is-validating`]:lr==="validating",[`${st}-hidden`]:br});return O.createElement("div",{className:dr,style:et,ref:kt},O.createElement(ke.Z,Object.assign({className:`${st}-row`},(0,Ee.Z)(it,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),O.createElement(Gt,Object.assign({htmlFor:zr},Ie,{requiredMark:zt,required:sr!=null?sr:Be,prefixCls:ut})),O.createElement(Qe,Object.assign({},Ie,yr,{errors:yt,warnings:Te,prefixCls:ut,status:lr,help:Nt,marginBottom:_t,onErrorVisibleChanged:Dt}),O.createElement(ce.qI.Provider,{value:pt},O.createElement(rr,{prefixCls:ut,meta:yr,errors:yr.errors,warnings:yr.warnings,hasFeedback:or,validateStatus:lr},xr)))),!!_t&&O.createElement("div",{className:`${st}-margin-offset`,style:{marginBottom:-_t}}))}const Ze="__SPLIT__",re=null,me=O.memo(Ie=>{let{children:ut}=Ie;return ut},(Ie,ut)=>Ie.value===ut.value&&Ie.update===ut.update&&Ie.childProps.length===ut.childProps.length&&Ie.childProps.every((ct,bt)=>ct===ut.childProps[bt]));function we(Ie){return Ie!=null}function ze(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function K(Ie){const{name:ut,noStyle:ct,className:bt,dependencies:et,prefixCls:Nt,shouldUpdate:Vt,rules:Zt,children:vr,required:yr,label:or,messageVariables:br,trigger:xr="onChange",validateTrigger:zr,hidden:sr,help:Be}=Ie,{getPrefixCls:pt}=O.useContext(Y.E_),{name:it}=O.useContext(ce.q3),st=ge(vr),zt=typeof st=="function",kt=O.useContext(ce.qI),{validateTrigger:yt}=O.useContext(F.FieldContext),Te=zr!==void 0?zr:yt,Ge=we(ut),rt=pt("form",Nt),[wt,_t]=de(rt),Wt=O.useContext(F.ListContext),Dt=O.useRef(),[ir,lr]=Re({}),[dr,Sr]=(0,Mt.Z)(()=>ze()),Tr=Rr=>{const Dr=Wt==null?void 0:Wt.getKey(Rr.name);if(Sr(Rr.destroy?ze():Rr,!0),ct&&Be!==!1&&kt){let Pr=Rr.name;if(Rr.destroy)Pr=Dt.current||Pr;else if(Dr!==void 0){const[jr,Qr]=Dr;Pr=[jr].concat((0,v.Z)(Qr)),Dt.current=Pr}kt(Rr,Pr)}},kr=(Rr,Dr)=>{lr(Pr=>{const jr=Object.assign({},Pr),ln=[].concat((0,v.Z)(Rr.name.slice(0,-1)),(0,v.Z)(Dr)).join(Ze);return Rr.destroy?delete jr[ln]:jr[ln]=Rr,jr})},[mr,ur]=O.useMemo(()=>{const Rr=(0,v.Z)(dr.errors),Dr=(0,v.Z)(dr.warnings);return Object.values(ir).forEach(Pr=>{Rr.push.apply(Rr,(0,v.Z)(Pr.errors||[])),Dr.push.apply(Dr,(0,v.Z)(Pr.warnings||[]))}),[Rr,Dr]},[ir,dr.errors,dr.warnings]),Gr=M();function $r(Rr,Dr,Pr){return ct&&!sr?O.createElement(rr,{prefixCls:rt,hasFeedback:Ie.hasFeedback,validateStatus:Ie.validateStatus,meta:dr,errors:mr,warnings:ur,noStyle:!0},Rr):O.createElement(je,Object.assign({key:"row"},Ie,{className:xe()(bt,_t),prefixCls:rt,fieldId:Dr,isRequired:Pr,errors:mr,warnings:ur,meta:dr,onSubItemMetaChange:kr}),Rr)}if(!Ge&&!zt&&!et)return wt($r(st));let Wr={};return typeof or=="string"?Wr.label=or:ut&&(Wr.label=String(ut)),br&&(Wr=Object.assign(Object.assign({},Wr),br)),wt(O.createElement(F.Field,Object.assign({},Ie,{messageVariables:Wr,trigger:xr,validateTrigger:Te,onMetaChange:Tr}),(Rr,Dr,Pr)=>{const jr=G(ut).length&&Dr?Dr.name:[],Qr=Pe(jr,it),ln=yr!==void 0?yr:!!(Zt&&Zt.some(dt=>{if(dt&&typeof dt=="object"&&dt.required&&!dt.warningOnly)return!0;if(typeof dt=="function"){const Cr=dt(Pr);return Cr&&Cr.required&&!Cr.warningOnly}return!1})),Yr=Object.assign({},Rr);let Fr=null;if(Array.isArray(st)&&Ge)Fr=st;else if(!(zt&&(!(Vt||et)||Ge))){if(!(et&&!zt&&!Ge))if((0,Yt.l$)(st)){const dt=Object.assign(Object.assign({},st.props),Yr);if(dt.id||(dt.id=Qr),Be||mr.length>0||ur.length>0||Ie.extra){const Br=[];(Be||mr.length>0)&&Br.push(`${Qr}_help`),Ie.extra&&Br.push(`${Qr}_extra`),dt["aria-describedby"]=Br.join(" ")}mr.length>0&&(dt["aria-invalid"]="true"),ln&&(dt["aria-required"]="true"),(0,jt.Yr)(st)&&(dt.ref=Gr(jr,st)),new Set([].concat((0,v.Z)(G(xr)),(0,v.Z)(G(Te)))).forEach(Br=>{dt[Br]=function(){for(var fn,An,Ir,Ar,rn,nn=arguments.length,sn=new Array(nn),In=0;In<nn;In++)sn[In]=arguments[In];(Ir=Yr[Br])===null||Ir===void 0||(fn=Ir).call.apply(fn,[Yr].concat(sn)),(rn=(Ar=st.props)[Br])===null||rn===void 0||(An=rn).call.apply(An,[Ar].concat(sn))}});const Zr=[dt["aria-required"],dt["aria-invalid"],dt["aria-describedby"]];Fr=O.createElement(me,{value:Yr[Ie.valuePropName||"value"],update:st,childProps:Zr},(0,Yt.Tm)(st,dt))}else zt&&(Vt||et)&&!Ge?Fr=st(Pr):Fr=st}return $r(Fr,Qr,ln)}))}const Bt=K;Bt.useStatus=U;var Ce=Bt,qt=function(Ie,ut){var ct={};for(var bt in Ie)Object.prototype.hasOwnProperty.call(Ie,bt)&&ut.indexOf(bt)<0&&(ct[bt]=Ie[bt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var et=0,bt=Object.getOwnPropertySymbols(Ie);et<bt.length;et++)ut.indexOf(bt[et])<0&&Object.prototype.propertyIsEnumerable.call(Ie,bt[et])&&(ct[bt[et]]=Ie[bt[et]]);return ct},Pt=Ie=>{var{prefixCls:ut,children:ct}=Ie,bt=qt(Ie,["prefixCls","children"]);const{getPrefixCls:et}=O.useContext(Y.E_),Nt=et("form",ut),Vt=O.useMemo(()=>({prefixCls:Nt,status:"error"}),[Nt]);return O.createElement(F.List,Object.assign({},bt),(Zt,vr,yr)=>O.createElement(ce.Rk.Provider,{value:Vt},ct(Zt.map(or=>Object.assign(Object.assign({},or),{fieldKey:or.key})),vr,{errors:yr.errors,warnings:yr.warnings})))};function Ot(){const{form:Ie}=(0,O.useContext)(ce.q3);return Ie}const xt=tr;xt.Item=Ce,xt.List=Pt,xt.ErrorList=ee,xt.useForm=Xe,xt.useFormInstance=Ot,xt.useWatch=F.useWatch,xt.Provider=ce.RV,xt.create=()=>{};var Tt=xt},9432:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return B},n:function(){return ie}});var v=x(19248),q=x(92310),xe=x.n(q),pe=x(93681),O=x(8654),p=x(59301),ce=x(19080),oe=x(36355),o=x(1684),ne=x(19716),N=x(32441),S=x(33234),b=x(59412),A=x(9937);function I(H){return!!(H.prefix||H.suffix||H.allowClear)}var X=function(H,le){var k={};for(var j in H)Object.prototype.hasOwnProperty.call(H,j)&&le.indexOf(j)<0&&(k[j]=H[j]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,j=Object.getOwnPropertySymbols(H);J<j.length;J++)le.indexOf(j[J])<0&&Object.prototype.propertyIsEnumerable.call(H,j[J])&&(k[j[J]]=H[j[J]]);return k};function ie(H,le){if(!H)return;H.focus(le);const{cursor:k}=le||{};if(k){const j=H.value.length;switch(k){case"start":H.setSelectionRange(0,0);break;case"end":H.setSelectionRange(j,j);break;default:H.setSelectionRange(0,j);break}}}var B=(0,p.forwardRef)((H,le)=>{var k;const{prefixCls:j,bordered:J=!0,status:Q,size:de,disabled:Se,onBlur:Ae,onFocus:Me,suffix:ee,allowClear:F,addonAfter:Y,addonBefore:V,className:ue,style:te,styles:y,rootClassName:w,onChange:Z,classNames:G}=H,Pe=X(H,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Ue,direction:Ve,input:Xe}=p.useContext(oe.E_),tt=Ue("input",j),at=(0,p.useRef)(null),[mt,Ut]=(0,A.ZP)(tt),{compactSize:tr,compactItemClassnames:Mt}=(0,S.ri)(tt,Ve),jt=(0,ne.Z)(gt=>{var ht;return(ht=de!=null?de:tr)!==null&&ht!==void 0?ht:gt}),Yt=p.useContext(o.Z),er=Se!=null?Se:Yt,{status:ge,hasFeedback:fe,feedbackIcon:U}=(0,p.useContext)(N.aM),ye=(0,ce.F)(ge,Q),Re=I(H)||!!fe,M=(0,p.useRef)(Re);(0,p.useEffect)(()=>{var gt;Re&&M.current,M.current=Re},[Re]);const se=(0,b.Z)(at,!0),ve=gt=>{se(),Ae==null||Ae(gt)},Ee=gt=>{se(),Me==null||Me(gt)},ke=gt=>{se(),Z==null||Z(gt)},Fe=(fe||ee)&&p.createElement(p.Fragment,null,ee,fe&&U);let qe;return typeof F=="object"&&(F!=null&&F.clearIcon)?qe=F:F&&(qe={clearIcon:p.createElement(v.Z,null)}),mt(p.createElement(pe.default,Object.assign({ref:(0,O.sQ)(le,at),prefixCls:tt,autoComplete:Xe==null?void 0:Xe.autoComplete},Pe,{disabled:er,onBlur:ve,onFocus:Ee,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),te),styles:Object.assign(Object.assign({},Xe==null?void 0:Xe.styles),y),suffix:Fe,allowClear:qe,className:xe()(ue,w,Mt,Xe==null?void 0:Xe.className),onChange:ke,addonAfter:Y&&p.createElement(S.BR,null,p.createElement(N.Ux,{override:!0,status:!0},Y)),addonBefore:V&&p.createElement(S.BR,null,p.createElement(N.Ux,{override:!0,status:!0},V)),classNames:Object.assign(Object.assign(Object.assign({},G),Xe==null?void 0:Xe.classNames),{input:xe()({[`${tt}-sm`]:jt==="small",[`${tt}-lg`]:jt==="large",[`${tt}-rtl`]:Ve==="rtl",[`${tt}-borderless`]:!J},!Re&&(0,ce.Z)(tt,ye),G==null?void 0:G.input,(k=Xe==null?void 0:Xe.classNames)===null||k===void 0?void 0:k.input,Ut)}),classes:{affixWrapper:xe()({[`${tt}-affix-wrapper-sm`]:jt==="small",[`${tt}-affix-wrapper-lg`]:jt==="large",[`${tt}-affix-wrapper-rtl`]:Ve==="rtl",[`${tt}-affix-wrapper-borderless`]:!J},(0,ce.Z)(`${tt}-affix-wrapper`,ye,fe),Ut),wrapper:xe()({[`${tt}-group-rtl`]:Ve==="rtl"},Ut),group:xe()({[`${tt}-group-wrapper-sm`]:jt==="small",[`${tt}-group-wrapper-lg`]:jt==="large",[`${tt}-group-wrapper-rtl`]:Ve==="rtl",[`${tt}-group-wrapper-disabled`]:er},(0,ce.Z)(`${tt}-group-wrapper`,ye,fe),Ut)}})))})},1643:function(nr,ot,x){"use strict";var v=x(19248),q=x(92310),xe=x.n(q),pe=x(9296),O=x(59301),p=x(19080),ce=x(36355),oe=x(1684),o=x(19716),ne=x(32441),N=x(9432),S=x(9937),b=function(I,X){var ie={};for(var P in I)Object.prototype.hasOwnProperty.call(I,P)&&X.indexOf(P)<0&&(ie[P]=I[P]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,P=Object.getOwnPropertySymbols(I);B<P.length;B++)X.indexOf(P[B])<0&&Object.prototype.propertyIsEnumerable.call(I,P[B])&&(ie[P[B]]=I[P[B]]);return ie};const A=(0,O.forwardRef)((I,X)=>{const{prefixCls:ie,bordered:P=!0,size:B,disabled:H,status:le,allowClear:k,showCount:j,classNames:J,rootClassName:Q,className:de}=I,Se=b(I,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ae,direction:Me}=O.useContext(ce.E_),ee=(0,o.Z)(B),F=O.useContext(oe.Z),Y=H!=null?H:F,{status:V,hasFeedback:ue,feedbackIcon:te}=O.useContext(ne.aM),y=(0,p.F)(V,le),w=O.useRef(null);O.useImperativeHandle(X,()=>{var Ve;return{resizableTextArea:(Ve=w.current)===null||Ve===void 0?void 0:Ve.resizableTextArea,focus:Xe=>{var tt,at;(0,N.n)((at=(tt=w.current)===null||tt===void 0?void 0:tt.resizableTextArea)===null||at===void 0?void 0:at.textArea,Xe)},blur:()=>{var Xe;return(Xe=w.current)===null||Xe===void 0?void 0:Xe.blur()}}});const Z=Ae("input",ie);let G;typeof k=="object"&&(k!=null&&k.clearIcon)?G=k:k&&(G={clearIcon:O.createElement(v.Z,null)});const[Pe,Ue]=(0,S.ZP)(Z);return Pe(O.createElement(pe.default,Object.assign({},Se,{disabled:Y,allowClear:G,className:xe()(de,Q),classes:{affixWrapper:xe()(`${Z}-textarea-affix-wrapper`,{[`${Z}-affix-wrapper-rtl`]:Me==="rtl",[`${Z}-affix-wrapper-borderless`]:!P,[`${Z}-affix-wrapper-sm`]:ee==="small",[`${Z}-affix-wrapper-lg`]:ee==="large",[`${Z}-textarea-show-count`]:j},(0,p.Z)(`${Z}-affix-wrapper`,y),Ue)},classNames:Object.assign(Object.assign({},J),{textarea:xe()({[`${Z}-borderless`]:!P,[`${Z}-sm`]:ee==="small",[`${Z}-lg`]:ee==="large"},(0,p.Z)(Z,y),Ue,J==null?void 0:J.textarea)}),prefixCls:Z,suffix:ue&&O.createElement("span",{className:`${Z}-textarea-suffix`},te),showCount:j,ref:w})))});ot.Z=A},59412:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return q}});var v=x(59301);function q(xe,pe){const O=(0,v.useRef)([]),p=()=>{O.current.push(setTimeout(()=>{var ce,oe,o,ne;!((ce=xe.current)===null||ce===void 0)&&ce.input&&((oe=xe.current)===null||oe===void 0?void 0:oe.input.getAttribute("type"))==="password"&&(!((o=xe.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((ne=xe.current)===null||ne===void 0||ne.input.removeAttribute("value"))}))};return(0,v.useEffect)(()=>(pe&&p(),()=>O.current.forEach(ce=>{ce&&clearTimeout(ce)})),[]),p}},92832:function(nr,ot,x){"use strict";x.d(ot,{default:function(){return ee}});var v=x(92310),q=x.n(v),xe=x(59301),pe=x(36355),O=x(32441),p=x(9937),oe=F=>{const{getPrefixCls:Y,direction:V}=(0,xe.useContext)(pe.E_),{prefixCls:ue,className:te}=F,y=Y("input-group",ue),w=Y("input"),[Z,G]=(0,p.ZP)(w),Pe=q()(y,{[`${y}-lg`]:F.size==="large",[`${y}-sm`]:F.size==="small",[`${y}-compact`]:F.compact,[`${y}-rtl`]:V==="rtl"},G,te),Ue=(0,xe.useContext)(O.aM),Ve=(0,xe.useMemo)(()=>Object.assign(Object.assign({},Ue),{isFormItemInput:!1}),[Ue]);return Z(xe.createElement("span",{className:Pe,style:F.style,onMouseEnter:F.onMouseEnter,onMouseLeave:F.onMouseLeave,onFocus:F.onFocus,onBlur:F.onBlur},xe.createElement(O.aM.Provider,{value:Ve},F.children)))},o=x(9432),ne=x(73331),N=x(15277),S=x(2738),b=x(8654),A=x(59412),I=function(F,Y){var V={};for(var ue in F)Object.prototype.hasOwnProperty.call(F,ue)&&Y.indexOf(ue)<0&&(V[ue]=F[ue]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,ue=Object.getOwnPropertySymbols(F);te<ue.length;te++)Y.indexOf(ue[te])<0&&Object.prototype.propertyIsEnumerable.call(F,ue[te])&&(V[ue[te]]=F[ue[te]]);return V};const X=F=>F?xe.createElement(N.Z,null):xe.createElement(ne.Z,null),ie={click:"onClick",hover:"onMouseOver"};var B=xe.forwardRef((F,Y)=>{const{visibilityToggle:V=!0}=F,ue=typeof V=="object"&&V.visible!==void 0,[te,y]=(0,xe.useState)(()=>ue?V.visible:!1),w=(0,xe.useRef)(null);xe.useEffect(()=>{ue&&y(V.visible)},[ue,V]);const Z=(0,A.Z)(w),G=()=>{const{disabled:er}=F;er||(te&&Z(),y(ge=>{var fe;const U=!ge;return typeof V=="object"&&((fe=V.onVisibleChange)===null||fe===void 0||fe.call(V,U)),U}))},Pe=er=>{const{action:ge="click",iconRender:fe=X}=F,U=ie[ge]||"",ye=fe(te),Re={[U]:G,className:`${er}-icon`,key:"passwordIcon",onMouseDown:M=>{M.preventDefault()},onMouseUp:M=>{M.preventDefault()}};return xe.cloneElement(xe.isValidElement(ye)?ye:xe.createElement("span",null,ye),Re)},{className:Ue,prefixCls:Ve,inputPrefixCls:Xe,size:tt}=F,at=I(F,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:mt}=xe.useContext(pe.E_),Ut=mt("input",Xe),tr=mt("input-password",Ve),Mt=V&&Pe(tr),jt=q()(tr,Ue,{[`${tr}-${tt}`]:!!tt}),Yt=Object.assign(Object.assign({},(0,S.Z)(at,["suffix","iconRender","visibilityToggle"])),{type:te?"text":"password",className:jt,prefixCls:Ut,suffix:Mt});return tt&&(Yt.size=tt),xe.createElement(o.Z,Object.assign({ref:(0,b.sQ)(Y,w)},Yt))}),H=x(47472),le=x(92343),k=x(3113),j=x(19716),J=x(33234),Q=function(F,Y){var V={};for(var ue in F)Object.prototype.hasOwnProperty.call(F,ue)&&Y.indexOf(ue)<0&&(V[ue]=F[ue]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,ue=Object.getOwnPropertySymbols(F);te<ue.length;te++)Y.indexOf(ue[te])<0&&Object.prototype.propertyIsEnumerable.call(F,ue[te])&&(V[ue[te]]=F[ue[te]]);return V},Se=xe.forwardRef((F,Y)=>{const{prefixCls:V,inputPrefixCls:ue,className:te,size:y,suffix:w,enterButton:Z=!1,addonAfter:G,loading:Pe,disabled:Ue,onSearch:Ve,onChange:Xe,onCompositionStart:tt,onCompositionEnd:at}=F,mt=Q(F,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Ut,direction:tr}=xe.useContext(pe.E_),Mt=xe.useRef(!1),jt=Ut("input-search",V),Yt=Ut("input",ue),{compactSize:er}=(0,J.ri)(jt,tr),ge=(0,j.Z)(Qe=>{var Ft;return(Ft=y!=null?y:er)!==null&&Ft!==void 0?Ft:Qe}),fe=xe.useRef(null),U=Qe=>{Qe&&Qe.target&&Qe.type==="click"&&Ve&&Ve(Qe.target.value,Qe,{source:"clear"}),Xe&&Xe(Qe)},ye=Qe=>{var Ft;document.activeElement===((Ft=fe.current)===null||Ft===void 0?void 0:Ft.input)&&Qe.preventDefault()},Re=Qe=>{var Ft,Lt;Ve&&Ve((Lt=(Ft=fe.current)===null||Ft===void 0?void 0:Ft.input)===null||Lt===void 0?void 0:Lt.value,Qe,{source:"input"})},M=Qe=>{Mt.current||Pe||Re(Qe)},se=typeof Z=="boolean"?xe.createElement(H.Z,null):null,ve=`${jt}-button`;let Ee;const ke=Z||{},Fe=ke.type&&ke.type.__ANT_BUTTON===!0;Fe||ke.type==="button"?Ee=(0,le.Tm)(ke,Object.assign({onMouseDown:ye,onClick:Qe=>{var Ft,Lt;(Lt=(Ft=ke==null?void 0:ke.props)===null||Ft===void 0?void 0:Ft.onClick)===null||Lt===void 0||Lt.call(Ft,Qe),Re(Qe)},key:"enterButton"},Fe?{className:ve,size:ge}:{})):Ee=xe.createElement(k.ZP,{className:ve,type:Z?"primary":void 0,size:ge,disabled:Ue,key:"enterButton",onMouseDown:ye,onClick:Re,loading:Pe,icon:se},Z),G&&(Ee=[Ee,(0,le.Tm)(G,{key:"addonAfter"})]);const qe=q()(jt,{[`${jt}-rtl`]:tr==="rtl",[`${jt}-${ge}`]:!!ge,[`${jt}-with-button`]:!!Z},te),gt=Qe=>{Mt.current=!0,tt==null||tt(Qe)},ht=Qe=>{Mt.current=!1,at==null||at(Qe)};return xe.createElement(o.Z,Object.assign({ref:(0,b.sQ)(fe,Y),onPressEnter:M},mt,{size:ge,onCompositionStart:gt,onCompositionEnd:ht,prefixCls:Yt,addonAfter:Ee,suffix:w,onChange:U,className:qe,disabled:Ue}))}),Ae=x(1643);const Me=o.Z;Me.Group=oe,Me.Search=Se,Me.TextArea=Ae.Z,Me.Password=B;var ee=Me},9937:function(nr,ot,x){"use strict";x.d(ot,{M1:function(){return ce},TM:function(){return le},Xy:function(){return oe},bi:function(){return N},e5:function(){return H},ik:function(){return S},nz:function(){return O},pU:function(){return p},s7:function(){return b},x0:function(){return ne}});var v=x(17313),q=x(74207),xe=x(37613),pe=x(83116);const O=k=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:k,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),p=k=>({borderColor:k.hoverBorderColor}),ce=k=>({borderColor:k.activeBorderColor,boxShadow:k.activeShadow,outline:0}),oe=k=>({color:k.colorTextDisabled,backgroundColor:k.colorBgContainerDisabled,borderColor:k.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},p((0,xe.TS)(k,{hoverBorderColor:k.colorBorder})))}),o=k=>{const{paddingBlockLG:j,fontSizeLG:J,lineHeightLG:Q,borderRadiusLG:de,paddingInlineLG:Se}=k;return{padding:`${j}px ${Se}px`,fontSize:J,lineHeight:Q,borderRadius:de}},ne=k=>({padding:`${k.paddingBlockSM}px ${k.paddingInlineSM}px`,borderRadius:k.borderRadiusSM}),N=(k,j)=>{const{componentCls:J,colorError:Q,colorWarning:de,errorActiveShadow:Se,warningActiveShadow:Ae,colorErrorBorderHover:Me,colorWarningBorderHover:ee}=k;return{[`&-status-error:not(${j}-disabled):not(${j}-borderless)${j}`]:{borderColor:Q,"&:hover":{borderColor:Me},"&:focus, &-focused":Object.assign({},ce((0,xe.TS)(k,{activeBorderColor:Q,activeShadow:Se}))),[`${J}-prefix, ${J}-suffix`]:{color:Q}},[`&-status-warning:not(${j}-disabled):not(${j}-borderless)${j}`]:{borderColor:de,"&:hover":{borderColor:ee},"&:focus, &-focused":Object.assign({},ce((0,xe.TS)(k,{activeBorderColor:de,activeShadow:Ae}))),[`${J}-prefix, ${J}-suffix`]:{color:de}}}},S=k=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${k.paddingBlock}px ${k.paddingInline}px`,color:k.colorText,fontSize:k.fontSize,lineHeight:k.lineHeight,backgroundColor:k.colorBgContainer,backgroundImage:"none",borderWidth:k.lineWidth,borderStyle:k.lineType,borderColor:k.colorBorder,borderRadius:k.borderRadius,transition:`all ${k.motionDurationMid}`},O(k.colorTextPlaceholder)),{"&:hover":Object.assign({},p(k)),"&:focus, &-focused":Object.assign({},ce(k)),"&-disabled, &[disabled]":Object.assign({},oe(k)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:k.controlHeight,lineHeight:k.lineHeight,verticalAlign:"bottom",transition:`all ${k.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},o(k)),"&-sm":Object.assign({},ne(k)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),b=k=>{const{componentCls:j,antCls:J}=k;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:k.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${j}, &-lg > ${j}-group-addon`]:Object.assign({},o(k)),[`&-sm ${j}, &-sm > ${j}-group-addon`]:Object.assign({},ne(k)),[`&-lg ${J}-select-single ${J}-select-selector`]:{height:k.controlHeightLG},[`&-sm ${J}-select-single ${J}-select-selector`]:{height:k.controlHeightSM},[`> ${j}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${j}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${k.paddingInline}px`,color:k.colorText,fontWeight:"normal",fontSize:k.fontSize,textAlign:"center",backgroundColor:k.colorFillAlter,border:`${k.lineWidth}px ${k.lineType} ${k.colorBorder}`,borderRadius:k.borderRadius,transition:`all ${k.motionDurationSlow}`,lineHeight:1,[`${J}-select`]:{margin:`-${k.paddingBlock+1}px -${k.paddingInline}px`,[`&${J}-select-single:not(${J}-select-customize-input)`]:{[`${J}-select-selector`]:{backgroundColor:"inherit",border:`${k.lineWidth}px ${k.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${J}-select-selector`]:{color:k.colorPrimary}}},[`${J}-cascader-picker`]:{margin:`-9px -${k.paddingInline}px`,backgroundColor:"transparent",[`${J}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${j}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${j}-search-with-button &`]:{zIndex:0}}},[`> ${j}:first-child, ${j}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${J}-select ${J}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${j}-affix-wrapper`]:{[`&:not(:first-child) ${j}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${j}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${j}:last-child, ${j}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${J}-select ${J}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${j}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${j}-search &`]:{borderStartStartRadius:k.borderRadius,borderEndStartRadius:k.borderRadius}},[`&:not(:first-child), ${j}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${j}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,v.dF)()),{[`${j}-group-addon, ${j}-group-wrap, > ${j}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:k.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${j}-affix-wrapper,
& > ${j}-number-affix-wrapper,
& > ${J}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-k.lineWidth,borderInlineEndWidth:k.lineWidth},[`${j}`]:{float:"none"},[`& > ${J}-select > ${J}-select-selector,
& > ${J}-select-auto-complete ${j},
& > ${J}-cascader-picker ${j},
& > ${j}-group-wrapper ${j}`]:{borderInlineEndWidth:k.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${J}-select-focused`]:{zIndex:1},[`& > ${J}-select > ${J}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${J}-select:first-child > ${J}-select-selector,
& > ${J}-select-auto-complete:first-child ${j},
& > ${J}-cascader-picker:first-child ${j}`]:{borderStartStartRadius:k.borderRadius,borderEndStartRadius:k.borderRadius},[`& > *:last-child,
& > ${J}-select:last-child > ${J}-select-selector,
& > ${J}-cascader-picker:last-child ${j},
& > ${J}-cascader-picker-focused:last-child ${j}`]:{borderInlineEndWidth:k.lineWidth,borderStartEndRadius:k.borderRadius,borderEndEndRadius:k.borderRadius},[`& > ${J}-select-auto-complete ${j}`]:{verticalAlign:"top"},[`${j}-group-wrapper + ${j}-group-wrapper`]:{marginInlineStart:-k.lineWidth,[`${j}-affix-wrapper`]:{borderRadius:0}},[`${j}-group-wrapper:not(:last-child)`]:{[`&${j}-search > ${j}-group`]:{[`& > ${j}-group-addon > ${j}-search-button`]:{borderRadius:0},[`& > ${j}`]:{borderStartStartRadius:k.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:k.borderRadius}}}})}},A=k=>{const{componentCls:j,controlHeightSM:J,lineWidth:Q}=k,Se=(J-Q*2-16)/2;return{[j]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,v.Wf)(k)),S(k)),N(k,j)),{'&[type="color"]':{height:k.controlHeight,[`&${j}-lg`]:{height:k.controlHeightLG},[`&${j}-sm`]:{height:J,paddingTop:Se,paddingBottom:Se}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},I=k=>{const{componentCls:j}=k;return{[`${j}-clear-icon`]:{margin:0,color:k.colorTextQuaternary,fontSize:k.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${k.motionDurationSlow}`,"&:hover":{color:k.colorTextTertiary},"&:active":{color:k.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${k.inputAffixPadding}px`}}}},X=k=>{const{componentCls:j,inputAffixPadding:J,colorTextDescription:Q,motionDurationSlow:de,colorIcon:Se,colorIconHover:Ae,iconCls:Me}=k;return{[`${j}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},S(k)),{display:"inline-flex",[`&:not(${j}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},p(k)),{zIndex:1,[`${j}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${j}[disabled]`]:{background:"transparent"}},[`> input${j}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${j}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:k.paddingXS}},"&-show-count-suffix":{color:Q},"&-show-count-has-suffix":{marginInlineEnd:k.paddingXXS},"&-prefix":{marginInlineEnd:J},"&-suffix":{marginInlineStart:J}}}),I(k)),{[`${Me}${j}-password-icon`]:{color:Se,cursor:"pointer",transition:`all ${de}`,"&:hover":{color:Ae}}}),N(k,`${j}-affix-wrapper`))}},ie=k=>{const{componentCls:j,colorError:J,colorWarning:Q,borderRadiusLG:de,borderRadiusSM:Se}=k;return{[`${j}-group`]:Object.assign(Object.assign(Object.assign({},(0,v.Wf)(k)),b(k)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${j}-group-addon`]:{borderRadius:de,fontSize:k.fontSizeLG}},"&-sm":{[`${j}-group-addon`]:{borderRadius:Se}},"&-status-error":{[`${j}-group-addon`]:{color:J,borderColor:J}},"&-status-warning":{[`${j}-group-addon`]:{color:Q,borderColor:Q}},"&-disabled":{[`${j}-group-addon`]:Object.assign({},oe(k))},[`&:not(${j}-compact-first-item):not(${j}-compact-last-item)${j}-compact-item`]:{[`${j}, ${j}-group-addon`]:{borderRadius:0}},[`&:not(${j}-compact-last-item)${j}-compact-first-item`]:{[`${j}, ${j}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${j}-compact-first-item)${j}-compact-last-item`]:{[`${j}, ${j}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},P=k=>{const{componentCls:j,antCls:J}=k,Q=`${j}-search`;return{[Q]:{[`${j}`]:{"&:hover, &:focus":{borderColor:k.colorPrimaryHover,[`+ ${j}-group-addon ${Q}-button:not(${J}-btn-primary)`]:{borderInlineStartColor:k.colorPrimaryHover}}},[`${j}-affix-wrapper`]:{borderRadius:0},[`${j}-lg`]:{lineHeight:k.lineHeightLG-2e-4},[`> ${j}-group`]:{[`> ${j}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${Q}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:k.borderRadius,borderEndEndRadius:k.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${Q}-button:not(${J}-btn-primary)`]:{color:k.colorTextDescription,"&:hover":{color:k.colorPrimaryHover},"&:active":{color:k.colorPrimaryActive},[`&${J}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${Q}-button`]:{height:k.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${Q}-button`]:{height:k.controlHeightLG},[`&-small ${Q}-button`]:{height:k.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${j}-compact-item`]:{[`&:not(${j}-compact-last-item)`]:{[`${j}-group-addon`]:{[`${j}-search-button`]:{marginInlineEnd:-k.lineWidth,borderRadius:0}}},[`&:not(${j}-compact-first-item)`]:{[`${j},${j}-affix-wrapper`]:{borderRadius:0}},[`> ${j}-group-addon ${j}-search-button,
> ${j},
${j}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${j}-affix-wrapper-focused`]:{zIndex:2}}}}},B=k=>{const{componentCls:j,paddingLG:J}=k,Q=`${j}-textarea`;return{[Q]:{position:"relative","&-show-count":{[`> ${j}`]:{height:"100%"},[`${j}-data-count`]:{position:"absolute",bottom:-k.fontSize*k.lineHeight,insetInlineEnd:0,color:k.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${j}`]:{paddingInlineEnd:J}},[`&-affix-wrapper${Q}-has-feedback`]:{[`${j}`]:{paddingInlineEnd:J}},[`&-affix-wrapper${j}-affix-wrapper`]:{padding:0,[`> textarea${j}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${j}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${j}-clear-icon`]:{position:"absolute",insetInlineEnd:k.paddingXS,insetBlockStart:k.paddingXS},[`${Q}-suffix`]:{position:"absolute",top:0,insetInlineEnd:k.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function H(k){return(0,xe.TS)(k,{inputAffixPadding:k.paddingXXS})}const le=k=>{const{controlHeight:j,fontSize:J,lineHeight:Q,lineWidth:de,controlHeightSM:Se,controlHeightLG:Ae,fontSizeLG:Me,lineHeightLG:ee,paddingSM:F,controlPaddingHorizontalSM:Y,controlPaddingHorizontal:V,colorFillAlter:ue,colorPrimaryHover:te,controlOutlineWidth:y,controlOutline:w,colorErrorOutline:Z,colorWarningOutline:G}=k;return{paddingBlock:Math.max(Math.round((j-J*Q)/2*10)/10-de,3),paddingBlockSM:Math.max(Math.round((Se-J*Q)/2*10)/10-de,0),paddingBlockLG:Math.ceil((Ae-Me*ee)/2*10)/10-de,paddingInline:F-de,paddingInlineSM:Y-de,paddingInlineLG:V-de,addonBg:ue,activeBorderColor:te,hoverBorderColor:te,activeShadow:`0 0 0 ${y}px ${w}`,errorActiveShadow:`0 0 0 ${y}px ${Z}`,warningActiveShadow:`0 0 0 ${y}px ${G}`}};ot.ZP=(0,pe.Z)("Input",k=>{const j=(0,xe.TS)(k,H(k));return[A(j),B(j),X(j),ie(j),P(j),(0,q.c)(j)]},le)},45818:function(nr,ot,x){"use strict";x.d(ot,{D:function(){return H},Z:function(){return j}});var v=x(72308),q=x(59301),xe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},pe=xe,O=x(7657),p=function(Q,de){return q.createElement(O.Z,(0,v.Z)({},Q,{ref:de,icon:pe}))},ce=q.forwardRef(p),oe=ce,o=x(33853),ne=x(38819),N=x(92310),S=x.n(N),b=x(2738),I=J=>!isNaN(parseFloat(J))&&isFinite(J),X=x(36355),ie=x(84966),P=function(J,Q){var de={};for(var Se in J)Object.prototype.hasOwnProperty.call(J,Se)&&Q.indexOf(Se)<0&&(de[Se]=J[Se]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Se=Object.getOwnPropertySymbols(J);Ae<Se.length;Ae++)Q.indexOf(Se[Ae])<0&&Object.prototype.propertyIsEnumerable.call(J,Se[Ae])&&(de[Se[Ae]]=J[Se[Ae]]);return de};const B={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},H=q.createContext({}),le=(()=>{let J=0;return function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return J+=1,`${Q}${J}`}})();var j=q.forwardRef((J,Q)=>{const{prefixCls:de,className:Se,trigger:Ae,children:Me,defaultCollapsed:ee=!1,theme:F="dark",style:Y={},collapsible:V=!1,reverseArrow:ue=!1,width:te=200,collapsedWidth:y=80,zeroWidthTriggerStyle:w,breakpoint:Z,onCollapse:G,onBreakpoint:Pe}=J,Ue=P(J,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ve}=(0,q.useContext)(ie.Gs),[Xe,tt]=(0,q.useState)("collapsed"in J?J.collapsed:ee),[at,mt]=(0,q.useState)(!1);(0,q.useEffect)(()=>{"collapsed"in J&&tt(J.collapsed)},[J.collapsed]);const Ut=(ge,fe)=>{"collapsed"in J||tt(ge),G==null||G(ge,fe)},tr=(0,q.useRef)();tr.current=ge=>{mt(ge.matches),Pe==null||Pe(ge.matches),Xe!==ge.matches&&Ut(ge.matches,"responsive")},(0,q.useEffect)(()=>{function ge(U){return tr.current(U)}let fe;if(typeof window!="undefined"){const{matchMedia:U}=window;if(U&&Z&&Z in B){fe=U(`(max-width: ${B[Z]})`);try{fe.addEventListener("change",ge)}catch(ye){fe.addListener(ge)}ge(fe)}}return()=>{try{fe==null||fe.removeEventListener("change",ge)}catch(U){fe==null||fe.removeListener(ge)}}},[Z]),(0,q.useEffect)(()=>{const ge=le("ant-sider-");return Ve.addSider(ge),()=>Ve.removeSider(ge)},[]);const Mt=()=>{Ut(!Xe,"clickTrigger")},{getPrefixCls:jt}=(0,q.useContext)(X.E_),Yt=()=>{const ge=jt("layout-sider",de),fe=(0,b.Z)(Ue,["collapsed"]),U=Xe?y:te,ye=I(U)?`${U}px`:String(U),Re=parseFloat(String(y||0))===0?q.createElement("span",{onClick:Mt,className:S()(`${ge}-zero-width-trigger`,`${ge}-zero-width-trigger-${ue?"right":"left"}`),style:w},Ae||q.createElement(oe,null)):null,ve={expanded:ue?q.createElement(ne.Z,null):q.createElement(o.Z,null),collapsed:ue?q.createElement(o.Z,null):q.createElement(ne.Z,null)}[Xe?"collapsed":"expanded"],Ee=Ae!==null?Re||q.createElement("div",{className:`${ge}-trigger`,onClick:Mt,style:{width:ye}},Ae||ve):null,ke=Object.assign(Object.assign({},Y),{flex:`0 0 ${ye}`,maxWidth:ye,minWidth:ye,width:ye}),Fe=S()(ge,`${ge}-${F}`,{[`${ge}-collapsed`]:!!Xe,[`${ge}-has-trigger`]:V&&Ae!==null&&!Re,[`${ge}-below`]:!!at,[`${ge}-zero-width`]:parseFloat(ye)===0},Se);return q.createElement("aside",Object.assign({className:Fe},fe,{style:ke,ref:Q}),q.createElement("div",{className:`${ge}-children`},Me),V||at&&Re?Ee:null)},er=q.useMemo(()=>({siderCollapsed:Xe}),[Xe]);return q.createElement(H.Provider,{value:er},Yt())})},84966:function(nr,ot,x){"use strict";x.d(ot,{VY:function(){return H},$_:function(){return B},h4:function(){return P},Gs:function(){return b},ZP:function(){return le}});var v=x(80702),q=x(92310),xe=x.n(q),pe=x(2738),O=x(59301),p=x(36355),ce=x(83116),o=k=>{const{componentCls:j,bodyBg:J,lightSiderBg:Q,lightTriggerBg:de,lightTriggerColor:Se}=k;return{[`${j}-sider-light`]:{background:Q,[`${j}-sider-trigger`]:{color:Se,background:de},[`${j}-sider-zero-width-trigger`]:{color:Se,background:de,border:`1px solid ${J}`,borderInlineStart:0}}}};const ne=k=>{const{antCls:j,componentCls:J,colorText:Q,triggerColor:de,footerBg:Se,triggerBg:Ae,headerHeight:Me,headerPadding:ee,headerColor:F,footerPadding:Y,triggerHeight:V,zeroTriggerHeight:ue,zeroTriggerWidth:te,motionDurationMid:y,motionDurationSlow:w,fontSize:Z,borderRadius:G,bodyBg:Pe,headerBg:Ue,siderBg:Ve}=k;return{[J]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Pe,"&, *":{boxSizing:"border-box"},[`&${J}-has-sider`]:{flexDirection:"row",[`> ${J}, > ${J}-content`]:{width:0}},[`${J}-header, &${J}-footer`]:{flex:"0 0 auto"},[`${J}-sider`]:{position:"relative",minWidth:0,background:Ve,transition:`all ${y}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${j}-menu${j}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:V},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:V,color:de,lineHeight:`${V}px`,textAlign:"center",background:Ae,cursor:"pointer",transition:`all ${y}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Me,insetInlineEnd:-te,zIndex:1,width:te,height:ue,color:de,fontSize:k.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ve,borderStartStartRadius:0,borderStartEndRadius:G,borderEndEndRadius:G,borderEndStartRadius:0,cursor:"pointer",transition:`background ${w} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${w}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-te,borderStartStartRadius:G,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:G}}}}},o(k)),{"&-rtl":{direction:"rtl"}}),[`${J}-header`]:{height:Me,padding:ee,color:F,lineHeight:`${Me}px`,background:Ue,[`${j}-menu`]:{lineHeight:"inherit"}},[`${J}-footer`]:{padding:Y,color:Q,fontSize:Z,background:Se},[`${J}-content`]:{flex:"auto",minHeight:0}}};var N=(0,ce.Z)("Layout",k=>[ne(k)],k=>{const{colorBgLayout:j,controlHeight:J,controlHeightLG:Q,colorText:de,controlHeightSM:Se,marginXXS:Ae,colorTextLightSolid:Me,colorBgContainer:ee}=k,F=Q*1.25;return{colorBgHeader:"#001529",colorBgBody:j,colorBgTrigger:"#002140",bodyBg:j,headerBg:"#001529",headerHeight:J*2,headerPadding:`0 ${F}px`,headerColor:de,footerPadding:`${Se}px ${F}px`,footerBg:j,siderBg:"#001529",triggerHeight:Q+Ae*2,triggerBg:"#002140",triggerColor:Me,zeroTriggerWidth:Q,zeroTriggerHeight:Q,lightSiderBg:ee,lightTriggerBg:ee,lightTriggerColor:de}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),S=function(k,j){var J={};for(var Q in k)Object.prototype.hasOwnProperty.call(k,Q)&&j.indexOf(Q)<0&&(J[Q]=k[Q]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Q=Object.getOwnPropertySymbols(k);de<Q.length;de++)j.indexOf(Q[de])<0&&Object.prototype.propertyIsEnumerable.call(k,Q[de])&&(J[Q[de]]=k[Q[de]]);return J};const b=O.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function A(k){let{suffixCls:j,tagName:J,displayName:Q}=k;return de=>O.forwardRef((Ae,Me)=>O.createElement(de,Object.assign({ref:Me,suffixCls:j,tagName:J},Ae)))}const I=O.forwardRef((k,j)=>{const{prefixCls:J,suffixCls:Q,className:de,tagName:Se}=k,Ae=S(k,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Me}=O.useContext(p.E_),ee=Me("layout",J),[F,Y]=N(ee),V=Q?`${ee}-${Q}`:ee;return F(O.createElement(Se,Object.assign({className:xe()(J||V,de,Y),ref:j},Ae)))}),X=O.forwardRef((k,j)=>{const{direction:J}=O.useContext(p.E_),[Q,de]=O.useState([]),{prefixCls:Se,className:Ae,rootClassName:Me,children:ee,hasSider:F,tagName:Y,style:V}=k,ue=S(k,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),te=(0,pe.Z)(ue,["suffixCls"]),{getPrefixCls:y,layout:w}=O.useContext(p.E_),Z=y("layout",Se),[G,Pe]=N(Z),Ue=xe()(Z,{[`${Z}-has-sider`]:typeof F=="boolean"?F:Q.length>0,[`${Z}-rtl`]:J==="rtl"},w==null?void 0:w.className,Ae,Me,Pe),Ve=O.useMemo(()=>({siderHook:{addSider:Xe=>{de(tt=>[].concat((0,v.Z)(tt),[Xe]))},removeSider:Xe=>{de(tt=>tt.filter(at=>at!==Xe))}}}),[]);return G(O.createElement(b.Provider,{value:Ve},O.createElement(Y,Object.assign({ref:j,className:Ue,style:Object.assign(Object.assign({},w==null?void 0:w.style),V)},te),ee)))}),ie=A({tagName:"div",displayName:"Layout"})(X),P=A({suffixCls:"header",tagName:"header",displayName:"Header"})(I),B=A({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(I),H=A({suffixCls:"content",tagName:"main",displayName:"Content"})(I);var le=ie},40875:function(nr,ot,x){"use strict";x.d(ot,{J:function(){return p}});var v=x(59301),q=x(33234),xe=x(70425),pe=function(ce,oe){var o={};for(var ne in ce)Object.prototype.hasOwnProperty.call(ce,ne)&&oe.indexOf(ne)<0&&(o[ne]=ce[ne]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,ne=Object.getOwnPropertySymbols(ce);N<ne.length;N++)oe.indexOf(ne[N])<0&&Object.prototype.propertyIsEnumerable.call(ce,ne[N])&&(o[ne[N]]=ce[ne[N]]);return o};const O=v.createContext(null),p=v.forwardRef((ce,oe)=>{const{children:o}=ce,ne=pe(ce,["children"]),N=v.useContext(O),S=v.useMemo(()=>Object.assign(Object.assign({},N),ne),[N,ne.prefixCls,ne.mode,ne.selectable]);return v.createElement(O.Provider,{value:S},v.createElement(q.BR,null,(0,xe.supportNodeRef)(o)?v.cloneElement(o,{ref:oe}):o))});ot.Z=O},20834:function(nr,ot,x){"use strict";x.d(ot,{default:function(){return er}});var v=x(15285),q=x(59301),xe=x(45818),pe=x(92310),O=x.n(pe),p=x(36355),ce=function(ge,fe){var U={};for(var ye in ge)Object.prototype.hasOwnProperty.call(ge,ye)&&fe.indexOf(ye)<0&&(U[ye]=ge[ye]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,ye=Object.getOwnPropertySymbols(ge);Re<ye.length;Re++)fe.indexOf(ye[Re])<0&&Object.prototype.propertyIsEnumerable.call(ge,ye[Re])&&(U[ye[Re]]=ge[ye[Re]]);return U},o=ge=>{const{prefixCls:fe,className:U,dashed:ye}=ge,Re=ce(ge,["prefixCls","className","dashed"]),{getPrefixCls:M}=q.useContext(p.E_),se=M("menu",fe),ve=O()({[`${se}-item-divider-dashed`]:!!ye},U);return q.createElement(v.iz,Object.assign({className:ve},Re))},ne=x(11592),N=x(2738),S=x(6848),b=x(92343),I=(0,q.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ie=ge=>{var fe;const{className:U,children:ye,icon:Re,title:M,danger:se}=ge,{prefixCls:ve,firstLevel:Ee,direction:ke,disableMenuItemTitleTooltip:Fe,inlineCollapsed:qe}=q.useContext(I),gt=Ke=>{const lt=q.createElement("span",{className:`${ve}-title-content`},ye);return(!Re||(0,b.l$)(ye)&&ye.type==="span")&&ye&&Ke&&Ee&&typeof ye=="string"?q.createElement("div",{className:`${ve}-inline-collapsed-noicon`},ye.charAt(0)):lt},{siderCollapsed:ht}=q.useContext(xe.D);let Qe=M;typeof M=="undefined"?Qe=Ee?ye:"":M===!1&&(Qe="");const Ft={title:Qe};!ht&&!qe&&(Ft.title=null,Ft.open=!1);const Lt=(0,ne.Z)(ye).length;let Le=q.createElement(v.ck,Object.assign({},(0,N.Z)(ge,["title","icon","danger"]),{className:O()({[`${ve}-item-danger`]:se,[`${ve}-item-only-child`]:(Re?Lt+1:Lt)===1},U),title:typeof M=="string"?M:void 0}),(0,b.Tm)(Re,{className:O()((0,b.l$)(Re)?(fe=Re.props)===null||fe===void 0?void 0:fe.className:"",`${ve}-item-icon`)}),gt(qe));return Fe||(Le=q.createElement(S.Z,Object.assign({},Ft,{placement:ke==="rtl"?"left":"right",overlayClassName:`${ve}-inline-collapsed-tooltip`}),Le)),Le},B=ge=>{var fe;const{popupClassName:U,icon:ye,title:Re,theme:M}=ge,se=q.useContext(I),{prefixCls:ve,inlineCollapsed:Ee,theme:ke}=se,Fe=(0,v.Xl)();let qe;if(!ye)qe=Ee&&!Fe.length&&Re&&typeof Re=="string"?q.createElement("div",{className:`${ve}-inline-collapsed-noicon`},Re.charAt(0)):q.createElement("span",{className:`${ve}-title-content`},Re);else{const ht=(0,b.l$)(Re)&&Re.type==="span";qe=q.createElement(q.Fragment,null,(0,b.Tm)(ye,{className:O()((0,b.l$)(ye)?(fe=ye.props)===null||fe===void 0?void 0:fe.className:"",`${ve}-item-icon`)}),ht?Re:q.createElement("span",{className:`${ve}-title-content`},Re))}const gt=q.useMemo(()=>Object.assign(Object.assign({},se),{firstLevel:!1}),[se]);return q.createElement(I.Provider,{value:gt},q.createElement(v.Wd,Object.assign({},(0,N.Z)(ge,["icon"]),{title:qe,popupClassName:O()(ve,U,`${ve}-${M||ke}`)})))},H=x(18785),le=x(70425),k=x(62892),j=x(40875),J=function(ge,fe){var U={};for(var ye in ge)Object.prototype.hasOwnProperty.call(ge,ye)&&fe.indexOf(ye)<0&&(U[ye]=ge[ye]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,ye=Object.getOwnPropertySymbols(ge);Re<ye.length;Re++)fe.indexOf(ye[Re])<0&&Object.prototype.propertyIsEnumerable.call(ge,ye[Re])&&(U[ye[Re]]=ge[ye[Re]]);return U};function Q(ge){return(ge||[]).map((fe,U)=>{if(fe&&typeof fe=="object"){const ye=fe,{label:Re,children:M,key:se,type:ve}=ye,Ee=J(ye,["label","children","key","type"]),ke=se!=null?se:`tmp-${U}`;return M||ve==="group"?ve==="group"?q.createElement(v.BW,Object.assign({key:ke},Ee,{title:Re}),Q(M)):q.createElement(B,Object.assign({key:ke},Ee,{title:Re}),Q(M)):ve==="divider"?q.createElement(o,Object.assign({key:ke},Ee)):q.createElement(ie,Object.assign({key:ke},Ee),Re)}return null}).filter(fe=>fe)}function de(ge){return q.useMemo(()=>ge&&Q(ge),[ge])}var Se=x(64993),Ae=x(17313),Me=x(8378),ee=x(13826),F=x(29878),Y=x(83116),V=x(37613),te=ge=>{const{componentCls:fe,motionDurationSlow:U,horizontalLineHeight:ye,colorSplit:Re,lineWidth:M,lineType:se,itemPaddingInline:ve}=ge;return{[`${fe}-horizontal`]:{lineHeight:ye,border:0,borderBottom:`${M}px ${se} ${Re}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${fe}-item, ${fe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ve},[`> ${fe}-item:hover,
> ${fe}-item-active,
> ${fe}-submenu ${fe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${fe}-item, ${fe}-submenu-title`]:{transition:[`border-color ${U}`,`background ${U}`].join(",")},[`${fe}-submenu-arrow`]:{display:"none"}}}},w=ge=>{let{componentCls:fe,menuArrowOffset:U}=ge;return{[`${fe}-rtl`]:{direction:"rtl"},[`${fe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${fe}-rtl${fe}-vertical,
${fe}-submenu-rtl ${fe}-vertical`]:{[`${fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${U})`},"&::after":{transform:`rotate(45deg) translateY(${U})`}}}}};const Z=ge=>Object.assign({},(0,Ae.oN)(ge));var Pe=(ge,fe)=>{const{componentCls:U,itemColor:ye,itemSelectedColor:Re,groupTitleColor:M,itemBg:se,subMenuItemBg:ve,itemSelectedBg:Ee,activeBarHeight:ke,activeBarWidth:Fe,activeBarBorderWidth:qe,motionDurationSlow:gt,motionEaseInOut:ht,motionEaseOut:Qe,itemPaddingInline:Ft,motionDurationMid:Lt,itemHoverColor:Le,lineType:Ke,colorSplit:lt,itemDisabledColor:vt,dangerItemColor:Rt,dangerItemHoverColor:Gt,dangerItemSelectedColor:E,dangerItemActiveBg:T,dangerItemSelectedBg:nt,itemHoverBg:W,itemActiveBg:be,menuSubMenuBg:rr,horizontalItemSelectedColor:$e,horizontalItemSelectedBg:je,horizontalItemBorderRadius:Ze,horizontalItemHoverBg:re,popupBg:me}=ge;return{[`${U}-${fe}, ${U}-${fe} > ${U}`]:{color:ye,background:se,[`&${U}-root:focus-visible`]:Object.assign({},Z(ge)),[`${U}-item-group-title`]:{color:M},[`${U}-submenu-selected`]:{[`> ${U}-submenu-title`]:{color:Re}},[`${U}-item-disabled, ${U}-submenu-disabled`]:{color:`${vt} !important`},[`${U}-item:not(${U}-item-selected):not(${U}-submenu-selected)`]:{[`&:hover, > ${U}-submenu-title:hover`]:{color:Le}},[`&:not(${U}-horizontal)`]:{[`${U}-item:not(${U}-item-selected)`]:{"&:hover":{backgroundColor:W},"&:active":{backgroundColor:be}},[`${U}-submenu-title`]:{"&:hover":{backgroundColor:W},"&:active":{backgroundColor:be}}},[`${U}-item-danger`]:{color:Rt,[`&${U}-item:hover`]:{[`&:not(${U}-item-selected):not(${U}-submenu-selected)`]:{color:Gt}},[`&${U}-item:active`]:{background:T}},[`${U}-item a`]:{"&, &:hover":{color:"inherit"}},[`${U}-item-selected`]:{color:Re,[`&${U}-item-danger`]:{color:E},"a, a:hover":{color:"inherit"}},[`& ${U}-item-selected`]:{backgroundColor:Ee,[`&${U}-item-danger`]:{backgroundColor:nt}},[`${U}-item, ${U}-submenu-title`]:{[`&:not(${U}-item-disabled):focus-visible`]:Object.assign({},Z(ge))},[`&${U}-submenu > ${U}`]:{backgroundColor:rr},[`&${U}-popup > ${U}`]:{backgroundColor:me},[`&${U}-horizontal`]:Object.assign(Object.assign({},fe==="dark"?{borderBottom:0}:{}),{[`> ${U}-item, > ${U}-submenu`]:{top:qe,marginTop:-qe,marginBottom:0,borderRadius:Ze,"&::after":{position:"absolute",insetInline:Ft,bottom:0,borderBottom:`${ke}px solid transparent`,transition:`border-color ${gt} ${ht}`,content:'""'},"&:hover, &-active, &-open":{background:re,"&::after":{borderBottomWidth:ke,borderBottomColor:$e}},"&-selected":{color:$e,backgroundColor:je,"&:hover":{backgroundColor:je},"&::after":{borderBottomWidth:ke,borderBottomColor:$e}}}}),[`&${U}-root`]:{[`&${U}-inline, &${U}-vertical`]:{borderInlineEnd:`${qe}px ${Ke} ${lt}`}},[`&${U}-inline`]:{[`${U}-sub${U}-inline`]:{background:ve},[`${U}-item, ${U}-submenu-title`]:qe&&Fe?{width:`calc(100% + ${qe}px)`}:{},[`${U}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Fe}px solid ${Re}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Lt} ${Qe}`,`opacity ${Lt} ${Qe}`].join(","),content:'""'},[`&${U}-item-danger`]:{"&::after":{borderInlineEndColor:E}}},[`${U}-selected, ${U}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Lt} ${ht}`,`opacity ${Lt} ${ht}`].join(",")}}}}}};const Ue=ge=>{const{componentCls:fe,itemHeight:U,itemMarginInline:ye,padding:Re,menuArrowSize:M,marginXS:se,itemMarginBlock:ve}=ge,Ee=Re+M+se;return{[`${fe}-item`]:{position:"relative",overflow:"hidden"},[`${fe}-item, ${fe}-submenu-title`]:{height:U,lineHeight:`${U}px`,paddingInline:Re,overflow:"hidden",textOverflow:"ellipsis",marginInline:ye,marginBlock:ve,width:`calc(100% - ${ye*2}px)`},[`> ${fe}-item,
> ${fe}-submenu > ${fe}-submenu-title`]:{height:U,lineHeight:`${U}px`},[`${fe}-item-group-list ${fe}-submenu-title,
${fe}-submenu-title`]:{paddingInlineEnd:Ee}}};var Xe=ge=>{const{componentCls:fe,iconCls:U,itemHeight:ye,colorTextLightSolid:Re,dropdownWidth:M,controlHeightLG:se,motionDurationMid:ve,motionEaseOut:Ee,paddingXL:ke,itemMarginInline:Fe,fontSizeLG:qe,motionDurationSlow:gt,paddingXS:ht,boxShadowSecondary:Qe,collapsedWidth:Ft,collapsedIconSize:Lt}=ge,Le={height:ye,lineHeight:`${ye}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[fe]:{"&-inline, &-vertical":Object.assign({[`&${fe}-root`]:{boxShadow:"none"}},Ue(ge))},[`${fe}-submenu-popup`]:{[`${fe}-vertical`]:Object.assign(Object.assign({},Ue(ge)),{boxShadow:Qe})}},{[`${fe}-submenu-popup ${fe}-vertical${fe}-sub`]:{minWidth:M,maxHeight:`calc(100vh - ${se*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${fe}-inline`]:{width:"100%",[`&${fe}-root`]:{[`${fe}-item, ${fe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${gt}`,`background ${gt}`,`padding ${ve} ${Ee}`].join(","),[`> ${fe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${fe}-sub${fe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${fe}-submenu > ${fe}-submenu-title`]:Le,[`& ${fe}-item-group-title`]:{paddingInlineStart:ke}},[`${fe}-item`]:Le}},{[`${fe}-inline-collapsed`]:{width:Ft,[`&${fe}-root`]:{[`${fe}-item, ${fe}-submenu ${fe}-submenu-title`]:{[`> ${fe}-inline-collapsed-noicon`]:{fontSize:qe,textAlign:"center"}}},[`> ${fe}-item,
> ${fe}-item-group > ${fe}-item-group-list > ${fe}-item,
> ${fe}-item-group > ${fe}-item-group-list > ${fe}-submenu > ${fe}-submenu-title,
> ${fe}-submenu > ${fe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${qe/2}px - ${Fe}px)`,textOverflow:"clip",[`
${fe}-submenu-arrow,
${fe}-submenu-expand-icon
`]:{opacity:0},[`${fe}-item-icon, ${U}`]:{margin:0,fontSize:Lt,lineHeight:`${ye}px`,"+ span":{display:"inline-block",opacity:0}}},[`${fe}-item-icon, ${U}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${fe}-item-icon, ${U}`]:{display:"none"},"a, a:hover":{color:Re}},[`${fe}-item-group-title`]:Object.assign(Object.assign({},Ae.vS),{paddingInline:ht})}}]};const tt=ge=>{const{componentCls:fe,motionDurationSlow:U,motionDurationMid:ye,motionEaseInOut:Re,motionEaseOut:M,iconCls:se,iconSize:ve,iconMarginInlineEnd:Ee}=ge;return{[`${fe}-item, ${fe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${U}`,`background ${U}`,`padding ${U} ${Re}`].join(","),[`${fe}-item-icon, ${se}`]:{minWidth:ve,fontSize:ve,transition:[`font-size ${ye} ${M}`,`margin ${U} ${Re}`,`color ${U}`].join(","),"+ span":{marginInlineStart:Ee,opacity:1,transition:[`opacity ${U} ${Re}`,`margin ${U}`,`color ${U}`].join(",")}},[`${fe}-item-icon`]:Object.assign({},(0,Ae.Ro)()),[`&${fe}-item-only-child`]:{[`> ${se}, > ${fe}-item-icon`]:{marginInlineEnd:0}}},[`${fe}-item-disabled, ${fe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${fe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},at=ge=>{const{componentCls:fe,motionDurationSlow:U,motionEaseInOut:ye,borderRadius:Re,menuArrowSize:M,menuArrowOffset:se}=ge;return{[`${fe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ge.margin,width:M,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${U} ${ye}, opacity ${U}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:M*.6,height:M*.15,backgroundColor:"currentcolor",borderRadius:Re,transition:[`background ${U} ${ye}`,`transform ${U} ${ye}`,`top ${U} ${ye}`,`color ${U} ${ye}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${se})`},"&::after":{transform:`rotate(-45deg) translateY(${se})`}}}}},mt=ge=>{const{antCls:fe,componentCls:U,fontSize:ye,motionDurationSlow:Re,motionDurationMid:M,motionEaseInOut:se,paddingXS:ve,padding:Ee,colorSplit:ke,lineWidth:Fe,zIndexPopup:qe,borderRadiusLG:gt,subMenuItemBorderRadius:ht,menuArrowSize:Qe,menuArrowOffset:Ft,lineType:Lt,menuPanelMaskInset:Le,groupTitleLineHeight:Ke,groupTitleFontSize:lt}=ge;return[{"":{[`${U}`]:Object.assign(Object.assign({},(0,Ae.dF)()),{"&-hidden":{display:"none"}})},[`${U}-submenu-hidden`]:{display:"none"}},{[U]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ae.Wf)(ge)),(0,Ae.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ye,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Re} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${U}-item`]:{flex:"none"}},[`${U}-item, ${U}-submenu, ${U}-submenu-title`]:{borderRadius:ge.itemBorderRadius},[`${U}-item-group-title`]:{padding:`${ve}px ${Ee}px`,fontSize:lt,lineHeight:Ke,transition:`all ${Re}`},[`&-horizontal ${U}-submenu`]:{transition:[`border-color ${Re} ${se}`,`background ${Re} ${se}`].join(",")},[`${U}-submenu, ${U}-submenu-inline`]:{transition:[`border-color ${Re} ${se}`,`background ${Re} ${se}`,`padding ${M} ${se}`].join(",")},[`${U}-submenu ${U}-sub`]:{cursor:"initial",transition:[`background ${Re} ${se}`,`padding ${Re} ${se}`].join(",")},[`${U}-title-content`]:{transition:`color ${Re}`},[`${U}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${U}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ke,borderStyle:Lt,borderWidth:0,borderTopWidth:Fe,marginBlock:Fe,padding:0,"&-dashed":{borderStyle:"dashed"}}}),tt(ge)),{[`${U}-item-group`]:{[`${U}-item-group-list`]:{margin:0,padding:0,[`${U}-item, ${U}-submenu-title`]:{paddingInline:`${ye*2}px ${Ee}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:qe,borderRadius:gt,boxShadow:"none",transformOrigin:"0 0",[`&${U}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Le}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Le},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:ge.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ge.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ge.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ge.paddingXS},[`> ${U}`]:Object.assign(Object.assign(Object.assign({borderRadius:gt},tt(ge)),at(ge)),{[`${U}-item, ${U}-submenu > ${U}-submenu-title`]:{borderRadius:ht},[`${U}-submenu-title::after`]:{transition:`transform ${Re} ${se}`}})}}),at(ge)),{[`&-inline-collapsed ${U}-submenu-arrow,
&-inline ${U}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ft})`},"&::after":{transform:`rotate(45deg) translateX(-${Ft})`}},[`${U}-submenu-open${U}-submenu-inline > ${U}-submenu-title > ${U}-submenu-arrow`]:{transform:`translateY(-${Qe*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ft})`},"&::before":{transform:`rotate(45deg) translateX(${Ft})`}}})},{[`${fe}-layout-header`]:{[U]:{lineHeight:"inherit"}}}]};var Ut=(ge,fe)=>(0,Y.Z)("Menu",ye=>{if(fe===!1)return[];const{colorBgElevated:Re,colorPrimary:M,colorTextLightSolid:se,controlHeightLG:ve,fontSize:Ee,darkItemColor:ke,darkDangerItemColor:Fe,darkItemBg:qe,darkSubMenuItemBg:gt,darkItemSelectedColor:ht,darkItemSelectedBg:Qe,darkDangerItemSelectedBg:Ft,darkItemHoverBg:Lt,darkGroupTitleColor:Le,darkItemHoverColor:Ke,darkItemDisabledColor:lt,darkDangerItemHoverColor:vt,darkDangerItemSelectedColor:Rt,darkDangerItemActiveBg:Gt}=ye,E=Ee/7*5,T=(0,V.TS)(ye,{menuArrowSize:E,menuHorizontalHeight:ve*1.15,menuArrowOffset:`${E*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Re}),nt=(0,V.TS)(T,{itemColor:ke,itemHoverColor:Ke,groupTitleColor:Le,itemSelectedColor:ht,itemBg:qe,popupBg:qe,subMenuItemBg:gt,itemActiveBg:"transparent",itemSelectedBg:Qe,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Lt,itemDisabledColor:lt,dangerItemColor:Fe,dangerItemHoverColor:vt,dangerItemSelectedColor:Rt,dangerItemActiveBg:Gt,dangerItemSelectedBg:Ft,menuSubMenuBg:gt,horizontalItemSelectedColor:se,horizontalItemSelectedBg:M});return[mt(T),te(T),Xe(T),Pe(T,"light"),Pe(nt,"dark"),w(T),(0,Me.Z)(T),(0,ee.oN)(T,"slide-up"),(0,ee.oN)(T,"slide-down"),(0,F._y)(T,"zoom-big")]},ye=>{const{colorPrimary:Re,colorError:M,colorTextDisabled:se,colorErrorBg:ve,colorText:Ee,colorTextDescription:ke,colorBgContainer:Fe,colorFillAlter:qe,colorFillContent:gt,lineWidth:ht,lineWidthBold:Qe,controlItemBgActive:Ft,colorBgTextHover:Lt,controlHeightLG:Le,lineHeight:Ke,colorBgElevated:lt,marginXXS:vt,padding:Rt,fontSize:Gt,controlHeightSM:E,fontSizeLG:T,colorTextLightSolid:nt,colorErrorHover:W}=ye,be=new Se.C(nt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ye.zIndexPopupBase+50,radiusItem:ye.borderRadiusLG,itemBorderRadius:ye.borderRadiusLG,radiusSubMenuItem:ye.borderRadiusSM,subMenuItemBorderRadius:ye.borderRadiusSM,colorItemText:Ee,itemColor:Ee,colorItemTextHover:Ee,itemHoverColor:Ee,colorItemTextHoverHorizontal:Re,horizontalItemHoverColor:Re,colorGroupTitle:ke,groupTitleColor:ke,colorItemTextSelected:Re,itemSelectedColor:Re,colorItemTextSelectedHorizontal:Re,horizontalItemSelectedColor:Re,colorItemBg:Fe,itemBg:Fe,colorItemBgHover:Lt,itemHoverBg:Lt,colorItemBgActive:gt,itemActiveBg:Ft,colorSubItemBg:qe,subMenuItemBg:qe,colorItemBgSelected:Ft,itemSelectedBg:Ft,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Qe,activeBarHeight:Qe,colorActiveBarBorderSize:ht,activeBarBorderWidth:ht,colorItemTextDisabled:se,itemDisabledColor:se,colorDangerItemText:M,dangerItemColor:M,colorDangerItemTextHover:M,dangerItemHoverColor:M,colorDangerItemTextSelected:M,dangerItemSelectedColor:M,colorDangerItemBgActive:ve,dangerItemActiveBg:ve,colorDangerItemBgSelected:ve,dangerItemSelectedBg:ve,itemMarginInline:ye.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Le,groupTitleLineHeight:Ke,collapsedWidth:Le*2,popupBg:lt,itemMarginBlock:vt,itemPaddingInline:Rt,horizontalLineHeight:`${Le*1.15}px`,iconSize:Gt,iconMarginInlineEnd:E-Gt,collapsedIconSize:T,groupTitleFontSize:Gt,darkItemDisabledColor:new Se.C(nt).setAlpha(.25).toRgbString(),darkItemColor:be,darkDangerItemColor:M,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:nt,darkItemSelectedBg:Re,darkDangerItemSelectedBg:M,darkItemHoverBg:"transparent",darkGroupTitleColor:be,darkItemHoverColor:nt,darkDangerItemHoverColor:W,darkDangerItemSelectedColor:nt,darkDangerItemActiveBg:M}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(ge),tr=function(ge,fe){var U={};for(var ye in ge)Object.prototype.hasOwnProperty.call(ge,ye)&&fe.indexOf(ye)<0&&(U[ye]=ge[ye]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,ye=Object.getOwnPropertySymbols(ge);Re<ye.length;Re++)fe.indexOf(ye[Re])<0&&Object.prototype.propertyIsEnumerable.call(ge,ye[Re])&&(U[ye[Re]]=ge[ye[Re]]);return U},jt=(0,q.forwardRef)((ge,fe)=>{var U,ye;const Re=q.useContext(j.Z),M=Re||{},{getPrefixCls:se,getPopupContainer:ve,direction:Ee,menu:ke}=q.useContext(p.E_),Fe=se(),{prefixCls:qe,className:gt,style:ht,theme:Qe="light",expandIcon:Ft,_internalDisableMenuItemTitleTooltip:Lt,inlineCollapsed:Le,siderCollapsed:Ke,items:lt,children:vt,rootClassName:Rt,mode:Gt,selectable:E,onClick:T,overflowedIndicatorPopupClassName:nt}=ge,W=tr(ge,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),be=(0,N.Z)(W,["collapsedWidth"]),rr=de(lt)||vt;(U=M.validator)===null||U===void 0||U.call(M,{mode:Gt});const $e=(0,le.useEvent)(function(){var cr;T==null||T.apply(void 0,arguments),(cr=M.onClick)===null||cr===void 0||cr.call(M)}),je=M.mode||Gt,Ze=E!=null?E:M.selectable,re=q.useMemo(()=>Ke!==void 0?Ke:Le,[Le,Ke]),me={horizontal:{motionName:`${Fe}-slide-up`},inline:(0,k.Z)(Fe),other:{motionName:`${Fe}-zoom-big`}},we=se("menu",qe||M.prefixCls),[ze,K]=Ut(we,!Re),Bt=O()(`${we}-${Qe}`,ke==null?void 0:ke.className,gt);let Ce;if(typeof Ft=="function")Ce=Ft;else if(Ft===null||Ft===!1)Ce=null;else if(M.expandIcon===null||M.expandIcon===!1)Ce=null;else{const cr=Ft!=null?Ft:M.expandIcon;Ce=(0,b.Tm)(cr,{className:O()(`${we}-submenu-expand-icon`,(0,b.l$)(cr)?(ye=cr.props)===null||ye===void 0?void 0:ye.className:"")})}const qt=q.useMemo(()=>({prefixCls:we,inlineCollapsed:re||!1,direction:Ee,firstLevel:!0,theme:Qe,mode:je,disableMenuItemTitleTooltip:Lt}),[we,re,Ee,Lt,Qe]);return ze(q.createElement(j.Z.Provider,{value:null},q.createElement(I.Provider,{value:qt},q.createElement(v.ZP,Object.assign({getPopupContainer:ve,overflowedIndicator:q.createElement(H.Z,null),overflowedIndicatorPopupClassName:O()(we,`${we}-${Qe}`,nt),mode:je,selectable:Ze,onClick:$e},be,{inlineCollapsed:re,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),ht),className:Bt,prefixCls:we,direction:Ee,defaultMotions:me,expandIcon:Ce,ref:fe,rootClassName:O()(Rt,K)}),rr))))});const Yt=(0,q.forwardRef)((ge,fe)=>{const U=(0,q.useRef)(null),ye=q.useContext(xe.D);return(0,q.useImperativeHandle)(fe,()=>({menu:U.current,focus:Re=>{var M;(M=U.current)===null||M===void 0||M.focus(Re)}})),q.createElement(jt,Object.assign({ref:U},ge,ye))});Yt.Item=ie,Yt.SubMenu=B,Yt.Divider=o,Yt.ItemGroup=v.BW;var er=Yt},93948:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return Lt}});var v=x(59301),q=x(29679),xe=x(40001),pe=x(19248),O=x(99267),p=x(92310),ce=x.n(p),oe=x(2738),o=x(36355),ne=x(72308),N=x(77321),S=x(74416),b={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},A=function(){var Ke=(0,v.useRef)([]),lt=(0,v.useRef)(null);return(0,v.useEffect)(function(){var vt=Date.now(),Rt=!1;Ke.current.forEach(function(Gt){if(Gt){Rt=!0;var E=Gt.style;E.transitionDuration=".3s, .3s, .3s, .06s",lt.current&&vt-lt.current<100&&(E.transitionDuration="0s, 0s")}}),Rt&&(lt.current=Date.now())}),Ke.current},I=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],X=function(Ke){var lt=(0,N.Z)((0,N.Z)({},b),Ke),vt=lt.className,Rt=lt.percent,Gt=lt.prefixCls,E=lt.strokeColor,T=lt.strokeLinecap,nt=lt.strokeWidth,W=lt.style,be=lt.trailColor,rr=lt.trailWidth,$e=lt.transition,je=(0,S.Z)(lt,I);delete je.gapPosition;var Ze=Array.isArray(Rt)?Rt:[Rt],re=Array.isArray(E)?E:[E],me=A(),we=nt/2,ze=100-nt/2,K="M ".concat(T==="round"?we:0,",").concat(we,`
L `).concat(T==="round"?ze:100,",").concat(we),Bt="0 0 100 ".concat(nt),Ce=0;return v.createElement("svg",(0,ne.Z)({className:ce()("".concat(Gt,"-line"),vt),viewBox:Bt,preserveAspectRatio:"none",style:W},je),v.createElement("path",{className:"".concat(Gt,"-line-trail"),d:K,strokeLinecap:T,stroke:be,strokeWidth:rr||nt,fillOpacity:"0"}),Ze.map(function(qt,cr){var Pt=1;switch(T){case"round":Pt=1-nt/100;break;case"square":Pt=1-nt/2/100;break;default:Pt=1;break}var Ot={strokeDasharray:"".concat(qt*Pt,"px, 100px"),strokeDashoffset:"-".concat(Ce,"px"),transition:$e||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},xt=re[cr]||re[re.length-1];return Ce+=qt,v.createElement("path",{key:cr,className:"".concat(Gt,"-line-path"),d:K,strokeLinecap:T,stroke:xt,strokeWidth:nt,fillOpacity:"0",ref:function(Ie){me[cr]=Ie},style:Ot})}))},ie=X,P=x(62853),B=x(52487),H=x(47273),le=0,k=(0,H.Z)();function j(){var Le;return k?(Le=le,le+=1):Le="TEST_OR_SSR",Le}var J=function(Le){var Ke=v.useState(),lt=(0,B.Z)(Ke,2),vt=lt[0],Rt=lt[1];return v.useEffect(function(){Rt("rc_progress_".concat(j()))},[]),Le||vt},Q=function(Ke){var lt=Ke.bg,vt=Ke.children;return v.createElement("div",{style:{width:"100%",height:"100%",background:lt}},vt)};function de(Le,Ke){return Object.keys(Le).map(function(lt){var vt=parseFloat(lt),Rt="".concat(Math.floor(vt*Ke),"%");return"".concat(Le[lt]," ").concat(Rt)})}var Se=v.forwardRef(function(Le,Ke){var lt=Le.prefixCls,vt=Le.color,Rt=Le.gradientId,Gt=Le.radius,E=Le.style,T=Le.ptg,nt=Le.strokeLinecap,W=Le.strokeWidth,be=Le.size,rr=Le.gapDegree,$e=vt&&(0,P.Z)(vt)==="object",je=$e?"#FFF":void 0,Ze=be/2,re=v.createElement("circle",{className:"".concat(lt,"-circle-path"),r:Gt,cx:Ze,cy:Ze,stroke:je,strokeLinecap:nt,strokeWidth:W,opacity:T===0?0:1,style:E,ref:Ke});if(!$e)return re;var me="".concat(Rt,"-conic"),we=rr?"".concat(180+rr/2,"deg"):"0deg",ze=de(vt,(360-rr)/360),K=de(vt,1),Bt="conic-gradient(from ".concat(we,", ").concat(ze.join(", "),")"),Ce="linear-gradient(to ".concat(rr?"bottom":"top",", ").concat(K.join(", "),")");return v.createElement(v.Fragment,null,v.createElement("mask",{id:me},re),v.createElement("foreignObject",{x:0,y:0,width:be,height:be,mask:"url(#".concat(me,")")},v.createElement(Q,{bg:Ce},v.createElement(Q,{bg:Bt}))))}),Ae=Se,Me=100,ee=function(Ke,lt,vt,Rt,Gt,E,T,nt,W,be){var rr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,$e=vt/100*360*((360-E)/360),je=E===0?0:{bottom:0,top:180,left:90,right:-90}[T],Ze=(100-Rt)/100*lt;W==="round"&&Rt!==100&&(Ze+=be/2,Ze>=lt&&(Ze=lt-.01));var re=Me/2;return{stroke:typeof nt=="string"?nt:void 0,strokeDasharray:"".concat(lt,"px ").concat(Ke),strokeDashoffset:Ze+rr,transform:"rotate(".concat(Gt+$e+je,"deg)"),transformOrigin:"".concat(re,"px ").concat(re,"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}},F=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Y(Le){var Ke=Le!=null?Le:[];return Array.isArray(Ke)?Ke:[Ke]}var V=function(Ke){var lt=(0,N.Z)((0,N.Z)({},b),Ke),vt=lt.id,Rt=lt.prefixCls,Gt=lt.steps,E=lt.strokeWidth,T=lt.trailWidth,nt=lt.gapDegree,W=nt===void 0?0:nt,be=lt.gapPosition,rr=lt.trailColor,$e=lt.strokeLinecap,je=lt.style,Ze=lt.className,re=lt.strokeColor,me=lt.percent,we=(0,S.Z)(lt,F),ze=Me/2,K=J(vt),Bt="".concat(K,"-gradient"),Ce=ze-E/2,qt=Math.PI*2*Ce,cr=W>0?90+W/2:-90,Pt=qt*((360-W)/360),Ot=(0,P.Z)(Gt)==="object"?Gt:{count:Gt,space:2},xt=Ot.count,Tt=Ot.space,Ie=Y(me),ut=Y(re),ct=ut.find(function(yr){return yr&&(0,P.Z)(yr)==="object"}),bt=ct&&(0,P.Z)(ct)==="object",et=bt?"butt":$e,Nt=ee(qt,Pt,0,100,cr,W,be,rr,et,E),Vt=A(),Zt=function(){var or=0;return Ie.map(function(br,xr){var zr=ut[xr]||ut[ut.length-1],sr=ee(qt,Pt,or,br,cr,W,be,zr,et,E);return or+=br,v.createElement(Ae,{key:xr,color:zr,ptg:br,radius:Ce,prefixCls:Rt,gradientId:Bt,style:sr,strokeLinecap:et,strokeWidth:E,gapDegree:W,ref:function(pt){Vt[xr]=pt},size:Me})}).reverse()},vr=function(){var or=Math.round(xt*(Ie[0]/100)),br=100/xt,xr=0;return new Array(xt).fill(null).map(function(zr,sr){var Be=sr<=or-1?ut[0]:rr,pt=Be&&(0,P.Z)(Be)==="object"?"url(#".concat(Bt,")"):void 0,it=ee(qt,Pt,xr,br,cr,W,be,Be,"butt",E,Tt);return xr+=(Pt-it.strokeDashoffset+Tt)*100/Pt,v.createElement("circle",{key:sr,className:"".concat(Rt,"-circle-path"),r:Ce,cx:ze,cy:ze,stroke:pt,strokeWidth:E,opacity:1,style:it,ref:function(zt){Vt[sr]=zt}})})};return v.createElement("svg",(0,ne.Z)({className:ce()("".concat(Rt,"-circle"),Ze),viewBox:"0 0 ".concat(Me," ").concat(Me),style:je,id:vt,role:"presentation"},we),!xt&&v.createElement("circle",{className:"".concat(Rt,"-circle-trail"),r:Ce,cx:ze,cy:ze,stroke:rr,strokeLinecap:et,strokeWidth:T||E,style:Nt}),xt?vr():Zt())},ue=V,te={Line:ie,Circle:ue},y=x(6848),w=x(93398);function Z(Le){return!Le||Le<0?0:Le>100?100:Le}function G(Le){let{success:Ke,successPercent:lt}=Le,vt=lt;return Ke&&"progress"in Ke&&(vt=Ke.progress),Ke&&"percent"in Ke&&(vt=Ke.percent),vt}const Pe=Le=>{let{percent:Ke,success:lt,successPercent:vt}=Le;const Rt=Z(G({success:lt,successPercent:vt}));return[Rt,Z(Z(Ke)-Rt)]},Ue=Le=>{let{success:Ke={},strokeColor:lt}=Le;const{strokeColor:vt}=Ke;return[vt||w.presetPrimaryColors.green,lt||null]},Ve=(Le,Ke,lt)=>{var vt,Rt,Gt,E;let T=-1,nt=-1;if(Ke==="step"){const W=lt.steps,be=lt.strokeWidth;typeof Le=="string"||typeof Le=="undefined"?(T=Le==="small"?2:14,nt=be!=null?be:8):typeof Le=="number"?[T,nt]=[Le,Le]:[T=14,nt=8]=Le,T*=W}else if(Ke==="line"){const W=lt==null?void 0:lt.strokeWidth;typeof Le=="string"||typeof Le=="undefined"?nt=W||(Le==="small"?6:8):typeof Le=="number"?[T,nt]=[Le,Le]:[T=-1,nt=8]=Le}else(Ke==="circle"||Ke==="dashboard")&&(typeof Le=="string"||typeof Le=="undefined"?[T,nt]=Le==="small"?[60,60]:[120,120]:typeof Le=="number"?[T,nt]=[Le,Le]:(T=(Rt=(vt=Le[0])!==null&&vt!==void 0?vt:Le[1])!==null&&Rt!==void 0?Rt:120,nt=(E=(Gt=Le[0])!==null&&Gt!==void 0?Gt:Le[1])!==null&&E!==void 0?E:120));return[T,nt]},Xe=3,tt=Le=>Xe/Le*100;var mt=Le=>{const{prefixCls:Ke,trailColor:lt=null,strokeLinecap:vt="round",gapPosition:Rt,gapDegree:Gt,width:E=120,type:T,children:nt,success:W,size:be=E}=Le,[rr,$e]=Ve(be,"circle");let{strokeWidth:je}=Le;je===void 0&&(je=Math.max(tt(rr),6));const Ze={width:rr,height:$e,fontSize:rr*.15+6},re=v.useMemo(()=>{if(Gt||Gt===0)return Gt;if(T==="dashboard")return 75},[Gt,T]),me=Rt||T==="dashboard"&&"bottom"||void 0,we=Object.prototype.toString.call(Le.strokeColor)==="[object Object]",ze=Ue({success:W,strokeColor:Le.strokeColor}),K=ce()(`${Ke}-inner`,{[`${Ke}-circle-gradient`]:we}),Bt=v.createElement(ue,{percent:Pe(Le),strokeWidth:je,trailWidth:je,strokeColor:ze,strokeLinecap:vt,trailColor:lt,prefixCls:Ke,gapDegree:re,gapPosition:me});return v.createElement("div",{className:K,style:Ze},rr<=20?v.createElement(y.Z,{title:nt},v.createElement("span",null,Bt)):v.createElement(v.Fragment,null,Bt,nt))},Ut=function(Le,Ke){var lt={};for(var vt in Le)Object.prototype.hasOwnProperty.call(Le,vt)&&Ke.indexOf(vt)<0&&(lt[vt]=Le[vt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,vt=Object.getOwnPropertySymbols(Le);Rt<vt.length;Rt++)Ke.indexOf(vt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,vt[Rt])&&(lt[vt[Rt]]=Le[vt[Rt]]);return lt};const tr=Le=>{let Ke=[];return Object.keys(Le).forEach(lt=>{const vt=parseFloat(lt.replace(/%/g,""));isNaN(vt)||Ke.push({key:vt,value:Le[lt]})}),Ke=Ke.sort((lt,vt)=>lt.key-vt.key),Ke.map(lt=>{let{key:vt,value:Rt}=lt;return`${Rt} ${vt}%`}).join(", ")},Mt=(Le,Ke)=>{const{from:lt=w.presetPrimaryColors.blue,to:vt=w.presetPrimaryColors.blue,direction:Rt=Ke==="rtl"?"to left":"to right"}=Le,Gt=Ut(Le,["from","to","direction"]);if(Object.keys(Gt).length!==0){const E=tr(Gt);return{backgroundImage:`linear-gradient(${Rt}, ${E})`}}return{backgroundImage:`linear-gradient(${Rt}, ${lt}, ${vt})`}};var Yt=Le=>{const{prefixCls:Ke,direction:lt,percent:vt,size:Rt,strokeWidth:Gt,strokeColor:E,strokeLinecap:T="round",children:nt,trailColor:W=null,success:be}=Le,rr=E&&typeof E!="string"?Mt(E,lt):{backgroundColor:E},$e=T==="square"||T==="butt"?0:void 0,je={backgroundColor:W||void 0,borderRadius:$e},Ze=Rt!=null?Rt:[-1,Gt||(Rt==="small"?6:8)],[re,me]=Ve(Ze,"line",{strokeWidth:Gt}),we=Object.assign({width:`${Z(vt)}%`,height:me,borderRadius:$e},rr),ze=G(Le),K={width:`${Z(ze)}%`,height:me,borderRadius:$e,backgroundColor:be==null?void 0:be.strokeColor},Bt={width:re<0?"100%":re,height:me};return v.createElement(v.Fragment,null,v.createElement("div",{className:`${Ke}-outer`,style:Bt},v.createElement("div",{className:`${Ke}-inner`,style:je},v.createElement("div",{className:`${Ke}-bg`,style:we}),ze!==void 0?v.createElement("div",{className:`${Ke}-success-bg`,style:K}):null)),nt)},ge=Le=>{const{size:Ke,steps:lt,percent:vt=0,strokeWidth:Rt=8,strokeColor:Gt,trailColor:E=null,prefixCls:T,children:nt}=Le,W=Math.round(lt*(vt/100)),be=Ke==="small"?2:14,rr=Ke!=null?Ke:[be,Rt],[$e,je]=Ve(rr,"step",{steps:lt,strokeWidth:Rt}),Ze=$e/lt,re=new Array(lt);for(let me=0;me<lt;me++){const we=Array.isArray(Gt)?Gt[me]:Gt;re[me]=v.createElement("div",{key:me,className:ce()(`${T}-steps-item`,{[`${T}-steps-item-active`]:me<=W-1}),style:{backgroundColor:me<=W-1?we:E,width:Ze,height:je}})}return v.createElement("div",{className:`${T}-steps-outer`},re,nt)},fe=x(93083),U=x(17313),ye=x(83116),Re=x(37613);const M=Le=>{const Ke=Le?"100%":"-100%";return new fe.Keyframes(`antProgress${Le?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ke}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ke}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},se=Le=>{const{componentCls:Ke,iconCls:lt}=Le;return{[Ke]:Object.assign(Object.assign({},(0,U.Wf)(Le)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Le.fontSize,marginInlineEnd:Le.marginXS,marginBottom:Le.marginXS},[`${Ke}-outer`]:{display:"inline-block",width:"100%"},[`&${Ke}-show-info`]:{[`${Ke}-outer`]:{marginInlineEnd:`calc(-2em - ${Le.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Le.paddingXS}px)`}},[`${Ke}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Le.remainingColor,borderRadius:Le.lineBorderRadius},[`${Ke}-inner:not(${Ke}-circle-gradient)`]:{[`${Ke}-circle-path`]:{stroke:Le.defaultColor}},[`${Ke}-success-bg, ${Ke}-bg`]:{position:"relative",backgroundColor:Le.defaultColor,borderRadius:Le.lineBorderRadius,transition:`all ${Le.motionDurationSlow} ${Le.motionEaseInOutCirc}`},[`${Ke}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Le.colorSuccess},[`${Ke}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Le.marginXS,color:Le.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[lt]:{fontSize:Le.fontSize}},[`&${Ke}-status-active`]:{[`${Ke}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Le.colorBgContainer,borderRadius:Le.lineBorderRadius,opacity:0,animationName:M(),animationDuration:Le.progressActiveMotionDuration,animationTimingFunction:Le.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ke}-rtl${Ke}-status-active`]:{[`${Ke}-bg::before`]:{animationName:M(!0)}},[`&${Ke}-status-exception`]:{[`${Ke}-bg`]:{backgroundColor:Le.colorError},[`${Ke}-text`]:{color:Le.colorError}},[`&${Ke}-status-exception ${Ke}-inner:not(${Ke}-circle-gradient)`]:{[`${Ke}-circle-path`]:{stroke:Le.colorError}},[`&${Ke}-status-success`]:{[`${Ke}-bg`]:{backgroundColor:Le.colorSuccess},[`${Ke}-text`]:{color:Le.colorSuccess}},[`&${Ke}-status-success ${Ke}-inner:not(${Ke}-circle-gradient)`]:{[`${Ke}-circle-path`]:{stroke:Le.colorSuccess}}})}},ve=Le=>{const{componentCls:Ke,iconCls:lt}=Le;return{[Ke]:{[`${Ke}-circle-trail`]:{stroke:Le.remainingColor},[`&${Ke}-circle ${Ke}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ke}-circle ${Ke}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Le.circleTextColor,fontSize:Le.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[lt]:{fontSize:`${Le.fontSize/Le.fontSizeSM}em`}},[`${Ke}-circle&-status-exception`]:{[`${Ke}-text`]:{color:Le.colorError}},[`${Ke}-circle&-status-success`]:{[`${Ke}-text`]:{color:Le.colorSuccess}}},[`${Ke}-inline-circle`]:{lineHeight:1,[`${Ke}-inner`]:{verticalAlign:"bottom"}}}},Ee=Le=>{const{componentCls:Ke}=Le;return{[Ke]:{[`${Ke}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Le.progressStepMinWidth,marginInlineEnd:Le.progressStepMarginInlineEnd,backgroundColor:Le.remainingColor,transition:`all ${Le.motionDurationSlow}`,"&-active":{backgroundColor:Le.defaultColor}}}}}},ke=Le=>{const{componentCls:Ke,iconCls:lt}=Le;return{[Ke]:{[`${Ke}-small&-line, ${Ke}-small&-line ${Ke}-text ${lt}`]:{fontSize:Le.fontSizeSM}}}};var Fe=(0,ye.Z)("Progress",Le=>{const Ke=Le.marginXXS/2,lt=(0,Re.TS)(Le,{progressStepMarginInlineEnd:Ke,progressStepMinWidth:Ke,progressActiveMotionDuration:"2.4s"});return[se(lt),ve(lt),Ee(lt),ke(lt)]},Le=>({circleTextColor:Le.colorText,defaultColor:Le.colorInfo,remainingColor:Le.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),qe=function(Le,Ke){var lt={};for(var vt in Le)Object.prototype.hasOwnProperty.call(Le,vt)&&Ke.indexOf(vt)<0&&(lt[vt]=Le[vt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,vt=Object.getOwnPropertySymbols(Le);Rt<vt.length;Rt++)Ke.indexOf(vt[Rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,vt[Rt])&&(lt[vt[Rt]]=Le[vt[Rt]]);return lt};const gt=null,ht=["normal","exception","active","success"];var Ft=v.forwardRef((Le,Ke)=>{const{prefixCls:lt,className:vt,rootClassName:Rt,steps:Gt,strokeColor:E,percent:T=0,size:nt="default",showInfo:W=!0,type:be="line",status:rr,format:$e,style:je}=Le,Ze=qe(Le,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),re=v.useMemo(()=>{var Ie,ut;const ct=G(Le);return parseInt(ct!==void 0?(Ie=ct!=null?ct:0)===null||Ie===void 0?void 0:Ie.toString():(ut=T!=null?T:0)===null||ut===void 0?void 0:ut.toString(),10)},[T,Le.success,Le.successPercent]),me=v.useMemo(()=>!ht.includes(rr)&&re>=100?"success":rr||"normal",[rr,re]),{getPrefixCls:we,direction:ze,progress:K}=v.useContext(o.E_),Bt=we("progress",lt),[Ce,qt]=Fe(Bt),cr=v.useMemo(()=>{if(!W)return null;const Ie=G(Le);let ut;const ct=$e||(et=>`${et}%`),bt=be==="line";return $e||me!=="exception"&&me!=="success"?ut=ct(Z(T),Z(Ie)):me==="exception"?ut=bt?v.createElement(pe.Z,null):v.createElement(O.Z,null):me==="success"&&(ut=bt?v.createElement(q.Z,null):v.createElement(xe.Z,null)),v.createElement("span",{className:`${Bt}-text`,title:typeof ut=="string"?ut:void 0},ut)},[W,T,re,me,be,Bt,$e]),Pt=Array.isArray(E)?E[0]:E,Ot=typeof E=="string"||Array.isArray(E)?E:void 0;let xt;be==="line"?xt=Gt?v.createElement(ge,Object.assign({},Le,{strokeColor:Ot,prefixCls:Bt,steps:Gt}),cr):v.createElement(Yt,Object.assign({},Le,{strokeColor:Pt,prefixCls:Bt,direction:ze}),cr):(be==="circle"||be==="dashboard")&&(xt=v.createElement(mt,Object.assign({},Le,{strokeColor:Pt,prefixCls:Bt,progressStatus:me}),cr));const Tt=ce()(Bt,`${Bt}-status-${me}`,`${Bt}-${be==="dashboard"&&"circle"||Gt&&"steps"||be}`,{[`${Bt}-inline-circle`]:be==="circle"&&Ve(nt,"circle")[0]<=20,[`${Bt}-show-info`]:W,[`${Bt}-${nt}`]:typeof nt=="string",[`${Bt}-rtl`]:ze==="rtl"},K==null?void 0:K.className,vt,Rt,qt);return Ce(v.createElement("div",Object.assign({ref:Ke,style:Object.assign(Object.assign({},K==null?void 0:K.style),je),className:Tt,role:"progressbar","aria-valuenow":re},(0,oe.Z)(Ze,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),xt))}),Lt=Ft},13570:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return Z}});var v=x(72308),q=x(59301),xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},pe=xe,O=x(7657),p=function(Pe,Ue){return q.createElement(O.Z,(0,v.Z)({},Pe,{ref:Ue,icon:pe}))},ce=q.forwardRef(p),oe=ce,o=x(92310),ne=x.n(o),N=x(49618),S=x(52487),b=x(74416),A=x(18929),I=x(10228),X=x(26112);function ie(G,Pe){var Ue=G.disabled,Ve=G.prefixCls,Xe=G.character,tt=G.characterRender,at=G.index,mt=G.count,Ut=G.value,tr=G.allowHalf,Mt=G.focused,jt=G.onHover,Yt=G.onClick,er=function(ve){jt(ve,at)},ge=function(ve){Yt(ve,at)},fe=function(ve){ve.keyCode===I.Z.ENTER&&Yt(ve,at)},U=at+1,ye=new Set([Ve]);Ut===0&&at===0&&Mt?ye.add("".concat(Ve,"-focused")):tr&&Ut+.5>=U&&Ut<U?(ye.add("".concat(Ve,"-half")),ye.add("".concat(Ve,"-active")),Mt&&ye.add("".concat(Ve,"-focused"))):(U<=Ut?ye.add("".concat(Ve,"-full")):ye.add("".concat(Ve,"-zero")),U===Ut&&Mt&&ye.add("".concat(Ve,"-focused")));var Re=typeof Xe=="function"?Xe(G):Xe,M=q.createElement("li",{className:ne()(Array.from(ye)),ref:Pe},q.createElement("div",{onClick:Ue?null:ge,onKeyDown:Ue?null:fe,onMouseMove:Ue?null:er,role:"radio","aria-checked":Ut>at?"true":"false","aria-posinset":at+1,"aria-setsize":mt,tabIndex:Ue?-1:0},q.createElement("div",{className:"".concat(Ve,"-first")},Re),q.createElement("div",{className:"".concat(Ve,"-second")},Re)));return tt&&(M=tt(M,G)),M}var P=q.forwardRef(ie);function B(){var G=q.useRef({});function Pe(Ve){return G.current[Ve]}function Ue(Ve){return function(Xe){G.current[Ve]=Xe}}return[Pe,Ue]}function H(G){var Pe=G.pageXOffset,Ue="scrollLeft";if(typeof Pe!="number"){var Ve=G.document;Pe=Ve.documentElement[Ue],typeof Pe!="number"&&(Pe=Ve.body[Ue])}return Pe}function le(G){var Pe,Ue,Ve=G.ownerDocument,Xe=Ve.body,tt=Ve&&Ve.documentElement,at=G.getBoundingClientRect();return Pe=at.left,Ue=at.top,Pe-=tt.clientLeft||Xe.clientLeft||0,Ue-=tt.clientTop||Xe.clientTop||0,{left:Pe,top:Ue}}function k(G){var Pe=le(G),Ue=G.ownerDocument,Ve=Ue.defaultView||Ue.parentWindow;return Pe.left+=H(Ve),Pe.left}var j=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function J(G,Pe){var Ue,Ve=G.prefixCls,Xe=Ve===void 0?"rc-rate":Ve,tt=G.className,at=G.defaultValue,mt=G.value,Ut=G.count,tr=Ut===void 0?5:Ut,Mt=G.allowHalf,jt=Mt===void 0?!1:Mt,Yt=G.allowClear,er=Yt===void 0?!0:Yt,ge=G.character,fe=ge===void 0?"\u2605":ge,U=G.characterRender,ye=G.disabled,Re=G.direction,M=Re===void 0?"ltr":Re,se=G.tabIndex,ve=se===void 0?0:se,Ee=G.autoFocus,ke=G.onHoverChange,Fe=G.onChange,qe=G.onFocus,gt=G.onBlur,ht=G.onKeyDown,Qe=G.onMouseLeave,Ft=(0,b.Z)(G,j),Lt=B(),Le=(0,S.Z)(Lt,2),Ke=Le[0],lt=Le[1],vt=q.useRef(null),Rt=function(){if(!ye){var et;(et=vt.current)===null||et===void 0||et.focus()}};q.useImperativeHandle(Pe,function(){return{focus:Rt,blur:function(){if(!ye){var et;(et=vt.current)===null||et===void 0||et.blur()}}}});var Gt=(0,A.Z)(at||0,{value:mt}),E=(0,S.Z)(Gt,2),T=E[0],nt=E[1],W=(0,A.Z)(null),be=(0,S.Z)(W,2),rr=be[0],$e=be[1],je=function(et,Nt){var Vt=M==="rtl",Zt=et+1;if(jt){var vr=Ke(et),yr=k(vr),or=vr.clientWidth;(Vt&&Nt-yr>or/2||!Vt&&Nt-yr<or/2)&&(Zt-=.5)}return Zt},Ze=function(et){nt(et),Fe==null||Fe(et)},re=q.useState(!1),me=(0,S.Z)(re,2),we=me[0],ze=me[1],K=function(){ze(!0),qe==null||qe()},Bt=function(){ze(!1),gt==null||gt()},Ce=q.useState(null),qt=(0,S.Z)(Ce,2),cr=qt[0],Pt=qt[1],Ot=function(et,Nt){var Vt=je(Nt,et.pageX);Vt!==rr&&(Pt(Vt),$e(null)),ke==null||ke(Vt)},xt=function(et){ye||(Pt(null),$e(null),ke==null||ke(void 0)),et&&(Qe==null||Qe(et))},Tt=function(et,Nt){var Vt=je(Nt,et.pageX),Zt=!1;er&&(Zt=Vt===T),xt(),Ze(Zt?0:Vt),$e(Zt?Vt:null)},Ie=function(et){var Nt=et.keyCode,Vt=M==="rtl",Zt=T;Nt===I.Z.RIGHT&&Zt<tr&&!Vt?(jt?Zt+=.5:Zt+=1,Ze(Zt),et.preventDefault()):Nt===I.Z.LEFT&&Zt>0&&!Vt||Nt===I.Z.RIGHT&&Zt>0&&Vt?(jt?Zt-=.5:Zt-=1,Ze(Zt),et.preventDefault()):Nt===I.Z.LEFT&&Zt<tr&&Vt&&(jt?Zt+=.5:Zt+=1,Ze(Zt),et.preventDefault()),ht==null||ht(et)};q.useEffect(function(){Ee&&!ye&&Rt()},[]);var ut=new Array(tr).fill(0).map(function(bt,et){return q.createElement(P,{ref:lt(et),index:et,count:tr,disabled:ye,prefixCls:"".concat(Xe,"-star"),allowHalf:jt,value:cr===null?T:cr,onClick:Tt,onHover:Ot,key:bt||et,character:fe,characterRender:U,focused:we})}),ct=ne()(Xe,tt,(Ue={},(0,N.Z)(Ue,"".concat(Xe,"-disabled"),ye),(0,N.Z)(Ue,"".concat(Xe,"-rtl"),M==="rtl"),Ue));return q.createElement("ul",(0,v.Z)({className:ct,onMouseLeave:xt,tabIndex:ye?-1:ve,onFocus:ye?null:K,onBlur:ye?null:Bt,onKeyDown:ye?null:Ie,ref:vt,role:"radiogroup"},(0,X.Z)(Ft,{aria:!0,data:!0,attr:!0})),ut)}var Q=q.forwardRef(J),de=Q,Se=x(36355),Ae=x(6848),Me=x(17313),ee=x(83116),F=x(37613);const Y=G=>{const{componentCls:Pe}=G;return{[`${Pe}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:G.marginXS},"> div":{transition:`all ${G.motionDurationMid}, outline 0s`,"&:hover":{transform:G.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${G.lineWidth}px dashed ${G.starColor}`,transform:G.starHoverScale}},"&-first, &-second":{color:G.starBg,transition:`all ${G.motionDurationMid}`,userSelect:"none",[G.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Pe}-star-first, &-half ${Pe}-star-second`]:{opacity:1},[`&-half ${Pe}-star-first, &-full ${Pe}-star-second`]:{color:"inherit"}}}},V=G=>({[`&-rtl${G.componentCls}`]:{direction:"rtl"}}),ue=G=>{const{componentCls:Pe}=G;return{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Me.Wf)(G)),{display:"inline-block",margin:0,padding:0,color:G.starColor,fontSize:G.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${Pe} ${Pe}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Y(G)),{[`+ ${Pe}-text`]:{display:"inline-block",marginInlineStart:G.marginXS,fontSize:G.fontSize}}),V(G))}};var te=(0,ee.Z)("Rate",G=>{const Pe=(0,F.TS)(G,{});return[ue(Pe)]},G=>({starColor:G.yellow6,starSize:G.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:G.colorFillContent})),y=function(G,Pe){var Ue={};for(var Ve in G)Object.prototype.hasOwnProperty.call(G,Ve)&&Pe.indexOf(Ve)<0&&(Ue[Ve]=G[Ve]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,Ve=Object.getOwnPropertySymbols(G);Xe<Ve.length;Xe++)Pe.indexOf(Ve[Xe])<0&&Object.prototype.propertyIsEnumerable.call(G,Ve[Xe])&&(Ue[Ve[Xe]]=G[Ve[Xe]]);return Ue},Z=q.forwardRef((G,Pe)=>{const{prefixCls:Ue,className:Ve,rootClassName:Xe,style:tt,tooltips:at,character:mt=q.createElement(oe,null)}=G,Ut=y(G,["prefixCls","className","rootClassName","style","tooltips","character"]),tr=(ye,Re)=>{let{index:M}=Re;return at?q.createElement(Ae.Z,{title:at[M]},ye):ye},{getPrefixCls:Mt,direction:jt,rate:Yt}=q.useContext(Se.E_),er=Mt("rate",Ue),[ge,fe]=te(er),U=Object.assign(Object.assign({},Yt==null?void 0:Yt.style),tt);return ge(q.createElement(de,Object.assign({ref:Pe,character:mt,characterRender:tr},Ut,{className:ne()(Ve,Xe,fe,Yt==null?void 0:Yt.className),style:U,prefixCls:er,direction:jt})))})},61621:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return fe}});var v=x(92310),q=x.n(v),xe=x(59301),pe=x(36355),O=x(2738),ce=U=>{const{prefixCls:ye,className:Re,style:M,size:se,shape:ve}=U,Ee=q()({[`${ye}-lg`]:se==="large",[`${ye}-sm`]:se==="small"}),ke=q()({[`${ye}-circle`]:ve==="circle",[`${ye}-square`]:ve==="square",[`${ye}-round`]:ve==="round"}),Fe=xe.useMemo(()=>typeof se=="number"?{width:se,height:se,lineHeight:`${se}px`}:{},[se]);return xe.createElement("span",{className:q()(ye,Ee,ke,Re),style:Object.assign(Object.assign({},Fe),M)})},oe=x(93083),o=x(83116),ne=x(37613);const N=new oe.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),S=U=>({height:U,lineHeight:`${U}px`}),b=U=>Object.assign({width:U},S(U)),A=U=>({background:U.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:N,animationDuration:U.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),I=U=>Object.assign({width:U*5,minWidth:U*5},S(U)),X=U=>{const{skeletonAvatarCls:ye,gradientFromColor:Re,controlHeight:M,controlHeightLG:se,controlHeightSM:ve}=U;return{[`${ye}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Re},b(M)),[`${ye}${ye}-circle`]:{borderRadius:"50%"},[`${ye}${ye}-lg`]:Object.assign({},b(se)),[`${ye}${ye}-sm`]:Object.assign({},b(ve))}},ie=U=>{const{controlHeight:ye,borderRadiusSM:Re,skeletonInputCls:M,controlHeightLG:se,controlHeightSM:ve,gradientFromColor:Ee}=U;return{[`${M}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ee,borderRadius:Re},I(ye)),[`${M}-lg`]:Object.assign({},I(se)),[`${M}-sm`]:Object.assign({},I(ve))}},P=U=>Object.assign({width:U},S(U)),B=U=>{const{skeletonImageCls:ye,imageSizeBase:Re,gradientFromColor:M,borderRadiusSM:se}=U;return{[`${ye}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:M,borderRadius:se},P(Re*2)),{[`${ye}-path`]:{fill:"#bfbfbf"},[`${ye}-svg`]:Object.assign(Object.assign({},P(Re)),{maxWidth:Re*4,maxHeight:Re*4}),[`${ye}-svg${ye}-svg-circle`]:{borderRadius:"50%"}}),[`${ye}${ye}-circle`]:{borderRadius:"50%"}}},H=(U,ye,Re)=>{const{skeletonButtonCls:M}=U;return{[`${Re}${M}-circle`]:{width:ye,minWidth:ye,borderRadius:"50%"},[`${Re}${M}-round`]:{borderRadius:ye}}},le=U=>Object.assign({width:U*2,minWidth:U*2},S(U)),k=U=>{const{borderRadiusSM:ye,skeletonButtonCls:Re,controlHeight:M,controlHeightLG:se,controlHeightSM:ve,gradientFromColor:Ee}=U;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Re}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ee,borderRadius:ye,width:M*2,minWidth:M*2},le(M))},H(U,M,Re)),{[`${Re}-lg`]:Object.assign({},le(se))}),H(U,se,`${Re}-lg`)),{[`${Re}-sm`]:Object.assign({},le(ve))}),H(U,ve,`${Re}-sm`))},j=U=>{const{componentCls:ye,skeletonAvatarCls:Re,skeletonTitleCls:M,skeletonParagraphCls:se,skeletonButtonCls:ve,skeletonInputCls:Ee,skeletonImageCls:ke,controlHeight:Fe,controlHeightLG:qe,controlHeightSM:gt,gradientFromColor:ht,padding:Qe,marginSM:Ft,borderRadius:Lt,titleHeight:Le,blockRadius:Ke,paragraphLiHeight:lt,controlHeightXS:vt,paragraphMarginTop:Rt}=U;return{[`${ye}`]:{display:"table",width:"100%",[`${ye}-header`]:{display:"table-cell",paddingInlineEnd:Qe,verticalAlign:"top",[`${Re}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ht},b(Fe)),[`${Re}-circle`]:{borderRadius:"50%"},[`${Re}-lg`]:Object.assign({},b(qe)),[`${Re}-sm`]:Object.assign({},b(gt))},[`${ye}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${M}`]:{width:"100%",height:Le,background:ht,borderRadius:Ke,[`+ ${se}`]:{marginBlockStart:gt}},[`${se}`]:{padding:0,"> li":{width:"100%",height:lt,listStyle:"none",background:ht,borderRadius:Ke,"+ li":{marginBlockStart:vt}}},[`${se}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${ye}-content`]:{[`${M}, ${se} > li`]:{borderRadius:Lt}}},[`${ye}-with-avatar ${ye}-content`]:{[`${M}`]:{marginBlockStart:Ft,[`+ ${se}`]:{marginBlockStart:Rt}}},[`${ye}${ye}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},k(U)),X(U)),ie(U)),B(U)),[`${ye}${ye}-block`]:{width:"100%",[`${ve}`]:{width:"100%"},[`${Ee}`]:{width:"100%"}},[`${ye}${ye}-active`]:{[`
${M},
${se} > li,
${Re},
${ve},
${Ee},
${ke}
`]:Object.assign({},A(U))}}};var J=(0,o.Z)("Skeleton",U=>{const{componentCls:ye}=U,Re=(0,ne.TS)(U,{skeletonAvatarCls:`${ye}-avatar`,skeletonTitleCls:`${ye}-title`,skeletonParagraphCls:`${ye}-paragraph`,skeletonButtonCls:`${ye}-button`,skeletonInputCls:`${ye}-input`,skeletonImageCls:`${ye}-image`,imageSizeBase:U.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${U.gradientFromColor} 25%, ${U.gradientToColor} 37%, ${U.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[j(Re)]},U=>{const{colorFillContent:ye,colorFill:Re}=U,M=ye,se=Re;return{color:M,colorGradientEnd:se,gradientFromColor:M,gradientToColor:se,titleHeight:U.controlHeight/2,blockRadius:U.borderRadiusSM,paragraphMarginTop:U.marginLG+U.marginXXS,paragraphLiHeight:U.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),de=U=>{const{prefixCls:ye,className:Re,rootClassName:M,active:se,shape:ve="circle",size:Ee="default"}=U,{getPrefixCls:ke}=xe.useContext(pe.E_),Fe=ke("skeleton",ye),[qe,gt]=J(Fe),ht=(0,O.Z)(U,["prefixCls","className"]),Qe=q()(Fe,`${Fe}-element`,{[`${Fe}-active`]:se},Re,M,gt);return qe(xe.createElement("div",{className:Qe},xe.createElement(ce,Object.assign({prefixCls:`${Fe}-avatar`,shape:ve,size:Ee},ht))))},Ae=U=>{const{prefixCls:ye,className:Re,rootClassName:M,active:se,block:ve=!1,size:Ee="default"}=U,{getPrefixCls:ke}=xe.useContext(pe.E_),Fe=ke("skeleton",ye),[qe,gt]=J(Fe),ht=(0,O.Z)(U,["prefixCls"]),Qe=q()(Fe,`${Fe}-element`,{[`${Fe}-active`]:se,[`${Fe}-block`]:ve},Re,M,gt);return qe(xe.createElement("div",{className:Qe},xe.createElement(ce,Object.assign({prefixCls:`${Fe}-button`,size:Ee},ht))))};const Me="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var F=U=>{const{prefixCls:ye,className:Re,rootClassName:M,style:se,active:ve}=U,{getPrefixCls:Ee}=xe.useContext(pe.E_),ke=Ee("skeleton",ye),[Fe,qe]=J(ke),gt=q()(ke,`${ke}-element`,{[`${ke}-active`]:ve},Re,M,qe);return Fe(xe.createElement("div",{className:gt},xe.createElement("div",{className:q()(`${ke}-image`,Re),style:se},xe.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${ke}-image-svg`},xe.createElement("path",{d:Me,className:`${ke}-image-path`})))))},V=U=>{const{prefixCls:ye,className:Re,rootClassName:M,active:se,block:ve,size:Ee="default"}=U,{getPrefixCls:ke}=xe.useContext(pe.E_),Fe=ke("skeleton",ye),[qe,gt]=J(Fe),ht=(0,O.Z)(U,["prefixCls"]),Qe=q()(Fe,`${Fe}-element`,{[`${Fe}-active`]:se,[`${Fe}-block`]:ve},Re,M,gt);return qe(xe.createElement("div",{className:Qe},xe.createElement(ce,Object.assign({prefixCls:`${Fe}-input`,size:Ee},ht))))},ue=x(72308),te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},y=te,w=x(7657),Z=function(ye,Re){return xe.createElement(w.Z,(0,ue.Z)({},ye,{ref:Re,icon:y}))},G=xe.forwardRef(Z),Pe=G,Ve=U=>{const{prefixCls:ye,className:Re,rootClassName:M,style:se,active:ve,children:Ee}=U,{getPrefixCls:ke}=xe.useContext(pe.E_),Fe=ke("skeleton",ye),[qe,gt]=J(Fe),ht=q()(Fe,`${Fe}-element`,{[`${Fe}-active`]:ve},gt,Re,M),Qe=Ee!=null?Ee:xe.createElement(Pe,null);return qe(xe.createElement("div",{className:ht},xe.createElement("div",{className:q()(`${Fe}-image`,Re),style:se},Qe)))},Xe=x(80702),at=U=>{const ye=ke=>{const{width:Fe,rows:qe=2}=U;if(Array.isArray(Fe))return Fe[ke];if(qe-1===ke)return Fe},{prefixCls:Re,className:M,style:se,rows:ve}=U,Ee=(0,Xe.Z)(Array(ve)).map((ke,Fe)=>xe.createElement("li",{key:Fe,style:{width:ye(Fe)}}));return xe.createElement("ul",{className:q()(Re,M),style:se},Ee)},Ut=U=>{let{prefixCls:ye,className:Re,width:M,style:se}=U;return xe.createElement("h3",{className:q()(ye,Re),style:Object.assign({width:M},se)})};function tr(U){return U&&typeof U=="object"?U:{}}function Mt(U,ye){return U&&!ye?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function jt(U,ye){return!U&&ye?{width:"38%"}:U&&ye?{width:"50%"}:{}}function Yt(U,ye){const Re={};return(!U||!ye)&&(Re.width="61%"),!U&&ye?Re.rows=3:Re.rows=2,Re}const er=U=>{const{prefixCls:ye,loading:Re,className:M,rootClassName:se,style:ve,children:Ee,avatar:ke=!1,title:Fe=!0,paragraph:qe=!0,active:gt,round:ht}=U,{getPrefixCls:Qe,direction:Ft,skeleton:Lt}=xe.useContext(pe.E_),Le=Qe("skeleton",ye),[Ke,lt]=J(Le);if(Re||!("loading"in U)){const vt=!!ke,Rt=!!Fe,Gt=!!qe;let E;if(vt){const W=Object.assign(Object.assign({prefixCls:`${Le}-avatar`},Mt(Rt,Gt)),tr(ke));E=xe.createElement("div",{className:`${Le}-header`},xe.createElement(ce,Object.assign({},W)))}let T;if(Rt||Gt){let W;if(Rt){const rr=Object.assign(Object.assign({prefixCls:`${Le}-title`},jt(vt,Gt)),tr(Fe));W=xe.createElement(Ut,Object.assign({},rr))}let be;if(Gt){const rr=Object.assign(Object.assign({prefixCls:`${Le}-paragraph`},Yt(vt,Rt)),tr(qe));be=xe.createElement(at,Object.assign({},rr))}T=xe.createElement("div",{className:`${Le}-content`},W,be)}const nt=q()(Le,{[`${Le}-with-avatar`]:vt,[`${Le}-active`]:gt,[`${Le}-rtl`]:Ft==="rtl",[`${Le}-round`]:ht},Lt==null?void 0:Lt.className,M,se,lt);return Ke(xe.createElement("div",{className:nt,style:Object.assign(Object.assign({},Lt==null?void 0:Lt.style),ve)},E,T))}return typeof Ee!="undefined"?Ee:null};er.Button=Ae,er.Avatar=de,er.Input=V,er.Image=F,er.Node=Ve;var ge=er,fe=ge},81327:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return ie}});var v=x(59301),q=x(92310),xe=x.n(q),pe=x(11592),O=x(36355),p=x(33234);const ce=v.createContext({latestIndex:0}),oe=ce.Provider;var ne=P=>{let{className:B,index:H,children:le,split:k,style:j}=P;const{latestIndex:J}=v.useContext(ce);return le==null?null:v.createElement(v.Fragment,null,v.createElement("div",{className:B,style:j},le),H<J&&k&&v.createElement("span",{className:`${B}-split`},k))},N=x(2856);function S(P){return["small","middle","large"].includes(P)}function b(P){return P?typeof P=="number"&&!Number.isNaN(P):!1}var A=function(P,B){var H={};for(var le in P)Object.prototype.hasOwnProperty.call(P,le)&&B.indexOf(le)<0&&(H[le]=P[le]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,le=Object.getOwnPropertySymbols(P);k<le.length;k++)B.indexOf(le[k])<0&&Object.prototype.propertyIsEnumerable.call(P,le[k])&&(H[le[k]]=P[le[k]]);return H};const X=v.forwardRef((P,B)=>{var H,le;const{getPrefixCls:k,space:j,direction:J}=v.useContext(O.E_),{size:Q=(j==null?void 0:j.size)||"small",align:de,className:Se,rootClassName:Ae,children:Me,direction:ee="horizontal",prefixCls:F,split:Y,style:V,wrap:ue=!1,classNames:te,styles:y}=P,w=A(P,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Z,G]=Array.isArray(Q)?Q:[Q,Q],Pe=S(G),Ue=S(Z),Ve=b(G),Xe=b(Z),tt=(0,pe.Z)(Me,{keepEmpty:!0}),at=de===void 0&&ee==="horizontal"?"center":de,mt=k("space",F),[Ut,tr]=(0,N.Z)(mt),Mt=xe()(mt,j==null?void 0:j.className,tr,`${mt}-${ee}`,{[`${mt}-rtl`]:J==="rtl",[`${mt}-align-${at}`]:at,[`${mt}-gap-row-${G}`]:Pe,[`${mt}-gap-col-${Z}`]:Ue},Se,Ae),jt=xe()(`${mt}-item`,(H=te==null?void 0:te.item)!==null&&H!==void 0?H:(le=j==null?void 0:j.classNames)===null||le===void 0?void 0:le.item);let Yt=0;const er=tt.map((U,ye)=>{var Re,M;U!=null&&(Yt=ye);const se=U&&U.key||`${jt}-${ye}`;return v.createElement(ne,{className:jt,key:se,index:ye,split:Y,style:(Re=y==null?void 0:y.item)!==null&&Re!==void 0?Re:(M=j==null?void 0:j.styles)===null||M===void 0?void 0:M.item},U)}),ge=v.useMemo(()=>({latestIndex:Yt}),[Yt]);if(tt.length===0)return null;const fe={};return ue&&(fe.flexWrap="wrap"),!Ue&&Xe&&(fe.columnGap=Z),!Pe&&Ve&&(fe.rowGap=G),Ut(v.createElement("div",Object.assign({ref:B,className:Mt,style:Object.assign(Object.assign(Object.assign({},fe),j==null?void 0:j.style),V)},w),v.createElement(oe,{value:ge},er)))});X.Compact=p.ZP;var ie=X},31797:function(nr,ot,x){"use strict";x.d(ot,{default:function(){return J}});var v=x(59301),q=x(56762),xe=x(92343),pe=x(92310),O=x.n(pe),p=x(36355),ce=x(61621),o=Q=>{const{value:de,formatter:Se,precision:Ae,decimalSeparator:Me,groupSeparator:ee="",prefixCls:F}=Q;let Y;if(typeof Se=="function")Y=Se(de);else{const V=String(de),ue=V.match(/^(-?)(\d*)(\.(\d+))?$/);if(!ue||V==="-")Y=V;else{const te=ue[1];let y=ue[2]||"0",w=ue[4]||"";y=y.replace(/\B(?=(\d{3})+(?!\d))/g,ee),typeof Ae=="number"&&(w=w.padEnd(Ae,"0").slice(0,Ae>0?Ae:0)),w&&(w=`${Me}${w}`),Y=[v.createElement("span",{key:"int",className:`${F}-content-value-int`},te,y),w&&v.createElement("span",{key:"decimal",className:`${F}-content-value-decimal`},w)]}}return v.createElement("span",{className:`${F}-content-value`},Y)},ne=x(17313),N=x(83116),S=x(37613);const b=Q=>{const{componentCls:de,marginXXS:Se,padding:Ae,colorTextDescription:Me,titleFontSize:ee,colorTextHeading:F,contentFontSize:Y,fontFamily:V}=Q;return{[`${de}`]:Object.assign(Object.assign({},(0,ne.Wf)(Q)),{[`${de}-title`]:{marginBottom:Se,color:Me,fontSize:ee},[`${de}-skeleton`]:{paddingTop:Ae},[`${de}-content`]:{color:F,fontSize:Y,fontFamily:V,[`${de}-content-value`]:{display:"inline-block",direction:"ltr"},[`${de}-content-prefix, ${de}-content-suffix`]:{display:"inline-block"},[`${de}-content-prefix`]:{marginInlineEnd:Se},[`${de}-content-suffix`]:{marginInlineStart:Se}}})}};var A=(0,N.Z)("Statistic",Q=>{const de=(0,S.TS)(Q,{});return[b(de)]},Q=>{const{fontSizeHeading3:de,fontSize:Se}=Q;return{titleFontSize:Se,contentFontSize:de}}),X=Q=>{const{prefixCls:de,className:Se,rootClassName:Ae,style:Me,valueStyle:ee,value:F=0,title:Y,valueRender:V,prefix:ue,suffix:te,loading:y=!1,onMouseEnter:w,onMouseLeave:Z,decimalSeparator:G=".",groupSeparator:Pe=","}=Q,{getPrefixCls:Ue,direction:Ve,statistic:Xe}=v.useContext(p.E_),tt=Ue("statistic",de),[at,mt]=A(tt),Ut=v.createElement(o,Object.assign({decimalSeparator:G,groupSeparator:Pe,prefixCls:tt},Q,{value:F})),tr=O()(tt,{[`${tt}-rtl`]:Ve==="rtl"},Xe==null?void 0:Xe.className,Se,Ae,mt);return at(v.createElement("div",{className:tr,style:Object.assign(Object.assign({},Xe==null?void 0:Xe.style),Me),onMouseEnter:w,onMouseLeave:Z},Y&&v.createElement("div",{className:`${tt}-title`},Y),v.createElement(ce.Z,{paragraph:!1,loading:y,className:`${tt}-skeleton`},v.createElement("div",{style:ee,className:`${tt}-content`},ue&&v.createElement("span",{className:`${tt}-content-prefix`},ue),V?V(Ut):Ut,te&&v.createElement("span",{className:`${tt}-content-suffix`},te)))))};const ie=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function P(Q,de){let Se=Q;const Ae=/\[[^\]]*]/g,Me=(de.match(Ae)||[]).map(V=>V.slice(1,-1)),ee=de.replace(Ae,"[]"),F=ie.reduce((V,ue)=>{let[te,y]=ue;if(V.includes(te)){const w=Math.floor(Se/y);return Se-=w*y,V.replace(new RegExp(`${te}+`,"g"),Z=>{const G=Z.length;return w.toString().padStart(G,"0")})}return V},ee);let Y=0;return F.replace(Ae,()=>{const V=Me[Y];return Y+=1,V})}function B(Q,de){const{format:Se=""}=de,Ae=new Date(Q).getTime(),Me=Date.now(),ee=Math.max(Ae-Me,0);return P(ee,Se)}const H=1e3/30;function le(Q){return new Date(Q).getTime()}const k=Q=>{const{value:de,format:Se="HH:mm:ss",onChange:Ae,onFinish:Me}=Q,ee=(0,q.Z)(),F=v.useRef(null),Y=()=>{Me==null||Me(),F.current&&(clearInterval(F.current),F.current=null)},V=()=>{const y=le(de);y>=Date.now()&&(F.current=setInterval(()=>{ee(),Ae==null||Ae(y-Date.now()),y<Date.now()&&Y()},H))};v.useEffect(()=>(V(),()=>{F.current&&(clearInterval(F.current),F.current=null)}),[de]);const ue=(y,w)=>B(y,Object.assign(Object.assign({},w),{format:Se})),te=y=>(0,xe.Tm)(y,{title:void 0});return v.createElement(X,Object.assign({},Q,{valueRender:te,formatter:ue}))};var j=v.memo(k);X.Countdown=j;var J=X},8378:function(nr,ot){"use strict";const x=v=>({[v.componentCls]:{[`${v.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${v.motionDurationMid} ${v.motionEaseInOut},
opacity ${v.motionDurationMid} ${v.motionEaseInOut} !important`}},[`${v.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${v.motionDurationMid} ${v.motionEaseInOut},
opacity ${v.motionDurationMid} ${v.motionEaseInOut} !important`}}});ot.Z=x},92899:function(nr,ot,x){"use strict";x.d(ot,{Fm:function(){return S}});var v=x(93083),q=x(95406);const xe=new v.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),pe=new v.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),O=new v.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),p=new v.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),ce=new v.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oe=new v.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),o=new v.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),ne=new v.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),N={"move-up":{inKeyframes:o,outKeyframes:ne},"move-down":{inKeyframes:xe,outKeyframes:pe},"move-left":{inKeyframes:O,outKeyframes:p},"move-right":{inKeyframes:ce,outKeyframes:oe}},S=(b,A)=>{const{antCls:I}=b,X=`${I}-${A}`,{inKeyframes:ie,outKeyframes:P}=N[A];return[(0,q.R)(X,ie,P,b.motionDurationMid),{[`
${X}-enter,
${X}-appear
`]:{opacity:0,animationTimingFunction:b.motionEaseOutCirc},[`${X}-leave`]:{animationTimingFunction:b.motionEaseInOutCirc}}]}},13826:function(nr,ot,x){"use strict";x.d(ot,{Qt:function(){return O},Uw:function(){return pe},fJ:function(){return xe},ly:function(){return p},oN:function(){return S}});var v=x(93083),q=x(95406);const xe=new v.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),pe=new v.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),O=new v.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),p=new v.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),ce=new v.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),oe=new v.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),o=new v.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),ne=new v.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),N={"slide-up":{inKeyframes:xe,outKeyframes:pe},"slide-down":{inKeyframes:O,outKeyframes:p},"slide-left":{inKeyframes:ce,outKeyframes:oe},"slide-right":{inKeyframes:o,outKeyframes:ne}},S=(b,A)=>{const{antCls:I}=b,X=`${I}-${A}`,{inKeyframes:ie,outKeyframes:P}=N[A];return[(0,q.R)(X,ie,P,b.motionDurationMid),{[`
${X}-enter,
${X}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:b.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${X}-leave`]:{animationTimingFunction:b.motionEaseInQuint}}]}},19447:function(nr,ot,x){"use strict";x.d(ot,{ZP:function(){return O},fS:function(){return xe},qN:function(){return q}});var v=x(47585);const q=8;function xe(p){const ce=q,{contentRadius:oe,limitVerticalRadius:o}=p,ne=oe>12?oe+2:12;return{dropdownArrowOffset:ne,dropdownArrowOffsetVertical:o?ce:ne}}function pe(p,ce){return p?ce:{}}function O(p,ce){const{componentCls:oe,sizePopupArrow:o,borderRadiusXS:ne,borderRadiusOuter:N,boxShadowPopoverArrow:S}=p,{colorBg:b,contentRadius:A=p.borderRadiusLG,limitVerticalRadius:I,arrowDistance:X=0,arrowPlacement:ie={left:!0,right:!0,top:!0,bottom:!0}}=ce,{dropdownArrowOffsetVertical:P,dropdownArrowOffset:B}=xe({contentRadius:A,limitVerticalRadius:I});return{[oe]:Object.assign(Object.assign(Object.assign(Object.assign({[`${oe}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,v.r)(o,ne,N,b,S)),{"&:before":{background:b}})]},pe(!!ie.top,{[[`&-placement-top ${oe}-arrow`,`&-placement-topLeft ${oe}-arrow`,`&-placement-topRight ${oe}-arrow`].join(",")]:{bottom:X,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${oe}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${oe}-arrow`]:{left:{_skip_check_:!0,value:B}},[`&-placement-topRight ${oe}-arrow`]:{right:{_skip_check_:!0,value:B}}})),pe(!!ie.bottom,{[[`&-placement-bottom ${oe}-arrow`,`&-placement-bottomLeft ${oe}-arrow`,`&-placement-bottomRight ${oe}-arrow`].join(",")]:{top:X,transform:"translateY(-100%)"},[`&-placement-bottom ${oe}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${oe}-arrow`]:{left:{_skip_check_:!0,value:B}},[`&-placement-bottomRight ${oe}-arrow`]:{right:{_skip_check_:!0,value:B}}})),pe(!!ie.left,{[[`&-placement-left ${oe}-arrow`,`&-placement-leftTop ${oe}-arrow`,`&-placement-leftBottom ${oe}-arrow`].join(",")]:{right:{_skip_check_:!0,value:X},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${oe}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${oe}-arrow`]:{top:P},[`&-placement-leftBottom ${oe}-arrow`]:{bottom:P}})),pe(!!ie.right,{[[`&-placement-right ${oe}-arrow`,`&-placement-rightTop ${oe}-arrow`,`&-placement-rightBottom ${oe}-arrow`].join(",")]:{left:{_skip_check_:!0,value:X},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${oe}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${oe}-arrow`]:{top:P},[`&-placement-rightBottom ${oe}-arrow`]:{bottom:P}}))}}},47585:function(nr,ot,x){"use strict";x.d(ot,{r:function(){return v}});const v=(q,xe,pe,O,p)=>{const ce=q/2,oe=0,o=ce,ne=pe*1/Math.sqrt(2),N=ce-pe*(1-1/Math.sqrt(2)),S=ce-xe*(1/Math.sqrt(2)),b=pe*(Math.sqrt(2)-1)+xe*(1/Math.sqrt(2)),A=2*ce-S,I=b,X=2*ce-ne,ie=N,P=2*ce-oe,B=o,H=ce*Math.sqrt(2)+pe*(Math.sqrt(2)-2),le=pe*(Math.sqrt(2)-1);return{pointerEvents:"none",width:q,height:q,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:q,height:q/2,background:O,clipPath:{_multi_value_:!0,value:[`polygon(${le}px 100%, 50% ${le}px, ${2*ce-le}px 100%, ${le}px 100%)`,`path('M ${oe} ${o} A ${pe} ${pe} 0 0 0 ${ne} ${N} L ${S} ${b} A ${xe} ${xe} 0 0 1 ${A} ${I} L ${X} ${ie} A ${pe} ${pe} 0 0 0 ${P} ${B} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:H,height:H,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${xe}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:p,zIndex:0,background:"transparent"}}}},33166:function(nr,ot,x){"use strict";x.d(ot,{i:function(){return v}});const v=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return q}});var v=x(33166);function q(xe,pe){return v.i.reduce((O,p)=>{const ce=xe[`${p}1`],oe=xe[`${p}3`],o=xe[`${p}6`],ne=xe[`${p}7`];return Object.assign(Object.assign({},O),pe(p,{lightColor:ce,lightBorderColor:oe,darkColor:o,textColor:ne}))},{})}},6848:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return Ae}});var v=x(59301),q=x(92310),xe=x.n(q),pe=x(55477),O=x(18929),p=x(62892),ce=x(79676),oe=x(92343),o=x(36355),ne=x(33234),N=x(88088),S=x(17313),b=x(29878),A=x(19447),I=x(45157),X=x(37613),ie=x(83116);const P=Me=>{const{componentCls:ee,tooltipMaxWidth:F,tooltipColor:Y,tooltipBg:V,tooltipBorderRadius:ue,zIndexPopup:te,controlHeight:y,boxShadowSecondary:w,paddingSM:Z,paddingXS:G,tooltipRadiusOuter:Pe}=Me;return[{[ee]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,S.Wf)(Me)),{position:"absolute",zIndex:te,display:"block",width:"max-content",maxWidth:F,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":V,[`${ee}-inner`]:{minWidth:y,minHeight:y,padding:`${Z/2}px ${G}px`,color:Y,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:V,borderRadius:ue,boxShadow:w,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${ee}-inner`]:{borderRadius:Math.min(ue,A.qN)}},[`${ee}-content`]:{position:"relative"}}),(0,I.Z)(Me,(Ue,Ve)=>{let{darkColor:Xe}=Ve;return{[`&${ee}-${Ue}`]:{[`${ee}-inner`]:{backgroundColor:Xe},[`${ee}-arrow`]:{"--antd-arrow-background-color":Xe}}}})),{"&-rtl":{direction:"rtl"}})},(0,A.ZP)((0,X.TS)(Me,{borderRadiusOuter:Pe}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:ue,limitVerticalRadius:!0}),{[`${ee}-pure`]:{position:"relative",maxWidth:"none",margin:Me.sizePopupArrow}}]};var B=(Me,ee)=>(0,ie.Z)("Tooltip",Y=>{if(ee===!1)return[];const{borderRadius:V,colorTextLightSolid:ue,colorBgDefault:te,borderRadiusOuter:y}=Y,w=(0,X.TS)(Y,{tooltipMaxWidth:250,tooltipColor:ue,tooltipBorderRadius:V,tooltipBg:te,tooltipRadiusOuter:y>4?4:y});return[P(w),(0,b._y)(Y,"zoom-big-fast")]},Y=>{let{zIndexPopupBase:V,colorBgSpotlight:ue}=Y;return{zIndexPopup:V+70,colorBgDefault:ue}},{resetStyle:!1})(Me),H=x(36785);function le(Me,ee){const F=(0,H.o2)(ee),Y=xe()({[`${Me}-${ee}`]:ee&&F}),V={},ue={};return ee&&!F&&(V.background=ee,ue["--antd-arrow-background-color"]=ee),{className:Y,overlayStyle:V,arrowStyle:ue}}var j=Me=>{const{prefixCls:ee,className:F,placement:Y="top",title:V,color:ue,overlayInnerStyle:te}=Me,{getPrefixCls:y}=v.useContext(o.E_),w=y("tooltip",ee),[Z,G]=B(w,!0),Pe=le(w,ue),Ue=Pe.arrowStyle,Ve=Object.assign(Object.assign({},te),Pe.overlayStyle),Xe=xe()(G,w,`${w}-pure`,`${w}-placement-${Y}`,F,Pe.className);return Z(v.createElement("div",{className:Xe,style:Ue},v.createElement("div",{className:`${w}-arrow`}),v.createElement(pe.G,Object.assign({},Me,{className:G,prefixCls:w,overlayInnerStyle:Ve}),V)))},J=function(Me,ee){var F={};for(var Y in Me)Object.prototype.hasOwnProperty.call(Me,Y)&&ee.indexOf(Y)<0&&(F[Y]=Me[Y]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var V=0,Y=Object.getOwnPropertySymbols(Me);V<Y.length;V++)ee.indexOf(Y[V])<0&&Object.prototype.propertyIsEnumerable.call(Me,Y[V])&&(F[Y[V]]=Me[Y[V]]);return F};const Q=(Me,ee)=>{const F={},Y=Object.assign({},Me);return ee.forEach(V=>{Me&&V in Me&&(F[V]=Me[V],delete Y[V])}),{picked:F,omitted:Y}};function de(Me,ee){const F=Me.type;if((F.__ANT_BUTTON===!0||Me.type==="button")&&Me.props.disabled||F.__ANT_SWITCH===!0&&(Me.props.disabled||Me.props.loading)||F.__ANT_RADIO===!0&&Me.props.disabled){const{picked:Y,omitted:V}=Q(Me.props.style,["position","left","right","top","bottom","float","display","zIndex"]),ue=Object.assign(Object.assign({display:"inline-block"},Y),{cursor:"not-allowed",width:Me.props.block?"100%":void 0}),te=Object.assign(Object.assign({},V),{pointerEvents:"none"}),y=(0,oe.Tm)(Me,{style:te,className:null});return v.createElement("span",{style:ue,className:xe()(Me.props.className,`${ee}-disabled-compatible-wrapper`)},y)}return Me}const Se=v.forwardRef((Me,ee)=>{var F,Y;const{prefixCls:V,openClassName:ue,getTooltipContainer:te,overlayClassName:y,color:w,overlayInnerStyle:Z,children:G,afterOpenChange:Pe,afterVisibleChange:Ue,destroyTooltipOnHide:Ve,arrow:Xe=!0,title:tt,overlay:at,builtinPlacements:mt,arrowPointAtCenter:Ut=!1,autoAdjustOverflow:tr=!0}=Me,Mt=!!Xe,[,jt]=(0,N.Z)(),{getPopupContainer:Yt,getPrefixCls:er,direction:ge}=v.useContext(o.E_),fe=v.useRef(null),U=()=>{var je;(je=fe.current)===null||je===void 0||je.forceAlign()};v.useImperativeHandle(ee,()=>({forceAlign:U,forcePopupAlign:()=>{U()}}));const[ye,Re]=(0,O.Z)(!1,{value:(F=Me.open)!==null&&F!==void 0?F:Me.visible,defaultValue:(Y=Me.defaultOpen)!==null&&Y!==void 0?Y:Me.defaultVisible}),M=!tt&&!at&&tt!==0,se=je=>{var Ze,re;Re(M?!1:je),M||((Ze=Me.onOpenChange)===null||Ze===void 0||Ze.call(Me,je),(re=Me.onVisibleChange)===null||re===void 0||re.call(Me,je))},ve=v.useMemo(()=>{var je,Ze;let re=Ut;return typeof Xe=="object"&&(re=(Ze=(je=Xe.pointAtCenter)!==null&&je!==void 0?je:Xe.arrowPointAtCenter)!==null&&Ze!==void 0?Ze:Ut),mt||(0,ce.Z)({arrowPointAtCenter:re,autoAdjustOverflow:tr,arrowWidth:Mt?jt.sizePopupArrow:0,borderRadius:jt.borderRadius,offset:jt.marginXXS,visibleFirst:!0})},[Ut,Xe,mt,jt]),Ee=v.useMemo(()=>tt===0?tt:at||tt||"",[at,tt]),ke=v.createElement(ne.BR,null,typeof Ee=="function"?Ee():Ee),{getPopupContainer:Fe,placement:qe="top",mouseEnterDelay:gt=.1,mouseLeaveDelay:ht=.1,overlayStyle:Qe,rootClassName:Ft}=Me,Lt=J(Me,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Le=er("tooltip",V),Ke=er(),lt=Me["data-popover-inject"];let vt=ye;!("open"in Me)&&!("visible"in Me)&&M&&(vt=!1);const Rt=de((0,oe.l$)(G)&&!(0,oe.M2)(G)?G:v.createElement("span",null,G),Le),Gt=Rt.props,E=!Gt.className||typeof Gt.className=="string"?xe()(Gt.className,ue||`${Le}-open`):Gt.className,[T,nt]=B(Le,!lt),W=le(Le,w),be=W.arrowStyle,rr=Object.assign(Object.assign({},Z),W.overlayStyle),$e=xe()(y,{[`${Le}-rtl`]:ge==="rtl"},W.className,Ft,nt);return T(v.createElement(pe.Z,Object.assign({},Lt,{showArrow:Mt,placement:qe,mouseEnterDelay:gt,mouseLeaveDelay:ht,prefixCls:Le,overlayClassName:$e,overlayStyle:Object.assign(Object.assign({},be),Qe),getTooltipContainer:Fe||te||Yt,ref:fe,builtinPlacements:ve,overlay:ke,visible:vt,onVisibleChange:se,afterVisibleChange:Pe!=null?Pe:Ue,overlayInnerStyle:rr,arrowContent:v.createElement("span",{className:`${Le}-arrow-content`}),motion:{motionName:(0,p.m)(Ke,"zoom-big-fast",Me.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Ve}),vt?(0,oe.Tm)(Rt,{className:E}):Rt))});Se._InternalPanelDoNotUseOrYouWillBeFired=j;var Ae=Se},54580:function(nr,ot,x){"use strict";x.d(ot,{default:function(){return sr}});var v=x(59301),q=x(80702),xe=x(92310),pe=x.n(xe),O=x(72308),p=x(96949),ce=x(55090),oe=x(77205),o=x(38793),ne=x(49618),N=x(74416),S=x(65736),b=x(62853),A=x(72633),I=x(26112);function X(Be,pt){var it="cannot ".concat(Be.method," ").concat(Be.action," ").concat(pt.status,"'"),st=new Error(it);return st.status=pt.status,st.method=Be.method,st.url=Be.action,st}function ie(Be){var pt=Be.responseText||Be.response;if(!pt)return pt;try{return JSON.parse(pt)}catch(it){return pt}}function P(Be){var pt=new XMLHttpRequest;Be.onProgress&&pt.upload&&(pt.upload.onprogress=function(kt){kt.total>0&&(kt.percent=kt.loaded/kt.total*100),Be.onProgress(kt)});var it=new FormData;Be.data&&Object.keys(Be.data).forEach(function(zt){var kt=Be.data[zt];if(Array.isArray(kt)){kt.forEach(function(yt){it.append("".concat(zt,"[]"),yt)});return}it.append(zt,kt)}),Be.file instanceof Blob?it.append(Be.filename,Be.file,Be.file.name):it.append(Be.filename,Be.file),pt.onerror=function(kt){Be.onError(kt)},pt.onload=function(){return pt.status<200||pt.status>=300?Be.onError(X(Be,pt),ie(pt)):Be.onSuccess(ie(pt),pt)},pt.open(Be.method,Be.action,!0),Be.withCredentials&&"withCredentials"in pt&&(pt.withCredentials=!0);var st=Be.headers||{};return st["X-Requested-With"]!==null&&pt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(st).forEach(function(zt){st[zt]!==null&&pt.setRequestHeader(zt,st[zt])}),pt.send(it),{abort:function(){pt.abort()}}}var B=+new Date,H=0;function le(){return"rc-upload-".concat(B,"-").concat(++H)}var k=x(48736),j=function(Be,pt){if(Be&&pt){var it=Array.isArray(pt)?pt:pt.split(","),st=Be.name||"",zt=Be.type||"",kt=zt.replace(/\/.*$/,"");return it.some(function(yt){var Te=yt.trim();if(/^\*(\/\*)?$/.test(yt))return!0;if(Te.charAt(0)==="."){var Ge=st.toLowerCase(),rt=Te.toLowerCase(),wt=[rt];return(rt===".jpg"||rt===".jpeg")&&(wt=[".jpg",".jpeg"]),wt.some(function(_t){return Ge.endsWith(_t)})}return/\/\*$/.test(Te)?kt===Te.replace(/\/.*$/,""):zt===Te?!0:/^\w+$/.test(Te)?((0,k.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Te,"'.Skip for check.")),!0):!1})}return!0};function J(Be,pt){var it=Be.createReader(),st=[];function zt(){it.readEntries(function(kt){var yt=Array.prototype.slice.apply(kt);st=st.concat(yt);var Te=!yt.length;Te?pt(st):zt()})}zt()}var Q=function(pt,it,st){var zt=function kt(yt,Te){yt&&(yt.path=Te||"",yt.isFile?yt.file(function(Ge){st(Ge)&&(yt.fullPath&&!Ge.webkitRelativePath&&(Object.defineProperties(Ge,{webkitRelativePath:{writable:!0}}),Ge.webkitRelativePath=yt.fullPath.replace(/^\//,""),Object.defineProperties(Ge,{webkitRelativePath:{writable:!1}})),it([Ge]))}):yt.isDirectory&&J(yt,function(Ge){Ge.forEach(function(rt){kt(rt,"".concat(Te).concat(yt.name,"/"))})}))};pt.forEach(function(kt){zt(kt.webkitGetAsEntry())})},de=Q,Se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ae=function(Be){(0,oe.Z)(it,Be);var pt=(0,o.Z)(it);function it(){var st;(0,p.Z)(this,it);for(var zt=arguments.length,kt=new Array(zt),yt=0;yt<zt;yt++)kt[yt]=arguments[yt];return st=pt.call.apply(pt,[this].concat(kt)),st.state={uid:le()},st.reqs={},st.fileInput=void 0,st._isMounted=void 0,st.onChange=function(Te){var Ge=st.props,rt=Ge.accept,wt=Ge.directory,_t=Te.target.files,Wt=(0,q.Z)(_t).filter(function(Dt){return!wt||j(Dt,rt)});st.uploadFiles(Wt),st.reset()},st.onClick=function(Te){var Ge=st.fileInput;if(Ge){var rt=Te.target,wt=st.props.onClick;if(rt&&rt.tagName==="BUTTON"){var _t=Ge.parentNode;_t.focus(),rt.blur()}Ge.click(),wt&&wt(Te)}},st.onKeyDown=function(Te){Te.key==="Enter"&&st.onClick(Te)},st.onFileDrop=function(Te){var Ge=st.props.multiple;if(Te.preventDefault(),Te.type!=="dragover")if(st.props.directory)de(Array.prototype.slice.call(Te.dataTransfer.items),st.uploadFiles,function(wt){return j(wt,st.props.accept)});else{var rt=(0,q.Z)(Te.dataTransfer.files).filter(function(wt){return j(wt,st.props.accept)});Ge===!1&&(rt=rt.slice(0,1)),st.uploadFiles(rt)}},st.uploadFiles=function(Te){var Ge=(0,q.Z)(Te),rt=Ge.map(function(wt){return wt.uid=le(),st.processFile(wt,Ge)});Promise.all(rt).then(function(wt){var _t=st.props.onBatchStart;_t==null||_t(wt.map(function(Wt){var Dt=Wt.origin,ir=Wt.parsedFile;return{file:Dt,parsedFile:ir}})),wt.filter(function(Wt){return Wt.parsedFile!==null}).forEach(function(Wt){st.post(Wt)})})},st.processFile=function(){var Te=(0,A.Z)((0,S.Z)().mark(function Ge(rt,wt){var _t,Wt,Dt,ir,lr,dr,Sr,Tr,kr;return(0,S.Z)().wrap(function(ur){for(;;)switch(ur.prev=ur.next){case 0:if(_t=st.props.beforeUpload,Wt=rt,!_t){ur.next=14;break}return ur.prev=3,ur.next=6,_t(rt,wt);case 6:Wt=ur.sent,ur.next=12;break;case 9:ur.prev=9,ur.t0=ur.catch(3),Wt=!1;case 12:if(Wt!==!1){ur.next=14;break}return ur.abrupt("return",{origin:rt,parsedFile:null,action:null,data:null});case 14:if(Dt=st.props.action,typeof Dt!="function"){ur.next=21;break}return ur.next=18,Dt(rt);case 18:ir=ur.sent,ur.next=22;break;case 21:ir=Dt;case 22:if(lr=st.props.data,typeof lr!="function"){ur.next=29;break}return ur.next=26,lr(rt);case 26:dr=ur.sent,ur.next=30;break;case 29:dr=lr;case 30:return Sr=((0,b.Z)(Wt)==="object"||typeof Wt=="string")&&Wt?Wt:rt,Sr instanceof File?Tr=Sr:Tr=new File([Sr],rt.name,{type:rt.type}),kr=Tr,kr.uid=rt.uid,ur.abrupt("return",{origin:rt,data:dr,parsedFile:kr,action:ir});case 35:case"end":return ur.stop()}},Ge,null,[[3,9]])}));return function(Ge,rt){return Te.apply(this,arguments)}}(),st.saveFileInput=function(Te){st.fileInput=Te},st}return(0,ce.Z)(it,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(zt){var kt=this,yt=zt.data,Te=zt.origin,Ge=zt.action,rt=zt.parsedFile;if(this._isMounted){var wt=this.props,_t=wt.onStart,Wt=wt.customRequest,Dt=wt.name,ir=wt.headers,lr=wt.withCredentials,dr=wt.method,Sr=Te.uid,Tr=Wt||P,kr={action:Ge,filename:Dt,data:yt,file:rt,headers:ir,withCredentials:lr,method:dr||"post",onProgress:function(ur){var Gr=kt.props.onProgress;Gr==null||Gr(ur,rt)},onSuccess:function(ur,Gr){var $r=kt.props.onSuccess;$r==null||$r(ur,rt,Gr),delete kt.reqs[Sr]},onError:function(ur,Gr){var $r=kt.props.onError;$r==null||$r(ur,Gr,rt),delete kt.reqs[Sr]}};_t(Te),this.reqs[Sr]=Tr(kr)}}},{key:"reset",value:function(){this.setState({uid:le()})}},{key:"abort",value:function(zt){var kt=this.reqs;if(zt){var yt=zt.uid?zt.uid:zt;kt[yt]&&kt[yt].abort&&kt[yt].abort(),delete kt[yt]}else Object.keys(kt).forEach(function(Te){kt[Te]&&kt[Te].abort&&kt[Te].abort(),delete kt[Te]})}},{key:"render",value:function(){var zt=this.props,kt=zt.component,yt=zt.prefixCls,Te=zt.className,Ge=zt.disabled,rt=zt.id,wt=zt.style,_t=zt.multiple,Wt=zt.accept,Dt=zt.capture,ir=zt.children,lr=zt.directory,dr=zt.openFileDialogOnClick,Sr=zt.onMouseEnter,Tr=zt.onMouseLeave,kr=(0,N.Z)(zt,Se),mr=pe()((0,ne.Z)((0,ne.Z)((0,ne.Z)({},yt,!0),"".concat(yt,"-disabled"),Ge),Te,Te)),ur=lr?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Gr=Ge?{}:{onClick:dr?this.onClick:function(){},onKeyDown:dr?this.onKeyDown:function(){},onMouseEnter:Sr,onMouseLeave:Tr,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return v.createElement(kt,(0,O.Z)({},Gr,{className:mr,role:"button",style:wt}),v.createElement("input",(0,O.Z)({},(0,I.Z)(kr,{aria:!0,data:!0}),{id:rt,disabled:Ge,type:"file",ref:this.saveFileInput,onClick:function(Wr){return Wr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Wt},ur,{multiple:_t,onChange:this.onChange},Dt!=null?{capture:Dt}:{})),ir)}}]),it}(v.Component),Me=Ae;function ee(){}var F=function(Be){(0,oe.Z)(it,Be);var pt=(0,o.Z)(it);function it(){var st;(0,p.Z)(this,it);for(var zt=arguments.length,kt=new Array(zt),yt=0;yt<zt;yt++)kt[yt]=arguments[yt];return st=pt.call.apply(pt,[this].concat(kt)),st.uploader=void 0,st.saveUploader=function(Te){st.uploader=Te},st}return(0,ce.Z)(it,[{key:"abort",value:function(zt){this.uploader.abort(zt)}},{key:"render",value:function(){return v.createElement(Me,(0,O.Z)({},this.props,{ref:this.saveUploader}))}}]),it}(v.Component);F.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ee,onError:ee,onSuccess:ee,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Y=F,V=Y,ue=x(18929),te=x(4676),y=x(36355),w=x(1684),Z=x(9763),G=x(31724),Pe={icon:function(pt,it){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:it}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:pt}}]}},name:"file",theme:"twotone"},Ue=Pe,Ve=x(7657),Xe=function(pt,it){return v.createElement(Ve.Z,(0,O.Z)({},pt,{ref:it,icon:Ue}))},tt=v.forwardRef(Xe),at=tt,mt=x(58617),Ut={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},tr=Ut,Mt=function(pt,it){return v.createElement(Ve.Z,(0,O.Z)({},pt,{ref:it,icon:tr}))},jt=v.forwardRef(Mt),Yt=jt,er={icon:function(pt,it){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:pt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:it}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:it}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:it}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:pt}}]}},name:"picture",theme:"twotone"},ge=er,fe=function(pt,it){return v.createElement(Ve.Z,(0,O.Z)({},pt,{ref:it,icon:ge}))},U=v.forwardRef(fe),ye=U,Re=x(77900),M=x(56762),se=x(62892),ve=x(92343),Ee=x(3113);function ke(Be){return Object.assign(Object.assign({},Be),{lastModified:Be.lastModified,lastModifiedDate:Be.lastModifiedDate,name:Be.name,size:Be.size,type:Be.type,uid:Be.uid,percent:0,originFileObj:Be})}function Fe(Be,pt){const it=(0,q.Z)(pt),st=it.findIndex(zt=>{let{uid:kt}=zt;return kt===Be.uid});return st===-1?it.push(Be):it[st]=Be,it}function qe(Be,pt){const it=Be.uid!==void 0?"uid":"name";return pt.filter(st=>st[it]===Be[it])[0]}function gt(Be,pt){const it=Be.uid!==void 0?"uid":"name",st=pt.filter(zt=>zt[it]!==Be[it]);return st.length===pt.length?null:st}const ht=function(){const pt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),st=pt[pt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(st)||[""])[0]},Qe=Be=>Be.indexOf("image/")===0,Ft=Be=>{if(Be.type&&!Be.thumbUrl)return Qe(Be.type);const pt=Be.thumbUrl||Be.url||"",it=ht(pt);return/^data:image\//.test(pt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(it)?!0:!(/^data:/.test(pt)||it)},Lt=200;function Le(Be){return new Promise(pt=>{if(!Be.type||!Qe(Be.type)){pt("");return}const it=document.createElement("canvas");it.width=Lt,it.height=Lt,it.style.cssText=`position: fixed; left: 0; top: 0; width: ${Lt}px; height: ${Lt}px; z-index: 9999; display: none;`,document.body.appendChild(it);const st=it.getContext("2d"),zt=new Image;if(zt.onload=()=>{const{width:kt,height:yt}=zt;let Te=Lt,Ge=Lt,rt=0,wt=0;kt>yt?(Ge=yt*(Lt/kt),wt=-(Ge-Te)/2):(Te=kt*(Lt/yt),rt=-(Te-Ge)/2),st.drawImage(zt,rt,wt,Te,Ge);const _t=it.toDataURL();document.body.removeChild(it),window.URL.revokeObjectURL(zt.src),pt(_t)},zt.crossOrigin="anonymous",Be.type.startsWith("image/svg+xml")){const kt=new FileReader;kt.onload=()=>{kt.result&&(zt.src=kt.result)},kt.readAsDataURL(Be)}else if(Be.type.startsWith("image/gif")){const kt=new FileReader;kt.onload=()=>{kt.result&&pt(kt.result)},kt.readAsDataURL(Be)}else zt.src=window.URL.createObjectURL(Be)})}var Ke=x(26227),lt=x(41464),vt=x(15277),Rt=x(93948),Gt=x(6848),T=v.forwardRef((Be,pt)=>{let{prefixCls:it,className:st,style:zt,locale:kt,listType:yt,file:Te,items:Ge,progress:rt,iconRender:wt,actionIconRender:_t,itemRender:Wt,isImgUrl:Dt,showPreviewIcon:ir,showRemoveIcon:lr,showDownloadIcon:dr,previewIcon:Sr,removeIcon:Tr,downloadIcon:kr,onPreview:mr,onDownload:ur,onClose:Gr}=Be;var $r,Wr;const{status:Rr}=Te,[Dr,Pr]=v.useState(Rr);v.useEffect(()=>{Rr!=="removed"&&Pr(Rr)},[Rr]);const[jr,Qr]=v.useState(!1);v.useEffect(()=>{const un=setTimeout(()=>{Qr(!0)},300);return()=>{clearTimeout(un)}},[]);const ln=wt(Te);let Yr=v.createElement("div",{className:`${it}-icon`},ln);if(yt==="picture"||yt==="picture-card"||yt==="picture-circle")if(Dr==="uploading"||!Te.thumbUrl&&!Te.url){const un=pe()(`${it}-list-item-thumbnail`,{[`${it}-list-item-file`]:Dr!=="uploading"});Yr=v.createElement("div",{className:un},ln)}else{const un=Dt!=null&&Dt(Te)?v.createElement("img",{src:Te.thumbUrl||Te.url,alt:Te.name,className:`${it}-list-item-image`,crossOrigin:Te.crossOrigin}):ln,fr=pe()(`${it}-list-item-thumbnail`,{[`${it}-list-item-file`]:Dt&&!Dt(Te)});Yr=v.createElement("a",{className:fr,onClick:pn=>mr(Te,pn),href:Te.url||Te.thumbUrl,target:"_blank",rel:"noopener noreferrer"},un)}const Fr=pe()(`${it}-list-item`,`${it}-list-item-${Dr}`),dt=typeof Te.linkProps=="string"?JSON.parse(Te.linkProps):Te.linkProps,Cr=lr?_t((typeof Tr=="function"?Tr(Te):Tr)||v.createElement(Ke.Z,null),()=>Gr(Te),it,kt.removeFile):null,Zr=dr&&Dr==="done"?_t((typeof kr=="function"?kr(Te):kr)||v.createElement(lt.Z,null),()=>ur(Te),it,kt.downloadFile):null,Br=yt!=="picture-card"&&yt!=="picture-circle"&&v.createElement("span",{key:"download-delete",className:pe()(`${it}-list-item-actions`,{picture:yt==="picture"})},Zr,Cr),fn=pe()(`${it}-list-item-name`),An=Te.url?[v.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:fn,title:Te.name},dt,{href:Te.url,onClick:un=>mr(Te,un)}),Te.name),Br]:[v.createElement("span",{key:"view",className:fn,onClick:un=>mr(Te,un),title:Te.name},Te.name),Br],Ir={pointerEvents:"none",opacity:.5},Ar=ir?v.createElement("a",{href:Te.url||Te.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Te.url||Te.thumbUrl?void 0:Ir,onClick:un=>mr(Te,un),title:kt.previewFile},typeof Sr=="function"?Sr(Te):Sr||v.createElement(vt.Z,null)):null,rn=(yt==="picture-card"||yt==="picture-circle")&&Dr!=="uploading"&&v.createElement("span",{className:`${it}-list-item-actions`},Ar,Dr==="done"&&Zr,Cr),{getPrefixCls:nn}=v.useContext(y.E_),sn=nn(),In=v.createElement("div",{className:Fr},Yr,An,rn,jr&&v.createElement(Re.default,{motionName:`${sn}-fade`,visible:Dr==="uploading",motionDeadline:2e3},un=>{let{className:fr}=un;const pn="percent"in Te?v.createElement(Rt.Z,Object.assign({},rt,{type:"line",percent:Te.percent,"aria-label":Te["aria-label"],"aria-labelledby":Te["aria-labelledby"]})):null;return v.createElement("div",{className:pe()(`${it}-list-item-progress`,fr)},pn)})),ai=Te.response&&typeof Te.response=="string"?Te.response:(($r=Te.error)===null||$r===void 0?void 0:$r.statusText)||((Wr=Te.error)===null||Wr===void 0?void 0:Wr.message)||kt.uploadError,Hn=Dr==="error"?v.createElement(Gt.Z,{title:ai,getPopupContainer:un=>un.parentNode},In):In;return v.createElement("div",{className:pe()(`${it}-list-item-container`,st),style:zt,ref:pt},Wt?Wt(Hn,Te,Ge,{download:ur.bind(null,Te),preview:mr.bind(null,Te),remove:Gr.bind(null,Te)}):Hn)});const nt=(Be,pt)=>{const{listType:it="text",previewFile:st=Le,onPreview:zt,onDownload:kt,onRemove:yt,locale:Te,iconRender:Ge,isImageUrl:rt=Ft,prefixCls:wt,items:_t=[],showPreviewIcon:Wt=!0,showRemoveIcon:Dt=!0,showDownloadIcon:ir=!1,removeIcon:lr,previewIcon:dr,downloadIcon:Sr,progress:Tr={size:[-1,2],showInfo:!1},appendAction:kr,appendActionVisible:mr=!0,itemRender:ur,disabled:Gr}=Be,$r=(0,M.Z)(),[Wr,Rr]=v.useState(!1);v.useEffect(()=>{it!=="picture"&&it!=="picture-card"&&it!=="picture-circle"||(_t||[]).forEach(Ir=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Ir.originFileObj instanceof File||Ir.originFileObj instanceof Blob)||Ir.thumbUrl!==void 0||(Ir.thumbUrl="",st&&st(Ir.originFileObj).then(Ar=>{Ir.thumbUrl=Ar||"",$r()}))})},[it,_t,st]),v.useEffect(()=>{Rr(!0)},[]);const Dr=(Ir,Ar)=>{if(zt)return Ar==null||Ar.preventDefault(),zt(Ir)},Pr=Ir=>{typeof kt=="function"?kt(Ir):Ir.url&&window.open(Ir.url)},jr=Ir=>{yt==null||yt(Ir)},Qr=Ir=>{if(Ge)return Ge(Ir,it);const Ar=Ir.status==="uploading",rn=rt&&rt(Ir)?v.createElement(ye,null):v.createElement(at,null);let nn=Ar?v.createElement(mt.Z,null):v.createElement(Yt,null);return it==="picture"?nn=Ar?v.createElement(mt.Z,null):rn:(it==="picture-card"||it==="picture-circle")&&(nn=Ar?Te.uploading:rn),nn},ln=(Ir,Ar,rn,nn)=>{const sn={type:"text",size:"small",title:nn,onClick:In=>{Ar(),(0,ve.l$)(Ir)&&Ir.props.onClick&&Ir.props.onClick(In)},className:`${rn}-list-item-action`,disabled:Gr};if((0,ve.l$)(Ir)){const In=(0,ve.Tm)(Ir,Object.assign(Object.assign({},Ir.props),{onClick:()=>{}}));return v.createElement(Ee.ZP,Object.assign({},sn,{icon:In}))}return v.createElement(Ee.ZP,Object.assign({},sn),v.createElement("span",null,Ir))};v.useImperativeHandle(pt,()=>({handlePreview:Dr,handleDownload:Pr}));const{getPrefixCls:Yr}=v.useContext(y.E_),Fr=Yr("upload",wt),dt=Yr(),Cr=pe()(`${Fr}-list`,`${Fr}-list-${it}`),Zr=(0,q.Z)(_t.map(Ir=>({key:Ir.uid,file:Ir})));let fn={motionDeadline:2e3,motionName:`${Fr}-${it==="picture-card"||it==="picture-circle"?"animate-inline":"animate"}`,keys:Zr,motionAppear:Wr};const An=v.useMemo(()=>{const Ir=Object.assign({},(0,se.Z)(dt));return delete Ir.onAppearEnd,delete Ir.onEnterEnd,delete Ir.onLeaveEnd,Ir},[dt]);return it!=="picture-card"&&it!=="picture-circle"&&(fn=Object.assign(Object.assign({},An),fn)),v.createElement("div",{className:Cr},v.createElement(Re.CSSMotionList,Object.assign({},fn,{component:!1}),Ir=>{let{key:Ar,file:rn,className:nn,style:sn}=Ir;return v.createElement(T,{key:Ar,locale:Te,prefixCls:Fr,className:nn,style:sn,file:rn,items:_t,progress:Tr,listType:it,isImgUrl:rt,showPreviewIcon:Wt,showRemoveIcon:Dt,showDownloadIcon:ir,removeIcon:lr,previewIcon:dr,downloadIcon:Sr,iconRender:Qr,actionIconRender:ln,itemRender:ur,onPreview:Dr,onDownload:Pr,onClose:jr})}),kr&&v.createElement(Re.default,Object.assign({},fn,{visible:mr,forceRender:!0}),Ir=>{let{className:Ar,style:rn}=Ir;return(0,ve.Tm)(kr,nn=>({className:pe()(nn.className,Ar),style:Object.assign(Object.assign(Object.assign({},rn),{pointerEvents:Ar?"none":void 0}),nn.style)}))}))};var be=v.forwardRef(nt),rr=x(17313),$e=x(8378),je=x(83116),Ze=x(37613),me=Be=>{const{componentCls:pt,iconCls:it}=Be;return{[`${pt}-wrapper`]:{[`${pt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Be.colorFillAlter,border:`${Be.lineWidth}px dashed ${Be.colorBorder}`,borderRadius:Be.borderRadiusLG,cursor:"pointer",transition:`border-color ${Be.motionDurationSlow}`,[pt]:{padding:`${Be.padding}px 0`},[`${pt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${pt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${pt}-disabled):hover`]:{borderColor:Be.colorPrimaryHover},[`p${pt}-drag-icon`]:{marginBottom:Be.margin,[it]:{color:Be.colorPrimary,fontSize:Be.uploadThumbnailSize}},[`p${pt}-text`]:{margin:`0 0 ${Be.marginXXS}px`,color:Be.colorTextHeading,fontSize:Be.fontSizeLG},[`p${pt}-hint`]:{color:Be.colorTextDescription,fontSize:Be.fontSize},[`&${pt}-disabled`]:{cursor:"not-allowed",[`p${pt}-drag-icon ${it},
p${pt}-text,
p${pt}-hint
`]:{color:Be.colorTextDisabled}}}}}},ze=Be=>{const{componentCls:pt,antCls:it,iconCls:st,fontSize:zt,lineHeight:kt}=Be,yt=`${pt}-list-item`,Te=`${yt}-actions`,Ge=`${yt}-action`,rt=Math.round(zt*kt);return{[`${pt}-wrapper`]:{[`${pt}-list`]:Object.assign(Object.assign({},(0,rr.dF)()),{lineHeight:Be.lineHeight,[yt]:{position:"relative",height:Be.lineHeight*zt,marginTop:Be.marginXS,fontSize:zt,display:"flex",alignItems:"center",transition:`background-color ${Be.motionDurationSlow}`,"&:hover":{backgroundColor:Be.controlItemBgHover},[`${yt}-name`]:Object.assign(Object.assign({},rr.vS),{padding:`0 ${Be.paddingXS}px`,lineHeight:kt,flex:"auto",transition:`all ${Be.motionDurationSlow}`}),[Te]:{[Ge]:{opacity:0},[`${Ge}${it}-btn-sm`]:{height:rt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${Ge}:focus-visible,
&.picture ${Ge}
`]:{opacity:1},[st]:{color:Be.actionsColor,transition:`all ${Be.motionDurationSlow}`},[`&:hover ${st}`]:{color:Be.colorText}},[`${pt}-icon ${st}`]:{color:Be.colorTextDescription,fontSize:zt},[`${yt}-progress`]:{position:"absolute",bottom:-Be.uploadProgressOffset,width:"100%",paddingInlineStart:zt+Be.paddingXS,fontSize:zt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${yt}:hover ${Ge}`]:{opacity:1,color:Be.colorText},[`${yt}-error`]:{color:Be.colorError,[`${yt}-name, ${pt}-icon ${st}`]:{color:Be.colorError},[Te]:{[`${st}, ${st}:hover`]:{color:Be.colorError},[Ge]:{opacity:1}}},[`${pt}-list-item-container`]:{transition:`opacity ${Be.motionDurationSlow}, height ${Be.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},K=x(93083),Bt=x(1950);const Ce=new K.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),qt=new K.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Pt=Be=>{const{componentCls:pt}=Be,it=`${pt}-animate-inline`;return[{[`${pt}-wrapper`]:{[`${it}-appear, ${it}-enter, ${it}-leave`]:{animationDuration:Be.motionDurationSlow,animationTimingFunction:Be.motionEaseInOutCirc,animationFillMode:"forwards"},[`${it}-appear, ${it}-enter`]:{animationName:Ce},[`${it}-leave`]:{animationName:qt}}},{[`${pt}-wrapper`]:(0,Bt.J$)(Be)},Ce,qt]},Ot=x(93398),xt=x(64993);const Tt=Be=>{const{componentCls:pt,iconCls:it,uploadThumbnailSize:st,uploadProgressOffset:zt}=Be,kt=`${pt}-list`,yt=`${kt}-item`;return{[`${pt}-wrapper`]:{[`
${kt}${kt}-picture,
${kt}${kt}-picture-card,
${kt}${kt}-picture-circle
`]:{[yt]:{position:"relative",height:st+Be.lineWidth*2+Be.paddingXS*2,padding:Be.paddingXS,border:`${Be.lineWidth}px ${Be.lineType} ${Be.colorBorder}`,borderRadius:Be.borderRadiusLG,"&:hover":{background:"transparent"},[`${yt}-thumbnail`]:Object.assign(Object.assign({},rr.vS),{width:st,height:st,lineHeight:`${st+Be.paddingSM}px`,textAlign:"center",flex:"none",[it]:{fontSize:Be.fontSizeHeading2,color:Be.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${yt}-progress`]:{bottom:zt,width:`calc(100% - ${Be.paddingSM*2}px)`,marginTop:0,paddingInlineStart:st+Be.paddingXS}},[`${yt}-error`]:{borderColor:Be.colorError,[`${yt}-thumbnail ${it}`]:{[`svg path[fill='${Ot.blue[0]}']`]:{fill:Be.colorErrorBg},[`svg path[fill='${Ot.blue.primary}']`]:{fill:Be.colorError}}},[`${yt}-uploading`]:{borderStyle:"dashed",[`${yt}-name`]:{marginBottom:zt}}},[`${kt}${kt}-picture-circle ${yt}`]:{[`&, &::before, ${yt}-thumbnail`]:{borderRadius:"50%"}}}}},Ie=Be=>{const{componentCls:pt,iconCls:it,fontSizeLG:st,colorTextLightSolid:zt}=Be,kt=`${pt}-list`,yt=`${kt}-item`,Te=Be.uploadPicCardSize;return{[`
${pt}-wrapper${pt}-picture-card-wrapper,
${pt}-wrapper${pt}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,rr.dF)()),{display:"inline-block",width:"100%",[`${pt}${pt}-select`]:{width:Te,height:Te,marginInlineEnd:Be.marginXS,marginBottom:Be.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Be.colorFillAlter,border:`${Be.lineWidth}px dashed ${Be.colorBorder}`,borderRadius:Be.borderRadiusLG,cursor:"pointer",transition:`border-color ${Be.motionDurationSlow}`,[`> ${pt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${pt}-disabled):hover`]:{borderColor:Be.colorPrimary}},[`${kt}${kt}-picture-card, ${kt}${kt}-picture-circle`]:{[`${kt}-item-container`]:{display:"inline-block",width:Te,height:Te,marginBlock:`0 ${Be.marginXS}px`,marginInline:`0 ${Be.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[yt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Be.paddingXS*2}px)`,height:`calc(100% - ${Be.paddingXS*2}px)`,backgroundColor:Be.colorBgMask,opacity:0,transition:`all ${Be.motionDurationSlow}`,content:'" "'}},[`${yt}:hover`]:{[`&::before, ${yt}-actions`]:{opacity:1}},[`${yt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Be.motionDurationSlow}`,[`${it}-eye, ${it}-download, ${it}-delete`]:{zIndex:10,width:st,margin:`0 ${Be.marginXXS}px`,fontSize:st,cursor:"pointer",transition:`all ${Be.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${yt}-actions, ${yt}-actions:hover`]:{[`${it}-eye, ${it}-download, ${it}-delete`]:{color:new xt.C(zt).setAlpha(.65).toRgbString(),"&:hover":{color:zt}}},[`${yt}-thumbnail, ${yt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${yt}-name`]:{display:"none",textAlign:"center"},[`${yt}-file + ${yt}-name`]:{position:"absolute",bottom:Be.margin,display:"block",width:`calc(100% - ${Be.paddingXS*2}px)`},[`${yt}-uploading`]:{[`&${yt}`]:{backgroundColor:Be.colorFillAlter},[`&::before, ${it}-eye, ${it}-download, ${it}-delete`]:{display:"none"}},[`${yt}-progress`]:{bottom:Be.marginXL,width:`calc(100% - ${Be.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${pt}-wrapper${pt}-picture-circle-wrapper`]:{[`${pt}${pt}-select`]:{borderRadius:"50%"}}}};var ct=Be=>{const{componentCls:pt}=Be;return{[`${pt}-rtl`]:{direction:"rtl"}}};const bt=Be=>{const{componentCls:pt,colorTextDisabled:it}=Be;return{[`${pt}-wrapper`]:Object.assign(Object.assign({},(0,rr.Wf)(Be)),{[pt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${pt}-select`]:{display:"inline-block"},[`${pt}-disabled`]:{color:it,cursor:"not-allowed"}})}};var et=(0,je.Z)("Upload",Be=>{const{fontSizeHeading3:pt,fontSize:it,lineHeight:st,lineWidth:zt,controlHeightLG:kt}=Be,yt=Math.round(it*st),Te=(0,Ze.TS)(Be,{uploadThumbnailSize:pt*2,uploadProgressOffset:yt/2+zt,uploadPicCardSize:kt*2.55});return[bt(Te),me(Te),Tt(Te),Ie(Te),ze(Te),Pt(Te),ct(Te),(0,$e.Z)(Te)]},Be=>({actionsColor:Be.colorTextDescription})),Nt=function(Be,pt,it,st){function zt(kt){return kt instanceof it?kt:new it(function(yt){yt(kt)})}return new(it||(it=Promise))(function(kt,yt){function Te(wt){try{rt(st.next(wt))}catch(_t){yt(_t)}}function Ge(wt){try{rt(st.throw(wt))}catch(_t){yt(_t)}}function rt(wt){wt.done?kt(wt.value):zt(wt.value).then(Te,Ge)}rt((st=st.apply(Be,pt||[])).next())})};const Vt=`__LIST_IGNORE_${Date.now()}__`,Zt=(Be,pt)=>{const{fileList:it,defaultFileList:st,onRemove:zt,showUploadList:kt=!0,listType:yt="text",onPreview:Te,onDownload:Ge,onChange:rt,onDrop:wt,previewFile:_t,disabled:Wt,locale:Dt,iconRender:ir,isImageUrl:lr,progress:dr,prefixCls:Sr,className:Tr,type:kr="select",children:mr,style:ur,itemRender:Gr,maxCount:$r,data:Wr={},multiple:Rr=!1,action:Dr="",accept:Pr="",supportServerRender:jr=!0,rootClassName:Qr}=Be,ln=v.useContext(w.Z),Yr=Wt!=null?Wt:ln,[Fr,dt]=(0,ue.Z)(st||[],{value:it,postState:Xr=>Xr!=null?Xr:[]}),[Cr,Zr]=v.useState("drop"),Br=v.useRef(null);v.useMemo(()=>{const Xr=Date.now();(it||[]).forEach((Er,bn)=>{!Er.uid&&!Object.isFrozen(Er)&&(Er.uid=`__AUTO__${Xr}_${bn}__`)})},[it]);const fn=(Xr,Er,bn)=>{let en=(0,q.Z)(Er),Jt=!1;$r===1?en=en.slice(-1):$r&&(Jt=en.length>$r,en=en.slice(0,$r)),(0,te.flushSync)(()=>{dt(en)});const gn={file:Xr,fileList:en};bn&&(gn.event=bn),(!Jt||en.some(Zn=>Zn.uid===Xr.uid))&&(0,te.flushSync)(()=>{rt==null||rt(gn)})},An=(Xr,Er)=>Nt(void 0,void 0,void 0,function*(){const{beforeUpload:bn,transformFile:en}=Be;let Jt=Xr;if(bn){const gn=yield bn(Xr,Er);if(gn===!1)return!1;if(delete Xr[Vt],gn===Vt)return Object.defineProperty(Xr,Vt,{value:!0,configurable:!0}),!1;typeof gn=="object"&&gn&&(Jt=gn)}return en&&(Jt=yield en(Jt)),Jt}),Ir=Xr=>{const Er=Xr.filter(Jt=>!Jt.file[Vt]);if(!Er.length)return;const bn=Er.map(Jt=>ke(Jt.file));let en=(0,q.Z)(Fr);bn.forEach(Jt=>{en=Fe(Jt,en)}),bn.forEach((Jt,gn)=>{let Zn=Jt;if(Er[gn].parsedFile)Jt.status="uploading";else{const{originFileObj:qn}=Jt;let En;try{En=new File([qn],qn.name,{type:qn.type})}catch(kn){En=new Blob([qn],{type:qn.type}),En.name=qn.name,En.lastModifiedDate=new Date,En.lastModified=new Date().getTime()}En.uid=Jt.uid,Zn=En}fn(Zn,en)})},Ar=(Xr,Er,bn)=>{try{typeof Xr=="string"&&(Xr=JSON.parse(Xr))}catch(gn){}if(!qe(Er,Fr))return;const en=ke(Er);en.status="done",en.percent=100,en.response=Xr,en.xhr=bn;const Jt=Fe(en,Fr);fn(en,Jt)},rn=(Xr,Er)=>{if(!qe(Er,Fr))return;const bn=ke(Er);bn.status="uploading",bn.percent=Xr.percent;const en=Fe(bn,Fr);fn(bn,en,Xr)},nn=(Xr,Er,bn)=>{if(!qe(bn,Fr))return;const en=ke(bn);en.error=Xr,en.response=Er,en.status="error";const Jt=Fe(en,Fr);fn(en,Jt)},sn=Xr=>{let Er;Promise.resolve(typeof zt=="function"?zt(Xr):zt).then(bn=>{var en;if(bn===!1)return;const Jt=gt(Xr,Fr);Jt&&(Er=Object.assign(Object.assign({},Xr),{status:"removed"}),Fr==null||Fr.forEach(gn=>{const Zn=Er.uid!==void 0?"uid":"name";gn[Zn]===Er[Zn]&&!Object.isFrozen(gn)&&(gn.status="removed")}),(en=Br.current)===null||en===void 0||en.abort(Er),fn(Er,Jt))})},In=Xr=>{Zr(Xr.type),Xr.type==="drop"&&(wt==null||wt(Xr))};v.useImperativeHandle(pt,()=>({onBatchStart:Ir,onSuccess:Ar,onProgress:rn,onError:nn,fileList:Fr,upload:Br.current}));const{getPrefixCls:ai,direction:Hn,upload:un}=v.useContext(y.E_),fr=ai("upload",Sr),pn=Object.assign(Object.assign({onBatchStart:Ir,onError:nn,onProgress:rn,onSuccess:Ar},Be),{data:Wr,multiple:Rr,action:Dr,accept:Pr,supportServerRender:jr,prefixCls:fr,disabled:Yr,beforeUpload:An,onChange:void 0});delete pn.className,delete pn.style,(!mr||Yr)&&delete pn.id;const[hn,Bn]=et(fr),[hi]=(0,Z.Z)("Upload",G.Z.Upload),{showRemoveIcon:$n,showPreviewIcon:Rn,showDownloadIcon:Gn,removeIcon:yn,previewIcon:li,downloadIcon:Nr}=typeof kt=="boolean"?{}:kt,ni=(Xr,Er)=>kt?v.createElement(be,{prefixCls:fr,listType:yt,items:Fr,previewFile:_t,onPreview:Te,onDownload:Ge,onRemove:sn,showRemoveIcon:!Yr&&$n,showPreviewIcon:Rn,showDownloadIcon:Gn,removeIcon:yn,previewIcon:li,downloadIcon:Nr,iconRender:ir,locale:Object.assign(Object.assign({},hi),Dt),isImageUrl:lr,progress:dr,appendAction:Xr,appendActionVisible:Er,itemRender:Gr,disabled:Yr}):Xr,ti=pe()(`${fr}-wrapper`,Tr,Qr,Bn,un==null?void 0:un.className,{[`${fr}-rtl`]:Hn==="rtl",[`${fr}-picture-card-wrapper`]:yt==="picture-card",[`${fr}-picture-circle-wrapper`]:yt==="picture-circle"}),Qn=Object.assign(Object.assign({},un==null?void 0:un.style),ur);if(kr==="drag"){const Xr=pe()(Bn,fr,`${fr}-drag`,{[`${fr}-drag-uploading`]:Fr.some(Er=>Er.status==="uploading"),[`${fr}-drag-hover`]:Cr==="dragover",[`${fr}-disabled`]:Yr,[`${fr}-rtl`]:Hn==="rtl"});return hn(v.createElement("span",{className:ti},v.createElement("div",{className:Xr,style:Qn,onDrop:In,onDragOver:In,onDragLeave:In},v.createElement(V,Object.assign({},pn,{ref:Br,className:`${fr}-btn`}),v.createElement("div",{className:`${fr}-drag-container`},mr))),ni()))}const cn=pe()(fr,`${fr}-select`,{[`${fr}-disabled`]:Yr}),mi=(Xr=>v.createElement("div",{className:cn,style:Xr},v.createElement(V,Object.assign({},pn,{ref:Br}))))(mr?void 0:{display:"none"});return hn(yt==="picture-card"||yt==="picture-circle"?v.createElement("span",{className:ti},ni(mi,!!mr)):v.createElement("span",{className:ti},mi,ni()))};var yr=v.forwardRef(Zt),or=function(Be,pt){var it={};for(var st in Be)Object.prototype.hasOwnProperty.call(Be,st)&&pt.indexOf(st)<0&&(it[st]=Be[st]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,st=Object.getOwnPropertySymbols(Be);zt<st.length;zt++)pt.indexOf(st[zt])<0&&Object.prototype.propertyIsEnumerable.call(Be,st[zt])&&(it[st[zt]]=Be[st[zt]]);return it},xr=v.forwardRef((Be,pt)=>{var{style:it,height:st}=Be,zt=or(Be,["style","height"]);return v.createElement(yr,Object.assign({ref:pt},zt,{type:"drag",style:Object.assign(Object.assign({},it),{height:st})}))});const zr=yr;zr.Dragger=xr,zr.LIST_IGNORE=Vt;var sr=zr},64018:function(){var nr,ot,x,v=!1,q,xe;window.PR_SHOULD_USE_CONTINUATION=!0;var pe,O;(function(){var p=window,ce=["break,continue,do,else,for,if,return,while"],oe=[ce,"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=[oe,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],ne=[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"],N=[o,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],S=[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"],b="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",A=[o,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],I="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",X=[ce,"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"],ie=[ce,"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"],P=[ce,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],B=[ne,S,N,A,I,X,ie,P],H=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,le="str",k="kwd",j="com",J="typ",Q="lit",de="pun",Se="pln",Ae="tag",Me="dec",ee="src",F="atn",Y="atv",V="nocode",ue="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function te(ge){for(var fe=0,U=!1,ye=!1,Re=0,M=ge.length;Re<M;++Re){var se=ge[Re];if(se.ignoreCase)ye=!0;else if(/[a-z]/i.test(se.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){U=!0,ye=!1;break}}var ve={b:8,t:9,n:10,v:11,f:12,r:13};function Ee(ht){var Qe=ht.charCodeAt(0);if(Qe!==92)return Qe;var Ft=ht.charAt(1);return Qe=ve[Ft],Qe||("0"<=Ft&&Ft<="7"?parseInt(ht.substring(1),8):Ft==="u"||Ft==="x"?parseInt(ht.substring(2),16):ht.charCodeAt(1))}function ke(ht){if(ht<32)return(ht<16?"\\x0":"\\x")+ht.toString(16);var Qe=String.fromCharCode(ht);return Qe==="\\"||Qe==="-"||Qe==="]"||Qe==="^"?"\\"+Qe:Qe}function Fe(ht){var Qe=ht.substring(1,ht.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")),Ft=[],Lt=Qe[0]==="^",Le=["["];Lt&&Le.push("^");for(var Ke=Lt?1:0,lt=Qe.length;Ke<lt;++Ke){var vt=Qe[Ke];if(/\\[bdsw]/i.test(vt))Le.push(vt);else{var Rt=Ee(vt),Gt;Ke+2<lt&&Qe[Ke+1]==="-"?(Gt=Ee(Qe[Ke+2]),Ke+=2):Gt=Rt,Ft.push([Rt,Gt]),Gt<65||Rt>122||(Gt<65||Rt>90||Ft.push([Math.max(65,Rt)|32,Math.min(Gt,90)|32]),Gt<97||Rt>122||Ft.push([Math.max(97,Rt)&-33,Math.min(Gt,122)&-33]))}}Ft.sort(function(W,be){return W[0]-be[0]||be[1]-W[1]});for(var E=[],T=[],Ke=0;Ke<Ft.length;++Ke){var nt=Ft[Ke];nt[0]<=T[1]+1?T[1]=Math.max(T[1],nt[1]):E.push(T=nt)}for(var Ke=0;Ke<E.length;++Ke){var nt=E[Ke];Le.push(ke(nt[0])),nt[1]>nt[0]&&(nt[1]+1>nt[0]&&Le.push("-"),Le.push(ke(nt[1])))}return Le.push("]"),Le.join("")}function qe(ht){for(var Qe=ht.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")),Ft=Qe.length,Lt=[],Le=0,Ke=0;Le<Ft;++Le){var lt=Qe[Le];if(lt==="(")++Ke;else if(lt.charAt(0)==="\\"){var vt=+lt.substring(1);vt&&(vt<=Ke?Lt[vt]=-1:Qe[Le]=ke(vt))}}for(var Le=1;Le<Lt.length;++Le)Lt[Le]===-1&&(Lt[Le]=++fe);for(var Le=0,Ke=0;Le<Ft;++Le){var lt=Qe[Le];if(lt==="(")++Ke,Lt[Ke]||(Qe[Le]="(?:");else if(lt.charAt(0)==="\\"){var vt=+lt.substring(1);vt&&vt<=Ke&&(Qe[Le]="\\"+Lt[vt])}}for(var Le=0;Le<Ft;++Le)Qe[Le]==="^"&&Qe[Le+1]!=="^"&&(Qe[Le]="");if(ht.ignoreCase&&U)for(var Le=0;Le<Ft;++Le){var lt=Qe[Le],Rt=lt.charAt(0);lt.length>=2&&Rt==="["?Qe[Le]=Fe(lt):Rt!=="\\"&&(Qe[Le]=lt.replace(/[a-zA-Z]/g,function(T){var nt=T.charCodeAt(0);return"["+String.fromCharCode(nt&-33,nt|32)+"]"}))}return Qe.join("")}for(var gt=[],Re=0,M=ge.length;Re<M;++Re){var se=ge[Re];if(se.global||se.multiline)throw new Error(""+se);gt.push("(?:"+qe(se)+")")}return new RegExp(gt.join("|"),ye?"gi":"g")}function y(ge,fe){var U=/(?:^|\s)nocode(?:\s|$)/,ye=[],Re=0,M=[],se=0;function ve(Ee){var ke=Ee.nodeType;if(ke==1){if(U.test(Ee.className))return;for(var Fe=Ee.firstChild;Fe;Fe=Fe.nextSibling)ve(Fe);var qe=Ee.nodeName.toLowerCase();(qe==="br"||qe==="li")&&(ye[se]=`
`,M[se<<1]=Re++,M[se++<<1|1]=Ee)}else if(ke==3||ke==4){var gt=Ee.nodeValue;gt.length&&(fe?gt=gt.replace(/\r\n?/g,`
`):gt=gt.replace(/[ \t\r\n]+/g," "),ye[se]=gt,M[se<<1]=Re,Re+=gt.length,M[se++<<1|1]=Ee)}}return ve(ge),{sourceCode:ye.join("").replace(/\n$/,""),spans:M}}function w(ge,fe,U,ye,Re){if(U){var M={sourceNode:ge,pre:1,langExtension:null,numberLines:null,sourceCode:U,spans:null,basePos:fe,decorations:null};ye(M),Re.push.apply(Re,M.decorations)}}var Z=/\S/;function G(ge){for(var fe=void 0,U=ge.firstChild;U;U=U.nextSibling){var ye=U.nodeType;fe=ye===1?fe?ge:U:ye===3&&Z.test(U.nodeValue)?ge:fe}return fe===ge?void 0:fe}function Pe(ge,fe){var U={},ye;(function(){for(var se=ge.concat(fe),ve=[],Ee={},ke=0,Fe=se.length;ke<Fe;++ke){var qe=se[ke],gt=qe[3];if(gt)for(var ht=gt.length;--ht>=0;)U[gt.charAt(ht)]=qe;var Qe=qe[1],Ft=""+Qe;Ee.hasOwnProperty(Ft)||(ve.push(Qe),Ee[Ft]=null)}ve.push(/[\0-\uffff]/),ye=te(ve)})();var Re=fe.length,M=function(se){for(var ve=se.sourceCode,Ee=se.basePos,ke=se.sourceNode,Fe=[Ee,Se],qe=0,gt=ve.match(ye)||[],ht={},Qe=0,Ft=gt.length;Qe<Ft;++Qe){var Lt=gt[Qe],Le=ht[Lt],Ke=void 0,lt;if(typeof Le=="string")lt=!1;else{var vt=U[Lt.charAt(0)];if(vt)Ke=Lt.match(vt[1]),Le=vt[0];else{for(var Rt=0;Rt<Re;++Rt)if(vt=fe[Rt],Ke=Lt.match(vt[1]),Ke){Le=vt[0];break}Ke||(Le=Se)}lt=Le.length>=5&&Le.substring(0,5)==="lang-",lt&&!(Ke&&typeof Ke[1]=="string")&&(lt=!1,Le=ee),lt||(ht[Lt]=Le)}var Gt=qe;if(qe+=Lt.length,!lt)Fe.push(Ee+Gt,Le);else{var E=Ke[1],T=Lt.indexOf(E),nt=T+E.length;Ke[2]&&(nt=Lt.length-Ke[2].length,T=nt-E.length);var W=Le.substring(5);w(ke,Ee+Gt,Lt.substring(0,T),M,Fe),w(ke,Ee+Gt+T,E,Ut(W,E),Fe),w(ke,Ee+Gt+nt,Lt.substring(nt),M,Fe)}}se.decorations=Fe};return M}function Ue(ge){var fe=[],U=[];ge.tripleQuotedStrings?fe.push([le,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ge.multiLineStrings?fe.push([le,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):fe.push([le,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ge.verbatimStrings&&U.push([le,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ye=ge.hashComments;ye&&(ge.cStyleComments?(ye>1?fe.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):fe.push([j,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),U.push([le,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):fe.push([j,/^#[^\r\n]*/,null,"#"])),ge.cStyleComments&&(U.push([j,/^\/\/[^\r\n]*/,null]),U.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var Re=ge.regexLiterals;if(Re){var M=Re>1?"":`
\r`,se=M?".":"[\\S\\s]",ve="/(?=[^/*"+M+"])(?:[^/\\x5B\\x5C"+M+"]|\\x5C"+se+"|\\x5B(?:[^\\x5C\\x5D"+M+"]|\\x5C"+se+")*(?:\\x5D|$))+/";U.push(["lang-regex",RegExp("^"+ue+"("+ve+")")])}var Ee=ge.types;Ee&&U.push([J,Ee]);var ke=(""+ge.keywords).replace(/^ | $/g,"");ke.length&&U.push([k,new RegExp("^(?:"+ke.replace(/[\s,]+/g,"|")+")\\b"),null]),fe.push([Se,/^\s+/,null,` \r
\xA0`]);var Fe="^.[^\\s\\w.$@'\"`/\\\\]*";return ge.regexLiterals&&(Fe+="(?!s*/)"),U.push([Q,/^@[a-z_$][a-z_$@0-9]*/i,null],[J,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[Se,/^[a-z_$][a-z_$@0-9]*/i,null],[Q,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[Se,/^\\[\s\S]?/,null],[de,new RegExp(Fe),null]),Pe(fe,U)}var Ve=Ue({keywords:B,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function Xe(ge,fe,U){for(var ye=/(?:^|\s)nocode(?:\s|$)/,Re=/\r\n?|\n/,M=ge.ownerDocument,se=M.createElement("li");ge.firstChild;)se.appendChild(ge.firstChild);var ve=[se];function Ee(Qe){var Ft=Qe.nodeType;if(Ft==1&&!ye.test(Qe.className))if(Qe.nodeName==="br")ke(Qe),Qe.parentNode&&Qe.parentNode.removeChild(Qe);else for(var Lt=Qe.firstChild;Lt;Lt=Lt.nextSibling)Ee(Lt);else if((Ft==3||Ft==4)&&U){var Le=Qe.nodeValue,Ke=Le.match(Re);if(Ke){var lt=Le.substring(0,Ke.index);Qe.nodeValue=lt;var vt=Le.substring(Ke.index+Ke[0].length);if(vt){var Rt=Qe.parentNode;Rt.insertBefore(M.createTextNode(vt),Qe.nextSibling)}ke(Qe),lt||Qe.parentNode.removeChild(Qe)}}}function ke(Qe){for(;!Qe.nextSibling;)if(Qe=Qe.parentNode,!Qe)return;function Ft(Ke,lt){var vt=lt?Ke.cloneNode(!1):Ke,Rt=Ke.parentNode;if(Rt){var Gt=Ft(Rt,1),E=Ke.nextSibling;Gt.appendChild(vt);for(var T=E;T;T=E)E=T.nextSibling,Gt.appendChild(T)}return vt}for(var Lt=Ft(Qe.nextSibling,0),Le;(Le=Lt.parentNode)&&Le.nodeType===1;)Lt=Le;ve.push(Lt)}for(var Fe=0;Fe<ve.length;++Fe)Ee(ve[Fe]);fe===(fe|0)&&ve[0].setAttribute("value",fe);var qe=M.createElement("ol");qe.className="linenums";for(var gt=Math.max(0,fe-1|0)||0,Fe=0,ht=ve.length;Fe<ht;++Fe)se=ve[Fe],se.className="L"+(Fe+gt)%10,se.firstChild||se.appendChild(M.createTextNode("\xA0")),qe.appendChild(se);ge.appendChild(qe)}function tt(ge){var fe=/\bMSIE\s(\d+)/.exec(navigator.userAgent);fe=fe&&+fe[1]<=8;var U=/\n/g,ye=ge.sourceCode,Re=ye.length,M=0,se=ge.spans,ve=se.length,Ee=0,ke=ge.decorations,Fe=ke.length,qe=0;ke[Fe]=Re;var gt,ht;for(ht=gt=0;ht<Fe;)ke[ht]!==ke[ht+2]?(ke[gt++]=ke[ht++],ke[gt++]=ke[ht++]):ht+=2;for(Fe=gt,ht=gt=0;ht<Fe;){for(var Qe=ke[ht],Ft=ke[ht+1],Lt=ht+2;Lt+2<=Fe&&ke[Lt+1]===Ft;)Lt+=2;ke[gt++]=Qe,ke[gt++]=Ft,ht=Lt}Fe=ke.length=gt;var Le=ge.sourceNode,Ke="";Le&&(Ke=Le.style.display,Le.style.display="none");try{for(var lt=null;Ee<ve;){var vt=se[Ee],Rt=se[Ee+2]||Re,Gt=ke[qe+2]||Re,Lt=Math.min(Rt,Gt),E=se[Ee+1],T;if(E.nodeType!==1&&(T=ye.substring(M,Lt))){fe&&(T=T.replace(U,"\r")),E.nodeValue=T;var nt=E.ownerDocument,W=nt.createElement("span");W.className=ke[qe+1];var be=E.parentNode;be.replaceChild(W,E),W.appendChild(E),M<Rt&&(se[Ee+1]=E=nt.createTextNode(ye.substring(Lt,Rt)),be.insertBefore(E,W.nextSibling))}M=Lt,M>=Rt&&(Ee+=2),M>=Gt&&(qe+=2)}}finally{Le&&(Le.style.display=Ke)}}var at={};function mt(ge,fe){for(var U=fe.length;--U>=0;){var ye=fe[U];at.hasOwnProperty(ye)?p.console&&console.warn("cannot override language handler %s",ye):at[ye]=ge}}function Ut(ge,fe){return ge&&at.hasOwnProperty(ge)||(ge=/^\s*</.test(fe)?"default-markup":"default-code"),at[ge]}mt(Ve,["default-code"]),mt(Pe([],[[Se,/^[^<?]+/],[Me,/^<!\w[^>]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[de,/^(?:<[%?]|[%?]>)/],["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"]),mt(Pe([[Se,/^[\s]+/,null,` \r
`],[Y,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[Ae,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[F,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[de,/^[=<>\/]+/],["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"]),mt(Pe([],[[Y,/^[\s\S]+/]]),["uq.val"]),mt(Ue({keywords:ne,hashComments:!0,cStyleComments:!0,types:H}),["c","cc","cpp","cxx","cyc","m"]),mt(Ue({keywords:"null,true,false"}),["json"]),mt(Ue({keywords:S,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:H}),["cs"]),mt(Ue({keywords:N,cStyleComments:!0}),["java"]),mt(Ue({keywords:P,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),mt(Ue({keywords:X,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),mt(Ue({keywords:I,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),mt(Ue({keywords:ie,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),mt(Ue({keywords:A,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),mt(Ue({keywords:b,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),mt(Pe([],[[le,/^[\s\S]+/]]),["regex"]);function tr(ge){var fe=ge.langExtension;try{var U=y(ge.sourceNode,ge.pre),ye=U.sourceCode;ge.sourceCode=ye,ge.spans=U.spans,ge.basePos=0,Ut(fe,ye)(ge),tt(ge)}catch(Re){p.console&&console.log(Re&&Re.stack||Re)}}function Mt(ge,fe,U){var ye=U||!1,Re=fe||null,M=document.createElement("div");M.innerHTML="<pre>"+ge+"</pre>",M=M.firstChild,ye&&Xe(M,ye,!0);var se={langExtension:Re,numberLines:ye,sourceNode:M,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return tr(se),M.innerHTML}function jt(ge,fe){var U=fe||document.body,ye=U.ownerDocument||document;function Re(vt){return U.getElementsByTagName(vt)}for(var M=[Re("pre"),Re("code"),Re("xmp")],se=[],ve=0;ve<M.length;++ve)for(var Ee=0,ke=M[ve].length;Ee<ke;++Ee)se.push(M[ve][Ee]);M=null;var Fe=Date;Fe.now||(Fe={now:function(){return+new Date}});var qe=0,gt=/\blang(?:uage)?-([\w.]+)(?!\S)/,ht=/\bprettyprint\b/,Qe=/\bprettyprinted\b/,Ft=/pre|xmp/i,Lt=/^code$/i,Le=/^(?:pre|code|xmp)$/i,Ke={};function lt(){for(var vt=p.PR_SHOULD_USE_CONTINUATION?Fe.now()+250:1/0;qe<se.length&&Fe.now()<vt;qe++){for(var Rt=se[qe],Gt=Ke,E=Rt;E=E.previousSibling;){var T=E.nodeType,nt=(T===7||T===8)&&E.nodeValue;if(nt?!/^\??prettify\b/.test(nt):T!==3||/\S/.test(E.nodeValue))break;if(nt){Gt={},nt.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Ce,qt,cr){Gt[qt]=cr});break}}var W=Rt.className;if((Gt!==Ke||ht.test(W))&&!Qe.test(W)){for(var be=!1,rr=Rt.parentNode;rr;rr=rr.parentNode){var $e=rr.tagName;if(Le.test($e)&&rr.className&&ht.test(rr.className)){be=!0;break}}if(!be){Rt.className+=" prettyprinted";var je=Gt.lang;if(!je){je=W.match(gt);var Ze;!je&&(Ze=G(Rt))&&Lt.test(Ze.tagName)&&(je=Ze.className.match(gt)),je&&(je=je[1])}var re;if(Ft.test(Rt.tagName))re=1;else{var me=Rt.currentStyle,we=ye.defaultView,ze=me?me.whiteSpace:we&&we.getComputedStyle?we.getComputedStyle(Rt,null).getPropertyValue("white-space"):0;re=ze&&ze.substring(0,3)==="pre"}var K=Gt.linenums;(K=K==="true"||+K)||(K=W.match(/\blinenums\b(?::(\d+))?/),K=K?K[1]&&K[1].length?+K[1]:!0:!1),K&&Xe(Rt,K,re);var Bt={langExtension:je,sourceNode:Rt,numberLines:K,pre:re,sourceCode:null,basePos:null,spans:null,decorations:null};tr(Bt)}}}qe<se.length?p.setTimeout(lt,250):typeof ge=="function"&&ge()}lt()}var Yt=p.PR={createSimpleLexer:Pe,registerLangHandler:mt,sourceDecorator:Ue,PR_ATTRIB_NAME:F,PR_ATTRIB_VALUE:Y,PR_COMMENT:j,PR_DECLARATION:Me,PR_KEYWORD:k,PR_LITERAL:Q,PR_NOCODE:V,PR_PLAIN:Se,PR_PUNCTUATION:de,PR_SOURCE:ee,PR_STRING:le,PR_TAG:Ae,PR_TYPE:J,prettyPrintOne:v?p.prettyPrintOne=Mt:pe=Mt,prettyPrint:O=v?p.prettyPrint=jt:O=jt},er=p.define;typeof er=="function"&&er.amd&&er("google-code-prettify",[],function(){return Yt})})()},25769:function(nr,ot,x){"use strict";var v=x(98040),q={"text/plain":"Text","text/html":"Url",default:"Text"},xe="Copy to clipboard: #{key}, Enter";function pe(p){var ce=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return p.replace(/#{\s*key\s*}/g,ce)}function O(p,ce){var oe,o,ne,N,S,b,A=!1;ce||(ce={}),oe=ce.debug||!1;try{ne=v(),N=document.createRange(),S=document.getSelection(),b=document.createElement("span"),b.textContent=p,b.ariaHidden="true",b.style.all="unset",b.style.position="fixed",b.style.top=0,b.style.clip="rect(0, 0, 0, 0)",b.style.whiteSpace="pre",b.style.webkitUserSelect="text",b.style.MozUserSelect="text",b.style.msUserSelect="text",b.style.userSelect="text",b.addEventListener("copy",function(X){if(X.stopPropagation(),ce.format)if(X.preventDefault(),typeof X.clipboardData=="undefined"){oe&&console.warn("unable to use e.clipboardData"),oe&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var ie=q[ce.format]||q.default;window.clipboardData.setData(ie,p)}else X.clipboardData.clearData(),X.clipboardData.setData(ce.format,p);ce.onCopy&&(X.preventDefault(),ce.onCopy(X.clipboardData))}),document.body.appendChild(b),N.selectNodeContents(b),S.addRange(N);var I=document.execCommand("copy");if(!I)throw new Error("copy command was unsuccessful");A=!0}catch(X){oe&&console.error("unable to copy using execCommand: ",X),oe&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(ce.format||"text",p),ce.onCopy&&ce.onCopy(window.clipboardData),A=!0}catch(ie){oe&&console.error("unable to copy using clipboardData: ",ie),oe&&console.error("falling back to prompt"),o=pe("message"in ce?ce.message:xe),window.prompt(o,p)}}finally{S&&(typeof S.removeRange=="function"?S.removeRange(N):S.removeAllRanges()),b&&document.body.removeChild(b),ne()}return A}nr.exports=O},53184:function(nr,ot,x){"use strict";var v,q;function xe(pe,O,p){var ce=function(oe,o){return pe.js_beautify(oe,o)};return ce.js=pe.js_beautify,ce.css=O.css_beautify,ce.html=p.html_beautify,ce.js_beautify=pe.js_beautify,ce.css_beautify=O.css_beautify,ce.html_beautify=p.html_beautify,ce}v=[x(58553),x(87804),x(40998)],q=function(pe,O,p){return xe(pe,O,p)}.apply(ot,v),q!==void 0&&(nr.exports=q)},87804:function(nr,ot){var x,v;(function(){var q;(function(){"use strict";var pe=[,,function(oe){function o(S){this.__parent=S,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 S=new o(this.__parent);return S.set_indent(this.__indent_count,this.__alignment_count),S},o.prototype.item=function(S){return S<0?this.__items[this.__items.length+S]:this.__items[S]},o.prototype.has_match=function(S){for(var b=this.__items.length-1;b>=0;b--)if(this.__items[b].match(S))return!0;return!1},o.prototype.set_indent=function(S,b){this.is_empty()&&(this.__indent_count=S||0,this.__alignment_count=b||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 S=this.__parent.current_line;return S.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),S.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),S.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,S.__items[0]===" "&&(S.__items.splice(0,1),S.__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(S){this.__items.push(S);var b=S.lastIndexOf(`
`);b!==-1?this.__character_count=S.length-b:this.__character_count+=S.length},o.prototype.pop=function(){var S=null;return this.is_empty()||(S=this.__items.pop(),this.__character_count-=S.length),S},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 S="";return this.is_empty()?this.__parent.indent_empty_lines&&(S=this.__parent.get_indent_string(this.__indent_count)):(S=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),S+=this.__items.join("")),S};function ne(S,b){this.__cache=[""],this.__indent_size=S.indent_size,this.__indent_string=S.indent_char,S.indent_with_tabs||(this.__indent_string=new Array(S.indent_size+1).join(S.indent_char)),b=b||"",S.indent_level>0&&(b=new Array(S.indent_level+1).join(this.__indent_string)),this.__base_string=b,this.__base_string_length=b.length}ne.prototype.get_indent_size=function(S,b){var A=this.__base_string_length;return b=b||0,S<0&&(A=0),A+=S*this.__indent_size,A+=b,A},ne.prototype.get_indent_string=function(S,b){var A=this.__base_string;return b=b||0,S<0&&(S=0,A=""),b+=S*this.__indent_size,this.__ensure_cache(b),A+=this.__cache[b],A},ne.prototype.__ensure_cache=function(S){for(;S>=this.__cache.length;)this.__add_column()},ne.prototype.__add_column=function(){var S=this.__cache.length,b=0,A="";this.__indent_size&&S>=this.__indent_size&&(b=Math.floor(S/this.__indent_size),S-=b*this.__indent_size,A=new Array(b+1).join(this.__indent_string)),S&&(A+=new Array(S+1).join(" ")),this.__cache.push(A)};function N(S,b){this.__indent_cache=new ne(S,b),this.raw=!1,this._end_with_newline=S.end_with_newline,this.indent_size=S.indent_size,this.wrap_line_length=S.wrap_line_length,this.indent_empty_lines=S.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()}N.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},N.prototype.get_line_number=function(){return this.__lines.length},N.prototype.get_indent_string=function(S,b){return this.__indent_cache.get_indent_string(S,b)},N.prototype.get_indent_size=function(S,b){return this.__indent_cache.get_indent_size(S,b)},N.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},N.prototype.add_new_line=function(S){return this.is_empty()||!S&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},N.prototype.get_code=function(S){this.trim(!0);var b=this.current_line.pop();b&&(b[b.length-1]===`
`&&(b=b.replace(/\n+$/g,"")),this.current_line.push(b)),this._end_with_newline&&this.__add_outputline();var A=this.__lines.join(`
`);return S!==`
`&&(A=A.replace(/[\n]/g,S)),A},N.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},N.prototype.set_indent=function(S,b){return S=S||0,b=b||0,this.next_line.set_indent(S,b),this.__lines.length>1?(this.current_line.set_indent(S,b),!0):(this.current_line.set_indent(),!1)},N.prototype.add_raw_token=function(S){for(var b=0;b<S.newlines;b++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(S.whitespace_before),this.current_line.push(S.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},N.prototype.add_token=function(S){this.__add_space_before_token(),this.current_line.push(S),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},N.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(" "))},N.prototype.remove_indent=function(S){for(var b=this.__lines.length;S<b;)this.__lines[S]._remove_indent(),S++;this.current_line._remove_wrap_indent()},N.prototype.trim=function(S){for(S=S===void 0?!1:S,this.current_line.trim();S&&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},N.prototype.just_added_newline=function(){return this.current_line.is_empty()},N.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},N.prototype.ensure_empty_line_above=function(S,b){for(var A=this.__lines.length-2;A>=0;){var I=this.__lines[A];if(I.is_empty())break;if(I.item(0).indexOf(S)!==0&&I.item(-1)!==b){this.__lines.splice(A+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}A--}},oe.exports.Output=N},,,,function(oe){function o(S,b){this.raw_options=ne(S,b),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(S,b){var A=this.raw_options[S],I=b||[];return typeof A=="object"?A!==null&&typeof A.concat=="function"&&(I=A.concat()):typeof A=="string"&&(I=A.split(/[^a-zA-Z0-9_\/\-]+/)),I},o.prototype._get_boolean=function(S,b){var A=this.raw_options[S],I=A===void 0?!!b:!!A;return I},o.prototype._get_characters=function(S,b){var A=this.raw_options[S],I=b||"";return typeof A=="string"&&(I=A.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),I},o.prototype._get_number=function(S,b){var A=this.raw_options[S];b=parseInt(b,10),isNaN(b)&&(b=0);var I=parseInt(A,10);return isNaN(I)&&(I=b),I},o.prototype._get_selection=function(S,b,A){var I=this._get_selection_list(S,b,A);if(I.length!==1)throw new Error("Invalid Option Value: The option '"+S+`' can only be one of the following values:
`+b+`
You passed in: '`+this.raw_options[S]+"'");return I[0]},o.prototype._get_selection_list=function(S,b,A){if(!b||b.length===0)throw new Error("Selection list cannot be empty.");if(A=A||[b[0]],!this._is_valid_selection(A,b))throw new Error("Invalid Default Value!");var I=this._get_array(S,A);if(!this._is_valid_selection(I,b))throw new Error("Invalid Option Value: The option '"+S+`' can contain only the following values:
`+b+`
You passed in: '`+this.raw_options[S]+"'");return I},o.prototype._is_valid_selection=function(S,b){return S.length&&b.length&&!S.some(function(A){return b.indexOf(A)===-1})};function ne(S,b){var A={};S=N(S);var I;for(I in S)I!==b&&(A[I]=S[I]);if(b&&S[b])for(I in S[b])A[I]=S[b][I];return A}function N(S){var b={},A;for(A in S){var I=A.replace(/-/g,"_");b[I]=S[A]}return b}oe.exports.Options=o,oe.exports.normalizeOpts=N,oe.exports.mergeOpts=ne},,function(oe){var o=RegExp.prototype.hasOwnProperty("sticky");function ne(N){this.__input=N||"",this.__input_length=this.__input.length,this.__position=0}ne.prototype.restart=function(){this.__position=0},ne.prototype.back=function(){this.__position>0&&(this.__position-=1)},ne.prototype.hasNext=function(){return this.__position<this.__input_length},ne.prototype.next=function(){var N=null;return this.hasNext()&&(N=this.__input.charAt(this.__position),this.__position+=1),N},ne.prototype.peek=function(N){var S=null;return N=N||0,N+=this.__position,N>=0&&N<this.__input_length&&(S=this.__input.charAt(N)),S},ne.prototype.__match=function(N,S){N.lastIndex=S;var b=N.exec(this.__input);return b&&!(o&&N.sticky)&&b.index!==S&&(b=null),b},ne.prototype.test=function(N,S){return S=S||0,S+=this.__position,S>=0&&S<this.__input_length?!!this.__match(N,S):!1},ne.prototype.testChar=function(N,S){var b=this.peek(S);return N.lastIndex=0,b!==null&&N.test(b)},ne.prototype.match=function(N){var S=this.__match(N,this.__position);return S?this.__position+=S[0].length:S=null,S},ne.prototype.read=function(N,S,b){var A="",I;return N&&(I=this.match(N),I&&(A+=I[0])),S&&(I||!N)&&(A+=this.readUntil(S,b)),A},ne.prototype.readUntil=function(N,S){var b="",A=this.__position;N.lastIndex=this.__position;var I=N.exec(this.__input);return I?(A=I.index,S&&(A+=I[0].length)):A=this.__input_length,b=this.__input.substring(this.__position,A),this.__position=A,b},ne.prototype.readUntilAfter=function(N){return this.readUntil(N,!0)},ne.prototype.get_regexp=function(N,S){var b=null,A="g";return S&&o&&(A="y"),typeof N=="string"&&N!==""?b=new RegExp(N,A):N&&(b=new RegExp(N.source,A)),b},ne.prototype.get_literal_regexp=function(N){return RegExp(N.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},ne.prototype.peekUntilAfter=function(N){var S=this.__position,b=this.readUntilAfter(N);return this.__position=S,b},ne.prototype.lookBack=function(N){var S=this.__position-1;return S>=N.length&&this.__input.substring(S-N.length,S).toLowerCase()===N},oe.exports.InputScanner=ne},,,,,function(oe){function o(ne,N){ne=typeof ne=="string"?ne:ne.source,N=typeof N=="string"?N:N.source,this.__directives_block_pattern=new RegExp(ne+/ beautify( \w+[:]\w+)+ /.source+N,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(ne+/\sbeautify\signore:end\s/.source+N,"g")}o.prototype.get_directives=function(ne){if(!ne.match(this.__directives_block_pattern))return null;var N={};this.__directive_pattern.lastIndex=0;for(var S=this.__directive_pattern.exec(ne);S;)N[S[1]]=S[2],S=this.__directive_pattern.exec(ne);return N},o.prototype.readIgnored=function(ne){return ne.readUntilAfter(this.__directives_end_ignore_pattern)},oe.exports.Directives=o},,function(oe,o,ne){var N=ne(16).Beautifier,S=ne(17).Options;function b(A,I){var X=new N(A,I);return X.beautify()}oe.exports=b,oe.exports.defaultOptions=function(){return new S}},function(oe,o,ne){var N=ne(17).Options,S=ne(2).Output,b=ne(8).InputScanner,A=ne(13).Directives,I=new A(/\/\*/,/\*\//),X=/\r\n|[\r\n]/,ie=/\r\n|[\r\n]/g,P=/\s/,B=/(?:\s|\n)+/g,H=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,le=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function k(j,J){this._source_text=j||"",this._options=new N(J),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"]}k.prototype.eatString=function(j){var J="";for(this._ch=this._input.next();this._ch;){if(J+=this._ch,this._ch==="\\")J+=this._input.next();else if(j.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return J},k.prototype.eatWhitespace=function(j){for(var J=P.test(this._input.peek()),Q=0;P.test(this._input.peek());)this._ch=this._input.next(),j&&this._ch===`
`&&(Q===0||Q<this._options.max_preserve_newlines)&&(Q++,this._output.add_new_line(!0));return J},k.prototype.foundNestedPseudoClass=function(){for(var j=0,J=1,Q=this._input.peek(J);Q;){if(Q==="{")return!0;if(Q==="(")j+=1;else if(Q===")"){if(j===0)return!1;j-=1}else if(Q===";"||Q==="}")return!1;J++,Q=this._input.peek(J)}return!1},k.prototype.print_string=function(j){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(j)},k.prototype.preserveSingleSpace=function(j){j&&(this._output.space_before_token=!0)},k.prototype.indent=function(){this._indentLevel++},k.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},k.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var j=this._source_text,J=this._options.eol;J==="auto"&&(J=`
`,j&&X.test(j||"")&&(J=j.match(X)[0])),j=j.replace(ie,`
`);var Q=j.match(/^[\t ]*/)[0];this._output=new S(this._options,Q),this._input=new b(j),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var de=0,Se=!1,Ae=!1,Me=!1,ee=!1,F=!1,Y=this._ch,V=!1,ue,te,y;ue=this._input.read(B),te=ue!=="",y=Y,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),Y=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var w=this._input.read(H),Z=I.get_directives(w);Z&&Z.ignore==="start"&&(w+=I.readIgnored(this._input)),this.print_string(w),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(le)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(te),this.print_string(this._ch);var G=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);G.match(/[ :]$/)&&(G=this.eatString(": ").replace(/\s+$/,""),this.print_string(G),this._output.space_before_token=!0),de===0&&G.indexOf(":")!==-1&&(Ae=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(te),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var Pe=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);Pe.match(/[ :]$/)&&(Pe=this.eatString(": ").replace(/\s+$/,""),this.print_string(Pe),this._output.space_before_token=!0),de===0&&Pe.indexOf(":")!==-1?(Ae=!0,this.indent()):Pe in this.NESTED_AT_RULE?(this._nestedLevel+=1,Pe in this.CONDITIONAL_GROUP_RULE&&(Me=!0)):de===0&&!Ae&&(ee=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(te),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")Ae&&(Ae=!1,this.outdent()),ee=!1,Me?(Me=!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)):(y==="("?this._output.space_before_token=!1:y!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),y==="{"&&this._output.trim(!0),Ae&&(this.outdent(),Ae=!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 Ue=0;Ue<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;Ue++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[Ue])){V=!0;break}(Se||Me)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!ee&&de===0?(this.print_string(":"),Ae||(Ae=!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 Ve=y==='"'||y==="'";this.preserveSingleSpace(Ve||te),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")V=!1,de===0?(Ae&&(this.outdent(),Ae=!1),ee=!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(),de++,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(")")),de&&(de--,this.outdent()));else{var Xe=!1;this._input.lookBack("with")&&(Xe=!0),this.preserveSingleSpace(te||Xe),this.print_string(this._ch),Ae&&y==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),F=!0):(this.eatWhitespace(),de++,this.indent())}else if(this._ch===")")de&&(de--,this.outdent()),F&&this._input.peek()===";"&&this._options.selector_separator_newline&&(F=!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&&(!Ae||F)&&de===0&&!ee?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!Ae&&de===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&&P.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(te),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),P.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 tt=y==='"'||y==="'";this.preserveSingleSpace(tt||te),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
`&&V&&this._output.add_new_line()}var at=this._output.get_code(J);return at},oe.exports.Beautifier=k},function(oe,o,ne){var N=ne(6).Options;function S(b){N.call(this,b,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var A=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||A;var I=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var X=0;X<I.length;X++)I[X]!=="expand"?this.brace_style="collapse":this.brace_style=I[X]}S.prototype=new N,oe.exports.Options=S}],O={};function p(oe){var o=O[oe];if(o!==void 0)return o.exports;var ne=O[oe]={exports:{}};return pe[oe](ne,ne.exports,p),ne.exports}var ce=p(15);q=ce})();var xe=q;x=[],v=function(){return{css_beautify:xe}}.apply(ot,x),v!==void 0&&(nr.exports=v)})()},40998:function(nr,ot,x){var v,q;(function(){var xe;(function(){"use strict";var ce=[,,function(N){function S(I){this.__parent=I,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}S.prototype.clone_empty=function(){var I=new S(this.__parent);return I.set_indent(this.__indent_count,this.__alignment_count),I},S.prototype.item=function(I){return I<0?this.__items[this.__items.length+I]:this.__items[I]},S.prototype.has_match=function(I){for(var X=this.__items.length-1;X>=0;X--)if(this.__items[X].match(I))return!0;return!1},S.prototype.set_indent=function(I,X){this.is_empty()&&(this.__indent_count=I||0,this.__alignment_count=X||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},S.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)},S.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},S.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var I=this.__parent.current_line;return I.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),I.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),I.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,I.__items[0]===" "&&(I.__items.splice(0,1),I.__character_count-=1),!0}return!1},S.prototype.is_empty=function(){return this.__items.length===0},S.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},S.prototype.push=function(I){this.__items.push(I);var X=I.lastIndexOf(`
`);X!==-1?this.__character_count=I.length-X:this.__character_count+=I.length},S.prototype.pop=function(){var I=null;return this.is_empty()||(I=this.__items.pop(),this.__character_count-=I.length),I},S.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},S.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},S.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},S.prototype.toString=function(){var I="";return this.is_empty()?this.__parent.indent_empty_lines&&(I=this.__parent.get_indent_string(this.__indent_count)):(I=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),I+=this.__items.join("")),I};function b(I,X){this.__cache=[""],this.__indent_size=I.indent_size,this.__indent_string=I.indent_char,I.indent_with_tabs||(this.__indent_string=new Array(I.indent_size+1).join(I.indent_char)),X=X||"",I.indent_level>0&&(X=new Array(I.indent_level+1).join(this.__indent_string)),this.__base_string=X,this.__base_string_length=X.length}b.prototype.get_indent_size=function(I,X){var ie=this.__base_string_length;return X=X||0,I<0&&(ie=0),ie+=I*this.__indent_size,ie+=X,ie},b.prototype.get_indent_string=function(I,X){var ie=this.__base_string;return X=X||0,I<0&&(I=0,ie=""),X+=I*this.__indent_size,this.__ensure_cache(X),ie+=this.__cache[X],ie},b.prototype.__ensure_cache=function(I){for(;I>=this.__cache.length;)this.__add_column()},b.prototype.__add_column=function(){var I=this.__cache.length,X=0,ie="";this.__indent_size&&I>=this.__indent_size&&(X=Math.floor(I/this.__indent_size),I-=X*this.__indent_size,ie=new Array(X+1).join(this.__indent_string)),I&&(ie+=new Array(I+1).join(" ")),this.__cache.push(ie)};function A(I,X){this.__indent_cache=new b(I,X),this.raw=!1,this._end_with_newline=I.end_with_newline,this.indent_size=I.indent_size,this.wrap_line_length=I.wrap_line_length,this.indent_empty_lines=I.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new S(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}A.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},A.prototype.get_line_number=function(){return this.__lines.length},A.prototype.get_indent_string=function(I,X){return this.__indent_cache.get_indent_string(I,X)},A.prototype.get_indent_size=function(I,X){return this.__indent_cache.get_indent_size(I,X)},A.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},A.prototype.add_new_line=function(I){return this.is_empty()||!I&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},A.prototype.get_code=function(I){this.trim(!0);var X=this.current_line.pop();X&&(X[X.length-1]===`
`&&(X=X.replace(/\n+$/g,"")),this.current_line.push(X)),this._end_with_newline&&this.__add_outputline();var ie=this.__lines.join(`
`);return I!==`
`&&(ie=ie.replace(/[\n]/g,I)),ie},A.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},A.prototype.set_indent=function(I,X){return I=I||0,X=X||0,this.next_line.set_indent(I,X),this.__lines.length>1?(this.current_line.set_indent(I,X),!0):(this.current_line.set_indent(),!1)},A.prototype.add_raw_token=function(I){for(var X=0;X<I.newlines;X++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(I.whitespace_before),this.current_line.push(I.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},A.prototype.add_token=function(I){this.__add_space_before_token(),this.current_line.push(I),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},A.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},A.prototype.remove_indent=function(I){for(var X=this.__lines.length;I<X;)this.__lines[I]._remove_indent(),I++;this.current_line._remove_wrap_indent()},A.prototype.trim=function(I){for(I=I===void 0?!1:I,this.current_line.trim();I&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},A.prototype.just_added_newline=function(){return this.current_line.is_empty()},A.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},A.prototype.ensure_empty_line_above=function(I,X){for(var ie=this.__lines.length-2;ie>=0;){var P=this.__lines[ie];if(P.is_empty())break;if(P.item(0).indexOf(I)!==0&&P.item(-1)!==X){this.__lines.splice(ie+1,0,new S(this)),this.previous_line=this.__lines[this.__lines.length-2];break}ie--}},N.exports.Output=A},function(N){function S(b,A,I,X){this.type=b,this.text=A,this.comments_before=null,this.newlines=I||0,this.whitespace_before=X||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}N.exports.Token=S},,,function(N){function S(I,X){this.raw_options=b(I,X),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"])}S.prototype._get_array=function(I,X){var ie=this.raw_options[I],P=X||[];return typeof ie=="object"?ie!==null&&typeof ie.concat=="function"&&(P=ie.concat()):typeof ie=="string"&&(P=ie.split(/[^a-zA-Z0-9_\/\-]+/)),P},S.prototype._get_boolean=function(I,X){var ie=this.raw_options[I],P=ie===void 0?!!X:!!ie;return P},S.prototype._get_characters=function(I,X){var ie=this.raw_options[I],P=X||"";return typeof ie=="string"&&(P=ie.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),P},S.prototype._get_number=function(I,X){var ie=this.raw_options[I];X=parseInt(X,10),isNaN(X)&&(X=0);var P=parseInt(ie,10);return isNaN(P)&&(P=X),P},S.prototype._get_selection=function(I,X,ie){var P=this._get_selection_list(I,X,ie);if(P.length!==1)throw new Error("Invalid Option Value: The option '"+I+`' can only be one of the following values:
`+X+`
You passed in: '`+this.raw_options[I]+"'");return P[0]},S.prototype._get_selection_list=function(I,X,ie){if(!X||X.length===0)throw new Error("Selection list cannot be empty.");if(ie=ie||[X[0]],!this._is_valid_selection(ie,X))throw new Error("Invalid Default Value!");var P=this._get_array(I,ie);if(!this._is_valid_selection(P,X))throw new Error("Invalid Option Value: The option '"+I+`' can contain only the following values:
`+X+`
You passed in: '`+this.raw_options[I]+"'");return P},S.prototype._is_valid_selection=function(I,X){return I.length&&X.length&&!I.some(function(ie){return X.indexOf(ie)===-1})};function b(I,X){var ie={};I=A(I);var P;for(P in I)P!==X&&(ie[P]=I[P]);if(X&&I[X])for(P in I[X])ie[P]=I[X][P];return ie}function A(I){var X={},ie;for(ie in I){var P=ie.replace(/-/g,"_");X[P]=I[ie]}return X}N.exports.Options=S,N.exports.normalizeOpts=A,N.exports.mergeOpts=b},,function(N){var S=RegExp.prototype.hasOwnProperty("sticky");function b(A){this.__input=A||"",this.__input_length=this.__input.length,this.__position=0}b.prototype.restart=function(){this.__position=0},b.prototype.back=function(){this.__position>0&&(this.__position-=1)},b.prototype.hasNext=function(){return this.__position<this.__input_length},b.prototype.next=function(){var A=null;return this.hasNext()&&(A=this.__input.charAt(this.__position),this.__position+=1),A},b.prototype.peek=function(A){var I=null;return A=A||0,A+=this.__position,A>=0&&A<this.__input_length&&(I=this.__input.charAt(A)),I},b.prototype.__match=function(A,I){A.lastIndex=I;var X=A.exec(this.__input);return X&&!(S&&A.sticky)&&X.index!==I&&(X=null),X},b.prototype.test=function(A,I){return I=I||0,I+=this.__position,I>=0&&I<this.__input_length?!!this.__match(A,I):!1},b.prototype.testChar=function(A,I){var X=this.peek(I);return A.lastIndex=0,X!==null&&A.test(X)},b.prototype.match=function(A){var I=this.__match(A,this.__position);return I?this.__position+=I[0].length:I=null,I},b.prototype.read=function(A,I,X){var ie="",P;return A&&(P=this.match(A),P&&(ie+=P[0])),I&&(P||!A)&&(ie+=this.readUntil(I,X)),ie},b.prototype.readUntil=function(A,I){var X="",ie=this.__position;A.lastIndex=this.__position;var P=A.exec(this.__input);return P?(ie=P.index,I&&(ie+=P[0].length)):ie=this.__input_length,X=this.__input.substring(this.__position,ie),this.__position=ie,X},b.prototype.readUntilAfter=function(A){return this.readUntil(A,!0)},b.prototype.get_regexp=function(A,I){var X=null,ie="g";return I&&S&&(ie="y"),typeof A=="string"&&A!==""?X=new RegExp(A,ie):A&&(X=new RegExp(A.source,ie)),X},b.prototype.get_literal_regexp=function(A){return RegExp(A.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},b.prototype.peekUntilAfter=function(A){var I=this.__position,X=this.readUntilAfter(A);return this.__position=I,X},b.prototype.lookBack=function(A){var I=this.__position-1;return I>=A.length&&this.__input.substring(I-A.length,I).toLowerCase()===A},N.exports.InputScanner=b},function(N,S,b){var A=b(8).InputScanner,I=b(3).Token,X=b(10).TokenStream,ie=b(11).WhitespacePattern,P={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},B=function(H,le){this._input=new A(H),this._options=le||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new ie(this._input)};B.prototype.tokenize=function(){this._input.restart(),this.__tokens=new X,this._reset();for(var H,le=new I(P.START,""),k=null,j=[],J=new X;le.type!==P.EOF;){for(H=this._get_next_token(le,k);this._is_comment(H);)J.add(H),H=this._get_next_token(le,k);J.isEmpty()||(H.comments_before=J,J=new X),H.parent=k,this._is_opening(H)?(j.push(k),k=H):k&&this._is_closing(H,k)&&(H.opened=k,k.closed=H,k=j.pop(),H.parent=k),H.previous=le,le.next=H,this.__tokens.add(H),le=H}return this.__tokens},B.prototype._is_first_token=function(){return this.__tokens.isEmpty()},B.prototype._reset=function(){},B.prototype._get_next_token=function(H,le){this._readWhitespace();var k=this._input.read(/.+/g);return k?this._create_token(P.RAW,k):this._create_token(P.EOF,"")},B.prototype._is_comment=function(H){return!1},B.prototype._is_opening=function(H){return!1},B.prototype._is_closing=function(H,le){return!1},B.prototype._create_token=function(H,le){var k=new I(H,le,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return k},B.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},N.exports.Tokenizer=B,N.exports.TOKEN=P},function(N){function S(b){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=b}S.prototype.restart=function(){this.__position=0},S.prototype.isEmpty=function(){return this.__tokens_length===0},S.prototype.hasNext=function(){return this.__position<this.__tokens_length},S.prototype.next=function(){var b=null;return this.hasNext()&&(b=this.__tokens[this.__position],this.__position+=1),b},S.prototype.peek=function(b){var A=null;return b=b||0,b+=this.__position,b>=0&&b<this.__tokens_length&&(A=this.__tokens[b]),A},S.prototype.add=function(b){this.__parent_token&&(b.parent=this.__parent_token),this.__tokens.push(b),this.__tokens_length+=1},N.exports.TokenStream=S},function(N,S,b){var A=b(12).Pattern;function I(X,ie){A.call(this,X,ie),ie?this._line_regexp=this._input.get_regexp(ie._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}I.prototype=new A,I.prototype.__set_whitespace_patterns=function(X,ie){X+="\\t ",ie+="\\n\\r",this._match_pattern=this._input.get_regexp("["+X+ie+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+ie+"]")},I.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var X=this._input.read(this._match_pattern);if(X===" ")this.whitespace_before_token=" ";else if(X){var ie=this.__split(this._newline_regexp,X);this.newline_count=ie.length-1,this.whitespace_before_token=ie[this.newline_count]}return X},I.prototype.matching=function(X,ie){var P=this._create();return P.__set_whitespace_patterns(X,ie),P._update(),P},I.prototype._create=function(){return new I(this._input,this)},I.prototype.__split=function(X,ie){X.lastIndex=0;for(var P=0,B=[],H=X.exec(ie);H;)B.push(ie.substring(P,H.index)),P=H.index+H[0].length,H=X.exec(ie);return P<ie.length?B.push(ie.substring(P,ie.length)):B.push(""),B},N.exports.WhitespacePattern=I},function(N){function S(b,A){this._input=b,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,A&&(this._starting_pattern=this._input.get_regexp(A._starting_pattern,!0),this._match_pattern=this._input.get_regexp(A._match_pattern,!0),this._until_pattern=this._input.get_regexp(A._until_pattern),this._until_after=A._until_after)}S.prototype.read=function(){var b=this._input.read(this._starting_pattern);return(!this._starting_pattern||b)&&(b+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),b},S.prototype.read_match=function(){return this._input.match(this._match_pattern)},S.prototype.until_after=function(b){var A=this._create();return A._until_after=!0,A._until_pattern=this._input.get_regexp(b),A._update(),A},S.prototype.until=function(b){var A=this._create();return A._until_after=!1,A._until_pattern=this._input.get_regexp(b),A._update(),A},S.prototype.starting_with=function(b){var A=this._create();return A._starting_pattern=this._input.get_regexp(b,!0),A._update(),A},S.prototype.matching=function(b){var A=this._create();return A._match_pattern=this._input.get_regexp(b,!0),A._update(),A},S.prototype._create=function(){return new S(this._input,this)},S.prototype._update=function(){},N.exports.Pattern=S},function(N){function S(b,A){b=typeof b=="string"?b:b.source,A=typeof A=="string"?A:A.source,this.__directives_block_pattern=new RegExp(b+/ beautify( \w+[:]\w+)+ /.source+A,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(b+/\sbeautify\signore:end\s/.source+A,"g")}S.prototype.get_directives=function(b){if(!b.match(this.__directives_block_pattern))return null;var A={};this.__directive_pattern.lastIndex=0;for(var I=this.__directive_pattern.exec(b);I;)A[I[1]]=I[2],I=this.__directive_pattern.exec(b);return A},S.prototype.readIgnored=function(b){return b.readUntilAfter(this.__directives_end_ignore_pattern)},N.exports.Directives=S},function(N,S,b){var A=b(12).Pattern,I={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function X(ie,P){A.call(this,ie,P),this.__template_pattern=null,this._disabled=Object.assign({},I),this._excluded=Object.assign({},I),P&&(this.__template_pattern=this._input.get_regexp(P.__template_pattern),this._excluded=Object.assign(this._excluded,P._excluded),this._disabled=Object.assign(this._disabled,P._disabled));var B=new A(ie);this.__patterns={handlebars_comment:B.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:B.starting_with(/{{{/).until_after(/}}}/),handlebars:B.starting_with(/{{/).until_after(/}}/),php:B.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:B.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:B.starting_with(/{%/).until_after(/%}/),django_value:B.starting_with(/{{/).until_after(/}}/),django_comment:B.starting_with(/{#/).until_after(/#}/),smarty:B.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:B.starting_with(/{\*/).until_after(/\*}/),smarty_literal:B.starting_with(/{literal}/).until_after(/{\/literal}/)}}X.prototype=new A,X.prototype._create=function(){return new X(this._input,this)},X.prototype._update=function(){this.__set_templated_pattern()},X.prototype.disable=function(ie){var P=this._create();return P._disabled[ie]=!0,P._update(),P},X.prototype.read_options=function(ie){var P=this._create();for(var B in I)P._disabled[B]=ie.templating.indexOf(B)===-1;return P._update(),P},X.prototype.exclude=function(ie){var P=this._create();return P._excluded[ie]=!0,P._update(),P},X.prototype.read=function(){var ie="";this._match_pattern?ie=this._input.read(this._starting_pattern):ie=this._input.read(this._starting_pattern,this.__template_pattern);for(var P=this._read_template();P;)this._match_pattern?P+=this._input.read(this._match_pattern):P+=this._input.readUntil(this.__template_pattern),ie+=P,P=this._read_template();return this._until_after&&(ie+=this._input.readUntilAfter(this._until_pattern)),ie},X.prototype.__set_templated_pattern=function(){var ie=[];this._disabled.php||ie.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||ie.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||ie.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||ie.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(ie.push(this.__patterns.django._starting_pattern.source),ie.push(this.__patterns.django_value._starting_pattern.source),ie.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||ie.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&ie.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+ie.join("|")+")")},X.prototype._read_template=function(){var ie="",P=this._input.peek();if(P==="<"){var B=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&B==="?"&&(ie=ie||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&B==="%"&&(ie=ie||this.__patterns.erb.read())}else P==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(ie=ie||this.__patterns.handlebars_comment.read(),ie=ie||this.__patterns.handlebars_unescaped.read(),ie=ie||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(ie=ie||this.__patterns.django_value.read()),this._excluded.django||(ie=ie||this.__patterns.django_comment.read(),ie=ie||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(ie=ie||this.__patterns.smarty_comment.read(),ie=ie||this.__patterns.smarty_literal.read(),ie=ie||this.__patterns.smarty.read()));return ie},N.exports.TemplatablePattern=X},,,,function(N,S,b){var A=b(19).Beautifier,I=b(20).Options;function X(ie,P,B,H){var le=new A(ie,P,B,H);return le.beautify()}N.exports=X,N.exports.defaultOptions=function(){return new I}},function(N,S,b){var A=b(20).Options,I=b(2).Output,X=b(21).Tokenizer,ie=b(21).TOKEN,P=/\r\n|[\r\n]/,B=/\r\n|[\r\n]/g,H=function(ee,F){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=ee.max_preserve_newlines,this.preserve_newlines=ee.preserve_newlines,this._output=new I(ee,F)};H.prototype.current_line_has_match=function(ee){return this._output.current_line.has_match(ee)},H.prototype.set_space_before_token=function(ee,F){this._output.space_before_token=ee,this._output.non_breaking_space=F},H.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},H.prototype.add_raw_token=function(ee){this._output.add_raw_token(ee)},H.prototype.print_preserved_newlines=function(ee){var F=0;ee.type!==ie.TEXT&&ee.previous.type!==ie.TEXT&&(F=ee.newlines?1:0),this.preserve_newlines&&(F=ee.newlines<this.max_preserve_newlines+1?ee.newlines:this.max_preserve_newlines+1);for(var Y=0;Y<F;Y++)this.print_newline(Y>0);return F!==0},H.prototype.traverse_whitespace=function(ee){return ee.whitespace_before||ee.newlines?(this.print_preserved_newlines(ee)||(this._output.space_before_token=!0),!0):!1},H.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},H.prototype.print_newline=function(ee){this._output.add_new_line(ee)},H.prototype.print_token=function(ee){ee.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(ee.text))},H.prototype.indent=function(){this.indent_level++},H.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},H.prototype.get_full_indent=function(ee){return ee=this.indent_level+(ee||0),ee<1?"":this._output.get_indent_string(ee)};var le=function(ee){for(var F=null,Y=ee.next;Y.type!==ie.EOF&&ee.closed!==Y;){if(Y.type===ie.ATTRIBUTE&&Y.text==="type"){Y.next&&Y.next.type===ie.EQUALS&&Y.next.next&&Y.next.next.type===ie.VALUE&&(F=Y.next.next.text);break}Y=Y.next}return F},k=function(ee,F){var Y=null,V=null;return F.closed?(ee==="script"?Y="text/javascript":ee==="style"&&(Y="text/css"),Y=le(F)||Y,Y.search("text/css")>-1?V="css":Y.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?V="javascript":Y.search(/(text|application|dojo)\/(x-)?(html)/)>-1?V="html":Y.search(/test\/null/)>-1&&(V="null"),V):null};function j(ee,F){return F.indexOf(ee)!==-1}function J(ee,F,Y){this.parent=ee||null,this.tag=F?F.tag_name:"",this.indent_level=Y||0,this.parser_token=F||null}function Q(ee){this._printer=ee,this._current_frame=null}Q.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},Q.prototype.record_tag=function(ee){var F=new J(this._current_frame,ee,this._printer.indent_level);this._current_frame=F},Q.prototype._try_pop_frame=function(ee){var F=null;return ee&&(F=ee.parser_token,this._printer.indent_level=ee.indent_level,this._current_frame=ee.parent),F},Q.prototype._get_frame=function(ee,F){for(var Y=this._current_frame;Y&&ee.indexOf(Y.tag)===-1;){if(F&&F.indexOf(Y.tag)!==-1){Y=null;break}Y=Y.parent}return Y},Q.prototype.try_pop=function(ee,F){var Y=this._get_frame([ee],F);return this._try_pop_frame(Y)},Q.prototype.indent_to_tag=function(ee){var F=this._get_frame(ee);F&&(this._printer.indent_level=F.indent_level)};function de(ee,F,Y,V){this._source_text=ee||"",F=F||{},this._js_beautify=Y,this._css_beautify=V,this._tag_stack=null;var ue=new A(F,"html");this._options=ue,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"}de.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var ee=this._source_text,F=this._options.eol;this._options.eol==="auto"&&(F=`
`,ee&&P.test(ee)&&(F=ee.match(P)[0])),ee=ee.replace(B,`
`);var Y=ee.match(/^[\t ]*/)[0],V={text:"",type:""},ue=new Se(this._options),te=new H(this._options,Y),y=new X(ee,this._options).tokenize();this._tag_stack=new Q(te);for(var w=null,Z=y.next();Z.type!==ie.EOF;)Z.type===ie.TAG_OPEN||Z.type===ie.COMMENT?(w=this._handle_tag_open(te,Z,ue,V,y),ue=w):Z.type===ie.ATTRIBUTE||Z.type===ie.EQUALS||Z.type===ie.VALUE||Z.type===ie.TEXT&&!ue.tag_complete?w=this._handle_inside_tag(te,Z,ue,V):Z.type===ie.TAG_CLOSE?w=this._handle_tag_close(te,Z,ue):Z.type===ie.TEXT?w=this._handle_text(te,Z,ue):Z.type===ie.CONTROL_FLOW_OPEN?w=this._handle_control_flow_open(te,Z):Z.type===ie.CONTROL_FLOW_CLOSE?w=this._handle_control_flow_close(te,Z):te.add_raw_token(Z),V=w,Z=y.next();var G=te._output.get_code(F);return G},de.prototype._handle_control_flow_open=function(ee,F){var Y={text:F.text,type:F.type};return ee.set_space_before_token(F.newlines||F.whitespace_before!=="",!0),F.newlines?ee.print_preserved_newlines(F):ee.set_space_before_token(F.newlines||F.whitespace_before!=="",!0),ee.print_token(F),ee.indent(),Y},de.prototype._handle_control_flow_close=function(ee,F){var Y={text:F.text,type:F.type};return ee.deindent(),F.newlines?ee.print_preserved_newlines(F):ee.set_space_before_token(F.newlines||F.whitespace_before!=="",!0),ee.print_token(F),Y},de.prototype._handle_tag_close=function(ee,F,Y){var V={text:F.text,type:F.type};return ee.alignment_size=0,Y.tag_complete=!0,ee.set_space_before_token(F.newlines||F.whitespace_before!=="",!0),Y.is_unformatted?ee.add_raw_token(F):(Y.tag_start_char==="<"&&(ee.set_space_before_token(F.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&Y.has_wrapped_attrs&&ee.print_newline(!1)),ee.print_token(F)),Y.indent_content&&!(Y.is_unformatted||Y.is_content_unformatted)&&(ee.indent(),Y.indent_content=!1),!Y.is_inline_element&&!(Y.is_unformatted||Y.is_content_unformatted)&&ee.set_wrap_point(),V},de.prototype._handle_inside_tag=function(ee,F,Y,V){var ue=Y.has_wrapped_attrs,te={text:F.text,type:F.type};return ee.set_space_before_token(F.newlines||F.whitespace_before!=="",!0),Y.is_unformatted?ee.add_raw_token(F):Y.tag_start_char==="{"&&F.type===ie.TEXT?ee.print_preserved_newlines(F)?(F.newlines=0,ee.add_raw_token(F)):ee.print_token(F):(F.type===ie.ATTRIBUTE?ee.set_space_before_token(!0):(F.type===ie.EQUALS||F.type===ie.VALUE&&F.previous.type===ie.EQUALS)&&ee.set_space_before_token(!1),F.type===ie.ATTRIBUTE&&Y.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(ee.traverse_whitespace(F),ue=ue||F.newlines!==0),this._is_wrap_attributes_force&&Y.attr_count>=this._options.wrap_attributes_min_attrs&&(V.type!==ie.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(ee.print_newline(!1),ue=!0)),ee.print_token(F),ue=ue||ee.previous_token_wrapped(),Y.has_wrapped_attrs=ue),te},de.prototype._handle_text=function(ee,F,Y){var V={text:F.text,type:"TK_CONTENT"};return Y.custom_beautifier_name?this._print_custom_beatifier_text(ee,F,Y):Y.is_unformatted||Y.is_content_unformatted?ee.add_raw_token(F):(ee.traverse_whitespace(F),ee.print_token(F)),V},de.prototype._print_custom_beatifier_text=function(ee,F,Y){var V=this;if(F.text!==""){var ue=F.text,te,y=1,w="",Z="";Y.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?te=this._js_beautify:Y.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?te=this._css_beautify:Y.custom_beautifier_name==="html"&&(te=function(tt,at){var mt=new de(tt,at,V._js_beautify,V._css_beautify);return mt.beautify()}),this._options.indent_scripts==="keep"?y=0:this._options.indent_scripts==="separate"&&(y=-ee.indent_level);var G=ee.get_full_indent(y);if(ue=ue.replace(/\n[ \t]*$/,""),Y.custom_beautifier_name!=="html"&&ue[0]==="<"&&ue.match(/^(<!--|<!\[CDATA\[)/)){var Pe=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(ue);if(!Pe){ee.add_raw_token(F);return}w=G+Pe[1]+`
`,ue=Pe[4],Pe[5]&&(Z=G+Pe[5]),ue=ue.replace(/\n[ \t]*$/,""),(Pe[2]||Pe[3].indexOf(`
`)!==-1)&&(Pe=Pe[3].match(/[ \t]+$/),Pe&&(F.whitespace_before=Pe[0]))}if(ue)if(te){var Ue=function(){this.eol=`
`};Ue.prototype=this._options.raw_options;var Ve=new Ue;ue=te(G+ue,Ve)}else{var Xe=F.whitespace_before;Xe&&(ue=ue.replace(new RegExp(`
(`+Xe+")?","g"),`
`)),ue=G+ue.replace(/\n/g,`
`+G)}w&&(ue?ue=w+ue+`
`+Z:ue=w+Z),ee.print_newline(!1),ue&&(F.text=ue,F.whitespace_before="",F.newlines=0,ee.add_raw_token(F),ee.print_newline(!0))}},de.prototype._handle_tag_open=function(ee,F,Y,V,ue){var te=this._get_tag_open_token(F);if((Y.is_unformatted||Y.is_content_unformatted)&&!Y.is_empty_element&&F.type===ie.TAG_OPEN&&!te.is_start_tag?(ee.add_raw_token(F),te.start_tag_token=this._tag_stack.try_pop(te.tag_name)):(ee.traverse_whitespace(F),this._set_tag_position(ee,F,te,Y,V),te.is_inline_element||ee.set_wrap_point(),ee.print_token(F)),te.is_start_tag&&this._is_wrap_attributes_force){var y=0,w;do w=ue.peek(y),w.type===ie.ATTRIBUTE&&(te.attr_count+=1),y+=1;while(w.type!==ie.EOF&&w.type!==ie.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(te.alignment_size=F.text.length+1),!te.tag_complete&&!te.is_unformatted&&(ee.alignment_size=te.alignment_size),te};var Se=function(ee,F,Y){if(this.parent=F||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="",!Y)this.tag_complete=!0;else{var V;this.tag_start_char=Y.text[0],this.text=Y.text,this.tag_start_char==="<"?(V=Y.text.match(/^<([^\s>]*)/),this.tag_check=V?V[1]:""):(V=Y.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=V?V[1]:"",(Y.text.startsWith("{{#>")||Y.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&Y.next!==null?this.tag_check=Y.next.text.split(" ")[0]:this.tag_check=Y.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),Y.type===ie.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||Y.closed&&Y.closed.text==="/>";var ue=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(ue=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!ee.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(ue)))}};de.prototype._get_tag_open_token=function(ee){var F=new Se(this._options,this._tag_stack.get_parser_token(),ee);return F.alignment_size=this._options.wrap_attributes_indent_size,F.is_end_tag=F.is_end_tag||j(F.tag_check,this._options.void_elements),F.is_empty_element=F.tag_complete||F.is_start_tag&&F.is_end_tag,F.is_unformatted=!F.tag_complete&&j(F.tag_check,this._options.unformatted),F.is_content_unformatted=!F.is_empty_element&&j(F.tag_check,this._options.content_unformatted),F.is_inline_element=j(F.tag_name,this._options.inline)||this._options.inline_custom_elements&&F.tag_name.includes("-")||F.tag_start_char==="{",F},de.prototype._set_tag_position=function(ee,F,Y,V,ue){if(Y.is_empty_element||(Y.is_end_tag?Y.start_tag_token=this._tag_stack.try_pop(Y.tag_name):(this._do_optional_end_element(Y)&&(Y.is_inline_element||ee.print_newline(!1)),this._tag_stack.record_tag(Y),(Y.tag_name==="script"||Y.tag_name==="style")&&!(Y.is_unformatted||Y.is_content_unformatted)&&(Y.custom_beautifier_name=k(Y.tag_check,F)))),j(Y.tag_check,this._options.extra_liners)&&(ee.print_newline(!1),ee._output.just_added_blankline()||ee.print_newline(!0)),Y.is_empty_element){if(Y.tag_start_char==="{"&&Y.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),Y.indent_content=!0;var te=ee.current_line_has_match(/{{#if/);te||ee.print_newline(!1)}Y.tag_name==="!--"&&ue.type===ie.TAG_CLOSE&&V.is_end_tag&&Y.text.indexOf(`
`)===-1||(Y.is_inline_element||Y.is_unformatted||ee.print_newline(!1),this._calcluate_parent_multiline(ee,Y))}else if(Y.is_end_tag){var y=!1;y=Y.start_tag_token&&Y.start_tag_token.multiline_content,y=y||!Y.is_inline_element&&!(V.is_inline_element||V.is_unformatted)&&!(ue.type===ie.TAG_CLOSE&&Y.start_tag_token===V)&&ue.type!=="TK_CONTENT",(Y.is_content_unformatted||Y.is_unformatted)&&(y=!1),y&&ee.print_newline(!1)}else Y.indent_content=!Y.custom_beautifier_name,Y.tag_start_char==="<"&&(Y.tag_name==="html"?Y.indent_content=this._options.indent_inner_html:Y.tag_name==="head"?Y.indent_content=this._options.indent_head_inner_html:Y.tag_name==="body"&&(Y.indent_content=this._options.indent_body_inner_html)),!(Y.is_inline_element||Y.is_unformatted)&&(ue.type!=="TK_CONTENT"||Y.is_content_unformatted)&&ee.print_newline(!1),this._calcluate_parent_multiline(ee,Y)},de.prototype._calcluate_parent_multiline=function(ee,F){F.parent&&ee._output.just_added_newline()&&!((F.is_inline_element||F.is_unformatted)&&F.parent.is_inline_element)&&(F.parent.multiline_content=!0)};var Ae=["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"],Me=["a","audio","del","ins","map","noscript","video"];de.prototype._do_optional_end_element=function(ee){var F=null;if(!(ee.is_empty_element||!ee.is_start_tag||!ee.parent)){if(ee.tag_name==="body")F=F||this._tag_stack.try_pop("head");else if(ee.tag_name==="li")F=F||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(ee.tag_name==="dd"||ee.tag_name==="dt")F=F||this._tag_stack.try_pop("dt",["dl"]),F=F||this._tag_stack.try_pop("dd",["dl"]);else if(ee.parent.tag_name==="p"&&Ae.indexOf(ee.tag_name)!==-1){var Y=ee.parent.parent;(!Y||Me.indexOf(Y.tag_name)===-1)&&(F=F||this._tag_stack.try_pop("p"))}else ee.tag_name==="rp"||ee.tag_name==="rt"?(F=F||this._tag_stack.try_pop("rt",["ruby","rtc"]),F=F||this._tag_stack.try_pop("rp",["ruby","rtc"])):ee.tag_name==="optgroup"?F=F||this._tag_stack.try_pop("optgroup",["select"]):ee.tag_name==="option"?F=F||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):ee.tag_name==="colgroup"?F=F||this._tag_stack.try_pop("caption",["table"]):ee.tag_name==="thead"?(F=F||this._tag_stack.try_pop("caption",["table"]),F=F||this._tag_stack.try_pop("colgroup",["table"])):ee.tag_name==="tbody"||ee.tag_name==="tfoot"?(F=F||this._tag_stack.try_pop("caption",["table"]),F=F||this._tag_stack.try_pop("colgroup",["table"]),F=F||this._tag_stack.try_pop("thead",["table"]),F=F||this._tag_stack.try_pop("tbody",["table"])):ee.tag_name==="tr"?(F=F||this._tag_stack.try_pop("caption",["table"]),F=F||this._tag_stack.try_pop("colgroup",["table"]),F=F||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(ee.tag_name==="th"||ee.tag_name==="td")&&(F=F||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),F=F||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return ee.parent=this._tag_stack.get_parser_token(),F}},N.exports.Beautifier=de},function(N,S,b){var A=b(6).Options;function I(X){A.call(this,X,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}I.prototype=new A,N.exports.Options=I},function(N,S,b){var A=b(9).Tokenizer,I=b(9).TOKEN,X=b(13).Directives,ie=b(14).TemplatablePattern,P=b(12).Pattern,B={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:I.START,RAW:I.RAW,EOF:I.EOF},H=new X(/<\!--/,/-->/),le=function(k,j){A.call(this,k,j),this._current_tag_name="";var J=new ie(this._input).read_options(this._options),Q=new P(this._input);if(this.__patterns={word:J.until(/[\n\r\t <]/),word_control_flow_close_excluded:J.until(/[\n\r\t <}]/),single_quote:J.until_after(/'/),double_quote:J.until_after(/"/),attribute:J.until(/[\n\r\t =>]|\/>/),element_name:J.until(/[\n\r\t >\/]/),angular_control_flow_start:Q.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:Q.starting_with(/{{!--/).until_after(/--}}/),handlebars:Q.starting_with(/{{/).until_after(/}}/),handlebars_open:Q.until(/[\n\r\t }]/),handlebars_raw_close:Q.until(/}}/),comment:Q.starting_with(/<!--/).until_after(/-->/),cdata:Q.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:Q.starting_with(/<!\[/).until_after(/]>/),processing:Q.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 de=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=Q.matching(de).until_after(de)}};le.prototype=new A,le.prototype._is_comment=function(k){return!1},le.prototype._is_opening=function(k){return k.type===B.TAG_OPEN||k.type===B.CONTROL_FLOW_OPEN},le.prototype._is_closing=function(k,j){return k.type===B.TAG_CLOSE&&j&&((k.text===">"||k.text==="/>")&&j.text[0]==="<"||k.text==="}}"&&j.text[0]==="{"&&j.text[1]==="{")||k.type===B.CONTROL_FLOW_CLOSE&&k.text==="}"&&j.text.endsWith("{")},le.prototype._reset=function(){this._current_tag_name=""},le.prototype._get_next_token=function(k,j){var J=null;this._readWhitespace();var Q=this._input.peek();return Q===null?this._create_token(B.EOF,""):(J=J||this._read_open_handlebars(Q,j),J=J||this._read_attribute(Q,k,j),J=J||this._read_close(Q,j),J=J||this._read_script_and_style(Q,k),J=J||this._read_control_flows(Q,j),J=J||this._read_raw_content(Q,k,j),J=J||this._read_content_word(Q,j),J=J||this._read_comment_or_cdata(Q),J=J||this._read_processing(Q),J=J||this._read_open(Q,j),J=J||this._create_token(B.UNKNOWN,this._input.next()),J)},le.prototype._read_comment_or_cdata=function(k){var j=null,J=null,Q=null;if(k==="<"){var de=this._input.peek(1);de==="!"&&(J=this.__patterns.comment.read(),J?(Q=H.get_directives(J),Q&&Q.ignore==="start"&&(J+=H.readIgnored(this._input))):J=this.__patterns.cdata.read()),J&&(j=this._create_token(B.COMMENT,J),j.directives=Q)}return j},le.prototype._read_processing=function(k){var j=null,J=null,Q=null;if(k==="<"){var de=this._input.peek(1);(de==="!"||de==="?")&&(J=this.__patterns.conditional_comment.read(),J=J||this.__patterns.processing.read()),J&&(j=this._create_token(B.COMMENT,J),j.directives=Q)}return j},le.prototype._read_open=function(k,j){var J=null,Q=null;return(!j||j.type===B.CONTROL_FLOW_OPEN)&&k==="<"&&(J=this._input.next(),this._input.peek()==="/"&&(J+=this._input.next()),J+=this.__patterns.element_name.read(),Q=this._create_token(B.TAG_OPEN,J)),Q},le.prototype._read_open_handlebars=function(k,j){var J=null,Q=null;return(!j||j.type===B.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&k==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(J=this.__patterns.handlebars_comment.read(),J=J||this.__patterns.handlebars.read(),Q=this._create_token(B.COMMENT,J)):(J=this.__patterns.handlebars_open.read(),Q=this._create_token(B.TAG_OPEN,J))),Q},le.prototype._read_control_flows=function(k,j){var J="",Q=null;if(!this._options.templating.includes("angular"))return Q;if(k==="@"){if(J=this.__patterns.angular_control_flow_start.read(),J==="")return Q;for(var de=J.endsWith("(")?1:0,Se=0;!(J.endsWith("{")&&de===Se);){var Ae=this._input.next();if(Ae===null)break;Ae==="("?de++:Ae===")"&&Se++,J+=Ae}Q=this._create_token(B.CONTROL_FLOW_OPEN,J)}else k==="}"&&j&&j.type===B.CONTROL_FLOW_OPEN&&(J=this._input.next(),Q=this._create_token(B.CONTROL_FLOW_CLOSE,J));return Q},le.prototype._read_close=function(k,j){var J=null,Q=null;return j&&j.type===B.TAG_OPEN&&(j.text[0]==="<"&&(k===">"||k==="/"&&this._input.peek(1)===">")?(J=this._input.next(),k==="/"&&(J+=this._input.next()),Q=this._create_token(B.TAG_CLOSE,J)):j.text[0]==="{"&&k==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),Q=this._create_token(B.TAG_CLOSE,"}}"))),Q},le.prototype._read_attribute=function(k,j,J){var Q=null,de="";if(J&&J.text[0]==="<")if(k==="=")Q=this._create_token(B.EQUALS,this._input.next());else if(k==='"'||k==="'"){var Se=this._input.next();k==='"'?Se+=this.__patterns.double_quote.read():Se+=this.__patterns.single_quote.read(),Q=this._create_token(B.VALUE,Se)}else de=this.__patterns.attribute.read(),de&&(j.type===B.EQUALS?Q=this._create_token(B.VALUE,de):Q=this._create_token(B.ATTRIBUTE,de));return Q},le.prototype._is_content_unformatted=function(k){return this._options.void_elements.indexOf(k)===-1&&(this._options.content_unformatted.indexOf(k)!==-1||this._options.unformatted.indexOf(k)!==-1)},le.prototype._read_raw_content=function(k,j,J){var Q="";if(J&&J.text[0]==="{")Q=this.__patterns.handlebars_raw_close.read();else if(j.type===B.TAG_CLOSE&&j.opened.text[0]==="<"&&j.text[0]!=="/"){var de=j.opened.text.substr(1).toLowerCase();this._is_content_unformatted(de)&&(Q=this._input.readUntil(new RegExp("</"+de+"[\\n\\r\\t ]*?>","ig")))}return Q?this._create_token(B.TEXT,Q):null},le.prototype._read_script_and_style=function(k,j){if(j.type===B.TAG_CLOSE&&j.opened.text[0]==="<"&&j.text[0]!=="/"){var J=j.opened.text.substr(1).toLowerCase();if(J==="script"||J==="style"){var Q=this._read_comment_or_cdata(k);if(Q)return Q.type=B.TEXT,Q;var de=this._input.readUntil(new RegExp("</"+J+"[\\n\\r\\t ]*?>","ig"));if(de)return this._create_token(B.TEXT,de)}}return null},le.prototype._read_content_word=function(k,j){var J="";return this._options.unformatted_content_delimiter&&k===this._options.unformatted_content_delimiter[0]&&(J=this.__patterns.unformatted_content_delimiter.read()),J||(J=j&&j.type===B.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),J?this._create_token(B.TEXT,J):null},N.exports.Tokenizer=le,N.exports.TOKEN=B}],oe={};function o(N){var S=oe[N];if(S!==void 0)return S.exports;var b=oe[N]={exports:{}};return ce[N](b,b.exports,o),b.exports}var ne=o(18);xe=ne})();var pe=xe;if(1)v=[x,x(58553),x(87804)],q=function(ce){var oe=x(58553),o=x(87804);return{html_beautify:function(ne,N){return pe(ne,N,oe.js_beautify,o.css_beautify)}}}.apply(ot,v),q!==void 0&&(nr.exports=q);else var O,p})()},58553:function(nr,ot){var x,v;(function(){var q;(function(){"use strict";var pe=[function(oe,o,ne){var N=ne(1).Beautifier,S=ne(5).Options;function b(A,I){var X=new N(A,I);return X.beautify()}oe.exports=b,oe.exports.defaultOptions=function(){return new S}},function(oe,o,ne){var N=ne(2).Output,S=ne(3).Token,b=ne(4),A=ne(5).Options,I=ne(7).Tokenizer,X=ne(7).line_starters,ie=ne(7).positionable_operators,P=ne(7).TOKEN;function B(w,Z){return Z.indexOf(w)!==-1}function H(w){return w.replace(/^\s+/g,"")}function le(w){for(var Z={},G=0;G<w.length;G++)Z[w[G].replace(/-/g,"_")]=w[G];return Z}function k(w,Z){return w&&w.type===P.RESERVED&&w.text===Z}function j(w,Z){return w&&w.type===P.RESERVED&&B(w.text,Z)}var J=["case","return","do","if","throw","else","await","break","continue","async"],Q=["before-newline","after-newline","preserve-newline"],de=le(Q),Se=[de.before_newline,de.preserve_newline],Ae={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Me(w,Z){Z.multiline_frame||Z.mode===Ae.ForInitializer||Z.mode===Ae.Conditional||w.remove_indent(Z.start_line_index)}function ee(w){w=w.replace(b.allLineBreaks,`
`);for(var Z=[],G=w.indexOf(`
`);G!==-1;)Z.push(w.substring(0,G)),w=w.substring(G+1),G=w.indexOf(`
`);return w.length&&Z.push(w),Z}function F(w){return w===Ae.ArrayLiteral}function Y(w){return B(w,[Ae.Expression,Ae.ForInitializer,Ae.Conditional])}function V(w,Z){for(var G=0;G<w.length;G++){var Pe=w[G].trim();if(Pe.charAt(0)!==Z)return!1}return!0}function ue(w,Z){for(var G=0,Pe=w.length,Ue;G<Pe;G++)if(Ue=w[G],Ue&&Ue.indexOf(Z)!==0)return!1;return!0}function te(w,Z){Z=Z||{},this._source_text=w||"",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 A(Z)}te.prototype.create_flags=function(w,Z){var G=0;w&&(G=w.indentation_level,!this._output.just_added_newline()&&w.line_indent_level>G&&(G=w.line_indent_level));var Pe={mode:Z,parent:w,last_token:w?w.last_token:new S(P.START_BLOCK,""),last_word:w?w.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:G,alignment:0,line_indent_level:w?w.line_indent_level:G,start_line_index:this._output.get_line_number(),ternary_depth:0};return Pe},te.prototype._reset=function(w){var Z=w.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new N(this._options,Z),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(Ae.BlockStatement);var G=new I(w,this._options);return this._tokens=G.tokenize(),w},te.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var w,Z=this._reset(this._source_text),G=this._options.eol;this._options.eol==="auto"&&(G=`
`,Z&&b.lineBreak.test(Z||"")&&(G=Z.match(b.lineBreak)[0]));for(var Pe=this._tokens.next();Pe;)this.handle_token(Pe),this._last_last_text=this._flags.last_token.text,this._flags.last_token=Pe,Pe=this._tokens.next();return w=this._output.get_code(G),w},te.prototype.handle_token=function(w,Z){w.type===P.START_EXPR?this.handle_start_expr(w):w.type===P.END_EXPR?this.handle_end_expr(w):w.type===P.START_BLOCK?this.handle_start_block(w):w.type===P.END_BLOCK?this.handle_end_block(w):w.type===P.WORD?this.handle_word(w):w.type===P.RESERVED?this.handle_word(w):w.type===P.SEMICOLON?this.handle_semicolon(w):w.type===P.STRING?this.handle_string(w):w.type===P.EQUALS?this.handle_equals(w):w.type===P.OPERATOR?this.handle_operator(w):w.type===P.COMMA?this.handle_comma(w):w.type===P.BLOCK_COMMENT?this.handle_block_comment(w,Z):w.type===P.COMMENT?this.handle_comment(w,Z):w.type===P.DOT?this.handle_dot(w):w.type===P.EOF?this.handle_eof(w):w.type===P.UNKNOWN?this.handle_unknown(w,Z):this.handle_unknown(w,Z)},te.prototype.handle_whitespace_and_comments=function(w,Z){var G=w.newlines,Pe=this._options.keep_array_indentation&&F(this._flags.mode);if(w.comments_before)for(var Ue=w.comments_before.next();Ue;)this.handle_whitespace_and_comments(Ue,Z),this.handle_token(Ue,Z),Ue=w.comments_before.next();if(Pe)for(var Ve=0;Ve<G;Ve+=1)this.print_newline(Ve>0,Z);else if(this._options.max_preserve_newlines&&G>this._options.max_preserve_newlines&&(G=this._options.max_preserve_newlines),this._options.preserve_newlines&&G>1){this.print_newline(!1,Z);for(var Xe=1;Xe<G;Xe+=1)this.print_newline(!0,Z)}};var y=["async","break","continue","return","throw","yield"];te.prototype.allow_wrap_or_preserved_newline=function(w,Z){if(Z=Z===void 0?!1:Z,!this._output.just_added_newline()){var G=this._options.preserve_newlines&&w.newlines||Z,Pe=B(this._flags.last_token.text,ie)||B(w.text,ie);if(Pe){var Ue=B(this._flags.last_token.text,ie)&&B(this._options.operator_position,Se)||B(w.text,ie);G=G&&Ue}if(G)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(j(this._flags.last_token,y))return;this._output.set_wrap_point()}}},te.prototype.print_newline=function(w,Z){if(!Z&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==P.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var G=this._tokens.peek();this._flags.mode===Ae.Statement&&!(this._flags.if_block&&k(G,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(w)&&(this._flags.multiline_frame=!0)},te.prototype.print_token_line_indentation=function(w){this._output.just_added_newline()&&(this._options.keep_array_indentation&&w.newlines&&(w.text==="["||F(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(w.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))},te.prototype.print_token=function(w){if(this._output.raw){this._output.add_raw_token(w);return}if(this._options.comma_first&&w.previous&&w.previous.type===P.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var Z=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(Z),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(w),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(w),this._output.non_breaking_space=!0,this._output.add_token(w.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},te.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},te.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))},te.prototype.set_mode=function(w){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,w),this._flags=this.create_flags(this._previous_flags,w),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},te.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===Ae.Statement&&Me(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},te.prototype.start_of_object_property=function(){return this._flags.parent.mode===Ae.ObjectLiteral&&this._flags.mode===Ae.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||j(this._flags.last_token,["get","set"]))},te.prototype.start_of_statement=function(w){var Z=!1;return Z=Z||j(this._flags.last_token,["var","let","const"])&&w.type===P.WORD,Z=Z||k(this._flags.last_token,"do"),Z=Z||!(this._flags.parent.mode===Ae.ObjectLiteral&&this._flags.mode===Ae.Statement)&&j(this._flags.last_token,y)&&!w.newlines,Z=Z||k(this._flags.last_token,"else")&&!(k(w,"if")&&!w.comments_before),Z=Z||this._flags.last_token.type===P.END_EXPR&&(this._previous_flags.mode===Ae.ForInitializer||this._previous_flags.mode===Ae.Conditional),Z=Z||this._flags.last_token.type===P.WORD&&this._flags.mode===Ae.BlockStatement&&!this._flags.in_case&&!(w.text==="--"||w.text==="++")&&this._last_last_text!=="function"&&w.type!==P.WORD&&w.type!==P.RESERVED,Z=Z||this._flags.mode===Ae.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||j(this._flags.last_token,["get","set"])),Z?(this.set_mode(Ae.Statement),this.indent(),this.handle_whitespace_and_comments(w,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(w,j(w,["do","for","if","while"])),!0):!1},te.prototype.handle_start_expr=function(w){this.start_of_statement(w)||this.handle_whitespace_and_comments(w);var Z=Ae.Expression;if(w.text==="["){if(this._flags.last_token.type===P.WORD||this._flags.last_token.text===")"){j(this._flags.last_token,X)&&(this._output.space_before_token=!0),this.print_token(w),this.set_mode(Z),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}Z=Ae.ArrayLiteral,F(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()),B(this._flags.last_token.type,[P.START_EXPR,P.END_EXPR,P.WORD,P.OPERATOR,P.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===P.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,Z=Ae.ForInitializer):B(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,Z=Ae.Conditional):B(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&w.whitespace_before===""?this._output.space_before_token=!1:(B(this._flags.last_token.text,X)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===P.EQUALS||this._flags.last_token.type===P.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(w);else if(this._flags.last_token.type===P.WORD){this._output.space_before_token=!1;var G=this._tokens.peek(-3);if(this._options.space_after_named_function&&G){var Pe=this._tokens.peek(-4);j(G,["async","function"])||G.text==="*"&&j(Pe,["async","function"])?this._output.space_before_token=!0:this._flags.mode===Ae.ObjectLiteral?(G.text==="{"||G.text===","||G.text==="*"&&(Pe.text==="{"||Pe.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(w);(this._flags.last_token.type===P.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(B(this._last_last_text,["function","yield"])||this._flags.mode===Ae.ObjectLiteral&&B(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===P.START_BLOCK?this.print_newline():(this._flags.last_token.type===P.END_EXPR||this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===P.COMMA)&&this.allow_wrap_or_preserved_newline(w,w.newlines),this.print_token(w),this.set_mode(Z),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},te.prototype.handle_end_expr=function(w){for(;this._flags.mode===Ae.Statement;)this.restore_mode();this.handle_whitespace_and_comments(w),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(w,w.text==="]"&&F(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===P.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(w),this.restore_mode(),Me(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===Ae.Conditional&&(this._previous_flags.mode=Ae.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},te.prototype.handle_start_block=function(w){this.handle_whitespace_and_comments(w);var Z=this._tokens.peek(),G=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===P.END_EXPR?(this.set_mode(Ae.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(Ae.BlockStatement):G&&(B(G.text,[":",","])&&B(Z.type,[P.STRING,P.WORD,P.RESERVED])||B(Z.text,["get","set","..."])&&B(G.type,[P.WORD,P.RESERVED]))?B(this._last_last_text,["class","interface"])&&!B(G.text,[":",","])?this.set_mode(Ae.BlockStatement):this.set_mode(Ae.ObjectLiteral):this._flags.last_token.type===P.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(Ae.BlockStatement):B(this._flags.last_token.type,[P.EQUALS,P.START_EXPR,P.COMMA,P.OPERATOR])||j(this._flags.last_token,["return","throw","import","default"])?this.set_mode(Ae.ObjectLiteral):this.set_mode(Ae.BlockStatement),this._flags.last_token&&j(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var Pe=!Z.comments_before&&Z.text==="}",Ue=Pe&&this._flags.last_word==="function"&&this._flags.last_token.type===P.END_EXPR;if(this._options.brace_preserve_inline){var Ve=0,Xe=null;this._flags.inline_frame=!0;do if(Ve+=1,Xe=this._tokens.peek(Ve-1),Xe.newlines){this._flags.inline_frame=!1;break}while(Xe.type!==P.EOF&&!(Xe.type===P.END_BLOCK&&Xe.opened===w))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&w.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==P.OPERATOR&&(Ue||this._flags.last_token.type===P.EQUALS||j(this._flags.last_token,J)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(F(this._previous_flags.mode)&&(this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.COMMA)&&((this._flags.last_token.type===P.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(w),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==P.OPERATOR&&this._flags.last_token.type!==P.START_EXPR&&(B(this._flags.last_token.type,[P.START_BLOCK,P.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(w),this.indent(),!Pe&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},te.prototype.handle_end_block=function(w){for(this.handle_whitespace_and_comments(w);this._flags.mode===Ae.Statement;)this.restore_mode();var Z=this._flags.last_token.type===P.START_BLOCK;this._flags.inline_frame&&!Z?this._output.space_before_token=!0:this._options.brace_style==="expand"?Z||this.print_newline():Z||(F(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(w)},te.prototype.handle_word=function(w){if(w.type===P.RESERVED){if(B(w.text,["set","get"])&&this._flags.mode!==Ae.ObjectLiteral)w.type=P.WORD;else if(w.text==="import"&&B(this._tokens.peek().text,["(","."]))w.type=P.WORD;else if(B(w.text,["as","from"])&&!this._flags.import_block)w.type=P.WORD;else if(this._flags.mode===Ae.ObjectLiteral){var Z=this._tokens.peek();Z.text===":"&&(w.type=P.WORD)}}if(this.start_of_statement(w)?j(this._flags.last_token,["var","let","const"])&&w.type===P.WORD&&(this._flags.declaration_statement=!0):w.newlines&&!Y(this._flags.mode)&&(this._flags.last_token.type!==P.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==P.EQUALS&&(this._options.preserve_newlines||!j(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(w),this.print_newline()):this.handle_whitespace_and_comments(w),this._flags.do_block&&!this._flags.do_while)if(k(w,"while")){this._output.space_before_token=!0,this.print_token(w),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&&k(w,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===Ae.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&j(w,["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(w),this._flags.in_case=!0;return}if((this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.EQUALS||this._flags.last_token.type===P.OPERATOR)&&!this.start_of_object_property()&&!(B(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===Ae.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(w),k(w,"function")){(B(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(B(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===P.OPERATOR))&&!this._output.just_added_blankline()&&!w.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===P.RESERVED||this._flags.last_token.type===P.WORD?j(this._flags.last_token,["get","set","new","export"])||j(this._flags.last_token,y)?this._output.space_before_token=!0:k(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===P.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(Y(this._flags.mode)||F(this._flags.mode))||this.print_newline(),this.print_token(w),this._flags.last_word=w.text;return}var G="NONE";if(this._flags.last_token.type===P.END_BLOCK?this._previous_flags.inline_frame?G="SPACE":j(w,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&w.newlines?G="NEWLINE":(G="SPACE",this._output.space_before_token=!0):G="NEWLINE":this._flags.last_token.type===P.SEMICOLON&&this._flags.mode===Ae.BlockStatement?G="NEWLINE":this._flags.last_token.type===P.SEMICOLON&&Y(this._flags.mode)?G="SPACE":this._flags.last_token.type===P.STRING?G="NEWLINE":this._flags.last_token.type===P.RESERVED||this._flags.last_token.type===P.WORD||this._flags.last_token.text==="*"&&(B(this._last_last_text,["function","yield"])||this._flags.mode===Ae.ObjectLiteral&&B(this._last_last_text,["{",","]))?G="SPACE":this._flags.last_token.type===P.START_BLOCK?this._flags.inline_frame?G="SPACE":G="NEWLINE":this._flags.last_token.type===P.END_EXPR&&(this._output.space_before_token=!0,G="NEWLINE"),j(w,X)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?G="SPACE":G="NEWLINE"),j(w,["else","catch","finally"]))if((!(this._flags.last_token.type===P.END_BLOCK&&this._previous_flags.mode===Ae.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&w.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var Pe=this._output.current_line;Pe.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else G==="NEWLINE"?j(this._flags.last_token,J)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&j(w,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==P.END_EXPR?(this._flags.last_token.type!==P.START_EXPR||!j(w,["var","let","const"]))&&this._flags.last_token.text!==":"&&(k(w,"if")&&k(w.previous,"else")?this._output.space_before_token=!0:this.print_newline()):j(w,X)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&F(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():G==="SPACE"&&(this._output.space_before_token=!0);w.previous&&(w.previous.type===P.WORD||w.previous.type===P.RESERVED)&&(this._output.space_before_token=!0),this.print_token(w),this._flags.last_word=w.text,w.type===P.RESERVED&&(w.text==="do"?this._flags.do_block=!0:w.text==="if"?this._flags.if_block=!0:w.text==="import"?this._flags.import_block=!0:this._flags.import_block&&k(w,"from")&&(this._flags.import_block=!1))},te.prototype.handle_semicolon=function(w){this.start_of_statement(w)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(w);for(var Z=this._tokens.peek();this._flags.mode===Ae.Statement&&!(this._flags.if_block&&k(Z,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(w)},te.prototype.handle_string=function(w){w.text.startsWith("`")&&w.newlines===0&&w.whitespace_before===""&&(w.previous.text===")"||this._flags.last_token.type===P.WORD)||(this.start_of_statement(w)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(w),this._flags.last_token.type===P.RESERVED||this._flags.last_token.type===P.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR||this._flags.last_token.type===P.EQUALS||this._flags.last_token.type===P.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(w):w.text.startsWith("`")&&this._flags.last_token.type===P.END_EXPR&&(w.previous.text==="]"||w.previous.text===")")&&w.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(w)},te.prototype.handle_equals=function(w){this.start_of_statement(w)||this.handle_whitespace_and_comments(w),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(w),this._output.space_before_token=!0},te.prototype.handle_comma=function(w){this.handle_whitespace_and_comments(w,!0),this.print_token(w),this._output.space_before_token=!0,this._flags.declaration_statement?(Y(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(w)):this._flags.mode===Ae.ObjectLiteral||this._flags.mode===Ae.Statement&&this._flags.parent.mode===Ae.ObjectLiteral?(this._flags.mode===Ae.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(w)},te.prototype.handle_operator=function(w){var Z=w.text==="*"&&(j(this._flags.last_token,["function","yield"])||B(this._flags.last_token.type,[P.START_BLOCK,P.COMMA,P.END_BLOCK,P.SEMICOLON])),G=B(w.text,["-","+"])&&(B(this._flags.last_token.type,[P.START_BLOCK,P.START_EXPR,P.EQUALS,P.OPERATOR])||B(this._flags.last_token.text,X)||this._flags.last_token.text===",");if(!this.start_of_statement(w)){var Pe=!Z;this.handle_whitespace_and_comments(w,Pe)}if(w.text==="*"&&this._flags.last_token.type===P.DOT){this.print_token(w);return}if(w.text==="::"){this.print_token(w);return}if(B(w.text,["-","+"])&&this.start_of_object_property()){this.print_token(w);return}if(this._flags.last_token.type===P.OPERATOR&&B(this._options.operator_position,Se)&&this.allow_wrap_or_preserved_newline(w),w.text===":"&&this._flags.in_case){this.print_token(w),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==P.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 Ue=!0,Ve=!0,Xe=!1;if(w.text===":"?this._flags.ternary_depth===0?Ue=!1:(this._flags.ternary_depth-=1,Xe=!0):w.text==="?"&&(this._flags.ternary_depth+=1),!G&&!Z&&this._options.preserve_newlines&&B(w.text,ie)){var tt=w.text===":",at=tt&&Xe,mt=tt&&!Xe;switch(this._options.operator_position){case de.before_newline:this._output.space_before_token=!mt,this.print_token(w),(!tt||at)&&this.allow_wrap_or_preserved_newline(w),this._output.space_before_token=!0;return;case de.after_newline:this._output.space_before_token=!0,!tt||at?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(w):this._output.space_before_token=!1,this.print_token(w),this._output.space_before_token=!0;return;case de.preserve_newline:mt||this.allow_wrap_or_preserved_newline(w),Ue=!(this._output.just_added_newline()||mt),this._output.space_before_token=Ue,this.print_token(w),this._output.space_before_token=!0;return}}if(Z){this.allow_wrap_or_preserved_newline(w),Ue=!1;var Ut=this._tokens.peek();Ve=Ut&&B(Ut.type,[P.WORD,P.RESERVED])}else if(w.text==="...")this.allow_wrap_or_preserved_newline(w),Ue=this._flags.last_token.type===P.START_BLOCK,Ve=!1;else if(B(w.text,["--","++","!","~"])||G){if((this._flags.last_token.type===P.COMMA||this._flags.last_token.type===P.START_EXPR)&&this.allow_wrap_or_preserved_newline(w),Ue=!1,Ve=!1,w.newlines&&(w.text==="--"||w.text==="++"||w.text==="~")){var tr=j(this._flags.last_token,J)&&w.newlines;tr&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(tr,!0)}this._flags.last_token.text===";"&&Y(this._flags.mode)&&(Ue=!0),this._flags.last_token.type===P.RESERVED?Ue=!0:this._flags.last_token.type===P.END_EXPR?Ue=!(this._flags.last_token.text==="]"&&(w.text==="--"||w.text==="++")):this._flags.last_token.type===P.OPERATOR&&(Ue=B(w.text,["--","-","++","+"])&&B(this._flags.last_token.text,["--","-","++","+"]),B(w.text,["+","-"])&&B(this._flags.last_token.text,["--","++"])&&(Ve=!0)),(this._flags.mode===Ae.BlockStatement&&!this._flags.inline_frame||this._flags.mode===Ae.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||Ue,this.print_token(w),this._output.space_before_token=Ve},te.prototype.handle_block_comment=function(w,Z){if(this._output.raw){this._output.add_raw_token(w),w.directives&&w.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(w.directives){this.print_newline(!1,Z),this.print_token(w),w.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!b.newline.test(w.text)&&!w.newlines){this._output.space_before_token=!0,this.print_token(w),this._output.space_before_token=!0;return}else this.print_block_commment(w,Z)},te.prototype.print_block_commment=function(w,Z){var G=ee(w.text),Pe,Ue=!1,Ve=!1,Xe=w.whitespace_before,tt=Xe.length;if(this.print_newline(!1,Z),this.print_token_line_indentation(w),this._output.add_token(G[0]),this.print_newline(!1,Z),G.length>1){for(G=G.slice(1),Ue=V(G,"*"),Ve=ue(G,Xe),Ue&&(this._flags.alignment=1),Pe=0;Pe<G.length;Pe++)Ue?(this.print_token_line_indentation(w),this._output.add_token(H(G[Pe]))):Ve&&G[Pe]?(this.print_token_line_indentation(w),this._output.add_token(G[Pe].substring(tt))):(this._output.current_line.set_indent(-1),this._output.add_token(G[Pe])),this.print_newline(!1,Z);this._flags.alignment=0}},te.prototype.handle_comment=function(w,Z){w.newlines?this.print_newline(!1,Z):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(w),this.print_newline(!1,Z)},te.prototype.handle_dot=function(w){this.start_of_statement(w)||this.handle_whitespace_and_comments(w,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),j(this._flags.last_token,J)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(w,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(w)},te.prototype.handle_unknown=function(w,Z){this.print_token(w),w.text[w.text.length-1]===`
`&&this.print_newline(!1,Z)},te.prototype.handle_eof=function(w){for(;this._flags.mode===Ae.Statement;)this.restore_mode();this.handle_whitespace_and_comments(w)},oe.exports.Beautifier=te},function(oe){function o(S){this.__parent=S,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 S=new o(this.__parent);return S.set_indent(this.__indent_count,this.__alignment_count),S},o.prototype.item=function(S){return S<0?this.__items[this.__items.length+S]:this.__items[S]},o.prototype.has_match=function(S){for(var b=this.__items.length-1;b>=0;b--)if(this.__items[b].match(S))return!0;return!1},o.prototype.set_indent=function(S,b){this.is_empty()&&(this.__indent_count=S||0,this.__alignment_count=b||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 S=this.__parent.current_line;return S.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),S.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),S.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,S.__items[0]===" "&&(S.__items.splice(0,1),S.__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(S){this.__items.push(S);var b=S.lastIndexOf(`
`);b!==-1?this.__character_count=S.length-b:this.__character_count+=S.length},o.prototype.pop=function(){var S=null;return this.is_empty()||(S=this.__items.pop(),this.__character_count-=S.length),S},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 S="";return this.is_empty()?this.__parent.indent_empty_lines&&(S=this.__parent.get_indent_string(this.__indent_count)):(S=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),S+=this.__items.join("")),S};function ne(S,b){this.__cache=[""],this.__indent_size=S.indent_size,this.__indent_string=S.indent_char,S.indent_with_tabs||(this.__indent_string=new Array(S.indent_size+1).join(S.indent_char)),b=b||"",S.indent_level>0&&(b=new Array(S.indent_level+1).join(this.__indent_string)),this.__base_string=b,this.__base_string_length=b.length}ne.prototype.get_indent_size=function(S,b){var A=this.__base_string_length;return b=b||0,S<0&&(A=0),A+=S*this.__indent_size,A+=b,A},ne.prototype.get_indent_string=function(S,b){var A=this.__base_string;return b=b||0,S<0&&(S=0,A=""),b+=S*this.__indent_size,this.__ensure_cache(b),A+=this.__cache[b],A},ne.prototype.__ensure_cache=function(S){for(;S>=this.__cache.length;)this.__add_column()},ne.prototype.__add_column=function(){var S=this.__cache.length,b=0,A="";this.__indent_size&&S>=this.__indent_size&&(b=Math.floor(S/this.__indent_size),S-=b*this.__indent_size,A=new Array(b+1).join(this.__indent_string)),S&&(A+=new Array(S+1).join(" ")),this.__cache.push(A)};function N(S,b){this.__indent_cache=new ne(S,b),this.raw=!1,this._end_with_newline=S.end_with_newline,this.indent_size=S.indent_size,this.wrap_line_length=S.wrap_line_length,this.indent_empty_lines=S.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()}N.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},N.prototype.get_line_number=function(){return this.__lines.length},N.prototype.get_indent_string=function(S,b){return this.__indent_cache.get_indent_string(S,b)},N.prototype.get_indent_size=function(S,b){return this.__indent_cache.get_indent_size(S,b)},N.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},N.prototype.add_new_line=function(S){return this.is_empty()||!S&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},N.prototype.get_code=function(S){this.trim(!0);var b=this.current_line.pop();b&&(b[b.length-1]===`
`&&(b=b.replace(/\n+$/g,"")),this.current_line.push(b)),this._end_with_newline&&this.__add_outputline();var A=this.__lines.join(`
`);return S!==`
`&&(A=A.replace(/[\n]/g,S)),A},N.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},N.prototype.set_indent=function(S,b){return S=S||0,b=b||0,this.next_line.set_indent(S,b),this.__lines.length>1?(this.current_line.set_indent(S,b),!0):(this.current_line.set_indent(),!1)},N.prototype.add_raw_token=function(S){for(var b=0;b<S.newlines;b++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(S.whitespace_before),this.current_line.push(S.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},N.prototype.add_token=function(S){this.__add_space_before_token(),this.current_line.push(S),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},N.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(" "))},N.prototype.remove_indent=function(S){for(var b=this.__lines.length;S<b;)this.__lines[S]._remove_indent(),S++;this.current_line._remove_wrap_indent()},N.prototype.trim=function(S){for(S=S===void 0?!1:S,this.current_line.trim();S&&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},N.prototype.just_added_newline=function(){return this.current_line.is_empty()},N.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},N.prototype.ensure_empty_line_above=function(S,b){for(var A=this.__lines.length-2;A>=0;){var I=this.__lines[A];if(I.is_empty())break;if(I.item(0).indexOf(S)!==0&&I.item(-1)!==b){this.__lines.splice(A+1,0,new o(this)),this.previous_line=this.__lines[this.__lines.length-2];break}A--}},oe.exports.Output=N},function(oe){function o(ne,N,S,b){this.type=ne,this.text=N,this.comments_before=null,this.newlines=S||0,this.whitespace_before=b||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}oe.exports.Token=o},function(oe,o){var ne="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",N="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",S="\\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",b="\\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",A="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",I="(?:"+A+"|["+ne+S+"])",X="(?:"+A+"|["+N+S+b+"])*";o.identifier=new RegExp(I+X,"g"),o.identifierStart=new RegExp(I),o.identifierMatch=new RegExp("(?:"+A+"|["+N+S+b+"])+");var ie=/[\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(oe,o,ne){var N=ne(6).Options,S=["before-newline","after-newline","preserve-newline"];function b(A){N.call(this,A,"js");var I=this.raw_options.brace_style||null;I==="expand-strict"?this.raw_options.brace_style="expand":I==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var X=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var ie=0;ie<X.length;ie++)X[ie]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=X[ie];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",S),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}b.prototype=new N,oe.exports.Options=b},function(oe){function o(S,b){this.raw_options=ne(S,b),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(S,b){var A=this.raw_options[S],I=b||[];return typeof A=="object"?A!==null&&typeof A.concat=="function"&&(I=A.concat()):typeof A=="string"&&(I=A.split(/[^a-zA-Z0-9_\/\-]+/)),I},o.prototype._get_boolean=function(S,b){var A=this.raw_options[S],I=A===void 0?!!b:!!A;return I},o.prototype._get_characters=function(S,b){var A=this.raw_options[S],I=b||"";return typeof A=="string"&&(I=A.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),I},o.prototype._get_number=function(S,b){var A=this.raw_options[S];b=parseInt(b,10),isNaN(b)&&(b=0);var I=parseInt(A,10);return isNaN(I)&&(I=b),I},o.prototype._get_selection=function(S,b,A){var I=this._get_selection_list(S,b,A);if(I.length!==1)throw new Error("Invalid Option Value: The option '"+S+`' can only be one of the following values:
`+b+`
You passed in: '`+this.raw_options[S]+"'");return I[0]},o.prototype._get_selection_list=function(S,b,A){if(!b||b.length===0)throw new Error("Selection list cannot be empty.");if(A=A||[b[0]],!this._is_valid_selection(A,b))throw new Error("Invalid Default Value!");var I=this._get_array(S,A);if(!this._is_valid_selection(I,b))throw new Error("Invalid Option Value: The option '"+S+`' can contain only the following values:
`+b+`
You passed in: '`+this.raw_options[S]+"'");return I},o.prototype._is_valid_selection=function(S,b){return S.length&&b.length&&!S.some(function(A){return b.indexOf(A)===-1})};function ne(S,b){var A={};S=N(S);var I;for(I in S)I!==b&&(A[I]=S[I]);if(b&&S[b])for(I in S[b])A[I]=S[b][I];return A}function N(S){var b={},A;for(A in S){var I=A.replace(/-/g,"_");b[I]=S[A]}return b}oe.exports.Options=o,oe.exports.normalizeOpts=N,oe.exports.mergeOpts=ne},function(oe,o,ne){var N=ne(8).InputScanner,S=ne(9).Tokenizer,b=ne(9).TOKEN,A=ne(13).Directives,I=ne(4),X=ne(12).Pattern,ie=ne(14).TemplatablePattern;function P(V,ue){return ue.indexOf(V)!==-1}var B={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:b.START,RAW:b.RAW,EOF:b.EOF},H=new A(/\/\*/,/\*\//),le=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,k=/[0-9]/,j=/[^\d\.]/,J=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),Q=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";Q=Q.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),Q="\\?\\.(?!\\d) "+Q,Q=Q.replace(/ /g,"|");var de=new RegExp(Q),Se="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),Ae=Se.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),Me=new RegExp("^(?:"+Ae.join("|")+")$"),ee,F=function(V,ue){S.call(this,V,ue),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var te=new X(this._input),y=new ie(this._input).read_options(this._options);this.__patterns={template:y,identifier:y.starting_with(I.identifier).matching(I.identifierMatch),number:te.matching(le),punct:te.matching(de),comment:te.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:te.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:te.matching(/<!--/),html_comment_end:te.matching(/-->/),include:te.starting_with(/#include/).until_after(I.lineBreak),shebang:te.starting_with(/#!/).until_after(I.lineBreak),xml:te.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:y.until(/['\\\n\r\u2028\u2029]/),double_quote:y.until(/["\\\n\r\u2028\u2029]/),template_text:y.until(/[`\\$]/),template_expression:y.until(/[`}\\]/)}};F.prototype=new S,F.prototype._is_comment=function(V){return V.type===B.COMMENT||V.type===B.BLOCK_COMMENT||V.type===B.UNKNOWN},F.prototype._is_opening=function(V){return V.type===B.START_BLOCK||V.type===B.START_EXPR},F.prototype._is_closing=function(V,ue){return(V.type===B.END_BLOCK||V.type===B.END_EXPR)&&ue&&(V.text==="]"&&ue.text==="["||V.text===")"&&ue.text==="("||V.text==="}"&&ue.text==="{")},F.prototype._reset=function(){ee=!1},F.prototype._get_next_token=function(V,ue){var te=null;this._readWhitespace();var y=this._input.peek();return y===null?this._create_token(B.EOF,""):(te=te||this._read_non_javascript(y),te=te||this._read_string(y),te=te||this._read_pair(y,this._input.peek(1)),te=te||this._read_word(V),te=te||this._read_singles(y),te=te||this._read_comment(y),te=te||this._read_regexp(y,V),te=te||this._read_xml(y,V),te=te||this._read_punctuation(),te=te||this._create_token(B.UNKNOWN,this._input.next()),te)},F.prototype._read_word=function(V){var ue;if(ue=this.__patterns.identifier.read(),ue!=="")return ue=ue.replace(I.allLineBreaks,`
`),!(V.type===B.DOT||V.type===B.RESERVED&&(V.text==="set"||V.text==="get"))&&Me.test(ue)?(ue==="in"||ue==="of")&&(V.type===B.WORD||V.type===B.STRING)?this._create_token(B.OPERATOR,ue):this._create_token(B.RESERVED,ue):this._create_token(B.WORD,ue);if(ue=this.__patterns.number.read(),ue!=="")return this._create_token(B.WORD,ue)},F.prototype._read_singles=function(V){var ue=null;return V==="("||V==="["?ue=this._create_token(B.START_EXPR,V):V===")"||V==="]"?ue=this._create_token(B.END_EXPR,V):V==="{"?ue=this._create_token(B.START_BLOCK,V):V==="}"?ue=this._create_token(B.END_BLOCK,V):V===";"?ue=this._create_token(B.SEMICOLON,V):V==="."&&j.test(this._input.peek(1))?ue=this._create_token(B.DOT,V):V===","&&(ue=this._create_token(B.COMMA,V)),ue&&this._input.next(),ue},F.prototype._read_pair=function(V,ue){var te=null;return V==="#"&&ue==="{"&&(te=this._create_token(B.START_BLOCK,V+ue)),te&&(this._input.next(),this._input.next()),te},F.prototype._read_punctuation=function(){var V=this.__patterns.punct.read();if(V!=="")return V==="="?this._create_token(B.EQUALS,V):V==="?."?this._create_token(B.DOT,V):this._create_token(B.OPERATOR,V)},F.prototype._read_non_javascript=function(V){var ue="";if(V==="#"){if(this._is_first_token()&&(ue=this.__patterns.shebang.read(),ue))return this._create_token(B.UNKNOWN,ue.trim()+`
`);if(ue=this.__patterns.include.read(),ue)return this._create_token(B.UNKNOWN,ue.trim()+`
`);V=this._input.next();var te="#";if(this._input.hasNext()&&this._input.testChar(k)){do V=this._input.next(),te+=V;while(this._input.hasNext()&&V!=="#"&&V!=="=");return V==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(te+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(te+="{}",this._input.next(),this._input.next())),this._create_token(B.WORD,te)}this._input.back()}else if(V==="<"&&this._is_first_token()){if(ue=this.__patterns.html_comment_start.read(),ue){for(;this._input.hasNext()&&!this._input.testChar(I.newline);)ue+=this._input.next();return ee=!0,this._create_token(B.COMMENT,ue)}}else if(ee&&V==="-"&&(ue=this.__patterns.html_comment_end.read(),ue))return ee=!1,this._create_token(B.COMMENT,ue);return null},F.prototype._read_comment=function(V){var ue=null;if(V==="/"){var te="";if(this._input.peek(1)==="*"){te=this.__patterns.block_comment.read();var y=H.get_directives(te);y&&y.ignore==="start"&&(te+=H.readIgnored(this._input)),te=te.replace(I.allLineBreaks,`
`),ue=this._create_token(B.BLOCK_COMMENT,te),ue.directives=y}else this._input.peek(1)==="/"&&(te=this.__patterns.comment.read(),ue=this._create_token(B.COMMENT,te))}return ue},F.prototype._read_string=function(V){if(V==="`"||V==="'"||V==='"'){var ue=this._input.next();return this.has_char_escapes=!1,V==="`"?ue+=this._read_string_recursive("`",!0,"${"):ue+=this._read_string_recursive(V),this.has_char_escapes&&this._options.unescape_strings&&(ue=Y(ue)),this._input.peek()===V&&(ue+=this._input.next()),ue=ue.replace(I.allLineBreaks,`
`),this._create_token(B.STRING,ue)}return null},F.prototype._allow_regexp_or_xml=function(V){return V.type===B.RESERVED&&P(V.text,["return","case","throw","else","do","typeof","yield"])||V.type===B.END_EXPR&&V.text===")"&&V.opened.previous.type===B.RESERVED&&P(V.opened.previous.text,["if","while","for"])||P(V.type,[B.COMMENT,B.START_EXPR,B.START_BLOCK,B.START,B.END_BLOCK,B.OPERATOR,B.EQUALS,B.EOF,B.SEMICOLON,B.COMMA])},F.prototype._read_regexp=function(V,ue){if(V==="/"&&this._allow_regexp_or_xml(ue)){for(var te=this._input.next(),y=!1,w=!1;this._input.hasNext()&&(y||w||this._input.peek()!==V)&&!this._input.testChar(I.newline);)te+=this._input.peek(),y?y=!1:(y=this._input.peek()==="\\",this._input.peek()==="["?w=!0:this._input.peek()==="]"&&(w=!1)),this._input.next();return this._input.peek()===V&&(te+=this._input.next(),te+=this._input.read(I.identifier)),this._create_token(B.STRING,te)}return null},F.prototype._read_xml=function(V,ue){if(this._options.e4x&&V==="<"&&this._allow_regexp_or_xml(ue)){var te="",y=this.__patterns.xml.read_match();if(y){for(var w=y[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),Z=w.indexOf("{")===0,G=0;y;){var Pe=!!y[1],Ue=y[2],Ve=!!y[y.length-1]||Ue.slice(0,8)==="![CDATA[";if(!Ve&&(Ue===w||Z&&Ue.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(Pe?--G:++G),te+=y[0],G<=0)break;y=this.__patterns.xml.read_match()}return y||(te+=this._input.match(/[\s\S]*/g)[0]),te=te.replace(I.allLineBreaks,`
`),this._create_token(B.STRING,te)}}return null};function Y(V){for(var ue="",te=0,y=new N(V),w=null;y.hasNext();)if(w=y.match(/([\s]|[^\\]|\\\\)+/g),w&&(ue+=w[0]),y.peek()==="\\"){if(y.next(),y.peek()==="x")w=y.match(/x([0-9A-Fa-f]{2})/g);else if(y.peek()==="u")w=y.match(/u([0-9A-Fa-f]{4})/g),w||(w=y.match(/u\{([0-9A-Fa-f]+)\}/g));else{ue+="\\",y.hasNext()&&(ue+=y.next());continue}if(!w||(te=parseInt(w[1],16),te>126&&te<=255&&w[0].indexOf("x")===0))return V;te>=0&&te<32||te>1114111?ue+="\\"+w[0]:te===34||te===39||te===92?ue+="\\"+String.fromCharCode(te):ue+=String.fromCharCode(te)}return ue}F.prototype._read_string_recursive=function(V,ue,te){var y,w;V==="'"?w=this.__patterns.single_quote:V==='"'?w=this.__patterns.double_quote:V==="`"?w=this.__patterns.template_text:V==="}"&&(w=this.__patterns.template_expression);for(var Z=w.read(),G="";this._input.hasNext();){if(G=this._input.next(),G===V||!ue&&I.newline.test(G)){this._input.back();break}else G==="\\"&&this._input.hasNext()?(y=this._input.peek(),y==="x"||y==="u"?this.has_char_escapes=!0:y==="\r"&&this._input.peek(1)===`
`&&this._input.next(),G+=this._input.next()):te&&(te==="${"&&G==="$"&&this._input.peek()==="{"&&(G+=this._input.next()),te===G&&(V==="`"?G+=this._read_string_recursive("}",ue,"`"):G+=this._read_string_recursive("`",ue,"${"),this._input.hasNext()&&(G+=this._input.next())));G+=w.read(),Z+=G}return Z},oe.exports.Tokenizer=F,oe.exports.TOKEN=B,oe.exports.positionable_operators=J.slice(),oe.exports.line_starters=Se.slice()},function(oe){var o=RegExp.prototype.hasOwnProperty("sticky");function ne(N){this.__input=N||"",this.__input_length=this.__input.length,this.__position=0}ne.prototype.restart=function(){this.__position=0},ne.prototype.back=function(){this.__position>0&&(this.__position-=1)},ne.prototype.hasNext=function(){return this.__position<this.__input_length},ne.prototype.next=function(){var N=null;return this.hasNext()&&(N=this.__input.charAt(this.__position),this.__position+=1),N},ne.prototype.peek=function(N){var S=null;return N=N||0,N+=this.__position,N>=0&&N<this.__input_length&&(S=this.__input.charAt(N)),S},ne.prototype.__match=function(N,S){N.lastIndex=S;var b=N.exec(this.__input);return b&&!(o&&N.sticky)&&b.index!==S&&(b=null),b},ne.prototype.test=function(N,S){return S=S||0,S+=this.__position,S>=0&&S<this.__input_length?!!this.__match(N,S):!1},ne.prototype.testChar=function(N,S){var b=this.peek(S);return N.lastIndex=0,b!==null&&N.test(b)},ne.prototype.match=function(N){var S=this.__match(N,this.__position);return S?this.__position+=S[0].length:S=null,S},ne.prototype.read=function(N,S,b){var A="",I;return N&&(I=this.match(N),I&&(A+=I[0])),S&&(I||!N)&&(A+=this.readUntil(S,b)),A},ne.prototype.readUntil=function(N,S){var b="",A=this.__position;N.lastIndex=this.__position;var I=N.exec(this.__input);return I?(A=I.index,S&&(A+=I[0].length)):A=this.__input_length,b=this.__input.substring(this.__position,A),this.__position=A,b},ne.prototype.readUntilAfter=function(N){return this.readUntil(N,!0)},ne.prototype.get_regexp=function(N,S){var b=null,A="g";return S&&o&&(A="y"),typeof N=="string"&&N!==""?b=new RegExp(N,A):N&&(b=new RegExp(N.source,A)),b},ne.prototype.get_literal_regexp=function(N){return RegExp(N.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},ne.prototype.peekUntilAfter=function(N){var S=this.__position,b=this.readUntilAfter(N);return this.__position=S,b},ne.prototype.lookBack=function(N){var S=this.__position-1;return S>=N.length&&this.__input.substring(S-N.length,S).toLowerCase()===N},oe.exports.InputScanner=ne},function(oe,o,ne){var N=ne(8).InputScanner,S=ne(3).Token,b=ne(10).TokenStream,A=ne(11).WhitespacePattern,I={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},X=function(ie,P){this._input=new N(ie),this._options=P||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new A(this._input)};X.prototype.tokenize=function(){this._input.restart(),this.__tokens=new b,this._reset();for(var ie,P=new S(I.START,""),B=null,H=[],le=new b;P.type!==I.EOF;){for(ie=this._get_next_token(P,B);this._is_comment(ie);)le.add(ie),ie=this._get_next_token(P,B);le.isEmpty()||(ie.comments_before=le,le=new b),ie.parent=B,this._is_opening(ie)?(H.push(B),B=ie):B&&this._is_closing(ie,B)&&(ie.opened=B,B.closed=ie,B=H.pop(),ie.parent=B),ie.previous=P,P.next=ie,this.__tokens.add(ie),P=ie}return this.__tokens},X.prototype._is_first_token=function(){return this.__tokens.isEmpty()},X.prototype._reset=function(){},X.prototype._get_next_token=function(ie,P){this._readWhitespace();var B=this._input.read(/.+/g);return B?this._create_token(I.RAW,B):this._create_token(I.EOF,"")},X.prototype._is_comment=function(ie){return!1},X.prototype._is_opening=function(ie){return!1},X.prototype._is_closing=function(ie,P){return!1},X.prototype._create_token=function(ie,P){var B=new S(ie,P,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return B},X.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},oe.exports.Tokenizer=X,oe.exports.TOKEN=I},function(oe){function o(ne){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=ne}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 ne=null;return this.hasNext()&&(ne=this.__tokens[this.__position],this.__position+=1),ne},o.prototype.peek=function(ne){var N=null;return ne=ne||0,ne+=this.__position,ne>=0&&ne<this.__tokens_length&&(N=this.__tokens[ne]),N},o.prototype.add=function(ne){this.__parent_token&&(ne.parent=this.__parent_token),this.__tokens.push(ne),this.__tokens_length+=1},oe.exports.TokenStream=o},function(oe,o,ne){var N=ne(12).Pattern;function S(b,A){N.call(this,b,A),A?this._line_regexp=this._input.get_regexp(A._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}S.prototype=new N,S.prototype.__set_whitespace_patterns=function(b,A){b+="\\t ",A+="\\n\\r",this._match_pattern=this._input.get_regexp("["+b+A+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+A+"]")},S.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var b=this._input.read(this._match_pattern);if(b===" ")this.whitespace_before_token=" ";else if(b){var A=this.__split(this._newline_regexp,b);this.newline_count=A.length-1,this.whitespace_before_token=A[this.newline_count]}return b},S.prototype.matching=function(b,A){var I=this._create();return I.__set_whitespace_patterns(b,A),I._update(),I},S.prototype._create=function(){return new S(this._input,this)},S.prototype.__split=function(b,A){b.lastIndex=0;for(var I=0,X=[],ie=b.exec(A);ie;)X.push(A.substring(I,ie.index)),I=ie.index+ie[0].length,ie=b.exec(A);return I<A.length?X.push(A.substring(I,A.length)):X.push(""),X},oe.exports.WhitespacePattern=S},function(oe){function o(ne,N){this._input=ne,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,N&&(this._starting_pattern=this._input.get_regexp(N._starting_pattern,!0),this._match_pattern=this._input.get_regexp(N._match_pattern,!0),this._until_pattern=this._input.get_regexp(N._until_pattern),this._until_after=N._until_after)}o.prototype.read=function(){var ne=this._input.read(this._starting_pattern);return(!this._starting_pattern||ne)&&(ne+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),ne},o.prototype.read_match=function(){return this._input.match(this._match_pattern)},o.prototype.until_after=function(ne){var N=this._create();return N._until_after=!0,N._until_pattern=this._input.get_regexp(ne),N._update(),N},o.prototype.until=function(ne){var N=this._create();return N._until_after=!1,N._until_pattern=this._input.get_regexp(ne),N._update(),N},o.prototype.starting_with=function(ne){var N=this._create();return N._starting_pattern=this._input.get_regexp(ne,!0),N._update(),N},o.prototype.matching=function(ne){var N=this._create();return N._match_pattern=this._input.get_regexp(ne,!0),N._update(),N},o.prototype._create=function(){return new o(this._input,this)},o.prototype._update=function(){},oe.exports.Pattern=o},function(oe){function o(ne,N){ne=typeof ne=="string"?ne:ne.source,N=typeof N=="string"?N:N.source,this.__directives_block_pattern=new RegExp(ne+/ beautify( \w+[:]\w+)+ /.source+N,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(ne+/\sbeautify\signore:end\s/.source+N,"g")}o.prototype.get_directives=function(ne){if(!ne.match(this.__directives_block_pattern))return null;var N={};this.__directive_pattern.lastIndex=0;for(var S=this.__directive_pattern.exec(ne);S;)N[S[1]]=S[2],S=this.__directive_pattern.exec(ne);return N},o.prototype.readIgnored=function(ne){return ne.readUntilAfter(this.__directives_end_ignore_pattern)},oe.exports.Directives=o},function(oe,o,ne){var N=ne(12).Pattern,S={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function b(A,I){N.call(this,A,I),this.__template_pattern=null,this._disabled=Object.assign({},S),this._excluded=Object.assign({},S),I&&(this.__template_pattern=this._input.get_regexp(I.__template_pattern),this._excluded=Object.assign(this._excluded,I._excluded),this._disabled=Object.assign(this._disabled,I._disabled));var X=new N(A);this.__patterns={handlebars_comment:X.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:X.starting_with(/{{{/).until_after(/}}}/),handlebars:X.starting_with(/{{/).until_after(/}}/),php:X.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:X.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:X.starting_with(/{%/).until_after(/%}/),django_value:X.starting_with(/{{/).until_after(/}}/),django_comment:X.starting_with(/{#/).until_after(/#}/),smarty:X.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:X.starting_with(/{\*/).until_after(/\*}/),smarty_literal:X.starting_with(/{literal}/).until_after(/{\/literal}/)}}b.prototype=new N,b.prototype._create=function(){return new b(this._input,this)},b.prototype._update=function(){this.__set_templated_pattern()},b.prototype.disable=function(A){var I=this._create();return I._disabled[A]=!0,I._update(),I},b.prototype.read_options=function(A){var I=this._create();for(var X in S)I._disabled[X]=A.templating.indexOf(X)===-1;return I._update(),I},b.prototype.exclude=function(A){var I=this._create();return I._excluded[A]=!0,I._update(),I},b.prototype.read=function(){var A="";this._match_pattern?A=this._input.read(this._starting_pattern):A=this._input.read(this._starting_pattern,this.__template_pattern);for(var I=this._read_template();I;)this._match_pattern?I+=this._input.read(this._match_pattern):I+=this._input.readUntil(this.__template_pattern),A+=I,I=this._read_template();return this._until_after&&(A+=this._input.readUntilAfter(this._until_pattern)),A},b.prototype.__set_templated_pattern=function(){var A=[];this._disabled.php||A.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||A.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||A.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||A.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(A.push(this.__patterns.django._starting_pattern.source),A.push(this.__patterns.django_value._starting_pattern.source),A.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||A.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&A.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+A.join("|")+")")},b.prototype._read_template=function(){var A="",I=this._input.peek();if(I==="<"){var X=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&X==="?"&&(A=A||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&X==="%"&&(A=A||this.__patterns.erb.read())}else I==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(A=A||this.__patterns.handlebars_comment.read(),A=A||this.__patterns.handlebars_unescaped.read(),A=A||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(A=A||this.__patterns.django_value.read()),this._excluded.django||(A=A||this.__patterns.django_comment.read(),A=A||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(A=A||this.__patterns.smarty_comment.read(),A=A||this.__patterns.smarty_literal.read(),A=A||this.__patterns.smarty.read()));return A},oe.exports.TemplatablePattern=b}],O={};function p(oe){var o=O[oe];if(o!==void 0)return o.exports;var ne=O[oe]={exports:{}};return pe[oe](ne,ne.exports,p),ne.exports}var ce=p(0);q=ce})();var xe=q;x=[],v=function(){return{js_beautify:xe}}.apply(ot,x),v!==void 0&&(nr.exports=v)})()},15342:function(nr){(function(x,v){nr.exports=v()})(typeof self!="undefined"?self:this,function(){return function(ot){var x={};function v(q){if(x[q])return x[q].exports;var xe=x[q]={i:q,l:!1,exports:{}};return ot[q].call(xe.exports,xe,xe.exports,v),xe.l=!0,xe.exports}return v.m=ot,v.c=x,v.d=function(q,xe,pe){v.o(q,xe)||Object.defineProperty(q,xe,{enumerable:!0,get:pe})},v.r=function(q){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(q,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(q,"__esModule",{value:!0})},v.t=function(q,xe){if(xe&1&&(q=v(q)),xe&8||xe&4&&typeof q=="object"&&q&&q.__esModule)return q;var pe=Object.create(null);if(v.r(pe),Object.defineProperty(pe,"default",{enumerable:!0,value:q}),xe&2&&typeof q!="string")for(var O in q)v.d(pe,O,function(p){return q[p]}.bind(null,O));return pe},v.n=function(q){var xe=q&&q.__esModule?function(){return q.default}:function(){return q};return v.d(xe,"a",xe),xe},v.o=function(q,xe){return Object.prototype.hasOwnProperty.call(q,xe)},v.p="",v(v.s=1)}([function(ot,x,v){},function(ot,x,v){"use strict";v.r(x);var q=v(0),xe=function(){function z(u,h,f){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=u,this.start=h,this.end=f}return z.range=function(h,f){return f?!h||!h.loc||!f.loc||h.loc.lexer!==f.loc.lexer?null:new z(h.loc.lexer,h.loc.start,f.loc.end):h&&h.loc},z}(),pe=function(){function z(h,f){this.text=void 0,this.loc=void 0,this.text=h,this.loc=f}var u=z.prototype;return u.range=function(f,g){return new z(g,xe.range(this,f))},z}(),O=function z(u,h){this.position=void 0;var f="KaTeX parse error: "+u,g,D=h&&h.loc;if(D&&D.start<=D.end){var $=D.lexer.input;g=D.start;var _e=D.end;g===$.length?f+=" at end of input: ":f+=" at position "+(g+1)+": ";var De=$.slice(g,_e).replace(/[^]/g,"$&\u0332"),He;g>15?He="\u2026"+$.slice(g-15,g):He=$.slice(0,g);var ft;_e+15<$.length?ft=$.slice(_e,_e+15)+"\u2026":ft=$.slice(_e),f+=He+De+ft}var Ct=new Error(f);return Ct.name="ParseError",Ct.__proto__=z.prototype,Ct.position=g,Ct};O.prototype.__proto__=Error.prototype;var p=O,ce=function(u,h){return u.indexOf(h)!==-1},oe=function(u,h){return u===void 0?h:u},o=/([A-Z])/g,ne=function(u){return u.replace(o,"-$1").toLowerCase()},N={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},S=/[&><"']/g;function b(z){return String(z).replace(S,function(u){return N[u]})}var A=function z(u){return u.type==="ordgroup"||u.type==="color"?u.body.length===1?z(u.body[0]):u:u.type==="font"?z(u.body):u},I=function(u){var h=A(u);return h.type==="mathord"||h.type==="textord"||h.type==="atom"},X=function(u){if(!u)throw new Error("Expected non-null, but got "+String(u));return u},ie=function(u){var h=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(u);return h!=null?h[1]:"_relative"},P={contains:ce,deflt:oe,escape:b,hyphenate:ne,getBaseElem:A,isCharacterBox:I,protocolFromUrl:ie},B=function(){function z(h){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,h=h||{},this.displayMode=P.deflt(h.displayMode,!1),this.output=P.deflt(h.output,"htmlAndMathml"),this.leqno=P.deflt(h.leqno,!1),this.fleqn=P.deflt(h.fleqn,!1),this.throwOnError=P.deflt(h.throwOnError,!0),this.errorColor=P.deflt(h.errorColor,"#cc0000"),this.macros=h.macros||{},this.minRuleThickness=Math.max(0,P.deflt(h.minRuleThickness,0)),this.colorIsTextColor=P.deflt(h.colorIsTextColor,!1),this.strict=P.deflt(h.strict,"warn"),this.trust=P.deflt(h.trust,!1),this.maxSize=Math.max(0,P.deflt(h.maxSize,1/0)),this.maxExpand=Math.max(0,P.deflt(h.maxExpand,1e3))}var u=z.prototype;return u.reportNonstrict=function(f,g,D){var $=this.strict;if(typeof $=="function"&&($=$(f,g,D)),!(!$||$==="ignore")){if($===!0||$==="error")throw new p("LaTeX-incompatible input and strict mode is set to 'error': "+(g+" ["+f+"]"),D);$==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(g+" ["+f+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+$+"': "+g+" ["+f+"]"))}},u.useStrictBehavior=function(f,g,D){var $=this.strict;if(typeof $=="function")try{$=$(f,g,D)}catch(_e){$="error"}return!$||$==="ignore"?!1:$===!0||$==="error"?!0:$==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(g+" ["+f+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+$+"': "+g+" ["+f+"]")),!1)},u.isTrusted=function(f){f.url&&!f.protocol&&(f.protocol=P.protocolFromUrl(f.url));var g=typeof this.trust=="function"?this.trust(f):this.trust;return!!g},z}(),H=function(){function z(h,f,g){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=h,this.size=f,this.cramped=g}var u=z.prototype;return u.sup=function(){return Me[ee[this.id]]},u.sub=function(){return Me[F[this.id]]},u.fracNum=function(){return Me[Y[this.id]]},u.fracDen=function(){return Me[V[this.id]]},u.cramp=function(){return Me[ue[this.id]]},u.text=function(){return Me[te[this.id]]},u.isTight=function(){return this.size>=2},z}(),le=0,k=1,j=2,J=3,Q=4,de=5,Se=6,Ae=7,Me=[new H(le,0,!1),new H(k,0,!0),new H(j,1,!1),new H(J,1,!0),new H(Q,2,!1),new H(de,2,!0),new H(Se,3,!1),new H(Ae,3,!0)],ee=[Q,de,Q,de,Se,Ae,Se,Ae],F=[de,de,de,de,Ae,Ae,Ae,Ae],Y=[j,J,Q,de,Se,Ae,Se,Ae],V=[J,J,de,de,Ae,Ae,Ae,Ae],ue=[k,k,J,J,de,de,Ae,Ae],te=[le,k,j,J,j,J,j,J],y={DISPLAY:Me[le],TEXT:Me[j],SCRIPT:Me[Q],SCRIPTSCRIPT:Me[Se]},w=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Z(z){for(var u=0;u<w.length;u++)for(var h=w[u],f=0;f<h.blocks.length;f++){var g=h.blocks[f];if(z>=g[0]&&z<=g[1])return h.name}return null}var G=[];w.forEach(function(z){return z.blocks.forEach(function(u){return G.push.apply(G,u)})});function Pe(z){for(var u=0;u<G.length;u+=2)if(z>=G[u]&&z<=G[u+1])return!0;return!1}var Ue=80,Ve=function(u,h){return"M95,"+(622+u+h)+`
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
c69,-144,104.5,-217.7,106.5,-221
l`+u/2.075+" -"+u+`
c5.3,-9.3,12,-14,20,-14
H400000v`+(40+u)+`H845.2724
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
M`+(834+u)+" "+h+"h400000v"+(40+u)+"h-400000z"},Xe=function(u,h){return"M263,"+(601+u+h)+`c0.7,0,18,39.7,52,119
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
c340,-704.7,510.7,-1060.3,512,-1067
l`+u/2.084+" -"+u+`
c4.7,-7.3,11,-11,19,-11
H40000v`+(40+u)+`H1012.3
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
M`+(1001+u)+" "+h+"h400000v"+(40+u)+"h-400000z"},tt=function(u,h){return"M983 "+(10+u+h)+`
l`+u/3.13+" -"+u+`
c4,-6.7,10,-10,18,-10 H400000v`+(40+u)+`
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
M`+(1001+u)+" "+h+"h400000v"+(40+u)+"h-400000z"},at=function(u,h){return"M424,"+(2398+u+h)+`
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
l`+u/4.223+" -"+u+`c4,-6.7,10,-10,18,-10 H400000
v`+(40+u)+`H1014.6
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2z M`+(1001+u)+" "+h+`
h400000v`+(40+u)+"h-400000z"},mt=function(u,h){return"M473,"+(2713+u+h)+`
c339.3,-1799.3,509.3,-2700,510,-2702 l`+u/5.298+" -"+u+`
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+u)+`H1017.7
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
606zM`+(1001+u)+" "+h+"h400000v"+(40+u)+"H1017.7z"},Ut=function(u,h,f){var g=f-54-h-u;return"M702 "+(u+h)+"H400000"+(40+u)+`
H742v`+g+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
219 661 l218 661zM702 `+h+"H400000v"+(40+u)+"H742z"},tr=function(u,h,f){h=1e3*h;var g="";switch(u){case"sqrtMain":g=Ve(h,Ue);break;case"sqrtSize1":g=Xe(h,Ue);break;case"sqrtSize2":g=tt(h,Ue);break;case"sqrtSize3":g=at(h,Ue);break;case"sqrtSize4":g=mt(h,Ue);break;case"sqrtTall":g=Ut(h,Ue,f)}return g},Mt={doubleleftarrow:`M262 157
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
435 0h399565z`,leftgroupunder:`M400000 262
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},jt=function(){function z(h){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=h,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var u=z.prototype;return u.hasClass=function(f){return P.contains(this.classes,f)},u.toNode=function(){for(var f=document.createDocumentFragment(),g=0;g<this.children.length;g++)f.appendChild(this.children[g].toNode());return f},u.toMarkup=function(){for(var f="",g=0;g<this.children.length;g++)f+=this.children[g].toMarkup();return f},u.toText=function(){var f=function(D){return D.toText()};return this.children.map(f).join("")},z}(),Yt=function(u){return u.filter(function(h){return h}).join(" ")},er=function(u,h,f){if(this.classes=u||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=f||{},h){h.style.isTight()&&this.classes.push("mtight");var g=h.getColor();g&&(this.style.color=g)}},ge=function(u){var h=document.createElement(u);h.className=Yt(this.classes);for(var f in this.style)this.style.hasOwnProperty(f)&&(h.style[f]=this.style[f]);for(var g in this.attributes)this.attributes.hasOwnProperty(g)&&h.setAttribute(g,this.attributes[g]);for(var D=0;D<this.children.length;D++)h.appendChild(this.children[D].toNode());return h},fe=function(u){var h="<"+u;this.classes.length&&(h+=' class="'+P.escape(Yt(this.classes))+'"');var f="";for(var g in this.style)this.style.hasOwnProperty(g)&&(f+=P.hyphenate(g)+":"+this.style[g]+";");f&&(h+=' style="'+P.escape(f)+'"');for(var D in this.attributes)this.attributes.hasOwnProperty(D)&&(h+=" "+D+'="'+P.escape(this.attributes[D])+'"');h+=">";for(var $=0;$<this.children.length;$++)h+=this.children[$].toMarkup();return h+="</"+u+">",h},U=function(){function z(h,f,g,D){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,er.call(this,h,g,D),this.children=f||[]}var u=z.prototype;return u.setAttribute=function(f,g){this.attributes[f]=g},u.hasClass=function(f){return P.contains(this.classes,f)},u.toNode=function(){return ge.call(this,"span")},u.toMarkup=function(){return fe.call(this,"span")},z}(),ye=function(){function z(h,f,g,D){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,er.call(this,f,D),this.children=g||[],this.setAttribute("href",h)}var u=z.prototype;return u.setAttribute=function(f,g){this.attributes[f]=g},u.hasClass=function(f){return P.contains(this.classes,f)},u.toNode=function(){return ge.call(this,"a")},u.toMarkup=function(){return fe.call(this,"a")},z}(),Re=function(){function z(h,f,g){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=f,this.src=h,this.classes=["mord"],this.style=g}var u=z.prototype;return u.hasClass=function(f){return P.contains(this.classes,f)},u.toNode=function(){var f=document.createElement("img");f.src=this.src,f.alt=this.alt,f.className="mord";for(var g in this.style)this.style.hasOwnProperty(g)&&(f.style[g]=this.style[g]);return f},u.toMarkup=function(){var f="<img src='"+this.src+" 'alt='"+this.alt+"' ",g="";for(var D in this.style)this.style.hasOwnProperty(D)&&(g+=P.hyphenate(D)+":"+this.style[D]+";");return g&&(f+=' style="'+P.escape(g)+'"'),f+="'/>",f},z}(),M={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},se=function(){function z(h,f,g,D,$,_e,De,He){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=h,this.height=f||0,this.depth=g||0,this.italic=D||0,this.skew=$||0,this.width=_e||0,this.classes=De||[],this.style=He||{},this.maxFontSize=0;var ft=Z(this.text.charCodeAt(0));ft&&this.classes.push(ft+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=M[this.text])}var u=z.prototype;return u.hasClass=function(f){return P.contains(this.classes,f)},u.toNode=function(){var f=document.createTextNode(this.text),g=null;this.italic>0&&(g=document.createElement("span"),g.style.marginRight=this.italic+"em"),this.classes.length>0&&(g=g||document.createElement("span"),g.className=Yt(this.classes));for(var D in this.style)this.style.hasOwnProperty(D)&&(g=g||document.createElement("span"),g.style[D]=this.style[D]);return g?(g.appendChild(f),g):f},u.toMarkup=function(){var f=!1,g="<span";this.classes.length&&(f=!0,g+=' class="',g+=P.escape(Yt(this.classes)),g+='"');var D="";this.italic>0&&(D+="margin-right:"+this.italic+"em;");for(var $ in this.style)this.style.hasOwnProperty($)&&(D+=P.hyphenate($)+":"+this.style[$]+";");D&&(f=!0,g+=' style="'+P.escape(D)+'"');var _e=P.escape(this.text);return f?(g+=">",g+=_e,g+="</span>",g):_e},z}(),ve=function(){function z(h,f){this.children=void 0,this.attributes=void 0,this.children=h||[],this.attributes=f||{}}var u=z.prototype;return u.toNode=function(){var f="http://www.w3.org/2000/svg",g=document.createElementNS(f,"svg");for(var D in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,D)&&g.setAttribute(D,this.attributes[D]);for(var $=0;$<this.children.length;$++)g.appendChild(this.children[$].toNode());return g},u.toMarkup=function(){var f="<svg";for(var g in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,g)&&(f+=" "+g+"='"+this.attributes[g]+"'");f+=">";for(var D=0;D<this.children.length;D++)f+=this.children[D].toMarkup();return f+="</svg>",f},z}(),Ee=function(){function z(h,f){this.pathName=void 0,this.alternate=void 0,this.pathName=h,this.alternate=f}var u=z.prototype;return u.toNode=function(){var f="http://www.w3.org/2000/svg",g=document.createElementNS(f,"path");return this.alternate?g.setAttribute("d",this.alternate):g.setAttribute("d",Mt[this.pathName]),g},u.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+Mt[this.pathName]+"'/>"},z}(),ke=function(){function z(h){this.attributes=void 0,this.attributes=h||{}}var u=z.prototype;return u.toNode=function(){var f="http://www.w3.org/2000/svg",g=document.createElementNS(f,"line");for(var D in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,D)&&g.setAttribute(D,this.attributes[D]);return g},u.toMarkup=function(){var f="<line";for(var g in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,g)&&(f+=" "+g+"='"+this.attributes[g]+"'");return f+="/>",f},z}();function Fe(z){if(z instanceof se)return z;throw new Error("Expected symbolNode but got "+String(z)+".")}function qe(z){if(z instanceof U)return z;throw new Error("Expected span<HtmlDomNode> but got "+String(z)+".")}var gt={"AMS-Regular":{65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],163:[0,.69444,0,0,.86853],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],163:[0,.69444,0,0,.76909],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],305:[0,.43056,0,.02778,.32246],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],567:[.19444,.43056,0,.08334,.38403],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.744,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.744,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333]},"Math-Italic":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"Math-Regular":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212]},"Size1-Regular":{40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},ht={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Qe={\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Ft(z,u){gt[z]=u}function Lt(z,u,h){if(!gt[u])throw new Error("Font metrics not found for font: "+u+".");var f=z.charCodeAt(0),g=gt[u][f];if(!g&&z[0]in Qe&&(f=Qe[z[0]].charCodeAt(0),g=gt[u][f]),!g&&h==="text"&&Pe(f)&&(g=gt[u][77]),g)return{depth:g[0],height:g[1],italic:g[2],skew:g[3],width:g[4]}}var Le={};function Ke(z){var u;if(z>=5?u=0:z>=3?u=1:u=2,!Le[u]){var h=Le[u]={cssEmPerMu:ht.quad[u]/18};for(var f in ht)ht.hasOwnProperty(f)&&(h[f]=ht[f][u])}return Le[u]}var lt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},vt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Rt={math:{},text:{}},Gt=Rt;function E(z,u,h,f,g,D){Rt[z][g]={font:u,group:h,replace:f},D&&f&&(Rt[z][f]=Rt[z][g])}var T="math",nt="text",W="main",be="ams",rr="accent-token",$e="bin",je="close",Ze="inner",re="mathord",me="op-token",we="open",ze="punct",K="rel",Bt="spacing",Ce="textord";E(T,W,K,"\u2261","\\equiv",!0),E(T,W,K,"\u227A","\\prec",!0),E(T,W,K,"\u227B","\\succ",!0),E(T,W,K,"\u223C","\\sim",!0),E(T,W,K,"\u22A5","\\perp"),E(T,W,K,"\u2AAF","\\preceq",!0),E(T,W,K,"\u2AB0","\\succeq",!0),E(T,W,K,"\u2243","\\simeq",!0),E(T,W,K,"\u2223","\\mid",!0),E(T,W,K,"\u226A","\\ll",!0),E(T,W,K,"\u226B","\\gg",!0),E(T,W,K,"\u224D","\\asymp",!0),E(T,W,K,"\u2225","\\parallel"),E(T,W,K,"\u22C8","\\bowtie",!0),E(T,W,K,"\u2323","\\smile",!0),E(T,W,K,"\u2291","\\sqsubseteq",!0),E(T,W,K,"\u2292","\\sqsupseteq",!0),E(T,W,K,"\u2250","\\doteq",!0),E(T,W,K,"\u2322","\\frown",!0),E(T,W,K,"\u220B","\\ni",!0),E(T,W,K,"\u221D","\\propto",!0),E(T,W,K,"\u22A2","\\vdash",!0),E(T,W,K,"\u22A3","\\dashv",!0),E(T,W,K,"\u220B","\\owns"),E(T,W,ze,".","\\ldotp"),E(T,W,ze,"\u22C5","\\cdotp"),E(T,W,Ce,"#","\\#"),E(nt,W,Ce,"#","\\#"),E(T,W,Ce,"&","\\&"),E(nt,W,Ce,"&","\\&"),E(T,W,Ce,"\u2135","\\aleph",!0),E(T,W,Ce,"\u2200","\\forall",!0),E(T,W,Ce,"\u210F","\\hbar",!0),E(T,W,Ce,"\u2203","\\exists",!0),E(T,W,Ce,"\u2207","\\nabla",!0),E(T,W,Ce,"\u266D","\\flat",!0),E(T,W,Ce,"\u2113","\\ell",!0),E(T,W,Ce,"\u266E","\\natural",!0),E(T,W,Ce,"\u2663","\\clubsuit",!0),E(T,W,Ce,"\u2118","\\wp",!0),E(T,W,Ce,"\u266F","\\sharp",!0),E(T,W,Ce,"\u2662","\\diamondsuit",!0),E(T,W,Ce,"\u211C","\\Re",!0),E(T,W,Ce,"\u2661","\\heartsuit",!0),E(T,W,Ce,"\u2111","\\Im",!0),E(T,W,Ce,"\u2660","\\spadesuit",!0),E(nt,W,Ce,"\xA7","\\S",!0),E(nt,W,Ce,"\xB6","\\P",!0),E(T,W,Ce,"\u2020","\\dag"),E(nt,W,Ce,"\u2020","\\dag"),E(nt,W,Ce,"\u2020","\\textdagger"),E(T,W,Ce,"\u2021","\\ddag"),E(nt,W,Ce,"\u2021","\\ddag"),E(nt,W,Ce,"\u2021","\\textdaggerdbl"),E(T,W,je,"\u23B1","\\rmoustache",!0),E(T,W,we,"\u23B0","\\lmoustache",!0),E(T,W,je,"\u27EF","\\rgroup",!0),E(T,W,we,"\u27EE","\\lgroup",!0),E(T,W,$e,"\u2213","\\mp",!0),E(T,W,$e,"\u2296","\\ominus",!0),E(T,W,$e,"\u228E","\\uplus",!0),E(T,W,$e,"\u2293","\\sqcap",!0),E(T,W,$e,"\u2217","\\ast"),E(T,W,$e,"\u2294","\\sqcup",!0),E(T,W,$e,"\u25EF","\\bigcirc"),E(T,W,$e,"\u2219","\\bullet"),E(T,W,$e,"\u2021","\\ddagger"),E(T,W,$e,"\u2240","\\wr",!0),E(T,W,$e,"\u2A3F","\\amalg"),E(T,W,$e,"&","\\And"),E(T,W,K,"\u27F5","\\longleftarrow",!0),E(T,W,K,"\u21D0","\\Leftarrow",!0),E(T,W,K,"\u27F8","\\Longleftarrow",!0),E(T,W,K,"\u27F6","\\longrightarrow",!0),E(T,W,K,"\u21D2","\\Rightarrow",!0),E(T,W,K,"\u27F9","\\Longrightarrow",!0),E(T,W,K,"\u2194","\\leftrightarrow",!0),E(T,W,K,"\u27F7","\\longleftrightarrow",!0),E(T,W,K,"\u21D4","\\Leftrightarrow",!0),E(T,W,K,"\u27FA","\\Longleftrightarrow",!0),E(T,W,K,"\u21A6","\\mapsto",!0),E(T,W,K,"\u27FC","\\longmapsto",!0),E(T,W,K,"\u2197","\\nearrow",!0),E(T,W,K,"\u21A9","\\hookleftarrow",!0),E(T,W,K,"\u21AA","\\hookrightarrow",!0),E(T,W,K,"\u2198","\\searrow",!0),E(T,W,K,"\u21BC","\\leftharpoonup",!0),E(T,W,K,"\u21C0","\\rightharpoonup",!0),E(T,W,K,"\u2199","\\swarrow",!0),E(T,W,K,"\u21BD","\\leftharpoondown",!0),E(T,W,K,"\u21C1","\\rightharpoondown",!0),E(T,W,K,"\u2196","\\nwarrow",!0),E(T,W,K,"\u21CC","\\rightleftharpoons",!0),E(T,be,K,"\u226E","\\nless",!0),E(T,be,K,"\uE010","\\@nleqslant"),E(T,be,K,"\uE011","\\@nleqq"),E(T,be,K,"\u2A87","\\lneq",!0),E(T,be,K,"\u2268","\\lneqq",!0),E(T,be,K,"\uE00C","\\@lvertneqq"),E(T,be,K,"\u22E6","\\lnsim",!0),E(T,be,K,"\u2A89","\\lnapprox",!0),E(T,be,K,"\u2280","\\nprec",!0),E(T,be,K,"\u22E0","\\npreceq",!0),E(T,be,K,"\u22E8","\\precnsim",!0),E(T,be,K,"\u2AB9","\\precnapprox",!0),E(T,be,K,"\u2241","\\nsim",!0),E(T,be,K,"\uE006","\\@nshortmid"),E(T,be,K,"\u2224","\\nmid",!0),E(T,be,K,"\u22AC","\\nvdash",!0),E(T,be,K,"\u22AD","\\nvDash",!0),E(T,be,K,"\u22EA","\\ntriangleleft"),E(T,be,K,"\u22EC","\\ntrianglelefteq",!0),E(T,be,K,"\u228A","\\subsetneq",!0),E(T,be,K,"\uE01A","\\@varsubsetneq"),E(T,be,K,"\u2ACB","\\subsetneqq",!0),E(T,be,K,"\uE017","\\@varsubsetneqq"),E(T,be,K,"\u226F","\\ngtr",!0),E(T,be,K,"\uE00F","\\@ngeqslant"),E(T,be,K,"\uE00E","\\@ngeqq"),E(T,be,K,"\u2A88","\\gneq",!0),E(T,be,K,"\u2269","\\gneqq",!0),E(T,be,K,"\uE00D","\\@gvertneqq"),E(T,be,K,"\u22E7","\\gnsim",!0),E(T,be,K,"\u2A8A","\\gnapprox",!0),E(T,be,K,"\u2281","\\nsucc",!0),E(T,be,K,"\u22E1","\\nsucceq",!0),E(T,be,K,"\u22E9","\\succnsim",!0),E(T,be,K,"\u2ABA","\\succnapprox",!0),E(T,be,K,"\u2246","\\ncong",!0),E(T,be,K,"\uE007","\\@nshortparallel"),E(T,be,K,"\u2226","\\nparallel",!0),E(T,be,K,"\u22AF","\\nVDash",!0),E(T,be,K,"\u22EB","\\ntriangleright"),E(T,be,K,"\u22ED","\\ntrianglerighteq",!0),E(T,be,K,"\uE018","\\@nsupseteqq"),E(T,be,K,"\u228B","\\supsetneq",!0),E(T,be,K,"\uE01B","\\@varsupsetneq"),E(T,be,K,"\u2ACC","\\supsetneqq",!0),E(T,be,K,"\uE019","\\@varsupsetneqq"),E(T,be,K,"\u22AE","\\nVdash",!0),E(T,be,K,"\u2AB5","\\precneqq",!0),E(T,be,K,"\u2AB6","\\succneqq",!0),E(T,be,K,"\uE016","\\@nsubseteqq"),E(T,be,$e,"\u22B4","\\unlhd"),E(T,be,$e,"\u22B5","\\unrhd"),E(T,be,K,"\u219A","\\nleftarrow",!0),E(T,be,K,"\u219B","\\nrightarrow",!0),E(T,be,K,"\u21CD","\\nLeftarrow",!0),E(T,be,K,"\u21CF","\\nRightarrow",!0),E(T,be,K,"\u21AE","\\nleftrightarrow",!0),E(T,be,K,"\u21CE","\\nLeftrightarrow",!0),E(T,be,K,"\u25B3","\\vartriangle"),E(T,be,Ce,"\u210F","\\hslash"),E(T,be,Ce,"\u25BD","\\triangledown"),E(T,be,Ce,"\u25CA","\\lozenge"),E(T,be,Ce,"\u24C8","\\circledS"),E(T,be,Ce,"\xAE","\\circledR"),E(nt,be,Ce,"\xAE","\\circledR"),E(T,be,Ce,"\u2221","\\measuredangle",!0),E(T,be,Ce,"\u2204","\\nexists"),E(T,be,Ce,"\u2127","\\mho"),E(T,be,Ce,"\u2132","\\Finv",!0),E(T,be,Ce,"\u2141","\\Game",!0),E(T,be,Ce,"\u2035","\\backprime"),E(T,be,Ce,"\u25B2","\\blacktriangle"),E(T,be,Ce,"\u25BC","\\blacktriangledown"),E(T,be,Ce,"\u25A0","\\blacksquare"),E(T,be,Ce,"\u29EB","\\blacklozenge"),E(T,be,Ce,"\u2605","\\bigstar"),E(T,be,Ce,"\u2222","\\sphericalangle",!0),E(T,be,Ce,"\u2201","\\complement",!0),E(T,be,Ce,"\xF0","\\eth",!0),E(T,be,Ce,"\u2571","\\diagup"),E(T,be,Ce,"\u2572","\\diagdown"),E(T,be,Ce,"\u25A1","\\square"),E(T,be,Ce,"\u25A1","\\Box"),E(T,be,Ce,"\u25CA","\\Diamond"),E(T,be,Ce,"\xA5","\\yen",!0),E(nt,be,Ce,"\xA5","\\yen",!0),E(T,be,Ce,"\u2713","\\checkmark",!0),E(nt,be,Ce,"\u2713","\\checkmark"),E(T,be,Ce,"\u2136","\\beth",!0),E(T,be,Ce,"\u2138","\\daleth",!0),E(T,be,Ce,"\u2137","\\gimel",!0),E(T,be,Ce,"\u03DD","\\digamma",!0),E(T,be,Ce,"\u03F0","\\varkappa"),E(T,be,we,"\u250C","\\ulcorner",!0),E(T,be,je,"\u2510","\\urcorner",!0),E(T,be,we,"\u2514","\\llcorner",!0),E(T,be,je,"\u2518","\\lrcorner",!0),E(T,be,K,"\u2266","\\leqq",!0),E(T,be,K,"\u2A7D","\\leqslant",!0),E(T,be,K,"\u2A95","\\eqslantless",!0),E(T,be,K,"\u2272","\\lesssim",!0),E(T,be,K,"\u2A85","\\lessapprox",!0),E(T,be,K,"\u224A","\\approxeq",!0),E(T,be,$e,"\u22D6","\\lessdot"),E(T,be,K,"\u22D8","\\lll",!0),E(T,be,K,"\u2276","\\lessgtr",!0),E(T,be,K,"\u22DA","\\lesseqgtr",!0),E(T,be,K,"\u2A8B","\\lesseqqgtr",!0),E(T,be,K,"\u2251","\\doteqdot"),E(T,be,K,"\u2253","\\risingdotseq",!0),E(T,be,K,"\u2252","\\fallingdotseq",!0),E(T,be,K,"\u223D","\\backsim",!0),E(T,be,K,"\u22CD","\\backsimeq",!0),E(T,be,K,"\u2AC5","\\subseteqq",!0),E(T,be,K,"\u22D0","\\Subset",!0),E(T,be,K,"\u228F","\\sqsubset",!0),E(T,be,K,"\u227C","\\preccurlyeq",!0),E(T,be,K,"\u22DE","\\curlyeqprec",!0),E(T,be,K,"\u227E","\\precsim",!0),E(T,be,K,"\u2AB7","\\precapprox",!0),E(T,be,K,"\u22B2","\\vartriangleleft"),E(T,be,K,"\u22B4","\\trianglelefteq"),E(T,be,K,"\u22A8","\\vDash",!0),E(T,be,K,"\u22AA","\\Vvdash",!0),E(T,be,K,"\u2323","\\smallsmile"),E(T,be,K,"\u2322","\\smallfrown"),E(T,be,K,"\u224F","\\bumpeq",!0),E(T,be,K,"\u224E","\\Bumpeq",!0),E(T,be,K,"\u2267","\\geqq",!0),E(T,be,K,"\u2A7E","\\geqslant",!0),E(T,be,K,"\u2A96","\\eqslantgtr",!0),E(T,be,K,"\u2273","\\gtrsim",!0),E(T,be,K,"\u2A86","\\gtrapprox",!0),E(T,be,$e,"\u22D7","\\gtrdot"),E(T,be,K,"\u22D9","\\ggg",!0),E(T,be,K,"\u2277","\\gtrless",!0),E(T,be,K,"\u22DB","\\gtreqless",!0),E(T,be,K,"\u2A8C","\\gtreqqless",!0),E(T,be,K,"\u2256","\\eqcirc",!0),E(T,be,K,"\u2257","\\circeq",!0),E(T,be,K,"\u225C","\\triangleq",!0),E(T,be,K,"\u223C","\\thicksim"),E(T,be,K,"\u2248","\\thickapprox"),E(T,be,K,"\u2AC6","\\supseteqq",!0),E(T,be,K,"\u22D1","\\Supset",!0),E(T,be,K,"\u2290","\\sqsupset",!0),E(T,be,K,"\u227D","\\succcurlyeq",!0),E(T,be,K,"\u22DF","\\curlyeqsucc",!0),E(T,be,K,"\u227F","\\succsim",!0),E(T,be,K,"\u2AB8","\\succapprox",!0),E(T,be,K,"\u22B3","\\vartriangleright"),E(T,be,K,"\u22B5","\\trianglerighteq"),E(T,be,K,"\u22A9","\\Vdash",!0),E(T,be,K,"\u2223","\\shortmid"),E(T,be,K,"\u2225","\\shortparallel"),E(T,be,K,"\u226C","\\between",!0),E(T,be,K,"\u22D4","\\pitchfork",!0),E(T,be,K,"\u221D","\\varpropto"),E(T,be,K,"\u25C0","\\blacktriangleleft"),E(T,be,K,"\u2234","\\therefore",!0),E(T,be,K,"\u220D","\\backepsilon"),E(T,be,K,"\u25B6","\\blacktriangleright"),E(T,be,K,"\u2235","\\because",!0),E(T,be,K,"\u22D8","\\llless"),E(T,be,K,"\u22D9","\\gggtr"),E(T,be,$e,"\u22B2","\\lhd"),E(T,be,$e,"\u22B3","\\rhd"),E(T,be,K,"\u2242","\\eqsim",!0),E(T,W,K,"\u22C8","\\Join"),E(T,be,K,"\u2251","\\Doteq",!0),E(T,be,$e,"\u2214","\\dotplus",!0),E(T,be,$e,"\u2216","\\smallsetminus"),E(T,be,$e,"\u22D2","\\Cap",!0),E(T,be,$e,"\u22D3","\\Cup",!0),E(T,be,$e,"\u2A5E","\\doublebarwedge",!0),E(T,be,$e,"\u229F","\\boxminus",!0),E(T,be,$e,"\u229E","\\boxplus",!0),E(T,be,$e,"\u22C7","\\divideontimes",!0),E(T,be,$e,"\u22C9","\\ltimes",!0),E(T,be,$e,"\u22CA","\\rtimes",!0),E(T,be,$e,"\u22CB","\\leftthreetimes",!0),E(T,be,$e,"\u22CC","\\rightthreetimes",!0),E(T,be,$e,"\u22CF","\\curlywedge",!0),E(T,be,$e,"\u22CE","\\curlyvee",!0),E(T,be,$e,"\u229D","\\circleddash",!0),E(T,be,$e,"\u229B","\\circledast",!0),E(T,be,$e,"\u22C5","\\centerdot"),E(T,be,$e,"\u22BA","\\intercal",!0),E(T,be,$e,"\u22D2","\\doublecap"),E(T,be,$e,"\u22D3","\\doublecup"),E(T,be,$e,"\u22A0","\\boxtimes",!0),E(T,be,K,"\u21E2","\\dashrightarrow",!0),E(T,be,K,"\u21E0","\\dashleftarrow",!0),E(T,be,K,"\u21C7","\\leftleftarrows",!0),E(T,be,K,"\u21C6","\\leftrightarrows",!0),E(T,be,K,"\u21DA","\\Lleftarrow",!0),E(T,be,K,"\u219E","\\twoheadleftarrow",!0),E(T,be,K,"\u21A2","\\leftarrowtail",!0),E(T,be,K,"\u21AB","\\looparrowleft",!0),E(T,be,K,"\u21CB","\\leftrightharpoons",!0),E(T,be,K,"\u21B6","\\curvearrowleft",!0),E(T,be,K,"\u21BA","\\circlearrowleft",!0),E(T,be,K,"\u21B0","\\Lsh",!0),E(T,be,K,"\u21C8","\\upuparrows",!0),E(T,be,K,"\u21BF","\\upharpoonleft",!0),E(T,be,K,"\u21C3","\\downharpoonleft",!0),E(T,be,K,"\u22B8","\\multimap",!0),E(T,be,K,"\u21AD","\\leftrightsquigarrow",!0),E(T,be,K,"\u21C9","\\rightrightarrows",!0),E(T,be,K,"\u21C4","\\rightleftarrows",!0),E(T,be,K,"\u21A0","\\twoheadrightarrow",!0),E(T,be,K,"\u21A3","\\rightarrowtail",!0),E(T,be,K,"\u21AC","\\looparrowright",!0),E(T,be,K,"\u21B7","\\curvearrowright",!0),E(T,be,K,"\u21BB","\\circlearrowright",!0),E(T,be,K,"\u21B1","\\Rsh",!0),E(T,be,K,"\u21CA","\\downdownarrows",!0),E(T,be,K,"\u21BE","\\upharpoonright",!0),E(T,be,K,"\u21C2","\\downharpoonright",!0),E(T,be,K,"\u21DD","\\rightsquigarrow",!0),E(T,be,K,"\u21DD","\\leadsto"),E(T,be,K,"\u21DB","\\Rrightarrow",!0),E(T,be,K,"\u21BE","\\restriction"),E(T,W,Ce,"\u2018","`"),E(T,W,Ce,"$","\\$"),E(nt,W,Ce,"$","\\$"),E(nt,W,Ce,"$","\\textdollar"),E(T,W,Ce,"%","\\%"),E(nt,W,Ce,"%","\\%"),E(T,W,Ce,"_","\\_"),E(nt,W,Ce,"_","\\_"),E(nt,W,Ce,"_","\\textunderscore"),E(T,W,Ce,"\u2220","\\angle",!0),E(T,W,Ce,"\u221E","\\infty",!0),E(T,W,Ce,"\u2032","\\prime"),E(T,W,Ce,"\u25B3","\\triangle"),E(T,W,Ce,"\u0393","\\Gamma",!0),E(T,W,Ce,"\u0394","\\Delta",!0),E(T,W,Ce,"\u0398","\\Theta",!0),E(T,W,Ce,"\u039B","\\Lambda",!0),E(T,W,Ce,"\u039E","\\Xi",!0),E(T,W,Ce,"\u03A0","\\Pi",!0),E(T,W,Ce,"\u03A3","\\Sigma",!0),E(T,W,Ce,"\u03A5","\\Upsilon",!0),E(T,W,Ce,"\u03A6","\\Phi",!0),E(T,W,Ce,"\u03A8","\\Psi",!0),E(T,W,Ce,"\u03A9","\\Omega",!0),E(T,W,Ce,"A","\u0391"),E(T,W,Ce,"B","\u0392"),E(T,W,Ce,"E","\u0395"),E(T,W,Ce,"Z","\u0396"),E(T,W,Ce,"H","\u0397"),E(T,W,Ce,"I","\u0399"),E(T,W,Ce,"K","\u039A"),E(T,W,Ce,"M","\u039C"),E(T,W,Ce,"N","\u039D"),E(T,W,Ce,"O","\u039F"),E(T,W,Ce,"P","\u03A1"),E(T,W,Ce,"T","\u03A4"),E(T,W,Ce,"X","\u03A7"),E(T,W,Ce,"\xAC","\\neg",!0),E(T,W,Ce,"\xAC","\\lnot"),E(T,W,Ce,"\u22A4","\\top"),E(T,W,Ce,"\u22A5","\\bot"),E(T,W,Ce,"\u2205","\\emptyset"),E(T,be,Ce,"\u2205","\\varnothing"),E(T,W,re,"\u03B1","\\alpha",!0),E(T,W,re,"\u03B2","\\beta",!0),E(T,W,re,"\u03B3","\\gamma",!0),E(T,W,re,"\u03B4","\\delta",!0),E(T,W,re,"\u03F5","\\epsilon",!0),E(T,W,re,"\u03B6","\\zeta",!0),E(T,W,re,"\u03B7","\\eta",!0),E(T,W,re,"\u03B8","\\theta",!0),E(T,W,re,"\u03B9","\\iota",!0),E(T,W,re,"\u03BA","\\kappa",!0),E(T,W,re,"\u03BB","\\lambda",!0),E(T,W,re,"\u03BC","\\mu",!0),E(T,W,re,"\u03BD","\\nu",!0),E(T,W,re,"\u03BE","\\xi",!0),E(T,W,re,"\u03BF","\\omicron",!0),E(T,W,re,"\u03C0","\\pi",!0),E(T,W,re,"\u03C1","\\rho",!0),E(T,W,re,"\u03C3","\\sigma",!0),E(T,W,re,"\u03C4","\\tau",!0),E(T,W,re,"\u03C5","\\upsilon",!0),E(T,W,re,"\u03D5","\\phi",!0),E(T,W,re,"\u03C7","\\chi",!0),E(T,W,re,"\u03C8","\\psi",!0),E(T,W,re,"\u03C9","\\omega",!0),E(T,W,re,"\u03B5","\\varepsilon",!0),E(T,W,re,"\u03D1","\\vartheta",!0),E(T,W,re,"\u03D6","\\varpi",!0),E(T,W,re,"\u03F1","\\varrho",!0),E(T,W,re,"\u03C2","\\varsigma",!0),E(T,W,re,"\u03C6","\\varphi",!0),E(T,W,$e,"\u2217","*"),E(T,W,$e,"+","+"),E(T,W,$e,"\u2212","-"),E(T,W,$e,"\u22C5","\\cdot",!0),E(T,W,$e,"\u2218","\\circ"),E(T,W,$e,"\xF7","\\div",!0),E(T,W,$e,"\xB1","\\pm",!0),E(T,W,$e,"\xD7","\\times",!0),E(T,W,$e,"\u2229","\\cap",!0),E(T,W,$e,"\u222A","\\cup",!0),E(T,W,$e,"\u2216","\\setminus"),E(T,W,$e,"\u2227","\\land"),E(T,W,$e,"\u2228","\\lor"),E(T,W,$e,"\u2227","\\wedge",!0),E(T,W,$e,"\u2228","\\vee",!0),E(T,W,Ce,"\u221A","\\surd"),E(T,W,we,"(","("),E(T,W,we,"[","["),E(T,W,we,"\u27E8","\\langle",!0),E(T,W,we,"\u2223","\\lvert"),E(T,W,we,"\u2225","\\lVert"),E(T,W,je,")",")"),E(T,W,je,"]","]"),E(T,W,je,"?","?"),E(T,W,je,"!","!"),E(T,W,je,"\u27E9","\\rangle",!0),E(T,W,je,"\u2223","\\rvert"),E(T,W,je,"\u2225","\\rVert"),E(T,W,K,"=","="),E(T,W,K,"<","<"),E(T,W,K,">",">"),E(T,W,K,":",":"),E(T,W,K,"\u2248","\\approx",!0),E(T,W,K,"\u2245","\\cong",!0),E(T,W,K,"\u2265","\\ge"),E(T,W,K,"\u2265","\\geq",!0),E(T,W,K,"\u2190","\\gets"),E(T,W,K,">","\\gt"),E(T,W,K,"\u2208","\\in",!0),E(T,W,K,"\uE020","\\@not"),E(T,W,K,"\u2282","\\subset",!0),E(T,W,K,"\u2283","\\supset",!0),E(T,W,K,"\u2286","\\subseteq",!0),E(T,W,K,"\u2287","\\supseteq",!0),E(T,be,K,"\u2288","\\nsubseteq",!0),E(T,be,K,"\u2289","\\nsupseteq",!0),E(T,W,K,"\u22A8","\\models"),E(T,W,K,"\u2190","\\leftarrow",!0),E(T,W,K,"\u2264","\\le"),E(T,W,K,"\u2264","\\leq",!0),E(T,W,K,"<","\\lt"),E(T,W,K,"\u2192","\\rightarrow",!0),E(T,W,K,"\u2192","\\to"),E(T,be,K,"\u2271","\\ngeq",!0),E(T,be,K,"\u2270","\\nleq",!0),E(T,W,Bt,"\xA0","\\ "),E(T,W,Bt,"\xA0","~"),E(T,W,Bt,"\xA0","\\space"),E(T,W,Bt,"\xA0","\\nobreakspace"),E(nt,W,Bt,"\xA0","\\ "),E(nt,W,Bt,"\xA0","~"),E(nt,W,Bt,"\xA0","\\space"),E(nt,W,Bt,"\xA0","\\nobreakspace"),E(T,W,Bt,null,"\\nobreak"),E(T,W,Bt,null,"\\allowbreak"),E(T,W,ze,",",","),E(T,W,ze,";",";"),E(T,be,$e,"\u22BC","\\barwedge",!0),E(T,be,$e,"\u22BB","\\veebar",!0),E(T,W,$e,"\u2299","\\odot",!0),E(T,W,$e,"\u2295","\\oplus",!0),E(T,W,$e,"\u2297","\\otimes",!0),E(T,W,Ce,"\u2202","\\partial",!0),E(T,W,$e,"\u2298","\\oslash",!0),E(T,be,$e,"\u229A","\\circledcirc",!0),E(T,be,$e,"\u22A1","\\boxdot",!0),E(T,W,$e,"\u25B3","\\bigtriangleup"),E(T,W,$e,"\u25BD","\\bigtriangledown"),E(T,W,$e,"\u2020","\\dagger"),E(T,W,$e,"\u22C4","\\diamond"),E(T,W,$e,"\u22C6","\\star"),E(T,W,$e,"\u25C3","\\triangleleft"),E(T,W,$e,"\u25B9","\\triangleright"),E(T,W,we,"{","\\{"),E(nt,W,Ce,"{","\\{"),E(nt,W,Ce,"{","\\textbraceleft"),E(T,W,je,"}","\\}"),E(nt,W,Ce,"}","\\}"),E(nt,W,Ce,"}","\\textbraceright"),E(T,W,we,"{","\\lbrace"),E(T,W,je,"}","\\rbrace"),E(T,W,we,"[","\\lbrack"),E(nt,W,Ce,"[","\\lbrack"),E(T,W,je,"]","\\rbrack"),E(nt,W,Ce,"]","\\rbrack"),E(T,W,we,"(","\\lparen"),E(T,W,je,")","\\rparen"),E(nt,W,Ce,"<","\\textless"),E(nt,W,Ce,">","\\textgreater"),E(T,W,we,"\u230A","\\lfloor",!0),E(T,W,je,"\u230B","\\rfloor",!0),E(T,W,we,"\u2308","\\lceil",!0),E(T,W,je,"\u2309","\\rceil",!0),E(T,W,Ce,"\\","\\backslash"),E(T,W,Ce,"\u2223","|"),E(T,W,Ce,"\u2223","\\vert"),E(nt,W,Ce,"|","\\textbar"),E(T,W,Ce,"\u2225","\\|"),E(T,W,Ce,"\u2225","\\Vert"),E(nt,W,Ce,"\u2225","\\textbardbl"),E(nt,W,Ce,"~","\\textasciitilde"),E(nt,W,Ce,"\\","\\textbackslash"),E(nt,W,Ce,"^","\\textasciicircum"),E(T,W,K,"\u2191","\\uparrow",!0),E(T,W,K,"\u21D1","\\Uparrow",!0),E(T,W,K,"\u2193","\\downarrow",!0),E(T,W,K,"\u21D3","\\Downarrow",!0),E(T,W,K,"\u2195","\\updownarrow",!0),E(T,W,K,"\u21D5","\\Updownarrow",!0),E(T,W,me,"\u2210","\\coprod"),E(T,W,me,"\u22C1","\\bigvee"),E(T,W,me,"\u22C0","\\bigwedge"),E(T,W,me,"\u2A04","\\biguplus"),E(T,W,me,"\u22C2","\\bigcap"),E(T,W,me,"\u22C3","\\bigcup"),E(T,W,me,"\u222B","\\int"),E(T,W,me,"\u222B","\\intop"),E(T,W,me,"\u222C","\\iint"),E(T,W,me,"\u222D","\\iiint"),E(T,W,me,"\u220F","\\prod"),E(T,W,me,"\u2211","\\sum"),E(T,W,me,"\u2A02","\\bigotimes"),E(T,W,me,"\u2A01","\\bigoplus"),E(T,W,me,"\u2A00","\\bigodot"),E(T,W,me,"\u222E","\\oint"),E(T,W,me,"\u222F","\\oiint"),E(T,W,me,"\u2230","\\oiiint"),E(T,W,me,"\u2A06","\\bigsqcup"),E(T,W,me,"\u222B","\\smallint"),E(nt,W,Ze,"\u2026","\\textellipsis"),E(T,W,Ze,"\u2026","\\mathellipsis"),E(nt,W,Ze,"\u2026","\\ldots",!0),E(T,W,Ze,"\u2026","\\ldots",!0),E(T,W,Ze,"\u22EF","\\@cdots",!0),E(T,W,Ze,"\u22F1","\\ddots",!0),E(T,W,Ce,"\u22EE","\\varvdots"),E(T,W,rr,"\u02CA","\\acute"),E(T,W,rr,"\u02CB","\\grave"),E(T,W,rr,"\xA8","\\ddot"),E(T,W,rr,"~","\\tilde"),E(T,W,rr,"\u02C9","\\bar"),E(T,W,rr,"\u02D8","\\breve"),E(T,W,rr,"\u02C7","\\check"),E(T,W,rr,"^","\\hat"),E(T,W,rr,"\u20D7","\\vec"),E(T,W,rr,"\u02D9","\\dot"),E(T,W,rr,"\u02DA","\\mathring"),E(T,W,re,"\u0131","\\imath",!0),E(T,W,re,"\u0237","\\jmath",!0),E(nt,W,Ce,"\u0131","\\i",!0),E(nt,W,Ce,"\u0237","\\j",!0),E(nt,W,Ce,"\xDF","\\ss",!0),E(nt,W,Ce,"\xE6","\\ae",!0),E(nt,W,Ce,"\xE6","\\ae",!0),E(nt,W,Ce,"\u0153","\\oe",!0),E(nt,W,Ce,"\xF8","\\o",!0),E(nt,W,Ce,"\xC6","\\AE",!0),E(nt,W,Ce,"\u0152","\\OE",!0),E(nt,W,Ce,"\xD8","\\O",!0),E(nt,W,rr,"\u02CA","\\'"),E(nt,W,rr,"\u02CB","\\`"),E(nt,W,rr,"\u02C6","\\^"),E(nt,W,rr,"\u02DC","\\~"),E(nt,W,rr,"\u02C9","\\="),E(nt,W,rr,"\u02D8","\\u"),E(nt,W,rr,"\u02D9","\\."),E(nt,W,rr,"\u02DA","\\r"),E(nt,W,rr,"\u02C7","\\v"),E(nt,W,rr,"\xA8",'\\"'),E(nt,W,rr,"\u02DD","\\H"),E(nt,W,rr,"\u25EF","\\textcircled");var qt={"--":!0,"---":!0,"``":!0,"''":!0};E(nt,W,Ce,"\u2013","--"),E(nt,W,Ce,"\u2013","\\textendash"),E(nt,W,Ce,"\u2014","---"),E(nt,W,Ce,"\u2014","\\textemdash"),E(nt,W,Ce,"\u2018","`"),E(nt,W,Ce,"\u2018","\\textquoteleft"),E(nt,W,Ce,"\u2019","'"),E(nt,W,Ce,"\u2019","\\textquoteright"),E(nt,W,Ce,"\u201C","``"),E(nt,W,Ce,"\u201C","\\textquotedblleft"),E(nt,W,Ce,"\u201D","''"),E(nt,W,Ce,"\u201D","\\textquotedblright"),E(T,W,Ce,"\xB0","\\degree",!0),E(nt,W,Ce,"\xB0","\\degree"),E(nt,W,Ce,"\xB0","\\textdegree",!0),E(T,W,re,"\xA3","\\pounds"),E(T,W,re,"\xA3","\\mathsterling",!0),E(nt,W,re,"\xA3","\\pounds"),E(nt,W,re,"\xA3","\\textsterling",!0),E(T,be,Ce,"\u2720","\\maltese"),E(nt,be,Ce,"\u2720","\\maltese"),E(nt,W,Bt,"\xA0","\\ "),E(nt,W,Bt,"\xA0"," "),E(nt,W,Bt,"\xA0","~");for(var cr='0123456789/@."',Pt=0;Pt<cr.length;Pt++){var Ot=cr.charAt(Pt);E(T,W,Ce,Ot,Ot)}for(var xt='0123456789!@*()-=+[]<>|";:?/.,',Tt=0;Tt<xt.length;Tt++){var Ie=xt.charAt(Tt);E(nt,W,Ce,Ie,Ie)}for(var ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",ct=0;ct<ut.length;ct++){var bt=ut.charAt(ct);E(T,W,re,bt,bt),E(nt,W,Ce,bt,bt)}E(T,be,Ce,"C","\u2102"),E(nt,be,Ce,"C","\u2102"),E(T,be,Ce,"H","\u210D"),E(nt,be,Ce,"H","\u210D"),E(T,be,Ce,"N","\u2115"),E(nt,be,Ce,"N","\u2115"),E(T,be,Ce,"P","\u2119"),E(nt,be,Ce,"P","\u2119"),E(T,be,Ce,"Q","\u211A"),E(nt,be,Ce,"Q","\u211A"),E(T,be,Ce,"R","\u211D"),E(nt,be,Ce,"R","\u211D"),E(T,be,Ce,"Z","\u2124"),E(nt,be,Ce,"Z","\u2124"),E(T,W,re,"h","\u210E"),E(nt,W,re,"h","\u210E");for(var et="",Nt=0;Nt<ut.length;Nt++){var Vt=ut.charAt(Nt);et=String.fromCharCode(55349,56320+Nt),E(T,W,re,Vt,et),E(nt,W,Ce,Vt,et),et=String.fromCharCode(55349,56372+Nt),E(T,W,re,Vt,et),E(nt,W,Ce,Vt,et),et=String.fromCharCode(55349,56424+Nt),E(T,W,re,Vt,et),E(nt,W,Ce,Vt,et),et=String.fromCharCode(55349,56580+Nt),E(T,W,re,Vt,et),E(nt,W,Ce,Vt,et),et=String.fromCharCode(55349,56736+Nt),E(T,W,re,Vt,et),E(nt,W,Ce,Vt,et),et=String.fromCharCode(55349,56788+Nt),E(T,W,re,Vt,et),E(nt,W,Ce,Vt,et),et=String.fromCharCode(55349,56840+Nt),E(T,W,re,Vt,et),E(nt,W,Ce,Vt,et),et=String.fromCharCode(55349,56944+Nt),E(T,W,re,Vt,et),E(nt,W,Ce,Vt,et),Nt<26&&(et=String.fromCharCode(55349,56632+Nt),E(T,W,re,Vt,et),E(nt,W,Ce,Vt,et),et=String.fromCharCode(55349,56476+Nt),E(T,W,re,Vt,et),E(nt,W,Ce,Vt,et))}et="\u{1D55C}",E(T,W,re,"k",et),E(nt,W,Ce,"k",et);for(var Zt=0;Zt<10;Zt++){var vr=Zt.toString();et=String.fromCharCode(55349,57294+Zt),E(T,W,re,vr,et),E(nt,W,Ce,vr,et),et=String.fromCharCode(55349,57314+Zt),E(T,W,re,vr,et),E(nt,W,Ce,vr,et),et=String.fromCharCode(55349,57324+Zt),E(T,W,re,vr,et),E(nt,W,Ce,vr,et),et=String.fromCharCode(55349,57334+Zt),E(T,W,re,vr,et),E(nt,W,Ce,vr,et)}for(var yr="\xC7\xD0\xDE\xE7\xFE",or=0;or<yr.length;or++){var br=yr.charAt(or);E(T,W,re,br,br),E(nt,W,Ce,br,br)}E(nt,W,Ce,"\xF0","\xF0"),E(nt,W,Ce,"\u2013","\u2013"),E(nt,W,Ce,"\u2014","\u2014"),E(nt,W,Ce,"\u2018","\u2018"),E(nt,W,Ce,"\u2019","\u2019"),E(nt,W,Ce,"\u201C","\u201C"),E(nt,W,Ce,"\u201D","\u201D");var xr=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathdefault","textit","Math-Italic"],["mathdefault","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],zr=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],sr=function(u,h){var f=u.charCodeAt(0),g=u.charCodeAt(1),D=(f-55296)*1024+(g-56320)+65536,$=h==="math"?0:1;if(119808<=D&&D<120484){var _e=Math.floor((D-119808)/26);return[xr[_e][2],xr[_e][$]]}else if(120782<=D&&D<=120831){var De=Math.floor((D-120782)/10);return[zr[De][2],zr[De][$]]}else{if(D===120485||D===120486)return[xr[0][2],xr[0][$]];if(120486<D&&D<120782)return["",""];throw new p("Unsupported character: "+u)}},Be=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],pt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],it=function(u,h){return h.size<2?u:Be[u-1][h.size-1]},st=function(){function z(h){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=h.style,this.color=h.color,this.size=h.size||z.BASESIZE,this.textSize=h.textSize||this.size,this.phantom=!!h.phantom,this.font=h.font||"",this.fontFamily=h.fontFamily||"",this.fontWeight=h.fontWeight||"",this.fontShape=h.fontShape||"",this.sizeMultiplier=pt[this.size-1],this.maxSize=h.maxSize,this.minRuleThickness=h.minRuleThickness,this._fontMetrics=void 0}var u=z.prototype;return u.extend=function(f){var g={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var D in f)f.hasOwnProperty(D)&&(g[D]=f[D]);return new z(g)},u.havingStyle=function(f){return this.style===f?this:this.extend({style:f,size:it(this.textSize,f)})},u.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},u.havingSize=function(f){return this.size===f&&this.textSize===f?this:this.extend({style:this.style.text(),size:f,textSize:f,sizeMultiplier:pt[f-1]})},u.havingBaseStyle=function(f){f=f||this.style.text();var g=it(z.BASESIZE,f);return this.size===g&&this.textSize===z.BASESIZE&&this.style===f?this:this.extend({style:f,size:g})},u.havingBaseSizing=function(){var f;switch(this.style.id){case 4:case 5:f=3;break;case 6:case 7:f=1;break;default:f=6}return this.extend({style:this.style.text(),size:f})},u.withColor=function(f){return this.extend({color:f})},u.withPhantom=function(){return this.extend({phantom:!0})},u.withFont=function(f){return this.extend({font:f})},u.withTextFontFamily=function(f){return this.extend({fontFamily:f,font:""})},u.withTextFontWeight=function(f){return this.extend({fontWeight:f,font:""})},u.withTextFontShape=function(f){return this.extend({fontShape:f,font:""})},u.sizingClasses=function(f){return f.size!==this.size?["sizing","reset-size"+f.size,"size"+this.size]:[]},u.baseSizingClasses=function(){return this.size!==z.BASESIZE?["sizing","reset-size"+this.size,"size"+z.BASESIZE]:[]},u.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Ke(this.size)),this._fontMetrics},u.getColor=function(){return this.phantom?"transparent":this.color},z}();st.BASESIZE=6;var zt=st,kt={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},yt={ex:!0,em:!0,mu:!0},Te=function(u){return typeof u!="string"&&(u=u.unit),u in kt||u in yt||u==="ex"},Ge=function(u,h){var f;if(u.unit in kt)f=kt[u.unit]/h.fontMetrics().ptPerEm/h.sizeMultiplier;else if(u.unit==="mu")f=h.fontMetrics().cssEmPerMu;else{var g;if(h.style.isTight()?g=h.havingStyle(h.style.text()):g=h,u.unit==="ex")f=g.fontMetrics().xHeight;else if(u.unit==="em")f=g.fontMetrics().quad;else throw new p("Invalid unit: '"+u.unit+"'");g!==h&&(f*=g.sizeMultiplier/h.sizeMultiplier)}return Math.min(u.number*f,h.maxSize)},rt=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],wt=function(u,h,f){return Gt[f][u]&&Gt[f][u].replace&&(u=Gt[f][u].replace),{value:u,metrics:Lt(u,h,f)}},_t=function(u,h,f,g,D){var $=wt(u,h,f),_e=$.metrics;u=$.value;var De;if(_e){var He=_e.italic;(f==="text"||g&&g.font==="mathit")&&(He=0),De=new se(u,_e.height,_e.depth,He,_e.skew,_e.width,D)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+u+"' in style '"+h+"' and mode '"+f+"'")),De=new se(u,0,0,0,0,0,D);if(g){De.maxFontSize=g.sizeMultiplier,g.style.isTight()&&De.classes.push("mtight");var ft=g.getColor();ft&&(De.style.color=ft)}return De},Wt=function(u,h,f,g){return g===void 0&&(g=[]),f.font==="boldsymbol"&&wt(u,"Main-Bold",h).metrics?_t(u,"Main-Bold",h,f,g.concat(["mathbf"])):u==="\\"||Gt[h][u].font==="main"?_t(u,"Main-Regular",h,f,g):_t(u,"AMS-Regular",h,f,g.concat(["amsrm"]))},Dt=function(u,h,f,g){return/[0-9]/.test(u.charAt(0))||P.contains(rt,u)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},ir=function(u,h,f,g){return P.contains(rt,u)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(u.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},lr=function(u,h,f,g){return wt(u,"Math-BoldItalic",h).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},dr=function(u,h,f){var g=u.mode,D=u.text,$=["mord"],_e=g==="math"||g==="text"&&h.font,De=_e?h.font:h.fontFamily;if(D.charCodeAt(0)===55349){var He=sr(D,g),ft=He[0],Ct=He[1];return _t(D,ft,g,h,$.concat(Ct))}else if(De){var Ht,ar;if(De==="boldsymbol"||De==="mathnormal"){var hr=De==="boldsymbol"?lr(D,g,h,$):ir(D,g,h,$);Ht=hr.fontName,ar=[hr.fontClass]}else P.contains(rt,D)?(Ht="Main-Italic",ar=["mathit"]):_e?(Ht=ln[De].fontName,ar=[De]):(Ht=Qr(De,h.fontWeight,h.fontShape),ar=[De,h.fontWeight,h.fontShape]);if(wt(D,Ht,g).metrics)return _t(D,Ht,g,h,$.concat(ar));if(qt.hasOwnProperty(D)&&Ht.substr(0,10)==="Typewriter"){for(var Ye=[],Mr=0;Mr<D.length;Mr++)Ye.push(_t(D[Mr],Ht,g,h,$.concat(ar)));return Wr(Ye)}}if(f==="mathord"){var tn=Dt(D,g,h,$);return _t(D,tn.fontName,g,h,$.concat([tn.fontClass]))}else if(f==="textord"){var dn=Gt[g][D]&&Gt[g][D].font;if(dn==="ams"){var an=Qr("amsrm",h.fontWeight,h.fontShape);return _t(D,an,g,h,$.concat("amsrm",h.fontWeight,h.fontShape))}else if(dn==="main"||!dn){var Un=Qr("textrm",h.fontWeight,h.fontShape);return _t(D,Un,g,h,$.concat(h.fontWeight,h.fontShape))}else{var Mn=Qr(dn,h.fontWeight,h.fontShape);return _t(D,Mn,g,h,$.concat(Mn,h.fontWeight,h.fontShape))}}else throw new Error("unexpected type: "+f+" in makeOrd")},Sr=function(u,h){if(Yt(u.classes)!==Yt(h.classes)||u.skew!==h.skew||u.maxFontSize!==h.maxFontSize)return!1;for(var f in u.style)if(u.style.hasOwnProperty(f)&&u.style[f]!==h.style[f])return!1;for(var g in h.style)if(h.style.hasOwnProperty(g)&&u.style[g]!==h.style[g])return!1;return!0},Tr=function(u){for(var h=0;h<u.length-1;h++){var f=u[h],g=u[h+1];f instanceof se&&g instanceof se&&Sr(f,g)&&(f.text+=g.text,f.height=Math.max(f.height,g.height),f.depth=Math.max(f.depth,g.depth),f.italic=g.italic,u.splice(h+1,1),h--)}return u},kr=function(u){for(var h=0,f=0,g=0,D=0;D<u.children.length;D++){var $=u.children[D];$.height>h&&(h=$.height),$.depth>f&&(f=$.depth),$.maxFontSize>g&&(g=$.maxFontSize)}u.height=h,u.depth=f,u.maxFontSize=g},mr=function(u,h,f,g){var D=new U(u,h,f,g);return kr(D),D},ur=function(u,h,f,g){return new U(u,h,f,g)},Gr=function(u,h,f){var g=mr([u],[],h);return g.height=Math.max(f||h.fontMetrics().defaultRuleThickness,h.minRuleThickness),g.style.borderBottomWidth=g.height+"em",g.maxFontSize=1,g},$r=function(u,h,f,g){var D=new ye(u,h,f,g);return kr(D),D},Wr=function(u){var h=new jt(u);return kr(h),h},Rr=function(u,h){return u instanceof jt?mr([],[u],h):u},Dr=function(u){if(u.positionType==="individualShift"){for(var h=u.children,f=[h[0]],g=-h[0].shift-h[0].elem.depth,D=g,$=1;$<h.length;$++){var _e=-h[$].shift-D-h[$].elem.depth,De=_e-(h[$-1].elem.height+h[$-1].elem.depth);D=D+_e,f.push({type:"kern",size:De}),f.push(h[$])}return{children:f,depth:g}}var He;if(u.positionType==="top"){for(var ft=u.positionData,Ct=0;Ct<u.children.length;Ct++){var Ht=u.children[Ct];ft-=Ht.type==="kern"?Ht.size:Ht.elem.height+Ht.elem.depth}He=ft}else if(u.positionType==="bottom")He=-u.positionData;else{var ar=u.children[0];if(ar.type!=="elem")throw new Error('First child must have type "elem".');if(u.positionType==="shift")He=-ar.elem.depth-u.positionData;else if(u.positionType==="firstBaseline")He=-ar.elem.depth;else throw new Error("Invalid positionType "+u.positionType+".")}return{children:u.children,depth:He}},Pr=function(u,h){for(var f=Dr(u),g=f.children,D=f.depth,$=0,_e=0;_e<g.length;_e++){var De=g[_e];if(De.type==="elem"){var He=De.elem;$=Math.max($,He.maxFontSize,He.height)}}$+=2;var ft=mr(["pstrut"],[]);ft.style.height=$+"em";for(var Ct=[],Ht=D,ar=D,hr=D,Ye=0;Ye<g.length;Ye++){var Mr=g[Ye];if(Mr.type==="kern")hr+=Mr.size;else{var tn=Mr.elem,dn=Mr.wrapperClasses||[],an=Mr.wrapperStyle||{},Un=mr(dn,[ft,tn],void 0,an);Un.style.top=-$-hr-tn.depth+"em",Mr.marginLeft&&(Un.style.marginLeft=Mr.marginLeft),Mr.marginRight&&(Un.style.marginRight=Mr.marginRight),Ct.push(Un),hr+=tn.height+tn.depth}Ht=Math.min(Ht,hr),ar=Math.max(ar,hr)}var Mn=mr(["vlist"],Ct);Mn.style.height=ar+"em";var Wn;if(Ht<0){var Kn=mr([],[]),Xn=mr(["vlist"],[Kn]);Xn.style.height=-Ht+"em";var ei=mr(["vlist-s"],[new se("\u200B")]);Wn=[mr(["vlist-r"],[Mn,ei]),mr(["vlist-r"],[Xn])]}else Wn=[mr(["vlist-r"],[Mn])];var ii=mr(["vlist-t"],Wn);return Wn.length===2&&ii.classes.push("vlist-t2"),ii.height=ar,ii.depth=-Ht,ii},jr=function(u,h){var f=mr(["mspace"],[],h),g=Ge(u,h);return f.style.marginRight=g+"em",f},Qr=function(u,h,f){var g="";switch(u){case"amsrm":g="AMS";break;case"textrm":g="Main";break;case"textsf":g="SansSerif";break;case"texttt":g="Typewriter";break;default:g=u}var D;return h==="textbf"&&f==="textit"?D="BoldItalic":h==="textbf"?D="Bold":h==="textit"?D="Italic":D="Regular",g+"-"+D},ln={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Yr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Fr=function(u,h){var f=Yr[u],g=f[0],D=f[1],$=f[2],_e=new Ee(g),De=new ve([_e],{width:D+"em",height:$+"em",style:"width:"+D+"em",viewBox:"0 0 "+1e3*D+" "+1e3*$,preserveAspectRatio:"xMinYMin"}),He=ur(["overlay"],[De],h);return He.height=$,He.style.height=$+"em",He.style.width=D+"em",He},dt={fontMap:ln,makeSymbol:_t,mathsym:Wt,makeSpan:mr,makeSvgSpan:ur,makeLineSpan:Gr,makeAnchor:$r,makeFragment:Wr,wrapFragment:Rr,makeVList:Pr,makeOrd:dr,makeGlue:jr,staticSvg:Fr,svgData:Yr,tryCombineChars:Tr};function Cr(z,u){var h=Zr(z,u);if(!h)throw new Error("Expected node of type "+u+", but got "+(z?"node of type "+z.type:String(z)));return h}function Zr(z,u){return z&&z.type===u?z:null}function Br(z,u){var h=fn(z,u);if(!h)throw new Error('Expected node of type "atom" and family "'+u+'", but got '+(z?z.type==="atom"?"atom of family "+z.family:"node of type "+z.type:String(z)));return h}function fn(z,u){return z&&z.type==="atom"&&z.family===u?z:null}function An(z){var u=Ir(z);if(!u)throw new Error("Expected node of symbol group type, but got "+(z?"node of type "+z.type:String(z)));return u}function Ir(z){return z&&(z.type==="atom"||vt.hasOwnProperty(z.type))?z:null}var Ar={number:3,unit:"mu"},rn={number:4,unit:"mu"},nn={number:5,unit:"mu"},sn={mord:{mop:Ar,mbin:rn,mrel:nn,minner:Ar},mop:{mord:Ar,mop:Ar,mrel:nn,minner:Ar},mbin:{mord:rn,mop:rn,mopen:rn,minner:rn},mrel:{mord:nn,mop:nn,mopen:nn,minner:nn},mopen:{},mclose:{mop:Ar,mbin:rn,mrel:nn,minner:Ar},mpunct:{mord:Ar,mop:Ar,mrel:nn,mopen:Ar,mclose:Ar,mpunct:Ar,minner:Ar},minner:{mord:Ar,mop:Ar,mbin:rn,mrel:nn,mopen:Ar,mpunct:Ar,minner:Ar}},In={mord:{mop:Ar},mop:{mord:Ar,mop:Ar},mbin:{},mrel:{},mopen:{},mclose:{mop:Ar},mpunct:{},minner:{mop:Ar}},ai={},Hn={},un={};function fr(z){for(var u=z.type,h=z.names,f=z.props,g=z.handler,D=z.htmlBuilder,$=z.mathmlBuilder,_e={type:u,numArgs:f.numArgs,argTypes:f.argTypes,greediness:f.greediness===void 0?1:f.greediness,allowedInText:!!f.allowedInText,allowedInMath:f.allowedInMath===void 0?!0:f.allowedInMath,numOptionalArgs:f.numOptionalArgs||0,infix:!!f.infix,handler:g},De=0;De<h.length;++De)ai[h[De]]=_e;u&&(D&&(Hn[u]=D),$&&(un[u]=$))}function pn(z){var u=z.type,h=z.htmlBuilder,f=z.mathmlBuilder;fr({type:u,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:h,mathmlBuilder:f})}var hn=function(u){var h=Zr(u,"ordgroup");return h?h.body:[u]},Bn=dt.makeSpan,hi=["leftmost","mbin","mopen","mrel","mop","mpunct"],$n=["rightmost","mrel","mclose","mpunct"],Rn={display:y.DISPLAY,text:y.TEXT,script:y.SCRIPT,scriptscript:y.SCRIPTSCRIPT},Gn={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},yn=function(u,h,f,g){g===void 0&&(g=[null,null]);for(var D=[],$=0;$<u.length;$++){var _e=cn(u[$],h);if(_e instanceof jt){var De=_e.children;D.push.apply(D,De)}else D.push(_e)}if(!f)return D;var He=h;if(u.length===1){var ft=Zr(u[0],"sizing")||Zr(u[0],"styling");ft&&(ft.type==="sizing"?He=h.havingSize(ft.size):ft.type==="styling"&&(He=h.havingStyle(Rn[ft.style])))}var Ct=Bn([g[0]||"leftmost"],[],h),Ht=Bn([g[1]||"rightmost"],[],h);return li(D,function(ar,hr){var Ye=hr.classes[0],Mr=ar.classes[0];Ye==="mbin"&&P.contains($n,Mr)?hr.classes[0]="mord":Mr==="mbin"&&P.contains(hi,Ye)&&(ar.classes[0]="mord")},{node:Ct},Ht),li(D,function(ar,hr){var Ye=ti(hr),Mr=ti(ar),tn=Ye&&Mr?ar.hasClass("mtight")?In[Ye][Mr]:sn[Ye][Mr]:null;if(tn)return dt.makeGlue(tn,He)},{node:Ct},Ht),D},li=function z(u,h,f,g){g&&u.push(g);for(var D=0;D<u.length;D++){var $=u[D],_e=Nr($);if(_e){z(_e.children,h,f);continue}if($.classes[0]!=="mspace"){var De=h($,f.node);De&&(f.insertAfter?f.insertAfter(De):(u.unshift(De),D++)),f.node=$,f.insertAfter=function(He){return function(ft){u.splice(He+1,0,ft),D++}}(D)}}g&&u.pop()},Nr=function(u){return u instanceof jt||u instanceof ye?u:null},ni=function z(u,h){var f=Nr(u);if(f){var g=f.children;if(g.length){if(h==="right")return z(g[g.length-1],"right");if(h==="left")return z(g[0],"left")}}return u},ti=function(u,h){return u?(h&&(u=ni(u,h)),Gn[u.classes[0]]||null):null},Qn=function(u,h){var f=["nulldelimiter"].concat(u.baseSizingClasses());return Bn(h.concat(f))},cn=function(u,h,f){if(!u)return Bn();if(Hn[u.type]){var g=Hn[u.type](u,h);if(f&&h.size!==f.size){g=Bn(h.sizingClasses(f),[g],h);var D=h.sizeMultiplier/f.sizeMultiplier;g.height*=D,g.depth*=D}return g}else throw new p("Got group of unknown type: '"+u.type+"'")};function fi(z,u){var h=Bn(["base"],z,u),f=Bn(["strut"]);return f.style.height=h.height+h.depth+"em",f.style.verticalAlign=-h.depth+"em",h.children.unshift(f),h}function mi(z,u){var h=null;z.length===1&&z[0].type==="tag"&&(h=z[0].tag,z=z[0].body);for(var f=yn(z,u,!0),g=[],D=[],$=0;$<f.length;$++)if(D.push(f[$]),f[$].hasClass("mbin")||f[$].hasClass("mrel")||f[$].hasClass("allowbreak")){for(var _e=!1;$<f.length-1&&f[$+1].hasClass("mspace")&&!f[$+1].hasClass("newline");)$++,D.push(f[$]),f[$].hasClass("nobreak")&&(_e=!0);_e||(g.push(fi(D,u)),D=[])}else f[$].hasClass("newline")&&(D.pop(),D.length>0&&(g.push(fi(D,u)),D=[]),g.push(f[$]));D.length>0&&g.push(fi(D,u));var De;h&&(De=fi(yn(h,u,!0)),De.classes=["tag"],g.push(De));var He=Bn(["katex-html"],g);if(He.setAttribute("aria-hidden","true"),De){var ft=De.children[0];ft.style.height=He.height+He.depth+"em",ft.style.verticalAlign=-He.depth+"em"}return He}function Xr(z){return new jt(z)}var Er=function(){function z(h,f){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=h,this.attributes={},this.children=f||[]}var u=z.prototype;return u.setAttribute=function(f,g){this.attributes[f]=g},u.getAttribute=function(f){return this.attributes[f]},u.toNode=function(){var f=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var g in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,g)&&f.setAttribute(g,this.attributes[g]);for(var D=0;D<this.children.length;D++)f.appendChild(this.children[D].toNode());return f},u.toMarkup=function(){var f="<"+this.type;for(var g in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,g)&&(f+=" "+g+'="',f+=P.escape(this.attributes[g]),f+='"');f+=">";for(var D=0;D<this.children.length;D++)f+=this.children[D].toMarkup();return f+="</"+this.type+">",f},u.toText=function(){return this.children.map(function(f){return f.toText()}).join("")},z}(),bn=function(){function z(h){this.text=void 0,this.text=h}var u=z.prototype;return u.toNode=function(){return document.createTextNode(this.text)},u.toMarkup=function(){return P.escape(this.toText())},u.toText=function(){return this.text},z}(),en=function(){function z(h){this.width=void 0,this.character=void 0,this.width=h,h>=.05555&&h<=.05556?this.character="\u200A":h>=.1666&&h<=.1667?this.character="\u2009":h>=.2222&&h<=.2223?this.character="\u2005":h>=.2777&&h<=.2778?this.character="\u2005\u200A":h>=-.05556&&h<=-.05555?this.character="\u200A\u2063":h>=-.1667&&h<=-.1666?this.character="\u2009\u2063":h>=-.2223&&h<=-.2222?this.character="\u205F\u2063":h>=-.2778&&h<=-.2777?this.character="\u2005\u2063":this.character=null}var u=z.prototype;return u.toNode=function(){if(this.character)return document.createTextNode(this.character);var f=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return f.setAttribute("width",this.width+"em"),f},u.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},u.toText=function(){return this.character?this.character:" "},z}(),Jt={MathNode:Er,TextNode:bn,SpaceNode:en,newDocumentFragment:Xr},gn=function(u,h,f){return Gt[h][u]&&Gt[h][u].replace&&u.charCodeAt(0)!==55349&&!(qt.hasOwnProperty(u)&&f&&(f.fontFamily&&f.fontFamily.substr(4,2)==="tt"||f.font&&f.font.substr(4,2)==="tt"))&&(u=Gt[h][u].replace),new Jt.TextNode(u)},Zn=function(u){return u.length===1?u[0]:new Jt.MathNode("mrow",u)},qn=function(u,h){if(h.fontFamily==="texttt")return"monospace";if(h.fontFamily==="textsf")return h.fontShape==="textit"&&h.fontWeight==="textbf"?"sans-serif-bold-italic":h.fontShape==="textit"?"sans-serif-italic":h.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(h.fontShape==="textit"&&h.fontWeight==="textbf")return"bold-italic";if(h.fontShape==="textit")return"italic";if(h.fontWeight==="textbf")return"bold";var f=h.font;if(!f||f==="mathnormal")return null;var g=u.mode;if(f==="mathit")return"italic";if(f==="boldsymbol")return"bold-italic";if(f==="mathbf")return"bold";if(f==="mathbb")return"double-struck";if(f==="mathfrak")return"fraktur";if(f==="mathscr"||f==="mathcal")return"script";if(f==="mathsf")return"sans-serif";if(f==="mathtt")return"monospace";var D=u.text;if(P.contains(["\\imath","\\jmath"],D))return null;Gt[g][D]&&Gt[g][D].replace&&(D=Gt[g][D].replace);var $=dt.fontMap[f].fontName;return Lt(D,$,g)?dt.fontMap[f].variant:null},En=function(u,h,f){if(u.length===1){var g=mn(u[0],h);return f&&g instanceof Er&&g.type==="mo"&&(g.setAttribute("lspace","0em"),g.setAttribute("rspace","0em")),[g]}for(var D=[],$,_e=0;_e<u.length;_e++){var De=mn(u[_e],h);if(De instanceof Er&&$ instanceof Er){if(De.type==="mtext"&&$.type==="mtext"&&De.getAttribute("mathvariant")===$.getAttribute("mathvariant")){var He;(He=$.children).push.apply(He,De.children);continue}else if(De.type==="mn"&&$.type==="mn"){var ft;(ft=$.children).push.apply(ft,De.children);continue}else if(De.type==="mi"&&De.children.length===1&&$.type==="mn"){var Ct=De.children[0];if(Ct instanceof bn&&Ct.text==="."){var Ht;(Ht=$.children).push.apply(Ht,De.children);continue}}else if($.type==="mi"&&$.children.length===1){var ar=$.children[0];if(ar instanceof bn&&ar.text==="\u0338"&&(De.type==="mo"||De.type==="mi"||De.type==="mn")){var hr=De.children[0];hr instanceof bn&&hr.text.length>0&&(hr.text=hr.text.slice(0,1)+"\u0338"+hr.text.slice(1),D.pop())}}}D.push(De),$=De}return D},kn=function(u,h,f){return Zn(En(u,h,f))},mn=function(u,h){if(!u)return new Jt.MathNode("mrow");if(un[u.type]){var f=un[u.type](u,h);return f}else throw new p("Got group of unknown type: '"+u.type+"'")};function Nn(z,u,h,f){var g=En(z,h),D;g.length===1&&g[0]instanceof Er&&P.contains(["mrow","mtable"],g[0].type)?D=g[0]:D=new Jt.MathNode("mrow",g);var $=new Jt.MathNode("annotation",[new Jt.TextNode(u)]);$.setAttribute("encoding","application/x-tex");var _e=new Jt.MathNode("semantics",[D,$]),De=new Jt.MathNode("math",[_e]);De.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var He=f?"katex":"katex-mathml";return dt.makeSpan([He],[De])}var ui=function(u){return new zt({style:u.displayMode?y.DISPLAY:y.TEXT,maxSize:u.maxSize,minRuleThickness:u.minRuleThickness})},ci=function(u,h){if(h.displayMode){var f=["katex-display"];h.leqno&&f.push("leqno"),h.fleqn&&f.push("fleqn"),u=dt.makeSpan(f,[u])}return u},ri=function(u,h,f){var g=ui(f),D;if(f.output==="mathml")return Nn(u,h,g,!0);if(f.output==="html"){var $=mi(u,g);D=dt.makeSpan(["katex"],[$])}else{var _e=Nn(u,h,g,!1),De=mi(u,g);D=dt.makeSpan(["katex"],[_e,De])}return ci(D,f)},Vn=function(u,h,f){var g=ui(f),D=mi(u,g),$=dt.makeSpan(["katex"],[D]);return ci($,f)},vn=ri,Jn={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB"},Li=function(u){var h=new Jt.MathNode("mo",[new Jt.TextNode(Jn[u.substr(1)])]);return h.setAttribute("stretchy","true"),h},Oi={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Pi=function(u){return u.type==="ordgroup"?u.body.length:1},Ci=function(u,h){function f(){var De=4e5,He=u.label.substr(1);if(P.contains(["widehat","widecheck","widetilde","utilde"],He)){var ft=u,Ct=Pi(ft.base),Ht,ar,hr;if(Ct>5)He==="widehat"||He==="widecheck"?(Ht=420,De=2364,hr=.42,ar=He+"4"):(Ht=312,De=2340,hr=.34,ar="tilde4");else{var Ye=[1,1,2,2,3,3][Ct];He==="widehat"||He==="widecheck"?(De=[0,1062,2364,2364,2364][Ye],Ht=[0,239,300,360,420][Ye],hr=[0,.24,.3,.3,.36,.42][Ye],ar=He+Ye):(De=[0,600,1033,2339,2340][Ye],Ht=[0,260,286,306,312][Ye],hr=[0,.26,.286,.3,.306,.34][Ye],ar="tilde"+Ye)}var Mr=new Ee(ar),tn=new ve([Mr],{width:"100%",height:hr+"em",viewBox:"0 0 "+De+" "+Ht,preserveAspectRatio:"none"});return{span:dt.makeSvgSpan([],[tn],h),minWidth:0,height:hr}}else{var dn=[],an=Oi[He],Un=an[0],Mn=an[1],Wn=an[2],Kn=Wn/1e3,Xn=Un.length,ei,ii;if(Xn===1){var On=an[3];ei=["hide-tail"],ii=[On]}else if(Xn===2)ei=["halfarrow-left","halfarrow-right"],ii=["xMinYMin","xMaxYMin"];else if(Xn===3)ei=["brace-left","brace-center","brace-right"],ii=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+Xn+" children.");for(var pi=0;pi<Xn;pi++){var si=new Ee(Un[pi]),ki=new ve([si],{width:"400em",height:Kn+"em",viewBox:"0 0 "+De+" "+Wn,preserveAspectRatio:ii[pi]+" slice"}),di=dt.makeSvgSpan([ei[pi]],[ki],h);if(Xn===1)return{span:di,minWidth:Mn,height:Kn};di.style.height=Kn+"em",dn.push(di)}return{span:dt.makeSpan(["stretchy"],dn,h),minWidth:Mn,height:Kn}}}var g=f(),D=g.span,$=g.minWidth,_e=g.height;return D.height=_e,D.style.height=_e+"em",$>0&&(D.style.minWidth=$+"em"),D},Lr=function(u,h,f,g){var D,$=u.height+u.depth+2*f;if(/fbox|color/.test(h)){if(D=dt.makeSpan(["stretchy",h],[],g),h==="fbox"){var _e=g.color&&g.getColor();_e&&(D.style.borderColor=_e)}}else{var De=[];/^[bx]cancel$/.test(h)&&De.push(new ke({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(h)&&De.push(new ke({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var He=new ve(De,{width:"100%",height:$+"em"});D=dt.makeSvgSpan([],[He],g)}return D.height=$,D.style.height=$+"em",D},Ur={encloseSpan:Lr,mathMLnode:Li,svgSpan:Ci},Pn=function(u,h){var f,g,D=Zr(u,"supsub"),$;D?(g=Cr(D.base,"accent"),f=g.base,D.base=f,$=qe(cn(D,h)),D.base=g):(g=Cr(u,"accent"),f=g.base);var _e=cn(f,h.havingCrampedStyle()),De=g.isShifty&&P.isCharacterBox(f),He=0;if(De){var ft=P.getBaseElem(f),Ct=cn(ft,h.havingCrampedStyle());He=Fe(Ct).skew}var Ht=Math.min(_e.height,h.fontMetrics().xHeight),ar;if(g.isStretchy)ar=Ur.svgSpan(g,h),ar=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:_e},{type:"elem",elem:ar,wrapperClasses:["svg-align"],wrapperStyle:He>0?{width:"calc(100% - "+2*He+"em)",marginLeft:2*He+"em"}:void 0}]},h);else{var hr,Ye;g.label==="\\vec"?(hr=dt.staticSvg("vec",h),Ye=dt.svgData.vec[1]):(hr=dt.makeOrd({mode:g.mode,text:g.label},h,"textord"),hr=Fe(hr),hr.italic=0,Ye=hr.width),ar=dt.makeSpan(["accent-body"],[hr]);var Mr=g.label==="\\textcircled";Mr&&(ar.classes.push("accent-full"),Ht=_e.height);var tn=He;Mr||(tn-=Ye/2),ar.style.left=tn+"em",g.label==="\\textcircled"&&(ar.style.top=".2em"),ar=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:_e},{type:"kern",size:-Ht},{type:"elem",elem:ar}]},h)}var dn=dt.makeSpan(["mord","accent"],[ar],h);return $?($.children[0]=dn,$.height=Math.max(dn.height,$.height),$.classes[0]="mord",$):dn},zn=function(u,h){var f=u.isStretchy?Ur.mathMLnode(u.label):new Jt.MathNode("mo",[gn(u.label,u.mode)]),g=new Jt.MathNode("mover",[mn(u.base,h),f]);return g.setAttribute("accent","true"),g},wn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(z){return"\\"+z}).join("|"));fr({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(u,h){var f=h[0],g=!wn.test(u.funcName),D=!g||u.funcName==="\\widehat"||u.funcName==="\\widetilde"||u.funcName==="\\widecheck";return{type:"accent",mode:u.parser.mode,label:u.funcName,isStretchy:g,isShifty:D,base:f}},htmlBuilder:Pn,mathmlBuilder:zn}),fr({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(u,h){var f=h[0];return{type:"accent",mode:u.parser.mode,label:u.funcName,isStretchy:!1,isShifty:!0,base:f}},htmlBuilder:Pn,mathmlBuilder:zn}),fr({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(u,h){var f=u.parser,g=u.funcName,D=h[0];return{type:"accentUnder",mode:f.mode,label:g,base:D}},htmlBuilder:function(u,h){var f=cn(u.base,h),g=Ur.svgSpan(u,h),D=u.label==="\\utilde"?.12:0,$=dt.makeVList({positionType:"bottom",positionData:g.height+D,children:[{type:"elem",elem:g,wrapperClasses:["svg-align"]},{type:"kern",size:D},{type:"elem",elem:f}]},h);return dt.makeSpan(["mord","accentunder"],[$],h)},mathmlBuilder:function(u,h){var f=Ur.mathMLnode(u.label),g=new Jt.MathNode("munder",[mn(u.base,h),f]);return g.setAttribute("accentunder","true"),g}});var gi=function(u){var h=new Jt.MathNode("mpadded",u?[u]:[]);return h.setAttribute("width","+0.6em"),h.setAttribute("lspace","0.3em"),h};fr({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(u,h,f){var g=u.parser,D=u.funcName;return{type:"xArrow",mode:g.mode,label:D,body:h[0],below:f[0]}},htmlBuilder:function(u,h){var f=h.style,g=h.havingStyle(f.sup()),D=dt.wrapFragment(cn(u.body,g,h),h);D.classes.push("x-arrow-pad");var $;u.below&&(g=h.havingStyle(f.sub()),$=dt.wrapFragment(cn(u.below,g,h),h),$.classes.push("x-arrow-pad"));var _e=Ur.svgSpan(u,h),De=-h.fontMetrics().axisHeight+.5*_e.height,He=-h.fontMetrics().axisHeight-.5*_e.height-.111;(D.depth>.25||u.label==="\\xleftequilibrium")&&(He-=D.depth);var ft;if($){var Ct=-h.fontMetrics().axisHeight+$.height+.5*_e.height+.111;ft=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:D,shift:He},{type:"elem",elem:_e,shift:De},{type:"elem",elem:$,shift:Ct}]},h)}else ft=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:D,shift:He},{type:"elem",elem:_e,shift:De}]},h);return ft.children[0].children[0].children[1].classes.push("svg-align"),dt.makeSpan(["mrel","x-arrow"],[ft],h)},mathmlBuilder:function(u,h){var f=Ur.mathMLnode(u.label),g;if(u.body){var D=gi(mn(u.body,h));if(u.below){var $=gi(mn(u.below,h));g=new Jt.MathNode("munderover",[f,$,D])}else g=new Jt.MathNode("mover",[f,D])}else if(u.below){var _e=gi(mn(u.below,h));g=new Jt.MathNode("munder",[f,_e])}else g=gi(),g=new Jt.MathNode("mover",[f,g]);return g}}),fr({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(u,h){for(var f=u.parser,g=Cr(h[0],"ordgroup"),D=g.body,$="",_e=0;_e<D.length;_e++){var De=Cr(D[_e],"textord");$+=De.text}var He=parseInt($);if(isNaN(He))throw new p("\\@char has non-numeric argument "+$);return{type:"textord",mode:f.mode,text:String.fromCharCode(He)}}});var Di=function(u,h){var f=yn(u.body,h.withColor(u.color),!1);return dt.makeFragment(f)},Gi=function(u,h){var f=En(u.body,h.withColor(u.color)),g=new Jt.MathNode("mstyle",f);return g.setAttribute("mathcolor",u.color),g};fr({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(u,h){var f=u.parser,g=Cr(h[0],"color-token").color,D=h[1];return{type:"color",mode:f.mode,color:g,body:hn(D)}},htmlBuilder:Di,mathmlBuilder:Gi}),fr({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(u,h){var f=u.parser,g=u.breakOnTokenText,D=Cr(h[0],"color-token").color;f.gullet.macros.set("\\current@color",D);var $=f.parseExpression(!0,g);return{type:"color",mode:f.mode,color:D,body:$}},htmlBuilder:Di,mathmlBuilder:Gi}),fr({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(u,h,f){var g=u.parser,D=u.funcName,$=f[0],_e=D==="\\cr",De=!1;return _e||(g.settings.displayMode&&g.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?De=!1:De=!0),{type:"cr",mode:g.mode,newLine:De,newRow:_e,size:$&&Cr($,"size").value}},htmlBuilder:function(u,h){if(u.newRow)throw new p("\\cr valid only within a tabular/array environment");var f=dt.makeSpan(["mspace"],[],h);return u.newLine&&(f.classes.push("newline"),u.size&&(f.style.marginTop=Ge(u.size,h)+"em")),f},mathmlBuilder:function(u,h){var f=new Jt.MathNode("mspace");return u.newLine&&(f.setAttribute("linebreak","newline"),u.size&&f.setAttribute("height",Ge(u.size,h)+"em")),f}});var xi=function(u,h,f){var g=Gt.math[u]&&Gt.math[u].replace,D=Lt(g||u,h,f);if(!D)throw new Error("Unsupported symbol "+u+" and font size "+h+".");return D},ss=function(u,h,f,g){var D=f.havingBaseStyle(h),$=dt.makeSpan(g.concat(D.sizingClasses(f)),[u],f),_e=D.sizeMultiplier/f.sizeMultiplier;return $.height*=_e,$.depth*=_e,$.maxFontSize=D.sizeMultiplier,$},js=function(u,h,f){var g=h.havingBaseStyle(f),D=(1-h.sizeMultiplier/g.sizeMultiplier)*h.fontMetrics().axisHeight;u.classes.push("delimcenter"),u.style.top=D+"em",u.height-=D,u.depth+=D},as=function(u,h,f,g,D,$){var _e=dt.makeSymbol(u,"Main-Regular",D,g),De=ss(_e,h,g,$);return f&&js(De,g,h),De},os=function(u,h,f,g){return dt.makeSymbol(u,"Size"+h+"-Regular",f,g)},Ei=function(u,h,f,g,D,$){var _e=os(u,h,D,g),De=ss(dt.makeSpan(["delimsizing","size"+h],[_e],g),y.TEXT,g,$);return f&&js(De,g,y.TEXT),De},wi=function(u,h,f){var g;h==="Size1-Regular"?g="delim-size1":g="delim-size4";var D=dt.makeSpan(["delimsizinginner",g],[dt.makeSpan([],[dt.makeSymbol(u,h,f)])]);return{type:"elem",elem:D}},Si={type:"kern",size:-.005},ls=function(u,h,f,g,D,$){var _e,De,He,ft;_e=He=ft=u,De=null;var Ct="Size1-Regular";u==="\\uparrow"?He=ft="\u23D0":u==="\\Uparrow"?He=ft="\u2016":u==="\\downarrow"?_e=He="\u23D0":u==="\\Downarrow"?_e=He="\u2016":u==="\\updownarrow"?(_e="\\uparrow",He="\u23D0",ft="\\downarrow"):u==="\\Updownarrow"?(_e="\\Uparrow",He="\u2016",ft="\\Downarrow"):u==="["||u==="\\lbrack"?(_e="\u23A1",He="\u23A2",ft="\u23A3",Ct="Size4-Regular"):u==="]"||u==="\\rbrack"?(_e="\u23A4",He="\u23A5",ft="\u23A6",Ct="Size4-Regular"):u==="\\lfloor"||u==="\u230A"?(He=_e="\u23A2",ft="\u23A3",Ct="Size4-Regular"):u==="\\lceil"||u==="\u2308"?(_e="\u23A1",He=ft="\u23A2",Ct="Size4-Regular"):u==="\\rfloor"||u==="\u230B"?(He=_e="\u23A5",ft="\u23A6",Ct="Size4-Regular"):u==="\\rceil"||u==="\u2309"?(_e="\u23A4",He=ft="\u23A5",Ct="Size4-Regular"):u==="("||u==="\\lparen"?(_e="\u239B",He="\u239C",ft="\u239D",Ct="Size4-Regular"):u===")"||u==="\\rparen"?(_e="\u239E",He="\u239F",ft="\u23A0",Ct="Size4-Regular"):u==="\\{"||u==="\\lbrace"?(_e="\u23A7",De="\u23A8",ft="\u23A9",He="\u23AA",Ct="Size4-Regular"):u==="\\}"||u==="\\rbrace"?(_e="\u23AB",De="\u23AC",ft="\u23AD",He="\u23AA",Ct="Size4-Regular"):u==="\\lgroup"||u==="\u27EE"?(_e="\u23A7",ft="\u23A9",He="\u23AA",Ct="Size4-Regular"):u==="\\rgroup"||u==="\u27EF"?(_e="\u23AB",ft="\u23AD",He="\u23AA",Ct="Size4-Regular"):u==="\\lmoustache"||u==="\u23B0"?(_e="\u23A7",ft="\u23AD",He="\u23AA",Ct="Size4-Regular"):(u==="\\rmoustache"||u==="\u23B1")&&(_e="\u23AB",ft="\u23A9",He="\u23AA",Ct="Size4-Regular");var Ht=xi(_e,Ct,D),ar=Ht.height+Ht.depth,hr=xi(He,Ct,D),Ye=hr.height+hr.depth,Mr=xi(ft,Ct,D),tn=Mr.height+Mr.depth,dn=0,an=1;if(De!==null){var Un=xi(De,Ct,D);dn=Un.height+Un.depth,an=2}var Mn=ar+tn+dn,Wn=Math.max(0,Math.ceil((h-Mn)/(an*Ye))),Kn=Mn+Wn*an*Ye,Xn=g.fontMetrics().axisHeight;f&&(Xn*=g.sizeMultiplier);var ei=Kn/2-Xn,ii=(Wn+1)*.005-Ye,On=[];if(On.push(wi(ft,Ct,D)),De===null)for(var pi=0;pi<Wn;pi++)On.push(Si),On.push(wi(He,Ct,D));else{for(var si=0;si<Wn;si++)On.push(Si),On.push(wi(He,Ct,D));On.push({type:"kern",size:ii}),On.push(wi(He,Ct,D)),On.push(Si),On.push(wi(De,Ct,D));for(var ki=0;ki<Wn;ki++)On.push(Si),On.push(wi(He,Ct,D))}On.push({type:"kern",size:ii}),On.push(wi(He,Ct,D)),On.push(Si),On.push(wi(_e,Ct,D));var di=g.havingBaseStyle(y.TEXT),$i=dt.makeVList({positionType:"bottom",positionData:ei,children:On},di);return ss(dt.makeSpan(["delimsizing","mult"],[$i],di),y.TEXT,g,$)},Qi=80,us=.08,qi=function(u,h,f,g,D){var $=tr(u,g,f),_e=new Ee(u,$),De=new ve([_e],{width:"400em",height:h+"em",viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});return dt.makeSvgSpan(["hide-tail"],[De],D)},oa=function(u,h){var f=h.havingBaseSizing(),g=Ws("\\surd",u*f.sizeMultiplier,ds,f),D=f.sizeMultiplier,$=Math.max(0,h.minRuleThickness-h.fontMetrics().sqrtRuleThickness),_e,De=0,He=0,ft=0,Ct;return g.type==="small"?(ft=1e3+1e3*$+Qi,u<1?D=1:u<1.4&&(D=.7),De=(1+$+us)/D,He=(1+$)/D,_e=qi("sqrtMain",De,ft,$,h),_e.style.minWidth="0.853em",Ct=.833/D):g.type==="large"?(ft=(1e3+Qi)*vi[g.size],He=(vi[g.size]+$)/D,De=(vi[g.size]+$+us)/D,_e=qi("sqrtSize"+g.size,De,ft,$,h),_e.style.minWidth="1.02em",Ct=1/D):(De=u+$+us,He=u+$,ft=Math.floor(1e3*u+$)+Qi,_e=qi("sqrtTall",De,ft,$,h),_e.style.minWidth="0.742em",Ct=1.056),_e.height=He,_e.style.height=De+"em",{span:_e,advanceWidth:Ct,ruleWidth:(h.fontMetrics().sqrtRuleThickness+$)*D}},Ji=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Hs=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Cs=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],vi=[0,1.2,1.8,2.4,3],Gs=function(u,h,f,g,D){if(u==="<"||u==="\\lt"||u==="\u27E8"?u="\\langle":(u===">"||u==="\\gt"||u==="\u27E9")&&(u="\\rangle"),P.contains(Ji,u)||P.contains(Cs,u))return Ei(u,h,!1,f,g,D);if(P.contains(Hs,u))return ls(u,vi[h],!1,f,g,D);throw new p("Illegal delimiter: '"+u+"'")},cs=[{type:"small",style:y.SCRIPTSCRIPT},{type:"small",style:y.SCRIPT},{type:"small",style:y.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Wi=[{type:"small",style:y.SCRIPTSCRIPT},{type:"small",style:y.SCRIPT},{type:"small",style:y.TEXT},{type:"stack"}],ds=[{type:"small",style:y.SCRIPTSCRIPT},{type:"small",style:y.SCRIPT},{type:"small",style:y.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],la=function(u){if(u.type==="small")return"Main-Regular";if(u.type==="large")return"Size"+u.size+"-Regular";if(u.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+u.type+"' here.")},Ws=function(u,h,f,g){for(var D=Math.min(2,3-g.style.size),$=D;$<f.length&&f[$].type!=="stack";$++){var _e=xi(u,la(f[$]),"math"),De=_e.height+_e.depth;if(f[$].type==="small"){var He=g.havingBaseStyle(f[$].style);De*=He.sizeMultiplier}if(De>h)return f[$]}return f[f.length-1]},Ks=function(u,h,f,g,D,$){u==="<"||u==="\\lt"||u==="\u27E8"?u="\\langle":(u===">"||u==="\\gt"||u==="\u27E9")&&(u="\\rangle");var _e;P.contains(Cs,u)?_e=cs:P.contains(Ji,u)?_e=ds:_e=Wi;var De=Ws(u,h,_e,g);return De.type==="small"?as(u,De.style,f,g,D,$):De.type==="large"?Ei(u,De.size,f,g,D,$):ls(u,h,f,g,D,$)},Ds=function(u,h,f,g,D,$){var _e=g.fontMetrics().axisHeight*g.sizeMultiplier,De=901,He=5/g.fontMetrics().ptPerEm,ft=Math.max(h-_e,f+_e),Ct=Math.max(ft/500*De,2*ft-He);return Ks(u,Ct,!0,g,D,$)},_i={sqrtImage:oa,sizedDelim:Gs,customSizedDelim:Ks,leftRightDelim:Ds},hs={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Vs=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function fs(z,u){var h=Ir(z);if(h&&P.contains(Vs,h.text))return h;throw new p("Invalid delimiter: '"+(h?h.text:JSON.stringify(z))+"' after '"+u.funcName+"'",z)}fr({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(u,h){var f=fs(h[0],u);return{type:"delimsizing",mode:u.parser.mode,size:hs[u.funcName].size,mclass:hs[u.funcName].mclass,delim:f.text}},htmlBuilder:function(u,h){return u.delim==="."?dt.makeSpan([u.mclass]):_i.sizedDelim(u.delim,u.size,h,u.mode,[u.mclass])},mathmlBuilder:function(u){var h=[];u.delim!=="."&&h.push(gn(u.delim,u.mode));var f=new Jt.MathNode("mo",h);return u.mclass==="mopen"||u.mclass==="mclose"?f.setAttribute("fence","true"):f.setAttribute("fence","false"),f}});function ms(z){if(!z.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}fr({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(u,h){var f=u.parser.gullet.macros.get("\\current@color");if(f&&typeof f!="string")throw new p("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:u.parser.mode,delim:fs(h[0],u).text,color:f}}}),fr({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(u,h){var f=fs(h[0],u),g=u.parser;++g.leftrightDepth;var D=g.parseExpression(!1);--g.leftrightDepth,g.expect("\\right",!1);var $=Cr(g.parseFunction(),"leftright-right");return{type:"leftright",mode:g.mode,body:D,left:f.text,right:$.delim,rightColor:$.color}},htmlBuilder:function(u,h){ms(u);for(var f=yn(u.body,h,!0,["mopen","mclose"]),g=0,D=0,$=!1,_e=0;_e<f.length;_e++)f[_e].isMiddle?$=!0:(g=Math.max(f[_e].height,g),D=Math.max(f[_e].depth,D));g*=h.sizeMultiplier,D*=h.sizeMultiplier;var De;if(u.left==="."?De=Qn(h,["mopen"]):De=_i.leftRightDelim(u.left,g,D,h,u.mode,["mopen"]),f.unshift(De),$)for(var He=1;He<f.length;He++){var ft=f[He],Ct=ft.isMiddle;Ct&&(f[He]=_i.leftRightDelim(Ct.delim,g,D,Ct.options,u.mode,[]))}var Ht;if(u.right===".")Ht=Qn(h,["mclose"]);else{var ar=u.rightColor?h.withColor(u.rightColor):h;Ht=_i.leftRightDelim(u.right,g,D,ar,u.mode,["mclose"])}return f.push(Ht),dt.makeSpan(["minner"],f,h)},mathmlBuilder:function(u,h){ms(u);var f=En(u.body,h);if(u.left!=="."){var g=new Jt.MathNode("mo",[gn(u.left,u.mode)]);g.setAttribute("fence","true"),f.unshift(g)}if(u.right!=="."){var D=new Jt.MathNode("mo",[gn(u.right,u.mode)]);D.setAttribute("fence","true"),u.rightColor&&D.setAttribute("mathcolor",u.rightColor),f.push(D)}return Zn(f)}}),fr({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(u,h){var f=fs(h[0],u);if(!u.parser.leftrightDepth)throw new p("\\middle without preceding \\left",f);return{type:"middle",mode:u.parser.mode,delim:f.text}},htmlBuilder:function(u,h){var f;if(u.delim===".")f=Qn(h,[]);else{f=_i.sizedDelim(u.delim,1,h,u.mode,[]);var g={delim:u.delim,options:h};f.isMiddle=g}return f},mathmlBuilder:function(u,h){var f=u.delim==="\\vert"||u.delim==="|"?gn("|","text"):gn(u.delim,u.mode),g=new Jt.MathNode("mo",[f]);return g.setAttribute("fence","true"),g.setAttribute("lspace","0.05em"),g.setAttribute("rspace","0.05em"),g}});var ps=function(u,h){var f=dt.wrapFragment(cn(u.body,h),h),g=u.label.substr(1),D=h.sizeMultiplier,$,_e=0,De=P.isCharacterBox(u.body);if(g==="sout")$=dt.makeSpan(["stretchy","sout"]),$.height=h.fontMetrics().defaultRuleThickness/D,_e=-.5*h.fontMetrics().xHeight;else{/cancel/.test(g)?De||f.classes.push("cancel-pad"):f.classes.push("boxpad");var He=0,ft=0;/box/.test(g)?(ft=Math.max(h.fontMetrics().fboxrule,h.minRuleThickness),He=h.fontMetrics().fboxsep+(g==="colorbox"?0:ft)):He=De?.2:0,$=Ur.encloseSpan(f,g,He,h),/fbox|boxed|fcolorbox/.test(g)&&($.style.borderStyle="solid",$.style.borderWidth=ft+"em"),_e=f.depth+He,u.backgroundColor&&($.style.backgroundColor=u.backgroundColor,u.borderColor&&($.style.borderColor=u.borderColor))}var Ct;return u.backgroundColor?Ct=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:$,shift:_e},{type:"elem",elem:f,shift:0}]},h):Ct=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:f,shift:0},{type:"elem",elem:$,shift:_e,wrapperClasses:/cancel/.test(g)?["svg-align"]:[]}]},h),/cancel/.test(g)&&(Ct.height=f.height,Ct.depth=f.depth),/cancel/.test(g)&&!De?dt.makeSpan(["mord","cancel-lap"],[Ct],h):dt.makeSpan(["mord"],[Ct],h)},gs=function(u,h){var f=0,g=new Jt.MathNode(u.label.indexOf("colorbox")>-1?"mpadded":"menclose",[mn(u.body,h)]);switch(u.label){case"\\cancel":g.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":g.setAttribute("notation","downdiagonalstrike");break;case"\\sout":g.setAttribute("notation","horizontalstrike");break;case"\\fbox":g.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(f=h.fontMetrics().fboxsep*h.fontMetrics().ptPerEm,g.setAttribute("width","+"+2*f+"pt"),g.setAttribute("height","+"+2*f+"pt"),g.setAttribute("lspace",f+"pt"),g.setAttribute("voffset",f+"pt"),u.label==="\\fcolorbox"){var D=Math.max(h.fontMetrics().fboxrule,h.minRuleThickness);g.setAttribute("style","border: "+D+"em solid "+String(u.borderColor))}break;case"\\xcancel":g.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return u.backgroundColor&&g.setAttribute("mathbackground",u.backgroundColor),g};fr({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(u,h,f){var g=u.parser,D=u.funcName,$=Cr(h[0],"color-token").color,_e=h[1];return{type:"enclose",mode:g.mode,label:D,backgroundColor:$,body:_e}},htmlBuilder:ps,mathmlBuilder:gs}),fr({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(u,h,f){var g=u.parser,D=u.funcName,$=Cr(h[0],"color-token").color,_e=Cr(h[1],"color-token").color,De=h[2];return{type:"enclose",mode:g.mode,label:D,backgroundColor:_e,borderColor:$,body:De}},htmlBuilder:ps,mathmlBuilder:gs}),fr({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(u,h){var f=u.parser;return{type:"enclose",mode:f.mode,label:"\\fbox",body:h[0]}}}),fr({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(u,h,f){var g=u.parser,D=u.funcName,$=h[0];return{type:"enclose",mode:g.mode,label:D,body:$}},htmlBuilder:ps,mathmlBuilder:gs});var Ki={};function Mi(z){for(var u=z.type,h=z.names,f=z.props,g=z.handler,D=z.htmlBuilder,$=z.mathmlBuilder,_e={type:u,numArgs:f.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:g},De=0;De<h.length;++De)Ki[h[De]]=_e;D&&(Hn[u]=D),$&&(un[u]=$)}function Is(z){var u=[];z.consumeSpaces();for(var h=z.fetch().text;h==="\\hline"||h==="\\hdashline";)z.consume(),u.push(h==="\\hdashline"),z.consumeSpaces(),h=z.fetch().text;return u}function Cn(z,u,h){var f=u.hskipBeforeAndAfter,g=u.addJot,D=u.cols,$=u.arraystretch,_e=u.colSeparationType;if(z.gullet.beginGroup(),z.gullet.macros.set("\\\\","\\cr"),!$){var De=z.gullet.expandMacroAsText("\\arraystretch");if(De==null)$=1;else if($=parseFloat(De),!$||$<0)throw new p("Invalid \\arraystretch: "+De)}z.gullet.beginGroup();var He=[],ft=[He],Ct=[],Ht=[];for(Ht.push(Is(z));;){var ar=z.parseExpression(!1,"\\cr");z.gullet.endGroup(),z.gullet.beginGroup(),ar={type:"ordgroup",mode:z.mode,body:ar},h&&(ar={type:"styling",mode:z.mode,style:h,body:[ar]}),He.push(ar);var hr=z.fetch().text;if(hr==="&")z.consume();else if(hr==="\\end"){He.length===1&&ar.type==="styling"&&ar.body[0].body.length===0&&ft.pop(),Ht.length<ft.length+1&&Ht.push([]);break}else if(hr==="\\cr"){var Ye=Cr(z.parseFunction(),"cr");Ct.push(Ye.size),Ht.push(Is(z)),He=[],ft.push(He)}else throw new p("Expected & or \\\\ or \\cr or \\end",z.nextToken)}return z.gullet.endGroup(),z.gullet.endGroup(),{type:"array",mode:z.mode,addJot:g,arraystretch:$,body:ft,cols:D,rowGaps:Ct,hskipBeforeAndAfter:f,hLinesBeforeRow:Ht,colSeparationType:_e}}function Tn(z){return z.substr(0,1)==="d"?"display":"text"}var Sn=function(u,h){var f,g,D=u.body.length,$=u.hLinesBeforeRow,_e=0,De=new Array(D),He=[],ft=Math.max(h.fontMetrics().arrayRuleWidth,h.minRuleThickness),Ct=1/h.fontMetrics().ptPerEm,Ht=5*Ct;if(u.colSeparationType&&u.colSeparationType==="small"){var ar=h.havingStyle(y.SCRIPT).sizeMultiplier;Ht=.2778*(ar/h.sizeMultiplier)}var hr=12*Ct,Ye=3*Ct,Mr=u.arraystretch*hr,tn=.7*Mr,dn=.3*Mr,an=0;function Un(to){for(var ws=0;ws<to.length;++ws)ws>0&&(an+=.25),He.push({pos:an,isDashed:to[ws]})}for(Un($[0]),f=0;f<u.body.length;++f){var Mn=u.body[f],Wn=tn,Kn=dn;_e<Mn.length&&(_e=Mn.length);var Xn=new Array(Mn.length);for(g=0;g<Mn.length;++g){var ei=cn(Mn[g],h);Kn<ei.depth&&(Kn=ei.depth),Wn<ei.height&&(Wn=ei.height),Xn[g]=ei}var ii=u.rowGaps[f],On=0;ii&&(On=Ge(ii,h),On>0&&(On+=dn,Kn<On&&(Kn=On),On=0)),u.addJot&&(Kn+=Ye),Xn.height=Wn,Xn.depth=Kn,an+=Wn,Xn.pos=an,an+=Kn+On,De[f]=Xn,Un($[f+1])}var pi=an/2+h.fontMetrics().axisHeight,si=u.cols||[],ki=[],di,$i;for(g=0,$i=0;g<_e||$i<si.length;++g,++$i){for(var Ui=si[$i]||{},Ja=!0;Ui.type==="separator";){if(Ja||(di=dt.makeSpan(["arraycolsep"],[]),di.style.width=h.fontMetrics().doubleRuleSep+"em",ki.push(di)),Ui.separator==="|"||Ui.separator===":"){var eo=Ui.separator==="|"?"solid":"dashed",yi=dt.makeSpan(["vertical-separator"],[],h);yi.style.height=an+"em",yi.style.borderRightWidth=ft+"em",yi.style.borderRightStyle=eo,yi.style.margin="0 -"+ft/2+"em",yi.style.verticalAlign=-(an-pi)+"em",ki.push(yi)}else throw new p("Invalid separator type: "+Ui.separator);$i++,Ui=si[$i]||{},Ja=!1}if(!(g>=_e)){var zi=void 0;(g>0||u.hskipBeforeAndAfter)&&(zi=P.deflt(Ui.pregap,Ht),zi!==0&&(di=dt.makeSpan(["arraycolsep"],[]),di.style.width=zi+"em",ki.push(di)));var rs=[];for(f=0;f<D;++f){var ea=De[f],Es=ea[g];if(Es){var Ns=ea.pos-pi;Es.depth=ea.depth,Es.height=ea.height,rs.push({type:"elem",elem:Es,shift:Ns})}}rs=dt.makeVList({positionType:"individualShift",children:rs},h),rs=dt.makeSpan(["col-align-"+(Ui.align||"c")],[rs]),ki.push(rs),(g<_e-1||u.hskipBeforeAndAfter)&&(zi=P.deflt(Ui.postgap,Ht),zi!==0&&(di=dt.makeSpan(["arraycolsep"],[]),di.style.width=zi+"em",ki.push(di)))}}if(De=dt.makeSpan(["mtable"],ki),He.length>0){for(var To=dt.makeLineSpan("hline",h,ft),Co=dt.makeLineSpan("hdashline",h,ft),ta=[{type:"elem",elem:De,shift:0}];He.length>0;){var wa=He.pop(),Sa=wa.pos-pi;wa.isDashed?ta.push({type:"elem",elem:Co,shift:Sa}):ta.push({type:"elem",elem:To,shift:Sa})}De=dt.makeVList({positionType:"individualShift",children:ta},h)}return dt.makeSpan(["mord"],[De],h)},oi={c:"center ",l:"left ",r:"right "},Yn=function(u,h){var f=new Jt.MathNode("mtable",u.body.map(function(an){return new Jt.MathNode("mtr",an.map(function(Un){return new Jt.MathNode("mtd",[mn(Un,h)])}))})),g=u.arraystretch===.5?.1:.16+u.arraystretch-1+(u.addJot?.09:0);f.setAttribute("rowspacing",g+"em");var D="",$="";if(u.cols){var _e=u.cols,De="",He=!1,ft=0,Ct=_e.length;_e[0].type==="separator"&&(D+="top ",ft=1),_e[_e.length-1].type==="separator"&&(D+="bottom ",Ct-=1);for(var Ht=ft;Ht<Ct;Ht++)_e[Ht].type==="align"?($+=oi[_e[Ht].align],He&&(De+="none "),He=!0):_e[Ht].type==="separator"&&He&&(De+=_e[Ht].separator==="|"?"solid ":"dashed ",He=!1);f.setAttribute("columnalign",$.trim()),/[sd]/.test(De)&&f.setAttribute("columnlines",De.trim())}if(u.colSeparationType==="align"){for(var ar=u.cols||[],hr="",Ye=1;Ye<ar.length;Ye++)hr+=Ye%2?"0em ":"1em ";f.setAttribute("columnspacing",hr.trim())}else u.colSeparationType==="alignat"?f.setAttribute("columnspacing","0em"):u.colSeparationType==="small"?f.setAttribute("columnspacing","0.2778em"):f.setAttribute("columnspacing","1em");var Mr="",tn=u.hLinesBeforeRow;D+=tn[0].length>0?"left ":"",D+=tn[tn.length-1].length>0?"right ":"";for(var dn=1;dn<tn.length-1;dn++)Mr+=tn[dn].length===0?"none ":tn[dn][0]?"dashed ":"solid ";return/[sd]/.test(Mr)&&f.setAttribute("rowlines",Mr.trim()),D!==""&&(f=new Jt.MathNode("menclose",[f]),f.setAttribute("notation",D.trim())),u.arraystretch&&u.arraystretch<1&&(f=new Jt.MathNode("mstyle",[f]),f.setAttribute("scriptlevel","1")),f},Qt=function(u,h){var f=[],g=Cn(u.parser,{cols:f,addJot:!0},"display"),D,$=0,_e={type:"ordgroup",mode:u.mode,body:[]},De=Zr(h[0],"ordgroup");if(De){for(var He="",ft=0;ft<De.body.length;ft++){var Ct=Cr(De.body[ft],"textord");He+=Ct.text}D=Number(He),$=D*2}var Ht=!$;g.body.forEach(function(Mr){for(var tn=1;tn<Mr.length;tn+=2){var dn=Cr(Mr[tn],"styling"),an=Cr(dn.body[0],"ordgroup");an.body.unshift(_e)}if(Ht)$<Mr.length&&($=Mr.length);else{var Un=Mr.length/2;if(D<Un)throw new p("Too many math in a row: "+("expected "+D+", but got "+Un),Mr[0])}});for(var ar=0;ar<$;++ar){var hr="r",Ye=0;ar%2===1?hr="l":ar>0&&Ht&&(Ye=1),f[ar]={type:"align",align:hr,pregap:Ye,postgap:0}}return g.colSeparationType=Ht?"align":"alignat",g};Mi({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(u,h){var f=Ir(h[0]),g=f?[h[0]]:Cr(h[0],"ordgroup").body,D=g.map(function(_e){var De=An(_e),He=De.text;if("lcr".indexOf(He)!==-1)return{type:"align",align:He};if(He==="|")return{type:"separator",separator:"|"};if(He===":")return{type:"separator",separator:":"};throw new p("Unknown column alignment: "+He,_e)}),$={cols:D,hskipBeforeAndAfter:!0};return Cn(u.parser,$,Tn(u.envName))},htmlBuilder:Sn,mathmlBuilder:Yn}),Mi({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(u){var h={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[u.envName],f={hskipBeforeAndAfter:!1},g=Cn(u.parser,f,Tn(u.envName));return h?{type:"leftright",mode:u.mode,body:[g],left:h[0],right:h[1],rightColor:void 0}:g},htmlBuilder:Sn,mathmlBuilder:Yn}),Mi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(u){var h={arraystretch:.5},f=Cn(u.parser,h,"script");return f.colSeparationType="small",f},htmlBuilder:Sn,mathmlBuilder:Yn}),Mi({type:"array",names:["subarray"],props:{numArgs:1},handler:function(u,h){var f=Ir(h[0]),g=f?[h[0]]:Cr(h[0],"ordgroup").body,D=g.map(function(_e){var De=An(_e),He=De.text;if("lc".indexOf(He)!==-1)return{type:"align",align:He};throw new p("Unknown column alignment: "+He,_e)});if(D.length>1)throw new p("{subarray} can contain only one column");var $={cols:D,hskipBeforeAndAfter:!1,arraystretch:.5};if($=Cn(u.parser,$,"script"),$.body[0].length>1)throw new p("{subarray} can contain only one column");return $},htmlBuilder:Sn,mathmlBuilder:Yn}),Mi({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(u){var h={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},f=Cn(u.parser,h,Tn(u.envName));return{type:"leftright",mode:u.mode,body:[f],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Sn,mathmlBuilder:Yn}),Mi({type:"array",names:["aligned"],props:{numArgs:0},handler:Qt,htmlBuilder:Sn,mathmlBuilder:Yn}),Mi({type:"array",names:["gathered"],props:{numArgs:0},handler:function(u){var h={cols:[{type:"align",align:"c"}],addJot:!0};return Cn(u.parser,h,"display")},htmlBuilder:Sn,mathmlBuilder:Yn}),Mi({type:"array",names:["alignedat"],props:{numArgs:1},handler:Qt,htmlBuilder:Sn,mathmlBuilder:Yn}),fr({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(u,h){throw new p(u.funcName+" valid only within array environment")}});var es=Ki,Rs=es;fr({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(u,h){var f=u.parser,g=u.funcName,D=h[0];if(D.type!=="ordgroup")throw new p("Invalid environment name",D);for(var $="",_e=0;_e<D.body.length;++_e)$+=Cr(D.body[_e],"textord").text;if(g==="\\begin"){if(!Rs.hasOwnProperty($))throw new p("No such environment: "+$,D);var De=Rs[$],He=f.parseArguments("\\begin{"+$+"}",De),ft=He.args,Ct=He.optArgs,Ht={mode:f.mode,envName:$,parser:f},ar=De.handler(Ht,ft,Ct);f.expect("\\end",!1);var hr=f.nextToken,Ye=Cr(f.parseFunction(),"environment");if(Ye.name!==$)throw new p("Mismatch: \\begin{"+$+"} matched by \\end{"+Ye.name+"}",hr);return ar}return{type:"environment",mode:f.mode,name:$,nameGroup:D}}});var Ls=dt.makeSpan;function ks(z,u){var h=yn(z.body,u,!0);return Ls([z.mclass],h,u)}function Fi(z,u){var h,f=En(z.body,u);return z.mclass==="minner"?Jt.newDocumentFragment(f):(z.mclass==="mord"?z.isCharacterBox?(h=f[0],h.type="mi"):h=new Jt.MathNode("mi",f):(z.isCharacterBox?(h=f[0],h.type="mo"):h=new Jt.MathNode("mo",f),z.mclass==="mbin"?(h.attributes.lspace="0.22em",h.attributes.rspace="0.22em"):z.mclass==="mpunct"?(h.attributes.lspace="0em",h.attributes.rspace="0.17em"):(z.mclass==="mopen"||z.mclass==="mclose")&&(h.attributes.lspace="0em",h.attributes.rspace="0em")),h)}fr({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(u,h){var f=u.parser,g=u.funcName,D=h[0];return{type:"mclass",mode:f.mode,mclass:"m"+g.substr(5),body:hn(D),isCharacterBox:P.isCharacterBox(D)}},htmlBuilder:ks,mathmlBuilder:Fi});var Vi=function(u){var h=u.type==="ordgroup"&&u.body.length?u.body[0]:u;return h.type==="atom"&&(h.family==="bin"||h.family==="rel")?"m"+h.family:"mord"};fr({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(u,h){var f=u.parser;return{type:"mclass",mode:f.mode,mclass:Vi(h[0]),body:[h[1]],isCharacterBox:P.isCharacterBox(h[1])}}}),fr({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(u,h){var f=u.parser,g=u.funcName,D=h[1],$=h[0],_e;g!=="\\stackrel"?_e=Vi(D):_e="mrel";var De={type:"op",mode:D.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:g!=="\\stackrel",body:hn(D)},He={type:"supsub",mode:$.mode,base:De,sup:g==="\\underset"?null:$,sub:g==="\\underset"?$:null};return{type:"mclass",mode:f.mode,mclass:_e,body:[He],isCharacterBox:P.isCharacterBox(He)}},htmlBuilder:ks,mathmlBuilder:Fi});var Zs=function(u,h){var f=u.font,g=h.withFont(f);return cn(u.body,g)},Ra=function(u,h){var f=u.font,g=h.withFont(f);return mn(u.body,g)},Ys={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};fr({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(u,h){var f=u.parser,g=u.funcName,D=h[0],$=g;return $ in Ys&&($=Ys[$]),{type:"font",mode:f.mode,font:$.slice(1),body:D}},htmlBuilder:Zs,mathmlBuilder:Ra}),fr({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(u,h){var f=u.parser,g=h[0],D=P.isCharacterBox(g);return{type:"mclass",mode:f.mode,mclass:Vi(g),body:[{type:"font",mode:f.mode,font:"boldsymbol",body:g}],isCharacterBox:D}}}),fr({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(u,h){var f=u.parser,g=u.funcName,D=u.breakOnTokenText,$=f.mode,_e=f.parseExpression(!0,D),De="math"+g.slice(1);return{type:"font",mode:$,font:De,body:{type:"ordgroup",mode:f.mode,body:_e}}},htmlBuilder:Zs,mathmlBuilder:Ra});var vs=function(u,h){var f=h;return u==="display"?f=f.id>=y.SCRIPT.id?f.text():y.DISPLAY:u==="text"&&f.size===y.DISPLAY.size?f=y.TEXT:u==="script"?f=y.SCRIPT:u==="scriptscript"&&(f=y.SCRIPTSCRIPT),f},Zi=function(u,h){var f=vs(u.size,h.style),g=f.fracNum(),D=f.fracDen(),$;$=h.havingStyle(g);var _e=cn(u.numer,$,h);if(u.continued){var De=8.5/h.fontMetrics().ptPerEm,He=3.5/h.fontMetrics().ptPerEm;_e.height=_e.height<De?De:_e.height,_e.depth=_e.depth<He?He:_e.depth}$=h.havingStyle(D);var ft=cn(u.denom,$,h),Ct,Ht,ar;u.hasBarLine?(u.barSize?(Ht=Ge(u.barSize,h),Ct=dt.makeLineSpan("frac-line",h,Ht)):Ct=dt.makeLineSpan("frac-line",h),Ht=Ct.height,ar=Ct.height):(Ct=null,Ht=0,ar=h.fontMetrics().defaultRuleThickness);var hr,Ye,Mr;f.size===y.DISPLAY.size||u.size==="display"?(hr=h.fontMetrics().num1,Ht>0?Ye=3*ar:Ye=7*ar,Mr=h.fontMetrics().denom1):(Ht>0?(hr=h.fontMetrics().num2,Ye=ar):(hr=h.fontMetrics().num3,Ye=3*ar),Mr=h.fontMetrics().denom2);var tn;if(Ct){var an=h.fontMetrics().axisHeight;hr-_e.depth-(an+.5*Ht)<Ye&&(hr+=Ye-(hr-_e.depth-(an+.5*Ht))),an-.5*Ht-(ft.height-Mr)<Ye&&(Mr+=Ye-(an-.5*Ht-(ft.height-Mr)));var Un=-(an-.5*Ht);tn=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ft,shift:Mr},{type:"elem",elem:Ct,shift:Un},{type:"elem",elem:_e,shift:-hr}]},h)}else{var dn=hr-_e.depth-(ft.height-Mr);dn<Ye&&(hr+=.5*(Ye-dn),Mr+=.5*(Ye-dn)),tn=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ft,shift:Mr},{type:"elem",elem:_e,shift:-hr}]},h)}$=h.havingStyle(f),tn.height*=$.sizeMultiplier/h.sizeMultiplier,tn.depth*=$.sizeMultiplier/h.sizeMultiplier;var Mn;f.size===y.DISPLAY.size?Mn=h.fontMetrics().delim1:Mn=h.fontMetrics().delim2;var Wn,Kn;return u.leftDelim==null?Wn=Qn(h,["mopen"]):Wn=_i.customSizedDelim(u.leftDelim,Mn,!0,h.havingStyle(f),u.mode,["mopen"]),u.continued?Kn=dt.makeSpan([]):u.rightDelim==null?Kn=Qn(h,["mclose"]):Kn=_i.customSizedDelim(u.rightDelim,Mn,!0,h.havingStyle(f),u.mode,["mclose"]),dt.makeSpan(["mord"].concat($.sizingClasses(h)),[Wn,dt.makeSpan(["mfrac"],[tn]),Kn],h)},ua=function(u,h){var f=new Jt.MathNode("mfrac",[mn(u.numer,h),mn(u.denom,h)]);if(!u.hasBarLine)f.setAttribute("linethickness","0px");else if(u.barSize){var g=Ge(u.barSize,h);f.setAttribute("linethickness",g+"em")}var D=vs(u.size,h.style);if(D.size!==h.style.size){f=new Jt.MathNode("mstyle",[f]);var $=D.size===y.DISPLAY.size?"true":"false";f.setAttribute("displaystyle",$),f.setAttribute("scriptlevel","0")}if(u.leftDelim!=null||u.rightDelim!=null){var _e=[];if(u.leftDelim!=null){var De=new Jt.MathNode("mo",[new Jt.TextNode(u.leftDelim.replace("\\",""))]);De.setAttribute("fence","true"),_e.push(De)}if(_e.push(f),u.rightDelim!=null){var He=new Jt.MathNode("mo",[new Jt.TextNode(u.rightDelim.replace("\\",""))]);He.setAttribute("fence","true"),_e.push(He)}return Zn(_e)}return f};fr({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(u,h){var f=u.parser,g=u.funcName,D=h[0],$=h[1],_e,De=null,He=null,ft="auto";switch(g){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":_e=!0;break;case"\\\\atopfrac":_e=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":_e=!1,De="(",He=")";break;case"\\\\bracefrac":_e=!1,De="\\{",He="\\}";break;case"\\\\brackfrac":_e=!1,De="[",He="]";break;default:throw new Error("Unrecognized genfrac command")}switch(g){case"\\cfrac":case"\\dfrac":case"\\dbinom":ft="display";break;case"\\tfrac":case"\\tbinom":ft="text";break}return{type:"genfrac",mode:f.mode,continued:g==="\\cfrac",numer:D,denom:$,hasBarLine:_e,leftDelim:De,rightDelim:He,size:ft,barSize:null}},htmlBuilder:Zi,mathmlBuilder:ua}),fr({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(u){var h=u.parser,f=u.funcName,g=u.token,D;switch(f){case"\\over":D="\\frac";break;case"\\choose":D="\\binom";break;case"\\atop":D="\\\\atopfrac";break;case"\\brace":D="\\\\bracefrac";break;case"\\brack":D="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:h.mode,replaceWith:D,token:g}}});var La=["display","text","script","scriptscript"],ka=function(u){var h=null;return u.length>0&&(h=u,h=h==="."?null:h),h};fr({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(u,h){var f=u.parser,g=h[4],D=h[5],$=Zr(h[0],"atom");$&&($=Br(h[0],"open"));var _e=$?ka($.text):null,De=Zr(h[1],"atom");De&&(De=Br(h[1],"close"));var He=De?ka(De.text):null,ft=Cr(h[2],"size"),Ct,Ht=null;ft.isBlank?Ct=!0:(Ht=ft.value,Ct=Ht.number>0);var ar="auto",hr=Zr(h[3],"ordgroup");if(hr){if(hr.body.length>0){var Ye=Cr(hr.body[0],"textord");ar=La[Number(Ye.text)]}}else hr=Cr(h[3],"textord"),ar=La[Number(hr.text)];return{type:"genfrac",mode:f.mode,numer:g,denom:D,continued:!1,hasBarLine:Ct,barSize:Ht,leftDelim:_e,rightDelim:He,size:ar}},htmlBuilder:Zi,mathmlBuilder:ua}),fr({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(u,h){var f=u.parser,g=u.funcName,D=u.token;return{type:"infix",mode:f.mode,replaceWith:"\\\\abovefrac",size:Cr(h[0],"size").value,token:D}}}),fr({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(u,h){var f=u.parser,g=u.funcName,D=h[0],$=X(Cr(h[1],"infix").size),_e=h[2],De=$.number>0;return{type:"genfrac",mode:f.mode,numer:D,denom:_e,continued:!1,hasBarLine:De,barSize:$,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Zi,mathmlBuilder:ua});var Oa=function(u,h){var f=h.style,g,D,$=Zr(u,"supsub");$?(g=$.sup?cn($.sup,h.havingStyle(f.sup()),h):cn($.sub,h.havingStyle(f.sub()),h),D=Cr($.base,"horizBrace")):D=Cr(u,"horizBrace");var _e=cn(D.base,h.havingBaseStyle(y.DISPLAY)),De=Ur.svgSpan(D,h),He;if(D.isOver?(He=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:_e},{type:"kern",size:.1},{type:"elem",elem:De}]},h),He.children[0].children[0].children[1].classes.push("svg-align")):(He=dt.makeVList({positionType:"bottom",positionData:_e.depth+.1+De.height,children:[{type:"elem",elem:De},{type:"kern",size:.1},{type:"elem",elem:_e}]},h),He.children[0].children[0].children[0].classes.push("svg-align")),g){var ft=dt.makeSpan(["mord",D.isOver?"mover":"munder"],[He],h);D.isOver?He=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:ft},{type:"kern",size:.2},{type:"elem",elem:g}]},h):He=dt.makeVList({positionType:"bottom",positionData:ft.depth+.2+g.height+g.depth,children:[{type:"elem",elem:g},{type:"kern",size:.2},{type:"elem",elem:ft}]},h)}return dt.makeSpan(["mord",D.isOver?"mover":"munder"],[He],h)},Pa=function(u,h){var f=Ur.mathMLnode(u.label);return new Jt.MathNode(u.isOver?"mover":"munder",[mn(u.base,h),f])};fr({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(u,h){var f=u.parser,g=u.funcName;return{type:"horizBrace",mode:f.mode,label:g,isOver:/^\\over/.test(g),base:h[0]}},htmlBuilder:Oa,mathmlBuilder:Pa}),fr({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(u,h){var f=u.parser,g=h[1],D=Cr(h[0],"url").url;return f.settings.isTrusted({command:"\\href",url:D})?{type:"href",mode:f.mode,href:D,body:hn(g)}:f.formatUnsupportedCmd("\\href")},htmlBuilder:function(u,h){var f=yn(u.body,h,!1);return dt.makeAnchor(u.href,[],f,h)},mathmlBuilder:function(u,h){var f=kn(u.body,h);return f instanceof Er||(f=new Er("mrow",[f])),f.setAttribute("href",u.href),f}}),fr({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(u,h){var f=u.parser,g=Cr(h[0],"url").url;if(!f.settings.isTrusted({command:"\\url",url:g}))return f.formatUnsupportedCmd("\\url");for(var D=[],$=0;$<g.length;$++){var _e=g[$];_e==="~"&&(_e="\\textasciitilde"),D.push({type:"textord",mode:"text",text:_e})}var De={type:"text",mode:f.mode,font:"\\texttt",body:D};return{type:"href",mode:f.mode,href:g,body:hn(De)}}}),fr({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(u,h){var f=u.parser;return{type:"htmlmathml",mode:f.mode,html:hn(h[0]),mathml:hn(h[1])}},htmlBuilder:function(u,h){var f=yn(u.html,h,!1);return dt.makeFragment(f)},mathmlBuilder:function(u,h){return kn(u.mathml,h)}});var Os=function(u){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(u))return{number:+u,unit:"bp"};var h=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(u);if(!h)throw new p("Invalid size: '"+u+"' in \\includegraphics");var f={number:+(h[1]+h[2]),unit:h[3]};if(!Te(f))throw new p("Invalid unit: '"+f.unit+"' in \\includegraphics.");return f};fr({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(u,h,f){var g=u.parser,D={number:0,unit:"em"},$={number:.9,unit:"em"},_e={number:0,unit:"em"},De="";if(f[0])for(var He=Cr(f[0],"raw").string,ft=He.split(","),Ct=0;Ct<ft.length;Ct++){var Ht=ft[Ct].split("=");if(Ht.length===2){var ar=Ht[1].trim();switch(Ht[0].trim()){case"alt":De=ar;break;case"width":D=Os(ar);break;case"height":$=Os(ar);break;case"totalheight":_e=Os(ar);break;default:throw new p("Invalid key: '"+Ht[0]+"' in \\includegraphics.")}}}var hr=Cr(h[0],"url").url;return De===""&&(De=hr,De=De.replace(/^.*[\\/]/,""),De=De.substring(0,De.lastIndexOf("."))),g.settings.isTrusted({command:"\\includegraphics",url:hr})?{type:"includegraphics",mode:g.mode,alt:De,width:D,height:$,totalheight:_e,src:hr}:g.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(u,h){var f=Ge(u.height,h),g=0;u.totalheight.number>0&&(g=Ge(u.totalheight,h)-f,g=Number(g.toFixed(2)));var D=0;u.width.number>0&&(D=Ge(u.width,h));var $={height:f+g+"em"};D>0&&($.width=D+"em"),g>0&&($.verticalAlign=-g+"em");var _e=new Re(u.src,u.alt,$);return _e.height=f,_e.depth=g,_e},mathmlBuilder:function(u,h){var f=new Jt.MathNode("mglyph",[]);f.setAttribute("alt",u.alt);var g=Ge(u.height,h),D=0;if(u.totalheight.number>0&&(D=Ge(u.totalheight,h)-g,D=D.toFixed(2),f.setAttribute("valign","-"+D+"em")),f.setAttribute("height",g+D+"em"),u.width.number>0){var $=Ge(u.width,h);f.setAttribute("width",$+"em")}return f.setAttribute("src",u.src),f}}),fr({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(u,h){var f=u.parser,g=u.funcName,D=Cr(h[0],"size");if(f.settings.strict){var $=g[1]==="m",_e=D.value.unit==="mu";$?(_e||f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+g+" supports only mu units, "+("not "+D.value.unit+" units")),f.mode!=="math"&&f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+g+" works only in math mode")):_e&&f.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+g+" doesn't support mu units")}return{type:"kern",mode:f.mode,dimension:D.value}},htmlBuilder:function(u,h){return dt.makeGlue(u.dimension,h)},mathmlBuilder:function(u,h){var f=Ge(u.dimension,h);return new Jt.SpaceNode(f)}}),fr({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(u,h){var f=u.parser,g=u.funcName,D=h[0];return{type:"lap",mode:f.mode,alignment:g.slice(5),body:D}},htmlBuilder:function(u,h){var f;u.alignment==="clap"?(f=dt.makeSpan([],[cn(u.body,h)]),f=dt.makeSpan(["inner"],[f],h)):f=dt.makeSpan(["inner"],[cn(u.body,h)]);var g=dt.makeSpan(["fix"],[]),D=dt.makeSpan([u.alignment],[f,g],h),$=dt.makeSpan(["strut"]);return $.style.height=D.height+D.depth+"em",$.style.verticalAlign=-D.depth+"em",D.children.unshift($),D=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:D}]},h),dt.makeSpan(["mord"],[D],h)},mathmlBuilder:function(u,h){var f=new Jt.MathNode("mpadded",[mn(u.body,h)]);if(u.alignment!=="rlap"){var g=u.alignment==="llap"?"-1":"-0.5";f.setAttribute("lspace",g+"width")}return f.setAttribute("width","0px"),f}}),fr({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(u,h){var f=u.funcName,g=u.parser,D=g.mode;g.switchMode("math");var $=f==="\\("?"\\)":"$",_e=g.parseExpression(!1,$);return g.expect($),g.switchMode(D),{type:"styling",mode:g.mode,style:"text",body:_e}}}),fr({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(u,h){throw new p("Mismatched "+u.funcName)}});var Ps=function(u,h){switch(h.style.size){case y.DISPLAY.size:return u.display;case y.TEXT.size:return u.text;case y.SCRIPT.size:return u.script;case y.SCRIPTSCRIPT.size:return u.scriptscript;default:return u.text}};fr({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(u,h){var f=u.parser;return{type:"mathchoice",mode:f.mode,display:hn(h[0]),text:hn(h[1]),script:hn(h[2]),scriptscript:hn(h[3])}},htmlBuilder:function(u,h){var f=Ps(u,h),g=yn(f,h,!1);return dt.makeFragment(g)},mathmlBuilder:function(u,h){var f=Ps(u,h);return kn(f,h)}});var _s=function(u,h,f,g,D,$,_e){u=dt.makeSpan([],[u]);var De,He;if(h){var ft=cn(h,g.havingStyle(D.sup()),g);He={elem:ft,kern:Math.max(g.fontMetrics().bigOpSpacing1,g.fontMetrics().bigOpSpacing3-ft.depth)}}if(f){var Ct=cn(f,g.havingStyle(D.sub()),g);De={elem:Ct,kern:Math.max(g.fontMetrics().bigOpSpacing2,g.fontMetrics().bigOpSpacing4-Ct.height)}}var Ht;if(He&&De){var ar=g.fontMetrics().bigOpSpacing5+De.elem.height+De.elem.depth+De.kern+u.depth+_e;Ht=dt.makeVList({positionType:"bottom",positionData:ar,children:[{type:"kern",size:g.fontMetrics().bigOpSpacing5},{type:"elem",elem:De.elem,marginLeft:-$+"em"},{type:"kern",size:De.kern},{type:"elem",elem:u},{type:"kern",size:He.kern},{type:"elem",elem:He.elem,marginLeft:$+"em"},{type:"kern",size:g.fontMetrics().bigOpSpacing5}]},g)}else if(De){var hr=u.height-_e;Ht=dt.makeVList({positionType:"top",positionData:hr,children:[{type:"kern",size:g.fontMetrics().bigOpSpacing5},{type:"elem",elem:De.elem,marginLeft:-$+"em"},{type:"kern",size:De.kern},{type:"elem",elem:u}]},g)}else if(He){var Ye=u.depth+_e;Ht=dt.makeVList({positionType:"bottom",positionData:Ye,children:[{type:"elem",elem:u},{type:"kern",size:He.kern},{type:"elem",elem:He.elem,marginLeft:$+"em"},{type:"kern",size:g.fontMetrics().bigOpSpacing5}]},g)}else return u;return dt.makeSpan(["mop","op-limits"],[Ht],g)},Ma=["\\smallint"],ts=function(u,h){var f,g,D=!1,$,_e=Zr(u,"supsub");_e?(f=_e.sup,g=_e.sub,$=Cr(_e.base,"op"),D=!0):$=Cr(u,"op");var De=h.style,He=!1;De.size===y.DISPLAY.size&&$.symbol&&!P.contains(Ma,$.name)&&(He=!0);var ft;if($.symbol){var Ct=He?"Size2-Regular":"Size1-Regular",Ht="";if(($.name==="\\oiint"||$.name==="\\oiiint")&&(Ht=$.name.substr(1),$.name=Ht==="oiint"?"\\iint":"\\iiint"),ft=dt.makeSymbol($.name,Ct,"math",h,["mop","op-symbol",He?"large-op":"small-op"]),Ht.length>0){var ar=ft.italic,hr=dt.staticSvg(Ht+"Size"+(He?"2":"1"),h);ft=dt.makeVList({positionType:"individualShift",children:[{type:"elem",elem:ft,shift:0},{type:"elem",elem:hr,shift:He?.08:0}]},h),$.name="\\"+Ht,ft.classes.unshift("mop"),ft.italic=ar}}else if($.body){var Ye=yn($.body,h,!0);Ye.length===1&&Ye[0]instanceof se?(ft=Ye[0],ft.classes[0]="mop"):ft=dt.makeSpan(["mop"],dt.tryCombineChars(Ye),h)}else{for(var Mr=[],tn=1;tn<$.name.length;tn++)Mr.push(dt.mathsym($.name[tn],$.mode,h));ft=dt.makeSpan(["mop"],Mr,h)}var dn=0,an=0;return(ft instanceof se||$.name==="\\oiint"||$.name==="\\oiiint")&&!$.suppressBaseShift&&(dn=(ft.height-ft.depth)/2-h.fontMetrics().axisHeight,an=ft.italic),D?_s(ft,f,g,h,De,an,dn):(dn&&(ft.style.position="relative",ft.style.top=dn+"em"),ft)},ys=function(u,h){var f;if(u.symbol)f=new Er("mo",[gn(u.name,u.mode)]),P.contains(Ma,u.name)&&f.setAttribute("largeop","false");else if(u.body)f=new Er("mo",En(u.body,h));else{f=new Er("mi",[new bn(u.name.slice(1))]);var g=new Er("mo",[gn("\u2061","text")]);u.parentIsSupSub?f=new Er("mo",[f,g]):f=Xr([f,g])}return f},ca={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};fr({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:function(u,h){var f=u.parser,g=u.funcName,D=g;return D.length===1&&(D=ca[D]),{type:"op",mode:f.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:D}},htmlBuilder:ts,mathmlBuilder:ys}),fr({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(u,h){var f=u.parser,g=h[0];return{type:"op",mode:f.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:hn(g)}},htmlBuilder:ts,mathmlBuilder:ys});var fo={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};fr({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(u){var h=u.parser,f=u.funcName;return{type:"op",mode:h.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:f}},htmlBuilder:ts,mathmlBuilder:ys}),fr({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(u){var h=u.parser,f=u.funcName;return{type:"op",mode:h.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:f}},htmlBuilder:ts,mathmlBuilder:ys}),fr({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(u){var h=u.parser,f=u.funcName,g=f;return g.length===1&&(g=fo[g]),{type:"op",mode:h.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:g}},htmlBuilder:ts,mathmlBuilder:ys});var Ms=function(u,h){var f,g,D=!1,$,_e=Zr(u,"supsub");_e?(f=_e.sup,g=_e.sub,$=Cr(_e.base,"operatorname"),D=!0):$=Cr(u,"operatorname");var De;if($.body.length>0){for(var He=$.body.map(function(ar){var hr=ar.text;return typeof hr=="string"?{type:"textord",mode:ar.mode,text:hr}:ar}),ft=yn(He,h.withFont("mathrm"),!0),Ct=0;Ct<ft.length;Ct++){var Ht=ft[Ct];Ht instanceof se&&(Ht.text=Ht.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}De=dt.makeSpan(["mop"],ft,h)}else De=dt.makeSpan(["mop"],[],h);return D?_s(De,f,g,h,h.style,0,0):De},mo=function(u,h){for(var f=En(u.body,h.withFont("mathrm")),g=!0,D=0;D<f.length;D++){var $=f[D];if(!($ instanceof Jt.SpaceNode))if($ instanceof Jt.MathNode)switch($.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var _e=$.children[0];$.children.length===1&&_e instanceof Jt.TextNode?_e.text=_e.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):g=!1;break}default:g=!1}else g=!1}if(g){var De=f.map(function(Ct){return Ct.toText()}).join("");f=[new Jt.TextNode(De)]}var He=new Jt.MathNode("mi",f);He.setAttribute("mathvariant","normal");var ft=new Jt.MathNode("mo",[gn("\u2061","text")]);return u.parentIsSupSub?new Jt.MathNode("mo",[He,ft]):Jt.newDocumentFragment([He,ft])};fr({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(u,h){var f=u.parser,g=u.funcName,D=h[0];return{type:"operatorname",mode:f.mode,body:hn(D),alwaysHandleSupSub:g==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:Ms,mathmlBuilder:mo}),pn({type:"ordgroup",htmlBuilder:function(u,h){return u.semisimple?dt.makeFragment(yn(u.body,h,!1)):dt.makeSpan(["mord"],yn(u.body,h,!0),h)},mathmlBuilder:function(u,h){return kn(u.body,h,!0)}}),fr({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(u,h){var f=u.parser,g=h[0];return{type:"overline",mode:f.mode,body:g}},htmlBuilder:function(u,h){var f=cn(u.body,h.havingCrampedStyle()),g=dt.makeLineSpan("overline-line",h),D=h.fontMetrics().defaultRuleThickness,$=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:3*D},{type:"elem",elem:g},{type:"kern",size:D}]},h);return dt.makeSpan(["mord","overline"],[$],h)},mathmlBuilder:function(u,h){var f=new Jt.MathNode("mo",[new Jt.TextNode("\u203E")]);f.setAttribute("stretchy","true");var g=new Jt.MathNode("mover",[mn(u.body,h),f]);return g.setAttribute("accent","true"),g}}),fr({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(u,h){var f=u.parser,g=h[0];return{type:"phantom",mode:f.mode,body:hn(g)}},htmlBuilder:function(u,h){var f=yn(u.body,h.withPhantom(),!1);return dt.makeFragment(f)},mathmlBuilder:function(u,h){var f=En(u.body,h);return new Jt.MathNode("mphantom",f)}}),fr({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(u,h){var f=u.parser,g=h[0];return{type:"hphantom",mode:f.mode,body:g}},htmlBuilder:function(u,h){var f=dt.makeSpan([],[cn(u.body,h.withPhantom())]);if(f.height=0,f.depth=0,f.children)for(var g=0;g<f.children.length;g++)f.children[g].height=0,f.children[g].depth=0;return f=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f}]},h),dt.makeSpan(["mord"],[f],h)},mathmlBuilder:function(u,h){var f=En(hn(u.body),h),g=new Jt.MathNode("mphantom",f),D=new Jt.MathNode("mpadded",[g]);return D.setAttribute("height","0px"),D.setAttribute("depth","0px"),D}}),fr({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(u,h){var f=u.parser,g=h[0];return{type:"vphantom",mode:f.mode,body:g}},htmlBuilder:function(u,h){var f=dt.makeSpan(["inner"],[cn(u.body,h.withPhantom())]),g=dt.makeSpan(["fix"],[]);return dt.makeSpan(["mord","rlap"],[f,g],h)},mathmlBuilder:function(u,h){var f=En(hn(u.body),h),g=new Jt.MathNode("mphantom",f),D=new Jt.MathNode("mpadded",[g]);return D.setAttribute("width","0px"),D}}),fr({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(u,h){var f=u.parser,g=Cr(h[0],"size").value,D=h[1];return{type:"raisebox",mode:f.mode,dy:g,body:D}},htmlBuilder:function(u,h){var f=cn(u.body,h),g=Ge(u.dy,h);return dt.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:f}]},h)},mathmlBuilder:function(u,h){var f=new Jt.MathNode("mpadded",[mn(u.body,h)]),g=u.dy.number+u.dy.unit;return f.setAttribute("voffset",g),f}}),fr({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(u,h,f){var g=u.parser,D=f[0],$=Cr(h[0],"size"),_e=Cr(h[1],"size");return{type:"rule",mode:g.mode,shift:D&&Cr(D,"size").value,width:$.value,height:_e.value}},htmlBuilder:function(u,h){var f=dt.makeSpan(["mord","rule"],[],h),g=Ge(u.width,h),D=Ge(u.height,h),$=u.shift?Ge(u.shift,h):0;return f.style.borderRightWidth=g+"em",f.style.borderTopWidth=D+"em",f.style.bottom=$+"em",f.width=g,f.height=D+$,f.depth=-$,f.maxFontSize=D*1.125*h.sizeMultiplier,f},mathmlBuilder:function(u,h){var f=Ge(u.width,h),g=Ge(u.height,h),D=u.shift?Ge(u.shift,h):0,$=h.color&&h.getColor()||"black",_e=new Jt.MathNode("mspace");_e.setAttribute("mathbackground",$),_e.setAttribute("width",f+"em"),_e.setAttribute("height",g+"em");var De=new Jt.MathNode("mpadded",[_e]);return D>=0?De.setAttribute("height","+"+D+"em"):(De.setAttribute("height",D+"em"),De.setAttribute("depth","+"+-D+"em")),De.setAttribute("voffset",D+"em"),De}});function Fa(z,u,h){for(var f=yn(z,u,!1),g=u.sizeMultiplier/h.sizeMultiplier,D=0;D<f.length;D++){var $=f[D].classes.indexOf("sizing");$<0?Array.prototype.push.apply(f[D].classes,u.sizingClasses(h)):f[D].classes[$+1]==="reset-size"+u.size&&(f[D].classes[$+1]="reset-size"+h.size),f[D].height*=g,f[D].depth*=g}return dt.makeFragment(f)}var da=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ba=function(u,h){var f=h.havingSize(u.size);return Fa(u.body,f,h)};fr({type:"sizing",names:da,props:{numArgs:0,allowedInText:!0},handler:function(u,h){var f=u.breakOnTokenText,g=u.funcName,D=u.parser,$=D.parseExpression(!1,f);return{type:"sizing",mode:D.mode,size:da.indexOf(g)+1,body:$}},htmlBuilder:Ba,mathmlBuilder:function(u,h){var f=h.havingSize(u.size),g=En(u.body,f),D=new Jt.MathNode("mstyle",g);return D.setAttribute("mathsize",f.sizeMultiplier+"em"),D}}),fr({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(u,h,f){var g=u.parser,D=!1,$=!1,_e=f[0]&&Cr(f[0],"ordgroup");if(_e)for(var De="",He=0;He<_e.body.length;++He){var ft=_e.body[He];if(De=ft.text,De==="t")D=!0;else if(De==="b")$=!0;else{D=!1,$=!1;break}}else D=!0,$=!0;var Ct=h[0];return{type:"smash",mode:g.mode,body:Ct,smashHeight:D,smashDepth:$}},htmlBuilder:function(u,h){var f=dt.makeSpan([],[cn(u.body,h)]);if(!u.smashHeight&&!u.smashDepth)return f;if(u.smashHeight&&(f.height=0,f.children))for(var g=0;g<f.children.length;g++)f.children[g].height=0;if(u.smashDepth&&(f.depth=0,f.children))for(var D=0;D<f.children.length;D++)f.children[D].depth=0;var $=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f}]},h);return dt.makeSpan(["mord"],[$],h)},mathmlBuilder:function(u,h){var f=new Jt.MathNode("mpadded",[mn(u.body,h)]);return u.smashHeight&&f.setAttribute("height","0px"),u.smashDepth&&f.setAttribute("depth","0px"),f}}),fr({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(u,h,f){var g=u.parser,D=f[0],$=h[0];return{type:"sqrt",mode:g.mode,body:$,index:D}},htmlBuilder:function(u,h){var f=cn(u.body,h.havingCrampedStyle());f.height===0&&(f.height=h.fontMetrics().xHeight),f=dt.wrapFragment(f,h);var g=h.fontMetrics(),D=g.defaultRuleThickness,$=D;h.style.id<y.TEXT.id&&($=h.fontMetrics().xHeight);var _e=D+$/4,De=f.height+f.depth+_e+D,He=_i.sqrtImage(De,h),ft=He.span,Ct=He.ruleWidth,Ht=He.advanceWidth,ar=ft.height-Ct;ar>f.height+f.depth+_e&&(_e=(_e+ar-f.height-f.depth)/2);var hr=ft.height-f.height-_e-Ct;f.style.paddingLeft=Ht+"em";var Ye=dt.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f,wrapperClasses:["svg-align"]},{type:"kern",size:-(f.height+hr)},{type:"elem",elem:ft},{type:"kern",size:Ct}]},h);if(u.index){var Mr=h.havingStyle(y.SCRIPTSCRIPT),tn=cn(u.index,Mr,h),dn=.6*(Ye.height-Ye.depth),an=dt.makeVList({positionType:"shift",positionData:-dn,children:[{type:"elem",elem:tn}]},h),Un=dt.makeSpan(["root"],[an]);return dt.makeSpan(["mord","sqrt"],[Un,Ye],h)}else return dt.makeSpan(["mord","sqrt"],[Ye],h)},mathmlBuilder:function(u,h){var f=u.body,g=u.index;return g?new Jt.MathNode("mroot",[mn(f,h),mn(g,h)]):new Jt.MathNode("msqrt",[mn(f,h)])}});var Na={display:y.DISPLAY,text:y.TEXT,script:y.SCRIPT,scriptscript:y.SCRIPTSCRIPT};fr({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(u,h){var f=u.breakOnTokenText,g=u.funcName,D=u.parser,$=D.parseExpression(!0,f),_e=g.slice(1,g.length-5);return{type:"styling",mode:D.mode,style:_e,body:$}},htmlBuilder:function(u,h){var f=Na[u.style],g=h.havingStyle(f).withFont("");return Fa(u.body,g,h)},mathmlBuilder:function(u,h){var f=Na[u.style],g=h.havingStyle(f),D=En(u.body,g),$=new Jt.MathNode("mstyle",D),_e={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},De=_e[u.style];return $.setAttribute("scriptlevel",De[0]),$.setAttribute("displaystyle",De[1]),$}});var $a=function(u,h){var f=u.base;if(f)if(f.type==="op"){var g=f.limits&&(h.style.size===y.DISPLAY.size||f.alwaysHandleSupSub);return g?ts:null}else if(f.type==="operatorname"){var D=f.alwaysHandleSupSub&&(h.style.size===y.DISPLAY.size||f.limits);return D?Ms:null}else{if(f.type==="accent")return P.isCharacterBox(f.base)?Pn:null;if(f.type==="horizBrace"){var $=!u.sub;return $===f.isOver?Oa:null}else return null}else return null};pn({type:"supsub",htmlBuilder:function(u,h){var f=$a(u,h);if(f)return f(u,h);var g=u.base,D=u.sup,$=u.sub,_e=cn(g,h),De,He,ft=h.fontMetrics(),Ct=0,Ht=0,ar=g&&P.isCharacterBox(g);if(D){var hr=h.havingStyle(h.style.sup());De=cn(D,hr,h),ar||(Ct=_e.height-hr.fontMetrics().supDrop*hr.sizeMultiplier/h.sizeMultiplier)}if($){var Ye=h.havingStyle(h.style.sub());He=cn($,Ye,h),ar||(Ht=_e.depth+Ye.fontMetrics().subDrop*Ye.sizeMultiplier/h.sizeMultiplier)}var Mr;h.style===y.DISPLAY?Mr=ft.sup1:h.style.cramped?Mr=ft.sup3:Mr=ft.sup2;var tn=h.sizeMultiplier,dn=.5/ft.ptPerEm/tn+"em",an=null;if(He){var Un=u.base&&u.base.type==="op"&&u.base.name&&(u.base.name==="\\oiint"||u.base.name==="\\oiiint");(_e instanceof se||Un)&&(an=-_e.italic+"em")}var Mn;if(De&&He){Ct=Math.max(Ct,Mr,De.depth+.25*ft.xHeight),Ht=Math.max(Ht,ft.sub2);var Wn=ft.defaultRuleThickness,Kn=4*Wn;if(Ct-De.depth-(He.height-Ht)<Kn){Ht=Kn-(Ct-De.depth)+He.height;var Xn=.8*ft.xHeight-(Ct-De.depth);Xn>0&&(Ct+=Xn,Ht-=Xn)}var ei=[{type:"elem",elem:He,shift:Ht,marginRight:dn,marginLeft:an},{type:"elem",elem:De,shift:-Ct,marginRight:dn}];Mn=dt.makeVList({positionType:"individualShift",children:ei},h)}else if(He){Ht=Math.max(Ht,ft.sub1,He.height-.8*ft.xHeight);var ii=[{type:"elem",elem:He,marginLeft:an,marginRight:dn}];Mn=dt.makeVList({positionType:"shift",positionData:Ht,children:ii},h)}else if(De)Ct=Math.max(Ct,Mr,De.depth+.25*ft.xHeight),Mn=dt.makeVList({positionType:"shift",positionData:-Ct,children:[{type:"elem",elem:De,marginRight:dn}]},h);else throw new Error("supsub must have either sup or sub.");var On=ti(_e,"right")||"mord";return dt.makeSpan([On],[_e,dt.makeSpan(["msupsub"],[Mn])],h)},mathmlBuilder:function(u,h){var f=!1,g,D,$=Zr(u.base,"horizBrace");$&&(D=!!u.sup,D===$.isOver&&(f=!0,g=$.isOver)),u.base&&(u.base.type==="op"||u.base.type==="operatorname")&&(u.base.parentIsSupSub=!0);var _e=[mn(u.base,h)];u.sub&&_e.push(mn(u.sub,h)),u.sup&&_e.push(mn(u.sup,h));var De;if(f)De=g?"mover":"munder";else if(u.sub)if(u.sup){var Ct=u.base;Ct&&Ct.type==="op"&&Ct.limits&&h.style===y.DISPLAY||Ct&&Ct.type==="operatorname"&&Ct.alwaysHandleSupSub&&(h.style===y.DISPLAY||Ct.limits)?De="munderover":De="msubsup"}else{var ft=u.base;ft&&ft.type==="op"&&ft.limits&&(h.style===y.DISPLAY||ft.alwaysHandleSupSub)||ft&&ft.type==="operatorname"&&ft.alwaysHandleSupSub&&(ft.limits||h.style===y.DISPLAY)?De="munder":De="msub"}else{var He=u.base;He&&He.type==="op"&&He.limits&&(h.style===y.DISPLAY||He.alwaysHandleSupSub)||He&&He.type==="operatorname"&&He.alwaysHandleSupSub&&(He.limits||h.style===y.DISPLAY)?De="mover":De="msup"}var Ht=new Jt.MathNode(De,_e);return Ht}}),pn({type:"atom",htmlBuilder:function(u,h){return dt.mathsym(u.text,u.mode,h,["m"+u.family])},mathmlBuilder:function(u,h){var f=new Jt.MathNode("mo",[gn(u.text,u.mode)]);if(u.family==="bin"){var g=qn(u,h);g==="bold-italic"&&f.setAttribute("mathvariant",g)}else u.family==="punct"?f.setAttribute("separator","true"):(u.family==="open"||u.family==="close")&&f.setAttribute("stretchy","false");return f}});var Ua={mi:"italic",mn:"normal",mtext:"normal"};pn({type:"mathord",htmlBuilder:function(u,h){return dt.makeOrd(u,h,"mathord")},mathmlBuilder:function(u,h){var f=new Jt.MathNode("mi",[gn(u.text,u.mode,h)]),g=qn(u,h)||"italic";return g!==Ua[f.type]&&f.setAttribute("mathvariant",g),f}}),pn({type:"textord",htmlBuilder:function(u,h){return dt.makeOrd(u,h,"textord")},mathmlBuilder:function(u,h){var f=gn(u.text,u.mode,h),g=qn(u,h)||"normal",D;return u.mode==="text"?D=new Jt.MathNode("mtext",[f]):/[0-9]/.test(u.text)?D=new Jt.MathNode("mn",[f]):u.text==="\\prime"?D=new Jt.MathNode("mo",[f]):D=new Jt.MathNode("mi",[f]),g!==Ua[D.type]&&D.setAttribute("mathvariant",g),D}});var ha={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},fa={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};pn({type:"spacing",htmlBuilder:function(u,h){if(fa.hasOwnProperty(u.text)){var f=fa[u.text].className||"";if(u.mode==="text"){var g=dt.makeOrd(u,h,"textord");return g.classes.push(f),g}else return dt.makeSpan(["mspace",f],[dt.mathsym(u.text,u.mode,h)],h)}else{if(ha.hasOwnProperty(u.text))return dt.makeSpan(["mspace",ha[u.text]],[],h);throw new p('Unknown type of space "'+u.text+'"')}},mathmlBuilder:function(u,h){var f;if(fa.hasOwnProperty(u.text))f=new Jt.MathNode("mtext",[new Jt.TextNode("\xA0")]);else{if(ha.hasOwnProperty(u.text))return new Jt.MathNode("mspace");throw new p('Unknown type of space "'+u.text+'"')}return f}});var za=function(){var u=new Jt.MathNode("mtd",[]);return u.setAttribute("width","50%"),u};pn({type:"tag",mathmlBuilder:function(u,h){var f=new Jt.MathNode("mtable",[new Jt.MathNode("mtr",[za(),new Jt.MathNode("mtd",[kn(u.body,h)]),za(),new Jt.MathNode("mtd",[kn(u.tag,h)])])]);return f.setAttribute("width","100%"),f}});var ja={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},ma={"\\textbf":"textbf","\\textmd":"textmd"},po={"\\textit":"textit","\\textup":"textup"},Ha=function(u,h){var f=u.font;return f?ja[f]?h.withTextFontFamily(ja[f]):ma[f]?h.withTextFontWeight(ma[f]):h.withTextFontShape(po[f]):h};fr({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(u,h){var f=u.parser,g=u.funcName,D=h[0];return{type:"text",mode:f.mode,body:hn(D),font:g}},htmlBuilder:function(u,h){var f=Ha(u,h),g=yn(u.body,f,!0);return dt.makeSpan(["mord","text"],dt.tryCombineChars(g),f)},mathmlBuilder:function(u,h){var f=Ha(u,h);return kn(u.body,f)}}),fr({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(u,h){var f=u.parser;return{type:"underline",mode:f.mode,body:h[0]}},htmlBuilder:function(u,h){var f=cn(u.body,h),g=dt.makeLineSpan("underline-line",h),D=h.fontMetrics().defaultRuleThickness,$=dt.makeVList({positionType:"top",positionData:f.height,children:[{type:"kern",size:D},{type:"elem",elem:g},{type:"kern",size:3*D},{type:"elem",elem:f}]},h);return dt.makeSpan(["mord","underline"],[$],h)},mathmlBuilder:function(u,h){var f=new Jt.MathNode("mo",[new Jt.TextNode("\u203E")]);f.setAttribute("stretchy","true");var g=new Jt.MathNode("munder",[mn(u.body,h),f]);return g.setAttribute("accentunder","true"),g}}),fr({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(u,h,f){throw new p("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(u,h){for(var f=Ga(u),g=[],D=h.havingStyle(h.style.text()),$=0;$<f.length;$++){var _e=f[$];_e==="~"&&(_e="\\textasciitilde"),g.push(dt.makeSymbol(_e,"Typewriter-Regular",u.mode,D,["mord","texttt"]))}return dt.makeSpan(["mord","text"].concat(D.sizingClasses(h)),dt.tryCombineChars(g),D)},mathmlBuilder:function(u,h){var f=new Jt.TextNode(Ga(u)),g=new Jt.MathNode("mtext",[f]);return g.setAttribute("mathvariant","monospace"),g}});var Ga=function(u){return u.body.replace(/ /g,u.star?"\u2423":"\xA0")},pa=ai,Fs=pa,ga=`[ \r
]`,Wa="\\\\[a-zA-Z@]+",go="\\\\[^\uD800-\uDFFF]",vo=""+Wa+ga+"*",_o=new RegExp("^("+Wa+")"+ga+"*$"),bs="[\u0300-\u036F]",yo=new RegExp(bs+"+$"),Ka="("+ga+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(bs+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(bs+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+vo)+("|"+go+")"),va=function(){function z(h,f){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=h,this.settings=f,this.tokenRegex=new RegExp(Ka,"g"),this.catcodes={"%":14}}var u=z.prototype;return u.setCatcode=function(f,g){this.catcodes[f]=g},u.lex=function(){var f=this.input,g=this.tokenRegex.lastIndex;if(g===f.length)return new pe("EOF",new xe(this,g,g));var D=this.tokenRegex.exec(f);if(D===null||D.index!==g)throw new p("Unexpected character: '"+f[g]+"'",new pe(f[g],new xe(this,g,g+1)));var $=D[2]||" ";if(this.catcodes[$]===14){var _e=f.indexOf(`
`,this.tokenRegex.lastIndex);return _e===-1?(this.tokenRegex.lastIndex=f.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=_e+1,this.lex()}var De=$.match(_o);return De&&($=De[1]),new pe($,new xe(this,g,this.tokenRegex.lastIndex))},z}(),bo=function(){function z(h,f){h===void 0&&(h={}),f===void 0&&(f={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=f,this.builtins=h,this.undefStack=[]}var u=z.prototype;return u.beginGroup=function(){this.undefStack.push({})},u.endGroup=function(){if(this.undefStack.length===0)throw new p("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var f=this.undefStack.pop();for(var g in f)f.hasOwnProperty(g)&&(f[g]===void 0?delete this.current[g]:this.current[g]=f[g])},u.has=function(f){return this.current.hasOwnProperty(f)||this.builtins.hasOwnProperty(f)},u.get=function(f){return this.current.hasOwnProperty(f)?this.current[f]:this.builtins[f]},u.set=function(f,g,D){if(D===void 0&&(D=!1),D){for(var $=0;$<this.undefStack.length;$++)delete this.undefStack[$][f];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][f]=g)}else{var _e=this.undefStack[this.undefStack.length-1];_e&&!_e.hasOwnProperty(f)&&(_e[f]=this.current[f])}this.current[f]=g},z}(),Xs={},Ai=Xs;function Oe(z,u){Xs[z]=u}Oe("\\@firstoftwo",function(z){var u=z.consumeArgs(2);return{tokens:u[0],numArgs:0}}),Oe("\\@secondoftwo",function(z){var u=z.consumeArgs(2);return{tokens:u[1],numArgs:0}}),Oe("\\@ifnextchar",function(z){var u=z.consumeArgs(3),h=z.future();return u[0].length===1&&u[0][0].text===h.text?{tokens:u[1],numArgs:0}:{tokens:u[2],numArgs:0}}),Oe("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Oe("\\TextOrMath",function(z){var u=z.consumeArgs(2);return z.mode==="text"?{tokens:u[0],numArgs:0}:{tokens:u[1],numArgs:0}});var Qs={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};Oe("\\char",function(z){var u=z.popToken(),h,f="";if(u.text==="'")h=8,u=z.popToken();else if(u.text==='"')h=16,u=z.popToken();else if(u.text==="`")if(u=z.popToken(),u.text[0]==="\\")f=u.text.charCodeAt(1);else{if(u.text==="EOF")throw new p("\\char` missing argument");f=u.text.charCodeAt(0)}else h=10;if(h){if(f=Qs[u.text],f==null||f>=h)throw new p("Invalid base-"+h+" digit "+u.text);for(var g;(g=Qs[z.future().text])!=null&&g<h;)f*=h,f+=g,z.popToken()}return"\\@char{"+f+"}"});var _a=function(u,h){var f=u.consumeArgs(1)[0];if(f.length!==1)throw new p("\\gdef's first argument must be a macro name");var g=f[0].text,D=0;for(f=u.consumeArgs(1)[0];f.length===1&&f[0].text==="#";){if(f=u.consumeArgs(1)[0],f.length!==1)throw new p('Invalid argument number length "'+f.length+'"');if(!/^[1-9]$/.test(f[0].text))throw new p('Invalid argument number "'+f[0].text+'"');if(D++,parseInt(f[0].text)!==D)throw new p('Argument number "'+f[0].text+'" out of order');f=u.consumeArgs(1)[0]}return u.macros.set(g,{tokens:f,numArgs:D},h),""};Oe("\\gdef",function(z){return _a(z,!0)}),Oe("\\def",function(z){return _a(z,!1)}),Oe("\\global",function(z){var u=z.consumeArgs(1)[0];if(u.length!==1)throw new p("Invalid command after \\global");var h=u[0].text;if(h==="\\def")return _a(z,!0);throw new p("Invalid command '"+h+"' after \\global")});var xs=function(u,h,f){var g=u.consumeArgs(1)[0];if(g.length!==1)throw new p("\\newcommand's first argument must be a macro name");var D=g[0].text,$=u.isDefined(D);if($&&!h)throw new p("\\newcommand{"+D+"} attempting to redefine "+(D+"; use \\renewcommand"));if(!$&&!f)throw new p("\\renewcommand{"+D+"} when command "+D+" does not yet exist; use \\newcommand");var _e=0;if(g=u.consumeArgs(1)[0],g.length===1&&g[0].text==="["){for(var De="",He=u.expandNextToken();He.text!=="]"&&He.text!=="EOF";)De+=He.text,He=u.expandNextToken();if(!De.match(/^\s*[0-9]+\s*$/))throw new p("Invalid number of arguments: "+De);_e=parseInt(De),g=u.consumeArgs(1)[0]}return u.macros.set(D,{tokens:g,numArgs:_e}),""};Oe("\\newcommand",function(z){return xs(z,!1,!0)}),Oe("\\renewcommand",function(z){return xs(z,!0,!1)}),Oe("\\providecommand",function(z){return xs(z,!0,!0)}),Oe("\\bgroup","{"),Oe("\\egroup","}"),Oe("\\lq","`"),Oe("\\rq","'"),Oe("\\aa","\\r a"),Oe("\\AA","\\r A"),Oe("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),Oe("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),Oe("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),Oe("\u212C","\\mathscr{B}"),Oe("\u2130","\\mathscr{E}"),Oe("\u2131","\\mathscr{F}"),Oe("\u210B","\\mathscr{H}"),Oe("\u2110","\\mathscr{I}"),Oe("\u2112","\\mathscr{L}"),Oe("\u2133","\\mathscr{M}"),Oe("\u211B","\\mathscr{R}"),Oe("\u212D","\\mathfrak{C}"),Oe("\u210C","\\mathfrak{H}"),Oe("\u2128","\\mathfrak{Z}"),Oe("\\Bbbk","\\Bbb{k}"),Oe("\xB7","\\cdotp"),Oe("\\llap","\\mathllap{\\textrm{#1}}"),Oe("\\rlap","\\mathrlap{\\textrm{#1}}"),Oe("\\clap","\\mathclap{\\textrm{#1}}"),Oe("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),Oe("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),Oe("\\ne","\\neq"),Oe("\u2260","\\neq"),Oe("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),Oe("\u2209","\\notin"),Oe("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),Oe("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),Oe("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),Oe("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),Oe("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),Oe("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),Oe("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),Oe("\u27C2","\\perp"),Oe("\u203C","\\mathclose{!\\mkern-0.8mu!}"),Oe("\u220C","\\notni"),Oe("\u231C","\\ulcorner"),Oe("\u231D","\\urcorner"),Oe("\u231E","\\llcorner"),Oe("\u231F","\\lrcorner"),Oe("\xA9","\\copyright"),Oe("\xAE","\\textregistered"),Oe("\uFE0F","\\textregistered"),Oe("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),Oe("\u22EE","\\vdots"),Oe("\\varGamma","\\mathit{\\Gamma}"),Oe("\\varDelta","\\mathit{\\Delta}"),Oe("\\varTheta","\\mathit{\\Theta}"),Oe("\\varLambda","\\mathit{\\Lambda}"),Oe("\\varXi","\\mathit{\\Xi}"),Oe("\\varPi","\\mathit{\\Pi}"),Oe("\\varSigma","\\mathit{\\Sigma}"),Oe("\\varUpsilon","\\mathit{\\Upsilon}"),Oe("\\varPhi","\\mathit{\\Phi}"),Oe("\\varPsi","\\mathit{\\Psi}"),Oe("\\varOmega","\\mathit{\\Omega}"),Oe("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Oe("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),Oe("\\boxed","\\fbox{$\\displaystyle{#1}$}"),Oe("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Oe("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Oe("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Va={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};Oe("\\dots",function(z){var u="\\dotso",h=z.expandAfterFuture().text;return h in Va?u=Va[h]:(h.substr(0,4)==="\\not"||h in Gt.math&&P.contains(["bin","rel"],Gt.math[h].group))&&(u="\\dotsb"),u});var ya={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Oe("\\dotso",function(z){var u=z.future().text;return u in ya?"\\ldots\\,":"\\ldots"}),Oe("\\dotsc",function(z){var u=z.future().text;return u in ya&&u!==","?"\\ldots\\,":"\\ldots"}),Oe("\\cdots",function(z){var u=z.future().text;return u in ya?"\\@cdots\\,":"\\@cdots"}),Oe("\\dotsb","\\cdots"),Oe("\\dotsm","\\cdots"),Oe("\\dotsi","\\!\\cdots"),Oe("\\dotsx","\\ldots\\,"),Oe("\\DOTSI","\\relax"),Oe("\\DOTSB","\\relax"),Oe("\\DOTSX","\\relax"),Oe("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Oe("\\,","\\tmspace+{3mu}{.1667em}"),Oe("\\thinspace","\\,"),Oe("\\>","\\mskip{4mu}"),Oe("\\:","\\tmspace+{4mu}{.2222em}"),Oe("\\medspace","\\:"),Oe("\\;","\\tmspace+{5mu}{.2777em}"),Oe("\\thickspace","\\;"),Oe("\\!","\\tmspace-{3mu}{.1667em}"),Oe("\\negthinspace","\\!"),Oe("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Oe("\\negthickspace","\\tmspace-{5mu}{.277em}"),Oe("\\enspace","\\kern.5em "),Oe("\\enskip","\\hskip.5em\\relax"),Oe("\\quad","\\hskip1em\\relax"),Oe("\\qquad","\\hskip2em\\relax"),Oe("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Oe("\\tag@paren","\\tag@literal{({#1})}"),Oe("\\tag@literal",function(z){if(z.macros.get("\\df@tag"))throw new p("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Oe("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Oe("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Oe("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Oe("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Oe("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Oe("\\\\","\\newline"),Oe("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Za=gt["Main-Regular"][84][1]-.7*gt["Main-Regular"][65][1]+"em";Oe("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Za+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Oe("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Za+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Oe("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Oe("\\@hspace","\\hskip #1\\relax"),Oe("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Oe("\\ordinarycolon",":"),Oe("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Oe("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Oe("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Oe("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Oe("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Oe("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Oe("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Oe("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Oe("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Oe("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Oe("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Oe("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Oe("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Oe("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Oe("\u2237","\\dblcolon"),Oe("\u2239","\\eqcolon"),Oe("\u2254","\\coloneqq"),Oe("\u2255","\\eqqcolon"),Oe("\u2A74","\\Coloneqq"),Oe("\\ratio","\\vcentcolon"),Oe("\\coloncolon","\\dblcolon"),Oe("\\colonequals","\\coloneqq"),Oe("\\coloncolonequals","\\Coloneqq"),Oe("\\equalscolon","\\eqqcolon"),Oe("\\equalscoloncolon","\\Eqqcolon"),Oe("\\colonminus","\\coloneq"),Oe("\\coloncolonminus","\\Coloneq"),Oe("\\minuscolon","\\eqcolon"),Oe("\\minuscoloncolon","\\Eqcolon"),Oe("\\coloncolonapprox","\\Colonapprox"),Oe("\\coloncolonsim","\\Colonsim"),Oe("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Oe("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Oe("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Oe("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Oe("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),Oe("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Oe("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Oe("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),Oe("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),Oe("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),Oe("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),Oe("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),Oe("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),Oe("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),Oe("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),Oe("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),Oe("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),Oe("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),Oe("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),Oe("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),Oe("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),Oe("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),Oe("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),Oe("\u27E6","\\llbracket"),Oe("\u27E7","\\rrbracket"),Oe("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),Oe("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),Oe("\u2983","\\lBrace"),Oe("\u2984","\\rBrace"),Oe("\\darr","\\downarrow"),Oe("\\dArr","\\Downarrow"),Oe("\\Darr","\\Downarrow"),Oe("\\lang","\\langle"),Oe("\\rang","\\rangle"),Oe("\\uarr","\\uparrow"),Oe("\\uArr","\\Uparrow"),Oe("\\Uarr","\\Uparrow"),Oe("\\N","\\mathbb{N}"),Oe("\\R","\\mathbb{R}"),Oe("\\Z","\\mathbb{Z}"),Oe("\\alef","\\aleph"),Oe("\\alefsym","\\aleph"),Oe("\\Alpha","\\mathrm{A}"),Oe("\\Beta","\\mathrm{B}"),Oe("\\bull","\\bullet"),Oe("\\Chi","\\mathrm{X}"),Oe("\\clubs","\\clubsuit"),Oe("\\cnums","\\mathbb{C}"),Oe("\\Complex","\\mathbb{C}"),Oe("\\Dagger","\\ddagger"),Oe("\\diamonds","\\diamondsuit"),Oe("\\empty","\\emptyset"),Oe("\\Epsilon","\\mathrm{E}"),Oe("\\Eta","\\mathrm{H}"),Oe("\\exist","\\exists"),Oe("\\harr","\\leftrightarrow"),Oe("\\hArr","\\Leftrightarrow"),Oe("\\Harr","\\Leftrightarrow"),Oe("\\hearts","\\heartsuit"),Oe("\\image","\\Im"),Oe("\\infin","\\infty"),Oe("\\Iota","\\mathrm{I}"),Oe("\\isin","\\in"),Oe("\\Kappa","\\mathrm{K}"),Oe("\\larr","\\leftarrow"),Oe("\\lArr","\\Leftarrow"),Oe("\\Larr","\\Leftarrow"),Oe("\\lrarr","\\leftrightarrow"),Oe("\\lrArr","\\Leftrightarrow"),Oe("\\Lrarr","\\Leftrightarrow"),Oe("\\Mu","\\mathrm{M}"),Oe("\\natnums","\\mathbb{N}"),Oe("\\Nu","\\mathrm{N}"),Oe("\\Omicron","\\mathrm{O}"),Oe("\\plusmn","\\pm"),Oe("\\rarr","\\rightarrow"),Oe("\\rArr","\\Rightarrow"),Oe("\\Rarr","\\Rightarrow"),Oe("\\real","\\Re"),Oe("\\reals","\\mathbb{R}"),Oe("\\Reals","\\mathbb{R}"),Oe("\\Rho","\\mathrm{P}"),Oe("\\sdot","\\cdot"),Oe("\\sect","\\S"),Oe("\\spades","\\spadesuit"),Oe("\\sub","\\subset"),Oe("\\sube","\\subseteq"),Oe("\\supe","\\supseteq"),Oe("\\Tau","\\mathrm{T}"),Oe("\\thetasym","\\vartheta"),Oe("\\weierp","\\wp"),Oe("\\Zeta","\\mathrm{Z}"),Oe("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Oe("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Oe("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Oe("\\blue","\\textcolor{##6495ed}{#1}"),Oe("\\orange","\\textcolor{##ffa500}{#1}"),Oe("\\pink","\\textcolor{##ff00af}{#1}"),Oe("\\red","\\textcolor{##df0030}{#1}"),Oe("\\green","\\textcolor{##28ae7b}{#1}"),Oe("\\gray","\\textcolor{gray}{#1}"),Oe("\\purple","\\textcolor{##9d38bd}{#1}"),Oe("\\blueA","\\textcolor{##ccfaff}{#1}"),Oe("\\blueB","\\textcolor{##80f6ff}{#1}"),Oe("\\blueC","\\textcolor{##63d9ea}{#1}"),Oe("\\blueD","\\textcolor{##11accd}{#1}"),Oe("\\blueE","\\textcolor{##0c7f99}{#1}"),Oe("\\tealA","\\textcolor{##94fff5}{#1}"),Oe("\\tealB","\\textcolor{##26edd5}{#1}"),Oe("\\tealC","\\textcolor{##01d1c1}{#1}"),Oe("\\tealD","\\textcolor{##01a995}{#1}"),Oe("\\tealE","\\textcolor{##208170}{#1}"),Oe("\\greenA","\\textcolor{##b6ffb0}{#1}"),Oe("\\greenB","\\textcolor{##8af281}{#1}"),Oe("\\greenC","\\textcolor{##74cf70}{#1}"),Oe("\\greenD","\\textcolor{##1fab54}{#1}"),Oe("\\greenE","\\textcolor{##0d923f}{#1}"),Oe("\\goldA","\\textcolor{##ffd0a9}{#1}"),Oe("\\goldB","\\textcolor{##ffbb71}{#1}"),Oe("\\goldC","\\textcolor{##ff9c39}{#1}"),Oe("\\goldD","\\textcolor{##e07d10}{#1}"),Oe("\\goldE","\\textcolor{##a75a05}{#1}"),Oe("\\redA","\\textcolor{##fca9a9}{#1}"),Oe("\\redB","\\textcolor{##ff8482}{#1}"),Oe("\\redC","\\textcolor{##f9685d}{#1}"),Oe("\\redD","\\textcolor{##e84d39}{#1}"),Oe("\\redE","\\textcolor{##bc2612}{#1}"),Oe("\\maroonA","\\textcolor{##ffbde0}{#1}"),Oe("\\maroonB","\\textcolor{##ff92c6}{#1}"),Oe("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Oe("\\maroonD","\\textcolor{##ca337c}{#1}"),Oe("\\maroonE","\\textcolor{##9e034e}{#1}"),Oe("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Oe("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Oe("\\purpleC","\\textcolor{##aa87ff}{#1}"),Oe("\\purpleD","\\textcolor{##7854ab}{#1}"),Oe("\\purpleE","\\textcolor{##543b78}{#1}"),Oe("\\mintA","\\textcolor{##f5f9e8}{#1}"),Oe("\\mintB","\\textcolor{##edf2df}{#1}"),Oe("\\mintC","\\textcolor{##e0e5cc}{#1}"),Oe("\\grayA","\\textcolor{##f6f7f7}{#1}"),Oe("\\grayB","\\textcolor{##f0f1f2}{#1}"),Oe("\\grayC","\\textcolor{##e3e5e6}{#1}"),Oe("\\grayD","\\textcolor{##d6d8da}{#1}"),Oe("\\grayE","\\textcolor{##babec2}{#1}"),Oe("\\grayF","\\textcolor{##888d93}{#1}"),Oe("\\grayG","\\textcolor{##626569}{#1}"),Oe("\\grayH","\\textcolor{##3b3e40}{#1}"),Oe("\\grayI","\\textcolor{##21242c}{#1}"),Oe("\\kaBlue","\\textcolor{##314453}{#1}"),Oe("\\kaGreen","\\textcolor{##71B307}{#1}");var Ya={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Xa=function(){function z(h,f,g){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=f,this.expansionCount=0,this.feed(h),this.macros=new bo(Ai,f.macros),this.mode=g,this.stack=[]}var u=z.prototype;return u.feed=function(f){this.lexer=new va(f,this.settings)},u.switchMode=function(f){this.mode=f},u.beginGroup=function(){this.macros.beginGroup()},u.endGroup=function(){this.macros.endGroup()},u.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},u.popToken=function(){return this.future(),this.stack.pop()},u.pushToken=function(f){this.stack.push(f)},u.pushTokens=function(f){var g;(g=this.stack).push.apply(g,f)},u.consumeSpaces=function(){for(;;){var f=this.future();if(f.text===" ")this.stack.pop();else break}},u.consumeArgs=function(f){for(var g=[],D=0;D<f;++D){this.consumeSpaces();var $=this.popToken();if($.text==="{"){for(var _e=[],De=1;De!==0;){var He=this.popToken();if(_e.push(He),He.text==="{")++De;else if(He.text==="}")--De;else if(He.text==="EOF")throw new p("End of input in macro argument",$)}_e.pop(),_e.reverse(),g[D]=_e}else{if($.text==="EOF")throw new p("End of input expecting macro argument");g[D]=[$]}}return g},u.expandOnce=function(){var f=this.popToken(),g=f.text,D=this._getExpansion(g);if(D==null)return this.pushToken(f),f;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new p("Too many expansions: infinite loop or need to increase maxExpand setting");var $=D.tokens;if(D.numArgs){var _e=this.consumeArgs(D.numArgs);$=$.slice();for(var De=$.length-1;De>=0;--De){var He=$[De];if(He.text==="#"){if(De===0)throw new p("Incomplete placeholder at end of macro body",He);if(He=$[--De],He.text==="#")$.splice(De+1,1);else if(/^[1-9]$/.test(He.text)){var ft;(ft=$).splice.apply(ft,[De,2].concat(_e[+He.text-1]))}else throw new p("Not a valid argument number",He)}}}return this.pushTokens($),$},u.expandAfterFuture=function(){return this.expandOnce(),this.future()},u.expandNextToken=function(){for(;;){var f=this.expandOnce();if(f instanceof pe)if(f.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},u.expandMacro=function(f){if(this.macros.get(f)){var g=[],D=this.stack.length;for(this.pushToken(new pe(f));this.stack.length>D;){var $=this.expandOnce();$ instanceof pe&&g.push(this.stack.pop())}return g}},u.expandMacroAsText=function(f){var g=this.expandMacro(f);return g&&g.map(function(D){return D.text}).join("")},u._getExpansion=function(f){var g=this.macros.get(f);if(g==null)return g;var D=typeof g=="function"?g(this):g;if(typeof D=="string"){var $=0;if(D.indexOf("#")!==-1)for(var _e=D.replace(/##/g,"");_e.indexOf("#"+($+1))!==-1;)++$;for(var De=new va(D,this.settings),He=[],ft=De.lex();ft.text!=="EOF";)He.push(ft),ft=De.lex();He.reverse();var Ct={tokens:He,numArgs:$};return Ct}return D},u.isDefined=function(f){return this.macros.has(f)||Fs.hasOwnProperty(f)||Gt.math.hasOwnProperty(f)||Gt.text.hasOwnProperty(f)||Ya.hasOwnProperty(f)},z}(),ba={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"}},qs={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u010F:"d\u030C",\u1E0B:"d\u0307",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u013A:"l\u0301",\u013E:"l\u030C",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u010E:"D\u030C",\u1E0A:"D\u0307",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0139:"L\u0301",\u013D:"L\u030C",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u0164:"T\u030C",\u1E6A:"T\u0307",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},Bs=function(){function z(h,f){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Xa(h,f,this.mode),this.settings=f,this.leftrightDepth=0}var u=z.prototype;return u.expect=function(f,g){if(g===void 0&&(g=!0),this.fetch().text!==f)throw new p("Expected '"+f+"', got '"+this.fetch().text+"'",this.fetch());g&&this.consume()},u.consume=function(){this.nextToken=null},u.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},u.switchMode=function(f){this.mode=f,this.gullet.switchMode(f)},u.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var f=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),f},u.parseExpression=function(f,g){for(var D=[];;){this.mode==="math"&&this.consumeSpaces();var $=this.fetch();if(z.endOfExpression.indexOf($.text)!==-1||g&&$.text===g||f&&Fs[$.text]&&Fs[$.text].infix)break;var _e=this.parseAtom(g);if(!_e)break;D.push(_e)}return this.mode==="text"&&this.formLigatures(D),this.handleInfixNodes(D)},u.handleInfixNodes=function(f){for(var g=-1,D,$=0;$<f.length;$++){var _e=Zr(f[$],"infix");if(_e){if(g!==-1)throw new p("only one infix operator per group",_e.token);g=$,D=_e.replaceWith}}if(g!==-1&&D){var De,He,ft=f.slice(0,g),Ct=f.slice(g+1);ft.length===1&&ft[0].type==="ordgroup"?De=ft[0]:De={type:"ordgroup",mode:this.mode,body:ft},Ct.length===1&&Ct[0].type==="ordgroup"?He=Ct[0]:He={type:"ordgroup",mode:this.mode,body:Ct};var Ht;return D==="\\\\abovefrac"?Ht=this.callFunction(D,[De,f[g],He],[]):Ht=this.callFunction(D,[De,He],[]),[Ht]}else return f},u.handleSupSubscript=function(f){var g=this.fetch(),D=g.text;this.consume();var $=this.parseGroup(f,!1,z.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!$)throw new p("Expected group after '"+D+"'",g);return $},u.formatUnsupportedCmd=function(f){for(var g=[],D=0;D<f.length;D++)g.push({type:"textord",mode:"text",text:f[D]});var $={type:"text",mode:this.mode,body:g},_e={type:"color",mode:this.mode,color:this.settings.errorColor,body:[$]};return _e},u.parseAtom=function(f){var g=this.parseGroup("atom",!1,null,f);if(this.mode==="text")return g;for(var D,$;;){this.consumeSpaces();var _e=this.fetch();if(_e.text==="\\limits"||_e.text==="\\nolimits"){var De=Zr(g,"op");if(De){var He=_e.text==="\\limits";De.limits=He,De.alwaysHandleSupSub=!0}else if(De=Zr(g,"operatorname"),De&&De.alwaysHandleSupSub){var ft=_e.text==="\\limits";De.limits=ft}else throw new p("Limit controls must follow a math operator",_e);this.consume()}else if(_e.text==="^"){if(D)throw new p("Double superscript",_e);D=this.handleSupSubscript("superscript")}else if(_e.text==="_"){if($)throw new p("Double subscript",_e);$=this.handleSupSubscript("subscript")}else if(_e.text==="'"){if(D)throw new p("Double superscript",_e);var Ct={type:"textord",mode:this.mode,text:"\\prime"},Ht=[Ct];for(this.consume();this.fetch().text==="'";)Ht.push(Ct),this.consume();this.fetch().text==="^"&&Ht.push(this.handleSupSubscript("superscript")),D={type:"ordgroup",mode:this.mode,body:Ht}}else break}return D||$?{type:"supsub",mode:this.mode,base:g,sup:D,sub:$}:g},u.parseFunction=function(f,g,D){var $=this.fetch(),_e=$.text,De=Fs[_e];if(!De)return null;if(this.consume(),D!=null&&De.greediness<=D)throw new p("Got function '"+_e+"' with no arguments"+(g?" as "+g:""),$);if(this.mode==="text"&&!De.allowedInText)throw new p("Can't use function '"+_e+"' in text mode",$);if(this.mode==="math"&&De.allowedInMath===!1)throw new p("Can't use function '"+_e+"' in math mode",$);var He=this.parseArguments(_e,De),ft=He.args,Ct=He.optArgs;return this.callFunction(_e,ft,Ct,$,f)},u.callFunction=function(f,g,D,$,_e){var De={funcName:f,parser:this,token:$,breakOnTokenText:_e},He=Fs[f];if(He&&He.handler)return He.handler(De,g,D);throw new p("No function handler for "+f)},u.parseArguments=function(f,g){var D=g.numArgs+g.numOptionalArgs;if(D===0)return{args:[],optArgs:[]};for(var $=g.greediness,_e=[],De=[],He=0;He<D;He++){var ft=g.argTypes&&g.argTypes[He],Ct=He<g.numOptionalArgs,Ht=He>0&&!Ct||He===0&&!Ct&&this.mode==="math",ar=this.parseGroupOfType("argument to '"+f+"'",ft,Ct,$,Ht);if(!ar){if(Ct){De.push(null);continue}throw new p("Expected group after '"+f+"'",this.fetch())}(Ct?De:_e).push(ar)}return{args:_e,optArgs:De}},u.parseGroupOfType=function(f,g,D,$,_e){switch(g){case"color":return _e&&this.consumeSpaces(),this.parseColorGroup(D);case"size":return _e&&this.consumeSpaces(),this.parseSizeGroup(D);case"url":return this.parseUrlGroup(D,_e);case"math":case"text":return this.parseGroup(f,D,$,void 0,g,_e);case"hbox":{var De=this.parseGroup(f,D,$,void 0,"text",_e);if(!De)return De;var He={type:"styling",mode:De.mode,body:[De],style:"text"};return He}case"raw":{if(_e&&this.consumeSpaces(),D&&this.fetch().text==="{")return null;var ft=this.parseStringGroup("raw",D,!0);if(ft)return{type:"raw",mode:"text",string:ft.text};throw new p("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(f,D,$,void 0,void 0,_e);default:throw new p("Unknown group type as "+f,this.fetch())}},u.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},u.parseStringGroup=function(f,g,D){var $=g?"[":"{",_e=g?"]":"}",De=this.fetch();if(De.text!==$){if(g)return null;if(D&&De.text!=="EOF"&&/[^{}[\]]/.test(De.text))return this.consume(),De}var He=this.mode;this.mode="text",this.expect($);for(var ft="",Ct=this.fetch(),Ht=0,ar=Ct,hr;(hr=this.fetch()).text!==_e||D&&Ht>0;){switch(hr.text){case"EOF":throw new p("Unexpected end of input in "+f,Ct.range(ar,ft));case $:Ht++;break;case _e:Ht--;break}ar=hr,ft+=ar.text,this.consume()}return this.expect(_e),this.mode=He,Ct.range(ar,ft)},u.parseRegexGroup=function(f,g){var D=this.mode;this.mode="text";for(var $=this.fetch(),_e=$,De="",He;(He=this.fetch()).text!=="EOF"&&f.test(De+He.text);)_e=He,De+=_e.text,this.consume();if(De==="")throw new p("Invalid "+g+": '"+$.text+"'",$);return this.mode=D,$.range(_e,De)},u.parseColorGroup=function(f){var g=this.parseStringGroup("color",f);if(!g)return null;var D=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(g.text);if(!D)throw new p("Invalid color: '"+g.text+"'",g);var $=D[0];return/^[0-9a-f]{6}$/i.test($)&&($="#"+$),{type:"color-token",mode:this.mode,color:$}},u.parseSizeGroup=function(f){var g,D=!1;if(!f&&this.fetch().text!=="{"?g=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):g=this.parseStringGroup("size",f),!g)return null;!f&&g.text.length===0&&(g.text="0pt",D=!0);var $=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(g.text);if(!$)throw new p("Invalid size: '"+g.text+"'",g);var _e={number:+($[1]+$[2]),unit:$[3]};if(!Te(_e))throw new p("Invalid unit: '"+_e.unit+"'",g);return{type:"size",mode:this.mode,value:_e,isBlank:D}},u.parseUrlGroup=function(f,g){this.gullet.lexer.setCatcode("%",13);var D=this.parseStringGroup("url",f,!0);if(this.gullet.lexer.setCatcode("%",14),!D)return null;var $=D.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:$}},u.parseGroup=function(f,g,D,$,_e,De){var He=this.mode;_e&&this.switchMode(_e),De&&this.consumeSpaces();var ft=this.fetch(),Ct=ft.text,Ht;if(g?Ct==="[":Ct==="{"||Ct==="\\begingroup"){this.consume();var ar=z.endOfGroup[Ct];this.gullet.beginGroup();var hr=this.parseExpression(!1,ar),Ye=this.fetch();this.expect(ar),this.gullet.endGroup(),Ht={type:"ordgroup",mode:this.mode,loc:xe.range(ft,Ye),body:hr,semisimple:Ct==="\\begingroup"||void 0}}else if(g)Ht=null;else if(Ht=this.parseFunction($,f,D)||this.parseSymbol(),Ht==null&&Ct[0]==="\\"&&!Ya.hasOwnProperty(Ct)){if(this.settings.throwOnError)throw new p("Undefined control sequence: "+Ct,ft);Ht=this.formatUnsupportedCmd(Ct),this.consume()}return _e&&this.switchMode(He),Ht},u.formLigatures=function(f){for(var g=f.length-1,D=0;D<g;++D){var $=f[D],_e=$.text;_e==="-"&&f[D+1].text==="-"&&(D+1<g&&f[D+2].text==="-"?(f.splice(D,3,{type:"textord",mode:"text",loc:xe.range($,f[D+2]),text:"---"}),g-=2):(f.splice(D,2,{type:"textord",mode:"text",loc:xe.range($,f[D+1]),text:"--"}),g-=1)),(_e==="'"||_e==="`")&&f[D+1].text===_e&&(f.splice(D,2,{type:"textord",mode:"text",loc:xe.range($,f[D+1]),text:_e+_e}),g-=1)}},u.parseSymbol=function(){var f=this.fetch(),g=f.text;if(/^\\verb[^a-zA-Z]/.test(g)){this.consume();var D=g.slice(5),$=D.charAt(0)==="*";if($&&(D=D.slice(1)),D.length<2||D.charAt(0)!==D.slice(-1))throw new p(`\\verb assertion failed --
please report what input caused this bug`);return D=D.slice(1,-1),{type:"verb",mode:"text",body:D,star:$}}qs.hasOwnProperty(g[0])&&!Gt[this.mode][g[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+g[0]+'" used in math mode',f),g=qs[g[0]]+g.substr(1));var _e=yo.exec(g);_e&&(g=g.substring(0,_e.index),g==="i"?g="\u0131":g==="j"&&(g="\u0237"));var De;if(Gt[this.mode][g]){this.settings.strict&&this.mode==="math"&&yr.indexOf(g)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+g[0]+'" used in math mode',f);var He=Gt[this.mode][g].group,ft=xe.range(f),Ct;if(lt.hasOwnProperty(He)){var Ht=He;Ct={type:"atom",mode:this.mode,family:Ht,loc:ft,text:g}}else Ct={type:He,mode:this.mode,loc:ft,text:g};De=Ct}else if(g.charCodeAt(0)>=128)this.settings.strict&&(Pe(g.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+g[0]+'" used in math mode',f):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+g[0]+'"'+(" ("+g.charCodeAt(0)+")"),f)),De={type:"textord",mode:"text",loc:xe.range(f),text:g};else return null;if(this.consume(),_e)for(var ar=0;ar<_e[0].length;ar++){var hr=_e[0][ar];if(!ba[hr])throw new p("Unknown accent ' "+hr+"'",f);var Ye=ba[hr][this.mode];if(!Ye)throw new p("Accent "+hr+" unsupported in "+this.mode+" mode",f);De={type:"accent",mode:this.mode,loc:xe.range(f),label:Ye,isStretchy:!1,isShifty:!0,base:De}}return De},z}();Bs.endOfExpression=["}","\\endgroup","\\end","\\right","&"],Bs.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},Bs.SUPSUB_GREEDINESS=1;var xo=function(u,h){if(!(typeof u=="string"||u instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var f=new Bs(u,h);delete f.gullet.macros.current["\\df@tag"];var g=f.parse();if(f.gullet.macros.get("\\df@tag")){if(!h.displayMode)throw new p("\\tag works only in display equations");f.gullet.feed("\\df@tag"),g=[{type:"tag",mode:"text",body:g,tag:f.parse()}]}return g},Js=xo,Qa=function(u,h,f){h.textContent="";var g=Ea(u,f).toNode();h.appendChild(g)};typeof document!="undefined"&&document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Qa=function(){throw new p("KaTeX doesn't work in quirks mode.")});var qa=function(u,h){var f=Ea(u,h).toMarkup();return f},Eo=function(u,h){var f=new B(h);return Js(u,f)},xa=function(u,h,f){if(f.throwOnError||!(u instanceof p))throw u;var g=dt.makeSpan(["katex-error"],[new se(h)]);return g.setAttribute("title",u.toString()),g.setAttribute("style","color:"+f.errorColor),g},Ea=function(u,h){var f=new B(h);try{var g=Js(u,f);return ri(g,u,f)}catch(D){return xa(D,u,f)}},wo=function(u,h){var f=new B(h);try{var g=Js(u,f);return Vn(g,u,f)}catch(D){return xa(D,u,f)}},So={version:"0.11.1",render:Qa,renderToString:qa,ParseError:p,__parse:Eo,__renderToDomTree:Ea,__renderToHTMLTree:wo,__setFontMetrics:Ft,__defineSymbol:E,__defineMacro:Oe,__domTree:{Span:U,Anchor:ye,SymbolNode:se,SvgNode:ve,PathNode:Ee,LineNode:ke}},Ao=x.default=So}]).default})},32834:function(nr){(function(ot,x){nr.exports=x()})(this,function(){"use strict";function ot($e,je){for(var Ze=0;Ze<je.length;Ze++){var re=je[Ze];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty($e,re.key,re)}}function x($e,je,Ze){return je&&ot($e.prototype,je),Ze&&ot($e,Ze),$e}function v($e,je){if($e){if(typeof $e=="string")return q($e,je);var Ze=Object.prototype.toString.call($e).slice(8,-1);if(Ze==="Object"&&$e.constructor&&(Ze=$e.constructor.name),Ze==="Map"||Ze==="Set")return Array.from($e);if(Ze==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ze))return q($e,je)}}function q($e,je){(je==null||je>$e.length)&&(je=$e.length);for(var Ze=0,re=new Array(je);Ze<je;Ze++)re[Ze]=$e[Ze];return re}function xe($e,je){var Ze=typeof Symbol!="undefined"&&$e[Symbol.iterator]||$e["@@iterator"];if(Ze)return(Ze=Ze.call($e)).next.bind(Ze);if(Array.isArray($e)||(Ze=v($e))||je&&$e&&typeof $e.length=="number"){Ze&&($e=Ze);var re=0;return function(){return re>=$e.length?{done:!0}:{done:!1,value:$e[re++]}}}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 pe={exports:{}};function O(){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 p($e){pe.exports.defaults=$e}pe.exports={defaults:O(),getDefaults:O,changeDefaults:p};var ce=/[&<>"']/,oe=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,ne=/[<>"']|&(?!#?\w+;)/g,N={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},S=function(je){return N[je]};function b($e,je){if(je){if(ce.test($e))return $e.replace(oe,S)}else if(o.test($e))return $e.replace(ne,S);return $e}var A=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function I($e){return $e.replace(A,function(je,Ze){return Ze=Ze.toLowerCase(),Ze==="colon"?":":Ze.charAt(0)==="#"?Ze.charAt(1)==="x"?String.fromCharCode(parseInt(Ze.substring(2),16)):String.fromCharCode(+Ze.substring(1)):""})}var X=/(^|[^\[])\^/g;function ie($e,je){$e=$e.source||$e,je=je||"";var Ze={replace:function(me,we){return we=we.source||we,we=we.replace(X,"$1"),$e=$e.replace(me,we),Ze},getRegex:function(){return new RegExp($e,je)}};return Ze}var P=/[^\w:]/g,B=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function H($e,je,Ze){if($e){var re;try{re=decodeURIComponent(I(Ze)).replace(P,"").toLowerCase()}catch(me){return null}if(re.indexOf("javascript:")===0||re.indexOf("vbscript:")===0||re.indexOf("data:")===0)return null}je&&!B.test(Ze)&&(Ze=Q(je,Ze));try{Ze=encodeURI(Ze).replace(/%25/g,"%")}catch(me){return null}return Ze}var le={},k=/^[^:]+:\/*[^/]*$/,j=/^([^:]+:)[\s\S]*$/,J=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Q($e,je){le[" "+$e]||(k.test($e)?le[" "+$e]=$e+"/":le[" "+$e]=Me($e,"/",!0)),$e=le[" "+$e];var Ze=$e.indexOf(":")===-1;return je.substring(0,2)==="//"?Ze?je:$e.replace(j,"$1")+je:je.charAt(0)==="/"?Ze?je:$e.replace(J,"$1")+je:$e+je}var de={exec:function(){}};function Se($e){for(var je=1,Ze,re;je<arguments.length;je++){Ze=arguments[je];for(re in Ze)Object.prototype.hasOwnProperty.call(Ze,re)&&($e[re]=Ze[re])}return $e}function Ae($e,je){var Ze=$e.replace(/\|/g,function(we,ze,K){for(var Bt=!1,Ce=ze;--Ce>=0&&K[Ce]==="\\";)Bt=!Bt;return Bt?"|":" |"}),re=Ze.split(/ \|/),me=0;if(re.length>je)re.splice(je);else for(;re.length<je;)re.push("");for(;me<re.length;me++)re[me]=re[me].trim().replace(/\\\|/g,"|");return re}function Me($e,je,Ze){var re=$e.length;if(re===0)return"";for(var me=0;me<re;){var we=$e.charAt(re-me-1);if(we===je&&!Ze)me++;else if(we!==je&&Ze)me++;else break}return $e.substr(0,re-me)}function ee($e,je){if($e.indexOf(je[1])===-1)return-1;for(var Ze=$e.length,re=0,me=0;me<Ze;me++)if($e[me]==="\\")me++;else if($e[me]===je[0])re++;else if($e[me]===je[1]&&(re--,re<0))return me;return-1}function F($e){$e&&$e.sanitize&&!$e.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 Y($e,je){if(je<1)return"";for(var Ze="";je>1;)je&1&&(Ze+=$e),je>>=1,$e+=$e;return Ze+$e}var V={escape:b,unescape:I,edit:ie,cleanUrl:H,resolveUrl:Q,noopTest:de,merge:Se,splitCells:Ae,rtrim:Me,findClosingBracket:ee,checkSanitizeDeprecation:F,repeatString:Y},ue=pe.exports.defaults,te=V.rtrim,y=V.splitCells,w=V.escape,Z=V.findClosingBracket;function G($e,je,Ze){var re=je.href,me=je.title?w(je.title):null,we=$e[1].replace(/\\([\[\]])/g,"$1");return $e[0].charAt(0)!=="!"?{type:"link",raw:Ze,href:re,title:me,text:we}:{type:"image",raw:Ze,href:re,title:me,text:w(we)}}function Pe($e,je){var Ze=$e.match(/^(\s+)(?:```)/);if(Ze===null)return je;var re=Ze[1];return je.split(`
`).map(function(me){var we=me.match(/^\s+/);if(we===null)return me;var ze=we[0];return ze.length>=re.length?me.slice(re.length):me}).join(`
`)}var Ue=function(){function $e(Ze){this.options=Ze||ue}var je=$e.prototype;return je.space=function(re){var me=this.rules.block.newline.exec(re);if(me)return me[0].length>1?{type:"space",raw:me[0]}:{raw:`
`}},je.code=function(re){var me=this.rules.block.code.exec(re);if(me){var we=me[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:me[0],codeBlockStyle:"indented",text:this.options.pedantic?we:te(we,`
`)}}},je.fences=function(re){var me=this.rules.block.fences.exec(re);if(me){var we=me[0],ze=Pe(we,me[3]||"");return{type:"code",raw:we,lang:me[2]?me[2].trim():me[2],text:ze}}},je.heading=function(re){var me=this.rules.block.heading.exec(re);if(me){var we=me[2].trim();if(/#$/.test(we)){var ze=te(we,"#");(this.options.pedantic||!ze||/ $/.test(ze))&&(we=ze.trim())}return{type:"heading",raw:me[0],depth:me[1].length,text:we}}},je.nptable=function(re){var me=this.rules.block.nptable.exec(re);if(me){var we={type:"table",header:y(me[1].replace(/^ *| *\| *$/g,"")),align:me[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:me[3]?me[3].replace(/\n$/,"").split(`
`):[],raw:me[0]};if(we.header.length===we.align.length){var ze=we.align.length,K;for(K=0;K<ze;K++)/^ *-+: *$/.test(we.align[K])?we.align[K]="right":/^ *:-+: *$/.test(we.align[K])?we.align[K]="center":/^ *:-+ *$/.test(we.align[K])?we.align[K]="left":we.align[K]=null;for(ze=we.cells.length,K=0;K<ze;K++)we.cells[K]=y(we.cells[K],we.header.length);return we}}},je.hr=function(re){var me=this.rules.block.hr.exec(re);if(me)return{type:"hr",raw:me[0]}},je.blockquote=function(re){var me=this.rules.block.blockquote.exec(re);if(me){var we=me[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:me[0],text:we}}},je.list=function(re){var me=this.rules.block.list.exec(re);if(me){var we=me[0],ze=me[2],K=ze.length>1,Bt={type:"list",raw:we,ordered:K,start:K?+ze.slice(0,-1):"",loose:!1,items:[]},Ce=me[0].match(this.rules.block.item),qt=!1,cr,Pt,Ot,xt,Tt,Ie,ut,ct,bt,et=Ce.length;Ot=this.rules.block.listItemStart.exec(Ce[0]);for(var Nt=0;Nt<et;Nt++){if(cr=Ce[Nt],we=cr,this.options.pedantic||(bt=cr.match(new RegExp("\\n\\s*\\n {0,"+(Ot[0].length-1)+"}\\S")),bt&&(Tt=cr.length-bt.index+Ce.slice(Nt+1).join(`
`).length,Bt.raw=Bt.raw.substring(0,Bt.raw.length-Tt),cr=cr.substring(0,bt.index),we=cr,et=Nt+1)),Nt!==et-1){if(xt=this.rules.block.listItemStart.exec(Ce[Nt+1]),this.options.pedantic?xt[1].length>Ot[1].length:xt[1].length>=Ot[0].length||xt[1].length>3){Ce.splice(Nt,2,Ce[Nt]+(!this.options.pedantic&&xt[1].length<Ot[0].length&&!Ce[Nt].match(/\n$/)?"":`
`)+Ce[Nt+1]),Nt--,et--;continue}else(!this.options.pedantic||this.options.smartLists?xt[2][xt[2].length-1]!==ze[ze.length-1]:K===(xt[2].length===1))&&(Tt=Ce.slice(Nt+1).join(`
`).length,Bt.raw=Bt.raw.substring(0,Bt.raw.length-Tt),Nt=et-1);Ot=xt}Pt=cr.length,cr=cr.replace(/^ *([*+-]|\d+[.)]) ?/,""),~cr.indexOf(`
`)&&(Pt-=cr.length,cr=this.options.pedantic?cr.replace(/^ {1,4}/gm,""):cr.replace(new RegExp("^ {1,"+Pt+"}","gm"),"")),cr=te(cr,`
`),Nt!==et-1&&(we=we+`
`),Ie=qt||/\n\n(?!\s*$)/.test(we),Nt!==et-1&&(qt=we.slice(-2)===`
`,Ie||(Ie=qt)),Ie&&(Bt.loose=!0),this.options.gfm&&(ut=/^\[[ xX]\] /.test(cr),ct=void 0,ut&&(ct=cr[1]!==" ",cr=cr.replace(/^\[[ xX]\] +/,""))),Bt.items.push({type:"list_item",raw:we,task:ut,checked:ct,loose:Ie,text:cr})}return Bt}},je.html=function(re){var me=this.rules.block.html.exec(re);if(me)return{type:this.options.sanitize?"paragraph":"html",raw:me[0],pre:!this.options.sanitizer&&(me[1]==="pre"||me[1]==="script"||me[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(me[0]):w(me[0]):me[0]}},je.def=function(re){var me=this.rules.block.def.exec(re);if(me){me[3]&&(me[3]=me[3].substring(1,me[3].length-1));var we=me[1].toLowerCase().replace(/\s+/g," ");return{type:"def",tag:we,raw:me[0],href:me[2],title:me[3]}}},je.table=function(re){var me=this.rules.block.table.exec(re);if(me){var we={type:"table",header:y(me[1].replace(/^ *| *\| *$/g,"")),align:me[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:me[3]?me[3].replace(/\n$/,"").split(`
`):[]};if(we.header.length===we.align.length){we.raw=me[0];var ze=we.align.length,K;for(K=0;K<ze;K++)/^ *-+: *$/.test(we.align[K])?we.align[K]="right":/^ *:-+: *$/.test(we.align[K])?we.align[K]="center":/^ *:-+ *$/.test(we.align[K])?we.align[K]="left":we.align[K]=null;for(ze=we.cells.length,K=0;K<ze;K++)we.cells[K]=y(we.cells[K].replace(/^ *\| *| *\| *$/g,""),we.header.length);return we}}},je.lheading=function(re){var me=this.rules.block.lheading.exec(re);if(me)return{type:"heading",raw:me[0],depth:me[2].charAt(0)==="="?1:2,text:me[1]}},je.paragraph=function(re){var me=this.rules.block.paragraph.exec(re);if(me)return{type:"paragraph",raw:me[0],text:me[1].charAt(me[1].length-1)===`
`?me[1].slice(0,-1):me[1]}},je.text=function(re){var me=this.rules.block.text.exec(re);if(me)return{type:"text",raw:me[0],text:me[0]}},je.escape=function(re){var me=this.rules.inline.escape.exec(re);if(me)return{type:"escape",raw:me[0],text:w(me[1])}},je.tag=function(re,me,we){var ze=this.rules.inline.tag.exec(re);if(ze)return!me&&/^<a /i.test(ze[0])?me=!0:me&&/^<\/a>/i.test(ze[0])&&(me=!1),!we&&/^<(pre|code|kbd|script)(\s|>)/i.test(ze[0])?we=!0:we&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(ze[0])&&(we=!1),{type:this.options.sanitize?"text":"html",raw:ze[0],inLink:me,inRawBlock:we,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ze[0]):w(ze[0]):ze[0]}},je.link=function(re){var me=this.rules.inline.link.exec(re);if(me){var we=me[2].trim();if(!this.options.pedantic&&/^</.test(we)){if(!/>$/.test(we))return;var ze=te(we.slice(0,-1),"\\");if((we.length-ze.length)%2===0)return}else{var K=Z(me[2],"()");if(K>-1){var Bt=me[0].indexOf("!")===0?5:4,Ce=Bt+me[1].length+K;me[2]=me[2].substring(0,K),me[0]=me[0].substring(0,Ce).trim(),me[3]=""}}var qt=me[2],cr="";if(this.options.pedantic){var Pt=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(qt);Pt&&(qt=Pt[1],cr=Pt[3])}else cr=me[3]?me[3].slice(1,-1):"";return qt=qt.trim(),/^</.test(qt)&&(this.options.pedantic&&!/>$/.test(we)?qt=qt.slice(1):qt=qt.slice(1,-1)),G(me,{href:qt&&qt.replace(this.rules.inline._escapes,"$1"),title:cr&&cr.replace(this.rules.inline._escapes,"$1")},me[0])}},je.reflink=function(re,me){var we;if((we=this.rules.inline.reflink.exec(re))||(we=this.rules.inline.nolink.exec(re))){var ze=(we[2]||we[1]).replace(/\s+/g," ");if(ze=me[ze.toLowerCase()],!ze||!ze.href){var K=we[0].charAt(0);return{type:"text",raw:K,text:K}}return G(we,ze,we[0])}},je.emStrong=function(re,me,we){we===void 0&&(we="");var ze=this.rules.inline.emStrong.lDelim.exec(re);if(ze&&!(ze[3]&&we.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-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\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\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var K=ze[1]||ze[2]||"";if(!K||K&&(we===""||this.rules.inline.punctuation.exec(we))){var Bt=ze[0].length-1,Ce,qt,cr=Bt,Pt=0,Ot=ze[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(Ot.lastIndex=0,me=me.slice(-1*re.length+Bt);(ze=Ot.exec(me))!=null;)if(Ce=ze[1]||ze[2]||ze[3]||ze[4]||ze[5]||ze[6],!!Ce){if(qt=Ce.length,ze[3]||ze[4]){cr+=qt;continue}else if((ze[5]||ze[6])&&Bt%3&&!((Bt+qt)%3)){Pt+=qt;continue}if(cr-=qt,!(cr>0))return qt=Math.min(qt,qt+cr+Pt),Math.min(Bt,qt)%2?{type:"em",raw:re.slice(0,Bt+ze.index+qt+1),text:re.slice(1,Bt+ze.index+qt)}:{type:"strong",raw:re.slice(0,Bt+ze.index+qt+1),text:re.slice(2,Bt+ze.index+qt-1)}}}}},je.codespan=function(re){var me=this.rules.inline.code.exec(re);if(me){var we=me[2].replace(/\n/g," "),ze=/[^ ]/.test(we),K=/^ /.test(we)&&/ $/.test(we);return ze&&K&&(we=we.substring(1,we.length-1)),we=w(we,!0),{type:"codespan",raw:me[0],text:we}}},je.br=function(re){var me=this.rules.inline.br.exec(re);if(me)return{type:"br",raw:me[0]}},je.del=function(re){var me=this.rules.inline.del.exec(re);if(me)return{type:"del",raw:me[0],text:me[2]}},je.autolink=function(re,me){var we=this.rules.inline.autolink.exec(re);if(we){var ze,K;return we[2]==="@"?(ze=w(this.options.mangle?me(we[1]):we[1]),K="mailto:"+ze):(ze=w(we[1]),K=ze),{type:"link",raw:we[0],text:ze,href:K,tokens:[{type:"text",raw:ze,text:ze}]}}},je.url=function(re,me){var we;if(we=this.rules.inline.url.exec(re)){var ze,K;if(we[2]==="@")ze=w(this.options.mangle?me(we[0]):we[0]),K="mailto:"+ze;else{var Bt;do Bt=we[0],we[0]=this.rules.inline._backpedal.exec(we[0])[0];while(Bt!==we[0]);ze=w(we[0]),we[1]==="www."?K="http://"+ze:K=ze}return{type:"link",raw:we[0],text:ze,href:K,tokens:[{type:"text",raw:ze,text:ze}]}}},je.inlineText=function(re,me,we){var ze=this.rules.inline.text.exec(re);if(ze){var K;return me?K=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(ze[0]):w(ze[0]):ze[0]:K=w(this.options.smartypants?we(ze[0]):ze[0]),{type:"text",raw:ze[0],text:K}}},$e}(),Ve=V.noopTest,Xe=V.edit,tt=V.merge,at={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:Ve,table:Ve,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/};at._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,at._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,at.def=Xe(at.def).replace("label",at._label).replace("title",at._title).getRegex(),at.bullet=/(?:[*+-]|\d{1,9}[.)])/,at.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,at.item=Xe(at.item,"gm").replace(/bull/g,at.bullet).getRegex(),at.listItemStart=Xe(/^( *)(bull) */).replace("bull",at.bullet).getRegex(),at.list=Xe(at.list).replace(/bull/g,at.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+at.def.source+")").getRegex(),at._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",at._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,at.html=Xe(at.html,"i").replace("comment",at._comment).replace("tag",at._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),at.paragraph=Xe(at._paragraph).replace("hr",at.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",at._tag).getRegex(),at.blockquote=Xe(at.blockquote).replace("paragraph",at.paragraph).getRegex(),at.normal=tt({},at),at.gfm=tt({},at.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*|$)"}),at.gfm.nptable=Xe(at.gfm.nptable).replace("hr",at.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",at._tag).getRegex(),at.gfm.table=Xe(at.gfm.table).replace("hr",at.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",at._tag).getRegex(),at.pedantic=tt({},at.normal,{html:Xe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",at._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:Ve,paragraph:Xe(at.normal._paragraph).replace("hr",at.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",at.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var mt={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Ve,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:Ve,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};mt._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",mt.punctuation=Xe(mt.punctuation).replace(/punctuation/g,mt._punctuation).getRegex(),mt.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,mt.escapedEmSt=/\\\*|\\_/g,mt._comment=Xe(at._comment).replace("(?:-->|$)","-->").getRegex(),mt.emStrong.lDelim=Xe(mt.emStrong.lDelim).replace(/punct/g,mt._punctuation).getRegex(),mt.emStrong.rDelimAst=Xe(mt.emStrong.rDelimAst,"g").replace(/punct/g,mt._punctuation).getRegex(),mt.emStrong.rDelimUnd=Xe(mt.emStrong.rDelimUnd,"g").replace(/punct/g,mt._punctuation).getRegex(),mt._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,mt._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,mt._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])?)+(?![-_])/,mt.autolink=Xe(mt.autolink).replace("scheme",mt._scheme).replace("email",mt._email).getRegex(),mt._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,mt.tag=Xe(mt.tag).replace("comment",mt._comment).replace("attribute",mt._attribute).getRegex(),mt._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,mt._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,mt._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,mt.link=Xe(mt.link).replace("label",mt._label).replace("href",mt._href).replace("title",mt._title).getRegex(),mt.reflink=Xe(mt.reflink).replace("label",mt._label).getRegex(),mt.reflinkSearch=Xe(mt.reflinkSearch,"g").replace("reflink",mt.reflink).replace("nolink",mt.nolink).getRegex(),mt.normal=tt({},mt),mt.pedantic=tt({},mt.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:Xe(/^!?\[(label)\]\((.*?)\)/).replace("label",mt._label).getRegex(),reflink:Xe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",mt._label).getRegex()}),mt.gfm=tt({},mt.normal,{escape:Xe(mt.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.!#$%&'*+\/=?_`{\|}~-]+@)))/}),mt.gfm.url=Xe(mt.gfm.url,"i").replace("email",mt.gfm._extended_email).getRegex(),mt.breaks=tt({},mt.gfm,{br:Xe(mt.br).replace("{2,}","*").getRegex(),text:Xe(mt.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Ut={block:at,inline:mt},tr=Ue,Mt=pe.exports.defaults,jt=Ut.block,Yt=Ut.inline,er=V.repeatString;function ge($e){return $e.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 fe($e){var je="",Ze,re,me=$e.length;for(Ze=0;Ze<me;Ze++)re=$e.charCodeAt(Ze),Math.random()>.5&&(re="x"+re.toString(16)),je+="&#"+re+";";return je}var U=function(){function $e(Ze){this.tokens=[],this.tokens.links=Object.create(null),this.options=Ze||Mt,this.options.tokenizer=this.options.tokenizer||new tr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var re={block:jt.normal,inline:Yt.normal};this.options.pedantic?(re.block=jt.pedantic,re.inline=Yt.pedantic):this.options.gfm&&(re.block=jt.gfm,this.options.breaks?re.inline=Yt.breaks:re.inline=Yt.gfm),this.tokenizer.rules=re}$e.lex=function(re,me){var we=new $e(me);return we.lex(re)},$e.lexInline=function(re,me){var we=new $e(me);return we.inlineTokens(re)};var je=$e.prototype;return je.lex=function(re){return re=re.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(re,this.tokens,!0),this.inline(this.tokens),this.tokens},je.blockTokens=function(re,me,we){me===void 0&&(me=[]),we===void 0&&(we=!0),this.options.pedantic&&(re=re.replace(/^ +$/gm,""));for(var ze,K,Bt,Ce;re;){if(ze=this.tokenizer.space(re)){re=re.substring(ze.raw.length),ze.type&&me.push(ze);continue}if(ze=this.tokenizer.code(re)){re=re.substring(ze.raw.length),Ce=me[me.length-1],Ce&&Ce.type==="paragraph"?(Ce.raw+=`
`+ze.raw,Ce.text+=`
`+ze.text):me.push(ze);continue}if(ze=this.tokenizer.fences(re)){re=re.substring(ze.raw.length),me.push(ze);continue}if(ze=this.tokenizer.heading(re)){re=re.substring(ze.raw.length),me.push(ze);continue}if(ze=this.tokenizer.nptable(re)){re=re.substring(ze.raw.length),me.push(ze);continue}if(ze=this.tokenizer.hr(re)){re=re.substring(ze.raw.length),me.push(ze);continue}if(ze=this.tokenizer.blockquote(re)){re=re.substring(ze.raw.length),ze.tokens=this.blockTokens(ze.text,[],we),me.push(ze);continue}if(ze=this.tokenizer.list(re)){for(re=re.substring(ze.raw.length),Bt=ze.items.length,K=0;K<Bt;K++)ze.items[K].tokens=this.blockTokens(ze.items[K].text,[],!1);me.push(ze);continue}if(ze=this.tokenizer.html(re)){re=re.substring(ze.raw.length),me.push(ze);continue}if(we&&(ze=this.tokenizer.def(re))){re=re.substring(ze.raw.length),this.tokens.links[ze.tag]||(this.tokens.links[ze.tag]={href:ze.href,title:ze.title});continue}if(ze=this.tokenizer.table(re)){re=re.substring(ze.raw.length),me.push(ze);continue}if(ze=this.tokenizer.lheading(re)){re=re.substring(ze.raw.length),me.push(ze);continue}if(we&&(ze=this.tokenizer.paragraph(re))){re=re.substring(ze.raw.length),me.push(ze);continue}if(ze=this.tokenizer.text(re)){re=re.substring(ze.raw.length),Ce=me[me.length-1],Ce&&Ce.type==="text"?(Ce.raw+=`
`+ze.raw,Ce.text+=`
`+ze.text):me.push(ze);continue}if(re){var qt="Infinite loop on byte: "+re.charCodeAt(0);if(this.options.silent){console.error(qt);break}else throw new Error(qt)}}return me},je.inline=function(re){var me,we,ze,K,Bt,Ce,qt=re.length;for(me=0;me<qt;me++)switch(Ce=re[me],Ce.type){case"paragraph":case"text":case"heading":{Ce.tokens=[],this.inlineTokens(Ce.text,Ce.tokens);break}case"table":{for(Ce.tokens={header:[],cells:[]},K=Ce.header.length,we=0;we<K;we++)Ce.tokens.header[we]=[],this.inlineTokens(Ce.header[we],Ce.tokens.header[we]);for(K=Ce.cells.length,we=0;we<K;we++)for(Bt=Ce.cells[we],Ce.tokens.cells[we]=[],ze=0;ze<Bt.length;ze++)Ce.tokens.cells[we][ze]=[],this.inlineTokens(Bt[ze],Ce.tokens.cells[we][ze]);break}case"blockquote":{this.inline(Ce.tokens);break}case"list":{for(K=Ce.items.length,we=0;we<K;we++)this.inline(Ce.items[we].tokens);break}}return re},je.inlineTokens=function(re,me,we,ze){me===void 0&&(me=[]),we===void 0&&(we=!1),ze===void 0&&(ze=!1);var K,Bt,Ce=re,qt,cr,Pt;if(this.tokens.links){var Ot=Object.keys(this.tokens.links);if(Ot.length>0)for(;(qt=this.tokenizer.rules.inline.reflinkSearch.exec(Ce))!=null;)Ot.includes(qt[0].slice(qt[0].lastIndexOf("[")+1,-1))&&(Ce=Ce.slice(0,qt.index)+"["+er("a",qt[0].length-2)+"]"+Ce.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(qt=this.tokenizer.rules.inline.blockSkip.exec(Ce))!=null;)Ce=Ce.slice(0,qt.index)+"["+er("a",qt[0].length-2)+"]"+Ce.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(qt=this.tokenizer.rules.inline.escapedEmSt.exec(Ce))!=null;)Ce=Ce.slice(0,qt.index)+"++"+Ce.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;re;){if(cr||(Pt=""),cr=!1,K=this.tokenizer.escape(re)){re=re.substring(K.raw.length),me.push(K);continue}if(K=this.tokenizer.tag(re,we,ze)){re=re.substring(K.raw.length),we=K.inLink,ze=K.inRawBlock;var xt=me[me.length-1];xt&&K.type==="text"&&xt.type==="text"?(xt.raw+=K.raw,xt.text+=K.text):me.push(K);continue}if(K=this.tokenizer.link(re)){re=re.substring(K.raw.length),K.type==="link"&&(K.tokens=this.inlineTokens(K.text,[],!0,ze)),me.push(K);continue}if(K=this.tokenizer.reflink(re,this.tokens.links)){re=re.substring(K.raw.length);var Tt=me[me.length-1];K.type==="link"?(K.tokens=this.inlineTokens(K.text,[],!0,ze),me.push(K)):Tt&&K.type==="text"&&Tt.type==="text"?(Tt.raw+=K.raw,Tt.text+=K.text):me.push(K);continue}if(K=this.tokenizer.emStrong(re,Ce,Pt)){re=re.substring(K.raw.length),K.tokens=this.inlineTokens(K.text,[],we,ze),me.push(K);continue}if(K=this.tokenizer.codespan(re)){re=re.substring(K.raw.length),me.push(K);continue}if(K=this.tokenizer.br(re)){re=re.substring(K.raw.length),me.push(K);continue}if(K=this.tokenizer.del(re)){re=re.substring(K.raw.length),K.tokens=this.inlineTokens(K.text,[],we,ze),me.push(K);continue}if(K=this.tokenizer.autolink(re,fe)){re=re.substring(K.raw.length),me.push(K);continue}if(!we&&(K=this.tokenizer.url(re,fe))){re=re.substring(K.raw.length),me.push(K);continue}if(K=this.tokenizer.inlineText(re,ze,ge)){re=re.substring(K.raw.length),K.raw.slice(-1)!=="_"&&(Pt=K.raw.slice(-1)),cr=!0,Bt=me[me.length-1],Bt&&Bt.type==="text"?(Bt.raw+=K.raw,Bt.text+=K.text):me.push(K);continue}if(re){var Ie="Infinite loop on byte: "+re.charCodeAt(0);if(this.options.silent){console.error(Ie);break}else throw new Error(Ie)}}return me},x($e,null,[{key:"rules",get:function(){return{block:jt,inline:Yt}}}]),$e}(),ye=pe.exports.defaults,Re=V.cleanUrl,M=V.escape,se=function(){function $e(Ze){this.options=Ze||ye}var je=$e.prototype;return je.code=function(re,me,we){var ze=(me||"").match(/\S*/)[0];if(this.options.highlight){var K=this.options.highlight(re,ze);K!=null&&K!==re&&(we=!0,re=K)}return re=re.replace(/\n$/,"")+`
`,ze?'<pre><code class="'+this.options.langPrefix+M(ze,!0)+'">'+(we?re:M(re,!0))+`</code></pre>
`:"<pre><code>"+(we?re:M(re,!0))+`</code></pre>
`},je.blockquote=function(re){return`<blockquote>
`+re+`</blockquote>
`},je.html=function(re){return re},je.heading=function(re,me,we,ze){return this.options.headerIds?"<h"+me+' id="'+this.options.headerPrefix+ze.slug(we)+'">'+re+"</h"+me+`>
`:"<h"+me+">"+re+"</h"+me+`>
`},je.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},je.list=function(re,me,we){var ze=me?"ol":"ul",K=me&&we!==1?' start="'+we+'"':"";return"<"+ze+K+`>
`+re+"</"+ze+`>
`},je.listitem=function(re){return"<li>"+re+`</li>
`},je.checkbox=function(re){return"<input "+(re?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},je.paragraph=function(re){return"<p>"+re+`</p>
`},je.table=function(re,me){return me&&(me="<tbody>"+me+"</tbody>"),`<table>
<thead>
`+re+`</thead>
`+me+`</table>
`},je.tablerow=function(re){return`<tr>
`+re+`</tr>
`},je.tablecell=function(re,me){var we=me.header?"th":"td",ze=me.align?"<"+we+' align="'+me.align+'">':"<"+we+">";return ze+re+"</"+we+`>
`},je.strong=function(re){return"<strong>"+re+"</strong>"},je.em=function(re){return"<em>"+re+"</em>"},je.codespan=function(re){return"<code>"+re+"</code>"},je.br=function(){return this.options.xhtml?"<br/>":"<br>"},je.del=function(re){return"<del>"+re+"</del>"},je.link=function(re,me,we){if(re=Re(this.options.sanitize,this.options.baseUrl,re),re===null)return we;var ze='<a href="'+M(re)+'"';return me&&(ze+=' title="'+me+'"'),ze+=">"+we+"</a>",ze},je.image=function(re,me,we){if(re=Re(this.options.sanitize,this.options.baseUrl,re),re===null)return we;var ze='<img src="'+re+'" alt="'+we+'"';return me&&(ze+=' title="'+me+'"'),ze+=this.options.xhtml?"/>":">",ze},je.text=function(re){return re},$e}(),ve=function(){function $e(){}var je=$e.prototype;return je.strong=function(re){return re},je.em=function(re){return re},je.codespan=function(re){return re},je.del=function(re){return re},je.html=function(re){return re},je.text=function(re){return re},je.link=function(re,me,we){return""+we},je.image=function(re,me,we){return""+we},je.br=function(){return""},$e}(),Ee=function(){function $e(){this.seen={}}var je=$e.prototype;return je.serialize=function(re){return re.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},je.getNextSafeSlug=function(re,me){var we=re,ze=0;if(this.seen.hasOwnProperty(we)){ze=this.seen[re];do ze++,we=re+"-"+ze;while(this.seen.hasOwnProperty(we))}return me||(this.seen[re]=ze,this.seen[we]=0),we},je.slug=function(re,me){me===void 0&&(me={});var we=this.serialize(re);return this.getNextSafeSlug(we,me.dryrun)},$e}(),ke=se,Fe=ve,qe=Ee,gt=pe.exports.defaults,ht=V.unescape,Qe=function(){function $e(Ze){this.options=Ze||gt,this.options.renderer=this.options.renderer||new ke,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Fe,this.slugger=new qe}$e.parse=function(re,me){var we=new $e(me);return we.parse(re)},$e.parseInline=function(re,me){var we=new $e(me);return we.parseInline(re)};var je=$e.prototype;return je.parse=function(re,me){me===void 0&&(me=!0);var we="",ze,K,Bt,Ce,qt,cr,Pt,Ot,xt,Tt,Ie,ut,ct,bt,et,Nt,Vt,Zt,vr=re.length;for(ze=0;ze<vr;ze++)switch(Tt=re[ze],Tt.type){case"space":continue;case"hr":{we+=this.renderer.hr();continue}case"heading":{we+=this.renderer.heading(this.parseInline(Tt.tokens),Tt.depth,ht(this.parseInline(Tt.tokens,this.textRenderer)),this.slugger);continue}case"code":{we+=this.renderer.code(Tt.text,Tt.lang,Tt.escaped);continue}case"table":{for(Ot="",Pt="",Ce=Tt.header.length,K=0;K<Ce;K++)Pt+=this.renderer.tablecell(this.parseInline(Tt.tokens.header[K]),{header:!0,align:Tt.align[K]});for(Ot+=this.renderer.tablerow(Pt),xt="",Ce=Tt.cells.length,K=0;K<Ce;K++){for(cr=Tt.tokens.cells[K],Pt="",qt=cr.length,Bt=0;Bt<qt;Bt++)Pt+=this.renderer.tablecell(this.parseInline(cr[Bt]),{header:!1,align:Tt.align[Bt]});xt+=this.renderer.tablerow(Pt)}we+=this.renderer.table(Ot,xt);continue}case"blockquote":{xt=this.parse(Tt.tokens),we+=this.renderer.blockquote(xt);continue}case"list":{for(Ie=Tt.ordered,ut=Tt.start,ct=Tt.loose,Ce=Tt.items.length,xt="",K=0;K<Ce;K++)et=Tt.items[K],Nt=et.checked,Vt=et.task,bt="",et.task&&(Zt=this.renderer.checkbox(Nt),ct?et.tokens.length>0&&et.tokens[0].type==="text"?(et.tokens[0].text=Zt+" "+et.tokens[0].text,et.tokens[0].tokens&&et.tokens[0].tokens.length>0&&et.tokens[0].tokens[0].type==="text"&&(et.tokens[0].tokens[0].text=Zt+" "+et.tokens[0].tokens[0].text)):et.tokens.unshift({type:"text",text:Zt}):bt+=Zt),bt+=this.parse(et.tokens,ct),xt+=this.renderer.listitem(bt,Vt,Nt);we+=this.renderer.list(xt,Ie,ut);continue}case"html":{we+=this.renderer.html(Tt.text);continue}case"paragraph":{we+=this.renderer.paragraph(this.parseInline(Tt.tokens));continue}case"text":{for(xt=Tt.tokens?this.parseInline(Tt.tokens):Tt.text;ze+1<vr&&re[ze+1].type==="text";)Tt=re[++ze],xt+=`
`+(Tt.tokens?this.parseInline(Tt.tokens):Tt.text);we+=me?this.renderer.paragraph(xt):xt;continue}default:{var yr='Token with "'+Tt.type+'" type was not found.';if(this.options.silent){console.error(yr);return}else throw new Error(yr)}}return we},je.parseInline=function(re,me){me=me||this.renderer;var we="",ze,K,Bt=re.length;for(ze=0;ze<Bt;ze++)switch(K=re[ze],K.type){case"escape":{we+=me.text(K.text);break}case"html":{we+=me.html(K.text);break}case"link":{we+=me.link(K.href,K.title,this.parseInline(K.tokens,me));break}case"image":{we+=me.image(K.href,K.title,K.text);break}case"strong":{we+=me.strong(this.parseInline(K.tokens,me));break}case"em":{we+=me.em(this.parseInline(K.tokens,me));break}case"codespan":{we+=me.codespan(K.text);break}case"br":{we+=me.br();break}case"del":{we+=me.del(this.parseInline(K.tokens,me));break}case"text":{we+=me.text(K.text);break}default:{var Ce='Token with "'+K.type+'" type was not found.';if(this.options.silent){console.error(Ce);return}else throw new Error(Ce)}}return we},$e}(),Ft=U,Lt=Qe,Le=Ue,Ke=se,lt=ve,vt=Ee,Rt=V.merge,Gt=V.checkSanitizeDeprecation,E=V.escape,T=pe.exports.getDefaults,nt=pe.exports.changeDefaults,W=pe.exports.defaults;function be($e,je,Ze){if(typeof $e=="undefined"||$e===null)throw new Error("marked(): input parameter is undefined or null");if(typeof $e!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call($e)+", string expected");if(typeof je=="function"&&(Ze=je,je=null),je=Rt({},be.defaults,je||{}),Gt(je),Ze){var re=je.highlight,me;try{me=Ft.lex($e,je)}catch(Bt){return Ze(Bt)}var we=function(Ce){var qt;if(!Ce)try{je.walkTokens&&be.walkTokens(me,je.walkTokens),qt=Lt.parse(me,je)}catch(cr){Ce=cr}return je.highlight=re,Ce?Ze(Ce):Ze(null,qt)};if(!re||re.length<3||(delete je.highlight,!me.length))return we();var ze=0;be.walkTokens(me,function(Bt){Bt.type==="code"&&(ze++,setTimeout(function(){re(Bt.text,Bt.lang,function(Ce,qt){if(Ce)return we(Ce);qt!=null&&qt!==Bt.text&&(Bt.text=qt,Bt.escaped=!0),ze--,ze===0&&we()})},0))}),ze===0&&we();return}try{var K=Ft.lex($e,je);return je.walkTokens&&be.walkTokens(K,je.walkTokens),Lt.parse(K,je)}catch(Bt){if(Bt.message+=`
Please report this to https://github.com/markedjs/marked.`,je.silent)return"<p>An error occurred:</p><pre>"+E(Bt.message+"",!0)+"</pre>";throw Bt}}be.options=be.setOptions=function($e){return Rt(be.defaults,$e),nt(be.defaults),be},be.getDefaults=T,be.defaults=W,be.use=function($e){var je=Rt({},$e);if($e.renderer&&function(){var re=be.defaults.renderer||new Ke,me=function(K){var Bt=re[K];re[K]=function(){for(var Ce=arguments.length,qt=new Array(Ce),cr=0;cr<Ce;cr++)qt[cr]=arguments[cr];var Pt=$e.renderer[K].apply(re,qt);return Pt===!1&&(Pt=Bt.apply(re,qt)),Pt}};for(var we in $e.renderer)me(we);je.renderer=re}(),$e.tokenizer&&function(){var re=be.defaults.tokenizer||new Le,me=function(K){var Bt=re[K];re[K]=function(){for(var Ce=arguments.length,qt=new Array(Ce),cr=0;cr<Ce;cr++)qt[cr]=arguments[cr];var Pt=$e.tokenizer[K].apply(re,qt);return Pt===!1&&(Pt=Bt.apply(re,qt)),Pt}};for(var we in $e.tokenizer)me(we);je.tokenizer=re}(),$e.walkTokens){var Ze=be.defaults.walkTokens;je.walkTokens=function(re){$e.walkTokens(re),Ze&&Ze(re)}}be.setOptions(je)},be.walkTokens=function($e,je){for(var Ze=xe($e),re;!(re=Ze()).done;){var me=re.value;switch(je(me),me.type){case"table":{for(var we=xe(me.tokens.header),ze;!(ze=we()).done;){var K=ze.value;be.walkTokens(K,je)}for(var Bt=xe(me.tokens.cells),Ce;!(Ce=Bt()).done;)for(var qt=Ce.value,cr=xe(qt),Pt;!(Pt=cr()).done;){var Ot=Pt.value;be.walkTokens(Ot,je)}break}case"list":{be.walkTokens(me.items,je);break}default:me.tokens&&be.walkTokens(me.tokens,je)}}},be.parseInline=function($e,je){if(typeof $e=="undefined"||$e===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof $e!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call($e)+", string expected");je=Rt({},be.defaults,je||{}),Gt(je);try{var Ze=Ft.lexInline($e,je);return je.walkTokens&&be.walkTokens(Ze,je.walkTokens),Lt.parseInline(Ze,je)}catch(re){if(re.message+=`
Please report this to https://github.com/markedjs/marked.`,je.silent)return"<p>An error occurred:</p><pre>"+E(re.message+"",!0)+"</pre>";throw re}},be.Parser=Lt,be.parser=Lt.parse,be.Renderer=Ke,be.TextRenderer=lt,be.Lexer=Ft,be.lexer=Ft.lex,be.Tokenizer=Le,be.Slugger=vt,be.parse=be;var rr=be;return rr})},11690:function(nr){const ot=/[&<>"']/,x=/[&<>"']/g,v=/[<>"']|&(?!#?\w+;)/,q=/[<>"']|&(?!#?\w+;)/g,xe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},pe=Q=>xe[Q];function O(Q,de){if(de){if(ot.test(Q))return Q.replace(x,pe)}else if(v.test(Q))return Q.replace(q,pe);return Q}const p=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function ce(Q){return Q.replace(p,(de,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 oe=/(^|[^\[])\^/g;function o(Q,de){Q=Q.source||Q,de=de||"";const Se={replace:(Ae,Me)=>(Me=Me.source||Me,Me=Me.replace(oe,"$1"),Q=Q.replace(Ae,Me),Se),getRegex:()=>new RegExp(Q,de)};return Se}const ne=/[^\w:]/g,N=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function S(Q,de,Se){if(Q){let Ae;try{Ae=decodeURIComponent(ce(Se)).replace(ne,"").toLowerCase()}catch(Me){return null}if(Ae.indexOf("javascript:")===0||Ae.indexOf("vbscript:")===0||Ae.indexOf("data:")===0)return null}de&&!N.test(Se)&&(Se=ie(de,Se));try{Se=encodeURI(Se).replace(/%25/g,"%")}catch(Ae){return null}return Se}const b={},A=/^[^:]+:\/*[^/]*$/,I=/^([^:]+:)[\s\S]*$/,X=/^([^:]+:\/*[^/]*)[\s\S]*$/;function ie(Q,de){b[" "+Q]||(A.test(Q)?b[" "+Q]=Q+"/":b[" "+Q]=le(Q,"/",!0)),Q=b[" "+Q];const Se=Q.indexOf(":")===-1;return de.substring(0,2)==="//"?Se?de:Q.replace(I,"$1")+de:de.charAt(0)==="/"?Se?de:Q.replace(X,"$1")+de:Q+de}const P={exec:function(){}};function B(Q){let de=1,Se,Ae;for(;de<arguments.length;de++){Se=arguments[de];for(Ae in Se)Object.prototype.hasOwnProperty.call(Se,Ae)&&(Q[Ae]=Se[Ae])}return Q}function H(Q,de){const Se=Q.replace(/\|/g,(ee,F,Y)=>{let V=!1,ue=F;for(;--ue>=0&&Y[ue]==="\\";)V=!V;return V?"|":" |"}),Ae=Se.split(/ \|/);let Me=0;if(Ae.length>de)Ae.splice(de);else for(;Ae.length<de;)Ae.push("");for(;Me<Ae.length;Me++)Ae[Me]=Ae[Me].trim().replace(/\\\|/g,"|");return Ae}function le(Q,de,Se){const Ae=Q.length;if(Ae===0)return"";let Me=0;for(;Me<Ae;){const ee=Q.charAt(Ae-Me-1);if(ee===de&&!Se)Me++;else if(ee!==de&&Se)Me++;else break}return Q.substr(0,Ae-Me)}function k(Q,de){if(Q.indexOf(de[1])===-1)return-1;const Se=Q.length;let Ae=0,Me=0;for(;Me<Se;Me++)if(Q[Me]==="\\")Me++;else if(Q[Me]===de[0])Ae++;else if(Q[Me]===de[1]&&(Ae--,Ae<0))return Me;return-1}function j(Q){Q&&Q.sanitize&&!Q.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 J(Q,de){if(de<1)return"";let Se="";for(;de>1;)de&1&&(Se+=Q),de>>=1,Q+=Q;return Se+Q}nr.exports={escape:O,unescape:ce,edit:o,cleanUrl:S,resolveUrl:ie,noopTest:P,merge:B,splitCells:H,rtrim:le,findClosingBracket:k,checkSanitizeDeprecation:j,repeatString:J}},75918:function(nr,ot,x){"use strict";x.d(ot,{Wi:function(){return p},Z0:function(){return ce},aU:function(){return O},eZ:function(){return o},wY:function(){return oe}});var v=x(4348),q=x(69323),xe=x(13268),pe=function(ne,N,S,b){function A(I){return I instanceof S?I:new S(function(X){X(I)})}return new(S||(S=Promise))(function(I,X){function ie(H){try{B(b.next(H))}catch(le){X(le)}}function P(H){try{B(b.throw(H))}catch(le){X(le)}}function B(H){H.done?I(H.value):A(H.value).then(ie,P)}B((b=b.apply(ne,N||[])).next())})};class O extends q.JT{constructor(N,S="",b="",A=!0,I){super(),this._onDidChange=this._register(new v.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=N,this._label=S,this._cssClass=b,this._enabled=A,this._actionCallback=I}get id(){return this._id}get label(){return this._label}set label(N){this._setLabel(N)}_setLabel(N){this._label!==N&&(this._label=N,this._onDidChange.fire({label:N}))}get tooltip(){return this._tooltip||""}set tooltip(N){this._setTooltip(N)}_setTooltip(N){this._tooltip!==N&&(this._tooltip=N,this._onDidChange.fire({tooltip:N}))}get class(){return this._cssClass}set class(N){this._setClass(N)}_setClass(N){this._cssClass!==N&&(this._cssClass=N,this._onDidChange.fire({class:N}))}get enabled(){return this._enabled}set enabled(N){this._setEnabled(N)}_setEnabled(N){this._enabled!==N&&(this._enabled=N,this._onDidChange.fire({enabled:N}))}get checked(){return this._checked}set checked(N){this._setChecked(N)}_setChecked(N){this._checked!==N&&(this._checked=N,this._onDidChange.fire({checked:N}))}run(N,S){return pe(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(N))})}}class p extends q.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new v.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new v.Q5),this.onDidRun=this._onDidRun.event}run(N,S){return pe(this,void 0,void 0,function*(){if(!N.enabled)return;this._onBeforeRun.fire({action:N});let b;try{yield this.runAction(N,S)}catch(A){b=A}this._onDidRun.fire({action:N,error:b})})}runAction(N,S){return pe(this,void 0,void 0,function*(){yield N.run(S)})}}class ce extends O{constructor(N){super(ce.ID,N,N?"separator text":"separator"),this.checked=!1,this.enabled=!1}}ce.ID="vs.actions.separator";class oe{constructor(N,S,b,A){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=N,this.label=S,this.class=A,this._actions=b}get actions(){return this._actions}dispose(){}run(){return pe(this,void 0,void 0,function*(){})}}class o extends O{constructor(){super(o.ID,xe.N("submenu.empty","(empty)"),void 0,!1)}}o.ID="vs.actions.empty"},76068:function(nr,ot,x){"use strict";x.d(ot,{ok:function(){return v}});function v(q,xe){if(!q)throw new Error(xe?`Assertion failed (${xe})`:"Assertion Failed")}},52615:function(nr,ot,x){"use strict";x.d(ot,{CM:function(){return O},JL:function(){return p},dT:function(){return oe},fK:function(){return pe},lA:function(){return ce}});var v=x(4348);class q{constructor(){this._icons=new Map,this._onDidRegister=new v.Q5}add(ne){const N=this._icons.get(ne.id);N?ne.description?N.description=ne.description:console.error(`Duplicate registration of codicon ${ne.id}`):(this._icons.set(ne.id,ne),this._onDidRegister.fire(ne))}get(ne){return this._icons.get(ne)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const xe=new q,pe=xe;function O(o,ne){return new ce(o,ne)}function p(o){return o?o.replace(/\$\((.*?)\)/g,(ne,N)=>` ${N} `).trim():""}class ce{constructor(ne,N,S){this.id=ne,this.definition=N,this.description=S,xe.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var oe;(function(o){o.iconNameSegment="[A-Za-z0-9]+",o.iconNameExpression="[A-Za-z0-9\\-]+",o.iconModifierExpression="~[A-Za-z]+";const ne=new RegExp(`^(${o.iconNameExpression})(${o.iconModifierExpression})?$`);function N(A){if(A instanceof ce)return["codicon","codicon-"+A.id];const I=ne.exec(A.id);if(!I)return N(ce.error);let[,X,ie]=I;const P=["codicon","codicon-"+X];return ie&&P.push("codicon-modifier-"+ie.substr(1)),P}o.asClassNameArray=N;function S(A){return N(A).join(" ")}o.asClassName=S;function b(A){return"."+N(A).join(".")}o.asCSSSelector=b})(oe||(oe={})),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"})}(ce||(ce={}))},79881:function(nr,ot,x){"use strict";x.d(ot,{B8:function(){return N},Cp:function(){return pe},F0:function(){return oe},L6:function(){return ne},VV:function(){return ce},b1:function(){return o},dL:function(){return xe},ri:function(){return O}});class v{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(b){setTimeout(()=>{throw b.stack?new Error(b.message+`
`+b.stack):b},0)}}emit(b){this.listeners.forEach(A=>{A(b)})}onUnexpectedError(b){this.unexpectedErrorHandler(b),this.emit(b)}onUnexpectedExternalError(b){this.unexpectedErrorHandler(b)}}const q=new v;function xe(S){ce(S)||q.onUnexpectedError(S)}function pe(S){ce(S)||q.onUnexpectedExternalError(S)}function O(S){if(S instanceof Error){let{name:b,message:A}=S;const I=S.stacktrace||S.stack;return{$isError:!0,name:b,message:A,stack:I}}return S}const p="Canceled";function ce(S){return S instanceof Error&&S.name===p&&S.message===p}function oe(){const S=new Error(p);return S.name=S.message,S}function o(S){return S?new Error(`Illegal argument: ${S}`):new Error("Illegal argument")}function ne(S){return S?new Error(`Illegal state: ${S}`):new Error("Illegal state")}class N extends Error{constructor(b){super("NotSupported"),b&&(this.message=b)}}},4348:function(nr,ot,x){"use strict";x.d(ot,{D0:function(){return N},E7:function(){return S},K3:function(){return ne},Q5:function(){return o},ZD:function(){return b},ju:function(){return O}});var v=x(79881),q=x(69323),xe=x(34502),pe=x(95830),O;(function(A){A.None=()=>q.JT.None;function I(Y){return(V,ue=null,te)=>{let y=!1,w;return w=Y(Z=>{if(!y)return w?w.dispose():y=!0,V.call(ue,Z)},null,te),y&&w.dispose(),w}}A.once=I;function X(Y,V){return k((ue,te=null,y)=>Y(w=>ue.call(te,V(w)),null,y))}A.map=X;function ie(Y,V){return k((ue,te=null,y)=>Y(w=>{V(w),ue.call(te,w)},null,y))}A.forEach=ie;function P(Y,V){return k((ue,te=null,y)=>Y(w=>V(w)&&ue.call(te,w),null,y))}A.filter=P;function B(Y){return Y}A.signal=B;function H(...Y){return(V,ue=null,te)=>(0,q.F8)(...Y.map(y=>y(w=>V.call(ue,w),null,te)))}A.any=H;function le(Y,V,ue){let te=ue;return X(Y,y=>(te=V(te,y),te))}A.reduce=le;function k(Y){let V;const ue=new o({onFirstListenerAdd(){V=Y(ue.fire,ue)},onLastListenerRemove(){V.dispose()}});return ue.event}function j(Y,V,ue=100,te=!1,y){let w,Z,G,Pe=0;const Ue=new o({leakWarningThreshold:y,onFirstListenerAdd(){w=Y(Ve=>{Pe++,Z=V(Z,Ve),te&&!G&&(Ue.fire(Z),Z=void 0),clearTimeout(G),G=setTimeout(()=>{const Xe=Z;Z=void 0,G=void 0,(!te||Pe>1)&&Ue.fire(Xe),Pe=0},ue)})},onLastListenerRemove(){w.dispose()}});return Ue.event}A.debounce=j;function J(Y,V=(ue,te)=>ue===te){let ue=!0,te;return P(Y,y=>{const w=ue||!V(y,te);return ue=!1,te=y,w})}A.latch=J;function Q(Y,V){return[A.filter(Y,V),A.filter(Y,ue=>!V(ue))]}A.split=Q;function de(Y,V=!1,ue=[]){let te=ue.slice(),y=Y(G=>{te?te.push(G):Z.fire(G)});const w=()=>{te&&te.forEach(G=>Z.fire(G)),te=null},Z=new o({onFirstListenerAdd(){y||(y=Y(G=>Z.fire(G)))},onFirstListenerDidAdd(){te&&(V?setTimeout(w):w())},onLastListenerRemove(){y&&y.dispose(),y=null}});return Z.event}A.buffer=de;class Se{constructor(V){this.event=V}map(V){return new Se(X(this.event,V))}forEach(V){return new Se(ie(this.event,V))}filter(V){return new Se(P(this.event,V))}reduce(V,ue){return new Se(le(this.event,V,ue))}latch(){return new Se(J(this.event))}debounce(V,ue=100,te=!1,y){return new Se(j(this.event,V,ue,te,y))}on(V,ue,te){return this.event(V,ue,te)}once(V,ue,te){return I(this.event)(V,ue,te)}}function Ae(Y){return new Se(Y)}A.chain=Ae;function Me(Y,V,ue=te=>te){const te=(...G)=>Z.fire(ue(...G)),y=()=>Y.on(V,te),w=()=>Y.removeListener(V,te),Z=new o({onFirstListenerAdd:y,onLastListenerRemove:w});return Z.event}A.fromNodeEventEmitter=Me;function ee(Y,V,ue=te=>te){const te=(...G)=>Z.fire(ue(...G)),y=()=>Y.addEventListener(V,te),w=()=>Y.removeEventListener(V,te),Z=new o({onFirstListenerAdd:y,onLastListenerRemove:w});return Z.event}A.fromDOMEventEmitter=ee;function F(Y){return new Promise(V=>I(Y)(V))}A.toPromise=F})(O||(O={}));class p{constructor(I){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${I}_${p._idPool++}`}start(I){this._stopWatch=new pe.G(!0),this._listenerCount=I}stop(){if(this._stopWatch){const I=this._stopWatch.elapsed();this._elapsedOverall+=I,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${I.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}p._idPool=0;let ce=-1;class oe{constructor(I,X=Math.random().toString(18).slice(2,5)){this.customThreshold=I,this.name=X,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(I){let X=ce;if(typeof this.customThreshold=="number"&&(X=this.customThreshold),X<=0||I<X)return;this._stacks||(this._stacks=new Map);const ie=new Error().stack.split(`
`).slice(3).join(`
`),P=this._stacks.get(ie)||0;if(this._stacks.set(ie,P+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=X*.5;let B,H=0;for(const[le,k]of this._stacks)(!B||H<k)&&(B=le,H=k);console.warn(`[${this.name}] potential listener LEAK detected, having ${I} listeners already. MOST frequent listener (${H}):`),console.warn(B)}return()=>{const B=this._stacks.get(ie)||0;this._stacks.set(ie,B-1)}}}class o{constructor(I){var X;this._disposed=!1,this._options=I,this._leakageMon=ce>0?new oe(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((X=this._options)===null||X===void 0)&&X._profName?new p(this._options._profName):void 0}get event(){return this._event||(this._event=(I,X,ie)=>{var P;this._listeners||(this._listeners=new xe.S);const B=this._listeners.isEmpty();B&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const H=this._listeners.push(X?[I,X]:I);B&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,I,X);const le=(P=this._leakageMon)===null||P===void 0?void 0:P.check(this._listeners.size),k=(0,q.OF)(()=>{le&&le(),this._disposed||(H(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return ie instanceof q.SL?ie.add(k):Array.isArray(ie)&&ie.push(k),k}),this._event}fire(I){var X,ie;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new xe.S);for(let P of this._listeners)this._deliveryQueue.push([P,I]);for((X=this._perfMon)===null||X===void 0||X.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[P,B]=this._deliveryQueue.shift();try{typeof P=="function"?P.call(void 0,B):P[0].call(P[1],B)}catch(H){(0,v.dL)(H)}}(ie=this._perfMon)===null||ie===void 0||ie.stop()}}dispose(){var I,X,ie,P,B;this._disposed||(this._disposed=!0,(I=this._listeners)===null||I===void 0||I.clear(),(X=this._deliveryQueue)===null||X===void 0||X.clear(),(P=(ie=this._options)===null||ie===void 0?void 0:ie.onLastListenerRemove)===null||P===void 0||P.call(ie),(B=this._leakageMon)===null||B===void 0||B.dispose())}}class ne extends o{constructor(I){super(I),this._isPaused=0,this._eventQueue=new xe.S,this._mergeFn=I==null?void 0:I.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const I=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(I))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(I){this._listeners&&(this._isPaused!==0?this._eventQueue.push(I):super.fire(I))}}class N extends ne{constructor(I){var X;super(I),this._delay=(X=I.delay)!==null&&X!==void 0?X:100}fire(I){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(I)}}class S{constructor(){this.buffers=[]}wrapEvent(I){return(X,ie,P)=>I(B=>{const H=this.buffers[this.buffers.length-1];H?H.push(()=>X.call(ie,B)):X.call(ie,B)},void 0,P)}bufferEvents(I){const X=[];this.buffers.push(X);const ie=I();return this.buffers.pop(),X.forEach(P=>P()),ie}}class b{constructor(){this.listening=!1,this.inputEvent=O.None,this.inputEventListener=q.JT.None,this.emitter=new o({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(I){this.inputEvent=I,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=I(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(nr,ot,x){"use strict";x.d(ot,{I:function(){return v}});function v(q){const xe=this;let pe=!1,O;return function(){return pe||(pe=!0,O=q.apply(xe,arguments)),O}}},88226:function(nr,ot,x){"use strict";x.d(ot,{$:function(){return v}});var v;(function(q){function xe(H){return H&&typeof H=="object"&&typeof H[Symbol.iterator]=="function"}q.is=xe;const pe=Object.freeze([]);function O(){return pe}q.empty=O;function*p(H){yield H}q.single=p;function ce(H){return H||pe}q.from=ce;function oe(H){return!H||H[Symbol.iterator]().next().done===!0}q.isEmpty=oe;function o(H){return H[Symbol.iterator]().next().value}q.first=o;function ne(H,le){for(const k of H)if(le(k))return!0;return!1}q.some=ne;function N(H,le){for(const k of H)if(le(k))return k}q.find=N;function*S(H,le){for(const k of H)le(k)&&(yield k)}q.filter=S;function*b(H,le){let k=0;for(const j of H)yield le(j,k++)}q.map=b;function*A(...H){for(const le of H)for(const k of le)yield k}q.concat=A;function*I(H){for(const le of H)for(const k of le)yield k}q.concatNested=I;function X(H,le,k){let j=k;for(const J of H)j=le(j,J);return j}q.reduce=X;function*ie(H,le,k=H.length){for(le<0&&(le+=H.length),k<0?k+=H.length:k>H.length&&(k=H.length);le<k;le++)yield H[le]}q.slice=ie;function P(H,le=Number.POSITIVE_INFINITY){const k=[];if(le===0)return[k,H];const j=H[Symbol.iterator]();for(let J=0;J<le;J++){const Q=j.next();if(Q.done)return[k,q.empty()];k.push(Q.value)}return[k,{[Symbol.iterator](){return j}}]}q.consume=P;function B(H,le,k=(j,J)=>j===J){const j=H[Symbol.iterator](),J=le[Symbol.iterator]();for(;;){const Q=j.next(),de=J.next();if(Q.done!==de.done)return!1;if(Q.done)return!0;if(!k(Q.value,de.value))return!1}}q.equals=B})(v||(v={}))},69323:function(nr,ot,x){"use strict";x.d(ot,{B9:function(){return b},F8:function(){return A},JT:function(){return ie},Jz:function(){return B},OF:function(){return I},SL:function(){return X},Wf:function(){return S},XK:function(){return P},dk:function(){return ne}});var v=x(17845),q=x(88226);const xe=!1;let pe=null;function O(H){pe=H}if(xe){const H="__is_disposable_tracked__";O(new class{trackDisposable(le){const k=new Error("Potentially leaked disposable").stack;setTimeout(()=>{le[H]||console.log(k)},3e3)}setParent(le,k){if(le&&le!==ie.None)try{le[H]=!0}catch(j){}}markAsDisposed(le){if(le&&le!==ie.None)try{le[H]=!0}catch(k){}}markAsSingleton(le){}})}function p(H){return pe==null||pe.trackDisposable(H),H}function ce(H){pe==null||pe.markAsDisposed(H)}function oe(H,le){pe==null||pe.setParent(H,le)}function o(H,le){if(pe)for(const k of H)pe.setParent(k,le)}function ne(H){return pe==null||pe.markAsSingleton(H),H}class N extends Error{constructor(le){super(`Encountered errors while disposing of store. Errors: [${le.join(", ")}]`),this.errors=le}}function S(H){return typeof H.dispose=="function"&&H.dispose.length===0}function b(H){if(q.$.is(H)){let le=[];for(const k of H)if(k)try{k.dispose()}catch(j){le.push(j)}if(le.length===1)throw le[0];if(le.length>1)throw new N(le);return Array.isArray(H)?[]:H}else if(H)return H.dispose(),H}function A(...H){const le=I(()=>b(H));return o(H,le),le}function I(H){const le=p({dispose:(0,v.I)(()=>{ce(le),H()})});return le}class X{constructor(){this._toDispose=new Set,this._isDisposed=!1,p(this)}dispose(){this._isDisposed||(ce(this),this._isDisposed=!0,this.clear())}clear(){try{b(this._toDispose.values())}finally{this._toDispose.clear()}}add(le){if(!le)return le;if(le===this)throw new Error("Cannot register a disposable on itself!");return oe(le,this),this._isDisposed?X.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(le),le}}X.DISABLE_DISPOSED_WARNING=!1;class ie{constructor(){this._store=new X,p(this),oe(this._store,this)}dispose(){ce(this),this._store.dispose()}_register(le){if(le===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(le)}}ie.None=Object.freeze({dispose(){}});class P{constructor(){this._isDisposed=!1,p(this)}get value(){return this._isDisposed?void 0:this._value}set value(le){var k;this._isDisposed||le===this._value||((k=this._value)===null||k===void 0||k.dispose(),le&&oe(le,this),this._value=le)}clear(){this.value=void 0}dispose(){var le;this._isDisposed=!0,ce(this),(le=this._value)===null||le===void 0||le.dispose(),this._value=void 0}clearAndLeak(){const le=this._value;return this._value=void 0,le&&oe(le,null),le}}class B{constructor(le){this.object=le}dispose(){}}},34502:function(nr,ot,x){"use strict";x.d(ot,{S:function(){return q}});class v{constructor(pe){this.element=pe,this.next=v.Undefined,this.prev=v.Undefined}}v.Undefined=new v(void 0);class q{constructor(){this._first=v.Undefined,this._last=v.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===v.Undefined}clear(){let pe=this._first;for(;pe!==v.Undefined;){const O=pe.next;pe.prev=v.Undefined,pe.next=v.Undefined,pe=O}this._first=v.Undefined,this._last=v.Undefined,this._size=0}unshift(pe){return this._insert(pe,!1)}push(pe){return this._insert(pe,!0)}_insert(pe,O){const p=new v(pe);if(this._first===v.Undefined)this._first=p,this._last=p;else if(O){const oe=this._last;this._last=p,p.prev=oe,oe.next=p}else{const oe=this._first;this._first=p,p.next=oe,oe.prev=p}this._size+=1;let ce=!1;return()=>{ce||(ce=!0,this._remove(p))}}shift(){if(this._first!==v.Undefined){const pe=this._first.element;return this._remove(this._first),pe}}pop(){if(this._last!==v.Undefined){const pe=this._last.element;return this._remove(this._last),pe}}_remove(pe){if(pe.prev!==v.Undefined&&pe.next!==v.Undefined){const O=pe.prev;O.next=pe.next,pe.next.prev=O}else pe.prev===v.Undefined&&pe.next===v.Undefined?(this._first=v.Undefined,this._last=v.Undefined):pe.next===v.Undefined?(this._last=this._last.prev,this._last.next=v.Undefined):pe.prev===v.Undefined&&(this._first=this._first.next,this._first.prev=v.Undefined);this._size-=1}*[Symbol.iterator](){let pe=this._first;for(;pe!==v.Undefined;)yield pe.element,pe=pe.next}}},23345:function(nr,ot,x){"use strict";x.d(ot,{$L:function(){return j},ED:function(){return B},IJ:function(){return le},OS:function(){return Se},WE:function(){return Q},dz:function(){return H},gn:function(){return J},li:function(){return I},r:function(){return ee},tY:function(){return k},xS:function(){return de}});var v=x(97671),q;const xe="en";let pe=!1,O=!1,p=!1,ce=!1,oe=!1,o=!1,ne=!1,N,S=null,b=null,A;const I=typeof self=="object"?self:typeof x.g=="object"?x.g:{};let X;typeof I.vscode!="undefined"&&typeof I.vscode.process!="undefined"?X=I.vscode.process:typeof v!="undefined"&&(X=v);const ie=typeof((q=X==null?void 0:X.versions)===null||q===void 0?void 0:q.electron)=="string"&&X.type==="renderer";if(typeof navigator=="object"&&!ie)A=navigator.userAgent,pe=A.indexOf("Windows")>=0,O=A.indexOf("Macintosh")>=0,ne=(A.indexOf("Macintosh")>=0||A.indexOf("iPad")>=0||A.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,p=A.indexOf("Linux")>=0,o=!0,N=navigator.language,S=N;else if(typeof X=="object"){pe=X.platform==="win32",O=X.platform==="darwin",p=X.platform==="linux",ce=p&&!!X.env.SNAP&&!!X.env.SNAP_REVISION,N=xe,S=xe;const F=X.env.VSCODE_NLS_CONFIG;if(F)try{const Y=JSON.parse(F),V=Y.availableLanguages["*"];N=Y.locale,S=V||xe,b=Y._translationsConfigFile}catch(Y){}oe=!0}else console.error("Unable to resolve platform.");let P=0;O?P=1:pe?P=3:p&&(P=2);const B=pe,H=O,le=p,k=oe,j=o,J=ne,Q=A,de=function(){if(I.setImmediate)return I.setImmediate.bind(I);if(typeof I.postMessage=="function"&&!I.importScripts){let V=[];I.addEventListener("message",te=>{if(te.data&&te.data.vscodeSetImmediateId)for(let y=0,w=V.length;y<w;y++){const Z=V[y];if(Z.id===te.data.vscodeSetImmediateId){V.splice(y,1),Z.callback();return}}});let ue=0;return te=>{const y=++ue;V.push({id:y,callback:te}),I.postMessage({vscodeSetImmediateId:y},"*")}}if(typeof(X==null?void 0:X.nextTick)=="function")return X.nextTick.bind(X);const Y=Promise.resolve();return V=>Y.then(V)}(),Se=O||ne?2:pe?1:3;let Ae=!0,Me=!1;function ee(){if(!Me){Me=!0;const F=new Uint8Array(2);F[0]=1,F[1]=2,Ae=new Uint16Array(F.buffer)[0]===513}return Ae}},95830:function(nr,ot,x){"use strict";x.d(ot,{G:function(){return xe}});var v=x(23345);const q=v.li.performance&&typeof v.li.performance.now=="function";class xe{constructor(O){this._highResolution=q&&O,this._startTime=this._now(),this._stopTime=-1}static create(O=!0){return new xe(O)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?v.li.performance.now():Date.now()}}},82983:function(nr,ot,x){"use strict";x.d(ot,{$i:function(){return Pe},C8:function(){return at},GF:function(){return N},HO:function(){return ue},IO:function(){return S},K7:function(){return tt},Kw:function(){return tr},LC:function(){return I},Mh:function(){return de},P1:function(){return Se},PJ:function(){return Mt},Qe:function(){return Ue},R1:function(){return ne},RP:function(){return Z},S6:function(){return jt},TT:function(){return B},Ut:function(){return y},V8:function(){return X},WU:function(){return xe},YK:function(){return Me},YU:function(){return pe},ZG:function(){return Ae},ZH:function(){return F},ab:function(){return Ve},c1:function(){return mt},df:function(){return j},ec:function(){return O},fi:function(){return Yt},fy:function(){return p},j3:function(){return ce},j_:function(){return le},m5:function(){return v},mK:function(){return k},mr:function(){return b},oH:function(){return fe},oL:function(){return oe},ok:function(){return Q},ow:function(){return ie},qq:function(){return J},qu:function(){return P},rL:function(){return ee},uS:function(){return Ut},un:function(){return o},uq:function(){return A},vH:function(){return V},xe:function(){return Xe},zY:function(){return H}});function v(M){return!M||typeof M!="string"?!0:M.trim().length===0}const q=/{(\d+)}/g;function xe(M,...se){return se.length===0?M:M.replace(q,function(ve,Ee){const ke=parseInt(Ee,10);return isNaN(ke)||ke<0||ke>=se.length?ve:se[ke]})}function pe(M){return M.replace(/[<>&]/g,function(se){switch(se){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return se}})}function O(M){return M.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function p(M,se=" "){const ve=ce(M,se);return oe(ve,se)}function ce(M,se){if(!M||!se)return M;const ve=se.length;if(ve===0||M.length===0)return M;let Ee=0;for(;M.indexOf(se,Ee)===Ee;)Ee=Ee+ve;return M.substring(Ee)}function oe(M,se){if(!M||!se)return M;const ve=se.length,Ee=M.length;if(ve===0||Ee===0)return M;let ke=Ee,Fe=-1;for(;Fe=M.lastIndexOf(se,ke-1),!(Fe===-1||Fe+ve!==ke);){if(Fe===0)return"";ke=Fe}return M.substring(0,ke)}function o(M){return M.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function ne(M){return M.replace(/\*/g,"")}function N(M,se,ve={}){if(!M)throw new Error("Cannot create regex from empty string");se||(M=O(M)),ve.wholeWord&&(/\B/.test(M.charAt(0))||(M="\\b"+M),/\B/.test(M.charAt(M.length-1))||(M=M+"\\b"));let Ee="";return ve.global&&(Ee+="g"),ve.matchCase||(Ee+="i"),ve.multiline&&(Ee+="m"),ve.unicode&&(Ee+="u"),new RegExp(M,Ee)}function S(M){return M.source==="^"||M.source==="^$"||M.source==="$"||M.source==="^\\s*$"?!1:!!(M.exec("")&&M.lastIndex===0)}function b(M){return(M.global?"g":"")+(M.ignoreCase?"i":"")+(M.multiline?"m":"")+(M.unicode?"u":"")}function A(M){return M.split(/\r\n|\r|\n/)}function I(M){for(let se=0,ve=M.length;se<ve;se++){const Ee=M.charCodeAt(se);if(Ee!==32&&Ee!==9)return se}return-1}function X(M,se=0,ve=M.length){for(let Ee=se;Ee<ve;Ee++){const ke=M.charCodeAt(Ee);if(ke!==32&&ke!==9)return M.substring(se,Ee)}return M.substring(se,ve)}function ie(M,se=M.length-1){for(let ve=se;ve>=0;ve--){const Ee=M.charCodeAt(ve);if(Ee!==32&&Ee!==9)return ve}return-1}function P(M,se){return M<se?-1:M>se?1:0}function B(M,se,ve=0,Ee=M.length,ke=0,Fe=se.length){for(;ve<Ee&&ke<Fe;ve++,ke++){let ht=M.charCodeAt(ve),Qe=se.charCodeAt(ke);if(ht<Qe)return-1;if(ht>Qe)return 1}const qe=Ee-ve,gt=Fe-ke;return qe<gt?-1:qe>gt?1:0}function H(M,se){return le(M,se,0,M.length,0,se.length)}function le(M,se,ve=0,Ee=M.length,ke=0,Fe=se.length){for(;ve<Ee&&ke<Fe;ve++,ke++){let ht=M.charCodeAt(ve),Qe=se.charCodeAt(ke);if(ht===Qe)continue;if(ht>=128||Qe>=128)return B(M.toLowerCase(),se.toLowerCase(),ve,Ee,ke,Fe);k(ht)&&(ht-=32),k(Qe)&&(Qe-=32);const Ft=ht-Qe;if(Ft!==0)return Ft}const qe=Ee-ve,gt=Fe-ke;return qe<gt?-1:qe>gt?1:0}function k(M){return M>=97&&M<=122}function j(M){return M>=65&&M<=90}function J(M,se){return M.length===se.length&&le(M,se)===0}function Q(M,se){const ve=se.length;return se.length>M.length?!1:le(M,se,0,ve)===0}function de(M,se){let ve,Ee=Math.min(M.length,se.length);for(ve=0;ve<Ee;ve++)if(M.charCodeAt(ve)!==se.charCodeAt(ve))return ve;return Ee}function Se(M,se){let ve,Ee=Math.min(M.length,se.length);const ke=M.length-1,Fe=se.length-1;for(ve=0;ve<Ee;ve++)if(M.charCodeAt(ke-ve)!==se.charCodeAt(Fe-ve))return ve;return Ee}function Ae(M){return 55296<=M&&M<=56319}function Me(M){return 56320<=M&&M<=57343}function ee(M,se){return(M-55296<<10)+(se-56320)+65536}function F(M,se,ve){const Ee=M.charCodeAt(ve);if(Ae(Ee)&&ve+1<se){const ke=M.charCodeAt(ve+1);if(Me(ke))return ee(Ee,ke)}return Ee}function Y(M,se){const ve=M.charCodeAt(se-1);if(Me(ve)&&se>1){const Ee=M.charCodeAt(se-2);if(Ae(Ee))return ee(Ee,ve)}return ve}function V(M,se){const ve=er.getInstance(),Ee=se,ke=M.length,Fe=F(M,ke,se);se+=Fe>=65536?2:1;let qe=ve.getGraphemeBreakType(Fe);for(;se<ke;){const gt=F(M,ke,se),ht=ve.getGraphemeBreakType(gt);if(Yt(qe,ht))break;se+=gt>=65536?2:1,qe=ht}return se-Ee}function ue(M,se){const ve=er.getInstance(),Ee=se,ke=Y(M,se);se-=ke>=65536?2:1;let Fe=ve.getGraphemeBreakType(ke);for(;se>0;){const qe=Y(M,se),gt=ve.getGraphemeBreakType(qe);if(Yt(gt,Fe))break;se-=qe>=65536?2:1,Fe=gt}return Ee-se}const te=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function y(M){return te.test(M)}const w=/(?:[\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 Z(M){return w.test(M)}const G=/^[\t\n\r\x20-\x7E]*$/;function Pe(M){return G.test(M)}const Ue=/[\u2028\u2029]/;function Ve(M){return Ue.test(M)}function Xe(M){for(let se=0,ve=M.length;se<ve;se++)if(tt(M.charCodeAt(se)))return!0;return!1}function tt(M){return M=+M,M>=11904&&M<=55215||M>=63744&&M<=64255||M>=65281&&M<=65374}function at(M){return M>=127462&&M<=127487||M===8986||M===8987||M===9200||M===9203||M>=9728&&M<=10175||M===11088||M===11093||M>=127744&&M<=128591||M>=128640&&M<=128764||M>=128992&&M<=129003||M>=129280&&M<=129535||M>=129648&&M<=129750}const mt="\uFEFF";function Ut(M){return!!(M&&M.length>0&&M.charCodeAt(0)===65279)}function tr(M,se=!1){return M?(se&&(M=M.replace(/\\./g,"")),M.toLowerCase()!==M):!1}function Mt(M){return M=M%(2*26),M<26?String.fromCharCode(97+M):String.fromCharCode(65+M-26)}function jt(M){return er.getInstance().getGraphemeBreakType(M)}function Yt(M,se){return M===0?se!==5&&se!==7:M===2&&se===3?!1:M===4||M===2||M===3||se===4||se===2||se===3?!0:!(M===8&&(se===8||se===9||se===11||se===12)||(M===11||M===9)&&(se===9||se===10)||(M===12||M===10)&&se===10||se===5||se===13||se===7||M===1||M===13&&se===14||M===6&&se===6)}class er{constructor(){this._data=ge()}static getInstance(){return er._INSTANCE||(er._INSTANCE=new er),er._INSTANCE}getGraphemeBreakType(se){if(se<32)return se===10?3:se===13?2:4;if(se<127)return 0;const ve=this._data,Ee=ve.length/3;let ke=1;for(;ke<=Ee;)if(se<ve[3*ke])ke=2*ke;else if(se>ve[3*ke+1])ke=2*ke+1;else return ve[3*ke+2];return 0}}er._INSTANCE=null;function ge(){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 fe(M,se){if(M===0)return 0;const ve=U(M,se);if(ve!==void 0)return ve;const Ee=Y(se,M);return M-=ye(Ee),M}function U(M,se){let ve=Y(se,M);for(M-=ye(ve);Re(ve)||ve===65039||ve===8419;){if(M===0)return;ve=Y(se,M),M-=ye(ve)}if(at(ve)){if(M>=0){const Ee=Y(se,M);Ee===8205&&(M-=ye(Ee))}return M}}function ye(M){return M>=65536?2:1}function Re(M){return 127995<=M&&M<=127999}},72999:function(nr,ot,x){"use strict";x.d(ot,{$E:function(){return I},$K:function(){return ce},D8:function(){return S},HD:function(){return q},IU:function(){return X},Jp:function(){return oe},Kn:function(){return xe},cW:function(){return ne},f6:function(){return ie},hj:function(){return pe},jn:function(){return O},kJ:function(){return v},mf:function(){return N},o8:function(){return p},p_:function(){return o},vE:function(){return P}});function v(B){return Array.isArray(B)}function q(B){return typeof B=="string"}function xe(B){return typeof B=="object"&&B!==null&&!Array.isArray(B)&&!(B instanceof RegExp)&&!(B instanceof Date)}function pe(B){return typeof B=="number"&&!isNaN(B)}function O(B){return B===!0||B===!1}function p(B){return typeof B=="undefined"}function ce(B){return!oe(B)}function oe(B){return p(B)||B===null}function o(B,H){if(!B)throw new Error(H?`Unexpected type, expected '${H}'`:"Unexpected type")}function ne(B){if(oe(B))throw new Error("Assertion Failed: argument is undefined or null");return B}function N(B){return typeof B=="function"}function S(B,H){const le=Math.min(B.length,H.length);for(let k=0;k<le;k++)b(B[k],H[k])}function b(B,H){if(q(H)){if(typeof B!==H)throw new Error(`argument does not match constraint: typeof ${H}`)}else if(N(H)){try{if(B instanceof H)return}catch(le){}if(!oe(B)&&B.constructor===H||H.length===1&&H.call(void 0,B)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function A(B){let H=[],le=Object.getPrototypeOf(B);for(;Object.prototype!==le;)H=H.concat(Object.getOwnPropertyNames(le)),le=Object.getPrototypeOf(le);return H}function I(B){const H=[];for(const le of A(B))typeof B[le]=="function"&&H.push(le);return H}function X(B,H){const le=j=>function(){const J=Array.prototype.slice.call(arguments,0);return H(j,J)};let k={};for(const j of B)k[j]=le(j);return k}function ie(B){return B===null?void 0:B}function P(B,H="Unreachable"){throw new Error(H)}},13268:function(nr,ot,x){"use strict";x.d(ot,{N:function(){return q}});function v(xe,pe){let O;return pe.length===0?O=xe:O=xe.replace(/\{(\d+)\}/g,function(p,ce){const oe=ce[0];return typeof pe[oe]!="undefined"?pe[oe]:p}),O}function q(xe,pe,...O){return v(pe,O)}},96236:function(nr,ot,x){"use strict";x.d(ot,{BH:function(){return X},NZ:function(){return ie},U8:function(){return P},co:function(){return I},eH:function(){return A},vr:function(){return b}});var v=x(75918),q=x(52615),xe=x(4348),pe=x(88226),O=x(69323),p=x(34502),ce=x(35884),oe=x(90689),o=x(16925),ne=x(49055),N=function(B,H,le,k){var j=arguments.length,J=j<3?H:k===null?k=Object.getOwnPropertyDescriptor(H,le):k,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")J=Reflect.decorate(B,H,le,k);else for(var de=B.length-1;de>=0;de--)(Q=B[de])&&(J=(j<3?Q(J):j>3?Q(H,le,J):Q(H,le))||J);return j>3&&J&&Object.defineProperty(H,le,J),J},S=function(B,H){return function(le,k){H(le,k,B)}};function b(B){return B.command!==void 0}class A{constructor(H){this.id=A._idPool++,this._debugName=H}}A._idPool=0,A.CommandPalette=new A("CommandPalette"),A.EditorContext=new A("EditorContext"),A.SimpleEditorContext=new A("SimpleEditorContext"),A.EditorContextCopy=new A("EditorContextCopy"),A.EditorContextPeek=new A("EditorContextPeek"),A.MenubarEditMenu=new A("MenubarEditMenu"),A.MenubarCopy=new A("MenubarCopy"),A.MenubarGoMenu=new A("MenubarGoMenu"),A.MenubarSelectionMenu=new A("MenubarSelectionMenu"),A.InlineCompletionsActions=new A("InlineCompletionsActions");const I=(0,o.yh)("menuService"),X=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new xe.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:B=>B===A.CommandPalette}}addCommand(B){return this.addCommands(pe.$.single(B))}addCommands(B){for(const H of B)this._commands.set(H.id,H);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,O.OF)(()=>{let H=!1;for(const le of B)H=this._commands.delete(le.id)||H;H&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(B){return this._commands.get(B)}getCommands(){const B=new Map;return this._commands.forEach((H,le)=>B.set(le,H)),B}appendMenuItem(B,H){return this.appendMenuItems(pe.$.single({id:B,item:H}))}appendMenuItems(B){const H=new Set,le=new p.S;for(const{id:k,item:j}of B){let J=this._menuItems.get(k);J||(J=new p.S,this._menuItems.set(k,J)),le.push(J.push(j)),H.add(k)}return this._onDidChangeMenu.fire(H),(0,O.OF)(()=>{if(le.size>0){for(let k of le)k();this._onDidChangeMenu.fire(H),le.clear()}})}getMenuItems(B){let H;return this._menuItems.has(B)?H=[...this._menuItems.get(B)]:H=[],B===A.CommandPalette&&this._appendImplicitItems(H),H}_appendImplicitItems(B){const H=new Set;for(const le of B)b(le)&&(H.add(le.command.id),le.alt&&H.add(le.alt.id));this._commands.forEach((le,k)=>{H.has(k)||B.push({command:le})})}};class ie extends v.wY{constructor(H,le,k,j){super(`submenuitem.${H.submenu.id}`,typeof H.title=="string"?H.title:H.title.value,[],"submenu"),this.item=H,this._menuService=le,this._contextKeyService=k,this._options=j}get actions(){const H=[],le=this._menuService.createMenu(this.item.submenu,this._contextKeyService),k=le.getActions(this._options);le.dispose();for(const[,j]of k)j.length>0&&(H.push(...j),H.push(new v.Z0));return H.length&&H.pop(),H}}let P=class Yl{constructor(H,le,k,j,J){var Q,de;if(this._commandService=J,this.id=H.id,this.label=k!=null&&k.renderShortTitle&&H.shortTitle?typeof H.shortTitle=="string"?H.shortTitle:H.shortTitle.value:typeof H.title=="string"?H.title:H.title.value,this.tooltip=(de=typeof H.tooltip=="string"?H.tooltip:(Q=H.tooltip)===null||Q===void 0?void 0:Q.value)!==null&&de!==void 0?de:"",this.enabled=!H.precondition||j.contextMatchesRules(H.precondition),this.checked=void 0,H.toggled){const Se=H.toggled.condition?H.toggled:{condition:H.toggled};this.checked=j.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=H,this.alt=le?new Yl(le,void 0,k,j,J):void 0,this._options=k,ne.kS.isThemeIcon(H.icon)&&(this.class=q.dT.asClassName(H.icon))}dispose(){}run(...H){var le,k;let j=[];return!((le=this._options)===null||le===void 0)&&le.arg&&(j=[...j,this._options.arg]),!((k=this._options)===null||k===void 0)&&k.shouldForwardArgs&&(j=[...j,...H]),this._commandService.executeCommand(this.id,...j)}};P=N([S(3,oe.i6),S(4,ce.H)],P)},35884:function(nr,ot,x){"use strict";x.d(ot,{H:function(){return ce},P:function(){return oe}});var v=x(4348),q=x(88226),xe=x(69323),pe=x(34502),O=x(72999),p=x(16925);const ce=(0,p.yh)("commandService"),oe=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new v.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(o,ne){if(!o)throw new Error("invalid command");if(typeof o=="string"){if(!ne)throw new Error("invalid command");return this.registerCommand({id:o,handler:ne})}if(o.description){const I=[];for(let ie of o.description.args)I.push(ie.constraint);const X=o.handler;o.handler=function(ie,...P){return(0,O.D8)(P,I),X(ie,...P)}}const{id:N}=o;let S=this._commands.get(N);S||(S=new pe.S,this._commands.set(N,S));let b=S.unshift(o),A=(0,xe.OF)(()=>{b();const I=this._commands.get(N);I!=null&&I.isEmpty()&&this._commands.delete(N)});return this._onDidRegisterCommand.fire(N),A}registerCommandAlias(o,ne){return oe.registerCommand(o,(N,...S)=>N.get(ce).executeCommand(ne,...S))}getCommand(o){const ne=this._commands.get(o);if(!(!ne||ne.isEmpty()))return q.$.first(ne)}getCommands(){const o=new Map;for(const ne of this._commands.keys()){const N=this.getCommand(ne);N&&o.set(ne,N)}return o}};oe.registerCommand("noop",()=>{})},90689:function(nr,ot,x){"use strict";x.d(ot,{Ao:function(){return ce},Eq:function(){return ee},Fb:function(){return oe},K8:function(){return V},i6:function(){return Me},uy:function(){return Ae}});var v=x(23345),q=x(82983),xe=x(16925);let pe=v.WE||"";const O=new Map;O.set("false",!1),O.set("true",!0),O.set("isMac",v.dz),O.set("isLinux",v.IJ),O.set("isWindows",v.ED),O.set("isWeb",v.$L),O.set("isMacNative",v.dz&&!v.$L),O.set("isEdge",pe.indexOf("Edg/")>=0),O.set("isFirefox",pe.indexOf("Firefox")>=0),O.set("isChrome",pe.indexOf("Chrome")>=0),O.set("isSafari",pe.indexOf("Safari")>=0);const p=Object.prototype.hasOwnProperty;class ce{static has(y){return S.create(y)}static equals(y,w){return b.create(y,w)}static regex(y,w){return j.create(y,w)}static not(y){return ie.create(y)}static and(...y){return de.create(y,null)}static or(...y){return Se.create(y,null,!0)}static deserialize(y,w=!1){if(y)return this._deserializeOrExpression(y,w)}static _deserializeOrExpression(y,w){let Z=y.split("||");return Se.create(Z.map(G=>this._deserializeAndExpression(G,w)),null,!0)}static _deserializeAndExpression(y,w){let Z=y.split("&&");return de.create(Z.map(G=>this._deserializeOne(G,w)),null)}static _deserializeOne(y,w){if(y=y.trim(),y.indexOf("!=")>=0){let Z=y.split("!=");return X.create(Z[0].trim(),this._deserializeValue(Z[1],w))}if(y.indexOf("==")>=0){let Z=y.split("==");return b.create(Z[0].trim(),this._deserializeValue(Z[1],w))}if(y.indexOf("=~")>=0){let Z=y.split("=~");return j.create(Z[0].trim(),this._deserializeRegexValue(Z[1],w))}if(y.indexOf(" in ")>=0){let Z=y.split(" in ");return A.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(y)){const Z=y.split(">=");return H.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(y)){const Z=y.split(">");return B.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(y)){const Z=y.split("<=");return k.create(Z[0].trim(),Z[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(y)){const Z=y.split("<");return le.create(Z[0].trim(),Z[1].trim())}return/^\!\s*/.test(y)?ie.create(y.substr(1).trim()):S.create(y)}static _deserializeValue(y,w){if(y=y.trim(),y==="true")return!0;if(y==="false")return!1;let Z=/^'([^']*)'$/.exec(y);return Z?Z[1].trim():y}static _deserializeRegexValue(y,w){if((0,q.m5)(y)){if(w)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let Z=y.indexOf("/"),G=y.lastIndexOf("/");if(Z===G||Z<0){if(w)throw new Error(`bad regexp-value '${y}', missing /-enclosure`);return console.warn(`bad regexp-value '${y}', missing /-enclosure`),null}let Pe=y.slice(Z+1,G),Ue=y[G+1]==="i"?"i":"";try{return new RegExp(Pe,Ue)}catch(Ve){if(w)throw new Error(`bad regexp-value '${y}', parse error: ${Ve}`);return console.warn(`bad regexp-value '${y}', parse error: ${Ve}`),null}}}function oe(te,y){const w=te?te.substituteConstants():void 0,Z=y?y.substituteConstants():void 0;return!w&&!Z?!0:!w||!Z?!1:w.equals(Z)}function o(te,y){return te.cmp(y)}class ne{constructor(){this.type=0}cmp(y){return this.type-y.type}equals(y){return y.type===this.type}substituteConstants(){return this}evaluate(y){return!1}serialize(){return"false"}keys(){return[]}negate(){return N.INSTANCE}}ne.INSTANCE=new ne;class N{constructor(){this.type=1}cmp(y){return this.type-y.type}equals(y){return y.type===this.type}substituteConstants(){return this}evaluate(y){return!0}serialize(){return"true"}keys(){return[]}negate(){return ne.INSTANCE}}N.INSTANCE=new N;class S{constructor(y,w){this.key=y,this.negated=w,this.type=2}static create(y,w=null){const Z=O.get(y);return typeof Z=="boolean"?Z?N.INSTANCE:ne.INSTANCE:new S(y,w)}cmp(y){return y.type!==this.type?this.type-y.type:F(this.key,y.key)}equals(y){return y.type===this.type?this.key===y.key:!1}substituteConstants(){const y=O.get(this.key);return typeof y=="boolean"?y?N.INSTANCE:ne.INSTANCE:this}evaluate(y){return!!y.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=ie.create(this.key,this)),this.negated}}class b{constructor(y,w,Z){this.key=y,this.value=w,this.negated=Z,this.type=4}static create(y,w,Z=null){if(typeof w=="boolean")return w?S.create(y,Z):ie.create(y,Z);const G=O.get(y);return typeof G=="boolean"?w===(G?"true":"false")?N.INSTANCE:ne.INSTANCE:new b(y,w,Z)}cmp(y){return y.type!==this.type?this.type-y.type:Y(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){const y=O.get(this.key);if(typeof y=="boolean"){const w=y?"true":"false";return this.value===w?N.INSTANCE:ne.INSTANCE}return this}evaluate(y){return y.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=X.create(this.key,this.value,this)),this.negated}}class A{constructor(y,w){this.key=y,this.valueKey=w,this.type=10,this.negated=null}static create(y,w){return new A(y,w)}cmp(y){return y.type!==this.type?this.type-y.type:Y(this.key,this.valueKey,y.key,y.valueKey)}equals(y){return y.type===this.type?this.key===y.key&&this.valueKey===y.valueKey:!1}substituteConstants(){return this}evaluate(y){const w=y.getValue(this.valueKey),Z=y.getValue(this.key);return Array.isArray(w)?w.indexOf(Z)>=0:typeof Z=="string"&&typeof w=="object"&&w!==null?p.call(w,Z):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=I.create(this)),this.negated}}class I{constructor(y){this._actual=y,this.type=11}static create(y){return new I(y)}cmp(y){return y.type!==this.type?this.type-y.type:this._actual.cmp(y._actual)}equals(y){return y.type===this.type?this._actual.equals(y._actual):!1}substituteConstants(){return this}evaluate(y){return!this._actual.evaluate(y)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class X{constructor(y,w,Z){this.key=y,this.value=w,this.negated=Z,this.type=5}static create(y,w,Z=null){if(typeof w=="boolean")return w?ie.create(y,Z):S.create(y,Z);const G=O.get(y);return typeof G=="boolean"?w===(G?"true":"false")?ne.INSTANCE:N.INSTANCE:new X(y,w,Z)}cmp(y){return y.type!==this.type?this.type-y.type:Y(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){const y=O.get(this.key);if(typeof y=="boolean"){const w=y?"true":"false";return this.value===w?ne.INSTANCE:N.INSTANCE}return this}evaluate(y){return y.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this.value,this)),this.negated}}class ie{constructor(y,w){this.key=y,this.negated=w,this.type=3}static create(y,w=null){const Z=O.get(y);return typeof Z=="boolean"?Z?ne.INSTANCE:N.INSTANCE:new ie(y,w)}cmp(y){return y.type!==this.type?this.type-y.type:F(this.key,y.key)}equals(y){return y.type===this.type?this.key===y.key:!1}substituteConstants(){const y=O.get(this.key);return typeof y=="boolean"?y?ne.INSTANCE:N.INSTANCE:this}evaluate(y){return!y.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=S.create(this.key,this)),this.negated}}function P(te,y){if(typeof te=="string"){const w=parseFloat(te);isNaN(w)||(te=w)}return typeof te=="string"||typeof te=="number"?y(te):ne.INSTANCE}class B{constructor(y,w,Z){this.key=y,this.value=w,this.negated=Z,this.type=12}static create(y,w,Z=null){return P(w,G=>new B(y,G,Z))}cmp(y){return y.type!==this.type?this.type-y.type:Y(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=k.create(this.key,this.value,this)),this.negated}}class H{constructor(y,w,Z){this.key=y,this.value=w,this.negated=Z,this.type=13}static create(y,w,Z=null){return P(w,G=>new H(y,G,Z))}cmp(y){return y.type!==this.type?this.type-y.type:Y(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=le.create(this.key,this.value,this)),this.negated}}class le{constructor(y,w,Z){this.key=y,this.value=w,this.negated=Z,this.type=14}static create(y,w,Z=null){return P(w,G=>new le(y,G,Z))}cmp(y){return y.type!==this.type?this.type-y.type:Y(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=H.create(this.key,this.value,this)),this.negated}}class k{constructor(y,w,Z){this.key=y,this.value=w,this.negated=Z,this.type=15}static create(y,w,Z=null){return P(w,G=>new k(y,G,Z))}cmp(y){return y.type!==this.type?this.type-y.type:Y(this.key,this.value,y.key,y.value)}equals(y){return y.type===this.type?this.key===y.key&&this.value===y.value:!1}substituteConstants(){return this}evaluate(y){return typeof this.value=="string"?!1:parseFloat(y.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B.create(this.key,this.value,this)),this.negated}}class j{constructor(y,w){this.key=y,this.regexp=w,this.type=7,this.negated=null}static create(y,w){return new j(y,w)}cmp(y){if(y.type!==this.type)return this.type-y.type;if(this.key<y.key)return-1;if(this.key>y.key)return 1;const w=this.regexp?this.regexp.source:"",Z=y.regexp?y.regexp.source:"";return w<Z?-1:w>Z?1:0}equals(y){if(y.type===this.type){const w=this.regexp?this.regexp.source:"",Z=y.regexp?y.regexp.source:"";return this.key===y.key&&w===Z}return!1}substituteConstants(){return this}evaluate(y){let w=y.getValue(this.key);return this.regexp?this.regexp.test(w):!1}serialize(){const y=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${y}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=J.create(this)),this.negated}}class J{constructor(y){this._actual=y,this.type=8}static create(y){return new J(y)}cmp(y){return y.type!==this.type?this.type-y.type:this._actual.cmp(y._actual)}equals(y){return y.type===this.type?this._actual.equals(y._actual):!1}substituteConstants(){return this}evaluate(y){return!this._actual.evaluate(y)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function Q(te){let y=null;for(let w=0,Z=te.length;w<Z;w++){const G=te[w].substituteConstants();if(te[w]!==G&&y===null){y=[];for(let Pe=0;Pe<w;Pe++)y[Pe]=te[Pe]}y!==null&&(y[w]=G)}return y===null?te:y}class de{constructor(y,w){this.expr=y,this.negated=w,this.type=6}static create(y,w){return de._normalizeArr(y,w)}cmp(y){if(y.type!==this.type)return this.type-y.type;if(this.expr.length<y.expr.length)return-1;if(this.expr.length>y.expr.length)return 1;for(let w=0,Z=this.expr.length;w<Z;w++){const G=o(this.expr[w],y.expr[w]);if(G!==0)return G}return 0}equals(y){if(y.type===this.type){if(this.expr.length!==y.expr.length)return!1;for(let w=0,Z=this.expr.length;w<Z;w++)if(!this.expr[w].equals(y.expr[w]))return!1;return!0}return!1}substituteConstants(){const y=Q(this.expr);return y===this.expr?this:de.create(y,this.negated)}evaluate(y){for(let w=0,Z=this.expr.length;w<Z;w++)if(!this.expr[w].evaluate(y))return!1;return!0}static _normalizeArr(y,w){const Z=[];let G=!1;for(const Pe of y)if(Pe){if(Pe.type===1){G=!0;continue}if(Pe.type===0)return ne.INSTANCE;if(Pe.type===6){Z.push(...Pe.expr);continue}Z.push(Pe)}if(Z.length===0&&G)return N.INSTANCE;if(Z.length!==0){if(Z.length===1)return Z[0];Z.sort(o);for(let Pe=1;Pe<Z.length;Pe++)Z[Pe-1].equals(Z[Pe])&&(Z.splice(Pe,1),Pe--);if(Z.length===1)return Z[0];for(;Z.length>1;){const Pe=Z[Z.length-1];if(Pe.type!==9)break;Z.pop();const Ue=Z.pop(),Ve=Z.length===0,Xe=Se.create(Pe.expr.map(tt=>de.create([tt,Ue],null)),null,Ve);Xe&&(Z.push(Xe),Z.sort(o))}return Z.length===1?Z[0]:new de(Z,w)}}serialize(){return this.expr.map(y=>y.serialize()).join(" && ")}keys(){const y=[];for(let w of this.expr)y.push(...w.keys());return y}negate(){if(!this.negated){const y=[];for(let w of this.expr)y.push(w.negate());this.negated=Se.create(y,this,!0)}return this.negated}}class Se{constructor(y,w){this.expr=y,this.negated=w,this.type=9}static create(y,w,Z){return Se._normalizeArr(y,w,Z)}cmp(y){if(y.type!==this.type)return this.type-y.type;if(this.expr.length<y.expr.length)return-1;if(this.expr.length>y.expr.length)return 1;for(let w=0,Z=this.expr.length;w<Z;w++){const G=o(this.expr[w],y.expr[w]);if(G!==0)return G}return 0}equals(y){if(y.type===this.type){if(this.expr.length!==y.expr.length)return!1;for(let w=0,Z=this.expr.length;w<Z;w++)if(!this.expr[w].equals(y.expr[w]))return!1;return!0}return!1}substituteConstants(){const y=Q(this.expr);return y===this.expr?this:Se.create(y,this.negated,!1)}evaluate(y){for(let w=0,Z=this.expr.length;w<Z;w++)if(this.expr[w].evaluate(y))return!0;return!1}static _normalizeArr(y,w,Z){let G=[],Pe=!1;if(y){for(let Ue=0,Ve=y.length;Ue<Ve;Ue++){const Xe=y[Ue];if(Xe){if(Xe.type===0){Pe=!0;continue}if(Xe.type===1)return N.INSTANCE;if(Xe.type===9){G=G.concat(Xe.expr);continue}G.push(Xe)}}if(G.length===0&&Pe)return ne.INSTANCE;G.sort(o)}if(G.length!==0){if(G.length===1)return G[0];for(let Ue=1;Ue<G.length;Ue++)G[Ue-1].equals(G[Ue])&&(G.splice(Ue,1),Ue--);if(G.length===1)return G[0];if(Z){for(let Ue=0;Ue<G.length;Ue++)for(let Ve=Ue+1;Ve<G.length;Ve++)V(G[Ue],G[Ve])&&(G.splice(Ve,1),Ve--);if(G.length===1)return G[0]}return new Se(G,w)}}serialize(){return this.expr.map(y=>y.serialize()).join(" || ")}keys(){const y=[];for(let w of this.expr)y.push(...w.keys());return y}negate(){if(!this.negated){let y=[];for(let w of this.expr)y.push(w.negate());for(;y.length>1;){const w=y.shift(),Z=y.shift(),G=[];for(const Ue of ue(w))for(const Ve of ue(Z))G.push(de.create([Ue,Ve],null));const Pe=y.length===0;y.unshift(Se.create(G,null,Pe))}this.negated=y[0]}return this.negated}}class Ae extends S{constructor(y,w,Z){super(y,null),this._defaultValue=w,typeof Z=="object"?Ae._info.push(Object.assign(Object.assign({},Z),{key:y})):Z!==!0&&Ae._info.push({key:y,description:Z,type:w!=null?typeof w:void 0})}static all(){return Ae._info.values()}bindTo(y){return y.createKey(this.key,this._defaultValue)}getValue(y){return y.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(y){return b.create(this.key,y)}}Ae._info=[];const Me=(0,xe.yh)("contextKeyService"),ee="setContext";function F(te,y){return te<y?-1:te>y?1:0}function Y(te,y,w,Z){return te<w?-1:te>w?1:y<Z?-1:y>Z?1:0}function V(te,y){if(y.type===6&&te.type!==9&&te.type!==6){for(const G of y.expr)if(te.equals(G))return!0}const w=te.negate(),Z=ue(w).concat(ue(y));Z.sort(o);for(let G=0;G<Z.length;G++){const Ue=Z[G].negate();for(let Ve=G+1;Ve<Z.length;Ve++){const Xe=Z[Ve];if(Ue.equals(Xe))return!0}}return!1}function ue(te){return te.type===9?te.expr:[te]}},16925:function(nr,ot,x){"use strict";x.d(ot,{I8:function(){return v},TG:function(){return q},jt:function(){return O},yh:function(){return pe}});var v;(function(p){p.serviceIds=new Map,p.DI_TARGET="$di$target",p.DI_DEPENDENCIES="$di$dependencies";function ce(oe){return oe[p.DI_DEPENDENCIES]||[]}p.getServiceDependencies=ce})(v||(v={}));const q=pe("instantiationService");function xe(p,ce,oe,o){ce[v.DI_TARGET]===ce?ce[v.DI_DEPENDENCIES].push({id:p,index:oe,optional:o}):(ce[v.DI_DEPENDENCIES]=[{id:p,index:oe,optional:o}],ce[v.DI_TARGET]=ce)}function pe(p){if(v.serviceIds.has(p))return v.serviceIds.get(p);const ce=function(oe,o,ne){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");xe(ce,oe,ne,!1)};return ce.toString=()=>p,v.serviceIds.set(p,ce),ce}function O(p){return function(ce,oe,o){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");xe(p,ce,o,!0)}}},44650:function(nr,ot,x){"use strict";x.d(ot,{B:function(){return pe}});var v=x(76068),q=x(72999);class xe{constructor(){this.data=new Map}add(p,ce){v.ok(q.HD(p)),v.ok(q.Kn(ce)),v.ok(!this.data.has(p),"There is already an extension with this id"),this.data.set(p,ce)}as(p){return this.data.get(p)||null}}const pe=new xe},66213:function(nr,ot,x){"use strict";x.d(ot,{e:function(){return v}});var v;(function(q){q.DARK="dark",q.LIGHT="light",q.HIGH_CONTRAST="hc"})(v||(v={}))},49055:function(nr,ot,x){"use strict";x.d(ot,{EN:function(){return o},IP:function(){return S},Ic:function(){return I},XE:function(){return ce},bB:function(){return X},kS:function(){return ne},m6:function(){return N}});var v=x(52615),q=x(4348),xe=x(69323),pe=x(16925),O=x(44650),p=x(66213);const ce=(0,pe.yh)("themeService");var oe;(function(ie){function P(B){return B&&typeof B=="object"&&typeof B.id=="string"}ie.isThemeColor=P})(oe||(oe={}));function o(ie){return{id:ie}}var ne;(function(ie){function P(J){return J&&typeof J=="object"&&typeof J.id=="string"&&(typeof J.color=="undefined"||oe.isThemeColor(J.color))}ie.isThemeIcon=P;const B=new RegExp(`^\\$\\((${v.dT.iconNameExpression}(?:${v.dT.iconModifierExpression})?)\\)$`);function H(J){const Q=B.exec(J);if(!Q)return;let[,de]=Q;return{id:de}}ie.fromString=H;function le(J,Q){let de=J.id;const Se=de.lastIndexOf("~");return Se!==-1&&(de=de.substring(0,Se)),Q&&(de=`${de}~${Q}`),{id:de}}ie.modify=le;function k(J,Q){var de,Se;return J.id===Q.id&&((de=J.color)===null||de===void 0?void 0:de.id)===((Se=Q.color)===null||Se===void 0?void 0:Se.id)}ie.isEqual=k;function j(J,Q){return{id:J.id,color:Q?o(Q):void 0}}ie.asThemeIcon=j,ie.asClassNameArray=v.dT.asClassNameArray,ie.asClassName=v.dT.asClassName,ie.asCSSSelector=v.dT.asCSSSelector})(ne||(ne={}));function N(ie){switch(ie){case p.e.DARK:return"vs-dark";case p.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const S={ThemingContribution:"base.contributions.theming"};class b{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new q.Q5}onColorThemeChange(P){return this.themingParticipants.push(P),this.onThemingParticipantAddedEmitter.fire(P),(0,xe.OF)(()=>{const B=this.themingParticipants.indexOf(P);this.themingParticipants.splice(B,1)})}getThemingParticipants(){return this.themingParticipants}}let A=new b;O.B.add(S.ThemingContribution,A);function I(ie){return A.onColorThemeChange(ie)}class X extends xe.JT{constructor(P){super(),this.themeService=P,this.theme=P.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(B=>this.onThemeChange(B)))}onThemeChange(P){this.theme=P,this.updateStyles()}updateStyles(){}}},31561:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return J}});var v=x(72308),q=x(49618),xe=x(52487),pe=x(74416),O=x(35593),p=x(92310),ce=x.n(p),oe=x(8654),o=x(59301),ne=x(10228),N=x(16089),S=ne.Z.ESC,b=ne.Z.TAB;function A(Q){var de=Q.visible,Se=Q.triggerRef,Ae=Q.onVisibleChange,Me=Q.autoFocus,ee=Q.overlayRef,F=o.useRef(!1),Y=function(){if(de){var y,w;(y=Se.current)===null||y===void 0||(w=y.focus)===null||w===void 0||w.call(y),Ae==null||Ae(!1)}},V=function(){var y;return(y=ee.current)!==null&&y!==void 0&&y.focus?(ee.current.focus(),F.current=!0,!0):!1},ue=function(y){switch(y.keyCode){case S:Y();break;case b:{var w=!1;F.current||(w=V()),w?y.preventDefault():Y();break}}};o.useEffect(function(){return de?(window.addEventListener("keydown",ue),Me&&(0,N.Z)(V,3),function(){window.removeEventListener("keydown",ue),F.current=!1}):function(){F.current=!1}},[de])}var I=(0,o.forwardRef)(function(Q,de){var Se=Q.overlay,Ae=Q.arrow,Me=Q.prefixCls,ee=(0,o.useMemo)(function(){var Y;return typeof Se=="function"?Y=Se():Y=Se,Y},[Se]),F=(0,oe.sQ)(de,ee==null?void 0:ee.ref);return o.createElement(o.Fragment,null,Ae&&o.createElement("div",{className:"".concat(Me,"-arrow")}),o.cloneElement(ee,{ref:(0,oe.Yr)(ee)?F:void 0}))}),X=I,ie={adjustX:1,adjustY:1},P=[0,0],B={topLeft:{points:["bl","tl"],overflow:ie,offset:[0,-4],targetOffset:P},top:{points:["bc","tc"],overflow:ie,offset:[0,-4],targetOffset:P},topRight:{points:["br","tr"],overflow:ie,offset:[0,-4],targetOffset:P},bottomLeft:{points:["tl","bl"],overflow:ie,offset:[0,4],targetOffset:P},bottom:{points:["tc","bc"],overflow:ie,offset:[0,4],targetOffset:P},bottomRight:{points:["tr","br"],overflow:ie,offset:[0,4],targetOffset:P}},H=B,le=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function k(Q,de){var Se,Ae=Q.arrow,Me=Ae===void 0?!1:Ae,ee=Q.prefixCls,F=ee===void 0?"rc-dropdown":ee,Y=Q.transitionName,V=Q.animation,ue=Q.align,te=Q.placement,y=te===void 0?"bottomLeft":te,w=Q.placements,Z=w===void 0?H:w,G=Q.getPopupContainer,Pe=Q.showAction,Ue=Q.hideAction,Ve=Q.overlayClassName,Xe=Q.overlayStyle,tt=Q.visible,at=Q.trigger,mt=at===void 0?["hover"]:at,Ut=Q.autoFocus,tr=Q.overlay,Mt=Q.children,jt=Q.onVisibleChange,Yt=(0,pe.Z)(Q,le),er=o.useState(),ge=(0,xe.Z)(er,2),fe=ge[0],U=ge[1],ye="visible"in Q?tt:fe,Re=o.useRef(null),M=o.useRef(null),se=o.useRef(null);o.useImperativeHandle(de,function(){return Re.current});var ve=function(Lt){U(Lt),jt==null||jt(Lt)};A({visible:ye,triggerRef:se,onVisibleChange:ve,autoFocus:Ut,overlayRef:M});var Ee=function(Lt){var Le=Q.onOverlayClick;U(!1),Le&&Le(Lt)},ke=function(){return o.createElement(X,{ref:M,overlay:tr,prefixCls:F,arrow:Me})},Fe=function(){return typeof tr=="function"?ke:ke()},qe=function(){var Lt=Q.minOverlayWidthMatchTrigger,Le=Q.alignPoint;return"minOverlayWidthMatchTrigger"in Q?Lt:!Le},gt=function(){var Lt=Q.openClassName;return Lt!==void 0?Lt:"".concat(F,"-open")},ht=o.cloneElement(Mt,{className:ce()((Se=Mt.props)===null||Se===void 0?void 0:Se.className,ye&&gt()),ref:(0,oe.Yr)(Mt)?(0,oe.sQ)(se,Mt.ref):void 0}),Qe=Ue;return!Qe&&mt.indexOf("contextMenu")!==-1&&(Qe=["click"]),o.createElement(O.Z,(0,v.Z)({builtinPlacements:Z},Yt,{prefixCls:F,ref:Re,popupClassName:ce()(Ve,(0,q.Z)({},"".concat(F,"-show-arrow"),Me)),popupStyle:Xe,action:mt,showAction:Pe,hideAction:Qe,popupPlacement:y,popupAlign:ue,popupTransitionName:Y,popupAnimation:V,popupVisible:ye,stretch:qe()?"minWidth":"",popup:Fe(),onPopupVisibleChange:ve,onPopupClick:Ee,getPopupContainer:G}),ht)}var j=o.forwardRef(k),J=j},93681:function(nr,ot,x){"use strict";x.r(ot),x.d(ot,{BaseInput:function(){return ne},default:function(){return B}});var v=x(72308),q=x(77321),xe=x(49618),pe=x(62853),O=x(92310),p=x.n(O),ce=x(59301),oe=x(5643),o=function(le){var k,j,J=le.inputElement,Q=le.prefixCls,de=le.prefix,Se=le.suffix,Ae=le.addonBefore,Me=le.addonAfter,ee=le.className,F=le.style,Y=le.disabled,V=le.readOnly,ue=le.focused,te=le.triggerFocus,y=le.allowClear,w=le.value,Z=le.handleReset,G=le.hidden,Pe=le.classes,Ue=le.classNames,Ve=le.dataAttrs,Xe=le.styles,tt=le.components,at=(tt==null?void 0:tt.affixWrapper)||"span",mt=(tt==null?void 0:tt.groupWrapper)||"span",Ut=(tt==null?void 0:tt.wrapper)||"span",tr=(tt==null?void 0:tt.groupAddon)||"span",Mt=(0,ce.useRef)(null),jt=function(ke){var Fe;(Fe=Mt.current)!==null&&Fe!==void 0&&Fe.contains(ke.target)&&(te==null||te())},Yt=function(){var ke;if(!y)return null;var Fe=!Y&&!V&&w,qe="".concat(Q,"-clear-icon"),gt=(0,pe.Z)(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"\u2716";return ce.createElement("span",{onClick:Z,onMouseDown:function(Qe){return Qe.preventDefault()},className:p()(qe,(ke={},(0,xe.Z)(ke,"".concat(qe,"-hidden"),!Fe),(0,xe.Z)(ke,"".concat(qe,"-has-suffix"),!!Se),ke)),role:"button",tabIndex:-1},gt)},er=(0,ce.cloneElement)(J,{value:w,hidden:G,className:p()((k=J.props)===null||k===void 0?void 0:k.className,!(0,oe.X3)(le)&&!(0,oe.He)(le)&&ee)||null,style:(0,q.Z)((0,q.Z)({},(j=J.props)===null||j===void 0?void 0:j.style),!(0,oe.X3)(le)&&!(0,oe.He)(le)?F:{})});if((0,oe.X3)(le)){var ge,fe="".concat(Q,"-affix-wrapper"),U=p()(fe,(ge={},(0,xe.Z)(ge,"".concat(fe,"-disabled"),Y),(0,xe.Z)(ge,"".concat(fe,"-focused"),ue),(0,xe.Z)(ge,"".concat(fe,"-readonly"),V),(0,xe.Z)(ge,"".concat(fe,"-input-with-clear-btn"),Se&&y&&w),ge),!(0,oe.He)(le)&&ee,Pe==null?void 0:Pe.affixWrapper,Ue==null?void 0:Ue.affixWrapper),ye=(Se||y)&&ce.createElement("span",{className:p()("".concat(Q,"-suffix"),Ue==null?void 0:Ue.suffix),style:Xe==null?void 0:Xe.suffix},Yt(),Se);er=ce.createElement(at,(0,v.Z)({className:U,style:(0,q.Z)((0,q.Z)({},(0,oe.He)(le)?void 0:F),Xe==null?void 0:Xe.affixWrapper),hidden:!(0,oe.He)(le)&&G,onClick:jt},Ve==null?void 0:Ve.affixWrapper,{ref:Mt}),de&&ce.createElement("span",{className:p()("".concat(Q,"-prefix"),Ue==null?void 0:Ue.prefix),style:Xe==null?void 0:Xe.prefix},de),(0,ce.cloneElement)(J,{value:w,hidden:null}),ye)}if((0,oe.He)(le)){var Re="".concat(Q,"-group"),M="".concat(Re,"-addon"),se=p()("".concat(Q,"-wrapper"),Re,Pe==null?void 0:Pe.wrapper),ve=p()("".concat(Q,"-group-wrapper"),ee,Pe==null?void 0:Pe.group);return ce.createElement(mt,{className:ve,style:F,hidden:G},ce.createElement(Ut,{className:se},Ae&&ce.createElement(tr,{className:M},Ae),(0,ce.cloneElement)(er,{hidden:null}),Me&&ce.createElement(tr,{className:M},Me)))}return er},ne=o,N=x(80702),S=x(52487),b=x(74416),A=x(18929),I=x(2738),X=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],ie=(0,ce.forwardRef)(function(H,le){var k=H.autoComplete,j=H.onChange,J=H.onFocus,Q=H.onBlur,de=H.onPressEnter,Se=H.onKeyDown,Ae=H.prefixCls,Me=Ae===void 0?"rc-input":Ae,ee=H.disabled,F=H.htmlSize,Y=H.className,V=H.maxLength,ue=H.suffix,te=H.showCount,y=H.type,w=y===void 0?"text":y,Z=H.classes,G=H.classNames,Pe=H.styles,Ue=(0,b.Z)(H,X),Ve=(0,A.Z)(H.defaultValue,{value:H.value}),Xe=(0,S.Z)(Ve,2),tt=Xe[0],at=Xe[1],mt=(0,ce.useState)(!1),Ut=(0,S.Z)(mt,2),tr=Ut[0],Mt=Ut[1],jt=(0,ce.useRef)(null),Yt=function(ve){jt.current&&(0,oe.nH)(jt.current,ve)};(0,ce.useImperativeHandle)(le,function(){return{focus:Yt,blur:function(){var ve;(ve=jt.current)===null||ve===void 0||ve.blur()},setSelectionRange:function(ve,Ee,ke){var Fe;(Fe=jt.current)===null||Fe===void 0||Fe.setSelectionRange(ve,Ee,ke)},select:function(){var ve;(ve=jt.current)===null||ve===void 0||ve.select()},input:jt.current}}),(0,ce.useEffect)(function(){Mt(function(se){return se&&ee?!1:se})},[ee]);var er=function(ve){H.value===void 0&&at(ve.target.value),jt.current&&(0,oe.rJ)(jt.current,ve,j)},ge=function(ve){de&&ve.key==="Enter"&&de(ve),Se==null||Se(ve)},fe=function(ve){Mt(!0),J==null||J(ve)},U=function(ve){Mt(!1),Q==null||Q(ve)},ye=function(ve){at(""),Yt(),jt.current&&(0,oe.rJ)(jt.current,ve,j)},Re=function(){var ve=(0,I.Z)(H,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return ce.createElement("input",(0,v.Z)({autoComplete:k},ve,{onChange:er,onFocus:fe,onBlur:U,onKeyDown:ge,className:p()(Me,(0,xe.Z)({},"".concat(Me,"-disabled"),ee),G==null?void 0:G.input),style:Pe==null?void 0:Pe.input,ref:jt,size:F,type:w}))},M=function(){var ve=Number(V)>0;if(ue||te){var Ee=(0,oe.D7)(tt),ke=(0,N.Z)(Ee).length,Fe=(0,pe.Z)(te)==="object"?te.formatter({value:Ee,count:ke,maxLength:V}):"".concat(ke).concat(ve?" / ".concat(V):"");return ce.createElement(ce.Fragment,null,!!te&&ce.createElement("span",{className:p()("".concat(Me,"-show-count-suffix"),(0,xe.Z)({},"".concat(Me,"-show-count-has-suffix"),!!ue),G==null?void 0:G.count),style:(0,q.Z)({},Pe==null?void 0:Pe.count)},Fe),ue)}return null};return ce.createElement(ne,(0,v.Z)({},Ue,{prefixCls:Me,className:Y,inputElement:Re(),handleReset:ye,value:(0,oe.D7)(tt),focused:tr,triggerFocus:Yt,suffix:M(),disabled:ee,classes:Z,classNames:G,styles:Pe}))}),P=ie,B=P},5643:function(nr,ot,x){"use strict";x.d(ot,{D7:function(){return O},He:function(){return v},X3:function(){return q},nH:function(){return pe},rJ:function(){return xe}});function v(p){return!!(p.addonBefore||p.addonAfter)}function q(p){return!!(p.prefix||p.suffix||p.allowClear)}function xe(p,ce,oe,o){if(oe){var ne=ce;if(ce.type==="click"){var N=p.cloneNode(!0);ne=Object.create(ce,{target:{value:N},currentTarget:{value:N}}),N.value="",oe(ne);return}if(o!==void 0){ne=Object.create(ce,{target:{value:p},currentTarget:{value:p}}),p.value=o,oe(ne);return}oe(ne)}}function pe(p,ce){if(p){p.focus(ce);var oe=ce||{},o=oe.cursor;if(o){var ne=p.value.length;switch(o){case"start":p.setSelectionRange(0,0);break;case"end":p.setSelectionRange(ne,ne);break;default:p.setSelectionRange(0,ne)}}}}function O(p){return typeof p=="undefined"||p===null?"":String(p)}},15285:function(nr,ot,x){"use strict";x.d(ot,{iz:function(){return xr},ck:function(){return Ze},BW:function(){return br},sN:function(){return Ze},Wd:function(){return Vt},ZP:function(){return yt},Xl:function(){return Se}});var v=x(72308),q=x(49618),xe=x(77321),pe=x(80702),O=x(52487),p=x(74416),ce=x(92310),oe=x.n(ce),o=x(11780),ne=x(18929),N=x(13697),S=x(48736),b=x(59301),A=x(4676),I=b.createContext(null);function X(Te,Ge){return Te===void 0?null:"".concat(Te,"-").concat(Ge)}function ie(Te){var Ge=b.useContext(I);return X(Ge,Te)}var P=x(80547),B=["children","locked"],H=b.createContext(null);function le(Te,Ge){var rt=(0,xe.Z)({},Te);return Object.keys(Ge).forEach(function(wt){var _t=Ge[wt];_t!==void 0&&(rt[wt]=_t)}),rt}function k(Te){var Ge=Te.children,rt=Te.locked,wt=(0,p.Z)(Te,B),_t=b.useContext(H),Wt=(0,P.Z)(function(){return le(_t,wt)},[_t,wt],function(Dt,ir){return!rt&&(Dt[0]!==ir[0]||!(0,N.Z)(Dt[1],ir[1],!0))});return b.createElement(H.Provider,{value:Wt},Ge)}var j=[],J=b.createContext(null);function Q(){return b.useContext(J)}var de=b.createContext(j);function Se(Te){var Ge=b.useContext(de);return b.useMemo(function(){return Te!==void 0?[].concat((0,pe.Z)(Ge),[Te]):Ge},[Ge,Te])}var Ae=b.createContext(null),Me=b.createContext({}),ee=Me,F=x(29194);function Y(Te){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,F.Z)(Te)){var rt=Te.nodeName.toLowerCase(),wt=["input","select","textarea","button"].includes(rt)||Te.isContentEditable||rt==="a"&&!!Te.getAttribute("href"),_t=Te.getAttribute("tabindex"),Wt=Number(_t),Dt=null;return _t&&!Number.isNaN(Wt)?Dt=Wt:wt&&Dt===null&&(Dt=0),wt&&Te.disabled&&(Dt=null),Dt!==null&&(Dt>=0||Ge&&Dt<0)}return!1}function V(Te){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,rt=(0,pe.Z)(Te.querySelectorAll("*")).filter(function(wt){return Y(wt,Ge)});return Y(Te,Ge)&&rt.unshift(Te),rt}var ue=null;function te(){ue=document.activeElement}function y(){ue=null}function w(){if(ue)try{ue.focus()}catch(Te){}}function Z(Te,Ge){if(Ge.keyCode===9){var rt=V(Te),wt=rt[Ge.shiftKey?0:rt.length-1],_t=wt===document.activeElement||Te===document.activeElement;if(_t){var Wt=rt[Ge.shiftKey?rt.length-1:0];Wt.focus(),Ge.preventDefault()}}}var G=x(10228),Pe=x(16089),Ue=G.Z.LEFT,Ve=G.Z.RIGHT,Xe=G.Z.UP,tt=G.Z.DOWN,at=G.Z.ENTER,mt=G.Z.ESC,Ut=G.Z.HOME,tr=G.Z.END,Mt=[Xe,tt,Ue,Ve];function jt(Te,Ge,rt,wt){var _t,Wt,Dt,ir,lr="prev",dr="next",Sr="children",Tr="parent";if(Te==="inline"&&wt===at)return{inlineTrigger:!0};var kr=(_t={},(0,q.Z)(_t,Xe,lr),(0,q.Z)(_t,tt,dr),_t),mr=(Wt={},(0,q.Z)(Wt,Ue,rt?dr:lr),(0,q.Z)(Wt,Ve,rt?lr:dr),(0,q.Z)(Wt,tt,Sr),(0,q.Z)(Wt,at,Sr),Wt),ur=(Dt={},(0,q.Z)(Dt,Xe,lr),(0,q.Z)(Dt,tt,dr),(0,q.Z)(Dt,at,Sr),(0,q.Z)(Dt,mt,Tr),(0,q.Z)(Dt,Ue,rt?Sr:Tr),(0,q.Z)(Dt,Ve,rt?Tr:Sr),Dt),Gr={inline:kr,horizontal:mr,vertical:ur,inlineSub:kr,horizontalSub:ur,verticalSub:ur},$r=(ir=Gr["".concat(Te).concat(Ge?"":"Sub")])===null||ir===void 0?void 0:ir[wt];switch($r){case lr:return{offset:-1,sibling:!0};case dr:return{offset:1,sibling:!0};case Tr:return{offset:-1,sibling:!1};case Sr:return{offset:1,sibling:!1};default:return null}}function Yt(Te){for(var Ge=Te;Ge;){if(Ge.getAttribute("data-menu-list"))return Ge;Ge=Ge.parentElement}return null}function er(Te,Ge){for(var rt=Te||document.activeElement;rt;){if(Ge.has(rt))return rt;rt=rt.parentElement}return null}function ge(Te,Ge){var rt=V(Te,!0);return rt.filter(function(wt){return Ge.has(wt)})}function fe(Te,Ge,rt){var wt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Te)return null;var _t=ge(Te,Ge),Wt=_t.length,Dt=_t.findIndex(function(ir){return rt===ir});return wt<0?Dt===-1?Dt=Wt-1:Dt-=1:wt>0&&(Dt+=1),Dt=(Dt+Wt)%Wt,_t[Dt]}var U=function(Ge,rt){var wt=new Set,_t=new Map,Wt=new Map;return Ge.forEach(function(Dt){var ir=document.querySelector("[data-menu-id='".concat(X(rt,Dt),"']"));ir&&(wt.add(ir),Wt.set(ir,Dt),_t.set(Dt,ir))}),{elements:wt,key2element:_t,element2key:Wt}};function ye(Te,Ge,rt,wt,_t,Wt,Dt,ir,lr,dr){var Sr=b.useRef(),Tr=b.useRef();Tr.current=Ge;var kr=function(){Pe.Z.cancel(Sr.current)};return b.useEffect(function(){return function(){kr()}},[]),function(mr){var ur=mr.which;if([].concat(Mt,[at,mt,Ut,tr]).includes(ur)){var Gr=Wt(),$r=U(Gr,wt),Wr=$r,Rr=Wr.elements,Dr=Wr.key2element,Pr=Wr.element2key,jr=Dr.get(Ge),Qr=er(jr,Rr),ln=Pr.get(Qr),Yr=jt(Te,Dt(ln,!0).length===1,rt,ur);if(!Yr&&ur!==Ut&&ur!==tr)return;(Mt.includes(ur)||[Ut,tr].includes(ur))&&mr.preventDefault();var Fr=function(Ar){if(Ar){var rn=Ar,nn=Ar.querySelector("a");nn!=null&&nn.getAttribute("href")&&(rn=nn);var sn=Pr.get(Ar);ir(sn),kr(),Sr.current=(0,Pe.Z)(function(){Tr.current===sn&&rn.focus()})}};if([Ut,tr].includes(ur)||Yr.sibling||!Qr){var dt;!Qr||Te==="inline"?dt=_t.current:dt=Yt(Qr);var Cr,Zr=ge(dt,Rr);ur===Ut?Cr=Zr[0]:ur===tr?Cr=Zr[Zr.length-1]:Cr=fe(dt,Rr,Qr,Yr.offset),Fr(Cr)}else if(Yr.inlineTrigger)lr(ln);else if(Yr.offset>0)lr(ln,!0),kr(),Sr.current=(0,Pe.Z)(function(){$r=U(Gr,wt);var Ir=Qr.getAttribute("aria-controls"),Ar=document.getElementById(Ir),rn=fe(Ar,$r.elements);Fr(rn)},5);else if(Yr.offset<0){var Br=Dt(ln,!0),fn=Br[Br.length-2],An=Dr.get(fn);lr(fn,!1),Fr(An)}}dr==null||dr(mr)}}function Re(Te){Promise.resolve().then(Te)}var M="__RC_UTIL_PATH_SPLIT__",se=function(Ge){return Ge.join(M)},ve=function(Ge){return Ge.split(M)},Ee="rc-menu-more";function ke(){var Te=b.useState({}),Ge=(0,O.Z)(Te,2),rt=Ge[1],wt=(0,b.useRef)(new Map),_t=(0,b.useRef)(new Map),Wt=b.useState([]),Dt=(0,O.Z)(Wt,2),ir=Dt[0],lr=Dt[1],dr=(0,b.useRef)(0),Sr=(0,b.useRef)(!1),Tr=function(){Sr.current||rt({})},kr=(0,b.useCallback)(function(Dr,Pr){var jr=se(Pr);_t.current.set(jr,Dr),wt.current.set(Dr,jr),dr.current+=1;var Qr=dr.current;Re(function(){Qr===dr.current&&Tr()})},[]),mr=(0,b.useCallback)(function(Dr,Pr){var jr=se(Pr);_t.current.delete(jr),wt.current.delete(Dr)},[]),ur=(0,b.useCallback)(function(Dr){lr(Dr)},[]),Gr=(0,b.useCallback)(function(Dr,Pr){var jr=wt.current.get(Dr)||"",Qr=ve(jr);return Pr&&ir.includes(Qr[0])&&Qr.unshift(Ee),Qr},[ir]),$r=(0,b.useCallback)(function(Dr,Pr){return Dr.some(function(jr){var Qr=Gr(jr,!0);return Qr.includes(Pr)})},[Gr]),Wr=function(){var Pr=(0,pe.Z)(wt.current.keys());return ir.length&&Pr.push(Ee),Pr},Rr=(0,b.useCallback)(function(Dr){var Pr="".concat(wt.current.get(Dr)).concat(M),jr=new Set;return(0,pe.Z)(_t.current.keys()).forEach(function(Qr){Qr.startsWith(Pr)&&jr.add(_t.current.get(Qr))}),jr},[]);return b.useEffect(function(){return function(){Sr.current=!0}},[]),{registerPath:kr,unregisterPath:mr,refreshOverflowKeys:ur,isSubPathKey:$r,getKeyPath:Gr,getKeys:Wr,getSubPathKeys:Rr}}function Fe(Te){var Ge=b.useRef(Te);Ge.current=Te;var rt=b.useCallback(function(){for(var wt,_t=arguments.length,Wt=new Array(_t),Dt=0;Dt<_t;Dt++)Wt[Dt]=arguments[Dt];return(wt=Ge.current)===null||wt===void 0?void 0:wt.call.apply(wt,[Ge].concat(Wt))},[]);return Te?rt:void 0}var qe=Math.random().toFixed(5).toString().slice(2),gt=0;function ht(Te){var Ge=(0,ne.Z)(Te,{value:Te}),rt=(0,O.Z)(Ge,2),wt=rt[0],_t=rt[1];return b.useEffect(function(){gt+=1;var Wt="".concat(qe,"-").concat(gt);_t("rc-menu-uuid-".concat(Wt))},[]),wt}var Qe=x(96949),Ft=x(55090),Lt=x(77205),Le=x(38793),Ke=x(2738),lt=x(8654);function vt(Te,Ge,rt,wt){var _t=b.useContext(H),Wt=_t.activeKey,Dt=_t.onActive,ir=_t.onInactive,lr={active:Wt===Te};return Ge||(lr.onMouseEnter=function(dr){rt==null||rt({key:Te,domEvent:dr}),Dt(Te)},lr.onMouseLeave=function(dr){wt==null||wt({key:Te,domEvent:dr}),ir(Te)}),lr}function Rt(Te){var Ge=b.useContext(H),rt=Ge.mode,wt=Ge.rtl,_t=Ge.inlineIndent;if(rt!=="inline")return null;var Wt=Te;return wt?{paddingRight:Wt*_t}:{paddingLeft:Wt*_t}}function Gt(Te){var Ge=Te.icon,rt=Te.props,wt=Te.children,_t;return Ge===null||Ge===!1?null:(typeof Ge=="function"?_t=b.createElement(Ge,(0,xe.Z)({},rt)):typeof Ge!="boolean"&&(_t=Ge),_t||wt||null)}var E=["item"];function T(Te){var Ge=Te.item,rt=(0,p.Z)(Te,E);return Object.defineProperty(rt,"item",{get:function(){return(0,S.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Ge}}),rt}var nt=["title","attribute","elementRef"],W=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],be=["active"],rr=function(Te){(0,Lt.Z)(rt,Te);var Ge=(0,Le.Z)(rt);function rt(){return(0,Qe.Z)(this,rt),Ge.apply(this,arguments)}return(0,Ft.Z)(rt,[{key:"render",value:function(){var _t=this.props,Wt=_t.title,Dt=_t.attribute,ir=_t.elementRef,lr=(0,p.Z)(_t,nt),dr=(0,Ke.Z)(lr,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,S.ZP)(!Dt,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),b.createElement(o.Z.Item,(0,v.Z)({},Dt,{title:typeof Wt=="string"?Wt:void 0},dr,{ref:ir}))}}]),rt}(b.Component),$e=b.forwardRef(function(Te,Ge){var rt,wt=Te.style,_t=Te.className,Wt=Te.eventKey,Dt=Te.warnKey,ir=Te.disabled,lr=Te.itemIcon,dr=Te.children,Sr=Te.role,Tr=Te.onMouseEnter,kr=Te.onMouseLeave,mr=Te.onClick,ur=Te.onKeyDown,Gr=Te.onFocus,$r=(0,p.Z)(Te,W),Wr=ie(Wt),Rr=b.useContext(H),Dr=Rr.prefixCls,Pr=Rr.onItemClick,jr=Rr.disabled,Qr=Rr.overflowDisabled,ln=Rr.itemIcon,Yr=Rr.selectedKeys,Fr=Rr.onActive,dt=b.useContext(ee),Cr=dt._internalRenderMenuItem,Zr="".concat(Dr,"-item"),Br=b.useRef(),fn=b.useRef(),An=jr||ir,Ir=(0,lt.x1)(Ge,fn),Ar=Se(Wt),rn=function(Rn){return{key:Wt,keyPath:(0,pe.Z)(Ar).reverse(),item:Br.current,domEvent:Rn}},nn=lr||ln,sn=vt(Wt,An,Tr,kr),In=sn.active,ai=(0,p.Z)(sn,be),Hn=Yr.includes(Wt),un=Rt(Ar.length),fr=function(Rn){if(!An){var Gn=rn(Rn);mr==null||mr(T(Gn)),Pr(Gn)}},pn=function(Rn){if(ur==null||ur(Rn),Rn.which===G.Z.ENTER){var Gn=rn(Rn);mr==null||mr(T(Gn)),Pr(Gn)}},hn=function(Rn){Fr(Wt),Gr==null||Gr(Rn)},Bn={};Te.role==="option"&&(Bn["aria-selected"]=Hn);var hi=b.createElement(rr,(0,v.Z)({ref:Br,elementRef:Ir,role:Sr===null?"none":Sr||"menuitem",tabIndex:ir?null:-1,"data-menu-id":Qr&&Wr?null:Wr},$r,ai,Bn,{component:"li","aria-disabled":ir,style:(0,xe.Z)((0,xe.Z)({},un),wt),className:oe()(Zr,(rt={},(0,q.Z)(rt,"".concat(Zr,"-active"),In),(0,q.Z)(rt,"".concat(Zr,"-selected"),Hn),(0,q.Z)(rt,"".concat(Zr,"-disabled"),An),rt),_t),onClick:fr,onKeyDown:pn,onFocus:hn}),dr,b.createElement(Gt,{props:(0,xe.Z)((0,xe.Z)({},Te),{},{isSelected:Hn}),icon:nn}));return Cr&&(hi=Cr(hi,Te,{selected:Hn})),hi});function je(Te,Ge){var rt=Te.eventKey,wt=Q(),_t=Se(rt);return b.useEffect(function(){if(wt)return wt.registerPath(rt,_t),function(){wt.unregisterPath(rt,_t)}},[_t]),wt?null:b.createElement($e,(0,v.Z)({},Te,{ref:Ge}))}var Ze=b.forwardRef(je),re=["className","children"],me=function(Ge,rt){var wt=Ge.className,_t=Ge.children,Wt=(0,p.Z)(Ge,re),Dt=b.useContext(H),ir=Dt.prefixCls,lr=Dt.mode,dr=Dt.rtl;return b.createElement("ul",(0,v.Z)({className:oe()(ir,dr&&"".concat(ir,"-rtl"),"".concat(ir,"-sub"),"".concat(ir,"-").concat(lr==="inline"?"inline":"vertical"),wt),role:"menu"},Wt,{"data-menu-list":!0,ref:rt}),_t)},we=b.forwardRef(me);we.displayName="SubMenuList";var ze=we,K=x(11592);function Bt(Te,Ge){return(0,K.Z)(Te).map(function(rt,wt){if(b.isValidElement(rt)){var _t,Wt,Dt=rt.key,ir=(_t=(Wt=rt.props)===null||Wt===void 0?void 0:Wt.eventKey)!==null&&_t!==void 0?_t:Dt,lr=ir==null;lr&&(ir="tmp_key-".concat([].concat((0,pe.Z)(Ge),[wt]).join("-")));var dr={key:ir,eventKey:ir};return b.cloneElement(rt,dr)}return rt})}var Ce=x(35593),qt={adjustX:1,adjustY:1},cr={topLeft:{points:["bl","tl"],overflow:qt},topRight:{points:["br","tr"],overflow:qt},bottomLeft:{points:["tl","bl"],overflow:qt},bottomRight:{points:["tr","br"],overflow:qt},leftTop:{points:["tr","tl"],overflow:qt},leftBottom:{points:["br","bl"],overflow:qt},rightTop:{points:["tl","tr"],overflow:qt},rightBottom:{points:["bl","br"],overflow:qt}},Pt={topLeft:{points:["bl","tl"],overflow:qt},topRight:{points:["br","tr"],overflow:qt},bottomLeft:{points:["tl","bl"],overflow:qt},bottomRight:{points:["tr","br"],overflow:qt},rightTop:{points:["tr","tl"],overflow:qt},rightBottom:{points:["br","bl"],overflow:qt},leftTop:{points:["tl","tr"],overflow:qt},leftBottom:{points:["bl","br"],overflow:qt}},Ot=null;function xt(Te,Ge,rt){if(Ge)return Ge;if(rt)return rt[Te]||rt.other}var Tt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function Ie(Te){var Ge=Te.prefixCls,rt=Te.visible,wt=Te.children,_t=Te.popup,Wt=Te.popupStyle,Dt=Te.popupClassName,ir=Te.popupOffset,lr=Te.disabled,dr=Te.mode,Sr=Te.onVisibleChange,Tr=b.useContext(H),kr=Tr.getPopupContainer,mr=Tr.rtl,ur=Tr.subMenuOpenDelay,Gr=Tr.subMenuCloseDelay,$r=Tr.builtinPlacements,Wr=Tr.triggerSubMenuAction,Rr=Tr.forceSubMenuRender,Dr=Tr.rootClassName,Pr=Tr.motion,jr=Tr.defaultMotions,Qr=b.useState(!1),ln=(0,O.Z)(Qr,2),Yr=ln[0],Fr=ln[1],dt=mr?(0,xe.Z)((0,xe.Z)({},Pt),$r):(0,xe.Z)((0,xe.Z)({},cr),$r),Cr=Tt[dr],Zr=xt(dr,Pr,jr),Br=b.useRef(Zr);dr!=="inline"&&(Br.current=Zr);var fn=(0,xe.Z)((0,xe.Z)({},Br.current),{},{leavedClassName:"".concat(Ge,"-hidden"),removeOnLeave:!1,motionAppear:!0}),An=b.useRef();return b.useEffect(function(){return An.current=(0,Pe.Z)(function(){Fr(rt)}),function(){Pe.Z.cancel(An.current)}},[rt]),b.createElement(Ce.Z,{prefixCls:Ge,popupClassName:oe()("".concat(Ge,"-popup"),(0,q.Z)({},"".concat(Ge,"-rtl"),mr),Dt,Dr),stretch:dr==="horizontal"?"minWidth":null,getPopupContainer:kr,builtinPlacements:dt,popupPlacement:Cr,popupVisible:Yr,popup:_t,popupStyle:Wt,popupAlign:ir&&{offset:ir},action:lr?[]:[Wr],mouseEnterDelay:ur,mouseLeaveDelay:Gr,onPopupVisibleChange:Sr,forceRender:Rr,popupMotion:fn,fresh:!0},wt)}var ut=x(77900);function ct(Te){var Ge=Te.id,rt=Te.open,wt=Te.keyPath,_t=Te.children,Wt="inline",Dt=b.useContext(H),ir=Dt.prefixCls,lr=Dt.forceSubMenuRender,dr=Dt.motion,Sr=Dt.defaultMotions,Tr=Dt.mode,kr=b.useRef(!1);kr.current=Tr===Wt;var mr=b.useState(!kr.current),ur=(0,O.Z)(mr,2),Gr=ur[0],$r=ur[1],Wr=kr.current?rt:!1;b.useEffect(function(){kr.current&&$r(!1)},[Tr]);var Rr=(0,xe.Z)({},xt(Wt,dr,Sr));wt.length>1&&(Rr.motionAppear=!1);var Dr=Rr.onVisibleChanged;return Rr.onVisibleChanged=function(Pr){return!kr.current&&!Pr&&$r(!0),Dr==null?void 0:Dr(Pr)},Gr?null:b.createElement(k,{mode:Wt,locked:!kr.current},b.createElement(ut.default,(0,v.Z)({visible:Wr},Rr,{forceRender:lr,removeOnLeave:!1,leavedClassName:"".concat(ir,"-hidden")}),function(Pr){var jr=Pr.className,Qr=Pr.style;return b.createElement(ze,{id:Ge,className:jr,style:Qr},_t)}))}var bt=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],et=["active"],Nt=function(Ge){var rt,wt=Ge.style,_t=Ge.className,Wt=Ge.title,Dt=Ge.eventKey,ir=Ge.warnKey,lr=Ge.disabled,dr=Ge.internalPopupClose,Sr=Ge.children,Tr=Ge.itemIcon,kr=Ge.expandIcon,mr=Ge.popupClassName,ur=Ge.popupOffset,Gr=Ge.popupStyle,$r=Ge.onClick,Wr=Ge.onMouseEnter,Rr=Ge.onMouseLeave,Dr=Ge.onTitleClick,Pr=Ge.onTitleMouseEnter,jr=Ge.onTitleMouseLeave,Qr=(0,p.Z)(Ge,bt),ln=ie(Dt),Yr=b.useContext(H),Fr=Yr.prefixCls,dt=Yr.mode,Cr=Yr.openKeys,Zr=Yr.disabled,Br=Yr.overflowDisabled,fn=Yr.activeKey,An=Yr.selectedKeys,Ir=Yr.itemIcon,Ar=Yr.expandIcon,rn=Yr.onItemClick,nn=Yr.onOpenChange,sn=Yr.onActive,In=b.useContext(ee),ai=In._internalRenderSubMenuItem,Hn=b.useContext(Ae),un=Hn.isSubPathKey,fr=Se(),pn="".concat(Fr,"-submenu"),hn=Zr||lr,Bn=b.useRef(),hi=b.useRef(),$n=Tr!=null?Tr:Ir,Rn=kr!=null?kr:Ar,Gn=Cr.includes(Dt),yn=!Br&&Gn,li=un(An,Dt),Nr=vt(Dt,hn,Pr,jr),ni=Nr.active,ti=(0,p.Z)(Nr,et),Qn=b.useState(!1),cn=(0,O.Z)(Qn,2),fi=cn[0],mi=cn[1],Xr=function(Vn){hn||mi(Vn)},Er=function(Vn){Xr(!0),Wr==null||Wr({key:Dt,domEvent:Vn})},bn=function(Vn){Xr(!1),Rr==null||Rr({key:Dt,domEvent:Vn})},en=b.useMemo(function(){return ni||(dt!=="inline"?fi||un([fn],Dt):!1)},[dt,ni,fn,fi,Dt,un]),Jt=Rt(fr.length),gn=function(Vn){hn||(Dr==null||Dr({key:Dt,domEvent:Vn}),dt==="inline"&&nn(Dt,!Gn))},Zn=Fe(function(ri){$r==null||$r(T(ri)),rn(ri)}),qn=function(Vn){dt!=="inline"&&nn(Dt,Vn)},En=function(){sn(Dt)},kn=ln&&"".concat(ln,"-popup"),mn=b.createElement("div",(0,v.Z)({role:"menuitem",style:Jt,className:"".concat(pn,"-title"),tabIndex:hn?null:-1,ref:Bn,title:typeof Wt=="string"?Wt:null,"data-menu-id":Br&&ln?null:ln,"aria-expanded":yn,"aria-haspopup":!0,"aria-controls":kn,"aria-disabled":hn,onClick:gn,onFocus:En},ti),Wt,b.createElement(Gt,{icon:dt!=="horizontal"?Rn:void 0,props:(0,xe.Z)((0,xe.Z)({},Ge),{},{isOpen:yn,isSubMenu:!0})},b.createElement("i",{className:"".concat(pn,"-arrow")}))),Nn=b.useRef(dt);if(dt!=="inline"&&fr.length>1?Nn.current="vertical":Nn.current=dt,!Br){var ui=Nn.current;mn=b.createElement(Ie,{mode:ui,prefixCls:pn,visible:!dr&&yn&&dt!=="inline",popupClassName:mr,popupOffset:ur,popupStyle:Gr,popup:b.createElement(k,{mode:ui==="horizontal"?"vertical":ui},b.createElement(ze,{id:kn,ref:hi},Sr)),disabled:hn,onVisibleChange:qn},mn)}var ci=b.createElement(o.Z.Item,(0,v.Z)({role:"none"},Qr,{component:"li",style:wt,className:oe()(pn,"".concat(pn,"-").concat(dt),_t,(rt={},(0,q.Z)(rt,"".concat(pn,"-open"),yn),(0,q.Z)(rt,"".concat(pn,"-active"),en),(0,q.Z)(rt,"".concat(pn,"-selected"),li),(0,q.Z)(rt,"".concat(pn,"-disabled"),hn),rt)),onMouseEnter:Er,onMouseLeave:bn}),mn,!Br&&b.createElement(ct,{id:kn,open:yn,keyPath:fr},Sr));return ai&&(ci=ai(ci,Ge,{selected:li,active:en,open:yn,disabled:hn})),b.createElement(k,{onItemClick:Zn,mode:dt==="horizontal"?"vertical":dt,itemIcon:$n,expandIcon:Rn},ci)};function Vt(Te){var Ge=Te.eventKey,rt=Te.children,wt=Se(Ge),_t=Bt(rt,wt),Wt=Q();b.useEffect(function(){if(Wt)return Wt.registerPath(Ge,wt),function(){Wt.unregisterPath(Ge,wt)}},[wt]);var Dt;return Wt?Dt=_t:Dt=b.createElement(Nt,Te,_t),b.createElement(de.Provider,{value:wt},Dt)}var Zt=x(62853),vr=["className","title","eventKey","children"],yr=["children"],or=function(Ge){var rt=Ge.className,wt=Ge.title,_t=Ge.eventKey,Wt=Ge.children,Dt=(0,p.Z)(Ge,vr),ir=b.useContext(H),lr=ir.prefixCls,dr="".concat(lr,"-item-group");return b.createElement("li",(0,v.Z)({role:"presentation"},Dt,{onClick:function(Tr){return Tr.stopPropagation()},className:oe()(dr,rt)}),b.createElement("div",{role:"presentation",className:"".concat(dr,"-title"),title:typeof wt=="string"?wt:void 0},wt),b.createElement("ul",{role:"group",className:"".concat(dr,"-list")},Wt))};function br(Te){var Ge=Te.children,rt=(0,p.Z)(Te,yr),wt=Se(rt.eventKey),_t=Bt(Ge,wt),Wt=Q();return Wt?_t:b.createElement(or,(0,Ke.Z)(rt,["warnKey"]),_t)}function xr(Te){var Ge=Te.className,rt=Te.style,wt=b.useContext(H),_t=wt.prefixCls,Wt=Q();return Wt?null:b.createElement("li",{role:"separator",className:oe()("".concat(_t,"-item-divider"),Ge),style:rt})}var zr=["label","children","key","type"];function sr(Te){return(Te||[]).map(function(Ge,rt){if(Ge&&(0,Zt.Z)(Ge)==="object"){var wt=Ge,_t=wt.label,Wt=wt.children,Dt=wt.key,ir=wt.type,lr=(0,p.Z)(wt,zr),dr=Dt!=null?Dt:"tmp-".concat(rt);return Wt||ir==="group"?ir==="group"?b.createElement(br,(0,v.Z)({key:dr},lr,{title:_t}),sr(Wt)):b.createElement(Vt,(0,v.Z)({key:dr},lr,{title:_t}),sr(Wt)):ir==="divider"?b.createElement(xr,(0,v.Z)({key:dr},lr)):b.createElement(Ze,(0,v.Z)({key:dr},lr),_t)}return null}).filter(function(Ge){return Ge})}function Be(Te,Ge,rt){var wt=Te;return Ge&&(wt=sr(Ge)),Bt(wt,rt)}var pt=["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"],it=[],st=b.forwardRef(function(Te,Ge){var rt,wt,_t=Te,Wt=_t.prefixCls,Dt=Wt===void 0?"rc-menu":Wt,ir=_t.rootClassName,lr=_t.style,dr=_t.className,Sr=_t.tabIndex,Tr=Sr===void 0?0:Sr,kr=_t.items,mr=_t.children,ur=_t.direction,Gr=_t.id,$r=_t.mode,Wr=$r===void 0?"vertical":$r,Rr=_t.inlineCollapsed,Dr=_t.disabled,Pr=_t.disabledOverflow,jr=_t.subMenuOpenDelay,Qr=jr===void 0?.1:jr,ln=_t.subMenuCloseDelay,Yr=ln===void 0?.1:ln,Fr=_t.forceSubMenuRender,dt=_t.defaultOpenKeys,Cr=_t.openKeys,Zr=_t.activeKey,Br=_t.defaultActiveFirst,fn=_t.selectable,An=fn===void 0?!0:fn,Ir=_t.multiple,Ar=Ir===void 0?!1:Ir,rn=_t.defaultSelectedKeys,nn=_t.selectedKeys,sn=_t.onSelect,In=_t.onDeselect,ai=_t.inlineIndent,Hn=ai===void 0?24:ai,un=_t.motion,fr=_t.defaultMotions,pn=_t.triggerSubMenuAction,hn=pn===void 0?"hover":pn,Bn=_t.builtinPlacements,hi=_t.itemIcon,$n=_t.expandIcon,Rn=_t.overflowedIndicator,Gn=Rn===void 0?"...":Rn,yn=_t.overflowedIndicatorPopupClassName,li=_t.getPopupContainer,Nr=_t.onClick,ni=_t.onOpenChange,ti=_t.onKeyDown,Qn=_t.openAnimation,cn=_t.openTransitionName,fi=_t._internalRenderMenuItem,mi=_t._internalRenderSubMenuItem,Xr=(0,p.Z)(_t,pt),Er=b.useMemo(function(){return Be(mr,kr,it)},[mr,kr]),bn=b.useState(!1),en=(0,O.Z)(bn,2),Jt=en[0],gn=en[1],Zn=b.useRef(),qn=ht(Gr),En=ur==="rtl",kn=(0,ne.Z)(dt,{value:Cr,postState:function(Tn){return Tn||it}}),mn=(0,O.Z)(kn,2),Nn=mn[0],ui=mn[1],ci=function(Tn){var Sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function oi(){ui(Tn),ni==null||ni(Tn)}Sn?(0,A.flushSync)(oi):oi()},ri=b.useState(Nn),Vn=(0,O.Z)(ri,2),vn=Vn[0],Jn=Vn[1],Li=b.useRef(!1),Oi=b.useMemo(function(){return(Wr==="inline"||Wr==="vertical")&&Rr?["vertical",Rr]:[Wr,!1]},[Wr,Rr]),Pi=(0,O.Z)(Oi,2),Ci=Pi[0],Lr=Pi[1],Ur=Ci==="inline",Pn=b.useState(Ci),zn=(0,O.Z)(Pn,2),wn=zn[0],gi=zn[1],Di=b.useState(Lr),Gi=(0,O.Z)(Di,2),xi=Gi[0],ss=Gi[1];b.useEffect(function(){gi(Ci),ss(Lr),Li.current&&(Ur?ui(vn):ci(it))},[Ci,Lr]);var js=b.useState(0),as=(0,O.Z)(js,2),os=as[0],Ei=as[1],wi=os>=Er.length-1||wn!=="horizontal"||Pr;b.useEffect(function(){Ur&&Jn(Nn)},[Nn]),b.useEffect(function(){return Li.current=!0,function(){Li.current=!1}},[]);var Si=ke(),ls=Si.registerPath,Qi=Si.unregisterPath,us=Si.refreshOverflowKeys,qi=Si.isSubPathKey,oa=Si.getKeyPath,Ji=Si.getKeys,Hs=Si.getSubPathKeys,Cs=b.useMemo(function(){return{registerPath:ls,unregisterPath:Qi}},[ls,Qi]),vi=b.useMemo(function(){return{isSubPathKey:qi}},[qi]);b.useEffect(function(){us(wi?it:Er.slice(os+1).map(function(Cn){return Cn.key}))},[os,wi]);var Gs=(0,ne.Z)(Zr||Br&&((rt=Er[0])===null||rt===void 0?void 0:rt.key),{value:Zr}),cs=(0,O.Z)(Gs,2),Wi=cs[0],ds=cs[1],la=Fe(function(Cn){ds(Cn)}),Ws=Fe(function(){ds(void 0)});(0,b.useImperativeHandle)(Ge,function(){return{list:Zn.current,focus:function(Tn){var Sn,oi=Ji(),Yn=U(oi,qn),Qt=Yn.elements,es=Yn.key2element,Rs=Yn.element2key,Ls=ge(Zn.current,Qt),ks=Wi!=null?Wi:Ls[0]?Rs.get(Ls[0]):(Sn=Er.find(function(Zs){return!Zs.props.disabled}))===null||Sn===void 0?void 0:Sn.key,Fi=es.get(ks);if(ks&&Fi){var Vi;Fi==null||(Vi=Fi.focus)===null||Vi===void 0||Vi.call(Fi,Tn)}}}});var Ks=(0,ne.Z)(rn||[],{value:nn,postState:function(Tn){return Array.isArray(Tn)?Tn:Tn==null?it:[Tn]}}),Ds=(0,O.Z)(Ks,2),_i=Ds[0],hs=Ds[1],Vs=function(Tn){if(An){var Sn=Tn.key,oi=_i.includes(Sn),Yn;Ar?oi?Yn=_i.filter(function(es){return es!==Sn}):Yn=[].concat((0,pe.Z)(_i),[Sn]):Yn=[Sn],hs(Yn);var Qt=(0,xe.Z)((0,xe.Z)({},Tn),{},{selectedKeys:Yn});oi?In==null||In(Qt):sn==null||sn(Qt)}!Ar&&Nn.length&&wn!=="inline"&&ci(it)},fs=Fe(function(Cn){Nr==null||Nr(T(Cn)),Vs(Cn)}),ms=Fe(function(Cn,Tn){var Sn=Nn.filter(function(Yn){return Yn!==Cn});if(Tn)Sn.push(Cn);else if(wn!=="inline"){var oi=Hs(Cn);Sn=Sn.filter(function(Yn){return!oi.has(Yn)})}(0,N.Z)(Nn,Sn,!0)||ci(Sn,!0)}),ps=function(Tn,Sn){var oi=Sn!=null?Sn:!Nn.includes(Tn);ms(Tn,oi)},gs=ye(wn,Wi,En,qn,Zn,Ji,oa,ds,ps,ti);b.useEffect(function(){gn(!0)},[]);var Ki=b.useMemo(function(){return{_internalRenderMenuItem:fi,_internalRenderSubMenuItem:mi}},[fi,mi]),Mi=wn!=="horizontal"||Pr?Er:Er.map(function(Cn,Tn){return b.createElement(k,{key:Cn.key,overflowDisabled:Tn>os},Cn)}),Is=b.createElement(o.Z,(0,v.Z)({id:Gr,ref:Zn,prefixCls:"".concat(Dt,"-overflow"),component:"ul",itemComponent:Ze,className:oe()(Dt,"".concat(Dt,"-root"),"".concat(Dt,"-").concat(wn),dr,(wt={},(0,q.Z)(wt,"".concat(Dt,"-inline-collapsed"),xi),(0,q.Z)(wt,"".concat(Dt,"-rtl"),En),wt),ir),dir:ur,style:lr,role:"menu",tabIndex:Tr,data:Mi,renderRawItem:function(Tn){return Tn},renderRawRest:function(Tn){var Sn=Tn.length,oi=Sn?Er.slice(-Sn):null;return b.createElement(Vt,{eventKey:Ee,title:Gn,disabled:wi,internalPopupClose:Sn===0,popupClassName:yn},oi)},maxCount:wn!=="horizontal"||Pr?o.Z.INVALIDATE:o.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Tn){Ei(Tn)},onKeyDown:gs},Xr));return b.createElement(ee.Provider,{value:Ki},b.createElement(I.Provider,{value:qn},b.createElement(k,{prefixCls:Dt,rootClassName:ir,mode:wn,openKeys:Nn,rtl:En,disabled:Dr,motion:Jt?un:null,defaultMotions:Jt?fr:null,activeKey:Wi,onActive:la,onInactive:Ws,selectedKeys:_i,inlineIndent:Hn,subMenuOpenDelay:Qr,subMenuCloseDelay:Yr,forceSubMenuRender:Fr,builtinPlacements:Bn,triggerSubMenuAction:hn,getPopupContainer:li,itemIcon:hi,expandIcon:$n,onItemClick:fs,onOpenChange:ms},b.createElement(Ae.Provider,{value:vi},Is),b.createElement("div",{style:{display:"none"},"aria-hidden":!0},b.createElement(J.Provider,{value:Cs},Er)))))}),zt=st,kt=zt;kt.Item=Ze,kt.SubMenu=Vt,kt.ItemGroup=br,kt.Divider=xr;var yt=kt},11780:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return te}});var v=x(72308),q=x(77321),xe=x(52487),pe=x(74416),O=x(59301),p=x(92310),ce=x.n(p),oe=x(29301),o=x(34280),ne=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],N=void 0;function S(y,w){var Z=y.prefixCls,G=y.invalidate,Pe=y.item,Ue=y.renderItem,Ve=y.responsive,Xe=y.responsiveDisabled,tt=y.registerSize,at=y.itemKey,mt=y.className,Ut=y.style,tr=y.children,Mt=y.display,jt=y.order,Yt=y.component,er=Yt===void 0?"div":Yt,ge=(0,pe.Z)(y,ne),fe=Ve&&!Mt;function U(ve){tt(at,ve)}O.useEffect(function(){return function(){U(null)}},[]);var ye=Ue&&Pe!==N?Ue(Pe,{index:jt}):tr,Re;G||(Re={opacity:fe?0:1,height:fe?0:N,overflowY:fe?"hidden":N,order:Ve?jt:N,pointerEvents:fe?"none":N,position:fe?"absolute":N});var M={};fe&&(M["aria-hidden"]=!0);var se=O.createElement(er,(0,v.Z)({className:ce()(!G&&Z,mt),style:(0,q.Z)((0,q.Z)({},Re),Ut)},M,ge,{ref:w}),ye);return Ve&&(se=O.createElement(oe.Z,{onResize:function(Ee){var ke=Ee.offsetWidth;U(ke)},disabled:Xe},se)),se}var b=O.forwardRef(S);b.displayName="Item";var A=b,I=x(6089),X=x(4676),ie=x(16089);function P(y){if(typeof MessageChannel=="undefined")(0,ie.Z)(y);else{var w=new MessageChannel;w.port1.onmessage=function(){return y()},w.port2.postMessage(void 0)}}function B(){var y=O.useRef(null),w=function(G){y.current||(y.current=[],P(function(){(0,X.unstable_batchedUpdates)(function(){y.current.forEach(function(Pe){Pe()}),y.current=null})})),y.current.push(G)};return w}function H(y,w){var Z=O.useState(w),G=(0,xe.Z)(Z,2),Pe=G[0],Ue=G[1],Ve=(0,I.Z)(function(Xe){y(function(){Ue(Xe)})});return[Pe,Ve]}var le=O.createContext(null),k=["component"],j=["className"],J=["className"],Q=function(w,Z){var G=O.useContext(le);if(!G){var Pe=w.component,Ue=Pe===void 0?"div":Pe,Ve=(0,pe.Z)(w,k);return O.createElement(Ue,(0,v.Z)({},Ve,{ref:Z}))}var Xe=G.className,tt=(0,pe.Z)(G,j),at=w.className,mt=(0,pe.Z)(w,J);return O.createElement(le.Provider,{value:null},O.createElement(A,(0,v.Z)({ref:Z,className:ce()(Xe,at)},tt,mt)))},de=O.forwardRef(Q);de.displayName="RawItem";var Se=de,Ae=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Me="responsive",ee="invalidate";function F(y){return"+ ".concat(y.length," ...")}function Y(y,w){var Z=y.prefixCls,G=Z===void 0?"rc-overflow":Z,Pe=y.data,Ue=Pe===void 0?[]:Pe,Ve=y.renderItem,Xe=y.renderRawItem,tt=y.itemKey,at=y.itemWidth,mt=at===void 0?10:at,Ut=y.ssr,tr=y.style,Mt=y.className,jt=y.maxCount,Yt=y.renderRest,er=y.renderRawRest,ge=y.suffix,fe=y.component,U=fe===void 0?"div":fe,ye=y.itemComponent,Re=y.onVisibleChange,M=(0,pe.Z)(y,Ae),se=Ut==="full",ve=B(),Ee=H(ve,null),ke=(0,xe.Z)(Ee,2),Fe=ke[0],qe=ke[1],gt=Fe||0,ht=H(ve,new Map),Qe=(0,xe.Z)(ht,2),Ft=Qe[0],Lt=Qe[1],Le=H(ve,0),Ke=(0,xe.Z)(Le,2),lt=Ke[0],vt=Ke[1],Rt=H(ve,0),Gt=(0,xe.Z)(Rt,2),E=Gt[0],T=Gt[1],nt=H(ve,0),W=(0,xe.Z)(nt,2),be=W[0],rr=W[1],$e=(0,O.useState)(null),je=(0,xe.Z)($e,2),Ze=je[0],re=je[1],me=(0,O.useState)(null),we=(0,xe.Z)(me,2),ze=we[0],K=we[1],Bt=O.useMemo(function(){return ze===null&&se?Number.MAX_SAFE_INTEGER:ze||0},[ze,Fe]),Ce=(0,O.useState)(!1),qt=(0,xe.Z)(Ce,2),cr=qt[0],Pt=qt[1],Ot="".concat(G,"-item"),xt=Math.max(lt,E),Tt=jt===Me,Ie=Ue.length&&Tt,ut=jt===ee,ct=Ie||typeof jt=="number"&&Ue.length>jt,bt=(0,O.useMemo)(function(){var yt=Ue;return Ie?Fe===null&&se?yt=Ue:yt=Ue.slice(0,Math.min(Ue.length,gt/mt)):typeof jt=="number"&&(yt=Ue.slice(0,jt)),yt},[Ue,mt,Fe,jt,Ie]),et=(0,O.useMemo)(function(){return Ie?Ue.slice(Bt+1):Ue.slice(bt.length)},[Ue,bt,Ie,Bt]),Nt=(0,O.useCallback)(function(yt,Te){var Ge;return typeof tt=="function"?tt(yt):(Ge=tt&&(yt==null?void 0:yt[tt]))!==null&&Ge!==void 0?Ge:Te},[tt]),Vt=(0,O.useCallback)(Ve||function(yt){return yt},[Ve]);function Zt(yt,Te,Ge){ze===yt&&(Te===void 0||Te===Ze)||(K(yt),Ge||(Pt(yt<Ue.length-1),Re==null||Re(yt)),Te!==void 0&&re(Te))}function vr(yt,Te){qe(Te.clientWidth)}function yr(yt,Te){Lt(function(Ge){var rt=new Map(Ge);return Te===null?rt.delete(yt):rt.set(yt,Te),rt})}function or(yt,Te){T(Te),vt(E)}function br(yt,Te){rr(Te)}function xr(yt){return Ft.get(Nt(bt[yt],yt))}(0,o.Z)(function(){if(gt&&typeof xt=="number"&&bt){var yt=be,Te=bt.length,Ge=Te-1;if(!Te){Zt(0,null);return}for(var rt=0;rt<Te;rt+=1){var wt=xr(rt);if(se&&(wt=wt||0),wt===void 0){Zt(rt-1,void 0,!0);break}if(yt+=wt,Ge===0&&yt<=gt||rt===Ge-1&&yt+xr(Ge)<=gt){Zt(Ge,null);break}else if(yt+xt>gt){Zt(rt-1,yt-wt-be+E);break}}ge&&xr(0)+be>gt&&re(null)}},[gt,Ft,E,be,Nt,bt]);var zr=cr&&!!et.length,sr={};Ze!==null&&Ie&&(sr={position:"absolute",left:Ze,top:0});var Be={prefixCls:Ot,responsive:Ie,component:ye,invalidate:ut},pt=Xe?function(yt,Te){var Ge=Nt(yt,Te);return O.createElement(le.Provider,{key:Ge,value:(0,q.Z)((0,q.Z)({},Be),{},{order:Te,item:yt,itemKey:Ge,registerSize:yr,display:Te<=Bt})},Xe(yt,Te))}:function(yt,Te){var Ge=Nt(yt,Te);return O.createElement(A,(0,v.Z)({},Be,{order:Te,key:Ge,item:yt,renderItem:Vt,itemKey:Ge,registerSize:yr,display:Te<=Bt}))},it={order:zr?Bt:Number.MAX_SAFE_INTEGER,className:"".concat(Ot,"-rest"),registerSize:or,display:zr},st=Yt||F,zt=er?O.createElement(le.Provider,{value:(0,q.Z)((0,q.Z)({},Be),it)},er(et)):O.createElement(A,(0,v.Z)({},Be,it),typeof st=="function"?st(et):st),kt=O.createElement(U,(0,v.Z)({className:ce()(!ut&&G,Mt),style:tr,ref:w},M),bt.map(pt),ct?zt:null,ge&&O.createElement(A,(0,v.Z)({},Be,{responsive:Tt,responsiveDisabled:!Ie,order:Bt,className:"".concat(Ot,"-suffix"),registerSize:br,display:!0,style:sr}),ge));return Tt?O.createElement(oe.Z,{onResize:vr,disabled:!Ie},kt):kt}var V=O.forwardRef(Y);V.displayName="Overflow",V.Item=Se,V.RESPONSIVE=Me,V.INVALIDATE=ee;var ue=V,te=ue},29301:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return ee}});var v=x(72308),q=x(59301),xe=x(11592),pe=x(48736),O=x(77321),p=x(62853),ce=x(76846),oe=x(8654),o=q.createContext(null);function ne(F){var Y=F.children,V=F.onBatchResize,ue=q.useRef(0),te=q.useRef([]),y=q.useContext(o),w=q.useCallback(function(Z,G,Pe){ue.current+=1;var Ue=ue.current;te.current.push({size:Z,element:G,data:Pe}),Promise.resolve().then(function(){Ue===ue.current&&(V==null||V(te.current),te.current=[])}),y==null||y(Z,G,Pe)},[V,y]);return q.createElement(o.Provider,{value:w},Y)}var N=x(76374),S=new Map;function b(F){F.forEach(function(Y){var V,ue=Y.target;(V=S.get(ue))===null||V===void 0||V.forEach(function(te){return te(ue)})})}var A=new N.Z(b),I=null,X=null;function ie(F,Y){S.has(F)||(S.set(F,new Set),A.observe(F)),S.get(F).add(Y)}function P(F,Y){S.has(F)&&(S.get(F).delete(Y),S.get(F).size||(A.unobserve(F),S.delete(F)))}var B=x(96949),H=x(55090),le=x(77205),k=x(38793),j=function(F){(0,le.Z)(V,F);var Y=(0,k.Z)(V);function V(){return(0,B.Z)(this,V),Y.apply(this,arguments)}return(0,H.Z)(V,[{key:"render",value:function(){return this.props.children}}]),V}(q.Component);function J(F,Y){var V=F.children,ue=F.disabled,te=q.useRef(null),y=q.useRef(null),w=q.useContext(o),Z=typeof V=="function",G=Z?V(te):V,Pe=q.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),Ue=!Z&&q.isValidElement(G)&&(0,oe.Yr)(G),Ve=Ue?(0,oe.C4)(G):null,Xe=(0,oe.x1)(Ve,te),tt=function(){var tr;return(0,ce.ZP)(te.current)||(te.current&&(0,p.Z)(te.current)==="object"?(0,ce.ZP)((tr=te.current)===null||tr===void 0?void 0:tr.nativeElement):null)||(0,ce.ZP)(y.current)};q.useImperativeHandle(Y,function(){return tt()});var at=q.useRef(F);at.current=F;var mt=q.useCallback(function(Ut){var tr=at.current,Mt=tr.onResize,jt=tr.data,Yt=Ut.getBoundingClientRect(),er=Yt.width,ge=Yt.height,fe=Ut.offsetWidth,U=Ut.offsetHeight,ye=Math.floor(er),Re=Math.floor(ge);if(Pe.current.width!==ye||Pe.current.height!==Re||Pe.current.offsetWidth!==fe||Pe.current.offsetHeight!==U){var M={width:ye,height:Re,offsetWidth:fe,offsetHeight:U};Pe.current=M;var se=fe===Math.round(er)?er:fe,ve=U===Math.round(ge)?ge:U,Ee=(0,O.Z)((0,O.Z)({},M),{},{offsetWidth:se,offsetHeight:ve});w==null||w(Ee,Ut,jt),Mt&&Promise.resolve().then(function(){Mt(Ee,Ut)})}},[]);return q.useEffect(function(){var Ut=tt();return Ut&&!ue&&ie(Ut,mt),function(){return P(Ut,mt)}},[te.current,ue]),q.createElement(j,{ref:y},Ue?q.cloneElement(G,{ref:Xe}):G)}var Q=q.forwardRef(J),de=Q,Se="rc-observer-key";function Ae(F,Y){var V=F.children,ue=typeof V=="function"?[V]:(0,xe.Z)(V);return ue.map(function(te,y){var w=(te==null?void 0:te.key)||"".concat(Se,"-").concat(y);return q.createElement(de,(0,v.Z)({},F,{key:w,ref:y===0?Y:void 0}),te)})}var Me=q.forwardRef(Ae);Me.Collection=ne;var ee=Me},9296:function(nr,ot,x){"use strict";x.r(ot),x.d(ot,{ResizableTextArea:function(){return Ae},default:function(){return ue}});var v=x(72308),q=x(77321),xe=x(49618),pe=x(62853),O=x(52487),p=x(74416),ce=x(80702),oe=x(92310),o=x.n(oe),ne=x(93681),N=x(5643),S=x(18929),b=x(59301),A=x(29301),I=x(34280),X=x(16089),ie=`
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;
`,P=["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"],B={},H;function le(te){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=te.getAttribute("id")||te.getAttribute("data-reactid")||te.getAttribute("name");if(y&&B[w])return B[w];var Z=window.getComputedStyle(te),G=Z.getPropertyValue("box-sizing")||Z.getPropertyValue("-moz-box-sizing")||Z.getPropertyValue("-webkit-box-sizing"),Pe=parseFloat(Z.getPropertyValue("padding-bottom"))+parseFloat(Z.getPropertyValue("padding-top")),Ue=parseFloat(Z.getPropertyValue("border-bottom-width"))+parseFloat(Z.getPropertyValue("border-top-width")),Ve=P.map(function(tt){return"".concat(tt,":").concat(Z.getPropertyValue(tt))}).join(";"),Xe={sizingStyle:Ve,paddingSize:Pe,borderSize:Ue,boxSizing:G};return y&&w&&(B[w]=Xe),Xe}function k(te){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Z=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;H||(H=document.createElement("textarea"),H.setAttribute("tab-index","-1"),H.setAttribute("aria-hidden","true"),document.body.appendChild(H)),te.getAttribute("wrap")?H.setAttribute("wrap",te.getAttribute("wrap")):H.removeAttribute("wrap");var G=le(te,y),Pe=G.paddingSize,Ue=G.borderSize,Ve=G.boxSizing,Xe=G.sizingStyle;H.setAttribute("style","".concat(Xe,";").concat(ie)),H.value=te.value||te.placeholder||"";var tt=void 0,at=void 0,mt,Ut=H.scrollHeight;if(Ve==="border-box"?Ut+=Ue:Ve==="content-box"&&(Ut-=Pe),w!==null||Z!==null){H.value=" ";var tr=H.scrollHeight-Pe;w!==null&&(tt=tr*w,Ve==="border-box"&&(tt=tt+Pe+Ue),Ut=Math.max(tt,Ut)),Z!==null&&(at=tr*Z,Ve==="border-box"&&(at=at+Pe+Ue),mt=Ut>at?"":"hidden",Ut=Math.min(at,Ut))}var Mt={height:Ut,overflowY:mt,resize:"none"};return tt&&(Mt.minHeight=tt),at&&(Mt.maxHeight=at),Mt}var j=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],J=0,Q=1,de=2,Se=b.forwardRef(function(te,y){var w=te,Z=w.prefixCls,G=w.onPressEnter,Pe=w.defaultValue,Ue=w.value,Ve=w.autoSize,Xe=w.onResize,tt=w.className,at=w.style,mt=w.disabled,Ut=w.onChange,tr=w.onInternalAutoSize,Mt=(0,p.Z)(w,j),jt=(0,S.Z)(Pe,{value:Ue,postState:function(T){return T!=null?T:""}}),Yt=(0,O.Z)(jt,2),er=Yt[0],ge=Yt[1],fe=function(T){ge(T.target.value),Ut==null||Ut(T)},U=b.useRef();b.useImperativeHandle(y,function(){return{textArea:U.current}});var ye=b.useMemo(function(){return Ve&&(0,pe.Z)(Ve)==="object"?[Ve.minRows,Ve.maxRows]:[]},[Ve]),Re=(0,O.Z)(ye,2),M=Re[0],se=Re[1],ve=!!Ve,Ee=function(){try{if(document.activeElement===U.current){var T=U.current,nt=T.selectionStart,W=T.selectionEnd,be=T.scrollTop;U.current.setSelectionRange(nt,W),U.current.scrollTop=be}}catch(rr){}},ke=b.useState(de),Fe=(0,O.Z)(ke,2),qe=Fe[0],gt=Fe[1],ht=b.useState(),Qe=(0,O.Z)(ht,2),Ft=Qe[0],Lt=Qe[1],Le=function(){gt(J)};(0,I.Z)(function(){ve&&Le()},[Ue,M,se,ve]),(0,I.Z)(function(){if(qe===J)gt(Q);else if(qe===Q){var E=k(U.current,!1,M,se);gt(de),Lt(E)}else Ee()},[qe]);var Ke=b.useRef(),lt=function(){X.Z.cancel(Ke.current)},vt=function(T){qe===de&&(Xe==null||Xe(T),Ve&&(lt(),Ke.current=(0,X.Z)(function(){Le()})))};b.useEffect(function(){return lt},[]);var Rt=ve?Ft:null,Gt=(0,q.Z)((0,q.Z)({},at),Rt);return(qe===J||qe===Q)&&(Gt.overflowY="hidden",Gt.overflowX="hidden"),b.createElement(A.Z,{onResize:vt,disabled:!(Ve||Xe)},b.createElement("textarea",(0,v.Z)({},Mt,{ref:U,style:Gt,className:o()(Z,tt,(0,xe.Z)({},"".concat(Z,"-disabled"),mt)),disabled:mt,value:er,onChange:fe})))}),Ae=Se,Me=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ee(te,y){return(0,ce.Z)(te||"").slice(0,y).join("")}function F(te,y,w,Z){var G=w;return te?G=ee(w,Z):(0,ce.Z)(y||"").length<w.length&&(0,ce.Z)(w||"").length>Z&&(G=y),G}var Y=b.forwardRef(function(te,y){var w,Z=te.defaultValue,G=te.value,Pe=te.onFocus,Ue=te.onBlur,Ve=te.onChange,Xe=te.allowClear,tt=te.maxLength,at=te.onCompositionStart,mt=te.onCompositionEnd,Ut=te.suffix,tr=te.prefixCls,Mt=tr===void 0?"rc-textarea":tr,jt=te.classes,Yt=te.showCount,er=te.className,ge=te.style,fe=te.disabled,U=te.hidden,ye=te.classNames,Re=te.styles,M=te.onResize,se=(0,p.Z)(te,Me),ve=(0,S.Z)(Z,{value:G,defaultValue:Z}),Ee=(0,O.Z)(ve,2),ke=Ee[0],Fe=Ee[1],qe=(0,b.useRef)(null),gt=b.useState(!1),ht=(0,O.Z)(gt,2),Qe=ht[0],Ft=ht[1],Lt=b.useState(!1),Le=(0,O.Z)(Lt,2),Ke=Le[0],lt=Le[1],vt=b.useRef(),Rt=b.useRef(0),Gt=b.useState(null),E=(0,O.Z)(Gt,2),T=E[0],nt=E[1],W=function(){var xt;(xt=qe.current)===null||xt===void 0||xt.textArea.focus()};(0,b.useImperativeHandle)(y,function(){return{resizableTextArea:qe.current,focus:W,blur:function(){var xt;(xt=qe.current)===null||xt===void 0||xt.textArea.blur()}}}),(0,b.useEffect)(function(){Ft(function(Ot){return!fe&&Ot})},[fe]);var be=Number(tt)>0,rr=function(xt){lt(!0),vt.current=ke,Rt.current=xt.currentTarget.selectionStart,at==null||at(xt)},$e=function(xt){lt(!1);var Tt=xt.currentTarget.value;if(be){var Ie,ut=Rt.current>=tt+1||Rt.current===((Ie=vt.current)===null||Ie===void 0?void 0:Ie.length);Tt=F(ut,vt.current,Tt,tt)}Tt!==ke&&(Fe(Tt),(0,N.rJ)(xt.currentTarget,xt,Ve,Tt)),mt==null||mt(xt)},je=function(xt){var Tt=xt.target.value;if(!Ke&&be){var Ie=xt.target.selectionStart>=tt+1||xt.target.selectionStart===Tt.length||!xt.target.selectionStart;Tt=F(Ie,ke,Tt,tt)}Fe(Tt),(0,N.rJ)(xt.currentTarget,xt,Ve,Tt)},Ze=function(xt){var Tt=se.onPressEnter,Ie=se.onKeyDown;xt.key==="Enter"&&Tt&&Tt(xt),Ie==null||Ie(xt)},re=function(xt){Ft(!0),Pe==null||Pe(xt)},me=function(xt){Ft(!1),Ue==null||Ue(xt)},we=function(xt){var Tt;Fe(""),W(),(0,N.rJ)((Tt=qe.current)===null||Tt===void 0?void 0:Tt.textArea,xt,Ve)},ze=(0,N.D7)(ke);!Ke&&be&&G==null&&(ze=ee(ze,tt));var K=Ut,Bt;if(Yt){var Ce=(0,ce.Z)(ze).length;(0,pe.Z)(Yt)==="object"?Bt=Yt.formatter({value:ze,count:Ce,maxLength:tt}):Bt="".concat(Ce).concat(be?" / ".concat(tt):""),K=b.createElement(b.Fragment,null,K,b.createElement("span",{className:o()("".concat(Mt,"-data-count"),ye==null?void 0:ye.count),style:Re==null?void 0:Re.count},Bt))}var qt=function(xt){var Tt;M==null||M(xt),(Tt=qe.current)!==null&&Tt!==void 0&&Tt.textArea.style.height&&nt(!0)},cr=!se.autoSize&&!Yt&&!Xe,Pt=b.createElement(ne.BaseInput,{value:ze,allowClear:Xe,handleReset:we,suffix:K,prefixCls:Mt,classes:{affixWrapper:o()(jt==null?void 0:jt.affixWrapper,(w={},(0,xe.Z)(w,"".concat(Mt,"-show-count"),Yt),(0,xe.Z)(w,"".concat(Mt,"-textarea-allow-clear"),Xe),w))},disabled:fe,focused:Qe,className:er,style:(0,q.Z)((0,q.Z)({},ge),T&&!cr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Bt=="string"?Bt:void 0}},hidden:U,inputElement:b.createElement(Ae,(0,v.Z)({},se,{onKeyDown:Ze,onChange:je,onFocus:re,onBlur:me,onCompositionStart:rr,onCompositionEnd:$e,className:ye==null?void 0:ye.textarea,style:(0,q.Z)((0,q.Z)({},Re==null?void 0:Re.textarea),{},{resize:ge==null?void 0:ge.resize}),disabled:fe,prefixCls:Mt,onResize:qt,ref:qe}))});return Pt}),V=Y,ue=V},55477:function(nr,ot,x){"use strict";x.d(ot,{G:function(){return b},Z:function(){return ie}});var v=x(72308),q=x(77321),xe=x(74416),pe=x(35593),O=x(59301),p={shiftX:64,adjustY:1},ce={adjustX:1,shiftY:!0},oe=[0,0],o={left:{points:["cr","cl"],overflow:ce,offset:[-4,0],targetOffset:oe},right:{points:["cl","cr"],overflow:ce,offset:[4,0],targetOffset:oe},top:{points:["bc","tc"],overflow:p,offset:[0,-4],targetOffset:oe},bottom:{points:["tc","bc"],overflow:p,offset:[0,4],targetOffset:oe},topLeft:{points:["bl","tl"],overflow:p,offset:[0,-4],targetOffset:oe},leftTop:{points:["tr","tl"],overflow:ce,offset:[-4,0],targetOffset:oe},topRight:{points:["br","tr"],overflow:p,offset:[0,-4],targetOffset:oe},rightTop:{points:["tl","tr"],overflow:ce,offset:[4,0],targetOffset:oe},bottomRight:{points:["tr","br"],overflow:p,offset:[0,4],targetOffset:oe},rightBottom:{points:["bl","br"],overflow:ce,offset:[4,0],targetOffset:oe},bottomLeft:{points:["tl","bl"],overflow:p,offset:[0,4],targetOffset:oe},leftBottom:{points:["br","bl"],overflow:ce,offset:[-4,0],targetOffset:oe}},ne=null,N=x(92310),S=x.n(N);function b(P){var B=P.children,H=P.prefixCls,le=P.id,k=P.overlayInnerStyle,j=P.className,J=P.style;return O.createElement("div",{className:S()("".concat(H,"-content"),j),style:J},O.createElement("div",{className:"".concat(H,"-inner"),id:le,role:"tooltip",style:k},typeof B=="function"?B():B))}var A=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],I=function(B,H){var le=B.overlayClassName,k=B.trigger,j=k===void 0?["hover"]:k,J=B.mouseEnterDelay,Q=J===void 0?0:J,de=B.mouseLeaveDelay,Se=de===void 0?.1:de,Ae=B.overlayStyle,Me=B.prefixCls,ee=Me===void 0?"rc-tooltip":Me,F=B.children,Y=B.onVisibleChange,V=B.afterVisibleChange,ue=B.transitionName,te=B.animation,y=B.motion,w=B.placement,Z=w===void 0?"right":w,G=B.align,Pe=G===void 0?{}:G,Ue=B.destroyTooltipOnHide,Ve=Ue===void 0?!1:Ue,Xe=B.defaultVisible,tt=B.getTooltipContainer,at=B.overlayInnerStyle,mt=B.arrowContent,Ut=B.overlay,tr=B.id,Mt=B.showArrow,jt=Mt===void 0?!0:Mt,Yt=(0,xe.Z)(B,A),er=(0,O.useRef)(null);(0,O.useImperativeHandle)(H,function(){return er.current});var ge=(0,q.Z)({},Yt);"visible"in B&&(ge.popupVisible=B.visible);var fe=function(){return O.createElement(b,{key:"content",prefixCls:ee,id:tr,overlayInnerStyle:at},Ut)};return O.createElement(pe.Z,(0,v.Z)({popupClassName:le,prefixCls:ee,popup:fe,action:j,builtinPlacements:o,popupPlacement:Z,ref:er,popupAlign:Pe,getPopupContainer:tt,onPopupVisibleChange:Y,afterPopupVisibleChange:V,popupTransitionName:ue,popupAnimation:te,popupMotion:y,defaultPopupVisible:Xe,autoDestroy:Ve,mouseLeaveDelay:Se,popupStyle:Ae,mouseEnterDelay:Q,arrow:jt},ge),F)},X=(0,O.forwardRef)(I),ie=X},49658:function(nr,ot){"use strict";ot.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var x=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(x)||/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(x==null?void 0:x.substr(0,4))}},83145:function(nr,ot,x){"use strict";Object.defineProperty(ot,"__esModule",{value:!0}),ot.CopyToClipboard=void 0;var v=xe(x(59301)),q=xe(x(25769));function xe(B){return B&&B.__esModule?B:{default:B}}function pe(B){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?pe=function(le){return typeof le}:pe=function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},pe(B)}function O(B,H){var le=Object.keys(B);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(B);H&&(k=k.filter(function(j){return Object.getOwnPropertyDescriptor(B,j).enumerable})),le.push.apply(le,k)}return le}function p(B){for(var H=1;H<arguments.length;H++){var le=arguments[H]!=null?arguments[H]:{};H%2?O(le,!0).forEach(function(k){ie(B,k,le[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(le)):O(le).forEach(function(k){Object.defineProperty(B,k,Object.getOwnPropertyDescriptor(le,k))})}return B}function ce(B,H){if(B==null)return{};var le=oe(B,H),k,j;if(Object.getOwnPropertySymbols){var J=Object.getOwnPropertySymbols(B);for(j=0;j<J.length;j++)k=J[j],!(H.indexOf(k)>=0)&&Object.prototype.propertyIsEnumerable.call(B,k)&&(le[k]=B[k])}return le}function oe(B,H){if(B==null)return{};var le={},k=Object.keys(B),j,J;for(J=0;J<k.length;J++)j=k[J],!(H.indexOf(j)>=0)&&(le[j]=B[j]);return le}function o(B,H){if(!(B instanceof H))throw new TypeError("Cannot call a class as a function")}function ne(B,H){for(var le=0;le<H.length;le++){var k=H[le];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(B,k.key,k)}}function N(B,H,le){return H&&ne(B.prototype,H),le&&ne(B,le),B}function S(B,H){return H&&(pe(H)==="object"||typeof H=="function")?H:A(B)}function b(B){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(le){return le.__proto__||Object.getPrototypeOf(le)},b(B)}function A(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function I(B,H){if(typeof H!="function"&&H!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(H&&H.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),H&&X(B,H)}function X(B,H){return X=Object.setPrototypeOf||function(k,j){return k.__proto__=j,k},X(B,H)}function ie(B,H,le){return H in B?Object.defineProperty(B,H,{value:le,enumerable:!0,configurable:!0,writable:!0}):B[H]=le,B}var P=function(B){I(H,B);function H(){var le,k;o(this,H);for(var j=arguments.length,J=new Array(j),Q=0;Q<j;Q++)J[Q]=arguments[Q];return k=S(this,(le=b(H)).call.apply(le,[this].concat(J))),ie(A(k),"onClick",function(de){var Se=k.props,Ae=Se.text,Me=Se.onCopy,ee=Se.children,F=Se.options,Y=v.default.Children.only(ee),V=(0,q.default)(Ae,F);Me&&Me(Ae,V),Y&&Y.props&&typeof Y.props.onClick=="function"&&Y.props.onClick(de)}),k}return N(H,[{key:"render",value:function(){var k=this.props,j=k.text,J=k.onCopy,Q=k.options,de=k.children,Se=ce(k,["text","onCopy","options","children"]),Ae=v.default.Children.only(de);return v.default.cloneElement(Ae,p({},Se,{onClick:this.onClick}))}}]),H}(v.default.PureComponent);ot.CopyToClipboard=P,ie(P,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(nr,ot,x){"use strict";var v=x(83145),q=v.CopyToClipboard;q.CopyToClipboard=q,nr.exports=q},76374:function(nr,ot,x){"use strict";var v=function(){if(typeof Map!="undefined")return Map;function ee(F,Y){var V=-1;return F.some(function(ue,te){return ue[0]===Y?(V=te,!0):!1}),V}return function(){function F(){this.__entries__=[]}return Object.defineProperty(F.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),F.prototype.get=function(Y){var V=ee(this.__entries__,Y),ue=this.__entries__[V];return ue&&ue[1]},F.prototype.set=function(Y,V){var ue=ee(this.__entries__,Y);~ue?this.__entries__[ue][1]=V:this.__entries__.push([Y,V])},F.prototype.delete=function(Y){var V=this.__entries__,ue=ee(V,Y);~ue&&V.splice(ue,1)},F.prototype.has=function(Y){return!!~ee(this.__entries__,Y)},F.prototype.clear=function(){this.__entries__.splice(0)},F.prototype.forEach=function(Y,V){V===void 0&&(V=null);for(var ue=0,te=this.__entries__;ue<te.length;ue++){var y=te[ue];Y.call(V,y[1],y[0])}},F}()}(),q=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,xe=function(){return typeof x.g!="undefined"&&x.g.Math===Math?x.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),pe=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(xe):function(ee){return setTimeout(function(){return ee(Date.now())},1e3/60)}}(),O=2;function p(ee,F){var Y=!1,V=!1,ue=0;function te(){Y&&(Y=!1,ee()),V&&w()}function y(){pe(te)}function w(){var Z=Date.now();if(Y){if(Z-ue<O)return;V=!0}else Y=!0,V=!1,setTimeout(y,F);ue=Z}return w}var ce=20,oe=["top","right","bottom","left","width","height","size","weight"],o=typeof MutationObserver!="undefined",ne=function(){function ee(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=p(this.refresh.bind(this),ce)}return ee.prototype.addObserver=function(F){~this.observers_.indexOf(F)||this.observers_.push(F),this.connected_||this.connect_()},ee.prototype.removeObserver=function(F){var Y=this.observers_,V=Y.indexOf(F);~V&&Y.splice(V,1),!Y.length&&this.connected_&&this.disconnect_()},ee.prototype.refresh=function(){var F=this.updateObservers_();F&&this.refresh()},ee.prototype.updateObservers_=function(){var F=this.observers_.filter(function(Y){return Y.gatherActive(),Y.hasActive()});return F.forEach(function(Y){return Y.broadcastActive()}),F.length>0},ee.prototype.connect_=function(){!q||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)},ee.prototype.disconnect_=function(){!q||!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)},ee.prototype.onTransitionEnd_=function(F){var Y=F.propertyName,V=Y===void 0?"":Y,ue=oe.some(function(te){return!!~V.indexOf(te)});ue&&this.refresh()},ee.getInstance=function(){return this.instance_||(this.instance_=new ee),this.instance_},ee.instance_=null,ee}(),N=function(ee,F){for(var Y=0,V=Object.keys(F);Y<V.length;Y++){var ue=V[Y];Object.defineProperty(ee,ue,{value:F[ue],enumerable:!1,writable:!1,configurable:!0})}return ee},S=function(ee){var F=ee&&ee.ownerDocument&&ee.ownerDocument.defaultView;return F||xe},b=j(0,0,0,0);function A(ee){return parseFloat(ee)||0}function I(ee){for(var F=[],Y=1;Y<arguments.length;Y++)F[Y-1]=arguments[Y];return F.reduce(function(V,ue){var te=ee["border-"+ue+"-width"];return V+A(te)},0)}function X(ee){for(var F=["top","right","bottom","left"],Y={},V=0,ue=F;V<ue.length;V++){var te=ue[V],y=ee["padding-"+te];Y[te]=A(y)}return Y}function ie(ee){var F=ee.getBBox();return j(0,0,F.width,F.height)}function P(ee){var F=ee.clientWidth,Y=ee.clientHeight;if(!F&&!Y)return b;var V=S(ee).getComputedStyle(ee),ue=X(V),te=ue.left+ue.right,y=ue.top+ue.bottom,w=A(V.width),Z=A(V.height);if(V.boxSizing==="border-box"&&(Math.round(w+te)!==F&&(w-=I(V,"left","right")+te),Math.round(Z+y)!==Y&&(Z-=I(V,"top","bottom")+y)),!H(ee)){var G=Math.round(w+te)-F,Pe=Math.round(Z+y)-Y;Math.abs(G)!==1&&(w-=G),Math.abs(Pe)!==1&&(Z-=Pe)}return j(ue.left,ue.top,w,Z)}var B=function(){return typeof SVGGraphicsElement!="undefined"?function(ee){return ee instanceof S(ee).SVGGraphicsElement}:function(ee){return ee instanceof S(ee).SVGElement&&typeof ee.getBBox=="function"}}();function H(ee){return ee===S(ee).document.documentElement}function le(ee){return q?B(ee)?ie(ee):P(ee):b}function k(ee){var F=ee.x,Y=ee.y,V=ee.width,ue=ee.height,te=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,y=Object.create(te.prototype);return N(y,{x:F,y:Y,width:V,height:ue,top:Y,right:F+V,bottom:ue+Y,left:F}),y}function j(ee,F,Y,V){return{x:ee,y:F,width:Y,height:V}}var J=function(){function ee(F){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=j(0,0,0,0),this.target=F}return ee.prototype.isActive=function(){var F=le(this.target);return this.contentRect_=F,F.width!==this.broadcastWidth||F.height!==this.broadcastHeight},ee.prototype.broadcastRect=function(){var F=this.contentRect_;return this.broadcastWidth=F.width,this.broadcastHeight=F.height,F},ee}(),Q=function(){function ee(F,Y){var V=k(Y);N(this,{target:F,contentRect:V})}return ee}(),de=function(){function ee(F,Y,V){if(this.activeObservations_=[],this.observations_=new v,typeof F!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=F,this.controller_=Y,this.callbackCtx_=V}return ee.prototype.observe=function(F){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(F instanceof S(F).Element))throw new TypeError('parameter 1 is not of type "Element".');var Y=this.observations_;Y.has(F)||(Y.set(F,new J(F)),this.controller_.addObserver(this),this.controller_.refresh())}},ee.prototype.unobserve=function(F){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(F instanceof S(F).Element))throw new TypeError('parameter 1 is not of type "Element".');var Y=this.observations_;Y.has(F)&&(Y.delete(F),Y.size||this.controller_.removeObserver(this))}},ee.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},ee.prototype.gatherActive=function(){var F=this;this.clearActive(),this.observations_.forEach(function(Y){Y.isActive()&&F.activeObservations_.push(Y)})},ee.prototype.broadcastActive=function(){if(this.hasActive()){var F=this.callbackCtx_,Y=this.activeObservations_.map(function(V){return new Q(V.target,V.broadcastRect())});this.callback_.call(F,Y,F),this.clearActive()}},ee.prototype.clearActive=function(){this.activeObservations_.splice(0)},ee.prototype.hasActive=function(){return this.activeObservations_.length>0},ee}(),Se=typeof WeakMap!="undefined"?new WeakMap:new v,Ae=function(){function ee(F){if(!(this instanceof ee))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var Y=ne.getInstance(),V=new de(F,Y,this);Se.set(this,V)}return ee}();["observe","unobserve","disconnect"].forEach(function(ee){Ae.prototype[ee]=function(){var F;return(F=Se.get(this))[ee].apply(F,arguments)}});var Me=function(){return typeof xe.ResizeObserver!="undefined"?xe.ResizeObserver:Ae}();ot.Z=Me},98040:function(nr){nr.exports=function(){var ot=document.getSelection();if(!ot.rangeCount)return function(){};for(var x=document.activeElement,v=[],q=0;q<ot.rangeCount;q++)v.push(ot.getRangeAt(q));switch(x.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":x.blur();break;default:x=null;break}return ot.removeAllRanges(),function(){ot.type==="Caret"&&ot.removeAllRanges(),ot.rangeCount||v.forEach(function(xe){ot.addRange(xe)}),x&&x.focus()}}},1012:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return S}});var v=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),q=new Uint8Array(16);function xe(){if(!v)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return v(q)}var pe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function O(b){return typeof b=="string"&&pe.test(b)}for(var p=O,ce=[],oe=0;oe<256;++oe)ce.push((oe+256).toString(16).substr(1));function o(b){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=(ce[b[A+0]]+ce[b[A+1]]+ce[b[A+2]]+ce[b[A+3]]+"-"+ce[b[A+4]]+ce[b[A+5]]+"-"+ce[b[A+6]]+ce[b[A+7]]+"-"+ce[b[A+8]]+ce[b[A+9]]+"-"+ce[b[A+10]]+ce[b[A+11]]+ce[b[A+12]]+ce[b[A+13]]+ce[b[A+14]]+ce[b[A+15]]).toLowerCase();if(!p(I))throw TypeError("Stringified UUID is invalid");return I}var ne=o;function N(b,A,I){b=b||{};var X=b.random||(b.rng||xe)();if(X[6]=X[6]&15|64,X[8]=X[8]&63|128,A){I=I||0;for(var ie=0;ie<16;++ie)A[I+ie]=X[ie];return A}return ne(X)}var S=N},93314:function(nr){"use strict";nr.exports="data:image/png;base64,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"},96908:function(nr){"use strict";nr.exports="data:image/png;base64,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"},57177:function(nr){"use strict";nr.exports="data:image/png;base64,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"},81378:function(nr){"use strict";nr.exports="data:image/png;base64,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"},65157:function(nr,ot,x){"use strict";x.d(ot,{ZP:function(){return As}});const v=Number.isFinite||function(a){return typeof a=="number"&&isFinite(a)},q=Number.isSafeInteger||function(a){return typeof a=="number"&&Math.abs(a)<=xe},xe=Number.MAX_SAFE_INTEGER||9007199254740991;let pe=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}({}),O=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}({}),p=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 ce={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},oe={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class o{constructor(e,t=0,r=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_=r}sample(e,t){const r=Math.pow(this.alpha_,e);this.estimate_=t*(1-r)+r*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 ne{constructor(e,t,r,n=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_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new o(e),this.fast_=new o(t),this.defaultTTFB_=n,this.ttfb_=new o(e)}update(e,t){const{slow_:r,fast_:n,ttfb_:i}=this;r.halfLife!==e&&(this.slow_=new o(e,r.getEstimate(),r.getTotalWeight())),n.halfLife!==t&&(this.fast_=new o(t,n.getEstimate(),n.getTotalWeight())),i.halfLife!==e&&(this.ttfb_=new o(e,i.getEstimate(),i.getTotalWeight()))}sample(e,t){e=Math.max(e,this.minDelayMs_);const r=8*t,n=e/1e3,i=r/n;this.fast_.sample(n,i),this.slow_.sample(n,i)}sampleTTFB(e){const t=e/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(t,2)/2);this.ttfb_.sample(r,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 N(a,e,t){return(e=X(e))in a?Object.defineProperty(a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function S(){return S=Object.assign?Object.assign.bind():function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(a[r]=t[r])}return a},S.apply(null,arguments)}function b(a,e){var t=Object.keys(a);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(a);e&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable})),t.push.apply(t,r)}return t}function A(a){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?b(Object(t),!0).forEach(function(r){N(a,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(t)):b(Object(t)).forEach(function(r){Object.defineProperty(a,r,Object.getOwnPropertyDescriptor(t,r))})}return a}function I(a,e){if(typeof a!="object"||!a)return a;var t=a[Symbol.toPrimitive];if(t!==void 0){var r=t.call(a,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(a)}function X(a){var e=I(a,"string");return typeof e=="symbol"?e:e+""}class ie{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 r=`[${e}]:`;this.trace=P,this.debug=t.debug.bind(null,r),this.log=t.log.bind(null,r),this.warn=t.warn.bind(null,r),this.info=t.info.bind(null,r),this.error=t.error.bind(null,r)}}const P=function(){},B={trace:P,debug:P,log:P,warn:P,info:P,error:P};function H(){return S({},B)}function le(a,e){const t=self.console[a];return t?t.bind(self.console,`${e?"["+e+"] ":""}[${a}] >`):P}function k(a,e,t){return e[a]?e[a].bind(e):le(a,t)}const j=H();function J(a,e,t){const r=H();if(typeof console=="object"&&a===!0||typeof a=="object"){const n=["debug","log","info","warn","error"];n.forEach(i=>{r[i]=k(i,a,t)});try{r.log(`Debug logs enabled for "${e}" in hls.js version 1.6.0`)}catch(i){return H()}n.forEach(i=>{j[i]=k(i,a)})}else S(j,r);return r}const Q=j;function de(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 Ae(a,e){const t=Object.keys(a),r=Object.keys(e),n=t.length,i=r.length;return!n||!i||n===i&&!t.some(s=>r.indexOf(s)===-1)}function Me(a,e=!1){if(typeof TextDecoder!="undefined"){const c=new TextDecoder("utf-8").decode(a);if(e){const m=c.indexOf("\0");return m!==-1?c.substring(0,m):c}return c.replace(/\0/g,"")}const t=a.length;let r,n,i,s="",l=0;for(;l<t;){if(r=a[l++],r===0&&e)return s;if(r===0||r===3)continue;switch(r>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:s+=String.fromCharCode(r);break;case 12:case 13:n=a[l++],s+=String.fromCharCode((r&31)<<6|n&63);break;case 14:n=a[l++],i=a[l++],s+=String.fromCharCode((r&15)<<12|(n&63)<<6|(i&63)<<0);break}}return s}const ee={hexDump:function(a){let e="";for(let t=0;t<a.length;t++){let r=a[t].toString(16);r.length<2&&(r="0"+r),e+=r}return e}};function F(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Y={exports:{}},V;function ue(){return V||(V=1,function(a,e){(function(t){var r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,n=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,l={buildAbsoluteURL:function(d,c,m){if(m=m||{},d=d.trim(),c=c.trim(),!c){if(!m.alwaysNormalize)return d;var _=l.parseURL(d);if(!_)throw new Error("Error trying to parse base URL.");return _.path=l.normalizePath(_.path),l.buildURLFromParts(_)}var C=l.parseURL(c);if(!C)throw new Error("Error trying to parse relative URL.");if(C.scheme)return m.alwaysNormalize?(C.path=l.normalizePath(C.path),l.buildURLFromParts(C)):c;var L=l.parseURL(d);if(!L)throw new Error("Error trying to parse base URL.");if(!L.netLoc&&L.path&&L.path[0]!=="/"){var R=n.exec(L.path);L.netLoc=R[1],L.path=R[2]}L.netLoc&&!L.path&&(L.path="/");var ae={scheme:L.scheme,netLoc:C.netLoc,path:null,params:C.params,query:C.query,fragment:C.fragment};if(!C.netLoc&&(ae.netLoc=L.netLoc,C.path[0]!=="/"))if(!C.path)ae.path=L.path,C.params||(ae.params=L.params,C.query||(ae.query=L.query));else{var he=L.path,Ne=he.substring(0,he.lastIndexOf("/")+1)+C.path;ae.path=l.normalizePath(Ne)}return ae.path===null&&(ae.path=m.alwaysNormalize?l.normalizePath(C.path):C.path),l.buildURLFromParts(ae)},parseURL:function(d){var c=r.exec(d);return c?{scheme:c[1]||"",netLoc:c[2]||"",path:c[3]||"",params:c[4]||"",query:c[5]||"",fragment:c[6]||""}:null},normalizePath:function(d){for(d=d.split("").reverse().join("").replace(i,"");d.length!==(d=d.replace(s,"")).length;);return d.split("").reverse().join("")},buildURLFromParts:function(d){return d.scheme+d.netLoc+d.path+d.params+d.query+d.fragment}};a.exports=l})()}(Y)),Y.exports}var te=ue();class y{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 w={AUDIO:"audio",VIDEO:"video",AUDIOVIDEO:"audiovideo"};class Z{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,Xe(this,"stats")}setByteRange(e,t){const r=e.split("@",2);let n;r.length===1?n=(t==null?void 0:t.byteRangeEndOffset)||0:n=parseInt(r[1]),this._byteRange=[n,parseInt(r[0])+n]}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={[w.AUDIO]:null,[w.VIDEO]:null,[w.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 y),this._stats}set stats(e){this._stats=e}get url(){return!this._url&&this.baseurl&&this.relurl&&(this._url=te.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""}set url(e){this._url=e}clearElementaryStreamInfo(){const{elementaryStreams:e}=this;e[w.AUDIO]=null,e[w.VIDEO]=null,e[w.AUDIOVIDEO]=null}}function G(a){return a.sn!=="initSegment"}class Pe extends Z{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(v(e)&&v(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 r=Object.keys(this.levelkeys);if(r.length===1)return this._decryptdata=this.levelkeys[r[0]].getDecryptData(this.sn)}}return this._decryptdata}get end(){return this.start+this.duration}get endProgramDateTime(){if(this.programDateTime===null)return null;const e=v(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),r=t.length;if(r>1||r===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(!v(e)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=e}get ref(){return G(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,r,n,i,s=!1){const{elementaryStreams:l}=this,d=l[e];if(!d){l[e]={startPTS:t,endPTS:r,startDTS:n,endDTS:i,partial:s};return}d.startPTS=Math.min(d.startPTS,t),d.endPTS=Math.max(d.endPTS,r),d.startDTS=Math.min(d.startDTS,n),d.endDTS=Math.max(d.endDTS,i)}}class Ue extends Z{constructor(e,t,r,n,i){super(r),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=n;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 Ve(a,e){const t=Object.getPrototypeOf(a);if(t){const r=Object.getOwnPropertyDescriptor(t,e);return r||Ve(t,e)}}function Xe(a,e){const t=Ve(a,e);t&&(t.enumerable=!0,Object.defineProperty(a,e,t))}const tt=Math.pow(2,32)-1,at=[].push,mt={video:1,audio:2,id3:3,text:4};function Ut(a){return String.fromCharCode.apply(null,a)}function tr(a,e){const t=a[e]<<8|a[e+1];return t<0?65536+t:t}function Mt(a,e){const t=Yt(a,e);return t<0?4294967296+t:t}function jt(a,e){let t=Mt(a,e);return t*=Math.pow(2,32),t+=Mt(a,e+4),t}function Yt(a,e){return a[e]<<24|a[e+1]<<16|a[e+2]<<8|a[e+3]}function er(a,e,t){a[e]=t>>24,a[e+1]=t>>16&255,a[e+2]=t>>8&255,a[e+3]=t&255}function ge(a){const e=a.byteLength;for(let t=0;t<e;){const r=Mt(a,t);if(r>8&&a[t+4]===109&&a[t+5]===111&&a[t+6]===111&&a[t+7]===102)return!0;t=r>1?t+r:e}return!1}function fe(a,e){const t=[];if(!e.length)return t;const r=a.byteLength;for(let n=0;n<r;){const i=Mt(a,n),s=Ut(a.subarray(n+4,n+8)),l=i>1?n+i:r;if(s===e[0])if(e.length===1)t.push(a.subarray(n+8,l));else{const d=fe(a.subarray(n+8,l),e.slice(1));d.length&&at.apply(t,d)}n=l}return t}function U(a){const e=[],t=a[0];let r=8;const n=Mt(a,r);r+=4;let i=0,s=0;t===0?(i=Mt(a,r),s=Mt(a,r+4),r+=8):(i=jt(a,r),s=jt(a,r+8),r+=16),r+=2;let l=a.length+s;const d=tr(a,r);r+=2;for(let c=0;c<d;c++){let m=r;const _=Mt(a,m);m+=4;const C=_&2147483647;if((_&2147483648)>>>31===1)return Q.warn("SIDX has hierarchical references (not supported)"),null;const R=Mt(a,m);m+=4,e.push({referenceSize:C,subsegmentDuration:R,info:{duration:R/n,start:l,end:l+C-1}}),l+=C,m+=4,r=m}return{earliestPresentationTime:i,timescale:n,version:t,referencesCount:d,references:e}}function ye(a){const e=[],t=fe(a,["moov","trak"]);for(let n=0;n<t.length;n++){const i=t[n],s=fe(i,["tkhd"])[0];if(s){let l=s[0];const d=Mt(s,l===0?12:20),c=fe(i,["mdia","mdhd"])[0];if(c){l=c[0];const m=Mt(c,l===0?12:20),_=fe(i,["mdia","hdlr"])[0];if(_){const C=Ut(_.subarray(8,12)),L={soun:w.AUDIO,vide:w.VIDEO}[C],R=fe(i,["mdia","minf","stbl","stsd"])[0],ae=Re(R);L?(e[d]={timescale:m,type:L,stsd:ae},e[L]=A({timescale:m,id:d},ae)):e[d]={timescale:m,type:C,stsd:ae}}}}}return fe(a,["moov","mvex","trex"]).forEach(n=>{const i=Mt(n,4),s=e[i];s&&(s.default={duration:Mt(n,12),flags:Mt(n,20)})}),e}function Re(a){const e=a.subarray(8),t=e.subarray(86),r=Ut(e.subarray(4,8));let n=r,i;const s=r==="enca"||r==="encv";if(s){const c=fe(e,[r])[0].subarray(r==="enca"?28:78);fe(c,["sinf"]).forEach(_=>{const C=fe(_,["schm"])[0];if(C){const L=Ut(C.subarray(4,8));if(L==="cbcs"||L==="cenc"){const R=fe(_,["frma"])[0];R&&(n=Ut(R))}}})}const l=n;switch(n){case"avc1":case"avc2":case"avc3":case"avc4":{const d=fe(t,["avcC"])[0];n+="."+ve(d[1])+ve(d[2])+ve(d[3]),i=M(l==="avc1"?"dva1":"dvav",t);break}case"mp4a":{const d=fe(e,[r])[0],c=fe(d.subarray(28),["esds"])[0];if(c&&c.length>7){let m=4;if(c[m++]!==3)break;m=se(c,m),m+=2;const _=c[m++];if(_&128&&(m+=2),_&64&&(m+=c[m++]),c[m++]!==4)break;m=se(c,m);const C=c[m++];if(C===64)n+="."+ve(C);else break;if(m+=12,c[m++]!==5)break;m=se(c,m);const L=c[m++];let R=(L&248)>>3;R===31&&(R+=1+((L&7)<<3)+((c[m]&224)>>5)),n+="."+R}break}case"hvc1":case"hev1":{const d=fe(t,["hvcC"]);if(d){const c=d[0],m=c[1],_=["","A","B","C"][m>>6],C=m&31,L=Mt(c,2),R=(m&32)>>5?"H":"L",ae=c[12],he=c.subarray(6,12);n+="."+_+C,n+="."+L.toString(16).toUpperCase(),n+="."+R+ae;let Ne="";for(let Je=he.length;Je--;){const We=he[Je];(We||Ne)&&(Ne="."+We.toString(16).toUpperCase()+Ne)}n+=Ne}i=M(l=="hev1"?"dvhe":"dvh1",t);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{n=M(n,t)||n;break}case"vp09":{const d=fe(t,["vpcC"])[0],c=d[4],m=d[5],_=d[6]>>4&15;n+="."+Ee(c)+"."+Ee(m)+"."+Ee(_);break}case"av01":{const d=fe(t,["av1C"])[0],c=d[1]>>>5,m=d[1]&31,_=d[2]>>>7?"H":"M",C=(d[2]&64)>>6,L=(d[2]&32)>>5,R=c===2&&C?L?12:10:C?10:8,ae=(d[2]&16)>>4,he=(d[2]&8)>>3,Ne=(d[2]&4)>>2,Je=d[2]&3;n+="."+c+"."+Ee(m)+_+"."+Ee(R)+"."+ae+"."+he+Ne+Je+"."+Ee(1)+"."+Ee(1)+"."+Ee(1)+"."+0,i=M("dav1",t);break}}return{codec:n,encrypted:s,supplemental:i}}function M(a,e){const t=fe(e,["dvvC"]),r=t.length?t[0]:fe(e,["dvcC"])[0];if(r){const n=r[2]>>1&127,i=r[2]<<5&32|r[3]>>3&31;return a+"."+Ee(n)+"."+Ee(i)}}function se(a,e){const t=e+5;for(;a[e++]&128&&e<t;);return e}function ve(a){return("0"+a.toString(16).toUpperCase()).slice(-2)}function Ee(a){return(a<10?"0":"")+a}function ke(a,e){if(!a||!e)return a;const t=e.keyId;return t&&e.isCommonEncryption&&fe(a,["moov","trak"]).forEach(n=>{const s=fe(n,["mdia","minf","stbl","stsd"])[0].subarray(8);let l=fe(s,["enca"]);const d=l.length>0;d||(l=fe(s,["encv"])),l.forEach(c=>{const m=d?c.subarray(28):c.subarray(78);fe(m,["sinf"]).forEach(C=>{const L=Fe(C);if(L){const R=L.subarray(8,24);R.some(ae=>ae!==0)||(Q.log(`[eme] Patching keyId in 'enc${d?"a":"v"}>sinf>>tenc' box: ${ee.hexDump(R)} -> ${ee.hexDump(t)}`),L.set(t,8))}})})}),a}function Fe(a){const e=fe(a,["schm"])[0];if(e){const t=Ut(e.subarray(4,8));if(t==="cbcs"||t==="cenc")return fe(a,["schi","tenc"])[0]}return null}function qe(a,e){return fe(e,["moof","traf"]).reduce((t,r)=>{const n=fe(r,["tfdt"])[0],i=n[0],s=fe(r,["tfhd"]).reduce((l,d)=>{const c=Mt(d,4),m=a[c];if(m){let _=Mt(n,4);if(i===1){if(_===tt)return Q.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),l;_*=tt+1,_+=Mt(n,8)}const C=m.timescale||9e4,L=_/C;if(v(L)&&(l===null||L<l))return L}return l},null);return s!==null&&v(s)&&(t===null||s<t)?s:t},null)}function gt(a,e){let t=0,r=0,n=0;const i=fe(a,["moof","traf"]);for(let s=0;s<i.length;s++){const l=i[s],d=fe(l,["tfhd"])[0],c=Mt(d,4),m=e[c];if(!m)continue;const _=m.default,C=Mt(d,0)|(_==null?void 0:_.flags);let L=_==null?void 0:_.duration;C&8&&(C&2?L=Mt(d,12):L=Mt(d,8));const R=m.timescale||9e4,ae=fe(l,["trun"]);for(let he=0;he<ae.length;he++){if(t=ht(ae[he]),!t&&L){const Ne=Mt(ae[he],4);t=L*Ne}m.type===w.VIDEO?r+=t/R:m.type===w.AUDIO&&(n+=t/R)}}if(r===0&&n===0){let s=1/0,l=0,d=0;const c=fe(a,["sidx"]);for(let m=0;m<c.length;m++){const _=U(c[m]);if(_!=null&&_.references){s=Math.min(s,_.earliestPresentationTime/_.timescale);const C=_.references.reduce((L,R)=>L+R.info.duration||0,0);l=Math.max(l,C+_.earliestPresentationTime/_.timescale),d=l-s}}if(d&&v(d))return d}return r||n}function ht(a){const e=Mt(a,0);let t=8;e&1&&(t+=4),e&4&&(t+=4);let r=0;const n=Mt(a,4);for(let i=0;i<n;i++){if(e&256){const s=Mt(a,t);r+=s,t+=4}e&512&&(t+=4),e&1024&&(t+=4),e&2048&&(t+=4)}return r}function Qe(a,e,t){fe(e,["moof","traf"]).forEach(r=>{fe(r,["tfhd"]).forEach(n=>{const i=Mt(n,4),s=a[i];if(!s)return;const l=s.timescale||9e4;fe(r,["tfdt"]).forEach(d=>{const c=d[0],m=t*l;if(m){let _=Mt(d,4);if(c===0)_-=m,_=Math.max(_,0),er(d,4,_);else{_*=Math.pow(2,32),_+=Mt(d,8),_-=m,_=Math.max(_,0);const C=Math.floor(_/(tt+1)),L=Math.floor(_%(tt+1));er(d,4,C),er(d,8,L)}}})})})}function Ft(a){const e={valid:null,remainder:null},t=fe(a,["moof"]);if(t.length<2)return e.remainder=a,e;const r=t[t.length-1];return e.valid=a.slice(0,r.byteOffset-8),e.remainder=a.slice(r.byteOffset-8),e}function Lt(a,e){const t=new Uint8Array(a.length+e.length);return t.set(a),t.set(e,a.length),t}function Le(a,e){const t=[],r=e.samples,n=e.timescale,i=e.id;let s=!1;return fe(r,["moof"]).map(d=>{const c=d.byteOffset-8;fe(d,["traf"]).map(_=>{const C=fe(_,["tfdt"]).map(L=>{const R=L[0];let ae=Mt(L,4);return R===1&&(ae*=Math.pow(2,32),ae+=Mt(L,8)),ae/n})[0];return C!==void 0&&(a=C),fe(_,["tfhd"]).map(L=>{const R=Mt(L,4),ae=Mt(L,0)&16777215,he=(ae&1)!==0,Ne=(ae&2)!==0,Je=(ae&8)!==0;let We=0;const Et=(ae&16)!==0;let St=0;const Kt=(ae&32)!==0;let At=8;R===i&&(he&&(At+=8),Ne&&(At+=4),Je&&(We=Mt(L,At),At+=4),Et&&(St=Mt(L,At),At+=4),Kt&&(At+=4),e.type==="video"&&(s=Ke(e.codec)),fe(_,["trun"]).map($t=>{const Xt=$t[0],It=Mt($t,0)&16777215,pr=(It&1)!==0;let wr=0;const xn=(It&4)!==0,qr=(It&256)!==0;let Kr=0;const Or=(It&512)!==0;let Vr=0;const Hr=(It&1024)!==0,gr=(It&2048)!==0;let _r=0;const on=Mt($t,4);let Jr=8;pr&&(wr=Mt($t,Jr),Jr+=4),xn&&(Jr+=4);let _n=wr+c;for(let Dn=0;Dn<on;Dn++){if(qr?(Kr=Mt($t,Jr),Jr+=4):Kr=We,Or?(Vr=Mt($t,Jr),Jr+=4):Vr=St,Hr&&(Jr+=4),gr&&(Xt===0?_r=Mt($t,Jr):_r=Yt($t,Jr),Jr+=4),e.type===w.VIDEO){let Fn=0;for(;Fn<Vr;){const jn=Mt(r,_n);if(_n+=4,lt(s,r[_n])){const Ti=r.subarray(_n,_n+jn);vt(Ti,s?2:1,a+_r/n,t)}_n+=jn,Fn+=jn+4}}a+=Kr/n}}))})})}),t}function Ke(a){if(!a)return!1;const e=a.substring(0,4);return e==="hvc1"||e==="hev1"||e==="dvh1"||e==="dvhe"}function lt(a,e){if(a){const t=e>>1&63;return t===39||t===40}else return(e&31)===6}function vt(a,e,t,r){const n=Rt(a);let i=0;i+=e;let s=0,l=0,d=0;for(;i<n.length;){s=0;do{if(i>=n.length)break;d=n[i++],s+=d}while(d===255);l=0;do{if(i>=n.length)break;d=n[i++],l+=d}while(d===255);const c=n.length-i;let m=i;if(l<c)i+=l;else if(l>c){Q.error(`Malformed SEI payload. ${l} is too small, only ${c} bytes left to parse.`);break}if(s===4){if(n[m++]===181){const C=tr(n,m);if(m+=2,C===49){const L=Mt(n,m);if(m+=4,L===1195456820){const R=n[m++];if(R===3){const ae=n[m++],he=31&ae,Ne=64&ae,Je=Ne?2+he*3:0,We=new Uint8Array(Je);if(Ne){We[0]=ae;for(let Et=1;Et<Je;Et++)We[Et]=n[m++]}r.push({type:R,payloadType:s,pts:t,bytes:We})}}}}}else if(s===5&&l>16){const _=[];for(let R=0;R<16;R++){const ae=n[m++].toString(16);_.push(ae.length==1?"0"+ae:ae),(R===3||R===5||R===7||R===9)&&_.push("-")}const C=l-16,L=new Uint8Array(C);for(let R=0;R<C;R++)L[R]=n[m++];r.push({payloadType:s,pts:t,uuid:_.join(""),userData:Me(L),userDataBytes:L})}}}function Rt(a){const e=a.byteLength,t=[];let r=1;for(;r<e-2;)a[r]===0&&a[r+1]===0&&a[r+2]===3?(t.push(r+2),r+=2):r++;if(t.length===0)return a;const n=e-t.length,i=new Uint8Array(n);let s=0;for(r=0;r<n;s++,r++)s===t[0]&&(s++,t.shift()),i[r]=a[s];return i}function Gt(a){const e=a[0];let t="",r="",n=0,i=0,s=0,l=0,d=0,c=0;if(e===0){for(;Ut(a.subarray(c,c+1))!=="\0";)t+=Ut(a.subarray(c,c+1)),c+=1;for(t+=Ut(a.subarray(c,c+1)),c+=1;Ut(a.subarray(c,c+1))!=="\0";)r+=Ut(a.subarray(c,c+1)),c+=1;r+=Ut(a.subarray(c,c+1)),c+=1,n=Mt(a,12),i=Mt(a,16),l=Mt(a,20),d=Mt(a,24),c=28}else if(e===1){c+=4,n=Mt(a,c),c+=4;const _=Mt(a,c);c+=4;const C=Mt(a,c);for(c+=4,s=Vl(2,32)*_+C,q(s)||(s=Number.MAX_SAFE_INTEGER,Q.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),l=Mt(a,c),c+=4,d=Mt(a,c),c+=4;Ut(a.subarray(c,c+1))!=="\0";)t+=Ut(a.subarray(c,c+1)),c+=1;for(t+=Ut(a.subarray(c,c+1)),c+=1;Ut(a.subarray(c,c+1))!=="\0";)r+=Ut(a.subarray(c,c+1)),c+=1;r+=Ut(a.subarray(c,c+1)),c+=1}const m=a.subarray(c,a.byteLength);return{schemeIdUri:t,value:r,timeScale:n,presentationTime:s,presentationTimeDelta:i,eventDuration:l,id:d,payload:m}}function E(a,...e){const t=e.length;let r=8,n=t;for(;n--;)r+=e[n].byteLength;const i=new Uint8Array(r);for(i[0]=r>>24&255,i[1]=r>>16&255,i[2]=r>>8&255,i[3]=r&255,i.set(a,4),n=0,r=8;n<t;n++)i.set(e[n],r),r+=e[n].byteLength;return i}function T(a,e,t){if(a.byteLength!==16)throw new RangeError("Invalid system id");let r,n;r=0,n=new Uint8Array;let i;r>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),E([112,115,115,104],new Uint8Array([r,0,0,0]),a,i,n,s,t||new Uint8Array)}function nt(a){const e=[];if(a instanceof ArrayBuffer){const t=a.byteLength;let r=0;for(;r+32<t;){const n=new DataView(a,r),i=W(n);e.push(i),r+=i.size}}return e}function W(a){const e=a.getUint32(0),t=a.byteOffset,r=a.byteLength;if(r<e)return{offset:t,size:r};if(a.getUint32(4)!==1886614376)return{offset:t,size:e};const i=a.getUint32(8)>>>24;if(i!==0&&i!==1)return{offset:t,size:e};const s=a.buffer,l=ee.hexDump(new Uint8Array(s,t+12,16)),d=a.getUint32(28);let c=null,m=null;if(i===0){if(e-32<d||d<22)return{offset:t,size:e};m=new Uint8Array(s,t+32,d)}else if(i===1){if(!d||r<t+32+d*16+16)return{offset:t,size:e};c=[];for(let _=0;_<d;_++)c.push(new Uint8Array(s,t+32+_*16,16))}return{version:i,systemId:l,kids:c,data:m,offset:t,size:e}}const be=()=>/\(Windows.+Firefox\//i.test(navigator.userAgent),rr={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 $e(a,e){const t=rr[e];return!!t&&!!t[a.slice(0,4)]}function je(a,e,t=!0){return!a.split(",").some(r=>!Ze(r,e,t))}function Ze(a,e,t=!0){var r;const n=de(t);return(r=n==null?void 0:n.isTypeSupported(re(a,e)))!=null?r:!1}function re(a,e){return`${e}/mp4;codecs=${a}`}function me(a){if(a){const e=a.substring(0,4);return rr.video[e]}return 2}function we(a){const e=be();return a.split(",").reduce((t,r)=>{const i=e&&Ke(r)?9:rr.video[r];return i?(i*2+t)/(t?3:2):(rr.audio[r]+t)/(t?2:1)},0)}const ze={};function K(a,e=!0){if(ze[a])return ze[a];const t={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[a];for(let n=0;n<t.length;n++){var r;if(Ze(t[n],"audio",e))return ze[a]=t[n],t[n];if(t[n]==="mp3"&&(r=de(e))!=null&&r.isTypeSupported("audio/mpeg"))return""}return a}const Bt=/flac|opus|mp4a\.40\.34/i;function Ce(a,e=!0){return a.replace(Bt,t=>K(t.toLowerCase(),e))}function qt(a,e){const t=[];if(a){const r=a.split(",");for(let n=0;n<r.length;n++)$e(r[n],"video")||t.push(r[n])}return e&&t.push(e),t.join(",")}function cr(a,e){if(a&&(a.length>4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(a)!==-1))return a;if(e){const t=e.split(",");if(t.length>1){if(a){for(let r=t.length;r--;)if(t[r].substring(0,4)===a.substring(0,4))return t[r]}return t[0]}}return e||a}function Pt(a){const e=a.split(",");for(let t=0;t<e.length;t++){const r=e[t].split(".");if(r.length>2){let n=r.shift()+".";n+=parseInt(r.shift()).toString(16),n+=("000"+parseInt(r.shift()).toString(16)).slice(-4),e[t]=n}}return e.join(",")}function Ot(a){if(a.startsWith("av01.")){const e=a.split("."),t=["0","111","01","01","01","0"];for(let r=e.length;r>4&&r<10;r++)e[r]=t[r-4];return e.join(".")}return a}function xt(a){const e=de(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 Tt(a){return a.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const Ie={supported:!0,configurations:[],decodingInfoResults:[{supported:!0,powerEfficient:!0,smooth:!0}]};function ut(a,e){return{supported:!1,configurations:e,decodingInfoResults:[{supported:!1,smooth:!1,powerEfficient:!1}],error:a}}const ct={};function bt(a,e,t,r,n,i){const s=a.audioCodec?a.audioGroups:null,l=i==null?void 0:i.audioCodec,d=i==null?void 0:i.channels,c=d?parseInt(d):l?1/0:2;let m=null;if(s!=null&&s.length)try{s.length===1&&s[0]?m=e.groups[s[0]].channels:m=s.reduce((_,C)=>{if(C){const L=e.groups[C];if(!L)throw new Error(`Audio track group ${C} not found`);Object.keys(L.channels).forEach(R=>{_[R]=(_[R]||0)+L.channels[R]})}return _},{2:0})}catch(_){return!0}return a.videoCodec!==void 0&&(a.width>1920&&a.height>1088||a.height>1920&&a.width>1088||a.frameRate>Math.max(r,30)||a.videoRange!=="SDR"&&a.videoRange!==t||a.bitrate>Math.max(n,8e6))||!!m&&v(c)&&Object.keys(m).some(_=>parseInt(_)>c)}function et(a,e,t){const r=a.videoCodec,n=a.audioCodec;if(!r&&!n||!t)return Promise.resolve(Ie);const i=[];if(r){const s={width:a.width,height:a.height,bitrate:Math.ceil(Math.max(a.bitrate*.9,a.averageBitrate)),framerate:a.frameRate||30},l=a.videoRange;l!=="SDR"&&(s.transferFunction=l.toLowerCase());const d=r.split(","),c=navigator.userAgent;if(d.some(m=>Ke(m))&&be())return Promise.resolve(ut(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent sting: (${c})`),i));i.push.apply(i,d.map(m=>({type:"media-source",video:A(A({},s),{},{contentType:re(Ot(m),"video")})})))}return n&&a.audioGroups&&a.audioGroups.forEach(s=>{var l;s&&((l=e.groups[s])==null||l.tracks.forEach(d=>{if(d.groupId===s){const c=d.channels||"",m=parseFloat(c);v(m)&&m>2&&i.push.apply(i,n.split(",").map(_=>({type:"media-source",audio:{contentType:re(_,"audio"),channels:""+m}})))}}))}),Promise.all(i.map(s=>{const l=Nt(s);return ct[l]||(ct[l]=t.decodingInfo(s))})).then(s=>({supported:!s.some(l=>!l.supported),configurations:i,decodingInfoResults:s})).catch(s=>({supported:!1,configurations:i,decodingInfoResults:[],error:s}))}function Nt(a){const{audio:e,video:t}=a,r=t||e;if(r){const n=Tt(r.contentType);if(t)return`r${t.height}x${t.width}f${Math.ceil(t.framerate)}${t.transferFunction||"sd"}_${n}_${Math.ceil(t.bitrate/1e5)}`;if(e)return`c${e.channels}${e.spatialRendering?"s":"n"}_${n}`}return""}const Vt=["NONE","TYPE-0","TYPE-1",null];function Zt(a){return Vt.indexOf(a)>-1}const vr=["SDR","PQ","HLG"];function yr(a){return!!a&&vr.indexOf(a)>-1}var or={No:"",Yes:"YES",v2:"v2"};function br(a){const{canSkipUntil:e,canSkipDateRanges:t,age:r}=a,n=r<e/2;return e&&n?t?or.v2:or.Yes:or.No}class xr{constructor(e,t,r){this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=e,this.part=t,this.skip=r}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 zr{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(r=>!!r).map(r=>r.substring(0,4)).join(","),"supplemental"in e){var t;this.supplemental=e.supplemental;const r=(t=e.supplemental)==null?void 0:t.videoCodec;r&&r!==e.videoCodec&&(this.codecSet+=`,${r.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 sr(this._audioGroups,e)}hasSubtitleGroup(e){return sr(this._subtitleGroups,e)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(e,t){if(t){if(e==="audio"){let r=this._audioGroups;r||(r=this._audioGroups=[]),r.indexOf(t)===-1&&r.push(t)}else if(e==="text"){let r=this._subtitleGroups;r||(r=this._subtitleGroups=[]),r.indexOf(t)===-1&&r.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 sr(a,e){return!e||!a?!1:a.indexOf(e)!==-1}function Be(){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 pt(a,e){let t=!1,r=[];if(a&&(t=a!=="SDR",r=[a]),e){r=e.allowedVideoRanges||vr.slice(0);const n=r.join("")!=="SDR"&&!e.videoCodec;t=e.preferHDR!==void 0?e.preferHDR:n&&Be(),t||(r=["SDR"])}return{preferHDR:t,allowedVideoRanges:r}}const it=a=>{const e=new WeakSet;return(t,r)=>{if(a&&(r=a(t,r)),typeof r=="object"&&r!==null){if(e.has(r))return;e.add(r)}return r}},st=(a,e)=>JSON.stringify(a,it(e));function zt(a,e,t,r,n){const i=Object.keys(a),s=r==null?void 0:r.channels,l=r==null?void 0:r.audioCodec,d=n==null?void 0:n.videoCodec,c=s&&parseInt(s)===2;let m=!1,_=!1,C=1/0,L=1/0,R=1/0,ae=1/0,he=0,Ne=[];const{preferHDR:Je,allowedVideoRanges:We}=pt(e,n);for(let $t=i.length;$t--;){const Xt=a[i[$t]];m||(m=Xt.channels[2]>0),C=Math.min(C,Xt.minHeight),L=Math.min(L,Xt.minFramerate),R=Math.min(R,Xt.minBitrate),We.filter(pr=>Xt.videoRanges[pr]>0).length>0&&(_=!0)}C=v(C)?C:0,L=v(L)?L:0;const Et=Math.max(1080,C),St=Math.max(30,L);R=v(R)?R:t,t=Math.max(R,t),_||(e=void 0);const Kt=i.length>1;return{codecSet:i.reduce(($t,Xt)=>{const It=a[Xt];if(Xt===$t)return $t;if(Ne=_?We.filter(pr=>It.videoRanges[pr]>0):[],Kt){if(It.minBitrate>t)return kt(Xt,`min bitrate of ${It.minBitrate} > current estimate of ${t}`),$t;if(!It.hasDefaultAudio)return kt(Xt,"no renditions with default or auto-select sound found"),$t;if(l&&Xt.indexOf(l.substring(0,4))%5!==0)return kt(Xt,`audio codec preference "${l}" not found`),$t;if(s&&!c){if(!It.channels[s])return kt(Xt,`no renditions with ${s} channel sound found (channels options: ${Object.keys(It.channels)})`),$t}else if((!l||c)&&m&&It.channels[2]===0)return kt(Xt,"no renditions with stereo sound found"),$t;if(It.minHeight>Et)return kt(Xt,`min resolution of ${It.minHeight} > maximum of ${Et}`),$t;if(It.minFramerate>St)return kt(Xt,`min framerate of ${It.minFramerate} > maximum of ${St}`),$t;if(!Ne.some(pr=>It.videoRanges[pr]>0))return kt(Xt,`no variants with VIDEO-RANGE of ${st(Ne)} found`),$t;if(d&&Xt.indexOf(d.substring(0,4))%5!==0)return kt(Xt,`video codec preference "${d}" not found`),$t;if(It.maxScore<he)return kt(Xt,`max score of ${It.maxScore} < selected max of ${he}`),$t}return $t&&(we(Xt)>=we($t)||It.fragmentError>a[$t].fragmentError)?$t:(ae=It.minIndex,he=It.maxScore,Xt)},void 0),videoRanges:Ne,preferHDR:Je,minFramerate:L,minBitrate:R,minIndex:ae}}function kt(a,e){Q.log(`[abr] start candidates with "${a}" ignored because ${e}`)}function yt(a){return a.reduce((e,t)=>{let r=e.groups[t.groupId];r||(r=e.groups[t.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(t);const n=t.channels||"2";return r.channels[n]=(r.channels[n]||0)+1,r.hasDefault=r.hasDefault||t.default,r.hasAutoSelect=r.hasAutoSelect||t.autoselect,r.hasDefault&&(e.hasDefaultAudio=!0),r.hasAutoSelect&&(e.hasAutoSelectAudio=!0),e},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function Te(a,e,t,r){return a.slice(t,r+1).reduce((n,i,s)=>{if(!i.codecSet)return n;const l=i.audioGroups;let d=n[i.codecSet];d||(n[i.codecSet]=d={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:s,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!l,fragmentError:0}),d.minBitrate=Math.min(d.minBitrate,i.bitrate);const c=Math.min(i.height,i.width);return d.minHeight=Math.min(d.minHeight,c),d.minFramerate=Math.min(d.minFramerate,i.frameRate),d.minIndex=Math.min(d.minIndex,s),d.maxScore=Math.max(d.maxScore,i.score),d.fragmentError+=i.fragmentError,d.videoRanges[i.videoRange]=(d.videoRanges[i.videoRange]||0)+1,l&&l.forEach(m=>{if(!m)return;const _=e.groups[m];_&&(d.hasDefaultAudio=d.hasDefaultAudio||e.hasDefaultAudio?_.hasDefault:_.hasAutoSelect||!e.hasDefaultAudio&&!e.hasAutoSelectAudio,Object.keys(_.channels).forEach(C=>{d.channels[C]=(d.channels[C]||0)+_.channels[C]}))}),n},{})}function Ge(a){if(!a)return a;const{lang:e,assocLang:t,characteristics:r,channels:n,audioCodec:i}=a;return{lang:e,assocLang:t,characteristics:r,channels:n,audioCodec:i}}function rt(a,e,t){if("attrs"in a){const r=e.indexOf(a);if(r!==-1)return r}for(let r=0;r<e.length;r++){const n=e[r];if(wt(a,n,t))return r}return-1}function wt(a,e,t){const{groupId:r,name:n,lang:i,assocLang:s,default:l}=a,d=a.forced;return(r===void 0||e.groupId===r)&&(n===void 0||e.name===n)&&(i===void 0||_t(i,e.lang))&&(i===void 0||e.assocLang===s)&&(l===void 0||e.default===l)&&(d===void 0||e.forced===d)&&(!("characteristics"in a)||Wt(a.characteristics||"",e.characteristics))&&(t===void 0||t(a,e))}function _t(a,e="--"){return a.length===e.length?a===e:a.startsWith(e)||e.startsWith(a)}function Wt(a,e=""){const t=a.split(","),r=e.split(",");return t.length===r.length&&!t.some(n=>r.indexOf(n)===-1)}function Dt(a,e){const{audioCodec:t,channels:r}=a;return(t===void 0||(e.audioCodec||"").substring(0,4)===t.substring(0,4))&&(r===void 0||r===(e.channels||"2"))}function ir(a,e,t,r,n){const i=e[r],l=e.reduce((C,L,R)=>{const ae=L.uri;return(C[ae]||(C[ae]=[])).push(R),C},{})[i.uri];l.length>1&&(r=Math.max.apply(Math,l));const d=i.videoRange,c=i.frameRate,m=i.codecSet.substring(0,4),_=lr(e,r,C=>{if(C.videoRange!==d||C.frameRate!==c||C.codecSet.substring(0,4)!==m)return!1;const L=C.audioGroups,R=t.filter(ae=>!L||L.indexOf(ae.groupId)!==-1);return rt(a,R,n)>-1});return _>-1?_:lr(e,r,C=>{const L=C.audioGroups,R=t.filter(ae=>!L||L.indexOf(ae.groupId)!==-1);return rt(a,R,n)>-1})}function lr(a,e,t){for(let r=e;r>-1;r--)if(t(a[r]))return r;for(let r=e+1;r<a.length;r++)if(t(a[r]))return r;return-1}function dr(a,e){var t;return!!a&&a!==((t=e.loadLevelObj)==null?void 0:t.uri)}class Sr extends ie{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.bwEstimator=void 0,this._abandonRulesCheck=t=>{var r;const{fragCurrent:n,partCurrent:i,hls:s}=this,{autoLevelEnabled:l,media:d}=s;if(!n||!d)return;const c=performance.now(),m=i?i.stats:n.stats,_=i?i.duration:n.duration,C=c-m.loading.start,L=s.minAutoLevel,R=n.level,ae=this._nextAutoLevel;if(m.aborted||m.loaded&&m.loaded===m.total||R<=L){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const he=ae>-1&&ae!==R,Ne=!!t||he;if(!Ne&&(d.paused||!d.playbackRate||!d.readyState))return;const Je=s.mainForwardBufferInfo;if(!Ne&&Je===null)return;const We=this.bwEstimator.getEstimateTTFB(),Et=Math.abs(d.playbackRate);if(C<=Math.max(We,1e3*(_/(Et*2))))return;const St=Je?Je.len/Et:0,Kt=m.loading.first?m.loading.first-m.loading.start:-1,At=m.loaded&&Kt>-1,$t=this.getBwEstimate(),Xt=s.levels,It=Xt[R],pr=Math.max(m.loaded,Math.round(_*(n.bitrate||It.averageBitrate)/8));let wr=At?C-Kt:C;wr<1&&At&&(wr=Math.min(C,m.loaded*8/$t));const xn=At?m.loaded*1e3/wr:0,qr=We/1e3,Kr=xn?(pr-m.loaded)/xn:pr*8/$t+qr;if(Kr<=St)return;const Or=xn?xn*8:$t,Vr=((r=(t==null?void 0:t.details)||this.hls.latestLevelDetails)==null?void 0:r.live)===!0,Hr=this.hls.config.abrBandWidthUpFactor;let gr=Number.POSITIVE_INFINITY,_r;for(_r=R-1;_r>L;_r--){const Dn=Xt[_r].maxBitrate,Fn=!Xt[_r].details||Vr;if(gr=this.getTimeToLoadFrag(qr,Or,_*Dn,Fn),gr<Math.min(St,_+qr))break}if(gr>=Kr||gr>_*10)return;At?this.bwEstimator.sample(C-Math.min(We,Kt),m.loaded):this.bwEstimator.sampleTTFB(C);const on=Xt[_r].maxBitrate;this.getBwEstimate()*Hr>on&&this.resetEstimator(on);const Jr=this.findBestLevel(on,L,_r,0,St,1,1);Jr>-1&&(_r=Jr),this.warn(`Fragment ${n.sn}${i?" part "+i.index:""} of level ${R} is loading too slowly;
Fragment duration: ${n.duration.toFixed(3)}
Time to underbuffer: ${St.toFixed(3)} s
Estimated load time for current fragment: ${Kr.toFixed(3)} s
Estimated load time for down switch fragment: ${gr.toFixed(3)} s
TTFB estimate: ${Kt|0} ms
Current BW estimate: ${v($t)?$t|0:"Unknown"} bps
New BW estimate: ${this.getBwEstimate()|0} bps
Switching to level ${_r} @ ${on|0} bps`),s.nextLoadLevel=s.nextAutoLevel=_r,this.clearTimer();const _n=()=>{if(this.clearTimer(),this.fragCurrent===n&&this.hls.loadLevel===_r&&_r>0){const Dn=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${_r>0?"and switching down":""}
Fragment duration: ${n.duration.toFixed(3)} s
Time to underbuffer: ${Dn.toFixed(3)} s`),n.abortRequests(),this.fragCurrent=this.partCurrent=null,_r>L){let Fn=this.findBestLevel(this.hls.levels[L].bitrate,L,_r,0,Dn,1,1);Fn===-1&&(Fn=L),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Fn,this.resetEstimator(this.hls.levels[Fn].bitrate)}}};he||Kr>gr*2?_n():this.timer=self.setInterval(_n,gr*1e3),s.trigger(p.FRAG_LOAD_EMERGENCY_ABORTED,{frag:n,part:i,stats:m})},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 ne(e.abrEwmaSlowVoD,e.abrEwmaFastVoD,e.abrEwmaDefaultEstimate)}registerListeners(){const{hls:e}=this;e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.FRAG_LOADING,this.onFragLoading,this),e.on(p.FRAG_LOADED,this.onFragLoaded,this),e.on(p.FRAG_BUFFERED,this.onFragBuffered,this),e.on(p.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(p.LEVEL_LOADED,this.onLevelLoaded,this),e.on(p.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(p.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.on(p.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e&&(e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.FRAG_LOADING,this.onFragLoading,this),e.off(p.FRAG_LOADED,this.onFragLoaded,this),e.off(p.FRAG_BUFFERED,this.onFragBuffered,this),e.off(p.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(p.LEVEL_LOADED,this.onLevelLoaded,this),e.off(p.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(p.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),e.off(p.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(e,t){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,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 r=t.frag;if(!this.ignoreFragment(r)){if(!r.bitrateTest){var n;this.fragCurrent=r,this.partCurrent=(n=t.part)!=null?n: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 O.BUFFER_ADD_CODEC_ERROR:case O.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case O.FRAG_LOAD_TIMEOUT:{const r=t.frag,{fragCurrent:n,partCurrent:i}=this;if(r&&n&&r.sn===n.sn&&r.level===n.level){const s=performance.now(),l=i?i.stats:r.stats,d=s-l.loading.start,c=l.loading.first?l.loading.first-l.loading.start:-1;if(l.loaded&&c>-1){const _=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(d-Math.min(_,c),l.loaded)}else this.bwEstimator.sampleTTFB(d)}break}}}getTimeToLoadFrag(e,t,r,n){const i=e+r/t,s=n?e+this.lastLevelLoadSec:0;return i+s}onLevelLoaded(e,t){const r=this.hls.config,{loading:n}=t.stats,i=n.end-n.first;v(i)&&(this.lastLevelLoadSec=i/1e3),t.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(t.levelInfo)}onFragLoaded(e,{frag:t,part:r}){const n=r?r.stats:t.stats;if(t.type===oe.MAIN&&this.bwEstimator.sampleTTFB(n.loading.first-n.loading.start),!this.ignoreFragment(t)){if(this.clearTimer(),t.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const i=r?r.duration:t.duration,s=this.hls.levels[t.level],l=(s.loaded?s.loaded.bytes:0)+n.loaded,d=(s.loaded?s.loaded.duration:0)+i;s.loaded={bytes:l,duration:d},s.realBitrate=Math.round(8*l/d)}if(t.bitrateTest){const i={stats:n,frag:t,part:r,id:t.type};this.onFragBuffered(p.FRAG_BUFFERED,i),t.bitrateTest=!1}else this.lastLoadedFragLevel=t.level}}onFragBuffered(e,t){const{frag:r,part:n}=t,i=n!=null&&n.stats.loaded?n.stats:r.stats;if(i.aborted||this.ignoreFragment(r))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(),r.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(e){return e.type!==oe.MAIN||e.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:e,minAutoLevel:t}=this.hls,r=this.getBwEstimate(),n=this.hls.config.maxStarvationDelay,i=this.findBestLevel(r,t,e,0,n,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,r=this.bwEstimator.canEstimate(),n=this.lastLoadedFragLevel>-1;if(e!==-1&&(!r||!n||this.nextAutoLevelKey===this.getAutoLevelKey()))return e;const i=r&&n?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:r}=this;if(r.levels.length<=1)return r.loadLevel;const{maxAutoLevel:n,config:i,minAutoLevel:s}=r,l=t?t.duration:e?e.duration:0,d=this.getBwEstimate(),c=this.getStarvationDelay();let m=i.abrBandWidthFactor,_=i.abrBandWidthUpFactor;if(c){const he=this.findBestLevel(d,s,n,c,0,m,_);if(he>=0)return this.rebufferNotice=-1,he}let C=l?Math.min(l,i.maxStarvationDelay):i.maxStarvationDelay;if(!c){const he=this.bitrateTestDelay;he&&(C=(l?Math.min(l,i.maxLoadingDelay):i.maxLoadingDelay)-he,this.info(`bitrate test took ${Math.round(1e3*he)}ms, set first fragment max fetchDuration to ${Math.round(1e3*C)} ms`),m=_=1)}const L=this.findBestLevel(d,s,n,c,C,m,_);if(this.rebufferNotice!==L&&(this.rebufferNotice=L,this.info(`${c?"rebuffering expected":"buffer is empty"}, optimal quality level ${L}`)),L>-1)return L;const R=r.levels[s],ae=r.loadLevelObj;return ae&&(R==null?void 0:R.bitrate)<ae.bitrate?s:r.loadLevel}getStarvationDelay(){const e=this.hls,t=e.media;if(!t)return 1/0;const r=t&&t.playbackRate!==0?Math.abs(t.playbackRate):1,n=e.mainForwardBufferInfo;return(n?n.len:0)/r}getBwEstimate(){return this.bwEstimator.canEstimate()?this.bwEstimator.getEstimate():this.hls.config.abrEwmaDefaultEstimate}findBestLevel(e,t,r,n,i,s,l){var d;const c=n+i,m=this.lastLoadedFragLevel,_=m===-1?this.hls.firstLevel:m,{fragCurrent:C,partCurrent:L}=this,{levels:R,allAudioTracks:ae,loadLevel:he,config:Ne}=this.hls;if(R.length===1)return 0;const Je=R[_],We=!!((d=this.hls.latestLevelDetails)!=null&&d.live),Et=he===-1||m===-1;let St,Kt="SDR",At=(Je==null?void 0:Je.frameRate)||0;const{audioPreference:$t,videoPreference:Xt}=Ne,It=this.audioTracksByGroup||(this.audioTracksByGroup=yt(ae));let pr=-1;if(Et){if(this.firstSelection!==-1)return this.firstSelection;const Or=this.codecTiers||(this.codecTiers=Te(R,It,t,r)),Vr=zt(Or,Kt,e,$t,Xt),{codecSet:Hr,videoRanges:gr,minFramerate:_r,minBitrate:on,minIndex:Jr,preferHDR:_n}=Vr;pr=Jr,St=Hr,Kt=_n?gr[gr.length-1]:gr[0],At=_r,e=Math.max(e,on),this.log(`picked start tier ${st(Vr)}`)}else St=Je==null?void 0:Je.codecSet,Kt=Je==null?void 0:Je.videoRange;const wr=L?L.duration:C?C.duration:0,xn=this.bwEstimator.getEstimateTTFB()/1e3,qr=[];for(let Or=r;Or>=t;Or--){var Kr;const Vr=R[Or],Hr=Or>_;if(!Vr)continue;if(Ne.useMediaCapabilities&&!Vr.supportedResult&&!Vr.supportedPromise){const Fn=navigator.mediaCapabilities;typeof(Fn==null?void 0:Fn.decodingInfo)=="function"&&(bt(Vr,It,Kt,At,e,$t)||Ke(Vr.videoCodec))?(Vr.supportedPromise=et(Vr,It,Fn),Vr.supportedPromise.then(jn=>{if(!this.hls)return;Vr.supportedResult=jn;const Ti=this.hls.levels,Ri=Ti.indexOf(Vr);jn.error?this.warn(`MediaCapabilities decodingInfo error: "${jn.error}" for level ${Ri} ${st(jn)}`):jn.supported||(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${Ri} ${st(jn)}`),Ri>-1&&Ti.length>1&&(this.log(`Removing unsupported level ${Ri}`),this.hls.removeLevel(Ri),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))})):Vr.supportedResult=Ie}if((St&&Vr.codecSet!==St||Kt&&Vr.videoRange!==Kt||Hr&&At>Vr.frameRate||!Hr&&At>0&&At<Vr.frameRate||Vr.supportedResult&&!((Kr=Vr.supportedResult.decodingInfoResults)!=null&&Kr[0].smooth))&&(!Et||Or!==pr)){qr.push(Or);continue}const gr=Vr.details,_r=(L?gr==null?void 0:gr.partTarget:gr==null?void 0:gr.averagetargetduration)||wr;let on;Hr?on=l*e:on=s*e;const Jr=wr&&n>=wr*2&&i===0?Vr.averageBitrate:Vr.maxBitrate,_n=this.getTimeToLoadFrag(xn,on,Jr*_r,gr===void 0);if(on>=Jr&&(Or===m||Vr.loadError===0&&Vr.fragmentError===0)&&(_n<=xn||!v(_n)||We&&!this.bitrateTestDelay||_n<c)){const Fn=this.forcedAutoLevel;return Or!==he&&(Fn===-1||Fn!==he)&&(qr.length&&this.trace(`Skipped level(s) ${qr.join(",")} of ${r} max with CODECS and VIDEO-RANGE:"${R[qr[0]].codecs}" ${R[qr[0]].videoRange}; not compatible with "${St}" ${Kt}`),this.info(`switch candidate:${_}->${Or} adjustedbw(${Math.round(on)})-bitrate=${Math.round(on-Jr)} ttfb:${xn.toFixed(1)} avgDuration:${_r.toFixed(1)} maxFetchDuration:${c.toFixed(1)} fetchDuration:${_n.toFixed(1)} firstSelection:${Et} codecSet:${Vr.codecSet} videoRange:${Vr.videoRange} hls.loadLevel:${he}`)),Et&&(this.firstSelection=Or),Or}}return-1}set nextAutoLevel(e){const t=this.deriveNextAutoLevel(e);this._nextAutoLevel!==t&&(this.nextAutoLevelKey="",this._nextAutoLevel=t)}deriveNextAutoLevel(e){const{maxAutoLevel:t,minAutoLevel:r}=this.hls;return Math.min(Math.max(e,r),t)}}const Tr={search:function(a,e){let t=0,r=a.length-1,n=null,i=null;for(;t<=r;){n=(t+r)/2|0,i=a[n];const s=e(i);if(s>0)t=n+1;else if(s<0)r=n-1;else return i}return null}};function kr(a,e,t){if(e===null||!Array.isArray(a)||!a.length||!v(e))return null;const r=a[0].programDateTime;if(e<(r||0))return null;const n=a[a.length-1].endProgramDateTime;if(e>=(n||0))return null;t=t||0;for(let i=0;i<a.length;++i){const s=a[i];if($r(e,t,s))return s}return null}function mr(a,e,t=0,r=0,n=.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)&&Gr(t,r,i)===0||ur(i,a,Math.min(n,r))))return i;const s=Tr.search(e,Gr.bind(null,t,r));return s&&(s!==a||!i)?s:i}function ur(a,e,t){if(e&&e.start===0&&e.level<a.level&&(e.endPTS||0)>0){const r=e.tagList.reduce((n,i)=>(i[0]==="INF"&&(n+=parseFloat(i[1])),n),t);return a.start<=r}return!1}function Gr(a=0,e=0,t){if(t.start<=a&&t.start+t.duration>a)return 0;const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0));return t.start+t.duration-r<=a?1:t.start-r>a&&t.start?-1:0}function $r(a,e,t){const r=Math.min(e,t.duration+(t.deltaPTS?t.deltaPTS:0))*1e3;return(t.endProgramDateTime||0)-r>a}function Wr(a,e){return Tr.search(a,t=>t.cc<e?1:t.cc>e?-1:0)}function Rr(a,e,t){if(a&&a.startCC<=e&&a.endCC>=e){const r=t.start,n=t.end;let i=a.fragments;if(!t.relurl){const{fragmentHint:s}=a;s&&(i=i.concat(s))}return Tr.search(i,s=>s.cc<e||s.end<=r?1:s.cc>e||s.start>=n?-1:0)}return null}function Dr(a){switch(a.details){case O.FRAG_LOAD_TIMEOUT:case O.KEY_LOAD_TIMEOUT:case O.LEVEL_LOAD_TIMEOUT:case O.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Pr(a,e){const t=Dr(e);return a.default[`${t?"timeout":"error"}Retry`]}function jr(a,e){const t=a.backoff==="linear"?1:Math.pow(2,e);return Math.min(t*a.retryDelayMs,a.maxRetryDelayMs)}function Qr(a){return A(A({},a),{errorRetry:null,timeoutRetry:null})}function ln(a,e,t,r){if(!a)return!1;const n=r==null?void 0:r.code,i=e<a.maxNumRetry&&(Yr(n)||!!t);return a.shouldRetry?a.shouldRetry(a,e,t,r,i):i}function Yr(a){return a===0&&navigator.onLine===!1||!!a&&(a<400||a>499)}var Fr={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},dt={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4};class Cr extends ie{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(p.ERROR,this.onError,this),e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const e=this.hls;e&&(e.off(p.ERROR,this.onError,this),e.off(p.ERROR,this.onErrorOut,this),e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.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)===oe.MAIN?e.level:this.hls.loadLevel}onManifestLoading(){this.playlistError=0,this.penalizedRenditions={}}onLevelUpdated(){this.playlistError=0}onError(e,t){var r;if(t.fatal)return;const n=this.hls,i=t.context;switch(t.details){case O.FRAG_LOAD_ERROR:case O.FRAG_LOAD_TIMEOUT:case O.KEY_LOAD_ERROR:case O.KEY_LOAD_TIMEOUT:t.errorAction=this.getFragRetryOrSwitchAction(t);return;case O.FRAG_PARSING_ERROR:if((r=t.frag)!=null&&r.gap){t.errorAction=Zr();return}case O.FRAG_GAP:case O.FRAG_DECRYPT_ERROR:{t.errorAction=this.getFragRetryOrSwitchAction(t),t.errorAction.action=Fr.SendAlternateToPenaltyBox;return}case O.LEVEL_EMPTY_ERROR:case O.LEVEL_PARSING_ERROR:{var s,l;const c=t.parent===oe.MAIN?t.level:n.loadLevel;t.details===O.LEVEL_EMPTY_ERROR&&((s=t.context)!=null&&(l=s.levelDetails)!=null&&l.live)?t.errorAction=this.getPlaylistRetryOrSwitchAction(t,c):(t.levelRetry=!1,t.errorAction=this.getLevelSwitchAction(t,c))}return;case O.LEVEL_LOAD_ERROR:case O.LEVEL_LOAD_TIMEOUT:typeof(i==null?void 0:i.level)=="number"&&(t.errorAction=this.getPlaylistRetryOrSwitchAction(t,i.level));return;case O.AUDIO_TRACK_LOAD_ERROR:case O.AUDIO_TRACK_LOAD_TIMEOUT:case O.SUBTITLE_LOAD_ERROR:case O.SUBTITLE_TRACK_LOAD_TIMEOUT:if(i){const c=n.loadLevelObj;if(c&&(i.type===ce.AUDIO_TRACK&&c.hasAudioGroup(i.groupId)||i.type===ce.SUBTITLE_TRACK&&c.hasSubtitleGroup(i.groupId))){t.errorAction=this.getPlaylistRetryOrSwitchAction(t,n.loadLevel),t.errorAction.action=Fr.SendAlternateToPenaltyBox,t.errorAction.flags=dt.MoveAllAlternatesMatchingHost;return}}return;case O.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{const c=n.loadLevelObj,m=c==null?void 0:c.attrs["HDCP-LEVEL"];m?t.errorAction={action:Fr.SendAlternateToPenaltyBox,flags:dt.MoveAllAlternatesMatchingHDCP,hdcpLevel:m}:this.keySystemError(t)}return;case O.BUFFER_ADD_CODEC_ERROR:case O.REMUX_ALLOC_ERROR:case O.BUFFER_APPEND_ERROR:if(!t.errorAction){var d;t.errorAction=this.getLevelSwitchAction(t,(d=t.level)!=null?d:n.loadLevel)}return;case O.INTERNAL_EXCEPTION:case O.BUFFER_APPENDING_ERROR:case O.BUFFER_FULL_ERROR:case O.LEVEL_SWITCH_ERROR:case O.BUFFER_STALLED_ERROR:case O.BUFFER_SEEK_OVER_HOLE:case O.BUFFER_NUDGE_ON_STALL:t.errorAction=Zr();return}t.type===pe.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 r=this.hls,n=Pr(r.config.playlistLoadPolicy,e),i=this.playlistError++;if(ln(n,i,Dr(e),e.response))return{action:Fr.RetryRequest,flags:dt.None,retryConfig:n,retryCount:i};const l=this.getLevelSwitchAction(e,t);return n&&(l.retryConfig=n,l.retryCount=i),l}getFragRetryOrSwitchAction(e){const t=this.hls,r=this.getVariantLevelIndex(e.frag),n=t.levels[r],{fragLoadPolicy:i,keyLoadPolicy:s}=t.config,l=Pr(e.details.startsWith("key")?s:i,e),d=t.levels.reduce((m,_)=>m+_.fragmentError,0);if(n&&(e.details!==O.FRAG_GAP&&n.fragmentError++,ln(l,d,Dr(e),e.response)))return{action:Fr.RetryRequest,flags:dt.None,retryConfig:l,retryCount:d};const c=this.getLevelSwitchAction(e,r);return l&&(c.retryConfig=l,c.retryCount=d),c}getLevelSwitchAction(e,t){const r=this.hls;t==null&&(t=r.loadLevel);const n=this.hls.levels[t];if(n){var i,s;const c=e.details;n.loadError++,c===O.BUFFER_APPEND_ERROR&&n.fragmentError++;let m=-1;const{levels:_,loadLevel:C,minAutoLevel:L,maxAutoLevel:R}=r;r.autoLevelEnabled||(r.loadLevel=-1);const ae=(i=e.frag)==null?void 0:i.type,Ne=(ae===oe.AUDIO&&c===O.FRAG_PARSING_ERROR||e.sourceBufferName==="audio"&&(c===O.BUFFER_ADD_CODEC_ERROR||c===O.BUFFER_APPEND_ERROR))&&_.some(({audioCodec:Kt})=>n.audioCodec!==Kt),We=e.sourceBufferName==="video"&&(c===O.BUFFER_ADD_CODEC_ERROR||c===O.BUFFER_APPEND_ERROR)&&_.some(({codecSet:Kt,audioCodec:At})=>n.codecSet!==Kt&&n.audioCodec===At),{type:Et,groupId:St}=(s=e.context)!=null?s:{};for(let Kt=_.length;Kt--;){const At=(Kt+C)%_.length;if(At!==C&&At>=L&&At<=R&&_[At].loadError===0){var l,d;const $t=_[At];if(c===O.FRAG_GAP&&ae===oe.MAIN&&e.frag){const Xt=_[At].details;if(Xt){const It=mr(e.frag,Xt.fragments,e.frag.start);if(It!=null&&It.gap)continue}}else{if(Et===ce.AUDIO_TRACK&&$t.hasAudioGroup(St)||Et===ce.SUBTITLE_TRACK&&$t.hasSubtitleGroup(St))continue;if(ae===oe.AUDIO&&(l=n.audioGroups)!=null&&l.some(Xt=>$t.hasAudioGroup(Xt))||ae===oe.SUBTITLE&&(d=n.subtitleGroups)!=null&&d.some(Xt=>$t.hasSubtitleGroup(Xt))||Ne&&n.audioCodec===$t.audioCodec||!Ne&&n.audioCodec!==$t.audioCodec||We&&n.codecSet===$t.codecSet)continue}m=At;break}}if(m>-1&&r.loadLevel!==m)return e.levelRetry=!0,this.playlistError=0,{action:Fr.SendAlternateToPenaltyBox,flags:dt.None,nextAutoLevel:m}}return{action:Fr.SendAlternateToPenaltyBox,flags:dt.MoveAllAlternatesMatchingHost}}onErrorOut(e,t){var r;switch((r=t.errorAction)==null?void 0:r.action){case Fr.DoNothing:break;case Fr.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(t),!t.errorAction.resolved&&t.details!==O.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 Fr.RetryRequest:break}if(t.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(e){const t=this.hls,r=e.errorAction;if(!r)return;const{flags:n,hdcpLevel:i,nextAutoLevel:s}=r;switch(n){case dt.None:this.switchLevel(e,s);break;case dt.MoveAllAlternatesMatchingHDCP:i&&(t.maxHdcpLevel=Vt[Vt.indexOf(i)-1],r.resolved=!0),this.warn(`Restricting playback to HDCP-LEVEL of "${t.maxHdcpLevel}" or lower`);break}r.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===O.BUFFER_ADD_CODEC_ERROR&&e.mimeType&&e.sourceBufferName!=="audiovideo")){const r=Tt(e.mimeType),n=this.hls.levels;for(let i=n.length;i--;)n[i][`${e.sourceBufferName}Codec`]===r&&this.hls.removeLevel(i)}}}function Zr(a){const e={action:Fr.DoNothing,flags:dt.None};return a&&(e.resolved=!0),e}var Br={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"};class fn{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(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.BUFFER_APPENDED,this.onBufferAppended,this),e.on(p.FRAG_BUFFERED,this.onFragBuffered,this),e.on(p.FRAG_LOADED,this.onFragLoaded,this)}_unregisterListeners(){const{hls:e}=this;e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.BUFFER_APPENDED,this.onBufferAppended,this),e.off(p.FRAG_BUFFERED,this.onFragBuffered,this),e.off(p.FRAG_LOADED,this.onFragLoaded,this)}destroy(){this._unregisterListeners(),this.fragments=this.activePartLists=this.endListFragments=this.timeRanges=null}getAppendedFrag(e,t){const r=this.activePartLists[t];if(r)for(let n=r.length;n--;){const i=r[n];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,r){const{fragments:n}=this,i=Object.keys(n);for(let s=i.length;s--;){const l=n[i[s]];if((l==null?void 0:l.body.type)===t&&(!r||l.buffered)){const d=l.body;if(d.start<=e&&e<=d.end)return d}}return null}detectEvictedFragments(e,t,r,n,i){this.timeRanges&&(this.timeRanges[e]=t);const s=(n==null?void 0:n.fragment.sn)||-1;Object.keys(this.fragments).forEach(l=>{const d=this.fragments[l];if(!d||s>=d.body.sn)return;if(!d.buffered&&(!d.loaded||i)){d.body.type===r&&this.removeFragment(d.body);return}const c=d.range[e];if(c){if(c.time.length===0){this.removeFragment(d.body);return}c.time.some(m=>{const _=!this.isTimeBuffered(m.startPTS,m.endPTS,t);return _&&this.removeFragment(d.body),_})}})}detectPartialFragments(e){const t=this.timeRanges;if(!t||e.frag.sn==="initSegment")return;const r=e.frag,n=Ir(r),i=this.fragments[n];if(!i||i.buffered&&r.gap)return;const s=!r.relurl;Object.keys(t).forEach(l=>{const d=r.elementaryStreams[l];if(!d)return;const c=t[l],m=s||d.partial===!0;i.range[l]=this.getBufferedTimes(r,e.part,m,c)}),i.loaded=null,Object.keys(i.range).length?(i.buffered=!0,(i.body.endList=r.endList||i.body.endList)&&(this.endListFragments[i.body.type]=i),An(i)||this.removeParts(r.sn-1,r.type)):this.removeFragment(i.body)}removeParts(e,t){const r=this.activePartLists[t];r&&(this.activePartLists[t]=r.filter(n=>n.fragment.sn>=e))}fragBuffered(e,t){const r=Ir(e);let n=this.fragments[r];!n&&t&&(n=this.fragments[r]={body:e,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},e.gap&&(this.hasGaps=!0)),n&&(n.loaded=null,n.buffered=!0)}getBufferedTimes(e,t,r,n){const i={time:[],partial:r},s=e.start,l=e.end,d=e.minEndPTS||l,c=e.maxStartPTS||s;for(let m=0;m<n.length;m++){const _=n.start(m)-this.bufferPadding,C=n.end(m)+this.bufferPadding;if(c>=_&&d<=C){i.time.push({startPTS:Math.max(s,n.start(m)),endPTS:Math.min(l,n.end(m))});break}else if(s<C&&l>_){const L=Math.max(s,n.start(m)),R=Math.min(l,n.end(m));R>L&&(i.partial=!0,i.time.push({startPTS:L,endPTS:R}))}else if(l<=_)break}return i}getPartialFragment(e){let t=null,r,n,i,s=0;const{bufferPadding:l,fragments:d}=this;return Object.keys(d).forEach(c=>{const m=d[c];m&&An(m)&&(n=m.body.start-l,i=m.body.end+l,e>=n&&e<=i&&(r=Math.min(e-n,i-e),s<=r&&(t=m.body,s=r)))}),t}isEndListAppended(e){const t=this.endListFragments[e];return t!==void 0&&(t.buffered||An(t))}getState(e){const t=Ir(e),r=this.fragments[t];return r?r.buffered?An(r)?Br.PARTIAL:Br.OK:Br.APPENDING:Br.NOT_LOADED}isTimeBuffered(e,t,r){let n,i;for(let s=0;s<r.length;s++){if(n=r.start(s)-this.bufferPadding,i=r.end(s)+this.bufferPadding,e>=n&&t<=i)return!0;if(t<=n)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(e,t){if(t.frag.sn==="initSegment"||t.frag.bitrateTest)return;const r=t.frag,n=t.part?null:t,i=Ir(r);this.fragments[i]={body:r,appendedPTS:null,loaded:n,buffered:!1,range:Object.create(null)}}onBufferAppended(e,t){const{frag:r,part:n,timeRanges:i,type:s}=t;if(r.sn==="initSegment")return;const l=r.type;if(n){let c=this.activePartLists[l];c||(this.activePartLists[l]=c=[]),c.push(n)}this.timeRanges=i;const d=i[s];this.detectEvictedFragments(s,d,l,n)}onFragBuffered(e,t){this.detectPartialFragments(t)}hasFragment(e){const t=Ir(e);return!!this.fragments[t]}hasFragments(e){const{fragments:t}=this,r=Object.keys(t);if(!e)return r.length>0;for(let n=r.length;n--;){const i=t[r[n]];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,r,n,i){n&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const l=this.fragments[s];if(!l)return;const d=l.body;d.type!==r||n&&!d.gap||d.start<t&&d.end>e&&(l.buffered||i)&&this.removeFragment(d)})}removeFragment(e){const t=Ir(e);e.clearElementaryStreamInfo();const r=this.activePartLists[e.type];if(r){const n=e.sn;this.activePartLists[e.type]=r.filter(i=>i.fragment.sn!==n)}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 r=(e=this.hls)==null||(t=e.latestLevelDetails)==null?void 0:t.partList;r&&r.forEach(n=>n.clearElementaryStreamInfo())}}function An(a){var e,t,r;return a.buffered&&(a.body.gap||((e=a.range.video)==null?void 0:e.partial)||((t=a.range.audio)==null?void 0:t.partial)||((r=a.range.audiovideo)==null?void 0:r.partial))}function Ir(a){return`${a.type}_${a.level}_${a.sn}`}var Ar={cbc:0,ctr:1};class rn{constructor(e,t,r){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=e,this.aesIV=t,this.aesMode=r}decrypt(e,t){switch(this.aesMode){case Ar.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},t,e);case Ar.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 nn(a){const e=a.byteLength,t=e&&new DataView(a.buffer).getUint8(e-1);return t?a.slice(0,e-t):a}class sn{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),r=new Uint32Array(4);for(let n=0;n<4;n++)r[n]=t.getUint32(n*4);return r}initTable(){const e=this.sBox,t=this.invSBox,r=this.subMix,n=r[0],i=r[1],s=r[2],l=r[3],d=this.invSubMix,c=d[0],m=d[1],_=d[2],C=d[3],L=new Uint32Array(256);let R=0,ae=0,he=0;for(he=0;he<256;he++)he<128?L[he]=he<<1:L[he]=he<<1^283;for(he=0;he<256;he++){let Ne=ae^ae<<1^ae<<2^ae<<3^ae<<4;Ne=Ne>>>8^Ne&255^99,e[R]=Ne,t[Ne]=R;const Je=L[R],We=L[Je],Et=L[We];let St=L[Ne]*257^Ne*16843008;n[R]=St<<24|St>>>8,i[R]=St<<16|St>>>16,s[R]=St<<8|St>>>24,l[R]=St,St=Et*16843009^We*65537^Je*257^R*16843008,c[Ne]=St<<24|St>>>8,m[Ne]=St<<16|St>>>16,_[Ne]=St<<8|St>>>24,C[Ne]=St,R?(R=Je^L[L[L[Et^Je]]],ae^=L[L[ae]]):R=ae=1}}expandKey(e){const t=this.uint8ArrayToUint32Array_(e);let r=!0,n=0;for(;n<t.length&&r;)r=t[n]===this.key[n],n++;if(r)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,d;const c=this.keySchedule=new Uint32Array(s),m=this.invKeySchedule=new Uint32Array(s),_=this.sBox,C=this.rcon,L=this.invSubMix,R=L[0],ae=L[1],he=L[2],Ne=L[3];let Je,We;for(l=0;l<s;l++){if(l<i){Je=c[l]=t[l];continue}We=Je,l%i===0?(We=We<<8|We>>>24,We=_[We>>>24]<<24|_[We>>>16&255]<<16|_[We>>>8&255]<<8|_[We&255],We^=C[l/i|0]<<24):i>6&&l%i===4&&(We=_[We>>>24]<<24|_[We>>>16&255]<<16|_[We>>>8&255]<<8|_[We&255]),c[l]=Je=(c[l-i]^We)>>>0}for(d=0;d<s;d++)l=s-d,d&3?We=c[l]:We=c[l-4],d<4||l<=4?m[d]=We:m[d]=R[_[We>>>24]]^ae[_[We>>>16&255]]^he[_[We>>>8&255]]^Ne[_[We&255]],m[d]=m[d]>>>0}networkToHostOrderSwap(e){return e<<24|(e&65280)<<8|(e&16711680)>>8|e>>>24}decrypt(e,t,r){const n=this.keySize+6,i=this.invKeySchedule,s=this.invSBox,l=this.invSubMix,d=l[0],c=l[1],m=l[2],_=l[3],C=this.uint8ArrayToUint32Array_(r);let L=C[0],R=C[1],ae=C[2],he=C[3];const Ne=new Int32Array(e),Je=new Int32Array(Ne.length);let We,Et,St,Kt,At,$t,Xt,It,pr,wr,xn,qr,Kr,Or;const Vr=this.networkToHostOrderSwap;for(;t<Ne.length;){for(pr=Vr(Ne[t]),wr=Vr(Ne[t+1]),xn=Vr(Ne[t+2]),qr=Vr(Ne[t+3]),At=pr^i[0],$t=qr^i[1],Xt=xn^i[2],It=wr^i[3],Kr=4,Or=1;Or<n;Or++)We=d[At>>>24]^c[$t>>16&255]^m[Xt>>8&255]^_[It&255]^i[Kr],Et=d[$t>>>24]^c[Xt>>16&255]^m[It>>8&255]^_[At&255]^i[Kr+1],St=d[Xt>>>24]^c[It>>16&255]^m[At>>8&255]^_[$t&255]^i[Kr+2],Kt=d[It>>>24]^c[At>>16&255]^m[$t>>8&255]^_[Xt&255]^i[Kr+3],At=We,$t=Et,Xt=St,It=Kt,Kr=Kr+4;We=s[At>>>24]<<24^s[$t>>16&255]<<16^s[Xt>>8&255]<<8^s[It&255]^i[Kr],Et=s[$t>>>24]<<24^s[Xt>>16&255]<<16^s[It>>8&255]<<8^s[At&255]^i[Kr+1],St=s[Xt>>>24]<<24^s[It>>16&255]<<16^s[At>>8&255]<<8^s[$t&255]^i[Kr+2],Kt=s[It>>>24]<<24^s[At>>16&255]<<16^s[$t>>8&255]<<8^s[Xt&255]^i[Kr+3],Je[t]=Vr(We^L),Je[t+1]=Vr(Kt^R),Je[t+2]=Vr(St^ae),Je[t+3]=Vr(Et^he),L=pr,R=wr,ae=xn,he=qr,t=t+4}return Je.buffer}}class In{constructor(e,t,r){this.subtle=void 0,this.key=void 0,this.aesMode=void 0,this.subtle=e,this.key=t,this.aesMode=r}expandKey(){const e=ai(this.aesMode);return this.subtle.importKey("raw",this.key,{name:e},!1,["encrypt","decrypt"])}}function ai(a){switch(a){case Ar.cbc:return"AES-CBC";case Ar.ctr:return"AES-CTR";default:throw new Error(`[FastAESKey] invalid aes mode ${a}`)}}const Hn=16;class un{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 r=self.crypto;r&&(this.subtle=r.subtle||r.webkitSubtle)}catch(r){}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 r=new Uint8Array(e);return this.reset(),this.removePKCS7Padding?nn(r):r}reset(){this.currentResult=null,this.currentIV=null,this.remainderData=null,this.softwareDecrypter&&(this.softwareDecrypter=null)}decrypt(e,t,r,n){return this.useSoftware?new Promise((i,s)=>{const l=ArrayBuffer.isView(e)?e:new Uint8Array(e);this.softwareDecrypt(l,t,r,n);const d=this.flush();d?i(d.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(e),t,r,n)}softwareDecrypt(e,t,r,n){const{currentIV:i,currentResult:s,remainderData:l}=this;if(n!==Ar.cbc||t.byteLength!==16)return Q.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(e=Lt(l,e),this.remainderData=null);const d=this.getValidChunk(e);if(!d.length)return null;i&&(r=i);let c=this.softwareDecrypter;c||(c=this.softwareDecrypter=new sn),c.expandKey(t);const m=s;return this.currentResult=c.decrypt(d.buffer,0,r),this.currentIV=d.slice(-16).buffer,m||null}webCryptoDecrypt(e,t,r,n){if(this.key!==t||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(e,t,r,n));this.key=t,this.fastAesKey=new In(this.subtle,t,n)}return this.fastAesKey.expandKey().then(i=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new rn(this.subtle,new Uint8Array(r),n).decrypt(e.buffer,i)):Promise.reject(new Error("web crypto not initialized"))).catch(i=>(Q.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${i.name}: ${i.message}`),this.onWebCryptoError(e,t,r,n)))}onWebCryptoError(e,t,r,n){const i=this.enableSoftwareAES;if(i){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(e,t,r,n);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 r=e.length-e.length%Hn;return r!==e.length&&(t=e.slice(0,r),this.remainderData=e.slice(r)),t}logOnce(e){this.logEnabled&&(Q.log(`[decrypter]: ${e}`),this.logEnabled=!1)}}const fr=Math.pow(2,17);class pn{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 r=e.url;if(!r)return Promise.reject(new $n({type:pe.NETWORK_ERROR,details:O.FRAG_LOAD_ERROR,fatal:!1,frag:e,error:new Error(`Fragment does not have a ${r?"part list":"url"}`),networkDetails:null}));this.abort();const n=this.config,i=n.fLoader,s=n.loader;return new Promise((l,d)=>{if(this.loader&&this.loader.destroy(),e.gap)if(e.tagList.some(R=>R[0]==="GAP")){d(Bn(e));return}else e.gap=!1;const c=this.loader=i?new i(n):new s(n),m=hn(e);e.loader=c;const _=Qr(n.fragLoadPolicy.default),C={loadPolicy:_,timeout:_.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:e.sn==="initSegment"?1/0:fr};e.stats=c.stats;const L={onSuccess:(R,ae,he,Ne)=>{this.resetLoader(e,c);let Je=R.data;he.resetIV&&e.decryptdata&&(e.decryptdata.iv=new Uint8Array(Je.slice(0,16)),Je=Je.slice(16)),l({frag:e,part:null,payload:Je,networkDetails:Ne})},onError:(R,ae,he,Ne)=>{this.resetLoader(e,c),d(new $n({type:pe.NETWORK_ERROR,details:O.FRAG_LOAD_ERROR,fatal:!1,frag:e,response:A({url:r,data:void 0},R),error:new Error(`HTTP Error ${R.code} ${R.text}`),networkDetails:he,stats:Ne}))},onAbort:(R,ae,he)=>{this.resetLoader(e,c),d(new $n({type:pe.NETWORK_ERROR,details:O.INTERNAL_ABORTED,fatal:!1,frag:e,error:new Error("Aborted"),networkDetails:he,stats:R}))},onTimeout:(R,ae,he)=>{this.resetLoader(e,c),d(new $n({type:pe.NETWORK_ERROR,details:O.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,error:new Error(`Timeout after ${C.timeout}ms`),networkDetails:he,stats:R}))}};t&&(L.onProgress=(R,ae,he,Ne)=>t({frag:e,part:null,payload:he,networkDetails:Ne})),c.load(m,C,L)})}loadPart(e,t,r){this.abort();const n=this.config,i=n.fLoader,s=n.loader;return new Promise((l,d)=>{if(this.loader&&this.loader.destroy(),e.gap||t.gap){d(Bn(e,t));return}const c=this.loader=i?new i(n):new s(n),m=hn(e,t);e.loader=c;const _=Qr(n.fragLoadPolicy.default),C={loadPolicy:_,timeout:_.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:fr};t.stats=c.stats,c.load(m,C,{onSuccess:(L,R,ae,he)=>{this.resetLoader(e,c),this.updateStatsFromPart(e,t);const Ne={frag:e,part:t,payload:L.data,networkDetails:he};r(Ne),l(Ne)},onError:(L,R,ae,he)=>{this.resetLoader(e,c),d(new $n({type:pe.NETWORK_ERROR,details:O.FRAG_LOAD_ERROR,fatal:!1,frag:e,part:t,response:A({url:m.url,data:void 0},L),error:new Error(`HTTP Error ${L.code} ${L.text}`),networkDetails:ae,stats:he}))},onAbort:(L,R,ae)=>{e.stats.aborted=t.stats.aborted,this.resetLoader(e,c),d(new $n({type:pe.NETWORK_ERROR,details:O.INTERNAL_ABORTED,fatal:!1,frag:e,part:t,error:new Error("Aborted"),networkDetails:ae,stats:L}))},onTimeout:(L,R,ae)=>{this.resetLoader(e,c),d(new $n({type:pe.NETWORK_ERROR,details:O.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e,part:t,error:new Error(`Timeout after ${C.timeout}ms`),networkDetails:ae,stats:L}))}})})}updateStatsFromPart(e,t){const r=e.stats,n=t.stats,i=n.total;if(r.loaded+=n.loaded,i){const d=Math.round(e.duration/t.duration),c=Math.min(Math.round(r.loaded/i),d),_=(d-c)*Math.round(r.loaded/c);r.total=r.loaded+_}else r.total=Math.max(r.loaded,r.total);const s=r.loading,l=n.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 hn(a,e=null){const t=e||a,r={frag:a,part:e,responseType:"arraybuffer",url:t.url,headers:{},rangeStart:0,rangeEnd:0},n=t.byteRangeStartOffset,i=t.byteRangeEndOffset;if(v(n)&&v(i)){var s;let l=n,d=i;if(a.sn==="initSegment"&&hi((s=a.decryptdata)==null?void 0:s.method)){const c=i-n;c%16&&(d=i+(16-c%16)),n!==0&&(r.resetIV=!0,l=n-16)}r.rangeStart=l,r.rangeEnd=d}return r}function Bn(a,e){const t=new Error(`GAP ${a.gap?"tag":"attribute"} found`),r={type:pe.MEDIA_ERROR,details:O.FRAG_GAP,fatal:!1,frag:a,error:t,networkDetails:null};return e&&(r.part=e),(e||a).stats.aborted=!0,new $n(r)}function hi(a){return a==="AES-128"||a==="AES-256"}class $n extends Error{constructor(e){super(e.error.message),this.data=void 0,this.data=e}}class Rn extends ie{constructor(e,t){super(e,t),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(e){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,e),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class Gn{constructor(e,t,r,n=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=yn(),this.buffering={audio:yn(),video:yn(),audiovideo:yn()},this.level=e,this.sn=t,this.id=r,this.size=n,this.part=i,this.partial=s}}function yn(){return{start:0,executeStart:0,executeEnd:0,end:0}}const li={length:0,start:()=>0,end:()=>0};class Nr{static isBuffered(e,t){if(e){const r=Nr.getBuffered(e);for(let n=r.length;n--;)if(t>=r.start(n)&&t<=r.end(n))return!0}return!1}static bufferedRanges(e){if(e){const t=Nr.getBuffered(e);return Nr.timeRangesToArray(t)}return[]}static timeRangesToArray(e){const t=[];for(let r=0;r<e.length;r++)t.push({start:e.start(r),end:e.end(r)});return t}static bufferInfo(e,t,r){if(e){const n=Nr.bufferedRanges(e);if(n.length)return Nr.bufferedInfo(n,t,r)}return{len:0,start:t,end:t,bufferedIndex:-1}}static bufferedInfo(e,t,r){t=Math.max(0,t),e.length>1&&e.sort((m,_)=>m.start-_.start||_.end-m.end);let n=-1,i=[];if(r)for(let m=0;m<e.length;m++){t>=e[m].start&&t<=e[m].end&&(n=m);const _=i.length;if(_){const C=i[_-1].end;e[m].start-C<r?e[m].end>C&&(i[_-1].end=e[m].end):i.push(e[m])}else i.push(e[m])}else i=e;let s=0,l,d=t,c=t;for(let m=0;m<i.length;m++){const _=i[m].start,C=i[m].end;if(n===-1&&t>=_&&t<=C&&(n=m),t+r>=_&&t<C)d=_,c=C,s=c-t;else if(t+r<_){l=_;break}}return{len:s,start:d||0,end:c||0,nextStart:l,buffered:e,bufferedIndex:n}}static getBuffered(e){try{return e.buffered||li}catch(t){return Q.log("failed to get media.buffered",t),li}}}const ni=/\{\$([a-zA-Z0-9-_]+)\}/g;function ti(a){return ni.test(a)}function Qn(a,e){if(a.variableList!==null||a.hasVariableRefs){const t=a.variableList;return e.replace(ni,r=>{const n=r.substring(2,r.length-1),i=t==null?void 0:t[n];return i===void 0?(a.playlistParsingError||(a.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${n}"`)),r):i})}return e}function cn(a,e,t){let r=a.variableList;r||(a.variableList=r={});let n,i;if("QUERYPARAM"in e){n=e.QUERYPARAM;try{const s=new self.URL(t).searchParams;if(s.has(n))i=s.get(n);else throw new Error(`"${n}" does not match any query parameter in URI: "${t}"`)}catch(s){a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else n=e.NAME,i=e.VALUE;n in r?a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${n}"`)):r[n]=i||""}function fi(a,e,t){const r=e.IMPORT;if(t&&r in t){let n=a.variableList;n||(a.variableList=n={}),n[r]=t[r]}else a.playlistParsingError||(a.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}const mi=/^(\d+)x(\d+)$/,Xr=/(.+?)=(".*?"|.*?)(?:,|$)/g;class Er{constructor(e,t){typeof e=="string"&&(e=Er.parseAttrList(e,t)),S(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 r=new Uint8Array(t.length/2);for(let n=0;n<t.length/2;n++)r[n]=parseInt(t.slice(n*2,n*2+2),16);return r}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 r=this[e];return r?parseFloat(r):t}enumeratedString(e){return this[e]}enumeratedStringList(e,t){const r=this[e];return(r?r.split(/[ ,]+/):[]).reduce((n,i)=>(n[i.toLowerCase()]=!0,n),t)}bool(e){return this[e]==="YES"}decimalResolution(e){const t=mi.exec(this[e]);if(t!==null)return{width:parseInt(t[1],10),height:parseInt(t[2],10)}}static parseAttrList(e,t){let r;const n={},i='"';for(Xr.lastIndex=0;(r=Xr.exec(e))!==null;){const s=r[1].trim();let l=r[2];const d=l.indexOf(i)===0&&l.lastIndexOf(i)===l.length-1;let c=!1;if(d)l=l.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":c=!0}if(t&&(d||c))l=Qn(t,l);else if(!c&&!d)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":Q.warn(`${e}: attribute ${s} is missing quotes`)}n[s]=l}return n}}const bn="com.apple.hls.interstitial";function en(a){return a!=="ID"&&a!=="CLASS"&&a!=="CUE"&&a!=="START-DATE"&&a!=="DURATION"&&a!=="END-DATE"&&a!=="END-ON-NEXT"}function Jt(a){return a==="SCTE35-OUT"||a==="SCTE35-IN"||a==="SCTE35-CMD"}class gn{constructor(e,t,r=0){var n;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=(n=t==null?void 0:t.tagOrder)!=null?n:r,t){const i=t.attr;for(const s in i)if(Object.prototype.hasOwnProperty.call(e,s)&&e[s]!==i[s]){Q.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${e.ID}"`),this._badValueForSameId=s;break}e=S(new Er({}),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"]);v(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?(Q.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(v(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===bn}get isValid(){return!!this.id&&!this._badValueForSameId&&v(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 Zn=10;class qn{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,r=this.lastPartIndex-e.lastPartIndex;this.updated=this.endSN!==e.endSN||!!r||!!t||!this.live,this.advanced=this.endSN>e.endSN||t>0||t===0&&r>0,this.updated||this.advanced?this.misses=Math.floor(e.misses*.6):this.misses=e.misses+1}get hasProgramDateTime(){return this.fragments.length?v(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||Zn}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 r=e.length;r--;)if(e[r].index>t)return e[r].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 En(a){return a==="AES-128"||a==="AES-256"||a==="AES-256-CTR"}function kn(a){switch(a){case"AES-128":case"AES-256":return Ar.cbc;case"AES-256-CTR":return Ar.ctr;default:throw new Error(`invalid full segment method ${a}`)}}function mn(a){return Uint8Array.from(atob(a),e=>e.charCodeAt(0))}function Nn(a){return Uint8Array.from(unescape(encodeURIComponent(a)),e=>e.charCodeAt(0))}function ui(a){const e=Nn(a).subarray(0,16),t=new Uint8Array(16);return t.set(e,16-e.length),t}function ci(a){const e=function(r,n,i){const s=r[n];r[n]=r[i],r[i]=s};e(a,0,3),e(a,1,2),e(a,4,5),e(a,6,7)}function ri(a){const e=a.split(":");let t=null;if(e[0]==="data"&&e.length===2){const r=e[1].split(";"),n=r[r.length-1].split(",");if(n.length===2){const i=n[0]==="base64",s=n[1];i?(r.splice(-1,1),t=mn(s)):t=ui(s)}}return t}const Vn=typeof self!="undefined"?self:void 0;var vn={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},Jn={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function Li(a){switch(a){case Jn.FAIRPLAY:return vn.FAIRPLAY;case Jn.PLAYREADY:return vn.PLAYREADY;case Jn.WIDEVINE:return vn.WIDEVINE;case Jn.CLEARKEY:return vn.CLEARKEY}}var Oi={CENC:"1077efecc0b24d02ace33c1e52e2fb4b",CLEARKEY:"e2719d58a985b3c9781ab030af78d30e",PLAYREADY:"9a04f07998404286ab92e65be0885f95",WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function Pi(a){if(a===Oi.WIDEVINE)return vn.WIDEVINE;if(a===Oi.PLAYREADY)return vn.PLAYREADY;if(a===Oi.CENC||a===Oi.CLEARKEY)return vn.CLEARKEY}function Ci(a){switch(a){case vn.FAIRPLAY:return Jn.FAIRPLAY;case vn.PLAYREADY:return Jn.PLAYREADY;case vn.WIDEVINE:return Jn.WIDEVINE;case vn.CLEARKEY:return Jn.CLEARKEY}}function Lr(a){const{drmSystems:e,widevineLicenseUrl:t}=a,r=e?[vn.FAIRPLAY,vn.WIDEVINE,vn.PLAYREADY,vn.CLEARKEY].filter(n=>!!e[n]):[];return!r[vn.WIDEVINE]&&t&&r.push(vn.WIDEVINE),r}const Ur=function(a){return Vn!=null&&(a=Vn.navigator)!=null&&a.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Pn(a,e,t,r){let n;switch(a){case vn.FAIRPLAY:n=["cenc","sinf"];break;case vn.WIDEVINE:case vn.PLAYREADY:n=["cenc"];break;case vn.CLEARKEY:n=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${a}`)}return zn(n,e,t,r)}function zn(a,e,t,r){return[{initDataTypes:a,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:e.map(i=>({contentType:`audio/mp4; codecs=${i}`,robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null})),videoCapabilities:t.map(i=>({contentType:`video/mp4; codecs=${i}`,robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}))}]}function wn(a){const e=new Uint16Array(a.buffer,a.byteOffset,a.byteLength/2),t=String.fromCharCode.apply(null,Array.from(e)),r=t.substring(t.indexOf("<"),t.length),s=new DOMParser().parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(s){const l=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(l){const d=mn(l).subarray(0,16);return ci(d),d}}return null}let gi={};class Di{static clearKeyUriToKeyIdMap(){gi={}}constructor(e,t,r,n=[1],i=null){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=r,this.keyFormatVersions=n,this.iv=i,this.encrypted=e?e!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!En(e)}isSupported(){if(this.method){if(En(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case Jn.FAIRPLAY:case Jn.WIDEVINE:case Jn.PLAYREADY:case Jn.CLEARKEY:return["ISO-23001-7","SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(e){if(!this.encrypted||!this.uri)return null;if(En(this.method)&&this.uri&&!this.iv){typeof e!="number"&&(Q.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),e=0);const r=Gi(e);return new Di(this.method,this.uri,"identity",this.keyFormatVersions,r)}const t=ri(this.uri);if(t)switch(this.keyFormat){case Jn.WIDEVINE:this.pssh=t,t.length>=22&&(this.keyId=t.subarray(t.length-22,t.length-6));break;case Jn.PLAYREADY:{const r=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=T(r,null,t),this.keyId=wn(t);break}default:{let r=t.subarray(0,16);if(r.length!==16){const n=new Uint8Array(16);n.set(r,16-r.length),r=n}this.keyId=r;break}}if(!this.keyId||this.keyId.byteLength!==16){let r=gi[this.uri];if(!r){const n=Object.keys(gi).length%Number.MAX_SAFE_INTEGER;r=new Uint8Array(16),new DataView(r.buffer,12,4).setUint32(0,n),gi[this.uri]=r}this.keyId=r}return this}}function Gi(a){const e=new Uint8Array(16);for(let t=12;t<16;t++)e[t]=a>>8*(15-t)&255;return e}const xi=/#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,ss=/#EXT-X-MEDIA:(.*)/g,js=/^#EXT(?:INF|-X-TARGETDURATION):/m,as=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),os=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 Ei{static findGroup(e,t){for(let r=0;r<e.length;r++){const n=e[r];if(n.id===t)return n}}static resolve(e,t){return te.buildAbsoluteURL(t,e,{alwaysNormalize:!0})}static isMediaPlaylist(e){return js.test(e)}static parseMasterPlaylist(e,t){const r=ti(e),n={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:r},i=[];xi.lastIndex=0;let s;for(;(s=xi.exec(e))!=null;)if(s[1]){var l;const c=new Er(s[1],n),m=Qn(n,s[2]),_={attrs:c,bitrate:c.decimalInteger("BANDWIDTH")||c.decimalInteger("AVERAGE-BANDWIDTH"),name:c.NAME,url:Ei.resolve(m,t)},C=c.decimalResolution("RESOLUTION");C&&(_.width=C.width,_.height=C.height),us(c.CODECS,_);const L=c["SUPPLEMENTAL-CODECS"];L&&(_.supplemental={},us(L,_.supplemental)),(l=_.unknownCodecs)!=null&&l.length||i.push(_),n.levels.push(_)}else if(s[3]){const c=s[3],m=s[4];switch(c){case"SESSION-DATA":{const _=new Er(m,n),C=_["DATA-ID"];C&&(n.sessionData===null&&(n.sessionData={}),n.sessionData[C]=_);break}case"SESSION-KEY":{const _=ls(m,t,n);_.encrypted&&_.isSupported()?(n.sessionKeys===null&&(n.sessionKeys=[]),n.sessionKeys.push(_)):Q.warn(`[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "${m}"`);break}case"DEFINE":{{const _=new Er(m,n);cn(n,_,t)}break}case"CONTENT-STEERING":{const _=new Er(m,n);n.contentSteering={uri:Ei.resolve(_["SERVER-URI"],t),pathwayId:_["PATHWAY-ID"]||"."};break}case"START":{n.startTimeOffset=Qi(m);break}}}const d=i.length>0&&i.length<n.levels.length;return n.levels=d?i:n.levels,n.levels.length===0&&(n.playlistParsingError=new Error("no levels found in manifest")),n}static parseMasterPlaylistMedia(e,t,r){let n;const i={},s=r.levels,l={AUDIO:s.map(c=>({id:c.attrs.AUDIO,audioCodec:c.audioCodec})),SUBTITLES:s.map(c=>({id:c.attrs.SUBTITLES,textCodec:c.textCodec})),"CLOSED-CAPTIONS":[]};let d=0;for(ss.lastIndex=0;(n=ss.exec(e))!==null;){const c=new Er(n[1],r),m=c.TYPE;if(m){const _=l[m],C=i[m]||[];i[m]=C;const L=c.LANGUAGE,R=c["ASSOC-LANGUAGE"],ae=c.CHANNELS,he=c.CHARACTERISTICS,Ne=c["INSTREAM-ID"],Je={attrs:c,bitrate:0,id:d++,groupId:c["GROUP-ID"]||"",name:c.NAME||L||"",type:m,default:c.bool("DEFAULT"),autoselect:c.bool("AUTOSELECT"),forced:c.bool("FORCED"),lang:L,url:c.URI?Ei.resolve(c.URI,t):""};if(R&&(Je.assocLang=R),ae&&(Je.channels=ae),he&&(Je.characteristics=he),Ne&&(Je.instreamId=Ne),_!=null&&_.length){const We=Ei.findGroup(_,Je.groupId)||_[0];qi(Je,We,"audioCodec"),qi(Je,We,"textCodec")}C.push(Je)}}return i}static parseLevelPlaylist(e,t,r,n,i,s){var l;const d={url:t},c=new qn(t),m=c.fragments,_=[];let C=null,L=0,R=0,ae=0,he=0,Ne=0,Je=null,We=new Pe(n,d),Et,St,Kt,At=-1,$t=!1,Xt=null,It;if(as.lastIndex=0,c.m3u8=e,c.hasVariableRefs=ti(e),((l=as.exec(e))==null?void 0:l[0])!=="#EXTM3U")return c.playlistParsingError=new Error("Missing format identifier #EXTM3U"),c;for(;(Et=as.exec(e))!==null;){$t&&($t=!1,We=new Pe(n,d),We.playlistOffset=ae,We.start=ae,We.sn=L,We.cc=he,Ne&&(We.bitrate=Ne),We.level=r,C&&(We.initSegment=C,C.rawProgramDateTime&&(We.rawProgramDateTime=C.rawProgramDateTime,C.rawProgramDateTime=null),Xt&&(We.setByteRange(Xt),Xt=null)));const qr=Et[1];if(qr){We.duration=parseFloat(qr);const Kr=(" "+Et[2]).slice(1);We.title=Kr||null,We.tagList.push(Kr?["INF",qr,Kr]:["INF",qr])}else if(Et[3]){if(v(We.duration)){We.playlistOffset=ae,We.start=ae,Kt&&Cs(We,Kt,c),We.sn=L,We.level=r,We.cc=he,m.push(We);const Kr=(" "+Et[3]).slice(1);We.relurl=Qn(c,Kr),Ji(We,Je,_),Je=We,ae+=We.duration,L++,R=0,$t=!0}}else{if(Et=Et[0].match(os),!Et){Q.warn("No matches on slow regex match for level playlist!");continue}for(St=1;St<Et.length&&Et[St]===void 0;St++);const Kr=(" "+Et[St]).slice(1),Or=(" "+Et[St+1]).slice(1),Vr=Et[St+2]?(" "+Et[St+2]).slice(1):null;switch(Kr){case"BYTERANGE":Je?We.setByteRange(Or,Je):We.setByteRange(Or);break;case"PROGRAM-DATE-TIME":We.rawProgramDateTime=Or,We.tagList.push(["PROGRAM-DATE-TIME",Or]),At===-1&&(At=m.length);break;case"PLAYLIST-TYPE":c.type&&vi(c,Kr,Et),c.type=Or.toUpperCase();break;case"MEDIA-SEQUENCE":c.startSN!==0?vi(c,Kr,Et):m.length>0&&Gs(c,Kr,Et),L=c.startSN=parseInt(Or);break;case"SKIP":{c.skippedSegments&&vi(c,Kr,Et);const Hr=new Er(Or,c),gr=Hr.decimalInteger("SKIPPED-SEGMENTS");if(v(gr)){c.skippedSegments+=gr;for(let on=gr;on--;)m.push(null);L+=gr}const _r=Hr.enumeratedString("RECENTLY-REMOVED-DATERANGES");_r&&(c.recentlyRemovedDateranges=(c.recentlyRemovedDateranges||[]).concat(_r.split(" ")));break}case"TARGETDURATION":c.targetduration!==0&&vi(c,Kr,Et),c.targetduration=Math.max(parseInt(Or),1);break;case"VERSION":c.version!==null&&vi(c,Kr,Et),c.version=parseInt(Or);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":c.live||vi(c,Kr,Et),c.live=!1;break;case"#":(Or||Vr)&&We.tagList.push(Vr?[Or,Vr]:[Or]);break;case"DISCONTINUITY":he++,We.tagList.push(["DIS"]);break;case"GAP":We.gap=!0,We.tagList.push([Kr]);break;case"BITRATE":We.tagList.push([Kr,Or]),Ne=parseInt(Or)*1e3,v(Ne)?We.bitrate=Ne:Ne=0;break;case"DATERANGE":{const Hr=new Er(Or,c),gr=new gn(Hr,c.dateRanges[Hr.ID],c.dateRangeTagCount);c.dateRangeTagCount++,gr.isValid||c.skippedSegments?c.dateRanges[gr.id]=gr:Q.warn(`Ignoring invalid DATERANGE tag: "${Or}"`),We.tagList.push(["EXT-X-DATERANGE",Or]);break}case"DEFINE":{{const Hr=new Er(Or,c);"IMPORT"in Hr?fi(c,Hr,s):cn(c,Hr,t)}break}case"DISCONTINUITY-SEQUENCE":c.startCC!==0?vi(c,Kr,Et):m.length>0&&Gs(c,Kr,Et),c.startCC=he=parseInt(Or);break;case"KEY":{const Hr=ls(Or,t,c);if(Hr.isSupported()){if(Hr.method==="NONE"){Kt=void 0;break}Kt||(Kt={}),Kt[Hr.keyFormat]&&(Kt=S({},Kt)),Kt[Hr.keyFormat]=Hr}else Q.warn(`[Keys] Ignoring invalid EXT-X-KEY tag: "${Or}"`);break}case"START":c.startTimeOffset=Qi(Or);break;case"MAP":{const Hr=new Er(Or,c);if(We.duration){const gr=new Pe(n,d);Hs(gr,Hr,r,Kt),C=gr,We.initSegment=C,C.rawProgramDateTime&&!We.rawProgramDateTime&&(We.rawProgramDateTime=C.rawProgramDateTime)}else{const gr=We.byteRangeEndOffset;if(gr){const _r=We.byteRangeStartOffset;Xt=`${gr-_r}@${_r}`}else Xt=null;Hs(We,Hr,r,Kt),C=We,$t=!0}C.cc=he;break}case"SERVER-CONTROL":{It&&vi(c,Kr,Et),It=new Er(Or),c.canBlockReload=It.bool("CAN-BLOCK-RELOAD"),c.canSkipUntil=It.optionalFloat("CAN-SKIP-UNTIL",0),c.canSkipDateRanges=c.canSkipUntil>0&&It.bool("CAN-SKIP-DATERANGES"),c.partHoldBack=It.optionalFloat("PART-HOLD-BACK",0),c.holdBack=It.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{c.partTarget&&vi(c,Kr,Et);const Hr=new Er(Or);c.partTarget=Hr.decimalFloatingPoint("PART-TARGET");break}case"PART":{let Hr=c.partList;Hr||(Hr=c.partList=[]);const gr=R>0?Hr[Hr.length-1]:void 0,_r=R++,on=new Er(Or,c),Jr=new Ue(on,We,d,_r,gr);Hr.push(Jr),We.duration+=Jr.duration;break}case"PRELOAD-HINT":{const Hr=new Er(Or,c);c.preloadHint=Hr;break}case"RENDITION-REPORT":{const Hr=new Er(Or,c);c.renditionReports=c.renditionReports||[],c.renditionReports.push(Hr);break}default:Q.warn(`line parsed but not handled: ${Et}`);break}}}Je&&!Je.relurl?(m.pop(),ae-=Je.duration,c.partList&&(c.fragmentHint=Je)):c.partList&&(Ji(We,Je,_),We.cc=he,c.fragmentHint=We,Kt&&Cs(We,Kt,c)),c.targetduration||(c.playlistParsingError=new Error("#EXT-X-TARGETDURATION is required"));const pr=m.length,wr=m[0],xn=m[pr-1];if(ae+=c.skippedSegments*c.targetduration,ae>0&&pr&&xn){c.averagetargetduration=ae/pr;const qr=xn.sn;c.endSN=qr!=="initSegment"?qr:0,c.live||(xn.endList=!0),wr&&c.startCC===void 0&&(c.startCC=wr.cc),At>0&&(oa(m,At),wr&&_.unshift(wr))}else c.endSN=0,c.startCC=0;return c.fragmentHint&&(ae+=c.fragmentHint.duration),c.totalduration=ae,_.length&&c.dateRangeTagCount&&wr&&wi(_,c),c.endCC=he,c}}function wi(a,e){const t=a.length,r=a[t-1],n=e.live?1/0:e.totalduration,i=Object.keys(e.dateRanges);for(let s=i.length;s--;){const l=e.dateRanges[i[s]],d=l.startDate.getTime();l.tagAnchor=r.ref;for(let c=t;c--;){const m=Si(e,d,a,c,n);if(m!==-1){l.tagAnchor=e.fragments[m].ref;break}}}}function Si(a,e,t,r,n){const i=t[r];if(i){const l=i.programDateTime;if(e>=l||r===0){var s;const d=(((s=t[r+1])==null?void 0:s.start)||n)-i.start;if(e<=l+d*1e3){const c=t[r].sn-a.startSN,m=a.fragments;if(m.length>t.length){const C=(t[r+1]||m[m.length-1]).sn-a.startSN;for(let L=C;L>c;L--){const R=m[L].programDateTime;if(e>=R&&e<R+m[L].duration*1e3)return L}}return c}}}return-1}function ls(a,e,t){var r,n;const i=new Er(a,t),s=(r=i.METHOD)!=null?r:"",l=i.URI,d=i.hexadecimalInteger("IV"),c=i.KEYFORMATVERSIONS,m=(n=i.KEYFORMAT)!=null?n:"identity";l&&i.IV&&!d&&Q.error(`Invalid IV: ${i.IV}`);const _=l?Ei.resolve(l,e):"",C=(c||"1").split("/").map(Number).filter(Number.isFinite);return new Di(s,_,m,C,d)}function Qi(a){const t=new Er(a).decimalFloatingPoint("TIME-OFFSET");return v(t)?t:null}function us(a,e){let t=(a||"").split(/[ ,]+/).filter(r=>r);["video","audio","text"].forEach(r=>{const n=t.filter(i=>$e(i,r));n.length&&(e[`${r}Codec`]=n.map(i=>i.split("/")[0]).join(","),t=t.filter(i=>n.indexOf(i)===-1))}),e.unknownCodecs=t}function qi(a,e,t){const r=e[t];r&&(a[t]=r)}function oa(a,e){let t=a[e];for(let r=e;r--;){const n=a[r];if(!n)return;n.programDateTime=t.programDateTime-n.duration*1e3,t=n}}function Ji(a,e,t){a.rawProgramDateTime?t.push(a):e!=null&&e.programDateTime&&(a.programDateTime=e.endProgramDateTime)}function Hs(a,e,t,r){a.relurl=e.URI,e.BYTERANGE&&a.setByteRange(e.BYTERANGE),a.level=t,a.sn="initSegment",r&&(a.levelkeys=r),a.initSegment=null}function Cs(a,e,t){a.levelkeys=e;const{encryptedFragments:r}=t;(!r.length||r[r.length-1].levelkeys!==e)&&Object.keys(e).some(n=>e[n].isCommonEncryption)&&r.push(a)}function vi(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must not appear more than once (${t[0]})`)}function Gs(a,e,t){a.playlistParsingError=new Error(`#EXT-X-${e} must appear before the first Media Segment (${t[0]})`)}function cs(a,e){const t=e.startPTS;if(v(t)){let r=0,n;e.sn>a.sn?(r=t-a.start,n=a):(r=a.start-t,n=e),n.duration!==r&&n.setDuration(r)}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 Wi(a,e,t,r,n,i){r-t<=0&&(Q.warn("Fragment should have a positive duration",e),r=t+e.duration,i=n+e.duration);let l=t,d=r;const c=e.startPTS,m=e.endPTS;if(v(c)){const he=Math.abs(c-t);v(e.deltaPTS)?e.deltaPTS=Math.max(he,e.deltaPTS):e.deltaPTS=he,l=Math.max(t,c),t=Math.min(t,c),n=Math.min(n,e.startDTS),d=Math.min(r,m),r=Math.max(r,m),i=Math.max(i,e.endDTS)}const _=t-e.start;e.start!==0&&e.setStart(t),e.setDuration(r-e.start),e.startPTS=t,e.maxStartPTS=l,e.startDTS=n,e.endPTS=r,e.minEndPTS=d,e.endDTS=i;const C=e.sn;if(!a||C<a.startSN||C>a.endSN)return 0;let L;const R=C-a.startSN,ae=a.fragments;for(ae[R]=e,L=R;L>0;L--)cs(ae[L],ae[L-1]);for(L=R;L<ae.length-1;L++)cs(ae[L],ae[L+1]);return a.fragmentHint&&cs(ae[ae.length-1],a.fragmentHint),a.PTSKnown=a.alignedSliding=!0,_}function ds(a,e){if(a===e)return;let t=null;const r=a.fragments;for(let d=r.length-1;d>=0;d--){const c=r[d].initSegment;if(c){t=c;break}}a.fragmentHint&&delete a.fragmentHint.endPTS;let n;Ks(a,e,(d,c,m,_)=>{if(e.skippedSegments&&c.cc!==d.cc){const C=d.cc-c.cc;for(let L=m;L<_.length;L++)_[L].cc+=C}v(d.startPTS)&&v(d.endPTS)&&(c.setStart(c.startPTS=d.startPTS),c.startDTS=d.startDTS,c.maxStartPTS=d.maxStartPTS,c.endPTS=d.endPTS,c.endDTS=d.endDTS,c.minEndPTS=d.minEndPTS,c.setDuration(d.endPTS-d.startPTS),c.duration&&(n=c),e.PTSKnown=e.alignedSliding=!0),d.hasStreams&&(c.elementaryStreams=d.elementaryStreams),c.loader=d.loader,d.hasStats&&(c.stats=d.stats),d.initSegment&&(c.initSegment=d.initSegment,t=d.initSegment)});const i=e.fragments,s=e.fragmentHint?i.concat(e.fragmentHint):i;if(t&&s.forEach(d=>{var c;d&&(!d.initSegment||d.initSegment.relurl===((c=t)==null?void 0:c.relurl))&&(d.initSegment=t)}),e.skippedSegments)if(e.deltaUpdateFailed=i.some(d=>!d),e.deltaUpdateFailed){Q.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let d=e.skippedSegments;d--;)i.shift();e.startSN=i[0].sn}else{e.endCC=i[i.length-1].cc,e.canSkipDateRanges&&(e.dateRanges=la(a.dateRanges,e));const d=a.fragments.filter(c=>c.rawProgramDateTime);if(a.hasProgramDateTime&&!e.hasProgramDateTime)for(let c=1;c<s.length;c++)s[c].programDateTime===null&&Ji(s[c],s[c-1],d);wi(d,e)}Ws(a.partList,e.partList,(d,c)=>{c.elementaryStreams=d.elementaryStreams,c.stats=d.stats}),n?Wi(e,n,n.startPTS,n.endPTS,n.startDTS,n.endDTS):_i(a,e),i.length&&(e.totalduration=e.edge-i[0].start),e.driftStartTime=a.driftStartTime,e.driftStart=a.driftStart;const l=e.advancedDateTime;if(e.advanced&&l){const d=e.edge;e.driftStart||(e.driftStartTime=l,e.driftStart=d),e.driftEndTime=l,e.driftEnd=d}else e.driftEndTime=a.driftEndTime,e.driftEnd=a.driftEnd,e.advancedDateTime=a.advancedDateTime;e.requestScheduled===-1&&(e.requestScheduled=a.requestScheduled)}function la(a,e){const{dateRanges:t,recentlyRemovedDateranges:r}=e,n=S({},a);r&&r.forEach(l=>{delete n[l]});const s=Object.keys(n).length;return s&&Object.keys(t).forEach(l=>{const d=n[l],c=new gn(t[l].attr,d);c.isValid?(n[l]=c,d||(c.tagOrder+=s)):Q.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${st(t[l].attr)}"`)}),n}function Ws(a,e,t){if(a&&e){let r=0;for(let n=0,i=a.length;n<=i;n++){const s=a[n],l=e[n+r];s&&l&&s.index===l.index&&s.fragment.sn===l.fragment.sn?t(s,l):r--}}}function Ks(a,e,t){const r=e.skippedSegments,n=Math.max(a.startSN,e.startSN)-e.startSN,i=(a.fragmentHint?1:0)+(r?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,d=a.fragmentHint?a.fragments.concat(a.fragmentHint):a.fragments;for(let c=n;c<=i;c++){const m=d[s+c];let _=l[c];if(r&&!_&&m&&(_=e.fragments[c]=m),m&&_){if(t(m,_,c,l),m.url&&m.url!==_.url){e.playlistParsingError=Ds(`media sequence mismatch ${_.sn}:`,a,e,m,_);return}else if(m.cc!==_.cc){e.playlistParsingError=Ds(`discontinuity sequence mismatch (${m.cc}!=${_.cc})`,a,e,m,_);return}}}}function Ds(a,e,t,r,n){return new Error(`${a} ${n.url}
Playlist starting @${e.startSN}
${e.m3u8}
Playlist starting @${t.startSN}
${t.m3u8}`)}function _i(a,e,t=!0){const r=e.startSN+e.skippedSegments-a.startSN,n=a.fragments,i=r>=0;let s=0;if(i&&r<n.length)s=n[r].start;else if(i&&e.startSN===a.endSN+1)s=a.fragmentEnd;else if(i&&t)s=a.fragmentStart+r*e.levelTargetDuration;else if(!e.skippedSegments&&e.fragmentStart===0)s=a.fragmentStart;else return;hs(e,s)}function hs(a,e){if(e){const t=a.fragments;for(let r=a.skippedSegments;r<t.length;r++)t[r].addStart(e);a.fragmentHint&&a.fragmentHint.addStart(e)}}function Vs(a,e=1/0){let t=1e3*a.targetduration;if(a.updated){const r=a.fragments;if(r.length&&t*4>e){const i=r[r.length-1].duration*1e3;i<t&&(t=i)}}else t/=2;return Math.round(t)}function fs(a,e,t){if(!a)return null;let r=a.fragments[e-a.startSN];return r||(r=a.fragmentHint,r&&r.sn===e)?r:e<a.startSN&&t&&t.sn===e?t:null}function ms(a,e,t){return a?ps(a.partList,e,t):null}function ps(a,e,t){if(a)for(let r=a.length;r--;){const n=a[r];if(n.index===t&&n.fragment.sn===e)return n}return null}function gs(a){a.forEach((e,t)=>{var r;(r=e.details)==null||r.fragments.forEach(n=>{n.level=t,n.initSegment&&(n.initSegment.level=t)})})}function Ki(a,e){for(let r=0,n=a.length;r<n;r++){var t;if(((t=a[r])==null?void 0:t.cc)===e)return a[r]}return null}function Mi(a,e){return!!(a&&e.startCC<a.endCC&&e.endCC>a.startCC)}function Is(a,e){if(a){const t=a.start+e;a.start=a.startPTS=t,a.endPTS=t+a.duration}}function Cn(a,e){const t=e.fragments;for(let r=0,n=t.length;r<n;r++)Is(t[r],a);e.fragmentHint&&Is(e.fragmentHint,a),e.alignedSliding=!0}function Tn(a,e){a&&(Sn(e,a),!e.alignedSliding&&a&&oi(e,a),!e.alignedSliding&&a&&!e.skippedSegments&&_i(a,e,!1))}function Sn(a,e){if(!Mi(e,a))return;const t=Math.min(e.endCC,a.endCC),r=Ki(e.fragments,t),n=Ki(a.fragments,t);if(!r||!n)return;Q.log(`Aligning playlist at start of dicontinuity sequence ${t}`);const i=r.start-n.start;Cn(i,a)}function oi(a,e){if(!a.hasProgramDateTime||!e.hasProgramDateTime)return;const t=a.fragments,r=e.fragments;if(!t.length||!r.length)return;let n,i;const s=Math.min(e.endCC,a.endCC);e.startCC<s&&a.startCC<s&&(n=Ki(r,s),i=Ki(t,s)),(!n||!i)&&(n=r[Math.floor(r.length/2)],i=Ki(t,n.cc)||t[Math.floor(t.length/2)]);const l=n.programDateTime,d=i.programDateTime;if(!l||!d)return;const c=(d-l)/1e3-(i.start-n.start);Cn(c,a)}const Yn={toString:function(a){let e="";const t=a.length;for(let r=0;r<t;r++)e+=`[${a.start(r).toFixed(3)}-${a.end(r).toFixed(3)}]`;return e}},Qt={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 es extends Rn{constructor(e,t,r,n,i){super(n,e.logger),this.hls=void 0,this.fragPrevious=null,this.fragCurrent=null,this.fragmentTracker=void 0,this.transmuxer=null,this._state=Qt.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:d,mediaBuffer:c,state:m}=this,_=d?d.currentTime:0,C=Nr.bufferInfo(c||d,_,s.maxBufferHole);if(this.log(`media seeking to ${v(_)?_.toFixed(3):_}, state: ${m}`),this.state===Qt.ENDED)this.resetLoadingState();else if(l){const L=s.maxFragLookUpTolerance,R=l.start-L,ae=l.start+l.duration+L;if(!C.len||ae<C.start||R>C.end){const he=_>ae;(_<R||he)&&(he&&l.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),l.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}if(d){this.fragmentTracker.removeFragmentsInRange(_,1/0,this.playlistType,!0);const L=this.lastCurrentTime;if(_>L&&(this.lastCurrentTime=_),!this.loadingParts){const R=Math.max(C.end,_),ae=this.shouldLoadParts(this.getLevelDetails(),R);ae&&(this.log(`LL-Part loading ON after seeking to ${_.toFixed(2)} with buffer @${R.toFixed(2)}`),this.loadingParts=ae)}}!this.hls.hasEnoughToStart&&!C.len&&(this.log(`setting startPosition to ${_} because of seek before start`),this.nextLoadPosition=this.startPosition=_),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 pn(e.config),this.keyLoader=r,this.fragmentTracker=t,this.config=e.config,this.decrypter=new un(e.config)}registerListeners(){const{hls:e}=this;e.on(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(p.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(p.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(e){}stopLoad(){if(this.state===Qt.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=Qt.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 r=e.end||0,n=this.config.timelineOffset||0;if(r<=n)return!1;const i=e.nextStart;if(i&&i>n&&i<t.edge||this.media.currentTime<e.start)return!1;const l=t.partList;if(l!=null&&l.length){const c=l[l.length-1];return Nr.isBuffered(this.media,c.start+c.duration/2)}const d=t.fragments[t.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(d)}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 r=this.media=this.mediaBuffer=t.media;r.removeEventListener("seeking",this.onMediaSeeking),r.removeEventListener("ended",this.onMediaEnded),r.addEventListener("seeking",this.onMediaSeeking),r.addEventListener("ended",this.onMediaEnded);const n=this.config;this.levels&&n.autoStartLoad&&this.state===Qt.STOPPED&&this.startLoad(n.startPosition)}onMediaDetaching(e,t){const r=!!t.transferMedia,n=this.media;if(n!==null){if(n.ended&&(this.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),n.removeEventListener("seeking",this.onMediaSeeking),n.removeEventListener("ended",this.onMediaEnded),this.keyLoader&&!r&&this.keyLoader.detach(),this.media=this.mediaBuffer=null,this.loopSn=void 0,r){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=Qt.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,r){this.startFragRequested=!0,this._loadFragForPlayback(e,t,r)}_loadFragForPlayback(e,t,r){const n=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,r,n).then(i=>{if(!i)return;const s=this.state,l=i.frag;if(this.fragContextChanged(l)){(s===Qt.FRAG_LOADING||!this.fragCurrent&&s===Qt.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=Qt.IDLE);return}"payload"in i&&(this.log(`Loaded ${l.type} sn: ${l.sn} of ${this.playlistLabel()} ${l.level}`),this.hls.trigger(p.FRAG_LOADED,i)),this._handleFragmentLoadComplete(i)}).catch(i=>{this.state===Qt.STOPPED||this.state===Qt.ERROR||(this.warn(`Frag error: ${(i==null?void 0:i.message)||i}`),this.resetFragmentLoading(e))})}clearTrackerIfNeeded(e){var t;const{fragmentTracker:r}=this;if(r.getState(e)===Br.APPENDING){const i=e.type,s=this.getFwdBufferInfo(this.mediaBuffer,i),l=Math.max(e.duration,s?s.len:this.config.maxBufferLength),d=this.backtrackFragment;((d?e.sn-d.sn:0)===1||this.reduceMaxBufferLength(l,e.duration))&&r.removeFragment(e)}else((t=this.mediaBuffer)==null?void 0:t.buffered.length)===0?r.removeAllFragments():r.hasParts(e.type)&&(r.detectPartialFragments({frag:e,part:null,stats:e.stats,id:e.type}),r.getState(e)===Br.PARTIAL&&r.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,r=null){if(!(e-t))return;const n={startOffset:e,endOffset:t,type:r};this.hls.trigger(p.BUFFER_FLUSHING,n)}_loadInitSegment(e,t){this._doFragLoad(e,t).then(r=>{const n=r==null?void 0:r.frag;if(!n||this.fragContextChanged(n)||!this.levels)throw new Error("init load aborted");return r}).then(r=>{const{hls:n}=this,{frag:i,payload:s}=r,l=i.decryptdata;if(s&&s.byteLength>0&&l!=null&&l.key&&l.iv&&En(l.method)){const d=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,kn(l.method)).catch(c=>{throw n.trigger(p.ERROR,{type:pe.MEDIA_ERROR,details:O.FRAG_DECRYPT_ERROR,fatal:!1,error:c,reason:c.message,frag:i}),c}).then(c=>{const m=self.performance.now();return n.trigger(p.FRAG_DECRYPTED,{frag:i,payload:c,stats:{tstart:d,tdecrypt:m}}),r.payload=c,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===Qt.STOPPED||this.state===Qt.ERROR||(this.warn(r),this.resetFragmentLoading(e))})}completeInitSegmentLoad(e){const{levels:t}=this;if(!t)throw new Error("init load aborted, missing levels");const r=e.frag.stats;this.state!==Qt.STOPPED&&(this.state=Qt.IDLE),e.frag.data=new Uint8Array(e.payload),r.parsing.start=r.buffering.start=self.performance.now(),r.parsing.end=r.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 r=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:${r?Yn.toString(Nr.getBuffered(r)):"(detached)"})`),G(e)){var n;if(e.type!==oe.SUBTITLE){const s=e.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=Qt.IDLE;return}}const i=(n=this.levels)==null?void 0:n[e.level];i!=null&&i.fragmentError&&(this.log(`Resetting level fragment error count of ${i.fragmentError} on frag buffered`),i.fragmentError=0)}this.state=Qt.IDLE}_handleFragmentLoadComplete(e){const{transmuxer:t}=this;if(!t)return;const{frag:r,part:n,partsLoaded:i}=e,s=!i||i.length===0||i.some(d=>!d),l=new Gn(r.level,r.sn,r.stats.chunkCount+1,0,n?n.index:-1,!s);t.flush(l)}_handleFragmentLoadProgress(e){}_doFragLoad(e,t,r=null,n){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=Qt.KEY_LOADING,this.fragCurrent=e,l=this.keyLoader.load(e).then(_=>{if(!this.fragContextChanged(_.frag))return this.hls.trigger(p.KEY_LOADED,_),this.state===Qt.KEY_LOADING&&(this.state=Qt.IDLE),_}),this.hls.trigger(p.KEY_LOADING,{frag:e}),this.fragCurrent===null&&(l=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!e.encrypted&&s.encryptedFragments.length&&this.keyLoader.loadClear(e,s.encryptedFragments);const d=this.fragPrevious;if(G(e)&&(!d||e.sn!==d.sn)){const _=this.shouldLoadParts(t.details,e.end);_!==this.loadingParts&&(this.log(`LL-Part loading ${_?"ON":"OFF"} loading sn ${d==null?void 0:d.sn}->${e.sn}`),this.loadingParts=_)}if(r=Math.max(e.start,r||0),this.loadingParts&&G(e)){const _=s.partList;if(_&&n){r>e.end&&s.fragmentHint&&(e=s.fragmentHint);const C=this.getNextPart(_,e,r);if(C>-1){const L=_[C];e=this.fragCurrent=L.fragment,this.log(`Loading ${e.type} sn: ${e.sn} part: ${L.index} (${C}/${_.length-1}) of ${this.fragInfo(e,!1,L)}) cc: ${e.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=L.start+L.duration,this.state=Qt.FRAG_LOADING;let R;return l?R=l.then(ae=>!ae||this.fragContextChanged(ae.frag)?null:this.doFragPartsLoad(e,L,t,n)).catch(ae=>this.handleFragLoadError(ae)):R=this.doFragPartsLoad(e,L,t,n).catch(ae=>this.handleFragLoadError(ae)),this.hls.trigger(p.FRAG_LOADING,{frag:e,part:L,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):R}else if(!e.url||this.loadedEndOfParts(_,r))return Promise.resolve(null)}}if(G(e)&&this.loadingParts)this.log(`LL-Part loading OFF after next part miss @${r.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(r.toFixed(3))}`),v(e.sn)&&!this.bitrateTest&&(this.nextLoadPosition=e.start+e.duration),this.state=Qt.FRAG_LOADING;const c=this.config.progressive;let m;return c&&l?m=l.then(_=>!_||this.fragContextChanged(_==null?void 0:_.frag)?null:this.fragmentLoader.load(e,n)).catch(_=>this.handleFragLoadError(_)):m=Promise.all([this.fragmentLoader.load(e,c?n:void 0),l]).then(([_])=>(!c&&_&&n&&n(_),_)).catch(_=>this.handleFragLoadError(_)),this.hls.trigger(p.FRAG_LOADING,{frag:e,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):m}doFragPartsLoad(e,t,r,n){return new Promise((i,s)=>{var l;const d=[],c=(l=r.details)==null?void 0:l.partList,m=_=>{this.fragmentLoader.loadPart(e,_,n).then(C=>{d[_.index]=C;const L=C.part;this.hls.trigger(p.FRAG_LOADED,C);const R=ms(r.details,e.sn,_.index+1)||ps(c,e.sn,_.index+1);if(R)m(R);else return i({frag:e,part:L,partsLoaded:d})}).catch(s)};m(t)})}handleFragLoadError(e){if("data"in e){const t=e.data;e.data&&t.details===O.INTERNAL_ABORTED?this.handleFragLoadAborted(t.frag,t.part):this.hls.trigger(p.ERROR,t)}else this.hls.trigger(p.ERROR,{type:pe.OTHER_ERROR,details:O.INTERNAL_EXCEPTION,err:e,error:e,fatal:!0});return null}_handleTransmuxerFlush(e){const t=this.getCurrentContext(e);if(!t||this.state!==Qt.PARSING){!this.fragCurrent&&this.state!==Qt.STOPPED&&this.state!==Qt.ERROR&&(this.state=Qt.IDLE);return}const{frag:r,part:n,level:i}=t,s=self.performance.now();r.stats.parsing.end=s,n&&(n.stats.parsing.end=s);const l=this.getLevelDetails(),c=l&&r.sn>l.endSN||this.shouldLoadParts(l,r.end);c!==this.loadingParts&&(this.log(`LL-Part loading ${c?"ON":"OFF"} after parsing segment ending @${r.end.toFixed(2)}`),this.loadingParts=c),this.updateLevelTiming(r,n,i,e.partial)}shouldLoadParts(e,t){if(this.config.lowLatencyMode){if(!e)return this.loadingParts;if(e!=null&&e.partList){var r;const i=e.partList[0],s=i.end+(((r=e.fragmentHint)==null?void 0:r.duration)||0);if(t>=s){var n;if((this.hls.hasEnoughToStart?((n=this.media)==null?void 0:n.currentTime)||this.lastCurrentTime:this.getLoadPosition())>i.start-i.fragment.duration)return!0}}}return!1}getCurrentContext(e){const{levels:t,fragCurrent:r}=this,{level:n,sn:i,part:s}=e;if(!(t!=null&&t[n]))return this.warn(`Levels object was unset while buffering fragment ${i} of ${this.playlistLabel()} ${n}. The current chunk will not be buffered.`),null;const l=t[n],d=l.details,c=s>-1?ms(d,i,s):null,m=c?c.fragment:fs(d,i,r);return m?(r&&r!==m&&(m.stats=r.stats),{frag:m,part:c,level:l}):null}bufferFragmentData(e,t,r,n,i){var s;if(!e||this.state!==Qt.PARSING)return;const{data1:l,data2:d}=e;let c=l;if(l&&d&&(c=Lt(l,d)),!((s=c)!=null&&s.length))return;const m={type:e.type,frag:t,part:r,chunkMeta:n,parent:t.type,data:c};if(this.hls.trigger(p.BUFFER_APPENDING,m),e.dropped&&e.independent&&!r){if(i)return;this.flushBufferGap(t)}}flushBufferGap(e){const t=this.media;if(!t)return;if(!Nr.isBuffered(t,t.currentTime)){this.flushMainBuffer(0,e.start);return}const r=t.currentTime,n=Nr.bufferInfo(t,r,0),i=e.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,i*.25),l=Math.max(Math.min(e.start-s,n.end-s),r+s);e.start-l>s&&this.flushMainBuffer(l,e.start)}getFwdBufferInfo(e,t){var r;const n=this.getLoadPosition();if(!v(n))return null;const s=this.lastCurrentTime>n||(r=this.media)!=null&&r.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(e,n,t,s)}getFwdBufferInfoAtPos(e,t,r,n){const i=Nr.bufferInfo(e,t,n);if(i.len===0&&i.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(t,r);if(s&&(i.nextStart<=s.end||s.gap)){const l=Math.max(Math.min(i.nextStart,s.end)-t,n);return Nr.bufferInfo(e,t,l)}}return i}getMaxBufferLength(e){const{config:t}=this;let r;return e?r=Math.max(8*t.maxBufferSize/e,t.maxBufferLength):r=t.maxBufferLength,Math.min(r,t.maxMaxBufferLength)}reduceMaxBufferLength(e,t){const r=this.config,n=Math.max(Math.min(e-t,r.maxBufferLength),t),i=Math.max(e-t*3,r.maxMaxBufferLength/2,n);return i>=n?(r.maxMaxBufferLength=i,this.warn(`Reduce max buffer length to ${i}s`),!0):!1}getAppendedFrag(e,t=oe.MAIN){var r;const n=(r=this.fragmentTracker)==null?void 0:r.getAppendedFrag(e,t);return n&&"fragment"in n?n.fragment:n}getNextFragment(e,t){const r=t.fragments,n=r.length;if(!n)return null;const{config:i}=this,s=r[0].start,l=i.lowLatencyMode&&!!t.partList;let d=null;if(t.live){const _=i.initialLiveManifestSize;if(n<_)return this.warn(`Not enough fragments to start playback (have: ${n}, need: ${_})`),null;if(!t.PTSKnown&&!this.startFragRequested&&this.startPosition===-1||e<s){var c;l&&!this.loadingParts&&(this.log("LL-Part loading ON for initial live fragment"),this.loadingParts=!0),d=this.getInitialLiveFragment(t,r);const C=this.hls.startPosition,L=this.hls.liveSyncPosition,R=d?(C!==-1&&C>=s?C:L)||d.start:e;this.log(`Setting startPosition to ${R} to match start frag at live edge. mainStart: ${C} liveSyncPosition: ${L} frag.start: ${(c=d)==null?void 0:c.start}`),this.startPosition=this.nextLoadPosition=R}}else e<=s&&(d=r[0]);if(!d){const _=this.loadingParts?t.partEnd:t.fragmentEnd;d=this.getFragmentAtPosition(e,_,t)}let m=this.filterReplacedPrimary(d,t);if(!m&&d){const _=d.sn-t.startSN;m=this.filterReplacedPrimary(r[_+1]||null,t)}return this.mapToInitFragWhenRequired(m)}isLoopLoading(e,t){const r=this.fragmentTracker.getState(e);return(r===Br.OK||r===Br.PARTIAL&&!!e.gap)&&this.nextLoadPosition>t}getNextFragmentLoopLoading(e,t,r,n,i){let s=null;if(e.gap&&(s=this.getNextFragment(this.nextLoadPosition,t),s&&!s.gap&&r.nextStart)){const l=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,n,0);if(l!==null&&r.len+l.len>=i){const d=s.sn;return this.loopSn!==d&&(this.log(`buffer full after gaps in "${n}" playlist starting at sn: ${d}`),this.loopSn=d),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(Rs(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(Rs(this.hls.config)&&e.type!==oe.SUBTITLE){const r=this.hls.interstitialsManager,n=r==null?void 0:r.bufferingItem;if(n){const s=n.event;if(s){if(s.appendInPlace||Math.abs(e.start-n.start)>1||n.start===0)return null}else if(e.end<=n.start&&(t==null?void 0:t.live)===!1||e.start>n.end&&n.nextEvent&&(n.nextEvent.appendInPlace||e.start-n.end>1))return null}const i=r==null?void 0:r.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,r){let n=-1,i=!1,s=!0;for(let l=0,d=e.length;l<d;l++){const c=e[l];if(s=s&&!c.independent,n>-1&&r<c.start)break;const m=c.loaded;m?n=-1:(i||c.independent||s)&&c.fragment===t&&(n=l),i=m}return n}loadedEndOfParts(e,t){const r=e[e.length-1];return r&&t>r.start&&r.loaded}getInitialLiveFragment(e,t){const r=this.fragPrevious;let n=null;if(r){if(e.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${r.programDateTime}`),n=kr(t,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!n){const i=r.sn+1;if(i>=e.startSN&&i<=e.endSN){const s=t[i-e.startSN];r.cc===s.cc&&(n=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${n.sn}`))}n||(n=Wr(t,r.cc),n&&this.log(`Live playlist, switching playlist, load frag with same CC: ${n.sn}`))}}else{const i=this.hls.liveSyncPosition;i!==null&&(n=this.getFragmentAtPosition(i,this.bitrateTest?e.fragmentEnd:e.edge,e))}return n}getFragmentAtPosition(e,t,r){const{config:n}=this;let{fragPrevious:i}=this,{fragments:s,endSN:l}=r;const{fragmentHint:d}=r,{maxFragLookUpTolerance:c}=n,m=r.partList,_=!!(this.loadingParts&&m!=null&&m.length&&d);_&&d&&!this.bitrateTest&&m[m.length-1].fragment.sn===d.sn&&(s=s.concat(d),l=d.sn);let C;if(e<t){var L;const ae=e<this.lastCurrentTime||e>t-c||(L=this.media)!=null&&L.paused||!this.startFragRequested?0:c;C=mr(i,s,e,ae)}else C=s[s.length-1];if(C){const R=C.sn-r.startSN,ae=this.fragmentTracker.getState(C);if((ae===Br.OK||ae===Br.PARTIAL&&C.gap)&&(i=C),i&&C.sn===i.sn&&(!_||m[0].fragment.sn>C.sn||!r.live&&!_)&&i&&C.level===i.level){const Ne=s[R+1];C.sn<l&&this.fragmentTracker.getState(Ne)!==Br.OK?C=Ne:C=null}}return C}alignPlaylists(e,t,r){const n=e.fragments.length;if(!n)return this.warn("No fragments in live playlist"),0;const i=e.fragmentStart,s=!t,l=e.alignedSliding&&v(i);if(s||!l&&!i){Tn(r,e);const d=e.fragmentStart;return this.log(`Live playlist sliding: ${d.toFixed(2)} start-sn: ${t?t.startSN:"na"}->${e.startSN} fragments: ${n}`),d}return i}waitForCdnTuneIn(e){return e.live&&e.canBlockReload&&e.partTarget&&e.tuneInGoal>Math.max(e.partHoldBack,e.partTarget*3)}setStartPosition(e,t){let r=this.startPosition;r<t&&(r=-1);const n=this.timelineOffset;if(r===-1){const i=this.startTimeOffset!==null,s=i?this.startTimeOffset:e.startTimeOffset;s!==null&&v(s)?(r=t+s,s<0&&(r+=e.edge),r=Math.min(Math.max(t,r),t+e.totalduration),this.log(`Setting startPosition to ${r} for start time offset ${s} found in ${i?"multivariant":"media"} playlist`),this.startPosition=r):e.live?(r=this.hls.liveSyncPosition||t,this.log(`Setting startPosition to -1 to start at live edge ${r}`),this.startPosition=-1):(this.log("setting startPosition to 0 by default"),this.startPosition=r=0),this.lastCurrentTime=r+n}this.nextLoadPosition=r+n}getLoadPosition(){var e;const{media:t}=this;let r=0;return(e=this.hls)!=null&&e.hasEnoughToStart&&t?r=t.currentTime:this.nextLoadPosition>=0&&(r=this.nextLoadPosition),r}handleFragLoadAborted(e,t){this.transmuxer&&e.type===this.playlistType&&G(e)&&e.stats.aborted&&(this.warn(`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!==Qt.FRAG_LOADING_WAITING_RETRY)&&(this.state=Qt.IDLE)}onFragmentOrKeyLoadError(e,t){if(t.chunkMeta&&!t.frag){const R=this.getCurrentContext(t.chunkMeta);R&&(t.frag=R.frag)}const r=t.frag;if(!r||r.type!==e||!this.levels)return;if(this.fragContextChanged(r)){var n;this.warn(`Frag load error must match current frag to retry ${r.url} > ${(n=this.fragCurrent)==null?void 0:n.url}`);return}const i=t.details===O.FRAG_GAP;i&&this.fragmentTracker.fragBuffered(r,!0);const s=t.errorAction,{action:l,flags:d,retryCount:c=0,retryConfig:m}=s||{},_=!!s&&!!m,C=_&&l===Fr.RetryRequest,L=_&&!s.resolved&&d===dt.MoveAllAlternatesMatchingHost;if(!C&&L&&G(r)&&!r.endList)this.resetFragmentErrors(e),this.treatAsGap(r),s.resolved=!0;else if((C||L)&&c<m.maxNumRetry){this.resetStartWhenNotLoaded(this.levelLastLoaded);const R=jr(m,c);this.warn(`Fragment ${r.sn} of ${e} ${r.level} errored with ${t.details}, retrying loading ${c+1}/${m.maxNumRetry} in ${R}ms`),s.resolved=!0,this.retryDate=self.performance.now()+R,this.state=Qt.FRAG_LOADING_WAITING_RETRY}else if(m&&s)if(this.resetFragmentErrors(e),c<m.maxNumRetry)!i&&l!==Fr.RemoveAlternatePermanently&&(s.resolved=!0);else{this.warn(`${t.details} reached or exceeded max retry (${c})`);return}else l===Fr.SendAlternateToPenaltyBox?this.state=Qt.WAITING_LEVEL:this.state=Qt.ERROR;this.tickImmediate()}reduceLengthAndFlushBuffer(e){if(this.state===Qt.PARSING||this.state===Qt.PARSED){const t=e.frag,r=e.parent,n=this.getFwdBufferInfo(this.mediaBuffer,r),i=n&&n.len>.5;i&&this.reduceMaxBufferLength(n.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 ${r} buffer`),t&&(this.fragmentTracker.removeFragment(t),this.nextLoadPosition=t.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(e){e===oe.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==Qt.STOPPED&&(this.state=Qt.IDLE)}afterBufferFlushed(e,t,r){if(!e)return;const n=Nr.getBuffered(e);this.fragmentTracker.detectEvictedFragments(t,n,r),this.state===Qt.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==Qt.STOPPED&&(this.state=Qt.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,r,n){const i=r.details;if(!i){this.warn("level.details undefined");return}if(!Object.keys(e.elementaryStreams).reduce((d,c)=>{const m=e.elementaryStreams[c];if(m){const _=m.endPTS-m.startPTS;if(_<=0)return this.warn(`Could not parse fragment ${e.sn} ${c} duration reliably (${_})`),d||!1;const C=n?0:Wi(i,e,m.startPTS,m.endPTS,m.startDTS,m.endDTS);return this.hls.trigger(p.LEVEL_PTS_UPDATED,{details:i,level:r,drift:C,type:c,frag:e,start:m.startPTS,end:m.endPTS}),!0}return d},!1)){var l;if(r.fragmentError===0&&this.treatAsGap(e,r),((l=this.transmuxer)==null?void 0:l.error)===null){const d=new Error(`Found no media in fragment ${e.sn} of ${this.playlistLabel()} ${e.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(d.message),this.hls.trigger(p.ERROR,{type:pe.MEDIA_ERROR,details:O.FRAG_PARSING_ERROR,fatal:!1,error:d,frag:e,reason:`Found no media in msn ${e.sn} of ${this.playlistLabel()} "${r.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=Qt.PARSED,this.log(`Parsed ${e.type} sn: ${e.sn}${t?" part: "+t.index:""} of ${this.fragInfo(e,!1,t)})`),this.hls.trigger(p.FRAG_PARSED,{frag:e,part:t})}playlistLabel(){return this.playlistType===oe.MAIN?"level":"track"}fragInfo(e,t=!0,r){var n,i;return`${this.playlistLabel()} ${e.level} (${r?"part":"frag"}:[${((n=t&&!r?e.startPTS:(r||e).start)!=null?n:NaN).toFixed(3)}-${((i=t&&!r?e.endPTS:(r||e).end)!=null?i:NaN).toFixed(3)}]${r&&e.type==="main"?"INDEPENDENT="+(r.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 Rs(a){return!!a.interstitialsController&&a.enableInterstitialPlayback!==!1}class Ls{constructor(){this.chunks=[],this.dataLength=0}push(e){this.chunks.push(e),this.dataLength+=e.length}flush(){const{chunks:e,dataLength:t}=this;let r;if(e.length)e.length===1?r=e[0]:r=ks(e,t);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function ks(a,e){const t=new Uint8Array(e);let r=0;for(let n=0;n<a.length;n++){const i=a[n];t.set(i,r),r+=i.length}return t}var Fi={exports:{}},Vi;function Zs(){return Vi||(Vi=1,function(a){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function n(d,c,m){this.fn=d,this.context=c,this.once=m||!1}function i(d,c,m,_,C){if(typeof m!="function")throw new TypeError("The listener must be a function");var L=new n(m,_||d,C),R=t?t+c:c;return d._events[R]?d._events[R].fn?d._events[R]=[d._events[R],L]:d._events[R].push(L):(d._events[R]=L,d._eventsCount++),d}function s(d,c){--d._eventsCount===0?d._events=new r:delete d._events[c]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var c=[],m,_;if(this._eventsCount===0)return c;for(_ in m=this._events)e.call(m,_)&&c.push(t?_.slice(1):_);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(m)):c},l.prototype.listeners=function(c){var m=t?t+c:c,_=this._events[m];if(!_)return[];if(_.fn)return[_.fn];for(var C=0,L=_.length,R=new Array(L);C<L;C++)R[C]=_[C].fn;return R},l.prototype.listenerCount=function(c){var m=t?t+c:c,_=this._events[m];return _?_.fn?1:_.length:0},l.prototype.emit=function(c,m,_,C,L,R){var ae=t?t+c:c;if(!this._events[ae])return!1;var he=this._events[ae],Ne=arguments.length,Je,We;if(he.fn){switch(he.once&&this.removeListener(c,he.fn,void 0,!0),Ne){case 1:return he.fn.call(he.context),!0;case 2:return he.fn.call(he.context,m),!0;case 3:return he.fn.call(he.context,m,_),!0;case 4:return he.fn.call(he.context,m,_,C),!0;case 5:return he.fn.call(he.context,m,_,C,L),!0;case 6:return he.fn.call(he.context,m,_,C,L,R),!0}for(We=1,Je=new Array(Ne-1);We<Ne;We++)Je[We-1]=arguments[We];he.fn.apply(he.context,Je)}else{var Et=he.length,St;for(We=0;We<Et;We++)switch(he[We].once&&this.removeListener(c,he[We].fn,void 0,!0),Ne){case 1:he[We].fn.call(he[We].context);break;case 2:he[We].fn.call(he[We].context,m);break;case 3:he[We].fn.call(he[We].context,m,_);break;case 4:he[We].fn.call(he[We].context,m,_,C);break;default:if(!Je)for(St=1,Je=new Array(Ne-1);St<Ne;St++)Je[St-1]=arguments[St];he[We].fn.apply(he[We].context,Je)}}return!0},l.prototype.on=function(c,m,_){return i(this,c,m,_,!1)},l.prototype.once=function(c,m,_){return i(this,c,m,_,!0)},l.prototype.removeListener=function(c,m,_,C){var L=t?t+c:c;if(!this._events[L])return this;if(!m)return s(this,L),this;var R=this._events[L];if(R.fn)R.fn===m&&(!C||R.once)&&(!_||R.context===_)&&s(this,L);else{for(var ae=0,he=[],Ne=R.length;ae<Ne;ae++)(R[ae].fn!==m||C&&!R[ae].once||_&&R[ae].context!==_)&&he.push(R[ae]);he.length?this._events[L]=he.length===1?he[0]:he:s(this,L)}return this},l.prototype.removeAllListeners=function(c){var m;return c?(m=t?t+c:c,this._events[m]&&s(this,m)):(this._events=new r,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}(Fi)),Fi.exports}var Ra=Zs(),Ys=F(Ra);const vs="1.6.0",Zi={};function ua(){return typeof __HLS_WORKER_BUNDLE__=="function"}function La(){const a=Zi[vs];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),n={worker:new self.Worker(t),objectURL:t,clientCount:1};return Zi[vs]=n,n}function ka(a){const e=Zi[a];if(e)return e.clientCount++,e;const t=new self.URL(a,self.location.href).href,n={worker:new self.Worker(t),scriptURL:t,clientCount:1};return Zi[a]=n,n}function Oa(a){const e=Zi[a||vs];if(e&&e.clientCount--===1){const{worker:r,objectURL:n}=e;delete Zi[a||vs],n&&self.URL.revokeObjectURL(n),r.terminate()}}function Pa(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 Ps(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 _s(a,e){const t=e;let r=0;for(;Os(a,e);){r+=10;const n=Ps(a,e+6);r+=n,Pa(a,e+10)&&(r+=10),e+=r}if(r>0)return a.subarray(t,t+r)}function Ma(a,e,t,r){const n=[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 L=new Error(`invalid ADTS sampling index:${s}`);a.emit(p.ERROR,p.ERROR,{type:pe.MEDIA_ERROR,details:O.FRAG_PARSING_ERROR,fatal:!0,error:L,reason:L.message});return}const l=(i>>6&3)+1,d=e[t+3]>>6&3|(i&1)<<2,c="mp4a.40."+l,m=n[s];let _=s;(l===5||l===29)&&(_-=3);const C=[l<<3|(_&14)>>1,(_&1)<<7|d<<3];return Q.log(`manifest codec:${r}, parsed codec:${c}, channels:${d}, rate:${m} (ADTS object type:${l} sampling index:${s})`),{config:C,samplerate:m,channelCount:d,codec:c,parsedCodec:c,manifestCodec:r}}function ts(a,e){return a[e]===255&&(a[e+1]&246)===240}function ys(a,e){return a[e+1]&1?7:9}function ca(a,e){return(a[e+3]&3)<<11|a[e+4]<<3|(a[e+5]&224)>>>5}function fo(a,e){return e+5<a.length}function Ms(a,e){return e+1<a.length&&ts(a,e)}function mo(a,e){return fo(a,e)&&ts(a,e)&&ca(a,e)<=a.length-e}function Fa(a,e){if(Ms(a,e)){const t=ys(a,e);if(e+t>=a.length)return!1;const r=ca(a,e);if(r<=t)return!1;const n=e+r;return n===a.length||Ms(a,n)}return!1}function da(a,e,t,r,n){if(!a.samplerate){const i=Ma(e,t,r,n);if(!i)return;S(a,i)}}function Ba(a){return 1024*9e4/a}function Na(a,e){const t=ys(a,e);if(e+t<=a.length){const r=ca(a,e)-t;if(r>0)return{headerLength:t,frameLength:r}}}function $a(a,e,t,r,n){const i=Ba(a.samplerate),s=r+n*i,l=Na(e,t);let d;if(l){const{frameLength:_,headerLength:C}=l,L=C+_,R=Math.max(0,t+L-e.length);R?(d=new Uint8Array(L-C),d.set(e.subarray(t+C,e.length),0)):d=e.subarray(t+C,t+L);const ae={unit:d,pts:s};return R||a.samples.push(ae),{sample:ae,length:L,missing:R}}const c=e.length-t;return d=new Uint8Array(c),d.set(e.subarray(t,e.length),0),{sample:{unit:d,pts:s},length:c,missing:-1}}function Ua(a,e){return Os(a,e)&&Ps(a,e+6)+10<=a.length-e}function ha(a){if(a.size<2)return;const e=Me(a.data,!0),t=new Uint8Array(a.data.subarray(e.length+1));return{key:a.type,info:e,data:t.buffer}}function fa(a){if(a.size<2)return;if(a.type==="TXXX"){let t=1;const r=Me(a.data.subarray(t),!0);t+=r.length+1;const n=Me(a.data.subarray(t));return{key:a.type,info:r,data:n}}const e=Me(a.data.subarray(1));return{key:a.type,info:"",data:e}}function za(a){if(a.type==="WXXX"){if(a.size<2)return;let t=1;const r=Me(a.data.subarray(t),!0);t+=r.length+1;const n=Me(a.data.subarray(t));return{key:a.type,info:r,data:n}}const e=Me(a.data);return{key:a.type,info:"",data:e}}function ja(a){return btoa(String.fromCharCode(...a))}function ma(a,e){if(a<0)return-ma(-a,e);const t=Math.pow(10,e);if(Math.abs(a*t%1-.5)<Number.EPSILON){const n=Math.floor(a*t);return(n%2===0?n:n+1)/t}else return Math.round(a*t)/t}function po(a,e){const t=new URL(a),r=new URL(e);if(t.origin!==r.origin)return a;const n=t.pathname.split("/").slice(1),i=r.pathname.split("/").slice(1,-1);for(;n[0]===i[0];)n.shift(),i.shift();for(;i.length;)i.shift(),n.unshift("..");return n.join("/")}function Ha(){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,n=>{const i=(t+Math.random()*16)%16|0;return t=Math.floor(t/16),(n=="x"?i:i&3|8).toString(16)})}}}function Ga(a){return a instanceof ArrayBuffer?a:a.byteOffset==0&&a.byteLength==a.buffer.byteLength?a.buffer:new Uint8Array(a).buffer}function pa(a,e=0,t=1/0){return Fs(a,e,t,Uint8Array)}function Fs(a,e,t,r){const n=ga(a);let i=1;"BYTES_PER_ELEMENT"in r&&(i=r.BYTES_PER_ELEMENT);const s=Wa(a)?a.byteOffset:0,l=(s+a.byteLength)/i,d=(s+e)/i,c=Math.floor(Math.max(0,Math.min(d,l))),m=Math.floor(Math.min(c+Math.max(t,0),l));return new r(n,c,m-c)}function ga(a){return a instanceof ArrayBuffer?a:a.buffer}function Wa(a){return a&&a.buffer instanceof ArrayBuffer&&a.byteLength!==void 0&&a.byteOffset!==void 0}function go(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 r=a.data.subarray(1).indexOf(0);if(r===-1)return;const n=Me(pa(a.data,1,r)),i=a.data[2+r],s=a.data.subarray(3+r).indexOf(0);if(s===-1)return;const l=Me(pa(a.data,3+r,s));let d;return n==="-->"?d=Me(pa(a.data,4+r+s)):d=Ga(a.data.subarray(4+r+s)),e.mimeType=n,e.pictureType=i,e.description=l,e.data=d,e}function vo(a){return a.type==="PRIV"?ha(a):a.type[0]==="W"?za(a):a.type==="APIC"?go(a):fa(a)}function _o(a){const e=String.fromCharCode(a[0],a[1],a[2],a[3]),t=Ps(a,4),r=10;return{type:e,size:t,data:a.subarray(r,r+t)}}const bs=10,yo=10;function Ka(a){let e=0;const t=[];for(;Os(a,e);){const r=Ps(a,e+6);a[e+5]>>6&1&&(e+=bs),e+=bs;const n=e+r;for(;e+yo<n;){const i=_o(a.subarray(e)),s=vo(i);s&&t.push(s),e+=i.size+bs}Pa(a,e)&&(e+=bs)}return t}function va(a){return a&&a.key==="PRIV"&&a.info==="com.apple.streaming.transportStreamTimestamp"}function bo(a){if(a.data.byteLength===8){const e=new Uint8Array(a.data),t=e[3]&1;let r=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return r/=45,t&&(r+=4772185884e-2),Math.round(r)}}function Xs(a){const e=Ka(a);for(let t=0;t<e.length;t++){const r=e[t];if(va(r))return bo(r)}}let Ai=function(a){return a.audioId3="org.id3",a.dateRange="com.apple.quicktime.HLS",a.emsg="https://aomedia.org/emsg/ID3",a.misbklv="urn:misb:KLV:bin:1910.1",a}({});function Oe(a="",e=9e4){return{type:a,id:-1,pid:-1,inputTimeScale:e,sequenceNumber:-1,samples:[],dropped:0}}class Qs{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,r,n){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,r){}demux(e,t){this.cachedData&&(e=Lt(this.cachedData,e),this.cachedData=null);let r=_s(e,0),n=r?r.length:0,i;const s=this._audioTrack,l=this._id3Track,d=r?Xs(r):void 0,c=e.length;for((this.basePTS===null||this.frameIndex===0&&v(d))&&(this.basePTS=_a(d,t,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),r&&r.length>0&&l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Ai.audioId3,duration:Number.POSITIVE_INFINITY});n<c;){if(this.canParse(e,n)){const m=this.appendFrame(s,e,n);m?(this.frameIndex++,this.lastPTS=m.sample.pts,n+=m.length,i=n):n=c}else Ua(e,n)?(r=_s(e,n),l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:Ai.audioId3,duration:Number.POSITIVE_INFINITY}),n+=r.length,i=n):n++;if(n===c&&i!==c){const m=e.slice(i);this.cachedData?this.cachedData=Lt(this.cachedData,m):this.cachedData=m}}return{audioTrack:s,videoTrack:Oe(),id3Track:l,textTrack:Oe()}}demuxSampleAes(e,t,r){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:Oe(),id3Track:this._id3Track,textTrack:Oe()}}destroy(){this.cachedData=null,this._audioTrack=this._id3Track=void 0}}const _a=(a,e,t)=>{if(v(a))return a*90;const r=t?t.baseTime*9e4/t.timescale:0;return e*9e4+r};let xs=null;const Va=[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],ya=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],Za=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Ya=[0,1,1,4];function Xa(a,e,t,r,n){if(t+24>e.length)return;const i=ba(e,t);if(i&&t+i.frameLength<=e.length){const s=i.samplesPerFrame*9e4/i.sampleRate,l=r+n*s,d={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(d),{sample:d,length:i.frameLength,missing:0}}}function ba(a,e){const t=a[e+1]>>3&3,r=a[e+1]>>1&3,n=a[e+2]>>4&15,i=a[e+2]>>2&3;if(t!==1&&n!==0&&n!==15&&i!==3){const s=a[e+2]>>1&1,l=a[e+3]>>6,d=t===3?3-r:r===3?3:4,c=Va[d*14+n-1]*1e3,_=ya[(t===3?0:t===2?1:2)*3+i],C=l===3?1:2,L=Za[t][r],R=Ya[r],ae=L*8*R,he=Math.floor(L*c/_+s)*R;if(xs===null){const We=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);xs=We?parseInt(We[1]):0}return!!xs&&xs<=87&&r===2&&c>=224e3&&l===0&&(a[e+3]=a[e+3]|128),{sampleRate:_,channelCount:C,frameLength:he,samplesPerFrame:ae}}}function qs(a,e){return a[e]===255&&(a[e+1]&224)===224&&(a[e+1]&6)!==0}function Bs(a,e){return e+1<a.length&&qs(a,e)}function xo(a,e){return qs(a,e)&&4<=a.length-e}function Js(a,e){if(e+1<a.length&&qs(a,e)){const r=ba(a,e);let n=4;r!=null&&r.frameLength&&(n=r.frameLength);const i=e+n;return i===a.length||Bs(a,i)}return!1}class Qa extends Qs{constructor(e,t){super(),this.observer=void 0,this.config=void 0,this.observer=e,this.config=t}resetInitSegment(e,t,r,n){super.resetInitSegment(e,t,r,n),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:t,duration:n,inputTimeScale:9e4,dropped:0}}static probe(e,t){if(!e)return!1;const r=_s(e,0);let n=(r==null?void 0:r.length)||0;if(Js(e,n))return!1;for(let i=e.length;n<i;n++)if(Fa(e,n))return t.log("ADTS sync word found !"),!0;return!1}canParse(e,t){return mo(e,t)}appendFrame(e,t,r){da(e,this.observer,t,r,e.manifestCodec);const n=$a(e,t,r,this.basePTS,this.frameIndex);if(n&&n.missing===0)return n}}const qa=(a,e)=>{let t=0,r=5;e+=r;const n=new Uint32Array(1),i=new Uint32Array(1),s=new Uint8Array(1);for(;r>0;){s[0]=a[e];const l=Math.min(r,8),d=8-l;i[0]=4278190080>>>24+d<<d,n[0]=(s[0]&i[0])>>d,t=t?t<<l|n[0]:n[0],e+=1,r-=l}return t};class Eo extends Qs{constructor(e){super(),this.observer=void 0,this.observer=e}resetInitSegment(e,t,r,n){super.resetInitSegment(e,t,r,n),this._audioTrack={container:"audio/ac-3",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"ac3",samples:[],manifestCodec:t,duration:n,inputTimeScale:9e4,dropped:0}}canParse(e,t){return t+64<e.length}appendFrame(e,t,r){const n=xa(e,t,r,this.basePTS,this.frameIndex);if(n!==-1)return{sample:e.samples[e.samples.length-1],length:n,missing:0}}static probe(e){if(!e)return!1;const t=_s(e,0);if(!t)return!1;const r=t.length;return e[r]===11&&e[r+1]===119&&Xs(t)!==void 0&&qa(e,r)<16}}function xa(a,e,t,r,n){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],d=e[t+4]&63,m=[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][d*3+i]*2;if(t+m>e.length)return-1;const _=e[t+6]>>5;let C=0;_===2?C+=2:(_&1&&_!==1&&(C+=2),_&4&&(C+=2));const L=(e[t+6]<<8|e[t+7])>>12-C&1,ae=[2,1,2,3,3,4,4,5][_]+L,he=e[t+5]>>3,Ne=e[t+5]&7,Je=new Uint8Array([i<<6|he<<1|Ne>>2,(Ne&3)<<6|_<<3|L<<2|d>>4,d<<4&224]),We=1536/l*9e4,Et=r+n*We,St=e.subarray(t,t+m);return a.config=Je,a.channelCount=ae,a.samplerate=l,a.samples.push({unit:St,pts:Et}),m}class Ea extends Qs{resetInitSegment(e,t,r,n){super.resetInitSegment(e,t,r,n),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:t,duration:n,inputTimeScale:9e4,dropped:0}}static probe(e){if(!e)return!1;const t=_s(e,0);let r=(t==null?void 0:t.length)||0;if(t&&e[r]===11&&e[r+1]===119&&Xs(t)!==void 0&&qa(e,r)<=16)return!1;for(let n=e.length;r<n;r++)if(Js(e,r))return Q.log("MPEG Audio sync word found !"),!0;return!1}canParse(e,t){return xo(e,t)}appendFrame(e,t,r){if(this.basePTS!==null)return Xa(e,t,r,this.basePTS,this.frameIndex)}}const wo=/\/emsg[-/]ID3/i;class So{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,r,n){const i=this.videoTrack=Oe("video",1),s=this.audioTrack=Oe("audio",1),l=this.txtTrack=Oe("text",1);if(this.id3Track=Oe("id3",1),this.timeOffset=0,!(e!=null&&e.byteLength))return;const d=ye(e);if(d.video){const{id:c,timescale:m,codec:_,supplemental:C}=d.video;i.id=c,i.timescale=l.timescale=m,i.codec=_,i.supplemental=C}if(d.audio){const{id:c,timescale:m,codec:_}=d.audio;s.id=c,s.timescale=m,s.codec=_}l.id=mt.text,i.sampleDuration=0,i.duration=s.duration=n}resetContiguity(){this.remainderData=null}static probe(e){return ge(e)}demux(e,t){this.timeOffset=t;let r=e;const n=this.videoTrack,i=this.txtTrack;if(this.config.progressive){this.remainderData&&(r=Lt(this.remainderData,e));const l=Ft(r);this.remainderData=l.remainder,n.samples=l.valid||new Uint8Array}else n.samples=r;const s=this.extractID3Track(n,t);return i.samples=Le(t,n),{videoTrack:n,audioTrack:this.audioTrack,id3Track:s,textTrack:this.txtTrack}}flush(){const e=this.timeOffset,t=this.videoTrack,r=this.txtTrack;t.samples=this.remainderData||new Uint8Array,this.remainderData=null;const n=this.extractID3Track(t,this.timeOffset);return r.samples=Le(e,t),{videoTrack:t,audioTrack:Oe(),id3Track:n,textTrack:Oe()}}extractID3Track(e,t){const r=this.id3Track;if(e.samples.length){const n=fe(e.samples,["emsg"]);n&&n.forEach(i=>{const s=Gt(i);if(wo.test(s.schemeIdUri)){const l=Ao(s,t);let d=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;d<=.001&&(d=Number.POSITIVE_INFINITY);const c=s.payload;r.samples.push({data:c,len:c.byteLength,dts:l,pts:l,type:Ai.emsg,duration:d})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=Ao(s,t);r.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:Ai.misbklv,duration:Number.POSITIVE_INFINITY})}})}return r}demuxSampleAes(e,t,r){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 v(a.presentationTime)?a.presentationTime/a.timeScale:e+a.presentationTimeDelta/a.timeScale}class z{constructor(e,t,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new un(t,{removePKCS7Padding:!1})}decryptBuffer(e){return this.decrypter.decrypt(e,this.keyData.key.buffer,this.keyData.iv.buffer,Ar.cbc)}decryptAacSample(e,t,r){const n=e[t].unit;if(n.length<=16)return;const i=n.subarray(16,n.length-n.length%16),s=i.buffer.slice(i.byteOffset,i.byteOffset+i.length);this.decryptBuffer(s).then(l=>{const d=new Uint8Array(l);n.set(d,16),this.decrypter.isSync()||this.decryptAacSamples(e,t+1,r)})}decryptAacSamples(e,t,r){for(;;t++){if(t>=e.length){r();return}if(!(e[t].unit.length<32)&&(this.decryptAacSample(e,t,r),!this.decrypter.isSync()))return}}getAvcEncryptedData(e){const t=Math.floor((e.length-48)/160)*16+16,r=new Int8Array(t);let n=0;for(let i=32;i<e.length-16;i+=160,n+=16)r.set(e.subarray(i,i+16),n);return r}getAvcDecryptedUnit(e,t){const r=new Uint8Array(t);let n=0;for(let i=32;i<e.length-16;i+=160,n+=16)e.set(r.subarray(n,n+16),i);return e}decryptAvcSample(e,t,r,n,i){const s=Rt(i.data),l=this.getAvcEncryptedData(s);this.decryptBuffer(l.buffer).then(d=>{i.data=this.getAvcDecryptedUnit(s,d),this.decrypter.isSync()||this.decryptAvcSamples(e,t,r+1,n)})}decryptAvcSamples(e,t,r,n){if(e instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;t++,r=0){if(t>=e.length){n();return}const i=e[t].units;for(;!(r>=i.length);r++){const s=i[r];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(e,t,r,n,s),!this.decrypter.isSync()))return}}}}class u{constructor(){this.VideoSample=null}createVideoSample(e,t,r){return{key:e,frame:!1,pts:t,dts:r,units:[],length:0}}getLastNalUnit(e){var t;let r=this.VideoSample,n;if((!r||r.units.length===0)&&(r=e[e.length-1]),(t=r)!=null&&t.units){const i=r.units;n=i[i.length-1]}return n}pushAccessUnit(e,t){if(e.units.length&&e.frame){if(e.pts===void 0){const r=t.samples,n=r.length;if(n){const i=r[n-1];e.pts=i.pts,e.dts=i.dts}else{t.dropped++;return}}t.samples.push(e)}}parseNALu(e,t,r){const n=t.byteLength;let i=e.naluState||0;const s=i,l=[];let d=0,c,m,_,C=-1,L=0;for(i===-1&&(C=0,L=this.getNALuType(t,0),i=0,d=1);d<n;){if(c=t[d++],!i){i=c?0:1;continue}if(i===1){i=c?0:2;continue}if(!c)i=3;else if(c===1){if(m=d-i-1,C>=0){const R={data:t.subarray(C,m),type:L};l.push(R)}else{const R=this.getLastNalUnit(e.samples);R&&(s&&d<=4-s&&R.state&&(R.data=R.data.subarray(0,R.data.byteLength-s)),m>0&&(R.data=Lt(R.data,t.subarray(0,m)),R.state=0))}d<n?(_=this.getNALuType(t,d),C=d,L=_,i=0):i=-1}else i=0}if(C>=0&&i>=0){const R={data:t.subarray(C,n),type:L,state:i};l.push(R)}if(l.length===0){const R=this.getLastNalUnit(e.samples);R&&(R.data=Lt(R.data,t))}return e.naluState=i,l}}class h{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,r=e.byteLength-t,n=new Uint8Array(4),i=Math.min(4,t);if(i===0)throw new Error("no bytes available");n.set(e.subarray(r,r+i)),this.word=new DataView(n.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 r=this.word>>>32-t;if(e>32&&Q.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?r<<t|this.readBits(t):r}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 f extends u{parsePES(e,t,r,n){const i=this.parseNALu(e,r.data,n);let s=this.VideoSample,l,d=!1;r.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),i.forEach(c=>{var m,_;switch(c.type){case 1:{let ae=!1;l=!0;const he=c.data;if(d&&he.length>4){const Ne=this.readSliceType(he);(Ne===2||Ne===4||Ne===7||Ne===9)&&(ae=!0)}if(ae){var C;(C=s)!=null&&C.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.frame=!0,s.key=ae;break}case 5:l=!0,(m=s)!=null&&m.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 6:{l=!0,vt(c.data,1,r.pts,t.samples);break}case 7:{var L,R;l=!0,d=!0;const ae=c.data,he=this.readSPS(ae);if(!e.sps||e.width!==he.width||e.height!==he.height||((L=e.pixelRatio)==null?void 0:L[0])!==he.pixelRatio[0]||((R=e.pixelRatio)==null?void 0:R[1])!==he.pixelRatio[1]){e.width=he.width,e.height=he.height,e.pixelRatio=he.pixelRatio,e.sps=[ae];const Ne=ae.subarray(1,4);let Je="avc1.";for(let We=0;We<3;We++){let Et=Ne[We].toString(16);Et.length<2&&(Et="0"+Et),Je+=Et}e.codec=Je}break}case 8:l=!0,e.pps=[c.data];break;case 9:l=!0,e.audFound=!0,(_=s)!=null&&_.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts));break;case 12:l=!0;break;default:l=!1;break}s&&l&&s.units.push(c)}),n&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}getNALuType(e,t){return e[t]&31}readSliceType(e){const t=new h(e);return t.readUByte(),t.readUEG(),t.readUEG()}skipScalingList(e,t){let r=8,n=8,i;for(let s=0;s<e;s++)n!==0&&(i=t.readEG(),n=(r+i+256)%256),r=n===0?r:n}readSPS(e){const t=new h(e);let r=0,n=0,i=0,s=0,l,d,c;const m=t.readUByte.bind(t),_=t.readBits.bind(t),C=t.readUEG.bind(t),L=t.readBoolean.bind(t),R=t.skipBits.bind(t),ae=t.skipEG.bind(t),he=t.skipUEG.bind(t),Ne=this.skipScalingList.bind(this);m();const Je=m();if(_(5),R(3),m(),he(),Je===100||Je===110||Je===122||Je===244||Je===44||Je===83||Je===86||Je===118||Je===128){const $t=C();if($t===3&&R(1),he(),he(),R(1),L())for(d=$t!==3?8:12,c=0;c<d;c++)L()&&(c<6?Ne(16,t):Ne(64,t))}he();const We=C();if(We===0)C();else if(We===1)for(R(1),ae(),ae(),l=C(),c=0;c<l;c++)ae();he(),R(1);const Et=C(),St=C(),Kt=_(1);Kt===0&&R(1),R(1),L()&&(r=C(),n=C(),i=C(),s=C());let At=[1,1];if(L()&&L())switch(m()){case 1:At=[1,1];break;case 2:At=[12,11];break;case 3:At=[10,11];break;case 4:At=[16,11];break;case 5:At=[40,33];break;case 6:At=[24,11];break;case 7:At=[20,11];break;case 8:At=[32,11];break;case 9:At=[80,33];break;case 10:At=[18,11];break;case 11:At=[15,11];break;case 12:At=[64,33];break;case 13:At=[160,99];break;case 14:At=[4,3];break;case 15:At=[3,2];break;case 16:At=[2,1];break;case 255:{At=[m()<<8|m(),m()<<8|m()];break}}return{width:Math.ceil((Et+1)*16-r*2-n*2),height:(2-Kt)*(St+1)*16-(Kt?2:4)*(i+s),pixelRatio:At}}}class g extends u{constructor(...e){super(...e),this.initVPS=null}parsePES(e,t,r,n){const i=this.parseNALu(e,r.data,n);let s=this.VideoSample,l,d=!1;r.data=null,s&&i.length&&!e.audFound&&(this.pushAccessUnit(s,e),s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),i.forEach(c=>{var m,_;switch(c.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,r.pts,r.dts)),s.frame=!0,l=!0;break;case 16:case 17:case 18:case 21:if(l=!0,d){var C;(C=s)!=null&&C.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 19:case 20:l=!0,(m=s)!=null&&m.frame&&!s.key&&(this.pushAccessUnit(s,e),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 39:l=!0,vt(c.data,2,r.pts,t.samples);break;case 32:l=!0,e.vps||(typeof e.params!="object"&&(e.params={}),e.params=S(e.params,this.readVPS(c.data)),this.initVPS=c.data),e.vps=[c.data];break;case 33:if(l=!0,d=!0,e.vps!==void 0&&e.vps[0]!==this.initVPS&&e.sps!==void 0&&!this.matchSPS(e.sps[0],c.data)&&(this.initVPS=e.vps[0],e.sps=e.pps=void 0),!e.sps){const L=this.readSPS(c.data);e.width=L.width,e.height=L.height,e.pixelRatio=L.pixelRatio,e.codec=L.codecString,e.sps=[],typeof e.params!="object"&&(e.params={});for(const R in L.params)e.params[R]=L.params[R]}this.pushParameterSet(e.sps,c.data,e.vps),s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0;break;case 34:if(l=!0,typeof e.params=="object"){if(!e.pps){e.pps=[];const L=this.readPPS(c.data);for(const R in L)e.params[R]=L[R]}this.pushParameterSet(e.pps,c.data,e.vps)}break;case 35:l=!0,e.audFound=!0,(_=s)!=null&&_.frame&&(this.pushAccessUnit(s,e),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts));break;default:l=!1;break}s&&l&&s.units.push(c)}),n&&s&&(this.pushAccessUnit(s,e),this.VideoSample=null)}pushParameterSet(e,t,r){(r&&r[0]===this.initVPS||!r&&!e.length)&&e.push(t)}getNALuType(e,t){return(e[t]&126)>>>1}ebsp2rbsp(e){const t=new Uint8Array(e.byteLength);let r=0;for(let n=0;n<e.byteLength;n++)n>=2&&e[n]===3&&e[n-1]===0&&e[n-2]===0||(t[r]=e[n],r++);return new Uint8Array(t.buffer,0,r)}pushAccessUnit(e,t){super.pushAccessUnit(e,t),this.initVPS&&(this.initVPS=null)}readVPS(e){const t=new h(e);t.readUByte(),t.readUByte(),t.readBits(4),t.skipBits(2),t.readBits(6);const r=t.readBits(3),n=t.readBoolean();return{numTemporalLayers:r+1,temporalIdNested:n}}readSPS(e){const t=new h(this.ebsp2rbsp(e));t.readUByte(),t.readUByte(),t.readBits(4);const r=t.readBits(3);t.readBoolean();const n=t.readBits(2),i=t.readBoolean(),s=t.readBits(5),l=t.readUByte(),d=t.readUByte(),c=t.readUByte(),m=t.readUByte(),_=t.readUByte(),C=t.readUByte(),L=t.readUByte(),R=t.readUByte(),ae=t.readUByte(),he=t.readUByte(),Ne=t.readUByte(),Je=[],We=[];for(let Ln=0;Ln<r;Ln++)Je.push(t.readBoolean()),We.push(t.readBoolean());if(r>0)for(let Ln=r;Ln<8;Ln++)t.readBits(2);for(let Ln=0;Ln<r;Ln++)Je[Ln]&&(t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte(),t.readUByte()),We[Ln]&&t.readUByte();t.readUEG();const Et=t.readUEG();Et==3&&t.skipBits(1);const St=t.readUEG(),Kt=t.readUEG(),At=t.readBoolean();let $t=0,Xt=0,It=0,pr=0;At&&($t+=t.readUEG(),Xt+=t.readUEG(),It+=t.readUEG(),pr+=t.readUEG());const wr=t.readUEG(),xn=t.readUEG(),qr=t.readUEG(),Kr=t.readBoolean();for(let Ln=Kr?0:r;Ln<=r;Ln++)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 bi=0;bi<4;bi++)for(let Ni=0;Ni<(bi===3?2:6);Ni++)if(!t.readBoolean())t.readUEG();else{const Hi=Math.min(64,1<<4+(bi<<1));bi>1&&t.readEG();for(let aa=0;aa<Hi;aa++)t.readEG()}t.readBoolean(),t.readBoolean(),t.readBoolean()&&(t.readUByte(),t.skipUEG(),t.skipUEG(),t.readBoolean());const Hr=t.readUEG();let gr=0;for(let Ln=0;Ln<Hr;Ln++){let bi=!1;if(Ln!==0&&(bi=t.readBoolean()),bi){Ln===Hr&&t.readUEG(),t.readBoolean(),t.readUEG();let Ni=0;for(let Us=0;Us<=gr;Us++){const Hi=t.readBoolean();let aa=!1;Hi||(aa=t.readBoolean()),(Hi||aa)&&Ni++}gr=Ni}else{const Ni=t.readUEG(),Us=t.readUEG();gr=Ni+Us;for(let Hi=0;Hi<Ni;Hi++)t.readUEG(),t.readBoolean();for(let Hi=0;Hi<Us;Hi++)t.readUEG(),t.readBoolean()}}if(t.readBoolean()){const Ln=t.readUEG();for(let bi=0;bi<Ln;bi++){for(let Ni=0;Ni<qr+4;Ni++)t.readBits(1);t.readBits(1)}}let on=0,Jr=1,_n=1,Dn=!0,Fn=1,jn=0;t.readBoolean(),t.readBoolean();let Ti=!1;if(t.readBoolean()){if(t.readBoolean()){const zs=t.readUByte(),jl=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],ho=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];zs>0&&zs<16?(Jr=jl[zs-1],_n=ho[zs-1]):zs===255&&(Jr=t.readBits(16),_n=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&&($t+=t.readUEG(),Xt+=t.readUEG(),It+=t.readUEG(),pr+=t.readUEG()),t.readBoolean()&&(Fn=t.readBits(32),jn=t.readBits(32),t.readBoolean()&&t.readUEG(),t.readBoolean())){const ho=t.readBoolean(),Hl=t.readBoolean();let Da=!1;(ho||Hl)&&(Da=t.readBoolean(),Da&&(t.readUByte(),t.readBits(5),t.readBoolean(),t.readBits(5)),t.readBits(4),t.readBits(4),Da&&t.readBits(4),t.readBits(5),t.readBits(5),t.readBits(5));for(let Gl=0;Gl<=r;Gl++){Dn=t.readBoolean();const e0=Dn||t.readBoolean();let Wl=!1;e0?t.readEG():Wl=t.readBoolean();const Kl=Wl?1:t.readUEG()+1;if(ho)for(let Ia=0;Ia<Kl;Ia++)t.readUEG(),t.readUEG(),Da&&(t.readUEG(),t.readUEG()),t.skipBits(1);if(Hl)for(let Ia=0;Ia<Kl;Ia++)t.readUEG(),t.readUEG(),Da&&(t.readUEG(),t.readUEG()),t.skipBits(1)}}t.readBoolean()&&(t.readBoolean(),t.readBoolean(),t.readBoolean(),on=t.readUEG())}let Ts=St,zl=Kt;if(At||Ti){let Ln=1,bi=1;Et===1?Ln=bi=2:Et==2&&(Ln=2),Ts=St-Ln*Xt-Ln*$t,zl=Kt-bi*pr-bi*It}const qc=n?["A","B","C"][n]:"",Jc=l<<24|d<<16|c<<8|m;let Yo=0;for(let Ln=0;Ln<32;Ln++)Yo=(Yo|(Jc>>Ln&1)<<31-Ln)>>>0;let Xo=Yo.toString(16);return s===1&&Xo==="2"&&(Xo="6"),{codecString:`hvc1.${qc}${s}.${Xo}.${i?"H":"L"}${Ne}.B0`,params:{general_tier_flag:i,general_profile_idc:s,general_profile_space:n,general_profile_compatibility_flags:[l,d,c,m],general_constraint_indicator_flags:[_,C,L,R,ae,he],general_level_idc:Ne,bit_depth:wr+8,bit_depth_luma_minus8:wr,bit_depth_chroma_minus8:xn,min_spatial_segmentation_idc:on,chroma_format_idc:Et,frame_rate:{fixed:Dn,fps:jn/Fn}},width:Ts,height:zl,pixelRatio:[Jr,_n]}}readPPS(e){const t=new h(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 n=t.readBoolean(),i=t.readBoolean();let s=1;return i&&n?s=0:i?s=3:n&&(s=2),{parallelismType:s}}matchSPS(e,t){return String.fromCharCode.apply(null,e).substr(3)===String.fromCharCode.apply(null,t).substr(3)}}const D=188;class ${constructor(e,t,r,n){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=r,this.logger=n,this.videoParser=null}static probe(e,t){const r=$.syncOffset(e);return r>0&&t.warn(`MPEG2-TS detected but first sync word found @ offset ${r}`),r!==-1}static syncOffset(e){const t=e.length;let r=Math.min(D*5,t-D)+1,n=0;for(;n<r;){let i=!1,s=-1,l=0;for(let d=n;d<t;d+=D)if(e[d]===71&&(t-d===D||e[d+D]===71)){if(l++,s===-1&&(s=d,s!==0&&(r=Math.min(s+D*99,e.length-D)+1)),i||(i=_e(e,d)===0),i&&l>1&&(s===0&&l>2||d+D>r))return s}else{if(l)return-1;break}n++}return-1}static createTrack(e,t){return{container:e==="video"||e==="audio"?"video/mp2t":void 0,type:e,id:mt[e],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:e==="audio"?t:void 0}}resetInitSegment(e,t,r,n){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=$.createTrack("video"),this._videoTrack.duration=n,this._audioTrack=$.createTrack("audio",n),this._id3Track=$.createTrack("id3"),this._txtTrack=$.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.remainderData=null,this.audioCodec=t,this.videoCodec=r}resetTimeStamp(){}resetContiguity(){const{_audioTrack:e,_videoTrack:t,_id3Track:r}=this;e&&(e.pesData=null),t&&(t.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(e,t,r=!1,n=!1){r||(this.sampleAes=null);let i;const s=this._videoTrack,l=this._audioTrack,d=this._id3Track,c=this._txtTrack;let m=s.pid,_=s.pesData,C=l.pid,L=d.pid,R=l.pesData,ae=d.pesData,he=null,Ne=this.pmtParsed,Je=this._pmtId,We=e.length;if(this.remainderData&&(e=Lt(this.remainderData,e),We=e.length,this.remainderData=null),We<D&&!n)return this.remainderData=e,{audioTrack:l,videoTrack:s,id3Track:d,textTrack:c};const Et=Math.max(0,$.syncOffset(e));We-=(We-Et)%D,We<e.byteLength&&!n&&(this.remainderData=new Uint8Array(e.buffer,We,e.buffer.byteLength-We));let St=0;for(let At=Et;At<We;At+=D)if(e[At]===71){const $t=!!(e[At+1]&64),Xt=_e(e,At),It=(e[At+3]&48)>>4;let pr;if(It>1){if(pr=At+5+e[At+4],pr===At+D)continue}else pr=At+4;switch(Xt){case m:if($t){if(_&&(i=Ht(_,this.logger))){if(this.videoParser===null)switch(s.segmentCodec){case"avc":this.videoParser=new f;break;case"hevc":this.videoParser=new g;break}this.videoParser!==null&&this.videoParser.parsePES(s,c,i,!1)}_={data:[],size:0}}_&&(_.data.push(e.subarray(pr,At+D)),_.size+=At+D-pr);break;case C:if($t){if(R&&(i=Ht(R,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}R={data:[],size:0}}R&&(R.data.push(e.subarray(pr,At+D)),R.size+=At+D-pr);break;case L:$t&&(ae&&(i=Ht(ae,this.logger))&&this.parseID3PES(d,i),ae={data:[],size:0}),ae&&(ae.data.push(e.subarray(pr,At+D)),ae.size+=At+D-pr);break;case 0:$t&&(pr+=e[pr]+1),Je=this._pmtId=De(e,pr);break;case Je:{$t&&(pr+=e[pr]+1);const wr=He(e,pr,this.typeSupported,r,this.observer,this.logger);m=wr.videoPid,m>0&&(s.pid=m,s.segmentCodec=wr.segmentVideoCodec),C=wr.audioPid,C>0&&(l.pid=C,l.segmentCodec=wr.segmentAudioCodec),L=wr.id3Pid,L>0&&(d.pid=L),he!==null&&!Ne&&(this.logger.warn(`MPEG-TS PMT found at ${At} after unknown PID '${he}'. Backtracking to sync byte @${Et} to parse all TS packets.`),he=null,At=Et-188),Ne=this.pmtParsed=!0;break}case 17:case 8191:break;default:he=Xt;break}}else St++;St>0&&ft(this.observer,new Error(`Found ${St} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=_,l.pesData=R,d.pesData=ae;const Kt={audioTrack:l,videoTrack:s,id3Track:d,textTrack:c};return n&&this.extractRemainingSamples(Kt),Kt}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:r,id3Track:n,textTrack:i}=e,s=r.pesData,l=t.pesData,d=n.pesData;let c;if(s&&(c=Ht(s,this.logger))){if(this.videoParser===null)switch(r.segmentCodec){case"avc":this.videoParser=new f;break;case"hevc":this.videoParser=new g;break}this.videoParser!==null&&(this.videoParser.parsePES(r,i,c,!0),r.pesData=null)}else r.pesData=s;if(l&&(c=Ht(l,this.logger))){switch(t.segmentCodec){case"aac":this.parseAACPES(t,c);break;case"mp3":this.parseMPEGPES(t,c);break;case"ac3":this.parseAC3PES(t,c);break}t.pesData=null}else l!=null&&l.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),t.pesData=l;d&&(c=Ht(d,this.logger))?(this.parseID3PES(n,c),n.pesData=null):n.pesData=d}demuxSampleAes(e,t,r){const n=this.demux(e,r,!0,!this.config.progressive),i=this.sampleAes=new z(this.observer,this.config,t);return this.decrypt(n,i)}decrypt(e,t){return new Promise(r=>{const{audioTrack:n,videoTrack:i}=e;n.samples&&n.segmentCodec==="aac"?t.decryptAacSamples(n.samples,0,()=>{i.samples?t.decryptAvcSamples(i.samples,0,0,()=>{r(e)}):r(e)}):i.samples&&t.decryptAvcSamples(i.samples,0,0,()=>{r(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 r=0;const n=this.aacOverFlow;let i=t.data;if(n){this.aacOverFlow=null;const _=n.missing,C=n.sample.unit.byteLength;if(_===-1)i=Lt(n.sample.unit,i);else{const L=C-_;n.sample.unit.set(i.subarray(0,_),L),e.samples.push(n.sample),r=n.missing}}let s,l;for(s=r,l=i.length;s<l-1&&!Ms(i,s);s++);if(s!==r){let _;const C=s<l-1;if(C?_=`AAC PES did not start with ADTS header,offset:${s}`:_="No ADTS header found in AAC PES",ft(this.observer,new Error(_),C,this.logger),!C)return}da(e,this.observer,i,s,this.audioCodec);let d;if(t.pts!==void 0)d=t.pts;else if(n){const _=Ba(e.samplerate);d=n.sample.pts+_}else{this.logger.warn("[tsdemuxer]: AAC PES unknown PTS");return}let c=0,m;for(;s<l;)if(m=$a(e,i,s,d,c),s+=m.length,m.missing){this.aacOverFlow=m;break}else for(c++;s<l-1&&!Ms(i,s);s++);}parseMPEGPES(e,t){const r=t.data,n=r.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<n;)if(Bs(r,s)){const d=Xa(e,r,s,l,i);if(d)s+=d.length,i++;else break}else s++}parseAC3PES(e,t){{const r=t.data,n=t.pts;if(n===void 0){this.logger.warn("[tsdemuxer]: AC3 PES unknown PTS");return}const i=r.length;let s=0,l=0,d;for(;l<i&&(d=xa(e,r,l,n,s++))>0;)l+=d}}parseID3PES(e,t){if(t.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=S({},t,{type:this._videoTrack?Ai.emsg:Ai.audioId3,duration:Number.POSITIVE_INFINITY});e.samples.push(r)}}function _e(a,e){return((a[e+1]&31)<<8)+a[e+2]}function De(a,e){return(a[e+10]&31)<<8|a[e+11]}function He(a,e,t,r,n,i){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},l=(a[e+1]&15)<<8|a[e+2],d=e+3+l-4,c=(a[e+10]&15)<<8|a[e+11];for(e+=12+c;e<d;){const m=_e(a,e),_=(a[e+3]&15)<<8|a[e+4];switch(a[e]){case 207:if(!r){Ct("ADTS AAC",i);break}case 15:s.audioPid===-1&&(s.audioPid=m);break;case 21:s.id3Pid===-1&&(s.id3Pid=m);break;case 219:if(!r){Ct("H.264",i);break}case 27:s.videoPid===-1&&(s.videoPid=m);break;case 3:case 4:!t.mpeg&&!t.mp3?i.log("MPEG audio found, not supported in this browser"):s.audioPid===-1&&(s.audioPid=m,s.segmentAudioCodec="mp3");break;case 193:if(!r){Ct("AC-3",i);break}case 129:t.ac3?s.audioPid===-1&&(s.audioPid=m,s.segmentAudioCodec="ac3"):i.log("AC-3 audio found, not supported in this browser");break;case 6:if(s.audioPid===-1&&_>0){let C=e+5,L=_;for(;L>2;){switch(a[C]){case 106:t.ac3!==!0?i.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=m,s.segmentAudioCodec="ac3");break}const ae=a[C+1]+2;C+=ae,L-=ae}}break;case 194:case 135:return ft(n,new Error("Unsupported EC-3 in M2TS found"),void 0,i),s;case 36:s.videoPid===-1&&(s.videoPid=m,s.segmentVideoCodec="hevc",i.log("HEVC in M2TS found"));break}e+=_+5}return s}function ft(a,e,t,r){r.warn(`parsing error: ${e.message}`),a.emit(p.ERROR,p.ERROR,{type:pe.MEDIA_ERROR,details:O.FRAG_PARSING_ERROR,fatal:!1,levelRetry:t,error:e,reason:e.message})}function Ct(a,e){e.log(`${a} with AES-128-CBC encryption found in unencrypted stream`)}function Ht(a,e){let t=0,r,n,i,s,l;const d=a.data;if(!a||a.size===0)return null;for(;d[0].length<19&&d.length>1;)d[0]=Lt(d[0],d[1]),d.splice(1,1);if(r=d[0],(r[0]<<16)+(r[1]<<8)+r[2]===1){if(n=(r[4]<<8)+r[5],n&&n>a.size-6)return null;const m=r[7];m&192&&(s=(r[9]&14)*536870912+(r[10]&255)*4194304+(r[11]&254)*16384+(r[12]&255)*128+(r[13]&254)/2,m&64?(l=(r[14]&14)*536870912+(r[15]&255)*4194304+(r[16]&254)*16384+(r[17]&255)*128+(r[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=r[8];let _=i+9;if(a.size<=_)return null;a.size-=_;const C=new Uint8Array(a.size);for(let L=0,R=d.length;L<R;L++){r=d[L];let ae=r.byteLength;if(_)if(_>ae){_-=ae;continue}else r=r.subarray(_),ae-=_,_=0;C.set(r,t),t+=ae}return n&&(n-=i+3),{data:C,pts:s,dts:l,len:n}}return null}class ar{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 hr=Math.pow(2,32)-1;class Ye{static init(){Ye.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 Ye.types)Ye.types.hasOwnProperty(e)&&(Ye.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]),r=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]);Ye.HDLR_TYPES={video:t,audio:r};const n=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]);Ye.STTS=Ye.STSC=Ye.STCO=i,Ye.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ye.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Ye.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ye.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]),d=new Uint8Array([0,0,0,1]);Ye.FTYP=Ye.box(Ye.types.ftyp,s,d,s,l),Ye.DINF=Ye.box(Ye.types.dinf,Ye.box(Ye.types.dref,n))}static box(e,...t){let r=8,n=t.length;const i=n;for(;n--;)r+=t[n].byteLength;const s=new Uint8Array(r);for(s[0]=r>>24&255,s[1]=r>>16&255,s[2]=r>>8&255,s[3]=r&255,s.set(e,4),n=0,r=8;n<i;n++)s.set(t[n],r),r+=t[n].byteLength;return s}static hdlr(e){return Ye.box(Ye.types.hdlr,Ye.HDLR_TYPES[e])}static mdat(e){return Ye.box(Ye.types.mdat,e)}static mdhd(e,t){t*=e;const r=Math.floor(t/(hr+1)),n=Math.floor(t%(hr+1));return Ye.box(Ye.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,r>>24,r>>16&255,r>>8&255,r&255,n>>24,n>>16&255,n>>8&255,n&255,85,196,0,0]))}static mdia(e){return Ye.box(Ye.types.mdia,Ye.mdhd(e.timescale||0,e.duration||0),Ye.hdlr(e.type),Ye.minf(e))}static mfhd(e){return Ye.box(Ye.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"?Ye.box(Ye.types.minf,Ye.box(Ye.types.smhd,Ye.SMHD),Ye.DINF,Ye.stbl(e)):Ye.box(Ye.types.minf,Ye.box(Ye.types.vmhd,Ye.VMHD),Ye.DINF,Ye.stbl(e))}static moof(e,t,r){return Ye.box(Ye.types.moof,Ye.mfhd(e),Ye.traf(r,t))}static moov(e){let t=e.length;const r=[];for(;t--;)r[t]=Ye.trak(e[t]);return Ye.box.apply(null,[Ye.types.moov,Ye.mvhd(e[0].timescale||0,e[0].duration||0)].concat(r).concat(Ye.mvex(e)))}static mvex(e){let t=e.length;const r=[];for(;t--;)r[t]=Ye.trex(e[t]);return Ye.box.apply(null,[Ye.types.mvex,...r])}static mvhd(e,t){t*=e;const r=Math.floor(t/(hr+1)),n=Math.floor(t%(hr+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,r>>24,r>>16&255,r>>8&255,r&255,n>>24,n>>16&255,n>>8&255,n&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 Ye.box(Ye.types.mvhd,i)}static sdtp(e){const t=e.samples||[],r=new Uint8Array(4+t.length);let n,i;for(n=0;n<t.length;n++)i=t[n].flags,r[n+4]=i.dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return Ye.box(Ye.types.sdtp,r)}static stbl(e){return Ye.box(Ye.types.stbl,Ye.stsd(e),Ye.box(Ye.types.stts,Ye.STTS),Ye.box(Ye.types.stsc,Ye.STSC),Ye.box(Ye.types.stsz,Ye.STSZ),Ye.box(Ye.types.stco,Ye.STCO))}static avc1(e){let t=[],r=[],n,i,s;for(n=0;n<e.sps.length;n++)i=e.sps[n],s=i.byteLength,t.push(s>>>8&255),t.push(s&255),t=t.concat(Array.prototype.slice.call(i));for(n=0;n<e.pps.length;n++)i=e.pps[n],s=i.byteLength,r.push(s>>>8&255),r.push(s&255),r=r.concat(Array.prototype.slice.call(i));const l=Ye.box(Ye.types.avcC,new Uint8Array([1,t[3],t[4],t[5],255,224|e.sps.length].concat(t).concat([e.pps.length]).concat(r))),d=e.width,c=e.height,m=e.pixelRatio[0],_=e.pixelRatio[1];return Ye.box(Ye.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,d>>8&255,d&255,c>>8&255,c&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,Ye.box(Ye.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Ye.box(Ye.types.pasp,new Uint8Array([m>>24,m>>16&255,m>>8&255,m&255,_>>24,_>>16&255,_>>8&255,_&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 Ye.box(Ye.types.mp4a,Ye.audioStsd(e),Ye.box(Ye.types.esds,Ye.esds(e)))}static mp3(e){return Ye.box(Ye.types[".mp3"],Ye.audioStsd(e))}static ac3(e){return Ye.box(Ye.types["ac-3"],Ye.audioStsd(e),Ye.box(Ye.types.dac3,e.config))}static stsd(e){const{segmentCodec:t}=e;if(e.type==="audio"){if(t==="aac")return Ye.box(Ye.types.stsd,Ye.STSD,Ye.mp4a(e));if(t==="ac3"&&e.config)return Ye.box(Ye.types.stsd,Ye.STSD,Ye.ac3(e));if(t==="mp3"&&e.codec==="mp3")return Ye.box(Ye.types.stsd,Ye.STSD,Ye.mp3(e))}else if(e.pps&&e.sps){if(t==="avc")return Ye.box(Ye.types.stsd,Ye.STSD,Ye.avc1(e));if(t==="hevc"&&e.vps)return Ye.box(Ye.types.stsd,Ye.STSD,Ye.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,r=(e.duration||0)*(e.timescale||0),n=e.width||0,i=e.height||0,s=Math.floor(r/(hr+1)),l=Math.floor(r%(hr+1));return Ye.box(Ye.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,n>>8&255,n&255,0,0,i>>8&255,i&255,0,0]))}static traf(e,t){const r=Ye.sdtp(e),n=e.id,i=Math.floor(t/(hr+1)),s=Math.floor(t%(hr+1));return Ye.box(Ye.types.traf,Ye.box(Ye.types.tfhd,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255])),Ye.box(Ye.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])),Ye.trun(e,r.length+16+20+8+16+8+8),r)}static trak(e){return e.duration=e.duration||4294967295,Ye.box(Ye.types.trak,Ye.tkhd(e),Ye.mdia(e))}static trex(e){const t=e.id;return Ye.box(Ye.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 r=e.samples||[],n=r.length,i=12+16*n,s=new Uint8Array(i);let l,d,c,m,_,C;for(t+=8+i,s.set([e.type==="video"?1:0,0,15,1,n>>>24&255,n>>>16&255,n>>>8&255,n&255,t>>>24&255,t>>>16&255,t>>>8&255,t&255],0),l=0;l<n;l++)d=r[l],c=d.duration,m=d.size,_=d.flags,C=d.cts,s.set([c>>>24&255,c>>>16&255,c>>>8&255,c&255,m>>>24&255,m>>>16&255,m>>>8&255,m&255,_.isLeading<<2|_.dependsOn,_.isDependedOn<<6|_.hasRedundancy<<4|_.paddingValue<<1|_.isNonSync,_.degradPrio&61440,_.degradPrio&15,C>>>24&255,C>>>16&255,C>>>8&255,C&255],12+16*l);return Ye.box(Ye.types.trun,s)}static initSegment(e){Ye.types||Ye.init();const t=Ye.moov(e);return Lt(Ye.FTYP,t)}static hvc1(e){const t=e.params,r=[e.vps,e.sps,e.pps],n=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),n-1|t.temporal_id_nested<<2|t.num_temporal_layers<<3|(t.frame_rate.fixed?64:0),r.length]);let s=i.length;for(let R=0;R<r.length;R+=1){s+=3;for(let ae=0;ae<r[R].length;ae+=1)s+=2+r[R][ae].length}const l=new Uint8Array(s);l.set(i,0),s=i.length;const d=r.length-1;for(let R=0;R<r.length;R+=1){l.set(new Uint8Array([32+R|(R===d?128:0),0,r[R].length]),s),s+=3;for(let ae=0;ae<r[R].length;ae+=1)l.set(new Uint8Array([r[R][ae].length>>8,r[R][ae].length&255]),s),s+=2,l.set(r[R][ae],s),s+=r[R][ae].length}const c=Ye.box(Ye.types.hvcC,l),m=e.width,_=e.height,C=e.pixelRatio[0],L=e.pixelRatio[1];return Ye.box(Ye.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,m>>8&255,m&255,_>>8&255,_&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]),c,Ye.box(Ye.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Ye.box(Ye.types.pasp,new Uint8Array([C>>24,C>>16&255,C>>8&255,C&255,L>>24,L>>16&255,L>>8&255,L&255])))}}Ye.types=void 0,Ye.HDLR_TYPES=void 0,Ye.STTS=void 0,Ye.STSC=void 0,Ye.STCO=void 0,Ye.STSZ=void 0,Ye.VMHD=void 0,Ye.SMHD=void 0,Ye.STSD=void 0,Ye.FTYP=void 0,Ye.DINF=void 0;const Mr=9e4;function tn(a,e,t=1,r=!1){const n=a*e*t;return r?Math.round(n):n}function dn(a,e,t=1,r=!1){return tn(a,e,1/t,r)}function an(a,e=!1){return tn(a,1e3,1/Mr,e)}function Un(a,e=1){return tn(a,Mr,1/e)}const Mn=10*1e3,Wn=1024,Kn=1152,Xn=1536;let ei=null,ii=null;function On(a,e,t,r){return{duration:e,size:t,cts:r,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:a?2:1,isNonSync:a?0:1}}}class pi{constructor(e,t,r,n){if(this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextAvcDts=null,this.nextAudioPts=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=e,this.config=t,this.typeSupported=r,this.logger=n,this.ISGenerated=!1,ei===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);ei=s?parseInt(s[1]):0}if(ii===null){const i=navigator.userAgent.match(/Safari\/(\d+)/i);ii=i?parseInt(i[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(e){this.logger.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=e}resetNextTimestamp(){this.logger.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.logger.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(e){let t=!1;const r=e[0].pts,n=e.reduce((i,s)=>{let l=s.pts,d=l-i;return d<-4294967296&&(t=!0,l=si(l,r),d=l-i),d>0?i:l},r);return t&&this.logger.debug("PTS rollover detected"),n}remux(e,t,r,n,i,s,l,d){let c,m,_,C,L,R,ae=i,he=i;const Ne=e.pid>-1,Je=t.pid>-1,We=t.samples.length,Et=e.samples.length>0,St=l&&We>0||We>1;if((!Ne||Et)&&(!Je||St)||this.ISGenerated||l){if(this.ISGenerated){var At,$t,Xt,It;const qr=this.videoTrackConfig;(qr&&(t.width!==qr.width||t.height!==qr.height||((At=t.pixelRatio)==null?void 0:At[0])!==(($t=qr.pixelRatio)==null?void 0:$t[0])||((Xt=t.pixelRatio)==null?void 0:Xt[1])!==((It=qr.pixelRatio)==null?void 0:It[1]))||!qr&&St||this.nextAudioPts===null&&Et)&&this.resetInitSegment()}this.ISGenerated||(_=this.generateIS(e,t,i,s));const pr=this.isVideoContiguous;let wr=-1,xn;if(St&&(wr=ki(t.samples),!pr&&this.config.forceKeyFrameOnDiscontinuity))if(R=!0,wr>0){this.logger.warn(`[mp4-remuxer]: Dropped ${wr} out of ${We} video samples due to a missing keyframe`);const qr=this.getVideoStartPts(t.samples);t.samples=t.samples.slice(wr),t.dropped+=wr,he+=(t.samples[0].pts-qr)/t.inputTimeScale,xn=he}else wr===-1&&(this.logger.warn(`[mp4-remuxer]: No keyframe found out of ${We} video samples`),R=!1);if(this.ISGenerated){if(Et&&St){const qr=this.getVideoStartPts(t.samples),Or=(si(e.samples[0].pts,qr)-qr)/t.inputTimeScale;ae+=Math.max(0,Or),he+=Math.max(0,-Or)}if(Et){if(e.samplerate||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),_=this.generateIS(e,t,i,s)),m=this.remuxAudio(e,ae,this.isAudioContiguous,s,Je||St||d===oe.AUDIO?he:void 0),St){const qr=m?m.endPTS-m.startPTS:0;t.inputTimeScale||(this.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),_=this.generateIS(e,t,i,s)),c=this.remuxVideo(t,he,pr,qr)}}else St&&(c=this.remuxVideo(t,he,pr,0));c&&(c.firstKeyFrame=wr,c.independent=wr!==-1,c.firstKeyFramePTS=xn)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(L=di(r,i,this._initPTS,this._initDTS)),n.samples.length&&(C=$i(n,i,this._initPTS))),{audio:m,video:c,initSegment:_,independent:R,text:C,id3:L}}generateIS(e,t,r,n){const i=e.samples,s=t.samples,l=this.typeSupported,d={},c=this._initPTS;let m=!c||n,_="audio/mp4",C,L,R;if(m&&(C=L=1/0),e.config&&i.length){switch(e.timescale=e.samplerate,e.segmentCodec){case"mp3":l.mpeg?(_="audio/mpeg",e.codec=""):l.mp3&&(e.codec="mp3");break;case"ac3":e.codec="ac-3";break}d.audio={id:"audio",container:_,codec:e.codec,initSegment:e.segmentCodec==="mp3"&&l.mpeg?new Uint8Array(0):Ye.initSegment([e]),metadata:{channelCount:e.channelCount}},m&&(R=e.inputTimeScale,!c||R!==c.timescale?C=L=i[0].pts-Math.round(R*r):m=!1)}if(t.sps&&t.pps&&s.length){if(t.timescale=t.inputTimeScale,d.video={id:"main",container:"video/mp4",codec:t.codec,initSegment:Ye.initSegment([t]),metadata:{width:t.width,height:t.height}},m)if(R=t.inputTimeScale,!c||R!==c.timescale){const ae=this.getVideoStartPts(s),he=Math.round(R*r);L=Math.min(L,si(s[0].dts,ae)-he),C=Math.min(C,ae-he)}else m=!1;this.videoTrackConfig={width:t.width,height:t.height,pixelRatio:t.pixelRatio}}if(Object.keys(d).length)return this.ISGenerated=!0,m?(this._initPTS={baseTime:C,timescale:R},this._initDTS={baseTime:L,timescale:R}):C=R=void 0,{tracks:d,initPTS:C,timescale:R}}remuxVideo(e,t,r,n){const i=e.inputTimeScale,s=e.samples,l=[],d=s.length,c=this._initPTS;let m=this.nextAvcDts,_=8,C=this.videoSampleDuration,L,R,ae=Number.POSITIVE_INFINITY,he=Number.NEGATIVE_INFINITY,Ne=!1;if(!r||m===null){const gr=t*i,_r=s[0].pts-si(s[0].dts,s[0].pts);ei&&m!==null&&Math.abs(gr-_r-m)<15e3?r=!0:m=gr-_r}const Je=c.baseTime*i/c.timescale;for(let gr=0;gr<d;gr++){const _r=s[gr];_r.pts=si(_r.pts-Je,m),_r.dts=si(_r.dts-Je,m),_r.dts<s[gr>0?gr-1:gr].dts&&(Ne=!0)}Ne&&s.sort(function(gr,_r){const on=gr.dts-_r.dts,Jr=gr.pts-_r.pts;return on||Jr}),L=s[0].dts,R=s[s.length-1].dts;const We=R-L,Et=We?Math.round(We/(d-1)):C||e.inputTimeScale/30;if(r){const gr=L-m,_r=gr>Et,on=gr<-1;if((_r||on)&&(_r?this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${an(gr,!0)} ms (${gr}dts) hole between fragments detected at ${t.toFixed(3)}`):this.logger.warn(`${(e.segmentCodec||"").toUpperCase()}: ${an(-gr,!0)} ms (${gr}dts) overlapping between fragments detected at ${t.toFixed(3)}`),!on||m>=s[0].pts||ei)){L=m;const Jr=s[0].pts-gr;if(_r)s[0].dts=L,s[0].pts=Jr;else{let _n=!0;for(let Dn=0;Dn<s.length&&!(s[Dn].dts>Jr&&_n);Dn++){const Fn=s[Dn].pts;if(s[Dn].dts-=gr,s[Dn].pts-=gr,Dn<s.length-1){const jn=s[Dn+1].pts,Ti=s[Dn].pts,Ri=jn<=Ti,Ts=jn<=Fn;_n=Ri==Ts}}}this.logger.log(`Video: Initial PTS/DTS adjusted: ${an(Jr,!0)}/${an(L,!0)}, delta: ${an(gr,!0)} ms`)}}L=Math.max(0,L);let St=0,Kt=0,At=L;for(let gr=0;gr<d;gr++){const _r=s[gr],on=_r.units,Jr=on.length;let _n=0;for(let Dn=0;Dn<Jr;Dn++)_n+=on[Dn].data.length;Kt+=_n,St+=Jr,_r.length=_n,_r.dts<At?(_r.dts=At,At+=Et/4|0||1):At=_r.dts,ae=Math.min(_r.pts,ae),he=Math.max(_r.pts,he)}R=s[d-1].dts;const $t=Kt+4*St+8;let Xt;try{Xt=new Uint8Array($t)}catch(gr){this.observer.emit(p.ERROR,p.ERROR,{type:pe.MUX_ERROR,details:O.REMUX_ALLOC_ERROR,fatal:!1,error:gr,bytes:$t,reason:`fail allocating video mdat ${$t}`});return}const It=new DataView(Xt.buffer);It.setUint32(0,$t),Xt.set(Ye.types.mdat,4);let pr=!1,wr=Number.POSITIVE_INFINITY,xn=Number.POSITIVE_INFINITY,qr=Number.NEGATIVE_INFINITY,Kr=Number.NEGATIVE_INFINITY;for(let gr=0;gr<d;gr++){const _r=s[gr],on=_r.units;let Jr=0;for(let Fn=0,jn=on.length;Fn<jn;Fn++){const Ti=on[Fn],Ri=Ti.data,Ts=Ti.data.byteLength;It.setUint32(_,Ts),_+=4,Xt.set(Ri,_),_+=Ts,Jr+=4+Ts}let _n;if(gr<d-1)C=s[gr+1].dts-_r.dts,_n=s[gr+1].pts-_r.pts;else{const Fn=this.config,jn=gr>0?_r.dts-s[gr-1].dts:Et;if(_n=gr>0?_r.pts-s[gr-1].pts:Et,Fn.stretchShortVideoTrack&&this.nextAudioPts!==null){const Ti=Math.floor(Fn.maxBufferHole*i),Ri=(n?ae+n*i:this.nextAudioPts)-_r.pts;Ri>Ti?(C=Ri-jn,C<0?C=jn:pr=!0,this.logger.log(`[mp4-remuxer]: It is approximately ${Ri/90} ms to the next segment; using duration ${C/90} ms for the last video frame.`)):C=jn}else C=jn}const Dn=Math.round(_r.pts-_r.dts);wr=Math.min(wr,C),qr=Math.max(qr,C),xn=Math.min(xn,_n),Kr=Math.max(Kr,_n),l.push(On(_r.key,C,Jr,Dn))}if(l.length){if(ei){if(ei<70){const gr=l[0].flags;gr.dependsOn=2,gr.isNonSync=0}}else if(ii&&Kr-xn<qr-wr&&Et/qr<.025&&l[0].cts===0){this.logger.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");let gr=L;for(let _r=0,on=l.length;_r<on;_r++){const Jr=gr+l[_r].duration,_n=gr+l[_r].cts;if(_r<on-1){const Dn=Jr+l[_r+1].cts;l[_r].duration=Dn-_n}else l[_r].duration=_r?l[_r-1].duration:Et;l[_r].cts=0,gr=Jr}}}C=pr||!C?Et:C,this.nextAvcDts=m=R+C,this.videoSampleDuration=C,this.isVideoContiguous=!0;const Hr={data1:Ye.moof(e.sequenceNumber++,L,S(e,{samples:l})),data2:Xt,startPTS:ae/i,endPTS:(he+C)/i,startDTS:L/i,endDTS:m/i,type:"video",hasAudio:!1,hasVideo:!0,nb:l.length,dropped:e.dropped};return e.samples=[],e.dropped=0,Hr}getSamplesPerFrame(e){switch(e.segmentCodec){case"mp3":return Kn;case"ac3":return Xn;default:return Wn}}remuxAudio(e,t,r,n,i){const s=e.inputTimeScale,l=e.samplerate?e.samplerate:s,d=s/l,c=this.getSamplesPerFrame(e),m=c*d,_=this._initPTS,C=e.segmentCodec==="mp3"&&this.typeSupported.mpeg,L=[],R=i!==void 0;let ae=e.samples,he=C?0:8,Ne=this.nextAudioPts||-1;const Je=t*s,We=_.baseTime*s/_.timescale;if(this.isAudioContiguous=r=r||ae.length&&Ne>0&&(n&&Math.abs(Je-Ne)<9e3||Math.abs(si(ae[0].pts-We,Je)-Ne)<20*m),ae.forEach(function(Or){Or.pts=si(Or.pts-We,Je)}),!r||Ne<0){if(ae=ae.filter(Or=>Or.pts>=0),!ae.length)return;i===0?Ne=0:n&&!R?Ne=Math.max(0,Je):Ne=ae[0].pts}if(e.segmentCodec==="aac"){const Or=this.config.maxAudioFramesDrift;for(let Vr=0,Hr=Ne;Vr<ae.length;Vr++){const gr=ae[Vr],_r=gr.pts,on=_r-Hr,Jr=Math.abs(1e3*on/s);if(on<=-Or*m&&R)Vr===0&&(this.logger.warn(`Audio frame @ ${(_r/s).toFixed(3)}s overlaps nextAudioPts by ${Math.round(1e3*on/s)} ms.`),this.nextAudioPts=Ne=Hr=_r);else if(on>=Or*m&&Jr<Mn&&R){let _n=Math.round(on/m);Hr=_r-_n*m,Hr<0&&(_n--,Hr+=m),Vr===0&&(this.nextAudioPts=Ne=Hr),this.logger.warn(`[mp4-remuxer]: Injecting ${_n} audio frame @ ${(Hr/s).toFixed(3)}s due to ${Math.round(1e3*on/s)} ms gap.`);for(let Dn=0;Dn<_n;Dn++){const Fn=Math.max(Hr,0);let jn=ar.getSilentFrame(e.parsedCodec||e.manifestCodec||e.codec,e.channelCount);jn||(this.logger.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),jn=gr.unit.subarray()),ae.splice(Vr,0,{unit:jn,pts:Fn}),Hr+=m,Vr++}}gr.pts=Hr,Hr+=m}}let Et=null,St=null,Kt,At=0,$t=ae.length;for(;$t--;)At+=ae[$t].unit.byteLength;for(let Or=0,Vr=ae.length;Or<Vr;Or++){const Hr=ae[Or],gr=Hr.unit;let _r=Hr.pts;if(St!==null){const Jr=L[Or-1];Jr.duration=Math.round((_r-St)/d)}else if(r&&e.segmentCodec==="aac"&&(_r=Ne),Et=_r,At>0){At+=he;try{Kt=new Uint8Array(At)}catch(Jr){this.observer.emit(p.ERROR,p.ERROR,{type:pe.MUX_ERROR,details:O.REMUX_ALLOC_ERROR,fatal:!1,error:Jr,bytes:At,reason:`fail allocating audio mdat ${At}`});return}C||(new DataView(Kt.buffer).setUint32(0,At),Kt.set(Ye.types.mdat,4))}else return;Kt.set(gr,he);const on=gr.byteLength;he+=on,L.push(On(!0,c,on,0)),St=_r}const Xt=L.length;if(!Xt)return;const It=L[L.length-1];this.nextAudioPts=Ne=St+d*It.duration;const pr=C?new Uint8Array(0):Ye.moof(e.sequenceNumber++,Et/d,S({},e,{samples:L}));e.samples=[];const wr=Et/s,xn=Ne/s,Kr={data1:pr,data2:Kt,startPTS:wr,endPTS:xn,startDTS:wr,endDTS:xn,type:"audio",hasAudio:!0,hasVideo:!1,nb:Xt};return this.isAudioContiguous=!0,Kr}}function si(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 ki(a){for(let e=0;e<a.length;e++)if(a[e].key)return e;return-1}function di(a,e,t,r){const n=a.samples.length;if(!n)return;const i=a.inputTimeScale;for(let l=0;l<n;l++){const d=a.samples[l];d.pts=si(d.pts-t.baseTime*i/t.timescale,e*i)/i,d.dts=si(d.dts-r.baseTime*i/r.timescale,e*i)/i}const s=a.samples;return a.samples=[],{samples:s}}function $i(a,e,t){const r=a.samples.length;if(!r)return;const n=a.inputTimeScale;for(let s=0;s<r;s++){const l=a.samples[s];l.pts=si(l.pts-t.baseTime*n/t.timescale,e*n)/n}a.samples.sort((s,l)=>s.pts-l.pts);const i=a.samples;return a.samples=[],{samples:i}}class Ui{constructor(e,t,r,n){this.logger=void 0,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.logger=n}destroy(){}resetTimeStamp(e){this.initPTS=e,this.lastEndTime=null}resetNextTimestamp(){this.lastEndTime=null}resetInitSegment(e,t,r,n){this.audioCodec=t,this.videoCodec=r,this.generateInitSegment(ke(e,n)),this.emitInitSegment=!0}generateInitSegment(e){let{audioCodec:t,videoCodec:r}=this;if(!(e!=null&&e.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const n=this.initData=ye(e);n.audio&&(t=eo(n.audio,w.AUDIO)),n.video&&(r=eo(n.video,w.VIDEO));const i={};n.audio&&n.video?i.audiovideo={container:"video/mp4",codec:t+","+r,supplemental:n.video.supplemental,initSegment:e,id:"main"}:n.audio?i.audio={container:"audio/mp4",codec:t,initSegment:e,id:"audio"}:n.video?i.video={container:"video/mp4",codec:r,supplemental:n.video.supplemental,initSegment:e,id:"main"}:this.logger.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=i}remux(e,t,r,n,i,s){var l,d;let{initPTS:c,lastEndTime:m}=this;const _={audio:void 0,video:void 0,text:n,id3:r,initSegment:void 0};v(m)||(m=this.lastEndTime=i||0);const C=t.samples;if(!(C!=null&&C.length))return _;const L={initPTS:void 0,timescale:1};let R=this.initData;if((l=R)!=null&&l.length||(this.generateInitSegment(C),R=this.initData),!((d=R)!=null&&d.length))return this.logger.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),_;this.emitInitSegment&&(L.tracks=this.initTracks,this.emitInitSegment=!1);const ae=gt(C,R),he=qe(R,C),Ne=he===null?i:he;(s||!c)&&(Ja(c,Ne,i,ae)||L.timescale!==c.timescale)&&(L.initPTS=Ne-i,c&&c.timescale===1&&this.logger.warn(`Adjusting initPTS @${i} from ${c.baseTime/c.timescale} to ${L.initPTS}`),this.initPTS=c={baseTime:L.initPTS,timescale:1});const Je=e?Ne-c.baseTime/c.timescale:m,We=Je+ae;Qe(R,C,c.baseTime/c.timescale),ae>0?this.lastEndTime=We:(this.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const Et=!!R.audio,St=!!R.video;let Kt="";Et&&(Kt+="audio"),St&&(Kt+="video");const At={data1:C,startPTS:Je,startDTS:Je,endPTS:We,endDTS:We,type:Kt,hasAudio:Et,hasVideo:St,nb:1,dropped:0};return _.audio=At.type==="audio"?At:void 0,_.video=At.type!=="audio"?At:void 0,_.initSegment=L,_.id3=di(r,i,c,c),n.samples.length&&(_.text=$i(n,i,c)),_}}function Ja(a,e,t,r){if(a===null)return!0;const n=Math.max(r,1),i=e-a.baseTime/a.timescale;return Math.abs(i-t)>n}function eo(a,e){const t=a==null?void 0:a.codec;return t&&t.length>4?t:e===w.AUDIO?t==="ec-3"||t==="ac-3"||t==="alac"?t:t==="fLaC"||t==="Opus"?Ce(t,!1):(Q.warn(`Unhandled audio codec "${t}" in mp4 MAP`),t||"mp4a"):(Q.warn(`Unhandled video codec "${t}" in mp4 MAP`),t||"avc1")}let yi;try{yi=self.performance.now.bind(self.performance)}catch(a){yi=Date.now}const zi=[{demux:So,remux:Ui},{demux:$,remux:pi},{demux:Qa,remux:pi},{demux:Ea,remux:pi}];zi.splice(2,0,{demux:Eo,remux:pi});class rs{constructor(e,t,r,n,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=r,this.id=i,this.logger=s}configure(e){this.transmuxConfig=e,this.decrypter&&this.decrypter.reset()}push(e,t,r,n){const i=r.transmuxing;i.executeStart=yi();let s=new Uint8Array(e);const{currentTransmuxState:l,transmuxConfig:d}=this;n&&(this.currentTransmuxState=n);const{contiguous:c,discontinuity:m,trackSwitch:_,accurateTimeOffset:C,timeOffset:L,initSegmentChange:R}=n||l,{audioCodec:ae,videoCodec:he,defaultInitPts:Ne,duration:Je,initSegmentData:We}=d,Et=ea(s,t);if(Et&&En(Et.method)){const $t=this.getDecrypter(),Xt=kn(Et.method);if($t.isSync()){let It=$t.softwareDecrypt(s,Et.key.buffer,Et.iv.buffer,Xt);if(r.part>-1){const wr=$t.flush();It=wr&&wr.buffer}if(!It)return i.executeEnd=yi(),Es(r);s=new Uint8Array(It)}else return this.asyncResult=!0,this.decryptionPromise=$t.webCryptoDecrypt(s,Et.key.buffer,Et.iv.buffer,Xt).then(It=>{const pr=this.push(It,null,r);return this.decryptionPromise=null,pr}),this.decryptionPromise}const St=this.needsProbing(m,_);if(St){const $t=this.configureTransmuxer(s);if($t)return this.logger.warn(`[transmuxer] ${$t.message}`),this.observer.emit(p.ERROR,p.ERROR,{type:pe.MEDIA_ERROR,details:O.FRAG_PARSING_ERROR,fatal:!1,error:$t,reason:$t.message}),i.executeEnd=yi(),Es(r)}(m||_||R||St)&&this.resetInitSegment(We,ae,he,Je,t),(m||R||St)&&this.resetInitialTimestamp(Ne),c||this.resetContiguity();const Kt=this.transmux(s,Et,L,C,r);this.asyncResult=Ns(Kt);const At=this.currentTransmuxState;return At.contiguous=!0,At.discontinuity=!1,At.trackSwitch=!1,i.executeEnd=yi(),Kt}flush(e){const t=e.transmuxing;t.executeStart=yi();const{decrypter:r,currentTransmuxState:n,decryptionPromise:i}=this;if(i)return this.asyncResult=!0,i.then(()=>this.flush(e));const s=[],{timeOffset:l}=n;if(r){const _=r.flush();_&&s.push(this.push(_.buffer,null,e))}const{demuxer:d,remuxer:c}=this;if(!d||!c){t.executeEnd=yi();const _=[Es(e)];return this.asyncResult?Promise.resolve(_):_}const m=d.flush(l);return Ns(m)?(this.asyncResult=!0,m.then(_=>(this.flushRemux(s,_,e),s))):(this.flushRemux(s,m,e),this.asyncResult?Promise.resolve(s):s)}flushRemux(e,t,r){const{audioTrack:n,videoTrack:i,id3Track:s,textTrack:l}=t,{accurateTimeOffset:d,timeOffset:c}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${r.sn}${r.part>-1?" part: "+r.part:""} of ${this.id===oe.MAIN?"level":"track"} ${r.level}`);const m=this.remuxer.remux(n,i,s,l,c,d,!0,this.id);e.push({remuxResult:m,chunkMeta:r}),r.transmuxing.executeEnd=yi()}resetInitialTimestamp(e){const{demuxer:t,remuxer:r}=this;!t||!r||(t.resetTimeStamp(e),r.resetTimeStamp(e))}resetContiguity(){const{demuxer:e,remuxer:t}=this;!e||!t||(e.resetContiguity(),t.resetNextTimestamp())}resetInitSegment(e,t,r,n,i){const{demuxer:s,remuxer:l}=this;!s||!l||(s.resetInitSegment(e,t,r,n),l.resetInitSegment(e,t,r,i))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(e,t,r,n,i){let s;return t&&t.method==="SAMPLE-AES"?s=this.transmuxSampleAes(e,t,r,n,i):s=this.transmuxUnencrypted(e,r,n,i),s}transmuxUnencrypted(e,t,r,n){const{audioTrack:i,videoTrack:s,id3Track:l,textTrack:d}=this.demuxer.demux(e,t,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(i,s,l,d,t,r,!1,this.id),chunkMeta:n}}transmuxSampleAes(e,t,r,n,i){return this.demuxer.demuxSampleAes(e,t,r).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,r,n,!1,this.id),chunkMeta:i}))}configureTransmuxer(e){const{config:t,observer:r,typeSupported:n}=this;let i;for(let _=0,C=zi.length;_<C;_++){var s;if((s=zi[_].demux)!=null&&s.probe(e,this.logger)){i=zi[_];break}}if(!i)return new Error("Failed to find demuxer by probing fragment data");const l=this.demuxer,d=this.remuxer,c=i.remux,m=i.demux;(!d||!(d instanceof c))&&(this.remuxer=new c(r,t,n,this.logger)),(!l||!(l instanceof m))&&(this.demuxer=new m(r,t,n,this.logger),this.probe=m.probe)}needsProbing(e,t){return!this.demuxer||!this.remuxer||e||t}getDecrypter(){let e=this.decrypter;return e||(e=this.decrypter=new un(this.config)),e}}function ea(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 Es=a=>({remuxResult:{},chunkMeta:a});function Ns(a){return"then"in a&&a.then instanceof Function}class To{constructor(e,t,r,n,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=r,this.duration=n,this.defaultInitPts=i||null}}class Co{constructor(e,t,r,n,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=r,this.trackSwitch=n,this.timeOffset=i,this.initSegmentChange=s}}let ta=0;class wa{constructor(e,t,r,n){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=ta++,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=d=>{const c=d.data,m=this.hls;if(!(!m||!(c!=null&&c.event)||c.instanceNo!==this.instanceNo))switch(c.event){case"init":{var _;const C=(_=this.workerContext)==null?void 0:_.objectURL;C&&self.URL.revokeObjectURL(C);break}case"transmuxComplete":{this.handleTransmuxComplete(c.data);break}case"flush":{this.onFlush(c.data);break}case"workerLog":{m.logger[c.data.logType]&&m.logger[c.data.logType](c.data.message);break}default:{c.data=c.data||{},c.data.frag=this.frag,c.data.part=this.part,c.data.id=this.id,m.trigger(c.event,c.data);break}}},this.onWorkerError=d=>{if(!this.hls)return;const c=new Error(`${d.message} (${d.filename}:${d.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(p.ERROR,{type:pe.OTHER_ERROR,details:O.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:c})};const i=e.config;this.hls=e,this.id=t,this.useWorker=!!i.enableWorker,this.onTransmuxComplete=r,this.onFlush=n;const s=(d,c)=>{c=c||{},c.frag=this.frag||void 0,d===p.ERROR&&(c=c,c.parent=this.id,c.part=this.part,this.error=c.error),this.hls.trigger(d,c)};this.observer=new Ys,this.observer.on(p.FRAG_DECRYPTED,s),this.observer.on(p.ERROR,s);const l=xt(i.preferManagedMediaSource);if(this.useWorker&&typeof Worker!="undefined"){const d=this.hls.logger;if(i.workerPath||ua()){try{i.workerPath?(d.log(`loading Web Worker ${i.workerPath} for "${t}"`),this.workerContext=ka(i.workerPath)):(d.log(`injecting Web Worker for "${t}"`),this.workerContext=La());const{worker:m}=this.workerContext;m.addEventListener("message",this.onWorkerMessage),m.addEventListener("error",this.onWorkerError),m.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:l,id:t,config:st(i)})}catch(m){d.warn(`Error setting up "${t}" Web Worker, fallback to inline`,m),this.terminateWorker(),this.error=null,this.transmuxer=new rs(this.observer,l,i,"",t,e.logger)}return}}this.transmuxer=new rs(this.observer,l,i,"",t,e.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const e=this.instanceNo;this.instanceNo=ta++;const t=this.hls.config,r=xt(t.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:e,typeSupported:r,id:this.id,config:st(t)})}}terminateWorker(){if(this.workerContext){const{worker:e}=this.workerContext;this.workerContext=null,e.removeEventListener("message",this.onWorkerMessage),e.removeEventListener("error",this.onWorkerError),Oa(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,r,n,i,s,l,d,c,m){var _,C;c.transmuxing.start=self.performance.now();const{instanceNo:L,transmuxer:R}=this,ae=s?s.start:i.start,he=i.decryptdata,Ne=this.frag,Je=!(Ne&&i.cc===Ne.cc),We=!(Ne&&c.level===Ne.level),Et=Ne?c.sn-Ne.sn:-1,St=this.part?c.part-this.part.index:-1,Kt=Et===0&&c.id>1&&c.id===(Ne==null?void 0:Ne.stats.chunkCount),At=!We&&(Et===1||Et===0&&(St===1||Kt&&St<=0)),$t=self.performance.now();(We||Et||i.stats.parsing.start===0)&&(i.stats.parsing.start=$t),s&&(St||!At)&&(s.stats.parsing.start=$t);const Xt=!(Ne&&((_=i.initSegment)==null?void 0:_.url)===((C=Ne.initSegment)==null?void 0:C.url)),It=new Co(Je,At,d,We,ae,Xt);if(!At||Je||Xt){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${i.type} sn: ${c.sn}${c.part>-1?" part: "+c.part:""} ${this.id===oe.MAIN?"level":"track"}: ${c.level} id: ${c.id}
discontinuity: ${Je}
trackSwitch: ${We}
contiguous: ${At}
accurateTimeOffset: ${d}
timeOffset: ${ae}
initSegmentChange: ${Xt}`);const pr=new To(r,n,t,l,m);this.configureTransmuxer(pr)}if(this.frag=i,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:L,cmd:"demux",data:e,decryptdata:he,chunkMeta:c,state:It},e instanceof ArrayBuffer?[e]:[]);else if(R){const pr=R.push(e,he,c,It);Ns(pr)?pr.then(wr=>{this.handleTransmuxComplete(wr)}).catch(wr=>{this.transmuxerError(wr,c,"transmuxer-interface push error")}):this.handleTransmuxComplete(pr)}}flush(e){e.transmuxing.start=self.performance.now();const{instanceNo:t,transmuxer:r}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:t,cmd:"flush",chunkMeta:e});else if(r){const n=r.flush(e);Ns(n)?n.then(i=>{this.handleFlushResult(i,e)}).catch(i=>{this.transmuxerError(i,e,"transmuxer-interface flush error")}):this.handleFlushResult(n,e)}}transmuxerError(e,t,r){this.hls&&(this.error=e,this.hls.trigger(p.ERROR,{type:pe.MEDIA_ERROR,details:O.FRAG_PARSING_ERROR,chunkMeta:t,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:e,err:e,reason:r}))}handleFlushResult(e,t){e.forEach(r=>{this.handleTransmuxComplete(r)}),this.onFlush(t)}configureTransmuxer(e){const{instanceNo:t,transmuxer:r}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:t,cmd:"configure",config:e}):r&&r.configure(e)}handleTransmuxComplete(e){e.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(e)}}const Sa=100;class to extends es{constructor(e,t,r){super(e,t,r,"audio-stream-controller",oe.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(p.LEVEL_LOADED,this.onLevelLoaded,this),e.on(p.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.on(p.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(p.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(p.BUFFER_RESET,this.onBufferReset,this),e.on(p.BUFFER_CREATED,this.onBufferCreated,this),e.on(p.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(p.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(p.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(p.FRAG_LOADING,this.onFragLoading,this),e.on(p.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:e}=this;e&&(super.unregisterListeners(),e.off(p.LEVEL_LOADED,this.onLevelLoaded,this),e.off(p.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),e.off(p.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(p.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(p.BUFFER_RESET,this.onBufferReset,this),e.off(p.BUFFER_CREATED,this.onBufferCreated,this),e.off(p.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(p.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(p.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(p.FRAG_LOADING,this.onFragLoading,this),e.off(p.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(e,{frag:t,id:r,initPTS:n,timescale:i}){if(r===oe.MAIN){const s=t.cc,l=this.fragCurrent;if(this.initPTS[s]={baseTime:n,timescale:i},this.log(`InitPTS for cc: ${s} found from main: ${n}/${i}`),this.mainAnchor=t,this.state===Qt.WAITING_INIT_PTS){const d=this.waitingData;(!d&&!this.loadingParts||d&&d.frag.cc!==s)&&(this.nextLoadPosition=this.findSyncFrag(t).start),this.tick()}else!this.hls.hasEnoughToStart&&l&&l.cc!==s?(this.startFragRequested=!1,this.nextLoadPosition=this.findSyncFrag(t).start,l.abortRequests(),this.resetLoadingState()):this.state===Qt.IDLE&&this.tick()}}findSyncFrag(e){const t=this.getLevelDetails(),r=e.cc;return Rr(t,r,e)||t&&Wr(t.fragments,r)||e}startLoad(e,t){if(!this.levels){this.startPosition=e,this.state=Qt.STOPPED;return}const r=this.lastCurrentTime;this.stopLoad(),this.setInterval(Sa),r>0&&e===-1?(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),e=r,this.state=Qt.IDLE):this.state=Qt.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}doTick(){switch(this.state){case Qt.IDLE:this.doTickIdle();break;case Qt.WAITING_TRACK:{const{levels:t,trackId:r}=this,n=t==null?void 0:t[r],i=n==null?void 0:n.details;if(i&&!this.waitForLive(n)){if(this.waitForCdnTuneIn(i))break;this.state=Qt.WAITING_INIT_PTS}break}case Qt.FRAG_LOADING_WAITING_RETRY:{var e;const t=performance.now(),r=this.retryDate;if(!r||t>=r||(e=this.media)!=null&&e.seeking){const{levels:n,trackId:i}=this;this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded((n==null?void 0:n[i])||null),this.state=Qt.IDLE}break}case Qt.WAITING_INIT_PTS:{const t=this.waitingData;if(t){const{frag:r,part:n,cache:i,complete:s}=t,l=this.mainAnchor;if(this.initPTS[r.cc]!==void 0){this.waitingData=null,this.state=Qt.FRAG_LOADING;const d=i.flush().buffer,c={frag:r,part:n,payload:d,networkDetails:null};this._handleFragmentLoadProgress(c),s&&super._handleFragmentLoadComplete(c)}else l&&l.cc!==t.frag.cc&&(this.log(`Waiting fragment cc (${r.cc}) cancelled because video is at cc ${l.cc}`),this.nextLoadPosition=this.findSyncFrag(l).start,this.clearWaitingFragment())}else this.state=Qt.IDLE}}this.onTickEnd()}clearWaitingFragment(){const e=this.waitingData;e&&(this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.fragmentTracker.removeFragment(e.frag),this.waitingData=null,this.state!==Qt.STOPPED&&(this.state=Qt.IDLE))}resetLoadingState(){this.clearWaitingFragment(),super.resetLoadingState()}onTickEnd(){const{media:e}=this;e!=null&&e.readyState&&(this.lastCurrentTime=e.currentTime)}doTickIdle(){var e;const{hls:t,levels:r,media:n,trackId:i}=this,s=t.config;if(!this.buffering||!n&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||!(r!=null&&r[i]))return;const l=r[i],d=l.details;if(!d||this.waitForLive(l)||this.waitForCdnTuneIn(d)){this.state=Qt.WAITING_TRACK,this.startFragRequested=!1;return}const c=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&c&&(this.bufferFlushed=!1,this.afterBufferFlushed(c,w.AUDIO,oe.AUDIO));const m=this.getFwdBufferInfo(c,oe.AUDIO);if(m===null)return;if(!this.switchingTrack&&this._streamEnded(m,d)){t.trigger(p.BUFFER_EOS,{type:"audio"}),this.state=Qt.ENDED;return}const _=m.len,C=t.maxBufferLength,L=d.fragments,R=L[0].start,ae=this.getLoadPosition(),he=this.flushing?ae:m.end;if(this.switchingTrack&&n){const We=ae;d.PTSKnown&&We<R&&(m.end>R||m.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),n.currentTime=R+.05)}if(_>=C&&!this.switchingTrack&&he<L[L.length-1].start)return;let Ne=this.getNextFragment(he,d);if(Ne&&this.isLoopLoading(Ne,he)&&(Ne=this.getNextFragmentLoopLoading(Ne,d,m,oe.MAIN,C)),!Ne){this.bufferFlushed=!0;return}let Je=((e=this.mainFragLoading)==null?void 0:e.frag)||null;if(!this.audioOnly&&this.startFragRequested&&Je&&G(Ne)&&!Ne.endList&&(!d.live||!this.loadingParts&&he<this.hls.liveSyncPosition)&&(this.fragmentTracker.getState(Je)===Br.OK&&(this.mainFragLoading=Je=null),Je&&G(Je))){if(Ne.start>Je.end){const Et=this.fragmentTracker.getFragAtPos(he,oe.MAIN);Et&&Et.end>Je.end&&(Je=Et,this.mainFragLoading={frag:Et,targetBufferTime:null})}if(Ne.start>Je.end)return}this.loadFragment(Ne,l,he)}onMediaDetaching(e,t){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(e,t)}onAudioTracksUpdated(e,{audioTracks:t}){this.resetTransmuxer(),this.levels=t.map(r=>new zr(r))}onAudioTrackSwitching(e,t){const r=!!t.url;this.trackId=t.id;const{fragCurrent:n}=this;n&&(n.abortRequests(),this.removeUnbufferedFrags(n.start)),this.resetLoadingState(),r?(this.switchingTrack=t,this.flushAudioIfNeeded(t),this.state!==Qt.STOPPED&&(this.setInterval(Sa),this.state=Qt.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 r=this.cachedTrackLoadedData;r&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(p.AUDIO_TRACK_LOADED,r))}onAudioTrackLoaded(e,t){var r;const{levels:n}=this,{details:i,id:s,groupId:l,track:d}=t;if(!n){this.warn(`Audio tracks reset while loading track ${s} "${d.name}" of "${l}"`);return}const c=this.mainDetails;if(!c||i.endCC>c.endCC||c.expired){this.cachedTrackLoadedData=t,this.state!==Qt.STOPPED&&(this.state=Qt.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${d.name}" of "${l}" loaded [${i.startSN},${i.endSN}]${i.lastPartSn?`[part-${i.lastPartSn}-${i.lastPartIndex}]`:""},duration:${i.totalduration}`);const m=n[s];let _=0;if(i.live||(r=m.details)!=null&&r.live){if(this.checkLiveUpdate(i),i.deltaUpdateFailed)return;if(m.details){var C;_=this.alignPlaylists(i,m.details,(C=this.levelLastLoaded)==null?void 0:C.details)}i.alignedSliding||(Sn(i,c),i.alignedSliding||oi(i,c),_=i.fragmentStart)}m.details=i,this.levelLastLoaded=m,this.startFragRequested||this.setStartPosition(c,_),this.hls.trigger(p.AUDIO_TRACK_UPDATED,{details:i,id:s,groupId:t.groupId}),this.state===Qt.WAITING_TRACK&&!this.waitForCdnTuneIn(i)&&(this.state=Qt.IDLE),this.tick()}_handleFragmentLoadProgress(e){var t;const r=e.frag,{part:n,payload:i}=e,{config:s,trackId:l,levels:d}=this;if(!d){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const c=d[l];if(!c){this.warn("Audio track is undefined on fragment load progress");return}const m=c.details;if(!m){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const _=s.defaultAudioCodec||c.audioCodec||"mp4a.40.2";let C=this.transmuxer;C||(C=this.transmuxer=new wa(this.hls,oe.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const L=this.initPTS[r.cc],R=(t=r.initSegment)==null?void 0:t.data;if(L!==void 0){const he=n?n.index:-1,Ne=he!==-1,Je=new Gn(r.level,r.sn,r.stats.chunkCount,i.byteLength,he,Ne);C.push(i,R,_,"",r,n,m.totalduration,!1,Je,L)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${m.startSN} ,${m.endSN}],track ${l}`);const{cache:ae}=this.waitingData=this.waitingData||{frag:r,part:n,cache:new Ls,complete:!1};ae.push(new Uint8Array(i)),this.state!==Qt.STOPPED&&(this.state=Qt.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 r=t.tracks.audio;r&&(this.mediaBuffer=r.buffer||null)}onFragLoading(e,t){!this.audioOnly&&t.frag.type===oe.MAIN&&G(t.frag)&&(this.mainFragLoading=t,this.state===Qt.IDLE&&this.tick())}onFragBuffered(e,t){const{frag:r,part:n}=t;if(r.type!==oe.AUDIO){!this.audioOnly&&r.type===oe.MAIN&&!r.elementaryStreams.video&&!r.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${n?" p: "+n.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(G(r)){this.fragPrevious=r;const i=this.switchingTrack;i&&(this.bufferedTrack=i,this.switchingTrack=null,this.hls.trigger(p.AUDIO_TRACK_SWITCHED,A({},i)))}this.fragBufferedComplete(r,n),this.media&&this.tick()}onError(e,t){var r;if(t.fatal){this.state=Qt.ERROR;return}switch(t.details){case O.FRAG_GAP:case O.FRAG_PARSING_ERROR:case O.FRAG_DECRYPT_ERROR:case O.FRAG_LOAD_ERROR:case O.FRAG_LOAD_TIMEOUT:case O.KEY_LOAD_ERROR:case O.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(oe.AUDIO,t);break;case O.AUDIO_TRACK_LOAD_ERROR:case O.AUDIO_TRACK_LOAD_TIMEOUT:case O.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Qt.WAITING_TRACK&&((r=t.context)==null?void 0:r.type)===ce.AUDIO_TRACK&&(this.state=Qt.IDLE);break;case O.BUFFER_ADD_CODEC_ERROR:case O.BUFFER_APPEND_ERROR:if(t.parent!=="audio")return;this.resetLoadingState();break;case O.BUFFER_FULL_ERROR:if(t.parent!=="audio")return;this.reduceLengthAndFlushBuffer(t)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case O.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onBufferFlushing(e,{type:t}){t!==w.VIDEO&&(this.flushing=!0)}onBufferFlushed(e,{type:t}){if(t!==w.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===Qt.ENDED&&(this.state=Qt.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,t,oe.AUDIO),this.tick())}}_handleTransmuxComplete(e){var t;const r="audio",{hls:n}=this,{remuxResult:i,chunkMeta:s}=e,l=this.getCurrentContext(s);if(!l){this.resetWhenMissingContext(s);return}const{frag:d,part:c,level:m}=l,{details:_}=m,{audio:C,text:L,id3:R,initSegment:ae}=i;if(this.fragContextChanged(d)||!_){this.fragmentTracker.removeFragment(d);return}if(this.state=Qt.PARSING,this.switchingTrack&&C&&this.completeAudioSwitch(this.switchingTrack),ae!=null&&ae.tracks){const he=d.initSegment||d;this._bufferInitSegment(m,ae.tracks,he,s),n.trigger(p.FRAG_PARSING_INIT_SEGMENT,{frag:he,id:r,tracks:ae.tracks})}if(C){const{startPTS:he,endPTS:Ne,startDTS:Je,endDTS:We}=C;c&&(c.elementaryStreams[w.AUDIO]={startPTS:he,endPTS:Ne,startDTS:Je,endDTS:We}),d.setElementaryStreamInfo(w.AUDIO,he,Ne,Je,We),this.bufferFragmentData(C,d,c,s)}if(R!=null&&(t=R.samples)!=null&&t.length){const he=S({id:r,frag:d,details:_},R);n.trigger(p.FRAG_PARSING_METADATA,he)}if(L){const he=S({id:r,frag:d,details:_},L);n.trigger(p.FRAG_PARSING_USERDATA,he)}}_bufferInitSegment(e,t,r,n){if(this.state!==Qt.PARSING||(t.video&&delete t.video,t.audiovideo&&delete t.audiovideo,!t.audio))return;const i=t.audio;i.id=oe.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(p.BUFFER_CODECS,t);const l=i.initSegment;if(l!=null&&l.byteLength){const d={type:"audio",frag:r,part:null,chunkMeta:n,parent:r.type,data:l};this.hls.trigger(p.BUFFER_APPENDING,d)}this.tickImmediate()}loadFragment(e,t,r){const n=this.fragmentTracker.getState(e);if(this.switchingTrack||n===Br.NOT_LOADED||n===Br.PARTIAL){var i;if(!G(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=Qt.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==t.details.fragmentStart&&oi(t.details,s)}else super.loadFragment(e,t,r)}else this.clearTrackerIfNeeded(e)}flushAudioIfNeeded(e){if(this.media&&this.bufferedTrack){const{name:t,lang:r,assocLang:n,characteristics:i,audioCodec:s,channels:l}=this.bufferedTrack;wt({name:t,lang:r,assocLang:n,characteristics:i,audioCodec:s,channels:l},e,Dt)||(dr(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(p.AUDIO_TRACK_SWITCHED,A({},e))}}class ws extends ie{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,r){const n=t==null?void 0:t.renditionReports;if(n){let i=-1;for(let s=0;s<n.length;s++){const l=n[s];let d;try{d=new self.URL(l.URI,t.url).href}catch(c){this.warn(`Could not construct new URL for Rendition Report: ${c}`),d=l.URI||""}if(d===e){i=s;break}else d===e.substring(0,d.length)&&(i=s)}if(i!==-1){const s=n[i],l=parseInt(s["LAST-MSN"])||(t==null?void 0:t.lastPartSn);let d=parseInt(s["LAST-PART"])||(t==null?void 0:t.lastPartIndex);if(this.hls.config.lowLatencyMode){const m=Math.min(t.age-t.partTarget,t.targetduration);d>=0&&m>t.partTarget&&(d+=1)}const c=r&&br(r);return new xr(l,d>=0?d:void 0,c)}}}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(r){this.warn(`Could not construct new URL with HLS Delivery Directives: ${r}`)}return e}playlistLoaded(e,t,r){const{details:n,stats:i}=t,s=self.performance.now(),l=i.loading.first?Math.max(0,s-i.loading.first):0;n.advancedDateTime=Date.now()-l;const d=this.hls.config.timelineOffset;if(d!==n.appliedTimelineOffset){const m=Math.max(d||0,0);n.appliedTimelineOffset=m,n.fragments.forEach(_=>{_.start=_.playlistOffset+m})}if(n.live||r!=null&&r.live){const m="levelInfo"in t?t.levelInfo:t.track;if(n.reloaded(r),r&&n.fragments.length>0){ds(r,n);const Je=n.playlistParsingError;if(Je){this.warn(Je);const We=this.hls;if(!We.config.ignorePlaylistParsingErrors){var c;const{networkDetails:Et}=t;We.trigger(p.ERROR,{type:pe.NETWORK_ERROR,details:O.LEVEL_PARSING_ERROR,fatal:!1,url:n.url,error:Je,reason:Je.message,level:t.level||void 0,parent:(c=n.fragments[0])==null?void 0:c.type,networkDetails:Et,stats:i});return}n.playlistParsingError=null}}n.requestScheduled===-1&&(n.requestScheduled=i.loading.start);const _=this.hls.mainForwardBufferInfo,C=_?_.end-_.len:0,L=(n.edge-C)*1e3,R=Vs(n,L);if(n.requestScheduled+R<s?n.requestScheduled=s:n.requestScheduled+=R,this.log(`live playlist ${e} ${n.advanced?"REFRESHED "+n.lastPartSn+"-"+n.lastPartIndex:n.updated?"UPDATED":"MISSED"}`),!this.canLoad||!n.live)return;let ae,he,Ne;if(n.canBlockReload&&n.endSN&&n.advanced){const Je=this.hls.config.lowLatencyMode,We=n.lastPartSn,Et=n.endSN,St=n.lastPartIndex,Kt=St!==-1,At=We===Et;Kt?At?(he=Et+1,Ne=Je?0:St):(he=We,Ne=Je?St+1:n.maxPartIndex):he=Et+1;const $t=n.age,Xt=$t+n.ageHeader;let It=Math.min(Xt-n.partTarget,n.targetduration*1.5);if(It>0){if(Xt>n.targetduration*3)this.log(`Playlist last advanced ${$t.toFixed(2)}s ago. Omitting segment and part directives.`),he=void 0,Ne=void 0;else if(r!=null&&r.tuneInGoal&&Xt-n.partTarget>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${It} with playlist age: ${n.age}`),It=0;else{const pr=Math.floor(It/n.targetduration);if(he+=pr,Ne!==void 0){const wr=Math.round(It%n.targetduration/n.partTarget);Ne+=wr}this.log(`CDN Tune-in age: ${n.ageHeader}s last advanced ${$t.toFixed(2)}s goal: ${It} skip sn ${pr} to part ${Ne}`)}n.tuneInGoal=It}if(ae=this.getDeliveryDirectives(n,t.deliveryDirectives,he,Ne),Je||!At){n.requestScheduled=s,this.loadingPlaylist(m,ae);return}}else(n.canBlockReload||n.canSkipUntil)&&(ae=this.getDeliveryDirectives(n,t.deliveryDirectives,he,Ne));ae&&he!==void 0&&n.canBlockReload&&(n.requestScheduled=i.loading.first+Math.max(R-l*2,R/2)),this.scheduleLoading(m,ae,n)}else this.clearTimer()}scheduleLoading(e,t,r){const n=r||e.details;if(!n){this.loadingPlaylist(e,t);return}const i=self.performance.now(),s=n.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,r,n){let i=br(e);return t!=null&&t.skip&&e.deltaUpdateFailed&&(r=t.msn,n=t.part,i=or.No),new xr(r,n,i)}checkRetry(e){const t=e.details,r=Dr(e),n=e.errorAction,{action:i,retryCount:s=0,retryConfig:l}=n||{},d=!!n&&!!l&&(i===Fr.RetryRequest||!n.resolved&&i===Fr.SendAlternateToPenaltyBox);if(d){var c;if(s>=l.maxNumRetry)return!1;if(r&&(c=e.context)!=null&&c.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${t}" without delivery-directives`),this.loadPlaylist();else{const m=jr(l,s);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),m),this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${t}" in ${m}ms`)}e.levelRetry=!0,n.resolved=!0}return d}}function Qo(a,e){if(a.length!==e.length)return!1;for(let t=0;t<a.length;t++)if(!Aa(a[t].attrs,e[t].attrs))return!1;return!0}function Aa(a,e,t){const r=a["STABLE-RENDITION-ID"];return r&&!t?r===e["STABLE-RENDITION-ID"]:!(t||["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED","ASSOC-LANGUAGE"]).some(n=>a[n]!==e[n])}function Do(a,e){return e.label.toLowerCase()===a.name.toLowerCase()&&(!e.language||e.language.toLowerCase()===(a.lang||"").toLowerCase())}class Xl extends ws{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(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.MANIFEST_PARSED,this.onManifestParsed,this),e.on(p.LEVEL_LOADING,this.onLevelLoading,this),e.on(p.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(p.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.on(p.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.MANIFEST_PARSED,this.onManifestParsed,this),e.off(p.LEVEL_LOADING,this.onLevelLoading,this),e.off(p.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(p.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),e.off(p.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:r,groupId:n,details:i}=t,s=this.tracksInGroup[r];if(!s||s.groupId!==n){this.warn(`Audio track with id:${r} and group:${n} not found in active group ${s==null?void 0:s.groupId}`);return}const l=s.details;s.details=t.details,this.log(`Audio track ${r} "${s.name}" lang:${s.lang} group:${n} loaded [${i.startSN}-${i.endSN}]`),r===this.trackId&&this.playlistLoaded(r,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 r=t.audioGroups||null,n=this.groupIds;let i=this.currentTrack;if(!r||(n==null?void 0:n.length)!==(r==null?void 0:r.length)||r!=null&&r.some(l=>(n==null?void 0:n.indexOf(l))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const l=this.tracks.filter(C=>!r||r.indexOf(C.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(C=>C.default)&&(this.selectDefaultTrack=!1),l.forEach((C,L)=>{C.id=L});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const d=this.hls.config.audioPreference;if(!i&&d){const C=rt(d,l,Dt);if(C>-1)i=l[C];else{const L=rt(d,this.tracks);i=this.tracks[L]}}let c=this.findTrackId(i);c===-1&&i&&(c=this.findTrackId(null));const m={audioTracks:l};this.log(`Updating audio tracks, ${l.length} track(s) found in group(s): ${r==null?void 0:r.join(",")}`),this.hls.trigger(p.AUDIO_TRACKS_UPDATED,m);const _=this.trackId;if(c!==-1&&_===-1)this.setAudioTrack(c);else if(l.length&&_===-1){var s;const C=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(C.message),this.hls.trigger(p.ERROR,{type:pe.MEDIA_ERROR,details:O.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:C})}}}onError(e,t){t.fatal||!t.context||t.context.type===ce.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 r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){const n=this.currentTrack;if(n&&wt(e,n,Dt))return n;const i=rt(e,this.tracksInGroup,Dt);if(i>-1){const s=this.tracksInGroup[i];return this.setAudioTrack(i),s}else if(n){let s=t.loadLevel;s===-1&&(s=t.firstAutoLevel);const l=ir(e,t.levels,r,s,Dt);if(l===-1)return null;t.nextLoadLevel=l}if(e.channels||e.audioCodec){const s=rt(e,r);if(s>-1)return r[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 r=this.currentTrack,n=t[e],i=n.details&&!n.details.live;if(e===this.trackId&&n===r&&i||(this.log(`Switching to audio-track ${e} "${n.name}" lang:${n.lang} group:${n.groupId} channels:${n.channels}`),this.trackId=e,this.currentTrack=n,this.hls.trigger(p.AUDIO_TRACK_SWITCHING,A({},n)),i))return;const s=this.switchParams(n.url,r==null?void 0:r.details,n.details);this.loadPlaylist(s)}findTrackId(e){const t=this.tracksInGroup;for(let r=0;r<t.length;r++){const n=t[r];if(!(this.selectDefaultTrack&&!n.default)&&(!e||wt(e,n,Dt)))return r}if(e){const{name:r,lang:n,assocLang:i,characteristics:s,audioCodec:l,channels:d}=e;for(let c=0;c<t.length;c++){const m=t[c];if(wt({name:r,lang:n,assocLang:i,characteristics:s,audioCodec:l,channels:d},m,Dt))return c}for(let c=0;c<t.length;c++){const m=t[c];if(Aa(e.attrs,m.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return c}for(let c=0;c<t.length;c++){const m=t[c];if(Aa(e.attrs,m.attrs,["LANGUAGE"]))return c}}return-1}loadPlaylist(e){super.loadPlaylist();const t=this.currentTrack;this.shouldLoadPlaylist(t)&&dr(t.url,this.hls)&&this.scheduleLoading(t,e)}loadingPlaylist(e,t){super.loadingPlaylist(e,t);const r=e.id,n=e.groupId,i=this.getUrlWithDirectives(e.url,t),s=e.details,l=s==null?void 0:s.age;this.log(`Loading audio-track ${r} "${e.name}" lang:${e.lang} group:${n}${(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(p.AUDIO_TRACK_LOADING,{url:i,id:r,groupId:n,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,r){if(this.queues===null||this.tracks===null)return;const n=this.queues[t];n.push(e),n.length===1&&!r&&this.executeNext(t)}appendBlocker(e){return new Promise(t=>{const r={label:"async-blocker",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(r,e)})}prependBlocker(e){return new Promise(t=>{if(this.queues){const r={label:"async-blocker-prepend",execute:t,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[e].unshift(r)}})}removeBlockers(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(e=>{var t;const r=(t=e[0])==null?void 0:t.label;(r==="async-blocker"||r==="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 n=t[0];try{n.execute()}catch(i){var r;if(n.onError(i),this.queues===null||this.tracks===null)return;const s=(r=this.tracks[e])==null?void 0:r.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,r;return(t=this.queues)!=null&&t[e]||(r=this.tracks)!=null&&r[e]?`${e}: (${this.listSbInfo(e)}) ${this.listOps(e)}`:""}listSbInfo(e){var t;const r=(t=this.tracks)==null?void 0:t[e],n=r==null?void 0:r.buffer;return n?`SourceBuffer${n.updating?" updating":""}${r.ended?" ended":""}${r.ending?" ending":""}`:"none"}listOps(e){var t;return((t=this.queues)==null?void 0:t[e].map(r=>r.label).join(", "))||""}}const qo=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,Jo="HlsJsTrackRemovedError";class ql extends Error{constructor(e){super(e),this.name=Jo}}class Jl extends ie{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=r=>{var n;this.hls&&((n=this.mediaSource)==null?void 0:n.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=r=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=r=>{const{media:n,mediaSource:i}=this;r&&this.log("Media source opened"),!(!n||!i)&&(i.removeEventListener("sourceopen",this._onMediaSourceOpen),n.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(p.MEDIA_ATTACHED,{media:n,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:r,_objectUrl:n}=this;r!==n&&this.error(`Media element src was set while attaching MediaSource (${n} > ${r})`)},this.hls=e,this.fragmentTracker=t,this.appendSource=Se(de(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(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.MANIFEST_PARSED,this.onManifestParsed,this),e.on(p.BUFFER_RESET,this.onBufferReset,this),e.on(p.BUFFER_APPENDING,this.onBufferAppending,this),e.on(p.BUFFER_CODECS,this.onBufferCodecs,this),e.on(p.BUFFER_EOS,this.onBufferEos,this),e.on(p.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(p.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(p.FRAG_PARSED,this.onFragParsed,this),e.on(p.FRAG_CHANGED,this.onFragChanged,this),e.on(p.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.MANIFEST_PARSED,this.onManifestParsed,this),e.off(p.BUFFER_RESET,this.onBufferReset,this),e.off(p.BUFFER_APPENDING,this.onBufferAppending,this),e.off(p.BUFFER_CODECS,this.onBufferCodecs,this),e.off(p.BUFFER_EOS,this.onBufferEos,this),e.off(p.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(p.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(p.FRAG_PARSED,this.onFragParsed,this),e.off(p.FRAG_CHANGED,this.onFragChanged,this),e.off(p.ERROR,this.onError,this)}transferMedia(){const{media:e,mediaSource:t}=this;if(!e)return null;const r={};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 n=this.transferData;return!this.sourceBufferCount&&n&&n.mediaSource===t?S(r,n.tracks):this.sourceBuffers.forEach(i=>{const[s]=i;s&&(r[s]=S({},this.tracks[s]),this.removeBuffer(s)),i[0]=i[1]=null}),{media:e,mediaSource:t,tracks:r}}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 r;let n=2;(t.audio&&!t.video||!t.altAudio)&&(n=1),this.bufferCodecEventsTotal=n,this.log(`${n} bufferCodec event(s) expected.`),(r=this.transferData)!=null&&r.mediaSource&&this.sourceBufferCount&&n&&this.bufferCreated()}onMediaAttaching(e,t){const r=this.media=t.media,n=de(this.appendSource);if(this.transferData=this.overrides=void 0,r&&n){const i=!!t.mediaSource;(i||t.overrides)&&(this.transferData=t,this.overrides=t.overrides);const s=this.mediaSource=t.mediaSource||new n;if(this.assignMediaSource(s),i)this._objectUrl=r.src,this.attachTransferred();else{const l=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{r.removeAttribute("src");const d=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||d&&s instanceof d,el(r),eu(r,l),r.load()}catch(d){r.src=l}else r.src=l}r.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(e){var t,r;this.log(`${((t=this.transferData)==null?void 0:t.mediaSource)===e?"transferred":"created"} media source: ${(r=e.constructor)==null?void 0:r.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 r=this.tracks,n=t.tracks,i=n?Object.keys(n):null,s=i?i.length:0,l=()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()};if(n&&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: ${st(r,(d,c)=>d==="initSegment"?void 0:c)};
transfer tracks: ${st(n,(d,c)=>d==="initSegment"?void 0:c)}}`),!Ae(n,r)){t.mediaSource=null,t.tracks=void 0;const d=e.currentTime,c=this.details,m=Math.max(d,(c==null?void 0:c.fragments[0].start)||0);if(m-d>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${d} -> ${m}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(n)}"->"${Object.keys(r)}") start time: ${m} currentTime: ${d}`),this.onMediaDetaching(p.MEDIA_DETACHING,{}),this.onMediaAttaching(p.MEDIA_ATTACHING,t),e.currentTime=m;return}this.transferData=void 0,i.forEach(d=>{const c=d,m=n[c];if(m){const _=m.buffer;if(_){const C=this.fragmentTracker,L=m.id;if(C.hasFragments(L)||C.hasParts(L)){const he=Nr.getBuffered(_);C.detectEvictedFragments(c,he,L,null,!0)}const R=Io(c),ae=[c,_];this.sourceBuffers[R]=ae,_.updating&&this.operationQueue&&this.operationQueue.prependBlocker(c),this.trackSourceBuffer(c,m)}}}),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 r=!!t.transferMedia;this.transferData=this.overrides=void 0;const{media:n,mediaSource:i,_objectUrl:s}=this;if(i){if(this.log(`media source ${r?"transferring":"detaching"}`),r)this.sourceBuffers.forEach(([l])=>{l&&this.removeBuffer(l)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const l=i.readyState==="open";try{const d=i.sourceBuffers;for(let c=d.length;c--;)l&&d[c].abort(),i.removeSourceBuffer(d[c]);l&&i.endOfStream()}catch(d){this.warn(`onMediaDetaching: ${d.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}n&&(n.removeEventListener("emptied",this._onMediaEmptied),r||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(n.removeAttribute("src"),this.appendSource&&el(n),n.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(p.MEDIA_DETACHED,t)}onBufferReset(){this.sourceBuffers.forEach(([e])=>{e&&this.resetBuffer(e)}),this.initTracks()}resetBuffer(e){var t;const r=(t=this.tracks[e])==null?void 0:t.buffer;if(this.removeBuffer(e),r)try{var n;(n=this.mediaSource)!=null&&n.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(r)}catch(i){this.warn(`onBufferReset ${e}`,i)}delete this.tracks[e]}removeBuffer(e){this.removeBufferListeners(e),this.sourceBuffers[Io(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 r=this.tracks,n=Object.keys(t);this.log(`BUFFER_CODECS: "${n}" (current SB count ${this.sourceBufferCount})`);const i="audiovideo"in t&&(r.audio||r.video)||r.audiovideo&&("audio"in t||"video"in t),s=!i&&this.sourceBufferCount&&this.media&&n.some(l=>!r[l]);if(i||s){this.warn(`Unsupported transition between "${Object.keys(r)}" and "${n}" SourceBuffers`);return}n.forEach(l=>{var d,c,m;const _=t[l],{id:C,codec:L,levelCodec:R,container:ae,metadata:he,supplemental:Ne}=_;let Je=r[l];const We=(d=this.transferData)==null||(c=d.tracks)==null?void 0:c[l],Et=We!=null&&We.buffer?We:Je,St=(Et==null?void 0:Et.pendingCodec)||(Et==null?void 0:Et.codec),Kt=Et==null?void 0:Et.levelCodec;Je||(Je=r[l]={buffer:void 0,listeners:[],codec:L,supplemental:Ne,container:ae,levelCodec:R,metadata:he,id:C});const At=cr(St,Kt),$t=At==null?void 0:At.replace(qo,"$1");let Xt=cr(L,R);const It=(m=Xt)==null?void 0:m.replace(qo,"$1");Xt&&At&&$t!==It&&(l.slice(0,5)==="audio"&&(Xt=Ce(Xt,this.appendSource)),this.log(`switching codec ${St} to ${Xt}`),Xt!==(Je.pendingCodec||Je.codec)&&(Je.pendingCodec=Xt),Je.container=ae,this.appendChangeType(l,ae,Xt))}),(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 r=this.tracks[t];return e[t]={id:r.id,container:r.container,codec:r.codec,levelCodec:r.levelCodec},e},{})}appendChangeType(e,t,r){const n=`${t};codecs=${r}`,i={label:`change-type=${n}`,execute:()=>{const s=this.tracks[e];if(s){const l=s.buffer;l!=null&&l.changeType&&(this.log(`changing ${e} sourceBuffer type to ${n}`),l.changeType(n),s.codec=r,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 r=e.start,n=r+e.duration*.05;if(((t=this.fragmentTracker.getAppendedFrag(r,oe.MAIN))==null?void 0:t.gap)===!0)return;const s={label:"block-audio",execute:()=>{var l;const d=this.tracks.video;(this.lastVideoAppendEnd>n||d!=null&&d.buffer&&Nr.isBuffered(d.buffer,n)||((l=this.fragmentTracker.getAppendedFrag(n,oe.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:r}=this,{data:n,type:i,parent:s,frag:l,part:d,chunkMeta:c}=t,m=c.buffering[i],_=l.sn,C=self.performance.now();m.start=C;const L=l.stats.buffering,R=d?d.stats.buffering:null;L.start===0&&(L.start=C),R&&R.start===0&&(R.start=C);const ae=r.audio;let he=!1;i==="audio"&&(ae==null?void 0:ae.container)==="audio/mpeg"&&(he=!this.lastMpegAudioChunk||c.id===1||this.lastMpegAudioChunk.sn!==c.sn,this.lastMpegAudioChunk=c);const Ne=this.tracks.video,Je=Ne==null?void 0:Ne.buffer;if(Je&&_!=="initSegment"){const St=d||l,Kt=this.blockedAudioAppend;if(i==="audio"&&s!=="main"&&!this.blockedAudioAppend){const $t=St.start+St.duration*.05,Xt=Je.buffered,It=this.currentOp("video");!Xt.length&&!It?this.blockAudio(St):!It&&!Nr.isBuffered(Je,$t)&&this.lastVideoAppendEnd<$t&&this.blockAudio(St)}else if(i==="video"){const At=St.end;if(Kt){const $t=Kt.frag.start;(At>$t||At<this.lastVideoAppendEnd||Nr.isBuffered(Je,$t))&&this.unblockAudio()}this.lastVideoAppendEnd=At}}const We=(d||l).start,Et={label:`append-${i}`,execute:()=>{if(m.executeStart=self.performance.now(),he){const St=this.tracks[i];if(St){const Kt=St.buffer;if(Kt){const At=We-Kt.timestampOffset;Math.abs(At)>=.1&&(this.log(`Updating audio SourceBuffer timestampOffset to ${We} (delta: ${At}) sn: ${_})`),Kt.timestampOffset=We)}}}this.appendExecutor(n,i)},onStart:()=>{},onComplete:()=>{const St=self.performance.now();m.executeEnd=m.end=St,L.first===0&&(L.first=St),R&&R.first===0&&(R.first=St);const Kt={};this.sourceBuffers.forEach(([At,$t])=>{At&&(Kt[At]=Nr.getBuffered($t))}),this.appendErrors[i]=0,i==="audio"||i==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(p.BUFFER_APPENDED,{type:i,frag:l,part:d,chunkMeta:c,parent:l.type,timeRanges:Kt})},onError:St=>{var Kt;const At={type:pe.MEDIA_ERROR,parent:l.type,details:O.BUFFER_APPEND_ERROR,sourceBufferName:i,frag:l,part:d,chunkMeta:c,error:St,err:St,fatal:!1};if(St.code===DOMException.QUOTA_EXCEEDED_ERR)At.details=O.BUFFER_FULL_ERROR;else if(St.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!((Kt=this.media)!=null&&Kt.error))At.errorAction=Zr(!0);else if(St.name===Jo)this.sourceBufferCount===0?At.errorAction=Zr(!0):++this.appendErrors[i];else{const $t=++this.appendErrors[i];this.warn(`Failed ${$t}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${i}" sourceBuffer`),$t>=this.hls.config.appendErrorMaxRetry&&(At.fatal=!0)}this.hls.trigger(p.ERROR,At)}};this.append(Et,i,this.isPending(this.tracks[i]))}getFlushOp(e,t,r){return this.log(`queuing "${e}" remove ${t}-${r}`),{label:"remove",execute:()=>{this.removeExecutor(e,t,r)},onStart:()=>{},onComplete:()=>{this.hls.trigger(p.BUFFER_FLUSHED,{type:e})},onError:n=>{this.warn(`Failed to remove ${t}-${r} from "${e}" SourceBuffer`,n)}}}onBufferFlushing(e,t){const{type:r,startOffset:n,endOffset:i}=t;r?this.append(this.getFlushOp(r,n,i),r):this.sourceBuffers.forEach(([s])=>{s&&this.append(this.getFlushOp(s,n,i),s)})}onFragParsed(e,t){const{frag:r,part:n}=t,i=[],s=n?n.elementaryStreams:r.elementaryStreams;s[w.AUDIOVIDEO]?i.push("audiovideo"):(s[w.AUDIO]&&i.push("audio"),s[w.VIDEO]&&i.push("video"));const l=()=>{const d=self.performance.now();r.stats.buffering.end=d,n&&(n.stats.buffering.end=d);const c=n?n.stats:r.stats;this.hls.trigger(p.FRAG_BUFFERED,{frag:r,part:n,stats:c,id:r.type})};i.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${r.type} level: ${r.level} sn: ${r.sn}`),this.blockBuffers(l,i)}onFragChanged(e,t){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([e])=>{var t,r;return e&&(!((t=this.tracks[e])!=null&&t.ended)||((r=this.tracks[e])==null?void 0:r.ending))})}onBufferEos(e,t){var r;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 n=((r=this.overrides)==null?void 0:r.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([s])=>{var l;return s&&!((l=this.tracks[s])!=null&&l.ended)})&&(n?(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(p.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(p.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(){const e=this.getDurationAndRange();e&&this.blockUntilOpen(()=>this.updateMediaSource(e))}onError(e,t){if(t.details===O.BUFFER_APPEND_ERROR&&t.frag){var r;const n=(r=t.errorAction)==null?void 0:r.nextAutoLevel;v(n)&&n!==t.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:e,details:t,media:r}=this;if(!r||t===null||!this.sourceBufferCount)return;const n=e.config,i=r.currentTime,s=t.levelTargetDuration,l=t.live&&n.liveBackBufferLength!==null?n.liveBackBufferLength:n.backBufferLength;if(v(l)&&l>=0){const d=Math.max(l,s),c=Math.floor(i/s)*s-d;this.flushBackBuffer(i,s,c)}if(v(n.frontBufferFlushThreshold)&&n.frontBufferFlushThreshold>0){const d=Math.max(n.maxBufferLength,n.frontBufferFlushThreshold),c=Math.max(d,s),m=Math.floor(i/s)*s+c;this.flushFrontBuffer(i,s,m)}}flushBackBuffer(e,t,r){this.sourceBuffers.forEach(([n,i])=>{if(i){const l=Nr.getBuffered(i);if(l.length>0&&r>l.start(0)){var s;this.hls.trigger(p.BACK_BUFFER_REACHED,{bufferEnd:r});const d=this.tracks[n];if((s=this.details)!=null&&s.live)this.hls.trigger(p.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(d!=null&&d.ended){this.log(`Cannot flush ${n} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(p.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:n})}}})}flushFrontBuffer(e,t,r){this.sourceBuffers.forEach(([n,i])=>{if(i){const s=Nr.getBuffered(i),l=s.length;if(l<2)return;const d=s.start(l-1),c=s.end(l-1);if(r>d||e>=d&&e<=c)return;this.hls.trigger(p.BUFFER_FLUSHING,{startOffset:d,endOffset:1/0,type:n})}})}getDurationAndRange(){var e;const{details:t,mediaSource:r}=this;if(!t||!this.media||(r==null?void 0:r.readyState)!=="open")return null;const n=t.edge;if(t.live&&this.hls.config.liveDurationInfinity){if(t.fragments.length&&t.live&&r.setLiveSeekableRange){const c=Math.max(0,t.fragmentStart),m=Math.max(c,n);return{duration:1/0,start:c,end:m}}return{duration:1/0}}const i=(e=this.overrides)==null?void 0:e.duration;if(i)return v(i)?{duration:i}:null;const s=this.media.duration,l=v(r.duration)?r.duration:0;return n>l&&n>s||!v(s)?{duration:n}:null}updateMediaSource({duration:e,start:t,end:r}){const n=this.mediaSource;!this.media||!n||n.readyState!=="open"||(n.duration!==e&&(v(e)&&this.log(`Updating MediaSource duration to ${e.toFixed(3)}`),n.duration=e),t!==void 0&&r!==void 0&&(this.log(`MediaSource duration is set to ${n.duration}. Setting seekable range to ${t}-${r}.`),n.setLiveSeekableRange(t,r)))}get tracksReady(){const e=this.pendingTrackCount;return e>0&&(e>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:e,pendingTrackCount:t,tracks:r}=this;if(this.log(`checkPendingTracks (pending: ${t} codec events expected: ${e}) ${st(r)}`),this.tracksReady){var n;const i=(n=this.transferData)==null?void 0:n.tracks;i&&Object.keys(i).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const e={};this.sourceBuffers.forEach(([t,r])=>{if(t){const n=this.tracks[t];e[t]={buffer:r,container:n.container,codec:n.codec,supplemental:n.supplemental,levelCodec:n.levelCodec,id:n.id,metadata:n.metadata}}}),this.hls.trigger(p.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(p.ERROR,{type:pe.MEDIA_ERROR,details:O.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:e,reason:e.message})}}createSourceBuffers(){const{tracks:e,sourceBuffers:t,mediaSource:r}=this;if(!r)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 d=this.getTrackCodec(l,s),c=`${l.container};codecs=${d}`;l.codec=d,this.log(`creating sourceBuffer(${c})${this.currentOp(s)?" Queued":""} ${st(l)}`);try{const m=r.addSourceBuffer(c),_=Io(s),C=[s,m];t[_]=C,l.buffer=m}catch(m){var n;this.error(`error while trying to add sourceBuffer: ${m.message}`),this.shiftAndExecuteNext(s),(n=this.operationQueue)==null||n.removeBlockers(),delete this.tracks[s],this.hls.trigger(p.ERROR,{type:pe.MEDIA_ERROR,details:O.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:m,sourceBufferName:s,mimeType:c,parent:l.id});return}this.trackSourceBuffer(s,l)}}this.bufferCreated()}getTrackCodec(e,t){const r=e.supplemental;let n=e.codec;r&&(t==="video"||t==="audiovideo")&&je(r,"video")&&(n=qt(n,r));const i=cr(n,e.levelCodec);return i?t.slice(0,5)==="audio"?Ce(i,this.appendSource):i:""}trackSourceBuffer(e,t){const r=t.buffer;if(!r)return;const n=this.getTrackCodec(t,e);this.tracks[e]={buffer:r,codec:n,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(p.BUFFER_FLUSHED,{type:i})})}get mediaSrc(){var e,t;const r=((e=this.media)==null||(t=e.querySelector)==null?void 0:t.call(e,"source"))||this.media;return r==null?void 0:r.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 r=this.currentOp(e);r&&(r.onComplete(),this.shiftAndExecuteNext(e))}onSBUpdateError(e,t){var r;const n=new Error(`${e} SourceBuffer error. MediaSource readyState: ${(r=this.mediaSource)==null?void 0:r.readyState}`);this.error(`${n}`,t),this.hls.trigger(p.ERROR,{type:pe.MEDIA_ERROR,details:O.BUFFER_APPENDING_ERROR,sourceBufferName:e,error:n,fatal:!1});const i=this.currentOp(e);i&&i.onError(n)}removeExecutor(e,t,r){const{media:n,mediaSource:i}=this,s=this.tracks[e],l=s==null?void 0:s.buffer;if(!n||!i||!l){this.warn(`Attempting to remove from the ${e} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(e);return}const d=v(n.duration)?n.duration:1/0,c=v(i.duration)?i.duration:1/0,m=Math.max(0,t),_=Math.min(r,d,c);_>m&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${m},${_}] from the ${e} SourceBuffer`),l.remove(m,_)):this.shiftAndExecuteNext(e)}appendExecutor(e,t){const r=this.tracks[t],n=r==null?void 0:r.buffer;if(!n)throw new ql(`Attempting to append to the ${t} SourceBuffer, but it does not exist`);r.ending=!1,r.ended=!1,n.appendBuffer(e)}blockUntilOpen(e){this.isUpdating()||this.isQueued()?this.blockBuffers(e):e()}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){this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(e);return}const{operationQueue:r}=this,n=t.map(s=>this.appendBlocker(s));t.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(n).then(s=>{r===this.operationQueue&&(e(),this.stepOperationQueue(t))})}stepOperationQueue(e){e.forEach(t=>{var r;const n=(r=this.tracks[t])==null?void 0:r.buffer;!n||n.updating||this.shiftAndExecuteNext(t)})}append(e,t,r){this.operationQueue&&this.operationQueue.append(e,t,r)}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,r){const n=this.tracks[e];if(!n)return;const i=n.buffer;if(!i)return;const s=r.bind(this,e);n.listeners.push({event:t,listener:s}),i.addEventListener(t,s)}removeBufferListeners(e){const t=this.tracks[e];if(!t)return;const r=t.buffer;r&&(t.listeners.forEach(n=>{r.removeEventListener(n.event,n.listener)}),t.listeners.length=0)}}function el(a){const e=a.querySelectorAll("source");[].slice.call(e).forEach(t=>{a.removeChild(t)})}function eu(a,e){const t=self.document.createElement("source");t.type="video/mp4",t.src=e,a.appendChild(t)}function Io(a){return a==="audio"?1:0}class Ro{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(p.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.on(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(p.MANIFEST_PARSED,this.onManifestParsed,this),e.on(p.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(p.BUFFER_CODECS,this.onBufferCodecs,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:e}=this;e.off(p.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),e.off(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(p.MANIFEST_PARSED,this.onManifestParsed,this),e.off(p.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(p.BUFFER_CODECS,this.onBufferCodecs,this),e.off(p.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(e,t){const r=this.hls.levels[t.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.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 r=this.hls;this.restrictedLevels=[],this.firstLevel=t.firstLevel,r.config.capLevelToPlayerSize&&t.video&&this.startCapping()}onLevelsUpdated(e,t){this.timer&&v(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,r=this.getMaxLevel(e.length-1);r!==this.autoLevelCapping&&t.logger.log(`Setting autoLevelCapping to ${r}: ${e[r].height}p@${e[r].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),t.autoLevelCapping=r,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 r=t.filter((n,i)=>this.isLevelAllowed(n)&&i<=e);return this.clientRect=null,Ro.getMaxLevelByMediaSize(r,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 r=e.getBoundingClientRect();t.width=r.width,t.height=r.height,!t.width&&!t.height&&(t.width=r.right-r.left||e.width||0,t.height=r.bottom-r.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(r=>e.bitrate===r.bitrate&&e.width===r.width&&e.height===r.height)}static getMaxLevelByMediaSize(e,t,r){if(!(e!=null&&e.length))return-1;const n=(l,d)=>d?l.width!==d.width||l.height!==d.height:!0;let i=e.length-1;const s=Math.max(t,r);for(let l=0;l<e.length;l+=1){const d=e[l];if((d.width>=s||d.height>=s)&&n(d,e[l+1])){i=l;break}}return i}}const Ii={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},tu={HLS:"h"},Ta={OBJECT:"CMCD-Object",REQUEST:"CMCD-Request",SESSION:"CMCD-Session",STATUS:"CMCD-Status"},ru={[Ta.OBJECT]:["br","d","ot","tb"],[Ta.REQUEST]:["bl","dl","mtp","nor","nrr","su"],[Ta.SESSION]:["cid","pr","sf","sid","st","v"],[Ta.STATUS]:["bs","rtp"]};class ra{constructor(e,t){Array.isArray(e)&&(e=e.map(r=>r instanceof ra?r:new ra(r))),this.value=e,this.params=t}}const nu="Dict";function iu(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 su(a,e,t,r){return new Error(`failed to ${a} "${iu(e)}" as ${t}`,{cause:r})}function Yi(a,e,t){return su("serialize",a,e,t)}class tl{constructor(e){this.description=e}}const rl="Bare Item",au="Boolean";function ou(a){if(typeof a!="boolean")throw Yi(a,au);return a?"?1":"?0"}const lu="Byte Sequence";function uu(a){if(ArrayBuffer.isView(a)===!1)throw Yi(a,lu);return`:${ja(a)}:`}const cu="Integer";function du(a){return a<-999999999999999||999999999999999<a}function nl(a){if(du(a))throw Yi(a,cu);return a.toString()}function hu(a){return`@${nl(a.getTime()/1e3)}`}const fu="Decimal";function mu(a){const e=ma(a,3);if(Math.floor(Math.abs(e)).toString().length>12)throw Yi(a,fu);const t=e.toString();return t.includes(".")?t:`${t}.0`}const pu="String",gu=/[\x00-\x1f\x7f]+/;function vu(a){if(gu.test(a))throw Yi(a,pu);return`"${a.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function _u(a){return a.description||a.toString().slice(7,-1)}const yu="Token";function il(a){const e=_u(a);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(e)===!1)throw Yi(e,yu);return e}function Lo(a){switch(typeof a){case"number":if(!v(a))throw Yi(a,rl);return Number.isInteger(a)?nl(a):mu(a);case"string":return vu(a);case"symbol":return il(a);case"boolean":return ou(a);case"object":if(a instanceof Date)return hu(a);if(a instanceof Uint8Array)return uu(a);if(a instanceof tl)return il(a);default:throw Yi(a,rl)}}const bu="Key";function ko(a){if(/^[a-z*][a-z0-9\-_.*]*$/.test(a)===!1)throw Yi(a,bu);return a}function Oo(a){return a==null?"":Object.entries(a).map(([e,t])=>t===!0?`;${ko(e)}`:`;${ko(e)}=${Lo(t)}`).join("")}function sl(a){return a instanceof ra?`${Lo(a.value)}${Oo(a.params)}`:Lo(a)}function xu(a){return`(${a.value.map(sl).join(" ")})${Oo(a.params)}`}function Eu(a,e={whitespace:!0}){if(typeof a!="object")throw Yi(a,nu);const t=a instanceof Map?a.entries():Object.entries(a),r=e!=null&&e.whitespace?" ":"";return Array.from(t).map(([n,i])=>{i instanceof ra||(i=new ra(i));let s=ko(n);return i.value===!0?s+=Oo(i.params):(s+="=",Array.isArray(i.value)?s+=xu(i):s+=sl(i)),s}).join(`,${r}`)}function wu(a,e){return Eu(a,e)}function Su(a){return a==="ot"||a==="sf"||a==="st"}function Au(a){return typeof a=="number"?v(a):a!=null&&a!==""&&a!==!1}const ro=a=>Math.round(a),Tu=(a,e)=>(e!=null&&e.baseUrl&&(a=po(a,e.baseUrl)),encodeURIComponent(a)),no=a=>ro(a/100)*100,Cu={br:ro,d:ro,bl:no,dl:no,mtp:no,nor:Tu,rtp:no,tb:ro};function Du(a,e){const t={};if(a==null||typeof a!="object")return t;const r=Object.keys(a).sort(),n=S({},Cu,e==null?void 0:e.formatters),i=e==null?void 0:e.filter;return r.forEach(s=>{if(i!=null&&i(s))return;let l=a[s];const d=n[s];d&&(l=d(l,e)),!(s==="v"&&l===1)&&(s=="pr"&&l===1||Au(l)&&(Su(s)&&typeof l=="string"&&(l=new tl(l)),t[s]=l))}),t}function al(a,e={}){return a?wu(Du(a,e),S({whitespace:!1},e)):""}function Iu(a,e={}){const t={};if(!a)return t;const r=Object.entries(a),n=Object.entries(ru).concat(Object.entries((e==null?void 0:e.customHeaderMap)||{})),i=r.reduce((s,l)=>{var d,c;const[m,_]=l,C=((d=n.find(L=>L[1].includes(m)))===null||d===void 0?void 0:d[0])||Ta.REQUEST;return(c=s[C])!==null&&c!==void 0||(s[C]={}),s[C][m]=_,s},{});return Object.entries(i).reduce((s,[l,d])=>(s[l]=al(d,e),s),t)}function Ru(a,e,t){return S(a,Iu(e,t))}const Lu="CMCD";function ku(a,e={}){if(!a)return"";const t=al(a,e);return`${Lu}=${encodeURIComponent(t)}`}const ol=/CMCD=[^&#]+/;function Ou(a,e,t){const r=ku(e,t);if(!r)return a;if(ol.test(a))return a.replace(ol,r);const n=a.includes("?")?"&":"?";return`${a}${n}${r}`}class Pu{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=n=>{try{this.apply(n,{ot:Ii.MANIFEST,su:!this.initialized})}catch(i){this.hls.logger.warn("Could not generate manifest CMCD data.",i)}},this.applyFragmentData=n=>{try{const{frag:i,part:s}=n,l=this.hls.levels[i.level],d=this.getObjectType(i),c={d:(s||i).duration*1e3,ot:d};(d===Ii.VIDEO||d===Ii.AUDIO||d==Ii.MUXED)&&(c.br=l.bitrate/1e3,c.tb=this.getTopBandwidth(d)/1e3,c.bl=this.getBufferLength(d));const m=s?this.getNextPart(s):this.getNextFrag(i);m!=null&&m.url&&m.url!==i.url&&(c.nor=m.url),this.apply(n,c)}catch(i){this.hls.logger.warn("Could not generate segment CMCD data.",i)}},this.hls=e;const t=this.config=e.config,{cmcd:r}=t;r!=null&&(t.pLoader=this.createPlaylistLoader(),t.fLoader=this.createFragmentLoader(),this.sid=r.sessionId||e.sessionId,this.cid=r.contentId,this.useHeaders=r.useHeaders===!0,this.includeKeys=r.includeKeys,this.registerListeners())}registerListeners(){const e=this.hls;e.on(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(p.MEDIA_DETACHED,this.onMediaDetached,this),e.on(p.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const e=this.hls;e.off(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(p.MEDIA_DETACHED,this.onMediaDetached,this),e.off(p.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 r,n;this.audioBuffer=(r=t.tracks.audio)==null?void 0:r.buffer,this.videoBuffer=(n=t.tracks.video)==null?void 0:n.buffer}createData(){var e;return{v:1,sf:tu.HLS,sid:this.sid,cid:this.cid,pr:(e=this.media)==null?void 0:e.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(e,t={}){S(t,this.createData());const r=t.ot===Ii.INIT||t.ot===Ii.VIDEO||t.ot===Ii.MUXED;this.starved&&r&&(t.bs=!0,t.su=!0,this.starved=!1),t.su==null&&(t.su=this.buffering);const{includeKeys:n}=this;n&&(t=Object.keys(t).reduce((s,l)=>(n.includes(l)&&(s[l]=t[l]),s),{}));const i={baseUrl:e.url};this.useHeaders?(e.headers||(e.headers={}),Ru(e.headers,t,i)):e.url=Ou(e.url,t,i)}getNextFrag(e){var t;const r=(t=this.hls.levels[e.level])==null?void 0:t.details;if(r){const n=e.sn-r.startSN;return r.fragments[n+1]}}getNextPart(e){var t,r;const{index:n,fragment:i}=e,s=(t=this.hls.levels[i.level])==null||(r=t.details)==null?void 0:r.partList;if(s){const{sn:l}=i;for(let d=s.length-1;d>=0;d--){const c=s[d];if(c.index===n&&c.fragment.sn===l)return s[d+1]}}}getObjectType(e){const{type:t}=e;if(t==="subtitle")return Ii.TIMED_TEXT;if(e.sn==="initSegment")return Ii.INIT;if(t==="audio")return Ii.AUDIO;if(t==="main")return this.hls.audioTracks.length?Ii.VIDEO:Ii.MUXED}getTopBandwidth(e){let t=0,r;const n=this.hls;if(e===Ii.AUDIO)r=n.audioTracks;else{const i=n.maxAutoLevel,s=i>-1?i+1:n.levels.length;r=n.levels.slice(0,s)}for(const i of r)i.bitrate>t&&(t=i.bitrate);return t>0?t:NaN}getBufferLength(e){const t=this.media,r=e===Ii.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!t?NaN:Nr.bufferInfo(r,t.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:e}=this.config,t=this.applyPlaylistData,r=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new r(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,r=e||this.config.loader;return class{constructor(i){this.loader=void 0,this.loader=new r(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 Mu=3e5;class Fu extends ie{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(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(p.MANIFEST_PARSED,this.onManifestParsed,this),e.on(p.ERROR,this.onError,this)}unregisterListeners(){const e=this.hls;e&&(e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(p.MANIFEST_PARSED,this.onManifestParsed,this),e.off(p.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(r=>r!==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:r}=t;r!==null&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())}onManifestParsed(e,t){this.audioTracks=t.audioTracks,this.subtitleTracks=t.subtitleTracks}onError(e,t){const{errorAction:r}=t;if((r==null?void 0:r.action)===Fr.SendAlternateToPenaltyBox&&r.flags===dt.MoveAllAlternatesMatchingHost){const n=this.levels;let i=this._pathwayPriority,s=this.pathwayId;if(t.context){const{groupId:l,pathwayId:d,type:c}=t.context;l&&n?s=this.getPathwayForGroupId(l,c,s):d&&(s=d)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!i&&n&&(i=this.pathways()),i&&i.length>1&&(this.updatePathwayPriority(i),r.resolved=this.pathwayId!==s),r.resolved||this.warn(`Could not resolve ${t.details} ("${t.error.message}") with content-steering for Pathway: ${s} levels: ${n&&n.length} priorities: ${st(i)} penalized: ${st(this.penalizedPathways)}`)}}filterParsedLevels(e){this.levels=e;let t=this.getLevelsForPathway(this.pathwayId);if(t.length===0){const r=e[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${r}"`),t=this.getLevelsForPathway(r),this.pathwayId=r}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 r=this.penalizedPathways,n=performance.now();Object.keys(r).forEach(i=>{n-r[i]>Mu&&delete r[i]});for(let i=0;i<e.length;i++){const s=e[i];if(s in r)continue;if(s===this.pathwayId)return;const l=this.hls.nextLoadLevel,d=this.hls.levels[l];if(t=this.getLevelsForPathway(s),t.length>0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,gs(t),this.hls.trigger(p.LEVELS_UPDATED,{levels:t});const c=this.hls.levels[l];d&&c&&this.levels&&(c.attrs["STABLE-VARIANT-ID"]!==d.attrs["STABLE-VARIANT-ID"]&&c.bitrate!==d.bitrate&&this.log(`Unstable Pathways change from bitrate ${d.bitrate} to ${c.bitrate}`),this.hls.nextLoadLevel=l);break}}}getPathwayForGroupId(e,t,r){const n=this.getLevelsForPathway(r).concat(this.levels||[]);for(let i=0;i<n.length;i++)if(t===ce.AUDIO_TRACK&&n[i].hasAudioGroup(e)||t===ce.SUBTITLE_TRACK&&n[i].hasSubtitleGroup(e))return n[i].pathwayId;return r}clonePathways(e){const t=this.levels;if(!t)return;const r={},n={};e.forEach(i=>{const{ID:s,"BASE-ID":l,"URI-REPLACEMENT":d}=i;if(t.some(m=>m.pathwayId===s))return;const c=this.getLevelsForPathway(l).map(m=>{const _=new Er(m.attrs);_["PATHWAY-ID"]=s;const C=_.AUDIO&&`${_.AUDIO}_clone_${s}`,L=_.SUBTITLES&&`${_.SUBTITLES}_clone_${s}`;C&&(r[_.AUDIO]=C,_.AUDIO=C),L&&(n[_.SUBTITLES]=L,_.SUBTITLES=L);const R=ul(m.uri,_["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",d),ae=new zr({attrs:_,audioCodec:m.audioCodec,bitrate:m.bitrate,height:m.height,name:m.name,url:R,videoCodec:m.videoCodec,width:m.width});if(m.audioGroups)for(let he=1;he<m.audioGroups.length;he++)ae.addGroupId("audio",`${m.audioGroups[he]}_clone_${s}`);if(m.subtitleGroups)for(let he=1;he<m.subtitleGroups.length;he++)ae.addGroupId("text",`${m.subtitleGroups[he]}_clone_${s}`);return ae});t.push(...c),ll(this.audioTracks,r,d,s),ll(this.subtitleTracks,n,d,s)})}loadSteeringManifest(e){const t=this.hls.config,r=t.loader;this.loader&&this.loader.destroy(),this.loader=new r(t);let n;try{n=new self.URL(e)}catch(m){this.enabled=!1,this.log(`Failed to parse Steering Manifest URI: ${e}`);return}if(n.protocol!=="data:"){const m=(this.hls.bandwidthEstimate||t.abrEwmaDefaultEstimate)|0;n.searchParams.set("_HLS_pathway",this.pathwayId),n.searchParams.set("_HLS_throughput",""+m)}const i={responseType:"json",url:n.href},s=t.steeringManifestLoadPolicy.default,l=s.errorRetry||s.timeoutRetry||{},d={loadPolicy:s,timeout:s.maxLoadTimeMs,maxRetry:l.maxNumRetry||0,retryDelay:l.retryDelayMs||0,maxRetryDelay:l.maxRetryDelayMs||0},c={onSuccess:(m,_,C,L)=>{this.log(`Loaded steering manifest: "${n}"`);const R=m.data;if((R==null?void 0:R.VERSION)!==1){this.log(`Steering VERSION ${R.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=R.TTL;const{"RELOAD-URI":ae,"PATHWAY-CLONES":he,"PATHWAY-PRIORITY":Ne}=R;if(ae)try{this.uri=new self.URL(ae,n).href}catch(We){this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${ae}`);return}this.scheduleRefresh(this.uri||C.url),he&&this.clonePathways(he);const Je={steeringManifest:R,url:n.toString()};this.hls.trigger(p.STEERING_MANIFEST_LOADED,Je),Ne&&this.updatePathwayPriority(Ne)},onError:(m,_,C,L)=>{if(this.log(`Error loading steering manifest: ${m.code} ${m.text} (${_.url})`),this.stopLoad(),m.code===410){this.enabled=!1,this.log(`Steering manifest ${_.url} no longer available`);return}let R=this.timeToLoad*1e3;if(m.code===429){const ae=this.loader;if(typeof(ae==null?void 0:ae.getResponseHeader)=="function"){const he=ae.getResponseHeader("Retry-After");he&&(R=parseFloat(he)*1e3)}this.log(`Steering manifest ${_.url} rate limited`);return}this.scheduleRefresh(this.uri||_.url,R)},onTimeout:(m,_,C)=>{this.log(`Timeout loading steering manifest (${_.url})`),this.scheduleRefresh(this.uri||_.url)}};this.log(`Requesting steering manifest: ${n}`),this.loader.load(i,d,c)}scheduleRefresh(e,t=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var r;const n=(r=this.hls)==null?void 0:r.media;if(n&&!n.ended){this.loadSteeringManifest(e);return}this.scheduleRefresh(e,this.timeToLoad*1e3)},t)}}function ll(a,e,t,r){a&&Object.keys(e).forEach(n=>{const i=a.filter(s=>s.groupId===n).map(s=>{const l=S({},s);return l.details=void 0,l.attrs=new Er(l.attrs),l.url=l.attrs.URI=ul(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",t),l.groupId=l.attrs["GROUP-ID"]=e[n],l.attrs["PATHWAY-ID"]=r,l});a.push(...i)})}function ul(a,e,t,r){const{HOST:n,PARAMS:i,[t]:s}=r;let l;e&&(l=s==null?void 0:s[e],l&&(a=l));const d=new self.URL(a);return n&&!l&&(d.host=n),i&&Object.keys(i).sort().forEach(c=>{c&&d.searchParams.set(c,i[c])}),d.href}class na extends ie{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.setMediaKeysQueue=na.CDMCleanupPromise?[na.CDMCleanupPromise]:[],this.onMediaEncrypted=t=>{const{initDataType:r,initData:n}=t,i=`"${t.type}" event: init data type: "${r}"`;if(this.debug(i),n!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=Lr(this.config));const l=s.map(Ci).filter(d=>!!d);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=Li(s);let d,c;if(r==="sinf"){if(l!==vn.FAIRPLAY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${l}`);return}const R=Ut(new Uint8Array(n));try{const ae=mn(JSON.parse(R).sinf),he=Fe(ae);if(!he)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");d=new Uint8Array(he.subarray(8,24)),c=vn.FAIRPLAY}catch(ae){this.warn(`${i} Failed to parse sinf: ${ae}`);return}}else{if(l!==vn.WIDEVINE&&l!==vn.PLAYREADY){this.warn(`Ignoring unexpected "${t.type}" event with init data type: "${r}" for selected key-system ${l}`);return}const R=nt(n),ae=R.filter(Ne=>!!Ne.systemId&&Pi(Ne.systemId)===l);ae.length>1&&this.warn(`${i} Using first of ${ae.length} pssh found for selected key-system ${l}`);const he=ae[0];if(!he){R.length===0||R.some(Ne=>!Ne.systemId)?this.warn(`${i} contains incomplete or invalid pssh data`):this.log(`ignoring ${i} for ${R.map(Ne=>Pi(Ne.systemId)).join(",")} pssh data in favor of playlist keys`);return}if(c=Pi(he.systemId),he.version===0&&he.data)if(c===vn.WIDEVINE){const Ne=he.data.length-22;d=new Uint8Array(he.data.subarray(Ne,Ne+16))}else c===vn.PLAYREADY&&(d=wn(he.data))}if(!c||!d)return;const m=ee.hexDump(d),{keyIdToKeySessionPromise:_,mediaKeySessions:C}=this;let L=_[m];for(let R=0;R<C.length;R++){const ae=C[R],he=ae.decryptdata;if(!he.keyId)continue;const Ne=ee.hexDump(he.keyId);if(m===Ne||he.uri.replace(/-/g,"").indexOf(m)!==-1){if(L=_[Ne],he.pssh)break;delete _[Ne],he.pssh=new Uint8Array(n),he.keyId=d,L=_[m]=L.then(()=>this.generateRequestWithPreferredKeySession(ae,r,n,"encrypted-event-key-match")),L.catch(Je=>this.handleError(Je));break}}if(!L){if(c!==l){this.log(`Ignoring "${t.type}" event with ${c} init data for selected key-system ${l}`);return}L=_[m]=this.getKeySystemSelectionPromise([c]).then(({keySystem:R,mediaKeys:ae})=>{var he;this.throwIfDestroyed();const Ne=new Di("ISO-23001-7",m,(he=Ci(R))!=null?he:"");return Ne.pssh=new Uint8Array(n),Ne.keyId=d,this.attemptSetMediaKeys(R,ae).then(()=>{this.throwIfDestroyed();const Je=this.createMediaKeySessionContext({decryptdata:Ne,keySystem:R,mediaKeys:ae});return this.generateRequestWithPreferredKeySession(Je,r,n,"encrypted-event-no-match")})}),L.catch(R=>this.handleError(R))}})}},this.onWaitingForKey=t=>{this.log(`"${t.type}" event`)},this.hls=e,this.config=e.config,this.registerListeners()}destroy(){const e=this.media;this.unregisterListeners(),this.onMediaDetached(),this._clear(e);const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(p.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(p.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(p.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(p.MANIFEST_LOADED,this.onManifestLoaded,this)}unregisterListeners(){this.hls.off(p.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(p.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(p.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(p.MANIFEST_LOADED,this.onManifestLoaded,this)}getLicenseServerUrl(e){const{drmSystems:t,widevineLicenseUrl:r}=this.config,n=t[e];if(n)return n.licenseUrl;if(e===vn.WIDEVINE&&r)return r}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,r=t[e];if(r)return r.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${e}"]`)}attemptKeySystemAccess(e){const t=this.hls.levels,r=(s,l,d)=>!!s&&d.indexOf(s)===l,n=t.map(s=>s.audioCodec).filter(r),i=t.map(s=>s.videoCodec).filter(r);return n.length+i.length===0&&i.push("avc1.42e01e"),new Promise((s,l)=>{const d=c=>{const m=c.shift();this.getMediaKeysPromise(m,n,i).then(_=>s({keySystem:m,mediaKeys:_})).catch(_=>{c.length?d(c):_ instanceof Bi?l(_):l(new Bi({type:pe.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_NO_ACCESS,error:_,fatal:!0},_.message))})};d(e)})}requestMediaKeySystemAccess(e,t){const{requestMediaKeySystemAccessFunc:r}=this.config;if(typeof r!="function"){let n=`Configured requestMediaKeySystemAccess is not a function ${r}`;return Ur===null&&self.location.protocol==="http:"&&(n=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(n))}return r(e,t)}getMediaKeysPromise(e,t,r){const n=Pn(e,t,r,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: ${st(n)}`),s=this.requestMediaKeySystemAccess(e,n);const l=this.keySystemAccessPromises[e]={keySystemAccess:s};return s.catch(d=>{this.log(`Failed to obtain access to key-system "${e}": ${d}`)}),s.then(d=>{this.log(`Access for key-system "${d.keySystem}" obtained`);const c=this.fetchServerCertificate(e);return this.log(`Create media-keys for "${e}"`),l.mediaKeys=d.createMediaKeys().then(m=>(this.log(`Media-keys created for "${e}"`),c.then(_=>_?this.setMediaKeysServerCertificate(m,e,_):m))),l.mediaKeys.catch(m=>{this.error(`Failed to create media-keys for "${e}"}: ${m}`)}),l.mediaKeys})}return s.then(()=>i.mediaKeys)}createMediaKeySessionContext({decryptdata:e,keySystem:t,mediaKeys:r}){this.log(`Creating key-system session "${t}" keyId: ${ee.hexDump(e.keyId||[])}`);const n=r.createSession(),i={decryptdata:e,keySystem:t,mediaKeys:r,mediaKeysSession:n,keyStatus:"status-pending"};return this.mediaKeySessions.push(i),i}renewKeySession(e){const t=e.decryptdata;if(t.pssh){const r=this.createMediaKeySessionContext(e),n=this.getKeyIdString(t),i="cenc";this.keyIdToKeySessionPromise[n]=this.generateRequestWithPreferredKeySession(r,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 ee.hexDump(e.keyId)}updateKeySession(e,t){var r;const n=e.mediaKeysSession;return this.log(`Updating key-session "${n.sessionId}" for keyID ${ee.hexDump(((r=e.decryptdata)==null?void 0:r.keyId)||[])}
} (data length: ${t&&t.byteLength})`),n.update(t)}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){return new Promise((t,r)=>{const n=Lr(this.config),i=e.map(Li).filter(s=>!!s&&n.indexOf(s)!==-1);return this.getKeySystemSelectionPromise(i).then(({keySystem:s})=>{const l=Ci(s);l?t(l):r(new Error(`Unable to find format for key-system "${s}"`))}).catch(r)})}loadKey(e){const t=e.keyInfo.decryptdata,r=this.getKeyIdString(t),n=`(keyId: ${r} format: "${t.keyFormat}" method: ${t.method} uri: ${t.uri})`;this.log(`Starting session for key ${n}`);let i=this.keyIdToKeySessionPromise[r];return i||(i=this.getKeySystemForKeyPromise(t).then(({keySystem:l,mediaKeys:d})=>(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${e.frag.sn} ${e.frag.type}: ${e.frag.level} using key ${n}`),this.attemptSetMediaKeys(l,d).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:l,mediaKeys:d,decryptdata:t}))))),(this.keyIdToKeySessionPromise[r]=i.then(l=>{const d="cenc",c=t.pssh?t.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(l,d,c,"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 Bi?this.hls.trigger(p.ERROR,e.data):this.hls.trigger(p.ERROR,{type:pe.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_NO_KEYS,error:e,fatal:!0}))}getKeySystemForKeyPromise(e){const t=this.getKeyIdString(e),r=this.keyIdToKeySessionPromise[t];if(!r){const n=Li(e.keyFormat),i=n?[n]:Lr(this.config);return this.attemptKeySystemAccess(i)}return r}getKeySystemSelectionPromise(e){if(e.length||(e=Lr(this.config)),e.length===0)throw new Bi({type:pe.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${st({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(e)}attemptSetMediaKeys(e,t){const r=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${e}"`);const n=Promise.all(r).then(()=>{if(!this.media)throw new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(t)});return this.setMediaKeysQueue.push(n),n.then(()=>{this.log(`Media-keys set for "${e}"`),r.push(n),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(i=>r.indexOf(i)===-1)})}generateRequestWithPreferredKeySession(e,t,r,n){var i,s;const l=(i=this.config.drmSystems)==null||(s=i[e.keySystem])==null?void 0:s.generateRequest;if(l)try{const R=l.call(this.hls,t,r,e);if(!R)throw new Error("Invalid response from configured generateRequest filter");t=R.initDataType,r=R.initData?R.initData:null,e.decryptdata.pssh=r?new Uint8Array(r):null}catch(R){var d;if(this.warn(R.message),(d=this.hls)!=null&&d.config.debug)throw R}if(r===null)return this.log(`Skipping key-session request for "${n}" (no initData)`),Promise.resolve(e);const c=this.getKeyIdString(e.decryptdata);this.log(`Generating key-session request for "${n}": ${c} (init data type: ${t} length: ${r?r.byteLength:null})`);const m=new Ys,_=e._onmessage=R=>{const ae=e.mediaKeysSession;if(!ae){m.emit("error",new Error("invalid state"));return}const{messageType:he,message:Ne}=R;this.log(`"${he}" message event for session "${ae.sessionId}" message size: ${Ne.byteLength}`),he==="license-request"||he==="license-renewal"?this.renewLicense(e,Ne).catch(Je=>{m.eventNames().length?m.emit("error",Je):this.handleError(Je)}):he==="license-release"?e.keySystem===vn.FAIRPLAY&&(this.updateKeySession(e,Nn("acknowledged")),this.removeSession(e)):this.warn(`unhandled media key message type "${he}"`)},C=e._onkeystatuseschange=R=>{if(!e.mediaKeysSession){m.emit("error",new Error("invalid state"));return}this.onKeyStatusChange(e);const he=e.keyStatus;m.emit("keyStatus",he),he==="expired"&&(this.warn(`${e.keySystem} expired for key ${c}`),this.renewKeySession(e))};e.mediaKeysSession.addEventListener("message",_),e.mediaKeysSession.addEventListener("keystatuseschange",C);const L=new Promise((R,ae)=>{m.on("error",ae),m.on("keyStatus",he=>{he.startsWith("usable")?R():he==="output-restricted"?ae(new Bi({type:pe.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):he==="internal-error"?ae(new Bi({type:pe.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},`key status changed to "${he}"`)):he==="expired"?ae(new Error("key expired while generating request")):this.warn(`unhandled key status change "${he}"`)})});return e.mediaKeysSession.generateRequest(t,r).then(()=>{var R;this.log(`Request generated for key-session "${(R=e.mediaKeysSession)==null?void 0:R.sessionId}" keyId: ${c}`)}).catch(R=>{throw new Bi({type:pe.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_NO_SESSION,error:R,fatal:!1},`Error generating key-session request: ${R}`)}).then(()=>L).catch(R=>{throw m.removeAllListeners(),this.removeSession(e),R}).then(()=>(m.removeAllListeners(),e))}onKeyStatusChange(e){e.mediaKeysSession.keyStatuses.forEach((t,r)=>{this.log(`key status change "${t}" for keyStatuses keyId: ${ee.hexDump("buffer"in r?new Uint8Array(r.buffer,r.byteOffset,r.byteLength):new Uint8Array(r))} session keyId: ${ee.hexDump(new Uint8Array(e.decryptdata.keyId||[]))} uri: ${e.decryptdata.uri}`),e.keyStatus=t})}fetchServerCertificate(e){const t=this.config,r=t.loader,n=new r(t),i=this.getServerCertificateUrl(e);return i?(this.log(`Fetching server certificate for "${e}"`),new Promise((s,l)=>{const d={responseType:"arraybuffer",url:i},c=t.certLoadPolicy.default,m={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},_={onSuccess:(C,L,R,ae)=>{s(C.data)},onError:(C,L,R,ae)=>{l(new Bi({type:pe.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:R,response:A({url:d.url,data:void 0},C)},`"${e}" certificate request failed (${i}). Status: ${C.code} (${C.text})`))},onTimeout:(C,L,R)=>{l(new Bi({type:pe.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:R,response:{url:d.url,data:void 0}},`"${e}" certificate request timed out (${i})`))},onAbort:(C,L,R)=>{l(new Error("aborted"))}};n.load(d,m,_)})):Promise.resolve()}setMediaKeysServerCertificate(e,t,r){return new Promise((n,i)=>{e.setServerCertificate(r).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${r==null?void 0:r.byteLength}) on "${t}"`),n(e)}).catch(s=>{i(new Bi({type:pe.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(e,t){return this.requestLicense(e,new Uint8Array(t)).then(r=>this.updateKeySession(e,new Uint8Array(r)).catch(n=>{throw new Bi({type:pe.KEY_SYSTEM_ERROR,details:O.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:n,fatal:!0},n.message)}))}unpackPlayReadyKeyMessage(e,t){const r=String.fromCharCode.apply(null,new Uint16Array(t.buffer));if(!r.includes("PlayReadyKeyMessage"))return e.setRequestHeader("Content-Type","text/xml; charset=utf-8"),t;const n=new DOMParser().parseFromString(r,"application/xml"),i=n.querySelectorAll("HttpHeader");if(i.length>0){let m;for(let _=0,C=i.length;_<C;_++){var s,l;m=i[_];const L=(s=m.querySelector("name"))==null?void 0:s.textContent,R=(l=m.querySelector("value"))==null?void 0:l.textContent;L&&R&&e.setRequestHeader(L,R)}}const d=n.querySelector("Challenge"),c=d==null?void 0:d.textContent;if(!c)throw new Error("Cannot find <Challenge> in key message");return Nn(atob(c))}setupLicenseXHR(e,t,r,n){const i=this.config.licenseXhrSetup;return i?Promise.resolve().then(()=>{if(!r.decryptdata)throw new Error("Key removed");return i.call(this.hls,e,t,r,n)}).catch(s=>{if(!r.decryptdata)throw s;return e.open("POST",t,!0),i.call(this.hls,e,t,r,n)}).then(s=>(e.readyState||e.open("POST",t,!0),{xhr:e,licenseChallenge:s||n})):(e.open("POST",t,!0),Promise.resolve({xhr:e,licenseChallenge:n}))}requestLicense(e,t){const r=this.config.keyLoadPolicy.default;return new Promise((n,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 d=l.response;this.log(`License received ${d instanceof ArrayBuffer?d.byteLength:d}`);const c=this.config.licenseResponseCallback;if(c)try{d=c.call(this.hls,l,s,e)}catch(m){this.error(m)}n(d)}else{const d=r.errorRetry,c=d?d.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>c||l.status>=400&&l.status<500)i(new Bi({type:pe.KEY_SYSTEM_ERROR,details:O.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 m=c-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${m} attempts left`),this.requestLicense(e,t).then(n,i)}}},e.licenseXhr&&e.licenseXhr.readyState!==XMLHttpRequest.DONE&&e.licenseXhr.abort(),e.licenseXhr=l,this.setupLicenseXHR(l,s,e,t).then(({xhr:d,licenseChallenge:c})=>{e.keySystem==vn.PLAYREADY&&(c=this.unpackPlayReadyKeyMessage(d,c)),d.send(c)})})}onMediaAttached(e,t){if(!this.config.emeEnabled)return;const r=t.media;this.media=r,r.removeEventListener("encrypted",this.onMediaEncrypted),r.removeEventListener("waitingforkey",this.onWaitingForKey),r.addEventListener("encrypted",this.onMediaEncrypted),r.addEventListener("waitingforkey",this.onWaitingForKey)}onMediaDetached(){const e=this.media;e&&(e.removeEventListener("encrypted",this.onMediaEncrypted),e.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null)}_clear(e){var t;const r=this.mediaKeySessions;this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},Di.clearKeyUriToKeyIdMap();const n=r.length;na.CDMCleanupPromise=Promise.all(r.map(i=>this.removeSession(i)).concat(e==null||(t=e.setMediaKeys(null))==null?void 0:t.catch(i=>{var s;this.log(`Could not clear media keys: ${i}`),(s=this.hls)==null||s.trigger(p.ERROR,{type:pe.OTHER_ERROR,details:O.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${i}`)})}))).then(()=>{n&&(this.log("finished closing key sessions and clearing media keys"),r.length=0)}).catch(i=>{var s;this.log(`Could not close sessions and clear media keys: ${i}`),(s=this.hls)==null||s.trigger(p.ERROR,{type:pe.OTHER_ERROR,details:O.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${i}`)})})}onManifestLoading(){this.keyFormatPromise=null}onManifestLoaded(e,{sessionKeys:t}){if(!(!t||!this.config.emeEnabled)&&!this.keyFormatPromise){const r=t.reduce((n,i)=>(n.indexOf(i.keyFormat)===-1&&n.push(i.keyFormat),n),[]);this.log(`Selecting key-system from session-keys ${r.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(r)}}removeSession(e){const{mediaKeysSession:t,licenseXhr:r}=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),r&&r.readyState!==XMLHttpRequest.DONE&&r.abort(),e.mediaKeysSession=e.decryptdata=e.licenseXhr=void 0;const n=this.mediaKeySessions.indexOf(e);return n>-1&&this.mediaKeySessions.splice(n,1),t.remove().catch(i=>{var s;this.log(`Could not remove session: ${i}`),(s=this.hls)==null||s.trigger(p.ERROR,{type:pe.OTHER_ERROR,details:O.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${i}`)})}).then(()=>t.close()).catch(i=>{var s;this.log(`Could not close session: ${i}`),(s=this.hls)==null||s.trigger(p.ERROR,{type:pe.OTHER_ERROR,details:O.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${i}`)})})}}}na.CDMCleanupPromise=void 0;class Bi 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(p.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(p.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(p.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(p.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(e,t){const r=this.hls.config;if(r.capLevelOnFPSDrop){const n=t.media instanceof self.HTMLVideoElement?t.media:null;this.media=n,n&&typeof n.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(e,t,r){const n=performance.now();if(t){if(this.lastTime){const i=n-this.lastTime,s=r-this.lastDroppedFrames,l=t-this.lastDecodedFrames,d=1e3*s/i,c=this.hls;if(c.trigger(p.FPS_DROP,{currentDropped:s,currentDecoded:l,totalDroppedFrames:r}),d>0&&s>c.config.fpsDroppedMonitoringThreshold*l){let m=c.currentLevel;c.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+m),m>0&&(c.autoLevelCapping===-1||c.autoLevelCapping>=m)&&(m=m-1,c.trigger(p.FPS_DROP_LEVEL_CAPPING,{level:m,droppedLevel:c.currentLevel}),c.autoLevelCapping=m,this.streamController.nextLevelSwitch())}}this.lastTime=n,this.lastDroppedFrames=r,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 cl(a,e){let t;try{t=new Event("addtrack")}catch(r){t=document.createEvent("Event"),t.initEvent("addtrack",!1,!1)}t.track=a,e.dispatchEvent(t)}function dl(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(r){Q.debug(`[texttrack-utils]: ${r}`);try{const n=new self.TextTrackCue(e.startTime,e.endTime,e.text);n.id=e.id,a.addCue(n)}catch(n){Q.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${n}`)}}t==="disabled"&&(a.mode=t)}function ia(a,e){const t=a.mode;if(t==="disabled"&&(a.mode="hidden"),a.cues)for(let r=a.cues.length;r--;)e&&a.cues[r].removeEventListener("enter",e),a.removeCue(a.cues[r]);t==="disabled"&&(a.mode=t)}function Po(a,e,t,r){const n=a.mode;if(n==="disabled"&&(a.mode="hidden"),a.cues&&a.cues.length>0){const i=$u(a.cues,e,t);for(let s=0;s<i.length;s++)(!r||r(i[s]))&&a.removeCue(i[s])}n==="disabled"&&(a.mode=n)}function Nu(a,e){if(e<=a[0].startTime)return 0;const t=a.length-1;if(e>a[t].endTime)return-1;let r=0,n=t,i;for(;r<=n;)if(i=Math.floor((n+r)/2),e<a[i].startTime)n=i-1;else if(e>a[i].startTime&&r<t)r=i+1;else return i;return a[r].startTime-e<e-a[n].startTime?r:n}function $u(a,e,t){const r=[],n=Nu(a,e);if(n>-1)for(let i=n,s=a.length;i<s;i++){const l=a[i];if(l.startTime>=e&&l.endTime<=t)r.push(l);else if(l.startTime>t)return r}return r}function io(a){const e=[];for(let t=0;t<a.length;t++){const r=a[t];(r.kind==="subtitles"||r.kind==="captions")&&r.label&&e.push(a[t])}return e}class Uu extends ws{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 r=io(this.media.textTracks);for(let i=0;i<r.length;i++)if(r[i].mode==="hidden")t=r[i];else if(r[i].mode==="showing"){t=r[i];break}const n=this.findTrackForTextTrack(t);this.subtitleTrack!==n&&this.setSubtitleTrack(n)},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(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.MANIFEST_PARSED,this.onManifestParsed,this),e.on(p.LEVEL_LOADING,this.onLevelLoading,this),e.on(p.LEVEL_SWITCHING,this.onLevelSwitching,this),e.on(p.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(p.ERROR,this.onError,this)}unregisterListeners(){const{hls:e}=this;e.off(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.MANIFEST_PARSED,this.onManifestParsed,this),e.off(p.LEVEL_LOADING,this.onLevelLoading,this),e.off(p.LEVEL_SWITCHING,this.onLevelSwitching,this),e.off(p.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(p.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 r=this.media;if(!r)return;const n=!!t.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||r.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,n)return;io(r.textTracks).forEach(s=>{ia(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:r,groupId:n,details:i}=t,s=this.tracksInGroup[r];if(!s||s.groupId!==n){this.warn(`Subtitle track with id:${r} and group:${n} not found in active group ${s==null?void 0:s.groupId}`);return}const l=s.details;s.details=t.details,this.log(`Subtitle track ${r} "${s.name}" lang:${s.lang} group:${n} loaded [${i.startSN}-${i.endSN}]`),r===this.trackId&&this.playlistLoaded(r,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 r=t.subtitleGroups||null,n=this.groupIds;let i=this.currentTrack;if(!r||(n==null?void 0:n.length)!==(r==null?void 0:r.length)||r!=null&&r.some(s=>(n==null?void 0:n.indexOf(s))===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const s=this.tracks.filter(m=>!r||r.indexOf(m.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(m=>m.default)&&(this.selectDefaultTrack=!1),s.forEach((m,_)=>{m.id=_});else if(!i&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const l=this.hls.config.subtitlePreference;if(!i&&l){this.selectDefaultTrack=!1;const m=rt(l,s);if(m>-1)i=s[m];else{const _=rt(l,this.tracks);i=this.tracks[_]}}let d=this.findTrackId(i);d===-1&&i&&(d=this.findTrackId(null));const c={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${r==null?void 0:r.join(",")}" group-id`),this.hls.trigger(p.SUBTITLE_TRACKS_UPDATED,c),d!==-1&&this.trackId===-1&&this.setSubtitleTrack(d)}}findTrackId(e){const t=this.tracksInGroup,r=this.selectDefaultTrack;for(let n=0;n<t.length;n++){const i=t[n];if(!(r&&!i.default||!r&&!e)&&(!e||wt(i,e)))return n}if(e){for(let n=0;n<t.length;n++){const i=t[n];if(Aa(e.attrs,i.attrs,["LANGUAGE","ASSOC-LANGUAGE","CHARACTERISTICS"]))return n}for(let n=0;n<t.length;n++){const i=t[n];if(Aa(e.attrs,i.attrs,["LANGUAGE"]))return n}}return-1}findTrackForTextTrack(e){if(e){const t=this.tracksInGroup;for(let r=0;r<t.length;r++){const n=t[r];if(Do(n,e))return r}}return-1}onError(e,t){t.fatal||!t.context||t.context.type===ce.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 r=this.currentTrack;if(r&&wt(e,r))return r;const n=rt(e,this.tracksInGroup);if(n>-1){const i=this.tracksInGroup[n];return this.setSubtitleTrack(n),i}else{if(r)return null;{const i=rt(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 r=e.id,n=e.groupId,i=this.getUrlWithDirectives(e.url,t),s=e.details,l=s==null?void 0:s.age;this.log(`Loading subtitle ${r} "${e.name}" lang:${e.lang} group:${n}${(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(p.SUBTITLE_TRACK_LOADING,{url:i,id:r,groupId:n,deliveryDirectives:t||null,track:e})}toggleTrackModes(){const{media:e}=this;if(!e)return;const t=io(e.textTracks),r=this.currentTrack;let n;if(r&&(n=t.filter(i=>Do(r,i))[0],n||this.warn(`Unable to find subtitle TextTrack with name "${r.name}" and language "${r.lang}"`)),[].slice.call(t).forEach(i=>{i.mode!=="disabled"&&i!==n&&(i.mode="disabled")}),n){const i=this.subtitleDisplay?"showing":"hidden";n.mode!==i&&(n.mode=i)}}setSubtitleTrack(e){const t=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=e;return}if(e<-1||e>=t.length||!v(e)){this.warn(`Invalid subtitle track id: ${e}`);return}this.selectDefaultTrack=!1;const r=this.currentTrack,n=t[e]||null;if(this.trackId=e,this.currentTrack=n,this.toggleTrackModes(),!n){this.hls.trigger(p.SUBTITLE_TRACK_SWITCH,{id:e});return}const i=!!n.details&&!n.details.live;if(e===this.trackId&&n===r&&i)return;this.log(`Switching to subtitle-track ${e}`+(n?` "${n.name}" lang:${n.lang} group:${n.groupId}`:""));const{id:s,groupId:l="",name:d,type:c,url:m}=n;this.hls.trigger(p.SUBTITLE_TRACK_SWITCH,{id:s,groupId:l,name:d,type:c,url:m});const _=this.switchParams(n.url,r==null?void 0:r.details,n.details);this.loadPlaylist(_)}}function Ca(a){let e=5381,t=a.length;for(;t;)e=e*33^a.charCodeAt(--t);return(e>>>0).toString()}const sa=.025;let so=function(a){return a[a.Point=0]="Point",a[a.Range=1]="Range",a}({});function zu(a,e,t){return`${a.identifier}-${t+1}-${Ca(e)}`}class ju{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){if(e>=this.assetList.length)return!0;const t=this.playoutLimit;return e<=0||isNaN(t)?!1:this.assetList[e].startOffset>t}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 Mo(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,r=Mo(t,e);return t-r<.1}return!1}get resumptionOffset(){const e=this.resumeOffset,t=v(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 Mo(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)<sa))}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"?so.Range:so.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 Hu(this)}}function Mo(a,e){return a-e.start<e.duration/2&&!(Math.abs(a-(e.start+e.duration))<sa)?e.start:e.start+e.duration}function hl(a,e,t){const r=new self.URL(a,t);return r.protocol!=="data:"&&r.searchParams.set("_HLS_primary_id",e),r}function Hu(a){return`["${a.identifier}" ${a.cue.pre?"<pre>":a.cue.post?"<post>":""}${a.timelineStart.toFixed(2)}-${a.resumeTime.toFixed(2)}]`}function Fo(a){const e=a.timelineStart,t=a.duration||0;return`["${a.identifier}" ${e.toFixed(2)}-${(e+t).toFixed(2)}]`}class Gu{constructor(e,t,r,n){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=()=>{const c=this.interstitial.playoutLimit,m=this.currentTime;this.startOffset+m>=c&&this.hls.trigger(p.PLAYOUT_LIMIT_REACHED,{})};const i=this.hls=new e(t);this.interstitial=r,this.assetItem=n;let s=n.uri;try{s=hl(s,i.sessionId).href}catch(d){}i.loadSource(s);const l=()=>{this.hasDetails=!0};i.once(p.LEVEL_LOADED,l),i.once(p.AUDIO_TRACK_LOADED,l),i.once(p.SUBTITLE_TRACK_LOADED,l),i.on(p.MEDIA_ATTACHING,(d,{media:c})=>{this.removeMediaListeners(),this.mediaAttached=c,this.interstitial.playoutLimit&&c.addEventListener("timeupdate",this.checkPlayout)})}bufferedInPlaceToEnd(e){var t;if(!this.interstitial.appendInPlace)return!1;if((t=this.hls)!=null&&t.bufferedToEnd)return!0;if(!e||!this._bufferedEosTime)return!1;const r=this.timelineOffset,n=Nr.bufferInfo(e,r,0);return this.getAssetTime(n.end)>=this._bufferedEosTime-.02}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=Nr.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 r=e-t;if(Math.abs(r)>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,r=this.duration;return Math.min(Math.max(0,e-t),r)}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()}on(e,t,r){this.hls.on(e,t)}once(e,t,r){this.hls.once(e,t)}off(e,t,r){this.hls.off(e,t)}toString(){var e,t;return`HlsAssetPlayer: ${Fo(this.assetItem)} ${(e=this.hls)==null?void 0:e.sessionId} ${(t=this.interstitial)!=null&&t.appendInPlace?"append-in-place":""}`}}const fl=.033;class Wu extends ie{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((r,n)=>e<=n.startOffset&&t>n.startOffset?(delete n.error,r+1):r,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 r=-1;e.nextEvent?r=this.findEventIndex(e.nextEvent.identifier)-1:e.previousEvent&&(r=this.findEventIndex(e.previousEvent.identifier)+1);const n=this.items;if(n)for(n[r]||(t===void 0&&(t=e.start),r=this.findItemIndexAtTime(t));r>=0&&(i=n[r])!=null&&i.event;){var i;r--}return r}findItemIndexAtTime(e,t){const r=this.items;if(r)for(let n=0;n<r.length;n++){let i=r[n];if(t&&t!=="primary"&&(i=i[t]),e===i.start||e>i.start&&e<i.end)return n}return-1}findJumpRestrictedIndex(e,t){const r=this.items;if(r)for(let n=e;n<=t&&r[n];n++){const i=r[n].event;if(i!=null&&i.restrictions.jump&&!i.appendInPlace)return n}return-1}findEventIndex(e){const t=this.items;if(t)for(let n=t.length;n--;){var r;if(((r=t[n].event)==null?void 0:r.identifier)===e)return n}return-1}findAssetIndex(e,t){const r=e.assetList,n=r.length;if(n>1)for(let i=0;i<n;i++){const s=r[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 r=(e=this.items)==null||(t=e[this.length-1])==null?void 0:t.event;if(r){const n=r.assetList,i=n[n.length-1];if(i)return i.identifier}return null}parseInterstitialDateRanges(e,t){const r=e.main.details,{dateRanges:n}=r,i=this.events,s=this.parseDateRanges(n,{url:r.url},t),l=Object.keys(n),d=i?i.filter(c=>!l.includes(c.identifier)):[];s.length&&s.sort((c,m)=>{const _=c.cue.pre,C=c.cue.post,L=m.cue.pre,R=m.cue.post;if(_&&!L)return-1;if(L&&!_||C&&!R)return 1;if(R&&!C)return-1;if(!_&&!L&&!C&&!R){const ae=c.startTime,he=m.startTime;if(ae!==he)return ae-he}return c.dateRange.tagOrder-m.dateRange.tagOrder}),this.events=s,d.forEach(c=>{this.removeEvent(c)}),this.updateSchedule(e,d)}updateSchedule(e,t=[]){const r=this.events||[];if(r.length||t.length||this.length<2){const n=this.items,i=this.parseSchedule(r,e);(t.length||(n==null?void 0:n.length)!==i.length||i.some((l,d)=>Math.abs(l.playout.start-n[d].playout.start)>.005||Math.abs(l.playout.end-n[d].playout.end)>.005))&&(this.items=i,this.onScheduleUpdate(t,n))}}parseDateRanges(e,t,r){const n=[],i=Object.keys(e);for(let s=0;s<i.length;s++){const l=i[s],d=e[l];if(d.isInterstitial){let c=this.eventMap[l];c?c.setDateRange(d):(c=new ju(d,t),this.eventMap[l]=c,r===!1&&(c.appendInPlace=r)),n.push(c)}}return n}parseSchedule(e,t){const r=[],n=t.main.details,i=n.live?1/0:n.edge;let s=0;if(e=e.filter(d=>!d.error&&!(d.cue.once&&d.hasPlayed)),e.length){this.resolveOffsets(e,t);let d=0,c=0;if(e.forEach((m,_)=>{const C=m.cue.pre,L=m.cue.post,R=e[_-1]||null,ae=m.appendInPlace,he=L?i:m.startOffset,Ne=m.duration,Je=m.timelineOccupancy===so.Range?Ne:0,We=m.resumptionOffset,Et=(R==null?void 0:R.startTime)===he,St=he+m.cumulativeDuration;let Kt=ae?St+Ne:he+We;if(C||!L&&he<=0){const $t=c;c+=Je,m.timelineStart=St;const Xt=s;s+=Ne,r.push({event:m,start:St,end:Kt,playout:{start:Xt,end:s},integrated:{start:$t,end:c}})}else if(he<=i){if(!Et){const It=he-d;if(It>fl){const pr=d,wr=c;c+=It;const xn=s;s+=It;const qr={previousEvent:e[_-1]||null,nextEvent:m,start:pr,end:pr+It,playout:{start:xn,end:s},integrated:{start:wr,end:c}};r.push(qr)}else It>0&&R&&(R.cumulativeDuration+=It,r[r.length-1].end=he)}L&&(Kt=St),m.timelineStart=St;const $t=c;c+=Je;const Xt=s;s+=Ne,r.push({event:m,start:St,end:Kt,playout:{start:Xt,end:s},integrated:{start:$t,end:c}})}else return;const At=m.resumeTime;L||At>i?d=i:d=At}),d<i){var l;const m=d,_=c,C=i-d;c+=C;const L=s;s+=C,r.push({previousEvent:((l=r[r.length-1])==null?void 0:l.event)||null,nextEvent:null,start:d,end:m+C,playout:{start:L,end:s},integrated:{start:_,end:c}})}this.setDurations(i,s,c)}else r.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 r}setDurations(e,t,r){this.durations={primary:e,playout:t,integrated:r}}resolveOffsets(e,t){const r=t.main.details,n=r.live?1/0:r.edge;let i=0,s=-1;e.forEach((l,d)=>{const c=l.cue.pre,m=l.cue.post,_=c?0:m?n:l.startTime;this.updateAssetDurations(l),s===_?l.cumulativeDuration=i:(i=0,s=_),!m&&l.snapOptions.in&&(l.resumeAnchor=mr(null,r.fragments,l.startOffset+l.resumptionOffset,0,0)||void 0),l.appendInPlace&&!l.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(l,t)||(l.appendInPlace=!1)),!l.appendInPlace&&d+1<e.length&&e[d+1].startTime-e[d].resumeTime<fl&&(e[d+1].appendInPlace=!1,e[d+1].appendInPlace&&this.warn(`Could not change append strategy for abutting event ${l}`));const L=v(l.resumeOffset)?l.resumeOffset:l.duration;i+=L})}primaryCanResumeInPlaceAt(e,t){const r=e.resumeTime,n=e.startTime+e.resumptionOffset;return Math.abs(r-n)>sa?(this.log(`"${e.identifier}" resumption ${r} not aligned with estimated timeline end ${n}`),!1):t?!Object.keys(t).some(s=>{const l=t[s].details,d=l.edge;if(r>=d)return this.log(`"${e.identifier}" resumption ${r} past ${s} playlist end ${d}`),!1;const c=mr(null,l.fragments,r);if(!c)return this.log(`"${e.identifier}" resumption ${r} does not align with any fragments in ${s} playlist (${l.fragStart}-${l.fragmentEnd})`),!0;const m=s==="audio"?.175:0;return Math.abs(c.start-r)<sa+m||Math.abs(c.end-r)<sa+m?!1:(this.log(`"${e.identifier}" resumption ${r} not aligned with ${s} fragment bounds (${c.start}-${c.end} sn: ${c.sn} cc: ${c.cc})`),!0)}):(this.log(`"${e.identifier}" resumption ${r} can not be aligned with media (none selected)`),!1)}updateAssetDurations(e){if(!e.assetListLoaded)return;const t=e.timelineStart;let r=0,n=!1,i=!1;e.assetList.forEach((s,l)=>{const d=t+r;s.startOffset=r,s.timelineStart=d,n||(n=s.duration===null),i||(i=!!s.error);const c=s.error?0:s.duration||0;r+=c}),n&&!i?e.duration=Math.max(r,e.duration):e.duration=r}removeEvent(e){e.reset(),delete this.eventMap[e.identifier]}}function Ss(a){return`[${a.event?'"'+a.event.identifier+'"':"primary"}: ${a.start.toFixed(2)}-${a.end.toFixed(2)}]`}class Ku{constructor(e){this.hls=void 0,this.hls=e}destroy(){this.hls=null}loadAssetList(e,t){const r=e.assetListUrl;let n;try{n=hl(r,this.hls.sessionId,e.baseUrl)}catch(C){const L=this.assignAssetListError(e,O.ASSET_LIST_LOAD_ERROR,C,r);this.hls.trigger(p.ERROR,L);return}t&&n.protocol!=="data:"&&n.searchParams.set("_HLS_start_offset",""+t);const i=this.hls.config,s=i.loader,l=new s(i),d={responseType:"json",url:n.href},c=i.interstitialAssetListLoadPolicy.default,m={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},_={onSuccess:(C,L,R,ae)=>{const he=C.data,Ne=he==null?void 0:he.ASSETS;if(!Array.isArray(Ne)){const Je=this.assignAssetListError(e,O.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),R.url,L,ae);this.hls.trigger(p.ERROR,Je);return}e.assetListResponse=he,this.hls.trigger(p.ASSET_LIST_LOADED,{event:e,assetListResponse:he,networkDetails:ae})},onError:(C,L,R,ae)=>{const he=this.assignAssetListError(e,O.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${C.code} ${C.text} (${L.url})`),L.url,ae,R);this.hls.trigger(p.ERROR,he)},onTimeout:(C,L,R)=>{const ae=this.assignAssetListError(e,O.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${L.url})`),L.url,C,R);this.hls.trigger(p.ERROR,ae)}};return l.load(d,m,_),this.hls.trigger(p.ASSET_LIST_LOADING,{event:e}),l}assignAssetListError(e,t,r,n,i,s){return e.error=r,{type:pe.NETWORK_ERROR,details:t,fatal:!1,interstitial:e,url:n,error:r,networkDetails:s,stats:i}}}function ns(a,e,t){Xi(a,e,t),a.addEventListener(e,t)}function Xi(a,e,t){a.removeEventListener(e,t)}function ml(a){a==null||a.play().catch(()=>{})}class Vu extends ie{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 r=this.currentTime;if(r===void 0||this.playbackDisabled)return;const n=r-this.timelinePos;if(Math.abs(n)<1/7056e5)return;const s=n<=-.01;this.timelinePos=r,this.bufferedPos=r;const l=this.playingItem;if(!l){this.checkBuffer();return}if(s&&this.schedule.resetErrorsInRange(r,r-n)&&this.updateSchedule(),this.checkBuffer(),s&&r<l.start||r>=l.end){var d;const C=this.schedule.findItemIndexAtTime(this.timelinePos);if(!this.isInterstitial(l)&&(d=this.media)!=null&&d.paused&&(this.shouldPlay=!1),!s){const L=this.findItemIndex(l);if(C>L){const R=this.schedule.findJumpRestrictedIndex(L+1,C);if(R>L){this.setSchedulePosition(R);return}}}this.setSchedulePosition(C);return}const c=this.playingAsset;if(!c){if(this.playingLastItem&&this.isInterstitial(l)){const C=l.event.assetList[0];C&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(r,C))}return}const m=c.timelineStart,_=c.duration||0;(s&&r<m||r>=m+_)&&this.setScheduleToAssetAtTime(r,c)},this.onTimeupdate=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled)return;if(r>this.timelinePos)this.timelinePos=r,r>this.bufferedPos&&this.checkBuffer();else return;const n=this.playingItem;if(!n||this.playingLastItem)return;if(r>=n.end){this.timelinePos=n.end;const l=this.findItemIndex(n);this.setSchedulePosition(l+1)}const i=this.playingAsset;if(!i)return;const s=i.timelineStart+(i.duration||0);r>=s&&this.setScheduleToAssetAtTime(r,i)},this.onScheduleUpdate=(r,n)=>{const i=this.schedule,s=this.playingItem,l=i.events||[],d=i.items||[],c=i.durations,m=r.map(L=>L.identifier),_=!!(l.length||m.length);if(_&&this.log(`INTERSTITIALS_UPDATED (${l.length}): ${l}
Schedule: ${d.map(L=>Ss(L))}`),m.length&&this.log(`Removed events ${m}`),this.playerQueue.forEach(L=>{if(L.interstitial.appendInPlace){const R=L.assetItem.timelineStart,ae=L.timelineOffset-R;if(ae)try{L.timelineOffset=R}catch(he){Math.abs(ae)>sa&&this.warn(`${he} ("${L.assetId}" ${L.timelineOffset}->${R})`)}}}),s){const L=this.updateItem(s,this.timelinePos);this.itemsMatch(s,L)&&(this.playingItem=L,this.waitingItem=this.endedItem=null)}else this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const C=this.bufferingItem;if(C){const L=this.updateItem(C,this.bufferedPos);this.itemsMatch(C,L)?this.bufferingItem=L:C.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(C.event,null))}if(r.forEach(L=>{L.assetList.forEach(R=>{this.clearAssetPlayer(R.identifier,null)})}),_||n){if(this.hls.trigger(p.INTERSTITIALS_UPDATED,{events:l.slice(0),schedule:d.slice(0),durations:c,removedIds:m}),this.isInterstitial(s)&&m.includes(s.event.identifier)){this.warn(`Interstitial "${s.event.identifier}" removed while playing`),this.primaryFallback(s.event);return}this.checkBuffer()}},this.hls=e,this.HlsPlayerClass=t,this.assetListLoader=new Ku(e),this.schedule=new Wu(this.onScheduleUpdate,e.logger),this.registerListeners()}registerListeners(){const e=this.hls;e.on(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(p.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(p.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.on(p.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(p.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.on(p.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.on(p.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.on(p.BUFFER_APPENDED,this.onBufferAppended,this),e.on(p.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(p.BUFFERED_TO_END,this.onBufferedToEnd,this),e.on(p.MEDIA_ENDED,this.onMediaEnded,this),e.on(p.ERROR,this.onError,this),e.on(p.DESTROYING,this.onDestroying,this)}unregisterListeners(){const e=this.hls;e&&(e.off(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(p.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(p.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),e.off(p.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(p.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),e.off(p.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),e.off(p.ASSET_LIST_LOADED,this.onAssetListLoaded,this),e.off(p.BUFFER_CODECS,this.onBufferCodecs,this),e.off(p.BUFFER_APPENDED,this.onBufferAppended,this),e.off(p.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(p.BUFFERED_TO_END,this.onBufferedToEnd,this),e.off(p.MEDIA_ENDED,this.onMediaEnded,this),e.off(p.ERROR,this.onError,this),e.off(p.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){Xi(e,"play",this.onPlay),Xi(e,"pause",this.onPause),Xi(e,"seeking",this.onSeeking),Xi(e,"timeupdate",this.onTimeupdate)}onMediaAttaching(e,t){const r=this.media=t.media;ns(r,"seeking",this.onSeeking),ns(r,"timeupdate",this.onTimeupdate),ns(r,"play",this.onPlay),ns(r,"pause",this.onPause)}onMediaAttached(e,t){const r=this.effectivePlayingItem,n=this.detachedData;if(this.detachedData=null,r===null)this.checkStart();else if(!n){this.clearScheduleState();const i=this.findItemIndex(r);this.setSchedulePosition(i)}}clearScheduleState(){this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(e,t){const r=!!t.transferMedia,n=this.media;if(this.media=null,!r&&(n&&this.removeMediaListeners(n),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,r=_=>_&&e.getAssetPlayer(_.identifier),n=(_,C,L,R,ae)=>{if(_){let he=_[C].start;const Ne=_.event;if(Ne){if(C==="playout"||Ne.timelineOccupancy!==so.Point){const Je=r(L);(Je==null?void 0:Je.interstitial)===Ne&&(he+=Je.assetItem.startOffset+Je[ae])}}else{const Je=R==="bufferedPos"?s():e[R];he+=Je-_.start}return he}return 0},i=(_,C)=>{if(_!==0&&C!=="primary"&&e.schedule.length){var L;const R=e.schedule.findItemIndexAtTime(_),ae=(L=e.schedule.items)==null?void 0:L[R];if(ae){const he=ae[C].start-ae.start;return _+he}}return _},s=()=>{const _=e.bufferedPos;return _===Number.MAX_VALUE?l("primary"):Math.max(_,0)},l=_=>{var C;return(C=e.primaryDetails)!=null&&C.live?e.primaryDetails.edge:e.schedule.durations[_]},d=(_,C)=>{var L,R;const ae=e.effectivePlayingItem;if(ae!=null&&(L=ae.event)!=null&&L.restrictions.skip)return;e.log(`seek to ${_} "${C}"`);const he=e.effectivePlayingItem,Ne=e.schedule.findItemIndexAtTime(_,C),Je=(R=e.schedule.items)==null?void 0:R[Ne],We=e.getBufferingPlayer(),Et=We==null?void 0:We.interstitial,St=Et==null?void 0:Et.appendInPlace,Kt=he&&e.itemsMatch(he,Je);if(he&&(St||Kt)){const $t=r(e.playingAsset),Xt=($t==null?void 0:$t.media)||e.primaryMedia;if(Xt){const It=C==="primary"?Xt.currentTime:n(he,C,e.playingAsset,"timelinePos","currentTime"),pr=_-It,wr=(St?It:Xt.currentTime)+pr;if(wr>=0&&(!$t||St||wr<=$t.duration)){Xt.currentTime=wr;return}}}if(Je){let $t=_;if(C!=="primary"){const It=Je[C].start,pr=_-It;$t=Je.start+pr}const Xt=!e.isInterstitial(Je);if((!e.isInterstitial(he)||he.event.appendInPlace)&&(Xt||Je.event.appendInPlace)){const It=e.media||(St?We==null?void 0:We.media:null);It&&(It.currentTime=$t)}else if(he){const It=e.findItemIndex(he);if(Ne>It){const wr=e.schedule.findJumpRestrictedIndex(It+1,Ne);if(wr>It){e.setSchedulePosition(wr);return}}let pr=0;if(Xt)e.timelinePos=$t,e.checkBuffer();else{var At;const wr=Je==null||(At=Je.event)==null?void 0:At.assetList;if(wr){const xn=_-(Je[C]||Je).start;for(let qr=wr.length;qr--;){const Kr=wr[qr];if(Kr.duration&&xn>=Kr.startOffset&&xn<Kr.startOffset+Kr.duration){pr=qr;break}}}}e.setSchedulePosition(Ne,pr)}}},c=()=>{const _=e.effectivePlayingItem;if(e.isInterstitial(_))return _;const C=t();return e.isInterstitial(C)?C:null},m={get currentTime(){const _=c(),C=e.effectivePlayingItem;return C&&C===_?n(C,"playout",e.effectivePlayingAsset,"timelinePos","currentTime")-C.playout.start:0},set currentTime(_){const C=c(),L=e.effectivePlayingItem;L&&L===C&&d(_+L.playout.start,"playout")},get duration(){const _=c();return _?_.playout.end-_.playout.start:0},get assetPlayers(){var _;const C=(_=c())==null?void 0:_.event.assetList;return C?C.map(L=>e.getAssetPlayer(L.identifier)):[]},get playingIndex(){var _;const C=(_=c())==null?void 0:_.event;return C&&e.effectivePlayingAsset?C.findAssetIndex(e.effectivePlayingAsset):-1},get scheduleItem(){return c()}};this.manager={get events(){var _,C;return((_=e.schedule)==null||(C=_.events)==null?void 0:C.slice(0))||[]},get schedule(){var _,C;return((_=e.schedule)==null||(C=_.items)==null?void 0:C.slice(0))||[]},get interstitialPlayer(){return c()?m:null},get playerQueue(){return e.playerQueue.slice(0)},get bufferingAsset(){return e.bufferingAsset},get bufferingItem(){return t()},get bufferingIndex(){const _=t();return e.findItemIndex(_)},get playingAsset(){return e.effectivePlayingAsset},get playingItem(){return e.effectivePlayingItem},get playingIndex(){const _=e.effectivePlayingItem;return e.findItemIndex(_)},primary:{get bufferedEnd(){return s()},get currentTime(){const _=e.timelinePos;return _>0?_:0},set currentTime(_){d(_,"primary")},get duration(){return l("primary")},get seekableStart(){var _;return((_=e.primaryDetails)==null?void 0:_.fragmentStart)||0}},integrated:{get bufferedEnd(){return n(t(),"integrated",e.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return n(e.effectivePlayingItem,"integrated",e.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(_){d(_,"integrated")},get duration(){return l("integrated")},get seekableStart(){var _;return i(((_=e.primaryDetails)==null?void 0:_.fragmentStart)||0,"integrated")}},skip:()=>{const _=e.effectivePlayingItem,C=_==null?void 0:_.event;if(C&&!C.restrictions.skip){const L=e.findItemIndex(_);if(C.appendInPlace){const R=_.playout.start+_.event.duration;d(R+.001,"playout")}else e.advanceAfterAssetEnded(C,L,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,r=(e=this.schedule)==null?void 0:e.items;return!this.playbackStarted||!t||!r?!1:this.findItemIndex(t)===r.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var e,t,r;if(this.mediaSelection===null)return;const n=this.waitingItem||this.playingItem;if(this.isInterstitial(n)&&!n.event.appendInPlace)return;let i=this.media;!i&&(e=this.bufferingItem)!=null&&(t=e.event)!=null&&t.appendInPlace&&(i=this.primaryMedia);const s=(r=i)==null?void 0:r.currentTime;if(!(s===void 0||!v(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 r=this.getAssetPlayer(e);r&&this.transferMediaFromPlayer(r,t)}transferMediaFromPlayer(e,t){const r=e.interstitial.appendInPlace,n=e.media;if(r&&n===this.primaryMedia){if(this.bufferingAsset=null,(!t||this.isInterstitial(t)&&!t.event.appendInPlace)&&t&&n){this.detachedData={media:n};return}const i=e.transferMedia();this.log(`transfer MediaSource from ${e} ${st(i)}`),this.detachedData=i}else t&&n&&(this.shouldPlay||(this.shouldPlay=!n.paused))}transferMediaTo(e,t){var r,n;if(e.media===t)return;let i=null;const s=this.hls,l=e!==s,d=l&&e.interstitial.appendInPlace,c=(r=this.detachedData)==null?void 0:r.mediaSource;let m;if(s.media)d&&(i=s.transferMedia(),this.detachedData=i),m="Primary";else if(c){const L=this.getBufferingPlayer();L?(i=L.transferMedia(),m=`${L}`):m="detached MediaSource"}else m="detached media";if(!i){if(c)i=this.detachedData,this.log(`using detachedData: MediaSource ${st(i)}`);else if(!this.detachedData||s.media===t){const L=this.playerQueue;L.length>1&&L.forEach(R=>{if(l&&R.interstitial.appendInPlace!==d){const ae=R.interstitial;this.clearInterstitial(R.interstitial,null),ae.appendInPlace=!1,ae.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${ae}`)}}),this.hls.detachMedia(),this.detachedData={media:t}}}const _=i&&"mediaSource"in i&&((n=i.mediaSource)==null?void 0:n.readyState)!=="closed",C=_&&i?i:t;if(this.log(`${_?"transfering MediaSource":"attaching media"} to ${l?e:"Primary"} from ${m}`),C===i){const L=l&&e.assetId===this.schedule.assetIdAtEnd;C.overrides={duration:this.schedule.duration,endOfStream:!l||L,cueRemoval:!l}}e.attachMedia(C)}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 r=this.timelinePos,n=this.effectivePlayingItem;if(r===-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(n&&!this.playingItem){const i=e.findItemIndex(n);this.setSchedulePosition(i)}}advanceAfterAssetEnded(e,t,r){const n=r+1;if(!e.isAssetPastPlayoutLimit(n)&&!e.assetList[n].error)this.setSchedulePosition(t,n);else{const i=this.schedule.items;if(i){const s=t+1,l=i.length;if(s>=l){this.setSchedulePosition(-1);return}const d=e.resumeTime;this.timelinePos<d&&(this.timelinePos=d,this.checkBuffer()),this.setSchedulePosition(s)}}}setScheduleToAssetAtTime(e,t){const r=this.schedule,n=t.parentIdentifier,i=r.getEvent(n);if(i){const s=r.findEventIndex(n),l=r.findAssetIndex(i,e);this.setSchedulePosition(s,l)}}setSchedulePosition(e,t){const r=this.schedule.items;if(!r||this.playbackDisabled)return;this.log(`setSchedulePosition ${e}, ${t}`);const n=e>=0?r[e]:null,i=this.playingItem,s=this.playingLastItem;if(this.isInterstitial(i)){var l;const c=i.event,m=this.playingAsset,_=m==null?void 0:m.identifier,C=_?this.getAssetPlayer(_):null;if(C&&_&&(!this.eventItemsMatch(i,n)||t!==void 0&&_!==((l=c.assetList)==null?void 0:l[t].identifier))){var d;const L=c.findAssetIndex(m);this.log(`INTERSTITIAL_ASSET_ENDED ${L+1}/${c.assetList.length} ${Fo(m)}`),this.endedAsset=m,this.playingAsset=null,this.hls.trigger(p.INTERSTITIAL_ASSET_ENDED,{asset:m,assetListIndex:L,event:c,schedule:r.slice(0),scheduleIndex:e,player:C}),this.retreiveMediaSource(_,n),C.media&&!((d=this.detachedData)!=null&&d.mediaSource)&&C.detachMedia()}if(!this.eventItemsMatch(i,n)&&(this.endedItem=i,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${c} ${Ss(i)}`),c.hasPlayed=!0,this.hls.trigger(p.INTERSTITIAL_ENDED,{event:c,schedule:r.slice(0),scheduleIndex:e}),c.cue.once)){this.updateSchedule();const L=this.schedule.items;if(n&&L){const R=this.schedule.findItemIndex(n);this.advanceSchedule(R,L,t,i,s)}return}}this.advanceSchedule(e,r,t,i,s)}advanceSchedule(e,t,r,n,i){const s=e>=0?t[e]:null,l=this.primaryMedia,d=this.playerQueue;if(d.length&&d.forEach(c=>{const m=c.interstitial,_=this.schedule.findEventIndex(m.identifier);(_<e||_>e+1)&&this.clearInterstitial(m,s)}),this.isInterstitial(s)){this.timelinePos=Math.min(Math.max(this.timelinePos,s.start),s.end);const c=s.event;r===void 0&&(r=this.schedule.findAssetIndex(c,this.timelinePos));const m=this.waitingItem;this.assetsBuffered(s,l)||this.setBufferingItem(s);let _=this.preloadAssets(c,r);if(this.eventItemsMatch(s,m||n)||(this.waitingItem=s,this.log(`INTERSTITIAL_STARTED ${Ss(s)} ${c.appendInPlace?"append in place":""}`),this.hls.trigger(p.INTERSTITIAL_STARTED,{event:c,schedule:t.slice(0),scheduleIndex:e})),!c.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${c}`);return}if(c.assetListLoader&&(c.assetListLoader.destroy(),c.assetListLoader=void 0),!l){this.log(`Waiting for attachMedia to start Interstitial ${c}`);return}this.waitingItem=this.endedItem=null,this.playingItem=s;const C=c.assetList[r];if(!C){const L=t[e+1],R=this.media;L&&R&&!this.isInterstitial(L)&&R.currentTime<L.start&&(R.currentTime=this.timelinePos=L.start),this.advanceAfterAssetEnded(c,e,r||0);return}if(_||(_=this.getAssetPlayer(C.identifier)),_===null||_.destroyed){const L=c.assetList.length;this.warn(`asset ${r+1}/${L} player destroyed ${c}`),_=this.createAssetPlayer(c,C,r)}if(!this.eventItemsMatch(s,this.bufferingItem)&&c.appendInPlace&&this.isAssetBuffered(C))return;this.startAssetPlayer(_,r,t,e,l),this.shouldPlay&&ml(_.media)}else s!==null?(this.resumePrimary(s,e,n),this.shouldPlay&&ml(this.hls.media)):i&&this.isInterstitial(n)&&(this.endedItem=null,this.playingItem=n,n.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,r){var n;if(this.playingItem=e,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(e),this.log(`resuming ${Ss(e)}`),!((n=this.detachedData)!=null&&n.mediaSource)){let s=this.timelinePos;(s<e.start||s>=e.end)&&(s=this.getPrimaryResumption(e,t),this.timelinePos=s),this.attachPrimary(s,e)}if(!r)return;const i=this.schedule.items;i&&(this.log(`resumed ${Ss(e)}`),this.hls.trigger(p.INTERSTITIALS_PRIMARY_RESUMED,{schedule:i.slice(0),scheduleIndex:t}),this.checkBuffer())}getPrimaryResumption(e,t){const r=e.start;if(this.primaryLive){const n=this.primaryDetails;if(t===0)return this.hls.startPosition;if(n&&(r<n.fragmentStart||r>n.edge))return this.hls.liveSyncPosition||-1}return r}isAssetBuffered(e){const t=this.getAssetPlayer(e.identifier);return t!=null&&t.hls?t.hls.bufferedToEnd:Nr.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=e.timelineStart+(e.duration||0)}attachPrimary(e,t,r){t?this.setBufferingItem(t):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const n=this.primaryMedia;if(!n)return;const i=this.hls;i.media?this.checkBuffer():(this.transferMediaTo(i,n),r&&this.startLoadingPrimaryAt(e,r)),r||(this.timelinePos=e,this.startLoadingPrimaryAt(e,r))}startLoadingPrimaryAt(e,t){var r;const n=this.hls;!n.loadingEnabled||!n.media||Math.abs((((r=n.mainForwardBufferInfo)==null?void 0:r.start)||n.media.currentTime)-e)>.5?n.startLoad(e,t):n.bufferingEnabled||n.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(p.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(p.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(e,t){if(t.level===-1)return;const r=this.hls.levels[t.level],n=A(A({},this.mediaSelection||this.altSelection),{},{main:r});this.mediaSelection=n,this.schedule.parseInterstitialDateRanges(n,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(e,t){const r=this.hls.audioTracks[t.id],n=this.mediaSelection;if(!n){this.altSelection=A(A({},this.altSelection),{},{audio:r});return}const i=A(A({},n),{},{audio:r});this.mediaSelection=i}onSubtitleTrackUpdated(e,t){const r=this.hls.subtitleTracks[t.id],n=this.mediaSelection;if(!n){this.altSelection=A(A({},this.altSelection),{},{subtitles:r});return}const i=A(A({},n),{},{subtitles:r});this.mediaSelection=i}onAudioTrackSwitching(e,t){const r=Ge(t);this.playerQueue.forEach(n=>n.hls.setAudioOption(t)||n.hls.setAudioOption(r))}onSubtitleTrackSwitch(e,t){const r=Ge(t);this.playerQueue.forEach(n=>n.hls.setSubtitleOption(t)||t.id!==-1&&n.hls.setSubtitleOption(r))}onBufferCodecs(e,t){const r=t.tracks;r&&(this.requiredTracks=r)}onBufferAppended(e,t){this.checkBuffer()}onBufferFlushed(e,t){const r=this.playingItem;if(r&&!this.itemsMatch(r,this.bufferingItem)&&!this.isInterstitial(r)){const n=this.timelinePos;this.bufferedPos=n,this.checkBuffer()}}onBufferedToEnd(e){const t=this.schedule.events;if(this.bufferedPos<Number.MAX_VALUE&&t){for(let n=0;n<t.length;n++){const i=t[n];if(i.cue.post){var r;const s=this.schedule.findEventIndex(i.identifier),l=(r=this.schedule.items)==null?void 0:r[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 r=this.findItemIndex(t);this.setSchedulePosition(r+1)}else this.shouldPlay=!1}updateItem(e,t){const r=this.schedule.items;if(e&&r){const n=this.findItemIndex(e,t);return r[n]||null}return null}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 r;return!!t&&(e===t||e.event.identifier===((r=t.event)==null?void 0:r.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 r=Nr.bufferInfo(this.primaryMedia,this.timelinePos,0);e&&(this.bufferedPos=this.timelinePos),e||(e=r.len<1),this.updateBufferedPos(r.end,t,e)}updateBufferedPos(e,t,r){const n=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 d=n.findItemIndexAtTime(e);if(this.bufferedPos<e){var c,m;const _=this.findItemIndex(i),C=Math.min(_+1,t.length-1),L=t[C];if((d===-1&&i&&e>=i.end||(c=L.event)!=null&&c.appendInPlace&&e+.01>=L.start)&&(d=C),C-l>1&&(i==null||(m=i.event)==null?void 0:m.appendInPlace)===!1)return;if(this.bufferedPos=e,d>_&&d>l)this.bufferedToItem(L);else{const R=this.primaryDetails;this.primaryLive&&R&&e>R.edge-R.targetduration&&L.start<R.edge+this.hls.config.interstitialLiveLookAhead&&this.isInterstitial(L)&&this.preloadAssets(L.event,0)}}else r&&s&&!this.itemsMatch(s,i)&&(d===l?this.bufferedToItem(s):d===l+1&&this.bufferedToItem(t[d]))}assetsBuffered(e,t){return e.event.assetList.length===0?!1:!e.event.assetList.some(n=>{const i=this.getAssetPlayer(n.identifier);return!(i!=null&&i.bufferedInPlaceToEnd(t))})}setBufferingItem(e){const t=this.bufferingItem,r=this.schedule;if(this.itemsMatch(e,t))this.bufferingItem!==e&&(this.bufferingItem=e);else{const{items:n,events:i}=r;if(!n||!i)return t;const s=this.isInterstitial(e),l=this.getBufferingPlayer();if(this.bufferingItem=e,this.bufferedPos=Math.max(e.start,Math.min(e.end,this.timelinePos)),!this.playbackDisabled){const d=l?l.remaining:t?t.end-this.timelinePos:0;this.log(`buffered to boundary ${Ss(e)}`+(t?` (${d.toFixed(2)} remaining)`:"")),s?e.event.assetList.forEach(c=>{const m=this.getAssetPlayer(c.identifier);m&&m.resumeBuffering()}):(this.hls.resumeBuffering(),this.playerQueue.forEach(c=>c.pauseBuffering()))}this.hls.trigger(p.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:i.slice(0),schedule:n.slice(0),bufferingIndex:this.findItemIndex(e),playingIndex:this.findItemIndex(this.playingItem)})}return t}bufferedToItem(e,t=0){const r=this.setBufferingItem(e);if(!this.playbackDisabled){if(this.isInterstitial(e))this.bufferedToEvent(e,t);else if(r!==null){this.bufferingAsset=null;const n=this.detachedData;n?n.mediaSource?this.attachPrimary(e.start,e,!0):this.preloadPrimary(e):this.preloadPrimary(e)}}}preloadPrimary(e){const t=this.findItemIndex(e),r=this.getPrimaryResumption(e,t);this.startLoadingPrimaryAt(r)}bufferedToEvent(e,t){const r=e.event,n=r.assetList.length===0&&!r.assetListLoader,i=r.cue.once;if(n||!i){const s=this.preloadAssets(r,t);if(s!=null&&s.interstitial.appendInPlace){const l=r.assetList[t],d=this.primaryMedia;l&&d&&this.bufferAssetPlayer(s,d)}}}preloadAssets(e,t){const r=e.assetUrl,n=e.assetList.length,i=n===0&&!e.assetListLoader,s=e.cue.once;if(i){const d=e.timelineStart;if(e.appendInPlace){var l;const C=this.playingItem;!this.isInterstitial(C)&&(C==null||(l=C.nextEvent)==null?void 0:l.identifier)===e.identifier&&this.flushFrontBuffer(d+.25)}let c,m=0;if(!this.playingItem&&this.primaryLive&&(m=this.hls.startPosition,m===-1&&(m=this.hls.liveSyncPosition||0)),m&&!(e.cue.pre||e.cue.post)){const C=m-d;C>0&&(c=Math.round(C*1e3)/1e3)}if(this.log(`Load interstitial asset ${t+1}/${r?1:n} ${e}${c?` live-start: ${m} start-offset: ${c}`:""}`),r)return this.createAsset(e,0,0,d,e.duration,r);const _=this.assetListLoader.loadAssetList(e,c);_&&(e.assetListLoader=_)}else if(!s&&n){for(let d=t;d<n;d++){const c=e.assetList[d],m=this.getAssetPlayerQueueIndex(c.identifier);(m===-1||this.playerQueue[m].destroyed)&&!c.error&&this.createAssetPlayer(e,c,d)}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(n=>{this.hls.trigger(p.BUFFER_FLUSHING,{startOffset:e,endOffset:1/0,type:n})})}getAssetPlayerQueueIndex(e){const t=this.playerQueue;for(let r=0;r<t.length;r++)if(e===t[r].assetId)return r;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 r=0;r<e.length;r++)if(e[r].media===t)return e[r]}return null}createAsset(e,t,r,n,i,s){const l={parentIdentifier:e.identifier,identifier:zu(e,s,t),duration:i,startOffset:r,timelineStart:n,uri:s};return this.createAssetPlayer(e,l,t)}createAssetPlayer(e,t,r){this.log(`create HLSAssetPlayer for ${Fo(t)}`);const n=this.hls,i=n.userConfig;let s=i.videoPreference;const l=n.loadLevelObj||n.levels[n.currentLevel];(s||l)&&(s=S({},s),l.videoCodec&&(s.videoCodec=l.videoCodec),l.videoRange&&(s.allowedVideoRanges=[l.videoRange]));const d=n.audioTracks[n.audioTrack],c=n.subtitleTracks[n.subtitleTrack];let m=0;if(this.primaryLive||e.appendInPlace){const We=this.timelinePos-t.timelineStart;if(We>1){const Et=t.duration;Et&&We<Et&&(m=We)}}const _=t.identifier,C=A(A({},i),{},{autoStartLoad:!0,startFragPrefetch:!0,primarySessionId:n.sessionId,assetPlayerId:_,abrEwmaDefaultEstimate:n.bandwidthEstimate,interstitialsController:void 0,startPosition:m,liveDurationInfinity:!1,testBandwidth:!1,videoPreference:s,audioPreference:d||i.audioPreference,subtitlePreference:c||i.subtitlePreference});e.appendInPlace&&(e.appendInPlaceStarted=!0,t.timelineStart&&(C.timelineOffset=t.timelineStart));const L=C.cmcd;L!=null&&L.sessionId&&L.contentId&&(C.cmcd=S({},L,{contentId:Ca(t.uri)})),this.getAssetPlayer(_)&&this.warn(`Duplicate date range identifier ${e} and asset ${_}`);const R=new Gu(this.HlsPlayerClass,C,e,t);this.playerQueue.push(R),e.assetList[r]=t;const ae=We=>{if(We.live){const Kt=new Error(`Interstitials MUST be VOD assets ${e}`),At={fatal:!0,type:pe.OTHER_ERROR,details:O.INTERSTITIAL_ASSET_ITEM_ERROR,error:Kt};this.handleAssetItemError(At,e,this.schedule.findEventIndex(e.identifier),r,Kt.message);return}const Et=We.edge-We.fragmentStart,St=t.duration;(St===null||Et>St)&&(this.log(`Interstitial asset "${_}" duration change ${St} > ${Et}`),t.duration=Et,this.updateSchedule())};R.on(p.LEVEL_UPDATED,(We,{details:Et})=>ae(Et)),R.on(p.LEVEL_PTS_UPDATED,(We,{details:Et})=>ae(Et));const he=(We,Et)=>{const St=this.getAssetPlayer(_);if(St&&Et.tracks){St.off(p.BUFFER_CODECS,he),St.tracks=Et.tracks;const Kt=this.primaryMedia;this.bufferingAsset===St.assetItem&&Kt&&!St.media&&this.bufferAssetPlayer(St,Kt)}};R.on(p.BUFFER_CODECS,he);const Ne=()=>{var We;const Et=this.getAssetPlayer(_);if(this.log(`buffered to end of asset ${Et}`),!Et)return;const St=this.schedule.findEventIndex(e.identifier),Kt=e.findAssetIndex(t),At=Kt+1,$t=(We=this.schedule.items)==null?void 0:We[St];if(this.isInterstitial($t))if(Kt!==-1&&!e.isAssetPastPlayoutLimit(At)&&!e.assetList[At].error)this.bufferedToItem($t,At);else{var Xt;const It=(Xt=this.schedule.items)==null?void 0:Xt[St+1];It&&this.bufferedToItem(It)}};R.on(p.BUFFERED_TO_END,Ne);const Je=We=>()=>{if(!this.getAssetPlayer(_))return;this.shouldPlay=!0;const St=this.schedule.findEventIndex(e.identifier);this.advanceAfterAssetEnded(e,St,We)};return R.once(p.MEDIA_ENDED,Je(r)),R.once(p.PLAYOUT_LIMIT_REACHED,Je(1/0)),R.on(p.ERROR,(We,Et)=>{const St=this.getAssetPlayer(_);if(Et.details===O.BUFFER_STALLED_ERROR){if(St!=null&&St.media){const Kt=St.currentTime,At=St.duration-Kt;Kt&&e.appendInPlace&&At/St.media.playbackRate<.5?(this.log(`Advancing buffer past end of asset ${_} ${e} at ${St.media.currentTime}`),Ne()):(this.warn(`Stalled at ${Kt} of ${Kt+At} in asset ${_} ${e}`),this.onTimeupdate(),this.checkBuffer(!0))}return}this.handleAssetItemError(Et,e,this.schedule.findEventIndex(e.identifier),r,`Asset player error ${Et.error} ${e}`)}),R.on(p.DESTROYING,()=>{if(!this.getAssetPlayer(_))return;const Et=new Error(`Asset player destroyed unexpectedly ${_}`),St={fatal:!0,type:pe.OTHER_ERROR,details:O.INTERSTITIAL_ASSET_ITEM_ERROR,error:Et};this.handleAssetItemError(St,e,this.schedule.findEventIndex(e.identifier),r,Et.message)}),this.hls.trigger(p.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:t,assetListIndex:r,event:e,player:R}),R}clearInterstitial(e,t){e.assetList.forEach(r=>{this.clearAssetPlayer(r.identifier,t)}),e.reset()}clearAssetPlayer(e,t){const r=this.getAssetPlayerQueueIndex(e);if(r!==-1){this.log(`clearAssetPlayer "${e}" toSegment: ${t&&Ss(t)}`);const n=this.playerQueue[r];this.transferMediaFromPlayer(n,t),this.playerQueue.splice(r,1),n.destroy()}}emptyPlayerQueue(){let e;for(;e=this.playerQueue.pop();)e.destroy();this.playerQueue=[]}startAssetPlayer(e,t,r,n,i){const{interstitial:s,assetItem:l,assetId:d}=e,c=s.assetList.length,m=this.playingAsset;this.endedAsset=null,this.playingAsset=l,(!m||m.identifier!==d)&&(m&&(this.clearAssetPlayer(m.identifier,r[n]),delete m.error),this.log(`INTERSTITIAL_ASSET_STARTED ${t+1}/${c} ${e}`),this.hls.trigger(p.INTERSTITIAL_ASSET_STARTED,{asset:l,assetListIndex:t,event:s,schedule:r.slice(0),scheduleIndex:n,player:e})),this.bufferAssetPlayer(e,i)}bufferAssetPlayer(e,t){var r,n;const{interstitial:i,assetItem:s,assetId:l}=e,d=this.schedule.findEventIndex(i.identifier),c=(r=this.schedule.items)==null?void 0:r[d];if(!c)return;this.setBufferingItem(c),this.bufferingAsset=s;const m=this.getBufferingPlayer();if(m===e)return;const _=i.appendInPlace;if(_&&(m==null?void 0:m.interstitial.appendInPlace)===!1)return;const C=(m==null?void 0:m.tracks)||((n=this.detachedData)==null?void 0:n.tracks)||this.requiredTracks;if(_&&s!==this.playingAsset){if(!e.tracks)return;if(C&&!Ae(C,e.tracks)){const L=new Error(`Asset "${l}" SourceBuffer tracks ('${Object.keys(e.tracks)}') are not compatible with primary content tracks ('${Object.keys(C)}')`),R={fatal:!0,type:pe.OTHER_ERROR,details:O.INTERSTITIAL_ASSET_ITEM_ERROR,error:L},ae=i.findAssetIndex(s);this.handleAssetItemError(R,i,d,ae,L.message);return}}this.transferMediaTo(e,t)}handleAssetItemError(e,t,r,n,i){if(e.details===O.BUFFER_STALLED_ERROR)return;const s=t.assetList[n]||null;let l=null;if(s){const _=this.getAssetPlayerQueueIndex(s.identifier);l=this.playerQueue[_]||null}const d=this.schedule.items,c=S({},e,{fatal:!1,errorAction:Zr(!0),asset:s,assetListIndex:n,event:t,schedule:d,scheduleIndex:r,player:l});if(this.warn(`Asset item error: ${e.error}`),this.hls.trigger(p.INTERSTITIAL_ASSET_ERROR,c),!e.fatal)return;const m=new Error(i);s&&(this.playingAsset!==s&&this.clearAssetPlayer(s.identifier,null),s.error=m),t.assetList.some(_=>!_.error)?t.appendInPlace&&(t.error=m):t.error=m,this.primaryFallback(t)}primaryFallback(e){const t=e.timelineStart,r=this.effectivePlayingItem;if(this.updateSchedule(),r){this.log(`Fallback to primary from event "${e.identifier}" start: ${t} pos: ${this.timelinePos} playing: ${r?Ss(r):"<none>"} error: ${e.error}`),e.appendInPlace&&(this.attachPrimary(t,null),this.flushFrontBuffer(t));let n=this.timelinePos;n===-1&&(n=this.hls.startPosition);const i=this.updateItem(r,n);if(this.itemsMatch(r,i))this.clearInterstitial(e,null);else{const s=this.schedule.findItemIndexAtTime(n);this.setSchedulePosition(s)}}else this.checkStart()}onAssetListLoaded(e,t){var r;const n=t.event,i=n.identifier,s=t.assetListResponse.ASSETS;if(!this.schedule.hasEvent(i))return;const l=n.timelineStart,d=n.duration;let c=0;s.forEach((R,ae)=>{const he=parseFloat(R.DURATION);this.createAsset(n,ae,c,l+c,he,R.URI),c+=he}),n.duration=c,this.log(`Loaded asset-list with duration: ${c} (was: ${d}) ${n}`);const m=this.waitingItem,_=(m==null?void 0:m.event.identifier)===i;this.updateSchedule();const C=(r=this.bufferingItem)==null?void 0:r.event;if(_){var L;const R=this.schedule.findEventIndex(i),ae=(L=this.schedule.items)==null?void 0:L[R];if(ae){if(!this.playingItem&&this.timelinePos>ae.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==R){n.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${n}`),this.primaryFallback(n);return}this.setBufferingItem(ae)}this.setSchedulePosition(R)}else if((C==null?void 0:C.identifier)===i&&C.appendInPlace){const R=n.assetList[0],ae=this.getAssetPlayer(R.identifier),he=this.primaryMedia;R&&ae&&he&&this.bufferAssetPlayer(ae,he)}}onError(e,t){switch(t.details){case O.ASSET_LIST_PARSING_ERROR:case O.ASSET_LIST_LOAD_ERROR:case O.ASSET_LIST_LOAD_TIMEOUT:{const r=t.interstitial;r&&this.primaryFallback(r);break}case O.BUFFER_STALLED_ERROR:{this.onTimeupdate(),this.checkBuffer(!0);break}}}}const pl=500;class Zu extends es{constructor(e,t,r){super(e,t,r,"subtitle-stream-controller",oe.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(p.LEVEL_LOADED,this.onLevelLoaded,this),e.on(p.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(p.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.on(p.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.on(p.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.on(p.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(p.LEVEL_LOADED,this.onLevelLoaded,this),e.off(p.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(p.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),e.off(p.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),e.off(p.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),e.off(p.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(e,t){this.stopLoad(),this.state=Qt.IDLE,this.setInterval(pl),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:r,success:n}=t;if(G(r)&&(this.fragPrevious=r),this.state=Qt.IDLE,!n)return;const i=this.tracksBuffered[this.currentTrackId];if(!i)return;let s;const l=r.start;for(let c=0;c<i.length;c++)if(l>=i[c].start&&l<=i[c].end){s=i[c];break}const d=r.start+r.duration;s?s.end=d:(s={start:l,end:d},i.push(s)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null),this.media&&this.tick()}onBufferFlushing(e,t){const{startOffset:r,endOffset:n}=t;if(r===0&&n!==Number.POSITIVE_INFINITY){const i=n-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(r,i,oe.SUBTITLE)}}onError(e,t){const r=t.frag;(r==null?void 0:r.type)===oe.SUBTITLE&&(t.details===O.FRAG_GAP&&this.fragmentTracker.fragBuffered(r,!0),this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==Qt.STOPPED&&(this.state=Qt.IDLE))}onSubtitleTracksUpdated(e,{subtitleTracks:t}){if(this.levels&&Qo(this.levels,t)){this.levels=t.map(r=>new zr(r));return}this.tracksBuffered=[],this.levels=t.map(r=>{const n=new zr(r);return this.tracksBuffered[n.id]=[],n}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,oe.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(e,t){var r;if(this.currentTrackId=t.id,!((r=this.levels)!=null&&r.length)||this.currentTrackId===-1){this.clearInterval();return}const n=this.levels[this.currentTrackId];n!=null&&n.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,n&&this.state!==Qt.STOPPED&&this.setInterval(pl)}onSubtitleTrackLoaded(e,t){var r;const{currentTrackId:n,levels:i}=this,{details:s,id:l}=t;if(!i){this.warn(`Subtitle tracks were reset while loading level ${l}`);return}const d=i[l];if(l>=i.length||!d)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 c=0;if(s.live||(r=d.details)!=null&&r.live){const _=this.mainDetails;if(s.deltaUpdateFailed||!_)return;const C=_.fragments[0];if(!d.details)s.hasProgramDateTime&&_.hasProgramDateTime?(oi(s,_),c=s.fragmentStart):C&&(c=C.start,hs(s,c));else{var m;c=this.alignPlaylists(s,d.details,(m=this.levelLastLoaded)==null?void 0:m.details),c===0&&C&&(c=C.start,hs(s,c))}}d.details=s,this.levelLastLoaded=d,l===n&&(this.hls.trigger(p.SUBTITLE_TRACK_UPDATED,{details:s,id:l,groupId:t.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===Qt.IDLE&&(mr(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),d.details=void 0)))}_handleFragmentLoadComplete(e){const{frag:t,payload:r}=e,n=t.decryptdata,i=this.hls;if(!this.fragContextChanged(t)&&r&&r.byteLength>0&&n!=null&&n.key&&n.iv&&En(n.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(r),n.key.buffer,n.iv.buffer,kn(n.method)).catch(l=>{throw i.trigger(p.ERROR,{type:pe.MEDIA_ERROR,details:O.FRAG_DECRYPT_ERROR,fatal:!1,error:l,reason:l.message,frag:t}),l}).then(l=>{const d=performance.now();i.trigger(p.FRAG_DECRYPTED,{frag:t,payload:l,stats:{tstart:s,tdecrypt:d}})}).catch(l=>{this.warn(`${l.name}: ${l.message}`),this.state=Qt.IDLE})}}doTick(){if(!this.media){this.state=Qt.IDLE;return}if(this.state===Qt.IDLE){const{currentTrackId:e,levels:t}=this,r=t==null?void 0:t[e];if(!r||!t.length||!r.details||this.waitForLive(r))return;const{config:n}=this,i=this.getLoadPosition(),s=Nr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],i,n.maxBufferHole),{end:l,len:d}=s,c=r.details,m=this.hls.maxBufferLength+c.levelTargetDuration;if(d>m)return;const _=c.fragments,C=_.length,L=c.edge;let R=null;const ae=this.fragPrevious;if(l<L){const Je=n.maxFragLookUpTolerance,We=l>L-Je?0:Je;R=mr(ae,_,Math.max(_[0].start,l),We),!R&&ae&&ae.start<_[0].start&&(R=_[0])}else R=_[C-1];if(R=this.filterReplacedPrimary(R,r.details),!R)return;const he=R.sn-c.startSN,Ne=_[he-1];if(Ne&&Ne.cc===R.cc&&this.fragmentTracker.getState(Ne)===Br.NOT_LOADED&&(R=Ne),this.fragmentTracker.getState(R)===Br.NOT_LOADED){const Je=this.mapToInitFragWhenRequired(R);Je&&this.loadFragment(Je,r,l)}}}loadFragment(e,t,r){G(e)?super.loadFragment(e,t,r):this._loadInitSegment(e,t)}get mediaBufferTimeRanges(){return new Yu(this.tracksBuffered[this.currentTrackId]||[])}}class Yu{constructor(e){this.buffered=void 0;const t=(r,n,i)=>{if(n=n>>>0,n>i-1)throw new DOMException(`Failed to execute '${r}' on 'TimeRanges': The index provided (${n}) is greater than the maximum bound (${i})`);return e[n][r]};this.buffered={get length(){return e.length},end(r){return t("end",r,e.length)},start(r){return t("start",r,e.length)}}}}const Xu={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},gl=a=>String.fromCharCode(Xu[a]||a),ji=15,is=100,Qu={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},qu={17:2,18:4,21:6,22:8,23:10,19:13,20:15},Ju={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},ec={25:2,26:4,29:6,30:8,31:10,27:13,28:15},tc=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class rc{constructor(){this.time=null,this.verboseLevel=0}log(e,t){if(this.verboseLevel>=e){const r=typeof t=="function"?t():t;Q.log(`${this.time} [${e}] ${r}`)}}}const $s=function(e){const t=[];for(let r=0;r<e.length;r++)t.push(e[r].toString(16));return t};class vl{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 r=0;r<t.length;r++){const n=t[r];e.hasOwnProperty(n)&&(this[n]=e[n])}}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 nc{constructor(){this.uchar=" ",this.penState=new vl}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 ic{constructor(e){this.chars=[],this.pos=0,this.currPenState=new vl,this.cueStartTime=null,this.logger=void 0;for(let t=0;t<is;t++)this.chars.push(new nc);this.logger=e}equals(e){for(let t=0;t<is;t++)if(!this.chars[t].equals(e.chars[t]))return!1;return!0}copy(e){for(let t=0;t<is;t++)this.chars[t].copy(e.chars[t])}isEmpty(){let e=!0;for(let t=0;t<is;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>is&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=is)}moveCursor(e){const t=this.pos+e;if(e>1)for(let r=this.pos+1;r<t+1;r++)this.chars[r].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=gl(e);if(this.pos>=is){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<is;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 r=0;r<is;r++){const n=this.chars[r].uchar;n!==" "&&(t=!1),e.push(n)}return t?"":e.join("")}setPenStyles(e){this.currPenState.setStyles(e),this.chars[this.pos].setPenState(this.currPenState)}}class Bo{constructor(e){this.rows=[],this.currRow=ji-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.logger=void 0;for(let t=0;t<ji;t++)this.rows.push(new ic(e));this.logger=e}reset(){for(let e=0;e<ji;e++)this.rows[e].clear();this.currRow=ji-1}equals(e){let t=!0;for(let r=0;r<ji;r++)if(!this.rows[r].equals(e.rows[r])){t=!1;break}return t}copy(e){for(let t=0;t<ji;t++)this.rows[t].copy(e.rows[t])}isEmpty(){let e=!0;for(let t=0;t<ji;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 = "+st(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<ji;l++)this.rows[l].clear();const i=this.currRow+1-this.nrRollUpRows,s=this.lastOutputScreen;if(s){const l=s.rows[i].cueStartTime,d=this.logger.time;if(l!==null&&d!==null&&l<d)for(let c=0;c<this.nrRollUpRows;c++)this.rows[t-this.nrRollUpRows+c+1].copy(s.rows[i+c])}}this.currRow=t;const r=this.rows[this.currRow];if(e.indent!==null){const i=e.indent,s=Math.max(i-1,0);r.setCursor(e.indent),e.color=r.chars[s].penState.foreground}const n={foreground:e.color,underline:e.underline,italics:e.italics,background:"black",flash:!1};this.setPen(n)}setBkgData(e){this.logger.log(2,()=>"bkgData = "+st(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 r="",n=-1;for(let i=0;i<ji;i++){const s=this.rows[i].getTextString();s&&(n=i+1,e?t.push("Row "+n+": '"+s+"'"):t.push(s.trim()))}return t.length>0&&(e?r="["+t.join(" | ")+"]":r=t.join(`
`)),r}getTextAndFormat(){return this.rows}}class _l{constructor(e,t,r){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 Bo(r),this.nonDisplayedMemory=new Bo(r),this.lastOutputScreen=new Bo(r),this.currRollUpRow=this.displayedMemory.rows[ji-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[ji-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 r=0;r<e.length;r++)this.writeScreen.insertChar(e[r]);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 r=Math.floor(e/2)-16,n=["white","green","blue","cyan","red","yellow","magenta"];t.foreground=n[r]}this.logger.log(2,"MIDROW: "+st(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 yl{constructor(e,t,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=ac(),this.logger=void 0;const n=this.logger=new rc;this.channels=[null,new _l(e,t,n),new _l(e+1,r,n)]}getHandler(e){return this.channels[e].getHandler()}setHandler(e,t){this.channels[e].setHandler(t)}addData(e,t){this.logger.time=e;for(let r=0;r<t.length;r+=2){const n=t[r]&127,i=t[r+1]&127;let s=!1,l=null;if(n===0&&i===0)continue;this.logger.log(3,()=>"["+$s([t[r],t[r+1]])+"] -> ("+$s([n,i])+")");const d=this.cmdHistory;if(n>=16&&n<=31){if(sc(n,i,d)){ao(null,null,d),this.logger.log(3,()=>"Repeated command ("+$s([n,i])+") is dropped");continue}ao(n,i,this.cmdHistory),s=this.parseCmd(n,i),s||(s=this.parseMidrow(n,i)),s||(s=this.parsePAC(n,i)),s||(s=this.parseBackgroundAttributes(n,i))}else ao(null,null,d);if(!s&&(l=this.parseChars(n,i),l)){const m=this.currentChannel;m&&m>0?this.channels[m].insertChars(l):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!l&&this.logger.log(2,()=>"Couldn't parse cleaned data "+$s([n,i])+" orig: "+$s([t[r],t[r+1]]))}}parseCmd(e,t){const r=(e===20||e===28||e===21||e===29)&&t>=32&&t<=47,n=(e===23||e===31)&&t>=33&&t<=35;if(!(r||n))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 r=0;if((e===17||e===25)&&t>=32&&t<=47){if(e===17?r=1:r=2,r!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const n=this.channels[r];return n?(n.ccMIDROW(t),this.logger.log(3,()=>"MIDROW ("+$s([e,t])+")"),!0):!1}return!1}parsePAC(e,t){let r;const n=(e>=17&&e<=23||e>=25&&e<=31)&&t>=64&&t<=127,i=(e===16||e===24)&&t>=64&&t<=95;if(!(n||i))return!1;const s=e<=23?1:2;t>=64&&t<=95?r=s===1?Qu[e]:Ju[e]:r=s===1?qu[e]:ec[e];const l=this.channels[s];return l?(l.setPAC(this.interpretPAC(r,t)),this.currentChannel=s,!0):!1}interpretPAC(e,t){let r;const n={color:null,italics:!1,indent:null,underline:!1,row:e};return t>95?r=t-96:r=t-64,n.underline=(r&1)===1,r<=13?n.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(n.italics=!0,n.color="white"):n.indent=Math.floor((r-16)/2)*4,n}parseChars(e,t){let r,n=null,i=null;if(e>=25?(r=2,i=e-8):(r=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 '"+gl(s)+"' in channel "+r),n=[s]}else e>=32&&e<=127&&(n=t===0?[e]:[e,t]);return n&&this.logger.log(3,()=>"Char codes = "+$s(n).join(",")),n}parseBackgroundAttributes(e,t){const r=(e===16||e===24)&&t>=32&&t<=47,n=(e===23||e===31)&&t>=45&&t<=47;if(!(r||n))return!1;let i;const s={};e===16||e===24?(i=Math.floor((t-32)/2),s.background=tc[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()}ao(null,null,this.cmdHistory)}cueSplitAtTime(e){for(let t=0;t<this.channels.length;t++){const r=this.channels[t];r&&r.cueSplitAtTime(e)}}}function ao(a,e,t){t.a=a,t.b=e}function sc(a,e,t){return t.a===a&&t.b===e}function ac(){return{a:null,b:null}}var No=function(){if(Vn!=null&&Vn.VTTCue)return self.VTTCue;const a=["","lr","rl"],e=["start","middle","end","left","right"];function t(l,d){if(typeof d!="string"||!Array.isArray(l))return!1;const c=d.toLowerCase();return~l.indexOf(c)?c:!1}function r(l){return t(a,l)}function n(l){return t(e,l)}function i(l,...d){let c=1;for(;c<arguments.length;c++){const m=arguments[c];for(const _ in m)l[_]=m[_]}return l}function s(l,d,c){const m=this,_={enumerable:!0};m.hasBeenReset=!1;let C="",L=!1,R=l,ae=d,he=c,Ne=null,Je="",We=!0,Et="auto",St="start",Kt=50,At="middle",$t=50,Xt="middle";Object.defineProperty(m,"id",i({},_,{get:function(){return C},set:function(It){C=""+It}})),Object.defineProperty(m,"pauseOnExit",i({},_,{get:function(){return L},set:function(It){L=!!It}})),Object.defineProperty(m,"startTime",i({},_,{get:function(){return R},set:function(It){if(typeof It!="number")throw new TypeError("Start time must be set to a number.");R=It,this.hasBeenReset=!0}})),Object.defineProperty(m,"endTime",i({},_,{get:function(){return ae},set:function(It){if(typeof It!="number")throw new TypeError("End time must be set to a number.");ae=It,this.hasBeenReset=!0}})),Object.defineProperty(m,"text",i({},_,{get:function(){return he},set:function(It){he=""+It,this.hasBeenReset=!0}})),Object.defineProperty(m,"region",i({},_,{get:function(){return Ne},set:function(It){Ne=It,this.hasBeenReset=!0}})),Object.defineProperty(m,"vertical",i({},_,{get:function(){return Je},set:function(It){const pr=r(It);if(pr===!1)throw new SyntaxError("An invalid or illegal string was specified.");Je=pr,this.hasBeenReset=!0}})),Object.defineProperty(m,"snapToLines",i({},_,{get:function(){return We},set:function(It){We=!!It,this.hasBeenReset=!0}})),Object.defineProperty(m,"line",i({},_,{get:function(){return Et},set:function(It){if(typeof It!="number"&&It!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");Et=It,this.hasBeenReset=!0}})),Object.defineProperty(m,"lineAlign",i({},_,{get:function(){return St},set:function(It){const pr=n(It);if(!pr)throw new SyntaxError("An invalid or illegal string was specified.");St=pr,this.hasBeenReset=!0}})),Object.defineProperty(m,"position",i({},_,{get:function(){return Kt},set:function(It){if(It<0||It>100)throw new Error("Position must be between 0 and 100.");Kt=It,this.hasBeenReset=!0}})),Object.defineProperty(m,"positionAlign",i({},_,{get:function(){return At},set:function(It){const pr=n(It);if(!pr)throw new SyntaxError("An invalid or illegal string was specified.");At=pr,this.hasBeenReset=!0}})),Object.defineProperty(m,"size",i({},_,{get:function(){return $t},set:function(It){if(It<0||It>100)throw new Error("Size must be between 0 and 100.");$t=It,this.hasBeenReset=!0}})),Object.defineProperty(m,"align",i({},_,{get:function(){return Xt},set:function(It){const pr=n(It);if(!pr)throw new SyntaxError("An invalid or illegal string was specified.");Xt=pr,this.hasBeenReset=!0}})),m.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s}();class oc{decode(e,t){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}function bl(a){function e(r,n,i,s){return(r|0)*3600+(n|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 lc{constructor(){this.values=Object.create(null)}set(e,t){!this.get(e)&&t!==""&&(this.values[e]=t)}get(e,t,r){return r?this.has(e)?this.values[e]:t[r]:this.has(e)?this.values[e]:t}has(e){return e in this.values}alt(e,t,r){for(let n=0;n<r.length;++n)if(t===r[n]){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 r=parseFloat(t);if(r>=0&&r<=100)return this.set(e,r),!0}return!1}}function xl(a,e,t,r){const n=r?a.split(r):[a];for(const i in n){if(typeof n[i]!="string")continue;const s=n[i].split(t);if(s.length!==2)continue;const l=s[0],d=s[1];e(l,d)}}const $o=new No(0,0,""),oo=$o.align==="middle"?"middle":"center";function uc(a,e,t){const r=a;function n(){const l=bl(a);if(l===null)throw new Error("Malformed timestamp: "+r);return a=a.replace(/^[^\sa-zA-Z-]+/,""),l}function i(l,d){const c=new lc;xl(l,function(C,L){let R;switch(C){case"region":for(let ae=t.length-1;ae>=0;ae--)if(t[ae].id===L){c.set(C,t[ae].region);break}break;case"vertical":c.alt(C,L,["rl","lr"]);break;case"line":R=L.split(","),c.integer(C,R[0]),c.percent(C,R[0])&&c.set("snapToLines",!1),c.alt(C,R[0],["auto"]),R.length===2&&c.alt("lineAlign",R[1],["start",oo,"end"]);break;case"position":R=L.split(","),c.percent(C,R[0]),R.length===2&&c.alt("positionAlign",R[1],["start",oo,"end","line-left","line-right","auto"]);break;case"size":c.percent(C,L);break;case"align":c.alt(C,L,["start",oo,"end","left","right"]);break}},/:/,/\s/),d.region=c.get("region",null),d.vertical=c.get("vertical","");let m=c.get("line","auto");m==="auto"&&$o.line===-1&&(m=-1),d.line=m,d.lineAlign=c.get("lineAlign","start"),d.snapToLines=c.get("snapToLines",!0),d.size=c.get("size",100),d.align=c.get("align",oo);let _=c.get("position","auto");_==="auto"&&$o.position===50&&(_=d.align==="start"||d.align==="left"?0:d.align==="end"||d.align==="right"?100:50),d.position=_}function s(){a=a.replace(/^\s+/,"")}if(s(),e.startTime=n(),s(),a.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);a=a.slice(3),s(),e.endTime=n(),s(),i(a,e)}function El(a){return a.replace(/<br(?: \/)?>/gi,`
`)}class cc{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new oc,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 r(){let i=t.buffer,s=0;for(i=El(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 n(i){xl(i,function(s,l){},/:/)}try{let i="";if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;i=r();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=r(),t.state){case"HEADER":/:/.test(i)?n(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 No(0,0,""),t.state="CUE",i.indexOf("-->")===-1){t.cue.id=i;continue}case"CUE":if(!t.cue){t.state="BADCUE";continue}try{uc(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 dc=/\r\n|\n\r|\n|\r/g,Uo=function(e,t,r=0){return e.slice(r,r+t.length)===t},hc=function(e){let t=parseInt(e.slice(-3));const r=parseInt(e.slice(-6,-4)),n=parseInt(e.slice(-9,-7)),i=e.length>9?parseInt(e.substring(0,e.indexOf(":"))):0;if(!v(t)||!v(r)||!v(n)||!v(i))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${e}`);return t+=1e3*r,t+=60*1e3*n,t+=60*60*1e3*i,t};function zo(a,e,t){return Ca(a.toString())+Ca(e.toString())+Ca(t)}const fc=function(e,t,r){let n=e[t],i=e[n.prevCC];if(!i||!i.new&&n.new){e.ccOffset=e.presentationOffset=n.start,n.new=!1;return}for(;(s=i)!=null&&s.new;){var s;e.ccOffset+=n.start-i.start,n.new=!1,n=i,i=e[n.prevCC]}e.presentationOffset=r};function mc(a,e,t,r,n,i,s){const l=new cc,d=Me(new Uint8Array(a)).trim().replace(dc,`
`).split(`
`),c=[],m=e?Un(e.baseTime,e.timescale):0;let _="00:00.000",C=0,L=0,R,ae=!0;l.oncue=function(he){const Ne=t[r];let Je=t.ccOffset;const We=(C-m)/9e4;if(Ne!=null&&Ne.new&&(L!==void 0?Je=t.ccOffset=Ne.start:fc(t,r,We)),We){if(!e){R=new Error("Missing initPTS for VTT MPEGTS");return}Je=We-t.presentationOffset}const Et=he.endTime-he.startTime,St=si((he.startTime+Je-L)*9e4,n*9e4)/9e4;he.startTime=Math.max(St,0),he.endTime=Math.max(St+Et,0);const Kt=he.text.trim();he.text=decodeURIComponent(encodeURIComponent(Kt)),he.id||(he.id=zo(he.startTime,he.endTime,Kt)),he.endTime>0&&c.push(he)},l.onparsingerror=function(he){R=he},l.onflush=function(){if(R){s(R);return}i(c)},d.forEach(he=>{if(ae)if(Uo(he,"X-TIMESTAMP-MAP=")){ae=!1,he.slice(16).split(",").forEach(Ne=>{Uo(Ne,"LOCAL:")?_=Ne.slice(6):Uo(Ne,"MPEGTS:")&&(C=parseInt(Ne.slice(7)))});try{L=hc(_)/1e3}catch(Ne){R=Ne}return}else he===""&&(ae=!1);l.parse(he+`
`)}),l.flush()}const jo="stpp.ttml.im1t",wl=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Sl=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,pc={left:"start",center:"center",right:"end",start:"start",end:"end"};function Al(a,e,t,r){const n=fe(new Uint8Array(a),["mdat"]);if(n.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const i=n.map(l=>Me(l)),s=dn(e.baseTime,1,e.timescale);try{i.forEach(l=>t(gc(l,s)))}catch(l){r(l)}}function gc(a,e){const n=new DOMParser().parseFromString(a,"text/xml").getElementsByTagName("tt")[0];if(!n)throw new Error("Invalid ttml");const i={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(i).reduce((_,C)=>(_[C]=n.getAttribute(`ttp:${C}`)||i[C],_),{}),l=n.getAttribute("xml:space")!=="preserve",d=Tl(Ho(n,"styling","style")),c=Tl(Ho(n,"layout","region")),m=Ho(n,"body","[begin]");return[].map.call(m,_=>{const C=Cl(_,l);if(!C||!_.hasAttribute("begin"))return null;const L=Wo(_.getAttribute("begin"),s),R=Wo(_.getAttribute("dur"),s);let ae=Wo(_.getAttribute("end"),s);if(L===null)throw Dl(_);if(ae===null){if(R===null)throw Dl(_);ae=L+R}const he=new No(L-e,ae-e,C);he.id=zo(he.startTime,he.endTime,he.text);const Ne=c[_.getAttribute("region")],Je=d[_.getAttribute("style")],We=vc(Ne,Je,d),{textAlign:Et}=We;if(Et){const St=pc[Et];St&&(he.lineAlign=St),he.align=Et}return S(he,We),he}).filter(_=>_!==null)}function Ho(a,e,t){const r=a.getElementsByTagName(e)[0];return r?[].slice.call(r.querySelectorAll(t)):[]}function Tl(a){return a.reduce((e,t)=>{const r=t.getAttribute("xml:id");return r&&(e[r]=t),e},{})}function Cl(a,e){return[].slice.call(a.childNodes).reduce((t,r,n)=>{var i;return r.nodeName==="br"&&n?t+`
`:(i=r.childNodes)!=null&&i.length?Cl(r,e):e?t+r.textContent.trim().replace(/\s+/g," "):t+r.textContent},"")}function vc(a,e,t){const r="http://www.w3.org/ns/ttml#styling";let n=null;const i=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=a!=null&&a.hasAttribute("style")?a.getAttribute("style"):null;return s&&t.hasOwnProperty(s)&&(n=t[s]),i.reduce((l,d)=>{const c=Go(e,r,d)||Go(a,r,d)||Go(n,r,d);return c&&(l[d]=c),l},{})}function Go(a,e,t){return a&&a.hasAttributeNS(e,t)?a.getAttributeNS(e,t):null}function Dl(a){return new Error(`Could not parse ttml timestamp ${a}`)}function Wo(a,e){if(!a)return null;let t=bl(a);return t===null&&(wl.test(a)?t=_c(a,e):Sl.test(a)&&(t=yc(a,e))),t}function _c(a,e){const t=wl.exec(a),r=(t[4]|0)+(t[5]|0)/e.subFrameRate;return(t[1]|0)*3600+(t[2]|0)*60+(t[3]|0)+r/e.frameRate}function yc(a,e){const t=Sl.exec(a),r=Number(t[1]);switch(t[2]){case"h":return r*3600;case"m":return r*60;case"ms":return r*1e3;case"f":return r/e.frameRate;case"t":return r/e.tickRate}return r}class lo{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,r){(this.startTime===null||this.startTime>e)&&(this.startTime=e),this.endTime=t,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class bc{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=Ll(),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(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(p.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.on(p.FRAG_LOADING,this.onFragLoading,this),e.on(p.FRAG_LOADED,this.onFragLoaded,this),e.on(p.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.on(p.FRAG_DECRYPTED,this.onFragDecrypted,this),e.on(p.INIT_PTS_FOUND,this.onInitPtsFound,this),e.on(p.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.on(p.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:e}=this;e.off(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(p.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),e.off(p.FRAG_LOADING,this.onFragLoading,this),e.off(p.FRAG_LOADED,this.onFragLoaded,this),e.off(p.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),e.off(p.FRAG_DECRYPTED,this.onFragDecrypted,this),e.off(p.INIT_PTS_FOUND,this.onInitPtsFound,this),e.off(p.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),e.off(p.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const e=new lo(this,"textTrack1"),t=new lo(this,"textTrack2"),r=new lo(this,"textTrack3"),n=new lo(this,"textTrack4");this.cea608Parser1=new yl(1,e,t),this.cea608Parser2=new yl(3,r,n)}addCues(e,t,r,n,i){let s=!1;for(let l=i.length;l--;){const d=i[l],c=xc(d[0],d[1],t,r);if(c>=0&&(d[0]=Math.min(d[0],t),d[1]=Math.max(d[1],r),s=!0,c/(r-t)>.5))return}if(s||i.push([t,r]),this.config.renderTextTracksNatively){const l=this.captionsTracks[e];this.Cues.newCue(l,t,r,n)}else{const l=this.Cues.newCue(null,t,r,n);this.hls.trigger(p.CUES_PARSED,{type:"captions",cues:l,track:e})}}onInitPtsFound(e,{frag:t,id:r,initPTS:n,timescale:i}){const{unparsedVttFrags:s}=this;r===oe.MAIN&&(this.initPTS[t.cc]={baseTime:n,timescale:i}),s.length&&(this.unparsedVttFrags=[],s.forEach(l=>{this.onFragLoaded(p.FRAG_LOADED,l)}))}getExistingTrack(e,t){const{media:r}=this;if(r)for(let n=0;n<r.textTracks.length;n++){const i=r.textTracks[n];if(Rl(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:r,media:n}=this,{label:i,languageCode:s}=t[e],l=this.getExistingTrack(i,s);if(l)r[e]=l,ia(r[e]),cl(r[e],n);else{const d=this.createTextTrack("captions",i,s);d&&(d[e]=!0,r[e]=d)}}createNonNativeTrack(e){if(this.nonNativeCaptionsTracks[e])return;const t=this.captionsProperties[e];if(!t)return;const r=t.label,n={_id:e,label:r,kind:"captions",default:t.media?!!t.media.default:!1,closedCaptions:t.media};this.nonNativeCaptionsTracks[e]=n,this.hls.trigger(p.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[n]})}createTextTrack(e,t,r){const n=this.media;if(n)return n.addTextTrack(e,t,r)}onMediaAttaching(e,t){this.media=t.media,t.mediaSource||this._cleanTracks()}onMediaDetaching(e,t){const r=!!t.transferMedia;if(this.media=null,r)return;const{captionsTracks:n}=this;Object.keys(n).forEach(i=>{ia(n[i]),delete n[i]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Ll(),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 r=0;r<t.length;r++)ia(t[r])}onSubtitleTracksUpdated(e,t){const r=t.subtitleTracks||[],n=r.some(i=>i.textCodec===jo);if(this.config.enableWebVTT||n&&this.config.enableIMSC1){if(Qo(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const s=this.media,l=s?io(s.textTracks):null;if(this.tracks.forEach((d,c)=>{let m;if(l){let _=null;for(let C=0;C<l.length;C++)if(l[C]&&Rl(l[C],d)){_=l[C],l[C]=null;break}_&&(m=_)}if(m)ia(m);else{const _=Il(d);m=this.createTextTrack(_,d.name,d.lang),m&&(m.mode="disabled")}m&&this.textTracks.push(m)}),l!=null&&l.length){const d=l.filter(c=>c!==null).map(c=>c.label);d.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${d.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(p.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}}onManifestLoaded(e,t){this.config.enableCEA708Captions&&t.captions&&t.captions.forEach(r=>{const n=/(?:CC|SERVICE)([1-4])/.exec(r.instreamId);if(!n)return;const i=`textTrack${n[1]}`,s=this.captionsProperties[i];s&&(s.label=r.name,r.lang&&(s.languageCode=r.lang),s.media=r)})}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===oe.MAIN){var r,n;const{cea608Parser1:i,cea608Parser2:s,lastSn:l}=this,{cc:d,sn:c}=t.frag,m=(r=(n=t.part)==null?void 0:n.index)!=null?r:-1;i&&s&&(c!==l+1||c===l&&m!==this.lastPartIndex+1||d!==this.lastCc)&&(i.reset(),s.reset()),this.lastCc=d,this.lastSn=c,this.lastPartIndex=m}}onFragLoaded(e,t){const{frag:r,payload:n}=t;if(r.type===oe.SUBTITLE)if(n.byteLength){const i=r.decryptdata,s="stats"in t;if(i==null||!i.encrypted||s){const l=this.tracks[r.level],d=this.vttCCs;d[r.cc]||(d[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),l&&l.textCodec===jo?this._parseIMSC1(r,n):this._parseVTTs(t)}}else this.hls.trigger(p.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(e,t){const r=this.hls;Al(t,this.initPTS[e.cc],n=>{this._appendCues(n,e.level),r.trigger(p.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:e})},n=>{r.logger.log(`Failed to parse IMSC1: ${n}`),r.trigger(p.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e,error:n})})}_parseVTTs(e){var t;const{frag:r,payload:n}=e,{initPTS:i,unparsedVttFrags:s}=this,l=i.length-1;if(!i[r.cc]&&l===-1){s.push(e);return}const d=this.hls,c=(t=r.initSegment)!=null&&t.data?Lt(r.initSegment.data,new Uint8Array(n)).buffer:n;mc(c,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,m=>{this._appendCues(m,r.level),d.trigger(p.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},m=>{const _=m.message==="Missing initPTS for VTT MPEGTS";_?s.push(e):this._fallbackToIMSC1(r,n),d.logger.log(`Failed to parse VTT cue: ${m}`),!(_&&l>r.cc)&&d.trigger(p.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:m})})}_fallbackToIMSC1(e,t){const r=this.tracks[e.level];r.textCodec||Al(t,this.initPTS[e.cc],()=>{r.textCodec=jo,this._parseIMSC1(e,t)},()=>{r.textCodec="wvtt"})}_appendCues(e,t){const r=this.hls;if(this.config.renderTextTracksNatively){const n=this.textTracks[t];if(!n||n.mode==="disabled")return;e.forEach(i=>dl(n,i))}else{const n=this.tracks[t];if(!n)return;const i=n.default?"default":"subtitles"+t;r.trigger(p.CUES_PARSED,{type:"subtitles",cues:e,track:i})}}onFragDecrypted(e,t){const{frag:r}=t;r.type===oe.SUBTITLE&&this.onFragLoaded(p.FRAG_LOADED,t)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(e,t){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:r,samples:n}=t;if(!(r.type===oe.MAIN&&this.closedCaptionsForLevel(r)==="NONE"))for(let i=0;i<n.length;i++){const s=n[i].bytes;if(s){this.cea608Parser1||this.initCea608Parsers();const l=this.extractCea608Data(s);this.cea608Parser1.addData(n[i].pts,l[0]),this.cea608Parser2.addData(n[i].pts,l[1])}}}onBufferFlushing(e,{startOffset:t,endOffset:r,endOffsetSubtitles:n,type:i}){const{media:s}=this;if(!(!s||s.currentTime<r)){if(!i||i==="video"){const{captionsTracks:l}=this;Object.keys(l).forEach(d=>Po(l[d],t,r))}if(this.config.renderTextTracksNatively&&t===0&&n!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(d=>Po(l[d],t,n))}}}extractCea608Data(e){const t=[[],[]],r=e[0]&31;let n=2;for(let i=0;i<r;i++){const s=e[n++],l=127&e[n++],d=127&e[n++];if(l===0&&d===0)continue;if((4&s)!==0){const m=3&s;(m===0||m===1)&&(t[m].push(l),t[m].push(d))}}return t}}function Il(a){return a.characteristics&&/transcribes-spoken-dialog/gi.test(a.characteristics)&&/describes-music-and-sound/gi.test(a.characteristics)?"captions":"subtitles"}function Rl(a,e){return!!a&&a.kind===Il(e)&&Do(e,a)}function xc(a,e,t,r){return Math.min(e,r)-Math.max(a,t)}function Ll(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}const Ec=/\s/,wc={newCue(a,e,t,r){const n=[];let i,s,l,d,c;const m=self.VTTCue||self.TextTrackCue;for(let C=0;C<r.rows.length;C++)if(i=r.rows[C],l=!0,d=0,c="",!i.isEmpty()){var _;for(let ae=0;ae<i.chars.length;ae++)Ec.test(i.chars[ae].uchar)&&l?d++:(c+=i.chars[ae].uchar,l=!1);i.cueStartTime=e,e===t&&(t+=1e-4),d>=16?d--:d++;const L=El(c.trim()),R=zo(e,t,L);a!=null&&(_=a.cues)!=null&&_.getCueById(R)||(s=new m(e,t,L),s.id=R,s.line=C+1,s.align="left",s.position=10+Math.min(80,Math.floor(d*8/32)*10),n.push(s))}return a&&n.length&&(n.sort((C,L)=>C.line==="auto"||L.line==="auto"?0:C.line>8&&L.line>8?L.line-C.line:C.line-L.line),n.forEach(C=>dl(a,C))),n}};function Sc(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(a){}return!1}const Ac=/(\d+)-(\d+)\/(\d+)/;class kl{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 y}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,r){const n=this.stats;if(n.loading.start)throw new Error("Loader can only be used once.");n.loading.start=self.performance.now();const i=Tc(e,this.controller.signal),s=e.responseType==="arraybuffer",l=s?"byteLength":"length",{maxTimeToFirstByteMs:d,maxLoadTimeMs:c}=t.loadPolicy;this.context=e,this.config=t,this.callbacks=r,this.request=this.fetchSetup(e,i),self.clearTimeout(this.requestTimeout),t.timeout=d&&v(d)?d:c,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(n,e,this.response))},t.timeout),(Ns(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(_=>{var C;this.response=this.loader=_;const L=Math.max(self.performance.now(),n.loading.start);if(self.clearTimeout(this.requestTimeout),t.timeout=c,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(n,e,this.response))},c-(L-n.loading.start)),!_.ok){const{status:ae,statusText:he}=_;throw new Rc(he||"fetch, bad network response",ae,_)}n.loading.first=L,n.total=Dc(_.headers)||n.total;const R=(C=this.callbacks)==null?void 0:C.onProgress;return R&&v(t.highWaterMark)?this.loadProgressively(_,n,e,t.highWaterMark,R):s?_.arrayBuffer():e.responseType==="json"?_.json():_.text()}).then(_=>{var C,L;const R=this.response;if(!R)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),n.loading.end=Math.max(self.performance.now(),n.loading.first);const ae=_[l];ae&&(n.loaded=n.total=ae);const he={url:R.url,data:_,code:R.status},Ne=(C=this.callbacks)==null?void 0:C.onProgress;Ne&&!v(t.highWaterMark)&&Ne(n,e,_,R),(L=this.callbacks)==null||L.onSuccess(he,n,e,R)}).catch(_=>{var C;if(self.clearTimeout(this.requestTimeout),n.aborted)return;const L=_&&_.code||0,R=_?_.message:null;(C=this.callbacks)==null||C.onError({code:L,text:R},e,_?_.details:null,n)})}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,r,n=0,i){const s=new Ls,l=e.body.getReader(),d=()=>l.read().then(c=>{if(c.done)return s.dataLength&&i(t,r,s.flush().buffer,e),Promise.resolve(new ArrayBuffer(0));const m=c.value,_=m.length;return t.loaded+=_,_<n||s.dataLength?(s.push(m),s.dataLength>=n&&i(t,r,s.flush().buffer,e)):i(t,r,m.buffer,e),d()}).catch(()=>Promise.reject());return d()}}function Tc(a,e){const t={method:"GET",mode:"cors",credentials:"same-origin",signal:e,headers:new self.Headers(S({},a.headers))};return a.rangeEnd&&t.headers.set("Range","bytes="+a.rangeStart+"-"+String(a.rangeEnd-1)),t}function Cc(a){const e=Ac.exec(a);if(e)return parseInt(e[2])-parseInt(e[1])+1}function Dc(a){const e=a.get("Content-Range");if(e){const r=Cc(e);if(v(r))return r}const t=a.get("Content-Length");if(t)return parseInt(t)}function Ic(a,e){return new self.Request(a.url,e)}class Rc extends Error{constructor(e,t,r){super(e),this.code=void 0,this.details=void 0,this.code=t,this.details=r}}const Lc=/^age:\s*[\d.]+\s*$/im;class Ol{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 y,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,r){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=r,this.loadInternal()}loadInternal(){const{config:e,context:t}=this;if(!e||!t)return;const r=this.loader=new self.XMLHttpRequest,n=this.stats;n.loading.first=0,n.loaded=0,n.aborted=!1;const i=this.xhrSetup;i?Promise.resolve().then(()=>{if(!(this.loader!==r||this.stats.aborted))return i(r,t.url)}).catch(s=>{if(!(this.loader!==r||this.stats.aborted))return r.open("GET",t.url,!0),i(r,t.url)}).then(()=>{this.loader!==r||this.stats.aborted||this.openAndSendXhr(r,t,e)}).catch(s=>{var l;(l=this.callbacks)==null||l.onError({code:r.status,text:s.message},t,r,n)}):this.openAndSendXhr(r,t,e)}openAndSendXhr(e,t,r){e.readyState||e.open("GET",t.url,!0);const n=t.headers,{maxTimeToFirstByteMs:i,maxLoadTimeMs:s}=r.loadPolicy;if(n)for(const l in n)e.setRequestHeader(l,n[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),r.timeout=i&&v(i)?i:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),e.send()}readystatechange(){const{context:e,loader:t,stats:r}=this;if(!e||!t)return;const n=t.readyState,i=this.config;if(!r.aborted&&n>=2&&(r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.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-(r.loading.first-r.loading.start)))),n===4)){self.clearTimeout(this.requestTimeout),t.onreadystatechange=null,t.onprogress=null;const c=t.status,m=t.responseType==="text"?t.responseText:null;if(c>=200&&c<300){const R=m!=null?m:t.response;if(R!=null){var s,l;r.loading.end=Math.max(self.performance.now(),r.loading.first);const ae=t.responseType==="arraybuffer"?R.byteLength:R.length;r.loaded=r.total=ae,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first);const he=(s=this.callbacks)==null?void 0:s.onProgress;he&&he(r,e,R,t);const Ne={url:t.responseURL,data:R,code:c};(l=this.callbacks)==null||l.onSuccess(Ne,r,e,t);return}}const _=i.loadPolicy.errorRetry,C=r.retry,L={url:e.url,data:void 0,code:c};if(ln(_,C,!1,L))this.retry(_);else{var d;Q.error(`${c} while loading ${e.url}`),(d=this.callbacks)==null||d.onError({code:c,text:t.statusText},e,t,r)}}}loadtimeout(){if(!this.config)return;const e=this.config.loadPolicy.timeoutRetry,t=this.stats.retry;if(ln(e,t,!0))this.retry(e);else{var r;Q.warn(`timeout while loading ${(r=this.context)==null?void 0:r.url}`);const n=this.callbacks;n&&(this.abortInternal(),n.onTimeout(this.stats,this.context,this.loader))}}retry(e){const{context:t,stats:r}=this;this.retryDelay=jr(e,r.retry),r.retry++,Q.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${t==null?void 0:t.url}, retrying ${r.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&&Lc.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 kc={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Oc=A(A({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,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,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:Ol,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Sr,bufferController:Jl,capLevelController:Ro,errorController:Cr,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:Ur,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,certLoadPolicy:{default:kc},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},Pc()),{},{subtitleStreamController:Zu,subtitleTrackController:Uu,timelineController:bc,audioStreamController:to,audioTrackController:Xl,emeController:na,cmcdController:Pu,contentSteeringController:Fu,interstitialsController:Vu});function Pc(){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 Mc(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 r=Ko(a),n=["manifest","level","frag"],i=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return n.forEach(s=>{const l=`${s==="level"?"playlist":s}LoadPolicy`,d=e[l]===void 0,c=[];i.forEach(m=>{const _=`${s}Loading${m}`,C=e[_];if(C!==void 0&&d){c.push(_);const L=r[l].default;switch(e[l]={default:L},m){case"TimeOut":L.maxLoadTimeMs=C,L.maxTimeToFirstByteMs=C;break;case"MaxRetry":L.errorRetry.maxNumRetry=C,L.timeoutRetry.maxNumRetry=C;break;case"RetryDelay":L.errorRetry.retryDelayMs=C,L.timeoutRetry.retryDelayMs=C;break;case"MaxRetryTimeout":L.errorRetry.maxRetryDelayMs=C,L.timeoutRetry.maxRetryDelayMs=C;break}}}),c.length&&t.warn(`hls.js config: "${c.join('", "')}" setting(s) are deprecated, use "${l}": ${st(e[l])}`)}),A(A({},r),e)}function Ko(a){return a&&typeof a=="object"?Array.isArray(a)?a.map(Ko):Object.keys(a).reduce((e,t)=>(e[t]=Ko(a[t]),e),{}):a}function Fc(a,e){const t=a.loader;t!==kl&&t!==Ol?(e.log("[config]: Custom loader detected, cannot enable progressive streaming"),a.progressive=!1):Sc()&&(a.loader=kl,a.progressive=!0,a.enableSoftwareAES=!0,e.log("[config]: Progressive streaming enabled, using FetchLoader"))}const uo=2,Bc=.1,Nc=.05,$c=100;class Uc extends Rn{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 r;(r=this.media)!=null&&r.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var r;this.ended=((r=this.media)==null?void 0:r.currentTime)||1,this.hls.trigger(p.MEDIA_ENDED,{stalled:!1})}},this.hls=e,this.fragmentTracker=t,this.registerListeners()}registerListeners(){const{hls:e}=this;e&&(e.on(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(p.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(p.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($c),this.mediaSource=t.mediaSource;const r=this.media=t.media;ns(r,"playing",this.onMediaPlaying),ns(r,"waiting",this.onMediaWaiting),ns(r,"ended",this.onMediaEnded)}onMediaDetaching(e,t){this.clearInterval();const{media:r}=this;r&&(Xi(r,"playing",this.onMediaPlaying),Xi(r,"waiting",this.onMediaWaiting),Xi(r,"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 r,n;const i=(r=this.hls)==null?void 0:r.config;if(!i)return;const{media:s,stalled:l}=this;if(!s)return;const{seeking:d}=s,c=this.seeking&&!d,m=!this.seeking&&d,_=s.paused&&!d||s.ended||s.playbackRate===0;if(this.seeking=d,e!==t){t&&(this.ended=0),this.moved=!0,d||(this.nudgeRetry=0,i.nudgeOnVideoHole&&!_&&e>t&&this.nudgeOnVideoHole(e,t)),this.waiting===0&&this.stallResolved(e);return}if(m||c){c&&this.stallResolved(e);return}if(_){this.nudgeRetry=0,this.stallResolved(e),!this.ended&&s.ended&&this.hls&&(this.ended=e||1,this.hls.trigger(p.MEDIA_ENDED,{stalled:!1}));return}if(!Nr.getBuffered(s).length){this.nudgeRetry=0;return}const C=Nr.bufferInfo(s,e,0),L=C.nextStart||0,R=this.fragmentTracker;if(d&&R&&this.hls){const Kt=Pl(this.hls.inFlightFragments,e),At=C.len>uo,$t=!L||Kt||L-e>uo&&!R.getPartialFragment(e);if(At||$t)return;this.moved=!1}const ae=(n=this.hls)==null?void 0:n.latestLevelDetails;if(!this.moved&&this.stalled!==null&&R){if(!(C.len>0)&&!L)return;const At=Math.max(L,C.start||0)-e,Xt=!!(ae!=null&&ae.live)?ae.targetduration*2:uo,It=R.getPartialFragment(e);if(At>0&&(At<=Xt||It)){s.paused||this._trySkipBufferHole(It);return}}const he=i.detectStallWithCurrentTimeMs,Ne=self.performance.now(),Je=this.waiting;if(l===null){Je>0&&Ne-Je<he?this.stalled=Je:this.stalled=Ne;return}const We=Ne-l;if(!d&&(We>=he||Je)&&this.hls){var Et;if(((Et=this.mediaSource)==null?void 0:Et.readyState)==="ended"&&!(ae!=null&&ae.live)&&Math.abs(e-((ae==null?void 0:ae.edge)||0))<1){if(this.ended)return;this.ended=e||1,this.hls.trigger(p.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(C),!this.media||!this.hls)return}const St=Nr.bufferInfo(s,e,i.maxBufferHole);this._tryFixBufferStall(St,We)}stallResolved(e){const t=this.stalled;if(t&&this.hls&&(this.stalled=null,this.stallReported)){const r=self.performance.now()-t;this.log(`playback not stuck anymore @${e}, after ${Math.round(r)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(p.STALL_RESOLVED,{})}}nudgeOnVideoHole(e,t){var r;const n=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(r=this.buffered.audio)!=null&&r.length&&n&&n.length>1&&e>n.end(0)){const i=Nr.bufferedInfo(Nr.timeRangesToArray(this.buffered.audio),e,0);if(i.len>1&&t>=i.start){const s=Nr.timeRangesToArray(n),l=Nr.bufferedInfo(s,t,0).bufferedIndex;if(l>-1&&l<s.length-1){const d=Nr.bufferedInfo(s,e,0).bufferedIndex,c=s[l].end,m=s[l+1].start;if((d===-1||d>l)&&m-c<1&&e-c<2){const _=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${e} hole: ${c} -> ${m} buffered index: ${d}`);this.warn(_.message),this.media.currentTime+=1e-6;const C=this.fragmentTracker.getPartialFragment(e)||void 0,L=Nr.bufferInfo(this.media,e,0);this.hls.trigger(p.ERROR,{type:pe.MEDIA_ERROR,details:O.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:_,reason:_.message,frag:C,buffer:L.len,bufferInfo:L})}}}}}_tryFixBufferStall(e,t){var r,n;const{fragmentTracker:i,media:s}=this,l=(r=this.hls)==null?void 0:r.config;if(!s||!i||!l)return;const d=s.currentTime,c=(n=this.hls)==null?void 0:n.latestLevelDetails,m=i.getPartialFragment(d);if((m||c!=null&&c.live&&d<c.fragmentStart)&&(this._trySkipBufferHole(m)||!this.media))return;const _=e.buffered;(_&&_.length>1&&e.len>l.maxBufferHole||e.nextStart&&e.nextStart-d<l.maxBufferHole)&&(t>l.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(e))}_reportStall(e){const{hls:t,media:r,stallReported:n,stalled:i}=this;if(!n&&i!==null&&r&&t){this.stallReported=!0;const s=new Error(`Playback stalling at @${r.currentTime} due to low buffer (${st(e)})`);this.warn(s.message),t.trigger(p.ERROR,{type:pe.MEDIA_ERROR,details:O.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:e.len,bufferInfo:e,stalled:{start:i}})}}_trySkipBufferHole(e){var t;const{fragmentTracker:r,media:n}=this,i=(t=this.hls)==null?void 0:t.config;if(!n||!r||!i)return 0;const s=n.currentTime,l=Nr.bufferInfo(n,s,0),d=s<l.start?l.start:l.nextStart;if(d&&this.hls){const m=l.len<=i.maxBufferHole,_=l.len>0&&l.len<1&&n.readyState<3,C=d-s;if(C>0&&(m||_)){if(C>i.maxBufferHole){let R=!1;if(s===0){const ae=r.getAppendedFrag(0,oe.MAIN);ae&&d<ae.end&&(R=!0)}if(!R){const ae=e||r.getAppendedFrag(s,oe.MAIN);if(ae){var c;if(!((c=this.hls.loadLevelObj)!=null&&c.details)||Pl(this.hls.inFlightFragments,d))return 0;let Ne=!1,Je=ae.end;for(;Je<d;){const We=r.getPartialFragment(Je);if(We)Je+=We.duration;else{Ne=!0;break}}if(Ne)return 0}}}const L=Math.max(d+Nc,s+Bc);if(this.warn(`skipping hole, adjusting currentTime from ${s} to ${L}`),this.moved=!0,n.currentTime=L,!(e!=null&&e.gap)){const R=new Error(`fragment loaded with buffer holes, seeking from ${s} to ${L}`);this.hls.trigger(p.ERROR,{type:pe.MEDIA_ERROR,details:O.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:R,reason:R.message,frag:e||void 0,buffer:l.len,bufferInfo:l})}return L}}return 0}_tryNudgeBuffer(e){const{hls:t,media:r,nudgeRetry:n}=this,i=t==null?void 0:t.config;if(!r||!i)return 0;const s=r.currentTime;if(this.nudgeRetry++,n<i.nudgeMaxRetry){const l=s+(n+1)*i.nudgeOffset,d=new Error(`Nudging 'currentTime' from ${s} to ${l}`);this.warn(d.message),r.currentTime=l,t.trigger(p.ERROR,{type:pe.MEDIA_ERROR,details:O.BUFFER_NUDGE_ON_STALL,error:d,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(p.ERROR,{type:pe.MEDIA_ERROR,details:O.BUFFER_STALLED_ERROR,error:l,fatal:!0,buffer:e.len,bufferInfo:e})}}}function Pl(a,e){const t=Ml(a.main);if(t&&t.start<=e)return t;const r=Ml(a.audio);return r&&r.start<=e?r:null}function Ml(a){if(!a)return null;switch(a.state){case Qt.IDLE:case Qt.STOPPED:case Qt.ENDED:case Qt.ERROR:return null}return a.frag}const zc=.25;function Vo(){if(typeof self!="undefined")return self.VTTCue||self.TextTrackCue}function Fl(a,e,t,r,n){let i=new a(e,t,"");try{i.value=r,n&&(i.type=n)}catch(s){i=new a(e,t,st(n?A({type:n},r):r))}return i}const co=(()=>{const a=Vo();try{a&&new a(0,Number.POSITIVE_INFINITY,"")}catch(e){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();function jc(a){return Uint8Array.from(a.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}class Hc{constructor(e){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(p.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(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.on(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.on(p.BUFFER_FLUSHING,this.onBufferFlushing,this),e.on(p.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(p.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}_unregisterListeners(){const{hls:e}=this;e.off(p.MEDIA_ATTACHING,this.onMediaAttaching,this),e.off(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),e.off(p.BUFFER_FLUSHING,this.onBufferFlushing,this),e.off(p.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(p.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this)}onMediaAttaching(e,t){var r;this.media=t.media,((r=t.overrides)==null?void 0:r.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&&ia(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 r=e[t];if(r.kind==="metadata"&&r.label==="id3")return cl(r,this.media),r}return this.media.addTextTrack("metadata","id3")}}onFragParsingMetadata(e,t){if(!this.media)return;const{hls:{config:{enableEmsgMetadataCues:r,enableID3MetadataCues:n}}}=this;if(!r&&!n)return;const{samples:i}=t;this.id3Track||(this.id3Track=this.createTrack(this.media));const s=Vo();if(s)for(let l=0;l<i.length;l++){const d=i[l].type;if(d===Ai.emsg&&!r||!n)continue;const c=Ka(i[l].data);if(c){const m=i[l].pts;let _=m+i[l].duration;_>co&&(_=co),_-m<=0&&(_=m+zc);for(let L=0;L<c.length;L++){const R=c[L];if(!va(R)){this.updateId3CueEnds(m,d);const ae=Fl(s,m,_,R,d);ae&&this.id3Track.addCue(ae)}}}}}updateId3CueEnds(e,t){var r;const n=(r=this.id3Track)==null?void 0:r.cues;if(n)for(let i=n.length;i--;){const s=n[i];s.type===t&&s.startTime<e&&s.endTime===co&&(s.endTime=e)}}onBufferFlushing(e,{startOffset:t,endOffset:r,type:n}){const{id3Track:i,hls:s}=this;if(!s)return;const{config:{enableEmsgMetadataCues:l,enableID3MetadataCues:d}}=s;if(i&&(l||d)){let c;n==="audio"?c=m=>m.type===Ai.audioId3&&d:n==="video"?c=m=>m.type===Ai.emsg&&l:c=m=>m.type===Ai.audioId3&&d||m.type===Ai.emsg&&l,Po(i,t,r,c)}}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:r}=this,{dateRanges:n}=e,i=Object.keys(n);let s=this.dateRangeCuesAppended;if(r&&t){var l;if((l=r.cues)!=null&&l.length){const m=Object.keys(s).filter(_=>!i.includes(_));for(let _=m.length;_--;){const C=m[_],L=s[C].cues;delete s[C],Object.keys(L).forEach(R=>{try{const ae=L[R];ae.removeEventListener("enter",this.onEventCueEnter),r.removeCue(ae)}catch(ae){}})}}else s=this.dateRangeCuesAppended={}}const d=e.fragments[e.fragments.length-1];if(i.length===0||!v(d==null?void 0:d.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));const c=Vo();for(let m=0;m<i.length;m++){const _=i[m],C=n[_],L=C.startTime,R=s[_],ae=(R==null?void 0:R.cues)||{};let he=(R==null?void 0:R.durationKnown)||!1,Ne=co;const{duration:Je,endDate:We}=C;if(We&&Je!==null)Ne=L+Je,he=!0;else if(C.endOnNext&&!he){const St=i.reduce((Kt,At)=>{if(At!==C.id){const $t=n[At];if($t.class===C.class&&$t.startDate>C.startDate&&(!Kt||C.startDate<Kt.startDate))return $t}return Kt},null);St&&(Ne=St.startTime,he=!0)}const Et=Object.keys(C.attr);for(let St=0;St<Et.length;St++){const Kt=Et[St];if(!en(Kt))continue;const At=ae[Kt];if(At)he&&!R.durationKnown?At.endTime=Ne:Math.abs(At.startTime-L)>.01&&(At.startTime=L,At.endTime=Ne);else if(c){let $t=C.attr[Kt];Jt(Kt)&&($t=jc($t));const It=Fl(c,L,Ne,{key:Kt,data:$t},Ai.dateRange);It&&(It.id=_,this.id3Track.addCue(It),ae[Kt]=It,this.hls.config.interstitialsController&&(Kt==="X-ASSET-LIST"||Kt==="X-ASSET-URL")&&It.addEventListener("enter",this.onEventCueEnter))}}s[_]={cues:ae,dateRange:C,durationKnown:he}}}}class Gc{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,r=this.levelDetails;if(!t||!r)return;this.currentTime=t.currentTime;const n=this.computeLatency();if(n===null)return;this._latency=n;const{lowLatencyMode:i,maxLiveSyncPlaybackRate:s}=this.config;if(!i||s===1||!r.live)return;const l=this.targetLatency;if(l===null)return;const d=n-l,c=Math.min(this.maxLatency,l+r.targetduration);if(d<c&&d>.05&&this.forwardBufferLength>1){const _=Math.min(2,Math.max(1,s)),C=Math.round(2/(1+Math.exp(-.75*d-this.edgeStalled))*20)/20,L=Math.min(_,Math.max(1,C));this.changeMediaPlaybackRate(t,L)}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:r,targetduration:n}=e,{liveSyncDuration:i,liveSyncDurationCount:s,lowLatencyMode:l}=this.config,d=this.hls.userConfig;let c=l&&r||t;(this._targetLatencyUpdated||d.liveSyncDuration||d.liveSyncDurationCount||c===0)&&(c=i!==void 0?i:s*n);const m=n;return c+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,m)}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 r=this.levelDetails;if(r===null)return null;const n=r.edge,i=e-t-this.edgeStalled,s=n-r.totalduration,l=n-(this.config.lowLatencyMode&&r.partTarget||r.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 r=e.buffered.length;return(r?e.buffered.end(r-1):t.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:e}=this;e&&(e.on(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.on(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.on(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.LEVEL_UPDATED,this.onLevelUpdated,this),e.on(p.ERROR,this.onError,this))}unregisterListeners(){const{hls:e}=this;e&&(e.off(p.MEDIA_ATTACHED,this.onMediaAttached,this),e.off(p.MEDIA_DETACHING,this.onMediaDetaching,this),e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.LEVEL_UPDATED,this.onLevelUpdated,this),e.off(p.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 r;t.details===O.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(r=this.levelDetails)!=null&&r.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(e,t){var r,n;e.playbackRate!==t&&((r=this.hls)==null||r.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(n=this.targetLatency)==null?void 0:n.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 Wc extends ws{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(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.MANIFEST_LOADED,this.onManifestLoaded,this),e.on(p.LEVEL_LOADED,this.onLevelLoaded,this),e.on(p.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(p.FRAG_BUFFERED,this.onFragBuffered,this),e.on(p.ERROR,this.onError,this)}_unregisterListeners(){const{hls:e}=this;e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.MANIFEST_LOADED,this.onManifestLoaded,this),e.off(p.LEVEL_LOADED,this.onLevelLoaded,this),e.off(p.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(p.FRAG_BUFFERED,this.onFragBuffered,this),e.off(p.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 r=this.hls.config.preferManagedMediaSource,n=[],i={},s={};let l=!1,d=!1,c=!1;t.levels.forEach(m=>{var _;const C=m.attrs;let{audioCodec:L,videoCodec:R}=m;L&&(m.audioCodec=L=Ce(L,r)||void 0),((_=R)==null?void 0:_.indexOf("avc1"))===0&&(R=m.videoCodec=Pt(R));const{width:ae,height:he,unknownCodecs:Ne}=m;let Je=Ne?Ne.length:0;if(Ne)for(let pr=Je;pr--;){const wr=Ne[pr];this.isAudioSupported(wr)?(m.audioCodec=L=L?`${L},${wr}`:wr,Je--,rr.audio[L.substring(0,4)]=2):this.isVideoSupported(wr)&&(m.videoCodec=R=R?`${R},${wr}`:wr,Je--,rr.video[R.substring(0,4)]=2)}if(l||(l=!!(ae&&he)),d||(d=!!R),c||(c=!!L),Je||L&&!this.isAudioSupported(L)||R&&!this.isVideoSupported(R)){this.log(`Some or all CODECS not supported "${C.CODECS}"`);return}const{CODECS:We,"FRAME-RATE":Et,"HDCP-LEVEL":St,"PATHWAY-ID":Kt,RESOLUTION:At,"VIDEO-RANGE":$t}=C,It=`${`${Kt||"."}-`}${m.bitrate}-${At}-${Et}-${We}-${$t}-${St}`;if(i[It])if(i[It].uri!==m.url&&!m.attrs["PATHWAY-ID"]){const pr=s[It]+=1;m.attrs["PATHWAY-ID"]=new Array(pr+1).join(".");const wr=this.createLevel(m);i[It]=wr,n.push(wr)}else i[It].addGroupId("audio",C.AUDIO),i[It].addGroupId("text",C.SUBTITLES);else{const pr=this.createLevel(m);i[It]=pr,s[It]=1,n.push(pr)}}),this.filterAndSortMediaOptions(n,t,l,d,c)}createLevel(e){const t=new zr(e),r=e.supplemental;if(r!=null&&r.videoCodec&&!this.isVideoSupported(r.videoCodec)){const n=new Error(`SUPPLEMENTAL-CODECS not supported "${r.videoCodec}"`);this.log(n.message),t.supportedResult=ut(n,[])}return t}isAudioSupported(e){return je(e,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(e){return je(e,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(e,t,r,n,i){let s=[],l=[],d=e;if((r||n)&&i&&(d=d.filter(({videoCodec:R,videoRange:ae,width:he,height:Ne})=>(!!R||!!(he&&Ne))&&yr(ae))),d.length===0){Promise.resolve().then(()=>{if(this.hls){let R="no level with compatible codecs found in manifest",ae=R;t.levels.length&&(ae=`one or more CODECS in variant not supported: ${st(t.levels.map(Ne=>Ne.attrs.CODECS).filter((Ne,Je,We)=>We.indexOf(Ne)===Je))}`,this.warn(ae),R+=` (${ae})`);const he=new Error(R);this.hls.trigger(p.ERROR,{type:pe.MEDIA_ERROR,details:O.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:t.url,error:he,reason:ae})}});return}t.audioTracks&&(s=t.audioTracks.filter(R=>!R.audioCodec||this.isAudioSupported(R.audioCodec)),Bl(s)),t.subtitles&&(l=t.subtitles,Bl(l));const c=d.slice(0);d.sort((R,ae)=>{if(R.attrs["HDCP-LEVEL"]!==ae.attrs["HDCP-LEVEL"])return(R.attrs["HDCP-LEVEL"]||"")>(ae.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&R.height!==ae.height)return R.height-ae.height;if(R.frameRate!==ae.frameRate)return R.frameRate-ae.frameRate;if(R.videoRange!==ae.videoRange)return vr.indexOf(R.videoRange)-vr.indexOf(ae.videoRange);if(R.videoCodec!==ae.videoCodec){const he=me(R.videoCodec),Ne=me(ae.videoCodec);if(he!==Ne)return Ne-he}if(R.uri===ae.uri&&R.codecSet!==ae.codecSet){const he=we(R.codecSet),Ne=we(ae.codecSet);if(he!==Ne)return Ne-he}return R.averageBitrate!==ae.averageBitrate?R.averageBitrate-ae.averageBitrate:0});let m=c[0];if(this.steering&&(d=this.steering.filterParsedLevels(d),d.length!==c.length)){for(let R=0;R<c.length;R++)if(c[R].pathwayId===d[0].pathwayId){m=c[R];break}}this._levels=d;for(let R=0;R<d.length;R++)if(d[R]===m){var _;this._firstLevel=R;const ae=m.bitrate,he=this.hls.bandwidthEstimate;if(this.log(`manifest loaded, ${d.length} level(s) found, first bitrate: ${ae}`),((_=this.hls.userConfig)==null?void 0:_.abrEwmaDefaultEstimate)===void 0){const Ne=Math.min(ae,this.hls.config.abrEwmaDefaultEstimateMax);Ne>he&&he===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=Ne)}break}const C=i&&!n,L={levels:d,audioTracks:s,subtitleTracks:l,sessionData:t.sessionData,sessionKeys:t.sessionKeys,firstLevel:this._firstLevel,stats:t.stats,audio:i,video:n,altAudio:!C&&s.some(R=>!!R.url)};this.hls.trigger(p.MANIFEST_PARSED,L)}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 m=new Error("invalid level idx"),_=e<0;if(this.hls.trigger(p.ERROR,{type:pe.OTHER_ERROR,details:O.LEVEL_SWITCH_ERROR,level:e,fatal:_,error:m,reason:m.message}),_)return;e=Math.min(e,t.length-1)}const r=this.currentLevelIndex,n=this.currentLevel,i=n?n.attrs["PATHWAY-ID"]:void 0,s=t[e],l=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=e,this.currentLevel=s,r===e&&n&&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 ${r}${i?" with Pathway "+i:""}`);const d={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(p.LEVEL_SWITCHING,d);const c=s.details;if(!c||c.live){const m=this.switchParams(s.uri,n==null?void 0:n.details,c);this.loadPlaylist(m)}}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(),r=e.filter(n=>t.indexOf(n)!==-1);if(e.length<1){this.warn(`pathwayPriority ${e} should contain at least one pathway from list: ${t}`);return}this.steering.pathwayPriority=r}}onError(e,t){t.fatal||!t.context||t.context.type===ce.LEVEL&&t.context.level===this.level&&this.checkRetry(t)}onFragBuffered(e,{frag:t}){if(t!==void 0&&t.type===oe.MAIN){const r=t.elementaryStreams;if(!Object.keys(r).some(i=>!!r[i]))return;const n=this._levels[t.level];n!=null&&n.loadError&&(this.log(`Resetting level error count of ${n.loadError} on frag buffered`),n.loadError=0)}}onLevelLoaded(e,t){var r;const{level:n,details:i}=t,s=t.levelInfo;if(!s){var l;this.warn(`Invalid level index ${n}`),(l=t.deliveryDirectives)!=null&&l.skip&&(i.deltaUpdateFailed=!0);return}if(s===this.currentLevel||t.withoutMultiVariant){s.fragmentError===0&&(s.loadError=0);let d=s.details;d===t.details&&d.advanced&&(d=void 0),this.playlistLoaded(n,t,d)}else(r=t.deliveryDirectives)!=null&&r.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 r=this.getUrlWithDirectives(e.uri,t),n=this.currentLevelIndex,i=e.attrs["PATHWAY-ID"],s=e.details,l=s==null?void 0:s.age;this.log(`Loading level index ${n}${(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:""):""} ${r}`),this.hls.trigger(p.LEVEL_LOADING,{url:r,level:n,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 r=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));gs(r),this._levels=r,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 n=r.length-1;this._firstLevel=Math.min(this._firstLevel,n),this._startLevel&&(this._startLevel=Math.min(this._startLevel,n)),this.hls.trigger(p.LEVELS_UPDATED,{levels:r})}onLevelsUpdated(e,{levels:t}){this._levels=t}checkMaxAutoUpdated(){const{autoLevelCapping:e,maxAutoLevel:t,maxHdcpLevel:r}=this.hls;this._maxAutoLevel!==t&&(this._maxAutoLevel=t,this.hls.trigger(p.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:e,levels:this.levels,maxAutoLevel:t,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function Bl(a){const e={};a.forEach(t=>{const r=t.groupId||"";t.id=e[r]=e[r]||0,e[r]++})}function Nl(){return self.SourceBuffer||self.WebKitSourceBuffer}function $l(){if(!de())return!1;const e=Nl();return!e||e.prototype&&typeof e.prototype.appendBuffer=="function"&&typeof e.prototype.remove=="function"}function Kc(){if(!$l())return!1;const a=de();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(re(e,"video")))||["mp4a.40.2","fLaC"].some(e=>a.isTypeSupported(re(e,"audio"))))}function Vc(){var a;const e=Nl();return typeof(e==null||(a=e.prototype)==null?void 0:a.changeType)=="function"}const Zc=100;class Yc extends es{constructor(e,t,r){super(e,t,r,"stream-controller",oe.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 n=this.media,i=n?n.currentTime:null;if(i===null||!v(i)||(this.log(`Media seeked to ${i.toFixed(3)}`),!this.getBufferedFrag(i)))return;const s=this.getFwdBufferInfoAtPos(n,i,oe.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(p.MANIFEST_PARSED,this.onManifestParsed,this),e.on(p.LEVEL_LOADING,this.onLevelLoading,this),e.on(p.LEVEL_LOADED,this.onLevelLoaded,this),e.on(p.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.on(p.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.on(p.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.on(p.BUFFER_CREATED,this.onBufferCreated,this),e.on(p.BUFFER_FLUSHED,this.onBufferFlushed,this),e.on(p.LEVELS_UPDATED,this.onLevelsUpdated,this),e.on(p.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:e}=this;e.off(p.MANIFEST_PARSED,this.onManifestParsed,this),e.off(p.LEVEL_LOADED,this.onLevelLoaded,this),e.off(p.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),e.off(p.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),e.off(p.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),e.off(p.BUFFER_CREATED,this.onBufferCreated,this),e.off(p.BUFFER_FLUSHED,this.onBufferFlushed,this),e.off(p.LEVELS_UPDATED,this.onLevelsUpdated,this),e.off(p.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(e,t){if(this.levels){const{lastCurrentTime:r,hls:n}=this;if(this.stopLoad(),this.setInterval(Zc),this.level=-1,!this.startFragRequested){let i=n.startLevel;i===-1&&(n.config.testBandwidth&&this.levels.length>1?(i=0,this.bitrateTest=!0):i=n.firstAutoLevel),n.nextLoadLevel=i,this.level=n.loadLevel,this._hasEnoughToStart=!!t}r>0&&e===-1&&!t&&(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),e=r),this.state=Qt.IDLE,this.nextLoadPosition=this.lastCurrentTime=e+this.timelineOffset,this.startPosition=t?-1:e,this.tick()}else this._forceStartLoad=!0,this.state=Qt.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case Qt.WAITING_LEVEL:{const{levels:t,level:r}=this,n=t==null?void 0:t[r],i=n==null?void 0:n.details;if(i&&(!i.live||this.levelLastLoaded===n&&!this.waitForLive(n))){if(this.waitForCdnTuneIn(i))break;this.state=Qt.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=Qt.IDLE;break}break}case Qt.FRAG_LOADING_WAITING_RETRY:{var e;const t=self.performance.now(),r=this.retryDate;if(!r||t>=r||(e=this.media)!=null&&e.seeking){const{levels:n,level:i}=this,s=n==null?void 0:n[i];this.resetStartWhenNotLoaded(s||null),this.state=Qt.IDLE}}break}this.state===Qt.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:r,media:n}=this;if(t===null||!n&&!this.primaryPrefetch&&(this.startFragRequested||!e.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const i=this.buffering?e.nextLoadLevel:e.loadLevel;if(!(r!=null&&r[i]))return;const s=r[i],l=this.getMainFwdBufferInfo();if(l===null)return;const d=this.getLevelDetails();if(d&&this._streamEnded(l,d)){const ae={};this.altAudio===2&&(ae.type="video"),this.hls.trigger(p.BUFFER_EOS,ae),this.state=Qt.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 c=s.details;if(!c||this.state===Qt.WAITING_LEVEL||this.waitForLive(s)){this.level=i,this.state=Qt.WAITING_LEVEL,this.startFragRequested=!1;return}const m=l.len,_=this.getMaxBufferLength(s.maxBitrate);if(m>=_)return;this.backtrackFragment&&this.backtrackFragment.start>l.end&&(this.backtrackFragment=null);const C=this.backtrackFragment?this.backtrackFragment.start:l.end;let L=this.getNextFragment(C,c);if(this.couldBacktrack&&!this.fragPrevious&&L&&G(L)&&this.fragmentTracker.getState(L)!==Br.OK){var R;const he=((R=this.backtrackFragment)!=null?R:L).sn-c.startSN,Ne=c.fragments[he-1];Ne&&L.cc===Ne.cc&&(L=Ne,this.fragmentTracker.removeFragment(Ne))}else this.backtrackFragment&&l.len&&(this.backtrackFragment=null);if(L&&this.isLoopLoading(L,C)){if(!L.gap){const he=this.audioOnly&&!this.altAudio?w.AUDIO:w.VIDEO,Ne=(he===w.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Ne&&this.afterBufferFlushed(Ne,he,oe.MAIN)}L=this.getNextFragmentLoopLoading(L,c,l,oe.MAIN,_)}L&&(L.initSegment&&!L.initSegment.data&&!this.bitrateTest&&(L=L.initSegment),this.loadFragment(L,s,C))}loadFragment(e,t,r){const n=this.fragmentTracker.getState(e);n===Br.NOT_LOADED||n===Br.PARTIAL?G(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,r):this._loadInitSegment(e,t):this.clearTrackerIfNeeded(e)}getBufferedFrag(e){return this.fragmentTracker.getBufferedFrag(e,oe.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 r;const n=this.getAppendedFrag(t.currentTime);n&&n.start>1&&this.flushMainBuffer(0,n.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,d=e[l],c=this.fragLastKbps;c&&this.fragCurrent?r=this.fragCurrent.duration*d.maxBitrate/(1e3*c)+1:r=0}else r=0;const s=this.getBufferedFrag(t.currentTime+r);if(s){const l=this.followingBufferedFrag(s);if(l){this.abortCurrentFrag();const d=l.maxStartPTS?l.maxStartPTS:l.start,c=l.duration,m=Math.max(s.end,d+Math.min(Math.max(c-this.config.maxFragLookUpTolerance,c*(this.couldBacktrack?.5:.125)),c*(this.couldBacktrack?.75:.25)));this.flushMainBuffer(m,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 Qt.KEY_LOADING:case Qt.FRAG_LOADING:case Qt.FRAG_LOADING_WAITING_RETRY:case Qt.PARSING:case Qt.PARSED:this.state=Qt.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 r=t.media;ns(r,"playing",this.onMediaPlaying),ns(r,"seeked",this.onMediaSeeked)}onMediaDetaching(e,t){const{media:r}=this;r&&(Xi(r,"playing",this.onMediaPlaying),Xi(r,"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(p.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 r=!1,n=!1;t.levels.forEach(i=>{const s=i.audioCodec;s&&(r=r||s.indexOf("mp4a.40.2")!==-1,n=n||s.indexOf("mp4a.40.5")!==-1)}),this.audioCodecSwitch=r&&n&&!Vc(),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:r}=this;if(!r||this.state!==Qt.IDLE)return;const n=t.levelInfo;(!n.details||n.details.live&&(this.levelLastLoaded!==n||n.details.expired)||this.waitForCdnTuneIn(n.details))&&(this.state=Qt.WAITING_LEVEL)}onLevelLoaded(e,t){var r;const{levels:n,startFragRequested:i}=this,s=t.level,l=t.details,d=l.totalduration;if(!n){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:${d}`);const c=t.levelInfo,m=this.fragCurrent;m&&(this.state===Qt.FRAG_LOADING||this.state===Qt.FRAG_LOADING_WAITING_RETRY)&&m.level!==t.level&&m.loader&&this.abortCurrentFrag();let _=0;if(l.live||(r=c.details)!=null&&r.live){var C;if(this.checkLiveUpdate(l),l.deltaUpdateFailed)return;_=this.alignPlaylists(l,c.details,(C=this.levelLastLoaded)==null?void 0:C.details)}if(c.details=l,this.levelLastLoaded=c,i||this.setStartPosition(l,_),this.hls.trigger(p.LEVEL_UPDATED,{details:l,level:s}),this.state===Qt.WAITING_LEVEL){if(this.waitForCdnTuneIn(l))return;this.state=Qt.IDLE}i&&l.live&&this.synchronizeToLiveEdge(l),this.tick()}synchronizeToLiveEdge(e){const{config:t,media:r}=this;if(!r)return;const n=this.hls.liveSyncPosition,i=this.getLoadPosition(),s=e.fragmentStart,l=e.edge,d=i>=s-t.maxFragLookUpTolerance&&i<=l;if(n!==null&&r.duration>n&&(i<n||!d)){const c=t.liveMaxLatencyDuration!==void 0?t.liveMaxLatencyDuration:t.liveMaxLatencyDurationCount*e.targetduration;(!d&&r.readyState<4||i<l-c)&&(this._hasEnoughToStart||(this.nextLoadPosition=n),r.readyState&&(this.warn(`Playback: ${i.toFixed(3)} is located too far from the end of live sliding playlist: ${l}, reset currentTime to : ${n.toFixed(3)}`),r.currentTime=n))}}_handleFragmentLoadProgress(e){var t;const r=e.frag,{part:n,payload:i}=e,{levels:s}=this;if(!s){this.warn(`Levels were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const l=s[r.level];if(!l){this.warn(`Level ${r.level} not found on progress`);return}const d=l.details;if(!d){this.warn(`Dropping fragment ${r.sn} of level ${r.level} after level details were reset`),this.fragmentTracker.removeFragment(r);return}const c=l.videoCodec,m=d.PTSKnown||!d.live,_=(t=r.initSegment)==null?void 0:t.data,C=this._getAudioCodec(l),L=this.transmuxer=this.transmuxer||new wa(this.hls,oe.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),R=n?n.index:-1,ae=R!==-1,he=new Gn(r.level,r.sn,r.stats.chunkCount,i.byteLength,R,ae),Ne=this.initPTS[r.cc];L.push(i,_,C,c,r,n,d.totalduration,m,he,Ne)}onAudioTrackSwitching(e,t){const r=this.hls,n=this.altAudio===2;if(dr(t.url,r))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(n){this.fragmentTracker.removeAllFragments(),r.once(p.BUFFER_FLUSHED,()=>{var s;(s=this.hls)==null||s.trigger(p.AUDIO_TRACK_SWITCHED,t)}),r.trigger(p.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}r.trigger(p.AUDIO_TRACK_SWITCHED,t)}}onAudioTrackSwitched(e,t){const r=dr(t.url,this.hls);if(r){const n=this.videoBuffer;n&&this.mediaBuffer!==n&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=n)}this.altAudio=r?2:0,this.tick()}onBufferCreated(e,t){const r=t.tracks;let n,i,s=!1;for(const l in r){const d=r[l];if(d.id==="main"){if(i=l,n=d,l==="video"){const c=r[l];c&&(this.videoBuffer=c.buffer)}}else s=!0}s&&n?(this.log(`Alternate track found, use ${i}.buffered to schedule main fragment loading`),this.mediaBuffer=n.buffer):this.mediaBuffer=this.media}onFragBuffered(e,t){const{frag:r,part:n}=t,i=r.type===oe.MAIN;if(i){if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${n?" p: "+n.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}`),this.state===Qt.PARSED&&(this.state=Qt.IDLE);return}const l=n?n.stats:r.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),G(r)&&(this.fragPrevious=r),this.fragBufferedComplete(r,n)}const s=this.media;s&&(!this._hasEnoughToStart&&Nr.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),i&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(e,t){var r;if(t.fatal){this.state=Qt.ERROR;return}switch(t.details){case O.FRAG_GAP:case O.FRAG_PARSING_ERROR:case O.FRAG_DECRYPT_ERROR:case O.FRAG_LOAD_ERROR:case O.FRAG_LOAD_TIMEOUT:case O.KEY_LOAD_ERROR:case O.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(oe.MAIN,t);break;case O.LEVEL_LOAD_ERROR:case O.LEVEL_LOAD_TIMEOUT:case O.LEVEL_PARSING_ERROR:!t.levelRetry&&this.state===Qt.WAITING_LEVEL&&((r=t.context)==null?void 0:r.type)===ce.LEVEL&&(this.state=Qt.IDLE);break;case O.BUFFER_ADD_CODEC_ERROR:case O.BUFFER_APPEND_ERROR:if(t.parent!=="main")return;this.resetLoadingState();break;case O.BUFFER_FULL_ERROR:if(t.parent!=="main")return;this.reduceLengthAndFlushBuffer(t)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case O.INTERNAL_EXCEPTION:this.recoverWorkerError(t);break}}onFragLoadEmergencyAborted(){this.state=Qt.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(e,{type:t}){if(t!==w.AUDIO||!this.altAudio){const r=(t===w.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;r&&(this.afterBufferFlushed(r,t,oe.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 r=this.startPosition;if(r>=0&&t<r){if(e.seeking){this.log(`could not seek to ${r}, already seeking at ${t}`);return}const n=this.timelineOffset;n&&r&&(r+=n);const i=this.getLevelDetails(),s=Nr.getBuffered(e),l=s.length?s.start(0):0,d=l-r,c=Math.max(this.config.maxBufferHole,this.config.maxFragLookUpTolerance);d>0&&(d<c||this.loadingParts&&d<2*((i==null?void 0:i.partTarget)||0))&&(this.log(`adjusting start position by ${d} to match buffer start`),r+=d,this.startPosition=r),t<r&&(this.log(`seek to target start position ${r} from current time ${t} buffer start ${l}`),e.currentTime=r)}}_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(r=>{const{hls:n}=this,i=r==null?void 0:r.frag;if(!i||this.fragContextChanged(i))return;t.fragmentError=0,this.state=Qt.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(),n.trigger(p.FRAG_LOADED,r),i.bitrateTest=!1})}_handleTransmuxComplete(e){var t;const r=this.playlistType,{hls:n}=this,{remuxResult:i,chunkMeta:s}=e,l=this.getCurrentContext(s);if(!l){this.resetWhenMissingContext(s);return}const{frag:d,part:c,level:m}=l,{video:_,text:C,id3:L,initSegment:R}=i,{details:ae}=m,he=this.altAudio?void 0:i.audio;if(this.fragContextChanged(d)){this.fragmentTracker.removeFragment(d);return}if(this.state=Qt.PARSING,R){if(R!=null&&R.tracks){const We=d.initSegment||d;this._bufferInitSegment(m,R.tracks,We,s),n.trigger(p.FRAG_PARSING_INIT_SEGMENT,{frag:We,id:r,tracks:R.tracks})}const Ne=R.initPTS,Je=R.timescale;v(Ne)&&(this.initPTS[d.cc]={baseTime:Ne,timescale:Je},n.trigger(p.INIT_PTS_FOUND,{frag:d,id:r,initPTS:Ne,timescale:Je}))}if(_&&ae){const Ne=ae.fragments[d.sn-1-ae.startSN],Je=d.sn===ae.startSN,We=!Ne||d.cc>Ne.cc;if(i.independent!==!1){const{startPTS:Et,endPTS:St,startDTS:Kt,endDTS:At}=_;if(c)c.elementaryStreams[_.type]={startPTS:Et,endPTS:St,startDTS:Kt,endDTS:At};else if(_.firstKeyFrame&&_.independent&&s.id===1&&!We&&(this.couldBacktrack=!0),_.dropped&&_.independent){const $t=this.getMainFwdBufferInfo(),Xt=($t?$t.end:this.getLoadPosition())+this.config.maxBufferHole,It=_.firstKeyFramePTS?_.firstKeyFramePTS:Et;if(!Je&&Xt<It-this.config.maxBufferHole&&!We){this.backtrack(d);return}else We&&(d.gap=!0);d.setElementaryStreamInfo(_.type,d.start,St,d.start,At,!0)}else Je&&Et-(ae.appliedTimelineOffset||0)>uo&&(d.gap=!0);d.setElementaryStreamInfo(_.type,Et,St,Kt,At),this.backtrackFragment&&(this.backtrackFragment=d),this.bufferFragmentData(_,d,c,s,Je||We)}else if(Je||We)d.gap=!0;else{this.backtrack(d);return}}if(he){const{startPTS:Ne,endPTS:Je,startDTS:We,endDTS:Et}=he;c&&(c.elementaryStreams[w.AUDIO]={startPTS:Ne,endPTS:Je,startDTS:We,endDTS:Et}),d.setElementaryStreamInfo(w.AUDIO,Ne,Je,We,Et),this.bufferFragmentData(he,d,c,s)}if(ae&&L!=null&&(t=L.samples)!=null&&t.length){const Ne={id:r,frag:d,details:ae,samples:L.samples};n.trigger(p.FRAG_PARSING_METADATA,Ne)}if(ae&&C){const Ne={id:r,frag:d,details:ae,samples:C.samples};n.trigger(p.FRAG_PARSING_USERDATA,Ne)}}_bufferInitSegment(e,t,r,n){if(this.state!==Qt.PARSING)return;this.audioOnly=!!t.audio&&!t.video,this.altAudio&&!this.audioOnly&&delete t.audio;const{audio:i,video:s,audiovideo:l}=t;if(i){let c=cr(i.codec,e.audioCodec);c==="mp4a"&&(c="mp4a.40.5");const m=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){c&&(c.indexOf("mp4a.40.5")!==-1?c="mp4a.40.2":c="mp4a.40.5");const _=i.metadata;_&&"channelCount"in _&&(_.channelCount||1)!==1&&m.indexOf("firefox")===-1&&(c="mp4a.40.5")}c&&c.indexOf("mp4a.40.5")!==-1&&m.indexOf("android")!==-1&&i.container!=="audio/mpeg"&&(c="mp4a.40.2",this.log(`Android: force audio codec to ${c}`)),e.audioCodec&&e.audioCodec!==c&&this.log(`Swapping manifest audio codec "${e.audioCodec}" for "${c}"`),i.levelCodec=c,i.id=oe.MAIN,this.log(`Init audio buffer, container:${i.container}, codecs[selected/level/parsed]=[${c||""}/${e.audioCodec||""}/${i.codec}]`),delete t.audiovideo}if(s){s.levelCodec=e.videoCodec,s.id=oe.MAIN;const c=s.codec;if((c==null?void 0:c.length)===4)switch(c){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||""}/${c}]${s.codec!==c?" 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 d=Object.keys(t);if(d.length){if(this.hls.trigger(p.BUFFER_CODECS,t),!this.hls)return;d.forEach(c=>{const _=t[c].initSegment;_!=null&&_.byteLength&&this.hls.trigger(p.BUFFER_APPENDING,{type:c,data:_,frag:r,part:null,chunkMeta:n,parent:r.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const e=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(e,oe.MAIN)}get maxBufferLength(){const{levels:e,level:t}=this,r=e==null?void 0:e[t];return r?this.getMaxBufferLength(r.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=Qt.IDLE}checkFragmentChanged(){const e=this.media;let t=null;if(e&&e.readyState>1&&e.seeking===!1){const r=e.currentTime;if(Nr.isBuffered(e,r)?t=this.getAppendedFrag(r):Nr.isBuffered(e,r+.1)&&(t=this.getAppendedFrag(r+.1)),t){this.backtrackFragment=null;const n=this.fragPlaying,i=t.level;(!n||t.sn!==n.sn||n.level!==i)&&(this.fragPlaying=t,this.hls.trigger(p.FRAG_CHANGED,{frag:t}),(!n||n.level!==i)&&this.hls.trigger(p.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 v(t)?this.getAppendedFrag(t):null}get currentProgramDateTime(){var e;const t=((e=this.media)==null?void 0:e.currentTime)||this.lastCurrentTime;if(v(t)){const r=this.getLevelDetails(),n=this.currentFrag||(r?mr(null,r.fragments,t):null);if(n){const i=n.programDateTime;if(i!==null){const s=i+(t-n.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 Xc{constructor(e){this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=e}abort(e){for(const r in this.keyUriToKeyInfo){const n=this.keyUriToKeyInfo[r].loader;if(n){var t;if(e&&e!==((t=n.context)==null?void 0:t.frag.type))return;n.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=O.KEY_LOAD_ERROR,r,n,i){return new $n({type:pe.NETWORK_ERROR,details:t,fatal:!1,frag:e,response:i,error:r,networkDetails:n})}loadClear(e,t){if(this.emeController&&this.config.emeEnabled){const{sn:r,cc:n}=e;for(let i=0;i<t.length;i++){const s=t[i];if(n<=s.cc&&(r==="initSegment"||s.sn==="initSegment"||r<s.sn)){this.emeController.selectKeySystemFormat(s).then(l=>{s.setKeyFormat(l)});break}}}}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 r,n;t&&e.setKeyFormat(t);const i=e.decryptdata;if(!i){const c=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,O.KEY_LOAD_ERROR,c))}const s=i.uri;if(!s)return Promise.reject(this.createKeyLoadError(e,O.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));let l=this.keyUriToKeyInfo[s];if((r=l)!=null&&r.decryptdata.key)return i.key=l.decryptdata.key,Promise.resolve({frag:e,keyInfo:l});if((n=l)!=null&&n.keyLoadPromise){var d;switch((d=l.mediaKeySessionContext)==null?void 0:d.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return l.keyLoadPromise.then(c=>(i.key=c.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,O.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${i.method}"`)))}}loadKeyEME(e,t){const r={frag:t,keyInfo:e};if(this.emeController&&this.config.emeEnabled){const n=this.emeController.loadKey(r);if(n)return(e.keyLoadPromise=n.then(i=>(e.mediaKeySessionContext=i,r))).catch(i=>{throw e.keyLoadPromise=null,i})}return Promise.resolve(r)}loadKeyHTTP(e,t){const r=this.config,n=r.loader,i=new n(r);return t.keyLoader=e.loader=i,e.keyLoadPromise=new Promise((s,l)=>{const d={keyInfo:e,frag:t,responseType:"arraybuffer",url:e.decryptdata.uri},c=r.keyLoadPolicy.default,m={loadPolicy:c,timeout:c.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},_={onSuccess:(C,L,R,ae)=>{const{frag:he,keyInfo:Ne,url:Je}=R;if(!he.decryptdata||Ne!==this.keyUriToKeyInfo[Je])return l(this.createKeyLoadError(he,O.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),ae));Ne.decryptdata.key=he.decryptdata.key=new Uint8Array(C.data),he.keyLoader=null,Ne.loader=null,s({frag:he,keyInfo:Ne})},onError:(C,L,R,ae)=>{this.resetLoader(L),l(this.createKeyLoadError(t,O.KEY_LOAD_ERROR,new Error(`HTTP Error ${C.code} loading key ${C.text}`),R,A({url:d.url,data:void 0},C)))},onTimeout:(C,L,R)=>{this.resetLoader(L),l(this.createKeyLoadError(t,O.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),R))},onAbort:(C,L,R)=>{this.resetLoader(L),l(this.createKeyLoadError(t,O.INTERNAL_ABORTED,new Error("key loading aborted"),R))}};i.load(d,m,_)})}resetLoader(e){const{frag:t,keyInfo:r,url:n}=e,i=r.loader;t.keyLoader===i&&(t.keyLoader=null,r.loader=null),delete this.keyUriToKeyInfo[n],i&&i.destroy()}}function Ul(a){const{type:e}=a;switch(e){case ce.AUDIO_TRACK:return oe.AUDIO;case ce.SUBTITLE_TRACK:return oe.SUBTITLE;default:return oe.MAIN}}function Zo(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(p.MANIFEST_LOADING,this.onManifestLoading,this),e.on(p.LEVEL_LOADING,this.onLevelLoading,this),e.on(p.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.on(p.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.on(p.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:e}=this;e.off(p.MANIFEST_LOADING,this.onManifestLoading,this),e.off(p.LEVEL_LOADING,this.onLevelLoading,this),e.off(p.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),e.off(p.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),e.off(p.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(e){const t=this.hls.config,r=t.pLoader,n=t.loader,i=r||n,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:r}=t;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:ce.MANIFEST,url:r,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(e,t){const{id:r,level:n,pathwayId:i,url:s,deliveryDirectives:l,levelInfo:d}=t;this.load({id:r,level:n,pathwayId:i,responseType:"text",type:ce.LEVEL,url:s,deliveryDirectives:l,levelOrTrack:d})}onAudioTrackLoading(e,t){const{id:r,groupId:n,url:i,deliveryDirectives:s,track:l}=t;this.load({id:r,groupId:n,level:null,responseType:"text",type:ce.AUDIO_TRACK,url:i,deliveryDirectives:s,levelOrTrack:l})}onSubtitleTrackLoading(e,t){const{id:r,groupId:n,url:i,deliveryDirectives:s,track:l}=t;this.load({id:r,groupId:n,level:null,responseType:"text",type:ce.SUBTITLE_TRACK,url:i,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(e,t){const r=this.loaders[ce.LEVEL];if(r){const n=r.context;n&&!t.levels.some(i=>i===n.levelOrTrack)&&(r.abort(),delete this.loaders[ce.LEVEL])}}load(e){var t;const r=this.hls.config;let n=this.getInternalLoader(e);if(n){const c=this.hls.logger,m=n.context;if(m&&m.levelOrTrack===e.levelOrTrack&&(m.url===e.url||m.deliveryDirectives&&!e.deliveryDirectives)){m.url===e.url?c.log(`[playlist-loader]: ignore ${e.url} ongoing request`):c.log(`[playlist-loader]: ignore ${e.url} in favor of ${m.url}`);return}c.log(`[playlist-loader]: aborting previous loader for type: ${e.type}`),n.abort()}let i;if(e.type===ce.MANIFEST?i=r.manifestLoadPolicy.default:i=S({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),n=this.createInternalLoader(e),v((t=e.deliveryDirectives)==null?void 0:t.part)){let c;if(e.type===ce.LEVEL&&e.level!==null?c=this.hls.levels[e.level].details:e.type===ce.AUDIO_TRACK&&e.id!==null?c=this.hls.audioTracks[e.id].details:e.type===ce.SUBTITLE_TRACK&&e.id!==null&&(c=this.hls.subtitleTracks[e.id].details),c){const m=c.partTarget,_=c.targetduration;if(m&&_){const C=Math.max(m*3,_*.8)*1e3;i=S({},i,{maxTimeToFirstByteMs:Math.min(C,i.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(C,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},d={onSuccess:(c,m,_,C)=>{const L=this.getInternalLoader(_);this.resetInternalLoader(_.type);const R=c.data;if(R.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(c,_,new Error("no EXTM3U delimiter"),C||null,m);return}m.parsing.start=performance.now(),Ei.isMediaPlaylist(R)||_.type!==ce.MANIFEST?this.handleTrackOrLevelPlaylist(c,m,_,C||null,L):this.handleMasterPlaylist(c,m,_,C)},onError:(c,m,_,C)=>{this.handleNetworkError(m,_,!1,c,C)},onTimeout:(c,m,_)=>{this.handleNetworkError(m,_,!0,void 0,c)}};n.load(e,l,d)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:e,startPosition:t},forceStartLoad:r}=this.hls;(e||r)&&(this.hls.logger.log(`${e?"auto":"force"} startLoad with configured startPosition ${t}`),this.hls.startLoad(t))}handleMasterPlaylist(e,t,r,n){const i=this.hls,s=e.data,l=Zo(e,r),d=Ei.parseMasterPlaylist(s,l);if(d.playlistParsingError){this.handleManifestParsingError(e,r,d.playlistParsingError,n,t);return}const{contentSteering:c,levels:m,sessionData:_,sessionKeys:C,startTimeOffset:L,variableList:R}=d;this.variableList=R;const{AUDIO:ae=[],SUBTITLES:he,"CLOSED-CAPTIONS":Ne}=Ei.parseMasterPlaylistMedia(s,l,d);ae.length&&!ae.some(We=>!We.url)&&m[0].audioCodec&&!m[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),ae.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Er({}),bitrate:0,url:""})),i.trigger(p.MANIFEST_LOADED,{levels:m,audioTracks:ae,subtitles:he,captions:Ne,contentSteering:c,url:l,stats:t,networkDetails:n,sessionData:_,sessionKeys:C,startTimeOffset:L,variableList:R})}handleTrackOrLevelPlaylist(e,t,r,n,i){const s=this.hls,{id:l,level:d,type:c}=r,m=Zo(e,r),_=v(d)?d:v(l)?l:0,C=Ul(r),L=Ei.parseLevelPlaylist(e.data,m,_,C,0,this.variableList);if(c===ce.MANIFEST){const R={attrs:new Er({}),bitrate:0,details:L,name:"",url:m};L.requestScheduled=t.loading.start+Vs(L,0),s.trigger(p.MANIFEST_LOADED,{levels:[R],audioTracks:[],url:m,stats:t,networkDetails:n,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}t.parsing.end=performance.now(),r.levelDetails=L,this.handlePlaylistLoaded(L,e,t,r,n,i)}handleManifestParsingError(e,t,r,n,i){this.hls.trigger(p.ERROR,{type:pe.NETWORK_ERROR,details:O.MANIFEST_PARSING_ERROR,fatal:t.type===ce.MANIFEST,url:e.url,err:r,error:r,reason:r.message,response:e,context:t,networkDetails:n,stats:i})}handleNetworkError(e,t,r=!1,n,i){let s=`A network ${r?"timeout":"error"+(n?" (status "+n.code+")":"")} occurred while loading ${e.type}`;e.type===ce.LEVEL?s+=`: ${e.level} id: ${e.id}`:(e.type===ce.AUDIO_TRACK||e.type===ce.SUBTITLE_TRACK)&&(s+=` id: ${e.id} group-id: "${e.groupId}"`);const l=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let d=O.UNKNOWN,c=!1;const m=this.getInternalLoader(e);switch(e.type){case ce.MANIFEST:d=r?O.MANIFEST_LOAD_TIMEOUT:O.MANIFEST_LOAD_ERROR,c=!0;break;case ce.LEVEL:d=r?O.LEVEL_LOAD_TIMEOUT:O.LEVEL_LOAD_ERROR,c=!1;break;case ce.AUDIO_TRACK:d=r?O.AUDIO_TRACK_LOAD_TIMEOUT:O.AUDIO_TRACK_LOAD_ERROR,c=!1;break;case ce.SUBTITLE_TRACK:d=r?O.SUBTITLE_TRACK_LOAD_TIMEOUT:O.SUBTITLE_LOAD_ERROR,c=!1;break}m&&this.resetInternalLoader(e.type);const _={type:pe.NETWORK_ERROR,details:d,fatal:c,url:e.url,loader:m,context:e,error:l,networkDetails:t,stats:i};if(n){const C=(t==null?void 0:t.url)||e.url;_.response=A({url:C,data:void 0},n)}this.hls.trigger(p.ERROR,_)}handlePlaylistLoaded(e,t,r,n,i,s){const l=this.hls,{type:d,level:c,id:m,groupId:_,deliveryDirectives:C}=n,L=Zo(t,n),R=Ul(n),ae=typeof n.level=="number"&&R===oe.MAIN?c:void 0;if(!e.fragments.length){const Ne=e.playlistParsingError=new Error("No Segments found in Playlist");l.trigger(p.ERROR,{type:pe.NETWORK_ERROR,details:O.LEVEL_EMPTY_ERROR,fatal:!1,url:L,error:Ne,reason:Ne.message,response:t,context:n,level:ae,parent:R,networkDetails:i,stats:r});return}e.targetduration||(e.playlistParsingError=new Error("Missing Target Duration"));const he=e.playlistParsingError;if(he){if(this.hls.logger.warn(he),!l.config.ignorePlaylistParsingErrors){l.trigger(p.ERROR,{type:pe.NETWORK_ERROR,details:O.LEVEL_PARSING_ERROR,fatal:!1,url:L,error:he,reason:he.message,response:t,context:n,level:ae,parent:R,networkDetails:i,stats:r});return}e.playlistParsingError=null}switch(e.live&&s&&(s.getCacheAge&&(e.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(e.ageHeader))&&(e.ageHeader=0)),d){case ce.MANIFEST:case ce.LEVEL:l.trigger(p.LEVEL_LOADED,{details:e,levelInfo:n.levelOrTrack||l.levels[0],level:ae||0,id:m||0,stats:r,networkDetails:i,deliveryDirectives:C,withoutMultiVariant:d===ce.MANIFEST});break;case ce.AUDIO_TRACK:l.trigger(p.AUDIO_TRACK_LOADED,{details:e,track:n.levelOrTrack,id:m||0,groupId:_||"",stats:r,networkDetails:i,deliveryDirectives:C});break;case ce.SUBTITLE_TRACK:l.trigger(p.SUBTITLE_TRACK_LOADED,{details:e,track:n.levelOrTrack,id:m||0,groupId:_||"",stats:r,networkDetails:i,deliveryDirectives:C});break}}}class As{static get version(){return vs}static isMSESupported(){return $l()}static isSupported(){return Kc()}static getMediaSource(){return de()}static get Events(){return p}static get MetadataSchema(){return Ai}static get ErrorTypes(){return pe}static get ErrorDetails(){return O}static get DefaultConfig(){return As.defaultConfig?As.defaultConfig:Oc}static set DefaultConfig(e){As.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 Ys,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=J(e.debug||!1,"Hls instance",e.assetPlayerId),r=this.config=Mc(As.DefaultConfig,e,t);this.userConfig=e,r.progressive&&Fc(r,t);const{abrController:n,bufferController:i,capLevelController:s,errorController:l,fpsController:d}=r,c=new l(this),m=this.abrController=new n(this),_=new fn(this),C=r.interstitialsController,L=C?this.interstitialsController=new C(this,As):null,R=this.bufferController=new i(this,_),ae=this.capLevelController=new s(this),he=new d(this),Ne=new Qc(this),Je=r.contentSteeringController,We=Je?new Je(this):null,Et=this.levelController=new Wc(this,We),St=new Hc(this),Kt=new Xc(this.config),At=this.streamController=new Yc(this,_,Kt),$t=this.gapController=new Uc(this,_);ae.setStreamController(At),he.setStreamController(At);const Xt=[Ne,Et,At];L&&Xt.splice(1,0,L),We&&Xt.splice(1,0,We),this.networkControllers=Xt;const It=[m,R,$t,ae,he,St,_];this.audioTrackController=this.createController(r.audioTrackController,Xt);const pr=r.audioStreamController;pr&&Xt.push(this.audioStreamController=new pr(this,_,Kt)),this.subtitleTrackController=this.createController(r.subtitleTrackController,Xt);const wr=r.subtitleStreamController;wr&&Xt.push(this.subtititleStreamController=new wr(this,_,Kt)),this.createController(r.timelineController,It),Kt.emeController=this.emeController=this.createController(r.emeController,It),this.cmcdController=this.createController(r.cmcdController,It),this.latencyController=this.createController(Gc,It),this.coreComponents=It,Xt.push(c);const xn=c.onErrorOut;typeof xn=="function"&&this.on(p.ERROR,xn,c),this.on(p.MANIFEST_LOADED,Ne.onManifestLoaded,Ne)}createController(e,t){if(e){const r=new e(this);return t&&t.push(r),r}return null}on(e,t,r=this){this._emitter.on(e,t,r)}once(e,t,r=this){this._emitter.once(e,t,r)}removeAllListeners(e){this._emitter.removeAllListeners(e)}off(e,t,r=this,n){this._emitter.off(e,t,r,n)}listeners(e){return this._emitter.listeners(e)}emit(e,t,r){return this._emitter.emit(e,t,r)}trigger(e,t){if(this.config.debug)return this.emit(e,e,t);try{return this.emit(e,e,t)}catch(r){if(this.logger.error("An internal error happened while handling event "+e+'. Error message: "'+r.message+'". Here is a stacktrace:',r),!this.triggeringException){this.triggeringException=!0;const n=e===p.ERROR;this.trigger(p.ERROR,{type:pe.OTHER_ERROR,details:O.INTERNAL_EXCEPTION,fatal:n,event:e,error:r}),this.triggeringException=!1}}return!1}listenerCount(e){return this._emitter.listenerCount(e)}destroy(){this.logger.log("destroy"),this.trigger(p.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(p.ERROR,{type:pe.OTHER_ERROR,details:O.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,r=t?e.media:e,n=t?e:{media:r};this._media=r,this.trigger(p.MEDIA_ATTACHING,n)}detachMedia(){this.logger.log("detachMedia"),this.trigger(p.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const e=this.bufferController.transferMedia();return this.trigger(p.MEDIA_DETACHING,{transferMedia:e}),e}loadSource(e){this.stopLoad();const t=this.media,r=this._url,n=this._url=te.buildAbsoluteURL(self.location.href,e,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${n}`),t&&r&&(r!==n||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(t)),this.trigger(p.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 r=0;r<this.networkControllers.length&&(this.networkControllers[r].startLoad(e,t),!(!this.started||!this.networkControllers));r++);}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={[oe.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(e[oe.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(e[oe.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=Ha()),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){Zt(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 r=e.length;for(let n=0;n<r;n++)if(e[n].maxBitrate>=t)return n;return 0}get maxAutoLevel(){const{levels:e,autoLevelCapping:t,maxHdcpLevel:r}=this;let n;if(t===-1&&e!=null&&e.length?n=e.length-1:n=t,r)for(let i=n;i--;){const s=e[i].attrs["HDCP-LEVEL"];if(s&&s<=r)return i}return n}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 r=yt(t);return et(e,r,navigator.mediaCapabilities)}}As.defaultConfig=void 0},16722:function(nr,ot,x){"use strict";x.d(ot,{Z:function(){return oe}});const v=o=>typeof o=="object"&&o!=null&&o.nodeType===1,q=(o,ne)=>(!ne||o!=="hidden")&&o!=="visible"&&o!=="clip",xe=(o,ne)=>{if(o.clientHeight<o.scrollHeight||o.clientWidth<o.scrollWidth){const N=getComputedStyle(o,null);return q(N.overflowY,ne)||q(N.overflowX,ne)||(S=>{const b=(A=>{if(!A.ownerDocument||!A.ownerDocument.defaultView)return null;try{return A.ownerDocument.defaultView.frameElement}catch(I){return null}})(S);return!!b&&(b.clientHeight<S.scrollHeight||b.clientWidth<S.scrollWidth)})(o)}return!1},pe=(o,ne,N,S,b,A,I,X)=>A<o&&I>ne||A>o&&I<ne?0:A<=o&&X<=N||I>=ne&&X>=N?A-o-S:I>ne&&X<N||A<o&&X>N?I-ne+b:0,O=o=>{const ne=o.parentElement;return ne==null?o.getRootNode().host||null:ne},p=(o,ne)=>{var N,S,b,A;if(typeof document=="undefined")return[];const{scrollMode:I,block:X,inline:ie,boundary:P,skipOverflowHiddenElements:B}=ne,H=typeof P=="function"?P:Ue=>Ue!==P;if(!v(o))throw new TypeError("Invalid target");const le=document.scrollingElement||document.documentElement,k=[];let j=o;for(;v(j)&&H(j);){if(j=O(j),j===le){k.push(j);break}j!=null&&j===document.body&&xe(j)&&!xe(document.documentElement)||j!=null&&xe(j,B)&&k.push(j)}const J=(S=(N=window.visualViewport)==null?void 0:N.width)!=null?S:innerWidth,Q=(A=(b=window.visualViewport)==null?void 0:b.height)!=null?A:innerHeight,{scrollX:de,scrollY:Se}=window,{height:Ae,width:Me,top:ee,right:F,bottom:Y,left:V}=o.getBoundingClientRect(),{top:ue,right:te,bottom:y,left:w}=(Ue=>{const Ve=window.getComputedStyle(Ue);return{top:parseFloat(Ve.scrollMarginTop)||0,right:parseFloat(Ve.scrollMarginRight)||0,bottom:parseFloat(Ve.scrollMarginBottom)||0,left:parseFloat(Ve.scrollMarginLeft)||0}})(o);let Z=X==="start"||X==="nearest"?ee-ue:X==="end"?Y+y:ee+Ae/2-ue+y,G=ie==="center"?V+Me/2-w+te:ie==="end"?F+te:V-w;const Pe=[];for(let Ue=0;Ue<k.length;Ue++){const Ve=k[Ue],{height:Xe,width:tt,top:at,right:mt,bottom:Ut,left:tr}=Ve.getBoundingClientRect();if(I==="if-needed"&&ee>=0&&V>=0&&Y<=Q&&F<=J&&(Ve===le&&!xe(Ve)||ee>=at&&Y<=Ut&&V>=tr&&F<=mt))return Pe;const Mt=getComputedStyle(Ve),jt=parseInt(Mt.borderLeftWidth,10),Yt=parseInt(Mt.borderTopWidth,10),er=parseInt(Mt.borderRightWidth,10),ge=parseInt(Mt.borderBottomWidth,10);let fe=0,U=0;const ye="offsetWidth"in Ve?Ve.offsetWidth-Ve.clientWidth-jt-er:0,Re="offsetHeight"in Ve?Ve.offsetHeight-Ve.clientHeight-Yt-ge:0,M="offsetWidth"in Ve?Ve.offsetWidth===0?0:tt/Ve.offsetWidth:0,se="offsetHeight"in Ve?Ve.offsetHeight===0?0:Xe/Ve.offsetHeight:0;if(le===Ve)fe=X==="start"?Z:X==="end"?Z-Q:X==="nearest"?pe(Se,Se+Q,Q,Yt,ge,Se+Z,Se+Z+Ae,Ae):Z-Q/2,U=ie==="start"?G:ie==="center"?G-J/2:ie==="end"?G-J:pe(de,de+J,J,jt,er,de+G,de+G+Me,Me),fe=Math.max(0,fe+Se),U=Math.max(0,U+de);else{fe=X==="start"?Z-at-Yt:X==="end"?Z-Ut+ge+Re:X==="nearest"?pe(at,Ut,Xe,Yt,ge+Re,Z,Z+Ae,Ae):Z-(at+Xe/2)+Re/2,U=ie==="start"?G-tr-jt:ie==="center"?G-(tr+tt/2)+ye/2:ie==="end"?G-mt+er+ye:pe(tr,mt,tt,jt,er+ye,G,G+Me,Me);const{scrollLeft:ve,scrollTop:Ee}=Ve;fe=se===0?0:Math.max(0,Math.min(Ee+fe/se,Ve.scrollHeight-Xe/se+Re)),U=M===0?0:Math.max(0,Math.min(ve+U/M,Ve.scrollWidth-tt/M+ye)),Z+=Ee-fe,G+=ve-U}Pe.push({el:Ve,top:fe,left:U})}return Pe},ce=o=>o===!1?{block:"end",inline:"nearest"}:(ne=>ne===Object(ne)&&Object.keys(ne).length!==0)(o)?o:{block:"start",inline:"nearest"};function oe(o,ne){if(!o.isConnected||!(b=>{let A=b;for(;A&&A.parentNode;){if(A.parentNode===document)return!0;A=A.parentNode instanceof ShadowRoot?A.parentNode.host:A.parentNode}return!1})(o))return;const N=(b=>{const A=window.getComputedStyle(b);return{top:parseFloat(A.scrollMarginTop)||0,right:parseFloat(A.scrollMarginRight)||0,bottom:parseFloat(A.scrollMarginBottom)||0,left:parseFloat(A.scrollMarginLeft)||0}})(o);if((b=>typeof b=="object"&&typeof b.behavior=="function")(ne))return ne.behavior(p(o,ne));const S=typeof ne=="boolean"||ne==null?void 0:ne.behavior;for(const{el:b,top:A,left:I}of p(o,ce(ne))){const X=A-N.top+N.bottom,ie=I-N.left+N.right;b.scroll({top:X,left:ie,behavior:S})}}}}]);
}());